/*
 Highcharts JS v6.1.4 (2018-09-25)
 Highstock as a plugin for Highcharts

 (c) 2017 Torstein Honsi

 License: www.highcharts.com/license
*/
(function(I){"object"===typeof module&&module.exports?module.exports=I:"function"===typeof define&&define.amd?define(function(){return I}):I(Highcharts)})(function(I){(function(a){var A=a.addEvent,p=a.Axis,D=a.Chart,q=a.css,C=a.defined,E=a.each,z=a.extend,F=a.noop,n=a.pick,B=a.timeUnits,x=a.wrap;x(a.Series.prototype,"init",function(a){var t;a.apply(this,Array.prototype.slice.call(arguments,1));(t=this.xAxis)&&t.options.ordinal&&A(this,"updatedData",function(){delete t.ordinalIndex})});x(p.prototype,
"getTimeTicks",function(a,d,c,m,b,e,r,h){var f=0,g,w,k={},v,t,K,G=[],l=-Number.MAX_VALUE,u=this.options.tickPixelInterval,y=this.chart.time;if(!this.options.ordinal&&!this.options.breaks||!e||3>e.length||void 0===c)return a.call(this,d,c,m,b);t=e.length;for(g=0;g<t;g++){K=g&&e[g-1]>m;e[g]<c&&(f=g);if(g===t-1||e[g+1]-e[g]>5*r||K){if(e[g]>l){for(w=a.call(this,d,e[f],e[g],b);w.length&&w[0]<=l;)w.shift();w.length&&(l=w[w.length-1]);G=G.concat(w)}f=g+1}if(K)break}a=w.info;if(h&&a.unitRange<=B.hour){g=
G.length-1;for(f=1;f<g;f++)y.dateFormat("%d",G[f])!==y.dateFormat("%d",G[f-1])&&(k[G[f]]="day",v=!0);v&&(k[G[0]]="day");a.higherRanks=k}G.info=a;if(h&&C(u)){h=y=G.length;g=[];var J;for(v=[];h--;)f=this.translate(G[h]),J&&(v[h]=J-f),g[h]=J=f;v.sort();v=v[Math.floor(v.length/2)];v<.6*u&&(v=null);h=G[y-1]>m?y-1:y;for(J=void 0;h--;)f=g[h],m=Math.abs(J-f),J&&m<.8*u&&(null===v||m<.8*v)?(k[G[h]]&&!k[G[h+1]]?(m=h+1,J=f):m=h,G.splice(m,1)):J=f}return G});z(p.prototype,{beforeSetTickPositions:function(){var a,
d=[],c,m=!1,b,e=this.getExtremes(),r=e.min,h=e.max,f,g=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,w=Number.MAX_VALUE,k=this.chart.options.chart.ignoreHiddenSeries;b="highcharts-navigator-xaxis"===this.options.className;var v;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||"navigator"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&C(this.userMin)&&(this.min+=this.options.overscroll));if(e||g){E(this.series,
function(b,f){c=[];if(!(k&&!1===b.visible||!1===b.takeOrdinalPosition&&!g)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(b,l){return b-l}),w=Math.min(w,n(b.closestPointRange,w)),a)){for(f=0;f<a-1;)d[f]!==d[f+1]&&c.push(d[f+1]),f++;c[0]!==d[0]&&c.unshift(d[0]);d=c}b.isSeriesBoosting&&(v=!0)});v&&(d.length=0);a=d.length;if(2<a){b=d[1]-d[0];for(f=a-1;f--&&!m;)d[f+1]-d[f]!==b&&(m=!0);!this.options.keepOrdinalPadding&&(d[0]-r>b||h-d[d.length-1]>b)&&(m=!0)}else this.options.overscroll&&(2===
a?w=d[1]-d[0]:1===a?(w=this.options.overscroll,d=[d[0],d[0]+w]):w=this.overscrollPointsRange);m?(this.options.overscroll&&(this.overscrollPointsRange=w,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(r,d[0]),!0),f=Math.max(this.ordinal2lin(Math.min(h,d[d.length-1]),!0),1),this.ordinalSlope=h=(h-r)/(f-b),this.ordinalOffset=r-b*h):(this.overscrollPointsRange=n(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=
void 0)}this.isOrdinal=e&&m;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var t=c.length,b,e;for(b=t;b--;)if(c[b]===a){e=b;break}for(b=t-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var m=this.ordinalSlope,b=this.ordinalOffset,e=c.length-1,r;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),r=a-e);else for(;e--;)if(d=m*e+b,
a>=d){m=m*(e+1)+b;r=(a-d)/(m-d);break}return void 0!==r&&void 0!==c[e]?c[e]+(r?r*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,c=a.series[0].currentDataGrouping,m=a.ordinalIndex,b=c?c.count+c.unitName:"raw",e=a.options.overscroll,r=a.getExtremes(),h,f;m||(m=a.ordinalIndex={});m[b]||(h={series:[],chart:d,getExtremes:function(){return{min:r.dataMin,max:r.dataMax+e}},options:{ordinal:!0},val2lin:p.prototype.val2lin,ordinal2lin:p.prototype.ordinal2lin},E(a.series,function(b){f=
{xAxis:h,xData:b.xData.slice(),chart:d,destroyGroupedData:F};f.xData=f.xData.concat(a.getOverscrollPositions());f.options={dataGrouping:c?{enabled:!0,forced:!0,approximation:"open",units:[[c.unitName,[c.count]]]}:{enabled:!1}};b.processData.apply(f);h.series.push(f)}),a.beforeSetTickPositions.apply(h),m[b]=h.ordinalPositions);return m[b]},getOverscrollPositions:function(){var t=this.options.overscroll,d=this.overscrollPointsRange,c=[],m=this.dataMax;if(a.defined(d))for(c.push(m);m<=this.dataMax+t;)m+=
d,c.push(m);return c},getGroupIntervalFactor:function(a,d,c){var m;c=c.processedXData;var b=c.length,e=[];m=this.groupIntervalFactor;if(!m){for(m=0;m<b-1;m++)e[m]=c[m+1]-c[m];e.sort(function(b,a){return b-a});e=e[Math.floor(b/2)];a=Math.max(a,c[0]);d=Math.min(d,c[b-1]);this.groupIntervalFactor=m=b*e/(d-a)}return m},postProcessTickInterval:function(a){var d=this.ordinalSlope;return d?this.options.breaks?this.closestPointRange||a:a/(d/this.closestPointRange):a}});p.prototype.ordinal2lin=p.prototype.val2lin;
x(D.prototype,"pan",function(a,d){var c=this.xAxis[0],m=c.options.overscroll,b=d.chartX,e=!1;if(c.options.ordinal&&c.series.length){var r=this.mouseDownX,h=c.getExtremes(),f=h.dataMax,g=h.min,w=h.max,k=this.hoverPoints,v=c.closestPointRange||c.overscrollPointsRange,r=(r-b)/(c.translationSlope*(c.ordinalSlope||v)),H={ordinalPositions:c.getExtendedPositions()},v=c.lin2val,t=c.val2lin,G;H.ordinalPositions?1<Math.abs(r)&&(k&&E(k,function(l){l.setState()}),0>r?(k=H,G=c.ordinalPositions?c:H):(k=c.ordinalPositions?
c:H,G=H),H=G.ordinalPositions,f>H[H.length-1]&&H.push(f),this.fixedRange=w-g,r=c.toFixedRange(null,null,v.apply(k,[t.apply(k,[g,!0])+r,!0]),v.apply(G,[t.apply(G,[w,!0])+r,!0])),r.min>=Math.min(h.dataMin,g)&&r.max<=Math.max(f,w)+m&&c.setExtremes(r.min,r.max,!0,!1,{trigger:"pan"}),this.mouseDownX=b,q(this.container,{cursor:"move"})):e=!0}else e=!0;e&&(m&&(c.max=c.dataMax+m),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(I);(function(a){function A(){return Array.prototype.slice.call(arguments,
1)}function p(a){a.apply(this);this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,["y"]))}var D=a.addEvent,q=a.pick,C=a.wrap,E=a.each,z=a.extend,F=a.isArray,n=a.fireEvent,B=a.Axis,x=a.Series;z(B.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,m=a.from,b=a.to-a.from;d=d>=m?(d-m)%c:c-(m-d)%c;return a.inclusive?d<=b:d<b&&0!==d},isInAnyBreak:function(a,d){var c=this.options.breaks,m=c&&c.length,b,e,r;if(m){for(;m--;)this.isInBreak(c[m],a)&&(b=!0,e||(e=q(c[m].showPoints,
this.isXAxis?!1:!0)));r=b&&d?b&&!e:b}return r}});D(B,"afterSetTickPositions",function(){if(this.options.breaks){var a=this.tickPositions,d=this.tickPositions.info,c=[],m;for(m=0;m<a.length;m++)this.isInAnyBreak(a[m])||c.push(a[m]);this.tickPositions=c;this.tickPositions.info=d}});D(B,"afterSetOptions",function(){this.options.breaks&&this.options.breaks.length&&(this.options.ordinal=!1)});D(B,"afterInit",function(){var a=this,d;d=this.options.breaks;a.isBroken=F(d)&&!!d.length;a.isBroken&&(a.val2lin=
function(c){var d=c,b,e;for(e=0;e<a.breakArray.length;e++)if(b=a.breakArray[e],b.to<=c)d-=b.len;else if(b.from>=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b<a.breakArray.length&&!(d=a.breakArray[b],d.from>=c);b++)d.to<c?c+=d.len:a.isInBreak(d,c)&&(c+=d.len);return c},a.setExtremes=function(a,d,b,e,r){for(;this.isInAnyBreak(a);)a-=this.closestPointRange;for(;this.isInAnyBreak(d);)d-=this.closestPointRange;B.prototype.setExtremes.call(this,a,
d,b,e,r)},a.setAxisTranslation=function(c){B.prototype.setAxisTranslation.call(this,c);c=a.options.breaks;var d=[],b=[],e=0,r,h,f=a.userMin||a.min,g=a.userMax||a.max,w=q(a.pointRangePadding,0),k,v;E(c,function(b){h=b.repeat||Infinity;a.isInBreak(b,f)&&(f+=b.to%h-f%h);a.isInBreak(b,g)&&(g-=g%h-b.from%h)});E(c,function(b){k=b.from;for(h=b.repeat||Infinity;k-h>f;)k-=h;for(;k<f;)k+=h;for(v=k;v<g;v+=h)d.push({value:v,move:"in"}),d.push({value:v+(b.to-b.from),move:"out",size:b.breakSize})});d.sort(function(b,
a){return b.value===a.value?("in"===b.move?0:1)-("in"===a.move?0:1):b.value-a.value});r=0;k=f;E(d,function(a){r+="in"===a.move?1:-1;1===r&&"in"===a.move&&(k=a.value);0===r&&(b.push({from:k,to:a.value,len:a.value-k-(a.size||0)}),e+=a.value-k-(a.size||0))});a.breakArray=b;a.unitLength=g-f-e+w;n(a,"afterBreaks");a.options.staticScale?a.transA=a.options.staticScale:a.unitLength&&(a.transA*=(g-a.min+w)/a.unitLength);w&&(a.minPixelPadding=a.transA*a.minPointOffset);a.min=f;a.max=g})});C(x.prototype,"generatePoints",
function(a){a.apply(this,A(arguments));var d=this.xAxis,c=this.yAxis,m=this.points,b,e=m.length,r=this.options.connectNulls,h;if(d&&c&&(d.options.breaks||c.options.breaks))for(;e--;)b=m[e],h=null===b.y&&!1===r,h||!d.isInAnyBreak(b.x,!0)&&!c.isInAnyBreak(b.y,!0)||(m.splice(e,1),this.data[e]&&this.data[e].destroyElements())});a.Series.prototype.drawBreaks=function(a,d){var c=this,m=c.points,b,e,r,h;a&&E(d,function(f){b=a.breakArray||[];e=a.isXAxis?a.min:q(c.options.threshold,a.min);E(m,function(g){h=
q(g["stack"+f.toUpperCase()],g[f]);E(b,function(b){r=!1;if(e<b.from&&h>b.to||e>b.from&&h<b.from)r="pointBreak";else if(e<b.from&&h>b.from&&h<b.to||e>b.from&&h>b.to&&h<b.from)r="pointInBreak";r&&n(a,r,{point:g,brk:b})})})})};a.Series.prototype.gappedPath=function(){var n=this.currentDataGrouping,d=n&&n.totalRange,n=this.options.gapSize,c=this.points.slice(),m=c.length-1,b=this.yAxis;if(n&&0<m)for("value"!==this.options.gapUnit&&(n*=this.closestPointRange),d&&d>n&&(n=d);m--;)c[m+1].x-c[m].x>n&&(d=(c[m].x+
c[m+1].x)/2,c.splice(m+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(c)};C(a.seriesTypes.column.prototype,"drawPoints",p);C(a.Series.prototype,"drawPoints",p)})(I);(function(a){var A=a.addEvent,p=a.arrayMax,D=a.arrayMin,q=a.Axis,C=a.defaultPlotOptions,E=a.defined,z=a.each,F=a.extend,n=a.format,B=a.isNumber,x=a.merge,t=a.pick,d=a.Point,c=a.Series,m=a.Tooltip,b=a.wrap,e=c.prototype,
r=e.processData,h=e.generatePoints,f={approximation:"average",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y",
"%Y","-%Y"]}},g={line:{},spline:{},area:{},areaspline:{},column:{approximation:"sum",groupPixelWidth:10},arearange:{approximation:"range"},areasplinerange:{approximation:"range"},columnrange:{approximation:"range",groupPixelWidth:10},candlestick:{approximation:"ohlc",groupPixelWidth:10},ohlc:{approximation:"ohlc",groupPixelWidth:5}},w=a.defaultDataGroupingUnits=[["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]],["week",[1]],["month",[1,3,6]],["year",null]],k=a.approximations={sum:function(b){var a=b.length,f;if(!a&&b.hasNulls)f=null;else if(a)for(f=0;a--;)f+=b[a];return f},average:function(b){var a=b.length;b=k.sum(b);B(b)&&a&&(b/=a);return b},averages:function(){var b=[];z(arguments,function(a){b.push(k.average(a))});return void 0===b[0]?void 0:b},open:function(b){return b.length?b[0]:b.hasNulls?null:void 0},high:function(b){return b.length?p(b):b.hasNulls?null:void 0},low:function(b){return b.length?
D(b):b.hasNulls?null:void 0},close:function(b){return b.length?b[b.length-1]:b.hasNulls?null:void 0},ohlc:function(b,a,f,e){b=k.open(b);a=k.high(a);f=k.low(f);e=k.close(e);if(B(b)||B(a)||B(f)||B(e))return[b,a,f,e]},range:function(b,a){b=k.low(b);a=k.high(a);if(B(b)||B(a))return[b,a];if(null===b&&null===a)return null}};e.groupData=function(b,a,e,c){var l=this,u=l.data,y=l.options.data,d=[],v=[],w=[],L=b.length,h,r,m=!!a,H=[];c="function"===typeof c?c:k[c]||g[l.type]&&k[g[l.type].approximation]||k[f.approximation];
var n=l.pointArrayMap,K=n&&n.length,G=["x"].concat(n||["y"]),x=0,p=0,C,t;K?z(n,function(){H.push([])}):H.push([]);C=K||1;for(t=0;t<=L&&!(b[t]>=e[0]);t++);for(t;t<=L;t++){for(;void 0!==e[x+1]&&b[t]>=e[x+1]||t===L;){h=e[x];l.dataGroupInfo={start:p,length:H[0].length};r=c.apply(l,H);E(l.dataGroupInfo.options)||(l.dataGroupInfo.options=l.pointClass.prototype.optionsToObject.call({series:l},l.options.data[p]),z(G,function(b){delete l.dataGroupInfo.options[b]}));void 0!==r&&(d.push(h),v.push(r),w.push(l.dataGroupInfo));
p=t;for(h=0;h<C;h++)H[h].length=0,H[h].hasNulls=!1;x+=1;if(t===L)break}if(t===L)break;if(n){h=l.cropStart+t;r=u&&u[h]||l.pointClass.prototype.applyOptions.apply({series:l},[y[h]]);var q;for(h=0;h<K;h++)q=r[n[h]],B(q)?H[h].push(q):null===q&&(H[h].hasNulls=!0)}else h=m?a[t]:null,B(h)?H[0].push(h):null===h&&(H[0].hasNulls=!0)}return[d,v,w]};e.processData=function(){var b=this.chart,a=this.options.dataGrouping,f=!1!==this.allowDG&&a&&t(a.enabled,b.options.isStock),k=this.visible||!b.options.chart.ignoreHiddenSeries,
l,u=this.currentDataGrouping,y;this.forceCrop=f;this.groupPixelWidth=null;this.hasProcessed=!0;if(!1!==r.apply(this,arguments)&&f){this.destroyGroupedData();var c,g=a.groupAll?this.xData:this.processedXData,d=a.groupAll?this.yData:this.processedYData,h=b.plotSizeX,b=this.xAxis,M=b.options.ordinal,m=this.groupPixelWidth=b.getGroupPixelWidth&&b.getGroupPixelWidth();if(m){this.isDirty=l=!0;this.points=null;f=b.getExtremes();y=f.min;f=f.max;M=M&&b.getGroupIntervalFactor(y,f,this)||1;m=m*(f-y)/h*M;h=b.getTimeTicks(b.normalizeTimeTickInterval(m,
a.units||w),Math.min(y,g[0]),Math.max(f,g[g.length-1]),b.options.startOfWeek,g,this.closestPointRange);d=e.groupData.apply(this,[g,d,h,a.approximation]);g=d[0];M=d[1];if(a.smoothed&&g.length){c=g.length-1;for(g[c]=Math.min(g[c],f);c--&&0<c;)g[c]+=m/2;g[0]=Math.max(g[0],y)}y=h.info;this.closestPointRange=h.info.totalRange;this.groupMap=d[2];if(E(g[0])&&g[0]<b.dataMin&&k){if(!E(b.options.min)&&b.min<=b.dataMin||b.min===b.dataMin)b.min=g[0];b.dataMin=g[0]}a.groupAll&&(a=this.cropData(g,M,b.min,b.max,
1),g=a.xData,M=a.yData);this.processedXData=g;this.processedYData=M}else this.groupMap=null;this.hasGroupedData=l;this.currentDataGrouping=y;this.preventGraphAnimation=(u&&u.totalRange)!==(y&&y.totalRange)}};e.destroyGroupedData=function(){var b=this.groupedData;z(b||[],function(a,f){a&&(b[f]=a.destroy?a.destroy():null)});this.groupedData=null};e.generatePoints=function(){h.apply(this);this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};A(d,"update",function(){if(this.dataGroup)return a.error(24),
!1});b(m.prototype,"tooltipFooterHeaderFormatter",function(b,a,f){var e=this.chart.time,l=a.series,u=l.tooltipOptions,y=l.options.dataGrouping,g=u.xDateFormat,k,c=l.xAxis;return c&&"datetime"===c.options.type&&y&&B(a.key)?(b=l.currentDataGrouping,y=y.dateTimeLabelFormats,b?(c=y[b.unitName],1===b.count?g=c[0]:(g=c[1],k=c[2])):!g&&y&&(g=this.getXDateFormat(a,u,c)),g=e.dateFormat(g,a.key),k&&(g+=e.dateFormat(k,a.key+b.totalRange-1)),n(u[(f?"footer":"header")+"Format"],{point:F(a.point,{key:g}),series:l},
e)):b.call(this,a,f)});A(c,"destroy",e.destroyGroupedData);A(c,"afterSetOptions",function(b){b=b.options;var a=this.type,e=this.chart.options.plotOptions,k=C[a].dataGrouping,l=this.useCommonDataGrouping&&f;if(g[a]||l)k||(k=x(f,g[a])),b.dataGrouping=x(l,k,e.series&&e.series.dataGrouping,e[a].dataGrouping,this.userOptions.dataGrouping);this.chart.options.isStock&&(this.requireSorting=!0)});A(q,"afterSetScale",function(){z(this.series,function(b){b.hasProcessed=!1})});q.prototype.getGroupPixelWidth=
function(){var b=this.series,a=b.length,f,e=0,l=!1,u;for(f=a;f--;)(u=b[f].options.dataGrouping)&&(e=Math.max(e,u.groupPixelWidth));for(f=a;f--;)(u=b[f].options.dataGrouping)&&b[f].hasProcessed&&(a=(b[f].processedXData||b[f].data).length,b[f].groupPixelWidth||a>this.chart.plotSizeX/e||a&&u.forced)&&(l=!0);return l?e:0};q.prototype.setDataGrouping=function(b,a){var f;a=t(a,!0);b||(b={forced:!1,units:null});if(this instanceof q)for(f=this.series.length;f--;)this.series[f].update({dataGrouping:b},!1);
else z(this.chart.options.series,function(a){a.dataGrouping=b},!1);this.ordinalSlope=null;a&&this.chart.redraw()}})(I);(function(a){var A=a.each,p=a.Point,D=a.seriesType,q=a.seriesTypes;D("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eOpen: {point.open}\x3cbr/\x3eHigh: {point.high}\x3cbr/\x3eLow: {point.low}\x3cbr/\x3eClose: {point.close}\x3cbr/\x3e'},threshold:null,states:{hover:{lineWidth:3}},
stickyTracking:!0},{directTouch:!1,pointArrayMap:["open","high","low","close"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:"close",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},init:function(){q.column.prototype.init.apply(this,arguments);this.options.stacking=!1},pointAttribs:function(a,p){p=q.column.prototype.pointAttribs.call(this,a,p);var z=this.options;delete p.fill;!a.options.color&&z.upColor&&a.open<a.close&&(p.stroke=z.upColor);return p},translate:function(){var a=
this,p=a.yAxis,z=!!a.modifyValue,F=["plotOpen","plotHigh","plotLow","plotClose","yBottom"];q.column.prototype.translate.apply(a);A(a.points,function(n){A([n.open,n.high,n.low,n.close,n.low],function(q,x){null!==q&&(z&&(q=a.modifyValue(q)),n[F[x]]=p.toPixels(q,!0))});n.tooltipPos[1]=n.plotHigh+p.pos-a.chart.plotTop})},drawPoints:function(){var a=this,p=a.chart;A(a.points,function(z){var q,n,E,x,t=z.graphic,d,c=!t;void 0!==z.plotY&&(t||(z.graphic=t=p.renderer.path().add(a.group)),t.attr(a.pointAttribs(z,
z.selected&&"select")),n=t.strokeWidth()%2/2,d=Math.round(z.plotX)-n,E=Math.round(z.shapeArgs.width/2),x=["M",d,Math.round(z.yBottom),"L",d,Math.round(z.plotHigh)],null!==z.open&&(q=Math.round(z.plotOpen)+n,x.push("M",d,q,"L",d-E,q)),null!==z.close&&(q=Math.round(z.plotClose)+n,x.push("M",d,q,"L",d+E,q)),t[c?"attr":"animate"]({d:x}).addClass(z.getClassName(),!0))})},animate:null},{getClassName:function(){return p.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")}})})(I);
(function(a){var A=a.defaultPlotOptions,p=a.each,D=a.merge,q=a.seriesType,C=a.seriesTypes;q("candlestick","ohlc",D(A.column,{states:{hover:{lineWidth:2}},tooltip:A.ohlc.tooltip,threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}),{pointAttribs:function(a,p){var q=C.column.prototype.pointAttribs.call(this,a,p),n=this.options,z=a.open<a.close,x=n.lineColor||this.color;q["stroke-width"]=n.lineWidth;q.fill=a.options.color||(z?n.upColor||this.color:this.color);q.stroke=
a.lineColor||(z?n.upLineColor||x:x);p&&(a=n.states[p],q.fill=a.color||q.fill,q.stroke=a.lineColor||q.stroke,q["stroke-width"]=a.lineWidth||q["stroke-width"]);return q},drawPoints:function(){var a=this,q=a.chart,C=a.yAxis.reversed;p(a.points,function(n){var p=n.graphic,x,t,d,c,m,b,e,r=!p;void 0!==n.plotY&&(p||(n.graphic=p=q.renderer.path().add(a.group)),p.attr(a.pointAttribs(n,n.selected&&"select")).shadow(a.options.shadow),m=p.strokeWidth()%2/2,b=Math.round(n.plotX)-m,x=n.plotOpen,t=n.plotClose,d=
Math.min(x,t),x=Math.max(x,t),e=Math.round(n.shapeArgs.width/2),t=C?x!==n.yBottom:Math.round(d)!==Math.round(n.plotHigh),c=C?Math.round(d)!==Math.round(n.plotHigh):x!==n.yBottom,d=Math.round(d)+m,x=Math.round(x)+m,m=[],m.push("M",b-e,x,"L",b-e,d,"L",b+e,d,"L",b+e,x,"Z","M",b,d,"L",b,t?Math.round(C?n.yBottom:n.plotHigh):d,"M",b,x,"L",b,c?Math.round(C?n.plotHigh:n.yBottom):x),p[r?"attr":"animate"]({d:m}).addClass(n.getClassName(),!0))})}})})(I);var Y=function(a){var A=a.each,p=a.defined,D=a.seriesTypes,
q=a.stableSort;return{getPlotBox:function(){return a.Series.prototype.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this)},translate:function(){D.column.prototype.translate.apply(this);var a=this.options,E=this.chart,z=this.points,F=z.length-1,n,B,x=a.onSeries,x=x&&E.get(x),a=a.onKey||"y",t=x&&x.options.step,d=x&&x.points,c=d&&d.length,m=E.inverted,b=this.xAxis,e=this.yAxis,r=0,h,f,g,w;if(x&&x.visible&&c)for(r=(x.pointXOffset||0)+(x.barW||0)/2,n=x.currentDataGrouping,
f=d[c-1].x+(n?n.totalRange:0),q(z,function(b,a){return b.x-a.x}),a="plot"+a[0].toUpperCase()+a.substr(1);c--&&z[F]&&!(h=d[c],n=z[F],n.y=h.y,h.x<=n.x&&void 0!==h[a]&&(n.x<=f&&(n.plotY=h[a],h.x<n.x&&!t&&(g=d[c+1])&&void 0!==g[a]&&(w=(n.x-h.x)/(g.x-h.x),n.plotY+=w*(g[a]-h[a]),n.y+=w*(g.y-h.y))),F--,c++,0>F)););A(z,function(a,f){var g;a.plotX+=r;if(void 0===a.plotY||m)0<=a.plotX&&a.plotX<=b.len?m?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=p(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=E.chartHeight-b.bottom-
(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(B=z[f-1])&&B.plotX===a.plotX&&(void 0===B.stackIndex&&(B.stackIndex=0),g=B.stackIndex+1);a.stackIndex=g});this.onSeries=x}}}(I);(function(a,A){function p(a){t[a+"pin"]=function(c,d,b,e,r){var h=r&&r.anchorX;r=r&&r.anchorY;"circle"===a&&e>b&&(c-=Math.round((e-b)/2),b=e);c=t[a](c,d,b,e);h&&r&&(c.push("M","circle"===a?c[1]-c[4]:c[1]+c[4]/2,d>r?d:d+e,"L",h,r),c=c.concat(t.circle(h-1,r-1,2,2)));return c}}var D=a.addEvent,q=a.each,C=a.merge,E=a.noop,
z=a.Renderer,F=a.Series,n=a.seriesType,B=a.TrackerMixin,x=a.VMLRenderer,t=a.SVGRenderer.prototype.symbols;n("flags","column",{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}\x3cbr/\x3e"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],forceCrop:!0,
init:F.prototype.init,pointAttribs:function(a,c){var d=this.options,b=a&&a.color||this.color,e=d.lineColor,r=a&&a.lineWidth;a=a&&a.fillColor||d.fillColor;c&&(a=d.states[c].fillColor,e=d.states[c].lineColor,r=d.states[c].lineWidth);return{fill:a||b,stroke:e||b,"stroke-width":r||d.lineWidth||0}},translate:A.translate,getPlotBox:A.getPlotBox,drawPoints:function(){var d=this.points,c=this.chart,m=c.renderer,b,e,r=c.inverted,h=this.options,f=h.y,g,w,k,v,n,p,t=this.yAxis,l={},u=[];for(w=d.length;w--;)k=
d[w],p=(r?k.plotY:k.plotX)>this.xAxis.len,b=k.plotX,v=k.stackIndex,g=k.options.shape||h.shape,e=k.plotY,void 0!==e&&(e=k.plotY+f-(void 0!==v&&v*h.stackDistance)),k.anchorX=v?void 0:k.plotX,n=v?void 0:k.plotY,v=k.graphic,void 0!==e&&0<=b&&!p?(v||(v=k.graphic=m.label("",null,null,g,null,null,h.useHTML).attr(this.pointAttribs(k)).css(C(h.style,k.style)).attr({align:"flag"===g?"left":"center",width:h.width,height:h.height,"text-align":h.textAlign}).addClass("highcharts-point").add(this.markerGroup),k.graphic.div&&
(k.graphic.div.point=k),v.shadow(h.shadow),v.isNew=!0),0<b&&(b-=v.strokeWidth()%2),g={y:e,anchorY:n},h.allowOverlapX&&(g.x=b,g.anchorX=k.anchorX),v.attr({text:k.options.title||h.title||"A"})[v.isNew?"attr":"animate"](g),h.allowOverlapX||(l[k.plotX]?l[k.plotX].size=Math.max(l[k.plotX].size,v.width):l[k.plotX]={align:0,size:v.width,target:b,anchorX:b}),k.tooltipPos=[b,e+t.pos-c.plotTop]):v&&(k.graphic=v.destroy());h.allowOverlapX||(a.objectEach(l,function(b){b.plotX=b.anchorX;u.push(b)}),a.distribute(u,
r?t.len:this.xAxis.len,100),q(d,function(b){var a=b.graphic&&l[b.plotX];a&&(b.graphic[b.graphic.isNew?"attr":"animate"]({x:a.pos,anchorX:b.anchorX}),a.pos?b.graphic.isNew=!1:(b.graphic.attr({x:-9999,anchorX:-9999}),b.graphic.isNew=!0))}));h.useHTML&&a.wrap(this.markerGroup,"on",function(b){return a.SVGElement.prototype.on.apply(b.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})},drawTracker:function(){var a=this.points;B.drawTrackerPoint.apply(this);q(a,function(c){var d=c.graphic;
d&&D(d.element,"mouseover",function(){0<c.stackIndex&&!c.raised&&(c._y=d.y,d.attr({y:c._y-8}),c.raised=!0);q(a,function(b){b!==c&&b.raised&&b.graphic&&(b.graphic.attr({y:b._y}),b.raised=!1)})})})},animate:function(a){a?this.setClip():this.animate=null},setClip:function(){F.prototype.setClip.apply(this,arguments);!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup.clip(this.chart[this.sharedClipKey])},buildKDTree:E,invertGroups:E});t.flag=function(a,c,m,b,e){var d=e&&e.anchorX||a;e=e&&e.anchorY||
c;return t.circle(d-1,e-1,2,2).concat(["M",d,e,"L",a,c+b,a,c,a+m,c,a+m,c+b,a,c+b,"Z"])};p("circle");p("square");z===x&&q(["flag","circlepin","squarepin"],function(a){x.prototype.symbols[a]=t[a]})})(I,Y);(function(a){function A(b,a,c){this.init(b,a,c)}var p=a.addEvent,D=a.Axis,q=a.correctFloat,C=a.defaultOptions,E=a.defined,z=a.destroyObjectProperties,F=a.each,n=a.fireEvent,B=a.hasTouch,x=a.merge,t=a.pick,d=a.removeEvent,c,m={height:a.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,
margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1};C.scrollbar=x(!0,m,C.scrollbar);a.swapXY=c=function(a,e){var b=a.length,c;if(e)for(e=0;e<b;e+=3)c=a[e+1],a[e+1]=a[e+2],a[e+2]=c;return a};A.prototype={init:function(a,e,c){this.scrollbarButtons=
[];this.renderer=a;this.userOptions=e;this.options=x(m,e);this.chart=c;this.size=t(this.options.size,this.options.height);e.enabled&&(this.render(),this.initEvents(),this.addEvents())},render:function(){var a=this.renderer,e=this.options,d=this.size,h;this.group=h=a.g("scrollbar").attr({zIndex:e.zIndex,translateY:-99999}).add();this.track=a.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:e.trackBorderRadius||0,height:d,width:d}).add(h);this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,
"stroke-width":e.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=a.g().add(h);this.scrollbar=a.rect().addClass("highcharts-scrollbar-thumb").attr({height:d,width:d,r:e.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=a.path(c(["M",-3,d/4,"L",-3,2*d/3,"M",0,d/4,"L",0,2*d/3,"M",3,d/4,"L",3,2*d/3],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);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(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)},position:function(a,e,c,d){var b=this.options.vertical,g=0,h=this.rendered?"animate":"attr";this.x=a;this.y=e+this.trackBorderWidth;this.width=c;this.xOffset=this.height=d;
this.yOffset=g;b?(this.width=this.yOffset=c=g=this.size,this.xOffset=e=0,this.barWidth=d-2*c,this.x=a+=this.options.margin):(this.height=this.xOffset=d=e=this.size,this.barWidth=c-2*d,this.y+=this.options.margin);this.group[h]({translateX:a,translateY:this.y});this.track[h]({width:c,height:d});this.scrollbarButtons[1][h]({translateX:b?0:c-e,translateY:b?d-g:0})},drawScrollbarButton:function(a){var b=this.renderer,d=this.scrollbarButtons,h=this.options,f=this.size,g;g=b.g().add(this.group);d.push(g);
g=b.rect().addClass("highcharts-scrollbar-button").add(g);g.attr({stroke:h.buttonBorderColor,"stroke-width":h.buttonBorderWidth,fill:h.buttonBackgroundColor});g.attr(g.crisp({x:-.5,y:-.5,width:f+1,height:f+1,r:h.buttonBorderRadius},g.strokeWidth()));g=b.path(c(["M",f/2+(a?-1:1),f/2-3,"L",f/2+(a?-1:1),f/2+3,"L",f/2+(a?2:-2),f/2],h.vertical)).addClass("highcharts-scrollbar-arrow").add(d[a]);g.attr({fill:h.buttonArrowColor})},setRange:function(a,e){var b=this.options,c=b.vertical,f=b.minWidth,g=this.barWidth,
d,k,v=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";E(g)&&(a=Math.max(a,0),d=Math.ceil(g*a),this.calculatedWidth=k=q(g*Math.min(e,1)-d),k<f&&(d=(g-f+k)*a,k=f),f=Math.floor(d+this.xOffset+this.yOffset),g=k/2-.5,this.from=a,this.to=e,c?(this.scrollbarGroup[v]({translateY:f}),this.scrollbar[v]({height:k}),this.scrollbarRifles[v]({translateY:g}),this.scrollbarTop=f,this.scrollbarLeft=0):(this.scrollbarGroup[v]({translateX:f}),this.scrollbar[v]({width:k}),
this.scrollbarRifles[v]({translateX:g}),this.scrollbarLeft=f,this.scrollbarTop=0),12>=k?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===b.showFull&&(0>=a&&1<=e?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var e=a.chart.pointer.normalize(b),c=a.options.vertical?"chartY":"chartX",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][c]||(e=a.cursorToScrollbarPosition(e)[c],c=a[c],c=e-c,a.hasDragged=!0,
a.updatePosition(f[0]+c,f[1]+c),a.hasDragged&&n(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&n(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=
function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-c),q(a.to-c));n(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);n(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>
g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);n(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,c){1<c&&(a=q(1-q(c-a)),c=1);0>a&&(c=q(c-a),a=0);this.from=a;this.to=c},update:function(a){this.destroy();this.init(this.chart.renderer,
x(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],c=this.scrollbarButtons,d=this.scrollbarGroup.element,h=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[c[a[0]].element,"click",this.buttonToMinClick],[c[a[1]].element,"click",this.buttonToMaxClick],[this.track.element,"click",this.trackClick],[d,"mousedown",h],[d.ownerDocument,"mousemove",f],[d.ownerDocument,"mouseup",g]];B&&a.push([d,"touchstart",h],[d.ownerDocument,"touchmove",
f],[d.ownerDocument,"touchend",g]);F(a,function(a){p.apply(null,a)});this._events=a},removeEvents:function(){F(this._events,function(a){d.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();F(["track","scrollbarRifles","scrollbar","scrollbarGroup","group"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,z(a.scrollbarButtons))}};p(D,"afterInit",function(){var a=this;a.options.scrollbar&&
a.options.scrollbar.enabled&&(a.options.scrollbar.vertical=!a.horiz,a.options.startOnTick=a.options.endOnTick=!1,a.scrollbar=new A(a.chart.renderer,a.options.scrollbar,a.chart),p(a.scrollbar,"changed",function(b){var c=Math.min(t(a.options.min,a.min),a.min,a.dataMin),d=Math.max(t(a.options.max,a.max),a.max,a.dataMax)-c,f;a.horiz&&!a.reversed||!a.horiz&&a.reversed?(f=c+d*this.to,c+=d*this.from):(f=c+d*(1-this.from),c+=d*(1-this.to));a.setExtremes(c,f,!0,!1,b)}))});p(D,"afterRender",function(){var a=
Math.min(t(this.options.min,this.min),this.min,t(this.dataMin,this.min)),c=Math.max(t(this.options.max,this.max),this.max,t(this.dataMax,this.max)),d=this.scrollbar,h=this.titleOffset||0;if(d){this.horiz?(d.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(d.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,
this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(a)||isNaN(c)||!E(this.min)||!E(this.max)?d.setRange(0,0):(h=(this.min-a)/(c-a),a=(this.max-a)/(c-a),this.horiz&&!this.reversed||!this.horiz&&this.reversed?d.setRange(h,a):d.setRange(1-a,1-h))}});p(D,"afterGetOffset",function(){var a=this.horiz?2:1,c=this.scrollbar;c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[a]+=c.size+
c.options.margin)});a.Scrollbar=A})(I);(function(a){function A(a){this.init(a)}var p=a.addEvent,D=a.Axis,q=a.Chart,C=a.color,E=a.defaultOptions,z=a.defined,F=a.destroyObjectProperties,n=a.each,B=a.erase,x=a.error,t=a.extend,d=a.grep,c=a.hasTouch,m=a.isArray,b=a.isNumber,e=a.isObject,r=a.isTouchDevice,h=a.merge,f=a.pick,g=a.removeEvent,w=a.Scrollbar,k=a.Series,v=a.seriesTypes,H=a.wrap,K=[].concat(a.defaultDataGroupingUnits),G=function(a){var l=d(arguments,b);if(l.length)return Math[a].apply(0,l)};
K[4]=["day",[1,2,3,4]];K[5]=["week",[1,2,3]];v=void 0===v.areaspline?"line":"areaspline";t(E,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:C("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:v,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,smoothed:!0,
units:K},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,
labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols["navigator-handle"]=function(a,b,f,c,d){a=d.width/2;b=Math.round(a/3)+.5;d=d.height;return["M",-a-1,.5,"L",a,.5,"L",a,d+.5,"L",-a-1,d+.5,"L",-a-1,.5,"M",-b,4,"L",-b,d-3,"M",b-1,4,"L",b-1,d-3]};A.prototype={drawHandle:function(a,b,f,c){var l=this.navigatorOptions.handles.height;this.handles[b][c](f?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+
.5-l)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-l/2-1)})},drawOutline:function(a,b,f,c){var l=this.navigatorOptions.maskInside,u=this.outline.strokeWidth(),d=u/2,u=u%2/2,g=this.outlineHeight,y=this.scrollbarHeight,k=this.size,e=this.left-y,w=this.top;f?(e-=d,f=w+b+u,b=w+a+u,a=["M",e+g,w-y-u,"L",e+g,f,"L",e,f,"L",e,b,"L",e+g,b,"L",e+g,w+k+y].concat(l?["M",e+g,f-d,"L",e+g,b+d]:[])):(a+=e+y-u,b+=e+y-u,w+=d,a=["M",e,w,"L",a,w,"L",a,w+g,"L",b,w+g,"L",
b,w,"L",e+k+2*y,w].concat(l?["M",a-d,w,"L",b+d,w]:[]));this.outline[c]({d:a})},drawMasks:function(a,b,f,c){var l=this.left,u=this.top,d=this.height,g,y,e,k;f?(e=[l,l,l],k=[u,u+a,u+b],y=[d,d,d],g=[a,b-a,this.size-b]):(e=[l,l+a,l+b],k=[u,u,u],y=[a,b-a,this.size-b],g=[d,d,d]);n(this.shades,function(a,b){a[c]({x:e[b],y:k[b],width:y[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,f=b.maskInside,c=a.chart,d=c.inverted,g=c.renderer,e;a.navigatorGroup=e=g.g("navigator").attr({zIndex:8,
visibility:"hidden"}).add();var k={cursor:d?"ns-resize":"ew-resize"};n([!f,f,!f],function(l,f){a.shades[f]=g.rect().addClass("highcharts-navigator-mask"+(1===f?"-inside":"-outside")).attr({fill:l?b.maskFill:"rgba(0,0,0,0)"}).css(1===f&&k).add(e)});a.outline=g.path().addClass("highcharts-navigator-outline").attr({"stroke-width":b.outlineWidth,stroke:b.outlineColor}).add(e);b.handles.enabled&&n([0,1],function(l){b.handles.inverted=c.inverted;a.handles[l]=g.symbol(b.handles.symbols[l],-b.handles.width/
2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[l].attr({zIndex:7-l}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][l]).add(e);var f=b.handles;a.handles[l].attr({fill:f.backgroundColor,stroke:f.borderColor,"stroke-width":f.lineWidth}).css(k)})},update:function(a){n(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(l,
c,d,g){var u=this.chart,e,k,y=this.scrollbarHeight,w,h=this.xAxis;e=h.fake?u.xAxis[0]:h;var J=this.navigatorEnabled,v,m=this.rendered;k=u.inverted;var n,p=u.xAxis[0].minRange,q=u.xAxis[0].options.maxRange;if(!this.hasDragged||z(d)){if(!b(l)||!b(c))if(m)d=0,g=f(h.width,e.width);else return;this.left=f(h.left,u.plotLeft+y+(k?u.plotWidth:0));this.size=v=w=f(h.len,(k?u.plotHeight:u.plotWidth)-2*y);u=k?y:w+2*y;d=f(d,h.toPixels(l,!0));g=f(g,h.toPixels(c,!0));b(d)&&Infinity!==Math.abs(d)||(d=0,g=u);l=h.toValue(d,
!0);c=h.toValue(g,!0);n=Math.abs(a.correctFloat(c-l));n<p?this.grabbedLeft?d=h.toPixels(c-p,!0):this.grabbedRight&&(g=h.toPixels(l+p,!0)):z(q)&&n>q&&(this.grabbedLeft?d=h.toPixels(c-q,!0):this.grabbedRight&&(g=h.toPixels(l+q,!0)));this.zoomedMax=Math.min(Math.max(d,g,0),v);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(d,g),0),v);this.range=this.zoomedMax-this.zoomedMin;v=Math.round(this.zoomedMax);d=Math.round(this.zoomedMin);J&&(this.navigatorGroup.attr({visibility:"visible"}),
m=m&&!this.hasDragged?"animate":"attr",this.drawMasks(d,v,k,m),this.drawOutline(d,v,k,m),this.navigatorOptions.handles.enabled&&(this.drawHandle(d,0,k,m),this.drawHandle(v,1,k,m)));this.scrollbar&&(k?(k=this.top-y,e=this.left-y+(J||!e.opposite?0:(e.titleOffset||0)+e.axisTitleMargin),y=w+2*y):(k=this.top+(J?this.height:-y),e=this.left-y),this.scrollbar.position(e,k,u,y),this.scrollbar.setRange(this.zoomedMin/(w||1),this.zoomedMax/(w||1)));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,
f=b.container,d=[],g,e;a.mouseMoveHandler=g=function(b){a.onMouseMove(b)};a.mouseUpHandler=e=function(b){a.onMouseUp(b)};d=a.getPartsEvents("mousedown");d.push(p(f,"mousemove",g),p(f.ownerDocument,"mouseup",e));c&&(d.push(p(f,"touchmove",g),p(f.ownerDocument,"touchend",e)),d.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=d;a.series&&a.series[0]&&d.push(p(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,l=[];
n(["shades","handles"],function(f){n(b[f],function(c,d){l.push(p(c.element,a,function(a){b[f+"Mousedown"](a,d)}))})});return l},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var f=this.chart,l=this.xAxis,c=this.zoomedMin,d=this.left,u=this.size,g=this.range,e=a.chartX,k,w;f.inverted&&(e=a.chartY,d=this.top);1===b?(this.grabbedCenter=e,this.fixedWidth=g,this.dragOffset=e-c):(a=e-d-g/2,0===b?a=Math.max(0,a):2===b&&a+g>=u&&(a=u-g,this.reversedExtremes?(a-=g,w=this.getUnionExtremes().dataMin):
k=this.getUnionExtremes().dataMax),a!==c&&(this.fixedWidth=g,b=l.toFixedRange(a,a+g,w,k),z(b.min)&&f.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var f=a.xAxis[0],l=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=l?f.min:f.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=l?f.max:f.min);
a.fixedRange=null},onMouseMove:function(b){var l=this,c=l.chart,d=l.left,g=l.navigatorSize,e=l.range,k=l.dragOffset,w=c.inverted;b.touches&&0===b.touches[0].pageX||(b=c.pointer.normalize(b),c=b.chartX,w&&(d=l.top,c=b.chartY),l.grabbedLeft?(l.hasDragged=!0,l.render(0,0,c-d,l.otherHandlePos)):l.grabbedRight?(l.hasDragged=!0,l.render(0,0,l.otherHandlePos,c-d)):l.grabbedCenter&&(l.hasDragged=!0,c<k?c=k:c>g+k-e&&(c=g+k-e),l.render(0,0,c-k,c-k+e)),l.hasDragged&&l.scrollbar&&f(l.scrollbar.options.liveRedraw,
a.svg&&!r&&!this.chart.isBoosting)&&(b.DOMType=b.type,setTimeout(function(){l.onMouseUp(b)},0)))},onMouseUp:function(a){var b=this.chart,f=this.xAxis,l=this.scrollbar,c,d,g=a.DOMEvent||a;(!this.hasDragged||l&&l.hasDragged)&&"scrollbar"!==a.trigger||(l=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?c=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(d=this.fixedExtreme),this.zoomedMax===this.size&&(d=this.reversedExtremes?l.dataMin:l.dataMax),0===this.zoomedMin&&(c=this.reversedExtremes?
l.dataMax:l.dataMin),f=f.toFixedRange(this.zoomedMin,this.zoomedMax,c,d),z(f.min)&&b.xAxis[0].setExtremes(Math.min(f.min,f.max),Math.max(f.min,f.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:g}));"mousemove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(n(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=
void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&n(a,function(a){g(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&g(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,l=c.enabled,d=b.scrollbar,g=d.enabled,b=l?c.height:0,e=g?d.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=
b;this.scrollbarHeight=e;this.scrollbarEnabled=g;this.navigatorEnabled=l;this.navigatorOptions=c;this.scrollbarOptions=d;this.outlineHeight=b+e;this.opposite=f(c.opposite,!l&&a.inverted);var k=this,l=k.baseSeries,d=a.xAxis.length,g=a.yAxis.length,v=l&&l[0]&&l[0].xAxis||a.xAxis[0]||{options:{}};a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new D(a,h({breaks:v.options.breaks,ordinal:v.options.ordinal},c.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:d,isInternal:!0,
offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[e,0,-e,0],width:b}:{offsets:[0,-e,0,e],height:b})),k.yAxis=new D(a,h(c.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:g,isInternal:!0,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),l||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=p(a,"beforeRedraw",function(){0<a.series.length&&!k.series&&(k.setBaseSeries(),k.unbindRedraw())})),k.reversedExtremes=
a.inverted&&!k.xAxis.reversed||!a.inverted&&k.xAxis.reversed,k.renderElements(),k.addMouseEvents()):k.xAxis={translate:function(b,f){var c=a.xAxis[0],l=c.getExtremes(),d=c.len-2*e,g=G("min",c.options.min,l.dataMin),c=G("max",c.options.max,l.dataMax)-g;return f?b*c/d+g:d*(b-g)/c},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,!0)},toFixedRange:D.prototype.toFixedRange,fake:!0};a.options.scrollbar.enabled&&(a.scrollbar=k.scrollbar=new w(a.renderer,h(a.options.scrollbar,
{margin:k.navigatorEnabled?0:10,vertical:a.inverted}),a),p(k.scrollbar,"changed",function(b){var f=k.size,c=f*this.to,f=f*this.from;k.hasDragged=k.scrollbar.hasDragged;k.render(0,0,f,c);(a.options.scrollbar.liveRedraw||"mousemove"!==b.DOMType&&"touchmove"!==b.DOMType)&&setTimeout(function(){k.onMouseUp(b)})}));k.addBaseSeriesEvents();k.addChartEvents()},getUnionExtremes:function(a){var b=this.chart.xAxis[0],c=this.xAxis,l=c.options,d=b.options,g;a&&null===b.dataMin||(g={dataMin:f(l&&l.min,G("min",
d.min,b.dataMin,c.dataMin,c.min)),dataMax:f(l&&l.max,G("max",d.max,b.dataMax,c.dataMax,c.max))});return g},setBaseSeries:function(a,b){var f=this.chart,c=this.baseSeries=[];a=a||f.options&&f.options.navigator.baseSeries||0;n(f.series||[],function(b,f){b.options.isInternal||!b.options.showInNavigator&&(f!==a&&b.options.id!==a||!1===b.options.showInNavigator)||c.push(b)});this.xAxis&&!this.xAxis.fake&&this.updateNavigatorSeries(!0,b)},updateNavigatorSeries:function(b,f){var c=this,l=c.chart,d=c.baseSeries,
k,e,u=c.navigatorOptions.series,w,v={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:!1,isInternal:!0},p=c.series=a.grep(c.series||[],function(b){var f=b.baseSeries;return 0>a.inArray(f,d)?(f&&(g(f,"updatedData",c.updatedDataHandler),delete f.navigatorSeries),b.chart&&b.destroy(),!1):!0});d&&d.length&&n(d,function(a){var b=a.navigatorSeries,g=t({color:a.color,visible:a.visible},m(u)?E.navigator.series:
u);b&&!1===c.navigatorOptions.adaptToUpdatedData||(v.name="Navigator "+d.length,k=a.options||{},w=k.navigatorOptions||{},e=h(k,v,g,w),g=w.data||g.data,c.hasNavigatorData=c.hasNavigatorData||!!g,e.data=g||k.data&&k.data.slice(0),b&&b.options?b.update(e,f):(a.navigatorSeries=l.initSeries(e),a.navigatorSeries.baseSeries=a,p.push(a.navigatorSeries)))});if(u.data&&(!d||!d.length)||m(u))c.hasNavigatorData=!1,u=a.splat(u),n(u,function(a,b){v.name="Navigator "+(p.length+1);e=h(E.navigator.series,{color:l.series[b]&&
!l.series[b].options.isInternal&&l.series[b].color||l.options.colors[b]||l.options.colors[0]},v,a);e.data=a.data;e.data&&(c.hasNavigatorData=!0,p.push(l.initSeries(e)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&p(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes);n(b,function(b){p(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});p(b,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,
!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&p(b,"updatedData",this.updatedDataHandler);p(b,"remove",function(){this.navigatorSeries&&(B(a.series,this.navigatorSeries),z(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=
this.chart.navigator,c=this.getExtremes(),d=c.dataMin,g=c.dataMax,c=c.max-c.min,k=a.stickToMin,e=a.stickToMax,w=f(this.options.overscroll,0),h,v,m=a.series&&a.series[0],n=!!this.setExtremes;this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger||(k&&(v=d,h=v+c),e&&(h=g+w,k||(v=Math.max(h-c,m&&m.xData?m.xData[0]:-Number.MAX_VALUE))),n&&(k||e)&&b(v)&&(this.min=this.userMin=v,this.max=this.userMax=h));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,f=
this.navigatorSeries;a.stickToMax=a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);f&&!a.hasNavigatorData&&(f.options.pointStart=this.xData[0],f.setData(this.options.data,!1,null,!1))},addChartEvents:function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(p(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&
a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)}),p(this.chart,"getMargins",function(){var a=this.navigator,b=a.opposite?"plotTop":"marginBottom";this.inverted&&(b=a.opposite?"marginRight":"plotLeft");this[b]=(this[b]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))},destroy:function(){this.removeEvents();this.xAxis&&(B(this.chart.xAxis,this.xAxis),B(this.chart.axes,this.xAxis));this.yAxis&&(B(this.chart.yAxis,this.yAxis),
B(this.chart.axes,this.yAxis));n(this.series||[],function(a){a.destroy&&a.destroy()});n("series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" "),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);n([this.handles],function(a){F(a)},this)}};a.Navigator=A;H(D.prototype,"zoom",function(a,b,f){var c=this.chart,d=c.options,g=d.chart.zoomType,k=d.chart.pinchType,l=d.navigator,d=d.rangeSelector,e;this.isXAxis&&
(l&&l.enabled||d&&d.enabled)&&(!r&&"x"===g||r&&"x"===k?c.resetZoomButton="blocked":"y"===g?e=!1:(!r&&"xy"===g||r&&"xy"===k)&&this.options.range&&(c=this.previousZoom,z(b)?this.previousZoom=[this.min,this.max]:c&&(b=c[0],f=c[1],delete this.previousZoom)));return void 0!==e?e:a.call(this,b,f)});p(q,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new A(this)});p(q,"afterSetChartSize",function(){var a=this.legend,b=this.navigator,c,
d,g,k;b&&(d=a&&a.options,g=b.xAxis,k=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&"bottom"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+f(d.margin,10):0)),g&&k&&(this.inverted?g.options.left=k.options.left=b.left:g.options.top=
k.options.top=b.top,g.setAxisSize(),k.setAxisSize()))});p(q,"update",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(h(!0,this.options.navigator,b),h(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});p(q,"afterUpdate",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new A(this))});H(k.prototype,"addPoint",
function(a,b,c,f,d){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&x(20,!0);a.call(this,b,c,f,d)});p(q,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});p(k,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(I);(function(a){function A(a){this.init(a)}
var p=a.addEvent,D=a.Axis,q=a.Chart,C=a.css,E=a.createElement,z=a.defaultOptions,F=a.defined,n=a.destroyObjectProperties,B=a.discardElement,x=a.each,t=a.extend,d=a.fireEvent,c=a.isNumber,m=a.merge,b=a.pick,e=a.pInt,r=a.splat,h=a.wrap;t(z,{rangeSelector:{verticalAlign:"top",buttonTheme:{"stroke-width":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:"right",x:0,y:0},buttonPosition:{align:"left",x:0,y:0},labelStyle:{color:"#666666"}}});z.lang=m(z.lang,
{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"From",rangeSelectorTo:"To"});A.prototype={clickButton:function(a,d){var f=this,g=f.chart,e=f.buttonOptions[a],h=g.xAxis[0],m=g.scroller&&g.scroller.getUnionExtremes()||h||{},n=m.dataMin,l=m.dataMax,u,y=h&&Math.round(Math.min(h.max,b(l,h.max))),q=e.type,t,m=e._range,z,L,M,E=e.dataGrouping;if(null!==n&&null!==l){g.fixedRange=m;E&&(this.forcedDataGrouping=!0,D.prototype.setDataGrouping.call(h||{chart:this.chart},E,!1),this.frozenStates=e.preserveDataGrouping);
if("month"===q||"year"===q)h?(q={range:e,max:y,chart:g,dataMin:n,dataMax:l},u=h.minFromRange.call(q),c(q.newMax)&&(y=q.newMax)):m=e;else if(m)u=Math.max(y-m,n),y=Math.min(u+m,l);else if("ytd"===q)if(h)void 0===l&&(n=Number.MAX_VALUE,l=Number.MIN_VALUE,x(g.series,function(a){a=a.xData;n=Math.min(a[0],n);l=Math.max(a[a.length-1],l)}),d=!1),y=f.getYTDExtremes(l,n,g.time.useUTC),u=z=y.min,y=y.max;else{p(g,"beforeRender",function(){f.clickButton(a)});return}else"all"===q&&h&&(u=n,y=l);u+=e._offsetMin;
y+=e._offsetMax;f.setSelected(a);h?h.setExtremes(u,y,b(d,1),null,{trigger:"rangeSelectorButton",rangeSelectorButton:e}):(t=r(g.options.xAxis)[0],M=t.range,t.range=m,L=t.min,t.min=z,p(g,"load",function(){t.range=M;t.min=L}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:"month",count:1,text:"1m"},{type:"month",count:3,text:"3m"},{type:"month",count:6,text:"6m"},{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1y"},{type:"all",text:"All"}],init:function(a){var b=
this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),e=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,"blur");c&&c.blur&&d(c,"blur")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=p(a.container,"mousedown",h);this.unResize=p(a,"resize",h);x(f,b.computeButtonRange);void 0!==e&&f[e]&&this.clickButton(e,!1);p(a,"load",function(){a.xAxis&&a.xAxis[0]&&p(a.xAxis[0],"setExtremes",function(c){this.max-this.min!==a.fixedRange&&
"rangeSelectorButton"!==c.trigger&&"updatedData"!==c.trigger&&b.forcedDataGrouping&&!b.frozenStates&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this,b=this.chart,d=b.xAxis[0],e=Math.round(d.max-d.min),h=!d.hasVisibleSeries,m=b.scroller&&b.scroller.getUnionExtremes()||d,n=m.dataMin,p=m.dataMax,b=a.getYTDExtremes(p,n,b.time.useUTC),l=b.min,u=b.max,y=a.selected,q=c(y),t=a.options.allButtonsEnabled,r=a.buttons;x(a.buttonOptions,function(b,c){var f=b._range,g=b.type,k=b.count||
1,w=r[c],m=0;b=b._offsetMax-b._offsetMin;c=c===y;var v=f>p-n,L=f<d.minRange,x=!1,z=!1,f=f===e;("month"===g||"year"===g)&&e+36E5>=864E5*{month:28,year:365}[g]*k-b&&e-36E5<=864E5*{month:31,year:366}[g]*k+b?f=!0:"ytd"===g?(f=u-l+b===e,x=!c):"all"===g&&(f=d.max-d.min>=p-n,z=!c&&q&&f);g=!t&&(v||L||z||h);k=c&&f||f&&!q&&!x||c&&a.frozenStates;g?m=3:k&&(q=!0,m=2);w.state!==m&&w.setState(m)})},computeButtonRange:function(a){var c=a.type,f=a.count||1,d={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,
week:6048E5};if(d[c])a._range=d[c]*f;else if("month"===c||"year"===c)a._range=864E5*{month:30,year:365}[c]*f;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,f=this.chart.time,d=this[a+"Input"];F(b)&&(d.previousValue=d.HCTime,d.HCTime=b);d.value=f.dateFormat(c.inputEditDateFormat||"%Y-%m-%d",d.HCTime);this[a+"DateBox"].attr({text:f.dateFormat(c.inputDateFormat||"%b %e, %Y",d.HCTime)})},
showInput:function(a){var b=this.inputGroup,c=this[a+"DateBox"];C(this[a+"Input"],{left:b.translateX+c.x+"px",top:b.translateY+"px",width:c.width-2+"px",height:c.height-2+"px",border:"2px solid silver"})},hideInput:function(a){C(this[a+"Input"],{border:0,width:"1px",height:"1px"});this.setInputValue(a)},drawInput:function(a){function b(){var a=u.value,b=(p.inputDateParser||Date.parse)(a),g=f.xAxis[0],k=f.scroller&&f.scroller.xAxis?f.scroller.xAxis:g,h=k.dataMin,k=k.dataMax;b!==u.previousValue&&(u.previousValue=
b,c(b)||(b=a.split("-"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),c(b)&&(f.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),l?b>d.maxInput.HCTime?b=void 0:b<h&&(b=h):b<d.minInput.HCTime?b=void 0:b>k&&(b=k),void 0!==b&&g.setExtremes(l?b:g.min,l?g.max:b,void 0,void 0,{trigger:"rangeSelectorInput"})))}var d=this,f=d.chart,h=f.renderer.style||{},n=f.renderer,p=f.options.rangeSelector,q=d.div,l="min"===a,u,y,r=this.inputGroup;this[a+"Label"]=y=n.label(z.lang[l?"rangeSelectorFrom":"rangeSelectorTo"],this.inputGroup.offset).addClass("highcharts-range-label").attr({padding:2}).add(r);
r.offset+=y.width+5;this[a+"DateBox"]=n=n.label("",r.offset).addClass("highcharts-range-input").attr({padding:2,width:p.inputBoxWidth||90,height:p.inputBoxHeight||17,"text-align":"center",stroke:p.inputBoxBorderColor||"#cccccc","stroke-width":1}).on("click",function(){d.showInput(a);d[a+"Input"].focus()}).add(r);r.offset+=n.width+(l?10:0);this[a+"Input"]=u=E("input",{name:a,className:"highcharts-range-selector",type:"text"},{top:f.plotTop+"px"},q);y.css(m(h,p.labelStyle));n.css(m({color:"#333333"},
h,p.inputStyle));C(u,t({position:"absolute",border:0,width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:h.fontSize,fontFamily:h.fontFamily,top:"-9999em"},p.inputStyle));u.onfocus=function(){d.showInput(a)};u.onblur=function(){d.hideInput(a)};u.onchange=b;u.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a="top"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-
10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,f=new d.Date(a),g=d.get("FullYear",f);c=c?d.Date.UTC(g,0,1):+new d.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,c){var d=this,f=d.chart,e=f.renderer,g=f.container,h=f.options,m=h.exporting&&!1!==h.exporting.enabled&&h.navigation&&h.navigation.buttonOptions,l=z.lang,u=d.div,n=h.rangeSelector,p=b(h.chart.style&&h.chart.style.zIndex,0)+1,h=n.floating,q=d.buttons,u=d.inputGroup,r=n.buttonTheme,
t=n.buttonPosition,A=n.inputPosition,B=n.inputEnabled,C=r&&r.states,D=f.plotLeft,F,N=d.buttonGroup,R;R=d.rendered;var S=d.options.verticalAlign,I=f.legend,U=I&&I.options,V=t.y,T=A.y,W=R||!1,X=W?"animate":"attr",Q=0,O=0,P;if(!1!==n.enabled){R||(d.group=R=e.g("range-selector-group").attr({zIndex:7}).add(),d.buttonGroup=N=e.g("range-selector-buttons").add(R),d.zoomText=e.text(l.rangeSelectorZoom,0,15).css(n.labelStyle).add(N),x(d.buttonOptions,function(a,b){q[b]=e.button(a.text,0,0,function(){var c=
a.events&&a.events.click,f;c&&(f=c.call(a));!1!==f&&d.clickButton(b);d.isActive=!0},r,C&&C.hover,C&&C.select,C&&C.disabled).attr({"text-align":"center"}).add(N)}),!1!==B&&(d.div=u=E("div",null,{position:"relative",height:0,zIndex:p}),g.parentNode.insertBefore(u,g),d.inputGroup=u=e.g("input-group").add(R),u.offset=0,d.drawInput("min"),d.drawInput("max")));d.zoomText[X]({x:b(D+t.x,D)});F=b(D+t.x,D)+d.zoomText.getBBox().width+5;x(d.buttonOptions,function(a,c){q[c][X]({x:F});F+=q[c].width+b(n.buttonSpacing,
5)});D=f.plotLeft-f.spacing[3];d.updateButtonStates();m&&this.titleCollision(f)&&"top"===S&&"right"===t.align&&t.y+N.getBBox().height-12<(m.y||0)+m.height&&(Q=-40);"left"===t.align?P=t.x-f.spacing[3]:"right"===t.align&&(P=t.x+Q-f.spacing[1]);N.align({y:t.y,width:N.getBBox().width,align:t.align,x:P},!0,f.spacingBox);d.group.placed=W;d.buttonGroup.placed=W;!1!==B&&(Q=m&&this.titleCollision(f)&&"top"===S&&"right"===A.align&&A.y-u.getBBox().height-12<(m.y||0)+m.height+f.spacing[0]?-40:0,"left"===A.align?
P=D:"right"===A.align&&(P=-Math.max(f.axisOffset[1],-Q)),u.align({y:A.y,width:u.getBBox().width,align:A.align,x:A.x+P-2},!0,f.spacingBox),g=u.alignAttr.translateX+u.alignOptions.x-Q+u.getBBox().x+2,m=u.alignOptions.width,l=N.alignAttr.translateX+N.getBBox().x,P=N.getBBox().width+20,(A.align===t.align||l+P>g&&g+m>l&&V<T+u.getBBox().height)&&u.attr({translateX:u.alignAttr.translateX+(f.axisOffset[1]>=-Q?0:-Q),translateY:u.alignAttr.translateY+N.getBBox().height+10}),d.setInputValue("min",a),d.setInputValue("max",
c),d.inputGroup.placed=W);d.group.align({verticalAlign:S},!0,f.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;"bottom"===S&&(I=U&&"bottom"===U.verticalAlign&&U.enabled&&!U.floating?I.legendHeight+b(U.margin,10):0,a=a+I-20,O=c-a-(h?0:n.y)-10);if("top"===S)h&&(O=0),f.titleOffset&&(O=f.titleOffset+f.options.title.margin),O+=f.margin[0]-f.spacing[0]||0;else if("middle"===S)if(T===V)O=0>T?c+void 0:c;else if(T||V)O=0>T||0>V?O-Math.min(T,V):c-a+NaN;d.group.translate(n.x,n.y+Math.floor(O));
!1!==B&&(d.minInput.style.marginTop=d.group.translateY+"px",d.maxInput.style.marginTop=d.group.translateY+"px");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0<a&&0<d)b+=Math.abs(c);return b},titleCollision:function(a){return!(a.options.title.text||a.options.subtitle.text)},update:function(a){var b=this.chart;m(!0,b.options.rangeSelector,a);this.destroy();this.init(b);
b.rangeSelector.render()},destroy:function(){var b=this,c=b.minInput,d=b.maxInput;b.unMouseDown();b.unResize();n(b.buttons);c&&(c.onfocus=c.onblur=c.onchange=null);d&&(d.onfocus=d.onblur=d.onchange=null);a.objectEach(b,function(a,c){a&&"chart"!==c&&(a.destroy?a.destroy():a.nodeType&&B(this[c]));a!==A.prototype[c]&&(b[c]=null)},this)}};D.prototype.toFixedRange=function(a,d,e,k){var f=this.chart&&this.chart.fixedRange;a=b(e,this.translate(a,!0,!this.horiz));d=b(k,this.translate(d,!0,!this.horiz));e=
f&&(d-a)/f;.7<e&&1.3>e&&(k?a=d-f:d=a+f);c(a)&&c(d)||(a=d=void 0);return{min:a,max:d}};D.prototype.minFromRange=function(){var a=this.range,d={month:"Month",year:"FullYear"}[a.type],e,k=this.max,h,m,n=function(a,b){var c=new Date(a),f=c["get"+d]();c["set"+d](f+b);f===c["get"+d]()&&c.setDate(0);return c.getTime()-a};c(a)?(e=k-a,m=a):(e=k+n(k,-a.count),this.chart&&(this.chart.fixedRange=k-e));h=b(this.dataMin,Number.MIN_VALUE);c(e)||(e=h);e<=h&&(e=h,void 0===m&&(m=n(e,a.count)),this.newMax=Math.min(e+
m,this.dataMax));c(k)||(e=void 0);return e};p(q,"afterGetContainer",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new A(this))});h(q.prototype,"render",function(a,b,c){var d=this.axes,f=this.rangeSelector;f&&(x(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),d=f.options.verticalAlign,f.options.floating||("bottom"===d?this.extraBottomMargin=!0:"middle"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});p(q,"update",function(a){var b=a.options.rangeSelector;
a=this.rangeSelector;var c=this.extraBottomMargin,d=this.extraTopMargin;b&&b.enabled&&!F(a)&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=new A(this));this.extraTopMargin=this.extraBottomMargin=!1;a&&(a.render(),b=b&&b.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||("bottom"===b?this.extraBottomMargin=!0:"middle"!==b&&(this.extraTopMargin=!0)),this.extraBottomMargin!==c||this.extraTopMargin!==d)&&(this.isDirtyBox=!0)});h(q.prototype,"redraw",function(a,b,c){var d=
this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,"bottom"===d?this.extraBottomMargin=!0:"middle"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});p(q,"getMargins",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){d=a.xAxis[0].getExtremes();c(d.min)&&f.render(d.min,d.max)}var d,f=a.rangeSelector,e,h;f&&(h=p(a.xAxis[0],"afterSetExtremes",
function(a){f.render(a.min,a.max)}),e=p(a,"redraw",b),b());p(a,"destroy",function(){f&&(e(),h())})});a.RangeSelector=A})(I);(function(a){var A=a.addEvent,p=a.arrayMax,D=a.arrayMin,q=a.Axis,C=a.Chart,E=a.defined,z=a.each,F=a.extend,n=a.format,B=a.grep,x=a.inArray,t=a.isNumber,d=a.isString,c=a.map,m=a.merge,b=a.pick,e=a.Point,r=a.Renderer,h=a.Series,f=a.splat,g=a.SVGRenderer,w=a.VMLRenderer,k=a.wrap,v=h.prototype,H=v.init,I=v.processData,G=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(e,
g,h){var l=d(e)||e.nodeName,k=arguments[l?1:0],u=k.series,n=a.getOptions(),p,y=b(k.navigator&&k.navigator.enabled,n.navigator.enabled,!0),q=y?{startOnTick:!1,endOnTick:!1}:null,t={marker:{enabled:!1,radius:2}},r={shadow:!1,borderWidth:0};k.xAxis=c(f(k.xAxis||{}),function(a,b){return m({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0},n.xAxis,n.xAxis&&n.xAxis[b],a,{type:"datetime",categories:null},q)});k.yAxis=c(f(k.yAxis||{}),function(a,
c){p=b(a.opposite,!0);return m({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&"category"!==a.type),title:{text:null}},n.yAxis,n.yAxis&&n.yAxis[c],a)});k.series=null;k=m({chart:{panning:!0,pinchType:"x"},navigator:{enabled:y},scrollbar:{enabled:b(n.scrollbar.enabled,!0)},rangeSelector:{enabled:b(n.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(n.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:t,spline:t,area:t,areaspline:t,arearange:t,areasplinerange:t,
column:r,columnrange:r,candlestick:r,ohlc:r}},k,{isStock:!0});k.series=u;return l?new C(e,k,h):new C(k,g)};k(q.prototype,"autoLabelAlign",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&"yAxis"===this.coll&&(c=c.top+","+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align="right"),b[c]=this,"right"):a.apply(this,[].slice.call(arguments,1))});A(q,"destroy",function(){var a=this.chart,b=this.options&&
this.options.top+","+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});k(q.prototype,"getPlotLinePath",function(f,e,g,h,k,m){var l=this,n=this.isLinked&&!this.series?this.linkedParent.series:this.series,u=l.chart,p=u.renderer,q=l.left,y=l.top,r,v,w,A,B=[],C=[],D,F;if("xAxis"!==l.coll&&"yAxis"!==l.coll)return f.apply(this,[].slice.call(arguments,1));C=function(a){var b="xAxis"===a?"yAxis":"xAxis";a=l.options[b];return t(a)?[u[b][a]]:d(a)?[u.get(a)]:c(n,function(a){return a[b]})}(l.coll);
z(l.isXAxis?u.yAxis:u.xAxis,function(a){if(E(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?"yAxis":"xAxis",b=E(a.options[b])?u[b][a.options[b]]:u[b][0];l===b&&C.push(a)}});D=C.length?[]:[l.isXAxis?u.yAxis[0]:u.xAxis[0]];z(C,function(b){-1!==x(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len===b.len})||D.push(b)});F=b(m,l.translate(e,null,null,h));t(F)&&(l.horiz?z(D,function(a){var b;v=a.pos;A=v+a.len;r=w=Math.round(F+l.transB);if(r<q||r>q+l.width)k?r=w=Math.min(Math.max(q,
r),q+l.width):b=!0;b||B.push("M",r,v,"L",w,A)}):z(D,function(a){var b;r=a.pos;w=r+a.len;v=A=Math.round(y+l.height-F);if(v<y||v>y+l.height)k?v=A=Math.min(Math.max(y,v),l.top+l.height):b=!0;b||B.push("M",r,v,"L",w,A)}));return 0<B.length?p.crispPolyLine(B,g||1):null});g.prototype.crispPolyLine=function(a,b){var c;for(c=0;c<a.length;c+=6)a[c+1]===a[c+4]&&(a[c+1]=a[c+4]=Math.round(a[c+1])-b%2/2),a[c+2]===a[c+5]&&(a[c+2]=a[c+5]=Math.round(a[c+2])+b%2/2);return a};r===w&&(w.prototype.crispPolyLine=g.prototype.crispPolyLine);
k(q.prototype,"hideCrosshair",function(a,b){a.call(this,b);this.crossLabel&&(this.crossLabel=this.crossLabel.hide())});A(q,"afterDrawCrosshair",function(a){var c,d;if(E(this.crosshair.label)&&this.crosshair.label.enabled&&this.cross){var f=this.chart,e=this.options.crosshair.label,g=this.horiz;c=this.opposite;d=this.left;var l=this.top,h=this.crossLabel,k=e.format,m="",p="inside"===this.options.tickPosition,q=!1!==this.crosshair.snap,r=0,t=a.e||this.cross&&this.cross.e,v=a.point;a=this.lin2log;var w,
x;this.isLog?(w=a(this.min),x=a(this.max)):(w=this.min,x=this.max);a=g?"center":c?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";h||(h=this.crossLabel=f.renderer.label(null,null,null,e.shape||"callout").addClass("highcharts-crosshair-label"+(this.series[0]&&" highcharts-color-"+this.series[0].colorIndex)).attr({align:e.align||a,padding:b(e.padding,8),r:b(e.borderRadius,3),zIndex:2}).add(this.labelGroup),h.attr({fill:e.backgroundColor||this.series[0]&&this.series[0].color||
"#666666",stroke:e.borderColor||"","stroke-width":e.borderWidth||0}).css(F({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},e.style)));g?(a=q?v.plotX+d:t.chartX,l+=c?0:this.height):(a=c?this.width+d:0,l=q?v.plotY+l:t.chartY);k||e.formatter||(this.isDatetimeAxis&&(m="%b %d, %Y"),k="{value"+(m?":"+m:"")+"}");m=q?v[this.isXAxis?"x":"y"]:this.toValue(g?t.chartX:t.chartY);h.attr({text:k?n(k,{value:m},f.time):e.formatter.call(this,m),x:a,y:l,visibility:m<w||m>x?"hidden":"visible"});
e=h.getBBox();if(g){if(p&&!c||!p&&c)l=h.y-e.height}else l=h.y-e.height/2;g?(c=d-e.x,d=d+this.width-e.x):(c="left"===this.labelAlign?d:0,d="right"===this.labelAlign?d+this.width:f.chartWidth);h.translateX<c&&(r=c-h.translateX);h.translateX+e.width>=d&&(r=-(h.translateX+e.width-d));h.attr({x:a+r,y:l,anchorX:g?a:this.opposite?0:f.chartWidth,anchorY:g?this.opposite?f.chartHeight:0:l+e.height/2})}});v.init=function(){H.apply(this,arguments);this.setCompare(this.options.compare)};v.setCompare=function(a){this.modifyValue=
"value"===a||"percent"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b="value"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};v.processData=function(){var a,b=-1,c,d,e=!0===this.options.compareStart?0:1,f,g;I.apply(this,arguments);if(this.xAxis&&this.processedYData)for(c=this.processedXData,d=this.processedYData,f=d.length,this.pointArrayMap&&(b=x("close",this.pointArrayMap),
-1===b&&(b=x(this.pointValKey||"y",this.pointArrayMap))),a=0;a<f-e;a++)if(g=d[a]&&-1<b?d[a][b]:d[a],t(g)&&c[a+e]>=this.xAxis.min&&0!==g){this.compareValue=g;break}};k(v,"getExtremes",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=D(b),this.dataMax=p(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(z(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=
function(c){c=c.replace("{point.change}",(0<this.change?"+":"")+a.numberFormat(this.change,b(this.series.tooltipOptions.changeDecimals,2)));return G.apply(this,[c])};k(h.prototype,"render",function(a){var b;this.chart.is3d&&this.chart.is3d()||this.chart.polar||!this.xAxis||this.xAxis.isRadial||(b=this.yAxis.len-(this.xAxis.axisLine?Math.floor(this.xAxis.axisLine.strokeWidth()/2):0),!this.clipBox&&this.animate?(this.clipBox=m(this.chart.clipBox),this.clipBox.width=this.xAxis.len,this.clipBox.height=
b):this.chart[this.sharedClipKey]?this.chart[this.sharedClipKey].attr({width:this.xAxis.len,height:b}):this.clipBox&&(this.clipBox.width=this.xAxis.len,this.clipBox.height=b));a.call(this)});k(C.prototype,"getSelectedPoints",function(a){var b=a.call(this);z(this.series,function(a){a.hasGroupedData&&(b=b.concat(B(a.points||[],function(a){return a.selected})))});return b});A(C,"update",function(a){a=a.options;"scrollbar"in a&&this.navigator&&(m(!0,this.options.scrollbar,a.scrollbar),this.navigator.update({},
!1),delete a.scrollbar)})})(I)});
//# sourceMappingURL=stock.js.map
