/** * Highcharts JS v11.2.0 (2023-10-30) * * Timeline series * * (c) 2010-2021 Highsoft AS * Author: Daniel Studencki * * License: www.highcharts.com/license */!function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/modules/timeline",["highcharts"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function i(t,e,i,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}i(e,"Series/Timeline/TimelinePoint.js",[e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i){var o,n=this&&this.__extends||(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)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}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=e.seriesTypes,s=r.line.prototype.pointClass,a=r.pie.prototype.pointClass,l=i.defined,p=i.isNumber,h=i.merge,c=i.objectEach,d=i.pick;return function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=void 0,t.series=void 0,t}return n(i,e),i.prototype.alignConnector=function(){var t=this.series,e=this.dataLabel,i=e.connector,o=e.options||{},n=o.connectorWidth||0,r=this.series.chart,s=i.getBBox(),a={x:s.x+(e.translateX||0),y:s.y+(e.translateY||0)};r.inverted?a.y-=n/2:a.x+=n/2,i[r.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[l(e.newOpacity)?"newOpacity":"opacity"]})},i.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())},i.prototype.getConnectorPath=function(){var t,e=this.plotX,i=void 0===e?0:e,o=this.plotY,n=void 0===o?0:o,r=this.series,s=this.dataLabel,a=r.chart,l=r.xAxis.len,h=a.inverted,d=h?"x2":"y2";if(s){var u=s.targetPosition,y=(s.alignAttr||s)[d[0]] {point.key}
',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?'':'')+(''+(this.key||""))+"
"+(this.point.label||"")},style:{textOutline:"none",fontWeight:"normal",fontSize:"0.8em"},shadow:!1,verticalAlign:"middle"},marker:{enabledThreshold:0,symbol:"square",radius:6,lineWidth:2,height:15},showInLegend:!1,colorKey:"x",legendSymbol:"rectangle"}}),i(e,"Series/Timeline/TimelineSeries.js",[e["Core/Series/SeriesRegistry.js"],e["Series/Timeline/TimelinePoint.js"],e["Series/Timeline/TimelineSeriesDefaults.js"],e["Core/Utilities.js"]],function(t,e,i,o){var n,r=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=t.seriesTypes,a=s.column,l=s.line,p=o.addEvent,h=o.arrayMax,c=o.arrayMin,d=o.defined,u=o.extend,y=o.merge,f=o.pick,v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e.userOptions=void 0,e.visibilityMap=void 0,e}return r(e,t),e.prototype.alignDataLabel=function(e,i,o,n){var r,s,a,l,p=this.chart.inverted,h=this.visibilityMap.filter(function(t){return!!t}),c=this.visiblePointsCount||0,d=h.indexOf(e),u=this.options.dataLabels,y=e.userDLOptions||{},v=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),p?(a=(s-b)*2-(e.itemHeight||0)/2,l={width:f(null===(r=u.style)||void 0===r?void 0:r.width,"".concat(.4*this.yAxis.len,"px")),textOverflow:(i.width||0)/a*(i.height||0)/2>g*v?"ellipsis":"none"}):l={width:(y.width||u.width||g*v-2*b)+"px"},i.css(l),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 n=f(e.distance,i?20:100),r=0,s=this.points;r