!/**
 * Highcharts Gantt JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/gantt
 * @requires highcharts
 *
 * Gantt series
 *
 * (c) 2016-2026 Highsoft AS
 * Author: Lars A. V. Cabrera
 *
 * 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.Chart,t._Highcharts.Axis,t._Highcharts.SeriesRegistry,t._Highcharts.SVGRenderer,t._Highcharts.SVGElement,t._Highcharts.Templating,t._Highcharts.Point,t._Highcharts.Color,t._Highcharts.StackItem):"function"==typeof define&&define.amd?define("highcharts/modules/gantt",["highcharts/highcharts"],function(t){return e(t,t.Chart,t.Axis,t.SeriesRegistry,t.SVGRenderer,t.SVGElement,t.Templating,t.Point,t.Color,t.StackItem)}):"object"==typeof exports?exports["highcharts/modules/gantt"]=e(t._Highcharts,t._Highcharts.Chart,t._Highcharts.Axis,t._Highcharts.SeriesRegistry,t._Highcharts.SVGRenderer,t._Highcharts.SVGElement,t._Highcharts.Templating,t._Highcharts.Point,t._Highcharts.Color,t._Highcharts.StackItem):t.Highcharts=e(t.Highcharts,t.Highcharts.Chart,t.Highcharts.Axis,t.Highcharts.SeriesRegistry,t.Highcharts.SVGRenderer,t.Highcharts.SVGElement,t.Highcharts.Templating,t.Highcharts.Point,t.Highcharts.Color,t.Highcharts.StackItem)}("u"<typeof window?this:window,(t,e,i,s,r,o,a,n,l,h)=>(()=>{"use strict";let d,c,p;var u,g,x,m,f,b,y,v,M={28:t=>{t.exports=o},184:t=>{t.exports=h},260:t=>{t.exports=n},512:t=>{t.exports=s},532:t=>{t.exports=i},540:t=>{t.exports=r},620:t=>{t.exports=l},944:e=>{e.exports=t},960:t=>{t.exports=e},984:t=>{t.exports=a}},k={};function E(t){var e=k[t];if(void 0!==e)return e.exports;var i=k[t]={exports:{}};return M[t](i,i.exports,E),i.exports}E.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return E.d(e,{a:e}),e},E.d=(t,e)=>{for(var i in e)E.o(e,i)&&!E.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},E.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var A={};E.d(A,{default:()=>ii});var w=E(944),S=E.n(w);function B(t,e,i,s){return[["M",t,e+s/2],["L",t+i,e],["L",t,e+s/2],["L",t+i,e+s]]}function O(t,e,i,s){return B(t,e,i/2,s)}function P(t){let e=t.prototype.symbols;e.arrow=B,e["arrow-filled"]=T,e["arrow-filled-half"]=C,e["arrow-half"]=O,e["triangle-left"]=T,e["triangle-left-half"]=C}function T(t,e,i,s){return[["M",t+i,e],["L",t,e+s/2],["L",t+i,e+s],["Z"]]}function C(t,e,i,s){return T(t,e,i/2,s)}let N=S().deg2rad,I=Math.max,D=Math.min,L=class{constructor(t,e,i){this.init(t,e,i)}init(t,e,i){this.fromPoint=t,this.toPoint=e,this.options=i,this.chart=t.series.chart,this.pathfinder=this.chart.pathfinder}renderPath(t,e){let i=this.chart,s=i.styledMode,r=this.pathfinder,o={},a=this.graphics&&this.graphics.path;r.group||(r.group=i.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(i.seriesGroup)),r.group.translate(i.plotLeft,i.plotTop),!(a&&a.renderer)&&(a=i.renderer.path().add(r.group),s||a.attr({opacity:0})),a.attr(e),o.d=t,s||(o.opacity=1),a.animate(o),this.graphics=this.graphics||{},this.graphics.path=a}addMarker(t,e,i){let s,r,o,a,n,l,h,d=this.fromPoint.series.chart,c=d.pathfinder,p=d.renderer,u="start"===t?this.fromPoint:this.toPoint,g=u.getPathfinderAnchorPoint(e);e.enabled&&((h="start"===t?i[1]:i[i.length-2])&&"M"===h[0]||"L"===h[0])&&(l={x:h[1],y:h[2]},r=u.getRadiansToVector(l,g),s=u.getMarkerVector(r,e.radius,g),e.width&&e.height?(a=e.width,n=e.height):a=n=2*e.radius,this.graphics=this.graphics||{},o={x:s.x-a/2,y:s.y-n/2,width:a,height:n,rotation:-r/N,rotationOriginX:s.x,rotationOriginY:s.y},this.graphics[t]?this.graphics[t].animate(o):(this.graphics[t]=p.symbol(e.symbol).addClass("highcharts-point-connecting-path-"+t+"-marker highcharts-color-"+this.fromPoint.colorIndex).attr(o).add(c.group),p.styledMode||this.graphics[t].attr({fill:e.color||this.fromPoint.color,stroke:e.lineColor,"stroke-width":e.lineWidth,opacity:0}).animate({opacity:1},u.series.options.animation)))}getPath(t){let e=this.pathfinder,i=this.chart,s=e.algorithms[t.type],r=e.chartObstacles;return"function"!=typeof s?((0,w.error)('"'+t.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]}):(s.requiresObstacles&&!r&&(r=e.chartObstacles=e.getChartObstacles(t),i.options.connectors.algorithmMargin=t.algorithmMargin,e.chartObstacleMetrics=e.getObstacleMetrics(r)),s(this.fromPoint.getPathfinderAnchorPoint(t.startMarker),this.toPoint.getPathfinderAnchorPoint(t.endMarker),(0,w.merge)({chartObstacles:r,lineObstacles:e.lineObstacles||[],obstacleMetrics:e.chartObstacleMetrics,hardBounds:{xMin:0,xMax:i.plotWidth,yMin:0,yMax:i.plotHeight},obstacleOptions:{margin:t.algorithmMargin},startDirectionX:e.getAlgorithmStartDirection(t.startMarker)},t)))}render(){let t=this.fromPoint,e=t.series,i=e.chart,s=i.pathfinder,r={},o=(0,w.merge)(i.options.connectors,e.options.connectors,t.options.connectors,this.options);!i.styledMode&&(r.stroke=o.lineColor||t.color,r["stroke-width"]=o.lineWidth,o.dashStyle&&(r.dashstyle=o.dashStyle)),r.class="highcharts-point-connecting-path highcharts-color-"+t.colorIndex,o=(0,w.merge)(r,o),(0,w.defined)(o.marker.radius)||(o.marker.radius=D(I(Math.ceil((o.algorithmMargin||8)/2)-1,1),5));let a=this.getPath(o),n=a.path;a.obstacles&&(s.lineObstacles=s.lineObstacles||[],s.lineObstacles=s.lineObstacles.concat(a.obstacles)),this.renderPath(n,r),this.addMarker("start",(0,w.merge)(o.marker,o.startMarker),n),this.addMarker("end",(0,w.merge)(o.marker,o.endMarker),n)}destroy(){this.graphics&&((0,w.objectEach)(this.graphics,function(t){t.destroy()}),delete this.graphics)}},{composed:R}=S(),z={color:"var(--highcharts-highlight-color-20)",width:2,label:{format:"%[abdYHM]",formatter:function(t,e){return this.axis.chart.time.dateFormat(e||"",t,!0)},rotation:0,style:{fontSize:"0.7em"}}};var G=E(960),W=E.n(G);let{defaultOptions:H}=S();class F extends W(){init(t,e){let i,s=t.xAxis,r=t.yAxis;t.xAxis=t.yAxis=void 0;let o=(0,w.merge)(!0,{chart:{type:"gantt"},title:{text:""},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},t,{isGantt:!0});t.xAxis=s,t.yAxis=r,o.xAxis=(!(0,w.isArray)(t.xAxis)?[t.xAxis||{},{}]:t.xAxis).map((t,e)=>(1===e&&(i=0),(0,w.merge)({grid:{enabled:!0},opposite:H.xAxis?.opposite??t.opposite??!0,linkedTo:i},t,{type:"datetime"}))),o.yAxis=(0,w.splat)(t.yAxis||{}).map(t=>(0,w.merge)({grid:{enabled:!0},staticScale:50,reversed:!0,type:t.categories?t.type:"treegrid"},t)),super.init(o,e)}}(u=F||(F={})).ganttChart=function(t,e,i){let s=new u(t,e,i);return s.promise||s};let U=F;var V=E(532),X=E.n(V);let{isTouchDevice:Y}=S(),j=[];function _(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function q(){let t,e,i,s=this.legend,r=this.navigator;if(r){t=s&&s.options,e=r.xAxis,i=r.yAxis;let{scrollbarHeight:o,scrollButtonSize:a}=r;this.inverted?(r.left=r.opposite?this.chartWidth-o-r.height:this.spacing[3]+o,r.top=this.plotTop+a):(r.left=(0,w.pick)(e.left,this.plotLeft+a),r.top=r.navigatorOptions.top||this.chartHeight-r.height-o-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(t&&"bottom"===t.verticalAlign&&"proximate"!==t.layout&&t.enabled&&!t.floating?s.legendHeight+(0,w.pick)(t.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),e&&i&&(this.inverted?e.options.left=i.options.left=r.left:e.options.top=i.options.top=r.top,e.setAxisSize(),i.setAxisSize())}}function Z(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new d(this),(0,w.pick)(t.redraw,!0)&&this.redraw(t.animation))}function $(){let t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new d(this))}function K(){let t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!Y&&"x"===this.zooming.type||Y&&"x"===this.zooming.pinchType))return!1}function J(t){let e=t.navigator;if(e&&t.xAxis[0]){let i=t.xAxis[0].getExtremes();e.render(i.min,i.max)}}function Q(t){let e=t.options.navigator||{},i=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||i.enabled)&&((0,w.merge)(!0,this.options.navigator,e),(0,w.merge)(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}let tt=function(t,e){if((0,w.pushUnique)(j,t)){let i=t.prototype;d=e,i.callbacks.push(J),(0,w.addEvent)(t,"afterAddSeries",_),(0,w.addEvent)(t,"afterSetChartSize",q),(0,w.addEvent)(t,"afterUpdate",Z),(0,w.addEvent)(t,"beforeRender",$),(0,w.addEvent)(t,"beforeShowResetZoom",K),(0,w.addEvent)(t,"update",Q)}},{isTouchDevice:te}=S();function ti(){this.navigatorAxis||(this.navigatorAxis=new tr(this))}function ts(t){let e,i=this.chart,s=i.options,r=s.navigator,o=this.navigatorAxis,a=i.zooming.pinchType,n=s.rangeSelector,l=i.zooming.type;if(this.isXAxis&&(r?.enabled||n?.enabled)){if("y"===l&&"zoom"===t.trigger)e=!1;else if(("zoom"===t.trigger&&"xy"===l||te&&"xy"===a)&&this.options.range){let e=o.previousZoom;(0,w.defined)(t.min)?o.previousZoom=[this.min,this.max]:e&&(t.min=e[0],t.max=e[1],o.previousZoom=void 0)}}void 0!==e&&t.preventDefault()}class tr{static compose(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),(0,w.addEvent)(t,"init",ti),(0,w.addEvent)(t,"setExtremes",ts))}constructor(t){this.axis=t}destroy(){this.axis=void 0}toFixedRange(t,e,i,s){let r=this.axis,o=(r.pointRange||0)/2,a=(0,w.pick)(i,r.translate(t,!0,!r.horiz)),n=(0,w.pick)(s,r.translate(e,!0,!r.horiz));return(0,w.defined)(i)||(a=(0,w.correctFloat)(a+o)),(0,w.defined)(s)||(n=(0,w.correctFloat)(n-o)),(0,w.isNumber)(a)&&(0,w.isNumber)(n)||(a=n=void 0),{min:a,max:n}}}var to=E(512),ta=E.n(to);let{seriesTypes:tn}=ta(),tl={height:40,margin:22,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"var(--highcharts-neutral-color-5)",borderColor:"var(--highcharts-neutral-color-40)"},maskFill:"color-mix(var(--highcharts-highlight-color-60) 30%, transparent)",outlineColor:"var(--highcharts-neutral-color-40)",outlineWidth:1,series:{type:void 0===tn.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"var(--highcharts-neutral-color-10)",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"var(--highcharts-neutral-color-100)",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:void 0},tickLength:0,tickWidth:0}},th={"navigator-handle":function(t,e,i,s,r={}){var o,a,n,l,h;let d=r.width?r.width/2:i,c=(0,w.relativeLength)(r.borderRadius||0,Math.min(2*d,s));return[["M",-1.5,(s=r.height||s)/2-3.5],["L",-1.5,s/2+4.5],["M",.5,s/2-3.5],["L",.5,s/2+4.5],...(o=-d-1,a=.5,n=2*d+1,l=s,h={r:c},h?.r?function(t,e,i,s,r){let o=r?.r||0;return[["M",t+o,e],["L",t+i-o,e],["A",o,o,0,0,1,t+i,e+o],["L",t+i,e+s-o],["A",o,o,0,0,1,t+i-o,e+s],["L",t+o,e+s],["A",o,o,0,0,1,t,e+s-o],["L",t,e+o],["A",o,o,0,0,1,t+o,e],["Z"]]}(o,.5,n,l,h):[["M",o,.5],["L",o+n,.5],["L",o+n,.5+l],["L",o,.5+l],["Z"]])]}};var td=E(540),tc=E.n(td);let{defaultOptions:tp}=S(),{composed:tu}=S(),{setFixedRange:tg}={setFixedRange:function(t){let e=this.xAxis[0];(0,w.defined)(e.dataMax)&&(0,w.defined)(e.dataMin)&&t?this.fixedRange=Math.min(t,e.dataMax-e.dataMin):this.fixedRange=t}};function tx(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}let tm=function(t,e,i){tr.compose(e),(0,w.pushUnique)(tu,"Navigator")&&(t.prototype.setFixedRange=tg,(0,w.extend)(tc().prototype.symbols,th),(0,w.extend)(tp,{navigator:tl}),(0,w.addEvent)(i,"afterUpdate",tx))},{composed:tf}=S();!function(t){let e;function i(t){let e=(0,w.pick)(t.options?.min,t.min),i=(0,w.pick)(t.options?.max,t.max);return{axisMin:e,axisMax:i,scrollMin:(0,w.defined)(t.dataMin)?Math.min(e,t.min??1/0,t.dataMin,t.threshold??1/0):e,scrollMax:t.treeGrid?.adjustedMax??((0,w.defined)(t.dataMax)?Math.max(i,t.max??-1/0,t.dataMax,t.threshold??-1/0):i)}}function s(){let t=this.scrollbar,e=t&&!t.options.opposite,i=this.horiz?2:e?3:1;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[i]+=t.size+(t.options.margin||0))}function r(){let t=this;t.options?.scrollbar?.enabled&&(t.options.scrollbar.vertical=!t.horiz,t.options.startOnTick=t.options.endOnTick=!1,t.scrollbar=new e(t.chart.renderer,t.options.scrollbar,t.chart),(0,w.addEvent)(t.scrollbar,"changed",function(e){let s,r,{axisMin:o,axisMax:a,scrollMin:n,scrollMax:l}=i(t),h=t.toPixels(n),d=t.toPixels(l)-h;if((0,w.defined)(o)&&(0,w.defined)(a))if(t.horiz&&!t.reversed||!t.horiz&&t.reversed?(s=Math.min(l,t.toValue(h+d*this.to)),r=Math.max(n,t.toValue(h+d*this.from))):(s=Math.min(l,t.toValue(h+d*(1-this.from))),r=Math.max(n,t.toValue(h+d*(1-this.to)))),this.shouldUpdateExtremes(e.DOMType)){let i="mousemove"!==e.DOMType&&"touchmove"!==e.DOMType&&void 0;t.setExtremes((0,w.correctFloat)(r),(0,w.correctFloat)(s),!0,i,e)}else this.setRange(this.from,this.to)}))}function o(){let t,e,s,{scrollMin:r,scrollMax:o}=i(this),a=this.scrollbar,n=(this.axisTitleMargin||0)+(this.titleOffset||0),l=this.chart.scrollbarsOffsets,h=this.options.margin||0;if(a&&l){if(this.horiz)this.opposite||(l[1]+=n),a.position(this.left,this.top+this.height+2+l[1]-(this.opposite?h:0),this.width,this.height),this.opposite||(l[1]+=h),t=1;else{let e;this.opposite&&(l[0]+=n),e=a.options.opposite?this.left+this.width+2+l[0]-(this.opposite?0:h):this.opposite?0:h,a.position(e,this.top,this.width,this.height),this.opposite&&(l[0]+=h),t=0}if(l[t]+=a.size+(a.options.margin||0),isNaN(r)||isNaN(o)||!(0,w.defined)(this.min)||!(0,w.defined)(this.max)||(0,w.defined)(this.dataMin)&&this.dataMin===this.dataMax)a.setRange(0,1);else if(this.min===this.max){let t=this.pointRange/(this.dataMax+1);e=t*this.min,s=t*(this.max+1),a.setRange(e,s)}else e=(this.toPixels(this.min)-this.toPixels(r))/(this.toPixels(o)-this.toPixels(r)),s=(this.toPixels(this.max)-this.toPixels(r))/(this.toPixels(o)-this.toPixels(r)),this.horiz&&!this.reversed||!this.horiz&&this.reversed?a.setRange(e,s):a.setRange(1-s,1-e)}}t.compose=function(t,i){(0,w.pushUnique)(tf,"Axis.Scrollbar")&&(e=i,(0,w.addEvent)(t,"afterGetOffset",s),(0,w.addEvent)(t,"afterInit",r),(0,w.addEvent)(t,"afterRender",o))}}(f||(f={}));let tb=f,ty={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"var(--highcharts-neutral-color-20)",barBorderWidth:0,barBorderColor:"var(--highcharts-neutral-color-20)",buttonArrowColor:"var(--highcharts-neutral-color-80)",buttonBackgroundColor:"var(--highcharts-neutral-color-10)",buttonBorderColor:"var(--highcharts-neutral-color-20)",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"var(--highcharts-neutral-color-20)",trackBorderRadius:5,trackBorderWidth:1},{defaultOptions:tv}=S(),{composed:tM}=S();class tk{static compose(t){tb.compose(t,tk),(0,w.pushUnique)(tM,"Scrollbar")&&(0,w.extend)(tv,{scrollbar:ty})}static swapXY(t,e){return e&&t.forEach(t=>{let e,i=t.length;for(let s=0;s<i;s+=2)"number"==typeof(e=t[s+1])&&(t[s+1]=t[s+2],t[s+2]=e)}),t}constructor(t,e,i){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(t,e,i)}addEvents(){let t=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,i=this.scrollbarGroup.element,s=this.track.element,r=this.mouseDownHandler.bind(this),o=this.mouseMoveHandler.bind(this),a=this.mouseUpHandler.bind(this),n=[[e[t[0]].element,"click",this.buttonToMinClick.bind(this)],[e[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[s,"click",this.trackClick.bind(this)],[i,"mousedown",r],[i.ownerDocument,"mousemove",o],[i.ownerDocument,"mouseup",a],[i,"touchstart",r],[i.ownerDocument,"touchmove",o],[i.ownerDocument,"touchend",a]];n.forEach(function(t){w.addEvent.apply(null,t)}),this._events=n}buttonToMaxClick(t){let e=(this.to-this.from)*(0,w.pick)(this.options.step,.2);this.updatePosition(this.from+e,this.to+e),(0,w.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}buttonToMinClick(t){let e=(0,w.correctFloat)(this.to-this.from)*(0,w.pick)(this.options.step,.2);this.updatePosition((0,w.correctFloat)(this.from-e),(0,w.correctFloat)(this.to-e)),(0,w.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}cursorToScrollbarPosition(t){let e=this.options,i=e.minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-i),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-i)}}destroy(){let t=this,e=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){t[e]&&t[e].destroy&&(t[e]=t[e].destroy())}),e&&t===e.scrollbar&&(e.scrollbar=null,(0,w.destroyObjectProperties)(e.scrollbarButtons))}drawScrollbarButton(t){let e=this.renderer,i=this.scrollbarButtons,s=this.options,r=this.size,o=e.g().add(this.group);if(i.push(o),s.buttonsEnabled){let a=e.rect().addClass("highcharts-scrollbar-button").add(o);this.chart.styledMode||a.attr({stroke:s.buttonBorderColor,"stroke-width":s.buttonBorderWidth,fill:s.buttonBackgroundColor}),a.attr(a.crisp({x:-.5,y:-.5,width:r,height:r,r:s.buttonBorderRadius},a.strokeWidth()));let n=e.path(tk.swapXY([["M",r/2+(t?-1:1),r/2-3],["L",r/2+(t?-1:1),r/2+3],["L",r/2+(t?2:-2),r/2]],s.vertical)).addClass("highcharts-scrollbar-arrow").add(i[t]);this.chart.styledMode||n.attr({fill:s.buttonArrowColor})}}init(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=(0,w.merge)(ty,tv.scrollbar,e),this.options.margin=(0,w.pick)(this.options.margin,10),this.chart=i,this.size=(0,w.pick)(this.options.size,this.options.height),e.enabled&&(this.render(),this.addEvents())}mouseDownHandler(t){let e=this.chart.pointer?.normalize(t)||t,i=this.cursorToScrollbarPosition(e);this.chartX=i.chartX,this.chartY=i.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(t){let e,i=this.chart.pointer?.normalize(t)||t,s=this.options.vertical?"chartY":"chartX",r=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][s])&&(e=this.cursorToScrollbarPosition(i)[s]-this[s],this.hasDragged=!0,this.updatePosition(r[0]+e,r[1]+e),this.hasDragged&&(0,w.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))}mouseUpHandler(t){this.hasDragged&&(0,w.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(t,e,i,s){let{buttonsEnabled:r,margin:o=0,vertical:a}=this.options,n=this.rendered?"animate":"attr",l=s,h=0;this.group.show(),this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.height=s,this.xOffset=l,this.yOffset=h,a?(this.width=this.yOffset=i=h=this.size,this.xOffset=l=0,this.yOffset=h=r?this.size:0,this.barWidth=s-(r?2*i:0),this.x=t+=o):(this.height=s=this.size,this.xOffset=l=r?this.size:0,this.barWidth=i-(r?2*s:0),this.y=this.y+o),this.group[n]({translateX:t,translateY:this.y}),this.track[n]({width:i,height:s}),this.scrollbarButtons[1][n]({translateX:a?0:i-l,translateY:a?s-h:0})}removeEvents(){this._events.forEach(function(t){w.removeEvent.apply(null,t)}),this._events.length=0}render(){let t=this.renderer,e=this.options,i=this.size,s=this.chart.styledMode,r=t.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=r,this.track=t.rect().addClass("highcharts-scrollbar-track").attr({r:e.trackBorderRadius||0,height:i,width:i}).add(r),s||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});let o=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-(0,w.crisp)(0,o),y:-(0,w.crisp)(0,o)}),this.scrollbarGroup=t.g().add(r),this.scrollbar=t.rect().addClass("highcharts-scrollbar-thumb").attr({height:i-o,width:i-o,r:e.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=t.path(tk.swapXY([["M",-3,i/4],["L",-3,2*i/3],["M",0,i/4],["L",0,2*i/3],["M",3,i/4],["L",3,2*i/3]],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),s||(this.scrollbar.attr({fill:e.barBackgroundColor,stroke:e.barBorderColor,"stroke-width":e.barBorderWidth}),this.scrollbarRifles.attr({stroke:e.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-(0,w.crisp)(0,this.scrollbarStrokeWidth),-(0,w.crisp)(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(t,e){let i,s,r=this.options,o=r.vertical,a=r.minWidth,n=this.barWidth,l=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!(0,w.defined)(n))return;let h=n*Math.min(e,1);i=Math.ceil(n*(t=Math.max(t,0))),this.calculatedWidth=s=(0,w.correctFloat)(h-i),s<a&&(i=(n-a+s)*t,s=a);let d=Math.floor(i+this.xOffset+this.yOffset),c=s/2-.5;this.from=t,this.to=e,o?(this.scrollbarGroup[l]({translateY:d}),this.scrollbar[l]({height:s}),this.scrollbarRifles[l]({translateY:c}),this.scrollbarTop=d,this.scrollbarLeft=0):(this.scrollbarGroup[l]({translateX:d}),this.scrollbar[l]({width:s}),this.scrollbarRifles[l]({translateX:c}),this.scrollbarLeft=d,this.scrollbarTop=0),s<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===r.showFull&&(t<=0&&e>=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(t){return(0,w.pick)(this.options.liveRedraw,S().svg&&!S().isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!(0,w.defined)(t)}trackClick(t){let e=this.chart.pointer?.normalize(t)||t,i=this.to-this.from,s=this.y+this.scrollbarTop,r=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>s||!this.options.vertical&&e.chartX>r?this.updatePosition(this.from+i,this.to+i):this.updatePosition(this.from-i,this.to-i),(0,w.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}update(t){this.destroy(),this.init(this.chart.renderer,(0,w.merge)(!0,this.options,t),this.chart)}updatePosition(t,e){e>1&&(t=(0,w.correctFloat)(1-(0,w.correctFloat)(e-t)),e=1),t<0&&(e=(0,w.correctFloat)(e-t),t=0),this.from=t,this.to=e}}tk.defaultOptions=ty;let{defaultOptions:tE}=S(),{isTouchDevice:tA}=S();function tw(t,...e){let i=[].filter.call(e,w.isNumber);if(i.length)return Math[t].apply(0,i)}class tS{static compose(t,e,i){tt(t,tS),tm(t,e,i)}constructor(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}drawHandle(t,e,i,s){let r=this.navigatorOptions.handles.height;this.handles[e][s](i?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-r)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-r/2-1)})}drawOutline(t,e,i,s){let r=this.navigatorOptions.maskInside,o=this.outline.strokeWidth(),a=o/2,n=o%2/2,l=this.scrollButtonSize,h=this.size,d=this.top,c=this.height,p=d-a,u=d+c,g=this.left,x,m;i?(x=d+e+n,e=d+t+n,m=[["M",g+c,d-l-n],["L",g+c,x],["L",g,x],["M",g,e],["L",g+c,e],["L",g+c,d+h+l]],r&&m.push(["M",g+c,x-a],["L",g+c,e+a])):(g-=l,t+=g+l-n,e+=g+l-n,m=[["M",g,p],["L",t,p],["L",t,u],["M",e,u],["L",e,p],["L",g+h+2*l,p]],r&&m.push(["M",t-a,p],["L",e+a,p])),this.outline[s]({d:m})}drawMasks(t,e,i,s){let r,o,a,n,l=this.left,h=this.top,d=this.height;i?(a=[l,l,l],n=[h,h+t,h+e],o=[d,d,d],r=[t,e-t,this.size-e]):(a=[l,l+t,l+e],n=[h,h,h],o=[t,e-t,this.size-e],r=[d,d,d]),this.shades.forEach((t,e)=>{t[s]({x:a[e],y:n[e],width:o[e],height:r[e]})})}renderElements(){let t=this,e=t.navigatorOptions,i=e.maskInside,s=t.chart,r=s.inverted,o=s.renderer,a={cursor:r?"ns-resize":"ew-resize"},n=t.navigatorGroup??(t.navigatorGroup=o.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!i,i,!i].forEach((i,r)=>{let l=t.shades[r]??(t.shades[r]=o.rect().addClass("highcharts-navigator-mask"+(1===r?"-inside":"-outside")).add(n));s.styledMode||(l.attr({fill:i?e.maskFill:"rgba(0,0,0,0)"}),1===r&&l.css(a))}),t.outline||(t.outline=o.path().addClass("highcharts-navigator-outline").add(n)),s.styledMode||t.outline.attr({"stroke-width":e.outlineWidth,stroke:e.outlineColor}),e.handles?.enabled){let i=!1,r=e.handles,{height:l,width:h}=r;[0,1].forEach(e=>{let d=r.symbols[e];(i=i||t.handles[e]?.symbolName!==d)&&(t.handles[e]?.destroy(),t.handles[e]=o.symbol(d,-h/2-1,0,h,l,r),t.handles[e].attr({zIndex:7-e}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][e]).add(n)),s.inverted&&t.handles[e].attr({rotation:90,rotationOriginX:Math.floor(-h/2),rotationOriginY:(l+h)/2}),s.styledMode||t.handles[e].attr({fill:r.backgroundColor,stroke:r.borderColor,"stroke-width":r.lineWidth,width:r.width,height:r.height,x:-h/2-1,y:0}).css(a)}),i&&(t.partsEventsToUnbind?.forEach(t=>{t()}),t.partsEventsToUnbind=[...t.getPartsEvents("mousedown"),...t.getPartsEvents("touchstart")])}}update(t,e=!1){let i=this.chart,s=i.options.chart.inverted!==i.scrollbar?.options.vertical;if((0,w.merge)(!0,i.options.navigator,t),this.navigatorOptions=i.options.navigator||{},this.setOpposite(),(0,w.defined)(t.enabled)||s)return this.destroy(),this.navigatorEnabled=t.enabled||this.navigatorEnabled,this.init(i);if(this.navigatorEnabled&&(this.isDirty=!0,!1===t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{(0,w.removeEvent)(t,"updatedData",this.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{t.eventsToUnbind.push((0,w.addEvent)(t,"updatedData",this.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=t.height??this.height;let e=this.getXAxisOffsets();this.xAxis.update({...t.xAxis,offsets:e,[i.inverted?"width":"height"]:this.height,[i.inverted?"height":"width"]:void 0},!1),this.yAxis.update({...t.yAxis,[i.inverted?"width":"height"]:this.height},!1)}e&&i.redraw()}render(t,e,i,s){let r=this.chart,o=this.xAxis,a=o.pointRange||0,n=o.navigatorAxis.fake?r.xAxis[0]:o,l=this.navigatorEnabled,h=this.rendered,d=r.inverted,c=r.xAxis[0].minRange,p=r.xAxis[0].options.maxRange,u=this.scrollButtonSize,g,x,m,f=this.scrollbarHeight,b,y;if(this.hasDragged&&!(0,w.defined)(i))return;if(this.isDirty&&this.renderElements(),t=(0,w.correctFloat)(t-a/2),e=(0,w.correctFloat)(e+a/2),!(0,w.isNumber)(t)||!(0,w.isNumber)(e))if(!h)return;else i=0,s=(0,w.pick)(o.width,n.width);this.left=(0,w.pick)(o.left,r.plotLeft+u+(d?r.plotWidth:0));let v=this.size=b=(0,w.pick)(o.len,(d?r.plotHeight:r.plotWidth)-2*u);g=d?f:b+2*u,i=(0,w.pick)(i,o.toPixels(t,!0)),s=(0,w.pick)(s,o.toPixels(e,!0)),(0,w.isNumber)(i)&&Math.abs(i)!==1/0||(i=0,s=g);let M=o.toValue(i,!0),k=o.toValue(s,!0),E=Math.abs((0,w.correctFloat)(k-M));(0,w.defined)(c)&&E<c?this.grabbedLeft?i=o.toPixels(k-c-a,!0):this.grabbedRight&&(s=o.toPixels(M+c+a,!0)):(0,w.defined)(p)&&(0,w.correctFloat)(E-a)>p&&(this.grabbedLeft?i=o.toPixels(k-p-a,!0):this.grabbedRight&&(s=o.toPixels(M+p+a,!0))),this.zoomedMax=(0,w.clamp)(Math.max(i,s),0,v),this.zoomedMin=(0,w.clamp)(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,s),0,v),this.range=this.zoomedMax-this.zoomedMin,v=Math.round(this.zoomedMax);let A=Math.round(this.zoomedMin);l&&(this.navigatorGroup.attr({visibility:"inherit"}),y=h&&!this.hasDragged?"animate":"attr",this.drawMasks(A,v,d,y),this.drawOutline(A,v,d,y),this.navigatorOptions.handles?.enabled&&(this.drawHandle(A,0,d,y),this.drawHandle(v,1,d,y))),this.scrollbar&&(d?(m=this.top-u,x=this.left-f+(l||!n.opposite?0:(n.titleOffset||0)+n.axisTitleMargin),f=b+2*u):(m=this.top+(l?this.height:-f),x=this.left-u),this.scrollbar.position(x,m,g,f),this.scrollbar.setRange(this.zoomedMin/(b||1),this.zoomedMax/(b||1))),this.rendered=!0,this.isDirty=!1,(0,w.fireEvent)(this,"afterRender")}addMouseEvents(){let t,e,i=this,s=i.chart,r=s.container,o=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},o.push((0,w.addEvent)(s.renderTo,"mousemove",t),(0,w.addEvent)(r.ownerDocument,"mouseup",e),(0,w.addEvent)(s.renderTo,"touchmove",t),(0,w.addEvent)(r.ownerDocument,"touchend",e)),i.eventsToUnbind=o,i.series&&i.series[0]&&o.push((0,w.addEvent)(i.series[0].xAxis,"foundExtremes",function(){s.navigator?.modifyNavigatorAxisExtremes()}))}getPartsEvents(t){let e=this,i=[];return["shades","handles"].forEach(s=>{e[s].forEach(function(r,o){i.push((0,w.addEvent)(r.element,t,function(t){e[`${s}Mousedown`](t,o)}))})}),i}shadesMousedown(t,e){t=this.chart.pointer?.normalize(t)||t;let i=this.chart,s=this.xAxis,r=this.zoomedMin,o=this.size,a=this.range,n=this.left,l=t.chartX,h,d,c,p;i.inverted&&(l=t.chartY,n=this.top),1===e?(this.grabbedCenter=l,this.fixedWidth=a,this.dragOffset=l-r):(p=l-n-a/2,0===e?p=Math.max(0,p):2===e&&p+a>=o&&(p=o-a,this.reversedExtremes?(p-=a,d=this.getUnionExtremes()?.dataMin):h=this.getUnionExtremes()?.dataMax),p!==r&&(this.fixedWidth=a,c=s.navigatorAxis.toFixedRange(p,p+a,d,h),(0,w.defined)(c.min)&&(0,w.fireEvent)(this,"setRange",{min:Math.min(c.min,c.max),max:Math.max(c.min,c.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(t,e){t=this.chart.pointer?.normalize(t)||t;let i=this.chart,s=i.xAxis[0],r=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=r?s.min:s.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=r?s.max:s.min),i.setFixedRange(void 0)}onMouseMove(t){let e=this,i=e.chart,s=e.navigatorSize,r=e.range,o=e.dragOffset,a=i.inverted,n=e.left,l;(!t.touches||0!==t.touches[0].pageX)&&(l=(t=i.pointer?.normalize(t)||t).chartX,a&&(n=e.top,l=t.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,l-n,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,l-n)):e.grabbedCenter&&o&&(e.hasDragged=!0,l<o?l=o:l>s+o-r&&(l=s+o-r),e.render(0,0,l-o,l-o+r)),e.hasDragged&&(0,w.pick)(e.scrollbarOptions?.liveRedraw,!tA&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){e.onMouseUp(t)},0)))}onMouseUp(t){let e,i,s,r,o,a,n=this.chart,l=this.xAxis,h=this.scrollbar,d=t.DOMEvent||t,c=n.inverted,p=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!h||!h.hasDragged)||"scrollbar"===t.trigger)&&(s=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?r=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(o=this.fixedExtreme),this.zoomedMax===this.size&&(o=this.reversedExtremes?s.dataMin:s.dataMax),0===this.zoomedMin&&(r=this.reversedExtremes?s.dataMax:s.dataMin),a=l.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,r,o),(0,w.defined)(a.min)&&(0,w.fireEvent)(this,"setRange",{min:Math.min(a.min,a.max),max:Math.max(a.min,a.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:d}})),"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&(0,w.isNumber)(this.zoomedMin)&&(0,w.isNumber)(this.zoomedMax)&&(i=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(i,e,c,p),this.outline&&this.drawOutline(i,e,c,p),this.navigatorOptions.handles?.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(i,0,c,p),this.drawHandle(e,1,c,p)))}removeEvents(){this.eventsToUnbind?.forEach(t=>{t()}),this.eventsToUnbind=void 0,this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){(0,w.removeEvent)(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&(0,w.removeEvent)(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(t){let e=t.options,i=e.navigator||{},s=i.enabled,r=e.scrollbar||{},o=r.enabled,a=s&&i.height||0,n=o&&r.height||0,l=r.buttonsEnabled&&n||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=a,this.scrollbarHeight=n,this.scrollButtonSize=l,this.scrollbarEnabled=o,this.navigatorEnabled=!!s,this.navigatorOptions=i,this.scrollbarOptions=r,this.setOpposite();let h=this,d=h.baseSeries,c=t.xAxis.length,p=t.yAxis.length,u=d&&d[0]&&d[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,h.navigatorEnabled){let e=this.getXAxisOffsets();h.xAxis=new(X())(t,(0,w.merge)({breaks:u.options.breaks,ordinal:u.options.ordinal,overscroll:u.options.overscroll},i.xAxis,{type:"datetime",yAxis:i.yAxis?.id,index:c,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:u.options.ordinal?0:u.options.minPadding,maxPadding:u.options.ordinal?0:u.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:e,width:a}:{offsets:e,height:a}),"xAxis"),h.yAxis=new(X())(t,(0,w.merge)(i.yAxis,{alignTicks:!1,offset:0,index:p,isInternal:!0,reversed:(0,w.pick)(i.yAxis&&i.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:a}:{height:a}),"yAxis"),h.xAxis.clippable=!1,h.yAxis.clippable=!1,d||i.series?.data||i.series?.dataTable?h.updateNavigatorSeries(!1):0===t.series.length&&(h.unbindRedraw=(0,w.addEvent)(t,"beforeRedraw",function(){t.series.length>0&&!h.series&&(h.setBaseSeries(),h.unbindRedraw?.())})),h.reversedExtremes=t.inverted&&!h.xAxis.reversed||!t.inverted&&h.xAxis.reversed,h.renderElements(),h.addMouseEvents()}else h.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,i){let s=t.xAxis[0],r=s.getExtremes(),o=s.len-2*l,a=tw("min",s.options.min,r.dataMin),n=tw("max",s.options.max,r.dataMax)-a;return i?e*n/o+a:o*(e-a)/n},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},h.xAxis.navigatorAxis.axis=h.xAxis,h.xAxis.navigatorAxis.toFixedRange=tr.prototype.toFixedRange.bind(h.xAxis.navigatorAxis);if(t.options.scrollbar?.enabled){let e=(0,w.merge)(t.options.scrollbar,{vertical:t.inverted});(0,w.isNumber)(e.margin)||(e.margin=t.inverted?-3:3),t.scrollbar=h.scrollbar=new tk(t.renderer,e,t),(0,w.addEvent)(h.scrollbar,"changed",function(t){let e=h.size,i=e*this.to,s=e*this.from;h.hasDragged=h.scrollbar?.hasDragged,h.render(0,0,s,i),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){h.onMouseUp(t)})})}h.addBaseSeriesEvents(),h.addChartEvents()}setOpposite(){let t=this.navigatorOptions,e=this.navigatorEnabled,i=this.chart;this.opposite=(0,w.pick)(t.opposite,!!(!e&&i.inverted))}getUnionExtremes(t){let e,i=this.chart.xAxis[0],s=this.chart.time,r=this.xAxis,o=r.options,a=i.options;return t&&null===i.dataMin||(e={dataMin:(0,w.pick)(s.parse(o?.min),tw("min",s.parse(a.min),i.dataMin,r.dataMin,r.min)),dataMax:(0,w.pick)(s.parse(o?.max),tw("max",s.parse(a.max),i.dataMax,r.dataMax,r.max))}),e}setBaseSeries(t,e){let i=this.chart,s=this.baseSeries=[];t=t||i.options.navigator?.baseSeries||(i.series.length?(0,w.find)(i.series,t=>!t.options.isInternal).index:0),(i.series||[]).forEach((e,i)=>{!e.options.isInternal&&(e.options.showInNavigator||(i===t||e.options.id===t)&&!1!==e.options.showInNavigator)&&s.push(e)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,e)}updateNavigatorSeries(t,e){let i=this,s=i.chart,r=i.baseSeries,o={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:this.navigatorOptions.xAxis?.id,yAxis:this.navigatorOptions.yAxis?.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},a=i.series=(i.series||[]).filter(t=>{let e=t.baseSeries;return!(e&&0>r.indexOf(e))||(e&&((0,w.removeEvent)(e,"updatedData",i.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),!1)}),n,l,h=i.navigatorOptions.series,d;if(r&&r.length&&r.forEach(t=>{let c=t.navigatorSeries,p=(0,w.extend)({color:t.color,visible:t.visible},(0,w.isArray)(h)?tE.navigator.series:h);if(c&&!1===i.navigatorOptions.adaptToUpdatedData)return;o.name="Navigator "+r.length,d=(n=t.options||{}).navigatorOptions||{},p.dataLabels=(0,w.splat)(p.dataLabels),(l=(0,w.merge)(n,o,p,d)).pointRange=(0,w.pick)(p.pointRange,d.pointRange,tE.plotOptions[l.type||"line"]?.pointRange);let u=d.data||p.data,g=d.dataTable||p.dataTable;i.hasNavigatorData=i.hasNavigatorData||!!u||!!g,l.data=u||n.data?.slice(0),l.dataTable=g||n.dataTable,c&&c.options?c.update(l,e):(t.navigatorSeries=s.initSeries(l),(0,w.fireEvent)(t.navigatorSeries,"afterUpdate"),t.navigatorSeries.baseSeries=t,a.push(t.navigatorSeries))}),(h?.data||h?.dataTable)&&!(r&&r.length)||(0,w.isArray)(h)){let t=s.options.colors||[];i.hasNavigatorData=!1,(h=(0,w.splat)(h)).forEach((e,r)=>{o.name="Navigator "+(a.length+1),(l=(0,w.merge)(tE.navigator?.series,{color:s.series[r]&&!s.series[r].options.isInternal&&s.series[r].color||t[r]||t[0]},o,e)).data=e.data,l.dataTable=e.dataTable,(l.data||l.dataTable)&&(i.hasNavigatorData=!0,a.push(s.initSeries(l)))})}t&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let t=this,e=t.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push((0,w.addEvent)(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(i=>{i.eventsToUnbind.push((0,w.addEvent)(i,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),i.eventsToUnbind.push((0,w.addEvent)(i,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==this.navigatorOptions.adaptToUpdatedData&&i.xAxis&&i.eventsToUnbind.push((0,w.addEvent)(i,"updatedData",this.updatedDataHandler)),i.eventsToUnbind.push((0,w.addEvent)(i,"remove",function(){e&&(0,w.erase)(e,i),this.navigatorSeries&&t.series&&((0,w.erase)(t.series,this.navigatorSeries),(0,w.defined)(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(t){return this.baseSeries.reduce(function(t,e){return Math.min(t,e.getColumn("x")[0]??t)},t)}modifyNavigatorAxisExtremes(){let t=this.xAxis;if(void 0!==t.getExtremes){let e=this.getUnionExtremes(!0);e&&(e.dataMin!==t.min||e.dataMax!==t.max)&&(t.min=e.dataMin,t.max=e.dataMax)}}modifyBaseAxisExtremes(){let t,e,i=this.chart.navigator,s=this.getExtremes(),r=s.min,o=s.max,a=s.dataMin,n=s.dataMax,l=o-r,h=i?.stickToMin,d=i?.stickToMax,c=(0,w.pick)(this.ordinal?.convertOverscroll(this.options.overscroll),0),p=i.series&&i.series[0],u=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(h&&(t=(e=a)+l),d&&(t=n+c,h||(e=Math.max(a,t-l,i.getBaseSeriesMin(p&&p.xData?p.xData[0]:-Number.MAX_VALUE)))),u&&(h||d)&&(0,w.isNumber)(e)&&(this.min=this.userMin=e,this.max=this.userMax=t)),i.stickToMin=i.stickToMax=null}updatedDataHandler(){let t=this.chart.navigator,e=this.navigatorSeries,i=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size);t.stickToMax=(0,w.pick)(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,i),t.stickToMin=t.shouldStickToMin(this,t),e&&!t.hasNavigatorData&&(e.options.pointStart=this.getColumn("x")[0],e.setData(this.options.data||this.options.dataTable,!1,void 0,!1))}shouldStickToMin(t,e){let i=e.getBaseSeriesMin(t.getColumn("x")[0]),s=t.xAxis,r=s.max,o=s.min,a=s.options.range;return!!((0,w.isNumber)(r)&&(0,w.isNumber)(o))&&(a&&r-i>0?r-i<a:o<=i)}addChartEvents(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push((0,w.addEvent)(this.chart,"redraw",function(){let t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);e&&t.render(e.min,e.max)}),(0,w.addEvent)(this.chart,"getMargins",function(){let t=this.navigator,e=t.opposite?"plotTop":"marginBottom";this.inverted&&(e=t.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(t.navigatorEnabled||!this.inverted?t.height+(this.scrollbar?.options.margin||0)+t.scrollbarHeight:0)+(t.navigatorOptions.margin||0)}),(0,w.addEvent)(this,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))}destroy(){this.removeEvents(),this.xAxis&&((0,w.erase)(this.chart.xAxis,this.xAxis),(0,w.erase)(this.chart.axes,this.xAxis)),this.yAxis&&((0,w.erase)(this.chart.yAxis,this.yAxis),(0,w.erase)(this.chart.axes,this.yAxis)),(this.series||[]).forEach(t=>{t.destroy&&t.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(t=>{this[t]&&this[t].destroy&&this[t].destroy(),this[t]=null}),[this.handles].forEach(t=>{(0,w.destroyObjectProperties)(t)}),this.baseSeries.forEach(t=>{t.navigatorSeries=void 0}),this.navigatorEnabled=!1}}let tB={rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→",rangeSelector:{allText:"All",allTitle:"View all",monthText:"{count}m",monthTitle:"View {count} {#eq count 1}month{else}months{/eq}",yearText:"{count}y",yearTitle:"View {count} {#eq count 1}year{else}years{/eq}",ytdText:"YTD",ytdTitle:"View year to date"}},tO={allButtonsEnabled:!1,buttons:[{type:"month",count:1},{type:"month",count:3},{type:"month",count:6},{type:"ytd"},{type:"year",count:1},{type:"all"}],buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%[ebY]",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"var(--highcharts-highlight-color-80)",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"var(--highcharts-neutral-color-60)",fontSize:"0.8em"}},{defaultOptions:tP}=S(),{composed:tT}=S(),tC=[];function tN(){let t,e,i=this.range,s=i.type,r=this.max,o=this.chart.time,a=function(t,e){let i=o.toParts(t),r=i.slice();"year"===s?r[0]+=e:r[1]+=e;let a=o.makeTime.apply(o,r),n=o.toParts(a);return"month"===s&&i[1]===n[1]&&1===Math.abs(e)&&(r[0]=i[0],r[1]=i[1],r[2]=0),(a=o.makeTime.apply(o,r))-t};(0,w.isNumber)(i)?(t=r-i,e=i):i&&(t=r+a(r,-(i.count||1)),this.chart&&this.chart.setFixedRange(r-t));let n=(0,w.pick)(this.dataMin,5e-324);return(0,w.isNumber)(t)||(t=n),t<=n&&(t=n,void 0===e&&(e=a(t,i.count)),this.newMax=Math.min(t+e,(0,w.pick)(this.dataMax,Number.MAX_VALUE))),(0,w.isNumber)(r)?!(0,w.isNumber)(i)&&i&&i._offsetMin&&(t+=i._offsetMin):t=void 0,t}function tI(){this.rangeSelector?.redrawElements()}function tD(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new c(this))}function tL(){let t=this.rangeSelector;if(t){(0,w.isNumber)(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick);let e=t.options.verticalAlign;t.options.floating||("bottom"===e?this.extraBottomMargin=!0:"top"===e&&(this.extraTopMargin=!0))}}function tR(){let t,e=this.rangeSelector;if(!e)return;let i=this.xAxis[0].getExtremes(),s=this.legend,r=e&&e.options.verticalAlign;(0,w.isNumber)(i.min)&&e.render(i.min,i.max),s?.display&&"top"===r&&r===s.options.verticalAlign&&(t=(0,w.merge)(this.spacingBox),"vertical"===s.options.layout?t.y=this.plotTop:t.y+=e.getHeight(),s.group.placed=!1,s.align(t))}function tz(){for(let t=0,e=tC.length;t<e;++t){let e=tC[t];if(e[0]===this){e[1].forEach(t=>t()),tC.splice(t,1);return}}}function tG(){let t=this.rangeSelector;if(t?.options?.enabled){let{min:e,max:i}=this.xAxis[0].getExtremes();(0,w.isNumber)(e)&&t.inputGroup&&t.inputGroup.getBBox().width<20&&t.render(e,i);let s=t.getHeight(),r=t.options.verticalAlign;t.options.floating||("bottom"===r?this.marginBottom+=s:"middle"!==r&&(this.plotTop+=s))}}function tW(t){let e=t.options.rangeSelector,i=this.extraBottomMargin,s=this.extraTopMargin,r=this.rangeSelector;if(e&&e.enabled&&!(0,w.defined)(r)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=r=new c(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,r){let t=e&&e.verticalAlign||r.options&&r.options.verticalAlign;r.options.floating||("bottom"===t?this.extraBottomMargin=!0:"middle"!==t&&(this.extraTopMargin=!0)),(this.extraBottomMargin!==i||this.extraTopMargin!==s)&&(this.isDirtyBox=!0)}}let tH=function(t,e,i){if(c=i,(0,w.pushUnique)(tT,"RangeSelector")){let i=e.prototype;t.prototype.minFromRange=tN,(0,w.addEvent)(e,"afterGetContainer",tD),(0,w.addEvent)(e,"beforeRender",tL),(0,w.addEvent)(e,"destroy",tz),(0,w.addEvent)(e,"getMargins",tG),(0,w.addEvent)(e,"redraw",tR),(0,w.addEvent)(e,"update",tW),(0,w.addEvent)(e,"beforeRedraw",tI),i.callbacks.push(tR),(0,w.extend)(tP,{rangeSelector:tO}),(0,w.extend)(tP.lang,tB)}};var tF=E(28),tU=E.n(tF),tV=E(984),tX=E.n(tV);let{defaultOptions:tY}=S(),{format:tj}=tX();function t_(t){let e=e=>RegExp(`%[[a-zA-Z]*${e}`).test(t);if((0,w.isString)(t)?-1!==t.indexOf("%L"):t.fractionalSecondDigits)return"text";let i=(0,w.isString)(t)?["a","A","d","e","w","b","B","m","o","y","Y"].some(e):t.dateStyle||t.day||t.month||t.year,s=(0,w.isString)(t)?["H","k","I","l","M","S"].some(e):t.timeStyle||t.hour||t.minute||t.second;return i&&s?"datetime-local":i?"date":s?"time":"text"}class tq{static compose(t,e){tH(t,e,tq)}constructor(t){this.isDirty=!1,this.buttonOptions=[],this.initialButtonGroupWidth=0,this.maxButtonWidth=()=>{let t=0;return this.buttons.forEach(e=>{let i=e.getBBox();i.width>t&&(t=i.width)}),t},this.init(t)}clickButton(t,e){let i=this.chart,s=this.buttonOptions[t],r=i.xAxis[0],o=i.scroller&&i.scroller.getUnionExtremes()||r||{},a=s.type,n=s.dataGrouping,l=o.dataMin,h=o.dataMax,d,c=(0,w.isNumber)(r?.max)?Math.round(Math.min(r.max,h??r.max)):void 0,p,u=s._range,g,x,m,f=!0;if(null!==l&&null!==h){if(this.setSelected(t),n&&(this.forcedDataGrouping=!0,X().prototype.setDataGrouping.call(r||{chart:this.chart},n,!1),this.frozenStates=s.preserveDataGrouping),"month"===a||"year"===a)r?(x={range:s,max:c,chart:i,dataMin:l,dataMax:h},d=r.minFromRange.call(x),(0,w.isNumber)(x.newMax)&&(c=x.newMax),f=!1):u=s;else if(u)(0,w.isNumber)(c)&&(c=Math.min((d=Math.max(c-u,l))+u,h),f=!1);else if("ytd"===a)if(r)!r.hasData()||(0,w.isNumber)(h)&&(0,w.isNumber)(l)||(l=Number.MAX_VALUE,h=-Number.MAX_VALUE,i.series.forEach(t=>{let e=t.getColumn("x");e.length&&(l=Math.min(e[0],l),h=Math.max(e[e.length-1],h))}),e=!1),(0,w.isNumber)(h)&&(0,w.isNumber)(l)&&(d=g=(m=this.getYTDExtremes(h,l)).min,c=m.max);else{this.deferredYTDClick=t;return}else"all"===a&&r&&(i.navigator&&i.navigator.baseSeries[0]&&(i.navigator.baseSeries[0].xAxis.options.range=void 0),d=l,c=h);if(f&&s._offsetMin&&(0,w.defined)(d)&&(d+=s._offsetMin),s._offsetMax&&(0,w.defined)(c)&&(c+=s._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=t+1),r)((0,w.isNumber)(d)||(0,w.isNumber)(c))&&(r.setExtremes(d,c,(0,w.pick)(e,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:s}),i.setFixedRange(s._range));else{p=(0,w.splat)(i.options.xAxis||{})[0];let t=(0,w.addEvent)(i,"afterCreateAxes",function(){let t=i.xAxis[0];t.range=t.options.range=u,t.min=t.options.min=g});(0,w.addEvent)(i,"load",function(){let e=i.xAxis[0];i.setFixedRange(s._range),e.options.range=p.range,e.options.min=p.min,t()})}(0,w.fireEvent)(this,"afterBtnClick")}}setSelected(t){this.selected=this.options.selected=t}init(t){let e=this,i=t.options.rangeSelector,s=t.options.lang,r=i.buttons,o=i.selected,a=function(){let t=e.minInput,i=e.maxInput;t&&t.blur&&(0,w.fireEvent)(t,"blur"),i&&i.blur&&(0,w.fireEvent)(i,"blur")};e.chart=t,e.options=i,e.buttons=[],e.buttonOptions=r.map(t=>(t.type&&s.rangeSelector&&(t.text??(t.text=s.rangeSelector[`${t.type}Text`]),t.title??(t.title=s.rangeSelector[`${t.type}Title`])),t.text=tj(t.text,{count:t.count||1}),t.title=tj(t.title,{count:t.count||1}),t)),this.eventsToUnbind=[],this.eventsToUnbind.push((0,w.addEvent)(t.container,"mousedown",a)),this.eventsToUnbind.push((0,w.addEvent)(t,"resize",a)),r.forEach(e.computeButtonRange),void 0!==o&&r[o]&&this.clickButton(o,!1),this.eventsToUnbind.push((0,w.addEvent)(t,"load",function(){t.xAxis&&t.xAxis[0]&&(0,w.addEvent)(t.xAxis[0],"setExtremes",function(i){(0,w.isNumber)(this.max)&&(0,w.isNumber)(this.min)&&this.max-this.min!==t.fixedRange&&"rangeSelectorButton"!==i.trigger&&"updatedData"!==i.trigger&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()}updateButtonStates(){let t=this,e=this.chart,i=this.dropdown,s=this.dropdownLabel,r=e.xAxis[0],o=Math.round(r.max-r.min),a=!r.hasVisibleSeries,n=24*36e5,l=e.scroller&&e.scroller.getUnionExtremes()||r,h=l.dataMin,d=l.dataMax,c=t.getYTDExtremes(d,h),p=c.min,u=c.max,g=t.selected,x=t.options.allButtonsEnabled,m=Array(t.buttonOptions.length).fill(0),f=(0,w.isNumber)(g),b=t.buttons,y=!1,v=null;t.buttonOptions.forEach((e,i)=>{let s=e._range,l=e.type,c=e.count||1,b=e._offsetMax-e._offsetMin,M=i===g,k=s>d-h,E=s<r.minRange,A=!1,w=s===o;if(M&&k&&(y=!0),r.isOrdinal&&r.ordinal?.positions&&s&&o<s){let t=r.ordinal.positions;t[t.length-1]-t[0]>s&&(w=!0)}else("month"===l||"year"===l)&&o+36e5>=({month:28,year:365})[l]*n*c-b&&o-36e5<=({month:31,year:366})[l]*n*c+b?w=!0:"ytd"===l?(w=u-p+b===o,A=!M):"all"===l&&(w=r.max-r.min>=d-h);let S=!x&&!(y&&"all"===l)&&(k||E||a),B=y&&"all"===l||!A&&w||M&&t.frozenStates;S?m[i]=3:B&&(!f||i===g)&&(v=i)}),null!==v?(m[v]=2,t.setSelected(v),this.dropdown&&(this.dropdown.selectedIndex=v+1)):(t.setSelected(),this.dropdown&&(this.dropdown.selectedIndex=-1),s&&(s.setState(0),s.attr({text:(tY.lang.rangeSelectorZoom||"")+" ▾"})));for(let e=0;e<m.length;e++){let r=m[e],o=b[e];if(o.state!==r&&(o.setState(r),i)){i.options[e+1].disabled=3===r,2===r&&(s&&(s.setState(2),s.attr({text:t.buttonOptions[e].text+" ▾"})),i.selectedIndex=e+1);let o=s.getBBox();(0,w.css)(i,{width:`${o.width}px`,height:`${o.height}px`})}}}computeButtonRange(t){let e=t.type,i=t.count||1,s={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};s[e]?t._range=s[e]*i:("month"===e||"year"===e)&&(t._range=24*({month:30,year:365})[e]*36e5*i),t._offsetMin=(0,w.pick)(t.offsetMin,0),t._offsetMax=(0,w.pick)(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin}getInputValue(t){let e="min"===t?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,s=this.chart.time;return e?("text"===e.type&&i.inputDateParser||this.defaultInputDateParser)(e.value,"UTC"===s.timezone,s):0}setInputValue(t,e){let i=this.options,s=this.chart.time,r="min"===t?this.minInput:this.maxInput,o="min"===t?this.minDateBox:this.maxDateBox;if(r){r.setAttribute("type",t_(i.inputDateFormat||"%e %b %Y"));let t=r.getAttribute("data-hc-time"),a=(0,w.defined)(t)?Number(t):void 0;if((0,w.defined)(e)){let t=a;(0,w.defined)(t)&&r.setAttribute("data-hc-time-previous",t),r.setAttribute("data-hc-time",e),a=e}r.value=s.dateFormat(this.inputTypeFormats[r.type]||i.inputEditDateFormat,a),o&&o.attr({text:s.dateFormat(i.inputDateFormat,a)})}}setInputExtremes(t,e,i){let s="min"===t?this.minInput:this.maxInput;if(s){let t=this.inputTypeFormats[s.type],r=this.chart.time;if(t){let o=r.dateFormat(t,e);s.min!==o&&(s.min=o);let a=r.dateFormat(t,i);s.max!==a&&(s.max=a)}}}showInput(t){let e="min"===t?this.minDateBox:this.maxDateBox,i="min"===t?this.minInput:this.maxInput;if(i&&e&&this.inputGroup){let t="text"===i.type,{translateX:s=0,translateY:r=0}=this.inputGroup,{x:o=0,width:a=0,height:n=0}=e,{inputBoxWidth:l}=this.options;(0,w.css)(i,{width:t?a+(l?-2:20)+"px":"auto",height:n-2+"px",border:"2px solid silver"}),t&&l?(0,w.css)(i,{left:s+o+"px",top:r+"px"}):(0,w.css)(i,{left:Math.min(Math.round(o+s-(i.offsetWidth-a)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:r-(i.offsetHeight-n)/2+"px"})}}hideInput(t){let e="min"===t?this.minInput:this.maxInput;e&&(0,w.css)(e,{top:"-9999em",border:0,width:"1px",height:"1px"})}defaultInputDateParser(t,e,i){return i?.parse(t)||0}drawInput(t){let{chart:e,div:i,inputGroup:s}=this,r=this,o=e.renderer.style||{},a=e.renderer,n=e.options.rangeSelector,l=tY.lang,h="min"===t;function d(t){let{maxInput:i,minInput:s}=r,o=e.xAxis[0],a=e.scroller?.getUnionExtremes()||o,n=a.dataMin,l=a.dataMax,d=e.xAxis[0].getExtremes()[t],c=r.getInputValue(t);(0,w.isNumber)(c)&&c!==d&&(h&&i&&(0,w.isNumber)(n)?c>Number(i.getAttribute("data-hc-time"))?c=void 0:c<n&&(c=n):s&&(0,w.isNumber)(l)&&(c<Number(s.getAttribute("data-hc-time"))?c=void 0:c>l&&(c=l)),void 0!==c&&o.setExtremes(h?c:o.min,h?o.max:c,void 0,void 0,{trigger:"rangeSelectorInput"}))}let c=l[h?"rangeSelectorFrom":"rangeSelectorTo"]||"",p=a.label(c,0).addClass("highcharts-range-label").attr({padding:2*!!c,height:c?n.inputBoxHeight:0}).add(s),u=a.label("",0).addClass("highcharts-range-input").attr({padding:2,width:n.inputBoxWidth,height:n.inputBoxHeight,"text-align":"center"}).on("click",function(){r.showInput(t),r[t+"Input"].focus()});e.styledMode||u.attr({stroke:n.inputBoxBorderColor,"stroke-width":1}),u.add(s);let g=(0,w.createElement)("input",{name:t,className:"highcharts-range-selector"},void 0,i);g.setAttribute("type",t_(n.inputDateFormat||"%e %b %Y")),e.styledMode||(p.css((0,w.merge)(o,n.labelStyle)),u.css((0,w.merge)({color:"var(--highcharts-neutral-color-80)"},o,n.inputStyle)),(0,w.css)(g,(0,w.extend)({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:o.fontSize,fontFamily:o.fontFamily,top:"-9999em"},n.inputStyle))),g.onfocus=()=>{r.showInput(t)},g.onblur=()=>{g===S().doc.activeElement&&d(t),r.hideInput(t),r.setInputValue(t),g.blur()};let x=!1;return g.onchange=()=>{x||(d(t),r.hideInput(t),g.blur())},g.onkeypress=e=>{13===e.keyCode&&d(t)},g.onkeydown=e=>{x=!0,("ArrowUp"===e.key||"ArrowDown"===e.key||"Tab"===e.key)&&d(t)},g.onkeyup=()=>{x=!1},{dateBox:u,input:g,label:p}}getPosition(){let t=this.chart,e=t.options.rangeSelector,i="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0;return{buttonTop:i+e.buttonPosition.y,inputTop:i+e.inputPosition.y-10}}getYTDExtremes(t,e){let i=this.chart.time,s=i.toParts(t)[0];return{max:t,min:Math.max(e,i.makeTime(s,0))}}createElements(){let t=this.chart,e=t.renderer,i=t.container,s=t.options,r=s.rangeSelector,o=r.inputEnabled,a=(0,w.pick)(s.chart.style?.zIndex,0)+1;!1!==r.enabled&&(this.group=e.g("range-selector-group").attr({zIndex:7}).add(),this.div=(0,w.createElement)("div",void 0,{position:"relative",height:0,zIndex:a}),this.buttonOptions.length&&this.renderButtons(),i.parentNode&&i.parentNode.insertBefore(this.div,i),o&&this.createInputs())}createInputs(){this.inputGroup=this.chart.renderer.g("input-group").add(this.group);let t=this.drawInput("min");this.minDateBox=t.dateBox,this.minLabel=t.label,this.minInput=t.input;let e=this.drawInput("max");this.maxDateBox=e.dateBox,this.maxLabel=e.label,this.maxInput=e.input}render(t,e){if(!1===this.options.enabled)return;let i=this.chart,s=i.options.rangeSelector;if(s.inputEnabled){this.inputGroup||this.createInputs(),this.setInputValue("min",t),this.setInputValue("max",e),this.chart.styledMode||(this.maxLabel?.css(s.labelStyle),this.minLabel?.css(s.labelStyle));let r=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if((0,w.defined)(r.dataMin)&&(0,w.defined)(r.dataMax)){let t=i.xAxis[0].minRange||0;this.setInputExtremes("min",r.dataMin,Math.min(r.dataMax,this.getInputValue("max"))-t),this.setInputExtremes("max",Math.max(r.dataMin,this.getInputValue("min"))+t,r.dataMax)}if(this.inputGroup){let t=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(e=>{if(e){let{width:i}=e.getBBox();i&&(e.attr({x:t}),t+=i+s.inputSpacing)}})}}else this.inputGroup&&(this.inputGroup.destroy(),delete this.inputGroup);!this.chart.styledMode&&this.zoomText&&this.zoomText.css(s.labelStyle),this.alignElements(),this.updateButtonStates()}renderButtons(){var t;let{chart:e,options:i}=this,s=tY.lang,r=e.renderer,o=(0,w.merge)(i.buttonTheme),a=o&&o.states;delete o.width,delete o.states,this.buttonGroup=r.g("range-selector-buttons").add(this.group);let n=this.dropdown=(0,w.createElement)("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),l=e.userOptions.rangeSelector?.buttonTheme;this.dropdownLabel=r.button("",0,0,()=>{},(0,w.merge)(o,{"stroke-width":(0,w.pick)(o["stroke-width"],0),width:"auto",paddingLeft:(0,w.pick)(i.buttonTheme.paddingLeft,l?.padding,8),paddingRight:(0,w.pick)(i.buttonTheme.paddingRight,l?.padding,8)}),a&&a.hover,a&&a.select,a&&a.disabled).hide().add(this.group),(0,w.addEvent)(n,"touchstart",()=>{n.style.fontSize="16px"});let h=S().isMS?"mouseover":"mouseenter",d=S().isMS?"mouseout":"mouseleave";(0,w.addEvent)(n,h,()=>{(0,w.fireEvent)(this.dropdownLabel.element,h)}),(0,w.addEvent)(n,d,()=>{(0,w.fireEvent)(this.dropdownLabel.element,d)}),(0,w.addEvent)(n,"change",()=>{let t=this.buttons[n.selectedIndex-1];(0,w.fireEvent)(t.element,"click")}),this.zoomText=r.label(s.rangeSelectorZoom||"",0).attr({padding:i.buttonTheme.padding,height:i.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(i.labelStyle),(t=i.buttonTheme)["stroke-width"]??(t["stroke-width"]=0)),(0,w.createElement)("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,n),this.createButtons()}createButtons(){let{options:t}=this,e=(0,w.merge)(t.buttonTheme),i=e&&e.states,s=e.width||28;delete e.width,delete e.states,this.buttonOptions.forEach((t,e)=>{this.createButton(t,e,s,i)})}createButton(t,e,i,s){let{dropdown:r,buttons:o,chart:a,options:n}=this,l=a.renderer,h=(0,w.merge)(n.buttonTheme);r?.add((0,w.createElement)("option",{textContent:t.title||t.text}),e+2),o[e]=l.button(t.text??"",0,0,i=>{let s,r=t.events&&t.events.click;r&&(s=r.call(t,i)),!1!==s&&this.clickButton(e),this.isActive=!0},h,s&&s.hover,s&&s.select,s&&s.disabled).attr({"text-align":"center",width:i}).add(this.buttonGroup),t.title&&o[e].attr("title",t.title)}alignElements(){let{buttonGroup:t,buttons:e,chart:i,group:s,inputGroup:r,options:o,zoomText:a}=this,n=i.options,l=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,{buttonPosition:h,inputPosition:d,verticalAlign:c}=o,p=(t,e,s)=>l&&this.titleCollision(i)&&"top"===c&&s&&e.y-t.getBBox().height-12<(l.y||0)+(l.height||0)+i.spacing[0]?-40:0,u=i.plotLeft;if(s&&h&&d){let n=h.x-i.spacing[3];if(t){if(this.positionButtons(),!this.initialButtonGroupWidth){let t=0;a&&(t+=a.getBBox().width+5),e.forEach((i,s)=>{t+=i.width||0,s!==e.length-1&&(t+=o.buttonSpacing)}),this.initialButtonGroupWidth=t}u-=i.spacing[3];let r=p(t,h,"right"===h.align||"right"===d.align);this.alignButtonGroup(r),this.buttonGroup?.translateY&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),s.placed=t.placed=i.hasLoaded}let l=0;o.inputEnabled&&r&&(l=p(r,d,"right"===h.align||"right"===d.align),"left"===d.align?n=u:"right"===d.align&&(n=-Math.max(i.axisOffset[1],-l)),r.align({y:d.y,width:r.getBBox().width,align:d.align,x:d.x+n-2},!0,i.spacingBox),r.placed=i.hasLoaded),this.handleCollision(l),s.align({verticalAlign:c},!0,i.spacingBox);let g=s.alignAttr.translateY,x=s.getBBox().height+20,m=0;if("bottom"===c){let t=i.legend&&i.legend.options;m=g-(x=x+(t&&"bottom"===t.verticalAlign&&t.enabled&&!t.floating?i.legend.legendHeight+(0,w.pick)(t.margin,10):0)-20)-(o.floating?0:o.y)-(i.titleOffset?i.titleOffset[2]:0)-10}"top"===c?(o.floating&&(m=0),i.titleOffset&&i.titleOffset[0]&&(m=i.titleOffset[0]),m+=i.margin[0]-i.spacing[0]||0):"middle"===c&&(d.y===h.y?m=g:(d.y||h.y)&&(d.y<0||h.y<0?m-=Math.min(d.y,h.y):m=g-x)),s.translate(o.x,o.y+Math.floor(m));let{minInput:f,maxInput:b,dropdown:y}=this;o.inputEnabled&&f&&b&&(f.style.marginTop=s.translateY+"px",b.style.marginTop=s.translateY+"px"),y&&(y.style.marginTop=s.translateY+"px")}}redrawElements(){let t=this.chart,{inputBoxHeight:e,inputBoxBorderColor:i}=this.options;if(this.maxDateBox?.attr({height:e}),this.minDateBox?.attr({height:e}),t.styledMode||(this.maxDateBox?.attr({stroke:i}),this.minDateBox?.attr({stroke:i})),this.isDirty){this.isDirty=!1,this.isCollapsed=void 0;let t=this.options.buttons??[],e=Math.min(t.length,this.buttonOptions.length),{dropdown:i,options:s}=this,r=(0,w.merge)(s.buttonTheme),o=r&&r.states,a=r.width||28;if(t.length<this.buttonOptions.length)for(let e=this.buttonOptions.length-1;e>=t.length;e--){let t=this.buttons.pop();t?.destroy(),this.dropdown?.options.remove(e+1)}for(let s=e-1;s>=0;s--){let e=t[s];this.buttons[s].destroy(),i?.options.remove(s+1),this.createButton(e,s,a,o),this.computeButtonRange(e)}if(t.length>this.buttonOptions.length)for(let e=this.buttonOptions.length;e<t.length;e++)this.createButton(t[e],e,a,o),this.computeButtonRange(t[e]);this.buttonOptions=this.options.buttons??[],(0,w.defined)(this.options.selected)&&this.buttons.length&&this.clickButton(this.options.selected,!1)}}alignButtonGroup(t,e){let{chart:i,options:s,buttonGroup:r,dropdown:o,dropdownLabel:a}=this,{buttonPosition:n}=s,l=i.plotLeft-i.spacing[3],h=n.x-i.spacing[3],d=i.plotLeft;"right"===n.align?(h+=t-l,this.hasVisibleDropdown&&(d=i.chartWidth+t-this.maxButtonWidth()-20)):"center"===n.align&&(h-=l/2,this.hasVisibleDropdown&&(d=i.chartWidth/2-this.maxButtonWidth())),o&&(0,w.css)(o,{left:d+"px",top:r?.translateY+"px"}),a?.attr({x:d}),r&&r.align({y:n.y,width:(0,w.pick)(e,this.initialButtonGroupWidth),align:n.align,x:h},!0,i.spacingBox)}positionButtons(){let{buttons:t,chart:e,options:i,zoomText:s}=this,r=e.hasLoaded?"animate":"attr",{buttonPosition:o}=i,a=e.plotLeft,n=a;s&&"hidden"!==s.visibility&&(s[r]({x:(0,w.pick)(a+o.x,a)}),n+=o.x+s.getBBox().width+5);for(let e=0,s=this.buttonOptions.length;e<s;++e)"hidden"!==t[e].visibility?(t[e][r]({x:n}),n+=(t[e].width||0)+i.buttonSpacing):t[e][r]({x:a})}handleCollision(t){let{chart:e,buttonGroup:i,inputGroup:s,initialButtonGroupWidth:r}=this,{buttonPosition:o,dropdown:a,inputPosition:n}=this.options,l=()=>{s&&i&&s.attr({translateX:s.alignAttr.translateX+(e.axisOffset[1]>=-t?0:-t),translateY:s.alignAttr.translateY+i.getBBox().height+10})};s&&i?n.align===o.align?(l(),r>e.plotWidth+t-20?this.collapseButtons():this.expandButtons()):r-t+s.getBBox().width>e.plotWidth?"responsive"===a||"always"===a?this.collapseButtons():l():this.expandButtons():i&&"responsive"===a&&(r>e.plotWidth?this.collapseButtons():this.expandButtons()),i&&("always"===a&&this.collapseButtons(),"never"===a&&this.expandButtons()),this.alignButtonGroup(t)}collapseButtons(){let{buttons:t,zoomText:e}=this;!0!==this.isCollapsed&&(this.isCollapsed=!0,e.hide(),t.forEach(t=>void t.hide()),this.showDropdown())}expandButtons(){let{buttons:t,zoomText:e}=this;!1!==this.isCollapsed&&(this.isCollapsed=!1,this.hideDropdown(),e.show(),t.forEach(t=>void t.show()),this.positionButtons())}showDropdown(){let{buttonGroup:t,dropdownLabel:e,dropdown:i}=this;t&&i&&(e.show(),(0,w.css)(i,{visibility:"inherit"}),this.hasVisibleDropdown=!0)}hideDropdown(){let{dropdown:t}=this;t&&(this.dropdownLabel.hide(),(0,w.css)(t,{visibility:"hidden"}),this.hasVisibleDropdown=!1)}getHeight(){let t=this.options,e=this.group,i=t.inputPosition,s=t.buttonPosition,r=t.y,o=s.y,a=i.y,n=0;if(t.height)return t.height;this.alignElements(),n=e?e.getBBox(!0).height+13+r:0;let l=Math.min(a,o);return(a<0&&o<0||a>0&&o>0)&&(n+=Math.abs(l)),n}titleCollision(t){return!(t.options.title.text||t.options.subtitle.text)}update(t,e=!0){let i=this.chart;if((0,w.merge)(!0,this.options,t),this.options.selected&&this.options.selected>=this.options.buttons.length&&(this.options.selected=void 0,i.options.rangeSelector.selected=void 0),(0,w.defined)(t.enabled))return this.destroy(),this.init(i);this.isDirty=!!t.buttons||!!t.buttonTheme,e&&this.render()}destroy(){let t=this,e=t.minInput,i=t.maxInput;t.eventsToUnbind&&(t.eventsToUnbind.forEach(t=>t()),t.eventsToUnbind=void 0),(0,w.destroyObjectProperties)(t.buttons),e&&(e.onfocus=e.onblur=e.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),(0,w.objectEach)(t,function(e,i){e&&"chart"!==i&&(e instanceof tU()?e.destroy():e instanceof window.HTMLElement&&(0,w.discardElement)(e),delete t[i]),e!==tq.prototype[i]&&(t[i]=null)},this),this.buttons=[]}}(0,w.extend)(tq.prototype,{inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});function tZ(t,e){let i=[];for(let s=0;s<t.length;s++){let r=t[s][1],o=t[s][2];if("number"==typeof r&&"number"==typeof o)if(0===s)i.push(["M",r,o]);else if(s===t.length-1)i.push(["L",r,o]);else if(e){let a=t[s-1],n=t[s+1];if(a&&n){let t=a[1],s=a[2],l=n[1],h=n[2];if("number"==typeof t&&"number"==typeof l&&"number"==typeof s&&"number"==typeof h&&t!==l&&s!==h){let a=t<l?1:-1,n=s<h?1:-1;i.push(["L",r-a*Math.min(Math.abs(r-t),e),o-n*Math.min(Math.abs(o-s),e)],["C",r,o,r,o,r+a*Math.min(Math.abs(r-l),e),o+n*Math.min(Math.abs(o-h),e)])}}}else i.push(["L",r,o])}return i}let{min:t$,max:tK,abs:tJ}=Math;function tQ(t,e,i){let s=e-1e-7,r=i||0,o=t.length-1,a,n;for(;r<=o;)if((n=s-t[a=o+r>>1].xMin)>0)r=a+1;else{if(!(n<0))return a;o=a-1}return r>0?r-1:0}function t0(t,e){let i=tQ(t,e.x+1)+1;for(;i--;){var s;if(t[i].xMax>=e.x&&(s=t[i],e.x<=s.xMax&&e.x>=s.xMin&&e.y<=s.yMax&&e.y>=s.yMin))return i}return -1}function t1(t){let e=[];if(t.length){e.push(["M",t[0].start.x,t[0].start.y]);for(let i=0;i<t.length;++i)e.push(["L",t[i].end.x,t[i].end.y])}return e}function t2(t,e){t.yMin=tK(t.yMin,e.yMin),t.yMax=t$(t.yMax,e.yMax),t.xMin=tK(t.xMin,e.xMin),t.xMax=t$(t.xMax,e.xMax)}let t5=function(t,e,i){let s=[],r=i.chartObstacles,o=t0(r,t),a=t0(r,e),n,l=(0,w.pick)(i.startDirectionX,tJ(e.x-t.x)>tJ(e.y-t.y))?"x":"y",h,d,c,p;function u(t,e,i,s,r){let o={x:t.x,y:t.y};return o[e]=i[s||e]+(r||0),o}function g(t,e,i){let s=tJ(e[i]-t[i+"Min"])>tJ(e[i]-t[i+"Max"]);return u(e,i,t,i+(s?"Max":"Min"),s?1:-1)}a>-1?(n={start:d=g(r[a],e,l),end:e},p=d):p=e,o>-1&&(d=g(h=r[o],t,l),s.push({start:t,end:d}),d[l]>=t[l]==d[l]>=p[l]&&(c=t[l="y"===l?"x":"y"]<e[l],s.push({start:d,end:u(d,l,h,l+(c?"Max":"Min"),c?1:-1)}),l="y"===l?"x":"y"));let x=s.length?s[s.length-1].end:t;d=u(x,l,p),s.push({start:x,end:d});let m=u(d,l="y"===l?"x":"y",p);return s.push({start:d,end:m}),n&&s.push(n),{path:tZ(t1(s),i.radius),obstacles:s}};function t3(t,e,i){let s=(0,w.pick)(i.startDirectionX,tJ(e.x-t.x)>tJ(e.y-t.y)),r=s?"x":"y",o=[],a=i.obstacleMetrics,n=t$(t.x,e.x)-a.maxWidth-10,l=tK(t.x,e.x)+a.maxWidth+10,h=t$(t.y,e.y)-a.maxHeight-10,d=tK(t.y,e.y)+a.maxHeight+10,c,p,u,g=!1,x=i.chartObstacles,m=tQ(x,l),f=tQ(x,n);function b(t,e,i){let s,r,o,a,n=t.x<e.x?1:-1;t.x<e.x?(s=t,r=e):(s=e,r=t),t.y<e.y?(a=t,o=e):(a=e,o=t);let l=n<0?t$(tQ(x,r.x),x.length-1):0;for(;x[l]&&(n>0&&x[l].xMin<=r.x||n<0&&x[l].xMax>=s.x);){if(x[l].xMin<=r.x&&x[l].xMax>=s.x&&x[l].yMin<=o.y&&x[l].yMax>=a.y){if(i)return{y:t.y,x:t.x<e.x?x[l].xMin-1:x[l].xMax+1,obstacle:x[l]};return{x:t.x,y:t.y<e.y?x[l].yMin-1:x[l].yMax+1,obstacle:x[l]}}l+=n}return e}function y(t,e,i,s,r){let o=r.soft,a=r.hard,n=s?"x":"y",l={x:e.x,y:e.y},h={x:e.x,y:e.y},d=t[n+"Max"]>=o[n+"Max"],c=t[n+"Min"]<=o[n+"Min"],p=t[n+"Max"]>=a[n+"Max"],u=t[n+"Min"]<=a[n+"Min"],g=tJ(t[n+"Min"]-e[n]),x=tJ(t[n+"Max"]-e[n]),m=10>tJ(g-x)?e[n]<i[n]:x<g;h[n]=t[n+"Min"],l[n]=t[n+"Max"];let f=b(e,h,s)[n]!==h[n],y=b(e,l,s)[n]!==l[n];return m=f?!y||m:!y&&m,m=c?!d||m:!d&&m,m=u?!p||m:!p&&m}if((m=t0(x=x.slice(f,m+1),e))>-1){var v,M;let s,r;v=x[m],M=e,s=t$(v.xMax-M.x,M.x-v.xMin)<t$(v.yMax-M.y,M.y-v.yMin),r=y(v,M,t,s,{soft:i.hardBounds,hard:i.hardBounds}),u=s?{y:M.y,x:v[r?"xMax":"xMin"]+(r?1:-1)}:{x:M.x,y:v[r?"yMax":"yMin"]+(r?1:-1)},o.push({end:e,start:u}),e=u}for(;(m=t0(x,e))>-1;)p=e[r]-t[r]<0,(u={x:e.x,y:e.y})[r]=x[m][p?r+"Max":r+"Min"]+(p?1:-1),o.push({end:e,start:u}),e=u;return{path:t1(c=(c=function t(e,s,r){let o,a,c,p,u,m,f;if(e.x===s.x&&e.y===s.y)return[];let v=r?"x":"y",M=i.obstacleOptions.margin,k={soft:{xMin:n,xMax:l,yMin:h,yMax:d},hard:i.hardBounds};return(u=t0(x,e))>-1?(p=y(u=x[u],e,s,r,k),t2(u,i.hardBounds),f=r?{y:e.y,x:u[p?"xMax":"xMin"]+(p?1:-1)}:{x:e.x,y:u[p?"yMax":"yMin"]+(p?1:-1)},(m=t0(x,f))>-1&&(t2(m=x[m],i.hardBounds),f[v]=p?tK(u[v+"Max"]-M+1,(m[v+"Min"]+u[v+"Max"])/2):t$(u[v+"Min"]+M-1,(m[v+"Max"]+u[v+"Min"])/2),e.x===f.x&&e.y===f.y?(g&&(f[v]=p?tK(u[v+"Max"],m[v+"Max"])+1:t$(u[v+"Min"],m[v+"Min"])-1),g=!g):g=!1),a=[{start:e,end:f}]):(o=b(e,{x:r?s.x:e.x,y:r?e.y:s.y},r),a=[{start:e,end:{x:o.x,y:o.y}}],o[r?"x":"y"]!==s[r?"x":"y"]&&(p=y(o.obstacle,o,s,!r,k),t2(o.obstacle,i.hardBounds),c={x:r?o.x:o.obstacle[p?"xMax":"xMin"]+(p?1:-1),y:r?o.obstacle[p?"yMax":"yMin"]+(p?1:-1):o.y},r=!r,a=a.concat(t({x:o.x,y:o.y},c,r)))),a=a.concat(t(a[a.length-1].end,s,!r))}(t,e,s)).concat(o.reverse())),obstacles:c}}t5.requiresObstacles=!0,t3.requiresObstacles=!0;let t4={connectors:{type:"straight",radius:0,lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}},{setOptions:t6}=S();function t8(t){let e=t.shapeArgs;if(e)return{xMin:e.x||0,xMax:(e.x||0)+(e.width||0),yMin:e.y||0,yMax:(e.y||0)+(e.height||0)};let i=t.graphic&&t.graphic.getBBox();return i?{xMin:t.plotX-i.width/2,xMax:t.plotX+i.width/2,yMin:t.plotY-i.height/2,yMax:t.plotY+i.height/2}:null}!function(t){function e(t){let e,i,s=t8(this);switch(t.align){case"right":e="xMax";break;case"left":e="xMin"}switch(t.verticalAlign){case"top":i="yMin";break;case"bottom":i="yMax"}return e=e?s[e]:(s.xMin+s.xMax)/2,i=i?s[i]:(s.yMin+s.yMax)/2,{x:e+(t.xOffset||0),y:i+(t.yOffset||0)}}function i(t,e){let i;return!(0,w.defined)(e)&&(i=t8(this))&&(e={x:(i.xMin+i.xMax)/2,y:(i.yMin+i.yMax)/2}),Math.atan2(e.y-t.y,t.x-e.x)}function s(t,e,i){let s=2*Math.PI,r=t8(this),o=r.xMax-r.xMin,a=r.yMax-r.yMin,n=Math.atan2(a,o),l=o/2,h=a/2,d=r.xMin+l,c=r.yMin+h,p={x:d,y:c},u=t,g=1,x=!1,m=1,f=1;for(;u<-Math.PI;)u+=s;for(;u>Math.PI;)u-=s;return g=Math.tan(u),u>-n&&u<=n?(f=-1,x=!0):u>n&&u<=Math.PI-n?f=-1:u>Math.PI-n||u<=-(Math.PI-n)?(m=-1,x=!0):m=-1,x?(p.x+=m*l,p.y+=f*l*g):(p.x+=a/(2*g)*m,p.y+=f*h),i.x!==d&&(p.x=i.x),i.y!==c&&(p.y=i.y),{x:p.x+e*Math.cos(u),y:p.y-e*Math.sin(u)}}t.compose=function(t,r,o){let a=o.prototype;a.getPathfinderAnchorPoint||(t.prototype.callbacks.push(function(t){!1!==t.options.connectors.enabled&&((t.options.pathfinder||t.series.reduce(function(t,e){return e.options&&(0,w.merge)(!0,e.options.connectors=e.options.connectors||{},e.options.pathfinder),t||e.options&&e.options.pathfinder},!1))&&((0,w.merge)(!0,t.options.connectors=t.options.connectors||{},t.options.pathfinder),(0,w.error)('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')),this.pathfinder=new r(this),this.pathfinder.update(!0))}),a.getMarkerVector=s,a.getPathfinderAnchorPoint=e,a.getRadiansToVector=i,t6(t4))}}(b||(b={}));let t9=b;var t7=E(260),et=E.n(t7);let ee=Math.max,ei=Math.min;class es{static compose(t,e){t9.compose(t,es,e)}constructor(t){this.init(t)}init(t){this.chart=t,this.connections=[],(0,w.addEvent)(t,"redraw",function(){this.pathfinder.update()})}update(t){let e=this.chart,i=this,s=i.connections;i.connections=[],e.series.forEach(function(t){t.visible&&!t.options.isInternal&&t.points.forEach(function(t){let s,r=t.options;r&&r.dependency&&(r.connect=r.dependency);let o=t.options?.connect?(0,w.splat)(t.options.connect):[];t.visible&&!1!==t.isInside&&o.forEach(r=>{let o="string"==typeof r?r:r.to;o&&(s=e.get(o)),s instanceof et()&&s.series.visible&&s.visible&&!1!==s.isInside&&i.connections.push(new L(t,s,"string"==typeof r?{}:r))})})});for(let t=0,e,r,o=s.length,a=i.connections.length;t<o;++t){r=!1;let o=s[t];for(e=0;e<a;++e){let t=i.connections[e];if((o.options&&o.options.type)===(t.options&&t.options.type)&&o.fromPoint===t.fromPoint&&o.toPoint===t.toPoint){t.graphics=o.graphics,r=!0;break}}r||o.destroy()}delete this.chartObstacles,delete this.lineObstacles,i.renderConnections(t)}renderConnections(t){t?this.chart.series.forEach(function(t){let e=function(){let e=t.chart.pathfinder;(e&&e.connections||[]).forEach(function(e){e.fromPoint&&e.fromPoint.series===t&&e.render()}),t.pathfinderRemoveRenderEvent&&(t.pathfinderRemoveRenderEvent(),delete t.pathfinderRemoveRenderEvent)};!1===t.options.animation?e():t.pathfinderRemoveRenderEvent=(0,w.addEvent)(t,"afterAnimate",e)}):this.connections.forEach(function(t){t.render()})}getChartObstacles(t){let e=this.chart.series,i=(0,w.pick)(t.algorithmMargin,0),s=[],r;for(let t=0,r=e.length;t<r;++t)if(e[t].visible&&!e[t].options.isInternal)for(let r=0,o=e[t].points.length,a,n;r<o;++r)(n=e[t].points[r]).visible&&(a=function(t){let e=t.shapeArgs;if(e)return{xMin:e.x||0,xMax:(e.x||0)+(e.width||0),yMin:e.y||0,yMax:(e.y||0)+(e.height||0)};let i=t.graphic&&t.graphic.getBBox();return i?{xMin:t.plotX-i.width/2,xMax:t.plotX+i.width/2,yMin:t.plotY-i.height/2,yMax:t.plotY+i.height/2}:null}(n))&&s.push({xMin:a.xMin-i,xMax:a.xMax+i,yMin:a.yMin-i,yMax:a.yMax+i});return s=s.sort(function(t,e){return t.xMin-e.xMin}),(0,w.defined)(t.algorithmMargin)||(r=t.algorithmMargin=function(t){let e,i=t.length,s=[];for(let r=0;r<i;++r)for(let o=r+1;o<i;++o)(e=function t(e,i,s){let r=(0,w.pick)(s,10),o=e.yMax+r>i.yMin-r&&e.yMin-r<i.yMax+r,a=e.xMax+r>i.xMin-r&&e.xMin-r<i.xMax+r,n=o?e.xMin>i.xMax?e.xMin-i.xMax:i.xMin-e.xMax:1/0,l=a?e.yMin>i.yMax?e.yMin-i.yMax:i.yMin-e.yMax:1/0;return a&&o?r?t(e,i,Math.floor(r/2)):1/0:ei(n,l)}(t[r],t[o]))<80&&s.push(e);return s.push(80),ee(Math.floor(s.sort(function(t,e){return t-e})[Math.floor(s.length/10)]/2-1),1)}(s),s.forEach(function(t){t.xMin-=r,t.xMax+=r,t.yMin-=r,t.yMax+=r})),s}getObstacleMetrics(t){let e=0,i=0,s,r,o=t.length;for(;o--;)s=t[o].xMax-t[o].xMin,r=t[o].yMax-t[o].yMin,e<s&&(e=s),i<r&&(i=r);return{maxHeight:i,maxWidth:e}}getAlgorithmStartDirection(t){let e="left"!==t.align&&"right"!==t.align,i="top"!==t.verticalAlign&&"bottom"!==t.verticalAlign;return e?!!i&&void 0:!!i||void 0}}es.prototype.algorithms={fastAvoid:t3,straight:function(t,e){return{path:[["M",t.x,t.y],["L",e.x,e.y]],obstacles:[{start:t,end:e}]}},simpleConnect:t5};/**
 * @license Highcharts Gantt JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/pathfinder
 * @requires highcharts
 *
 * Pathfinder
 *
 * (c) 2016-2026 Highsoft AS
 * Author: Øystein Moseng
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */let er=S();er.Pathfinder=er.Pathfinder||es,P(er.SVGRenderer),er.Pathfinder.compose(er.Chart,er.Point);let{composed:eo}=S();function ea(t,e){if((0,w.pushUnique)(eo,"StaticScale")){let i=e.prototype;(0,w.addEvent)(t,"afterSetOptions",en),i.adjustHeight=el,(0,w.addEvent)(e,"render",i.adjustHeight)}}function en(){let t=this.chart.userOptions.chart;!this.horiz&&(0,w.isNumber)(this.options.staticScale)&&(!t?.height||t.scrollablePlotArea?.minHeight)&&(this.staticScale=this.options.staticScale)}function el(){if("adjustHeight"!==this.redrawTrigger){for(let t of this.axes||[]){let e=t.chart,i=t.options.staticScale;if(t.staticScale&&i&&(0,w.defined)(t.min)&&(0,w.defined)(t.max)){let s=(t.brokenAxis?.unitLength??t.max+t.tickInterval-t.min)*i,r=(s=Math.max(s,i))-e.plotHeight;!e.scrollablePixelsY&&Math.abs(r)>=1&&(e.plotHeight=s,e.redrawTrigger="adjustHeight",e.setSize(void 0,e.chartHeight+r,!!e.initiatedScale&&void 0)),t.series.forEach(function(t){let i=t.sharedClipKey&&e.sharedClips[t.sharedClipKey];i&&i.attr(e.inverted?{width:e.plotHeight}:{height:e.plotHeight})})}}this.initiatedScale=!0}this.redrawTrigger=void 0}/**
 * @license Highcharts Gantt JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/static-scale
 * @requires highcharts
 *
 * StaticScale
 *
 * (c) 2016-2026 Highsoft AS
 * Author: Torstein Hønsi, Lars A. V. Cabrera
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */let eh=S();ea(eh.Axis,eh.Chart);var ed=E(620),ec=E.n(ed);let{column:{prototype:{pointClass:ep}}}=ta().seriesTypes;class eu extends ep{static getColorByCategory(t,e){let i=t.chart,s=t.options.colors||i.options.colors,r=s?s.length:i.options.chart.colorCount||1,o=(e.y||0)%r,a=s?.[o];return{colorIndex:o,color:a}}resolveColor(){let t=this.series;if(t.options.colorByPoint&&!this.options.color){let e=eu.getColorByCategory(t,this);t.chart.styledMode||(this.color=e.color),(void 0===this.options.colorIndex||null===this.options.colorIndex)&&(this.colorIndex=e.colorIndex)}else this.color=this.options.color||t.color}constructor(t,e,i){super(t,e,i),this.y||(this.y=0)}applyOptions(t,e){return super.applyOptions(t,e),this.x2=this.series.chart.time.parse(this.x2),this.isNull=!this.isValid?.(),this.formatPrefix=this.isNull?"null":"point",this}setState(){super.setState.apply(this,arguments),this.series.drawPoint(this,this.series.getAnimationVerb())}isValid(){return"number"==typeof this.x&&"number"==typeof this.x2}}(0,w.extend)(eu.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]});let{composed:eg,noop:ex}=S(),{parse:em}=ec(),{column:ef}=ta().seriesTypes;function eb(){let t,e,i=this.chart.time;if(this.isXAxis){for(let s of(t=(0,w.pick)(this.dataMax,-Number.MAX_VALUE),this.series))for(let r of s.dataTable.getColumn("x2",!0)||s.dataTable.getColumn("end",!0)||[])"string"==typeof r&&(r=i.parse(r)),(0,w.isNumber)(r)&&r>t&&(t=r,e=!0);e&&(this.dataMax=t)}}class ey extends ef{static compose(t){(0,w.pushUnique)(eg,"Series.XRange")&&(0,w.addEvent)(t,"afterGetSeriesExtremes",eb)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}getColumnMetrics(){let t=()=>{for(let t of this.chart.series){let e=t.xAxis;t.xAxis=t.yAxis,t.yAxis=e}};t();let e=super.getColumnMetrics();return t(),e}cropData(t,e,i){let s=t.getColumn("x")||[],r=t.getColumn("x2");t.setColumn("x",r,void 0,{silent:!0});let o=super.cropData(t,e,i);return t.setColumn("x",s.slice(o.start,o.end),void 0,{silent:!0}),o}findPointIndex(t){let e,{cropStart:i,points:s}=this,{id:r}=t;if(r){let t=(0,w.find)(s,t=>t.id===r);e=t?t.index:void 0}if(void 0===e){let i=(0,w.find)(s,e=>e.x===t.x&&e.x2===t.x2&&!e.touched);e=i?i.index:void 0}return this.cropped&&(0,w.isNumber)(e)&&(0,w.isNumber)(i)&&e>=i&&(e-=i),e}alignDataLabel(t){let e=t.plotX;t.plotX=(0,w.pick)(t.dlBox?.centerX,t.plotX),t.dataLabel&&t.shapeArgs?.width&&t.dataLabel.css({width:`${t.shapeArgs.width}px`}),super.alignDataLabel.apply(this,arguments),t.plotX=e}translatePoint(t){let e=this.xAxis,i=this.yAxis,s=this.columnMetrics,r=this.options,o=r.minPointLength||0,a=(t.shapeArgs?.width||0)/2,n=this.pointXOffset=s.offset,l=(0,w.pick)(t.x2,t.x+(t.len||0)),h=r.borderRadius,d=this.chart.plotTop,c=this.chart.plotLeft,p=t.plotX,u=e.translate(l,0,0,0,1),g=Math.abs(u-p),x=this.chart.inverted,m=(0,w.pick)(r.borderWidth,1),f,b,y=s.offset,v=Math.round(s.width),M,k,E,A;o&&((f=o-g)<0&&(f=0),p-=f/2,u+=f/2),p=Math.max(p,-10),u=(0,w.clamp)(u,-10,e.len+10),(0,w.defined)(t.options.pointWidth)&&(y-=(Math.ceil(t.options.pointWidth)-v)/2,v=Math.ceil(t.options.pointWidth)),r.pointPlacement&&(0,w.isNumber)(t.plotY)&&i.categories&&(t.plotY=i.translate(t.y,0,1,0,1,r.pointPlacement));let S=(0,w.crisp)(Math.min(p,u),m),B=(0,w.crisp)(Math.max(p,u),m)-S,O=Math.min((0,w.relativeLength)("object"==typeof h?h.radius:h||0,v),Math.min(B,v)/2),P={x:S,y:(0,w.crisp)((t.plotY||0)+y,m),width:B,height:v,r:O};t.shapeArgs=P,x?t.tooltipPos[1]+=n+a:t.tooltipPos[0]-=a+n-P.width/2,k=(M=P.x)+P.width,M<0||k>e.len?(M=(0,w.clamp)(M,0,e.len),E=(k=(0,w.clamp)(k,0,e.len))-M,t.dlBox=(0,w.merge)(P,{x:M,width:k-M,centerX:E?E/2:null})):t.dlBox=null;let T=t.tooltipPos,C=+!!x,N=+!x,I=this.columnMetrics?this.columnMetrics.offset:-s.width/2;x?T[C]+=P.width/2:T[C]=(0,w.clamp)(T[C]+(e.reversed?-1:0)*P.width,e.left-c,e.left+e.len-c-1),T[N]=(0,w.clamp)(T[N]+(x?-1:1)*I,i.top-d,i.top+i.len-d-1),(b=t.partialFill??0)&&((0,w.isObject)(b)&&(b=b.amount||0),(0,w.isNumber)(b)||(b=0),t.partShapeArgs=(0,w.merge)(P),A=Math.max(Math.round(g*b+t.plotX-p),0),t.clipRectArgs={x:e.reversed?P.x+g-A:P.x,y:P.y,width:A,height:P.height}),t.key=t.category||t.name,t.yCategory=i.categories?.[t.y??-1]}translate(){for(let t of(super.translate.apply(this,arguments),this.points))this.translatePoint(t)}drawPoint(t,e){let i=this.options,s=this.chart.renderer,r=t.shapeType,o=t.shapeArgs,a=t.partShapeArgs,n=t.clipRectArgs,l=t.state,h=i.states[l||"normal"]||{},d=void 0===l?"attr":e,c=this.pointAttribs(t,l),p=(0,w.pick)(this.chart.options.chart.animation,h.animation),u=t.graphic,g=t.partialFill;if(t.isNull||!1===t.visible)u&&(t.graphic=u.destroy());else{let h=t.getClassName();if(u?u.rect[e](o):(t.graphic=u=s.g("point").add(t.group||this.group),u.rect=s[r]((0,w.merge)(o)).add(u)),u.addClass(h+(l&&"select"!==l?" highcharts-point-"+l:""),!0),u.rect.addClass(h+" highcharts-partfill-original",!0),a&&(u.partRect?(u.partRect[e]((0,w.merge)(a)),u.partialClipRect[e]((0,w.merge)(n))):(u.partialClipRect=s.clipRect(n.x,n.y,n.width,n.height),u.partRect=s[r](a).addClass("highcharts-partfill-overlay").add(u).clip(u.partialClipRect))),!this.chart.styledMode&&(u.rect[e](c,p).shadow(i.shadow),a)){(0,w.isObject)(g)||(g={}),(0,w.isObject)(i.partialFill)&&(g=(0,w.merge)(i.partialFill,g));let e=g.fill||em(c.fill).brighten(-.3).get()||em(t.color||this.color).brighten(-.3).get();c.fill=e,u.partRect[d](c,p).shadow(i.shadow)}}}drawPoints(){let t=this.getAnimationVerb();for(let e of this.points)this.drawPoint(e,t)}getAnimationVerb(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"}isPointInside(t){let e=t.shapeArgs,i=t.plotX,s=t.plotY;return e?void 0!==i&&void 0!==s&&s>=0&&s<=this.yAxis.len&&(e.x||0)+(e.width||0)>=0&&i<=this.xAxis.len:super.isPointInside.apply(this,arguments)}}ey.defaultOptions=(0,w.merge)(ef.defaultOptions,{colorByPoint:!0,dataLabels:{formatter:function(){let t=this.partialFill;if((0,w.isObject)(t)&&(t=t.amount),(0,w.isNumber)(t)&&t>0)return(0,w.correctFloat)(100*t)+"%"},inside:!0,verticalAlign:"middle",style:{whiteSpace:"nowrap"}},tooltip:{headerFormat:'<span style="font-size: 0.8em">{ucfirst point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0}),(0,w.extend)(ey.prototype,{pointClass:eu,pointArrayMap:["x2","y"],getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:ta().series.prototype.animate,autoIncrement:ex,buildKDTree:ex}),ta().registerSeriesType("xrange",ey);/**
 * @license Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/xrange
 * @requires highcharts
 *
 * X-range series
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Torstein Hønsi, Lars A. V. Cabrera
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */let ev=S();ey.compose(ev.Axis);let{xrange:{prototype:{pointClass:eM}}}=ta().seriesTypes;class ek extends eM{static setGanttPointAliases(t,e){t.x=t.start=e.time.parse(t.start??t.x),t.x2=t.end=e.time.parse(t.end??t.x2),t.partialFill=t.completed=t.completed??t.partialFill}applyOptions(t,e){let i=super.applyOptions(t,e);return ek.setGanttPointAliases(i,i.series.chart),this.isNull=!this.isValid?.(),this.formatPrefix=this.isNull?"null":"point",i}isValid(){return("number"==typeof this.start||"number"==typeof this.x)&&("number"==typeof this.end||"number"==typeof this.x2||this.milestone)}}var eE=E(184),eA=E.n(eE);!function(t){function e(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function i(){Object.keys(this.options.breaks?.[0]||{}).length&&(this.options.ordinal=!1)}function s(){let t=this.brokenAxis;if(t?.hasBreaks){let e=this.tickPositions,i=this.tickPositions.info,s=[];for(let i=0;i<e.length;i++)t.isInAnyBreak(e[i])||s.push(e[i]);this.tickPositions=s,this.tickPositions.info=i}}function r(){this.brokenAxis||(this.brokenAxis=new h(this))}function o(){let{isDirty:t,options:{connectNulls:e},points:i,xAxis:s,yAxis:r}=this;if(t){let t=i.length;for(;t--;){let o=i[t],a=(null!==o.y||!1!==e)&&(s?.brokenAxis?.isInAnyBreak(o.x,!0)||r?.brokenAxis?.isInAnyBreak(o.y,!0));o.visible=!a&&!1!==o.options.visible}}}function a(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,(0,w.pick)(this.pointArrayMap,["y"]))}function n(t,e){let i,s,r,o=this,a=o.points;if(t?.brokenAxis?.hasBreaks){let n=t.brokenAxis;e.forEach(function(e){i=n?.breakArray||[],s=t.isXAxis?t.min:(0,w.pick)(o.options.threshold,t.min),a.forEach(function(o){r=o["stack"+e.toUpperCase()]??o[e],i.forEach(function(e){if((0,w.isNumber)(s)&&(0,w.isNumber)(r)){let i="";s<e.from&&r>e.to||s>e.from&&r<e.from?i="pointBreak":(s<e.from&&r>e.from&&r<e.to||s>e.from&&r>e.to&&r<e.from)&&(i="pointInBreak"),i&&(0,w.fireEvent)(t,i,{point:o,brk:e})}})})})}}function l(){let t=this.currentDataGrouping,e=t?.gapSize,i=this.points.slice(),s=this.yAxis,r=this.options.gapSize,o=i.length-1;if(r&&o>0){let t,a;for("value"!==this.options.gapUnit&&(r*=this.basePointRange),e&&e>r&&e>=this.basePointRange&&(r=e);o--;)if(a&&!1!==a.visible||(a=i[o+1]),t=i[o],!1!==a.visible&&!1!==t.visible){if(a.x-t.x>r){let e=(t.x+a.x)/2;i.splice(o+1,0,{isNull:!0,x:e}),s.stacking&&this.options.stacking&&((s.stacking.stacks[this.stackKey][e]=new(eA())(s,s.options.stackLabels,!1,e,this.stack??"")).total=0)}a=t}}return this.getGraphPath(i)}t.compose=function(t,h){if(!t.keepProps.includes("brokenAxis")){t.keepProps.push("brokenAxis"),(0,w.addEvent)(t,"init",r),(0,w.addEvent)(t,"afterInit",e),(0,w.addEvent)(t,"afterSetTickPositions",s),(0,w.addEvent)(t,"afterSetOptions",i);let d=h.prototype;d.drawBreaks=n,d.gappedPath=l,(0,w.addEvent)(h,"afterGeneratePoints",o),(0,w.addEvent)(h,"afterRender",a)}return t};class h{static isInBreak(t,e){let i=t.repeat||1/0,s=t.from,r=t.to-t.from,o=e>=s?(e-s)%i:i-(s-e)%i;return t.inclusive?o<=r:o<r&&0!==o}static lin2Val(t){let e=this.min||0,i=this.brokenAxis,s=i?.breakArray;if(!s?.length||!(0,w.isNumber)(t))return t;let r=t;if(t>e)for(let t of s)if(t.from>r)break;else t.to<=r&&t.to>e?r+=t.len:h.isInBreak(t,r)&&(r+=t.len);else if(t<e)for(let t of s)if(t.from>e)break;else t.from>=r&&t.from<e?r-=t.len:h.isInBreak(t,r)&&(r-=t.len);return r}static val2Lin(t){let e=this.min||0,i=this.brokenAxis,s=i?.breakArray;if(!s?.length||!(0,w.isNumber)(t))return t;let r=t;if(t>e){for(let i of s)if(i.to<=t&&i.to>e)r-=i.len;else if(i.from>t)break;else if(h.isInBreak(i,t)){r-=t-i.from;break}}else if(t<e){for(let i of s)if(i.from>=t&&i.from<e)r+=i.len;else if(i.from>e)break;else if(h.isInBreak(i,t)){r+=i.to-t;break}}return r}constructor(t){this.axis=t}findBreakAt(t,e){return(0,w.find)(e,function(e){return e.from<t&&t<e.to})}isInAnyBreak(t,e){let i=this.axis,s=i.options.breaks||[],r=s.length,o,a,n;if(r&&(0,w.isNumber)(t)){for(;r--;)h.isInBreak(s[r],t)&&(o=!0,a||(a=(0,w.pick)(s[r].showPoints,!i.isXAxis)));n=o&&e?o&&!a:o}return n}setBreaks(t,e){let i=this,s=i.axis,r=s.chart.time,o=(0,w.isArray)(t)&&!!Object.keys(t?.[0]||{}).length;s.isDirty=(i.hasBreaks??!1)!==o,i.hasBreaks=o,t?.forEach(t=>{t.from=r.parse(t.from)||0,t.to=r.parse(t.to)||0}),t!==s.options.breaks&&(s.options.breaks=s.userOptions.breaks=t),s.forceRedraw=!0,s.series.forEach(function(t){t.isDirty=!0}),o||s.val2lin!==h.val2Lin||(delete s.val2lin,delete s.lin2val),o&&(s.userOptions.ordinal=!1,s.lin2val=h.lin2Val,s.val2lin=h.val2Lin,s.setExtremes=function(t,e,r,o,a){if(i.hasBreaks&&!s.treeGrid?.tree){let s,r=this.brokenAxis.breakArray||[];for(;s=i.findBreakAt(t,r);)t=s.to;for(;s=i.findBreakAt(e,r);)e=s.from;e<t&&(e=t)}s.constructor.prototype.setExtremes.call(this,t,e,r,o,a)},s.setAxisTranslation=function(){if(s.constructor.prototype.setAxisTranslation.call(this),i.unitLength=void 0,i.hasBreaks){let t=s.options.breaks||[],e=[],r=[],o=s.pointRangePadding??0,a=0,n,l,d=s.userMin??s.min,c=s.userMax??s.max,p,u,g=(0,w.isNumber)(d)?Math.min(s.dataMin??d,d):s.dataMin??d,x=(0,w.isNumber)(c)?Math.max(s.dataMax??c,c):s.dataMax??c;s.treeGrid?.tree||t.forEach(function(t){l=t.repeat||1/0,(0,w.isNumber)(d)&&(0,w.isNumber)(c)&&(h.isInBreak(t,d)&&(d+=t.to%l-d%l),h.isInBreak(t,c)&&(c-=c%l-t.from%l))}),(0,w.isNumber)(g)&&(0,w.isNumber)(x)&&t.forEach(function(t){for(p=t.from,l=t.repeat||1/0;p-l>g;)p-=l;for(;p<g;)p+=l;for(u=p;u<x;u+=l)e.push({value:u,move:"in"}),e.push({value:u+t.to-t.from,move:"out",size:t.breakSize})}),e.sort(function(t,e){return t.value===e.value?("in"!==t.move)-("in"!==e.move):t.value-e.value}),n=0,p=g,e.forEach(t=>{1===(n+="in"===t.move?1:-1)&&"in"===t.move&&(p=t.value),0===n&&(0,w.isNumber)(p)&&(r.push({from:p,to:t.value,len:t.value-p-(t.size||0)}),(0,w.isNumber)(d)&&(0,w.isNumber)(c)&&p<c&&t.value>d&&(a+=t.value-p-(t.size||0)))}),i.breakArray=r,(0,w.isNumber)(d)&&(0,w.isNumber)(c)&&(0,w.isNumber)(s.min)&&(i.unitLength=c-d-a+o,(0,w.fireEvent)(s,"afterBreaks"),s.staticScale?s.transA=s.staticScale:i.unitLength&&(s.transA*=(c-s.min+o)/i.unitLength),o&&(s.minPixelPadding=s.transA*(s.minPointOffset||0)),s.min=d,s.max=c)}}),(0,w.pick)(e,!0)&&s.chart.redraw()}}t.Additions=h}(y||(y={}));let ew=y,{dateFormats:eS}=S();function eB(t){return(0,w.isObject)(t,!0)}function eO(t,e){let i={width:0,height:0};if(e.forEach(function(e){let s=t[e],r=0,o=0,a;eB(s)&&(r=(a=eB(s.label)?s.label:{}).getBBox?a.getBBox().height:0,a.textStr&&!(0,w.isNumber)(a.textPxLength)&&(a.textPxLength=a.getBBox().width),o=(0,w.isNumber)(a.textPxLength)?Math.round(a.textPxLength):0,a.textStr&&(o=Math.round(a.getBBox().width)),i.height=Math.max(r,i.height),i.width=Math.max(o,i.width))}),"treegrid"===this.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode){let t=this.treeGrid.mapOfPosToGridNode[-1].height||0;i.width+=this.options.labels.indentation*(t-1)}return i}function eP(t){let{grid:e}=this,i=3===this.side;if(i||t.apply(this),!e?.isColumn){let t=e?.columns||[];i&&(t=t.slice().reverse()),t.forEach(t=>{t.getOffset()})}i&&t.apply(this)}function eT(t){if(!0===(this.options.grid||{}).enabled){let{axisTitle:e,height:i,horiz:s,left:r,offset:o,opposite:a,options:n,top:l,width:h}=this,d=this.tickSize(),c=e?.getBBox().width,p=n.title,{x:u,y:g}=p,x=p.margin??(s?5:10),m=e?this.chart.renderer.fontMetrics(e).f:0,f=(s?l+i:r)+(s?1:-1)*(a?-1:1)*(d?d[0]/2:0)+(this.side===v.bottom?m:0);if(t.titlePosition.x=s?r-(c||0)/2-x+u:f+(a?h:0)+o+u,t.titlePosition.y=s?f-(a?i:0)+(a?m:-m)/2+o+g:l-x+g,!s){let[e=0]=d||[];"left"===p.textAlign?t.titlePosition.x-=e/2:"right"===p.textAlign&&(t.titlePosition.x+=e/2)}}}function eC(){let t,{chart:e,options:{grid:i={}},userOptions:s}=this;if(i.enabled&&((t=this.options).labels.align=(0,w.pick)(t.labels.align,"center"),this.categories||(t.showLastLabel=!1),this.labelRotation=0,t.labels.rotation=0,t.minTickInterval=1),i.columns){let t=this.grid.columns=[],r=this.grid.columnIndex=0;for(;++r<i.columns.length;){let o=(0,w.merge)(s,i.columns[r],{isInternal:!0,linkedTo:0,scrollbar:{enabled:!1}},{grid:{columns:void 0}}),a=new(X())(this.chart,o,this.coll);a.grid.isColumn=!0,a.grid.columnIndex=r,(0,w.erase)(e.axes,a),(0,w.erase)(e[this.coll]||[],a),t.push(a)}}}function eN(){let{axisTitle:t,grid:e,options:i}=this;if(!0===(i.grid||{}).enabled){let s=this.min||0,r=this.max||0,o=this.ticks[this.tickPositions[0]];if(t&&!this.chart.styledMode&&o?.slotWidth&&!this.options.title.style.width&&t.css({width:`${o.slotWidth}px`}),this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions),this.rightWall&&this.rightWall.destroy(),this.grid?.isOuterAxis()&&this.axisLine){let t=i.lineWidth;if(t){let e=this.getLinePath(t),o=e[0],a=e[1],n=(this.tickSize("tick")||[1])[0]*(this.side===v.top||this.side===v.left?-1:1);if("M"===o[0]&&"L"===a[0]&&(this.horiz?(o[2]+=n,a[2]+=n):(o[1]+=n,a[1]+=n)),!this.horiz&&this.chart.marginRight){let t=["L",this.left,o[2]||0],e=[o,t],n=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(r+this.tickmarkOffset)],l=[["M",a[1]||0,this.toPixels(r+this.tickmarkOffset)],n];this.grid.upperBorder||s%1==0||(this.grid.upperBorder=this.grid.renderBorder(e)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.upperBorder.animate({d:e})),this.grid.lowerBorder||r%1==0||(this.grid.lowerBorder=this.grid.renderBorder(l)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.lowerBorder.animate({d:l}))}this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.axisLineExtra.animate({d:e})):this.grid.axisLineExtra=this.grid.renderBorder(e),this.axisLine[this.showAxis?"show":"hide"]()}}if((e?.columns||[]).forEach(t=>t.render()),!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent?.scrollbar)&&this.tickPositions.length){let t,e,i=this.tickmarkOffset,o=this.tickPositions[this.tickPositions.length-1],a=this.tickPositions[0];for(;(t=this.hiddenLabels.pop())&&t.element;)t.show();for(;(e=this.hiddenMarks.pop())&&e.element;)e.show();(t=this.ticks[a].label)&&(s-a>i?this.hiddenLabels.push(t.hide()):t.show()),(t=this.ticks[o].label)&&(o-r>i?this.hiddenLabels.push(t.hide()):t.show());let n=this.ticks[o].mark;n&&o-r<i&&o-r>0&&this.ticks[o].isLast&&this.hiddenMarks.push(n.hide())}}}function eI(){let t=this.tickPositions?.info,e=this.options,i=e.grid||{},s=this.userOptions.labels||{};i.enabled&&(this.horiz?(this.series.forEach(t=>{t.options.pointRange=0}),t&&e.dateTimeLabelFormats&&e.labels&&!(0,w.defined)(s.align)&&(!1===e.dateTimeLabelFormats[t.unitName].range||t.count>1)&&(e.labels.align="left",(0,w.defined)(s.x)||(e.labels.x=3))):"treegrid"!==this.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function eD(t){let e,i=this.options,s=t.userOptions,r=i&&eB(i.grid)?i.grid:{};!0===r.enabled&&(e=(0,w.merge)(!0,{className:"highcharts-grid-axis "+(s.className||""),dateTimeLabelFormats:{hour:{list:["%[HM]","%[H]"]},day:{list:["%[AeB]","%[aeb]","%[E]"]},week:{list:["Week %W","W%W"]},month:{list:["%[B]","%[b]","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"0.9em"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0,style:{textOverflow:"ellipsis"}},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},s),"xAxis"===this.coll&&((0,w.defined)(s.linkedTo)&&!(0,w.defined)(s.tickPixelInterval)&&(e.tickPixelInterval=350),!(!(0,w.defined)(s.tickPixelInterval)&&(0,w.defined)(s.linkedTo))||(0,w.defined)(s.tickPositioner)||(0,w.defined)(s.tickInterval)||(0,w.defined)(s.units)||(e.tickPositioner=function(t,i){let s=this.linkedParent?.tickPositions?.info;if(s){let r=e.units||[],o,a=1,n="year";for(let t=0;t<r.length;t++){let e=r[t];if(e&&e[0]===s.unitName){o=t;break}}let l=(0,w.isNumber)(o)&&r[o+1];if(l){n=l[0]||"year";let t=l[1];a=t?.[0]||1}else"year"===s.unitName&&(a=10*s.count);let h=w.timeUnits[n];return this.tickInterval=h*a,this.chart.time.getTimeTicks({unitRange:h,count:a,unitName:n},t,i,this.options.startOfWeek)}})),(0,w.merge)(!0,this.options,e),this.horiz&&(i.minPadding=(0,w.pick)(s.minPadding,0),i.maxPadding=(0,w.pick)(s.maxPadding,0)),(0,w.isNumber)(i.grid.borderWidth)&&(i.tickWidth=i.lineWidth=r.borderWidth))}function eL(t){let e=t.userOptions,i=e?.grid||{},s=i.columns;i.enabled&&s&&(0,w.merge)(!0,this.options,s[0])}function eR(){(this.grid.columns||[]).forEach(t=>t.setScale())}function ez(t){let{horiz:e,maxLabelDimensions:i,options:{grid:s={}}}=this;if(s.enabled&&i){let r=2*this.options.labels.distance,o=e?s.cellHeight||r+i.height:r+i.width;(0,w.isArray)(t.tickSize)?t.tickSize[0]=o:t.tickSize=[o,0]}}function eG(){this.axes.forEach(t=>{(t.grid?.columns||[]).forEach(t=>{t.setAxisSize(),t.setAxisTranslation()})})}function eW(t){let{grid:e}=this;(e.columns||[]).forEach(e=>e.destroy(t.keepEvents)),e.columns=void 0}function eH(t){let e=t.userOptions||{},i=(0,w.merge)({borderColor:"var(--highcharts-neutral-color-20)"},e.grid||{});i.enabled&&(0,w.defined)(i.borderColor)&&(e.tickColor=e.lineColor=i.borderColor),this.grid||(this.grid=new eY(this)),this.hiddenLabels=[],this.hiddenMarks=[],this.clippable=!1}function eF(t){let e=this.label,i=this.axis,s=i.reversed,r=i.chart,o=i.options.grid||{},a=i.options.labels,n=a.align,l=v[i.side],h=t.tickmarkOffset,d=i.tickPositions,c=this.pos-h,p=(0,w.isNumber)(d[t.index+1])?d[t.index+1]-h:(i.max||0)+h,u=i.tickSize("tick"),g=u?u[0]:0,x=u?u[1]/2:0;if(!0===o.enabled){let o,h,d,u;if("top"===l?h=(o=i.top+i.offset)-g:"bottom"===l?o=(h=r.chartHeight-i.bottom+i.offset)+g:(o=i.top+i.len-(i.translate(s?p:c)||0),h=i.top+i.len-(i.translate(s?c:p)||0)),"right"===l?u=(d=r.chartWidth-i.right+i.offset)+g:"left"===l?d=(u=i.left+i.offset)-g:(d=Math.round(i.left+(i.translate(s?p:c)||0))-x,u=Math.min(Math.round(i.left+(i.translate(s?c:p)||0))-x,i.left+i.len)),this.slotWidth=u-d,t.pos.x="left"===n?d:"right"===n?u:d+(u-d)/2,t.pos.y=h+(o-h)/2,e){let i=r.renderer.fontMetrics(e),s=e.getBBox().height;if(a.useHTML)t.pos.y+=i.b+-(s/2);else{let e=Math.round(s/i.h);t.pos.y+=(i.b-(i.h-i.f))/2+-((e-1)*i.h/2)}}t.pos.x+=i.horiz&&a.x||0}}function eU(t){let{axis:e,value:i}=t;if(e.options.grid?.enabled){let s,r=e.tickPositions,o=(e.linkedParent||e).series,a=o.reduce((t,e)=>e.is("gantt")?t?.concat(e.options?.data??[]):t,[])??[],n=i===r[0],l=i===r[r.length-1],h=o[0]&&(0,w.find)(a,function(t){return t[e.isXAxis?"x":"y"]===i});h&&(s=(0,w.merge)(h),S().seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(s,e.chart)),t.isFirst=n,t.isLast=l,t.point=s}}function eV(){let t=this.options,e=t.grid||{},i=this.categories,s=this.tickPositions,r=s[0],o=s[1],a=s[s.length-1],n=s[s.length-2],l=this.linkedParent?.min,h=this.linkedParent?.max,d=l||this.min,c=h||this.max,p=this.tickInterval,u=(0,w.isNumber)(d)&&d>=r+p&&d<o,g=(0,w.isNumber)(d)&&r<d&&r+p>d,x=(0,w.isNumber)(c)&&a>c&&a-p<c,m=(0,w.isNumber)(c)&&c<=a-p&&c>n;!0===e.enabled&&!i&&(this.isXAxis||this.isLinked)&&((g||u)&&!t.startOnTick&&(s[0]=d),(x||m)&&!t.endOnTick&&(s[s.length-1]=c))}function eX(t){var e;let{options:{grid:i={}}}=this;return!0===i.enabled&&this.categories?this.tickInterval:t.apply(this,(e=arguments,Array.prototype.slice.call(e,1)))}(g=v||(v={}))[g.top=0]="top",g[g.right=1]="right",g[g.bottom=2]="bottom",g[g.left=3]="left";class eY{constructor(t){this.axis=t}isOuterAxis(){let t=this.axis,e=t.chart,i=t.grid.columnIndex,s=t.linkedParent?.grid.columns||t.grid.columns||[],r=i?t.linkedParent:t,o=-1,a=0;return 3===t.side&&!e.inverted&&s.length?!t.linkedParent:((e[t.coll]||[]).forEach((e,i)=>{e.side!==t.side||e.options.isInternal||(a=i,e===r&&(o=i))}),a===o&&(!(0,w.isNumber)(i)||s.length===i))}renderBorder(t){let e=this.axis,i=e.chart.renderer,s=e.options,r=i.path(t).addClass("highcharts-axis-line").add(e.axisGroup);return i.styledMode||r.attr({stroke:s.lineColor,"stroke-width":s.lineWidth,zIndex:7}),r}}eS.E=function(t){return this.dateFormat("%a",t,!0).charAt(0)},eS.W=function(t){let e=this.toParts(t),i=(e[7]+6)%7,s=e.slice(0);s[2]=e[2]-i+3;let r=this.toParts(this.makeTime(s[0],0,1));return 4!==r[7]&&(e[1]=0,e[2]=1+(11-r[7])%7),(1+Math.floor((this.makeTime(s[0],s[1],s[2])-this.makeTime(r[0],r[1],r[2]))/6048e5)).toString()};function ej(t,e,i,s,r,o){let a=o&&o.after,n=o&&o.before,l={data:s,depth:i-1,id:t,level:i,parent:e||""},h=0,d=0,c,p;"function"==typeof n&&n(l,o);let u=(r[t]||[]).map(e=>{let s=ej(e.id,t,i+1,e,r,o),a=e.start||NaN,n=!0===e.milestone?a:e.end||NaN;return c=!(0,w.isNumber)(c)||a<c?a:c,p=!(0,w.isNumber)(p)||n>p?n:p,h=h+1+s.descendants,d=Math.max(s.height+1,d),s});return s&&(s.start??(s.start=c),s.end??(s.end=p)),(0,w.extend)(l,{children:u,descendants:h,height:d}),"function"==typeof a&&a(l,o),l}let e_=function(t,e){let i,s;return ej("",null,1,null,(i=[],Object.keys(s=t.reduce((t,e)=>{let{parent:s="",id:r}=e;return void 0===t[s]&&(t[s]=[]),t[s].push(e),r&&i.push(r),t},{})).forEach(t=>{if(""!==t&&-1===i.indexOf(t)){let e=s[t].map(function(t){let{...e}=t;return e});s[""].push(...e),delete s[t]}}),s),e)};function eq(){this.treeGrid||(this.treeGrid=new eK(this))}function eZ(t,e,i,s,r,o,a,n,l){let h,d,c,p=(0,w.pick)(this.options?.labels,o),u=this.pos,g=this.axis,x="treegrid"===g.type,m=t.apply(this,[e,i,s,r,p,a,n,l]);if(x){let{width:t=0,padding:e=5*!g.linkedParent}=p&&(0,w.isObject)(p.symbol,!0)?p.symbol:{},i=p&&(0,w.isNumber)(p.indentation)?p.indentation:0;h=g.treeGrid.mapOfPosToGridNode,d=h?.[u],c=d?.depth||1,m.x+=t+2*e+(c-1)*i}return m}function e$(t){let e,{pos:i,axis:s,label:r,treeGrid:o,options:a}=this,n=o?.labelIcon,l=r?.element,{treeGrid:h,options:d,chart:c,tickPositions:p}=s,u=h.mapOfPosToGridNode,g=(0,w.pick)(a?.labels,d?.labels),x=g&&(0,w.isObject)(g.symbol,!0)?g.symbol:{},m=u?.[i],{descendants:f,depth:b}=m||{},y=m&&f&&f>0,v="treegrid"===s.type&&l,M=p.indexOf(i)>-1,k="highcharts-treegrid-node-",E=k+"level-",A=c.styledMode;if(v&&m&&r.removeClass(RegExp(E+".*")).addClass(E+b),t.apply(this,Array.prototype.slice.call(arguments,1)),v&&y){var S;let t,i,s,a,l,d,c,p,u,f,b,y;e=h.isCollapsed(m),S={color:!A&&r.styles.color||"",collapsed:e,group:r.parentGroup,options:x,renderer:r.renderer,show:M,xy:r.xy},i=!(t=this.treeGrid).labelIcon,s=S.renderer,a=S.xy,d=(l=S.options).width||0,c=l.height||0,p=l.padding??this.axis.linkedParent?0:5,u={x:a.x-d/2-p,y:a.y-c/2},f=S.collapsed?90:180,b=S.show&&(0,w.isNumber)(u.y),(y=t.labelIcon)||(t.labelIcon=y=s.path(s.symbols[l.type](l.x||0,l.y||0,d,c)).addClass("highcharts-label-icon").add(S.group)),y[b?"show":"hide"](),s.styledMode||y.attr({cursor:"pointer",fill:S.color||"var(--highcharts-neutral-color-60)","stroke-width":1,stroke:l.lineColor,strokeWidth:l.lineWidth||0}),y[i?"attr":"animate"]({translateX:u.x,translateY:u.y,rotation:f}),r.addClass(k+(e?"collapsed":"expanded")).removeClass(k+(e?"expanded":"collapsed")),A||r.css({cursor:"pointer"}),[r,n].forEach(t=>{t&&!t.attachedTreeGridEvents&&((0,w.addEvent)(t.element,"mouseover",function(){r.addClass("highcharts-treegrid-node-active"),r.renderer.styledMode||r.css({textDecoration:"underline"})}),(0,w.addEvent)(t.element,"mouseout",function(){let t;t=(0,w.isObject)(g.style)?g.style:{},r.removeClass("highcharts-treegrid-node-active"),r.renderer.styledMode||r.css({textDecoration:t.textDecoration||"none"})}),(0,w.addEvent)(t.element,"click",function(){o.toggleCollapse()}),t.attachedTreeGridEvents=!0)})}else n&&((0,w.removeEvent)(l),r?.css({cursor:"default"}),n.destroy(),o.labelIcon=void 0)}class eK{static compose(t){let e=t.prototype;e.toggleCollapse||((0,w.addEvent)(t,"init",eq),(0,w.wrap)(e,"getLabelPosition",eZ),(0,w.wrap)(e,"renderLabel",e$),e.collapse=function(t){this.treeGrid.collapse(t)},e.expand=function(t){this.treeGrid.expand(t)},e.toggleCollapse=function(t){this.treeGrid.toggleCollapse(t)})}constructor(t){this.tick=t}collapse(t){let{pos:e,axis:i}=this.tick,{treeGrid:s,brokenAxis:r}=i,o=s.mapOfPosToGridNode;r&&o&&r.setBreaks(s.collapse(o[e]),t??!0)}destroy(){this.labelIcon?.destroy()}expand(t){let{pos:e,axis:i}=this.tick,{treeGrid:s,brokenAxis:r}=i,o=s.mapOfPosToGridNode;r&&o&&r.setBreaks(s.expand(o[e]),t??!0)}toggleCollapse(t=!0){let{axis:e,pos:i}=this.tick,{brokenAxis:s,treeGrid:r}=e;if(s&&r.mapOfPosToGridNode){let o=!!(e.scrollbar&&e.staticScale),a=e.pos+e.len+(r.pendingSizeAdjustment||0);if(r.pendingSizeAdjustment=0,s.setBreaks(r.toggleCollapse(r.mapOfPosToGridNode[i]),o&&t),o){let t=e.toValue(e.toPixels(e.dataMax)),i=e.toValue(a)-e.tickmarkOffset,s=e.userMin??e.min;if(r.adjustedMax=t!==e.dataMax?t-e.tickmarkOffset:void 0,i>e.dataMax){let t=a-e.toPixels(e.dataMax+e.tickmarkOffset);i=r.adjustedMax??e.dataMax,(s=e.toValue(e.toPixels(s-e.tickmarkOffset)-t)+e.tickmarkOffset)<e.dataMin&&(t=e.toPixels(e.dataMin)-e.toPixels(s),s=e.dataMin,r.pendingSizeAdjustment=t)}e.setExtremes((0,w.correctFloat)(s),(0,w.correctFloat)(i),!1,!1,{trigger:"toggleCollapse"})}t&&e.chart.redraw()}}}let{getLevelOptions:eJ}={getColor:function(t,e){let i,s,r,o,a,n,l=e.index,h=e.mapOptionsToLevel,d=e.parentColor,c=e.parentColorIndex,p=e.series,u=e.colors,g=e.siblings,x=p.points,m=p.chart.options.chart;if(t){let f;i=x[t.i],s=h[t.level]||{},i&&s.colorByPoint&&(o=i.index%(u?u.length:m.colorCount),r=u&&u[o]),p.chart.styledMode||(a=(0,w.pick)(i&&i.options.color,s&&s.color,r,d&&((f=s&&s.colorVariation)&&"brightness"===f.key&&l&&g?ec().parse(d).brighten(f.to*(l/g)).get():d),p.color)),n=(0,w.pick)(i&&i.options.colorIndex,s&&s.colorIndex,o,c,e.colorIndex)}return{color:a,colorIndex:n}},getLevelOptions:function(t){let e,i,s,r,o,a,n={};if((0,w.isObject)(t))for(r=(0,w.isNumber)(t.from)?t.from:1,a=t.levels,i={},e=(0,w.isObject)(t.defaults)?t.defaults:{},(0,w.isArray)(a)&&(i=a.reduce((t,i)=>{let s,o,a;return(0,w.isObject)(i)&&(0,w.isNumber)(i.level)&&(a=(0,w.merge)({},i),o=(0,w.pick)(a.levelIsConstant,e.levelIsConstant),delete a.levelIsConstant,delete a.level,s=i.level+(o?0:r-1),(0,w.isObject)(t[s])?(0,w.merge)(!0,t[s],a):t[s]=a),t},{})),o=(0,w.isNumber)(t.to)?t.to:1,s=0;s<=o;s++)n[s]=(0,w.merge)({},e,(0,w.isObject)(i[s])?i[s]:{});return n},getNodeWidth:function(t,e){let{chart:i,options:s}=t,{nodeDistance:r=0,nodeWidth:o=0}=s,{plotSizeX:a=1}=i;if("auto"===o){if("string"==typeof r&&/%$/.test(r))return a/(e+parseFloat(r)/100*(e-1));let t=Number(r);return(a+t)/(e||1)-t}return(0,w.relativeLength)(o,a)},setTreeValues:function t(e,i){let s=i.before,r=i.idRoot,o=i.mapIdToNode[r],a=!1!==i.levelIsConstant,n=i.points[e.i],l=n&&n.options||{},h=[],d=0;e.levelDynamic=e.level-(a?0:o.level),e.name=(0,w.pick)(n&&n.name,""),e.visible=r===e.id||!0===i.visible,"function"==typeof s&&(e=s(e,i)),e.children.forEach((s,r)=>{let o=(0,w.extend)({},i);(0,w.extend)(o,{index:r,siblings:e.children.length,visible:e.visible}),s=t(s,o),h.push(s),s.visible&&(d+=s.val)});let c=(0,w.pick)(l.value,d);return e.visible=c>=0&&(d>0||e.visible),e.children=h,e.childrenTotal=d,e.isLeaf=e.visible&&!d,e.val=c,e},updateRootId:function(t){let e,i;return(0,w.isObject)(t)&&(i=(0,w.isObject)(t.options)?t.options:{},e=(0,w.pick)(t.rootNode,i.rootId,""),(0,w.isObject)(t.userOptions)&&(t.userOptions.rootId=e),t.rootNode=e),e}};function eQ(t){return Array(t.dataTable.rowCount).fill(void 0).map((e,i)=>t.dataTable.getRowObject(i))}function e0(t){return{from:t.collapseStart||0,to:t.collapseEnd||0,showPoints:!1}}function e1(t,e,i){var s;let r,o=[],a=[],n={},l=e||!1,h={},d=-1,c=e_(t,{after:function(t){let e=h[t.pos],i=0,s=0;e.children.forEach(function(t){s+=(t.descendants||0)+1,i=Math.max((t.height||0)+1,i)}),e.descendants=s,e.height=i,e.collapsed&&a.push(e)},before:function(t){let e,i,s=(0,w.isObject)(t.data,!0)?t.data:{},r=(0,w.isString)(s.name)?s.name:"",a=n[t.parent],c=(0,w.isObject)(a,!0)?h[a.pos]:null;l&&(0,w.isObject)(c,!0)&&(e=(0,w.find)(c.children,function(t){return t.name===r}))?(i=e.pos,e.nodes.push(t)):i=d++,!h[i]&&(h[i]=e={depth:c?c.depth+1:0,name:r,id:s.id,nodes:[t],children:[],pos:i},-1!==i&&o.push(r),(0,w.isObject)(c,!0)&&c.children.push(e)),(0,w.isString)(t.id)&&(n[t.id]=t),e&&!0===s.collapsed&&(e.collapsed=!0),t.pos=i}});return s=h,{categories:o,mapOfIdToNode:n,mapOfPosToGridNode:h=(r=function(t,e,s){let o=t.nodes,a=e+(-1===e?0:i-1),n=(a-e)/2,l=e+n;return o.forEach(function(t){let i=t.data;(0,w.isObject)(i,!0)&&(i.y=e+(i.yIndex||0)),t.pos=l}),s[l]=t,t.pos=l,t.tickmarkOffset=n+.5,t.collapseStart=a+.5,t.children.forEach(function(t){r(t,a+1,s),a=(t.collapseEnd||0)-.5}),t.collapseEnd=a+.5,s})(s["-1"],-1,{}),collapsedNodes:a,tree:c}}function e2(t){let e=t.target;e.axes.filter(t=>"treegrid"===t.type).forEach(function(i){let s=i.options,r=s.labels,o=i.uniqueNames,a=e.time.parse(s.max),n=!i.treeGrid.mapOfPosToGridNode||i.series.some(function(t){return!t.hasRendered||t.isDirtyData||t.isDirty}),l=0,h,d;if(n){let s=[];if(h=i.series.reduce(function(t,i){let r=eQ(i),a=r[0],n=Array.isArray(a)&&!a.find(t=>"object"==typeof t);return s.push(n),i.visible&&(r.forEach(function(s){(n||i.options.keys?.length)&&(s=i.pointClass.prototype.optionsToObject.call({series:i},s),i.pointClass.setGanttPointAliases(s,e)),(0,w.isObject)(s,!0)&&(s.yIndex=l,s.seriesIndex=i.index,t.push(s))}),!0===o&&l++),t},[]),a&&h.length<a)for(let t=h.length;t<=a;t++)h.push({name:t+"​"});i.categories=(d=e1(h,o||!1,!0===o?l:1)).categories,i.treeGrid.mapOfPosToGridNode=d.mapOfPosToGridNode,i.hasNames=!0,i.treeGrid.tree=d.tree,i.series.forEach(t=>{let e=h.filter(e=>e.seriesIndex===t.index);e.forEach(t=>{delete t.seriesIndex,delete t.yIndex}),t.visible&&t.setData(e,!1)}),i.treeGrid.mapOptionsToLevel=eJ({defaults:r,from:1,levels:r?.levels,to:i.treeGrid.tree?.height}),"beforeRender"===t.type&&(i.treeGrid.collapsedNodes=d.collapsedNodes)}})}function e5(t,e){let i=this.treeGrid.mapOptionsToLevel||{},s="treegrid"===this.type,r=this.ticks,o=r[e],a,n,l;s&&this.treeGrid.mapOfPosToGridNode?((a=i[(l=this.treeGrid.mapOfPosToGridNode[e]).depth])&&(n={labels:a}),!o&&p?r[e]=o=new p(this,e,void 0,void 0,{category:l.name,tickmarkOffset:l.tickmarkOffset,options:n}):(o.parameters.category=l.name,o.options=n,o.addLabel(),this.isDirty=!0)):t.apply(this,Array.prototype.slice.call(arguments,1))}function e3(t,e,i,s){let r=this,o="treegrid"===i.type;r.treeGrid||(r.treeGrid=new e8(r)),o&&((0,w.addEvent)(e,"beforeRender",e2),(0,w.addEvent)(e,"beforeRedraw",e2),(0,w.addEvent)(e,"addSeries",function(t){if(t.options.data){let e=e1(t.options.data,i.uniqueNames||!1,1);r.treeGrid.collapsedNodes=(r.treeGrid.collapsedNodes||[]).concat(e.collapsedNodes)}}),(0,w.addEvent)(r,"foundExtremes",function(){r.treeGrid.collapsedNodes?.forEach(function(t){let e=r.treeGrid.collapse(t);r.brokenAxis&&(r.brokenAxis.setBreaks(e,!1),r.treeGrid.collapsedNodes&&(r.treeGrid.collapsedNodes=r.treeGrid.collapsedNodes.filter(e=>t.collapseStart!==e.collapseStart||t.collapseEnd!==e.collapseEnd)))})}),(0,w.addEvent)(r,"afterBreaks",function(){"yAxis"===r.coll&&!r.staticScale&&r.chart.options.chart.height&&(r.isDirty=!0)}),i=(0,w.merge)({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-3,height:6,width:8}},uniqueNames:!1},i,{reversed:!0})),t.apply(r,[e,i,s]),o&&(r.hasNames=!0,r.options.showLastLabel=!0)}function e4(t){let e=this.options,i=this.chart.time,s="number"==typeof e.linkedTo?this.chart[this.coll]?.[e.linkedTo]:void 0;if("treegrid"===this.type){if(this.min=this.userMin??i.parse(e.min)??this.dataMin,this.max=this.userMax??i.parse(e.max)??this.dataMax,(0,w.fireEvent)(this,"foundExtremes"),this.setAxisTranslation(),this.tickInterval=1,this.tickmarkOffset=.5,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[],s){let t=s.getExtremes();this.min=t.min??t.dataMin,this.max=t.max??t.dataMax,this.tickPositions=s.tickPositions}this.linkedParent=s}else t.apply(this,Array.prototype.slice.call(arguments,1))}function e6(t){let e=this;"treegrid"===this.type&&e.visible&&e.tickPositions.forEach(function(t){let i=e.ticks[t];i.label?.attachedTreeGridEvents&&((0,w.removeEvent)(i.label.element),i.label.attachedTreeGridEvents=!1)}),t.apply(e,Array.prototype.slice.call(arguments,1))}class e8{static compose(t,e,i,s){var r,o,a;if(!t.keepProps.includes("treeGrid")){let e=t.prototype;t.keepProps.push("treeGrid"),(0,w.wrap)(e,"generateTick",e5),(0,w.wrap)(e,"init",e3),(0,w.wrap)(e,"setTickInterval",e4),(0,w.wrap)(e,"redraw",e6),e.utils={getNode:ej},p||(p=s)}return r=t,o=e,a=s,r.keepProps.includes("grid")||(r.keepProps.push("grid"),r.prototype.getMaxLabelDimensions=eO,(0,w.wrap)(r.prototype,"unsquish",eX),(0,w.wrap)(r.prototype,"getOffset",eP),(0,w.addEvent)(r,"init",eH),(0,w.addEvent)(r,"afterGetTitlePosition",eT),(0,w.addEvent)(r,"afterInit",eC),(0,w.addEvent)(r,"afterRender",eN),(0,w.addEvent)(r,"afterSetAxisTranslation",eI),(0,w.addEvent)(r,"afterSetOptions",eD),(0,w.addEvent)(r,"afterSetOptions",eL),(0,w.addEvent)(r,"afterSetScale",eR),(0,w.addEvent)(r,"afterTickSize",ez),(0,w.addEvent)(r,"trimTicks",eV),(0,w.addEvent)(r,"destroy",eW),(0,w.addEvent)(o,"afterSetChartSize",eG),(0,w.addEvent)(a,"afterGetLabelPosition",eF),(0,w.addEvent)(a,"labelFormat",eU)),ew.compose(t,i),eK.compose(s),t}constructor(t){this.pendingSizeAdjustment=0,this.axis=t}setCollapsedStatus(t){let e=this.axis,i=e.chart;e.series.forEach(function(e){let s=eQ(e);if(t.id&&s){let r=i.get(t.id),o=s[e.data.indexOf(r)];e.dataTable.setRow({collapsed:t.collapsed},e.data.indexOf(r)),r&&(0,w.isObject)(o,!0)&&(r.collapsed=t.collapsed,o.collapsed=t.collapsed)}})}collapse(t){let e=this.axis,i=e.options.breaks||[],s=e0(t);return i.push(s),t.collapsed=!0,e.treeGrid.setCollapsedStatus(t),i}expand(t){let e=this.axis,i=e0(t);return t.collapsed=!1,e.treeGrid.setCollapsedStatus(t),e.options.breaks?.reduce(function(t,e){return(e.to!==i.to||e.from!==i.from)&&t.push(e),t},[])||[]}getTickPositions(){let t=this.axis,e=Math.floor(t.min/t.tickInterval)*t.tickInterval,i=Math.ceil(t.max/t.tickInterval)*t.tickInterval;return Object.keys(t.treeGrid.mapOfPosToGridNode||{}).reduce(function(s,r){let o=+r;return o>=e&&o<=i&&!t.brokenAxis?.isInAnyBreak(o)&&s.push(o),s},[])}isCollapsed(t){let e=this.axis.options.breaks||[],i=e0(t);return e.some(function(t){return t.from===i.from&&t.to===i.to})}toggleCollapse(t){return this.isCollapsed(t)?this.expand(t):this.collapse(t)}}let{series:e9,seriesTypes:{xrange:e7}}=ta();class it extends e7{static compose(t,e,i,s){e7.compose(t),e&&(ea(t,e),!i||(es.compose(e,i.prototype.pointClass),s&&e8.compose(t,e,i,s)))}getColumn(t){let e=this.chart.time;if("x"===t){let t=super.getColumn("start");if(t.length)return t.map(t=>e.parse(t)||0)}return super.getColumn.apply(this,arguments)}drawPoint(t,e){let i=this.options,s=this.chart.renderer,r=t.shapeArgs,o=t.plotY,a=t.selected&&"select",n=i.stacking&&!i.borderRadius,l=t.graphic,h;t.options.milestone?(0,w.isNumber)(o)&&null!==t.y&&!1!==t.visible?(h=s.symbols.diamond(r.x||0,r.y||0,r.width||0,r.height||0),l?l[e]({d:h}):t.graphic=l=s.path(h).addClass(t.getClassName(),!0).add(t.group||this.group),this.chart.styledMode||t.graphic.attr(this.pointAttribs(t,a)).shadow(i.shadow,null,n)):l&&(t.graphic=l.destroy()):super.drawPoint(t,e)}translatePoint(t){let e,i;super.translatePoint(t),t.options.milestone&&(i=(e=t.shapeArgs).height||0,t.shapeArgs={x:(e.x||0)-i/2,y:e.y,width:i,height:i})}}it.defaultOptions=(0,w.merge)(e7.defaultOptions,{grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 0.8em">{series.name}</span><br/>',pointFormat:null,pointFormatter:function(){let t=this.series,e=t.xAxis,i=t.tooltipOptions.dateTimeLabelFormats,s=e.options.startOfWeek,r=t.tooltipOptions,o=this.options.milestone,a=r.xDateFormat,n="<b>"+(this.name||this.yCategory)+"</b>";if(r.pointFormat)return this.tooltipFormatter(r.pointFormat);!a&&(0,w.isNumber)(this.start)&&(a=t.chart.time.getDateFormat(e.closestPointRange,this.start,s,i||{}));let l=t.chart.time.dateFormat(a,this.start),h=t.chart.time.dateFormat(a,this.end);return n+="<br/>",o?n+=l+"<br/>":n+="Start: "+l+"<br/>"+("End: "+h)+"<br/>",n}},connectors:{type:"simpleConnect",animation:{reversed:!0},radius:0,startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,align:"left"},endMarker:{enabled:!1,align:"right"}}}),(0,w.extend)(it.prototype,{pointArrayMap:["start","end","y"],pointClass:ek,setData:e9.prototype.setData}),ta().registerSeriesType("gantt",it);let ie=S();ie.Connection=ie.Connection||L,ie.GanttChart=ie.GanttChart||U,ie.Navigator=ie.Navigator||tS,ie.RangeSelector=ie.RangeSelector||tq,ie.Scrollbar=ie.Scrollbar||tk,ie.ganttChart=ie.GanttChart.ganttChart,P(ie.SVGRenderer),x=ie.Axis,m=ie.PlotLineOrBand,(0,w.pushUnique)(R,"CurrentDateIndication")&&((0,w.addEvent)(x,"afterSetOptions",function(){let t=this.options,e=t.currentDateIndicator;if(e){let i="object"==typeof e?(0,w.merge)(z,e):(0,w.merge)(z);i.value=Date.now(),i.className="highcharts-current-date-indicator",t.plotLines??(t.plotLines=[]),t.plotLines.push(i)}}),(0,w.addEvent)(m,"render",function(){this.label?.attr({text:this.getLabelText(this.options.label||{})})}),(0,w.wrap)(m.prototype,"getLabelText",function(t,e){if(this.options.className&&-1!==this.options.className.indexOf("highcharts-current-date-indicator")&&"function"==typeof this.options.label?.formatter){let t=this.options;return t.value=Date.now(),t.label?.formatter?.call(this,t.value,t.label.format,this)||""}return t.call(this,e)})),it.compose(ie.Axis,ie.Chart,ie.Series,ie.Tick),ie.Navigator.compose(ie.Chart,ie.Axis,ie.Series),ie.RangeSelector.compose(ie.Axis,ie.Chart),ie.Scrollbar.compose(ie.Axis);let ii=S();return A.default})());