!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @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(t._Highcharts,t._Highcharts.Chart,t._Highcharts.Axis,t._Highcharts.Color,t._Highcharts.SeriesRegistry,t._Highcharts.RendererRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/navigator",["highcharts/highcharts"],function(t){return i(t,t.Chart,t.Axis,t.Color,t.SeriesRegistry,t.RendererRegistry)}):"object"==typeof exports?exports["highcharts/modules/navigator"]=i(t._Highcharts,t._Highcharts.Chart,t._Highcharts.Axis,t._Highcharts.Color,t._Highcharts.SeriesRegistry,t._Highcharts.RendererRegistry):t.Highcharts=i(t.Highcharts,t.Highcharts.Chart,t.Highcharts.Axis,t.Highcharts.Color,t.Highcharts.SeriesRegistry,t.Highcharts.RendererRegistry)}("u"<typeof window?this:window,function(t,i,e,s,r,o){return function(){"use strict";var a,n,h={512:function(t){t.exports=r},532:function(t){t.exports=e},608:function(t){t.exports=o},620:function(t){t.exports=s},944:function(i){i.exports=t},960:function(t){t.exports=i}},l={};function d(t){var i=l[t];if(void 0!==i)return i.exports;var e=l[t]={exports:{}};return h[t](e,e.exports,d),e.exports}d.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return d.d(i,{a:i}),i},d.d=function(t,i){for(var e in i)d.o(i,e)&&!d.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:i[e]})},d.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)};var c={};d.d(c,{default:function(){return tR}});var u=d(944),p=d.n(u),g=d(960),v=d.n(g),f=d(532),x=d.n(f),m=function(t,i,e){if(e||2==arguments.length)for(var s,r=0,o=i.length;r<o;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))},b=p().doc;function y(t,i,e,s){void 0===s&&(s={});var r="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={});var o=r.hcEvents;p().Point&&t instanceof p().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var a=t.addEventListener;a&&a.call(t,i,e,!!p().supportsPassiveEvents&&{passive:void 0===s.passive?-1!==i.indexOf("touch"):s.passive,capture:!1}),o[i]||(o[i]=[]);var n={fn:e,order:"number"==typeof s.order?s.order:1/0};return o[i].push(n),o[i].sort(function(t,i){return t.order-i.order}),function(){W(t,i,e)}}function M(t,i){return t>1e14?t:parseFloat(t.toPrecision(i||14))}function A(t,i,e){void 0===i&&(i=0);var s=i%2/2,r=e?-1:1;return(Math.round(t*r-s)+s)*r}function E(t){return null!=t}function O(t,i,e){C(t,function(s,r){s!==i&&(null==s?void 0:s.destroy)&&s.destroy(),((null==s?void 0:s.destroy)||!e)&&delete t[r]})}function w(t,i){for(var e=t.length;e--;)if(t[e]===i){t.splice(e,1);break}}function k(t,i){var e;for(e in t||(t={}),i)t[e]=i[e];return t}function S(t,i,e,s){if(e=e||{},(null==b?void 0:b.createEvent)&&(t.dispatchEvent||t.fireEvent&&t!==p())){var r=b.createEvent("Events");r.initEvent(i,!0,!0),e=k(r,e),t.dispatchEvent?t.dispatchEvent(e):t.fireEvent(i,e)}else if(t.hcEvents){e.target||k(e,{preventDefault:function(){e.defaultPrevented=!0},target:t,type:i});for(var o=[],a=t,n=!1;a.hcEvents;)Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents[i]&&(o.length&&(n=!0),o.unshift.apply(o,a.hcEvents[i])),a=Object.getPrototypeOf(a);n&&o.sort(function(t,i){return t.order-i.order}),o.forEach(function(i){!1===i.fn.call(t,e,t)&&e.preventDefault()})}s&&!e.defaultPrevented&&s.call(t,e)}p().win;var z=Array.prototype.find?function(t,i){return t.find(i)}:function(t,i){var e,s=t.length;for(e=0;e<s;e++)if(i(t[e],e))return t[e]};function D(t){return B(t)&&"number"==typeof t.nodeType}function R(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function T(t){var i=Object.prototype.toString.call(t);return"[object Array]"===i||"[object Array Iterator]"===i}function B(t,i){return!!t&&"object"==typeof t&&(!i||!T(t))}function P(t){for(var i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];var s,r=m([t],i,!0),o={},a=function(t,i){return"object"!=typeof t&&(t={}),C(i,function(e,s){if("__proto__"!==s&&"constructor"!==s){var r;!B(e,!0)||(r=null==e?void 0:e.constructor,B(e,!0)&&!D(e)&&(null==r?void 0:r.name)&&"Object"!==r.name)||D(e)?t[s]=i[s]:t[s]=a(t[s]||{},e)}}),t};!0===t&&(o=r[1],r=Array.prototype.slice.call(r,2));var n=r.length;for(s=0;s<n;s++)o=a(o,r[s]);return o}function C(t,i,e){for(var s in t)Object.hasOwnProperty.call(t,s)&&i.call(e||t[s],t[s],s,t)}function H(){for(var t=arguments,i=t.length,e=0;e<i;e++){var s=t[e];if(null!=s)return s}}function L(t,i){return 0>t.indexOf(i)&&!!t.push(i)}function W(t,i,e){function s(i,e){var s=t.removeEventListener;s&&s.call(t,i,e,!1)}function r(e){var r,o;t.nodeName&&(i?(r={})[i]=!0:r=e,C(r,function(t,i){if(e[i])for(o=e[i].length;o--;)s(i,e[i][o].fn)}))}var o="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(o,"hcEvents")){var a=o.hcEvents;if(i){var n=a[i]||[];e?(a[i]=n.filter(function(t){return e!==t.fn}),s(i,e)):(r(a),a[i]=[])}else r(a),delete o.hcEvents}}var U=p().isTouchDevice,N=[];function I(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function X(){var t,i,e,s,r=this.legend,o=this.navigator;if(o){i=r&&r.options,e=o.xAxis,s=o.yAxis;var a=o.scrollbarHeight,n=o.scrollButtonSize;this.inverted?(o.left=o.opposite?this.chartWidth-a-o.height:this.spacing[3]+a,o.top=this.plotTop+n):(o.left=H(e.left,this.plotLeft+n),o.top=o.navigatorOptions.top||this.chartHeight-o.height-a-((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+H(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),e&&s&&(this.inverted?e.options.left=s.options.left=o.left:e.options.top=s.options.top=o.top,e.setAxisSize(),s.setAxisSize())}}function _(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new a(this),H(t.redraw,!0)&&this.redraw(t.animation))}function j(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new a(this))}function Y(){var t=this.options,i=t.navigator,e=t.rangeSelector;if((i&&i.enabled||e&&e.enabled)&&(!U&&"x"===this.zooming.type||U&&"x"===this.zooming.pinchType))return!1}function G(t){var i=t.navigator;if(i&&t.xAxis[0]){var e=t.xAxis[0].getExtremes();i.render(e.min,e.max)}}function F(t){var i=t.options.navigator||{},e=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(i.enabled||e.enabled)&&(P(!0,this.options.navigator,i),P(!0,this.options.scrollbar,e),delete t.options.navigator,delete t.options.scrollbar)}var V=function(t,i){if(L(N,t)){var e=t.prototype;a=i,e.callbacks.push(G),y(t,"afterAddSeries",I),y(t,"afterSetChartSize",X),y(t,"afterUpdate",_),y(t,"beforeRender",j),y(t,"beforeShowResetZoom",Y),y(t,"update",F)}},Z=p().isTouchDevice;function $(){this.navigatorAxis||(this.navigatorAxis=new J(this))}function q(t){var i,e=this.chart,s=e.options,r=s.navigator,o=this.navigatorAxis,a=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||Z&&"xy"===a)&&this.options.range){var l=o.previousZoom;E(t.min)?o.previousZoom=[this.min,this.max]:l&&(t.min=l[0],t.max=l[1],o.previousZoom=void 0)}}void 0!==i&&t.preventDefault()}var J=function(){function t(t){this.axis=t}return t.compose=function(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),y(t,"init",$),y(t,"setExtremes",q))},t.prototype.destroy=function(){this.axis=void 0},t.prototype.toFixedRange=function(t,i,e,s){var r=this.axis,o=(r.pointRange||0)/2,a=H(e,r.translate(t,!0,!r.horiz)),n=H(s,r.translate(i,!0,!r.horiz));return E(e)||(a=M(a+o)),E(s)||(n=M(n-o)),R(a)&&R(n)||(a=n=void 0),{min:a,max:n}},t}(),K=d(620),Q=d.n(K),tt=d(512),ti=d.n(tt),te=Q().parse,ts=ti().seriesTypes,tr={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:te("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===ts.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}},to=function(t,i,e){if(e||2==arguments.length)for(var s,r=0,o=i.length;r<o;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))},ta={"navigator-handle":function(t,i,e,s,r){void 0===r&&(r={});var o,a,n,h,l,d,c,u=r.width?r.width/2:e,p=(d=r.borderRadius||0,c=Math.min(2*u,s),/%$/.test(d)?c*parseFloat(d)/100+0:parseFloat(d));return to([["M",-1.5,(s=r.height||s)/2-3.5],["L",-1.5,s/2+4.5],["M",.5,s/2-3.5],["L",.5,s/2+4.5]],(o=-u-1,a=.5,n=2*u+1,h=s,(l={r:p},l.r)?function(t,i,e,s,r){var o=(null==r?void 0:r.r)||0;return[["M",t+o,i],["L",t+e-o,i],["A",o,o,0,0,1,t+e,i+o],["L",t+e,i+s-o],["A",o,o,0,0,1,t+e-o,i+s],["L",t+o,i+s],["A",o,o,0,0,1,t,i+s-o],["L",t,i+o],["A",o,o,0,0,1,t+o,i],["Z"]]}(o,.5,n,h,l):[["M",o,.5],["L",o+n,.5],["L",o+n,.5+h],["L",o,.5+h],["Z"]]),!0)}},tn=d(608),th=d.n(tn),tl=p().defaultOptions,td=p().composed,tc=th().getRendererType,tu={setFixedRange:function(t){var i=this.xAxis[0];E(i.dataMax)&&E(i.dataMin)&&t?this.fixedRange=Math.min(t,i.dataMax-i.dataMin):this.fixedRange=t}}.setFixedRange;function tp(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var tg=function(t,i,e){J.compose(i),L(td,"Navigator")&&(t.prototype.setFixedRange=tu,k(tc().prototype.symbols,ta),k(tl,{navigator:tr}),y(e,"afterUpdate",tp))},tv=p().composed;!function(t){var i;function e(t){var i,e,s,r,o,a,n,h,l=H(null==(i=t.options)?void 0:i.min,t.min),d=H(null==(e=t.options)?void 0:e.max,t.max);return{axisMin:l,axisMax:d,scrollMin:E(t.dataMin)?Math.min(l,null!=(s=t.min)?s:1/0,t.dataMin,null!=(r=t.threshold)?r:1/0):l,scrollMax:null!=(a=null==(o=t.treeGrid)?void 0:o.adjustedMax)?a:E(t.dataMax)?Math.max(d,null!=(n=t.max)?n:-1/0,t.dataMax,null!=(h=t.threshold)?h:-1/0):d}}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),y(r.scrollbar,"changed",function(t){var i,s,o=e(r),a=o.axisMin,n=o.axisMax,h=o.scrollMin,l=o.scrollMax,d=r.toPixels(h),c=r.toPixels(l)-d;if(E(a)&&E(n))if(r.horiz&&!r.reversed||!r.horiz&&r.reversed?(i=Math.min(l,r.toValue(d+c*this.to)),s=Math.max(h,r.toValue(d+c*this.from))):(i=Math.min(l,r.toValue(d+c*(1-this.from))),s=Math.max(h,r.toValue(d+c*(1-this.to)))),this.shouldUpdateExtremes(t.DOMType)){var u="mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&void 0;r.setExtremes(M(s),M(i),!0,u,t)}else this.setRange(this.from,this.to)}))}function o(){var t,i,s,r=e(this),o=r.scrollMin,a=r.scrollMax,n=this.scrollbar,h=(this.axisTitleMargin||0)+(this.titleOffset||0),l=this.chart.scrollbarsOffsets,d=this.options.margin||0;if(n&&l){if(this.horiz)this.opposite||(l[1]+=h),n.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=n.options.opposite?this.left+this.width+2+l[0]-(this.opposite?0:d):this.opposite?0:d,n.position(c,this.top,this.width,this.height),this.opposite&&(l[0]+=d),t=0}if(l[t]+=n.size+(n.options.margin||0),isNaN(o)||isNaN(a)||!E(this.min)||!E(this.max)||E(this.dataMin)&&this.dataMin===this.dataMax)n.setRange(0,1);else if(this.min===this.max){var u=this.pointRange/(this.dataMax+1);i=u*this.min,s=u*(this.max+1),n.setRange(i,s)}else i=(this.toPixels(this.min)-this.toPixels(o))/(this.toPixels(a)-this.toPixels(o)),s=(this.toPixels(this.max)-this.toPixels(o))/(this.toPixels(a)-this.toPixels(o)),this.horiz&&!this.reversed||!this.horiz&&this.reversed?n.setRange(i,s):n.setRange(1-s,1-i)}}t.compose=function(t,e){L(tv,"Axis.Scrollbar")&&(i=e,y(t,"afterGetOffset",s),y(t,"afterInit",r),y(t,"afterRender",o))}}(n||(n={}));var tf=n,tx={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},tm=p().defaultOptions,tb=p().composed,ty=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),L(tb,"Scrollbar")&&k(tm,{scrollbar:tx})},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),o=this.mouseMoveHandler.bind(this),a=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",o],[e.ownerDocument,"mouseup",a],[e,"touchstart",r],[e.ownerDocument,"touchmove",o],[e.ownerDocument,"touchend",a]];n.forEach(function(t){y.apply(null,t)}),this._events=n},t.prototype.buttonToMaxClick=function(t){var i=(this.to-this.from)*H(this.options.step,.2);this.updatePosition(this.from+i,this.to+i),S(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.buttonToMinClick=function(t){var i=M(this.to-this.from)*H(this.options.step,.2);this.updatePosition(M(this.from-i),M(this.to-i)),S(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,O(i.scrollbarButtons))},t.prototype.drawScrollbarButton=function(i){var e=this.renderer,s=this.scrollbarButtons,r=this.options,o=this.size,a=e.g().add(this.group);if(s.push(a),r.buttonsEnabled){var n=e.rect().addClass("highcharts-scrollbar-button").add(a);this.chart.styledMode||n.attr({stroke:r.buttonBorderColor,"stroke-width":r.buttonBorderWidth,fill:r.buttonBackgroundColor}),n.attr(n.crisp({x:-.5,y:-.5,width:o,height:o,r:r.buttonBorderRadius},n.strokeWidth()));var h=e.path(t.swapXY([["M",o/2+(i?-1:1),o/2-3],["L",o/2+(i?-1:1),o/2+3],["L",o/2+(i?2:-2),o/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=P(tx,tm.scrollbar,i),this.options.margin=H(this.options.margin,10),this.chart=e,this.size=H(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",o=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][r])&&(e=this.cursorToScrollbarPosition(s)[r]-this[r],this.hasDragged=!0,this.updatePosition(o[0]+e,o[1]+e),this.hasDragged&&S(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&S(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,o=r.buttonsEnabled,a=r.margin,n=void 0===a?0:a,h=r.vertical,l=this.rendered?"animate":"attr",d=s,c=0;this.group.show(),this.x=t,this.y=i+this.trackBorderWidth,this.width=e,this.height=s,this.xOffset=d,this.yOffset=c,h?(this.width=this.yOffset=e=c=this.size,this.xOffset=d=0,this.yOffset=c=o?this.size:0,this.barWidth=s-(o?2*e:0),this.x=t+=n):(this.height=s=this.size,this.xOffset=d=o?this.size:0,this.barWidth=e-(o?2*s:0),this.y=this.y+n),this.group[l]({translateX:t,translateY:this.y}),this.track[l]({width:e,height:s}),this.scrollbarButtons[1][l]({translateX:h?0:e-d,translateY:h?s-c:0})},t.prototype.removeEvents=function(){this._events.forEach(function(t){W.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,o=i.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=o,this.track=i.rect().addClass("highcharts-scrollbar-track").attr({r:e.trackBorderRadius||0,height:s,width:s}).add(o),r||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});var a=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-A(0,a),y:-A(0,a)}),this.scrollbarGroup=i.g().add(o),this.scrollbar=i.rect().addClass("highcharts-scrollbar-thumb").attr({height:s-a,width:s-a,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(-A(0,this.scrollbarStrokeWidth),-A(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},t.prototype.setRange=function(t,i){var e,s,r=this.options,o=r.vertical,a=r.minWidth,n=this.barWidth,h=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(E(n)){var l=n*Math.min(i,1);e=Math.ceil(n*(t=Math.max(t,0))),this.calculatedWidth=s=M(l-e),s<a&&(e=(n-a+s)*t,s=a);var d=Math.floor(e+this.xOffset+this.yOffset),c=s/2-.5;this.from=t,this.to=i,o?(this.scrollbarGroup[h]({translateY:d}),this.scrollbar[h]({height:s}),this.scrollbarRifles[h]({translateY:c}),this.scrollbarTop=d,this.scrollbarLeft=0):(this.scrollbarGroup[h]({translateX:d}),this.scrollbar[h]({width:s}),this.scrollbarRifles[h]({translateX:c}),this.scrollbarLeft=d,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 H(this.options.liveRedraw,p().svg&&!p().isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!E(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,o=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>r||!this.options.vertical&&e.chartX>o?this.updatePosition(this.from+s,this.to+s):this.updatePosition(this.from-s,this.to-s),S(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,P(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,i){i>1&&(t=M(1-M(i-t)),i=1),t<0&&(i=M(i-t),t=0),this.from=t,this.to=i},t.defaultOptions=tx,t}(),tM=function(){return(tM=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)},tA=function(t,i,e){if(e||2==arguments.length)for(var s,r=0,o=i.length;r<o;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))},tE=p().defaultOptions,tO=p().isTouchDevice;function tw(t){for(var i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];var s=[].filter.call(i,R);if(s.length)return Math[t].apply(0,s)}var tk=function(){function t(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}return t.compose=function(i,e,s){V(i,t),tg(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,o,a=this.navigatorOptions.maskInside,n=this.outline.strokeWidth(),h=n/2,l=n%2/2,d=this.scrollButtonSize,c=this.size,u=this.top,p=this.height,g=u-h,v=u+p,f=this.left;e?(r=u+i+l,i=u+t+l,o=[["M",f+p,u-d-l],["L",f+p,r],["L",f,r],["M",f,i],["L",f+p,i],["L",f+p,u+c+d]],a&&o.push(["M",f+p,r-h],["L",f+p,i+h])):(f-=d,t+=f+d-l,i+=f+d-l,o=[["M",f,g],["L",t,g],["L",t,v],["M",i,v],["L",i,g],["L",f+c+2*d,g]],a&&o.push(["M",t-h,g],["L",i+h,g])),this.outline[s]({d:o})},t.prototype.drawMasks=function(t,i,e,s){var r,o,a,n,h=this.left,l=this.top,d=this.height;e?(a=[h,h,h],n=[l,l+t,l+i],o=[d,d,d],r=[t,i-t,this.size-i]):(a=[h,h+t,h+i],n=[l,l,l],o=[t,i-t,this.size-i],r=[d,d,d]),this.shades.forEach(function(t,i){t[s]({x:a[i],y:n[i],width:o[i],height:r[i]})})},t.prototype.renderElements=function(){var t,i,e,s=this,r=s.navigatorOptions,o=r.maskInside,a=s.chart,n=a.inverted,h=a.renderer,l={cursor:n?"ns-resize":"ew-resize"},d=null!=(t=s.navigatorGroup)?t:s.navigatorGroup=h.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!o,o,!o].forEach(function(t,i){var e,o=null!=(e=s.shades[i])?e:s.shades[i]=h.rect().addClass("highcharts-navigator-mask"+(1===i?"-inside":"-outside")).add(d);a.styledMode||(o.attr({fill:t?r.maskFill:"rgba(0,0,0,0)"}),1===i&&o.css(l))}),s.outline||(s.outline=h.path().addClass("highcharts-navigator-outline").add(d)),a.styledMode||s.outline.attr({"stroke-width":r.outlineWidth,stroke:r.outlineColor}),null==(i=r.handles)?void 0:i.enabled){var c=!1,u=r.handles,p=u.height,g=u.width;[0,1].forEach(function(t){var i,e,r=u.symbols[t];(c=c||(null==(i=s.handles[t])?void 0:i.symbolName)!==r)&&(null==(e=s.handles[t])||e.destroy(),s.handles[t]=h.symbol(r,-g/2-1,0,g,p,u),s.handles[t].attr({zIndex:7-t}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][t]).add(d)),a.inverted&&s.handles[t].attr({rotation:90,rotationOriginX:Math.floor(-g/2),rotationOriginY:(p+g)/2}),a.styledMode||s.handles[t].attr({fill:u.backgroundColor,stroke:u.borderColor,"stroke-width":u.lineWidth,width:u.width,height:u.height,x:-g/2-1,y:0}).css(l)}),c&&(null==(e=s.partsEventsToUnbind)||e.forEach(function(t){t()}),s.partsEventsToUnbind=tA(tA([],s.getPartsEvents("mousedown"),!0),s.getPartsEvents("touchstart"),!0))}},t.prototype.update=function(t,i){var e,s,r,o,a=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(P(!0,n.options.navigator,t),this.navigatorOptions=n.options.navigator||{},this.setOpposite(),E(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){W(t,"updatedData",a.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){t.eventsToUnbind.push(y(t,"updatedData",a.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=null!=(o=t.height)?o:this.height;var l=this.getXAxisOffsets();this.xAxis.update(tM(tM({},t.xAxis),((e={offsets:l})[n.inverted?"width":"height"]=this.height,e[n.inverted?"height":"width"]=void 0,e)),!1),this.yAxis.update(tM(tM({},t.yAxis),((s={})[n.inverted?"width":"height"]=this.height,s)),!1)}i&&n.redraw()},t.prototype.render=function(t,i,e,s){var r,o,a,n,h,l,d=this.chart,c=this.xAxis,u=c.pointRange||0,p=c.navigatorAxis.fake?d.xAxis[0]:c,g=this.navigatorEnabled,v=this.rendered,f=d.inverted,x=d.xAxis[0].minRange,m=d.xAxis[0].options.maxRange,b=this.scrollButtonSize,y=this.scrollbarHeight;if(!this.hasDragged||E(e)){if(this.isDirty&&this.renderElements(),t=M(t-u/2),i=M(i+u/2),!R(t)||!R(i))if(!v)return;else e=0,s=H(c.width,p.width);this.left=H(c.left,d.plotLeft+b+(f?d.plotWidth:0));var A,O,w,k,z=this.size=h=H(c.len,(f?d.plotHeight:d.plotWidth)-2*b);o=f?y:h+2*b,e=H(e,c.toPixels(t,!0)),s=H(s,c.toPixels(i,!0)),R(e)&&Math.abs(e)!==1/0||(e=0,s=o);var D=c.toValue(e,!0),T=c.toValue(s,!0),B=Math.abs(M(T-D));E(x)&&B<x?this.grabbedLeft?e=c.toPixels(T-x-u,!0):this.grabbedRight&&(s=c.toPixels(D+x+u,!0)):E(m)&&M(B-u)>m&&(this.grabbedLeft?e=c.toPixels(T-m-u,!0):this.grabbedRight&&(s=c.toPixels(D+m+u,!0))),this.zoomedMax=(A=Math.max(e,s),O=z,A>0?A<O?A:O:0),this.zoomedMin=(w=this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,s),k=z,w>0?w<k?w:k:0),this.range=this.zoomedMax-this.zoomedMin,z=Math.round(this.zoomedMax);var P=Math.round(this.zoomedMin);g&&(this.navigatorGroup.attr({visibility:"inherit"}),l=v&&!this.hasDragged?"animate":"attr",this.drawMasks(P,z,f,l),this.drawOutline(P,z,f,l),(null==(r=this.navigatorOptions.handles)?void 0:r.enabled)&&(this.drawHandle(P,0,f,l),this.drawHandle(z,1,f,l))),this.scrollbar&&(f?(n=this.top-b,a=this.left-y+(g||!p.opposite?0:(p.titleOffset||0)+p.axisTitleMargin),y=h+2*b):(n=this.top+(g?this.height:-y),a=this.left-b),this.scrollbar.position(a,n,o,y),this.scrollbar.setRange(this.zoomedMin/(h||1),this.zoomedMax/(h||1))),this.rendered=!0,this.isDirty=!1,S(this,"afterRender")}},t.prototype.addMouseEvents=function(){var t,i,e=this,s=e.chart,r=s.container,o=[];e.mouseMoveHandler=t=function(t){e.onMouseMove(t)},e.mouseUpHandler=i=function(t){e.onMouseUp(t)},o.push(y(s.renderTo,"mousemove",t),y(r.ownerDocument,"mouseup",i),y(s.renderTo,"touchmove",t),y(r.ownerDocument,"touchend",i)),e.eventsToUnbind=o,e.series&&e.series[0]&&o.push(y(e.series[0].xAxis,"foundExtremes",function(){var t;null==(t=s.navigator)||t.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(t){var i=this,e=[];return["shades","handles"].forEach(function(s){i[s].forEach(function(r,o){e.push(y(r.element,t,function(t){i[""+s+"Mousedown"](t,o)}))})}),e},t.prototype.shadesMousedown=function(t,i){t=(null==(e=this.chart.pointer)?void 0:e.normalize(t))||t;var e,s,r,o,a,n,h,l=this.chart,d=this.xAxis,c=this.zoomedMin,u=this.size,p=this.range,g=this.left,v=t.chartX;l.inverted&&(v=t.chartY,g=this.top),1===i?(this.grabbedCenter=v,this.fixedWidth=p,this.dragOffset=v-c):(h=v-g-p/2,0===i?h=Math.max(0,h):2===i&&h+p>=u&&(h=u-p,this.reversedExtremes?(h-=p,a=null==(s=this.getUnionExtremes())?void 0:s.dataMin):o=null==(r=this.getUnionExtremes())?void 0:r.dataMax),h!==c&&(this.fixedWidth=p,E((n=d.navigatorAxis.toFixedRange(h,h+p,a,o)).min)&&S(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,s=this.chart,r=s.xAxis[0],o=this.reversedExtremes;0===i?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=o?r.min:r.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=o?r.max:r.min),s.setFixedRange(void 0)},t.prototype.onMouseMove=function(t){var i,e,s,r=this,o=r.chart,a=r.navigatorSize,n=r.range,h=r.dragOffset,l=o.inverted,d=r.left;(!t.touches||0!==t.touches[0].pageX)&&(s=(t=(null==(i=o.pointer)?void 0:i.normalize(t))||t).chartX,l&&(d=r.top,s=t.chartY),r.grabbedLeft?(r.hasDragged=!0,r.render(0,0,s-d,r.otherHandlePos)):r.grabbedRight?(r.hasDragged=!0,r.render(0,0,r.otherHandlePos,s-d)):r.grabbedCenter&&h&&(r.hasDragged=!0,s<h?s=h:s>a+h-n&&(s=a+h-n),r.render(0,0,s-h,s-h+n)),r.hasDragged&&H(null==(e=r.scrollbarOptions)?void 0:e.liveRedraw,!tO&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){r.onMouseUp(t)},0)))},t.prototype.onMouseUp=function(t){var i,e,s,r,o,a,n,h=this.chart,l=this.xAxis,d=this.scrollbar,c=t.DOMEvent||t,u=h.inverted,p=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===t.trigger)&&(r=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?o=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(a=this.fixedExtreme),this.zoomedMax===this.size&&(a=this.reversedExtremes?r.dataMin:r.dataMax),0===this.zoomedMin&&(o=this.reversedExtremes?r.dataMax:r.dataMin),E((n=l.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,o,a)).min)&&S(this,"setRange",{min:Math.min(n.min,n.max),max:Math.max(n.min,n.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:c}})),"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&&R(this.zoomedMin)&&R(this.zoomedMax)&&(s=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(s,e,u,p),this.outline&&this.drawOutline(s,e,u,p),(null==(i=this.navigatorOptions.handles)?void 0:i.enabled)&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(s,0,u,p),this.drawHandle(e,1,u,p)))},t.prototype.removeEvents=function(){var t;null==(t=this.eventsToUnbind)||t.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){W(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&W(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,r=t.options,o=r.navigator||{},a=o.enabled,n=r.scrollbar||{},h=n.enabled,l=a&&o.height||0,d=h&&n.height||0,c=n.buttonsEnabled&&d||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=l,this.scrollbarHeight=d,this.scrollButtonSize=c,this.scrollbarEnabled=h,this.navigatorEnabled=!!a,this.navigatorOptions=o,this.scrollbarOptions=n,this.setOpposite();var u=this,p=u.baseSeries,g=t.xAxis.length,v=t.yAxis.length,f=p&&p[0]&&p[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,u.navigatorEnabled){var m=this.getXAxisOffsets();u.xAxis=new(x())(t,P({breaks:f.options.breaks,ordinal:f.options.ordinal,overscroll:f.options.overscroll},o.xAxis,{type:"datetime",yAxis:null==(i=o.yAxis)?void 0:i.id,index:g,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:f.options.ordinal?0:f.options.minPadding,maxPadding:f.options.ordinal?0:f.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:m,width:l}:{offsets:m,height:l}),"xAxis"),u.yAxis=new(x())(t,P(o.yAxis,{alignTicks:!1,offset:0,index:v,isInternal:!0,reversed:H(o.yAxis&&o.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:l}:{height:l}),"yAxis"),p||(null==(e=o.series)?void 0:e.data)?u.updateNavigatorSeries(!1):0===t.series.length&&(u.unbindRedraw=y(t,"beforeRedraw",function(){var i;t.series.length>0&&!u.series&&(u.setBaseSeries(),null==(i=u.unbindRedraw)||i.call(u))})),u.reversedExtremes=t.inverted&&!u.xAxis.reversed||!t.inverted&&u.xAxis.reversed,u.renderElements(),u.addMouseEvents()}else u.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(i,e){var s=t.xAxis[0],r=s.getExtremes(),o=s.len-2*c,a=tw("min",s.options.min,r.dataMin),n=tw("max",s.options.max,r.dataMax)-a;return e?i*n/o+a:o*(i-a)/n},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},u.xAxis.navigatorAxis.axis=u.xAxis,u.xAxis.navigatorAxis.toFixedRange=J.prototype.toFixedRange.bind(u.xAxis.navigatorAxis);if(null==(s=t.options.scrollbar)?void 0:s.enabled){var b=P(t.options.scrollbar,{vertical:t.inverted});R(b.margin)||(b.margin=t.inverted?-3:3),t.scrollbar=u.scrollbar=new ty(t.renderer,b,t),y(u.scrollbar,"changed",function(t){var i,e=u.size,s=e*this.to,r=e*this.from;u.hasDragged=null==(i=u.scrollbar)?void 0:i.hasDragged,u.render(0,0,r,s),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){u.onMouseUp(t)})})}u.addBaseSeriesEvents(),u.addChartEvents()},t.prototype.setOpposite=function(){var t=this.navigatorOptions,i=this.navigatorEnabled,e=this.chart;this.opposite=H(t.opposite,!!(!i&&e.inverted))},t.prototype.getUnionExtremes=function(t){var i,e=this.chart.xAxis[0],s=this.chart.time,r=this.xAxis,o=r.options,a=e.options;return t&&null===e.dataMin||(i={dataMin:H(s.parse(null==o?void 0:o.min),tw("min",s.parse(a.min),e.dataMin,r.dataMin,r.min)),dataMax:H(s.parse(null==o?void 0:o.max),tw("max",s.parse(a.max),e.dataMax,r.dataMax,r.max))}),i},t.prototype.setBaseSeries=function(t,i){var e,s=this.chart,r=this.baseSeries=[];t=t||(null==(e=s.options.navigator)?void 0:e.baseSeries)||(s.series.length?z(s.series,function(t){return!t.options.isInternal}).index:0),(s.series||[]).forEach(function(i,e){!i.options.isInternal&&(i.options.showInNavigator||(e===t||i.options.id===t)&&!1!==i.options.showInNavigator)&&r.push(i)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,i)},t.prototype.updateNavigatorSeries=function(t,i){var e,s,r,o,a,n,h=this,l=h.chart,d=h.baseSeries,c={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:null==(s=this.navigatorOptions.xAxis)?void 0:s.id,yAxis:null==(r=this.navigatorOptions.yAxis)?void 0:r.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},u=h.series=(h.series||[]).filter(function(t){var i=t.baseSeries;return!(i&&0>d.indexOf(i))||(i&&(W(i,"updatedData",h.updatedDataHandler),delete i.navigatorSeries),t.chart&&t.destroy(),!1)}),p=h.navigatorOptions.series;d&&d.length&&d.forEach(function(t){var e,s,r=t.navigatorSeries,g=k({color:t.color,visible:t.visible},T(p)?tE.navigator.series:p);if(!r||!1!==h.navigatorOptions.adaptToUpdatedData){c.name="Navigator "+d.length,n=(o=t.options||{}).navigatorOptions||{},g.dataLabels=T(v=g.dataLabels)?v:[v],(a=P(o,c,g,n)).pointRange=H(g.pointRange,n.pointRange,null==(e=tE.plotOptions[a.type||"line"])?void 0:e.pointRange);var v,f=n.data||g.data;h.hasNavigatorData=h.hasNavigatorData||!!f,a.data=f||(null==(s=o.data)?void 0:s.slice(0)),r&&r.options?r.update(a,i):(t.navigatorSeries=l.initSeries(a),l.setSortedData(),t.navigatorSeries.baseSeries=t,u.push(t.navigatorSeries))}}),((null==p?void 0:p.data)&&!(d&&d.length)||T(p))&&(h.hasNavigatorData=!1,(p=T(e=p)?e:[e]).forEach(function(t,i){var e,s,r;c.name="Navigator "+(u.length+1),(a=P(null==(e=tE.navigator)?void 0:e.series,{color:l.series[i]&&!l.series[i].options.isInternal&&l.series[i].color||(null==(s=l.options.colors)?void 0:s[i])||(null==(r=l.options.colors)?void 0:r[0])},c,t)).data=t.data,a.data&&(h.hasNavigatorData=!0,u.push(l.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(y(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(function(s){s.eventsToUnbind.push(y(s,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),s.eventsToUnbind.push(y(s,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==t.navigatorOptions.adaptToUpdatedData&&s.xAxis&&s.eventsToUnbind.push(y(s,"updatedData",t.updatedDataHandler)),s.eventsToUnbind.push(y(s,"remove",function(){e&&w(e,s),this.navigatorSeries&&i.series&&(w(i.series,this.navigatorSeries),E(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(),o=r.min,a=r.max,n=r.dataMin,h=r.dataMax,l=a-o,d=null==s?void 0:s.stickToMin,c=null==s?void 0:s.stickToMax,u=H(null==(t=this.ordinal)?void 0:t.convertOverscroll(this.options.overscroll),0),p=s.series&&s.series[0],g=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(d&&(i=(e=n)+l),c&&(i=h+u,d||(e=Math.max(n,i-l,s.getBaseSeriesMin(p&&p.xData?p.xData[0]:-Number.MAX_VALUE)))),g&&(d||c)&&R(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=H(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,void 0,!1))},t.prototype.shouldStickToMin=function(t,i){var e=i.getBaseSeriesMin(t.getColumn("x")[0]),s=t.xAxis,r=s.max,o=s.min,a=s.options.range;return!!(R(r)&&R(o))&&(a&&r-e>0?r-e<a:o<=e)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(y(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)}),y(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)}),y(this,"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&&(w(this.chart.xAxis,this.xAxis),w(this.chart.axes,this.xAxis)),this.yAxis&&(w(this.chart.yAxis,this.yAxis),w(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){O(t)}),this.baseSeries.forEach(function(t){t.navigatorSeries=void 0}),this.navigatorEnabled=!1},t}(),tS={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}},tz=function(){function t(t,i){this.boundAxes=[],this.userOptions=i,this.chartOptions=P(p().getOptions(),tS,i.chart,{navigator:i}),this.chartOptions.chart&&i.height&&(this.chartOptions.chart.height=i.height);var e=new(v())(t,this.chartOptions);e.options=P(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 tk(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 v()?t.xAxis[0]:t;if(r instanceof x()){var o=this.navigator.xAxis,a=o.min,n=o.max,h=[];if(i){var l=y(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(l)}var d=y(this.navigator,"setRange",function(t){r.setExtremes(t.min,t.max,t.redraw,t.animation)});h.push(d);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(a,n),y(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 x()?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=P(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(P(t,{showInNavigator:H(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,o=s.userMax,a=s.min,n=s.max;return{min:H(i,a),max:H(e,n),dataMin:a,dataMax:n,userMin:r,userMax:o}},t.prototype.setRange=function(t,i,e,s,r){S(this.navigator,"setRange",{min:t,max:i,redraw:e,animation:s,eventArguments:P(r,{trigger:"navigator"})})},t.prototype.getInitialExtremes=function(){var t=this.navigator.xAxis.getExtremes();return{min:t.min,max:t.max}},t}(),tD=p();tD.StandaloneNavigator=tD.StandaloneNavigator||tz,tD.navigator=tD.StandaloneNavigator.navigator,tg(tD.Chart,tD.Axis,tD.Series);var tR=p();return c.default}()});