PageSourceSearch

https://faptap.net/assets/vendor-highcharts.9b480a8e.js

js faptap.net collected 2026-09-25 22:12:48 UTC 304,314 bytes, 2 lines download raw bytes

1function Lt(Ct,Mt){for(var lt=0;lt<Mt.length;lt++){const _=Mt[lt];if(typeof _!="string"&&!Array.isArray(_)){for(const X in _)if(X!=="default"&&!(X in Ct)){const Y=Object.getOwnPropertyDescriptor(_,X);Y&&Object.defineProperty(Ct,X,Y.get?Y:{enumerable:!0,get:()=>_[X]})}}}return Object.freeze(Object.defineProperty(Ct,Symbol.toStringTag,{value:"Module"}))}var Ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bt(Ct){return Ct&&Ct.__esModule&&Object.prototype.hasOwnProperty.call(Ct,"default")?Ct.default:Ct}function Dt(Ct){var Mt=Ct.default;if(typeof Mt=="function"){var lt=function(){return Mt.apply(this,arguments)};lt.prototype=Mt.prototype}else lt={};return Object.defineProperty(lt,"__esModule",{value:!0}),Object.keys(Ct).forEach(function(_){var X=Object.getOwnPropertyDescriptor(Ct,_);Object.defineProperty(lt,_,X.get?X:{enumerable:!0,get:function(){return Ct[_]}})}),lt}var Pt={exports:{}};(function(Ct){(function(Mt,lt){Ct.exports?(lt.default=lt,Ct.exports=Mt.document?lt(Mt):lt):(Mt.Highcharts&&Mt.Highcharts.error(16,!0),Mt.Highcharts=lt(Mt))})(typeof window<"u"?window:Ot,function(Mt){function lt(X,Y,V,et){X.hasOwnProperty(Y)||(X[Y]=et.apply(null,V),typeof CustomEvent=="function"&&Mt.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:Y,module:X[Y]}})))}var _={};return lt(_,"Core/Globals.js",[],function(){var X;return function(Y){Y.SVG_NS="http://www.w3.org/2000/svg",Y.product="Highcharts",Y.version="10.3.3",Y.win=typeof Mt<"u"?Mt:{},Y.doc=Y.win.document,Y.svg=Y.doc&&Y.doc.createElementNS&&!!Y.doc.createElementNS(Y.SVG_NS,"svg").createSVGRect,Y.userAgent=Y.win.navigator&&Y.win.navigator.userAgent||"",Y.isChrome=Y.userAgent.indexOf("Chrome")!==-1,Y.isFirefox=Y.userAgent.indexOf("Firefox")!==-1,Y.isMS=/(edge|msie|trident)/i.test(Y.userAgent)&&!Y.win.opera,Y.isSafari=!Y.isChrome&&Y.userAgent.indexOf("Safari")!==-1,Y.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(Y.userAgent),Y.isWebKit=Y.userAgent.indexOf("AppleWebKit")!==-1,Y.deg2rad=2*Math.PI/360,Y.hasBidiBug=Y.isFirefox&&4>parseInt(Y.userAgent.split("Firefox/")[1],10),Y.hasTouch=!!Y.win.TouchEvent,Y.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],Y.noop=function(){},Y.supportsPassiveEvents=function(){var V=!1;if(!Y.isMS){var et=Object.defineProperty({},"passive",{get:function(){V=!0}});Y.win.addEventListener&&Y.win.removeEventListener&&(Y.win.addEventListener("testPassive",Y.noop,et),Y.win.removeEventListener("testPassive",Y.noop,et))}return V}(),Y.charts=[],Y.dateFormats={},Y.seriesTypes={},Y.symbolSizes={},Y.chartCount=0}(X||(X={})),X}),lt(_,"Core/Utilities.js",[_["Core/Globals.js"]],function(X){function Y(i,r,c,a){var m=r?"Highcharts error":"Highcharts warning";i===32&&(i=""+m+": Deprecated member");var P=A(i),G=P?""+m+" #"+i+": www.highcharts.com/errors/"+i+"/":i.toString();if(typeof a<"u"){var I="";P&&(G+="?"),b(a,function(e,l){I+=`
2 - `.concat(l,": ").concat(e),P&&(G+=encodeURI(l)+"="+encodeURI(e))}),G+=I}C(X,"displayError",{chart:c,code:i,message:G,params:a},function(){if(r)throw Error(G);o.console&&Y.messages.indexOf(G)===-1&&console.warn(G)}),Y.messages.push(G)}function V(i,r){var c={};return b(i,function(a,m){K(i[m],!0)&&!i.nodeType&&r[m]?(a=V(i[m],r[m]),Object.keys(a).length&&(c[m]=a)):(K(i[m])||i[m]!==r[m]||m in i&&!(m in r))&&(c[m]=i[m])}),c}function et(i,r){return parseInt(i,r||10)}function J(i){return typeof i=="string"}function Q(i){return i=Object.prototype.toString.call(i),i==="[object Array]"||i==="[object Array Iterator]"}function K(i,r){return!!i&&typeof i=="object"&&(!r||!Q(i))}function R(i){return K(i)&&typeof i.nodeType=="number"}function D(i){var r=i&&i.constructor;return!(!K(i,!0)||R(i)||!r||!r.name||r.name==="Object")}function A(i){return typeof i=="number"&&!isNaN(i)&&1/0>i&&-1/0<i}function g(i){return typeof i<"u"&&i!==null}function f(i,r,c){var a=J(r)&&!g(c),m,P=function(G,I){g(G)?i.setAttribute(I,G):a?(m=i.getAttribute(I))||I!=="class"||(m=i.getAttribute(I+"Name")):i.removeAttribute(I)};return J(r)?P(c,r):b(r,P),m}function y(i,r){var c;i||(i={});for(c in r)i[c]=r[c];return i}function k(){for(var i=arguments,r=i.length,c=0;c<r;c++){var a=i[c];if(typeof a<"u"&&a!==null)return a}}function v(i,r){X.isMS&&!X.svg&&r&&g(r.opacity)&&(r.filter="alpha(opacity=".concat(100*r.opacity,")")),y(i.style,r)}function S(i){return Math.pow(10,Math.floor(Math.log(i)/Math.LN10))}function M(i,r){return 1e14<i?i:parseFloat(i.toPrecision(r||14))}function w(i,r,c){var a=X.getStyle||w;if(r==="width")return r=Math.min(i.offsetWidth,i.scrollWidth),c=i.getBoundingClientRect&&i.getBoundingClientRect().width,c<r&&c>=r-1&&(r=Math.floor(c)),Math.max(0,r-(a(i,"padding-left",!0)||0)-(a(i,"padding-right",!0)||0));if(r==="height")return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(a(i,"padding-top",!0)||0)-(a(i,"padding-bottom",!0)||0));
2if(o.getComputedStyle||Y(27,!0),i=o.getComputedStyle(i,void 0)){var m=i.getPropertyValue(r);k(c,r!=="opacity")&&(m=et(m))}return m}function b(i,r,c){for(var a in i)Object.hasOwnProperty.call(i,a)&&r.call(c||i[a],i[a],a,i)}function j(i,r,c){function a(I,e){var l=i.removeEventListener||X.removeEventListenerPolyfill;l&&l.call(i,I,e,!1)}function m(I){var e;if(i.nodeName){if(r){var l={};l[r]=!0}else l=I;b(l,function(T,E){if(I[E])for(e=I[E].length;e--;)a(E,I[E][e].fn)})}}var P=typeof i=="function"&&i.prototype||i;if(Object.hasOwnProperty.call(P,"hcEvents")){var G=P.hcEvents;r?(P=G[r]||[],c?(G[r]=P.filter(function(I){return c!==I.fn}),a(r,c)):(m(G),G[r]=[])):(m(G),delete P.hcEvents)}}function C(i,r,c,a){if(c=c||{},d.createEvent&&(i.dispatchEvent||i.fireEvent&&i!==X)){var m=d.createEvent("Events");m.initEvent(r,!0,!0),c=y(m,c),i.dispatchEvent?i.dispatchEvent(c):i.fireEvent(r,c)}else if(i.hcEvents){c.target||y(c,{preventDefault:function(){c.defaultPrevented=!0},target:i,type:r}),m=[];for(var P=i,G=!1;P.hcEvents;)Object.hasOwnProperty.call(P,"hcEvents")&&P.hcEvents[r]&&(m.length&&(G=!0),m.unshift.apply(m,P.hcEvents[r])),P=Object.getPrototypeOf(P);G&&m.sort(function(I,e){return I.order-e.order}),m.forEach(function(I){I.fn.call(i,c)===!1&&c.preventDefault()})}a&&!c.defaultPrevented&&a.call(i,c)}var s=X.charts,d=X.doc,o=X.win;(Y||(Y={})).messages=[],Math.easeInOutSine=function(i){return-.5*(Math.cos(Math.PI*i)-1)};var h=Array.prototype.find?function(i,r){return i.find(r)}:function(i,r){var c,a=i.length;for(c=0;c<a;c++)if(r(i[c],c))return i[c]};b({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(i,r){X[r]=function(c){var a;return Y(32,!1,void 0,(a={},a["Highcharts.".concat(r)]="use Array.".concat(i),a)),Array.prototype[i].apply(c,[].slice.call(arguments,1))}});var t,p=function(){var i=Math.random().toString(36).substring(2,9)+"-",r=0;return function(){return"highcharts-"+(t?"":i)+r++}}();return o.jQuery&&(o.jQuery.fn.highcharts=function(){var i=[].slice.call(arguments);if(this[0])return i[0]?(new X[J(i[0])?i.shift():"Chart"](this[0],i[0],i[1]),this):s[f(this[0],"data-highcharts-chart")]}),h={addEvent:function(i,r,c,a){a===void 0&&(a={});var m=typeof i=="function"&&i.prototype||i;Object.hasOwnProperty.call(m,"hcEvents")||(m.hcEvents={}),m=m.hcEvents,X.Point&&i instanceof X.Point&&i.series&&i.series.chart&&(i.series.chart.runTrackerClick=!0);var P=i.addEventListener||X.addEventListenerPolyfill;return P&&P.call(i,r,c,X.supportsPassiveEvents?{passive:a.passive===void 0?r.indexOf("touch")!==-1:a.passive,capture:!1}:!1),m[r]||(m[r]=[]),m[r].push({fn:c,order:typeof a.order=="number"?a.order:1/0}),m[r].sort(function(G,I){return G.order-I.order}),function(){j(i,r,c)}},arrayMax:function(i){for(var r=i.length,c=i[0];r--;)i[r]>c&&(c=i[r]);return c},arrayMin:function(i){for(var r=i.length,c=i[0];r--;)i[r]<c&&(c=i[r]);return c},attr:f,clamp:function(i,r,c){return i>r?i<c?i:c:r},cleanRecursively:V,clearTimeout:function(i){g(i)&&clearTimeout(i)},correctFloat:M,createElement:function(i,r,c,a,m){return i=d.createElement(i),r&&y(i,r),m&&v(i,{padding:"0",border:"none",margin:"0"}),c&&v(i,c),a&&a.appendChild(i),i},css:v,defined:g,destroyObjectProperties:function(i,r){b(i,function(c,a){c&&c!==r&&c.destroy&&c.destroy(),delete i[a]})},discardElement:function(i){i&&i.parentElement&&i.parentElement.removeChild(i)},erase:function(i,r){for(var c=i.length;c--;)if(i[c]===r){i.splice(c,1);break}},error:Y,extend:y,extendClass:function(i,r){var c=function(){};return c.prototype=new i,y(c.prototype,r),c},find:h,fireEvent:C,getMagnitude:S,getNestedProperty:function(i,r){for(i=i.split(".");i.length&&g(r);){var c=i.shift();if(typeof c>"u"||c==="__proto__"||(r=r[c],!g(r)||typeof r=="function"||typeof r.nodeType=="number"||r===o))return}return r},getStyle:w,inArray:function(i,r,c){return Y(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),r.indexOf(i,c)},isArray:Q,isClass:D,isDOMElement:R,isFunction:function(i){return typeof i=="function"},isNumber:A,isObject:K,isString:J,keys:function(i){return Y(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(i)},merge:function(){var i,r=arguments,c={},a=function(P,G){return typeof P!="object"&&(P={}),b(G,function(I,e){e!=="__proto__"&&e!=="constructor"&&(!K(I,!0)||D(I)||R(I)?P[e]=G[e]:P[e]=a(P[e]||{},I))}),P};r[0]===!0&&(c=r[1],r=Array.prototype.slice.call(r,2));var m=r.length;for(i=0;i<m;i++)c=a(c,r[i]);return c},normalizeTickInterval:function(i,r,c,a,m){var P=i;c=k(c,S(i));var G=i/c;for(r||(r=m?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],a===!1&&(c===1?r=r.filter(function(I){return I%1===0}):.1>=c&&(r=[1/c]))),a=0;a<r.length&&(P=r[a],!(m&&P*c>=i||!m&&G<=(r[a]+(r[a+1]||r[a]))/2));a++);return P=M(P*c,-Math.round(Math.log(.001)/Math.LN10))},objectEach:b,offset:function(i){var r=d.documentElement;return i=i.parentElement||i.parentNode?i.getBoundingClientRect():{top:0,left:0,width:0,height:0}
2,{top:i.top+(o.pageYOffset||r.scrollTop)-(r.clientTop||0),left:i.left+(o.pageXOffset||r.scrollLeft)-(r.clientLeft||0),width:i.width,height:i.height}},pad:function(i,r,c){return Array((r||2)+1-String(i).replace("-","").length).join(c||"0")+i},pick:k,pInt:et,relativeLength:function(i,r,c){return/%$/.test(i)?r*parseFloat(i)/100+(c||0):parseFloat(i)},removeEvent:j,splat:function(i){return Q(i)?i:[i]},stableSort:function(i,r){var c=i.length,a,m;for(m=0;m<c;m++)i[m].safeI=m;for(i.sort(function(P,G){return a=r(P,G),a===0?P.safeI-G.safeI:a}),m=0;m<c;m++)delete i[m].safeI},syncTimeout:function(i,r,c){return 0<r?setTimeout(i,r,c):(i.call(0,c),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:p,useSerialIds:function(i){return t=k(i,t)},wrap:function(i,r,c){var a=i[r];i[r]=function(){var m=arguments,P=this;return c.apply(this,[function(){return a.apply(P,arguments.length?arguments:m)}].concat([].slice.call(arguments)))}}},h}),lt(_,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),lt(_,"Core/Color/Color.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(X,Y){var V=Y.isNumber,et=Y.merge,J=Y.pInt;return Y=function(){function Q(K){this.rgba=[NaN,NaN,NaN,NaN],this.input=K;var R=X.Color;if(R&&R!==Q)return new R(K);if(!(this instanceof Q))return new Q(K);this.init(K)}return Q.parse=function(K){return K?new Q(K):Q.None},Q.prototype.init=function(K){var R;if(typeof K=="object"&&typeof K.stops<"u")this.stops=K.stops.map(function(f){return new Q(f[1])});else if(typeof K=="string"){if(this.input=K=Q.names[K.toLowerCase()]||K,K.charAt(0)==="#"){var D=K.length,A=parseInt(K.substr(1),16);D===7?R=[(A&16711680)>>16,(A&65280)>>8,A&255,1]:D===4&&(R=[(A&3840)>>4|(A&3840)>>8,(A&240)>>4|A&240,(A&15)<<4|A&15,1])}if(!R)for(A=Q.parsers.length;A--&&!R;){var g=Q.parsers[A];(D=g.regex.exec(K))&&(R=g.parse(D))}}R&&(this.rgba=R)},Q.prototype.get=function(K){var R=this.input,D=this.rgba;if(typeof R=="object"&&typeof this.stops<"u"){var A=et(R);return A.stops=[].slice.call(A.stops),this.stops.forEach(function(g,f){A.stops[f]=[A.stops[f][0],g.get(K)]}),A}return D&&V(D[0])?K==="rgb"||!K&&D[3]===1?"rgb("+D[0]+","+D[1]+","+D[2]+")":K==="a"?"".concat(D[3]):"rgba("+D.join(",")+")":R},Q.prototype.brighten=function(K){var R=this.rgba;if(this.stops)this.stops.forEach(function(A){A.brighten(K)});else if(V(K)&&K!==0)for(var D=0;3>D;D++)R[D]+=J(255*K),0>R[D]&&(R[D]=0),255<R[D]&&(R[D]=255);return this},Q.prototype.setOpacity=function(K){return this.rgba[3]=K,this},Q.prototype.tweenTo=function(K,R){var D=this.rgba,A=K.rgba;return!V(D[0])||!V(A[0])?K.input||"none":(K=A[3]!==1||D[3]!==1,(K?"rgba(":"rgb(")+Math.round(A[0]+(D[0]-A[0])*(1-R))+","+Math.round(A[1]+(D[1]-A[1])*(1-R))+","+Math.round(A[2]+(D[2]-A[2])*(1-R))+(K?","+(A[3]+(D[3]-A[3])*(1-R)):"")+")")},Q.names={white:"#ffffff",black:"#000000"},Q.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(K){return[J(K[1]),J(K[2]),J(K[3]),parseFloat(K[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(K){return[J(K[1]),J(K[2]),J(K[3]),1]}}],Q.None=new Q(""),Q}(),Y}),lt(_,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),lt(_,"Core/Time.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(X,Y){var V=X.win,et=Y.defined,J=Y.error,Q=Y.extend,K=Y.isObject,R=Y.merge,D=Y.objectEach,A=Y.pad,g=Y.pick,f=Y.splat,y=Y.timeUnits,k=X.isSafari&&V.Intl&&V.Intl.DateTimeFormat.prototype.formatRange,v=X.isSafari&&V.Intl&&!V.Intl.DateTimeFormat.prototype.formatRange;return Y=function(){function S(M){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=V.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(M)}return S.prototype.get=function(M,w){if(this.variableTimezone||this.timezoneOffset){var b=w.getTime(),j=b-this.getTimezoneOffset(w);return w.setTime(j),M=w["getUTC"+M](),w.setTime(b),M}return this.useUTC?w["getUTC"+M]():w["get"+M]()},S.prototype.set=function(M,w,b){if(this.variableTimezone||this.timezoneOffset){if(M==="Milliseconds"||M==="Seconds"||M==="Minutes"&&this.getTimezoneOffset(w)%36e5===0)return w["setUTC"+M](b);var j=this.getTimezoneOffset(w);return j=w.getTime()-j,w.setTime(j),w["setUTC"+M](b),M=this.getTimezoneOffset(w),j=w.getTime()+M,w.setTime(j)}return this.useUTC||k&&M==="FullYear"?w["setUTC"+M](b):w["set"+M](b)},S.prototype.update=function(M){M===void 0&&(M={});var w=g(M.useUTC,!0);this.options=M=R(!0,this.options,M),this.Date=M.Date||V.Date||Date,this.timezoneOffset=(this.useUTC=w)&&M.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=w&&!(!M.getTimezoneOffset&&!M.timezone)},S.prototype.makeTime=function(M,w,b,j,C,s){if(this.useUTC){var d=this.Date.UTC.apply(0,arguments),o=this.getTimezoneOffset(d);d+=o;var h=this.getTimezoneOffset(d);o!==h?d+=h-o:o-36e5!==this.getTimezoneOffset(d-36e5)||v||(d-=36e5)}else d=new this.Date(M,w,g(b,1),g(j,0),g(C,0),g(s,0)).getTime();return d},S.prototype.timezoneOffsetFunction=function(){var M=this,w=this.options,b=w.getTimezoneOffset,j=w.moment||V.moment;if(!this.useUTC)return function(C){return 6e4*new Date(C.toString()).getTimezoneOffset()};if(w.timezone){if(j)return function(C){return 6e4*-j.tz(C,w.timezone).utcOffset()};J(25)}return this.useUTC&&b?function(C){return 6e4*b(C.valueOf())}:function(){return 6e4*(M.timezoneOffset||0)}},S.prototype.dateFormat=function(M,w,b){if(!et(w)||isNaN(w))return X.defaultOptions.lang&&X.defaultOptions.lang.invali
2dDate||"";M=g(M,"%Y-%m-%d %H:%M:%S");var j=this,C=new this.Date(w),s=this.get("Hours",C),d=this.get("Day",C),o=this.get("Date",C),h=this.get("Month",C),t=this.get("FullYear",C),p=X.defaultOptions.lang,i=p&&p.weekdays,r=p&&p.shortWeekdays;return C=Q({a:r?r[d]:i[d].substr(0,3),A:i[d],d:A(o),e:A(o,2," "),w:d,b:p.shortMonths[h],B:p.months[h],m:A(h+1),o:h+1,y:t.toString().substr(2,2),Y:t,H:A(s),k:s,I:A(s%12||12),l:s%12||12,M:A(this.get("Minutes",C)),p:12>s?"AM":"PM",P:12>s?"am":"pm",S:A(C.getSeconds()),L:A(Math.floor(w%1e3),3)},X.dateFormats),D(C,function(c,a){for(;M.indexOf("%"+a)!==-1;)M=M.replace("%"+a,typeof c=="function"?c.call(j,w):c)}),b?M.substr(0,1).toUpperCase()+M.substr(1):M},S.prototype.resolveDTLFormat=function(M){return K(M,!0)?M:(M=f(M),{main:M[0],from:M[1],to:M[2]})},S.prototype.getTimeTicks=function(M,w,b,j){var C=this,s=[],d={},o=new C.Date(w),h=M.unitRange,t=M.count||1,p;if(j=g(j,1),et(w)){if(C.set("Milliseconds",o,h>=y.second?0:t*Math.floor(C.get("Milliseconds",o)/t)),h>=y.second&&C.set("Seconds",o,h>=y.minute?0:t*Math.floor(C.get("Seconds",o)/t)),h>=y.minute&&C.set("Minutes",o,h>=y.hour?0:t*Math.floor(C.get("Minutes",o)/t)),h>=y.hour&&C.set("Hours",o,h>=y.day?0:t*Math.floor(C.get("Hours",o)/t)),h>=y.day&&C.set("Date",o,h>=y.month?1:Math.max(1,t*Math.floor(C.get("Date",o)/t))),h>=y.month){C.set("Month",o,h>=y.year?0:t*Math.floor(C.get("Month",o)/t));var i=C.get("FullYear",o)}h>=y.year&&C.set("FullYear",o,i-i%t),h===y.week&&(i=C.get("Day",o),C.set("Date",o,C.get("Date",o)-i+j+(i<j?-7:0))),i=C.get("FullYear",o),j=C.get("Month",o);var r=C.get("Date",o),c=C.get("Hours",o);for(w=o.getTime(),!C.variableTimezone&&C.useUTC||!et(b)||(p=b-w>4*y.month||C.getTimezoneOffset(w)!==C.getTimezoneOffset(b)),w=o.getTime(),o=1;w<b;)s.push(w),w=h===y.year?C.makeTime(i+o*t,0):h===y.month?C.makeTime(i,j+o*t):!p||h!==y.day&&h!==y.week?p&&h===y.hour&&1<t?C.makeTime(i,j,r,c+o*t):w+h*t:C.makeTime(i,j,r+o*t*(h===y.day?1:7)),o++;s.push(w),h<=y.hour&&1e4>s.length&&s.forEach(function(a){a%18e5===0&&C.dateFormat("%H%M%S%L",a)==="000000000"&&(d[a]="day")})}return s.info=Q(M,{higherRanks:d,totalRange:h*t}),s},S.prototype.getDateFormat=function(M,w,b,j){var C=this.dateFormat("%m-%d %H:%M:%S.%L",w),s={millisecond:15,second:12,minute:9,hour:6,day:3},d="millisecond";for(o in y){if(M===y.week&&+this.dateFormat("%w",w)===b&&C.substr(6)==="00:00:00.000"){var o="week";break}if(y[o]>M){o=d;break}if(s[o]&&C.substr(s[o])!=="01-01 00:00:00.000".substr(s[o]))break;o!=="week"&&(d=o)}return this.resolveDTLFormat(j[o]).main},S}(),Y}),lt(_,"Core/Defaults.js",[_["Core/Chart/ChartDefaults.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Color/Palettes.js"],_["Core/Time.js"],_["Core/Utilities.js"]],function(X,Y,V,et,J,Q){Y=Y.parse;var K=Q.merge,R={colors:et.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:X,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:V.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:V.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:Y("#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"}};R.chart.styledMode=!1;var D=new J(K(R.global,R.time));return X={defaultOptions:R,defaultTime:D,getOptions:function(){return R},setOptions:function(A){return K(!0,R,A),(A.time||A.global)&&(V.time?V.time.update(K(R.global,R.time,A.global,A.time)):V.time=D),R}},X}
2),lt(_,"Core/Animation/Fx.js",[_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(X,Y,V){var et=X.parse,J=Y.win,Q=V.isNumber,K=V.objectEach;return function(){function R(D,A,g){this.pos=NaN,this.options=A,this.elem=D,this.prop=g}return R.prototype.dSetter=function(){var D=this.paths,A=D&&D[0];D=D&&D[1];var g=this.now||0,f=[];if(g!==1&&A&&D)if(A.length===D.length&&1>g)for(var y=0;y<D.length;y++){for(var k=A[y],v=D[y],S=[],M=0;M<v.length;M++){var w=k[M],b=v[M];Q(w)&&Q(b)&&(v[0]!=="A"||M!==4&&M!==5)?S[M]=w+g*(b-w):S[M]=b}f.push(S)}else f=D;else f=this.toD||[];this.elem.attr("d",f,void 0,!0)},R.prototype.update=function(){var D=this.elem,A=this.prop,g=this.now,f=this.options.step;this[A+"Setter"]?this[A+"Setter"]():D.attr?D.element&&D.attr(A,g,null,!0):D.style[A]=g+this.unit,f&&f.call(D,g,this)},R.prototype.run=function(D,A,g){var f=this,y=f.options,k=function(M){return k.stopped?!1:f.step(M)},v=J.requestAnimationFrame||function(M){setTimeout(M,13)},S=function(){for(var M=0;M<R.timers.length;M++)R.timers[M]()||R.timers.splice(M--,1);R.timers.length&&v(S)};D!==A||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=D,this.end=A,this.unit=g,this.now=this.start,this.pos=0,k.elem=this.elem,k.prop=this.prop,k()&&R.timers.push(k)===1&&v(S)):(delete y.curAnim[this.prop],y.complete&&Object.keys(y.curAnim).length===0&&y.complete.call(this.elem))},R.prototype.step=function(D){var A=+new Date,g=this.options,f=this.elem,y=g.complete,k=g.duration,v=g.curAnim;if(f.attr&&!f.element)D=!1;else if(D||A>=k+this.startTime){this.now=this.end,this.pos=1,this.update();var S=v[this.prop]=!0;K(v,function(M){M!==!0&&(S=!1)}),S&&y&&y.call(f),D=!1}else this.pos=g.easing((A-this.startTime)/k),this.now=this.start+(this.end-this.start)*this.pos,this.update(),D=!0;return D},R.prototype.initPath=function(D,A,g){function f(C,s){for(;C.length<j;){var d=C[0],o=s[j-C.length];o&&d[0]==="M"&&(C[0]=o[0]==="C"?["C",d[1],d[2],d[1],d[2],d[1],d[2]]:["L",d[1],d[2]]),C.unshift(d),S&&(d=C.pop(),C.push(C[C.length-1],d))}}function y(C,s){for(;C.length<j;)if(s=C[Math.floor(C.length/M)-1].slice(),s[0]==="C"&&(s[1]=s[5],s[2]=s[6]),S){var d=C[Math.floor(C.length/M)].slice();C.splice(C.length/2,0,s,d)}else C.push(s)}var k=D.startX,v=D.endX;g=g.slice();var S=D.isArea,M=S?2:1;if(A=A&&A.slice(),!A)return[g,g];if(k&&v&&v.length){for(D=0;D<k.length;D++)if(k[D]===v[0]){var w=D;break}else if(k[0]===v[v.length-k.length+D]){w=D;var b=!0;break}else if(k[k.length-1]===v[v.length-k.length+D]){w=k.length-D;break}typeof w>"u"&&(A=[])}if(A.length&&Q(w)){var j=g.length+w*M;b?(f(A,g),y(g,A)):(f(g,A),y(A,g))}return[A,g]},R.prototype.fillSetter=function(){R.prototype.strokeSetter.apply(this,arguments)},R.prototype.strokeSetter=function(){this.elem.attr(this.prop,et(this.start).tweenTo(et(this.end),this.pos),void 0,!0)},R.timers=[],R}()}),lt(_,"Core/Animation/AnimationUtilities.js",[_["Core/Animation/Fx.js"],_["Core/Utilities.js"]],function(X,Y){function V(y){return D(y)?A({duration:500,defer:0},y):{duration:y?500:0,defer:0}}function et(y,k){for(var v=X.timers.length;v--;)X.timers[v].elem!==y||k&&k!==X.timers[v].prop||(X.timers[v].stopped=!0)}var J=Y.defined,Q=Y.getStyle,K=Y.isArray,R=Y.isNumber,D=Y.isObject,A=Y.merge,g=Y.objectEach,f=Y.pick;return{animate:function(y,k,v){var S,M="",w,b;if(!D(v)){var j=arguments;v={duration:j[2],easing:j[3],complete:j[4]}}R(v.duration)||(v.duration=400),v.easing=typeof v.easing=="function"?v.easing:Math[v.easing]||Math.easeInOutSine,v.curAnim=A(k),g(k,function(C,s){et(y,s),b=new X(y,v,s),w=void 0,s==="d"&&K(k.d)?(b.paths=b.initPath(y,y.pathArray,k.d),b.toD=k.d,S=0,w=1):y.attr?S=y.attr(s):(S=parseFloat(Q(y,s))||0,s!=="opacity"&&(M="px")),w||(w=C),typeof w=="string"&&w.match("px")&&(w=w.replace(/px/g,"")),b.run(S,w,M)})},animObject:V,getDeferredAnimation:function(y,k,v){var S=V(k),M=0,w=0;return(v?[v]:y.series).forEach(function(b){b=V(b.options.animation),M=k&&J(k.defer)?S.defer:Math.max(M,b.duration+b.defer),w=Math.min(S.duration,b.duration)}),y.renderer.forExport&&(M=0),{defer:Math.max(0,M-w),duration:Math.min(M,w)}},setAnimation:function(y,k){k.renderer.globalAnimation=f(y,k.options.chart.animation,!0)},stop:et}}),lt(_,"Core/Renderer/HTML/AST.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(X,Y){var V=X.SVG_NS,et=Y.attr,J=Y.createElement,Q=Y.css,K=Y.error,R=Y.isFunction,D=Y.isString,A=Y.objectEach,g=Y.splat,f=(Y=X.win.trustedTypes)&&R(Y.createPolicy)&&Y.createPolicy("highcharts",{createHTML:function(v){return v}}),y=f?f.createHTML(""):"";try{var k=!!new DOMParser().parseFromString(y,"text/html")}catch{k=!1}return R=function(){function v(S){this.nodes=typeof S=="string"?this.parseMarkup(S):S}return v.filterUserAttributes=function(S){return A(S,function(M,w){var b=!0;v.allowedAttributes.indexOf(w)===-1&&(b=!1),["background","dynsrc","href","lowsrc","src"].indexOf(w)!==-1&&(b=D(M)&&v.allowedReferences.some(function(j){return M.indexOf(j)===0})),b||(K(33,!1,void 0,{"Invalid attribute in config":"".concat(w)}),delete S[w]),D(M)&&S[w]&&(S[w]=M.replace(/</g,"&lt;"))}),S},v.parseStyle=function(S){return S.split(";").reduce(function(M,w){w=w.split(":").map(function(j){return j.trim()});var b=w.shift();return b&&w.length&&(M[b.replace(/-([a-z])/g,function(j){return j[1].toUpperCase()})]=w.join(":")),M},{})},v.setElementHTML=function(S,M){S.innerHTML=v.emptyHTML,M&&new v(M).addToDOM(S)},v.prototype.addToDOM=function(S){function M(w,b){var j;
2return g(w).forEach(function(C){var s=C.tagName,d=C.textContent?X.doc.createTextNode(C.textContent):void 0,o=v.bypassHTMLFiltering;if(s)if(s==="#text")var h=d;else if(v.allowedTags.indexOf(s)!==-1||o){s=X.doc.createElementNS(s==="svg"?V:b.namespaceURI||V,s);var t=C.attributes||{};A(C,function(p,i){i!=="tagName"&&i!=="attributes"&&i!=="children"&&i!=="style"&&i!=="textContent"&&(t[i]=p)}),et(s,o?t:v.filterUserAttributes(t)),C.style&&Q(s,C.style),d&&s.appendChild(d),M(C.children||[],s),h=s}else K(33,!1,void 0,{"Invalid tagName in config":s});h&&b.appendChild(h),j=h}),j}return M(this.nodes,S)},v.prototype.parseMarkup=function(S){var M=[];if(S=S.trim().replace(/ style=(["'])/g," data-style=$1"),k)S=new DOMParser().parseFromString(f?f.createHTML(S):S,"text/html");else{var w=J("div");w.innerHTML=S,S={body:w}}var b=function(j,C){var s=j.nodeName.toLowerCase(),d={tagName:s};if(s==="#text"&&(d.textContent=j.textContent||""),s=j.attributes){var o={};[].forEach.call(s,function(t){t.name==="data-style"?d.style=v.parseStyle(t.value):o[t.name]=t.value}),d.attributes=o}if(j.childNodes.length){var h=[];[].forEach.call(j.childNodes,function(t){b(t,h)}),h.length&&(d.children=h)}C.push(d)};return[].forEach.call(S.body.childNodes,function(j){return b(j,M)}),M},v.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),v.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),v.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),v.emptyHTML=y,v.bypassHTMLFiltering=!1,v}(),R}),lt(_,"Core/FormatUtilities.js",[_["Core/Defaults.js"],_["Core/Utilities.js"]],function(X,Y){function V(A,g,f,y){A=+A||0,g=+g;var k=et.lang,v=(A.toString().split(".")[1]||"").split("e")[0].length,S=A.toString().split("e"),M=g;if(g===-1)g=Math.min(v,20);else if(!K(g))g=2;else if(g&&S[1]&&0>S[1]){var w=g+ +S[1];0<=w?(S[0]=(+S[0]).toExponential(w).split("e")[0],g=w):(S[0]=S[0].split(".")[0]||0,A=20>g?(S[0]*Math.pow(10,S[1])).toFixed(g):0,S[1]=0)}w=(Math.abs(S[1]?S[0]:A)+Math.pow(10,-Math.max(g,v)-1)).toFixed(g),v=String(D(w));var b=3<v.length?v.length%3:0;return f=R(f,k.decimalPoint),y=R(y,k.thousandsSep),A=(0>A?"-":"")+(b?v.substr(0,b)+y:""),A=0>+S[1]&&!M?"0":A+v.substr(b).replace(/(\d{3})(?=\d)/g,"$1"+y),g&&(A+=f+w.slice(-g)),S[1]&&+A!=0&&(A+="e"+S[1]),A}var et=X.defaultOptions,J=X.defaultTime,Q=Y.getNestedProperty,K=Y.isNumber,R=Y.pick,D=Y.pInt;return{dateFormat:function(A,g,f){return J.dateFormat(A,g,f)},format:function(A,g,f){var y="{",k=!1,v=/f$/,S=/\.([0-9])/,M=et.lang,w=f&&f.time||J;f=f&&f.numberFormatter||V;for(var b=[];A;){var j=A.indexOf(y);if(j===-1)break;var C=A.slice(0,j);if(k){if(C=C.split(":"),y=Q(C.shift()||"",g),C.length&&typeof y=="number")if(C=C.join(":"),v.test(C)){var s=parseInt((C.match(S)||["","-1"])[1],10);y!==null&&(y=f(y,s,M.decimalPoint,-1<C.indexOf(",")?M.thousandsSep:""))}else y=w.dateFormat(C,y);b.push(y)}else b.push(C);A=A.slice(j+1),y=(k=!k)?"}":"{"}return b.push(A),b.join("")},numberFormat:V}}),lt(_,"Core/Renderer/RendererUtilities.js",[_["Core/Utilities.js"]],function(X){var Y=X.clamp,V=X.pick,et=X.stableSort,J;return function(Q){function K(R,D,A){var g=R,f=g.reducedLen||D,y=function(b,j){return(j.rank||0)-(b.rank||0)},k=function(b,j){return b.target-j.target},v,S=!0,M=[],w=0;for(v=R.length;v--;)w+=R[v].size;if(w>f){for(et(R,y),w=v=0;w<=f;)w+=R[v].size,v++;M=R.splice(v-1,R.length)}for(et(R,k),R=R.map(function(b){return{size:b.size,targets:[b.target],align:V(b.align,.5)}});S;){for(v=R.length;v--;)f=R[v],y=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Y(y-f.size*f.align,0,D-f.size);for(v=R.length,S=!1;v--;)0<v&&R[v-1].pos+R[v-1].size>R[v].pos&&(R[v-1].size+=R[v].size,R[v-1].targets=R[v-1].targets.concat(R[v].targets),R[v-1].align=.5,R[v-1].pos+R[v-1].size>D&&(R[v-1].pos=D-R[v-1].size),R.splice(v,1),S=!0)}return g.push.apply(g,M),v=0,R.some(function(b){var j=0;return(b.targets||[]).some(function(){return g[v].pos=b.pos+j,typeof A<"u"&&Math.abs(g[v].pos-g[v].target)>
2A?(g.slice(0,v+1).forEach(function(C){return delete C.pos}),g.reducedLen=(g.reducedLen||D)-.1*D,g.reducedLen>.1*D&&K(g,D,A),!0):(j+=g[v].size,v++,!1)})}),et(g,k),g}Q.distribute=K}(J||(J={})),J}),lt(_,"Core/Renderer/SVG/SVGElement.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(X,Y,V,et){var J=X.animate,Q=X.animObject,K=X.stop,R=V.deg2rad,D=V.doc,A=V.svg,g=V.SVG_NS,f=V.win,y=et.addEvent,k=et.attr,v=et.createElement,S=et.css,M=et.defined,w=et.erase,b=et.extend,j=et.fireEvent,C=et.isArray,s=et.isFunction,d=et.isString,o=et.merge,h=et.objectEach,t=et.pick,p=et.pInt,i=et.syncTimeout,r=et.uniqueKey;return X=function(){function c(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=g,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return c.prototype._defaultGetter=function(a){return a=t(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0),/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a)),a},c.prototype._defaultSetter=function(a,m,P){P.setAttribute(m,a)},c.prototype.add=function(a){var m=this.renderer,P=this.element;if(a&&(this.parentGroup=a),typeof this.textStr<"u"&&this.element.nodeName==="text"&&m.buildText(this),this.added=!0,!a||a.handleZ||this.zIndex)var G=this.zIndexSetter();return G||(a?a.element:m.box).appendChild(P),this.onAdd&&this.onAdd(),this},c.prototype.addClass=function(a,m){var P=m?"":this.attr("class")||"";return a=(a||"").split(/ /g).reduce(function(G,I){return P.indexOf(I)===-1&&G.push(I),G},P?[P]:[]).join(" "),a!==P&&this.attr("class",a),this},c.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},c.prototype.align=function(a,m,P){var G={},I=this.renderer,e=I.alignedObjects,l,T,E;a?(this.alignOptions=a,this.alignByTranslate=m,(!P||d(P))&&(this.alignTo=l=P||"renderer",w(e,this),e.push(this),P=void 0)):(a=this.alignOptions,m=this.alignByTranslate,l=this.alignTo),P=t(P,I[l],l==="scrollablePlotBox"?I.plotBox:void 0,I),l=a.align;var L=a.verticalAlign;return I=(P.x||0)+(a.x||0),e=(P.y||0)+(a.y||0),l==="right"?T=1:l==="center"&&(T=2),T&&(I+=(P.width-(a.width||0))/T),G[m?"translateX":"x"]=Math.round(I),L==="bottom"?E=1:L==="middle"&&(E=2),E&&(e+=(P.height-(a.height||0))/E),G[m?"translateY":"y"]=Math.round(e),this[this.placed?"animate":"attr"](G),this.placed=!0,this.alignAttr=G,this},c.prototype.alignSetter=function(a){var m={left:"start",center:"middle",right:"end"};m[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",m[a]))},c.prototype.animate=function(a,m,P){var G=this,I=Q(t(m,this.renderer.globalAnimation,!0));return m=I.defer,t(D.hidden,D.msHidden,D.webkitHidden,!1)&&(I.duration=0),I.duration!==0?(P&&(I.complete=P),i(function(){G.element&&J(G,a,I)},m)):(this.attr(a,void 0,P||I.complete),h(a,function(e,l){I.step&&I.step.call(this,e,{prop:l,pos:1,elem:this})},this)),this},c.prototype.applyTextOutline=function(a){var m=this.element;a.indexOf("contrast")!==-1&&(a=a.replace(/contrast/g,this.renderer.getContrast(m.style.fill)));var P=a.split(" ");if(a=P[P.length-1],(P=P[0])&&P!=="none"&&V.svg){this.fakeTS=!0,P=P.replace(/(^[\d\.]+)(.*?)$/g,function(e,l,T){return 2*Number(l)+T}),this.removeTextOutline();var G=D.createElementNS(g,"tspan");k(G,{class:"highcharts-text-outline",fill:a,stroke:a,"stroke-width":P,"stroke-linejoin":"round"}),a=m.querySelector("textPath")||m,[].forEach.call(a.childNodes,function(e){var l=e.cloneNode(!0);l.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(T){return l.removeAttribute(T)}),G.appendChild(l)});var I=0;[].forEach.call(a.querySelectorAll("text tspan"),function(e){I+=Number(e.getAttribute("dy"))}),P=D.createElementNS(g,"tspan"),P.textContent="\u200B",k(P,{x:Number(m.getAttribute("x")),dy:-I}),G.appendChild(P),a.insertBefore(G,a.firstChild)}},c.prototype.attr=function(a,m,P,G){var I=this.element,e=this.symbolCustomAttribs,l,T=this,E,L;if(typeof a=="string"&&typeof m<"u"){var n=a;a={},a[n]=m}return typeof a=="string"?T=(this[a+"Getter"]||this._defaultGetter).call(this,a,I):(h(a,function(x,u){E=!1,G||K(this,u),this.symbolName&&e.indexOf(u)!==-1&&(l||(this.symbolAttr(a),l=!0),E=!0),!this.rotation||u!=="x"&&u!=="y"||(this.doTransform=!0),E||(L=this[u+"Setter"]||this._defaultSetter,L.call(this,x,u,I),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(u)&&this.updateShadows(u,x,L))},this),this.afterSetters()),P&&P.call(this),T},c.prototype.clip=function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},c.prototype.crisp=function(a,m){m=m||a.strokeWidth||0;var P=Math.round(m)%2/2;return a.x=Math.floor(a.x||this.x||0)+P,a.y=Math.floor(a.y||this.y||0)+P,a.width=Math.floor((a.width||this.width||0)-2*P),a.height=Math.floor((a.height||this.height||0)-2*P),M(a.strokeWidth)&&(a.strokeWidth=m),a},c.prototype.complexColor=function(a,m,P){var G=this.renderer,I,e,l,T,E,L,n,x,u,z,O=[],B;j(this.renderer,"complexColor",{args:arguments},function(){if(a.radialGradient?e="radialGradient":a.linearGradient&&(e="linearGradient"),e){if(l=a[e],E=G.gradients,L=a.stops,u=P.radialReference,C(l)&&(a[e]=l={x1:l[0],y1:l[1],x2:l[2],y2:l[3],gradientUnits:"userSpaceOnUse"}),e==="radialGradient"&&u&&!M(l.gradientUnits)&&(T=l,l=o(l,G.getRadialAttr(u,T),{gradientUnits:"userSpaceOnUse"})),h(l,function(F,U){U!=="id"&&O.push(U,F)}),h(L,function(F){O.push(F)}),O=O.join(","),E[O])z=E[O].attr("id");else{l.id=z=r();var W=E[O]=G.createElement(e).attr(l).add(G.defs);
2W.radAttr=T,W.stops=[],L.forEach(function(F){F[1].indexOf("rgba")===0?(I=Y.parse(F[1]),n=I.get("rgb"),x=I.get("a")):(n=F[1],x=1),F=G.createElement("stop").attr({offset:F[0],"stop-color":n,"stop-opacity":x}).add(W),W.stops.push(F)})}B="url("+G.url+"#"+z+")",P.setAttribute(m,B),P.gradient=O,a.toString=function(){return B}}})},c.prototype.css=function(a){var m=this.styles,P={},G=this.element,I=!m;if(a.color&&(a.fill=a.color),m&&h(a,function(T,E){m&&m[E]!==T&&(P[E]=T,I=!0)}),I){if(m&&(a=b(m,P)),a.width===null||a.width==="auto")delete this.textWidth;else if(G.nodeName.toLowerCase()==="text"&&a.width)var e=this.textWidth=p(a.width);this.styles=a,e&&!A&&this.renderer.forExport&&delete a.width;var l=o(a);G.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(T){return l&&delete l[T]}),S(G,l),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),a.textOutline&&this.applyTextOutline(a.textOutline))}return this},c.prototype.dashstyleSetter=function(a){var m=this["stroke-width"];if(m==="inherit"&&(m=1),a=a&&a.toLowerCase()){var P=a.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(a=P.length;a--;)P[a]=""+p(P[a])*t(m,NaN);a=P.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",a)}},c.prototype.destroy=function(){var a=this,m=a.element||{},P=a.renderer,G=m.ownerSVGElement,I=P.isSVG&&m.nodeName==="SPAN"&&a.parentGroup||void 0;if(m.onclick=m.onmouseout=m.onmouseover=m.onmousemove=m.point=null,K(a),a.clipPath&&G){var e=a.clipPath;[].forEach.call(G.querySelectorAll("[clip-path],[CLIP-PATH]"),function(l){-1<l.getAttribute("clip-path").indexOf(e.element.id)&&l.removeAttribute("clip-path")}),a.clipPath=e.destroy()}if(a.stops){for(G=0;G<a.stops.length;G++)a.stops[G].destroy();a.stops.length=0,a.stops=void 0}for(a.safeRemoveChild(m),P.styledMode||a.destroyShadows();I&&I.div&&I.div.childNodes.length===0;)m=I.parentGroup,a.safeRemoveChild(I.div),delete I.div,I=m;a.alignTo&&w(P.alignedObjects,a),h(a,function(l,T){a[T]&&a[T].parentGroup===a&&a[T].destroy&&a[T].destroy(),delete a[T]})},c.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this),this.shadows=void 0},c.prototype.dSetter=function(a,m,P){C(a)&&(typeof a[0]=="string"&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce(function(G,I,e){return I&&I.join?(e?G+" ":"")+I.join(" "):(I||"").toString()},"")),/(NaN| {2}|^$)/.test(a)&&(a="M 0 0"),this[m]!==a&&(P.setAttribute(m,a),this[m]=a)},c.prototype.fadeOut=function(a){var m=this;m.animate({opacity:0}
2,{duration:t(a,150),complete:function(){m.hide()}})},c.prototype.fillSetter=function(a,m,P){typeof a=="string"?P.setAttribute(m,a):a&&this.complexColor(a,m,P)},c.prototype.getBBox=function(a,m){var P=this.alignValue,G=this.element,I=this.renderer,e=this.styles,l=this.textStr,T=I.cache,E=I.cacheKeys,L=G.namespaceURI===this.SVG_NS;m=t(m,this.rotation,0);var n=I.styledMode?G&&c.prototype.getStyle.call(G,"font-size"):e&&e.fontSize,x;if(M(l)){var u=l.toString();u.indexOf("<")===-1&&(u=u.replace(/[0-9]/g,"0")),u+=["",m,n,this.textWidth,P,e&&e.textOverflow,e&&e.fontWeight].join()}if(u&&!a&&(x=T[u]),!x){if(L||I.forExport){try{var z=this.fakeTS&&function(B){var W=G.querySelector(".highcharts-text-outline");W&&S(W,{display:B})};s(z)&&z("none"),x=G.getBBox?b({},G.getBBox()):{width:G.offsetWidth,height:G.offsetHeight,x:0,y:0},s(z)&&z("")}catch{}(!x||0>x.width)&&(x={x:0,y:0,width:0,height:0})}else x=this.htmlGetBBox();if(I.isSVG&&(I=x.width,a=x.height,L&&(x.height=a={"11px,17":14,"13px,20":16}[""+(n||"")+",".concat(Math.round(a))]||a),m)){L=Number(G.getAttribute("y")||0)-x.y,P={right:1,center:.5}[P||0]||0,e=m*R,n=(m-90)*R;var O=I*Math.cos(e);m=I*Math.sin(e),z=Math.cos(n),e=Math.sin(n),I=x.x+P*(I-O)+L*z,n=I+O,z=n-a*z,O=z-O,L=x.y+L-P*m+L*e,P=L+m,a=P-a*e,m=a-m,x.x=Math.min(I,n,z,O),x.y=Math.min(L,P,a,m),x.width=Math.max(I,n,z,O)-x.x,x.height=Math.max(L,P,a,m)-x.y}if(u&&(l===""||0<x.height)){for(;250<E.length;)delete T[E.shift()];T[u]||E.push(u),T[u]=x}}return x},c.prototype.getStyle=function(a){return f.getComputedStyle(this.element||this,"").getPropertyValue(a)},c.prototype.hasClass=function(a){return(""+this.attr("class")).split(" ").indexOf(a)!==-1},c.prototype.hide=function(){return this.attr({visibility:"hidden"})},c.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},c.prototype.init=function(a,m){this.element=m==="span"?v(m):D.createElementNS(this.SVG_NS,m),this.renderer=a,j(this,"afterInit")},c.prototype.on=function(a,m){var P=this.onEvents;return P[a]&&P[a](),P[a]=y(this.element,a,m),this},c.prototype.opacitySetter=function(a,m,P){this.opacity=a=Number(Number(a).toFixed(3)),P.setAttribute(m,a)},c.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(d(a)?new RegExp("(^| )".concat(a,"( |$)")):a," ").replace(/ +/g," ").trim())},c.prototype.removeTextOutline=function(){var a=this.element.querySelector("tspan.highcharts-text-outline");a&&this.safeRemoveChild(a)},c.prototype.safeRemoveChild=function(a){var m=a.parentNode;m&&m.removeChild(a)},c.prototype.setRadialReference=function(a){var m=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=a,m&&m.radAttr&&m.animate(this.renderer.getRadialAttr(a,m.radAttr)),this},c.prototype.setTextPath=function(a,m){var P=this;m=o(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},m);var G=this.renderer.url,I=this.text||this,e=I.textPath,l=m.attributes,T=m.enabled;return a=a||e&&e.path,e&&e.undo(),a&&T?(m=y(I,"afterModifyTree",function(E){if(a&&T){var L=a.attr("id");L||a.attr("id",L=r());var n={x:0,y:0};M(l.dx)&&(n.dx=l.dx,delete l.dx),M(l.dy)&&(n.dy=l.dy,delete l.dy),I.attr(n),P.attr({transform:""}),P.box&&(P.box=P.box.destroy()),n=E.nodes.slice(0),E.nodes.length=0,E.nodes[0]={tagName:"textPath",attributes:b(l,{"text-anchor":l.textAnchor,href:""+G+"#".concat(L)}),children:n}}}),I.textPath={path:a,undo:m}):(I.attr({dx:0,dy:0}),delete I.textPath),this.added&&(I.textCache="",this.renderer.buildText(I)),this},c.prototype.shadow=function(a,m,P){var G=[],I=this.element,e=this.oldShadowOptions,l=this.parentGroup,T=l&&l.rotation===90;l={color:"#000000",offsetX:T?-1:1,offsetY:T?-1:1,opacity:.15,width:3};var E=!1,L;if(a===!0?L=l:typeof a=="object"&&(L=b(l,a)),L&&(L&&e&&h(L,function(z,O){z!==e[O]&&(E=!0)}),E&&this.destroyShadows(),this.oldShadowOptions=L),!L)this.destroyShadows();else if(!this.shadows){l=L.opacity/L.width;var n=T?"translate(".concat(L.offsetY,", ").concat(L.offsetX,")"):"translate(".concat(L.offsetX,", ").concat(L.offsetY,")");for(T=1;T<=L.width;T++){var x=I.cloneNode(!1),u=2*L.width+1-2*T;k(x,{stroke:a.color||"#000000","stroke-opacity":l*T,"stroke-width":u,transform:n,fill:"none"}),x.setAttribute("class",(x.getAttribute("class")||"")+" highcharts-shadow"),P&&(k(x,"height",Math.max(k(x,"height")-u,0)),x.cutHeight=u),m?m.element.appendChild(x):I.parentNode&&I.parentNode.insertBefore(x,I),G.push(x)}this.shadows=G}return this},c.prototype.show=function(a){return a===void 0&&(a=!0),this.attr({visibility:a?"inherit":"visible"})},c.prototype["stroke-widthSetter"]=function(a,m,P){this[m]=a,P.setAttribute(m,a)},c.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width"),m=0;if(a.indexOf("px")===a.length-2)m=p(a);else if(a!==""){var P=D.createElementNS(g,"rect");k(P,{width:a,"stroke-width":0}),this.element.parentNode.appendChild(P),m=P.getBBox().width,P.parentNode.removeChild(P)}return m},c.prototype.symbolAttr=function(a){var m=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(P){m[P]=t(a[P],m[P])}),m.attr({d:m.renderer.symbols[m.symbolName](m.x,m.y,m.width,m.height,m)})},c.prototype.textSetter=function(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))},c.prototype.titleSetter=function(a){var m=this.element,P=m.getElementsByTagName("title")[0]||D.createElementNS(this.SVG_NS,"title");m.insertBefore?m.insertBefore(P,m.firstChild):m.appendChild(P),P.textContent=String(t(a,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},c.prototype.toFront=function(){var a=this.element;return a.parentNode.appendChild(a),this},c.prototype.translate=function(a,m){return this.attr({translateX:a,translateY:m})},c.prototype.updateShadows=function(a,m,P){var G=this.shadows;if(G)for(var I=G.length;I--;)P.call(G[I],a==="height"?Math.max(m-(G[I].cutHeight||0),0):a==="d"?this.d:m,a,G[I])},c.prototype.updateTransform=function(){var a=this.element,m=this.matrix,P=this.rotation;P=P===void 0?0:P;var G=this.scaleX,I=this.scaleY,e=this.translateX,l=this.translateY;e=["translate("+(e===void 0?0:e)+","+(l===void 0?0:l)+")"],M(m)&&e.push("matrix("+m.join(",")+")"),P&&e.push("rotate("+P+" "+t(this.rotationOriginX,a.getAttribute("x"),0)+" "+t(this.rotationOriginY,a.getAttribute("y")||0)+")"),(M(G)||M(I))&&e.push("scale("+t(G,1)+" "+t(I,1)+")"),e.length&&!(this.text||this).textPath&&a.setAttribute("transform",e.join(" "))},c.prototype.visibilitySetter=function(a,m,P){a==="inherit"?P.removeAttribute(m):this[m]!==a&&P.setAttribute(m,a),this[m]=a},c.prototype.xGetter=function(a){return this.element.nodeName==="circle"&&(a==="x"?a="cx":a==="y"&&(a="cy")),this._defaultGetter(a)},c.prototype.zIndexSetter=function(a,m){var P=this.renderer,G=this.parentGroup,I=(G||P).element||P.box,e=this.element;P=I===P.box;var l=!1,T=this.added,E;if(M(a)?(e.setAttribute("data-z-index",a),a=+a,this[m]===a&&(T=!1)):M(this[m])&&e.removeAttribute("data-z-index"),this[m]=a,T){for((a=this.zIndex)&&G&&(G.handleZ=!0),m=I.childNodes,E=m.length-1;0<=E&&!l;E--){G=m[E],T=G.getAttribute("data-z-index");var L=!M(T);G!==e&&(0>a&&L&&!P&&!E?(I.insertBefore(e,m[E]),l=!0):(p(T)<=a||L&&(!M(a)||0<=a))&&(I.insertBefore(e,m[E+1]||null),l=!0))}l||(I.insertBefore(e,m[P?3:0]||null),l=!0)}return l},c}(),X.prototype.strokeSetter=X.prototype.fillSetter,X.prototype.yGetter=X.prototype.xGetter,X.prototype.matrixSetter=X.prototype.rotationOriginXSetter=X.prototype.rotationOriginYSetter=X.prototype.rotationSetter=X.prototype.scaleXSetter=X.prototype.scaleYSetter=X.prototype.translateXSetter=X.prototype.translateYSetter=X.prototype.verticalAlignSetter=function(c,a){this[a]=c,this.doTransform=!0},X}),lt(_,"Core/Renderer/RendererRegistry.js",[_["Core/Globals.js"]],function(X){var Y;return function(V){V.rendererTypes={};var et;V.getRendererType=function(J){return J===void 0&&(J=et),V.rendererTypes[J]||V.rendererTypes[et]},V.registerRendererType=function(J,Q,K){V.rendererTypes[J]=Q,(!et||K)&&(et=J,X.Renderer=Q)}}(Y||(Y={})),Y}),lt(_,"Core/Renderer/SVG/SVGLabel.js",[_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(X,Y){var V=this&&this.__extends||function(){var A=function(g,f){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,k){y.__proto__=k}||function(y,k){for(var v in k)k.hasOwnProperty(v)&&(y[v]=k[v])},A(g,f)};return function(g,f){function y(){this.constructor=g}
2A(g,f),g.prototype=f===null?Object.create(f):(y.prototype=f.prototype,new y)}}(),et=Y.defined,J=Y.extend,Q=Y.isNumber,K=Y.merge,R=Y.pick,D=Y.removeEvent;return function(A){function g(f,y,k,v,S,M,w,b,j,C){var s=A.call(this)||this;s.paddingLeftSetter=s.paddingSetter,s.paddingRightSetter=s.paddingSetter,s.init(f,"g"),s.textStr=y,s.x=k,s.y=v,s.anchorX=M,s.anchorY=w,s.baseline=j,s.className=C,s.addClass(C==="button"?"highcharts-no-tooltip":"highcharts-label"),C&&s.addClass("highcharts-"+C),s.text=f.text(void 0,0,0,b).attr({zIndex:1});var d;return typeof S=="string"&&((d=/^url\((.*?)\)$/.test(S))||s.renderer.symbols[S])&&(s.symbolKey=S),s.bBox=g.emptyBBox,s.padding=3,s.baselineOffset=0,s.needsBox=f.styledMode||d,s.deferredAttr={},s.alignFactor=0,s}return V(g,A),g.prototype.alignSetter=function(f){f={left:0,center:.5,right:1}[f],f!==this.alignFactor&&(this.alignFactor=f,this.bBox&&Q(this.xSetting)&&this.attr({x:this.xSetting}))},g.prototype.anchorXSetter=function(f,y){this.anchorX=f,this.boxAttr(y,Math.round(f)-this.getCrispAdjust()-this.xSetting)},g.prototype.anchorYSetter=function(f,y){this.anchorY=f,this.boxAttr(y,f-this.ySetting)},g.prototype.boxAttr=function(f,y){this.box?this.box.attr(f,y):this.deferredAttr[f]=y},g.prototype.css=function(f){if(f){var y={};f=K(f),g.textProps.forEach(function(k){typeof f[k]<"u"&&(y[k]=f[k],delete f[k])}),this.text.css(y),"fontSize"in y||"fontWeight"in y?this.updateTextPadding():("width"in y||"textOverflow"in y)&&this.updateBoxSize()}return X.prototype.css.call(this,f)},g.prototype.destroy=function(){D(this.element,"mouseenter"),D(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),X.prototype.destroy.call(this)},g.prototype.fillSetter=function(f,y){f&&(this.needsBox=!0),this.fill=f,this.boxAttr(y,f)},g.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var f=this.padding,y=R(this.paddingLeft,f);return{width:this.width,height:this.height,x:this.bBox.x-y,y:this.bBox.y-f}},g.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},g.prototype.heightSetter=function(f){this.heightSetting=f},g.prototype.onAdd=function(){this.text.add(this),this.attr({text:R(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&et(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},g.prototype.paddingSetter=function(f,y){Q(f)?f!==this[y]&&(this[y]=f,this.updateTextPadding()):this[y]=void 0},g.prototype.rSetter=function(f,y){this.boxAttr(y,f)},g.prototype.shadow=function(f){return f&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(f)),this},g.prototype.strokeSetter=function(f,y){this.stroke=f,this.boxAttr(y,f)},g.prototype["stroke-widthSetter"]=function(f,y){f&&(this.needsBox=!0),this["stroke-width"]=f,this.boxAttr(y,f)},g.prototype["text-alignSetter"]=function(f){this.textAlign=f},g.prototype.textSetter=function(f){typeof f<"u"&&this.text.attr({text:f}),this.updateTextPadding()},g.prototype.updateBoxSize=function(){var f=this.text,y=f.element.style,k={},v=this.padding,S=this.bBox=Q(this.widthSetting)&&Q(this.heightSetting)&&!this.textAlign||!et(f.textStr)?g.emptyBBox:f.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||S.height||0)+2*v,y=this.renderer.fontMetrics(y&&y.fontSize,f),this.baselineOffset=v+Math.min((this.text.firstLineMetrics||y).b,S.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-y.h)/2),this.needsBox&&!f.textPath&&(this.box||(f=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),f.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),f.add(this)),f=this.getCrispAdjust(),k.x=f,k.y=(this.baseline?-this.baselineOffset:0)+f,k.width=Math.round(this.width),k.height=Math.round(this.height),this.box.attr(J(k,this.deferredAttr)),this.deferredAttr={})},g.prototype.updateTextPadding=function(){var f=this.text;if(!f.textPath){this.updateBoxSize();var y=this.baseline?0:this.baselineOffset,k=R(this.paddingLeft,this.padding);et(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(k+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(k!==f.x||y!==f.y)&&(f.attr("x",k),f.hasBoxWidthChanged&&(this.bBox=f.getBBox(!0)),typeof y<"u"&&f.attr("y",y)),f.x=k,f.y=y}},g.prototype.widthSetter=function(f){this.widthSetting=Q(f)?f:void 0},g.prototype.getPaddedWidth=function(){var f=this.padding,y=R(this.paddingLeft,f);return f=R(this.paddingRight,f),(this.widthSetting||this.bBox.width||0)+y+f},g.prototype.xSetter=function(f){this.x=f,this.alignFactor&&(f-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(f),this.attr("translateX",this.xSetting)},g.prototype.ySetter=function(f){this.ySetting=this.y=Math.round(f),this.attr("translateY",this.ySetting)},g.emptyBBox={width:0,height:0,x:0,y:0},g.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),g}(X)}),lt(_,"Core/Renderer/SVG/Symbols.js",[_["Core/Utilities.js"]],function(X){function Y(R,D,A,g,f){var y=[];if(f){var k=f.start||0,v=K(f.r,A);A=K(f.r,g||A);var S=(f.end||0)-.001;g=f.innerR;var M=K(f.open,.001>Math.abs((f.end||0)-k-2*Math.PI)),w=Math.cos(k),b=Math.sin(k),j=Math.cos(S),C=Math.sin(S);k=K(f.longArc,.001>S-k-Math.PI?0:1),y.push(["M",R+v*w,D+A*b],["A",v,A,0,k,K(f.clockwise,1),R+v*j,D+A*C]),J(g)&&y.push(M?["M",R+g*j,D+g*C]:["L",R+g*j,D+g*C],["A",g,g,0,k,J(f.clockwise)?1-f.clockwise:0,R+g*w,D+g*b]),M||y.push(["Z"])}return y}function V(R,D,A,g,f){return f&&f.r?et(R,D,A,g,f):[["M",R,D],["L",R+A,D],["L",R+A,D+g],["L",R,D+g],["Z"]]}function et(R,D,A,g,f){return f=f&&f.r||0,[["M",R+f,D],["L",R+A-f,D],["C",R+A,D,R+A,D,R+A,D+f],["L",R+A,D+g-f],["C",R+A,D+g,R+A,D+g,R+A-f,D+g],["L",R+f,D+g],["C",R,D+g,R,D+g,R,D+g-f],["L",R,D+f],["C",R,D,R,D,R+f,D]]}var J=X.defined,Q=X.isNumber,K=X.pick;return{arc:Y,callout:function(R,D,A,g,f){var y=Math.min(f&&f.r||0,A,g),k=y+6,v=f&&f.anchorX;f=f&&f.anchorY||0;
2var S=et(R,D,A,g,{r:y});return Q(v)&&(R+v>=A?f>D+k&&f<D+g-k?S.splice(3,1,["L",R+A,f-6],["L",R+A+6,f],["L",R+A,f+6],["L",R+A,D+g-y]):S.splice(3,1,["L",R+A,g/2],["L",v,f],["L",R+A,g/2],["L",R+A,D+g-y]):0>=R+v?f>D+k&&f<D+g-k?S.splice(7,1,["L",R,f+6],["L",R-6,f],["L",R,f-6],["L",R,D+y]):S.splice(7,1,["L",R,g/2],["L",v,f],["L",R,g/2],["L",R,D+y]):f&&f>g&&v>R+k&&v<R+A-k?S.splice(5,1,["L",v+6,D+g],["L",v,D+g+6],["L",v-6,D+g],["L",R+y,D+g]):f&&0>f&&v>R+k&&v<R+A-k&&S.splice(1,1,["L",v-6,D],["L",v,D-6],["L",v+6,D],["L",A-y,D])),S},circle:function(R,D,A,g){return Y(R+A/2,D+g/2,A/2,g/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(R,D,A,g){return[["M",R+A/2,D],["L",R+A,D+g/2],["L",R+A/2,D+g],["L",R,D+g/2],["Z"]]},rect:V,roundedRect:et,square:V,triangle:function(R,D,A,g){return[["M",R+A/2,D],["L",R+A,D+g],["L",R,D+g],["Z"]]},"triangle-down":function(R,D,A,g){return[["M",R,D],["L",R+A,D],["L",R+A/2,D+g],["Z"]]}}}),lt(_,"Core/Renderer/SVG/TextBuilder.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(X,Y,V){var et=Y.doc,J=Y.SVG_NS,Q=Y.win,K=V.attr,R=V.extend,D=V.fireEvent,A=V.isString,g=V.objectEach,f=V.pick;return function(){function y(k){var v=k.styles;this.renderer=k.renderer,this.svgElement=k,this.width=k.textWidth,this.textLineHeight=v&&v.lineHeight,this.textOutline=v&&v.textOutline,this.ellipsis=!(!v||v.textOverflow!=="ellipsis"),this.noWrap=!(!v||v.whiteSpace!=="nowrap"),this.fontSize=v&&v.fontSize}return y.prototype.buildSVG=function(){var k=this.svgElement,v=k.element,S=k.renderer,M=f(k.textStr,"").toString(),w=M.indexOf("<")!==-1,b=v.childNodes;S=this.width&&!k.added&&S.box;var j=/<br.*?>/g,C=[M,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(C!==k.textCache){for(k.textCache=C,delete k.actualWidth,C=b.length;C--;)v.removeChild(b[C]);w||this.ellipsis||this.width||k.textPath||M.indexOf(" ")!==-1&&(!this.noWrap||j.test(M))?M!==""&&(S&&S.appendChild(v),M=new X(M),this.modifyTree(M.nodes),M.addToDOM(v),this.modifyDOM(),this.ellipsis&&(v.textContent||"").indexOf("\u2026")!==-1&&k.attr("title",this.unescapeEntities(k.textStr||"",["&lt;","&gt;"])),S&&S.removeChild(v)):v.appendChild(et.createTextNode(this.unescapeEntities(M))),A(this.textOutline)&&k.applyTextOutline&&k.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var k=this,v=this.svgElement,S=K(v.element,"x");v.firstLineMetrics=void 0;for(var M;(M=v.element.firstChild)&&/^[\s\u200B]*$/.test(M.textContent||" ");)v.element.removeChild(M);[].forEach.call(v.element.querySelectorAll("tspan.highcharts-br"),function(C,s){C.nextSibling&&C.previousSibling&&(s===0&&C.previousSibling.nodeType===1&&(v.firstLineMetrics=v.renderer.fontMetrics(void 0,C.previousSibling)),K(C,{dy:k.getLineHeight(C.nextSibling),x:S}))});var w=this.width||0;if(w){var b=function(C,s){var d=C.textContent||"",o=d.replace(/([^\^])-/g,"$1- ").split(" "),h=!k.noWrap&&(1<o.length||1<v.element.childNodes.length),t=k.getLineHeight(s),p=0,i=v.actualWidth;if(k.ellipsis)d&&k.truncate(C,d,void 0,0,Math.max(0,w-parseInt(k.fontSize||12,10)),function(r,c){return r.substring(0,c)+"\u2026"});else if(h){for(d=[],h=[];s.firstChild&&s.firstChild!==C;)h.push(s.firstChild),s.removeChild(s.firstChild);for(;o.length;)o.length&&!k.noWrap&&0<p&&(d.push(C.textContent||""),C.textContent=o.join(" ").replace(/- /g,"-")),k.truncate(C,void 0,o,p===0&&i||0,w,function(r,c){return o.slice(0,c).join(" ").replace(/- /g,"-")}),i=v.actualWidth,p++;h.forEach(function(r){s.insertBefore(r,C)}),d.forEach(function(r){s.insertBefore(et.createTextNode(r),C),r=et.createElementNS(J,"tspan"),r.textContent="\u200B",K(r,{dy:t,x:S}),s.insertBefore(r,C)})}},j=function(C){[].slice.call(C.childNodes).forEach(function(s){s.nodeType===Q.Node.TEXT_NODE?b(s,C):(s.className.baseVal.indexOf("highcharts-br")!==-1&&(v.actualWidth=0),j(s))})};j(v.element)}},y.prototype.getLineHeight=function(k){var v;return k=k.nodeType===Q.Node.TEXT_NODE?k.parentElement:k,this.renderer.styledMode||(v=k&&/(px|em)$/.test(k.style.fontSize)?k.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(v,k||this.svgElement.element).h},y.prototype.modifyTree=function(k){var v=this,S=function(M,w){var b=M.attributes;b=b===void 0?{}:b;var j=M.children,C=M.style;C=C===void 0?{}:C;var s=M.tagName,d=v.renderer.styledMode;s==="b"||s==="strong"?d?b.class="highcharts-strong":C.fontWeight="bold":(s==="i"||s==="em")&&(d?b.class="highcharts-emphasized":C.fontStyle="italic"),C&&C.color&&(C.fill=C.color),s==="br"?(b.class="highcharts-br",M.textContent="\u200B",(w=k[w+1]
2)&&w.textContent&&(w.textContent=w.textContent.replace(/^ +/gm,""))):s==="a"&&j&&j.some(function(o){return o.tagName==="#text"})&&(M.children=[{children:j,tagName:"tspan"}]),s!=="#text"&&s!=="a"&&(M.tagName="tspan"),R(M,{attributes:b,style:C}),j&&j.filter(function(o){return o.tagName!=="#text"}).forEach(S)};k.forEach(S),D(this.svgElement,"afterModifyTree",{nodes:k})},y.prototype.truncate=function(k,v,S,M,w,b){var j=this.svgElement,C=j.renderer,s=j.rotation,d=[],o=S?1:0,h=(v||S||"").length,t=h,p,i=function(c,a){a=a||c;var m=k.parentNode;if(m&&typeof d[a]>"u")if(m.getSubStringLength)try{d[a]=M+m.getSubStringLength(0,S?a+1:a)}catch{}else C.getSpanWidth&&(k.textContent=b(v||S,c),d[a]=M+C.getSpanWidth(j,k));return d[a]};j.rotation=0;var r=i(k.textContent.length);if(M+r>w){for(;o<=h;)t=Math.ceil((o+h)/2),S&&(p=b(S,t)),r=i(t,p&&p.length-1),o===h?o=h+1:r>w?h=t-1:o=t;h===0?k.textContent="":v&&h===v.length-1||(k.textContent=p||b(v||S,t))}S&&S.splice(0,t),j.actualWidth=r,j.rotation=s},y.prototype.unescapeEntities=function(k,v){return g(this.renderer.escapes,function(S,M){v&&v.indexOf(S)!==-1||(k=k.toString().replace(new RegExp(S,"g"),M))}),k},y}()}),lt(_,"Core/Renderer/SVG/SVGRenderer.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGLabel.js"],_["Core/Renderer/SVG/Symbols.js"],_["Core/Renderer/SVG/TextBuilder.js"],_["Core/Utilities.js"]],function(X,Y,V,et,J,Q,K,R,D){var A=V.charts,g=V.deg2rad,f=V.doc,y=V.isFirefox,k=V.isMS,v=V.isWebKit,S=V.noop,M=V.SVG_NS,w=V.symbolSizes,b=V.win,j=D.addEvent,C=D.attr,s=D.createElement,d=D.css,o=D.defined,h=D.destroyObjectProperties,t=D.extend,p=D.isArray,i=D.isNumber,r=D.isObject,c=D.isString,a=D.merge,m=D.pick,P=D.pInt,G=D.uniqueKey,I;return V=function(){function e(l,T,E,L,n,x,u){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(l,T,E,L,n,x,u)}return e.prototype.init=function(l,T,E,L,n,x,u){var z=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),O=z.element;u||z.css(this.getStyle(L)),l.appendChild(O),C(l,"dir","ltr"),l.innerHTML.indexOf("xmlns")===-1&&C(O,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=O,this.boxWrapper=z,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(f.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=x,this.forExport=n,this.styledMode=u,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(T,E,!1);var B;y&&l.getBoundingClientRect&&(T=function(){d(l,{left:0,top:0}),B=l.getBoundingClientRect(),d(l,{left:Math.ceil(B.left)-B.left+"px",top:Math.ceil(B.top)-B.top+"px"})},T(),this.unSubPixelFix=j(b,"resize",T))},e.prototype.definition=function(l){return new X([l]).addToDOM(this.defs.element)},e.prototype.getReferenceURL=function(){if((y||v)&&f.getElementsByTagName("base").length){if(!o(I)){var l=G();l=new X([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:l},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(l,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(f.body),d(l,{position:"fixed",top:0,left:0,zIndex:9e5});var T=f.elementFromPoint(6,6);I=(T&&T.id)==="hitme",f.body.removeChild(l)}if(I)return b.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},e.prototype.getStyle=function(l){return this.style=t({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},l)},e.prototype.setStyle=function(l){this.boxWrapper.css(this.getStyle(l))},e.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},e.prototype.destroy=function(){var l=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),h(this.gradients||{}),this.gradients=null,l&&(this.defs=l.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},e.prototype.createElement=function(l){var T=new this.Element;return T.init(this,l),T},e.prototype.getRadialAttr=function(l,T){return{cx:l[0]-l[2]/2+(T.cx||0)*l[2],cy:l[1]-l[2]/2+(T.cy||0)*l[2],r:(T.r||0)*l[2]}},e.prototype.buildText=function(l){new R(l).buildSVG()},e.prototype.getContrast=function(l){return l=Y.parse(l).rgba.map(function(T){return T/=255,.03928>=T?T/12.92:Math.pow((T+.055)/1.055,2.4)}
2),l=.2126*l[0]+.7152*l[1]+.0722*l[2],1.05/(l+.05)>(l+.05)/.05?"#FFFFFF":"#000000"},e.prototype.button=function(l,T,E,L,n,x,u,z,O,B){n===void 0&&(n={});var W=this.label(l,T,E,O,void 0,void 0,B,void 0,"button"),F=this.styledMode;l=n.states||{};var U=0;n=a(n),delete n.states;var st=a({color:"#333333",cursor:"pointer",fontWeight:"normal"},n.style);delete n.style;var rt=X.filterUserAttributes(n);if(W.attr(a({padding:8,r:2},rt)),!F){rt=a({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},rt),x=a(rt,{fill:"#e6e6e6"},X.filterUserAttributes(x||l.hover||{}));var ot=x.style;delete x.style,u=a(rt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},X.filterUserAttributes(u||l.select||{}));var tt=u.style;delete u.style,z=a(rt,{style:{color:"#cccccc"}},X.filterUserAttributes(z||l.disabled||{}));var at=z.style;delete z.style}return j(W.element,k?"mouseover":"mouseenter",function(){U!==3&&W.setState(1)}),j(W.element,k?"mouseout":"mouseleave",function(){U!==3&&W.setState(U)}),W.setState=function($){$!==1&&(W.state=U=$),W.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][$||0]),F||(W.attr([rt,x,u,z][$||0]),$=[st,ot,tt,at][$||0],r($)&&W.css($))},F||(W.attr(rt).css(t({cursor:"default"},st)),B&&W.text.css({pointerEvents:"none"})),W.on("touchstart",function($){return $.stopPropagation()}).on("click",function($){U!==3&&L.call(W,$)})},e.prototype.crispLine=function(l,T,E){E===void 0&&(E="round");var L=l[0],n=l[1];return o(L[1])&&L[1]===n[1]&&(L[1]=n[1]=Math[E](L[1])-T%2/2),o(L[2])&&L[2]===n[2]&&(L[2]=n[2]=Math[E](L[2])+T%2/2),l},e.prototype.path=function(l){var T=this.styledMode?{}:{fill:"none"};return p(l)?T.d=l:r(l)&&t(T,l),this.createElement("path").attr(T)},e.prototype.circle=function(l,T,E){return l=r(l)?l:typeof l>"u"?{}:{x:l,y:T,r:E},T=this.createElement("circle"),T.xSetter=T.ySetter=function(L,n,x){x.setAttribute("c"+n,L)},T.attr(l)},e.prototype.arc=function(l,T,E,L,n,x){return r(l)?(L=l,T=L.y,E=L.r,l=L.x):L={innerR:L,start:n,end:x},l=this.symbol("arc",l,T,E,E,L),l.r=E,l},e.prototype.rect=function(l,T,E,L,n,x){n=r(l)?l.r:n;var u=this.createElement("rect");return l=r(l)?l:typeof l>"u"?{}:{x:l,y:T,width:Math.max(E,0),height:Math.max(L,0)},this.styledMode||(typeof x<"u"&&(l["stroke-width"]=x,l=u.crisp(l)),l.fill="none"),n&&(l.r=n),u.rSetter=function(z,O,B){u.r=z,C(B,{rx:z,ry:z})},u.rGetter=function(){return u.r||0},u.attr(l)},e.prototype.setSize=function(l,T,E){this.width=l,this.height=T,this.boxWrapper.animate({width:l,height:T},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:m(E,!0)?void 0:0}),this.alignElements()},e.prototype.g=function(l){var T=this.createElement("g");return l?T.attr({class:"highcharts-"+l}):T},e.prototype.image=function(l,T,E,L,n,x){var u={preserveAspectRatio:"none"},z=function(B,W){B.setAttributeNS?B.setAttributeNS("http://www.w3.org/1999/xlink","href",W):B.setAttribute("hc-svg-href",W)};i(T)&&(u.x=T),i(E)&&(u.y=E),i(L)&&(u.width=L),i(n)&&(u.height=n);var O=this.createElement("image").attr(u);return T=function(B){z(O.element,l),x.call(O,B)},x?(z(O.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),E=new b.Image,j(E,"load",T),E.src=l,E.complete&&T({})):z(O.element,l),O},e.prototype.symbol=function(l,T,E,L,n,x){var u=this,z=/^url\((.*?)\)$/,O=z.test(l),B=!O&&(this.symbols[l]?l:"circle"),W=B&&this.symbols[B],F;if(W){typeof T=="number"&&(F=W.call(this.symbols,Math.round(T||0),Math.round(E||0),L||0,n||0,x));var U=this.path(F);u.styledMode||U.attr("fill","none"),t(U,{symbolName:B||void 0,x:T,y:E,width:L,height:n}),x&&t(U,x)}else if(O){var st=l.match(z)[1],rt=U=this.image(st);
2rt.imgwidth=m(w[st]&&w[st].width,x&&x.width),rt.imgheight=m(w[st]&&w[st].height,x&&x.height);var ot=function(tt){return tt.attr({width:tt.width,height:tt.height})};["width","height"].forEach(function(tt){rt[tt+"Setter"]=function(at,$){this[$]=at,at=this.alignByTranslate;var N=this.element,H=this.width,Z=this.height,q=this.imgwidth,it=this.imgheight,nt=this["img"+$];if(o(nt)){var ht=1;x&&x.backgroundSize==="within"&&H&&Z?(ht=Math.min(H/q,Z/it),nt=Math.round(nt*ht),C(N,{width:Math.round(q*ht),height:Math.round(it*ht)})):N&&N.setAttribute($,nt),at||this.translate(((H||0)-nt*ht)/2,((Z||0)-nt*ht)/2)}}}),o(T)&&rt.attr({x:T,y:E}),rt.isImg=!0,o(rt.imgwidth)&&o(rt.imgheight)?ot(rt):(rt.attr({width:0,height:0}),s("img",{onload:function(){var tt=A[u.chartIndex];this.width===0&&(d(this,{position:"absolute",top:"-999em"}),f.body.appendChild(this)),w[st]={width:this.width,height:this.height},rt.imgwidth=this.width,rt.imgheight=this.height,rt.element&&ot(rt),this.parentNode&&this.parentNode.removeChild(this),u.imgCount--,!u.imgCount&&tt&&!tt.hasLoaded&&tt.onload()},src:st}),this.imgCount++)}return U},e.prototype.clipRect=function(l,T,E,L){var n=G()+"-",x=this.createElement("clipPath").attr({id:n}).add(this.defs);return l=this.rect(l,T,E,L,0).add(x),l.id=n,l.clipPath=x,l.count=0,l},e.prototype.text=function(l,T,E,L){var n={};return L&&(this.allowHTML||!this.forExport)?this.html(l,T,E):(n.x=Math.round(T||0),E&&(n.y=Math.round(E)),o(l)&&(n.text=l),l=this.createElement("text").attr(n),(!L||this.forExport&&!this.allowHTML)&&(l.xSetter=function(x,u,z){for(var O=z.getElementsByTagName("tspan"),B=z.getAttribute(u),W=0,F;W<O.length;W++)F=O[W],F.getAttribute(u)===B&&F.setAttribute(u,x);z.setAttribute(u,x)}),l)},e.prototype.fontMetrics=function(l,T){return l=!this.styledMode&&/px/.test(l)||!b.getComputedStyle?l||T&&T.style&&T.style.fontSize||this.style&&this.style.fontSize:T&&J.prototype.getStyle.call(T,"font-size"),l=/px/.test(l)?P(l):12,T=24>l?l+3:Math.round(1.2*l),{h:T,b:Math.round(.8*T),f:l}},e.prototype.rotCorr=function(l,T,E){var L=l;return T&&E&&(L=Math.max(L*Math.cos(T*g),4)),{x:-l/3*Math.sin(T*g),y:L}},e.prototype.pathToSegments=function(l){for(var T=[],E=[],L={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},n=0;n<l.length;n++)c(E[0])&&i(l[n])&&E.length===L[E[0].toUpperCase()]&&l.splice(n,0,E[0].replace("M","L").replace("m","l")),typeof l[n]=="string"&&(E.length&&T.push(E.slice(0)),E.length=0),E.push(l[n]);return T.push(E.slice(0)),T},e.prototype.label=function(l,T,E,L,n,x,u,z,O){return new Q(this,l,T,E,L,n,x,u,z,O)},e.prototype.alignElements=function(){this.alignedObjects.forEach(function(l){return l.align()})},e}(),t(V.prototype,{Element:J,SVG_NS:M,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:K,draw:S}),et.registerRendererType("svg",V,!0),V}),lt(_,"Core/Renderer/HTML/HTMLElement.js",[_["Core/Globals.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(X,Y,V){var et=this&&this.__extends||function(){var k=function(v,S){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,w){M.__proto__=w}||function(M,w){for(var b in w)w.hasOwnProperty(b)&&(M[b]=w[b])},k(v,S)};return function(v,S){function M(){this.constructor=v}k(v,S),v.prototype=S===null?Object.create(S):(M.prototype=S.prototype,new M)}}(),J=X.isFirefox,Q=X.isMS,K=X.isWebKit,R=X.win,D=V.css,A=V.defined,g=V.extend,f=V.pick,y=V.pInt;return function(k){function v(){return k!==null&&k.apply(this,arguments)||this}return et(v,k),v.compose=function(S){if(v.composedClasses.indexOf(S)===-1){v.composedClasses.push(S);var M=v.prototype,w=S.prototype;w.getSpanCorrection=M.getSpanCorrection,w.htmlCss=M.htmlCss,w.htmlGetBBox=M.htmlGetBBox,w.htmlUpdateTransform=M.htmlUpdateTransform,w.setSpanRotation=M.setSpanRotation}return S},v.prototype.getSpanCorrection=function(S,M,w){this.xCorr=-S*w,this.yCorr=-M},v.prototype.htmlCss=function(S){var M=this.element.tagName==="SPAN"&&S&&"width"in S,w=f(M&&S.width,void 0);if(M){delete S.width,this.textWidth=w;var b=!0}return S&&S.textOverflow==="ellipsis"&&(S.whiteSpace="nowrap",S.overflow="hidden"),this.styles=g(this.styles,S),D(this.element,S),b&&this.htmlUpdateTransform(),this},v.prototype.htmlGetBBox=function(){var S=this.element;return{x:S.offsetLeft,y:S.offsetTop,width:S.offsetWidth,height:S.offsetHeight}},v.prototype.htmlUpdateTransform=function(){if(this.added){var S=this.renderer,M=this.element,w=this.translateX||0,b=this.translateY||0,j=this.x||0,C=this.y||0,s=this.textAlign||"left",d={left:0,center:.5,right:1}[s],o=this.styles;if(o=o&&o.whiteSpace,D(M,{marginLeft:w,marginTop:b}),!S.styledMode&&this.shadows&&this.shadows.forEach(function(c){D(c,{marginLeft:w+1,marginTop:b+1})}),this.inverted&&[].forEach.call(M.childNodes,function(c){S.invertChild(c,M)}),M.tagName==="SPAN"){var h=this.rotation,t=this.textWidth&&y(this.textWidth),p=[h,s,M.innerHTML,this.textWidth,this.textAlign].join(),i=void 0;
2if(i=!1,t!==this.oldTextWidth){if(this.textPxLength)var r=this.textPxLength;else D(M,{width:"",whiteSpace:o||"nowrap"}),r=M.offsetWidth;(t>this.oldTextWidth||r>t)&&(/[ \-]/.test(M.textContent||M.innerText)||M.style.textOverflow==="ellipsis")&&(D(M,{width:r>t||h?t+"px":"auto",display:"block",whiteSpace:o||"normal"}),this.oldTextWidth=t,i=!0)}this.hasBoxWidthChanged=i,p!==this.cTT&&(i=S.fontMetrics(M.style.fontSize,M).b,!A(h)||h===(this.oldRotation||0)&&s===this.oldAlign||this.setSpanRotation(h,d,i),this.getSpanCorrection(!A(h)&&this.textPxLength||M.offsetWidth,i,d,h,s)),D(M,{left:j+(this.xCorr||0)+"px",top:C+(this.yCorr||0)+"px"}),this.cTT=p,this.oldRotation=h,this.oldAlign=s}}else this.alignOnAdd=!0},v.prototype.setSpanRotation=function(S,M,w){var b={},j=Q&&!/Edge/.test(R.navigator.userAgent)?"-ms-transform":K?"-webkit-transform":J?"MozTransform":R.opera?"-o-transform":void 0;j&&(b[j]=b.transform="rotate("+S+"deg)",b[j+(J?"Origin":"-origin")]=b.transformOrigin=100*M+"% "+w+"px",D(this.element,b))},v.composedClasses=[],v}(Y)}),lt(_,"Core/Renderer/HTML/HTMLRenderer.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(X,Y,V,et){var J=this&&this.__extends||function(){var A=function(g,f){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,k){y.__proto__=k}||function(y,k){for(var v in k)k.hasOwnProperty(v)&&(y[v]=k[v])},A(g,f)};return function(g,f){function y(){this.constructor=g}A(g,f),g.prototype=f===null?Object.create(f):(y.prototype=f.prototype,new y)}}(),Q=et.attr,K=et.createElement,R=et.extend,D=et.pick;return function(A){function g(){return A!==null&&A.apply(this,arguments)||this}return J(g,A),g.compose=function(f){return g.composedClasses.indexOf(f)===-1&&(g.composedClasses.push(f),f.prototype.html=g.prototype.html),f},g.prototype.html=function(f,y,k){var v=this.createElement("span"),S=v.element,M=v.renderer,w=M.isSVG,b=function(j,C){["opacity","visibility"].forEach(function(s){j[s+"Setter"]=function(d,o,h){var t=j.div?j.div.style:C;Y.prototype[s+"Setter"].call(this,d,o,h),t&&(t[o]=d)}}),j.addedSetters=!0};return v.textSetter=function(j){j!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,X.setElementHTML(this.element,D(j,"")),this.textStr=j,v.doTransform=!0)},w&&b(v,v.element.style),v.xSetter=v.ySetter=v.alignSetter=v.rotationSetter=function(j,C){C==="align"?v.alignValue=v.textAlign=j:v[C]=j,v.doTransform=!0},v.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},v.attr({text:f,x:Math.round(y),y:Math.round(k)}).css({position:"absolute"}),M.styledMode||v.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),S.style.whiteSpace="nowrap",v.css=v.htmlCss,w&&(v.add=function(j){var C=M.box.parentNode,s=[];if(this.parentGroup=j){var d=j.div;if(!d){for(;j;)s.push(j),j=j.parentGroup;s.reverse().forEach(function(o){function h(r,c){o[c]=r,c==="translateX"?i.left=r+"px":i.top=r+"px",o.doTransform=!0}var t=Q(o.element,"class"),p=o.styles||{};d=o.div=o.div||K("div",t?{className:t}:void 0,{position:"absolute",left:(o.translateX||0)+"px",top:(o.translateY||0)+"px",display:o.display,opacity:o.opacity,cursor:p.cursor,pointerEvents:p.pointerEvents,visibility:o.visibility},d||C);var i=d.style;R(o,{classSetter:function(r){return function(c){this.element.setAttribute("class",c),r.className=c}}(d),on:function(){return s[0].div&&v.on.apply({element:s[0].div,onEvents:o.onEvents},arguments),o},translateXSetter:h,translateYSetter:h}),o.addedSetters||b(o)})}}else d=C;return d.appendChild(S),v.added=!0,v.alignOnAdd&&v.htmlUpdateTransform(),v}),v},g.composedClasses=[],g}(V)}),lt(_,"Core/Axis/AxisDefaults.js",[],function(){var X;return function(Y){Y.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,show
2FirstLabel:!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"},Y.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(){var V=this.axis.chart.numberFormatter;return V(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},Y.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},Y.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},Y.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},Y.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(X||(X={})),X}),lt(_,"Core/Foundation.js",[_["Core/Utilities.js"]],function(X){var Y=X.addEvent,V=X.isFunction,et=X.objectEach,J=X.removeEvent,Q;return function(K){K.registerEventOptions=function(R,D){R.eventOptions=R.eventOptions||{},et(D.events,function(A,g){R.eventOptions[g]!==A&&(R.eventOptions[g]&&(J(R,g,R.eventOptions[g]),delete R.eventOptions[g]),V(A)&&(R.eventOptions[g]=A,Y(R,g,A)))})}}(Q||(Q={})),Q}),lt(_,"Core/Axis/Tick.js",[_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(X,Y,V){var et=Y.deg2rad,J=V.clamp,Q=V.correctFloat,K=V.defined,R=V.destroyObjectProperties,D=V.extend,A=V.fireEvent,g=V.isNumber,f=V.merge,y=V.objectEach,k=V.pick;return Y=function(){function v(S,M,w,b,j){this.isNewLabel=this.isNew=!0,this.axis=S,this.pos=M,this.type=w||"",this.parameters=j||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,A(this,"init"),w||b||this.addLabel()}return v.prototype.addLabel=function(){var S=this,M=S.axis,w=M.options,b=M.chart,j=M.categories,C=M.logarithmic,s=M.names,d=S.pos,o=k(S.options&&S.options.labels,w.labels),h=M.tickPositions,t=d===h[0],p=d===h[h.length-1],i=(!o.step||o.step===1)&&M.tickInterval===1;h=h.info;var r=S.label,c;if(j=this.parameters.category||(j?k(j[d],s[d],d):d),C&&g(j)&&(j=Q(C.lin2log(j))),M.dateTime)if(h)var a=b.time.resolveDTLFormat(w.dateTimeLabelFormats[!w.grid&&h.higherRanks[d]||h.unitName]),m=a.main;else g(j)&&(m=M.dateTime.getXDateFormat(j,w.dateTimeLabelFormats||{}));S.isFirst=t,S.isLast=p;var P={axis:M,chart:b,dateTimeLabelFormat:m,isFirst:t,isLast:p,pos:d,tick:S,tickPositionInfo:h,value:j};A(this,"labelFormat",P);var G=function(e){return o.formatter?o.formatter.call(e,e):o.format?(e.text=M.defaultLabelFormatter.call(e,e),X.format(o.format,e,b)):M.defaultLabelFormatter.call(e,e)};w=G.call(P,P);var I=a&&a.list;S.shortenLabel=I?function(){for(c=0;c<I.length;c++)if(D(P,{dateTimeLabelFormat:I[c]}),r.attr({text:G.call(P,P)}),r.getBBox().width<M.getSlotWidth(S)-2*o.padding)return;r.attr({text:""})}:void 0,i&&M._addedPlotLB&&S.moveLabel(w,o),K(r)||S.movedLabel?r&&r.textStr!==w&&!i&&(!r.textWidth||o.style.width||r.styles.width||r.css({width:null}),r.attr({text:w}),r.textPxLength=r.getBBox().width):(S.label=r=S.createLabel({x:0,y:0},w,o),S.rotation=0)},v.prototype.createLabel=function(S,M,w){var b=this.axis,j=b.chart;return(S=K(M)&&w.enabled?j.renderer.text(M,S.x,S.y,w.useHTML).add(b.labelGroup):null)&&(j.styledMode||S.css(f(w.style)),S.textPxLength=S.getBBox().width),S},v.prototype.destroy=function(){R(this,this.axis)},v.prototype.getPosition=function(S,M,w,b){var j=this.axis,C=j.chart,s=b&&C.oldChartHeight||C.chartHeight;return S={x:S?Q(j.translate(M+w,void 0,void 0,b)+j.transB):j.left+j.offset+(j.opposite?(b&&C.oldChartWidth||C.chartWidth)-j.right-j.left:0),y:S?
2s-j.bottom+j.offset-(j.opposite?j.height:0):Q(s-j.translate(M+w,void 0,void 0,b)-j.transB)},S.y=J(S.y,-1e5,1e5),A(this,"afterGetPosition",{pos:S}),S},v.prototype.getLabelPosition=function(S,M,w,b,j,C,s,d){var o=this.axis,h=o.transA,t=o.isLinked&&o.linkedParent?o.linkedParent.reversed:o.reversed,p=o.staggerLines,i=o.tickRotCorr||{x:0,y:0},r=b||o.reserveSpaceDefault?0:-o.labelOffset*(o.labelAlign==="center"?.5:1),c={};return w=o.side===0?w.rotation?-8:-w.getBBox().height:o.side===2?i.y+8:Math.cos(w.rotation*et)*(i.y-w.getBBox(!1,0).height/2),K(j.y)&&(w=o.side===0&&o.horiz?j.y+w:j.y),S=S+j.x+r+i.x-(C&&b?C*h*(t?-1:1):0),M=M+w-(C&&!b?C*h*(t?1:-1):0),p&&(b=s/(d||1)%p,o.opposite&&(b=p-b-1),M+=o.labelOffset/p*b),c.x=S,c.y=Math.round(M),A(this,"afterGetLabelPosition",{pos:c,tickmarkOffset:C,index:s}),c},v.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},v.prototype.getMarkPath=function(S,M,w,b,j,C){return C.crispLine([["M",S,M],["L",S+(j?0:-w),M+(j?w:0)]],b)},v.prototype.handleOverflow=function(S){var M=this.axis,w=M.options.labels,b=S.x,j=M.chart.chartWidth,C=M.chart.spacing,s=k(M.labelLeft,Math.min(M.pos,C[3]));C=k(M.labelRight,Math.max(M.isRadial?0:M.pos+M.len,j-C[1]));var d=this.label,o=this.rotation,h={left:0,center:.5,right:1}[M.labelAlign||d.attr("align")],t=d.getBBox().width,p=M.getSlotWidth(this),i={},r=p,c=1,a;o||w.overflow!=="justify"?0>o&&b-h*t<s?a=Math.round(b/Math.cos(o*et)-s):0<o&&b+h*t>C&&(a=Math.round((j-b)/Math.cos(o*et))):(j=b+(1-h)*t,b-h*t<s?r=S.x+r*(1-h)-s:j>C&&(r=C-S.x+r*h,c=-1),r=Math.min(p,r),r<p&&M.labelAlign==="center"&&(S.x+=c*(p-r-h*(p-Math.min(t,r)))),(t>r||M.autoRotation&&(d.styles||{}).width)&&(a=r)),a&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(a)+"px",(w.style||{}).textOverflow||(i.textOverflow="ellipsis"),d.css(i)))},v.prototype.moveLabel=function(S,M){var w=this,b=w.label,j=w.axis,C=j.reversed,s=!1;if(b&&b.textStr===S?(w.movedLabel=b,s=!0,delete w.label):y(j.ticks,function(o){s||o.isNew||o===w||!o.label||o.label.textStr!==S||(w.movedLabel=o.label,s=!0,o.labelPos=w.movedLabel.xy,delete o.label)}),!s&&(w.labelPos||b)){var d=w.labelPos||b.xy;b=j.horiz?C?0:j.width+j.left:d.x,j=j.horiz?d.y:C?j.width+j.left:0,w.movedLabel=w.createLabel({x:b,y:j},S,M),w.movedLabel&&w.movedLabel.attr({opacity:0})}},v.prototype.render=function(S,M,w){var b=this.axis,j=b.horiz,C=this.pos,s=k(this.tickmarkOffset,b.tickmarkOffset);C=this.getPosition(j,C,s,M),s=C.x;var d=C.y;b=j&&s===b.pos+b.len||!j&&d===b.pos?-1:1,j=k(w,this.label&&this.label.newOpacity,1),w=k(w,1),this.isActive=!0,this.renderGridLine(M,w,b),this.renderMark(C,w,b),this.renderLabel(C,M,j,S),this.isNew=!1,A(this,"afterRender")},v.prototype.renderGridLine=function(S,M,w){var b=this.axis,j=b.options,C={},s=this.pos,d=this.type,o=k(this.tickmarkOffset,b.tickmarkOffset),h=b.chart.renderer,t=this.gridLine,p=j.gridLineWidth,i=j.gridLineColor,r=j.gridLineDashStyle;this.type==="minor"&&(p=j.minorGridLineWidth,i=j.minorGridLineColor,r=j.minorGridLineDashStyle),t||(b.chart.styledMode||(C.stroke=i,C["stroke-width"]=p||0,C.dashstyle=r),d||(C.zIndex=1),S&&(M=0),this.gridLine=t=h.path().attr(C).addClass("highcharts-"+(d?d+"-":"")+"grid-line").add(b.gridGroup)),t&&(w=b.getPlotLinePath({value:s+o,lineWidth:t.strokeWidth()*w,force:"pass",old:S,acrossPanes:!1}))&&t[S||this.isNew?"attr":"animate"]({d:w,opacity:M})},v.prototype.renderMark=function(S,M,w){var b=this.axis,j=b.options,C=b.chart.renderer,s=this.type,d=b.tickSize(s?s+"Tick":"tick"),o=S.x;S=S.y;var h=k(j[s!=="minor"?"tickWidth":"minorTickWidth"],!s&&b.isXAxis?1:0);j=j[s!=="minor"?"tickColor":"minorTickColor"];var t=this.mark,p=!t;d&&(b.opposite&&(d[0]=-d[0]),t||(this.mark=t=C.path().addClass("highcharts-"+(s?s+"-":"")+"tick").add(b.axisGroup),b.chart.styledMode||t.attr({stroke:j,"stroke-width":h})),t[p?"attr":"animate"]({d:this.getMarkPath(o,S,d[0],t.strokeWidth()*w,b.horiz,C),opacity:M}))},v.prototype.renderLabel=function(S,M,w,b){var j=this.axis,C=j.horiz,s=j.options,d=this.label,o=s.labels,h=o.step;j=k(this.tickmarkOffset,j.tickmarkOffset);var t=S.x;S=S.y;var p=!0;d&&g(t)&&(d.xy=S=this.getLabelPosition(t,S,d,C,o,j,b,h),this.isFirst&&!this.isLast&&!s.showFirstLabel||this.isLast&&!this.isFirst&&!s.showLastLabel?p=!1:!C||o.step||o.rotation||M||w===0||this.handleOverflow(S),h&&b%h&&(p=!1),p&&g(S.y)?(S.opacity=w,d[this.isNewLabel?"attr":"animate"](S).show(!0),this.isNewLabel=!1):(d.hide(),this.isNewLabel=!0))},v.prototype.replaceMovedLabel=function(){var S=this.label,M=this.axis,w=M.reversed;
2if(S&&!this.isNew){var b=M.horiz?w?M.left:M.width+M.left:S.xy.x;w=M.horiz?S.xy.y:w?M.width+M.top:M.top,S.animate({x:b,y:w,opacity:0},void 0,S.destroy),delete this.label}M.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},v}(),Y}),lt(_,"Core/Axis/Axis.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/AxisDefaults.js"],_["Core/Color/Color.js"],_["Core/Defaults.js"],_["Core/Foundation.js"],_["Core/Globals.js"],_["Core/Axis/Tick.js"],_["Core/Utilities.js"]],function(X,Y,V,et,J,Q,K,R){var D=X.animObject,A=et.defaultOptions,g=J.registerEventOptions,f=Q.deg2rad,y=R.arrayMax,k=R.arrayMin,v=R.clamp,S=R.correctFloat,M=R.defined,w=R.destroyObjectProperties,b=R.erase,j=R.error,C=R.extend,s=R.fireEvent,d=R.isArray,o=R.isNumber,h=R.isString,t=R.merge,p=R.normalizeTickInterval,i=R.objectEach,r=R.pick,c=R.relativeLength,a=R.removeEvent,m=R.splat,P=R.syncTimeout,G=function(I,e){return p(e,void 0,void 0,r(I.options.allowDecimals,.5>e||I.tickAmount!==void 0),!!I.tickAmount)};return X=function(){function I(e,l){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(e,l)}return I.prototype.init=function(e,l){var T=l.isX;this.chart=e,this.horiz=e.inverted&&!this.isZAxis?!T:T,this.isXAxis=T,this.coll=this.coll||(T?"xAxis":"yAxis"),s(this,"init",{userOptions:l}),this.opposite=r(l.opposite,this.opposite),this.side=r(l.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(l);var E=this.options,L=E.labels,n=E.type;this.userOptions=l,this.minPixelPadding=0,this.reversed=r(E.reversed,this.reversed),this.visible=E.visible,this.zoomEnabled=E.zoomEnabled,this.hasNames=n==="category"||E.categories===!0,this.categories=E.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=M(E.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=E.minRange||E.maxZoom,this.range=E.range,this.offset=E.offset||0,this.min=this.max=null,l=r(E.crosshair,m(e.options.tooltip.crosshairs)[T?0:1]),this.crosshair=l===!0?{}:l,e.axes.indexOf(this)===-1&&(T?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),e[this.coll].push(this)),this.series=this.series||[],e.inverted&&!this.isZAxis&&T&&typeof this.reversed>"u"&&(this.reversed=!0),this.labelRotation=o(L.rotation)?L.rotation:void 0,g(this,E),s(this,"afterInit")},I.prototype.setOptions=function(e){this.options=t(Y.defaultXAxisOptions,this.coll==="yAxis"&&Y.defaultYAxisOptions,[Y.defaultTopAxisOptions,Y.defaultRightAxisOptions,Y.defaultBottomAxisOptions,Y.defaultLeftAxisOptions][this.side],t(A[this.coll],e)),s(this,"afterSetOptions",{userOptions:e})},I.prototype.defaultLabelFormatter=function(e){var l=this.axis;e=this.chart.numberFormatter;var T=o(this.value)?this.value:NaN,E=l.chart.time,L=this.dateTimeLabelFormat,n=A.lang,x=n.numericSymbols;n=n.numericSymbolMagnitude||1e3;var u=l.logarithmic?Math.abs(T):l.tickInterval,z=x&&x.length;if(l.categories)var O="".concat(this.value);else if(L)O=E.dateFormat(L,T);else if(z&&1e3<=u)for(;z--&&typeof O>"u";)l=Math.pow(n,z+1),u>=l&&10*T%l===0&&x[z]!==null&&T!==0&&(O=e(T/l,-1)+x[z]);return typeof O>"u"&&(O=1e4<=Math.abs(T)?e(T,-1):e(T,-1,void 0,"")),O},I.prototype.getSeriesExtremes=function(){var e=this,l=e.chart,T;s(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.series.forEac
2h(function(E){if(E.visible||!l.options.chart.ignoreHiddenSeries){var L=E.options,n=L.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=n&&(n=null),e.isXAxis){if(L=E.xData,L.length){L=e.logarithmic?L.filter(e.validatePositiveValue):L,T=E.getXExtremes(L);var x=T.min,u=T.max;o(x)||x instanceof Date||(L=L.filter(o),T=E.getXExtremes(L),x=T.min,u=T.max),L.length&&(e.dataMin=Math.min(r(e.dataMin,x),x),e.dataMax=Math.max(r(e.dataMax,u),u))}}else E=E.applyExtremes(),o(E.dataMin)&&(x=E.dataMin,e.dataMin=Math.min(r(e.dataMin,x),x)),o(E.dataMax)&&(u=E.dataMax,e.dataMax=Math.max(r(e.dataMax,u),u)),M(n)&&(e.threshold=n),(!L.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),s(this,"afterGetSeriesExtremes")},I.prototype.translate=function(e,l,T,E,L,n){var x=this.linkedParent||this,u=E&&x.old?x.old.min:x.min;if(!o(u))return NaN;var z=x.minPixelPadding;L=(x.isOrdinal||x.brokenAxis&&x.brokenAxis.hasBreaks||x.logarithmic&&L)&&x.lin2val;var O=1,B=0;return E=E&&x.old?x.old.transA:x.transA,E||(E=x.transA),T&&(O*=-1,B=x.len),x.reversed&&(O*=-1,B-=O*(x.sector||x.len)),l?(n=(e*O+B-z)/E+u,L&&(n=x.lin2val(n))):(L&&(e=x.val2lin(e)),e=O*(e-u)*E,n=(x.isRadial?e:S(e))+B+O*z+(o(n)?E*n:0)),n},I.prototype.toPixels=function(e,l){return this.translate(e,!1,!this.horiz,void 0,!0)+(l?0:this.pos)},I.prototype.toValue=function(e,l){return this.translate(e-(l?0:this.pos),!0,!this.horiz,void 0,!0)},I.prototype.getPlotLinePath=function(e){function l($,N,H){return U!=="pass"&&($<N||$>H)&&(U?$=v($,N,H):at=!0),$}var T=this,E=T.chart,L=T.left,n=T.top,x=e.old,u=e.value,z=e.lineWidth,O=x&&E.oldChartHeight||E.chartHeight,B=x&&E.oldChartWidth||E.chartWidth,W=T.transB,F=e.translatedValue,U=e.force,st,rt,ot,tt,at;return e={value:u,lineWidth:z,old:x,force:U,acrossPanes:e.acrossPanes,translatedValue:F},s(this,"getPlotLinePath",e,function($){F=r(F,T.translate(u,void 0,void 0,x)),F=v(F,-1e5,1e5),st=ot=Math.round(F+W),rt=tt=Math.round(O-F-W),o(F)?T.horiz?(rt=n,tt=O-T.bottom,st=ot=l(st,L,L+T.width)):(st=L,ot=B-T.right,rt=tt=l(rt,n,n+T.height)):(at=!0,U=!1),$.path=at&&!U?null:E.renderer.crispLine([["M",st,rt],["L",ot,tt]],z||1)}),e.path},I.prototype.getLinearTickPositions=function(e,l,T){var E=S(Math.floor(l/e)*e);T=S(Math.ceil(T/e)*e);var L=[],n;if(S(E+e)===E&&(n=20),this.single)return[l];for(l=E;l<=T&&(L.push(l),l=S(l+e,n),l!==x);)var x=l;return L},I.prototype.getMinorTickInterval=function(){var e=this.options;return e.minorTicks===!0?r(e.minorTickInterval,"auto"):e.minorTicks===!1?null:e.minorTickInterval},I.prototype.getMinorTickPositions=function(){var e=this.options,l=this.tickPositions,T=this.minorTickInterval,E=this.pointRangePadding||0,L=this.min-E;E=this.max+E;var n=E-L,x=[];if(n&&n/T<this.len/3){var u=this.logarithmic;if(u)this.paddedTicks.forEach(function(z,O,B){O&&x.push.apply(x,u.getLogTickPositions(T,B[O-1],B[O],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")x=x.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(T),L,E,e.startOfWeek));else for(e=L+(l[0]-L)%T;e<=E&&e!==x[0];e+=T)x.push(e)}return x.length!==0&&this.trimTicks(x),x},I.prototype.adjustForMinRange=function(){var e=this.options,l=this.logarithmic,T=this.min,E=this.max,L=0,n,x,u,z;if(this.isXAxis&&typeof this.minRange>"u"&&!l&&(M(e.min)||M(e.max)||M(e.floor)||M(e.ceiling)?this.minRange=null:(this.series.forEach(function(F){if(u=F.xData,z=F.xIncrement?1:u.length-1,1<u.length)for(n=z;0<n;n--)x=u[n]-u[n-1],(!L||x<L)&&(L=x)}),this.minRange=Math.min(5*L,this.dataMax-this.dataMin))),E-T<this.minRange){var O=this.dataMax-this.dataMin>=this.minRange,B=this.minRange,W=(B-E+T)/2;W=[T-W,r(e.min,T-W)],O&&(W[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),T=y(W),E=[T+B,r(e.max,T+B)],O&&(E[2]=l?l.log2lin(this.dataMax):this.dataMax),E=k(E),E-T<B&&(W[0]=E-B,W[1]=r(e.min,E-B),T=y(W))}this.min=T,this.max=E},I.prototype.getClosest=function(){var e;return this.categories?e=1:this.series.forEach(function(l){var T=l.closestPointRange,E=l.visible||!l.chart.options.chart.ignoreHiddenSeries;!l.noSharedTooltip&&M(T)&&E&&(e=M(e)?Math.min(e,T):T)}),e},I.prototype.nameToX=function(e){var l=d(this.options.categories),T=l?this.categories:this.names,E=e.options.x;if(e.series.requireSorting=!1,M(E)||(E=this.options.uniqueNames&&T?l?T.indexOf(e.name):r(T.keys[e.name],-1):e.series.autoIncrement()),E===-1){if(!l&&T)var L=T.length}else L=E;return typeof L<"u"?(this.names[L]=e.name,this.names.keys[e.name]=L):e.x&&(L=e.x),L},I.prototype.updateNames=function(){var e=this,l=this.names;
20<l.length&&(Object.keys(l.keys).forEach(function(T){delete l.keys[T]}),l.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(T){T.xIncrement=null,(!T.points||T.isDirtyData)&&(e.max=Math.max(e.max,T.xData.length-1),T.processData(),T.generatePoints()),T.data.forEach(function(E,L){if(E&&E.options&&typeof E.name<"u"){var n=e.nameToX(E);typeof n<"u"&&n!==E.x&&(E.x=n,T.xData[L]=n)}})}))},I.prototype.setAxisTranslation=function(){var e=this,l=e.max-e.min,T=e.linkedParent,E=!!e.categories,L=e.isXAxis,n=e.axisPointRange||0,x=0,u=0,z=e.transA;if(L||E||n){var O=e.getClosest();T?(x=T.minPointOffset,u=T.pointRangePadding):e.series.forEach(function(B){var W=E?1:L?r(B.options.pointRange,O,0):e.axisPointRange||0,F=B.options.pointPlacement;n=Math.max(n,W),(!e.single||E)&&(B=B.is("xrange")?!L:L,x=Math.max(x,B&&h(F)?0:W/2),u=Math.max(u,B&&F==="on"?0:W))}),T=e.ordinal&&e.ordinal.slope&&O?e.ordinal.slope/O:1,e.minPointOffset=x*=T,e.pointRangePadding=u*=T,e.pointRange=Math.min(n,e.single&&E?1:l),L&&(e.closestPointRange=O)}e.translationSlope=e.transA=z=e.staticScale||e.len/(l+u||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=z*x,s(this,"afterSetAxisTranslation")},I.prototype.minFromRange=function(){return this.max-this.range},I.prototype.setTickInterval=function(e){var l=this.chart,T=this.logarithmic,E=this.options,L=this.isXAxis,n=this.isLinked,x=E.tickPixelInterval,u=this.categories,z=this.softThreshold,O=E.maxPadding,B=E.minPadding,W=o(E.tickInterval)&&0<=E.tickInterval?E.tickInterval:void 0,F=o(this.threshold)?this.threshold:null;this.dateTime||u||n||this.getTickAmount();var U=r(this.userMin,E.min),st=r(this.userMax,E.max);if(n){this.linkedParent=l[this.coll][E.linkedTo];var rt=this.linkedParent.getExtremes();this.min=r(rt.min,rt.dataMin),this.max=r(rt.max,rt.dataMax),E.type!==this.linkedParent.options.type&&j(11,1,l)}else{if(z&&M(F)){if(this.dataMin>=F)rt=F,B=0;else if(this.dataMax<=F){var ot=F;O=0}}this.min=r(U,rt,this.dataMin),this.max=r(st,ot,this.dataMax)}if(T&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,r(this.dataMin,this.min))&&j(10,1,l),this.min=S(T.log2lin(this.min),16),this.max=S(T.log2lin(this.max),16)),this.range&&M(this.max)&&(this.userMin=this.min=U=Math.max(this.dataMin,this.minFromRange()),this.userMax=st=this.max,this.range=null),s(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(u||this.axisPointRange||this.stacking&&this.stacking.usePercentage||n)&&M(this.min)&&M(this.max)&&(l=this.max-this.min)&&(!M(U)&&B&&(this.min-=l*B),!M(st)&&O&&(this.max+=l*O)),o(this.userMin)||(o(E.softMin)&&E.softMin<this.min&&(this.min=U=E.softMin),o(E.floor)&&(this.min=Math.max(this.min,E.floor))),o(this.userMax)||(o(E.softMax)&&E.softMax>this.max&&(this.max=st=E.softMax),o(E.ceiling)&&(this.max=Math.min(this.max,E.ceiling))),z&&M(this.dataMin)&&(F=F||0,!M(U)&&this.min<F&&this.dataMin>=F?this.min=this.options.minRange?Math.min(F,this.max-this.minRange):F:!M(st)&&this.max>F&&this.dataMax<=F&&(this.max=this.options.minRange?Math.max(F,this.min+this.minRange):F)),o(this.min)&&o(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||typeof this.min>"u"||typeof this.max>"u"?1:n&&this.linkedParent&&!W&&x===this.linkedParent.options.tickPixelInterval?W=this.linkedParent.tickInterval:r(W,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,u?1:(this.max-this.min)*x/Math.max(this.len,x)),L&&!e){var tt=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(at){at.forceCrop=at.forceCropping&&at.forceCropping(),at.processData(tt)}),s(this,"postProcessData",{hasExtremesChanged:tt})}this.setAxisTranslation(),s(this,"initialAxisTranslation"),this.pointRange&&!W&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),e=r(E.minTickInterval,this.dateTime&&!this.series.some(function(at){return at.noSharedTooltip})?this.closestPointRange:0),!W&&this.tickInterval<e&&(this.tickInterval=e),this.dateTime||this.logarithmic||W||(this.tickInterval=G(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},I.prototype.setTickPositions=function(){var e=this.options,l=e.tickPositions,T=e.tickPositioner,E=this.getMinorTickInterval(),L=this.hasVerticalPanning(),n=this.coll==="colorAxis",x=(n||!L)&&e.startOnTick;L=(n||!L)&&e.endOnTick,n=[];var u;if(this.tickmarkOffset=this.categories&&e.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=E==="auto"&&this.tickInterval?this.tickInterval/5:E,this.single=this.min===this.max&&M(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||e.allowDecimals!==!1),l)n=l.slice();else if(o(this.min)&&o(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.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(E=e=this.tickInterval;E<=2*e&&(n=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&n.length>this.tickAmount);)this.tickInterval=G(this,E*=1.1);else n=[this.min,this.max],j(19,!1,this.chart);n.length>this.len&&(n=[n[0],n[n.length-1]],n[0]===n[1]&&(n.length=1)),T&&(this.tickPositions=n,(u=T.apply(this,[this.min,this.max]))&&(n=u))}this.tickPositions=n,this.paddedTicks=n.slice(0),this.trimTicks(n,x,L),!this.isLinked&&o(this.min)&&o(this.max)&&(this.single&&2>n.length&&!this.categories&&!this.series.some(function(z){return z.is("heatmap")&&z.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),l||u||this.adjustTickAmount()),s(this,"afterSetTickPositions")},I.prototype.trimTicks=function(e,l,T){var E=e[0],L=e[e.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(s(this,"trimTicks"),!this.isLinked){if(l&&E!==-1/0)this.min=E;else for(;this.min-n>e[0];)e.shift();if(T)this.max=L;else for(;this.max+n<e[e.length-1];)e.pop();e.length===0&&M(E)&&!this.options.tickPositions&&e.push((L+E)/2)}},I.prototype.alignToOthers=function(){var e=this,l=[this],T=e.options,E=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,L=[],n;if(e.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&T.alignTicks||E)&&T.startOnTick!==!1&&T.endOnTick!==!1&&!e.logarithmic){var x=function(O){var B=O.options;return[O.horiz?B.left:B.top,B.width,B.height,B.pane].join()},u=x(this);this.chart[this.coll].forEach(function(O){var B=O.series;B.length&&B.some(function(W){return W.visible})&&O!==e&&x(O)===u&&(n=!0,l.push(O))})}if(n&&E){l.forEach(function(O){O=O.getThresholdAlignment(e),o(O)&&L.push(O)});var z=1<L.length?L.reduce(function(O,B){return O+B},0)/L.length:void 0;l.forEach(function(O){O.thresholdAlignment=z})}return n},I.prototype.getThresholdAlignment=function(e){if((!o(this.dataMin)||this!==e&&this.series.some(function(l){return l.isDirty||l.isDirtyData}
2))&&this.getSeriesExtremes(),o(this.threshold))return e=v((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(e=1-e),e},I.prototype.getTickAmount=function(){var e=this.options,l=e.tickPixelInterval,T=e.tickAmount;!M(e.tickInterval)&&!T&&this.len<l&&!this.isRadial&&!this.logarithmic&&e.startOnTick&&e.endOnTick&&(T=2),!T&&this.alignToOthers()&&(T=Math.ceil(this.len/l)+1),4>T&&(this.finalTickAmt=T,T=5),this.tickAmount=T},I.prototype.adjustTickAmount=function(){var e=this,l=e.finalTickAmt,T=e.max,E=e.min,L=e.options,n=e.tickPositions,x=e.tickAmount,u=e.thresholdAlignment,z=n&&n.length,O=r(e.threshold,e.softThreshold?0:null),B=e.tickInterval;if(o(u)){var W=.5>u?Math.ceil(u*(x-1)):Math.floor(u*(x-1));L.reversed&&(W=x-1-W)}if(e.hasData()&&o(E)&&o(T)){if(u=function(){e.transA*=(z-1)/(x-1),e.min=L.startOnTick?n[0]:Math.min(E,n[0]),e.max=L.endOnTick?n[n.length-1]:Math.max(T,n[n.length-1])},o(W)&&o(e.threshold)){for(;n[W]!==O||n.length!==x||n[0]>E||n[n.length-1]<T;){for(n.length=0,n.push(e.threshold);n.length<x;)n[W]===void 0||n[W]>e.threshold?n.unshift(S(n[0]-B)):n.push(S(n[n.length-1]+B));if(B>8*e.tickInterval)break;B*=2}u()}else if(z<x){for(;n.length<x;)n.length%2||E===O?n.push(S(n[n.length-1]+B)):n.unshift(S(n[0]-B));u()}if(M(l)){for(B=O=n.length;B--;)(l===3&&B%2===1||2>=l&&0<B&&B<O-1)&&n.splice(B,1);e.finalTickAmt=void 0}}},I.prototype.setScale=function(){var e=!1,l=!1;this.series.forEach(function(E){e=e||E.isDirtyData||E.isDirty,l=l||E.xAxis&&E.xAxis.isDirty||!1}),this.setAxisSize();var T=this.len!==(this.old&&this.old.len);T||e||l||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=T||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),e&&this.panningState&&(this.panningState.isDirty=!0),s(this,"afterSetScale")},I.prototype.setExtremes=function(e,l,T,E,L){var n=this,x=n.chart;T=r(T,!0),n.series.forEach(function(u){delete u.kdTree}),L=C(L,{min:e,max:l}),s(n,"setExtremes",L,function(){n.userMin=e,n.userMax=l,n.eventArgs=L,T&&x.redraw(E)})},I.prototype.zoom=function(e,l){var T=this,E=this.dataMin,L=this.dataMax,n=this.options,x=Math.min(E,r(n.min,E)),u=Math.max(L,r(n.max,L));return e={newMin:e,newMax:l},s(this,"zoom",e,function(z){var O=z.newMin,B=z.newMax;(O!==T.min||B!==T.max)&&(T.allowZoomOutside||(M(E)&&(O<x&&(O=x),O>u&&(O=u)),M(L)&&(B<x&&(B=x),B>u&&(B=u))),T.displayBtn=typeof O<"u"||typeof B<"u",T.setExtremes(O,B,!1,void 0,{trigger:"zoom"})),z.zoomed=!0}),e.zoomed},I.prototype.setAxisSize=function(){var e=this.chart,l=this.options,T=l.offsets||[0,0,0,0],E=this.horiz,L=this.width=Math.round(c(r(l.width,e.plotWidth-T[3]+T[1]),e.plotWidth)),n=this.height=Math.round(c(r(l.height,e.plotHeight-T[0]+T[2]),e.plotHeight)),x=this.top=Math.round(c(r(l.top,e.plotTop+T[0]),e.plotHeight,e.plotTop));l=this.left=Math.round(c(r(l.left,e.plotLeft+T[3]),e.plotWidth,e.plotLeft)),this.bottom=e.chartHeight-n-x,this.right=e.chartWidth-L-l,this.len=Math.max(E?L:n,0),this.pos=E?l:x},I.prototype.getExtremes=function(){var e=this.logarithmic;return{min:e?S(e.lin2log(this.min)):this.min,max:e?S(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},I.prototype.getThreshold=function(e){var l=this.logarithmic,T=l?l.lin2log(this.min):this.min;return l=l?l.lin2log(this.max):this.max,e===null||e===-1/0?e=T:e===1/0?e=l:T>e?e=T:l<e&&(e=l),this.translate(e,0,1,0,1)},I.prototype.autoLabelAlign=function(e){var l=(r(e,0)-90*this.side+720)%360;return e={align:"center"},s(this,"autoLabelAlign",e,function(T){15<l&&165>l?T.align="right":195<l&&345>l&&(T.align="left")}),e.align},I.prototype.tickSize=function(e){var l=this.options,T=r(l[e==="tick"?"tickWidth":"minorTickWidth"],e==="tick"&&this.isXAxis&&!this.categories?1:0),E=l[e==="tick"?"tickLength":"minorTickLength"];if(T&&E){l[e+"Position"]==="inside"&&(E=-E);var L=[E,T]}return e={tickSize:L},s(this,"afterTickSize",e),e.tickSize},I.prototype.labelMetrics=function(){var e=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[e]&&this.ticks[e].label)},I.prototype.unsquish=function(){var e=this.options.labels,l=this.horiz,T=this.tickInterval,E=this.len/(((this.categories?1:0)+this.max-this.min)/T),L=e.rotation,n=this.labelMetrics(),x=Math.max(this.max-this.min,0),u=function(ot){var tt=ot/(E||1);return tt=1<tt?Math.ceil(tt):1,tt*T>x&&ot!==1/0&&E!==1/0&&x&&(tt=Math.ceil(x/T)),S(tt*T)},z=T,O=Number.MAX_VALUE;if(l){if(!e.staggerLines)if(o(L))var B=[L];else E<e.autoRotationLimit&&(B=e.autoRotation);if(B)for(var W=l=void 0,F=0,U=B;F<U.length;F++){var st=U[F];if((st===L||st&&-90<=st&&90>=st)&&(l=u(Math.abs(n.h/Math.sin(f*st))),W=l+Math.abs(st/360),W<O)){O=W;var rt=st;z=l}}}else z=u(n.h);return this.autoRotation=B,this.labelRotation=r(rt,o(L)?L:0),e.step?T:z},I.prototype.getSlotWidth=function(e){var l=this.chart,T=this.horiz,E=this.options.labels,L=Math.max(this.tickPositions.length-(this.categories?0:1),1),n=l.margin[3];if(e&&o(e.slotWidth))return e.slotWidth;if(T&&2>E.step)return E.rotation?0:(this.staggerLines||1)*this.len/L;if(!T){if(e=E.style.width,e!==void 0)return parseInt(String(e),10);if(n)return n-l.spacing[3]}return .33*l.chartWidth},I.prototype.renderUnsquish=function(){var e=this.chart,l=e.renderer,T=this.tickPositions,E=this.ticks,L=this.options.labels,n=L.style,x=this.horiz,u=this.getSlotWidth(),z=Math.max(1,Math.round(u-2*L.padding)),O={},B=this.labelMetrics(),W=n.textOverflow,F=0;if(h(L.rotation)||(O.rotation=L.rotation||0),T.forEach(function(ot){ot=E[ot],ot.movedLabel&&ot.replaceMovedLabel(),ot&&ot.label&&ot.label.textPxLength>F&&(F=ot.label.textPxLength)}),this.maxLabelLength=F,this.autoRotation)F>z&&F>B.h?O.rotation=this.labelRotation:this.labelRotation=0;else if(u){var U=z;if(!W){var st="clip";for(z=T.length;!x&&z--;){var rt=T[z];(rt=E[rt].label)&&(rt.styles&&rt.styles.textOverflow==="ellipsis"?rt.css({textOverflow:"clip"}):rt.textPxLength>u&&rt.css({width:u+"px"}),rt.getBBox().height>this.len/T.length-(B.h-B.f)&&(rt.specificTextOverflow="ellipsis"))}}}O.rotation&&(U=F>.5*e.chartHeight?.33*e.chartHeight:F,W||(st="ellipsis")),(this.labelAlign=L.align||this.autoLabelAlign(this.labelRotation))&&(O.align=this.labelAlign),T.forEach(function(ot){var tt=(ot=E[ot])&&ot.label,at=n.width,$={};tt&&(tt.attr(O),ot.shortenLabel?ot.shortenLabel():U&&!at&&n.whiteSpace!=="nowrap"&&(U<tt.textPxLength||tt.element.tagName==="SPAN")?($.width=U+"px",W||($.textOverflow=tt.specificTextOverflow||st),tt.css($)):tt.styles&&tt.styles.width&&!$.width&&!at&&tt.css({width:null}),delete tt.specificTextOverflow,ot.rotation=O.rotation)},this),this.tickRotCorr=l.rotCorr(B.b,this.labelRotation||0,this.side!==0)},I.prototype.hasData=function(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&M(this.min)&&M(this.max)},I.prototype.addTitle=function(e){var l=this.chart.renderer,T=this.horiz,E=this.opposite,L=this.options.title,n=this.chart.styledMode,x;
2this.axisTitle||((x=L.textAlign)||(x=(T?{low:"left",middle:"center",high:"right"}:{low:E?"right":"left",middle:"center",high:E?"left":"right"})[L.align]),this.axisTitle=l.text(L.text||"",0,0,L.useHTML).attr({zIndex:7,rotation:L.rotation,align:x}).addClass("highcharts-axis-title"),n||this.axisTitle.css(t(L.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),n||L.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[e?"show":"hide"](e)},I.prototype.generateTick=function(e){var l=this.ticks;l[e]?l[e].addLabel():l[e]=new K(this,e)},I.prototype.getOffset=function(){var e=this,l=this,T=l.chart,E=l.horiz,L=l.options,n=l.side,x=l.ticks,u=l.tickPositions,z=l.coll,O=l.axisParent,B=T.renderer,W=T.inverted&&!l.isZAxis?[1,0,3,2][n]:n,F=l.hasData(),U=L.title,st=L.labels,rt=T.axisOffset;T=T.clipOffset;var ot=[-1,1,1,-1][n],tt=L.className,at,$=0,N=0,H=0;if(l.showAxis=at=F||L.showEmpty,l.staggerLines=l.horiz&&st.staggerLines||void 0,!l.axisGroup){var Z=function(it,nt,ht){return B.g(it).attr({zIndex:ht}).addClass("highcharts-".concat(z.toLowerCase()).concat(nt," ")+(e.isRadial?"highcharts-radial-axis".concat(nt," "):"")+(tt||"")).add(O)};l.gridGroup=Z("grid","-grid",L.gridZIndex),l.axisGroup=Z("axis","",L.zIndex),l.labelGroup=Z("axis-labels","-labels",st.zIndex)}if(F||l.isLinked?(u.forEach(function(it){l.generateTick(it)}),l.renderUnsquish(),l.reserveSpaceDefault=n===0||n===2||{1:"left",3:"right"}[n]===l.labelAlign,r(st.reserveSpace,l.labelAlign==="center"?!0:null,l.reserveSpaceDefault)&&u.forEach(function(it){H=Math.max(x[it].getLabelSize(),H)}),l.staggerLines&&(H*=l.staggerLines),l.labelOffset=H*(l.opposite?-1:1)):i(x,function(it,nt){it.destroy(),delete x[nt]}),U&&U.text&&U.enabled!==!1&&(l.addTitle(at),at&&U.reserveSpace!==!1)){l.titleOffset=$=l.axisTitle.getBBox()[E?"height":"width"];var q=U.offset;N=M(q)?0:r(U.margin,E?5:10)}l.renderLine(),l.offset=ot*r(L.offset,rt[n]?rt[n]+(L.margin||0):0),l.tickRotCorr=l.tickRotCorr||{x:0,y:0},U=n===0?-l.labelMetrics().h:n===2?l.tickRotCorr.y:0,F=Math.abs(H)+N,H&&(F=F-U+ot*(E?r(st.y,l.tickRotCorr.y+8*ot):st.x)),l.axisTitleMargin=r(q,F),l.getMaxLabelDimensions&&(l.maxLabelDimensions=l.getMaxLabelDimensions(x,u)),z!=="colorAxis"&&(E=this.tickSize("tick"),rt[n]=Math.max(rt[n],(l.axisTitleMargin||0)+$+ot*l.offset,F,u&&u.length&&E?E[0]+ot*l.offset:0),L=!l.axisLine||L.offset?0:2*Math.floor(l.axisLine.strokeWidth()/2),T[W]=Math.max(T[W],L)),s(this,"afterGetOffset")},I.prototype.getLinePath=function(e){var l=this.chart,T=this.opposite,E=this.offset,L=this.horiz,n=this.left+(T?this.width:0)+E;return E=l.chartHeight-this.bottom-(T?this.height:0)+E,T&&(e*=-1),l.renderer.crispLine([["M",L?this.left:n,L?E:this.top],["L",L?l.chartWidth-this.right:n,L?E:l.chartHeight-this.bottom]],e)},I.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},I.prototype.getTitlePosition=function(){var e=this.horiz,l=this.left,T=this.top,E=this.len,L=this.options.title,n=e?l:T,x=this.opposite,u=this.offset,z=L.x,O=L.y,B=this.axisTitle,W=this.chart.renderer.fontMetrics(L.style.fontSize,B);return B=B?Math.max(B.getBBox(!1,0).height-W.h-1,0):0,E={low:n+(e?0:E),middle:n+E/2,high:n+(e?E:0)}[L.align],l=(e?T+this.height:l)+(e?1:-1)*(x?-1:1)*(this.axisTitleMargin||0)+[-B,B,W.f,-B][this.side],e={x:e?E+z:l+(x?this.width:0)+u+z,y:e?l+O-(x?this.height:0)+u:E+O},s(this,"afterGetTitlePosition",{titlePosition:e}),e},I.prototype.renderMinorTick=function(e,l){var T=this.minorTicks;T[e]||(T[e]=new K(this,e,"minor")),l&&T[e].isNew&&T[e].render(null,!0),T[e].render(null,!1,1)},I.prototype.renderTick=function(e,l,T){var E=this.ticks;(!this.isLinked||e>=this.min&&e<=this.max||this.grid&&this.grid.isColumn)&&(E[e]||(E[e]=new K(this,e)),T&&E[e].isNew&&E[e].render(l,!0,-1),E[e].render(l))},I.prototype.render=function(){var e=this,l=e.chart,T=e.logarithmic,E=e.options,L=e.isLinked,n=e.tickPositions,x=e.axisTitle,u=e.ticks,z=e.minorTicks,O=e.alternateBands,B=E.stackLabels,W=E.alternateGridColor,F=e.tickmarkOffset,U=e.axisLine,st=e.showAxis,rt=D(l.renderer.globalAnimation),ot,tt;if(e.labelEdge.length=0,e.overlap=!1,[u,z,O].forEach(function($){i($,function(N){N.isActive=!1})}),e.hasData()||L){var at=e.chart.hasRendered&&e.old&&o(e.old.min);e.minorTickInterval&&!e.categories&&e.getMinorTickPositions().forEac
2h(function($){e.renderMinorTick($,at)}),n.length&&(n.forEach(function($,N){e.renderTick($,N,at)}),F&&(e.min===0||e.single)&&(u[-1]||(u[-1]=new K(e,-1,null,!0)),u[-1].render(-1))),W&&n.forEach(function($,N){tt=typeof n[N+1]<"u"?n[N+1]+F:e.max-F,N%2===0&&$<e.max&&tt<=e.max+(l.polar?-F:F)&&(O[$]||(O[$]=new Q.PlotLineOrBand(e)),ot=$+F,O[$].options={from:T?T.lin2log(ot):ot,to:T?T.lin2log(tt):tt,color:W,className:"highcharts-alternate-grid"},O[$].render(),O[$].isActive=!0)}),e._addedPlotLB||(e._addedPlotLB=!0,(E.plotLines||[]).concat(E.plotBands||[]).forEach(function($){e.addPlotBandOrLine($)}))}[u,z,O].forEach(function($){var N=[],H=rt.duration;i($,function(Z,q){Z.isActive||(Z.render(q,!1,0),Z.isActive=!1,N.push(q))}),P(function(){for(var Z=N.length;Z--;)$[N[Z]]&&!$[N[Z]].isActive&&($[N[Z]].destroy(),delete $[N[Z]])},$!==O&&l.hasRendered&&H?H:0)}),U&&(U[U.isPlaced?"animate":"attr"]({d:this.getLinePath(U.strokeWidth())}),U.isPlaced=!0,U[st?"show":"hide"](st)),x&&st&&(E=e.getTitlePosition(),x[x.isNew?"attr":"animate"](E),x.isNew=!1),B&&B.enabled&&e.stacking&&e.stacking.renderStackTotals(),e.old={len:e.len,max:e.max,min:e.min,transA:e.transA,userMax:e.userMax,userMin:e.userMin},e.isDirty=!1,s(this,"afterRender")},I.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(e){e.render()})),this.series.forEach(function(e){e.isDirty=!0})},I.prototype.getKeepProps=function(){return this.keepProps||I.keepProps},I.prototype.destroy=function(e){var l=this,T=l.plotLinesAndBands,E=this.eventOptions;if(s(this,"destroy",{keepEvents:e}),e||a(l),[l.ticks,l.minorTicks,l.alternateBands].forEach(function(n){w(n)}),T)for(e=T.length;e--;)T[e].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(n){l[n]&&(l[n]=l[n].destroy())});for(var L in l.plotLinesAndBandsGroups)l.plotLinesAndBandsGroups[L]=l.plotLinesAndBandsGroups[L].destroy();i(l,function(n,x){l.getKeepProps().indexOf(x)===-1&&delete l[x]}),this.eventOptions=E},I.prototype.drawCrosshair=function(e,l){var T=this.crosshair,E=r(T&&T.snap,!0),L=this.chart,n,x=this.cross;if(s(this,"drawCrosshair",{e,point:l}),e||(e=this.cross&&this.cross.e),T&&(M(l)||!E)!==!1){if(E?M(l)&&(n=r(this.coll!=="colorAxis"?l.crosshairPos:null,this.isXAxis?l.plotX:this.len-l.plotY)):n=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),M(n)){var u={value:l&&(this.isXAxis?l.x:r(l.stackY,l.y)),translatedValue:n};L.polar&&C(u,{isCrosshair:!0,chartX:e&&e.chartX,chartY:e&&e.chartY,point:l}),u=this.getPlotLinePath(u)||null}if(!M(u)){this.hideCrosshair();return}E=this.categories&&!this.isRadial,x||(this.cross=x=L.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(E?"category ":"thin ")+(T.className||"")).attr({zIndex:r(T.zIndex,2)}).add(),L.styledMode||(x.attr({stroke:T.color||(E?V.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":r(T.width,1)}).css({"pointer-events":"none"}),T.dashStyle&&x.attr({dashstyle:T.dashStyle}))),x.show().attr({d:u}),E&&!T.width&&x.attr({"stroke-width":this.transA}),this.cross.e=e}else this.hideCrosshair();s(this,"afterDrawCrosshair",{e,point:l})},I.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),s(this,"afterHideCrosshair")},I.prototype.hasVerticalPanning=function(){var e=this.chart.options.chart.panning;return!!(e&&e.enabled&&/y/.test(e.type))},I.prototype.validatePositiveValue=function(e){return o(e)&&0<e},I.prototype.update=function(e,l){var T=this.chart;e=t(this.userOptions,e),this.destroy(!0),this.init(T,e),T.isDirtyBox=!0,r(l,!0)&&T.redraw()},I.prototype.remove=function(e){for(var l=this.chart,T=this.coll,E=this.series,L=E.length;L--;)E[L]&&E[L].remove(!1);b(l.axes,this),b(l[T],this),l[T].forEach(function(n,x){n.options.index=n.userOptions.index=x}),this.destroy(),l.isDirtyBox=!0,r(e,!0)&&l.redraw()},I.prototype.setTitle=function(e,l){this.update({title:e},l)},I.prototype.setCategories=function(e,l){this.update({categories:e},l)},I.defaultOptions=Y.defaultXAxisOptions,I.keepProps="extKey hcEvents names series userMax userMin".split(" "),I}(),X}),lt(_,"Core/Axis/DateTimeAxis.js",[_["Core/Utilities.js"]],function(X){var Y=X.addEvent,V=X.getMagnitude,et=X.normalizeTickInterval,J=X.timeUnits,Q;return function(K){function R(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function D(f){f.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new g(this))}var A=[];
2K.compose=function(f){return A.indexOf(f)===-1&&(A.push(f),f.keepProps.push("dateTime"),f.prototype.getTimeTicks=R,Y(f,"init",D)),f};var g=function(){function f(y){this.axis=y}return f.prototype.normalizeTimeTickInterval=function(y,k){var v=k||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];k=v[v.length-1];var S=J[k[0]],M=k[1],w;for(w=0;w<v.length&&(k=v[w],S=J[k[0]],M=k[1],!(v[w+1]&&y<=(S*M[M.length-1]+J[v[w+1][0]])/2));w++);return S===J.year&&y<5*S&&(M=[1,2,5]),y=et(y/S,M,k[0]==="year"?Math.max(V(y/S),1):1),{unitRange:S,count:y,unitName:k[0]}},f.prototype.getXDateFormat=function(y,k){var v=this.axis,S=v.chart.time;return v.closestPointRange?S.getDateFormat(v.closestPointRange,y,v.options.startOfWeek,k)||S.resolveDTLFormat(k.year).main:S.resolveDTLFormat(k.day).main},f}();K.Additions=g}(Q||(Q={})),Q}),lt(_,"Core/Axis/LogarithmicAxis.js",[_["Core/Utilities.js"]],function(X){var Y=X.addEvent,V=X.normalizeTickInterval,et=X.pick,J;return function(Q){function K(g){var f=this.logarithmic;g.userOptions.type!=="logarithmic"?this.logarithmic=void 0:f||(this.logarithmic=new A(this))}function R(){var g=this.logarithmic;g&&(this.lin2val=function(f){return g.lin2log(f)},this.val2lin=function(f){return g.log2lin(f)})}var D=[];Q.compose=function(g){return D.indexOf(g)===-1&&(D.push(g),g.keepProps.push("logarithmic"),Y(g,"init",K),Y(g,"afterInit",R)),g};var A=function(){function g(f){this.axis=f}return g.prototype.getLogTickPositions=function(f,y,k,v){var S=this.axis,M=S.len,w=S.options,b=[];if(v||(this.minorAutoInterval=void 0),.5<=f)f=Math.round(f),b=S.getLinearTickPositions(f,y,k);else if(.08<=f){var j=Math.floor(y),C,s=w=void 0;for(M=.3<f?[1,2,4]:.15<f?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];j<k+1&&!s;j++){var d=M.length;for(C=0;C<d&&!s;C++){var o=this.log2lin(this.lin2log(j)*M[C]);o>y&&(!v||w<=k)&&typeof w<"u"&&b.push(w),w>k&&(s=!0),w=o}}}else y=this.lin2log(y),k=this.lin2log(k),f=v?S.getMinorTickInterval():w.tickInterval,f=et(f==="auto"?null:f,this.minorAutoInterval,w.tickPixelInterval/(v?5:1)*(k-y)/((v?M/S.tickPositions.length:M)||1)),f=V(f),b=S.getLinearTickPositions(f,y,k).map(this.log2lin),v||(this.minorAutoInterval=f/5);return v||(S.tickInterval=f),b},g.prototype.lin2log=function(f){return Math.pow(10,f)},g.prototype.log2lin=function(f){return Math.log(f)/Math.LN10},g}();Q.Additions=A}(J||(J={})),J}),lt(_,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[_["Core/Utilities.js"]],function(X){var Y=X.erase,V=X.extend,et=X.isNumber,J;return function(Q){var K=[],R;Q.compose=function(A,g){return R||(R=A),K.indexOf(g)===-1&&(K.push(g),V(g.prototype,D.prototype)),g};var D=function(){function A(){}return A.prototype.getPlotBandPath=function(g,f,y){y===void 0&&(y=this.options);var k=this.getPlotLinePath({value:f,force:!0,acrossPanes:y.acrossPanes}),v=[],S=this.horiz;if(f=!et(this.min)||!et(this.max)||g<this.min&&f<this.min||g>this.max&&f>this.max,g=this.getPlotLinePath({value:g,force:!0,acrossPanes:y.acrossPanes}),y=1,g&&k){if(f){var M=g.toString()===k.toString();y=0}for(f=0;f<g.length;f+=2){var w=g[f],b=g[f+1],j=k[f],C=k[f+1];w[0]!=="M"&&w[0]!=="L"||b[0]!=="M"&&b[0]!=="L"||j[0]!=="M"&&j[0]!=="L"||C[0]!=="M"&&C[0]!=="L"||(S&&j[1]===w[1]?(j[1]+=y,C[1]+=y):S||j[2]!==w[2]||(j[2]+=y,C[2]+=y),v.push(["M",w[1],w[2]],["L",b[1],b[2]],["L",C[1],C[2]],["L",j[1],j[2]],["Z"])),v.isFlat=M}}return v},A.prototype.addPlotBand=function(g){return this.addPlotBandOrLine(g,"plotBands")},A.prototype.addPlotLine=function(g){return this.addPlotBandOrLine(g,"plotLines")},A.prototype.addPlotBandOrLine=function(g,f){var y=this,k=this.userOptions,v=new R(this,g);if(this.visible&&(v=v.render()),v){if(this._addedPlotLB||(this._addedPlotLB=!0,(k.plotLines||[]).concat(k.plotBands||[]).forEach(function(M){y.addPlotBandOrLine(M)})),f){var S=k[f]||[];S.push(g),k[f]=S}this.plotLinesAndBands.push(v)}return v},A.prototype.removePlotBandOrLine=function(g){var f=this.plotLinesAndBands,y=this.options,k=this.userOptions;if(f){for(var v=f.length;v--;)f[v].id===g&&f[v].destroy();[y.plotLines||[],k.plotLines||[],y.plotBands||[],k.plotBands||[]].forEac
2h(function(S){for(v=S.length;v--;)(S[v]||{}).id===g&&Y(S,S[v])})}},A.prototype.removePlotBand=function(g){this.removePlotBandOrLine(g)},A.prototype.removePlotLine=function(g){this.removePlotBandOrLine(g)},A}()}(J||(J={})),J}),lt(_,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[_["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],_["Core/Utilities.js"]],function(X,Y){var V=Y.arrayMax,et=Y.arrayMin,J=Y.defined,Q=Y.destroyObjectProperties,K=Y.erase,R=Y.fireEvent,D=Y.merge,A=Y.objectEach,g=Y.pick;return Y=function(){function f(y,k){this.axis=y,k&&(this.options=k,this.id=k.id)}return f.compose=function(y){return X.compose(f,y)},f.prototype.render=function(){R(this,"render");var y=this,k=y.axis,v=k.horiz,S=k.logarithmic,M=y.options,w=M.color,b=g(M.zIndex,0),j=M.events,C={},s=k.chart.renderer,d=M.label,o=y.label,h=M.to,t=M.from,p=M.value,i=y.svgElem,r=[],c=J(t)&&J(h);r=J(p);var a=!i,m={class:"highcharts-plot-"+(c?"band ":"line ")+(M.className||"")},P=c?"bands":"lines";if(S&&(t=S.log2lin(t),h=S.log2lin(h),p=S.log2lin(p)),k.chart.styledMode||(r?(m.stroke=w||"#999999",m["stroke-width"]=g(M.width,1),M.dashStyle&&(m.dashstyle=M.dashStyle)):c&&(m.fill=w||"#e6ebf5",M.borderWidth&&(m.stroke=M.borderColor,m["stroke-width"]=M.borderWidth))),C.zIndex=b,P+="-"+b,(S=k.plotLinesAndBandsGroups[P])||(k.plotLinesAndBandsGroups[P]=S=s.g("plot-"+P).attr(C).add()),a&&(y.svgElem=i=s.path().attr(m).add(S)),r)r=k.getPlotLinePath({value:p,lineWidth:i.strokeWidth(),acrossPanes:M.acrossPanes});else if(c)r=k.getPlotBandPath(t,h,M);else return;return!y.eventsAdded&&j&&(A(j,function(G,I){i.on(I,function(e){j[I].apply(y,[e])})}),y.eventsAdded=!0),(a||!i.d)&&r&&r.length?i.attr({d:r}):i&&(r?(i.show(),i.animate({d:r})):i.d&&(i.hide(),o&&(y.label=o=o.destroy()))),d&&(J(d.text)||J(d.formatter))&&r&&r.length&&0<k.width&&0<k.height&&!r.isFlat?(d=D({align:v&&c&&"center",x:v?!c&&4:10,verticalAlign:!v&&c&&"middle",y:v?c?16:10:c?6:-4,rotation:v&&!c&&90},d),this.renderLabel(d,r,c,b)):o&&o.hide(),y},f.prototype.renderLabel=function(y,k,v,S){var M=this.axis,w=M.chart.renderer,b=this.label;b||(this.label=b=w.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(v?"band":"line")+"-label "+(y.className||""),zIndex:S}).add(),M.chart.styledMode||b.css(D({textOverflow:"ellipsis"},y.style))),S=k.xBounds||[k[0][1],k[1][1],v?k[2][1]:k[0][1]],k=k.y
2Bounds||[k[0][2],k[1][2],v?k[2][2]:k[0][2]],v=et(S),w=et(k),b.align(y,!1,{x:v,y:w,width:V(S)-v,height:V(k)-w}),b.alignValue&&b.alignValue!=="left"||(y=y.clip?M.width:M.chart.chartWidth,b.css({width:(b.rotation===90?M.height-(b.alignAttr.y-M.top):y-(b.alignAttr.x-M.left))+"px"})),b.show(!0)},f.prototype.getLabelText=function(y){return J(y.formatter)?y.formatter.call(this):y.text},f.prototype.destroy=function(){K(this.axis.plotLinesAndBands,this),delete this.axis,Q(this)},f}(),Y}),lt(_,"Core/Tooltip.js",[_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Utilities.js"]],function(X,Y,V,et,J){var Q=X.format,K=Y.doc,R=V.distribute,D=J.clamp,A=J.css,g=J.discardElement,f=J.extend,y=J.fireEvent,k=J.isArray,v=J.isNumber,S=J.isString,M=J.merge,w=J.pick,b=J.splat,j=J.syncTimeout;return X=function(){function C(s,d){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=s,this.init(s,d)}return C.prototype.applyFilter=function(){var s=this.chart;s.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+s.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},C.prototype.bodyFormatter=function(s){return s.map(function(d){var o=d.series.tooltipOptions;return(o[(d.point.formatPrefix||"point")+"Formatter"]||d.point.tooltipFormatter).call(d.point,o[(d.point.formatPrefix||"point")+"Format"]||"")})},C.prototype.cleanSplit=function(s){this.chart.series.forEach(function(d){var o=d&&d.tt;o&&(!o.isActive||s?d.tt=o.destroy():o.isActive=!1)})},C.prototype.defaultFormatter=function(s){var d=this.points||b(this),o=[s.tooltipFooterHeaderFormatter(d[0])];return o=o.concat(s.bodyFormatter(d)),o.push(s.tooltipFooterHeaderFormatter(d[0],!0)),o},C.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),g(this.container)),J.clearTimeout(this.hideTimer),J.clearTimeout(this.tooltipTimeout)},C.prototype.getAnchor=function(s,d){var o=this.chart,h=o.pointer,t=o.inverted,p=o.plotTop;if(o=o.plotLeft,s=b(s),s[0].series&&s[0].series.yAxis&&!s[0].series.yAxis.options.reversedStacks&&(s=s.slice().reverse()),this.followPointer&&d)typeof d.chartX>"u"&&(d=h.normalize(d)),s=[d.chartX-o,d.chartY-p];else if(s[0].tooltipPos)s=s[0].tooltipPos;else{var i=0,r=0;s.forEach(function(c){(c=c.pos(!0))&&(i+=c[0],r+=c[1])}),i/=s.length,r/=s.length,this.shared&&1<s.length&&d&&(t?i=d.chartX:r=d.chartY),s=[i-o,r-p]}return s.map(Math.round)},C.prototype.getClassName=function(s,d,o){var h=s.series,t=h.options;return[this.options.className,"highcharts-label",o&&"highcharts-tooltip-header",d?"highcharts-tooltip-box":"highcharts-tooltip",!o&&"highcharts-color-"+w(s.colorIndex,h.colorIndex),t&&t.className].filter(S).join(" ")},C.prototype.getLabel=function(){var s=this,d=this.chart.styledMode,o=this.options,h=this.split&&this.allowShared,t=o.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),p,i=this.chart.renderer;if(s.label){var r=!s.label.hasClass("highcharts-label");(h&&!r||!h&&r)&&s.destroy()}if(!this.label){if(this.outside){r=this.chart.options.chart.style;var c=et.getRendererType();this.container=p=Y.doc.createElement("div"),p.className="highcharts-tooltip-container",A(p,{position:"absolute",top:"1px",pointerEvents:t,zIndex:Math.max(this.options.style.zIndex||0,(r&&r.zIndex||0)+3)}),Y.doc.body.appendChild(p),this.renderer=i=new c(p,0,0,r,void 0,void 0,i.styledMode)}if(h?this.label=i.g("tooltip"):(this.label=i.label("",0,0,o.shape,void 0,void 0,o.useHTML,void 0,"tooltip").attr({padding:o.padding,r:o.borderRadius}),d||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth}).css(o.style).css({pointerEvents:t}).shadow(o.shadow)),d&&o.shadow&&(this.applyFilter(),this.label.attr({filter:"url
2(#drop-shadow-"+this.chart.index+")"})),s.outside&&!s.split){var a=this.label,m=a.xSetter,P=a.ySetter;a.xSetter=function(G){m.call(a,s.distance),p.style.left=G+"px"},a.ySetter=function(G){P.call(a,s.distance),p.style.top=G+"px"}}this.label.attr({zIndex:8}).add()}return this.label},C.prototype.getPosition=function(s,d,o){var h=this.chart,t=this.distance,p={},i=h.inverted&&o.h||0,r=this.outside,c=r?K.documentElement.clientWidth-2*t:h.chartWidth,a=r?Math.max(K.body.scrollHeight,K.documentElement.scrollHeight,K.body.offsetHeight,K.documentElement.offsetHeight,K.documentElement.clientHeight):h.chartHeight,m=h.pointer.getChartPosition(),P=function(x){var u=x==="x";return[x,u?c:a,u?s:d].concat(r?[u?s*m.scaleX:d*m.scaleY,u?m.left-t+(o.plotX+h.plotLeft)*m.scaleX:m.top-t+(o.plotY+h.plotTop)*m.scaleY,0,u?c:a]:[u?s:d,u?o.plotX+h.plotLeft:o.plotY+h.plotTop,u?h.plotLeft:h.plotTop,u?h.plotLeft+h.plotWidth:h.plotTop+h.plotHeight])},G=P("y"),I=P("x"),e;P=!!o.negative,!h.polar&&h.hoverSeries&&h.hoverSeries.yAxis&&h.hoverSeries.yAxis.reversed&&(P=!P);var l=!this.followPointer&&w(o.ttBelow,!h.inverted===P),T=function(x,u,z,O,B,W,F){var U=r?x==="y"?t*m.scaleY:t*m.scaleX:t,st=(z-O)/2,rt=O<B-t,ot=B+t+O<u,tt=B-U-z+st;if(B=B+U-st,l&&ot)p[x]=B;else if(!l&&rt)p[x]=tt;else if(rt)p[x]=Math.min(F-O,0>tt-i?tt:tt-i);else if(ot)p[x]=Math.max(W,B+i+z>u?B:B+i);else return!1},E=function(x,u,z,O,B){var W;return B<t||B>u-t?W=!1:p[x]=B<z/2?1:B>u-O/2?u-O-2:B-z/2,W},L=function(x){var u=G;G=I,I=u,e=x},n=function(){T.apply(0,G)!==!1?E.apply(0,I)!==!1||e||(L(!0),n()):e?p.x=p.y=0:(L(!0),n())};return(h.inverted||1<this.len)&&L(),n(),p},C.prototype.hide=function(s){var d=this;J.clearTimeout(this.hideTimer),s=w(s,this.options.hideDelay),this.isHidden||(this.hideTimer=j(function(){d.getLabel().fadeOut(s&&void 0),d.isHidden=!0},s))},C.prototype.init=function(s,d){this.chart=s,this.options=d,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=d.split&&!s.inverted&&!s.polar,this.shared=d.shared||this.split,this.outside=w(d.outside,!(!s.scrollablePixelsX&&!s.scrollablePixelsY))},C.prototype.shouldStickOnContact=function(s){return!(this.followPointer||!this.options.stickOnContact||s&&!this.chart.pointer.inClass(s.target,"highcharts-tooltip"))},C.prototype.move=function(s,d,o,h){var t=this,p=t.now,i=t.options.animation!==!1&&!t.isHidden&&(1<Math.abs(s-p.x)||1<Math.abs(d-p.y)),r=t.followPointer||1<t.len;f(p,{x:i?(2*p.x+s)/3:s,y:i?(p.y+d)/2:d,anchorX:r?void 0:i?(2*p.anchorX+o)/3:o,anchorY:r?void 0:i?(p.anchorY+h)/2:h}),t.getLabel().attr(p),t.drawTracker(),i&&(J.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(s,d,o,h)},32))},C.prototype.refresh=function(s,d){var o=this.chart,h=this.options,t=o.pointer,p=b(s),i=p[0],r=[],c=h.formatter||this.defaultFormatter,a=this.shared,m=o.styledMode,P={};if(h.enabled&&i.series){J.clearTimeout(this.hideTimer),this.allowShared=!(!k(s)&&s.series&&s.series.noSharedTooltip),this.followPointer=!this.split&&i.series.tooltipOptions.followPointer,s=this.getAnchor(s,d);var G=s[0],I=s[1];if(a&&this.allowShared?(t.applyInactiveState(p),p.forEach(function(T){T.setState("hover"),r.push(T.getLabelConfig())}),P={x:i.category,y:i.y},P.points=r):P=i.getLabelConfig(),this.len=r.length,c=c.call(P,this),a=i.series,this.distance=w(a.tooltipOptions.distance,16),c===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(c,p);else{var e=G,l=I;if(d&&t.isDirectTouch&&(e=d.chartX-o.plotLeft,l=d.chartY-o.plotTop),o.polar||a.options.clip===!1||p.some(function(T){return t.isDirectTouch||T.series.shouldShowTooltip(e,l)}))d=this.getLabel(),h.style.width&&!m||d.css({width:o.spacingBox.width+"px"}),d.attr({text:c&&c.join?c.join(""):c}),d.addClass(this.getClassName(i),!0),m||d.attr({stroke:h.borderColor||i.color||a.color||"#666666"}),this.updatePosition({plotX:G,plotY:I,negative:i.negative,ttBelow:i.ttBelow,h:s[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}y(this,"refresh")}},C.prototype.renderSplit=function(s,d){function o(ot,tt,at,$,N){return N===void 0&&(N=!0),at?(tt=O?0:U,ot=D(ot-$/2,x.left,x.right-$-(h.outside?B:0))):(tt-=W,ot=N?ot-$-E:ot+E,ot=D(ot,N?ot:x.left,x.right)),{x:ot,y:tt}}
2var h=this,t=h.chart,p=h.chart,i=p.chartWidth,r=p.chartHeight,c=p.plotHeight,a=p.plotLeft,m=p.plotTop,P=p.pointer,G=p.scrollablePixelsY;G=G===void 0?0:G;var I=p.scrollablePixelsX,e=p.scrollingContainer;e=e===void 0?{scrollLeft:0,scrollTop:0}:e;var l=e.scrollLeft;e=e.scrollTop;var T=p.styledMode,E=h.distance,L=h.options,n=h.options.positioner,x=h.outside&&typeof I!="number"?K.documentElement.getBoundingClientRect():{left:l,right:l+i,top:e,bottom:e+r},u=h.getLabel(),z=this.renderer||t.renderer,O=!(!t.xAxis[0]||!t.xAxis[0].opposite);t=P.getChartPosition();var B=t.left;t=t.top;var W=m+e,F=0,U=c-G;S(s)&&(s=[!1,s]),s=s.slice(0,d.length+1).reduce(function(ot,tt,at){if(tt!==!1&&tt!==""){at=d[at-1]||{isHeader:!0,plotX:d[0].plotX,plotY:c,series:{}};var $=at.isHeader,N=$?h:at.series;tt=tt.toString();var H=N.tt,Z=at.isHeader,q=at.series;H||(H={padding:L.padding,r:L.borderRadius},T||(H.fill=L.backgroundColor,H["stroke-width"]=L.borderWidth),H=z.label("",0,0,L[Z?"headerShape":"shape"],void 0,void 0,L.useHTML).addClass(h.getClassName(at,!0,Z)).attr(H).add(u)),H.isActive=!0,H.attr({text:tt}),T||H.css(L.style).shadow(L.shadow).attr({stroke:L.borderColor||at.color||q.color||"#333333"}),N=N.tt=H,Z=N.getBBox(),tt=Z.width+N.strokeWidth(),$&&(F=Z.height,U+=F,O&&(W-=F)),q=at.plotX,q=q===void 0?0:q,H=at.plotY,H=H===void 0?0:H;var it=at.series;if(at.isHeader){q=a+q;var nt=m+c/2}else{var ht=it.xAxis,ct=it.yAxis;q=ht.pos+D(q,-E,ht.len+E),it.shouldShowTooltip(0,ct.pos-m+H,{ignoreX:!0})&&(nt=ct.pos+H)}q=D(q,x.left-E,x.right+E),typeof nt=="number"?(Z=Z.height+1,H=n?n.call(h,tt,Z,at):o(q,nt,$,tt),ot.push({align:n?0:void 0,anchorX:q,anchorY:nt,boxWidth:tt,point:at,rank:w(H.rank,$?1:0),size:Z,target:H.y,tt:N,x:H.x})):N.isActive=!1}return ot},[]),!n&&s.some(function(ot){var tt=(h.outside?B:0)+ot.anchorX;return tt<x.left&&tt+ot.boxWidth<x.right?!0:tt<B-x.left+ot.boxWidth&&x.right-tt>tt})&&(s=s.map(function(ot){var tt=o(ot.anchorX,ot.anchorY,ot.point.isHeader,ot.boxWidth,!1);return f(ot,{target:tt.y,x:tt.x})})),h.cleanSplit(),R(s,U);var st=B,rt=B;s.forEach(function(ot){var tt=ot.x,at=ot.boxWidth;ot=ot.isHeader,ot||(h.outside&&B+tt<st&&(st=B+tt),!ot&&h.outside&&st+at>rt&&(rt=B+tt))}),s.forEach(function(ot){var tt=ot.x,at=ot.anchorX,$=ot.pos,N=ot.point.isHeader;if($={visibility:typeof $>"u"?"hidden":"inherit",x:tt,y:($||0)+W,anchorX:at,anchorY:ot.anchorY},h.outside&&tt<at){var H=B-st;0<H&&(N||($.x=tt+H,$.anchorX=at+H),N&&($.x=(rt-st)/2,$.anchorX=at+H))}ot.tt.attr($)}),s=h.container,G=h.renderer,h.outside&&s&&G&&(p=u.getBBox(),G.setSize(p.width+p.x,p.height+p.y,!1),s.style.left=st+"px",s.style.top=t+"px")},C.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var s=this.chart,d=this.label,o=this.shared?s.hoverPoints:s.hoverPoint;if(d&&o){var h={x:0,y:0,width:0,height:0};o=this.getAnchor(o);var t=d.getBBox();o[0]+=s.plotLeft-d.translateX,o[1]+=s.plotTop-d.translateY,h.x=Math.min(0,o[0]),h.y=Math.min(0,o[1]),h.width=0>o[0]?Math.max(Math.abs(o[0]),t.width-o[0]):Math.max(Math.abs(o[0]),t.width),h.height=0>o[1]?Math.max(Math.abs(o[1]),t.height-Math.abs(o[1])):Math.max(Math.abs(o[1]),t.height),this.tracker?this.tracker.attr(h):(this.tracker=d.renderer.rect(h).addClass("highcharts-tracker").add(d),s.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},C.prototype.styledModeFormat=function(s){return s.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}"')},C.prototype.tooltipFooterHeaderFormatter=function(s,d){var o=s.series,h=o.tooltipOptions,t=o.xAxis,p=t&&t.dateTime;t={isFooter:d,labelConfig:s};var i=h.xDateFormat,r=h[d?"footerFormat":"headerFormat"];return y(this,"headerFormatter",t,function(c){p&&!i&&v(s.key)&&(i=p.getXDateFormat(s.key,h.dateTimeLabelFormats)),p&&i&&(s.point&&s.point.tooltipDateKeys||["key"]).forEac
2h(function(a){r=r.replace("{point."+a+"}","{point."+a+":"+i+"}")}),o.chart.styledMode&&(r=this.styledModeFormat(r)),c.text=Q(r,{point:s,series:o},this.chart)}),t.text},C.prototype.update=function(s){this.destroy(),M(!0,this.chart.options.tooltip.userOptions,s),this.init(this.chart,M(!0,this.options,s))},C.prototype.updatePosition=function(s){var d=this.chart,o=this.distance,h=this.options,t=d.pointer,p=this.getLabel(),i=t.getChartPosition();t=i.left;var r=i.top,c=i.scaleX;i=i.scaleY;var a=(h.positioner||this.getPosition).call(this,p.width,p.height,s),m=(s.plotX||0)+d.plotLeft;s=(s.plotY||0)+d.plotTop,this.outside&&(h.positioner&&(a.x+=t-o,a.y+=r-o),o=h.borderWidth+2*o,this.renderer.setSize(p.width+o,p.height+o,!1),(c!==1||i!==1)&&(A(this.container,{transform:"scale(".concat(c,", ").concat(i,")")}),m*=c,s*=i),m+=t-a.x,s+=r-a.y),this.move(Math.round(a.x),Math.round(a.y||0),m,s)},C}(),X}),lt(_,"Core/Series/Point.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Animation/AnimationUtilities.js"],_["Core/Defaults.js"],_["Core/FormatUtilities.js"],_["Core/Utilities.js"]],function(X,Y,V,et,J){var Q=Y.animObject,K=V.defaultOptions,R=et.format,D=J.addEvent,A=J.defined,g=J.erase,f=J.extend,y=J.fireEvent,k=J.getNestedProperty,v=J.isArray,S=J.isFunction,M=J.isNumber,w=J.isObject,b=J.merge,j=J.objectEach,C=J.pick,s=J.syncTimeout,d=J.removeEvent,o=J.uniqueKey;return Y=function(){function h(){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 h.prototype.animateBeforeDestroy=function(){var t=this,p={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach(function(r){t[r]=t[r].animate(r==="dataLabel"?{x:t[r].startXPos,y:t[r].startYPos,opacity:0}:p)}),i.plural.forEach(function(r){t[r].forEach(function(c){c.element&&c.animate(f({x:t.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})},h.prototype.applyOptions=function(t,p){var i=this.series,r=i.options.pointValKey||i.pointValKey;return t=h.prototype.optionsToObject.call(this,t),f(this,t),this.options=this.options?f(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,r&&(this.y=h.prototype.getNestedProperty.call(this,r)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&typeof p>"u"&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),typeof this.x>"u"&&i?this.x=typeof p>"u"?i.autoIncrement():p:M(t.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(t.x)),this},h.prototype.destroy=function(){function t(){(p.graphic||p.graphics||p.dataLabel||p.dataLabels)&&(d(p),p.destroyElements());for(m in p)p[m]=null}var p=this,i=p.series,r=i.chart;i=i.options.dataSorting;var c=r.hoverPoints,a=Q(p.series.chart.renderer.globalAnimation),m;p.legendItem&&r.legend.destroyItem(p),c&&(p.setState(),g(c,p),c.length||(r.hoverPoints=null)),p===r.hoverPoint&&p.onMouseOut(),i&&i.enabled?(this.animateBeforeDestroy(),s(t,a.duration)):t(),r.pointCount--},h.prototype.destroyElements=function(t){var p=this;t=p.getGraphicalProps(t),t.singular.forEach(function(i){p[i]=p[i].destroy()}),t.plural.forEach(function(i){p[i].forEach(function(r){r&&r.element&&r.destroy()}),delete p[i]})},h.prototype.firePointEvent=function(t,p,i){var r=this,c=this.series.options;(c.point.events[t]||r.options&&r.options.events&&r.options.events[t])&&r.importEvents(),t==="click"&&c.allowPointSelect&&(i=function(a){r.select&&r.select(null,a.ctrlKey||a.metaKey||a.shiftKey)}),y(r,t,p,i)},h.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(typeof this.colorIndex<"u"?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},h.prototype.getGraphicalProps=function(t){var p=this,i=[],r={singular:[],plural:[]},c;for(t=t||{graphic:1,dataLabel:1}
2,t.graphic&&i.push("graphic","shadowGroup"),t.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),c=i.length;c--;){var a=i[c];p[a]&&r.singular.push(a)}return["graphic","dataLabel","connector"].forEach(function(m){var P=m+"s";t[m]&&p[P]&&r.plural.push(P)}),r},h.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}},h.prototype.getNestedProperty=function(t){if(t)return t.indexOf("custom.")===0?k(t,this.options):this[t]},h.prototype.getZone=function(){var t=this.series,p=t.zones;t=t.zoneAxis||"y";var i,r=0;for(i=p[r];this[t]>=i.value;)i=p[++r];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},h.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},h.prototype.init=function(t,p,i){return this.series=t,this.applyOptions(p,i),this.id=A(this.id)?this.id:o(),this.resolveColor(),t.chart.pointCount++,y(this,"afterInit"),this},h.prototype.isValid=function(){return this.x!==null&&M(this.y)},h.prototype.optionsToObject=function(t){var p=this.series,i=p.options.keys,r=i||p.pointArrayMap||["y"],c=r.length,a={},m=0,P=0;if(M(t)||t===null)a[r[0]]=t;else if(v(t))for(!i&&t.length>c&&(p=typeof t[0],p==="string"?a.name=t[0]:p==="number"&&(a.x=t[0]),m++);P<c;)i&&typeof t[m]>"u"||(0<r[P].indexOf(".")?h.prototype.setNestedProperty(a,t[m],r[P]):a[r[P]]=t[m]),m++,P++;else typeof t=="object"&&(a=t,t.dataLabels&&(p._hasPointLabels=!0),t.marker&&(p._hasPointMarkers=!0));return a},h.prototype.pos=function(t,p){p===void 0&&(p=this.plotY);var i=this.plotX,r=this.series,c=r.chart,a=r.xAxis;r=r.yAxis;var m=0,P=0;if(M(i)&&M(p))return t&&(m=a?a.pos:c.plotLeft,P=r?r.pos:c.plotTop),c.inverted&&a&&r?[r.len-p+P,a.len-i+m]:[i+m,p+P]},h.prototype.resolveColor=function(){var t=this.series,p=t.chart.styledMode,i=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!p){i=t.options.colors||t.chart.options.colors;var r=i[t.colorCounter];i=i.length}p=t.colorCounter,t.colorCounter++,t.colorCounter===i&&(t.colorCounter=0)}else p||(r=t.color),p=t.colorIndex;this.colorIndex=C(this.options.colorIndex,p),this.color=C(this.options.color,r)},h.prototype.setNestedProperty=function(t,p,i){return i.split(".").reduce(function(r,c,a,m){return r[c]=m.length-1===a?p:w(r[c],!0)?r[c]:{},r[c]},t),t},h.prototype.shouldDraw=function(){return!this.isNull},h.prototype.tooltipFormatter=function(t){var p=this.series,i=p.tooltipOptions,r=C(i.valueDecimals,""),c=i.valuePrefix||"",a=i.valueSuffix||"";return p.chart.styledMode&&(t=p.chart.tooltip.styledModeFormat(t)),(p.pointArrayMap||["y"]).forEac
2h(function(m){m="{point."+m,(c||a)&&(t=t.replace(RegExp(m+"}","g"),c+m+"}"+a)),t=t.replace(RegExp(m+"}","g"),m+":,."+r+"f}")}),R(t,{point:this,series:this.series},p.chart)},h.prototype.update=function(t,p,i,r){function c(){a.applyOptions(t);var l=P&&a.hasMockGraphic;l=a.y===null?!l:l,P&&l&&(a.graphic=P.destroy(),delete a.hasMockGraphic),w(t,!0)&&(P&&P.element&&t&&t.marker&&typeof t.marker.symbol<"u"&&(a.graphic=P.destroy()),t&&t.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy()),a.connector&&(a.connector=a.connector.destroy())),e=a.index,m.updateParallelArrays(a,e),I.data[e]=w(I.data[e],!0)||w(t,!0)?a.options:C(t,I.data[e]),m.isDirty=m.isDirtyData=!0,!m.fixedBox&&m.hasCartesianSeries&&(G.isDirtyBox=!0),I.legendType==="point"&&(G.isDirtyLegend=!0),p&&G.redraw(i)}var a=this,m=a.series,P=a.graphic,G=m.chart,I=m.options,e;p=C(p,!0),r===!1?c():a.firePointEvent("update",{options:t},c)},h.prototype.remove=function(t,p){this.series.removePoint(this.series.data.indexOf(this),t,p)},h.prototype.select=function(t,p){var i=this,r=i.series,c=r.chart;this.selectedStaging=t=C(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:p},function(){i.selected=i.options.selected=t,r.options.data[r.data.indexOf(i)]=i.options,i.setState(t&&"select"),p||c.getSelectedPoints().forEac
2h(function(a){var m=a.series;a.selected&&a!==i&&(a.selected=a.options.selected=!1,m.options.data[m.data.indexOf(a)]=a.options,a.setState(c.hoverPoints&&m.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})}),delete this.selectedStaging},h.prototype.onMouseOver=function(t){var p=this.series.chart,i=p.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,p.inverted),i.runPointActions(t,this)},h.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(p){p.setState()}),t.hoverPoints=t.hoverPoint=null},h.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,p=b(t.series.options.point,t.options).events;t.events=p,j(p,function(i,r){S(i)&&D(t,r,i)}),this.hasImportedEvents=!0}},h.prototype.setState=function(t,p){var i=this.series,r=this.state,c=i.options.states[t||"normal"]||{},a=K.plotOptions[i.type].marker&&i.options.marker,m=a&&a.enabled===!1,P=a&&a.states&&a.states[t||"normal"]||{},G=P.enabled===!1,I=this.marker||{},e=i.chart,l=a&&i.markerAttribs,T=i.halo,E,L=i.stateMarkerGraphic;if(t=t||"",!(t===this.state&&!p||this.selected&&t!=="select"||c.enabled===!1||t&&(G||m&&P.enabled===!1)||t&&I.states&&I.states[t]&&I.states[t].enabled===!1)){if(this.state=t,l&&(E=i.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(r&&this.graphic.removeClass("highcharts-point-"+r),t&&this.graphic.addClass("highcharts-point-"+t),!e.styledMode){r=i.pointAttribs(this,t);var n=C(e.options.chart.animation,c.animation),x=r.opacity;i.options.inactiveOtherPoints&&M(x)&&((this.dataLabels||[]).forEach(function(u){u&&!u.hasClass("highcharts-data-label-hidden")&&u.animate({opacity:x},n)}),this.connector&&this.connector.animate({opacity:x},n)),this.graphic.animate(r,n)}E&&this.graphic.animate(E,C(e.options.chart.animation,P.animation,a.animation)),L&&L.hide()}else t&&P&&(a=I.symbol||i.symbol,L&&L.currentSymbol!==a&&(L=L.destroy()),E&&(L?L[p?"animate":"attr"]({x:E.x,y:E.y}):a&&(i.stateMarkerGraphic=L=e.renderer.symbol(a,E.x,E.y,E.width,E.height).add(i.markerGroup),L.currentSymbol=a)),!e.styledMode&&L&&this.state!=="inactive"&&L.attr(i.pointAttribs(this,t))),L&&(L[t&&this.isInside?"show":"hide"](),L.element.point=this,L.addClass(this.getClassName(),!0));c=c.halo,E=(L=this.graphic||L)&&L.visibility||"inherit",c&&c.size&&L&&E!=="hidden"&&!this.isCluster?(T||(i.halo=T=e.renderer.path().add(L.parentGroup)),T.show()[p?"animate":"attr"]({d:this.haloPath(c.size)}),T.attr({class:"highcharts-halo highcharts-color-"+C(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:E,zIndex:-1}),T.point=this,e.styledMode||T.attr(f({fill:this.color||i.color,"fill-opacity":c.opacity},X.filterUserAttributes(c.attributes||{})))):T&&T.point&&T.point.haloPath&&T.animate({d:T.point.haloPath(0)},null,T.hide),y(this,"afterSetState",{state:t})}},h.prototype.haloPath=function(t){var p=this.pos();return p?this.series.chart.renderer.symbols.circle(Math.floor(p[0])-t,p[1]-t,2*t,2*t):[]},h}(),Y}),lt(_,"Core/Pointer.js",[_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Tooltip.js"],_["Core/Utilities.js"]],function(X,Y,V,et){var J=X.parse,Q=Y.charts,K=Y.noop,R=et.addEvent,D=et.attr,A=et.css,g=et.defined,f=et.extend,y=et.find,k=et.fireEvent,v=et.isNumber,S=et.isObject,M=et.objectEach,w=et.offset,b=et.pick,j=et.splat;return X=function(){function C(s,d){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=s,this.hasDragged=!1,this.options=d,this.init(s,d)}return C.prototype.applyInactiveState=function(s){var d=[],o;(s||[]).forEach(function(h){o=h.series,d.push(o),o.linkedParent&&d.push(o.linkedParent),o.linkedSeries&&(d=d.concat(o.linkedSeries)),o.navigatorSeries&&d.push(o.navigatorSeries)}),this.chart.series.forEach(function(h){d.indexOf(h)===-1?h.setState("inactive",!0):h.options.inactiveOtherPoints&&h.setAllPointsToState("inactive")})},C.prototype.destroy=function(){var s=this;this.eventsToUnbind.forEach(function(d){return d()}),this.eventsToUnbind=[],Y.chartCount||(C.unbindDocumentMouseUp&&(C.unbindDocumentMouseUp=C.unbindDocumentMouseUp()),C.unbindDocumentTouchEnd&&(C.unbindDocumentTouchEnd=C.unbindDocumentTouchEnd())),clearInterval(s.tooltipTimeout),M(s,function(d,o){s[o]=void 0})},C.prototype.getSelectionMarkerAttrs=function(s,d){var o=this,h={args:{chartX:s,chartY:d},attrs:{},shapeType:"rect"};return k(this,"getSelectionMarkerAttrs",h,function(t){var p=o.chart,i=o.mouseDownX;i=i===void 0?0:i;var r=o.mouseDownY;r=r===void 0?0:r;var c=o.zoomHor,a=o.zoomVert;t=t.attrs,t.x=p.plotLeft,t.y=p.plotTop,t.width=c?1:p.plotWidth,t.height=a?1:p.plotHeight,c&&(p=s-i,t.width=Math.abs(p),t.x=(0<p?0:p)+i),a&&(p=d-r,t.he
2ight=Math.abs(p),t.y=(0<p?0:p)+r)}),h},C.prototype.drag=function(s){var d=this.chart,o=d.options.chart,h=d.plotLeft,t=d.plotTop,p=d.plotWidth,i=d.plotHeight,r=this.mouseDownX||0,c=this.mouseDownY||0,a=S(o.panning)?o.panning&&o.panning.enabled:o.panning,m=o.panKey&&s[o.panKey+"Key"],P=s.chartX,G=s.chartY,I=this.selectionMarker;I&&I.touch||(P<h?P=h:P>h+p&&(P=h+p),G<t?G=t:G>t+i&&(G=t+i),this.hasDragged=Math.sqrt(Math.pow(r-P,2)+Math.pow(c-G,2)),10<this.hasDragged&&(h=d.isInsidePlot(r-h,c-t,{visiblePlotOnly:!0}),G=this.getSelectionMarkerAttrs(P,G),P=G.shapeType,G=G.attrs,!d.hasCartesianSeries&&!d.mapView||!this.zoomX&&!this.zoomY||!h||m||I||(this.selectionMarker=I=d.renderer[P](),I.attr({class:"highcharts-selection-marker",zIndex:7}).add(),d.styledMode||I.attr({fill:o.selectionMarkerFill||J("#335cad").setOpacity(.25).get()})),I&&I.attr(G),h&&!I&&a&&d.pan(s,o.panning)))},C.prototype.dragStart=function(s){var d=this.chart;d.mouseIsDown=s.type,d.cancelClick=!1,d.mouseDownX=this.mouseDownX=s.chartX,d.mouseDownY=this.mouseDownY=s.chartY},C.prototype.getSelectionBox=function(s){var d={args:{marker:s},result:{}};return k(this,"getSelectionBox",d,function(o){o.result={x:s.attr?+s.attr("x"):s.x,y:s.attr?+s.attr("y"):s.y,width:s.attr?s.attr("width"):s.width,height:s.attr?s.attr("height"):s.height}}),d.result},C.prototype.drop=function(s){var d=this,o=this.chart,h=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),p=t.x,i=t.y,r=t.width,c=t.height,a={originalEvent:s,xAxis:[],yAxis:[],x:p,y:i,width:r,height:c},m=!!o.mapView;(this.hasDragged||h)&&(o.axes.forEach(function(P){if(P.zoomEnabled&&g(P.min)&&(h||d[{xAxis:"zoomX",yAxis:"zoomY"}[P.coll]])&&v(p)&&v(i)&&v(r)&&v(c)){var G=P.horiz,I=s.type==="touchend"?P.minPixelPadding:0,e=P.toValue((G?p:i)+I);G=P.toValue((G?p+r:i+c)-I),a[P.coll].push({axis:P,min:Math.min(e,G),max:Math.max(e,G)}),m=!0}}),m&&k(o,"selection",a,function(P){o.zoom(f(P,h?{animation:!1}:null))})),v(o.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}o&&v(o.index)&&(A(o.container,{cursor:o._cursor}),o.cancelClick=10<this.hasDragged,o.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},C.prototype.findNearestKDPoint=function(s,d,o){var h;return s.forEach(function(t){var p=!(t.noSharedTooltip&&d)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(o,p),(p=S(t,!0)&&t.series)&&!(p=!S(h,!0))){p=h.distX-t.distX;var i=h.dist-t.dist,r=(t.series.group&&t.series.group.zIndex)-(h.series.group&&h.series.group.zIndex);p=0<(p!==0&&d?p:i!==0?i:r!==0?r:h.series.index>t.series.index?-1:1)}p&&(h=t)}),h},C.prototype.getChartCoordinatesFromPoint=function(s,d){var o=s.series,h=o.xAxis;o=o.yAxis;var t=s.shapeArgs;if(h&&o){var p=b(s.clientX,s.plotX),i=s.plotY||0;return s.isNode&&t&&v(t.x)&&v(t.y)&&(p=t.x,i=t.y),d?{chartX:o.len+o.pos-i,chartY:h.len+h.pos-p}:{chartX:p+h.pos,chartY:i+o.pos}}if(t&&t.x&&t.y)return{chartX:t.x,chartY:t.y}},C.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var s=this.chart.container,d=w(s);this.chartPosition={left:d.left,top:d.top,scaleX:1,scaleY:1};var o=s.offsetWidth;return s=s.offsetHeight,2<o&&2<s&&(this.chartPosition.scaleX=d.width/o,this.chartPosition.scaleY=d.height/s),this.chartPosition},C.prototype.getCoordinates=function(s){var d={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(o){d[o.isXAxis?"xAxis":"yAxis"].push({axis:o,value:o.toValue(s[o.horiz?"chartX":"chartY"])})}),d},C.prototype.getHoverData=function(s,d,o,h,t,p){var i=[];h=!(!h||!s);var r=function(P){return P.visible&&!(!t&&P.directTouch)&&b(P.options.enableMouseTracking,!0)},c={chartX:p?p.chartX:void 0,chartY:p?p.chartY:void 0,shared:t};k(this,"beforeGetHoverData",c);var a=d&&!d.stickyTracking?[d]:o.filter(function(P){return P.stickyTracking&&(c.filter||r)(P)}),m=h||!p?s:this.findNearestKDPoint(a,t,p);return d=m&&m.series,m&&(t&&!d.noSharedTooltip?(a=o.filter(function(P){return c.filter?c.filter(P):r(P)&&!P.noSharedTooltip}),a.forEach(function(P){var G=y(P.points,function(I){return I.x===m.x&&!I.isNull});S(G)&&(P.boosted&&P.boost&&(G=P.boost.getPoint(G)),i.push(G))})):i.push(m)),c={hoverPoint:m},k(this,"afterGetHoverData",c),{hoverPoint:c.hoverPoint,hoverSeries:d,hoverPoints:i}},C.prototype.getPointFromEvent=function(s){s=s.target;for(var d;s&&!d;)d=s.point,s=s.parentNode;return d},C.prototype.onTrackerMouseOut=function(s){s=s.relatedTarget||s.toElement;var d=this.chart.hoverSeries;this.isDirectTouch=!1,!d||!s||d.stickyTracking||this.inClass(s,"highcharts-tooltip")||this.inClass(s,"highcharts-series-"+d.index)&&this.inClass(s,"highcharts-tracker")||d.onMouseOut()},C.prototype.inClass=function(s,d){for(var o;s;){if(o=D(s,"class")){if(o.indexOf(d)!==-1)return!0;
2if(o.indexOf("highcharts-container")!==-1)return!1}s=s.parentElement}},C.prototype.init=function(s,d){this.options=d,this.chart=s,this.runChartClick=!(!d.chart.events||!d.chart.events.click),this.pinchDown=[],this.lastValidTouch={},V&&(s.tooltip=new V(s,d.tooltip)),this.setDOMEvents()},C.prototype.normalize=function(s,d){var o=s.touches,h=o?o.length?o.item(0):b(o.changedTouches,s.changedTouches)[0]:s;return d||(d=this.getChartPosition()),o=h.pageX-d.left,h=h.pageY-d.top,o/=d.scaleX,h/=d.scaleY,f(s,{chartX:Math.round(o),chartY:Math.round(h)})},C.prototype.onContainerClick=function(s){var d=this.chart,o=d.hoverPoint;s=this.normalize(s);var h=d.plotLeft,t=d.plotTop;d.cancelClick||(o&&this.inClass(s.target,"highcharts-tracker")?(k(o.series,"click",f(s,{point:o})),d.hoverPoint&&o.firePointEvent("click",s)):(f(s,this.getCoordinates(s)),d.isInsidePlot(s.chartX-h,s.chartY-t,{visiblePlotOnly:!0})&&k(d,"click",s)))},C.prototype.onContainerMouseDown=function(s){var d=((s.buttons||s.button)&1)===1;s=this.normalize(s),Y.isFirefox&&s.button!==0&&this.onContainerMouseMove(s),(typeof s.button>"u"||d)&&(this.zoomOption(s),d&&s.preventDefault&&s.preventDefault(),this.dragStart(s))},C.prototype.onContainerMouseLeave=function(s){var d=Q[b(C.hoverChartIndex,-1)],o=this.chart.tooltip;s=this.normalize(s),d&&(s.relatedTarget||s.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0),o&&!o.isHidden&&this.reset()},C.prototype.onContainerMouseEnter=function(s){delete this.chartPosition},C.prototype.onContainerMouseMove=function(s){var d=this.chart,o=d.tooltip;s=this.normalize(s),this.setHoverChartIndex(),s.preventDefault||(s.returnValue=!1),(d.mouseIsDown==="mousedown"||this.touchSelect(s))&&this.drag(s),d.openMenu||!this.inClass(s.target,"highcharts-tracker")&&!d.isInsidePlot(s.chartX-d.plotLeft,s.chartY-d.plotTop,{visiblePlotOnly:!0})||o&&o.shouldStickOnContact(s)||(this.inClass(s.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(s))},C.prototype.onDocumentTouchEnd=function(s){var d=Q[b(C.hoverChartIndex,-1)];d&&d.pointer.drop(s)},C.prototype.onContainerTouchMove=function(s){this.touchSelect(s)?this.onContainerMouseMove(s):this.touch(s)},C.prototype.onContainerTouchStart=function(s){this.touchSelect(s)?this.onContainerMouseDown(s):(this.zoomOption(s),this.touch(s,!0))},C.prototype.onDocumentMouseMove=function(s){var d=this.chart,o=d.tooltip,h=this.chartPosition;s=this.normalize(s,h),!h||d.isInsidePlot(s.chartX-d.plotLeft,s.chartY-d.plotTop,{visiblePlotOnly:!0})||o&&o.shouldStickOnContact(s)||this.inClass(s.target,"highcharts-tracker")||this.reset()},C.prototype.onDocumentMouseUp=function(s){var d=Q[b(C.hoverChartIndex,-1)];d&&d.pointer.drop(s)},C.prototype.pinch=function(s){var d=this,o=d.chart,h=d.pinchDown,t=s.touches||[],p=t.length,i=d.lastValidTouch,r=d.hasZoom,c={},a=p===1&&(d.inClass(s.target,"highcharts-tracker")&&o.runTrackerClick||d.runChartClick),m={},P=d.chart.tooltip;P=p===1&&b(P&&P.options.followTouchMove,!0);var G=d.selectionMarker;1<p?d.initiated=!0:P&&(d.initiated=!1),r&&d.initiated&&!a&&s.cancelable!==!1&&s.preventDefault(),[].map.call(t,function(I){return d.normalize(I)}),s.type==="touchstart"?([].forEach.call(t,function(I,e){h[e]={chartX:I.chartX,chartY:I.chartY}}),i.x=[h[0].chartX,h[1]&&h[1].chartX],i.y=[h[0].chartY,h[1]&&h[1].chartY],o.axes.forEach(function(I){if(I.zoomEnabled){var e=o.bounds[I.horiz?"h":"v"],l=I.minPixelPadding,T=I.toPixels(Math.min(b(I.options.min,I.dataMin),I.dataMin)),E=I.toPixels(Math.max(b(I.options.max,I.dataMax),I.dataMax)),L=Math.max(T,E);e.min=Math.min(I.pos,Math.min(T,E)-l),e.max=Math.max(I.pos+I.len,L+l)}}),d.res=!0):P?this.runPointActions(d.normalize(s)):h.length&&(k(o,"touchpan",{originalEvent:s},function(){G||(d.selectionMarker=G=f({destroy:K,touch:!0},o.plotBox)),d.pinchTranslate(h,t,c,G,m,i),d.hasPinched=r,d.scaleGroups(c,m)}),d.res&&(d.res=!1,this.reset(!1,0)))},C.prototype.pinchTranslate=function(s,d,o,h,t,p){this.zoomHor&&this.pinchTranslateDirection(!0,s,d,o,h,t,p),this.zoomVert&&this.pinchTranslateDirection(!1,s,d,o,h,t,p)},C.prototype.pinchTranslateDirection=function(s,d,o,h,t,p,i,r){var c=this.chart,a=s?"x":"y",m=s?"X":"Y",P="chart"+m,G=s?"width":"height",I=c["plot"+(s?"Left":"Top")],e=c.inverted,l=c.bounds[s?"h":"v"],T=d.length===1,E=d[0][P],L=!T&&d[1][P];d=function(){typeof O=="number"&&20<Math.abs(E-L)&&(u=r||Math.abs(z-O)/Math.abs(E-L)),x=(I-z)/u+E,n=c["plot"+(s?"Wi
2dth":"Height")]/u};var n,x,u=r||1,z=o[0][P],O=!T&&o[1][P];if(d(),o=x,o<l.min){o=l.min;var B=!0}else o+n>l.max&&(o=l.max-n,B=!0);B?(z-=.8*(z-i[a][0]),typeof O=="number"&&(O-=.8*(O-i[a][1])),d()):i[a]=[z,O],e||(p[a]=x-I,p[G]=n),p=e?1/u:u,t[G]=n,t[a]=o,h[e?s?"scaleY":"scaleX":"scale"+m]=u,h["translate"+m]=p*I+(z-p*E)},C.prototype.reset=function(s,d){var o=this.chart,h=o.hoverSeries,t=o.hoverPoint,p=o.hoverPoints,i=o.tooltip,r=i&&i.shared?p:t;s&&r&&j(r).forEach(function(c){c.series.isCartesian&&typeof c.plotX>"u"&&(s=!1)}),s?i&&r&&j(r).length&&(i.refresh(r),i.shared&&p?p.forEach(function(c){c.setState(c.state,!0),c.series.isCartesian&&(c.series.xAxis.crosshair&&c.series.xAxis.drawCrosshair(null,c),c.series.yAxis.crosshair&&c.series.yAxis.drawCrosshair(null,c))}):t&&(t.setState(t.state,!0),o.axes.forEach(function(c){c.crosshair&&t.series[c.coll]===c&&c.drawCrosshair(null,t)}))):(t&&t.onMouseOut(),p&&p.forEach(function(c){c.setState()}),h&&h.onMouseOut(),i&&i.hide(d),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),o.axes.forEach(function(c){c.hideCrosshair()}),this.hoverX=o.hoverPoints=o.hoverPoint=null)},C.prototype.runPointActions=function(s,d,o){var h=this.chart,t=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,p=t?t.shared:!1,i=d||h.hoverPoint,r=i&&i.series||h.hoverSeries;d=this.getHoverData(i,r,h.series,(!s||s.type!=="touchmove")&&(!!d||r&&r.directTouch&&this.isDirectTouch),p,s),i=d.hoverPoint,r=d.hoverSeries;var c=d.hoverPoints;d=r&&r.tooltipOptions.followPointer&&!r.tooltipOptions.split;var a=p&&r&&!r.noSharedTooltip;if(i&&(o||i!==h.hoverPoint||t&&t.isHidden)){if((h.hoverPoints||[]).forEach(function(m){c.indexOf(m)===-1&&m.setState()}),h.hoverSeries!==r&&r.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach(function(m){m.setState("hover")}),h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),!i.series)return;h.hoverPoints=c,h.hoverPoint=i,i.firePointEvent("mouseOver",void 0,function(){t&&i&&t.refresh(a?c:i,s)})}else d&&t&&!t.isHidden&&(o=t.getAnchor([{}],s),h.isInsidePlot(o[0],o[1],{visiblePlotOnly:!0})&&t.updatePosition({plotX:o[0],plotY:o[1]}));this.unDocMouseMove||(this.unDocMouseMove=R(h.container.ownerDocument,"mousemove",function(m){var P=Q[C.hoverChartIndex];P&&P.pointer.onDocumentMouseMove(m)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(m){var P=b((m.crosshair||{}).snap,!0),G;P&&((G=h.hoverPoint)&&G.series[m.coll]===m||(G=y(c,function(I){return I.series&&I.series[m.coll]===m}))),G||!P?m.drawCrosshair(s,G):m.hideCrosshair()})},C.prototype.scaleGroups=function(s,d){var o=this.chart;o.series.forEach(function(h){var t=s||h.getPlotBox();h.group&&(h.xAxis&&h.xAxis.zoomEnabled||o.mapView)&&(h.group.attr(t),h.markerGroup&&(h.markerGroup.attr(t),h.markerGroup.clip(d?o.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(t))}),o.clipRect.attr(d||o.clipBox)},C.prototype.setDOMEvents=function(){var s=this,d=this.chart.container,o=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this),d.onmousemove=this.onContainerMouseMove.bind(this),d.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(R(d,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(R(d,"mouseleave",this.onContainerMouseLeave.bind(this))),C.unbindDocumentMouseUp||(C.unbindDocumentMouseUp=R(o,"mouseup",this.onDocumentMouseUp.bind(this)));for(var h=this.chart.renderTo.parentElement;h&&h.tagName!=="BODY";)this.eventsToUnbind.push(R(h,"scroll",function(){delete s.chartPosition})),h=h.parentElement;Y.hasTouch&&(this.eventsToUnbind.push(R(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(R(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),C.unbindDocumentTouchEnd||(C.unbindDocumentTouchEnd=R(o,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},C.prototype.setHoverChartIndex=function(){var s=this.chart,d=Y.charts[b(C.hoverChartIndex,-1)];d&&d!==s&&d.pointer.onContainerMouseLeave({relatedTarget:s.container}),d&&d.mouseIsDown||(C.hoverChartIndex=s.index)},C.prototype.touch=function(s,d){var o=this.chart;if(this.setHoverChartIndex(),s.touches.length===1)if(s=this.normalize(s),o.isInsidePlot(s.chartX-o.plotLeft,s.chartY-o.plotTop,{visiblePlotOnly:!0})&&!o.openMenu){if(d&&this.runPointActions(s),s.type==="touchmove"){d=this.pinchDown;var h=d[0]?4<=Math.sqrt(Math.pow(d[0].chartX-s.chartX,2)+Math.pow(d[0].chartY-s.chartY,2)):!1}b(h,!0)&&this.pinch(s)}else d&&this.reset();else s.touches.length===2&&this.pinch(s)},C.prototype.touchSelect=function(s){return!(!this.chart.options.chart.zooming.singleTouch||!s.touches||s.touches.length!==1)},C.prototype.zoomOption=function(s){var d=this.chart,o=d.options.chart;d=d.inverted;var h=o.zooming.type||"";/touch/.test(s.type)&&(h=b(o.zooming.pinchType,h)),this.zoomX=s=/x
2/.test(h),this.zoomY=o=/y/.test(h),this.zoomHor=s&&!d||o&&d,this.zoomVert=o&&!d||s&&d,this.hasZoom=s||o},C}(),X}),lt(_,"Core/MSPointer.js",[_["Core/Globals.js"],_["Core/Pointer.js"],_["Core/Utilities.js"]],function(X,Y,V){function et(){var w=[];return w.item=function(b){return this[b]},y(S,function(b){w.push({pageX:b.pageX,pageY:b.pageY,target:b.target})}),w}function J(w,b,j,C){var s=K[Y.hoverChartIndex||NaN];w.pointerType!=="touch"&&w.pointerType!==w.MSPOINTER_TYPE_TOUCH||!s||(s=s.pointer,C(w),s[b]({type:j,target:w.currentTarget,preventDefault:D,touches:et()}))}var Q=this&&this.__extends||function(){var w=function(b,j){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,s){C.__proto__=s}||function(C,s){for(var d in s)s.hasOwnProperty(d)&&(C[d]=s[d])},w(b,j)};return function(b,j){function C(){this.constructor=b}w(b,j),b.prototype=j===null?Object.create(j):(C.prototype=j.prototype,new C)}}(),K=X.charts,R=X.doc,D=X.noop,A=X.win,g=V.addEvent,f=V.css,y=V.objectEach,k=V.pick,v=V.removeEvent,S={},M=!!A.PointerEvent;return function(w){function b(){return w!==null&&w.apply(this,arguments)||this}return Q(b,w),b.isRequired=function(){return!(X.hasTouch||!A.PointerEvent&&!A.MSPointerEvent)},b.prototype.batchMSEvents=function(j){j(this.chart.container,M?"pointerdown":"MSPointerDown",this.onContainerPointerDown),j(this.chart.container,M?"pointermove":"MSPointerMove",this.onContainerPointerMove),j(R,M?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},b.prototype.destroy=function(){this.batchMSEvents(v),w.prototype.destroy.call(this)},b.prototype.init=function(j,C){w.prototype.init.call(this,j,C),this.hasZoom&&f(j.container,{"-ms-touch-action":"none","touch-action":"none"})},b.prototype.onContainerPointerDown=function(j){J(j,"onContainerTouchStart","touchstart",function(C){S[C.pointerId]={pageX:C.pageX,pageY:C.pageY,target:C.currentTarget}})},b.prototype.onContainerPointerMove=function(j){J(j,"onContainerTouchMove","touchmove",function(C){S[C.pointerId]={pageX:C.pageX,pageY:C.pageY},S[C.pointerId].target||(S[C.pointerId].target=C.currentTarget)})},b.prototype.onDocumentPointerUp=function(j){J(j,"onDocumentTouchEnd","touchend",function(C){delete S[C.pointerId]})},b.prototype.setDOMEvents=function(){var j=this.chart.tooltip;w.prototype.setDOMEvents.call(this),(this.hasZoom||k(j&&j.options.followTouchMove,!0))&&this.batchMSEvents(g)},b}(Y)}),lt(_,"Core/Legend/Legend.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Series/Point.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Utilities.js"]],function(X,Y,V,et,J,Q){var K=X.animObject,R=X.setAnimation,D=Y.format,A=V.marginNames,g=J.distribute,f=Q.addEvent,y=Q.createElement,k=Q.css,v=Q.defined,S=Q.discardElement,M=Q.find,w=Q.fireEvent,b=Q.isNumber,j=Q.merge,C=Q.pick,s=Q.relativeLength,d=Q.stableSort,o=Q.syncTimeout;return X=function(){function h(t,p){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,p)}return h.prototype.init=function(t,p){this.chart=t,this.setOptions(p),p.enabled&&(this.render(),f(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=f(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},h.prototype.setOptions=function(t){var p=C(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=j(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=p,this.initialItemY=p-5,this.symbolWidth=C(t.symbolWi
2dth,16),this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},h.prototype.update=function(t,p){var i=this.chart;this.setOptions(j(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,C(p,!0)&&i.redraw(),w(this,"afterUpdate")},h.prototype.colorizeItem=function(t,p){var i=t.legendItem||{},r=i.group,c=i.label,a=i.line;if(i=i.symbol,r&&r[p?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var m=this.options;r=this.itemHiddenStyle.color,m=p?m.itemStyle.color:r;var P=p&&t.color||r,G=t.options&&t.options.marker,I={fill:P};c&&c.css({fill:m,color:m}),a&&a.attr({stroke:P}),i&&(G&&i.isMarker&&(I=t.pointAttribs(),p||(I.stroke=I.fill=r)),i.attr(I))}w(this,"afterColorizeItem",{item:t,visible:p})},h.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},h.prototype.positionItem=function(t){var p=this,i=t.legendItem||{},r=i.group,c=i.x;c=c===void 0?0:c,i=i.y,i=i===void 0?0:i;var a=this.options,m=a.symbolPadding,P=!a.rtl;a=t.checkbox,r&&r.element&&(m={translateX:P?c:this.legendWidth-c-2*m-4,translateY:i},r[v(r.translateY)?"animate":"attr"](m,void 0,function(){w(p,"afterPositionItem",{item:t})})),a&&(a.x=c,a.y=i)},h.prototype.destroyItem=function(t){for(var p=t.checkbox,i=t.legendItem||{},r=0,c=["group","label","line","symbol"];r<c.length;r++){var a=c[r];i[a]&&(i[a]=i[a].destroy())}p&&S(p),t.legendItem=void 0},h.prototype.destroy=function(){for(var t=0,p=this.getAllItems();t<p.length;t++)this.destroyItem(p[t]);for(t=0,p="clipRect up down pager nav box title group".split(" ");t<p.length;t++){var i=p[t];this[i]&&(this[i]=this[i].destroy())}this.display=null},h.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,p=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var r=t.translateY;this.allItems.forEach(function(c){var a=c.checkbox;if(a){var m=r+i+a.y+(this.scrollOffset||0)+3;k(a,{left:t.translateX+c.checkboxOffset+a.x-20+"px",top:m+"px",display:this.proximate||m>r-6&&m<r+p-6?"":"none"})}},this)}},h.prototype.renderTitle=function(){var t=this.options,p=this.padding,i=t.title,r=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,p-3,p-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),t=this.title.getBBox(),r=t.height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:r})),this.titleHeight=r},h.prototype.setText=function(t){var p=this.options;t.legendItem.label.attr({text:p.labelFormat?D(p.labelFormat,t,this.chart):p.labelFormatter.call(t)})},h.prototype.renderItem=function(t){var p=t.legendItem=t.legendItem||{},i=this.chart,r=i.renderer,c=this.options,a=this.symbolWidth,m=c.symbolPadding||0,P=this.itemStyle,G=this.itemHiddenStyle,I=c.layout==="horizontal"?C(c.itemDistance,20):0,e=!c.rtl,l=!t.series,T=!l&&t.series.drawLegendSymbol?t.series:t,E=T.options,L=this.createCheckboxForItem&&E&&E.showCheckbox,n=c.useHTML,x=t.options.className,u=p.label;E=a+m+I+(L?20:0),u||(p.group=r.g("legend-item").addClass("highcharts-"+T.type+"-series highcharts-color-"+t.colorIndex+(x?" "+x:"")+(l?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),p.label=u=r.text("",e?a+m:-m,this.baseline||0,n),i.styledMode||u.css(j(t.visible?P:G)),u.attr({align:e?"left":"right",zIndex:2}).add(p.group),this.baseline||(this.fontMetrics=r.fontMetrics(i.styledMode?12:P.fontSize,u),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,u.attr("y",this.baseline),this.symbolHeight=c.symbolHeight||this.fontMetrics.f,c.squareSymbol&&(this.symbolWidth=C(c.symbolWidth,Math.max(this.symbolHeight,16)),E=this.symbolWidth+m+I+(L?20:0),e&&u.attr("x",this.symbolWidth+m))),T.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,u,n)),L&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!i.styledMode&&P.width||u.css({width:(c.itemWidth||this.widthOption||i.spacingBox.width)-E+"px"}),this.setText(t),i=u.getBBox(),r=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=c.itemWidth||p.labelWidth||i.width+E,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(p.labelHeight||(i.height>1.5*r?i.height:r))},h.prototype.layoutItem=function(t){var p=this.options,i=this.padding,r=p.layout==="horizontal",c=t.itemHeight,a=this.itemMarginBottom,m=this.itemMarginTop,P=r?C(p.itemDistance,20):0,G=this.maxLegendWidth;p=p.alignColumns&&this.totalItemWidth>G?this.maxItemWidth:t.itemWidth;var I=t.legendItem||{};r&&this.itemX-i+p>G&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=m+this.lastLineHeight+a),this.lastLineHeight=0),this.lastItemY=m+this.itemY+a,this.lastLineHeight=Math.max(c,this.lastLineHeight),I.x=this.itemX,I.y=this.itemY,r?this.itemX+=p:(this.itemY+=m+c+a,this.lastLineHeight=c),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-i-(t.checkbox?0:P):p)+i,this.offsetWidth)},h.prototype.getAllItems=function(){var t=[];
2return this.chart.series.forEach(function(p){var i=p&&p.options;p&&C(i.showInLegend,v(i.linkedTo)?!1:void 0,!0)&&(t=t.concat((p.legendItem||{}).labels||(i.legendType==="point"?p.data:p)))}),w(this,"afterGetAllItems",{allItems:t}),t},h.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)},h.prototype.adjustMargins=function(t,p){var i=this.chart,r=this.options,c=this.getAlignment();c&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(a,m){a.test(c)&&!v(t[m])&&(i[A[m]]=Math.max(i[A[m]],i.legend[(m+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][m]*r[m%2?"x":"y"]+C(r.margin,12)+p[m]+(i.titleOffset[m]||0)))})},h.prototype.proximatePositions=function(){var t=this.chart,p=[],i=this.options.align==="left";this.allItems.forEach(function(P){var G,I=i;if(P.yAxis){P.xAxis.options.reversed&&(I=!I),P.points&&(G=M(I?P.points:P.points.slice(0).reverse(),function(l){return b(l.plotY)})),I=this.itemMarginTop+P.legendItem.label.getBBox().height+this.itemMarginBottom;var e=P.yAxis.top-t.plotTop;P.visible?(G=G?G.plotY:P.yAxis.height,G+=e-.3*I):G=e+P.yAxis.height,p.push({target:G,size:I,item:P})}},this);for(var r,c=0,a=g(p,t.plotHeight);c<a.length;c++){var m=a[c];r=m.item.legendItem||{},b(m.pos)&&(r.y=t.plotTop-t.spacing[0]+m.pos)}},h.prototype.render=function(){var t=this.chart,p=t.renderer,i=this.options,r=this.padding,c=this.getAllItems(),a=this.group,m=this.box;this.itemX=r,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=s(i.width,t.spacingBox.width-r);var P=t.spacingBox.width-2*r-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(P/=2),this.maxLegendWidth=this.widthOption||P,a||(this.group=a=p.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=p.g().attr({zIndex:1}).add(a),this.scrollGroup=p.g().add(this.contentGroup)),this.renderTitle(),d(c,function(I,e){return(I.options&&I.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),i.reversed&&c.reverse(),this.allItems=c,this.display=P=!!c.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,c.forEach(this.renderItem,this),c.forEach(this.layoutItem,this),c=(this.widthOption||this.offsetWidth)+r;var G=this.lastItemY+this.lastLineHeight+this.titleHeight;G=this.handleOverflow(G),G+=r,m||(this.box=m=p.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(a)),t.styledMode||m.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<c&&0<G&&m[m.placed?"animate":"attr"](m.crisp.call({},{x:0,y:0,width:c,height:G},m.strokeWidth())),a[P?"show":"hide"](),t.styledMode&&a.getStyle("display")==="none"&&(c=G=0),this.legendWidth=c,this.legendHeight=G,P&&this.align(),this.proximate||this.positionItems(),w(this,"afterRender")},h.prototype.align=function(t){t===void 0&&(t=this.chart.spacingBox);var p=this.chart,i=this.options,r=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<p.titleOffset[0]?r+=p.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<p.titleOffset[2]&&(r-=p.titleOffset[2]),r!==t.y&&(t=j(t,{y:r})),p.hasRendered||(this.group.placed=!1),this.group.align(j(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},h.prototype.handleOverflow=function(t){var p=this,i=this.chart,r=i.renderer,c=this.options,a=c.y,m=c.verticalAlign==="top",P=this.padding,G=c.maxHeight,I=c.navigation,e=C(I.animation,!0),l=I.arrowSize||12,T=this.pages,E=this.allItems,L=function(W){typeof W=="number"?B.attr({height:W}):B&&(p.clipRect=B.destroy(),p.contentGroup.clip()),p.contentGroup.div&&(p.contentGroup.div.style.clip=W?"rect("+P+"px,9999px,"+(P+W)+"px,0)":"auto")},n=function(W){return p[W]=r.circle(0,0,1.3*l).translate(l/2,l/2).add(O),i.styledMode||p[W].attr("fill","rgba(0,0,0,0.0001)"),p[W]},x,u,z;a=i.spacingBox.height+(m?-a:a)-P;var O=this.nav,B=this.clipRect;return c.layout!=="horizontal"||c.verticalAlign==="middle"||c.floating||(a/=2),G&&(a=Math.min(a,G)),T.length=0,t&&0<a&&t>a&&I.enabled!==!1?(this.clipHeight=x=Math.max(a-20-this.titleHeight-P,0),this.currentPage=C(this.currentPage,1),this.fullHeight=t,E.forEac
2h(function(W,F){z=W.legendItem||{},W=z.y||0;var U=Math.round(z.label.getBBox().height),st=T.length;(!st||W-T[st-1]>x&&(u||W)!==T[st-1])&&(T.push(u||W),st++),z.pageIx=st-1,u&&((E[F-1].legendItem||{}).pageIx=st-1),F===E.length-1&&W+U-T[st-1]>x&&U<=x&&(T.push(W),z.pageIx=st),W!==u&&(u=W)}),B||(B=p.clipRect=r.clipRect(0,P,9999,0),p.contentGroup.clip(B)),L(x),O||(this.nav=O=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol("triangle",0,0,l,l).add(O),n("upTracker").on("click",function(){p.scroll(-1,e)}),this.pager=r.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&I.style&&this.pager.css(I.style),this.pager.add(O),this.down=r.symbol("triangle-down",0,0,l,l).add(O),n("downTracker").on("click",function(){p.scroll(1,e)})),p.scroll(0),t=a):O&&(L(),this.nav=O.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},h.prototype.scroll=function(t,p){var i=this,r=this.chart,c=this.pages,a=c.length,m=this.clipHeight,P=this.options.navigation,G=this.pager,I=this.padding,e=this.currentPage+t;e>a&&(e=a),0<e&&(typeof p<"u"&&R(p,r),this.nav.attr({translateX:I,translateY:m+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(l){l.attr({class:e===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),G.attr({text:e+"/"+a}),[this.down,this.downTracker].forEach(function(l){l.attr({x:18+this.pager.getBBox().width,class:e===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),r.styledMode||(this.up.attr({fill:e===1?P.inactiveColor:P.activeColor}),this.upTracker.css({cursor:e===1?"default":"pointer"}),this.down.attr({fill:e===a?P.inactiveColor:P.activeColor}),this.downTracker.css({cursor:e===a?"default":"pointer"})),this.scrollOffset=-c[e-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=e,this.positionCheckboxes(),t=K(C(p,r.renderer.globalAnimation,!0)),o(function(){w(i,"afterScroll",{currentPage:e})},t.duration))},h.prototype.setItemEvents=function(t,p,i){var r=this,c=t.legendItem||{},a=r.chart.renderer.boxWrapper,m=t instanceof et,P="highcharts-legend-"+(m?"point":"series")+"-active",G=r.chart.styledMode,I=function(l){r.allItems.forEach(function(T){t!==T&&[T].concat(T.linkedSeries||[]).forEach(function(E){E.setState(l,!m)})})},e=0;for(i=i?[p,c.symbol]:[c.group];e<i.length;e++)(c=i[e])&&c.on("mouseover",function(){t.visible&&I("inactive"),t.setState("hover"),t.visible&&a.addClass(P),G||p.css(r.options.itemHoverStyle)}).on("mouseout",function(){r.chart.styledMode||p.css(j(t.visible?r.itemStyle:r.itemHiddenStyle)),I(""),a.removeClass(P),t.setState()}).on("click",function(l){var T=function(){t.setVisible&&t.setVisible(),I(t.visible?"inactive":"")};a.removeClass(P),l={browserEvent:l},t.firePointEvent?t.firePointEvent("legendItemClick",l,T):w(t,"legendItemClick",l,T)})},h.prototype.createCheckboxForItem=function(t){t.checkbox=y("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),f(t.checkbox,"click",function(p){w(t.series||t,"checkboxClick",{checked:p.target.checked,item:t},function(){t.select()})})},h}(),X}),lt(_,"Core/Series/SeriesRegistry.js",[_["Core/Globals.js"],_["Core/Defaults.js"],_["Core/Series/Point.js"],_["Core/Utilities.js"]],function(X,Y,V,et){var J=Y.defaultOptions,Q=et.extendClass,K=et.merge,R;return function(D){function A(g,f){var y=J.plotOptions||{},k=f.defaultOptions,v=f.prototype;v.type=g,v.pointClass||(v.pointClass=V),k&&(y[g]=k),D.seriesTypes[g]=f}D.seriesTypes=X.seriesTypes,D.registerSeriesType=A,D.seriesType=function(g,f,y,k,v){var S=J.plotOptions||{};return f=f||"",S[g]=K(S[f],y),A(g,Q(D.seriesTypes[f]||function(){},k)),D.seriesTypes[g].prototype.type=g,v&&(D.seriesTypes[g].prototype.pointClass=Q(V,v)),D.seriesTypes[g]}}(R||(R={})),R}),lt(_,"Core/Chart/Chart.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Defaults.js"],_["Core/FormatUtilities.js"],_["Core/Foundation.js"],_["Core/Globals.js"],_["Core/Legend/Legend.js"],_["Core/MSPointer.js"],_["Core/Pointer.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Time.js"],_["Core/Utilities.js"],_["Core/Renderer/HTML/AST.js"]],function(X,Y,V,et,J,Q,K,R,D,A,g,f,y,k,v){var S=X.animate,M=X.animObject,w=X.setAnimation,b=V.defaultOptions,j=V.defaultTime,C=et.numberFormat,s=J.registerEventOptions,d=Q.charts,o=Q.doc,h=Q.marginNames,t=Q.svg,p=Q.win,i=g.seriesTypes,r=k.addEvent,c=k.attr,a=k.cleanRecursively,m=k.createElement,P=k.css,G=k.defined,I=k.discardElement,e=k.erase,l=k.error,T=k.extend,E=k.find,L=k.fireEvent,n=k.getStyle,x=k.isArray,u=k.isNumber,z=k.isObject,O=k.isString,B=k.merge,W=k.objectEach,F=k.pick,U=k.pInt,st=k.relativeLength,rt=k.removeEvent,ot=k.splat,tt=k.syncTimeout,at=k.uniqueKey;return X=function(){function $(N,H,Z){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHe
2ight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(N,H,Z)}return $.chart=function(N,H,Z){return new $(N,H,Z)},$.prototype.getArgs=function(N,H,Z){O(N)||N.nodeName?(this.renderTo=N,this.init(H,Z)):this.init(N,H)},$.prototype.init=function(N,H){var Z=N.plotOptions||{};L(this,"init",{args:arguments},function(){var q=B(b,N),it=q.chart;W(q.plotOptions,function(ht,ct){z(ht)&&(ht.tooltip=Z[ct]&&B(Z[ct].tooltip)||void 0)}),q.tooltip.userOptions=N.chart&&N.chart.forExport&&N.tooltip.userOptions||N.tooltip,this.userOptions=N,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=H,this.isResizing=0;var nt=it.zooming=it.zooming||{};N.chart&&!N.chart.zooming&&(nt.resetButton=it.resetZoomButton),nt.key=F(nt.key,it.zoomKey),nt.pinchType=F(nt.pinchType,it.pinchType),nt.singleTouch=F(nt.singleTouch,it.zoomBySingleTouch),nt.type=F(nt.type,it.zoomType),this.options=q,this.axes=[],this.series=[],this.time=N.time&&Object.keys(N.time).length?new y(N.time):Q.time,this.numberFormatter=it.numberFormatter||C,this.styledMode=it.styledMode,this.hasCartesianSeries=it.showAxes,this.index=d.length,d.push(this),Q.chartCount++,s(this,it),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,L(this,"afterInit"),this.firstRender()})},$.prototype.initSeries=function(N){var H=this.options.chart;H=N.type||H.type||H.defaultSeriesType;var Z=i[H];return Z||l(17,!0,this,{missingModuleFor:H}),H=new Z,typeof H.init=="function"&&H.init(this,N),H},$.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(N){N.points||N.data||!N.enabledDataSorting||N.setData(N.options.data,!1)})},$.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(N,H){return N.linkedSeries.length||H.linkedSeries.length?H.linkedSeries.length-N.linkedSeries.length:0})},$.prototype.orderSeries=function(N){var H=this.series;N=N||0;for(var Z=H.length;N<Z;++N)H[N]&&(H[N].index=N,H[N].name=H[N].getName())},$.prototype.isInsidePlot=function(N,H,Z){Z===void 0&&(Z={});var q=this.inverted,it=this.plotBox,nt=this.plotLeft,ht=this.plotTop,ct=this.scrollablePlotBox,ft=0,pt=0;Z.visiblePlotOnly&&this.scrollingContainer&&(pt=this.scrollingContainer,ft=pt.scrollLeft,pt=pt.scrollTop);var dt=Z.series;if(it=Z.visiblePlotOnly&&ct||it,ct=Z.inverted?H:N,H=Z.inverted?N:H,N={x:ct,y:H,isInsidePlot:!0,options:Z},!Z.ignoreX){var yt=dt&&(q&&!this.polar?dt.yAxis:dt.xAxis)||{pos:nt,len:1/0};ct=Z.paneCoordinates?yt.pos+ct:nt+ct,ct>=Math.max(ft+nt,yt.pos)&&ct<=Math.min(ft+nt+it.width,yt.pos+yt.len)||(N.isInsidePlot=!1)}return!Z.ignoreY&&N.isInsidePlot&&(q=Z.axis&&!Z.axis.isXAxis&&Z.axis||dt&&(q?dt.xAxis:dt.yAxis)||{pos:ht,len:1/0},Z=Z.paneCoordinates?q.pos+H:ht+H,Z>=Math.max(pt+ht,q.pos)&&Z<=Math.min(pt+ht+it.height,q.pos+q.len)||(N.isInsidePlot=!1)),L(this,"afterIsInsidePlot",N),N.isInsidePlot},$.prototype.redraw=function(N){L(this,"beforeRedraw");var H=this.hasCartesianSeries?this.axes:this.colorAxis||[],Z=this.series,q=this.pointer,it=this.legend,nt=this.userOptions.legend,ht=this.renderer,ct=ht.isHidden(),ft=[],pt=this.isDirtyBox,dt=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),w(this.hasRendered?N:!1,this),ct&&this.temporaryDisplay(),this.layOutTitles(),N=Z.length;N--;){var yt=Z[N];if(yt.options.stacking||yt.options.centerInCategory){var gt=!0;if(yt.isDirty){var mt=!0;break}}}if(mt)for(N=Z.length;N--;)yt=Z[N],yt.options.stacking&&(yt.isDirty=!0);Z.forEach(function(ut){ut.isDirty&&(ut.options.legendType==="point"?(typeof ut.updateTotals=="function"&&ut.updateTotals(),dt=!0):nt&&(nt.labelFormatter||nt.labelFormat)&&(dt=!0)),ut.isDirtyData&&L(ut,"updatedData")}),dt&&it&&it.options.enabled&&(it.render(),this.isDirtyLegend=!1),gt&&this.get
2Stacks(),H.forEach(function(ut){ut.updateNames(),ut.setScale()}),this.getMargins(),H.forEach(function(ut){ut.isDirty&&(pt=!0)}),H.forEach(function(ut){var St=ut.min+","+ut.max;ut.extKey!==St&&(ut.extKey=St,ft.push(function(){L(ut,"afterSetExtremes",T(ut.eventArgs,ut.getExtremes())),delete ut.eventArgs})),(pt||gt)&&ut.redraw()}),pt&&this.drawChartBox(),L(this,"predraw"),Z.forEach(function(ut){(pt||ut.isDirty)&&ut.visible&&ut.redraw(),ut.isDirtyData=!1}),q&&q.reset(!0),ht.draw(),L(this,"redraw"),L(this,"render"),ct&&this.temporaryDisplay(!0),ft.forEach(function(ut){ut.call()})},$.prototype.get=function(N){function H(nt){return nt.id===N||nt.options&&nt.options.id===N}for(var Z=this.series,q=E(this.axes,H)||E(this.series,H),it=0;!q&&it<Z.length;it++)q=E(Z[it].points||[],H);return q},$.prototype.getAxes=function(){var N=this,H=this.options,Z=H.xAxis=ot(H.xAxis||{});H=H.yAxis=ot(H.yAxis||{}),L(this,"getAxes"),Z.forEach(function(q,it){q.index=it,q.isX=!0}),H.forEach(function(q,it){q.index=it}),Z.concat(H).forEach(function(q){new Y(N,q)}),L(this,"afterGetAxes")},$.prototype.getSelectedPoints=function(){return this.series.reduce(function(N,H){return H.getPointsCollection().forEach(function(Z){F(Z.selectedStaging,Z.selected)&&N.push(Z)}),N},[])},$.prototype.getSelectedSeries=function(){return this.series.filter(function(N){return N.selected})},$.prototype.setTitle=function(N,H,Z){this.applyDescription("title",N),this.applyDescription("subtitle",H),this.applyDescription("caption",void 0),this.layOutTitles(Z)},$.prototype.applyDescription=function(N,H){var Z=this,q=N==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};q=this.options[N]=B(!this.styledMode&&{style:q},this.options[N],H);var it=this[N];it&&H&&(this[N]=it=it.destroy()),q&&!it&&(it=this.renderer.text(q.text,0,0,q.useHTML).attr({align:q.align,class:"highcharts-"+N,zIndex:q.zIndex||4}).add(),it.update=function(nt){Z[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[N]](nt)},this.styledMode||it.css(q.style),this[N]=it)},$.prototype.layOutTitles=function(N){var H=[0,0,0],Z=this.renderer,q=this.spacingBox;["title","subtitle","caption"].forEach(function(nt){var ht=this[nt],ct=this.options[nt],ft=ct.verticalAlign||"top";nt=nt==="title"?ft==="top"?-3:0:ft==="top"?H[0]+2:0;var pt;if(ht){this.styledMode||(pt=ct.style&&ct.style.fontSize),pt=Z.fontMetrics(pt,ht).b,ht.css({width:(ct.width||q.width+(ct.widthAdjust||0))+"px"});var dt=Math.round(ht.getBBox(ct.useHTML).height);ht.align(T({y:ft==="bottom"?pt:nt+pt,height:dt},ct),!1,"spacingBox"),ct.floating||(ft==="top"?H[0]=Math.ceil(H[0]+dt):ft==="bottom"&&(H[2]=Math.ceil(H[2]+dt)))}},this),H[0]&&(this.options.title.verticalAlign||"top")==="top"&&(H[0]+=this.options.title.margin),H[2]&&this.options.caption.verticalAlign==="bottom"&&(H[2]+=this.options.caption.margin);var it=!this.titleOffset||this.titleOffset.join(",")!==H.join(",");this.titleOffset=H,L(this,"afterLayOutTitles"),!this.isDirtyBox&&it&&(this.isDirtyBox=this.isDirtyLegend=it,this.hasRendered&&F(N,!0)&&this.isDirtyBox&&this.redraw())},$.prototype.getChartSize=function(){var N=this.options.chart,H=N.width;N=N.height;var Z=this.renderTo;G(H)||(this.containerWidth=n(Z,"width")),G(N)||(this.containerHeight=n(Z,"height")),this.chartWidth=Math.max(0,H||this.containerWidth||600),this.chartHeight=Math.max(0,st(N,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},$.prototype.temporaryDisplay=function(N){var H=this.renderTo;if(N)for(;H&&H.style;)H.hcOrigStyle&&(P(H,H.hcOrigStyle),delete H.hcOrigStyle),H.hcOrigDetached&&(o.body.removeChild(H),H.hcOrigDetached=!1),H=H.parentNode;else for(;H&&H.style&&(o.body.contains(H)||H.parentNode||(H.hcOrigDetached=!0,o.body.appendChild(H)),(n(H,"display",!1)==="none"||H.hcOricDetached)&&(H.hcOrigStyle={display:H.style.display,height:H.style.height,overflow:H.style.overflow},N={display:"block",overflow:"hidden"},H!==this.renderTo&&(N.height=0),P(H,N),H.offsetWidth||H.style.setProperty("display","block","important")),H=H.parentNode,H!==o.body););},$.prototype.setClassName=function(N){this.container.className="highcharts-container "+(N||"")},$.prototype.getContainer=function(){var N=this.options,H=N.chart,Z=at
2(),q,it=this.renderTo;it||(this.renderTo=it=H.renderTo),O(it)&&(this.renderTo=it=o.getElementById(it)),it||l(13,!0,this);var nt=U(c(it,"data-highcharts-chart"));u(nt)&&d[nt]&&d[nt].hasRendered&&d[nt].destroy(),c(it,"data-highcharts-chart",this.index),it.innerHTML=v.emptyHTML,H.skipClone||it.offsetWidth||this.temporaryDisplay(),this.getChartSize(),nt=this.chartWidth;var ht=this.chartHeight;if(P(it,{overflow:"hidden"}),this.styledMode||(q=T({position:"relative",overflow:"hidden",width:nt+"px",height:ht+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},H.style||{})),this.container=Z=m("div",{id:Z},q,it),this._cursor=Z.style.cursor,this.renderer=new(H.renderer||!t?A.getRendererType(H.renderer):f)(Z,nt,ht,void 0,H.forExport,N.exporting&&N.exporting.allowHTML,this.styledMode),w(void 0,this),this.setClassName(H.className),this.styledMode)for(var ct in N.defs)this.renderer.definition(N.defs[ct]);else this.renderer.setStyle(H.style);this.renderer.chartIndex=this.index,L(this,"afterGetContainer")},$.prototype.getMargins=function(N){var H=this.spacing,Z=this.margin,q=this.titleOffset;this.resetMargins(),q[0]&&!G(Z[0])&&(this.plotTop=Math.max(this.plotTop,q[0]+H[0])),q[2]&&!G(Z[2])&&(this.marginBottom=Math.max(this.marginBottom,q[2]+H[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Z,H),L(this,"getMargins"),N||this.getAxisMargins()},$.prototype.getAxisMargins=function(){var N=this,H=N.axisOffset=[0,0,0,0],Z=N.colorAxis,q=N.margin,it=function(nt){nt.forEach(function(ht){ht.visible&&ht.getOffset()})};N.hasCartesianSeries?it(N.axes):Z&&Z.length&&it(Z),h.forEach(function(nt,ht){G(q[ht])||(N[nt]+=H[ht])}),N.setChartSize()},$.prototype.reflow=function(N){var H=this,Z=H.options.chart,q=H.renderTo,it=G(Z.width)&&G(Z.height),nt=Z.width||n(q,"width");Z=Z.height||n(q,"height"),q=N?N.target:p,delete H.pointer.chartPosition,!it&&!H.isPrinting&&nt&&Z&&(q===p||q===o)&&((nt!==H.containerWidth||Z!==H.containerHeight)&&(k.clearTimeout(H.reflowTimeout),H.reflowTimeout=tt(function(){H.container&&H.setSize(void 0,void 0,!1)},N?100:0)),H.containerWidth=nt,H.containerHeight=Z)},$.prototype.setReflow=function(N){var H=this;N===!1||this.unbindReflow?N===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=r(p,"resize",function(Z){H.options&&H.reflow(Z)}),r(this,"destroy",this.unbindReflow))},$.prototype.setSize=function(N,H,Z){var q=this,it=q.renderer;q.isResizing+=1,w(Z,q),Z=it.globalAnimation,q.oldChartHeight=q.chartHeight,q.oldChartWidth=q.chartWidth,typeof N<"u"&&(q.options.chart.width=N),typeof H<"u"&&(q.options.chart.height=H),q.getChartSize(),q.styledMode||(Z?S:P)(q.container,{width:q.chartWidth+"px",height:q.chartHeight+"px"},Z),q.setChartSize(!0),it.setSize(q.chartWidth,q.chartHeight,Z),q.axes.forEach(function(nt){nt.isDirty=!0,nt.setScale()}),q.isDirtyLegend=!0,q.isDirtyBox=!0,q.layOutTitles(),q.getMargins(),q.redraw(Z),q.oldChartHeight=null,L(q,"resize"),tt(function(){q&&L(q,"endResize",null,function(){--q.isResizing})},M(Z).duration)},$.prototype.setChartSize=function(N){var H=this.inverted,Z=this.renderer,q=this.chartWidth,it=this.chartHeight,nt=this.options.chart,ht=this.spacing,ct=this.clipOffset,ft,pt,dt,yt;this.plotLeft=ft=Math.round(this.plotLeft),this.plotTop=pt=Math.round(this.plotTop),this.plotWidth=dt=Math.max(0,Math.round(q-ft-this.marginRight)),this.plotHeight=yt=Math.max(0,Math.round(it-pt-this.marginBottom)),this.plotSizeX=H?yt:dt,this.plotSizeY=H?dt:yt,this.plotBorderWidth=nt.plotBorderWidth||0,this.spacingBox=Z.spacingBox={x:ht[3],y:ht[0],width:q-ht[3]-ht[1],height:it-ht[0]-ht[2]},this.plotBox=Z.plotBox={x:ft,y:pt,width:dt,height:yt},H=2*Math.floor(this.plotBorderWidth/2),q=Math.ceil(Math.max(H,ct[3])/2),it=Math.ceil(Math.max(H,ct[0])/2),this.clipBox={x:q,y:it,width:Math.floor(this.plotSizeX-Math.max(H,ct[1])/2-q),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(H,ct[2])/2-it))},N||(this.axes.forEach(function(gt){gt.setAxisSize(),gt.setAxisTranslation()}),Z.alignElements()),L(this,"afterSetChartSize",{skipAxes:N})},$.prototype.resetMargins=function(){L(this,"resetMargins");var N=this,H=N.options.chart;["margin","spacing"].forEach(function(Z){var q=H[Z],it=z(q)?q:[q,q,q,q];
2["Top","Right","Bottom","Left"].forEach(function(nt,ht){N[Z][ht]=F(H[Z+nt],it[ht])})}),h.forEach(function(Z,q){N[Z]=F(N.margin[q],N.spacing[q])}),N.axisOffset=[0,0,0,0],N.clipOffset=[0,0,0,0]},$.prototype.drawChartBox=function(){var N=this.options.chart,H=this.renderer,Z=this.chartWidth,q=this.chartHeight,it=this.styledMode,nt=this.plotBGImage,ht=N.backgroundColor,ct=N.plotBackgroundColor,ft=N.plotBackgroundImage,pt=this.plotLeft,dt=this.plotTop,yt=this.plotWidth,gt=this.plotHeight,mt=this.plotBox,ut=this.clipRect,St=this.clipBox,xt=this.chartBackground,vt=this.plotBackground,At=this.plotBorder,kt,wt="animate";if(xt||(this.chartBackground=xt=H.rect().addClass("highcharts-background").add(),wt="attr"),it)var Tt=kt=xt.strokeWidth();else Tt=N.borderWidth||0,kt=Tt+(N.shadow?8:0),ht={fill:ht||"none"},(Tt||xt["stroke-width"])&&(ht.stroke=N.borderColor,ht["stroke-width"]=Tt),xt.attr(ht).shadow(N.shadow);xt[wt]({x:kt/2,y:kt/2,width:Z-kt-Tt%2,height:q-kt-Tt%2,r:N.borderRadius}),wt="animate",vt||(wt="attr",this.plotBackground=vt=H.rect().addClass("highcharts-plot-background").add()),vt[wt](mt),it||(vt.attr({fill:ct||"none"}).shadow(N.plotShadow),ft&&(nt?(ft!==nt.attr("href")&&nt.attr("href",ft),nt.animate(mt)):this.plotBGImage=H.image(ft,pt,dt,yt,gt).add())),ut?ut.animate({width:St.width,height:St.height}):this.clipRect=H.clipRect(St),wt="animate",At||(wt="attr",this.plotBorder=At=H.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),it||At.attr({stroke:N.plotBorderColor,"stroke-width":N.plotBorderWidth||0,fill:"none"}),At[wt](At.crisp({x:pt,y:dt,width:yt,height:gt},-At.strokeWidth())),this.isDirtyBox=!1,L(this,"afterDrawChartBox")},$.prototype.propFromSeries=function(){var N=this,H=N.options.chart,Z=N.options.series,q,it,nt;["inverted","angular","polar"].forEach(function(ht){for(it=i[H.type||H.defaultSeriesType],nt=H[ht]||it&&it.prototype[ht],q=Z&&Z.length;!nt&&q--;)(it=i[Z[q].type])&&it.prototype[ht]&&(nt=!0);N[ht]=nt})},$.prototype.linkSeries=function(){var N=this,H=N.series;H.forEach(function(Z){Z.linkedSeries.length=0}),H.forEach(function(Z){var q=Z.options.linkedTo;O(q)&&(q=q===":previous"?N.series[Z.index-1]:N.get(q))&&q.linkedParent!==Z&&(q.linkedSeries.push(Z),Z.linkedParent=q,q.enabledDataSorting&&Z.setDataSortingOptions(),Z.visible=F(Z.options.visible,q.options.visible,Z.visible))}),L(this,"afterLinkSeries")},$.prototype.renderSeries=function(){this.series.forEach(function(N){N.translate(),N.render()})},$.prototype.renderLabels=function(){var N=this,H=N.options.labels;H.items&&H.items.forEach(function(Z){var q=T(H.style,Z.style),it=U(q.left)+N.plotLeft,nt=U(q.top)+N.plotTop+12;delete q.left,delete q.top,N.renderer.text(Z.html,it,nt).attr({zIndex:2}).css(q).add()})},$.prototype.render=function(){var N=this.axes,H=this.colorAxis,Z=this.renderer,q=this.options,it=function(pt){pt.forEach(function(dt){dt.visible&&dt.render()})},nt=0;this.setTitle(),this.legend=new K(this,q.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),q=this.plotWidth,N.some(function(pt){if(pt.horiz&&pt.visible&&pt.options.labels.enabled&&pt.series.length)return nt=21,!0});var ht=this.plotHeight=Math.max(this.plotHeight-nt,0);N.forEach(function(pt){pt.setScale()}),this.getAxisMargins();var ct=1.1<q/this.plotWidth,ft=1.05<ht/this.plotHeight;(ct||ft)&&(N.forEach(function(pt){(pt.horiz&&ct||!pt.horiz&&ft)&&pt.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?it(N):H&&H.length&&it(H),this.seriesGroup||(this.seriesGroup=Z.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},$.prototype.addCredits=function(N){var H=this,Z=B(!0,this.options.credits,N);Z.enabled&&!this.credits&&(this.credits=this.renderer.text(Z.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){Z.href&&(p.location.href=Z.href)}).attr({align:Z.position.align,zIndex:8}),H.styledMode||this.credits.css(Z.style),this.credits.add().align(Z.position),this.credits.update=function(q){H.credits=H.credits.destroy(),H.addCredits(q)})},$.prototype.destroy=function(){var N=this,H=N.axes,Z=N.series,q=N.container,it=q&&q.parentNode,nt;for(L(N,"destroy"),N.renderer.forExport?e(d,N):d[N.index]=void 0,Q.chartCount--,N.renderTo.removeAttribute("data-highcharts-chart"),rt(N),nt=H.length;nt--;)H[nt]=H[nt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),nt=Z.length;nt--;)Z[nt]=Z[nt].destroy();
2"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(ht){var ct=N[ht];ct&&ct.destroy&&(N[ht]=ct.destroy())}),q&&(q.innerHTML=v.emptyHTML,rt(q),it&&I(q)),W(N,function(ht,ct){delete N[ct]})},$.prototype.firstRender=function(){var N=this,H=N.options;(!N.isReadyToRender||N.isReadyToRender())&&(N.getContainer(),N.resetMargins(),N.setChartSize(),N.propFromSeries(),N.getAxes(),(x(H.series)?H.series:[]).forEach(function(Z){N.initSeries(Z)}),N.linkSeries(),N.setSeriesData(),L(N,"beforeRender"),D&&(R.isRequired()?N.pointer=new R(N,H):N.pointer=new D(N,H)),N.render(),N.pointer.getChartPosition(),!N.renderer.imgCount&&!N.hasLoaded&&N.onload(),N.temporaryDisplay(!0))},$.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(N){N&&typeof this.index<"u"&&N.apply(this,[this])},this),L(this,"load"),L(this,"render"),G(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},$.prototype.warnIfA11yModuleNotLoaded=function(){var N=this.options,H=this.title;N&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(H&&H.element.textContent||"").replace(/</g,"&lt;")}),N.accessibility&&N.accessibility.enabled===!1||l('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},$.prototype.addSeries=function(N,H,Z){var q=this,it;return N&&(H=F(H,!0),L(q,"addSeries",{options:N},function(){it=q.initSeries(N),q.isDirtyLegend=!0,q.linkSeries(),it.enabledDataSorting&&it.setData(N.data,!1),L(q,"afterAddSeries",{series:it}),H&&q.redraw(Z)})),it},$.prototype.addAxis=function(N,H,Z,q){return this.createAxis(H?"xAxis":"yAxis",{axis:N,redraw:Z,animation:q})},$.prototype.addColorAxis=function(N,H,Z){return this.createAxis("colorAxis",{axis:N,redraw:H,animation:Z})},$.prototype.createAxis=function(N,H){return N=new Y(this,B(H.axis,{index:this[N].length,isX:N==="xAxis"})),F(H.redraw,!0)&&this.redraw(H.animation),N},$.prototype.showLoading=function(N){var H=this,Z=H.options,q=Z.loading,it=function(){nt&&P(nt,{left:H.plotLeft+"px",top:H.plotTop+"px",width:H.plotWidth+"px",height:H.plotHeight+"px"})},nt=H.loadingDiv,ht=H.loadingSpan;nt||(H.loadingDiv=nt=m("div",{className:"highcharts-loading highcharts-loading-hidden"},null,H.container)),ht||(H.loadingSpan=ht=m("span",{className:"highcharts-loading-inner"},null,nt),r(H,"redraw",it)),nt.className="highcharts-loading",v.setElementHTML(ht,F(N,Z.lang.loading,"")),H.styledMode||(P(nt,T(q.style,{zIndex:10})),P(ht,q.labelStyle),H.loadingShown||(P(nt,{opacity:0,display:""}),S(nt,{opacity:q.style.opacity||.5},{duration:q.showDuration||0}))),H.loadingShown=!0,it()},$.prototype.hideLoading=function(){var N=this.options,H=this.loadingDiv;H&&(H.className="highcharts-loading highcharts-loading-hidden",this.styledMode||S(H,{opacity:0},{duration:N.loading.hideDuration||100,complete:function(){P(H,{display:"none"})}})),this.loadingShown=!1},$.prototype.update=function(N,H,Z,q){var it=this,nt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ht=N.isResponsiveOptions,ct=[],ft,pt;L(it,"update",{options:N}),ht||it.setResponsive(!1,!0),N=a(N,it.options),it.userOptions=B(it.userOptions,N);var dt=N.chart;if(dt){if(B(!0,it.options.chart,dt),"className"in dt&&it.setClassName(dt.className),"reflow"in dt&&it.setReflow(dt.reflow),"inverted"in dt||"polar"in dt||"type"in dt){it.propFromSeries();var yt=!0}"alignTicks"in dt&&(yt=!0),"events"in dt&&s(this,dt),W(dt,function(gt,mt){it.propsRequireUpdateSeries.indexOf("chart."+mt)!==-1&&(ft=!0),it.propsRequireDirtyBox.indexOf(mt)!==-1&&(it.isDirtyBox=!0),it.propsRequireReflow.indexOf(mt)!==-1&&(ht?it.isDirtyBox=!0:pt=!0)}),!it.styledMode&&dt.style&&it.renderer.setStyle(it.options.chart.style||{})}!it.styledMode&&N.colors&&(this.options.colors=N.colors),N.time&&(this.time===j&&(this.time=new y(N.time)),B(!0,it.options.time,N.time)),W(N,function(gt,mt){it[mt]&&typeof it[mt].update=="function"?it[mt].update(gt,!1):typeof it[nt[mt]]=="function"?it[nt[mt]](gt):mt!=="colors"&&it.collectionsWithUpdate.indexOf(mt)===-1&&B(!0,it.options[mt],N[mt]),mt!=="chart"&&it.propsRequireUpdateSeries.indexOf(mt)!==-1&&(ft=!0)}),this.collectionsWithUpdate.forEach(function(gt){if(N[gt]){var mt=[];it[gt].forEach(function(ut,St){ut.options.isInternal||mt.push(F(ut.options.index,St))}
2),ot(N[gt]).forEach(function(ut,St){var xt=G(ut.id),vt;xt&&(vt=it.get(ut.id)),!vt&&it[gt]&&(vt=it[gt][mt?mt[St]:St])&&xt&&G(vt.options.id)&&(vt=void 0),vt&&vt.coll===gt&&(vt.update(ut,!1),Z&&(vt.touched=!0)),!vt&&Z&&it.collectionsWithInit[gt]&&(it.collectionsWithInit[gt][0].apply(it,[ut].concat(it.collectionsWithInit[gt][1]||[]).concat([!1])).touched=!0)}),Z&&it[gt].forEach(function(ut){ut.touched||ut.options.isInternal?delete ut.touched:ct.push(ut)})}}),ct.forEach(function(gt){gt.chart&&gt.remove&&gt.remove(!1)}),yt&&it.axes.forEach(function(gt){gt.update({},!1)}),ft&&it.getSeriesOrderByLinks().forEach(function(gt){gt.chart&&gt.update({},!1)},this),yt=dt&&dt.width,dt=dt&&(O(dt.height)?st(dt.height,yt||it.chartWidth):dt.height),pt||u(yt)&&yt!==it.chartWidth||u(dt)&&dt!==it.chartHeight?it.setSize(yt,dt,q):F(H,!0)&&it.redraw(q),L(it,"afterUpdate",{options:N,redraw:H,animation:q})},$.prototype.setSubtitle=function(N,H){this.applyDescription("subtitle",N),this.layOutTitles(H)},$.prototype.setCaption=function(N,H){this.applyDescription("caption",N),this.layOutTitles(H)},$.prototype.showResetZoom=function(){function N(){H.zoomOut()}var H=this,Z=b.lang,q=H.options.chart.zooming.resetButton,it=q.theme,nt=q.relativeTo==="chart"||q.relativeTo==="spacingBox"?null:"scrollablePlotBox";L(this,"beforeShowResetZoom",null,function(){H.resetZoomButton=H.renderer.button(Z.resetZoom,null,null,N,it).attr({align:q.position.align,title:Z.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(q.position,!1,nt)}),L(this,"afterShowResetZoom")},$.prototype.zoomOut=function(){L(this,"selection",{resetSelection:!0}
2,this.zoom)},$.prototype.zoom=function(N){var H=this,Z=H.pointer,q=!1,it;!N||N.resetSelection?(H.axes.forEach(function(ht){it=ht.zoom()}),Z.initiated=!1):N.xAxis.concat(N.yAxis).forEach(function(ht){var ct=ht.axis;(Z[ct.isXAxis?"zoomX":"zoomY"]&&G(Z.mouseDownX)&&G(Z.mouseDownY)&&H.isInsidePlot(Z.mouseDownX-H.plotLeft,Z.mouseDownY-H.plotTop,{axis:ct})||!G(H.inverted?Z.mouseDownX:Z.mouseDownY))&&(it=ct.zoom(ht.min,ht.max),ct.displayBtn&&(q=!0))});var nt=H.resetZoomButton;q&&!nt?H.showResetZoom():!q&&z(nt)&&(H.resetZoomButton=nt.destroy()),it&&H.redraw(F(H.options.chart.animation,N&&N.animation,100>H.pointCount))},$.prototype.pan=function(N,H){var Z=this,q=Z.hoverPoints;H=typeof H=="object"?H:{enabled:H,type:"x"};var it=Z.options.chart;it&&it.panning&&(it.panning=H);var nt=H.type,ht;L(this,"pan",{originalEvent:N},function(){q&&q.forEach(function(pt){pt.setState()});var ct=Z.xAxis;nt==="xy"?ct=ct.concat(Z.yAxis):nt==="y"&&(ct=Z.yAxis);var ft={};ct.forEach(function(pt){if(pt.options.panningEnabled&&!pt.options.isInternal){var dt=pt.horiz,yt=N[dt?"chartX":"chartY"];dt=dt?"mouseDownX":"mouseDownY";var gt=Z[dt],mt=pt.minPointOffset||0,ut=pt.reversed&&!Z.inverted||!pt.reversed&&Z.inverted?-1:1,St=pt.getExtremes(),xt=pt.toValue(gt-yt,!0)+mt*ut,vt=pt.toValue(gt+pt.len-yt,!0)-(mt*ut||pt.isXAxis&&pt.pointRangePadding||0),At=vt<xt;ut=pt.hasVerticalPanning(),gt=At?vt:xt,xt=At?xt:vt;var kt=pt.panningState;!ut||pt.isXAxis||kt&&!kt.isDirty||pt.series.forEach(function(wt){var Tt=wt.getProcessedData(!0);Tt=wt.getExtremes(Tt.yData,!0),kt||(kt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),u(Tt.dataMin)&&u(Tt.dataMax)&&(kt.startMin=Math.min(F(wt.options.threshold,1/0),Tt.dataMin,kt.startMin),kt.startMax=Math.max(F(wt.options.threshold,-1/0),Tt.dataMax,kt.startMax))}),ut=Math.min(F(kt&&kt.startMin,St.dataMin),mt?St.min:pt.toValue(pt.toPixels(St.min)-pt.minPixelPadding)),vt=Math.max(F(kt&&kt.startMax,St.dataMax),mt?St.max:pt.toValue(pt.toPixels(St.max)+pt.minPixelPadding)),pt.panningState=kt,pt.isOrdinal||(mt=ut-gt,0<mt&&(xt+=mt,gt=ut),mt=xt-vt,0<mt&&(xt=vt,gt-=mt),pt.series.length&&gt!==St.min&&xt!==St.max&&gt>=ut&&xt<=vt&&(pt.setExtremes(gt,xt,!1,!1,{trigger:"pan"}),!Z.resetZoomButton&&gt!==ut&&xt!==vt&&nt.match("y")&&(Z.showResetZoom(),pt.displayBtn=!1),ht=!0),ft[dt]=yt)}}),W(ft,function(pt,dt){Z[dt]=pt}),ht&&Z.redraw(!1),P(Z.container,{cursor:"move"})})},$}(),T(X.prototype,{callbacks:[],collectionsWithInit:{xAxis:[X.prototype.addAxis,[!0]],yAxis:[X.prototype.addAxis,[!1]],series:[X.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroun
2dColor 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(" ")}),X}),lt(_,"Core/Legend/LegendSymbol.js",[_["Core/Utilities.js"]],function(X){var Y=X.extend,V=X.merge,et=X.pick,J;return function(Q){Q.drawLineMarker=function(K){var R=this.legendItem=this.legendItem||{},D=this.options,A=K.symbolWidth,g=K.symbolHeight,f=g/2,y=this.chart.renderer,k=R.group;K=K.baseline-Math.round(.3*K.fontMetrics.b);var v={},S=D.marker,M=0;this.chart.styledMode||(v={"stroke-width":Math.min(D.lineWidth||0,24)},D.dashStyle?v.dashstyle=D.dashStyle:D.linecap!=="square"&&(v["stroke-linecap"]="round")),R.line=y.path().addClass("highcharts-graph").attr(v).add(k),v["stroke-linecap"]&&(M=Math.min(R.line.strokeWidth(),A)/2),R.line.attr({d:[["M",M,K],["L",A-M,K]]}),S&&S.enabled!==!1&&A&&(D=Math.min(et(S.radius,f),f),this.symbol.indexOf("url")===0&&(S=V(S,{width:g,height:g}),D=0),R.symbol=R=y.symbol(this.symbol,A/2-D,K-D,2*D,2*D,Y({context:"legend"},S)).addClass("highcharts-point").add(k),R.isMarker=!0)},Q.drawRectangle=function(K,R){R=R.legendItem||{};var D=K.symbolHeight,A=K.options.squareSymbol;R.symbol=this.chart.renderer.rect(A?(K.symbolWidth-D)/2:0,K.baseline-D+1,A?D:K.symbolWidth,D,et(K.options.symbolRadius,D/2)).addClass("highcharts-point").attr({zIndex:3}).add(R.group)}}(J||(J={})),J}),lt(_,"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 X=this.series.chart.numberFormatter;return typeof this.y!="number"?"":X(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"}}),lt(_,"Core/Series/Series.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Defaults.js"],_["Core/Foundation.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/Point.js"],_["Core/Series/SeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(X,Y,V,et,J,Q,K,R,D,A){var g=X.animObject,f=X.setAnimation,y=Y.defaultOptions,k=V.registerEventOptions,v=et.hasTouch,S=et.svg,M=et.win,w=R.seriesTypes,b=A.arrayMax,j=A.arrayMin,C=A.clamp,s=A.cleanRecursively,d=A.correctFloat,o=A.defined,h=A.erase,t=A.error,p=A.extend,i=A.find,r=A.fireEvent,c=A.getNestedProperty,a=A.isArray,m=A.isNumber,P=A.isString,G=A.merge,I=A.objectEach,e=A.pick,l=A.removeEvent,T=A.splat,E=A.syncTimeout;return X=function(){function L(){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 L.prototype.init=function(n,x){r(this,"init",{options:x});var u=this,z=n.series;this.eventsToUnbind=[],u.chart=n,u.options=u.setOptions(x),x=u.options,u.linkedSeries=[],u.bindAxes(),p(u,{name:x.name,state:"",visible:x.visible!==!1,selected:x.selected===!0}),k(this,x);var O=x.events;(O&&O.click||x.point&&x.point.events&&x.point.events.click||x.allowPointSelect)&&(n.runTrackerClick=!0),u.getColor(),u.getSymbol(),u.parallelArrays.forEach(function(W){u[W+"Data"]||(u[W+"Data"]=[])}),u.isCartesian&&(n.hasCartesianSeries=!0);var B;z.length&&(B=z[z.length-1]),u._i=e(B&&B._i,-1)+1,u.opacity=u.options.opacity,n.orderSeries(this.insert(z)),x.dataSorting&&x.dataSorting.enabled?u.setDataSortingOptions():u.points||u.data||u.setData(x.data,!1),r(this,"afterInit")},L.prototype.is=function(n){return w[n]&&this instanceof w[n]},L.prototype.insert=function(n){var x=this.options.index,u;if(m(x)){for(u=n.length;u--;)if(x>=e(n[u].options.index,n[u]._i)){n.splice(u+1,0,this);break}u===-1&&n.unshift(this),u+=1}else n.push(this);return e(u,n.length-1)},L.prototype.bindAxes=function(){var n=this,x=n.options,u=n.chart,z;
2r(this,"bindAxes",null,function(){(n.axisTypes||[]).forEach(function(O){var B=0;u[O].forEach(function(W){z=W.options,(x[O]===B&&!z.isInternal||typeof x[O]<"u"&&x[O]===z.id||typeof x[O]>"u"&&z.index===0)&&(n.insert(W.series),n[O]=W,W.isDirty=!0),z.isInternal||B++}),n[O]||n.optionalAxis===O||t(18,!0,u)})}),r(this,"afterBindAxes")},L.prototype.updateParallelArrays=function(n,x){var u=n.series,z=arguments,O=m(x)?function(B){var W=B==="y"&&u.toYData?u.toYData(n):n[B];u[B+"Data"][x]=W}:function(B){Array.prototype[x].apply(u[B+"Data"],Array.prototype.slice.call(z,2))};u.parallelArrays.forEach(O)},L.prototype.hasData=function(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&0<this.yData.length},L.prototype.autoIncrement=function(n){var x=this.options,u=x.pointIntervalUnit,z=x.relativeXValue,O=this.chart.time,B=this.xIncrement,W;return B=e(B,x.pointStart,0),this.pointInterval=W=e(this.pointInterval,x.pointInterval,1),z&&m(n)&&(W*=n),u&&(x=new O.Date(B),u==="day"?O.set("Date",x,O.get("Date",x)+W):u==="month"?O.set("Month",x,O.get("Month",x)+W):u==="year"&&O.set("FullYear",x,O.get("FullYear",x)+W),W=x.getTime()-B),z&&m(n)?B+W:(this.xIncrement=B+W,B)},L.prototype.setDataSortingOptions=function(){var n=this.options;p(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),o(n.pointRange)||(n.pointRange=1)},L.prototype.setOptions=function(n){var x=this.chart,u=x.options,z=u.plotOptions,O=x.userOptions||{};
2n=G(n),x=x.styledMode;var B={plotOptions:z,userOptions:n};r(this,"setOptions",B);var W=B.plotOptions[this.type],F=O.plotOptions||{};return this.userOptions=B.userOptions,O=G(W,z.series,O.plotOptions&&O.plotOptions[this.type],n),this.tooltipOptions=G(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,u.tooltip.userOptions,z.series&&z.series.tooltip,z[this.type].tooltip,n.tooltip),this.stickyTracking=e(n.stickyTracking,F[this.type]&&F[this.type].stickyTracking,F.series&&F.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:O.stickyTracking),W.marker===null&&delete O.marker,this.zoneAxis=O.zoneAxis,z=this.zones=(O.zones||[]).slice(),!O.negativeColor&&!O.negativeFillColor||O.zones||(u={value:O[this.zoneAxis+"Threshold"]||O.threshold||0,className:"highcharts-negative"},x||(u.color=O.negativeColor,u.fillColor=O.negativeFillColor),z.push(u)),z.length&&o(z[z.length-1].value)&&z.push(x?{}:{color:this.color,fillColor:this.fillColor}),r(this,"afterSetOptions",{options:O}),O},L.prototype.getName=function(){return e(this.options.name,"Series "+(this.index+1))},L.prototype.getCyclic=function(n,x,u){var z=this.chart,O=this.userOptions,B=n+"Index",W=n+"Counter",F=u?u.length:e(z.options.chart[n+"Count"],z[n+"Count"]);if(!x){var U=e(O[B],O["_"+B]);o(U)||(z.series.length||(z[W]=0),O["_"+B]=U=z[W]%F,z[W]+=1),u&&(x=u[U])}typeof U<"u"&&(this[B]=U),this[n]=x},L.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||y.plotOptions[this.type].color,this.chart.options.colors)},L.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},L.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},L.prototype.findPointIndex=function(n,x){var u=n.id,z=n.x,O=this.points,B=this.options.dataSorting,W,F;if(u)B=this.chart.get(u),B instanceof Q&&(W=B);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(W=function(st){return!st.touched&&st.index===n.index},B&&B.matchByName?W=function(st){return!st.touched&&st.name===n.name}:this.options.relativeXValue&&(W=function(st){return!st.touched&&st.options.x===n.x}),W=i(O,W),!W))return;if(W){var U=W&&W.index;typeof U<"u"&&(F=!0)}return typeof U>"u"&&m(z)&&(U=this.xData.indexOf(z,x)),U!==-1&&typeof U<"u"&&this.cropped&&(U=U>=this.cropStart?U-this.cropStart:U),!F&&m(U)&&O[U]&&O[U].touched&&(U=void 0),U},L.prototype.updateData=function(n,x){var u=this.options,z=u.dataSorting,O=this.points,B=[],W=this.requireSorting,F=n.length===O.length,U,st,rt,ot=!0;if(this.xIncrement=null,n.forEach(function(tt,at){var $=o(tt)&&this.pointClass.prototype.optionsToObject.call({series:this},tt)||{},N=$.x;$.id||m(N)?($=this.findPointIndex($,rt),$===-1||typeof $>"u"?B.push(tt):O[$]&&tt!==u.data[$]?(O[$].update(tt,!1,null,!1),O[$].touched=!0,W&&(rt=$+1)):O[$]&&(O[$].touched=!0),(!F||at!==$||z&&z.enabled||this.hasDerivedData)&&(U=!0)):B.push(tt)},this),U)for(n=O.length;n--;)(st=O[n])&&!st.touched&&st.remove&&st.remove(!1,x);else!F||z&&z.enabled?ot=!1:(n.forEach(function(tt,at){tt!==O[at].y&&O[at].update&&O[at].update(tt,!1,null,!1)}),B.length=0);return O.forEach(function(tt){tt&&(tt.touched=!1)}),ot?(B.forEach(function(tt){this.addPoint(tt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=b(this.xData),this.autoIncrement()),!0):!1},L.prototype.setData=function(n,x,u,z){x===void 0&&(x=!0);var O=this,B=O.points,W=B&&B.length||0,F=O.options,U=O.chart,st=F.dataSorting,rt=O.xAxis,ot=F.turboThreshold,tt=this.xData,at=this.yData,$=O.pointArrayMap;$=$&&$.length;var N=F.keys,H,Z=0,q=1,it=null;if(!U.options.chart.allowMutatingData){F.data&&delete O.options.data,O.userOptions.data&&delete O.userOptions.data;var nt=G(!0,n)}if(n=nt||n||[],nt=n.length,st&&st.enabled&&(n=this.sortData(n)),U.options.chart.allowMutatingData&&z!==!1&&nt&&W&&!O.cropped&&!O.hasGroupedData&&O.visible&&!O.boosted&&(H=this.updateData(n,u)),!H){if(O.xIncrement=null,O.colorCounter=0,this.parallelArrays.forEach(function(ht){O[ht+"Data"].length=0}),ot&&nt>ot)if(it=O.getFirstValidPoint(n),m(it))for(u=0;
2u<nt;u++)tt[u]=this.autoIncrement(),at[u]=n[u];else if(a(it))if($)if(it.length===$)for(u=0;u<nt;u++)tt[u]=this.autoIncrement(),at[u]=n[u];else for(u=0;u<nt;u++)z=n[u],tt[u]=z[0],at[u]=z.slice(1,$+1);else if(N&&(Z=N.indexOf("x"),q=N.indexOf("y"),Z=0<=Z?Z:0,q=0<=q?q:1),it.length===1&&(q=0),Z===q)for(u=0;u<nt;u++)tt[u]=this.autoIncrement(),at[u]=n[u][q];else for(u=0;u<nt;u++)z=n[u],tt[u]=z[Z],at[u]=z[q];else t(12,!1,U);else for(u=0;u<nt;u++)typeof n[u]<"u"&&(z={series:O},O.pointClass.prototype.applyOptions.apply(z,[n[u]]),O.updateParallelArrays(z,u));for(at&&P(at[0])&&t(14,!0,U),O.data=[],O.options.data=O.userOptions.data=n,u=W;u--;)B[u]&&B[u].destroy&&B[u].destroy();rt&&(rt.minRange=rt.userMinRange),O.isDirty=U.isDirtyBox=!0,O.isDirtyData=!!B,u=!1}F.legendType==="point"&&(this.processData(),this.generatePoints()),x&&U.redraw(u)},L.prototype.sortData=function(n){var x=this,u=x.options.dataSorting.sortKey||"y",z=function(O,B){return o(B)&&O.pointClass.prototype.optionsToObject.call({series:O},B)||{}};return n.forEach(function(O,B){n[B]=z(x,O),n[B].index=B},this),n.concat().sort(function(O,B){return O=c(u,O),B=c(u,B),B<O?-1:B>O?1:0}).forEach(function(O,B){O.x=B},this),x.linkedSeries&&x.linkedSeries.forEach(function(O){var B=O.options,W=B.data;B.dataSorting&&B.dataSorting.enabled||!W||(W.forEach(function(F,U){W[U]=z(O,F),n[U]&&(W[U].x=n[U].x,W[U].index=U)}),O.setData(W,!1))}),n},L.prototype.getProcessedData=function(n){var x=this.xAxis,u=this.options,z=u.cropThreshold,O=n||this.getExtremesFromAll||u.getExtremesFromAll,B=this.isCartesian;n=x&&x.val2lin,u=!(!x||!x.logarithmic);var W=0,F=this.xData,U=this.yData,st=this.requireSorting,rt=!1,ot=F.length;if(x){rt=x.getExtremes();var tt=rt.min,at=rt.max;rt=!(!x.categories||x.names.length)}if(B&&this.sorted&&!O&&(!z||ot>z||this.forceCrop)){if(F[ot-1]<tt||F[0]>at)F=[],U=[];else if(this.yData&&(F[0]<tt||F[ot-1]>at)){var $=this.cropData(this.xData,this.yData,tt,at);F=$.xData,U=$.yData,W=$.start,$=!0}}for(z=F.length||1;--z;)if(x=u?n(F[z])-n(F[z-1]):F[z]-F[z-1],0<x&&(typeof N>"u"||x<N))var N=x;else 0>x&&st&&!rt&&(t(15,!1,this.chart),st=!1);return{xData:F,yData:U,cropped:$,cropStart:W,closestPointRange:N}},L.prototype.processData=function(n){var x=this.xAxis;if(this.isCartesian&&!this.isDirty&&!x.isDirty&&!this.yAxis.isDirty&&!n)return!1;n=this.getProcessedData(),this.cropped=n.cropped,this.cropStart=n.cropStart,this.processedXData=n.xData,this.processedYData=n.yData,this.closestPointRange=this.basePointRange=n.closestPointRange,r(this,"afterProcessData")},L.prototype.cropData=function(n,x,u,z,O){var B=n.length,W,F=0,U=B;for(O=e(O,this.cropShoulder),W=0;W<B;W++)if(n[W]>=u){F=Math.max(0,W-O);break}for(u=W;u<B;u++)if(n[u]>z){U=u+O;break}return{xData:n.slice(F,U),yData:x.slice(F,U),start:F,end:U}},L.prototype.generatePoints=function(){var n=this.options,x=this.processedData||n.data,u=this.processedXData,z=this.processedYData,O=this.pointClass,B=u.length,W=this.cropStart||0,F=this.hasGroupedData,U=n.keys,st=[];n=n.dataGrouping&&n.dataGrouping.groupAll?W:0;var rt,ot,tt=this.data;if(!tt&&!F){var at=[];at.length=x.length,tt=this.data=at}for(U&&F&&(this.options.keys=!1),ot=0;ot<B;ot++){if(at=W+ot,F){var $=new O().init(this,[u[ot]].concat(T(z[ot])));$.dataGroup=this.groupMap[n+ot],$.dataGroup.options&&($.options=$.dataGroup.options,p($,$.dataGroup.options),delete $.dataLabels)}else($=tt[at])||typeof x[at]>"u"||(tt[at]=$=new O().init(this,x[at],u[ot]));$&&($.index=F?n+ot:at,st[ot]=$)}if(this.options.keys=U,tt&&(B!==(rt=tt.length)||F))for(ot=0;ot<rt;ot++)ot!==W||F||(ot+=B),tt[ot]&&(tt[ot].destroyElements(),tt[ot].plotX=void 0);this.data=tt,this.points=st,r(this,"afterGeneratePoints")},L.prototype.getXExtremes=function(n){return{min:j(n),max:b(n)}},L.prototype.getExtremes=function(n,x){var u=this.xAxis,z=this.yAxis,O=this.processedXData||this.xData,B=[],W=this.requireSorting?this.cropShoulder:0;z=z?z.positiveValuesOnly:!1;var F,U=0,st=0,rt=0;n=n||this.stackedYData||this.processedYData||[];var ot=n.length;if(u){var tt=u.getExtremes();U=tt.min,st=tt.max}for(F=0;F<ot;F++){var at=O[F];tt=n[F];var $=(m(tt)||a(tt))&&(tt.length||0<tt||!z);if(at=x||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!u||(O[F+W]||at)>=U&&(O[F-W]||at)<=st,$&&at)if($=tt.length)for(;$--;)m(tt[$])&&(B[rt++]=tt[$]);else B[rt++]=tt}return n={activeYData:B,dataMin:j(B),dataMax:b(B)},r(this,"afterGetExtremes",{dataExtremes:n}),n},L.prototype.applyExtremes=function(){var n=this.getExtremes();return this.dataMin=n.dataMin,this.dataMax=n.dataMax,n},L.prototype.getFirstValidPoint=function(n){for(var x=n.length,u=0,z=null;z===null&&u<x;)z=n[u],u++;return z},L.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var n=this.options,x=n.stacking,u=this.xAxis,z=u.categories,O=this.enabledDataSorting,B=this.yAxis,W=this.points,F=W.length,U=this.pointPlacementToXValue(),st=!!U,rt=n.threshold,ot=n.startFromThreshold?rt:0,tt=this.zoneAxis||"y",at,$,N=Number.MAX_VALUE;for(at=0;at<F;at++){var H=W[at],Z=H.x,q=void 0,it=void 0,nt=H.y,ht=H.low,ct=x&&B.stacking&&B.stacking.stacks[(this.negStacks&&nt<(ot?0:rt)?"-":"")+this.stackKey];if((B.positiveValuesOnly&&!B.validatePositiveValue(nt)||u.positiveValuesOnly&&!u.validatePositiveValue(Z))&&(H.isNull=!0),H.plotX=$=d(C(u.translate(Z,0,0,0,1,U,this.type==="flags"),-1e5,1e5)),x&&this.visible&&ct&&ct[Z]){var ft=this.getStackIndicator(ft,Z,this.index);
2!H.isNull&&ft.key&&(q=ct[Z],it=q.points[ft.key]),q&&a(it)&&(ht=it[0],nt=it[1],ht===ot&&ft.key===ct[Z].base&&(ht=e(m(rt)?rt:B.min)),B.positiveValuesOnly&&o(ht)&&0>=ht&&(ht=void 0),H.total=H.stackTotal=e(q.total),H.percentage=o(H.y)&&q.total?H.y/q.total*100:void 0,H.stackY=nt,this.irregularWidths||q.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(H.yBottom=o(ht)?C(B.translate(ht,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(nt=this.dataModify.modifyValue(nt,at)),H.plotY=void 0,m(nt)&&(q=B.translate(nt,!1,!0,!1,!0),typeof q<"u"&&(H.plotY=C(q,-1e5,1e5))),H.isInside=this.isPointInside(H),H.clientX=st?d(u.translate(Z,0,0,0,1,U)):$,H.negative=H[tt]<(n[tt+"Threshold"]||rt||0),H.category=e(z&&z[H.x],H.x),!H.isNull&&H.visible!==!1){typeof pt<"u"&&(N=Math.min(N,Math.abs($-pt)));var pt=$}H.zone=this.zones.length?H.getZone():void 0,!H.graphic&&this.group&&O&&(H.isNew=!0)}this.closestPointRangePx=N,r(this,"afterTranslate")},L.prototype.getValidPoints=function(n,x,u){var z=this.chart;return(n||this.points||[]).filter(function(O){return x&&!z.isInsidePlot(O.plotX,O.plotY,{inverted:z.inverted})?!1:O.visible!==!1&&(u||!O.isNull)})},L.prototype.getClipBox=function(){var n=this.chart,x=this.xAxis,u=this.yAxis,z=G(n.clipBox);return x&&x.len!==n.plotSizeX&&(z.width=x.len),u&&u.len!==n.plotSizeY&&(z.height=u.len),z},L.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},L.prototype.setClip=function(){var n=this.chart,x=this.group,u=this.markerGroup,z=n.sharedClips;n=n.renderer;var O=this.getClipBox(),B=this.getSharedClipKey(),W=z[B];W?W.animate(O):z[B]=W=n.clipRect(O),x&&x.clip(this.options.clip===!1?void 0:W),u&&u.clip()},L.prototype.animate=function(n){var x=this.chart,u=this.group,z=this.markerGroup,O=x.inverted,B=g(this.options.animation),W=[this.getSharedClipKey(),B.duration,B.easing,B.defer].join(),F=x.sharedClips[W],U=x.sharedClips[W+"m"];if(n&&u)B=this.getClipBox(),F?F.attr("height",B.height):(B.width=0,O&&(B.x=x.plotHeight),F=x.renderer.clipRect(B),x.sharedClips[W]=F,U=x.renderer.clipRect({x:-99,y:-99,width:O?x.plotWidth+199:99,height:O?99:x.plotHeight+199}),x.sharedClips[W+"m"]=U),u.clip(F),z&&z.clip(U);else if(F&&!F.hasClass("highcharts-animating")){x=this.getClipBox();var st=B.step;z&&z.element.childNodes.length&&(B.step=function(rt,ot){st&&st.apply(ot,arguments),ot.prop==="width"&&U&&U.element&&U.attr(O?"height":"width",rt+99)}),F.addClass("highcharts-animating").animate(x,B)}},L.prototype.afterAnimate=function(){var n=this;this.setClip(),I(this.chart.sharedClips,function(x,u,z){x&&!n.chart.container.querySelector('[clip-path="url(#'.concat(x.id,')"]'))&&(x.destroy(),delete z[u])}),this.finishedAnimating=!0,r(this,"afterAnimate")},L.prototype.drawPoints=function(n){n===void 0&&(n=this.points);var x=this.chart,u=x.styledMode,z=this.colorAxis,O=this.options.marker,B=this[this.specialGroup||"markerGroup"],W=this.xAxis,F=e(O.enabled,!W||W.isRadial?!0:null,this.closestPointRangePx>=O.enabledThreshold*O.radius),U,st;if(O.enabled!==!1||this._hasPointMarkers)for(U=0;U<n.length;U++){var rt=n[U],ot=(st=rt.graphic)?"animate":"attr",tt=rt.marker||{},at=!!rt.marker;if((F&&typeof tt.enabled>"u"||tt.enabled)&&!rt.isNull&&rt.visible!==!1){var $=e(tt.symbol,this.symbol,"rect"),N=this.markerAttribs(rt,rt.selected&&"select");this.enabledDataSorting&&(rt.startXPos=W.reversed?-(N.width||0):W.width);var H=rt.isInside!==!1;!st&&H&&(0<(N.width||0)||rt.hasImage)&&(rt.graphic=st=x.renderer.symbol($,N.x,N.y,N.width,N.height,at?tt:O).add(B),this.enabledDataSorting&&x.hasRendered&&(st.attr({x:rt.startXPos}),ot="animate")),st&&ot==="animate"&&st[H?"show":"hide"](H).animate(N),st&&(tt=this.pointAttribs(rt,u||!rt.selected?void 0:"select"),u?z&&st.css({fill:tt.fill}):st[ot](tt)),st&&st.addClass(rt.getClassName(),!0)}else st&&(rt.graphic=st.destroy())}},L.prototype.markerAttribs=function(n,x){var u=this.options,z=u.marker,O=n.marker||{},B=O.symbol||z.symbol,W={},F=e(O.radius,z&&z.radius);return x&&(z=z.states[x],x=O.states&&O.states[x],F=e(x&&x.radius,z&&z.radius,F&&F+(z&&z.radiu
2sPlus||0))),n.hasImage=B&&B.indexOf("url")===0,n.hasImage&&(F=0),n=n.pos(),m(F)&&n&&(W.x=n[0]-F,W.y=n[1]-F,u.crisp&&(W.x=Math.floor(W.x))),F&&(W.width=W.height=2*F),W},L.prototype.pointAttribs=function(n,x){var u=this.options.marker,z=n&&n.options,O=z&&z.marker||{},B=z&&z.color,W=n&&n.color,F=n&&n.zone&&n.zone.color,U=this.color;return n=e(O.lineWidth,u.lineWidth),z=1,U=B||F||W||U,B=O.fillColor||u.fillColor||U,W=O.lineColor||u.lineColor||U,x=x||"normal",u=u.states[x]||{},x=O.states&&O.states[x]||{},n=e(x.lineWidth,u.lineWidth,n+e(x.lineWidthPlus,u.lineWidthPlus,0)),B=x.fillColor||u.fillColor||B,W=x.lineColor||u.lineColor||W,z=e(x.opacity,u.opacity,z),{stroke:W,"stroke-width":n,fill:B,opacity:z}},L.prototype.destroy=function(n){var x=this,u=x.chart,z=/AppleWebKit\/533/.test(M.navigator.userAgent),O=x.data||[],B,W,F,U;for(r(x,"destroy",{keepEventsForUpdate:n}),this.removeEvents(n),(x.axisTypes||[]).forEach(function(st){(U=x[st])&&U.series&&(h(U.series,x),U.isDirty=U.forceRedraw=!0)}),x.legendItem&&x.chart.legend.destroyItem(x),W=O.length;W--;)(F=O[W])&&F.destroy&&F.destroy();x.clips&&x.clips.forEach(function(st){return st.destroy()}),A.clearTimeout(x.animationTimeout),I(x,function(st,rt){st instanceof D&&!st.survive&&(B=z&&rt==="group"?"hide":"destroy",st[B]())}),u.hoverSeries===x&&(u.hoverSeries=void 0),h(u.series,x),u.orderSeries(),I(x,function(st,rt){n&&rt==="hcEvents"||delete x[rt]})},L.prototype.applyZones=function(){var n=this,x=this.chart,u=x.renderer,z=this.zones,O=this.clips||[],B=this.graph,W=this.area,F=Math.max(x.plotWidth,x.plotHeight),U=this[(this.zoneAxis||"y")+"Axis"],st=x.inverted,rt,ot,tt,at,$,N,H,Z,q=!1;if(z.length&&(B||W)&&U&&typeof U.min<"u"){var it=U.reversed,nt=U.horiz;B&&!this.showLine&&B.hide(),W&&W.hide();var ht=U.getExtremes();z.forEach(function(ct,ft){rt=it?nt?x.plotWidth:0:nt?0:U.toPixels(ht.min)||0,rt=C(e(ot,rt),0,F),ot=C(Math.round(U.toPixels(e(ct.value,ht.max),!0)||0),0,F),q&&(rt=ot=U.toPixels(ht.max)),at=Math.abs(rt-ot),$=Math.min(rt,ot),N=Math.max(rt,ot),U.isXAxis?(tt={x:st?N:$,y:0,width:at,height:F},nt||(tt.x=x.plotHeight-tt.x)):(tt={x:0,y:st?N:$,width:F,height:at},nt&&(tt.y=x.plotWidth-tt.y)),st&&u.isVML&&(tt=U.isXAxis?{x:0,y:it?$:N,height:tt.width,width:x.chartWidth}:{x:tt.y-x.plotLeft-x.spacingBox.x,y:0,width:tt.height,height:x.chartHeight}),O[ft]?O[ft].animate(tt):O[ft]=u.clipRect(tt),H=n["zone-area-"+ft],Z=n["zone-graph-"+ft],B&&Z&&Z.clip(O[ft]),W&&H&&H.clip(O[ft]),q=ct.value>ht.max,n.resetZones&&ot===0&&(ot=void 0)}),this.clips=O}else n.visible&&(B&&B.show(),W&&W.show())},L.prototype.plotGroup=function(n,x,u,z,O){var B=this[n],W=!B;return u={visibility:u,zIndex:z||.1},typeof this.opacity>"u"||this.chart.styledMode||this.state==="inactive"||(u.opacity=this.opacity),W&&(this[n]=B=this.chart.renderer.g().add(O)),B.addClass("highcharts-"+x+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(o(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(B.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),B.attr(u)[W?"attr":"animate"](this.getPlotBox(x)),B},L.prototype.getPlotBox=function(n){var x=this.xAxis,u=this.yAxis,z=this.chart;return n=z.inverted&&!z.polar&&x&&this.invertible!==!1&&n==="series",z.inverted&&(x=u,u=this.xAxis),{translateX:x?x.left:z.plotLeft,translateY:u?u.top:z.plotTop,rotation:n?90:0,rotationOriginX:n?(x.len-u.len)/2:0,rotationOriginY:n?(x.len+u.len)/2:0,scaleX:n?-1:1,scaleY:1}},L.prototype.removeEvents=function(n){n||l(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(x){x()}),this.eventsToUnbind.length=0)},L.prototype.render=function(){var n=this,x=n.chart,u=n.options,z=g(u.animation),O=n.visible?"inherit":"hidden",B=u.zIndex,W=n.hasRendered,F=x.seriesGroup;x=!n.finishedAnimating&&x.renderer.isSVG?z.duration:0,r(this,"render"),n.plotGroup("group","series",O,B,F),n.markerGroup=n.plotGroup("markerGroup","markers",O,B,F),u.clip!==!1&&n.setClip(),n.animate&&x&&n.animate(!0),n.drawGraph&&(n.drawGraph(),n.applyZones()),n.visible&&n.drawPoints(),n.drawDataLabels&&n.drawDataLabels(),n.redrawPoints&&n.redrawPoints(),n.drawTracker&&n.options.enableMouseTracking!==!1&&n.drawTracker(),n.animate&&x&&n.animate(),W||(x&&z.defer&&(x+=z.defer),n.animationTimeout=E(function(){n.afterAnimate()}
2,x||0)),n.isDirty=!1,n.hasRendered=!0,r(n,"afterRender")},L.prototype.redraw=function(){var n=this.isDirty||this.isDirtyData;this.translate(),this.render(),n&&delete this.kdTree},L.prototype.searchPoint=function(n,x){var u=this.xAxis,z=this.yAxis,O=this.chart.inverted;return this.searchKDTree({clientX:O?u.len-n.chartY+u.pos:n.chartX-u.pos,plotY:O?z.len-n.chartX+z.pos:n.chartY-z.pos},x,n)},L.prototype.buildKDTree=function(n){function x(O,B,W){var F=O&&O.length;if(F){var U=u.kdAxisArray[B%W];return O.sort(function(st,rt){return st[U]-rt[U]}),F=Math.floor(F/2),{point:O[F],left:x(O.slice(0,F),B+1,W),right:x(O.slice(F+1),B+1,W)}}}this.buildingKdTree=!0;var u=this,z=-1<u.options.findNearestPointBy.indexOf("y")?2:1;delete u.kdTree,E(function(){u.kdTree=x(u.getValidPoints(null,!u.directTouch),z,z),u.buildingKdTree=!1},u.options.kdNow||n&&n.type==="touchstart"?0:1)},L.prototype.searchKDTree=function(n,x,u){function z(U,st,rt,ot){var tt=st.point,at=O.kdAxisArray[rt%ot],$=tt,N=o(U[B])&&o(tt[B])?Math.pow(U[B]-tt[B],2):null,H=o(U[W])&&o(tt[W])?Math.pow(U[W]-tt[W],2):null;return H=(N||0)+(H||0),tt.dist=o(H)?Math.sqrt(H):Number.MAX_VALUE,tt.distX=o(N)?Math.sqrt(N):Number.MAX_VALUE,at=U[at]-tt[at],H=0>at?"left":"right",N=0>at?"right":"left",st[H]&&(H=z(U,st[H],rt+1,ot),$=H[F]<$[F]?H:tt),st[N]&&Math.sqrt(at*at)<$[F]&&(U=z(U,st[N],rt+1,ot),$=U[F]<$[F]?U:$),$}var O=this,B=this.kdAxisArray[0],W=this.kdAxisArray[1],F=x?"distX":"dist";if(x=-1<O.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(u),this.kdTree)return z(n,this.kdTree,x,x)},L.prototype.pointPlacementToXValue=function(){var n=this.options,x=n.pointRange,u=this.xAxis;return n=n.pointPlacement,n==="between"&&(n=u.reversed?-.5:.5),m(n)?n*(x||u.pointRange):0},L.prototype.isPointInside=function(n){var x=this.chart,u=this.xAxis,z=this.yAxis;return typeof n.plotY<"u"&&typeof n.plotX<"u"&&0<=n.plotY&&n.plotY<=(z?z.len:x.plotHeight)&&0<=n.plotX&&n.plotX<=(u?u.len:x.plotWidth)},L.prototype.drawTracker=function(){var n=this,x=n.options,u=x.trackByArea,z=[].concat(u?n.areaPath:n.graphPath),O=n.chart,B=O.pointer,W=O.renderer,F=O.options.tooltip.snap,U=n.tracker,st=function(ot){O.hoverSeries!==n&&n.onMouseOver()},rt="rgba(192,192,192,"+(S?1e-4:.002)+")";U?U.attr({d:z}):n.graph&&(n.tracker=W.path(z).attr({visibility:n.visible?"inherit":"hidden",zIndex:2}).addClass(u?"highcharts-tracker-area":"highcharts-tracker-line").add(n.group),O.styledMode||n.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:rt,fill:u?rt:"none","stroke-width":n.graph.strokeWidth()+(u?0:2*F)}),[n.tracker,n.markerGroup,n.dataLabelsGroup].forEach(function(ot){ot&&(ot.addClass("highcharts-tracker").on("mouseover",st).on("mouseout",function(tt){B.onTrackerMouseOut(tt)}),x.cursor&&!O.styledMode&&ot.css({cursor:x.cursor}),v)&&ot.on("touchstart",st)})),r(this,"afterDrawTracker")},L.prototype.addPoint=function(n,x,u,z,O){var B=this.options,W=this.data,F=this.chart,U=this.xAxis;U=U&&U.hasNames&&U.names;var st=B.data,rt=this.xData,ot;x=e(x,!0);var tt={series:this};this.pointClass.prototype.applyOptions.apply(tt,[n]);var at=tt.x,$=rt.length;if(this.requireSorting&&at<rt[$-1])for(ot=!0;$&&rt[$-1]>at;)$--;this.updateParallelArrays(tt,"splice",$,0,0),this.updateParallelArrays(tt,$),U&&tt.name&&(U[at]=tt.name),st.splice($,0,n),(ot||this.processedData)&&(this.data.splice($,0,null),this.processData()),B.legendType==="point"&&this.generatePoints(),u&&(W[0]&&W[0].remove?W[0].remove(!1):(W.shift(),this.updateParallelArrays(tt,"shift"),st.shift())),O!==!1&&r(this,"addPoint",{point:tt}),this.isDirtyData=this.isDirty=!0,x&&F.redraw(z)},L.prototype.removePoint=function(n,x,u){var z=this,O=z.data,B=O[n],W=z.points,F=z.chart,U=function(){W&&W.length===O.length&&W.splice(n,1),O.splice(n,1),z.options.data.splice(n,1),z.updateParallelArrays(B||{series:z},"splice",n,1),B&&B.destroy(),z.isDirty=!0,z.isDirtyData=!0,x&&F.redraw()};f(u,F),x=e(x,!0),B?B.firePointEvent("remove",null,U):U()},L.prototype.remove=function(n,x,u,z){function O(){B.destroy(z),W.isDirtyLegend=W.isDirtyBox=!0,W.linkSeries(),e(n,!0)&&W.redraw(x)}var B=this,W=B.chart;u!==!1?r(B,"remove",null,O):O()},L.prototype.update=function(n,x){n=s(n,this.userOptions),r(this,"update",{options:n});var u=this,z=u.chart,O=u.userOptions,B=u.initialType||u.type,W=z.options.plotOptions,F=w[B].prototype,U=u.finishedAnimating&&{animation:!1},st={},rt=["eventOptions","navigatorSeries","baseSeries"],ot=n.type||O.type||z.options.chart.type,tt=!(this.hasDerivedData||ot&&ot!==this.type||typeof n.pointStart<"u"||typeof n.pointInterval<"u"||typeof n.relativeXValue<"u"||n.joinBy||n.mapData||u.hasOptionChanged("dataGrouping")||u.hasOptionChanged("pointStart")||u.hasOptionChanged("pointInterval")||u.hasOptionChanged("pointIntervalUnit")||u.hasOptionChanged("keys"));if(ot=ot||B,tt&&(rt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),n.visible!==!1&&rt.push("area","graph"),u.parallelArrays.forEach(function($){rt.push($+"Data")}),n.data&&(n.dataSorting&&p(u.options.dataSorting,n.dataSorting),this.setData(n.data,!1))),n=G(O,U,{index:typeof O.index>
2"u"?u.index:O.index,pointStart:e(W&&W.series&&W.series.pointStart,O.pointStart,u.xData[0])},!tt&&{data:u.options.data},n),tt&&n.data&&(n.data=u.options.data),rt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(rt),rt.forEach(function($){rt[$]=u[$],delete u[$]}),W=!1,w[ot]){if(W=ot!==u.type,u.remove(!1,!1,!1,!0),W)if(Object.setPrototypeOf)Object.setPrototypeOf(u,w[ot].prototype);else{U=Object.hasOwnProperty.call(u,"hcEvents")&&u.hcEvents;for(at in F)u[at]=void 0;p(u,w[ot].prototype),U?u.hcEvents=U:delete u.hcEvents}}else t(17,!0,z,{missingModuleFor:ot});if(rt.forEach(function($){u[$]=rt[$]}),u.init(z,n),tt&&this.points){if(n=u.options,n.visible===!1)st.graphic=1,st.dataLabel=1;else if(!u._hasPointLabels){F=n.marker;var at=n.dataLabels;O=O.marker||{},!F||F.enabled!==!1&&O.symbol===F.symbol&&O.height===F.height&&O.width===F.width||(st.graphic=1),at&&at.enabled===!1&&(st.dataLabel=1)}for(O=0,F=this.points;O<F.length;O++)(at=F[O])&&at.series&&(at.resolveColor(),Object.keys(st).length&&at.destroyElements(st),n.showInLegend===!1&&at.legendItem&&z.legend.destroyItem(at))}u.initialType=B,z.linkSeries(),W&&u.linkedSeries.length&&(u.isDirtyData=!0),r(this,"afterUpdate"),e(x,!0)&&z.redraw(tt?void 0:!1)},L.prototype.setName=function(n){this.name=this.options.name=this.userOptions.name=n,this.chart.isDirtyLegend=!0},L.prototype.hasOptionChanged=function(n){var x=this.options[n],u=this.chart.options.plotOptions,z=this.userOptions[n];return z?x!==z:x!==e(u&&u[this.type]&&u[this.type][n],u&&u.series&&u.series[n],x)},L.prototype.onMouseOver=function(){var n=this.chart,x=n.hoverSeries;n.pointer.setHoverChartIndex(),x&&x!==this&&x.onMouseOut(),this.options.events.mouseOver&&r(this,"mouseOver"),this.setState("hover"),n.hoverSeries=this},L.prototype.onMouseOut=function(){var n=this.options,x=this.chart,u=x.tooltip,z=x.hoverPoint;x.hoverSeries=null,z&&z.onMouseOut(),this&&n.events.mouseOut&&r(this,"mouseOut"),!u||this.stickyTracking||u.shared&&!this.noSharedTooltip||u.hide(),x.series.forEach(function(O){O.setState("",!0)})},L.prototype.setState=function(n,x){var u=this,z=u.options,O=u.graph,B=z.inactiveOtherPoints,W=z.states,F=e(W[n||"normal"]&&W[n||"normal"].animation,u.chart.options.chart.animation),U=z.lineWidth,st=0,rt=z.opacity;if(n=n||"",u.state!==n&&([u.group,u.markerGroup,u.dataLabelsGroup].forEach(function(ot){ot&&(u.state&&ot.removeClass("highcharts-series-"+u.state),n&&ot.addClass("highcharts-series-"+n))}),u.state=n,!u.chart.styledMode)){if(W[n]&&W[n].enabled===!1)return;if(n&&(U=W[n].lineWidth||U+(W[n].lineWidthPlus||0),rt=e(W[n].opacity,rt)),O&&!O.dashstyle&&m(U))for(z={"stroke-width":U},O.animate(z,F);u["zone-graph-"+st];)u["zone-graph-"+st].animate(z,F),st+=1;B||[u.group,u.markerGroup,u.dataLabelsGroup,u.labelBySeries].forEach(function(ot){ot&&ot.animate({opacity:rt},F)})}x&&B&&u.points&&u.setAllPointsToState(n||void 0)},L.prototype.setAllPointsToState=function(n){this.points.forEach(function(x){x.setState&&x.setState(n)})},L.prototype.setVisible=function(n,x){var u=this,z=u.chart,O=z.options.chart.ignoreHiddenSeries,B=u.visible,W=(u.visible=n=u.options.visible=u.userOptions.visible=typeof n>"u"?!B:n)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(F){u[F]&&u[F][W]()}),(z.hoverSeries===u||(z.hoverPoint&&z.hoverPoint.series)===u)&&u.onMouseOut(),u.legendItem&&z.legend.colorizeItem(u,n),u.isDirty=!0,u.options.stacking&&z.series.forEach(function(F){F.options.stacking&&F.visible&&(F.isDirty=!0)}),u.linkedSeries.forEach(function(F){F.setVisible(n,!1)}),O&&(z.isDirtyBox=!0),r(u,W),x!==!1&&z.redraw()},L.prototype.show=function(){this.setVisible(!0)},L.prototype.hide=function(){this.setVisible(!1)},L.prototype.select=function(n){this.selected=n=this.options.selected=typeof n>"u"?!this.selected:n,this.checkbox&&(this.checkbox.checked=n),r(this,n?"select":"unselect")},L.prototype.shouldShowTooltip=function(n,x,u){return u===void 0&&(u={}),u.series=this,u.visiblePlotOnly=!0,this.chart.isInsidePlot(n,x,u)},L.defaultOptions=K,L.types=R.seriesTypes,L.registerType=R.registerSeriesType,L}(),p(X.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:J.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Q,requireSorting:!0,sorted:!0}
2),R.series=X,X}),lt(_,"Extensions/ScrollablePlotArea.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Chart/Chart.js"],_["Core/Series/Series.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Utilities.js"]],function(X,Y,V,et,J,Q){var K=X.stop,R=Q.addEvent,D=Q.createElement,A=Q.defined,g=Q.merge,f=Q.pick;R(V,"afterSetChartSize",function(y){var k=this.options.chart.scrollablePlotArea,v=k&&k.minWidth;if(k=k&&k.minHeight,!this.renderer.forExport){if(v){if(this.scrollablePixelsX=v=Math.max(0,v-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=g(this.plotBox),this.plotBox.width=this.plotWidth+=v,this.inverted?this.clipBox.height+=v:this.clipBox.width+=v;var S={1:{name:"right",value:v}}}}else k&&(this.scrollablePixelsY=v=Math.max(0,k-this.chartHeight),A(v)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=g(this.plotBox),this.plotBox.height=this.plotHeight+=v,this.inverted?this.clipBox.width+=v:this.clipBox.height+=v,S={2:{name:"bottom",value:v}}));S&&!y.skipAxes&&this.axes.forEach(function(M){S[M.side]?M.getPlotLinePath=function(){var w=S[M.side].name,b=this[w];this[w]=b-S[M.side].value;var j=Y.prototype.getPlotLinePath.apply(this,arguments);return this[w]=b,j}:(M.setAxisSize(),M.setAxisTranslation())})}}),R(V,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),V.prototype.setUpScrolling=function(){var y=this,k={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(k.overflowX="auto"),this.scrollablePixelsY&&(k.overflowY="auto"),this.scrollingParent=D("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=D("div",{className:"highcharts-scrolling"},k,this.scrollingParent);var v;R(this.scrollingContainer,"scroll",function(){y.pointer&&(delete y.pointer.chartPosition,y.hoverPoint&&(v=y.hoverPoint),y.pointer.runPointActions(void 0,v,!0))}),this.innerContainer=D("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},V.prototype.moveFixedElements=function(){var y=this.container,k=this.fixedRenderer,v=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),S;this.scrollablePixelsX&&!this.inverted?S=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?S=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(S=".highcharts-yaxis"),S&&v.push(""+S+":not(.highcharts-radial-axis)",""+S+"-labels:not(.highcharts-radial-axis-labels)"),v.forEach(function(M){[].forEach.call(y.querySelectorAll(M),function(w){(w.namespaceURI===k.SVG_NS?k.box:k.box.parentNode).appendChild(w),w.style.pointerEvents="auto"})})},V.prototype.applyFixed=function(){var y=!this.fixedDiv,k=this.options.chart,v=k.scrollablePlotArea,S=J.getRendererType();y?(this.fixedDiv=D("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(k.style&&k.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=k=new S(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=k.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":f(v.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),R(this,"afterShowResetZoom",this.moveFixedElements),R(this,"afterApplyDrilldown",this.moveFixedElements),R(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||y)&&(this.scrollableDirty=!1,this.moveFixedElements()),k=this.chartWidth+(this.scrollablePixelsX||0),S=this.chartHe
2ight+(this.scrollablePixelsY||0),K(this.container),this.container.style.width=k+"px",this.container.style.height=S+"px",this.renderer.boxWrapper.attr({width:k,height:S,viewBox:[0,0,k,S].join(" ")}),this.chartBackground.attr({width:k,height:S}),this.scrollingContainer.style.height=this.chartHeight+"px",y&&(v.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*v.scrollPositionX),v.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*v.scrollPositionY)),S=this.axisOffset,y=this.plotTop-S[0]-1,v=this.plotLeft-S[3]-1,k=this.plotTop+this.plotHeight+S[2]+1,S=this.plotLeft+this.plotWidth+S[1]+1;var M=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),w=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);y=this.scrollablePixelsX?[["M",0,y],["L",this.plotLeft-1,y],["L",this.plotLeft-1,k],["L",0,k],["Z"],["M",M,y],["L",this.chartWidth,y],["L",this.chartWidth,k],["L",M,k],["Z"]]:this.scrollablePixelsY?[["M",v,0],["L",v,this.plotTop-1],["L",S,this.plotTop-1],["L",S,0],["Z"],["M",v,w],["L",v,this.chartHeight],["L",S,this.chartHeight],["L",S,w],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:y})},R(Y,"afterInit",function(){this.chart.scrollableDirty=!0}),R(et,"show",function(){this.chart.scrollableDirty=!0})}),lt(_,"Core/Axis/Stacking/StackItem.js",[_["Core/FormatUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(X,Y,V){var et=X.format,J=Y.series,Q=V.destroyObjectProperties,K=V.pick,R=V.isNumber;return X=function(){function D(A,g,f,y,k){var v=A.chart.inverted,S=A.reversed;this.axis=A,A=this.isNegative=!!f!=!!S,this.options=g=g||{},this.x=y,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=k,this.rightCliff=this.leftCliff=0,this.alignOptions={align:g.align||(v?A?"left":"right":"center"),verticalAlign:g.verticalAlign||(v?"middle":A?"bottom":"top"),y:g.y,x:g.x},this.textAlign=g.textAlign||(v?A?"right":"left":"center")}return D.prototype.destroy=function(){Q(this,this.axis)},D.prototype.render=function(A){var g=this.axis.chart,f=this.options,y=f.format;y=y?et(y,this,g):f.formatter.call(this),this.label?this.label.attr({text:y,visibility:"hidden"}):(this.label=g.renderer.label(y,null,void 0,f.shape,void 0,void 0,f.useHTML,!1,"stack-labels"),y={r:f.borderRadius||0,text:y,padding:K(f.padding,5),visibility:"hidden"},g.styledMode||(y.fill=f.backgroundColor,y.stroke=f.borderColor,y["stroke-width"]=f.borderWidth,this.label.css(f.style||{})),this.label.attr(y),this.label.added||this.label.add(A)),this.label.labelrank=g.plotSizeY},D.prototype.setOffset=function(A,g,f,y,k,v){var S=this.alignOptions,M=this.axis,w=this.label,b=this.options,j=this.textAlign,C=M.chart;A=this.getStackBox({xOffset:A,width:g,boxBottom:f,boxTop:y,defaultX:k,xAxis:v}),k=S.verticalAlign,w&&A&&(g=w.getBBox(),f=w.padding,y=K(b.overflow,"justify")==="justify",S.x=b.x||0,S.y=b.y||0,k=this.adjustStackPosition({labelBox:g,verticalAlign:k,textAlign:j}),j=k.x,k=k.y,A.x-=j,A.y-=k,w.align(S,!1,A),(j=C.isInsidePlot(w.alignAttr.x+S.x+j,w.alignAttr.y+S.y+k))||(y=!1),y&&J.prototype.justifyDataLabel.call(M,w,S,w.alignAttr,g,A),w.attr({x:w.alignAttr.x,y:w.alignAttr.y,rotation:b.rotation,rotationOriginX:g.width/2,rotationOriginY:g.height/2}),K(!y&&b.crop,!0)&&(j=R(w.x)&&R(w.y)&&C.isInsidePlot(w.x-f+w.width,w.y)&&C.isInsidePlot(w.x+f,w.y)),w[j?"show":"hide"]())},D.prototype.adjustStackPosition=function(A){var g=A.labelBox,f={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:g.width/2+g.width/2*f[A.textAlign],y:g.height/2*f[A.verticalAlign]}},D.prototype.getStackBox=function(A){var g=this.axis,f=g.chart,y=A.boxTop,k=A.defaultX,v=A.xOffset,S=A.width,M=A.boxBottom;return y=g.stacking.usePercentage?100:K(y,this.total,0),y=g.toPixels(y),A=K(k,(A.xAxis||f.xAxis[0]).toPixels(this.x))+v,g=g.toPixels(M||0),g=Math.abs(y-g),M=this.isNegative,f.inverted?{x:(M?y:y-g)-f.plotLeft,y:A-f.plotTop,width:g,height:S}:{x:A-f.plotLeft,y:(M?y-g:y)-f.plotTop,width:S,height:g}},D}(),X}),lt(_,"Core/Axis/Stacking/StackingAxis.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Axis/Stacking/StackItem.js"],_["Core/Utilities.js"]],function(X,Y,V,et,J){function Q(){var p=this,i=p.inverted;p.yAxis.forEach(function(r){r.stacking&&r.stacking.stacks&&r.hasVisibleSeries&&(r.stacking.oldStacks=r.stacking.stacks)}
2),p.series.forEach(function(r){var c=r.xAxis&&r.xAxis.options||{};!r.options.stacking||r.visible!==!0&&p.options.chart.ignoreHiddenSeries!==!1||(r.stackKey=[r.type,o(r.options.stack,""),i?c.top:c.left,i?c.height:c.width].join())})}function K(){var p=this.stacking;if(p){var i=p.stacks;d(i,function(r,c){b(r),i[c]=null}),p&&p.stackTotalGroup&&p.stackTotalGroup.destroy()}}function R(){this.coll!=="yAxis"||this.stacking||(this.stacking=new h(this))}function D(p,i,r,c){return!w(p)||p.x!==i||c&&p.stackKey!==c?p={x:i,index:0,key:c,stackKey:c}:p.index++,p.key=[r,i,p.index].join(),p}function A(){var p=this,i=p.stackKey,r=p.yAxis.stacking.stacks,c=p.processedXData,a=p[p.options.stacking+"Stacker"],m;a&&[i,"-"+i].forEach(function(P){for(var G=c.length,I,e;G--;)I=c[G],m=p.getStackIndicator(m,I,p.index,P),(e=(I=r[P]&&r[P][I])&&I.points[m.key])&&a.call(p,e,I,G)})}function g(p,i,r){i=i.total?100/i.total:0,p[0]=M(p[0]*i),p[1]=M(p[1]*i),this.stackedYData[r]=p[1]}function f(){var p=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?v.setStackedPoints.call(this,"group"):p&&d(p.stacks,function(i,r){r.slice(-5)==="group"&&(d(i,function(c){return c.destroy()}),delete p.stacks[r])})}function y(p){var i=this.chart,r=p||this.options.stacking;if(r&&(this.visible===!0||i.options.chart.ignoreHiddenSeries===!1)){var c=this.processedXData,a=this.processedYData,m=[],P=a.length,G=this.options,I=G.threshold,e=o(G.startFromThreshold&&I,0);G=G.stack,p=p?""+this.type+",".concat(r):this.stackKey;var l="-"+p,T=this.negStacks;i=r==="group"?i.yAxis[0]:this.yAxis;var E=i.stacking.stacks,L=i.stacking.oldStacks,n,x;for(i.stacking.stacksTouched+=1,x=0;x<P;x++){var u=c[x],z=a[x],O=this.getStackIndicator(O,u,this.index),B=O.key,W=(n=T&&z<(e?0:I))?l:p;E[W]||(E[W]={}),E[W][u]||(L[W]&&L[W][u]?(E[W][u]=L[W][u],E[W][u].total=null):E[W][u]=new et(i,i.options.stackLabels,!!n,u,G)),W=E[W][u],z!==null?(W.points[B]=W.points[this.index]=[o(W.cumulative,e)],w(W.cumulative)||(W.base=B),W.touched=i.stacking.stacksTouched,0<O.index&&this.singleStacks===!1&&(W.points[B][0]=W.points[this.index+","+u+",0"][0])):W.points[B]=W.points[this.index]=null,r==="percent"?(n=n?p:l,T&&E[n]&&E[n][u]?(n=E[n][u],W.total=n.total=Math.max(n.total,W.total)+Math.abs(z)||0):W.total=M(W.total+(Math.abs(z)||0))):r==="group"?(C(z)&&(z=z[0]),z!==null&&(W.total=(W.total||0)+1)):W.total=M(W.total+(z||0)),W.cumulative=r==="group"?(W.total||1)-1:o(W.cumulative,e)+(z||0),z!==null&&(W.points[B].push(W.cumulative),m[x]=W.cumulative,W.hasValidPoints=!0)}r==="percent"&&(i.stacking.usePercentage=!0),r!=="group"&&(this.stackedYData=m),i.stacking.oldStacks={}}}var k=X.getDeferredAnimation,v=V.series.prototype,S=J.addEvent,M=J.correctFloat,w=J.defined,b=J.destroyObjectProperties,j=J.fireEvent,C=J.isArray,s=J.isNumber,d=J.objectEach,o=J.pick,h=function(){function p(i){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=i}return p.prototype.buildStacks=function(){var i=this.axis,r=i.series,c=i.options.reversedStacks,a=r.length,m;for(this.usePercentage=!1,m=a;m--;){var P=r[c?m:a-m-1];P.setStackedPoints(),P.setGroupedPoints()}for(m=0;m<a;m++)r[m].modifyStacks();j(i,"afterBuildStacks")},p.prototype.cleanStacks=function(){if(this.oldStacks)var i=this.stacks=this.oldStacks;d(i,function(r){d(r,function(c){c.cumulative=c.total})})},p.prototype.resetStacks=function(){var i=this;d(this.stacks,function(r){d(r,function(c,a){s(c.touched)&&c.touched<i.stacksTouched?(c.destroy(),delete r[a]):(c.total=null,c.cumulative=null)})})},p.prototype.renderStackTotals=function(){var i=this.axis,r=i.chart,c=r.renderer,a=this.stacks;i=k(r,i.options.stackLabels&&i.options.stackLabels.animation||!1);var m=this.stackTotalGroup=this.stackTotalGroup||c.g("stack-labels").attr({zIndex:6,opacity:0}).add();m.translate(r.plotLeft,r.plotTop),d(a,function(P){d(P,function(G){G.render(m)})}),m.animate({opacity:1},i)},p}(),t;return function(p){var i=[];p.compose=function(r,c,a){i.indexOf(r)===-1&&(i.push(r),S(r,"init",R),S(r,"destroy",K)),i.indexOf(c)===-1&&(i.push(c),c.prototype.getStacks=Q),i.indexOf(a)===-1&&(i.push(a),r=a.prototype,r.getStackIndicator=D,r.modifyStacks=A,r.percentStacker=g,r.setGroupedPoints=f,r.setStackedPoints=y)}}(t||(t={})),t}),lt(_,"Series/Line/LineSeries.js",[_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(X,Y,V){var et=this&&this.__extends||function(){var K=function(R,D){return K=Object.
2setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,g){A.__proto__=g}||function(A,g){for(var f in g)g.hasOwnProperty(f)&&(A[f]=g[f])},K(R,D)};return function(R,D){function A(){this.constructor=R}K(R,D),R.prototype=D===null?Object.create(D):(A.prototype=D.prototype,new A)}}(),J=V.defined,Q=V.merge;return V=function(K){function R(){var D=K!==null&&K.apply(this,arguments)||this;return D.data=void 0,D.options=void 0,D.points=void 0,D}return et(R,K),R.prototype.drawGraph=function(){var D=this,A=this.options,g=(this.gappedPath||this.getGraphPath).call(this),f=this.chart.styledMode,y=[["graph","highcharts-graph"]];f||y[0].push(A.lineColor||this.color||"#cccccc",A.dashStyle),y=D.getZonesGraphs(y),y.forEach(function(k,v){var S=k[0],M=D[S],w=M?"animate":"attr";M?(M.endX=D.preventGraphAnimation?null:g.xMap,M.animate({d:g})):g.length&&(D[S]=M=D.chart.renderer.path(g).addClass(k[1]).attr({zIndex:1}).add(D.group)),M&&!f&&(S={stroke:k[2],"stroke-width":A.lineWidth||0,fill:D.fillGraph&&D.color||"none"},k[3]?S.dashstyle=k[3]:A.linecap!=="square"&&(S["stroke-linecap"]=S["stroke-linejoin"]="round"),M[w](S).shadow(2>v&&A.shadow)),M&&(M.startX=g.xMap,M.isArea=g.isArea)})},R.prototype.getGraphPath=function(D,A,g){var f=this,y=f.options,k=[],v=[],S,M=y.step;D=D||f.points;var w=D.reversed;return w&&D.reverse(),(M={right:1,center:2}[M]||M&&3)&&w&&(M=4-M),D=this.getValidPoints(D,!1,!(y.connectNulls&&!A&&!g)),D.forEach(function(b,j){var C=b.plotX,s=b.plotY,d=D[j-1];(b.leftCliff||d&&d.rightCliff)&&!g&&(S=!0),b.isNull&&!J(A)&&0<j?S=!y.connectNulls:b.isNull&&!A?S=!0:(j===0||S?j=[["M",b.plotX,b.plotY]]:f.getPointSpline?j=[f.getPointSpline(D,b,j)]:M?(j=M===1?[["L",d.plotX,s]]:M===2?[["L",(d.plotX+C)/2,d.plotY],["L",(d.plotX+C)/2,s]]:[["L",C,d.plotY]],j.push(["L",C,s])):j=[["L",C,s]],v.push(b.x),M&&(v.push(b.x),M===2&&v.push(b.x)),k.push.apply(k,j),S=!1)}),k.xMap=v,f.graphPath=k},R.prototype.getZonesGraphs=function(D){return this.zones.forEach(function(A,g){g=["zone-graph-"+g,"highcharts-graph highcharts-zone-graph-"+g+" "+(A.className||"")],this.chart.styledMode||g.push(A.color||this.color,A.dashStyle||this.options.dashStyle),D.push(g)},this),D},R.defaultOptions=Q(X.defaultOptions,{}),R}(X),Y.registerSeriesType("line",V),V}),lt(_,"Series/Area/AreaSeries.js",[_["Core/Color/Color.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(X,Y,V,et){var J=this&&this.__extends||function(){var g=function(f,y){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,v){k.__proto__=v}||function(k,v){for(var S in v)v.hasOwnProperty(S)&&(k[S]=v[S])},g(f,y)};return function(f,y){function k(){this.constructor=f}g(f,y),f.prototype=y===null?Object.create(y):(k.prototype=y.prototype,new k)}}(),Q=X.parse,K=V.seriesTypes.line;X=et.extend;var R=et.merge,D=et.objectEach,A=et.pick;return et=function(g){function f(){var y=g!==null&&g.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return J(f,g),f.prototype.drawGraph=function(){this.areaPath=[],g.prototype.drawGraph.apply(this);var y=this,k=this.areaPath,v=this.options,S=[["area","highcharts-area",this.color,v.fillColor]];this.zones.forEach(function(M,w){S.push(["zone-area-"+w,"highcharts-area highcharts-zone-area-"+w+" "+M.className,M.color||y.color,M.fillColor||v.fillColor])}),S.forEach(function(M){var w=M[0],b={},j=y[w],C=j?"animate":"attr";j?(j.endX=y.preventGraphAnimation?null:k.xMap,j.animate({d:k})):(b.zIndex=0,j=y[w]=y.chart.renderer.path(k).addClass(M[1]).add(y.group),j.isArea=!0),y.chart.styledMode||(b.fill=A(M[3],Q(M[2]).setOpacity(A(v.fillOpacity,.75)).get())),j[C](b),j.startX=k.xMap,j.shiftUnit=v.step?2:1})},f.prototype.getGraphPath=function(y){var k=K.prototype.getGraphPath,v=this.options,S=v.stacking,M=this.yAxis,w=[],b=[],j=this.index,C=M.stacking.stacks[this.stackKey],s=v.threshold,d=Math.round(M.getThreshold(v.threshold));v=A(v.connectNulls,S==="percent");var o=function(c,a,m){var P=y[c];c=S&&C[P.x].points[j];var G=P[m+"Null"]||0;if(m=P[m+"Cliff"]||0,P=!0,m||G){var I=(G?c[0]:c[1])+m,e=c[0]+m;P=!!G}else!S&&y[a]&&y[a].isNull&&(I=e=s);typeof I<"u"&&(b.push({plotX:i,plotY:I===null?d:M.getThreshold(I),isNull:P,isCliff:!0}),w.push({plotX:i,plotY:e===null?d:M.getThreshold(e),doCurve:!1}))};y=y||this.points,S&&(y=this.getStackPoints(y));for(var h=0,t=y.length;h<t;++h){S||(y[h].leftCliff=y[h].rightCliff=y[h].leftNull=y[h].rightNull=void 0);var p=y[h].isNull,i=A(y[h].rectPlotX,y[h].plotX),r=S?A(y[h].yBottom,d):d;(!p||v)&&(v||o(h,h-1,"left"),p&&!S&&v||(b.push(y[h]),w.push({x:h,plotX:i,plotY:r})),v||o(h,h+1,"right"))}return o=k.call(this,b,!0,!0),w.reversed=!0,p=k.call(this,w,!0,!0),(r=p[0])&&r[0]==="M"&&(p[0]=["L",r[1],r[2]]),p=o.concat(p),p.length&&p.push(["Z"]),k=k.call(this,b,!1,v),p.xMap=o.xMap,this.areaPath=p,k},f.prototype.getStackPoints=function(y){var k=this,v=[],S=[],M=this.xAxis,w=this.yAxis,b=w.stacking.stacks[this.stackKey],j={},C=w.series,s=C.length,d=w.options.reversedStacks?1:-1,o=C.indexOf(k);if(y=y||this.points,this.options.stacking){for(var h=0;h<y.length;h++)y[h].leftNull=y[h].rightNull=void 0,j[y[h].x]=y[h];D(b,function(p,i){p.total!==null&&S.push(i)}),S.sort(function(p,i){return p-i});var t=C.map(function(p){return p.visible});
2S.forEach(function(p,i){var r=0,c,a;if(j[p]&&!j[p].isNull)v.push(j[p]),[-1,1].forEach(function(P){var G=P===1?"rightNull":"leftNull",I=b[S[i+P]],e=0;if(I)for(var l=o;0<=l&&l<s;){var T=C[l].index;c=I.points[T],c||(T===k.index?j[p][G]=!0:t[l]&&(a=b[p].points[T])&&(e-=a[1]-a[0])),l+=d}j[p][P===1?"rightCliff":"leftCliff"]=e});else{for(var m=o;0<=m&&m<s;){if(c=b[p].points[C[m].index]){r=c[1];break}m+=d}r=A(r,0),r=w.translate(r,0,1,0,1),v.push({isNull:!0,plotX:M.translate(p,0,0,0,1),x:p,plotY:r,yBottom:r})}})}return v},f.defaultOptions=R(K.defaultOptions,{threshold:0}),f}(K),X(et.prototype,{singleStacks:!1,drawLegendSymbol:Y.drawRectangle}),V.registerSeriesType("area",et),et}),lt(_,"Series/Spline/SplineSeries.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(X,Y){var V=this&&this.__extends||function(){var K=function(R,D){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,g){A.__proto__=g}||function(A,g){for(var f in g)g.hasOwnProperty(f)&&(A[f]=g[f])},K(R,D)};return function(R,D){function A(){this.constructor=R}K(R,D),R.prototype=D===null?Object.create(D):(A.prototype=D.prototype,new A)}}(),et=X.seriesTypes.line,J=Y.merge,Q=Y.pick;return Y=function(K){function R(){var D=K!==null&&K.apply(this,arguments)||this;return D.data=void 0,D.options=void 0,D.points=void 0,D}return V(R,K),R.prototype.getPointSpline=function(D,A,g){var f=A.plotX||0,y=A.plotY||0,k=D[g-1];if(g=D[g+1],k&&!k.isNull&&k.doCurve!==!1&&!A.isCliff&&g&&!g.isNull&&g.doCurve!==!1&&!A.isCliff){D=k.plotY||0;var v=g.plotX||0;g=g.plotY||0;var S=0,M=(1.5*f+(k.plotX||0))/2.5,w=(1.5*y+D)/2.5;v=(1.5*f+v)/2.5;var b=(1.5*y+g)/2.5;v!==M&&(S=(b-w)*(v-f)/(v-M)+y-b),w+=S,b+=S,w>D&&w>y?(w=Math.max(D,y),b=2*y-w):w<D&&w<y&&(w=Math.min(D,y),b=2*y-w),b>g&&b>y?(b=Math.max(g,y),w=2*y-b):b<g&&b<y&&(b=Math.min(g,y),w=2*y-b),A.rightContX=v,A.rightContY=b}return A=["C",Q(k.rightContX,k.plotX,0),Q(k.rightContY,k.plotY,0),Q(M,f,0),Q(w,y,0),f,y],k.rightContX=k.rightContY=void 0,A},R.defaultOptions=J(et.defaultOptions),R}(et),X.registerSeriesType("spline",Y),Y}),lt(_,"Series/AreaSpline/AreaSplineSeries.js",[_["Series/Spline/SplineSeries.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(X,Y,V,et){var J=this&&this.__extends||function(){var A=function(g,f){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,k){y.__proto__=k}||function(y,k){for(var v in k)k.hasOwnProperty(v)&&(y[v]=k[v])},A(g,f)};return function(g,f){function y(){this.constructor=g}A(g,f),g.prototype=f===null?Object.create(f):(y.prototype=f.prototype,new y)}}(),Q=V.seriesTypes,K=Q.area;Q=Q.area.prototype;var R=et.extend,D=et.merge;return et=function(A){function g(){var f=A!==null&&A.apply(this,arguments)||this;return f.data=void 0,f.points=void 0,f.options=void 0,f}return J(g,A),g.defaultOptions=D(X.defaultOptions,K.defaultOptions),g}(X),R(et.prototype,{getGraphPath:Q.getGraphPath,getStackPoints:Q.getStackPoints,drawGraph:Q.drawGraph,drawLegendSymbol:Y.drawRectangle}),V.registerSeriesType("areaspline",et),et}),lt(_,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),lt(_,"Series/Column/ColumnSeries.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Color/Color.js"],_["Series/Column/ColumnSeriesDefaults.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(X,Y,V,et,J,Q,K,R){var D=this&&this.__extends||function(){var s=function(d,o){return s=Object.
2setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,t){h.__proto__=t}||function(h,t){for(var p in t)t.hasOwnProperty(p)&&(h[p]=t[p])},s(d,o)};return function(d,o){function h(){this.constructor=d}s(d,o),d.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),A=X.animObject,g=Y.parse,f=et.hasTouch;X=et.noop;var y=R.clamp,k=R.defined,v=R.extend,S=R.fireEvent,M=R.isArray,w=R.isNumber,b=R.merge,j=R.pick,C=R.objectEach;return R=function(s){function d(){var o=s!==null&&s.apply(this,arguments)||this;return o.borderWidth=void 0,o.data=void 0,o.group=void 0,o.options=void 0,o.points=void 0,o}return D(d,s),d.prototype.animate=function(o){var h=this,t=this.yAxis,p=h.options,i=this.chart.inverted,r={},c=i?"translateX":"translateY";if(o)r.scaleY=.001,o=y(t.toPixels(p.threshold),t.pos,t.pos+t.len),i?r.translateX=o-t.len:r.translateY=o,h.clipBox&&h.setClip(),h.group.attr(r);else{var a=Number(h.group.attr(c));h.group.animate({scaleY:1},v(A(h.options.animation),{step:function(m,P){h.group&&(r[c]=a+P.pos*(t.pos-a),h.group.attr(r))}}))}},d.prototype.init=function(o,h){s.prototype.init.apply(this,arguments);var t=this;o=t.chart,o.hasRendered&&o.series.forEach(function(p){p.type===t.type&&(p.isDirty=!0)})},d.prototype.getColumnMetrics=function(){var o=this,h=o.options,t=o.xAxis,p=o.yAxis,i=t.options.reversedStacks;i=t.reversed&&!i||!t.reversed&&i;var r={},c,a=0;h.grouping===!1?a=1:o.chart.series.forEach(function(I){var e=I.yAxis,l=I.options;if(I.type===o.type&&(I.visible||!o.chart.options.chart.ignoreHiddenSeries)&&p.len===e.len&&p.pos===e.pos){if(l.stacking&&l.stacking!=="group"){c=I.stackKey,typeof r[c]>"u"&&(r[c]=a++);var T=r[c]}else l.grouping!==!1&&(T=a++);I.columnIndex=T}});var m=Math.min(Math.abs(t.transA)*(t.ordinal&&t.ordinal.slope||h.pointRange||t.closestPointRange||t.tickInterval||1),t.len),P=m*h.groupPadding,G=(m-2*P)/(a||1);return h=Math.min(h.maxPointWidth||t.len,j(h.pointWidth,G*(1-2*h.pointPadding))),o.columnMetrics={width:h,offset:(G-h)/2+(P+((o.columnIndex||0)+(i?1:0))*G-m/2)*(i?-1:1),paddedWidth:G,columnCount:a},o.columnMetrics},d.prototype.crispCol=function(o,h,t,p){var i=this.chart,r=this.borderWidth,c=-(r%2?.5:0);return r=r%2?.5:1,i.inverted&&i.renderer.isVML&&(r+=1),this.options.crisp&&(t=Math.round(o+t)+c,o=Math.round(o)+c,t-=o),p=Math.round(h+p)+r,c=.5>=Math.abs(h)&&.5<p,h=Math.round(h)+r,p-=h,c&&p&&(--h,p+=1),{x:o,y:h,width:t,height:p}},d.prototype.adjustForMissingColumns=function(o,h,t,p){var i=this,r=this.options.stacking;if(!t.isNull&&1<p.columnCount){var c=this.yAxis.options.reversedStacks,a=0,m=c?0:-p.columnCount;C(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(P){if(typeof t.x=="number"){var G=P[t.x.toString()];G&&(P=G.points[i.index],r?(P&&(a=m),G.hasValidPoints&&(c?m++:m--)):M(P)&&(P=Object.keys(G.points).filter(function(I){return!I.match(",")&&G.points[I]&&1<G.points[I].length}).map(parseFloat).sort(function(I,e){return e-I}),a=P.indexOf(i.index),m=P.length))}}),o=(t.plotX||0)+((m-1)*p.paddedWidth+h)/2-h-a*p.paddedWidth}return o},d.prototype.translate=function(){var o=this,h=o.chart,t=o.options,p=o.dense=2>o.closestPointRange*o.xAxis.transA;p=o.borderWidth=j(t.borderWidth,p?0:1);var i=o.xAxis,r=o.yAxis,c=t.threshold,a=o.translatedThreshold=r.getThreshold(c),m=j(t.minPointLength,5),P=o.getColumnMetrics(),G=P.width,I=o.pointXOffset=P.offset,e=o.dataMin,l=o.dataMax,T=o.barW=Math.max(G,1+2*p);h.inverted&&(a-=.5),t.pointPadding&&(T=Math.ceil(T)),Q.prototype.translate.apply(o),o.points.forEach(function(E){var L=j(E.yBottom,a),n=999+Math.abs(L),x=E.plotX||0;n=y(E.plotY,-n,r.len+n);var u=Math.min(n,L),z=Math.max(n,L)-u,O=G,B=x+I,W=T;m&&Math.abs(z)<m&&(z=m,x=!r.reversed&&!E.negative||r.reversed&&E.negative,w(c)&&w(l)&&E.y===c&&l<=c&&(r.min||0)<c&&(e!==l||(r.max||0)<=c)&&(x=!x),u=Math.abs(u-a)>m?L-m:a-(x?m:0)),k(E.options.pointWidth)&&(O=W=Math.ceil(E.options.pointWidth),B-=Math.round((O-G)/2)),t.centerInCategory&&(B=o.adju
2stForMissingColumns(B,O,E,P)),E.barX=B,E.pointWidth=O,E.tooltipPos=h.inverted?[y(r.len+r.pos-h.plotLeft-n,r.pos-h.plotLeft,r.len+r.pos-h.plotLeft),i.len+i.pos-h.plotTop-B-W/2,z]:[i.left-h.plotLeft+B+W/2,y(n+r.pos-h.plotTop,r.pos-h.plotTop,r.len+r.pos-h.plotTop),z],E.shapeType=o.pointClass.prototype.shapeType||"rect",E.shapeArgs=o.crispCol.apply(o,E.isNull?[B,a,W,0]:[B,u,W,z])})},d.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},d.prototype.pointAttribs=function(o,h){var t=this.options,p=this.pointAttrToOptions||{},i=p.stroke||"borderColor",r=p["stroke-width"]||"borderWidth",c=o&&o.color||this.color,a=o&&o[i]||t[i]||c;p=o&&o.options.dashStyle||t.dashStyle;var m=o&&o[r]||t[r]||this[r]||0,P=j(o&&o.opacity,t.opacity,1);if(o&&this.zones.length){var G=o.getZone();c=o.options.color||G&&(G.color||o.nonZonedColor)||this.color,G&&(a=G.borderColor||a,p=G.dashStyle||p,m=G.borderWidth||m)}return h&&o&&(o=b(t.states[h],o.options.states&&o.options.states[h]||{}),h=o.brightness,c=o.color||typeof h<"u"&&g(c).brighten(o.brightness).get()||c,a=o[i]||a,m=o[r]||m,p=o.dashStyle||p,P=j(o.opacity,P)),i={fill:c,stroke:a,"stroke-width":m,opacity:P},p&&(i.dashstyle=p),i},d.prototype.drawPoints=function(o){o===void 0&&(o=this.points);var h=this,t=this.chart,p=h.options,i=t.renderer,r=p.animationLimit||250,c;o.forEach(function(a){var m=a.graphic,P=!!m,G=m&&t.pointCount<r?"animate":"attr";w(a.plotY)&&a.y!==null?(c=a.shapeArgs,m&&a.hasNewShapeType()&&(m=m.destroy()),h.enabledDataSorting&&(a.startXPos=h.xAxis.reversed?-(c&&c.width||0):h.xAxis.width),m||(a.graphic=m=i[a.shapeType](c).add(a.group||h.group))&&h.enabledDataSorting&&t.hasRendered&&t.pointCount<r&&(m.attr({x:a.startXPos}),P=!0,G="animate"),m&&P&&m[G](b(c)),p.borderRadius&&m[G]({r:p.borderRadius}),t.styledMode||m[G](h.pointAttribs(a,a.selected&&"select")).shadow(a.allowShadow!==!1&&p.shadow,null,p.stacking&&!p.borderRadius),m&&(m.addClass(a.getClassName(),!0),m.attr({visibility:a.visible?"inherit":"hidden"}))):m&&(a.graphic=m.destroy())})},d.prototype.drawTracker=function(o){o===void 0&&(o=this.points);var h=this,t=h.chart,p=t.pointer,i=function(c){var a=p.getPointFromEvent(c);typeof a<"u"&&(p.isDirectTouch=!0,a.onMouseOver(c))},r;o.forEach(function(c){r=M(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[],c.graphic&&(c.graphic.element.point=c),r.forEach(function(a){a.div?a.div.point=c:a.element.point=c})}),h._hasTracking||(h.trackerGroups.forEach(function(c){h[c]&&(h[c].addClass("highcharts-tracker").on("mouseover",i).on("mouseout",function(a){p.onTrackerMouseOut(a)}),f&&h[c].on("touchstart",i),!t.styledMode&&h.options.cursor&&h[c].css({cursor:h.options.cursor}))}),h._hasTracking=!0),S(this,"afterDrawTracker")},d.prototype.remove=function(){var o=this,h=o.chart;h.hasRendered&&h.series.forEach(function(t){t.type===o.type&&(t.isDirty=!0)}),Q.prototype.remove.apply(o,arguments)},d.defaultOptions=b(Q.defaultOptions,V),d}(Q),v(R.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:J.drawRectangle,getSymbol:X,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),K.registerSeriesType("column",R),R}),lt(_,"Core/Series/DataLabel.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/FormatUtilities.js"],_["Core/Utilities.js"]],function(X,Y,V){var et=X.getDeferredAnimation,J=Y.format,Q=V.defined,K=V.extend,R=V.fireEvent,D=V.isArray,A=V.isString,g=V.merge,f=V.objectEach,y=V.pick,k=V.splat,v;return function(S){function M(o,h,t,p,i){var r=this,c=this.chart,a=this.isCartesian&&
2c.inverted,m=this.enabledDataSorting,P=o.plotX,G=o.plotY,I=t.rotation,e=t.align,l=Q(P)&&Q(G)&&c.isInsidePlot(P,Math.round(G),{inverted:a,paneCoordinates:!0,series:r});G=function(n){m&&r.xAxis&&!T&&r.setDataLabelStartPos(o,h,i,l,n)};var T=y(t.overflow,m?"none":"justify")==="justify";if(P=this.visible&&o.visible!==!1&&Q(P)&&(o.series.forceDL||m&&!T||l||y(t.inside,!!this.options.stacking)&&p&&c.isInsidePlot(P,a?p.x+1:p.y+p.height-1,{inverted:a,paneCoordinates:!0,series:r})),a=o.pos(),P&&a){I&&h.attr({align:e}),e=h.getBBox(!0);var E=[0,0],L=c.renderer.fontMetrics(c.styledMode?void 0:t.style.fontSize,h).b;p=K({x:a[0],y:Math.round(a[1]),width:0,height:0},p),K(t,{width:e.width,height:e.height}),I?(T=!1,E=c.renderer.rotCorr(L,I),L={x:p.x+(t.x||0)+p.width/2+E.x,y:p.y+(t.y||0)+{top:0,middle:.5,bottom:1}[t.verticalAlign]*p.height},E=[e.x-Number(h.attr("x")),e.y-Number(h.attr("y"))],G(L),h[i?"attr":"animate"](L)):(G(p),h.align(t,void 0,p),L=h.alignAttr),T&&0<=p.height?this.justifyDataLabel(h,t,L,e,p,i):y(t.crop,!0)&&(p=L.x,G=L.y,p+=E[0],G+=E[1],P=c.isInsidePlot(p,G,{paneCoordinates:!0,series:r})&&c.isInsidePlot(p+e.width,G+e.height,{paneCoordinates:!0,series:r})),t.shape&&!I&&h[i?"attr":"animate"]({anchorX:a[0],anchorY:a[1]})}i&&m&&(h.placed=!1),P||m&&!T?h.show():(h.hide(),h.placed=!1)}function w(o,h){var t=h.filter;return t?(h=t.operator,o=o[t.property],t=t.value,h===">"&&o>t||h==="<"&&o<t||h===">="&&o>=t||h==="<="&&o<=t||h==="=="&&o==t||h==="==="&&o===t):!0}function b(o){o===void 0&&(o=this.points);var h=this,t=h.chart,p=h.options,i=h.hasRendered||0,r=t.renderer,c=t.options.chart,a=c.backgroundColor;
2c=c.plotBackgroundColor;var m=r.getContrast(A(c)&&c||A(a)&&a||"#000000"),P=p.dataLabels,G;if(a=P.animation,a=P.defer?et(t,a,h):{defer:0,duration:0},P=C(C(t.options.plotOptions&&t.options.plotOptions.series&&t.options.plotOptions.series.dataLabels,t.options.plotOptions&&t.options.plotOptions[h.type]&&t.options.plotOptions[h.type].dataLabels),P),R(this,"drawDataLabels"),D(P)||P.enabled||h._hasPointLabels){var I=h.plotGroup("dataLabelsGroup","data-labels",i?"inherit":"hidden",P.zIndex||6);I.attr({opacity:+i}),!i&&(i=h.dataLabelsGroup)&&(h.visible&&I.show(),i[p.animation?"animate":"attr"]({opacity:1},a)),o.forEach(function(e){G=k(C(P,e.dlOptions||e.options&&e.options.dataLabels)),G.forEach(function(l,T){var E=l.enabled&&(!e.isNull||e.dataLabelOnNull)&&w(e,l),L=e.connectors?e.connectors[T]:e.connector,n=e.dataLabels?e.dataLabels[T]:e.dataLabel,x=!n,u=y(l.distance,e.labelDistance);if(E){var z=e.getLabelConfig(),O=y(l[e.formatPrefix+"Format"],l.format);z=Q(O)?J(O,z,t):(l[e.formatPrefix+"Formatter"]||l.formatter).call(z,l),O=l.style;var B=l.rotation;t.styledMode||(O.color=y(l.color,O.color,h.color,"#000000"),O.color==="contrast"?(e.contrastColor=r.getContrast(e.color||h.color),O.color=!Q(u)&&l.inside||0>u||p.stacking?e.contrastColor:m):delete e.contrastColor,p.cursor&&(O.cursor=p.cursor));var W={r:l.borderRadius||0,rotation:B,padding:l.padding,zIndex:1};if(!t.styledMode){u=l.backgroundColor;var F=l.borderColor;W.fill=u==="auto"?e.color:u,W.stroke=F==="auto"?e.color:F,W["stroke-width"]=l.borderWidth}f(W,function(U,st){typeof U>"u"&&delete W[st]})}!n||E&&Q(z)&&!!n.div==!!l.useHTML&&(n.rotation&&l.rotation||n.rotation===l.rotation)||(x=!0,e.dataLabel=n=e.dataLabel&&e.dataLabel.destroy(),e.dataLabels&&(e.dataLabels.length===1?delete e.dataLabels:delete e.dataLabels[T]),T||delete e.dataLabel,L&&(e.connector=e.connector.destroy(),e.connectors&&(e.connectors.length===1?delete e.connectors:delete e.connectors[T]))),E&&Q(z)?(n?W.text=z:(e.dataLabels=e.dataLabels||[],n=e.dataLabels[T]=B?r.text(z,0,0,l.useHTML).addClass("highcharts-data-label"):r.label(z,0,0,l.shape,null,null,l.useHTML,null,"data-label"),T||(e.dataLabel=n),n.addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(l.className||"")+(l.useHTML?" highcharts-tracker":""))),n.options=l,n.attr(W),t.styledMode||n.css(O).shadow(l.shadow),(T=l[e.formatPrefix+"TextPath"]||l.textPath)&&!l.useHTML&&(n.setTextPath(e.getDataLabelPath&&e.getDataLabelPath(n)||e.graphic,T),e.dataLabelPath&&!T.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy())),n.added||n.add(I),h.alignDataLabel(e,n,l,null,x)):n&&n.hide()})})}R(this,"afterDrawDataLabels")}function j(o,h,t,p,i,r){var c=this.chart,a=h.align,m=h.verticalAlign,P=o.box?0:o.padding||0,G=h.x;G=G===void 0?0:G;var I=h.y;I=I===void 0?0:I;var e=(t.x||0)+P;if(0>e){a==="right"&&0<=G?(h.align="left",h.inside=!0):G-=e;var l=!0}return e=(t.x||0)+p.width-P,e>c.plotWidth&&(a==="left"&&0>=G?(h.align="right",h.inside=!0):G+=c.plotWidth-e,l=!0),e=t.y+P,0>e&&(m==="bottom"&&0<=I?(h.verticalAlign="top",h.inside=!0):I-=e,l=!0),e=(t.y||0)+p.height-P,e>c.plotHeight&&(m==="top"&&0>=I?(h.verticalAlign="bottom",h.inside=!0):I+=c.plotHeight-e,l=!0),l&&(h.x=G,h.y=I,o.placed=!r,o.align(h,void 0,i)),l}function C(o,h){var t=[],p;if(D(o)&&!D(h))t=o.map(function(i){return g(i,h)});else if(D(h)&&!D(o))t=h.map(function(i){return g(o,i)});else if(D(o)||D(h))for(p=Math.max(o.length,h.length);p--;)t[p]=g(o[p],h[p]);else t=g(o,h);return t}function s(o,h,t,p,i){var r=this.chart,c=r.inverted,a=this.xAxis,m=a.reversed,P=c?h.height/2:h.width/2;o=(o=o.pointWidth)?o/2:0,h.startXPos=c?i.x:m?-P-o:a.width-P+o,h.startYPos=c?m?this.yAxis.height-P+o:-P-o:i.y,p?h.visibility==="hidden"&&(h.show(),h.attr({opacity:0}).animate({opacity:1})):h.attr({opacity:1}).animate({opacity:0}
2,void 0,h.hide),r.hasRendered&&(t&&h.attr({x:h.startXPos,y:h.startYPos}),h.placed=!0)}var d=[];S.compose=function(o){if(d.indexOf(o)===-1){var h=o.prototype;d.push(o),h.alignDataLabel=M,h.drawDataLabels=b,h.justifyDataLabel=j,h.setDataLabelStartPos=s}}}(v||(v={})),v}),lt(_,"Series/Column/ColumnDataLabel.js",[_["Core/Series/DataLabel.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(X,Y,V){var et=Y.series,J=V.merge,Q=V.pick,K;return function(R){function D(g,f,y,k,v){var S=this.chart.inverted,M=g.series,w=(M.xAxis?M.xAxis.len:this.chart.plotSizeX)||0;M=(M.yAxis?M.yAxis.len:this.chart.plotSizeY)||0;var b=g.dlBox||g.shapeArgs,j=Q(g.below,g.plotY>Q(this.translatedThreshold,M)),C=Q(y.inside,!!this.options.stacking);b&&(k=J(b),0>k.y&&(k.height+=k.y,k.y=0),b=k.y+k.height-M,0<b&&b<k.height&&(k.height-=b),S&&(k={x:M-k.y-k.height,y:w-k.x-k.width,width:k.height,height:k.width}),C||(S?(k.x+=j?0:k.width,k.width=0):(k.y+=j?k.height:0,k.height=0))),y.align=Q(y.align,!S||C?"center":j?"right":"left"),y.verticalAlign=Q(y.verticalAlign,S||C?"middle":j?"top":"bottom"),et.prototype.alignDataLabel.call(this,g,f,y,k,v),y.inside&&g.contrastColor&&f.css({color:g.contrastColor})}var A=[];R.compose=function(g){X.compose(et),A.indexOf(g)===-1&&(A.push(g),g.prototype.alignDataLabel=D)}}(K||(K={})),K}),lt(_,"Series/Bar/BarSeries.js",[_["Series/Column/ColumnSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(X,Y,V){var et=this&&this.__extends||function(){var K=function(R,D){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,g){A.__proto__=g}||function(A,g){for(var f in g)g.hasOwnProperty(f)&&(A[f]=g[f])},K(R,D)};return function(R,D){function A(){this.constructor=R}K(R,D),R.prototype=D===null?Object.create(D):(A.prototype=D.prototype,new A)}}(),J=V.extend,Q=V.merge;return V=function(K){function R(){var D=K!==null&&K.apply(this,arguments)||this;return D.data=void 0,D.options=void 0,D.points=void 0,D}return et(R,K),R.defaultOptions=Q(X.defaultOptions,{}),R}(X),J(V.prototype,{inverted:!0}),Y.registerSeriesType("bar",V),V}),lt(_,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25CF</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),lt(_,"Series/Scatter/ScatterSeries.js",[_["Series/Scatter/ScatterSeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(X,Y,V){var et=this&&this.__extends||function(){var A=function(g,f){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,k){y.__proto__=k}||function(y,k){for(var v in k)k.hasOwnProperty(v)&&(y[v]=k[v])},A(g,f)};return function(g,f){function y(){this.constructor=g}A(g,f),g.prototype=f===null?Object.create(f):(y.prototype=f.prototype,new y)}}(),J=Y.seriesTypes,Q=J.column,K=J.line;J=V.addEvent;var R=V.extend,D=V.merge;return V=function(A){function g(){var f=A!==null&&A.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f}return et(g,A),g.prototype.applyJitter=function(){var f=this,y=this.options.jitter,k=this.points.length;y&&this.points.forEach(function(v,S){["x","y"].forEach(function(M,w){var b="plot"+M.toUpperCase();if(y[M]&&!v.isNull){var j=f[M+"Axis"],C=y[M]*j.transA;if(j&&!j.isLog){var s=Math.max(0,v[b]-C);j=Math.min(j.len,v[b]+C),w=1e4*Math.sin(S+w*k),v[b]=s+(j-s)*(w-Math.floor(w)),M==="x"&&(v.clientX=v.plotX)}}})})},g.prototype.drawGraph=function(){this.options.lineWidth?A.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},g.defaultOptions=D(K.defaultOptions,X),g}(K),R(V.prototype,{drawTracker:Q.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),J(V,"afterTranslate",function(){this.applyJitter()}),Y.registerSeriesType("scatter",V),V}),lt(_,"Series/CenteredUtilities.js",[_["Core/Globals.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(X,Y,V){var et=X.deg2rad,J=V.fireEvent,Q=V.isNumber,K=V.pick,R=V.relativeLength,D;return function(A){A.getCenter=function(){var g=this.options,f=this.chart,y=2*(g.slicedOffset||0),k=f.plotWidth-2*y,v=f.plotHeight-2*y,S=g.center,M=Math.min(k,v),w=g.thickness,b=g.size,j=g.innerSize||0;for(typeof b=="string"&&(b=parseFloat(b)),typeof j=="string"&&(j=parseFloat(j)),g=[K(S[0],"50%"),K(S[1],"50%"),K(b&&0>b?void 0:g.size,"100%"),K(j&&0>j?void 0:g.innerSize||0,"0%")],!f.angular||this instanceof Y||(g[3]=0),S=0;4>S;++S)b=g[S],f=2>S||S===2&&/%$/.test(b),g[S]=R(b,[k,v,M,g[2]][S])+(f?y:0);return g[3]>g[2]&&(g[3]=g[2]),Q(w)&&2*w<g[2]&&0<w&&(g[3]=g[2]-2*w),J(this,"afterGetCenter",{positions:g}),g},A.getStartAndEndRadians=function(g,f){return g=Q(g)?g:0,f=Q(f)&&f>g&&360>f-g?f:g+360,{start:et*(g+-90),end:et*(f+-90)}}}(D||(D={})),D}
2),lt(_,"Series/Pie/PiePoint.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Series/Point.js"],_["Core/Utilities.js"]],function(X,Y,V){var et=this&&this.__extends||function(){var g=function(f,y){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,v){k.__proto__=v}||function(k,v){for(var S in v)v.hasOwnProperty(S)&&(k[S]=v[S])},g(f,y)};return function(f,y){function k(){this.constructor=f}g(f,y),f.prototype=y===null?Object.create(y):(k.prototype=y.prototype,new k)}}(),J=X.setAnimation,Q=V.addEvent,K=V.defined;X=V.extend;var R=V.isNumber,D=V.pick,A=V.relativeLength;return Y=function(g){function f(){var y=g!==null&&g.apply(this,arguments)||this;return y.labelDistance=void 0,y.options=void 0,y.series=void 0,y}return et(f,g),f.prototype.getConnectorPath=function(){var y=this.labelPosition,k=this.series.options.dataLabels,v=this.connectorShapes,S=k.connectorShape;return v[S]&&(S=v[S]),S.call(this,{x:y.final.x,y:y.final.y,alignment:y.alignment},y.connectorPosition,k)},f.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},f.prototype.haloPath=function(y){var k=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(k.x,k.y,k.r+y,k.r+y,{innerR:k.r-1,start:k.start,end:k.end})},f.prototype.init=function(){var y=this;g.prototype.init.apply(this,arguments),this.name=D(this.name,"Slice");var k=function(v){y.slice(v.type==="select")};return Q(this,"select",k),Q(this,"unselect",k),this},f.prototype.isValid=function(){return R(this.y)&&0<=this.y},f.prototype.setVisible=function(y,k){var v=this,S=this.series,M=S.chart,w=S.options.ignoreHiddenPoint;k=D(k,w),y!==this.visible&&(this.visible=this.options.visible=y=typeof y>"u"?!this.visible:y,S.options.data[S.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(b){v[b]&&v[b][y?"show":"hide"](y)}),this.legendItem&&M.legend.colorizeItem(this,y),y||this.state!=="hover"||this.setState(""),w&&(S.isDirty=!0),k&&M.redraw())},f.prototype.slice=function(y,k,v){var S=this.series;J(v,S.chart),D(k,!0),this.sliced=this.options.sliced=K(y)?y:!this.sliced,S.options.data[S.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},f}(Y),X(Y.prototype,{connectorShapes:{fixedOffset:function(g,f,y){var k=f.breakAt;return f=f.touchingSliceAt,[["M",g.x,g.y],y.softConnector?["C",g.x+(g.alignment==="left"?-5:5),g.y,2*k.x-f.x,2*k.y-f.y,k.x,k.y]:["L",k.x,k.y],["L",f.x,f.y]]},straight:function(g,f){return f=f.touchingSliceAt,[["M",g.x,g.y],["L",f.x,f.y]]},crookedLine:function(g,f,y){f=f.touchingSliceAt;var k=this.series,v=k.center[0],S=k.chart.plotWidth,M=k.chart.plotLeft;k=g.alignment;var w=this.shapeArgs.r;return y=A(y.crookDistance,1),S=k==="left"?v+w+(S+M-v-w)*(1-y):M+(v-w)*y,y=["L",S,g.y],v=!0,(k==="left"?S>g.x||S<f.x:S<g.x||S>f.x)&&(v=!1),g=[["M",g.x,g.y]],v&&g.push(y),g.push(["L",f.x,f.y]),g}}}),Y}),lt(_,"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}}}}),lt(_,"Series/Pie/PieSeries.js",[_["Series/CenteredUtilities.js"],_["Series/Column/ColumnSeries.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Series/Pie/PiePoint.js"],_["Series/Pie/PieSeriesDefaults.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/Symbols.js"],_["Core/Utilities.js"]],function(X,Y,V,et,J,Q,K,R,D,A){var g=this&&this.__extends||function(){var b=function(j,C){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var o in d)d.hasOwnProperty(o)&&(s[o]=d[o])},b(j,C)};return function(j,C){function s(){this.constructor=j}
2b(j,C),j.prototype=C===null?Object.create(C):(s.prototype=C.prototype,new s)}}(),f=X.getStartAndEndRadians;V=V.noop;var y=A.clamp,k=A.extend,v=A.fireEvent,S=A.merge,M=A.pick,w=A.relativeLength;return A=function(b){function j(){var C=b!==null&&b.apply(this,arguments)||this;return C.center=void 0,C.data=void 0,C.maxLabelDistance=void 0,C.options=void 0,C.points=void 0,C}return g(j,b),j.prototype.animate=function(C){var s=this,d=s.points,o=s.startAngleRad;C||d.forEach(function(h){var t=h.graphic,p=h.shapeArgs;t&&p&&(t.attr({r:M(h.startR,s.center&&s.center[3]/2),start:o,end:o}),t.animate({r:p.r,start:p.start,end:p.end},s.options.animation))})},j.prototype.drawEmpty=function(){var C=this.startAngleRad,s=this.endAngleRad,d=this.options;if(this.total===0&&this.center){var o=this.center[0],h=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(o,h,this.center[1]/2,0,C,s).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:D.arc(o,h,this.center[2]/2,0,{start:C,end:s,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":d.borderWidth,fill:d.fillColor||"none",stroke:d.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},j.prototype.drawPoints=function(){var C=this.chart.renderer;this.points.forEach(function(s){s.graphic&&s.hasNewShapeType()&&(s.graphic=s.graphic.destroy()),s.graphic||(s.graphic=C[s.shapeType](s.shapeArgs).add(s.series.group),s.delayedRendering=!0)})},j.prototype.generatePoints=function(){b.prototype.generatePoints.call(this),this.updateTotals()},j.prototype.getX=function(C,s,d){var o=this.center,h=this.radii?this.radii[d.index]||0:o[2]/2;return C=Math.asin(y((C-o[1])/(h+d.labelDistance),-1,1)),o[0]+(s?-1:1)*Math.cos(C)*(h+d.labelDistance)+(0<d.labelDistance?(s?-1:1)*this.options.dataLabels.padding:0)},j.prototype.hasData=function(){return!!this.processedXData.length},j.prototype.redrawPoints=function(){var C=this,s=C.chart,d=s.renderer,o=C.options.shadow,h,t,p,i;
2this.drawEmpty(),!o||C.shadowGroup||s.styledMode||(C.shadowGroup=d.g("shadow").attr({zIndex:-1}).add(C.group)),C.points.forEach(function(r){var c={};if(t=r.graphic,!r.isNull&&t){var a=void 0;i=r.shapeArgs,h=r.getTranslate(),s.styledMode||(a=r.shadowGroup,o&&!a&&(a=r.shadowGroup=d.g("shadow").add(C.shadowGroup)),a&&a.attr(h),p=C.pointAttribs(r,r.selected&&"select")),r.delayedRendering?(t.setRadialReference(C.center).attr(i).attr(h),s.styledMode||t.attr(p).attr({"stroke-linejoin":"round"}).shadow(o,a),r.delayedRendering=!1):(t.setRadialReference(C.center),s.styledMode||S(!0,c,p),S(!0,c,i,h),t.animate(c)),t.attr({visibility:r.visible?"inherit":"hidden"}),t.addClass(r.getClassName(),!0)}else t&&(r.graphic=t.destroy())})},j.prototype.sortByAngle=function(C,s){C.sort(function(d,o){return typeof d.angle<"u"&&(o.angle-d.angle)*s})},j.prototype.translate=function(C){v(this,"translate"),this.generatePoints();var s=this.options,d=s.slicedOffset,o=d+(s.borderWidth||0),h=f(s.startAngle,s.endAngle),t=this.startAngleRad=h.start;h=(this.endAngleRad=h.end)-t;var p=this.points,i=s.dataLabels.distance;s=s.ignoreHiddenPoint;var r=p.length,c,a=0;for(C||(this.center=C=this.getCenter()),c=0;c<r;c++){var m=p[c],P=t+a*h;!m.isValid()||s&&!m.visible||(a+=m.percentage/100);var G=t+a*h,I={x:C[0],y:C[1],r:C[2]/2,innerR:C[3]/2,start:Math.round(1e3*P)/1e3,end:Math.round(1e3*G)/1e3};m.shapeType="arc",m.shapeArgs=I,m.labelDistance=M(m.options.dataLabels&&m.options.dataLabels.distance,i),m.labelDistance=w(m.labelDistance,I.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,m.labelDistance),G=(G+P)/2,G>1.5*Math.PI?G-=2*Math.PI:G<-Math.PI/2&&(G+=2*Math.PI),m.slicedTranslation={translateX:Math.round(Math.cos(G)*d),translateY:Math.round(Math.sin(G)*d)},I=Math.cos(G)*C[2]/2;var e=Math.sin(G)*C[2]/2;
2m.tooltipPos=[C[0]+.7*I,C[1]+.7*e],m.half=G<-Math.PI/2||G>Math.PI/2?1:0,m.angle=G,P=Math.min(o,m.labelDistance/5),m.labelPosition={natural:{x:C[0]+I+Math.cos(G)*m.labelDistance,y:C[1]+e+Math.sin(G)*m.labelDistance},final:{},alignment:0>m.labelDistance?"center":m.half?"right":"left",connectorPosition:{breakAt:{x:C[0]+I+Math.cos(G)*P,y:C[1]+e+Math.sin(G)*P},touchingSliceAt:{x:C[0]+I,y:C[1]+e}}}}v(this,"afterTranslate")},j.prototype.updateTotals=function(){var C=this.points,s=C.length,d=this.options.ignoreHiddenPoint,o,h=0;for(o=0;o<s;o++){var t=C[o];!t.isValid()||d&&!t.visible||(h+=t.y)}for(this.total=h,o=0;o<s;o++)t=C[o],t.percentage=0<h&&(t.visible||!d)?t.y/h*100:0,t.total=h},j.defaultOptions=S(K.defaultOptions,Q),j}(K),k(A.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:et.drawRectangle,drawTracker:Y.prototype.drawTracker,getCenter:X.getCenter,getSymbol:V,isCartesian:!1,noSharedTooltip:!0,pointAttribs:Y.prototype.pointAttribs,pointClass:J,requireSorting:!1,searchPoint:V,trackerGroups:["group","dataLabelsGroup"]}),R.registerSeriesType("pie",A),A}),lt(_,"Series/Pie/PieDataLabel.js",[_["Core/Series/DataLabel.js"],_["Core/Globals.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(X,Y,V,et,J){var Q=Y.noop,K=V.distribute,R=et.series,D=J.arrayMax,A=J.clamp,g=J.defined,f=J.merge,y=J.pick,k=J.relativeLength,v;return function(S){function M(){var s=this,d=s.data,o=s.chart,h=s.options.dataLabels||{},t=h.connectorPadding,p=o.plotWidth,i=o.plotHeight,r=o.plotLeft,c=Math.round(o.chartWidth/3),a=s.center,m=a[2]/2,P=a[1],G=[[],[]],I=[0,0,0,0],e=s.dataLabelPositioners,l,T,E,L,n,x,u,z,O,B,W,F;s.visible&&(h.enabled||s._hasPointLabels)&&(d.forEach(function(U){U.dataLabel&&U.visible&&U.dataLabel.shortened&&(U.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),U.dataLabel.shortened=!1)}),R.prototype.drawDataLabels.apply(s),d.forEach(function(U){U.dataLabel&&(U.visible?(G[U.half].push(U),U.dataLabel._pos=null,!g(h.style.width)&&!g(U.options.dataLabels&&U.options.dataLabels.style&&U.options.dataLabels.style.width)&&U.dataLabel.getBBox().width>c&&(U.dataLabel.css({width:Math.round(.7*c)+"px"}),U.dataLabel.shortened=!0)):(U.dataLabel=U.dataLabel.destroy(),U.dataLabels&&U.dataLabels.length===1&&delete U.dataLabels))}),G.forEach(function(U,st){var rt=U.length,ot=[],tt;if(rt){if(s.sortByAngle(U,st-.5),0<s.maxLabelDistance){var at=Math.max(0,P-m-s.maxLabelDistance),$=Math.min(P+m+s.maxLabelDistance,o.plotHeight);U.forEach(function(N){0<N.labelDistance&&N.dataLabel&&(N.top=Math.max(0,P-m-N.labelDistance),N.bottom=Math.min(P+m+N.labelDistance,o.plotHeight),tt=N.dataLabel.getBBox().height||21,N.distributeBox={target:N.labelPosition.natural.y-N.top+tt/2,size:tt,rank:N.y},ot.push(N.distributeBox))}),at=$+tt-at,K(ot,at,at/5)}for(W=0;W<rt;W++){if(l=U[W],x=l.labelPosition,L=l.dataLabel,B=l.visible===!1?"hidden":"inherit",O=at=x.natural.y,ot&&g(l.distributeBox)&&(typeof l.distributeBox.pos>"u"?B="hidden":(u=l.distributeBox.size,O=e.radialDistributionY(l))),delete l.positionIndex,h.justify)z=e.justify(l,m,a);else switch(h.alignTo){case"connectors":z=e.alignToConnectors(U,st,p,r);break;case"plotEdges":z=e.alignToPlotEdges(L,st,p,r);break;default:z=e.radialDistributionX(s,l,O,at)}L._attr={visibility:B,align:x.alignment},F=l.options.dataLabels||{},L._pos={x:z+y(F.x,h.x)+({left:t,right:-t}[x.alignment]||0),y:O+y(F.y,h.y)-10},x.final.x=z,x.final.y=O,y(h.crop,!0)&&(n=L.getBBox().width,at=null,z-n<t&&st===1?(at=Math.round(n-z+t),I[3]=Math.max(at,I[3])):z+n>p-t&&st===0&&(at=Math.round(z+n-p+t),I[1]=Math.max(at,I[1])),0>O-u/2?I[0]=Math.max(Math.round(-O+u/2),I[0]):O+u/2>i&&(I[2]=Math.max(Math.round(O+u/2-i),I[2])),L.sideOverflow=at)}}}),D(I)===0||this.verifyDataLabelOverflow(I))&&(this.placeDataLabels(),this.points.forEach(function(U){if(F=f(h,U.options.dataLabels),T=y(F.connectorWidth,1)){var st;E=U.connector,(L=U.dataLabel)&&L._pos&&U.visible&&0<U.labelDistance?(B=L._attr.visibility,(st=!E)&&(U.connector=E=o.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+U.colorIndex+(U.className?" "+U.className:"")).add(s.dataLabelsGroup),o.styledMode||E.attr({"stroke-width":T,stroke:F.connectorColor||U.color||"#666666"})),E[st?"attr":"animate"]({d:U.getConnectorPath()}),E.attr("visibility",B)):E&&(U.connector=E.destroy())}}))}
2function w(){this.points.forEach(function(s){var d=s.dataLabel,o;d&&s.visible&&((o=d._pos)?(d.sideOverflow&&(d._attr.width=Math.max(d.getBBox().width-d.sideOverflow,0),d.css({width:d._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),d.shortened=!0),d.attr(d._attr),d[d.moved?"animate":"attr"](o),d.moved=!0):d&&d.attr({y:-9999})),delete s.distributeBox},this)}function b(s){var d=this.center,o=this.options,h=o.center,t=o.minSize||80,p=o.size!==null;if(!p){if(h[0]!==null)var i=Math.max(d[2]-Math.max(s[1],s[3]),t);else i=Math.max(d[2]-s[1]-s[3],t),d[0]+=(s[3]-s[1])/2;h[1]!==null?i=A(i,t,d[2]-Math.max(s[0],s[2])):(i=A(i,t,d[2]-s[0]-s[2]),d[1]+=(s[0]-s[2])/2),i<d[2]?(d[2]=i,d[3]=Math.min(o.thickness?Math.max(0,i-2*o.thickness):Math.max(0,k(o.innerSize||0,i)),i),this.translate(d),this.drawDataLabels&&this.drawDataLabels()):p=!0}return p}var j=[],C={radialDistributionY:function(s){return s.top+s.distributeBox.pos},radialDistributionX:function(s,d,o,h){return s.getX(o<d.top+2||o>d.bottom-2?h:o,d.half,d)},justify:function(s,d,o){return o[0]+(s.half?-1:1)*(d+s.labelDistance)},alignToPlotEdges:function(s,d,o,h){return s=s.getBBox().width,d?s+h:o-s-h},alignToConnectors:function(s,d,o,h){var t=0,p;return s.forEach(function(i){p=i.dataLabel.getBBox().width,p>t&&(t=p)}),d?t+h:o-t-h}};S.compose=function(s){X.compose(R),j.indexOf(s)===-1&&(j.push(s),s=s.prototype,s.dataLabelPositioners=C,s.alignDataLabel=Q,s.drawDataLabels=M,s.placeDataLabels=w,s.verifyDataLabelOverflow=b)}}(v||(v={})),v}),lt(_,"Extensions/OverlappingDataLabels.js",[_["Core/Chart/Chart.js"],_["Core/Utilities.js"]],function(X,Y){function V(A,g){var f=!1;if(A){var y=A.newOpacity;A.oldOpacity!==y&&(A.alignAttr&&A.placed?(A[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),f=!0,A.alignAttr.opacity=y,A[A.isOld?"animate":"attr"](A.alignAttr,null,function(){g.styledMode||A.css({pointerEvents:y?"auto":"none"})}),J(g,"afterHideOverlappingLabel")):A.attr({opacity:y})),A.isOld=!0}return f}var et=Y.addEvent,J=Y.fireEvent,Q=Y.isArray,K=Y.isNumber,R=Y.objectEach,D=Y.pick;et(X,"render",function(){var A=this,g=[];(this.labelCollectors||[]).forEach(function(f){g=g.concat(f())}),(this.yAxis||[]).forEach(function(f){f.stacking&&f.options.stackLabels&&!f.options.stackLabels.allowOverlap&&R(f.stacking.stacks,function(y){R(y,function(k){k.label&&g.push(k.label)})})}),(this.series||[]).forEach(function(f){var y=f.options.dataLabels;f.visible&&(y.enabled!==!1||f._hasPointLabels)&&(y=function(k){return k.forEach(function(v){v.visible&&(Q(v.dataLabels)?v.dataLabels:v.dataLabel?[v.dataLabel]:[]).forEach(function(S){var M=S.options;S.labelrank=D(M.labelrank,v.labelrank,v.shapeArgs&&v.shapeArgs.height),M.allowOverlap?(S.oldOpacity=S.opacity,S.newOpacity=1,V(S,A)):g.push(S)})})},y(f.nodes||[]),y(f.points))}),this.hideOverlappingLabels(g)}),X.prototype.hideOverlappingLabels=function(A){var g=this,f=A.length,y=g.renderer,k,v,S,M=!1,w=function(C){var s,d=C.box?0:C.padding||0,o=s=0,h;if(C&&(!C.alignAttr||C.placed)){var t=C.alignAttr||{x:C.attr("x"),y:C.attr("y")},p=C.parentGroup;C.width||(s=C.getBBox(),C.width=s.width,C.height=s.height,s=y.fontMetrics(null,C.element).h);var i=C.width-2*d;return(h={left:"0",center:"0.5",right:"1"}[C.alignValue])?o=+h*i:K(C.x)&&Math.round(C.x)!==C.translateX&&(o=C.x-C.translateX),{x:t.x+(p.translateX||0)+d-(o||0),y:t.y+(p.translateY||0)+d-s,width:C.width-2*d,height:C.height-2*d}}};for(v=0;v<f;v++)(k=A[v])&&(k.oldOpacity=k.opacity,k.newOpacity=1,k.absoluteBox=w(k));for(A.sort(function(C,s){return(s.labelrank||0)-(C.labelrank||0)}),v=0;v<f;v++){var b=(w=A[v])&&w.absoluteBox;for(k=v+1;k<f;++k){var j=(S=A[k])&&S.absoluteBox;!b||!j||w===S||w.newOpacity===0||S.newOpacity===0||w.visibility==="hidden"||S.visibility==="hidden"||j.x>=b.x+b.width||j.x+j.width<=b.x||j.y>=b.y+b.height||j.y+j.height<=b.y||((w.labelrank<S.labelrank?w:S).newOpacity=0)}}A.forEach(function(C){V(C,g)&&(M=!0)}),M&&J(g,"afterHideAllOverlappingLabels")}}),lt(_,"Core/Responsive.js",[_["Core/Utilities.js"]],function(X){var Y=X.extend,V=X.find,et=X.isArray,J=X.isObject,Q=X.merge,K=X.objectEach,R=X.pick,D=X.splat,A=X.uniqueKey,g;return function(f){var y=[];f.compose=function(v){return y.indexOf(v)===-1&&(y.push(v),Y(v.prototype,k.prototype)),v};var k=function(){function v(){}return v.prototype.currentOptions=function(S){function M(j,C,s,d){var o;K(j,function(h,t){if(!d&&-1<w.collectionsWithUpdate.indexOf(t)&&C[t])for(h=D(h),s[t]=[],o=0;o<Math.max(h.length,C[t].length);o++)C[t][o]&&(h[o]===void 0?s[t][o]=C[t][o]:(s[t][o]={},M(h[o],C[t][o],s[t][o],d+1)));else J(h)?(s[t]=et(h)?[]:{},M(h,C[t]||{},s[t],d+1)):s[t]=typeof C[t]>"u"?null:C[t]})}var w=this,b={};return M(S,this.options,b,0),b},v.prototype.matchResponsiveRule=function(S,M){var w=S.condition;(w.callback||function(){return this.chartWidth<=R(w.maxWidth,Number.MAX_VALUE)&&this.chartHe
2ight<=R(w.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=R(w.minWidth,0)&&this.chartHeight>=R(w.minHeight,0)}).call(this)&&M.push(S._id)},v.prototype.setResponsive=function(S,M){var w=this,b=this.options.responsive,j=this.currentResponsive,C=[];!M&&b&&b.rules&&b.rules.forEach(function(s){typeof s._id>"u"&&(s._id=A()),w.matchResponsiveRule(s,C)},this),M=Q.apply(void 0,C.map(function(s){return V((b||{}).rules||[],function(d){return d._id===s})}).map(function(s){return s&&s.chartOptions})),M.isResponsiveOptions=!0,C=C.toString()||void 0,C!==(j&&j.ruleIds)&&(j&&this.update(j.undoOptions,S,!0),C?(j=this.currentOptions(M),j.isResponsiveOptions=!0,this.currentResponsive={ruleIds:C,mergedOptions:M,undoOptions:j},this.update(M,S,!0)):this.currentResponsive=void 0)},v}()}(g||(g={})),g}),lt(_,"masters/highcharts.src.js",[_["Core/Globals.js"],_["Core/Utilities.js"],_["Core/Defaults.js"],_["Core/Animation/Fx.js"],_["Core/Animation/AnimationUtilities.js"],_["Core/Renderer/HTML/AST.js"],_["Core/FormatUtilities.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Renderer/HTML/HTMLElement.js"],_["Core/Renderer/HTML/HTMLRenderer.js"],_["Core/Axis/Axis.js"],_["Core/Axis/DateTimeAxis.js"],_["Core/Axis/LogarithmicAxis.js"],_["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],_["Core/Axis/Tick.js"],_["Core/Tooltip.js"],_["Core/Series/Point.js"],_["Core/Pointer.js"],_["Core/MSPointer.js"],_["Core/Legend/Legend.js"],_["Core/Chart/Chart.js"],_["Core/Axis/Stacking/StackingAxis.js"],_["Core/Axis/Stacking/StackItem.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Series/Column/ColumnSeries.js"],_["Series/Column/ColumnDataLabel.js"],_["Series/Pie/PieSeries.js"],_["Series/Pie/PieDataLabel.js"],_["Core/Series/DataLabel.js"],_["Core/Responsive.js"],_["Core/Color/Color.js"],_["Core/Time.js"]],function(X,Y,V,et,J,Q,K,R,D,A,g,f,y,k,v,S,M,w,b,j,C,s,d,o,h,t,p,i,r,c,a,m,P,G,I){return X.animate=J.animate,X.animObject=J.animObject,X.getDeferredAnimation=J.getDeferredAnimation,X.setAnimation=J.setAnimation,X.stop=J.stop,X.timers=et.timers,X.AST=Q,X.Axis=y,X.Chart=d,X.chart=d.chart,X.Fx=et,X.Legend=s,X.PlotLineOrBand=S,X.Point=b,X.Pointer=C.isRequired()?C:j,X.Series=t,X.StackItem=h,X.SVGElement=D,X.SVGRenderer=A,X.Tick=M,X.Time=I,X.Tooltip=w,X.Color=G,X.color=G.parse,f.compose(A),g.compose(D),X.defaultOptions=V.defaultOptions,X.getOptions=V.getOptions,X.time=V.defaultTime,X.setOptions=V.setOptions,X.dateFormat=K.dateFormat,X.format=K.format,X.numberFormat=K.numberFormat,X.addEvent=Y.addEvent,X.arrayMax=Y.arrayMax,X.arrayMin=Y.arrayMin,X.attr=Y.attr,X.clearTimeout=Y.clearTimeout,X.correctFloat=Y.correctFloat,X.createElement=Y.createElement,X.css=Y.css,X.defined=Y.defined,X.destroyObjectProperties=Y.destroyObjectProperties,X.discardElement=Y.discardElement,X.distribute=R.distribute,X.erase=Y.erase,X.error=Y.error,X.extend=Y.extend,X.extendClass=Y.extendClass,X.find=Y.find,X.fireEvent=Y.fireEvent,X.getMagnitude=Y.getMagnitude,X.getStyle=Y.getStyle,X.inArray=Y.inArray,X.isArray=Y.isArray,X.isClass=Y.isClass,X.isDOMElement=Y.isDOMElement,X.isFunction=Y.isFunction,X.isNumber=Y.isNumber,X.isObject=Y.isObject,X.isString=Y.isString,X.keys=Y.keys,X.merge=Y.merge,X.normalizeTickInterval=Y.normalizeTickInterval,X.objectEach=Y.objectEach,X.offset=Y.offset,X.pad=Y.pad,X.pick=Y.pick,X.pInt=Y.pInt,X.relativeLength=Y.relativeLength,X.removeEvent=Y.removeEvent,X.seriesType=p.seriesType,X.splat=Y.splat,X.stableSort=Y.stableSort,X.syncTimeout=Y.syncTimeout,X.timeUnits=Y.timeUnits,X.uniqueKey=Y.uniqueKey,X.useSerialIds=Y.useSerialIds,X.wrap=Y.wrap,r.compose(i),m.compose(t),k.compose(y),v.compose(y),a.compose(c),S.compose(y),P.compose(d),o.compose(y,d,t),X}),_["masters/highcharts.src.js"]._modules=_,_["masters/highcharts.src.js"]})})(Pt);const Et=Pt.exports,jt=Lt({__proto__:null,default:Et},[Pt.exports]);export{bt as a,Ot as c,Dt as g,jt as h};

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