Hacked By AnonymousFox

Current Path : C:/AppServ/www/financial/stacked/code/es5/modules/
Upload File :
Current File : C:/AppServ/www/financial/stacked/code/es5/modules/timeline.js

!/**
 * Highcharts JS v12.1.2 (2025-01-09)
 * @module highcharts/modules/timeline
 * @requires highcharts
 *
 * Timeline series
 *
 * (c) 2010-2024 Highsoft AS
 * Author: Daniel Studencki
 *
 * License: www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("highcharts"),require("highcharts").SeriesRegistry,require("highcharts").Point):"function"==typeof define&&define.amd?define("highcharts/modules/timeline",[["highcharts/highcharts"],["highcharts/highcharts","SeriesRegistry"],["highcharts/highcharts","Point"]],e):"object"==typeof exports?exports["highcharts/modules/timeline"]=e(require("highcharts"),require("highcharts").SeriesRegistry,require("highcharts").Point):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry,t.Highcharts.Point)}(this,function(t,e,i){return function(){"use strict";var o,r,n={260:function(t){t.exports=i},512:function(t){t.exports=e},944:function(e){e.exports=t}},s={};function a(t){var e=s[t];if(void 0!==e)return e.exports;var i=s[t]={exports:{}};return n[t](i,i.exports,a),i.exports}a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var h={};a.d(h,{default:function(){return E}});var l=a(944),p=a.n(l),c=a(512),d=a.n(c),u=a(260),y=a.n(u),f=(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),g=d().seriesTypes,b=g.line.prototype.pointClass,x=g.pie.prototype.pointClass,v=p().defined,m=p().isNumber,w=p().merge,P=p().objectEach,O=p().pick,L=function(t){function e(e,i){var o,r=t.call(this,e,i)||this;return null!==(o=r.name)&&void 0!==o||(r.name="Event"),r.y=1,r}return f(e,t),e.prototype.alignConnector=function(){var t=this.series,e=this.dataLabel,i=e.connector,o=e.options||{},r=o.connectorWidth||0,n=this.series.chart,s=i.getBBox(),a={x:s.x+(e.translateX||0),y:s.y+(e.translateY||0)};n.inverted?a.y-=r/2:a.x+=r/2,i[n.isInsidePlot(a.x,a.y)?"animate":"attr"]({d:this.getConnectorPath()}),i.addClass("highcharts-color-"+this.colorIndex),t.chart.styledMode||i.attr({stroke:o.connectorColor||this.color,"stroke-width":o.connectorWidth,opacity:e[v(e.newOpacity)?"newOpacity":"opacity"]})},e.prototype.drawConnector=function(){var t=this.dataLabel,e=this.series;t&&(t.connector||(t.connector=e.chart.renderer.path(this.getConnectorPath()).attr({zIndex:-1}).add(t)),this.series.chart.isInsidePlot(t.x||0,t.y||0)&&this.alignConnector())},e.prototype.getConnectorPath=function(){var t,e=this.plotX,i=void 0===e?0:e,o=this.plotY,r=void 0===o?0:o,n=this.series,s=this.dataLabel,a=n.chart,h=n.xAxis.len,l=a.inverted,p=l?"x2":"y2";if(s){var c=s.targetPosition,d=(s.alignAttr||s)[p[0]]<n.yAxis.len/2,u={x1:i,y1:r,x2:i,y2:m(c.y)?c.y:s.y};return l&&(u={x1:r,y1:h-i,x2:c.x||s.x,y2:h-i}),d&&(u[p]+=s[l?"width":"height"]||0),P(u,function(t,e){u[e]-=(s.alignAttr||s)[e[0]]}),a.renderer.crispLine([["M",u.x1,u.y1],["L",u.x2,u.y2]],(null===(t=s.options)||void 0===t?void 0:t.connectorWidth)||0)}return[]},e.prototype.isValid=function(){return null!==this.options.y},e.prototype.setState=function(){var e=t.prototype.setState;this.isNull||e.apply(this,arguments)},e.prototype.setVisible=function(t,e){var i=this.series;e=O(e,i.options.ignoreHiddenPoint),x.prototype.setVisible.call(this,t,!1),i.processData(),e&&i.chart.redraw()},e.prototype.applyOptions=function(e,i){return e=y().prototype.optionsToObject.call(this,e),this.userDLOptions=w(this.userDLOptions,e.dataLabels),t.prototype.applyOptions.call(this,e,i)},e}(b),A={colorByPoint:!0,stickyTracking:!1,ignoreHiddenPoint:!0,legendType:"point",lineWidth:4,tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {point.key}</span><br/>',pointFormat:"{point.description}"},states:{hover:{lineWidthPlus:0}},dataLabels:{enabled:!0,allowOverlap:!0,alternate:!0,backgroundColor:"#ffffff",borderWidth:1,borderColor:"#999999",borderRadius:3,color:"#333333",connectorWidth:1,distance:void 0,formatter:function(){return(this.series.chart.styledMode?'<span class="highcharts-color-'+this.point.colorIndex+'">● </span>':'<span style="color:'+this.point.color+'">● </span>')+('<span class="highcharts-strong">'+(this.key||""))+"</span><br/>"+(this.label||"")},style:{textOutline:"none",fontWeight:"normal",fontSize:"0.8em",textAlign:"left"},shadow:!1,verticalAlign:"middle"},marker:{enabledThreshold:0,symbol:"square",radius:6,lineWidth:2,height:15},showInLegend:!1,colorKey:"x",legendSymbol:"rectangle"},C=(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),_=d().seriesTypes,k=_.column,M=_.line,T=p().addEvent,D=p().arrayMax,j=p().arrayMin,S=p().defined,I=p().extend,W=p().merge,H=p().pick,q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return C(e,t),e.prototype.alignDataLabel=function(e,i,o,r){var n,s,a,h,l=this.chart.inverted,p=this.visibilityMap.filter(function(t){return!!t}),c=this.visiblePointsCount||0,d=p.indexOf(e),u=this.options.dataLabels,y=e.userDLOptions||{},f=u.alternate?d&&d!==c-1?2:1.5:1,g=Math.floor(this.xAxis.len/c),b=i.padding;e.visible&&(s=Math.abs(y.x||e.options.dataLabels.x),l?(a=(s-b)*2-(e.itemHeight||0)/2,h={width:H(null===(n=u.style)||void 0===n?void 0:n.width,""+.4*this.yAxis.len+"px"),textOverflow:(i.width||0)/a*(i.height||0)/2>g*f?"ellipsis":"none"}):h={width:(y.width||u.width||g*f-2*b)+"px"},i.css(h),this.chart.styledMode||i.shadow(u.shadow)),t.prototype.alignDataLabel.apply(this,arguments)},e.prototype.bindAxes=function(){t.prototype.bindAxes.call(this),this.xAxis.userOptions.type||(this.xAxis.categories=this.xAxis.hasNames=!0)},e.prototype.distributeDL=function(){var t,e=this.options.dataLabels,i=this.chart.inverted,o=1;if(e)for(var r=H(e.distance,i?20:100),n=0,s=this.points;n<s.length;n++){var a=s[n],h=((t={})[i?"x":"y"]=e.alternate&&o%2?-r:r,t);i&&(h.align=e.alternate&&o%2?"right":"left"),a.options.dataLabels=W(h,a.userDLOptions),o++}},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this);for(var e=this.points,i=this.getColumn("x"),o=0,r=e.length;o<r;++o)e[o].applyOptions({x:i[o]},i[o])},e.prototype.getVisibilityMap=function(){return((this.data.length?this.data:this.options.data)||[]).map(function(t){return!!t&&!1!==t.visible&&!t.isNull&&t})},e.prototype.getXExtremes=function(t){var e=this,i=t.filter(function(t,i){return e.points[i].isValid()&&e.points[i].visible});return{min:j(i),max:D(i)}},e.prototype.init=function(){var e=this;t.prototype.init.apply(e,arguments),e.eventsToUnbind.push(T(e,"afterTranslate",function(){for(var t,i=Number.MAX_VALUE,o=0,r=e.points;o<r.length;o++){var n=r[o];n.isInside=n.isInside&&n.visible,n.visible&&!n.isNull&&(S(t)&&(i=Math.min(i,Math.abs(n.plotX-t))),t=n.plotX)}e.closestPointRangePx=i})),e.eventsToUnbind.push(T(e,"drawDataLabels",function(){e.distributeDL()})),e.eventsToUnbind.push(T(e,"afterDrawDataLabels",function(){for(var t,i=0,o=e.points;i<o.length;i++){var r=o[i];(t=r.dataLabel)&&(t.animate=function(t){return this.targetPosition&&(this.targetPosition=t),this.renderer.Element.prototype.animate.apply(this,arguments)},t.targetPosition||(t.targetPosition={}),r.drawConnector())}})),e.eventsToUnbind.push(T(e.chart,"afterHideOverlappingLabel",function(){for(var t=0,i=e.points;t<i.length;t++){var o=i[t];o.dataLabel&&o.dataLabel.connector&&o.dataLabel.oldOpacity!==o.dataLabel.newOpacity&&o.alignConnector()}}))},e.prototype.markerAttribs=function(e,i){var o,r=this.options.marker,n=e.marker||{},s=n.symbol||r.symbol,a=H(n.width,r.width,this.closestPointRangePx),h=H(n.height,r.height),l=0;if(this.xAxis.dateTime)return t.prototype.markerAttribs.call(this,e,i);i&&(o=r.states[i]||{},l=H((n.states&&n.states[i]||{}).radius,o.radius,l+(o.radiusPlus||0))),e.hasImage=s&&0===s.indexOf("url");var p={x:Math.floor(e.plotX)-a/2-l/2,y:e.plotY-h/2-l/2,width:a+l,height:h+l};return this.chart.inverted?{y:p.x&&p.width&&this.xAxis.len-p.x-p.width,x:p.y&&p.y,width:p.height,height:p.width}:p},e.defaultOptions=W(M.defaultOptions,A),e}(M);T(q,"afterProcessData",function(){var t=this.getColumn("x"),e=0;this.visibilityMap=this.getVisibilityMap();for(var i=0,o=this.visibilityMap;i<o.length;i++)o[i]&&e++;this.visiblePointsCount=e,this.dataTable.setColumn("y",Array(t.length).fill(1))}),I(q.prototype,{drawTracker:k.prototype.drawTracker,pointClass:L,trackerGroups:["markerGroup","dataLabelsGroup"]}),d().registerSeriesType("timeline",q);var E=p();return h.default}()});

Hacked By AnonymousFox1.0, Coded By AnonymousFox