PageSourceSearch

https://www.statista.com/dist/1921.8964c0.js

js statista.com collected 2026-09-24 05:16:32 UTC 301,408 bytes, 2 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[1921],{13816:function(t,e,i){var s,n,o;o=function(t){function e(t,e,i,s){t.hasOwnProperty(e)||(t[e]=s.apply(null,i))}e(t=t?t._modules:{},"annotations/eventEmitterMixin.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.objectEach,s=e.pick,n=t.fireEvent;return{addEvents:function(){var e=this;i(e.options.events,(function(i,s){var n=function(t){"click"===s&&e.cancelClick||i.call(e,e.chart.pointer.normalize(t),e.target)};-1===t.inArray(s,e.nonDOMEvents||[])?e.graphic.on(s,n):t.addEvent(e,s,n)})),e.options.draggable&&(t.addEvent(e.graphic.element,"mousedown",(function(t){e.onMouseDown(t)})),t.addEvent(e,"drag",e.onDrag),e.graphic.renderer.styledMode||e.graphic.css({cursor:{x:"ew-resize",y:"ns-resize",xy:"move"}[e.options.draggable]})),e.isUpdating||n(e,"add")},removeDocEvents:function(){this.removeDrag&&(this.removeDrag=this.removeDrag()),this.removeMouseUp&&(this.removeMouseUp=this.removeMouseUp())},onMouseDown:function(e){var i=this,o=i.chart.pointer;if(e.preventDefault&&e.preventDefault(),2!==e.button){var r=(e=o.normalize(e)).chartX,a=e.chartY;i.cancelClick=!1,i.chart.hasDraggedAnnotation=!0,i.removeDrag=t.addEvent(t.doc,"mousemove",(function(t){i.hasDragged=!0,(t=o.normalize(t)).prevChartX=r,t.prevChartY=a,n(i,"drag",t),r=t.chartX,a=t.chartY})),i.removeMouseUp=t.addEvent(t.doc,"mouseup",(function(t){i.cancelClick=i.hasDragged,i.hasDragged=!1,i.chart.hasDraggedAnnotation=!1,n(s(i.target,i),"afterUpdate"),i.onMouseUp(t)}))}},onMouseUp:function(){var t=this.chart,e=this.target||this,i=t.options.annotations;t=t.annotations.indexOf(e),this.removeDocEvents(),i[t]=e.options},onDrag:function(t){if(this.chart.isInsidePlot(t.chartX-this.chart.plotLeft,t.chartY-this.chart.plotTop)){var e=this.mouseMoveToTranslation(t);"x"===this.options.draggable&&(e.y=0),"y"===this.options.draggable&&(e.x=0),this.points.length?this.translate(e.x,e.y):(this.shapes.forEach((function(t){t.translate(e.x,e.y)})),this.labels.forEach((function(t){t.translate(e.x,e.y)}))),this.redraw(!1)}},mouseMoveToRadians:function(t,e,i){var s=t.prevChartY-i,n=t.prevChartX-e;return i=t.chartY-i,t=t.chartX-e,this.chart.inverted&&(e=n,n=s,s=e,e=t,t=i,i=e),Math.atan2(i,t)-Math.atan2(s,n)},mouseMoveToTranslation:function(t){var e=t.chartX-t.prevChartX;if(t=t.chartY-t.prevChartY,this.chart.inverted){var i=t;t=e,e=i}return{x:e,y:t}},mouseMoveToScale:function(t,e,i){return e=(t.chartX-e||1)/(t.prevChartX-e||1),t=(t.chartY-i||1)/(t.prevChartY-i||1),this.chart.inverted&&(i=t,t=e,e=i),{x:e,y:t}},destroy:function(){this.removeDocEvents(),t.removeEvent(this),this.hcEvents=null}}})),e(t,"annotations/ControlPoint.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["annotations/eventEmitterMixin.js"]],(function(t,e,i){function s(t,e,i,s){this.chart=t,this.target=e,this.options=i,this.index=o(i.index,s)}var n=e.extend,o=e.pick;return n(s.prototype,i),s.prototype.nonDOMEvents=["drag"],s.prototype.setVisibility=function(t){this.graphic.attr("visibility",t?"visible":"hidden"),this.options.visible=t},s.prototype.render=function(){var t=this.chart,e=this.options;this.graphic=t.renderer.symbol(e.symbol,0,0,e.width,e.height).add(t.controlPointsGroup).css(e.style),this.setVisibility(e.visible),this.addEvents()},s.prototype.redraw=function(t){this.graphic[t?"animate":"attr"](this.options.positioner.call(this,this.target))},s.prototype.destroy=function(){i.destroy.call(this),this.graphic&&(this.graphic=this.graphic.destroy()),this.options=this.target=this.chart=null},s.prototype.update=function(e){var i=this.chart,s=this.target,n=this.index;e=t.merge(!0,this.options,e),this.destroy(),this.constructor(i,s,e,n),this.render(i.controlPointsGroup),this.redraw()},s})),e(t,"annotations/MockPoint.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){function i(e,i,s){this.series={visible:!0,chart:e,getPlotBox:t.Series.prototype.getPlotBox},this.target=i||null,this.options=s,this.applyOptions(this.getOptions())}var s=e.defined;return e=e.extend,i.fromPoint=function(t){return new i(t.series.chart,null,{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis})},i.pointToPixels=function(t,e){var i=t.series,s=i.chart,n=t.plotX,o=t.plotY;return s.inverted&&(t.mock?(n=t.plotY,o=t.plotX):(n=s.plotWidth-t.plotY,o=s.plotHeight-t.plotX)),i&&!e&&(n+=(t=i.getPlotBox()).translateX,o+=t.translateY),{x:n,y:o}},i.pointToOptions=function(t){return{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis}},e(i.prototype,{mock:!0,hasDynamicOptions:function(){return"function"==typeof this.options},getOptions:function(){return this.hasDynamicOptions()?this.options(this.target):this.options},applyOptions:function(t){this.command=t.command,this.setAxis(t,"x"),this.setAxis(t,"y"),this.refresh()},setAxis:function(e,i){e=e[i+="Axis"];var n=this.series.chart;this.series[i]=e instanceof t.Axis?e:s(e)?n[i][e]||n.get(e):null},toAnchor:function(){var t=[this.plotX,this.plotY,0,0];return this.series.chart.inverted&&(t[0]=this.plotY,t[1]=this.plotX),t},getLabelConfig:function(){return{x:this.x,y:this.y,point:this}},isInsidePane:function(){var t=this.plotX,e=this.plotY,i=this.series.xAxis,n=this.series.yAxis,o=!0;return i&&(o=s(t)&&0<=t&&t<=i.len),n&&(o=o&&s(e)&&0<=e&&e<=n.len),o},refresh:function(){var t=this.series,e=t.xAxis;t=t.yAxis;var i=this.getOptions();e?(this.x=i.x,this.plotX=e.toPixels(i.x,!0)):(this.x=null,this.plotX=i.x),t?(this.y=i.y,this.plotY=t.toPixels(i.y,!0)):(this.y=null,this.plotY=i.y),this.isInside=this.isInsidePane()}
1,translate:function(t,e,i,s){this.hasDynamicOptions()||(this.plotX+=i,this.plotY+=s,this.refreshOptions())},scale:function(t,e,i,s){if(!this.hasDynamicOptions()){var n=this.plotY*s;this.plotX=(1-i)*t+this.plotX*i,this.plotY=(1-s)*e+n,this.refreshOptions()}},rotate:function(t,e,i){if(!this.hasDynamicOptions()){var s=Math.cos(i);i=Math.sin(i);var n=this.plotX,o=this.plotY;n-=t,o-=e,this.plotX=n*s-o*i+t,this.plotY=n*i+o*s+e,this.refreshOptions()}},refreshOptions:function(){var t=this.series,e=t.xAxis;t=t.yAxis,this.x=this.options.x=e?this.options.x=e.toValue(this.plotX,!0):this.plotX,this.y=this.options.y=t?t.toValue(this.plotY,!0):this.plotY}}),i})),e(t,"annotations/controllable/controllableMixin.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["annotations/ControlPoint.js"],t["annotations/MockPoint.js"]],(function(t,e,i,s){var n=e.isObject,o=e.isString,r=e.splat;return{init:function(t,e,i){this.annotation=t,this.chart=t.chart,this.options=e,this.points=[],this.controlPoints=[],this.index=i,this.linkPoints(),this.addControlPoints()},attr:function(){this.graphic.attr.apply(this.graphic,arguments)},getPointsOptions:function(){var t=this.options;return t.points||t.point&&r(t.point)},attrsFromOptions:function(t){var e,i=this.constructor.attrsMap,s={},n=this.chart.styledMode;for(e in t){var o=i[e];!o||n&&-1!==["fill","stroke","stroke-width"].indexOf(o)||(s[o]=t[e])}return s},anchor:function(e){var i=e.series.getPlotBox();return{relativePosition:e={x:(e=e.mock?e.toAnchor():t.Tooltip.prototype.getAnchor.call({chart:e.series.chart},e))[0]+(this.options.x||0),y:e[1]+(this.options.y||0),height:e[2]||0,width:e[3]||0},absolutePosition:t.merge(e,{x:e.x+i.translateX,y:e.y+i.translateY})}},point:function(t,e){return t&&t.series?t:(e&&null!==e.series||(n(t)?e=new s(this.chart,this,t):o(t)?e=this.chart.get(t)||null:"function"==typeof t&&(e=(e=t.call(e,this)).series?e:new s(this.chart,this,t))),e)},linkPoints:function(){var t,e=this.getPointsOptions(),i=this.points,s=e&&e.length||0;for(t=0;t<s;t++){var n=this.point(e[t],i[t]);if(!n)return void(i.length=0);n.mock&&n.refresh(),i[t]=n}return i},addControlPoints:function(){var e=this.options.controlPoints;(e||[]).forEach((function(s,n){(s=t.merge(this.options.controlPointOptions,s)).index||(s.index=n),e[n]=s,this.controlPoints.push(new i(this.chart,this,s))}),this)},shouldBeDrawn:function(){return!!this.points.length},render:function(){this.controlPoints.forEach((function(t){t.render()}))},redraw:function(t){this.controlPoints.forEach((function(e){e.redraw(t)}))},transform:function(t,e,i,s,n){if(this.chart.inverted){var o=e;e=i,i=o}this.points.forEach((function(o,r){this.transformPoint(t,e,i,s,n,r)}),this)},transformPoint:function(t,e,i,n,o,r){var a=this.points[r];a.mock||(a=this.points[r]=s.fromPoint(a)),a[t](e,i,n,o)},translate:function(t,e){this.transform("translate",null,null,t,e)},translatePoint:function(t,e,i){this.transformPoint("translate",null,null,t,e,i)},translateShape:function(t,e){var i=this.annotation.chart,s=this.annotation.userOptions,n=i.annotations.indexOf(this.annotation);i=i.options.annotations[n],this.translatePoint(t,e,0),i[this.collection][this.index].point=this.options.point,s[this.collection][this.index].point=this.options.point},rotate:function(t,e,i){this.transform("rotate",t,e,i)},scale:function(t,e,i,s){this.transform("scale",t,e,i,s)},setControlPointsVisibility:function(t){this.controlPoints.forEach((function(e){e.setVisibility(t)}))},destroy:function(){this.graphic&&(this.graphic=this.graphic.destroy()),this.tracker&&(this.tracker=this.tracker.destroy()),this.controlPoints.forEach((function(t){t.destroy()})),this.options=this.controlPoints=this.points=this.chart=null,this.annotation&&(this.annotation=null)},update:function(e){var i=this.annotation;e=t.merge(!0,this.options,e);var s=this.graphic.parentGroup;this.destroy(),this.constructor(i,e),this.render(s),this.redraw()}}})),e(t,"annotations/controllable/markerMixin.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.objectEach,n=e.splat,o={arrow:{tagName:"marker",render:!1,id:"arrow",refY:5,refX:9,markerWidth:10,markerHeight:10,children:[{tagName:"path",d:"M 0 0 L 10 5 L 0 10 Z",strokeWidth:0}]},"reverse-arrow":{tagName:"marker",render:!1,id:"reverse-arrow",refY:5,refX:1,markerWidth:10,markerHeight:10,children:[{tagName:"path",d:"M 0 5 L 10 0 L 10 10 Z",
1strokeWidth:0}]}};return t.SVGRenderer.prototype.addMarker=function(e,i){var s={id:e},n={stroke:i.color||"none",fill:i.color||"rgba(0, 0, 0, 0.75)"};return s.children=i.children.map((function(e){return t.merge(n,e)})),(i=this.definition(t.merge(!0,{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"},i,s))).id=e,i},e={markerEndSetter:(e=function(t){return function(e){this.attr(t,"url(#"+e+")")}})("marker-end"),markerStartSetter:e("marker-start"),setItemMarkers:function(e){var s=e.options,n=e.chart,o=n.options.defs,r=s.fill,a=i(r)&&"none"!==r?r:s.stroke;["markerStart","markerEnd"].forEach((function(i){var r,h=s[i];if(h){for(r in o){var l=o[r];if(h===l.id&&"marker"===l.tagName){var c=l;break}}c&&(h=e[i]=n.renderer.addMarker((s.id||t.uniqueKey())+"-"+c.id,t.merge(c,{color:a})),e.attr(i,h.attr("id")))}}))}},t.SVGRenderer.prototype.definition=function(e){var i=this;return function e(o,r){var a;return n(o).forEach((function(n){var o=i.createElement(n.tagName),h={};s(n,(function(t,e){"tagName"!==e&&"children"!==e&&"textContent"!==e&&(h[e]=t)})),o.attr(h),o.add(r||i.defs),n.textContent&&o.element.appendChild(t.doc.createTextNode(n.textContent)),e(n.children||[],o),a=o})),a}(e)},t.addEvent(t.Chart,"afterGetContainer",(function(){this.options.defs=t.merge(o,this.options.defs||{}),s(this.options.defs,(function(t){"marker"===t.tagName&&!1!==t.render&&this.renderer.addMarker(t.id,t)}),this)})),e})),e(t,"annotations/controllable/ControllablePath.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["annotations/controllable/controllableMixin.js"],t["annotations/controllable/markerMixin.js"]],(function(t,e,i,s){function n(t,e,i){this.init(t,e,i),this.collection="shapes"}var o=e.extend,r="rgba(192,192,192,"+(t.svg?1e-4:.002)+")";return n.attrsMap={dashStyle:"dashstyle",strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"},t.merge(!0,n.prototype,i,{type:"path",setMarkers:s.setItemMarkers,toD:function(){var t=this.options.d;if(t)return"function"==typeof t?t.call(this):t;var e=this.points,i=e.length,s=i,n=e[0],o=s&&this.anchor(n).absolutePosition,r=0,a=2;for(t=o&&["M",o.x,o.y];++r<i&&s;)s=(n=e[r]).command||"L",o=this.anchor(n).absolutePosition,"Z"===s?t[++a]=s:(s!==e[r-1].command&&(t[++a]=s),t[++a]=o.x,t[++a]=o.y),s=n.series.visible;return s?this.chart.renderer.crispLine(t,this.graphic.strokeWidth()):null},shouldBeDrawn:function(){return i.shouldBeDrawn.call(this)||!!this.options.d},render:function(t){var e=this.options,n=this.attrsFromOptions(e);this.graphic=this.annotation.chart.renderer.path(["M",0,0]).attr(n).add(t),e.className&&this.graphic.addClass(e.className),this.tracker=this.annotation.chart.renderer.path(["M",0,0]).addClass("highcharts-tracker-line").attr({zIndex:2}).add(t),this.annotation.chart.styledMode||this.tracker.attr({"stroke-linejoin":"round",stroke:r,fill:r,"stroke-width":this.graphic.strokeWidth()+2*e.snap}),i.render.call(this),o(this.graphic,{markerStartSetter:s.markerStartSetter,markerEndSetter:s.markerEndSetter}),this.setMarkers(this)},redraw:function(t){var e=this.toD(),s=t?"animate":"attr";e?(this.graphic[s]({d:e}),this.tracker[s]({d:e})):(this.graphic.attr({d:"M 0 -9000000000"}),this.tracker.attr({d:"M 0 -9000000000"})),this.graphic.placed=this.tracker.placed=!!e,i.redraw.call(this,t)}}),n})),e(t,"annotations/controllable/ControllableRect.js",[t["parts/Globals.js"],t["annotations/controllable/controllableMixin.js"],t["annotations/controllable/ControllablePath.js"]],(function(t,e,i){function s(t,e,i){this.init(t,e,i),this.collection="shapes"}return s.attrsMap=t.merge(i.attrsMap,{width:"width",height:"height"}),t.merge(!0,s.prototype,e,{type:"rect",translate:e.translateShape,render:function(t){var i=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.rect(0,-9e9,0,0).attr(i).add(t),e.render.call(this)},redraw:function(t){var i=this.anchor(this.points[0]).absolutePosition;i?this.graphic[t?"animate":"attr"]({x:i.x,y:i.y,width:this.options.width,height:this.options.height}):this.attr({x:0,y:-9e9}),this.graphic.placed=!!i,e.redraw.call(this,t)}}),s})),e(t,"annotations/controllable/ControllableCircle.js",[t["parts/Globals.js"],t["annotations/controllable/controllableMixin.js"],t["annotations/controllable/ControllablePath.js"]],(function(t,e,
1i){function s(t,e,i){this.init(t,e,i),this.collection="shapes"}return s.attrsMap=t.merge(i.attrsMap,{r:"r"}),t.merge(!0,s.prototype,e,{type:"circle",translate:e.translateShape,render:function(t){var i=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.circle(0,-9e9,0).attr(i).add(t),e.render.call(this)},redraw:function(t){var i=this.anchor(this.points[0]).absolutePosition;i?this.graphic[t?"animate":"attr"]({x:i.x,y:i.y,r:this.options.r}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!i,e.redraw.call(this,t)},setRadius:function(t){this.options.r=t}}),s})),e(t,"annotations/controllable/ControllableLabel.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["annotations/controllable/controllableMixin.js"],t["annotations/MockPoint.js"]],(function(t,e,i,s){function n(t,e,i){this.init(t,e,i),this.collection="labels"}var o=e.extend,r=e.isNumber,a=e.pick;return n.shapesWithoutBackground=["connector"],n.alignedPosition=function(t,e){var i,s,n=t.align,o=t.verticalAlign,r=(e.x||0)+(t.x||0),a=(e.y||0)+(t.y||0);return"right"===n?i=1:"center"===n&&(i=2),i&&(r+=(e.width-(t.width||0))/i),"bottom"===o?s=1:"middle"===o&&(s=2),s&&(a+=(e.height-(t.height||0))/s),{x:Math.round(r),y:Math.round(a)}},n.justifiedOptions=function(t,e,i,s){var n=i.align,o=i.verticalAlign,r=e.box?0:e.padding||0,a=e.getBBox();e={align:n,verticalAlign:o,x:i.x,y:i.y,width:e.width,height:e.height},i=s.x-t.plotLeft;var h=s.y-t.plotTop;return 0>(s=i+r)&&("right"===n?e.align="left":e.x=-s),(s=i+a.width-r)>t.plotWidth&&("left"===n?e.align="right":e.x=t.plotWidth-s),0>(s=h+r)&&("bottom"===o?e.verticalAlign="top":e.y=-s),(s=h+a.height-r)>t.plotHeight&&("top"===o?e.verticalAlign="bottom":e.y=t.plotHeight-s),e},n.attrsMap={backgroundColor:"fill",borderColor:"stroke",borderWidth:"stroke-width",zIndex:"zIndex",borderRadius:"r",padding:"padding"},t.merge(!0,n.prototype,i,{translatePoint:function(t,e){i.translatePoint.call(this,t,e,0)},translate:function(t,e){var i=this.annotation.chart,s=this.annotation.userOptions,n=i.annotations.indexOf(this.annotation);n=i.options.annotations[n],i.inverted&&(i=t,t=e,e=i),this.options.x+=t,this.options.y+=e,n[this.collection][this.index].x=this.options.x,n[this.collection][this.index].y=this.options.y,s[this.collection][this.index].x=this.options.x,s[this.collection][this.index].y=this.options.y},render:function(t){var e=this.options,s=this.attrsFromOptions(e),o=e.style;this.graphic=this.annotation.chart.renderer.label("",0,-9999,e.shape,null,null,e.useHTML,null,"annotation-label").attr(s).add(t),this.annotation.chart.styledMode||("contrast"===o.color&&(o.color=this.annotation.chart.renderer.getContrast(-1<n.shapesWithoutBackground.indexOf(e.shape)?"#FFFFFF":e.backgroundColor)),this.graphic.css(e.style).shadow(e.shadow)),e.className&&this.graphic.addClass(e.className),this.graphic.labelrank=e.labelrank,i.render.call(this)},redraw:function(e){var s=this.options,n=this.text||s.format||s.text,o=this.graphic,r=this.points[0];o.attr({text:n?t.format(n,r.getLabelConfig(),this.annotation.chart.time):s.formatter.call(r,this)}),s=this.anchor(r),(n=this.position(s))?(o.alignAttr=n,n.anchorX=s.absolutePosition.x,n.anchorY=s.absolutePosition.y,o[e?"animate":"attr"](n)):o.attr({x:0,y:-9999}),o.placed=!!n,i.redraw.call(this,e)},anchor:function(){var t=i.anchor.apply(this,arguments),e=this.options.x||0,s=this.options.y||0;return t.absolutePosition.x-=e,t.absolutePosition.y-=s,t.relativePosition.x-=e,t.relativePosition.y-=s,t},position:function(e){var i=this.graphic,r=this.annotation.chart,h=this.points[0],l=this.options,c=e.absolutePosition,d=e.relativePosition;if(e=h.series.visible&&s.prototype.isInsidePane.call(h)){if(l.distance)var p=t.Tooltip.prototype.getPosition.call({chart:r,distance:a(l.distance,16)},i.width,i.height,{plotX:d.x,plotY:d.y,negative:h.negative,ttBelow:h.ttBelow,h:d.height||d.width});else l.positioner?p=l.positioner.call(this):(h={x:c.x,y:c.y,width:0,height:0},p=n.alignedPosition(o(l,{width:i.width,height:i.height}),h),"justify"===this.options.overflow&&(p=n.alignedPosition(n.justifiedOptions(r,i,l,p),h)));l.crop&&(l=p.x-r.plotLeft,h=p.y-r.plotTop,e=r.isInsidePlot(l,h)&&r.isInsidePlot(l+i.width,h+i.height))}return e?p:null}}
1),t.SVGRenderer.prototype.symbols.connector=function(t,e,i,s,n){var o=n&&n.anchorX;n=n&&n.anchorY;var a=i/2;if(r(o)&&r(n)){var h=["M",o,n],l=e-n;0>l&&(l=-s-l),l<i&&(a=o<t+i/2?l:i-l),n>e+s?h.push("L",t+a,e+s):n<e?h.push("L",t+a,e):o<t?h.push("L",t,e+s/2):o>t+i&&h.push("L",t+i,e+s/2)}return h||[]},n})),e(t,"annotations/controllable/ControllableImage.js",[t["parts/Globals.js"],t["annotations/controllable/controllableMixin.js"],t["annotations/controllable/ControllableLabel.js"]],(function(t,e,i){function s(t,e,i){this.init(t,e,i),this.collection="shapes"}return s.attrsMap={width:"width",height:"height",zIndex:"zIndex"},t.merge(!0,s.prototype,e,{type:"image",translate:e.translateShape,render:function(t){var i=this.attrsFromOptions(this.options),s=this.options;this.graphic=this.annotation.chart.renderer.image(s.src,0,-9e9,s.width,s.height).attr(i).add(t),this.graphic.width=s.width,this.graphic.height=s.height,e.render.call(this)},redraw:function(t){var s=this.anchor(this.points[0]);(s=i.prototype.position.call(this,s))?this.graphic[t?"animate":"attr"]({x:s.x,y:s.y}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!s,e.redraw.call(this,t)}}),s})),e(t,"annotations/annotations.src.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["annotations/controllable/controllableMixin.js"],t["annotations/controllable/ControllableRect.js"],t["annotations/controllable/ControllableCircle.js"],t["annotations/controllable/ControllablePath.js"],t["annotations/controllable/ControllableImage.js"],t["annotations/controllable/ControllableLabel.js"],t["annotations/eventEmitterMixin.js"],t["annotations/MockPoint.js"],t["annotations/ControlPoint.js"]],(function(t,e,i,s,n,o,r,a,h,l,c){var d=e.defined,p=e.destroyObjectProperties,u=e.erase,f=e.extend,g=e.pick,m=e.splat,v=t.merge,x=t.addEvent,y=t.fireEvent,b=t.find,k=t.reduce;e=t.Chart.prototype;var w=t.Annotation=function(t,e){this.chart=t,this.points=[],this.controlPoints=[],this.coll="annotations",this.labels=[],this.shapes=[],this.options=v(this.defaultOptions,e),this.userOptions=e,e=this.getLabelsAndShapesOptions(this.options,e),this.options.labels=e.labels,this.options.shapes=e.shapes,this.init(t,this.options)};v(!0,w.prototype,i,h,{nonDOMEvents:["add","afterUpdate","drag","remove"],defaultOptions:{visible:!0,draggable:"xy",labelOptions:{align:"center",allowOverlap:!1,backgroundColor:"rgba(0, 0, 0, 0.75)",borderColor:"black",borderRadius:3,borderWidth:1,className:"",crop:!1,formatter:function(){return d(this.y)?this.y:"Annotation label"},overflow:"justify",padding:5,shadow:!1,shape:"callout",style:{fontSize:"11px",fontWeight:"normal",color:"contrast"},useHTML:!1,verticalAlign:"bottom",x:0,y:-16},shapeOptions:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1,fill:"rgba(0, 0, 0, 0.75)",r:0,snap:2},controlPointOptions:{symbol:"circle",width:10,height:10,style:{stroke:"black","stroke-width":2,fill:"white"},visible:!1,events:{}},events:{},zIndex:6},init:function(){this.linkPoints(),this.addControlPoints(),this.addShapes(),this.addLabels(),this.addClipPaths(),this.setLabelCollector()},getLabelsAndShapesOptions:function(t,e){var i={};return["labels","shapes"].forEach((function(s){t[s]&&(i[s]=m(e[s]).map((function(e,i){return v(t[s][i],e)})))})),i},addShapes:function(){(this.options.shapes||[]).forEach((function(t,e){t=this.initShape(t,e),v(!0,this.options.shapes[e],t.options)}),this)},addLabels:function(){(this.options.labels||[]).forEach((function(t,e){t=this.initLabel(t,e),v(!0,this.options.labels[e],t.options)}),this)},addClipPaths:function(){this.setClipAxes(),this.clipXAxis&&this.clipYAxis&&(this.clipRect=this.chart.renderer.clipRect(this.getClipBox()))},setClipAxes:function(){var t=this.chart.xAxis,e=this.chart.yAxis,i=k((this.options.labels||[]).concat(this.options.shapes||[]),(function(i,s){return[t[s&&s.point&&s.point.xAxis]||i[0],e[s&&s.point&&s.point.yAxis]||i[1]]}),[]);this.clipXAxis=i[0],this.clipYAxis=i[1]},getClipBox:function(){return{x:this.clipXAxis.left,y:this.clipYAxis.top,width:this.clipXAxis.width,height:this.clipYAxis.height}},setLabelCollector:function(){var t=this;t.labelCollector=function(){return t.labels.reduce((function(t,e){return e.options.allowOverlap||t.pu
1sh(e.graphic),t}),[])},t.chart.labelCollectors.push(t.labelCollector)},setOptions:function(t){this.options=v(this.defaultOptions,t)},redraw:function(t){this.linkPoints(),this.graphic||this.render(),this.clipRect&&this.clipRect.animate(this.getClipBox()),this.redrawItems(this.shapes,t),this.redrawItems(this.labels,t),i.redraw.call(this,t)},redrawItems:function(t,e){for(var i=t.length;i--;)this.redrawItem(t[i],e)},render:function(){var t=this.chart.renderer;this.graphic=t.g("annotation").attr({zIndex:this.options.zIndex,visibility:this.options.visible?"visible":"hidden"}).add(),this.shapesGroup=t.g("annotation-shapes").add(this.graphic).clip(this.chart.plotBoxClip),this.labelsGroup=t.g("annotation-labels").attr({translateX:0,translateY:0}).add(this.graphic),this.clipRect&&this.graphic.clip(this.clipRect),this.addEvents(),i.render.call(this)},setVisibility:function(t){var e=this.options;t=g(t,!e.visible),this.graphic.attr("visibility",t?"visible":"hidden"),t||this.setControlPointsVisibility(!1),e.visible=t},setControlPointsVisibility:function(t){var e=function(e){e.setControlPointsVisibility(t)};i.setControlPointsVisibility.call(this,t),this.shapes.forEach(e),this.labels.forEach(e)},destroy:function(){var t=this.chart,e=function(t){t.destroy()};this.labels.forEach(e),this.shapes.forEach(e),this.clipYAxis=this.clipXAxis=null,u(t.labelCollectors,this.labelCollector),h.destroy.call(this),i.destroy.call(this),p(this,t)},remove:function(){return this.chart.removeAnnotation(this)},update:function(e){var i=this.chart,s=this.getLabelsAndShapesOptions(this.userOptions,e),n=i.annotations.indexOf(this);(e=t.merge(!0,this.userOptions,e)).labels=s.labels,e.shapes=s.shapes,this.destroy(),this.constructor(i,e),i.options.annotations[n]=e,this.isUpdating=!0,this.redraw(),this.isUpdating=!1,y(this,"afterUpdate")},initShape:function(t,e){return t=v(this.options.shapeOptions,{controlPointOptions:this.options.controlPointOptions},t),(e=new w.shapesMap[t.type](this,t,e)).itemType="shape",this.shapes.push(e),e},initLabel:function(t,e){return t=v(this.options.labelOptions,{controlPointOptions:this.options.controlPointOptions},t),(e=new a(this,t,e)).itemType="label",this.labels.push(e),e},redrawItem:function(t,e){t.linkPoints(),t.shouldBeDrawn()?(t.graphic||this.renderItem(t),t.redraw(g(e,!0)&&t.graphic.placed),t.points.length&&this.adjustVisibility(t)):this.destroyItem(t)},adjustVisibility:function(t){var e=!1,i=t.graphic;t.points.forEach((function(t){!1!==t.series.visible&&!1!==t.visible&&(e=!0)})),e?"hidden"===i.visibility&&i.show():i.hide()},destroyItem:function(t){u(this[t.itemType+"s"],t),t.destroy()},renderItem:function(t){t.render("label"===t.itemType?this.labelsGroup:this.shapesGroup)}}),w.shapesMap={rect:s,circle:n,path:o,image:r},w.types={},w.MockPoint=l,w.ControlPoint=c,t.extendAnnotation=function(t,e,i,s){e=e||w,v(!0,t.prototype,e.prototype,i),t.prototype.defaultOptions=v(t.prototype.defaultOptions,s||{})},f(e,{initAnnotation:function(t){return t=new(w.types[t.type]||w)(this,t),this.annotations.push(t),t},addAnnotation:function(t,e){return t=this.initAnnotation(t),this.options.annotations.push(t.options),g(e,!0)&&t.redraw(),t},removeAnnotation:function(t){var e=this.annotations,i="annotations"===t.coll?t:b(e,(function(e){return e.options.id===t}));i&&(y(i,"remove"),u(this.options.annotations,i.options),u(e,i),i.destroy())},drawAnnotations:function(){this.plotBoxClip.attr(this.plotBox),this.annotations.forEach((function(t){t.redraw()}))}}),e.collectionsWithUpdate.push("annotations"),e.collectionsWithInit.annotations=[e.addAnnotation],e.callbacks.push((function(t){t.annotations=[],t.options.annotations||(t.options.annotations=[]),t.plotBoxClip=this.renderer.clipRect(this.plotBox),t.controlPointsGroup=t.renderer.g("control-points").attr({zIndex:99}).clip(t.plotBoxClip).add(),t.options.annotations.forEach((function(e,i){e=t.initAnnotation(e),t.options.annotations[i]=e.options})),t.drawAnnotations(),x(t,"redraw",t.drawAnnotations),x(t,"destroy",(function(){t.plotBoxClip.destroy(),t.controlPointsGroup.destroy()}))})),t.wrap(t.Pointer.prototype,"onContainerMouseDown",(function(t){this.chart.hasDraggedAnnotation||t.apply(this,Array.prototype.slice.call(arguments,1
1))}))})),e(t,"mixins/navigation.js",[],(function(){return{initUpdate:function(t){t.navigation||(t.navigation={updates:[],update:function(t,e){this.updates.forEach((function(i){i.update.call(i.context,t,e)}))}})},addUpdate:function(t,e){e.navigation||this.initUpdate(e),e.navigation.updates.push({update:t,context:e})}}})),e(t,"annotations/navigationBindings.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["mixins/navigation.js"]],(function(t,e,i){function s(e){var i=e.prototype.defaultOptions.events&&e.prototype.defaultOptions.events.click;t.merge(!0,e.prototype.defaultOptions.events,{click:function(t){var e=this,s=e.chart.navigationBindings,n=s.activeAnnotation;i&&i.click.call(e,t),n!==e?(s.deselectAnnotation(),s.activeAnnotation=e,e.setControlPointsVisibility(!0),g(s,"showPopup",{annotation:e,formType:"annotation-toolbar",options:s.annotationToFields(e),onSubmit:function(t){var i={};"remove"===t.actionType?(s.activeAnnotation=!1,s.chart.removeAnnotation(e)):(s.fieldsToOptions(t.fields,i),s.deselectAnnotation(),t=i.typeOptions,"measure"===e.options.type&&(t.crosshairY.enabled=0!==t.crosshairY.strokeWidth,t.crosshairX.enabled=0!==t.crosshairX.strokeWidth),e.update(i))}})):(s.deselectAnnotation(),g(s,"closePopup")),t.activeAnnotation=!0}})}var n=e.attr,o=e.extend,r=e.isArray,a=e.isNumber,h=e.isObject,l=e.objectEach,c=e.pick,d=t.doc,p=t.win,u=t.addEvent,f=t.merge,g=t.fireEvent;t.NavigationBindings=function(t,e){this.chart=t,this.options=e,this.eventsToUnbind=[],this.container=d.getElementsByClassName(this.options.bindingsClassName)},t.NavigationBindings.annotationsEditable={nestedOptions:{labelOptions:["style","format","backgroundColor"],labels:["style"],label:["style"],style:["fontSize","color"],background:["fill","strokeWidth","stroke"],innerBackground:["fill","strokeWidth","stroke"],outerBackground:["fill","strokeWidth","stroke"],shapeOptions:["fill","strokeWidth","stroke"],shapes:["fill","strokeWidth","stroke"],line:["strokeWidth","stroke"],backgroundColors:[!0],connector:["fill","strokeWidth","stroke"],crosshairX:["strokeWidth","stroke"],crosshairY:["strokeWidth","stroke"]},circle:["shapes"],verticalLine:[],label:["labelOptions"],measure:["background","crosshairY","crosshairX"],fibonacci:[],tunnel:["background","line","height"],pitchfork:["innerBackground","outerBackground"],rect:["shapes"],crookedLine:[]},t.NavigationBindings.annotationsNonEditable={rectangle:["crosshairX","crosshairY","label"]},o(t.NavigationBindings.prototype,{initEvents:function(){var e=this,i=e.chart,s=e.container,n=e.options;e.boundClassNames={},l(n.bindings,(function(t){e.boundClassNames[t.className]=t})),[].forEach.call(s,(function(t){e.eventsToUnbind.push(u(t,"click",(function(t){var i=e.getButtonEvents(s,t);i&&e.bindingsButtonClick(i.button,i.events,t)})))})),l(n.events||{},(function(i,s){t.isFunction(i)&&e.eventsToUnbind.push(u(e,s,i))})),e.eventsToUnbind.push(u(i.container,"click",(function(t){!i.cancelClick&&i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop)&&e.bindingsChartClick(this,t)}))),e.eventsToUnbind.push(u(i.container,"mousemove",(function(t){e.bindingsContainerMouseMove(this,t)})))},initUpdate:function(){var t=this;i.addUpdate((function(e){t.update(e)}),this.chart)},bindingsButtonClick:function(t,e,i){var s=this.chart;this.selectedButtonElement&&(g(this,"deselectButton",{button:this.selectedButtonElement}),this.nextEvent&&(this.currentUserDetails&&"annotations"===this.currentUserDetails.coll&&s.removeAnnotation(this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1)),this.selectedButton=e,this.selectedButtonElement=t,g(this,"selectButton",{button:t}),e.init&&e.init.call(this,t,i),(e.start||e.steps)&&s.renderer.boxWrapper.addClass("highcharts-draw-mode")},bindingsChartClick:function(t,e){t=this.selectedButton;var i,s=this.chart.renderer.boxWrapper;if(i=this.activeAnnotation&&!e.activeAnnotation&&e.target.parentNode){t:{i=e.target;var n=p.Element.prototype,o=n.matches||n.msMatchesSelector||n.webkitMatchesSelector,r=null;if(n.closest)r=n.closest.call(i,".highcharts-popup");else do{if(o.call(i,".highcharts-popup"))break t;i=i.parentElement||i.parentNode}while(null!==i&&1===i.nodeType);i=r}i=!i}i&&(g(this,"closePopup"),this.deselectAnnotation()),t&&t.start&&(this.nextEvent?(this.nextEvent(e,this.currentUserDetails),this.steps&&(this.stepIndex++,t.steps[this.stepIndex]?this.mouseMoveEvent=this.nextEvent=t.steps[this.stepIndex]:(g(this,"deselectButton",{button:this.selectedButtonElement}),s.removeClass("highcharts-draw-mode"),t.end&&t.end.call(this,e,this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1,this.selectedButton=null))):(this.currentUserDetails=t.start.call(this,e),t.steps?(this.stepIndex=0,this.steps=!0,this.mouseMoveEvent=this.nextEvent=t.steps[this.stepIndex]):(g(this,"deselectButton",{button:this.selectedButtonElement}),s.removeClass("highcharts-draw-mode"),this.steps=!1,this.selectedButton=null,t.end&&t.end.call(this,e,this.currentUserDetails))))},bindingsContainerMouseMove:function(t,e){this.mouseMoveEvent&&this.mouseMoveEvent(e,this.currentUserDetails)},fieldsToOptions:function(t,e){return l(t,(function(t,i){var s=parseFloat(t),n=i.split("."),o=e,r=n.length-1;!a(s)||t.match(/px/g)||i.match(/format/g)||(t=s),""!==t&&"undefined"!==t&&n.forEac
1h((function(e,i){var s=c(n[i+1],"");r===i?o[e]=t:(o[e]||(o[e]=s.match(/\d/g)?[]:{}),o=o[e])}))})),e},deselectAnnotation:function(){this.activeAnnotation&&(this.activeAnnotation.setControlPointsVisibility(!1),this.activeAnnotation=!1)},annotationToFields:function(e){function i(s,n,c,d){if(c&&-1===p.indexOf(n)&&(0<=(c.indexOf&&c.indexOf(n))||c[n]||!0===c))if(r(s))d[n]=[],s.forEach((function(t,e){h(t)?(d[n][e]={},l(t,(function(t,s){i(t,s,o[n],d[n][e])}))):i(t,0,o[n],d[n])}));else if(h(s)){var u={};r(d)?(d.push(u),u[n]={},u=u[n]):d[n]=u,l(s,(function(t,e){i(t,e,0===n?c:o[n],u)}))}else"format"===n?d[n]=[t.format(s,e.labels[0].points[0]).toString(),"text"]:r(d)?d.push([s,a(s)]):d[n]=[s,a(s)]}var s=e.options,n=t.NavigationBindings.annotationsEditable,o=n.nestedOptions,a=this.utils.getFieldType,d=c(s.type,s.shapes&&s.shapes[0]&&s.shapes[0].type,s.labels&&s.labels[0]&&s.labels[0].itemType,"label"),p=t.NavigationBindings.annotationsNonEditable[s.langKey]||[],u={langKey:s.langKey,type:d};return l(s,(function(t,e){"typeOptions"===e?(u[e]={},l(s[e],(function(t,s){i(t,s,o,u[e])}))):i(t,e,n[d],u)})),u},getClickedClassNames:function(t,e){var i,s=e.target;for(e=[];s&&((i=n(s,"class"))&&(e=e.concat(i.split(" ").map((function(t){return[t,s]})))),(s=s.parentNode)!==t););return e},getButtonEvents:function(t,e){var i,s=this;return this.getClickedClassNames(t,e).forEach((function(t){s.boundClassNames[t[0]]&&!i&&(i={events:s.boundClassNames[t[0]],button:t[1]})})),i},update:function(t){this.options=f(!0,this.options,t),this.removeEvents(),this.initEvents()},removeEvents:function(){this.eventsToUnbind.forEach((function(t){t()}))},destroy:function(){this.removeEvents()},utils:{updateRectSize:function(t,e){var i=e.chart,s=e.options.typeOptions,n=i.pointer.getCoordinates(t);t=n.xAxis[0].value-s.point.x,s=s.point.y-n.yAxis[0].value,e.update({typeOptions:{background:{width:i.inverted?s:t,height:i.inverted?t:s}}})},getFieldType:function(t){return{string:"text",number:"number",boolean:"checkbox"}[typeof t]}}}),t.Chart.prototype.initNavigationBindings=function(){var e=this.options;e&&e.navigation&&e.navigation.bindings&&(this.navigationBindings=new t.NavigationBindings(this,e.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())},u(t.Chart,"load",(function(){this.initNavigationBindings()})),u(t.Chart,"destroy",(function(){this.navigationBindings&&this.navigationBindings.destroy()})),u(t.NavigationBindings,"deselectButton",(function(){this.selectedButtonElement=null})),u(t.Annotation,"remove",(function(){this.chart.navigationBindings&&this.chart.navigationBindings.deselectAnnotation()})),t.Annotation&&(s(t.Annotation),l(t.Annotation.types,(function(t){s(t)}))),t.setOptions({lang:{navigation:{popup:{simpleShapes:"Simple shapes",lines:"Lines",circle:"Circle",rectangle:"Rectangle",label:"Label",shapeOptions:"Shape options",typeOptions:"Details",fill:"Fill",format:"Text",strokeWidth:"Line width",stroke:"Line color",title:"Title",name:"Name",labelOptions:"Label options",labels:"Labels",backgroundColor:"Background color",backgroundColors:"Backgroun
1d colors",borderColor:"Border color",borderRadius:"Border radius",borderWidth:"Border width",style:"Style",padding:"Padding",fontSize:"Font size",color:"Color",height:"Height",shapes:"Shape options"}}},navigation:{bindingsClassName:"highcharts-bindings-container",bindings:{circleAnnotation:{className:"highcharts-circle-annotation",start:function(e){e=this.chart.pointer.getCoordinates(e);var i=this.chart.options.navigation;return this.chart.addAnnotation(f({langKey:"circle",shapes:[{type:"circle",point:{xAxis:0,yAxis:0,x:e.xAxis[0].value,y:e.yAxis[0].value},r:5,controlPoints:[{positioner:function(e){var i=t.Annotation.MockPoint.pointToPixels(e.points[0]);return e=e.options.r,{x:i.x+e*Math.cos(Math.PI/4)-this.graphic.width/2,y:i.y+e*Math.sin(Math.PI/4)-this.graphic.height/2}},events:{drag:function(t,e){var i=e.annotation;t=this.mouseMoveToTranslation(t),e.setRadius(Math.max(e.options.r+t.y/Math.sin(Math.PI/4),5)),i.options.shapes[0]=i.userOptions.shapes[0]=e.options,e.redraw(!1)}}}]}]},i.annotationsOptions,i.bindings.circleAnnotation.annotationsOptions))},steps:[function(t,e){var i=e.options.shapes[0].point,s=this.chart.xAxis[0].toPixels(i.x);i=this.chart.yAxis[0].toPixels(i.y);var n=this.chart.inverted;e.update({shapes:[{r:Math.max(Math.sqrt(Math.pow(n?i-t.chartX:s-t.chartX,2)+Math.pow(n?s-t.chartY:i-t.chartY,2)),5)}]})}]},rectangleAnnotation:{className:"highcharts-rectangle-annotation",start:function(e){var i=this.chart.pointer.getCoordinates(e);e=this.chart.options.navigation;var s=i.xAxis[0].value;return i=i.yAxis[0].value,this.chart.addAnnotation(f({langKey:"rectangle",shapes:[{type:"path",points:[{xAxis:0,yAxis:0,x:s,y:i},{xAxis:0,yAxis:0,x:s,y:i},{xAxis:0,yAxis:0,x:s,y:i},{xAxis:0,yAxis:0,x:s,y:i}]}],controlPoints:[{positioner:function(e){return{x:(e=t.Annotation.MockPoint.pointToPixels(e.shapes[0].points[2])).x-4,y:e.y-4}},events:{drag:function(t,e){var i=this.chart.pointer.getCoordinates(t);t=i.xAxis[0].value,i=i.yAxis[0].value;var s=e.options.shapes[0].points;s[1].x=t,s[2].x=t,s[2].y=i,s[3].y=i,e.options.shapes[0].points=s,e.redraw(!1)}}}]},e.annotationsOptions,e.bindings.rectangleAnnotation.annotationsOptions))},steps:[function(t,e){var i=e.options.shapes[0].points,s=this.chart.pointer.getCoordinates(t);t=s.xAxis[0].value,s=s.yAxis[0].value,i[1].x=t,i[2].x=t,i[2].y=s,i[3].y=s,e.update({shapes:[{points:i}]})}]},labelAnnotation:{className:"highcharts-label-annotation",start:function(e){e=this.chart.pointer.getCoordinates(e);var i=this.chart.options.navigation;return this.chart.addAnnotation(f({langKey:"label",labelOptions:{format:"{y:.2f}"},labels:[{point:{xAxis:0,yAxis:0,x:e.xAxis[0].value,y:e.yAxis[0].value},overflow:"none",crop:!0,controlPoints:[{symbol:"triangle-down",positioner:function(e){return e.graphic.placed?{x:(e=t.Annotation.MockPoint.pointToPixels(e.points[0])).x-this.graphic.width/2,y:e.y-this.graphic.height/2}:{x:0,y:-9e7}},events:{drag:function(t,e){t=this.mouseMoveToTranslation(t),e.translatePoint(t.x,t.y),e.annotation.labels[0].options=e.options,e.redraw(!1)}}},{symbol:"square",positioner:function(t){return t.graphic.placed?{x:t.graphic.alignAttr.x-this.graphic.width/2,y:t.graphic.alignAttr.y-this.graphic.height/2}:{x:0,y:-9e7}},events:{drag:function(t,e){t=this.mouseMoveToTranslation(t),e.translate(t.x,t.y),e.annotation.labels[0].options=e.options,e.redraw(!1)}}}]}]},i.annotationsOptions,i.bindings.labelAnnotation.annotationsOptions))}}},events:{},annotationsOptions:{}}})})),e(t,"annotations/popup.js",[t["parts/Globals.js"],t["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.isArray,n=e.isObject,o=e.isString,r=e.objectEach,a=e.pick,h=t.addEvent,l=t.createElement;e=t.wrap;var c=/\d/g;e(t.Pointer.prototype,"onContainerMouseDown",(function(t,e){var i=e.target&&e.target.className;o(i)&&0<=i.indexOf("highcharts-popup-field")||t.apply(this,Array.prototype.slice.call(arguments,1))})),t.Popup=function(t,e){this.init(t,e)},t.Popup.prototype={init:function(t,e){this.container=l("div",{className:"highcharts-popup"},null,t),this.lang=this.getLangpack(),this.iconsURL=e,this.addCloseBtn()},addCloseBtn:function(){var t=this,e=l("div",{className:"highcharts-popup-close"},null,this.container);e.style["background-image"]="url("+this.iconsURL+"close.svg)",["click","touchstart"].forEach((function(i){h(e,i,(function(){t.closePopup()}))}))},addColsContainer:function(t){var e=l("div",{className:"highcharts-popup-lhs-col"},null,t);return t=l("div",{className:"highcharts-popup-rhs-col"},null,t),l("div",{className:"highcharts-popup-rhs-col-wrapper"},null,t),{lhsCol:e,rhsCol:t}}
1,addInput:function(t,e,i,s){var n=t.split(".");n=n[n.length-1];var o=this.lang;(e="highcharts-"+e+"-"+n).match(c)||l("label",{innerHTML:o[n]||n,htmlFor:e},null,i),l("input",{name:e,value:s[0],type:s[1],className:"highcharts-popup-field"},null,i).setAttribute("highcharts-data-name",t)},addButton:function(t,e,i,s,n){var o=this,r=this.closePopup,a=this.getFields,c=l("button",{innerHTML:e},null,t);return["click","touchstart"].forEach((function(t){h(c,t,(function(){return r.call(o),s(a(n,i))}))})),c},getFields:function(t,e){var i,s=t.querySelectorAll("input"),n=t.querySelectorAll("#highcharts-select-series > option:checked")[0];t=t.querySelectorAll("#highcharts-select-volume > option:checked")[0];var o={actionType:e,linkedTo:n&&n.getAttribute("value"),fields:{}};return[].forEach.call(s,(function(t){i=t.getAttribute("highcharts-data-name"),t.getAttribute("highcharts-data-series-id")?o.seriesId=t.value:i?o.fields[i]=t.value:o.type=t.value})),t&&(o.fields["params.volumeSeriesID"]=t.getAttribute("value")),o},showPopup:function(){var t=this.container,e=t.querySelectorAll(".highcharts-popup-close")[0];t.innerHTML="",0<=t.className.indexOf("highcharts-annotation-toolbar")&&(t.classList.remove("highcharts-annotation-toolbar"),t.removeAttribute("style")),t.appendChild(e),t.style.display="block"},closePopup:function(){this.popup.container.style.display="none"},showForm:function(t,e,i,s){this.popup=e.navigationBindings.popup,this.showPopup(),"indicators"===t&&this.indicators.addForm.call(this,e,i,s),"annotation-toolbar"===t&&this.annotations.addToolbar.call(this,e,i,s),"annotation-edit"===t&&this.annotations.addForm.call(this,e,i,s),"flag"===t&&this.annotations.addForm.call(this,e,i,s,!0)},getLangpack:function(){return t.getOptions().lang.navigation.popup},annotations:{addToolbar:function(t,e,i){var s=this,n=this.lang,o=this.popup.container,r=this.show
1Form;-1===o.className.indexOf("highcharts-annotation-toolbar")&&(o.className+=" highcharts-annotation-toolbar"),o.style.top=t.plotTop+10+"px",l("span",{innerHTML:a(n[e.langKey]||e.langKey,e.shapes&&e.shapes[0].type)},null,o);var h=this.addButton(o,n.removeButton||"remove","remove",i,o);h.className+=" highcharts-annotation-remove-button",h.style["background-image"]="url("+this.iconsURL+"destroy.svg)",(h=this.addButton(o,n.editButton||"edit","edit",(function(){r.call(s,"annotation-edit",t,e,i)}),o)).className+=" highcharts-annotation-edit-button",h.style["background-image"]="url("+this.iconsURL+"edit.svg)"},addForm:function(t,e,i,s){var n=this.popup.container,o=this.lang;l("h2",{innerHTML:o[e.langKey]||e.langKey,className:"highcharts-popup-main-title"},null,n);var r=l("div",{className:"highcharts-popup-lhs-col highcharts-popup-lhs-full"},null,n),a=l("div",{className:"highcharts-popup-bottom-row"},null,n);this.annotations.addFormFields.call(this,r,t,"",e,[],!0),this.addButton(a,s?o.addButton||"add":o.saveButton||"save",s?"add":"save",i,n)},addFormFields:function(t,e,i,o,a,h){var d,p,u=this,f=this.annotations.addFormFields,g=this.addInput,m=this.lang;r(o,(function(o,r){d=""!==i?i+"."+r:r,n(o)&&(!s(o)||s(o)&&n(o[0])?((p=m[r]||r).match(c)||a.push([!0,p,t]),f.call(u,t,e,d,o,a,!1)):a.push([u,d,"annotation",t,o]))})),h&&(a=a.sort((function(t){return t[1].match(/format/g)?-1:1})),a.forEach((function(t){!0===t[0]?l("span",{className:"highcharts-annotation-title",innerHTML:t[1]},null,t[2]):g.apply(t[0],t.splice(1))})))}},indicators:{addForm:function(t,e,i){var s=this.indicators,n=this.lang;this.tabs.init.call(this,t),e=this.popup.container.querySelectorAll(".highcharts-tab-item-content"),this.addColsContainer(e[0]),s.addIndicatorList.call(this,t,e[0],"add");var o=e[0].querySelectorAll(".highcharts-popup-rhs-col")[0];this.addButton(o,n.addButton||"add","add",i,o),this.addColsContainer(e[1]),s.addIndicatorList.call(this,t,e[1],"edit"),o=e[1].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(o,n.saveButton||"save","edit",i,o),this.addButton(o,n.removeButton||"remove","remove",i,o)},addIndicatorList:function(t,e,i){var s=this,n=e.querySelectorAll(".highcharts-popup-lhs-col")[0];e=e.querySelectorAll(".highcharts-popup-rhs-col")[0];var o,a="edit"===i,c=a?t.series:t.options.plotOptions,d=this.indicators.addFormFields,p=l("ul",{className:"highcharts-indicator-list"}
1,null,n),u=e.querySelectorAll(".highcharts-popup-rhs-col-wrapper")[0];r(c,(function(e,i){var n=e.options;if(e.params||n&&n.params){var r=s.indicators.getNameType(e,i),f=r.type;o=l("li",{className:"highcharts-indicator-list",innerHTML:r.name},null,p),["click","touchstart"].forEach((function(i){h(o,i,(function(){d.call(s,t,a?e:c[f],r.type,u),a&&e.options&&l("input",{type:"hidden",name:"highcharts-id-"+f,value:e.options.id},null,u).setAttribute("highcharts-data-series-id",e.options.id)}))}))}})),0<p.childNodes.length&&p.childNodes[0].click()},getNameType:function(e,i){var s=e.options,n=t.seriesTypes;return n=n[i]&&n[i].prototype.nameBase||i.toUpperCase(),s&&s.type&&(i=e.options.type,n=e.name),{name:n,type:i}},listAllSeries:function(t,e,s,n,o){var r;t="highcharts-"+e+"-type-"+t,l("label",{innerHTML:this.lang[e]||e,htmlFor:t},null,n);var a=l("select",{name:t,className:"highcharts-popup-field"},null,n);a.setAttribute("id","highcharts-select-"+e),s.series.forEach((function(t){!(r=t.options).params&&r.id&&"highcharts-navigator-series"!==r.id&&l("option",{innerHTML:r.name||r.id,value:r.id},null,a)})),i(o)&&(a.value=o)},addFormFields:function(t,e,i,s){var n=e.params||e.options.params,o=this.indicators.getNameType;s.innerHTML="",l("h3",{className:"highcharts-indicator-title",innerHTML:o(e,i).name},null,s),l("input",{type:"hidden",name:"highcharts-type-"+i,value:i},null,s),this.indicators.listAllSeries.call(this,i,"series",t,s,e.linkedParent&&n.volumeSeriesID),n.volumeSeriesID&&this.indicators.listAllSeries.call(this,i,"volume",t,s,e.linkedParent&&e.linkedParent.options.id),this.indicators.addParamInputs.call(this,t,"params",n,i,s)},addParamInputs:function(t,e,i,s,o){var a,h=this,l=this.indicators.addParamInputs,c=this.addInput;r(i,(function(i,r){a=e+"."+r,n(i)?l.call(h,t,a,i,s,o):"params.volumeSeriesID"!==a&&c.call(h,a,s,o,[i,"text"])}))},getAmount:function(){var t=0;return r(this.series,(function(e){var i=e.options;(e.params||i&&i.params)&&t++})),t}},tabs:{init:function(t){var e=this.tabs;t=this.indicators.getAmount.call(t);var i=e.addMenuItem.call(this,"add");e.addMenuItem.call(this,"edit",t),e.addContentItem.call(this,"add"),e.addContentItem.call(this,"edit"),e.switchTabs.call(this,t),e.selectTab.call(this,i,0)},addMenuItem:function(t,e){var i=this.popup.container,s="highcharts-tab-item",n=this.lang;return 0===e&&(s+=" highcharts-tab-disabled"),(e=l("span",{innerHTML:n[t+"Button"]||t,className:s},null,i)).setAttribute("highcharts-data-tab-type",t),e},addContentItem:function(){return l("div",{className:"highcharts-tab-item-content"},null,this.popup.container)},switchTabs:function(t){var e=this;this.popup.container.querySelectorAll(".highcharts-tab-item").forEach((function(i,s){"edit"===i.getAttribute("highcharts-data-tab-type")&&0===t||["click","touchstart"].forEach((function(t){h(i,t,(function(){e.tabs.deselectAll.call(e),e.tabs.selectTab.call(e,this,s)}))}))}))},selectTab:function(t,e){var i=this.popup.container.querySelectorAll(".highcharts-tab-item-content");t.className+=" highcharts-tab-item-active",i[e].className+=" highcharts-tab-item-show"},deselectAll:function(){var t,e=this.popup.container,i=e.querySelectorAll(".highcharts-tab-item");for(e=e.querySelectorAll(".highcharts-tab-item-content"),t=0;t<i.length;t++)i[t].classList.remove("highcharts-tab-item-active"),e[t].classList.remove("highcharts-tab-item-show")}}},h(t.NavigationBindings,"showPopup",(function(e){this.popup||(this.popup=new t.Popup(this.chart.container,this.chart.options.navigation.iconsURL||this.chart.options.stockTools&&this.chart.options.stockTools.gui.iconsURL||"https://code.highcharts.com/7.2.2/gfx/stock-icons/")),this.popup.showForm(e.formType,this.chart,e.options,e.onSubmit)})),h(t.NavigationBindings,"closePopup",(function(){this.popup&&this.popup.closePopup()}))})),e(t,"masters/modules/annotations.src.js",[],(function(){}))},t.exports?(o.default=o,t.exports=o):(s=[i(47531)],void 0===(n=function(t){return o(t),o.Highcharts=t,o}.apply(e,s))||(t.exports=n))},33876:function(t,e,i){var s,n,o;o=function(t){function e(t,e,i,s){t.hasOwnProperty(e)||(t[e]=s.apply(null,i))}e(t=t?t._modules:{},"modules/full-screen.src.js",[t["parts/Globals.js"]],(function(t){(t.FullScreen=function(t){this.init(t.parentNode)}).prototype={init:function(t){var e;t.requestFullscreen?e=t.requestFullscreen():t.mozRequestFullScreen?e=t.mozRequestFullScreen():t.webkitRequestFullscreen?e=t.webkitRequestFullscreen():t.msRequestFullscreen&&(e=t.msRequestFullscreen()),e&&e.catch((function(){alert("Full screen is not supported inside a frame")}))}}})),e(t,"mixins/navigation.js",[],(function(){return{initUpdate:function(t){t.navigation||(t.navigation={updates:[],update:function(t,e){this.updates.forEac
1h((function(i){i.update.call(i.context,t,e)}))}})},addUpdate:function(t,e){e.navigation||this.initUpdate(e),e.navigation.updates.push({update:t,context:e})}}})),e(t,"modules/exporting.src.js",[t["parts/Globals.js"],t["parts/Utilities.js"],t["mixins/navigation.js"]],(function(t,e,i){var s=e.discardElement,n=e.extend,o=e.isObject,r=e.objectEach,a=e.pick;e=t.defaultOptions;var h=t.doc,l=t.Chart,c=t.addEvent,d=t.removeEvent,p=t.fireEvent,u=t.createElement,f=t.css,g=t.merge,m=t.isTouchDevice,v=t.win,x=v.navigator.userAgent,y=t.SVGRenderer,b=t.Renderer.prototype.symbols,k=/Edge\/|Trident\/|MSIE /.test(x),w=/firefox/i.test(x);n(e.lang,{viewFullscreen:"View in full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"}),e.navigation||(e.navigation={}),g(!0,e.navigation,{buttonOptions:{theme:{},symbolSize:14,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,verticalAlign:"top",width:24}}),g(!0,e.navigation,{menuStyle:{border:"1px solid #999999",background:"#ffffff",padding:"5px 0"},menuItemStyle:{padding:"0.5em 1em",color:"#333333",background:"none",fontSize:m?"14px":"11px",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#335cad",color:"#ffffff"},buttonOptions:{symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{padding:5}}}),e.exporting={type:"image/png",url:"https://export.highcharts.com/",printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:"viewFullscreen printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG".split(" ")}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen=new t.FullScreen(this.container)}},printChart:{textKey:"printChart",onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}}},t.post=function(t,e,i){var n=u("form",g({method:"post",action:t,enctype:"multipart/form-data"},i),{display:"none"},h.body);r(e,(function(t,e){u("input",{type:"hidden",name:e,value:t},null,n)})),n.submit(),s(n)},n(l.prototype,{sanitizeSVG:function(t,e){var i=t.indexOf("</svg>")+6,s=t.substr(i);return t=t.substr(0,i),e&&e.exporting&&e.exporting.allowHTML&&s&&(s='<foreignObject x="0" y="0" width="'+e.chart.width+'" height="'+e.chart.height+'"><body xmlns="http://www.w3.org/1999/xhtml">'+s+"</body></foreignObject>",t=t.replace("</svg>",s+"</svg>")),t=t.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|&quot;)(.*?)("|&quot;);?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (|NS[0-9]+:)href=/g," xlink:href=").replace(/\n/," ").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g,'$1="rgb($2)" $1-opacity="$3"').replace(/&nbsp;/g," ").replace(/&shy;/g,"­"),this.ieSanitizeSVG&&(t=this.ieSanitizeSVG(t)),t},getChartHTML:function(){return this.styledMode&&this.inlineStyles(),this.container.innerHTML},getSVG:function(e){var i,o=g(this.options,e);o.plotOptions=g(this.userOptions.plotOptions,e&&e.plotOptions),o.time=g(this.userOptions.time,e&&e.time);var r=u("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},h.body),a=this.renderTo.style.width,l=this.renderTo.style.height;a=o.exporting.sourceWidth||o.chart.width||/px$/.test(a)&&parseInt(a,10)||(o.isGantt?800:600),l=o.exporting.sourceHeight||o.chart.height||/px$/.test(l)&&parseInt(l,10)||400,n(o.chart,{animation:!1,renderTo:r,forExport:!0,renderer:"SVGRenderer",width:a,height:l}),o.exporting.enabled=!1,delete o.data,o.series=[],this.series.forEac
1h((function(t){(i=g(t.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:t.visible})).isInternal||o.series.push(i)})),this.axes.forEach((function(e){e.userOptions.internalKey||(e.userOptions.internalKey=t.uniqueKey())}));var c=new t.Chart(o,this.callback);return e&&["xAxis","yAxis","series"].forEach((function(t){var i={};e[t]&&(i[t]=e[t],c.update(i))})),this.axes.forEach((function(e){var i=t.find(c.axes,(function(t){return t.options.internalKey===e.userOptions.internalKey})),s=e.getExtremes(),n=s.userMin;s=s.userMax,i&&(void 0!==n&&n!==i.min||void 0!==s&&s!==i.max)&&i.setExtremes(n,s,!0,!1)})),a=c.getChartHTML(),p(this,"getSVG",{chartCopy:c}),a=this.sanitizeSVG(a,o),o=null,c.destroy(),s(r),a},getSVGForExport:function(t,e){var i=this.options.exporting;return this.getSVG(g({chart:{borderRadius:0}},i.chartOptions,e,{exporting:{sourceWidth:t&&t.sourceWidth||i.sourceWidth,sourceHeight:t&&t.sourceHeight||i.sourceHeight}}))},getFilename:function(){var t=this.userOptions.title&&this.userOptions.title.text,e=this.options.exporting.filename;return e||("string"==typeof t&&(e=t.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z0-9\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!e||5>e.length)&&(e="chart"),e)},exportChart:function(e,i){i=this.getSVGForExport(e,i),e=g(this.options.exporting,e),t.post(e.url,{filename:e.filename||this.getFilename(),type:e.type,width:e.width||0,scale:e.scale,svg:i},e.formAttributes)},print:function(){function t(t){(i.fixedDiv?[i.fixedDiv,i.scrollingContainer]:[i.container]).forEach((function(e){t.appendChild(e)}))}var e,i=this,s=[],n=h.body,o=n.childNodes,r=i.options.exporting.printMaxWidth;if(!i.isPrinting){if(i.isPrinting=!0,i.pointer.reset(null,0),p(i,"beforePrint"),e=r&&i.chartWidth>r){var a=[i.options.chart.width,void 0,!1];i.setSize(r,void 0,!1)}[].forEach.call(o,(function(t,e){1===t.nodeType&&(s[e]=t.style.display,t.style.display="none")})),t(n),setTimeout((function(){v.focus(),v.print(),setTimeout((function(){t(i.renderTo),[].forEach.call(o,(function(t,e){1===t.nodeType&&(t.style.display=s[e]||"")})),i.isPrinting=!1,e&&i.setSize.apply(i,a),p(i,"afterPrint")}),1e3)}),1)}},contextMenu:function(e,i,s,r,a,l,d){var g=this,m=g.options.navigation,x=g.chartWidth,y=g.chartHeight,b="cache-"+e,k=g[b],w=Math.max(a,l);if(!k){g.exportContextMenu=g[b]=k=u("div",{className:e},{position:"absolute",zIndex:1e3,padding:w+"px",pointerEvents:"auto"},g.fixedDiv||g.container);var M=u("div",{className:"highcharts-menu"},null,k);g.styledMode||f(M,n({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},m.menuStyle)),k.hideMenu=function(){f(k,{display:"none"}),d&&d.setState(0),g.openMenu=!1,f(g.renderTo,{overflow:"hidden"}),t.clearTimeout(k.hideTimer),p(g,"exportMenuHidden")},g.exportEvents.push(c(k,"mouseleave",(function(){k.hideTimer=v.setTimeout(k.hideMenu,500)})),c(k,"mouseenter",(function(){t.clearTimeout(k.hideTimer)})),c(h,"mouseup",(function(t){g.pointer.inClass(t.target,e)||k.hideMenu()})),c(k,"click",(function(){g.openMenu&&k.hideMenu()}))),i.forEach((function(t){if("string"==typeof t&&(t=g.options.exporting.menuItemDefinitions[t]),o(t,!0)){if(t.separator)var e=u("hr",null,null,M);else e=u("div",{className:"highcharts-menu-item",onclick:function(e){e&&e.stopPropagation(),k.hideMenu(),t.onclick&&t.onclick.apply(g,arguments)},innerHTML:t.text||g.options.lang[t.textKey]},null,M),g.styledMode||(e.onmouseover=function(){f(this,m.menuItemHoverStyle)},e.onmouseout=function(){f(this,m.menuItemStyle)},f(e,n({cursor:"pointer"},m.menuItemStyle)));g.exportDivElements.push(e)}})),g.exportDivElements.push(M,k),g.exportMenuWidth=k.offsetWidth,g.exportMenuHeight=k.offsetHeight}i={display:"block"},s+g.exportMenuWidth>x?i.right=x-s-a-w+"px":i.left=s-w+"px",r+l+g.exportMenuHeight>y&&"top"!==d.alignOptions.verticalAlign?i.bottom=y-r-w+"px":i.top=r+l-w+"px",f(k,i),f(g.renderTo,{overflow:""}),g.openMenu=!0,p(g,"exportMenuShown")},addButton:function(t){var e=this,i=e.renderer,s=g(e.options.navigation.buttonOptions,t),o=s.onclick,r=s.menuItems,h=s.symbolSize||12;if(e.btnCount||(e.btnCount=0),e.exportDivElements||(e.exportDivElements=[],e.exportSVGElements=[]),!1!==s.enabled){var l,c=s.theme,d=c.states,p=d&&d.hover;d=d&&d.select,e.styledMode||(c.fill=a(c.fill,"#ffffff"),c.stroke=a(c.stroke,"none")),delete c.states,o?l=function(t){t&&t.stopPropagation(),o.call(e,t)}:r&&(l=function(t){t&&t.stopPropagation(),e.contextMenu(u.menuClassName,r,u.translateX,u.translateY,u.width,u.height,u),u.setState(2)}),s.text&&s.symbol?c.paddingLeft=a(c.paddingLeft,25):s.text||n(c,{width:s.width,height:s.height,padding:0}),e.styledMode||(c["stroke-linecap"]="round",c.fill=a(c.fill,"#ffffff"),c.stroke=a(c.stroke,"none"));var u=i.button(s.text,0,0,l,c,p,d).addClass(t.className).attr({title:a(e.options.lang[s._titleKey||s.titleKey],"")});if(u.menuClassName=t.menuClassName||"highcharts-menu-"+e.btnCount++,s.symbol){var f=i.symbol(s.symbol,s.symbolX-h/2,s.symbolY-h/2,h,h,{width:h,height:h}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(u);e.styledMode||f.attr({stroke:s.symbolStroke,fill:s.symbolFill,"stroke-width":s.symbolStrokeWidth||1})}u.add(e.exportingGroup).align(n(s,{width:u.width,x:a(s.x,e.buttonOffset)}),!0,"spacingBox"),e.buttonOffset+=(u.width+s.buttonSpacing)*("right"===s.align?-1:1),e.exportSVGElements.push(u,f)}},destroyExport:function(e){var i=e?e.target:this;e=i.exportSVGElements;var n,o=i.exportDivElements,r=i.exportEvents;e&&(e.forEach((function(t,e){t&&(t.onclick=t.ontouchstart=null,n="cache-"+t.menuClassName,i[n]&&delete i[n],i.exportSVGElements[e]=t.destroy())})),e.length=0),i.exportingGroup&&(i.exportingGroup.destroy(),delete i.exportingGroup),o&&(o.forEac
1h((function(e,n){t.clearTimeout(e.hideTimer),d(e,"mouseleave"),i.exportDivElements[n]=e.onmouseout=e.onmouseover=e.ontouchstart=e.onclick=null,s(e)})),o.length=0),r&&(r.forEach((function(t){t()})),r.length=0)}}),y.prototype.inlineToAttributes="fill stroke strokeLinecap strokeLinejoin strokeWidth textAnchor x y".split(" "),y.prototype.inlineBlacklist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/],y.prototype.unstyledElements=["clipPath","defs","desc"],l.prototype.inlineStyles=function(){function t(t){return t.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))}var e,i=this.renderer,s=i.inlineToAttributes,n=i.inlineBlacklist,o=i.inlineWhitelist,a=i.unstyledElements,l={};i=h.createElement("iframe"),f(i,{width:"1px",height:"1px",visibility:"hidden"}),h.body.appendChild(i);var c=i.contentWindow.document;c.open(),c.write('<svg xmlns="http://www.w3.org/2000/svg"></svg>'),c.close(),function i(h){function d(e,i){if(p=u=!1,o){for(f=o.length;f--&&!u;)u=o[f].test(i);p=!u}for("transform"===i&&"none"===e&&(p=!0),f=n.length;f--&&!p;)p=n[f].test(i)||"function"==typeof e;p||y[i]===e&&"svg"!==h.nodeName||l[h.nodeName][i]===e||(-1!==s.indexOf(i)?h.setAttribute(t(i),e):m+=t(i)+":"+e+";")}var p,u,f,m="";if(1===h.nodeType&&-1===a.indexOf(h.nodeName)){var x=v.getComputedStyle(h,null),y="svg"===h.nodeName?{}:v.getComputedStyle(h.parentNode,null);if(!l[h.nodeName]){e=c.getElementsByTagName("svg")[0];var b=c.createElementNS(h.namespaceURI,h.nodeName);e.appendChild(b),l[h.nodeName]=g(v.getComputedStyle(b,null)),"text"===h.nodeName&&delete l.text.fill,e.removeChild(b)}if(w||k)for(var M in x)d(x[M],M);else r(x,d);m&&(x=h.getAttribute("style"),h.setAttribute("style",(x?x+";":"")+m)),"svg"===h.nodeName&&h.setAttribute("stroke-width","1px"),"text"!==h.nodeName&&[].forEach.call(h.children||h.childNodes,i)}}(this.container.querySelector("svg")),e.parentNode.removeChild(e)},b.menu=function(t,e,i,s){return["M",t,e+2.5,"L",t+i,e+2.5,"M",t,e+s/2+.5,"L",t+i,e+s/2+.5,"M",t,e+s-1.5,"L",t+i,e+s-1.5]},b.menuball=function(t,e,i,s){return s=s/3-2,[].concat(this.circle(i-s,e,s,s),this.circle(i-s,e+s+4,s,s),this.circle(i-s,e+2*(s+4),s,s))},l.prototype.renderExporting=function(){var t=this,e=t.options.exporting,i=e.buttons,s=t.isDirtyExporting||!t.exportSVGElements;t.buttonOffset=0,t.isDirtyExporting&&t.destroyExport(),s&&!1!==e.enabled&&(t.exportEvents=[],t.exportingGroup=t.exportingGroup||t.renderer.g("exporting-group").attr({zIndex:3}).add(),r(i,(function(e){t.addButton(e)})),t.isDirtyExporting=!1),c(t,"destroy",t.destroyExport)},c(l,"init",(function(){var t=this;t.exporting={update:function(e,i){t.isDirtyExporting=!0,g(!0,t.options.exporting,e),a(i,!0)&&t.redraw()}},i.addUpdate((function(e,i){t.isDirtyExporting=!0,g(!0,t.options.navigation,e),a(i,!0)&&t.redraw()}),t)})),l.prototype.callbacks.push((function(t){t.renderExporting(),c(t,"redraw",t.renderExporting)}))})),e(t,"masters/modules/exporting.src.js",[],(function(){}))},t.exports?(o.default=o,t.exports=o):(s=[i(47531)],void 0===(n=function(t){return o(t),o.Highcharts=t,o}.apply(e,s))||(t.exports=n))},47531:function(t,e,i){var s,n,o;n="undefined"!=typeof window?window:this,o=function(t){function e(t,e,i,s){t.hasOwnProperty(e)||(t[e]=s.apply(null,i))}var i={};return e(i,"parts/Globals.js",[],(function(){var e=void 0!==t?t:"undefined"!=typeof window?window:{},i=e.document,s=e.navigator&&e.navigator.userAgent||"",n=i&&i.createElementNS&&!!i.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o=/(edge|msie|trident)/i.test(s)&&!e.opera,r=-1!==s.indexOf("Firefox"),a=-1!==s.indexOf("Chrome"),h=r&&4>parseInt(s.split("Firefox/")[1],10);return{product:"Highcharts",version:"7.2.2",deg2rad:2*Math.PI/360,doc:i,hasBidiBug:h,hasTouch:!!e.TouchEvent,isMS:o,isWebKit:-1!==s.indexOf("AppleWebKit"),isFirefox:r,isChrome:a,isSafari:!a&&-1!==s.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(s),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:n,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}})),e(i,"parts/Utilities.js",[i["parts/Globals.js"]],(function(t){function e(t,e){return parseInt(t,e||10)}function i(t){return"string"==typeof t}function s(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function n(t,e){return!(!t||"object"!=typeof t||e&&s(t))}function o(t){return n(t)&&"number"==typeof t.nodeType}function r(t){var e=t&&t.constructor;return!(!n(t,!0)||o(t)||!e||!e.name||"Object"===e.name)}function a(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function h(t){return null!=t}function l(t,e,s){var n;return i(e)?h(s)?t.setAttribute(e,s):t&&t.getAttribute&&((n=t.getAttribute(e))||"class"!==e||(n=t.getAttribute(e+"Name"))):p(e,(function(e,i){t.setAttribute(i,e)})),n}function c(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function d(){for(var t=arguments,e=t.length,i=0;i<e;i++){var s=t[i];if(null!=s)return s}}
1function p(t,e,i){for(var s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}t.timers=[];var u=t.charts,f=t.doc,g=t.win;return t.error=function(e,i,s,n){var o=a(e),r=o?"Highcharts error #"+e+": www.highcharts.com/errors/"+e+"/":e.toString(),h=function(){if(i)throw Error(r);g.console&&console.log(r)};if(void 0!==n){var l="";o&&(r+="?"),t.objectEach(n,(function(t,e){l+="\n"+e+": "+t,o&&(r+=encodeURI(e)+"="+encodeURI(t))})),r+=l}s?t.fireEvent(s,"displayError",{code:e,message:r,params:n},h):h()},t.Fx=function(t,e,i){this.options=e,this.elem=t,this.prop=i},t.Fx.prototype={dSetter:function(){var t=this.paths[0],e=this.paths[1],i=[],s=this.now,n=t.length;if(1===s)i=this.toD;else if(n===e.length&&1>s)for(;n--;){var o=parseFloat(t[n]);i[n]=isNaN(o)||"A"===e[n-4]||"A"===e[n-5]?e[n]:s*parseFloat(""+(e[n]-o))+o}else i=e;this.elem.attr("d",i,null,!0)},update:function(){var t=this.elem,e=this.prop,i=this.now,s=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,s&&s.call(t,i,this)},run:function(e,i,s){var n=this,o=n.options,r=function(t){return!r.stopped&&n.step(t)},a=g.requestAnimationFrame||function(t){setTimeout(t,13)},h=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&a(h)};e!==i||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=i,this.unit=s,this.now=this.start,this.pos=0,r.elem=this.elem,r.prop=this.prop,r()&&1===t.timers.push(r)&&a(h)):(delete o.curAnim[this.prop],o.complete&&0===Object.keys(o.curAnim).length&&o.complete.call(this.elem))},step:function(t){var e=+new Date,i=this.options,s=this.elem,n=i.complete,o=i.duration,r=i.curAnim;if(s.attr&&!s.element)t=!1;else if(t||e>=o+this.startTime){this.now=this.end,this.pos=1,this.update();var a=r[this.prop]=!0;p(r,(function(t){!0!==t&&(a=!1)})),a&&n&&n.call(s),t=!1}else this.pos=i.easing((e-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},initPath:function(t,e,i){function s(t){for(h=t.length;h--;){var e="M"===t[h]||"L"===t[h],i=/[a-zA-Z]/.test(t[h+3]);e&&i&&t.splice(h+1,0,t[h+1],t[h+2],t[h+1],t[h+2])}}function n(t,e){for(;t.length<v;){t[0]=e[v-t.length];var i=t.slice(0,p);[].splice.apply(t,[0,0].concat(i)),u&&(i=t.slice(t.length-p),[].splice.apply(t,[t.length,0].concat(i)),h--)}t[0]="M"}function o(t,e){for(var i=(v-t.length)/p;0<i&&i--;)(r=t.slice().splice(t.length/f-p,p*f))[0]=e[v-p-i*p],d&&(r[p-6]=r[p-2],r[p-5]=r[p-1]),[].splice.apply(t,[t.length/f,0].concat(r)),u&&i--}e=e||"";var r,h,l=t.startX,c=t.endX,d=-1<e.indexOf("C"),p=d?7:3;e=e.split(" "),i=i.slice();var u=t.isArea,f=u?2:1;if(d&&(s(e),s(i)),l&&c){for(h=0;h<l.length;h++){if(l[h]===c[0]){var g=h;break}if(l[0]===c[c.length-l.length+h]){g=h;var m=!0;break}if(l[l.length-1]===c[c.length-l.length+h]){g=l.length-h;break}}void 0===g&&(e=[])}if(e.length&&a(g)){var v=i.length+g*f*p;m?(n(e,i),o(i,e)):(n(i,e),o(e,i))}return[e,i]},fillSetter:function(){t.Fx.prototype.strokeSetter.apply(this,arguments)},strokeSetter:function(){this.elem.attr(this.prop,t.color(this.start).tweenTo(t.color(this.end),this.pos),null,!0)}},t.merge=function(){var t,e=arguments,i={},s=function(t,e){return"object"!=typeof t&&(t={}),p(e,(function(i,a){!n(i,!0)||r(i)||o(i)?t[a]=e[a]:t[a]=s(t[a]||{},i)})),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var a=e.length;for(t=0;t<a;t++)i=s(i,e[t]);return i},t.clearTimeout=function(t){h(t)&&clearTimeout(t)},t.css=function(e,i){t.isMS&&!t.svg&&i&&void 0!==i.opacity&&(i.filter="alpha(opacity="+100*i.opacity+")"),c(e.style,i)},t.createElement=function(e,i,s,n,o){e=f.createElement(e);var r=t.css;return i&&c(e,i),o&&r(e,{padding:"0",border:"none",margin:"0"}),s&&r(e,s),n&&n.appendChild(e),e},t.extendClass=function(t,e){var i=function(){};return c(i.prototype=new t,e),i},t.pad=function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},t.relativeLength=function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},t.wrap=function(t,e,i){var s=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,n=this;return n.proceed=function(){s.apply(n,arguments.length?arguments:e)},t.unshift(s),t=i.apply(this,t),n.proceed=null,t}},t.datePropsToTimestamps=function(e){p(e,(function(i,o){n(i)&&"function"==typeof i.getTime?e[o
1]=i.getTime():(n(i)||s(i))&&t.datePropsToTimestamps(i)}))},t.formatSingle=function(e,i,s){var n=t.defaultOptions.lang;return/f$/.test(e)?(s=(s=e.match(/\.([0-9])/))?s[1]:-1,null!==i&&(i=t.numberFormat(i,s,n.decimalPoint,-1<e.indexOf(",")?n.thousandsSep:""))):i=(s||t.time).dateFormat(e,i),i},t.format=function(e,i,s){for(var n,o,r,a,h,l="{",c=!1,d=[];e&&-1!==(l=e.indexOf(l));){if(n=e.slice(0,l),c){for(a=(o=(n=n.split(":")).shift().split(".")).length,h=i,r=0;r<a;r++)h&&(h=h[o[r]]);n.length&&(h=t.formatSingle(n.join(":"),h,s)),d.push(h)}else d.push(n);e=e.slice(l+1),l=(c=!c)?"}":"{"}return d.push(e),d.join("")},t.getMagnitude=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},t.normalizeTickInterval=function(e,i,s,n,o){var r=e,a=e/(s=d(s,1));for(i||(i=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===n&&(1===s?i=i.filter((function(t){return 0==t%1})):.1>=s&&(i=[1/s]))),n=0;n<i.length&&(r=i[n],!(o&&r*s>=e||!o&&a<=(i[n]+(i[n+1]||i[n]))/2));n++);return t.correctFloat(r*s,-Math.round(Math.log(.001)/Math.LN10))},t.stableSort=function(t,e){var i,s,n=t.length;for(s=0;s<n;s++)t[s].safeI=s;for(t.sort((function(t,s){return 0===(i=e(t,s))?t.safeI-s.safeI:i})),s=0;s<n;s++)delete t[s].safeI},t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},t.animObject=function(e){return n(e)?t.merge(e):{duration:e?500:0}},t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},t.numberFormat=function(i,s,n,o){i=+i||0,s=+s;var r=t.defaultOptions.lang,h=(i.toString().split(".")[1]||"").split("e")[0].length,l=i.toString().split("e");if(-1===s)s=Math.min(h,20);else if(a(s)){if(s&&l[1]&&0>l[1]){var c=s+ +l[1];0<=c?(l[0]=(+l[0]).toExponential(c).split("e")[0],s=c):(l[0]=l[0].split(".")[0]||0,i=20>s?(l[0]*Math.pow(10,l[1])).toFixed(s):0,l[1]=0)}}else s=2;var p=(Math.abs(l[1]?l[0]:i)+Math.pow(10,-Math.max(s,h)-1)).toFixed(s);return c=3<(h=String(e(p))).length?h.length%3:0,n=d(n,r.decimalPoint),o=d(o,r.thousandsSep),i=(0>i?"-":"")+(c?h.substr(0,c)+o:""),i+=h.substr(c).replace(/(\d{3})(?=\d)/g,"$1"+o),s&&(i+=n+p.slice(-s)),l[1]&&0!=+i&&(i+="e"+l[1]),i},Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getStyle=function(i,s,n){return"width"===s?(s=Math.min(i.offsetWidth,i.scrollWidth),(n=i.getBoundingClientRect&&i.getBoundingClientRect().width)<s&&n>=s-1&&(s=Math.floor(n)),Math.max(0,s-t.getStyle(i,"padding-left")-t.getStyle(i,"padding-right"))):"height"===s?Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-t.getStyle(i,"padding-top")-t.getStyle(i,"padding-bottom")):(g.getComputedStyle||t.error(27,!0),(i=g.getComputedStyle(i,void 0))&&(i=i.getPropertyValue(s),d(n,"opacity"!==s)&&(i=e(i))),i)},t.inArray=function(t,e,i){return e.indexOf(t,i)},t.find=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,s=t.length;for(i=0;i<s;i++)if(e(t[i],i))return t[i]},t.keys=Object.keys,t.offset=function(t){var e=f.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0}).top+(g.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(g.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},t.stop=function(e,i){for(var s=t.timers.length;s--;)t.timers[s].elem!==e||i&&i!==t.timers[s].prop||(t.timers[s].stopped=!0)},p({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(e,i){t[i]=function(t){return Array.prototype[e].apply(t,[].slice.call(arguments,1))}})),t.addEvent=function(e,i,s,n){void 0===n&&(n={});var o=e.addEventListener||t.addEventListenerPolyfill,r="function"==typeof e&&e.prototype?e.prototype.protoEvents=e.prototype.protoEvents||{}:e.hcEvents=e.hcEvents||{};return t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0),o&&o.call(e,i,s,!1),r[i]||(r[i]=[]),r[i].push({fn:s,order:"number"==typeof n.order?n.order:1/0}),r[i].sort((function(t,e){return t.order-e.order})),function(){t.removeEvent(e,i,s)}},t.removeEvent=function(e,i,s){function n(i,s){var n=e.removeEventListener||t.removeEventListenerPolyfill;n&&n.call(e,i,s,!1)}function o(t){var s;if(e.nodeName){if(i){var o={};o[i]=!0}else o=t;p(o,(function(e,i){if(t[i])for(s=t[i].length;s--;)n(i,t[i][s].fn)}))}}var r;["protoEvents","hcEvents"].forEach((function(t,a){var h=(a=a?e:e.prototype)&&a[t];h&&(i?(r=h[i]||[],s?(h[i]=r.filter((function(t){return s!==t.fn})),n(i,s)):(o(h),h[i]=[])):(o(h),a[t]={}))}))}
1,t.fireEvent=function(t,e,i,s){var n;if(i=i||{},f.createEvent&&(t.dispatchEvent||t.fireEvent)){var o=f.createEvent("Events");o.initEvent(e,!0,!0),c(o,i),t.dispatchEvent?t.dispatchEvent(o):t.fireEvent(e,o)}else i.target||c(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e}),function(e,s){void 0===e&&(e=[]),void 0===s&&(s=[]);var o=0,r=0,a=e.length+s.length;for(n=0;n<a;n++)!1===(e[o]?s[r]?e[o].order<=s[r].order?e[o++]:s[r++]:e[o++]:s[r++]).fn.call(t,i)&&i.preventDefault()}(t.protoEvents&&t.protoEvents[e],t.hcEvents&&t.hcEvents[e]);s&&!i.defaultPrevented&&s.call(t,i)},t.animate=function(e,i,s){var o,r,h,l="";if(!n(s)){var c=arguments;s={duration:c[2],easing:c[3],complete:c[4]}}a(s.duration)||(s.duration=400),s.easing="function"==typeof s.easing?s.easing:Math[s.easing]||Math.easeInOutSine,s.curAnim=t.merge(i),p(i,(function(n,a){t.stop(e,a),h=new t.Fx(e,s,a),r=null,"d"===a?(h.paths=h.initPath(e,e.d,i.d),h.toD=i.d,o=0,r=1):e.attr?o=e.attr(a):(o=parseFloat(t.getStyle(e,a))||0,"opacity"!==a&&(l="px")),r||(r=n),r&&r.match&&r.match("px")&&(r=r.replace(/px/g,"")),h.run(o,r,l)}))},t.seriesType=function(e,i,s,n,o){var r=t.getOptions(),a=t.seriesTypes;return r.plotOptions[e]=t.merge(r.plotOptions[i],s),a[e]=t.extendClass(a[i]||function(){},n),a[e].prototype.type=e,o&&(a[e].prototype.pointClass=t.extendClass(t.Point,o)),a[e]},t.uniqueKey=function(){var t=Math.random().toString(36).substring(2,9),e=0;return function(){return"highcharts-"+t+"-"+e++}}(),t.isFunction=function(t){return"function"==typeof t},g.jQuery&&(g.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[i(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):u[l(this[0],"data-highcharts-chart")]}),{arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},attr:l,defined:h,destroyObjectProperties:function(t,e){p(t,(function(i,s){i&&i!==e&&i.destroy&&i.destroy(),delete t[s]}))},discardElement:function(e){var i=t.garbageBin;i||(i=t.createElement("div")),e&&i.appendChild(e),i.innerHTML=""},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},extend:c,isArray:s,isClass:r,isDOMElement:o,isNumber:a,isObject:n,isString:i,objectEach:p,pick:d,pInt:e,setAnimation:function(t,e){e.renderer.globalAnimation=d(t,e.options.chart.animation,!0)},splat:function(t){return s(t)?t:[t]},syncTimeout:function(t,e,i){return 0<e?setTimeout(t,e,i):(t.call(0,i),-1)}}})),e(i,"parts/Color.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.isNumber,s=e.pInt,n=t.merge;t.Color=function(e){if(!(this instanceof t.Color))return new t.Color(e);this.init(e)},t.Color.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[s(t[1]),s(t[2]),s(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[s(t[1]),s(t[2]),s(t[3]),1]}}],names:{white:"#ffffff",black:"#000000"},init:function(e){var i,s;if((this.input=e=this.names[e&&e.toLowerCase?e.toLowerCase():""]||e)&&e.stops)this.stops=e.stops.map((function(e){return new t.Color(e[1])}));else{if(e&&e.charAt&&"#"===e.charAt()){var n=e.length;e=parseInt(e.substr(1),16),7===n?i=[(16711680&e)>>16,(65280&e)>>8,255&e,1]:4===n&&(i=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])}if(!i)for(s=this.parsers.length;s--&&!i;){var o=this.parsers[s];(n=o.regex.exec(e))&&(i=o.parse(n))}}this.rgba=i||[]},get:function(t){var e=this.input,s=this.rgba;if(this.stops){var o=n(e);o.stops=[].concat(o.stops),this.stops.forEach((function(e,i){o.stops[i]=[o.stops[i][0],e.get(t)]}))}else o=s&&i(s[0])?"rgb"===t||!t&&1===s[3]?"rgb("+s[0]+","+s[1]+","+s[2]+")":"a"===t?s[3]:"rgba("+s.join(",")+")":e;return o},brighten:function(t){var e,n=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(i(t)&&0!==t)for(e=0;3>e;e++)n[e]+=s(255*t),0>n[e]&&(n[e]=0),255<n[e]&&(n[e]=255);return this},setOpacity:function(t){return this.rgba[3]=t,this},tweenTo:function(t,e){var i=this.rgba,s=t.rgba;return s.length&&i&&i.length?((t=1!==s[3]||1!==i[3])?"rgba(":"rgb(")+Math.round(s[0]+(i[0]-s[0])*(1-e))+","+Math.round(s[1]+(i[1]-s[1])*(1-e))+","+Math.round(s[2]+(i[2]-s[2])*(1-e))+(t?","+(s[3]+(i[3]-s[3])*(1-e)):"")+")":t.input||"none"}},t.color=function(e){return new t.Color(e)}})),e(i,"parts/SvgRenderer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.attr,s=e.defined,n=e.destroyObjectProperties,o=e.erase,r=e.extend,a=e.isArray,h=e.isNumber,l=e.isObject,c=e.isString,d=e.objectEach,p=e.pick,u=e.pInt,f=e.splat,g=t.addEvent,m=t.animate,v=t.charts,x=t.color,y=t.css,b=t.createElement,k=t.deg2rad,w=t.doc,M=t.hasTouch,S=t.isFirefox,A=t.isMS,T=t.isWebKit,P=t.merge,C=t.noop,E=t.removeEvent,L=t.stop,O=t.svg,D=t.SVG_NS,I=t.symbolSizes,B=t.win,N=t.SVGElement=function(){return this};r(N.prototype,{opacity:1,SVG_NS:D,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline cursor".split(" "),init:function(e,i){this.element="span"===i?b(i):w.createElementNS(this.SVG_NS,i),this.renderer=e,t.fireEvent(this,"afterInit")},animate:function(e,i,s){var n=t.animObject(p(i,this.renderer.globalAnimation,!0));return p(w.hidden,w.msHidden,w.webkitHidden,!1)&&(n.duration=0),0!==n.duration?(s&&(n.complete=s),m(this,e,n)):(this.attr(e,void 0,s),d(e,(function(t,e){n.step&&n.step.call(this,t,{prop:e,pos:1})}),this)),this},complexColor:function(e,i,n){var o,r,h,l,c,p,u,f,g,m,v,x,y=this.renderer,b=[];t.fireEvent(this.renderer,"complexColor",{args:arguments},(function(){e.radialGradient?r="radialGradient":e.linearGradient&&(r="linearGradient"),r&&(h=e[r],
1c=y.gradients,u=e.stops,m=n.radialReference,a(h)&&(e[r]=h={x1:h[0],y1:h[1],x2:h[2],y2:h[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&m&&!s(h.gradientUnits)&&(l=h,h=P(h,y.getRadialAttr(m,l),{gradientUnits:"userSpaceOnUse"})),d(h,(function(t,e){"id"!==e&&b.push(e,t)})),d(u,(function(t){b.push(t)})),b=b.join(","),c[b]?v=c[b].attr("id"):(h.id=v=t.uniqueKey(),c[b]=p=y.createElement(r).attr(h).add(y.defs),p.radAttr=l,p.stops=[],u.forEach((function(e){0===e[1].indexOf("rgba")?(o=t.color(e[1]),f=o.get("rgb"),g=o.get("a")):(f=e[1],g=1),e=y.createElement("stop").attr({offset:e[0],"stop-color":f,"stop-opacity":g}).add(p),p.stops.push(e)}))),x="url("+y.url+"#"+v+")",n.setAttribute(i,x),n.gradient=b,e.toString=function(){return x})}))},applyTextOutline:function(e){var s,n=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(n.style.fill)));var o=(e=e.split(" "))[e.length-1];if((s=e[0])&&"none"!==s&&t.svg){this.fakeTS=!0,e=[].slice.call(n.getElementsByTagName("tspan")),this.ySetter=this.xSetter,s=s.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,i){return 2*e+i})),this.removeTextOutline(e);var r=n.firstChild;e.forEach((function(t,e){0===e&&(t.setAttribute("x",n.getAttribute("x")),e=n.getAttribute("y"),t.setAttribute("y",e||0),null===e&&n.setAttribute("y",0)),t=t.cloneNode(1),i(t,{class:"highcharts-text-outline",fill:o,stroke:o,"stroke-width":s,"stroke-linejoin":"round"}),n.insertBefore(t,r)}))}},removeTextOutline:function(t){for(var e,i=t.length;i--;)"highcharts-text-outline"===(e=t[i]).getAttribute("class")&&o(t,this.element.removeChild(e))},symbolCustomAttribs:"x y width height r start end innerR anchorX anchorY roun
1ded".split(" "),attr:function(e,i,s,n){var o,r,a,h=this.element,l=this,c=this.symbolCustomAttribs;if("string"==typeof e&&void 0!==i){var p=e;(e={})[p]=i}return"string"==typeof e?l=(this[e+"Getter"]||this._defaultGetter).call(this,e,h):(d(e,(function(i,s){r=!1,n||L(this,s),this.symbolName&&-1!==t.inArray(s,c)&&(o||(this.symbolAttr(e),o=!0),r=!0),!this.rotation||"x"!==s&&"y"!==s||(this.doTransform=!0),r||((a=this[s+"Setter"]||this._defaultSetter).call(this,i,s,h),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(s)&&this.updateShadows(s,i,a))}),this),this.afterSetters()),s&&s.call(this),l},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(t,e,i){for(var s=this.shadows,n=s.length;n--;)i.call(s[n],"height"===t?Math.max(e-(s[n].cutHeight||0),0):"d"===t?this.d:e,t,s[n])},addClass:function(t,e){var i=e?"":this.attr("class")||"";return t=(t||"").split(/ /g).reduce((function(t,e){return-1===i.indexOf(e)&&t.push(e),t}),i?[i]:[]).join(" "),t!==i&&this.attr("class",t),this},hasClass:function(t){return-1!==(this.attr("class")||"").split(" ").indexOf(t)},removeClass:function(t){return this.attr("class",(this.attr("class")||"").replace(c(t)?new RegExp(" ?"+t+" ?"):t,""))},symbolAttr:function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach((function(i){e[i]=p(t[i],e[i])})),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},clip:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},crisp:function(t,e){e=e||t.strokeWidth||0;var i=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),s(t.strokeWidth)&&(t.strokeWidth=e),t},css:function(t){var e=this.styles,s={},n=this.element,o="",a=!e,h=["textOutline","textOverflow","width"];if(t&&t.color&&(t.fill=t.color),e&&d(t,(function(t,i){t!==e[i]&&(s[i]=t,a=!0)})),a){if(e&&(t=r(e,s)),t)if(null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===n.nodeName.toLowerCase()&&t.width)var l=this.textWidth=u(t.width);if(this.styles=t,l&&!O&&this.renderer.forExport&&delete t.width,n.namespaceURI===this.SVG_NS){var c=function(t,e){return"-"+e.toLowerCase()};d(t,(function(t,e){-1===h.indexOf(e)&&(o+=e.replace(/([A-Z])/g,c)+":"+t+";")})),o&&i(n,"style",o)}else y(n,t);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))}return this},getStyle:function(t){return B.getComputedStyle(this.element||this,"").getPropertyValue(t)},strokeWidth:function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width");if(t.indexOf("px")===t.length-2)t=u(t);else{var e=w.createElementNS(D,"rect");i(e,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(e),t=e.getBBox().width,e.parentNode.removeChild(e)}return t},on:function(t,e){var i=this,s=i.element;return M&&"click"===t?(s.ontouchstart=function(t){i.touchEventFired=Date.now(),t.preventDefault(),e.call(s,t)},s.onclick=function(t){(-1===B.navigator.userAgent.indexOf("Android")||1100<Date.now()-(i.touchEventFired||0))&&e.call(s,t)}):s["on"+t]=e,this},setRadialReference:function(t){var e=this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(t){return this.inverted=t,this.updateTransform(),this},updateTransform:function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,n=this.scaleY,o=this.inverted,r=this.rotation,a=this.matrix,h=this.element;o&&(t+=this.width,e+=this.height),t=["translate("+t+","+e+")"],s(a)&&t.push("matrix("+a.join(",")+")"),o?t.push("rotate(90) scale(-1,1)"):r&&t.push("rotate("+r+" "+p(this.rotationOriginX,h.getAttribute("x"),0)+" "+p(this.rotationOriginY,h.getAttribute("y")||0)+")"),(s(i)||s(n))&&t.pu
1sh("scale("+p(i,1)+" "+p(n,1)+")"),t.length&&h.setAttribute("transform",t.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,i){var s,n,r,a={},h=this.renderer,l=h.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!i||c(i))&&(this.alignTo=s=i||"renderer",o(l,this),l.push(this),i=null)):(t=this.alignOptions,e=this.alignByTranslate,s=this.alignTo),i=p(i,h[s],h),s=t.align,h=t.verticalAlign,l=(i.x||0)+(t.x||0);var d=(i.y||0)+(t.y||0);return"right"===s?n=1:"center"===s&&(n=2),n&&(l+=(i.width-(t.width||0))/n),a[e?"translateX":"x"]=Math.round(l),"bottom"===h?r=1:"middle"===h&&(r=2),r&&(d+=(i.height-(t.height||0))/r),a[e?"translateY":"y"]=Math.round(d),this[this.placed?"animate":"attr"](a),this.placed=!0,this.alignAttr=a,this},getBBox:function(t,e){var i,n,o=this.renderer,a=this.element,h=this.styles,l=this.textStr,c=o.cache,d=o.cacheKeys,u=a.namespaceURI===this.SVG_NS;e=p(e,this.rotation,0);var f=o.styledMode?a&&N.prototype.getStyle.call(a,"font-size"):h&&h.fontSize;if(s(l)){var g=l.toString();-1===g.indexOf("<")&&(g=g.replace(/[0-9]/g,"0")),g+=["",e,f,this.textWidth,h&&h.textOverflow].join()}if(g&&!t&&(i=c[g]),!i){if(u||o.forExport){try{(n=this.fakeTS&&function(t){[].forEach.call(a.querySelectorAll(".highcharts-text-outline"),(function(e){e.style.display=t}))})&&n("none"),i=a.getBBox?r({},a.getBBox()):{width:a.offsetWidth,height:a.offsetHeight},n&&n("")}catch(t){}(!i||0>i.width)&&(i={width:0,height:0})}else i=this.htmlGetBBox();if(o.isSVG&&(t=i.width,o=i.height,u&&(i.height=o={"11px,17":14,"13px,20":16}[h&&h.fontSize+","+Math.round(o)]||o),e&&(h=e*k,i.width=Math.abs(o*Math.sin(h))+Math.abs(t*Math.cos(h)),i.height=Math.abs(o*Math.cos(h))+Math.abs(t*Math.sin(h)))),g&&0<i.height){for(;250<d.length;)delete c[d.shift()];c[g]||d.push(g),c[g]=i}}return i},show:function(t){return this.attr({visibility:t?"inherit":"visible"})},hide:function(t){return t?this.attr({y:-9999}):this.attr({visibility:"hidden"}),this},fadeOut:function(t){var e=this;e.animate({opacity:0}
1,{duration:t||150,complete:function(){e.attr({y:-9999})}})},add:function(t){var e=this.renderer,i=this.element;if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var s=this.zIndexSetter();return s||(t?t.element:e.box).appendChild(i),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t=this,e=t.element||{},i=t.renderer,s=i.isSVG&&"SPAN"===e.nodeName&&t.parentGroup,n=e.ownerSVGElement,r=t.clipPath;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,L(t),r&&n&&([].forEach.call(n.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){-1<t.getAttribute("clip-path").indexOf(r.element.id)&&t.removeAttribute("clip-path")})),t.clipPath=r.destroy()),t.stops){for(n=0;n<t.stops.length;n++)t.stops[n]=t.stops[n].destroy();t.stops=null}for(t.safeRemoveChild(e),i.styledMode||t.destroyShadows();s&&s.div&&0===s.div.childNodes.length;)e=s.parentGroup,t.safeRemoveChild(s.div),delete s.div,s=e;t.alignTo&&o(i.alignedObjects,t),d(t,(function(e,i){t[i]&&t[i].parentGroup===t&&t[i].destroy&&t[i].destroy(),delete t[i]}))},shadow:function(t,e,s){var n,o=[],r=this.element;if(t){if(!this.shadows){var a=p(t.width,3),h=(t.opacity||.15)/a,l=this.parentInverted?"(-1,-1)":"("+p(t.offsetX,1)+", "+p(t.offsetY,1)+")";for(n=1;n<=a;n++){var c=r.cloneNode(0),d=2*a+1-2*n;i(c,{stroke:t.color||"#000000","stroke-opacity":h*n,"stroke-width":d,transform:"translate"+l,fill:"none"}),c.setAttribute("class",(c.getAttribute("class")||"")+" highcharts-shadow"),s&&(i(c,"height",Math.max(i(c,"height")-d,0)),c.cutHeight=d),e?e.element.appendChild(c):r.parentNode&&r.parentNode.insertBefore(c,r),o.push(c)}this.shadows=o}}else this.destroyShadows();return this},destroyShadows:function(){(this.shadows||[]).forEach((function(t){this.safeRemoveChild(t)}),this),this.shadows=void 0},xGetter:function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},_defaultGetter:function(t){return t=p(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},dSetter:function(t,e,i){t&&t.join&&(t=t.join(" ")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},dashstyleSetter:function(t){var e,i=this["stroke-width"];if("inherit"===i&&(i=1),t=t&&t.toLowerCase()){for(e=(t=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",")).length;e--;)t[e]=u(t[e])*i;t=t.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},alignSetter:function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},opacitySetter:function(t,e,i){this[e]=t,i.setAttribute(e,t)},titleSetter:function(t){var e=this.element.getElementsByTagName("title")[0];e||(e=w.createElementNS(this.SVG_NS,"title"),this.element.appendChild(e)),e.firstChild&&e.removeChild(e.firstChild),e.appendChild(w.createTextNode(String(p(t,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},setTextPath:function(e,i){var n=this.element,o={textAnchor:"text-anchor"},r=!1,a=this.textPathWrapper,h=!a,l=(i=P(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},i)).attributes;if(e&&i&&i.enabled){this.options&&this.options.padding&&(l.dx=-this.options.padding),a||(this.textPathWrapper=a=this.renderer.createElement("textPath"),r=!0);var c=a.element;if((i=e.element.getAttribute("id"))||e.element.setAttribute("id",i=t.uniqueKey()),h)for(e=n.getElementsByTagName("tspan");e.length;)e[0].setAttribute("y",0),c.appendChild(e[0]);r&&a.add({element:this.text?this.text.element:n}),c.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+i),s(l.dy)&&(c.parentNode.setAttribute("dy",l.dy),delete l.dy),s(l.dx)&&(c.parentNode.setAttribute("dx",l.dx),delete l.dx),d(l,(function(t,e){c.setAttribute(o[e]||e,t)})),n.removeAttribute("transform"),this.removeTextOutline.call(a,[].slice.call(n.getElementsByTagName("tspan"))),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.applyTextOutline=this.updateTransform=C}else a&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(n,e));return this},destroyTextPath:function(t,e){var i;for(e.element.setAttribute("id",""),i=this.textPathWrapper.element.childNodes;i.length;)t.firstChild.appendChild(i[0]);t.firstChild.removeChild(this.textPathWrapper.element),delete e.textPathWrapper}
1,fillSetter:function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},visibilitySetter:function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},zIndexSetter:function(t,e){var i=this.renderer,n=this.parentGroup,o=(n||i).element||i.box,r=this.element,a=!1;i=o===i.box;var h,l=this.added;if(s(t)?(r.setAttribute("data-z-index",t),t=+t,this[e]===t&&(l=!1)):s(this[e])&&r.removeAttribute("data-z-index"),this[e]=t,l){for((t=this.zIndex)&&n&&(n.handleZ=!0),h=(e=o.childNodes).length-1;0<=h&&!a;h--){l=(n=e[h]).getAttribute("data-z-index");var c=!s(l);n!==r&&(0>t&&c&&!i&&!h?(o.insertBefore(r,e[h]),a=!0):(u(l)<=t||c&&(!s(t)||0<=t))&&(o.insertBefore(r,e[h+1]||null),a=!0))}a||(o.insertBefore(r,e[i?3:0]||null),a=!0)}return a},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}}),N.prototype.yGetter=N.prototype.xGetter,N.prototype.translateXSetter=N.prototype.translateYSetter=N.prototype.rotationSetter=N.prototype.verticalAlignSetter=N.prototype.rotationOriginXSetter=N.prototype.rotationOriginYSetter=N.prototype.scaleXSetter=N.prototype.scaleYSetter=N.prototype.matrixSetter=function(t,e){this[e]=t,this.doTransform=!0},N.prototype["stroke-widthSetter"]=N.prototype.strokeSetter=function(t,e,i){this[e]=t,this.stroke&&this["stroke-width"]?(N.prototype.fillSetter.call(this,this.stroke,"stroke",i),i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===e&&0===t&&this.hasStroke?(i.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},e=t.SVGRenderer=function(){this.init.apply(this,arguments)},r(e.prototype,{Element:N,SVG_NS:D,init:function(t,e,s,n,o,r,a){var h,l=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"});a||l.css(this.getStyle(n)),n=l.element,t.appendChild(n),i(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&i(n,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=n,this.boxWrapper=l,this.alignedObjects=[],this.url=(S||T)&&w.getElementsByTagName("base").length?B.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(w.createTextNode("Created with Highcharts 7.2.2")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=o,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,s,!1),S&&t.getBoundingClientRect&&((e=function(){y(t,{left:0,top:0}),h=t.getBoundingClientRect(),y(t,{left:Math.ceil(h.left)-h.left+"px",top:Math.ceil(h.top)-h.top+"px"})})(),this.unSubPixelFix=g(B,"resize",e))},definition:function(t){var e=this;return function t(i,s){var n;return f(i).forEach((function(i){var o=e.createElement(i.tagName),r={};d(i,(function(t,e){"tagName"!==e&&"children"!==e&&"textContent"!==e&&(r[e]=t)})),o.attr(r),o.add(s||e.defs),i.textContent&&o.element.appendChild(w.createTextNode(i.textContent)),t(i.children||[],o),n=o})),n}(t)},getStyle:function(t){return this.style=r({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},setStyle:function(t){this.boxWrapper.css(this.getStyle(t))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),n(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:C,getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},truncate:function(t,e,i,s,n,o,r){var a,h,l=this,c=t.rotation,d=s?1:0,p=(i||s).length,u=p,f=[],g=function(t){e.firstChild&&e.removeChild(e.firstChild),t&&e.appendChild(w.createTextNode(t))},m=function(o,a){if(void 0===f[a=a||o])if(e.getSubStringLength)try{f[a]=n+e.getSubStringLength(0,s?a+1:a)}catch(t){}else l.getSpanWidth&&(g(r(i||s,o)),f[a]=n+l.getSpanWidth(t,e));return f[a]};t.rotation=0;var v=m(e.textContent.length);if(h=n+v>o){for(;d<=p;)u=Math.ceil((d+p)/2),s&&(a=r(s,u)),v=m(u,a&&a.length-1),d===p?d=p+1:v>o?p=u-1:d=u;0===p?g(""):i&&p===i.length-1||g(a||r(i||s,u))}return s&&s.splice(0,u),t.actualWidth=v,t.rotation=c,h},escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},buildText:function(t){var e,s,n=t.element,o=this,r=o.forExport,a=p(t.textStr,"").toString(),h=-1!==a.indexOf("<"),l=n.childNodes,c=i(n,"x"),f=t.styles,g=t.textWidth,m=f&&f.lineHeight,v=f&&f.textOutline,x=f&&"ellipsis"===f.textOverflow,b=f&&"nowrap"===f.whiteSpace,k=f&&f.fontSize,M=l.length;f=g&&!t.added&&this.box;var S=function(t){var e;return o.styledMode||(e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:k||o.style.fontSize||12),m?u(m):o.fontMetrics(e,t.getAttribute("style")?t:n).h},A=function(t,e){return d(o.escapes,(function(i,s){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),s))})),t},T=function(t,e){var i=t.indexOf("<");if(-1!==(i=(t=t.substring(i,t.indexOf(">")-i)).indexOf(e+"="))&&(i=i+e.length+1,'"'===(e=t.charAt(i))||"'"===e))return(t=t.substring(i+1)).substring(0,t.indexOf(e))},P=/<br.*?>/g,C=[a,x,b,m,v,k,g].join();if(C!==t.textCache){for(t.textCache=C;M--;)n.removeChild(l[M]);h||v||x||g||-1!==a.indexOf(" ")&&(!b||P.test(a))?(f&&f.appendChild(n),a=(a=h?(a=o.styledMode?a.replace(/<(b|strong)>/g,'<span class="highcharts-strong">').replace(/<(i|em)>/g,'<span class="highcharts-emphasized">'):a.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">')).replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(P):[a]).filter((function(t){return""!==t})),a.forEach((function(a,h){var l=0,d=0,p=(a=a.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||")).split("|||");
1p.forEach((function(a){if(""!==a||1===p.length){var u,f,m={},v=w.createElementNS(o.SVG_NS,"tspan");if((u=T(a,"class"))&&i(v,"class",u),(u=T(a,"style"))&&(u=u.replace(/(;| |^)color([ :])/,"$1fill$2"),i(v,"style",u)),(f=T(a,"href"))&&!r&&-1===f.split(":")[0].toLowerCase().indexOf("javascript")){var M=w.createElementNS(o.SVG_NS,"a");i(M,"href",f),i(v,"class","highcharts-anchor"),M.appendChild(v),o.styledMode||y(v,{cursor:"pointer"})}if(" "!==(a=A(a.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(v.appendChild(w.createTextNode(a)),l?m.dx=0:h&&null!==c&&(m.x=c),i(v,m),n.appendChild(M||v),!l&&s&&(!O&&r&&y(v,{display:"block"}),i(v,"dy",S(v))),g){var P=a.replace(/([^\^])-/g,"$1- ").split(" ");if(m=!b&&(1<p.length||h||1<P.length),M=0,f=S(v),x)e=o.truncate(t,v,a,void 0,0,Math.max(0,g-parseInt(k||12,10)),(function(t,e){return t.substring(0,e)+"…"}));else if(m)for(;P.length;)P.length&&!b&&0<M&&(v=w.createElementNS(D,"tspan"),i(v,{dy:f,x:c}),u&&i(v,"style",u),v.appendChild(w.createTextNode(P.join(" ").replace(/- /g,"-"))),n.appendChild(v)),o.truncate(t,v,null,P,0===M?d:0,g,(function(t,e){return P.slice(0,e).join(" ").replace(/- /g,"-")})),d=t.actualWidth,M++}l++}}})),s=s||n.childNodes.length})),x&&e&&t.attr("title",A(t.textStr,["&lt;","&gt;"])),f&&f.removeChild(n),v&&t.applyTextOutline&&t.applyTextOutline(v)):n.appendChild(w.createTextNode(A(a)))}},getContrast:function(t){return(t=x(t).rgba)[0]*=1,t[1]*=1.2,t[2]*=.5,459<t[0]+t[1]+t[2]?"#000000":"#FFFFFF"},button:function(t,e,i,s,n,o,a,h,l,c){var d=this.label(t,e,i,l,null,null,c,null,"button"),p=0,u=this.styledMode;if(d.attr(P({padding:8,r:2},n)),!u){var f=(n=P({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},n)).style;delete n.style;var m=(o=P(n,{fill:"#e6e6e6"},o)).style;delete o.style;var v=(a=P(n,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},a)).style;delete a.style;var x=(h=P(n,{style:{color:"#cccccc"}},h)).style;delete h.style}return g(d.element,A?"mouseover":"mouseenter",(function(){3!==p&&d.setState(1)})),g(d.element,A?"mouseout":"mouseleave",(function(){3!==p&&d.setState(p)})),d.setState=function(t){1!==t&&(d.state=p=t),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),u||d.attr([n,o,a,h][t||0]).css([f,m,v,x][t||0])},u||d.attr(n).css(r({cursor:"default"},f)),d.on("click",(function(t){3!==p&&s.call(d,t)}))},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=Math.round(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=Math.round(t[2])+e%2/2),t},path:function(t){var e=this.styledMode?{}:{fill:"none"};return a(t)?e.d=t:l(t)&&r(e,t),this.createElement("path").attr(e)},circle:function(t,e,i){return t=l(t)?t:void 0===t?{}:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},arc:function(t,e,i,s,n,o){return l(t)?(e=(s=t).y,i=s.r,t=s.x):s={innerR:s,start:n,end:o},(t=this.symbol("arc",t,e,i,i,s)).r=i,t},rect:function(t,e,s,n,o,r){o=l(t)?t.r:o;var a=this.createElement("rect");return t=l(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(s,0),height:Math.max(n,0)},this.styledMode||(void 0!==r&&(t.strokeWidth=r,t=a.crisp(t)),t.fill="none"),o&&(t.r=o),a.rSetter=function(t,e,s){a.r=t,i(s,{rx:t,ry:t})},a.rGetter=function(){return a.r},a.attr(t)},setSize:function(t,e,i){var s=this.alignedObjects,n=s.length;for(this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:p(i,!0)?void 0:0});n--;)s[n].align()},g:function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},image:function(t,e,i,s,n,o){var a={preserveAspectRatio:"none"},h=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)},l=function(e){h(c.element,t),o.call(c,e)};1<arguments.length&&r(a,{x:e,y:i,width:s,height:n});var c=this.createElement("image").attr(a);return o?(h(c.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),a=new B.Image,g(a,"load",l),a.src=t,a.complete&&l({})):h(c.element,t),c}
1,symbol:function(t,e,i,n,o,a){var h=this,l=/^url\((.*?)\)$/,c=l.test(t),d=!c&&(this.symbols[t]?t:"circle"),u=d&&this.symbols[d],f=s(e)&&u&&u.call(this.symbols,Math.round(e),Math.round(i),n,o,a);if(u){var g=this.path(f);h.styledMode||g.attr("fill","none"),r(g,{symbolName:d,x:e,y:i,width:n,height:o}),a&&r(g,a)}else if(c){var m=t.match(l)[1];(g=this.image(m)).imgwidth=p(I[m]&&I[m].width,a&&a.width),g.imgheight=p(I[m]&&I[m].height,a&&a.height);var x=function(){g.attr({width:g.width,height:g.height})};["width","height"].forEach((function(t){g[t+"Setter"]=function(t,e){var i={},n=this["img"+e],o="width"===e?"translateX":"translateY";this[e]=t,s(n)&&(a&&"within"===a.backgroundSize&&this.width&&this.height&&(n=Math.round(n*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,n),this.alignByTranslate||(i[o]=((this[e]||0)-n)/2,this.attr(i)))}})),s(e)&&g.attr({x:e,y:i}),g.isImg=!0,s(g.imgwidth)&&s(g.imgheight)?x():(g.attr({width:0,height:0}),b("img",{onload:function(){var t=v[h.chartIndex];0===this.width&&(y(this,{position:"absolute",top:"-999em"}),w.body.appendChild(this)),I[m]={width:this.width,height:this.height},g.imgwidth=this.width,g.imgheight=this.height,g.element&&x(),this.parentNode&&this.parentNode.removeChild(this),h.imgCount--,!h.imgCount&&t&&t.onload&&t.onload()},src:m}),this.imgCount++)}return g},symbols:{circle:function(t,e,i,s){return this.arc(t+i/2,e+s/2,i/2,s/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(t,e,i,s){return["M",t,e,"L",t+i,e,t+i,e+s,t,e+s,"Z"]},triangle:function(t,e,i,s){return["M",t+i/2,e,"L",t+i,e+s,t,e+s,"Z"]},"triangle-down":function(t,e,i,s){return["M",t,e,"L",t+i,e,t+i/2,e+s,"Z"]},diamond:function(t,e,i,s){return["M",t+i/2,e,"L",t+i,e+s/2,t+i/2,e+s,t,e+s/2,"Z"]},arc:function(t,e,i,n,o){var r=o.start,a=o.r||i,h=o.r||n||i,l=o.end-.001;i=o.innerR,n=p(o.open,.001>Math.abs(o.end-o.start-2*Math.PI));var c=Math.cos(r),d=Math.sin(r),u=Math.cos(l);return l=Math.sin(l),o=["M",t+a*c,e+h*d,"A",a,h,0,r=.001>o.end-r-Math.PI?0:1,p(o.clockwise,1),t+a*u,e+h*l],s(i)&&o.push(n?"M":"L",t+i*u,e+i*l,"A",i,i,0,r,0,t+i*c,e+i*d),o.push(n?"":"Z"),o},callout:function(t,e,i,s,n){var o=Math.min(n&&n.r||0,i,s),r=o+6,a=n&&n.anchorX;n=n&&n.anchorY;var h=["M",t+o,e,"L",t+i-o,e,"C",t+i,e,t+i,e,t+i,e+o,"L",t+i,e+s-o,"C",t+i,e+s,t+i,e+s,t+i-o,e+s,"L",t+o,e+s,"C",t,e+s,t,e+s,t,e+s-o,"L",t,e+o,"C",t,e,t,e,t+o,e];return a&&a>i?n>e+r&&n<e+s-r?h.splice(13,3,"L",t+i,n-6,t+i+6,n,t+i,n+6,t+i,e+s-o):h.splice(13,3,"L",t+i,s/2,a,n,t+i,s/2,t+i,e+s-o):a&&0>a?n>e+r&&n<e+s-r?h.splice(33,3,"L",t,n+6,t-6,n,t,n-6,t,e+o):h.splice(33,3,"L",t,s/2,a,n,t,s/2,t,e+o):n&&n>s&&a>t+r&&a<t+i-r?h.splice(23,3,"L",a+6,e+s,a,e+s+6,a-6,e+s,t+o,e+s):n&&0>n&&a>t+r&&a<t+i-r&&h.splice(3,3,"L",a-6,e,a,e-6,a+6,e,i-o,e),h}},clipRect:function(e,i,s,n){var o=t.uniqueKey()+"-",r=this.createElement("clipPath").attr({id:o}).add(this.defs);return(e=this.rect(e,i,s,n,0).add(r)).id=o,e.clipPath=r,e.count=0,e},text:function(t,e,i,n){var o={};return!n||!this.allowHTML&&this.forExport?(o.x=Math.round(e||0),i&&(o.y=Math.round(i)),s(t)&&(o.text=t),t=this.createElement("text").attr(o),n||(t.xSetter=function(t,e,i){var s,n=i.getElementsByTagName("tspan"),o=i.getAttribute(e);for(s=0;s<n.length;s++){var r=n[s];r.getAttribute(e)===o&&r.setAttribute(e,t)}i.setAttribute(e,t)}),t):this.html(t,e,i)},fontMetrics:function(t,e){return t=!this.styledMode&&/px/.test(t)||!B.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&N.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?u(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},rotCorr:function(t,e,i){var s=t;return e&&i&&(s=Math.max(s*Math.cos(e*k),4)),{x:-t/3*Math.sin(e*k),y:s}},label:function(t,e,i,n,o,a,l,c,d){var p,u,f,g,m,v,x,y,b,k=this,w=k.styledMode,M=k.g("button"!==d&&"label"),S=M.text=k.text("",0,0,l).attr({zIndex:1}),A=0,T=3,C=0,L={},O=/^url\((.*?)\)$/.test(n),D=w||O,I=function(){return w?p.strokeWidth()%2/2:(y?parseInt(y,10):0)%2/2};d&&M.addClass("highcharts-"+d);var B=function(){var t=S.element.style,e={};u=(void 0===f||void 0===g||x)&&s(S.textStr)&&S.getBBox(),M.width=(f||u.width||0)+2*T+C,M.height=(g||u.height||0)+2*T,b=T+Math.min(k.fontMetrics(t&&t.fontSize,S
1).b,u?u.height:1/0),D&&(p||(M.box=p=k.symbols[n]||O?k.symbol(n):k.rect(),p.addClass(("button"===d?"":"highcharts-label-box")+(d?" highcharts-"+d+"-box":"")),p.add(M),t=I(),e.x=t,e.y=(c?-b:0)+t),e.width=Math.round(M.width),e.height=Math.round(M.height),p.attr(r(e,L)),L={})},z=function(){var t=C+T,e=c?0:b;s(f)&&u&&("center"===x||"right"===x)&&(t+={center:.5,right:1}[x]*(f-u.width)),t===S.x&&e===S.y||(S.attr("x",t),S.hasBoxWidthChanged&&(u=S.getBBox(!0),B()),void 0!==e&&S.attr("y",e)),S.x=t,S.y=e},j=function(t,e){p?p.attr(t,e):L[t]=e};M.onAdd=function(){S.add(M),M.attr({text:t||0===t?t:"",x:e,y:i}),p&&s(o)&&M.attr({anchorX:o,anchorY:a})},M.widthSetter=function(t){f=h(t)?t:null},M.heightSetter=function(t){g=t},M["text-alignSetter"]=function(t){x=t},M.paddingSetter=function(t){s(t)&&t!==T&&(T=M.padding=t,z())},M.paddingLeftSetter=function(t){s(t)&&t!==C&&(C=t,z())},M.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==A&&(A=t,u&&M.attr({x:m}))},M.textSetter=function(t){void 0!==t&&S.attr({text:t}),B(),z()},M["stroke-widthSetter"]=function(t,e){t&&(D=!0),y=this["stroke-width"]=t,j(e,t)},w?M.rSetter=function(t,e){j(e,t)}:M.strokeSetter=M.fillSetter=M.rSetter=function(t,e){"r"!==e&&("fill"===e&&t&&(D=!0),M[e]=t),j(e,t)},M.anchorXSetter=function(t,e){o=M.anchorX=t,j(e,Math.round(t)-I()-m)},M.anchorYSetter=function(t,e){a=M.anchorY=t,j(e,t-v)},M.xSetter=function(t){M.x=t,A&&(t-=A*((f||u.width)+2*T),M["forceAnimate:x"]=!0),m=Math.round(t),M.attr("translateX",m)},M.ySetter=function(t){v=M.y=Math.round(t),M.attr("translateY",v)};var W=M.css;return l={css:function(t){if(t){var e={};t=P(t),M.textProps.forEach((function(i){void 0!==t[i]&&(e[i]=t[i],delete t[i])})),S.css(e),"width"in e&&B(),"fontSize"in e&&(B(),z())}return W.call(M,t)},getBBox:function(){return{width:u.width+2*T,height:u.height+2*T,x:u.x-T,y:u.y-T}},destroy:function(){E(M.element,"mouseenter"),E(M.element,"mouseleave"),S&&(S=S.destroy()),p&&(p=p.destroy()),N.prototype.destroy.call(M),M=k=B=z=j=null}},w||(l.shadow=function(t){return t&&(B(),p&&p.shadow(t)),M}),r(M,l)}}),t.Renderer=e})),e(i,"parts/Html.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.attr,s=e.defined,n=e.extend,o=e.pick,r=e.pInt,a=t.createElement,h=t.css,l=t.isFirefox,c=t.isMS,d=t.isWebKit,p=t.SVGElement;e=t.SVGRenderer;var u=t.win;n(p.prototype,{htmlCss:function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,i=o(e&&t.width,void 0);if(e){delete t.width,this.textWidth=i;var s=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=n(this.styles,t),h(this.element,t),s&&this.htmlUpdateTransform(),this},htmlGetBBox:function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,n=this.translateY||0,o=this.x||0,a=this.y||0,l=this.textAlign||"left",c={left:0,center:.5,right:1}[l],d=this.styles,p=d&&d.whiteSpace;if(h(e,{marginLeft:i,marginTop:n}),!t.styledMode&&this.shadows&&this.shadows.forEach((function(t){h(t,{marginLeft:i+1,marginTop:n+1})})),this.inverted&&[].forEach.call(e.childNodes,(function(i){t.invertChild(i,e)})),"SPAN"===e.tagName){d=this.rotation;var u,f=this.textWidth&&r(this.textWidth),g=[d,l,e.innerHTML,this.textWidth,this.textAlign].join();(u=f!==this.oldTextWidth)&&!(u=f>this.oldTextWidth)&&((u=this.textPxLength)||(h(e,{width:"",whiteSpace:p||"nowrap"}),u=e.offsetWidth),u=u>f),u&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)?(h(e,{width:f+"px",display:"block",whiteSpace:p||"normal"}),this.oldTextWidth=f,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,g!==this.cTT&&(p=t.fontMetrics(e.style.fontSize,e).b,!s(d)||d===(this.oldRotation||0)&&l===this.oldAlign||this.setSpanRotation(d,c,p),this.getSpanCorrection(!s(d)&&this.textPxLength||e.offsetWidth,p,c,d,l)),h(e,{left:o+(this.xCorr||0)+"px",top:a+(this.yCorr||0)+"px"}),this.cTT=g,this.oldRotation=d,this.oldAlign=l}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var s={},n=this.renderer.getTransformKey();s[n]=s.transform="rotate("+t+"deg)",s[n+(l?"Origin":"-origin")]=s.transformOrigin=100*e+"% "+i+"px",h(this.element,s)}
1,getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),n(e.prototype,{getTransformKey:function(){return c&&!/Edge/.test(u.navigator.userAgent)?"-ms-transform":d?"-webkit-transform":l?"MozTransform":u.opera?"-o-transform":""},html:function(t,e,s){var r=this.createElement("span"),h=r.element,l=r.renderer,c=l.isSVG,d=function(t,e){["opacity","visibility"].forEach((function(i){t[i+"Setter"]=function(s,n,o){var r=t.div?t.div.style:e;p.prototype[i+"Setter"].call(this,s,n,o),r&&(r[n]=s)}})),t.addedSetters=!0};return r.textSetter=function(t){t!==h.innerHTML&&(delete this.bBox,delete this.oldTextWidth),this.textStr=t,h.innerHTML=o(t,""),r.doTransform=!0},c&&d(r,r.element.style),r.xSetter=r.ySetter=r.alignSetter=r.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),r[e]=t,r.doTransform=!0},r.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},r.attr({text:t,x:Math.round(e),y:Math.round(s)}).css({position:"absolute"}),l.styledMode||r.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}
1),h.style.whiteSpace="nowrap",r.css=r.htmlCss,c&&(r.add=function(t){var e=l.box.parentNode,s=[];if(this.parentGroup=t){var o=t.div;if(!o){for(;t;)s.push(t),t=t.parentGroup;s.reverse().forEach((function(t){function h(e,i){t[i]=e,"translateX"===i?c.left=e+"px":c.top=e+"px",t.doTransform=!0}var l=i(t.element,"class"),c=(o=t.div=t.div||a("div",l?{className:l}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},o||e)).style;n(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(o),on:function(){return s[0].div&&r.on.apply({element:s[0].div},arguments),t},translateXSetter:h,translateYSetter:h}),t.addedSetters||d(t)}))}}else o=e;return o.appendChild(h),r.added=!0,r.alignOnAdd&&r.htmlUpdateTransform(),r}),r}})})),e(i,"parts/Time.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.extend,n=e.isObject,o=e.objectEach,r=e.pick,a=e.splat,h=t.merge,l=t.timeUnits,c=t.win;t.Time=function(t){this.update(t,!1)},t.Time.prototype={defaultOptions:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},update:function(t){var e=r(t&&t.useUTC,!0),i=this;this.options=t=h(!0,this.options||{},t),this.Date=t.Date||c.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),(this.variableTimezone=!(e&&!t.getTimezoneOffset&&!t.timezone))||this.timezoneOffset?(this.get=function(t,e){var s=e.getTime(),n=s-i.getTimezoneOffset(e);return e.setTime(n),t=e["getUTC"+t](),e.setTime(s),t},this.set=function(t,e,s){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==e.getTimezoneOffset()%60)e["set"+t](s);else{var n=i.getTimezoneOffset(e);n=e.getTime()-n,e.setTime(n),e["setUTC"+t](s),t=i.getTimezoneOffset(e),n=e.getTime()+t,e.setTime(n)}}):e?(this.get=function(t,e){return e["getUTC"+t]()},this.set=function(t,e,i){return e["setUTC"+t](i)}):(this.get=function(t,e){return e["get"+t]()},this.set=function(t,e,i){return e["set"+t](i)})},makeTime:function(e,i,s,n,o,a){if(this.useUTC){var h=this.Date.UTC.apply(0,arguments),l=this.getTimezoneOffset(h);h+=l;var c=this.getTimezoneOffset(h);l!==c?h+=c-l:l-36e5!==this.getTimezoneOffset(h-36e5)||t.isSafari||(h-=36e5)}else h=new this.Date(e,i,r(s,1),r(n,0),r(o,0),r(a,0)).getTime();return h},timezoneOffsetFunction:function(){var e=this,i=this.options,s=c.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t).getTimezoneOffset()};if(i.timezone){if(s)return function(t){return 6e4*-s.tz(t,i.timezone).utcOffset()};t.error(25)}return this.useUTC&&i.getTimezoneOffset?function(t){return 6e4*i.getTimezoneOffset(t)}:function(){return 6e4*(e.timezoneOffset||0)}},dateFormat:function(e,n,a){if(!i(n)||isNaN(n))return t.defaultOptions.lang.invalidDate||"";e=r(e,"%Y-%m-%d %H:%M:%S");var h=this,l=new this.Date(n),c=this.get("Hours",l),d=this.get("Day",l),p=this.get("Date",l),u=this.get("Month",l),f=this.get("FullYear",l),g=t.defaultOptions.lang,m=g.weekdays,v=g.shortWeekdays,x=t.pad;return l=s({a:v?v[d]:m[d].substr(0,3),A:m[d],d:x(p),e:x(p,2," "),w:d,b:g.shortMonths[u],B:g.months[u],m:x(u+1),o:u+1,y:f.toString().substr(2,2),Y:f,H:x(c),k:c,I:x(c%12||12),l:c%12||12,M:x(h.get("Minutes",l)),p:12>c?"AM":"PM",P:12>c?"am":"pm",S:x(l.getSeconds()),L:x(Math.floor(n%1e3),3)},t.dateFormats),o(l,(function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"==typeof t?t.call(h,n):t)})),a?e.substr(0,1).toUpperCase()+e.substr(1):e},resolveDTLFormat:function(t){return n(t,!0)?t:{main:(t=a(t))[0],from:t[1],to:t[2]}},getTimeTicks:function(t,e,n,o){var a,h=this,c=[],d={},p=new h.Date(e),u=t.unitRange,f=t.count||1;if(o=r(o,1),i(e)){if(h.set("Milliseconds",p,u>=l.second?0:f*Math.floor(h.get("Milliseconds",p)/f)),u>=l.second&&h.set("Seconds",p,u>=l.minute?0:f*Math.floor(h.get("Seconds",p)/f)),u>=l.minute&&h.set("Minutes",p,u>=l.hour?0:f*Math.floor(h.get("Minutes",p)/f)),u>=l.hour&&h.set("Hours",p,u>=l.day?0:f*Math.floor(h.get("Hours",p)/f)),u>=l.day&&h.set("Date",p,u>=l.month?1:Math.max(1,f*Math.floor(h.get("Date",p)/f))),u>=l.month){h.set("Month",p,u>=l.year?0:f*Math.floor(h.get("Month",p)/f));var g=h.get("FullYear",p)}u>=l.year&&h.set("FullYear",p,g-g%f),u===l.week&&(g=h.get("Day",p),h.set("Date",p,h.get("Date",p)-g+o+(g<o?-7:0))),g=h.get("FullYear",p),o=h.get("Month",p);var m=h.get("Date",p),v=h.get("Hours",p);for(e=p.getTime(),h.variableTimezone&&(a=n-e>4*l.month||h.getTimezoneOffset(e)!==h.getTimezoneOffset(n)),e=p.getTime(),p=1;e<n;)c.push(e),e=u===l.year?h.makeTime(g+p*f,0):u===l.month?h.makeTime(g,o+p*f):!a||u!==l.day&&u!==l.week?a&&u===l.hour&&1<f?h.makeTime(g,o,m,v+p*f):e+u*f:h.makeTime(g,o,m+p*f*(u===l.day?1:7)),p++;c.push(e),u<=l.hour&&1e4>
1c.length&&c.forEach((function(t){0==t%18e5&&"000000000"===h.dateFormat("%H%M%S%L",t)&&(d[t]="day")}))}return c.info=s(t,{higherRanks:d,totalRange:u*f}),c}}})),e(i,"parts/Options.js",[i["parts/Globals.js"]],(function(t){var e=t.color,i=t.merge;t.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:t.Time.prototype.defaultOptions,chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:t.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:t.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},t.setOptions=function(e){return t.defaultOptions=i(!0,t.defaultOptions,e),(e.time||e.global)&&t.time.update(i(t.defaultOptions.global,t.defaultOptions.time,e.global,e.time)),t.defaultOptions},t.getOptions=function(){return t.defaultOptions},t.defaultPlotOptions=t.defaultOptions.plotOptions,t.time=new t.Time(i(t.defaultOptions.global,t.defaultOptions.time)),t.dateFormat=function(e,i,s){return t.time.dateFormat(e,i,s)}})),e(i,"parts/Tick.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.destroyObjectProperties,n=e.extend,o=e.isNumber,r=e.pick,a=t.correctFloat,h=t.fireEvent,l=t.merge,c=t.deg2rad;t.Tick=function(t,e,i,s,n){this.axis=t,this.pos=e,this.type=i||"",this.isNewLabel=this.isNew=!0,this.parameters=n||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,i||s||this.addLabel()},t.Tick.prototype={addLabel:function(){var t=this,e=t.axis,s=e.options,o=e.chart,h=e.categories,c=e.names,d=t.pos,p=r(t.options&&t.options.labels,s.labels),u=e.tickPositions,f=d===u[0],g=d===u[u.length-1];h=this.parameters.category||(h?r(h[d],c[d],d):d);var m,v,x=t.label;if(u=u.info,e.isDatetimeAxis&&u)var y=o.time.resolveDTLFormat(s.dateTimeLabelFormats[!s.grid&&u.higherRanks[d]||u.unitName]),b=y.main;t.isFirst=f,t.isLast=g,t.formatCtx={axis:e,chart:o,isFirst:f,isLast:g,dateTimeLabelFormat:b,tickPositionInfo:u,value:e.isLog?a(e.lin2log(h)):h,pos:d},s=e.labelFormatter.call(t.formatCtx,this.formatCtx),(v=y&&y.list)&&(t.shortenLabel=function(){for(m=0;m<v.length;m++)if(x.attr({text:e.labelFormatter.call(n(t.formatCtx,{dateTimeLabelFormat:v[m]}))}),x.getBBox().width<e.getSlotWidth(t)-2*r(p.padding,5))return;x.attr({text:""})}),i(x)?x&&x.textStr!==s&&(!x.textWidth||p.style&&p.style.width||x.styles.width||x.css({width:null}),x.attr({text:s}
1),x.textPxLength=x.getBBox().width):((t.label=x=i(s)&&p.enabled?o.renderer.text(s,0,0,p.useHTML).add(e.labelGroup):null)&&(o.styledMode||x.css(l(p.style)),x.textPxLength=x.getBBox().width),t.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e=this.axis,i=e.options.labels,s=t.x,n=e.chart.chartWidth,o=e.chart.spacing,a=r(e.labelLeft,Math.min(e.pos,o[3]));o=r(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,n-o[1]));var h,l=this.label,d=this.rotation,p={left:0,center:.5,right:1}[e.labelAlign||l.attr("align")],u=l.getBBox().width,f=e.getSlotWidth(this),g=f,m=1,v={};d||"justify"!==r(i.overflow,"justify")?0>d&&s-p*u<a?h=Math.round(s/Math.cos(d*c)-a):0<d&&s+p*u>o&&(h=Math.round((n-s)/Math.cos(d*c))):(n=s+(1-p)*u,s-p*u<a?g=t.x+g*(1-p)-a:n>o&&(g=o-t.x+g*p,m=-1),(g=Math.min(f,g))<f&&"center"===e.labelAlign&&(t.x+=m*(f-g-p*(f-Math.min(u,g)))),(u>g||e.autoRotation&&(l.styles||{}).width)&&(h=g)),h&&(this.shortenLabel?this.shortenLabel():(v.width=Math.floor(h),(i.style||{}).textOverflow||(v.textOverflow="ellipsis"),l.css(v)))},getPosition:function(e,i,s,n){var o=this.axis,r=o.chart,a=n&&r.oldChartHeight||r.chartHeight;return(e={x:e?t.correctFloat(o.translate(i+s,null,null,n)+o.transB):o.left+o.offset+(o.opposite?(n&&r.oldChartWidth||r.chartWidth)-o.right-o.left:0),y:e?a-o.bottom+o.offset-(o.opposite?o.height:0):t.correctFloat(a-o.translate(i+s,null,null,n)-o.transB)}).y=Math.max(Math.min(e.y,1e5),-1e5),h(this,"afterGetPosition",{pos:e}),e},getLabelPosition:function(t,e,s,n,o,r,a,l){var d=this.axis,p=d.transA,u=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,f=d.staggerLines,g=d.tickRotCorr||{x:0,y:0},m=o.y,v=n||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),x={};return i(m)||(m=0===d.side?s.rotation?-8:-s.getBBox().height:2===d.side?g.y+8:Math.cos(s.rotation*c)*(g.y-s.getBBox(!1,0).height/2)),t=t+o.x+v+g.x-(r&&n?r*p*(u?-1:1):0),e=e+m-(r&&!n?r*p*(u?1:-1):0),f&&(s=a/(l||1)%f,d.opposite&&(s=f-s-1),e+=d.labelOffset/f*s),x.x=t,x.y=Math.round(e),h(this,"afterGetLabelPosition",{pos:x,tickmarkOffset:r,index:a}),x},getMarkPath:function(t,e,i,s,n,o){return o.crispLine(["M",t,e,"L",t+(n?0:-i),e+(n?i:0)],s)},renderGridLine:function(t,e,i){var s=this.axis,n=s.options,o=this.gridLine,a={},h=this.pos,l=this.type,c=r(this.tickmarkOffset,s.tickmarkOffset),d=s.chart.renderer,p=l?l+"Grid":"grid",u=n[p+"LineWidth"],f=n[p+"LineColor"];n=n[p+"LineDashStyle"],o||(s.chart.styledMode||(a.stroke=f,a["stroke-width"]=u,n&&(a.dashstyle=n)),l||(a.zIndex=1),t&&(e=0),this.gridLine=o=d.path().attr(a).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(s.gridGroup)),o&&(i=s.getPlotLinePath({value:h+c,lineWidth:o.strokeWidth()*i,force:"pass",old:t}))&&o[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},renderMark:function(t,e,i){var s=this.axis,n=s.options,o=s.chart.renderer,a=this.type,h=a?a+"Tick":"tick",l=s.tickSize(h),c=this.mark,d=!c,p=t.x;t=t.y;var u=r(n[h+"Width"],!a&&s.isXAxis?1:0);n=n[h+"Color"],l&&(s.opposite&&(l[0]=-l[0]),d&&(this.mark=c=o.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(s.axisGroup),s.chart.styledMode||c.attr({stroke:n,"stroke-width":u})),c[d?"attr":"animate"]({d:this.getMarkPath(p,t,l[0],c.strokeWidth()*i,s.horiz,o),opacity:e}))},renderLabel:function(t,e,i,s){var n=this.axis,a=n.horiz,h=n.options,l=this.label,c=h.labels,d=c.step;n=r(this.tickmarkOffset,n.tickmarkOffset);var p=!0,u=t.x;t=t.y,l&&o(u)&&(l.xy=t=this.getLabelPosition(u,t,l,a,c,n,s,d),this.isFirst&&!this.isLast&&!r(h.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(h.showLastLabel,1)?p=!1:!a||c.step||c.rotation||e||0===i||this.handleOverflow(t),d&&s%d&&(p=!1),p&&o(t.y)?(t.opacity=i,l[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(l.attr("y",-9999),this.isNewLabel=!0))},render:function(e,i,s){var n=this.axis,o=n.horiz,a=this.pos,h=r(this.tickmarkOffset,n.tickmarkOffset);h=(a=this.getPosition(o,a,h,i)).x;var l=a.y;n=o&&h===n.pos+n.len||!o&&l===n.pos?-1:1,s=r(s,1),this.isActive=!0,this.renderGridLine(i,s,n),this.renderMark(a,s,n),this.renderLabel(a,i,s,e),this.isNew=!1,t.fireEvent(this,"afterRe
1nder")},destroy:function(){s(this,this.axis)}}})),e(i,"parts/Axis.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.arrayMax,s=e.arrayMin,n=e.defined,o=e.destroyObjectProperties,r=e.extend,a=e.isArray,h=e.isNumber,l=e.isString,c=e.objectEach,d=e.pick,p=e.splat,u=e.syncTimeout,f=t.addEvent,g=t.animObject,m=t.color,v=t.correctFloat,x=t.defaultOptions,y=t.deg2rad,b=t.fireEvent,k=t.format,w=t.getMagnitude,M=t.merge,S=t.normalizeTickInterval,A=t.removeEvent,T=t.seriesTypes,P=t.Tick;return e=function(){this.init.apply(this,arguments)},r(e.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,showEmpty:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return t.numberFormat(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},init:function(e,i){var s=i.isX,o=this;o.chart=e,o.horiz=e.inverted&&!o.isZAxis?!s:s,o.isXAxis=s,o.coll=o.coll||(s?"xAxis":"yAxis"),b(this,"init",{userOptions:i}),o.opposite=i.opposite,o.side=i.side||(o.horiz?o.opposite?0:2:o.opposite?1:3),o.setOptions(i);var r=this.options,a=r.type;o.labelFormatter=r.labels.formatter||o.defaultLabelFormatter,o.userOptions=i,o.minPixelPadding=0,o.reversed=r.reversed,o.visible=!1!==r.visible,o.zoomEnabled=!1!==r.zoomEnabled,o.hasNames="category"===a||!0===r.categories,o.categories=r.categories||o.hasNames,o.names||(o.names=[],o.names.keys={}),o.plotLinesAndBandsGroups={},o.isLog="logarithmic"===a,o.isDatetimeAxis="datetime"===a,o.positiveValuesOnly=o.isLog&&!o.allowNegativeLog,o.isLinked=n(r.linkedTo),o.ticks={},o.labelEdge=[],o.minorTicks={},o.plotLinesAndBands=[],o.alternateBands={},o.len=0,o.minRange=o.userMinRange=r.minRange||r.maxZoom,o.range=r.range,o.offset=r.offset||0,o.stacks={},o.oldStacks={},o.stacksTouched=0,o.max=null,o.min=null,o.crosshair=d(r.crosshair,p(e.options.tooltip.crosshairs)[s?0:1],!1),i=o.options.events,-1===e.axes.indexOf(o)&&(s?e.axes.splice(e.xAxis.length,0,o):e.axes.push(o),e[o.coll].push(o)),o.series=o.series||[],e.inverted&&!o.isZAxis&&s&&void 0===o.reversed&&(o.reversed=!0),c(i,(function(e,i){t.isFunction(e)&&f(o,i,e)})),o.lin2log=r.linearToLogConverter||o.lin2log,o.isLog&&(o.val2lin=o.log2lin,o.lin2val=o.lin2log),b(this,"afterInit")},setOptions:function(t){this.options=M(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],M(x[this.coll],t)),b(this,"afterSetOptions",{userOptions:t})},defaultLabelFormatter:function(){var e=this.axis,i=this.value,s=e.chart.time,n=e.categories,o=this.dateTimeLabelFormat,r=x.lang,a=r.numericSymbols;r=r.numericSymbolMagnitude||1e3;var h=a&&a.length,l=e.options.labels.format;if(e=e.isLog?Math.abs(i):e.tickInterval,l)var c=k(l,this,s);else if(n)c=i;else if(o)c=s.dateFormat(o,i);else if(h&&1e3<=e)for(;h--&&void 0===c;)e>=(s=Math.pow(r,h+1))&&0==10*i%s&&null!==a[h]&&0!==i&&(c=t.numberFormat(i/s,-1)+a[h]);return void 0===c&&(c=1e4<=Math.abs(i)?t.numberFormat(i,-1):t.numberFormat(i,-1,void 0,"")),c},getSeriesExtremes:function(){var t,e=this,i=e.chart;b(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.buildStacks&&e.buildStacks(),e.series.forEac
1h((function(s){if(s.visible||!i.options.chart.ignoreHiddenSeries){var o=s.options,r=o.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=r&&(r=null),e.isXAxis){if((o=s.xData).length){var a=(t=s.getXExtremes(o)).min,l=t.max;h(a)||a instanceof Date||(o=o.filter(h),a=(t=s.getXExtremes(o)).min,l=t.max),o.length&&(e.dataMin=Math.min(d(e.dataMin,a),a),e.dataMax=Math.max(d(e.dataMax,l),l))}}else s.getExtremes(),l=s.dataMax,a=s.dataMin,n(a)&&n(l)&&(e.dataMin=Math.min(d(e.dataMin,a),a),e.dataMax=Math.max(d(e.dataMax,l),l)),n(r)&&(e.threshold=r),(!o.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),b(this,"afterGetSeriesExtremes")},translate:function(t,e,i,s,n,o){var r=this.linkedParent||this,a=1,l=0,c=s?r.oldTransA:r.transA;s=s?r.oldMin:r.min;var d=r.minPixelPadding;return n=(r.isOrdinal||r.isBroken||r.isLog&&n)&&r.lin2val,c||(c=r.transA),i&&(a*=-1,l=r.len),r.reversed&&(l-=(a*=-1)*(r.sector||r.len)),e?(t=(t*a+l-d)/c+s,n&&(t=r.lin2val(t))):(n&&(t=r.val2lin(t)),t=h(s)?a*(t-s)*c+l+a*d+(h(o)?c*o:0):void 0),t},toPixels:function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},toValue:function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t){var e,i,s,n,o,r=this,a=r.chart,l=r.left,c=r.top,p=t.old,u=t.value,f=t.translatedValue,g=t.lineWidth,m=t.force,v=p&&a.oldChartHeight||a.chartHeight,x=p&&a.oldChartWidth||a.chartWidth,y=r.transB,k=function(t,e,i){return("pass"!==m&&t<e||t>i)&&(m?t=Math.min(Math.max(e,t),i):o=!0),t};return t={value:u,lineWidth:g,old:p,force:m,acrossPanes:t.acrossPanes,translatedValue:f},b(this,"getPlotLinePath",t,(function(t){f=d(f,r.translate(u,null,null,p)),f=Math.min(Math.max(-1e5,f),1e5),e=s=Math.round(f+y),i=n=Math.round(v-f-y),h(f)?r.horiz?(i=c,n=v-r.bottom,e=s=k(e,l,l+r.width)):(e=l,s=x-r.right,i=n=k(i,c,c+r.height)):(o=!0,m=!1),t.path=o&&!m?null:a.renderer.crispLine(["M",e,i,"L",s,n],g||1)})),t.path},getLinearTickPositions:function(t,e,i){var s=v(Math.floor(e/t)*t);i=v(Math.ceil(i/t)*t);var n,o=[];if(v(s+t)===s&&(n=20),this.single)return[e];for(e=s;e<=i&&(o.push(e),(e=v(e+t,n))!==r);)var r=e;return o},getMinorTickInterval:function(){var t=this.options;return!0===t.minorTicks?d(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},getMinorTickPositions:function(){var t=this,e=t.options,i=t.tickPositions,s=t.minorTickInterval,n=[],o=t.pointRangePadding||0,r=t.min-o,a=(o=t.max+o)-r;if(a&&a/s<t.len/3)if(t.isLog)this.paddedTicks.forEach((function(e,i,o){i&&n.push.apply(n,t.getLogTickPositions(s,o[i-1],o[i],!0))}));else if(t.isDatetimeAxis&&"auto"===this.getMinorTickInterval())n=n.concat(t.getTimeTicks(t.normalizeTimeTickInterval(s),r,o,e.startOfWeek));else for(e=r+(i[0]-r)%s;e<=o&&e!==n[0];e+=s)n.push(e);return 0!==n.length&&t.trimTicks(n),n},adjustForMinRange:function(){var t,e,o,r,a=this.options,h=this.min,l=this.max;if(this.isXAxis&&void 0===this.minRange&&!this.isLog&&(n(a.min)||n(a.max)?this.minRange=null:(this.series.forEach((function(i){for(r=i.xData,e=i.xIncrement?1:r.length-1;0<e;e--)o=r[e]-r[e-1],(void 0===t||o<t)&&(t=o)})),this.minRange=Math.min(5*t,this.dataMax-this.dataMin))),l-h<this.minRange){var c=this.dataMax-this.dataMin>=this.minRange,p=this.minRange,u=(p-l+h)/2;u=[h-u,d(a.min,h-u)],c&&(u[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),l=[(h=i(u))+p,d(a.max,h+p)],c&&(l[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),(l=s(l))-h<p&&(u[0]=l-p,u[1]=d(a.min,l-p),h=i(u))}this.min=h,this.max=l},getClosest:function(){var t;return this.categories?t=1:this.series.forEach((function(e){var i=e.closestPointRange,s=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&n(i)&&s&&(t=n(t)?Math.min(t,i):i)})),t},nameToX:function(t){var e=a(this.categories),i=e?this.categories:this.names,s=t.options.x;if(t.series.requireSorting=!1,n(s)||(s=!1===this.options.uniqueNames?t.series.autoIncrement():e?i.indexOf(t.name):d(i.keys[t.name],-1)),-1===s){if(!e)var o=i.length}else o=s;return void 0!==o&&(this.names[o]=t.name,this.names.keys[t.name]=o),o},updateNames:function(){var t=this,e=this.names;
10<e.length&&(Object.keys(e.keys).forEach((function(t){delete e.keys[t]})),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach((function(i,s){if(i&&i.options&&void 0!==i.name){var n=t.nameToX(i);void 0!==n&&n!==i.x&&(i.x=n,e.xData[s]=n)}}))})))},setAxisTranslation:function(t){var e=this,i=e.max-e.min,s=e.axisPointRange||0,n=0,o=0,r=e.linkedParent,a=!!e.categories,h=e.transA,c=e.isXAxis;if(c||a||s){var p=e.getClosest();r?(n=r.minPointOffset,o=r.pointRangePadding):e.series.forEach((function(t){var i=a?1:c?d(t.options.pointRange,p,0):e.axisPointRange||0,r=t.options.pointPlacement;s=Math.max(s,i),e.single&&!a||(t=T.xrange&&t instanceof T.xrange?!c:c,n=Math.max(n,t&&l(r)?0:i/2),o=Math.max(o,t&&"on"===r?0:i))})),r=e.ordinalSlope&&p?e.ordinalSlope/p:1,e.minPointOffset=n*=r,e.pointRangePadding=o*=r,e.pointRange=Math.min(s,e.single&&a?1:i),c&&(e.closestPointRange=p)}t&&(e.oldTransA=h),e.translationSlope=e.transA=h=e.staticScale||e.len/(i+o||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=h*n,b(this,"afterSetAxisTranslation")},minFromRange:function(){return this.max-this.range},setTickInterval:function(e){var i=this,s=i.chart,o=i.options,r=i.isLog,a=i.isDatetimeAxis,l=i.isXAxis,c=i.isLinked,p=o.maxPadding,u=o.minPadding,f=o.tickInterval,g=o.tickPixelInterval,m=i.categories,x=h(i.threshold)?i.threshold:null,y=i.softThreshold;a||m||c||this.getTickAmount();var k=d(i.userMin,o.min),M=d(i.userMax,o.max);if(c){i.linkedParent=s[i.coll][o.linkedTo];var A=i.linkedParent.getExtremes();i.min=d(A.min,A.dataMin),i.max=d(A.max,A.dataMax),o.type!==i.linkedParent.options.type&&t.error(11,1,s)}else{if(!y&&n(x))if(i.dataMin>=x)A=x,u=0;else if(i.dataMax<=x){var T=x;p=0}i.min=d(k,A,i.dataMin),i.max=d(M,T,i.dataMax)}r&&(i.positiveValuesOnly&&!e&&0>=Math.min(i.min,d(i.dataMin,i.min))&&t.error(10,1,s),i.min=v(i.log2lin(i.min),16),i.max=v(i.log2lin(i.max),16)),i.range&&n(i.max)&&(i.userMin=i.min=k=Math.max(i.dataMin,i.minFromRange()),i.userMax=M=i.max,i.range=null),b(i,"foundExtremes"),i.beforePadding&&i.beforePadding(),i.adjustForMinRange(),!(m||i.axisPointRange||i.usePercentage||c)&&n(i.min)&&n(i.max)&&(s=i.max-i.min)&&(!n(k)&&u&&(i.min-=s*u),!n(M)&&p&&(i.max+=s*p)),h(o.softMin)&&!h(i.userMin)&&o.softMin<i.min&&(i.min=k=o.softMin),h(o.softMax)&&!h(i.userMax)&&o.softMax>i.max&&(i.max=M=o.softMax),h(o.floor)&&(i.min=Math.min(Math.max(i.min,o.floor),Number.MAX_VALUE)),h(o.ceiling)&&(i.max=Math.max(Math.min(i.max,o.ceiling),d(i.userMax,-Number.MAX_VALUE))),y&&n(i.dataMin)&&(x=x||0,!n(k)&&i.min<x&&i.dataMin>=x?i.min=i.options.minRange?Math.min(x,i.max-i.minRange):x:!n(M)&&i.max>x&&i.dataMax<=x&&(i.max=i.options.minRange?Math.max(x,i.min+i.minRange):x)),i.tickInterval=i.min===i.max||void 0===i.min||void 0===i.max?1:c&&!f&&g===i.linkedParent.options.tickPixelInterval?f=i.linkedParent.tickInterval:d(f,this.tickAmount?(i.max-i.min)/Math.max(this.tickAmount-1,1):void 0,m?1:(i.max-i.min)*g/Math.max(i.len,g)),l&&!e&&i.series.forEach((function(t){t.processData(i.min!==i.oldMin||i.max!==i.oldMax)})),i.setAxisTranslation(!0),i.beforeSetTickPositions&&i.beforeSetTickPositions(),i.postProcessTickInterval&&(i.tickInterval=i.postProcessTickInterval(i.tickInterval)),i.pointRange&&!f&&(i.tickInterval=Math.max(i.pointRange,i.tickInterval)),e=d(o.minTickInterval,i.isDatetimeAxis&&i.closestPointRange),!f&&i.tickInterval<e&&(i.tickInterval=e),a||r||f||(i.tickInterval=S(i.tickInterval,null,w(i.tickInterval),d(o.allowDecimals,!(.5<i.tickInterval&&5>i.tickInterval&&1e3<i.max&&9999>i.max)),!!this.tickAmount)),this.tickAmount||(i.tickInterval=i.unsquish()),this.setTickPositions()},setTickPositions:function(){var e=this.options,i=e.tickPositions,s=this.getMinorTickInterval(),o=e.tickPositioner,r=e.startOnTick,a=e.endOnTick;this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===s&&this.tickInterval?this.tickInterval/5:s,this.single=this.min===this.max&&n(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),this.tickPositions=s=i&&i.slice(),!s&&(!this.ordinalPositions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)?(s=[this.min,this.max],t.error(19,!1,this.chart)):s=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),s.length>this.len&&(s=[s[0],s.pop()])[0]===s[1]&&(s.length=1),this.tickPositions=s,o&&(o=o.apply(this,[this.min,this.max])))&&
1(this.tickPositions=s=o),this.paddedTicks=s.slice(0),this.trimTicks(s,r,a),this.isLinked||(this.single&&2>s.length&&!this.categories&&(this.min-=.5,this.max+=.5),i||o||this.adjustTickAmount()),b(this,"afterSetTickPositions")},trimTicks:function(t,e,i){var s=t[0],o=t[t.length-1],r=this.minPointOffset||0;if(b(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==s)this.min=s;else for(;this.min-r>t[0];)t.shift();if(i)this.max=o;else for(;this.max+r<t[t.length-1];)t.pop();0===t.length&&n(s)&&!this.options.tickPositions&&t.push((o+s)/2)}},alignToOthers:function(){var t,e={},i=this.options;return!1===this.chart.options.chart.alignTicks||!1===i.alignTicks||!1===i.startOnTick||!1===i.endOnTick||this.isLog||this.chart[this.coll].forEach((function(i){var s=i.options;s=[i.horiz?s.left:s.top,s.width,s.height,s.pane].join(),i.series.length&&(e[s]?t=!0:e[s]=1)})),t},getTickAmount:function(){var t=this.options,e=t.tickAmount,i=t.tickPixelInterval;!n(t.tickInterval)&&this.len<i&&!this.isRadial&&!this.isLog&&t.startOnTick&&t.endOnTick&&(e=2),!e&&this.alignToOthers()&&(e=Math.ceil(this.len/i)+1),4>e&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var t,e=this.options,i=this.tickInterval,s=this.tickPositions,o=this.tickAmount,r=this.finalTickAmt,a=s&&s.length,h=d(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(a<o){for(t=this.min;s.length<o;)s.length%2||t===h?s.push(v(s[s.length-1]+i)):s.unshift(v(s[0]-i));this.transA*=(a-1)/(o-1),this.min=e.startOnTick?s[0]:Math.min(this.min,s[0]),this.max=e.endOnTick?s[s.length-1]:Math.max(this.max,s[s.length-1])}else a>o&&(this.tickInterval*=2,this.setTickPositions());if(n(r)){for(i=e=s.length;i--;)(3===r&&1==i%2||2>=r&&0<i&&i<e-1)&&s.splice(i,1);this.finalTickAmt=void 0}}},setScale:function(){var t,e=this.series.some((function(t){return t.isDirtyData||t.isDirty||t.xAxis&&t.xAxis.isDirty}));this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),(t=this.len!==this.oldAxisLength)||e||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=t||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks(),b(this,"afterSetScale")},setExtremes:function(t,e,i,s,n){var o=this,a=o.chart;i=d(i,!0),o.series.forEach((function(t){delete t.kdTree})),n=r(n,{min:t,max:e}),b(o,"setExtremes",n,(function(){o.userMin=t,o.userMax=e,o.eventArgs=n,i&&a.redraw(s)}))},zoom:function(t,e){var i=this.dataMin,s=this.dataMax,o=this.options,r=Math.min(i,d(o.min,i)),a=Math.max(s,d(o.max,s)
1);return b(this,"zoom",t={newMin:t,newMax:e},(function(t){var e=t.newMin,o=t.newMax;e===this.min&&o===this.max||(this.allowZoomOutside||(n(i)&&(e<r&&(e=r),e>a&&(e=a)),n(s)&&(o<r&&(o=r),o>a&&(o=a))),this.displayBtn=void 0!==e||void 0!==o,this.setExtremes(e,o,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed},setAxisSize:function(){var e=this.chart,i=this.options,s=i.offsets||[0,0,0,0],n=this.horiz,o=this.width=Math.round(t.relativeLength(d(i.width,e.plotWidth-s[3]+s[1]),e.plotWidth)),r=this.height=Math.round(t.relativeLength(d(i.height,e.plotHeight-s[0]+s[2]),e.plotHeight)),a=this.top=Math.round(t.relativeLength(d(i.top,e.plotTop+s[0]),e.plotHeight,e.plotTop));i=this.left=Math.round(t.relativeLength(d(i.left,e.plotLeft+s[3]),e.plotWidth,e.plotLeft)),this.bottom=e.chartHeight-r-a,this.right=e.chartWidth-o-i,this.len=Math.max(n?o:r,0),this.pos=n?i:a},getExtremes:function(){var t=this.isLog;return{min:t?v(this.lin2log(this.min)):this.min,max:t?v(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=this.isLog,i=e?this.lin2log(this.min):this.min;return e=e?this.lin2log(this.max):this.max,null===t||-1/0===t?t=i:1/0===t?t=e:i>t?t=i:e<t&&(t=e),this.translate(t,0,1,0,1)},autoLabelAlign:function(t){var e=(d(t,0)-90*this.side+720)%360;return b(this,"autoLabelAlign",t={align:"center"},(function(t){15<e&&165>e?t.align="right":195<e&&345>e&&(t.align="left")})),t.align},tickSize:function(t){var e=this.options,i=e[t+"Length"],s=d(e[t+"Width"],"tick"===t&&this.isXAxis&&!this.categories?1:0);if(s&&i){"inside"===e[t+"Position"]&&(i=-i);var n=[i,s]}return b(this,"afterTickSize",t={tickSize:n}),t.tickSize},labelMetrics:function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},unsquish:function(){var t,e,i,s=this.options.labels,o=this.horiz,r=this.tickInterval,a=r,h=this.len/(((this.categories?1:0)+this.max-this.min)/r),l=s.rotation,c=this.labelMetrics(),p=Number.MAX_VALUE,u=this.max-this.min,f=function(t){var e=t/(h||1);return(e=1<e?Math.ceil(e):1)*r>u&&1/0!==t&&1/0!==h&&u&&(e=Math.ceil(u/r)),v(e*r)};return o?(i=!s.staggerLines&&!s.step&&(n(l)?[l]:h<d(s.autoRotationLimit,80)&&s.autoRotation))&&i.forEach((function(i){if(i===l||i&&-90<=i&&90>=i){var s=(e=f(Math.abs(c.h/Math.sin(y*i))))+Math.abs(i/360);s<p&&(p=s,t=i,a=e)}})):s.step||(a=f(c.h)),this.autoRotation=i,this.labelRotation=d(t,l),a},getSlotWidth:function(t){var e=this.chart,i=this.horiz,s=this.options.labels,n=Math.max(this.tickPositions.length-(this.categories?0:1),1),o=e.margin[3];return t&&t.slotWidth||i&&2>(s.step||0)&&!s.rotation&&(this.staggerLines||1)*this.len/n||!i&&(s.style&&parseInt(s.style.width,10)||o&&o-e.spacing[3]||.33*e.chartWidth)},renderUnsquish:function(){var t=this.chart,e=t.renderer,i=this.tickPositions,s=this.ticks,n=this.options.labels,o=n&&n.style||{},r=this.horiz,a=this.getSlotWidth(),h=Math.max(1,Math.round(a-2*(n.padding||5))),c={},d=this.labelMetrics(),p=n.style&&n.style.textOverflow,u=0;if(l(n.rotation)||(c.rotation=n.rotation||0),i.forEach((function(t){(t=s[t])&&t.label&&t.label.textPxLength>u&&(u=t.label.textPxLength)})),this.maxLabelLength=u,this.autoRotation)u>h&&u>d.h?c.rotation=this.labelRotation:this.labelRotation=0;else if(a){var f=h;if(!p){var g="clip";for(h=i.length;!r&&h--;){var m=i[h];(m=s[m].label)&&(m.styles&&"ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):m.textPxLength>a&&m.css({width:a+"px"}),m.getBBox().height>this.len/i.length-(d.h-d.f)&&(m.specificTextOverflow="ellipsis"))}}}c.rotation&&(f=u>.5*t.chartHeight?.33*t.chartHeight:u,p||(g="ellipsis")),(this.labelAlign=n.align||this.autoLabelAlign(this.labelRotation))&&(c.align=this.labelAlign),i.forEac
1h((function(t){var e=(t=s[t])&&t.label,i=o.width,n={};e&&(e.attr(c),t.shortenLabel?t.shortenLabel():f&&!i&&"nowrap"!==o.whiteSpace&&(f<e.textPxLength||"SPAN"===e.element.tagName)?(n.width=f,p||(n.textOverflow=e.specificTextOverflow||g),e.css(n)):e.styles&&e.styles.width&&!n.width&&!i&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=c.rotation)}),this),this.tickRotCorr=e.rotCorr(d.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.series.some((function(t){return t.hasData()}))||this.options.showEmpty&&n(this.min)&&n(this.max)},addTitle:function(t){var e,i=this.chart.renderer,s=this.horiz,n=this.opposite,o=this.options.title,r=this.chart.styledMode;this.axisTitle||((e=o.textAlign)||(e=(s?{low:"left",middle:"center",high:"right"}:{low:n?"right":"left",middle:"center",high:n?"left":"right"})[o.align]),this.axisTitle=i.text(o.text,0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation||0,align:e}).addClass("highcharts-axis-title"),r||this.axisTitle.css(M(o.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),r||o.style.width||this.isRadial||this.axisTitle.css({width:this.len}),this.axisTitle[t?"show":"hide"](t)},generateTick:function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new P(this,t)},getOffset:function(){var t,e=this,i=e.chart,s=i.renderer,o=e.options,r=e.tickPositions,a=e.ticks,h=e.horiz,l=e.side,p=i.inverted&&!e.isZAxis?[1,0,3,2][l]:l,u=0,f=0,g=o.title,m=o.labels,v=0,x=i.axisOffset;i=i.clipOffset;var y=[-1,1,1,-1][l],k=o.className,w=e.axisParent,M=e.hasData();if(e.showAxis=t=M||d(o.showEmpty,!0),e.staggerLines=e.horiz&&m.staggerLines,e.axisGroup||(e.gridGroup=s.g("grid").attr({zIndex:o.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(k||"")).add(w),e.axisGroup=s.g("axis").attr({zIndex:o.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(k||"")).add(w),e.labelGroup=s.g("axis-labels").attr({zIndex:m.zIndex||7}).addClass("highcharts-"+e.coll.toLowerCase()+"-labels "+(k||"")).add(w)),M||e.isLinked?(r.forEach((function(t,i){e.generateTick(t,i)})),e.renderUnsquish(),e.reserveSpaceDefault=0===l||2===l||{1:"left",3:"right"}[l]===e.labelAlign,d(m.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&r.forEach((function(t){v=Math.max(a[t].getLabelSize(),v)})),e.staggerLines&&(v*=e.staggerLines),e.labelOffset=v*(e.opposite?-1:1)):c(a,(function(t,e){t.destroy(),delete a[e]})),g&&g.text&&!1!==g.enabled&&(e.addTitle(t),t&&!1!==g.reserveSpace)){e.titleOffset=u=e.axisTitle.getBBox()[h?"height":"width"];var S=g.offset;f=n(S)?0:d(g.margin,h?5:10)}e.renderLine(),e.offset=y*d(o.offset,x[l]?x[l]+(o.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},s=0===l?-e.labelMetrics().h:2===l?e.tickRotCorr.y:0,f=Math.abs(v)+f,v&&(f=f-s+y*(h?d(m.y,e.tickRotCorr.y+8*y):m.x)),e.axisTitleMargin=d(S,f),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(a,r)),h=this.tickSize("tick"),x[l]=Math.max(x[l],e.axisTitleMargin+u+y*e.offset,f,r&&r.length&&h?h[0]+y*e.offset:0),o=o.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),i[p]=Math.max(i[p],o),b(this,"afterGetOffset")},getLinePath:function(t){var e=this.chart,i=this.opposite,s=this.offset,n=this.horiz,o=this.left+(i?this.width:0)+s;return s=e.chartHeight-this.bottom-(i?this.height:0)+s,i&&(t*=-1),e.renderer.crispLine(["M",n?this.left:o,n?s:this.top,"L",n?e.chartWidth-this.right:o,n?s:e.chartHeight-this.bottom],t)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var t=this.horiz,e=this.left,i=this.top,s=this.len,n=this.options.title,o=t?e:i,r=this.opposite,a=this.offset,h=n.x||0,l=n.y||0,c=this.axisTitle,d=this.chart.renderer.fontMetrics(n.style&&n.style.fontSize,c);return c=Math.max(c.getBBox(null,0).height-d.h-1,0),s={low:o+(t?0:s),middle:o+s/2,high:o+(t?s:0)}[n.align],e=(t?i+this.height:e)+(t?1:-1)*(r?-1:1)*this.axisTitleMargin+[-c,c,d.f,-c][this.side],t={x:t?s+h:e+(r?this.width:0)+a+h,y:t?e+l-(r?this.height:0)+a:s+l},b(this,"afterGetTitlePosition",{titlePosition:t}),t},renderMinorTick:function(t){var e=this.chart.hasRendered&&h(this.oldMin),i=this.minorTicks;i[t]||(i[t]=new P(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},renderTick:function(t,e){var i=this.isLinked,s=this.ticks,n=this.chart.hasRendered&&h(this.oldMin);(!i||t>=this.min&&t<=this.max)&&(s[t]||(s[t]=new P(this,t)),n&&s[t].isNew&&s[t].render(e,!0,-1),s[t].render(e))},render:function(){var e,i,s=this,n=s.chart,o=s.options,r=s.isLog,a=s.isLinked,l=s.tickPositions,d=s.axisTitle,p=s.ticks,f=s.minorTicks,m=s.alternateBands,v=o.stackLabels,x=o.alternateGridColor,y=s.tickmarkOffset,k=s.axisLine,w=s.showAxis,M=g(n.renderer.globalAnimation);s.labelEdge.length=0,s.overlap=!1,[p,f,m].forEach((function(t){c(t,(function(t){t.isActive=!1}))})),(s.hasData()||a)&&(s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEac
1h((function(t){s.renderMinorTick(t)})),l.length&&(l.forEach((function(t,e){s.renderTick(t,e)})),y&&(0===s.min||s.single)&&(p[-1]||(p[-1]=new P(s,-1,null,!0)),p[-1].render(-1))),x&&l.forEach((function(o,a){i=void 0!==l[a+1]?l[a+1]+y:s.max-y,0==a%2&&o<s.max&&i<=s.max+(n.polar?-y:y)&&(m[o]||(m[o]=new t.PlotLineOrBand(s)),e=o+y,m[o].options={from:r?s.lin2log(e):e,to:r?s.lin2log(i):i,color:x},m[o].render(),m[o].isActive=!0)})),s._addedPlotLB||((o.plotLines||[]).concat(o.plotBands||[]).forEach((function(t){s.addPlotBandOrLine(t)})),s._addedPlotLB=!0)),[p,f,m].forEach((function(t){var e,i=[],s=M.duration;c(t,(function(t,e){t.isActive||(t.render(e,!1,0),t.isActive=!1,i.push(e))})),u((function(){for(e=i.length;e--;)t[i[e]]&&!t[i[e]].isActive&&(t[i[e]].destroy(),delete t[i[e]])}),t!==m&&n.hasRendered&&s?s:0)})),k&&(k[k.isPlaced?"animate":"attr"]({d:this.getLinePath(k.strokeWidth())}),k.isPlaced=!0,k[w?"show":"hide"](w)),d&&w&&(o=s.getTitlePosition(),h(o.y)?(d[d.isNew?"attr":"animate"](o),d.isNew=!1):(d.attr("y",-9999),d.isNew=!0)),v&&v.enabled&&s.renderStackTotals(),s.isDirty=!1,b(this,"afterRender")},redraw:function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach((function(t){t.render()}))),this.series.forEach((function(t){t.isDirty=!0}))},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(t){var e,i=this,s=i.stacks,n=i.plotLinesAndBands;if(b(this,"destroy",{keepEvents:t}),t||A(i),c(s,(function(t,e){o(t),s[e]=null})),[i.ticks,i.minorTicks,i.alternateBands].forEach((function(t){o(t)})),n)for(t=n.length;t--;)n[t].destroy();for(e in"stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach((function(t){i[t]&&(i[t]=i[t].destroy())})),i.plotLinesAndBandsGroups)i.plotLinesAndBandsGroups[e]=i.plotLinesAndBandsGroups[e].destroy();c(i,(function(t,e){-1===i.keepProps.indexOf(e)&&delete i[e]}))},drawCrosshair:function(t,e){var i,s,o=this.crosshair,r=d(o.snap,!0),a=this.cross;if(b(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),this.crosshair&&!1!==(n(e)||!r)){if(r?n(e)&&(s=d("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):s=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),n(s)&&(i=this.getPlotLinePath({value:e&&(this.isXAxis?e.x:d(e.stackY,e.y)),translatedValue:s})||null),!n(i))return void this.hideCrosshair();r=this.categories&&!this.isRadial,a||(this.cross=a=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(r?"category ":"thin ")+o.className).attr({zIndex:d(o.zIndex,2)}).add(),this.chart.styledMode||(a.attr({stroke:o.color||(r?m("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":d(o.width,1)}).css({"pointer-events":"none"}),o.dashStyle&&a.attr({dashstyle:o.dashStyle}))),a.show().attr({d:i}),r&&!o.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();b(this,"afterDrawCrosshair",{e:t,point:e})},hideCrosshair:function(){this.cross&&this.cross.hide(),b(this,"afterHideCrosshair")}}),t.Axis=e})),e(i,"parts/DateTimeAxis.js",[i["parts/Globals.js"]],(function(t){var e=t.Axis,i=t.getMagnitude,s=t.normalizeTickInterval,n=t.timeUnits;e.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)},e.prototype.normalizeTimeTickInterval=function(t,e){var o=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];e=o[o.length-1];var r,a=n[e[0]],h=e[1];for(r=0;r<o.length&&(e=o[r],a=n[e[0]],h=e[1],!(o[r+1]&&t<=(a*h[h.length-1]+n[o[r+1][0]])/2));r++);return a===n.year&&t<5*a&&(h=[1,2,5]),{unitRange:a,count:t=s(t/a,h,"year"===e[0]?Math.max(i(t/a),1):1),unitName:e[0]}}})),e(i,"parts/LogarithmicAxis.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.pick;e=t.Axis;var s=t.getMagnitude,n=t.normalizeTickInterval;e.prototype.getLogTickPositions=function(t,e,o,r){var a=this.options,h=this.len,l=[];if(r||(this._minorAutoInterval=null),.5<=t)t=Math.round(t),l=this.getLinearTickPositions(t,e,o);else if(.08<=t){var c,d;for(h=Math.floor(e),a=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];h<o+1&&!d;h++){var p=a.length;for(c=0;c<p&&!d;c++){var u=this.log2lin(this.lin2log(h)*a[c]);u>e&&(!r||f<=o)&&void 0!==f&&l.push(f),f>o&&(d=!0);var f=u}}}else e=this.lin2log(e),o=this.lin2log(o),t=r?this.getMinorTickInterval():a.tickInterval,t=i("auto"===t?null:t,this._minorAutoInterval,a.tickPixelInterval/(r?5:1)*(o-e)/((r?h/this.tickPositions.length:h)||1)),t=n(t,null,s(t)),l=this.getLinearTickPositions(t,e,o).map(this.log2lin),r||(this._minorAutoInterval=t/5);return r||(this.tickInterval=t),l},e.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},e.prototype.lin2log=function(t){return Math.pow(10,t)}})),e(i,"parts/PlotLineOrBand.js",[i["parts/Globals.js"],i["parts/Axis.js"],i["parts/Utilities.js"]],(function(t,e,
1i){var s=i.arrayMax,n=i.arrayMin,o=i.defined,r=i.destroyObjectProperties,a=i.erase,h=i.extend,l=i.objectEach,c=i.pick,d=t.merge;t.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},t.PlotLineOrBand.prototype={render:function(){t.fireEvent(this,"render");var e=this,i=e.axis,s=i.horiz,n=e.options,r=n.label,a=e.label,h=n.to,p=n.from,u=n.value,f=o(p)&&o(h),g=o(u),m=e.svgElem,v=!m,x=[],y=n.color,b=c(n.zIndex,0),k=n.events;x={class:"highcharts-plot-"+(f?"band ":"line ")+(n.className||"")};var w={},M=i.chart.renderer,S=f?"bands":"lines";if(i.isLog&&(p=i.log2lin(p),h=i.log2lin(h),u=i.log2lin(u)),i.chart.styledMode||(g?(x.stroke=y||"#999999",x["stroke-width"]=c(n.width,1),n.dashStyle&&(x.dashstyle=n.dashStyle)):f&&(x.fill=y||"#e6ebf5",n.borderWidth&&(x.stroke=n.borderColor,x["stroke-width"]=n.borderWidth))),w.zIndex=b,S+="-"+b,(y=i.plotLinesAndBandsGroups[S])||(i.plotLinesAndBandsGroups[S]=y=M.g("plot-"+S).attr(w).add()),v&&(e.svgElem=m=M.path().attr(x).add(y)),g)x=i.getPlotLinePath({value:u,lineWidth:m.strokeWidth(),acrossPanes:n.acrossPanes});else{if(!f)return;x=i.getPlotBandPath(p,h,n)}return(v||!m.d)&&x&&x.length?(m.attr({d:x}),k&&l(k,(function(t,i){m.on(i,(function(t){k[i].apply(e,[t])}))}))):m&&(x?(m.show(!0),m.animate({d:x})):m.d&&(m.hide(),a&&(e.label=a=a.destroy()))),r&&(o(r.text)||o(r.formatter))&&x&&x.length&&0<i.width&&0<i.height&&!x.isFlat?(r=d({align:s&&f&&"center",x:s?!f&&4:10,verticalAlign:!s&&f&&"middle",y:s?f?16:10:f?6:-4,rotation:s&&!f&&90},r),this.renderLabel(r,x,f,b)):a&&a.hide(),e},renderLabel:function(t,e,i,o){var r=this.label,a=this.axis.chart.renderer;r||((r={align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||"")}).zIndex=o,o=this.getLabelText(t),this.label=r=a.text(o,0,0,t.useHTML).attr(r).add(),this.axis.chart.styledMode||r.css(t.style)),a=e.xBounds||[e[1],e[4],i?e[6]:e[1]],e=e.yBounds||[e[2],e[5],i?e[7]:e[2]],i=n(a),o=n(e),r.align(t,!1,{x:i,y:o,width:s(a)-i,height:s(e)-o}),r.show(!0)},getLabelText:function(t){return o(t.formatter)?t.formatter.call(this):t.text},destroy:function(){a(this.axis.plotLinesAndBands,this),delete this.axis,r(this)}},h(e.prototype,{getPlotBandPath:function(t,e){var i=this.getPlotLinePath({value:e,force:!0,acrossPanes:this.options.acrossPanes}),s=this.getPlotLinePath({value:t,force:!0,acrossPanes:this.options.acrossPanes}),n=[],o=this.horiz,r=1;if(t=t<this.min&&e<this.min||t>this.max&&e>this.max,s&&i){if(t){var a=s.toString()===i.toString();r=0}for(t=0;t<s.length;t+=6)o&&i[t+1]===s[t+1]?(i[t+1]+=r,i[t+4]+=r):o||i[t+2]!==s[t+2]||(i[t+2]+=r,i[t+5]+=r),n.push("M",s[t+1],s[t+2],"L",s[t+4],s[t+5],i[t+4],i[t+5],i[t+1],i[t+2],"z"),n.isFlat=a}return n},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(e,i){var s=new t.PlotLineOrBand(this,e).render(),n=this.userOptions;if(s){if(i){var o=n[i]||[];o.push(e),n[i]=o}this.plotLinesAndBands.push(s)}return s},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,s=this.userOptions,n=e.length;n--;)e[n].id===t&&e[n].destroy();[i.plotLines||[],s.plotLines||[],i.plotBands||[],s.plotBands||[]].forEach((function(e){for(n=e.length;n--;)e[n].id===t&&a(e,e[n])}))},removePlotBand:function(t){this.removePlotBandOrLine(t)},removePlotLine:function(t){this.removePlotBandOrLine(t)}})})),e(i,"parts/Tooltip.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.discardElement,n=e.extend,o=e.isNumber,r=e.isString,a=e.pick,h=e.splat,l=e.syncTimeout,c=t.doc,d=t.format,p=t.merge,u=t.timeUnits;t.Tooltip=function(){this.init.apply(this,arguments)},t.Tooltip.prototype={init:function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted,this.shared=e.shared||this.split,this.outside=a(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},cleanSplit:function(t){this.chart.series.forEach((function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)}))},applyFilter:function(){var t=this.chart;t.renderer.definition({tagName:"filter",id:"drop-shadow-"+t.index,opacity:.5,children:[{tagName:"feGaussianBlur",in:"SourceAlpha",stdDeviation:1}
1,{tagName:"feOffset",dx:1,dy:1},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",type:"linear",slope:.3}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",in:"SourceGraphic"}]}]}),t.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+t.index+"{filter:url(#drop-shadow-"+t.index+")}"})},getLabel:function(){var e,s=this,n=this.chart.renderer,o=this.chart.styledMode,r=this.options,a="tooltip"+(i(r.className)?" "+r.className:"");if(!this.label){if(this.outside&&(this.container=e=t.doc.createElement("div"),e.className="highcharts-tooltip-container",t.css(e,{position:"absolute",top:"1px",pointerEvents:r.style&&r.style.pointerEvents,zIndex:3}),t.doc.body.appendChild(e),this.renderer=n=new t.Renderer(e,0,0,{},void 0,void 0,n.styledMode)),this.split?this.label=n.g(a):(this.label=n.label("",0,0,r.shape||"callout",null,null,r.useHTML,null,a).attr({padding:r.padding,r:r.borderRadius}),o||this.label.attr({fill:r.backgroundColor,"stroke-width":r.borderWidth}).css(r.style).shadow(r.shadow)),o&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),s.outside&&!s.split){var h={x:this.label.xSetter,y:this.label.ySetter};this.label.xSetter=function(t,i){h[i].call(this.label,s.distance),e.style.left=t+"px"},this.label.ySetter=function(t,i){h[i].call(this.label,s.distance),e.style.top=t+"px"}}this.label.attr({zIndex:8}).add()}return this.label},update:function(t){this.destroy(),p(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,p(!0,this.options,t))},destroy:function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt
1=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),s(this.container)),t.clearTimeout(this.hideTimer),t.clearTimeout(this.tooltipTimeout)},move:function(e,i,s,o){var r=this,a=r.now,h=!1!==r.options.animation&&!r.isHidden&&(1<Math.abs(e-a.x)||1<Math.abs(i-a.y)),l=r.followPointer||1<r.len;n(a,{x:h?(2*a.x+e)/3:e,y:h?(a.y+i)/2:i,anchorX:l?void 0:h?(2*a.anchorX+s)/3:s,anchorY:l?void 0:h?(a.anchorY+o)/2:o}),r.getLabel().attr(a),h&&(t.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout((function(){r&&r.move(e,i,s,o)}),32))},hide:function(e){var i=this;t.clearTimeout(this.hideTimer),e=a(e,this.options.hideDelay,500),this.isHidden||(this.hideTimer=l((function(){i.getLabel()[e?"fadeOut":"hide"](),i.isHidden=!0}),e))},getAnchor:function(t,e){var i,s,n=this.chart,o=n.pointer,r=n.inverted,a=n.plotTop,l=n.plotLeft,c=0,d=0;return t=h(t),this.followPointer&&e?(void 0===e.chartX&&(e=o.normalize(e)),t=[e.chartX-n.plotLeft,e.chartY-a]):t[0].tooltipPos?t=t[0].tooltipPos:(t.forEach((function(t){i=t.series.yAxis,s=t.series.xAxis,c+=t.plotX+(!r&&s?s.left-l:0),d+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!r&&i?i.top-a:0)})),c/=t.length,d/=t.length,t=[r?n.plotWidth-d:c,this.shared&&!r&&1<t.length&&e?e.chartY-a:r?n.plotHeight-c:d]),t.map(Math.round)},getPosition:function(t,e,i){var s,n=this.chart,o=this.distance,r={},h=n.inverted&&i.h||0,l=this.outside,d=l?c.documentElement.clientWidth-2*o:n.chartWidth,p=l?Math.max(c.body.scrollHeight,c.documentElement.scrollHeight,c.body.offsetHeight,c.documentElement.offsetHeight,c.documentElement.clientHeight):n.chartHeight,u=n.pointer.getChartPosition(),f=n.containerScaling,g=function(t){return f?t*f.scaleX:t},m=function(t){return f?t*f.scaleY:t},v=function(s){var r="x"===s;return[s,r?d:p,r?t:e].concat(l?[r?g(t):m(e),r?u.left-o+g(i.plotX+n.plotLeft):u.top-o+m(i.plotY+n.plotTop),0,r?d:p]:[r?t:e,r?i.plotX+n.plotLeft:i.plotY+n.plotTop,r?n.plotLeft:n.plotTop,r?n.plotLeft+n.plotWidth:n.plotTop+n.plotHeight])},x=v("y"),y=v("x"),b=!this.followPointer&&a(i.ttBelow,!n.inverted==!!i.negative),k=function(t,e,i,s,n,a,l){var c="y"===t?m(o):g(o),d=(i-s)/2,p=s<n-o,u=n+o+s<e,f=n-c-i+d;if(n=n+c-d,b&&u)r[t]=n;else if(!b&&p)r[t]=f;else if(p)r[t]=Math.min(l-s,0>f-h?f:f-h);else{if(!u)return!1;r[t]=Math.max(a,n+h+i>e?n:n+h)}},w=function(t,e,i,s,n){var a;return n<o||n>e-o?a=!1:r[t]=n<i/2?1:n>e-s/2?e-s-2:n-i/2,a},M=function(t){var e=x;x=y,y=e,s=t},S=function(){!1!==k.apply(0,x)?!1!==w.apply(0,y)||s||(M(!0),S()):s?r.x=r.y=0:(M(!0),S())};return(n.inverted||1<this.len)&&M(),S(),r},defaultFormatter:function(t){var e=this.points||h(this),i=[t.tooltipFooterHeaderFormatter(e[0])];return(i=i.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),i},refresh:function(e,i){var s=this.chart,n=this.options,o=e,r={},l=[],c=n.formatter||this.defaultFormatter;r=this.shared;var d=s.styledMode;if(n.enabled){t.clearTimeout(this.hideTimer),this.followPointer=h(o)[0].series.tooltipOptions.followPointer;var p=this.getAnchor(o,i);i=p[0];var u=p[1];!r||o.series&&o.series.noSharedTooltip?r=o.getLabelConfig():(s.pointer.applyInactiveState(o),o.forEach((function(t){t.setState("hover"),l.push(t.getLabelConfig())})),(r={x:o[0].category,y:o[0].y}).points=l,o=o[0]),this.len=l.length,s=c.call(r,this),c=o.series,this.distance=a(c.tooltipOptions.distance,16),!1===s?this.hide():(this.split?this.renderSplit(s,h(e)):(e=this.getLabel(),n.style.width&&!d||e.css({width:this.chart.spacingBox.width}),e.attr({text:s&&s.join?s.join(""):s}),e.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+a(o.colorIndex,c.colorIndex)),d||e.attr({stroke:n.borderColor||o.color||c.color||"#666666"}),this.updatePosition({plotX:i,plotY:u,negative:o.negative,ttBelow:o.ttBelow,h:p[2]||0})),this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1),t.fireEvent(this,"refresh")}},renderSplit:function(e,i){var s,n=this,o=[],h=this.chart,l=h.renderer,c=!0,d=this.options,p=0,u=this.getLabel(),f=h.plotTop;r(e)&&(e=[!1,e]),e.slice(0,i.length+1).forEach((function(t,e){if(!1!==t&&""!==t){var r=(e=i[e-1]||{isHeader:!0,plotX:i[0].plotX,plotY:h.plotHeight}).series||n,g=r.tt,m=e.series||{},v="highcharts-color-"+a(e.colorIndex,m.colorIndex,"none");g||(g={padding:d.padding,r:d.borderRadius},h.styledMode||(g.fill=d.backgroundColor,g["stroke-width"]=d.borderWidth),r.tt=g=l.label(null,null,null,(e.isHeader?d.headerShape:d.shape)||"callout",null,null,d.useHTML).addClass(e.isHeader?"highcharts-tooltip-header ":"highcharts-tooltip-box "+v).attr(g).add(u)),g.isActive=!0,g.attr({text:t}),h.styledMode||g.css(d.style).shadow(d.shadow).attr({stroke:d.borderColor||e.color||m.color||"#333333"}),v=(t=g.getBBox()).width+g.strokeWidth(),e.isHeader?(p=t.height,h.xAxis[0].opposite&&(s=!0,f-=p),t=Math.max(0,Math.min(e.plotX+h.plotLeft-v/2,h.chartWidth+(h.scrollablePixelsX?h.scrollablePixelsX-h.marginRight:0)-v))):t=e.plotX+h.plotLeft-a(d.distance,16)-v,0>t&&(c=!1),m=e.isHeader?s?-p:h.plotHeight+p:(m=m.yAxis).pos-f+Math.max(0,Math.min(e.plotY||0,m.len)),o.push({target:m,rank:e.isHeader?1:0,size:r.tt.getBBox().height+1,point:e,x:t,tt:g})}})),this.cleanSplit(),d.positioner&&o.forEach((function(t){var e=d.positioner.call(n,t.tt.getBBox().width,t.size,t.point);t.x=e.x,t.align=0,t.target=e.y,t.rank=a(e.rank,t.rank)})),t.distribute(o,h.plotHeight+p),o.forEach((function(t){var e=t.point,i=e.series,s=i&&i.yAxis;t.tt.attr({visibility:void 0===t.pos?"hidden":"inherit",x:c||e.isHeader||d.positioner?t.x:e.plotX+h.plotLeft+n.distance,y:t.pos+f,anchorX:e.isHeader?e.plotX+h.plotLeft:e.plotX+i.xAxis.pos,anchorY:e.isHeader?h.plotTop+h.plotHeight/2:s.pos+Math.max(0,Math.min(e.plotY,s.len))})}));var g=n.container;if(e=n.renderer,n.outside&&g&&e){var m=h.pointer.getChartPosition();g.style.left=m.left+"px",g.style.top=m.top+"px",g=u.getBBox(),e.setSize(g.width+g.x,g.height+g.y,!1)}},updatePosition:function(e){var i=this.chart,s=i.pointer,n=this.getLabel(),o=e.plotX+i.plotLeft,r=e.plotY+i.plotTop;if(s=s.getChartPosition(),e=(this.options.positioner||this.getPosition).call(this,n.width,n.height,e),this.outside){var a=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(n.width+a,n.height+a,!1),(i=i.containerScaling)&&(t.css(this.container,{transform:"scale("+i.scaleX+", "+i.scaleY+")"}),o*=i.scaleX,r*=i.scaleY),o+=s.left-e.x,r+=s.top-e.y}
1this.move(Math.round(e.x),Math.round(e.y||0),o,r)},getDateFormat:function(t,e,i,s){var n=this.chart.time,o=n.dateFormat("%m-%d %H:%M:%S.%L",e),r={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond";for(h in u){if(t===u.week&&+n.dateFormat("%w",e)===i&&"00:00:00.000"===o.substr(6)){var h="week";break}if(u[h]>t){h=a;break}if(r[h]&&o.substr(r[h])!=="01-01 00:00:00.000".substr(r[h]))break;"week"!==h&&(a=h)}if(h)var l=n.resolveDTLFormat(s[h]).main;return l},getXDateFormat:function(t,e,i){e=e.dateTimeLabelFormats;var s=i&&i.closestPointRange;return(s?this.getDateFormat(s,t.x,i.options.startOfWeek,e):e.day)||e.year},tooltipFooterHeaderFormatter:function(e,i){var s=i?"footer":"header",n=e.series,r=n.tooltipOptions,a=r.xDateFormat,h=n.xAxis,l=h&&"datetime"===h.options.type&&o(e.key),c=r[s+"Format"];return i={isFooter:i,labelConfig:e},t.fireEvent(this,"headerFormatter",i,(function(t){l&&!a&&(a=this.getXDateFormat(e,r,h)),l&&a&&(e.point&&e.point.tooltipDateKeys||["key"]).forEach((function(t){c=c.replace("{point."+t+"}","{point."+t+":"+a+"}")})),n.chart.styledMode&&(c=this.styledModeFormat(c)),t.text=d(c,{point:e,series:n},this.chart.time)})),i.text},bodyFormatter:function(t){return t.map((function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")}))},styledModeFormat:function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')}}})),e(i,"parts/Pointer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.attr,s=e.defined,n=e.extend,o=e.isNumber,r=e.isObject,a=e.objectEach,h=e.pick,l=e.splat,c=t.addEvent,d=t.charts,p=t.color,u=t.css,f=t.find,g=t.fireEvent,m=t.offset,v=t.Tooltip;t.Pointer=function(t,e){this.init(t,e)},t.Pointer.prototype={init:function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},v&&(t.tooltip=new v(t,e.tooltip),this.followTouchMove=h(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(t){var e=this.chart,i=e.options.chart,s=i.zoomType||"";e=e.inverted,/touch/.test(t.type)&&(s=h(i.pinchType,s)),this.zoomX=t=/x/.test(s),this.zoomY=s=/y/.test(s),this.zoomHor=t&&!e||s&&e,this.zoomVert=s&&!e||t&&e,this.hasZoom=t||s},getChartPosition:function(){return this.chartPosition||(this.chartPosition=m(this.chart.container))},normalize:function(t,e){var i=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t;e||(e=this.getChartPosition());var s=i.pageX-e.left;return e=i.pageY-e.top,(i=this.chart.containerScaling)&&(s/=i.scaleX,e/=i.scaleY),n(t,{chartX:Math.round(s),chartY:Math.round(e)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach((function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})})),e},findNearestKDPoint:function(t,e,i){var s;return t.forEach((function(t){var n=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,n),(n=r(t,!0))&&!(n=!r(s,!0))){n=s.distX-t.distX;var o=s.dist-t.dist,a=(t.series.group&&t.series.group.zIndex)-(s.series.group&&s.series.group.zIndex);n=0<(0!==n&&e?n:0!==o?o:0!==a?a:s.series.index>t.series.index?-1:1)}n&&(s=t)})),s},getPointFromEvent:function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},getChartCoordinatesFromPoint:function(t,e){var i=t.series,s=i.xAxis;i=i.yAxis;var n=h(t.clientX,t.plotX),o=t.shapeArgs;return s&&i?e?{chartX:s.len+s.pos-n,chartY:i.len+i.pos-t.plotY}:{chartX:n+s.pos,chartY:t.plotY+i.pos}:o&&o.x&&o.y?{chartX:o.x,chartY:o.y}:void 0},getHoverData:function(t,e,i,s,n,o){var a,l=[];s=!(!s||!t);var c=e&&!e.stickyTracking?[e]:i.filter((function(t){return t.visible&&!(!n&&t.directTouch)&&h(t.options.enableMouseTracking,!0)&&t.stickyTracking}));return e=(a=s||!o?t:this.findNearestKDPoint(c,n,o))&&a.series,a&&(n&&!e.noSharedTooltip?(c=i.filter((function(t){return t.visible&&!(!n&&t.directTouch)&&h(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}
1)),c.forEach((function(t){var e=f(t.points,(function(t){return t.x===a.x&&!t.isNull}));r(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),l.push(e))}))):l.push(a)),{hoverPoint:a,hoverSeries:e,hoverPoints:l}},runPointActions:function(e,i){var s=this.chart,n=s.tooltip&&s.tooltip.options.enabled?s.tooltip:void 0,o=!!n&&n.shared,r=i||s.hoverPoint,a=r&&r.series||s.hoverSeries;r=(a=this.getHoverData(r,a,s.series,(!e||"touchmove"!==e.type)&&(!!i||a&&a.directTouch&&this.isDirectTouch),o,e)).hoverPoint;var l=a.hoverPoints;if(i=(a=a.hoverSeries)&&a.tooltipOptions.followPointer,o=o&&a&&!a.noSharedTooltip,r&&(r!==s.hoverPoint||n&&n.isHidden)){if((s.hoverPoints||[]).forEach((function(t){-1===l.indexOf(t)&&t.setState()})),s.hoverSeries!==a&&a.onMouseOver(),this.applyInactiveState(l),(l||[]).forEach((function(t){t.setState("hover")})),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!r.series)return;r.firePointEvent("mouseOver"),s.hoverPoints=l,s.hoverPoint=r,n&&n.refresh(o?l:r,e)}else i&&n&&!n.isHidden&&(r=n.getAnchor([{}],e),n.updatePosition({plotX:r[0],plotY:r[1]}));this.unDocMouseMove||(this.unDocMouseMove=c(s.container.ownerDocument,"mousemove",(function(e){var i=d[t.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(e)}))),s.axes.forEach((function(i){var s=h(i.crosshair.snap,!0),n=s?t.find(l,(function(t){return t.series[i.coll]===i})):void 0;n||!s?i.drawCrosshair(e,n):i.hideCrosshair()}))},applyInactiveState:function(t){var e,i=[];(t||[]).forEach((function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)})),this.chart.series.forEach((function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")}))},reset:function(t,e){var i=this.chart,s=i.hoverSeries,n=i.hoverPoint,o=i.hoverPoints,r=i.tooltip,a=r&&r.shared?o:n;t&&a&&l(a).forEach((function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?r&&a&&l(a).length&&(r.refresh(a),r.shared&&o?o.forEach((function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))})):n&&(n.setState(n.state,!0),i.axes.forEach((function(t){t.crosshair&&t.drawCrosshair(null,n)})))):(n&&n.onMouseOut(),o&&o.forEach((function(t){t.setState()})),s&&s.onMouseOut(),r&&r.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(t,e){var i,s=this.chart;s.series.forEach((function(n){i=t||n.getPlotBox(),n.xAxis&&n.xAxis.zoomEnabled&&n.group&&(n.group.attr(i),n.markerGroup&&(n.markerGroup.attr(i),n.markerGroup.clip(e?s.clipRect:null)),n.dataLabelsGroup&&n.dataLabelsGroup.attr(i))})),s.clipRect.attr(e||s.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e=this.chart,i=e.options.chart,s=t.chartX,n=t.chartY,o=this.zoomHor,r=this.zoomVert,a=e.plotLeft,h=e.plotTop,l=e.plotWidth,c=e.plotHeight,d=this.selectionMarker,u=this.mouseDownX,f=this.mouseDownY,g=i.panKey&&t[i.panKey+"Key"];if((!d||!d.touch)&&(s<a?s=a:s>a+l&&(s=a+l),n<h?n=h:n>h+c&&(n=h+c),this.hasDragged=Math.sqrt(Math.pow(u-s,2)+Math.pow(f-n,2)),10<this.hasDragged)){var m=e.isInsidePlot(u-a,f-h);e.hasCartesianSeries&&(this.zoomX||this.zoomY)&&m&&!g&&!d&&(this.selectionMarker=d=e.renderer.rect(a,h,o?1:l,r?1:c,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||d.attr({fill:i.selectionMarkerFill||p("#335cad").setOpacity(.25).get()})),d&&o&&(s-=u,d.attr({width:Math.abs(s),x:(0<s?0:s)+u})),d&&r&&(s=n-f,d.attr({height:Math.abs(s),y:(0<s?0:s)+f})),m&&!d&&i.panning&&e.pan(t,i.panning)}},drop:function(t){var e=this,i=this.chart,r=this.hasPinched;if(this.selectionMarker){var a,h={originalEvent:t,xAxis:[],yAxis:[]},l=this.selectionMarker,c=l.attr?l.attr("x"):l.x,d=l.attr?l.attr("y"):l.y,p=l.attr?l.attr("width"):l.width,f=l.attr?l.attr("height"):l.height;
1(this.hasDragged||r)&&(i.axes.forEach((function(i){if(i.zoomEnabled&&s(i.min)&&(r||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])){var n=i.horiz,o="touchend"===t.type?i.minPixelPadding:0,l=i.toValue((n?c:d)+o);n=i.toValue((n?c+p:d+f)-o),h[i.coll].push({axis:i,min:Math.min(l,n),max:Math.max(l,n)}),a=!0}})),a&&g(i,"selection",h,(function(t){i.zoom(n(t,r?{animation:!1}:null))}))),o(i.index)&&(this.selectionMarker=this.selectionMarker.destroy()),r&&this.scaleGroups()}i&&o(i.index)&&(u(i.container,{cursor:i._cursor}),i.cancelClick=10<this.hasDragged,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(t){2!==(t=this.normalize(t)).button&&(this.zoomOption(t),t.preventDefault&&t.preventDefault(),this.dragStart(t))},onDocumentMouseUp:function(e){d[t.hoverChartIndex]&&d[t.hoverChartIndex].pointer.drop(e)},onDocumentMouseMove:function(t){var e=this.chart,i=this.chartPosition;t=this.normalize(t,i),!i||this.inClass(t.target,"highcharts-tracker")||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.reset()},onContainerMouseLeave:function(e){var i=d[t.hoverChartIndex];i&&(e.relatedTarget||e.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=void 0)},onContainerMouseMove:function(e){var i=this.chart;s(t.hoverChartIndex)&&d[t.hoverChartIndex]&&d[t.hoverChartIndex].mouseIsDown||(t.hoverChartIndex=i.index),(e=this.normalize(e)).preventDefault||(e.returnValue=!1),"mousedown"===i.mouseIsDown&&this.drag(e),!this.inClass(e.target,"highcharts-tracker")&&!i.isInsidePlot(e.chartX-i.plotLeft,e.chartY-i.plotTop)||i.openMenu||this.runPointActions(e)},inClass:function(t,e){for(var s;t;){if(s=i(t,"class")){if(-1!==s.indexOf(e))return!0;if(-1!==s.indexOf("highcharts-container"))return!1}t=t.parentNode}},onTrackerMouseOut:function(t){var e=this.chart.hoverSeries;t=t.relatedTarget||t.toElement,this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},onContainerClick:function(t){var e=this.chart,i=e.hoverPoint,s=e.plotLeft,o=e.plotTop;t=this.normalize(t),e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(g(i.series,"click",n(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(n(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-s,t.chartY-o)&&g(e,"click",t)))},setDOMEvents:function(){var e=this,i=e.chart.container,s=i.ownerDocument;i.onmousedown=function(t){e.onContainerMouseDown(t)},i.onmousemove=function(t){e.onContainerMouseMove(t)},i.onclick=function(t){e.onContainerClick(t)},this.unbindContainerMouseLeave=c(i,"mouseleave",e.onContainerMouseLeave),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=c(s,"mouseup",e.onDocumentMouseUp)),t.hasTouch&&(c(i,"touchstart",(function(t){e.onContainerTouchStart(t)})),c(i,"touchmove",(function(t){e.onContainerTouchMove(t)})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=c(s,"touchend",e.onDocumentTouchEnd)))},destroy:function(){var e=this;e.unDocMouseMove&&e.unDocMouseMove(),this.unbindContainerMouseLeave(),t.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(e.tooltipTimeout),a(e,(function(t,i){e[i]=null}))}}})),e(i,"parts/TouchPointer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.extend,s=e.pick,n=t.charts,o=t.noop;i(t.Pointer.prototype,{pinchTranslate:function(t,e,i,s,n,o){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,s,n,o),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,s,n,o)},pinchTranslateDirection:function(t,e,i,s,n,o,r,a){var h,l,c=this.chart,d=t?"x":"y",p=t?"X":"Y",u="chart"+p,f=t?"width":"height",g=c["plot"+(t?"Left":"Top")],m=a||1,v=c.inverted,x=c.bounds[t?"h":"v"],y=1===e.length,b=e[0][u],k=i[0][u],w=!y&&e[1][u],M=!y&&i[1][u];if((i=function(){!y&&20<Math.abs(b-w)&&(m=a||Math.abs(k-M)/Math.abs(b-w)),l=(g-k)/m+b,h=c["plot"+(t?"Width":"Height")]/m})(),(e=l)<x.min){e=x.min;var S=!0}else e+h>x.max&&(e=x.max-h,S=!0);S?(k-=.8*(k-r[d][0]),y||(M-=.8*(M-r[d][1])),i()):r[d]=[k,M],v||(o[d]=l-g,o[f]=h),o=v?1/m:m,n[f]=h,n[d]=e,s[v?t?"scaleY":"scaleX":"scale"+p]=m,s["translate"+p]=o*g+(k-o*b)},pinch:function(t){var e=this,n=e.chart,r=e.pinchDown,a=t.touches,h=a.length,l=e.lastValidTouch,c=e.hasZoom,d=e.selectionMarker,p={},u=1===h&&(e.inClass(t.target,"highcharts-tracker")&&n.runTrackerClick||e.runChartClick),f={};1<h&&(e.initiated=!0),c&&e.initiated&&!u&&t.preventDefault(),[].map.call(a,(function(t){return e.normalize(t)})),"touchstart"===t.type?([].forEach.call(a,(function(t,e){r[e]={chartX:t.chartX,chartY:t.chartY}})),l.x=[r[0].chartX,r[1]&&r[1].chartX],l.y=[r[0].chartY,r[1]&&r[1].chartY],n.axes.forEac
1h((function(t){if(t.zoomEnabled){var e=n.bounds[t.horiz?"h":"v"],i=t.minPixelPadding,o=t.toPixels(Math.min(s(t.options.min,t.dataMin),t.dataMin)),r=t.toPixels(Math.max(s(t.options.max,t.dataMax),t.dataMax)),a=Math.max(o,r);e.min=Math.min(t.pos,Math.min(o,r)-i),e.max=Math.max(t.pos+t.len,a+i)}})),e.res=!0):e.followTouchMove&&1===h?this.runPointActions(e.normalize(t)):r.length&&(d||(e.selectionMarker=d=i({destroy:o,touch:!0},n.plotBox)),e.pinchTranslate(r,a,p,d,f,l),e.hasPinched=c,e.scaleGroups(p,f),e.res&&(e.res=!1,this.reset(!1,0)))},touch:function(e,i){var n=this.chart;if(n.index!==t.hoverChartIndex&&this.onContainerMouseLeave({relatedTarget:!0}),t.hoverChartIndex=n.index,1===e.touches.length)if(e=this.normalize(e),n.isInsidePlot(e.chartX-n.plotLeft,e.chartY-n.plotTop)&&!n.openMenu){if(i&&this.runPointActions(e),"touchmove"===e.type)var o=!!(i=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(i[0].chartX-e.chartX,2)+Math.pow(i[0].chartY-e.chartY,2));s(o,!0)&&this.pinch(e)}else i&&this.reset();else 2===e.touches.length&&this.pinch(e)},onContainerTouchStart:function(t){this.zoomOption(t),this.touch(t,!0)},onContainerTouchMove:function(t){this.touch(t)},onDocumentTouchEnd:function(e){n[t.hoverChartIndex]&&n[t.hoverChartIndex].pointer.drop(e)}})})),e(i,"parts/MSPointer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.extend,s=e.objectEach,n=t.addEvent,o=t.charts,r=t.css,a=t.doc,h=t.noop;e=t.Pointer;var l=t.removeEvent,c=t.win,d=t.wrap;if(!t.hasTouch&&(c.PointerEvent||c.MSPointerEvent)){var p={},u=!!c.PointerEvent,f=function(){var t=[];return t.item=function(t){return this[t]},s(p,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t},g=function(e,i,s,n){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!o[t.hoverChartIndex]||(n(e),(n=o[t.hoverChartIndex].pointer)[i]({type:s,target:e.currentTarget,preventDefault:h,touches:f()}))};i(e.prototype,{onContainerPointerDown:function(t){g(t,"onContainerTouchStart","touchstart",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},onContainerPointerMove:function(t){g(t,"onContainerTouchMove","touchmove",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY},p[t.pointerId].target||(p[t.pointerId].target=t.currentTarget)}))},onDocumentPointerUp:function(t){g(t,"onDocumentTouchEnd","touchend",(function(t){delete p[t.pointerId]}))},batchMSEvents:function(t){t(this.chart.container,u?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,u?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,u?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),d(e.prototype,"init",(function(t,e,i){t.call(this,e,i),this.hasZoom&&r(e.container,{"-ms-touch-action":"none","touch-action":"none"})})),d(e.prototype,"setDOMEvents",(function(t){t.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(n)})),d(e.prototype,"destroy",(function(t){this.batchMSEvents(l),t.call(this)}))}})),e(i,"parts/Legend.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.discardElement,n=e.isNumber,o=e.pick,r=e.setAnimation,a=t.addEvent,h=t.css,l=t.fireEvent;e=t.isFirefox;var c=t.marginNames,d=t.merge,p=t.stableSort,u=t.win,f=t.wrap;t.Legend=function(t,e){this.init(t,e)},t.Legend.prototype={init:function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),a(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=a(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},setOptions:function(t){var e=o(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=d(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=o(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted},update:function(t,e){var i=this.chart;this.setOptions(d(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,o(e,!0)&&i.redraw(),l(this,"afterUpdate")},colorizeItem:function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var i=this.options,s=t.legendItem,n=t.legendLine,o=t.legendSymbol,r=this.itemHiddenStyle.color;i=e?i.itemStyle.color:r;var a=e&&t.color||r,h=t.options&&t.options.marker,c={fill:a};s&&s.css({fill:i,color:i}),n&&n.attr({stroke:a}),o&&(h&&o.isMarker&&(c=t.pointAttribs(),e||(c.stroke=c.fill=r)),o.attr(c))}l(this,"afterColorizeItem",{item:t,visible:e})}
1,positionItems:function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},positionItem:function(t){var e=this.options,s=e.symbolPadding;e=!e.rtl;var n=t._legendItemPos,o=n[0];n=n[1];var r=t.checkbox;(t=t.legendGroup)&&t.element&&t[i(t.translateY)?"animate":"attr"]({translateX:e?o:this.legendWidth-o-2*s-4,translateY:n}),r&&(r.x=o,r.y=n)},destroyItem:function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),e&&s(t.checkbox)},destroy:function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach((function(e){["legendItem","legendGroup"].forEach(t,e)})),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},positionCheckboxes:function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var s=t.translateY;this.allItems.forEach((function(n){var o=n.checkbox;if(o){var r=s+i+o.y+(this.scrollOffset||0)+3;h(o,{left:t.translateX+n.checkboxOffset+o.x-20+"px",top:r+"px",display:this.proximate||r>s-6&&r<s+e-6?"":"none"})}}),this)}},renderTitle:function(){var t=this.options,e=this.padding,i=t.title,s=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,null,null,null,t.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),s=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:s})),this.titleHeight=s},setText:function(e){var i=this.options;e.legendItem.attr({text:i.labelFormat?t.format(i.labelFormat,e,this.chart.time):i.labelFormatter.call(e)})},renderItem:function(t){var e=this.chart,i=e.renderer,s=this.options,n=this.symbolWidth,r=s.symbolPadding,a=this.itemStyle,h=this.itemHiddenStyle,l="horizontal"===s.layout?o(s.itemDistance,20):0,c=!s.rtl,p=t.legendItem,u=!t.series,f=!u&&t.series.drawLegendSymbol?t.series:t,g=f.options;l=n+r+l+((g=this.createCheckboxForItem&&g&&g.showCheckbox)?20:0);var m=s.useHTML,v=t.options.className;p||(t.legendGroup=i.g("legend-item").addClass("highcharts-"+f.type+"-series highcharts-color-"+t.colorIndex+(v?" "+v:"")+(u?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=p=i.text("",c?n+r:-r,this.baseline||0,m),e.styledMode||p.css(d(t.visible?a:h)),p.attr({align:c?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=i.fontMetrics(e.styledMode?12:a.fontSize,p),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,p.attr("y",this.baseline)),this.symbolHeight=s.symbolHeight||this.fontMetrics.f,f.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,p,m)),g&&!t.checkbox&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!e.styledMode&&a.width||p.css({width:(s.itemWidth||this.widthOption||e.spacingBox.width)-l}),this.setText(t),e=p.getBBox(),t.itemWidth=t.checkboxOffset=s.itemWidth||t.legendItemWidth||e.width+l,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(t.legendItemHeight||e.height||this.symbolHeight)},layoutItem:function(t){var e=this.options,i=this.padding,s="horizontal"===e.layout,n=t.itemHeight,r=this.itemMarginBottom,a=this.itemMarginTop,h=s?o(e.itemDistance,20):0,l=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth,s&&this.itemX-i+e>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=a+this.itemY+r,this.lastLineHeight=Math.max(n,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],s?this.itemX+=e:(this.itemY+=a+n+r,this.lastLineHeight=n),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:h):e)+i,this.offsetWidth)},getAllItems:function(){var t=[];return this.chart.series.forEach((function(e){var s=e&&e.options;e&&o(s.showInLegend,!i(s.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===s.legendT
1ype?e.data:e)))})),l(this,"afterGetAllItems",{allItems:t}),t},getAlignment:function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},adjustMargins:function(t,e){var s=this.chart,n=this.options,r=this.getAlignment();r&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(a,h){a.test(r)&&!i(t[h])&&(s[c[h]]=Math.max(s[c[h]],s.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*n[h%2?"x":"y"]+o(n.margin,12)+e[h]+(s.titleOffset[h]||0)))}))},proximatePositions:function(){var e=this.chart,i=[],s="left"===this.options.align;this.allItems.forEach((function(o){var r=s;if(o.yAxis&&o.points){o.xAxis.options.reversed&&(r=!r);var a=t.find(r?o.points:o.points.slice(0).reverse(),(function(t){return n(t.plotY)}));r=this.itemMarginTop+o.legendItem.getBBox().height+this.itemMarginBottom;var h=o.yAxis.top-e.plotTop;o.visible?(a=a?a.plotY:o.yAxis.height,a+=h-.3*r):a=h+o.yAxis.height,i.push({target:a,size:r,item:o})}}),this),t.distribute(i,e.plotHeight),i.forEach((function(t){t.item._legendItemPos[1]=e.plotTop-e.spacing[0]+t.pos}))},render:function(){var e,i=this.chart,s=i.renderer,n=this.group,o=this.box,r=this.options,a=this.padding;this.itemX=a,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=t.relativeLength(r.width,i.spacingBox.width-a);var h=i.spacingBox.width-2*a-r.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(h/=2),this.maxLegendWidth=this.widthOption||h,n||(this.group=n=s.g("legend").attr({zIndex:7}).add(),this.contentGroup=s.g().attr({zIndex:1}).add(n),this.scrollGroup=s.g().add(this.contentGroup)),this.renderTitle(),h=this.getAllItems(),p(h,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),r.reversed&&h.reverse(),this.allItems=h,this.display=e=!!h.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,h.forEach(this.renderItem,this),h.forEach(this.layoutItem,this),h=(this.widthOption||this.offsetWidth)+a;var c=this.lastItemY+this.lastLineHeight+this.titleHeight;c=this.handleOverflow(c),c+=a,o||(this.box=o=s.rect().addClass("highcharts-legend-box").attr({r:r.borderRadius}).add(n),o.isNew=!0),i.styledMode||o.attr({stroke:r.borderColor,"stroke-width":r.borderWidth||0,fill:r.backgroundColor||"none"}).shadow(r.shadow),0<h&&0<c&&(o[o.isNew?"attr":"animate"](o.crisp.call({},{x:0,y:0,width:h,height:c},o.strokeWidth())),o.isNew=!1),o[e?"show":"hide"](),i.styledMode&&"none"===n.getStyle("display")&&(h=c=0),this.legendWidth=h,this.legendHeight=c,e&&(o=(s=i.spacingBox).y,/(lth|ct|rth)/.test(this.getAlignment())&&0<i.titleOffset[0]?o+=i.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<i.titleOffset[2]&&(o-=i.titleOffset[2]),o!==s.y&&(s=d(s,{y:o})),n.align(d(r,{width:h,height:c,verticalAlign:this.proximate?"top":r.verticalAlign}),!0,s)),this.proximate||this.positionItems(),l(this,"afterRender")},handleOverflow:function(t){var e=this,i=this.chart,s=i.renderer,n=this.options,r=n.y,a=this.padding;r=i.spacingBox.height+("top"===n.verticalAlign?-r:r)-a;var h,l,c=n.maxHeight,d=this.clipRect,p=n.navigation,u=o(p.animation,!0),f=p.arrowSize||12,g=this.nav,m=this.pages,v=this.allItems,x=function(t){"number"==typeof t?d.attr({height:t}):d&&(e.clipRect=d.destroy(),e.contentGroup.clip()),e.contentGroup.div&&(e.contentGroup.div.style.clip=t?"rect("+a+"px,9999px,"+(a+t)+"px,0)":"auto")},y=function(t){return e[t]=s.circle(0,0,1.3*f).translate(f/2,f/2).add(g),i.styledMode||e[t].attr("fill","rgba(0,0,0,0.0001)"),e[t]};return"horizontal"!==n.layout||"middle"===n.verticalAlign||n.floating||(r/=2),c&&(r=Math.min(r,c)),m.length=0,t>r&&!1!==p.enabled?(this.clipHeight=h=Math.max(r-20-this.titleHeight-a,0),this.currentPage=o(this.currentPage,1),this.fullHeight=t,v.forEach((function(t,e){var i=t._legendItemPos[1],s=Math.round(t.legendItem.getBBox().height),n=m.length;(!n||i-m[n-1]>h&&(l||i)!==m[n-1])&&(m.push(l||i),n++),t.pageIx=n-1,l&&(v[e-1].pageIx=n-1),e===v.length-1&&i+s-m[n-1]>h&&i!==l&&(m.push(i),t.pageIx=n),i!==l&&(l=i)})),d||(d=e.clipRect=s.clipRect(0,a,9999,0),e.contentGroup.clip(d)),x(h),g||(this.nav=g=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,f,f).add(g),y("upTracker").on("click",(function(){e.scroll(-1,u)})),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),i.styledMode||this.pager.css(p.style),this.pager.add(g),this.down=s.symbol("triangle-down",0,0,f,f).add(g),y("downTracker").on("click",(function(){e.scroll(1,u)}))),e.scroll(0),t=r):g&&(x(),this.nav=g.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var i=this.pages,s=i.length,n=this.currentPage+t;t=this.clipHeight;var o=this.options.navigation,a=this.pager,h=this.padding;n>s&&(n=s),0<n&&(void 0!==e&&r(e,this.chart),this.nav.attr({translateX:h,translateY:t+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach((function(t){t.attr({class:1===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),a.attr({text:n+"/"+s}),[this.down,this.downTracker].forEach((function(t){t.attr({x:18+this.pager.getBBox().width,class:n===s?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),this.chart.styledMode||(this.up.attr({fill:1===n?o.inactiveColor:o.activeColor}),this.upTracker.css({cursor:1===n?"default":"pointer"}),this.down.attr({fill:n===s?o.inactiveColor:o.activeColor}),this.downTracker.css({cursor:n===s?"default":"pointer"})),this.scrollOffset=-i[n-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=n,this.positionCheckboxes())}},t.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.symbolHeight,s=t.options.squareSymbol;
1e.legendSymbol=this.chart.renderer.rect(s?(t.symbolWidth-i)/2:0,t.baseline-i+1,s?i:t.symbolWidth,i,o(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e=this.options,i=e.marker,s=t.symbolWidth,n=t.symbolHeight,r=n/2,a=this.chart.renderer,h=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var l={};this.chart.styledMode||(l={"stroke-width":e.lineWidth||0},e.dashStyle&&(l.dashstyle=e.dashStyle)),this.legendLine=a.path(["M",0,t,"L",s,t]).addClass("highcharts-graph").attr(l).add(h),i&&!1!==i.enabled&&s&&(e=Math.min(o(i.radius,r),r),0===this.symbol.indexOf("url")&&(i=d(i,{width:n,height:n}),e=0),this.legendSymbol=i=a.symbol(this.symbol,s/2-e,t-e,2*e,2*e,i).addClass("highcharts-point").add(h),i.isMarker=!0)}},(/Trident\/7\.0/.test(u.navigator&&u.navigator.userAgent)||e)&&f(t.Legend.prototype,"positionItem",(function(t,e){var i=this,s=function(){e._legendItemPos&&t.call(i,e)};s(),i.bubbleLegend||setTimeout(s)}))})),e(i,"parts/Chart.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.attr,s=e.defined,n=e.discardElement,o=e.erase,r=e.extend,a=e.isArray,h=e.isNumber,l=e.isObject,c=e.isString,d=e.objectEach,p=e.pick,u=e.pInt,f=e.setAnimation,g=e.splat,m=e.syncTimeout,v=t.addEvent,x=t.animate,y=t.animObject,b=t.doc,k=t.Axis,w=t.createElement,M=t.defaultOptions,S=t.charts,A=t.css,T=t.find,P=t.fireEvent,C=t.Legend,E=t.marginNames,L=t.merge,O=t.Pointer,D=t.removeEvent,I=t.seriesTypes,B=t.win,N=t.Chart=function(){this.getArgs.apply(this,arguments)};t.chart=function(t,e,i){return new N(t,e,i)},r(N.prototype,{callbacks:[],getArgs:function(){var t=[].slice.call(arguments);(c(t[0])||t[0].nodeName)&&(this.renderTo=t.shift()),this.init(t[0],t[1])},init:function(e,i){var s,n=e.series,o=e.plotOptions||{};P(this,"init",{args:arguments},(function(){e.series=null,s=L(M,e),d(s.plotOptions,(function(t,e){l(t)&&(t.tooltip=o[e]&&L(o[e].tooltip)||void 0)})),s.tooltip.userOptions=e.chart&&e.chart.forExport&&e.tooltip.userOptions||e.tooltip,s.series=e.series=n,this.userOptions=e;var r=s.chart,a=r.events;this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=i,this.isResizing=0,this.options=s,this.axes=[],this.series=[],this.time=e.time&&Object.keys(e.time).length?new t.Time(e.time):t.time,this.styledMode=r.styledMode,this.hasCartesianSeries=r.showAxes;var h=this;h.index=S.length,S.push(h),t.chartCount++,a&&d(a,(function(e,i){t.isFunction(e)&&v(h,i,e)})),h.xAxis=[],h.yAxis=[],h.pointCount=h.colorCounter=h.symbolCounter=0,P(h,"afterInit"),h.firstRender()}))},initSeries:function(e){var i=this.options.chart;i=e.type||i.type||i.defaultSeriesType;var s=I[i];return s||t.error(17,!0,this,{missingModuleFor:i}),(i=new s).init(this,e),i},orderSeries:function(t){var e=this.series;for(t=t||0;t<e.length;t++)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},isInsidePlot:function(t,e,i){var s=i?e:t;return t=i?t:e,0<=s&&s<=this.plotWidth&&0<=t&&t<=this.plotHeight},redraw:function(t){P(this,"beforeRedraw");var e=this.axes,i=this.series,s=this.pointer,n=this.legend,o=this.userOptions.legend,a=this.isDirtyLegend,h=this.hasCartesianSeries,l=this.isDirtyBox,c=this.renderer,d=c.isHidden(),p=[];for(this.setResponsive&&this.setResponsive(!1),f(t,this),d&&this.temporaryDisplay(),this.layOutTitles(),t=i.length;t--;){var u=i[t];if(u.options.stacking){var g=!0;if(u.isDirty){var m=!0;break}}}if(m)for(t=i.length;t--;)(u=i[t]).options.stacking&&(u.isDirty=!0);i.forEach((function(t){t.isDirty&&("point"===t.options.legendType?(t.updateTotals&&t.updateTotals(),a=!0):o&&(o.labelFormatter||o.labelFormat)&&(a=!0)),t.isDirtyData&&P(t,"updatedData")})),a&&n&&n.options.enabled&&(n.render(),this.isDirtyLegend=!1),g&&this.getStacks(),h&&e.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),h&&(e.forEach((function(t){t.isDirty&&(l=!0)})),e.forEach((function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,p.push((function(){P(t,"afterSetExtremes",r(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(l||g)&&t.redraw()}
1))),l&&this.drawChartBox(),P(this,"predraw"),i.forEach((function(t){(l||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),s&&s.reset(!0),c.draw(),P(this,"redraw"),P(this,"render"),d&&this.temporaryDisplay(!0),p.forEach((function(t){t.call()}))},get:function(t){function e(e){return e.id===t||e.options&&e.options.id===t}var i,s=this.series,n=T(this.axes,e)||T(this.series,e);for(i=0;!n&&i<s.length;i++)n=T(s[i].points||[],e);return n},getAxes:function(){var t=this,e=this.options,i=e.xAxis=g(e.xAxis||{});e=e.yAxis=g(e.yAxis||{}),P(this,"getAxes"),i.forEach((function(t,e){t.index=e,t.isX=!0})),e.forEach((function(t,e){t.index=e})),i.concat(e).forEach((function(e){new k(t,e)})),P(this,"afterGetAxes")},getSelectedPoints:function(){var t=[];return this.series.forEach((function(e){t=t.concat((e[e.hasGroupedData?"points":"data"]||[]).filter((function(t){return p(t.selectedStaging,t.selected)})))})),t},getSelectedSeries:function(){return this.series.filter((function(t){return t.selected}))},setTitle:function(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)},applyDescription:function(t,e){var i=this,s="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};s=this.options[t]=L(!this.styledMode&&{style:s},this.options[t],e);var n=this[t];n&&e&&(this[t]=n=n.destroy()),s&&!n&&((n=this.renderer.text(s.text,0,0,s.useHTML).attr({align:s.align,class:"highcharts-"+t,zIndex:s.zIndex||4}).add()).update=function(e){i[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||n.css(s.style),this[t]=n)},layOutTitles:function(t){var e=[0,0,0],i=this.renderer,s=this.spacingBox;["title","subtitle","caption"].forEach((function(t){var n=this[t],o=this.options[t],a=o.verticalAlign||"top";if(t="title"===t?-3:"top"===a?e[0]+2:0,n){if(!this.styledMode)var h=o.style.fontSize;h=i.fontMetrics(h,n).b,n.css({width:(o.width||s.width+(o.widthAdjust||0))+"px"});var l=Math.round(n.getBBox(o.useHTML).height);n.align(r({y:"bottom"===a?h:t+h,height:l},o),!1,"spacingBox"),o.floating||("top"===a?e[0]=Math.ceil(e[0]+l):"bottom"===a&&(e[2]=Math.ceil(e[2]+l)))}}),this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);var n=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,P(this,"afterLayOutTitles"),!this.isDirtyBox&&n&&(this.isDirtyBox=this.isDirtyLegend=n,this.hasRendered&&p(t,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var e=this.options.chart,i=e.width;e=e.height;var n=this.renderTo;s(i)||(this.containerWidth=t.getStyle(n,"width")),s(e)||(this.containerHeight=t.getStyle(n,"height")),this.chartWidth=Math.max(0,i||this.containerWidth||600),this.chartHeight=Math.max(0,t.relativeLength(e,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},temporaryDisplay:function(e){var i=this.renderTo;if(e)for(;i&&i.style;)i.hcOrigStyle&&(t.css(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(b.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;i&&i.style&&(b.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,b.body.appendChild(i)),("none"===t.getStyle(i,"display",!1)||i.hcOricDetached)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},e={display:"block",overflow:"hidden"},i!==this.renderTo&&(e.height=0),t.css(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==b.body););},setClassName:function(t){this.container.className="highcharts-container "+(t||"")},getContainer:function(){var e,s,n=this.options,o=n.chart,a=this.renderTo,l=t.uniqueKey();a||(this.renderTo=a=o.renderTo),c(a)&&(this.renderTo=a=b.getElementById(a)),a||t.error(13,!0,this);var d=u(i(a,"data-highcharts-chart"));h(d)&&S[d]&&S[d].hasRendered&&S[d].destroy(),i(a,"data-highcharts-chart",this.index),a.innerHTML="",o.skipClone||a.offsetWidth||this.temporaryDisplay(),this.getChartSize(),d=this.chartWidth;
1var p=this.chartHeight;if(A(a,{overflow:"hidden"}),this.styledMode||(e=r({position:"relative",overflow:"hidden",width:d+"px",height:p+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},o.style)),this.container=a=w("div",{id:l},e,a),this._cursor=a.style.cursor,this.renderer=new(t[o.renderer]||t.Renderer)(a,d,p,null,o.forExport,n.exporting&&n.exporting.allowHTML,this.styledMode),this.setClassName(o.className),this.styledMode)for(s in n.defs)this.renderer.definition(n.defs[s]);else this.renderer.setStyle(o.style);this.renderer.chartIndex=this.index,P(this,"afterGetContainer")},getMargins:function(t){var e=this.spacing,i=this.margin,n=this.titleOffset;this.resetMargins(),n[0]&&!s(i[0])&&(this.plotTop=Math.max(this.plotTop,n[0]+e[0])),n[2]&&!s(i[2])&&(this.marginBottom=Math.max(this.marginBottom,n[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),P(this,"getMargins"),t||this.getAxisMargins()},getAxisMargins:function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,n=t.margin,o=function(t){t.forEach((function(t){t.visible&&t.getOffset()}))};t.hasCartesianSeries?o(t.axes):i&&i.length&&o(i),E.forEach((function(i,o){s(n[o])||(t[i]+=e[o])})),t.setChartSize()},reflow:function(e){var i=this,n=i.options.chart,o=i.renderTo,r=s(n.width)&&s(n.height),a=n.width||t.getStyle(o,"width");n=n.height||t.getStyle(o,"height"),o=e?e.target:B,r||i.isPrinting||!a||!n||o!==B&&o!==b||(a===i.containerWidth&&n===i.containerHeight||(t.clearTimeout(i.reflowTimeout),i.reflowTimeout=m((function(){i.container&&i.setSize(void 0,void 0,!1)}),e?100:0)),i.containerWidth=a,i.containerHeight=n)},setReflow:function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=v(B,"resize",(function(t){e.options&&e.reflow(t)})),v(this,"destroy",this.unbindReflow))},setSize:function(t,e,i){var s=this,n=s.renderer;
1if(s.isResizing+=1,f(i,s),s.oldChartHeight=s.chartHeight,s.oldChartWidth=s.chartWidth,void 0!==t&&(s.options.chart.width=t),void 0!==e&&(s.options.chart.height=e),s.getChartSize(),!s.styledMode){var o=n.globalAnimation;(o?x:A)(s.container,{width:s.chartWidth+"px",height:s.chartHeight+"px"},o)}s.setChartSize(!0),n.setSize(s.chartWidth,s.chartHeight,i),s.axes.forEach((function(t){t.isDirty=!0,t.setScale()})),s.isDirtyLegend=!0,s.isDirtyBox=!0,s.layOutTitles(),s.getMargins(),s.redraw(i),s.oldChartHeight=null,P(s,"resize"),m((function(){s&&P(s,"endResize",null,(function(){--s.isResizing}))}),y(o).duration||0)},setChartSize:function(t){var e,i,s,n,o=this.inverted,r=this.renderer,a=this.chartWidth,h=this.chartHeight,l=this.options.chart,c=this.spacing,d=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=s=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=n=Math.max(0,Math.round(h-i-this.marginBottom)),this.plotSizeX=o?n:s,this.plotSizeY=o?s:n,this.plotBorderWidth=l.plotBorderWidth||0,this.spacingBox=r.spacingBox={x:c[3],y:c[0],width:a-c[3]-c[1],height:h-c[0]-c[2]},this.plotBox=r.plotBox={x:e,y:i,width:s,height:n},a=2*Math.floor(this.plotBorderWidth/2),o=Math.ceil(Math.max(a,d[3])/2),r=Math.ceil(Math.max(a,d[0])/2),this.clipBox={x:o,y:r,width:Math.floor(this.plotSizeX-Math.max(a,d[1])/2-o),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(a,d[2])/2-r))},t||this.axes.forEach((function(t){t.setAxisSize(),t.setAxisTranslation()})),P(this,"afterSetChartSize",{skipAxes:t})},resetMargins:function(){P(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach((function(i){var s=e[i],n=l(s)?s:[s,s,s,s];["Top","Right","Bottom","Left"].forEach((function(s,o){t[i][o]=p(e[i+s],n[o])}))}
1)),E.forEach((function(e,i){t[e]=p(t.margin[i],t.spacing[i])})),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},drawChartBox:function(){var t,e=this.options.chart,i=this.renderer,s=this.chartWidth,n=this.chartHeight,o=this.chartBackground,r=this.plotBackground,a=this.plotBorder,h=this.styledMode,l=this.plotBGImage,c=e.backgroundColor,d=e.plotBackgroundColor,p=e.plotBackgroundImage,u=this.plotLeft,f=this.plotTop,g=this.plotWidth,m=this.plotHeight,v=this.plotBox,x=this.clipRect,y=this.clipBox,b="animate";if(o||(this.chartBackground=o=i.rect().addClass("highcharts-background").add(),b="attr"),h)var k=t=o.strokeWidth();else t=(k=e.borderWidth||0)+(e.shadow?8:0),c={fill:c||"none"},(k||o["stroke-width"])&&(c.stroke=e.borderColor,c["stroke-width"]=k),o.attr(c).shadow(e.shadow);o[b]({x:t/2,y:t/2,width:s-t-k%2,height:n-t-k%2,r:e.borderRadius}),b="animate",r||(b="attr",this.plotBackground=r=i.rect().addClass("highcharts-plot-background").add()),r[b](v),h||(r.attr({fill:d||"none"}).shadow(e.plotShadow),p&&(l?l.animate(v):this.plotBGImage=i.image(p,u,f,g,m).add())),x?x.animate({width:y.width,height:y.height}):this.clipRect=i.clipRect(y),b="animate",a||(b="attr",this.plotBorder=a=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),h||a.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),a[b](a.crisp({x:u,y:f,width:g,height:m},-a.strokeWidth())),this.isDirtyBox=!1,P(this,"afterDrawChartBox")},propFromSeries:function(){var t,e,i,s=this,n=s.options.chart,o=s.options.series;["inverted","angular","polar"].forEach((function(r){for(t=I[n.type||n.defaultSeriesType],i=n[r]||t&&t.prototype[r],e=o&&o.length;!i&&e--;)(t=I[o[e].type])&&t.prototype[r]&&(i=!0);s[r]=i}))},linkSeries:function(){var t=this,e=t.series;e.forEach((function(t){t.linkedSeries.length=0})),e.forEach((function(e){var i=e.options.linkedTo;c(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&i.linkedParent!==e&&(i.linkedSeries.push(e),e.linkedParent=i,e.visible=p(e.options.visible,i.options.visible,e.visible))})),P(this,"afterLinkSeries")},renderSeries:function(){this.series.forEach((function(t){t.translate(),t.render()}))},renderLabels:function(){var t=this,e=t.options.labels;e.items&&e.items.forEach((function(i){var s=r(e.style,i.style),n=u(s.left)+t.plotLeft,o=u(s.top)+t.plotTop+12;delete s.left,delete s.top,t.renderer.text(i.html,n,o).attr({zIndex:2}).css(s).add()}))},render:function(){var t=this.axes,e=this.colorAxis,i=this.renderer,s=this.options,n=0,o=function(t){t.forEach((function(t){t.visible&&t.render()}))};this.setTitle(),this.legend=new C(this,s.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),s=this.plotWidth,t.some((function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return n=21,!0}));var r=this.plotHeight=Math.max(this.plotHeight-n,0);t.forEach((function(t){t.setScale()})),this.getAxisMargins();var a=1.1<s/this.plotWidth,h=1.05<r/this.plotHeight;(a||h)&&(t.forEach((function(t){(t.horiz&&a||!t.horiz&&h)&&t.setTickInterval(!0)})),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?o(t):e&&e.length&&o(e),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.updateContainerScaling(),this.hasRendered=!0},addCredits:function(t){var e=this;(t=L(!0,this.options.credits,t)).enabled&&!this.credits&&(this.credits=this.renderer.text(t.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){t.href&&(B.location.href=t.href)})).attr({align:t.position.align,zIndex:8}),e.styledMode||this.credits.css(t.style),this.credits.add().align(t.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},updateContainerScaling:function(){var t=this.container;if(t.offsetWidth&&t.offsetHeight&&t.getBoundingClientRect){var e=t.getBoundingClientRect(),i=e.width/t.offsetWidth;t=e.height/t.offsetHeight,1!==i||1!==t?this.containerScaling={scaleX:i,scaleY:t}:delete this.containerScaling}},destroy:function(){var e,i=this,s=i.axes,r=i.series,a=i.container,h=a&&a.parentNode;for(P(i,"destroy"),i.renderer.forExport?o(S,i):S[i.index]=void 0,t.chartCount--,i.renderTo.removeAttribute("data-highcharts-chart"),D(i),e=s.length;e--;)s[e]=s[e].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),e=r.length;e--;)r[e]=r[e].destroy();
1"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach((function(t){var e=i[t];e&&e.destroy&&(i[t]=e.destroy())})),a&&(a.innerHTML="",D(a),h&&n(a)),d(i,(function(t,e){delete i[e]}))},firstRender:function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(a(e.series)?e.series:[]).forEach((function(e){t.initSeries(e)})),t.linkSeries(),P(t,"beforeRender"),O&&(t.pointer=new O(t,e)),t.render(),!t.renderer.imgCount&&t.onload&&t.onload(),t.temporaryDisplay(!0))},onload:function(){this.callbacks.concat([this.callback]).forEach((function(t){t&&void 0!==this.index&&t.apply(this,[this])}),this),P(this,"load"),P(this,"render"),s(this.index)&&this.setReflow(this.options.chart.reflow),this.onload=null}})})),e(i,"parts/ScrollablePlotArea.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.pick,s=t.addEvent;e=t.Chart,s(e,"afterSetChartSize",(function(e){var i=this.options.chart.scrollablePlotArea,s=i&&i.minWidth;if(i=i&&i.minHeight,!this.renderer.forExport){if(s){if(this.scrollablePixelsX=s=Math.max(0,s-this.chartWidth)){this.plotWidth+=s,this.inverted?(this.clipBox.height+=s,this.plotBox.height+=s):(this.clipBox.width+=s,this.plotBox.width+=s);var n={1:{name:"right",value:s}}}}else i&&(this.scrollablePixelsY=s=Math.max(0,i-this.chartHeight))&&(this.plotHeight+=s,this.inverted?(this.clipBox.width+=s,this.plotBox.width+=s):(this.clipBox.height+=s,this.plotBox.height+=s),n={2:{name:"bottom",value:s}});n&&!e.skipAxes&&this.axes.forEach((function(e){n[e.side]?e.getPlotLinePath=function(){var i=n[e.side].name,s=this[i];this[i]=s-n[e.side].value;var o=t.Axis.prototype.getPlotLinePath.apply(this,arguments);return this[i]=s,o}:(e.setAxisSize(),e.setAxisTranslation())}))}})),s(e,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()})),e.prototype.setUpScrolling=function(){var e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingContainer=t.createElement("div",{className:"highcharts-scrolling"},e,this.renderTo),this.innerContainer=t.createElement("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},e.prototype.moveFixedElements=function(){var t,e=this.container,i=this.fixedRenderer,s=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),s.push(t,t+"-labels"),s.forEach((function(t){[].forEach.call(e.querySelectorAll(t),(function(t){(t.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(t),t.style.pointerEvents="auto"}))}))},e.prototype.applyFixed=function(){var e,n=!this.fixedDiv,o=this.options.chart.scrollablePlotArea;n?(this.fixedDiv=t.createElement("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:2},null,!0),this.renderTo.insertBefore(this.fixedDiv,this.renderTo.firstChild),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new t.Renderer(this.fixedDiv,this.chartWidth,this.chartHeight),this.scrollableMask=e.path().attr({fill:t.color(this.options.chart.backgroundColor||"#fff").setOpacity(i(o.opacity,.85)).get(),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),this.moveFixedElements(),s(this,"afterShowResetZoom",this.moveFixedElements),s(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHe
1ight),e=this.chartWidth+(this.scrollablePixelsX||0);var r=this.chartHeight+(this.scrollablePixelsY||0);t.stop(this.container),this.container.style.width=e+"px",this.container.style.height=r+"px",this.renderer.boxWrapper.attr({width:e,height:r,viewBox:[0,0,e,r].join(" ")}),this.chartBackground.attr({width:e,height:r}),this.scrollablePixelsY&&(this.scrollingContainer.style.height=this.chartHeight+"px"),n&&(o.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*o.scrollPositionX),o.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*o.scrollPositionY)),r=this.axisOffset,n=this.plotTop-r[0]-1,o=this.plotLeft-r[3]-1,e=this.plotTop+this.plotHeight+r[2]+1,r=this.plotLeft+this.plotWidth+r[1]+1;var a=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),h=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);n=this.scrollablePixelsX?["M",0,n,"L",this.plotLeft-1,n,"L",this.plotLeft-1,e,"L",0,e,"Z","M",a,n,"L",this.chartWidth,n,"L",this.chartWidth,e,"L",a,e,"Z"]:this.scrollablePixelsY?["M",o,0,"L",o,this.plotTop-1,"L",r,this.plotTop-1,"L",r,0,"Z","M",o,h,"L",o,this.chartHeight,"L",r,this.chartHeight,"L",r,h,"Z"]:["M",0,0],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:n})}})),e(i,"parts/Point.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i,s=e.defined,n=e.erase,o=e.extend,r=e.isArray,a=e.isNumber,h=e.isObject,l=e.pick,c=t.fireEvent,d=t.format,p=t.uniqueKey,u=t.removeEvent;t.Point=i=function(){},t.Point.prototype={init:function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=s(this.id)?this.id:p(),this.resolveColor(),t.chart.pointCount++,c(this,"afterInit"),this},resolveColor:function(){var t=this.series,e=t.chart.options.chart.colorCount,i=t.chart.styledMode;i||this.options.color||(this.color=t.color),t.options.colorByPoint?(i||(e=t.options.colors||t.chart.options.colors,this.color=this.color||e[t.colorCounter],e=e.length),i=t.colorCounter,t.colorCounter++,t.colorCounter===e&&(t.colorCounter=0)):i=t.colorIndex,this.colorIndex=l(this.colorIndex,i)},applyOptions:function(t,e){var s=this.series,n=s.options.pointValKey||s.pointValKey;return t=i.prototype.optionsToObject.call(this,t),o(this,t),this.options=this.options?o(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,n&&(this.y=this[n]),this.formatPrefix=(this.isNull=l(this.isValid&&!this.isValid(),null===this.x||!a(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===e&&s.xAxis&&s.xAxis.hasNames&&(this.x=s.xAxis.nameToX(this)),void 0===this.x&&s&&(this.x=void 0===e?s.autoIncrement(this):e),this},setNestedProperty:function(t,e,i){return i.split(".").reduce((function(t,i,s,n){return t[i]=n.length-1===s?e:h(t[i],!0)?t[i]:{},t[i]}),t),t},optionsToObject:function(e){var i={},s=this.series,n=s.options.keys,o=n||s.pointArrayMap||["y"],h=o.length,l=0,c=0;if(a(e)||null===e)i[o[0]]=e;else if(r(e))for(!n&&e.length>h&&("string"==(s=typeof e[0])?i.name=e[0]:"number"===s&&(i.x=e[0]),l++);c<h;)n&&void 0===e[l]||(0<o[c].indexOf(".")?t.Point.prototype.setNestedProperty(i,e[l],o[c]):i[o[c]]=e[l]),l++,c++;else"object"==typeof e&&(i=e,e.dataLabels&&(s._hasPointLabels=!0),e.marker&&(s._hasPointMarkers=!0));return i},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var i,s=0;for(i=e[s];this[t]>=i.value;)i=e[++s];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},hasNewShapeType:function(){return this.graphic&&this.graphic.element.nodeName!==this.shapeType},destroy:function(){var t,e=this.series.chart,i=e.hoverPoints;for(t in e.pointCount--,i&&(this.setState(),n(i,this),i.length||(e.hoverPoints=null)),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel||this.dataLabels)&&(u(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this),this)this[t]=null},destroyElements:function(t){var e,i=this,s=[];for((t=t||{graphic:1,dataLabel:1}
1).graphic&&s.push("graphic","shadowGroup"),t.dataLabel&&s.push("dataLabel","dataLabelUpper","connector"),e=s.length;e--;){var n=s[e];i[n]&&(i[n]=i[n].destroy())}["dataLabel","connector"].forEach((function(e){var s=e+"s";t[e]&&i[s]&&(i[s].forEach((function(t){t.element&&t.destroy()})),delete i[s])}))},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,i=e.tooltipOptions,s=l(i.valueDecimals,""),n=i.valuePrefix||"",o=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEach((function(e){e="{point."+e,(n||o)&&(t=t.replace(RegExp(e+"}","g"),n+e+"}"+o)),t=t.replace(RegExp(e+"}","g"),e+":,."+s+"f}")})),d(t,{point:this,series:this.series},e.chart.time)},firePointEvent:function(t,e,i){var s=this,n=this.series.options;(n.point.events[t]||s.options&&s.options.events&&s.options.events[t])&&this.importEvents(),"click"===t&&n.allowPointSelect&&(i=function(t){s.select&&s.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),c(this,t,e,i)},visible:!0}})),e(i,"parts/Series.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.arrayMax,s=e.arrayMin,n=e.defined,o=e.erase,r=e.extend,a=e.isArray,h=e.isNumber,l=e.isString,c=e.objectEach,d=e.pick,p=e.splat,u=e.syncTimeout,f=t.addEvent,g=t.animObject,m=t.correctFloat,v=t.defaultOptions,x=t.defaultPlotOptions,y=t.fireEvent,b=t.merge,k=t.removeEvent,w=t.SVGElement,M=t.win;t.Series=t.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":t.numberFormat(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,parallelArrays:["x","y"],pointClass:t.Point,requireSorting:!0,sorted:!0,init:function(e,i){y(this,"init",{options:i});var s,n=this,o=e.series;this.eventOptions=this.eventOptions||{},n.chart=e,n.options=i=n.setOptions(i),n.linkedSeries=[],n.bindAxes(),r(n,{name:i.name,state:"",visible:!1!==i.visible,selected:!0===i.selected});var a=i.events;c(a,(function(e,i){t.isFunction(e)&&n.eventOptions[i]!==e&&(t.isFunction(n.eventOptions[i])&&k(n,i,n.eventOptions[i]),n.eventOptions[i]=e,f(n,i,e))})),(a&&a.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)&&(e.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.parallelArrays.forEach((function(t){n[t+"Data"]||(n[t+"Data"]=[])})),n.points||n.data||n.setData(i.data,!1),n.isCartesian&&(e.hasCartesianSeries=!0),o.length&&(s=o[o.length-1]),n._i=d(s&&s._i,-1)+1,e.orderSeries(this.insert(o)),y(this,"afterInit")},insert:function(t){var e,i=this.options.index;if(h(i)){for(e=t.length;e--;)if(i>=d(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return d(e,t.length-1)},bindAxes:function(){var e,i=this,s=i.options,n=i.chart;y(this,"bindAxes",null,(function(){(i.axisTypes||[]).forEach((function(o){n[o].forEach((function(t){e=t.options,(s[o]===e.index||void 0!==s[o]&&s[o]===e.id||void 0===s[o]&&0===e.index)&&(i.insert(t.series),i[o]=t,t.isDirty=!0)})),i[o]||i.optionalAxis===o||t.error(18,!0,n)}))}))},updateParallelArrays:function(t,e){var i=t.series,s=arguments,n=h(e)?function(s){var n="y"===s&&i.toYData?i.toYData(t):t[s];i[s+"Data"][e]=n}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(s,2))};i.parallelArrays.forEach(n)},hasData:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},autoIncrement:function(){var t,e=this.options,i=this.xIncrement,s=e.pointIntervalUnit,n=this.chart.time;return i=d(i,e.pointStart,0),this.pointInterval=t=d(this.pointInterval,e.pointInterval,1),s&&(e=new n.Date(i),"day"===s?n.set("Date",e,n.get("Date",e)+t):"month"===s?n.set("Month",e,n.get("Month",e)+t):"year"===s&&n.set("FullYear",e,n.get("FullYear",e)+t),t=e.getTime()-i),this.xIncrement=i+t,i},setOptions:function(t){var e=this.chart,i=e.options,s=i.plotOptions,o=e.userOptions||{};
1t=b(t),e=e.styledMode;var r={plotOptions:s,userOptions:t};y(this,"setOptions",r);var a=r.plotOptions[this.type],h=o.plotOptions||{};return this.userOptions=r.userOptions,o=b(a,s.series,o.plotOptions&&o.plotOptions[this.type],t),this.tooltipOptions=b(v.tooltip,v.plotOptions.series&&v.plotOptions.series.tooltip,v.plotOptions[this.type].tooltip,i.tooltip.userOptions,s.series&&s.series.tooltip,s[this.type].tooltip,t.tooltip),this.stickyTracking=d(t.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||o.stickyTracking),null===a.marker&&delete o.marker,this.zoneAxis=o.zoneAxis,i=this.zones=(o.zones||[]).slice(),!o.negativeColor&&!o.negativeFillColor||o.zones||(s={value:o[this.zoneAxis+"Threshold"]||o.threshold||0,className:"highcharts-negative"},e||(s.color=o.negativeColor,s.fillColor=o.negativeFillColor),i.push(s)),i.length&&n(i[i.length-1].value)&&i.push(e?{}:{color:this.color,fillColor:this.fillColor}),y(this,"afterSetOptions",{options:o}),o},getName:function(){return d(this.options.name,"Series "+(this.index+1))},getCyclic:function(t,e,i){var s=this.chart,o=this.userOptions,r=t+"Index",a=t+"Counter",h=i?i.length:d(s.options.chart[t+"Count"],s[t+"Count"]);if(!e){var l=d(o[r],o["_"+r]);n(l)||(s.series.length||(s[a]=0),o["_"+r]=l=s[a]%h,s[a]+=1),i&&(e=i[l])}void 0!==l&&(this[r]=l),this[t]=e},getColor:function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||x[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},findPointIndex:function(t,e){var i=t.id;t=t.x;var s,n=this.points;if(i){var o=(i=this.chart.get(i))&&i.index;void 0!==o&&(s=!0)}return void 0===o&&h(t)&&(o=this.xData.indexOf(t,e)),-1!==o&&void 0!==o&&this.cropped&&(o=o>=this.cropStart?o-this.cropStart:o),!s&&n[o]&&n[o].touched&&(o=void 0),o},drawLegendSymbol:t.LegendSymbolMixin.drawLineMarker,updateData:function(t){var e,i,s,o=this.options,r=this.points,a=[],l=this.requireSorting,c=t.length===r.length,d=!0;if(this.xIncrement=null,t.forEach((function(t,i){var d=n(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},p=d.x;(d.id||h(p))&&(-1===(p=this.findPointIndex(d,s))||void 0===p?a.push(t):r[p]&&t!==o.data[p]?(r[p].update(t,!1,null,!1),r[p].touched=!0,l&&(s=p+1)):r[p]&&(r[p].touched=!0),(!c||i!==p||this.hasDerivedData)&&(e=!0))}),this),e)for(t=r.length;t--;)(i=r[t])&&!i.touched&&i.remove(!1);else c?t.forEach((function(t,e){r[e].update&&t!==r[e].y&&r[e].update(t,!1,null,!1)})):d=!1;return r.forEach((function(t){t&&(t.touched=!1)})),!!d&&(a.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),!0)},setData:function(e,i,s,n){var o,r=this,c=r.points,p=c&&c.length||0,u=r.options,f=r.chart,g=null,m=r.xAxis;g=u.turboThreshold;var v,x=this.xData,y=this.yData,b=(o=r.pointArrayMap)&&o.length,k=u.keys,w=0,M=1;if(o=(e=e||[]).length,i=d(i,!0),!1!==n&&o&&p&&!r.cropped&&!r.hasGroupedData&&r.visible&&!r.isSeriesBoosting&&(v=this.updateData(e)),!v){if(r.xIncrement=null,r.colorCounter=0,this.parallelArrays.forEach((function(t){r[t+"Data"].length=0})),g&&o>g)if(g=r.getFirstValidPoint(e),h(g))for(s=0;s<o;s++)x[s]=this.autoIncrement(),y[s]=e[s];else if(a(g))if(b)for(s=0;s<o;s++)n=e[s],x[s]=n[0],y[s]=n.slice(1,b+1);else for(k&&(w=0<=(w=k.indexOf("x"))?w:0,M=0<=(M=k.indexOf("y"))?M:1),s=0;s<o;s++)n=e[s],x[s]=n[w],y[s]=n[M];else t.error(12,!1,f);else for(s=0;s<o;s++)void 0!==e[s]&&(n={series:r},r.pointClass.prototype.applyOptions.apply(n,[e[s]]),r.updateParallelArrays(n,s));for(y&&l(y[0])&&t.error(14,!0,f),r.data=[],r.options.data=r.userOptions.data=e,s=p;s--;)c[s]&&c[s].destroy&&c[s].destroy();m&&(m.minRange=m.userMinRange),r.isDirty=f.isDirtyBox=!0,r.isDirtyData=!!c,s=!1}"point"===u.legendType&&(this.processData(),this.generatePoints()),i&&f.redraw(s)},processData:function(e){var i=this.xData,s=this.yData,n=i.length,o=0,r=this.xAxis,a=this.options,h=a.cropThreshold,l=this.getExtremesFromAll||a.getExtremesFromAll,c=this.isCartesian;a=r&&r.val2lin;var d=r&&r.isLog,p=this.requireSorting;if(c&&!this.isDirty&&!r.isDirty&&!this.yAxis.isDirty&&!e)return!1;if(r)var u=(e=r.getExtremes()).min,f=e.max;if(c&&this.sorted&&!l&&(!h||n>h||this.forceCrop))if(i[n-1]<u||i[0]>f)i=[],s=[];else if(this.yData&&(i[0]<u||i[n-1]>f)){i=(o=this.cropData(this.xData,this.yData,u,f)).xData,s=o.yData,o=o.start;var g=!0}for(h=i.length||1;--h;)if(0<(n=d?a(i[h])-a(i[h-1]):i[h]-i[h-1])&&(void 0===m||n<m))var m=n;
1else 0>n&&p&&(t.error(15,!1,this.chart),p=!1);this.cropped=g,this.cropStart=o,this.processedXData=i,this.processedYData=s,this.closestPointRange=this.basePointRange=m},cropData:function(t,e,i,s,n){var o,r=t.length,a=0,h=r;for(n=d(n,this.cropShoulder),o=0;o<r;o++)if(t[o]>=i){a=Math.max(0,o-n);break}for(i=o;i<r;i++)if(t[i]>s){h=i+n;break}return{xData:t.slice(a,h),yData:e.slice(a,h),start:a,end:h}},generatePoints:function(){var t,e=this.options,i=e.data,s=this.data,n=this.processedXData,o=this.processedYData,a=this.pointClass,h=n.length,l=this.cropStart||0,c=this.hasGroupedData;e=e.keys;var d,u=[];for(s||c||((s=[]).length=i.length,s=this.data=s),e&&c&&(this.options.keys=!1),d=0;d<h;d++){var f=l+d;if(c){var g=(new a).init(this,[n[d]].concat(p(o[d])));g.dataGroup=this.groupMap[d],g.dataGroup.options&&(g.options=g.dataGroup.options,r(g,g.dataGroup.options),delete g.dataLabels)}else(g=s[f])||void 0===i[f]||(s[f]=g=(new a).init(this,i[f],n[d]));g&&(g.index=f,u[d]=g)}if(this.options.keys=e,s&&(h!==(t=s.length)||c))for(d=0;d<t;d++)d!==l||c||(d+=h),s[d]&&(s[d].destroyElements(),s[d].plotX=void 0);this.data=s,this.points=u,y(this,"afterGeneratePoints")},getXExtremes:function(t){return{min:s(t),max:i(t)}},getExtremes:function(t){var e,n=this.xAxis,o=this.yAxis,r=this.processedXData||this.xData,l=[],c=0,d=0,p=0,u=this.requireSorting?this.cropShoulder:0,f=!!o&&o.positiveValuesOnly;for(o=(t=t||this.stackedYData||this.processedYData||[]).length,n&&(d=(p=n.getExtremes()).min,p=p.max),e=0;e<o;e++){var g=r[e],m=t[e],v=(h(m)||a(m))&&(m.length||0<m||!f);if(g=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!n||(r[e+u]||g)>=d&&(r[e-u]||g)<=p,v&&g)if(v=m.length)for(;v--;)h(m[v])&&(l[c++]=m[v]);else l[c++]=m}this.dataMin=s(l),this.dataMax=i(l),y(this,"afterGetExtremes")},getFirstValidPoint:function(t){for(var e=null,i=t.length,s=0;null===e&&s<i;)e=t[s],s++;return e},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i=this.options,s=i.stacking,o=this.xAxis,r=o.categories,l=this.yAxis,c=this.points,p=c.length,u=!!this.modifyValue,f=this.pointPlacementToXValue(),g=h(f),v=i.threshold,x=i.startFromThreshold?v:0,b=this.zoneAxis||"y",k=Number.MAX_VALUE;for(t=0;t<p;t++){var w=c[t],M=w.x,S=w.y,A=w.low,T=s&&l.stacks[(this.negStacks&&S<(x?0:v)?"-":"")+this.stackKey];if(l.positiveValuesOnly&&null!==S&&0>=S&&(w.isNull=!0),w.plotX=e=m(Math.min(Math.max(-1e5,o.translate(M,0,0,0,1,f,"flags"===this.type)),1e5)),s&&this.visible&&T&&T[M]){var P=this.getStackIndicator(P,M,this.index);if(!w.isNull)var C=T[M],E=C.points[P.key]}if(a(E)&&(A=E[0],S=E[1],A===x&&P.key===T[M].base&&(A=d(h(v)&&v,l.min)),l.positiveValuesOnly&&0>=A&&(A=null),w.total=w.stackTotal=C.total,w.percentage=C.total&&w.y/C.total*100,w.stackY=S,this.irregularWidths||C.setOffset(this.pointXOffset||0,this.barW||0)),w.yBottom=n(A)?Math.min(Math.max(-1e5,l.translate(A,0,1,0,1)),1e5):null,u&&(S=this.modifyValue(S,w)),w.plotY=S="number"==typeof S&&1/0!==S?Math.min(Math.max(-1e5,l.translate(S,0,1,0,1)),1e5):void 0,w.isInside=void 0!==S&&0<=S&&S<=l.len&&0<=e&&e<=o.len,w.clientX=g?m(o.translate(M,0,0,0,1,f)):e,w.negative=w[b]<(i[b+"Threshold"]||v||0),w.category=r&&void 0!==r[w.x]?r[w.x]:w.x,!w.isNull){void 0!==L&&(k=Math.min(k,Math.abs(e-L)));var L=e}w.zone=this.zones.length&&w.getZone()}this.closestPointRangePx=k,y(this,"afterTranslate")},getValidPoints:function(t,e,i){var s=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!s.isInsidePlot(t.plotX,t.plotY,s.inverted))&&(i||!t.isNull)}))},getClipBox:function(t,e){var i=this.options,s=this.chart,n=s.inverted,o=this.xAxis,r=o&&this.yAxis;return t&&!1===i.clip&&r?t=n?{y:-s.chartWidth+r.len+r.pos,height:s.chartWidth,width:s.chartHeight,x:-s.chartHeight+o.len+o.pos}:{y:-r.pos,height:s.chartHeight,width:s.chartWidth,x:-o.pos}:(t=this.clipBox||s.clipBox,e&&(t.width=s.plotSizeX,t.x=0)),e?{width:t.width,x:t.x}:t},setClip:function(t){var e=this.chart,i=this.options,s=e.renderer,n=e.inverted,o=this.clipBox,r=this.getClipBox(t),a=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,r.height,i.xAxis,i.yAxis].join(),h=e[a],l=e[a+"m"];h||(t&&(r.width=0,n&&(r.x=e.plotSizeX+(!1!==i.clip?0:e.plotTop)),e[a+"m"]=l=s.clipRect(n?e.plotSizeX+99:-99,n?-e.plotLeft:-e.plotTop,99,n?e.chartWidth:e.chartHeight)),e[a]=h=s.clipRect(r),h.count={length:0}),t&&!h.count[this.index]&&(h.count[this.index]=!0,h.count.length+=1),(!1!==i.clip||t)&&(this.group.clip(t||o?h:e.clipRect),this.markerGroup.clip(l),this.sharedCl
1ipKey=a),t||(h.count[this.index]&&(delete h.count[this.index],--h.count.length),0===h.count.length&&a&&e[a]&&(o||(e[a]=e[a].destroy()),e[a+"m"]&&(e[a+"m"]=e[a+"m"].destroy())))},animate:function(t){var e=this.chart,i=g(this.options.animation);if(t)this.setClip(i);else{var s=this.sharedClipKey;t=e[s];var n=this.getClipBox(i,!0);t&&t.animate(n,i),e[s+"m"]&&e[s+"m"].animate({width:n.width+99,x:n.x-(e.inverted?0:99)},i),this.animate=null}},afterAnimate:function(){this.setClip(),y(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e=this.points,i=this.chart,s=this.options.marker,n=this[this.specialGroup]||this.markerGroup,o=this.xAxis,r=d(s.enabled,!(o&&!o.isRadial)||null,this.closestPointRangePx>=s.enabledThreshold*s.radius);if(!1!==s.enabled||this._hasPointMarkers)for(o=0;o<e.length;o++){var a=e[o],h=(t=a.graphic)?"animate":"attr",l=a.marker||{},c=!!a.marker,p=r&&void 0===l.enabled||l.enabled,u=!1!==a.isInside;if(p&&!a.isNull){var f=d(l.symbol,this.symbol);p=this.markerAttribs(a,a.selected&&"select"),t?t[u?"show":"hide"](u).animate(p):u&&(0<p.width||a.hasImage)&&(a.graphic=t=i.renderer.symbol(f,p.x,p.y,p.width,p.height,c?l:s).add(n)),t&&!i.styledMode&&t[h](this.pointAttribs(a,a.selected&&"select")),t&&t.addClass(a.getClassName(),!0)}else t&&(a.graphic=t.destroy())}},markerAttribs:function(t,e){var i=this.options.marker,s=t.marker||{},n=s.symbol||i.symbol,o=d(s.radius,i.radius);return e&&(i=i.states[e],e=s.states&&s.states[e],o=d(e&&e.radius,i&&i.radius,o+(i&&i.radiusPlus||0))),t.hasImage=n&&0===n.indexOf("url"),t.hasImage&&(o=0),t={x:Math.floor(t.plotX)-o,y:t.plotY-o},o&&(t.width=t.height=2*o),t},pointAttribs:function(t,e){var i=this.options.marker,s=t&&t.options,n=s&&s.marker||{},o=this.color,r=s&&s.color,a=t&&t.color;s=d(n.lineWidth,i.lineWidth);var h=t&&t.zone&&t.zone.color;return t=1,o=r||h||a||o,r=n.fillColor||i.fillColor||o,o=n.lineColor||i.lineColor||o,e=e||"normal",i=i.states[e],e=n.states&&n.states[e]||{},s=d(e.lineWidth,i.lineWidth,s+d(e.lineWidthPlus,i.lineWidthPlus,0)),r=e.fillColor||i.fillColor||r,{stroke:o=e.lineColor||i.lineColor||o,"stroke-width":s,fill:r,opacity:t=d(e.opacity,i.opacity,t)}},destroy:function(e){var i,s,n,r=this,a=r.chart,h=/AppleWebKit\/533/.test(M.navigator.userAgent),l=r.data||[];for(y(r,"destroy"),e||k(r),(r.axisTypes||[]).forEach((function(t){(n=r[t])&&n.series&&(o(n.series,r),n.isDirty=n.forceRedraw=!0)})),r.legendItem&&r.chart.legend.destroyItem(r),i=l.length;i--;)(s=l[i])&&s.destroy&&s.destroy();r.points=null,t.clearTimeout(r.animationTimeout),c(r,(function(t,e){t instanceof w&&!t.survive&&t[h&&"group"===e?"hide":"destroy"]()})),a.hoverSeries===r&&(a.hoverSeries=null),o(a.series,r),a.orderSeries(),c(r,(function(t,i){e&&"hcEvents"===i||delete r[i]}))},getGraphPath:function(t,e,i){var s,o,r=this,a=r.options,h=a.step,l=[],c=[];return(s=(t=t||r.points).reversed)&&t.reverse(),(h={right:1,center:2}[h]||h&&3)&&s&&(h=4-h),!a.connectNulls||e||i||(t=this.getValidPoints(t)),t.forEach((function(s,d){var p=s.plotX,u=s.plotY,f=t[d-1];(s.leftCliff||f&&f.rightCliff)&&!i&&(o=!0),s.isNull&&!n(e)&&0<d?o=!a.connectNulls:s.isNull&&!e?o=!0:(0===d||o?d=["M",s.plotX,s.plotY]:r.getPointSpline?d=r.getPointSpline(t,s,d):h?(d=1===h?["L",f.plotX,u]:2===h?["L",(f.plotX+p)/2,f.plotY,"L",(f.plotX+p)/2,u]:["L",p,f.plotY]).push("L",p,u):d=["L",p,u],c.push(s.x),h&&(c.push(s.x),2===h&&c.push(s.x)),l.push.apply(l,d),o=!1)})),l.xMap=c,r.graphPath=l},drawGraph:function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),s=this.chart.styledMode,n=[["graph","highcharts-graph"]];s||n[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(n=t.getZonesGraphs(n)).forEach((function(n,o){var r=n[0],a=t[r],h=a?"animate":"attr";a?(a.endX=t.preventGraphAnimation?null:i.xMap,a.animate({d:i})):i.length&&(t[r]=a=t.chart.renderer.path(i).addClass(n[1]).attr({zIndex:1}).add(t.group)),a&&!s&&(r={stroke:n[2],"stroke-width":e.lineWidth,fill:t.fillGraph&&t.color||"none"},n[3]?r.dashstyle=n[3]:"square"!==e.linecap&&(r["stroke-linecap"]=r["stroke-linejoin"]="round"),a[h](r).shadow(2>o&&e.shadow)),a&&(a.startX=i.xMap,a.isArea=i.isArea)}))}
1,getZonesGraphs:function(t){return this.zones.forEach((function(e,i){i=["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(e.className||"")],this.chart.styledMode||i.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(i)}),this),t},applyZones:function(){var t,e,i,s,n,o,r=this,a=this.chart,h=a.renderer,l=this.zones,c=this.clips||[],p=this.graph,u=this.area,f=Math.max(a.chartWidth,a.chartHeight),g=this[(this.zoneAxis||"y")+"Axis"],m=a.inverted,v=!1;if(l.length&&(p||u)&&g&&void 0!==g.min){var x=g.reversed,y=g.horiz;p&&!this.showLine&&p.hide(),u&&u.hide();var b=g.getExtremes();l.forEach((function(l,k){t=x?y?a.plotWidth:0:y?0:g.toPixels(b.min)||0,t=Math.min(Math.max(d(e,t),0),f),e=Math.min(Math.max(Math.round(g.toPixels(d(l.value,b.max),!0)||0),0),f),v&&(t=e=g.toPixels(b.max)),s=Math.abs(t-e),n=Math.min(t,e),o=Math.max(t,e),g.isXAxis?(i={x:m?o:n,y:0,width:s,height:f},y||(i.x=a.plotHeight-i.x)):(i={x:0,y:m?o:n,width:f,height:s},y&&(i.y=a.plotWidth-i.y)),m&&h.isVML&&(i=g.isXAxis?{x:0,y:x?n:o,height:i.width,width:a.chartWidth}:{x:i.y-a.plotLeft-a.spacingBox.x,y:0,width:i.height,height:a.chartHeight}),c[k]?c[k].animate(i):c[k]=h.clipRect(i),p&&r["zone-graph-"+k].clip(c[k]),u&&r["zone-area-"+k].clip(c[k]),v=l.value>b.max,r.resetZones&&0===e&&(e=void 0)})),this.clips=c}else r.visible&&(p&&p.show(!0),u&&u.show(!0))},invertGroups:function(t){function e(){["group","markerGroup"].forEach((function(e){i[e]&&(s.renderer.isVML&&i[e].attr({width:i.yAxis.len,height:i.xAxis.len}),i[e].width=i.yAxis.len,i[e].height=i.xAxis.len,i[e].invert(t))}))}var i=this,s=i.chart;if(i.xAxis){var n=f(s,"resize",e);f(i,"destroy",n),e(),i.invertGroups=e}},plotGroup:function(t,e,i,s,o){var r=this[t],a=!r;return a&&(this[t]=r=this.chart.renderer.g().attr({zIndex:s||.1}).add(o)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(n(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr({visibility:i})[a?"attr":"animate"](this.getPlotBox()),r},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t=this,e=t.chart,i=t.options,s=!!t.animate&&e.renderer.isSVG&&g(i.animation).duration,n=t.visible?"inherit":"hidden",o=i.zIndex,r=t.hasRendered,a=e.seriesGroup,h=e.inverted;y(this,"render");var l=t.plotGroup("group","series",n,o,a);t.markerGroup=t.plotGroup("markerGroup","markers",n,o,a),s&&t.animate(!0),l.inverted=!(!t.isCartesian&&!t.invertable)&&h,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(h),!1===i.clip||t.sharedClipKey||r||l.clip(e.clipRect),s&&t.animate(),r||(t.animationTimeout=u((function(){t.afterAnimate()}),s||0)),t.isDirty=!1,t.hasRendered=!0,y(t,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,s=this.xAxis,n=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:d(s&&s.left,t.plotLeft),translateY:d(n&&n.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,s=this.yAxis,n=this.chart.inverted;return this.searchKDTree({clientX:n?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:n?s.len-t.chartX+s.pos:t.chartY-s.pos},e,t)},buildKDTree:function(t){function e(t,s,n){var o;if(o=t&&t.length){var r=i.kdAxisArray[s%n];return t.sort((function(t,e){return t[r]-e[r]})),{point:t[o=Math.floor(o/2)],left:e(t.slice(0,o),s+1,n),right:e(t.slice(o+1),s+1,n)}}}this.buildingKdTree=!0;var i=this,s=-1<i.options.findNearestPointBy.indexOf("y")?2:1;delete i.kdTree,u((function(){i.kdTree=e(i.getValidPoints(null,!i.directTouch),s,s),i.buildingKdTree=!1}),i.options.kdNow||t&&"touchstart"===t.type?0:1)}
1,searchKDTree:function(t,e,i){var s=this,o=this.kdAxisArray[0],r=this.kdAxisArray[1],a=e?"distX":"dist";if(e=-1<s.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,h,l){var c=i.point,d=s.kdAxisArray[h%l],p=c,u=n(e[o])&&n(c[o])?Math.pow(e[o]-c[o],2):null,f=n(e[r])&&n(c[r])?Math.pow(e[r]-c[r],2):null;return f=(u||0)+(f||0),c.dist=n(f)?Math.sqrt(f):Number.MAX_VALUE,c.distX=n(u)?Math.sqrt(u):Number.MAX_VALUE,u=0>(d=e[d]-c[d])?"right":"left",i[f=0>d?"left":"right"]&&(p=(f=t(e,i[f],h+1,l))[a]<p[a]?f:c),i[u]&&Math.sqrt(d*d)<p[a]&&(p=(e=t(e,i[u],h+1,l))[a]<p[a]?e:p),p}(t,this.kdTree,e,e)},pointPlacementToXValue:function(){var t=this.xAxis,e=this.options.pointPlacement;return"between"===e&&(e=t.reversed?-.5:.5),h(e)&&(e*=d(this.options.pointRange||t.pointRange)),e}})})),e(i,"parts/Stacking.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.destroyObjectProperties,n=e.objectEach,o=e.pick;e=t.Axis;var r=t.Chart,a=t.correctFloat,h=t.format,l=t.Series;t.StackItem=function(t,e,i,s,n){var o=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e=e||{},this.x=s,this.total=null,this.points={},this.stack=n,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(o?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":i?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(o?i?"right":"left":"center")},t.StackItem.prototype={destroy:function(){s(this,this.axis)},render:function(t){var e=this.axis.chart,i=this.options,s=i.format;s=s?h(s,this,e.time):i.formatter.call(this),this.label?this.label.attr({text:s,visibility:"hidden"}
1):(this.label=e.renderer.label(s,null,null,i.shape,null,null,i.useHTML,!1,"stack-labels"),s={text:s,align:this.textAlign,rotation:i.rotation,padding:o(i.padding,0),visibility:"hidden"},this.label.attr(s),e.styledMode||this.label.css(i.style),this.label.added||this.label.add(t)),this.label.labelrank=e.plotHeight},setOffset:function(t,e,s,n,r){var a=this.axis,h=a.chart;if(n=a.translate(a.usePercentage?100:n||this.total,0,0,0,1),s=a.translate(s||0),s=i(n)&&Math.abs(n-s),t=o(r,h.xAxis[0].translate(this.x))+t,a=i(n)&&this.getStackBox(h,this,t,n,e,s,a),e=this.label,t=this.isNegative,r="justify"===o(this.options.overflow,"justify"),e&&a){s=e.getBBox();var c=h.inverted?t?s.width:0:s.width/2,d=h.inverted?s.height/2:t?-4:s.height+4;this.alignOptions.x=o(this.options.x,0),e.align(this.alignOptions,null,a),n=e.alignAttr,e.show(),n.y-=d,r&&(n.x-=c,l.prototype.justifyDataLabel.call(this.axis,e,this.alignOptions,n,s,a),n.x+=c),n.x=e.alignAttr.x,e.attr({x:n.x,y:n.y}),o(!r&&this.options.crop,!0)&&((h=h.isInsidePlot(e.x+(h.inverted?0:-s.width/2),e.y)&&h.isInsidePlot(e.x+(h.inverted?t?-s.width:s.width:s.width/2),e.y+s.height))||e.hide())}},getStackBox:function(t,e,i,s,n,o,r){var a=e.axis.reversed,h=t.inverted;return t=r.height+r.pos-(h?t.plotLeft:t.plotTop),e=e.isNegative&&!a||!e.isNegative&&a,{x:h?e?s:s-o:i,y:h?t-i-n:e?t-s-o:t-s,width:h?o:n,height:h?n:o}}},r.prototype.getStacks=function(){var t=this,e=t.inverted;t.yAxis.forEach((function(t){t.stacks&&t.hasVisibleSeries&&(t.oldStacks=t.stacks)})),t.series.forEach((function(i){var s=i.xAxis&&i.xAxis.options||{};!i.options.stacking||!0!==i.visible&&!1!==t.options.chart.ignoreHiddenSeries||(i.stackKey=[i.type,o(i.options.stack,""),e?s.top:s.left,e?s.height:s.width].join())}))},e.prototype.buildStacks=function(){var t,e=this.series,i=o(this.options.reversedStacks,!0),s=e.length;if(!this.isXAxis){for(this.usePercentage=!1,t=s;t--;)e[i?t:s-t-1].setStackedPoints();for(t=0;t<s;t++)e[t].modifyStacks()}},e.prototype.renderStackTotals=function(){var t=this.chart,e=t.renderer,i=this.stacks,s=this.stackTotalGroup;s||(this.stackTotalGroup=s=e.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),s.translate(t.plotLeft,t.plotTop),n(i,(function(t){n(t,(function(t){t.render(s)}))}))},e.prototype.resetStacks=function(){var t=this,e=t.stacks;t.isXAxis||n(e,(function(e){n(e,(function(i,s){i.touched<t.stacksTouched?(i.destroy(),delete e[s]):(i.total=null,i.cumulative=null)}))}))},e.prototype.cleanStacks=function(){if(!this.isXAxis){if(this.oldStacks)var t=this.stacks=this.oldStacks;n(t,(function(t){n(t,(function(t){t.cumulative=t.total}))}))}},l.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var e=this.processedXData,s=this.processedYData,n=[],r=s.length,h=this.options,l=h.threshold,c=o(h.startFromThreshold&&l,0),d=h.stack;h=h.stacking;var p,u,f=this.stackKey,g="-"+f,m=this.negStacks,v=this.yAxis,x=v.stacks,y=v.oldStacks;for(v.stacksTouched+=1,u=0;u<r;u++){var b=e[u],k=s[u],w=this.getStackIndicator(w,b,this.index),M=w.key,S=(p=m&&k<(c?0:l))?g:f;x[S]||(x[S]={}),x[S][b]||(y[S]&&y[S][b]?(x[S][b]=y[S][b],x[S][b].total=null):x[S][b]=new t.StackItem(v,v.options.stackLabels,p,b,d)),S=x[S][b],null!==k?(S.points[M]=S.points[this.index]=[o(S.cumulative,c)],i(S.cumulative)||(S.base=M),S.touched=v.stacksTouched,0<w.index&&!1===this.singleStacks&&(S.points[M][0]=S.points[this.index+","+b+",0"][0])):S.points[M]=S.points[this.index]=null,"percent"===h?(p=p?f:g,m&&x[p]&&x[p][b]?(p=x[p][b],S.total=p.total=Math.max(p.total,S.total)+Math.abs(k)||0):S.total=a(S.total+(Math.abs(k)||0))):S.total=a(S.total+(k||0)),S.cumulative=o(S.cumulative,c)+(k||0),null!==k&&(S.points[M].push(S.cumulative),n[u]=S.cumulative)}"percent"===h&&(v.usePercentage=!0),this.stackedYData=n,v.oldStacks={}}},l.prototype.modifyStacks=function(){var t,e=this,i=e.stackKey,s=e.yAxis.stacks,n=e.processedXData,o=e.options.stacking;e[o+"Stacker"]&&[i,"-"+i].forEach((function(i){for(var r,a,h=n.length;h--;)r=n[h],t=e.getStackIndicator(t,r,e.index,i),(a=(r=s[i]&&s[i][r])&&r.points[t.key])&&e[o+"Stacker"](a,r,h)}))}
1,l.prototype.percentStacker=function(t,e,i){e=e.total?100/e.total:0,t[0]=a(t[0]*e),t[1]=a(t[1]*e),this.stackedYData[i]=t[1]},l.prototype.getStackIndicator=function(t,e,s,n){return!i(t)||t.x!==e||n&&t.key!==n?t={x:e,index:0,key:n}:t.index++,t.key=[s,e,t.index].join(),t}})),e(i,"parts/Dynamics.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.erase,n=e.extend,o=e.isArray,r=e.isNumber,a=e.isObject,h=e.isString,l=e.objectEach,c=e.pick,d=e.setAnimation,p=e.splat,u=t.addEvent,f=t.animate,g=t.Axis;e=t.Chart;var m=t.createElement,v=t.css,x=t.fireEvent,y=t.merge,b=t.Point,k=t.Series,w=t.seriesTypes;t.cleanRecursively=function(e,i){var s={};return l(e,(function(n,o){a(e[o],!0)&&!e.nodeType&&i[o]?(n=t.cleanRecursively(e[o],i[o]),Object.keys(n).length&&(s[o]=n)):(a(e[o])||e[o]!==i[o])&&(s[o]=e[o])})),s},n(e.prototype,{addSeries:function(t,e,i){var s,n=this;return t&&(e=c(e,!0),x(n,"addSeries",{options:t},(function(){s=n.initSeries(t),n.isDirtyLegend=!0,n.linkSeries(),x(n,"afterAddSeries",{series:s}),e&&n.redraw(i)}))),s},addAxis:function(t,e,i,s){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:s})},addColorAxis:function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},createAxis:function(e,i){var s=this.options,n="colorAxis"===e,o=i.redraw,r=i.animation;i=y(i.axis,{index:this[e].length,isX:"xAxis"===e});var a=n?new t.ColorAxis(this,i):new g(this,i);return s[e]=p(s[e]||{}),s[e].push(i),n&&(this.isDirtyLegend=!0,this.axes.forEach((function(t){t.series=[]})),this.series.forEach((function(t){t.bindAxes(),t.isDirtyData=!0}))),c(o,!0)&&this.redraw(r),a},showLoading:function(t){var e=this,i=e.options,s=e.loadingDiv,o=i.loading,r=function(){s&&v(s,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})};s||(e.loadingDiv=s=m("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container),e.loadingSpan=m("span",{className:"highcharts-loading-inner"},null,s),u(e,"redraw",r)),s.className="highcharts-loading",e.loadingSpan.innerHTML=c(t,i.lang.loading,""),e.styledMode||(v(s,n(o.style,{zIndex:10})),v(e.loadingSpan,o.labelStyle),e.loadingShown||(v(s,{opacity:0,display:""}),f(s,{opacity:o.style.opacity||.5},{duration:o.showDuration||0}))),e.loadingShown=!0,r()},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||f(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){v(e,{display:"none"})}})),this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroun
1dColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" "),collectionsWithUpdate:"xAxis yAxis zAxis colorAxis series pane".split(" "),update:function(e,s,n,o){var a,d,u,f=this,g={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},m=e.isResponsiveOptions,v=[];if(x(f,"update",{options:e}),m||f.setResponsive(!1,!0),e=t.cleanRecursively(e,f.options),y(!0,f.userOptions,e),a=e.chart){if(y(!0,f.options.chart,a),"className"in a&&f.setClassName(a.className),"reflow"in a&&f.setReflow(a.reflow),"inverted"in a||"polar"in a||"type"in a){f.propFromSeries();var b=!0}"alignTicks"in a&&(b=!0),l(a,(function(t,e){-1!==f.propsRequireUpdateSeries.indexOf("chart."+e)&&(d=!0),-1!==f.propsRequireDirtyBox.indexOf(e)&&(f.isDirtyBox=!0),m||-1===f.propsRequireReflow.indexOf(e)||(u=!0)})),!f.styledMode&&"style"in a&&f.renderer.setStyle(a.style)}!f.styledMode&&e.colors&&(this.options.colors=e.colors),e.plotOptions&&y(!0,this.options.plotOptions,e.plotOptions),e.time&&this.time===t.time&&(this.time=new t.Time(e.time)),l(e,(function(t,e){f[e]&&"function"==typeof f[e].update?f[e].update(t,!1):"function"==typeof f[g[e]]&&f[g[e]](t),"chart"!==e&&-1!==f.propsRequireUpdateSeries.indexOf(e)&&(d=!0)})),this.collectionsWithUpdate.forEach((function(t){if(e[t]){if("series"===t){var s=[];f[t].forEach((function(t,e){t.options.isInternal||s.push(c(t.options.index,e))}))}p(e[t]).forEach((function(e,o){(o=i(e.id)&&f.get(e.id)||f[t][s?s[o]:o])&&o.coll===t&&(o.update(e,!1),n&&(o.touched=!0)),!o&&n&&f.collectionsWithInit[t]&&(f.collectionsWithInit[t][0].apply(f,[e].concat(f.collectionsWithInit[t][1]||[]).concat([!1])).touched=!0)})),n&&f[t].forEach((function(t){t.touched||t.options.isInternal?delete t.touched:v.push(t)}))}})),v.forEach((function(t){t.remove&&t.remove(!1)})),b&&f.axes.forEach((function(t){t.update({},!1)})),d&&f.series.forEach((function(t){t.update({},!1)})),e.loading&&y(!0,f.options.loading,e.loading),b=a&&a.width,a=a&&a.height,h(a)&&(a=t.relativeLength(a,b||f.chartWidth)),u||r(b)&&b!==f.chartWidth||r(a)&&a!==f.chartHeight?f.setSize(b,a,o):c(s,!0)&&f.redraw(o),x(f,"afterUpdate",{options:e,redraw:s,animation:o})},setSubtitle:function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},setCaption:function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)}}),e.prototype.collectionsWithInit={xAxis:[e.prototype.addAxis,[!0]],yAxis:[e.prototype.addAxis,[!1]],colorAxis:[e.prototype.addColorAxis,[!1]],series:[e.prototype.addSeries]},n(b.prototype,{update:function(t,e,i,s){function n(){r.applyOptions(t),null===r.y&&l&&(r.graphic=l.destroy()),a(t,!0)&&(l&&l.element&&t&&t.marker&&void 0!==t.marker.symbol&&(r.graphic=l.destroy()),t&&t.dataLabels&&r.dataLabel&&(r.dataLabel=r.dataLabel.destroy()),r.connector&&(r.connector=r.connector.destroy())),o=r.index,h.updateParallelArrays(r,o),p.data[o]=a(p.data[o],!0)||a(t,!0)?r.options:c(t,p.data[o]),h.isDirty=h.isDirtyData=!0,!h.fixedBox&&h.hasCartesianSeries&&(d.isDirtyBox=!0),"point"===p.legendType&&(d.isDirtyLegend=!0),e&&d.redraw(i)}var o,r=this,h=r.series,l=r.graphic,d=h.chart,p=h.options;e=c(e,!0),!1===s?n():r.firePointEvent("update",{options:t},n)},remove:function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}}),n(k.prototype,{addPoint:function(t,e,i,s,n){var o=this.options,r=this.data,a=this.chart,h=this.xAxis;h=h&&h.hasNames&&h.names;var l,d=o.data,p=this.xData;e=c(e,!0);var u={series:this};this.pointClass.prototype.applyOptions.apply(u,[t]);var f=u.x,g=p.length;if(this.requireSorting&&f<p[g-1])for(l=!0;g&&p[g-1]>f;)g--;this.updateParallelArrays(u,"splice",g,0,0),this.updateParallelArrays(u,g),h&&u.name&&(h[f]=u.name),d.splice(g,0,t),l&&(this.data.splice(g,0,null),this.processData()),"point"===o.legendType&&this.generatePoints(),i&&(r[0]&&r[0].remove?r[0].remove(!1):(r.shift(),this.updateParallelArrays(u,"shift"),d.shift())),!1!==n&&x(this,"addPoint",{point:u}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(s)}
1,removePoint:function(t,e,i){var s=this,n=s.data,o=n[t],r=s.points,a=s.chart,h=function(){r&&r.length===n.length&&r.splice(t,1),n.splice(t,1),s.options.data.splice(t,1),s.updateParallelArrays(o||{series:s},"splice",t,1),o&&o.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&a.redraw()};d(i,a),e=c(e,!0),o?o.firePointEvent("remove",null,h):h()},remove:function(t,e,i,s){function n(){o.destroy(s),o.remove=null,r.isDirtyLegend=r.isDirtyBox=!0,r.linkSeries(),c(t,!0)&&r.redraw(e)}var o=this,r=o.chart;!1!==i?x(o,"remove",null,n):n()},update:function(e,i){e=t.cleanRecursively(e,this.userOptions),x(this,"update",{options:e});var s,o=this,r=o.chart,a=o.userOptions,h=o.initialType||o.type,l=e.type||a.type||r.options.chart.type,d=!(this.hasDerivedData||e.dataGrouping||l&&l!==this.type||void 0!==e.pointStart||e.pointInterval||e.pointIntervalUnit||e.keys),p=w[h].prototype,u=["group","markerGroup","dataLabelsGroup","transformGroup"],f=["eventOptions","navigatorSeries","baseSeries"],g=o.finishedAnimating&&{animation:!1},m={};for(s in d&&(f.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==e.visible&&f.push("area","graph"),o.parallelArrays.forEach((function(t){f.push(t+"Data")})),e.data&&this.setData(e.data,!1)),e=y(a,g,{index:void 0===a.index?o.index:a.index,pointStart:c(a.pointStart,o.xData[0])},!d&&{data:o.options.data},e),d&&e.data&&(e.data=o.options.data),(f=u.concat(f)).forEach((function(t){f[t]=o[t],delete o[t]})),o.remove(!1,null,!1,!0),p)o[s]=void 0;if(w[l||h]?n(o,w[l||h].prototype):t.error(17,!0,r,{missingModuleFor:l||h}),f.forEach((function(t){o[t]=f[t]})),o.init(r,e),d&&this.points){var v=o.options;!1===v.visible?(m.graphic=1,m.dataLabel=1):o._hasPointLabels||(l=v.marker,p=v.dataLabels,l&&(!1===l.enabled||"symbol"in l)&&(m.graphic=1),p&&!1===p.enabled&&(m.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(m).length&&t.destroyElements(m),!1===v.showInLegend&&t.legendItem&&r.legend.destroyItem(t))}),this)}e.zIndex!==a.zIndex&&u.forEach((function(t){o[t]&&o[t].attr({zIndex:e.zIndex})})),o.initialType=h,r.linkSeries(),x(this,"afterUpdate"),c(i,!0)&&r.redraw(!!d&&void 0)},setName:function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}}),n(g.prototype,{update:function(t,e){var i=this.chart,s=t&&t.events||{};t=y(this.userOptions,t),i.options[this.coll].indexOf&&(i.options[this.coll][i.options[this.coll].indexOf(this.userOptions)]=t),l(i.options[this.coll].events,(function(t,e){void 0===s[e]&&(s[e]=void 0)})),this.destroy(!0),this.init(i,n(t,{events:s})),i.isDirtyBox=!0,c(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,n=this.series,r=n.length;r--;)n[r]&&n[r].remove(!1);s(e.axes,this),s(e[i],this),o(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],e[i].forEach((function(t,e){t.options.index=t.userOptions.index=e})),this.destroy(),e.isDirtyBox=!0,c(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})})),e(i,"parts/AreaSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.objectEach,s=e.pick,n=t.color,o=t.Series;(e=t.seriesType)("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(t){var e,n=[],o=[],r=this.xAxis,a=this.yAxis,h=a.stacks[this.stackKey],l={},c=this.index,d=a.series,p=d.length,u=s(a.options.reversedStacks,!0)?1:-1;if(t=t||this.points,this.options.stacking){for(e=0;e<t.length;e++)t[e].leftNull=t[e].rightNull=void 0,l[t[e].x]=t[e];i(h,(function(t,e){null!==t.total&&o.push(e)})),o.sort((function(t,e){return t-e}));var f=d.map((function(t){return t.visible}));o.forEach((function(t,i){var s,d,g=0;if(l[t]&&!l[t].isNull)n.push(l[t]),[-1,1].forEach((function(n){var r=1===n?"rightNull":"leftNull",a=0,g=h[o[i+n]];if(g)for(e=c;0<=e&&e<p;)(s=g.points[e])||(e===c?l[t][r]=!0:f[e]&&(d=h[t].points[e])&&(a-=d[1]-d[0])),e+=u;l[t][1===n?"rightCliff":"leftCliff"]=a}));else{for(e=c;0<=e&&e<p;){if(s=h[t].points[e]){g=s[1];break}e+=u}g=a.translate(g,0,1,0,1),n.push({isNull:!0,plotX:r.translate(t,0,0,0,1),x:t,plotY:g,yBottom:g})}}))}return n},getGraphPath:function(t){var e,i=o.prototype.getGraphPath,n=this.options,r=n.stacking,a=this.yAxis,h=[],l=[],c=this.index,d=a.stacks[this.stackKey],p=n.threshold,u=Math.round(a.getThreshold(n.threshold));n=s(n.connectNulls,"percent"===r);var f=function(e,i,s){var n=t[e];e=r&&d[n.x].points[c];var o=n[s+"Null"]||0;if(s=n[s+"Cliff"]||0,n=!0,s||o){var f=(o?e[0]:e[1])+s,g=e[0]+s;n=!!o}else!r&&t[i]&&t[i].isNull&&(f=g=p);void 0!==f&&(l.push({plotX:m,plotY:null===f?u:a.getThreshold(f),isNull:n,isCliff:!0}),h.push({plotX:m,plotY:null===g?u:a.getThreshold(g),doCurve:!1}))};for(t=t||this.points,r&&(t=this.getStackPoints(t)),e=0;e<t.length;e++){r||(t[e].leftCliff=t[e].rightCliff=t[e].leftNull=t[e].rightNull=void 0);var g=t[e].isNull,m=s(t[e].rectPlotX,t[e].plotX),v=s(t[e].yBottom,u);g&&!n||(n||f(e,e-1,"left"),g&&!r&&n||(l.push(t[e]),h.push({x:e,plotX:m,plotY:v})),n||f(e,e+1,"right"))}return e=i.call(this,l,!0,!0),h.reversed=!0,(g=i.call(this,h,!0,!0)).length&&(g[0]="L"),g=e.concat(g),i=i.call(this,l,!1,n),g.xMap=e.xMap,this.areaPath=g,i},drawGraph:function(){this.areaPath=[],o.prototype.drawGraph.apply(this);var t=this,e=this.areaPath,i=this.options,r=[["area","highcharts-area",this.color,i.fillColor]];
1this.zones.forEach((function(e,s){r.push(["zone-area-"+s,"highcharts-area highcharts-zone-area-"+s+" "+e.className,e.color||t.color,e.fillColor||i.fillColor])})),r.forEach((function(o){var r=o[0],a=t[r],h=a?"animate":"attr",l={};a?(a.endX=t.preventGraphAnimation?null:e.xMap,a.animate({d:e})):(l.zIndex=0,(a=t[r]=t.chart.renderer.path(e).addClass(o[1]).add(t.group)).isArea=!0),t.chart.styledMode||(l.fill=s(o[3],n(o[2]).setOpacity(s(i.fillOpacity,.75)).get())),a[h](l),a.startX=e.xMap,a.shiftUnit=i.step?2:1}))},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle})})),e(i,"parts/SplineSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.pick;(t=t.seriesType)("spline","line",{},{getPointSpline:function(t,e,s){var n=e.plotX,o=e.plotY,r=t[s-1];if(s=t[s+1],r&&!r.isNull&&!1!==r.doCurve&&!e.isCliff&&s&&!s.isNull&&!1!==s.doCurve&&!e.isCliff){t=r.plotY;var a=s.plotX;s=s.plotY;var h=0,l=(1.5*n+r.plotX)/2.5,c=(1.5*o+t)/2.5,d=(1.5*o+s)/2.5;(a=(1.5*n+a)/2.5)!==l&&(h=(d-c)*(a-n)/(a-l)+o-d),d+=h,(c+=h)>t&&c>o?d=2*o-(c=Math.max(t,o)):c<t&&c<o&&(d=2*o-(c=Math.min(t,o))),d>s&&d>o?c=2*o-(d=Math.max(s,o)):d<s&&d<o&&(c=2*o-(d=Math.min(s,o))),e.rightContX=a,e.rightContY=d}return e=["C",i(r.rightContX,r.plotX),i(r.rightContY,r.plotY),i(l,n),i(c,o),n,o],r.rightContX=r.rightContY=null,e}})})),e(i,"parts/AreaSplineSeries.js",[i["parts/Globals.js"]],(function(t){var e=t.seriesTypes.area.prototype;(0,t.seriesType)("areaspline","spline",t.defaultPlotOptions.area,{getStackPoints:e.getStackPoints,getGraphPath:e.getGraphPath,drawGraph:e.drawGraph,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle})})),e(i,"parts/ColumnSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.extend,n=e.isNumber,o=e.pick,r=t.animObject,a=t.color,h=t.merge,l=t.Series;e=t.seriesType;var c=t.svg;e("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){l.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&e.series.forEach((function(e){e.type===t.type&&(e.isDirty=!0)}))},getColumnMetrics:function(){var t=this,e=t.options,i=t.xAxis,s=t.yAxis,n=i.options.reversedStacks;n=i.reversed&&!n||!i.reversed&&n;var r,a={},h=0;!1===e.grouping?h=1:t.chart.series.forEach((function(e){var i=e.yAxis,n=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&s.len===i.len&&s.pos===i.pos){if(n.stacking){r=e.stackKey,void 0===a[r]&&(a[r]=h++);var o=a[r]}else!1!==n.grouping&&(o=h++);e.columnIndex=o}}));var l=Math.min(Math.abs(i.transA)*(i.ordinalSlope||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),c=l*e.groupPadding,d=(l-2*c)/(h||1);return e=Math.min(e.maxPointWidth||i.len,o(e.pointWidth,d*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(d-e)/2+(c+((t.columnIndex||0)+(n?1:0))*d-l/2)*(n?-1:1)},t.columnMetrics},crispCol:function(t,e,i,s){var n=this.chart,o=this.borderWidth,r=-(o%2?.5:0);return o=o%2?.5:1,n.inverted&&n.renderer.isVML&&(o+=1),this.options.crisp&&(i=Math.round(t+i)+r,i-=t=Math.round(t)+r),s=Math.round(e+s)+o,r=.5>=Math.abs(e)&&.5<s,s-=e=Math.round(e)+o,r&&s&&(--e,s+=1),{x:t,y:e,width:i,height:s}},translate:function(){var t=this,e=t.chart,s=t.options,n=t.dense=2>t.closestPointRange*t.xAxis.transA;n=t.borderWidth=o(s.borderWidth,n?0:1);var r=t.yAxis,a=s.threshold,h=t.translatedThreshold=r.getThreshold(a),c=o(s.minPointLength,5),d=t.getColumnMetrics(),p=d.width,u=t.barW=Math.max(p,1+2*n),f=t.pointXOffset=d.offset,g=t.dataMin,m=t.dataMax;e.inverted&&(h-=.5),s.pointPadding&&(u=Math.ceil(u)),l.prototype.translate.apply(t),t.points.forEach((function(s){var n=o(s.yBottom,h),l=999+Math.abs(n),d=p;l=Math.min(Math.max(-l,s.plotY),r.len+l);var v=s.plotX+f,x=u,y=Math.min(l,n),b=Math.max(l,n)-y;if(c&&Math.abs(b)<c){b=c;var k=!r.reversed&&!s.negative||r.reversed&&s.negative;s.y===a&&t.dataMax<=a&&r.min<a&&g!==m&&(k=!k),y=Math.abs(y-h)>c?n-c:h-(k?c:0)}i(s.options.pointWidth)&&(d=x=Math.ceil(s.options.pointWidth),v-=Math.round((d-p)/2)),s.barX=v,s.pointWidth=d,s.tooltipPos=e.inverted?[r.len+r.pos-e.plotLeft-l,t.xAxis.len-v-x/2,b]:[v+x/2,l+r.pos-e.plotTop,b],s.shapeType=t.pointClass.prototype.shapeType||"rect",s.shapeArgs=t.crispCol.apply(t,s.isNull?[v,h,x,0]:[v,y,x,b])}))},getSymbol:t.noop,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var i=this.options,s=this.pointAttrToOptions||{},n=s.stroke||"borderColor",r=s["stroke-width"]||"borderWidth",l=t&&t.color||this.color,c=t&&t[n]||i[n]||this.color||l,d=t&&t[r]||i[r]||this[r]||0;s=t&&t.options.dashStyle||i.dashStyle;var p=o(i.opacity,1);if(t&&this.zones.length){var u=t.getZone();l=t.options.color||u&&(u.color||t.nonZonedColor)||this.color,u&&(c=u.borderColor||c,s=u.dashStyle||s,d=u.borderWidth||d)}return e&&(e=(t=h(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,l=t.color||void 0!==e&&a(l).brighten(t.brightness).get()||l,c=t[n]||c,d=t[r]||d,s=t.dashStyle||s,p=o(t.opacity,p)),n={fill:l,stroke:c,"stroke-width":d,opacity:p},s&&(n.dashstyle=s),n},drawPoints:function(){var t,e=this,i=this.chart,s=e.options,o=i.renderer,r=s.animationLimit||250;
1e.points.forEach((function(a){var l=a.graphic,c=l&&i.pointCount<r?"animate":"attr";n(a.plotY)&&null!==a.y?(t=a.shapeArgs,l&&a.hasNewShapeType()&&(l=l.destroy()),l?l[c](h(t)):a.graphic=l=o[a.shapeType](t).add(a.group||e.group),s.borderRadius&&l[c]({r:s.borderRadius}),i.styledMode||l[c](e.pointAttribs(a,a.selected&&"select")).shadow(!1!==a.allowShadow&&s.shadow,null,s.stacking&&!s.borderRadius),l.addClass(a.getClassName(),!0)):l&&(a.graphic=l.destroy())}))},animate:function(t){var e=this,i=this.yAxis,n=e.options,o=this.chart.inverted,a={},h=o?"translateX":"translateY";if(c)if(t)a.scaleY=.001,t=Math.min(i.pos+i.len,Math.max(i.pos,i.toPixels(n.threshold))),o?a.translateX=t-i.len:a.translateY=t,e.clipBox&&e.setClip(),e.group.attr(a);else{var l=e.group.attr(h);e.group.animate({scaleY:1},s(r(e.options.animation),{step:function(t,s){a[h]=l+s.pos*(i.pos-l),e.group.attr(a)}})),e.animate=null}},remove:function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach((function(e){e.type===t.type&&(e.isDirty=!0)})),l.prototype.remove.apply(t,arguments)}})})),e(i,"parts/BarSeries.js",[i["parts/Globals.js"]],(function(t){(t=t.seriesType)("bar","column",null,{inverted:!0})})),e(i,"parts/ScatterSeries.js",[i["parts/Globals.js"]],(function(t){var e=t.Series;(0,t.seriesType)("scatter","line",{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&e.prototype.drawGraph.call(this)},applyJitter:function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach((function(s,n){["x","y"].forEach((function(o,r){var a="plot"+o.toUpperCase();if(e[o]&&!s.isNull){var h=t[o+"Axis"],l=e[o]*h.transA;if(h&&!h.isLog){var c=Math.max(0,s[a]-l);h=Math.min(h.len,s[a]+l),r=1e4*Math.sin(n+r*i),s[a]=c+(h-c)*(r-Math.floor(r)),"x"===o&&(s.clientX=s.plotX)}}}))}))}}),t.addEvent(e,"afterTranslate",(function(){this.applyJitter&&this.applyJitter()}))})),e(i,"mixins/centered-series.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.isNumber,s=e.pick,n=t.deg2rad,o=t.relativeLength;t.CenteredSeriesMixin={getCenter:function(){var t=this.options,e=this.chart,i=2*(t.slicedOffset||0),n=e.plotWidth-2*i;e=e.plotHeight-2*i;var r=t.center;r=[s(r[0],"50%"),s(r[1],"50%"),t.size||"100%",t.innerSize||0];var a,h=Math.min(n,e);for(a=0;4>a;++a){var l=r[a];t=2>a||2===a&&/%$/.test(l),r[a]=o(l,[n,e,h,r[2]][a])+(t?i:0)}return r[3]>r[2]&&(r[3]=r[2]),r},getStartAndEndRadians:function(t,e){return t=i(t)?t:0,e=i(e)&&e>t&&360>e-t?e:t+360,{start:n*(t+-90),end:n*(e+-90)}}}})),e(i,"parts/PieSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.isNumber,n=e.pick,o=e.setAnimation,r=t.addEvent,a=(e=t.CenteredSeriesMixin).getStartAndEndRadians,h=t.merge,l=t.noop,c=t.Point,d=t.Series,p=t.seriesType,u=t.fireEvent;p("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0,connectorShape:"fixedOffset",crookDistance:"70%"},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:t.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,i=e.points,s=e.startAngleRad;t||(i.forEach((function(t){var i=t.graphic,n=t.shapeArgs;i&&(i.attr({r:t.startR||e.center[3]/2,start:s,end:s}),i.animate({r:n.r,start:n.start,end:n.end},e.options.animation))})),e.animate=null)},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var t,e=0,i=this.points,s=i.length,n=this.options.ignoreHiddenPoint;for(t=0;t<s;t++){var o=i[t];e+=n&&!o.visible||o.isNull?0:o.y}for(this.total=e,t=0;t<s;t++)(o=i[t]).percentage=0<e&&(o.visible||!n)?o.y/e*100:0,o.total=e},generatePoints:function(){d.prototype.generatePoints.call(this),this.updateTotals()}
1,getX:function(t,e,i){var s=this.center,n=this.radii?this.radii[i.index]:s[2]/2;return s[0]+(e?-1:1)*Math.cos(Math.asin(Math.max(Math.min((t-s[1])/(n+i.labelDistance),1),-1)))*(n+i.labelDistance)+(0<i.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},translate:function(e){this.generatePoints();var i=0,s=this.options,o=s.slicedOffset,r=o+(s.borderWidth||0),h=a(s.startAngle,s.endAngle),l=this.startAngleRad=h.start;h=(this.endAngleRad=h.end)-l;var c=this.points,d=s.dataLabels.distance;s=s.ignoreHiddenPoint;var p,f=c.length;for(e||(this.center=e=this.getCenter()),p=0;p<f;p++){var g=c[p],m=l+i*h;s&&!g.visible||(i+=g.percentage/100);var v=l+i*h;g.shapeType="arc",g.shapeArgs={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:Math.round(1e3*m)/1e3,end:Math.round(1e3*v)/1e3},g.labelDistance=n(g.options.dataLabels&&g.options.dataLabels.distance,d),g.labelDistance=t.relativeLength(g.labelDistance,g.shapeArgs.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,g.labelDistance),(v=(v+m)/2)>1.5*Math.PI?v-=2*Math.PI:v<-Math.PI/2&&(v+=2*Math.PI),g.slicedTranslation={translateX:Math.round(Math.cos(v)*o),translateY:Math.round(Math.sin(v)*o)};var x=Math.cos(v)*e[2]/2,y=Math.sin(v)*e[2]/2;g.tooltipPos=[e[0]+.7*x,e[1]+.7*y],g.half=v<-Math.PI/2||v>Math.PI/2?1:0,g.angle=v,m=Math.min(r,g.labelDistance/5),g.labelPosition={natural:{x:e[0]+x+Math.cos(v)*g.labelDistance,y:e[1]+y+Math.sin(v)*g.labelDistance},final:{},alignment:0>g.labelDistance?"center":g.half?"right":"left",connectorPosition:{breakAt:{x:e[0]+x+Math.cos(v)*m,y:e[1]+y+Math.sin(v)*m},touchingSliceAt:{x:e[0]+x,y:e[1]+y}}}}u(this,"afterTranslate")},drawEmpty:function(){var t=this.options;if(0===this.total){var e=this.center[0],i=this.center[1];this.graph||(this.graph=this.chart.renderer.circle(e,i,0).addClass("highcharts-graph").add(this.group)),this.graph.animate({"stroke-width":t.borderWidth,cx:e,cy:i,r:this.center[2]/2,fill:t.fillColor||"none",stroke:t.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},redrawPoints:function(){var t,e,i,s,n=this,o=n.chart,r=o.renderer,a=n.options.shadow;this.drawEmpty(),!a||n.shadowGroup||o.styledMode||(n.shadowGroup=r.g("shadow").attr({zIndex:-1}).add(n.group)),n.points.forEach((function(l){var c={};if(e=l.graphic,!l.isNull&&e){if(s=l.shapeArgs,t=l.getTranslate(),!o.styledMode){var d=l.shadowGroup;a&&!d&&(d=l.shadowGroup=r.g("shadow").add(n.shadowGroup)),d&&d.attr(t),i=n.pointAttribs(l,l.selected&&"select")}l.delayedRendering?(e.setRadialReference(n.center).attr(s).attr(t),o.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(a,d),l.delayedRendering=!1):(e.setRadialReference(n.center),o.styledMode||h(!0,c,i),h(!0,c,s,t),e.animate(c)),e.attr({visibility:l.visible?"inherit":"hidden"}),e.addClass(l.getClassName())}else e&&(l.graphic=e.destroy())}))},drawPoints:function(){var t=this.chart.renderer;this.points.forEach((function(e){e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))},searchPoint:l,sortByAngle:function(t,e){t.sort((function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e}))},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,getCenter:e.getCenter,getSymbol:l,drawGraph:null},{init:function(){c.prototype.init.apply(this,arguments);var t=this;t.name=n(t.name,"Slice");var e=function(e){t.slice("select"===e.type)};return r(t,"select",e),r(t,"unselect",e),t},isValid:function(){return s(this.y)&&0<=this.y},setVisible:function(t,e){var i=this,s=i.series,o=s.chart,r=s.options.ignoreHiddenPoint;e=n(e,r),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,s.options.data[s.data.indexOf(i)]=i.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){i[e]&&i[e][t?"show":"hide"](!0)})),i.legendItem&&o.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),r&&(s.isDirty=!0),e&&o.redraw())},slice:function(t,e,s){var r=this.series;o(s,r.chart),n(e,!0),this.sliced=this.options.sliced=i(t)?t:!this.sliced,r.options.data[r.data.indexOf(this)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})}
1,connectorShapes:{fixedOffset:function(t,e,i){var s=e.breakAt;return e=e.touchingSliceAt,["M",t.x,t.y].concat(i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*s.x-e.x,2*s.y-e.y,s.x,s.y]:["L",s.x,s.y]).concat(["L",e.x,e.y])},straight:function(t,e){return e=e.touchingSliceAt,["M",t.x,t.y,"L",e.x,e.y]},crookedLine:function(e,i,s){i=i.touchingSliceAt;var n=this.series,o=n.center[0],r=n.chart.plotWidth,a=n.chart.plotLeft;n=e.alignment;var h=this.shapeArgs.r;return s=t.relativeLength(s.crookDistance,1),o=["L",s="left"===n?o+h+(r+a-o-h)*(1-s):a+(o-h)*s,e.y],("left"===n?s>e.x||s<i.x:s<e.x||s>i.x)&&(o=[]),["M",e.x,e.y].concat(o).concat(["L",i.x,i.y])}},getConnectorPath:function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=e.connectorShape,s=this.connectorShapes;return s[i]&&(i=s[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)}})})),e(i,"parts/DataLabels.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.arrayMax,s=e.defined,n=e.extend,o=e.isArray,r=e.objectEach,a=e.pick,h=e.splat,l=t.format,c=t.merge;e=t.noop;var d=t.relativeLength,p=t.Series,u=t.seriesTypes,f=t.stableSort;t.distribute=function(e,i,s){function n(t,e){return t.target-e.target}var o,r=!0,h=e,l=[],c=0,d=h.reducedLen||i;for(o=e.length;o--;)c+=e[o].size;if(c>d){for(f(e,(function(t,e){return(e.rank||0)-(t.rank||0)})),c=o=0;c<=d;)c+=e[o].size,o++;l=e.splice(o-1,e.length)}for(f(e,n),e=e.map((function(t){return{size:t.size,targets:[t.target],align:a(t.align,.5)}}));r;){for(o=e.length;o--;)r=e[o],c=(Math.min.apply(0,r.targets)+Math.max.apply(0,r.targets))/2,r.pos=Math.min(Math.max(0,c-r.size*r.align),i-r.size);for(o=e.length,r=!1;o--;)0<o&&e[o-1].pos+e[o-1].size>e[o].pos&&(e[o-1].size+=e[o].size,e[o-1].targets=e[o-1].targets.concat(e[o].targets),e[o-1].align=.5,e[o-1].pos+e[o-1].size>i&&(e[o-1].pos=i-e[o-1].size),e.splice(o,1),r=!0)}h.push.apply(h,l),o=0,e.some((function(e){var n=0;if(e.targets.some((function(){if(h[o].pos=e.pos+n,Math.abs(h[o].pos-h[o].target)>s)return h.slice(0,o+1).forEach((function(t){delete t.pos})),h.reducedLen=(h.reducedLen||i)-.1*i,h.reducedLen>.1*i&&t.distribute(h,i,s),!0;n+=h[o].size,o++})))return!0})),f(h,n)},p.prototype.drawDataLabels=function(){function e(t,e){var i,s=[];if(o(t)&&!o(e))s=t.map((function(t){return c(t,e)}));else if(o(e)&&!o(t))s=e.map((function(e){return c(t,e)}));else if(o(t)||o(e))for(i=Math.max(t.length,e.length);i--;)s[i]=c(t[i],e[i]);else s=c(t,e);return s}var i=this,n=i.chart,d=i.options,p=d.dataLabels,u=i.points,f=i.hasRendered||0,g=t.animObject(d.animation).duration,m=Math.min(g,200),v=!n.renderer.forExport&&a(p.defer,0<m),x=n.renderer;if(p=e(e(n.options.plotOptions&&n.options.plotOptions.series&&n.options.plotOptions.series.dataLabels,n.options.plotOptions&&n.options.plotOptions[i.type]&&n.options.plotOptions[i.type].dataLabels),p),t.fireEvent(this,"drawDataLabels"),o(p)||p.enabled||i._hasPointLabels){var y=i.plotGroup("dataLabelsGroup","data-labels",v&&!f?"hidden":"inherit",p.zIndex||6);v&&(y.attr({opacity:+f}),f||setTimeout((function(){var t=i.dataLabelsGroup;t&&(i.visible&&y.show(!0),t[d.animation?"animate":"attr"]({opacity:1},{duration:m}))}),g-m)),u.forEach((function(t){h(e(p,t.dlOptions||t.options&&t.options.dataLabels)).forEach((function(e,o){var h=e.enabled&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){var i=e.filter;return!i||(e=i.operator,t=t[i.property],i=i.value,">"===e&&t>i||"<"===e&&t<i||">="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}(t,e),c=t.dataLabels?t.dataLabels[o]:t.dataLabel,p=t.connectors?t.connectors[o]:t.connector,u=a(e.distance,t.labelDistance),f=!c;if(h){var g=t.getLabelConfig(),m=a(e[t.formatPrefix+"Format"],e.format);g=s(m)?l(m,g,n.time):(e[t.formatPrefix+"Formatter"]||e.formatter).call(g,e),m=e.style;var v=e.rotation;n.styledMode||(m.color=a(e.color,m.color,i.color,"#000000"),"contrast"===m.color&&(t.contrastColor=x.getContrast(t.color||i.color),m.color=!s(u)&&e.inside||0>u||d.stacking?t.contrastColor:"#000000"),d.cursor&&(m.cursor=d.cursor));var b={r:e.borderRadius||0,rotation:v,padding:e.padding,zIndex:1};n.styledMode||(b.fill=e.backgroundColor,b.stroke=e.borderColor,b["stroke-width"]=e.borderWidth),r(b,(function(t,e){void 0===t&&delete b[e]}))}!c||h&&s(g)?h&&s(g)&&(c?b.text=g:(t.dataLabels=t.dataLabels||[],c=t.dataLabels[o]=v?x.text(g,0,-9999).addClass("highcharts-data-label"):x.label(g,0,-9999,e.shape,null,null,e.useHTML,null,"data-label"),o||(t.dataLabel=c),c.addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":""))),c.options=e,c.attr(b),n.styledMode||c.css(m).shadow(e.shadow),c.added||c.add(y),e.textPath&&!e.useHTML&&c.setTextPath(t.getDataLabelPath&&t.getDataLabelPath(c)||t.graphic,e.textPath),i.alignDataLabel(t,c,e,null,f)):(t.dataLabel=t.dataLabel&&t.dataLabel.destroy(),t.dataLabels&&(1===t.dataLabels.length?delete t.dataLabels:delete t.dataLabels[o]),o||delete t.dataLabel,p&&(t.connector=t.connector.de
1stroy(),t.connectors&&(1===t.connectors.length?delete t.connectors:delete t.connectors[o])))}))}))}t.fireEvent(this,"afterDrawDataLabels")},p.prototype.alignDataLabel=function(t,e,i,s,o){var r=this.chart,h=this.isCartesian&&r.inverted,l=a(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),c=a(t.plotY,-9999),d=e.getBBox(),p=i.rotation,u=i.align,f=this.visible&&(t.series.forceDL||r.isInsidePlot(l,Math.round(c),h)||s&&r.isInsidePlot(l,h?s.x+1:s.y+s.height-1,h)),g="justify"===a(i.overflow,"justify");if(f){var m=r.renderer.fontMetrics(r.styledMode?void 0:i.style.fontSize,e).b;s=n({x:h?this.yAxis.len-c:l,y:Math.round(h?this.xAxis.len-l:c),width:0,height:0},s),n(i,{width:d.width,height:d.height}),p?(g=!1,l=r.renderer.rotCorr(m,p),l={x:s.x+i.x+s.width/2+l.x,y:s.y+i.y+{top:0,middle:.5,bottom:1}[i.verticalAlign]*s.height},e[o?"attr":"animate"](l).attr({align:u}),c=180<(c=(p+720)%360)&&360>c,"left"===u?l.y-=c?d.height:0:"center"===u?(l.x-=d.width/2,l.y-=d.height/2):"right"===u&&(l.x-=d.width,l.y-=c?0:d.height),e.placed=!0,e.alignAttr=l):(e.align(i,null,s),l=e.alignAttr),g&&0<=s.height?this.justifyDataLabel(e,i,l,d,s,o):a(i.crop,!0)&&(f=r.isInsidePlot(l.x,l.y)&&r.isInsidePlot(l.x+d.width,l.y+d.height)),i.shape&&!p&&e[o?"attr":"animate"]({anchorX:h?r.plotWidth-t.plotY:t.plotX,anchorY:h?r.plotHeight-t.plotX:t.plotY})}f||(e.hide(!0),e.placed=!1)},p.prototype.justifyDataLabel=function(t,e,i,s,n,o){var r=this.chart,a=e.align,h=e.verticalAlign,l=t.box?0:t.padding||0,c=i.x+l;if(0>c){"right"===a?(e.align="left",e.inside=!0):e.x=-c;var d=!0}return(c=i.x+s.width-l)>r.plotWidth&&("left"===a?(e.align="right",e.inside=!0):e.x=r.plotWidth-c,d=!0),0>(c=i.y+l)&&("bottom"===h?(e.verticalAlign="top",e.inside=!0):e.y=-c,d=!0),(c=i.y+s.height-l)>r.plotHeight&&("top"===h?(e.verticalAlign="bottom",e.inside=!0):e.y=r.plotHeight-c,d=!0),d&&(t.placed=!o,t.align(e,null,n)),d},u.pie&&(u.pie.prototype.dataLabelPositioners={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,s){return t.getX(i<e.top+2||i>e.bottom-2?s:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,s){return t=t.getBBox().width,e?t+s:i-t-s},alignToConnectors:function(t,e,i,s){var n,o=0;return t.forEach((function(t){(n=t.dataLabel.getBBox().width)>o&&(o=n)})),e?o+s:i-o-s}},u.pie.prototype.drawDataLabels=function(){var e,n,o,r,h,l,d,u,f,g,m,v,x=this,y=x.data,b=x.chart,k=x.options.dataLabels,w=k.connectorPadding,M=b.plotWidth,S=b.plotHeight,A=b.plotLeft,T=Math.round(b.chartWidth/3),P=x.center,C=P[2]/2,E=P[1],L=[[],[]],O=[0,0,0,0],D=x.dataLabelPositioners;x.visible&&(k.enabled||x._hasPointLabels)&&(y.forEach((function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),p.prototype.drawDataLabels.apply(x),y.forEach((function(t){t.dataLabel&&(t.visible?(L[t.half].push(t),t.dataLabel._pos=null,!s(k.style.width)&&!s(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>T&&(t.dataLabel.css({width:.7*T}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),L.forEach((function(i,n){var o,c=i.length,p=[];if(c){if(x.sortByAngle(i,n-.5),0<x.maxLabelDistance){var v=Math.max(0,E-C-x.maxLabelDistance),y=Math.min(E+C+x.maxLabelDistance,b.plotHeight);i.forEach((function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,E-C-t.labelDistance),t.bottom=Math.min(E+C+t.labelDistance,b.plotHeight),o=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+o/2,size:o,rank:t.y},p.push(t.distributeBox))})),v=y+o-v,t.distribute(p,v,v/5)}for(m=0;m<c;m++){if(e=i[m],l=e.labelPosition,r=e.dataLabel,g=!1===e.visible?"hidden":"inherit",f=v=l.natural.y,p&&s(e.distributeBox)&&(void 0===e.distributeBox.pos?g="hidden":(d=e.distributeBox.size,f=D.radialDistributionY(e))),delete e.positionIndex,k.justify)u=D.justify(e,C,P);else switch(k.alignTo){case"connectors":u=D.alignToConnectors(i,n,M,A);break;case"plotEdges":u=D.alignToPlotEdges(r,n,M,A);break;default:u=D.radialDistributionX(x,e,f,v)}r._attr={visibility:g,align:l.alignment},r._pos={x:u+k.x+({left:w,right:-w}[l.alignment]||0),y:f+k.y-10},l.final.x=u,l.final.y=f,a(k.crop,!0)&&(h=r.getBBox().width,v=null,u-h<w&&1===n?(v=Math.round(h-u+w),O[3]=Math.max(v,O[3])):u+h>M-w&&0===n&&(v=Math.round(u+h-M+w),O[1]=Math.max(v,O[1])),0>f-d/2?O[0]=Math.max(Math.round(d/2-f),O[0]):f+d/2>S&&(O[2]=Math.max(Math.round(f+d/2-S),O[2])),r.sideOverflow=v)}}})),0===i(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),this.points.forEac
1h((function(t){var e;v=c(k,t.options.dataLabels),(n=a(v.connectorWidth,1))&&(o=t.connector,(r=t.dataLabel)&&r._pos&&t.visible&&0<t.labelDistance?(g=r._attr.visibility,(e=!o)&&(t.connector=o=b.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(x.dataLabelsGroup),b.styledMode||o.attr({"stroke-width":n,stroke:v.connectorColor||t.color||"#666666"})),o[e?"attr":"animate"]({d:t.getConnectorPath()}),o.attr("visibility",g)):o&&(t.connector=o.destroy()))})))},u.pie.prototype.placeDataLabels=function(){this.points.forEach((function(t){var e,i=t.dataLabel;i&&t.visible&&((e=i._pos)?(i.sideOverflow&&(i._attr.width=Math.max(i.getBBox().width-i.sideOverflow,0),i.css({width:i._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),i.shortened=!0),i.attr(i._attr),i[i.moved?"animate":"attr"](e),i.moved=!0):i&&i.attr({y:-9999})),delete t.distributeBox}),this)},u.pie.prototype.alignDataLabel=e,u.pie.prototype.verifyDataLabelOverflow=function(t){var e=this.center,i=this.options,s=i.center,n=i.minSize||80,o=null!==i.size;if(!o){if(null!==s[0])var r=Math.max(e[2]-Math.max(t[1],t[3]),n);else r=Math.max(e[2]-t[1]-t[3],n),e[0]+=(t[3]-t[1])/2;null!==s[1]?r=Math.max(Math.min(r,e[2]-Math.max(t[0],t[2])),n):(r=Math.max(Math.min(r,e[2]-t[0]-t[2]),n),e[1]+=(t[0]-t[2])/2),r<e[2]?(e[2]=r,e[3]=Math.min(d(i.innerSize||0,r),r),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):o=!0}return o}),u.column&&(u.column.prototype.alignDataLabel=function(t,e,i,s,n){var o=this.chart.inverted,r=t.series,h=t.dlBox||t.shapeArgs,l=a(t.below,t.plotY>a(this.translatedThreshold,r.yAxis.len)),d=a(i.inside,!!this.options.stacking);h&&(0>
1(s=c(h)).y&&(s.height+=s.y,s.y=0),0<(h=s.y+s.height-r.yAxis.len)&&(s.height-=h),o&&(s={x:r.yAxis.len-s.y-s.height,y:r.xAxis.len-s.x-s.width,width:s.height,height:s.width}),d||(o?(s.x+=l?0:s.width,s.width=0):(s.y+=l?s.height:0,s.height=0))),i.align=a(i.align,!o||d?"center":l?"right":"left"),i.verticalAlign=a(i.verticalAlign,o||d?"middle":l?"top":"bottom"),p.prototype.alignDataLabel.call(this,t,e,i,s,n),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})})})),e(i,"modules/overlapping-datalabels.src.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.isArray,s=e.objectEach,n=e.pick;e=t.Chart;var o=t.addEvent,r=t.fireEvent;o(e,"render",(function(){var t=[];(this.labelCollectors||[]).forEach((function(e){t=t.concat(e())})),(this.yAxis||[]).forEach((function(e){e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&s(e.stacks,(function(e){s(e,(function(e){t.push(e.label)}))}))})),(this.series||[]).forEach((function(e){var s=e.options.dataLabels;e.visible&&(!1!==s.enabled||e._hasPointLabels)&&e.points.forEach((function(e){e.visible&&(i(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[]).forEach((function(i){var s=i.options;i.labelrank=n(s.labelrank,e.labelrank,e.shapeArgs&&e.shapeArgs.height),s.allowOverlap||t.push(i)}))}))})),this.hideOverlappingLabels(t)})),e.prototype.hideOverlappingLabels=function(t){var e,i,s,n=this,o=t.length,a=n.renderer,h=function(t){var e=t.box?0:t.padding||0,i=0;if(t&&(!t.alignAttr||t.placed)){var s=t.attr("x"),n=t.attr("y");return s="number"==typeof s&&"number"==typeof n?{x:s,y:n}:t.alignAttr,n=t.parentGroup,t.width||(i=t.getBBox(),t.width=i.width,t.height=i.height,i=a.fontMetrics(null,t.element).h),{x:s.x+(n.translateX||0)+e,y:s.y+(n.translateY||0)+e-i,width:t.width-2*e,height:t.height-2*e}}};for(i=0;i<o;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=h(e));for(t.sort((function(t,e){return(e.labelrank||0)-(t.labelrank||0)})),i=0;i<o;i++){var l=(h=t[i])&&h.absoluteBox;for(e=i+1;e<o;++e){var c=(s=t[e])&&s.absoluteBox;!l||!c||h===s||0===h.newOpacity||0===s.newOpacity||c.x>l.x+l.width||c.x+c.width<l.x||c.y>l.y+l.height||c.y+c.height<l.y||((h.labelrank<s.labelrank?h:s).newOpacity=0)}}t.forEach((function(t){var e;if(t){var i=t.newOpacity;t.oldOpacity!==i&&(t.alignAttr&&t.placed?(i?t.show(!0):e=function(){t.hide(!0),t.placed=!1},t.alignAttr.opacity=i,t[t.isOld?"animate":"attr"](t.alignAttr,null,e),r(n,"afterHideOverlappingLabels")):t.attr({opacity:i})),t.isOld=!0}}))}})),e(i,"parts/Interaction.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.extend,n=e.isArray,o=e.isObject,r=e.objectEach,a=e.pick,h=t.addEvent;e=t.Chart;var l=t.createElement,c=t.css,d=t.defaultOptions,p=t.defaultPlotOptions,u=t.fireEvent,f=t.hasTouch,g=t.Legend,m=t.merge,v=t.Point,x=t.Series,y=t.seriesTypes,b=t.svg,k=t.TrackerMixin={drawTrackerPoint:function(){var t,e=this,i=e.chart,s=i.pointer,o=function(t){var e=s.getPointFromEvent(t);void 0!==e&&(s.isDirectTouch=!0,e.onMouseOver(t))};e.points.forEach((function(e){t=n(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach((function(t){t.div?t.div.point=e:t.element.point=e}))})),e._hasTracking||(e.trackerGroups.forEach((function(t){e[t]&&(e[t].addClass("highcharts-tracker").on("mouseover",o).on("mouseout",(function(t){s.onTrackerMouseOut(t)})),f&&e[t].on("touchstart",o),!i.styledMode&&e.options.cursor&&e[t].css(c).css({cursor:e.options.cursor}))})),e._hasTracking=!0),u(this,"afterDrawTracker")},drawTrackerGraph:function(){var t,e=this,i=e.options,s=i.trackByArea,n=[].concat(s?e.areaPath:e.graphPath),o=n.length,r=e.chart,a=r.pointer,h=r.renderer,l=r.options.tooltip.snap,c=e.tracker,d=function(){r.hoverSeries!==e&&e.onMouseOver()},p="rgba(192,192,192,"+(b?1e-4:.002)+")";if(o&&!s)for(t=o+1;t--;)"M"===n[t]&&n.splice(t+1,0,n[t+1]-l,n[t+2],"L"),(t&&"M"===n[t]||t===o)&&n.splice(t,0,"L",n[t-2]+l,n[t-1]);c?c.attr({d:n}):e.graph&&(e.tracker=h.path(n).attr({visibility:e.visible?"visible":"hidden",zIndex:2}).addClass(s?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),r.styledMode||e.tracker.attr({"stroke-linejoin":"round",stroke:p,fill:s?p:"none","stroke-width":e.graph.strokeWidth()+(s?0:2*l)}
1),[e.tracker,e.markerGroup].forEach((function(t){t.addClass("highcharts-tracker").on("mouseover",d).on("mouseout",(function(t){a.onTrackerMouseOut(t)})),i.cursor&&!r.styledMode&&t.css({cursor:i.cursor}),f&&t.on("touchstart",d)}))),u(this,"afterDrawTracker")}};y.column&&(y.column.prototype.drawTracker=k.drawTrackerPoint),y.pie&&(y.pie.prototype.drawTracker=k.drawTrackerPoint),y.scatter&&(y.scatter.prototype.drawTracker=k.drawTrackerPoint),s(g.prototype,{setItemEvents:function(t,e,i){var s=this,n=s.chart.renderer.boxWrapper,o=t instanceof v,r="highcharts-legend-"+(o?"point":"series")+"-active",a=s.chart.styledMode;(i?e:t.legendGroup).on("mouseover",(function(){t.visible&&s.allItems.forEach((function(e){t!==e&&e.setState("inactive",!o)})),t.setState("hover"),t.visible&&n.addClass(r),a||e.css(s.options.itemHoverStyle)})).on("mouseout",(function(){s.chart.styledMode||e.css(m(t.visible?s.itemStyle:s.itemHiddenStyle)),s.allItems.forEach((function(e){t!==e&&e.setState("",!o)})),n.removeClass(r),t.setState()})).on("click",(function(e){var i=function(){t.setVisible&&t.setVisible(),s.allItems.forEach((function(e){t!==e&&e.setState(t.visible?"inactive":"",!o)}))};n.removeClass(r),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,i):u(t,"legendItemClick",e,i)}))},createCheckboxForItem:function(t){t.checkbox=l("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),h(t.checkbox,"click",(function(e){u(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},(function(){t.select()}))}))}}),s(e.prototype,{showResetZoom:function(){function t(){e.zoomOut()}var e=this,i=d.lang,s=e.options.chart.resetZoomButton,n=s.theme,o=n.states,r="chart"===s.relativeTo||"spaceBox"===s.relativeTo?null:"plotBox";u(this,"beforeShowResetZoom",null,(function(){e.resetZoomButton=e.renderer.button(i.resetZoom,null,null,t,n,o&&o.hover).attr({align:s.position.align,title:i.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(s.position,!1,r)})),u(this,"afterShowResetZoom")},zoomOut:function(){u(this,"selection",{resetSelection:!0}
1,this.zoom)},zoom:function(t){var e,s=this,n=s.pointer,r=!1,h=s.inverted?n.mouseDownX:n.mouseDownY;!t||t.resetSelection?(s.axes.forEach((function(t){e=t.zoom()})),n.initiated=!1):t.xAxis.concat(t.yAxis).forEach((function(t){var o=t.axis,a=s.inverted?o.left:o.top,l=s.inverted?a+o.width:a+o.height,c=o.isXAxis,d=!1;(!c&&h>=a&&h<=l||c||!i(h))&&(d=!0),n[c?"zoomX":"zoomY"]&&d&&(e=o.zoom(t.min,t.max),o.displayBtn&&(r=!0))}));var l=s.resetZoomButton;r&&!l?s.showResetZoom():!r&&o(l)&&(s.resetZoomButton=l.destroy()),e&&s.redraw(a(s.options.chart.animation,t&&t.animation,100>s.pointCount))},pan:function(t,e){var i,s=this,n=s.hoverPoints;u(this,"pan",{originalEvent:t},(function(){n&&n.forEach((function(t){t.setState()})),("xy"===e?[1,0]:[1]).forEach((function(e){var n=(e=s[e?"xAxis":"yAxis"][0]).horiz,o=t[n?"chartX":"chartY"],r=s[n=n?"mouseDownX":"mouseDownY"],a=(e.pointRange||0)/2,h=e.reversed&&!s.inverted||!e.reversed&&s.inverted?-1:1,l=e.getExtremes(),c=e.toValue(r-o,!0)+a*h,d=(h=e.toValue(r+e.len-o,!0)-a*h)<c;r=d?h:c,c=d?c:h,0<(d=(h=Math.min(l.dataMin,a?l.min:e.toValue(e.toPixels(l.min)-e.minPixelPadding)))-r)&&(c+=d,r=h),0<(d=c-(a=Math.max(l.dataMax,a?l.max:e.toValue(e.toPixels(l.max)+e.minPixelPadding))))&&(c=a,r-=d),e.series.length&&r!==l.min&&c!==l.max&&(e.setExtremes(r,c,!1,!1,{trigger:"pan"}),i=!0),s[n]=o})),i&&s.redraw(!1),c(s.container,{cursor:"move"})}))}}),s(v.prototype,{select:function(t,e){var i=this,s=i.series,n=s.chart;this.selectedStaging=t=a(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},(function(){i.selected=i.options.selected=t,s.options.data[s.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||n.getSelectedPoints().forEac
1h((function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(n.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))}))})),delete this.selectedStaging},onMouseOver:function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},onMouseOut:function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach((function(t){t.setState()})),t.hoverPoints=t.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var e=this,i=m(e.series.options.point,e.options).events;e.events=i,r(i,(function(i,s){t.isFunction(i)&&h(e,s,i)})),this.hasImportedEvents=!0}},setState:function(t,e){var i,n=this.series,o=this.state,r=n.options.states[t||"normal"]||{},h=p[n.type].marker&&n.options.marker,l=h&&!1===h.enabled,c=h&&h.states&&h.states[t||"normal"]||{},d=!1===c.enabled,f=n.stateMarkerGraphic,g=this.marker||{},m=n.chart,v=n.halo,x=h&&n.markerAttribs;if(!((t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===r.enabled||t&&(d||l&&!1===c.enabled)||t&&g.states&&g.states[t]&&!1===g.states[t].enabled)){if(this.state=t,x&&(i=n.markerAttribs(this,t)),this.graphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),t&&this.graphic.addClass("highcharts-point-"+t),!m.styledMode){var y=n.pointAttribs(this,t),b=a(m.options.chart.animation,r.animation);n.options.inactiveOtherPoints&&((this.dataLabels||[]).forEach((function(t){t&&t.animate({opacity:y.opacity},b)})),this.connector&&this.connector.animate({opacity:y.opacity},b)),this.graphic.animate(y,b)}i&&this.graphic.animate(i,a(m.options.chart.animation,c.animation,h.animation)),f&&f.hide()}else t&&c&&(o=g.symbol||n.symbol,f&&f.currentSymbol!==o&&(f=f.destroy()),i&&(f?f[e?"animate":"attr"]({x:i.x,y:i.y}):o&&(n.stateMarkerGraphic=f=m.renderer.symbol(o,i.x,i.y,i.width,i.height).add(n.markerGroup),f.currentSymbol=o)),!m.styledMode&&f&&f.attr(n.pointAttribs(this,t))),f&&(f[t&&this.isInside?"show":"hide"](),f.element.point=this);t=r.halo,r=(f=this.graphic||f)&&f.visibility||"inherit",t&&t.size&&f&&"hidden"!==r?(v||(n.halo=v=m.renderer.path().add(f.parentGroup)),v.show()[e?"animate":"attr"]({d:this.haloPath(t.size)}),v.attr({class:"highcharts-halo highcharts-color-"+a(this.colorIndex,n.colorIndex)+(this.className?" "+this.className:""),visibility:r,zIndex:-1}),v.point=this,m.styledMode||v.attr(s({fill:this.color||n.color,"fill-opacity":t.opacity},t.attributes))):v&&v.point&&v.point.haloPath&&v.animate({d:v.point.haloPath(0)},null,v.hide),u(this,"afterSetState")}},haloPath:function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)}}),s(x.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&u(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,i=e.tooltip,s=e.hoverPoint;e.hoverSeries=null,s&&s.onMouseOut(),this&&t.events.mouseOut&&u(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEach((function(t){t.setState("",!0)}))},setState:function(t,e){var i=this,s=i.options,n=i.graph,o=s.inactiveOtherPoints,r=s.states,h=s.lineWidth,l=s.opacity,c=a(r[t||"normal"]&&r[t||"normal"].animation,i.chart.options.chart.animation);if(s=0,t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach((function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))})),i.state=t,!i.chart.styledMode)){if(r[t]&&!1===r[t].enabled)return;if(t&&(h=r[t].lineWidth||h+(r[t].lineWidthPlus||0),l=a(r[t].opacity,l)),n&&!n.dashstyle)for(r={"stroke-width":h},n.animate(r,c);i["zone-graph-"+s];)i["zone-graph-"+s].attr(r),s+=1;o||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach((function(t){t&&t.animate({opacity:l},c)}))}e&&o&&i.points&&i.setAllPointsToState(t)}
1,setAllPointsToState:function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},setVisible:function(t,e){var i=this,s=i.chart,n=i.legendItem,o=s.options.chart.ignoreHiddenSeries,r=i.visible,a=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!r:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){i[t]&&i[t][a]()})),s.hoverSeries!==i&&(s.hoverPoint&&s.hoverPoint.series)!==i||i.onMouseOut(),n&&s.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&s.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),i.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),o&&(s.isDirtyBox=!0),u(i,a),!1!==e&&s.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),u(this,t?"select":"unselect")},drawTracker:k.drawTrackerGraph})})),e(i,"parts/Responsive.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.isArray,s=e.isObject,n=e.objectEach,o=e.pick,r=e.splat;(e=t.Chart).prototype.setResponsive=function(e,i){var s=this.options.responsive,n=[],o=this.currentResponsive;
1!i&&s&&s.rules&&s.rules.forEach((function(e){void 0===e._id&&(e._id=t.uniqueKey()),this.matchResponsiveRule(e,n)}),this),i=t.merge.apply(0,n.map((function(e){return t.find(s.rules,(function(t){return t._id===e})).chartOptions}))),i.isResponsiveOptions=!0,(n=n.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,e,!0),n?((o=this.currentOptions(i)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:n,mergedOptions:i,undoOptions:o},this.update(i,e,!0)):this.currentResponsive=void 0)},e.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=o(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=o(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=o(i.minWidth,0)&&this.chartHeight>=o(i.minHeight,0)}).call(this)&&e.push(t._id)},e.prototype.currentOptions=function(t){var e=this,o={};return function t(o,a,h,l){var c;n(o,(function(n,o){if(!l&&-1<e.collectionsWithUpdate.indexOf(o))for(n=r(n),h[o]=[],c=0;c<n.length;c++)a[o][c]&&(h[o][c]={},t(n[c],a[o][c],h[o][c],l+1));else s(n)?(h[o]=i(n)?[]:{},t(n,a[o]||{},h[o],l+1)):h[o]=void 0===a[o]?null:a[o]}))}(t,this.options,o,0),o}})),e(i,"masters/highcharts.src.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){return(0,e.extend)(t,{arrayMax:e.arrayMax,arrayMin:e.arrayMin,attr:e.attr,defined:e.defined,erase:e.erase,extend:e.extend,isArray:e.isArray,isClass:e.isClass,isDOMElement:e.isDOMElement,isNumber:e.isNumber,isObject:e.isObject,isString:e.isString,objectEach:e.objectEach,pick:e.pick,pInt:e.pInt,setAnimation:e.setAnimation,splat:e.splat,syncTimeout:e.syncTimeout}),t})),i["masters/highcharts.src.js"]._modules=i,i["masters/highcharts.src.js"]},t.exports?(o.default=o,t.exports=n.document?o(n):o):void 0===(s=function(){return o(n)}.call(e,i,e,t))||(t.exports=s)}}]);
2//# sourceMappingURL=1921.8964c0.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.