!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/timeline
 * @requires highcharts
 *
 * Timeline series
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Daniel Studencki
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.Point):"function"==typeof define&&define.amd?define("highcharts/modules/timeline",["highcharts/highcharts"],function(t){return e(t,t.SeriesRegistry,t.Point)}):"object"==typeof exports?exports["highcharts/modules/timeline"]=e(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.Point):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry,t.Highcharts.Point)}("u"<typeof window?this:window,(t,e,i)=>(()=>{"use strict";var s={260:t=>{t.exports=i},512:t=>{t.exports=e},944:e=>{e.exports=t}},n={};function r(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return s[t](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var o={};r.d(o,{default:()=>m});var a=r(944),l=r.n(a),h=r(512),d=r.n(h),p=r(260),c=r.n(p);let{line:{prototype:{pointClass:u}},pie:{prototype:{pointClass:g}}}=d().seriesTypes,y=class extends u{alignConnector(){let t=this.series,e=this.dataLabel,i=e.connector,s=e.options||{},n=s.connectorWidth||0,r=this.series.chart,o=i.getBBox(),l={x:o.x+(e.translateX||0),y:o.y+(e.translateY||0)};r.inverted?l.y-=n/2:l.x+=n/2,i[r.isInsidePlot(l.x,l.y)?"animate":"attr"]({d:this.getConnectorPath()}),i.addClass("highcharts-color-"+this.colorIndex),t.chart.styledMode||i.attr({stroke:s.connectorColor||this.color,"stroke-width":s.connectorWidth,opacity:e[(0,a.defined)(e.newOpacity)?"newOpacity":"opacity"]})}drawConnector(){let{dataLabel:t,series:e}=this;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())}getConnectorPath(){let{plotX:t=0,plotY:e=0,series:i,dataLabel:s}=this,n=i.chart,r=i.xAxis.len,o=n.inverted,l=o?"x2":"y2";if(s){let h=s.targetPosition,d=(s.alignAttr||s)[l[0]]<i.yAxis.len/2,p={x1:t,y1:e,x2:t,y2:(0,a.isNumber)(h.y)?h.y:s.y};return o&&(p={x1:e,y1:r-t,x2:h.x||s.x,y2:r-t}),d&&(p[l]+=s[o?"width":"height"]||0),(0,a.objectEach)(p,(t,e)=>{p[e]-=(s.alignAttr||s)[e[0]]}),n.renderer.crispLine([["M",p.x1,p.y1],["L",p.x2,p.y2]],s.options?.connectorWidth||0)}return[]}constructor(t,e){super(t,e),this.name??(this.name=(e&&null!==e.y||!t.options.nullInteraction)&&"Event"||"Null"),this.y=1}isValid(){return null!==this.options.y}setState(){let t=super.setState;(!this.isNull||this.series.options.nullInteraction)&&t.apply(this,arguments)}setVisible(t,e){let i=this.series;e=(0,a.pick)(e,i.options.ignoreHiddenPoint),g.prototype.setVisible.call(this,t,!1),i.processData(),e&&i.chart.redraw()}applyOptions(t,e,i){let s=this.series;e||t?.x||((0,a.isNumber)(this.x)?e=this.x:(0,a.isNumber)(s?.xIncrement)&&(e=s.xIncrement||0,s.autoIncrement())),t=c().prototype.optionsToObject.call(this,t);let n=super.applyOptions(t,e,i);return i||(this.userDLOptions=(0,a.merge)(this.userDLOptions,t.dataLabels)),n}},{column:x,line:b}=d().seriesTypes;class f extends b{alignDataLabel(t,e,i,s){let n,r,o,l=this.chart.inverted,h=this.visibilityMap.filter(t=>!!t),d=this.visiblePointsCount||0,p=h.indexOf(t),c=this.options.dataLabels,u=t.userDLOptions||{},g=c.alternate?p&&p!==d-1?2:1.5:1,y=Math.floor(this.xAxis.len/d),x=e.padding;t.visible&&(n=Math.abs(u.x||t.options.dataLabels.x),l?(r=(n-x)*2-(t.itemHeight||0)/2,o={width:(0,a.pick)(c.style?.width,`${.4*this.yAxis.len}px`),textOverflow:(e.width||0)/r*(e.height||0)/2>y*g?"ellipsis":"none"}):o={width:(u.width||c.width||y*g-2*x)+"px"},e.css(o),this.chart.styledMode||e.shadow(c.shadow)),super.alignDataLabel.apply(this,arguments)}bindAxes(){super.bindAxes(),this.xAxis.userOptions.type||(this.xAxis.categories=this.xAxis.hasNames=!0)}distributeDL(){let t=this.options.dataLabels,e=this.chart.inverted,i=1;if(t){let s=(0,a.pick)(t.distance,e?20:100);for(let n of this.points){let r={[e?"x":"y"]:t.alternate&&i%2?-s:s};e&&(r.align=t.alternate&&i%2?"right":"left"),n.options.dataLabels=(0,a.merge)(r,n.userDLOptions,{zIndex:void 0}),delete n.options.dataLabels.zIndex,i++}}}generatePoints(){super.generatePoints();let t=this.points,e=t.length,i=this.getColumn("x");for(let s=0;s<e;++s)t[s].x=i[s]}getVisibilityMap(){let t=this.options.nullInteraction;return((this.data.length?this.data:this.options.data)||[]).map(e=>!!e&&!1!==e.visible&&(!e.isNull||!!t)&&e)}getXExtremes(t){let e=this,i=t.filter((t,i)=>e.points[i].isValid()&&e.points[i].visible);return{min:(0,a.arrayMin)(i),max:(0,a.arrayMax)(i)}}init(){let t=this;super.init.apply(t,arguments),t.eventsToUnbind.push((0,a.addEvent)(t,"afterTranslate",function(){let e,i=Number.MAX_VALUE;for(let s of t.points)s.isInside=s.isInside&&s.visible,s.visible&&(!s.isNull||t.options.nullInteraction)&&((0,a.defined)(e)&&(i=Math.min(i,Math.abs(s.plotX-e))),e=s.plotX);t.closestPointRangePx=i})),t.eventsToUnbind.push((0,a.addEvent)(t,"drawDataLabels",function(){t.distributeDL()})),t.eventsToUnbind.push((0,a.addEvent)(t,"afterDrawDataLabels",function(){let e;for(let i of t.points)(e=i.dataLabel)&&(e.animate=function(t){return this.targetPosition&&(this.targetPosition=t),this.renderer.Element.prototype.animate.apply(this,arguments)},e.targetPosition||(e.targetPosition={}),i.drawConnector())})),t.eventsToUnbind.push((0,a.addEvent)(t.chart,"afterHideOverlappingLabel",function(){for(let e of t.points)e.dataLabel&&e.dataLabel.connector&&e.dataLabel.oldOpacity!==e.dataLabel.newOpacity&&e.alignConnector()}))}markerAttribs(t,e){let i=this.options.marker,s=t.marker||{},n=s.symbol||i?.symbol,r=(0,a.pick)(s.width,i?.width,this.closestPointRangePx),o=(0,a.pick)(s.height,i?.height),l,h,d=0;if(this.xAxis.dateTime)return super.markerAttribs(t,e);e&&(l=i?.states?.[e],h=s.states?.[e],d=(0,a.pick)(h?.radius,l?.radius,d+(l?.radiusPlus||0))),t.hasImage=!!(n&&0===n.indexOf("url"));let p={x:Math.floor(t.plotX)-r/2-d/2,y:t.plotY-o/2-d/2,width:r+d,height:o+d};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}}f.defaultOptions=(0,a.merge)(b.defaultOptions,{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:"var(--highcharts-background-color)",borderWidth:1,borderColor:"var(--highcharts-neutral-color-40)",borderRadius:3,color:"var(--highcharts-neutral-color-80)",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||"")},padding:5,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"}),(0,a.addEvent)(f,"afterProcessData",function(){let t=this.getColumn("y"),e=0;for(let t of(this.visibilityMap=this.getVisibilityMap(),this.visibilityMap))t&&e++;this.visiblePointsCount=e,t.length=this.dataTable.rowCount;for(let e=0;e<t.length;++e)t[e]=null===t[e]?null:1;this.dataTable.setColumn("y",t)}),(0,a.extend)(f.prototype,{drawTracker:x.prototype.drawTracker,pointClass:y,trackerGroups:["markerGroup","dataLabelsGroup"]}),d().registerSeriesType("timeline",f);let m=l();return o.default})());