HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcode/frontend/node_modules/highcharts/es5/highcharts.js
/*
 Highcharts JS v10.3.3 (2023-01-20)

 (c) 2009-2021 Torstein Honsi

 License: www.highcharts.com/license
*/
(function(aa,L){"object"===typeof module&&module.exports?(L["default"]=L,module.exports=aa.document?L(aa):L):"function"===typeof define&&define.amd?define("highcharts/highcharts",function(){return L(aa)}):(aa.Highcharts&&aa.Highcharts.error(16,!0),aa.Highcharts=L(aa))})("undefined"!==typeof window?window:this,function(aa){function L(a,z,g,E){a.hasOwnProperty(z)||(a[z]=E.apply(null,g),"function"===typeof CustomEvent&&aa.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:z,module:a[z]}})))}
var g={};L(g,"Core/Globals.js",[],function(){var a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="10.3.3";a.win="undefined"!==typeof aa?aa:{};a.doc=a.win.document;a.svg=a.doc&&a.doc.createElementNS&&!!a.doc.createElementNS(a.SVG_NS,"svg").createSVGRect;a.userAgent=a.win.navigator&&a.win.navigator.userAgent||"";a.isChrome=-1!==a.userAgent.indexOf("Chrome");a.isFirefox=-1!==a.userAgent.indexOf("Firefox");a.isMS=/(edge|msie|trident)/i.test(a.userAgent)&&!a.win.opera;
a.isSafari=!a.isChrome&&-1!==a.userAgent.indexOf("Safari");a.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(a.userAgent);a.isWebKit=-1!==a.userAgent.indexOf("AppleWebKit");a.deg2rad=2*Math.PI/360;a.hasBidiBug=a.isFirefox&&4>parseInt(a.userAgent.split("Firefox/")[1],10);a.hasTouch=!!a.win.TouchEvent;a.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];a.noop=function(){};a.supportsPassiveEvents=function(){var g=!1;if(!a.isMS){var z=Object.defineProperty({},"passive",{get:function(){g=
!0}});a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive",a.noop,z),a.win.removeEventListener("testPassive",a.noop,z))}return g}();a.charts=[];a.dateFormats={};a.seriesTypes={};a.symbolSizes={};a.chartCount=0})(a||(a={}));"";return a});L(g,"Core/Utilities.js",[g["Core/Globals.js"]],function(a){function g(b,c,l,F){var A=c?"Highcharts error":"Highcharts warning";32===b&&(b="".concat(A,": Deprecated member"));var p=n(b),v=p?"".concat(A," #").concat(b,": www.highcharts.com/errors/").concat(b,
"/"):b.toString();if("undefined"!==typeof F){var M="";p&&(v+="?");K(F,function(b,A){M+="\n - ".concat(A,": ").concat(b);p&&(v+=encodeURI(A)+"="+encodeURI(b))});v+=M}x(a,"displayError",{chart:l,code:b,message:v,params:F},function(){if(c)throw Error(v);f.console&&-1===g.messages.indexOf(v)&&console.warn(v)});g.messages.push(v)}function y(b,f){var A={};K(b,function(c,p){if(J(b[p],!0)&&!b.nodeType&&f[p])c=y(b[p],f[p]),Object.keys(c).length&&(A[p]=c);else if(J(b[p])||b[p]!==f[p]||p in b&&!(p in f))A[p]=
b[p]});return A}function E(b,f){return parseInt(b,f||10)}function C(b){return"string"===typeof b}function D(b){b=Object.prototype.toString.call(b);return"[object Array]"===b||"[object Array Iterator]"===b}function J(b,f){return!!b&&"object"===typeof b&&(!f||!D(b))}function t(b){return J(b)&&"number"===typeof b.nodeType}function q(b){var f=b&&b.constructor;return!(!J(b,!0)||t(b)||!f||!f.name||"Object"===f.name)}function n(b){return"number"===typeof b&&!isNaN(b)&&Infinity>b&&-Infinity<b}function e(b){return"undefined"!==
typeof b&&null!==b}function d(b,f,c){var A=C(f)&&!e(c),p,l=function(f,c){e(f)?b.setAttribute(c,f):A?(p=b.getAttribute(c))||"class"!==c||(p=b.getAttribute(c+"Name")):b.removeAttribute(c)};C(f)?l(c,f):K(f,l);return p}function h(b,f){var c;b||(b={});for(c in f)b[c]=f[c];return b}function m(){for(var b=arguments,f=b.length,c=0;c<f;c++){var F=b[c];if("undefined"!==typeof F&&null!==F)return F}}function k(b,f){a.isMS&&!a.svg&&f&&e(f.opacity)&&(f.filter="alpha(opacity=".concat(100*f.opacity,")"));h(b.style,
f)}function r(b){return Math.pow(10,Math.floor(Math.log(b)/Math.LN10))}function B(b,f){return 1E14<b?b:parseFloat(b.toPrecision(f||14))}function G(b,c,l){var A=a.getStyle||G;if("width"===c)return c=Math.min(b.offsetWidth,b.scrollWidth),l=b.getBoundingClientRect&&b.getBoundingClientRect().width,l<c&&l>=c-1&&(c=Math.floor(l)),Math.max(0,c-(A(b,"padding-left",!0)||0)-(A(b,"padding-right",!0)||0));if("height"===c)return Math.max(0,Math.min(b.offsetHeight,b.scrollHeight)-(A(b,"padding-top",!0)||0)-(A(b,
"padding-bottom",!0)||0));f.getComputedStyle||g(27,!0);if(b=f.getComputedStyle(b,void 0)){var p=b.getPropertyValue(c);m(l,"opacity"!==c)&&(p=E(p))}return p}function K(b,f,c){for(var A in b)Object.hasOwnProperty.call(b,A)&&f.call(c||b[A],b[A],A,b)}function I(b,f,c){function A(f,c){var w=b.removeEventListener||a.removeEventListenerPolyfill;w&&w.call(b,f,c,!1)}function p(c){var w;if(b.nodeName){if(f){var p={};p[f]=!0}else p=c;K(p,function(b,f){if(c[f])for(w=c[f].length;w--;)A(f,c[f][w].fn)})}}var l=
"function"===typeof b&&b.prototype||b;if(Object.hasOwnProperty.call(l,"hcEvents")){var v=l.hcEvents;f?(l=v[f]||[],c?(v[f]=l.filter(function(b){return c!==b.fn}),A(f,c)):(p(v),v[f]=[])):(p(v),delete l.hcEvents)}}function x(b,f,c,F){c=c||{};if(u.createEvent&&(b.dispatchEvent||b.fireEvent&&b!==a)){var A=u.createEvent("Events");A.initEvent(f,!0,!0);c=h(A,c);b.dispatchEvent?b.dispatchEvent(c):b.fireEvent(f,c)}else if(b.hcEvents){c.target||h(c,{preventDefault:function(){c.defaultPrevented=!0},target:b,
type:f});A=[];for(var p=b,l=!1;p.hcEvents;)Object.hasOwnProperty.call(p,"hcEvents")&&p.hcEvents[f]&&(A.length&&(l=!0),A.unshift.apply(A,p.hcEvents[f])),p=Object.getPrototypeOf(p);l&&A.sort(function(b,f){return b.order-f.order});A.forEach(function(f){!1===f.fn.call(b,c)&&c.preventDefault()})}F&&!c.defaultPrevented&&F.call(b,c)}var c=a.charts,u=a.doc,f=a.win;(g||(g={})).messages=[];Math.easeInOutSine=function(b){return-.5*(Math.cos(Math.PI*b)-1)};var l=Array.prototype.find?function(b,f){return b.find(f)}:
function(b,f){var c,p=b.length;for(c=0;c<p;c++)if(f(b[c],c))return b[c]};K({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(b,f){a[f]=function(c){var p;g(32,!1,void 0,(p={},p["Highcharts.".concat(f)]="use Array.".concat(b),p));return Array.prototype[b].apply(c,[].slice.call(arguments,1))}});var b,v=function(){var f=Math.random().toString(36).substring(2,9)+"-",c=0;return function(){return"highcharts-"+(b?"":f)+c++}}();f.jQuery&&(f.jQuery.fn.highcharts=function(){var b=
[].slice.call(arguments);if(this[0])return b[0]?(new (a[C(b[0])?b.shift():"Chart"])(this[0],b[0],b[1]),this):c[d(this[0],"data-highcharts-chart")]});l={addEvent:function(b,f,c,F){void 0===F&&(F={});var p="function"===typeof b&&b.prototype||b;Object.hasOwnProperty.call(p,"hcEvents")||(p.hcEvents={});p=p.hcEvents;a.Point&&b instanceof a.Point&&b.series&&b.series.chart&&(b.series.chart.runTrackerClick=!0);var A=b.addEventListener||a.addEventListenerPolyfill;A&&A.call(b,f,c,a.supportsPassiveEvents?{passive:void 0===
F.passive?-1!==f.indexOf("touch"):F.passive,capture:!1}:!1);p[f]||(p[f]=[]);p[f].push({fn:c,order:"number"===typeof F.order?F.order:Infinity});p[f].sort(function(b,f){return b.order-f.order});return function(){I(b,f,c)}},arrayMax:function(b){for(var f=b.length,c=b[0];f--;)b[f]>c&&(c=b[f]);return c},arrayMin:function(b){for(var f=b.length,c=b[0];f--;)b[f]<c&&(c=b[f]);return c},attr:d,clamp:function(b,f,c){return b>f?b<c?b:c:f},cleanRecursively:y,clearTimeout:function(b){e(b)&&clearTimeout(b)},correctFloat:B,
createElement:function(b,f,c,F,l){b=u.createElement(b);f&&h(b,f);l&&k(b,{padding:"0",border:"none",margin:"0"});c&&k(b,c);F&&F.appendChild(b);return b},css:k,defined:e,destroyObjectProperties:function(b,f){K(b,function(c,p){c&&c!==f&&c.destroy&&c.destroy();delete b[p]})},discardElement:function(b){b&&b.parentElement&&b.parentElement.removeChild(b)},erase:function(b,f){for(var c=b.length;c--;)if(b[c]===f){b.splice(c,1);break}},error:g,extend:h,extendClass:function(b,f){var c=function(){};c.prototype=
new b;h(c.prototype,f);return c},find:l,fireEvent:x,getMagnitude:r,getNestedProperty:function(b,c){for(b=b.split(".");b.length&&e(c);){var p=b.shift();if("undefined"===typeof p||"__proto__"===p)return;c=c[p];if(!e(c)||"function"===typeof c||"number"===typeof c.nodeType||c===f)return}return c},getStyle:G,inArray:function(b,c,f){g(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return c.indexOf(b,f)},isArray:D,isClass:q,isDOMElement:t,isFunction:function(b){return"function"===typeof b},isNumber:n,
isObject:J,isString:C,keys:function(b){g(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(b)},merge:function(){var b,c=arguments,f={},F=function(b,c){"object"!==typeof b&&(b={});K(c,function(f,w){"__proto__"!==w&&"constructor"!==w&&(!J(f,!0)||q(f)||t(f)?b[w]=c[w]:b[w]=F(b[w]||{},f))});return b};!0===c[0]&&(f=c[1],c=Array.prototype.slice.call(c,2));var l=c.length;for(b=0;b<l;b++)f=F(f,c[b]);return f},normalizeTickInterval:function(b,c,f,F,l){var p=b;f=m(f,r(b));var v=b/f;c||(c=
l?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===F&&(1===f?c=c.filter(function(b){return 0===b%1}):.1>=f&&(c=[1/f])));for(F=0;F<c.length&&!(p=c[F],l&&p*f>=b||!l&&v<=(c[F]+(c[F+1]||c[F]))/2);F++);return p=B(p*f,-Math.round(Math.log(.001)/Math.LN10))},objectEach:K,offset:function(b){var c=u.documentElement;b=b.parentElement||b.parentNode?b.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:b.top+(f.pageYOffset||c.scrollTop)-(c.clientTop||0),left:b.left+(f.pageXOffset||c.scrollLeft)-
(c.clientLeft||0),width:b.width,height:b.height}},pad:function(b,c,f){return Array((c||2)+1-String(b).replace("-","").length).join(f||"0")+b},pick:m,pInt:E,relativeLength:function(b,c,f){return/%$/.test(b)?c*parseFloat(b)/100+(f||0):parseFloat(b)},removeEvent:I,splat:function(b){return D(b)?b:[b]},stableSort:function(b,c){var f=b.length,F,l;for(l=0;l<f;l++)b[l].safeI=l;b.sort(function(b,f){F=c(b,f);return 0===F?b.safeI-f.safeI:F});for(l=0;l<f;l++)delete b[l].safeI},syncTimeout:function(b,c,f){if(0<
c)return setTimeout(b,c,f);b.call(0,f);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:v,useSerialIds:function(c){return b=m(c,b)},wrap:function(b,c,f){var l=b[c];b[c]=function(){var b=arguments,c=this;return f.apply(this,[function(){return l.apply(c,arguments.length?arguments:b)}].concat([].slice.call(arguments)))}}};"";return l});L(g,"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"}});L(g,"Core/Color/Color.js",[g["Core/Globals.js"],g["Core/Utilities.js"]],function(a,
g){var z=g.isNumber,E=g.merge,C=g.pInt;g=function(){function g(z){this.rgba=[NaN,NaN,NaN,NaN];this.input=z;var t=a.Color;if(t&&t!==g)return new t(z);if(!(this instanceof g))return new g(z);this.init(z)}g.parse=function(a){return a?new g(a):g.None};g.prototype.init=function(a){var t;if("object"===typeof a&&"undefined"!==typeof a.stops)this.stops=a.stops.map(function(d){return new g(d[1])});else if("string"===typeof a){this.input=a=g.names[a.toLowerCase()]||a;if("#"===a.charAt(0)){var q=a.length;var n=
parseInt(a.substr(1),16);7===q?t=[(n&16711680)>>16,(n&65280)>>8,n&255,1]:4===q&&(t=[(n&3840)>>4|(n&3840)>>8,(n&240)>>4|n&240,(n&15)<<4|n&15,1])}if(!t)for(n=g.parsers.length;n--&&!t;){var e=g.parsers[n];(q=e.regex.exec(a))&&(t=e.parse(q))}}t&&(this.rgba=t)};g.prototype.get=function(a){var t=this.input,q=this.rgba;if("object"===typeof t&&"undefined"!==typeof this.stops){var n=E(t);n.stops=[].slice.call(n.stops);this.stops.forEach(function(e,d){n.stops[d]=[n.stops[d][0],e.get(a)]});return n}return q&&
z(q[0])?"rgb"===a||!a&&1===q[3]?"rgb("+q[0]+","+q[1]+","+q[2]+")":"a"===a?"".concat(q[3]):"rgba("+q.join(",")+")":t};g.prototype.brighten=function(a){var t=this.rgba;if(this.stops)this.stops.forEach(function(n){n.brighten(a)});else if(z(a)&&0!==a)for(var q=0;3>q;q++)t[q]+=C(255*a),0>t[q]&&(t[q]=0),255<t[q]&&(t[q]=255);return this};g.prototype.setOpacity=function(a){this.rgba[3]=a;return this};g.prototype.tweenTo=function(a,t){var q=this.rgba,n=a.rgba;if(!z(q[0])||!z(n[0]))return a.input||"none";a=
1!==n[3]||1!==q[3];return(a?"rgba(":"rgb(")+Math.round(n[0]+(q[0]-n[0])*(1-t))+","+Math.round(n[1]+(q[1]-n[1])*(1-t))+","+Math.round(n[2]+(q[2]-n[2])*(1-t))+(a?","+(n[3]+(q[3]-n[3])*(1-t)):"")+")"};g.names={white:"#ffffff",black:"#000000"};g.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(a){return[C(a[1]),C(a[2]),C(a[3]),parseFloat(a[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[C(a[1]),
C(a[2]),C(a[3]),1]}}];g.None=new g("");return g}();"";return g});L(g,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});L(g,"Core/Time.js",[g["Core/Globals.js"],g["Core/Utilities.js"]],function(a,g){var z=a.win,E=g.defined,C=g.error,D=g.extend,J=g.isObject,t=g.merge,q=g.objectEach,n=g.pad,e=g.pick,d=g.splat,h=g.timeUnits,m=a.isSafari&&z.Intl&&z.Intl.DateTimeFormat.prototype.formatRange,k=a.isSafari&&
z.Intl&&!z.Intl.DateTimeFormat.prototype.formatRange;g=function(){function r(d){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=z.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(d)}r.prototype.get=function(d,e){if(this.variableTimezone||this.timezoneOffset){var h=e.getTime(),k=h-this.getTimezoneOffset(e);e.setTime(k);d=e["getUTC"+d]();e.setTime(h);return d}return this.useUTC?e["getUTC"+d]():e["get"+d]()};r.prototype.set=function(d,e,h){if(this.variableTimezone||
this.timezoneOffset){if("Milliseconds"===d||"Seconds"===d||"Minutes"===d&&0===this.getTimezoneOffset(e)%36E5)return e["setUTC"+d](h);var k=this.getTimezoneOffset(e);k=e.getTime()-k;e.setTime(k);e["setUTC"+d](h);d=this.getTimezoneOffset(e);k=e.getTime()+d;return e.setTime(k)}return this.useUTC||m&&"FullYear"===d?e["setUTC"+d](h):e["set"+d](h)};r.prototype.update=function(d){void 0===d&&(d={});var h=e(d.useUTC,!0);this.options=d=t(!0,this.options,d);this.Date=d.Date||z.Date||Date;this.timezoneOffset=
(this.useUTC=h)&&d.timezoneOffset||void 0;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=h&&!(!d.getTimezoneOffset&&!d.timezone)};r.prototype.makeTime=function(d,h,r,m,x,c){if(this.useUTC){var u=this.Date.UTC.apply(0,arguments);var f=this.getTimezoneOffset(u);u+=f;var l=this.getTimezoneOffset(u);f!==l?u+=l-f:f-36E5!==this.getTimezoneOffset(u-36E5)||k||(u-=36E5)}else u=(new this.Date(d,h,e(r,1),e(m,0),e(x,0),e(c,0))).getTime();return u};r.prototype.timezoneOffsetFunction=
function(){var d=this,e=this.options,h=e.getTimezoneOffset,k=e.moment||z.moment;if(!this.useUTC)return function(d){return 6E4*(new Date(d.toString())).getTimezoneOffset()};if(e.timezone){if(k)return function(d){return 6E4*-k.tz(d,e.timezone).utcOffset()};C(25)}return this.useUTC&&h?function(d){return 6E4*h(d.valueOf())}:function(){return 6E4*(d.timezoneOffset||0)}};r.prototype.dateFormat=function(d,h,k){if(!E(h)||isNaN(h))return a.defaultOptions.lang&&a.defaultOptions.lang.invalidDate||"";d=e(d,"%Y-%m-%d %H:%M:%S");
var r=this,m=new this.Date(h),c=this.get("Hours",m),u=this.get("Day",m),f=this.get("Date",m),l=this.get("Month",m),b=this.get("FullYear",m),v=a.defaultOptions.lang,A=v&&v.weekdays,p=v&&v.shortWeekdays;m=D({a:p?p[u]:A[u].substr(0,3),A:A[u],d:n(f),e:n(f,2," "),w:u,b:v.shortMonths[l],B:v.months[l],m:n(l+1),o:l+1,y:b.toString().substr(2,2),Y:b,H:n(c),k:c,I:n(c%12||12),l:c%12||12,M:n(this.get("Minutes",m)),p:12>c?"AM":"PM",P:12>c?"am":"pm",S:n(m.getSeconds()),L:n(Math.floor(h%1E3),3)},a.dateFormats);q(m,
function(b,c){for(;-1!==d.indexOf("%"+c);)d=d.replace("%"+c,"function"===typeof b?b.call(r,h):b)});return k?d.substr(0,1).toUpperCase()+d.substr(1):d};r.prototype.resolveDTLFormat=function(e){return J(e,!0)?e:(e=d(e),{main:e[0],from:e[1],to:e[2]})};r.prototype.getTimeTicks=function(d,k,m,r){var x=this,c=[],u={},f=new x.Date(k),l=d.unitRange,b=d.count||1,v;r=e(r,1);if(E(k)){x.set("Milliseconds",f,l>=h.second?0:b*Math.floor(x.get("Milliseconds",f)/b));l>=h.second&&x.set("Seconds",f,l>=h.minute?0:b*
Math.floor(x.get("Seconds",f)/b));l>=h.minute&&x.set("Minutes",f,l>=h.hour?0:b*Math.floor(x.get("Minutes",f)/b));l>=h.hour&&x.set("Hours",f,l>=h.day?0:b*Math.floor(x.get("Hours",f)/b));l>=h.day&&x.set("Date",f,l>=h.month?1:Math.max(1,b*Math.floor(x.get("Date",f)/b)));if(l>=h.month){x.set("Month",f,l>=h.year?0:b*Math.floor(x.get("Month",f)/b));var A=x.get("FullYear",f)}l>=h.year&&x.set("FullYear",f,A-A%b);l===h.week&&(A=x.get("Day",f),x.set("Date",f,x.get("Date",f)-A+r+(A<r?-7:0)));A=x.get("FullYear",
f);r=x.get("Month",f);var p=x.get("Date",f),M=x.get("Hours",f);k=f.getTime();!x.variableTimezone&&x.useUTC||!E(m)||(v=m-k>4*h.month||x.getTimezoneOffset(k)!==x.getTimezoneOffset(m));k=f.getTime();for(f=1;k<m;)c.push(k),k=l===h.year?x.makeTime(A+f*b,0):l===h.month?x.makeTime(A,r+f*b):!v||l!==h.day&&l!==h.week?v&&l===h.hour&&1<b?x.makeTime(A,r,p,M+f*b):k+l*b:x.makeTime(A,r,p+f*b*(l===h.day?1:7)),f++;c.push(k);l<=h.hour&&1E4>c.length&&c.forEach(function(b){0===b%18E5&&"000000000"===x.dateFormat("%H%M%S%L",
b)&&(u[b]="day")})}c.info=D(d,{higherRanks:u,totalRange:l*b});return c};r.prototype.getDateFormat=function(d,e,k,m){var r=this.dateFormat("%m-%d %H:%M:%S.%L",e),c={millisecond:15,second:12,minute:9,hour:6,day:3},u="millisecond";for(f in h){if(d===h.week&&+this.dateFormat("%w",e)===k&&"00:00:00.000"===r.substr(6)){var f="week";break}if(h[f]>d){f=u;break}if(c[f]&&r.substr(c[f])!=="01-01 00:00:00.000".substr(c[f]))break;"week"!==f&&(u=f)}return this.resolveDTLFormat(m[f]).main};return r}();"";return g});
L(g,"Core/Defaults.js",[g["Core/Chart/ChartDefaults.js"],g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Color/Palettes.js"],g["Core/Time.js"],g["Core/Utilities.js"]],function(a,g,y,E,C,D){g=g.parse;var z=D.merge,t={colors:E.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:a,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:y.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:y.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:g("#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"}};t.chart.styledMode=!1;"";var q=new C(z(t.global,t.time));a={defaultOptions:t,defaultTime:q,getOptions:function(){return t},setOptions:function(n){z(!0,t,n);if(n.time||n.global)y.time?y.time.update(z(t.global,t.time,n.global,n.time)):y.time=q;return t}};"";return a});L(g,"Core/Animation/Fx.js",[g["Core/Color/Color.js"],
g["Core/Globals.js"],g["Core/Utilities.js"]],function(a,g,y){var z=a.parse,C=g.win,D=y.isNumber,J=y.objectEach;return function(){function a(a,n,e){this.pos=NaN;this.options=n;this.elem=a;this.prop=e}a.prototype.dSetter=function(){var a=this.paths,n=a&&a[0];a=a&&a[1];var e=this.now||0,d=[];if(1!==e&&n&&a)if(n.length===a.length&&1>e)for(var h=0;h<a.length;h++){for(var m=n[h],k=a[h],r=[],B=0;B<k.length;B++){var G=m[B],K=k[B];D(G)&&D(K)&&("A"!==k[0]||4!==B&&5!==B)?r[B]=G+e*(K-G):r[B]=K}d.push(r)}else d=
a;else d=this.toD||[];this.elem.attr("d",d,void 0,!0)};a.prototype.update=function(){var a=this.elem,n=this.prop,e=this.now,d=this.options.step;if(this[n+"Setter"])this[n+"Setter"]();else a.attr?a.element&&a.attr(n,e,null,!0):a.style[n]=e+this.unit;d&&d.call(a,e,this)};a.prototype.run=function(q,n,e){var d=this,h=d.options,m=function(e){return m.stopped?!1:d.step(e)},k=C.requestAnimationFrame||function(d){setTimeout(d,13)},r=function(){for(var d=0;d<a.timers.length;d++)a.timers[d]()||a.timers.splice(d--,
1);a.timers.length&&k(r)};q!==n||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=q,this.end=n,this.unit=e,this.now=this.start,this.pos=0,m.elem=this.elem,m.prop=this.prop,m()&&1===a.timers.push(m)&&k(r)):(delete h.curAnim[this.prop],h.complete&&0===Object.keys(h.curAnim).length&&h.complete.call(this.elem))};a.prototype.step=function(a){var n=+new Date,e=this.options,d=this.elem,h=e.complete,m=e.duration,k=e.curAnim;if(d.attr&&!d.element)a=!1;else if(a||n>=m+this.startTime){this.now=
this.end;this.pos=1;this.update();var r=k[this.prop]=!0;J(k,function(d){!0!==d&&(r=!1)});r&&h&&h.call(d);a=!1}else this.pos=e.easing((n-this.startTime)/m),this.now=this.start+(this.end-this.start)*this.pos,this.update(),a=!0;return a};a.prototype.initPath=function(a,n,e){function d(d,c){for(;d.length<I;){var e=d[0],f=c[I-d.length];f&&"M"===e[0]&&(d[0]="C"===f[0]?["C",e[1],e[2],e[1],e[2],e[1],e[2]]:["L",e[1],e[2]]);d.unshift(e);r&&(e=d.pop(),d.push(d[d.length-1],e))}}function h(d,c){for(;d.length<
I;)if(c=d[Math.floor(d.length/B)-1].slice(),"C"===c[0]&&(c[1]=c[5],c[2]=c[6]),r){var e=d[Math.floor(d.length/B)].slice();d.splice(d.length/2,0,c,e)}else d.push(c)}var m=a.startX,k=a.endX;e=e.slice();var r=a.isArea,B=r?2:1;n=n&&n.slice();if(!n)return[e,e];if(m&&k&&k.length){for(a=0;a<m.length;a++)if(m[a]===k[0]){var G=a;break}else if(m[0]===k[k.length-m.length+a]){G=a;var K=!0;break}else if(m[m.length-1]===k[k.length-m.length+a]){G=m.length-a;break}"undefined"===typeof G&&(n=[])}if(n.length&&D(G)){var I=
e.length+G*B;K?(d(n,e),h(e,n)):(d(e,n),h(n,e))}return[n,e]};a.prototype.fillSetter=function(){a.prototype.strokeSetter.apply(this,arguments)};a.prototype.strokeSetter=function(){this.elem.attr(this.prop,z(this.start).tweenTo(z(this.end),this.pos),void 0,!0)};a.timers=[];return a}()});L(g,"Core/Animation/AnimationUtilities.js",[g["Core/Animation/Fx.js"],g["Core/Utilities.js"]],function(a,g){function z(d){return q(d)?n({duration:500,defer:0},d):{duration:d?500:0,defer:0}}function E(d,e){for(var k=a.timers.length;k--;)a.timers[k].elem!==
d||e&&e!==a.timers[k].prop||(a.timers[k].stopped=!0)}var C=g.defined,D=g.getStyle,J=g.isArray,t=g.isNumber,q=g.isObject,n=g.merge,e=g.objectEach,d=g.pick;return{animate:function(d,m,k){var h,B="",G,K;if(!q(k)){var g=arguments;k={duration:g[2],easing:g[3],complete:g[4]}}t(k.duration)||(k.duration=400);k.easing="function"===typeof k.easing?k.easing:Math[k.easing]||Math.easeInOutSine;k.curAnim=n(m);e(m,function(e,c){E(d,c);K=new a(d,k,c);G=void 0;"d"===c&&J(m.d)?(K.paths=K.initPath(d,d.pathArray,m.d),
K.toD=m.d,h=0,G=1):d.attr?h=d.attr(c):(h=parseFloat(D(d,c))||0,"opacity"!==c&&(B="px"));G||(G=e);"string"===typeof G&&G.match("px")&&(G=G.replace(/px/g,""));K.run(h,G,B)})},animObject:z,getDeferredAnimation:function(d,e,k){var h=z(e),m=0,a=0;(k?[k]:d.series).forEach(function(d){d=z(d.options.animation);m=e&&C(e.defer)?h.defer:Math.max(m,d.duration+d.defer);a=Math.min(h.duration,d.duration)});d.renderer.forExport&&(m=0);return{defer:Math.max(0,m-a),duration:Math.min(m,a)}},setAnimation:function(e,
m){m.renderer.globalAnimation=d(e,m.options.chart.animation,!0)},stop:E}});L(g,"Core/Renderer/HTML/AST.js",[g["Core/Globals.js"],g["Core/Utilities.js"]],function(a,g){var z=a.SVG_NS,E=g.attr,C=g.createElement,D=g.css,J=g.error,t=g.isFunction,q=g.isString,n=g.objectEach,e=g.splat,d=(g=a.win.trustedTypes)&&t(g.createPolicy)&&g.createPolicy("highcharts",{createHTML:function(d){return d}}),h=d?d.createHTML(""):"";try{var m=!!(new DOMParser).parseFromString(h,"text/html")}catch(k){m=!1}t=function(){function k(d){this.nodes=
"string"===typeof d?this.parseMarkup(d):d}k.filterUserAttributes=function(d){n(d,function(e,h){var m=!0;-1===k.allowedAttributes.indexOf(h)&&(m=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(h)&&(m=q(e)&&k.allowedReferences.some(function(d){return 0===e.indexOf(d)}));m||(J(33,!1,void 0,{"Invalid attribute in config":"".concat(h)}),delete d[h]);q(e)&&d[h]&&(d[h]=e.replace(/</g,"&lt;"))});return d};k.parseStyle=function(d){return d.split(";").reduce(function(d,e){e=e.split(":").map(function(d){return d.trim()});
var h=e.shift();h&&e.length&&(d[h.replace(/-([a-z])/g,function(d){return d[1].toUpperCase()})]=e.join(":"));return d},{})};k.setElementHTML=function(d,e){d.innerHTML=k.emptyHTML;e&&(new k(e)).addToDOM(d)};k.prototype.addToDOM=function(d){function h(d,m){var r;e(d).forEach(function(d){var c=d.tagName,e=d.textContent?a.doc.createTextNode(d.textContent):void 0,f=k.bypassHTMLFiltering;if(c)if("#text"===c)var l=e;else if(-1!==k.allowedTags.indexOf(c)||f){c=a.doc.createElementNS("svg"===c?z:m.namespaceURI||
z,c);var b=d.attributes||{};n(d,function(c,f){"tagName"!==f&&"attributes"!==f&&"children"!==f&&"style"!==f&&"textContent"!==f&&(b[f]=c)});E(c,f?b:k.filterUserAttributes(b));d.style&&D(c,d.style);e&&c.appendChild(e);h(d.children||[],c);l=c}else J(33,!1,void 0,{"Invalid tagName in config":c});l&&m.appendChild(l);r=l});return r}return h(this.nodes,d)};k.prototype.parseMarkup=function(e){var h=[];e=e.trim().replace(/ style=(["'])/g," data-style=$1");if(m)e=(new DOMParser).parseFromString(d?d.createHTML(e):
e,"text/html");else{var r=C("div");r.innerHTML=e;e={body:r}}var a=function(d,e){var c=d.nodeName.toLowerCase(),h={tagName:c};"#text"===c&&(h.textContent=d.textContent||"");if(c=d.attributes){var f={};[].forEach.call(c,function(b){"data-style"===b.name?h.style=k.parseStyle(b.value):f[b.name]=b.value});h.attributes=f}if(d.childNodes.length){var l=[];[].forEach.call(d.childNodes,function(b){a(b,l)});l.length&&(h.children=l)}e.push(h)};[].forEach.call(e.body.childNodes,function(d){return a(d,h)});return h};
k.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(" ");
k.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");k.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(" ");k.emptyHTML=h;k.bypassHTMLFiltering=!1;return k}();
"";return t});L(g,"Core/FormatUtilities.js",[g["Core/Defaults.js"],g["Core/Utilities.js"]],function(a,g){function z(a,e,d,h){a=+a||0;e=+e;var m=E.lang,k=(a.toString().split(".")[1]||"").split("e")[0].length,r=a.toString().split("e"),n=e;if(-1===e)e=Math.min(k,20);else if(!J(e))e=2;else if(e&&r[1]&&0>r[1]){var g=e+ +r[1];0<=g?(r[0]=(+r[0]).toExponential(g).split("e")[0],e=g):(r[0]=r[0].split(".")[0]||0,a=20>e?(r[0]*Math.pow(10,r[1])).toFixed(e):0,r[1]=0)}g=(Math.abs(r[1]?r[0]:a)+Math.pow(10,-Math.max(e,
k)-1)).toFixed(e);k=String(q(g));var K=3<k.length?k.length%3:0;d=t(d,m.decimalPoint);h=t(h,m.thousandsSep);a=(0>a?"-":"")+(K?k.substr(0,K)+h:"");a=0>+r[1]&&!n?"0":a+k.substr(K).replace(/(\d{3})(?=\d)/g,"$1"+h);e&&(a+=d+g.slice(-e));r[1]&&0!==+a&&(a+="e"+r[1]);return a}var E=a.defaultOptions,C=a.defaultTime,D=g.getNestedProperty,J=g.isNumber,t=g.pick,q=g.pInt;return{dateFormat:function(a,e,d){return C.dateFormat(a,e,d)},format:function(a,e,d){var h="{",m=!1,k=/f$/,r=/\.([0-9])/,B=E.lang,n=d&&d.time||
C;d=d&&d.numberFormatter||z;for(var g=[];a;){var q=a.indexOf(h);if(-1===q)break;var x=a.slice(0,q);if(m){x=x.split(":");h=D(x.shift()||"",e);if(x.length&&"number"===typeof h)if(x=x.join(":"),k.test(x)){var c=parseInt((x.match(r)||["","-1"])[1],10);null!==h&&(h=d(h,c,B.decimalPoint,-1<x.indexOf(",")?B.thousandsSep:""))}else h=n.dateFormat(x,h);g.push(h)}else g.push(x);a=a.slice(q+1);h=(m=!m)?"}":"{"}g.push(a);return g.join("")},numberFormat:z}});L(g,"Core/Renderer/RendererUtilities.js",[g["Core/Utilities.js"]],
function(a){var g=a.clamp,y=a.pick,E=a.stableSort,C;(function(a){function z(a,q,n){var e=a,d=e.reducedLen||q,h=function(d,e){return(e.rank||0)-(d.rank||0)},m=function(d,e){return d.target-e.target},k,r=!0,B=[],G=0;for(k=a.length;k--;)G+=a[k].size;if(G>d){E(a,h);for(G=k=0;G<=d;)G+=a[k].size,k++;B=a.splice(k-1,a.length)}E(a,m);for(a=a.map(function(d){return{size:d.size,targets:[d.target],align:y(d.align,.5)}});r;){for(k=a.length;k--;)d=a[k],h=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/
2,d.pos=g(h-d.size*d.align,0,q-d.size);k=a.length;for(r=!1;k--;)0<k&&a[k-1].pos+a[k-1].size>a[k].pos&&(a[k-1].size+=a[k].size,a[k-1].targets=a[k-1].targets.concat(a[k].targets),a[k-1].align=.5,a[k-1].pos+a[k-1].size>q&&(a[k-1].pos=q-a[k-1].size),a.splice(k,1),r=!0)}e.push.apply(e,B);k=0;a.some(function(d){var h=0;return(d.targets||[]).some(function(){e[k].pos=d.pos+h;if("undefined"!==typeof n&&Math.abs(e[k].pos-e[k].target)>n)return e.slice(0,k+1).forEach(function(d){return delete d.pos}),e.reducedLen=
(e.reducedLen||q)-.1*q,e.reducedLen>.1*q&&z(e,q,n),!0;h+=e[k].size;k++;return!1})});E(e,m);return e}a.distribute=z})(C||(C={}));return C});L(g,"Core/Renderer/SVG/SVGElement.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Utilities.js"]],function(a,g,y,E){var z=a.animate,D=a.animObject,J=a.stop,t=y.deg2rad,q=y.doc,n=y.svg,e=y.SVG_NS,d=y.win,h=E.addEvent,m=E.attr,k=E.createElement,r=E.css,B=E.defined,G=E.erase,K=E.extend,I=E.fireEvent,x=E.isArray,
c=E.isFunction,u=E.isString,f=E.merge,l=E.objectEach,b=E.pick,v=E.pInt,A=E.syncTimeout,p=E.uniqueKey;a=function(){function a(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=e;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}a.prototype._defaultGetter=function(c){c=b(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&&(c=parseFloat(c));return c};a.prototype._defaultSetter=
function(b,c,f){f.setAttribute(c,b)};a.prototype.add=function(b){var c=this.renderer,f=this.element;b&&(this.parentGroup=b);"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&c.buildText(this);this.added=!0;if(!b||b.handleZ||this.zIndex)var d=this.zIndexSetter();d||(b?b.element:c.box).appendChild(f);if(this.onAdd)this.onAdd();return this};a.prototype.addClass=function(b,c){var f=c?"":this.attr("class")||"";b=(b||"").split(/ /g).reduce(function(b,c){-1===f.indexOf(c)&&b.push(c);return b},
f?[f]:[]).join(" ");b!==f&&this.attr("class",b);return this};a.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};a.prototype.align=function(c,f,d){var l={},e=this.renderer,w=e.alignedObjects,p,F,v;if(c){if(this.alignOptions=c,this.alignByTranslate=f,!d||u(d))this.alignTo=p=d||"renderer",G(w,this),w.push(this),d=void 0}else c=this.alignOptions,f=this.alignByTranslate,p=this.alignTo;d=b(d,e[p],"scrollablePlotBox"===p?e.plotBox:void 0,e);p=c.align;var a=
c.verticalAlign;e=(d.x||0)+(c.x||0);w=(d.y||0)+(c.y||0);"right"===p?F=1:"center"===p&&(F=2);F&&(e+=(d.width-(c.width||0))/F);l[f?"translateX":"x"]=Math.round(e);"bottom"===a?v=1:"middle"===a&&(v=2);v&&(w+=(d.height-(c.height||0))/v);l[f?"translateY":"y"]=Math.round(w);this[this.placed?"animate":"attr"](l);this.placed=!0;this.alignAttr=l;return this};a.prototype.alignSetter=function(b){var c={left:"start",center:"middle",right:"end"};c[b]&&(this.alignValue=b,this.element.setAttribute("text-anchor",
c[b]))};a.prototype.animate=function(c,f,d){var e=this,p=D(b(f,this.renderer.globalAnimation,!0));f=p.defer;b(q.hidden,q.msHidden,q.webkitHidden,!1)&&(p.duration=0);0!==p.duration?(d&&(p.complete=d),A(function(){e.element&&z(e,c,p)},f)):(this.attr(c,void 0,d||p.complete),l(c,function(b,c){p.step&&p.step.call(this,b,{prop:c,pos:1,elem:this})},this));return this};a.prototype.applyTextOutline=function(b){var c=this.element;-1!==b.indexOf("contrast")&&(b=b.replace(/contrast/g,this.renderer.getContrast(c.style.fill)));
var f=b.split(" ");b=f[f.length-1];if((f=f[0])&&"none"!==f&&y.svg){this.fakeTS=!0;f=f.replace(/(^[\d\.]+)(.*?)$/g,function(b,c,f){return 2*Number(c)+f});this.removeTextOutline();var d=q.createElementNS(e,"tspan");m(d,{"class":"highcharts-text-outline",fill:b,stroke:b,"stroke-width":f,"stroke-linejoin":"round"});b=c.querySelector("textPath")||c;[].forEach.call(b.childNodes,function(b){var c=b.cloneNode(!0);c.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(b){return c.removeAttribute(b)});
d.appendChild(c)});var l=0;[].forEach.call(b.querySelectorAll("text tspan"),function(b){l+=Number(b.getAttribute("dy"))});f=q.createElementNS(e,"tspan");f.textContent="\u200b";m(f,{x:Number(c.getAttribute("x")),dy:-l});d.appendChild(f);b.insertBefore(d,b.firstChild)}};a.prototype.attr=function(b,c,f,d){var e=this.element,w=this.symbolCustomAttribs,p,v=this,F,a;if("string"===typeof b&&"undefined"!==typeof c){var H=b;b={};b[H]=c}"string"===typeof b?v=(this[b+"Getter"]||this._defaultGetter).call(this,
b,e):(l(b,function(c,f){F=!1;d||J(this,f);this.symbolName&&-1!==w.indexOf(f)&&(p||(this.symbolAttr(b),p=!0),F=!0);!this.rotation||"x"!==f&&"y"!==f||(this.doTransform=!0);F||(a=this[f+"Setter"]||this._defaultSetter,a.call(this,c,f,e),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(f)&&this.updateShadows(f,c,a))},this),this.afterSetters());f&&f.call(this);return v};a.prototype.clip=function(b){return this.attr("clip-path",b?"url("+this.renderer.url+"#"+b.id+
")":"none")};a.prototype.crisp=function(b,c){c=c||b.strokeWidth||0;var f=Math.round(c)%2/2;b.x=Math.floor(b.x||this.x||0)+f;b.y=Math.floor(b.y||this.y||0)+f;b.width=Math.floor((b.width||this.width||0)-2*f);b.height=Math.floor((b.height||this.height||0)-2*f);B(b.strokeWidth)&&(b.strokeWidth=c);return b};a.prototype.complexColor=function(b,c,d){var e=this.renderer,v,w,a,F,h,A,H,k,O,m,u=[],r;I(this.renderer,"complexColor",{args:arguments},function(){b.radialGradient?w="radialGradient":b.linearGradient&&
(w="linearGradient");if(w){a=b[w];h=e.gradients;A=b.stops;O=d.radialReference;x(a)&&(b[w]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===w&&O&&!B(a.gradientUnits)&&(F=a,a=f(a,e.getRadialAttr(O,F),{gradientUnits:"userSpaceOnUse"}));l(a,function(b,c){"id"!==c&&u.push(c,b)});l(A,function(b){u.push(b)});u=u.join(",");if(h[u])m=h[u].attr("id");else{a.id=m=p();var T=h[u]=e.createElement(w).attr(a).add(e.defs);T.radAttr=F;T.stops=[];A.forEach(function(b){0===b[1].indexOf("rgba")?
(v=g.parse(b[1]),H=v.get("rgb"),k=v.get("a")):(H=b[1],k=1);b=e.createElement("stop").attr({offset:b[0],"stop-color":H,"stop-opacity":k}).add(T);T.stops.push(b)})}r="url("+e.url+"#"+m+")";d.setAttribute(c,r);d.gradient=u;b.toString=function(){return r}}})};a.prototype.css=function(b){var c=this.styles,d={},e=this.element,p=!c;b.color&&(b.fill=b.color);c&&l(b,function(b,f){c&&c[f]!==b&&(d[f]=b,p=!0)});if(p){c&&(b=K(c,d));if(null===b.width||"auto"===b.width)delete this.textWidth;else if("text"===e.nodeName.toLowerCase()&&
b.width)var w=this.textWidth=v(b.width);this.styles=b;w&&!n&&this.renderer.forExport&&delete b.width;var a=f(b);e.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(b){return a&&delete a[b]});r(e,a);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),b.textOutline&&this.applyTextOutline(b.textOutline))}return this};a.prototype.dashstyleSetter=function(c){var f=this["stroke-width"];"inherit"===f&&(f=1);if(c=c&&c.toLowerCase()){var d=c.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(c=d.length;c--;)d[c]=""+v(d[c])*b(f,NaN);c=d.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};a.prototype.destroy=function(){var b=this,c=b.element||{},f=b.renderer,d=c.ownerSVGElement,e=f.isSVG&&"SPAN"===c.nodeName&&b.parentGroup||void 0;c.onclick=c.onmouseout=
c.onmouseover=c.onmousemove=c.point=null;J(b);if(b.clipPath&&d){var w=b.clipPath;[].forEach.call(d.querySelectorAll("[clip-path],[CLIP-PATH]"),function(b){-1<b.getAttribute("clip-path").indexOf(w.element.id)&&b.removeAttribute("clip-path")});b.clipPath=w.destroy()}if(b.stops){for(d=0;d<b.stops.length;d++)b.stops[d].destroy();b.stops.length=0;b.stops=void 0}b.safeRemoveChild(c);for(f.styledMode||b.destroyShadows();e&&e.div&&0===e.div.childNodes.length;)c=e.parentGroup,b.safeRemoveChild(e.div),delete e.div,
e=c;b.alignTo&&G(f.alignedObjects,b);l(b,function(c,f){b[f]&&b[f].parentGroup===b&&b[f].destroy&&b[f].destroy();delete b[f]})};a.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(b){this.safeRemoveChild(b)},this);this.shadows=void 0};a.prototype.dSetter=function(b,c,f){x(b)&&("string"===typeof b[0]&&(b=this.renderer.pathToSegments(b)),this.pathArray=b,b=b.reduce(function(b,c,f){return c&&c.join?(f?b+" ":"")+c.join(" "):(c||"").toString()},""));/(NaN| {2}|^$)/.test(b)&&(b="M 0 0");
this[c]!==b&&(f.setAttribute(c,b),this[c]=b)};a.prototype.fadeOut=function(c){var f=this;f.animate({opacity:0},{duration:b(c,150),complete:function(){f.hide()}})};a.prototype.fillSetter=function(b,c,f){"string"===typeof b?f.setAttribute(c,b):b&&this.complexColor(b,c,f)};a.prototype.getBBox=function(f,d){var l=this.alignValue,e=this.element,p=this.renderer,w=this.styles,v=this.textStr,h=p.cache,A=p.cacheKeys,k=e.namespaceURI===this.SVG_NS;d=b(d,this.rotation,0);var H=p.styledMode?e&&a.prototype.getStyle.call(e,
"font-size"):w&&w.fontSize,u;if(B(v)){var m=v.toString();-1===m.indexOf("<")&&(m=m.replace(/[0-9]/g,"0"));m+=["",d,H,this.textWidth,l,w&&w.textOverflow,w&&w.fontWeight].join()}m&&!f&&(u=h[m]);if(!u){if(k||p.forExport){try{var F=this.fakeTS&&function(b){var c=e.querySelector(".highcharts-text-outline");c&&r(c,{display:b})};c(F)&&F("none");u=e.getBBox?K({},e.getBBox()):{width:e.offsetWidth,height:e.offsetHeight,x:0,y:0};c(F)&&F("")}catch(U){""}if(!u||0>u.width)u={x:0,y:0,width:0,height:0}}else u=this.htmlGetBBox();
if(p.isSVG&&(p=u.width,f=u.height,k&&(u.height=f={"11px,17":14,"13px,20":16}["".concat(H||"",",").concat(Math.round(f))]||f),d)){k=Number(e.getAttribute("y")||0)-u.y;l={right:1,center:.5}[l||0]||0;w=d*t;H=(d-90)*t;var x=p*Math.cos(w);d=p*Math.sin(w);F=Math.cos(H);w=Math.sin(H);p=u.x+l*(p-x)+k*F;H=p+x;F=H-f*F;x=F-x;k=u.y+k-l*d+k*w;l=k+d;f=l-f*w;d=f-d;u.x=Math.min(p,H,F,x);u.y=Math.min(k,l,f,d);u.width=Math.max(p,H,F,x)-u.x;u.height=Math.max(k,l,f,d)-u.y}if(m&&(""===v||0<u.height)){for(;250<A.length;)delete h[A.shift()];
h[m]||A.push(m);h[m]=u}}return u};a.prototype.getStyle=function(b){return d.getComputedStyle(this.element||this,"").getPropertyValue(b)};a.prototype.hasClass=function(b){return-1!==(""+this.attr("class")).split(" ").indexOf(b)};a.prototype.hide=function(){return this.attr({visibility:"hidden"})};a.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};a.prototype.init=function(b,c){this.element="span"===c?k(c):q.createElementNS(this.SVG_NS,c);this.renderer=b;I(this,"afterInit")};a.prototype.on=
function(b,c){var f=this.onEvents;if(f[b])f[b]();f[b]=h(this.element,b,c);return this};a.prototype.opacitySetter=function(b,c,f){this.opacity=b=Number(Number(b).toFixed(3));f.setAttribute(c,b)};a.prototype.removeClass=function(b){return this.attr("class",(""+this.attr("class")).replace(u(b)?new RegExp("(^| )".concat(b,"( |$)")):b," ").replace(/ +/g," ").trim())};a.prototype.removeTextOutline=function(){var b=this.element.querySelector("tspan.highcharts-text-outline");b&&this.safeRemoveChild(b)};a.prototype.safeRemoveChild=
function(b){var c=b.parentNode;c&&c.removeChild(b)};a.prototype.setRadialReference=function(b){var c=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=b;c&&c.radAttr&&c.animate(this.renderer.getRadialAttr(b,c.radAttr));return this};a.prototype.setTextPath=function(b,c){var d=this;c=f(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},c);var l=this.renderer.url,e=this.text||this,w=e.textPath,v=c.attributes,a=c.enabled;b=b||w&&w.path;
w&&w.undo();b&&a?(c=h(e,"afterModifyTree",function(c){if(b&&a){var f=b.attr("id");f||b.attr("id",f=p());var w={x:0,y:0};B(v.dx)&&(w.dx=v.dx,delete v.dx);B(v.dy)&&(w.dy=v.dy,delete v.dy);e.attr(w);d.attr({transform:""});d.box&&(d.box=d.box.destroy());w=c.nodes.slice(0);c.nodes.length=0;c.nodes[0]={tagName:"textPath",attributes:K(v,{"text-anchor":v.textAnchor,href:"".concat(l,"#").concat(f)}),children:w}}}),e.textPath={path:b,undo:c}):(e.attr({dx:0,dy:0}),delete e.textPath);this.added&&(e.textCache=
"",this.renderer.buildText(e));return this};a.prototype.shadow=function(b,c,f){var d=[],e=this.element,w=this.oldShadowOptions,p=this.parentGroup,v=p&&90===p.rotation;p={color:"#000000",offsetX:v?-1:1,offsetY:v?-1:1,opacity:.15,width:3};var a=!1,h;!0===b?h=p:"object"===typeof b&&(h=K(p,b));h&&(h&&w&&l(h,function(b,c){b!==w[c]&&(a=!0)}),a&&this.destroyShadows(),this.oldShadowOptions=h);if(!h)this.destroyShadows();else if(!this.shadows){p=h.opacity/h.width;var H=v?"translate(".concat(h.offsetY,", ").concat(h.offsetX,
")"):"translate(".concat(h.offsetX,", ").concat(h.offsetY,")");for(v=1;v<=h.width;v++){var u=e.cloneNode(!1);var k=2*h.width+1-2*v;m(u,{stroke:b.color||"#000000","stroke-opacity":p*v,"stroke-width":k,transform:H,fill:"none"});u.setAttribute("class",(u.getAttribute("class")||"")+" highcharts-shadow");f&&(m(u,"height",Math.max(m(u,"height")-k,0)),u.cutHeight=k);c?c.element.appendChild(u):e.parentNode&&e.parentNode.insertBefore(u,e);d.push(u)}this.shadows=d}return this};a.prototype.show=function(b){void 0===
b&&(b=!0);return this.attr({visibility:b?"inherit":"visible"})};a.prototype["stroke-widthSetter"]=function(b,c,f){this[c]=b;f.setAttribute(c,b)};a.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var b=this.getStyle("stroke-width"),c=0;if(b.indexOf("px")===b.length-2)c=v(b);else if(""!==b){var f=q.createElementNS(e,"rect");m(f,{width:b,"stroke-width":0});this.element.parentNode.appendChild(f);c=f.getBBox().width;f.parentNode.removeChild(f)}return c};a.prototype.symbolAttr=
function(c){var f=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(d){f[d]=b(c[d],f[d])});f.attr({d:f.renderer.symbols[f.symbolName](f.x,f.y,f.width,f.height,f)})};a.prototype.textSetter=function(b){b!==this.textStr&&(delete this.textPxLength,this.textStr=b,this.added&&this.renderer.buildText(this))};a.prototype.titleSetter=function(c){var f=this.element,d=f.getElementsByTagName("title")[0]||q.createElementNS(this.SVG_NS,"title");f.insertBefore?f.insertBefore(d,
f.firstChild):f.appendChild(d);d.textContent=String(b(c,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")};a.prototype.toFront=function(){var b=this.element;b.parentNode.appendChild(b);return this};a.prototype.translate=function(b,c){return this.attr({translateX:b,translateY:c})};a.prototype.updateShadows=function(b,c,f){var d=this.shadows;if(d)for(var e=d.length;e--;)f.call(d[e],"height"===b?Math.max(c-(d[e].cutHeight||0),0):"d"===b?this.d:c,b,d[e])};a.prototype.updateTransform=
function(){var c=this.element,f=this.matrix,d=this.rotation;d=void 0===d?0:d;var e=this.scaleX,l=this.scaleY,w=this.translateX,p=this.translateY;w=["translate("+(void 0===w?0:w)+","+(void 0===p?0:p)+")"];B(f)&&w.push("matrix("+f.join(",")+")");d&&w.push("rotate("+d+" "+b(this.rotationOriginX,c.getAttribute("x"),0)+" "+b(this.rotationOriginY,c.getAttribute("y")||0)+")");(B(e)||B(l))&&w.push("scale("+b(e,1)+" "+b(l,1)+")");w.length&&!(this.text||this).textPath&&c.setAttribute("transform",w.join(" "))};
a.prototype.visibilitySetter=function(b,c,f){"inherit"===b?f.removeAttribute(c):this[c]!==b&&f.setAttribute(c,b);this[c]=b};a.prototype.xGetter=function(b){"circle"===this.element.nodeName&&("x"===b?b="cx":"y"===b&&(b="cy"));return this._defaultGetter(b)};a.prototype.zIndexSetter=function(b,c){var f=this.renderer,d=this.parentGroup,e=(d||f).element||f.box,w=this.element;f=e===f.box;var l=!1;var p=this.added;var a;B(b)?(w.setAttribute("data-z-index",b),b=+b,this[c]===b&&(p=!1)):B(this[c])&&w.removeAttribute("data-z-index");
this[c]=b;if(p){(b=this.zIndex)&&d&&(d.handleZ=!0);c=e.childNodes;for(a=c.length-1;0<=a&&!l;a--){d=c[a];p=d.getAttribute("data-z-index");var h=!B(p);if(d!==w)if(0>b&&h&&!f&&!a)e.insertBefore(w,c[a]),l=!0;else if(v(p)<=b||h&&(!B(b)||0<=b))e.insertBefore(w,c[a+1]||null),l=!0}l||(e.insertBefore(w,c[f?3:0]||null),l=!0)}return l};return a}();a.prototype.strokeSetter=a.prototype.fillSetter;a.prototype.yGetter=a.prototype.xGetter;a.prototype.matrixSetter=a.prototype.rotationOriginXSetter=a.prototype.rotationOriginYSetter=
a.prototype.rotationSetter=a.prototype.scaleXSetter=a.prototype.scaleYSetter=a.prototype.translateXSetter=a.prototype.translateYSetter=a.prototype.verticalAlignSetter=function(b,c){this[c]=b;this.doTransform=!0};"";return a});L(g,"Core/Renderer/RendererRegistry.js",[g["Core/Globals.js"]],function(a){var g;(function(g){g.rendererTypes={};var z;g.getRendererType=function(a){void 0===a&&(a=z);return g.rendererTypes[a]||g.rendererTypes[z]};g.registerRendererType=function(y,D,J){g.rendererTypes[y]=D;if(!z||
J)z=y,a.Renderer=D}})(g||(g={}));return g});L(g,"Core/Renderer/SVG/SVGLabel.js",[g["Core/Renderer/SVG/SVGElement.js"],g["Core/Utilities.js"]],function(a,g){var z=this&&this.__extends||function(){var a=function(e,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,e){d.__proto__=e}||function(d,e){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(d[a]=e[a])};return a(e,d)};return function(e,d){function h(){this.constructor=e}if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+
String(d)+" is not a constructor or null");a(e,d);e.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)}}(),E=g.defined,C=g.extend,D=g.isNumber,J=g.merge,t=g.pick,q=g.removeEvent;return function(g){function e(d,a,m,k,r,B,n,q,I,x){var c=g.call(this)||this;c.paddingLeftSetter=c.paddingSetter;c.paddingRightSetter=c.paddingSetter;c.init(d,"g");c.textStr=a;c.x=m;c.y=k;c.anchorX=B;c.anchorY=n;c.baseline=I;c.className=x;c.addClass("button"===x?"highcharts-no-tooltip":"highcharts-label");
x&&c.addClass("highcharts-"+x);c.text=d.text(void 0,0,0,q).attr({zIndex:1});var h;"string"===typeof r&&((h=/^url\((.*?)\)$/.test(r))||c.renderer.symbols[r])&&(c.symbolKey=r);c.bBox=e.emptyBBox;c.padding=3;c.baselineOffset=0;c.needsBox=d.styledMode||h;c.deferredAttr={};c.alignFactor=0;return c}z(e,g);e.prototype.alignSetter=function(d){d={left:0,center:.5,right:1}[d];d!==this.alignFactor&&(this.alignFactor=d,this.bBox&&D(this.xSetting)&&this.attr({x:this.xSetting}))};e.prototype.anchorXSetter=function(d,
e){this.anchorX=d;this.boxAttr(e,Math.round(d)-this.getCrispAdjust()-this.xSetting)};e.prototype.anchorYSetter=function(d,e){this.anchorY=d;this.boxAttr(e,d-this.ySetting)};e.prototype.boxAttr=function(d,e){this.box?this.box.attr(d,e):this.deferredAttr[d]=e};e.prototype.css=function(d){if(d){var h={};d=J(d);e.textProps.forEach(function(e){"undefined"!==typeof d[e]&&(h[e]=d[e],delete d[e])});this.text.css(h);"fontSize"in h||"fontWeight"in h?this.updateTextPadding():("width"in h||"textOverflow"in h)&&
this.updateBoxSize()}return a.prototype.css.call(this,d)};e.prototype.destroy=function(){q(this.element,"mouseenter");q(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());a.prototype.destroy.call(this)};e.prototype.fillSetter=function(d,e){d&&(this.needsBox=!0);this.fill=d;this.boxAttr(e,d)};e.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var d=this.padding,e=t(this.paddingLeft,d);return{width:this.width,
height:this.height,x:this.bBox.x-e,y:this.bBox.y-d}};e.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};e.prototype.heightSetter=function(d){this.heightSetting=d};e.prototype.onAdd=function(){this.text.add(this);this.attr({text:t(this.textStr,""),x:this.x||0,y:this.y||0});this.box&&E(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};e.prototype.paddingSetter=
function(d,e){D(d)?d!==this[e]&&(this[e]=d,this.updateTextPadding()):this[e]=void 0};e.prototype.rSetter=function(d,e){this.boxAttr(e,d)};e.prototype.shadow=function(d){d&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(d));return this};e.prototype.strokeSetter=function(d,e){this.stroke=d;this.boxAttr(e,d)};e.prototype["stroke-widthSetter"]=function(d,e){d&&(this.needsBox=!0);this["stroke-width"]=d;this.boxAttr(e,d)};e.prototype["text-alignSetter"]=function(d){this.textAlign=
d};e.prototype.textSetter=function(d){"undefined"!==typeof d&&this.text.attr({text:d});this.updateTextPadding()};e.prototype.updateBoxSize=function(){var d=this.text,a=d.element.style,m={},k=this.padding,r=this.bBox=D(this.widthSetting)&&D(this.heightSetting)&&!this.textAlign||!E(d.textStr)?e.emptyBBox:d.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||r.height||0)+2*k;a=this.renderer.fontMetrics(a&&a.fontSize,d);this.baselineOffset=k+Math.min((this.text.firstLineMetrics||
a).b,r.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-a.h)/2);this.needsBox&&!d.textPath&&(this.box||(d=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),d.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),d.add(this)),d=this.getCrispAdjust(),m.x=d,m.y=(this.baseline?-this.baselineOffset:0)+d,m.width=Math.round(this.width),m.height=Math.round(this.height),this.box.attr(C(m,
this.deferredAttr)),this.deferredAttr={})};e.prototype.updateTextPadding=function(){var d=this.text;if(!d.textPath){this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,a=t(this.paddingLeft,this.padding);E(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(a+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(a!==d.x||e!==d.y)d.attr("x",a),d.hasBoxWidthChanged&&(this.bBox=d.getBBox(!0)),"undefined"!==typeof e&&d.attr("y",e);d.x=
a;d.y=e}};e.prototype.widthSetter=function(d){this.widthSetting=D(d)?d:void 0};e.prototype.getPaddedWidth=function(){var d=this.padding,e=t(this.paddingLeft,d);d=t(this.paddingRight,d);return(this.widthSetting||this.bBox.width||0)+e+d};e.prototype.xSetter=function(d){this.x=d;this.alignFactor&&(d-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(d);this.attr("translateX",this.xSetting)};e.prototype.ySetter=function(d){this.ySetting=this.y=Math.round(d);this.attr("translateY",
this.ySetting)};e.emptyBBox={width:0,height:0,x:0,y:0};e.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return e}(a)});L(g,"Core/Renderer/SVG/Symbols.js",[g["Core/Utilities.js"]],function(a){function g(a,g,n,e,d){var h=[];if(d){var m=d.start||0,k=J(d.r,n);n=J(d.r,e||n);var r=(d.end||0)-.001;e=d.innerR;var B=J(d.open,.001>Math.abs((d.end||0)-m-2*Math.PI)),G=Math.cos(m),q=Math.sin(m),I=Math.cos(r),x=
Math.sin(r);m=J(d.longArc,.001>r-m-Math.PI?0:1);h.push(["M",a+k*G,g+n*q],["A",k,n,0,m,J(d.clockwise,1),a+k*I,g+n*x]);C(e)&&h.push(B?["M",a+e*I,g+e*x]:["L",a+e*I,g+e*x],["A",e,e,0,m,C(d.clockwise)?1-d.clockwise:0,a+e*G,g+e*q]);B||h.push(["Z"])}return h}function y(a,g,n,e,d){return d&&d.r?E(a,g,n,e,d):[["M",a,g],["L",a+n,g],["L",a+n,g+e],["L",a,g+e],["Z"]]}function E(a,g,n,e,d){d=d&&d.r||0;return[["M",a+d,g],["L",a+n-d,g],["C",a+n,g,a+n,g,a+n,g+d],["L",a+n,g+e-d],["C",a+n,g+e,a+n,g+e,a+n-d,g+e],["L",
a+d,g+e],["C",a,g+e,a,g+e,a,g+e-d],["L",a,g+d],["C",a,g,a,g,a+d,g]]}var C=a.defined,D=a.isNumber,J=a.pick;return{arc:g,callout:function(a,g,n,e,d){var h=Math.min(d&&d.r||0,n,e),m=h+6,k=d&&d.anchorX;d=d&&d.anchorY||0;var r=E(a,g,n,e,{r:h});if(!D(k))return r;a+k>=n?d>g+m&&d<g+e-m?r.splice(3,1,["L",a+n,d-6],["L",a+n+6,d],["L",a+n,d+6],["L",a+n,g+e-h]):r.splice(3,1,["L",a+n,e/2],["L",k,d],["L",a+n,e/2],["L",a+n,g+e-h]):0>=a+k?d>g+m&&d<g+e-m?r.splice(7,1,["L",a,d+6],["L",a-6,d],["L",a,d-6],["L",a,g+h]):
r.splice(7,1,["L",a,e/2],["L",k,d],["L",a,e/2],["L",a,g+h]):d&&d>e&&k>a+m&&k<a+n-m?r.splice(5,1,["L",k+6,g+e],["L",k,g+e+6],["L",k-6,g+e],["L",a+h,g+e]):d&&0>d&&k>a+m&&k<a+n-m&&r.splice(1,1,["L",k-6,g],["L",k,g-6],["L",k+6,g],["L",n-h,g]);return r},circle:function(a,q,n,e){return g(a+n/2,q+e/2,n/2,e/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(a,g,n,e){return[["M",a+n/2,g],["L",a+n,g+e/2],["L",a+n/2,g+e],["L",a,g+e/2],["Z"]]},rect:y,roundedRect:E,square:y,triangle:function(a,g,
n,e){return[["M",a+n/2,g],["L",a+n,g+e],["L",a,g+e],["Z"]]},"triangle-down":function(a,g,n,e){return[["M",a,g],["L",a+n,g],["L",a+n/2,g+e],["Z"]]}}});L(g,"Core/Renderer/SVG/TextBuilder.js",[g["Core/Renderer/HTML/AST.js"],g["Core/Globals.js"],g["Core/Utilities.js"]],function(a,g,y){var z=g.doc,C=g.SVG_NS,D=g.win,J=y.attr,t=y.extend,q=y.fireEvent,n=y.isString,e=y.objectEach,d=y.pick;return function(){function h(d){var e=d.styles;this.renderer=d.renderer;this.svgElement=d;this.width=d.textWidth;this.textLineHeight=
e&&e.lineHeight;this.textOutline=e&&e.textOutline;this.ellipsis=!(!e||"ellipsis"!==e.textOverflow);this.noWrap=!(!e||"nowrap"!==e.whiteSpace);this.fontSize=e&&e.fontSize}h.prototype.buildSVG=function(){var e=this.svgElement,h=e.element,r=e.renderer,g=d(e.textStr,"").toString(),G=-1!==g.indexOf("<"),K=h.childNodes;r=this.width&&!e.added&&r.box;var I=/<br.*?>/g,x=[g,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(x!==e.textCache){e.textCache=x;delete e.actualWidth;
for(x=K.length;x--;)h.removeChild(K[x]);G||this.ellipsis||this.width||e.textPath||-1!==g.indexOf(" ")&&(!this.noWrap||I.test(g))?""!==g&&(r&&r.appendChild(h),g=new a(g),this.modifyTree(g.nodes),g.addToDOM(h),this.modifyDOM(),this.ellipsis&&-1!==(h.textContent||"").indexOf("\u2026")&&e.attr("title",this.unescapeEntities(e.textStr||"",["&lt;","&gt;"])),r&&r.removeChild(h)):h.appendChild(z.createTextNode(this.unescapeEntities(g)));n(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}};
h.prototype.modifyDOM=function(){var d=this,e=this.svgElement,a=J(e.element,"x");e.firstLineMetrics=void 0;for(var h;h=e.element.firstChild;)if(/^[\s\u200B]*$/.test(h.textContent||" "))e.element.removeChild(h);else break;[].forEach.call(e.element.querySelectorAll("tspan.highcharts-br"),function(h,c){h.nextSibling&&h.previousSibling&&(0===c&&1===h.previousSibling.nodeType&&(e.firstLineMetrics=e.renderer.fontMetrics(void 0,h.previousSibling)),J(h,{dy:d.getLineHeight(h.nextSibling),x:a}))});var g=this.width||
0;if(g){var n=function(h,c){var u=h.textContent||"",f=u.replace(/([^\^])-/g,"$1- ").split(" "),l=!d.noWrap&&(1<f.length||1<e.element.childNodes.length),b=d.getLineHeight(c),v=0,A=e.actualWidth;if(d.ellipsis)u&&d.truncate(h,u,void 0,0,Math.max(0,g-parseInt(d.fontSize||12,10)),function(b,c){return b.substring(0,c)+"\u2026"});else if(l){u=[];for(l=[];c.firstChild&&c.firstChild!==h;)l.push(c.firstChild),c.removeChild(c.firstChild);for(;f.length;)f.length&&!d.noWrap&&0<v&&(u.push(h.textContent||""),h.textContent=
f.join(" ").replace(/- /g,"-")),d.truncate(h,void 0,f,0===v?A||0:0,g,function(b,c){return f.slice(0,c).join(" ").replace(/- /g,"-")}),A=e.actualWidth,v++;l.forEach(function(b){c.insertBefore(b,h)});u.forEach(function(f){c.insertBefore(z.createTextNode(f),h);f=z.createElementNS(C,"tspan");f.textContent="\u200b";J(f,{dy:b,x:a});c.insertBefore(f,h)})}},I=function(d){[].slice.call(d.childNodes).forEach(function(c){c.nodeType===D.Node.TEXT_NODE?n(c,d):(-1!==c.className.baseVal.indexOf("highcharts-br")&&
(e.actualWidth=0),I(c))})};I(e.element)}};h.prototype.getLineHeight=function(d){var e;d=d.nodeType===D.Node.TEXT_NODE?d.parentElement:d;this.renderer.styledMode||(e=d&&/(px|em)$/.test(d.style.fontSize)?d.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e,d||this.svgElement.element).h};h.prototype.modifyTree=function(d){var e=this,a=function(h,k){var r=h.attributes;r=void 0===r?{}:r;var g=
h.children,m=h.style;m=void 0===m?{}:m;var c=h.tagName,u=e.renderer.styledMode;if("b"===c||"strong"===c)u?r["class"]="highcharts-strong":m.fontWeight="bold";else if("i"===c||"em"===c)u?r["class"]="highcharts-emphasized":m.fontStyle="italic";m&&m.color&&(m.fill=m.color);"br"===c?(r["class"]="highcharts-br",h.textContent="\u200b",(k=d[k+1])&&k.textContent&&(k.textContent=k.textContent.replace(/^ +/gm,""))):"a"===c&&g&&g.some(function(c){return"#text"===c.tagName})&&(h.children=[{children:g,tagName:"tspan"}]);
"#text"!==c&&"a"!==c&&(h.tagName="tspan");t(h,{attributes:r,style:m});g&&g.filter(function(c){return"#text"!==c.tagName}).forEach(a)};d.forEach(a);q(this.svgElement,"afterModifyTree",{nodes:d})};h.prototype.truncate=function(d,e,a,h,g,n){var k=this.svgElement,m=k.renderer,c=k.rotation,u=[],f=a?1:0,l=(e||a||"").length,b=l,v,A=function(b,c){c=c||b;var f=d.parentNode;if(f&&"undefined"===typeof u[c])if(f.getSubStringLength)try{u[c]=h+f.getSubStringLength(0,a?c+1:c)}catch(Q){""}else m.getSpanWidth&&(d.textContent=
n(e||a,b),u[c]=h+m.getSpanWidth(k,d));return u[c]};k.rotation=0;var p=A(d.textContent.length);if(h+p>g){for(;f<=l;)b=Math.ceil((f+l)/2),a&&(v=n(a,b)),p=A(b,v&&v.length-1),f===l?f=l+1:p>g?l=b-1:f=b;0===l?d.textContent="":e&&l===e.length-1||(d.textContent=v||n(e||a,b))}a&&a.splice(0,b);k.actualWidth=p;k.rotation=c};h.prototype.unescapeEntities=function(d,a){e(this.renderer.escapes,function(e,h){a&&-1!==a.indexOf(e)||(d=d.toString().replace(new RegExp(e,"g"),h))});return d};return h}()});L(g,"Core/Renderer/SVG/SVGRenderer.js",
[g["Core/Renderer/HTML/AST.js"],g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Renderer/SVG/SVGLabel.js"],g["Core/Renderer/SVG/Symbols.js"],g["Core/Renderer/SVG/TextBuilder.js"],g["Core/Utilities.js"]],function(a,g,y,E,C,D,J,t,q){var n=y.charts,e=y.deg2rad,d=y.doc,h=y.isFirefox,m=y.isMS,k=y.isWebKit,r=y.noop,B=y.SVG_NS,G=y.symbolSizes,K=y.win,I=q.addEvent,x=q.attr,c=q.createElement,u=q.css,f=q.defined,l=q.destroyObjectProperties,
b=q.extend,v=q.isArray,A=q.isNumber,p=q.isObject,M=q.isString,F=q.merge,N=q.pick,Q=q.pInt,z=q.uniqueKey,Y;y=function(){function w(b,c,f,d,e,w,a){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(b,c,f,d,e,w,a)}w.prototype.init=function(b,c,f,e,w,a,l){var H=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),p=
H.element;l||H.css(this.getStyle(e));b.appendChild(p);x(b,"dir","ltr");-1===b.innerHTML.indexOf("xmlns")&&x(p,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=p;this.boxWrapper=H;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 10.3.3"));this.defs=this.createElement("defs").add();this.allowHTML=a;this.forExport=w;this.styledMode=l;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(c,
f,!1);var v;h&&b.getBoundingClientRect&&(c=function(){u(b,{left:0,top:0});v=b.getBoundingClientRect();u(b,{left:Math.ceil(v.left)-v.left+"px",top:Math.ceil(v.top)-v.top+"px"})},c(),this.unSubPixelFix=I(K,"resize",c))};w.prototype.definition=function(b){return(new a([b])).addToDOM(this.defs.element)};w.prototype.getReferenceURL=function(){if((h||k)&&d.getElementsByTagName("base").length){if(!f(Y)){var b=z();b=(new a([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",
attributes:{id:b},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(b,")"),fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(d.body);u(b,{position:"fixed",top:0,left:0,zIndex:9E5});var c=d.elementFromPoint(6,6);Y="hitme"===(c&&c.id);d.body.removeChild(b)}if(Y)return K.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};w.prototype.getStyle=function(c){return this.style=
b({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};w.prototype.setStyle=function(b){this.boxWrapper.css(this.getStyle(b))};w.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};w.prototype.destroy=function(){var b=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();l(this.gradients||{});this.gradients=null;b&&(this.defs=b.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};w.prototype.createElement=
function(b){var c=new this.Element;c.init(this,b);return c};w.prototype.getRadialAttr=function(b,c){return{cx:b[0]-b[2]/2+(c.cx||0)*b[2],cy:b[1]-b[2]/2+(c.cy||0)*b[2],r:(c.r||0)*b[2]}};w.prototype.buildText=function(b){(new t(b)).buildSVG()};w.prototype.getContrast=function(b){b=g.parse(b).rgba.map(function(b){b/=255;return.03928>=b?b/12.92:Math.pow((b+.055)/1.055,2.4)});b=.2126*b[0]+.7152*b[1]+.0722*b[2];return 1.05/(b+.05)>(b+.05)/.05?"#FFFFFF":"#000000"};w.prototype.button=function(c,f,d,e,w,l,
v,h,u,A){void 0===w&&(w={});var H=this.label(c,f,d,u,void 0,void 0,A,void 0,"button"),k=this.styledMode;c=w.states||{};var O=0;w=F(w);delete w.states;var g=F({color:"#333333",cursor:"pointer",fontWeight:"normal"},w.style);delete w.style;var r=a.filterUserAttributes(w);H.attr(F({padding:8,r:2},r));if(!k){r=F({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},r);l=F(r,{fill:"#e6e6e6"},a.filterUserAttributes(l||c.hover||{}));var T=l.style;delete l.style;v=F(r,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},
a.filterUserAttributes(v||c.select||{}));var P=v.style;delete v.style;h=F(r,{style:{color:"#cccccc"}},a.filterUserAttributes(h||c.disabled||{}));var x=h.style;delete h.style}I(H.element,m?"mouseover":"mouseenter",function(){3!==O&&H.setState(1)});I(H.element,m?"mouseout":"mouseleave",function(){3!==O&&H.setState(O)});H.setState=function(b){1!==b&&(H.state=O=b);H.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][b||
0]);k||(H.attr([r,l,v,h][b||0]),b=[g,T,P,x][b||0],p(b)&&H.css(b))};k||(H.attr(r).css(b({cursor:"default"},g)),A&&H.text.css({pointerEvents:"none"}));return H.on("touchstart",function(b){return b.stopPropagation()}).on("click",function(b){3!==O&&e.call(H,b)})};w.prototype.crispLine=function(b,c,d){void 0===d&&(d="round");var e=b[0],w=b[1];f(e[1])&&e[1]===w[1]&&(e[1]=w[1]=Math[d](e[1])-c%2/2);f(e[2])&&e[2]===w[2]&&(e[2]=w[2]=Math[d](e[2])+c%2/2);return b};w.prototype.path=function(c){var f=this.styledMode?
{}:{fill:"none"};v(c)?f.d=c:p(c)&&b(f,c);return this.createElement("path").attr(f)};w.prototype.circle=function(b,c,f){b=p(b)?b:"undefined"===typeof b?{}:{x:b,y:c,r:f};c=this.createElement("circle");c.xSetter=c.ySetter=function(b,c,f){f.setAttribute("c"+c,b)};return c.attr(b)};w.prototype.arc=function(b,c,f,d,e,w){p(b)?(d=b,c=d.y,f=d.r,b=d.x):d={innerR:d,start:e,end:w};b=this.symbol("arc",b,c,f,f,d);b.r=f;return b};w.prototype.rect=function(b,c,f,d,e,w){e=p(b)?b.r:e;var a=this.createElement("rect");
b=p(b)?b:"undefined"===typeof b?{}:{x:b,y:c,width:Math.max(f,0),height:Math.max(d,0)};this.styledMode||("undefined"!==typeof w&&(b["stroke-width"]=w,b=a.crisp(b)),b.fill="none");e&&(b.r=e);a.rSetter=function(b,c,f){a.r=b;x(f,{rx:b,ry:b})};a.rGetter=function(){return a.r||0};return a.attr(b)};w.prototype.setSize=function(b,c,f){this.width=b;this.height=c;this.boxWrapper.animate({width:b,height:c},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:N(f,
!0)?void 0:0});this.alignElements()};w.prototype.g=function(b){var c=this.createElement("g");return b?c.attr({"class":"highcharts-"+b}):c};w.prototype.image=function(b,c,f,d,e,w){var a={preserveAspectRatio:"none"},l=function(b,c){b.setAttributeNS?b.setAttributeNS("http://www.w3.org/1999/xlink","href",c):b.setAttribute("hc-svg-href",c)};A(c)&&(a.x=c);A(f)&&(a.y=f);A(d)&&(a.width=d);A(e)&&(a.height=e);var H=this.createElement("image").attr(a);c=function(c){l(H.element,b);w.call(H,c)};w?(l(H.element,
"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),f=new K.Image,I(f,"load",c),f.src=b,f.complete&&c({})):l(H.element,b);return H};w.prototype.symbol=function(e,w,a,l,H,p){var v=this,h=/^url\((.*?)\)$/,A=h.test(e),k=!A&&(this.symbols[e]?e:"circle"),g=k&&this.symbols[k],r;if(g){"number"===typeof w&&(r=g.call(this.symbols,Math.round(w||0),Math.round(a||0),l||0,H||0,p));var m=this.path(r);v.styledMode||m.attr("fill","none");b(m,{symbolName:k||void 0,x:w,y:a,width:l,height:H});
p&&b(m,p)}else if(A){var P=e.match(h)[1];var T=m=this.image(P);T.imgwidth=N(G[P]&&G[P].width,p&&p.width);T.imgheight=N(G[P]&&G[P].height,p&&p.height);var M=function(b){return b.attr({width:b.width,height:b.height})};["width","height"].forEach(function(b){T[b+"Setter"]=function(b,c){this[c]=b;b=this.alignByTranslate;var d=this.element,e=this.width,w=this.height,a=this.imgwidth,l=this.imgheight,H=this["img"+c];if(f(H)){var v=1;p&&"within"===p.backgroundSize&&e&&w?(v=Math.min(e/a,w/l),H=Math.round(H*
v),x(d,{width:Math.round(a*v),height:Math.round(l*v)})):d&&d.setAttribute(c,H);b||this.translate(((e||0)-H*v)/2,((w||0)-H*v)/2)}}});f(w)&&T.attr({x:w,y:a});T.isImg=!0;f(T.imgwidth)&&f(T.imgheight)?M(T):(T.attr({width:0,height:0}),c("img",{onload:function(){var b=n[v.chartIndex];0===this.width&&(u(this,{position:"absolute",top:"-999em"}),d.body.appendChild(this));G[P]={width:this.width,height:this.height};T.imgwidth=this.width;T.imgheight=this.height;T.element&&M(T);this.parentNode&&this.parentNode.removeChild(this);
v.imgCount--;if(!v.imgCount&&b&&!b.hasLoaded)b.onload()},src:P}),this.imgCount++)}return m};w.prototype.clipRect=function(b,c,f,d){var e=z()+"-",w=this.createElement("clipPath").attr({id:e}).add(this.defs);b=this.rect(b,c,f,d,0).add(w);b.id=e;b.clipPath=w;b.count=0;return b};w.prototype.text=function(b,c,d,e){var w={};if(e&&(this.allowHTML||!this.forExport))return this.html(b,c,d);w.x=Math.round(c||0);d&&(w.y=Math.round(d));f(b)&&(w.text=b);b=this.createElement("text").attr(w);if(!e||this.forExport&&
!this.allowHTML)b.xSetter=function(b,c,f){for(var d=f.getElementsByTagName("tspan"),e=f.getAttribute(c),w=0,a;w<d.length;w++)a=d[w],a.getAttribute(c)===e&&a.setAttribute(c,b);f.setAttribute(c,b)};return b};w.prototype.fontMetrics=function(b,c){b=!this.styledMode&&/px/.test(b)||!K.getComputedStyle?b||c&&c.style&&c.style.fontSize||this.style&&this.style.fontSize:c&&C.prototype.getStyle.call(c,"font-size");b=/px/.test(b)?Q(b):12;c=24>b?b+3:Math.round(1.2*b);return{h:c,b:Math.round(.8*c),f:b}};w.prototype.rotCorr=
function(b,c,f){var d=b;c&&f&&(d=Math.max(d*Math.cos(c*e),4));return{x:-b/3*Math.sin(c*e),y:d}};w.prototype.pathToSegments=function(b){for(var c=[],f=[],d={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},e=0;e<b.length;e++)M(f[0])&&A(b[e])&&f.length===d[f[0].toUpperCase()]&&b.splice(e,0,f[0].replace("M","L").replace("m","l")),"string"===typeof b[e]&&(f.length&&c.push(f.slice(0)),f.length=0),f.push(b[e]);c.push(f.slice(0));return c};w.prototype.label=function(b,c,f,d,e,w,a,l,p){return new D(this,b,c,f,d,e,w,
a,l,p)};w.prototype.alignElements=function(){this.alignedObjects.forEach(function(b){return b.align()})};return w}();b(y.prototype,{Element:C,SVG_NS:B,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:J,draw:r});E.registerRendererType("svg",y,!0);"";return y});L(g,"Core/Renderer/HTML/HTMLElement.js",[g["Core/Globals.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Utilities.js"]],function(a,g,y){var z=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(d,e){d.__proto__=e}||function(d,e){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(d[a]=e[a])};return d(e,a)};return function(e,a){function h(){this.constructor=e}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(e,a);e.prototype=null===a?Object.create(a):(h.prototype=a.prototype,new h)}}(),C=a.isFirefox,D=a.isMS,J=a.isWebKit,t=a.win,q=y.css,n=y.defined,e=y.extend,d=y.pick,
h=y.pInt;return function(a){function k(){return null!==a&&a.apply(this,arguments)||this}z(k,a);k.compose=function(d){if(-1===k.composedClasses.indexOf(d)){k.composedClasses.push(d);var e=k.prototype,a=d.prototype;a.getSpanCorrection=e.getSpanCorrection;a.htmlCss=e.htmlCss;a.htmlGetBBox=e.htmlGetBBox;a.htmlUpdateTransform=e.htmlUpdateTransform;a.setSpanRotation=e.setSpanRotation}return d};k.prototype.getSpanCorrection=function(d,e,a){this.xCorr=-d*a;this.yCorr=-e};k.prototype.htmlCss=function(a){var h=
"SPAN"===this.element.tagName&&a&&"width"in a,k=d(h&&a.width,void 0);if(h){delete a.width;this.textWidth=k;var g=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=e(this.styles,a);q(this.element,a);g&&this.htmlUpdateTransform();return this};k.prototype.htmlGetBBox=function(){var d=this.element;return{x:d.offsetLeft,y:d.offsetTop,width:d.offsetWidth,height:d.offsetHeight}};k.prototype.htmlUpdateTransform=function(){if(this.added){var d=this.renderer,e=this.element,
a=this.translateX||0,k=this.translateY||0,g=this.x||0,m=this.y||0,c=this.textAlign||"left",u={left:0,center:.5,right:1}[c],f=this.styles;f=f&&f.whiteSpace;q(e,{marginLeft:a,marginTop:k});!d.styledMode&&this.shadows&&this.shadows.forEach(function(b){q(b,{marginLeft:a+1,marginTop:k+1})});this.inverted&&[].forEach.call(e.childNodes,function(b){d.invertChild(b,e)});if("SPAN"===e.tagName){var l=this.rotation,b=this.textWidth&&h(this.textWidth),v=[l,c,e.innerHTML,this.textWidth,this.textAlign].join(),A=
void 0;A=!1;if(b!==this.oldTextWidth){if(this.textPxLength)var p=this.textPxLength;else q(e,{width:"",whiteSpace:f||"nowrap"}),p=e.offsetWidth;(b>this.oldTextWidth||p>b)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(q(e,{width:p>b||l?b+"px":"auto",display:"block",whiteSpace:f||"normal"}),this.oldTextWidth=b,A=!0)}this.hasBoxWidthChanged=A;v!==this.cTT&&(A=d.fontMetrics(e.style.fontSize,e).b,!n(l)||l===(this.oldRotation||0)&&c===this.oldAlign||this.setSpanRotation(l,
u,A),this.getSpanCorrection(!n(l)&&this.textPxLength||e.offsetWidth,A,u,l,c));q(e,{left:g+(this.xCorr||0)+"px",top:m+(this.yCorr||0)+"px"});this.cTT=v;this.oldRotation=l;this.oldAlign=c}}else this.alignOnAdd=!0};k.prototype.setSpanRotation=function(d,e,a){var h={},k=D&&!/Edge/.test(t.navigator.userAgent)?"-ms-transform":J?"-webkit-transform":C?"MozTransform":t.opera?"-o-transform":void 0;k&&(h[k]=h.transform="rotate("+d+"deg)",h[k+(C?"Origin":"-origin")]=h.transformOrigin=100*e+"% "+a+"px",q(this.element,
h))};k.composedClasses=[];return k}(g)});L(g,"Core/Renderer/HTML/HTMLRenderer.js",[g["Core/Renderer/HTML/AST.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Renderer/SVG/SVGRenderer.js"],g["Core/Utilities.js"]],function(a,g,y,E){var z=this&&this.__extends||function(){var a=function(e,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,e){d.__proto__=e}||function(d,e){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(d[a]=e[a])};return a(e,d)};return function(e,d){function h(){this.constructor=
e}if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");a(e,d);e.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)}}(),D=E.attr,J=E.createElement,t=E.extend,q=E.pick;return function(n){function e(){return null!==n&&n.apply(this,arguments)||this}z(e,n);e.compose=function(d){-1===e.composedClasses.indexOf(d)&&(e.composedClasses.push(d),d.prototype.html=e.prototype.html);return d};e.prototype.html=function(d,e,m){var h=
this.createElement("span"),r=h.element,n=h.renderer,G=n.isSVG,K=function(d,e){["opacity","visibility"].forEach(function(c){d[c+"Setter"]=function(a,f,l){var b=d.div?d.div.style:e;g.prototype[c+"Setter"].call(this,a,f,l);b&&(b[f]=a)}});d.addedSetters=!0};h.textSetter=function(d){d!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a.setElementHTML(this.element,q(d,"")),this.textStr=d,h.doTransform=!0)};G&&K(h,h.element.style);h.xSetter=h.ySetter=h.alignSetter=h.rotationSetter=function(d,e){"align"===
e?h.alignValue=h.textAlign=d:h[e]=d;h.doTransform=!0};h.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};h.attr({text:d,x:Math.round(e),y:Math.round(m)}).css({position:"absolute"});n.styledMode||h.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});r.style.whiteSpace="nowrap";h.css=h.htmlCss;G&&(h.add=function(d){var e=n.box.parentNode,c=[];if(this.parentGroup=d){var a=d.div;if(!a){for(;d;)c.push(d),d=d.parentGroup;c.reverse().forEach(function(f){function d(b,
c){f[c]=b;"translateX"===c?u.left=b+"px":u.top=b+"px";f.doTransform=!0}var b=D(f.element,"class"),v=f.styles||{};a=f.div=f.div||J("div",b?{className:b}:void 0,{position:"absolute",left:(f.translateX||0)+"px",top:(f.translateY||0)+"px",display:f.display,opacity:f.opacity,cursor:v.cursor,pointerEvents:v.pointerEvents,visibility:f.visibility},a||e);var u=a.style;t(f,{classSetter:function(b){return function(c){this.element.setAttribute("class",c);b.className=c}}(a),on:function(){c[0].div&&h.on.apply({element:c[0].div,
onEvents:f.onEvents},arguments);return f},translateXSetter:d,translateYSetter:d});f.addedSetters||K(f)})}}else a=e;a.appendChild(r);h.added=!0;h.alignOnAdd&&h.htmlUpdateTransform();return h});return h};e.composedClasses=[];return e}(y)});L(g,"Core/Axis/AxisDefaults.js",[],function(){var a;(function(a){a.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},
minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,
minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",
gridLineWidth:void 0,tickColor:"#ccd6eb"};a.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 a=this.axis.chart.numberFormatter;return a(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};
a.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};a.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};a.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};a.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(a||(a={}));return a});L(g,"Core/Foundation.js",[g["Core/Utilities.js"]],function(a){var g=a.addEvent,y=a.isFunction,E=a.objectEach,C=a.removeEvent,D;(function(a){a.registerEventOptions=function(a,q){a.eventOptions=
a.eventOptions||{};E(q.events,function(n,e){a.eventOptions[e]!==n&&(a.eventOptions[e]&&(C(a,e,a.eventOptions[e]),delete a.eventOptions[e]),y(n)&&(a.eventOptions[e]=n,g(a,e,n)))})}})(D||(D={}));return D});L(g,"Core/Axis/Tick.js",[g["Core/FormatUtilities.js"],g["Core/Globals.js"],g["Core/Utilities.js"]],function(a,g,y){var z=g.deg2rad,C=y.clamp,D=y.correctFloat,J=y.defined,t=y.destroyObjectProperties,q=y.extend,n=y.fireEvent,e=y.isNumber,d=y.merge,h=y.objectEach,m=y.pick;g=function(){function g(d,e,
a,h,g){this.isNewLabel=this.isNew=!0;this.axis=d;this.pos=e;this.type=a||"";this.parameters=g||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;n(this,"init");a||h||this.addLabel()}g.prototype.addLabel=function(){var d=this,h=d.axis,g=h.options,k=h.chart,I=h.categories,x=h.logarithmic,c=h.names,u=d.pos,f=m(d.options&&d.options.labels,g.labels),l=h.tickPositions,b=u===l[0],v=u===l[l.length-1],A=(!f.step||1===f.step)&&1===h.tickInterval;l=l.info;var p=d.label,
M;I=this.parameters.category||(I?m(I[u],c[u],u):u);x&&e(I)&&(I=D(x.lin2log(I)));if(h.dateTime)if(l){var F=k.time.resolveDTLFormat(g.dateTimeLabelFormats[!g.grid&&l.higherRanks[u]||l.unitName]);var N=F.main}else e(I)&&(N=h.dateTime.getXDateFormat(I,g.dateTimeLabelFormats||{}));d.isFirst=b;d.isLast=v;var Q={axis:h,chart:k,dateTimeLabelFormat:N,isFirst:b,isLast:v,pos:u,tick:d,tickPositionInfo:l,value:I};n(this,"labelFormat",Q);var t=function(b){return f.formatter?f.formatter.call(b,b):f.format?(b.text=
h.defaultLabelFormatter.call(b,b),a.format(f.format,b,k)):h.defaultLabelFormatter.call(b,b)};g=t.call(Q,Q);var Y=F&&F.list;d.shortenLabel=Y?function(){for(M=0;M<Y.length;M++)if(q(Q,{dateTimeLabelFormat:Y[M]}),p.attr({text:t.call(Q,Q)}),p.getBBox().width<h.getSlotWidth(d)-2*f.padding)return;p.attr({text:""})}:void 0;A&&h._addedPlotLB&&d.moveLabel(g,f);J(p)||d.movedLabel?p&&p.textStr!==g&&!A&&(!p.textWidth||f.style.width||p.styles.width||p.css({width:null}),p.attr({text:g}),p.textPxLength=p.getBBox().width):
(d.label=p=d.createLabel({x:0,y:0},g,f),d.rotation=0)};g.prototype.createLabel=function(e,a,h){var g=this.axis,m=g.chart;if(e=J(a)&&h.enabled?m.renderer.text(a,e.x,e.y,h.useHTML).add(g.labelGroup):null)m.styledMode||e.css(d(h.style)),e.textPxLength=e.getBBox().width;return e};g.prototype.destroy=function(){t(this,this.axis)};g.prototype.getPosition=function(d,e,a,h){var g=this.axis,m=g.chart,c=h&&m.oldChartHeight||m.chartHeight;d={x:d?D(g.translate(e+a,void 0,void 0,h)+g.transB):g.left+g.offset+(g.opposite?
(h&&m.oldChartWidth||m.chartWidth)-g.right-g.left:0),y:d?c-g.bottom+g.offset-(g.opposite?g.height:0):D(c-g.translate(e+a,void 0,void 0,h)-g.transB)};d.y=C(d.y,-1E5,1E5);n(this,"afterGetPosition",{pos:d});return d};g.prototype.getLabelPosition=function(d,e,a,h,g,m,c,u){var f=this.axis,l=f.transA,b=f.isLinked&&f.linkedParent?f.linkedParent.reversed:f.reversed,v=f.staggerLines,A=f.tickRotCorr||{x:0,y:0},p=h||f.reserveSpaceDefault?0:-f.labelOffset*("center"===f.labelAlign?.5:1),k={};a=0===f.side?a.rotation?
-8:-a.getBBox().height:2===f.side?A.y+8:Math.cos(a.rotation*z)*(A.y-a.getBBox(!1,0).height/2);J(g.y)&&(a=0===f.side&&f.horiz?g.y+a:g.y);d=d+g.x+p+A.x-(m&&h?m*l*(b?-1:1):0);e=e+a-(m&&!h?m*l*(b?1:-1):0);v&&(h=c/(u||1)%v,f.opposite&&(h=v-h-1),e+=f.labelOffset/v*h);k.x=d;k.y=Math.round(e);n(this,"afterGetLabelPosition",{pos:k,tickmarkOffset:m,index:c});return k};g.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};g.prototype.getMarkPath=function(d,
e,a,h,g,m){return m.crispLine([["M",d,e],["L",d+(g?0:-a),e+(g?a:0)]],h)};g.prototype.handleOverflow=function(d){var e=this.axis,a=e.options.labels,h=d.x,g=e.chart.chartWidth,k=e.chart.spacing,c=m(e.labelLeft,Math.min(e.pos,k[3]));k=m(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,g-k[1]));var u=this.label,f=this.rotation,l={left:0,center:.5,right:1}[e.labelAlign||u.attr("align")],b=u.getBBox().width,v=e.getSlotWidth(this),A={},p=v,r=1,n;if(f||"justify"!==a.overflow)0>f&&h-l*b<c?n=Math.round(h/Math.cos(f*
z)-c):0<f&&h+l*b>k&&(n=Math.round((g-h)/Math.cos(f*z)));else if(g=h+(1-l)*b,h-l*b<c?p=d.x+p*(1-l)-c:g>k&&(p=k-d.x+p*l,r=-1),p=Math.min(v,p),p<v&&"center"===e.labelAlign&&(d.x+=r*(v-p-l*(v-Math.min(b,p)))),b>p||e.autoRotation&&(u.styles||{}).width)n=p;n&&(this.shortenLabel?this.shortenLabel():(A.width=Math.floor(n)+"px",(a.style||{}).textOverflow||(A.textOverflow="ellipsis"),u.css(A)))};g.prototype.moveLabel=function(d,e){var a=this,g=a.label,m=a.axis,k=m.reversed,c=!1;g&&g.textStr===d?(a.movedLabel=
g,c=!0,delete a.label):h(m.ticks,function(f){c||f.isNew||f===a||!f.label||f.label.textStr!==d||(a.movedLabel=f.label,c=!0,f.labelPos=a.movedLabel.xy,delete f.label)});if(!c&&(a.labelPos||g)){var u=a.labelPos||g.xy;g=m.horiz?k?0:m.width+m.left:u.x;m=m.horiz?u.y:k?m.width+m.left:0;a.movedLabel=a.createLabel({x:g,y:m},d,e);a.movedLabel&&a.movedLabel.attr({opacity:0})}};g.prototype.render=function(d,e,a){var h=this.axis,g=h.horiz,k=this.pos,c=m(this.tickmarkOffset,h.tickmarkOffset);k=this.getPosition(g,
k,c,e);c=k.x;var u=k.y;h=g&&c===h.pos+h.len||!g&&u===h.pos?-1:1;g=m(a,this.label&&this.label.newOpacity,1);a=m(a,1);this.isActive=!0;this.renderGridLine(e,a,h);this.renderMark(k,a,h);this.renderLabel(k,e,g,d);this.isNew=!1;n(this,"afterRender")};g.prototype.renderGridLine=function(d,e,a){var h=this.axis,g=h.options,k={},c=this.pos,u=this.type,f=m(this.tickmarkOffset,h.tickmarkOffset),l=h.chart.renderer,b=this.gridLine,v=g.gridLineWidth,A=g.gridLineColor,p=g.gridLineDashStyle;"minor"===this.type&&
(v=g.minorGridLineWidth,A=g.minorGridLineColor,p=g.minorGridLineDashStyle);b||(h.chart.styledMode||(k.stroke=A,k["stroke-width"]=v||0,k.dashstyle=p),u||(k.zIndex=1),d&&(e=0),this.gridLine=b=l.path().attr(k).addClass("highcharts-"+(u?u+"-":"")+"grid-line").add(h.gridGroup));if(b&&(a=h.getPlotLinePath({value:c+f,lineWidth:b.strokeWidth()*a,force:"pass",old:d,acrossPanes:!1})))b[d||this.isNew?"attr":"animate"]({d:a,opacity:e})};g.prototype.renderMark=function(d,e,a){var h=this.axis,g=h.options,k=h.chart.renderer,
c=this.type,u=h.tickSize(c?c+"Tick":"tick"),f=d.x;d=d.y;var l=m(g["minor"!==c?"tickWidth":"minorTickWidth"],!c&&h.isXAxis?1:0);g=g["minor"!==c?"tickColor":"minorTickColor"];var b=this.mark,v=!b;u&&(h.opposite&&(u[0]=-u[0]),b||(this.mark=b=k.path().addClass("highcharts-"+(c?c+"-":"")+"tick").add(h.axisGroup),h.chart.styledMode||b.attr({stroke:g,"stroke-width":l})),b[v?"attr":"animate"]({d:this.getMarkPath(f,d,u[0],b.strokeWidth()*a,h.horiz,k),opacity:e}))};g.prototype.renderLabel=function(d,a,h,g){var k=
this.axis,n=k.horiz,c=k.options,u=this.label,f=c.labels,l=f.step;k=m(this.tickmarkOffset,k.tickmarkOffset);var b=d.x;d=d.y;var v=!0;u&&e(b)&&(u.xy=d=this.getLabelPosition(b,d,u,n,f,k,g,l),this.isFirst&&!this.isLast&&!c.showFirstLabel||this.isLast&&!this.isFirst&&!c.showLastLabel?v=!1:!n||f.step||f.rotation||a||0===h||this.handleOverflow(d),l&&g%l&&(v=!1),v&&e(d.y)?(d.opacity=h,u[this.isNewLabel?"attr":"animate"](d).show(!0),this.isNewLabel=!1):(u.hide(),this.isNewLabel=!0))};g.prototype.replaceMovedLabel=
function(){var d=this.label,e=this.axis,a=e.reversed;if(d&&!this.isNew){var h=e.horiz?a?e.left:e.width+e.left:d.xy.x;a=e.horiz?d.xy.y:a?e.width+e.top:e.top;d.animate({x:h,y:a,opacity:0},void 0,d.destroy);delete this.label}e.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return g}();"";return g});L(g,"Core/Axis/Axis.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Axis/AxisDefaults.js"],g["Core/Color/Color.js"],g["Core/Defaults.js"],g["Core/Foundation.js"],g["Core/Globals.js"],
g["Core/Axis/Tick.js"],g["Core/Utilities.js"]],function(a,g,y,E,C,D,J,t){var q=a.animObject,n=E.defaultOptions,e=C.registerEventOptions,d=D.deg2rad,h=t.arrayMax,m=t.arrayMin,k=t.clamp,r=t.correctFloat,B=t.defined,G=t.destroyObjectProperties,K=t.erase,I=t.error,x=t.extend,c=t.fireEvent,u=t.isArray,f=t.isNumber,l=t.isString,b=t.merge,v=t.normalizeTickInterval,A=t.objectEach,p=t.pick,M=t.relativeLength,F=t.removeEvent,N=t.splat,Q=t.syncTimeout,z=function(b,c){return v(c,void 0,void 0,p(b.options.allowDecimals,
.5>c||void 0!==b.tickAmount),!!b.tickAmount)};a=function(){function a(b,c){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(b,c)}a.prototype.init=function(b,d){var a=d.isX;this.chart=b;this.horiz=b.inverted&&!this.isZAxis?!a:a;this.isXAxis=a;this.coll=this.coll||(a?"xAxis":"yAxis");c(this,
"init",{userOptions:d});this.opposite=p(d.opposite,this.opposite);this.side=p(d.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(d);var w=this.options,h=w.labels,l=w.type;this.userOptions=d;this.minPixelPadding=0;this.reversed=p(w.reversed,this.reversed);this.visible=w.visible;this.zoomEnabled=w.zoomEnabled;this.hasNames="category"===l||!0===w.categories;this.categories=w.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups=
{};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=B(w.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=w.minRange||w.maxZoom;this.range=w.range;this.offset=w.offset||0;this.min=this.max=null;d=p(w.crosshair,N(b.options.tooltip.crosshairs)[a?0:1]);this.crosshair=!0===d?{}:d;-1===b.axes.indexOf(this)&&(a?b.axes.splice(b.xAxis.length,0,this):b.axes.push(this),b[this.coll].push(this));this.series=
this.series||[];b.inverted&&!this.isZAxis&&a&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=f(h.rotation)?h.rotation:void 0;e(this,w);c(this,"afterInit")};a.prototype.setOptions=function(f){this.options=b(g.defaultXAxisOptions,"yAxis"===this.coll&&g.defaultYAxisOptions,[g.defaultTopAxisOptions,g.defaultRightAxisOptions,g.defaultBottomAxisOptions,g.defaultLeftAxisOptions][this.side],b(n[this.coll],f));c(this,"afterSetOptions",{userOptions:f})};a.prototype.defaultLabelFormatter=
function(b){var c=this.axis;b=this.chart.numberFormatter;var d=f(this.value)?this.value:NaN,a=c.chart.time,e=this.dateTimeLabelFormat,w=n.lang,h=w.numericSymbols;w=w.numericSymbolMagnitude||1E3;var l=c.logarithmic?Math.abs(d):c.tickInterval,p=h&&h.length;if(c.categories)var v="".concat(this.value);else if(e)v=a.dateFormat(e,d);else if(p&&1E3<=l)for(;p--&&"undefined"===typeof v;)c=Math.pow(w,p+1),l>=c&&0===10*d%c&&null!==h[p]&&0!==d&&(v=b(d/c,-1)+h[p]);"undefined"===typeof v&&(v=1E4<=Math.abs(d)?b(d,
-1):b(d,-1,void 0,""));return v};a.prototype.getSeriesExtremes=function(){var b=this,d=b.chart,a;c(this,"getSeriesExtremes",null,function(){b.hasVisibleSeries=!1;b.dataMin=b.dataMax=b.threshold=null;b.softThreshold=!b.isXAxis;b.series.forEach(function(c){if(c.visible||!d.options.chart.ignoreHiddenSeries){var e=c.options,w=e.threshold;b.hasVisibleSeries=!0;b.positiveValuesOnly&&0>=w&&(w=null);if(b.isXAxis){if(e=c.xData,e.length){e=b.logarithmic?e.filter(b.validatePositiveValue):e;a=c.getXExtremes(e);
var h=a.min;var l=a.max;f(h)||h instanceof Date||(e=e.filter(f),a=c.getXExtremes(e),h=a.min,l=a.max);e.length&&(b.dataMin=Math.min(p(b.dataMin,h),h),b.dataMax=Math.max(p(b.dataMax,l),l))}}else if(c=c.applyExtremes(),f(c.dataMin)&&(h=c.dataMin,b.dataMin=Math.min(p(b.dataMin,h),h)),f(c.dataMax)&&(l=c.dataMax,b.dataMax=Math.max(p(b.dataMax,l),l)),B(w)&&(b.threshold=w),!e.softThreshold||b.positiveValuesOnly)b.softThreshold=!1}})});c(this,"afterGetSeriesExtremes")};a.prototype.translate=function(b,c,d,
a,e,h){var w=this.linkedParent||this,l=a&&w.old?w.old.min:w.min;if(!f(l))return NaN;var p=w.minPixelPadding;e=(w.isOrdinal||w.brokenAxis&&w.brokenAxis.hasBreaks||w.logarithmic&&e)&&w.lin2val;var v=1,H=0;a=a&&w.old?w.old.transA:w.transA;a||(a=w.transA);d&&(v*=-1,H=w.len);w.reversed&&(v*=-1,H-=v*(w.sector||w.len));c?(h=(b*v+H-p)/a+l,e&&(h=w.lin2val(h))):(e&&(b=w.val2lin(b)),b=v*(b-l)*a,h=(w.isRadial?b:r(b))+H+v*p+(f(h)?a*h:0));return h};a.prototype.toPixels=function(b,c){return this.translate(b,!1,
!this.horiz,void 0,!0)+(c?0:this.pos)};a.prototype.toValue=function(b,c){return this.translate(b-(c?0:this.pos),!0,!this.horiz,void 0,!0)};a.prototype.getPlotLinePath=function(b){function d(b,c,f){"pass"!==r&&(b<c||b>f)&&(r?b=k(b,c,f):q=!0);return b}var a=this,e=a.chart,w=a.left,h=a.top,l=b.old,v=b.value,g=b.lineWidth,u=l&&e.oldChartHeight||e.chartHeight,A=l&&e.oldChartWidth||e.chartWidth,m=a.transB,n=b.translatedValue,r=b.force,x,F,M,N,q;b={value:v,lineWidth:g,old:l,force:r,acrossPanes:b.acrossPanes,
translatedValue:n};c(this,"getPlotLinePath",b,function(b){n=p(n,a.translate(v,void 0,void 0,l));n=k(n,-1E5,1E5);x=M=Math.round(n+m);F=N=Math.round(u-n-m);f(n)?a.horiz?(F=h,N=u-a.bottom,x=M=d(x,w,w+a.width)):(x=w,M=A-a.right,F=N=d(F,h,h+a.height)):(q=!0,r=!1);b.path=q&&!r?null:e.renderer.crispLine([["M",x,F],["L",M,N]],g||1)});return b.path};a.prototype.getLinearTickPositions=function(b,c,f){var d=r(Math.floor(c/b)*b);f=r(Math.ceil(f/b)*b);var a=[],e;r(d+b)===d&&(e=20);if(this.single)return[c];for(c=
d;c<=f;){a.push(c);c=r(c+b,e);if(c===w)break;var w=c}return a};a.prototype.getMinorTickInterval=function(){var b=this.options;return!0===b.minorTicks?p(b.minorTickInterval,"auto"):!1===b.minorTicks?null:b.minorTickInterval};a.prototype.getMinorTickPositions=function(){var b=this.options,c=this.tickPositions,f=this.minorTickInterval,d=this.pointRangePadding||0,a=this.min-d;d=this.max+d;var e=d-a,h=[];if(e&&e/f<this.len/3){var l=this.logarithmic;if(l)this.paddedTicks.forEach(function(b,c,d){c&&h.push.apply(h,
l.getLogTickPositions(f,d[c-1],d[c],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())h=h.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(f),a,d,b.startOfWeek));else for(b=a+(c[0]-a)%f;b<=d&&b!==h[0];b+=f)h.push(b)}0!==h.length&&this.trimTicks(h);return h};a.prototype.adjustForMinRange=function(){var b=this.options,c=this.logarithmic,f=this.min,d=this.max,a=0,e,l,v,g;this.isXAxis&&"undefined"===typeof this.minRange&&!c&&(B(b.min)||B(b.max)||B(b.floor)||B(b.ceiling)?
this.minRange=null:(this.series.forEach(function(b){v=b.xData;g=b.xIncrement?1:v.length-1;if(1<v.length)for(e=g;0<e;e--)if(l=v[e]-v[e-1],!a||l<a)a=l}),this.minRange=Math.min(5*a,this.dataMax-this.dataMin)));if(d-f<this.minRange){var u=this.dataMax-this.dataMin>=this.minRange;var A=this.minRange;var k=(A-d+f)/2;k=[f-k,p(b.min,f-k)];u&&(k[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);f=h(k);d=[f+A,p(b.max,f+A)];u&&(d[2]=c?c.log2lin(this.dataMax):this.dataMax);d=m(d);d-f<A&&
(k[0]=d-A,k[1]=p(b.min,d-A),f=h(k))}this.min=f;this.max=d};a.prototype.getClosest=function(){var b;this.categories?b=1:this.series.forEach(function(c){var f=c.closestPointRange,d=c.visible||!c.chart.options.chart.ignoreHiddenSeries;!c.noSharedTooltip&&B(f)&&d&&(b=B(b)?Math.min(b,f):f)});return b};a.prototype.nameToX=function(b){var c=u(this.options.categories),f=c?this.categories:this.names,d=b.options.x;b.series.requireSorting=!1;B(d)||(d=this.options.uniqueNames&&f?c?f.indexOf(b.name):p(f.keys[b.name],
-1):b.series.autoIncrement());if(-1===d){if(!c&&f)var a=f.length}else a=d;"undefined"!==typeof a?(this.names[a]=b.name,this.names.keys[b.name]=a):b.x&&(a=b.x);return a};a.prototype.updateNames=function(){var b=this,c=this.names;0<c.length&&(Object.keys(c.keys).forEach(function(b){delete c.keys[b]}),c.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(c){c.xIncrement=null;if(!c.points||c.isDirtyData)b.max=Math.max(b.max,c.xData.length-1),c.processData(),c.generatePoints();
c.data.forEach(function(f,d){if(f&&f.options&&"undefined"!==typeof f.name){var a=b.nameToX(f);"undefined"!==typeof a&&a!==f.x&&(f.x=a,c.xData[d]=a)}})}))};a.prototype.setAxisTranslation=function(){var b=this,f=b.max-b.min,d=b.linkedParent,a=!!b.categories,e=b.isXAxis,h=b.axisPointRange||0,v=0,g=0,u=b.transA;if(e||a||h){var A=b.getClosest();d?(v=d.minPointOffset,g=d.pointRangePadding):b.series.forEach(function(c){var f=a?1:e?p(c.options.pointRange,A,0):b.axisPointRange||0,d=c.options.pointPlacement;
h=Math.max(h,f);if(!b.single||a)c=c.is("xrange")?!e:e,v=Math.max(v,c&&l(d)?0:f/2),g=Math.max(g,c&&"on"===d?0:f)});d=b.ordinal&&b.ordinal.slope&&A?b.ordinal.slope/A:1;b.minPointOffset=v*=d;b.pointRangePadding=g*=d;b.pointRange=Math.min(h,b.single&&a?1:f);e&&(b.closestPointRange=A)}b.translationSlope=b.transA=u=b.staticScale||b.len/(f+g||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=u*v;c(this,"afterSetAxisTranslation")};a.prototype.minFromRange=function(){return this.max-this.range};a.prototype.setTickInterval=
function(b){var d=this.chart,a=this.logarithmic,e=this.options,h=this.isXAxis,l=this.isLinked,v=e.tickPixelInterval,w=this.categories,g=this.softThreshold,u=e.maxPadding,A=e.minPadding,k=f(e.tickInterval)&&0<=e.tickInterval?e.tickInterval:void 0,m=f(this.threshold)?this.threshold:null;this.dateTime||w||l||this.getTickAmount();var n=p(this.userMin,e.min);var x=p(this.userMax,e.max);if(l){this.linkedParent=d[this.coll][e.linkedTo];var F=this.linkedParent.getExtremes();this.min=p(F.min,F.dataMin);this.max=
p(F.max,F.dataMax);e.type!==this.linkedParent.options.type&&I(11,1,d)}else{if(g&&B(m))if(this.dataMin>=m)F=m,A=0;else if(this.dataMax<=m){var M=m;u=0}this.min=p(n,F,this.dataMin);this.max=p(x,M,this.dataMax)}a&&(this.positiveValuesOnly&&!b&&0>=Math.min(this.min,p(this.dataMin,this.min))&&I(10,1,d),this.min=r(a.log2lin(this.min),16),this.max=r(a.log2lin(this.max),16));this.range&&B(this.max)&&(this.userMin=this.min=n=Math.max(this.dataMin,this.minFromRange()),this.userMax=x=this.max,this.range=null);
c(this,"foundExtremes");this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(w||this.axisPointRange||this.stacking&&this.stacking.usePercentage||l)&&B(this.min)&&B(this.max)&&(d=this.max-this.min)&&(!B(n)&&A&&(this.min-=d*A),!B(x)&&u&&(this.max+=d*u));f(this.userMin)||(f(e.softMin)&&e.softMin<this.min&&(this.min=n=e.softMin),f(e.floor)&&(this.min=Math.max(this.min,e.floor)));f(this.userMax)||(f(e.softMax)&&e.softMax>this.max&&(this.max=x=e.softMax),f(e.ceiling)&&(this.max=Math.min(this.max,
e.ceiling)));g&&B(this.dataMin)&&(m=m||0,!B(n)&&this.min<m&&this.dataMin>=m?this.min=this.options.minRange?Math.min(m,this.max-this.minRange):m:!B(x)&&this.max>m&&this.dataMax<=m&&(this.max=this.options.minRange?Math.max(m,this.min+this.minRange):m));f(this.min)&&f(this.max)&&!this.chart.polar&&this.min>this.max&&(B(this.options.min)?this.max=this.min:B(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:l&&
this.linkedParent&&!k&&v===this.linkedParent.options.tickPixelInterval?k=this.linkedParent.tickInterval:p(k,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,w?1:(this.max-this.min)*v/Math.max(this.len,v));if(h&&!b){var N=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(b){b.forceCrop=b.forceCropping&&b.forceCropping();b.processData(N)});c(this,"postProcessData",{hasExtremesChanged:N})}this.setAxisTranslation();c(this,"initialAxisTranslation");
this.pointRange&&!k&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));b=p(e.minTickInterval,this.dateTime&&!this.series.some(function(b){return b.noSharedTooltip})?this.closestPointRange:0);!k&&this.tickInterval<b&&(this.tickInterval=b);this.dateTime||this.logarithmic||k||(this.tickInterval=z(this,this.tickInterval));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};a.prototype.setTickPositions=function(){var b=this.options,d=b.tickPositions,a=b.tickPositioner,
e=this.getMinorTickInterval(),h=this.hasVerticalPanning(),l="colorAxis"===this.coll,v=(l||!h)&&b.startOnTick;h=(l||!h)&&b.endOnTick;l=[];var p;this.tickmarkOffset=this.categories&&"between"===b.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===e&&this.tickInterval?this.tickInterval/5:e;this.single=this.min===this.max&&B(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==b.allowDecimals);if(d)l=d.slice();else if(f(this.min)&&f(this.max)){if(this.ordinal&&
this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)l=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,b.units),this.min,this.max,b.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)l=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(e=b=this.tickInterval;e<=2*b;)if(l=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&
l.length>this.tickAmount)this.tickInterval=z(this,e*=1.1);else break;else l=[this.min,this.max],I(19,!1,this.chart);l.length>this.len&&(l=[l[0],l[l.length-1]],l[0]===l[1]&&(l.length=1));a&&(this.tickPositions=l,(p=a.apply(this,[this.min,this.max]))&&(l=p))}this.tickPositions=l;this.paddedTicks=l.slice(0);this.trimTicks(l,v,h);!this.isLinked&&f(this.min)&&f(this.max)&&(this.single&&2>l.length&&!this.categories&&!this.series.some(function(b){return b.is("heatmap")&&"between"===b.options.pointPlacement})&&
(this.min-=.5,this.max+=.5),d||p||this.adjustTickAmount());c(this,"afterSetTickPositions")};a.prototype.trimTicks=function(b,f,d){var a=b[0],e=b[b.length-1],h=!this.isOrdinal&&this.minPointOffset||0;c(this,"trimTicks");if(!this.isLinked){if(f&&-Infinity!==a)this.min=a;else for(;this.min-h>b[0];)b.shift();if(d)this.max=e;else for(;this.max+h<b[b.length-1];)b.pop();0===b.length&&B(a)&&!this.options.tickPositions&&b.push((e+a)/2)}};a.prototype.alignToOthers=function(){var b=this,c=[this],d=b.options,
a="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,e=[],h;b.thresholdAlignment=void 0;if((!1!==this.chart.options.chart.alignTicks&&d.alignTicks||a)&&!1!==d.startOnTick&&!1!==d.endOnTick&&!b.logarithmic){var l=function(b){var c=b.options;return[b.horiz?c.left:c.top,c.width,c.height,c.pane].join()},v=l(this);this.chart[this.coll].forEach(function(f){var d=f.series;d.length&&d.some(function(b){return b.visible})&&f!==b&&l(f)===v&&(h=!0,c.push(f))})}if(h&&a){c.forEach(function(c){c=c.getThresholdAlignment(b);
f(c)&&e.push(c)});var p=1<e.length?e.reduce(function(b,c){return b+c},0)/e.length:void 0;c.forEach(function(b){b.thresholdAlignment=p})}return h};a.prototype.getThresholdAlignment=function(b){(!f(this.dataMin)||this!==b&&this.series.some(function(b){return b.isDirty||b.isDirtyData}))&&this.getSeriesExtremes();if(f(this.threshold))return b=k((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(b=1-b),b};a.prototype.getTickAmount=function(){var b=this.options,
c=b.tickPixelInterval,f=b.tickAmount;!B(b.tickInterval)&&!f&&this.len<c&&!this.isRadial&&!this.logarithmic&&b.startOnTick&&b.endOnTick&&(f=2);!f&&this.alignToOthers()&&(f=Math.ceil(this.len/c)+1);4>f&&(this.finalTickAmt=f,f=5);this.tickAmount=f};a.prototype.adjustTickAmount=function(){var b=this,c=b.finalTickAmt,d=b.max,a=b.min,e=b.options,h=b.tickPositions,l=b.tickAmount,v=b.thresholdAlignment,g=h&&h.length,u=p(b.threshold,b.softThreshold?0:null);var A=b.tickInterval;if(f(v)){var k=.5>v?Math.ceil(v*
(l-1)):Math.floor(v*(l-1));e.reversed&&(k=l-1-k)}if(b.hasData()&&f(a)&&f(d)){v=function(){b.transA*=(g-1)/(l-1);b.min=e.startOnTick?h[0]:Math.min(a,h[0]);b.max=e.endOnTick?h[h.length-1]:Math.max(d,h[h.length-1])};if(f(k)&&f(b.threshold)){for(;h[k]!==u||h.length!==l||h[0]>a||h[h.length-1]<d;){h.length=0;for(h.push(b.threshold);h.length<l;)void 0===h[k]||h[k]>b.threshold?h.unshift(r(h[0]-A)):h.push(r(h[h.length-1]+A));if(A>8*b.tickInterval)break;A*=2}v()}else if(g<l){for(;h.length<l;)h.length%2||a===
u?h.push(r(h[h.length-1]+A)):h.unshift(r(h[0]-A));v()}if(B(c)){for(A=u=h.length;A--;)(3===c&&1===A%2||2>=c&&0<A&&A<u-1)&&h.splice(A,1);b.finalTickAmt=void 0}}};a.prototype.setScale=function(){var b=!1,f=!1;this.series.forEach(function(c){b=b||c.isDirtyData||c.isDirty;f=f||c.xAxis&&c.xAxis.isDirty||!1});this.setAxisSize();var d=this.len!==(this.old&&this.old.len);d||b||f||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=d||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();b&&this.panningState&&(this.panningState.isDirty=!0);c(this,"afterSetScale")};a.prototype.setExtremes=function(b,f,d,a,e){var h=this,l=h.chart;d=p(d,!0);h.series.forEach(function(b){delete b.kdTree});e=x(e,{min:b,
max:f});c(h,"setExtremes",e,function(){h.userMin=b;h.userMax=f;h.eventArgs=e;d&&l.redraw(a)})};a.prototype.zoom=function(b,f){var d=this,a=this.dataMin,e=this.dataMax,h=this.options,l=Math.min(a,p(h.min,a)),v=Math.max(e,p(h.max,e));b={newMin:b,newMax:f};c(this,"zoom",b,function(b){var c=b.newMin,f=b.newMax;if(c!==d.min||f!==d.max)d.allowZoomOutside||(B(a)&&(c<l&&(c=l),c>v&&(c=v)),B(e)&&(f<l&&(f=l),f>v&&(f=v))),d.displayBtn="undefined"!==typeof c||"undefined"!==typeof f,d.setExtremes(c,f,!1,void 0,
{trigger:"zoom"});b.zoomed=!0});return b.zoomed};a.prototype.setAxisSize=function(){var b=this.chart,c=this.options,f=c.offsets||[0,0,0,0],d=this.horiz,a=this.width=Math.round(M(p(c.width,b.plotWidth-f[3]+f[1]),b.plotWidth)),e=this.height=Math.round(M(p(c.height,b.plotHeight-f[0]+f[2]),b.plotHeight)),h=this.top=Math.round(M(p(c.top,b.plotTop+f[0]),b.plotHeight,b.plotTop));c=this.left=Math.round(M(p(c.left,b.plotLeft+f[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-e-h;this.right=b.chartWidth-
a-c;this.len=Math.max(d?a:e,0);this.pos=d?c:h};a.prototype.getExtremes=function(){var b=this.logarithmic;return{min:b?r(b.lin2log(this.min)):this.min,max:b?r(b.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};a.prototype.getThreshold=function(b){var c=this.logarithmic,f=c?c.lin2log(this.min):this.min;c=c?c.lin2log(this.max):this.max;null===b||-Infinity===b?b=f:Infinity===b?b=c:f>b?b=f:c<b&&(b=c);return this.translate(b,0,1,0,1)};a.prototype.autoLabelAlign=
function(b){var f=(p(b,0)-90*this.side+720)%360;b={align:"center"};c(this,"autoLabelAlign",b,function(b){15<f&&165>f?b.align="right":195<f&&345>f&&(b.align="left")});return b.align};a.prototype.tickSize=function(b){var f=this.options,d=p(f["tick"===b?"tickWidth":"minorTickWidth"],"tick"===b&&this.isXAxis&&!this.categories?1:0),a=f["tick"===b?"tickLength":"minorTickLength"];if(d&&a){"inside"===f[b+"Position"]&&(a=-a);var e=[a,d]}b={tickSize:e};c(this,"afterTickSize",b);return b.tickSize};a.prototype.labelMetrics=
function(){var b=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[b]&&this.ticks[b].label)};a.prototype.unsquish=function(){var b=this.options.labels,c=this.horiz,a=this.tickInterval,e=this.len/(((this.categories?1:0)+this.max-this.min)/a),h=b.rotation,l=this.labelMetrics(),v=Math.max(this.max-this.min,0),g=function(b){var c=b/(e||1);c=1<c?Math.ceil(c):1;c*a>v&&Infinity!==b&&Infinity!==e&&v&&(c=Math.ceil(v/a));return r(c*
a)},A=a,u=Number.MAX_VALUE;if(c){if(!b.staggerLines)if(f(h))var k=[h];else e<b.autoRotationLimit&&(k=b.autoRotation);if(k)for(var m=c=void 0,n=0,x=k;n<x.length;n++){var F=x[n];if(F===h||F&&-90<=F&&90>=F)if(c=g(Math.abs(l.h/Math.sin(d*F))),m=c+Math.abs(F/360),m<u){u=m;var M=F;A=c}}}else A=g(l.h);this.autoRotation=k;this.labelRotation=p(M,f(h)?h:0);return b.step?a:A};a.prototype.getSlotWidth=function(b){var c=this.chart,d=this.horiz,a=this.options.labels,e=Math.max(this.tickPositions.length-(this.categories?
0:1),1),h=c.margin[3];if(b&&f(b.slotWidth))return b.slotWidth;if(d&&2>a.step)return a.rotation?0:(this.staggerLines||1)*this.len/e;if(!d){b=a.style.width;if(void 0!==b)return parseInt(String(b),10);if(h)return h-c.spacing[3]}return.33*c.chartWidth};a.prototype.renderUnsquish=function(){var b=this.chart,c=b.renderer,f=this.tickPositions,d=this.ticks,a=this.options.labels,e=a.style,h=this.horiz,v=this.getSlotWidth(),p=Math.max(1,Math.round(v-2*a.padding)),g={},A=this.labelMetrics(),u=e.textOverflow,
k=0;l(a.rotation)||(g.rotation=a.rotation||0);f.forEach(function(b){b=d[b];b.movedLabel&&b.replaceMovedLabel();b&&b.label&&b.label.textPxLength>k&&(k=b.label.textPxLength)});this.maxLabelLength=k;if(this.autoRotation)k>p&&k>A.h?g.rotation=this.labelRotation:this.labelRotation=0;else if(v){var m=p;if(!u){var n="clip";for(p=f.length;!h&&p--;){var F=f[p];if(F=d[F].label)F.styles&&"ellipsis"===F.styles.textOverflow?F.css({textOverflow:"clip"}):F.textPxLength>v&&F.css({width:v+"px"}),F.getBBox().height>
this.len/f.length-(A.h-A.f)&&(F.specificTextOverflow="ellipsis")}}}g.rotation&&(m=k>.5*b.chartHeight?.33*b.chartHeight:k,u||(n="ellipsis"));if(this.labelAlign=a.align||this.autoLabelAlign(this.labelRotation))g.align=this.labelAlign;f.forEach(function(b){var c=(b=d[b])&&b.label,f=e.width,a={};c&&(c.attr(g),b.shortenLabel?b.shortenLabel():m&&!f&&"nowrap"!==e.whiteSpace&&(m<c.textPxLength||"SPAN"===c.element.tagName)?(a.width=m+"px",u||(a.textOverflow=c.specificTextOverflow||n),c.css(a)):c.styles&&c.styles.width&&
!a.width&&!f&&c.css({width:null}),delete c.specificTextOverflow,b.rotation=g.rotation)},this);this.tickRotCorr=c.rotCorr(A.b,this.labelRotation||0,0!==this.side)};a.prototype.hasData=function(){return this.series.some(function(b){return b.hasData()})||this.options.showEmpty&&B(this.min)&&B(this.max)};a.prototype.addTitle=function(c){var f=this.chart.renderer,d=this.horiz,a=this.opposite,e=this.options.title,h=this.chart.styledMode,l;this.axisTitle||((l=e.textAlign)||(l=(d?{low:"left",middle:"center",
high:"right"}:{low:a?"right":"left",middle:"center",high:a?"left":"right"})[e.align]),this.axisTitle=f.text(e.text||"",0,0,e.useHTML).attr({zIndex:7,rotation:e.rotation,align:l}).addClass("highcharts-axis-title"),h||this.axisTitle.css(b(e.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0);h||e.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[c?"show":"hide"](c)};a.prototype.generateTick=function(b){var c=this.ticks;c[b]?c[b].addLabel():c[b]=new J(this,
b)};a.prototype.getOffset=function(){var b=this,f=this,d=f.chart,a=f.horiz,e=f.options,h=f.side,l=f.ticks,v=f.tickPositions,g=f.coll,u=f.axisParent,k=d.renderer,m=d.inverted&&!f.isZAxis?[1,0,3,2][h]:h,n=f.hasData(),F=e.title,r=e.labels,x=d.axisOffset;d=d.clipOffset;var M=[-1,1,1,-1][h],N=e.className,q,Q=0,ja=0,da=0;f.showAxis=q=n||e.showEmpty;f.staggerLines=f.horiz&&r.staggerLines||void 0;if(!f.axisGroup){var G=function(c,f,d){return k.g(c).attr({zIndex:d}).addClass("highcharts-".concat(g.toLowerCase()).concat(f,
" ")+(b.isRadial?"highcharts-radial-axis".concat(f," "):"")+(N||"")).add(u)};f.gridGroup=G("grid","-grid",e.gridZIndex);f.axisGroup=G("axis","",e.zIndex);f.labelGroup=G("axis-labels","-labels",r.zIndex)}n||f.isLinked?(v.forEach(function(b){f.generateTick(b)}),f.renderUnsquish(),f.reserveSpaceDefault=0===h||2===h||{1:"left",3:"right"}[h]===f.labelAlign,p(r.reserveSpace,"center"===f.labelAlign?!0:null,f.reserveSpaceDefault)&&v.forEach(function(b){da=Math.max(l[b].getLabelSize(),da)}),f.staggerLines&&
(da*=f.staggerLines),f.labelOffset=da*(f.opposite?-1:1)):A(l,function(b,c){b.destroy();delete l[c]});if(F&&F.text&&!1!==F.enabled&&(f.addTitle(q),q&&!1!==F.reserveSpace)){f.titleOffset=Q=f.axisTitle.getBBox()[a?"height":"width"];var t=F.offset;ja=B(t)?0:p(F.margin,a?5:10)}f.renderLine();f.offset=M*p(e.offset,x[h]?x[h]+(e.margin||0):0);f.tickRotCorr=f.tickRotCorr||{x:0,y:0};F=0===h?-f.labelMetrics().h:2===h?f.tickRotCorr.y:0;n=Math.abs(da)+ja;da&&(n=n-F+M*(a?p(r.y,f.tickRotCorr.y+8*M):r.x));f.axisTitleMargin=
p(t,n);f.getMaxLabelDimensions&&(f.maxLabelDimensions=f.getMaxLabelDimensions(l,v));"colorAxis"!==g&&(a=this.tickSize("tick"),x[h]=Math.max(x[h],(f.axisTitleMargin||0)+Q+M*f.offset,n,v&&v.length&&a?a[0]+M*f.offset:0),e=!f.axisLine||e.offset?0:2*Math.floor(f.axisLine.strokeWidth()/2),d[m]=Math.max(d[m],e));c(this,"afterGetOffset")};a.prototype.getLinePath=function(b){var c=this.chart,f=this.opposite,d=this.offset,a=this.horiz,e=this.left+(f?this.width:0)+d;d=c.chartHeight-this.bottom-(f?this.height:
0)+d;f&&(b*=-1);return c.renderer.crispLine([["M",a?this.left:e,a?d:this.top],["L",a?c.chartWidth-this.right:e,a?d:c.chartHeight-this.bottom]],b)};a.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}))};a.prototype.getTitlePosition=function(){var b=this.horiz,f=this.left,d=this.top,a=this.len,
e=this.options.title,h=b?f:d,l=this.opposite,v=this.offset,p=e.x,g=e.y,A=this.axisTitle,u=this.chart.renderer.fontMetrics(e.style.fontSize,A);A=A?Math.max(A.getBBox(!1,0).height-u.h-1,0):0;a={low:h+(b?0:a),middle:h+a/2,high:h+(b?a:0)}[e.align];f=(b?d+this.height:f)+(b?1:-1)*(l?-1:1)*(this.axisTitleMargin||0)+[-A,A,u.f,-A][this.side];b={x:b?a+p:f+(l?this.width:0)+v+p,y:b?f+g-(l?this.height:0)+v:a+g};c(this,"afterGetTitlePosition",{titlePosition:b});return b};a.prototype.renderMinorTick=function(b,
c){var f=this.minorTicks;f[b]||(f[b]=new J(this,b,"minor"));c&&f[b].isNew&&f[b].render(null,!0);f[b].render(null,!1,1)};a.prototype.renderTick=function(b,c,f){var d=this.ticks;if(!this.isLinked||b>=this.min&&b<=this.max||this.grid&&this.grid.isColumn)d[b]||(d[b]=new J(this,b)),f&&d[b].isNew&&d[b].render(c,!0,-1),d[b].render(c)};a.prototype.render=function(){var b=this,d=b.chart,a=b.logarithmic,e=b.options,h=b.isLinked,l=b.tickPositions,v=b.axisTitle,p=b.ticks,g=b.minorTicks,u=b.alternateBands,k=e.stackLabels,
m=e.alternateGridColor,n=b.tickmarkOffset,F=b.axisLine,r=b.showAxis,x=q(d.renderer.globalAnimation),M,N;b.labelEdge.length=0;b.overlap=!1;[p,g,u].forEach(function(b){A(b,function(b){b.isActive=!1})});if(b.hasData()||h){var B=b.chart.hasRendered&&b.old&&f(b.old.min);b.minorTickInterval&&!b.categories&&b.getMinorTickPositions().forEach(function(c){b.renderMinorTick(c,B)});l.length&&(l.forEach(function(c,f){b.renderTick(c,f,B)}),n&&(0===b.min||b.single)&&(p[-1]||(p[-1]=new J(b,-1,null,!0)),p[-1].render(-1)));
m&&l.forEach(function(c,f){N="undefined"!==typeof l[f+1]?l[f+1]+n:b.max-n;0===f%2&&c<b.max&&N<=b.max+(d.polar?-n:n)&&(u[c]||(u[c]=new D.PlotLineOrBand(b)),M=c+n,u[c].options={from:a?a.lin2log(M):M,to:a?a.lin2log(N):N,color:m,className:"highcharts-alternate-grid"},u[c].render(),u[c].isActive=!0)});b._addedPlotLB||(b._addedPlotLB=!0,(e.plotLines||[]).concat(e.plotBands||[]).forEach(function(c){b.addPlotBandOrLine(c)}))}[p,g,u].forEach(function(b){var c=[],f=x.duration;A(b,function(b,f){b.isActive||
(b.render(f,!1,0),b.isActive=!1,c.push(f))});Q(function(){for(var f=c.length;f--;)b[c[f]]&&!b[c[f]].isActive&&(b[c[f]].destroy(),delete b[c[f]])},b!==u&&d.hasRendered&&f?f:0)});F&&(F[F.isPlaced?"animate":"attr"]({d:this.getLinePath(F.strokeWidth())}),F.isPlaced=!0,F[r?"show":"hide"](r));v&&r&&(e=b.getTitlePosition(),v[v.isNew?"attr":"animate"](e),v.isNew=!1);k&&k.enabled&&b.stacking&&b.stacking.renderStackTotals();b.old={len:b.len,max:b.max,min:b.min,transA:b.transA,userMax:b.userMax,userMin:b.userMin};
b.isDirty=!1;c(this,"afterRender")};a.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(b){b.render()}));this.series.forEach(function(b){b.isDirty=!0})};a.prototype.getKeepProps=function(){return this.keepProps||a.keepProps};a.prototype.destroy=function(b){var f=this,d=f.plotLinesAndBands,a=this.eventOptions;c(this,"destroy",{keepEvents:b});b||F(f);[f.ticks,f.minorTicks,f.alternateBands].forEach(function(b){G(b)});if(d)for(b=d.length;b--;)d[b].destroy();
"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(b){f[b]&&(f[b]=f[b].destroy())});for(var e in f.plotLinesAndBandsGroups)f.plotLinesAndBandsGroups[e]=f.plotLinesAndBandsGroups[e].destroy();A(f,function(b,c){-1===f.getKeepProps().indexOf(c)&&delete f[c]});this.eventOptions=a};a.prototype.drawCrosshair=function(b,f){var d=this.crosshair,a=p(d&&d.snap,!0),e=this.chart,h,l=this.cross;c(this,"drawCrosshair",{e:b,point:f});b||(b=this.cross&&this.cross.e);if(d&&
!1!==(B(f)||!a)){a?B(f)&&(h=p("colorAxis"!==this.coll?f.crosshairPos:null,this.isXAxis?f.plotX:this.len-f.plotY)):h=b&&(this.horiz?b.chartX-this.pos:this.len-b.chartY+this.pos);if(B(h)){var v={value:f&&(this.isXAxis?f.x:p(f.stackY,f.y)),translatedValue:h};e.polar&&x(v,{isCrosshair:!0,chartX:b&&b.chartX,chartY:b&&b.chartY,point:f});v=this.getPlotLinePath(v)||null}if(!B(v)){this.hideCrosshair();return}a=this.categories&&!this.isRadial;l||(this.cross=l=e.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+
(a?"category ":"thin ")+(d.className||"")).attr({zIndex:p(d.zIndex,2)}).add(),e.styledMode||(l.attr({stroke:d.color||(a?y.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":p(d.width,1)}).css({"pointer-events":"none"}),d.dashStyle&&l.attr({dashstyle:d.dashStyle})));l.show().attr({d:v});a&&!d.width&&l.attr({"stroke-width":this.transA});this.cross.e=b}else this.hideCrosshair();c(this,"afterDrawCrosshair",{e:b,point:f})};a.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();
c(this,"afterHideCrosshair")};a.prototype.hasVerticalPanning=function(){var b=this.chart.options.chart.panning;return!!(b&&b.enabled&&/y/.test(b.type))};a.prototype.validatePositiveValue=function(b){return f(b)&&0<b};a.prototype.update=function(c,f){var d=this.chart;c=b(this.userOptions,c);this.destroy(!0);this.init(d,c);d.isDirtyBox=!0;p(f,!0)&&d.redraw()};a.prototype.remove=function(b){for(var c=this.chart,f=this.coll,d=this.series,a=d.length;a--;)d[a]&&d[a].remove(!1);K(c.axes,this);K(c[f],this);
c[f].forEach(function(b,c){b.options.index=b.userOptions.index=c});this.destroy();c.isDirtyBox=!0;p(b,!0)&&c.redraw()};a.prototype.setTitle=function(b,c){this.update({title:b},c)};a.prototype.setCategories=function(b,c){this.update({categories:b},c)};a.defaultOptions=g.defaultXAxisOptions;a.keepProps="extKey hcEvents names series userMax userMin".split(" ");return a}();"";return a});L(g,"Core/Axis/DateTimeAxis.js",[g["Core/Utilities.js"]],function(a){var g=a.addEvent,y=a.getMagnitude,E=a.normalizeTickInterval,
C=a.timeUnits,D;(function(a){function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function q(d){"datetime"!==d.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new e(this))}var n=[];a.compose=function(d){-1===n.indexOf(d)&&(n.push(d),d.keepProps.push("dateTime"),d.prototype.getTimeTicks=t,g(d,"init",q));return d};var e=function(){function d(d){this.axis=d}d.prototype.normalizeTimeTickInterval=function(d,a){var e=a||[["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]];a=e[e.length-1];var h=C[a[0]],g=a[1],m;for(m=0;m<e.length&&!(a=e[m],h=C[a[0]],g=a[1],e[m+1]&&d<=(h*g[g.length-1]+C[e[m+1][0]])/2);m++);h===C.year&&d<5*h&&(g=[1,2,5]);d=E(d/h,g,"year"===a[0]?Math.max(y(d/h),1):1);return{unitRange:h,count:d,unitName:a[0]}};d.prototype.getXDateFormat=function(d,a){var e=this.axis,h=e.chart.time;return e.closestPointRange?
h.getDateFormat(e.closestPointRange,d,e.options.startOfWeek,a)||h.resolveDTLFormat(a.year).main:h.resolveDTLFormat(a.day).main};return d}();a.Additions=e})(D||(D={}));return D});L(g,"Core/Axis/LogarithmicAxis.js",[g["Core/Utilities.js"]],function(a){var g=a.addEvent,y=a.normalizeTickInterval,E=a.pick,C;(function(a){function z(a){var d=this.logarithmic;"logarithmic"!==a.userOptions.type?this.logarithmic=void 0:d||(this.logarithmic=new n(this))}function t(){var a=this.logarithmic;a&&(this.lin2val=function(d){return a.lin2log(d)},
this.val2lin=function(d){return a.log2lin(d)})}var q=[];a.compose=function(a){-1===q.indexOf(a)&&(q.push(a),a.keepProps.push("logarithmic"),g(a,"init",z),g(a,"afterInit",t));return a};var n=function(){function a(d){this.axis=d}a.prototype.getLogTickPositions=function(d,a,e,g){var h=this.axis,k=h.len,m=h.options,n=[];g||(this.minorAutoInterval=void 0);if(.5<=d)d=Math.round(d),n=h.getLinearTickPositions(d,a,e);else if(.08<=d){var q=Math.floor(a),x,c=m=void 0;for(k=.3<d?[1,2,4]:.15<d?[1,2,4,6,8]:[1,
2,3,4,5,6,7,8,9];q<e+1&&!c;q++){var u=k.length;for(x=0;x<u&&!c;x++){var f=this.log2lin(this.lin2log(q)*k[x]);f>a&&(!g||m<=e)&&"undefined"!==typeof m&&n.push(m);m>e&&(c=!0);m=f}}}else a=this.lin2log(a),e=this.lin2log(e),d=g?h.getMinorTickInterval():m.tickInterval,d=E("auto"===d?null:d,this.minorAutoInterval,m.tickPixelInterval/(g?5:1)*(e-a)/((g?k/h.tickPositions.length:k)||1)),d=y(d),n=h.getLinearTickPositions(d,a,e).map(this.log2lin),g||(this.minorAutoInterval=d/5);g||(h.tickInterval=d);return n};
a.prototype.lin2log=function(d){return Math.pow(10,d)};a.prototype.log2lin=function(d){return Math.log(d)/Math.LN10};return a}();a.Additions=n})(C||(C={}));return C});L(g,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[g["Core/Utilities.js"]],function(a){var g=a.erase,y=a.extend,E=a.isNumber,C;(function(a){var z=[],t;a.compose=function(a,e){t||(t=a);-1===z.indexOf(e)&&(z.push(e),y(e.prototype,q.prototype));return e};var q=function(){function a(){}a.prototype.getPlotBandPath=function(a,d,h){void 0===
h&&(h=this.options);var e=this.getPlotLinePath({value:d,force:!0,acrossPanes:h.acrossPanes}),g=[],n=this.horiz;d=!E(this.min)||!E(this.max)||a<this.min&&d<this.min||a>this.max&&d>this.max;a=this.getPlotLinePath({value:a,force:!0,acrossPanes:h.acrossPanes});h=1;if(a&&e){if(d){var q=a.toString()===e.toString();h=0}for(d=0;d<a.length;d+=2){var t=a[d],K=a[d+1],z=e[d],x=e[d+1];"M"!==t[0]&&"L"!==t[0]||"M"!==K[0]&&"L"!==K[0]||"M"!==z[0]&&"L"!==z[0]||"M"!==x[0]&&"L"!==x[0]||(n&&z[1]===t[1]?(z[1]+=h,x[1]+=
h):n||z[2]!==t[2]||(z[2]+=h,x[2]+=h),g.push(["M",t[1],t[2]],["L",K[1],K[2]],["L",x[1],x[2]],["L",z[1],z[2]],["Z"]));g.isFlat=q}}return g};a.prototype.addPlotBand=function(a){return this.addPlotBandOrLine(a,"plotBands")};a.prototype.addPlotLine=function(a){return this.addPlotBandOrLine(a,"plotLines")};a.prototype.addPlotBandOrLine=function(a,d){var e=this,g=this.userOptions,k=new t(this,a);this.visible&&(k=k.render());if(k){this._addedPlotLB||(this._addedPlotLB=!0,(g.plotLines||[]).concat(g.plotBands||
[]).forEach(function(a){e.addPlotBandOrLine(a)}));if(d){var n=g[d]||[];n.push(a);g[d]=n}this.plotLinesAndBands.push(k)}return k};a.prototype.removePlotBandOrLine=function(a){var d=this.plotLinesAndBands,e=this.options,m=this.userOptions;if(d){for(var k=d.length;k--;)d[k].id===a&&d[k].destroy();[e.plotLines||[],m.plotLines||[],e.plotBands||[],m.plotBands||[]].forEach(function(d){for(k=d.length;k--;)(d[k]||{}).id===a&&g(d,d[k])})}};a.prototype.removePlotBand=function(a){this.removePlotBandOrLine(a)};
a.prototype.removePlotLine=function(a){this.removePlotBandOrLine(a)};return a}()})(C||(C={}));return C});L(g,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[g["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],g["Core/Utilities.js"]],function(a,g){var z=g.arrayMax,E=g.arrayMin,C=g.defined,D=g.destroyObjectProperties,J=g.erase,t=g.fireEvent,q=g.merge,n=g.objectEach,e=g.pick;g=function(){function d(a,d){this.axis=a;d&&(this.options=d,this.id=d.id)}d.compose=function(e){return a.compose(d,e)};d.prototype.render=
function(){t(this,"render");var a=this,d=a.axis,g=d.horiz,r=d.logarithmic,B=a.options,G=B.color,K=e(B.zIndex,0),z=B.events,x={},c=d.chart.renderer,u=B.label,f=a.label,l=B.to,b=B.from,v=B.value,A=a.svgElem,p=[],M=C(b)&&C(l);p=C(v);var F=!A,N={"class":"highcharts-plot-"+(M?"band ":"line ")+(B.className||"")},Q=M?"bands":"lines";r&&(b=r.log2lin(b),l=r.log2lin(l),v=r.log2lin(v));d.chart.styledMode||(p?(N.stroke=G||"#999999",N["stroke-width"]=e(B.width,1),B.dashStyle&&(N.dashstyle=B.dashStyle)):M&&(N.fill=
G||"#e6ebf5",B.borderWidth&&(N.stroke=B.borderColor,N["stroke-width"]=B.borderWidth)));x.zIndex=K;Q+="-"+K;(r=d.plotLinesAndBandsGroups[Q])||(d.plotLinesAndBandsGroups[Q]=r=c.g("plot-"+Q).attr(x).add());F&&(a.svgElem=A=c.path().attr(N).add(r));if(p)p=d.getPlotLinePath({value:v,lineWidth:A.strokeWidth(),acrossPanes:B.acrossPanes});else if(M)p=d.getPlotBandPath(b,l,B);else return;!a.eventsAdded&&z&&(n(z,function(b,c){A.on(c,function(b){z[c].apply(a,[b])})}),a.eventsAdded=!0);(F||!A.d)&&p&&p.length?
A.attr({d:p}):A&&(p?(A.show(),A.animate({d:p})):A.d&&(A.hide(),f&&(a.label=f=f.destroy())));u&&(C(u.text)||C(u.formatter))&&p&&p.length&&0<d.width&&0<d.height&&!p.isFlat?(u=q({align:g&&M&&"center",x:g?!M&&4:10,verticalAlign:!g&&M&&"middle",y:g?M?16:10:M?6:-4,rotation:g&&!M&&90},u),this.renderLabel(u,p,M,K)):f&&f.hide();return a};d.prototype.renderLabel=function(a,d,e,g){var h=this.axis,k=h.chart.renderer,m=this.label;m||(this.label=m=k.text(this.getLabelText(a),0,0,a.useHTML).attr({align:a.textAlign||
a.align,rotation:a.rotation,"class":"highcharts-plot-"+(e?"band":"line")+"-label "+(a.className||""),zIndex:g}).add(),h.chart.styledMode||m.css(q({textOverflow:"ellipsis"},a.style)));g=d.xBounds||[d[0][1],d[1][1],e?d[2][1]:d[0][1]];d=d.yBounds||[d[0][2],d[1][2],e?d[2][2]:d[0][2]];e=E(g);k=E(d);m.align(a,!1,{x:e,y:k,width:z(g)-e,height:z(d)-k});m.alignValue&&"left"!==m.alignValue||(a=a.clip?h.width:h.chart.chartWidth,m.css({width:(90===m.rotation?h.height-(m.alignAttr.y-h.top):a-(m.alignAttr.x-h.left))+
"px"}));m.show(!0)};d.prototype.getLabelText=function(a){return C(a.formatter)?a.formatter.call(this):a.text};d.prototype.destroy=function(){J(this.axis.plotLinesAndBands,this);delete this.axis;D(this)};return d}();"";"";return g});L(g,"Core/Tooltip.js",[g["Core/FormatUtilities.js"],g["Core/Globals.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Utilities.js"]],function(a,g,y,E,C){var z=a.format,J=g.doc,t=y.distribute,q=C.clamp,n=C.css,e=C.discardElement,
d=C.extend,h=C.fireEvent,m=C.isArray,k=C.isNumber,r=C.isString,B=C.merge,G=C.pick,K=C.splat,I=C.syncTimeout;a=function(){function a(c,a){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=c;this.init(c,a)}a.prototype.applyFilter=function(){var c=this.chart;c.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+c.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"}}]}]})};a.prototype.bodyFormatter=function(c){return c.map(function(c){var f=c.series.tooltipOptions;return(f[(c.point.formatPrefix||"point")+"Formatter"]||c.point.tooltipFormatter).call(c.point,f[(c.point.formatPrefix||"point")+"Format"]||
"")})};a.prototype.cleanSplit=function(c){this.chart.series.forEach(function(a){var f=a&&a.tt;f&&(!f.isActive||c?a.tt=f.destroy():f.isActive=!1)})};a.prototype.defaultFormatter=function(c){var a=this.points||K(this);var f=[c.tooltipFooterHeaderFormatter(a[0])];f=f.concat(c.bodyFormatter(a));f.push(c.tooltipFooterHeaderFormatter(a[0],!0));return f};a.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(),e(this.container));C.clearTimeout(this.hideTimer);C.clearTimeout(this.tooltipTimeout)};a.prototype.getAnchor=function(c,a){var f=this.chart,d=f.pointer,b=f.inverted,e=f.plotTop;f=f.plotLeft;c=K(c);c[0].series&&c[0].series.yAxis&&!c[0].series.yAxis.options.reversedStacks&&(c=c.slice().reverse());if(this.followPointer&&a)"undefined"===typeof a.chartX&&(a=d.normalize(a)),c=[a.chartX-f,a.chartY-e];else if(c[0].tooltipPos)c=c[0].tooltipPos;else{var h=0,g=0;c.forEach(function(b){if(b=
b.pos(!0))h+=b[0],g+=b[1]});h/=c.length;g/=c.length;this.shared&&1<c.length&&a&&(b?h=a.chartX:g=a.chartY);c=[h-f,g-e]}return c.map(Math.round)};a.prototype.getClassName=function(c,a,f){var d=c.series,b=d.options;return[this.options.className,"highcharts-label",f&&"highcharts-tooltip-header",a?"highcharts-tooltip-box":"highcharts-tooltip",!f&&"highcharts-color-"+G(c.colorIndex,d.colorIndex),b&&b.className].filter(r).join(" ")};a.prototype.getLabel=function(){var c=this,a=this.chart.styledMode,f=this.options,
d=this.split&&this.allowShared,b=f.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),e,h=this.chart.renderer;if(c.label){var p=!c.label.hasClass("highcharts-label");(d&&!p||!d&&p)&&c.destroy()}if(!this.label){if(this.outside){p=this.chart.options.chart.style;var k=E.getRendererType();this.container=e=g.doc.createElement("div");e.className="highcharts-tooltip-container";n(e,{position:"absolute",top:"1px",pointerEvents:b,zIndex:Math.max(this.options.style.zIndex||0,(p&&p.zIndex||0)+3)});
g.doc.body.appendChild(e);this.renderer=h=new k(e,0,0,p,void 0,void 0,h.styledMode)}d?this.label=h.g("tooltip"):(this.label=h.label("",0,0,f.shape,void 0,void 0,f.useHTML,void 0,"tooltip").attr({padding:f.padding,r:f.borderRadius}),a||this.label.attr({fill:f.backgroundColor,"stroke-width":f.borderWidth}).css(f.style).css({pointerEvents:b}).shadow(f.shadow));a&&f.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(c.outside&&!c.split){var m=this.label,
x=m.xSetter,r=m.ySetter;m.xSetter=function(b){x.call(m,c.distance);e.style.left=b+"px"};m.ySetter=function(b){r.call(m,c.distance);e.style.top=b+"px"}}this.label.attr({zIndex:8}).add()}return this.label};a.prototype.getPosition=function(c,a,f){var d=this.chart,b=this.distance,e={},h=d.inverted&&f.h||0,g=this.outside,u=g?J.documentElement.clientWidth-2*b:d.chartWidth,k=g?Math.max(J.body.scrollHeight,J.documentElement.scrollHeight,J.body.offsetHeight,J.documentElement.offsetHeight,J.documentElement.clientHeight):
d.chartHeight,m=d.pointer.getChartPosition(),n=function(e){var h="x"===e;return[e,h?u:k,h?c:a].concat(g?[h?c*m.scaleX:a*m.scaleY,h?m.left-b+(f.plotX+d.plotLeft)*m.scaleX:m.top-b+(f.plotY+d.plotTop)*m.scaleY,0,h?u:k]:[h?c:a,h?f.plotX+d.plotLeft:f.plotY+d.plotTop,h?d.plotLeft:d.plotTop,h?d.plotLeft+d.plotWidth:d.plotTop+d.plotHeight])},x=n("y"),r=n("x"),w;n=!!f.negative;!d.polar&&d.hoverSeries&&d.hoverSeries.yAxis&&d.hoverSeries.yAxis.reversed&&(n=!n);var q=!this.followPointer&&G(f.ttBelow,!d.inverted===
n),t=function(c,f,a,d,l,v,p){var A=g?"y"===c?b*m.scaleY:b*m.scaleX:b,u=(a-d)/2,k=d<l-b,H=l+b+d<f,n=l-A-a+u;l=l+A-u;if(q&&H)e[c]=l;else if(!q&&k)e[c]=n;else if(k)e[c]=Math.min(p-d,0>n-h?n:n-h);else if(H)e[c]=Math.max(v,l+h+a>f?l:l+h);else return!1},B=function(c,f,a,d,h){var l;h<b||h>f-b?l=!1:e[c]=h<a/2?1:h>f-d/2?f-d-2:h-a/2;return l},z=function(b){var c=x;x=r;r=c;w=b},H=function(){!1!==t.apply(0,x)?!1!==B.apply(0,r)||w||(z(!0),H()):w?e.x=e.y=0:(z(!0),H())};(d.inverted||1<this.len)&&z();H();return e};
a.prototype.hide=function(c){var a=this;C.clearTimeout(this.hideTimer);c=G(c,this.options.hideDelay);this.isHidden||(this.hideTimer=I(function(){a.getLabel().fadeOut(c?void 0:c);a.isHidden=!0},c))};a.prototype.init=function(c,a){this.chart=c;this.options=a;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=a.split&&!c.inverted&&!c.polar;this.shared=a.shared||this.split;this.outside=G(a.outside,!(!c.scrollablePixelsX&&!c.scrollablePixelsY))};a.prototype.shouldStickOnContact=function(c){return!(this.followPointer||
!this.options.stickOnContact||c&&!this.chart.pointer.inClass(c.target,"highcharts-tooltip"))};a.prototype.move=function(c,a,f,e){var b=this,h=b.now,l=!1!==b.options.animation&&!b.isHidden&&(1<Math.abs(c-h.x)||1<Math.abs(a-h.y)),g=b.followPointer||1<b.len;d(h,{x:l?(2*h.x+c)/3:c,y:l?(h.y+a)/2:a,anchorX:g?void 0:l?(2*h.anchorX+f)/3:f,anchorY:g?void 0:l?(h.anchorY+e)/2:e});b.getLabel().attr(h);b.drawTracker();l&&(C.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){b&&b.move(c,
a,f,e)},32))};a.prototype.refresh=function(c,a){var f=this.chart,d=this.options,b=f.pointer,e=K(c),g=e[0],p=[],u=d.formatter||this.defaultFormatter,k=this.shared,n=f.styledMode,x={};if(d.enabled&&g.series){C.clearTimeout(this.hideTimer);this.allowShared=!(!m(c)&&c.series&&c.series.noSharedTooltip);this.followPointer=!this.split&&g.series.tooltipOptions.followPointer;c=this.getAnchor(c,a);var r=c[0],q=c[1];k&&this.allowShared?(b.applyInactiveState(e),e.forEach(function(b){b.setState("hover");p.push(b.getLabelConfig())}),
x={x:g.category,y:g.y},x.points=p):x=g.getLabelConfig();this.len=p.length;u=u.call(x,this);k=g.series;this.distance=G(k.tooltipOptions.distance,16);if(!1===u)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(u,e);else{var w=r,t=q;a&&b.isDirectTouch&&(w=a.chartX-f.plotLeft,t=a.chartY-f.plotTop);if(f.polar||!1===k.options.clip||e.some(function(c){return b.isDirectTouch||c.series.shouldShowTooltip(w,t)}))a=this.getLabel(),d.style.width&&!n||a.css({width:f.spacingBox.width+"px"}),a.attr({text:u&&
u.join?u.join(""):u}),a.addClass(this.getClassName(g),!0),n||a.attr({stroke:d.borderColor||g.color||k.color||"#666666"}),this.updatePosition({plotX:r,plotY:q,negative:g.negative,ttBelow:g.ttBelow,h:c[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}h(this,"refresh")}};a.prototype.renderSplit=function(c,a){function f(b,c,a,f,d){void 0===d&&(d=!0);a?(c=R?0:ba,b=q(b-f/2,P.left,P.right-f-(e.outside?U:0))):(c-=Z,b=d?b-f-I:b+I,b=q(b,d?b:P.left,
P.right));return{x:b,y:c}}var e=this,b=e.chart,h=e.chart,g=h.chartWidth,p=h.chartHeight,u=h.plotHeight,k=h.plotLeft,m=h.plotTop,n=h.pointer,x=h.scrollablePixelsY;x=void 0===x?0:x;var B=h.scrollablePixelsX,w=h.scrollingContainer;w=void 0===w?{scrollLeft:0,scrollTop:0}:w;var z=w.scrollLeft;w=w.scrollTop;var K=h.styledMode,I=e.distance,y=e.options,H=e.options.positioner,P=e.outside&&"number"!==typeof B?J.documentElement.getBoundingClientRect():{left:z,right:z+g,top:w,bottom:w+p},O=e.getLabel(),X=this.renderer||
b.renderer,R=!(!b.xAxis[0]||!b.xAxis[0].opposite);b=n.getChartPosition();var U=b.left;b=b.top;var Z=m+w,C=0,ba=u-x;r(c)&&(c=[!1,c]);c=c.slice(0,a.length+1).reduce(function(b,c,d){if(!1!==c&&""!==c){d=a[d-1]||{isHeader:!0,plotX:a[0].plotX,plotY:u,series:{}};var h=d.isHeader,l=h?e:d.series;c=c.toString();var g=l.tt,v=d.isHeader;var p=d.series;g||(g={padding:y.padding,r:y.borderRadius},K||(g.fill=y.backgroundColor,g["stroke-width"]=y.borderWidth),g=X.label("",0,0,y[v?"headerShape":"shape"],void 0,void 0,
y.useHTML).addClass(e.getClassName(d,!0,v)).attr(g).add(O));g.isActive=!0;g.attr({text:c});K||g.css(y.style).shadow(y.shadow).attr({stroke:y.borderColor||d.color||p.color||"#333333"});l=l.tt=g;v=l.getBBox();c=v.width+l.strokeWidth();h&&(C=v.height,ba+=C,R&&(Z-=C));p=d.plotX;p=void 0===p?0:p;g=d.plotY;g=void 0===g?0:g;var A=d.series;if(d.isHeader){p=k+p;var n=m+u/2}else{var w=A.xAxis,F=A.yAxis;p=w.pos+q(p,-I,w.len+I);A.shouldShowTooltip(0,F.pos-m+g,{ignoreX:!0})&&(n=F.pos+g)}p=q(p,P.left-I,P.right+
I);"number"===typeof n?(v=v.height+1,g=H?H.call(e,c,v,d):f(p,n,h,c),b.push({align:H?0:void 0,anchorX:p,anchorY:n,boxWidth:c,point:d,rank:G(g.rank,h?1:0),size:v,target:g.y,tt:l,x:g.x})):l.isActive=!1}return b},[]);!H&&c.some(function(b){var c=(e.outside?U:0)+b.anchorX;return c<P.left&&c+b.boxWidth<P.right?!0:c<U-P.left+b.boxWidth&&P.right-c>c})&&(c=c.map(function(b){var c=f(b.anchorX,b.anchorY,b.point.isHeader,b.boxWidth,!1);return d(b,{target:c.y,x:c.x})}));e.cleanSplit();t(c,ba);var D=U,E=U;c.forEach(function(b){var c=
b.x,a=b.boxWidth;b=b.isHeader;b||(e.outside&&U+c<D&&(D=U+c),!b&&e.outside&&D+a>E&&(E=U+c))});c.forEach(function(b){var c=b.x,a=b.anchorX,f=b.pos,d=b.point.isHeader;f={visibility:"undefined"===typeof f?"hidden":"inherit",x:c,y:(f||0)+Z,anchorX:a,anchorY:b.anchorY};if(e.outside&&c<a){var h=U-D;0<h&&(d||(f.x=c+h,f.anchorX=a+h),d&&(f.x=(E-D)/2,f.anchorX=a+h))}b.tt.attr(f)});c=e.container;x=e.renderer;e.outside&&c&&x&&(h=O.getBBox(),x.setSize(h.width+h.x,h.height+h.y,!1),c.style.left=D+"px",c.style.top=
b+"px")};a.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var c=this.chart,a=this.label,f=this.shared?c.hoverPoints:c.hoverPoint;if(a&&f){var d={x:0,y:0,width:0,height:0};f=this.getAnchor(f);var b=a.getBBox();f[0]+=c.plotLeft-a.translateX;f[1]+=c.plotTop-a.translateY;d.x=Math.min(0,f[0]);d.y=Math.min(0,f[1]);d.width=0>f[0]?Math.max(Math.abs(f[0]),b.width-f[0]):Math.max(Math.abs(f[0]),b.width);d.height=0>f[1]?Math.max(Math.abs(f[1]),b.height-Math.abs(f[1])):Math.max(Math.abs(f[1]),
b.height);this.tracker?this.tracker.attr(d):(this.tracker=a.renderer.rect(d).addClass("highcharts-tracker").add(a),c.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()};a.prototype.styledModeFormat=function(c){return c.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}"')};a.prototype.tooltipFooterHeaderFormatter=
function(c,a){var f=c.series,d=f.tooltipOptions,b=f.xAxis,e=b&&b.dateTime;b={isFooter:a,labelConfig:c};var g=d.xDateFormat,p=d[a?"footerFormat":"headerFormat"];h(this,"headerFormatter",b,function(b){e&&!g&&k(c.key)&&(g=e.getXDateFormat(c.key,d.dateTimeLabelFormats));e&&g&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(b){p=p.replace("{point."+b+"}","{point."+b+":"+g+"}")});f.chart.styledMode&&(p=this.styledModeFormat(p));b.text=z(p,{point:c,series:f},this.chart)});return b.text};a.prototype.update=
function(c){this.destroy();B(!0,this.chart.options.tooltip.userOptions,c);this.init(this.chart,B(!0,this.options,c))};a.prototype.updatePosition=function(c){var a=this.chart,f=this.distance,d=this.options,b=a.pointer,e=this.getLabel(),h=b.getChartPosition();b=h.left;var g=h.top,k=h.scaleX;h=h.scaleY;var m=(d.positioner||this.getPosition).call(this,e.width,e.height,c),x=(c.plotX||0)+a.plotLeft;c=(c.plotY||0)+a.plotTop;if(this.outside){d.positioner&&(m.x+=b-f,m.y+=g-f);f=d.borderWidth+2*f;this.renderer.setSize(e.width+
f,e.height+f,!1);if(1!==k||1!==h)n(this.container,{transform:"scale(".concat(k,", ").concat(h,")")}),x*=k,c*=h;x+=b-m.x;c+=g-m.y}this.move(Math.round(m.x),Math.round(m.y||0),x,c)};return a}();"";return a});L(g,"Core/Series/Point.js",[g["Core/Renderer/HTML/AST.js"],g["Core/Animation/AnimationUtilities.js"],g["Core/Defaults.js"],g["Core/FormatUtilities.js"],g["Core/Utilities.js"]],function(a,g,y,E,C){var z=g.animObject,J=y.defaultOptions,t=E.format,q=C.addEvent,n=C.defined,e=C.erase,d=C.extend,h=C.fireEvent,
m=C.getNestedProperty,k=C.isArray,r=C.isFunction,B=C.isNumber,G=C.isObject,K=C.merge,I=C.objectEach,x=C.pick,c=C.syncTimeout,u=C.removeEvent,f=C.uniqueKey;g=function(){function g(){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}g.prototype.animateBeforeDestroy=function(){var b=this,c={x:b.startXPos,opacity:0},a=b.getGraphicalProps();
a.singular.forEach(function(a){b[a]=b[a].animate("dataLabel"===a?{x:b[a].startXPos,y:b[a].startYPos,opacity:0}:c)});a.plural.forEach(function(c){b[c].forEach(function(c){c.element&&c.animate(d({x:b.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})};g.prototype.applyOptions=function(b,c){var a=this.series,f=a.options.pointValKey||a.pointValKey;b=g.prototype.optionsToObject.call(this,b);d(this,b);this.options=this.options?d(this.options,b):b;b.group&&delete this.group;b.dataLabels&&delete this.dataLabels;
f&&(this.y=g.prototype.getNestedProperty.call(this,f));this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof c&&a.xAxis&&a.xAxis.hasNames&&(this.x=a.xAxis.nameToX(this));"undefined"===typeof this.x&&a?this.x="undefined"===typeof c?a.autoIncrement():c:B(b.x)&&a.options.relativeXValue&&(this.x=a.autoIncrement(b.x));return this};g.prototype.destroy=function(){function b(){if(a.graphic||a.graphics||a.dataLabel||
a.dataLabels)u(a),a.destroyElements();for(l in a)a[l]=null}var a=this,f=a.series,d=f.chart;f=f.options.dataSorting;var h=d.hoverPoints,g=z(a.series.chart.renderer.globalAnimation),l;a.legendItem&&d.legend.destroyItem(a);h&&(a.setState(),e(h,a),h.length||(d.hoverPoints=null));if(a===d.hoverPoint)a.onMouseOut();f&&f.enabled?(this.animateBeforeDestroy(),c(b,g.duration)):b();d.pointCount--};g.prototype.destroyElements=function(b){var c=this;b=c.getGraphicalProps(b);b.singular.forEach(function(b){c[b]=
c[b].destroy()});b.plural.forEach(function(b){c[b].forEach(function(b){b&&b.element&&b.destroy()});delete c[b]})};g.prototype.firePointEvent=function(b,c,a){var f=this,d=this.series.options;(d.point.events[b]||f.options&&f.options.events&&f.options.events[b])&&f.importEvents();"click"===b&&d.allowPointSelect&&(a=function(b){f.select&&f.select(null,b.ctrlKey||b.metaKey||b.shiftKey)});h(f,b,c,a)};g.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":
"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};g.prototype.getGraphicalProps=function(b){var c=this,a=[],f={singular:[],plural:[]},d;b=b||{graphic:1,dataLabel:1};b.graphic&&a.push("graphic","shadowGroup");b.dataLabel&&a.push("dataLabel",
"dataLabelPath","dataLabelUpper","connector");for(d=a.length;d--;){var e=a[d];c[e]&&f.singular.push(e)}["graphic","dataLabel","connector"].forEach(function(a){var d=a+"s";b[a]&&c[d]&&f.plural.push(d)});return f};g.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}};g.prototype.getNestedProperty=function(b){if(b)return 0===
b.indexOf("custom.")?m(b,this.options):this[b]};g.prototype.getZone=function(){var b=this.series,c=b.zones;b=b.zoneAxis||"y";var a,f=0;for(a=c[f];this[b]>=a.value;)a=c[++f];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=a&&a.color&&!this.options.color?a.color:this.nonZonedColor;return a};g.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};g.prototype.init=function(b,c,a){this.series=b;this.applyOptions(c,
a);this.id=n(this.id)?this.id:f();this.resolveColor();b.chart.pointCount++;h(this,"afterInit");return this};g.prototype.isValid=function(){return null!==this.x&&B(this.y)};g.prototype.optionsToObject=function(b){var c=this.series,a=c.options.keys,f=a||c.pointArrayMap||["y"],d=f.length,e={},h=0,l=0;if(B(b)||null===b)e[f[0]]=b;else if(k(b))for(!a&&b.length>d&&(c=typeof b[0],"string"===c?e.name=b[0]:"number"===c&&(e.x=b[0]),h++);l<d;)a&&"undefined"===typeof b[h]||(0<f[l].indexOf(".")?g.prototype.setNestedProperty(e,
b[h],f[l]):e[f[l]]=b[h]),h++,l++;else"object"===typeof b&&(e=b,b.dataLabels&&(c._hasPointLabels=!0),b.marker&&(c._hasPointMarkers=!0));return e};g.prototype.pos=function(b,c){void 0===c&&(c=this.plotY);var a=this.plotX,f=this.series,d=f.chart,e=f.xAxis;f=f.yAxis;var h=0,g=0;if(B(a)&&B(c))return b&&(h=e?e.pos:d.plotLeft,g=f?f.pos:d.plotTop),d.inverted&&e&&f?[f.len-c+g,e.len-a+h]:[a+h,c+g]};g.prototype.resolveColor=function(){var b=this.series,c=b.chart.styledMode;var a=b.chart.options.chart.colorCount;
delete this.nonZonedColor;if(b.options.colorByPoint){if(!c){a=b.options.colors||b.chart.options.colors;var f=a[b.colorCounter];a=a.length}c=b.colorCounter;b.colorCounter++;b.colorCounter===a&&(b.colorCounter=0)}else c||(f=b.color),c=b.colorIndex;this.colorIndex=x(this.options.colorIndex,c);this.color=x(this.options.color,f)};g.prototype.setNestedProperty=function(b,c,a){a.split(".").reduce(function(b,a,f,d){b[a]=d.length-1===f?c:G(b[a],!0)?b[a]:{};return b[a]},b);return b};g.prototype.shouldDraw=
function(){return!this.isNull};g.prototype.tooltipFormatter=function(b){var c=this.series,a=c.tooltipOptions,f=x(a.valueDecimals,""),d=a.valuePrefix||"",e=a.valueSuffix||"";c.chart.styledMode&&(b=c.chart.tooltip.styledModeFormat(b));(c.pointArrayMap||["y"]).forEach(function(c){c="{point."+c;if(d||e)b=b.replace(RegExp(c+"}","g"),d+c+"}"+e);b=b.replace(RegExp(c+"}","g"),c+":,."+f+"f}")});return t(b,{point:this,series:this.series},c.chart)};g.prototype.update=function(b,c,a,f){function d(){e.applyOptions(b);
var f=g&&e.hasMockGraphic;f=null===e.y?!f:f;g&&f&&(e.graphic=g.destroy(),delete e.hasMockGraphic);G(b,!0)&&(g&&g.element&&b&&b.marker&&"undefined"!==typeof b.marker.symbol&&(e.graphic=g.destroy()),b&&b.dataLabels&&e.dataLabel&&(e.dataLabel=e.dataLabel.destroy()),e.connector&&(e.connector=e.connector.destroy()));v=e.index;h.updateParallelArrays(e,v);p.data[v]=G(p.data[v],!0)||G(b,!0)?e.options:x(b,p.data[v]);h.isDirty=h.isDirtyData=!0;!h.fixedBox&&h.hasCartesianSeries&&(l.isDirtyBox=!0);"point"===
p.legendType&&(l.isDirtyLegend=!0);c&&l.redraw(a)}var e=this,h=e.series,g=e.graphic,l=h.chart,p=h.options,v;c=x(c,!0);!1===f?d():e.firePointEvent("update",{options:b},d)};g.prototype.remove=function(b,c){this.series.removePoint(this.series.data.indexOf(this),b,c)};g.prototype.select=function(b,c){var a=this,f=a.series,d=f.chart;this.selectedStaging=b=x(b,!a.selected);a.firePointEvent(b?"select":"unselect",{accumulate:c},function(){a.selected=a.options.selected=b;f.options.data[f.data.indexOf(a)]=
a.options;a.setState(b&&"select");c||d.getSelectedPoints().forEach(function(b){var c=b.series;b.selected&&b!==a&&(b.selected=b.options.selected=!1,c.options.data[c.data.indexOf(b)]=b.options,b.setState(d.hoverPoints&&c.options.inactiveOtherPoints?"inactive":""),b.firePointEvent("unselect"))})});delete this.selectedStaging};g.prototype.onMouseOver=function(b){var c=this.series.chart,a=c.pointer;b=b?a.normalize(b):a.getChartCoordinatesFromPoint(this,c.inverted);a.runPointActions(b,this)};g.prototype.onMouseOut=
function(){var b=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(b.hoverPoints||[]).forEach(function(b){b.setState()});b.hoverPoints=b.hoverPoint=null};g.prototype.importEvents=function(){if(!this.hasImportedEvents){var b=this,c=K(b.series.options.point,b.options).events;b.events=c;I(c,function(c,a){r(c)&&q(b,a,c)});this.hasImportedEvents=!0}};g.prototype.setState=function(b,c){var f=this.series,e=this.state,g=f.options.states[b||"normal"]||{},l=J.plotOptions[f.type].marker&&
f.options.marker,v=l&&!1===l.enabled,k=l&&l.states&&l.states[b||"normal"]||{},u=!1===k.enabled,m=this.marker||{},n=f.chart,r=l&&f.markerAttribs,q=f.halo,t,G=f.stateMarkerGraphic;b=b||"";if(!(b===this.state&&!c||this.selected&&"select"!==b||!1===g.enabled||b&&(u||v&&!1===k.enabled)||b&&m.states&&m.states[b]&&!1===m.states[b].enabled)){this.state=b;r&&(t=f.markerAttribs(this,b));if(this.graphic&&!this.hasMockGraphic){e&&this.graphic.removeClass("highcharts-point-"+e);b&&this.graphic.addClass("highcharts-point-"+
b);if(!n.styledMode){e=f.pointAttribs(this,b);var H=x(n.options.chart.animation,g.animation);var P=e.opacity;f.options.inactiveOtherPoints&&B(P)&&((this.dataLabels||[]).forEach(function(b){b&&!b.hasClass("highcharts-data-label-hidden")&&b.animate({opacity:P},H)}),this.connector&&this.connector.animate({opacity:P},H));this.graphic.animate(e,H)}t&&this.graphic.animate(t,x(n.options.chart.animation,k.animation,l.animation));G&&G.hide()}else{if(b&&k){l=m.symbol||f.symbol;G&&G.currentSymbol!==l&&(G=G.destroy());
if(t)if(G)G[c?"animate":"attr"]({x:t.x,y:t.y});else l&&(f.stateMarkerGraphic=G=n.renderer.symbol(l,t.x,t.y,t.width,t.height).add(f.markerGroup),G.currentSymbol=l);!n.styledMode&&G&&"inactive"!==this.state&&G.attr(f.pointAttribs(this,b))}G&&(G[b&&this.isInside?"show":"hide"](),G.element.point=this,G.addClass(this.getClassName(),!0))}g=g.halo;t=(G=this.graphic||G)&&G.visibility||"inherit";g&&g.size&&G&&"hidden"!==t&&!this.isCluster?(q||(f.halo=q=n.renderer.path().add(G.parentGroup)),q.show()[c?"animate":
"attr"]({d:this.haloPath(g.size)}),q.attr({"class":"highcharts-halo highcharts-color-"+x(this.colorIndex,f.colorIndex)+(this.className?" "+this.className:""),visibility:t,zIndex:-1}),q.point=this,n.styledMode||q.attr(d({fill:this.color||f.color,"fill-opacity":g.opacity},a.filterUserAttributes(g.attributes||{})))):q&&q.point&&q.point.haloPath&&q.animate({d:q.point.haloPath(0)},null,q.hide);h(this,"afterSetState",{state:b})}};g.prototype.haloPath=function(b){var c=this.pos();return c?this.series.chart.renderer.symbols.circle(Math.floor(c[0])-
b,c[1]-b,2*b,2*b):[]};return g}();"";return g});L(g,"Core/Pointer.js",[g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Tooltip.js"],g["Core/Utilities.js"]],function(a,g,y,E){var z=a.parse,D=g.charts,J=g.noop,t=E.addEvent,q=E.attr,n=E.css,e=E.defined,d=E.extend,h=E.find,m=E.fireEvent,k=E.isNumber,r=E.isObject,B=E.objectEach,G=E.offset,K=E.pick,I=E.splat;a=function(){function a(c,a){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=c;this.hasDragged=
!1;this.options=a;this.init(c,a)}a.prototype.applyInactiveState=function(c){var a=[],f;(c||[]).forEach(function(c){f=c.series;a.push(f);f.linkedParent&&a.push(f.linkedParent);f.linkedSeries&&(a=a.concat(f.linkedSeries));f.navigatorSeries&&a.push(f.navigatorSeries)});this.chart.series.forEach(function(c){-1===a.indexOf(c)?c.setState("inactive",!0):c.options.inactiveOtherPoints&&c.setAllPointsToState("inactive")})};a.prototype.destroy=function(){var c=this;this.eventsToUnbind.forEach(function(c){return c()});
this.eventsToUnbind=[];g.chartCount||(a.unbindDocumentMouseUp&&(a.unbindDocumentMouseUp=a.unbindDocumentMouseUp()),a.unbindDocumentTouchEnd&&(a.unbindDocumentTouchEnd=a.unbindDocumentTouchEnd()));clearInterval(c.tooltipTimeout);B(c,function(a,f){c[f]=void 0})};a.prototype.getSelectionMarkerAttrs=function(c,a){var f=this,d={args:{chartX:c,chartY:a},attrs:{},shapeType:"rect"};m(this,"getSelectionMarkerAttrs",d,function(b){var d=f.chart,e=f.mouseDownX;e=void 0===e?0:e;var h=f.mouseDownY;h=void 0===h?
0:h;var g=f.zoomHor,l=f.zoomVert;b=b.attrs;b.x=d.plotLeft;b.y=d.plotTop;b.width=g?1:d.plotWidth;b.height=l?1:d.plotHeight;g&&(d=c-e,b.width=Math.abs(d),b.x=(0<d?0:d)+e);l&&(d=a-h,b.height=Math.abs(d),b.y=(0<d?0:d)+h)});return d};a.prototype.drag=function(c){var a=this.chart,f=a.options.chart,d=a.plotLeft,b=a.plotTop,e=a.plotWidth,h=a.plotHeight,g=this.mouseDownX||0,k=this.mouseDownY||0,m=r(f.panning)?f.panning&&f.panning.enabled:f.panning,n=f.panKey&&c[f.panKey+"Key"],x=c.chartX,q=c.chartY,t=this.selectionMarker;
t&&t.touch||(x<d?x=d:x>d+e&&(x=d+e),q<b?q=b:q>b+h&&(q=b+h),this.hasDragged=Math.sqrt(Math.pow(g-x,2)+Math.pow(k-q,2)),10<this.hasDragged&&(d=a.isInsidePlot(g-d,k-b,{visiblePlotOnly:!0}),q=this.getSelectionMarkerAttrs(x,q),x=q.shapeType,q=q.attrs,!a.hasCartesianSeries&&!a.mapView||!this.zoomX&&!this.zoomY||!d||n||t||(this.selectionMarker=t=a.renderer[x](),t.attr({"class":"highcharts-selection-marker",zIndex:7}).add(),a.styledMode||t.attr({fill:f.selectionMarkerFill||z("#335cad").setOpacity(.25).get()})),
t&&t.attr(q),d&&!t&&m&&a.pan(c,f.panning)))};a.prototype.dragStart=function(c){var a=this.chart;a.mouseIsDown=c.type;a.cancelClick=!1;a.mouseDownX=this.mouseDownX=c.chartX;a.mouseDownY=this.mouseDownY=c.chartY};a.prototype.getSelectionBox=function(c){var a={args:{marker:c},result:{}};m(this,"getSelectionBox",a,function(a){a.result={x:c.attr?+c.attr("x"):c.x,y:c.attr?+c.attr("y"):c.y,width:c.attr?c.attr("width"):c.width,height:c.attr?c.attr("height"):c.height}});return a.result};a.prototype.drop=function(c){var a=
this,f=this.chart,h=this.hasPinched;if(this.selectionMarker){var b=this.getSelectionBox(this.selectionMarker),g=b.x,A=b.y,p=b.width,r=b.height,x={originalEvent:c,xAxis:[],yAxis:[],x:g,y:A,width:p,height:r},q=!!f.mapView;if(this.hasDragged||h)f.axes.forEach(function(b){if(b.zoomEnabled&&e(b.min)&&(h||a[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&k(g)&&k(A)&&k(p)&&k(r)){var f=b.horiz,d="touchend"===c.type?b.minPixelPadding:0,l=b.toValue((f?g:A)+d);f=b.toValue((f?g+p:A+r)-d);x[b.coll].push({axis:b,min:Math.min(l,
f),max:Math.max(l,f)});q=!0}}),q&&m(f,"selection",x,function(b){f.zoom(d(b,h?{animation:!1}:null))});k(f.index)&&(this.selectionMarker=this.selectionMarker.destroy());h&&this.scaleGroups()}f&&k(f.index)&&(n(f.container,{cursor:f._cursor}),f.cancelClick=10<this.hasDragged,f.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};a.prototype.findNearestKDPoint=function(c,a,f){var d;c.forEach(function(b){var c=!(b.noSharedTooltip&&a)&&0>b.options.findNearestPointBy.indexOf("y");b=b.searchPoint(f,
c);if((c=r(b,!0)&&b.series)&&!(c=!r(d,!0))){c=d.distX-b.distX;var e=d.dist-b.dist,h=(b.series.group&&b.series.group.zIndex)-(d.series.group&&d.series.group.zIndex);c=0<(0!==c&&a?c:0!==e?e:0!==h?h:d.series.index>b.series.index?-1:1)}c&&(d=b)});return d};a.prototype.getChartCoordinatesFromPoint=function(c,a){var f=c.series,d=f.xAxis;f=f.yAxis;var b=c.shapeArgs;if(d&&f){var e=K(c.clientX,c.plotX),h=c.plotY||0;c.isNode&&b&&k(b.x)&&k(b.y)&&(e=b.x,h=b.y);return a?{chartX:f.len+f.pos-h,chartY:d.len+d.pos-
e}:{chartX:e+d.pos,chartY:h+f.pos}}if(b&&b.x&&b.y)return{chartX:b.x,chartY:b.y}};a.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var c=this.chart.container,a=G(c);this.chartPosition={left:a.left,top:a.top,scaleX:1,scaleY:1};var f=c.offsetWidth;c=c.offsetHeight;2<f&&2<c&&(this.chartPosition.scaleX=a.width/f,this.chartPosition.scaleY=a.height/c);return this.chartPosition};a.prototype.getCoordinates=function(c){var a={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(f){a[f.isXAxis?
"xAxis":"yAxis"].push({axis:f,value:f.toValue(c[f.horiz?"chartX":"chartY"])})});return a};a.prototype.getHoverData=function(c,a,f,d,b,e){var g=[];d=!(!d||!c);var l=function(c){return c.visible&&!(!b&&c.directTouch)&&K(c.options.enableMouseTracking,!0)},k={chartX:e?e.chartX:void 0,chartY:e?e.chartY:void 0,shared:b};m(this,"beforeGetHoverData",k);var v=a&&!a.stickyTracking?[a]:f.filter(function(b){return b.stickyTracking&&(k.filter||l)(b)});var u=d||!e?c:this.findNearestKDPoint(v,b,e);a=u&&u.series;
u&&(b&&!a.noSharedTooltip?(v=f.filter(function(b){return k.filter?k.filter(b):l(b)&&!b.noSharedTooltip}),v.forEach(function(b){var c=h(b.points,function(b){return b.x===u.x&&!b.isNull});r(c)&&(b.boosted&&b.boost&&(c=b.boost.getPoint(c)),g.push(c))})):g.push(u));k={hoverPoint:u};m(this,"afterGetHoverData",k);return{hoverPoint:k.hoverPoint,hoverSeries:a,hoverPoints:g}};a.prototype.getPointFromEvent=function(c){c=c.target;for(var a;c&&!a;)a=c.point,c=c.parentNode;return a};a.prototype.onTrackerMouseOut=
function(c){c=c.relatedTarget||c.toElement;var a=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!a||!c||a.stickyTracking||this.inClass(c,"highcharts-tooltip")||this.inClass(c,"highcharts-series-"+a.index)&&this.inClass(c,"highcharts-tracker")))a.onMouseOut()};a.prototype.inClass=function(c,a){for(var f;c;){if(f=q(c,"class")){if(-1!==f.indexOf(a))return!0;if(-1!==f.indexOf("highcharts-container"))return!1}c=c.parentElement}};a.prototype.init=function(c,a){this.options=a;this.chart=c;this.runChartClick=
!(!a.chart.events||!a.chart.events.click);this.pinchDown=[];this.lastValidTouch={};y&&(c.tooltip=new y(c,a.tooltip));this.setDOMEvents()};a.prototype.normalize=function(c,a){var f=c.touches,e=f?f.length?f.item(0):K(f.changedTouches,c.changedTouches)[0]:c;a||(a=this.getChartPosition());f=e.pageX-a.left;e=e.pageY-a.top;f/=a.scaleX;e/=a.scaleY;return d(c,{chartX:Math.round(f),chartY:Math.round(e)})};a.prototype.onContainerClick=function(a){var c=this.chart,f=c.hoverPoint;a=this.normalize(a);var e=c.plotLeft,
b=c.plotTop;c.cancelClick||(f&&this.inClass(a.target,"highcharts-tracker")?(m(f.series,"click",d(a,{point:f})),c.hoverPoint&&f.firePointEvent("click",a)):(d(a,this.getCoordinates(a)),c.isInsidePlot(a.chartX-e,a.chartY-b,{visiblePlotOnly:!0})&&m(c,"click",a)))};a.prototype.onContainerMouseDown=function(a){var c=1===((a.buttons||a.button)&1);a=this.normalize(a);if(g.isFirefox&&0!==a.button)this.onContainerMouseMove(a);if("undefined"===typeof a.button||c)this.zoomOption(a),c&&a.preventDefault&&a.preventDefault(),
this.dragStart(a)};a.prototype.onContainerMouseLeave=function(c){var d=D[K(a.hoverChartIndex,-1)],f=this.chart.tooltip;c=this.normalize(c);d&&(c.relatedTarget||c.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0);f&&!f.isHidden&&this.reset()};a.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};a.prototype.onContainerMouseMove=function(a){var c=this.chart,d=c.tooltip;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===c.mouseIsDown||
this.touchSelect(a))&&this.drag(a);c.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0})||d&&d.shouldStickOnContact(a)||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};a.prototype.onDocumentTouchEnd=function(c){var d=D[K(a.hoverChartIndex,-1)];d&&d.pointer.drop(c)};a.prototype.onContainerTouchMove=function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};
a.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);else this.zoomOption(a),this.touch(a,!0)};a.prototype.onDocumentMouseMove=function(a){var c=this.chart,d=c.tooltip,e=this.chartPosition;a=this.normalize(a,e);!e||c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0})||d&&d.shouldStickOnContact(a)||this.inClass(a.target,"highcharts-tracker")||this.reset()};a.prototype.onDocumentMouseUp=function(c){var d=D[K(a.hoverChartIndex,-1)];
d&&d.pointer.drop(c)};a.prototype.pinch=function(a){var c=this,f=c.chart,e=c.pinchDown,b=a.touches||[],h=b.length,g=c.lastValidTouch,p=c.hasZoom,k={},n=1===h&&(c.inClass(a.target,"highcharts-tracker")&&f.runTrackerClick||c.runChartClick),r={},x=c.chart.tooltip;x=1===h&&K(x&&x.options.followTouchMove,!0);var q=c.selectionMarker;1<h?c.initiated=!0:x&&(c.initiated=!1);p&&c.initiated&&!n&&!1!==a.cancelable&&a.preventDefault();[].map.call(b,function(b){return c.normalize(b)});"touchstart"===a.type?([].forEach.call(b,
function(b,a){e[a]={chartX:b.chartX,chartY:b.chartY}}),g.x=[e[0].chartX,e[1]&&e[1].chartX],g.y=[e[0].chartY,e[1]&&e[1].chartY],f.axes.forEach(function(b){if(b.zoomEnabled){var a=f.bounds[b.horiz?"h":"v"],c=b.minPixelPadding,d=b.toPixels(Math.min(K(b.options.min,b.dataMin),b.dataMin)),e=b.toPixels(Math.max(K(b.options.max,b.dataMax),b.dataMax)),h=Math.max(d,e);a.min=Math.min(b.pos,Math.min(d,e)-c);a.max=Math.max(b.pos+b.len,h+c)}}),c.res=!0):x?this.runPointActions(c.normalize(a)):e.length&&(m(f,"touchpan",
{originalEvent:a},function(){q||(c.selectionMarker=q=d({destroy:J,touch:!0},f.plotBox));c.pinchTranslate(e,b,k,q,r,g);c.hasPinched=p;c.scaleGroups(k,r)}),c.res&&(c.res=!1,this.reset(!1,0)))};a.prototype.pinchTranslate=function(a,d,f,e,b,h){this.zoomHor&&this.pinchTranslateDirection(!0,a,d,f,e,b,h);this.zoomVert&&this.pinchTranslateDirection(!1,a,d,f,e,b,h)};a.prototype.pinchTranslateDirection=function(a,d,f,e,b,h,g,p){var c=this.chart,l=a?"x":"y",k=a?"X":"Y",v="chart"+k,m=a?"width":"height",n=c["plot"+
(a?"Left":"Top")],A=c.inverted,u=c.bounds[a?"h":"v"],r=1===d.length,x=d[0][v],q=!r&&d[1][v];d=function(){"number"===typeof R&&20<Math.abs(x-q)&&(O=p||Math.abs(t-R)/Math.abs(x-q));P=(n-t)/O+x;H=c["plot"+(a?"Width":"Height")]/O};var H,P,O=p||1,t=f[0][v],R=!r&&f[1][v];d();f=P;if(f<u.min){f=u.min;var B=!0}else f+H>u.max&&(f=u.max-H,B=!0);B?(t-=.8*(t-g[l][0]),"number"===typeof R&&(R-=.8*(R-g[l][1])),d()):g[l]=[t,R];A||(h[l]=P-n,h[m]=H);h=A?1/O:O;b[m]=H;b[l]=f;e[A?a?"scaleY":"scaleX":"scale"+k]=O;e["translate"+
k]=h*n+(t-h*x)};a.prototype.reset=function(a,d){var c=this.chart,e=c.hoverSeries,b=c.hoverPoint,h=c.hoverPoints,g=c.tooltip,p=g&&g.shared?h:b;a&&p&&I(p).forEach(function(b){b.series.isCartesian&&"undefined"===typeof b.plotX&&(a=!1)});if(a)g&&p&&I(p).length&&(g.refresh(p),g.shared&&h?h.forEach(function(b){b.setState(b.state,!0);b.series.isCartesian&&(b.series.xAxis.crosshair&&b.series.xAxis.drawCrosshair(null,b),b.series.yAxis.crosshair&&b.series.yAxis.drawCrosshair(null,b))}):b&&(b.setState(b.state,
!0),c.axes.forEach(function(a){a.crosshair&&b.series[a.coll]===a&&a.drawCrosshair(null,b)})));else{if(b)b.onMouseOut();h&&h.forEach(function(b){b.setState()});if(e)e.onMouseOut();g&&g.hide(d);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());c.axes.forEach(function(b){b.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}};a.prototype.runPointActions=function(c,d,f){var e=this.chart,b=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,g=b?b.shared:!1,k=d||e.hoverPoint,
p=k&&k.series||e.hoverSeries;d=this.getHoverData(k,p,e.series,(!c||"touchmove"!==c.type)&&(!!d||p&&p.directTouch&&this.isDirectTouch),g,c);k=d.hoverPoint;p=d.hoverSeries;var m=d.hoverPoints;d=p&&p.tooltipOptions.followPointer&&!p.tooltipOptions.split;var n=g&&p&&!p.noSharedTooltip;if(k&&(f||k!==e.hoverPoint||b&&b.isHidden)){(e.hoverPoints||[]).forEach(function(b){-1===m.indexOf(b)&&b.setState()});if(e.hoverSeries!==p)p.onMouseOver();this.applyInactiveState(m);(m||[]).forEach(function(b){b.setState("hover")});
e.hoverPoint&&e.hoverPoint.firePointEvent("mouseOut");if(!k.series)return;e.hoverPoints=m;e.hoverPoint=k;k.firePointEvent("mouseOver",void 0,function(){b&&k&&b.refresh(n?m:k,c)})}else d&&b&&!b.isHidden&&(f=b.getAnchor([{}],c),e.isInsidePlot(f[0],f[1],{visiblePlotOnly:!0})&&b.updatePosition({plotX:f[0],plotY:f[1]}));this.unDocMouseMove||(this.unDocMouseMove=t(e.container.ownerDocument,"mousemove",function(b){var c=D[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}),this.eventsToUnbind.push(this.unDocMouseMove));
e.axes.forEach(function(b){var a=K((b.crosshair||{}).snap,!0),d;a&&((d=e.hoverPoint)&&d.series[b.coll]===b||(d=h(m,function(a){return a.series&&a.series[b.coll]===b})));d||!a?b.drawCrosshair(c,d):b.hideCrosshair()})};a.prototype.scaleGroups=function(a,d){var c=this.chart;c.series.forEach(function(f){var b=a||f.getPlotBox();f.group&&(f.xAxis&&f.xAxis.zoomEnabled||c.mapView)&&(f.group.attr(b),f.markerGroup&&(f.markerGroup.attr(b),f.markerGroup.clip(d?c.clipRect:null)),f.dataLabelsGroup&&f.dataLabelsGroup.attr(b))});
c.clipRect.attr(d||c.clipBox)};a.prototype.setDOMEvents=function(){var c=this,d=this.chart.container,f=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(t(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(t(d,"mouseleave",this.onContainerMouseLeave.bind(this)));a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=t(f,"mouseup",this.onDocumentMouseUp.bind(this)));
for(var e=this.chart.renderTo.parentElement;e&&"BODY"!==e.tagName;)this.eventsToUnbind.push(t(e,"scroll",function(){delete c.chartPosition})),e=e.parentElement;g.hasTouch&&(this.eventsToUnbind.push(t(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(t(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=t(f,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};a.prototype.setHoverChartIndex=
function(){var c=this.chart,d=g.charts[K(a.hoverChartIndex,-1)];if(d&&d!==c)d.pointer.onContainerMouseLeave({relatedTarget:c.container});d&&d.mouseIsDown||(a.hoverChartIndex=c.index)};a.prototype.touch=function(a,d){var c=this.chart,e;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(e=c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0}))&&!c.openMenu){d&&this.runPointActions(a);if("touchmove"===a.type){d=this.pinchDown;var b=d[0]?4<=Math.sqrt(Math.pow(d[0].chartX-
a.chartX,2)+Math.pow(d[0].chartY-a.chartY,2)):!1}K(b,!0)&&this.pinch(a)}else d&&this.reset();else 2===a.touches.length&&this.pinch(a)};a.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zooming.singleTouch||!a.touches||1!==a.touches.length)};a.prototype.zoomOption=function(a){var c=this.chart,d=c.options.chart;c=c.inverted;var e=d.zooming.type||"";/touch/.test(a.type)&&(e=K(d.zooming.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=d=/y/.test(e);this.zoomHor=a&&!c||d&&c;this.zoomVert=
d&&!c||a&&c;this.hasZoom=a||d};return a}();"";return a});L(g,"Core/MSPointer.js",[g["Core/Globals.js"],g["Core/Pointer.js"],g["Core/Utilities.js"]],function(a,g,y){function z(){var a=[];a.item=function(a){return this[a]};h(r,function(d){a.push({pageX:d.pageX,pageY:d.pageY,target:d.target})});return a}function C(a,d,e,h){var c=J[g.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!c||(c=c.pointer,h(a),c[d]({type:e,target:a.currentTarget,preventDefault:q,touches:z()}))}
var D=this&&this.__extends||function(){var a=function(d,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])};return a(d,e)};return function(d,e){function h(){this.constructor=d}if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");a(d,e);d.prototype=null===e?Object.create(e):(h.prototype=e.prototype,new h)}}(),
J=a.charts,t=a.doc,q=a.noop,n=a.win,e=y.addEvent,d=y.css,h=y.objectEach,m=y.pick,k=y.removeEvent,r={},B=!!n.PointerEvent;return function(h){function g(){return null!==h&&h.apply(this,arguments)||this}D(g,h);g.isRequired=function(){return!(a.hasTouch||!n.PointerEvent&&!n.MSPointerEvent)};g.prototype.batchMSEvents=function(a){a(this.chart.container,B?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,B?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(t,B?"pointerup":
"MSPointerUp",this.onDocumentPointerUp)};g.prototype.destroy=function(){this.batchMSEvents(k);h.prototype.destroy.call(this)};g.prototype.init=function(a,e){h.prototype.init.call(this,a,e);this.hasZoom&&d(a.container,{"-ms-touch-action":"none","touch-action":"none"})};g.prototype.onContainerPointerDown=function(a){C(a,"onContainerTouchStart","touchstart",function(a){r[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};g.prototype.onContainerPointerMove=function(a){C(a,"onContainerTouchMove",
"touchmove",function(a){r[a.pointerId]={pageX:a.pageX,pageY:a.pageY};r[a.pointerId].target||(r[a.pointerId].target=a.currentTarget)})};g.prototype.onDocumentPointerUp=function(a){C(a,"onDocumentTouchEnd","touchend",function(a){delete r[a.pointerId]})};g.prototype.setDOMEvents=function(){var a=this.chart.tooltip;h.prototype.setDOMEvents.call(this);(this.hasZoom||m(a&&a.options.followTouchMove,!0))&&this.batchMSEvents(e)};return g}(g)});L(g,"Core/Legend/Legend.js",[g["Core/Animation/AnimationUtilities.js"],
g["Core/FormatUtilities.js"],g["Core/Globals.js"],g["Core/Series/Point.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Utilities.js"]],function(a,g,y,E,C,D){var z=a.animObject,t=a.setAnimation,q=g.format,n=y.marginNames,e=C.distribute,d=D.addEvent,h=D.createElement,m=D.css,k=D.defined,r=D.discardElement,B=D.find,G=D.fireEvent,K=D.isNumber,I=D.merge,x=D.pick,c=D.relativeLength,u=D.stableSort,f=D.syncTimeout;a=function(){function a(b,a){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=b;this.init(b,a)}a.prototype.init=function(b,a){this.chart=b;this.setOptions(a);
a.enabled&&(this.render(),d(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=d(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};a.prototype.setOptions=function(b){var a=x(b.padding,8);this.options=b;this.chart.styledMode||(this.itemStyle=b.itemStyle,this.itemHiddenStyle=I(this.itemStyle,b.itemHiddenStyle));this.itemMarginTop=b.itemMarginTop||0;this.itemMarginBottom=
b.itemMarginBottom||0;this.padding=a;this.initialItemY=a-5;this.symbolWidth=x(b.symbolWidth,16);this.pages=[];this.proximate="proximate"===b.layout&&!this.chart.inverted;this.baseline=void 0};a.prototype.update=function(b,a){var c=this.chart;this.setOptions(I(!0,this.options,b));this.destroy();c.isDirtyLegend=c.isDirtyBox=!0;x(a,!0)&&c.redraw();G(this,"afterUpdate")};a.prototype.colorizeItem=function(b,a){var c=b.legendItem||{},d=c.group,f=c.label,e=c.line;c=c.symbol;if(d)d[a?"removeClass":"addClass"]("highcharts-legend-item-hidden");
if(!this.chart.styledMode){var h=this.options;d=this.itemHiddenStyle.color;h=a?h.itemStyle.color:d;var g=a?b.color||d:d,l=b.options&&b.options.marker,k={fill:g};f&&f.css({fill:h,color:h});e&&e.attr({stroke:g});c&&(l&&c.isMarker&&(k=b.pointAttribs(),a||(k.stroke=k.fill=d)),c.attr(k))}G(this,"afterColorizeItem",{item:b,visible:a})};a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};a.prototype.positionItem=function(b){var a=
this,c=b.legendItem||{},d=c.group,f=c.x;f=void 0===f?0:f;c=c.y;c=void 0===c?0:c;var e=this.options,h=e.symbolPadding,g=!e.rtl;e=b.checkbox;d&&d.element&&(h={translateX:g?f:this.legendWidth-f-2*h-4,translateY:c},d[k(d.translateY)?"animate":"attr"](h,void 0,function(){G(a,"afterPositionItem",{item:b})}));e&&(e.x=f,e.y=c)};a.prototype.destroyItem=function(b){for(var a=b.checkbox,c=b.legendItem||{},d=0,f=["group","label","line","symbol"];d<f.length;d++){var e=f[d];c[e]&&(c[e]=c[e].destroy())}a&&r(a);
b.legendItem=void 0};a.prototype.destroy=function(){for(var b=0,a=this.getAllItems();b<a.length;b++)this.destroyItem(a[b]);b=0;for(a="clipRect up down pager nav box title group".split(" ");b<a.length;b++){var c=a[b];this[c]&&(this[c]=this[c].destroy())}this.display=null};a.prototype.positionCheckboxes=function(){var b=this.group&&this.group.alignAttr,a=this.clipHeight||this.legendHeight,c=this.titleHeight;if(b){var d=b.translateY;this.allItems.forEach(function(f){var e=f.checkbox;if(e){var h=d+c+
e.y+(this.scrollOffset||0)+3;m(e,{left:b.translateX+f.checkboxOffset+e.x-20+"px",top:h+"px",display:this.proximate||h>d-6&&h<d+a-6?"":"none"})}},this)}};a.prototype.renderTitle=function(){var b=this.options,a=this.padding,c=b.title,d=0;c.text&&(this.title||(this.title=this.chart.renderer.label(c.text,a-3,a-4,void 0,void 0,void 0,b.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(c.style),this.title.add(this.group)),c.width||this.title.css({width:this.maxLegendWidth+
"px"}),b=this.title.getBBox(),d=b.height,this.offsetWidth=b.width,this.contentGroup.attr({translateY:d}));this.titleHeight=d};a.prototype.setText=function(b){var a=this.options;b.legendItem.label.attr({text:a.labelFormat?q(a.labelFormat,b,this.chart):a.labelFormatter.call(b)})};a.prototype.renderItem=function(b){var a=b.legendItem=b.legendItem||{},c=this.chart,d=c.renderer,f=this.options,e=this.symbolWidth,h=f.symbolPadding||0,g=this.itemStyle,l=this.itemHiddenStyle,k="horizontal"===f.layout?x(f.itemDistance,
20):0,m=!f.rtl,n=!b.series,r=!n&&b.series.drawLegendSymbol?b.series:b,u=r.options,q=this.createCheckboxForItem&&u&&u.showCheckbox,H=f.useHTML,P=b.options.className,O=a.label;u=e+h+k+(q?20:0);O||(a.group=d.g("legend-item").addClass("highcharts-"+r.type+"-series highcharts-color-"+b.colorIndex+(P?" "+P:"")+(n?" highcharts-series-"+b.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.label=O=d.text("",m?e+h:-h,this.baseline||0,H),c.styledMode||O.css(I(b.visible?g:l)),O.attr({align:m?"left":"right",
zIndex:2}).add(a.group),this.baseline||(this.fontMetrics=d.fontMetrics(c.styledMode?12:g.fontSize,O),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,O.attr("y",this.baseline),this.symbolHeight=f.symbolHeight||this.fontMetrics.f,f.squareSymbol&&(this.symbolWidth=x(f.symbolWidth,Math.max(this.symbolHeight,16)),u=this.symbolWidth+h+k+(q?20:0),m&&O.attr("x",this.symbolWidth+h))),r.drawLegendSymbol(this,b),this.setItemEvents&&this.setItemEvents(b,O,H));q&&!b.checkbox&&this.createCheckboxForItem&&
this.createCheckboxForItem(b);this.colorizeItem(b,b.visible);!c.styledMode&&g.width||O.css({width:(f.itemWidth||this.widthOption||c.spacingBox.width)-u+"px"});this.setText(b);c=O.getBBox();d=this.fontMetrics&&this.fontMetrics.h||0;b.itemWidth=b.checkboxOffset=f.itemWidth||a.labelWidth||c.width+u;this.maxItemWidth=Math.max(this.maxItemWidth,b.itemWidth);this.totalItemWidth+=b.itemWidth;this.itemHeight=b.itemHeight=Math.round(a.labelHeight||(c.height>1.5*d?c.height:d))};a.prototype.layoutItem=function(b){var a=
this.options,c=this.padding,d="horizontal"===a.layout,f=b.itemHeight,e=this.itemMarginBottom,h=this.itemMarginTop,g=d?x(a.itemDistance,20):0,l=this.maxLegendWidth;a=a.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:b.itemWidth;var k=b.legendItem||{};d&&this.itemX-c+a>l&&(this.itemX=c,this.lastLineHeight&&(this.itemY+=h+this.lastLineHeight+e),this.lastLineHeight=0);this.lastItemY=h+this.itemY+e;this.lastLineHeight=Math.max(f,this.lastLineHeight);k.x=this.itemX;k.y=this.itemY;d?this.itemX+=a:
(this.itemY+=h+f+e,this.lastLineHeight=f);this.offsetWidth=this.widthOption||Math.max((d?this.itemX-c-(b.checkbox?0:g):a)+c,this.offsetWidth)};a.prototype.getAllItems=function(){var b=[];this.chart.series.forEach(function(a){var c=a&&a.options;a&&x(c.showInLegend,k(c.linkedTo)?!1:void 0,!0)&&(b=b.concat((a.legendItem||{}).labels||("point"===c.legendType?a.data:a)))});G(this,"afterGetAllItems",{allItems:b});return b};a.prototype.getAlignment=function(){var b=this.options;return this.proximate?b.align.charAt(0)+
"tv":b.floating?"":b.align.charAt(0)+b.verticalAlign.charAt(0)+b.layout.charAt(0)};a.prototype.adjustMargins=function(b,a){var c=this.chart,d=this.options,f=this.getAlignment();f&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(e,h){e.test(f)&&!k(b[h])&&(c[n[h]]=Math.max(c[n[h]],c.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*d[h%2?"x":"y"]+x(d.margin,12)+a[h]+(c.titleOffset[h]||0)))})};a.prototype.proximatePositions=function(){var b=this.chart,a=[],c=
"left"===this.options.align;this.allItems.forEach(function(d){var f;var e=c;if(d.yAxis){d.xAxis.options.reversed&&(e=!e);d.points&&(f=B(e?d.points:d.points.slice(0).reverse(),function(b){return K(b.plotY)}));e=this.itemMarginTop+d.legendItem.label.getBBox().height+this.itemMarginBottom;var h=d.yAxis.top-b.plotTop;d.visible?(f=f?f.plotY:d.yAxis.height,f+=h-.3*e):f=h+d.yAxis.height;a.push({target:f,size:e,item:d})}},this);for(var d,f=0,h=e(a,b.plotHeight);f<h.length;f++){var g=h[f];d=g.item.legendItem||
{};K(g.pos)&&(d.y=b.plotTop-b.spacing[0]+g.pos)}};a.prototype.render=function(){var b=this.chart,a=b.renderer,d=this.options,f=this.padding,e=this.getAllItems(),h=this.group,g=this.box;this.itemX=f;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=c(d.width,b.spacingBox.width-f);var l=b.spacingBox.width-2*f-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(l/=2);this.maxLegendWidth=this.widthOption||l;h||(this.group=h=a.g("legend").addClass(d.className||
"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(h),this.scrollGroup=a.g().add(this.contentGroup));this.renderTitle();u(e,function(b,a){return(b.options&&b.options.legendIndex||0)-(a.options&&a.options.legendIndex||0)});d.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;e.forEach(this.renderItem,this);e.forEach(this.layoutItem,this);e=(this.widthOption||this.offsetWidth)+f;var k=this.lastItemY+
this.lastLineHeight+this.titleHeight;k=this.handleOverflow(k);k+=f;g||(this.box=g=a.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(h));b.styledMode||g.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow);if(0<e&&0<k)g[g.placed?"animate":"attr"](g.crisp.call({},{x:0,y:0,width:e,height:k},g.strokeWidth()));h[l?"show":"hide"]();b.styledMode&&"none"===h.getStyle("display")&&(e=k=0);this.legendWidth=e;this.legendHeight=k;l&&
this.align();this.proximate||this.positionItems();G(this,"afterRender")};a.prototype.align=function(b){void 0===b&&(b=this.chart.spacingBox);var a=this.chart,c=this.options,d=b.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<a.titleOffset[0]?d+=a.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<a.titleOffset[2]&&(d-=a.titleOffset[2]);d!==b.y&&(b=I(b,{y:d}));a.hasRendered||(this.group.placed=!1);this.group.align(I(c,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?
"top":c.verticalAlign}),!0,b)};a.prototype.handleOverflow=function(b){var a=this,c=this.chart,d=c.renderer,f=this.options,e=f.y,h="top"===f.verticalAlign,g=this.padding,l=f.maxHeight,k=f.navigation,m=x(k.animation,!0),n=k.arrowSize||12,r=this.pages,u=this.allItems,q=function(b){"number"===typeof b?B.attr({height:b}):B&&(a.clipRect=B.destroy(),a.contentGroup.clip());a.contentGroup.div&&(a.contentGroup.div.style.clip=b?"rect("+g+"px,9999px,"+(g+b)+"px,0)":"auto")},H=function(b){a[b]=d.circle(0,0,1.3*
n).translate(n/2,n/2).add(R);c.styledMode||a[b].attr("fill","rgba(0,0,0,0.0001)");return a[b]},P,O,t;e=c.spacingBox.height+(h?-e:e)-g;var R=this.nav,B=this.clipRect;"horizontal"!==f.layout||"middle"===f.verticalAlign||f.floating||(e/=2);l&&(e=Math.min(e,l));r.length=0;b&&0<e&&b>e&&!1!==k.enabled?(this.clipHeight=P=Math.max(e-20-this.titleHeight-g,0),this.currentPage=x(this.currentPage,1),this.fullHeight=b,u.forEach(function(b,a){t=b.legendItem||{};b=t.y||0;var c=Math.round(t.label.getBBox().height),
d=r.length;if(!d||b-r[d-1]>P&&(O||b)!==r[d-1])r.push(O||b),d++;t.pageIx=d-1;O&&((u[a-1].legendItem||{}).pageIx=d-1);a===u.length-1&&b+c-r[d-1]>P&&c<=P&&(r.push(b),t.pageIx=d);b!==O&&(O=b)}),B||(B=a.clipRect=d.clipRect(0,g,9999,0),a.contentGroup.clip(B)),q(P),R||(this.nav=R=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,n,n).add(R),H("upTracker").on("click",function(){a.scroll(-1,m)}),this.pager=d.text("",15,10).addClass("highcharts-legend-navigation"),!c.styledMode&&k.style&&
this.pager.css(k.style),this.pager.add(R),this.down=d.symbol("triangle-down",0,0,n,n).add(R),H("downTracker").on("click",function(){a.scroll(1,m)})),a.scroll(0),b=e):R&&(q(),this.nav=R.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return b};a.prototype.scroll=function(b,a){var c=this,d=this.chart,e=this.pages,h=e.length,g=this.clipHeight,l=this.options.navigation,k=this.pager,m=this.padding,n=this.currentPage+b;n>h&&(n=h);0<n&&("undefined"!==typeof a&&t(a,d),this.nav.attr({translateX:m,
translateY:g+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(b){b.attr({"class":1===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),k.attr({text:n+"/"+h}),[this.down,this.downTracker].forEach(function(b){b.attr({x:18+this.pager.getBBox().width,"class":n===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),d.styledMode||(this.up.attr({fill:1===n?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===
n?"default":"pointer"}),this.down.attr({fill:n===h?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:n===h?"default":"pointer"})),this.scrollOffset=-e[n-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=n,this.positionCheckboxes(),b=z(x(a,d.renderer.globalAnimation,!0)),f(function(){G(c,"afterScroll",{currentPage:n})},b.duration))};a.prototype.setItemEvents=function(b,a,c){var d=this,f=b.legendItem||{},e=d.chart.renderer.boxWrapper,h=b instanceof
E,g="highcharts-legend-"+(h?"point":"series")+"-active",l=d.chart.styledMode,k=function(a){d.allItems.forEach(function(c){b!==c&&[c].concat(c.linkedSeries||[]).forEach(function(b){b.setState(a,!h)})})},m=0;for(c=c?[a,f.symbol]:[f.group];m<c.length;m++)if(f=c[m])f.on("mouseover",function(){b.visible&&k("inactive");b.setState("hover");b.visible&&e.addClass(g);l||a.css(d.options.itemHoverStyle)}).on("mouseout",function(){d.chart.styledMode||a.css(I(b.visible?d.itemStyle:d.itemHiddenStyle));k("");e.removeClass(g);
b.setState()}).on("click",function(a){var c=function(){b.setVisible&&b.setVisible();k(b.visible?"inactive":"")};e.removeClass(g);a={browserEvent:a};b.firePointEvent?b.firePointEvent("legendItemClick",a,c):G(b,"legendItemClick",a,c)})};a.prototype.createCheckboxForItem=function(b){b.checkbox=h("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:b.selected,defaultChecked:b.selected},this.options.itemCheckboxStyle,this.chart.container);d(b.checkbox,"click",function(a){G(b.series||
b,"checkboxClick",{checked:a.target.checked,item:b},function(){b.select()})})};return a}();"";return a});L(g,"Core/Series/SeriesRegistry.js",[g["Core/Globals.js"],g["Core/Defaults.js"],g["Core/Series/Point.js"],g["Core/Utilities.js"]],function(a,g,y,E){var z=g.defaultOptions,D=E.extendClass,J=E.merge,t;(function(g){function n(a,d){var e=z.plotOptions||{},m=d.defaultOptions,k=d.prototype;k.type=a;k.pointClass||(k.pointClass=y);m&&(e[a]=m);g.seriesTypes[a]=d}g.seriesTypes=a.seriesTypes;g.registerSeriesType=
n;g.seriesType=function(a,d,h,m,k){var e=z.plotOptions||{};d=d||"";e[a]=J(e[d],h);n(a,D(g.seriesTypes[d]||function(){},m));g.seriesTypes[a].prototype.type=a;k&&(g.seriesTypes[a].prototype.pointClass=D(y,k));return g.seriesTypes[a]}})(t||(t={}));return t});L(g,"Core/Chart/Chart.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Axis/Axis.js"],g["Core/Defaults.js"],g["Core/FormatUtilities.js"],g["Core/Foundation.js"],g["Core/Globals.js"],g["Core/Legend/Legend.js"],g["Core/MSPointer.js"],g["Core/Pointer.js"],
g["Core/Renderer/RendererRegistry.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Renderer/SVG/SVGRenderer.js"],g["Core/Time.js"],g["Core/Utilities.js"],g["Core/Renderer/HTML/AST.js"]],function(a,g,y,E,C,D,J,t,q,n,e,d,h,m,k){var r=a.animate,B=a.animObject,G=a.setAnimation,z=y.defaultOptions,I=y.defaultTime,x=E.numberFormat,c=C.registerEventOptions,u=D.charts,f=D.doc,l=D.marginNames,b=D.svg,v=D.win,A=e.seriesTypes,p=m.addEvent,M=m.attr,F=m.cleanRecursively,N=m.createElement,Q=m.css,W=m.defined,Y=m.discardElement,
w=m.erase,T=m.error,L=m.extend,ca=m.find,S=m.fireEvent,H=m.getStyle,P=m.isArray,O=m.isNumber,X=m.isObject,R=m.isString,U=m.merge,Z=m.objectEach,V=m.pick,ba=m.pInt,fa=m.relativeLength,ha=m.removeEvent,ea=m.splat,ia=m.syncTimeout,ka=m.uniqueKey;a=function(){function a(b,a,c){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.chartHeight=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(b,a,c)}a.chart=function(b,c,d){return new a(b,c,d)};a.prototype.getArgs=function(b,a,c){R(b)||b.nodeName?(this.renderTo=b,this.init(a,c)):this.init(b,a)};a.prototype.init=function(b,a){var d=b.plotOptions||
{};S(this,"init",{args:arguments},function(){var f=U(z,b),e=f.chart;Z(f.plotOptions,function(b,a){X(b)&&(b.tooltip=d[a]&&U(d[a].tooltip)||void 0)});f.tooltip.userOptions=b.chart&&b.chart.forExport&&b.tooltip.userOptions||b.tooltip;this.userOptions=b;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=a;this.isResizing=0;var g=e.zooming=e.zooming||{};b.chart&&!b.chart.zooming&&(g.resetButton=e.resetZoomButton);g.key=V(g.key,e.zoomKey);g.pinchType=V(g.pinchType,
e.pinchType);g.singleTouch=V(g.singleTouch,e.zoomBySingleTouch);g.type=V(g.type,e.zoomType);this.options=f;this.axes=[];this.series=[];this.time=b.time&&Object.keys(b.time).length?new h(b.time):D.time;this.numberFormatter=e.numberFormatter||x;this.styledMode=e.styledMode;this.hasCartesianSeries=e.showAxes;this.index=u.length;u.push(this);D.chartCount++;c(this,e);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;S(this,"afterInit");this.firstRender()})};a.prototype.initSeries=
function(b){var a=this.options.chart;a=b.type||a.type||a.defaultSeriesType;var c=A[a];c||T(17,!0,this,{missingModuleFor:a});a=new c;"function"===typeof a.init&&a.init(this,b);return a};a.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(b){b.points||b.data||!b.enabledDataSorting||b.setData(b.options.data,!1)})};a.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(b,a){return b.linkedSeries.length||a.linkedSeries.length?a.linkedSeries.length-
b.linkedSeries.length:0})};a.prototype.orderSeries=function(b){var a=this.series;b=b||0;for(var c=a.length;b<c;++b)a[b]&&(a[b].index=b,a[b].name=a[b].getName())};a.prototype.isInsidePlot=function(b,a,c){void 0===c&&(c={});var d=this.inverted,f=this.plotBox,e=this.plotLeft,h=this.plotTop,g=this.scrollablePlotBox,l=0;var k=0;c.visiblePlotOnly&&this.scrollingContainer&&(k=this.scrollingContainer,l=k.scrollLeft,k=k.scrollTop);var m=c.series;f=c.visiblePlotOnly&&g||f;g=c.inverted?a:b;a=c.inverted?b:a;
b={x:g,y:a,isInsidePlot:!0,options:c};if(!c.ignoreX){var p=m&&(d&&!this.polar?m.yAxis:m.xAxis)||{pos:e,len:Infinity};g=c.paneCoordinates?p.pos+g:e+g;g>=Math.max(l+e,p.pos)&&g<=Math.min(l+e+f.width,p.pos+p.len)||(b.isInsidePlot=!1)}!c.ignoreY&&b.isInsidePlot&&(d=c.axis&&!c.axis.isXAxis&&c.axis||m&&(d?m.xAxis:m.yAxis)||{pos:h,len:Infinity},c=c.paneCoordinates?d.pos+a:h+a,c>=Math.max(k+h,d.pos)&&c<=Math.min(k+h+f.height,d.pos+d.len)||(b.isInsidePlot=!1));S(this,"afterIsInsidePlot",b);return b.isInsidePlot};
a.prototype.redraw=function(b){S(this,"beforeRedraw");var a=this.hasCartesianSeries?this.axes:this.colorAxis||[],c=this.series,d=this.pointer,f=this.legend,e=this.userOptions.legend,h=this.renderer,g=h.isHidden(),l=[],k=this.isDirtyBox,m=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);G(this.hasRendered?b:!1,this);g&&this.temporaryDisplay();this.layOutTitles();for(b=c.length;b--;){var p=c[b];if(p.options.stacking||p.options.centerInCategory){var n=!0;if(p.isDirty){var H=!0;break}}}if(H)for(b=
c.length;b--;)p=c[b],p.options.stacking&&(p.isDirty=!0);c.forEach(function(b){b.isDirty&&("point"===b.options.legendType?("function"===typeof b.updateTotals&&b.updateTotals(),m=!0):e&&(e.labelFormatter||e.labelFormat)&&(m=!0));b.isDirtyData&&S(b,"updatedData")});m&&f&&f.options.enabled&&(f.render(),this.isDirtyLegend=!1);n&&this.getStacks();a.forEach(function(b){b.updateNames();b.setScale()});this.getMargins();a.forEach(function(b){b.isDirty&&(k=!0)});a.forEach(function(b){var a=b.min+","+b.max;b.extKey!==
a&&(b.extKey=a,l.push(function(){S(b,"afterSetExtremes",L(b.eventArgs,b.getExtremes()));delete b.eventArgs}));(k||n)&&b.redraw()});k&&this.drawChartBox();S(this,"predraw");c.forEach(function(b){(k||b.isDirty)&&b.visible&&b.redraw();b.isDirtyData=!1});d&&d.reset(!0);h.draw();S(this,"redraw");S(this,"render");g&&this.temporaryDisplay(!0);l.forEach(function(b){b.call()})};a.prototype.get=function(b){function a(a){return a.id===b||a.options&&a.options.id===b}for(var c=this.series,d=ca(this.axes,a)||ca(this.series,
a),f=0;!d&&f<c.length;f++)d=ca(c[f].points||[],a);return d};a.prototype.getAxes=function(){var b=this,a=this.options,c=a.xAxis=ea(a.xAxis||{});a=a.yAxis=ea(a.yAxis||{});S(this,"getAxes");c.forEach(function(b,a){b.index=a;b.isX=!0});a.forEach(function(b,a){b.index=a});c.concat(a).forEach(function(a){new g(b,a)});S(this,"afterGetAxes")};a.prototype.getSelectedPoints=function(){return this.series.reduce(function(b,a){a.getPointsCollection().forEach(function(a){V(a.selectedStaging,a.selected)&&b.push(a)});
return b},[])};a.prototype.getSelectedSeries=function(){return this.series.filter(function(b){return b.selected})};a.prototype.setTitle=function(b,a,c){this.applyDescription("title",b);this.applyDescription("subtitle",a);this.applyDescription("caption",void 0);this.layOutTitles(c)};a.prototype.applyDescription=function(b,a){var c=this,d="title"===b?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};d=this.options[b]=U(!this.styledMode&&{style:d},this.options[b],a);var f=
this[b];f&&a&&(this[b]=f=f.destroy());d&&!f&&(f=this.renderer.text(d.text,0,0,d.useHTML).attr({align:d.align,"class":"highcharts-"+b,zIndex:d.zIndex||4}).add(),f.update=function(a){c[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[b]](a)},this.styledMode||f.css(d.style),this[b]=f)};a.prototype.layOutTitles=function(b){var a=[0,0,0],c=this.renderer,d=this.spacingBox;["title","subtitle","caption"].forEach(function(b){var f=this[b],e=this.options[b],h=e.verticalAlign||"top";b="title"===
b?"top"===h?-3:0:"top"===h?a[0]+2:0;var g;if(f){this.styledMode||(g=e.style&&e.style.fontSize);g=c.fontMetrics(g,f).b;f.css({width:(e.width||d.width+(e.widthAdjust||0))+"px"});var l=Math.round(f.getBBox(e.useHTML).height);f.align(L({y:"bottom"===h?g:b+g,height:l},e),!1,"spacingBox");e.floating||("top"===h?a[0]=Math.ceil(a[0]+l):"bottom"===h&&(a[2]=Math.ceil(a[2]+l)))}},this);a[0]&&"top"===(this.options.title.verticalAlign||"top")&&(a[0]+=this.options.title.margin);a[2]&&"bottom"===this.options.caption.verticalAlign&&
(a[2]+=this.options.caption.margin);var f=!this.titleOffset||this.titleOffset.join(",")!==a.join(",");this.titleOffset=a;S(this,"afterLayOutTitles");!this.isDirtyBox&&f&&(this.isDirtyBox=this.isDirtyLegend=f,this.hasRendered&&V(b,!0)&&this.isDirtyBox&&this.redraw())};a.prototype.getChartSize=function(){var b=this.options.chart,a=b.width;b=b.height;var c=this.renderTo;W(a)||(this.containerWidth=H(c,"width"));W(b)||(this.containerHeight=H(c,"height"));this.chartWidth=Math.max(0,a||this.containerWidth||
600);this.chartHeight=Math.max(0,fa(b,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};a.prototype.temporaryDisplay=function(b){var a=this.renderTo;if(b)for(;a&&a.style;)a.hcOrigStyle&&(Q(a,a.hcOrigStyle),delete a.hcOrigStyle),a.hcOrigDetached&&(f.body.removeChild(a),a.hcOrigDetached=!1),a=a.parentNode;else for(;a&&a.style;){f.body.contains(a)||a.parentNode||(a.hcOrigDetached=!0,f.body.appendChild(a));if("none"===H(a,"display",!1)||a.hcOricDetached)a.hcOrigStyle={display:a.style.display,
height:a.style.height,overflow:a.style.overflow},b={display:"block",overflow:"hidden"},a!==this.renderTo&&(b.height=0),Q(a,b),a.offsetWidth||a.style.setProperty("display","block","important");a=a.parentNode;if(a===f.body)break}};a.prototype.setClassName=function(b){this.container.className="highcharts-container "+(b||"")};a.prototype.getContainer=function(){var a=this.options,c=a.chart,e=ka(),h,g=this.renderTo;g||(this.renderTo=g=c.renderTo);R(g)&&(this.renderTo=g=f.getElementById(g));g||T(13,!0,
this);var l=ba(M(g,"data-highcharts-chart"));O(l)&&u[l]&&u[l].hasRendered&&u[l].destroy();M(g,"data-highcharts-chart",this.index);g.innerHTML=k.emptyHTML;c.skipClone||g.offsetWidth||this.temporaryDisplay();this.getChartSize();l=this.chartWidth;var m=this.chartHeight;Q(g,{overflow:"hidden"});this.styledMode||(h=L({position:"relative",overflow:"hidden",width:l+"px",height:m+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",
outline:"none"},c.style||{}));this.container=e=N("div",{id:e},h,g);this._cursor=e.style.cursor;this.renderer=new (c.renderer||!b?n.getRendererType(c.renderer):d)(e,l,m,void 0,c.forExport,a.exporting&&a.exporting.allowHTML,this.styledMode);G(void 0,this);this.setClassName(c.className);if(this.styledMode)for(var p in a.defs)this.renderer.definition(a.defs[p]);else this.renderer.setStyle(c.style);this.renderer.chartIndex=this.index;S(this,"afterGetContainer")};a.prototype.getMargins=function(b){var a=
this.spacing,c=this.margin,d=this.titleOffset;this.resetMargins();d[0]&&!W(c[0])&&(this.plotTop=Math.max(this.plotTop,d[0]+a[0]));d[2]&&!W(c[2])&&(this.marginBottom=Math.max(this.marginBottom,d[2]+a[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(c,a);S(this,"getMargins");b||this.getAxisMargins()};a.prototype.getAxisMargins=function(){var b=this,a=b.axisOffset=[0,0,0,0],c=b.colorAxis,d=b.margin,f=function(b){b.forEach(function(b){b.visible&&b.getOffset()})};b.hasCartesianSeries?f(b.axes):
c&&c.length&&f(c);l.forEach(function(c,f){W(d[f])||(b[c]+=a[f])});b.setChartSize()};a.prototype.reflow=function(b){var a=this,c=a.options.chart,d=a.renderTo,e=W(c.width)&&W(c.height),h=c.width||H(d,"width");c=c.height||H(d,"height");d=b?b.target:v;delete a.pointer.chartPosition;if(!e&&!a.isPrinting&&h&&c&&(d===v||d===f)){if(h!==a.containerWidth||c!==a.containerHeight)m.clearTimeout(a.reflowTimeout),a.reflowTimeout=ia(function(){a.container&&a.setSize(void 0,void 0,!1)},b?100:0);a.containerWidth=h;
a.containerHeight=c}};a.prototype.setReflow=function(b){var a=this;!1===b||this.unbindReflow?!1===b&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=p(v,"resize",function(b){a.options&&a.reflow(b)}),p(this,"destroy",this.unbindReflow))};a.prototype.setSize=function(b,a,c){var d=this,f=d.renderer;d.isResizing+=1;G(c,d);c=f.globalAnimation;d.oldChartHeight=d.chartHeight;d.oldChartWidth=d.chartWidth;"undefined"!==typeof b&&(d.options.chart.width=b);"undefined"!==typeof a&&
(d.options.chart.height=a);d.getChartSize();d.styledMode||(c?r:Q)(d.container,{width:d.chartWidth+"px",height:d.chartHeight+"px"},c);d.setChartSize(!0);f.setSize(d.chartWidth,d.chartHeight,c);d.axes.forEach(function(b){b.isDirty=!0;b.setScale()});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.layOutTitles();d.getMargins();d.redraw(c);d.oldChartHeight=null;S(d,"resize");ia(function(){d&&S(d,"endResize",null,function(){--d.isResizing})},B(c).duration)};a.prototype.setChartSize=function(b){var a=this.inverted,
c=this.renderer,d=this.chartWidth,f=this.chartHeight,e=this.options.chart,h=this.spacing,g=this.clipOffset,l,k,m,p;this.plotLeft=l=Math.round(this.plotLeft);this.plotTop=k=Math.round(this.plotTop);this.plotWidth=m=Math.max(0,Math.round(d-l-this.marginRight));this.plotHeight=p=Math.max(0,Math.round(f-k-this.marginBottom));this.plotSizeX=a?p:m;this.plotSizeY=a?m:p;this.plotBorderWidth=e.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:h[3],y:h[0],width:d-h[3]-h[1],height:f-h[0]-h[2]};this.plotBox=
c.plotBox={x:l,y:k,width:m,height:p};a=2*Math.floor(this.plotBorderWidth/2);d=Math.ceil(Math.max(a,g[3])/2);f=Math.ceil(Math.max(a,g[0])/2);this.clipBox={x:d,y:f,width:Math.floor(this.plotSizeX-Math.max(a,g[1])/2-d),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(a,g[2])/2-f))};b||(this.axes.forEach(function(b){b.setAxisSize();b.setAxisTranslation()}),c.alignElements());S(this,"afterSetChartSize",{skipAxes:b})};a.prototype.resetMargins=function(){S(this,"resetMargins");var b=this,a=b.options.chart;
["margin","spacing"].forEach(function(c){var d=a[c],f=X(d)?d:[d,d,d,d];["Top","Right","Bottom","Left"].forEach(function(d,e){b[c][e]=V(a[c+d],f[e])})});l.forEach(function(a,c){b[a]=V(b.margin[c],b.spacing[c])});b.axisOffset=[0,0,0,0];b.clipOffset=[0,0,0,0]};a.prototype.drawChartBox=function(){var b=this.options.chart,a=this.renderer,c=this.chartWidth,d=this.chartHeight,f=this.styledMode,e=this.plotBGImage,h=b.backgroundColor,g=b.plotBackgroundColor,l=b.plotBackgroundImage,k=this.plotLeft,m=this.plotTop,
p=this.plotWidth,n=this.plotHeight,H=this.plotBox,v=this.clipRect,r=this.clipBox,O=this.chartBackground,u=this.plotBackground,w=this.plotBorder,q,x="animate";O||(this.chartBackground=O=a.rect().addClass("highcharts-background").add(),x="attr");if(f)var A=q=O.strokeWidth();else{A=b.borderWidth||0;q=A+(b.shadow?8:0);h={fill:h||"none"};if(A||O["stroke-width"])h.stroke=b.borderColor,h["stroke-width"]=A;O.attr(h).shadow(b.shadow)}O[x]({x:q/2,y:q/2,width:c-q-A%2,height:d-q-A%2,r:b.borderRadius});x="animate";
u||(x="attr",this.plotBackground=u=a.rect().addClass("highcharts-plot-background").add());u[x](H);f||(u.attr({fill:g||"none"}).shadow(b.plotShadow),l&&(e?(l!==e.attr("href")&&e.attr("href",l),e.animate(H)):this.plotBGImage=a.image(l,k,m,p,n).add()));v?v.animate({width:r.width,height:r.height}):this.clipRect=a.clipRect(r);x="animate";w||(x="attr",this.plotBorder=w=a.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());f||w.attr({stroke:b.plotBorderColor,"stroke-width":b.plotBorderWidth||
0,fill:"none"});w[x](w.crisp({x:k,y:m,width:p,height:n},-w.strokeWidth()));this.isDirtyBox=!1;S(this,"afterDrawChartBox")};a.prototype.propFromSeries=function(){var b=this,a=b.options.chart,c=b.options.series,d,f,e;["inverted","angular","polar"].forEach(function(h){f=A[a.type||a.defaultSeriesType];e=a[h]||f&&f.prototype[h];for(d=c&&c.length;!e&&d--;)(f=A[c[d].type])&&f.prototype[h]&&(e=!0);b[h]=e})};a.prototype.linkSeries=function(){var b=this,a=b.series;a.forEach(function(b){b.linkedSeries.length=
0});a.forEach(function(a){var c=a.options.linkedTo;R(c)&&(c=":previous"===c?b.series[a.index-1]:b.get(c))&&c.linkedParent!==a&&(c.linkedSeries.push(a),a.linkedParent=c,c.enabledDataSorting&&a.setDataSortingOptions(),a.visible=V(a.options.visible,c.options.visible,a.visible))});S(this,"afterLinkSeries")};a.prototype.renderSeries=function(){this.series.forEach(function(b){b.translate();b.render()})};a.prototype.renderLabels=function(){var b=this,a=b.options.labels;a.items&&a.items.forEach(function(c){var d=
L(a.style,c.style),f=ba(d.left)+b.plotLeft,e=ba(d.top)+b.plotTop+12;delete d.left;delete d.top;b.renderer.text(c.html,f,e).attr({zIndex:2}).css(d).add()})};a.prototype.render=function(){var b=this.axes,a=this.colorAxis,c=this.renderer,d=this.options,f=function(b){b.forEach(function(b){b.visible&&b.render()})},e=0;this.setTitle();this.legend=new J(this,d.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();d=this.plotWidth;b.some(function(b){if(b.horiz&&b.visible&&b.options.labels.enabled&&
b.series.length)return e=21,!0});var h=this.plotHeight=Math.max(this.plotHeight-e,0);b.forEach(function(b){b.setScale()});this.getAxisMargins();var g=1.1<d/this.plotWidth,l=1.05<h/this.plotHeight;if(g||l)b.forEach(function(b){(b.horiz&&g||!b.horiz&&l)&&b.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?f(b):a&&a.length&&f(a);this.seriesGroup||(this.seriesGroup=c.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&
this.setResponsive();this.hasRendered=!0};a.prototype.addCredits=function(b){var a=this,c=U(!0,this.options.credits,b);c.enabled&&!this.credits&&(this.credits=this.renderer.text(c.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){c.href&&(v.location.href=c.href)}).attr({align:c.position.align,zIndex:8}),a.styledMode||this.credits.css(c.style),this.credits.add().align(c.position),this.credits.update=function(b){a.credits=a.credits.destroy();a.addCredits(b)})};a.prototype.destroy=
function(){var b=this,a=b.axes,c=b.series,d=b.container,f=d&&d.parentNode,e;S(b,"destroy");b.renderer.forExport?w(u,b):u[b.index]=void 0;D.chartCount--;b.renderTo.removeAttribute("data-highcharts-chart");ha(b);for(e=a.length;e--;)a[e]=a[e].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(e=c.length;e--;)c[e]=c[e].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(a){var c=
b[a];c&&c.destroy&&(b[a]=c.destroy())});d&&(d.innerHTML=k.emptyHTML,ha(d),f&&Y(d));Z(b,function(a,c){delete b[c]})};a.prototype.firstRender=function(){var b=this,a=b.options;if(!b.isReadyToRender||b.isReadyToRender()){b.getContainer();b.resetMargins();b.setChartSize();b.propFromSeries();b.getAxes();(P(a.series)?a.series:[]).forEach(function(a){b.initSeries(a)});b.linkSeries();b.setSeriesData();S(b,"beforeRender");q&&(t.isRequired()?b.pointer=new t(b,a):b.pointer=new q(b,a));b.render();b.pointer.getChartPosition();
if(!b.renderer.imgCount&&!b.hasLoaded)b.onload();b.temporaryDisplay(!0)}};a.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(b){b&&"undefined"!==typeof this.index&&b.apply(this,[this])},this);S(this,"load");S(this,"render");W(this.index)&&this.setReflow(this.options.chart.reflow);this.warnIfA11yModuleNotLoaded();this.hasLoaded=!0};a.prototype.warnIfA11yModuleNotLoaded=function(){var b=this.options,a=this.title;b&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img",
"aria-label":(a&&a.element.textContent||"").replace(/</g,"&lt;")}),b.accessibility&&!1===b.accessibility.enabled||T('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))};a.prototype.addSeries=function(b,a,c){var d=this,f;b&&(a=V(a,!0),S(d,"addSeries",{options:b},function(){f=
d.initSeries(b);d.isDirtyLegend=!0;d.linkSeries();f.enabledDataSorting&&f.setData(b.data,!1);S(d,"afterAddSeries",{series:f});a&&d.redraw(c)}));return f};a.prototype.addAxis=function(b,a,c,d){return this.createAxis(a?"xAxis":"yAxis",{axis:b,redraw:c,animation:d})};a.prototype.addColorAxis=function(b,a,c){return this.createAxis("colorAxis",{axis:b,redraw:a,animation:c})};a.prototype.createAxis=function(b,a){b=new g(this,U(a.axis,{index:this[b].length,isX:"xAxis"===b}));V(a.redraw,!0)&&this.redraw(a.animation);
return b};a.prototype.showLoading=function(b){var a=this,c=a.options,d=c.loading,f=function(){e&&Q(e,{left:a.plotLeft+"px",top:a.plotTop+"px",width:a.plotWidth+"px",height:a.plotHeight+"px"})},e=a.loadingDiv,h=a.loadingSpan;e||(a.loadingDiv=e=N("div",{className:"highcharts-loading highcharts-loading-hidden"},null,a.container));h||(a.loadingSpan=h=N("span",{className:"highcharts-loading-inner"},null,e),p(a,"redraw",f));e.className="highcharts-loading";k.setElementHTML(h,V(b,c.lang.loading,""));a.styledMode||
(Q(e,L(d.style,{zIndex:10})),Q(h,d.labelStyle),a.loadingShown||(Q(e,{opacity:0,display:""}),r(e,{opacity:d.style.opacity||.5},{duration:d.showDuration||0})));a.loadingShown=!0;f()};a.prototype.hideLoading=function(){var b=this.options,a=this.loadingDiv;a&&(a.className="highcharts-loading highcharts-loading-hidden",this.styledMode||r(a,{opacity:0},{duration:b.loading.hideDuration||100,complete:function(){Q(a,{display:"none"})}}));this.loadingShown=!1};a.prototype.update=function(b,a,d,f){var e=this,
g={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l=b.isResponsiveOptions,k=[],m,p;S(e,"update",{options:b});l||e.setResponsive(!1,!0);b=F(b,e.options);e.userOptions=U(e.userOptions,b);var n=b.chart;if(n){U(!0,e.options.chart,n);"className"in n&&e.setClassName(n.className);"reflow"in n&&e.setReflow(n.reflow);if("inverted"in n||"polar"in n||"type"in n){e.propFromSeries();var H=!0}"alignTicks"in n&&(H=!0);"events"in n&&c(this,n);Z(n,function(b,a){-1!==e.propsRequireUpdateSeries.indexOf("chart."+
a)&&(m=!0);-1!==e.propsRequireDirtyBox.indexOf(a)&&(e.isDirtyBox=!0);-1!==e.propsRequireReflow.indexOf(a)&&(l?e.isDirtyBox=!0:p=!0)});!e.styledMode&&n.style&&e.renderer.setStyle(e.options.chart.style||{})}!e.styledMode&&b.colors&&(this.options.colors=b.colors);b.time&&(this.time===I&&(this.time=new h(b.time)),U(!0,e.options.time,b.time));Z(b,function(a,c){if(e[c]&&"function"===typeof e[c].update)e[c].update(a,!1);else if("function"===typeof e[g[c]])e[g[c]](a);else"colors"!==c&&-1===e.collectionsWithUpdate.indexOf(c)&&
U(!0,e.options[c],b[c]);"chart"!==c&&-1!==e.propsRequireUpdateSeries.indexOf(c)&&(m=!0)});this.collectionsWithUpdate.forEach(function(a){if(b[a]){var c=[];e[a].forEach(function(b,a){b.options.isInternal||c.push(V(b.options.index,a))});ea(b[a]).forEach(function(b,f){var h=W(b.id),g;h&&(g=e.get(b.id));!g&&e[a]&&(g=e[a][c?c[f]:f])&&h&&W(g.options.id)&&(g=void 0);g&&g.coll===a&&(g.update(b,!1),d&&(g.touched=!0));!g&&d&&e.collectionsWithInit[a]&&(e.collectionsWithInit[a][0].apply(e,[b].concat(e.collectionsWithInit[a][1]||
[]).concat([!1])).touched=!0)});d&&e[a].forEach(function(b){b.touched||b.options.isInternal?delete b.touched:k.push(b)})}});k.forEach(function(b){b.chart&&b.remove&&b.remove(!1)});H&&e.axes.forEach(function(b){b.update({},!1)});m&&e.getSeriesOrderByLinks().forEach(function(b){b.chart&&b.update({},!1)},this);H=n&&n.width;n=n&&(R(n.height)?fa(n.height,H||e.chartWidth):n.height);p||O(H)&&H!==e.chartWidth||O(n)&&n!==e.chartHeight?e.setSize(H,n,f):V(a,!0)&&e.redraw(f);S(e,"afterUpdate",{options:b,redraw:a,
animation:f})};a.prototype.setSubtitle=function(b,a){this.applyDescription("subtitle",b);this.layOutTitles(a)};a.prototype.setCaption=function(b,a){this.applyDescription("caption",b);this.layOutTitles(a)};a.prototype.showResetZoom=function(){function b(){a.zoomOut()}var a=this,c=z.lang,d=a.options.chart.zooming.resetButton,f=d.theme,e="chart"===d.relativeTo||"spacingBox"===d.relativeTo?null:"scrollablePlotBox";S(this,"beforeShowResetZoom",null,function(){a.resetZoomButton=a.renderer.button(c.resetZoom,
null,null,b,f).attr({align:d.position.align,title:c.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(d.position,!1,e)});S(this,"afterShowResetZoom")};a.prototype.zoomOut=function(){S(this,"selection",{resetSelection:!0},this.zoom)};a.prototype.zoom=function(b){var a=this,c=a.pointer,d=!1,f;!b||b.resetSelection?(a.axes.forEach(function(b){f=b.zoom()}),c.initiated=!1):b.xAxis.concat(b.yAxis).forEach(function(b){var e=b.axis;if(c[e.isXAxis?"zoomX":"zoomY"]&&W(c.mouseDownX)&&W(c.mouseDownY)&&
a.isInsidePlot(c.mouseDownX-a.plotLeft,c.mouseDownY-a.plotTop,{axis:e})||!W(a.inverted?c.mouseDownX:c.mouseDownY))f=e.zoom(b.min,b.max),e.displayBtn&&(d=!0)});var e=a.resetZoomButton;d&&!e?a.showResetZoom():!d&&X(e)&&(a.resetZoomButton=e.destroy());f&&a.redraw(V(a.options.chart.animation,b&&b.animation,100>a.pointCount))};a.prototype.pan=function(b,a){var c=this,d=c.hoverPoints;a="object"===typeof a?a:{enabled:a,type:"x"};var f=c.options.chart;f&&f.panning&&(f.panning=a);var e=a.type,h;S(this,"pan",
{originalEvent:b},function(){d&&d.forEach(function(b){b.setState()});var a=c.xAxis;"xy"===e?a=a.concat(c.yAxis):"y"===e&&(a=c.yAxis);var f={};a.forEach(function(a){if(a.options.panningEnabled&&!a.options.isInternal){var d=a.horiz,g=b[d?"chartX":"chartY"];d=d?"mouseDownX":"mouseDownY";var l=c[d],k=a.minPointOffset||0,m=a.reversed&&!c.inverted||!a.reversed&&c.inverted?-1:1,p=a.getExtremes(),n=a.toValue(l-g,!0)+k*m,H=a.toValue(l+a.len-g,!0)-(k*m||a.isXAxis&&a.pointRangePadding||0),v=H<n;m=a.hasVerticalPanning();
l=v?H:n;n=v?n:H;var r=a.panningState;!m||a.isXAxis||r&&!r.isDirty||a.series.forEach(function(b){var a=b.getProcessedData(!0);a=b.getExtremes(a.yData,!0);r||(r={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});O(a.dataMin)&&O(a.dataMax)&&(r.startMin=Math.min(V(b.options.threshold,Infinity),a.dataMin,r.startMin),r.startMax=Math.max(V(b.options.threshold,-Infinity),a.dataMax,r.startMax))});m=Math.min(V(r&&r.startMin,p.dataMin),k?p.min:a.toValue(a.toPixels(p.min)-a.minPixelPadding));H=Math.max(V(r&&
r.startMax,p.dataMax),k?p.max:a.toValue(a.toPixels(p.max)+a.minPixelPadding));a.panningState=r;a.isOrdinal||(k=m-l,0<k&&(n+=k,l=m),k=n-H,0<k&&(n=H,l-=k),a.series.length&&l!==p.min&&n!==p.max&&l>=m&&n<=H&&(a.setExtremes(l,n,!1,!1,{trigger:"pan"}),!c.resetZoomButton&&l!==m&&n!==H&&e.match("y")&&(c.showResetZoom(),a.displayBtn=!1),h=!0),f[d]=g)}});Z(f,function(b,a){c[a]=b});h&&c.redraw(!1);Q(c.container,{cursor:"move"})})};return a}();L(a.prototype,{callbacks:[],collectionsWithInit:{xAxis:[a.prototype.addAxis,
[!0]],yAxis:[a.prototype.addAxis,[!1]],series:[a.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});
"";return a});L(g,"Core/Legend/LegendSymbol.js",[g["Core/Utilities.js"]],function(a){var g=a.extend,y=a.merge,E=a.pick,C;(function(a){a.drawLineMarker=function(a){var t=this.legendItem=this.legendItem||{},q=this.options,n=a.symbolWidth,e=a.symbolHeight,d=e/2,h=this.chart.renderer,m=t.group;a=a.baseline-Math.round(.3*a.fontMetrics.b);var k={},r=q.marker,B=0;this.chart.styledMode||(k={"stroke-width":Math.min(q.lineWidth||0,24)},q.dashStyle?k.dashstyle=q.dashStyle:"square"!==q.linecap&&(k["stroke-linecap"]=
"round"));t.line=h.path().addClass("highcharts-graph").attr(k).add(m);k["stroke-linecap"]&&(B=Math.min(t.line.strokeWidth(),n)/2);t.line.attr({d:[["M",B,a],["L",n-B,a]]});r&&!1!==r.enabled&&n&&(q=Math.min(E(r.radius,d),d),0===this.symbol.indexOf("url")&&(r=y(r,{width:e,height:e}),q=0),t.symbol=t=h.symbol(this.symbol,n/2-q,a-q,2*q,2*q,g({context:"legend"},r)).addClass("highcharts-point").add(m),t.isMarker=!0)};a.drawRectangle=function(a,g){g=g.legendItem||{};var q=a.symbolHeight,n=a.options.squareSymbol;
g.symbol=this.chart.renderer.rect(n?(a.symbolWidth-q)/2:0,a.baseline-q+1,n?q:a.symbolWidth,q,E(a.options.symbolRadius,q/2)).addClass("highcharts-point").attr({zIndex:3}).add(g.group)}})(C||(C={}));return C});L(g,"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 a=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":a(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"}});L(g,"Core/Series/Series.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Defaults.js"],g["Core/Foundation.js"],g["Core/Globals.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/Point.js"],g["Core/Series/SeriesDefaults.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Utilities.js"]],
function(a,g,y,E,C,D,J,t,q,n){var e=a.animObject,d=a.setAnimation,h=g.defaultOptions,m=y.registerEventOptions,k=E.hasTouch,r=E.svg,B=E.win,G=t.seriesTypes,z=n.arrayMax,I=n.arrayMin,x=n.clamp,c=n.cleanRecursively,u=n.correctFloat,f=n.defined,l=n.erase,b=n.error,v=n.extend,A=n.find,p=n.fireEvent,M=n.getNestedProperty,F=n.isArray,N=n.isNumber,Q=n.isString,W=n.merge,Y=n.objectEach,w=n.pick,T=n.removeEvent,L=n.splat,ca=n.syncTimeout;a=function(){function a(){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}a.prototype.init=function(b,a){p(this,"init",{options:a});var c=this,d=b.series;this.eventsToUnbind=[];c.chart=b;c.options=c.setOptions(a);a=c.options;c.linkedSeries=[];c.bindAxes();v(c,{name:a.name,state:"",visible:!1!==a.visible,selected:!0===a.selected});m(this,a);var f=a.events;if(f&&f.click||a.point&&a.point.events&&
a.point.events.click||a.allowPointSelect)b.runTrackerClick=!0;c.getColor();c.getSymbol();c.parallelArrays.forEach(function(b){c[b+"Data"]||(c[b+"Data"]=[])});c.isCartesian&&(b.hasCartesianSeries=!0);var e;d.length&&(e=d[d.length-1]);c._i=w(e&&e._i,-1)+1;c.opacity=c.options.opacity;b.orderSeries(this.insert(d));a.dataSorting&&a.dataSorting.enabled?c.setDataSortingOptions():c.points||c.data||c.setData(a.data,!1);p(this,"afterInit")};a.prototype.is=function(b){return G[b]&&this instanceof G[b]};a.prototype.insert=
function(b){var a=this.options.index,c;if(N(a)){for(c=b.length;c--;)if(a>=w(b[c].options.index,b[c]._i)){b.splice(c+1,0,this);break}-1===c&&b.unshift(this);c+=1}else b.push(this);return w(c,b.length-1)};a.prototype.bindAxes=function(){var a=this,c=a.options,d=a.chart,f;p(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(e){var h=0;d[e].forEach(function(b){f=b.options;if(c[e]===h&&!f.isInternal||"undefined"!==typeof c[e]&&c[e]===f.id||"undefined"===typeof c[e]&&0===f.index)a.insert(b.series),
a[e]=b,b.isDirty=!0;f.isInternal||h++});a[e]||a.optionalAxis===e||b(18,!0,d)})});p(this,"afterBindAxes")};a.prototype.updateParallelArrays=function(b,a){var c=b.series,d=arguments,f=N(a)?function(d){var f="y"===d&&c.toYData?c.toYData(b):b[d];c[d+"Data"][a]=f}:function(b){Array.prototype[a].apply(c[b+"Data"],Array.prototype.slice.call(d,2))};c.parallelArrays.forEach(f)};a.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&
this.yData&&0<this.yData.length};a.prototype.autoIncrement=function(b){var a=this.options,c=a.pointIntervalUnit,d=a.relativeXValue,f=this.chart.time,e=this.xIncrement,h;e=w(e,a.pointStart,0);this.pointInterval=h=w(this.pointInterval,a.pointInterval,1);d&&N(b)&&(h*=b);c&&(a=new f.Date(e),"day"===c?f.set("Date",a,f.get("Date",a)+h):"month"===c?f.set("Month",a,f.get("Month",a)+h):"year"===c&&f.set("FullYear",a,f.get("FullYear",a)+h),h=a.getTime()-e);if(d&&N(b))return e+h;this.xIncrement=e+h;return e};
a.prototype.setDataSortingOptions=function(){var b=this.options;v(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});f(b.pointRange)||(b.pointRange=1)};a.prototype.setOptions=function(b){var a=this.chart,c=a.options,d=c.plotOptions,e=a.userOptions||{};b=W(b);a=a.styledMode;var g={plotOptions:d,userOptions:b};p(this,"setOptions",g);var l=g.plotOptions[this.type],k=e.plotOptions||{};this.userOptions=g.userOptions;e=W(l,d.series,e.plotOptions&&e.plotOptions[this.type],b);this.tooltipOptions=
W(h.tooltip,h.plotOptions.series&&h.plotOptions.series.tooltip,h.plotOptions[this.type].tooltip,c.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,b.tooltip);this.stickyTracking=w(b.stickyTracking,k[this.type]&&k[this.type].stickyTracking,k.series&&k.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:e.stickyTracking);null===l.marker&&delete e.marker;this.zoneAxis=e.zoneAxis;d=this.zones=(e.zones||[]).slice();!e.negativeColor&&!e.negativeFillColor||e.zones||
(c={value:e[this.zoneAxis+"Threshold"]||e.threshold||0,className:"highcharts-negative"},a||(c.color=e.negativeColor,c.fillColor=e.negativeFillColor),d.push(c));d.length&&f(d[d.length-1].value)&&d.push(a?{}:{color:this.color,fillColor:this.fillColor});p(this,"afterSetOptions",{options:e});return e};a.prototype.getName=function(){return w(this.options.name,"Series "+(this.index+1))};a.prototype.getCyclic=function(b,a,c){var d=this.chart,e=this.userOptions,h=b+"Index",g=b+"Counter",l=c?c.length:w(d.options.chart[b+
"Count"],d[b+"Count"]);if(!a){var k=w(e[h],e["_"+h]);f(k)||(d.series.length||(d[g]=0),e["_"+h]=k=d[g]%l,d[g]+=1);c&&(a=c[k])}"undefined"!==typeof k&&(this[h]=k);this[b]=a};a.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||h.plotOptions[this.type].color,this.chart.options.colors)};a.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};a.prototype.getSymbol=
function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};a.prototype.findPointIndex=function(b,a){var c=b.id,d=b.x,f=this.points,e=this.options.dataSorting,h,g;if(c)e=this.chart.get(c),e instanceof D&&(h=e);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(h=function(a){return!a.touched&&a.index===b.index},e&&e.matchByName?h=function(a){return!a.touched&&a.name===b.name}:this.options.relativeXValue&&(h=function(a){return!a.touched&&
a.options.x===b.x}),h=A(f,h),!h)return;if(h){var l=h&&h.index;"undefined"!==typeof l&&(g=!0)}"undefined"===typeof l&&N(d)&&(l=this.xData.indexOf(d,a));-1!==l&&"undefined"!==typeof l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l);!g&&N(l)&&f[l]&&f[l].touched&&(l=void 0);return l};a.prototype.updateData=function(b,a){var c=this.options,d=c.dataSorting,e=this.points,h=[],g=this.requireSorting,l=b.length===e.length,k,m,p,n=!0;this.xIncrement=null;b.forEach(function(b,a){var m=f(b)&&this.pointClass.prototype.optionsToObject.call({series:this},
b)||{},n=m.x;if(m.id||N(n)){if(m=this.findPointIndex(m,p),-1===m||"undefined"===typeof m?h.push(b):e[m]&&b!==c.data[m]?(e[m].update(b,!1,null,!1),e[m].touched=!0,g&&(p=m+1)):e[m]&&(e[m].touched=!0),!l||a!==m||d&&d.enabled||this.hasDerivedData)k=!0}else h.push(b)},this);if(k)for(b=e.length;b--;)(m=e[b])&&!m.touched&&m.remove&&m.remove(!1,a);else!l||d&&d.enabled?n=!1:(b.forEach(function(b,a){b!==e[a].y&&e[a].update&&e[a].update(b,!1,null,!1)}),h.length=0);e.forEach(function(b){b&&(b.touched=!1)});if(!n)return!1;
h.forEach(function(b){this.addPoint(b,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=z(this.xData),this.autoIncrement());return!0};a.prototype.setData=function(a,c,d,e){void 0===c&&(c=!0);var f=this,h=f.points,g=h&&h.length||0,l=f.options,k=f.chart,m=l.dataSorting,p=f.xAxis,n=l.turboThreshold,v=this.xData,H=this.yData,r=f.pointArrayMap;r=r&&r.length;var u=l.keys,w,x=0,q=1,A=null;if(!k.options.chart.allowMutatingData){l.data&&delete f.options.data;f.userOptions.data&&
delete f.userOptions.data;var t=W(!0,a)}a=t||a||[];t=a.length;m&&m.enabled&&(a=this.sortData(a));k.options.chart.allowMutatingData&&!1!==e&&t&&g&&!f.cropped&&!f.hasGroupedData&&f.visible&&!f.boosted&&(w=this.updateData(a,d));if(!w){f.xIncrement=null;f.colorCounter=0;this.parallelArrays.forEach(function(b){f[b+"Data"].length=0});if(n&&t>n)if(A=f.getFirstValidPoint(a),N(A))for(d=0;d<t;d++)v[d]=this.autoIncrement(),H[d]=a[d];else if(F(A))if(r)if(A.length===r)for(d=0;d<t;d++)v[d]=this.autoIncrement(),
H[d]=a[d];else for(d=0;d<t;d++)e=a[d],v[d]=e[0],H[d]=e.slice(1,r+1);else if(u&&(x=u.indexOf("x"),q=u.indexOf("y"),x=0<=x?x:0,q=0<=q?q:1),1===A.length&&(q=0),x===q)for(d=0;d<t;d++)v[d]=this.autoIncrement(),H[d]=a[d][q];else for(d=0;d<t;d++)e=a[d],v[d]=e[x],H[d]=e[q];else b(12,!1,k);else for(d=0;d<t;d++)"undefined"!==typeof a[d]&&(e={series:f},f.pointClass.prototype.applyOptions.apply(e,[a[d]]),f.updateParallelArrays(e,d));H&&Q(H[0])&&b(14,!0,k);f.data=[];f.options.data=f.userOptions.data=a;for(d=g;d--;)h[d]&&
h[d].destroy&&h[d].destroy();p&&(p.minRange=p.userMinRange);f.isDirty=k.isDirtyBox=!0;f.isDirtyData=!!h;d=!1}"point"===l.legendType&&(this.processData(),this.generatePoints());c&&k.redraw(d)};a.prototype.sortData=function(b){var a=this,c=a.options.dataSorting.sortKey||"y",d=function(b,a){return f(a)&&b.pointClass.prototype.optionsToObject.call({series:b},a)||{}};b.forEach(function(c,f){b[f]=d(a,c);b[f].index=f},this);b.concat().sort(function(b,a){b=M(c,b);a=M(c,a);return a<b?-1:a>b?1:0}).forEach(function(b,
a){b.x=a},this);a.linkedSeries&&a.linkedSeries.forEach(function(a){var c=a.options,f=c.data;c.dataSorting&&c.dataSorting.enabled||!f||(f.forEach(function(c,e){f[e]=d(a,c);b[e]&&(f[e].x=b[e].x,f[e].index=e)}),a.setData(f,!1))});return b};a.prototype.getProcessedData=function(a){var c=this.xAxis,d=this.options,f=d.cropThreshold,e=a||this.getExtremesFromAll||d.getExtremesFromAll,h=this.isCartesian;a=c&&c.val2lin;d=!(!c||!c.logarithmic);var g=0,l=this.xData,k=this.yData,m=this.requireSorting;var p=!1;
var n=l.length;if(c){p=c.getExtremes();var v=p.min;var H=p.max;p=!(!c.categories||c.names.length)}if(h&&this.sorted&&!e&&(!f||n>f||this.forceCrop))if(l[n-1]<v||l[0]>H)l=[],k=[];else if(this.yData&&(l[0]<v||l[n-1]>H)){var r=this.cropData(this.xData,this.yData,v,H);l=r.xData;k=r.yData;g=r.start;r=!0}for(f=l.length||1;--f;)if(c=d?a(l[f])-a(l[f-1]):l[f]-l[f-1],0<c&&("undefined"===typeof u||c<u))var u=c;else 0>c&&m&&!p&&(b(15,!1,this.chart),m=!1);return{xData:l,yData:k,cropped:r,cropStart:g,closestPointRange:u}};
a.prototype.processData=function(b){var a=this.xAxis;if(this.isCartesian&&!this.isDirty&&!a.isDirty&&!this.yAxis.isDirty&&!b)return!1;b=this.getProcessedData();this.cropped=b.cropped;this.cropStart=b.cropStart;this.processedXData=b.xData;this.processedYData=b.yData;this.closestPointRange=this.basePointRange=b.closestPointRange;p(this,"afterProcessData")};a.prototype.cropData=function(b,a,c,d,f){var e=b.length,h,g=0,l=e;f=w(f,this.cropShoulder);for(h=0;h<e;h++)if(b[h]>=c){g=Math.max(0,h-f);break}for(c=
h;c<e;c++)if(b[c]>d){l=c+f;break}return{xData:b.slice(g,l),yData:a.slice(g,l),start:g,end:l}};a.prototype.generatePoints=function(){var b=this.options,a=this.processedData||b.data,c=this.processedXData,d=this.processedYData,f=this.pointClass,e=c.length,h=this.cropStart||0,g=this.hasGroupedData,l=b.keys,k=[];b=b.dataGrouping&&b.dataGrouping.groupAll?h:0;var m,n,r=this.data;if(!r&&!g){var u=[];u.length=a.length;r=this.data=u}l&&g&&(this.options.keys=!1);for(n=0;n<e;n++){u=h+n;if(g){var w=(new f).init(this,
[c[n]].concat(L(d[n])));w.dataGroup=this.groupMap[b+n];w.dataGroup.options&&(w.options=w.dataGroup.options,v(w,w.dataGroup.options),delete w.dataLabels)}else(w=r[u])||"undefined"===typeof a[u]||(r[u]=w=(new f).init(this,a[u],c[n]));w&&(w.index=g?b+n:u,k[n]=w)}this.options.keys=l;if(r&&(e!==(m=r.length)||g))for(n=0;n<m;n++)n!==h||g||(n+=e),r[n]&&(r[n].destroyElements(),r[n].plotX=void 0);this.data=r;this.points=k;p(this,"afterGeneratePoints")};a.prototype.getXExtremes=function(b){return{min:I(b),max:z(b)}};
a.prototype.getExtremes=function(b,a){var c=this.xAxis,d=this.yAxis,f=this.processedXData||this.xData,e=[],h=this.requireSorting?this.cropShoulder:0;d=d?d.positiveValuesOnly:!1;var g,l=0,k=0,m=0;b=b||this.stackedYData||this.processedYData||[];var n=b.length;if(c){var v=c.getExtremes();l=v.min;k=v.max}for(g=0;g<n;g++){var r=f[g];v=b[g];var u=(N(v)||F(v))&&(v.length||0<v||!d);r=a||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!c||(f[g+h]||r)>=l&&(f[g-h]||r)<=k;if(u&&r)if(u=
v.length)for(;u--;)N(v[u])&&(e[m++]=v[u]);else e[m++]=v}b={activeYData:e,dataMin:I(e),dataMax:z(e)};p(this,"afterGetExtremes",{dataExtremes:b});return b};a.prototype.applyExtremes=function(){var b=this.getExtremes();this.dataMin=b.dataMin;this.dataMax=b.dataMax;return b};a.prototype.getFirstValidPoint=function(b){for(var a=b.length,c=0,d=null;null===d&&c<a;)d=b[c],c++;return d};a.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var b=this.options,a=b.stacking,
c=this.xAxis,d=c.categories,e=this.enabledDataSorting,h=this.yAxis,g=this.points,l=g.length,k=this.pointPlacementToXValue(),m=!!k,n=b.threshold,v=b.startFromThreshold?n:0,r=this.zoneAxis||"y",q,A,t=Number.MAX_VALUE;for(q=0;q<l;q++){var B=g[q],G=B.x,z=void 0,y=void 0,M=B.y,K=B.low,C=a&&h.stacking&&h.stacking.stacks[(this.negStacks&&M<(v?0:n)?"-":"")+this.stackKey];if(h.positiveValuesOnly&&!h.validatePositiveValue(M)||c.positiveValuesOnly&&!c.validatePositiveValue(G))B.isNull=!0;B.plotX=A=u(x(c.translate(G,
0,0,0,1,k,"flags"===this.type),-1E5,1E5));if(a&&this.visible&&C&&C[G]){var I=this.getStackIndicator(I,G,this.index);!B.isNull&&I.key&&(z=C[G],y=z.points[I.key]);z&&F(y)&&(K=y[0],M=y[1],K===v&&I.key===C[G].base&&(K=w(N(n)?n:h.min)),h.positiveValuesOnly&&f(K)&&0>=K&&(K=void 0),B.total=B.stackTotal=w(z.total),B.percentage=f(B.y)&&z.total?B.y/z.total*100:void 0,B.stackY=M,this.irregularWidths||z.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}B.yBottom=f(K)?x(h.translate(K,
0,1,0,1),-1E5,1E5):void 0;this.dataModify&&(M=this.dataModify.modifyValue(M,q));B.plotY=void 0;N(M)&&(z=h.translate(M,!1,!0,!1,!0),"undefined"!==typeof z&&(B.plotY=x(z,-1E5,1E5)));B.isInside=this.isPointInside(B);B.clientX=m?u(c.translate(G,0,0,0,1,k)):A;B.negative=B[r]<(b[r+"Threshold"]||n||0);B.category=w(d&&d[B.x],B.x);if(!B.isNull&&!1!==B.visible){"undefined"!==typeof D&&(t=Math.min(t,Math.abs(A-D)));var D=A}B.zone=this.zones.length?B.getZone():void 0;!B.graphic&&this.group&&e&&(B.isNew=!0)}this.closestPointRangePx=
t;p(this,"afterTranslate")};a.prototype.getValidPoints=function(b,a,c){var d=this.chart;return(b||this.points||[]).filter(function(b){return a&&!d.isInsidePlot(b.plotX,b.plotY,{inverted:d.inverted})?!1:!1!==b.visible&&(c||!b.isNull)})};a.prototype.getClipBox=function(){var b=this.chart,a=this.xAxis,c=this.yAxis,d=W(b.clipBox);a&&a.len!==b.plotSizeX&&(d.width=a.len);c&&c.len!==b.plotSizeY&&(d.height=c.len);return d};a.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||
0)+","+(this.options.yAxis||0)};a.prototype.setClip=function(){var b=this.chart,a=this.group,c=this.markerGroup,d=b.sharedClips;b=b.renderer;var f=this.getClipBox(),e=this.getSharedClipKey(),h=d[e];h?h.animate(f):d[e]=h=b.clipRect(f);a&&a.clip(!1===this.options.clip?void 0:h);c&&c.clip()};a.prototype.animate=function(b){var a=this.chart,c=this.group,d=this.markerGroup,f=a.inverted,h=e(this.options.animation),g=[this.getSharedClipKey(),h.duration,h.easing,h.defer].join(),l=a.sharedClips[g],k=a.sharedClips[g+
"m"];if(b&&c)h=this.getClipBox(),l?l.attr("height",h.height):(h.width=0,f&&(h.x=a.plotHeight),l=a.renderer.clipRect(h),a.sharedClips[g]=l,k=a.renderer.clipRect({x:-99,y:-99,width:f?a.plotWidth+199:99,height:f?99:a.plotHeight+199}),a.sharedClips[g+"m"]=k),c.clip(l),d&&d.clip(k);else if(l&&!l.hasClass("highcharts-animating")){a=this.getClipBox();var m=h.step;d&&d.element.childNodes.length&&(h.step=function(b,a){m&&m.apply(a,arguments);"width"===a.prop&&k&&k.element&&k.attr(f?"height":"width",b+99)});
l.addClass("highcharts-animating").animate(a,h)}};a.prototype.afterAnimate=function(){var b=this;this.setClip();Y(this.chart.sharedClips,function(a,c,d){a&&!b.chart.container.querySelector('[clip-path="url(#'.concat(a.id,')"]'))&&(a.destroy(),delete d[c])});this.finishedAnimating=!0;p(this,"afterAnimate")};a.prototype.drawPoints=function(b){void 0===b&&(b=this.points);var a=this.chart,c=a.styledMode,d=this.colorAxis,f=this.options.marker,e=this[this.specialGroup||"markerGroup"],h=this.xAxis,g=w(f.enabled,
!h||h.isRadial?!0:null,this.closestPointRangePx>=f.enabledThreshold*f.radius),l,k;if(!1!==f.enabled||this._hasPointMarkers)for(l=0;l<b.length;l++){var m=b[l];var n=(k=m.graphic)?"animate":"attr";var p=m.marker||{};var v=!!m.marker;if((g&&"undefined"===typeof p.enabled||p.enabled)&&!m.isNull&&!1!==m.visible){var r=w(p.symbol,this.symbol,"rect");var u=this.markerAttribs(m,m.selected&&"select");this.enabledDataSorting&&(m.startXPos=h.reversed?-(u.width||0):h.width);var H=!1!==m.isInside;!k&&H&&(0<(u.width||
0)||m.hasImage)&&(m.graphic=k=a.renderer.symbol(r,u.x,u.y,u.width,u.height,v?p:f).add(e),this.enabledDataSorting&&a.hasRendered&&(k.attr({x:m.startXPos}),n="animate"));k&&"animate"===n&&k[H?"show":"hide"](H).animate(u);if(k)if(p=this.pointAttribs(m,c||!m.selected?void 0:"select"),c)d&&k.css({fill:p.fill});else k[n](p);k&&k.addClass(m.getClassName(),!0)}else k&&(m.graphic=k.destroy())}};a.prototype.markerAttribs=function(b,a){var c=this.options,d=c.marker,f=b.marker||{},e=f.symbol||d.symbol,h={},g=
w(f.radius,d&&d.radius);a&&(d=d.states[a],a=f.states&&f.states[a],g=w(a&&a.radius,d&&d.radius,g&&g+(d&&d.radiusPlus||0)));b.hasImage=e&&0===e.indexOf("url");b.hasImage&&(g=0);b=b.pos();N(g)&&b&&(h.x=b[0]-g,h.y=b[1]-g,c.crisp&&(h.x=Math.floor(h.x)));g&&(h.width=h.height=2*g);return h};a.prototype.pointAttribs=function(b,a){var c=this.options.marker,d=b&&b.options,f=d&&d.marker||{},e=d&&d.color,h=b&&b.color,g=b&&b.zone&&b.zone.color,l=this.color;b=w(f.lineWidth,c.lineWidth);d=1;l=e||g||h||l;e=f.fillColor||
c.fillColor||l;h=f.lineColor||c.lineColor||l;a=a||"normal";c=c.states[a]||{};a=f.states&&f.states[a]||{};b=w(a.lineWidth,c.lineWidth,b+w(a.lineWidthPlus,c.lineWidthPlus,0));e=a.fillColor||c.fillColor||e;h=a.lineColor||c.lineColor||h;d=w(a.opacity,c.opacity,d);return{stroke:h,"stroke-width":b,fill:e,opacity:d}};a.prototype.destroy=function(b){var a=this,c=a.chart,d=/AppleWebKit\/533/.test(B.navigator.userAgent),f=a.data||[],e,h,g,k;p(a,"destroy",{keepEventsForUpdate:b});this.removeEvents(b);(a.axisTypes||
[]).forEach(function(b){(k=a[b])&&k.series&&(l(k.series,a),k.isDirty=k.forceRedraw=!0)});a.legendItem&&a.chart.legend.destroyItem(a);for(h=f.length;h--;)(g=f[h])&&g.destroy&&g.destroy();a.clips&&a.clips.forEach(function(b){return b.destroy()});n.clearTimeout(a.animationTimeout);Y(a,function(b,a){b instanceof q&&!b.survive&&(e=d&&"group"===a?"hide":"destroy",b[e]())});c.hoverSeries===a&&(c.hoverSeries=void 0);l(c.series,a);c.orderSeries();Y(a,function(c,d){b&&"hcEvents"===d||delete a[d]})};a.prototype.applyZones=
function(){var b=this,a=this.chart,c=a.renderer,d=this.zones,f=this.clips||[],e=this.graph,h=this.area,g=Math.max(a.plotWidth,a.plotHeight),l=this[(this.zoneAxis||"y")+"Axis"],k=a.inverted,m,n,p,v,r,u,q,A,t=!1;if(d.length&&(e||h)&&l&&"undefined"!==typeof l.min){var B=l.reversed;var F=l.horiz;e&&!this.showLine&&e.hide();h&&h.hide();var G=l.getExtremes();d.forEach(function(d,H){m=B?F?a.plotWidth:0:F?0:l.toPixels(G.min)||0;m=x(w(n,m),0,g);n=x(Math.round(l.toPixels(w(d.value,G.max),!0)||0),0,g);t&&(m=
n=l.toPixels(G.max));v=Math.abs(m-n);r=Math.min(m,n);u=Math.max(m,n);l.isXAxis?(p={x:k?u:r,y:0,width:v,height:g},F||(p.x=a.plotHeight-p.x)):(p={x:0,y:k?u:r,width:g,height:v},F&&(p.y=a.plotWidth-p.y));k&&c.isVML&&(p=l.isXAxis?{x:0,y:B?r:u,height:p.width,width:a.chartWidth}:{x:p.y-a.plotLeft-a.spacingBox.x,y:0,width:p.height,height:a.chartHeight});f[H]?f[H].animate(p):f[H]=c.clipRect(p);q=b["zone-area-"+H];A=b["zone-graph-"+H];e&&A&&A.clip(f[H]);h&&q&&q.clip(f[H]);t=d.value>G.max;b.resetZones&&0===
n&&(n=void 0)});this.clips=f}else b.visible&&(e&&e.show(),h&&h.show())};a.prototype.plotGroup=function(b,a,c,d,e){var h=this[b],g=!h;c={visibility:c,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(c.opacity=this.opacity);g&&(this[b]=h=this.chart.renderer.g().add(e));h.addClass("highcharts-"+a+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(f(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||
"")+(h.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);h.attr(c)[g?"attr":"animate"](this.getPlotBox(a));return h};a.prototype.getPlotBox=function(b){var a=this.xAxis,c=this.yAxis,d=this.chart;b=d.inverted&&!d.polar&&a&&!1!==this.invertible&&"series"===b;d.inverted&&(a=c,c=this.xAxis);return{translateX:a?a.left:d.plotLeft,translateY:c?c.top:d.plotTop,rotation:b?90:0,rotationOriginX:b?(a.len-c.len)/2:0,rotationOriginY:b?(a.len+c.len)/2:0,scaleX:b?-1:1,scaleY:1}};a.prototype.removeEvents=
function(b){b||T(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(b){b()}),this.eventsToUnbind.length=0)};a.prototype.render=function(){var b=this,a=b.chart,c=b.options,d=e(c.animation),f=b.visible?"inherit":"hidden",h=c.zIndex,g=b.hasRendered,l=a.seriesGroup;a=!b.finishedAnimating&&a.renderer.isSVG?d.duration:0;p(this,"render");b.plotGroup("group","series",f,h,l);b.markerGroup=b.plotGroup("markerGroup","markers",f,h,l);!1!==c.clip&&b.setClip();b.animate&&a&&b.animate(!0);b.drawGraph&&
(b.drawGraph(),b.applyZones());b.visible&&b.drawPoints();b.drawDataLabels&&b.drawDataLabels();b.redrawPoints&&b.redrawPoints();b.drawTracker&&!1!==b.options.enableMouseTracking&&b.drawTracker();b.animate&&a&&b.animate();g||(a&&d.defer&&(a+=d.defer),b.animationTimeout=ca(function(){b.afterAnimate()},a||0));b.isDirty=!1;b.hasRendered=!0;p(b,"afterRender")};a.prototype.redraw=function(){var b=this.isDirty||this.isDirtyData;this.translate();this.render();b&&delete this.kdTree};a.prototype.searchPoint=
function(b,a){var c=this.xAxis,d=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?c.len-b.chartY+c.pos:b.chartX-c.pos,plotY:f?d.len-b.chartX+d.pos:b.chartY-d.pos},a,b)};a.prototype.buildKDTree=function(b){function a(b,d,f){var e=b&&b.length;if(e){var h=c.kdAxisArray[d%f];b.sort(function(b,a){return b[h]-a[h]});e=Math.floor(e/2);return{point:b[e],left:a(b.slice(0,e),d+1,f),right:a(b.slice(e+1),d+1,f)}}}this.buildingKdTree=!0;var c=this,d=-1<c.options.findNearestPointBy.indexOf("y")?
2:1;delete c.kdTree;ca(function(){c.kdTree=a(c.getValidPoints(null,!c.directTouch),d,d);c.buildingKdTree=!1},c.options.kdNow||b&&"touchstart"===b.type?0:1)};a.prototype.searchKDTree=function(b,a,c){function d(b,a,c,k){var m=a.point,n=e.kdAxisArray[c%k],p=m,v=f(b[h])&&f(m[h])?Math.pow(b[h]-m[h],2):null;var r=f(b[g])&&f(m[g])?Math.pow(b[g]-m[g],2):null;r=(v||0)+(r||0);m.dist=f(r)?Math.sqrt(r):Number.MAX_VALUE;m.distX=f(v)?Math.sqrt(v):Number.MAX_VALUE;n=b[n]-m[n];r=0>n?"left":"right";v=0>n?"right":
"left";a[r]&&(r=d(b,a[r],c+1,k),p=r[l]<p[l]?r:m);a[v]&&Math.sqrt(n*n)<p[l]&&(b=d(b,a[v],c+1,k),p=b[l]<p[l]?b:p);return p}var e=this,h=this.kdAxisArray[0],g=this.kdAxisArray[1],l=a?"distX":"dist";a=-1<e.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(c);if(this.kdTree)return d(b,this.kdTree,a,a)};a.prototype.pointPlacementToXValue=function(){var b=this.options,a=b.pointRange,c=this.xAxis;b=b.pointPlacement;"between"===b&&(b=c.reversed?-.5:.5);return N(b)?
b*(a||c.pointRange):0};a.prototype.isPointInside=function(b){var a=this.chart,c=this.xAxis,d=this.yAxis;return"undefined"!==typeof b.plotY&&"undefined"!==typeof b.plotX&&0<=b.plotY&&b.plotY<=(d?d.len:a.plotHeight)&&0<=b.plotX&&b.plotX<=(c?c.len:a.plotWidth)};a.prototype.drawTracker=function(){var b=this,a=b.options,c=a.trackByArea,d=[].concat(c?b.areaPath:b.graphPath),f=b.chart,e=f.pointer,h=f.renderer,g=f.options.tooltip.snap,l=b.tracker,m=function(a){if(f.hoverSeries!==b)b.onMouseOver()},n="rgba(192,192,192,"+
(r?.0001:.002)+")";l?l.attr({d:d}):b.graph&&(b.tracker=h.path(d).attr({visibility:b.visible?"inherit":"hidden",zIndex:2}).addClass(c?"highcharts-tracker-area":"highcharts-tracker-line").add(b.group),f.styledMode||b.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:n,fill:c?n:"none","stroke-width":b.graph.strokeWidth()+(c?0:2*g)}),[b.tracker,b.markerGroup,b.dataLabelsGroup].forEach(function(b){if(b&&(b.addClass("highcharts-tracker").on("mouseover",m).on("mouseout",function(b){e.onTrackerMouseOut(b)}),
a.cursor&&!f.styledMode&&b.css({cursor:a.cursor}),k))b.on("touchstart",m)}));p(this,"afterDrawTracker")};a.prototype.addPoint=function(b,a,c,d,f){var e=this.options,h=this.data,g=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var k=e.data,m=this.xData,n;a=w(a,!0);var v={series:this};this.pointClass.prototype.applyOptions.apply(v,[b]);var r=v.x;var u=m.length;if(this.requireSorting&&r<m[u-1])for(n=!0;u&&m[u-1]>r;)u--;this.updateParallelArrays(v,"splice",u,0,0);this.updateParallelArrays(v,u);l&&v.name&&
(l[r]=v.name);k.splice(u,0,b);if(n||this.processedData)this.data.splice(u,0,null),this.processData();"point"===e.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(v,"shift"),k.shift()));!1!==f&&p(this,"addPoint",{point:v});this.isDirtyData=this.isDirty=!0;a&&g.redraw(d)};a.prototype.removePoint=function(b,a,c){var f=this,e=f.data,h=e[b],g=f.points,l=f.chart,k=function(){g&&g.length===e.length&&g.splice(b,1);e.splice(b,1);f.options.data.splice(b,
1);f.updateParallelArrays(h||{series:f},"splice",b,1);h&&h.destroy();f.isDirty=!0;f.isDirtyData=!0;a&&l.redraw()};d(c,l);a=w(a,!0);h?h.firePointEvent("remove",null,k):k()};a.prototype.remove=function(b,a,c,d){function f(){e.destroy(d);h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();w(b,!0)&&h.redraw(a)}var e=this,h=e.chart;!1!==c?p(e,"remove",null,f):f()};a.prototype.update=function(a,d){a=c(a,this.userOptions);p(this,"update",{options:a});var f=this,e=f.chart,h=f.userOptions,g=f.initialType||f.type,
l=e.options.plotOptions,k=G[g].prototype,m=f.finishedAnimating&&{animation:!1},n={},r=["eventOptions","navigatorSeries","baseSeries"],u=a.type||h.type||e.options.chart.type,q=!(this.hasDerivedData||u&&u!==this.type||"undefined"!==typeof a.pointStart||"undefined"!==typeof a.pointInterval||"undefined"!==typeof a.relativeXValue||a.joinBy||a.mapData||f.hasOptionChanged("dataGrouping")||f.hasOptionChanged("pointStart")||f.hasOptionChanged("pointInterval")||f.hasOptionChanged("pointIntervalUnit")||f.hasOptionChanged("keys"));
u=u||g;q&&(r.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==a.visible&&r.push("area","graph"),f.parallelArrays.forEach(function(b){r.push(b+"Data")}),a.data&&(a.dataSorting&&v(f.options.dataSorting,a.dataSorting),this.setData(a.data,!1)));a=W(h,m,{index:"undefined"===typeof h.index?f.index:h.index,pointStart:w(l&&l.series&&
l.series.pointStart,h.pointStart,f.xData[0])},!q&&{data:f.options.data},a);q&&a.data&&(a.data=f.options.data);r=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(r);r.forEach(function(b){r[b]=f[b];delete f[b]});l=!1;if(G[u]){if(l=u!==f.type,f.remove(!1,!1,!1,!0),l)if(Object.setPrototypeOf)Object.setPrototypeOf(f,G[u].prototype);else{m=Object.hasOwnProperty.call(f,"hcEvents")&&f.hcEvents;for(x in k)f[x]=void 0;v(f,G[u].prototype);m?f.hcEvents=m:delete f.hcEvents}}else b(17,
!0,e,{missingModuleFor:u});r.forEach(function(b){f[b]=r[b]});f.init(e,a);if(q&&this.points){a=f.options;if(!1===a.visible)n.graphic=1,n.dataLabel=1;else if(!f._hasPointLabels){k=a.marker;var x=a.dataLabels;h=h.marker||{};!k||!1!==k.enabled&&h.symbol===k.symbol&&h.height===k.height&&h.width===k.width||(n.graphic=1);x&&!1===x.enabled&&(n.dataLabel=1)}h=0;for(k=this.points;h<k.length;h++)(x=k[h])&&x.series&&(x.resolveColor(),Object.keys(n).length&&x.destroyElements(n),!1===a.showInLegend&&x.legendItem&&
e.legend.destroyItem(x))}f.initialType=g;e.linkSeries();l&&f.linkedSeries.length&&(f.isDirtyData=!0);p(this,"afterUpdate");w(d,!0)&&e.redraw(q?void 0:!1)};a.prototype.setName=function(b){this.name=this.options.name=this.userOptions.name=b;this.chart.isDirtyLegend=!0};a.prototype.hasOptionChanged=function(b){var a=this.options[b],c=this.chart.options.plotOptions,d=this.userOptions[b];return d?a!==d:a!==w(c&&c[this.type]&&c[this.type][b],c&&c.series&&c.series[b],a)};a.prototype.onMouseOver=function(){var b=
this.chart,a=b.hoverSeries;b.pointer.setHoverChartIndex();if(a&&a!==this)a.onMouseOut();this.options.events.mouseOver&&p(this,"mouseOver");this.setState("hover");b.hoverSeries=this};a.prototype.onMouseOut=function(){var b=this.options,a=this.chart,c=a.tooltip,d=a.hoverPoint;a.hoverSeries=null;if(d)d.onMouseOut();this&&b.events.mouseOut&&p(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();a.series.forEach(function(b){b.setState("",!0)})};a.prototype.setState=function(b,
a){var c=this,d=c.options,f=c.graph,e=d.inactiveOtherPoints,h=d.states,g=w(h[b||"normal"]&&h[b||"normal"].animation,c.chart.options.chart.animation),l=d.lineWidth,k=0,m=d.opacity;b=b||"";if(c.state!==b&&([c.group,c.markerGroup,c.dataLabelsGroup].forEach(function(a){a&&(c.state&&a.removeClass("highcharts-series-"+c.state),b&&a.addClass("highcharts-series-"+b))}),c.state=b,!c.chart.styledMode)){if(h[b]&&!1===h[b].enabled)return;b&&(l=h[b].lineWidth||l+(h[b].lineWidthPlus||0),m=w(h[b].opacity,m));if(f&&
!f.dashstyle&&N(l))for(d={"stroke-width":l},f.animate(d,g);c["zone-graph-"+k];)c["zone-graph-"+k].animate(d,g),k+=1;e||[c.group,c.markerGroup,c.dataLabelsGroup,c.labelBySeries].forEach(function(b){b&&b.animate({opacity:m},g)})}a&&e&&c.points&&c.setAllPointsToState(b||void 0)};a.prototype.setAllPointsToState=function(b){this.points.forEach(function(a){a.setState&&a.setState(b)})};a.prototype.setVisible=function(b,a){var c=this,d=c.chart,f=d.options.chart.ignoreHiddenSeries,e=c.visible,h=(c.visible=
b=c.options.visible=c.userOptions.visible="undefined"===typeof b?!e:b)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(b){if(c[b])c[b][h]()});if(d.hoverSeries===c||(d.hoverPoint&&d.hoverPoint.series)===c)c.onMouseOut();c.legendItem&&d.legend.colorizeItem(c,b);c.isDirty=!0;c.options.stacking&&d.series.forEach(function(b){b.options.stacking&&b.visible&&(b.isDirty=!0)});c.linkedSeries.forEach(function(a){a.setVisible(b,!1)});f&&(d.isDirtyBox=!0);p(c,h);!1!==a&&
d.redraw()};a.prototype.show=function(){this.setVisible(!0)};a.prototype.hide=function(){this.setVisible(!1)};a.prototype.select=function(b){this.selected=b=this.options.selected="undefined"===typeof b?!this.selected:b;this.checkbox&&(this.checkbox.checked=b);p(this,b?"select":"unselect")};a.prototype.shouldShowTooltip=function(b,a,c){void 0===c&&(c={});c.series=this;c.visiblePlotOnly=!0;return this.chart.isInsidePlot(b,a,c)};a.defaultOptions=J;a.types=t.seriesTypes;a.registerType=t.registerSeriesType;
return a}();v(a.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:C.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:D,requireSorting:!0,sorted:!0});t.series=a;"";"";return a});L(g,"Extensions/ScrollablePlotArea.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Axis/Axis.js"],g["Core/Chart/Chart.js"],g["Core/Series/Series.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Utilities.js"]],
function(a,g,y,E,C,D){var z=a.stop,t=D.addEvent,q=D.createElement,n=D.defined,e=D.merge,d=D.pick;t(y,"afterSetChartSize",function(a){var d=this.options.chart.scrollablePlotArea,h=d&&d.minWidth;d=d&&d.minHeight;if(!this.renderer.forExport){if(h){if(this.scrollablePixelsX=h=Math.max(0,h-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=e(this.plotBox);this.plotBox.width=this.plotWidth+=h;this.inverted?this.clipBox.height+=h:this.clipBox.width+=h;var r={1:{name:"right",value:h}}}}else d&&
(this.scrollablePixelsY=h=Math.max(0,d-this.chartHeight),n(h)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=e(this.plotBox),this.plotBox.height=this.plotHeight+=h,this.inverted?this.clipBox.width+=h:this.clipBox.height+=h,r={2:{name:"bottom",value:h}}));r&&!a.skipAxes&&this.axes.forEach(function(a){r[a.side]?a.getPlotLinePath=function(){var d=r[a.side].name,e=this[d];this[d]=e-r[a.side].value;var h=g.prototype.getPlotLinePath.apply(this,arguments);this[d]=e;return h}:(a.setAxisSize(),a.setAxisTranslation())})}});
t(y,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});y.prototype.setUpScrolling=function(){var a=this,d={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(d.overflowX="auto");this.scrollablePixelsY&&(d.overflowY="auto");this.scrollingParent=q("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=
q("div",{className:"highcharts-scrolling"},d,this.scrollingParent);var e;t(this.scrollingContainer,"scroll",function(){a.pointer&&(delete a.pointer.chartPosition,a.hoverPoint&&(e=a.hoverPoint),a.pointer.runPointActions(void 0,e,!0))});this.innerContainer=q("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};y.prototype.moveFixedElements=function(){var a=this.container,d=this.fixedRenderer,e=".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(" "),
g;this.scrollablePixelsX&&!this.inverted?g=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(g=".highcharts-yaxis");g&&e.push("".concat(g,":not(.highcharts-radial-axis)"),"".concat(g,"-labels:not(.highcharts-radial-axis-labels)"));e.forEach(function(e){[].forEach.call(a.querySelectorAll(e),function(a){(a.namespaceURI===d.SVG_NS?d.box:d.box.parentNode).appendChild(a);a.style.pointerEvents=
"auto"})})};y.prototype.applyFixed=function(){var a=!this.fixedDiv,e=this.options.chart,g=e.scrollablePlotArea,n=C.getRendererType();a?(this.fixedDiv=q("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.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=e=new n(this.fixedDiv,this.chartWidth,
this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":d(g.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),t(this,"afterShowResetZoom",this.moveFixedElements),t(this,"afterApplyDrilldown",this.moveFixedElements),t(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||a)this.scrollableDirty=!1,this.moveFixedElements();
e=this.chartWidth+(this.scrollablePixelsX||0);n=this.chartHeight+(this.scrollablePixelsY||0);z(this.container);this.container.style.width=e+"px";this.container.style.height=n+"px";this.renderer.boxWrapper.attr({width:e,height:n,viewBox:[0,0,e,n].join(" ")});this.chartBackground.attr({width:e,height:n});this.scrollingContainer.style.height=this.chartHeight+"px";a&&(g.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*g.scrollPositionX),g.scrollPositionY&&(this.scrollingContainer.scrollTop=
this.scrollablePixelsY*g.scrollPositionY));n=this.axisOffset;a=this.plotTop-n[0]-1;g=this.plotLeft-n[3]-1;e=this.plotTop+this.plotHeight+n[2]+1;n=this.plotLeft+this.plotWidth+n[1]+1;var B=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),G=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);a=this.scrollablePixelsX?[["M",0,a],["L",this.plotLeft-1,a],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",B,a],["L",this.chartWidth,a],["L",this.chartWidth,e],["L",B,e],["Z"]]:this.scrollablePixelsY?
[["M",g,0],["L",g,this.plotTop-1],["L",n,this.plotTop-1],["L",n,0],["Z"],["M",g,G],["L",g,this.chartHeight],["L",n,this.chartHeight],["L",n,G],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:a})};t(g,"afterInit",function(){this.chart.scrollableDirty=!0});t(E,"show",function(){this.chart.scrollableDirty=!0});""});L(g,"Core/Axis/Stacking/StackItem.js",[g["Core/FormatUtilities.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,y){var z=a.format,
C=g.series,D=y.destroyObjectProperties,J=y.pick,t=y.isNumber;a=function(){function a(a,e,d,h,g){var k=a.chart.inverted,m=a.reversed;this.axis=a;a=this.isNegative=!!d!==!!m;this.options=e=e||{};this.x=h;this.cumulative=this.total=null;this.points={};this.hasValidPoints=!1;this.stack=g;this.rightCliff=this.leftCliff=0;this.alignOptions={align:e.align||(k?a?"left":"right":"center"),verticalAlign:e.verticalAlign||(k?"middle":a?"bottom":"top"),y:e.y,x:e.x};this.textAlign=e.textAlign||(k?a?"right":"left":
"center")}a.prototype.destroy=function(){D(this,this.axis)};a.prototype.render=function(a){var e=this.axis.chart,d=this.options,h=d.format;h=h?z(h,this,e):d.formatter.call(this);this.label?this.label.attr({text:h,visibility:"hidden"}):(this.label=e.renderer.label(h,null,void 0,d.shape,void 0,void 0,d.useHTML,!1,"stack-labels"),h={r:d.borderRadius||0,text:h,padding:J(d.padding,5),visibility:"hidden"},e.styledMode||(h.fill=d.backgroundColor,h.stroke=d.borderColor,h["stroke-width"]=d.borderWidth,this.label.css(d.style||
{})),this.label.attr(h),this.label.added||this.label.add(a));this.label.labelrank=e.plotSizeY};a.prototype.setOffset=function(a,e,d,h,g,k){var m=this.alignOptions,n=this.axis,q=this.label,z=this.options,y=this.textAlign,x=n.chart;a=this.getStackBox({xOffset:a,width:e,boxBottom:d,boxTop:h,defaultX:g,xAxis:k});g=m.verticalAlign;q&&a&&(e=q.getBBox(),d=q.padding,h="justify"===J(z.overflow,"justify"),m.x=z.x||0,m.y=z.y||0,g=this.adjustStackPosition({labelBox:e,verticalAlign:g,textAlign:y}),y=g.x,g=g.y,
a.x-=y,a.y-=g,q.align(m,!1,a),(y=x.isInsidePlot(q.alignAttr.x+m.x+y,q.alignAttr.y+m.y+g))||(h=!1),h&&C.prototype.justifyDataLabel.call(n,q,m,q.alignAttr,e,a),q.attr({x:q.alignAttr.x,y:q.alignAttr.y,rotation:z.rotation,rotationOriginX:e.width/2,rotationOriginY:e.height/2}),J(!h&&z.crop,!0)&&(y=t(q.x)&&t(q.y)&&x.isInsidePlot(q.x-d+q.width,q.y)&&x.isInsidePlot(q.x+d,q.y)),q[y?"show":"hide"]())};a.prototype.adjustStackPosition=function(a){var e=a.labelBox,d={bottom:0,middle:1,top:2,right:1,center:0,left:-1};
return{x:e.width/2+e.width/2*d[a.textAlign],y:e.height/2*d[a.verticalAlign]}};a.prototype.getStackBox=function(a){var e=this.axis,d=e.chart,h=a.boxTop,g=a.defaultX,k=a.xOffset,n=a.width,q=a.boxBottom;h=e.stacking.usePercentage?100:J(h,this.total,0);h=e.toPixels(h);a=J(g,(a.xAxis||d.xAxis[0]).toPixels(this.x))+k;e=e.toPixels(q?q:0);e=Math.abs(h-e);q=this.isNegative;return d.inverted?{x:(q?h:h-e)-d.plotLeft,y:a-d.plotTop,width:e,height:n}:{x:a-d.plotLeft,y:(q?h-e:h)-d.plotTop,width:n,height:e}};return a}();
"";return a});L(g,"Core/Axis/Stacking/StackingAxis.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Axis/Axis.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Axis/Stacking/StackItem.js"],g["Core/Utilities.js"]],function(a,g,y,E,C){function z(){var b=this,a=b.inverted;b.yAxis.forEach(function(b){b.stacking&&b.stacking.stacks&&b.hasVisibleSeries&&(b.stacking.oldStacks=b.stacking.stacks)});b.series.forEach(function(c){var d=c.xAxis&&c.xAxis.options||{};!c.options.stacking||!0!==c.visible&&!1!==
b.options.chart.ignoreHiddenSeries||(c.stackKey=[c.type,f(c.options.stack,""),a?d.top:d.left,a?d.height:d.width].join())})}function J(){var b=this.stacking;if(b){var a=b.stacks;u(a,function(b,c){K(b);a[c]=null});b&&b.stackTotalGroup&&b.stackTotalGroup.destroy()}}function t(){"yAxis"!==this.coll||this.stacking||(this.stacking=new l(this))}function q(b,a,c,d){!G(b)||b.x!==a||d&&b.stackKey!==d?b={x:a,index:0,key:d,stackKey:d}:b.index++;b.key=[c,a,b.index].join();return b}function n(){var b=this,a=b.stackKey,
c=b.yAxis.stacking.stacks,d=b.processedXData,f=b[b.options.stacking+"Stacker"],e;f&&[a,"-"+a].forEach(function(a){for(var h=d.length,g,l;h--;)g=d[h],e=b.getStackIndicator(e,g,b.index,a),(l=(g=c[a]&&c[a][g])&&g.points[e.key])&&f.call(b,l,g,h)})}function e(b,a,c){a=a.total?100/a.total:0;b[0]=B(b[0]*a);b[1]=B(b[1]*a);this.stackedYData[c]=b[1]}function d(){var b=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?
k.setStackedPoints.call(this,"group"):b&&u(b.stacks,function(a,c){"group"===c.slice(-5)&&(u(a,function(b){return b.destroy()}),delete b.stacks[c])})}function h(b){var a=this.chart,c=b||this.options.stacking;if(c&&(!0===this.visible||!1===a.options.chart.ignoreHiddenSeries)){var d=this.processedXData,e=this.processedYData,h=[],g=e.length,l=this.options,k=l.threshold,m=f(l.startFromThreshold&&k,0);l=l.stack;b=b?"".concat(this.type,",").concat(c):this.stackKey;var n="-"+b,v=this.negStacks;a="group"===
c?a.yAxis[0]:this.yAxis;var r=a.stacking.stacks,u=a.stacking.oldStacks,q,t;a.stacking.stacksTouched+=1;for(t=0;t<g;t++){var z=d[t];var y=e[t];var K=this.getStackIndicator(K,z,this.index);var C=K.key;var I=(q=v&&y<(m?0:k))?n:b;r[I]||(r[I]={});r[I][z]||(u[I]&&u[I][z]?(r[I][z]=u[I][z],r[I][z].total=null):r[I][z]=new E(a,a.options.stackLabels,!!q,z,l));I=r[I][z];null!==y?(I.points[C]=I.points[this.index]=[f(I.cumulative,m)],G(I.cumulative)||(I.base=C),I.touched=a.stacking.stacksTouched,0<K.index&&!1===
this.singleStacks&&(I.points[C][0]=I.points[this.index+","+z+",0"][0])):I.points[C]=I.points[this.index]=null;"percent"===c?(q=q?b:n,v&&r[q]&&r[q][z]?(q=r[q][z],I.total=q.total=Math.max(q.total,I.total)+Math.abs(y)||0):I.total=B(I.total+(Math.abs(y)||0))):"group"===c?(x(y)&&(y=y[0]),null!==y&&(I.total=(I.total||0)+1)):I.total=B(I.total+(y||0));I.cumulative="group"===c?(I.total||1)-1:f(I.cumulative,m)+(y||0);null!==y&&(I.points[C].push(I.cumulative),h[t]=I.cumulative,I.hasValidPoints=!0)}"percent"===
c&&(a.stacking.usePercentage=!0);"group"!==c&&(this.stackedYData=h);a.stacking.oldStacks={}}}var m=a.getDeferredAnimation,k=y.series.prototype,r=C.addEvent,B=C.correctFloat,G=C.defined,K=C.destroyObjectProperties,I=C.fireEvent,x=C.isArray,c=C.isNumber,u=C.objectEach,f=C.pick,l=function(){function b(b){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=b}b.prototype.buildStacks=function(){var b=this.axis,a=b.series,c=b.options.reversedStacks,d=a.length,f;this.usePercentage=!1;for(f=d;f--;){var e=
a[c?f:d-f-1];e.setStackedPoints();e.setGroupedPoints()}for(f=0;f<d;f++)a[f].modifyStacks();I(b,"afterBuildStacks")};b.prototype.cleanStacks=function(){if(this.oldStacks)var b=this.stacks=this.oldStacks;u(b,function(b){u(b,function(b){b.cumulative=b.total})})};b.prototype.resetStacks=function(){var b=this;u(this.stacks,function(a){u(a,function(d,f){c(d.touched)&&d.touched<b.stacksTouched?(d.destroy(),delete a[f]):(d.total=null,d.cumulative=null)})})};b.prototype.renderStackTotals=function(){var b=
this.axis,a=b.chart,c=a.renderer,d=this.stacks;b=m(a,b.options.stackLabels&&b.options.stackLabels.animation||!1);var f=this.stackTotalGroup=this.stackTotalGroup||c.g("stack-labels").attr({zIndex:6,opacity:0}).add();f.translate(a.plotLeft,a.plotTop);u(d,function(b){u(b,function(b){b.render(f)})});f.animate({opacity:1},b)};return b}(),b;(function(b){var a=[];b.compose=function(b,c,f){-1===a.indexOf(b)&&(a.push(b),r(b,"init",t),r(b,"destroy",J));-1===a.indexOf(c)&&(a.push(c),c.prototype.getStacks=z);
-1===a.indexOf(f)&&(a.push(f),b=f.prototype,b.getStackIndicator=q,b.modifyStacks=n,b.percentStacker=e,b.setGroupedPoints=d,b.setStackedPoints=h)}})(b||(b={}));return b});L(g,"Series/Line/LineSeries.js",[g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,y){var z=this&&this.__extends||function(){var a=function(g,q){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var d in e)Object.prototype.hasOwnProperty.call(e,
d)&&(a[d]=e[d])};return a(g,q)};return function(g,q){function n(){this.constructor=g}if("function"!==typeof q&&null!==q)throw new TypeError("Class extends value "+String(q)+" is not a constructor or null");a(g,q);g.prototype=null===q?Object.create(q):(n.prototype=q.prototype,new n)}}(),C=y.defined,D=y.merge;y=function(g){function t(){var a=null!==g&&g.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}z(t,g);t.prototype.drawGraph=function(){var a=this,g=this.options,
e=(this.gappedPath||this.getGraphPath).call(this),d=this.chart.styledMode,h=[["graph","highcharts-graph"]];d||h[0].push(g.lineColor||this.color||"#cccccc",g.dashStyle);h=a.getZonesGraphs(h);h.forEach(function(h,k){var m=h[0],n=a[m],q=n?"animate":"attr";n?(n.endX=a.preventGraphAnimation?null:e.xMap,n.animate({d:e})):e.length&&(a[m]=n=a.chart.renderer.path(e).addClass(h[1]).attr({zIndex:1}).add(a.group));n&&!d&&(m={stroke:h[2],"stroke-width":g.lineWidth||0,fill:a.fillGraph&&a.color||"none"},h[3]?m.dashstyle=
h[3]:"square"!==g.linecap&&(m["stroke-linecap"]=m["stroke-linejoin"]="round"),n[q](m).shadow(2>k&&g.shadow));n&&(n.startX=e.xMap,n.isArea=e.isArea)})};t.prototype.getGraphPath=function(a,g,e){var d=this,h=d.options,m=[],k=[],n,q=h.step;a=a||d.points;var t=a.reversed;t&&a.reverse();(q={right:1,center:2}[q]||q&&3)&&t&&(q=4-q);a=this.getValidPoints(a,!1,!(h.connectNulls&&!g&&!e));a.forEach(function(r,t){var x=r.plotX,c=r.plotY,u=a[t-1];(r.leftCliff||u&&u.rightCliff)&&!e&&(n=!0);r.isNull&&!C(g)&&0<t?
n=!h.connectNulls:r.isNull&&!g?n=!0:(0===t||n?t=[["M",r.plotX,r.plotY]]:d.getPointSpline?t=[d.getPointSpline(a,r,t)]:q?(t=1===q?[["L",u.plotX,c]]:2===q?[["L",(u.plotX+x)/2,u.plotY],["L",(u.plotX+x)/2,c]]:[["L",x,u.plotY]],t.push(["L",x,c])):t=[["L",x,c]],k.push(r.x),q&&(k.push(r.x),2===q&&k.push(r.x)),m.push.apply(m,t),n=!1)});m.xMap=k;return d.graphPath=m};t.prototype.getZonesGraphs=function(a){this.zones.forEach(function(g,e){e=["zone-graph-"+e,"highcharts-graph highcharts-zone-graph-"+e+" "+(g.className||
"")];this.chart.styledMode||e.push(g.color||this.color,g.dashStyle||this.options.dashStyle);a.push(e)},this);return a};t.defaultOptions=D(a.defaultOptions,{});return t}(a);g.registerSeriesType("line",y);"";return y});L(g,"Series/Area/AreaSeries.js",[g["Core/Color/Color.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,y,E){var z=this&&this.__extends||function(){var a=function(d,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
function(a,d){a.__proto__=d}||function(a,d){for(var e in d)Object.prototype.hasOwnProperty.call(d,e)&&(a[e]=d[e])};return a(d,e)};return function(d,e){function h(){this.constructor=d}if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");a(d,e);d.prototype=null===e?Object.create(e):(h.prototype=e.prototype,new h)}}(),D=a.parse,J=y.seriesTypes.line;a=E.extend;var t=E.merge,q=E.objectEach,n=E.pick;E=function(a){function d(){var d=null!==
a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}z(d,a);d.prototype.drawGraph=function(){this.areaPath=[];a.prototype.drawGraph.apply(this);var d=this,e=this.areaPath,g=this.options,r=[["area","highcharts-area",this.color,g.fillColor]];this.zones.forEach(function(a,e){r.push(["zone-area-"+e,"highcharts-area highcharts-zone-area-"+e+" "+a.className,a.color||d.color,a.fillColor||g.fillColor])});r.forEach(function(a){var h=a[0],k={},m=d[h],r=m?"animate":"attr";
m?(m.endX=d.preventGraphAnimation?null:e.xMap,m.animate({d:e})):(k.zIndex=0,m=d[h]=d.chart.renderer.path(e).addClass(a[1]).add(d.group),m.isArea=!0);d.chart.styledMode||(k.fill=n(a[3],D(a[2]).setOpacity(n(g.fillOpacity,.75)).get()));m[r](k);m.startX=e.xMap;m.shiftUnit=g.step?2:1})};d.prototype.getGraphPath=function(a){var d=J.prototype.getGraphPath,e=this.options,h=e.stacking,g=this.yAxis,q=[],t=[],z=this.index,x=g.stacking.stacks[this.stackKey],c=e.threshold,u=Math.round(g.getThreshold(e.threshold));
e=n(e.connectNulls,"percent"===h);var f=function(b,d,f){var e=a[b];b=h&&x[e.x].points[z];var l=e[f+"Null"]||0;f=e[f+"Cliff"]||0;e=!0;if(f||l){var k=(l?b[0]:b[1])+f;var m=b[0]+f;e=!!l}else!h&&a[d]&&a[d].isNull&&(k=m=c);"undefined"!==typeof k&&(t.push({plotX:A,plotY:null===k?u:g.getThreshold(k),isNull:e,isCliff:!0}),q.push({plotX:A,plotY:null===m?u:g.getThreshold(m),doCurve:!1}))};a=a||this.points;h&&(a=this.getStackPoints(a));for(var l=0,b=a.length;l<b;++l){h||(a[l].leftCliff=a[l].rightCliff=a[l].leftNull=
a[l].rightNull=void 0);var v=a[l].isNull;var A=n(a[l].rectPlotX,a[l].plotX);var p=h?n(a[l].yBottom,u):u;if(!v||e)e||f(l,l-1,"left"),v&&!h&&e||(t.push(a[l]),q.push({x:l,plotX:A,plotY:p})),e||f(l,l+1,"right")}f=d.call(this,t,!0,!0);q.reversed=!0;v=d.call(this,q,!0,!0);(p=v[0])&&"M"===p[0]&&(v[0]=["L",p[1],p[2]]);v=f.concat(v);v.length&&v.push(["Z"]);d=d.call(this,t,!1,e);v.xMap=f.xMap;this.areaPath=v;return d};d.prototype.getStackPoints=function(a){var d=this,e=[],h=[],g=this.xAxis,t=this.yAxis,z=t.stacking.stacks[this.stackKey],
y={},x=t.series,c=x.length,u=t.options.reversedStacks?1:-1,f=x.indexOf(d);a=a||this.points;if(this.options.stacking){for(var l=0;l<a.length;l++)a[l].leftNull=a[l].rightNull=void 0,y[a[l].x]=a[l];q(z,function(b,a){null!==b.total&&h.push(a)});h.sort(function(b,a){return b-a});var b=x.map(function(b){return b.visible});h.forEach(function(a,l){var k=0,m,r;if(y[a]&&!y[a].isNull)e.push(y[a]),[-1,1].forEach(function(e){var g=1===e?"rightNull":"leftNull",k=z[h[l+e]],n=0;if(k)for(var p=f;0<=p&&p<c;){var v=
x[p].index;m=k.points[v];m||(v===d.index?y[a][g]=!0:b[p]&&(r=z[a].points[v])&&(n-=r[1]-r[0]));p+=u}y[a][1===e?"rightCliff":"leftCliff"]=n});else{for(var v=f;0<=v&&v<c;){if(m=z[a].points[x[v].index]){k=m[1];break}v+=u}k=n(k,0);k=t.translate(k,0,1,0,1);e.push({isNull:!0,plotX:g.translate(a,0,0,0,1),x:a,plotY:k,yBottom:k})}})}return e};d.defaultOptions=t(J.defaultOptions,{threshold:0});return d}(J);a(E.prototype,{singleStacks:!1,drawLegendSymbol:g.drawRectangle});y.registerSeriesType("area",E);"";return E});
L(g,"Series/Spline/SplineSeries.js",[g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g){var z=this&&this.__extends||function(){var a=function(g,q){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var d in e)Object.prototype.hasOwnProperty.call(e,d)&&(a[d]=e[d])};return a(g,q)};return function(g,q){function n(){this.constructor=g}if("function"!==typeof q&&null!==q)throw new TypeError("Class extends value "+String(q)+" is not a constructor or null");
a(g,q);g.prototype=null===q?Object.create(q):(n.prototype=q.prototype,new n)}}(),E=a.seriesTypes.line,C=g.merge,D=g.pick;g=function(a){function g(){var g=null!==a&&a.apply(this,arguments)||this;g.data=void 0;g.options=void 0;g.points=void 0;return g}z(g,a);g.prototype.getPointSpline=function(a,g,e){var d=g.plotX||0,h=g.plotY||0,m=a[e-1];e=a[e+1];if(m&&!m.isNull&&!1!==m.doCurve&&!g.isCliff&&e&&!e.isNull&&!1!==e.doCurve&&!g.isCliff){a=m.plotY||0;var k=e.plotX||0;e=e.plotY||0;var n=0;var q=(1.5*d+(m.plotX||
0))/2.5;var t=(1.5*h+a)/2.5;k=(1.5*d+k)/2.5;var z=(1.5*h+e)/2.5;k!==q&&(n=(z-t)*(k-d)/(k-q)+h-z);t+=n;z+=n;t>a&&t>h?(t=Math.max(a,h),z=2*h-t):t<a&&t<h&&(t=Math.min(a,h),z=2*h-t);z>e&&z>h?(z=Math.max(e,h),t=2*h-z):z<e&&z<h&&(z=Math.min(e,h),t=2*h-z);g.rightContX=k;g.rightContY=z}g=["C",D(m.rightContX,m.plotX,0),D(m.rightContY,m.plotY,0),D(q,d,0),D(t,h,0),d,h];m.rightContX=m.rightContY=void 0;return g};g.defaultOptions=C(E.defaultOptions);return g}(E);a.registerSeriesType("spline",g);"";return g});
L(g,"Series/AreaSpline/AreaSplineSeries.js",[g["Series/Spline/SplineSeries.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,y,E){var z=this&&this.__extends||function(){var a=function(e,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)Object.prototype.hasOwnProperty.call(d,e)&&(a[e]=d[e])};return a(e,d)};return function(e,d){function g(){this.constructor=e}if("function"!==
typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");a(e,d);e.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),D=y.seriesTypes,J=D.area;D=D.area.prototype;var t=E.extend,q=E.merge;E=function(g){function e(){var a=null!==g&&g.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}z(e,g);e.defaultOptions=q(a.defaultOptions,J.defaultOptions);return e}(a);t(E.prototype,{getGraphPath:D.getGraphPath,
getStackPoints:D.getStackPoints,drawGraph:D.drawGraph,drawLegendSymbol:g.drawRectangle});y.registerSeriesType("areaspline",E);"";return E});L(g,"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"}});L(g,"Series/Column/ColumnSeries.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Color/Color.js"],g["Series/Column/ColumnSeriesDefaults.js"],g["Core/Globals.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,y,E,C,D,J,t){var q=this&&this.__extends||function(){var a=function(c,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(c,d)};return function(c,d){function f(){this.constructor=c}if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");a(c,d);c.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),n=a.animObject,e=g.parse,d=E.hasTouch;a=E.noop;var h=t.clamp,m=t.defined,k=t.extend,r=t.fireEvent,z=t.isArray,G=t.isNumber,
K=t.merge,I=t.pick,x=t.objectEach;t=function(a){function c(){var c=null!==a&&a.apply(this,arguments)||this;c.borderWidth=void 0;c.data=void 0;c.group=void 0;c.options=void 0;c.points=void 0;return c}q(c,a);c.prototype.animate=function(a){var c=this,b=this.yAxis,d=c.options,e=this.chart.inverted,f={},g=e?"translateX":"translateY";if(a)f.scaleY=.001,a=h(b.toPixels(d.threshold),b.pos,b.pos+b.len),e?f.translateX=a-b.len:f.translateY=a,c.clipBox&&c.setClip(),c.group.attr(f);else{var m=Number(c.group.attr(g));
c.group.animate({scaleY:1},k(n(c.options.animation),{step:function(a,d){c.group&&(f[g]=m+d.pos*(b.pos-m),c.group.attr(f))}}))}};c.prototype.init=function(c,d){a.prototype.init.apply(this,arguments);var b=this;c=b.chart;c.hasRendered&&c.series.forEach(function(a){a.type===b.type&&(a.isDirty=!0)})};c.prototype.getColumnMetrics=function(){var a=this,c=a.options,b=a.xAxis,d=a.yAxis,e=b.options.reversedStacks;e=b.reversed&&!e||!b.reversed&&e;var g={},h,k=0;!1===c.grouping?k=1:a.chart.series.forEach(function(b){var c=
b.yAxis,e=b.options;if(b.type===a.type&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&d.len===c.len&&d.pos===c.pos){if(e.stacking&&"group"!==e.stacking){h=b.stackKey;"undefined"===typeof g[h]&&(g[h]=k++);var f=g[h]}else!1!==e.grouping&&(f=k++);b.columnIndex=f}});var m=Math.min(Math.abs(b.transA)*(b.ordinal&&b.ordinal.slope||c.pointRange||b.closestPointRange||b.tickInterval||1),b.len),n=m*c.groupPadding,r=(m-2*n)/(k||1);c=Math.min(c.maxPointWidth||b.len,I(c.pointWidth,r*(1-2*c.pointPadding)));
a.columnMetrics={width:c,offset:(r-c)/2+(n+((a.columnIndex||0)+(e?1:0))*r-m/2)*(e?-1:1),paddedWidth:r,columnCount:k};return a.columnMetrics};c.prototype.crispCol=function(a,c,b,d){var e=this.chart,f=this.borderWidth,g=-(f%2?.5:0);f=f%2?.5:1;e.inverted&&e.renderer.isVML&&(f+=1);this.options.crisp&&(b=Math.round(a+b)+g,a=Math.round(a)+g,b-=a);d=Math.round(c+d)+f;g=.5>=Math.abs(c)&&.5<d;c=Math.round(c)+f;d-=c;g&&d&&(--c,d+=1);return{x:a,y:c,width:b,height:d}};c.prototype.adjustForMissingColumns=function(a,
c,b,d){var e=this,f=this.options.stacking;if(!b.isNull&&1<d.columnCount){var g=this.yAxis.options.reversedStacks,h=0,l=g?0:-d.columnCount;x(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(a){if("number"===typeof b.x){var c=a[b.x.toString()];c&&(a=c.points[e.index],f?(a&&(h=l),c.hasValidPoints&&(g?l++:l--)):z(a)&&(a=Object.keys(c.points).filter(function(b){return!b.match(",")&&c.points[b]&&1<c.points[b].length}).map(parseFloat).sort(function(b,a){return a-b}),h=a.indexOf(e.index),l=a.length))}});
a=(b.plotX||0)+((l-1)*d.paddedWidth+c)/2-c-h*d.paddedWidth}return a};c.prototype.translate=function(){var a=this,c=a.chart,b=a.options,d=a.dense=2>a.closestPointRange*a.xAxis.transA;d=a.borderWidth=I(b.borderWidth,d?0:1);var e=a.xAxis,g=a.yAxis,k=b.threshold,n=a.translatedThreshold=g.getThreshold(k),r=I(b.minPointLength,5),u=a.getColumnMetrics(),q=u.width,x=a.pointXOffset=u.offset,w=a.dataMin,t=a.dataMax,z=a.barW=Math.max(q,1+2*d);c.inverted&&(n-=.5);b.pointPadding&&(z=Math.ceil(z));D.prototype.translate.apply(a);
a.points.forEach(function(d){var f=I(d.yBottom,n),l=999+Math.abs(f),p=d.plotX||0;l=h(d.plotY,-l,g.len+l);var v=Math.min(l,f),A=Math.max(l,f)-v,B=q,y=p+x,F=z;r&&Math.abs(A)<r&&(A=r,p=!g.reversed&&!d.negative||g.reversed&&d.negative,G(k)&&G(t)&&d.y===k&&t<=k&&(g.min||0)<k&&(w!==t||(g.max||0)<=k)&&(p=!p),v=Math.abs(v-n)>r?f-r:n-(p?r:0));m(d.options.pointWidth)&&(B=F=Math.ceil(d.options.pointWidth),y-=Math.round((B-q)/2));b.centerInCategory&&(y=a.adjustForMissingColumns(y,B,d,u));d.barX=y;d.pointWidth=
B;d.tooltipPos=c.inverted?[h(g.len+g.pos-c.plotLeft-l,g.pos-c.plotLeft,g.len+g.pos-c.plotLeft),e.len+e.pos-c.plotTop-y-F/2,A]:[e.left-c.plotLeft+y+F/2,h(l+g.pos-c.plotTop,g.pos-c.plotTop,g.len+g.pos-c.plotTop),A];d.shapeType=a.pointClass.prototype.shapeType||"rect";d.shapeArgs=a.crispCol.apply(a,d.isNull?[y,n,F,0]:[y,v,F,A])})};c.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};c.prototype.pointAttribs=function(a,c){var b=this.options,d=this.pointAttrToOptions||
{},f=d.stroke||"borderColor",g=d["stroke-width"]||"borderWidth",h=a&&a.color||this.color,l=a&&a[f]||b[f]||h;d=a&&a.options.dashStyle||b.dashStyle;var k=a&&a[g]||b[g]||this[g]||0,m=I(a&&a.opacity,b.opacity,1);if(a&&this.zones.length){var n=a.getZone();h=a.options.color||n&&(n.color||a.nonZonedColor)||this.color;n&&(l=n.borderColor||l,d=n.dashStyle||d,k=n.borderWidth||k)}c&&a&&(a=K(b.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,h=a.color||"undefined"!==typeof c&&e(h).brighten(a.brightness).get()||
h,l=a[f]||l,k=a[g]||k,d=a.dashStyle||d,m=I(a.opacity,m));f={fill:h,stroke:l,"stroke-width":k,opacity:m};d&&(f.dashstyle=d);return f};c.prototype.drawPoints=function(a){void 0===a&&(a=this.points);var c=this,b=this.chart,d=c.options,e=b.renderer,f=d.animationLimit||250,g;a.forEach(function(a){var h=a.graphic,l=!!h,k=h&&b.pointCount<f?"animate":"attr";if(G(a.plotY)&&null!==a.y){g=a.shapeArgs;h&&a.hasNewShapeType()&&(h=h.destroy());c.enabledDataSorting&&(a.startXPos=c.xAxis.reversed?-(g?g.width||0:0):
c.xAxis.width);h||(a.graphic=h=e[a.shapeType](g).add(a.group||c.group))&&c.enabledDataSorting&&b.hasRendered&&b.pointCount<f&&(h.attr({x:a.startXPos}),l=!0,k="animate");if(h&&l)h[k](K(g));if(d.borderRadius)h[k]({r:d.borderRadius});b.styledMode||h[k](c.pointAttribs(a,a.selected&&"select")).shadow(!1!==a.allowShadow&&d.shadow,null,d.stacking&&!d.borderRadius);h&&(h.addClass(a.getClassName(),!0),h.attr({visibility:a.visible?"inherit":"hidden"}))}else h&&(a.graphic=h.destroy())})};c.prototype.drawTracker=
function(a){void 0===a&&(a=this.points);var c=this,b=c.chart,e=b.pointer,f=function(a){var b=e.getPointFromEvent(a);"undefined"!==typeof b&&(e.isDirectTouch=!0,b.onMouseOver(a))},g;a.forEach(function(a){g=z(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);g.forEach(function(b){b.div?b.div.point=a:b.element.point=a})});c._hasTracking||(c.trackerGroups.forEach(function(a){if(c[a]){c[a].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){e.onTrackerMouseOut(a)});
if(d)c[a].on("touchstart",f);!b.styledMode&&c.options.cursor&&c[a].css({cursor:c.options.cursor})}}),c._hasTracking=!0);r(this,"afterDrawTracker")};c.prototype.remove=function(){var a=this,c=a.chart;c.hasRendered&&c.series.forEach(function(b){b.type===a.type&&(b.isDirty=!0)});D.prototype.remove.apply(a,arguments)};c.defaultOptions=K(D.defaultOptions,y);return c}(D);k(t.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:C.drawRectangle,getSymbol:a,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});
J.registerSeriesType("column",t);"";return t});L(g,"Core/Series/DataLabel.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/FormatUtilities.js"],g["Core/Utilities.js"]],function(a,g,y){var z=a.getDeferredAnimation,C=g.format,D=y.defined,J=y.extend,t=y.fireEvent,q=y.isArray,n=y.isString,e=y.merge,d=y.objectEach,h=y.pick,m=y.splat,k;(function(a){function g(a,c,b,d,e){var f=this,g=this.chart,l=this.isCartesian&&g.inverted,k=this.enabledDataSorting,m=a.plotX,n=a.plotY,r=b.rotation,u=b.align,q=D(m)&&
D(n)&&g.isInsidePlot(m,Math.round(n),{inverted:l,paneCoordinates:!0,series:f});n=function(b){k&&f.xAxis&&!v&&f.setDataLabelStartPos(a,c,e,q,b)};var v="justify"===h(b.overflow,k?"none":"justify");m=this.visible&&!1!==a.visible&&D(m)&&(a.series.forceDL||k&&!v||q||h(b.inside,!!this.options.stacking)&&d&&g.isInsidePlot(m,l?d.x+1:d.y+d.height-1,{inverted:l,paneCoordinates:!0,series:f}));l=a.pos();if(m&&l){r&&c.attr({align:u});u=c.getBBox(!0);var x=[0,0];var t=g.renderer.fontMetrics(g.styledMode?void 0:
b.style.fontSize,c).b;d=J({x:l[0],y:Math.round(l[1]),width:0,height:0},d);J(b,{width:u.width,height:u.height});r?(v=!1,x=g.renderer.rotCorr(t,r),t={x:d.x+(b.x||0)+d.width/2+x.x,y:d.y+(b.y||0)+{top:0,middle:.5,bottom:1}[b.verticalAlign]*d.height},x=[u.x-Number(c.attr("x")),u.y-Number(c.attr("y"))],n(t),c[e?"attr":"animate"](t)):(n(d),c.align(b,void 0,d),t=c.alignAttr);v&&0<=d.height?this.justifyDataLabel(c,b,t,u,d,e):h(b.crop,!0)&&(d=t.x,n=t.y,d+=x[0],n+=x[1],m=g.isInsidePlot(d,n,{paneCoordinates:!0,
series:f})&&g.isInsidePlot(d+u.width,n+u.height,{paneCoordinates:!0,series:f}));if(b.shape&&!r)c[e?"attr":"animate"]({anchorX:l[0],anchorY:l[1]})}e&&k&&(c.placed=!1);m||k&&!v?c.show():(c.hide(),c.placed=!1)}function k(a,c){var b=c.filter;return b?(c=b.operator,a=a[b.property],b=b.value,">"===c&&a>b||"<"===c&&a<b||">="===c&&a>=b||"<="===c&&a<=b||"=="===c&&a==b||"==="===c&&a===b?!0:!1):!0}function r(a){void 0===a&&(a=this.points);var c=this,b=c.chart,e=c.options,f=c.hasRendered||0,g=b.renderer,r=b.options.chart,
u=r.backgroundColor;r=r.plotBackgroundColor;var y=g.getContrast(n(r)&&r||n(u)&&u||"#000000"),B=e.dataLabels,G;u=B.animation;u=B.defer?z(b,u,c):{defer:0,duration:0};B=x(x(b.options.plotOptions&&b.options.plotOptions.series&&b.options.plotOptions.series.dataLabels,b.options.plotOptions&&b.options.plotOptions[c.type]&&b.options.plotOptions[c.type].dataLabels),B);t(this,"drawDataLabels");if(q(B)||B.enabled||c._hasPointLabels){var I=c.plotGroup("dataLabelsGroup","data-labels",f?"inherit":"hidden",B.zIndex||
6);I.attr({opacity:+f});!f&&(f=c.dataLabelsGroup)&&(c.visible&&I.show(),f[e.animation?"animate":"attr"]({opacity:1},u));a.forEach(function(a){G=m(x(B,a.dlOptions||a.options&&a.options.dataLabels));G.forEach(function(f,l){var m=f.enabled&&(!a.isNull||a.dataLabelOnNull)&&k(a,f),n=a.connectors?a.connectors[l]:a.connector,p=a.dataLabels?a.dataLabels[l]:a.dataLabel,r=!p,u=h(f.distance,a.labelDistance);if(m){var q=a.getLabelConfig();var v=h(f[a.formatPrefix+"Format"],f.format);q=D(v)?C(v,q,b):(f[a.formatPrefix+
"Formatter"]||f.formatter).call(q,f);v=f.style;var x=f.rotation;b.styledMode||(v.color=h(f.color,v.color,c.color,"#000000"),"contrast"===v.color?(a.contrastColor=g.getContrast(a.color||c.color),v.color=!D(u)&&f.inside||0>u||e.stacking?a.contrastColor:y):delete a.contrastColor,e.cursor&&(v.cursor=e.cursor));var t={r:f.borderRadius||0,rotation:x,padding:f.padding,zIndex:1};if(!b.styledMode){u=f.backgroundColor;var w=f.borderColor;t.fill="auto"===u?a.color:u;t.stroke="auto"===w?a.color:w;t["stroke-width"]=
f.borderWidth}d(t,function(a,b){"undefined"===typeof a&&delete t[b]})}!p||m&&D(q)&&!!p.div===!!f.useHTML&&(p.rotation&&f.rotation||p.rotation===f.rotation)||(r=!0,a.dataLabel=p=a.dataLabel&&a.dataLabel.destroy(),a.dataLabels&&(1===a.dataLabels.length?delete a.dataLabels:delete a.dataLabels[l]),l||delete a.dataLabel,n&&(a.connector=a.connector.destroy(),a.connectors&&(1===a.connectors.length?delete a.connectors:delete a.connectors[l])));m&&D(q)?(p?t.text=q:(a.dataLabels=a.dataLabels||[],p=a.dataLabels[l]=
x?g.text(q,0,0,f.useHTML).addClass("highcharts-data-label"):g.label(q,0,0,f.shape,null,null,f.useHTML,null,"data-label"),l||(a.dataLabel=p),p.addClass(" highcharts-data-label-color-"+a.colorIndex+" "+(f.className||"")+(f.useHTML?" highcharts-tracker":""))),p.options=f,p.attr(t),b.styledMode||p.css(v).shadow(f.shadow),(l=f[a.formatPrefix+"TextPath"]||f.textPath)&&!f.useHTML&&(p.setTextPath(a.getDataLabelPath&&a.getDataLabelPath(p)||a.graphic,l),a.dataLabelPath&&!l.enabled&&(a.dataLabelPath=a.dataLabelPath.destroy())),
p.added||p.add(I),c.alignDataLabel(a,p,f,null,r)):p&&p.hide()})})}t(this,"afterDrawDataLabels")}function y(a,c,b,d,e,g){var f=this.chart,h=c.align,k=c.verticalAlign,l=a.box?0:a.padding||0,m=c.x;m=void 0===m?0:m;var n=c.y;n=void 0===n?0:n;var p=(b.x||0)+l;if(0>p){"right"===h&&0<=m?(c.align="left",c.inside=!0):m-=p;var r=!0}p=(b.x||0)+d.width-l;p>f.plotWidth&&("left"===h&&0>=m?(c.align="right",c.inside=!0):m+=f.plotWidth-p,r=!0);p=b.y+l;0>p&&("bottom"===k&&0<=n?(c.verticalAlign="top",c.inside=!0):n-=
p,r=!0);p=(b.y||0)+d.height-l;p>f.plotHeight&&("top"===k&&0>=n?(c.verticalAlign="bottom",c.inside=!0):n+=f.plotHeight-p,r=!0);r&&(c.x=m,c.y=n,a.placed=!g,a.align(c,void 0,e));return r}function x(a,c){var b=[],d;if(q(a)&&!q(c))b=a.map(function(a){return e(a,c)});else if(q(c)&&!q(a))b=c.map(function(b){return e(a,b)});else if(q(a)||q(c))for(d=Math.max(a.length,c.length);d--;)b[d]=e(a[d],c[d]);else b=e(a,c);return b}function c(a,c,b,d,e){var f=this.chart,g=f.inverted,h=this.xAxis,k=h.reversed,l=g?c.height/
2:c.width/2;a=(a=a.pointWidth)?a/2:0;c.startXPos=g?e.x:k?-l-a:h.width-l+a;c.startYPos=g?k?this.yAxis.height-l+a:-l-a:e.y;d?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);f.hasRendered&&(b&&c.attr({x:c.startXPos,y:c.startYPos}),c.placed=!0)}var u=[];a.compose=function(a){if(-1===u.indexOf(a)){var d=a.prototype;u.push(a);d.alignDataLabel=g;d.drawDataLabels=r;d.justifyDataLabel=y;d.setDataLabelStartPos=c}}})(k||(k={}));
"";return k});L(g,"Series/Column/ColumnDataLabel.js",[g["Core/Series/DataLabel.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,y){var z=g.series,C=y.merge,D=y.pick,J;(function(g){function q(a,d,g,m,k){var e=this.chart.inverted,h=a.series,n=(h.xAxis?h.xAxis.len:this.chart.plotSizeX)||0;h=(h.yAxis?h.yAxis.len:this.chart.plotSizeY)||0;var q=a.dlBox||a.shapeArgs,t=D(a.below,a.plotY>D(this.translatedThreshold,h)),x=D(g.inside,!!this.options.stacking);q&&(m=C(q),0>m.y&&(m.height+=
m.y,m.y=0),q=m.y+m.height-h,0<q&&q<m.height&&(m.height-=q),e&&(m={x:h-m.y-m.height,y:n-m.x-m.width,width:m.height,height:m.width}),x||(e?(m.x+=t?0:m.width,m.width=0):(m.y+=t?m.height:0,m.height=0)));g.align=D(g.align,!e||x?"center":t?"right":"left");g.verticalAlign=D(g.verticalAlign,e||x?"middle":t?"top":"bottom");z.prototype.alignDataLabel.call(this,a,d,g,m,k);g.inside&&a.contrastColor&&d.css({color:a.contrastColor})}var n=[];g.compose=function(e){a.compose(z);-1===n.indexOf(e)&&(n.push(e),e.prototype.alignDataLabel=
q)}})(J||(J={}));return J});L(g,"Series/Bar/BarSeries.js",[g["Series/Column/ColumnSeries.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,y){var z=this&&this.__extends||function(){var a=function(g,q){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var d in e)Object.prototype.hasOwnProperty.call(e,d)&&(a[d]=e[d])};return a(g,q)};return function(g,q){function n(){this.constructor=g}if("function"!==typeof q&&null!==
q)throw new TypeError("Class extends value "+String(q)+" is not a constructor or null");a(g,q);g.prototype=null===q?Object.create(q):(n.prototype=q.prototype,new n)}}(),C=y.extend,D=y.merge;y=function(g){function t(){var a=null!==g&&g.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}z(t,g);t.defaultOptions=D(a.defaultOptions,{});return t}(a);C(y.prototype,{inverted:!0});g.registerSeriesType("bar",y);"";return y});L(g,"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/>"}}});L(g,"Series/Scatter/ScatterSeries.js",[g["Series/Scatter/ScatterSeriesDefaults.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,y){var z=this&&this.__extends||function(){var a=function(e,
d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)Object.prototype.hasOwnProperty.call(d,e)&&(a[e]=d[e])};return a(e,d)};return function(e,d){function g(){this.constructor=e}if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");a(e,d);e.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),C=g.seriesTypes,D=C.column,J=C.line;C=y.addEvent;var t=y.extend,
q=y.merge;y=function(g){function e(){var a=null!==g&&g.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}z(e,g);e.prototype.applyJitter=function(){var a=this,e=this.options.jitter,g=this.points.length;e&&this.points.forEach(function(d,h){["x","y"].forEach(function(k,m){var n="plot"+k.toUpperCase();if(e[k]&&!d.isNull){var r=a[k+"Axis"];var q=e[k]*r.transA;if(r&&!r.isLog){var c=Math.max(0,d[n]-q);r=Math.min(r.len,d[n]+q);m=1E4*Math.sin(h+m*g);d[n]=c+(r-c)*(m-Math.floor(m));
"x"===k&&(d.clientX=d.plotX)}}})})};e.prototype.drawGraph=function(){this.options.lineWidth?g.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};e.defaultOptions=q(J.defaultOptions,a);return e}(J);t(y.prototype,{drawTracker:D.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});C(y,"afterTranslate",function(){this.applyJitter()});g.registerSeriesType("scatter",y);return y});
L(g,"Series/CenteredUtilities.js",[g["Core/Globals.js"],g["Core/Series/Series.js"],g["Core/Utilities.js"]],function(a,g,y){var z=a.deg2rad,C=y.fireEvent,D=y.isNumber,J=y.pick,t=y.relativeLength,q;(function(a){a.getCenter=function(){var a=this.options,d=this.chart,h=2*(a.slicedOffset||0),m=d.plotWidth-2*h,k=d.plotHeight-2*h,n=a.center,q=Math.min(m,k),z=a.thickness,y=a.size,I=a.innerSize||0;"string"===typeof y&&(y=parseFloat(y));"string"===typeof I&&(I=parseFloat(I));a=[J(n[0],"50%"),J(n[1],"50%"),
J(y&&0>y?void 0:a.size,"100%"),J(I&&0>I?void 0:a.innerSize||0,"0%")];!d.angular||this instanceof g||(a[3]=0);for(n=0;4>n;++n)y=a[n],d=2>n||2===n&&/%$/.test(y),a[n]=t(y,[m,k,q,a[2]][n])+(d?h:0);a[3]>a[2]&&(a[3]=a[2]);D(z)&&2*z<a[2]&&0<z&&(a[3]=a[2]-2*z);C(this,"afterGetCenter",{positions:a});return a};a.getStartAndEndRadians=function(a,d){a=D(a)?a:0;d=D(d)&&d>a&&360>d-a?d:a+360;return{start:z*(a+-90),end:z*(d+-90)}}})(q||(q={}));"";return q});L(g,"Series/Pie/PiePoint.js",[g["Core/Animation/AnimationUtilities.js"],
g["Core/Series/Point.js"],g["Core/Utilities.js"]],function(a,g,y){var z=this&&this.__extends||function(){var a=function(d,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)Object.prototype.hasOwnProperty.call(d,e)&&(a[e]=d[e])};return a(d,e)};return function(d,e){function g(){this.constructor=d}if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");a(d,e);d.prototype=
null===e?Object.create(e):(g.prototype=e.prototype,new g)}}(),C=a.setAnimation,D=y.addEvent,J=y.defined;a=y.extend;var t=y.isNumber,q=y.pick,n=y.relativeLength;g=function(a){function d(){var d=null!==a&&a.apply(this,arguments)||this;d.labelDistance=void 0;d.options=void 0;d.series=void 0;return d}z(d,a);d.prototype.getConnectorPath=function(){var a=this.labelPosition,d=this.series.options.dataLabels,e=this.connectorShapes,g=d.connectorShape;e[g]&&(g=e[g]);return g.call(this,{x:a.final.x,y:a.final.y,
alignment:a.alignment},a.connectorPosition,d)};d.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};d.prototype.haloPath=function(a){var d=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(d.x,d.y,d.r+a,d.r+a,{innerR:d.r-1,start:d.start,end:d.end})};d.prototype.init=function(){var d=this;a.prototype.init.apply(this,arguments);this.name=q(this.name,"Slice");var e=function(a){d.slice("select"===a.type)};D(this,
"select",e);D(this,"unselect",e);return this};d.prototype.isValid=function(){return t(this.y)&&0<=this.y};d.prototype.setVisible=function(a,d){var e=this,g=this.series,h=g.chart,m=g.options.ignoreHiddenPoint;d=q(d,m);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,g.options.data[g.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(d){if(e[d])e[d][a?"show":"hide"](a)}),this.legendItem&&h.legend.colorizeItem(this,
a),a||"hover"!==this.state||this.setState(""),m&&(g.isDirty=!0),d&&h.redraw())};d.prototype.slice=function(a,d,e){var g=this.series;C(e,g.chart);q(d,!0);this.sliced=this.options.sliced=J(a)?a:!this.sliced;g.options.data[g.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return d}(g);a(g.prototype,{connectorShapes:{fixedOffset:function(a,d,g){var e=d.breakAt;d=d.touchingSliceAt;return[["M",a.x,
a.y],g.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*e.x-d.x,2*e.y-d.y,e.x,e.y]:["L",e.x,e.y],["L",d.x,d.y]]},straight:function(a,d){d=d.touchingSliceAt;return[["M",a.x,a.y],["L",d.x,d.y]]},crookedLine:function(a,d,g){d=d.touchingSliceAt;var e=this.series,h=e.center[0],r=e.chart.plotWidth,q=e.chart.plotLeft;e=a.alignment;var t=this.shapeArgs.r;g=n(g.crookDistance,1);r="left"===e?h+t+(r+q-h-t)*(1-g):q+(h-t)*g;g=["L",r,a.y];h=!0;if("left"===e?r>a.x||r<d.x:r<a.x||r>d.x)h=!1;a=[["M",a.x,a.y]];
h&&a.push(g);a.push(["L",d.x,d.y]);return a}}});return g});L(g,"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}}}});L(g,"Series/Pie/PieSeries.js",[g["Series/CenteredUtilities.js"],g["Series/Column/ColumnSeries.js"],g["Core/Globals.js"],g["Core/Legend/LegendSymbol.js"],g["Series/Pie/PiePoint.js"],g["Series/Pie/PieSeriesDefaults.js"],g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Renderer/SVG/Symbols.js"],g["Core/Utilities.js"]],function(a,g,y,E,C,D,J,t,q,n){var e=
this&&this.__extends||function(){var a=function(d,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])};return a(d,e)};return function(d,e){function c(){this.constructor=d}if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");a(d,e);d.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),d=a.getStartAndEndRadians;
y=y.noop;var h=n.clamp,m=n.extend,k=n.fireEvent,r=n.merge,z=n.pick,G=n.relativeLength;n=function(a){function g(){var d=null!==a&&a.apply(this,arguments)||this;d.center=void 0;d.data=void 0;d.maxLabelDistance=void 0;d.options=void 0;d.points=void 0;return d}e(g,a);g.prototype.animate=function(a){var c=this,d=c.points,e=c.startAngleRad;a||d.forEach(function(a){var b=a.graphic,d=a.shapeArgs;b&&d&&(b.attr({r:z(a.startR,c.center&&c.center[3]/2),start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},
c.options.animation))})};g.prototype.drawEmpty=function(){var a=this.startAngleRad,c=this.endAngleRad,d=this.options;if(0===this.total&&this.center){var e=this.center[0];var g=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(e,g,this.center[1]/2,0,a,c).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:q.arc(e,g,this.center[2]/2,0,{start:a,end:c,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())};g.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(c){c.graphic&&c.hasNewShapeType()&&(c.graphic=c.graphic.destroy());c.graphic||(c.graphic=a[c.shapeType](c.shapeArgs).add(c.series.group),c.delayedRendering=!0)})};g.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};g.prototype.getX=function(a,c,d){var e=this.center,g=this.radii?this.radii[d.index]||
0:e[2]/2;a=Math.asin(h((a-e[1])/(g+d.labelDistance),-1,1));return e[0]+(c?-1:1)*Math.cos(a)*(g+d.labelDistance)+(0<d.labelDistance?(c?-1:1)*this.options.dataLabels.padding:0)};g.prototype.hasData=function(){return!!this.processedXData.length};g.prototype.redrawPoints=function(){var a=this,c=a.chart,d=c.renderer,e=a.options.shadow,g,b,h,k;this.drawEmpty();!e||a.shadowGroup||c.styledMode||(a.shadowGroup=d.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(f){var l={};b=f.graphic;
if(!f.isNull&&b){var m=void 0;k=f.shapeArgs;g=f.getTranslate();c.styledMode||(m=f.shadowGroup,e&&!m&&(m=f.shadowGroup=d.g("shadow").add(a.shadowGroup)),m&&m.attr(g),h=a.pointAttribs(f,f.selected&&"select"));f.delayedRendering?(b.setRadialReference(a.center).attr(k).attr(g),c.styledMode||b.attr(h).attr({"stroke-linejoin":"round"}).shadow(e,m),f.delayedRendering=!1):(b.setRadialReference(a.center),c.styledMode||r(!0,l,h),r(!0,l,k,g),b.animate(l));b.attr({visibility:f.visible?"inherit":"hidden"});b.addClass(f.getClassName(),
!0)}else b&&(f.graphic=b.destroy())})};g.prototype.sortByAngle=function(a,c){a.sort(function(a,d){return"undefined"!==typeof a.angle&&(d.angle-a.angle)*c})};g.prototype.translate=function(a){k(this,"translate");this.generatePoints();var c=this.options,e=c.slicedOffset,f=e+(c.borderWidth||0),g=d(c.startAngle,c.endAngle),b=this.startAngleRad=g.start;g=(this.endAngleRad=g.end)-b;var h=this.points,m=c.dataLabels.distance;c=c.ignoreHiddenPoint;var n=h.length,r,q=0;a||(this.center=a=this.getCenter());for(r=
0;r<n;r++){var t=h[r];var x=b+q*g;!t.isValid()||c&&!t.visible||(q+=t.percentage/100);var y=b+q*g;var B={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*x)/1E3,end:Math.round(1E3*y)/1E3};t.shapeType="arc";t.shapeArgs=B;t.labelDistance=z(t.options.dataLabels&&t.options.dataLabels.distance,m);t.labelDistance=G(t.labelDistance,B.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,t.labelDistance);y=(y+x)/2;y>1.5*Math.PI?y-=2*Math.PI:y<-Math.PI/2&&(y+=2*Math.PI);t.slicedTranslation={translateX:Math.round(Math.cos(y)*
e),translateY:Math.round(Math.sin(y)*e)};B=Math.cos(y)*a[2]/2;var w=Math.sin(y)*a[2]/2;t.tooltipPos=[a[0]+.7*B,a[1]+.7*w];t.half=y<-Math.PI/2||y>Math.PI/2?1:0;t.angle=y;x=Math.min(f,t.labelDistance/5);t.labelPosition={natural:{x:a[0]+B+Math.cos(y)*t.labelDistance,y:a[1]+w+Math.sin(y)*t.labelDistance},"final":{},alignment:0>t.labelDistance?"center":t.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+B+Math.cos(y)*x,y:a[1]+w+Math.sin(y)*x},touchingSliceAt:{x:a[0]+B,y:a[1]+w}}}}k(this,"afterTranslate")};
g.prototype.updateTotals=function(){var a=this.points,c=a.length,d=this.options.ignoreHiddenPoint,e,g=0;for(e=0;e<c;e++){var b=a[e];!b.isValid()||d&&!b.visible||(g+=b.y)}this.total=g;for(e=0;e<c;e++)b=a[e],b.percentage=0<g&&(b.visible||!d)?b.y/g*100:0,b.total=g};g.defaultOptions=r(J.defaultOptions,D);return g}(J);m(n.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:E.drawRectangle,drawTracker:g.prototype.drawTracker,getCenter:a.getCenter,getSymbol:y,isCartesian:!1,noSharedTooltip:!0,
pointAttribs:g.prototype.pointAttribs,pointClass:C,requireSorting:!1,searchPoint:y,trackerGroups:["group","dataLabelsGroup"]});t.registerSeriesType("pie",n);return n});L(g,"Series/Pie/PieDataLabel.js",[g["Core/Series/DataLabel.js"],g["Core/Globals.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],function(a,g,y,E,C){var z=g.noop,J=y.distribute,t=E.series,q=C.arrayMax,n=C.clamp,e=C.defined,d=C.merge,h=C.pick,m=C.relativeLength,k;(function(g){function k(){var a=
this,g=a.data,f=a.chart,k=a.options.dataLabels||{},b=k.connectorPadding,m=f.plotWidth,n=f.plotHeight,p=f.plotLeft,r=Math.round(f.chartWidth/3),x=a.center,z=x[2]/2,y=x[1],B=[[],[]],C=[0,0,0,0],w=a.dataLabelPositioners,D,G,I,E,H,K,L,X,R,U,Z,V;a.visible&&(k.enabled||a._hasPointLabels)&&(g.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),t.prototype.drawDataLabels.apply(a),g.forEach(function(a){a.dataLabel&&
(a.visible?(B[a.half].push(a),a.dataLabel._pos=null,!e(k.style.width)&&!e(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>r&&(a.dataLabel.css({width:Math.round(.7*r)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),B.forEach(function(c,d){var g=c.length,l=[],r;if(g){a.sortByAngle(c,d-.5);if(0<a.maxLabelDistance){var q=Math.max(0,y-z-a.maxLabelDistance);
var u=Math.min(y+z+a.maxLabelDistance,f.plotHeight);c.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,y-z-a.labelDistance),a.bottom=Math.min(y+z+a.labelDistance,f.plotHeight),r=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPosition.natural.y-a.top+r/2,size:r,rank:a.y},l.push(a.distributeBox))});q=u+r-q;J(l,q,q/5)}for(Z=0;Z<g;Z++){D=c[Z];K=D.labelPosition;E=D.dataLabel;U=!1===D.visible?"hidden":"inherit";R=q=K.natural.y;l&&e(D.distributeBox)&&("undefined"===
typeof D.distributeBox.pos?U="hidden":(L=D.distributeBox.size,R=w.radialDistributionY(D)));delete D.positionIndex;if(k.justify)X=w.justify(D,z,x);else switch(k.alignTo){case "connectors":X=w.alignToConnectors(c,d,m,p);break;case "plotEdges":X=w.alignToPlotEdges(E,d,m,p);break;default:X=w.radialDistributionX(a,D,R,q)}E._attr={visibility:U,align:K.alignment};V=D.options.dataLabels||{};E._pos={x:X+h(V.x,k.x)+({left:b,right:-b}[K.alignment]||0),y:R+h(V.y,k.y)-10};K.final.x=X;K.final.y=R;h(k.crop,!0)&&
(H=E.getBBox().width,q=null,X-H<b&&1===d?(q=Math.round(H-X+b),C[3]=Math.max(q,C[3])):X+H>m-b&&0===d&&(q=Math.round(X+H-m+b),C[1]=Math.max(q,C[1])),0>R-L/2?C[0]=Math.max(Math.round(-R+L/2),C[0]):R+L/2>n&&(C[2]=Math.max(Math.round(R+L/2-n),C[2])),E.sideOverflow=q)}}}),0===q(C)||this.verifyDataLabelOverflow(C))&&(this.placeDataLabels(),this.points.forEach(function(b){V=d(k,b.options.dataLabels);if(G=h(V.connectorWidth,1)){var c;I=b.connector;if((E=b.dataLabel)&&E._pos&&b.visible&&0<b.labelDistance){U=
E._attr.visibility;if(c=!I)b.connector=I=f.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+b.colorIndex+(b.className?" "+b.className:"")).add(a.dataLabelsGroup),f.styledMode||I.attr({"stroke-width":G,stroke:V.connectorColor||b.color||"#666666"});I[c?"attr":"animate"]({d:b.getConnectorPath()});I.attr("visibility",U)}else I&&(b.connector=I.destroy())}}))}function r(){this.points.forEach(function(a){var c=a.dataLabel,d;c&&a.visible&&((d=c._pos)?(c.sideOverflow&&(c._attr.width=
Math.max(c.getBBox().width-c.sideOverflow,0),c.css({width:c._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),c.shortened=!0),c.attr(c._attr),c[c.moved?"animate":"attr"](d),c.moved=!0):c&&c.attr({y:-9999}));delete a.distributeBox},this)}function y(a){var c=this.center,d=this.options,e=d.center,b=d.minSize||80,g=null!==d.size;if(!g){if(null!==e[0])var h=Math.max(c[2]-Math.max(a[1],a[3]),b);else h=Math.max(c[2]-a[1]-a[3],b),c[0]+=(a[3]-a[1])/2;null!==e[1]?
h=n(h,b,c[2]-Math.max(a[0],a[2])):(h=n(h,b,c[2]-a[0]-a[2]),c[1]+=(a[0]-a[2])/2);h<c[2]?(c[2]=h,c[3]=Math.min(d.thickness?Math.max(0,h-2*d.thickness):Math.max(0,m(d.innerSize||0,h)),h),this.translate(c),this.drawDataLabels&&this.drawDataLabels()):g=!0}return g}var C=[],x={radialDistributionY:function(a){return a.top+a.distributeBox.pos},radialDistributionX:function(a,d,e,g){return a.getX(e<d.top+2||e>d.bottom-2?g:e,d.half,d)},justify:function(a,d,e){return e[0]+(a.half?-1:1)*(d+a.labelDistance)},alignToPlotEdges:function(a,
d,e,g){a=a.getBBox().width;return d?a+g:e-a-g},alignToConnectors:function(a,d,e,g){var b=0,c;a.forEach(function(a){c=a.dataLabel.getBBox().width;c>b&&(b=c)});return d?b+g:e-b-g}};g.compose=function(c){a.compose(t);-1===C.indexOf(c)&&(C.push(c),c=c.prototype,c.dataLabelPositioners=x,c.alignDataLabel=z,c.drawDataLabels=k,c.placeDataLabels=r,c.verifyDataLabelOverflow=y)}})(k||(k={}));return k});L(g,"Extensions/OverlappingDataLabels.js",[g["Core/Chart/Chart.js"],g["Core/Utilities.js"]],function(a,g){function y(a,
e){var d=!1;if(a){var g=a.newOpacity;a.oldOpacity!==g&&(a.alignAttr&&a.placed?(a[g?"removeClass":"addClass"]("highcharts-data-label-hidden"),d=!0,a.alignAttr.opacity=g,a[a.isOld?"animate":"attr"](a.alignAttr,null,function(){e.styledMode||a.css({pointerEvents:g?"auto":"none"})}),C(e,"afterHideOverlappingLabel")):a.attr({opacity:g}));a.isOld=!0}return d}var z=g.addEvent,C=g.fireEvent,D=g.isArray,J=g.isNumber,t=g.objectEach,q=g.pick;z(a,"render",function(){var a=this,e=[];(this.labelCollectors||[]).forEach(function(a){e=
e.concat(a())});(this.yAxis||[]).forEach(function(a){a.stacking&&a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&t(a.stacking.stacks,function(a){t(a,function(a){a.label&&e.push(a.label)})})});(this.series||[]).forEach(function(d){var g=d.options.dataLabels;d.visible&&(!1!==g.enabled||d._hasPointLabels)&&(g=function(d){return d.forEach(function(d){d.visible&&(D(d.dataLabels)?d.dataLabels:d.dataLabel?[d.dataLabel]:[]).forEach(function(g){var h=g.options;g.labelrank=q(h.labelrank,d.labelrank,
d.shapeArgs&&d.shapeArgs.height);h.allowOverlap?(g.oldOpacity=g.opacity,g.newOpacity=1,y(g,a)):e.push(g)})})},g(d.nodes||[]),g(d.points))});this.hideOverlappingLabels(e)});a.prototype.hideOverlappingLabels=function(a){var e=this,d=a.length,g=e.renderer,m,k,n,q=!1;var t=function(a){var c,d=a.box?0:a.padding||0,e=c=0,h;if(a&&(!a.alignAttr||a.placed)){var b=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var k=a.parentGroup;a.width||(c=a.getBBox(),a.width=c.width,a.height=c.height,c=g.fontMetrics(null,a.element).h);
var m=a.width-2*d;(h={left:"0",center:"0.5",right:"1"}[a.alignValue])?e=+h*m:J(a.x)&&Math.round(a.x)!==a.translateX&&(e=a.x-a.translateX);return{x:b.x+(k.translateX||0)+d-(e||0),y:b.y+(k.translateY||0)+d-c,width:a.width-2*d,height:a.height-2*d}}};for(k=0;k<d;k++)if(m=a[k])m.oldOpacity=m.opacity,m.newOpacity=1,m.absoluteBox=t(m);a.sort(function(a,c){return(c.labelrank||0)-(a.labelrank||0)});for(k=0;k<d;k++){var z=(t=a[k])&&t.absoluteBox;for(m=k+1;m<d;++m){var D=(n=a[m])&&n.absoluteBox;!z||!D||t===
n||0===t.newOpacity||0===n.newOpacity||"hidden"===t.visibility||"hidden"===n.visibility||D.x>=z.x+z.width||D.x+D.width<=z.x||D.y>=z.y+z.height||D.y+D.height<=z.y||((t.labelrank<n.labelrank?t:n).newOpacity=0)}}a.forEach(function(a){y(a,e)&&(q=!0)});q&&C(e,"afterHideAllOverlappingLabels")}});L(g,"Core/Responsive.js",[g["Core/Utilities.js"]],function(a){var g=a.extend,y=a.find,E=a.isArray,C=a.isObject,D=a.merge,J=a.objectEach,t=a.pick,q=a.splat,n=a.uniqueKey,e;(function(a){var d=[];a.compose=function(a){-1===
d.indexOf(a)&&(d.push(a),g(a.prototype,e.prototype));return a};var e=function(){function a(){}a.prototype.currentOptions=function(a){function d(a,g,c,h){var f;J(a,function(a,b){if(!h&&-1<e.collectionsWithUpdate.indexOf(b)&&g[b])for(a=q(a),c[b]=[],f=0;f<Math.max(a.length,g[b].length);f++)g[b][f]&&(void 0===a[f]?c[b][f]=g[b][f]:(c[b][f]={},d(a[f],g[b][f],c[b][f],h+1)));else C(a)?(c[b]=E(a)?[]:{},d(a,g[b]||{},c[b],h+1)):c[b]="undefined"===typeof g[b]?null:g[b]})}var e=this,g={};d(a,this.options,g,0);
return g};a.prototype.matchResponsiveRule=function(a,d){var e=a.condition;(e.callback||function(){return this.chartWidth<=t(e.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=t(e.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=t(e.minWidth,0)&&this.chartHeight>=t(e.minHeight,0)}).call(this)&&d.push(a._id)};a.prototype.setResponsive=function(a,d){var e=this,g=this.options.responsive,h=this.currentResponsive,k=[];!d&&g&&g.rules&&g.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=n());e.matchResponsiveRule(a,
k)},this);d=D.apply(void 0,k.map(function(a){return y((g||{}).rules||[],function(c){return c._id===a})}).map(function(a){return a&&a.chartOptions}));d.isResponsiveOptions=!0;k=k.toString()||void 0;k!==(h&&h.ruleIds)&&(h&&this.update(h.undoOptions,a,!0),k?(h=this.currentOptions(d),h.isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:d,undoOptions:h},this.update(d,a,!0)):this.currentResponsive=void 0)};return a}()})(e||(e={}));"";"";return e});L(g,"masters/highcharts.src.js",[g["Core/Globals.js"],
g["Core/Utilities.js"],g["Core/Defaults.js"],g["Core/Animation/Fx.js"],g["Core/Animation/AnimationUtilities.js"],g["Core/Renderer/HTML/AST.js"],g["Core/FormatUtilities.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Renderer/SVG/SVGRenderer.js"],g["Core/Renderer/HTML/HTMLElement.js"],g["Core/Renderer/HTML/HTMLRenderer.js"],g["Core/Axis/Axis.js"],g["Core/Axis/DateTimeAxis.js"],g["Core/Axis/LogarithmicAxis.js"],g["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],
g["Core/Axis/Tick.js"],g["Core/Tooltip.js"],g["Core/Series/Point.js"],g["Core/Pointer.js"],g["Core/MSPointer.js"],g["Core/Legend/Legend.js"],g["Core/Chart/Chart.js"],g["Core/Axis/Stacking/StackingAxis.js"],g["Core/Axis/Stacking/StackItem.js"],g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Series/Column/ColumnSeries.js"],g["Series/Column/ColumnDataLabel.js"],g["Series/Pie/PieSeries.js"],g["Series/Pie/PieDataLabel.js"],g["Core/Series/DataLabel.js"],g["Core/Responsive.js"],g["Core/Color/Color.js"],
g["Core/Time.js"]],function(a,g,y,E,C,D,J,t,q,n,e,d,h,m,k,r,B,G,K,I,x,c,u,f,l,b,v,A,p,L,F,N,Q,W,Y){a.animate=C.animate;a.animObject=C.animObject;a.getDeferredAnimation=C.getDeferredAnimation;a.setAnimation=C.setAnimation;a.stop=C.stop;a.timers=E.timers;a.AST=D;a.Axis=h;a.Chart=u;a.chart=u.chart;a.Fx=E;a.Legend=c;a.PlotLineOrBand=r;a.Point=K;a.Pointer=x.isRequired()?x:I;a.Series=b;a.StackItem=l;a.SVGElement=q;a.SVGRenderer=n;a.Tick=B;a.Time=Y;a.Tooltip=G;a.Color=W;a.color=W.parse;d.compose(n);e.compose(q);
a.defaultOptions=y.defaultOptions;a.getOptions=y.getOptions;a.time=y.defaultTime;a.setOptions=y.setOptions;a.dateFormat=J.dateFormat;a.format=J.format;a.numberFormat=J.numberFormat;a.addEvent=g.addEvent;a.arrayMax=g.arrayMax;a.arrayMin=g.arrayMin;a.attr=g.attr;a.clearTimeout=g.clearTimeout;a.correctFloat=g.correctFloat;a.createElement=g.createElement;a.css=g.css;a.defined=g.defined;a.destroyObjectProperties=g.destroyObjectProperties;a.discardElement=g.discardElement;a.distribute=t.distribute;a.erase=
g.erase;a.error=g.error;a.extend=g.extend;a.extendClass=g.extendClass;a.find=g.find;a.fireEvent=g.fireEvent;a.getMagnitude=g.getMagnitude;a.getStyle=g.getStyle;a.inArray=g.inArray;a.isArray=g.isArray;a.isClass=g.isClass;a.isDOMElement=g.isDOMElement;a.isFunction=g.isFunction;a.isNumber=g.isNumber;a.isObject=g.isObject;a.isString=g.isString;a.keys=g.keys;a.merge=g.merge;a.normalizeTickInterval=g.normalizeTickInterval;a.objectEach=g.objectEach;a.offset=g.offset;a.pad=g.pad;a.pick=g.pick;a.pInt=g.pInt;
a.relativeLength=g.relativeLength;a.removeEvent=g.removeEvent;a.seriesType=v.seriesType;a.splat=g.splat;a.stableSort=g.stableSort;a.syncTimeout=g.syncTimeout;a.timeUnits=g.timeUnits;a.uniqueKey=g.uniqueKey;a.useSerialIds=g.useSerialIds;a.wrap=g.wrap;p.compose(A);N.compose(b);m.compose(h);k.compose(h);F.compose(L);r.compose(h);Q.compose(u);f.compose(h,u,b);return a});g["masters/highcharts.src.js"]._modules=g;return g["masters/highcharts.src.js"]});
//# sourceMappingURL=highcharts.js.map