!/**
 * Highcharts JS v12.5.0 (2026-01-12)
 * @module highcharts/modules/navigator
 * @requires highcharts
 *
 * Standalone navigator module
 *
 * (c) 2009-2026 Highsoft AS
 * Author: Mateusz Bernacik
 *
 * 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):"function"==typeof define&&define.amd?define("highcharts/modules/navigator",[["highcharts/highcharts"],["highcharts/highcharts","Chart"],["highcharts/highcharts","Axis"],["highcharts/highcharts","Color"],["highcharts/highcharts","SeriesRegistry"],["highcharts/highcharts","RendererRegistry"],["highcharts/highcharts","SVGRenderer"]],i):"object"==typeof exports?exports["highcharts/modules/navigator"]=i(require("highcharts"),require("highcharts").Chart,require("highcharts").Axis,require("highcharts").Color,require("highcharts").SeriesRegistry,require("highcharts").RendererRegistry,require("highcharts").SVGRenderer):t.Highcharts=i(t.Highcharts,t.Highcharts.Chart,t.Highcharts.Axis,t.Highcharts.Color,t.Highcharts.SeriesRegistry,t.Highcharts.RendererRegistry,t.Highcharts.SVGRenderer)}(this,function(t,i,e,s,r,a,o){return function(){"use strict";var n,h,d={512:function(t){t.exports=r},532:function(t){t.exports=e},540:function(t){t.exports=o},608:function(t){t.exports=a},620:function(t){t.exports=s},944:function(i){i.exports=t},960:function(t){t.exports=i}},l={};function c(t){var i=l[t];if(void 0!==i)return i.exports;var e=l[t]={exports:{}};return d[t](e,e.exports,c),e.exports}c.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return c.d(i,{a:i}),i},c.d=function(t,i){for(var e in i)c.o(i,e)&&!c.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:i[e]})},c.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)};var g={};c.d(g,{default:function(){return t8}});var u=c(944),p=c.n(u),v=c(960),x=c.n(v),f=c(532),m=c.n(f),b=p().isTouchDevice,y=p().addEvent,M=p().merge,A=p().pick,E=[];function k(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function w(){var t,i,e,s,r=this.legend,a=this.navigator;if(a){i=r&&r.options,e=a.xAxis,s=a.yAxis;var o=a.scrollbarHeight,n=a.scrollButtonSize;this.inverted?(a.left=a.opposite?this.chartWidth-o-a.height:this.spacing[3]+o,a.top=this.plotTop+n):(a.left=A(e.left,this.plotLeft+n),a.top=a.navigatorOptions.top||this.chartHeight-a.height-o-((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+A(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),e&&s&&(this.inverted?e.options.left=s.options.left=a.left:e.options.top=s.options.top=a.top,e.setAxisSize(),s.setAxisSize())}}function O(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new n(this),A(t.redraw,!0)&&this.redraw(t.animation))}function S(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new n(this))}function z(){var t=this.options,i=t.navigator,e=t.rangeSelector;if((i&&i.enabled||e&&e.enabled)&&(!b&&"x"===this.zooming.type||b&&"x"===this.zooming.pinchType))return!1}function R(t){var i=t.navigator;if(i&&t.xAxis[0]){var e=t.xAxis[0].getExtremes();i.render(e.min,e.max)}}function D(t){var i=t.options.navigator||{},e=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(i.enabled||e.enabled)&&(M(!0,this.options.navigator,i),M(!0,this.options.scrollbar,e),delete t.options.navigator,delete t.options.scrollbar)}var T=function(t,i){if(p().pushUnique(E,t)){var e=t.prototype;n=i,e.callbacks.push(R),y(t,"afterAddSeries",k),y(t,"afterSetChartSize",w),y(t,"afterUpdate",O),y(t,"beforeRender",S),y(t,"beforeShowResetZoom",z),y(t,"update",D)}},B=p().isTouchDevice,C=p().addEvent,P=p().correctFloat,L=p().defined,W=p().isNumber,H=p().pick;function U(){this.navigatorAxis||(this.navigatorAxis=new I(this))}function N(t){var i,e=this.chart,s=e.options,r=s.navigator,a=this.navigatorAxis,o=e.zooming.pinchType,n=s.rangeSelector,h=e.zooming.type;if(this.isXAxis&&((null==r?void 0:r.enabled)||(null==n?void 0:n.enabled))){if("y"===h&&"zoom"===t.trigger)i=!1;else if(("zoom"===t.trigger&&"xy"===h||B&&"xy"===o)&&this.options.range){var d=a.previousZoom;L(t.min)?a.previousZoom=[this.min,this.max]:d&&(t.min=d[0],t.max=d[1],a.previousZoom=void 0)}}void 0!==i&&t.preventDefault()}var I=function(){function t(t){this.axis=t}return t.compose=function(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),C(t,"init",U),C(t,"setExtremes",N))},t.prototype.destroy=function(){this.axis=void 0},t.prototype.toFixedRange=function(t,i,e,s){var r=this.axis,a=(r.pointRange||0)/2,o=H(e,r.translate(t,!0,!r.horiz)),n=H(s,r.translate(i,!0,!r.horiz));return L(e)||(o=P(o+a)),L(s)||(n=P(n-a)),W(o)&&W(n)||(o=n=void 0),{min:o,max:n}},t}(),X=c(620),G=c.n(X),Y=c(512),q=c.n(Y),F=G().parse,V=q().seriesTypes,j={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:F("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===V.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}},_=p().defined,Z=(p().isNumber,p().pick),J=function(t,i,e){if(e||2==arguments.length)for(var s,r=0,a=i.length;r<a;r++)!s&&r in i||(s||(s=Array.prototype.slice.call(i,0,r)),s[r]=i[r]);return t.concat(s||Array.prototype.slice.call(i))},K=p().relativeLength,Q={"navigator-handle":function(t,i,e,s,r){void 0===r&&(r={});var a,o,n,h,d,l=r.width?r.width/2:e,c=K(r.borderRadius||0,Math.min(2*l,s));return J([["M",-1.5,(s=r.height||s)/2-3.5],["L",-1.5,s/2+4.5],["M",.5,s/2-3.5],["L",.5,s/2+4.5]],(a=-l-1,o=.5,n=2*l+1,h=s,(d={r:c},d.r)?function(t,i,e,s,r){var a=(null==r?void 0:r.r)||0;return[["M",t+a,i],["L",t+e-a,i],["A",a,a,0,0,1,t+e,i+a],["L",t+e,i+s-a],["A",a,a,0,0,1,t+e-a,i+s],["L",t+a,i+s],["A",a,a,0,0,1,t,i+s-a],["L",t,i+a],["A",a,a,0,0,1,t+a,i],["Z"]]}(a,.5,n,h,d):[["M",a,.5],["L",a+n,.5],["L",a+n,.5+h],["L",a,.5+h],["Z"]]),!0)}},$=c(608),tt=c.n($),ti=p().defined,te=p().defaultOptions,ts=p().composed,tr=tt().getRendererType,ta={setFixedRange:function(t){var i=this.xAxis[0];ti(i.dataMax)&&ti(i.dataMin)&&t?this.fixedRange=Math.min(t,i.dataMax-i.dataMin):this.fixedRange=t}}.setFixedRange,to=p().addEvent,tn=p().extend,th=p().pushUnique;function td(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var tl=function(t,i,e){I.compose(i),th(ts,"Navigator")&&(t.prototype.setFixedRange=ta,tn(tr().prototype.symbols,Q),tn(te,{navigator:j}),to(e,"afterUpdate",td))},tc=p().composed,tg=p().addEvent,tu=p().correctFloat,tp=p().defined,tv=p().pick,tx=p().pushUnique;!function(t){var i;function e(t){var i,e,s,r,a,o,n,h,d=tv(null==(i=t.options)?void 0:i.min,t.min),l=tv(null==(e=t.options)?void 0:e.max,t.max);return{axisMin:d,axisMax:l,scrollMin:tp(t.dataMin)?Math.min(d,null!=(s=t.min)?s:1/0,t.dataMin,null!=(r=t.threshold)?r:1/0):d,scrollMax:null!=(o=null==(a=t.treeGrid)?void 0:a.adjustedMax)?o:tp(t.dataMax)?Math.max(l,null!=(n=t.max)?n:-1/0,t.dataMax,null!=(h=t.threshold)?h:-1/0):l}}function s(){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,s,r=this;(null==(s=null==(t=r.options)?void 0:t.scrollbar)?void 0:s.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),tg(r.scrollbar,"changed",function(t){var i,s,a=e(r),o=a.axisMin,n=a.axisMax,h=a.scrollMin,d=a.scrollMax,l=r.toPixels(h),c=r.toPixels(d)-l;if(tp(o)&&tp(n))if(r.horiz&&!r.reversed||!r.horiz&&r.reversed?(i=Math.min(d,r.toValue(l+c*this.to)),s=Math.max(h,r.toValue(l+c*this.from))):(i=Math.min(d,r.toValue(l+c*(1-this.from))),s=Math.max(h,r.toValue(l+c*(1-this.to)))),this.shouldUpdateExtremes(t.DOMType)){var g="mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&void 0;r.setExtremes(tu(s),tu(i),!0,g,t)}else this.setRange(this.from,this.to)}))}function a(){var t,i,s,r=e(this),a=r.scrollMin,o=r.scrollMax,n=this.scrollbar,h=(this.axisTitleMargin||0)+(this.titleOffset||0),d=this.chart.scrollbarsOffsets,l=this.options.margin||0;if(n&&d){if(this.horiz)this.opposite||(d[1]+=h),n.position(this.left,this.top+this.height+2+d[1]-(this.opposite?l:0),this.width,this.height),this.opposite||(d[1]+=l),t=1;else{this.opposite&&(d[0]+=h);var c=void 0;c=n.options.opposite?this.left+this.width+2+d[0]-(this.opposite?0:l):this.opposite?0:l,n.position(c,this.top,this.width,this.height),this.opposite&&(d[0]+=l),t=0}if(d[t]+=n.size+(n.options.margin||0),isNaN(a)||isNaN(o)||!tp(this.min)||!tp(this.max)||tp(this.dataMin)&&this.dataMin===this.dataMax)n.setRange(0,1);else if(this.min===this.max){var g=this.pointRange/(this.dataMax+1);i=g*this.min,s=g*(this.max+1),n.setRange(i,s)}else i=(this.toPixels(this.min)-this.toPixels(a))/(this.toPixels(o)-this.toPixels(a)),s=(this.toPixels(this.max)-this.toPixels(a))/(this.toPixels(o)-this.toPixels(a)),this.horiz&&!this.reversed||!this.horiz&&this.reversed?n.setRange(i,s):n.setRange(1-s,1-i)}}t.compose=function(t,e){tx(tc,"Axis.Scrollbar")&&(i=e,tg(t,"afterGetOffset",s),tg(t,"afterInit",r),tg(t,"afterRender",a))}}(h||(h={}));var tf=h,tm={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},tb=p().defaultOptions,ty=p().composed,tM=p().addEvent,tA=p().correctFloat,tE=p().crisp,tk=p().defined,tw=p().destroyObjectProperties,tO=p().extend,tS=p().fireEvent,tz=p().merge,tR=p().pick,tD=p().pushUnique,tT=p().removeEvent,tB=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){tf.compose(i,t),tD(ty,"Scrollbar")&&tO(tb,{scrollbar:tm})},t.swapXY=function(t,i){return i&&t.forEach(function(t){for(var i,e=t.length,s=0;s<e;s+=2)"number"==typeof(i=t[s+1])&&(t[s+1]=t[s+2],t[s+2]=i)}),t},t.prototype.addEvents=function(){var t=this.options.inverted?[1,0]:[0,1],i=this.scrollbarButtons,e=this.scrollbarGroup.element,s=this.track.element,r=this.mouseDownHandler.bind(this),a=this.mouseMoveHandler.bind(this),o=this.mouseUpHandler.bind(this),n=[[i[t[0]].element,"click",this.buttonToMinClick.bind(this)],[i[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[s,"click",this.trackClick.bind(this)],[e,"mousedown",r],[e.ownerDocument,"mousemove",a],[e.ownerDocument,"mouseup",o],[e,"touchstart",r],[e.ownerDocument,"touchmove",a],[e.ownerDocument,"touchend",o]];n.forEach(function(t){tM.apply(null,t)}),this._events=n},t.prototype.buttonToMaxClick=function(t){var i=(this.to-this.from)*tR(this.options.step,.2);this.updatePosition(this.from+i,this.to+i),tS(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.buttonToMinClick=function(t){var i=tA(this.to-this.from)*tR(this.options.step,.2);this.updatePosition(tA(this.from-i),tA(this.to-i)),tS(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,tw(i.scrollbarButtons))},t.prototype.drawScrollbarButton=function(i){var e=this.renderer,s=this.scrollbarButtons,r=this.options,a=this.size,o=e.g().add(this.group);if(s.push(o),r.buttonsEnabled){var n=e.rect().addClass("highcharts-scrollbar-button").add(o);this.chart.styledMode||n.attr({stroke:r.buttonBorderColor,"stroke-width":r.buttonBorderWidth,fill:r.buttonBackgroundColor}),n.attr(n.crisp({x:-.5,y:-.5,width:a,height:a,r:r.buttonBorderRadius},n.strokeWidth()));var h=e.path(t.swapXY([["M",a/2+(i?-1:1),a/2-3],["L",a/2+(i?-1:1),a/2+3],["L",a/2+(i?2:-2),a/2]],r.vertical)).addClass("highcharts-scrollbar-arrow").add(s[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=tz(tm,tb.scrollbar,i),this.options.margin=tR(this.options.margin,10),this.chart=e,this.size=tR(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,s=this.cursorToScrollbarPosition(e);this.chartX=s.chartX,this.chartY=s.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},t.prototype.mouseMoveHandler=function(t){var i,e,s=(null==(i=this.chart.pointer)?void 0:i.normalize(t))||t,r=this.options.vertical?"chartY":"chartX",a=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][r])&&(e=this.cursorToScrollbarPosition(s)[r]-this[r],this.hasDragged=!0,this.updatePosition(a[0]+e,a[1]+e),this.hasDragged&&tS(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&tS(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,s){var r=this.options,a=r.buttonsEnabled,o=r.margin,n=void 0===o?0:o,h=r.vertical,d=this.rendered?"animate":"attr",l=s,c=0;this.group.show(),this.x=t,this.y=i+this.trackBorderWidth,this.width=e,this.height=s,this.xOffset=l,this.yOffset=c,h?(this.width=this.yOffset=e=c=this.size,this.xOffset=l=0,this.yOffset=c=a?this.size:0,this.barWidth=s-(a?2*e:0),this.x=t+=n):(this.height=s=this.size,this.xOffset=l=a?this.size:0,this.barWidth=e-(a?2*s:0),this.y=this.y+n),this.group[d]({translateX:t,translateY:this.y}),this.track[d]({width:e,height:s}),this.scrollbarButtons[1][d]({translateX:h?0:e-l,translateY:h?s-c:0})},t.prototype.removeEvents=function(){this._events.forEach(function(t){tT.apply(null,t)}),this._events.length=0},t.prototype.render=function(){var i=this.renderer,e=this.options,s=this.size,r=this.chart.styledMode,a=i.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=a,this.track=i.rect().addClass("highcharts-scrollbar-track").attr({r:e.trackBorderRadius||0,height:s,width:s}).add(a),r||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});var o=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-tE(0,o),y:-tE(0,o)}),this.scrollbarGroup=i.g().add(a),this.scrollbar=i.rect().addClass("highcharts-scrollbar-thumb").attr({height:s-o,width:s-o,r:e.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=i.path(t.swapXY([["M",-3,s/4],["L",-3,2*s/3],["M",0,s/4],["L",0,2*s/3],["M",3,s/4],["L",3,2*s/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(-tE(0,this.scrollbarStrokeWidth),-tE(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},t.prototype.setRange=function(t,i){var e,s,r=this.options,a=r.vertical,o=r.minWidth,n=this.barWidth,h=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(tk(n)){var d=n*Math.min(i,1);e=Math.ceil(n*(t=Math.max(t,0))),this.calculatedWidth=s=tA(d-e),s<o&&(e=(n-o+s)*t,s=o);var l=Math.floor(e+this.xOffset+this.yOffset),c=s/2-.5;this.from=t,this.to=i,a?(this.scrollbarGroup[h]({translateY:l}),this.scrollbar[h]({height:s}),this.scrollbarRifles[h]({translateY:c}),this.scrollbarTop=l,this.scrollbarLeft=0):(this.scrollbarGroup[h]({translateX:l}),this.scrollbar[h]({width:s}),this.scrollbarRifles[h]({translateX:c}),this.scrollbarLeft=l,this.scrollbarTop=0),s<=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 tR(this.options.liveRedraw,p().svg&&!p().isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!tk(t)},t.prototype.trackClick=function(t){var i,e=(null==(i=this.chart.pointer)?void 0:i.normalize(t))||t,s=this.to-this.from,r=this.y+this.scrollbarTop,a=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>r||!this.options.vertical&&e.chartX>a?this.updatePosition(this.from+s,this.to+s):this.updatePosition(this.from-s,this.to-s),tS(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,tz(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,i){i>1&&(t=tA(1-tA(i-t)),i=1),t<0&&(i=tA(i-t),t=0),this.from=t,this.to=i},t.defaultOptions=tm,t}(),tC=c(540),tP=c.n(tC),tL=function(){return(tL=Object.assign||function(t){for(var i,e=1,s=arguments.length;e<s;e++)for(var r in i=arguments[e])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},tW=p().defaultOptions,tH=p().isTouchDevice,tU=tP().prototype.symbols,tN=p().addEvent,tI=p().clamp,tX=p().correctFloat,tG=p().defined,tY=p().destroyObjectProperties,tq=p().erase,tF=p().extend,tV=p().find,tj=p().fireEvent,t_=p().isArray,tZ=p().isNumber,tJ=p().merge,tK=p().pick,tQ=p().removeEvent,t$=p().splat;function t0(t){for(var i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];var s=[].filter.call(i,tZ);if(s.length)return Math[t].apply(0,s)}var t1=function(){function t(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}return t.compose=function(i,e,s){T(i,t),tl(i,e,s)},t.prototype.drawHandle=function(t,i,e,s){var r=this.navigatorOptions.handles.height;this.handles[i][s](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,s){var r,a,o=this.navigatorOptions.maskInside,n=this.outline.strokeWidth(),h=n/2,d=n%2/2,l=this.scrollButtonSize,c=this.size,g=this.top,u=this.height,p=g-h,v=g+u,x=this.left;e?(r=g+i+d,i=g+t+d,a=[["M",x+u,g-l-d],["L",x+u,r],["L",x,r],["M",x,i],["L",x+u,i],["L",x+u,g+c+l]],o&&a.push(["M",x+u,r-h],["L",x+u,i+h])):(x-=l,t+=x+l-d,i+=x+l-d,a=[["M",x,p],["L",t,p],["L",t,v],["M",i,v],["L",i,p],["L",x+c+2*l,p]],o&&a.push(["M",t-h,p],["L",i+h,p])),this.outline[s]({d:a})},t.prototype.drawMasks=function(t,i,e,s){var r,a,o,n,h=this.left,d=this.top,l=this.height;e?(o=[h,h,h],n=[d,d+t,d+i],a=[l,l,l],r=[t,i-t,this.size-i]):(o=[h,h+t,h+i],n=[d,d,d],a=[t,i-t,this.size-i],r=[l,l,l]),this.shades.forEach(function(t,i){t[s]({x:o[i],y:n[i],width:a[i],height:r[i]})})},t.prototype.renderElements=function(){var t,i,e=this,s=e.navigatorOptions,r=s.maskInside,a=e.chart,o=a.inverted,n=a.renderer,h={cursor:o?"ns-resize":"ew-resize"},d=null!=(t=e.navigatorGroup)?t:e.navigatorGroup=n.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!r,r,!r].forEach(function(t,i){var r,o=null!=(r=e.shades[i])?r:e.shades[i]=n.rect().addClass("highcharts-navigator-mask"+(1===i?"-inside":"-outside")).add(d);a.styledMode||(o.attr({fill:t?s.maskFill:"rgba(0,0,0,0)"}),1===i&&o.css(h))}),e.outline||(e.outline=n.path().addClass("highcharts-navigator-outline").add(d)),a.styledMode||e.outline.attr({"stroke-width":s.outlineWidth,stroke:s.outlineColor}),null==(i=s.handles)?void 0:i.enabled){var l=s.handles,c=l.height,g=l.width;[0,1].forEach(function(t){var i,s=l.symbols[t];if(e.handles[t]&&e.handles[t].symbolUrl===s){if(!e.handles[t].isImg&&e.handles[t].symbolName!==s){var r=tU[s].call(tU,-g/2-1,0,g,c);e.handles[t].attr({d:r}),e.handles[t].symbolName=s}}else null==(i=e.handles[t])||i.destroy(),e.handles[t]=n.symbol(s,-g/2-1,0,g,c,l),e.handles[t].attr({zIndex:7-t}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][t]).add(d),e.addMouseEvents();a.inverted&&e.handles[t].attr({rotation:90,rotationOriginX:Math.floor(-g/2),rotationOriginY:(c+g)/2}),a.styledMode||e.handles[t].attr({fill:l.backgroundColor,stroke:l.borderColor,"stroke-width":l.lineWidth,width:l.width,height:l.height,x:-g/2-1,y:0}).css(h)})}},t.prototype.update=function(t,i){var e,s,r,a,o=this;void 0===i&&(i=!1);var n=this.chart,h=n.options.chart.inverted!==(null==(r=n.scrollbar)?void 0:r.options.vertical);if(tJ(!0,n.options.navigator,t),this.navigatorOptions=n.options.navigator||{},this.setOpposite(),tG(t.enabled)||h)return this.destroy(),this.navigatorEnabled=t.enabled||this.navigatorEnabled,this.init(n);if(this.navigatorEnabled&&(this.isDirty=!0,!1===t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){tQ(t,"updatedData",o.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){t.eventsToUnbind.push(tN(t,"updatedData",o.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=null!=(a=t.height)?a:this.height;var d=this.getXAxisOffsets();this.xAxis.update(tL(tL({},t.xAxis),((e={offsets:d})[n.inverted?"width":"height"]=this.height,e[n.inverted?"height":"width"]=void 0,e)),!1),this.yAxis.update(tL(tL({},t.yAxis),((s={})[n.inverted?"width":"height"]=this.height,s)),!1)}i&&n.redraw()},t.prototype.render=function(t,i,e,s){var r,a,o,n,h,d=this.chart,l=this.xAxis,c=l.pointRange||0,g=l.navigatorAxis.fake?d.xAxis[0]:l,u=this.navigatorEnabled,p=this.rendered,v=d.inverted,x=d.xAxis[0].minRange,f=d.xAxis[0].options.maxRange,m=this.scrollButtonSize,b=this.scrollbarHeight;if(!this.hasDragged||tG(e)){if(this.isDirty&&this.renderElements(),t=tX(t-c/2),i=tX(i+c/2),!tZ(t)||!tZ(i))if(!p)return;else e=0,s=tK(l.width,g.width);this.left=tK(l.left,d.plotLeft+m+(v?d.plotWidth:0));var y=this.size=n=tK(l.len,(v?d.plotHeight:d.plotWidth)-2*m);r=v?b:n+2*m,e=tK(e,l.toPixels(t,!0)),s=tK(s,l.toPixels(i,!0)),tZ(e)&&Math.abs(e)!==1/0||(e=0,s=r);var M=l.toValue(e,!0),A=l.toValue(s,!0),E=Math.abs(tX(A-M));E<x?this.grabbedLeft?e=l.toPixels(A-x-c,!0):this.grabbedRight&&(s=l.toPixels(M+x+c,!0)):tG(f)&&tX(E-c)>f&&(this.grabbedLeft?e=l.toPixels(A-f-c,!0):this.grabbedRight&&(s=l.toPixels(M+f+c,!0))),this.zoomedMax=tI(Math.max(e,s),0,y),this.zoomedMin=tI(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,s),0,y),this.range=this.zoomedMax-this.zoomedMin,y=Math.round(this.zoomedMax);var k=Math.round(this.zoomedMin);u&&(this.navigatorGroup.attr({visibility:"inherit"}),h=p&&!this.hasDragged?"animate":"attr",this.drawMasks(k,y,v,h),this.drawOutline(k,y,v,h),this.navigatorOptions.handles.enabled&&(this.drawHandle(k,0,v,h),this.drawHandle(y,1,v,h))),this.scrollbar&&(v?(o=this.top-m,a=this.left-b+(u||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),b=n+2*m):(o=this.top+(u?this.height:-b),a=this.left-m),this.scrollbar.position(a,o,r,b),this.scrollbar.setRange(this.zoomedMin/(n||1),this.zoomedMax/(n||1))),this.rendered=!0,this.isDirty=!1,tj(this,"afterRender")}},t.prototype.addMouseEvents=function(){var t,i,e=this,s=e.chart,r=s.container,a=[];e.mouseMoveHandler=t=function(t){e.onMouseMove(t)},e.mouseUpHandler=i=function(t){e.onMouseUp(t)},(a=e.getPartsEvents("mousedown")).push(tN(s.renderTo,"mousemove",t),tN(r.ownerDocument,"mouseup",i),tN(s.renderTo,"touchmove",t),tN(r.ownerDocument,"touchend",i)),a.concat(e.getPartsEvents("touchstart")),e.eventsToUnbind=a,e.series&&e.series[0]&&a.push(tN(e.series[0].xAxis,"foundExtremes",function(){s.navigator.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(t){var i=this,e=[];return["shades","handles"].forEach(function(s){i[s].forEach(function(r,a){e.push(tN(r.element,t,function(t){i[s+"Mousedown"](t,a)}))})}),e},t.prototype.shadesMousedown=function(t,i){t=(null==(e=this.chart.pointer)?void 0:e.normalize(t))||t;var e,s,r,a,o,n=this.chart,h=this.xAxis,d=this.zoomedMin,l=this.size,c=this.range,g=this.left,u=t.chartX;n.inverted&&(u=t.chartY,g=this.top),1===i?(this.grabbedCenter=u,this.fixedWidth=c,this.dragOffset=u-d):(o=u-g-c/2,0===i?o=Math.max(0,o):2===i&&o+c>=l&&(o=l-c,this.reversedExtremes?(o-=c,r=this.getUnionExtremes().dataMin):s=this.getUnionExtremes().dataMax),o!==d&&(this.fixedWidth=c,tG((a=h.navigatorAxis.toFixedRange(o,o+c,r,s)).min)&&tj(this,"setRange",{min:Math.min(a.min,a.max),max:Math.max(a.min,a.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,s=this.chart,r=s.xAxis[0],a=this.reversedExtremes;0===i?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=a?r.min:r.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=a?r.max:r.min),s.setFixedRange(void 0)},t.prototype.onMouseMove=function(t){var i,e,s=this,r=s.chart,a=s.navigatorSize,o=s.range,n=s.dragOffset,h=r.inverted,d=s.left;(!t.touches||0!==t.touches[0].pageX)&&(e=(t=(null==(i=r.pointer)?void 0:i.normalize(t))||t).chartX,h&&(d=s.top,e=t.chartY),s.grabbedLeft?(s.hasDragged=!0,s.render(0,0,e-d,s.otherHandlePos)):s.grabbedRight?(s.hasDragged=!0,s.render(0,0,s.otherHandlePos,e-d)):s.grabbedCenter&&(s.hasDragged=!0,e<n?e=n:e>a+n-o&&(e=a+n-o),s.render(0,0,e-n,e-n+o)),s.hasDragged&&s.scrollbar&&tK(s.scrollbar.options.liveRedraw,!tH&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){s.onMouseUp(t)},0)))},t.prototype.onMouseUp=function(t){var i,e,s,r,a,o,n=this.chart,h=this.xAxis,d=this.scrollbar,l=t.DOMEvent||t,c=n.inverted,g=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===t.trigger)&&(s=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?r=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(a=this.fixedExtreme),this.zoomedMax===this.size&&(a=this.reversedExtremes?s.dataMin:s.dataMax),0===this.zoomedMin&&(r=this.reversedExtremes?s.dataMax:s.dataMin),tG((o=h.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,r,a)).min)&&tj(this,"setRange",{min:Math.min(o.min,o.max),max:Math.max(o.min,o.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:l}})),"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&&tZ(this.zoomedMin)&&tZ(this.zoomedMax)&&(e=Math.round(this.zoomedMin),i=Math.round(this.zoomedMax),this.shades&&this.drawMasks(e,i,c,g),this.outline&&this.drawOutline(e,i,c,g),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(e,0,c,g),this.drawHandle(i,1,c,g)))},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){tQ(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&tQ(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,s=t.options,r=s.navigator||{},a=r.enabled,o=s.scrollbar||{},n=o.enabled,h=a&&r.height||0,d=n&&o.height||0,l=o.buttonsEnabled&&d||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=h,this.scrollbarHeight=d,this.scrollButtonSize=l,this.scrollbarEnabled=n,this.navigatorEnabled=a,this.navigatorOptions=r,this.scrollbarOptions=o,this.setOpposite();var c=this,g=c.baseSeries,u=t.xAxis.length,p=t.yAxis.length,v=g&&g[0]&&g[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,c.navigatorEnabled){var x=this.getXAxisOffsets();c.xAxis=new(m())(t,tJ({breaks:v.options.breaks,ordinal:v.options.ordinal,overscroll:v.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:v.options.ordinal?0:v.options.minPadding,maxPadding:v.options.ordinal?0:v.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:x,width:h}:{offsets:x,height:h}),"xAxis"),c.yAxis=new(m())(t,tJ(r.yAxis,{alignTicks:!1,offset:0,index:p,isInternal:!0,reversed:tK(r.yAxis&&r.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:h}:{height:h}),"yAxis"),g||r.series.data?c.updateNavigatorSeries(!1):0===t.series.length&&(c.unbindRedraw=tN(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 s=t.xAxis[0],r=s.getExtremes(),a=s.len-2*l,o=t0("min",s.options.min,r.dataMin),n=t0("max",s.options.max,r.dataMax)-o;return e?i*n/a+o:a*(i-o)/n},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=I.prototype.toFixedRange.bind(c.xAxis.navigatorAxis);if(null==(e=t.options.scrollbar)?void 0:e.enabled){var f=tJ(t.options.scrollbar,{vertical:t.inverted});tZ(f.margin)||(f.margin=t.inverted?-3:3),t.scrollbar=c.scrollbar=new tB(t.renderer,f,t),tN(c.scrollbar,"changed",function(t){var i=c.size,e=i*this.to,s=i*this.from;c.hasDragged=c.scrollbar.hasDragged,c.render(0,0,s,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=tK(t.opposite,!!(!i&&e.inverted))},t.prototype.getUnionExtremes=function(t){var i,e=this.chart.xAxis[0],s=this.chart.time,r=this.xAxis,a=r.options,o=e.options;return t&&null===e.dataMin||(i={dataMin:tK(s.parse(null==a?void 0:a.min),t0("min",s.parse(o.min),e.dataMin,r.dataMin,r.min)),dataMax:tK(s.parse(null==a?void 0:a.max),t0("max",s.parse(o.max),e.dataMax,r.dataMax,r.max))}),i},t.prototype.setBaseSeries=function(t,i){var e=this.chart,s=this.baseSeries=[];t=t||e.options&&e.options.navigator.baseSeries||(e.series.length?tV(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)&&s.push(i)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,i)},t.prototype.updateNavigatorSeries=function(t,i){var e,s,r,a,o,n=this,h=n.chart,d=n.baseSeries,l={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:null==(e=this.navigatorOptions.xAxis)?void 0:e.id,yAxis:null==(s=this.navigatorOptions.yAxis)?void 0:s.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},c=n.series=(n.series||[]).filter(function(t){var i=t.baseSeries;return!(0>d.indexOf(i))||(i&&(tQ(i,"updatedData",n.updatedDataHandler),delete i.navigatorSeries),t.chart&&t.destroy(),!1)}),g=n.navigatorOptions.series;d&&d.length&&d.forEach(function(t){var e,s=t.navigatorSeries,u=tF({color:t.color,visible:t.visible},t_(g)?tW.navigator.series:g);if(!s||!1!==n.navigatorOptions.adaptToUpdatedData){l.name="Navigator "+d.length,o=(r=t.options||{}).navigatorOptions||{},u.dataLabels=t$(u.dataLabels),(a=tJ(r,l,u,o)).pointRange=tK(u.pointRange,o.pointRange,tW.plotOptions[a.type||"line"].pointRange);var p=o.data||u.data;n.hasNavigatorData=n.hasNavigatorData||!!p,a.data=p||(null==(e=r.data)?void 0:e.slice(0)),s&&s.options?s.update(a,i):(t.navigatorSeries=h.initSeries(a),h.setSortedData(),t.navigatorSeries.baseSeries=t,c.push(t.navigatorSeries))}}),(g.data&&!(d&&d.length)||t_(g))&&(n.hasNavigatorData=!1,(g=t$(g)).forEach(function(t,i){l.name="Navigator "+(c.length+1),(a=tJ(tW.navigator.series,{color:h.series[i]&&!h.series[i].options.isInternal&&h.series[i].color||h.options.colors[i]||h.options.colors[0]},l,t)).data=t.data,a.data&&(n.hasNavigatorData=!0,c.push(h.initSeries(a)))})),t&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var t=this,i=this,e=i.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push(tN(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(function(s){s.eventsToUnbind.push(tN(s,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),s.eventsToUnbind.push(tN(s,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==t.navigatorOptions.adaptToUpdatedData&&s.xAxis&&s.eventsToUnbind.push(tN(s,"updatedData",t.updatedDataHandler)),s.eventsToUnbind.push(tN(s,"remove",function(){e&&tq(e,s),this.navigatorSeries&&i.series&&(tq(i.series,this.navigatorSeries),tG(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,s=this.chart.navigator,r=this.getExtremes(),a=r.min,o=r.max,n=r.dataMin,h=r.dataMax,d=o-a,l=s.stickToMin,c=s.stickToMax,g=tK(null==(t=this.ordinal)?void 0:t.convertOverscroll(this.options.overscroll),0),u=s.series&&s.series[0],p=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(l&&(i=(e=n)+d),c&&(i=h+g,l||(e=Math.max(n,i-d,s.getBaseSeriesMin(u&&u.xData?u.xData[0]:-Number.MAX_VALUE)))),p&&(l||c)&&tZ(e)&&(this.min=this.userMin=e,this.max=this.userMax=i)),s.stickToMin=s.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=tK(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]),s=t.xAxis,r=s.max,a=s.min,o=s.options.range;return!!(tZ(r)&&tZ(a))&&(o&&r-e>0?r-e<o:a<=e)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(tN(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)}),tN(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)}),tN(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&&(tq(this.chart.xAxis,this.xAxis),tq(this.chart.axes,this.xAxis)),this.yAxis&&(tq(this.chart.yAxis,this.yAxis),tq(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){tY(t)}),this.baseSeries.forEach(function(t){t.navigatorSeries=void 0}),this.navigatorEnabled=!1},t}(),t2={chart:{height:70,margin:[0,5,0,5]},exporting:{enabled:!1},legend:{enabled:!1},navigator:{enabled:!1},plotOptions:{series:{states:{hover:{enabled:!1}},marker:{enabled:!1}}},scrollbar:{enabled:!1},title:{text:""},tooltip:{enabled:!1},xAxis:{visible:!1},yAxis:{height:0,visible:!1}},t5=p().merge,t3=p().addEvent,t6=p().fireEvent,t9=p().pick,t4=function(){function t(t,i){this.boundAxes=[],this.userOptions=i,this.chartOptions=t5(p().getOptions(),t2,i.chart,{navigator:i}),this.chartOptions.chart&&i.height&&(this.chartOptions.chart.height=i.height);var e=new(x())(t,this.chartOptions);e.options=t5(e.options,{navigator:{enabled:!0},scrollbar:{enabled:!0}}),this.chartOptions.navigator&&this.chartOptions.scrollbar&&(this.chartOptions.navigator.enabled=!0,this.chartOptions.scrollbar.enabled=!0),this.navigator=new t1(e),e.navigator=this.navigator,this.initNavigator()}return t.navigator=function(i,e){var s=new t(i,e);return p().navigators?p().navigators.push(s):p().navigators=[s],s},t.prototype.bind=function(t,i){var e=this;void 0===i&&(i=!0);var s=this,r=t instanceof x()?t.xAxis[0]:t;if(r instanceof m()){var a=this.navigator.xAxis,o=a.min,n=a.max,h=[];if(i){var d=t3(r,"setExtremes",function(t){("pan"===t.trigger||"zoom"===t.trigger||"mousewheel"===t.trigger||"rangeSelectorButton"===t.trigger||"rangeSelectorInput"===t.trigger)&&s.setRange(t.min,t.max,!0,"pan"!==t.trigger&&"mousewheel"!==t.trigger,{trigger:r})});h.push(d)}var l=t3(this.navigator,"setRange",function(t){r.setExtremes(t.min,t.max,t.redraw,t.animation)});h.push(l);var c=this.boundAxes.filter(function(t){return t.axis===r})[0];c||(c={axis:r,callbacks:[]},this.boundAxes.push(c)),c.callbacks=h,r.series.forEach(function(t){t.options.showInNavigator&&s.addSeries(t.options)}),r.setExtremes(o,n),t3(r,"destroy",function(t){t.keepEvents||e.unbind(r)})}},t.prototype.unbind=function(t){if(!t){this.boundAxes.forEach(function(t){t.callbacks.forEach(function(t){return t()})}),this.boundAxes.length=0;return}for(var i=t instanceof m()?t:t.xAxis[0],e=this.boundAxes.length-1;e>=0;e--)this.boundAxes[e].axis===i&&(this.boundAxes[e].callbacks.forEach(function(t){return t()}),this.boundAxes.splice(e,1))},t.prototype.destroy=function(){this.boundAxes.forEach(function(t){t.callbacks.forEach(function(t){return t()})}),this.boundAxes.length=0,this.navigator.destroy(),this.navigator.chart.destroy()},t.prototype.update=function(t,i){this.chartOptions=t5(this.chartOptions,t.height&&{chart:{height:t.height}},t.chart,{navigator:t}),this.navigator.chart.update(this.chartOptions,i)},t.prototype.redraw=function(){this.navigator.chart.redraw()},t.prototype.addSeries=function(t){this.navigator.chart.addSeries(t5(t,{showInNavigator:t9(t.showInNavigator,!0)})),this.navigator.setBaseSeries()},t.prototype.initNavigator=function(){var t,i=this.navigator;i.top=1,i.xAxis.setScale(),i.yAxis.setScale(),i.xAxis.render(),i.yAxis.render(),null==(t=i.series)||t.forEach(function(t){t.translate(),t.render(),t.redraw()});var e=this.getInitialExtremes(),s=e.min,r=e.max;i.chart.xAxis[0].userMin=s,i.chart.xAxis[0].userMax=r,i.render(s,r)},t.prototype.getRange=function(){var t=this.navigator.chart.xAxis[0].getExtremes(),i=t.min,e=t.max,s=this.navigator.xAxis.getExtremes(),r=s.userMin,a=s.userMax,o=s.min,n=s.max;return{min:t9(i,o),max:t9(e,n),dataMin:o,dataMax:n,userMin:r,userMax:a}},t.prototype.setRange=function(t,i,e,s,r){t6(this.navigator,"setRange",{min:t,max:i,redraw:e,animation:s,eventArguments:t5(r,{trigger:"navigator"})})},t.prototype.getInitialExtremes=function(){var t=this.navigator.xAxis.getExtremes();return{min:t.min,max:t.max}},t}(),t7=p();t7.StandaloneNavigator=t7.StandaloneNavigator||t4,t7.navigator=t7.StandaloneNavigator.navigator,tl(t7.Chart,t7.Axis,t7.Series);var t8=p();return g.default}()});