/* Highcharts JS v7.0.3 (2019-02-06) (c) 2009-2019 Torstein Honsi License: www.highcharts.com/license */ (function(n){"object"===typeof module&&module.exports?(n["default"]=n,module.exports=n):"function"===typeof define&&define.amd?define(function(){return n}):n("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(n){(function(r){function n(d,c,a,g,e,f){d=(f-c)*(a-d)-(g-c)*(e-d);return 0d)}function w(d,c,a,g,e,f,b,h){return n(d,c,e,f,b,h)!==n(a,g,e,f,b,h)&&n(d,c,a,g,e,f)!==n(d,c,a,g,b,h)}function B(d,c,a,g,e,f,b,h){return w(d,c,d+a,c,e,f,b,h)||w(d+a,c,d+a,c+g,e,f,b,h)||w(d,c+g,d+a, c+g,e,f,b,h)||w(d,c,d,c+g,e,f,b,h)}function C(d){var c=this,a=Math.max(r.animObject(c.renderer.globalAnimation).duration,250);c.labelSeries=[];c.labelSeriesMaxSum=0;r.clearTimeout(c.seriesLabelTimer);c.series.forEach(function(g){var e=g.options.label,f=g.labelBySeries,b=f&&f.closest;e.enabled&&g.visible&&(g.graph||g.area)&&!g.isSeriesBoosting&&(c.labelSeries.push(g),e.minFontSize&&e.maxFontSize&&(g.sum=g.yData.reduce(function(a,b){return(a||0)+(b||0)},0),c.labelSeriesMaxSum=Math.max(c.labelSeriesMaxSum, g.sum)),"load"===d.type&&(a=Math.max(a,r.animObject(g.options.animation).duration)),b&&(void 0!==b[0].plotX?f.animate({x:b[0].plotX+b[1],y:b[0].plotY+b[2]}):f.attr({opacity:0})))});c.seriesLabelTimer=r.syncTimeout(function(){c.series&&c.labelSeries&&c.drawSeriesLabels()},c.renderer.forExport?0:a)}var D=r.addEvent,E=r.extend,x=r.isNumber,y=r.pick,z=r.Series,F=r.SVGRenderer,A=r.Chart;r.setOptions({plotOptions:{series:{label:{enabled:!0,connectorAllowed:!1,connectorNeighbourDistance:24,minFontSize:null, maxFontSize:null,onArea:null,style:{fontWeight:"bold"},boxesToAvoid:[]}}}});F.prototype.symbols.connector=function(d,c,a,g,e){var f=e&&e.anchorX;e=e&&e.anchorY;var b,h,k=a/2;x(f)&&x(e)&&(b=["M",f,e],h=c-e,0>h&&(h=-g-h),hc+g?b.push("L",d+k,c+g):ed+a&&b.push("L",d+a,c+g/2));return b||[]};z.prototype.getPointsOnGraph=function(){function d(a){var b=Math.round(a.plotX/8)+","+Math.round(a.plotY/8);n[b]||(n[b]=1,e.push(a))}if(this.xAxis|| this.yAxis){var c=this.points,a,g,e=[],f,b,h,k;b=this.graph||this.area;h=b.element;var q=this.chart.inverted,v=this.xAxis;a=this.yAxis;var t=q?a.pos:v.pos,q=q?v.pos:a.pos,v=y(this.options.label.onArea,!!this.area),l=a.getThreshold(this.options.threshold),n={};if(this.getPointSpline&&h.getPointAtLength&&!v&&c.lengthl.right||ml.bottom||n=d-16&&l[m-1].chartX<=d+a.width+16){if(B(d,c,a.width,a.height,l[m-1].chartX,l[m-1].chartY,l[m].chartX,l[m].chartY))return!1;this===t&&!b&&g&&(b=B(d-16,c-16,a.width+32,a.height+32,l[m-1].chartX,l[m-1].chartY,l[m].chartX,l[m].chartY))}!q&&!b||this===t&&!k||(n=d+a.width/2-l[m].chartX,r=c+a.height/2-l[m].chartY,e=Math.min(e,n*n+r*r))}if(!k&&q&&this===t&&(g&&!b||ed&&a<=e-c.width&&b>=l&&b<=l+w-c.height}if(a.xAxis||a.yAxis){var e,f,b,h=[],k,q,n=a.options.label,t=(b=d.inverted)?a.yAxis.pos:a.xAxis.pos,l=b?a.xAxis.pos:a.yAxis.pos,r=d.inverted?a.yAxis.len:a.xAxis.len,w=d.inverted?a.xAxis.len: a.yAxis.len,p=a.interpolatedPoints,m=y(n.onArea,!!a.area),u=a.labelBySeries;e=n.minFontSize;f=n.maxFontSize;var x,z;m&&!b&&(b=[a.xAxis.toPixels(a.xData[0]),a.xAxis.toPixels(a.xData[a.xData.length-1])],x=Math.min.apply(Math,b),z=Math.max.apply(Math,b));if(a.visible&&!a.isSeriesBoosting&&p){u||(a.labelBySeries=u=d.renderer.label(a.name,0,-9999,"connector").addClass("highcharts-series-label highcharts-series-label-"+a.index+" "+(a.options.className||"")).css(E({color:m?d.renderer.getContrast(a.color): a.color},a.options.label.style)),e&&f&&u.css({fontSize:a.labelFontSize(e,f)}),u.attr({padding:0,opacity:d.renderer.forExport?1:0,stroke:a.color,"stroke-width":1,zIndex:3}).add().animate({opacity:1},{duration:200}));e=u.getBBox();e.width=Math.round(e.width);for(q=p.length-1;0=t;f-=16)for(b=l;b=h&&(p={x:n.x,y:n.y},n={}),a.labelBySeries.attr(E(n,{anchorX:k.connectorPoint&&k.connectorPoint.plotX+t,anchorY:k.connectorPoint&&k.connectorPoint.plotY+l})).animate(p),a.options.kdNow=!0,a.buildKDTree(),a=a.searchPoint({chartX:k.x,chartY:k.y},!0),u.closest=[a,k.x-a.plotX,k.y-a.plotY]}else u&&(a.labelBySeries=u.destroy())}else u&& (a.labelBySeries=u.destroy())}})};D(A,"load",C);D(A,"redraw",C)})(n)});