(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22fda1"],{ea7f:function(t,e,i){var s;(function(o,r){t.exports?(r["default"]=r,t.exports=o.document?r(o):r):(s=function(){return r(o)}.call(e,i,e,t),void 0===s||(t.exports=s))})("undefined"!==typeof window?window:this,(function(t){function e(t,e,i,s){t.hasOwnProperty(e)||(t[e]=s.apply(null,i))}var i={};return e(i,"Core/Globals.js",[],(function(){var e="undefined"!==typeof t?t:"undefined"!==typeof window?window:{},i=e.document,s=e.navigator&&e.navigator.userAgent||"",o=i&&i.createElementNS&&!!i.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r=/(edge|msie|trident)/i.test(s)&&!e.opera,n=-1!==s.indexOf("Firefox"),a=-1!==s.indexOf("Chrome"),h=n&&4>parseInt(s.split("Firefox/")[1],10);return{product:"Highcharts",version:"8.2.2",deg2rad:2*Math.PI/360,doc:i,hasBidiBug:h,hasTouch:!!e.TouchEvent,isMS:r,isWebKit:-1!==s.indexOf("AppleWebKit"),isFirefox:n,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:o,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}})),e(i,"Core/Utilities.js",[i["Core/Globals.js"]],(function(t){function e(t,i,s,o){var r=i?"Highcharts error":"Highcharts warning";32===t&&(t=r+": Deprecated member");var n=g(t),a=n?r+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(r=function(){if(i)throw Error(a);l.console&&-1===e.messages.indexOf(a)&&console.log(a)},"undefined"!==typeof o){var h="";n&&(a+="?"),Y(o,(function(t,e){h+="\n - "+e+": "+t,n&&(a+=encodeURI(e)+"="+encodeURI(t))})),a+=h}s?_(s,"displayError",{code:t,message:a,params:o},r):r(),e.messages.push(a)}function i(){var t,e=arguments,i={},o=function(t,e){return"object"!==typeof t&&(t={}),Y(e,(function(i,r){!s(i,!0)||f(i)||u(i)?t[r]=e[r]:t[r]=o(t[r]||{},i)})),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var r=e.length;for(t=0;tt&&-1/0=i&&(e=[1/i]))),s=0;s=t||!o&&a<=(e[s]+(e[s+1]||e[s]))/2));s++);return z(n*i,-Math.round(Math.log(.001)/Math.LN10))},E=t.stableSort=function(t,e){var i,s,o=t.length;for(s=0;si&&(i=t[e]);return i},B=t.destroyObjectProperties=function(t,e){Y(t,(function(i,s){i&&i!==e&&i.destroy&&i.destroy(),delete t[s]}))},j=t.discardElement=function(e){var i=t.garbageBin;i||(i=S("div")),e&&i.appendChild(e),i.innerHTML=""},z=t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},R=t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},N=t.numberFormat=function(e,i,s,o){e=+e||0,i=+i;var n=t.defaultOptions.lang,a=(e.toString().split(".")[1]||"").split("e")[0].length,h=e.toString().split("e");if(-1===i)i=Math.min(a,20);else if(g(i)){if(i&&h[1]&&0>h[1]){var l=i+ +h[1];0<=l?(h[0]=(+h[0]).toExponential(l).split("e")[0],i=l):(h[0]=h[0].split(".")[0]||0,e=20>i?(h[0]*Math.pow(10,h[1])).toFixed(i):0,h[1]=0)}}else i=2;var d=(Math.abs(h[1]?h[0]:e)+Math.pow(10,-Math.max(i,a)-1)).toFixed(i);return a=String(c(d)),l=3e?"-":"")+(l?a.substr(0,l)+o:""),e+=a.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+o),i&&(e+=s+d.slice(-i)),h[1]&&0!==+e&&(e+="e"+h[1]),e};Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var W=t.getStyle=function(i,s,o){return"width"===s?(s=Math.min(i.offsetWidth,i.scrollWidth),o=i.getBoundingClientRect&&i.getBoundingClientRect().width,o=s-1&&(s=Math.floor(o)),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")):(l.getComputedStyle||e(27,!0),(i=l.getComputedStyle(i,void 0))&&(i=i.getPropertyValue(s),r(o,"opacity"!==s)&&(i=c(i))),i)},G=t.inArray=function(t,i,s){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,s)},X=t.find=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,s=t.length;for(i=0;ie?t>16,(65280&t)>>8,255&t,1]:4===o&&(i=[(3840&t)>>4|(3840&t)>>8,(240&t)>>4|240&t,(15&t)<<4|15&t,1])}if(!i)for(s=this.parsers.length;s--&&!i;){var r=this.parsers[s];(o=r.regex.exec(t))&&(i=r.parse(o))}}this.rgba=i||[]},e.prototype.get=function(t){var e=this.input,o=this.rgba;if("undefined"!==typeof this.stops){var r=s(e);r.stops=[].concat(r.stops),this.stops.forEach((function(e,i){r.stops[i]=[r.stops[i][0],e.get(t)]}))}else r=o&&i(o[0])?"rgb"===t||!t&&1===o[3]?"rgb("+o[0]+","+o[1]+","+o[2]+")":"a"===t?o[3]:"rgba("+o.join(",")+")":e;return r},e.prototype.brighten=function(t){var e,s=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++)s[e]+=o(255*t),0>s[e]&&(s[e]=0),255s)for(var o=0;o=n+this.startTime){this.now=this.end,this.pos=1,this.update();var h=a[this.prop]=!0;o(a,(function(t){!0!==t&&(h=!1)})),h&&r&&r.call(s),t=!1}else this.pos=i.easing((e-this.startTime)/n),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},e.prototype.initPath=function(t,e,i){function o(t,e){for(;t.lengths.width)&&(s={width:0,height:0})}else s=this.htmlGetBBox();if(o.isSVG&&(e=s.width,o=s.height,d&&(s.height=o={"11px,17":14,"13px,20":16}[n&&n.fontSize+","+Math.round(o)]||o),i&&(n=i*a,s.width=Math.abs(o*Math.sin(n))+Math.abs(e*Math.cos(n)),s.height=Math.abs(o*Math.cos(n))+Math.abs(e*Math.sin(n)))),u&&0]*>/g,"").replace(/</g,"<").replace(/>/g,">")))},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateShadows=function(t,e,i){var s=this.shadows;if(s)for(var o=s.length;o--;)i.call(s[o],"height"===t?Math.max(e-(s[o].cutHeight||0),0):"d"===t?this.d:e,t,s[o])},t.prototype.updateTransform=function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,s=this.scaleY,o=this.inverted,r=this.rotation,n=this.matrix,a=this.element;o&&(t+=this.width,e+=this.height),t=["translate("+t+","+e+")"],v(n)&&t.push("matrix("+n.join(",")+")"),o?t.push("rotate(90) scale(-1,1)"):r&&t.push("rotate("+r+" "+P(this.rotationOriginX,a.getAttribute("x"),0)+" "+P(this.rotationOriginY,a.getAttribute("y")||0)+")"),(v(i)||v(s))&&t.push("scale("+P(i,1)+" "+P(s,1)+")"),t.length&&a.setAttribute("transform",t.join(" "))},t.prototype.visibilitySetter=function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var i=this.renderer,s=this.parentGroup,o=(s||i).element||i.box,r=this.element,n=!1;i=o===i.box;var a,h=this.added;if(v(t)?(r.setAttribute("data-z-index",t),t=+t,this[e]===t&&(h=!1)):v(this[e])&&r.removeAttribute("data-z-index"),this[e]=t,h){for((t=this.zIndex)&&s&&(s.handleZ=!0),e=o.childNodes,a=e.length-1;0<=a&&!n;a--){s=e[a],h=s.getAttribute("data-z-index");var l=!v(h);s!==r&&(0>t&&l&&!i&&!a?(o.insertBefore(r,e[a]),n=!0):(L(h)<=t||l&&(!v(t)||0<=t))&&(o.insertBefore(r,e[a+1]||null),n=!0))}n||(o.insertBefore(r,e[i?3:0]||null),n=!0)}return n},t}(),t.prototype["stroke-widthSetter"]=t.prototype.strokeSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},i.SVGElement=t,i.SVGElement})),e(i,"Core/Renderer/SVG/SVGLabel.js",[i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e){var i=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),s=e.defined,o=e.extend,r=e.isNumber,n=e.merge,a=e.removeEvent;return function(e){function h(t,i,s,o,r,n,a,l,c,d){var p=e.call(this)||this;if(p.init(t,"g"),p.textStr=i,p.x=s,p.y=o,p.anchorX=n,p.anchorY=a,p.baseline=c,p.className=d,"button"!==d&&p.addClass("highcharts-label"),d&&p.addClass("highcharts-"+d),p.text=t.text("",0,0,l).attr({zIndex:1}),"string"===typeof r){var u=/^url\((.*?)\)$/.test(r);(p.renderer.symbols[r]||u)&&(p.symbolKey=r)}return p.bBox=h.emptyBBox,p.padding=3,p.paddingLeft=0,p.baselineOffset=0,p.needsBox=t.styledMode||u,p.deferredAttr={},p.alignFactor=0,p}return i(h,e),h.prototype.alignSetter=function(t){t={left:0,center:.5,right:1}[t],t!==this.alignFactor&&(this.alignFactor=t,this.bBox&&r(this.xSetting)&&this.attr({x:this.xSetting}))},h.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},h.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},h.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},h.prototype.css=function(e){if(e){var i={};e=n(e),h.textProps.forEach((function(t){"undefined"!==typeof e[t]&&(i[t]=e[t],delete e[t])})),this.text.css(i);var s="fontSize"in i||"fontWeight"in i;("width"in i||s)&&(this.updateBoxSize(),s&&this.updateTextPadding())}return t.prototype.css.call(this,e)},h.prototype.destroy=function(){a(this.element,"mouseenter"),a(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},h.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},h.prototype.getBBox=function(){var t=this.bBox,e=this.padding;return{width:t.width+2*e,height:t.height+2*e,x:t.x-e,y:t.y-e}},h.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},h.prototype.heightSetter=function(t){this.heightSetting=t},h.prototype.on=function(e,i){var s=this,o=s.text,r=o&&"SPAN"===o.element.tagName?o:void 0;if(r){var n=function(t){("mouseenter"===e||"mouseleave"===e)&&t.relatedTarget instanceof Element&&(s.element.contains(t.relatedTarget)||r.element.contains(t.relatedTarget))||i.call(s.element,t)};r.on(e,n)}return t.prototype.on.call(s,e,n||i),s},h.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:s(t)?t:"",x:this.x,y:this.y}),this.box&&s(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},h.prototype.paddingSetter=function(t){s(t)&&t!==this.padding&&(this.padding=t,this.updateTextPadding())},h.prototype.paddingLeftSetter=function(t){s(t)&&t!==this.paddingLeft&&(this.paddingLeft=t,this.updateTextPadding())},h.prototype.rSetter=function(t,e){this.boxAttr(e,t)},h.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},h.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},h.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},h.prototype["text-alignSetter"]=function(t){this.textAlign=t},h.prototype.textSetter=function(t){"undefined"!==typeof t&&this.text.attr({text:t}),this.updateBoxSize(),this.updateTextPadding()},h.prototype.updateBoxSize=function(){var t=this.text.element.style,e={},i=this.padding,n=this.paddingLeft,a=r(this.widthSetting)&&r(this.heightSetting)&&!this.textAlign||!s(this.text.textStr)?h.emptyBBox:this.text.getBBox();this.width=(this.widthSetting||a.width||0)+2*i+n,this.height=(this.heightSetting||a.height||0)+2*i,this.baselineOffset=i+Math.min(this.renderer.fontMetrics(t&&t.fontSize,this.text).b,a.height||1/0),this.needsBox&&(this.box||(t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),t.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this),t=this.getCrispAdjust(),e.x=t,e.y=(this.baseline?-this.baselineOffset:0)+t),e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(o(e,this.deferredAttr)),this.deferredAttr={}),this.bBox=a},h.prototype.updateTextPadding=function(){var t=this.text,e=this.baseline?0:this.baselineOffset,i=this.paddingLeft+this.padding;s(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(i+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),i===t.x&&e===t.y||(t.attr("x",i),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0),this.updateBoxSize()),"undefined"!==typeof e&&t.attr("y",e)),t.x=i,t.y=e},h.prototype.widthSetter=function(t){this.widthSetting=r(t)?t:void 0},h.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*((this.widthSetting||this.bBox.width)+2*this.padding),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},h.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},h.emptyBBox={width:0,height:0,x:0,y:0},h.textProps="color cursor direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),h}(t)})),e(i,"Core/Renderer/SVG/SVGRenderer.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGLabel.js"],i["Core/Utilities.js"]],(function(t,e,i,s,o){var r=o.addEvent,n=o.attr,a=o.createElement,h=o.css,l=o.defined,c=o.destroyObjectProperties,d=o.extend,p=o.isArray,u=o.isNumber,f=o.isObject,g=o.isString,m=o.merge,y=o.objectEach,v=o.pick,x=o.pInt,b=o.splat,k=o.uniqueKey,M=e.charts,S=e.deg2rad,w=e.doc,C=e.isFirefox,A=e.isMS,T=e.isWebKit;o=e.noop;var P=e.svg,L=e.SVG_NS,O=e.symbolSizes,E=e.win,D=function(){function e(t,e,i,s,o,r,n){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,i,s,o,r,n)}return e.prototype.init=function(t,e,i,s,o,a,l){var c,d=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"});l||d.css(this.getStyle(s)),s=d.element,t.appendChild(s),n(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&n(s,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=s,this.boxWrapper=d,this.alignedObjects=[],this.url=(C||T)&&w.getElementsByTagName("base").length?E.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(w.createTextNode("Created with Highcharts 8.2.2")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=o,this.styledMode=l,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),C&&t.getBoundingClientRect&&(e=function(){h(t,{left:0,top:0}),c=t.getBoundingClientRect(),h(t,{left:Math.ceil(c.left)-c.left+"px",top:Math.ceil(c.top)-c.top+"px"})},e(),this.unSubPixelFix=r(E,"resize",e))},e.prototype.definition=function(t){function e(t,s){var o;return b(t).forEach((function(t){var r=i.createElement(t.tagName),n={};y(t,(function(t,e){"tagName"!==e&&"children"!==e&&"textContent"!==e&&(n[e]=t)})),r.attr(n),r.add(s||i.defs),t.textContent&&r.element.appendChild(w.createTextNode(t.textContent)),e(t.children||[],r),o=r})),o}var i=this;return e(t)},e.prototype.getStyle=function(t){return this.style=d({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},e.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},e.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},e.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),c(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},e.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},e.prototype.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]}},e.prototype.truncate=function(t,e,i,s,o,r,n){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(r,a){if(a=a||r,"undefined"===typeof f[a])if(e.getSubStringLength)try{f[a]=o+e.getSubStringLength(0,s?a+1:a)}catch(h){}else l.getSpanWidth&&(g(n(i||s,r)),f[a]=o+l.getSpanWidth(t,e));return f[a]};t.rotation=0;var y=m(e.textContent.length);if(h=o+y>r){for(;d<=p;)u=Math.ceil((d+p)/2),s&&(a=n(s,u)),y=m(u,a&&a.length-1),d===p?d=p+1:y>r?p=u-1:d=u;0===p?g(""):i&&p===i.length-1||g(a||n(i||s,u))}return s&&s.splice(0,u),t.actualWidth=y,t.rotation=c,h},e.prototype.buildText=function(t){var e,i,s=t.element,o=this,r=o.forExport,a=v(t.textStr,"").toString(),l=-1!==a.indexOf("<"),c=s.childNodes,d=n(s,"x"),p=t.styles,u=t.textWidth,f=p&&p.lineHeight,m=p&&p.textOutline,b=p&&"ellipsis"===p.textOverflow,k=p&&"nowrap"===p.whiteSpace,M=p&&p.fontSize,S=c.length;p=u&&!t.added&&this.box;var C=function(t){var e;return o.styledMode||(e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:M||o.style.fontSize||12),f?x(f):o.fontMetrics(e,t.getAttribute("style")?t:s).h},A=function(t,e){return y(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(t=t.substring(i,t.indexOf(">")-i),i=t.indexOf(e+"="),-1!==i&&(i=i+e.length+1,e=t.charAt(i),'"'===e||"'"===e))return t=t.substring(i+1),t.substring(0,t.indexOf(e))},O=//g,E=[a,b,k,f,m,M,u].join();if(E!==t.textCache){for(t.textCache=E;S--;)s.removeChild(c[S]);l||m||b||u||-1!==a.indexOf(" ")&&(!k||O.test(a))?(p&&p.appendChild(s),l?(a=o.styledMode?a.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,''):a.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,''),a=a.replace(//g,"").split(O)):a=[a],a=a.filter((function(t){return""!==t})),a.forEach((function(a,l){var c=0,p=0;a=a.replace(/^\s+|\s+$/g,"").replace(//g,"|||");var f=a.split("|||");f.forEach((function(a){if(""!==a||1===f.length){var g,m,y={},v=w.createElementNS(o.SVG_NS,"tspan");if((g=T(a,"class"))&&n(v,"class",g),(g=T(a,"style"))&&(g=g.replace(/(;| |^)color([ :])/,"$1fill$2"),n(v,"style",g)),(m=T(a,"href"))&&!r&&-1===m.split(":")[0].toLowerCase().indexOf("javascript")){var x=w.createElementNS(o.SVG_NS,"a");n(x,"href",m),n(v,"class","highcharts-anchor"),x.appendChild(v),o.styledMode||h(v,{cursor:"pointer"})}if(a=A(a.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" ")," "!==a){if(v.appendChild(w.createTextNode(a)),c?y.dx=0:l&&null!==d&&(y.x=d),n(v,y),s.appendChild(x||v),!c&&i&&(!P&&r&&h(v,{display:"block"}),n(v,"dy",C(v))),u){var S=a.replace(/([^\^])-/g,"$1- ").split(" ");if(y=!k&&(1t?t+3:Math.round(1.2*t),{h:e,b:Math.round(.8*e),f:t}},e.prototype.rotCorr=function(t,e,i){var s=t;return e&&i&&(s=Math.max(s*Math.cos(e*S),4)),{x:-t/3*Math.sin(e*S),y:s}},e.prototype.pathToSegments=function(t){for(var e=[],i=[],s={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},o=0;o":">","'":"'",'"':"""},D.prototype.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],["L",t+i,e+s],["L",t,e+s],["Z"]]},triangle:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s],["L",t,e+s],["Z"]]},"triangle-down":function(t,e,i,s){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+s],["Z"]]},diamond:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s/2],["L",t+i/2,e+s],["L",t,e+s/2],["Z"]]},arc:function(t,e,i,s,o){var r=[];if(o){var n=o.start||0,a=o.end||0,h=o.r||i;i=o.r||s||i;var c=.001>Math.abs(a-n-2*Math.PI);a-=.001,s=o.innerR,c=v(o.open,c);var d=Math.cos(n),p=Math.sin(n),u=Math.cos(a),f=Math.sin(a);n=v(o.longArc,.001>a-n-Math.PI?0:1),r.push(["M",t+h*d,e+i*p],["A",h,i,0,n,v(o.clockwise,1),t+h*u,e+i*f]),l(s)&&r.push(c?["M",t+s*u,e+s*f]:["L",t+s*u,e+s*f],["A",s,s,0,n,l(o.clockwise)?1-o.clockwise:0,t+s*d,e+s*p]),c||r.push(["Z"])}return r},callout:function(t,e,i,s,o){var r=Math.min(o&&o.r||0,i,s),n=r+6,a=o&&o.anchorX||0;o=o&&o.anchorY||0;var h=[["M",t+r,e],["L",t+i-r,e],["C",t+i,e,t+i,e,t+i,e+r],["L",t+i,e+s-r],["C",t+i,e+s,t+i,e+s,t+i-r,e+s],["L",t+r,e+s],["C",t,e+s,t,e+s,t,e+s-r],["L",t,e+r],["C",t,e,t,e,t+r,e]];return a&&a>i?o>e+n&&oa?o>e+n&&os&&a>t+n&&ao&&a>t+n&&athis.oldTextWidth)&&((u=this.textPxLength)||(s(e,{width:"",whiteSpace:p||"nowrap"}),u=e.offsetWidth),u=u>f),u&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)?(s(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,!o(d)||d===(this.oldRotation||0)&&l===this.oldAlign||this.setSpanRotation(d,c,p),this.getSpanCorrection(!o(d)&&this.textPxLength||e.offsetWidth,p,c,d,l)),s(e,{left:n+(this.xCorr||0)+"px",top:h+(this.yCorr||0)+"px"}),this.cTT=g,this.oldRotation=d,this.oldAlign=l}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var o={},r=this.renderer.getTransformKey();o[r]=o.transform="rotate("+t+"deg)",o[r+(h?"Origin":"-origin")]=o.transformOrigin=100*e+"% "+i+"px",s(this.element,o)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),e})),e(i,"Core/Renderer/HTML/HTMLRenderer.js",[i["Core/Globals.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],(function(t,e,i,s){var o=t.isFirefox,r=t.isMS,n=t.isWebKit,a=t.win,h=s.attr,l=s.createElement,c=s.extend,d=s.pick;return c(i.prototype,{getTransformKey:function(){return r&&!/Edge/.test(a.navigator.userAgent)?"-ms-transform":n?"-webkit-transform":o?"MozTransform":a.opera?"-o-transform":""},html:function(t,i,s){var o=this.createElement("span"),r=o.element,n=o.renderer,a=n.isSVG,p=function(t,i){["opacity","visibility"].forEach((function(s){t[s+"Setter"]=function(o,r,n){var a=t.div?t.div.style:i;e.prototype[s+"Setter"].call(this,o,r,n),a&&(a[r]=o)}})),t.addedSetters=!0};return o.textSetter=function(t){t!==r.innerHTML&&(delete this.bBox,delete this.oldTextWidth),this.textStr=t,r.innerHTML=d(t,""),o.doTransform=!0},a&&p(o,o.element.style),o.xSetter=o.ySetter=o.alignSetter=o.rotationSetter=function(t,e){"align"===e?o.alignValue=o.textAlign=t:o[e]=t,o.doTransform=!0},o.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},o.attr({text:t,x:Math.round(i),y:Math.round(s)}).css({position:"absolute"}),n.styledMode||o.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),r.style.whiteSpace="nowrap",o.css=o.htmlCss,a&&(o.add=function(t){var e=n.box.parentNode,i=[];if(this.parentGroup=t){var s=t.div;if(!s){for(;t;)i.push(t),t=t.parentGroup;i.reverse().forEach((function(t){function r(e,i){t[i]=e,"translateX"===i?a.left=e+"px":a.top=e+"px",t.doTransform=!0}var n=h(t.element,"class");s=t.div=t.div||l("div",n?{className:n}: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},s||e);var a=s.style;c(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(s),on:function(){return i[0].div&&o.on.apply({element:i[0].div},arguments),t},translateXSetter:r,translateYSetter:r}),t.addedSetters||p(t)}))}}else s=e;return s.appendChild(r),o.added=!0,o.alignOnAdd&&o.htmlUpdateTransform(),o}),o}}),i})),e(i,"Core/Axis/Tick.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.clamp,s=e.correctFloat,o=e.defined,r=e.destroyObjectProperties,n=e.extend,a=e.fireEvent,h=e.isNumber,l=e.merge,c=e.objectEach,d=e.pick,p=t.deg2rad;return e=function(){function t(t,e,i,s,o){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,a(this,"init"),i||s||this.addLabel()}return t.prototype.addLabel=function(){var t=this,e=t.axis,i=e.options,r=e.chart,a=e.categories,h=e.logarithmic,l=e.names,c=t.pos,p=d(t.options&&t.options.labels,i.labels),u=e.tickPositions,f=c===u[0],g=c===u[u.length-1];l=this.parameters.category||(a?d(a[c],l[c],c):c);var m,y,v=t.label;if(a=(!p.step||1===p.step)&&1===e.tickInterval,u=u.info,e.dateTime&&u)var x=r.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid&&u.higherRanks[c]||u.unitName]),b=x.main;t.isFirst=f,t.isLast=g,t.formatCtx={axis:e,chart:r,isFirst:f,isLast:g,dateTimeLabelFormat:b,tickPositionInfo:u,value:h?s(h.lin2log(l)):l,pos:c},i=e.labelFormatter.call(t.formatCtx,this.formatCtx),(y=x&&x.list)&&(t.shortenLabel=function(){for(m=0;ml&&s-c*ur&&(a=Math.round((o-s)/Math.cos(l*p))):(o=s+(1-c)*u,s-c*ur&&(g=r-t.x+g*c,m=-1),g=Math.min(f,g),gg||e.autoRotation&&(h.styles||{}).width)&&(a=g)),a&&(this.shortenLabel?this.shortenLabel():(y.width=Math.floor(a)+"px",(i.style||{}).textOverflow||(y.textOverflow="ellipsis"),h.css(y)))},t.prototype.moveLabel=function(t,e){var i=this,s=i.label,o=!1,r=i.axis,n=r.reversed;if(s&&s.textStr===t?(i.movedLabel=s,o=!0,delete i.label):c(r.ticks,(function(e){o||e.isNew||e===i||!e.label||e.label.textStr!==t||(i.movedLabel=e.label,o=!0,e.labelPos=i.movedLabel.xy,delete e.label)})),!o&&(i.labelPos||s)){var a=i.labelPos||s.xy;s=r.horiz?n?0:r.width+r.left:a.x,r=r.horiz?a.y:n?r.width+r.left:0,i.movedLabel=i.createLabel({x:s,y:r},t,e),i.movedLabel&&i.movedLabel.attr({opacity:0})}},t.prototype.render=function(t,e,i){var s=this.axis,o=s.horiz,r=this.pos,n=d(this.tickmarkOffset,s.tickmarkOffset);r=this.getPosition(o,r,n,e),n=r.x;var h=r.y;s=o&&n===s.pos+s.len||!o&&h===s.pos?-1:1,i=d(i,1),this.isActive=!0,this.renderGridLine(e,i,s),this.renderMark(r,i,s),this.renderLabel(r,e,i,t),this.isNew=!1,a(this,"afterRender")},t.prototype.renderGridLine=function(t,e,i){var s=this.axis,o=s.options,r=this.gridLine,n={},a=this.pos,h=this.type,l=d(this.tickmarkOffset,s.tickmarkOffset),c=s.chart.renderer,p=h?h+"Grid":"grid",u=o[p+"LineWidth"],f=o[p+"LineColor"];o=o[p+"LineDashStyle"],r||(s.chart.styledMode||(n.stroke=f,n["stroke-width"]=u,o&&(n.dashstyle=o)),h||(n.zIndex=1),t&&(e=0),this.gridLine=r=c.path().attr(n).addClass("highcharts-"+(h?h+"-":"")+"grid-line").add(s.gridGroup)),r&&(i=s.getPlotLinePath({value:a+l,lineWidth:r.strokeWidth()*i,force:"pass",old:t}))&&r[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},t.prototype.renderMark=function(t,e,i){var s=this.axis,o=s.options,r=s.chart.renderer,n=this.type,a=n?n+"Tick":"tick",h=s.tickSize(a),l=this.mark,c=!l,p=t.x;t=t.y;var u=d(o[a+"Width"],!n&&s.isXAxis?1:0);o=o[a+"Color"],h&&(s.opposite&&(h[0]=-h[0]),c&&(this.mark=l=r.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(s.axisGroup),s.chart.styledMode||l.attr({stroke:o,"stroke-width":u})),l[c?"attr":"animate"]({d:this.getMarkPath(p,t,h[0],l.strokeWidth()*i,s.horiz,r),opacity:e}))},t.prototype.renderLabel=function(t,e,i,s){var o=this.axis,r=o.horiz,n=o.options,a=this.label,l=n.labels,c=l.step;o=d(this.tickmarkOffset,o.tickmarkOffset);var p=!0,u=t.x;t=t.y,a&&h(u)&&(a.xy=t=this.getLabelPosition(u,t,a,r,l,o,s,c),this.isFirst&&!this.isLast&&!d(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!d(n.showLastLabel,1)?p=!1:!r||l.step||l.rotation||e||0===i||this.handleOverflow(t),c&&s%c&&(p=!1),p&&h(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(a.attr("y",-9999),this.isNewLabel=!0))},t.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,i=e.reversed;if(t&&!this.isNew){var s=e.horiz?i?e.left:e.width+e.left:t.xy.x;i=e.horiz?t.xy.y:i?e.width+e.top:e.top,t.animate({x:s,y:i,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},t}(),t.Tick=e,t.Tick})),e(i,"Core/Time.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.defined,s=e.error,o=e.extend,r=e.isObject,n=e.merge,a=e.objectEach,h=e.pad,l=e.pick,c=e.splat,d=e.timeUnits,p=t.win;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=p.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var i=e.getTime(),s=i-this.getTimezoneOffset(e);return e.setTime(s),t=e["getUTC"+t](),e.setTime(i),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()},e.prototype.set=function(t,e,i){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t)return e["setUTC"+t](i);var s=this.getTimezoneOffset(e);return s=e.getTime()-s,e.setTime(s),e["setUTC"+t](i),t=this.getTimezoneOffset(e),s=e.getTime()+t,e.setTime(s)}return this.useUTC?e["setUTC"+t](i):e["set"+t](i)},e.prototype.update=function(t){var e=l(t&&t.useUTC,!0);this.options=t=n(!0,this.options||{},t),this.Date=t.Date||p.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=!(e&&!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(e,i,s,o,r,n){if(this.useUTC){var a=this.Date.UTC.apply(0,arguments),h=this.getTimezoneOffset(a);a+=h;var c=this.getTimezoneOffset(a);h!==c?a+=c-h:h-36e5!==this.getTimezoneOffset(a-36e5)||t.isSafari||(a-=36e5)}else a=new this.Date(e,i,l(s,1),l(o,0),l(r,0),l(n,0)).getTime();return a},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,i=e.moment||p.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(i)return function(t){return 6e4*-i.tz(t,e.timezone).utcOffset()};s(25)}return this.useUTC&&e.getTimezoneOffset?function(t){return 6e4*e.getTimezoneOffset(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,s,r){var n;if(!i(s)||isNaN(s))return(null===(n=t.defaultOptions.lang)||void 0===n?void 0:n.invalidDate)||"";e=l(e,"%Y-%m-%d %H:%M:%S");var c=this;n=new this.Date(s);var d=this.get("Hours",n),p=this.get("Day",n),u=this.get("Date",n),f=this.get("Month",n),g=this.get("FullYear",n),m=t.defaultOptions.lang,y=null===m||void 0===m?void 0:m.weekdays,v=null===m||void 0===m?void 0:m.shortWeekdays;return n=o({a:v?v[p]:y[p].substr(0,3),A:y[p],d:h(u),e:h(u,2," "),w:p,b:m.shortMonths[f],B:m.months[f],m:h(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:h(d),k:d,I:h(d%12||12),l:d%12||12,M:h(this.get("Minutes",n)),p:12>d?"AM":"PM",P:12>d?"am":"pm",S:h(n.getSeconds()),L:h(Math.floor(s%1e3),3)},t.dateFormats),a(n,(function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"===typeof t?t.call(c,s):t)})),r?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return r(t,!0)?t:(t=c(t),{main:t[0],from:t[1],to:t[2]})},e.prototype.getTimeTicks=function(t,e,s,r){var n,a=this,h=[],c={},p=new a.Date(e),u=t.unitRange,f=t.count||1;if(r=l(r,1),i(e)){if(a.set("Milliseconds",p,u>=d.second?0:f*Math.floor(a.get("Milliseconds",p)/f)),u>=d.second&&a.set("Seconds",p,u>=d.minute?0:f*Math.floor(a.get("Seconds",p)/f)),u>=d.minute&&a.set("Minutes",p,u>=d.hour?0:f*Math.floor(a.get("Minutes",p)/f)),u>=d.hour&&a.set("Hours",p,u>=d.day?0:f*Math.floor(a.get("Hours",p)/f)),u>=d.day&&a.set("Date",p,u>=d.month?1:Math.max(1,f*Math.floor(a.get("Date",p)/f))),u>=d.month){a.set("Month",p,u>=d.year?0:f*Math.floor(a.get("Month",p)/f));var g=a.get("FullYear",p)}u>=d.year&&a.set("FullYear",p,g-g%f),u===d.week&&(g=a.get("Day",p),a.set("Date",p,a.get("Date",p)-g+r+(g4*d.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(s)),e=p.getTime(),p=1;eh.length&&h.forEach((function(t){0===t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(c[t]="day")}))}return h.info=o(t,{higherRanks:c,totalRange:u*f}),h},e}(),t.Time=e,t.Time})),e(i,"Core/Options.js",[i["Core/Globals.js"],i["Core/Color/Color.js"],i["Core/Time.js"],i["Core/Utilities.js"]],(function(t,e,i,s){var o=t.isTouchDevice,r=t.svg;return e=e.parse,s=s.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:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},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:r,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:o?25:10,headerFormat:'{point.key}
',pointFormat:' {series.name}: {point.y}
',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",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.time=new i(s(t.defaultOptions.global,t.defaultOptions.time)),t.dateFormat=function(e,i,s){return t.time.dateFormat(e,i,s)},{dateFormat:t.dateFormat,defaultOptions:t.defaultOptions,time:t.time}})),e(i,"Core/Axis/Axis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Axis/Tick.js"],i["Core/Utilities.js"],i["Core/Options.js"]],(function(t,e,i,s,o,r){var n=t.animObject,a=o.addEvent,h=o.arrayMax,l=o.arrayMin,c=o.clamp,d=o.correctFloat,p=o.defined,u=o.destroyObjectProperties,f=o.error,g=o.extend,m=o.fireEvent,y=o.format,v=o.getMagnitude,x=o.isArray,b=o.isFunction,k=o.isNumber,M=o.isString,S=o.merge,w=o.normalizeTickInterval,C=o.objectEach,A=o.pick,T=o.relativeLength,P=o.removeEvent,L=o.splat,O=o.syncTimeout,E=r.defaultOptions,D=i.deg2rad;return t=function(){function t(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.oldMin=this.oldMax=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var i=e.isX,s=this;s.chart=t,s.horiz=t.inverted&&!s.isZAxis?!i:i,s.isXAxis=i,s.coll=s.coll||(i?"xAxis":"yAxis"),m(this,"init",{userOptions:e}),s.opposite=e.opposite,s.side=e.side||(s.horiz?s.opposite?0:2:s.opposite?1:3),s.setOptions(e);var o=this.options,r=o.type;s.labelFormatter=o.labels.formatter||s.defaultLabelFormatter,s.userOptions=e,s.minPixelPadding=0,s.reversed=o.reversed,s.visible=!1!==o.visible,s.zoomEnabled=!1!==o.zoomEnabled,s.hasNames="category"===r||!0===o.categories,s.categories=o.categories||s.hasNames,s.names||(s.names=[],s.names.keys={}),s.plotLinesAndBandsGroups={},s.positiveValuesOnly=!!s.logarithmic,s.isLinked=p(o.linkedTo),s.ticks={},s.labelEdge=[],s.minorTicks={},s.plotLinesAndBands=[],s.alternateBands={},s.len=0,s.minRange=s.userMinRange=o.minRange||o.maxZoom,s.range=o.range,s.offset=o.offset||0,s.max=null,s.min=null,s.crosshair=A(o.crosshair,L(t.options.tooltip.crosshairs)[i?0:1],!1),e=s.options.events,-1===t.axes.indexOf(s)&&(i?t.axes.splice(t.xAxis.length,0,s):t.axes.push(s),t[s.coll].push(s)),s.series=s.series||[],t.inverted&&!s.isZAxis&&i&&"undefined"===typeof s.reversed&&(s.reversed=!0),s.labelRotation=s.options.labels.rotation,C(e,(function(t,e){b(t)&&a(s,e,t)})),m(this,"afterInit")},t.prototype.setOptions=function(e){this.options=S(t.defaultOptions,"yAxis"===this.coll&&t.defaultYAxisOptions,[t.defaultTopAxisOptions,t.defaultRightAxisOptions,t.defaultBottomAxisOptions,t.defaultLeftAxisOptions][this.side],S(E[this.coll],e)),m(this,"afterSetOptions",{userOptions:e})},t.prototype.defaultLabelFormatter=function(){var t=this.axis,e=k(this.value)?this.value:NaN,i=t.chart.time,s=t.categories,o=this.dateTimeLabelFormat,r=E.lang,n=r.numericSymbols;r=r.numericSymbolMagnitude||1e3;var a=n&&n.length,h=t.options.labels.format;t=t.logarithmic?Math.abs(e):t.tickInterval;var l=this.chart,c=l.numberFormatter;if(h)var d=y(h,this,l);else if(s)d=""+this.value;else if(o)d=i.dateFormat(o,e);else if(a&&1e3<=t)for(;a--&&"undefined"===typeof d;)i=Math.pow(r,a+1),t>=i&&0===10*e%i&&null!==n[a]&&0!==e&&(d=c(e/i,-1)+n[a]);return"undefined"===typeof d&&(d=1e4<=Math.abs(e)?c(e,-1):c(e,-1,void 0,"")),d},t.prototype.getSeriesExtremes=function(){var t,e=this,i=e.chart;m(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach((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,o.length){o=e.logarithmic?o.filter(e.validatePositiveValue):o,t=s.getXExtremes(o);var n=t.min,a=t.max;k(n)||n instanceof Date||(o=o.filter(k),t=s.getXExtremes(o),n=t.min,a=t.max),o.length&&(e.dataMin=Math.min(A(e.dataMin,n),n),e.dataMax=Math.max(A(e.dataMax,a),a))}}else s=s.applyExtremes(),k(s.dataMin)&&(n=s.dataMin,e.dataMin=Math.min(A(e.dataMin,n),n)),k(s.dataMax)&&(a=s.dataMax,e.dataMax=Math.max(A(e.dataMax,a),a)),p(r)&&(e.threshold=r),(!o.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),m(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,i,s,o,r){var n=this.linkedParent||this,a=1,h=0,l=s?n.oldTransA:n.transA;s=s?n.oldMin:n.min;var c=n.minPixelPadding;return o=(n.isOrdinal||n.brokenAxis&&n.brokenAxis.hasBreaks||n.logarithmic&&o)&&n.lin2val,l||(l=n.transA),i&&(a*=-1,h=n.len),n.reversed&&(a*=-1,h-=a*(n.sector||n.len)),e?(t=(t*a+h-c)/l+s,o&&(t=n.lin2val(t))):(o&&(t=n.val2lin(t)),t=k(s)?a*(t-s)*l+h+a*c+(k(r)?l*r:0):void 0),t},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,i){return("pass"!==y&&ti)&&(y?t=c(t,e,i):n=!0),t}var i,s,o,r,n,a=this,h=a.chart,l=a.left,d=a.top,p=t.old,u=t.value,f=t.translatedValue,g=t.lineWidth,y=t.force,v=p&&h.oldChartHeight||h.chartHeight,x=p&&h.oldChartWidth||h.chartWidth,b=a.transB;return t={value:u,lineWidth:g,old:p,force:y,acrossPanes:t.acrossPanes,translatedValue:f},m(this,"getPlotLinePath",t,(function(t){f=A(f,a.translate(u,null,null,p)),f=c(f,-1e5,1e5),i=o=Math.round(f+b),s=r=Math.round(v-f-b),k(f)?a.horiz?(s=d,r=v-a.bottom,i=o=e(i,l,l+a.width)):(i=l,o=x-a.right,s=r=e(s,d,d+a.height)):(n=!0,y=!1),t.path=n&&!y?null:h.renderer.crispLine([["M",i,s],["L",o,r]],g||1)})),t.path},t.prototype.getLinearTickPositions=function(t,e,i){var s=d(Math.floor(e/t)*t);i=d(Math.ceil(i/t)*t);var o,r=[];if(d(s+t)===s&&(o=20),this.single)return[e];for(e=s;e<=i;){if(r.push(e),e=d(e+t,o),e===n)break;var n=e}return r},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?A(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,i=this.minorTickInterval,s=[],o=this.pointRangePadding||0,r=this.min-o;o=this.max+o;var n=o-r;if(n&&n/i=this.minRange,d=this.minRange,u=(d-n+r)/2;u=[r-u,A(o.min,r-u)],c&&(u[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),r=h(u),n=[r+d,A(o.max,r+d)],c&&(n[2]=a?a.log2lin(this.dataMax):this.dataMax),n=l(n),n-r=g)M=g,h=0;else if(e.dataMax<=g){var S=g;a=0}e.min=A(x,M,e.dataMin),e.max=A(b,S,e.dataMax)}s&&(e.positiveValuesOnly&&!t&&0>=Math.min(e.min,A(e.dataMin,e.min))&&f(10,1,i),e.min=d(s.log2lin(e.min),16),e.max=d(s.log2lin(e.max),16)),e.range&&p(e.max)&&(e.userMin=e.min=x=Math.max(e.dataMin,e.minFromRange()),e.userMax=b=e.max,e.range=null),m(e,"foundExtremes"),e.beforePadding&&e.beforePadding(),e.adjustForMinRange(),!(u||e.axisPointRange||e.stacking&&e.stacking.usePercentage||n)&&p(e.min)&&p(e.max)&&(i=e.max-e.min)&&(!p(x)&&h&&(e.min-=i*h),!p(b)&&a&&(e.max+=i*a)),k(e.userMin)||(k(o.softMin)&&o.softMine.max&&(e.max=b=o.softMax),k(o.ceiling)&&(e.max=Math.min(e.max,o.ceiling))),y&&p(e.dataMin)&&(g=g||0,!p(x)&&e.min=g?e.min=e.options.minRange?Math.min(g,e.max-e.minRange):g:!p(b)&&e.max>g&&e.dataMax<=g&&(e.max=e.options.minRange?Math.max(g,e.min+e.minRange):g)),e.tickInterval=e.min===e.max||"undefined"===typeof e.min||"undefined"===typeof e.max?1:n&&!l&&c===e.linkedParent.options.tickPixelInterval?l=e.linkedParent.tickInterval:A(l,this.tickAmount?(e.max-e.min)/Math.max(this.tickAmount-1,1):void 0,u?1:(e.max-e.min)*c/Math.max(e.len,c)),r&&!t&&e.series.forEach((function(t){t.processData(e.min!==e.oldMin||e.max!==e.oldMax)})),e.setAxisTranslation(!0),m(this,"initialAxisTranslation"),e.pointRange&&!l&&(e.tickInterval=Math.max(e.pointRange,e.tickInterval)),t=A(o.minTickInterval,e.dateTime&&!e.series.some((function(t){return t.noSharedTooltip}))?e.closestPointRange:0),!l&&e.tickIntervale.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(e.tickInterval=e.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,i=this.getMinorTickInterval(),s=t.tickPositioner,o=this.hasVerticalPanning(),r="colorAxis"===this.coll,n=(r||!o)&&t.startOnTick;o=(r||!o)&&t.endOnTick,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===i&&this.tickInterval?this.tickInterval/5:i,this.single=this.min===this.max&&p(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=i=e&&e.slice(),!i&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?i=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(i=[this.min,this.max],f(19,!1,this.chart)),i.length>this.len&&(i=[i[0],i.pop()],i[0]===i[1]&&(i.length=1)),this.tickPositions=i,s&&(s=s.apply(this,[this.min,this.max])))&&(this.tickPositions=i=s),this.paddedTicks=i.slice(0),this.trimTicks(i,n,o),this.isLinked||(this.single&&2>i.length&&!this.categories&&!this.series.some((function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),e||s||this.adjustTickAmount()),m(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,i){var s=t[0],o=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(m(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+re&&(this.finalTickAmt=e,e=5),this.tickAmount=e},t.prototype.adjustTickAmount=function(){var t,e=this.options,i=this.tickInterval,s=this.tickPositions,o=this.tickAmount,r=this.finalTickAmt,n=s&&s.length,a=A(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(no&&(this.tickInterval*=2,this.setTickPositions());if(p(r)){for(i=e=s.length;i--;)(3===r&&1===i%2||2>=r&&0a&&(e=a)),p(o)&&(ra&&(r=a))),i.displayBtn="undefined"!==typeof e||"undefined"!==typeof r,i.setExtremes(e,r,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],s=this.horiz,o=this.width=Math.round(T(A(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(T(A(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),n=this.top=Math.round(T(A(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(T(A(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-r-n,this.right=t.chartWidth-o-e,this.len=Math.max(s?o:r,0),this.pos=s?e:n},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?d(t.lin2log(this.min)):this.min,max:t?d(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,i=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=i:1/0===t?t=e:i>t?t=i:ee?t.align="right":195e&&(t.align="left")})),t.align},t.prototype.tickSize=function(t){var e=this.options,i=e["tick"===t?"tickLength":"minorTickLength"],s=A(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0);if(s&&i){"inside"===e[t+"Position"]&&(i=-i);var o=[i,s]}return t={tickSize:o},m(this,"afterTickSize",t),t.tickSize},t.prototype.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)},t.prototype.unsquish=function(){var t,e,i,s=this.options.labels,o=this.horiz,r=this.tickInterval,n=r,a=this.len/(((this.categories?1:0)+this.max-this.min)/r),h=s.rotation,l=this.labelMetrics(),c=Number.MAX_VALUE,u=this.max-this.min,f=function(t){var e=t/(a||1);return e=1u&&1/0!==t&&1/0!==a&&u&&(e=Math.ceil(u/r)),d(e*r)};return o?(i=!s.staggerLines&&!s.step&&(p(h)?[h]:a=i){e=f(Math.abs(l.h/Math.sin(D*i)));var s=e+Math.abs(i/360);s(o.step||0))return o.rotation?0:(this.staggerLines||1)*this.len/r;if(!s){if(t=null===(e=null===o||void 0===o?void 0:o.style)||void 0===e?void 0:e.width,void 0!==t)return parseInt(t,10);if(n)return n-i.spacing[3]}return.33*i.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,i=this.tickPositions,s=this.ticks,o=this.options.labels,r=o&&o.style||{},n=this.horiz,a=this.getSlotWidth(),h=Math.max(1,Math.round(a-2*(o.padding||5))),l={},c=this.labelMetrics(),d=o.style&&o.style.textOverflow,p=0;if(M(o.rotation)||(l.rotation=o.rotation||0),i.forEach((function(t){t=s[t],t.movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>p&&(p=t.label.textPxLength)})),this.maxLabelLength=p,this.autoRotation)p>h&&p>c.h?l.rotation=this.labelRotation:this.labelRotation=0;else if(a){var u=h;if(!d){var f="clip";for(h=i.length;!n&&h--;){var g=i[h];(g=s[g].label)&&(g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>a&&g.css({width:a+"px"}),g.getBBox().height>this.len/i.length-(c.h-c.f)&&(g.specificTextOverflow="ellipsis"))}}}l.rotation&&(u=p>.5*t.chartHeight?.33*t.chartHeight:p,d||(f="ellipsis")),(this.labelAlign=o.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),i.forEach((function(t){var e=(t=s[t])&&t.label,i=r.width,o={};e&&(e.attr(l),t.shortenLabel?t.shortenLabel():u&&!i&&"nowrap"!==r.whiteSpace&&(u=this.min&&t<=this.max||null!==(i=this.grid)&&void 0!==i&&i.isColumn)&&(r[t]||(r[t]=new s(this,t)),n&&r[t].isNew&&r[t].render(e,!0,-1),r[t].render(e))},t.prototype.render=function(){var t,e,o=this,r=o.chart,a=o.logarithmic,h=o.options,l=o.isLinked,c=o.tickPositions,d=o.axisTitle,p=o.ticks,u=o.minorTicks,f=o.alternateBands,g=h.stackLabels,y=h.alternateGridColor,v=o.tickmarkOffset,x=o.axisLine,b=o.showAxis,M=n(r.renderer.globalAnimation);o.labelEdge.length=0,o.overlap=!1,[p,u,f].forEach((function(t){C(t,(function(t){t.isActive=!1}))})),(o.hasData()||l)&&(o.minorTickInterval&&!o.categories&&o.getMinorTickPositions().forEach((function(t){o.renderMinorTick(t)})),c.length&&(c.forEach((function(t,e){o.renderTick(t,e)})),v&&(0===o.min||o.single)&&(p[-1]||(p[-1]=new s(o,-1,null,!0)),p[-1].render(-1))),y&&c.forEach((function(s,n){e="undefined"!==typeof c[n+1]?c[n+1]+v:o.max-v,0===n%2&&se&&(!n||g<=i)&&"undefined"!==typeof g&&c.push(g),g>i&&(p=!0);var g=f}}}else e=this.lin2log(e),i=this.lin2log(i),t=n?a.getMinorTickInterval():l.tickInterval,t=r("auto"===t?null:t,this.minorAutoInterval,l.tickPixelInterval/(n?5:1)*(i-e)/((n?h/a.tickPositions.length:h)||1)),t=o(t,void 0,s(t)),c=a.getLinearTickPositions(t,e,i).map(this.log2lin),n||(this.minorAutoInterval=t/5);return n||(a.tickInterval=t),c},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();return e=function(){function t(){}return t.compose=function(t){t.keepProps.push("logarithmic");var e=t.prototype,s=n.prototype;e.log2lin=s.log2lin,e.lin2log=s.lin2log,i(t,"init",(function(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:(e||(e=this.logarithmic=new n(this)),this.log2lin!==e.log2lin&&(e.log2lin=this.log2lin.bind(this)),this.lin2log!==e.lin2log&&(e.lin2log=this.lin2log.bind(this)))})),i(t,"afterInit",(function(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}))},t}(),e.compose(t),e})),e(i,"Core/Axis/PlotLineOrBand.js",[i["Core/Axis/Axis.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i){var s=i.arrayMax,o=i.arrayMin,r=i.defined,n=i.destroyObjectProperties,a=i.erase,h=i.extend,l=i.merge,c=i.objectEach,d=i.pick;return i=function(){function t(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return t.prototype.render=function(){e.fireEvent(this,"render");var t=this,i=t.axis,s=i.horiz,o=i.logarithmic,n=t.options,a=n.label,h=t.label,p=n.to,u=n.from,f=n.value,g=r(u)&&r(p),m=r(f),y=t.svgElem,v=!y,x=[],b=n.color,k=d(n.zIndex,0),M=n.events;x={class:"highcharts-plot-"+(g?"band ":"line ")+(n.className||"")};var S={},w=i.chart.renderer,C=g?"bands":"lines";if(o&&(u=o.log2lin(u),p=o.log2lin(p),f=o.log2lin(f)),i.chart.styledMode||(m?(x.stroke=b||"#999999",x["stroke-width"]=d(n.width,1),n.dashStyle&&(x.dashstyle=n.dashStyle)):g&&(x.fill=b||"#e6ebf5",n.borderWidth&&(x.stroke=n.borderColor,x["stroke-width"]=n.borderWidth))),S.zIndex=k,C+="-"+k,(o=i.plotLinesAndBandsGroups[C])||(i.plotLinesAndBandsGroups[C]=o=w.g("plot-"+C).attr(S).add()),v&&(t.svgElem=y=w.path().attr(x).add(o)),m)x=i.getPlotLinePath({value:f,lineWidth:y.strokeWidth(),acrossPanes:n.acrossPanes});else{if(!g)return;x=i.getPlotBandPath(u,p,n)}return!t.eventsAdded&&M&&(c(M,(function(e,i){y.on(i,(function(e){M[i].apply(t,[e])}))})),t.eventsAdded=!0),(v||!y.d)&&x&&x.length?y.attr({d:x}):y&&(x?(y.show(!0),y.animate({d:x})):y.d&&(y.hide(),h&&(t.label=h=h.destroy()))),a&&(r(a.text)||r(a.formatter))&&x&&x.length&&0this.max&&e>this.max,i&&s){if(t){var a=i.toString()===s.toString();n=0}for(t=0;tt){h=a;break}if(n[h]&&r.substr(n[h])!=="01-01 00:00:00.000".substr(n[h]))break;"week"!==h&&(a=h)}if(h)var l=o.resolveDTLFormat(s[h]).main;return l},y.prototype.getLabel=function(){var e,i,s,n=this,a=this.chart.renderer,h=this.chart.styledMode,l=this.options,c="tooltip"+(r(l.className)?" "+l.className:""),d=(null===(e=l.style)||void 0===e?void 0:e.pointerEvents)||(!this.followPointer&&l.stickOnContact?"auto":"none");e=function(){n.inContact=!0};var p=function(){var t=n.chart.hoverSeries;n.inContact=!1,t&&t.onMouseOut&&t.onMouseOut()};if(!this.label){if(this.outside&&(this.container=s=t.doc.createElement("div"),s.className="highcharts-tooltip-container",o(s,{position:"absolute",top:"1px",pointerEvents:d,zIndex:3}),t.doc.body.appendChild(s),this.renderer=a=new t.Renderer(s,0,0,null===(i=this.chart.options.chart)||void 0===i?void 0:i.style,void 0,void 0,a.styledMode)),this.split?this.label=a.g(c):(this.label=a.label("",0,0,l.shape||"callout",null,null,l.useHTML,null,c).attr({padding:l.padding,r:l.borderRadius}),h||this.label.attr({fill:l.backgroundColor,"stroke-width":l.borderWidth}).css(l.style).css({pointerEvents:d}).shadow(l.shadow)),h&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),n.outside&&!n.split){var u=this.label,f=u.xSetter,g=u.ySetter;u.xSetter=function(t){f.call(u,n.distance),s.style.left=t+"px"},u.ySetter=function(t){g.call(u,n.distance),s.style.top=t+"px"}}this.label.on("mouseenter",e).on("mouseleave",p).attr({zIndex:8}).add()}return this.label},y.prototype.getPosition=function(t,e,s){var o,r=this.chart,n=this.distance,a={},h=r.inverted&&s.h||0,l=this.outside,c=l?i.documentElement.clientWidth-2*n:r.chartWidth,d=l?Math.max(i.body.scrollHeight,i.documentElement.scrollHeight,i.body.offsetHeight,i.documentElement.offsetHeight,i.documentElement.clientHeight):r.chartHeight,p=r.pointer.getChartPosition(),f=r.containerScaling,g=function(t){return f?t*f.scaleX:t},m=function(t){return f?t*f.scaleY:t},y=function(i){var o="x"===i;return[i,o?c:d,o?t:e].concat(l?[o?g(t):m(e),o?p.left-n+g(s.plotX+r.plotLeft):p.top-n+m(s.plotY+r.plotTop),0,o?c:d]:[o?t:e,o?s.plotX+r.plotLeft:s.plotY+r.plotTop,o?r.plotLeft:r.plotTop,o?r.plotLeft+r.plotWidth:r.plotTop+r.plotHeight])},v=y("y"),x=y("x"),b=!this.followPointer&&u(s.ttBelow,!r.inverted===!!s.negative),k=function(t,e,i,s,o,r,l){var c="y"===t?m(n):g(n),d=(i-s)/2,p=sf-h?f:f-h);else{if(!u)return!1;a[t]=Math.max(r,o+h+i>e?o:o+h)}},M=function(t,e,i,s,o){var r;return oe-n?r=!1:a[t]=oe-s/2?e-s-2:o-i/2,r},S=function(t){var e=v;v=x,x=e,o=t},w=function(){!1!==k.apply(0,v)?!1!==M.apply(0,x)||o||(S(!0),w()):o?a.x=a.y=0:(S(!0),w())};return(r.inverted||1=x+p&&O.pos+v<=x+p+l-y&&(E=O.pos+v);m=s(m,w.left-k,w.right+k),"number"===typeof E?(f=f.height+1,v=S?S.call(r,h,f,n):o(m,E,a,h),t.push({align:S?0:void 0,anchorX:m,anchorY:E,boxWidth:h,point:n,rank:u(v.rank,a?1:0),size:f,target:v.y,tt:e,x:v.x})):e.isActive=!1}return t}),[]),!S&&e.some((function(t){return t.xi[0]?Math.max(Math.abs(i[0]),o.width-i[0]):Math.max(Math.abs(i[0]),o.width),s.height=0>i[1]?Math.max(Math.abs(i[1]),o.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),o.height),this.tracker?this.tracker.attr(s):(this.tracker=e.renderer.rect(s).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},y.prototype.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}"')},y.prototype.tooltipFooterHeaderFormatter=function(t,e){var i=e?"footer":"header",s=t.series,o=s.tooltipOptions,r=o.xDateFormat,n=s.xAxis,a=n&&"datetime"===n.options.type&&c(t.key),d=o[i+"Format"];return e={isFooter:e,labelConfig:t},h(this,"headerFormatter",e,(function(e){a&&!r&&(r=this.getXDateFormat(t,o,n)),a&&r&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach((function(t){d=d.replace("{point."+t+"}","{point."+t+":"+r+"}")})),s.chart.styledMode&&(d=this.styledModeFormat(d)),e.text=l(d,{point:t,series:s},this.chart)})),e.text},y.prototype.update=function(t){this.destroy(),p(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,p(!0,this.options,t))},y.prototype.updatePosition=function(t){var e=this.chart,i=e.pointer,s=this.getLabel(),r=t.plotX+e.plotLeft,n=t.plotY+e.plotTop;if(i=i.getChartPosition(),t=(this.options.positioner||this.getPosition).call(this,s.width,s.height,t),this.outside){var a=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(s.width+a,s.height+a,!1),(e=e.containerScaling)&&(o(this.container,{transform:"scale("+e.scaleX+", "+e.scaleY+")"}),r*=e.scaleX,n*=e.scaleY),r+=i.left-t.x,n+=i.top-t.y}this.move(Math.round(t.x),Math.round(t.y||0),r,n)},y}();return t.Tooltip=y,t.Tooltip})),e(i,"Core/Pointer.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Tooltip.js"],i["Core/Utilities.js"]],(function(t,e,i,s){var o=t.parse,r=e.charts,n=e.noop,a=s.addEvent,h=s.attr,l=s.css,c=s.defined,d=s.extend,p=s.find,u=s.fireEvent,f=s.isNumber,g=s.isObject,m=s.objectEach,y=s.offset,v=s.pick,x=s.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.chart=t,this.hasDragged=!1,this.options=e,this.unbindContainerMouseLeave=function(){},this.unbindContainerMouseEnter=function(){},this.init(t,e)}return t.prototype.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")}))},t.prototype.destroy=function(){var t=this;"undefined"!==typeof t.unDocMouseMove&&t.unDocMouseMove(),this.unbindContainerMouseLeave(),e.chartCount||(e.unbindDocumentMouseUp&&(e.unbindDocumentMouseUp=e.unbindDocumentMouseUp()),e.unbindDocumentTouchEnd&&(e.unbindDocumentTouchEnd=e.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),m(t,(function(e,i){t[i]=void 0}))},t.prototype.drag=function(t){var e=this.chart,i=e.options.chart,s=t.chartX,r=t.chartY,n=this.zoomHor,a=this.zoomVert,h=e.plotLeft,l=e.plotTop,c=e.plotWidth,d=e.plotHeight,p=this.selectionMarker,u=this.mouseDownX||0,f=this.mouseDownY||0,m=g(i.panning)?i.panning&&i.panning.enabled:i.panning,y=i.panKey&&t[i.panKey+"Key"];if((!p||!p.touch)&&(sh+c&&(s=h+c),rl+d&&(r=l+d),this.hasDragged=Math.sqrt(Math.pow(u-s,2)+Math.pow(f-r,2)),10t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,o),(o=g(t,!0))&&!(o=!g(s,!0))){o=s.distX-t.distX;var r=s.dist-t.dist,n=(t.series.group&&t.series.group.zIndex)-(s.series.group&&s.series.group.zIndex);o=0<(0!==o&&e?o:0!==r?r:0!==n?n:s.series.index>t.series.index?-1:1)}o&&(s=t)})),s)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i=t.series,s=i.xAxis;i=i.yAxis;var o=v(t.clientX,t.plotX),r=t.shapeArgs;return s&&i?e?{chartX:s.len+s.pos-o,chartY:i.len+i.pos-t.plotY}:{chartX:o+s.pos,chartY:t.plotY+i.pos}:r&&r.x&&r.y?{chartX:r.x,chartY:r.y}:void 0},t.prototype.getChartPosition=function(){return this.chartPosition||(this.chartPosition=y(this.chart.container))},t.prototype.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},t.prototype.getHoverData=function(t,e,i,s,o,r){var n,a=[];s=!(!s||!t);var h=e&&!e.stickyTracking,l={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:o};return u(this,"beforeGetHoverData",l),h=h?[e]:i.filter((function(t){return l.filter?l.filter(t):t.visible&&!(!o&&t.directTouch)&&v(t.options.enableMouseTracking,!0)&&t.stickyTracking})),e=(n=s||!r?t:this.findNearestKDPoint(h,o,r))&&n.series,n&&(o&&!e.noSharedTooltip?(h=i.filter((function(t){return l.filter?l.filter(t):t.visible&&!(!o&&t.directTouch)&&v(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip})),h.forEach((function(t){var e=p(t.points,(function(t){return t.x===n.x&&!t.isNull}));g(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),a.push(e))}))):a.push(n)),l={hoverPoint:n},u(this,"afterGetHoverData",l),{hoverPoint:l.hoverPoint,hoverSeries:e,hoverPoints:a}},t.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;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()},t.prototype.inClass=function(t,e){for(var i;t;){if(i=h(t,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}t=t.parentNode}},t.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},i&&(t.tooltip=new i(t,e.tooltip),this.followTouchMove=v(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var i=t.touches,s=i?i.length?i.item(0):v(i.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),i=s.pageX-e.left,e=s.pageY-e.top,(s=this.chart.containerScaling)&&(i/=s.scaleX,e/=s.scaleY),d(t,{chartX:Math.round(i),chartY:Math.round(e)})},t.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint;t=this.normalize(t);var s=e.plotLeft,o=e.plotTop;e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(u(i.series,"click",d(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(d(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-s,t.chartY-o)&&u(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var i=1===(1&(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),("undefined"===typeof t.button||i)&&(this.zoomOption(t),i&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(t){var i=r[v(e.hoverChartIndex,-1)],s=this.chart.tooltip;t=this.normalize(t),i&&(t.relatedTarget||t.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=void 0),s&&!s.isHidden&&this.reset()},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),"mousedown"===e.mouseIsDown&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.runPointActions(t)},t.prototype.onDocumentTouchEnd=function(t){r[e.hoverChartIndex]&&r[e.hoverChartIndex].pointer.drop(t)},t.prototype.onContainerTouchMove=function(t){this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.zoomOption(t),this.touch(t,!0)},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,i=this.chartPosition;t=this.normalize(t,i);var s=e.tooltip;!i||s&&s.isStickyOnContact()||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(t){var i=r[v(e.hoverChartIndex,-1)];i&&i.pointer.drop(t)},t.prototype.pinch=function(t){var e=this,i=e.chart,s=e.pinchDown,o=t.touches||[],r=o.length,a=e.lastValidTouch,h=e.hasZoom,l=e.selectionMarker,c={},p=1===r&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),u={};1v.max&&(e=v.max-h,w=!0);w?(k-=.8*(k-n[d][0]),"number"===typeof S&&(S-=.8*(S-n[d][1])),i()):n[d]=[k,S],y||(r[d]=l-g,r[f]=h),r=y?1/m:m,o[f]=h,o[d]=e,s[y?t?"scaleY":"scaleX":"scale"+p]=m,s["translate"+p]=r*g+(k-r*b)},t.prototype.reset=function(t,e){var i=this.chart,s=i.hoverSeries,o=i.hoverPoint,r=i.hoverPoints,n=i.tooltip,a=n&&n.shared?r:o;t&&a&&x(a).forEach((function(e){e.series.isCartesian&&"undefined"===typeof e.plotX&&(t=!1)})),t?n&&a&&x(a).length&&(n.refresh(a),n.shared&&r?r.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))})):o&&(o.setState(o.state,!0),i.axes.forEach((function(t){t.crosshair&&o.series[t.coll]===t&&t.drawCrosshair(null,o)})))):(o&&o.onMouseOut(),r&&r.forEach((function(t){t.setState()})),s&&s.onMouseOut(),n&&n.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=i.hoverPoints=i.hoverPoint=null)},t.prototype.runPointActions=function(t,i){var s=this.chart,o=s.tooltip&&s.tooltip.options.enabled?s.tooltip:void 0,n=!!o&&o.shared,h=i||s.hoverPoint,l=h&&h.series||s.hoverSeries;l=this.getHoverData(h,l,s.series,(!t||"touchmove"!==t.type)&&(!!i||l&&l.directTouch&&this.isDirectTouch),n,t),h=l.hoverPoint;var c=l.hoverPoints;if(i=(l=l.hoverSeries)&&l.tooltipOptions.followPointer,n=n&&l&&!l.noSharedTooltip,h&&(h!==s.hoverPoint||o&&o.isHidden)){if((s.hoverPoints||[]).forEach((function(t){-1===c.indexOf(t)&&t.setState()})),s.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach((function(t){t.setState("hover")})),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!h.series)return;s.hoverPoints=c,s.hoverPoint=h,h.firePointEvent("mouseOver"),o&&o.refresh(n?c:h,t)}else i&&o&&!o.isHidden&&(h=o.getAnchor([{}],t),o.updatePosition({plotX:h[0],plotY:h[1]}));this.unDocMouseMove||(this.unDocMouseMove=a(s.container.ownerDocument,"mousemove",(function(t){var i=r[e.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(t)}))),s.axes.forEach((function(e){var i,o=v((e.crosshair||{}).snap,!0);o&&((i=s.hoverPoint)&&i.series[e.coll]===e||(i=p(c,(function(t){return t.series[e.coll]===e})))),i||!o?e.drawCrosshair(t,i):e.hideCrosshair()}))},t.prototype.scaleGroups=function(t,e){var i,s=this.chart;s.series.forEach((function(o){i=t||o.getPlotBox(),o.xAxis&&o.xAxis.zoomEnabled&&o.group&&(o.group.attr(i),o.markerGroup&&(o.markerGroup.attr(i),o.markerGroup.clip(e?s.clipRect:null)),o.dataLabelsGroup&&o.dataLabelsGroup.attr(i))})),s.clipRect.attr(e||s.clipBox)},t.prototype.setDOMEvents=function(){var t=this.chart.container,i=t.ownerDocument;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.unbindContainerMouseEnter=a(t,"mouseenter",this.onContainerMouseEnter.bind(this)),this.unbindContainerMouseLeave=a(t,"mouseleave",this.onContainerMouseLeave.bind(this)),e.unbindDocumentMouseUp||(e.unbindDocumentMouseUp=a(i,"mouseup",this.onDocumentMouseUp.bind(this))),e.hasTouch&&(a(t,"touchstart",this.onContainerTouchStart.bind(this)),a(t,"touchmove",this.onContainerTouchMove.bind(this)),e.unbindDocumentTouchEnd||(e.unbindDocumentTouchEnd=a(i,"touchend",this.onDocumentTouchEnd.bind(this))))},t.prototype.setHoverChartIndex=function(){var t=this.chart,i=e.charts[v(e.hoverChartIndex,-1)];i&&i!==t&&i.pointer.onContainerMouseLeave({relatedTarget:!0}),i&&i.mouseIsDown||(e.hoverChartIndex=t.index)},t.prototype.touch=function(t,e){var i=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop)&&!i.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type){e=this.pinchDown;var s=!!e[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2))}v(s,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.zoomOption=function(t){var e=this.chart,i=e.options.chart,s=i.zoomType||"";e=e.inverted,/touch/.test(t.type)&&(s=v(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},t}(),e.Pointer=t})),e(i,"Core/MSPointer.js",[i["Core/Globals.js"],i["Core/Pointer.js"],i["Core/Utilities.js"]],(function(t,e,i){function s(){var t=[];return t.item=function(t){return this[t]},d(u,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t}function o(e,i,o,r){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!n[t.hoverChartIndex]||(r(e),r=n[t.hoverChartIndex].pointer,r[i]({type:o,target:e.currentTarget,preventDefault:h,touches:s()}))}var r=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),n=t.charts,a=t.doc,h=t.noop,l=i.addEvent,c=i.css,d=i.objectEach,p=i.removeEvent,u={},f=!!t.win.PointerEvent;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.batchMSEvents=function(t){t(this.chart.container,f?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,f?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,f?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},e.prototype.destroy=function(){this.batchMSEvents(p),t.prototype.destroy.call(this)},e.prototype.init=function(e,i){t.prototype.init.call(this,e,i),this.hasZoom&&c(e.container,{"-ms-touch-action":"none","touch-action":"none"})},e.prototype.onContainerPointerDown=function(t){o(t,"onContainerTouchStart","touchstart",(function(t){u[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},e.prototype.onContainerPointerMove=function(t){o(t,"onContainerTouchMove","touchmove",(function(t){u[t.pointerId]={pageX:t.pageX,pageY:t.pageY},u[t.pointerId].target||(u[t.pointerId].target=t.currentTarget)}))},e.prototype.onDocumentPointerUp=function(t){o(t,"onDocumentTouchEnd","touchend",(function(t){delete u[t.pointerId]}))},e.prototype.setDOMEvents=function(){t.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(l)},e}(e)})),e(i,"Core/Legend.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i){var s=t.animObject,o=t.setAnimation,r=i.addEvent,n=i.css,a=i.defined,h=i.discardElement,l=i.find,c=i.fireEvent,d=i.format,p=i.isNumber,u=i.merge,f=i.pick,g=i.relativeLength,m=i.stableSort,y=i.syncTimeout;t=i.wrap,i=e.isFirefox;var v=e.marginNames,x=e.win,b=function(){function t(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return t.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),r(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=r(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=f(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=u(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=f(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var i=this.chart;this.setOptions(u(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,f(e,!0)&&i.redraw(),c(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var i=this.options,s=t.legendItem,o=t.legendLine,r=t.legendSymbol,n=this.itemHiddenStyle.color;i=e?i.itemStyle.color:n;var a=e&&t.color||n,h=t.options&&t.options.marker,l={fill:a};s&&s.css({fill:i,color:i}),o&&o.attr({stroke:a}),r&&(h&&r.isMarker&&(l=t.pointAttribs(),e||(l.stroke=l.fill=n)),r.attr(l))}c(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,i=this.options,s=i.symbolPadding,o=!i.rtl,r=t._legendItemPos;i=r[0],r=r[1];var n=t.checkbox,h=t.legendGroup;h&&h.element&&(s={translateX:o?i:this.legendWidth-i-2*s-4,translateY:r},o=function(){c(e,"afterPositionItem",{item:t})},a(h.translateY)?h.animate(s,void 0,o):(h.attr(s),o())),n&&(n.x=i,n.y=r)},t.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),e&&h(t.checkbox)},t.prototype.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},t.prototype.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(o){var r=o.checkbox;if(r){var a=s+i+r.y+(this.scrollOffset||0)+3;n(r,{left:t.translateX+o.checkboxOffset+r.x-20+"px",top:a+"px",display:this.proximate||a>s-6&&ah?this.maxItemWidth:t.itemWidth,s&&this.itemX-i+e>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=n+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=n+this.itemY+r,this.lastLineHeight=Math.max(o,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],s?this.itemX+=e:(this.itemY+=n+o+r,this.lastLineHeight=o),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:a):e)+i,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach((function(e){var i=e&&e.options;e&&f(i.showInLegend,!a(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))})),c(this,"afterGetAllItems",{allItems:t}),t},t.prototype.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)},t.prototype.adjustMargins=function(t,e){var i=this.chart,s=this.options,o=this.getAlignment();o&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(r,n){r.test(o)&&!a(t[n])&&(i[v[n]]=Math.max(i[v[n]],i.legend[(n+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][n]*s[n%2?"x":"y"]+f(s.margin,12)+e[n]+(i.titleOffset[n]||0)))}))},t.prototype.proximatePositions=function(){var t=this.chart,i=[],s="left"===this.options.align;this.allItems.forEach((function(e){var o,r=s;if(e.yAxis){e.xAxis.options.reversed&&(r=!r),e.points&&(o=l(r?e.points:e.points.slice(0).reverse(),(function(t){return p(t.plotY)}))),r=this.itemMarginTop+e.legendItem.getBBox().height+this.itemMarginBottom;var n=e.yAxis.top-t.plotTop;e.visible?(o=o?o.plotY:e.yAxis.height,o+=n-.3*r):o=n+e.yAxis.height,i.push({target:o,size:r,item:e})}}),this),e.distribute(i,t.plotHeight),i.forEach((function(e){e.item._legendItemPos[1]=t.plotTop-t.spacing[0]+e.pos}))},t.prototype.render=function(){var t=this.chart,e=t.renderer,i=this.group,s=this.box,o=this.options,r=this.padding;this.itemX=r,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=g(o.width,t.spacingBox.width-r);var n=t.spacingBox.width-2*r-o.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(n/=2),this.maxLegendWidth=this.widthOption||n,i||(this.group=i=e.g("legend").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(i),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle();var a=this.getAllItems();m(a,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),o.reversed&&a.reverse(),this.allItems=a,this.display=n=!!a.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,a.forEach(this.renderItem,this),a.forEach(this.layoutItem,this),a=(this.widthOption||this.offsetWidth)+r;var h=this.lastItemY+this.lastLineHeight+this.titleHeight;h=this.handleOverflow(h),h+=r,s||(this.box=s=e.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(i),s.isNew=!0),t.styledMode||s.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),0r&&!1!==d.enabled?(this.clipHeight=a=Math.max(r-20-this.titleHeight-n,0),this.currentPage=f(this.currentPage,1),this.fullHeight=t,y.forEach((function(t,e){var i=t._legendItemPos[1],s=Math.round(t.legendItem.getBBox().height),o=m.length;(!o||i-m[o-1]>a&&(h||i)!==m[o-1])&&(m.push(h||i),o++),t.pageIx=o-1,h&&(y[e-1].pageIx=o-1),e===y.length-1&&i+s-m[o-1]>a&&i!==h&&(m.push(i),t.pageIx=o),i!==h&&(h=i)})),c||(c=e.clipRect=s.clipRect(0,n,9999,0),e.contentGroup.clip(c)),v(a),g||(this.nav=g=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,u,u).add(g),x("upTracker").on("click",(function(){e.scroll(-1,p)})),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),i.styledMode||this.pager.css(d.style),this.pager.add(g),this.down=s.symbol("triangle-down",0,0,u,u).add(g),x("downTracker").on("click",(function(){e.scroll(1,p)}))),e.scroll(0),t=r):g&&(v(),this.nav=g.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var i=this,r=this.chart,n=this.pages,a=n.length,h=this.currentPage+t;t=this.clipHeight;var l=this.options.navigation,d=this.pager,p=this.padding;h>a&&(h=a),0=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},t.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},t.prototype.init=function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=o(this.id)?this.id:m(),this.resolveColor(),t.chart.pointCount++,a(this,"afterInit"),this},t.prototype.optionsToObject=function(e){var i={},s=this.series,o=s.options.keys,r=o||s.pointArrayMap||["y"],n=r.length,a=0,h=0;if(d(e)||null===e)i[r[0]]=e;else if(c(e))for(!o&&e.length>n&&(s=typeof e[0],"string"===s?i.name=e[0]:"number"===s&&(i.x=e[0]),a++);h=P(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 P(e,t.length-1)},bindAxes:function(){var t,e=this,i=e.options,s=e.chart;b(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(o){s[o].forEach((function(s){t=s.options,(i[o]===t.index||"undefined"!==typeof i[o]&&i[o]===t.id||"undefined"===typeof i[o]&&0===t.index)&&(e.insert(s.series),e[o]=s,s.isDirty=!0)})),e[o]||e.optionalAxis===o||y(18,!0,s)}))})),b(this,"afterBindAxes")},updateParallelArrays:function(t,e){var i=t.series,s=arguments,o=w(e)?function(s){var o="y"===s&&i.toYData?i.toYData(t):t[s];i[s+"Data"][e]=o}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(s,2))};i.parallelArrays.forEach(o)},hasData:function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0=this.cropStart?l-this.cropStart:l),!i&&r[l]&&r[l].touched&&(l=void 0),l},drawLegendSymbol:s.drawLineMarker,updateData:function(t,e){var i,s,o,r=this.options,n=r.dataSorting,a=this.points,h=[],l=this.requireSorting,c=t.length===a.length,p=!0;if(this.xIncrement=null,t.forEach((function(t,e){var s=g(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},d=s.x;s.id||w(d)?(d=this.findPointIndex(s,o),-1===d||"undefined"===typeof d?h.push(t):a[d]&&t!==r.data[d]?(a[d].update(t,!1,null,!1),a[d].touched=!0,l&&(o=d+1)):a[d]&&(a[d].touched=!0),(!c||e!==d||n&&n.enabled||this.hasDerivedData)&&(i=!0)):h.push(t)}),this),i)for(t=a.length;t--;)(s=a[t])&&!s.touched&&s.remove&&s.remove(!1,e);else!c||n&&n.enabled?p=!1:(t.forEach((function(t,e){a[e].update&&t!==a[e].y&&a[e].update(t,!1,null,!1)})),h.length=0);return a.forEach((function(t){t&&(t.touched=!1)})),!!p&&(h.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=d(this.xData),this.autoIncrement()),!0)},setData:function(t,e,i,s){var o,r=this,n=r.points,a=n&&n.length||0,h=r.options,l=r.chart,c=h.dataSorting,d=null,p=r.xAxis;d=h.turboThreshold;var u,f=this.xData,g=this.yData,m=(o=r.pointArrayMap)&&o.length,v=h.keys,x=0,b=1;if(t=t||[],o=t.length,e=P(e,!0),c&&c.enabled&&(t=this.sortData(t)),!1!==s&&o&&a&&!r.cropped&&!r.hasGroupedData&&r.visible&&!r.isSeriesBoosting&&(u=this.updateData(t,i)),!u){if(r.xIncrement=null,r.colorCounter=0,this.parallelArrays.forEach((function(t){r[t+"Data"].length=0})),d&&o>d)if(d=r.getFirstValidPoint(t),w(d))for(i=0;it?1:0})).forEach((function(t,e){t.x=e}),this),e.linkedSeries&&e.linkedSeries.forEach((function(e){var i=e.options,o=i.data;i.dataSorting&&i.dataSorting.enabled||!o||(o.forEach((function(i,r){o[r]=s(e,i),t[r]&&(o[r].x=t[r].x,o[r].index=r)})),e.setData(o,!1))})),t},getProcessedData:function(t){var e=this.xData,i=this.yData,s=e.length,o=0,r=this.xAxis,n=this.options,a=n.cropThreshold,h=t||this.getExtremesFromAll||n.getExtremesFromAll,l=this.isCartesian;t=r&&r.val2lin,n=!(!r||!r.logarithmic);var c=this.requireSorting;if(r){r=r.getExtremes();var d=r.min,p=r.max}if(l&&this.sorted&&!h&&(!a||s>a||this.forceCrop))if(e[s-1]p)e=[],i=[];else if(this.yData&&(e[0]p)){o=this.cropData(this.xData,this.yData,d,p),e=o.xData,i=o.yData,o=o.start;var u=!0}for(a=e.length||1;--a;)if(s=n?t(e[a])-t(e[a-1]):e[a]-e[a-1],0s&&c&&(y(15,!1,this.chart),c=!1);return{xData:e,yData:i,cropped:u,cropStart:o,closestPointRange:f}},processData:function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange},cropData:function(t,e,i,s,o){var r,n=t.length,a=0,h=n;for(o=P(o,this.cropShoulder),r=0;r=i){a=Math.max(0,r-o);break}for(i=r;is){h=i+o;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,o=this.processedXData,r=this.processedYData,n=this.pointClass,a=o.length,h=this.cropStart||0,l=this.hasGroupedData;e=e.keys;var c,d=[];for(s||l||(s=[],s.length=i.length,s=this.data=s),e&&l&&(this.options.keys=!1),c=0;c=h&&(r[i-c]||f)<=l,m&&f)if(m=g.length)for(;m--;)w(g[m])&&(n[a++]=g[m]);else n[a++]=g}return t={dataMin:p(n),dataMax:d(n)},b(this,"afterGetExtremes",{dataExtremes:t}),t},applyExtremes:function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},getFirstValidPoint:function(t){for(var e=null,i=t.length,s=0;null===e&&s=A&&(A=null),k.total=k.stackTotal=O.total,k.percentage=O.total&&k.y/O.total*100,k.stackY=C,this.irregularWidths||O.setOffset(this.pointXOffset||0,this.barW||0)),k.yBottom=g(A)?u(a.translate(A,0,1,0,1),-1e5,1e5):null,c&&(C=this.modifyValue(C,k)),k.plotY="number"===typeof C&&1/0!==C?u(a.translate(C,0,1,0,1),-1e5,1e5):void 0,k.isInside=this.isPointInside(k),k.clientX=p?f(o.translate(S,0,0,0,1,d)):e,k.negative=k[v]<(i[v+"Threshold"]||m||0),k.category=r&&"undefined"!==typeof r[k.x]?r[k.x]:k.x,!k.isNull&&!1!==k.visible){"undefined"!==typeof D&&(x=Math.min(x,Math.abs(e-D)));var D=e}k.zone=this.zones.length&&k.getZone(),!k.graphic&&this.group&&n&&(k.isNew=!0)}this.closestPointRangePx=x,b(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))&&(!1!==t.visible&&(i||!t.isNull))}))},getClipBox:function(t,e){var i=this.options,s=this.chart,o=s.inverted,r=this.xAxis,n=r&&this.yAxis,a=s.options.chart.scrollablePlotArea||{};return t&&!1===i.clip&&n?t=o?{y:-s.chartWidth+n.len+n.pos,height:s.chartWidth,width:s.chartHeight,x:-s.chartHeight+r.len+r.pos}:{y:-n.pos,height:s.chartHeight,width:s.chartWidth,x:-r.pos}:(t=this.clipBox||s.clipBox,e&&(t.width=s.plotSizeX,t.x=(s.scrollablePixelsX||0)*(a.scrollPositionX||0))),e?{width:t.width,x:t.x}:t},setClip:function(t){var e=this.chart,i=this.options,s=e.renderer,o=e.inverted,r=this.clipBox,n=this.getClipBox(t),a=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,n.height,i.xAxis,i.yAxis].join(),h=e[a],l=e[a+"m"];t&&(n.width=0,o&&(n.x=e.plotHeight+(!1!==i.clip?0:e.plotTop))),h?e.hasLoaded||h.attr(n):(t&&(e[a+"m"]=l=s.clipRect(o?e.plotSizeX+99:-99,o?-e.plotLeft:-e.plotTop,99,o?e.chartWidth:e.chartHeight)),e[a]=h=s.clipRect(n),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||r?h:e.clipRect),this.markerGroup.clip(l),this.sharedClipKey=a),t||(h.count[this.index]&&(delete h.count[this.index],--h.count.length),0===h.count.length&&a&&e[a]&&(r||(e[a]=e[a].destroy()),e[a+"m"]&&(e[a+"m"]=e[a+"m"].destroy())))},animate:function(t){var e=this.chart,i=h(this.options.animation);if(!e.hasRendered)if(t)this.setClip(i);else{var s=this.sharedClipKey;t=e[s];var o=this.getClipBox(i,!0);t&&t.animate(o,i),e[s+"m"]&&e[s+"m"].animate({width:o.width+99,x:o.x-(e.inverted?0:99)},i)}},afterAnimate:function(){this.setClip(),b(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e,i=this.points,s=this.chart,o=this.options.marker,r=this[this.specialGroup]||this.markerGroup,n=this.xAxis,a=P(o.enabled,!(n&&!n.isRadial)||null,this.closestPointRangePx>=o.enabledThreshold*o.radius);if(!1!==o.enabled||this._hasPointMarkers)for(t=0;tr&&e.shadow)),a&&(a.startX=i.xMap,a.isArea=i.isArea)}))},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,o,r,n,a,h=this,l=this.chart,c=l.renderer,d=this.zones,p=this.clips||[],f=this.graph,g=this.area,m=Math.max(l.chartWidth,l.chartHeight),y=this[(this.zoneAxis||"y")+"Axis"],v=l.inverted,x=!1;if(d.length&&(f||g)&&y&&"undefined"!==typeof y.min){var b=y.reversed,k=y.horiz;f&&!this.showLine&&f.hide(),g&&g.hide();var M=y.getExtremes();d.forEach((function(d,S){t=b?k?l.plotWidth:0:k?0:y.toPixels(M.min)||0,t=u(P(e,t),0,m),e=u(Math.round(y.toPixels(P(d.value,M.max),!0)||0),0,m),x&&(t=e=y.toPixels(M.max)),s=Math.abs(t-e),o=Math.min(t,e),r=Math.max(t,e),y.isXAxis?(i={x:v?r:o,y:0,width:s,height:m},k||(i.x=l.plotHeight-i.x)):(i={x:0,y:v?r:o,width:m,height:s},k&&(i.y=l.plotWidth-i.y)),v&&c.isVML&&(i=y.isXAxis?{x:0,y:b?o:r,height:i.width,width:l.chartWidth}:{x:i.y-l.plotLeft-l.spacingBox.x,y:0,width:i.height,height:l.chartHeight}),p[S]?p[S].animate(i):p[S]=c.clipRect(i),n=h["zone-area-"+S],a=h["zone-graph-"+S],f&&a&&a.clip(p[S]),g&&n&&n.clip(p[S]),x=d.value>M.max,h.resetZones&&0===e&&(e=void 0)})),this.clips=p}else h.visible&&(f&&f.show(!0),g&&g.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(!i.isRadialSeries&&t))}))}var i=this,s=i.chart;i.xAxis&&(i.eventsToUnbind.push(c(s,"resize",e)),e(),i.invertGroups=e)},plotGroup:function(t,e,i,s,o){var r=this[t],n=!r;return i={visibility:i,zIndex:s||.1},"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(i.opacity=this.opacity),n&&(this[t]=r=this.chart.renderer.g().add(o)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(g(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(i)[n?"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}},removeEvents:function(t){t?this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind.length=0):L(this)},render:function(){var t=this,e=t.chart,i=t.options,s=h(i.animation),o=!t.finishedAnimating&&e.renderer.isSVG&&s.duration,r=t.visible?"inherit":"hidden",n=i.zIndex,a=t.hasRendered,l=e.seriesGroup,c=e.inverted;b(this,"render");var d=t.plotGroup("group","series",r,n,l);t.markerGroup=t.plotGroup("markerGroup","markers",r,n,l),o&&t.animate&&t.animate(!0),d.inverted=!(!t.isCartesian&&!t.invertable)&&c,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(c),!1===i.clip||t.sharedClipKey||a||d.clip(e.clipRect),o&&t.animate&&t.animate(),a||(o&&s.defer&&(o+=s.defer),t.animationTimeout=E((function(){t.afterAnimate()}),o||0)),t.isDirty=!1,t.hasRendered=!0,b(t,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,s=this.xAxis,o=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:P(s&&s.left,t.plotLeft),translateY:P(o&&o.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,o=this.chart.inverted;return this.searchKDTree({clientX:o?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:o?s.len-t.chartX+s.pos:t.chartY-s.pos},e,t)},buildKDTree:function(t){function e(t,s,o){var r;if(r=t&&t.length){var n=i.kdAxisArray[s%o];return t.sort((function(t,e){return t[n]-e[n]})),r=Math.floor(r/2),{point:t[r],left:e(t.slice(0,r),s+1,o),right:e(t.slice(r+1),s+1,o)}}}this.buildingKdTree=!0;var i=this,s=-1c?"left":"right",p=0>c?"right":"left",e[u]&&(u=s(t,e[u],i+1,h),d=u[a]u;)f--;this.updateParallelArrays(p,"splice",f,0,0),this.updateParallelArrays(p,f),h&&p.name&&(h[u]=p.name),c.splice(f,0,t),l&&(this.data.splice(f,0,null),this.processData()),"point"===r.legendType&&this.generatePoints(),i&&(n[0]&&n[0].remove?n[0].remove(!1):(n.shift(),this.updateParallelArrays(p,"shift"),c.shift())),!1!==o&&k(this,"addPoint",{point:p}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(s)},removePoint:function(t,e,i){var s=this,o=s.data,r=o[t],n=s.points,a=s.chart,h=function(){n&&n.length===o.length&&n.splice(t,1),o.splice(t,1),s.options.data.splice(t,1),s.updateParallelArrays(r||{series:s},"splice",t,1),r&&r.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&a.redraw()};d(i,a),e=P(e,!0),r?r.firePointEvent("remove",null,h):h()},remove:function(t,e,i,s){function o(){r.destroy(s),r.remove=null,n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(),P(t,!0)&&n.redraw(e)}var r=this,n=r.chart;!1!==i?k(r,"remove",null,o):o()},update:function(t,e){t=o.cleanRecursively(t,this.userOptions),k(this,"update",{options:t});var i,s=this,r=s.chart,n=s.userOptions,a=s.initialType||s.type,h=r.options.plotOptions,l=t.type||n.type||r.options.chart.type,c=!(this.hasDerivedData||l&&l!==this.type||"undefined"!==typeof t.pointStart||"undefined"!==typeof t.pointInterval||s.hasOptionChanged("dataGrouping")||s.hasOptionChanged("pointStart")||s.hasOptionChanged("pointInterval")||s.hasOptionChanged("pointIntervalUnit")||s.hasOptionChanged("keys")),d=p[a].prototype,u=["eventOptions","navigatorSeries","baseSeries"],f=s.finishedAnimating&&{animation:!1},g={};for(i in c&&(u.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&u.push("area","graph"),s.parallelArrays.forEach((function(t){u.push(t+"Data")})),t.data&&(t.dataSorting&&b(s.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=A(n,f,{index:"undefined"===typeof n.index?s.index:n.index,pointStart:P(h&&h.series&&h.series.pointStart,n.pointStart,s.xData[0])},!c&&{data:s.options.data},t),c&&t.data&&(t.data=s.options.data),u=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(u),u.forEach((function(t){u[t]=s[t],delete s[t]})),s.remove(!1,null,!1,!0),d)s[i]=void 0;if(p[l||a]?b(s,p[l||a].prototype):x(17,!0,r,{missingModuleFor:l||a}),u.forEach((function(t){s[t]=u[t]})),s.init(r,t),c&&this.points){var m=s.options;!1===m.visible?(g.graphic=1,g.dataLabel=1):s._hasPointLabels||(t=m.marker,n=m.dataLabels,t&&(!1===t.enabled||"symbol"in t)&&(g.graphic=1),n&&!1===n.enabled&&(g.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(g).length&&t.destroyElements(g),!1===m.showInLegend&&t.legendItem&&r.legend.destroyItem(t))}),this)}s.initialType=a,r.linkSeries(),k(this,"afterUpdate"),P(e,!0)&&r.redraw(!!c&&void 0)},setName:function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},hasOptionChanged:function(t){var e=this.options[t],i=this.chart.options.plotOptions,s=this.userOptions[t];return s?e!==s:e!==P(i&&i[this.type]&&i[this.type][t],i&&i.series&&i.series[t],e)}}),b(e.prototype,{update:function(t,e){var i=this.chart,s=t&&t.events||{};t=A(this.userOptions,t),i.options[this.coll].indexOf&&(i.options[this.coll][i.options[this.coll].indexOf(this.userOptions)]=t),T(i.options[this.coll].events,(function(t,e){"undefined"===typeof s[e]&&(s[e]=void 0)})),this.destroy(!0),this.init(i,b(t,{events:s})),i.isDirtyBox=!0,P(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,s=this.series,o=s.length;o--;)s[o]&&s[o].remove(!1);v(e.axes,this),v(e[i],this),M(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,P(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})})),e(i,"Series/AreaSeries.js",[i["Core/Series/Series.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Mixins/LegendSymbol.js"],i["Core/Utilities.js"]],(function(t,e,i,s,o){var r=e.parse,n=o.objectEach,a=o.pick,h=i.Series;t.seriesType("area","line",{threshold:0},{singleStacks:!1,getStackPoints:function(t){var e,i=[],s=[],o=this.xAxis,r=this.yAxis,h=r.stacking.stacks[this.stackKey],l={},c=this.index,d=r.series,p=d.length,u=a(r.options.reversedStacks,!0)?1:-1;if(t=t||this.points,this.options.stacking){for(e=0;et&&c>r?(c=Math.max(t,r),d=2*r-c):cs&&d>r?(d=Math.max(s,r),c=2*r-d):d=Math.abs(e)&&.5t.closestPointRange*t.xAxis.transA;s=t.borderWidth=g(i.borderWidth,s?0:1);var o=t.xAxis,n=t.yAxis,a=i.threshold,h=t.translatedThreshold=n.getThreshold(a),d=g(i.minPointLength,5),p=t.getColumnMetrics(),f=p.width,m=t.barW=Math.max(f,1+2*s),y=t.pointXOffset=p.offset,v=t.dataMin,x=t.dataMax;e.inverted&&(h-=.5),i.pointPadding&&(m=Math.ceil(m)),r.prototype.translate.apply(t),t.points.forEach((function(s){var r=g(s.yBottom,h),b=999+Math.abs(r),k=f,M=s.plotX||0;b=l(s.plotY,-b,n.len+b);var S=M+y,w=m,C=Math.min(b,r),A=Math.max(b,r)-C;if(d&&Math.abs(A)d?r-d:h-(T?d:0)}c(s.options.pointWidth)&&(k=w=Math.ceil(s.options.pointWidth),S-=Math.round((k-f)/2)),i.centerInCategory&&(S=t.adjustForMissingColumns(S,k,s,p)),s.barX=S,s.pointWidth=k,s.tooltipPos=e.inverted?[n.len+n.pos-e.plotLeft-b,o.len+o.pos-e.plotTop-(M||0)-y-w/2,A]:[S+w/2,b+n.pos-e.plotTop,A],s.shapeType=t.pointClass.prototype.shapeType||"rect",s.shapeArgs=t.crispCol.apply(t,s.isNull?[S,h,w,0]:[S,C,w,A])}))},getSymbol:t,drawLegendSymbol:o.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var i=this.options,s=this.pointAttrToOptions||{},o=s.stroke||"borderColor",r=s["stroke-width"]||"borderWidth",n=t&&t.color||this.color,a=t&&t[o]||i[o]||this.color||n,l=t&&t[r]||i[r]||this[r]||0;s=t&&t.options.dashStyle||i.dashStyle;var c=g(t&&t.opacity,i.opacity,1);if(t&&this.zones.length){var d=t.getZone();n=t.options.color||d&&(d.color||t.nonZonedColor)||this.color,d&&(a=d.borderColor||a,s=d.dashStyle||s,l=d.borderWidth||l)}return e&&t&&(t=f(i.states[e],t.options.states&&t.options.states[e]||{}),e=t.brightness,n=t.color||"undefined"!==typeof e&&h(n).brighten(t.brightness).get()||n,a=t[o]||a,l=t[r]||l,s=t.dashStyle||s,c=g(t.opacity,c)),o={fill:n,stroke:a,"stroke-width":l,opacity:c},s&&(o.dashstyle=s),o},drawPoints:function(){var t,e=this,i=this.chart,s=e.options,o=i.renderer,r=s.animationLimit||250;e.points.forEach((function(n){var a=n.graphic,h=!!a,l=a&&i.pointCount
{series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){(this.options.lineWidth||0===this.options.lineWidth&&this.graph&&this.graph.strokeWidth())&&s.prototype.drawGraph.call(this)},applyJitter:function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach((function(s,o){["x","y"].forEach((function(r,n){var a="plot"+r.toUpperCase();if(e[r]&&!s.isNull){var h=t[r+"Axis"],l=e[r]*h.transA;if(h&&!h.isLog){var c=Math.max(0,s[a]-l);h=Math.min(h.len,s[a]+l),n=1e4*Math.sin(o+n*i),s[a]=c+(h-c)*(n-Math.floor(n)),"x"===r&&(s.clientX=s.plotX)}}}))}))}}),i(s,"afterTranslate",(function(){this.applyJitter&&this.applyJitter()}))})),e(i,"Mixins/CenteredSeries.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.isNumber,s=e.pick,o=e.relativeLength,r=t.deg2rad;return t.CenteredSeriesMixin={getCenter:function(){var e=this.options,i=this.chart,r=2*(e.slicedOffset||0),n=i.plotWidth-2*r,a=i.plotHeight-2*r,h=e.center,l=Math.min(n,a),c=e.size,d=e.innerSize||0;for("string"===typeof c&&(c=parseFloat(c)),"string"===typeof d&&(d=parseFloat(d)),e=[s(h[0],"50%"),s(h[1],"50%"),s(c&&0>c?void 0:e.size,"100%"),s(d&&0>d?void 0:e.innerSize||0,"0%")],!i.angular||this instanceof t.Series||(e[3]=0),h=0;4>h;++h)c=e[h],i=2>h||2===h&&/%$/.test(c),e[h]=o(c,[n,a,l,e[2]][h])+(i?r:0);return e[3]>e[2]&&(e[3]=e[2]),e},getStartAndEndRadians:function(t,e){return t=i(t)?t:0,e=i(e)&&e>t&&360>e-t?e:t+360,{start:r*(t+-90),end:r*(e+-90)}}}})),e(i,"Series/PieSeries.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Series/Series.js"],i["Mixins/CenteredSeries.js"],i["Core/Globals.js"],i["Mixins/LegendSymbol.js"],i["Series/LineSeries.js"],i["Core/Series/Point.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],(function(t,e,i,s,o,r,n,a,h){var l=t.setAnimation,c=i.getStartAndEndRadians;t=s.noop;var d=h.addEvent,p=h.clamp,u=h.defined,f=h.fireEvent,g=h.isNumber,m=h.merge,y=h.pick,v=h.relativeLength;e.seriesType("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},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:e.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,o=t.shapeArgs;i&&o&&(i.attr({r:y(t.startR,e.center&&e.center[3]/2),start:s,end:s}),i.animate({r:o.r,start:o.start,end:o.end},e.options.animation))}))},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var t,e=0,i=this.points,s=i.length,o=this.options.ignoreHiddenPoint;for(t=0;t1.5*Math.PI?g-=2*Math.PI:g<-Math.PI/2&&(g+=2*Math.PI),p.slicedTranslation={translateX:Math.round(Math.cos(g)*s),translateY:Math.round(Math.sin(g)*s)};var m=Math.cos(g)*t[2]/2,x=Math.sin(g)*t[2]/2;p.tooltipPos=[t[0]+.7*m,t[1]+.7*x],p.half=g<-Math.PI/2||g>Math.PI/2?1:0,p.angle=g,u=Math.min(o,p.labelDistance/5),p.labelPosition={natural:{x:t[0]+m+Math.cos(g)*p.labelDistance,y:t[1]+x+Math.sin(g)*p.labelDistance},final:{},alignment:0>p.labelDistance?"center":p.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+m+Math.cos(g)*u,y:t[1]+x+Math.sin(g)*u},touchingSliceAt:{x:t[0]+m,y:t[1]+x}}}}f(this,"afterTranslate")},drawEmpty:function(){var t=this.startAngleRad,e=this.endAngleRad,i=this.options;if(0===this.total&&this.center){var s=this.center[0],o=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(s,o,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:a.prototype.symbols.arc(s,o,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":i.borderWidth,fill:i.fillColor||"none",stroke:i.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},redrawPoints:function(){var t,e,i,s,o=this,r=o.chart,n=r.renderer,a=o.options.shadow;this.drawEmpty(),!a||o.shadowGroup||r.styledMode||(o.shadowGroup=n.g("shadow").attr({zIndex:-1}).add(o.group)),o.points.forEach((function(h){var l={};if(e=h.graphic,!h.isNull&&e){if(s=h.shapeArgs,t=h.getTranslate(),!r.styledMode){var c=h.shadowGroup;a&&!c&&(c=h.shadowGroup=n.g("shadow").add(o.shadowGroup)),c&&c.attr(t),i=o.pointAttribs(h,h.selected&&"select")}h.delayedRendering?(e.setRadialReference(o.center).attr(s).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(a,c),h.delayedRendering=!1):(e.setRadialReference(o.center),r.styledMode||m(!0,l,i),m(!0,l,s,t),e.animate(l)),e.attr({visibility:h.visible?"inherit":"hidden"}),e.addClass(h.getClassName())}else e&&(h.graphic=e.destroy())}))},drawPoints:function(){var t=this.chart.renderer;this.points.forEach((function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))},searchPoint:t,sortByAngle:function(t,e){t.sort((function(t,i){return"undefined"!==typeof t.angle&&(i.angle-t.angle)*e}))},drawLegendSymbol:o.drawRectangle,getCenter:i.getCenter,getSymbol:t,drawGraph:null},{init:function(){n.prototype.init.apply(this,arguments);var t=this;t.name=y(t.name,"Slice");var e=function(e){t.slice("select"===e.type)};return d(t,"select",e),d(t,"unselect",e),t},isValid:function(){return g(this.y)&&0<=this.y},setVisible:function(t,e){var i=this,s=i.series,o=s.chart,r=s.options.ignoreHiddenPoint;e=y(e,r),t!==i.visible&&(i.visible=i.options.visible=t="undefined"===typeof 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,i){var s=this.series;l(i,s.chart),y(e,!0),this.sliced=this.options.sliced=u(t)?t:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic&&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})},connectorShapes:{fixedOffset:function(t,e,i){var s=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],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],["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(t,e,i){e=e.touchingSliceAt;var s=this.series,o=s.center[0],r=s.chart.plotWidth,n=s.chart.plotLeft;s=t.alignment;var a=this.shapeArgs.r;return i=v(i.crookDistance,1),r="left"===s?o+a+(r+n-o-a)*(1-i):n+(o-a)*i,i=["L",r,t.y],o=!0,("left"===s?r>t.x||re.x)&&(o=!1),t=[["M",t.x,t.y]],o&&t.push(i),t.push(["L",e.x,e.y]),t}},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,"Core/Series/DataLabels.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Globals.js"],i["Core/Series/CartesianSeries.js"],i["Core/Utilities.js"]],(function(t,e,i,s){var o=t.getDeferredAnimation;t=e.noop;var r=e.seriesTypes,n=s.arrayMax,a=s.clamp,h=s.defined,l=s.extend,c=s.fireEvent,d=s.format,p=s.isArray,u=s.merge,f=s.objectEach,g=s.pick,m=s.relativeLength,y=s.splat,v=s.stableSort;e.distribute=function(t,i,s){function o(t,e){return t.target-e.target}var r,n=!0,h=t,l=[],c=0,d=h.reducedLen||i;for(r=t.length;r--;)c+=t[r].size;if(c>d){for(v(t,(function(t,e){return(e.rank||0)-(t.rank||0)})),c=r=0;c<=d;)c+=t[r].size,r++;l=t.splice(r-1,t.length)}for(v(t,o),t=t.map((function(t){return{size:t.size,targets:[t.target],align:g(t.align,.5)}}));n;){for(r=t.length;r--;)n=t[r],c=(Math.min.apply(0,n.targets)+Math.max.apply(0,n.targets))/2,n.pos=a(c-n.size*n.align,0,i-n.size);for(r=t.length,n=!1;r--;)0t[r].pos&&(t[r-1].size+=t[r].size,t[r-1].targets=t[r-1].targets.concat(t[r].targets),t[r-1].align=.5,t[r-1].pos+t[r-1].size>i&&(t[r-1].pos=i-t[r-1].size),t.splice(r,1),n=!0)}h.push.apply(h,l),r=0,t.some((function(t){var o=0;if(t.targets.some((function(){if(h[r].pos=t.pos+o,"undefined"!==typeof s&&Math.abs(h[r].pos-h[r].target)>s)return h.slice(0,r+1).forEach((function(t){delete t.pos})),h.reducedLen=(h.reducedLen||i)-.1*i,h.reducedLen>.1*i&&e.distribute(h,i,s),!0;o+=h[r].size,r++})))return!0})),v(h,o)},i.prototype.drawDataLabels=function(){function t(t,e){var i=e.filter;return!i||(e=i.operator,t=t[i.property],i=i.value,">"===e&&t>i||"<"===e&&t="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}function e(t,e){var i,s=[];if(p(t)&&!p(e))s=t.map((function(t){return u(t,e)}));else if(p(e)&&!p(t))s=e.map((function(e){return u(t,e)}));else if(p(t)||p(e))for(i=Math.max(t.length,e.length);i--;)s[i]=u(t[i],e[i]);else s=u(t,e);return s}var i,s=this,r=s.chart,n=s.options,a=n.dataLabels,l=s.points,m=s.hasRendered||0,v=a.animation;v=a.defer?o(r,v,s):{defer:0,duration:0};var x=r.renderer;if(a=e(e(r.options.plotOptions&&r.options.plotOptions.series&&r.options.plotOptions.series.dataLabels,r.options.plotOptions&&r.options.plotOptions[s.type]&&r.options.plotOptions[s.type].dataLabels),a),c(this,"drawDataLabels"),p(a)||a.enabled||s._hasPointLabels){var b=s.plotGroup("dataLabelsGroup","data-labels",m?"inherit":"hidden",a.zIndex||6);b.attr({opacity:+m}),!m&&(m=s.dataLabelsGroup)&&(s.visible&&b.show(!0),m[n.animation?"animate":"attr"]({opacity:1},v)),l.forEach((function(o){i=y(e(a,o.dlOptions||o.options&&o.options.dataLabels)),i.forEach((function(e,i){var a=e.enabled&&(!o.isNull||o.dataLabelOnNull)&&t(o,e),l=o.dataLabels?o.dataLabels[i]:o.dataLabel,c=o.connectors?o.connectors[i]:o.connector,p=g(e.distance,o.labelDistance),u=!l;if(a){var m=o.getLabelConfig(),y=g(e[o.formatPrefix+"Format"],e.format);m=h(y)?d(y,m,r):(e[o.formatPrefix+"Formatter"]||e.formatter).call(m,e),y=e.style;var v=e.rotation;r.styledMode||(y.color=g(e.color,y.color,s.color,"#000000"),"contrast"===y.color?(o.contrastColor=x.getContrast(o.color||s.color),y.color=!h(p)&&e.inside||0>p||n.stacking?o.contrastColor:"#000000"):delete o.contrastColor,n.cursor&&(y.cursor=n.cursor));var k={r:e.borderRadius||0,rotation:v,padding:e.padding,zIndex:1};r.styledMode||(k.fill=e.backgroundColor,k.stroke=e.borderColor,k["stroke-width"]=e.borderWidth),f(k,(function(t,e){"undefined"===typeof t&&delete k[e]}))}!l||a&&h(m)?a&&h(m)&&(l?k.text=m:(o.dataLabels=o.dataLabels||[],l=o.dataLabels[i]=v?x.text(m,0,-9999,e.useHTML).addClass("highcharts-data-label"):x.label(m,0,-9999,e.shape,null,null,e.useHTML,null,"data-label"),i||(o.dataLabel=l),l.addClass(" highcharts-data-label-color-"+o.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":""))),l.options=e,l.attr(k),r.styledMode||l.css(y).shadow(e.shadow),l.added||l.add(b),e.textPath&&!e.useHTML&&(l.setTextPath(o.getDataLabelPath&&o.getDataLabelPath(l)||o.graphic,e.textPath),o.dataLabelPath&&!e.textPath.enabled&&(o.dataLabelPath=o.dataLabelPath.destroy())),s.alignDataLabel(o,l,e,null,u)):(o.dataLabel=o.dataLabel&&o.dataLabel.destroy(),o.dataLabels&&(1===o.dataLabels.length?delete o.dataLabels:delete o.dataLabels[i]),i||delete o.dataLabel,c&&(o.connector=o.connector.destroy(),o.connectors&&(1===o.connectors.length?delete o.connectors:delete o.connectors[i])))}))}))}c(this,"afterDrawDataLabels")},i.prototype.alignDataLabel=function(t,e,i,s,o){var r=this,n=this.chart,a=this.isCartesian&&n.inverted,h=this.enabledDataSorting,c=g(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),d=g(t.plotY,-9999),p=e.getBBox(),u=i.rotation,f=i.align,m=n.isInsidePlot(c,Math.round(d),a),y="justify"===g(i.overflow,h?"none":"justify"),v=this.visible&&!1!==t.visible&&(t.series.forceDL||h&&!y||m||i.inside&&s&&n.isInsidePlot(c,a?s.x+1:s.y+s.height-1,a)),x=function(i){h&&r.xAxis&&!y&&r.setDataLabelStartPos(t,e,o,m,i)};if(v){var b=n.renderer.fontMetrics(n.styledMode?void 0:i.style.fontSize,e).b;s=l({x:a?this.yAxis.len-d:c,y:Math.round(a?this.xAxis.len-c:d),width:0,height:0},s),l(i,{width:p.width,height:p.height}),u?(y=!1,c=n.renderer.rotCorr(b,u),c={x:s.x+(i.x||0)+s.width/2+c.x,y:s.y+(i.y||0)+{top:0,middle:.5,bottom:1}[i.verticalAlign]*s.height},x(c),e[o?"attr":"animate"](c).attr({align:f}),x=(u+720)%360,x=180x,"left"===f?c.y-=x?p.height:0:"center"===f?(c.x-=p.width/2,c.y-=p.height/2):"right"===f&&(c.x-=p.width,c.y-=x?0:p.height),e.placed=!0,e.alignAttr=c):(x(s),e.align(i,null,s),c=e.alignAttr),y&&0<=s.height?this.justifyDataLabel(e,i,c,p,s,o):g(i.crop,!0)&&(v=n.isInsidePlot(c.x,c.y)&&n.isInsidePlot(c.x+p.width,c.y+p.height)),i.shape&&!u&&e[o?"attr":"animate"]({anchorX:a?n.plotWidth-t.plotY:t.plotX,anchorY:a?n.plotHeight-t.plotX:t.plotY})}o&&h&&(e.placed=!1),v||h&&!y||(e.hide(!0),e.placed=!1)},i.prototype.setDataLabelStartPos=function(t,e,i,s,o){var r=this.chart,n=r.inverted,a=this.xAxis,h=a.reversed,l=n?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,a=n?o.x:h?-l-t:a.width-l+t,o=n?h?this.yAxis.height-l+t:-l-t:o.y,e.startXPos=a,e.startYPos=o,s?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),r.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)},i.prototype.justifyDataLabel=function(t,e,i,s,o,r){var n=this.chart,a=e.align,h=e.verticalAlign,l=t.box?0:t.padding||0,c=e.x;c=void 0===c?0:c;var d=e.y,p=void 0===d?0:d;if(d=i.x+l,0>d){"right"===a&&0<=c?(e.align="left",e.inside=!0):c-=d;var u=!0}return d=i.x+s.width-l,d>n.plotWidth&&("left"===a&&0>=c?(e.align="right",e.inside=!0):c+=n.plotWidth-d,u=!0),d=i.y+l,0>d&&("bottom"===h&&0<=p?(e.verticalAlign="top",e.inside=!0):p-=d,u=!0),d=i.y+s.height-l,d>n.plotHeight&&("top"===h&&0>=p?(e.verticalAlign="bottom",e.inside=!0):p+=n.plotHeight-d,u=!0),u&&(e.x=c,e.y=p,t.placed=!r,t.align(e,void 0,o)),u},r.pie&&(r.pie.prototype.dataLabelPositioners={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,s){return t.getX(ie.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 o,r=0;return t.forEach((function(t){o=t.dataLabel.getBBox().width,o>r&&(r=o)})),e?r+s:i-r-s}},r.pie.prototype.drawDataLabels=function(){var t,s,o,r,a,l,c,d,p,f,m,y,v=this,x=v.data,b=v.chart,k=v.options.dataLabels||{},M=k.connectorPadding,S=b.plotWidth,w=b.plotHeight,C=b.plotLeft,A=Math.round(b.chartWidth/3),T=v.center,P=T[2]/2,L=T[1],O=[[],[]],E=[0,0,0,0],D=v.dataLabelPositioners;v.visible&&(k.enabled||v._hasPointLabels)&&(x.forEach((function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),i.prototype.drawDataLabels.apply(v),x.forEach((function(t){t.dataLabel&&(t.visible?(O[t.half].push(t),t.dataLabel._pos=null,!h(k.style.width)&&!h(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>A&&(t.dataLabel.css({width:Math.round(.7*A)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),O.forEach((function(i,s){var o,n=i.length,u=[];if(n){if(v.sortByAngle(i,s-.5),0S-M&&0===s&&(x=Math.round(d+a-S+M),E[1]=Math.max(x,E[1])),0>p-c/2?E[0]=Math.max(Math.round(c/2-p),E[0]):p+c/2>w&&(E[2]=Math.max(Math.round(p+c/2-w),E[2])),r.sideOverflow=x)}}})),0===n(E)||this.verifyDataLabelOverflow(E))&&(this.placeDataLabels(),this.points.forEach((function(t){var e;(y=u(k,t.options.dataLabels),s=g(y.connectorWidth,1))&&(o=t.connector,(r=t.dataLabel)&&r._pos&&t.visible&&0g(this.translatedThreshold,a.yAxis.len)),c=g(s.inside,!!this.options.stacking);h&&(o=u(h),0>o.y&&(o.height+=o.y,o.y=0),h=o.y+o.height-a.yAxis.len,0=d.x+d.width||p.x+p.width<=d.x||p.y>=d.y+d.height||p.y+p.height<=d.y||((c.labelrank=a&&r<=h||l||!f(r))&&(c=!0),s[l?"zoomX":"zoomY"]&&c&&(e=n.zoom(t.min,t.max),n.displayBtn&&(o=!0))}));var n=i.resetZoomButton;o&&!n?i.showResetZoom():!o&&b(n)&&(i.resetZoomButton=n.destroy()),e&&i.redraw(S(i.options.chart.animation,t&&t.animation,100>i.pointCount))},pan:function(t,e){var i,s=this,o=s.hoverPoints,r=s.options.chart,n=s.options.mapNavigation&&s.options.mapNavigation.enabled;e="object"===typeof e?e:{enabled:e,type:"x"},r&&r.panning&&(r.panning=e);var a=e.type;m(this,"pan",{originalEvent:t},(function(){o&&o.forEach((function(t){t.setState()}));var e=[1];"xy"===a?e=[1,0]:"y"===a&&(e=[0]),e.forEach((function(e){var o=s[e?"xAxis":"yAxis"][0],r=o.horiz,h=t[r?"chartX":"chartY"];r=r?"mouseDownX":"mouseDownY";var l=s[r],c=(o.pointRange||0)/2,d=o.reversed&&!s.inverted||!o.reversed&&s.inverted?-1:1,p=o.getExtremes(),u=o.toValue(l-h,!0)+c*d;d=o.toValue(l+o.len-h,!0)-c*d;var f=d=d&&u<=c&&(o.setExtremes(l,u,!1,!1,{trigger:"pan"}),s.resetZoomButton||n||l===d||u===c||!a.match("y")||(s.showResetZoom(),o.displayBtn=!1),i=!0),s[r]=h)})),i&&s.redraw(!1),u(s.container,{cursor:"move"})}))}}),g(n.prototype,{select:function(t,e){var i=this,s=i.series,o=s.chart;this.selectedStaging=t=S(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||o.getSelectedPoints().forEach((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(o.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 t=this,e=k(t.series.options.point,t.options).events;t.events=e,M(e,(function(e,i){v(e)&&d(t,i,e)})),this.hasImportedEvents=!0}},setState:function(t,e){var i,s=this.series,o=this.state,r=s.options.states[t||"normal"]||{},n=c.plotOptions[s.type].marker&&s.options.marker,a=n&&!1===n.enabled,h=n&&n.states&&n.states[t||"normal"]||{},l=!1===h.enabled,d=s.stateMarkerGraphic,p=this.marker||{},u=s.chart,f=s.halo,y=n&&s.markerAttribs;if(t=t||"",!(t===this.state&&!e||this.selected&&"select"!==t||!1===r.enabled||t&&(l||a&&!1===h.enabled)||t&&p.states&&p.states[t]&&!1===p.states[t].enabled)){if(this.state=t,y&&(i=s.markerAttribs(this,t)),this.graphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),t&&this.graphic.addClass("highcharts-point-"+t),!u.styledMode){var v=s.pointAttribs(this,t),x=S(u.options.chart.animation,r.animation);s.options.inactiveOtherPoints&&v.opacity&&((this.dataLabels||[]).forEach((function(t){t&&t.animate({opacity:v.opacity},x)})),this.connector&&this.connector.animate({opacity:v.opacity},x)),this.graphic.animate(v,x)}i&&this.graphic.animate(i,S(u.options.chart.animation,h.animation,n.animation)),d&&d.hide()}else t&&h&&(o=p.symbol||s.symbol,d&&d.currentSymbol!==o&&(d=d.destroy()),i&&(d?d[e?"animate":"attr"]({x:i.x,y:i.y}):o&&(s.stateMarkerGraphic=d=u.renderer.symbol(o,i.x,i.y,i.width,i.height).add(s.markerGroup),d.currentSymbol=o)),!u.styledMode&&d&&d.attr(s.pointAttribs(this,t))),d&&(d[t&&this.isInside?"show":"hide"](),d.element.point=this);t=r.halo,r=(d=this.graphic||d)&&d.visibility||"inherit",t&&t.size&&d&&"hidden"!==r&&!this.isCluster?(f||(s.halo=f=u.renderer.path().add(d.parentGroup)),f.show()[e?"animate":"attr"]({d:this.haloPath(t.size)}),f.attr({class:"highcharts-halo highcharts-color-"+S(this.colorIndex,s.colorIndex)+(this.className?" "+this.className:""),visibility:r,zIndex:-1}),f.point=this,u.styledMode||f.attr(g({fill:this.color||s.color,"fill-opacity":t.opacity},t.attributes))):f&&f.point&&f.point.haloPath&&f.animate({d:f.point.haloPath(0)},null,f.hide),m(this,"afterSetState")}},haloPath:function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)}}),g(o.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&m(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&&m(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,o=i.graph,r=s.inactiveOtherPoints,n=s.states,a=s.lineWidth,h=s.opacity,l=S(n[t||"normal"]&&n[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(n[t]&&!1===n[t].enabled)return;if(t&&(a=n[t].lineWidth||a+(n[t].lineWidthPlus||0),h=S(n[t].opacity,h)),o&&!o.dashstyle)for(n={"stroke-width":a},o.animate(n,l);i["zone-graph-"+s];)i["zone-graph-"+s].attr(n),s+=1;r||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach((function(t){t&&t.animate({opacity:h},l)}))}e&&r&&i.points&&i.setAllPointsToState(t)},setAllPointsToState:function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},setVisible:function(t,e){var i=this,s=i.chart,o=i.legendItem,r=s.options.chart.ignoreHiddenSeries,n=i.visible,a=(i.visible=t=i.options.visible=i.userOptions.visible="undefined"===typeof t?!n: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(),o&&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)})),r&&(s.isDirtyBox=!0),m(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="undefined"===typeof t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),m(this,t?"select":"unselect")},drawTracker:i.drawTrackerGraph})})),e(i,"Core/Responsive.js",[i["Core/Chart/Chart.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.find,s=e.isArray,o=e.isObject,r=e.merge,n=e.objectEach,a=e.pick,h=e.splat,l=e.uniqueKey;t.prototype.setResponsive=function(t,e){var s=this.options.responsive,o=[],n=this.currentResponsive;!e&&s&&s.rules&&s.rules.forEach((function(t){"undefined"===typeof t._id&&(t._id=l()),this.matchResponsiveRule(t,o)}),this),e=r.apply(0,o.map((function(t){return i(s.rules,(function(e){return e._id===t})).chartOptions}))),e.isResponsiveOptions=!0,o=o.toString()||void 0,o!==(n&&n.ruleIds)&&(n&&this.update(n.undoOptions,t,!0),o?(n=this.currentOptions(e),n.isResponsiveOptions=!0,this.currentResponsive={ruleIds:o,mergedOptions:e,undoOptions:n},this.update(e,t,!0)):this.currentResponsive=void 0)},t.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=a(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=a(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=a(i.minWidth,0)&&this.chartHeight>=a(i.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.currentOptions=function(t){function e(t,r,a,l){var c;n(t,(function(t,n){if(!l&&-1