/*
 Highcharts JS v6.1.1 (2018-06-27)

 (c) 2009-2017 Torstein Honsi

 License: www.highcharts.com/license
*/
(function(l){"object"===typeof module&&module.exports?module.exports=l:l(Highcharts)})(function(l){(function(e){function l(){return Array.prototype.slice.call(arguments,1)}function w(a){a.apply(this);this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,r(this.pointArrayMap,["y"]))}var t=e.addEvent,r=e.pick,u=e.wrap,p=e.each,y=e.extend,z=e.isArray,x=e.fireEvent,q=e.Axis,A=e.Series;y(q.prototype,{isInBreak:function(a,c){var d=a.repeat||Infinity,b=a.from,f=a.to-a.from;c=c>=b?(c-b)%d:d-(b-c)%
d;return a.inclusive?c<=f:c<f&&0!==c},isInAnyBreak:function(a,c){var d=this.options.breaks,b=d&&d.length,f,k,h;if(b){for(;b--;)this.isInBreak(d[b],a)&&(f=!0,k||(k=r(d[b].showPoints,this.isXAxis?!1:!0)));h=f&&c?f&&!k:f}return h}});t(q,"afterSetTickPositions",function(){if(this.options.breaks){var a=this.tickPositions,c=this.tickPositions.info,d=[],b;for(b=0;b<a.length;b++)this.isInAnyBreak(a[b])||d.push(a[b]);this.tickPositions=d;this.tickPositions.info=c}});t(q,"afterSetOptions",function(){this.options.breaks&&
this.options.breaks.length&&(this.options.ordinal=!1)});t(q,"afterInit",function(){var a=this,c;c=this.options.breaks;a.isBroken=z(c)&&!!c.length;a.isBroken&&(a.val2lin=function(d){var b=d,f,c;for(c=0;c<a.breakArray.length;c++)if(f=a.breakArray[c],f.to<=d)b-=f.len;else if(f.from>=d)break;else if(a.isInBreak(f,d)){b-=d-f.from;break}return b},a.lin2val=function(d){var b,c;for(c=0;c<a.breakArray.length&&!(b=a.breakArray[c],b.from>=d);c++)b.to<d?d+=b.len:a.isInBreak(b,d)&&(d+=b.len);return d},a.setExtremes=
function(a,b,c,k,h){for(;this.isInAnyBreak(a);)a-=this.closestPointRange;for(;this.isInAnyBreak(b);)b-=this.closestPointRange;q.prototype.setExtremes.call(this,a,b,c,k,h)},a.setAxisTranslation=function(d){q.prototype.setAxisTranslation.call(this,d);d=a.options.breaks;var b=[],c=[],k=0,h,g,e=a.userMin||a.min,n=a.userMax||a.max,v=r(a.pointRangePadding,0),m,l;p(d,function(b){g=b.repeat||Infinity;a.isInBreak(b,e)&&(e+=b.to%g-e%g);a.isInBreak(b,n)&&(n-=n%g-b.from%g)});p(d,function(a){m=a.from;for(g=a.repeat||
Infinity;m-g>e;)m-=g;for(;m<e;)m+=g;for(l=m;l<n;l+=g)b.push({value:l,move:"in"}),b.push({value:l+(a.to-a.from),move:"out",size:a.breakSize})});b.sort(function(a,b){return a.value===b.value?("in"===a.move?0:1)-("in"===b.move?0:1):a.value-b.value});h=0;m=e;p(b,function(a){h+="in"===a.move?1:-1;1===h&&"in"===a.move&&(m=a.value);0===h&&(c.push({from:m,to:a.value,len:a.value-m-(a.size||0)}),k+=a.value-m-(a.size||0))});a.breakArray=c;a.unitLength=n-e-k+v;x(a,"afterBreaks");a.options.staticScale?a.transA=
a.options.staticScale:a.unitLength&&(a.transA*=(n-a.min+v)/a.unitLength);v&&(a.minPixelPadding=a.transA*a.minPointOffset);a.min=e;a.max=n})});u(A.prototype,"generatePoints",function(a){a.apply(this,l(arguments));var c=this.xAxis,d=this.yAxis,b=this.points,f,e=b.length,h=this.options.connectNulls,g;if(c&&d&&(c.options.breaks||d.options.breaks))for(;e--;)f=b[e],g=null===f.y&&!1===h,g||!c.isInAnyBreak(f.x,!0)&&!d.isInAnyBreak(f.y,!0)||(b.splice(e,1),this.data[e]&&this.data[e].destroyElements())});e.Series.prototype.drawBreaks=
function(a,c){var d=this,b=d.points,e,k,h,g;a&&p(c,function(c){e=a.breakArray||[];k=a.isXAxis?a.min:r(d.options.threshold,a.min);p(b,function(b){g=r(b["stack"+c.toUpperCase()],b[c]);p(e,function(c){h=!1;if(k<c.from&&g>c.to||k>c.from&&g<c.from)h="pointBreak";else if(k<c.from&&g>c.from&&g<c.to||k>c.from&&g>c.to&&g<c.from)h="pointInBreak";h&&x(a,h,{point:b,brk:c})})})})};e.Series.prototype.gappedPath=function(){var a=this.currentDataGrouping,c=a&&a.totalRange,a=this.options.gapSize,d=this.points.slice(),
b=d.length-1,f=this.yAxis;if(a&&0<b)for("value"!==this.options.gapUnit&&(a*=this.closestPointRange),c&&c>a&&(a=c);b--;)d[b+1].x-d[b].x>a&&(c=(d[b].x+d[b+1].x)/2,d.splice(b+1,0,{isNull:!0,x:c}),this.options.stacking&&(c=f.stacks[this.stackKey][c]=new e.StackItem(f,f.options.stackLabels,!1,c,this.stack),c.total=0));return this.getGraphPath(d)};u(e.seriesTypes.column.prototype,"drawPoints",w);u(e.Series.prototype,"drawPoints",w)})(l)});
