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