text: !function(t,i){"use strict";"object"==typeof module&&module.exports?module.exports=t:"function"==typeof define&&define.amd?define(["highcharts"],t):t(i.Highcharts)}(function(t){function i(t,i,e){this.init(t,i,e)}var e,a=t.arrayMin,n=t.arrayMax,o=t.each,r=t.extend,s=t.merge,l=t.map,h=t.pick,p=t.pInt,c=t.getOptions().plotOptions,d=t.seriesTypes,u=t.extendClass,g=t.splat,f=t.wrap,m=t.Axis,y=t.Tick,b=t.Point,x=t.Pointer,P=t.CenteredSeriesMixin,A=t.TrackerMixin,L=t.Series,w=Math,M=w.round,v=w.floor,k=w.max,C=t.Color,S=function(){};r(i.prototype,{init:function(t,i,e){var a,n=this,r=n.defaultOptions;n.chart=i,n.options=t=s(r,i.angular?{background:{}}:void 0,t),a=t.background,a&&o([].concat(g(a)).reverse(),function(t){var i=t.backgroundColor,a=e.userOptions;t=s(n.defaultBackgroundOptions,t),i&&(t.backgroundColor=i),t.color=t.backgroundColor,e.options.plotBands.unshift(t),a.plotBands=a.plotBands||[],a.plotBands!==e.options.plotBands&&a.plotBands.unshift(t)})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",borderWidth:1,borderColor:"silver",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#FFF"],[1,"#DDD"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"}});var T=m.prototype,Y=y.prototype,X={getOffset:S,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:S,setCategories:S,setTitle:S},R={isRadial:!0,defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},defaultRadialXOptions:{gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},defaultRadialYOptions:{gridLineInterpolation:"circle",labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(t){var i=this.options=s(this.defaultOptions,this.defaultRadialOptions,t);i.plotBands||(i.plotBands=[])},getOffset:function(){T.getOffset.call(this),this.chart.axisOffset[this.side]=0,this.center=this.pane.center=P.getCenter.call(this.pane)},getLinePath:function(t,i){var e=this.center;return i=h(i,e[2]/2-this.offset),this.chart.renderer.symbols.arc(this.left+e[0],this.top+e[1],i,i,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})},setAxisTranslation:function(){T.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=this.center[2]/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)},beforeSetTickPositions:function(){this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)},setAxisSize:function(){T.setAxisSize.call(this),this.isRadial&&(this.center=this.pane.center=t.CenteredSeriesMixin.getCenter.call(this.pane),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*h(this.sector,1)/2)},getPosition:function(t,i){return this.postTranslate(this.isCircular?this.translate(t):0,h(this.isCircular?i:this.translate(t),this.center[2]/2)-this.offset)},postTranslate:function(t,i){var e=this.chart,a=this.center;return t=this.startAngleRad+t,{x:e.plotLeft+a[0]+Math.cos(t)*i,y:e.plotTop+a[1]+Math.sin(t)*i}},getPlotBandPath:function(t,i,e){var a,n,o,r,s=this.center,c=this.startAngleRad,d=s[2]/2,u=[h(e.outerRadius,"100%"),e.innerRadius,h(e.thickness,10)],g=/%$/,f=this.isCircular;return"polygon"===this.options.gridLineInterpolation?r=this.getPlotLinePath(t).concat(this.getPlotLinePath(i,!0)):(t=Math.max(t,this.min),i=Math.min(i,this.max),f||(u[0]=this.translate(t),u[1]=this.translate(i)),u=l(u,function(t){return g.test(t)&&(t=p(t,10)*d/100),t}),"circle"!==e.shape&&f?(a=c+this.translate(t),n=c+this.translate(i)):(a=-Math.PI/2,n=1.5*Math.PI,o=!0),r=this.chart.renderer.symbols.arc(this.left+s[0],this.top+s[1],u[0],u[0],{start:Math.min(a,n),end:Math.max(a,n),innerR:h(u[1],u[0]-u[2]),open:o})),r},getPlotLinePath:function(t,i){var e,a,n,r,s=this,l=s.center,h=s.chart,p=s.getPosition(t);return s.isCircular?r=["M",l[0]+h.plotLeft,l[1]+h.plotTop,"L",p.x,p.y]:"circle"===s.options.gridLineInterpolation?(t=s.translate(t),t&&(r=s.getLinePath(0,t))):(o(h.xAxis,function(t){t.pane===s.pane&&(e=t)}),r=[],t=s.translate(t),n=e.tickPositions,e.autoConnect&&(n=n.concat([n[0]])),i&&(n=[].concat(n).reverse()),o(n,function(i,n){a=e.getPosition(i,t),r.push(n?"L":"M",a.x,a.y)})),r},getTitlePosition:function(){var t=this.center,i=this.chart,e=this.options.title;return{x:i.plotLeft+t[0]+(e.x||0),y:i.plotTop+t[1]-{high:.5,middle:.25,low:0}[e.align]*t[2]+(e.y||0)}}};f(T,"init",function(t,a,n){var o,l,p,c,d,u,f=this,m=a.angular,y=a.polar,b=n.isX,x=m&&b,P=a.options,A=n.pane||0;m?(r(this,x?X:R),o=!b,o&&(this.defaultRadialOptions=this.defaultRadialGaugeOptions)):y&&(r(this,R),o=b,this.defaultRadialOptions=b?this.defaultRadialXOptions:s(this.defaultYAxisOptions,this.defaultRadialYOptions)),t.call(this,a,n),x||!m&&!y||(c=this.options,a.panes||(a.panes=[]),this.pane=d=a.panes[A]=a.panes[A]||new i(g(P.pane)[A],a,f),u=d.options,a.inverted=!1,P.chart.zoomType=null,this.startAngleRad=l=(u.startAngle-90)*Math.PI/180,this.endAngleRad=p=(h(u.endAngle,u.startAngle+360)-90)*Math.PI/180,this.offset=c.offset||0,this.isCircular=o,o&&n.max===e&&p-l===2*Math.PI&&(this.autoConnect=!0))}),f(Y,"getPosition",function(t,i,e,a,n){var o=this.axis;return o.getPosition?o.getPosition(e):t.call(this,i,e,a,n)}),f(Y,"getLabelPosition",function(t,i,e,a,n,o,r,s,l){var p,c=this.axis,d=o.y,u=20,g=o.align,f=(c.translate(this.pos)+c.startAngleRad+Math.PI/2)/Math.PI*180%360;return c.isRadial?(p=c.getPosition(this.pos,c.center[2]/2+h(o.distance,-25)),"auto"===o.rotation?a.attr({rotation:f}):null===d&&(d=c.chart.renderer.fontMetrics(a.styles.fontSize).b-a.getBBox().height/2),null===g&&(c.isCircular?(this.label.getBBox().width>c.len*c.tickInterval/(c.max-c.min)&&(u=0),g=f>u&&180-u>f?"left":f>180+u&&360-u>f?"right":"center"):g="center",a.attr({align:g})),p.x+=o.x,p.y+=d):p=t.call(this,i,e,a,n,o,r,s,l),p}),f(Y,"getMarkPath",function(t,i,e,a,n,o,r){var s,l,h=this.axis;return h.isRadial?(s=h.getPosition(this.pos,h.center[2]/2+a),l=["M",i,e,"L",s.x,s.y]):l=t.call(this,i,e,a,n,o,r),l}),c.arearange=s(c.area,{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">\u25cf</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}}),d.arearange=u(d.area,{type:"arearange",pointArrayMap:["low","high"],dataLabelCollections:["dataLabel","dataLabelUpper"],toYData:function(t){return[t.low,t.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(t){var i=this.chart,e=this.xAxis.postTranslate(t.rectPlotX,this.yAxis.len-t.plotHigh);t.plotHighX=e.x-i.plotLeft,t.plotHigh=e.y-i.plotTop},getSegments:function(){var t=this;o(t.points,function(i){t.options.connectNulls||null!==i.low&&null!==i.high?null===i.low&&null!==i.high&&(i.y=i.high):i.y=null}),L.prototype.getSegments.call(this)},translate:function(){var t=this,i=t.yAxis;d.area.prototype.translate.apply(t),o(t.points,function(t){var e=t.low,a=t.high,n=t.plotY;null===a&&null===e?t.y=null:null===e?(t.plotLow=t.plotY=null,t.plotHigh=i.translate(a,0,1,0,1)):null===a?(t.plotLow=n,t.plotHigh=null):(t.plotLow=n,t.plotHigh=i.translate(a,0,1,0,1))}),this.chart.polar&&o(this.points,function(i){t.highToXY(i)})},getSegmentPath:function(i){var e,a,n,o,r,s=[],l=i.length,h=L.prototype.getSegmentPath,p=this.options,c=p.step;for(e=t.grep(i,function(t){return null!==t.plotLow});l--;)a=i[l],null!==a.plotHigh&&s.push({plotX:a.plotHighX||a.plotX,plotY:a.plotHigh});return o=h.call(this,e),c&&(c===!0&&(c="left"),p.step={left:"right",center:"center",right:"left"}[c]),r=h.call(this,s),p.step=c,n=[].concat(o,r),this.chart.polar||(r[0]="L"),this.areaPath=this.areaPath.concat(o,r),n},drawDataLabels:function(){var t,i,e,a=this.data,n=a.length,o=[],r=L.prototype,s=this.options.dataLabels,l=s.align,h=s.verticalAlign,p=s.inside,c=this.chart.inverted;if(s.enabled||this._hasPointLabels){for(t=n;t--;)i=a[t],i&&(e=p?i.plotHigh<i.plotLow:i.plotHigh>i.plotLow,i.y=i.high,i._plotY=i.plotY,i.plotY=i.plotHigh,o[t]=i.dataLabel,i.dataLabel=i.dataLabelUpper,i.below=e,c?l||(s.align=e?"right":"left"):h||(s.verticalAlign=e?"top":"bottom"),s.x=s.xHigh,s.y=s.yHigh);for(r.drawDataLabels&&r.drawDataLabels.apply(this,arguments),t=n;t--;)i=a[t],i&&(e=p?i.plotHigh<i.plotLow:i.plotHigh>i.plotLow,i.dataLabelUpper=i.dataLabel,i.dataLabel=o[t],i.y=i.low,i.plotY=i._plotY,i.below=!e,c?l||(s.align=e?"left":"right"):h||(s.verticalAlign=e?"bottom":"top"),s.x=s.xLow,s.y=s.yLow);r.drawDataLabels&&r.drawDataLabels.apply(this,arguments)}s.align=l,s.verticalAlign=h},alignDataLabel:function(){d.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:S,getSymbol:S,drawPoints:S}),c.areasplinerange=s(c.arearange),d.areasplinerange=u(d.arearange,{type:"areasplinerange",getPointSpline:d.spline.prototype.getPointSpline}),function(){var t=d.column.prototype;c.columnrange=s(c.column,c.arearange,{lineWidth:1,pointRange:null}),d.columnrange=u(d.arearange,{type:"columnrange",translate:function(){var i,e=this,a=e.yAxis,n=e.xAxis,r=e.chart;t.translate.apply(e),o(e.points,function(t){var o,s,l,h=t.shapeArgs,p=e.options.minPointLength;t.plotHigh=i=a.translate(t.high,0,1,0,1),t.plotLow=t.plotY,l=i,s=t.plotY-i,Math.abs(s)<p?(o=p-s,s+=o,l-=o/2):0>s&&(s*=-1,l-=s),h.height=s,h.y=l,t.tooltipPos=r.inverted?[a.len+a.pos-r.plotLeft-l-s/2,n.len+n.pos-r.plotTop-h.x-h.width/2,s]:[n.left-r.plotLeft+h.x+h.width/2,a.pos-r.plotTop+l+s/2,s]})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:S,crispCol:t.crispCol,pointAttrToOptions:t.pointAttrToOptions,drawPoints:t.drawPoints,drawTracker:t.drawTracker,animate:t.animate,getColumnMetrics:t.getColumnMetrics})}(),c.gauge=s(c.line,{dataLabels:{enabled:!0,defer:!1,y:15,borderWidth:1,borderColor:"silver",borderRadius:3,crop:!1,verticalAlign:"top",zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1});var z=u(b,{setState:function(t){this.state=t}}),D={type:"gauge",pointClass:z,angular:!0,drawGraph:S,fixedBox:!0,forceDL:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var t=this,i=t.yAxis,e=t.options,a=i.center;t.generatePoints(),o(t.points,function(t){var n=s(e.dial,t.dial),o=p(h(n.radius,80))*a[2]/200,r=p(h(n.baseLength,70))*o/100,l=p(h(n.rearLength,10))*o/100,c=n.baseWidth||3,d=n.topWidth||1,u=e.overshoot,g=i.startAngleRad+i.translate(t.y,null,null,null,!0);u&&"number"==typeof u?(u=u/180*Math.PI,g=Math.max(i.startAngleRad-u,Math.min(i.endAngleRad+u,g))):e.wrap===!1&&(g=Math.max(i.startAngleRad,Math.min(i.endAngleRad,g))),g=180*g/Math.PI,t.shapeType="path",t.shapeArgs={d:n.path||["M",-l,-c/2,"L",r,-c/2,o,-d/2,o,d/2,r,c/2,-l,c/2,"z"],translateX:a[0],translateY:a[1],rotation:g},t.plotX=a[0],t.plotY=a[1]})},drawPoints:function(){var t=this,i=t.yAxis.center,e=t.pivot,a=t.options,n=a.pivot,r=t.chart.renderer;o(t.points,function(i){var e=i.graphic,n=i.shapeArgs,o=n.d,l=s(a.dial,i.dial);e?(e.animate(n),n.d=o):i.graphic=r[i.shapeType](n).attr({stroke:l.borderColor||"none","stroke-width":l.borderWidth||0,fill:l.backgroundColor||"black",rotation:n.rotation,zIndex:1}).add(t.group)}),e?e.animate({translateX:i[0],translateY:i[1]}):t.pivot=r.circle(0,0,h(n.radius,5)).attr({"stroke-width":n.borderWidth||0,stroke:n.borderColor||"silver",fill:n.backgroundColor||"black",zIndex:2}).translate(i[0],i[1]).add(t.group)},animate:function(t){var i=this;t||(o(i.points,function(t){var e=t.graphic;e&&(e.attr({rotation:180*i.yAxis.startAngleRad/Math.PI}),e.animate({rotation:t.shapeArgs.rotation},i.options.animation))}),i.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup),L.prototype.render.call(this),this.group.clip(this.chart.clipRect)},setData:function(t,i){L.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),h(i,!0)&&this.chart.redraw()},drawTracker:A&&A.drawTrackerPoint};d.gauge=u(d.line,D),c.boxplot=s(c.column,{fillColor:"#FFFFFF",lineWidth:1,medianWidth:2,states:{hover:{brightness:-.3}},threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",whiskerWidth:2}),d.boxplot=u(d.column,{type:"boxplot",pointArrayMap:["low","q1","median","q3","high"],toYData:function(t){return[t.low,t.q1,t.median,t.q3,t.high]},pointValKey:"high",pointAttrToOptions:{fill:"fillColor",stroke:"color","stroke-width":"lineWidth"},drawDataLabels:S,translate:function(){var t=this,i=t.yAxis,e=t.pointArrayMap;d.column.prototype.translate.apply(t),o(t.points,function(t){o(e,function(e){null!==t[e]&&(t[e+"Plot"]=i.translate(t[e],0,1,0,1))})})},drawPoints:function(){var t,i,a,n,r,s,l,p,c,d,u,g,f,m,y,b,x,P,A,L,w,k,C,S=this,T=S.points,Y=S.options,X=S.chart,R=X.renderer,z=S.doQuartiles!==!1,D=S.options.whiskerLength;o(T,function(o){c=o.graphic,w=o.shapeArgs,u={},m={},b={},k=o.color||S.color,o.plotY!==e&&(t=o.pointAttr[o.selected?"selected":""],x=w.width,P=v(w.x),A=P+x,L=M(x/2),i=v(z?o.q1Plot:o.lowPlot),a=v(z?o.q3Plot:o.lowPlot),n=v(o.highPlot),r=v(o.lowPlot),u.stroke=o.stemColor||Y.stemColor||k,u["stroke-width"]=h(o.stemWidth,Y.stemWidth,Y.lineWidth),u.dashstyle=o.stemDashStyle||Y.stemDashStyle,m.stroke=o.whiskerColor||Y.whiskerColor||k,m["stroke-width"]=h(o.whiskerWidth,Y.whiskerWidth,Y.lineWidth),b.stroke=o.medianColor||Y.medianColor||k,b["stroke-width"]=h(o.medianWidth,Y.medianWidth,Y.lineWidth),l=u["stroke-width"]%2/2,p=P+L+l,d=["M",p,a,"L",p,n,"M",p,i,"L",p,r],z&&(l=t["stroke-width"]%2/2,p=v(p)+l,i=v(i)+l,a=v(a)+l,P+=l,A+=l,g=["M",P,a,"L",P,i,"L",A,i,"L",A,a,"L",P,a,"z"]),D&&(l=m["stroke-width"]%2/2,n+=l,r+=l,C=/%$/.test(D)?L*parseFloat(D)/100:D/2,f=["M",p-C,n,"L",p+C,n,"M",p-C,r,"L",p+C,r]),l=b["stroke-width"]%2/2,s=M(o.medianPlot)+l,y=["M",P,s,"L",A,s],c?(o.stem.animate({d:d}),D&&o.whiskers.animate({d:f}),z&&o.box.animate({d:g}),o.medianShape.animate({d:y})):(o.graphic=c=R.g().add(S.group),o.stem=R.path(d).attr(u).add(c),D&&(o.whiskers=R.path(f).attr(m).add(c)),z&&(o.box=R.path(g).attr(t).add(c)),o.medianShape=R.path(y).attr(b).add(c)))})},setStackedPoints:S}),c.errorbar=s(c.boxplot,{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}),d.errorbar=u(d.boxplot,{type:"errorbar",pointArrayMap:["low","high"],toYData:function(t){return[t.low,t.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:d.arearange?d.arearange.prototype.drawDataLabels:S,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||d.column.prototype.getColumnMetrics.call(this)}}),c.waterfall=s(c.column,{lineWidth:1,lineColor:"#333",dashStyle:"dot",borderColor:"#333",dataLabels:{inside:!0},states:{hover:{lineWidthPlus:0}}}),d.waterfall=u(d.column,{type:"waterfall",upColorProp:"fill",pointValKey:"y",translate:function(){var t,i,e,a,n,o,r,s,l,p,c,u,g=this,f=g.options,m=g.yAxis,y=h(f.minPointLength,5),b=f.threshold,x=f.stacking;for(d.column.prototype.translate.apply(this),g.minPointLengthOffset=0,l=p=b,e=g.points,i=0,t=e.length;t>i;i++)a=e[i],s=this.processedYData[i],n=a.shapeArgs,o=x&&m.stacks[(g.negStacks&&b>s?"-":"")+g.stackKey],c=o?o[a.x].points[g.index+","+i]:[0,s],a.isSum?a.y=s:a.isIntermediateSum&&(a.y=s-p),r=k(l,l+a.y)+c[0],n.y=m.translate(r,0,1),a.isSum?(n.y=m.translate(c[1],0,1),n.height=Math.min(m.translate(c[0],0,1),m.len)-n.y+g.minPointLengthOffset):a.isIntermediateSum?(n.y=m.translate(c[1],0,1),n.height=Math.min(m.translate(p,0,1),m.len)-n.y+g.minPointLengthOffset,p=c[1]):(0!==l&&(n.height=s>0?m.translate(l,0,1)-n.y:m.translate(l,0,1)-m.translate(l-s,0,1)),l+=s),n.height<0&&(n.y+=n.height,n.height*=-1),a.plotY=n.y=M(n.y)-g.borderWidth%2/2,n.height=k(M(n.height),.001),a.yBottom=n.y+n.height,n.height<=y&&(n.height=y,g.minPointLengthOffset+=y),n.y-=g.minPointLengthOffset,u=a.plotY+(a.negative?n.height:0)-g.minPointLengthOffset,g.chart.inverted?a.tooltipPos[0]=m.len-u:a.tooltipPos[1]=u},processData:function(t){var i,e,a,n,o,r,s,l=this,h=l.options,p=l.yData,c=l.options.data,d=p.length,u=h.threshold||0;for(a=e=n=o=u,s=0;d>s;s++)r=p[s],i=c&&c[s]?c[s]:{},"sum"===r||i.isSum?p[s]=a:"intermediateSum"===r||i.isIntermediateSum?p[s]=e:(a+=r,e+=r),n=Math.min(a,n),o=Math.max(a,o);L.prototype.processData.call(this,t),l.dataMin=n,l.dataMax=o},toYData:function(t){return t.isSum?0===t.x?null:"sum":t.isIntermediateSum?0===t.x?null:"intermediateSum":t.y},getAttribs:function(){d.column.prototype.getAttribs.apply(this,arguments);var i=this,e=i.options,a=e.states,n=e.upColor||i.color,r=t.Color(n).brighten(.1).get(),l=s(i.pointAttr),h=i.upColorProp;l[""][h]=n,l.hover[h]=a.hover.upColor||r,l.select[h]=a.select.upColor||n,o(i.points,function(t){t.options.color||(t.y>0?(t.pointAttr=l,t.color=n):t.pointAttr=i.pointAttr)})},getGraphPath:function(){var t,i,e,a,n=this.data,o=n.length,r=this.options.lineWidth+this.borderWidth,s=M(r)%2/2,l=[],h="M",p="L";for(e=1;o>e;e++)i=n[e].shapeArgs,t=n[e-1].shapeArgs,a=[h,t.x+t.width,t.y+s,p,i.x,t.y+s],n[e-1].y<0&&(a[2]+=t.height,a[5]+=t.height),l=l.concat(a);return l},getExtremes:S,drawGraph:L.prototype.drawGraph}),c.polygon=s(c.scatter,{marker:{enabled:!1}}),d.polygon=u(d.scatter,{type:"polygon",fillGraph:!0,getSegmentPath:function(t){return L.prototype.getSegmentPath.call(this,t).concat("z")},drawGraph:L.prototype.drawGraph,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle}),c.bubble=s(c.scatter,{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{lineColor:null,lineWidth:1},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});var O=u(b,{haloPath:function(){return b.prototype.haloPath.call(this,this.shapeArgs.r+this.series.options.states.hover.halo.size)},ttBelow:!1});return d.bubble=u(d.scatter,{type:"bubble",pointClass:O,pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],bubblePadding:!0,zoneAxis:"z",pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor"},applyOpacity:function(t){var i=this.options.marker,e=h(i.fillOpacity,.5);return t=t||i.fillColor||this.color,1!==e&&(t=C(t).setOpacity(e).get("rgba")),t},convertAttribs:function(){var t=L.prototype.convertAttribs.apply(this,arguments);return t.fill=this.applyOpacity(t.fill),t},getRadii:function(t,i,e,a){var n,o,r,s,l,h=this.zData,p=[],c=this.options,d="width"!==c.sizeBy,u=c.zThreshold,g=i-t;for(o=0,n=h.length;n>o;o++)s=h[o],c.sizeByAbsoluteValue&&null!==s&&(s=Math.abs(s-u),i=Math.max(i-u,Math.abs(t-u)),t=0),null===s?l=null:t>s?l=e/2-1:(r=g>0?(s-t)/g:.5,d&&r>=0&&(r=Math.sqrt(r)),l=w.ceil(e+r*(a-e))/2),p.push(l);this.radii=p},animate:function(t){var i=this.options.animation;t||(o(this.points,function(t){var e=t.graphic,a=t.shapeArgs;e&&a&&(e.attr("r",1),e.animate({r:a.r},i))}),this.animate=null)},translate:function(){var t,i,a,n=this.data,o=this.radii;for(d.scatter.prototype.translate.call(this),t=n.length;t--;)i=n[t],a=o?o[t]:0,"number"==typeof a&&a>=this.minPxSize/2?(i.shapeType="circle",i.shapeArgs={x:i.plotX,y:i.plotY,r:a},i.dlBox={x:i.plotX-a,y:i.plotY-a,width:2*a,height:2*a}):i.shapeArgs=i.plotY=i.dlBox=e},drawLegendSymbol:function(t,i){var e=this.chart.renderer,a=p(e.fontMetrics(t.itemStyle.fontSize,i.legendItem).f)/2;i.legendSymbol=e.circle(a,t.baseline-a+1,a).attr({zIndex:3}).add(i.legendGroup),i.legendSymbol.isMarker=!0},drawPoints:d.column.prototype.drawPoints,alignDataLabel:d.column.prototype.alignDataLabel,buildKDTree:S,applyZones:S}),m.prototype.beforePadding=function(){var t=this,i=this.len,r=this.chart,s=0,l=i,c=this.isXAxis,d=c?"xData":"yData",u=this.min,g={},f=w.min(r.plotWidth,r.plotHeight),m=Number.MAX_VALUE,y=-Number.MAX_VALUE,b=this.max-u,x=i/b,P=[];o(this.series,function(i){var e,s=i.options;!i.bubblePadding||!i.visible&&r.options.chart.ignoreHiddenSeries||(t.allowZoomOutside=!0,P.push(i),c&&(o(["minSize","maxSize"],function(t){var i=s[t],e=/%$/.test(i);i=p(i),g[t]=e?f*i/100:i}),i.minPxSize=g.minSize,i.maxPxSize=g.maxSize,e=i.zData,e.length&&(m=h(s.zMin,w.min(m,w.max(a(e),s.displayNegative===!1?s.zThreshold:-Number.MAX_VALUE))),y=h(s.zMax,w.max(y,n(e))))))}),o(P,function(t){var i,e=t[d],a=e.length;if(c&&t.getRadii(m,y,t.minPxSize,t.maxPxSize),b>0)for(;a--;)"number"==typeof e[a]&&(i=t.radii[a],s=Math.min((e[a]-u)*x-i,s),l=Math.max((e[a]-u)*x+i,l))}),P.length&&b>0&&!this.isLog&&(l-=i,x*=(i+s-l)/i,o([["min","userMin",s],["max","userMax",l]],function(i){h(t.options[i[0]],t[i[1]])===e&&(t[i[0]]+=i[2]/x)}))},function(){function t(t,i,e){t.call(this,i,e),this.chart.polar&&(this.closeSegment=function(t){var i=this.xAxis.center;t.push("L",i[0],i[1])},this.closedStacks=!0)}function i(t,i){var e,a=this.chart,n=this.options.animation,o=this.group,r=this.markerGroup,s=this.xAxis.center,l=a.plotLeft,h=a.plotTop;a.polar?a.renderer.isSVG&&(n===!0&&(n={}),i?(e={translateX:s[0]+l,translateY:s[1]+h,scaleX:.001,scaleY:.001},o.attr(e),r&&r.attr(e)):(e={translateX:l,translateY:h,scaleX:1,scaleY:1},o.animate(e,n),r&&r.animate(e,n),this.animate=null)):t.call(this,i)}var e,a=L.prototype,n=x.prototype;a.searchPointByAngle=function(t){var i=this,e=i.chart,a=i.xAxis,n=a.pane.center,o=t.chartX-n[0]-e.plotLeft,r=t.chartY-n[1]-e.plotTop;return this.searchKDTree({clientX:180+Math.atan2(o,r)*(-180/Math.PI)})},f(a,"buildKDTree",function(t){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.kdDimensions=2),t.apply(this)}),a.toXY=function(t){var i,e,a=this.chart,n=t.plotX,o=t.plotY;t.rectPlotX=n,t.rectPlotY=o,i=this.xAxis.postTranslate(t.plotX,this.yAxis.len-o),t.plotX=t.polarPlotX=i.x-a.plotLeft,t.plotY=t.polarPlotY=i.y-a.plotTop,this.kdByAngle?(e=(n/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>e&&(e+=360),t.clientX=e):t.clientX=t.plotX},d.area&&f(d.area.prototype,"init",t),d.areaspline&&f(d.areaspline.prototype,"init",t),d.spline&&f(d.spline.prototype,"getPointSpline",function(t,i,e,a){var n,o,r,s,l,h,p,c,d,u,g,f,m,y,b,x,P,A,L=1.5,w=L+1;return this.chart.polar?(o=e.plotX,r=e.plotY,s=i[a-1],l=i[a+1],this.connectEnds&&(s||(s=i[i.length-2]),l||(l=i[1])),s&&l&&(h=s.plotX,p=s.plotY,c=l.plotX,d=l.plotY,u=(L*o+h)/w,g=(L*r+p)/w,f=(L*o+c)/w,m=(L*r+d)/w,y=Math.sqrt(Math.pow(u-o,2)+Math.pow(g-r,2)),b=Math.sqrt(Math.pow(f-o,2)+Math.pow(m-r,2)),x=Math.atan2(g-r,u-o),P=Math.atan2(m-r,f-o),A=Math.PI/2+(x+P)/2,Math.abs(x-A)>Math.PI/2&&(A-=Math.PI),u=o+Math.cos(A)*y,g=r+Math.sin(A)*y,f=o+Math.cos(Math.PI+A)*b,m=r+Math.sin(Math.PI+A)*b,e.rightContX=f,e.rightContY=m),a?(n=["C",s.rightContX||s.plotX,s.rightContY||s.plotY,u||o,g||r,o,r],s.rightContX=s.rightContY=null):n=["M",o,r]):n=t.call(this,i,e,a),n}),f(a,"translate",function(t){var i,e,a=this.chart;if(t.call(this),a.polar&&(this.kdByAngle=a.tooltip&&a.tooltip.shared,!this.preventPostTranslate))for(i=this.points,e=i.length;e--;)this.toXY(i[e])}),f(a,"getSegmentPath",function(t,i){var e=this.points;return this.chart.polar&&this.options.connectEnds!==!1&&i[i.length-1]===e[e.length-1]&&null!==e[0].y&&(this.connectEnds=!0,i=[].concat(i,[e[0]])),t.call(this,i)}),f(a,"animate",i),d.column&&(e=d.column.prototype,f(e,"animate",i),f(e,"translate",function(t){var i,e,a,n,o=this.xAxis,r=this.yAxis.len,s=o.center,l=o.startAngleRad,p=this.chart.renderer;if(this.preventPostTranslate=!0,t.call(this),o.isRadial)for(e=this.points,n=e.length;n--;)a=e[n],i=a.barX+l,a.shapeType="path",a.shapeArgs={d:p.symbols.arc(s[0],s[1],r-a.plotY,null,{start:i,end:i+a.pointWidth,innerR:r-h(a.yBottom,r)})},this.toXY(a),a.tooltipPos=[a.plotX,a.plotY],a.ttBelow=a.plotY>s[1]}),f(e,"alignDataLabel",function(t,i,e,n,o,r){if(this.chart.polar){var s,l,h=i.rectPlotX/Math.PI*180;null===n.align&&(s=h>20&&160>h?"left":h>200&&340>h?"right":"center",n.align=s),null===n.verticalAlign&&(l=45>h||h>315?"bottom":h>135&&225>h?"top":"middle",n.verticalAlign=l),a.alignDataLabel.call(this,i,e,n,o,r)}else t.call(this,i,e,n,o,r)})),f(n,"getCoordinates",function(t,i){var e=this.chart,a={xAxis:[],yAxis:[]};return e.polar?o(e.axes,function(t){var n=t.isXAxis,o=t.center,r=i.chartX-o[0]-e.plotLeft,s=i.chartY-o[1]-e.plotTop;a[n?"xAxis":"yAxis"].push({axis:t,value:t.translate(n?Math.PI-Math.atan2(r,s):Math.sqrt(Math.pow(r,2)+Math.pow(s,2)),!0)})}):a=t.call(this,i),a})}(),t},this);