(self.webpackChunk=self.webpackChunk||[]).push([[271],{78840:function(t,e,i){var o,s,r;s="undefined"!=typeof window?window:this,r=function(t){function e(e,i,o,s){e.hasOwnProperty(i)||(e[i]=s.apply(null,o),"function"==typeof CustomEvent&&t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}var i={};return e(i,"Core/Globals.js",[],(function(){var e;return function(e){e.SVG_NS="http://www.w3.org/2000/svg",e.product="Highcharts",e.version="10.3.3",e.win=void 0!==t?t:{},e.doc=e.win.document,e.svg=e.doc&&e.doc.createElementNS&&!!e.doc.createElementNS(e.SVG_NS,"svg").createSVGRect,e.userAgent=e.win.navigator&&e.win.navigator.userAgent||"",e.isChrome=-1!==e.userAgent.indexOf("Chrome"),e.isFirefox=-1!==e.userAgent.indexOf("Firefox"),e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera,e.isSafari=!e.isChrome&&-1!==e.userAgent.indexOf("Safari"),e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent),e.isWebKit=-1!==e.userAgent.indexOf("AppleWebKit"),e.deg2rad=2*Math.PI/360,e.hasBidiBug=e.isFirefox&&4>parseInt(e.userAgent.split("Firefox/")[1],10),e.hasTouch=!!e.win.TouchEvent,e.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],e.noop=function(){},e.supportsPassiveEvents=function(){var t=!1;if(!e.isMS){var i=Object.defineProperty({},"passive",{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener("testPassive",e.noop,i),e.win.removeEventListener("testPassive",e.noop,i))}return t}(),e.charts=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0}(e||(e={})),e})),e(i,"Core/Utilities.js",[i["Core/Globals.js"]],(function(t){function e(i,o,s,r){var n=o?"Highcharts error":"Highcharts warning";32===i&&(i=n+": Deprecated member");var a=h(i),l=a?n+" #"+i+": www.highcharts.com/errors/"+i+"/":i.toString();if(void 0!==r){var c="";a&&(l+="?"),m(r,(function(t,e){c+="\n - ".concat(e,": ").concat(t),a&&(l+=encodeURI(e)+"="+encodeURI(t))})),l+=c}y(t,"displayError",{chart:s,code:i,message:l,params:r},(function(){if(o)throw Error(l);S.console&&-1===e.messages.indexOf(l)&&console.warn(l)})),e.messages.push(l)}function i(t,e){return parseInt(t,e||10)}function o(t){return"string"==typeof t}function s(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function r(t,e){return!(!t||"object"!=typeof t||e&&s(t))}function n(t){return r(t)&&"number"==typeof t.nodeType}function a(t){var e=t&&t.constructor;return!(!r(t,!0)||n(t)||!e||!e.name||"Object"===e.name)}function h(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]e?t=r-1&&(r=Math.floor(n)),Math.max(0,r-(a(s,"padding-left",!0)||0)-(a(s,"padding-right",!0)||0));if("height"===r)return Math.max(0,Math.min(s.offsetHeight,s.scrollHeight)-(a(s,"padding-top",!0)||0)-(a(s,"padding-bottom",!0)||0));if(S.getComputedStyle||e(27,!0),s=S.getComputedStyle(s,void 0)){var h=s.getPropertyValue(r);p(n,"opacity"!==r)&&(h=i(h))}return h},inArray:function(t,i,o){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,o)},isArray:s,isClass:a,isDOMElement:n,isFunction:function(t){return"function"==typeof t},isNumber:h,isObject:r,isString:o,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,e=arguments,i={},o=function(t,e){return"object"!=typeof t&&(t={}),m(e,(function(i,s){"__proto__"!==s&&"constructor"!==s&&(!r(i,!0)||a(i)||n(i)?t[s]=e[s]:t[s]=o(t[s]||{},i))})),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var s=e.length;for(t=0;t=i&&(e=[1/i]))),o=0;o=t||!s&&n<=(e[o]+(e[o+1]||e[o]))/2));o++);return g(r*i,-Math.round(Math.log(.001)/Math.LN10))},objectEach:m,offset:function(t){var e=b.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(S.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(S.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:p,pInt:i,relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},removeEvent:v,splat:function(t){return s(t)?t:[t]},stableSort:function(t,e){var i,o,s=t.length;for(o=0;o>16,(65280&s)>>8,255&s,1]:4===o&&(i=[(3840&s)>>4|(3840&s)>>8,(240&s)>>4|240&s,(15&s)<<4|15&s,1])}if(!i)for(s=e.parsers.length;s--&&!i;){var r=e.parsers[s];(o=r.regex.exec(t))&&(i=r.parse(o))}}i&&(this.rgba=i)},e.prototype.get=function(t){var e=this.input,s=this.rgba;if("object"==typeof e&&void 0!==this.stops){var r=o(e);return r.stops=[].slice.call(r.stops),this.stops.forEach((function(e,i){r.stops[i]=[r.stops[i][0],e.get(t)]})),r}return s&&i(s[0])?"rgb"===t||!t&&1===s[3]?"rgb("+s[0]+","+s[1]+","+s[2]+")":"a"===t?"".concat(s[3]):"rgba("+s.join(",")+")":e},e.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(i(t)&&0!==t)for(var o=0;3>o;o++)e[o]+=s(255*t),0>e[o]&&(e[o]=0),255d?"AM":"PM",P:12>d?"am":"pm",S:l(a.getSeconds()),L:l(Math.floor(i%1e3),3)},t.dateFormats),h(a,(function(t,o){for(;-1!==e.indexOf("%"+o);)e=e.replace("%"+o,"function"==typeof t?t.call(n,i):t)})),s?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return n(t,!0)?t:{main:(t=d(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,i,s){var n,a=this,h=[],l={},d=new a.Date(e),u=t.unitRange,f=t.count||1;if(s=c(s,1),o(e)){if(a.set("Milliseconds",d,u>=p.second?0:f*Math.floor(a.get("Milliseconds",d)/f)),u>=p.second&&a.set("Seconds",d,u>=p.minute?0:f*Math.floor(a.get("Seconds",d)/f)),u>=p.minute&&a.set("Minutes",d,u>=p.hour?0:f*Math.floor(a.get("Minutes",d)/f)),u>=p.hour&&a.set("Hours",d,u>=p.day?0:f*Math.floor(a.get("Hours",d)/f)),u>=p.day&&a.set("Date",d,u>=p.month?1:Math.max(1,f*Math.floor(a.get("Date",d)/f))),u>=p.month){a.set("Month",d,u>=p.year?0:f*Math.floor(a.get("Month",d)/f));var g=a.get("FullYear",d)}u>=p.year&&a.set("FullYear",d,g-g%f),u===p.week&&(g=a.get("Day",d),a.set("Date",d,a.get("Date",d)-g+s+(g4*p.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(i)),e=d.getTime(),d=1;eh.length&&h.forEach((function(t){0==t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(l[t]="day")}))}return h.info=r(t,{higherRanks:l,totalRange:u*f}),h},e.prototype.getDateFormat=function(t,e,i,o){var s=this.dateFormat("%m-%d %H:%M:%S.%L",e),r={millisecond:15,second:12,minute:9,hour:6,day:3},n="millisecond";for(a in p){if(t===p.week&&+this.dateFormat("%w",e)===i&&"00:00:00.000"===s.substr(6)){var a="week";break}if(p[a]>t){a=n;break}if(r[a]&&s.substr(r[a])!=="01-01 00:00:00.000".substr(r[a]))break;"week"!==a&&(n=a)}return this.resolveDTLFormat(o[a]).main},e}(),e})),e(i,"Core/Defaults.js",[i["Core/Chart/ChartDefaults.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Color/Palettes.js"],i["Core/Time.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r){e=e.parse;var n=r.merge,a={colors:o.colors,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:t,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,className:"highcharts-no-tooltip",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:i.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:i.isTouchDevice?25:10,headerFormat:'{point.key}
',pointFormat:' {series.name}: {point.y}
',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},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"}};a.chart.styledMode=!1;var h=new s(n(a.global,a.time));return t={defaultOptions:a,defaultTime:h,getOptions:function(){return a},setOptions:function(t){return n(!0,a,t),(t.time||t.global)&&(i.time?i.time.update(n(a.global,a.time,t.global,t.time)):i.time=h),a}}})),e(i,"Core/Animation/Fx.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=t.parse,s=e.win,r=i.isNumber,n=i.objectEach;return function(){function t(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var i=this.now||0,o=[];if(1!==i&&e&&t)if(e.length===t.length&&1>i)for(var s=0;s=r+this.startTime){this.now=this.end,this.pos=1,this.update();var h=a[this.prop]=!0;n(a,(function(t){!0!==t&&(h=!1)})),h&&s&&s.call(o),t=!1}else this.pos=i.easing((e-this.startTime)/r),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},t.prototype.initPath=function(t,e,i){function o(t,e){for(;t.lengthc[1]){var p=e+ +c[1];0<=p?(c[0]=(+c[0]).toExponential(p).split("e")[0],e=p):(c[0]=c[0].split(".")[0]||0,t=20>e?(c[0]*Math.pow(10,c[1])).toFixed(e):0,c[1]=0)}}else e=2;p=(Math.abs(c[1]?c[0]:t)+Math.pow(10,-Math.max(e,l)-1)).toFixed(e);var u=3<(l=String(h(p))).length?l.length%3:0;return i=a(i,r.decimalPoint),s=a(s,r.thousandsSep),t=(0>t?"-":"")+(u?l.substr(0,u)+s:""),t=0>+c[1]&&!d?"0":t+l.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+s),e&&(t+=i+p.slice(-e)),c[1]&&0!=+t&&(t+="e"+c[1]),t}var o=t.defaultOptions,s=t.defaultTime,r=e.getNestedProperty,n=e.isNumber,a=e.pick,h=e.pInt;return{dateFormat:function(t,e,i){return s.dateFormat(t,e,i)},format:function(t,e,n){var a="{",h=!1,l=/f$/,c=/\.([0-9])/,d=o.lang,p=n&&n.time||s;n=n&&n.numberFormatter||i;for(var u=[];t;){var f=t.indexOf(a);if(-1===f)break;var g=t.slice(0,f);if(h){if(g=g.split(":"),a=r(g.shift()||"",e),g.length&&"number"==typeof a)if(g=g.join(":"),l.test(g)){var m=parseInt((g.match(c)||["","-1"])[1],10);null!==a&&(a=n(a,m,d.decimalPoint,-1l){for(s(e,c),f=a=0;f<=l;)f+=e[a].size,a++;u=e.splice(a-1,e.length)}for(s(e,d),e=e.map((function(t){return{size:t.size,targets:[t.target],align:o(t.align,.5)}}));p;){for(a=e.length;a--;)l=e[a],c=(Math.min.apply(0,l.targets)+Math.max.apply(0,l.targets))/2,l.pos=i(c-l.size*l.align,0,r-l.size);for(a=e.length,p=!1;a--;)0e[a].pos&&(e[a-1].size+=e[a].size,e[a-1].targets=e[a-1].targets.concat(e[a].targets),e[a-1].align=.5,e[a-1].pos+e[a-1].size>r&&(e[a-1].pos=r-e[a-1].size),e.splice(a,1),p=!0)}return h.push.apply(h,u),a=0,e.some((function(e){var i=0;return(e.targets||[]).some((function(){return h[a].pos=e.pos+i,void 0!==n&&Math.abs(h[a].pos-h[a].target)>n?(h.slice(0,a+1).forEach((function(t){return delete t.pos})),h.reducedLen=(h.reducedLen||r)-.1*r,h.reducedLen>.1*r&&t(h,r,n),!0):(i+=h[a].size,a++,!1)}))})),s(h,d),h}}(e||(e={})),e})),e(i,"Core/Renderer/SVG/SVGElement.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var s=t.animate,r=t.animObject,n=t.stop,a=i.deg2rad,h=i.doc,l=i.svg,c=i.SVG_NS,d=i.win,p=o.addEvent,u=o.attr,f=o.createElement,g=o.css,m=o.defined,v=o.erase,y=o.extend,x=o.fireEvent,b=o.isArray,S=o.isFunction,C=o.isString,A=o.merge,w=o.objectEach,k=o.pick,M=o.pInt,T=o.syncTimeout,P=o.uniqueKey;return t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=c,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return t.prototype._defaultGetter=function(t){return t=k(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},t.prototype._defaultSetter=function(t,e,i){i.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,i=this.element;if(t&&(this.parentGroup=t),void 0!==this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var o=this.zIndexSetter();return o||(t?t.element:e.box).appendChild(i),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var i=e?"":this.attr("class")||"";return t=(t||"").split(/ /g).reduce((function(t,e){return-1===i.indexOf(e)&&t.push(e),t}),i?[i]:[]).join(" "),t!==i&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,i){var o,s,r,n={},a=this.renderer,h=a.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!i||C(i))&&(this.alignTo=o=i||"renderer",v(h,this),h.push(this),i=void 0)):(t=this.alignOptions,e=this.alignByTranslate,o=this.alignTo),i=k(i,a[o],"scrollablePlotBox"===o?a.plotBox:void 0,a),o=t.align;var l=t.verticalAlign;return a=(i.x||0)+(t.x||0),h=(i.y||0)+(t.y||0),"right"===o?s=1:"center"===o&&(s=2),s&&(a+=(i.width-(t.width||0))/s),n[e?"translateX":"x"]=Math.round(a),"bottom"===l?r=1:"middle"===l&&(r=2),r&&(h+=(i.height-(t.height||0))/r),n[e?"translateY":"y"]=Math.round(h),this[this.placed?"animate":"attr"](n),this.placed=!0,this.alignAttr=n,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,i){var o=this,n=r(k(e,this.renderer.globalAnimation,!0));return e=n.defer,k(h.hidden,h.msHidden,h.webkitHidden,!1)&&(n.duration=0),0!==n.duration?(i&&(n.complete=i),T((function(){o.element&&s(o,t,n)}),e)):(this.attr(t,void 0,i||n.complete),w(t,(function(t,e){n.step&&n.step.call(this,t,{prop:e,pos:1,elem:this})}),this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var o=t.split(" ");if(t=o[o.length-1],(o=o[0])&&"none"!==o&&i.svg){this.fakeTS=!0,o=o.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,i){return 2*Number(e)+i})),this.removeTextOutline();var s=h.createElementNS(c,"tspan");u(s,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":o,"stroke-linejoin":"round"}),t=e.querySelector("textPath")||e,[].forEach.call(t.childNodes,(function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(t){return e.removeAttribute(t)})),s.appendChild(e)}));var r=0;[].forEach.call(t.querySelectorAll("text tspan"),(function(t){r+=Number(t.getAttribute("dy"))})),(o=h.createElementNS(c,"tspan")).textContent="​",u(o,{x:Number(e.getAttribute("x")),dy:-r}),s.appendChild(o),t.insertBefore(s,t.firstChild)}},t.prototype.attr=function(t,e,i,o){var s,r,a,h=this.element,l=this.symbolCustomAttribs,c=this;if("string"==typeof t&&void 0!==e){var d=t;(t={})[d]=e}return"string"==typeof t?c=(this[t+"Getter"]||this._defaultGetter).call(this,t,h):(w(t,(function(e,i){r=!1,o||n(this,i),this.symbolName&&-1!==l.indexOf(i)&&(s||(this.symbolAttr(t),s=!0),r=!0),!this.rotation||"x"!==i&&"y"!==i||(this.doTransform=!0),r||((a=this[i+"Setter"]||this._defaultSetter).call(this,e,i,h),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(i)&&this.updateShadows(i,e,a))}),this),this.afterSetters()),i&&i.call(this),c},t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},t.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var i=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),m(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,i,o){var s,r,n,a,h,l,c,d,p,u,f,g=this.renderer,v=[];x(this.renderer,"complexColor",{args:arguments},(function(){if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(n=t[r],h=g.gradients,l=t.stops,p=o.radialReference,b(n)&&(t[r]=n={x1:n[0],y1:n[1],x2:n[2],y2:n[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&p&&!m(n.gradientUnits)&&(a=n,n=A(n,g.getRadialAttr(p,a),{gradientUnits:"userSpaceOnUse"})),w(n,(function(t,e){"id"!==e&&v.push(e,t)})),w(l,(function(t){v.push(t)})),v=v.join(","),h[v])u=h[v].attr("id");else{n.id=u=P();var y=h[v]=g.createElement(r).attr(n).add(g.defs);y.radAttr=a,y.stops=[],l.forEach((function(t){0===t[1].indexOf("rgba")?(s=e.parse(t[1]),c=s.get("rgb"),d=s.get("a")):(c=t[1],d=1),t=g.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":d}).add(y),y.stops.push(t)}))}f="url("+g.url+"#"+u+")",o.setAttribute(i,f),o.gradient=v,t.toString=function(){return f}}}))},t.prototype.css=function(t){var e=this.styles,i={},o=this.element,s=!e;if(t.color&&(t.fill=t.color),e&&w(t,(function(t,o){e&&e[o]!==t&&(i[o]=t,s=!0)})),s){if(e&&(t=y(e,i)),null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===o.nodeName.toLowerCase()&&t.width)var r=this.textWidth=M(t.width);this.styles=t,r&&!l&&this.renderer.forExport&&delete t.width;var n=A(t);o.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach((function(t){return n&&delete n[t]})),g(o,n),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline))}return this},t.prototype.dashstyleSetter=function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var i=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=i.length;t--;)i[t]=""+M(i[t])*k(e,NaN);t=i.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},i=t.renderer,o=e.ownerSVGElement,s=i.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,n(t),t.clipPath&&o){var r=t.clipPath;[].forEach.call(o.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){-1p.width)&&(p={x:0,y:0,width:0,height:0})}else p=this.htmlGetBBox();if(r.isSVG&&(r=p.width,e=p.height,d&&(p.height=e={"11px,17":14,"13px,20":16}[""+(u||"")+",".concat(Math.round(e))]||e),i)){d=Number(s.getAttribute("y")||0)-p.y,o={right:1,center:.5}[o||0]||0,n=i*a,u=(i-90)*a;var x=r*Math.cos(n);i=r*Math.sin(n),v=Math.cos(u),n=Math.sin(u),x=(v=(u=(r=p.x+o*(r-x)+d*v)+x)-e*v)-x,i=(e=(o=(d=p.y+d-o*i+d*n)+i)-e*n)-i,p.x=Math.min(r,u,v,x),p.y=Math.min(d,o,e,i),p.width=Math.max(r,u,v,x)-p.x,p.height=Math.max(d,o,e,i)-p.y}if(f&&(""===h||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 o=this.shadows;if(o)for(var s=o.length;s--;)i.call(o[s],"height"===t?Math.max(e-(o[s].cutHeight||0),0):"d"===t?this.d:e,t,o[s])},t.prototype.updateTransform=function(){var t=this.element,e=this.matrix,i=this.rotation;i=void 0===i?0:i;var o=this.scaleX,s=this.scaleY,r=this.translateX,n=this.translateY;r=["translate("+(void 0===r?0:r)+","+(void 0===n?0:n)+")"],m(e)&&r.push("matrix("+e.join(",")+")"),i&&r.push("rotate("+i+" "+k(this.rotationOriginX,t.getAttribute("x"),0)+" "+k(this.rotationOriginY,t.getAttribute("y")||0)+")"),(m(o)||m(s))&&r.push("scale("+k(o,1)+" "+k(s,1)+")"),r.length&&!(this.text||this).textPath&&t.setAttribute("transform",r.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,o=this.parentGroup,s=(o||i).element||i.box,r=this.element;i=s===i.box;var n,a=!1,h=this.added;if(m(t)?(r.setAttribute("data-z-index",t),t=+t,this[e]===t&&(h=!1)):m(this[e])&&r.removeAttribute("data-z-index"),this[e]=t,h){for((t=this.zIndex)&&o&&(o.handleZ=!0),n=(e=s.childNodes).length-1;0<=n&&!a;n--){h=(o=e[n]).getAttribute("data-z-index");var l=!m(h);o!==r&&(0>t&&l&&!i&&!n?(s.insertBefore(r,e[n]),a=!0):(M(h)<=t||l&&(!m(t)||0<=t))&&(s.insertBefore(r,e[n+1]||null),a=!0))}a||(s.insertBefore(r,e[i?3:0]||null),a=!0)}return a},t}(),t.prototype.strokeSetter=t.prototype.fillSetter,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},t})),e(i,"Core/Renderer/RendererRegistry.js",[i["Core/Globals.js"]],(function(t){var e;return function(e){var i;e.rendererTypes={},e.getRendererType=function(t){return void 0===t&&(t=i),e.rendererTypes[t]||e.rendererTypes[i]},e.registerRendererType=function(o,s,r){e.rendererTypes[o]=s,i&&!r||(i=o,t.Renderer=s)}}(e||(e={})),e})),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 o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),o=e.defined,s=e.extend,r=e.isNumber,n=e.merge,a=e.pick,h=e.removeEvent;return function(e){function l(t,i,o,s,r,n,a,h,c,d){var p,u=e.call(this)||this;return u.paddingLeftSetter=u.paddingSetter,u.paddingRightSetter=u.paddingSetter,u.init(t,"g"),u.textStr=i,u.x=o,u.y=s,u.anchorX=n,u.anchorY=a,u.baseline=c,u.className=d,u.addClass("button"===d?"highcharts-no-tooltip":"highcharts-label"),d&&u.addClass("highcharts-"+d),u.text=t.text(void 0,0,0,h).attr({zIndex:1}),"string"==typeof r&&((p=/^url\((.*?)\)$/.test(r))||u.renderer.symbols[r])&&(u.symbolKey=r),u.bBox=l.emptyBBox,u.padding=3,u.baselineOffset=0,u.needsBox=t.styledMode||p,u.deferredAttr={},u.alignFactor=0,u}return i(l,e),l.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&r(this.xSetting)&&this.attr({x:this.xSetting}))},l.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},l.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},l.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},l.prototype.css=function(e){if(e){var i={};e=n(e),l.textProps.forEach((function(t){void 0!==e[t]&&(i[t]=e[t],delete e[t])})),this.text.css(i),"fontSize"in i||"fontWeight"in i?this.updateTextPadding():("width"in i||"textOverflow"in i)&&this.updateBoxSize()}return t.prototype.css.call(this,e)},l.prototype.destroy=function(){h(this.element,"mouseenter"),h(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},l.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},l.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=a(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},l.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},l.prototype.heightSetter=function(t){this.heightSetting=t},l.prototype.onAdd=function(){this.text.add(this),this.attr({text:a(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&o(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},l.prototype.paddingSetter=function(t,e){r(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},l.prototype.rSetter=function(t,e){this.boxAttr(e,t)},l.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},l.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},l.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},l.prototype["text-alignSetter"]=function(t){this.textAlign=t},l.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},l.prototype.updateBoxSize=function(){var t=this.text,e=t.element.style,i={},n=this.padding,a=this.bBox=r(this.widthSetting)&&r(this.heightSetting)&&!this.textAlign||!o(t.textStr)?l.emptyBBox:t.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*n,e=this.renderer.fontMetrics(e&&e.fontSize,t),this.baselineOffset=n+Math.min((this.text.firstLineMetrics||e).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-e.h)/2),this.needsBox&&!t.textPath&&(this.box||((t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this)),t=this.getCrispAdjust(),i.x=t,i.y=(this.baseline?-this.baselineOffset:0)+t,i.width=Math.round(this.width),i.height=Math.round(this.height),this.box.attr(s(i,this.deferredAttr)),this.deferredAttr={})},l.prototype.updateTextPadding=function(){var t=this.text;if(!t.textPath){this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,i=a(this.paddingLeft,this.padding);o(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)),void 0!==e&&t.attr("y",e)),t.x=i,t.y=e}},l.prototype.widthSetter=function(t){this.widthSetting=r(t)?t:void 0},l.prototype.getPaddedWidth=function(){var t=this.padding,e=a(this.paddingLeft,t);return t=a(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},l.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},l.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),l}(t)})),e(i,"Core/Renderer/SVG/Symbols.js",[i["Core/Utilities.js"]],(function(t){function e(t,e,i,o,r){var a=[];if(r){var h=r.start||0,l=n(r.r,i);i=n(r.r,o||i);var c=(r.end||0)-.001;o=r.innerR;var d=n(r.open,.001>Math.abs((r.end||0)-h-2*Math.PI)),p=Math.cos(h),u=Math.sin(h),f=Math.cos(c),g=Math.sin(c);h=n(r.longArc,.001>c-h-Math.PI?0:1),a.push(["M",t+l*p,e+i*u],["A",l,i,0,h,n(r.clockwise,1),t+l*f,e+i*g]),s(o)&&a.push(d?["M",t+o*f,e+o*g]:["L",t+o*f,e+o*g],["A",o,o,0,h,s(r.clockwise)?1-r.clockwise:0,t+o*p,e+o*u]),d||a.push(["Z"])}return a}function i(t,e,i,s,r){return r&&r.r?o(t,e,i,s,r):[["M",t,e],["L",t+i,e],["L",t+i,e+s],["L",t,e+s],["Z"]]}function o(t,e,i,o,s){return[["M",t+(s=s&&s.r||0),e],["L",t+i-s,e],["C",t+i,e,t+i,e,t+i,e+s],["L",t+i,e+o-s],["C",t+i,e+o,t+i,e+o,t+i-s,e+o],["L",t+s,e+o],["C",t,e+o,t,e+o,t,e+o-s],["L",t,e+s],["C",t,e,t,e,t+s,e]]}var s=t.defined,r=t.isNumber,n=t.pick;return{arc:e,callout:function(t,e,i,s,n){var a=Math.min(n&&n.r||0,i,s),h=a+6,l=n&&n.anchorX;n=n&&n.anchorY||0;var c=o(t,e,i,s,{r:a});return r(l)?(t+l>=i?n>e+h&&n=t+l?n>e+h&&ns&&l>t+h&&ln&&l>t+h&&l/g.test(r))?""!==r&&(s&&s.appendChild(i),r=new t(r),this.modifyTree(r.nodes),r.addToDOM(i),this.modifyDOM(),this.ellipsis&&-1!==(i.textContent||"").indexOf("…")&&e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),s&&s.removeChild(i)):i.appendChild(o.createTextNode(this.unescapeEntities(r))),l(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,i=this.svgElement,a=n(i.element,"x");for(i.firstLineMetrics=void 0;(t=i.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)i.element.removeChild(t);[].forEach.call(i.element.querySelectorAll("tspan.highcharts-br"),(function(t,o){t.nextSibling&&t.previousSibling&&(0===o&&1===t.previousSibling.nodeType&&(i.firstLineMetrics=i.renderer.fontMetrics(void 0,t.previousSibling)),n(t,{dy:e.getLineHeight(t.nextSibling),x:a}))}));var h=this.width||0;if(h){var l=function(t,r){var l=t.textContent||"",c=l.replace(/([^\^])-/g,"$1- ").split(" "),d=!e.noWrap&&(1s){for(;d<=p;)u=Math.ceil((d+p)/2),i&&(n=r(i,u)),g=f(u,n&&n.length-1),d===p?d=p+1:g>s?p=u-1:d=u;0===p?t.textContent="":e&&p===e.length-1||(t.textContent=n||r(e||i,u))}i&&i.splice(0,u),a.actualWidth=g,a.rotation=l},e.prototype.unescapeEntities=function(t,e){return c(this.renderer.escapes,(function(i,o){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),o))})),t},e}()})),e(i,"Core/Renderer/SVG/SVGRenderer.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGLabel.js"],i["Core/Renderer/SVG/Symbols.js"],i["Core/Renderer/SVG/TextBuilder.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,a,h){var l,c=i.charts,d=i.deg2rad,p=i.doc,u=i.isFirefox,f=i.isMS,g=i.isWebKit,m=i.noop,v=i.SVG_NS,y=i.symbolSizes,x=i.win,b=h.addEvent,S=h.attr,C=h.createElement,A=h.css,w=h.defined,k=h.destroyObjectProperties,M=h.extend,T=h.isArray,P=h.isNumber,E=h.isObject,O=h.isString,L=h.merge,D=h.pick,j=h.pInt,R=h.uniqueKey;return i=function(){function i(t,e,i,o,s,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,o,s,r,n)}return i.prototype.init=function(t,e,i,o,s,r,n){var a,h=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),l=h.element;n||h.css(this.getStyle(o)),t.appendChild(l),S(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&S(l,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=l,this.boxWrapper=h,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(p.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=s,this.styledMode=n,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),u&&t.getBoundingClientRect&&((e=function(){A(t,{left:0,top:0}),a=t.getBoundingClientRect(),A(t,{left:Math.ceil(a.left)-a.left+"px",top:Math.ceil(a.top)-a.top+"px"})})(),this.unSubPixelFix=b(x,"resize",e))},i.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},i.prototype.getReferenceURL=function(){if((u||g)&&p.getElementsByTagName("base").length){if(!w(l)){var e=R();e=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(e,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(p.body),A(e,{position:"fixed",top:0,left:0,zIndex:9e5});var i=p.elementFromPoint(6,6);l="hitme"===(i&&i.id),p.body.removeChild(e)}if(l)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},i.prototype.getStyle=function(t){return this.style=M({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},i.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},i.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},i.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),k(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},i.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},i.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},i.prototype.buildText=function(t){new a(t).buildSVG()},i.prototype.getContrast=function(t){return 1.05/(.05+(t=.2126*(t=e.parse(t).rgba.map((function(t){return.03928>=(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4)})))[0]+.7152*t[1]+.0722*t[2]))>(t+.05)/.05?"#FFFFFF":"#000000"},i.prototype.button=function(e,i,o,s,r,n,a,h,l,c){void 0===r&&(r={});var d=this.label(e,i,o,l,void 0,void 0,c,void 0,"button"),p=this.styledMode;e=r.states||{};var u=0;delete(r=L(r)).states;var g=L({color:"#333333",cursor:"pointer",fontWeight:"normal"},r.style);delete r.style;var m=t.filterUserAttributes(r);if(d.attr(L({padding:8,r:2},m)),!p){m=L({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},m);var v=(n=L(m,{fill:"#e6e6e6"},t.filterUserAttributes(n||e.hover||{}))).style;delete n.style;var y=(a=L(m,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},t.filterUserAttributes(a||e.select||{}))).style;delete a.style;var x=(h=L(m,{style:{color:"#cccccc"}},t.filterUserAttributes(h||e.disabled||{}))).style;delete h.style}return b(d.element,f?"mouseover":"mouseenter",(function(){3!==u&&d.setState(1)})),b(d.element,f?"mouseout":"mouseleave",(function(){3!==u&&d.setState(u)})),d.setState=function(t){1!==t&&(d.state=u=t),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),p||(d.attr([m,n,a,h][t||0]),E(t=[g,v,y,x][t||0])&&d.css(t))},p||(d.attr(m).css(M({cursor:"default"},g)),c&&d.text.css({pointerEvents:"none"})),d.on("touchstart",(function(t){return t.stopPropagation()})).on("click",(function(t){3!==u&&s.call(d,t)}))},i.prototype.crispLine=function(t,e,i){void 0===i&&(i="round");var o=t[0],s=t[1];return w(o[1])&&o[1]===s[1]&&(o[1]=s[1]=Math[i](o[1])-e%2/2),w(o[2])&&o[2]===s[2]&&(o[2]=s[2]=Math[i](o[2])+e%2/2),t},i.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return T(t)?e.d=t:E(t)&&M(e,t),this.createElement("path").attr(e)},i.prototype.circle=function(t,e,i){return t=E(t)?t:void 0===t?{}:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},i.prototype.arc=function(t,e,i,o,s,r){return E(t)?(e=(o=t).y,i=o.r,t=o.x):o={innerR:o,start:s,end:r},(t=this.symbol("arc",t,e,i,i,o)).r=i,t},i.prototype.rect=function(t,e,i,o,s,r){s=E(t)?t.r:s;var n=this.createElement("rect");return t=E(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(o,0)},this.styledMode||(void 0!==r&&(t["stroke-width"]=r,t=n.crisp(t)),t.fill="none"),s&&(t.r=s),n.rSetter=function(t,e,i){n.r=t,S(i,{rx:t,ry:t})},n.rGetter=function(){return n.r||0},n.attr(t)},i.prototype.setSize=function(t,e,i){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:D(i,!0)?void 0:0}),this.alignElements()},i.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},i.prototype.image=function(t,e,i,o,s,r){var n={preserveAspectRatio:"none"},a=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};P(e)&&(n.x=e),P(i)&&(n.y=i),P(o)&&(n.width=o),P(s)&&(n.height=s);var h=this.createElement("image").attr(n);return e=function(e){a(h.element,t),r.call(h,e)},r?(a(h.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),i=new x.Image,b(i,"load",e),i.src=t,i.complete&&e({})):a(h.element,t),h},i.prototype.symbol=function(t,e,i,o,s,r){var n,a=this,h=/^url\((.*?)\)$/,l=h.test(t),d=!l&&(this.symbols[t]?t:"circle"),u=d&&this.symbols[d];if(u){"number"==typeof e&&(n=u.call(this.symbols,Math.round(e||0),Math.round(i||0),o||0,s||0,r));var f=this.path(n);a.styledMode||f.attr("fill","none"),M(f,{symbolName:d||void 0,x:e,y:i,width:o,height:s}),r&&M(f,r)}else if(l){var g=t.match(h)[1],m=f=this.image(g);m.imgwidth=D(y[g]&&y[g].width,r&&r.width),m.imgheight=D(y[g]&&y[g].height,r&&r.height);var v=function(t){return t.attr({width:t.width,height:t.height})};["width","height"].forEach((function(t){m[t+"Setter"]=function(t,e){this[e]=t,t=this.alignByTranslate;var i=this.element,o=this.width,s=this.height,n=this.imgwidth,a=this.imgheight,h=this["img"+e];if(w(h)){var l=1;r&&"within"===r.backgroundSize&&o&&s?(l=Math.min(o/n,s/a),h=Math.round(h*l),S(i,{width:Math.round(n*l),height:Math.round(a*l)})):i&&i.setAttribute(e,h),t||this.translate(((o||0)-h*l)/2,((s||0)-h*l)/2)}}})),w(e)&&m.attr({x:e,y:i}),m.isImg=!0,w(m.imgwidth)&&w(m.imgheight)?v(m):(m.attr({width:0,height:0}),C("img",{onload:function(){var t=c[a.chartIndex];0===this.width&&(A(this,{position:"absolute",top:"-999em"}),p.body.appendChild(this)),y[g]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&v(m),this.parentNode&&this.parentNode.removeChild(this),a.imgCount--,a.imgCount||!t||t.hasLoaded||t.onload()},src:g}),this.imgCount++)}return f},i.prototype.clipRect=function(t,e,i,o){var s=R()+"-",r=this.createElement("clipPath").attr({id:s}).add(this.defs);return(t=this.rect(t,e,i,o,0).add(r)).id=s,t.clipPath=r,t.count=0,t},i.prototype.text=function(t,e,i,o){var s={};return!o||!this.allowHTML&&this.forExport?(s.x=Math.round(e||0),i&&(s.y=Math.round(i)),w(t)&&(s.text=t),t=this.createElement("text").attr(s),(!o||this.forExport&&!this.allowHTML)&&(t.xSetter=function(t,e,i){for(var o,s=i.getElementsByTagName("tspan"),r=i.getAttribute(e),n=0;n(t=/px/.test(t)?j(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},i.prototype.rotCorr=function(t,e,i){var o=t;return e&&i&&(o=Math.max(o*Math.cos(e*d),4)),{x:-t/3*Math.sin(e*d),y:o}},i.prototype.pathToSegments=function(t){for(var e=[],i=[],o={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},s=0;s":">","'":"'",'"':"""},symbols:n,draw:m}),o.registerRendererType("svg",i,!0),i})),e(i,"Core/Renderer/HTML/HTMLElement.js",[i["Core/Globals.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=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 o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=t.isFirefox,r=t.isMS,n=t.isWebKit,a=t.win,h=i.css,l=i.defined,c=i.extend,d=i.pick,p=i.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var i=e.prototype,o=t.prototype;o.getSpanCorrection=i.getSpanCorrection,o.htmlCss=i.htmlCss,o.htmlGetBBox=i.htmlGetBBox,o.htmlUpdateTransform=i.htmlUpdateTransform,o.setSpanRotation=i.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,i){this.xCorr=-t*i,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,i=d(e&&t.width,void 0);if(e){delete t.width,this.textWidth=i;var o=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=c(this.styles,t),h(this.element,t),o&&this.htmlUpdateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.htmlUpdateTransform=function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,o=this.translateY||0,s=this.x||0,r=this.y||0,n=this.textAlign||"left",a={left:0,center:.5,right:1}[n],c=this.styles;if(c=c&&c.whiteSpace,h(e,{marginLeft:i,marginTop:o}),!t.styledMode&&this.shadows&&this.shadows.forEach((function(t){h(t,{marginLeft:i+1,marginTop:o+1})})),this.inverted&&[].forEach.call(e.childNodes,(function(i){t.invertChild(i,e)})),"SPAN"===e.tagName){var d=this.rotation,u=this.textWidth&&p(this.textWidth),f=[d,n,e.innerHTML,this.textWidth,this.textAlign].join(),g=void 0;if(g=!1,u!==this.oldTextWidth){if(this.textPxLength)var m=this.textPxLength;else h(e,{width:"",whiteSpace:c||"nowrap"}),m=e.offsetWidth;(u>this.oldTextWidth||m>u)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(h(e,{width:m>u||d?u+"px":"auto",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=u,g=!0)}this.hasBoxWidthChanged=g,f!==this.cTT&&(g=t.fontMetrics(e.style.fontSize,e).b,!l(d)||d===(this.oldRotation||0)&&n===this.oldAlign||this.setSpanRotation(d,a,g),this.getSpanCorrection(!l(d)&&this.textPxLength||e.offsetWidth,g,a,d,n)),h(e,{left:s+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),this.cTT=f,this.oldRotation=d,this.oldAlign=n}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,i){var o={},l=r&&!/Edge/.test(a.navigator.userAgent)?"-ms-transform":n?"-webkit-transform":s?"MozTransform":a.opera?"-o-transform":void 0;l&&(o[l]=o.transform="rotate("+t+"deg)",o[l+(s?"Origin":"-origin")]=o.transformOrigin=100*e+"% "+i+"px",h(this.element,o))},e.composedClasses=[],e}(e)})),e(i,"Core/Renderer/HTML/HTMLRenderer.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var s=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 o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),r=o.attr,n=o.createElement,a=o.extend,h=o.pick;return function(i){function o(){return null!==i&&i.apply(this,arguments)||this}return s(o,i),o.compose=function(t){return-1===o.composedClasses.indexOf(t)&&(o.composedClasses.push(t),t.prototype.html=o.prototype.html),t},o.prototype.html=function(i,o,s){var l=this.createElement("span"),c=l.element,d=l.renderer,p=d.isSVG,u=function(t,i){["opacity","visibility"].forEach((function(o){t[o+"Setter"]=function(s,r,n){var a=t.div?t.div.style:i;e.prototype[o+"Setter"].call(this,s,r,n),a&&(a[r]=s)}})),t.addedSetters=!0};return l.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,h(e,"")),this.textStr=e,l.doTransform=!0)},p&&u(l,l.element.style),l.xSetter=l.ySetter=l.alignSetter=l.rotationSetter=function(t,e){"align"===e?l.alignValue=l.textAlign=t:l[e]=t,l.doTransform=!0},l.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},l.attr({text:i,x:Math.round(o),y:Math.round(s)}).css({position:"absolute"}),d.styledMode||l.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),c.style.whiteSpace="nowrap",l.css=l.htmlCss,p&&(l.add=function(t){var e=d.box.parentNode,i=[];if(this.parentGroup=t){var o=t.div;if(!o){for(;t;)i.push(t),t=t.parentGroup;i.reverse().forEach((function(t){function s(e,i){t[i]=e,"translateX"===i?d.left=e+"px":d.top=e+"px",t.doTransform=!0}var h=r(t.element,"class"),c=t.styles||{},d=(o=t.div=t.div||n("div",h?{className:h}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:c.cursor,pointerEvents:c.pointerEvents,visibility:t.visibility},o||e)).style;a(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(o),on:function(){return i[0].div&&l.on.apply({element:i[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:s,translateYSetter:s}),t.addedSetters||u(t)}))}}else o=e;return o.appendChild(c),l.added=!0,l.alignOnAdd&&l.htmlUpdateTransform(),l}),l},o.composedClasses=[],o}(i)})),e(i,"Core/Axis/AxisDefaults.js",[],(function(){var t;return function(t){t.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},t.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},t.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},t.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(t||(t={})),t})),e(i,"Core/Foundation.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.addEvent,o=t.isFunction,s=t.objectEach,r=t.removeEvent;return function(t){t.registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},s(e.events,(function(e,s){t.eventOptions[s]!==e&&(t.eventOptions[s]&&(r(t,s,t.eventOptions[s]),delete t.eventOptions[s]),o(e)&&(t.eventOptions[s]=e,i(t,s,e)))}))}}(e||(e={})),e})),e(i,"Core/Axis/Tick.js",[i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=e.deg2rad,s=i.clamp,r=i.correctFloat,n=i.defined,a=i.destroyObjectProperties,h=i.extend,l=i.fireEvent,c=i.isNumber,d=i.merge,p=i.objectEach,u=i.pick;return e=function(){function e(t,e,i,o,s){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=s||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,l(this,"init"),i||o||this.addLabel()}return e.prototype.addLabel=function(){var e=this,i=e.axis,o=i.options,s=i.chart,a=i.categories,d=i.logarithmic,p=i.names,f=e.pos,g=u(e.options&&e.options.labels,o.labels),m=i.tickPositions,v=f===m[0],y=f===m[m.length-1],x=(!g.step||1===g.step)&&1===i.tickInterval;m=m.info;var b,S=e.label;if(a=this.parameters.category||(a?u(a[f],p[f],f):f),d&&c(a)&&(a=r(d.lin2log(a))),i.dateTime)if(m)var C=s.time.resolveDTLFormat(o.dateTimeLabelFormats[!o.grid&&m.higherRanks[f]||m.unitName]),A=C.main;else c(a)&&(A=i.dateTime.getXDateFormat(a,o.dateTimeLabelFormats||{}));e.isFirst=v,e.isLast=y;var w={axis:i,chart:s,dateTimeLabelFormat:A,isFirst:v,isLast:y,pos:f,tick:e,tickPositionInfo:m,value:a};l(this,"labelFormat",w);var k=function(e){return g.formatter?g.formatter.call(e,e):g.format?(e.text=i.defaultLabelFormatter.call(e,e),t.format(g.format,e,s)):i.defaultLabelFormatter.call(e,e)};o=k.call(w,w);var M=C&&C.list;e.shortenLabel=M?function(){for(b=0;bc&&s-d*pn&&(h=Math.round((r-s)/Math.cos(c*o))):(r=s+(1-d)*p,s-d*pn&&(m=n-t.x+m*d,v=-1),(m=Math.min(f,m))m||e.autoRotation&&(l.styles||{}).width)&&(h=m)),h&&(this.shortenLabel?this.shortenLabel():(g.width=Math.floor(h)+"px",(i.style||{}).textOverflow||(g.textOverflow="ellipsis"),l.css(g)))},e.prototype.moveLabel=function(t,e){var i=this,o=i.label,s=i.axis,r=s.reversed,n=!1;if(o&&o.textStr===t?(i.movedLabel=o,n=!0,delete i.label):p(s.ticks,(function(e){n||e.isNew||e===i||!e.label||e.label.textStr!==t||(i.movedLabel=e.label,n=!0,e.labelPos=i.movedLabel.xy,delete e.label)})),!n&&(i.labelPos||o)){var a=i.labelPos||o.xy;o=s.horiz?r?0:s.width+s.left:a.x,s=s.horiz?a.y:r?s.width+s.left:0,i.movedLabel=i.createLabel({x:o,y:s},t,e),i.movedLabel&&i.movedLabel.attr({opacity:0})}},e.prototype.render=function(t,e,i){var o=this.axis,s=o.horiz,r=this.pos,n=u(this.tickmarkOffset,o.tickmarkOffset);n=(r=this.getPosition(s,r,n,e)).x;var a=r.y;o=s&&n===o.pos+o.len||!s&&a===o.pos?-1:1,s=u(i,this.label&&this.label.newOpacity,1),i=u(i,1),this.isActive=!0,this.renderGridLine(e,i,o),this.renderMark(r,i,o),this.renderLabel(r,e,s,t),this.isNew=!1,l(this,"afterRender")},e.prototype.renderGridLine=function(t,e,i){var o=this.axis,s=o.options,r={},n=this.pos,a=this.type,h=u(this.tickmarkOffset,o.tickmarkOffset),l=o.chart.renderer,c=this.gridLine,d=s.gridLineWidth,p=s.gridLineColor,f=s.gridLineDashStyle;"minor"===this.type&&(d=s.minorGridLineWidth,p=s.minorGridLineColor,f=s.minorGridLineDashStyle),c||(o.chart.styledMode||(r.stroke=p,r["stroke-width"]=d||0,r.dashstyle=f),a||(r.zIndex=1),t&&(e=0),this.gridLine=c=l.path().attr(r).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(o.gridGroup)),c&&(i=o.getPlotLinePath({value:n+h,lineWidth:c.strokeWidth()*i,force:"pass",old:t,acrossPanes:!1}))&&c[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},e.prototype.renderMark=function(t,e,i){var o=this.axis,s=o.options,r=o.chart.renderer,n=this.type,a=o.tickSize(n?n+"Tick":"tick"),h=t.x;t=t.y;var l=u(s["minor"!==n?"tickWidth":"minorTickWidth"],!n&&o.isXAxis?1:0);s=s["minor"!==n?"tickColor":"minorTickColor"];var c=this.mark,d=!c;a&&(o.opposite&&(a[0]=-a[0]),c||(this.mark=c=r.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(o.axisGroup),o.chart.styledMode||c.attr({stroke:s,"stroke-width":l})),c[d?"attr":"animate"]({d:this.getMarkPath(h,t,a[0],c.strokeWidth()*i,o.horiz,r),opacity:e}))},e.prototype.renderLabel=function(t,e,i,o){var s=this.axis,r=s.horiz,n=s.options,a=this.label,h=n.labels,l=h.step;s=u(this.tickmarkOffset,s.tickmarkOffset);var d=t.x;t=t.y;var p=!0;a&&c(d)&&(a.xy=t=this.getLabelPosition(d,t,a,r,h,s,o,l),this.isFirst&&!this.isLast&&!n.showFirstLabel||this.isLast&&!this.isFirst&&!n.showLastLabel?p=!1:!r||h.step||h.rotation||e||0===i||this.handleOverflow(t),l&&o%l&&(p=!1),p&&c(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))},e.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,i=e.reversed;if(t&&!this.isNew){var o=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:o,y:i,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}(),e})),e(i,"Core/Axis/Axis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/AxisDefaults.js"],i["Core/Color/Color.js"],i["Core/Defaults.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Axis/Tick.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,a){var h=t.animObject,l=o.defaultOptions,c=s.registerEventOptions,d=r.deg2rad,p=a.arrayMax,u=a.arrayMin,f=a.clamp,g=a.correctFloat,m=a.defined,v=a.destroyObjectProperties,y=a.erase,x=a.error,b=a.extend,S=a.fireEvent,C=a.isArray,A=a.isNumber,w=a.isString,k=a.merge,M=a.normalizeTickInterval,T=a.objectEach,P=a.pick,E=a.relativeLength,O=a.removeEvent,L=a.splat,D=a.syncTimeout,j=function(t,e){return M(e,void 0,void 0,P(t.options.allowDecimals,.5>e||void 0!==t.tickAmount),!!t.tickAmount)};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.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.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var i=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!i:i,this.isXAxis=i,this.coll=this.coll||(i?"xAxis":"yAxis"),S(this,"init",{userOptions:e}),this.opposite=P(e.opposite,this.opposite),this.side=P(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var o=this.options,s=o.labels,r=o.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=P(o.reversed,this.reversed),this.visible=o.visible,this.zoomEnabled=o.zoomEnabled,this.hasNames="category"===r||!0===o.categories,this.categories=o.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=m(o.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=o.minRange||o.maxZoom,this.range=o.range,this.offset=o.offset||0,this.min=this.max=null,e=P(o.crosshair,L(t.options.tooltip.crosshairs)[i?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(i?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&!this.isZAxis&&i&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=A(s.rotation)?s.rotation:void 0,c(this,o),S(this,"afterInit")},t.prototype.setOptions=function(t){this.options=k(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],k(l[this.coll],t)),S(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var i=A(this.value)?this.value:NaN,o=e.chart.time,s=this.dateTimeLabelFormat,r=l.lang,n=r.numericSymbols;r=r.numericSymbolMagnitude||1e3;var a=e.logarithmic?Math.abs(i):e.tickInterval,h=n&&n.length;if(e.categories)var c="".concat(this.value);else if(s)c=o.dateFormat(s,i);else if(h&&1e3<=a)for(;h--&&void 0===c;)a>=(e=Math.pow(r,h+1))&&0==10*i%e&&null!==n[h]&&0!==i&&(c=t(i/e,-1)+n[h]);return void 0===c&&(c=1e4<=Math.abs(i)?t(i,-1):t(i,-1,void 0,"")),c},t.prototype.getSeriesExtremes=function(){var t,e=this,i=e.chart;S(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.series.forEach((function(o){if(o.visible||!i.options.chart.ignoreHiddenSeries){var s=o.options,r=s.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=r&&(r=null),e.isXAxis){if((s=o.xData).length){s=e.logarithmic?s.filter(e.validatePositiveValue):s;var n=(t=o.getXExtremes(s)).min,a=t.max;A(n)||n instanceof Date||(s=s.filter(A),n=(t=o.getXExtremes(s)).min,a=t.max),s.length&&(e.dataMin=Math.min(P(e.dataMin,n),n),e.dataMax=Math.max(P(e.dataMax,a),a))}}else o=o.applyExtremes(),A(o.dataMin)&&(n=o.dataMin,e.dataMin=Math.min(P(e.dataMin,n),n)),A(o.dataMax)&&(a=o.dataMax,e.dataMax=Math.max(P(e.dataMax,a),a)),m(r)&&(e.threshold=r),(!s.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),S(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,i,o,s,r){var n=this.linkedParent||this,a=o&&n.old?n.old.min:n.min;if(!A(a))return NaN;var h=n.minPixelPadding;s=(n.isOrdinal||n.brokenAxis&&n.brokenAxis.hasBreaks||n.logarithmic&&s)&&n.lin2val;var l=1,c=0;return(o=o&&n.old?n.old.transA:n.transA)||(o=n.transA),i&&(l*=-1,c=n.len),n.reversed&&(c-=(l*=-1)*(n.sector||n.len)),e?(r=(t*l+c-h)/o+a,s&&(r=n.lin2val(r))):(s&&(t=n.val2lin(t)),t=l*(t-a)*o,r=(n.isRadial?t:g(t))+c+l*h+(A(r)?o*r:0)),r},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,void 0,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,i){return"pass"!==x&&(ti)&&(x?t=f(t,e,i):n=!0),t}var i,o,s,r,n,a=this,h=a.chart,l=a.left,c=a.top,d=t.old,p=t.value,u=t.lineWidth,g=d&&h.oldChartHeight||h.chartHeight,m=d&&h.oldChartWidth||h.chartWidth,v=a.transB,y=t.translatedValue,x=t.force;return t={value:p,lineWidth:u,old:d,force:x,acrossPanes:t.acrossPanes,translatedValue:y},S(this,"getPlotLinePath",t,(function(t){y=P(y,a.translate(p,void 0,void 0,d)),y=f(y,-1e5,1e5),i=s=Math.round(y+v),o=r=Math.round(g-y-v),A(y)?a.horiz?(o=c,r=g-a.bottom,i=s=e(i,l,l+a.width)):(i=l,s=m-a.right,o=r=e(o,c,c+a.height)):(n=!0,x=!1),t.path=n&&!x?null:h.renderer.crispLine([["M",i,o],["L",s,r]],u||1)})),t.path},t.prototype.getLinearTickPositions=function(t,e,i){var o=g(Math.floor(e/t)*t);i=g(Math.ceil(i/t)*t);var s,r=[];if(g(o+t)===o&&(s=20),this.single)return[e];for(e=o;e<=i&&(r.push(e),(e=g(e+t,s))!==n);)var n=e;return r},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?P(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,i=this.minorTickInterval,o=this.pointRangePadding||0,s=this.min-o,r=(o=this.max+o)-s,n=[];if(r&&r/i=this.minRange,c=this.minRange,d=(c-a+n)/2;d=[n-d,P(s.min,n-d)],l&&(d[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),a=[(n=p(d))+c,P(s.max,n+c)],l&&(a[2]=r?r.log2lin(this.dataMax):this.dataMax),(a=u(a))-n=p)v=p,c=0;else if(this.dataMax<=p){var y=p;l=0}this.min=P(u,v,this.dataMin),this.max=P(f,y,this.dataMax)}if(i&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,P(this.dataMin,this.min))&&x(10,1,e),this.min=g(i.log2lin(this.min),16),this.max=g(i.log2lin(this.max),16)),this.range&&m(this.max)&&(this.userMin=this.min=u=Math.max(this.dataMin,this.minFromRange()),this.userMax=f=this.max,this.range=null),S(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(a||this.axisPointRange||this.stacking&&this.stacking.usePercentage||r)&&m(this.min)&&m(this.max)&&(e=this.max-this.min)&&(!m(u)&&c&&(this.min-=e*c),!m(f)&&l&&(this.max+=e*l)),A(this.userMin)||(A(o.softMin)&&o.softMinthis.max&&(this.max=f=o.softMax),A(o.ceiling)&&(this.max=Math.min(this.max,o.ceiling))),h&&m(this.dataMin)&&(p=p||0,!m(u)&&this.min=p?this.min=this.options.minRange?Math.min(p,this.max-this.minRange):p:!m(f)&&this.max>p&&this.dataMax<=p&&(this.max=this.options.minRange?Math.max(p,this.min+this.minRange):p)),A(this.min)&&A(this.max)&&!this.chart.polar&&this.min>this.max&&(m(this.options.min)?this.max=this.min:m(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||void 0===this.min||void 0===this.max?1:r&&this.linkedParent&&!d&&n===this.linkedParent.options.tickPixelInterval?d=this.linkedParent.tickInterval:P(d,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,a?1:(this.max-this.min)*n/Math.max(this.len,n)),s&&!t){var b=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach((function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(b)})),S(this,"postProcessData",{hasExtremesChanged:b})}this.setAxisTranslation(),S(this,"initialAxisTranslation"),this.pointRange&&!d&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),t=P(o.minTickInterval,this.dateTime&&!this.series.some((function(t){return t.noSharedTooltip}))?this.closestPointRange:0),!d&&this.tickIntervalMath.max(2*this.len,200)))if(this.dateTime)n=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)n=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(s=e=this.tickInterval;s<=2*e&&(n=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&n.length>this.tickAmount);)this.tickInterval=j(this,s*=1.1);else n=[this.min,this.max],x(19,!1,this.chart);n.length>this.len&&(n=[n[0],n[n.length-1]])[0]===n[1]&&(n.length=1),o&&(this.tickPositions=n,(t=o.apply(this,[this.min,this.max]))&&(n=t))}this.tickPositions=n,this.paddedTicks=n.slice(0),this.trimTicks(n,a,r),!this.isLinked&&A(this.min)&&A(this.max)&&(this.single&&2>n.length&&!this.categories&&!this.series.some((function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),i||t||this.adjustTickAmount()),S(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,i){var o=t[0],s=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(S(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==o)this.min=o;else for(;this.min-r>t[0];)t.shift();if(i)this.max=s;else for(;this.max+ri&&(this.finalTickAmt=i,i=5),this.tickAmount=i},t.prototype.adjustTickAmount=function(){var t=this,e=t.finalTickAmt,i=t.max,o=t.min,s=t.options,r=t.tickPositions,n=t.tickAmount,a=t.thresholdAlignment,h=r&&r.length,l=P(t.threshold,t.softThreshold?0:null),c=t.tickInterval;if(A(a)){var d=.5>a?Math.ceil(a*(n-1)):Math.floor(a*(n-1));s.reversed&&(d=n-1-d)}if(t.hasData()&&A(o)&&A(i)){if(a=function(){t.transA*=(h-1)/(n-1),t.min=s.startOnTick?r[0]:Math.min(o,r[0]),t.max=s.endOnTick?r[r.length-1]:Math.max(i,r[r.length-1])},A(d)&&A(t.threshold)){for(;r[d]!==l||r.length!==n||r[0]>o||r[r.length-1]t.threshold?r.unshift(g(r[0]-c)):r.push(g(r[r.length-1]+c));if(c>8*t.tickInterval)break;c*=2}a()}else if(h=e&&0a&&(e=a)),m(s)&&(ra&&(r=a))),i.displayBtn=void 0!==e||void 0!==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],o=this.horiz,s=this.width=Math.round(E(P(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(E(P(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),n=this.top=Math.round(E(P(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(E(P(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-r-n,this.right=t.chartWidth-s-e,this.len=Math.max(o?s:r,0),this.pos=o?e:n},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?g(t.lin2log(this.min)):this.min,max:t?g(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=P(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),o=e["tick"===t?"tickLength":"minorTickLength"];if(i&&o){"inside"===e[t+"Position"]&&(o=-o);var s=[o,i]}return S(this,"afterTickSize",t={tickSize:s}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t=this.options.labels,e=this.horiz,i=this.tickInterval,o=this.len/(((this.categories?1:0)+this.max-this.min)/i),s=t.rotation,r=this.labelMetrics(),n=Math.max(this.max-this.min,0),a=function(t){var e=t/(o||1);return(e=1n&&1/0!==t&&1/0!==o&&n&&(e=Math.ceil(n/i)),g(e*i)},h=i,l=Number.MAX_VALUE;if(e){if(!t.staggerLines)if(A(s))var c=[s];else o=m)&&(p=(e=a(Math.abs(r.h/Math.sin(d*m))))+Math.abs(m/360))o.step)return o.rotation?0:(this.staggerLines||1)*this.len/s;if(!i){if(void 0!==(t=o.style.width))return parseInt(String(t),10);if(r)return r-e.spacing[3]}return.33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,i=this.tickPositions,o=this.ticks,s=this.options.labels,r=s.style,n=this.horiz,a=this.getSlotWidth(),h=Math.max(1,Math.round(a-2*s.padding)),l={},c=this.labelMetrics(),d=r.textOverflow,p=0;if(w(s.rotation)||(l.rotation=s.rotation||0),i.forEach((function(t){(t=o[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=o[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=s.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),i.forEach((function(t){var e=(t=o[t])&&t.label,i=r.width,s={};e&&(e.attr(l),t.shortenLabel?t.shortenLabel():u&&!i&&"nowrap"!==r.whiteSpace&&(u=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(o[t]||(o[t]=new n(this,t)),i&&o[t].isNew&&o[t].render(e,!0,-1),o[t].render(e))},t.prototype.render=function(){var t,e,i=this,o=i.chart,s=i.logarithmic,a=i.options,l=i.isLinked,c=i.tickPositions,d=i.axisTitle,p=i.ticks,u=i.minorTicks,f=i.alternateBands,g=a.stackLabels,m=a.alternateGridColor,v=i.tickmarkOffset,y=i.axisLine,x=i.showAxis,b=h(o.renderer.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[p,u,f].forEach((function(t){T(t,(function(t){t.isActive=!1}))})),i.hasData()||l){var C=i.chart.hasRendered&&i.old&&A(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach((function(t){i.renderMinorTick(t,C)})),c.length&&(c.forEach((function(t,e){i.renderTick(t,e,C)})),v&&(0===i.min||i.single)&&(p[-1]||(p[-1]=new n(i,-1,null,!0)),p[-1].render(-1))),m&&c.forEach((function(n,a){e=void 0!==c[a+1]?c[a+1]+v:i.max-v,0==a%2&&ne&&(!r||h<=i)&&void 0!==h&&l.push(h),h>i&&(p=!0),h=f}}}else e=this.lin2log(e),i=this.lin2log(i),t=r?n.getMinorTickInterval():h.tickInterval,t=s("auto"===t?null:t,this.minorAutoInterval,h.tickPixelInterval/(r?5:1)*(i-e)/((r?a/n.tickPositions.length:a)||1)),t=o(t),l=n.getLinearTickPositions(t,e,i).map(this.log2lin),r||(this.minorAutoInterval=t/5);return r||(n.tickInterval=t),l},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=a}(e||(e={})),e})),e(i,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.erase,o=t.extend,s=t.isNumber;return function(t){var e,r=[];t.compose=function(t,i){return e||(e=t),-1===r.indexOf(i)&&(r.push(i),o(i.prototype,n.prototype)),i};var n=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,i){void 0===i&&(i=this.options);var o=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),r=[],n=this.horiz;if(e=!s(this.min)||!s(this.max)||tthis.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),i=1,t&&o){if(e){var a=t.toString()===o.toString();i=0}for(e=0;ev-h?v:v-h);else{if(!g)return!1;a[t]=Math.max(n,s+h+i>e?s:s+h)}},x=function(t,e,i,o,s){var n;return se-r?n=!1:a[t]=se-o/2?e-o-2:s-i/2,n},b=function(t){var e=f;f=g,g=e,o=t},S=function(){!1!==y.apply(0,f)?!1!==x.apply(0,g)||o||(b(!0),S()):o?a.x=a.y=0:(b(!0),S())};return(s.inverted||1e}))&&(t=t.map((function(t){var e=i(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return d(t,{target:e.y,x:e.x})}))),o.cleanSplit(),a(t,j);var R=O,B=O;t.forEach((function(t){var e=t.x,i=t.boxWidth;(t=t.isHeader)||(o.outside&&O+eB&&(B=O+e))})),t.forEach((function(t){var e=t.x,i=t.anchorX,s=t.pos,r=t.point.isHeader;if(s={visibility:void 0===s?"hidden":"inherit",x:e,y:(s||0)+L,anchorX:i,anchorY:t.anchorY},o.outside&&ei[0]?Math.max(Math.abs(i[0]),s.width-i[0]):Math.max(Math.abs(i[0]),s.width),o.height=0>i[1]?Math.max(Math.abs(i[1]),s.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),s.height),this.tracker?this.tracker.attr(o):(this.tracker=e.renderer.rect(o).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},t.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} {series.options.className} {point.options.className}"')},t.prototype.tooltipFooterHeaderFormatter=function(t,e){var i=t.series,o=i.tooltipOptions,s=i.xAxis,n=s&&s.dateTime;s={isFooter:e,labelConfig:t};var a=o.xDateFormat,h=o[e?"footerFormat":"headerFormat"];return p(this,"headerFormatter",s,(function(e){n&&!a&&f(t.key)&&(a=n.getXDateFormat(t.key,o.dateTimeLabelFormats)),n&&a&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach((function(t){h=h.replace("{point."+t+"}","{point."+t+":"+a+"}")})),i.chart.styledMode&&(h=this.styledModeFormat(h)),e.text=r(h,{point:t,series:i},this.chart)})),s.text},t.prototype.update=function(t){this.destroy(),m(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,m(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,i=this.distance,o=this.options,s=e.pointer,r=this.getLabel(),n=s.getChartPosition();s=n.left;var a=n.top,h=n.scaleX;n=n.scaleY;var c=(o.positioner||this.getPosition).call(this,r.width,r.height,t),d=(t.plotX||0)+e.plotLeft;t=(t.plotY||0)+e.plotTop,this.outside&&(o.positioner&&(c.x+=s-i,c.y+=a-i),i=o.borderWidth+2*i,this.renderer.setSize(r.width+i,r.height+i,!1),1===h&&1===n||(l(this.container,{transform:"scale(".concat(h,", ").concat(n,")")}),d*=h,t*=n),d+=s-c.x,t+=a-c.y),this.move(Math.round(c.x),Math.round(c.y||0),d,t)},t}(),t})),e(i,"Core/Series/Point.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Animation/AnimationUtilities.js"],i["Core/Defaults.js"],i["Core/FormatUtilities.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s){var r=e.animObject,n=i.defaultOptions,a=o.format,h=s.addEvent,l=s.defined,c=s.erase,d=s.extend,p=s.fireEvent,u=s.getNestedProperty,f=s.isArray,g=s.isFunction,m=s.isNumber,v=s.isObject,y=s.merge,x=s.objectEach,b=s.pick,S=s.syncTimeout,C=s.removeEvent,A=s.uniqueKey;return e=function(){function e(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach((function(i){t[i]=t[i].animate("dataLabel"===i?{x:t[i].startXPos,y:t[i].startYPos,opacity:0}:e)})),i.plural.forEach((function(e){t[e].forEach((function(e){e.element&&e.animate(d({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))}))}))},e.prototype.applyOptions=function(t,i){var o=this.series,s=o.options.pointValKey||o.pointValKey;return t=e.prototype.optionsToObject.call(this,t),d(this,t),this.options=this.options?d(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,s&&(this.y=e.prototype.getNestedProperty.call(this,s)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===i&&o.xAxis&&o.xAxis.hasNames&&(this.x=o.xAxis.nameToX(this)),void 0===this.x&&o?this.x=void 0===i?o.autoIncrement():i:m(t.x)&&o.options.relativeXValue&&(this.x=o.autoIncrement(t.x)),this},e.prototype.destroy=function(){function t(){for(s in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(C(e),e.destroyElements()),e)e[s]=null}var e=this,i=e.series,o=i.chart;i=i.options.dataSorting;var s,n=o.hoverPoints,a=r(e.series.chart.renderer.globalAnimation);e.legendItem&&o.legend.destroyItem(e),n&&(e.setState(),c(n,e),n.length||(o.hoverPoints=null)),e===o.hoverPoint&&e.onMouseOut(),i&&i.enabled?(this.animateBeforeDestroy(),S(t,a.duration)):t(),o.pointCount--},e.prototype.destroyElements=function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach((function(t){e[t]=e[t].destroy()})),t.plural.forEach((function(t){e[t].forEach((function(t){t&&t.element&&t.destroy()})),delete e[t]}))},e.prototype.firePointEvent=function(t,e,i){var o=this,s=this.series.options;(s.point.events[t]||o.options&&o.options.events&&o.options.events[t])&&o.importEvents(),"click"===t&&s.allowPointSelect&&(i=function(t){o.select&&o.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),p(o,t,e,i)},e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},e.prototype.getGraphicalProps=function(t){var e,i=this,o=[],s={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&o.push("graphic","shadowGroup"),t.dataLabel&&o.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),e=o.length;e--;){var r=o[e];i[r]&&s.singular.push(r)}return["graphic","dataLabel","connector"].forEach((function(e){var o=e+"s";t[e]&&i[o]&&s.plural.push(o)})),s},e.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},e.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?u(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var i,o=0;for(i=e[o];this[t]>=i.value;)i=e[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=l(this.id)?this.id:A(),this.resolveColor(),t.chart.pointCount++,p(this,"afterInit"),this},e.prototype.isValid=function(){return null!==this.x&&m(this.y)},e.prototype.optionsToObject=function(t){var i=this.series,o=i.options.keys,s=o||i.pointArrayMap||["y"],r=s.length,n={},a=0,h=0;if(m(t)||null===t)n[s[0]]=t;else if(f(t))for(!o&&t.length>r&&("string"==(i=typeof t[0])?n.name=t[0]:"number"===i&&(n.x=t[0]),a++);ho+n&&(p=o+n),ur+a&&(u=r+a),this.hasDragged=Math.sqrt(Math.pow(h-p,2)+Math.pow(l-u,2)),10t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,s),(s=g(t,!0)&&t.series)&&!(s=!g(o,!0))){s=o.distX-t.distX;var r=o.dist-t.dist,n=(t.series.group&&t.series.group.zIndex)-(o.series.group&&o.series.group.zIndex);s=0<(0!==s&&e?s:0!==r?r:0!==n?n:o.series.index>t.series.index?-1:1)}s&&(o=t)})),o},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i=t.series,o=i.xAxis;i=i.yAxis;var s=t.shapeArgs;if(o&&i){var r=y(t.clientX,t.plotX),n=t.plotY||0;return t.isNode&&s&&f(s.x)&&f(s.y)&&(r=s.x,n=s.y),e?{chartX:i.len+i.pos-n,chartY:o.len+o.pos-r}:{chartX:r+o.pos,chartY:n+i.pos}}if(s&&s.x&&s.y)return{chartX:s.x,chartY:s.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=v(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var i=t.offsetWidth;return t=t.offsetHeight,2g.max&&(i=g.max-x,w=!0);w?(C-=.8*(C-n[l][0]),"number"==typeof A&&(A-=.8*(A-n[l][1])),e()):n[l]=[C,A],f||(r[l]=b-u,r[p]=x),r=f?1/S:S,s[p]=x,s[l]=i,o[f?t?"scaleY":"scaleX":"scale"+c]=S,o["translate"+c]=r*u+(C-r*v)},t.prototype.reset=function(t,e){var i=this.chart,o=i.hoverSeries,s=i.hoverPoint,r=i.hoverPoints,n=i.tooltip,a=n&&n.shared?r:s;t&&a&&x(a).forEach((function(e){e.series.isCartesian&&void 0===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))})):s&&(s.setState(s.state,!0),i.axes.forEach((function(t){t.crosshair&&s.series[t.coll]===t&&t.drawCrosshair(null,s)})))):(s&&s.onMouseOut(),r&&r.forEach((function(t){t.setState()})),o&&o.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(e,i,o){var s=this.chart,n=s.tooltip&&s.tooltip.options.enabled?s.tooltip:void 0,h=!!n&&n.shared,l=i||s.hoverPoint,c=l&&l.series||s.hoverSeries;i=this.getHoverData(l,c,s.series,(!e||"touchmove"!==e.type)&&(!!i||c&&c.directTouch&&this.isDirectTouch),h,e),l=i.hoverPoint,c=i.hoverSeries;var d=i.hoverPoints;i=c&&c.tooltipOptions.followPointer&&!c.tooltipOptions.split;var u=h&&c&&!c.noSharedTooltip;if(l&&(o||l!==s.hoverPoint||n&&n.isHidden)){if((s.hoverPoints||[]).forEach((function(t){-1===d.indexOf(t)&&t.setState()})),s.hoverSeries!==c&&c.onMouseOver(),this.applyInactiveState(d),(d||[]).forEach((function(t){t.setState("hover")})),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!l.series)return;s.hoverPoints=d,s.hoverPoint=l,l.firePointEvent("mouseOver",void 0,(function(){n&&l&&n.refresh(u?d:l,e)}))}else i&&n&&!n.isHidden&&(o=n.getAnchor([{}],e),s.isInsidePlot(o[0],o[1],{visiblePlotOnly:!0})&&n.updatePosition({plotX:o[0],plotY:o[1]}));this.unDocMouseMove||(this.unDocMouseMove=a(s.container.ownerDocument,"mousemove",(function(e){var i=r[t.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(e)})),this.eventsToUnbind.push(this.unDocMouseMove)),s.axes.forEach((function(t){var i,o=y((t.crosshair||{}).snap,!0);o&&((i=s.hoverPoint)&&i.series[t.coll]===t||(i=p(d,(function(e){return e.series&&e.series[t.coll]===t})))),i||!o?t.drawCrosshair(e,i):t.hideCrosshair()}))},t.prototype.scaleGroups=function(t,e){var i=this.chart;i.series.forEach((function(o){var s=t||o.getPlotBox();o.group&&(o.xAxis&&o.xAxis.zoomEnabled||i.mapView)&&(o.group.attr(s),o.markerGroup&&(o.markerGroup.attr(s),o.markerGroup.clip(e?i.clipRect:null)),o.dataLabelsGroup&&o.dataLabelsGroup.attr(s))})),i.clipRect.attr(e||i.clipBox)},t.prototype.setDOMEvents=function(){var i=this,o=this.chart.container,s=o.ownerDocument;o.onmousedown=this.onContainerMouseDown.bind(this),o.onmousemove=this.onContainerMouseMove.bind(this),o.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(a(o,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(a(o,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=a(s,"mouseup",this.onDocumentMouseUp.bind(this)));for(var r=this.chart.renderTo.parentElement;r&&"BODY"!==r.tagName;)this.eventsToUnbind.push(a(r,"scroll",(function(){delete i.chartPosition}))),r=r.parentElement;e.hasTouch&&(this.eventsToUnbind.push(a(o,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(a(o,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=a(s,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var i=this.chart,o=e.charts[y(t.hoverChartIndex,-1)];o&&o!==i&&o.pointer.onContainerMouseLeave({relatedTarget:i.container}),o&&o.mouseIsDown||(t.hoverChartIndex=i.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,{visiblePlotOnly:!0})&&!i.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var o=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));y(o,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!(!this.chart.options.chart.zooming.singleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,i=e.options.chart;e=e.inverted;var o=i.zooming.type||"";/touch/.test(t.type)&&(o=y(i.zooming.pinchType,o)),this.zoomX=t=/x/.test(o),this.zoomY=i=/y/.test(o),this.zoomHor=t&&!e||i&&e,this.zoomVert=i&&!e||t&&e,this.hasZoom=t||i},t}(),t})),e(i,"Core/MSPointer.js",[i["Core/Globals.js"],i["Core/Pointer.js"],i["Core/Utilities.js"]],(function(t,e,i){function o(){var t=[];return t.item=function(t){return this[t]},p(g,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t}function s(t,i,s,r){var a=n[e.hoverChartIndex||NaN];"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!a||(a=a.pointer,r(t),a[i]({type:s,target:t.currentTarget,preventDefault:h,touches:o()}))}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 o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),n=t.charts,a=t.doc,h=t.noop,l=t.win,c=i.addEvent,d=i.css,p=i.objectEach,u=i.pick,f=i.removeEvent,g={},m=!!l.PointerEvent;return function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return r(i,e),i.isRequired=function(){return!(t.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)},i.prototype.batchMSEvents=function(t){t(this.chart.container,m?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,m?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,m?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},i.prototype.destroy=function(){this.batchMSEvents(f),e.prototype.destroy.call(this)},i.prototype.init=function(t,i){e.prototype.init.call(this,t,i),this.hasZoom&&d(t.container,{"-ms-touch-action":"none","touch-action":"none"})},i.prototype.onContainerPointerDown=function(t){s(t,"onContainerTouchStart","touchstart",(function(t){g[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},i.prototype.onContainerPointerMove=function(t){s(t,"onContainerTouchMove","touchmove",(function(t){g[t.pointerId]={pageX:t.pageX,pageY:t.pageY},g[t.pointerId].target||(g[t.pointerId].target=t.currentTarget)}))},i.prototype.onDocumentPointerUp=function(t){s(t,"onDocumentTouchEnd","touchend",(function(t){delete g[t.pointerId]}))},i.prototype.setDOMEvents=function(){var t=this.chart.tooltip;e.prototype.setDOMEvents.call(this),(this.hasZoom||u(t&&t.options.followTouchMove,!0))&&this.batchMSEvents(c)},i}(e)})),e(i,"Core/Legend/Legend.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Series/Point.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r){var n=t.animObject,a=t.setAnimation,h=e.format,l=i.marginNames,c=s.distribute,d=r.addEvent,p=r.createElement,u=r.css,f=r.defined,g=r.discardElement,m=r.find,v=r.fireEvent,y=r.isNumber,x=r.merge,b=r.pick,S=r.relativeLength,C=r.stableSort,A=r.syncTimeout;return t=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=void 0,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(),d(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=d(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=b(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=x(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=b(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(x(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,b(e,!0)&&i.redraw(),v(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){var i=t.legendItem||{},o=i.group,s=i.label,r=i.line;if(i=i.symbol,o&&o[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var n=this.options;o=this.itemHiddenStyle.color,n=e?n.itemStyle.color:o;var a=e&&t.color||o,h=t.options&&t.options.marker,l={fill:a};s&&s.css({fill:n,color:n}),r&&r.attr({stroke:a}),i&&(h&&i.isMarker&&(l=t.pointAttribs(),e||(l.stroke=l.fill=o)),i.attr(l))}v(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=t.legendItem||{},o=i.group,s=i.x;s=void 0===s?0:s,i=void 0===(i=i.y)?0:i;var r=this.options,n=r.symbolPadding,a=!r.rtl;r=t.checkbox,o&&o.element&&(n={translateX:a?s:this.legendWidth-s-2*n-4,translateY:i},o[f(o.translateY)?"animate":"attr"](n,void 0,(function(){v(e,"afterPositionItem",{item:t})}))),r&&(r.x=s,r.y=i)},t.prototype.destroyItem=function(t){for(var e=t.checkbox,i=t.legendItem||{},o=0,s=["group","label","line","symbol"];oo-6&&n1.5*o?i.height:o))},t.prototype.layoutItem=function(t){var e=this.options,i=this.padding,o="horizontal"===e.layout,s=t.itemHeight,r=this.itemMarginBottom,n=this.itemMarginTop,a=o?b(e.itemDistance,20):0,h=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth;var l=t.legendItem||{};o&&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(s,this.lastLineHeight),l.x=this.itemX,l.y=this.itemY,o?this.itemX+=e:(this.itemY+=n+s+r,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((o?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&&b(i.showInLegend,!f(i.linkedTo)&&void 0,!0)&&(t=t.concat((e.legendItem||{}).labels||("point"===i.legendType?e.data:e)))})),v(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,o=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(r,n){r.test(s)&&!f(t[n])&&(i[l[n]]=Math.max(i[l[n]],i.legend[(n+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][n]*o[n%2?"x":"y"]+b(o.margin,12)+e[n]+(i.titleOffset[n]||0)))}))},t.prototype.proximatePositions=function(){var t=this.chart,e=[],i="left"===this.options.align;this.allItems.forEach((function(o){var s,r=i;if(o.yAxis){o.xAxis.options.reversed&&(r=!r),o.points&&(s=m(r?o.points:o.points.slice(0).reverse(),(function(t){return y(t.plotY)}))),r=this.itemMarginTop+o.legendItem.label.getBBox().height+this.itemMarginBottom;var n=o.yAxis.top-t.plotTop;o.visible?(s=s?s.plotY:o.yAxis.height,s+=n-.3*r):s=n+o.yAxis.height,e.push({target:s,size:r,item:o})}}),this);for(var o,s=0,r=c(e,t.plotHeight);sh&&!1!==p.enabled?(this.clipHeight=e=Math.max(h-20-this.titleHeight-c,0),this.currentPage=b(this.currentPage,1),this.fullHeight=t,m.forEach((function(t,s){t=(o=t.legendItem||{}).y||0;var r=Math.round(o.label.getBBox().height),n=g.length;(!n||t-g[n-1]>e&&(i||t)!==g[n-1])&&(g.push(i||t),n++),o.pageIx=n-1,i&&((m[s-1].legendItem||{}).pageIx=n-1),s===m.length-1&&t+r-g[n-1]>e&&r<=e&&(g.push(t),o.pageIx=n),t!==i&&(i=t)})),S||(S=s.clipRect=n.clipRect(0,c,9999,0),s.contentGroup.clip(S)),v(e),x||(this.nav=x=n.g().attr({zIndex:1}).add(this.group),this.up=n.symbol("triangle",0,0,f,f).add(x),y("upTracker").on("click",(function(){s.scroll(-1,u)})),this.pager=n.text("",15,10).addClass("highcharts-legend-navigation"),!r.styledMode&&p.style&&this.pager.css(p.style),this.pager.add(x),this.down=n.symbol("triangle-down",0,0,f,f).add(x),y("downTracker").on("click",(function(){s.scroll(1,u)}))),s.scroll(0),t=h):x&&(v(),this.nav=x.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var i=this,o=this.chart,s=this.pages,r=s.length,h=this.clipHeight,l=this.options.navigation,c=this.pager,d=this.padding,p=this.currentPage+t;p>r&&(p=r),0=Math.max(h+r,d.pos)&&a<=Math.min(h+r+s.width,d.pos+d.len)||(t.isInsidePlot=!1)}return!i.ignoreY&&t.isInsidePlot&&(o=i.axis&&!i.axis.isXAxis&&i.axis||c&&(o?c.xAxis:c.yAxis)||{pos:n,len:1/0},(i=i.paneCoordinates?o.pos+e:n+e)>=Math.max(l+n,o.pos)&&i<=Math.min(l+n+s.height,o.pos+o.len)||(t.isInsidePlot=!1)),G(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){G(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],i=this.series,o=this.pointer,s=this.legend,r=this.userOptions.legend,n=this.renderer,a=n.isHidden(),h=[],l=this.isDirtyBox,c=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),v(!!this.hasRendered&&t,this),a&&this.temporaryDisplay(),this.layOutTitles(),t=i.length;t--;){var d=i[t];if(d.options.stacking||d.options.centerInCategory){var p=!0;if(d.isDirty){var u=!0;break}}}if(u)for(t=i.length;t--;)(d=i[t]).options.stacking&&(d.isDirty=!0);i.forEach((function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),c=!0):r&&(r.labelFormatter||r.labelFormat)&&(c=!0)),t.isDirtyData&&G(t,"updatedData")})),c&&s&&s.options.enabled&&(s.render(),this.isDirtyLegend=!1),p&&this.getStacks(),e.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),e.forEach((function(t){t.isDirty&&(l=!0)})),e.forEach((function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,h.push((function(){G(t,"afterSetExtremes",N(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(l||p)&&t.redraw()})),l&&this.drawChartBox(),G(this,"predraw"),i.forEach((function(t){(l||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),o&&o.reset(!0),n.draw(),G(this,"redraw"),G(this,"render"),a&&this.temporaryDisplay(!0),h.forEach((function(t){t.call()}))},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}for(var i=this.series,o=z(this.axes,e)||z(this.series,e),s=0;!o&&si.pointCount))},t.prototype.pan=function(t,e){var i=this,o=i.hoverPoints;e="object"==typeof e?e:{enabled:e,type:"x"};var s=i.options.chart;s&&s.panning&&(s.panning=e);var r,n=e.type;G(this,"pan",{originalEvent:t},(function(){o&&o.forEach((function(t){t.setState()}));var e=i.xAxis;"xy"===n?e=e.concat(i.yAxis):"y"===n&&(e=i.yAxis);var s={};e.forEach((function(e){if(e.options.panningEnabled&&!e.options.isInternal){var o=e.horiz,a=t[o?"chartX":"chartY"],h=i[o=o?"mouseDownX":"mouseDownY"],l=e.minPointOffset||0,c=e.reversed&&!i.inverted||!e.reversed&&i.inverted?-1:1,d=e.getExtremes(),p=e.toValue(h-a,!0)+l*c,u=e.toValue(h+e.len-a,!0)-(l*c||e.isXAxis&&e.pointRangePadding||0),f=u=c&&p<=u&&(e.setExtremes(h,p,!1,!1,{trigger:"pan"}),!i.resetZoomButton&&h!==c&&p!==u&&n.match("y")&&(i.showResetZoom(),e.displayBtn=!1),r=!0),s[o]=a)}})),Y(s,(function(t,e){i[e]=t})),r&&i.redraw(!1),D(i.container,{cursor:"move"})}))},t}(),N(t.prototype,{callbacks:[],collectionsWithInit:{xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),t})),e(i,"Core/Legend/LegendSymbol.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.extend,o=t.merge,s=t.pick;return function(t){t.drawLineMarker=function(t){var e=this.legendItem=this.legendItem||{},r=this.options,n=t.symbolWidth,a=t.symbolHeight,h=a/2,l=this.chart.renderer,c=e.group;t=t.baseline-Math.round(.3*t.fontMetrics.b);var d={},p=r.marker,u=0;this.chart.styledMode||(d={"stroke-width":Math.min(r.lineWidth||0,24)},r.dashStyle?d.dashstyle=r.dashStyle:"square"!==r.linecap&&(d["stroke-linecap"]="round")),e.line=l.path().addClass("highcharts-graph").attr(d).add(c),d["stroke-linecap"]&&(u=Math.min(e.line.strokeWidth(),n)/2),e.line.attr({d:[["M",u,t],["L",n-u,t]]}),p&&!1!==p.enabled&&n&&(r=Math.min(s(p.radius,h),h),0===this.symbol.indexOf("url")&&(p=o(p,{width:a,height:a}),r=0),e.symbol=e=l.symbol(this.symbol,n/2-r,t-r,2*r,2*r,i({context:"legend"},p)).addClass("highcharts-point").add(c),e.isMarker=!0)},t.drawRectangle=function(t,e){e=e.legendItem||{};var i=t.symbolHeight,o=t.options.squareSymbol;e.symbol=this.chart.renderer.rect(o?(t.symbolWidth-i)/2:0,t.baseline-i+1,o?i:t.symbolWidth,i,s(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.group)}}(e||(e={})),e})),e(i,"Core/Series/SeriesDefaults.js",[],(function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}})),e(i,"Core/Series/Series.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Defaults.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/Point.js"],i["Core/Series/SeriesDefaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,a,h,l){var c=t.animObject,d=t.setAnimation,p=e.defaultOptions,u=i.registerEventOptions,f=o.hasTouch,g=o.svg,m=o.win,v=a.seriesTypes,y=l.arrayMax,x=l.arrayMin,b=l.clamp,S=l.cleanRecursively,C=l.correctFloat,A=l.defined,w=l.erase,k=l.error,M=l.extend,T=l.find,P=l.fireEvent,E=l.getNestedProperty,O=l.isArray,L=l.isNumber,D=l.isString,j=l.merge,R=l.objectEach,B=l.pick,I=l.removeEvent,N=l.splat,z=l.syncTimeout;return t=function(){function t(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return t.prototype.init=function(t,e){P(this,"init",{options:e});var i=this,o=t.series;this.eventsToUnbind=[],i.chart=t,i.options=i.setOptions(e),e=i.options,i.linkedSeries=[],i.bindAxes(),M(i,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),u(this,e);var s,r=e.events;(r&&r.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),i.getColor(),i.getSymbol(),i.parallelArrays.forEach((function(t){i[t+"Data"]||(i[t+"Data"]=[])})),i.isCartesian&&(t.hasCartesianSeries=!0),o.length&&(s=o[o.length-1]),i._i=B(s&&s._i,-1)+1,i.opacity=i.options.opacity,t.orderSeries(this.insert(o)),e.dataSorting&&e.dataSorting.enabled?i.setDataSortingOptions():i.points||i.data||i.setData(e.data,!1),P(this,"afterInit")},t.prototype.is=function(t){return v[t]&&this instanceof v[t]},t.prototype.insert=function(t){var e,i=this.options.index;if(L(i)){for(e=t.length;e--;)if(i>=B(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 B(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,i=e.options,o=e.chart;P(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(s){var r=0;o[s].forEach((function(o){t=o.options,(i[s]===r&&!t.isInternal||void 0!==i[s]&&i[s]===t.id||void 0===i[s]&&0===t.index)&&(e.insert(o.series),e[s]=o,o.isDirty=!0),t.isInternal||r++})),e[s]||e.optionalAxis===s||k(18,!0,o)}))})),P(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var i=t.series,o=arguments,s=L(e)?function(o){var s="y"===o&&i.toYData?i.toYData(t):t[o];i[o+"Data"][e]=s}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(o,2))};i.parallelArrays.forEach(s)},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0=this.cropStart?l-this.cropStart:l),!o&&L(l)&&a[l]&&a[l].touched&&(l=void 0),l},t.prototype.updateData=function(t,e){var i,o,s,r=this.options,n=r.dataSorting,a=this.points,h=[],l=this.requireSorting,c=t.length===a.length,d=!0;if(this.xIncrement=null,t.forEach((function(t,e){var o=A(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},d=o.x;o.id||L(d)?(-1===(o=this.findPointIndex(o,s))||void 0===o?h.push(t):a[o]&&t!==r.data[o]?(a[o].update(t,!1,null,!1),a[o].touched=!0,l&&(s=o+1)):a[o]&&(a[o].touched=!0),(!c||e!==o||n&&n.enabled||this.hasDerivedData)&&(i=!0)):h.push(t)}),this),i)for(t=a.length;t--;)(o=a[t])&&!o.touched&&o.remove&&o.remove(!1,e);else!c||n&&n.enabled?d=!1:(t.forEach((function(t,e){t!==a[e].y&&a[e].update&&a[e].update(t,!1,null,!1)})),h.length=0);return a.forEach((function(t){t&&(t.touched=!1)})),!!d&&(h.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=y(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,i,o){void 0===e&&(e=!0);var s=this,r=s.points,n=r&&r.length||0,a=s.options,h=s.chart,l=a.dataSorting,c=s.xAxis,d=a.turboThreshold,p=this.xData,u=this.yData,f=s.pointArrayMap;f=f&&f.length;var g,m=a.keys,v=0,y=1,x=null;if(!h.options.chart.allowMutatingData){a.data&&delete s.options.data,s.userOptions.data&&delete s.userOptions.data;var b=j(!0,t)}if(b=(t=b||t||[]).length,l&&l.enabled&&(t=this.sortData(t)),h.options.chart.allowMutatingData&&!1!==o&&b&&n&&!s.cropped&&!s.hasGroupedData&&s.visible&&!s.boosted&&(g=this.updateData(t,i)),!g){if(s.xIncrement=null,s.colorCounter=0,this.parallelArrays.forEach((function(t){s[t+"Data"].length=0})),d&&b>d)if(x=s.getFirstValidPoint(t),L(x))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,s=i.data;i.dataSorting&&i.dataSorting.enabled||!s||(s.forEach((function(i,r){s[r]=o(e,i),t[r]&&(s[r].x=t[r].x,s[r].index=r)})),e.setData(s,!1))})),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,i=this.options,o=i.cropThreshold,s=t||this.getExtremesFromAll||i.getExtremesFromAll,r=this.isCartesian;t=e&&e.val2lin,i=!(!e||!e.logarithmic);var n=0,a=this.xData,h=this.yData,l=this.requireSorting,c=!1,d=a.length;if(e){var p=(c=e.getExtremes()).min,u=c.max;c=!(!e.categories||e.names.length)}if(r&&this.sorted&&!s&&(!o||d>o||this.forceCrop))if(a[d-1]u)a=[],h=[];else if(this.yData&&(a[0]u)){var f=this.cropData(this.xData,this.yData,p,u);a=f.xData,h=f.yData,n=f.start,f=!0}for(o=a.length||1;--o;)if(0<(e=i?t(a[o])-t(a[o-1]):a[o]-a[o-1])&&(void 0===g||ee&&l&&!c&&(k(15,!1,this.chart),l=!1);return{xData:a,yData:h,cropped:f,cropStart:n,closestPointRange:g}},t.prototype.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,P(this,"afterProcessData")},t.prototype.cropData=function(t,e,i,o,s){var r,n=t.length,a=0,h=n;for(s=B(s,this.cropShoulder),r=0;r=i){a=Math.max(0,r-s);break}for(i=r;io){h=i+s;break}return{xData:t.slice(a,h),yData:e.slice(a,h),start:a,end:h}},t.prototype.generatePoints=function(){var t=this.options,e=this.processedData||t.data,i=this.processedXData,o=this.processedYData,s=this.pointClass,r=i.length,n=this.cropStart||0,a=this.hasGroupedData,h=t.keys,l=[];t=t.dataGrouping&&t.dataGrouping.groupAll?n:0;var c,d,p=this.data;if(!p&&!a){var u=[];u.length=e.length,p=this.data=u}for(h&&a&&(this.options.keys=!1),d=0;d=h&&(s[a-n]||u)<=l,f&&u)if(f=p.length)for(;f--;)L(p[f])&&(r[c++]=p[f]);else r[c++]=p}return t={activeYData:r,dataMin:x(r),dataMax:y(r)},P(this,"afterGetExtremes",{dataExtremes:t}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=t.length,i=0,o=null;null===o&&i=w&&(w=void 0),m.total=m.stackTotal=B(y.total),m.percentage=A(m.y)&&y.total?m.y/y.total*100:void 0,m.stackY=S,this.irregularWidths||y.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(m.yBottom=A(w)?b(a.translate(w,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(S=this.dataModify.modifyValue(S,t)),m.plotY=void 0,L(S)&&void 0!==(y=a.translate(S,!1,!0,!1,!0))&&(m.plotY=b(y,-1e5,1e5)),m.isInside=this.isPointInside(m),m.clientX=d?C(s.translate(v,0,0,0,1,c)):e,m.negative=m[f]<(i[f+"Threshold"]||p||0),m.category=B(r&&r[m.x],m.x),!m.isNull&&!1!==m.visible){void 0!==T&&(g=Math.min(g,Math.abs(e-T)));var T=e}m.zone=this.zones.length?m.getZone():void 0,!m.graphic&&this.group&&n&&(m.isNew=!0)}this.closestPointRangePx=g,P(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,i){var o=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!o.isInsidePlot(t.plotX,t.plotY,{inverted:o.inverted}))&&!1!==t.visible&&(i||!t.isNull)}))},t.prototype.getClipBox=function(){var t=this.chart,e=this.xAxis,i=this.yAxis,o=j(t.clipBox);return e&&e.len!==t.plotSizeX&&(o.width=e.len),i&&i.len!==t.plotSizeY&&(o.height=i.len),o},t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},t.prototype.setClip=function(){var t=this.chart,e=this.group,i=this.markerGroup,o=t.sharedClips;t=t.renderer;var s=this.getClipBox(),r=this.getSharedClipKey(),n=o[r];n?n.animate(s):o[r]=n=t.clipRect(s),e&&e.clip(!1===this.options.clip?void 0:n),i&&i.clip()},t.prototype.animate=function(t){var e=this.chart,i=this.group,o=this.markerGroup,s=e.inverted,r=c(this.options.animation),n=[this.getSharedClipKey(),r.duration,r.easing,r.defer].join(),a=e.sharedClips[n],h=e.sharedClips[n+"m"];if(t&&i)r=this.getClipBox(),a?a.attr("height",r.height):(r.width=0,s&&(r.x=e.plotHeight),a=e.renderer.clipRect(r),e.sharedClips[n]=a,h=e.renderer.clipRect({x:-99,y:-99,width:s?e.plotWidth+199:99,height:s?99:e.plotHeight+199}),e.sharedClips[n+"m"]=h),i.clip(a),o&&o.clip(h);else if(a&&!a.hasClass("highcharts-animating")){e=this.getClipBox();var l=r.step;o&&o.element.childNodes.length&&(r.step=function(t,e){l&&l.apply(e,arguments),"width"===e.prop&&h&&h.element&&h.attr(s?"height":"width",t+99)}),a.addClass("highcharts-animating").animate(e,r)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),R(this.chart.sharedClips,(function(e,i,o){e&&!t.chart.container.querySelector('[clip-path="url(#'.concat(e.id,')"]'))&&(e.destroy(),delete o[i])})),this.finishedAnimating=!0,P(this,"afterAnimate")},t.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i,o=this.chart,s=o.styledMode,r=this.colorAxis,n=this.options.marker,a=this[this.specialGroup||"markerGroup"],h=this.xAxis,l=B(n.enabled,!(h&&!h.isRadial)||null,this.closestPointRangePx>=n.enabledThreshold*n.radius);if(!1!==n.enabled||this._hasPointMarkers)for(e=0;eC.max,h.resetZones&&0===e&&(e=void 0)})),this.clips=p}else h.visible&&(u&&u.show(),f&&f.show())},t.prototype.plotGroup=function(t,e,i,o,s){var r=this[t],n=!r;return i={visibility:i,zIndex:o||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(i.opacity=this.opacity),n&&(this[t]=r=this.chart.renderer.g().add(s)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(A(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(i)[n?"attr":"animate"](this.getPlotBox(e)),r},t.prototype.getPlotBox=function(t){var e=this.xAxis,i=this.yAxis,o=this.chart;return t=o.inverted&&!o.polar&&e&&!1!==this.invertible&&"series"===t,o.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:o.plotLeft,translateY:i?i.top:o.plotTop,rotation:t?90:0,rotationOriginX:t?(e.len-i.len)/2:0,rotationOriginY:t?(e.len+i.len)/2:0,scaleX:t?-1:1,scaleY:1}},t.prototype.removeEvents=function(t){t||I(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,i=t.options,o=c(i.animation),s=t.visible?"inherit":"hidden",r=i.zIndex,n=t.hasRendered,a=e.seriesGroup;e=!t.finishedAnimating&&e.renderer.isSVG?o.duration:0,P(this,"render"),t.plotGroup("group","series",s,r,a),t.markerGroup=t.plotGroup("markerGroup","markers",s,r,a),!1!==i.clip&&t.setClip(),t.animate&&e&&t.animate(!0),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.animate&&e&&t.animate(),n||(e&&o.defer&&(e+=o.defer),t.animationTimeout=z((function(){t.afterAnimate()}),e||0)),t.isDirty=!1,t.hasRendered=!0,P(t,"afterRender")},t.prototype.redraw=function(){var t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var i=this.xAxis,o=this.yAxis,s=this.chart.inverted;return this.searchKDTree({clientX:s?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:s?o.len-t.chartX+o.pos:t.chartY-o.pos},e,t)},t.prototype.buildKDTree=function(t){function e(t,o,s){var r=t&&t.length;if(r){var n=i.kdAxisArray[o%s];return t.sort((function(t,e){return t[n]-e[n]})),{point:t[r=Math.floor(r/2)],left:e(t.slice(0,r),o+1,s),right:e(t.slice(r+1),o+1,s)}}}this.buildingKdTree=!0;var i=this,o=-1(c=e[c]-l[c])?"right":"left",i[u=0>c?"left":"right"]&&(d=(u=t(e,i[u],a+1,h))[n]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.processedData)&&(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!==s&&P(this,"addPoint",{point:p}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(o)},t.prototype.removePoint=function(t,e,i){var o=this,s=o.data,r=s[t],n=o.points,a=o.chart,h=function(){n&&n.length===s.length&&n.splice(t,1),s.splice(t,1),o.options.data.splice(t,1),o.updateParallelArrays(r||{series:o},"splice",t,1),r&&r.destroy(),o.isDirty=!0,o.isDirtyData=!0,e&&a.redraw()};d(i,a),e=B(e,!0),r?r.firePointEvent("remove",null,h):h()},t.prototype.remove=function(t,e,i,o){function s(){r.destroy(o),n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(),B(t,!0)&&n.redraw(e)}var r=this,n=r.chart;!1!==i?P(r,"remove",null,s):s()},t.prototype.update=function(t,e){t=S(t,this.userOptions),P(this,"update",{options:t});var i=this,o=i.chart,s=i.userOptions,r=i.initialType||i.type,n=o.options.plotOptions,a=v[r].prototype,h=i.finishedAnimating&&{animation:!1},l={},c=["eventOptions","navigatorSeries","baseSeries"],d=t.type||s.type||o.options.chart.type,p=!(this.hasDerivedData||d&&d!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||i.hasOptionChanged("dataGrouping")||i.hasOptionChanged("pointStart")||i.hasOptionChanged("pointInterval")||i.hasOptionChanged("pointIntervalUnit")||i.hasOptionChanged("keys"));if(d=d||r,p&&(c.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&c.push("area","graph"),i.parallelArrays.forEach((function(t){c.push(t+"Data")})),t.data&&(t.dataSorting&&M(i.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=j(s,h,{index:void 0===s.index?i.index:s.index,pointStart:B(n&&n.series&&n.series.pointStart,s.pointStart,i.xData[0])},!p&&{data:i.options.data},t),p&&t.data&&(t.data=i.options.data),(c=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(c)).forEach((function(t){c[t]=i[t],delete i[t]})),n=!1,v[d]){if(n=d!==i.type,i.remove(!1,!1,!1,!0),n)if(Object.setPrototypeOf)Object.setPrototypeOf(i,v[d].prototype);else{for(u in h=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents,a)i[u]=void 0;M(i,v[d].prototype),h?i.hcEvents=h:delete i.hcEvents}}else k(17,!0,o,{missingModuleFor:d});if(c.forEach((function(t){i[t]=c[t]})),i.init(o,t),p&&this.points){if(!1===(t=i.options).visible)l.graphic=1,l.dataLabel=1;else if(!i._hasPointLabels){a=t.marker;var u=t.dataLabels;s=s.marker||{},!a||!1!==a.enabled&&s.symbol===a.symbol&&s.height===a.height&&s.width===a.width||(l.graphic=1),u&&!1===u.enabled&&(l.dataLabel=1)}for(s=0,a=this.points;sr&&e.shadow)),a&&(a.startX=i.xMap,a.isArea=i.isArea)}))},i.prototype.getGraphPath=function(t,e,i){var o,r=this,n=r.options,a=[],h=[],l=n.step,c=(t=t||r.points).reversed;return c&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&c&&(l=4-l),(t=this.getValidPoints(t,!1,!(n.connectNulls&&!e&&!i))).forEach((function(c,d){var p=c.plotX,u=c.plotY,f=t[d-1];(c.leftCliff||f&&f.rightCliff)&&!i&&(o=!0),c.isNull&&!s(e)&&0t&&c>s?d=2*s-(c=Math.max(t,s)):ci&&d>s?c=2*s-(d=Math.max(i,s)):d=Math.abs(e)&&.5t.closestPointRange*t.xAxis.transA;o=t.borderWidth=x(i.borderWidth,o?0:1);var s=t.xAxis,n=t.yAxis,a=i.threshold,h=t.translatedThreshold=n.getThreshold(a),l=x(i.minPointLength,5),c=t.getColumnMetrics(),d=c.width,f=t.pointXOffset=c.offset,g=t.dataMin,m=t.dataMax,y=t.barW=Math.max(d,1+2*o);e.inverted&&(h-=.5),i.pointPadding&&(y=Math.ceil(y)),r.prototype.translate.apply(t),t.points.forEach((function(o){var r=x(o.yBottom,h),b=999+Math.abs(r),S=o.plotX||0;b=p(o.plotY,-b,n.len+b);var C=Math.min(b,r),A=Math.max(b,r)-C,w=d,k=S+f,M=y;l&&Math.abs(A)l?r-l:h-(S?l:0)),u(o.options.pointWidth)&&(w=M=Math.ceil(o.options.pointWidth),k-=Math.round((w-d)/2)),i.centerInCategory&&(k=t.adjustForMissingColumns(k,w,o,c)),o.barX=k,o.pointWidth=w,o.tooltipPos=e.inverted?[p(n.len+n.pos-e.plotLeft-b,n.pos-e.plotLeft,n.len+n.pos-e.plotLeft),s.len+s.pos-e.plotTop-k-M/2,A]:[s.left-e.plotLeft+k+M/2,p(b+n.pos-e.plotTop,n.pos-e.plotTop,n.len+n.pos-e.plotTop),A],o.shapeType=t.pointClass.prototype.shapeType||"rect",o.shapeArgs=t.crispCol.apply(t,o.isNull?[k,h,M,0]:[k,C,M,A])}))},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var i=this.options,o=this.pointAttrToOptions||{},s=o.stroke||"borderColor",r=o["stroke-width"]||"borderWidth",n=t&&t.color||this.color,a=t&&t[s]||i[s]||n;o=t&&t.options.dashStyle||i.dashStyle;var h=t&&t[r]||i[r]||this[r]||0,l=x(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,o=d.dashStyle||o,h=d.borderWidth||h)}return e&&t&&(e=(t=y(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,n=t.color||void 0!==e&&c(n).brighten(t.brightness).get()||n,a=t[s]||a,h=t[r]||h,o=t.dashStyle||o,l=x(t.opacity,l)),s={fill:n,stroke:a,"stroke-width":h,opacity:l},o&&(s.dashstyle=o),s},e.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i=this,o=this.chart,s=i.options,r=o.renderer,n=s.animationLimit||250;t.forEach((function(t){var a=t.graphic,h=!!a,l=a&&o.pointCount"===e&&t>i||"<"===e&&t="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}(t,s),l=t.connectors?t.connectors[a]:t.connector,c=t.dataLabels?t.dataLabels[a]:t.dataLabel,f=!c,g=u(s.distance,t.labelDistance);if(h){var m=t.getLabelConfig(),v=u(s[t.formatPrefix+"Format"],s.format);m=n(v)?r(v,m,i):(s[t.formatPrefix+"Formatter"]||s.formatter).call(m,s),v=s.style;var x=s.rotation;i.styledMode||(v.color=u(s.color,v.color,e.color,"#000000"),"contrast"===v.color?(t.contrastColor=d.getContrast(t.color||e.color),v.color=!n(g)&&s.inside||0>g||o.stacking?t.contrastColor:y):delete t.contrastColor,o.cursor&&(v.cursor=o.cursor));var S={r:s.borderRadius||0,rotation:x,padding:s.padding,zIndex:1};if(!i.styledMode){g=s.backgroundColor;var C=s.borderColor;S.fill="auto"===g?t.color:g,S.stroke="auto"===C?t.color:C,S["stroke-width"]=s.borderWidth}p(S,(function(t,e){void 0===t&&delete S[e]}))}!c||h&&n(m)&&!!c.div==!!s.useHTML&&(c.rotation&&s.rotation||c.rotation===s.rotation)||(f=!0,t.dataLabel=c=t.dataLabel&&t.dataLabel.destroy(),t.dataLabels&&(1===t.dataLabels.length?delete t.dataLabels:delete t.dataLabels[a]),a||delete t.dataLabel,l&&(t.connector=t.connector.destroy(),t.connectors&&(1===t.connectors.length?delete t.connectors:delete t.connectors[a]))),h&&n(m)?(c?S.text=m:(t.dataLabels=t.dataLabels||[],c=t.dataLabels[a]=x?d.text(m,0,0,s.useHTML).addClass("highcharts-data-label"):d.label(m,0,0,s.shape,null,null,s.useHTML,null,"data-label"),a||(t.dataLabel=c),c.addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(s.className||"")+(s.useHTML?" highcharts-tracker":""))),c.options=s,c.attr(S),i.styledMode||c.css(v).shadow(s.shadow),(a=s[t.formatPrefix+"TextPath"]||s.textPath)&&!s.useHTML&&(c.setTextPath(t.getDataLabelPath&&t.getDataLabelPath(c)||t.graphic,a),t.dataLabelPath&&!a.enabled&&(t.dataLabelPath=t.dataLabelPath.destroy())),c.added||c.add(b),e.alignDataLabel(t,c,s,null,f)):c&&c.hide()}))}))}h(this,"afterDrawDataLabels")}function o(t,e,i,o,s,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;d=void 0===d?0:d;var p=(i.x||0)+l;if(0>p){"right"===a&&0<=c?(e.align="left",e.inside=!0):c-=p;var u=!0}return(p=(i.x||0)+o.width-l)>n.plotWidth&&("left"===a&&0>=c?(e.align="right",e.inside=!0):c+=n.plotWidth-p,u=!0),0>(p=i.y+l)&&("bottom"===h&&0<=d?(e.verticalAlign="top",e.inside=!0):d-=p,u=!0),(p=(i.y||0)+o.height-l)>n.plotHeight&&("top"===h&&0>=d?(e.verticalAlign="bottom",e.inside=!0):d+=n.plotHeight-p,u=!0),u&&(e.x=c,e.y=d,t.placed=!r,t.align(e,void 0,s)),u}function g(t,e){var i,o=[];if(l(t)&&!l(e))o=t.map((function(t){return d(t,e)}));else if(l(e)&&!l(t))o=e.map((function(e){return d(t,e)}));else if(l(t)||l(e))for(i=Math.max(t.length,e.length);i--;)o[i]=d(t[i],e[i]);else o=d(t,e);return o}function m(t,e,i,o,s){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,e.startXPos=n?s.x:h?-l-t:a.width-l+t,e.startYPos=n?h?this.yAxis.height-l+t:-l-t:s.y,o?"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)}var v=[];t.compose=function(t){if(-1===v.indexOf(t)){var s=t.prototype;v.push(t),s.alignDataLabel=e,s.drawDataLabels=i,s.justifyDataLabel=o,s.setDataLabelStartPos=m}}}(o||(o={})),o})),e(i,"Series/Column/ColumnDataLabel.js",[i["Core/Series/DataLabel.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i){var o,s=e.series,r=i.merge,n=i.pick;return function(e){function i(t,e,i,o,a){var h=this.chart.inverted,l=t.series,c=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||0;l=(l.yAxis?l.yAxis.len:this.chart.plotSizeY)||0;var d=t.dlBox||t.shapeArgs,p=n(t.below,t.plotY>n(this.translatedThreshold,l)),u=n(i.inside,!!this.options.stacking);d&&(0>(o=r(d)).y&&(o.height+=o.y,o.y=0),0<(d=o.y+o.height-l)&&d {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}})),e(i,"Series/Scatter/ScatterSeries.js",[i["Series/Scatter/ScatterSeriesDefaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=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 o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=e.seriesTypes,r=s.column,n=s.line;s=i.addEvent;var a=i.extend,h=i.merge;return i=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return o(i,e),i.prototype.applyJitter=function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach((function(o,s){["x","y"].forEach((function(r,n){var a="plot"+r.toUpperCase();if(e[r]&&!o.isNull){var h=t[r+"Axis"],l=e[r]*h.transA;if(h&&!h.isLog){var c=Math.max(0,o[a]-l);h=Math.min(h.len,o[a]+l),n=1e4*Math.sin(s+n*i),o[a]=c+(h-c)*(n-Math.floor(n)),"x"===r&&(o.clientX=o.plotX)}}}))}))},i.prototype.drawGraph=function(){this.options.lineWidth?e.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},i.defaultOptions=h(n.defaultOptions,t),i}(n),a(i.prototype,{drawTracker:r.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),s(i,"afterTranslate",(function(){this.applyJitter()})),e.registerSeriesType("scatter",i),i})),e(i,"Series/CenteredUtilities.js",[i["Core/Globals.js"],i["Core/Series/Series.js"],i["Core/Utilities.js"]],(function(t,e,i){var o,s=t.deg2rad,r=i.fireEvent,n=i.isNumber,a=i.pick,h=i.relativeLength;return function(t){t.getCenter=function(){var t=this.options,i=this.chart,o=2*(t.slicedOffset||0),s=i.plotWidth-2*o,l=i.plotHeight-2*o,c=t.center,d=Math.min(s,l),p=t.thickness,u=t.size,f=t.innerSize||0;for("string"==typeof u&&(u=parseFloat(u)),"string"==typeof f&&(f=parseFloat(f)),t=[a(c[0],"50%"),a(c[1],"50%"),a(u&&0>u?void 0:t.size,"100%"),a(f&&0>f?void 0:t.innerSize||0,"0%")],!i.angular||this instanceof e||(t[3]=0),c=0;4>c;++c)u=t[c],i=2>c||2===c&&/%$/.test(u),t[c]=h(u,[s,l,d,t[2]][c])+(i?o:0);return t[3]>t[2]&&(t[3]=t[2]),n(p)&&2*pt&&360>e-t?e:t+360,{start:s*(t+-90),end:s*(e+-90)}}}(o||(o={})),o})),e(i,"Series/Pie/PiePoint.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=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 o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=t.setAnimation,r=i.addEvent,n=i.defined;t=i.extend;var a=i.isNumber,h=i.pick,l=i.relativeLength;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return o(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=this.connectorShapes,o=e.connectorShape;return i[o]&&(o=i[o]),o.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},e.prototype.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})},e.prototype.init=function(){var e=this;t.prototype.init.apply(this,arguments),this.name=h(this.name,"Slice");var i=function(t){e.slice("select"===t.type)};return r(this,"select",i),r(this,"unselect",i),this},e.prototype.isValid=function(){return a(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var i=this,o=this.series,s=o.chart,r=o.options.ignoreHiddenPoint;e=h(e,r),t!==this.visible&&(this.visible=this.options.visible=t=void 0===t?!this.visible:t,o.options.data[o.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){i[e]&&i[e][t?"show":"hide"](t)})),this.legendItem&&s.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),r&&(o.isDirty=!0),e&&s.redraw())},e.prototype.slice=function(t,e,i){var o=this.series;s(i,o.chart),h(e,!0),this.sliced=this.options.sliced=n(t)?t:!this.sliced,o.options.data[o.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},e}(e),t(e.prototype,{connectorShapes:{fixedOffset:function(t,e,i){var o=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*o.x-e.x,2*o.y-e.y,o.x,o.y]:["L",o.x,o.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 o=this.series,s=o.center[0],r=o.chart.plotWidth,n=o.chart.plotLeft;o=t.alignment;var a=this.shapeArgs.r;return i=l(i.crookDistance,1),i=["L",r="left"===o?s+a+(r+n-s-a)*(1-i):n+(s-a)*i,t.y],s=!0,("left"===o?r>t.x||re.x)&&(s=!1),t=[["M",t.x,t.y]],s&&t.push(i),t.push(["L",e.x,e.y]),t}}}),e})),e(i,"Series/Pie/PieSeriesDefaults.js",[],(function(){return{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}}}})),e(i,"Series/Pie/PieSeries.js",[i["Series/CenteredUtilities.js"],i["Series/Column/ColumnSeries.js"],i["Core/Globals.js"],i["Core/Legend/LegendSymbol.js"],i["Series/Pie/PiePoint.js"],i["Series/Pie/PieSeriesDefaults.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/Symbols.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,a,h,l){var c=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 o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),d=t.getStartAndEndRadians;i=i.noop;var p=l.clamp,u=l.extend,f=l.fireEvent,g=l.merge,m=l.pick,v=l.relativeLength;return l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return c(e,t),e.prototype.animate=function(t){var e=this,i=e.points,o=e.startAngleRad;t||i.forEach((function(t){var i=t.graphic,s=t.shapeArgs;i&&s&&(i.attr({r:m(t.startR,e.center&&e.center[3]/2),start:o,end:o}),i.animate({r:s.r,start:s.start,end:s.end},e.options.animation))}))},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,i=this.options;if(0===this.total&&this.center){var o=this.center[0],s=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(o,s,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:h.arc(o,s,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())},e.prototype.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)}))},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,i){var o=this.center,s=this.radii?this.radii[i.index]||0:o[2]/2;return t=Math.asin(p((t-o[1])/(s+i.labelDistance),-1,1)),o[0]+(e?-1:1)*Math.cos(t)*(s+i.labelDistance)+(01.5*Math.PI?g-=2*Math.PI:g<-Math.PI/2&&(g+=2*Math.PI),p.slicedTranslation={translateX:Math.round(Math.cos(g)*i),translateY:Math.round(Math.sin(g)*i)},y=Math.cos(g)*t[2]/2;var x=Math.sin(g)*t[2]/2;p.tooltipPos=[t[0]+.7*y,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]+y+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]+y+Math.cos(g)*u,y:t[1]+x+Math.sin(g)*u},touchingSliceAt:{x:t[0]+y,y:t[1]+x}}}}f(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,i=e.length,o=this.options.ignoreHiddenPoint,s=0;for(t=0;tM&&(t.dataLabel.css({width:Math.round(.7*M)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),O.forEach((function(e,i){var h,l=e.length,p=[];if(l){if(y.sortByAngle(e,i-.5),0A-C&&0===i&&(x=Math.round(c+s-A+C),L[1]=Math.max(x,L[1])),0>f-n/2?L[0]=Math.max(Math.round(n/2-f),L[0]):f+n/2>w&&(L[2]=Math.max(Math.round(f+n/2-w),L[2])),o.sideOverflow=x)}}})),0===l(L)||this.verifyDataLabelOverflow(L))&&(this.placeDataLabels(),this.points.forEach((function(t){var s;v=p(S,t.options.dataLabels),(e=u(v.connectorWidth,1))&&(i=t.connector,(o=t.dataLabel)&&o._pos&&t.visible&&0e.bottom-2?o:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,o){return t=t.getBBox().width,e?t+o:i-t-o},alignToConnectors:function(t,e,i,o){var s,r=0;return t.forEach((function(t){(s=t.dataLabel.getBBox().width)>r&&(r=s)})),e?r+o:i-r-o}};e.compose=function(e){t.compose(h),-1===r.indexOf(e)&&(r.push(e),(e=e.prototype).dataLabelPositioners=g,e.alignDataLabel=n,e.drawDataLabels=i,e.placeDataLabels=o,e.verifyDataLabelOverflow=s)}}(r||(r={})),r})),e(i,"Extensions/OverlappingDataLabels.js",[i["Core/Chart/Chart.js"],i["Core/Utilities.js"]],(function(t,e){function i(t,e){var i=!1;if(t){var o=t.newOpacity;t.oldOpacity!==o&&(t.alignAttr&&t.placed?(t[o?"removeClass":"addClass"]("highcharts-data-label-hidden"),i=!0,t.alignAttr.opacity=o,t[t.isOld?"animate":"attr"](t.alignAttr,null,(function(){e.styledMode||t.css({pointerEvents:o?"auto":"none"})})),s(e,"afterHideOverlappingLabel")):t.attr({opacity:o})),t.isOld=!0}return i}var o=e.addEvent,s=e.fireEvent,r=e.isArray,n=e.isNumber,a=e.objectEach,h=e.pick;o(t,"render",(function(){var t=this,e=[];(this.labelCollectors||[]).forEach((function(t){e=e.concat(t())})),(this.yAxis||[]).forEach((function(t){t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&a(t.stacking.stacks,(function(t){a(t,(function(t){t.label&&e.push(t.label)}))}))})),(this.series||[]).forEach((function(o){var s=o.options.dataLabels;o.visible&&(!1!==s.enabled||o._hasPointLabels)&&(s=function(o){return o.forEach((function(o){o.visible&&(r(o.dataLabels)?o.dataLabels:o.dataLabel?[o.dataLabel]:[]).forEach((function(s){var r=s.options;s.labelrank=h(r.labelrank,o.labelrank,o.shapeArgs&&o.shapeArgs.height),r.allowOverlap?(s.oldOpacity=s.opacity,s.newOpacity=1,i(s,t)):e.push(s)}))}))},s(o.nodes||[]),s(o.points))})),this.hideOverlappingLabels(e)})),t.prototype.hideOverlappingLabels=function(t){var e,o,r,a=this,h=t.length,l=a.renderer,c=!1,d=function(t){var e,i,o=t.box?0:t.padding||0,s=e=0;if(t&&(!t.alignAttr||t.placed)){var r=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},a=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=l.fontMetrics(null,t.element).h);var h=t.width-2*o;return(i={left:"0",center:"0.5",right:"1"}[t.alignValue])?s=+i*h:n(t.x)&&Math.round(t.x)!==t.translateX&&(s=t.x-t.translateX),{x:r.x+(a.translateX||0)+o-(s||0),y:r.y+(a.translateY||0)+o-e,width:t.width-2*o,height:t.height-2*o}}};for(o=0;o=p.x+p.width||u.x+u.width<=p.x||u.y>=p.y+p.height||u.y+u.height<=p.y||((d.labelrank=h(i.minWidth,0)&&this.chartHeight>=h(i.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var i=this,s=this.options.responsive,r=this.currentResponsive,a=[];!e&&s&&s.rules&&s.rules.forEach((function(t){void 0===t._id&&(t._id=c()),i.matchResponsiveRule(t,a)}),this),e=n.apply(void 0,a.map((function(t){return o((s||{}).rules||[],(function(e){return e._id===t}))})).map((function(t){return t&&t.chartOptions}))),e.isResponsiveOptions=!0,(a=a.toString()||void 0)!==(r&&r.ruleIds)&&(r&&this.update(r.undoOptions,t,!0),a?((r=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:a,mergedOptions:e,undoOptions:r},this.update(e,t,!0)):this.currentResponsive=void 0)},t}()}(e||(e={})),e})),e(i,"masters/highcharts.src.js",[i["Core/Globals.js"],i["Core/Utilities.js"],i["Core/Defaults.js"],i["Core/Animation/Fx.js"],i["Core/Animation/AnimationUtilities.js"],i["Core/Renderer/HTML/AST.js"],i["Core/FormatUtilities.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Renderer/HTML/HTMLElement.js"],i["Core/Renderer/HTML/HTMLRenderer.js"],i["Core/Axis/Axis.js"],i["Core/Axis/DateTimeAxis.js"],i["Core/Axis/LogarithmicAxis.js"],i["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],i["Core/Axis/Tick.js"],i["Core/Tooltip.js"],i["Core/Series/Point.js"],i["Core/Pointer.js"],i["Core/MSPointer.js"],i["Core/Legend/Legend.js"],i["Core/Chart/Chart.js"],i["Core/Axis/Stacking/StackingAxis.js"],i["Core/Axis/Stacking/StackItem.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Series/Column/ColumnSeries.js"],i["Series/Column/ColumnDataLabel.js"],i["Series/Pie/PieSeries.js"],i["Series/Pie/PieDataLabel.js"],i["Core/Series/DataLabel.js"],i["Core/Responsive.js"],i["Core/Color/Color.js"],i["Core/Time.js"]],(function(t,e,i,o,s,r,n,a,h,l,c,d,p,u,f,g,m,v,y,x,b,S,C,A,w,k,M,T,P,E,O,L,D,j,R){return t.animate=s.animate,t.animObject=s.animObject,t.getDeferredAnimation=s.getDeferredAnimation,t.setAnimation=s.setAnimation,t.stop=s.stop,t.timers=o.timers,t.AST=r,t.Axis=p,t.Chart=C,t.chart=C.chart,t.Fx=o,t.Legend=S,t.PlotLineOrBand=g,t.Point=y,t.Pointer=b.isRequired()?b:x,t.Series=k,t.StackItem=w,t.SVGElement=h,t.SVGRenderer=l,t.Tick=m,t.Time=R,t.Tooltip=v,t.Color=j,t.color=j.parse,d.compose(l),c.compose(h),t.defaultOptions=i.defaultOptions,t.getOptions=i.getOptions,t.time=i.defaultTime,t.setOptions=i.setOptions,t.dateFormat=n.dateFormat,t.format=n.format,t.numberFormat=n.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=a.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=M.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,P.compose(T),L.compose(k),u.compose(p),f.compose(p),O.compose(E),g.compose(p),D.compose(C),A.compose(p,C,k),t})),i["masters/highcharts.src.js"]._modules=i,i["masters/highcharts.src.js"]},t.exports?(r.default=r,t.exports=s.document?r(s):r):void 0===(o=function(){return r(s)}.call(e,i,e,t))||(t.exports=o)},60195:(t,e,i)=>{var o,s,r;r=function(t){function e(t,e,i,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}e(t=t?t._modules:{},"Extensions/Boost/Boostables.js",[],(function(){return"area areaspline arearange column columnrange bar line scatter heatmap bubble treemap".split(" ")})),e(t,"Extensions/Boost/BoostableMap.js",[t["Extensions/Boost/Boostables.js"]],(function(t){var e={};return t.forEach((function(t){e[t]=!0})),e})),e(t,"Extensions/Boost/BoostChart.js",[t["Extensions/Boost/BoostableMap.js"],t["Core/Utilities.js"]],(function(t,e){function i(e){var i=e.series,o=e.boost=e.boost||{},r=e.options.boost||{},a=n(r.seriesThreshold,50);if(i.length>=a)return!0;if(1===i.length)return!1;if(void 0===(r=r.allowForce))for(r=!0,a=0,e=e.xAxis;an(h.dataMin,-1/0)||n(h.max,1/0)=(h.boostThreshold||Number.MAX_VALUE)&&++a)}return o.forceChartBoost=r&&(e===i.length&&0=(e=t.inverted?t.xAxis:t.yAxis).length?(i.y=Math.min(e[0].pos,i.y),i.height=e[0].pos-t.plotTop+e[0].len):i.height=t.plotHeight),i},isChartSeriesBoosting:i}})),e(t,"Extensions/Boost/WGLDrawMode.js",[],(function(){return{area:"LINES",arearange:"LINES",areaspline:"LINES",column:"LINES",columnrange:"LINES",bar:"LINES",line:"LINE_STRIP",scatter:"POINTS",heatmap:"TRIANGLES",treemap:"TRIANGLES",bubble:"POINTS"}})),e(t,"Extensions/Boost/WGLShader.js",[t["Core/Utilities.js"]],(function(t){var e=t.clamp,i=t.error,o=t.pick;return function(){function t(t){this.errors=[],this.uLocations={},(this.gl=t)&&this.createShader()}return t.prototype.bind=function(){this.gl&&this.shaderProgram&&this.gl.useProgram(this.shaderProgram)},t.prototype.createShader=function(){var t=this,e=this.stringToProgram("#version 100\n#define LN10 2.302585092994046\nprecision highp float;\nattribute vec4 aVertexPosition;\nattribute vec4 aColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform mat4 uPMatrix;\nuniform float pSize;\nuniform float translatedThreshold;\nuniform bool hasThreshold;\nuniform bool skipTranslation;\nuniform float xAxisTrans;\nuniform float xAxisMin;\nuniform float xAxisMinPad;\nuniform float xAxisPointRange;\nuniform float xAxisLen;\nuniform bool xAxisPostTranslate;\nuniform float xAxisOrdinalSlope;\nuniform float xAxisOrdinalOffset;\nuniform float xAxisPos;\nuniform bool xAxisCVSCoord;\nuniform bool xAxisIsLog;\nuniform bool xAxisReversed;\nuniform float yAxisTrans;\nuniform float yAxisMin;\nuniform float yAxisMinPad;\nuniform float yAxisPointRange;\nuniform float yAxisLen;\nuniform bool yAxisPostTranslate;\nuniform float yAxisOrdinalSlope;\nuniform float yAxisOrdinalOffset;\nuniform float yAxisPos;\nuniform bool yAxisCVSCoord;\nuniform bool yAxisIsLog;\nuniform bool yAxisReversed;\nuniform bool isBubble;\nuniform bool bubbleSizeByArea;\nuniform float bubbleZMin;\nuniform float bubbleZMax;\nuniform float bubbleZThreshold;\nuniform float bubbleMinSize;\nuniform float bubbleMaxSize;\nuniform bool bubbleSizeAbs;\nuniform bool isInverted;\nfloat bubbleRadius(){\nfloat value = aVertexPosition.w;\nfloat zMax = bubbleZMax;\nfloat zMin = bubbleZMin;\nfloat radius = 0.0;\nfloat pos = 0.0;\nfloat zRange = zMax - zMin;\nif (bubbleSizeAbs){\nvalue = value - bubbleZThreshold;\nzMax = max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);\nzMin = 0.0;\n}\nif (value < zMin){\nradius = bubbleZMin / 2.0 - 1.0;\n} else {\npos = zRange > 0.0 ? (value - zMin) / zRange : 0.5;\nif (bubbleSizeByArea && pos > 0.0){\npos = sqrt(pos);\n}\nradius = ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;\n}\nreturn radius * 2.0;\n}\nfloat translate(float val,\nfloat pointPlacement,\nfloat localA,\nfloat localMin,\nfloat minPixelPadding,\nfloat pointRange,\nfloat len,\nbool cvsCoord,\nbool isLog,\nbool reversed\n){\nfloat sign = 1.0;\nfloat cvsOffset = 0.0;\nif (cvsCoord) {\nsign *= -1.0;\ncvsOffset = len;\n}\nif (isLog) {\nval = log(val) / LN10;\n}\nif (reversed) {\nsign *= -1.0;\ncvsOffset -= sign * len;\n}\nreturn sign * (val - localMin) * localA + cvsOffset + \n(sign * minPixelPadding);\n}\nfloat xToPixels(float value) {\nif (skipTranslation){\nreturn value;// + xAxisPos;\n}\nreturn translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord, xAxisIsLog, xAxisReversed);// + xAxisPos;\n}\nfloat yToPixels(float value, float checkTreshold) {\nfloat v;\nif (skipTranslation){\nv = value;// + yAxisPos;\n} else {\nv = translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord, yAxisIsLog, yAxisReversed);// + yAxisPos;\nif (v > yAxisLen) {\nv = yAxisLen;\n}\n}\nif (checkTreshold > 0.0 && hasThreshold) {\nv = min(v, translatedThreshold);\n}\nreturn v;\n}\nvoid main(void) {\nif (isBubble){\ngl_PointSize = bubbleRadius();\n} else {\ngl_PointSize = pSize;\n}\nvColor = aColor;\nif (skipTranslation && isInverted) {\ngl_Position = uPMatrix * vec4(aVertexPosition.y + yAxisPos, aVertexPosition.x + xAxisPos, 0.0, 1.0);\n} else if (isInverted) {\ngl_Position = uPMatrix * vec4(yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, xToPixels(aVertexPosition.x) + xAxisPos, 0.0, 1.0);\n} else {\ngl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);\n}\n}","vertex"),i=this.stringToProgram("precision highp float;\nuniform vec4 fillColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform sampler2D uSampler;\nuniform bool isCircle;\nuniform bool hasColor;\nvoid main(void) {\nvec4 col = fillColor;\nvec4 tcol = texture2D(uSampler, gl_PointCoord.st);\nif (hasColor) {\ncol = vColor;\n}\nif (isCircle) {\ncol *= tcol;\nif (tcol.r < 0.0) {\ndiscard;\n} else {\ngl_FragColor = col;\n}\n} else {\ngl_FragColor = col;\n}\n}","fragment"),o=function(e){return t.gl.getUniformLocation(t.shaderProgram,e)};return e&&i?(this.shaderProgram=this.gl.createProgram(),this.gl.attachShader(this.shaderProgram,e),this.gl.attachShader(this.shaderProgram,i),this.gl.linkProgram(this.shaderProgram),this.gl.getProgramParameter(this.shaderProgram,this.gl.LINK_STATUS)?(this.gl.useProgram(this.shaderProgram),this.gl.bindAttribLocation(this.shaderProgram,0,"aVertexPosition"),this.pUniform=o("uPMatrix"),this.psUniform=o("pSize"),this.fcUniform=o("fillColor"),this.isBubbleUniform=o("isBubble"),this.bubbleSizeAbsUniform=o("bubbleSizeAbs"),this.bubbleSizeAreaUniform=o("bubbleSizeByArea"),this.uSamplerUniform=o("uSampler"),this.skipTranslationUniform=o("skipTranslation"),this.isCircleUniform=o("isCircle"),this.isInverted=o("isInverted"),!0):(this.errors.push(this.gl.getProgramInfoLog(this.shaderProgram)),this.handleErrors(),this.shaderProgram=!1)):(this.shaderProgram=!1,this.handleErrors(),!1)},t.prototype.handleErrors=function(){this.errors.length&&i("[highcharts boost] shader error - "+this.errors.join("\n"))},t.prototype.stringToProgram=function(t,e){var i=this.gl.createShader("vertex"===e?this.gl.VERTEX_SHADER:this.gl.FRAGMENT_SHADER);return this.gl.shaderSource(i,t),this.gl.compileShader(i),this.gl.getShaderParameter(i,this.gl.COMPILE_STATUS)?i:(this.errors.push("when compiling "+e+" shader:\n"+this.gl.getShaderInfoLog(i)),!1)},t.prototype.destroy=function(){this.gl&&this.shaderProgram&&(this.gl.deleteProgram(this.shaderProgram),this.shaderProgram=!1)},t.prototype.fillColorUniform=function(){return this.fcUniform},t.prototype.getProgram=function(){return this.shaderProgram},t.prototype.pointSizeUniform=function(){return this.psUniform},t.prototype.perspectiveUniform=function(){return this.pUniform},t.prototype.reset=function(){this.gl&&this.shaderProgram&&(this.gl.uniform1i(this.isBubbleUniform,0),this.gl.uniform1i(this.isCircleUniform,0))},t.prototype.setBubbleUniforms=function(t,i,s,r){void 0===r&&(r=1);var n=t.options,a=Number.MAX_VALUE,h=-Number.MAX_VALUE;if(this.gl&&this.shaderProgram&&t.is("bubble")){var l=t.getPxExtremes();a=o(n.zMin,e(i,!1===n.displayNegative?n.zThreshold:-Number.MAX_VALUE,a)),h=o(n.zMax,Math.max(h,s)),this.gl.uniform1i(this.isBubbleUniform,1),this.gl.uniform1i(this.isCircleUniform,1),this.gl.uniform1i(this.bubbleSizeAreaUniform,"width"!==t.options.sizeBy),this.gl.uniform1i(this.bubbleSizeAbsUniform,t.options.sizeByAbsoluteValue),this.setUniform("bubbleMinSize",l.minPxSize*r),this.setUniform("bubbleMaxSize",l.maxPxSize*r),this.setUniform("bubbleZMin",a),this.setUniform("bubbleZMax",h),this.setUniform("bubbleZThreshold",t.options.zThreshold)}},t.prototype.setColor=function(t){this.gl&&this.shaderProgram&&this.gl.uniform4f(this.fcUniform,t[0]/255,t[1]/255,t[2]/255,t[3])},t.prototype.setDrawAsCircle=function(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isCircleUniform,t?1:0)},t.prototype.setInverted=function(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isInverted,t)},t.prototype.setPMatrix=function(t){this.gl&&this.shaderProgram&&this.gl.uniformMatrix4fv(this.pUniform,!1,t)},t.prototype.setPointSize=function(t){this.gl&&this.shaderProgram&&this.gl.uniform1f(this.psUniform,t)},t.prototype.setSkipTranslation=function(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.skipTranslationUniform,!0===t?1:0)},t.prototype.setTexture=function(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.uSamplerUniform,t)},t.prototype.setUniform=function(t,e){this.gl&&this.shaderProgram&&(t=this.uLocations[t]=this.uLocations[t]||this.gl.getUniformLocation(this.shaderProgram,t),this.gl.uniform1f(t,e))},t}()})),e(t,"Extensions/Boost/WGLVertexBuffer.js",[],(function(){return function(){function t(t,e,i){this.buffer=!1,this.iterator=0,this.vertAttribute=this.preAllocated=!1,this.components=i||2,this.dataComponents=i,this.gl=t,this.shader=e}return t.prototype.allocate=function(t){this.iterator=-1,this.preAllocated=new Float32Array(4*t)},t.prototype.bind=function(){if(!this.buffer)return!1;this.gl.vertexAttribPointer(this.vertAttribute,this.components,this.gl.FLOAT,!1,0,0)},t.prototype.build=function(t,e,i){var o;return this.data=t||[],this.data&&0!==this.data.length||this.preAllocated?(this.components=i||this.components,this.buffer&&this.gl.deleteBuffer(this.buffer),this.preAllocated||(o=new Float32Array(this.data)),this.buffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.buffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,this.preAllocated||o,this.gl.STATIC_DRAW),this.vertAttribute=this.gl.getAttribLocation(this.shader.getProgram(),e),this.gl.enableVertexAttribArray(this.vertAttribute),!0):(this.destroy(),!1)},t.prototype.destroy=function(){this.buffer&&(this.gl.deleteBuffer(this.buffer),this.vertAttribute=this.buffer=!1),this.iterator=0,this.components=this.dataComponents||2,this.data=[]},t.prototype.push=function(t,e,i,o){this.preAllocated&&(this.preAllocated[++this.iterator]=t,this.preAllocated[++this.iterator]=e,this.preAllocated[++this.iterator]=i,this.preAllocated[++this.iterator]=o)},t.prototype.render=function(t,e,i){var o=this.preAllocated?this.preAllocated.length:this.data.length;return!(!this.buffer||!o||((!t||t>o||0>t)&&(t=0),(!e||e>o)&&(e=o),t>=e||(this.gl.drawArrays(this.gl[i||"POINTS"],t/this.components,(e-t)/this.components),0)))},t}()})),e(t,"Extensions/Boost/WGLRenderer.js",[t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"],t["Extensions/Boost/WGLDrawMode.js"],t["Extensions/Boost/WGLShader.js"],t["Extensions/Boost/WGLVertexBuffer.js"]],(function(t,e,i,o,s,r){var n=t.parse,a=e.doc,h=e.win,l=i.isNumber,c=i.isObject,d=i.merge,p=i.objectEach,u=i.pick,f={column:!0,columnrange:!0,bar:!0,area:!0,areaspline:!0,arearange:!0},g={scatter:!0,bubble:!0},m=["webgl","experimental-webgl","moz-webgl","webkit-3d"];return function(){function i(t){this.data=[],this.height=0,this.isInited=!1,this.markerData=[],this.series=[],this.textureHandles={},this.width=0,this.postRenderCallback=t,this.settings={pointSize:1,lineWidth:1,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,debug:{timeRendering:!1,timeSeriesProcessing:!1,timeSetup:!1,timeBufferCopy:!1,timeKDTree:!1,showSkipSummary:!1}}}return i.orthoMatrix=function(t,e){return[2/t,0,0,0,0,-2/e,0,0,0,0,-2,0,-1,1,-1,1]},i.seriesPointCount=function(t){if(t.boosted){var e=!!t.options.stacking,i=t.xData||t.options.xData||t.processedXData;return e=(e?t.data:i||t.options.data).length,"treemap"===t.type?e*=12:"heatmap"===t.type?e*=6:f[t.type]&&(e*=2),e}return 0},i.prototype.getPixelRatio=function(){return this.settings.pixelRatio||h.devicePixelRatio||1},i.prototype.setOptions=function(t){"pixelRatio"in t||(t.pixelRatio=1),d(!0,this.settings,t)},i.prototype.allocateBuffer=function(t){var e=this.vbuffer,o=0;this.settings.usePreallocated&&(t.series.forEach((function(t){t.boosted&&(o+=i.seriesPointCount(t))})),e&&e.allocate(o))},i.prototype.allocateBufferForSingleSeries=function(t){var e=this.vbuffer,o=0;this.settings.usePreallocated&&(t.boosted&&(o=i.seriesPointCount(t)),e&&e.allocate(o))},i.prototype.clear=function(){var t=this.gl;t&&t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)},i.prototype.pushSeriesData=function(t,e){var i=this,o=this.data,s=this.settings,r=this.vbuffer,a=t.pointArrayMap&&"low,high"===t.pointArrayMap.join(","),h=t.chart,l=t.options,d=!!l.stacking,p=l.data,u=t.xAxis.getExtremes(),g=u.min,m=u.max,v=(u=t.yAxis.getExtremes()).min,y=u.max,x=t.xData||l.xData||t.processedXData,b=t.yData||l.yData||t.processedYData,S=t.zData||l.zData||t.processedZData,C=t.yAxis,A=t.xAxis,w=!x||0===x.length,k=l.connectNulls;u=t.points||!1;var M,T,P,E,O,L,D,j=d?t.data:x||p,R={x:Number.MAX_VALUE,y:0},B={x:-Number.MAX_VALUE,y:0},I=void 0===h.index,N=f[t.type],z=l.zoneAxis||"y",G=l.zones||!1,H=l.threshold,W=this.getPixelRatio(),U=t.chart.plotWidth,X=!1,F=!1,_=0,Y=!1,V=-1,K=!1,q=!1,Z=!1,$=!1,J=!1,Q=!1,tt=!0,et=!0,it=!1,ot=!1,st=0;if(!(l.boostData&&0e.node.levelDynamic)return 1;if(t.node.levelDynamice.zMax&&(e.zMax=O[2]),O[2]e.zMax&&(e.zMax=S[V]),S[V]=g&&q<=m&&(Z=!0),K&&K>=g&&K<=m&&($=!0),a?(w&&(E=O.slice(1,3)),D=E[0],E=E[1]):d&&(P=O.x,E=O.stackY,D=E-O.y),null!=v&&null!=y&&(tt=E>=v&&E<=y),P>m&&B.xg&&(R.x=P,R.y=E),null===E&&k?"continue":null!==E&&(tt||Z||$)?((q>=g||P>=g)&&(K<=m||P<=m)&&(Q=!0),Q||Z||$?(ot&&P-K>ot&<(),G&&(G.some((function(t,e){var o=G[e-1];return"x"===z?void 0!==t.value&&P<=t.value&&(rt[e]&&(!o||P>=o.value)&&(i=rt[e]),!0):void 0!==t.value&&E<=t.value&&(rt[e]&&(!o||E>=o.value)&&(i=rt[e]),!0)})),J=i||it||J),!s.useGPUTranslations&&(e.skipTranslation=!0,P=A.toPixels(P,!0),E=C.toPixels(E,!0),P>U&&"POINTS"===e.drawMode)?"continue":(e.hasMarkers&&Q&&!1!==X&&(t.closestPointRangePx=Math.min(t.closestPointRangePx,Math.abs(P-X))),!s.useGPUTranslations&&!s.usePreallocated&&X&&1>Math.abs(P-X)&&F&&1>Math.abs(E-F)?(s.debug.showSkipSummary&&++_,"continue"):(N&&(M=D,!1!==D&&void 0!==D||(M=0>E?E:0),a||d||(M=Math.max(null===H?v:H,v)),s.useGPUTranslations||(M=C.toPixels(M,!0)),at(P,M,0,0,J)),l.step&&!et&&at(P,F,0,2,J),at(P,E,0,"bubble"===t.type?L||1:2,J),X=P,F=E,Y=!0,void(et=!1)))):"continue"):(lt(),"continue")):(lt(),"continue")};V-Number.MAX_VALUE&&u(B))}ht()}},i.prototype.pushSeries=function(t){var e=this.markerData,i=this.series,s=this.settings;0=i.length?i.push(e):i[t.index]=e,this.pushSeriesData(t,e),s.debug.timeSeriesProcessing&&console.timeEnd("building "+t.type+" series")},i.prototype.flush=function(){var t=this.vbuffer;this.data=[],this.markerData=[],this.series=[],t&&t.destroy()},i.prototype.setXAxis=function(t){var e=this.shader;if(e){var i=this.getPixelRatio();e.setUniform("xAxisTrans",t.transA*i),e.setUniform("xAxisMin",t.min),e.setUniform("xAxisMinPad",t.minPixelPadding*i),e.setUniform("xAxisPointRange",t.pointRange),e.setUniform("xAxisLen",t.len*i),e.setUniform("xAxisPos",t.pos*i),e.setUniform("xAxisCVSCoord",!t.horiz),e.setUniform("xAxisIsLog",!!t.logarithmic),e.setUniform("xAxisReversed",!!t.reversed)}},i.prototype.setYAxis=function(t){var e=this.shader;if(e){var i=this.getPixelRatio();e.setUniform("yAxisTrans",t.transA*i),e.setUniform("yAxisMin",t.min),e.setUniform("yAxisMinPad",t.minPixelPadding*i),e.setUniform("yAxisPointRange",t.pointRange),e.setUniform("yAxisLen",t.len*i),e.setUniform("yAxisPos",t.pos*i),e.setUniform("yAxisCVSCoord",!t.horiz),e.setUniform("yAxisIsLog",!!t.logarithmic),e.setUniform("yAxisReversed",!!t.reversed)}},i.prototype.setThreshold=function(t,e){var i=this.shader;i&&(i.setUniform("hasThreshold",t),i.setUniform("translatedThreshold",e))},i.prototype.renderChart=function(o){var s=this,a=this.gl,h=this.settings,c=this.shader,d=this.vbuffer,p=this.getPixelRatio();if(!o)return!1;this.width=o.chartWidth*p,this.height=o.chartHeight*p;var f=this.height,m=this.width;if(!(a&&c&&m&&f))return!1;h.debug.timeRendering&&console.time("gl rendering"),a.canvas.width=m,a.canvas.height=f,c.bind(),a.viewport(0,0,m,f),c.setPMatrix(i.orthoMatrix(m,f)),12*((f.marker?f.marker.radius:10)||10)),m=s.textureHandles[m&&m.symbol||e.series.symbol]||s.textureHandles.circle,0!==e.segments.length&&e.segments[0].from!==e.segments[0].to&&(m.isReady&&(a.bindTexture(a.TEXTURE_2D,m.handle),c.setTexture(m.handle)),o.styledMode?m=e.series.markerGroup&&e.series.markerGroup.getStyle("fill"):(m="POINTS"===e.drawMode&&e.series.pointAttribs&&e.series.pointAttribs().fill||e.series.color,f.colorByPoint&&(m=e.series.chart.options.colors[i])),e.series.fillOpacity&&f.fillOpacity&&(m=new t(m).setOpacity(u(f.fillOpacity,1)).get()),m=n(m).rgba,h.useAlpha||(m[3]=1),"LINES"===e.drawMode&&h.useAlpha&&1>m[3]&&(m[3]/=10),"add"===f.boostBlending?(a.blendFunc(a.SRC_ALPHA,a.ONE),a.blendEquation(a.FUNC_ADD)):"mult"===f.boostBlending||"multiply"===f.boostBlending?a.blendFunc(a.DST_COLOR,a.ZERO):"darken"===f.boostBlending?(a.blendFunc(a.ONE,a.ONE),a.blendEquation(a.FUNC_MIN)):a.blendFuncSeparate(a.SRC_ALPHA,a.ONE_MINUS_SRC_ALPHA,a.ONE,a.ONE_MINUS_SRC_ALPHA),c.reset(),0(i.boostThreshold||Number.MAX_VALUE)&&I(s.min)&&I(s.max)&&(!e||I(o.min)&&I(o.max))&&(!t||I(t.min)&&I(t.max))}function u(){var t=this,e=t.chart;e.boost&&e.boost.markerGroup===t.markerGroup&&(t.markerGroup=null),e.hoverPoints&&(e.hoverPoints=e.hoverPoints.filter((function(e){return e.series===t}))),e.hoverPoint&&e.hoverPoint.series===t&&(e.hoverPoint=null)}function f(){var t=this.boost;t&&t.canvas&&t.target&&(t.wgl&&t.wgl.clear(),t.clear&&t.clear())}function g(t){var e=t.boost;e&&e.canvas&&e.target&&e.wgl&&!M(t.chart)&&e.wgl.render(t.chart)}function m(t,e){var i=t.options,o=t.xAxis,s=t.pointClass;return e instanceof s?e:(i=t.xData||i.xData||t.processedXData||!1,(s=(new s).init(t,t.options.data[e.i],i?i[e.i]:void 0)).category=N(o.categories?o.categories[s.x]:s.x,s.x),s.dist=e.dist,s.distX=e.distX,s.plotX=e.plotX,s.plotY=e.plotY,s.index=e.i,s.percentage=e.percentage,s.isInside=t.isPointInside(s),s)}function v(){var t=this,e=this.options||{},i=this.chart,o=this.xAxis,s=this.yAxis,r=e.xData||this.processedXData,n=e.yData||this.processedYData,h=e.data,p=o.getExtremes(),u=p.min,f=p.max,m=(p=s.getExtremes()).min,v=p.max,y={},x=!!this.sampling,b=!1!==e.enableMouseTracking;p=e.threshold;var S=this.pointArrayMap&&"low,high"===this.pointArrayMap.join(","),C=!!e.stacking,w=this.cropStart||0,k=this.requireSorting,T=!r,P="x"===e.findNearestPointBy,O=this.xData||this.options.xData||this.processedXData||!1;e=!1;var L,D,j,B,I,N=s.getThreshold(p);if(e=l(i,this),i.boosted=!0,this.visible){(this.points||this.graph)&&c(this),M(i)?(this.markerGroup&&this.markerGroup!==i.boost.markerGroup&&this.markerGroup.destroy(),this.markerGroup=i.boost.markerGroup,this.boost&&this.boost.target&&(this.renderTarget=this.boost.target=this.boost.target.destroy())):(i.boost&&this.markerGroup===i.boost.markerGroup&&(this.markerGroup=void 0),this.markerGroup=this.plotGroup("markerGroup","markers",!0,1,i.seriesGroup));var z=this.points=[],G=function(t,e,r,n){t=Math.ceil(t),A=P?t:t+","+e,b&&!y[A]&&(y[A]=!0,i.inverted&&(t=o.len-t,e=s.len-e),z.push({x:!!O&&O[w+r],clientX:t,plotX:t,plotY:e,i:w+r,percentage:n}))};this.buildKDTree=E,e&&(a(e,this),e.pushSeries(this),g(this));var H=e.settings;e=function(){R(t,"renderedCanvas"),delete t.buildKDTree,t.buildKDTree(),H.debug.timeKDTree&&console.timeEnd("kd tree building")},i.renderer.forExport||(H.debug.timeKDTree&&console.time("kd tree building"),d(C?this.data:r||h,(function(t,e){var r=void 0===i.index,a=!1,h=!0;if(void 0===t)return!0;if(!r){if(T)var l=t[0],c=t[1];else l=t,c=n[e];if(S)T&&(c=t.slice(1,3)),a=c[0],c=c[1];else if(C){l=t.x,a=(c=t.stackY)-t.y;var d=t.percentage}k||(h=(c||0)>=m&&c<=v),null!==c&&l>=u&&l<=f&&h&&(t=o.toPixels(l,!0),x?(void 0!==B&&t!==L||(S||(a=c),(void 0===I||c>j)&&(j=c,I=e),(void 0===B||a=(i.options.boostThreshold||Number.MAX_VALUE))};h(this.chart)&&t[this.type]?(s(o)&&"heatmap"!==this.type&&"treemap"!==this.type&&!this.options.stacking&&p(this,!0)||(e.apply(this,[].slice.call(arguments,1)),o=this.processedXData),(this.boosted=s(o))?(o=void 0,this.options.data&&this.options.data.length&&(o=this.getFirstValidPoint(this.options.data),I(o)||B(o)||D(12,!1,this.chart)),function(t){t.boost=t.boost||{getPoint:function(e){return m(t,e)}};var e=t.boost.altered=[];["allowDG","directTouch","stickyTracking"].forEach((function(i){e.push({prop:i,val:t[i],own:Object.hasOwnProperty.call(t,i)})})),t.allowDG=!1,t.directTouch=!1,t.stickyTracking=!0,t.finishedAnimating=!0,t.labelBySeries&&(t.labelBySeries=t.labelBySeries.destroy())}(this)):function(t){var e=t.boost;e&&((e.altered||[]).forEach((function(e){e.own?t[e.prop]=e.val:delete t[e.prop]})),e.clear&&e.clear())}(this)):e.apply(this,[].slice.call(arguments,1))}function C(t){var e=t.apply(this,[].slice.call(arguments,1));return this.boost&&e?this.boost.getPoint(e):e}var A,w,k=i.getBoostClipRect,M=i.isChartSeriesBoosting,T=o.getOptions,P=s.doc,E=s.noop,O=s.win,L=r.addEvent,D=r.error,j=r.extend,R=r.fireEvent,B=r.isArray,I=r.isNumber,N=r.pick,z=r.wrap,G=[];return{compose:function(t,i,o){if(-1===G.indexOf(t)){G.push(t),L(t,"destroy",u),L(t,"hide",f);var s=t.prototype;o&&(s.renderCanvas=v),z(s,"getExtremes",b),z(s,"processData",S),z(s,"searchPoint",C),["translate","generatePoints","drawTracker","drawPoints","render"].forEach((function(t){return x(s,i,t)}))}if(-1===G.indexOf(T)){G.push(T);var r=T().plotOptions;e.forEach((function(t){var e=r[t];e&&(e.boostThreshold=5e3,e.boostData=[],i[t].prototype.fillOpacity=!0)}))}if(o){var n=i.area,a=i.areaspline,h=i.bubble;o=i.column;var l=i.heatmap,c=i.scatter,d=i.treemap;n&&-1===G.indexOf(n)&&(G.push(n),j(n.prototype,{fill:!0,fillOpacity:!0,sampling:!0})),a&&-1===G.indexOf(a)&&(G.push(a),j(a.prototype,{fill:!0,fillOpacity:!0,sampling:!0})),h&&-1===G.indexOf(h)&&(G.push(h),delete(n=h.prototype).buildKDTree,z(n,"markerAttribs",(function(t){return!this.boosted&&t.apply(this,[].slice.call(arguments,1))}))),o&&-1===G.indexOf(o)&&(G.push(o),j(o.prototype,{fill:!0,sampling:!0})),c&&-1===G.indexOf(c)&&(G.push(c),c.prototype.fill=!0),[l,d].forEach((function(t){t&&-1===G.indexOf(t)&&(G.push(t),z(t.prototype,"drawPoints",y))}))}return t},destroyGraphics:c,getPoint:m}})),e(t,"Extensions/BoostCanvas.js",[t["Extensions/Boost/BoostChart.js"],t["Extensions/Boost/BoostSeries.js"],t["Core/Chart/Chart.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,a){var h,l=t.getBoostClipRect,c=t.isChartSeriesBoosting,d=e.destroyGraphics,p=o.parse,u=s.doc,f=s.noop,g=n.seriesTypes,m=a.addEvent,v=a.extend,y=a.fireEvent,x=a.isNumber,b=a.merge,S=a.pick,C=a.wrap;return function(){s.seriesTypes.heatmap&&C(s.seriesTypes.heatmap.prototype,"drawPoints",(function(){var t=this.chart,e=this.getContext(),i=this.chart.inverted,o=this.xAxis,s=this.yAxis;e?(this.points.forEach((function(r){var n=r.plotY;if(void 0!==n&&!isNaN(n)&&null!==r.y&&e){var a=r.shapeArgs||{};n=void 0===(n=a.x)?0:n;var h=a.y;h=void 0===h?0:h;var l=a.width;l=void 0===l?0:l,a=void 0===(a=a.height)?0:a,r=t.styledMode?r.series.colorAttribs(r):r.series.pointAttribs(r),e.fillStyle=r.fill,i?e.fillRect(s.len-h+o.left,o.len-n+s.top,-a,-l):e.fillRect(n+o.left,h+s.top,l,a)}})),this.canvasToSVG()):this.chart.showLoading("Your browser doesn't support HTML5 canvas,
please use a modern browser")})),v(r.prototype,{getContext:function(){var t=this.chart,e=c(t)?t:this,i=e===t?t.seriesGroup:t.seriesGroup||this.group,o=t.chartWidth,s=t.chartHeight,r=function(t,e,i,o,s,r,n){t.call(this,i,e,o,s,r,n)},n=e.boost=e.boost||{},a=n.targetCtx;return n.canvas||(n.canvas=u.createElement("canvas"),n.target=t.renderer.image("",0,0,o,s).addClass("highcharts-boost-canvas").add(i),a=n.targetCtx=n.canvas.getContext("2d"),t.inverted&&["moveTo","lineTo","rect","arc"].forEach((function(t){C(a,t,r)})),n.copy=function(){n.target.attr({href:n.canvas.toDataURL("image/png")})},n.clear=function(){a.clearRect(0,0,n.canvas.width,n.canvas.height),e===n.target&&n.target.attr({href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="})},n.clipRect=t.renderer.clipRect(),n.target.clip(n.clipRect)),n.canvas.width!==o&&(n.canvas.width=o),n.canvas.height!==s&&(n.canvas.height=s),n.target.attr({x:0,y:0,width:o,height:s,style:"pointer-events: none",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="}),n.clipRect&&n.clipRect.attr(l(t,e)),a},canvasToSVG:function(){c(this.chart)?this.boost&&this.boost.clear&&this.boost.clear():this.boost&&this.boost.copy?this.boost.copy():this.chart.boost&&this.chart.boost.copy&&this.chart.boost.copy()},cvsLineTo:function(t,e,i){t.lineTo(e,i)},renderCanvas:function(){var t,e,i=this,r=i.options,n=i.chart,l=this.xAxis,c=this.yAxis,u=(n.options.boost||{}).timeRendering||!1,g=0,C=i.processedXData,A=i.processedYData,w=r.data,k=l.getExtremes(),M=k.min,T=k.max,P=(k=c.getExtremes()).min,E=k.max,O={},L=!!i.sampling,D=r.marker&&r.marker.radius,j=this.cvsDrawPoint,R=r.lineWidth?this.cvsLineTo:void 0,B=D&&1>=D?this.cvsMarkerSquare:this.cvsMarkerCircle,I=this.cvsStrokeBatch||1e3,N=!1!==r.enableMouseTracking;k=r.threshold;var z=c.getThreshold(k),G=x(k),H=z,W=this.fill,U=i.pointArrayMap&&"low,high"===i.pointArrayMap.join(","),X=!!r.stacking,F=i.cropStart||0;k=n.options.loading;var _,Y,V,K,q,Z,$=i.requireSorting,J=r.connectNulls,Q=!C,tt=X?i.data:C||w,et=i.fillOpacity?o.parse(i.color).setOpacity(S(r.fillOpacity,.75)).get():i.color,it=function(){W?(ht.fillStyle=et,ht.fill()):(ht.strokeStyle=i.color,ht.lineWidth=r.lineWidth,ht.stroke())},ot=function(t,o,s,r){0===g&&(ht.beginPath(),R&&(ht.lineJoin="round")),n.scroller&&"highcharts-navigator-series"===i.options.className?(o+=n.scroller.top,s&&(s+=n.scroller.top)):o+=n.plotTop,t+=n.plotLeft,_?ht.moveTo(t,o):j?j(ht,t,o,s,e):R?R(ht,t,o):B&&B.call(i,ht,t,o,D,r),(g+=1)===I&&(it(),g=0),e={clientX:t,plotY:o,yBottom:s}},st="x"===r.findNearestPointBy,rt=this.xData||this.options.xData||this.processedXData||!1,nt=function(t,e,i){Z=st?t:t+","+e,N&&!O[Z]&&(O[Z]=!0,n.inverted&&(t=l.len-t,e=c.len-e),at.push({x:!!rt&&rt[F+i],clientX:t,plotX:t,plotY:e,i:F+i}))};(C=this.boost||{}).target&&C.target.attr({href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="}),(this.points||this.graph)&&d(this),i.plotGroup("group","series",i.visible?"visible":"hidden",r.zIndex,n.seriesGroup),i.markerGroup=i.group,m(i,"destroy",(function(){i.markerGroup=null}));var at=this.points=[],ht=this.getContext();i.buildKDTree=f,C.clear&&C.clear(),this.visible&&(99999=M&&a<=T&&(s=!0),h&&h>=M&&h<=T&&(r=!0),U){Q&&(f=e.slice(1,3));var g=f[0];f=f[1]}else X&&(u=e.x,g=(f=e.stackY)-e.y);$||(p=f>=P&&f<=E),!(e=null===f)&&(u>=M&&u<=T&&p||s||r)&&(u=Math.round(l.toPixels(u,!0)),L?(void 0!==K&&u!==t||(U||(g=f),(void 0===q||f>V)&&(V=f,q=o),(void 0===K||g{var o,s,r;r=function(t){function e(t,e,i,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}e(t=t?t._modules:{},"Extensions/ExportData/ExportDataDefaults.js",[],(function(){return{exporting:{csv:{annotations:{itemDelimiter:"; ",join:!1},columnHeaderFormatter:null,dateFormat:"%Y-%m-%d %H:%M:%S",decimalPoint:null,itemDelimiter:null,lineDelimiter:"\n"},showTable:!1,useMultiLevelHeaders:!0,useRowspanHeaders:!0},lang:{downloadCSV:"Download CSV",downloadXLS:"Download XLS",exportData:{annotationHeader:"Annotations",categoryHeader:"Category",categoryDatetimeHeader:"DateTime"},viewData:"View data table",hideData:"Hide data table"}}})),e(t,"Extensions/DownloadURL.js",[t["Core/Globals.js"]],(function(t){var e=t.isSafari,i=t.win,o=i.document,s=i.URL||i.webkitURL||i,r=t.dataURLtoBlob=function(t){if((t=t.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([0-9A-Za-z+/]+)/))&&3";w(m(t,"application/vnd.ms-excel")||"data:application/vnd.ms-excel;base64,"+S.btoa(unescape(encodeURIComponent(t))),this.getFilename()+".xls")}function l(t){var e="",i=this.getDataRows(),o=this.options.exporting.csv,s=N(o.decimalPoint,","!==o.itemDelimiter&&t?1.1.toLocaleString()[1]:"."),r=N(o.itemDelimiter,","===s?";":","),n=o.lineDelimiter;return i.forEach((function(t,o){for(var a,h=t.length;h--;)"string"==typeof(a=t[h])&&(a='"'+a+'"'),"number"==typeof a&&"."!==s&&(a=a.toString().replace(".",s)),t[h]=a;t.length=i.length?i[0].length:0,e+=t.join(r),o")};return t=this.getTableAST(t),e(t)}function p(t){var e=0,i=[],o=this.options,s=t?1.1.toLocaleString()[1]:".",r=N(o.exporting.useMultiLevelHeaders,!0);t=this.getDataRows(r);var n=r?t.shift():null,a=t.shift(),h=function(t,e,i,o){var r=N(o,"");return e="highcharts-text"+(e?" "+e:""),"number"==typeof r?(r=r.toString(),","===s&&(r=r.replace(".",s)),e="highcharts-number"):o||(e="highcharts-empty"),{tagName:t,attributes:i=j({class:e},i),textContent:r}};!1!==o.exporting.tableCaption&&i.push({tagName:"caption",attributes:{class:"highcharts-table-caption"},textContent:N(o.exporting.tableCaption,o.title.text?o.title.text:"Chart")});for(var l=0,c=t.length;le&&(e=t[l].length);i.push(function(t,e,i){var s=[],n=0;i=i||e&&e.length;var a,l=0;if(a=r&&t&&e){t:if(a=t.length,e.length===a){for(;a--;)if(t[a]!==e[a]){a=!1;break t}a=!0}else a=!1;a=!a}if(a){for(a=[];ni.userAgent.indexOf("Chrome"),s=S.URL||S.webkitURL||S;try{if(i.msSaveOrOpenBlob&&S.MSBlobBuilder){var r=new S.MSBlobBuilder;return r.append(t),r.getBlob("image/svg+xml")}if(!o)return s.createObjectURL(new S.Blob(["\ufeff"+t],{type:e}))}catch(t){}}function v(){var t=this,e=t.dataTableDiv;if(e&&t.options.exporting&&t.options.exporting.allowTableSorting){var i=e.querySelector("thead tr");i&&i.childNodes.forEach((function(i){var o=i.closest("table");i.addEventListener("click",(function(){var s=x([],e.querySelectorAll("tr:not(thead tr)"),!0),r=x([],i.parentNode.children,!0);s.sort(function(t,e){return function(i,o){var s=(e?i:o).children[t].textContent;return i=(e?o:i).children[t].textContent,""===s||""===i||isNaN(s)||isNaN(i)?s.toString().localeCompare(i):s-i}}(r.indexOf(i),t.ascendingOrderInTable=!t.ascendingOrderInTable)).forEach((function(t){o.appendChild(t)})),r.forEach((function(t){["highcharts-sort-ascending","highcharts-sort-descending"].forEach((function(e){t.classList.contains(e)&&t.classList.remove(e)}))})),i.classList.add(t.ascendingOrderInTable?"highcharts-sort-ascending":"highcharts-sort-descending")}))}))}}function y(){this.options&&this.options.exporting&&this.options.exporting.showTable&&!this.options.chart.forExport&&this.viewData()}var x=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var o,s=0,r=e.length;s{var o,s,r;r=function(t){function e(t,e,i,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}e(t=t?t._modules:{},"Core/Chart/ChartNavigationComposition.js",[],(function(){var t;return function(t){t.compose=function(t){return t.navigation||(t.navigation=new e(t)),t};var e=function(){function t(t){this.updates=[],this.chart=t}return t.prototype.addUpdate=function(t){this.chart.navigation.updates.push(t)},t.prototype.update=function(t,e){var i=this;this.updates.forEach((function(o){o.call(i.chart,t,e)}))},t}();t.Additions=e}(t||(t={})),t})),e(t,"Extensions/Exporting/ExportingDefaults.js",[t["Core/Globals.js"]],(function(t){return t=t.isTouchDevice,{exporting:{allowTableSorting:!0,type:"image/png",url:"https://export.highcharts.com/",pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:"viewFullscreen printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG".split(" ")}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen&&this.fullscreen.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,verticalAlign:"top",width:24,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{padding:5}},menuStyle:{border:"1px solid ".concat("#999999"),background:"#ffffff",padding:"5px 0"},menuItemStyle:{padding:"0.5em 1em",color:"#333333",background:"none",fontSize:t?"14px":"11px",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#335cad",color:"#ffffff"}}}})),e(t,"Extensions/Exporting/ExportingSymbols.js",[],(function(){var t;return function(t){function e(t,e,i,o){return[["M",t,e+2.5],["L",t+i,e+2.5],["M",t,e+o/2+.5],["L",t+i,e+o/2+.5],["M",t,e+o-1.5],["L",t+i,e+o-1.5]]}function i(t,e,i,o){return t=o/3-2,(o=[]).concat(this.circle(i-t,e,t,t),this.circle(i-t,e+t+4,t,t),this.circle(i-t,e+2*(t+4),t,t))}var o=[];t.compose=function(t){-1===o.indexOf(t)&&(o.push(t),(t=t.prototype.symbols).menu=e,t.menuball=i.bind(t))}}(t||(t={})),t})),e(t,"Extensions/Exporting/Fullscreen.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Utilities.js"]],(function(t,e){function i(){this.fullscreen=new n(this)}var o=e.addEvent,s=e.fireEvent,r=[],n=function(){function e(t){this.chart=t,this.isOpen=!1,t=t.renderTo,this.browserProps||("function"==typeof t.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:t.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:t.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:t.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}return e.compose=function(t){-1===r.indexOf(t)&&(r.push(t),o(t,"beforeRender",i))},e.prototype.close=function(){var t=this,e=t.chart,i=e.options.chart;s(e,"fullscreenClose",null,(function(){t.isOpen&&t.browserProps&&e.container.ownerDocument instanceof Document&&e.container.ownerDocument[t.browserProps.exitFullscreen](),t.unbindFullscreenEvent&&(t.unbindFullscreenEvent=t.unbindFullscreenEvent()),e.setSize(t.origWidth,t.origHeight,!1),t.origWidth=void 0,t.origHeight=void 0,i.width=t.origWidthOption,i.height=t.origHeightOption,t.origWidthOption=void 0,t.origHeightOption=void 0,t.isOpen=!1,t.setButtonText()}))},e.prototype.open=function(){var t=this,e=t.chart,i=e.options.chart;s(e,"fullscreenOpen",null,(function(){if(i&&(t.origWidthOption=i.width,t.origHeightOption=i.height),t.origWidth=e.chartWidth,t.origHeight=e.chartHeight,t.browserProps){var s=o(e.container.ownerDocument,t.browserProps.fullscreenChange,(function(){t.isOpen?(t.isOpen=!1,t.close()):(e.setSize(null,null,!1),t.isOpen=!0,t.setButtonText())})),r=o(e,"destroy",s);t.unbindFullscreenEvent=function(){s(),r()};var n=e.renderTo[t.browserProps.requestFullscreen]();n&&n.catch((function(){alert("Full screen is not supported inside a frame.")}))}}))},e.prototype.setButtonText=function(){var e=this.chart,i=e.exportDivElements,o=e.options.exporting,s=o&&o.buttons&&o.buttons.contextButton.menuItems;e=e.options.lang,o&&o.menuItemDefinitions&&e&&e.exitFullscreen&&e.viewFullscreen&&s&&i&&(i=i[s.indexOf("viewFullscreen")])&&t.setElementHTML(i,this.isOpen?e.exitFullscreen:o.menuItemDefinitions.viewFullscreen.text||e.viewFullscreen)},e.prototype.toggle=function(){this.isOpen?this.close():this.open()},e}();return n})),e(t,"Core/HttpUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e){var i=t.doc,o=e.createElement,s=e.discardElement,r=e.merge,n=e.objectEach,a={ajax:function(t){var e={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},i=new XMLHttpRequest;if(!t.url)return!1;i.open((t.type||"get").toUpperCase(),t.url,!0),t.headers&&t.headers["Content-Type"]||i.setRequestHeader("Content-Type",e[t.dataType||"json"]||e.text),n(t.headers,(function(t,e){i.setRequestHeader(e,t)})),t.responseType&&(i.responseType=t.responseType),i.onreadystatechange=function(){if(4===i.readyState){if(200===i.status){if("blob"!==t.responseType){var e=i.responseText;if("json"===t.dataType)try{e=JSON.parse(e)}catch(e){if(e instanceof Error)return void(t.error&&t.error(i,e))}}return t.success&&t.success(e,i)}t.error&&t.error(i,i.responseText)}},t.data&&"string"!=typeof t.data&&(t.data=JSON.stringify(t.data)),i.send(t.data)},getJSON:function(t,e){a.ajax({url:t,success:e,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(t,e,a){var h=o("form",r({method:"post",action:t,enctype:"multipart/form-data"},a),{display:"none"},i.body);n(e,(function(t,e){o("input",{type:"hidden",name:e,value:t},void 0,h)})),h.submit(),s(h)}};return a})),e(t,"Extensions/Exporting/Exporting.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Chart/Chart.js"],t["Core/Chart/ChartNavigationComposition.js"],t["Core/Defaults.js"],t["Extensions/Exporting/ExportingDefaults.js"],t["Extensions/Exporting/ExportingSymbols.js"],t["Extensions/Exporting/Fullscreen.js"],t["Core/Globals.js"],t["Core/HttpUtilities.js"],t["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,a,h,l){var c,d=o.defaultOptions,p=o.setOptions,u=a.doc,f=a.SVG_NS,g=a.win,m=l.addEvent,v=l.css,y=l.createElement,x=l.discardElement,b=l.extend,S=l.find,C=l.fireEvent,A=l.isObject,w=l.merge,k=l.objectEach,M=l.pick,T=l.removeEvent,P=l.uniqueKey;return function(e){function o(t){var e=this,i=e.renderer,o=w(e.options.navigation.buttonOptions,t),s=o.onclick,r=o.menuItems,n=o.symbolSize||12;if(e.btnCount||(e.btnCount=0),e.exportDivElements||(e.exportDivElements=[],e.exportSVGElements=[]),!1!==o.enabled&&o.theme){var a,h=o.theme;e.styledMode||(h.fill=M(h.fill,"#ffffff"),h.stroke=M(h.stroke,"none")),s?a=function(t){t&&t.stopPropagation(),s.call(e,t)}:r&&(a=function(t){t&&t.stopPropagation(),e.contextMenu(l.menuClassName,r,l.translateX,l.translateY,l.width,l.height,l),l.setState(2)}),o.text&&o.symbol?h.paddingLeft=M(h.paddingLeft,30):o.text||b(h,{width:o.width,height:o.height,padding:0}),e.styledMode||(h["stroke-linecap"]="round",h.fill=M(h.fill,"#ffffff"),h.stroke=M(h.stroke,"none"));var l=i.button(o.text,0,0,a,h,void 0,void 0,void 0,void 0,o.useHTML).addClass(t.className).attr({title:M(e.options.lang[o._titleKey||o.titleKey],"")});if(l.menuClassName=t.menuClassName||"highcharts-menu-"+e.btnCount++,o.symbol){var c=i.symbol(o.symbol,o.symbolX-n/2,o.symbolY-n/2,n,n,{width:n,height:n}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(l);e.styledMode||c.attr({stroke:o.symbolStroke,fill:o.symbolFill,"stroke-width":o.symbolStrokeWidth||1})}l.add(e.exportingGroup).align(b(o,{width:l.width,x:M(o.x,e.buttonOffset)}),!0,"spacingBox"),e.buttonOffset+=(l.width+o.buttonSpacing)*("right"===o.align?-1:1),e.exportSVGElements.push(l,c)}}function c(){if(this.printReverseInfo){var t=this.printReverseInfo,e=t.childNodes,i=t.origDisplay;t=t.resetParams,this.moveContainers(this.renderTo),[].forEach.call(e,(function(t,e){1===t.nodeType&&(t.style.display=i[e]||"")})),this.isPrinting=!1,t&&this.setSize.apply(this,t),delete this.printReverseInfo,K=void 0,C(this,"afterPrint")}}function E(){var t=u.body,e=this.options.exporting.printMaxWidth,i={childNodes:t.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,this.pointer.reset(null,0),C(this,"beforePrint"),e&&this.chartWidth>e&&(i.resetParams=[this.options.chart.width,void 0,!1],this.setSize(e,void 0,!1)),[].forEach.call(i.childNodes,(function(t,e){1===t.nodeType&&(i.origDisplay[e]=t.style.display,t.style.display="none")})),this.moveContainers(t),this.printReverseInfo=i}function O(t){t.renderExporting(),m(t,"redraw",t.renderExporting),m(t,"destroy",t.destroyExport)}function L(e,i,o,s,r,n,a){var h=this,c=h.options.navigation,d=h.chartWidth,p=h.chartHeight,f="cache-"+e,x=Math.max(r,n),S=h[f];if(!S){h.exportContextMenu=h[f]=S=y("div",{className:e},{position:"absolute",zIndex:1e3,padding:x+"px",pointerEvents:"auto"},h.fixedDiv||h.container);var w=y("ul",{className:"highcharts-menu"},{listStyle:"none",margin:0,padding:0},S);h.styledMode||v(w,b({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},c.menuStyle)),S.hideMenu=function(){v(S,{display:"none"}),a&&a.setState(0),h.openMenu=!1,v(h.renderTo,{overflow:"hidden"}),v(h.container,{overflow:"hidden"}),l.clearTimeout(S.hideTimer),C(h,"exportMenuHidden")},h.exportEvents.push(m(S,"mouseleave",(function(){S.hideTimer=g.setTimeout(S.hideMenu,500)})),m(S,"mouseenter",(function(){l.clearTimeout(S.hideTimer)})),m(u,"mouseup",(function(t){h.pointer.inClass(t.target,e)||S.hideMenu()})),m(S,"click",(function(){h.openMenu&&S.hideMenu()}))),i.forEach((function(e){if("string"==typeof e&&(e=h.options.exporting.menuItemDefinitions[e]),A(e,!0)){var i=void 0;e.separator?i=y("hr",void 0,void 0,w):("viewData"===e.textKey&&h.isDataTableVisible&&(e.textKey="hideData"),i=y("li",{className:"highcharts-menu-item",onclick:function(t){t&&t.stopPropagation(),S.hideMenu(),e.onclick&&e.onclick.apply(h,arguments)}},void 0,w),t.setElementHTML(i,e.text||h.options.lang[e.textKey]),h.styledMode||(i.onmouseover=function(){v(this,c.menuItemHoverStyle)},i.onmouseout=function(){v(this,c.menuItemStyle)},v(i,b({cursor:"pointer"},c.menuItemStyle||{})))),h.exportDivElements.push(i)}})),h.exportDivElements.push(w,S),h.exportMenuWidth=S.offsetWidth,h.exportMenuHeight=S.offsetHeight}i={display:"block"},o+h.exportMenuWidth>d?i.right=d-o-r-x+"px":i.left=o-x+"px",s+n+h.exportMenuHeight>p&&"top"!==a.alignOptions.verticalAlign?i.bottom=p-s-x+"px":i.top=s+n-x+"px",v(S,i),v(h.renderTo,{overflow:""}),v(h.container,{overflow:""}),h.openMenu=!0,C(h,"exportMenuShown")}function D(t){var e,i=t?t.target:this,o=i.exportSVGElements,s=i.exportDivElements;t=i.exportEvents,o&&(o.forEach((function(t,s){t&&(t.onclick=t.ontouchstart=null,e="cache-"+t.menuClassName,i[e]&&delete i[e],o[s]=t.destroy())})),o.length=0),i.exportingGroup&&(i.exportingGroup.destroy(),delete i.exportingGroup),s&&(s.forEach((function(t,e){t&&(l.clearTimeout(t.hideTimer),T(t,"mouseleave"),s[e]=t.onmouseout=t.onmouseover=t.ontouchstart=t.onclick=null,x(t))})),s.length=0),t&&(t.forEach((function(t){t()})),t.length=0)}function j(t,e){e=this.getSVGForExport(t,e),t=w(this.options.exporting,t),h.post(t.url,{filename:t.filename?t.filename.replace(/\//g,"-"):this.getFilename(),type:t.type,width:t.width||0,scale:t.scale,svg:e},t.formAttributes)}function R(){return this.styledMode&&this.inlineStyles(),this.container.innerHTML}function B(){var t=this.userOptions.title&&this.userOptions.title.text,e=this.options.exporting.filename;return e?e.replace(/\//g,"-"):("string"==typeof t&&(e=t.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z0-9\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!e||5>e.length)&&(e="chart"),e)}function I(t){var e,i=w(this.options,t);i.plotOptions=w(this.userOptions.plotOptions,t&&t.plotOptions),i.time=w(this.userOptions.time,t&&t.time);var o=y("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},u.body),s=this.renderTo.style.width,r=this.renderTo.style.height;s=i.exporting.sourceWidth||i.chart.width||/px$/.test(s)&&parseInt(s,10)||(i.isGantt?800:600),r=i.exporting.sourceHeight||i.chart.height||/px$/.test(r)&&parseInt(r,10)||400,b(i.chart,{animation:!1,renderTo:o,forExport:!0,renderer:"SVGRenderer",width:s,height:r}),i.exporting.enabled=!1,delete i.data,i.series=[],this.series.forEach((function(t){(e=w(t.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:t.visible})).isInternal||i.series.push(e)}));var n={};this.axes.forEach((function(t){t.userOptions.internalKey||(t.userOptions.internalKey=P()),t.options.isInternal||(n[t.coll]||(n[t.coll]=!0,i[t.coll]=[]),i[t.coll].push(w(t.userOptions,{visible:t.visible})))}));var a=new this.constructor(i,this.callback);return t&&["xAxis","yAxis","series"].forEach((function(e){var i={};t[e]&&(i[e]=t[e],a.update(i))})),this.axes.forEach((function(t){var e=S(a.axes,(function(e){return e.options.internalKey===t.userOptions.internalKey})),i=t.getExtremes(),o=i.userMin;i=i.userMax,e&&(void 0!==o&&o!==e.min||void 0!==i&&i!==e.max)&&e.setExtremes(o,i,!0,!1)})),r=a.getChartHTML(),C(this,"getSVG",{chartCopy:a}),r=this.sanitizeSVG(r,i),i=null,a.destroy(),x(o),r}function N(t,e){var i=this.options.exporting;return this.getSVG(w({chart:{borderRadius:0}},i.chartOptions,e,{exporting:{sourceWidth:t&&t.sourceWidth||i.sourceWidth,sourceHeight:t&&t.sourceHeight||i.sourceHeight}}))}function z(t){return t.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))}function G(){var t,i=Y,o=e.inlineAllowlist,s={},r=u.createElement("iframe");v(r,{width:"1px",height:"1px",visibility:"hidden"}),u.body.appendChild(r);var n=r.contentWindow&&r.contentWindow.document;n&&n.body.appendChild(n.createElementNS(f,"svg")),function e(r){var h={};if(n&&1===r.nodeType&&-1===q.indexOf(r.nodeName)){var l=g.getComputedStyle(r,null),c="svg"===r.nodeName?{}:g.getComputedStyle(r.parentNode,null);if(!s[r.nodeName]){t=n.getElementsByTagName("svg")[0];var d=n.createElementNS(r.namespaceURI,r.nodeName);t.appendChild(d);var p=g.getComputedStyle(d,null),u={};for(var f in p)"string"!=typeof p[f]||/^[0-9]+$/.test(f)||(u[f]=p[f]);s[r.nodeName]=u,"text"===r.nodeName&&delete s.text.fill,t.removeChild(d)}for(var m in l)if(a.isFirefox||a.isMS||a.isSafari||Object.hasOwnProperty.call(l,m)){f=l[m];var y=m;if(d=p=!1,o.length){for(u=o.length;u--&&!p;)p=o[u].test(y);d=!p}for("transform"===y&&"none"===f&&(d=!0),u=i.length;u--&&!d;)d=i[u].test(y)||"function"==typeof f;d||c[y]===f&&"svg"!==r.nodeName||s[r.nodeName][y]===f||(V&&-1===V.indexOf(y)?h[y]=f:f&&r.setAttribute(z(y),f))}v(r,h),"svg"===r.nodeName&&r.setAttribute("stroke-width","1px"),"text"!==r.nodeName&&[].forEach.call(r.children||r.childNodes,e)}}(this.container.querySelector("svg")),t.parentNode.removeChild(t),r.parentNode.removeChild(r)}function H(t){(this.fixedDiv?[this.fixedDiv,this.scrollingContainer]:[this.container]).forEach((function(e){t.appendChild(e)}))}function W(){var t=this;t.exporting={update:function(e,i){t.isDirtyExporting=!0,w(!0,t.options.exporting,e),M(i,!0)&&t.redraw()}},i.compose(t).navigation.addUpdate((function(e,i){t.isDirtyExporting=!0,w(!0,t.options.navigation,e),M(i,!0)&&t.redraw()}))}function U(){var t=this;t.isPrinting||(K=t,a.isSafari||t.beforePrint(),setTimeout((function(){g.focus(),g.print(),a.isSafari||setTimeout((function(){t.afterPrint()}),1e3)}),1))}function X(){var t=this,e=t.options.exporting,i=e.buttons,o=t.isDirtyExporting||!t.exportSVGElements;t.buttonOffset=0,t.isDirtyExporting&&t.destroyExport(),o&&!1!==e.enabled&&(t.exportEvents=[],t.exportingGroup=t.exportingGroup||t.renderer.g("exporting-group").attr({zIndex:3}).add(),k(i,(function(e){t.addButton(e)})),t.isDirtyExporting=!1)}function F(t,e){var i=t.indexOf("")+6,o=t.substr(i);return t=t.substr(0,i),e&&e.exporting&&e.exporting.allowHTML&&o&&(o=''+o.replace(/(<(?:img|br).*?(?=>))>/g,"$1 />")+"",t=t.replace("",o+"")),t=t.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|");?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/{var o,s,r;r=function(t){function e(t,e,i,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}e(t=t?t._modules:{},"Series/DerivedComposition.js",[t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],(function(t,e,i){var o,s=t.noop,r=i.addEvent,n=i.defined;return function(t){function i(){e.prototype.init.apply(this,arguments),this.initialised=!1,this.baseSeries=null,this.eventRemovers=[],this.addEvents()}function o(){var t=this.chart,e=this.options.baseSeries;this.baseSeries=n(e)&&(t.series[e]||t.get(e))||null}function a(){var t=this;this.eventRemovers.push(r(this.chart,"afterLinkSeries",(function(){t.setBaseSeries(),t.baseSeries&&!t.initialised&&(t.setDerivedData(),t.addBaseSeriesEvents(),t.initialised=!0)})))}function h(){var t=this;this.eventRemovers.push(r(this.baseSeries,"updatedData",(function(){t.setDerivedData()})),r(this.baseSeries,"destroy",(function(){t.baseSeries=null,t.initialised=!1})))}function l(){this.eventRemovers.forEach((function(t){t()})),e.prototype.destroy.apply(this,arguments)}var c=[];t.hasDerivedData=!0,t.setDerivedData=s,t.compose=function(t){if(-1===c.indexOf(t)){c.push(t);var e=t.prototype;e.addBaseSeriesEvents=h,e.addEvents=a,e.destroy=l,e.init=i,e.setBaseSeries=o}return t},t.init=i,t.setBaseSeries=o,t.addEvents=a,t.addBaseSeriesEvents=h,t.destroy=l}(o||(o={})),o})),e(t,"Series/Histogram/HistogramSeries.js",[t["Series/DerivedComposition.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,i){var o=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 o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=e.seriesTypes.column,r=i.arrayMax,n=i.arrayMin,a=i.correctFloat,h=i.extend,l=i.isNumber,c=i.merge,d=i.objectEach,p={"square-root":function(t){return Math.ceil(Math.sqrt(t.options.data.length))},sturges:function(t){return Math.ceil(Math.log(t.options.data.length)*Math.LOG2E)},rice:function(t){return Math.ceil(2*Math.pow(t.options.data.length,1/3))}};return i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e.userOptions=void 0,e}return o(e,t),e.prototype.binsNumber=function(){var t=this.options.binsNumber,e=p[t]||"function"==typeof t&&t;return Math.ceil(e&&e(this.baseSeries)||(l(t)?t:p["square-root"](this.baseSeries)))},e.prototype.derivedData=function(t,e,i){var o=a(r(t)),s=a(n(t)),h=[],c={},p=[];for(i=this.binWidth=a(l(i)?i||1:(o-s)/e),this.options.pointRange=Math.max(i,0),e=s;e=i||0>=a(a(s+h.length*i)-e));e=a(e+i))h.push(e),c[e]=0;0!==c[s]&&(h.push(s),c[s]=0);var u=function(t){return function(e){for(var i=1;t[i]<=e;)i++;return t[--i]}}(h.map((function(t){return parseFloat(t)})));return t.forEach((function(t){t=a(u(t)),c[t]++})),d(c,(function(t,e){p.push({x:Number(e),y:t,x2:a(Number(e)+i)})})),p.sort((function(t,e){return t.x-e.x})),p[p.length-1].x2=o,p},e.prototype.setDerivedData=function(){var t=this.baseSeries.yData;t.length?(t=this.derivedData(t,this.binsNumber(),this.options.binWidth),this.setData(t,!1)):this.setData([])},e.defaultOptions=c(s.defaultOptions,{binsNumber:"square-root",binWidth:void 0,pointPadding:0,groupPadding:0,grouping:!1,pointPlacement:"between",tooltip:{headerFormat:"",pointFormat:'{point.x} - {point.x2}
{series.name} {point.y}
'}}),e}(s),h(i.prototype,{hasDerivedData:t.hasDerivedData}),t.compose(i),e.registerSeriesType("histogram",i),i})),e(t,"Series/Bellcurve/BellcurveSeries.js",[t["Series/DerivedComposition.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,i){var o=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 o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=e.seriesTypes.areaspline,r=i.correctFloat,n=i.isNumber,a=i.merge;return i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return o(e,t),e.mean=function(t){var e=t.length;return t=t.reduce((function(t,e){return t+e}),0),0