You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

764 lines
378 KiB
JavaScript

/*
Highmaps JS v10.0.0 (2022-03-16)
(c) 2011-2021 Torstein Honsi
License: www.highcharts.com/license
*/
(function(f,I){"object"===typeof module&&module.exports?(I["default"]=I,module.exports=f.document?I(f):I):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return I(f)}):(f.Highcharts&&f.Highcharts.error(16,!0),f.Highcharts=I(f))})("undefined"!==typeof window?window:this,function(f){function I(b,f,v,B){b.hasOwnProperty(f)||(b[f]=B.apply(null,v))}f={};I(f,"Core/Globals.js",[],function(){var b;(function(b){b.SVG_NS="http://www.w3.org/2000/svg";b.product="Highcharts";b.version=
"10.0.0";b.win="undefined"!==typeof window?window:{};b.doc=b.win.document;b.svg=b.doc&&b.doc.createElementNS&&!!b.doc.createElementNS(b.SVG_NS,"svg").createSVGRect;b.userAgent=b.win.navigator&&b.win.navigator.userAgent||"";b.isChrome=-1!==b.userAgent.indexOf("Chrome");b.isFirefox=-1!==b.userAgent.indexOf("Firefox");b.isMS=/(edge|msie|trident)/i.test(b.userAgent)&&!b.win.opera;b.isSafari=!b.isChrome&&-1!==b.userAgent.indexOf("Safari");b.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(b.userAgent);
b.isWebKit=-1!==b.userAgent.indexOf("AppleWebKit");b.deg2rad=2*Math.PI/360;b.hasBidiBug=b.isFirefox&&4>parseInt(b.userAgent.split("Firefox/")[1],10);b.hasTouch=!!b.win.TouchEvent;b.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];b.noop=function(){};b.supportsPassiveEvents=function(){var f=!1;if(!b.isMS){var J=Object.defineProperty({},"passive",{get:function(){f=!0}});b.win.addEventListener&&b.win.removeEventListener&&(b.win.addEventListener("testPassive",b.noop,J),b.win.removeEventListener("testPassive",
b.noop,J))}return f}();b.charts=[];b.dateFormats={};b.seriesTypes={};b.symbolSizes={};b.chartCount=0})(b||(b={}));"";return b});I(f,"Core/Utilities.js",[f["Core/Globals.js"]],function(b){function f(c,p,g,h){var F=p?"Highcharts error":"Highcharts warning";32===c&&(c=F+": Deprecated member");var D=l(c),a=D?F+" #"+c+": www.highcharts.com/errors/"+c+"/":c.toString();if("undefined"!==typeof h){var m="";D&&(a+="?");C(h,function(c,p){m+="\n - "+p+": "+c;D&&(a+=encodeURI(p)+"="+encodeURI(c))});a+=m}t(b,"displayError",
{chart:g,code:c,message:a,params:h},function(){if(p)throw Error(a);u.console&&-1===f.messages.indexOf(a)&&console.warn(a)});f.messages.push(a)}function v(c,p){var F={};C(c,function(g,h){if(E(c[h],!0)&&!c.nodeType&&p[h])g=v(c[h],p[h]),Object.keys(g).length&&(F[h]=g);else if(E(c[h])||c[h]!==p[h]||h in c&&!(h in p))F[h]=c[h]});return F}function B(c,p){return parseInt(c,p||10)}function r(c){return"string"===typeof c}function A(c){c=Object.prototype.toString.call(c);return"[object Array]"===c||"[object Array Iterator]"===
c}function E(c,p){return!!c&&"object"===typeof c&&(!p||!A(c))}function y(c){return E(c)&&"number"===typeof c.nodeType}function q(c){var p=c&&c.constructor;return!(!E(c,!0)||y(c)||!p||!p.name||"Object"===p.name)}function l(c){return"number"===typeof c&&!isNaN(c)&&Infinity>c&&-Infinity<c}function n(c){return"undefined"!==typeof c&&null!==c}function e(c,p,g){var h=r(p)&&!n(g),F,a=function(p,g){n(p)?c.setAttribute(g,p):h?(F=c.getAttribute(g))||"class"!==g||(F=c.getAttribute(g+"Name")):c.removeAttribute(g)};
r(p)?a(g,p):C(p,a);return F}function a(c,p){var g;c||(c={});for(g in p)c[g]=p[g];return c}function d(){for(var c=arguments,p=c.length,g=0;g<p;g++){var h=c[g];if("undefined"!==typeof h&&null!==h)return h}}function k(c,p){b.isMS&&!b.svg&&p&&n(p.opacity)&&(p.filter="alpha(opacity="+100*p.opacity+")");a(c.style,p)}function G(c,p){return 1E14<c?c:parseFloat(c.toPrecision(p||14))}function z(c,p,g){var h=b.getStyle||z;if("width"===p)return p=Math.min(c.offsetWidth,c.scrollWidth),g=c.getBoundingClientRect&&
c.getBoundingClientRect().width,g<p&&g>=p-1&&(p=Math.floor(g)),Math.max(0,p-(h(c,"padding-left",!0)||0)-(h(c,"padding-right",!0)||0));if("height"===p)return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(h(c,"padding-top",!0)||0)-(h(c,"padding-bottom",!0)||0));u.getComputedStyle||f(27,!0);if(c=u.getComputedStyle(c,void 0)){var a=c.getPropertyValue(p);d(g,"opacity"!==p)&&(a=B(a))}return a}function C(c,p,g){for(var h in c)Object.hasOwnProperty.call(c,h)&&p.call(g||c[h],c[h],h,c)}function x(c,p,
g){function h(p,g){var h=c.removeEventListener||b.removeEventListenerPolyfill;h&&h.call(c,p,g,!1)}function a(g){var a;if(c.nodeName){if(p){var F={};F[p]=!0}else F=g;C(F,function(c,p){if(g[p])for(a=g[p].length;a--;)h(p,g[p][a].fn)})}}var F="function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(F,"hcEvents")){var m=F.hcEvents;p?(F=m[p]||[],g?(m[p]=F.filter(function(c){return g!==c.fn}),h(p,g)):(a(m),m[p]=[])):(a(m),delete F.hcEvents)}}function t(c,p,g,m){g=g||{};if(h.createEvent&&(c.dispatchEvent||
c.fireEvent&&c!==b)){var F=h.createEvent("Events");F.initEvent(p,!0,!0);g=a(F,g);c.dispatchEvent?c.dispatchEvent(g):c.fireEvent(p,g)}else if(c.hcEvents){g.target||a(g,{preventDefault:function(){g.defaultPrevented=!0},target:c,type:p});F=[];for(var u=c,D=!1;u.hcEvents;)Object.hasOwnProperty.call(u,"hcEvents")&&u.hcEvents[p]&&(F.length&&(D=!0),F.unshift.apply(F,u.hcEvents[p])),u=Object.getPrototypeOf(u);D&&F.sort(function(c,g){return c.order-g.order});F.forEach(function(p){!1===p.fn.call(c,g)&&g.preventDefault()})}m&&
!g.defaultPrevented&&m.call(c,g)}var m=b.charts,h=b.doc,u=b.win;(f||(f={})).messages=[];Math.easeInOutSine=function(c){return-.5*(Math.cos(Math.PI*c)-1)};var c=Array.prototype.find?function(c,g){return c.find(g)}:function(c,g){var p,h=c.length;for(p=0;p<h;p++)if(g(c[p],p))return c[p]};C({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(c,g){b[g]=function(p){var h;f(32,!1,void 0,(h={},h["Highcharts."+g]="use Array."+c,h));return Array.prototype[c].apply(p,[].slice.call(arguments,
1))}});var w,g=function(){var c=Math.random().toString(36).substring(2,9)+"-",g=0;return function(){return"highcharts-"+(w?"":c)+g++}}();u.jQuery&&(u.jQuery.fn.highcharts=function(){var c=[].slice.call(arguments);if(this[0])return c[0]?(new (b[r(c[0])?c.shift():"Chart"])(this[0],c[0],c[1]),this):m[e(this[0],"data-highcharts-chart")]});c={addEvent:function(c,g,h,a){void 0===a&&(a={});var p="function"===typeof c&&c.prototype||c;Object.hasOwnProperty.call(p,"hcEvents")||(p.hcEvents={});p=p.hcEvents;
b.Point&&c instanceof b.Point&&c.series&&c.series.chart&&(c.series.chart.runTrackerClick=!0);var m=c.addEventListener||b.addEventListenerPolyfill;m&&m.call(c,g,h,b.supportsPassiveEvents?{passive:void 0===a.passive?-1!==g.indexOf("touch"):a.passive,capture:!1}:!1);p[g]||(p[g]=[]);p[g].push({fn:h,order:"number"===typeof a.order?a.order:Infinity});p[g].sort(function(c,g){return c.order-g.order});return function(){x(c,g,h)}},arrayMax:function(c){for(var g=c.length,h=c[0];g--;)c[g]>h&&(h=c[g]);return h},
arrayMin:function(c){for(var g=c.length,h=c[0];g--;)c[g]<h&&(h=c[g]);return h},attr:e,clamp:function(c,g,h){return c>g?c<h?c:h:g},cleanRecursively:v,clearTimeout:function(c){n(c)&&clearTimeout(c)},correctFloat:G,createElement:function(c,g,m,u,d){c=h.createElement(c);g&&a(c,g);d&&k(c,{padding:"0",border:"none",margin:"0"});m&&k(c,m);u&&u.appendChild(c);return c},css:k,defined:n,destroyObjectProperties:function(c,g){C(c,function(p,h){p&&p!==g&&p.destroy&&p.destroy();delete c[h]})},discardElement:function(c){c&&
c.parentElement&&c.parentElement.removeChild(c)},erase:function(c,g){for(var p=c.length;p--;)if(c[p]===g){c.splice(p,1);break}},error:f,extend:a,extendClass:function(c,g){var p=function(){};p.prototype=new c;a(p.prototype,g);return p},find:c,fireEvent:t,getMagnitude:function(c){return Math.pow(10,Math.floor(Math.log(c)/Math.LN10))},getNestedProperty:function(c,g){for(c=c.split(".");c.length&&n(g);){var h=c.shift();if("undefined"===typeof h||"__proto__"===h)return;g=g[h];if(!n(g)||"function"===typeof g||
"number"===typeof g.nodeType||g===u)return}return g},getStyle:z,inArray:function(c,g,h){f(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return g.indexOf(c,h)},isArray:A,isClass:q,isDOMElement:y,isFunction:function(c){return"function"===typeof c},isNumber:l,isObject:E,isString:r,keys:function(c){f(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(c)},merge:function(){var c,g=arguments,h={},a=function(c,g){"object"!==typeof c&&(c={});C(g,function(h,p){"__proto__"!==p&&
"constructor"!==p&&(!E(h,!0)||q(h)||y(h)?c[p]=g[p]:c[p]=a(c[p]||{},h))});return c};!0===g[0]&&(h=g[1],g=Array.prototype.slice.call(g,2));var m=g.length;for(c=0;c<m;c++)h=a(h,g[c]);return h},normalizeTickInterval:function(c,g,h,a,m){var p=c;h=d(h,1);var u=c/h;g||(g=m?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===a&&(1===h?g=g.filter(function(c){return 0===c%1}):.1>=h&&(g=[1/h])));for(a=0;a<g.length&&!(p=g[a],m&&p*h>=c||!m&&u<=(g[a]+(g[a+1]||g[a]))/2);a++);return p=G(p*h,-Math.round(Math.log(.001)/
Math.LN10))},objectEach:C,offset:function(c){var g=h.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:c.top+(u.pageYOffset||g.scrollTop)-(g.clientTop||0),left:c.left+(u.pageXOffset||g.scrollLeft)-(g.clientLeft||0),width:c.width,height:c.height}},pad:function(c,g,h){return Array((g||2)+1-String(c).replace("-","").length).join(h||"0")+c},pick:d,pInt:B,relativeLength:function(c,g,h){return/%$/.test(c)?g*parseFloat(c)/100+(h||0):parseFloat(c)},
removeEvent:x,splat:function(c){return A(c)?c:[c]},stableSort:function(c,g){var h=c.length,p,a;for(a=0;a<h;a++)c[a].safeI=a;c.sort(function(c,h){p=g(c,h);return 0===p?c.safeI-h.safeI:p});for(a=0;a<h;a++)delete c[a].safeI},syncTimeout:function(c,g,h){if(0<g)return setTimeout(c,g,h);c.call(0,h);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:g,useSerialIds:function(c){return w=d(c,w)},wrap:function(c,g,h){var p=c[g];c[g]=
function(){var c=Array.prototype.slice.call(arguments),g=arguments,a=this;a.proceed=function(){p.apply(a,arguments.length?arguments:g)};c.unshift(p);c=h.apply(this,c);a.proceed=null;return c}}};"";return c});I(f,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,
width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});I(f,"Core/Color/Color.js",[f["Core/Globals.js"],f["Core/Utilities.js"]],function(b,f){var J=f.isNumber,B=f.merge,r=f.pInt;f=function(){function f(E){this.rgba=[NaN,NaN,NaN,NaN];this.input=E;var y=b.Color;if(y&&y!==f)return new y(E);if(!(this instanceof f))return new f(E);this.init(E)}f.parse=function(b){return b?new f(b):f.None};f.prototype.init=function(b){var y;if("object"===typeof b&&"undefined"!==
typeof b.stops)this.stops=b.stops.map(function(e){return new f(e[1])});else if("string"===typeof b){this.input=b=f.names[b.toLowerCase()]||b;if("#"===b.charAt(0)){var q=b.length;var l=parseInt(b.substr(1),16);7===q?y=[(l&16711680)>>16,(l&65280)>>8,l&255,1]:4===q&&(y=[(l&3840)>>4|(l&3840)>>8,(l&240)>>4|l&240,(l&15)<<4|l&15,1])}if(!y)for(l=f.parsers.length;l--&&!y;){var n=f.parsers[l];(q=n.regex.exec(b))&&(y=n.parse(q))}}y&&(this.rgba=y)};f.prototype.get=function(b){var y=this.input,q=this.rgba;if("object"===
typeof y&&"undefined"!==typeof this.stops){var l=B(y);l.stops=[].slice.call(l.stops);this.stops.forEach(function(n,e){l.stops[e]=[l.stops[e][0],n.get(b)]});return l}return q&&J(q[0])?"rgb"===b||!b&&1===q[3]?"rgb("+q[0]+","+q[1]+","+q[2]+")":"a"===b?""+q[3]:"rgba("+q.join(",")+")":y};f.prototype.brighten=function(b){var y=this.rgba;if(this.stops)this.stops.forEach(function(l){l.brighten(b)});else if(J(b)&&0!==b)for(var q=0;3>q;q++)y[q]+=r(255*b),0>y[q]&&(y[q]=0),255<y[q]&&(y[q]=255);return this};f.prototype.setOpacity=
function(b){this.rgba[3]=b;return this};f.prototype.tweenTo=function(b,y){var q=this.rgba,l=b.rgba;if(!J(q[0])||!J(l[0]))return b.input||"none";b=1!==l[3]||1!==q[3];return(b?"rgba(":"rgb(")+Math.round(l[0]+(q[0]-l[0])*(1-y))+","+Math.round(l[1]+(q[1]-l[1])*(1-y))+","+Math.round(l[2]+(q[2]-l[2])*(1-y))+(b?","+(l[3]+(q[3]-l[3])*(1-y)):"")+")"};f.names={white:"#ffffff",black:"#000000"};f.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(b){return[r(b[1]),
r(b[2]),r(b[3]),parseFloat(b[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(b){return[r(b[1]),r(b[2]),r(b[3]),1]}}];f.None=new f("");return f}();"";return f});I(f,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});I(f,"Core/Time.js",[f["Core/Globals.js"],f["Core/Utilities.js"]],function(b,f){var J=b.win,B=f.defined,r=f.error,A=f.extend,E=f.isObject,y=
f.merge,q=f.objectEach,l=f.pad,n=f.pick,e=f.splat,a=f.timeUnits,d=b.isSafari&&J.Intl&&J.Intl.DateTimeFormat.prototype.formatRange,k=b.isSafari&&J.Intl&&!J.Intl.DateTimeFormat.prototype.formatRange;f=function(){function G(a){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=J.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(a)}G.prototype.get=function(a,d){if(this.variableTimezone||this.timezoneOffset){var e=d.getTime(),t=e-this.getTimezoneOffset(d);d.setTime(t);a=
d["getUTC"+a]();d.setTime(e);return a}return this.useUTC?d["getUTC"+a]():d["get"+a]()};G.prototype.set=function(a,e,k){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===this.getTimezoneOffset(e)%36E5)return e["setUTC"+a](k);var t=this.getTimezoneOffset(e);t=e.getTime()-t;e.setTime(t);e["setUTC"+a](k);a=this.getTimezoneOffset(e);t=e.getTime()+a;return e.setTime(t)}return this.useUTC||d&&"FullYear"===a?e["setUTC"+a](k):e["set"+a](k)};G.prototype.update=
function(a){var d=n(a&&a.useUTC,!0);this.options=a=y(!0,this.options||{},a);this.Date=a.Date||J.Date||Date;this.timezoneOffset=(this.useUTC=d)&&a.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=d&&!(!a.getTimezoneOffset&&!a.timezone)};G.prototype.makeTime=function(a,d,e,t,m,h){if(this.useUTC){var u=this.Date.UTC.apply(0,arguments);var c=this.getTimezoneOffset(u);u+=c;var w=this.getTimezoneOffset(u);c!==w?u+=w-c:c-36E5!==this.getTimezoneOffset(u-36E5)||k||
(u-=36E5)}else u=(new this.Date(a,d,n(e,1),n(t,0),n(m,0),n(h,0))).getTime();return u};G.prototype.timezoneOffsetFunction=function(){var a=this,d=this.options,e=d.getTimezoneOffset,k=d.moment||J.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a.toString())).getTimezoneOffset()};if(d.timezone){if(k)return function(a){return 6E4*-k.tz(a,d.timezone).utcOffset()};r(25)}return this.useUTC&&e?function(a){return 6E4*e(a.valueOf())}:function(){return 6E4*(a.timezoneOffset||0)}};G.prototype.dateFormat=
function(a,d,e){if(!B(d)||isNaN(d))return b.defaultOptions.lang&&b.defaultOptions.lang.invalidDate||"";a=n(a,"%Y-%m-%d %H:%M:%S");var k=this,m=new this.Date(d),h=this.get("Hours",m),u=this.get("Day",m),c=this.get("Date",m),w=this.get("Month",m),g=this.get("FullYear",m),F=b.defaultOptions.lang,p=F&&F.weekdays,D=F&&F.shortWeekdays;m=A({a:D?D[u]:p[u].substr(0,3),A:p[u],d:l(c),e:l(c,2," "),w:u,b:F.shortMonths[w],B:F.months[w],m:l(w+1),o:w+1,y:g.toString().substr(2,2),Y:g,H:l(h),k:h,I:l(h%12||12),l:h%
12||12,M:l(this.get("Minutes",m)),p:12>h?"AM":"PM",P:12>h?"am":"pm",S:l(m.getSeconds()),L:l(Math.floor(d%1E3),3)},b.dateFormats);q(m,function(c,g){for(;-1!==a.indexOf("%"+g);)a=a.replace("%"+g,"function"===typeof c?c.call(k,d):c)});return e?a.substr(0,1).toUpperCase()+a.substr(1):a};G.prototype.resolveDTLFormat=function(a){return E(a,!0)?a:(a=e(a),{main:a[0],from:a[1],to:a[2]})};G.prototype.getTimeTicks=function(d,e,k,t){var m=this,h=[],u={},c=new m.Date(e),w=d.unitRange,g=d.count||1,F;t=n(t,1);if(B(e)){m.set("Milliseconds",
c,w>=a.second?0:g*Math.floor(m.get("Milliseconds",c)/g));w>=a.second&&m.set("Seconds",c,w>=a.minute?0:g*Math.floor(m.get("Seconds",c)/g));w>=a.minute&&m.set("Minutes",c,w>=a.hour?0:g*Math.floor(m.get("Minutes",c)/g));w>=a.hour&&m.set("Hours",c,w>=a.day?0:g*Math.floor(m.get("Hours",c)/g));w>=a.day&&m.set("Date",c,w>=a.month?1:Math.max(1,g*Math.floor(m.get("Date",c)/g)));if(w>=a.month){m.set("Month",c,w>=a.year?0:g*Math.floor(m.get("Month",c)/g));var p=m.get("FullYear",c)}w>=a.year&&m.set("FullYear",
c,p-p%g);w===a.week&&(p=m.get("Day",c),m.set("Date",c,m.get("Date",c)-p+t+(p<t?-7:0)));p=m.get("FullYear",c);t=m.get("Month",c);var D=m.get("Date",c),x=m.get("Hours",c);e=c.getTime();!m.variableTimezone&&m.useUTC||!B(k)||(F=k-e>4*a.month||m.getTimezoneOffset(e)!==m.getTimezoneOffset(k));e=c.getTime();for(c=1;e<k;)h.push(e),e=w===a.year?m.makeTime(p+c*g,0):w===a.month?m.makeTime(p,t+c*g):!F||w!==a.day&&w!==a.week?F&&w===a.hour&&1<g?m.makeTime(p,t,D,x+c*g):e+w*g:m.makeTime(p,t,D+c*g*(w===a.day?1:7)),
c++;h.push(e);w<=a.hour&&1E4>h.length&&h.forEach(function(c){0===c%18E5&&"000000000"===m.dateFormat("%H%M%S%L",c)&&(u[c]="day")})}h.info=A(d,{higherRanks:u,totalRange:w*g});return h};G.prototype.getDateFormat=function(d,e,k,t){var m=this.dateFormat("%m-%d %H:%M:%S.%L",e),h={millisecond:15,second:12,minute:9,hour:6,day:3},u="millisecond";for(c in a){if(d===a.week&&+this.dateFormat("%w",e)===k&&"00:00:00.000"===m.substr(6)){var c="week";break}if(a[c]>d){c=u;break}if(h[c]&&m.substr(h[c])!=="01-01 00:00:00.000".substr(h[c]))break;
"week"!==c&&(u=c)}if(c)var w=this.resolveDTLFormat(t[c]).main;return w};return G}();"";return f});I(f,"Core/DefaultOptions.js",[f["Core/Chart/ChartDefaults.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Color/Palettes.js"],f["Core/Time.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A){f=f.parse;var J=A.merge,y={colors:B.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:b,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},
caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},
itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:v.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",
minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:v.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:f("#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"}};y.chart.styledMode=!1;"";var q=new r(J(y.global,y.time));b={defaultOptions:y,defaultTime:q,getOptions:function(){return y},setOptions:function(l){J(!0,y,l);if(l.time||l.global)v.time?v.time.update(J(y.global,y.time,
l.global,l.time)):v.time=q;return y}};"";return b});I(f,"Core/Animation/Fx.js",[f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(b,f,v){var J=b.parse,r=f.win,A=v.isNumber,E=v.objectEach;return function(){function b(b,l,n){this.pos=NaN;this.options=l;this.elem=b;this.prop=n}b.prototype.dSetter=function(){var b=this.paths,l=b&&b[0];b=b&&b[1];var n=this.now||0,e=[];if(1!==n&&l&&b)if(l.length===b.length&&1>n)for(var a=0;a<b.length;a++){for(var d=l[a],k=b[a],G=[],z=0;z<k.length;z++){var C=
d[z],x=k[z];A(C)&&A(x)&&("A"!==k[0]||4!==z&&5!==z)?G[z]=C+n*(x-C):G[z]=x}e.push(G)}else e=b;else e=this.toD||[];this.elem.attr("d",e,void 0,!0)};b.prototype.update=function(){var b=this.elem,l=this.prop,n=this.now,e=this.options.step;if(this[l+"Setter"])this[l+"Setter"]();else b.attr?b.element&&b.attr(l,n,null,!0):b.style[l]=n+this.unit;e&&e.call(b,n,this)};b.prototype.run=function(q,l,n){var e=this,a=e.options,d=function(a){return d.stopped?!1:e.step(a)},k=r.requestAnimationFrame||function(a){setTimeout(a,
13)},G=function(){for(var a=0;a<b.timers.length;a++)b.timers[a]()||b.timers.splice(a--,1);b.timers.length&&k(G)};q!==l||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=q,this.end=l,this.unit=n,this.now=this.start,this.pos=0,d.elem=this.elem,d.prop=this.prop,d()&&1===b.timers.push(d)&&k(G)):(delete a.curAnim[this.prop],a.complete&&0===Object.keys(a.curAnim).length&&a.complete.call(this.elem))};b.prototype.step=function(b){var l=+new Date,n=this.options,e=this.elem,a=n.complete,
d=n.duration,k=n.curAnim;if(e.attr&&!e.element)b=!1;else if(b||l>=d+this.startTime){this.now=this.end;this.pos=1;this.update();var G=k[this.prop]=!0;E(k,function(a){!0!==a&&(G=!1)});G&&a&&a.call(e);b=!1}else this.pos=n.easing((l-this.startTime)/d),this.now=this.start+(this.end-this.start)*this.pos,this.update(),b=!0;return b};b.prototype.initPath=function(b,l,n){function e(a,h){for(;a.length<t;){var d=a[0],c=h[t-a.length];c&&"M"===d[0]&&(a[0]="C"===c[0]?["C",d[1],d[2],d[1],d[2],d[1],d[2]]:["L",d[1],
d[2]]);a.unshift(d);G&&(d=a.pop(),a.push(a[a.length-1],d))}}function a(a,h){for(;a.length<t;)if(h=a[Math.floor(a.length/z)-1].slice(),"C"===h[0]&&(h[1]=h[5],h[2]=h[6]),G){var d=a[Math.floor(a.length/z)].slice();a.splice(a.length/2,0,h,d)}else a.push(h)}var d=b.startX,k=b.endX;n=n.slice();var G=b.isArea,z=G?2:1;l=l&&l.slice();if(!l)return[n,n];if(d&&k&&k.length){for(b=0;b<d.length;b++)if(d[b]===k[0]){var C=b;break}else if(d[0]===k[k.length-d.length+b]){C=b;var x=!0;break}else if(d[d.length-1]===k[k.length-
d.length+b]){C=d.length-b;break}"undefined"===typeof C&&(l=[])}if(l.length&&A(C)){var t=n.length+C*z;x?(e(l,n),a(n,l)):(e(n,l),a(l,n))}return[l,n]};b.prototype.fillSetter=function(){b.prototype.strokeSetter.apply(this,arguments)};b.prototype.strokeSetter=function(){this.elem.attr(this.prop,J(this.start).tweenTo(J(this.end),this.pos),void 0,!0)};b.timers=[];return b}()});I(f,"Core/Animation/AnimationUtilities.js",[f["Core/Animation/Fx.js"],f["Core/Utilities.js"]],function(b,f){function J(a){return q(a)?
l({duration:500,defer:0},a):{duration:a?500:0,defer:0}}function B(a,d){for(var e=b.timers.length;e--;)b.timers[e].elem!==a||d&&d!==b.timers[e].prop||(b.timers[e].stopped=!0)}var r=f.defined,A=f.getStyle,E=f.isArray,y=f.isNumber,q=f.isObject,l=f.merge,n=f.objectEach,e=f.pick;return{animate:function(a,d,e){var k,z="",C,x;if(!q(e)){var t=arguments;e={duration:t[2],easing:t[3],complete:t[4]}}y(e.duration)||(e.duration=400);e.easing="function"===typeof e.easing?e.easing:Math[e.easing]||Math.easeInOutSine;
e.curAnim=l(d);n(d,function(m,h){B(a,h);x=new b(a,e,h);C=void 0;"d"===h&&E(d.d)?(x.paths=x.initPath(a,a.pathArray,d.d),x.toD=d.d,k=0,C=1):a.attr?k=a.attr(h):(k=parseFloat(A(a,h))||0,"opacity"!==h&&(z="px"));C||(C=m);"string"===typeof C&&C.match("px")&&(C=C.replace(/px/g,""));x.run(k,C,z)})},animObject:J,getDeferredAnimation:function(a,d,e){var k=J(d),z=0,C=0;(e?[e]:a.series).forEach(function(a){a=J(a.options.animation);z=d&&r(d.defer)?k.defer:Math.max(z,a.duration+a.defer);C=Math.min(k.duration,a.duration)});
a.renderer.forExport&&(z=0);return{defer:Math.max(0,z-C),duration:Math.min(z,C)}},setAnimation:function(a,d){d.renderer.globalAnimation=e(a,d.options.chart.animation,!0)},stop:B}});I(f,"Core/Renderer/HTML/AST.js",[f["Core/Globals.js"],f["Core/Utilities.js"]],function(b,f){var J=b.SVG_NS,B=f.attr,r=f.createElement,A=f.css,E=f.error,y=f.isFunction,q=f.isString,l=f.objectEach,n=f.splat,e=(f=b.win.trustedTypes)&&y(f.createPolicy)&&f.createPolicy("highcharts",{createHTML:function(a){return a}}),a=e?e.createHTML(""):
"";try{var d=!!(new DOMParser).parseFromString(a,"text/html")}catch(k){d=!1}y=function(){function k(a){this.nodes="string"===typeof a?this.parseMarkup(a):a}k.filterUserAttributes=function(a){l(a,function(d,e){var x=!0;-1===k.allowedAttributes.indexOf(e)&&(x=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(e)&&(x=q(d)&&k.allowedReferences.some(function(a){return 0===d.indexOf(a)}));x||(E(33,!1,void 0,{"Invalid attribute in config":""+e}),delete a[e])});return a};k.parseStyle=function(a){return a.split(";").reduce(function(a,
d){d=d.split(":").map(function(a){return a.trim()});var e=d[0].replace(/-([a-z])/g,function(a){return a[1].toUpperCase()});d[1]&&(a[e]=d[1]);return a},{})};k.setElementHTML=function(a,d){a.innerHTML=k.emptyHTML;d&&(new k(d)).addToDOM(a)};k.prototype.addToDOM=function(a){function d(a,e){var t;n(a).forEach(function(a){var h=a.tagName,u=a.textContent?b.doc.createTextNode(a.textContent):void 0,c=k.bypassHTMLFiltering;if(h)if("#text"===h)var m=u;else if(-1!==k.allowedTags.indexOf(h)||c){h=b.doc.createElementNS("svg"===
h?J:e.namespaceURI||J,h);var g=a.attributes||{};l(a,function(c,a){"tagName"!==a&&"attributes"!==a&&"children"!==a&&"style"!==a&&"textContent"!==a&&(g[a]=c)});B(h,c?g:k.filterUserAttributes(g));a.style&&A(h,a.style);u&&h.appendChild(u);d(a.children||[],h);m=h}else E(33,!1,void 0,{"Invalid tagName in config":h});m&&e.appendChild(m);t=m});return t}return d(this.nodes,a)};k.prototype.parseMarkup=function(a){var z=[];a=a.trim().replace(/ style="/g,' data-style="');if(d)a=(new DOMParser).parseFromString(e?
e.createHTML(a):a,"text/html");else{var C=r("div");C.innerHTML=a;a={body:C}}var x=function(a,d){var h=a.nodeName.toLowerCase(),e={tagName:h};"#text"===h&&(e.textContent=a.textContent||"");if(h=a.attributes){var c={};[].forEach.call(h,function(a){"data-style"===a.name?e.style=k.parseStyle(a.value):c[a.name]=a.value});e.attributes=c}if(a.childNodes.length){var m=[];[].forEach.call(a.childNodes,function(c){x(c,m)});m.length&&(e.children=m)}d.push(e)};[].forEach.call(a.body.childNodes,function(a){return x(a,
z)});return z};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 textAnchor textLength title type valign width x x1 x2 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 thead tbody tspan td th tr u ul #text".split(" ");k.emptyHTML=a;k.bypassHTMLFiltering=!1;return k}();"";return y});
I(f,"Core/FormatUtilities.js",[f["Core/DefaultOptions.js"],f["Core/Utilities.js"]],function(b,f){function J(l,n,e,a){l=+l||0;n=+n;var d=B.lang,k=(l.toString().split(".")[1]||"").split("e")[0].length,G=l.toString().split("e"),z=n;if(-1===n)n=Math.min(k,20);else if(!E(n))n=2;else if(n&&G[1]&&0>G[1]){var C=n+ +G[1];0<=C?(G[0]=(+G[0]).toExponential(C).split("e")[0],n=C):(G[0]=G[0].split(".")[0]||0,l=20>n?(G[0]*Math.pow(10,G[1])).toFixed(n):0,G[1]=0)}C=(Math.abs(G[1]?G[0]:l)+Math.pow(10,-Math.max(n,k)-
1)).toFixed(n);k=String(q(C));var x=3<k.length?k.length%3:0;e=y(e,d.decimalPoint);a=y(a,d.thousandsSep);l=(0>l?"-":"")+(x?k.substr(0,x)+a:"");l=0>+G[1]&&!z?"0":l+k.substr(x).replace(/(\d{3})(?=\d)/g,"$1"+a);n&&(l+=e+C.slice(-n));G[1]&&0!==+l&&(l+="e"+G[1]);return l}var B=b.defaultOptions,r=b.defaultTime,A=f.getNestedProperty,E=f.isNumber,y=f.pick,q=f.pInt;return{dateFormat:function(l,n,e){return r.dateFormat(l,n,e)},format:function(l,n,e){var a="{",d=!1,k=/f$/,G=/\.([0-9])/,z=B.lang,C=e&&e.time||
r;e=e&&e.numberFormatter||J;for(var x=[];l;){var t=l.indexOf(a);if(-1===t)break;var m=l.slice(0,t);if(d){m=m.split(":");a=A(m.shift()||"",n);if(m.length&&"number"===typeof a)if(m=m.join(":"),k.test(m)){var h=parseInt((m.match(G)||["","-1"])[1],10);null!==a&&(a=e(a,h,z.decimalPoint,-1<m.indexOf(",")?z.thousandsSep:""))}else a=C.dateFormat(m,a);x.push(a)}else x.push(m);l=l.slice(t+1);a=(d=!d)?"}":"{"}x.push(l);return x.join("")},numberFormat:J}});I(f,"Core/Renderer/RendererUtilities.js",[f["Core/Utilities.js"]],
function(b){var f=b.clamp,v=b.pick,B=b.stableSort,r;(function(b){function r(b,q,l){var n=b,e=n.reducedLen||q,a=function(a,d){return(d.rank||0)-(a.rank||0)},d=function(a,d){return a.target-d.target},k,G=!0,z=[],C=0;for(k=b.length;k--;)C+=b[k].size;if(C>e){B(b,a);for(C=k=0;C<=e;)C+=b[k].size,k++;z=b.splice(k-1,b.length)}B(b,d);for(b=b.map(function(a){return{size:a.size,targets:[a.target],align:v(a.align,.5)}});G;){for(k=b.length;k--;)e=b[k],a=(Math.min.apply(0,e.targets)+Math.max.apply(0,e.targets))/
2,e.pos=f(a-e.size*e.align,0,q-e.size);k=b.length;for(G=!1;k--;)0<k&&b[k-1].pos+b[k-1].size>b[k].pos&&(b[k-1].size+=b[k].size,b[k-1].targets=b[k-1].targets.concat(b[k].targets),b[k-1].align=.5,b[k-1].pos+b[k-1].size>q&&(b[k-1].pos=q-b[k-1].size),b.splice(k,1),G=!0)}n.push.apply(n,z);k=0;b.some(function(a){var d=0;return(a.targets||[]).some(function(){n[k].pos=a.pos+d;if("undefined"!==typeof l&&Math.abs(n[k].pos-n[k].target)>l)return n.slice(0,k+1).forEach(function(a){return delete a.pos}),n.reducedLen=
(n.reducedLen||q)-.1*q,n.reducedLen>.1*q&&r(n,q,l),!0;d+=n[k].size;k++;return!1})});B(n,d);return n}b.distribute=r})(r||(r={}));return r});I(f,"Core/Renderer/SVG/SVGElement.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Renderer/HTML/AST.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(b,f,v,B,r){var J=b.animate,E=b.animObject,y=b.stop,q=B.deg2rad,l=B.doc,n=B.noop,e=B.svg,a=B.SVG_NS,d=B.win,k=r.addEvent,G=r.attr,z=r.createElement,C=r.css,x=r.defined,t=r.erase,
m=r.extend,h=r.fireEvent,u=r.isArray,c=r.isFunction,w=r.isNumber,g=r.isString,F=r.merge,p=r.objectEach,D=r.pick,H=r.pInt,L=r.syncTimeout,P=r.uniqueKey;b=function(){function b(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=a;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}b.prototype._defaultGetter=function(c){c=D(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&&
(c=parseFloat(c));return c};b.prototype._defaultSetter=function(c,a,g){g.setAttribute(a,c)};b.prototype.add=function(c){var a=this.renderer,g=this.element;c&&(this.parentGroup=c);this.parentInverted=c&&c.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&a.buildText(this);this.added=!0;if(!c||c.handleZ||this.zIndex)var h=this.zIndexSetter();h||(c?c.element:a.box).appendChild(g);if(this.onAdd)this.onAdd();return this};b.prototype.addClass=function(c,a){var g=a?"":this.attr("class")||
"";c=(c||"").split(/ /g).reduce(function(c,a){-1===g.indexOf(a)&&c.push(a);return c},g?[g]:[]).join(" ");c!==g&&this.attr("class",c);return this};b.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};b.prototype.align=function(c,a,h){var p={},d=this.renderer,e=d.alignedObjects,m,u,w;if(c){if(this.alignOptions=c,this.alignByTranslate=a,!h||g(h))this.alignTo=m=h||"renderer",t(e,this),e.push(this),h=void 0}else c=this.alignOptions,a=this.alignByTranslate,
m=this.alignTo;h=D(h,d[m],"scrollablePlotBox"===m?d.plotBox:void 0,d);m=c.align;var k=c.verticalAlign;d=(h.x||0)+(c.x||0);e=(h.y||0)+(c.y||0);"right"===m?u=1:"center"===m&&(u=2);u&&(d+=(h.width-(c.width||0))/u);p[a?"translateX":"x"]=Math.round(d);"bottom"===k?w=1:"middle"===k&&(w=2);w&&(e+=(h.height-(c.height||0))/w);p[a?"translateY":"y"]=Math.round(e);this[this.placed?"animate":"attr"](p);this.placed=!0;this.alignAttr=p;return this};b.prototype.alignSetter=function(c){var a={left:"start",center:"middle",
right:"end"};a[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",a[c]))};b.prototype.animate=function(c,a,g){var h=this,d=E(D(a,this.renderer.globalAnimation,!0));a=d.defer;D(l.hidden,l.msHidden,l.webkitHidden,!1)&&(d.duration=0);0!==d.duration?(g&&(d.complete=g),L(function(){h.element&&J(h,c,d)},a)):(this.attr(c,void 0,g||d.complete),p(c,function(c,a){d.step&&d.step.call(this,c,{prop:a,pos:1,elem:this})},this));return this};b.prototype.applyTextOutline=function(c){var g=this.element;
-1!==c.indexOf("contrast")&&(c=c.replace(/contrast/g,this.renderer.getContrast(g.style.fill)));var h=c.split(" ");c=h[h.length-1];if((h=h[0])&&"none"!==h&&B.svg){this.fakeTS=!0;this.ySetter=this.xSetter;h=h.replace(/(^[\d\.]+)(.*?)$/g,function(c,a,g){return 2*Number(a)+g});this.removeTextOutline();var p=l.createElementNS(a,"tspan");G(p,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":h,"stroke-linejoin":"round"});[].forEach.call(g.childNodes,function(c){var a=c.cloneNode(!0);a.removeAttribute&&
["fill","stroke","stroke-width","stroke"].forEach(function(c){return a.removeAttribute(c)});p.appendChild(a)});var d=l.createElementNS(a,"tspan");d.textContent="\u200b";["x","y"].forEach(function(c){var a=g.getAttribute(c);a&&d.setAttribute(c,a)});p.appendChild(d);g.insertBefore(p,g.firstChild)}};b.prototype.attr=function(c,a,g,h){var d=this.element,e=this.symbolCustomAttribs,m,u=this,w,k;if("string"===typeof c&&"undefined"!==typeof a){var D=c;c={};c[D]=a}"string"===typeof c?u=(this[c+"Getter"]||
this._defaultGetter).call(this,c,d):(p(c,function(a,g){w=!1;h||y(this,g);this.symbolName&&-1!==e.indexOf(g)&&(m||(this.symbolAttr(c),m=!0),w=!0);!this.rotation||"x"!==g&&"y"!==g||(this.doTransform=!0);w||(k=this[g+"Setter"]||this._defaultSetter,k.call(this,a,g,d),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(g)&&this.updateShadows(g,a,k))},this),this.afterSetters());g&&g.call(this);return u};b.prototype.clip=function(c){return this.attr("clip-path",c?"url("+
this.renderer.url+"#"+c.id+")":"none")};b.prototype.crisp=function(c,a){a=a||c.strokeWidth||0;var g=Math.round(a)%2/2;c.x=Math.floor(c.x||this.x||0)+g;c.y=Math.floor(c.y||this.y||0)+g;c.width=Math.floor((c.width||this.width||0)-2*g);c.height=Math.floor((c.height||this.height||0)-2*g);x(c.strokeWidth)&&(c.strokeWidth=a);return c};b.prototype.complexColor=function(c,a,g){var d=this.renderer,e,m,w,k,D,X,t,b,C,H,z=[],l;h(this.renderer,"complexColor",{args:arguments},function(){c.radialGradient?m="radialGradient":
c.linearGradient&&(m="linearGradient");if(m){w=c[m];D=d.gradients;X=c.stops;C=g.radialReference;u(w)&&(c[m]=w={x1:w[0],y1:w[1],x2:w[2],y2:w[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===m&&C&&!x(w.gradientUnits)&&(k=w,w=F(w,d.getRadialAttr(C,k),{gradientUnits:"userSpaceOnUse"}));p(w,function(c,a){"id"!==a&&z.push(a,c)});p(X,function(c){z.push(c)});z=z.join(",");if(D[z])H=D[z].attr("id");else{w.id=H=P();var h=D[z]=d.createElement(m).attr(w).add(d.defs);h.radAttr=k;h.stops=[];X.forEach(function(c){0===
c[1].indexOf("rgba")?(e=v.parse(c[1]),t=e.get("rgb"),b=e.get("a")):(t=c[1],b=1);c=d.createElement("stop").attr({offset:c[0],"stop-color":t,"stop-opacity":b}).add(h);h.stops.push(c)})}l="url("+d.url+"#"+H+")";g.setAttribute(a,l);g.gradient=z;c.toString=function(){return l}}})};b.prototype.css=function(c){var a=this.styles,g={},h=this.element,d=!a;c.color&&(c.fill=c.color);a&&p(c,function(c,h){a&&a[h]!==c&&(g[h]=c,d=!0)});if(d){a&&(c=m(a,g));if(null===c.width||"auto"===c.width)delete this.textWidth;
else if("text"===h.nodeName.toLowerCase()&&c.width)var u=this.textWidth=H(c.width);this.styles=c;u&&!e&&this.renderer.forExport&&delete c.width;var w=F(c);h.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(c){return w&&delete w[c]});C(h,w);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),c.textOutline&&this.applyTextOutline(c.textOutline))}return this};b.prototype.dashstyleSetter=function(c){var a=this["stroke-width"];"inherit"===a&&(a=
1);if(c=c&&c.toLowerCase()){var g=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=g.length;c--;)g[c]=""+H(g[c])*D(a,NaN);c=g.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};b.prototype.destroy=function(){var c=this,a=c.element||{},g=c.renderer,h=a.ownerSVGElement,d=g.isSVG&&
"SPAN"===a.nodeName&&c.parentGroup||void 0;a.onclick=a.onmouseout=a.onmouseover=a.onmousemove=a.point=null;y(c);if(c.clipPath&&h){var e=c.clipPath;[].forEach.call(h.querySelectorAll("[clip-path],[CLIP-PATH]"),function(c){-1<c.getAttribute("clip-path").indexOf(e.element.id)&&c.removeAttribute("clip-path")});c.clipPath=e.destroy()}if(c.stops){for(h=0;h<c.stops.length;h++)c.stops[h].destroy();c.stops.length=0;c.stops=void 0}c.safeRemoveChild(a);for(g.styledMode||c.destroyShadows();d&&d.div&&0===d.div.childNodes.length;)a=
d.parentGroup,c.safeRemoveChild(d.div),delete d.div,d=a;c.alignTo&&t(g.alignedObjects,c);p(c,function(a,g){c[g]&&c[g].parentGroup===c&&c[g].destroy&&c[g].destroy();delete c[g]})};b.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(c){this.safeRemoveChild(c)},this);this.shadows=void 0};b.prototype.destroyTextPath=function(c,a){var g=c.getElementsByTagName("text")[0];if(g){if(g.removeAttribute("dx"),g.removeAttribute("dy"),a.element.setAttribute("id",""),this.textPathWrapper&&
g.getElementsByTagName("textPath").length){for(c=this.textPathWrapper.element.childNodes;c.length;)g.appendChild(c[0]);g.removeChild(this.textPathWrapper.element)}}else if(c.getAttribute("dx")||c.getAttribute("dy"))c.removeAttribute("dx"),c.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};b.prototype.dSetter=function(c,a,g){u(c)&&("string"===typeof c[0]&&(c=this.renderer.pathToSegments(c)),this.pathArray=c,c=c.reduce(function(c,a,g){return a&&a.join?
(g?c+" ":"")+a.join(" "):(a||"").toString()},""));/(NaN| {2}|^$)/.test(c)&&(c="M 0 0");this[a]!==c&&(g.setAttribute(a,c),this[a]=c)};b.prototype.fadeOut=function(c){var a=this;a.animate({opacity:0},{duration:D(c,150),complete:function(){a.attr({y:-9999}).hide()}})};b.prototype.fillSetter=function(c,a,g){"string"===typeof c?g.setAttribute(a,c):c&&this.complexColor(c,a,g)};b.prototype.getBBox=function(a,g){var h=this.renderer,d=this.element,p=this.styles,e=this.textStr,u=h.cache,w=h.cacheKeys,k=d.namespaceURI===
this.SVG_NS;g=D(g,this.rotation,0);var F=h.styledMode?d&&b.prototype.getStyle.call(d,"font-size"):p&&p.fontSize,t;if(x(e)){var z=e.toString();-1===z.indexOf("<")&&(z=z.replace(/[0-9]/g,"0"));z+=["",g,F,this.textWidth,p&&p.textOverflow,p&&p.fontWeight].join()}z&&!a&&(t=u[z]);if(!t){if(k||h.forExport){try{var H=this.fakeTS&&function(c){var a=d.querySelector(".highcharts-text-outline");a&&C(a,{display:c})};c(H)&&H("none");t=d.getBBox?m({},d.getBBox()):{width:d.offsetWidth,height:d.offsetHeight};c(H)&&
H("")}catch(V){""}if(!t||0>t.width)t={width:0,height:0}}else t=this.htmlGetBBox();h.isSVG&&(a=t.width,h=t.height,k&&(t.height=h={"11px,17":14,"13px,20":16}[(F||"")+","+Math.round(h)]||h),g&&(k=g*q,t.width=Math.abs(h*Math.sin(k))+Math.abs(a*Math.cos(k)),t.height=Math.abs(h*Math.cos(k))+Math.abs(a*Math.sin(k))));if(z&&(""===e||0<t.height)){for(;250<w.length;)delete u[w.shift()];u[z]||w.push(z);u[z]=t}}return t};b.prototype.getStyle=function(c){return d.getComputedStyle(this.element||this,"").getPropertyValue(c)};
b.prototype.hasClass=function(c){return-1!==(""+this.attr("class")).split(" ").indexOf(c)};b.prototype.hide=function(c){c?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};b.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};b.prototype.init=function(c,a){this.element="span"===a?z(a):l.createElementNS(this.SVG_NS,a);this.renderer=c;h(this,"afterInit")};b.prototype.invert=function(c){this.inverted=c;this.updateTransform();return this};b.prototype.on=function(c,a){var g=
this.onEvents;if(g[c])g[c]();g[c]=k(this.element,c,a);return this};b.prototype.opacitySetter=function(c,a,g){this.opacity=c=Number(Number(c).toFixed(3));g.setAttribute(a,c)};b.prototype.removeClass=function(c){return this.attr("class",(""+this.attr("class")).replace(g(c)?new RegExp("(^| )"+c+"( |$)"):c," ").replace(/ +/g," ").trim())};b.prototype.removeTextOutline=function(){var c=this.element.querySelector("tspan.highcharts-text-outline");c&&this.safeRemoveChild(c)};b.prototype.safeRemoveChild=function(c){var a=
c.parentNode;a&&a.removeChild(c)};b.prototype.setRadialReference=function(c){var a=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=c;a&&a.radAttr&&a.animate(this.renderer.getRadialAttr(c,a.radAttr));return this};b.prototype.setTextPath=function(c,a){var g=this.element,h=this.text?this.text.element:g,e={textAnchor:"text-anchor"},m=!1,u=this.textPathWrapper,k=!u;a=F(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},a);var D=f.filterUserAttributes(a.attributes);
if(c&&a&&a.enabled){u&&null===u.element.parentNode?(k=!0,u=u.destroy()):u&&this.removeTextOutline.call(u.parentGroup);this.options&&this.options.padding&&(D.dx=-this.options.padding);u||(this.textPathWrapper=u=this.renderer.createElement("textPath"),m=!0);var t=u.element;(a=c.element.getAttribute("id"))||c.element.setAttribute("id",a=P());if(k)for(h.setAttribute("y",0),w(D.dx)&&h.setAttribute("x",-D.dx),c=[].slice.call(h.childNodes),k=0;k<c.length;k++){var b=c[k];b.nodeType!==d.Node.TEXT_NODE&&"tspan"!==
b.nodeName||t.appendChild(b)}m&&u&&u.add({element:h});t.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+a);x(D.dy)&&(t.parentNode.setAttribute("dy",D.dy),delete D.dy);x(D.dx)&&(t.parentNode.setAttribute("dx",D.dx),delete D.dx);p(D,function(c,a){t.setAttribute(e[a]||a,c)});g.removeAttribute("transform");this.removeTextOutline.call(u);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=n}else u&&(delete this.updateTransform,
delete this.applyTextOutline,this.destroyTextPath(g,c),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};b.prototype.shadow=function(c,a,g){var h=[],d=this.element,e=this.oldShadowOptions,u={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},w=!1,k;!0===c?k=u:"object"===typeof c&&(k=m(u,c));k&&(k&&e&&p(k,function(c,a){c!==e[a]&&(w=!0)}),w&&this.destroyShadows(),this.oldShadowOptions=
k);if(!k)this.destroyShadows();else if(!this.shadows){var D=k.opacity/k.width;var t=this.parentInverted?"translate("+k.offsetY+", "+k.offsetX+")":"translate("+k.offsetX+", "+k.offsetY+")";for(u=1;u<=k.width;u++){var F=d.cloneNode(!1);var b=2*k.width+1-2*u;G(F,{stroke:c.color||"#000000","stroke-opacity":D*u,"stroke-width":b,transform:t,fill:"none"});F.setAttribute("class",(F.getAttribute("class")||"")+" highcharts-shadow");g&&(G(F,"height",Math.max(G(F,"height")-b,0)),F.cutHeight=b);a?a.element.appendChild(F):
d.parentNode&&d.parentNode.insertBefore(F,d);h.push(F)}this.shadows=h}return this};b.prototype.show=function(c){return this.attr({visibility:c?"inherit":"visible"})};b.prototype.strokeSetter=function(c,a,g){this[a]=c;this.stroke&&this["stroke-width"]?(b.prototype.fillSetter.call(this,this.stroke,"stroke",g),g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===a&&0===c&&this.hasStroke?(g.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&
(g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};b.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var c=this.getStyle("stroke-width"),g=0;if(c.indexOf("px")===c.length-2)g=H(c);else if(""!==c){var h=l.createElementNS(a,"rect");G(h,{width:c,"stroke-width":0});this.element.parentNode.appendChild(h);g=h.getBBox().width;h.parentNode.removeChild(h)}return g};b.prototype.symbolAttr=function(c){var a=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(g){a[g]=
D(c[g],a[g])});a.attr({d:a.renderer.symbols[a.symbolName](a.x,a.y,a.width,a.height,a)})};b.prototype.textSetter=function(c){c!==this.textStr&&(delete this.textPxLength,this.textStr=c,this.added&&this.renderer.buildText(this))};b.prototype.titleSetter=function(c){var a=this.element,g=a.getElementsByTagName("title")[0]||l.createElementNS(this.SVG_NS,"title");a.insertBefore?a.insertBefore(g,a.firstChild):a.appendChild(g);g.textContent=String(D(c,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,
">")};b.prototype.toFront=function(){var c=this.element;c.parentNode.appendChild(c);return this};b.prototype.translate=function(c,a){return this.attr({translateX:c,translateY:a})};b.prototype.updateShadows=function(c,a,g){var h=this.shadows;if(h)for(var d=h.length;d--;)g.call(h[d],"height"===c?Math.max(a-(h[d].cutHeight||0),0):"d"===c?this.d:a,c,h[d])};b.prototype.updateTransform=function(){var c=this.scaleX,a=this.scaleY,g=this.inverted,h=this.rotation,d=this.matrix,p=this.element,e=this.translateX||
0,u=this.translateY||0;g&&(e+=this.width,u+=this.height);e=["translate("+e+","+u+")"];x(d)&&e.push("matrix("+d.join(",")+")");g?e.push("rotate(90) scale(-1,1)"):h&&e.push("rotate("+h+" "+D(this.rotationOriginX,p.getAttribute("x"),0)+" "+D(this.rotationOriginY,p.getAttribute("y")||0)+")");(x(c)||x(a))&&e.push("scale("+D(c,1)+" "+D(a,1)+")");e.length&&p.setAttribute("transform",e.join(" "))};b.prototype.visibilitySetter=function(c,a,g){"inherit"===c?g.removeAttribute(a):this[a]!==c&&g.setAttribute(a,
c);this[a]=c};b.prototype.xGetter=function(c){"circle"===this.element.nodeName&&("x"===c?c="cx":"y"===c&&(c="cy"));return this._defaultGetter(c)};b.prototype.zIndexSetter=function(c,a){var g=this.renderer,h=this.parentGroup,d=(h||g).element||g.box,p=this.element;g=d===g.box;var e=!1;var u=this.added;var m;x(c)?(p.setAttribute("data-z-index",c),c=+c,this[a]===c&&(u=!1)):x(this[a])&&p.removeAttribute("data-z-index");this[a]=c;if(u){(c=this.zIndex)&&h&&(h.handleZ=!0);a=d.childNodes;for(m=a.length-1;0<=
m&&!e;m--){h=a[m];u=h.getAttribute("data-z-index");var w=!x(u);if(h!==p)if(0>c&&w&&!g&&!m)d.insertBefore(p,a[m]),e=!0;else if(H(u)<=c||w&&(!x(c)||0<=c))d.insertBefore(p,a[m+1]||null),e=!0}e||(d.insertBefore(p,a[g?3:0]||null),e=!0)}return e};return b}();b.prototype["stroke-widthSetter"]=b.prototype.strokeSetter;b.prototype.yGetter=b.prototype.xGetter;b.prototype.matrixSetter=b.prototype.rotationOriginXSetter=b.prototype.rotationOriginYSetter=b.prototype.rotationSetter=b.prototype.scaleXSetter=b.prototype.scaleYSetter=
b.prototype.translateXSetter=b.prototype.translateYSetter=b.prototype.verticalAlignSetter=function(c,a){this[a]=c;this.doTransform=!0};"";return b});I(f,"Core/Renderer/RendererRegistry.js",[f["Core/Globals.js"]],function(b){var f;(function(f){f.rendererTypes={};var J;f.getRendererType=function(b){void 0===b&&(b=J);return f.rendererTypes[b]||f.rendererTypes[J]};f.registerRendererType=function(r,A,E){f.rendererTypes[r]=A;if(!J||E)J=r,b.Renderer=A}})(f||(f={}));return f});I(f,"Core/Renderer/SVG/SVGLabel.js",
[f["Core/Renderer/SVG/SVGElement.js"],f["Core/Utilities.js"]],function(b,f){var J=this&&this.__extends||function(){var b=function(l,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return b(l,e)};return function(l,e){function a(){this.constructor=l}b(l,e);l.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),B=f.defined,r=f.extend,A=f.isNumber,E=f.merge,y=f.pick,q=f.removeEvent;
return function(l){function n(e,a,d,k,b,z,C,x,t,m){var h=l.call(this)||this;h.paddingLeftSetter=h.paddingSetter;h.paddingRightSetter=h.paddingSetter;h.init(e,"g");h.textStr=a;h.x=d;h.y=k;h.anchorX=z;h.anchorY=C;h.baseline=t;h.className=m;h.addClass("button"===m?"highcharts-no-tooltip":"highcharts-label");m&&h.addClass("highcharts-"+m);h.text=e.text(void 0,0,0,x).attr({zIndex:1});var u;"string"===typeof b&&((u=/^url\((.*?)\)$/.test(b))||h.renderer.symbols[b])&&(h.symbolKey=b);h.bBox=n.emptyBBox;h.padding=
3;h.baselineOffset=0;h.needsBox=e.styledMode||u;h.deferredAttr={};h.alignFactor=0;return h}J(n,l);n.prototype.alignSetter=function(e){e={left:0,center:.5,right:1}[e];e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&A(this.xSetting)&&this.attr({x:this.xSetting}))};n.prototype.anchorXSetter=function(e,a){this.anchorX=e;this.boxAttr(a,Math.round(e)-this.getCrispAdjust()-this.xSetting)};n.prototype.anchorYSetter=function(e,a){this.anchorY=e;this.boxAttr(a,e-this.ySetting)};n.prototype.boxAttr=function(e,
a){this.box?this.box.attr(e,a):this.deferredAttr[e]=a};n.prototype.css=function(e){if(e){var a={};e=E(e);n.textProps.forEach(function(d){"undefined"!==typeof e[d]&&(a[d]=e[d],delete e[d])});this.text.css(a);var d="width"in a;"fontSize"in a||"fontWeight"in a?this.updateTextPadding():d&&this.updateBoxSize()}return b.prototype.css.call(this,e)};n.prototype.destroy=function(){q(this.element,"mouseenter");q(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());
b.prototype.destroy.call(this)};n.prototype.fillSetter=function(e,a){e&&(this.needsBox=!0);this.fill=e;this.boxAttr(a,e)};n.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var e=this.padding,a=y(this.paddingLeft,e);return{width:this.width,height:this.height,x:this.bBox.x-a,y:this.bBox.y-e}};n.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};n.prototype.heightSetter=function(e){this.heightSetting=e};n.prototype.onAdd=function(){var e=this.textStr;this.text.add(this);this.attr({text:B(e)?e:"",x:this.x,y:this.y});this.box&&B(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};n.prototype.paddingSetter=function(e,a){A(e)?e!==this[a]&&(this[a]=e,this.updateTextPadding()):this[a]=void 0};n.prototype.rSetter=function(e,a){this.boxAttr(a,e)};n.prototype.shadow=function(e){e&&!this.renderer.styledMode&&(this.updateBoxSize(),
this.box&&this.box.shadow(e));return this};n.prototype.strokeSetter=function(e,a){this.stroke=e;this.boxAttr(a,e)};n.prototype["stroke-widthSetter"]=function(e,a){e&&(this.needsBox=!0);this["stroke-width"]=e;this.boxAttr(a,e)};n.prototype["text-alignSetter"]=function(e){this.textAlign=e};n.prototype.textSetter=function(e){"undefined"!==typeof e&&this.text.attr({text:e});this.updateTextPadding()};n.prototype.updateBoxSize=function(){var e=this.text.element.style,a={},d=this.padding,k=this.bBox=A(this.widthSetting)&&
A(this.heightSetting)&&!this.textAlign||!B(this.text.textStr)?n.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||k.height||0)+2*d;e=this.renderer.fontMetrics(e&&e.fontSize,this.text);this.baselineOffset=d+Math.min((this.text.firstLineMetrics||e).b,k.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-e.h)/2);this.needsBox&&(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(),a.x=d,a.y=(this.baseline?-this.baselineOffset:0)+d,a.width=Math.round(this.width),a.height=Math.round(this.height),this.box.attr(r(a,this.deferredAttr)),this.deferredAttr={})};n.prototype.updateTextPadding=function(){var e=this.text;this.updateBoxSize();var a=this.baseline?0:this.baselineOffset,d=y(this.paddingLeft,this.padding);B(this.widthSetting)&&this.bBox&&
("center"===this.textAlign||"right"===this.textAlign)&&(d+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(d!==e.x||a!==e.y)e.attr("x",d),e.hasBoxWidthChanged&&(this.bBox=e.getBBox(!0)),"undefined"!==typeof a&&e.attr("y",a);e.x=d;e.y=a};n.prototype.widthSetter=function(e){this.widthSetting=A(e)?e:void 0};n.prototype.getPaddedWidth=function(){var e=this.padding,a=y(this.paddingLeft,e);e=y(this.paddingRight,e);return(this.widthSetting||this.bBox.width||0)+a+e};n.prototype.xSetter=
function(e){this.x=e;this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(e);this.attr("translateX",this.xSetting)};n.prototype.ySetter=function(e){this.ySetting=this.y=Math.round(e);this.attr("translateY",this.ySetting)};n.emptyBBox={width:0,height:0,x:0,y:0};n.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return n}(b)});I(f,"Core/Renderer/SVG/Symbols.js",
[f["Core/Utilities.js"]],function(b){function f(b,f,l,n,e){var a=[];if(e){var d=e.start||0,k=E(e.r,l);l=E(e.r,n||l);var G=(e.end||0)-.001;n=e.innerR;var z=E(e.open,.001>Math.abs((e.end||0)-d-2*Math.PI)),C=Math.cos(d),x=Math.sin(d),t=Math.cos(G),m=Math.sin(G);d=E(e.longArc,.001>G-d-Math.PI?0:1);a.push(["M",b+k*C,f+l*x],["A",k,l,0,d,E(e.clockwise,1),b+k*t,f+l*m]);r(n)&&a.push(z?["M",b+n*t,f+n*m]:["L",b+n*t,f+n*m],["A",n,n,0,d,r(e.clockwise)?1-e.clockwise:0,b+n*C,f+n*x]);z||a.push(["Z"])}return a}function v(b,
f,l,n,e){return e&&e.r?B(b,f,l,n,e):[["M",b,f],["L",b+l,f],["L",b+l,f+n],["L",b,f+n],["Z"]]}function B(b,f,l,n,e){e=e&&e.r||0;return[["M",b+e,f],["L",b+l-e,f],["C",b+l,f,b+l,f,b+l,f+e],["L",b+l,f+n-e],["C",b+l,f+n,b+l,f+n,b+l-e,f+n],["L",b+e,f+n],["C",b,f+n,b,f+n,b,f+n-e],["L",b,f+e],["C",b,f,b,f,b+e,f]]}var r=b.defined,A=b.isNumber,E=b.pick;return{arc:f,callout:function(b,f,l,n,e){var a=Math.min(e&&e.r||0,l,n),d=a+6,k=e&&e.anchorX;e=e&&e.anchorY||0;var G=B(b,f,l,n,{r:a});if(!A(k))return G;b+k>=l?
e>f+d&&e<f+n-d?G.splice(3,1,["L",b+l,e-6],["L",b+l+6,e],["L",b+l,e+6],["L",b+l,f+n-a]):G.splice(3,1,["L",b+l,n/2],["L",k,e],["L",b+l,n/2],["L",b+l,f+n-a]):0>=b+k?e>f+d&&e<f+n-d?G.splice(7,1,["L",b,e+6],["L",b-6,e],["L",b,e-6],["L",b,f+a]):G.splice(7,1,["L",b,n/2],["L",k,e],["L",b,n/2],["L",b,f+a]):e&&e>n&&k>b+d&&k<b+l-d?G.splice(5,1,["L",k+6,f+n],["L",k,f+n+6],["L",k-6,f+n],["L",b+a,f+n]):e&&0>e&&k>b+d&&k<b+l-d&&G.splice(1,1,["L",k-6,f],["L",k,f-6],["L",k+6,f],["L",l-a,f]);return G},circle:function(b,
q,l,n){return f(b+l/2,q+n/2,l/2,n/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(b,f,l,n){return[["M",b+l/2,f],["L",b+l,f+n/2],["L",b+l/2,f+n],["L",b,f+n/2],["Z"]]},rect:v,roundedRect:B,square:v,triangle:function(b,f,l,n){return[["M",b+l/2,f],["L",b+l,f+n],["L",b,f+n],["Z"]]},"triangle-down":function(b,f,l,n){return[["M",b,f],["L",b+l,f],["L",b+l/2,f+n],["Z"]]}}});I(f,"Core/Renderer/SVG/TextBuilder.js",[f["Core/Renderer/HTML/AST.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(b,
f,v){var J=f.doc,r=f.SVG_NS,A=f.win,E=v.attr,y=v.extend,q=v.isString,l=v.objectEach,n=v.pick;return function(){function e(a){var d=a.styles;this.renderer=a.renderer;this.svgElement=a;this.width=a.textWidth;this.textLineHeight=d&&d.lineHeight;this.textOutline=d&&d.textOutline;this.ellipsis=!(!d||"ellipsis"!==d.textOverflow);this.noWrap=!(!d||"nowrap"!==d.whiteSpace);this.fontSize=d&&d.fontSize}e.prototype.buildSVG=function(){var a=this.svgElement,d=a.element,e=a.renderer,l=n(a.textStr,"").toString(),
z=-1!==l.indexOf("<"),C=d.childNodes;e=this.width&&!a.added&&e.box;var x=/<br.*?>/g,t=[l,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(t!==a.textCache){a.textCache=t;delete a.actualWidth;for(t=C.length;t--;)d.removeChild(C[t]);z||this.ellipsis||this.width||-1!==l.indexOf(" ")&&(!this.noWrap||x.test(l))?""!==l&&(e&&e.appendChild(d),l=new b(l),this.modifyTree(l.nodes),l.addToDOM(a.element),this.modifyDOM(),this.ellipsis&&-1!==(d.textContent||"").indexOf("\u2026")&&
a.attr("title",this.unescapeEntities(a.textStr||"",["&lt;","&gt;"])),e&&e.removeChild(d)):d.appendChild(J.createTextNode(this.unescapeEntities(l)));q(this.textOutline)&&a.applyTextOutline&&a.applyTextOutline(this.textOutline)}};e.prototype.modifyDOM=function(){var a=this,d=this.svgElement,e=E(d.element,"x");d.firstLineMetrics=void 0;for(var b;b=d.element.firstChild;)if(/^[\s\u200B]*$/.test(b.textContent||" "))d.element.removeChild(b);else break;[].forEach.call(d.element.querySelectorAll("tspan.highcharts-br"),
function(b,m){b.nextSibling&&b.previousSibling&&(0===m&&1===b.previousSibling.nodeType&&(d.firstLineMetrics=d.renderer.fontMetrics(void 0,b.previousSibling)),E(b,{dy:a.getLineHeight(b.nextSibling),x:e}))});var z=this.width||0;if(z){var C=function(b,m){var h=b.textContent||"",u=h.replace(/([^\^])-/g,"$1- ").split(" "),c=!a.noWrap&&(1<u.length||1<d.element.childNodes.length),w=a.getLineHeight(m),g=0,k=d.actualWidth;if(a.ellipsis)h&&a.truncate(b,h,void 0,0,Math.max(0,z-parseInt(a.fontSize||12,10)),function(c,
a){return c.substring(0,a)+"\u2026"});else if(c){h=[];for(c=[];m.firstChild&&m.firstChild!==b;)c.push(m.firstChild),m.removeChild(m.firstChild);for(;u.length;)u.length&&!a.noWrap&&0<g&&(h.push(b.textContent||""),b.textContent=u.join(" ").replace(/- /g,"-")),a.truncate(b,void 0,u,0===g?k||0:0,z,function(c,a){return u.slice(0,a).join(" ").replace(/- /g,"-")}),k=d.actualWidth,g++;c.forEach(function(c){m.insertBefore(c,b)});h.forEach(function(c){m.insertBefore(J.createTextNode(c),b);c=J.createElementNS(r,
"tspan");c.textContent="\u200b";E(c,{dy:w,x:e});m.insertBefore(c,b)})}},x=function(a){[].slice.call(a.childNodes).forEach(function(e){e.nodeType===A.Node.TEXT_NODE?C(e,a):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(d.actualWidth=0),x(e))})};x(d.element)}};e.prototype.getLineHeight=function(a){var d;a=a.nodeType===A.Node.TEXT_NODE?a.parentElement:a;this.renderer.styledMode||(d=a&&/(px|em)$/.test(a.style.fontSize)?a.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?
parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(d,a||this.svgElement.element).h};e.prototype.modifyTree=function(a){var d=this,e=function(b,k){var z=b.attributes;z=void 0===z?{}:z;var x=b.children,t=b.style;t=void 0===t?{}:t;var m=b.tagName,h=d.renderer.styledMode;if("b"===m||"strong"===m)h?z["class"]="highcharts-strong":t.fontWeight="bold";else if("i"===m||"em"===m)h?z["class"]="highcharts-emphasized":t.fontStyle="italic";t&&t.color&&(t.fill=t.color);"br"===m?(z["class"]="highcharts-br",
b.textContent="\u200b",(k=a[k+1])&&k.textContent&&(k.textContent=k.textContent.replace(/^ +/gm,""))):"a"===m&&x&&x.some(function(a){return"#text"===a.tagName})&&(b.children=[{children:x,tagName:"tspan"}]);"#text"!==m&&"a"!==m&&(b.tagName="tspan");y(b,{attributes:z,style:t});x&&x.filter(function(a){return"#text"!==a.tagName}).forEach(e)};a.forEach(e)};e.prototype.truncate=function(a,d,e,b,z,l){var k=this.svgElement,t=k.renderer,m=k.rotation,h=[],u=e?1:0,c=(d||e||"").length,w=c,g,F=function(c,g){g=
g||c;var p=a.parentNode;if(p&&"undefined"===typeof h[g])if(p.getSubStringLength)try{h[g]=b+p.getSubStringLength(0,e?g+1:g)}catch(P){""}else t.getSpanWidth&&(a.textContent=l(d||e,c),h[g]=b+t.getSpanWidth(k,a));return h[g]};k.rotation=0;var p=F(a.textContent.length);if(b+p>z){for(;u<=c;)w=Math.ceil((u+c)/2),e&&(g=l(e,w)),p=F(w,g&&g.length-1),u===c?u=c+1:p>z?c=w-1:u=w;0===c?a.textContent="":d&&c===d.length-1||(a.textContent=g||l(d||e,w))}e&&e.splice(0,w);k.actualWidth=p;k.rotation=m};e.prototype.unescapeEntities=
function(a,d){l(this.renderer.escapes,function(e,b){d&&-1!==d.indexOf(e)||(a=a.toString().replace(new RegExp(e,"g"),b))});return a};return e}()});I(f,"Core/Renderer/SVG/SVGRenderer.js",[f["Core/Renderer/HTML/AST.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Renderer/RendererRegistry.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Renderer/SVG/SVGLabel.js"],f["Core/Renderer/SVG/Symbols.js"],f["Core/Renderer/SVG/TextBuilder.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E,y,q){var l=
v.charts,n=v.deg2rad,e=v.doc,a=v.isFirefox,d=v.isMS,k=v.isWebKit,G=v.noop,z=v.SVG_NS,C=v.symbolSizes,x=v.win,t=q.addEvent,m=q.attr,h=q.createElement,u=q.css,c=q.defined,w=q.destroyObjectProperties,g=q.extend,F=q.isArray,p=q.isNumber,D=q.isObject,H=q.isString,L=q.merge,P=q.pick,K=q.pInt,J=q.uniqueKey,W;v=function(){function z(c,a,g,h,d,p,e){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(c,a,g,h,d,p,e)}z.prototype.init=function(c,g,h,d,p,b,w){var k=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),D=k.element;w||k.css(this.getStyle(d));c.appendChild(D);m(c,"dir","ltr");-1===c.innerHTML.indexOf("xmlns")&&m(D,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=D;this.boxWrapper=k;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(e.createTextNode("Created with Highcharts 10.0.0"));
this.defs=this.createElement("defs").add();this.allowHTML=b;this.forExport=p;this.styledMode=w;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,h,!1);var F;a&&c.getBoundingClientRect&&(g=function(){u(c,{left:0,top:0});F=c.getBoundingClientRect();u(c,{left:Math.ceil(F.left)-F.left+"px",top:Math.ceil(F.top)-F.top+"px"})},g(),this.unSubPixelFix=t(x,"resize",g))};z.prototype.definition=function(c){return(new b([c])).addToDOM(this.defs.element)};z.prototype.getReferenceURL=
function(){if((a||k)&&e.getElementsByTagName("base").length){if(!c(W)){var g=J();g=(new b([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:g},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+g+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(e.body);u(g,{position:"fixed",top:0,left:0,zIndex:9E5});var h=e.elementFromPoint(6,6);W="hitme"===(h&&h.id);
e.body.removeChild(g)}if(W)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};z.prototype.getStyle=function(c){return this.style=g({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};z.prototype.setStyle=function(c){this.boxWrapper.css(this.getStyle(c))};z.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};z.prototype.destroy=function(){var c=this.defs;this.box=
null;this.boxWrapper=this.boxWrapper.destroy();w(this.gradients||{});this.gradients=null;c&&(this.defs=c.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};z.prototype.createElement=function(c){var a=new this.Element;a.init(this,c);return a};z.prototype.getRadialAttr=function(c,a){return{cx:c[0]-c[2]/2+(a.cx||0)*c[2],cy:c[1]-c[2]/2+(a.cy||0)*c[2],r:(a.r||0)*c[2]}};z.prototype.buildText=function(c){(new y(c)).buildSVG()};z.prototype.getContrast=function(c){c=f.parse(c).rgba;
c[0]*=1;c[1]*=1.2;c[2]*=.5;return 459<c[0]+c[1]+c[2]?"#000000":"#FFFFFF"};z.prototype.button=function(c,a,h,p,e,u,m,w,k,F){var z=this.label(c,a,h,k,void 0,void 0,F,void 0,"button"),x=this.styledMode,l=0,H=e?L(e):{},C=L({color:"#333333",cursor:"pointer",fontWeight:"normal"},H.style);delete H.style;H=b.filterUserAttributes(H);z.attr(L({padding:8,r:2},H));if(!x){H=L({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},H);u=L(H,{fill:"#e6e6e6"},b.filterUserAttributes(u||{}));var f=u.style;delete u.style;
m=L(H,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},b.filterUserAttributes(m||{}));var n=m.style;delete m.style;w=L(H,{style:{color:"#cccccc"}},b.filterUserAttributes(w||{}));var X=w.style;delete w.style}t(z.element,d?"mouseover":"mouseenter",function(){3!==l&&z.setState(1)});t(z.element,d?"mouseout":"mouseleave",function(){3!==l&&z.setState(l)});z.setState=function(c){1!==c&&(z.state=l=c);z.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+
["normal","hover","pressed","disabled"][c||0]);x||(z.attr([H,u,m,w][c||0]),c=[C,f,n,X][c||0],D(c)&&z.css(c))};x||z.attr(H).css(g({cursor:"default"},C));return z.on("touchstart",function(c){return c.stopPropagation()}).on("click",function(c){3!==l&&p.call(z,c)})};z.prototype.crispLine=function(a,g,h){void 0===h&&(h="round");var d=a[0],p=a[1];c(d[1])&&d[1]===p[1]&&(d[1]=p[1]=Math[h](d[1])-g%2/2);c(d[2])&&d[2]===p[2]&&(d[2]=p[2]=Math[h](d[2])+g%2/2);return a};z.prototype.path=function(c){var a=this.styledMode?
{}:{fill:"none"};F(c)?a.d=c:D(c)&&g(a,c);return this.createElement("path").attr(a)};z.prototype.circle=function(c,a,g){c=D(c)?c:"undefined"===typeof c?{}:{x:c,y:a,r:g};a=this.createElement("circle");a.xSetter=a.ySetter=function(c,a,g){g.setAttribute("c"+a,c)};return a.attr(c)};z.prototype.arc=function(c,a,g,h,d,p){D(c)?(h=c,a=h.y,g=h.r,c=h.x):h={innerR:h,start:d,end:p};c=this.symbol("arc",c,a,g,g,h);c.r=g;return c};z.prototype.rect=function(c,a,g,h,d,p){d=D(c)?c.r:d;var e=this.createElement("rect");
c=D(c)?c:"undefined"===typeof c?{}:{x:c,y:a,width:Math.max(g,0),height:Math.max(h,0)};this.styledMode||("undefined"!==typeof p&&(c["stroke-width"]=p,c=e.crisp(c)),c.fill="none");d&&(c.r=d);e.rSetter=function(c,a,g){e.r=c;m(g,{rx:c,ry:c})};e.rGetter=function(){return e.r||0};return e.attr(c)};z.prototype.setSize=function(c,a,g){this.width=c;this.height=a;this.boxWrapper.animate({width:c,height:a},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:P(g,
!0)?void 0:0});this.alignElements()};z.prototype.g=function(c){var a=this.createElement("g");return c?a.attr({"class":"highcharts-"+c}):a};z.prototype.image=function(c,a,g,h,d,e){var u={preserveAspectRatio:"none"},m=function(c,a){c.setAttributeNS?c.setAttributeNS("http://www.w3.org/1999/xlink","href",a):c.setAttribute("hc-svg-href",a)};p(a)&&(u.x=a);p(g)&&(u.y=g);p(h)&&(u.width=h);p(d)&&(u.height=d);var b=this.createElement("image").attr(u);a=function(a){m(b.element,c);e.call(b,a)};e?(m(b.element,
"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),g=new x.Image,t(g,"load",a),g.src=c,g.complete&&a({})):m(b.element,c);return b};z.prototype.symbol=function(a,d,p,m,b,w){var k=this,D=/^url\((.*?)\)$/,F=D.test(a),t=!F&&(this.symbols[a]?a:"circle"),z=t&&this.symbols[t],x;if(z){"number"===typeof d&&(x=z.call(this.symbols,Math.round(d||0),Math.round(p||0),m||0,b||0,w));var H=this.path(x);k.styledMode||H.attr("fill","none");g(H,{symbolName:t||void 0,x:d,y:p,width:m,height:b});
w&&g(H,w)}else if(F){var f=a.match(D)[1];var n=H=this.image(f);n.imgwidth=P(C[f]&&C[f].width,w&&w.width);n.imgheight=P(C[f]&&C[f].height,w&&w.height);var X=function(c){return c.attr({width:c.width,height:c.height})};["width","height"].forEach(function(a){n[a+"Setter"]=function(a,g){var h=this["img"+g];this[g]=a;c(h)&&(w&&"within"===w.backgroundSize&&this.width&&this.height&&(h=Math.round(h*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(g,h),
this.alignByTranslate||(a=((this[g]||0)-h)/2,this.attr("width"===g?{translateX:a}:{translateY:a})))}});c(d)&&n.attr({x:d,y:p});n.isImg=!0;c(n.imgwidth)&&c(n.imgheight)?X(n):(n.attr({width:0,height:0}),h("img",{onload:function(){var c=l[k.chartIndex];0===this.width&&(u(this,{position:"absolute",top:"-999em"}),e.body.appendChild(this));C[f]={width:this.width,height:this.height};n.imgwidth=this.width;n.imgheight=this.height;n.element&&X(n);this.parentNode&&this.parentNode.removeChild(this);k.imgCount--;
if(!k.imgCount&&c&&!c.hasLoaded)c.onload()},src:f}),this.imgCount++)}return H};z.prototype.clipRect=function(c,a,g,h){var d=J()+"-",p=this.createElement("clipPath").attr({id:d}).add(this.defs);c=this.rect(c,a,g,h,0).add(p);c.id=d;c.clipPath=p;c.count=0;return c};z.prototype.text=function(a,g,h,d){var p={};if(d&&(this.allowHTML||!this.forExport))return this.html(a,g,h);p.x=Math.round(g||0);h&&(p.y=Math.round(h));c(a)&&(p.text=a);a=this.createElement("text").attr(p);if(!d||this.forExport&&!this.allowHTML)a.xSetter=
function(c,a,g){for(var h=g.getElementsByTagName("tspan"),d=g.getAttribute(a),p=0,e;p<h.length;p++)e=h[p],e.getAttribute(a)===d&&e.setAttribute(a,c);g.setAttribute(a,c)};return a};z.prototype.fontMetrics=function(c,a){c=!this.styledMode&&/px/.test(c)||!x.getComputedStyle?c||a&&a.style&&a.style.fontSize||this.style&&this.style.fontSize:a&&r.prototype.getStyle.call(a,"font-size");c=/px/.test(c)?K(c):12;a=24>c?c+3:Math.round(1.2*c);return{h:a,b:Math.round(.8*a),f:c}};z.prototype.rotCorr=function(c,a,
g){var h=c;a&&g&&(h=Math.max(h*Math.cos(a*n),4));return{x:-c/3*Math.sin(a*n),y:h}};z.prototype.pathToSegments=function(c){for(var a=[],g=[],h={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},d=0;d<c.length;d++)H(g[0])&&p(c[d])&&g.length===h[g[0].toUpperCase()]&&c.splice(d,0,g[0].replace("M","L").replace("m","l")),"string"===typeof c[d]&&(g.length&&a.push(g.slice(0)),g.length=0),g.push(c[d]);a.push(g.slice(0));return a};z.prototype.label=function(c,a,g,h,d,p,e,u,m){return new A(this,c,a,g,h,d,p,e,u,m)};z.prototype.alignElements=
function(){this.alignedObjects.forEach(function(c){return c.align()})};return z}();g(v.prototype,{Element:r,SVG_NS:z,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:E,draw:G});B.registerRendererType("svg",v,!0);"";return v});I(f,"Core/Renderer/HTML/HTMLElement.js",[f["Core/Globals.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Utilities.js"]],function(b,f,v){var J=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)d.hasOwnProperty(e)&&(a[e]=d[e])};return a(d,e)};return function(d,e){function b(){this.constructor=d}a(d,e);d.prototype=null===e?Object.create(e):(b.prototype=e.prototype,new b)}}(),r=b.isFirefox,A=b.isMS,E=b.isWebKit,y=b.win,q=v.css,l=v.defined,n=v.extend,e=v.pick,a=v.pInt;return function(d){function b(){return null!==d&&d.apply(this,arguments)||this}J(b,d);b.compose=function(a){if(-1===b.composedClasses.indexOf(a)){b.composedClasses.push(a);
var d=b.prototype,e=a.prototype;e.getSpanCorrection=d.getSpanCorrection;e.htmlCss=d.htmlCss;e.htmlGetBBox=d.htmlGetBBox;e.htmlUpdateTransform=d.htmlUpdateTransform;e.setSpanRotation=d.setSpanRotation}return a};b.prototype.getSpanCorrection=function(a,d,e){this.xCorr=-a*e;this.yCorr=-d};b.prototype.htmlCss=function(a){var d="SPAN"===this.element.tagName&&a&&"width"in a,b=e(d&&a.width,void 0);if(d){delete a.width;this.textWidth=b;var k=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow=
"hidden");this.styles=n(this.styles,a);q(this.element,a);k&&this.htmlUpdateTransform();return this};b.prototype.htmlGetBBox=function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};b.prototype.htmlUpdateTransform=function(){if(this.added){var d=this.renderer,e=this.element,b=this.translateX||0,k=this.translateY||0,t=this.x||0,m=this.y||0,h=this.textAlign||"left",u={left:0,center:.5,right:1}[h],c=this.styles;c=c&&c.whiteSpace;q(e,{marginLeft:b,marginTop:k});
!d.styledMode&&this.shadows&&this.shadows.forEach(function(c){q(c,{marginLeft:b+1,marginTop:k+1})});this.inverted&&[].forEach.call(e.childNodes,function(c){d.invertChild(c,e)});if("SPAN"===e.tagName){var w=this.rotation,g=this.textWidth&&a(this.textWidth),F=[w,h,e.innerHTML,this.textWidth,this.textAlign].join(),p=void 0;p=!1;if(g!==this.oldTextWidth){if(this.textPxLength)var D=this.textPxLength;else q(e,{width:"",whiteSpace:c||"nowrap"}),D=e.offsetWidth;(g>this.oldTextWidth||D>g)&&(/[ \-]/.test(e.textContent||
e.innerText)||"ellipsis"===e.style.textOverflow)&&(q(e,{width:D>g||w?g+"px":"auto",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=g,p=!0)}this.hasBoxWidthChanged=p;F!==this.cTT&&(p=d.fontMetrics(e.style.fontSize,e).b,!l(w)||w===(this.oldRotation||0)&&h===this.oldAlign||this.setSpanRotation(w,u,p),this.getSpanCorrection(!l(w)&&this.textPxLength||e.offsetWidth,p,u,w,h));q(e,{left:t+(this.xCorr||0)+"px",top:m+(this.yCorr||0)+"px"});this.cTT=F;this.oldRotation=w;this.oldAlign=h}}else this.alignOnAdd=
!0};b.prototype.setSpanRotation=function(a,d,e){var b={},k=A&&!/Edge/.test(y.navigator.userAgent)?"-ms-transform":E?"-webkit-transform":r?"MozTransform":y.opera?"-o-transform":void 0;k&&(b[k]=b.transform="rotate("+a+"deg)",b[k+(r?"Origin":"-origin")]=b.transformOrigin=100*d+"% "+e+"px",q(this.element,b))};b.composedClasses=[];return b}(f)});I(f,"Core/Renderer/HTML/HTMLRenderer.js",[f["Core/Renderer/HTML/AST.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Renderer/SVG/SVGRenderer.js"],f["Core/Utilities.js"]],
function(b,f,v,B){var r=this&&this.__extends||function(){var b=function(l,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return b(l,e)};return function(l,e){function a(){this.constructor=l}b(l,e);l.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),J=B.attr,E=B.createElement,y=B.extend,q=B.pick;return function(l){function n(){return null!==l&&l.apply(this,arguments)||this}
r(n,l);n.compose=function(e){-1===n.composedClasses.indexOf(e)&&(n.composedClasses.push(e),e.prototype.html=n.prototype.html);return e};n.prototype.html=function(e,a,d){var k=this.createElement("span"),l=k.element,z=k.renderer,n=z.isSVG,x=function(a,d){["opacity","visibility"].forEach(function(h){a[h+"Setter"]=function(e,c,b){var g=a.div?a.div.style:d;f.prototype[h+"Setter"].call(this,e,c,b);g&&(g[c]=e)}});a.addedSetters=!0};k.textSetter=function(a){a!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,
b.setElementHTML(this.element,q(a,"")),this.textStr=a,k.doTransform=!0)};n&&x(k,k.element.style);k.xSetter=k.ySetter=k.alignSetter=k.rotationSetter=function(a,d){"align"===d?k.alignValue=k.textAlign=a:k[d]=a;k.doTransform=!0};k.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};k.attr({text:e,x:Math.round(a),y:Math.round(d)}).css({position:"absolute"});z.styledMode||k.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});l.style.whiteSpace="nowrap";
k.css=k.htmlCss;n&&(k.add=function(a){var d=z.box.parentNode,h=[];if(this.parentGroup=a){var e=a.div;if(!e){for(;a;)h.push(a),a=a.parentGroup;h.reverse().forEach(function(c){function a(a,g){c[g]=a;"translateX"===g?p.left=a+"px":p.top=a+"px";c.doTransform=!0}var g=J(c.element,"class"),b=c.styles||{};e=c.div=c.div||E("div",g?{className:g}:void 0,{position:"absolute",left:(c.translateX||0)+"px",top:(c.translateY||0)+"px",display:c.display,opacity:c.opacity,cursor:b.cursor,pointerEvents:b.pointerEvents,
visibility:c.visibility},e||d);var p=e.style;y(c,{classSetter:function(c){return function(a){this.element.setAttribute("class",a);c.className=a}}(e),on:function(){h[0].div&&k.on.apply({element:h[0].div,onEvents:c.onEvents},arguments);return c},translateXSetter:a,translateYSetter:a});c.addedSetters||x(c)})}}else e=d;e.appendChild(l);k.added=!0;k.alignOnAdd&&k.htmlUpdateTransform();return k});return k};n.composedClasses=[];return n}(v)});I(f,"Core/Axis/AxisDefaults.js",[],function(){var b;(function(b){b.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"};b.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 b=this.axis.chart.numberFormatter;return b(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};b.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};b.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};b.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};b.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(b||
(b={}));return b});I(f,"Core/Foundation.js",[f["Core/Utilities.js"]],function(b){var f=b.addEvent,v=b.isFunction,B=b.objectEach,r=b.removeEvent,A;(function(b){b.registerEventOptions=function(b,q){b.eventOptions=b.eventOptions||{};B(q.events,function(l,n){b.eventOptions[n]!==l&&(b.eventOptions[n]&&(r(b,n,b.eventOptions[n]),delete b.eventOptions[n]),v(l)&&(b.eventOptions[n]=l,f(b,n,l)))})}})(A||(A={}));return A});I(f,"Core/Axis/Tick.js",[f["Core/FormatUtilities.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],
function(b,f,v){var J=f.deg2rad,r=v.clamp,A=v.correctFloat,E=v.defined,y=v.destroyObjectProperties,q=v.extend,l=v.fireEvent,n=v.isNumber,e=v.merge,a=v.objectEach,d=v.pick;f=function(){function k(a,d,e,b,k){this.isNewLabel=this.isNew=!0;this.axis=a;this.pos=d;this.type=e||"";this.parameters=k||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;l(this,"init");e||b||this.addLabel()}k.prototype.addLabel=function(){var a=this,e=a.axis,k=e.options,x=e.chart,t=e.categories,
m=e.logarithmic,h=e.names,u=a.pos,c=d(a.options&&a.options.labels,k.labels),w=e.tickPositions,g=u===w[0],F=u===w[w.length-1],p=(!c.step||1===c.step)&&1===e.tickInterval;w=w.info;var D=a.label,H;t=this.parameters.category||(t?d(t[u],h[u],u):u);m&&n(t)&&(t=A(m.lin2log(t)));if(e.dateTime)if(w){var f=x.time.resolveDTLFormat(k.dateTimeLabelFormats[!k.grid&&w.higherRanks[u]||w.unitName]);var P=f.main}else n(t)&&(P=e.dateTime.getXDateFormat(t,k.dateTimeLabelFormats||{}));a.isFirst=g;a.isLast=F;var K={axis:e,
chart:x,dateTimeLabelFormat:P,isFirst:g,isLast:F,pos:u,tick:a,tickPositionInfo:w,value:t};l(this,"labelFormat",K);var r=function(a){return c.formatter?c.formatter.call(a,a):c.format?(a.text=e.defaultLabelFormatter.call(a),b.format(c.format,a,x)):e.defaultLabelFormatter.call(a,a)};k=r.call(K,K);var y=f&&f.list;a.shortenLabel=y?function(){for(H=0;H<y.length;H++)if(q(K,{dateTimeLabelFormat:y[H]}),D.attr({text:r.call(K,K)}),D.getBBox().width<e.getSlotWidth(a)-2*c.padding)return;D.attr({text:""})}:void 0;
p&&e._addedPlotLB&&a.moveLabel(k,c);E(D)||a.movedLabel?D&&D.textStr!==k&&!p&&(!D.textWidth||c.style.width||D.styles.width||D.css({width:null}),D.attr({text:k}),D.textPxLength=D.getBBox().width):(a.label=D=a.createLabel({x:0,y:0},k,c),a.rotation=0)};k.prototype.createLabel=function(a,d,b){var k=this.axis,t=k.chart;if(a=E(d)&&b.enabled?t.renderer.text(d,a.x,a.y,b.useHTML).add(k.labelGroup):null)t.styledMode||a.css(e(b.style)),a.textPxLength=a.getBBox().width;return a};k.prototype.destroy=function(){y(this,
this.axis)};k.prototype.getPosition=function(a,d,e,b){var k=this.axis,m=k.chart,h=b&&m.oldChartHeight||m.chartHeight;a={x:a?A(k.translate(d+e,null,null,b)+k.transB):k.left+k.offset+(k.opposite?(b&&m.oldChartWidth||m.chartWidth)-k.right-k.left:0),y:a?h-k.bottom+k.offset-(k.opposite?k.height:0):A(h-k.translate(d+e,null,null,b)-k.transB)};a.y=r(a.y,-1E5,1E5);l(this,"afterGetPosition",{pos:a});return a};k.prototype.getLabelPosition=function(a,d,e,b,k,m,h,u){var c=this.axis,w=c.transA,g=c.isLinked&&c.linkedParent?
c.linkedParent.reversed:c.reversed,F=c.staggerLines,p=c.tickRotCorr||{x:0,y:0},D=b||c.reserveSpaceDefault?0:-c.labelOffset*("center"===c.labelAlign?.5:1),t={},f=k.y;E(f)||(f=0===c.side?e.rotation?-8:-e.getBBox().height:2===c.side?p.y+8:Math.cos(e.rotation*J)*(p.y-e.getBBox(!1,0).height/2));a=a+k.x+D+p.x-(m&&b?m*w*(g?-1:1):0);d=d+f-(m&&!b?m*w*(g?1:-1):0);F&&(e=h/(u||1)%F,c.opposite&&(e=F-e-1),d+=c.labelOffset/F*e);t.x=a;t.y=Math.round(d);l(this,"afterGetLabelPosition",{pos:t,tickmarkOffset:m,index:h});
return t};k.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};k.prototype.getMarkPath=function(a,d,e,b,k,m){return m.crispLine([["M",a,d],["L",a+(k?0:-e),d+(k?e:0)]],b)};k.prototype.handleOverflow=function(a){var e=this.axis,b=e.options.labels,k=a.x,t=e.chart.chartWidth,m=e.chart.spacing,h=d(e.labelLeft,Math.min(e.pos,m[3]));m=d(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,t-m[1]));var u=this.label,c=this.rotation,w={left:0,center:.5,right:1}[e.labelAlign||
u.attr("align")],g=u.getBBox().width,F=e.getSlotWidth(this),p={},D=F,l=1,f;if(c||"justify"!==b.overflow)0>c&&k-w*g<h?f=Math.round(k/Math.cos(c*J)-h):0<c&&k+w*g>m&&(f=Math.round((t-k)/Math.cos(c*J)));else if(t=k+(1-w)*g,k-w*g<h?D=a.x+D*(1-w)-h:t>m&&(D=m-a.x+D*w,l=-1),D=Math.min(F,D),D<F&&"center"===e.labelAlign&&(a.x+=l*(F-D-w*(F-Math.min(g,D)))),g>D||e.autoRotation&&(u.styles||{}).width)f=D;f&&(this.shortenLabel?this.shortenLabel():(p.width=Math.floor(f)+"px",(b.style||{}).textOverflow||(p.textOverflow=
"ellipsis"),u.css(p)))};k.prototype.moveLabel=function(d,e){var b=this,k=b.label,t=b.axis,m=t.reversed,h=!1;k&&k.textStr===d?(b.movedLabel=k,h=!0,delete b.label):a(t.ticks,function(c){h||c.isNew||c===b||!c.label||c.label.textStr!==d||(b.movedLabel=c.label,h=!0,c.labelPos=b.movedLabel.xy,delete c.label)});if(!h&&(b.labelPos||k)){var u=b.labelPos||k.xy;k=t.horiz?m?0:t.width+t.left:u.x;t=t.horiz?u.y:m?t.width+t.left:0;b.movedLabel=b.createLabel({x:k,y:t},d,e);b.movedLabel&&b.movedLabel.attr({opacity:0})}};
k.prototype.render=function(a,e,b){var k=this.axis,t=k.horiz,m=this.pos,h=d(this.tickmarkOffset,k.tickmarkOffset);m=this.getPosition(t,m,h,e);h=m.x;var u=m.y;k=t&&h===k.pos+k.len||!t&&u===k.pos?-1:1;t=d(b,this.label&&this.label.newOpacity,1);b=d(b,1);this.isActive=!0;this.renderGridLine(e,b,k);this.renderMark(m,b,k);this.renderLabel(m,e,t,a);this.isNew=!1;l(this,"afterRender")};k.prototype.renderGridLine=function(a,e,b){var k=this.axis,t=k.options,m={},h=this.pos,u=this.type,c=d(this.tickmarkOffset,
k.tickmarkOffset),w=k.chart.renderer,g=this.gridLine,F=t.gridLineWidth,p=t.gridLineColor,D=t.gridLineDashStyle;"minor"===this.type&&(F=t.minorGridLineWidth,p=t.minorGridLineColor,D=t.minorGridLineDashStyle);g||(k.chart.styledMode||(m.stroke=p,m["stroke-width"]=F||0,m.dashstyle=D),u||(m.zIndex=1),a&&(e=0),this.gridLine=g=w.path().attr(m).addClass("highcharts-"+(u?u+"-":"")+"grid-line").add(k.gridGroup));if(g&&(b=k.getPlotLinePath({value:h+c,lineWidth:g.strokeWidth()*b,force:"pass",old:a})))g[a||this.isNew?
"attr":"animate"]({d:b,opacity:e})};k.prototype.renderMark=function(a,e,b){var k=this.axis,t=k.options,m=k.chart.renderer,h=this.type,u=k.tickSize(h?h+"Tick":"tick"),c=a.x;a=a.y;var w=d(t["minor"!==h?"tickWidth":"minorTickWidth"],!h&&k.isXAxis?1:0);t=t["minor"!==h?"tickColor":"minorTickColor"];var g=this.mark,F=!g;u&&(k.opposite&&(u[0]=-u[0]),g||(this.mark=g=m.path().addClass("highcharts-"+(h?h+"-":"")+"tick").add(k.axisGroup),k.chart.styledMode||g.attr({stroke:t,"stroke-width":w})),g[F?"attr":"animate"]({d:this.getMarkPath(c,
a,u[0],g.strokeWidth()*b,k.horiz,m),opacity:e}))};k.prototype.renderLabel=function(a,e,b,k){var t=this.axis,m=t.horiz,h=t.options,u=this.label,c=h.labels,w=c.step;t=d(this.tickmarkOffset,t.tickmarkOffset);var g=a.x;a=a.y;var F=!0;u&&n(g)&&(u.xy=a=this.getLabelPosition(g,a,u,m,c,t,k,w),this.isFirst&&!this.isLast&&!h.showFirstLabel||this.isLast&&!this.isFirst&&!h.showLastLabel?F=!1:!m||c.step||c.rotation||e||0===b||this.handleOverflow(a),w&&k%w&&(F=!1),F&&n(a.y)?(a.opacity=b,u[this.isNewLabel?"attr":
"animate"](a),this.isNewLabel=!1):(u.attr("y",-9999),this.isNewLabel=!0))};k.prototype.replaceMovedLabel=function(){var a=this.label,d=this.axis,e=d.reversed;if(a&&!this.isNew){var b=d.horiz?e?d.left:d.width+d.left:a.xy.x;e=d.horiz?a.xy.y:e?d.width+d.top:d.top;a.animate({x:b,y:e,opacity:0},void 0,a.destroy);delete this.label}d.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return k}();"";return f});I(f,"Core/Axis/Axis.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Axis/AxisDefaults.js"],
f["Core/Color/Color.js"],f["Core/DefaultOptions.js"],f["Core/Foundation.js"],f["Core/Globals.js"],f["Core/Axis/Tick.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E,y){var q=b.animObject,l=B.defaultOptions,n=r.registerEventOptions,e=A.deg2rad,a=y.arrayMax,d=y.arrayMin,k=y.clamp,G=y.correctFloat,z=y.defined,C=y.destroyObjectProperties,x=y.erase,t=y.error,m=y.extend,h=y.fireEvent,u=y.getMagnitude,c=y.isArray,w=y.isNumber,g=y.isString,F=y.merge,p=y.normalizeTickInterval,D=y.objectEach,H=y.pick,L=
y.relativeLength,P=y.removeEvent,K=y.splat,S=y.syncTimeout;b=function(){function b(c,a){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(c,a)}b.prototype.init=function(c,a){var g=a.isX;this.chart=c;this.horiz=c.inverted&&!this.isZAxis?!g:g;this.isXAxis=g;this.coll=this.coll||(g?"xAxis":"yAxis");
h(this,"init",{userOptions:a});this.opposite=H(a.opposite,this.opposite);this.side=H(a.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(a);var d=this.options,e=d.labels,b=d.type;this.userOptions=a;this.minPixelPadding=0;this.reversed=H(d.reversed,this.reversed);this.visible=d.visible;this.zoomEnabled=d.zoomEnabled;this.hasNames="category"===b||!0===d.categories;this.categories=d.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups=
{};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=z(d.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=d.minRange||d.maxZoom;this.range=d.range;this.offset=d.offset||0;this.min=this.max=null;a=H(d.crosshair,K(c.options.tooltip.crosshairs)[g?0:1]);this.crosshair=!0===a?{}:a;-1===c.axes.indexOf(this)&&(g?c.axes.splice(c.xAxis.length,0,this):c.axes.push(this),c[this.coll].push(this));this.series=
this.series||[];c.inverted&&!this.isZAxis&&g&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=w(e.rotation)?e.rotation:void 0;n(this,d);h(this,"afterInit")};b.prototype.setOptions=function(c){this.options=F(f.defaultXAxisOptions,"yAxis"===this.coll&&f.defaultYAxisOptions,[f.defaultTopAxisOptions,f.defaultRightAxisOptions,f.defaultBottomAxisOptions,f.defaultLeftAxisOptions][this.side],F(l[this.coll],c));h(this,"afterSetOptions",{userOptions:c})};b.prototype.defaultLabelFormatter=
function(c){var a=this.axis;c=this.chart.numberFormatter;var g=w(this.value)?this.value:NaN,h=a.chart.time,d=this.dateTimeLabelFormat,e=l.lang,b=e.numericSymbols;e=e.numericSymbolMagnitude||1E3;var p=a.logarithmic?Math.abs(g):a.tickInterval,u=b&&b.length;if(a.categories)var m=""+this.value;else if(d)m=h.dateFormat(d,g);else if(u&&1E3<=p)for(;u--&&"undefined"===typeof m;)a=Math.pow(e,u+1),p>=a&&0===10*g%a&&null!==b[u]&&0!==g&&(m=c(g/a,-1)+b[u]);"undefined"===typeof m&&(m=1E4<=Math.abs(g)?c(g,-1):c(g,
-1,void 0,""));return m};b.prototype.getSeriesExtremes=function(){var c=this,a=c.chart,g;h(this,"getSeriesExtremes",null,function(){c.hasVisibleSeries=!1;c.dataMin=c.dataMax=c.threshold=null;c.softThreshold=!c.isXAxis;c.stacking&&c.stacking.buildStacks();c.series.forEach(function(h){if(h.visible||!a.options.chart.ignoreHiddenSeries){var d=h.options,e=d.threshold;c.hasVisibleSeries=!0;c.positiveValuesOnly&&0>=e&&(e=null);if(c.isXAxis){if(d=h.xData,d.length){d=c.logarithmic?d.filter(c.validatePositiveValue):
d;g=h.getXExtremes(d);var b=g.min;var p=g.max;w(b)||b instanceof Date||(d=d.filter(w),g=h.getXExtremes(d),b=g.min,p=g.max);d.length&&(c.dataMin=Math.min(H(c.dataMin,b),b),c.dataMax=Math.max(H(c.dataMax,p),p))}}else if(h=h.applyExtremes(),w(h.dataMin)&&(b=h.dataMin,c.dataMin=Math.min(H(c.dataMin,b),b)),w(h.dataMax)&&(p=h.dataMax,c.dataMax=Math.max(H(c.dataMax,p),p)),z(e)&&(c.threshold=e),!d.softThreshold||c.positiveValuesOnly)c.softThreshold=!1}})});h(this,"afterGetSeriesExtremes")};b.prototype.translate=
function(c,a,g,h,d,e){var b=this.linkedParent||this,p=h&&b.old?b.old.min:b.min,u=b.minPixelPadding;d=(b.isOrdinal||b.brokenAxis&&b.brokenAxis.hasBreaks||b.logarithmic&&d)&&b.lin2val;var m=1,k=0;h=h&&b.old?b.old.transA:b.transA;h||(h=b.transA);g&&(m*=-1,k=b.len);b.reversed&&(m*=-1,k-=m*(b.sector||b.len));a?(e=(c*m+k-u)/h+p,d&&(e=b.lin2val(e))):(d&&(c=b.val2lin(c)),c=m*(c-p)*h,e=w(p)?(b.isRadial?c:G(c))+k+m*u+(w(e)?h*e:0):void 0);return e};b.prototype.toPixels=function(c,a){return this.translate(c,
!1,!this.horiz,null,!0)+(a?0:this.pos)};b.prototype.toValue=function(c,a){return this.translate(c-(a?0:this.pos),!0,!this.horiz,null,!0)};b.prototype.getPlotLinePath=function(c){function a(c,a,g){if("pass"!==l&&c<a||c>g)l?c=k(c,a,g):L=!0;return c}var g=this,d=g.chart,e=g.left,b=g.top,p=c.old,m=c.value,u=c.lineWidth,D=p&&d.oldChartHeight||d.chartHeight,F=p&&d.oldChartWidth||d.chartWidth,t=g.transB,f=c.translatedValue,l=c.force,n,z,x,C,L;c={value:m,lineWidth:u,old:p,force:l,acrossPanes:c.acrossPanes,
translatedValue:f};h(this,"getPlotLinePath",c,function(c){f=H(f,g.translate(m,null,null,p));f=k(f,-1E5,1E5);n=x=Math.round(f+t);z=C=Math.round(D-f-t);w(f)?g.horiz?(z=b,C=D-g.bottom,n=x=a(n,e,e+g.width)):(n=e,x=F-g.right,z=C=a(z,b,b+g.height)):(L=!0,l=!1);c.path=L&&!l?null:d.renderer.crispLine([["M",n,z],["L",x,C]],u||1)});return c.path};b.prototype.getLinearTickPositions=function(c,a,g){var h=G(Math.floor(a/c)*c);g=G(Math.ceil(g/c)*c);var d=[],e;G(h+c)===h&&(e=20);if(this.single)return[a];for(a=h;a<=
g;){d.push(a);a=G(a+c,e);if(a===b)break;var b=a}return d};b.prototype.getMinorTickInterval=function(){var c=this.options;return!0===c.minorTicks?H(c.minorTickInterval,"auto"):!1===c.minorTicks?null:c.minorTickInterval};b.prototype.getMinorTickPositions=function(){var c=this.options,a=this.tickPositions,g=this.minorTickInterval,h=this.pointRangePadding||0,d=this.min-h;h=this.max+h;var e=h-d,b=[];if(e&&e/g<this.len/3){var p=this.logarithmic;if(p)this.paddedTicks.forEach(function(c,a,h){a&&b.push.apply(b,
p.getLogTickPositions(g,h[a-1],h[a],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())b=b.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(g),d,h,c.startOfWeek));else for(c=d+(a[0]-d)%g;c<=h&&c!==b[0];c+=g)b.push(c)}0!==b.length&&this.trimTicks(b);return b};b.prototype.adjustForMinRange=function(){var c=this.options,g=this.logarithmic,h=this.min,e=this.max,b=0,p,m,u,k;this.isXAxis&&"undefined"===typeof this.minRange&&!g&&(z(c.min)||z(c.max)||z(c.floor)||z(c.ceiling)?
this.minRange=null:(this.series.forEach(function(c){u=c.xData;k=c.xIncrement?1:u.length-1;if(1<u.length)for(p=k;0<p;p--)if(m=u[p]-u[p-1],!b||m<b)b=m}),this.minRange=Math.min(5*b,this.dataMax-this.dataMin)));if(e-h<this.minRange){var w=this.dataMax-this.dataMin>=this.minRange;var D=this.minRange;var F=(D-e+h)/2;F=[h-F,H(c.min,h-F)];w&&(F[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);h=a(F);e=[h+D,H(c.max,h+D)];w&&(e[2]=g?g.log2lin(this.dataMax):this.dataMax);e=d(e);e-h<D&&
(F[0]=e-D,F[1]=H(c.min,e-D),h=a(F))}this.min=h;this.max=e};b.prototype.getClosest=function(){var c;this.categories?c=1:this.series.forEach(function(a){var g=a.closestPointRange,h=a.visible||!a.chart.options.chart.ignoreHiddenSeries;!a.noSharedTooltip&&z(g)&&h&&(c=z(c)?Math.min(c,g):g)});return c};b.prototype.nameToX=function(a){var g=c(this.options.categories),h=g?this.categories:this.names,d=a.options.x;a.series.requireSorting=!1;z(d)||(d=this.options.uniqueNames&&h?g?h.indexOf(a.name):H(h.keys[a.name],
-1):a.series.autoIncrement());if(-1===d){if(!g&&h)var e=h.length}else e=d;"undefined"!==typeof e&&(this.names[e]=a.name,this.names.keys[a.name]=e);return e};b.prototype.updateNames=function(){var c=this,a=this.names;0<a.length&&(Object.keys(a.keys).forEach(function(c){delete a.keys[c]}),a.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(a){a.xIncrement=null;if(!a.points||a.isDirtyData)c.max=Math.max(c.max,a.xData.length-1),a.processData(),a.generatePoints();a.data.forEach(function(g,
h){if(g&&g.options&&"undefined"!==typeof g.name){var d=c.nameToX(g);"undefined"!==typeof d&&d!==g.x&&(g.x=d,a.xData[h]=d)}})}))};b.prototype.setAxisTranslation=function(){var c=this,a=c.max-c.min,d=c.linkedParent,e=!!c.categories,b=c.isXAxis,p=c.axisPointRange||0,u=0,m=0,k=c.transA;if(b||e||p){var w=c.getClosest();d?(u=d.minPointOffset,m=d.pointRangePadding):c.series.forEach(function(a){var h=e?1:b?H(a.options.pointRange,w,0):c.axisPointRange||0,d=a.options.pointPlacement;p=Math.max(p,h);if(!c.single||
e)a=a.is("xrange")?!b:b,u=Math.max(u,a&&g(d)?0:h/2),m=Math.max(m,a&&"on"===d?0:h)});d=c.ordinal&&c.ordinal.slope&&w?c.ordinal.slope/w:1;c.minPointOffset=u*=d;c.pointRangePadding=m*=d;c.pointRange=Math.min(p,c.single&&e?1:a);b&&(c.closestPointRange=w)}c.translationSlope=c.transA=k=c.staticScale||c.len/(a+m||1);c.transB=c.horiz?c.left:c.bottom;c.minPixelPadding=k*u;h(this,"afterSetAxisTranslation")};b.prototype.minFromRange=function(){return this.max-this.range};b.prototype.setTickInterval=function(c){var a=
this.chart,g=this.logarithmic,d=this.options,e=this.isXAxis,b=this.isLinked,m=d.tickPixelInterval,k=this.categories,D=this.softThreshold,F=d.maxPadding,f=d.minPadding,l=w(d.tickInterval)&&0<=d.tickInterval?d.tickInterval:void 0,n=w(this.threshold)?this.threshold:null;this.dateTime||k||b||this.getTickAmount();var x=H(this.userMin,d.min);var C=H(this.userMax,d.max);if(b){this.linkedParent=a[this.coll][d.linkedTo];var L=this.linkedParent.getExtremes();this.min=H(L.min,L.dataMin);this.max=H(L.max,L.dataMax);
d.type!==this.linkedParent.options.type&&t(11,1,a)}else{if(D&&z(n))if(this.dataMin>=n)L=n,f=0;else if(this.dataMax<=n){var q=n;F=0}this.min=H(x,L,this.dataMin);this.max=H(C,q,this.dataMax)}g&&(this.positiveValuesOnly&&!c&&0>=Math.min(this.min,H(this.dataMin,this.min))&&t(10,1,a),this.min=G(g.log2lin(this.min),16),this.max=G(g.log2lin(this.max),16));this.range&&z(this.max)&&(this.userMin=this.min=x=Math.max(this.dataMin,this.minFromRange()),this.userMax=C=this.max,this.range=null);h(this,"foundExtremes");
this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(k||this.axisPointRange||this.stacking&&this.stacking.usePercentage||b)&&z(this.min)&&z(this.max)&&(a=this.max-this.min)&&(!z(x)&&f&&(this.min-=a*f),!z(C)&&F&&(this.max+=a*F));w(this.userMin)||(w(d.softMin)&&d.softMin<this.min&&(this.min=x=d.softMin),w(d.floor)&&(this.min=Math.max(this.min,d.floor)));w(this.userMax)||(w(d.softMax)&&d.softMax>this.max&&(this.max=C=d.softMax),w(d.ceiling)&&(this.max=Math.min(this.max,d.ceiling)));D&&
z(this.dataMin)&&(n=n||0,!z(x)&&this.min<n&&this.dataMin>=n?this.min=this.options.minRange?Math.min(n,this.max-this.minRange):n:!z(C)&&this.max>n&&this.dataMax<=n&&(this.max=this.options.minRange?Math.max(n,this.min+this.minRange):n));w(this.min)&&w(this.max)&&!this.chart.polar&&this.min>this.max&&(z(this.options.min)?this.max=this.min:z(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:b&&this.linkedParent&&
!l&&m===this.linkedParent.options.tickPixelInterval?l=this.linkedParent.tickInterval:H(l,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,k?1:(this.max-this.min)*m/Math.max(this.len,m));if(e&&!c){var X=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(c){c.forceCrop=c.forceCropping&&c.forceCropping();c.processData(X)});h(this,"postProcessData",{hasExtemesChanged:X})}this.setAxisTranslation();h(this,"initialAxisTranslation");
this.pointRange&&!l&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));c=H(d.minTickInterval,this.dateTime&&!this.series.some(function(c){return c.noSharedTooltip})?this.closestPointRange:0);!l&&this.tickInterval<c&&(this.tickInterval=c);this.dateTime||this.logarithmic||l||(this.tickInterval=p(this.tickInterval,void 0,u(this.tickInterval),H(d.allowDecimals,.5>this.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};
b.prototype.setTickPositions=function(){var c=this.options,a=c.tickPositions,g=this.getMinorTickInterval(),d=this.hasVerticalPanning(),e="colorAxis"===this.coll,b=(e||!d)&&c.startOnTick;d=(e||!d)&&c.endOnTick;e=c.tickPositioner;this.tickmarkOffset=this.categories&&"between"===c.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===g&&this.tickInterval?this.tickInterval/5:g;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==
c.allowDecimals);this.tickPositions=g=a&&a.slice();!g&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?g=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,c.units),this.min,this.max,c.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,
this.max):(g=[this.min,this.max],t(19,!1,this.chart)),g.length>this.len&&(g=[g[0],g.pop()],g[0]===g[1]&&(g.length=1)),this.tickPositions=g,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=g=e);this.paddedTicks=g.slice(0);this.trimTicks(g,b,d);this.isLinked||(this.single&&2>g.length&&!this.categories&&!this.series.some(function(c){return c.is("heatmap")&&"between"===c.options.pointPlacement})&&(this.min-=.5,this.max+=.5),a||e||this.adjustTickAmount());h(this,"afterSetTickPositions")};
b.prototype.trimTicks=function(c,a,g){var d=c[0],e=c[c.length-1],b=!this.isOrdinal&&this.minPointOffset||0;h(this,"trimTicks");if(!this.isLinked){if(a&&-Infinity!==d)this.min=d;else for(;this.min-b>c[0];)c.shift();if(g)this.max=e;else for(;this.max+b<c[c.length-1];)c.pop();0===c.length&&z(d)&&!this.options.tickPositions&&c.push((e+d)/2)}};b.prototype.alignToOthers=function(){var c=this,a=[this],g=c.options,h="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,d=[],e;c.thresholdAlignment=
void 0;if((!1!==this.chart.options.chart.alignTicks&&g.alignTicks||h)&&!1!==g.startOnTick&&!1!==g.endOnTick&&!c.logarithmic){var b=function(c){var a=c.options;return[c.horiz?a.left:a.top,a.width,a.height,a.pane].join()},p=b(this);this.chart[this.coll].forEach(function(g){var d=g.series;d.length&&d.some(function(c){return c.visible})&&g!==c&&b(g)===p&&(e=!0,a.push(g))})}if(e&&h){a.forEach(function(a){a=a.getThresholdAlignment(c);w(a)&&d.push(a)});var m=1<d.length?d.reduce(function(c,a){return c+a},
0)/d.length:void 0;a.forEach(function(c){c.thresholdAlignment=m})}return e};b.prototype.getThresholdAlignment=function(c){(!w(this.dataMin)||this!==c&&this.series.some(function(c){return c.isDirty||c.isDirtyData}))&&this.getSeriesExtremes();if(w(this.threshold))return c=k((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(c=1-c),c};b.prototype.getTickAmount=function(){var c=this.options,a=c.tickPixelInterval,g=c.tickAmount;!z(c.tickInterval)&&!g&&
this.len<a&&!this.isRadial&&!this.logarithmic&&c.startOnTick&&c.endOnTick&&(g=2);!g&&this.alignToOthers()&&(g=Math.ceil(this.len/a)+1);4>g&&(this.finalTickAmt=g,g=5);this.tickAmount=g};b.prototype.adjustTickAmount=function(){var c=this,a=c.finalTickAmt,g=c.max,d=c.min,h=c.options,e=c.tickPositions,b=c.tickAmount,p=c.thresholdAlignment,m=e&&e.length,u=H(c.threshold,c.softThreshold?0:null);var k=c.tickInterval;if(w(p)){var D=.5>p?Math.ceil(p*(b-1)):Math.floor(p*(b-1));h.reversed&&(D=b-1-D)}if(c.hasData()&&
w(d)&&w(g)){p=function(){c.transA*=(m-1)/(b-1);c.min=h.startOnTick?e[0]:Math.min(d,e[0]);c.max=h.endOnTick?e[e.length-1]:Math.max(g,e[e.length-1])};if(w(D)&&w(c.threshold)){for(;e[D]!==u||e.length!==b||e[0]>d||e[e.length-1]<g;){e.length=0;for(e.push(c.threshold);e.length<b;)void 0===e[D]||e[D]>c.threshold?e.unshift(G(e[0]-k)):e.push(G(e[e.length-1]+k));if(k>8*c.tickInterval)break;k*=2}p()}else if(m<b){for(;e.length<b;)e.length%2||d===u?e.push(G(e[e.length-1]+k)):e.unshift(G(e[0]-k));p()}else m>b&&
(c.tickInterval*=2,c.setTickPositions());if(z(a)){for(k=u=e.length;k--;)(3===a&&1===k%2||2>=a&&0<k&&k<u-1)&&e.splice(k,1);c.finalTickAmt=void 0}}};b.prototype.setScale=function(){var c=!1,a=!1;this.series.forEach(function(g){c=c||g.isDirtyData||g.isDirty;a=a||g.xAxis&&g.xAxis.isDirty||!1});this.setAxisSize();var g=this.len!==(this.old&&this.old.len);g||c||a||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.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=g||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();c&&this.panningState&&(this.panningState.isDirty=!0);h(this,"afterSetScale")};b.prototype.setExtremes=function(c,a,g,d,e){var b=this,p=b.chart;g=H(g,!0);b.series.forEach(function(c){delete c.kdTree});e=m(e,{min:c,max:a});h(b,"setExtremes",e,
function(){b.userMin=c;b.userMax=a;b.eventArgs=e;g&&p.redraw(d)})};b.prototype.zoom=function(c,a){var g=this,d=this.dataMin,e=this.dataMax,b=this.options,p=Math.min(d,H(b.min,d)),m=Math.max(e,H(b.max,e));c={newMin:c,newMax:a};h(this,"zoom",c,function(c){var a=c.newMin,h=c.newMax;if(a!==g.min||h!==g.max)g.allowZoomOutside||(z(d)&&(a<p&&(a=p),a>m&&(a=m)),z(e)&&(h<p&&(h=p),h>m&&(h=m))),g.displayBtn="undefined"!==typeof a||"undefined"!==typeof h,g.setExtremes(a,h,!1,void 0,{trigger:"zoom"});c.zoomed=
!0});return c.zoomed};b.prototype.setAxisSize=function(){var c=this.chart,a=this.options,g=a.offsets||[0,0,0,0],d=this.horiz,h=this.width=Math.round(L(H(a.width,c.plotWidth-g[3]+g[1]),c.plotWidth)),e=this.height=Math.round(L(H(a.height,c.plotHeight-g[0]+g[2]),c.plotHeight)),b=this.top=Math.round(L(H(a.top,c.plotTop+g[0]),c.plotHeight,c.plotTop));a=this.left=Math.round(L(H(a.left,c.plotLeft+g[3]),c.plotWidth,c.plotLeft));this.bottom=c.chartHeight-e-b;this.right=c.chartWidth-h-a;this.len=Math.max(d?
h:e,0);this.pos=d?a:b};b.prototype.getExtremes=function(){var c=this.logarithmic;return{min:c?G(c.lin2log(this.min)):this.min,max:c?G(c.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};b.prototype.getThreshold=function(c){var a=this.logarithmic,g=a?a.lin2log(this.min):this.min;a=a?a.lin2log(this.max):this.max;null===c||-Infinity===c?c=g:Infinity===c?c=a:g>c?c=g:a<c&&(c=a);return this.translate(c,0,1,0,1)};b.prototype.autoLabelAlign=
function(c){var a=(H(c,0)-90*this.side+720)%360;c={align:"center"};h(this,"autoLabelAlign",c,function(c){15<a&&165>a?c.align="right":195<a&&345>a&&(c.align="left")});return c.align};b.prototype.tickSize=function(c){var a=this.options,g=H(a["tick"===c?"tickWidth":"minorTickWidth"],"tick"===c&&this.isXAxis&&!this.categories?1:0),d=a["tick"===c?"tickLength":"minorTickLength"];if(g&&d){"inside"===a[c+"Position"]&&(d=-d);var e=[d,g]}c={tickSize:e};h(this,"afterTickSize",c);return c.tickSize};b.prototype.labelMetrics=
function(){var c=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[c]&&this.ticks[c].label)};b.prototype.unsquish=function(){var c=this.options.labels,a=this.horiz,g=this.tickInterval,d=this.len/(((this.categories?1:0)+this.max-this.min)/g),h=c.rotation,b=this.labelMetrics(),p=Math.max(this.max-this.min,0),m=function(c){var a=c/(d||1);a=1<a?Math.ceil(a):1;a*g>p&&Infinity!==c&&Infinity!==d&&p&&(a=Math.ceil(p/g));return G(a*
g)},u=g,k,D,F=Number.MAX_VALUE;if(a){if(!c.staggerLines&&!c.step)if(w(h))var f=[h];else d<c.autoRotationLimit&&(f=c.autoRotation);f&&f.forEach(function(c){if(c===h||c&&-90<=c&&90>=c){D=m(Math.abs(b.h/Math.sin(e*c)));var a=D+Math.abs(c/360);a<F&&(F=a,k=c,u=D)}})}else c.step||(u=m(b.h));this.autoRotation=f;this.labelRotation=H(k,w(h)?h:0);return u};b.prototype.getSlotWidth=function(c){var a=this.chart,g=this.horiz,d=this.options.labels,h=Math.max(this.tickPositions.length-(this.categories?0:1),1),e=
a.margin[3];if(c&&w(c.slotWidth))return c.slotWidth;if(g&&2>d.step)return d.rotation?0:(this.staggerLines||1)*this.len/h;if(!g){c=d.style.width;if(void 0!==c)return parseInt(String(c),10);if(e)return e-a.spacing[3]}return.33*a.chartWidth};b.prototype.renderUnsquish=function(){var c=this.chart,a=c.renderer,d=this.tickPositions,h=this.ticks,e=this.options.labels,b=e.style,p=this.horiz,m=this.getSlotWidth(),u=Math.max(1,Math.round(m-2*e.padding)),k={},w=this.labelMetrics(),D=b.textOverflow,F=0;g(e.rotation)||
(k.rotation=e.rotation||0);d.forEach(function(c){c=h[c];c.movedLabel&&c.replaceMovedLabel();c&&c.label&&c.label.textPxLength>F&&(F=c.label.textPxLength)});this.maxLabelLength=F;if(this.autoRotation)F>u&&F>w.h?k.rotation=this.labelRotation:this.labelRotation=0;else if(m){var f=u;if(!D){var l="clip";for(u=d.length;!p&&u--;){var t=d[u];if(t=h[t].label)t.styles&&"ellipsis"===t.styles.textOverflow?t.css({textOverflow:"clip"}):t.textPxLength>m&&t.css({width:m+"px"}),t.getBBox().height>this.len/d.length-
(w.h-w.f)&&(t.specificTextOverflow="ellipsis")}}}k.rotation&&(f=F>.5*c.chartHeight?.33*c.chartHeight:F,D||(l="ellipsis"));if(this.labelAlign=e.align||this.autoLabelAlign(this.labelRotation))k.align=this.labelAlign;d.forEach(function(c){var a=(c=h[c])&&c.label,g=b.width,d={};a&&(a.attr(k),c.shortenLabel?c.shortenLabel():f&&!g&&"nowrap"!==b.whiteSpace&&(f<a.textPxLength||"SPAN"===a.element.tagName)?(d.width=f+"px",D||(d.textOverflow=a.specificTextOverflow||l),a.css(d)):a.styles&&a.styles.width&&!d.width&&
!g&&a.css({width:null}),delete a.specificTextOverflow,c.rotation=k.rotation)},this);this.tickRotCorr=a.rotCorr(w.b,this.labelRotation||0,0!==this.side)};b.prototype.hasData=function(){return this.series.some(function(c){return c.hasData()})||this.options.showEmpty&&z(this.min)&&z(this.max)};b.prototype.addTitle=function(c){var a=this.chart.renderer,g=this.horiz,d=this.opposite,h=this.options.title,e=this.chart.styledMode,b;this.axisTitle||((b=h.textAlign)||(b=(g?{low:"left",middle:"center",high:"right"}:
{low:d?"right":"left",middle:"center",high:d?"left":"right"})[h.align]),this.axisTitle=a.text(h.text||"",0,0,h.useHTML).attr({zIndex:7,rotation:h.rotation,align:b}).addClass("highcharts-axis-title"),e||this.axisTitle.css(F(h.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0);e||h.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[c?"show":"hide"](c)};b.prototype.generateTick=function(c){var a=this.ticks;a[c]?a[c].addLabel():a[c]=new E(this,c)};b.prototype.getOffset=
function(){var c=this,a=this,g=a.chart,d=a.horiz,e=a.options,b=a.side,p=a.ticks,m=a.tickPositions,u=a.coll,k=a.axisParent,w=g.renderer,F=g.inverted&&!a.isZAxis?[1,0,3,2][b]:b,f=a.hasData(),t=e.title,l=e.labels,n=g.axisOffset;g=g.clipOffset;var x=[-1,1,1,-1][b],C=e.className,L,G=0,q=0,P=0;a.showAxis=L=f||e.showEmpty;a.staggerLines=a.horiz&&l.staggerLines||void 0;if(!a.axisGroup){var K=function(a,g,d){return w.g(a).attr({zIndex:d}).addClass("highcharts-"+u.toLowerCase()+g+" "+(c.isRadial?"highcharts-radial-axis"+
g+" ":"")+(C||"")).add(k)};a.gridGroup=K("grid","-grid",e.gridZIndex);a.axisGroup=K("axis","",e.zIndex);a.labelGroup=K("axis-labels","-labels",l.zIndex)}f||a.isLinked?(m.forEach(function(c){a.generateTick(c)}),a.renderUnsquish(),a.reserveSpaceDefault=0===b||2===b||{1:"left",3:"right"}[b]===a.labelAlign,H(l.reserveSpace,"center"===a.labelAlign?!0:null,a.reserveSpaceDefault)&&m.forEach(function(c){P=Math.max(p[c].getLabelSize(),P)}),a.staggerLines&&(P*=a.staggerLines),a.labelOffset=P*(a.opposite?-1:
1)):D(p,function(c,a){c.destroy();delete p[a]});if(t&&t.text&&!1!==t.enabled&&(a.addTitle(L),L&&!1!==t.reserveSpace)){a.titleOffset=G=a.axisTitle.getBBox()[d?"height":"width"];var r=t.offset;q=z(r)?0:H(t.margin,d?5:10)}a.renderLine();a.offset=x*H(e.offset,n[b]?n[b]+(e.margin||0):0);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};t=0===b?-a.labelMetrics().h:2===b?a.tickRotCorr.y:0;f=Math.abs(P)+q;P&&(f=f-t+x*(d?H(l.y,a.tickRotCorr.y+8*x):l.x));a.axisTitleMargin=H(r,f);a.getMaxLabelDimensions&&(a.maxLabelDimensions=
a.getMaxLabelDimensions(p,m));"colorAxis"!==u&&(d=this.tickSize("tick"),n[b]=Math.max(n[b],(a.axisTitleMargin||0)+G+x*a.offset,f,m&&m.length&&d?d[0]+x*a.offset:0),e=!a.axisLine||e.offset?0:2*Math.floor(a.axisLine.strokeWidth()/2),g[F]=Math.max(g[F],e));h(this,"afterGetOffset")};b.prototype.getLinePath=function(c){var a=this.chart,g=this.opposite,d=this.offset,h=this.horiz,e=this.left+(g?this.width:0)+d;d=a.chartHeight-this.bottom-(g?this.height:0)+d;g&&(c*=-1);return a.renderer.crispLine([["M",h?
this.left:e,h?d:this.top],["L",h?a.chartWidth-this.right:e,h?d:a.chartHeight-this.bottom]],c)};b.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}))};b.prototype.getTitlePosition=function(){var c=this.horiz,a=this.left,g=this.top,d=this.len,e=this.options.title,b=c?a:g,p=this.opposite,m=
this.offset,u=e.x,k=e.y,w=this.axisTitle,D=this.chart.renderer.fontMetrics(e.style.fontSize,w);w=Math.max(w.getBBox(null,0).height-D.h-1,0);d={low:b+(c?0:d),middle:b+d/2,high:b+(c?d:0)}[e.align];a=(c?g+this.height:a)+(c?1:-1)*(p?-1:1)*this.axisTitleMargin+[-w,w,D.f,-w][this.side];c={x:c?d+u:a+(p?this.width:0)+m+u,y:c?a+k-(p?this.height:0)+m:d+k};h(this,"afterGetTitlePosition",{titlePosition:c});return c};b.prototype.renderMinorTick=function(c,a){var g=this.minorTicks;g[c]||(g[c]=new E(this,c,"minor"));
a&&g[c].isNew&&g[c].render(null,!0);g[c].render(null,!1,1)};b.prototype.renderTick=function(c,a,g){var d=this.ticks;if(!this.isLinked||c>=this.min&&c<=this.max||this.grid&&this.grid.isColumn)d[c]||(d[c]=new E(this,c)),g&&d[c].isNew&&d[c].render(a,!0,-1),d[c].render(a)};b.prototype.render=function(){var c=this,a=c.chart,g=c.logarithmic,d=c.options,e=c.isLinked,b=c.tickPositions,p=c.axisTitle,m=c.ticks,u=c.minorTicks,k=c.alternateBands,F=d.stackLabels,f=d.alternateGridColor,t=c.tickmarkOffset,l=c.axisLine,
n=c.showAxis,H=q(a.renderer.globalAnimation),x,z;c.labelEdge.length=0;c.overlap=!1;[m,u,k].forEach(function(c){D(c,function(c){c.isActive=!1})});if(c.hasData()||e){var C=c.chart.hasRendered&&c.old&&w(c.old.min);c.minorTickInterval&&!c.categories&&c.getMinorTickPositions().forEach(function(a){c.renderMinorTick(a,C)});b.length&&(b.forEach(function(a,g){c.renderTick(a,g,C)}),t&&(0===c.min||c.single)&&(m[-1]||(m[-1]=new E(c,-1,null,!0)),m[-1].render(-1)));f&&b.forEach(function(d,h){z="undefined"!==typeof b[h+
1]?b[h+1]+t:c.max-t;0===h%2&&d<c.max&&z<=c.max+(a.polar?-t:t)&&(k[d]||(k[d]=new A.PlotLineOrBand(c)),x=d+t,k[d].options={from:g?g.lin2log(x):x,to:g?g.lin2log(z):z,color:f,className:"highcharts-alternate-grid"},k[d].render(),k[d].isActive=!0)});c._addedPlotLB||(c._addedPlotLB=!0,(d.plotLines||[]).concat(d.plotBands||[]).forEach(function(a){c.addPlotBandOrLine(a)}))}[m,u,k].forEach(function(c){var g=[],d=H.duration;D(c,function(c,a){c.isActive||(c.render(a,!1,0),c.isActive=!1,g.push(a))});S(function(){for(var a=
g.length;a--;)c[g[a]]&&!c[g[a]].isActive&&(c[g[a]].destroy(),delete c[g[a]])},c!==k&&a.hasRendered&&d?d:0)});l&&(l[l.isPlaced?"animate":"attr"]({d:this.getLinePath(l.strokeWidth())}),l.isPlaced=!0,l[n?"show":"hide"](n));p&&n&&(d=c.getTitlePosition(),w(d.y)?(p[p.isNew?"attr":"animate"](d),p.isNew=!1):(p.attr("y",-9999),p.isNew=!0));F&&F.enabled&&c.stacking&&c.stacking.renderStackTotals();c.old={len:c.len,max:c.max,min:c.min,transA:c.transA,userMax:c.userMax,userMin:c.userMin};c.isDirty=!1;h(this,"afterRender")};
b.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(c){c.render()}));this.series.forEach(function(c){c.isDirty=!0})};b.prototype.getKeepProps=function(){return this.keepProps||b.keepProps};b.prototype.destroy=function(c){var a=this,g=a.plotLinesAndBands,d=this.eventOptions;h(this,"destroy",{keepEvents:c});c||P(a);[a.ticks,a.minorTicks,a.alternateBands].forEach(function(c){C(c)});if(g)for(c=g.length;c--;)g[c].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(c){a[c]&&
(a[c]=a[c].destroy())});for(var e in a.plotLinesAndBandsGroups)a.plotLinesAndBandsGroups[e]=a.plotLinesAndBandsGroups[e].destroy();D(a,function(c,g){-1===a.getKeepProps().indexOf(g)&&delete a[g]});this.eventOptions=d};b.prototype.drawCrosshair=function(c,a){var g=this.crosshair,d=H(g&&g.snap,!0),e=this.chart,b,p=this.cross;h(this,"drawCrosshair",{e:c,point:a});c||(c=this.cross&&this.cross.e);if(g&&!1!==(z(a)||!d)){d?z(a)&&(b=H("colorAxis"!==this.coll?a.crosshairPos:null,this.isXAxis?a.plotX:this.len-
a.plotY)):b=c&&(this.horiz?c.chartX-this.pos:this.len-c.chartY+this.pos);if(z(b)){var u={value:a&&(this.isXAxis?a.x:H(a.stackY,a.y)),translatedValue:b};e.polar&&m(u,{isCrosshair:!0,chartX:c&&c.chartX,chartY:c&&c.chartY,point:a});u=this.getPlotLinePath(u)||null}if(!z(u)){this.hideCrosshair();return}d=this.categories&&!this.isRadial;p||(this.cross=p=e.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(d?"category ":"thin ")+(g.className||"")).attr({zIndex:H(g.zIndex,2)}).add(),e.styledMode||
(p.attr({stroke:g.color||(d?v.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":H(g.width,1)}).css({"pointer-events":"none"}),g.dashStyle&&p.attr({dashstyle:g.dashStyle})));p.show().attr({d:u});d&&!g.width&&p.attr({"stroke-width":this.transA});this.cross.e=c}else this.hideCrosshair();h(this,"afterDrawCrosshair",{e:c,point:a})};b.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();h(this,"afterHideCrosshair")};b.prototype.hasVerticalPanning=function(){var c=this.chart.options.chart.panning;
return!!(c&&c.enabled&&/y/.test(c.type))};b.prototype.validatePositiveValue=function(c){return w(c)&&0<c};b.prototype.update=function(c,a){var g=this.chart;c=F(this.userOptions,c);this.destroy(!0);this.init(g,c);g.isDirtyBox=!0;H(a,!0)&&g.redraw()};b.prototype.remove=function(c){for(var a=this.chart,g=this.coll,d=this.series,e=d.length;e--;)d[e]&&d[e].remove(!1);x(a.axes,this);x(a[g],this);a[g].forEach(function(c,a){c.options.index=c.userOptions.index=a});this.destroy();a.isDirtyBox=!0;H(c,!0)&&a.redraw()};
b.prototype.setTitle=function(c,a){this.update({title:c},a)};b.prototype.setCategories=function(c,a){this.update({categories:c},a)};b.defaultOptions=f.defaultXAxisOptions;b.keepProps="extKey hcEvents names series userMax userMin".split(" ");return b}();"";return b});I(f,"Core/Axis/DateTimeAxis.js",[f["Core/Utilities.js"]],function(b){var f=b.addEvent,v=b.getMagnitude,B=b.normalizeTickInterval,r=b.timeUnits,A;(function(b){function y(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}
function q(e){"datetime"!==e.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new n(this))}var l=[];b.compose=function(e){-1===l.indexOf(e)&&(l.push(e),e.keepProps.push("dateTime"),e.prototype.getTimeTicks=y,f(e,"init",q));return e};var n=function(){function e(a){this.axis=a}e.prototype.normalizeTimeTickInterval=function(a,d){var e=d||[["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]];d=e[e.length-1];var b=r[d[0]],f=d[1],l;for(l=0;l<e.length&&!(d=e[l],b=r[d[0]],f=d[1],e[l+1]&&a<=(b*f[f.length-1]+r[e[l+1][0]])/2);l++);b===r.year&&a<5*b&&(f=[1,2,5]);a=B(a/b,f,"year"===d[0]?Math.max(v(a/b),1):1);return{unitRange:b,count:a,unitName:d[0]}};e.prototype.getXDateFormat=function(a,d){var e=this.axis;return e.closestPointRange?e.chart.time.getDateFormat(e.closestPointRange,a,e.options.startOfWeek,d)||d.year:d.day};return e}();b.Additions=
n})(A||(A={}));return A});I(f,"Core/Axis/LogarithmicAxis.js",[f["Core/Utilities.js"]],function(b){var f=b.addEvent,v=b.getMagnitude,B=b.normalizeTickInterval,r=b.pick,A;(function(b){function y(e){var a=this.logarithmic;"logarithmic"!==e.userOptions.type?this.logarithmic=void 0:a||(this.logarithmic=new n(this))}function q(){var e=this.logarithmic;e&&(this.lin2val=function(a){return e.lin2log(a)},this.val2lin=function(a){return e.log2lin(a)})}var l=[];b.compose=function(e){-1===l.indexOf(e)&&(l.push(e),
e.keepProps.push("logarithmic"),f(e,"init",y),f(e,"afterInit",q));return e};var n=function(){function e(a){this.axis=a}e.prototype.getLogTickPositions=function(a,d,e,b){var k=this.axis,f=k.len,l=k.options,t=[];b||(this.minorAutoInterval=void 0);if(.5<=a)a=Math.round(a),t=k.getLinearTickPositions(a,d,e);else if(.08<=a){var m=Math.floor(d),h,u=l=void 0;for(f=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];m<e+1&&!u;m++){var c=f.length;for(h=0;h<c&&!u;h++){var w=this.log2lin(this.lin2log(m)*f[h]);
w>d&&(!b||l<=e)&&"undefined"!==typeof l&&t.push(l);l>e&&(u=!0);l=w}}}else d=this.lin2log(d),e=this.lin2log(e),a=b?k.getMinorTickInterval():l.tickInterval,a=r("auto"===a?null:a,this.minorAutoInterval,l.tickPixelInterval/(b?5:1)*(e-d)/((b?f/k.tickPositions.length:f)||1)),a=B(a,void 0,v(a)),t=k.getLinearTickPositions(a,d,e).map(this.log2lin),b||(this.minorAutoInterval=a/5);b||(k.tickInterval=a);return t};e.prototype.lin2log=function(a){return Math.pow(10,a)};e.prototype.log2lin=function(a){return Math.log(a)/
Math.LN10};return e}();b.Additions=n})(A||(A={}));return A});I(f,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[f["Core/Utilities.js"]],function(b){var f=b.erase,v=b.extend,B=b.isNumber,r;(function(b){var r=[],y;b.compose=function(b,f){y||(y=b);-1===r.indexOf(f)&&(r.push(f),v(f.prototype,q.prototype));return f};var q=function(){function b(){}b.prototype.getPlotBandPath=function(b,e,a){void 0===a&&(a=this.options);var d=this.getPlotLinePath({value:e,force:!0,acrossPanes:a.acrossPanes}),k=[],f=this.horiz;
e=!B(this.min)||!B(this.max)||b<this.min&&e<this.min||b>this.max&&e>this.max;b=this.getPlotLinePath({value:b,force:!0,acrossPanes:a.acrossPanes});a=1;if(b&&d){if(e){var l=b.toString()===d.toString();a=0}for(e=0;e<b.length;e+=2){var n=b[e],x=b[e+1],t=d[e],m=d[e+1];"M"!==n[0]&&"L"!==n[0]||"M"!==x[0]&&"L"!==x[0]||"M"!==t[0]&&"L"!==t[0]||"M"!==m[0]&&"L"!==m[0]||(f&&t[1]===n[1]?(t[1]+=a,m[1]+=a):f||t[2]!==n[2]||(t[2]+=a,m[2]+=a),k.push(["M",n[1],n[2]],["L",x[1],x[2]],["L",m[1],m[2]],["L",t[1],t[2]],["Z"]));
k.isFlat=l}}return k};b.prototype.addPlotBand=function(b){return this.addPlotBandOrLine(b,"plotBands")};b.prototype.addPlotLine=function(b){return this.addPlotBandOrLine(b,"plotLines")};b.prototype.addPlotBandOrLine=function(b,e){var a=this,d=this.userOptions,k=new y(this,b);this.visible&&(k=k.render());if(k){this._addedPlotLB||(this._addedPlotLB=!0,(d.plotLines||[]).concat(d.plotBands||[]).forEach(function(d){a.addPlotBandOrLine(d)}));if(e){var f=d[e]||[];f.push(b);d[e]=f}this.plotLinesAndBands.push(k)}return k};
b.prototype.removePlotBandOrLine=function(b){var e=this.plotLinesAndBands,a=this.options,d=this.userOptions;if(e){for(var k=e.length;k--;)e[k].id===b&&e[k].destroy();[a.plotLines||[],d.plotLines||[],a.plotBands||[],d.plotBands||[]].forEach(function(a){for(k=a.length;k--;)(a[k]||{}).id===b&&f(a,a[k])})}};b.prototype.removePlotBand=function(b){this.removePlotBandOrLine(b)};b.prototype.removePlotLine=function(b){this.removePlotBandOrLine(b)};return b}()})(r||(r={}));return r});I(f,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",
[f["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],f["Core/Utilities.js"]],function(b,f){var v=f.arrayMax,B=f.arrayMin,r=f.defined,A=f.destroyObjectProperties,E=f.erase,y=f.fireEvent,q=f.merge,l=f.objectEach,n=f.pick;f=function(){function e(a,d){this.axis=a;d&&(this.options=d,this.id=d.id)}e.compose=function(a){return b.compose(e,a)};e.prototype.render=function(){y(this,"render");var a=this,d=a.axis,e=d.horiz,b=d.logarithmic,f=a.options,C=f.color,x=n(f.zIndex,0),t=f.events,m={},h=d.chart.renderer,
u=f.label,c=a.label,w=f.to,g=f.from,F=f.value,p=a.svgElem,D=[],H=r(g)&&r(w);D=r(F);var L=!p,P={"class":"highcharts-plot-"+(H?"band ":"line ")+(f.className||"")},K=H?"bands":"lines";b&&(g=b.log2lin(g),w=b.log2lin(w),F=b.log2lin(F));d.chart.styledMode||(D?(P.stroke=C||"#999999",P["stroke-width"]=n(f.width,1),f.dashStyle&&(P.dashstyle=f.dashStyle)):H&&(P.fill=C||"#e6ebf5",f.borderWidth&&(P.stroke=f.borderColor,P["stroke-width"]=f.borderWidth)));m.zIndex=x;K+="-"+x;(b=d.plotLinesAndBandsGroups[K])||(d.plotLinesAndBandsGroups[K]=
b=h.g("plot-"+K).attr(m).add());L&&(a.svgElem=p=h.path().attr(P).add(b));if(D)D=d.getPlotLinePath({value:F,lineWidth:p.strokeWidth(),acrossPanes:f.acrossPanes});else if(H)D=d.getPlotBandPath(g,w,f);else return;!a.eventsAdded&&t&&(l(t,function(c,g){p.on(g,function(c){t[g].apply(a,[c])})}),a.eventsAdded=!0);(L||!p.d)&&D&&D.length?p.attr({d:D}):p&&(D?(p.show(!0),p.animate({d:D})):p.d&&(p.hide(),c&&(a.label=c=c.destroy())));u&&(r(u.text)||r(u.formatter))&&D&&D.length&&0<d.width&&0<d.height&&!D.isFlat?
(u=q({align:e&&H&&"center",x:e?!H&&4:10,verticalAlign:!e&&H&&"middle",y:e?H?16:10:H?6:-4,rotation:e&&!H&&90},u),this.renderLabel(u,D,H,x)):c&&c.hide();return a};e.prototype.renderLabel=function(a,d,e,b){var k=this.axis,f=k.chart.renderer,l=this.label;l||(this.label=l=f.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:b}).add(),k.chart.styledMode||l.css(q({textOverflow:"ellipsis"},
a.style)));b=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=B(b);f=B(d);l.align(a,!1,{x:e,y:f,width:v(b)-e,height:v(d)-f});l.alignValue&&"left"!==l.alignValue||l.css({width:(90===l.rotation?k.height-(l.alignAttr.y-k.top):k.width-(l.alignAttr.x-k.left))+"px"});l.show(!0)};e.prototype.getLabelText=function(a){return r(a.formatter)?a.formatter.call(this):a.text};e.prototype.destroy=function(){E(this.axis.plotLinesAndBands,this);delete this.axis;A(this)};
return e}();"";"";return f});I(f,"Core/Tooltip.js",[f["Core/FormatUtilities.js"],f["Core/Globals.js"],f["Core/Renderer/RendererUtilities.js"],f["Core/Renderer/RendererRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B,r){var A=b.format,E=f.doc,y=v.distribute,q=r.addEvent,l=r.clamp,n=r.css,e=r.defined,a=r.discardElement,d=r.extend,k=r.fireEvent,G=r.isArray,z=r.isNumber,C=r.isString,x=r.merge,t=r.pick,m=r.splat,h=r.syncTimeout;b=function(){function b(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)}b.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"}}]}]})};b.prototype.bodyFormatter=function(c){return c.map(function(c){var a=c.series.tooltipOptions;return(a[(c.point.formatPrefix||"point")+"Formatter"]||c.point.tooltipFormatter).call(c.point,a[(c.point.formatPrefix||"point")+"Format"]||"")})};b.prototype.cleanSplit=function(c){this.chart.series.forEach(function(a){var g=a&&a.tt;g&&(!g.isActive||c?a.tt=g.destroy():g.isActive=!1)})};b.prototype.defaultFormatter=
function(c){var a=this.points||m(this);var g=[c.tooltipFooterHeaderFormatter(a[0])];g=g.concat(c.bodyFormatter(a));g.push(c.tooltipFooterHeaderFormatter(a[0],!0));return g};b.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(),a(this.container));r.clearTimeout(this.hideTimer);r.clearTimeout(this.tooltipTimeout)};b.prototype.getAnchor=function(c,a){var g=
this.chart,d=g.pointer,e=g.inverted,b=g.plotTop,h=g.plotLeft,u,k,w=0,f=0;c=m(c);this.followPointer&&a?("undefined"===typeof a.chartX&&(a=d.normalize(a)),d=[a.chartX-h,a.chartY-b]):c[0].tooltipPos?d=c[0].tooltipPos:(c.forEach(function(c){u=c.series.yAxis;k=c.series.xAxis;w+=c.plotX||0;f+=c.plotLow?(c.plotLow+(c.plotHigh||0))/2:c.plotY||0;k&&u&&(e?(w+=b+g.plotHeight-k.len-k.pos,f+=h+g.plotWidth-u.len-u.pos):(w+=k.pos-h,f+=u.pos-b))}),w/=c.length,f/=c.length,d=[e?g.plotWidth-f:w,e?g.plotHeight-w:f],
this.shared&&1<c.length&&a&&(e?d[0]=a.chartX-h:d[1]=a.chartY-b));return d.map(Math.round)};b.prototype.getLabel=function(){var c=this,a=this.chart.styledMode,g=this.options,d=this.split&&this.allowShared,b="tooltip"+(e(g.className)?" "+g.className:""),h=g.style.pointerEvents||(!this.followPointer&&g.stickOnContact?"auto":"none"),m=function(){c.inContact=!0},u=function(a){var g=c.chart.hoverSeries;c.inContact=c.shouldStickOnContact()&&c.chart.pointer.inClass(a.relatedTarget,"highcharts-tooltip");if(!c.inContact&&
g&&g.onMouseOut)g.onMouseOut()},k,l=this.chart.renderer;if(c.label){var t=!c.label.hasClass("highcharts-label");(d&&!t||!d&&t)&&c.destroy()}if(!this.label){if(this.outside){t=this.chart.options.chart.style;var x=B.getRendererType();this.container=k=f.doc.createElement("div");k.className="highcharts-tooltip-container";n(k,{position:"absolute",top:"1px",pointerEvents:h,zIndex:Math.max(this.options.style.zIndex||0,(t&&t.zIndex||0)+3)});q(k,"mouseenter",m);q(k,"mouseleave",u);f.doc.body.appendChild(k);
this.renderer=l=new x(k,0,0,t,void 0,void 0,l.styledMode)}d?this.label=l.g(b):(this.label=l.label("",0,0,g.shape,void 0,void 0,g.useHTML,void 0,b).attr({padding:g.padding,r:g.borderRadius}),a||this.label.attr({fill:g.backgroundColor,"stroke-width":g.borderWidth}).css(g.style).css({pointerEvents:h}).shadow(g.shadow));a&&g.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(c.outside&&!c.split){var z=this.label,C=z.xSetter,G=z.ySetter;z.xSetter=function(a){C.call(z,
c.distance);k.style.left=a+"px"};z.ySetter=function(a){G.call(z,c.distance);k.style.top=a+"px"}}this.label.on("mouseenter",m).on("mouseleave",u).attr({zIndex:8}).add()}return this.label};b.prototype.getPosition=function(c,a,g){var d=this.chart,e=this.distance,b={},h=d.inverted&&g.h||0,m=this.outside,u=m?E.documentElement.clientWidth-2*e:d.chartWidth,k=m?Math.max(E.body.scrollHeight,E.documentElement.scrollHeight,E.body.offsetHeight,E.documentElement.offsetHeight,E.documentElement.clientHeight):d.chartHeight,
w=d.pointer.getChartPosition(),f=function(b){var h="x"===b;return[b,h?u:k,h?c:a].concat(m?[h?c*w.scaleX:a*w.scaleY,h?w.left-e+(g.plotX+d.plotLeft)*w.scaleX:w.top-e+(g.plotY+d.plotTop)*w.scaleY,0,h?u:k]:[h?c:a,h?g.plotX+d.plotLeft:g.plotY+d.plotTop,h?d.plotLeft:d.plotTop,h?d.plotLeft+d.plotWidth:d.plotTop+d.plotHeight])},l=f("y"),n=f("x"),x;f=!!g.negative;!d.polar&&d.hoverSeries&&d.hoverSeries.yAxis&&d.hoverSeries.yAxis.reversed&&(f=!f);var z=!this.followPointer&&t(g.ttBelow,!d.inverted===f),C=function(c,
a,g,d,p,u,k){var f=m?"y"===c?e*w.scaleY:e*w.scaleX:e,D=(g-d)/2,F=d<p-e,l=p+e+d<a,t=p-f-g+D;p=p+f-D;if(z&&l)b[c]=p;else if(!z&&F)b[c]=t;else if(F)b[c]=Math.min(k-d,0>t-h?t:t-h);else if(l)b[c]=Math.max(u,p+h+g>a?p:p+h);else return!1},q=function(c,a,g,d,h){var p;h<e||h>a-e?p=!1:b[c]=h<g/2?1:h>a-d/2?a-d-2:h-g/2;return p},G=function(c){var a=l;l=n;n=a;x=c},r=function(){!1!==C.apply(0,l)?!1!==q.apply(0,n)||x||(G(!0),r()):x?b.x=b.y=0:(G(!0),r())};(d.inverted||1<this.len)&&G();r();return b};b.prototype.hide=
function(c){var a=this;r.clearTimeout(this.hideTimer);c=t(c,this.options.hideDelay);this.isHidden||(this.hideTimer=h(function(){a.getLabel().fadeOut(c?void 0:c);a.isHidden=!0},c))};b.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=t(a.outside,!(!c.scrollablePixelsX&&!c.scrollablePixelsY))};b.prototype.shouldStickOnContact=function(){return!(this.followPointer||
!this.options.stickOnContact)};b.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)};b.prototype.move=function(c,a,g,b){var e=this,h=e.now,m=!1!==e.options.animation&&!e.isHidden&&(1<Math.abs(c-h.x)||1<Math.abs(a-h.y)),u=e.followPointer||1<e.len;d(h,{x:m?(2*h.x+c)/3:c,y:m?(h.y+a)/2:a,anchorX:u?void 0:m?(2*h.anchorX+g)/3:g,anchorY:u?void 0:m?(h.anchorY+b)/2:b});e.getLabel().attr(h);e.drawTracker();m&&(r.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=
setTimeout(function(){e&&e.move(c,a,g,b)},32))};b.prototype.refresh=function(c,a){var g=this.chart,d=this.options,e=m(c),b=e[0],h=[],u=d.formatter||this.defaultFormatter,w=this.shared,f=g.styledMode,l={};if(d.enabled&&b.series){r.clearTimeout(this.hideTimer);this.allowShared=!(!G(c)&&c.series&&c.series.noSharedTooltip);this.followPointer=!this.split&&b.series.tooltipOptions.followPointer;c=this.getAnchor(c,a);var n=c[0],x=c[1];w&&this.allowShared?(g.pointer.applyInactiveState(e),e.forEach(function(c){c.setState("hover");
h.push(c.getLabelConfig())}),l={x:b.category,y:b.y},l.points=h):l=b.getLabelConfig();this.len=h.length;u=u.call(l,this);w=b.series;this.distance=t(w.tooltipOptions.distance,16);if(!1===u)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(u,e);else{var z=n,C=x;a&&g.pointer.isDirectTouch&&(z=a.chartX-g.plotLeft,C=a.chartY-g.plotTop);if(g.polar||!1===w.options.clip||e.some(function(c){return c.series.shouldShowTooltip(z,C)}))a=this.getLabel(),d.style.width&&!f||a.css({width:this.chart.spacingBox.width+
"px"}),a.attr({text:u&&u.join?u.join(""):u}),a.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+t(b.colorIndex,w.colorIndex)),f||a.attr({stroke:d.borderColor||b.color||w.color||"#666666"}),this.updatePosition({plotX:n,plotY:x,negative:b.negative,ttBelow:b.ttBelow,h:c[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}k(this,"refresh")}};b.prototype.renderSplit=function(c,a){function g(c,a,g,d,b){void 0===b&&(b=!0);g?
(a=V?0:I,c=l(c-d/2,Q.left,Q.right-d-(e.outside?O:0))):(a-=ca,c=b?c-d-A:c+A,c=l(c,b?c:Q.left,Q.right));return{x:c,y:a}}var e=this,b=e.chart,h=e.chart,m=h.chartWidth,u=h.chartHeight,k=h.plotHeight,w=h.plotLeft,f=h.plotTop,n=h.pointer,x=h.scrollablePixelsY;x=void 0===x?0:x;var z=h.scrollablePixelsX,q=h.scrollingContainer;q=void 0===q?{scrollLeft:0,scrollTop:0}:q;var G=q.scrollLeft;q=q.scrollTop;var r=h.styledMode,A=e.distance,R=e.options,v=e.options.positioner,Q=e.outside&&"number"!==typeof z?E.documentElement.getBoundingClientRect():
{left:G,right:G+m,top:q,bottom:q+u},B=e.getLabel(),J=this.renderer||b.renderer,V=!(!b.xAxis[0]||!b.xAxis[0].opposite);b=n.getChartPosition();var O=b.left;b=b.top;var ca=f+q,da=0,I=k-x;C(c)&&(c=[!1,c]);c=c.slice(0,a.length+1).reduce(function(c,d,b){if(!1!==d&&""!==d){b=a[b-1]||{isHeader:!0,plotX:a[0].plotX,plotY:k,series:{}};var h=b.isHeader,p=h?e:b.series;d=d.toString();var m=p.tt,u=b.isHeader;var D=b.series;var F="highcharts-color-"+t(b.colorIndex,D.colorIndex,"none");m||(m={padding:R.padding,r:R.borderRadius},
r||(m.fill=R.backgroundColor,m["stroke-width"]=R.borderWidth),m=J.label("",0,0,R[u?"headerShape":"shape"],void 0,void 0,R.useHTML).addClass((u?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+F).attr(m).add(B));m.isActive=!0;m.attr({text:d});r||m.css(R.style).shadow(R.shadow).attr({stroke:R.borderColor||b.color||D.color||"#333333"});p=p.tt=m;u=p.getBBox();d=u.width+p.strokeWidth();h&&(da=u.height,I+=da,V&&(ca-=da));D=b.plotX;D=void 0===D?0:D;F=b.plotY;F=void 0===F?0:F;m=b.series;if(b.isHeader){D=
w+D;var n=f+k/2}else{var H=m.xAxis,x=m.yAxis;D=H.pos+l(D,-A,H.len+A);m.shouldShowTooltip(0,x.pos-f+F,{ignoreX:!0})&&(n=x.pos+F)}D=l(D,Q.left-A,Q.right+A);"number"===typeof n?(u=u.height+1,F=v?v.call(e,d,u,b):g(D,n,h,d),c.push({align:v?0:void 0,anchorX:D,anchorY:n,boxWidth:d,point:b,rank:t(F.rank,h?1:0),size:u,target:F.y,tt:p,x:F.x})):p.isActive=!1}return c},[]);!v&&c.some(function(c){var a=(e.outside?O:0)+c.anchorX;return a<Q.left&&a+c.boxWidth<Q.right?!0:a<O-Q.left+c.boxWidth&&Q.right-a>a})&&(c=
c.map(function(c){var a=g(c.anchorX,c.anchorY,c.point.isHeader,c.boxWidth,!1);return d(c,{target:a.y,x:a.x})}));e.cleanSplit();y(c,I);var aa=O,ea=O;c.forEach(function(c){var a=c.x,g=c.boxWidth;c=c.isHeader;c||(e.outside&&O+a<aa&&(aa=O+a),!c&&e.outside&&aa+g>ea&&(ea=O+a))});c.forEach(function(c){var a=c.x,g=c.anchorX,d=c.pos,b=c.point.isHeader;d={visibility:"undefined"===typeof d?"hidden":"inherit",x:a,y:d+ca,anchorX:g,anchorY:c.anchorY};if(e.outside&&a<g){var h=O-aa;0<h&&(b||(d.x=a+h,d.anchorX=g+
h),b&&(d.x=(ea-aa)/2,d.anchorX=g+h))}c.tt.attr(d)});c=e.container;x=e.renderer;e.outside&&c&&x&&(h=B.getBBox(),x.setSize(h.width+h.x,h.height+h.y,!1),c.style.left=aa+"px",c.style.top=b+"px")};b.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var c=this.chart,a=this.label,g=this.shared?c.hoverPoints:c.hoverPoint;if(a&&g){var d={x:0,y:0,width:0,height:0};g=this.getAnchor(g);var b=a.getBBox();g[0]+=c.plotLeft-a.translateX;
g[1]+=c.plotTop-a.translateY;d.x=Math.min(0,g[0]);d.y=Math.min(0,g[1]);d.width=0>g[0]?Math.max(Math.abs(g[0]),b.width-g[0]):Math.max(Math.abs(g[0]),b.width);d.height=0>g[1]?Math.max(Math.abs(g[1]),b.height-Math.abs(g[1])):Math.max(Math.abs(g[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)"}))}}};b.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}"')};b.prototype.tooltipFooterHeaderFormatter=function(c,a){var g=c.series,d=g.tooltipOptions,b=g.xAxis,e=b&&b.dateTime;b={isFooter:a,labelConfig:c};var h=d.xDateFormat,m=d[a?"footerFormat":"headerFormat"];k(this,"headerFormatter",b,function(a){e&&!h&&z(c.key)&&(h=e.getXDateFormat(c.key,d.dateTimeLabelFormats));e&&h&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(c){m=
m.replace("{point."+c+"}","{point."+c+":"+h+"}")});g.chart.styledMode&&(m=this.styledModeFormat(m));a.text=A(m,{point:c,series:g},this.chart)});return b.text};b.prototype.update=function(c){this.destroy();x(!0,this.chart.options.tooltip.userOptions,c);this.init(this.chart,x(!0,this.options,c))};b.prototype.updatePosition=function(c){var a=this.chart,g=this.options,d=a.pointer,b=this.getLabel();d=d.getChartPosition();var e=(g.positioner||this.getPosition).call(this,b.width,b.height,c),h=c.plotX+a.plotLeft;
c=c.plotY+a.plotTop;if(this.outside){g=g.borderWidth+2*this.distance;this.renderer.setSize(b.width+g,b.height+g,!1);if(1!==d.scaleX||1!==d.scaleY)n(this.container,{transform:"scale("+d.scaleX+", "+d.scaleY+")"}),h*=d.scaleX,c*=d.scaleY;h+=d.left-e.x;c+=d.top-e.y}this.move(Math.round(e.x),Math.round(e.y||0),h,c)};return b}();"";return b});I(f,"Core/Series/Point.js",[f["Core/Renderer/HTML/AST.js"],f["Core/Animation/AnimationUtilities.js"],f["Core/DefaultOptions.js"],f["Core/FormatUtilities.js"],f["Core/Utilities.js"]],
function(b,f,v,B,r){var A=f.animObject,E=v.defaultOptions,y=B.format,q=r.addEvent,l=r.defined,n=r.erase,e=r.extend,a=r.fireEvent,d=r.getNestedProperty,k=r.isArray,G=r.isFunction,z=r.isNumber,C=r.isObject,x=r.merge,t=r.objectEach,m=r.pick,h=r.syncTimeout,u=r.removeEvent,c=r.uniqueKey;f=function(){function f(){this.colorIndex=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.series=void 0;this.visible=
!0;this.x=void 0}f.prototype.animateBeforeDestroy=function(){var c=this,a={x:c.startXPos,opacity:0},d=c.getGraphicalProps();d.singular.forEach(function(g){c[g]=c[g].animate("dataLabel"===g?{x:c[g].startXPos,y:c[g].startYPos,opacity:0}:a)});d.plural.forEach(function(a){c[a].forEach(function(a){a.element&&a.animate(e({x:c.startXPos},a.startYPos?{x:a.startXPos,y:a.startYPos}:{}))})})};f.prototype.applyOptions=function(c,a){var g=this.series,d=g.options.pointValKey||g.pointValKey;c=f.prototype.optionsToObject.call(this,
c);e(this,c);this.options=this.options?e(this.options,c):c;c.group&&delete this.group;c.dataLabels&&delete this.dataLabels;d&&(this.y=f.prototype.getNestedProperty.call(this,d));this.formatPrefix=(this.isNull=m(this.isValid&&!this.isValid(),null===this.x||!z(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof a&&g.xAxis&&g.xAxis.hasNames&&(this.x=g.xAxis.nameToX(this));"undefined"===typeof this.x&&g?this.x="undefined"===typeof a?g.autoIncrement():a:z(c.x)&&
g.options.relativeXValue&&(this.x=g.autoIncrement(c.x));return this};f.prototype.destroy=function(){function c(){if(a.graphic||a.dataLabel||a.dataLabels)u(a),a.destroyElements();for(k in a)a[k]=null}var a=this,d=a.series,b=d.chart;d=d.options.dataSorting;var e=b.hoverPoints,m=A(a.series.chart.renderer.globalAnimation),k;a.legendItem&&b.legend.destroyItem(a);e&&(a.setState(),n(e,a),e.length||(b.hoverPoints=null));if(a===b.hoverPoint)a.onMouseOut();d&&d.enabled?(this.animateBeforeDestroy(),h(c,m.duration)):
c();b.pointCount--};f.prototype.destroyElements=function(c){var a=this;c=a.getGraphicalProps(c);c.singular.forEach(function(c){a[c]=a[c].destroy()});c.plural.forEach(function(c){a[c].forEach(function(c){c.element&&c.destroy()});delete a[c]})};f.prototype.firePointEvent=function(c,d,b){var g=this,e=this.series.options;(e.point.events[c]||g.options&&g.options.events&&g.options.events[c])&&g.importEvents();"click"===c&&e.allowPointSelect&&(b=function(c){g.select&&g.select(null,c.ctrlKey||c.metaKey||
c.shiftKey)});a(g,c,d,b)};f.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",""):"")};f.prototype.getGraphicalProps=function(c){var a=this,g=
[],d={singular:[],plural:[]},b;c=c||{graphic:1,dataLabel:1};c.graphic&&g.push("graphic","upperGraphic","shadowGroup");c.dataLabel&&g.push("dataLabel","dataLabelUpper","connector");for(b=g.length;b--;){var e=g[b];a[e]&&d.singular.push(e)}["dataLabel","connector"].forEach(function(g){var b=g+"s";c[g]&&a[b]&&d.plural.push(b)});return d};f.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}};f.prototype.getNestedProperty=function(c){if(c)return 0===c.indexOf("custom.")?d(c,this.options):this[c]};f.prototype.getZone=function(){var c=this.series,a=c.zones;c=c.zoneAxis||"y";var d,b=0;for(d=a[b];this[c]>=d.value;)d=a[++b];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=d&&d.color&&!this.options.color?d.color:this.nonZonedColor;return d};f.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||
this.graphic.element.nodeName))!==this.shapeType};f.prototype.init=function(g,d,b){this.series=g;this.applyOptions(d,b);this.id=l(this.id)?this.id:c();this.resolveColor();g.chart.pointCount++;a(this,"afterInit");return this};f.prototype.optionsToObject=function(c){var a=this.series,g=a.options.keys,d=g||a.pointArrayMap||["y"],b=d.length,e={},h=0,m=0;if(z(c)||null===c)e[d[0]]=c;else if(k(c))for(!g&&c.length>b&&(a=typeof c[0],"string"===a?e.name=c[0]:"number"===a&&(e.x=c[0]),h++);m<b;)g&&"undefined"===
typeof c[h]||(0<d[m].indexOf(".")?f.prototype.setNestedProperty(e,c[h],d[m]):e[d[m]]=c[h]),h++,m++;else"object"===typeof c&&(e=c,c.dataLabels&&(a._hasPointLabels=!0),c.marker&&(a._hasPointMarkers=!0));return e};f.prototype.resolveColor=function(){var c=this.series,a=c.chart.styledMode;var d=c.chart.options.chart.colorCount;delete this.nonZonedColor;if(c.options.colorByPoint){if(!a){d=c.options.colors||c.chart.options.colors;var b=d[c.colorCounter];d=d.length}a=c.colorCounter;c.colorCounter++;c.colorCounter===
d&&(c.colorCounter=0)}else a||(b=c.color),a=c.colorIndex;this.colorIndex=m(this.options.colorIndex,a);this.color=m(this.options.color,b)};f.prototype.setNestedProperty=function(c,a,d){d.split(".").reduce(function(c,g,d,b){c[g]=b.length-1===d?a:C(c[g],!0)?c[g]:{};return c[g]},c);return c};f.prototype.tooltipFormatter=function(c){var a=this.series,g=a.tooltipOptions,d=m(g.valueDecimals,""),b=g.valuePrefix||"",e=g.valueSuffix||"";a.chart.styledMode&&(c=a.chart.tooltip.styledModeFormat(c));(a.pointArrayMap||
["y"]).forEach(function(a){a="{point."+a;if(b||e)c=c.replace(RegExp(a+"}","g"),b+a+"}"+e);c=c.replace(RegExp(a+"}","g"),a+":,."+d+"f}")});return y(c,{point:this,series:this.series},a.chart)};f.prototype.update=function(c,a,d,b){function g(){e.applyOptions(c);var g=p&&e.hasDummyGraphic;g=null===e.y?!g:g;p&&g&&(e.graphic=p.destroy(),delete e.hasDummyGraphic);C(c,!0)&&(p&&p.element&&c&&c.marker&&"undefined"!==typeof c.marker.symbol&&(e.graphic=p.destroy()),c&&c.dataLabels&&e.dataLabel&&(e.dataLabel=
e.dataLabel.destroy()),e.connector&&(e.connector=e.connector.destroy()));f=e.index;h.updateParallelArrays(e,f);k.data[f]=C(k.data[f],!0)||C(c,!0)?e.options:m(c,k.data[f]);h.isDirty=h.isDirtyData=!0;!h.fixedBox&&h.hasCartesianSeries&&(u.isDirtyBox=!0);"point"===k.legendType&&(u.isDirtyLegend=!0);a&&u.redraw(d)}var e=this,h=e.series,p=e.graphic,u=h.chart,k=h.options,f;a=m(a,!0);!1===b?g():e.firePointEvent("update",{options:c},g)};f.prototype.remove=function(c,a){this.series.removePoint(this.series.data.indexOf(this),
c,a)};f.prototype.select=function(c,a){var g=this,d=g.series,b=d.chart;this.selectedStaging=c=m(c,!g.selected);g.firePointEvent(c?"select":"unselect",{accumulate:a},function(){g.selected=g.options.selected=c;d.options.data[d.data.indexOf(g)]=g.options;g.setState(c&&"select");a||b.getSelectedPoints().forEach(function(c){var a=c.series;c.selected&&c!==g&&(c.selected=c.options.selected=!1,a.options.data[a.data.indexOf(c)]=c.options,c.setState(b.hoverPoints&&a.options.inactiveOtherPoints?"inactive":""),
c.firePointEvent("unselect"))})});delete this.selectedStaging};f.prototype.onMouseOver=function(c){var a=this.series.chart,g=a.pointer;c=c?g.normalize(c):g.getChartCoordinatesFromPoint(this,a.inverted);g.runPointActions(c,this)};f.prototype.onMouseOut=function(){var c=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(c.hoverPoints||[]).forEach(function(c){c.setState()});c.hoverPoints=c.hoverPoint=null};f.prototype.importEvents=function(){if(!this.hasImportedEvents){var c=
this,a=x(c.series.options.point,c.options).events;c.events=a;t(a,function(a,g){G(a)&&q(c,g,a)});this.hasImportedEvents=!0}};f.prototype.setState=function(c,d){var g=this.series,h=this.state,u=g.options.states[c||"normal"]||{},k=E.plotOptions[g.type].marker&&g.options.marker,f=k&&!1===k.enabled,w=k&&k.states&&k.states[c||"normal"]||{},l=!1===w.enabled,t=this.marker||{},n=g.chart,x=k&&g.markerAttribs,F=g.halo,C,q=g.stateMarkerGraphic;c=c||"";if(!(c===this.state&&!d||this.selected&&"select"!==c||!1===
u.enabled||c&&(l||f&&!1===w.enabled)||c&&t.states&&t.states[c]&&!1===t.states[c].enabled)){this.state=c;x&&(C=g.markerAttribs(this,c));if(this.graphic&&!this.hasDummyGraphic){h&&this.graphic.removeClass("highcharts-point-"+h);c&&this.graphic.addClass("highcharts-point-"+c);if(!n.styledMode){var G=g.pointAttribs(this,c);var R=m(n.options.chart.animation,u.animation);g.options.inactiveOtherPoints&&z(G.opacity)&&((this.dataLabels||[]).forEach(function(c){c&&c.animate({opacity:G.opacity},R)}),this.connector&&
this.connector.animate({opacity:G.opacity},R));this.graphic.animate(G,R)}C&&this.graphic.animate(C,m(n.options.chart.animation,w.animation,k.animation));q&&q.hide()}else{if(c&&w){h=t.symbol||g.symbol;q&&q.currentSymbol!==h&&(q=q.destroy());if(C)if(q)q[d?"animate":"attr"]({x:C.x,y:C.y});else h&&(g.stateMarkerGraphic=q=n.renderer.symbol(h,C.x,C.y,C.width,C.height).add(g.markerGroup),q.currentSymbol=h);!n.styledMode&&q&&"inactive"!==this.state&&q.attr(g.pointAttribs(this,c))}q&&(q[c&&this.isInside?"show":
"hide"](),q.element.point=this,q.addClass(this.getClassName(),!0))}u=u.halo;C=(q=this.graphic||q)&&q.visibility||"inherit";u&&u.size&&q&&"hidden"!==C&&!this.isCluster?(F||(g.halo=F=n.renderer.path().add(q.parentGroup)),F.show()[d?"animate":"attr"]({d:this.haloPath(u.size)}),F.attr({"class":"highcharts-halo highcharts-color-"+m(this.colorIndex,g.colorIndex)+(this.className?" "+this.className:""),visibility:C,zIndex:-1}),F.point=this,n.styledMode||F.attr(e({fill:this.color||g.color,"fill-opacity":u.opacity},
b.filterUserAttributes(u.attributes||{})))):F&&F.point&&F.point.haloPath&&F.animate({d:F.point.haloPath(0)},null,F.hide);a(this,"afterSetState",{state:c})}};f.prototype.haloPath=function(c){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-c,this.plotY-c,2*c,2*c)};return f}();"";return f});I(f,"Core/Pointer.js",[f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Tooltip.js"],f["Core/Utilities.js"]],function(b,f,v,B){var r=b.parse,A=f.charts,E=f.noop,y=B.addEvent,q=B.attr,
l=B.css,n=B.defined,e=B.extend,a=B.find,d=B.fireEvent,k=B.isNumber,G=B.isObject,z=B.objectEach,C=B.offset,x=B.pick,t=B.splat;b=function(){function b(a,d){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=a;this.hasDragged=!1;this.options=d;this.init(a,d)}b.prototype.applyInactiveState=function(a){var d=[],c;(a||[]).forEach(function(a){c=a.series;d.push(c);c.linkedParent&&d.push(c.linkedParent);c.linkedSeries&&(d=d.concat(c.linkedSeries));c.navigatorSeries&&
d.push(c.navigatorSeries)});this.chart.series.forEach(function(c){-1===d.indexOf(c)?c.setState("inactive",!0):c.options.inactiveOtherPoints&&c.setAllPointsToState("inactive")})};b.prototype.destroy=function(){var a=this;this.eventsToUnbind.forEach(function(a){return a()});this.eventsToUnbind=[];f.chartCount||(b.unbindDocumentMouseUp&&(b.unbindDocumentMouseUp=b.unbindDocumentMouseUp()),b.unbindDocumentTouchEnd&&(b.unbindDocumentTouchEnd=b.unbindDocumentTouchEnd()));clearInterval(a.tooltipTimeout);
z(a,function(d,c){a[c]=void 0})};b.prototype.drag=function(a){var d=this.chart,c=d.options.chart,b=this.zoomHor,g=this.zoomVert,e=d.plotLeft,h=d.plotTop,k=d.plotWidth,m=d.plotHeight,f=this.mouseDownX||0,l=this.mouseDownY||0,t=G(c.panning)?c.panning&&c.panning.enabled:c.panning,n=c.panKey&&a[c.panKey+"Key"],x=a.chartX,z=a.chartY,C=this.selectionMarker;if(!C||!C.touch)if(x<e?x=e:x>e+k&&(x=e+k),z<h?z=h:z>h+m&&(z=h+m),this.hasDragged=Math.sqrt(Math.pow(f-x,2)+Math.pow(l-z,2)),10<this.hasDragged){var q=
d.isInsidePlot(f-e,l-h,{visiblePlotOnly:!0});!d.hasCartesianSeries&&!d.mapView||!this.zoomX&&!this.zoomY||!q||n||C||(this.selectionMarker=C=d.renderer.rect(e,h,b?1:k,g?1:m,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),d.styledMode||C.attr({fill:c.selectionMarkerFill||r("#335cad").setOpacity(.25).get()}));C&&b&&(b=x-f,C.attr({width:Math.abs(b),x:(0<b?0:b)+f}));C&&g&&(b=z-l,C.attr({height:Math.abs(b),y:(0<b?0:b)+l}));q&&!C&&t&&d.pan(a,c.panning)}};b.prototype.dragStart=function(a){var d=
this.chart;d.mouseIsDown=a.type;d.cancelClick=!1;d.mouseDownX=this.mouseDownX=a.chartX;d.mouseDownY=this.mouseDownY=a.chartY};b.prototype.drop=function(a){var b=this,c=this.chart,h=this.hasPinched;if(this.selectionMarker){var g=this.selectionMarker,m=g.attr?g.attr("x"):g.x,p=g.attr?g.attr("y"):g.y,f=g.attr?g.attr("width"):g.width,t=g.attr?g.attr("height"):g.height,x={originalEvent:a,xAxis:[],yAxis:[],x:m,y:p,width:f,height:t},z=!!c.mapView;if(this.hasDragged||h)c.axes.forEach(function(c){if(c.zoomEnabled&&
n(c.min)&&(h||b[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])&&k(m)&&k(p)){var d=c.horiz,g="touchend"===a.type?c.minPixelPadding:0,e=c.toValue((d?m:p)+g);d=c.toValue((d?m+f:p+t)-g);x[c.coll].push({axis:c,min:Math.min(e,d),max:Math.max(e,d)});z=!0}}),z&&d(c,"selection",x,function(a){c.zoom(e(a,h?{animation:!1}:null))});k(c.index)&&(this.selectionMarker=this.selectionMarker.destroy());h&&this.scaleGroups()}c&&k(c.index)&&(l(c.container,{cursor:c._cursor}),c.cancelClick=10<this.hasDragged,c.mouseIsDown=this.hasDragged=
this.hasPinched=!1,this.pinchDown=[])};b.prototype.findNearestKDPoint=function(a,d,c){var b=this.chart,g=b.hoverPoint;b=b.tooltip;if(g&&b&&b.isStickyOnContact())return g;var e;a.forEach(function(a){var b=!(a.noSharedTooltip&&d)&&0>a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(c,b);if((b=G(a,!0)&&a.series)&&!(b=!G(e,!0))){b=e.distX-a.distX;var g=e.dist-a.dist,h=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex);b=0<(0!==b&&d?b:0!==g?g:0!==h?h:e.series.index>
a.series.index?-1:1)}b&&(e=a)});return e};b.prototype.getChartCoordinatesFromPoint=function(a,d){var c=a.series,b=c.xAxis;c=c.yAxis;var g=a.shapeArgs;if(b&&c){var e=x(a.clientX,a.plotX),h=a.plotY||0;a.isNode&&g&&k(g.x)&&k(g.y)&&(e=g.x,h=g.y);return d?{chartX:c.len+c.pos-h,chartY:b.len+b.pos-e}:{chartX:e+b.pos,chartY:h+c.pos}}if(g&&g.x&&g.y)return{chartX:g.x,chartY:g.y}};b.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,d=C(a);this.chartPosition=
{left:d.left,top:d.top,scaleX:1,scaleY:1};var c=a.offsetWidth;a=a.offsetHeight;2<c&&2<a&&(this.chartPosition.scaleX=d.width/c,this.chartPosition.scaleY=d.height/a);return this.chartPosition};b.prototype.getCoordinates=function(a){var d={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(c){d[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})});return d};b.prototype.getHoverData=function(b,e,c,k,g,m){var h=[];k=!(!k||!b);var u={chartX:m?m.chartX:void 0,chartY:m?
m.chartY:void 0,shared:g};d(this,"beforeGetHoverData",u);var f=e&&!e.stickyTracking?[e]:c.filter(function(c){return u.filter?u.filter(c):c.visible&&!(!g&&c.directTouch)&&x(c.options.enableMouseTracking,!0)&&c.stickyTracking});var l=k||!m?b:this.findNearestKDPoint(f,g,m);e=l&&l.series;l&&(g&&!e.noSharedTooltip?(f=c.filter(function(c){return u.filter?u.filter(c):c.visible&&!(!g&&c.directTouch)&&x(c.options.enableMouseTracking,!0)&&!c.noSharedTooltip}),f.forEach(function(c){var d=a(c.points,function(c){return c.x===
l.x&&!c.isNull});G(d)&&(c.chart.isBoosting&&(d=c.getPoint(d)),h.push(d))})):h.push(l));u={hoverPoint:l};d(this,"afterGetHoverData",u);return{hoverPoint:u.hoverPoint,hoverSeries:e,hoverPoints:h}};b.prototype.getPointFromEvent=function(a){a=a.target;for(var d;a&&!d;)d=a.point,a=a.parentNode;return d};b.prototype.onTrackerMouseOut=function(a){a=a.relatedTarget||a.toElement;var d=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!d||!a||d.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,
"highcharts-series-"+d.index)&&this.inClass(a,"highcharts-tracker")))d.onMouseOut()};b.prototype.inClass=function(a,d){for(var c;a;){if(c=q(a,"class")){if(-1!==c.indexOf(d))return!0;if(-1!==c.indexOf("highcharts-container"))return!1}a=a.parentElement}};b.prototype.init=function(a,d){this.options=d;this.chart=a;this.runChartClick=!(!d.chart.events||!d.chart.events.click);this.pinchDown=[];this.lastValidTouch={};v&&(a.tooltip=new v(a,d.tooltip),this.followTouchMove=x(d.tooltip.followTouchMove,!0));
this.setDOMEvents()};b.prototype.normalize=function(a,d){var c=a.touches,b=c?c.length?c.item(0):x(c.changedTouches,a.changedTouches)[0]:a;d||(d=this.getChartPosition());c=b.pageX-d.left;b=b.pageY-d.top;c/=d.scaleX;b/=d.scaleY;return e(a,{chartX:Math.round(c),chartY:Math.round(b)})};b.prototype.onContainerClick=function(a){var b=this.chart,c=b.hoverPoint;a=this.normalize(a);var h=b.plotLeft,g=b.plotTop;b.cancelClick||(c&&this.inClass(a.target,"highcharts-tracker")?(d(c.series,"click",e(a,{point:c})),
b.hoverPoint&&c.firePointEvent("click",a)):(e(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-h,a.chartY-g,{visiblePlotOnly:!0})&&d(b,"click",a)))};b.prototype.onContainerMouseDown=function(a){var d=1===((a.buttons||a.button)&1);a=this.normalize(a);if(f.isFirefox&&0!==a.button)this.onContainerMouseMove(a);if("undefined"===typeof a.button||d)this.zoomOption(a),d&&a.preventDefault&&a.preventDefault(),this.dragStart(a)};b.prototype.onContainerMouseLeave=function(a){var d=A[x(b.hoverChartIndex,-1)],
c=this.chart.tooltip;c&&c.shouldStickOnContact()&&this.inClass(a.relatedTarget,"highcharts-tooltip-container")||(a=this.normalize(a),d&&(a.relatedTarget||a.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0),c&&!c.isHidden&&this.reset())};b.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};b.prototype.onContainerMouseMove=function(a){var d=this.chart;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===d.mouseIsDown||this.touchSelect(a))&&
this.drag(a);d.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop,{visiblePlotOnly:!0})||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};b.prototype.onDocumentTouchEnd=function(a){var d=A[x(b.hoverChartIndex,-1)];d&&d.pointer.drop(a)};b.prototype.onContainerTouchMove=function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};b.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);
else this.zoomOption(a),this.touch(a,!0)};b.prototype.onDocumentMouseMove=function(a){var d=this.chart,c=this.chartPosition;a=this.normalize(a,c);var b=d.tooltip;!c||b&&b.isStickyOnContact()||d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop,{visiblePlotOnly:!0})||this.inClass(a.target,"highcharts-tracker")||this.reset()};b.prototype.onDocumentMouseUp=function(a){var d=A[x(b.hoverChartIndex,-1)];d&&d.pointer.drop(a)};b.prototype.pinch=function(a){var b=this,c=b.chart,h=b.pinchDown,g=a.touches||
[],k=g.length,m=b.lastValidTouch,f=b.hasZoom,l={},t=1===k&&(b.inClass(a.target,"highcharts-tracker")&&c.runTrackerClick||b.runChartClick),n={},z=b.selectionMarker;1<k?b.initiated=!0:1===k&&this.followTouchMove&&(b.initiated=!1);f&&b.initiated&&!t&&!1!==a.cancelable&&a.preventDefault();[].map.call(g,function(c){return b.normalize(c)});"touchstart"===a.type?([].forEach.call(g,function(c,a){h[a]={chartX:c.chartX,chartY:c.chartY}}),m.x=[h[0].chartX,h[1]&&h[1].chartX],m.y=[h[0].chartY,h[1]&&h[1].chartY],
c.axes.forEach(function(a){if(a.zoomEnabled){var d=c.bounds[a.horiz?"h":"v"],b=a.minPixelPadding,g=a.toPixels(Math.min(x(a.options.min,a.dataMin),a.dataMin)),e=a.toPixels(Math.max(x(a.options.max,a.dataMax),a.dataMax)),h=Math.max(g,e);d.min=Math.min(a.pos,Math.min(g,e)-b);d.max=Math.max(a.pos+a.len,h+b)}}),b.res=!0):b.followTouchMove&&1===k?this.runPointActions(b.normalize(a)):h.length&&(d(c,"touchpan",{originalEvent:a},function(){z||(b.selectionMarker=z=e({destroy:E,touch:!0},c.plotBox));b.pinchTranslate(h,
g,l,z,n,m);b.hasPinched=f;b.scaleGroups(l,n)}),b.res&&(b.res=!1,this.reset(!1,0)))};b.prototype.pinchTranslate=function(a,d,c,b,g,e){this.zoomHor&&this.pinchTranslateDirection(!0,a,d,c,b,g,e);this.zoomVert&&this.pinchTranslateDirection(!1,a,d,c,b,g,e)};b.prototype.pinchTranslateDirection=function(a,d,c,b,g,e,k,m){var h=this.chart,f=a?"x":"y",p=a?"X":"Y",u="chart"+p,l=a?"width":"height",t=h["plot"+(a?"Left":"Top")],w=h.inverted,n=h.bounds[a?"h":"v"],D=1===d.length,x=d[0][u],z=!D&&d[1][u];d=function(){"number"===
typeof r&&20<Math.abs(x-z)&&(q=m||Math.abs(G-r)/Math.abs(x-z));C=(t-G)/q+x;F=h["plot"+(a?"Width":"Height")]/q};var F,C,q=m||1,G=c[0][u],r=!D&&c[1][u];d();c=C;if(c<n.min){c=n.min;var y=!0}else c+F>n.max&&(c=n.max-F,y=!0);y?(G-=.8*(G-k[f][0]),"number"===typeof r&&(r-=.8*(r-k[f][1])),d()):k[f]=[G,r];w||(e[f]=C-t,e[l]=F);e=w?1/q:q;g[l]=F;g[f]=c;b[w?a?"scaleY":"scaleX":"scale"+p]=q;b["translate"+p]=e*t+(G-e*x)};b.prototype.reset=function(a,d){var c=this.chart,b=c.hoverSeries,g=c.hoverPoint,e=c.hoverPoints,
h=c.tooltip,k=h&&h.shared?e:g;a&&k&&t(k).forEach(function(c){c.series.isCartesian&&"undefined"===typeof c.plotX&&(a=!1)});if(a)h&&k&&t(k).length&&(h.refresh(k),h.shared&&e?e.forEach(function(c){c.setState(c.state,!0);c.series.isCartesian&&(c.series.xAxis.crosshair&&c.series.xAxis.drawCrosshair(null,c),c.series.yAxis.crosshair&&c.series.yAxis.drawCrosshair(null,c))}):g&&(g.setState(g.state,!0),c.axes.forEach(function(c){c.crosshair&&g.series[c.coll]===c&&c.drawCrosshair(null,g)})));else{if(g)g.onMouseOut();
e&&e.forEach(function(c){c.setState()});if(b)b.onMouseOut();h&&h.hide(d);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());c.axes.forEach(function(c){c.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}};b.prototype.runPointActions=function(d,e){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,g=h?h.shared:!1,k=e||c.hoverPoint,m=k&&k.series||c.hoverSeries;e=this.getHoverData(k,m,c.series,(!d||"touchmove"!==d.type)&&(!!e||m&&m.directTouch&&this.isDirectTouch),
g,d);k=e.hoverPoint;m=e.hoverSeries;var f=e.hoverPoints;e=m&&m.tooltipOptions.followPointer&&!m.tooltipOptions.split;var u=g&&m&&!m.noSharedTooltip;if(k&&(k!==c.hoverPoint||h&&h.isHidden)){(c.hoverPoints||[]).forEach(function(c){-1===f.indexOf(c)&&c.setState()});if(c.hoverSeries!==m)m.onMouseOver();this.applyInactiveState(f);(f||[]).forEach(function(c){c.setState("hover")});c.hoverPoint&&c.hoverPoint.firePointEvent("mouseOut");if(!k.series)return;c.hoverPoints=f;c.hoverPoint=k;k.firePointEvent("mouseOver",
void 0,function(){h&&k&&h.refresh(u?f:k,d)})}else e&&h&&!h.isHidden&&(g=h.getAnchor([{}],d),c.isInsidePlot(g[0],g[1],{visiblePlotOnly:!0})&&h.updatePosition({plotX:g[0],plotY:g[1]}));this.unDocMouseMove||(this.unDocMouseMove=y(c.container.ownerDocument,"mousemove",function(c){var a=A[b.hoverChartIndex];if(a)a.pointer.onDocumentMouseMove(c)}),this.eventsToUnbind.push(this.unDocMouseMove));c.axes.forEach(function(b){var g=x((b.crosshair||{}).snap,!0),e;g&&((e=c.hoverPoint)&&e.series[b.coll]===b||(e=
a(f,function(c){return c.series&&c.series[b.coll]===b})));e||!g?b.drawCrosshair(d,e):b.hideCrosshair()})};b.prototype.scaleGroups=function(a,d){var c=this.chart;c.series.forEach(function(b){var g=a||b.getPlotBox();b.group&&(b.xAxis&&b.xAxis.zoomEnabled||c.mapView)&&(b.group.attr(g),b.markerGroup&&(b.markerGroup.attr(g),b.markerGroup.clip(d?c.clipRect:null)),b.dataLabelsGroup&&b.dataLabelsGroup.attr(g))});c.clipRect.attr(d||c.clipBox)};b.prototype.setDOMEvents=function(){var a=this,d=this.chart.container,
c=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(y(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(y(d,"mouseleave",this.onContainerMouseLeave.bind(this)));b.unbindDocumentMouseUp||(b.unbindDocumentMouseUp=y(c,"mouseup",this.onDocumentMouseUp.bind(this)));for(var e=this.chart.renderTo.parentElement;e&&"BODY"!==e.tagName;)this.eventsToUnbind.push(y(e,
"scroll",function(){delete a.chartPosition})),e=e.parentElement;f.hasTouch&&(this.eventsToUnbind.push(y(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(y(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),b.unbindDocumentTouchEnd||(b.unbindDocumentTouchEnd=y(c,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};b.prototype.setHoverChartIndex=function(){var a=this.chart,d=f.charts[x(b.hoverChartIndex,-1)];if(d&&d!==a)d.pointer.onContainerMouseLeave({relatedTarget:a.container});
d&&d.mouseIsDown||(b.hoverChartIndex=a.index)};b.prototype.touch=function(a,d){var c=this.chart,b;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(b=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 g=d[0]?4<=Math.sqrt(Math.pow(d[0].chartX-a.chartX,2)+Math.pow(d[0].chartY-a.chartY,2)):!1}x(g,!0)&&this.pinch(a)}else d&&this.reset();else 2===a.touches.length&&this.pinch(a)};
b.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zoomBySingleTouch||!a.touches||1!==a.touches.length)};b.prototype.zoomOption=function(a){var d=this.chart,c=d.options.chart;d=d.inverted;var b=c.zoomType||"";/touch/.test(a.type)&&(b=x(c.pinchType,b));this.zoomX=a=/x/.test(b);this.zoomY=c=/y/.test(b);this.zoomHor=a&&!d||c&&d;this.zoomVert=c&&!d||a&&d;this.hasZoom=a||c};return b}();"";return b});I(f,"Core/MSPointer.js",[f["Core/Globals.js"],f["Core/Pointer.js"],f["Core/Utilities.js"]],
function(b,f,v){function B(){var d=[];d.item=function(a){return this[a]};a(k,function(a){d.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return d}function r(a,d,b,e){var k=E[f.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!k||(k=k.pointer,e(a),k[d]({type:b,target:a.currentTarget,preventDefault:q,touches:B()}))}var A=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=
d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(d,b)};return function(d,b){function e(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),E=b.charts,y=b.doc,q=b.noop,l=b.win,n=v.addEvent,e=v.css,a=v.objectEach,d=v.removeEvent,k={},G=!!l.PointerEvent;return function(a){function f(){return null!==a&&a.apply(this,arguments)||this}A(f,a);f.isRequired=function(){return!(b.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)};f.prototype.batchMSEvents=
function(a){a(this.chart.container,G?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,G?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(y,G?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};f.prototype.destroy=function(){this.batchMSEvents(d);a.prototype.destroy.call(this)};f.prototype.init=function(d,b){a.prototype.init.call(this,d,b);this.hasZoom&&e(d.container,{"-ms-touch-action":"none","touch-action":"none"})};f.prototype.onContainerPointerDown=
function(a){r(a,"onContainerTouchStart","touchstart",function(a){k[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};f.prototype.onContainerPointerMove=function(a){r(a,"onContainerTouchMove","touchmove",function(a){k[a.pointerId]={pageX:a.pageX,pageY:a.pageY};k[a.pointerId].target||(k[a.pointerId].target=a.currentTarget)})};f.prototype.onDocumentPointerUp=function(a){r(a,"onDocumentTouchEnd","touchend",function(a){delete k[a.pointerId]})};f.prototype.setDOMEvents=function(){a.prototype.setDOMEvents.call(this);
(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(n)};return f}(f)});I(f,"Core/Legend/Legend.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/FormatUtilities.js"],f["Core/Globals.js"],f["Core/Series/Point.js"],f["Core/Renderer/RendererUtilities.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A){var E=b.animObject,y=b.setAnimation,q=f.format;b=v.isFirefox;var l=v.marginNames;v=v.win;var n=r.distribute,e=A.addEvent,a=A.createElement,d=A.css,k=A.defined,G=A.discardElement,z=A.find,C=A.fireEvent,
x=A.isNumber,t=A.merge,m=A.pick,h=A.relativeLength,u=A.stableSort,c=A.syncTimeout;r=A.wrap;A=function(){function b(c,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=c;this.init(c,a)}b.prototype.init=function(c,a){this.chart=c;this.setOptions(a);a.enabled&&(this.render(),e(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=e(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};b.prototype.setOptions=function(c){var a=m(c.padding,
8);this.options=c;this.chart.styledMode||(this.itemStyle=c.itemStyle,this.itemHiddenStyle=t(this.itemStyle,c.itemHiddenStyle));this.itemMarginTop=c.itemMarginTop||0;this.itemMarginBottom=c.itemMarginBottom||0;this.padding=a;this.initialItemY=a-5;this.symbolWidth=m(c.symbolWidth,16);this.pages=[];this.proximate="proximate"===c.layout&&!this.chart.inverted;this.baseline=void 0};b.prototype.update=function(c,a){var d=this.chart;this.setOptions(t(!0,this.options,c));this.destroy();d.isDirtyLegend=d.isDirtyBox=
!0;m(a,!0)&&d.redraw();C(this,"afterUpdate")};b.prototype.colorizeItem=function(c,a){c.legendGroup[a?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var d=this.options,b=c.legendItem,e=c.legendLine,g=c.legendSymbol,h=this.itemHiddenStyle.color;d=a?d.itemStyle.color:h;var k=a?c.color||h:h,m=c.options&&c.options.marker,f={fill:k};b&&b.css({fill:d,color:d});e&&e.attr({stroke:k});g&&(m&&g.isMarker&&(f=c.pointAttribs(),a||(f.stroke=f.fill=h)),g.attr(f))}C(this,"afterColorizeItem",
{item:c,visible:a})};b.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};b.prototype.positionItem=function(c){var a=this,d=this.options,b=d.symbolPadding,e=!d.rtl,g=c._legendItemPos;d=g[0];g=g[1];var h=c.checkbox,m=c.legendGroup;m&&m.element&&(b={translateX:e?d:this.legendWidth-d-2*b-4,translateY:g},e=function(){C(a,"afterPositionItem",{item:c})},k(m.translateY)?m.animate(b,void 0,e):(m.attr(b),e()));h&&(h.x=d,h.y=g)};
b.prototype.destroyItem=function(c){var a=c.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(a){c[a]&&(c[a]=c[a].destroy())});a&&G(c.checkbox)};b.prototype.destroy=function(){function c(c){this[c]&&(this[c]=this[c].destroy())}this.getAllItems().forEach(function(a){["legendItem","legendGroup"].forEach(c,a)});"clipRect up down pager nav box title group".split(" ").forEach(c,this);this.display=null};b.prototype.positionCheckboxes=function(){var c=this.group&&this.group.alignAttr,
a=this.clipHeight||this.legendHeight,b=this.titleHeight;if(c){var e=c.translateY;this.allItems.forEach(function(g){var h=g.checkbox;if(h){var k=e+b+h.y+(this.scrollOffset||0)+3;d(h,{left:c.translateX+g.checkboxOffset+h.x-20+"px",top:k+"px",display:this.proximate||k>e-6&&k<e+a-6?"":"none"})}},this)}};b.prototype.renderTitle=function(){var c=this.options,a=this.padding,d=c.title,b=0;d.text&&(this.title||(this.title=this.chart.renderer.label(d.text,a-3,a-4,void 0,void 0,void 0,c.useHTML,void 0,"legend-title").attr({zIndex:1}),
this.chart.styledMode||this.title.css(d.style),this.title.add(this.group)),d.width||this.title.css({width:this.maxLegendWidth+"px"}),c=this.title.getBBox(),b=c.height,this.offsetWidth=c.width,this.contentGroup.attr({translateY:b}));this.titleHeight=b};b.prototype.setText=function(c){var a=this.options;c.legendItem.attr({text:a.labelFormat?q(a.labelFormat,c,this.chart):a.labelFormatter.call(c)})};b.prototype.renderItem=function(c){var a=this.chart,d=a.renderer,b=this.options,e=this.symbolWidth,g=b.symbolPadding||
0,h=this.itemStyle,k=this.itemHiddenStyle,f="horizontal"===b.layout?m(b.itemDistance,20):0,u=!b.rtl,l=!c.series,n=!l&&c.series.drawLegendSymbol?c.series:c,w=n.options,x=this.createCheckboxForItem&&w&&w.showCheckbox,z=b.useHTML,C=c.options.className,q=c.legendItem;w=e+g+f+(x?20:0);q||(c.legendGroup=d.g("legend-item").addClass("highcharts-"+n.type+"-series highcharts-color-"+c.colorIndex+(C?" "+C:"")+(l?" highcharts-series-"+c.index:"")).attr({zIndex:1}).add(this.scrollGroup),c.legendItem=q=d.text("",
u?e+g:-g,this.baseline||0,z),a.styledMode||q.css(t(c.visible?h:k)),q.attr({align:u?"left":"right",zIndex:2}).add(c.legendGroup),this.baseline||(this.fontMetrics=d.fontMetrics(a.styledMode?12:h.fontSize,q),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,q.attr("y",this.baseline),this.symbolHeight=b.symbolHeight||this.fontMetrics.f,b.squareSymbol&&(this.symbolWidth=m(b.symbolWidth,Math.max(this.symbolHeight,16)),w=this.symbolWidth+g+f+(x?20:0),u&&q.attr("x",this.symbolWidth+g))),n.drawLegendSymbol(this,
c),this.setItemEvents&&this.setItemEvents(c,q,z));x&&!c.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(c);this.colorizeItem(c,c.visible);!a.styledMode&&h.width||q.css({width:(b.itemWidth||this.widthOption||a.spacingBox.width)-w+"px"});this.setText(c);a=q.getBBox();d=this.fontMetrics&&this.fontMetrics.h||0;c.itemWidth=c.checkboxOffset=b.itemWidth||c.legendItemWidth||a.width+w;this.maxItemWidth=Math.max(this.maxItemWidth,c.itemWidth);this.totalItemWidth+=c.itemWidth;this.itemHeight=
c.itemHeight=Math.round(c.legendItemHeight||(a.height>1.5*d?a.height:d))};b.prototype.layoutItem=function(c){var a=this.options,d=this.padding,b="horizontal"===a.layout,e=c.itemHeight,g=this.itemMarginBottom,h=this.itemMarginTop,k=b?m(a.itemDistance,20):0,f=this.maxLegendWidth;a=a.alignColumns&&this.totalItemWidth>f?this.maxItemWidth:c.itemWidth;b&&this.itemX-d+a>f&&(this.itemX=d,this.lastLineHeight&&(this.itemY+=h+this.lastLineHeight+g),this.lastLineHeight=0);this.lastItemY=h+this.itemY+g;this.lastLineHeight=
Math.max(e,this.lastLineHeight);c._legendItemPos=[this.itemX,this.itemY];b?this.itemX+=a:(this.itemY+=h+e+g,this.lastLineHeight=e);this.offsetWidth=this.widthOption||Math.max((b?this.itemX-d-(c.checkbox?0:k):a)+d,this.offsetWidth)};b.prototype.getAllItems=function(){var c=[];this.chart.series.forEach(function(a){var d=a&&a.options;a&&m(d.showInLegend,k(d.linkedTo)?!1:void 0,!0)&&(c=c.concat(a.legendItems||("point"===d.legendType?a.data:a)))});C(this,"afterGetAllItems",{allItems:c});return c};b.prototype.getAlignment=
function(){var c=this.options;return this.proximate?c.align.charAt(0)+"tv":c.floating?"":c.align.charAt(0)+c.verticalAlign.charAt(0)+c.layout.charAt(0)};b.prototype.adjustMargins=function(c,a){var d=this.chart,b=this.options,e=this.getAlignment();e&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(g,h){g.test(e)&&!k(c[h])&&(d[l[h]]=Math.max(d[l[h]],d.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*b[h%2?"x":"y"]+m(b.margin,12)+a[h]+(d.titleOffset[h]||0)))})};
b.prototype.proximatePositions=function(){var c=this.chart,a=[],d="left"===this.options.align;this.allItems.forEach(function(b){var e;var g=d;if(b.yAxis){b.xAxis.options.reversed&&(g=!g);b.points&&(e=z(g?b.points:b.points.slice(0).reverse(),function(c){return x(c.plotY)}));g=this.itemMarginTop+b.legendItem.getBBox().height+this.itemMarginBottom;var h=b.yAxis.top-c.plotTop;b.visible?(e=e?e.plotY:b.yAxis.height,e+=h-.3*g):e=h+b.yAxis.height;a.push({target:e,size:g,item:b})}},this);n(a,c.plotHeight).forEach(function(a){a.item._legendItemPos&&
(a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos)})};b.prototype.render=function(){var c=this.chart,a=c.renderer,d=this.options,b=this.padding,e=this.getAllItems(),k=this.group,m=this.box;this.itemX=b;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=h(d.width,c.spacingBox.width-b);var f=c.spacingBox.width-2*b-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(f/=2);this.maxLegendWidth=this.widthOption||f;k||(this.group=k=a.g("legend").addClass(d.className||
"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(k),this.scrollGroup=a.g().add(this.contentGroup));this.renderTitle();u(e,function(c,a){return(c.options&&c.options.legendIndex||0)-(a.options&&a.options.legendIndex||0)});d.reversed&&e.reverse();this.allItems=e;this.display=f=!!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)+b;var l=this.lastItemY+
this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l);l+=b;m||(this.box=m=a.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(k));c.styledMode||m.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow);if(0<e&&0<l)m[m.placed?"animate":"attr"](m.crisp.call({},{x:0,y:0,width:e,height:l},m.strokeWidth()));m[f?"show":"hide"]();c.styledMode&&"none"===k.getStyle("display")&&(e=l=0);this.legendWidth=e;this.legendHeight=l;f&&
this.align();this.proximate||this.positionItems();C(this,"afterRender")};b.prototype.align=function(c){void 0===c&&(c=this.chart.spacingBox);var a=this.chart,d=this.options,b=c.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<a.titleOffset[0]?b+=a.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<a.titleOffset[2]&&(b-=a.titleOffset[2]);b!==c.y&&(c=t(c,{y:b}));a.hasRendered||(this.group.placed=!1);this.group.align(t(d,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?
"top":d.verticalAlign}),!0,c)};b.prototype.handleOverflow=function(c){var a=this,d=this.chart,b=d.renderer,e=this.options,g=e.y,h="top"===e.verticalAlign,k=this.padding,f=e.maxHeight,u=e.navigation,l=m(u.animation,!0),t=u.arrowSize||12,n=this.pages,w=this.allItems,x=function(c){"number"===typeof c?r.attr({height:c}):r&&(a.clipRect=r.destroy(),a.contentGroup.clip());a.contentGroup.div&&(a.contentGroup.div.style.clip=c?"rect("+k+"px,9999px,"+(k+c)+"px,0)":"auto")},z=function(c){a[c]=b.circle(0,0,1.3*
t).translate(t/2,t/2).add(G);d.styledMode||a[c].attr("fill","rgba(0,0,0,0.0001)");return a[c]},C,q;g=d.spacingBox.height+(h?-g:g)-k;var G=this.nav,r=this.clipRect;"horizontal"!==e.layout||"middle"===e.verticalAlign||e.floating||(g/=2);f&&(g=Math.min(g,f));n.length=0;c&&0<g&&c>g&&!1!==u.enabled?(this.clipHeight=C=Math.max(g-20-this.titleHeight-k,0),this.currentPage=m(this.currentPage,1),this.fullHeight=c,w.forEach(function(c,a){var d=c._legendItemPos[1],b=Math.round(c.legendItem.getBBox().height),
e=n.length;if(!e||d-n[e-1]>C&&(q||d)!==n[e-1])n.push(q||d),e++;c.pageIx=e-1;q&&(w[a-1].pageIx=e-1);a===w.length-1&&d+b-n[e-1]>C&&b<=C&&(n.push(d),c.pageIx=e);d!==q&&(q=d)}),r||(r=a.clipRect=b.clipRect(0,k,9999,0),a.contentGroup.clip(r)),x(C),G||(this.nav=G=b.g().attr({zIndex:1}).add(this.group),this.up=b.symbol("triangle",0,0,t,t).add(G),z("upTracker").on("click",function(){a.scroll(-1,l)}),this.pager=b.text("",15,10).addClass("highcharts-legend-navigation"),!d.styledMode&&u.style&&this.pager.css(u.style),
this.pager.add(G),this.down=b.symbol("triangle-down",0,0,t,t).add(G),z("downTracker").on("click",function(){a.scroll(1,l)})),a.scroll(0),c=g):G&&(x(),this.nav=G.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return c};b.prototype.scroll=function(a,d){var b=this,e=this.chart,g=this.pages,h=g.length,k=this.clipHeight,f=this.options.navigation,u=this.pager,l=this.padding,t=this.currentPage+a;t>h&&(t=h);0<t&&("undefined"!==typeof d&&y(d,e),this.nav.attr({translateX:l,translateY:k+
this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(c){c.attr({"class":1===t?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),u.attr({text:t+"/"+h}),[this.down,this.downTracker].forEach(function(c){c.attr({x:18+this.pager.getBBox().width,"class":t===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:1===t?f.inactiveColor:f.activeColor}),this.upTracker.css({cursor:1===t?"default":
"pointer"}),this.down.attr({fill:t===h?f.inactiveColor:f.activeColor}),this.downTracker.css({cursor:t===h?"default":"pointer"})),this.scrollOffset=-g[t-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=t,this.positionCheckboxes(),a=E(m(d,e.renderer.globalAnimation,!0)),c(function(){C(b,"afterScroll",{currentPage:t})},a.duration))};b.prototype.setItemEvents=function(c,a,d){var b=this,e=b.chart.renderer.boxWrapper,g=c instanceof B,h="highcharts-legend-"+
(g?"point":"series")+"-active",k=b.chart.styledMode,m=function(a){b.allItems.forEach(function(d){c!==d&&[d].concat(d.linkedSeries||[]).forEach(function(c){c.setState(a,!g)})})};(d?[a,c.legendSymbol]:[c.legendGroup]).forEach(function(d){if(d)d.on("mouseover",function(){c.visible&&m("inactive");c.setState("hover");c.visible&&e.addClass(h);k||a.css(b.options.itemHoverStyle)}).on("mouseout",function(){b.chart.styledMode||a.css(t(c.visible?b.itemStyle:b.itemHiddenStyle));m("");e.removeClass(h);c.setState()}).on("click",
function(a){var d=function(){c.setVisible&&c.setVisible();m(c.visible?"inactive":"")};e.removeClass(h);a={browserEvent:a};c.firePointEvent?c.firePointEvent("legendItemClick",a,d):C(c,"legendItemClick",a,d)})})};b.prototype.createCheckboxForItem=function(c){c.checkbox=a("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:c.selected,defaultChecked:c.selected},this.options.itemCheckboxStyle,this.chart.container);e(c.checkbox,"click",function(a){C(c.series||c,"checkboxClick",{checked:a.target.checked,
item:c},function(){c.select()})})};return b}();(/Trident\/7\.0/.test(v.navigator&&v.navigator.userAgent)||b)&&r(A.prototype,"positionItem",function(c,a){var d=this,b=function(){a._legendItemPos&&c.call(d,a)};b();d.bubbleLegend||setTimeout(b)});"";return A});I(f,"Core/Series/SeriesRegistry.js",[f["Core/Globals.js"],f["Core/DefaultOptions.js"],f["Core/Series/Point.js"],f["Core/Utilities.js"]],function(b,f,v,B){var r=f.defaultOptions,A=B.error,E=B.extendClass,y=B.merge,q;(function(f){function l(b,a){var d=
r.plotOptions||{},e=a.defaultOptions;a.prototype.pointClass||(a.prototype.pointClass=v);a.prototype.type=b;e&&(d[b]=e);f.seriesTypes[b]=a}f.seriesTypes=b.seriesTypes;f.getSeries=function(b,a){void 0===a&&(a={});var d=b.options.chart;d=a.type||d.type||d.defaultSeriesType||"";var e=f.seriesTypes[d];f||A(17,!0,b,{missingModuleFor:d});d=new e;"function"===typeof d.init&&d.init(b,a);return d};f.registerSeriesType=l;f.seriesType=function(b,a,d,k,n){var e=r.plotOptions||{};a=a||"";e[b]=y(e[a],d);l(b,E(f.seriesTypes[a]||
function(){},k));f.seriesTypes[b].prototype.type=b;n&&(f.seriesTypes[b].prototype.pointClass=E(v,n));return f.seriesTypes[b]}})(q||(q={}));return q});I(f,"Core/Chart/Chart.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Axis/Axis.js"],f["Core/FormatUtilities.js"],f["Core/Foundation.js"],f["Core/Globals.js"],f["Core/Legend/Legend.js"],f["Core/MSPointer.js"],f["Core/DefaultOptions.js"],f["Core/Pointer.js"],f["Core/Renderer/RendererRegistry.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Renderer/SVG/SVGRenderer.js"],
f["Core/Time.js"],f["Core/Utilities.js"],f["Core/Renderer/HTML/AST.js"]],function(b,f,v,B,r,A,E,y,q,l,n,e,a,d,k){var G=b.animate,z=b.animObject,C=b.setAnimation,x=v.numberFormat,t=B.registerEventOptions,m=r.charts,h=r.doc,u=r.marginNames,c=r.svg,w=r.win,g=y.defaultOptions,F=y.defaultTime,p=n.seriesTypes,D=d.addEvent,H=d.attr,L=d.cleanRecursively,J=d.createElement,K=d.css,S=d.defined,W=d.discardElement,I=d.erase,M=d.error,ba=d.extend,fa=d.find,N=d.fireEvent,Y=d.getStyle,R=d.isArray,Z=d.isNumber,Q=
d.isObject,U=d.isString,T=d.merge,V=d.objectEach,O=d.pick,ca=d.pInt,da=d.relativeLength,ha=d.removeEvent,aa=d.splat,ea=d.syncTimeout,ia=d.uniqueKey;b=function(){function b(c,a,b){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(c,a,b)}b.chart=function(c,a,d){return new b(c,a,d)};b.prototype.getArgs=function(c,a,b){U(c)||c.nodeName?(this.renderTo=c,this.init(a,b)):this.init(c,a)};b.prototype.init=function(c,b){var d=c.plotOptions||{};N(this,"init",{args:arguments},function(){var e=T(g,c),h=e.chart;V(e.plotOptions,
function(c,a){Q(c)&&(c.tooltip=d[a]&&T(d[a].tooltip)||void 0)});e.tooltip.userOptions=c.chart&&c.chart.forExport&&c.tooltip.userOptions||c.tooltip;this.userOptions=c;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=b;this.isResizing=0;this.options=e;this.axes=[];this.series=[];this.time=c.time&&Object.keys(c.time).length?new a(c.time):r.time;this.numberFormatter=h.numberFormatter||x;this.styledMode=h.styledMode;this.hasCartesianSeries=h.showAxes;this.index=
m.length;m.push(this);r.chartCount++;t(this,h);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;N(this,"afterInit");this.firstRender()})};b.prototype.initSeries=function(c){var a=this.options.chart;a=c.type||a.type||a.defaultSeriesType;var b=p[a];b||M(17,!0,this,{missingModuleFor:a});a=new b;"function"===typeof a.init&&a.init(this,c);return a};b.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(c){c.points||c.data||!c.enabledDataSorting||
c.setData(c.options.data,!1)})};b.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(c,a){return c.linkedSeries.length||a.linkedSeries.length?a.linkedSeries.length-c.linkedSeries.length:0})};b.prototype.orderSeries=function(c){var a=this.series;c=c||0;for(var b=a.length;c<b;++c)a[c]&&(a[c].index=c,a[c].name=a[c].getName())};b.prototype.isInsidePlot=function(c,a,b){void 0===b&&(b={});var d=this.inverted,e=this.plotBox,g=this.plotLeft,h=this.plotTop,k=this.scrollablePlotBox,
m=0;var f=0;b.visiblePlotOnly&&this.scrollingContainer&&(f=this.scrollingContainer,m=f.scrollLeft,f=f.scrollTop);var u=b.series;e=b.visiblePlotOnly&&k||e;k=b.inverted?a:c;a=b.inverted?c:a;c={x:k,y:a,isInsidePlot:!0};if(!b.ignoreX){var p=u&&(d?u.yAxis:u.xAxis)||{pos:g,len:Infinity};k=b.paneCoordinates?p.pos+k:g+k;k>=Math.max(m+g,p.pos)&&k<=Math.min(m+g+e.width,p.pos+p.len)||(c.isInsidePlot=!1)}!b.ignoreY&&c.isInsidePlot&&(d=u&&(d?u.xAxis:u.yAxis)||{pos:h,len:Infinity},b=b.paneCoordinates?d.pos+a:h+
a,b>=Math.max(f+h,d.pos)&&b<=Math.min(f+h+e.height,d.pos+d.len)||(c.isInsidePlot=!1));N(this,"afterIsInsidePlot",c);return c.isInsidePlot};b.prototype.redraw=function(c){N(this,"beforeRedraw");var a=this.hasCartesianSeries?this.axes:this.colorAxis||[],b=this.series,d=this.pointer,e=this.legend,g=this.userOptions.legend,h=this.renderer,k=h.isHidden(),m=[],f=this.isDirtyBox,u=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);C(this.hasRendered?c:!1,this);k&&this.temporaryDisplay();this.layOutTitles();
for(c=b.length;c--;){var p=b[c];if(p.options.stacking||p.options.centerInCategory){var l=!0;if(p.isDirty){var t=!0;break}}}if(t)for(c=b.length;c--;)p=b[c],p.options.stacking&&(p.isDirty=!0);b.forEach(function(c){c.isDirty&&("point"===c.options.legendType?("function"===typeof c.updateTotals&&c.updateTotals(),u=!0):g&&(g.labelFormatter||g.labelFormat)&&(u=!0));c.isDirtyData&&N(c,"updatedData")});u&&e&&e.options.enabled&&(e.render(),this.isDirtyLegend=!1);l&&this.getStacks();a.forEach(function(c){c.updateNames();
c.setScale()});this.getMargins();a.forEach(function(c){c.isDirty&&(f=!0)});a.forEach(function(c){var a=c.min+","+c.max;c.extKey!==a&&(c.extKey=a,m.push(function(){N(c,"afterSetExtremes",ba(c.eventArgs,c.getExtremes()));delete c.eventArgs}));(f||l)&&c.redraw()});f&&this.drawChartBox();N(this,"predraw");b.forEach(function(c){(f||c.isDirty)&&c.visible&&c.redraw();c.isDirtyData=!1});d&&d.reset(!0);h.draw();N(this,"redraw");N(this,"render");k&&this.temporaryDisplay(!0);m.forEach(function(c){c.call()})};
b.prototype.get=function(c){function a(a){return a.id===c||a.options&&a.options.id===c}for(var b=this.series,d=fa(this.axes,a)||fa(this.series,a),e=0;!d&&e<b.length;e++)d=fa(b[e].points||[],a);return d};b.prototype.getAxes=function(){var c=this,a=this.options,b=a.xAxis=aa(a.xAxis||{});a=a.yAxis=aa(a.yAxis||{});N(this,"getAxes");b.forEach(function(c,a){c.index=a;c.isX=!0});a.forEach(function(c,a){c.index=a});b.concat(a).forEach(function(a){new f(c,a)});N(this,"afterGetAxes")};b.prototype.getSelectedPoints=
function(){return this.series.reduce(function(c,a){a.getPointsCollection().forEach(function(a){O(a.selectedStaging,a.selected)&&c.push(a)});return c},[])};b.prototype.getSelectedSeries=function(){return this.series.filter(function(c){return c.selected})};b.prototype.setTitle=function(c,a,b){this.applyDescription("title",c);this.applyDescription("subtitle",a);this.applyDescription("caption",void 0);this.layOutTitles(b)};b.prototype.applyDescription=function(c,a){var b=this,d="title"===c?{color:"#333333",
fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};d=this.options[c]=T(!this.styledMode&&{style:d},this.options[c],a);var e=this[c];e&&a&&(this[c]=e=e.destroy());d&&!e&&(e=this.renderer.text(d.text,0,0,d.useHTML).attr({align:d.align,"class":"highcharts-"+c,zIndex:d.zIndex||4}).add(),e.update=function(a){b[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[c]](a)},this.styledMode||e.css(d.style),this[c]=e)};b.prototype.layOutTitles=function(c){var a=[0,0,0],b=this.renderer,
d=this.spacingBox;["title","subtitle","caption"].forEach(function(c){var e=this[c],g=this.options[c],h=g.verticalAlign||"top";c="title"===c?"top"===h?-3:0:"top"===h?a[0]+2:0;var k;if(e){this.styledMode||(k=g.style&&g.style.fontSize);k=b.fontMetrics(k,e).b;e.css({width:(g.width||d.width+(g.widthAdjust||0))+"px"});var m=Math.round(e.getBBox(g.useHTML).height);e.align(ba({y:"bottom"===h?k:c+k,height:m},g),!1,"spacingBox");g.floating||("top"===h?a[0]=Math.ceil(a[0]+m):"bottom"===h&&(a[2]=Math.ceil(a[2]+
m)))}},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 e=!this.titleOffset||this.titleOffset.join(",")!==a.join(",");this.titleOffset=a;N(this,"afterLayOutTitles");!this.isDirtyBox&&e&&(this.isDirtyBox=this.isDirtyLegend=e,this.hasRendered&&O(c,!0)&&this.isDirtyBox&&this.redraw())};b.prototype.getChartSize=function(){var c=this.options.chart,a=c.width;c=c.height;
var b=this.renderTo;S(a)||(this.containerWidth=Y(b,"width"));S(c)||(this.containerHeight=Y(b,"height"));this.chartWidth=Math.max(0,a||this.containerWidth||600);this.chartHeight=Math.max(0,da(c,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};b.prototype.temporaryDisplay=function(c){var a=this.renderTo;if(c)for(;a&&a.style;)a.hcOrigStyle&&(K(a,a.hcOrigStyle),delete a.hcOrigStyle),a.hcOrigDetached&&(h.body.removeChild(a),a.hcOrigDetached=!1),a=a.parentNode;else for(;a&&a.style;){h.body.contains(a)||
a.parentNode||(a.hcOrigDetached=!0,h.body.appendChild(a));if("none"===Y(a,"display",!1)||a.hcOricDetached)a.hcOrigStyle={display:a.style.display,height:a.style.height,overflow:a.style.overflow},c={display:"block",overflow:"hidden"},a!==this.renderTo&&(c.height=0),K(a,c),a.offsetWidth||a.style.setProperty("display","block","important");a=a.parentNode;if(a===h.body)break}};b.prototype.setClassName=function(c){this.container.className="highcharts-container "+(c||"")};b.prototype.getContainer=function(){var a=
this.options,b=a.chart,d=ia(),g,f=this.renderTo;f||(this.renderTo=f=b.renderTo);U(f)&&(this.renderTo=f=h.getElementById(f));f||M(13,!0,this);var u=ca(H(f,"data-highcharts-chart"));Z(u)&&m[u]&&m[u].hasRendered&&m[u].destroy();H(f,"data-highcharts-chart",this.index);f.innerHTML=k.emptyHTML;b.skipClone||f.offsetWidth||this.temporaryDisplay();this.getChartSize();u=this.chartWidth;var p=this.chartHeight;K(f,{overflow:"hidden"});this.styledMode||(g=ba({position:"relative",overflow:"hidden",width:u+"px",
height:p+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},b.style||{}));this.container=d=J("div",{id:d},g,f);this._cursor=d.style.cursor;this.renderer=new (b.renderer||!c?l.getRendererType(b.renderer):e)(d,u,p,void 0,b.forExport,a.exporting&&a.exporting.allowHTML,this.styledMode);C(void 0,this);this.setClassName(b.className);if(this.styledMode)for(var t in a.defs)this.renderer.definition(a.defs[t]);
else this.renderer.setStyle(b.style);this.renderer.chartIndex=this.index;N(this,"afterGetContainer")};b.prototype.getMargins=function(c){var a=this.spacing,b=this.margin,d=this.titleOffset;this.resetMargins();d[0]&&!S(b[0])&&(this.plotTop=Math.max(this.plotTop,d[0]+a[0]));d[2]&&!S(b[2])&&(this.marginBottom=Math.max(this.marginBottom,d[2]+a[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(b,a);N(this,"getMargins");c||this.getAxisMargins()};b.prototype.getAxisMargins=function(){var c=
this,a=c.axisOffset=[0,0,0,0],b=c.colorAxis,d=c.margin,e=function(c){c.forEach(function(c){c.visible&&c.getOffset()})};c.hasCartesianSeries?e(c.axes):b&&b.length&&e(b);u.forEach(function(b,e){S(d[e])||(c[b]+=a[e])});c.setChartSize()};b.prototype.reflow=function(c){var a=this,b=a.options.chart,e=a.renderTo,g=S(b.width)&&S(b.height),k=b.width||Y(e,"width");b=b.height||Y(e,"height");e=c?c.target:w;delete a.pointer.chartPosition;if(!g&&!a.isPrinting&&k&&b&&(e===w||e===h)){if(k!==a.containerWidth||b!==
a.containerHeight)d.clearTimeout(a.reflowTimeout),a.reflowTimeout=ea(function(){a.container&&a.setSize(void 0,void 0,!1)},c?100:0);a.containerWidth=k;a.containerHeight=b}};b.prototype.setReflow=function(c){var a=this;!1===c||this.unbindReflow?!1===c&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=D(w,"resize",function(c){a.options&&a.reflow(c)}),D(this,"destroy",this.unbindReflow))};b.prototype.setSize=function(c,a,b){var d=this,e=d.renderer;d.isResizing+=1;C(b,d);b=
e.globalAnimation;d.oldChartHeight=d.chartHeight;d.oldChartWidth=d.chartWidth;"undefined"!==typeof c&&(d.options.chart.width=c);"undefined"!==typeof a&&(d.options.chart.height=a);d.getChartSize();d.styledMode||(b?G:K)(d.container,{width:d.chartWidth+"px",height:d.chartHeight+"px"},b);d.setChartSize(!0);e.setSize(d.chartWidth,d.chartHeight,b);d.axes.forEach(function(c){c.isDirty=!0;c.setScale()});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.layOutTitles();d.getMargins();d.redraw(b);d.oldChartHeight=null;N(d,
"resize");ea(function(){d&&N(d,"endResize",null,function(){--d.isResizing})},z(b).duration)};b.prototype.setChartSize=function(c){var a=this.inverted,b=this.renderer,d=this.chartWidth,e=this.chartHeight,g=this.options.chart,h=this.spacing,k=this.clipOffset,f,m,u,p;this.plotLeft=f=Math.round(this.plotLeft);this.plotTop=m=Math.round(this.plotTop);this.plotWidth=u=Math.max(0,Math.round(d-f-this.marginRight));this.plotHeight=p=Math.max(0,Math.round(e-m-this.marginBottom));this.plotSizeX=a?p:u;this.plotSizeY=
a?u:p;this.plotBorderWidth=g.plotBorderWidth||0;this.spacingBox=b.spacingBox={x:h[3],y:h[0],width:d-h[3]-h[1],height:e-h[0]-h[2]};this.plotBox=b.plotBox={x:f,y:m,width:u,height:p};a=2*Math.floor(this.plotBorderWidth/2);d=Math.ceil(Math.max(a,k[3])/2);e=Math.ceil(Math.max(a,k[0])/2);this.clipBox={x:d,y:e,width:Math.floor(this.plotSizeX-Math.max(a,k[1])/2-d),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(a,k[2])/2-e))};c||(this.axes.forEach(function(c){c.setAxisSize();c.setAxisTranslation()}),
b.alignElements());N(this,"afterSetChartSize",{skipAxes:c})};b.prototype.resetMargins=function(){N(this,"resetMargins");var c=this,a=c.options.chart;["margin","spacing"].forEach(function(b){var d=a[b],e=Q(d)?d:[d,d,d,d];["Top","Right","Bottom","Left"].forEach(function(d,g){c[b][g]=O(a[b+d],e[g])})});u.forEach(function(a,b){c[a]=O(c.margin[b],c.spacing[b])});c.axisOffset=[0,0,0,0];c.clipOffset=[0,0,0,0]};b.prototype.drawChartBox=function(){var c=this.options.chart,a=this.renderer,b=this.chartWidth,
d=this.chartHeight,e=this.styledMode,g=this.plotBGImage,h=c.backgroundColor,k=c.plotBackgroundColor,f=c.plotBackgroundImage,m=this.plotLeft,u=this.plotTop,p=this.plotWidth,l=this.plotHeight,t=this.plotBox,n=this.clipRect,w=this.clipBox,x=this.chartBackground,z=this.plotBackground,C=this.plotBorder,D,q="animate";x||(this.chartBackground=x=a.rect().addClass("highcharts-background").add(),q="attr");if(e)var H=D=x.strokeWidth();else{H=c.borderWidth||0;D=H+(c.shadow?8:0);h={fill:h||"none"};if(H||x["stroke-width"])h.stroke=
c.borderColor,h["stroke-width"]=H;x.attr(h).shadow(c.shadow)}x[q]({x:D/2,y:D/2,width:b-D-H%2,height:d-D-H%2,r:c.borderRadius});q="animate";z||(q="attr",this.plotBackground=z=a.rect().addClass("highcharts-plot-background").add());z[q](t);e||(z.attr({fill:k||"none"}).shadow(c.plotShadow),f&&(g?(f!==g.attr("href")&&g.attr("href",f),g.animate(t)):this.plotBGImage=a.image(f,m,u,p,l).add()));n?n.animate({width:w.width,height:w.height}):this.clipRect=a.clipRect(w);q="animate";C||(q="attr",this.plotBorder=
C=a.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());e||C.attr({stroke:c.plotBorderColor,"stroke-width":c.plotBorderWidth||0,fill:"none"});C[q](C.crisp({x:m,y:u,width:p,height:l},-C.strokeWidth()));this.isDirtyBox=!1;N(this,"afterDrawChartBox")};b.prototype.propFromSeries=function(){var c=this,a=c.options.chart,b=c.options.series,d,e,g;["inverted","angular","polar"].forEach(function(h){e=p[a.type||a.defaultSeriesType];g=a[h]||e&&e.prototype[h];for(d=b&&b.length;!g&&d--;)(e=p[b[d].type])&&
e.prototype[h]&&(g=!0);c[h]=g})};b.prototype.linkSeries=function(){var c=this,a=c.series;a.forEach(function(c){c.linkedSeries.length=0});a.forEach(function(a){var b=a.options.linkedTo;U(b)&&(b=":previous"===b?c.series[a.index-1]:c.get(b))&&b.linkedParent!==a&&(b.linkedSeries.push(a),a.linkedParent=b,b.enabledDataSorting&&a.setDataSortingOptions(),a.visible=O(a.options.visible,b.options.visible,a.visible))});N(this,"afterLinkSeries")};b.prototype.renderSeries=function(){this.series.forEach(function(c){c.translate();
c.render()})};b.prototype.renderLabels=function(){var c=this,a=c.options.labels;a.items&&a.items.forEach(function(b){var d=ba(a.style,b.style),e=ca(d.left)+c.plotLeft,g=ca(d.top)+c.plotTop+12;delete d.left;delete d.top;c.renderer.text(b.html,e,g).attr({zIndex:2}).css(d).add()})};b.prototype.render=function(){var c=this.axes,a=this.colorAxis,b=this.renderer,d=this.options,e=function(c){c.forEach(function(c){c.visible&&c.render()})},g=0;this.setTitle();this.legend=new A(this,d.legend);this.getStacks&&
this.getStacks();this.getMargins(!0);this.setChartSize();d=this.plotWidth;c.some(function(c){if(c.horiz&&c.visible&&c.options.labels.enabled&&c.series.length)return g=21,!0});var h=this.plotHeight=Math.max(this.plotHeight-g,0);c.forEach(function(c){c.setScale()});this.getAxisMargins();var k=1.1<d/this.plotWidth,f=1.05<h/this.plotHeight;if(k||f)c.forEach(function(c){(c.horiz&&k||!c.horiz&&f)&&c.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?e(c):a&&a.length&&e(a);
this.seriesGroup||(this.seriesGroup=b.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};b.prototype.addCredits=function(c){var a=this,b=T(!0,this.options.credits,c);b.enabled&&!this.credits&&(this.credits=this.renderer.text(b.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){b.href&&(w.location.href=b.href)}).attr({align:b.position.align,zIndex:8}),a.styledMode||
this.credits.css(b.style),this.credits.add().align(b.position),this.credits.update=function(c){a.credits=a.credits.destroy();a.addCredits(c)})};b.prototype.destroy=function(){var c=this,a=c.axes,b=c.series,d=c.container,e=d&&d.parentNode,g;N(c,"destroy");c.renderer.forExport?I(m,c):m[c.index]=void 0;r.chartCount--;c.renderTo.removeAttribute("data-highcharts-chart");ha(c);for(g=a.length;g--;)a[g]=a[g].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(g=b.length;g--;)b[g]=
b[g].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(a){var b=c[a];b&&b.destroy&&(c[a]=b.destroy())});d&&(d.innerHTML=k.emptyHTML,ha(d),e&&W(d));V(c,function(a,b){delete c[b]})};b.prototype.firstRender=function(){var c=this,a=c.options;if(!c.isReadyToRender||c.isReadyToRender()){c.getContainer();c.resetMargins();c.setChartSize();c.propFromSeries();
c.getAxes();(R(a.series)?a.series:[]).forEach(function(a){c.initSeries(a)});c.linkSeries();c.setSeriesData();N(c,"beforeRender");q&&(E.isRequired()?c.pointer=new E(c,a):c.pointer=new q(c,a));c.render();c.pointer.getChartPosition();if(!c.renderer.imgCount&&!c.hasLoaded)c.onload();c.temporaryDisplay(!0)}};b.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(c){c&&"undefined"!==typeof this.index&&c.apply(this,[this])},this);N(this,"load");N(this,"render");S(this.index)&&
this.setReflow(this.options.chart.reflow);this.hasLoaded=!0};b.prototype.addSeries=function(c,a,b){var d=this,e;c&&(a=O(a,!0),N(d,"addSeries",{options:c},function(){e=d.initSeries(c);d.isDirtyLegend=!0;d.linkSeries();e.enabledDataSorting&&e.setData(c.data,!1);N(d,"afterAddSeries",{series:e});a&&d.redraw(b)}));return e};b.prototype.addAxis=function(c,a,b,d){return this.createAxis(a?"xAxis":"yAxis",{axis:c,redraw:b,animation:d})};b.prototype.addColorAxis=function(c,a,b){return this.createAxis("colorAxis",
{axis:c,redraw:a,animation:b})};b.prototype.createAxis=function(c,a){c=new f(this,T(a.axis,{index:this[c].length,isX:"xAxis"===c}));O(a.redraw,!0)&&this.redraw(a.animation);return c};b.prototype.showLoading=function(c){var a=this,b=a.options,d=b.loading,e=function(){g&&K(g,{left:a.plotLeft+"px",top:a.plotTop+"px",width:a.plotWidth+"px",height:a.plotHeight+"px"})},g=a.loadingDiv,h=a.loadingSpan;g||(a.loadingDiv=g=J("div",{className:"highcharts-loading highcharts-loading-hidden"},null,a.container));
h||(a.loadingSpan=h=J("span",{className:"highcharts-loading-inner"},null,g),D(a,"redraw",e));g.className="highcharts-loading";k.setElementHTML(h,O(c,b.lang.loading,""));a.styledMode||(K(g,ba(d.style,{zIndex:10})),K(h,d.labelStyle),a.loadingShown||(K(g,{opacity:0,display:""}),G(g,{opacity:d.style.opacity||.5},{duration:d.showDuration||0})));a.loadingShown=!0;e()};b.prototype.hideLoading=function(){var c=this.options,a=this.loadingDiv;a&&(a.className="highcharts-loading highcharts-loading-hidden",this.styledMode||
G(a,{opacity:0},{duration:c.loading.hideDuration||100,complete:function(){K(a,{display:"none"})}}));this.loadingShown=!1};b.prototype.update=function(c,b,d,e){var g=this,h={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},k=c.isResponsiveOptions,f=[],m,u;N(g,"update",{options:c});k||g.setResponsive(!1,!0);c=L(c,g.options);g.userOptions=T(g.userOptions,c);var p=c.chart;if(p){T(!0,g.options.chart,p);"className"in p&&g.setClassName(p.className);"reflow"in p&&g.setReflow(p.reflow);
if("inverted"in p||"polar"in p||"type"in p){g.propFromSeries();var l=!0}"alignTicks"in p&&(l=!0);"events"in p&&t(this,p);V(p,function(c,a){-1!==g.propsRequireUpdateSeries.indexOf("chart."+a)&&(m=!0);-1!==g.propsRequireDirtyBox.indexOf(a)&&(g.isDirtyBox=!0);-1!==g.propsRequireReflow.indexOf(a)&&(k?g.isDirtyBox=!0:u=!0)});!g.styledMode&&p.style&&g.renderer.setStyle(g.options.chart.style||{})}!g.styledMode&&c.colors&&(this.options.colors=c.colors);c.time&&(this.time===F&&(this.time=new a(c.time)),T(!0,
g.options.time,c.time));V(c,function(a,b){if(g[b]&&"function"===typeof g[b].update)g[b].update(a,!1);else if("function"===typeof g[h[b]])g[h[b]](a);else"colors"!==b&&-1===g.collectionsWithUpdate.indexOf(b)&&T(!0,g.options[b],c[b]);"chart"!==b&&-1!==g.propsRequireUpdateSeries.indexOf(b)&&(m=!0)});this.collectionsWithUpdate.forEach(function(a){if(c[a]){var b=[];g[a].forEach(function(c,a){c.options.isInternal||b.push(O(c.options.index,a))});aa(c[a]).forEach(function(c,e){var h=S(c.id),k;h&&(k=g.get(c.id));
!k&&g[a]&&(k=g[a][b?b[e]:e])&&h&&S(k.options.id)&&(k=void 0);k&&k.coll===a&&(k.update(c,!1),d&&(k.touched=!0));!k&&d&&g.collectionsWithInit[a]&&(g.collectionsWithInit[a][0].apply(g,[c].concat(g.collectionsWithInit[a][1]||[]).concat([!1])).touched=!0)});d&&g[a].forEach(function(c){c.touched||c.options.isInternal?delete c.touched:f.push(c)})}});f.forEach(function(c){c.chart&&c.remove&&c.remove(!1)});l&&g.axes.forEach(function(c){c.update({},!1)});m&&g.getSeriesOrderByLinks().forEach(function(c){c.chart&&
c.update({},!1)},this);l=p&&p.width;p=p&&(U(p.height)?da(p.height,l||g.chartWidth):p.height);u||Z(l)&&l!==g.chartWidth||Z(p)&&p!==g.chartHeight?g.setSize(l,p,e):O(b,!0)&&g.redraw(e);N(g,"afterUpdate",{options:c,redraw:b,animation:e})};b.prototype.setSubtitle=function(c,a){this.applyDescription("subtitle",c);this.layOutTitles(a)};b.prototype.setCaption=function(c,a){this.applyDescription("caption",c);this.layOutTitles(a)};b.prototype.showResetZoom=function(){function c(){a.zoomOut()}var a=this,b=g.lang,
d=a.options.chart.resetZoomButton,e=d.theme,h=e.states,k="chart"===d.relativeTo||"spacingBox"===d.relativeTo?null:"scrollablePlotBox";N(this,"beforeShowResetZoom",null,function(){a.resetZoomButton=a.renderer.button(b.resetZoom,null,null,c,e,h&&h.hover).attr({align:d.position.align,title:b.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(d.position,!1,k)});N(this,"afterShowResetZoom")};b.prototype.zoomOut=function(){N(this,"selection",{resetSelection:!0},this.zoom)};b.prototype.zoom=
function(c){var a=this,b=a.pointer,d=a.inverted?b.mouseDownX:b.mouseDownY,e=!1,g;!c||c.resetSelection?(a.axes.forEach(function(c){g=c.zoom()}),b.initiated=!1):c.xAxis.concat(c.yAxis).forEach(function(c){var h=c.axis,k=a.inverted?h.left:h.top,f=a.inverted?k+h.width:k+h.height,m=h.isXAxis,p=!1;if(!m&&d>=k&&d<=f||m||!S(d))p=!0;b[m?"zoomX":"zoomY"]&&p&&(g=h.zoom(c.min,c.max),h.displayBtn&&(e=!0))});var h=a.resetZoomButton;e&&!h?a.showResetZoom():!e&&Q(h)&&(a.resetZoomButton=h.destroy());g&&a.redraw(O(a.options.chart.animation,
c&&c.animation,100>a.pointCount))};b.prototype.pan=function(c,a){var b=this,d=b.hoverPoints;a="object"===typeof a?a:{enabled:a,type:"x"};var e=b.options.chart,g=b.options.mapNavigation&&b.options.mapNavigation.enabled;e&&e.panning&&(e.panning=a);var h=a.type,k;N(this,"pan",{originalEvent:c},function(){d&&d.forEach(function(c){c.setState()});var a=b.xAxis;"xy"===h?a=a.concat(b.yAxis):"y"===h&&(a=b.yAxis);var e={};a.forEach(function(a){if(a.options.panningEnabled&&!a.options.isInternal){var d=a.horiz,
f=c[d?"chartX":"chartY"];d=d?"mouseDownX":"mouseDownY";var m=b[d],p=a.minPointOffset||0,u=a.reversed&&!b.inverted||!a.reversed&&b.inverted?-1:1,l=a.getExtremes(),t=a.toValue(m-f,!0)+p*u,n=a.toValue(m+a.len-f,!0)-(p*u||a.isXAxis&&a.pointRangePadding||0),w=n<t;u=a.hasVerticalPanning();m=w?n:t;t=w?t:n;var x=a.panningState;!u||a.isXAxis||x&&!x.isDirty||a.series.forEach(function(c){var a=c.getProcessedData(!0);a=c.getExtremes(a.yData,!0);x||(x={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});Z(a.dataMin)&&
Z(a.dataMax)&&(x.startMin=Math.min(O(c.options.threshold,Infinity),a.dataMin,x.startMin),x.startMax=Math.max(O(c.options.threshold,-Infinity),a.dataMax,x.startMax))});u=Math.min(O(x&&x.startMin,l.dataMin),p?l.min:a.toValue(a.toPixels(l.min)-a.minPixelPadding));n=Math.max(O(x&&x.startMax,l.dataMax),p?l.max:a.toValue(a.toPixels(l.max)+a.minPixelPadding));a.panningState=x;a.isOrdinal||(p=u-m,0<p&&(t+=p,m=u),p=t-n,0<p&&(t=n,m-=p),a.series.length&&m!==l.min&&t!==l.max&&m>=u&&t<=n&&(a.setExtremes(m,t,!1,
!1,{trigger:"pan"}),b.resetZoomButton||g||m===u||t===n||!h.match("y")||(b.showResetZoom(),a.displayBtn=!1),k=!0),e[d]=f)}});V(e,function(c,a){b[a]=c});k&&b.redraw(!1);K(b.container,{cursor:"move"})})};return b}();ba(b.prototype,{callbacks:[],collectionsWithInit:{xAxis:[b.prototype.addAxis,[!0]],yAxis:[b.prototype.addAxis,[!1]],series:[b.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 b});I(f,"Core/Legend/LegendSymbol.js",[f["Core/Utilities.js"]],function(b){var f=b.merge,v=b.pick,B;(function(b){b.drawLineMarker=function(b){var r=this.options,y=b.symbolWidth,q=b.symbolHeight,l=q/2,n=this.chart.renderer,
e=this.legendGroup;b=b.baseline-Math.round(.3*b.fontMetrics.b);var a={},d=r.marker;this.chart.styledMode||(a={"stroke-width":r.lineWidth||0},r.dashStyle&&(a.dashstyle=r.dashStyle));this.legendLine=n.path([["M",0,b],["L",y,b]]).addClass("highcharts-graph").attr(a).add(e);d&&!1!==d.enabled&&y&&(r=Math.min(v(d.radius,l),l),0===this.symbol.indexOf("url")&&(d=f(d,{width:q,height:q}),r=0),this.legendSymbol=y=n.symbol(this.symbol,y/2-r,b-r,2*r,2*r,d).addClass("highcharts-point").add(e),y.isMarker=!0)};b.drawRectangle=
function(b,f){var r=b.symbolHeight,q=b.options.squareSymbol;f.legendSymbol=this.chart.renderer.rect(q?(b.symbolWidth-r)/2:0,b.baseline-r+1,q?r:b.symbolWidth,r,v(b.options.symbolRadius,r/2)).addClass("highcharts-point").attr({zIndex:3}).add(f.legendGroup)}})(B||(B={}));return B});I(f,"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",defer:!0,formatter:function(){var b=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":b(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"}});I(f,"Core/Series/Series.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/DefaultOptions.js"],f["Core/Foundation.js"],f["Core/Globals.js"],f["Core/Legend/LegendSymbol.js"],f["Core/Series/Point.js"],f["Core/Series/SeriesDefaults.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Renderer/SVG/SVGElement.js"],
f["Core/Utilities.js"]],function(b,f,v,B,r,A,E,y,q,l){var n=b.animObject,e=b.setAnimation,a=f.defaultOptions,d=v.registerEventOptions,k=B.hasTouch,G=B.svg,z=B.win,C=y.seriesTypes,x=l.addEvent,t=l.arrayMax,m=l.arrayMin,h=l.clamp,u=l.cleanRecursively,c=l.correctFloat,w=l.defined,g=l.erase,F=l.error,p=l.extend,D=l.find,H=l.fireEvent,L=l.getNestedProperty,J=l.isArray,K=l.isNumber,S=l.isString,W=l.merge,I=l.objectEach,M=l.pick,ba=l.removeEvent,fa=l.splat,N=l.syncTimeout;b=function(){function b(){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}b.prototype.init=function(c,a){H(this,"init",{options:a});var b=this,e=c.series;this.eventsToUnbind=[];b.chart=c;b.options=b.setOptions(a);a=b.options;b.linkedSeries=[];b.bindAxes();p(b,{name:a.name,state:"",visible:!1!==a.visible,selected:!0===a.selected});d(this,a);var g=
a.events;if(g&&g.click||a.point&&a.point.events&&a.point.events.click||a.allowPointSelect)c.runTrackerClick=!0;b.getColor();b.getSymbol();b.parallelArrays.forEach(function(c){b[c+"Data"]||(b[c+"Data"]=[])});b.isCartesian&&(c.hasCartesianSeries=!0);var h;e.length&&(h=e[e.length-1]);b._i=M(h&&h._i,-1)+1;b.opacity=b.options.opacity;c.orderSeries(this.insert(e));a.dataSorting&&a.dataSorting.enabled?b.setDataSortingOptions():b.points||b.data||b.setData(a.data,!1);H(this,"afterInit")};b.prototype.is=function(c){return C[c]&&
this instanceof C[c]};b.prototype.insert=function(c){var a=this.options.index,b;if(K(a)){for(b=c.length;b--;)if(a>=M(c[b].options.index,c[b]._i)){c.splice(b+1,0,this);break}-1===b&&c.unshift(this);b+=1}else c.push(this);return M(b,c.length-1)};b.prototype.bindAxes=function(){var c=this,a=c.options,b=c.chart,d;H(this,"bindAxes",null,function(){(c.axisTypes||[]).forEach(function(e){var g=0;b[e].forEach(function(b){d=b.options;if(a[e]===g&&!d.isInternal||"undefined"!==typeof a[e]&&a[e]===d.id||"undefined"===
typeof a[e]&&0===d.index)c.insert(b.series),c[e]=b,b.isDirty=!0;d.isInternal||g++});c[e]||c.optionalAxis===e||F(18,!0,b)})});H(this,"afterBindAxes")};b.prototype.updateParallelArrays=function(c,a){var b=c.series,d=arguments,e=K(a)?function(d){var e="y"===d&&b.toYData?b.toYData(c):c[d];b[d+"Data"][a]=e}:function(c){Array.prototype[a].apply(b[c+"Data"],Array.prototype.slice.call(d,2))};b.parallelArrays.forEach(e)};b.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&
"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};b.prototype.autoIncrement=function(c){var a=this.options,b=a.pointIntervalUnit,d=a.relativeXValue,e=this.chart.time,g=this.xIncrement,h;g=M(g,a.pointStart,0);this.pointInterval=h=M(this.pointInterval,a.pointInterval,1);d&&K(c)&&(h*=c);b&&(a=new e.Date(g),"day"===b?e.set("Date",a,e.get("Date",a)+h):"month"===b?e.set("Month",a,e.get("Month",a)+h):"year"===b&&e.set("FullYear",a,e.get("FullYear",a)+h),h=a.getTime()-g);if(d&&
K(c))return g+h;this.xIncrement=g+h;return g};b.prototype.setDataSortingOptions=function(){var c=this.options;p(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});w(c.pointRange)||(c.pointRange=1)};b.prototype.setOptions=function(c){var b=this.chart,d=b.options,e=d.plotOptions,g=b.userOptions||{};c=W(c);b=b.styledMode;var h={plotOptions:e,userOptions:c};H(this,"setOptions",h);var k=h.plotOptions[this.type],f=g.plotOptions||{};this.userOptions=h.userOptions;g=W(k,e.series,g.plotOptions&&
g.plotOptions[this.type],c);this.tooltipOptions=W(a.tooltip,a.plotOptions.series&&a.plotOptions.series.tooltip,a.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,c.tooltip);this.stickyTracking=M(c.stickyTracking,f[this.type]&&f[this.type].stickyTracking,f.series&&f.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:g.stickyTracking);null===k.marker&&delete g.marker;this.zoneAxis=g.zoneAxis;e=this.zones=(g.zones||[]).slice();
!g.negativeColor&&!g.negativeFillColor||g.zones||(d={value:g[this.zoneAxis+"Threshold"]||g.threshold||0,className:"highcharts-negative"},b||(d.color=g.negativeColor,d.fillColor=g.negativeFillColor),e.push(d));e.length&&w(e[e.length-1].value)&&e.push(b?{}:{color:this.color,fillColor:this.fillColor});H(this,"afterSetOptions",{options:g});return g};b.prototype.getName=function(){return M(this.options.name,"Series "+(this.index+1))};b.prototype.getCyclic=function(c,a,b){var d=this.chart,e=this.userOptions,
g=c+"Index",h=c+"Counter",k=b?b.length:M(d.options.chart[c+"Count"],d[c+"Count"]);if(!a){var f=M(e[g],e["_"+g]);w(f)||(d.series.length||(d[h]=0),e["_"+g]=f=d[h]%k,d[h]+=1);b&&(a=b[f])}"undefined"!==typeof f&&(this[g]=f);this[c]=a};b.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||a.plotOptions[this.type].color,this.chart.options.colors)};b.prototype.getPointsCollection=function(){return(this.hasGroupedData?
this.points:this.data)||[]};b.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};b.prototype.findPointIndex=function(c,a){var b=c.id,d=c.x,e=this.points,g=this.options.dataSorting,h,k;if(b)g=this.chart.get(b),g instanceof A&&(h=g);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(h=function(a){return!a.touched&&a.index===c.index},g&&g.matchByName?h=function(a){return!a.touched&&a.name===c.name}:this.options.relativeXValue&&
(h=function(a){return!a.touched&&a.options.x===c.x}),h=D(e,h),!h)return;if(h){var f=h&&h.index;"undefined"!==typeof f&&(k=!0)}"undefined"===typeof f&&K(d)&&(f=this.xData.indexOf(d,a));-1!==f&&"undefined"!==typeof f&&this.cropped&&(f=f>=this.cropStart?f-this.cropStart:f);!k&&K(f)&&e[f]&&e[f].touched&&(f=void 0);return f};b.prototype.updateData=function(c,a){var b=this.options,d=b.dataSorting,e=this.points,g=[],h=this.requireSorting,k=c.length===e.length,f,m,p,u=!0;this.xIncrement=null;c.forEach(function(c,
a){var m=w(c)&&this.pointClass.prototype.optionsToObject.call({series:this},c)||{},u=m.x;if(m.id||K(u)){if(m=this.findPointIndex(m,p),-1===m||"undefined"===typeof m?g.push(c):e[m]&&c!==b.data[m]?(e[m].update(c,!1,null,!1),e[m].touched=!0,h&&(p=m+1)):e[m]&&(e[m].touched=!0),!k||a!==m||d&&d.enabled||this.hasDerivedData)f=!0}else g.push(c)},this);if(f)for(c=e.length;c--;)(m=e[c])&&!m.touched&&m.remove&&m.remove(!1,a);else!k||d&&d.enabled?u=!1:(c.forEach(function(c,a){c!==e[a].y&&e[a].update&&e[a].update(c,
!1,null,!1)}),g.length=0);e.forEach(function(c){c&&(c.touched=!1)});if(!u)return!1;g.forEach(function(c){this.addPoint(c,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=t(this.xData),this.autoIncrement());return!0};b.prototype.setData=function(c,a,b,d){var e=this,g=e.points,h=g&&g.length||0,k=e.options,f=e.chart,m=k.dataSorting,p=e.xAxis,u=k.turboThreshold,l=this.xData,t=this.yData,n=e.pointArrayMap;n=n&&n.length;var w=k.keys,x,z=0,C=1,D=null;c=c||[];
var q=c.length;a=M(a,!0);m&&m.enabled&&(c=this.sortData(c));!1!==d&&q&&h&&!e.cropped&&!e.hasGroupedData&&e.visible&&!e.isSeriesBoosting&&(x=this.updateData(c,b));if(!x){e.xIncrement=null;e.colorCounter=0;this.parallelArrays.forEach(function(c){e[c+"Data"].length=0});if(u&&q>u)if(D=e.getFirstValidPoint(c),K(D))for(b=0;b<q;b++)l[b]=this.autoIncrement(),t[b]=c[b];else if(J(D))if(n)if(D.length===n)for(b=0;b<q;b++)l[b]=this.autoIncrement(),t[b]=c[b];else for(b=0;b<q;b++)d=c[b],l[b]=d[0],t[b]=d.slice(1,
n+1);else if(w&&(z=w.indexOf("x"),C=w.indexOf("y"),z=0<=z?z:0,C=0<=C?C:1),1===D.length&&(C=0),z===C)for(b=0;b<q;b++)l[b]=this.autoIncrement(),t[b]=c[b][C];else for(b=0;b<q;b++)d=c[b],l[b]=d[z],t[b]=d[C];else F(12,!1,f);else for(b=0;b<q;b++)"undefined"!==typeof c[b]&&(d={series:e},e.pointClass.prototype.applyOptions.apply(d,[c[b]]),e.updateParallelArrays(d,b));t&&S(t[0])&&F(14,!0,f);e.data=[];e.options.data=e.userOptions.data=c;for(b=h;b--;)g[b]&&g[b].destroy&&g[b].destroy();p&&(p.minRange=p.userMinRange);
e.isDirty=f.isDirtyBox=!0;e.isDirtyData=!!g;b=!1}"point"===k.legendType&&(this.processData(),this.generatePoints());a&&f.redraw(b)};b.prototype.sortData=function(c){var a=this,b=a.options.dataSorting.sortKey||"y",d=function(c,a){return w(a)&&c.pointClass.prototype.optionsToObject.call({series:c},a)||{}};c.forEach(function(b,e){c[e]=d(a,b);c[e].index=e},this);c.concat().sort(function(c,a){c=L(b,c);a=L(b,a);return a<c?-1:a>c?1:0}).forEach(function(c,a){c.x=a},this);a.linkedSeries&&a.linkedSeries.forEach(function(a){var b=
a.options,e=b.data;b.dataSorting&&b.dataSorting.enabled||!e||(e.forEach(function(b,g){e[g]=d(a,b);c[g]&&(e[g].x=c[g].x,e[g].index=g)}),a.setData(e,!1))});return c};b.prototype.getProcessedData=function(c){var a=this.xAxis,b=this.options,d=b.cropThreshold,e=c||this.getExtremesFromAll||b.getExtremesFromAll,g=this.isCartesian;c=a&&a.val2lin;b=!(!a||!a.logarithmic);var h=0,k=this.xData,f=this.yData,m=this.requireSorting;var p=!1;var u=k.length;if(a){p=a.getExtremes();var l=p.min;var t=p.max;p=!(!a.categories||
a.names.length)}if(g&&this.sorted&&!e&&(!d||u>d||this.forceCrop))if(k[u-1]<l||k[0]>t)k=[],f=[];else if(this.yData&&(k[0]<l||k[u-1]>t)){var n=this.cropData(this.xData,this.yData,l,t);k=n.xData;f=n.yData;h=n.start;n=!0}for(d=k.length||1;--d;)if(a=b?c(k[d])-c(k[d-1]):k[d]-k[d-1],0<a&&("undefined"===typeof w||a<w))var w=a;else 0>a&&m&&!p&&(F(15,!1,this.chart),m=!1);return{xData:k,yData:f,cropped:n,cropStart:h,closestPointRange:w}};b.prototype.processData=function(c){var a=this.xAxis;if(this.isCartesian&&
!this.isDirty&&!a.isDirty&&!this.yAxis.isDirty&&!c)return!1;c=this.getProcessedData();this.cropped=c.cropped;this.cropStart=c.cropStart;this.processedXData=c.xData;this.processedYData=c.yData;this.closestPointRange=this.basePointRange=c.closestPointRange;H(this,"afterProcessData")};b.prototype.cropData=function(c,a,b,d,e){var g=c.length,h,k=0,f=g;e=M(e,this.cropShoulder);for(h=0;h<g;h++)if(c[h]>=b){k=Math.max(0,h-e);break}for(b=h;b<g;b++)if(c[b]>d){f=b+e;break}return{xData:c.slice(k,f),yData:a.slice(k,
f),start:k,end:f}};b.prototype.generatePoints=function(){var c=this.options,a=this.processedData||c.data,b=this.processedXData,d=this.processedYData,e=this.pointClass,g=b.length,h=this.cropStart||0,k=this.hasGroupedData,f=c.keys,m=[];c=c.dataGrouping&&c.dataGrouping.groupAll?h:0;var u,l,t=this.data;if(!t&&!k){var n=[];n.length=a.length;t=this.data=n}f&&k&&(this.options.keys=!1);for(l=0;l<g;l++){n=h+l;if(k){var w=(new e).init(this,[b[l]].concat(fa(d[l])));w.dataGroup=this.groupMap[c+l];w.dataGroup.options&&
(w.options=w.dataGroup.options,p(w,w.dataGroup.options),delete w.dataLabels)}else(w=t[n])||"undefined"===typeof a[n]||(t[n]=w=(new e).init(this,a[n],b[l]));w&&(w.index=k?c+l:n,m[l]=w)}this.options.keys=f;if(t&&(g!==(u=t.length)||k))for(l=0;l<u;l++)l!==h||k||(l+=g),t[l]&&(t[l].destroyElements(),t[l].plotX=void 0);this.data=t;this.points=m;H(this,"afterGeneratePoints")};b.prototype.getXExtremes=function(c){return{min:m(c),max:t(c)}};b.prototype.getExtremes=function(c,a){var b=this.xAxis,d=this.yAxis,
e=this.processedXData||this.xData,g=[],h=this.requireSorting?this.cropShoulder:0;d=d?d.positiveValuesOnly:!1;var k,f=0,p=0,u=0;c=c||this.stackedYData||this.processedYData||[];var l=c.length;if(b){var n=b.getExtremes();f=n.min;p=n.max}for(k=0;k<l;k++){var w=e[k];n=c[k];var x=(K(n)||J(n))&&(n.length||0<n||!d);w=a||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!b||(e[k+h]||w)>=f&&(e[k-h]||w)<=p;if(x&&w)if(x=n.length)for(;x--;)K(n[x])&&(g[u++]=n[x]);else g[u++]=n}c={activeYData:g,
dataMin:m(g),dataMax:t(g)};H(this,"afterGetExtremes",{dataExtremes:c});return c};b.prototype.applyExtremes=function(){var c=this.getExtremes();this.dataMin=c.dataMin;this.dataMax=c.dataMax;return c};b.prototype.getFirstValidPoint=function(c){for(var a=c.length,b=0,d=null;null===d&&b<a;)d=c[b],b++;return d};b.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,d=this.xAxis,e=d.categories,g=this.enabledDataSorting,k=this.yAxis,
f=this.points,m=f.length,p=this.pointPlacementToXValue(),u=!!p,l=a.threshold,t=a.startFromThreshold?l:0,n=this.zoneAxis||"y",x,z,C=Number.MAX_VALUE;for(x=0;x<m;x++){var D=f[x],q=D.x,F=void 0,G=void 0,r=D.y,y=D.low,L=b&&k.stacking&&k.stacking.stacks[(this.negStacks&&r<(t?0:l)?"-":"")+this.stackKey];if(k.positiveValuesOnly&&!k.validatePositiveValue(r)||d.positiveValuesOnly&&!d.validatePositiveValue(q))D.isNull=!0;D.plotX=z=c(h(d.translate(q,0,0,0,1,p,"flags"===this.type),-1E5,1E5));if(b&&this.visible&&
L&&L[q]){var v=this.getStackIndicator(v,q,this.index);D.isNull||(F=L[q],G=F.points[v.key])}J(G)&&(y=G[0],r=G[1],y===t&&v.key===L[q].base&&(y=M(K(l)&&l,k.min)),k.positiveValuesOnly&&0>=y&&(y=null),D.total=D.stackTotal=F.total,D.percentage=F.total&&D.y/F.total*100,D.stackY=r,this.irregularWidths||F.setOffset(this.pointXOffset||0,this.barW||0));D.yBottom=w(y)?h(k.translate(y,0,1,0,1),-1E5,1E5):null;this.dataModify&&(r=this.dataModify.modifyValue(r,x));D.plotY=void 0;K(r)&&(F=k.translate(r,!1,!0,!1,!0),
"undefined"!==typeof F&&(D.plotY=h(F,-1E5,1E5)));D.isInside=this.isPointInside(D);D.clientX=u?c(d.translate(q,0,0,0,1,p)):z;D.negative=D[n]<(a[n+"Threshold"]||l||0);D.category=M(e&&e[D.x],D.x);if(!D.isNull&&!1!==D.visible){"undefined"!==typeof A&&(C=Math.min(C,Math.abs(z-A)));var A=z}D.zone=this.zones.length?D.getZone():void 0;!D.graphic&&this.group&&g&&(D.isNew=!0)}this.closestPointRangePx=C;H(this,"afterTranslate")};b.prototype.getValidPoints=function(c,a,b){var d=this.chart;return(c||this.points||
[]).filter(function(c){return a&&!d.isInsidePlot(c.plotX,c.plotY,{inverted:d.inverted})?!1:!1!==c.visible&&(b||!c.isNull)})};b.prototype.getClipBox=function(){var c=this.chart,a=this.xAxis,b=this.yAxis,d=W(c.clipBox);a&&a.len!==c.plotSizeX&&(d.width=a.len);b&&b.len!==c.plotSizeY&&(d.height=b.len);return d};b.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};b.prototype.setClip=function(){var c=this.chart,a=this.group,b=this.markerGroup,
d=c.sharedClips;c=c.renderer;var e=this.getClipBox(),g=this.getSharedClipKey(),h=d[g];h?h.animate(e):d[g]=h=c.clipRect(e);a&&a.clip(!1===this.options.clip?void 0:h);b&&b.clip()};b.prototype.animate=function(c){var a=this.chart,b=this.group,d=this.markerGroup,e=a.inverted,g=n(this.options.animation),h=[this.getSharedClipKey(),g.duration,g.easing,g.defer].join(),k=a.sharedClips[h],f=a.sharedClips[h+"m"];if(c&&b)g=this.getClipBox(),k?k.attr("height",g.height):(g.width=0,e&&(g.x=a.plotHeight),k=a.renderer.clipRect(g),
a.sharedClips[h]=k,f=a.renderer.clipRect({x:e?(a.plotSizeX||0)+99:-99,y:e?-a.plotLeft:-a.plotTop,width:99,height:e?a.chartWidth:a.chartHeight}),a.sharedClips[h+"m"]=f),b.clip(k),d&&d.clip(f);else if(k&&!k.hasClass("highcharts-animating")){a=this.getClipBox();var m=g.step;d&&d.element.childNodes.length&&(g.step=function(c,a){m&&m.apply(a,arguments);f&&f.element&&f.attr(a.prop,"width"===a.prop?c+99:c)});k.addClass("highcharts-animating").animate(a,g)}};b.prototype.afterAnimate=function(){var c=this;
this.setClip();I(this.chart.sharedClips,function(a,b,d){a&&!c.chart.container.querySelector('[clip-path="url(#'+a.id+')"]')&&(a.destroy(),delete d[b])});this.finishedAnimating=!0;H(this,"afterAnimate")};b.prototype.drawPoints=function(){var c=this.points,a=this.chart,b=this.options.marker,d=this[this.specialGroup]||this.markerGroup,e=this.xAxis,g=M(b.enabled,!e||e.isRadial?!0:null,this.closestPointRangePx>=b.enabledThreshold*b.radius),h,k;if(!1!==b.enabled||this._hasPointMarkers)for(h=0;h<c.length;h++){var f=
c[h];var m=(k=f.graphic)?"animate":"attr";var p=f.marker||{};var u=!!f.marker;if((g&&"undefined"===typeof p.enabled||p.enabled)&&!f.isNull&&!1!==f.visible){var l=M(p.symbol,this.symbol,"rect");var t=this.markerAttribs(f,f.selected&&"select");this.enabledDataSorting&&(f.startXPos=e.reversed?-(t.width||0):e.width);var n=!1!==f.isInside;k?k[n?"show":"hide"](n).animate(t):n&&(0<(t.width||0)||f.hasImage)&&(f.graphic=k=a.renderer.symbol(l,t.x,t.y,t.width,t.height,u?p:b).add(d),this.enabledDataSorting&&
a.hasRendered&&(k.attr({x:f.startXPos}),m="animate"));k&&"animate"===m&&k[n?"show":"hide"](n).animate(t);if(k&&!a.styledMode)k[m](this.pointAttribs(f,f.selected&&"select"));k&&k.addClass(f.getClassName(),!0)}else k&&(f.graphic=k.destroy())}};b.prototype.markerAttribs=function(c,a){var b=this.options,d=b.marker,e=c.marker||{},g=e.symbol||d.symbol,h=M(e.radius,d&&d.radius);a&&(d=d.states[a],a=e.states&&e.states[a],h=M(a&&a.radius,d&&d.radius,h&&h+(d&&d.radiusPlus||0)));c.hasImage=g&&0===g.indexOf("url");
c.hasImage&&(h=0);c=K(h)?{x:b.crisp?Math.floor(c.plotX-h):c.plotX-h,y:c.plotY-h}:{};h&&(c.width=c.height=2*h);return c};b.prototype.pointAttribs=function(c,a){var b=this.options.marker,d=c&&c.options,e=d&&d.marker||{},g=d&&d.color,h=c&&c.color,k=c&&c.zone&&c.zone.color,f=this.color;c=M(e.lineWidth,b.lineWidth);d=1;f=g||k||h||f;g=e.fillColor||b.fillColor||f;h=e.lineColor||b.lineColor||f;a=a||"normal";b=b.states[a]||{};a=e.states&&e.states[a]||{};c=M(a.lineWidth,b.lineWidth,c+M(a.lineWidthPlus,b.lineWidthPlus,
0));g=a.fillColor||b.fillColor||g;h=a.lineColor||b.lineColor||h;d=M(a.opacity,b.opacity,d);return{stroke:h,"stroke-width":c,fill:g,opacity:d}};b.prototype.destroy=function(c){var a=this,b=a.chart,d=/AppleWebKit\/533/.test(z.navigator.userAgent),e=a.data||[],h,k,f,m;H(a,"destroy",{keepEventsForUpdate:c});this.removeEvents(c);(a.axisTypes||[]).forEach(function(c){(m=a[c])&&m.series&&(g(m.series,a),m.isDirty=m.forceRedraw=!0)});a.legendItem&&a.chart.legend.destroyItem(a);for(k=e.length;k--;)(f=e[k])&&
f.destroy&&f.destroy();a.clips&&a.clips.forEach(function(c){return c.destroy()});l.clearTimeout(a.animationTimeout);I(a,function(c,a){c instanceof q&&!c.survive&&(h=d&&"group"===a?"hide":"destroy",c[h]())});b.hoverSeries===a&&(b.hoverSeries=void 0);g(b.series,a);b.orderSeries();I(a,function(b,d){c&&"hcEvents"===d||delete a[d]})};b.prototype.applyZones=function(){var c=this,a=this.chart,b=a.renderer,d=this.zones,e=this.clips||[],g=this.graph,k=this.area,f=Math.max(a.chartWidth,a.chartHeight),m=this[(this.zoneAxis||
"y")+"Axis"],p=a.inverted,u,l,t,n,w,x,z,D,C=!1;if(d.length&&(g||k)&&m&&"undefined"!==typeof m.min){var q=m.reversed;var F=m.horiz;g&&!this.showLine&&g.hide();k&&k.hide();var H=m.getExtremes();d.forEach(function(d,G){u=q?F?a.plotWidth:0:F?0:m.toPixels(H.min)||0;u=h(M(l,u),0,f);l=h(Math.round(m.toPixels(M(d.value,H.max),!0)||0),0,f);C&&(u=l=m.toPixels(H.max));n=Math.abs(u-l);w=Math.min(u,l);x=Math.max(u,l);m.isXAxis?(t={x:p?x:w,y:0,width:n,height:f},F||(t.x=a.plotHeight-t.x)):(t={x:0,y:p?x:w,width:f,
height:n},F&&(t.y=a.plotWidth-t.y));p&&b.isVML&&(t=m.isXAxis?{x:0,y:q?w:x,height:t.width,width:a.chartWidth}:{x:t.y-a.plotLeft-a.spacingBox.x,y:0,width:t.height,height:a.chartHeight});e[G]?e[G].animate(t):e[G]=b.clipRect(t);z=c["zone-area-"+G];D=c["zone-graph-"+G];g&&D&&D.clip(e[G]);k&&z&&z.clip(e[G]);C=d.value>H.max;c.resetZones&&0===l&&(l=void 0)});this.clips=e}else c.visible&&(g&&g.show(!0),k&&k.show(!0))};b.prototype.invertGroups=function(c){function a(){["group","markerGroup"].forEach(function(a){b[a]&&
(d.renderer.isVML&&b[a].attr({width:b.yAxis.len,height:b.xAxis.len}),b[a].width=b.yAxis.len,b[a].height=b.xAxis.len,b[a].invert(b.isRadialSeries?!1:c))})}var b=this,d=b.chart;b.xAxis&&(b.eventsToUnbind.push(x(d,"resize",a)),a(),b.invertGroups=a)};b.prototype.plotGroup=function(c,a,b,d,e){var g=this[c],h=!g;b={visibility:b,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(b.opacity=this.opacity);h&&(this[c]=g=this.chart.renderer.g().add(e));g.addClass("highcharts-"+
a+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(w(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(g.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);g.attr(b)[h?"attr":"animate"](this.getPlotBox());return g};b.prototype.getPlotBox=function(){var c=this.chart,a=this.xAxis,b=this.yAxis;c.inverted&&(a=b,b=this.xAxis);return{translateX:a?a.left:c.plotLeft,translateY:b?b.top:c.plotTop,scaleX:1,scaleY:1}};b.prototype.removeEvents=
function(c){c||ba(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(c){c()}),this.eventsToUnbind.length=0)};b.prototype.render=function(){var c=this,a=c.chart,b=c.options,d=n(b.animation),e=c.visible?"inherit":"hidden",g=b.zIndex,h=c.hasRendered,k=a.seriesGroup,f=a.inverted;a=!c.finishedAnimating&&a.renderer.isSVG?d.duration:0;H(this,"render");var m=c.plotGroup("group","series",e,g,k);c.markerGroup=c.plotGroup("markerGroup","markers",e,g,k);!1!==b.clip&&c.setClip();c.animate&&
a&&c.animate(!0);m.inverted=M(c.invertible,c.isCartesian)?f:!1;c.drawGraph&&(c.drawGraph(),c.applyZones());c.visible&&c.drawPoints();c.drawDataLabels&&c.drawDataLabels();c.redrawPoints&&c.redrawPoints();c.drawTracker&&!1!==c.options.enableMouseTracking&&c.drawTracker();c.invertGroups(f);c.animate&&a&&c.animate();h||(a&&d.defer&&(a+=d.defer),c.animationTimeout=N(function(){c.afterAnimate()},a||0));c.isDirty=!1;c.hasRendered=!0;H(c,"afterRender")};b.prototype.redraw=function(){var c=this.chart,a=this.isDirty||
this.isDirtyData,b=this.group,d=this.xAxis,e=this.yAxis;b&&(c.inverted&&b.attr({width:c.plotWidth,height:c.plotHeight}),b.animate({translateX:M(d&&d.left,c.plotLeft),translateY:M(e&&e.top,c.plotTop)}));this.translate();this.render();a&&delete this.kdTree};b.prototype.searchPoint=function(c,a){var b=this.xAxis,d=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?b.len-c.chartY+b.pos:c.chartX-b.pos,plotY:e?d.len-c.chartX+d.pos:c.chartY-d.pos},a,c)};b.prototype.buildKDTree=function(c){function a(c,
d,e){var g=c&&c.length;if(g){var h=b.kdAxisArray[d%e];c.sort(function(c,a){return c[h]-a[h]});g=Math.floor(g/2);return{point:c[g],left:a(c.slice(0,g),d+1,e),right:a(c.slice(g+1),d+1,e)}}}this.buildingKdTree=!0;var b=this,d=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;N(function(){b.kdTree=a(b.getValidPoints(null,!b.directTouch),d,d);b.buildingKdTree=!1},b.options.kdNow||c&&"touchstart"===c.type?0:1)};b.prototype.searchKDTree=function(c,a,b){function d(c,a,b,f){var m=a.point,p=
e.kdAxisArray[b%f],u=m,l=w(c[g])&&w(m[g])?Math.pow(c[g]-m[g],2):null;var t=w(c[h])&&w(m[h])?Math.pow(c[h]-m[h],2):null;t=(l||0)+(t||0);m.dist=w(t)?Math.sqrt(t):Number.MAX_VALUE;m.distX=w(l)?Math.sqrt(l):Number.MAX_VALUE;p=c[p]-m[p];t=0>p?"left":"right";l=0>p?"right":"left";a[t]&&(t=d(c,a[t],b+1,f),u=t[k]<u[k]?t:m);a[l]&&Math.sqrt(p*p)<u[k]&&(c=d(c,a[l],b+1,f),u=c[k]<u[k]?c:u);return u}var e=this,g=this.kdAxisArray[0],h=this.kdAxisArray[1],k=a?"distX":"dist";a=-1<e.options.findNearestPointBy.indexOf("y")?
2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(b);if(this.kdTree)return d(c,this.kdTree,a,a)};b.prototype.pointPlacementToXValue=function(){var c=this.options,a=c.pointRange,b=this.xAxis;c=c.pointPlacement;"between"===c&&(c=b.reversed?-.5:.5);return K(c)?c*(a||b.pointRange):0};b.prototype.isPointInside=function(c){var a=this.chart,b=this.xAxis,d=this.yAxis;return"undefined"!==typeof c.plotY&&"undefined"!==typeof c.plotX&&0<=c.plotY&&c.plotY<=(d?d.len:a.plotHeight)&&0<=c.plotX&&c.plotX<=(b?
b.len:a.plotWidth)};b.prototype.drawTracker=function(){var c=this,a=c.options,b=a.trackByArea,d=[].concat(b?c.areaPath:c.graphPath),e=c.chart,g=e.pointer,h=e.renderer,f=e.options.tooltip.snap,m=c.tracker,p=function(a){if(e.hoverSeries!==c)c.onMouseOver()},u="rgba(192,192,192,"+(G?.0001:.002)+")";m?m.attr({d:d}):c.graph&&(c.tracker=h.path(d).attr({visibility:c.visible?"visible":"hidden",zIndex:2}).addClass(b?"highcharts-tracker-area":"highcharts-tracker-line").add(c.group),e.styledMode||c.tracker.attr({"stroke-linecap":"round",
"stroke-linejoin":"round",stroke:u,fill:b?u:"none","stroke-width":c.graph.strokeWidth()+(b?0:2*f)}),[c.tracker,c.markerGroup,c.dataLabelsGroup].forEach(function(c){if(c&&(c.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",function(c){g.onTrackerMouseOut(c)}),a.cursor&&!e.styledMode&&c.css({cursor:a.cursor}),k))c.on("touchstart",p)}));H(this,"afterDrawTracker")};b.prototype.addPoint=function(c,a,b,d,e){var g=this.options,h=this.data,k=this.chart,f=this.xAxis;f=f&&f.hasNames&&f.names;
var m=g.data,p=this.xData,u;a=M(a,!0);var l={series:this};this.pointClass.prototype.applyOptions.apply(l,[c]);var t=l.x;var n=p.length;if(this.requireSorting&&t<p[n-1])for(u=!0;n&&p[n-1]>t;)n--;this.updateParallelArrays(l,"splice",n,0,0);this.updateParallelArrays(l,n);f&&l.name&&(f[t]=l.name);m.splice(n,0,c);if(u||this.processedData)this.data.splice(n,0,null),this.processData();"point"===g.legendType&&this.generatePoints();b&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(l,
"shift"),m.shift()));!1!==e&&H(this,"addPoint",{point:l});this.isDirtyData=this.isDirty=!0;a&&k.redraw(d)};b.prototype.removePoint=function(c,a,b){var d=this,g=d.data,h=g[c],k=d.points,f=d.chart,m=function(){k&&k.length===g.length&&k.splice(c,1);g.splice(c,1);d.options.data.splice(c,1);d.updateParallelArrays(h||{series:d},"splice",c,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;a&&f.redraw()};e(b,f);a=M(a,!0);h?h.firePointEvent("remove",null,m):m()};b.prototype.remove=function(c,a,b,d){function e(){g.destroy(d);
h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();M(c,!0)&&h.redraw(a)}var g=this,h=g.chart;!1!==b?H(g,"remove",null,e):e()};b.prototype.update=function(c,a){c=u(c,this.userOptions);H(this,"update",{options:c});var b=this,d=b.chart,e=b.userOptions,g=b.initialType||b.type,h=d.options.plotOptions,k=C[g].prototype,f=b.finishedAnimating&&{animation:!1},m={},l,t=["eventOptions","navigatorSeries","baseSeries"],n=c.type||e.type||d.options.chart.type,w=!(this.hasDerivedData||n&&n!==this.type||"undefined"!==
typeof c.pointStart||"undefined"!==typeof c.pointInterval||"undefined"!==typeof c.relativeXValue||c.joinBy||c.mapData||b.hasOptionChanged("dataGrouping")||b.hasOptionChanged("pointStart")||b.hasOptionChanged("pointInterval")||b.hasOptionChanged("pointIntervalUnit")||b.hasOptionChanged("keys"));n=n||g;w&&(t.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY",
"minX","maxX"),!1!==c.visible&&t.push("area","graph"),b.parallelArrays.forEach(function(c){t.push(c+"Data")}),c.data&&(c.dataSorting&&p(b.options.dataSorting,c.dataSorting),this.setData(c.data,!1)));c=W(e,f,{index:"undefined"===typeof e.index?b.index:e.index,pointStart:M(h&&h.series&&h.series.pointStart,e.pointStart,b.xData[0])},!w&&{data:b.options.data},c);w&&c.data&&(c.data=b.options.data);t=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(t);t.forEach(function(c){t[c]=b[c];delete b[c]});
h=!1;if(C[n]){if(h=n!==b.type,b.remove(!1,!1,!1,!0),h)if(Object.setPrototypeOf)Object.setPrototypeOf(b,C[n].prototype);else{f=Object.hasOwnProperty.call(b,"hcEvents")&&b.hcEvents;for(l in k)b[l]=void 0;p(b,C[n].prototype);f?b.hcEvents=f:delete b.hcEvents}}else F(17,!0,d,{missingModuleFor:n});t.forEach(function(c){b[c]=t[c]});b.init(d,c);if(w&&this.points){var x=b.options;!1===x.visible?(m.graphic=1,m.dataLabel=1):b._hasPointLabels||(c=x.marker,k=x.dataLabels,!c||!1!==c.enabled&&(e.marker&&e.marker.symbol)===
c.symbol||(m.graphic=1),k&&!1===k.enabled&&(m.dataLabel=1));this.points.forEach(function(c){c&&c.series&&(c.resolveColor(),Object.keys(m).length&&c.destroyElements(m),!1===x.showInLegend&&c.legendItem&&d.legend.destroyItem(c))},this)}b.initialType=g;d.linkSeries();h&&b.linkedSeries.length&&(b.isDirtyData=!0);H(this,"afterUpdate");M(a,!0)&&d.redraw(w?void 0:!1)};b.prototype.setName=function(c){this.name=this.options.name=this.userOptions.name=c;this.chart.isDirtyLegend=!0};b.prototype.hasOptionChanged=
function(c){var a=this.options[c],b=this.chart.options.plotOptions,d=this.userOptions[c];return d?a!==d:a!==M(b&&b[this.type]&&b[this.type][c],b&&b.series&&b.series[c],a)};b.prototype.onMouseOver=function(){var c=this.chart,a=c.hoverSeries;c.pointer.setHoverChartIndex();if(a&&a!==this)a.onMouseOut();this.options.events.mouseOver&&H(this,"mouseOver");this.setState("hover");c.hoverSeries=this};b.prototype.onMouseOut=function(){var c=this.options,a=this.chart,b=a.tooltip,d=a.hoverPoint;a.hoverSeries=
null;if(d)d.onMouseOut();this&&c.events.mouseOut&&H(this,"mouseOut");!b||this.stickyTracking||b.shared&&!this.noSharedTooltip||b.hide();a.series.forEach(function(c){c.setState("",!0)})};b.prototype.setState=function(c,a){var b=this,d=b.options,e=b.graph,g=d.inactiveOtherPoints,h=d.states,k=M(h[c||"normal"]&&h[c||"normal"].animation,b.chart.options.chart.animation),f=d.lineWidth,m=0,p=d.opacity;c=c||"";if(b.state!==c&&([b.group,b.markerGroup,b.dataLabelsGroup].forEach(function(a){a&&(b.state&&a.removeClass("highcharts-series-"+
b.state),c&&a.addClass("highcharts-series-"+c))}),b.state=c,!b.chart.styledMode)){if(h[c]&&!1===h[c].enabled)return;c&&(f=h[c].lineWidth||f+(h[c].lineWidthPlus||0),p=M(h[c].opacity,p));if(e&&!e.dashstyle)for(d={"stroke-width":f},e.animate(d,k);b["zone-graph-"+m];)b["zone-graph-"+m].animate(d,k),m+=1;g||[b.group,b.markerGroup,b.dataLabelsGroup,b.labelBySeries].forEach(function(c){c&&c.animate({opacity:p},k)})}a&&g&&b.points&&b.setAllPointsToState(c||void 0)};b.prototype.setAllPointsToState=function(c){this.points.forEach(function(a){a.setState&&
a.setState(c)})};b.prototype.setVisible=function(c,a){var b=this,d=b.chart,e=b.legendItem,g=d.options.chart.ignoreHiddenSeries,h=b.visible,k=(b.visible=c=b.options.visible=b.userOptions.visible="undefined"===typeof c?!h:c)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(c){if(b[c])b[c][k]()});if(d.hoverSeries===b||(d.hoverPoint&&d.hoverPoint.series)===b)b.onMouseOut();e&&d.legend.colorizeItem(b,c);b.isDirty=!0;b.options.stacking&&d.series.forEach(function(c){c.options.stacking&&
c.visible&&(c.isDirty=!0)});b.linkedSeries.forEach(function(a){a.setVisible(c,!1)});g&&(d.isDirtyBox=!0);H(b,k);!1!==a&&d.redraw()};b.prototype.show=function(){this.setVisible(!0)};b.prototype.hide=function(){this.setVisible(!1)};b.prototype.select=function(c){this.selected=c=this.options.selected="undefined"===typeof c?!this.selected:c;this.checkbox&&(this.checkbox.checked=c);H(this,c?"select":"unselect")};b.prototype.shouldShowTooltip=function(c,a,b){void 0===b&&(b={});b.series=this;b.visiblePlotOnly=
!0;return this.chart.isInsidePlot(c,a,b)};b.defaultOptions=E;return b}();p(b.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:r.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:A,requireSorting:!0,sorted:!0});y.series=b;"";"";return b});I(f,"Extensions/ScrollablePlotArea.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Axis/Axis.js"],f["Core/Chart/Chart.js"],f["Core/Series/Series.js"],
f["Core/Renderer/RendererRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A){var E=b.stop,y=A.addEvent,q=A.createElement,l=A.merge,n=A.pick;y(v,"afterSetChartSize",function(b){var a=this.options.chart.scrollablePlotArea,d=a&&a.minWidth;a=a&&a.minHeight;if(!this.renderer.forExport){if(d){if(this.scrollablePixelsX=d=Math.max(0,d-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox);this.plotBox.width=this.plotWidth+=d;this.inverted?this.clipBox.height+=d:this.clipBox.width+=
d;var e={1:{name:"right",value:d}}}}else a&&(this.scrollablePixelsY=d=Math.max(0,a-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.height=this.plotHeight+=d,this.inverted?this.clipBox.width+=d:this.clipBox.height+=d,e={2:{name:"bottom",value:d}});e&&!b.skipAxes&&this.axes.forEach(function(a){e[a.side]?a.getPlotLinePath=function(){var b=e[a.side].name,d=this[b];this[b]=d-e[a.side].value;var k=f.prototype.getPlotLinePath.apply(this,arguments);
this[b]=d;return k}:(a.setAxisSize(),a.setAxisTranslation())})}});y(v,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});v.prototype.setUpScrolling=function(){var b=this,a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(a.overflowX="auto");this.scrollablePixelsY&&(a.overflowY="auto");this.scrollingParent=q("div",{className:"highcharts-scrolling-parent"},
{position:"relative"},this.renderTo);this.scrollingContainer=q("div",{className:"highcharts-scrolling"},a,this.scrollingParent);y(this.scrollingContainer,"scroll",function(){b.pointer&&delete b.pointer.chartPosition});this.innerContainer=q("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};v.prototype.moveFixedElements=function(){var b=this.container,a=this.fixedRenderer,d=".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(" "),
k;this.scrollablePixelsX&&!this.inverted?k=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(k=".highcharts-yaxis");k&&d.push(k+":not(.highcharts-radial-axis)",k+"-labels:not(.highcharts-radial-axis-labels)");d.forEach(function(d){[].forEach.call(b.querySelectorAll(d),function(b){(b.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(b);b.style.pointerEvents="auto"})})};
v.prototype.applyFixed=function(){var b=!this.fixedDiv,a=this.options.chart,d=a.scrollablePlotArea,k=r.getRendererType();b?(this.fixedDiv=q("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(a.style&&a.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=a=new k(this.fixedDiv,this.chartWidth,this.chartHeight,
this.options.chart.style),this.scrollableMask=a.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":n(d.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),y(this,"afterShowResetZoom",this.moveFixedElements),y(this,"afterApplyDrilldown",this.moveFixedElements),y(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||b)this.scrollableDirty=!1,this.moveFixedElements();a=this.chartWidth+
(this.scrollablePixelsX||0);k=this.chartHeight+(this.scrollablePixelsY||0);E(this.container);this.container.style.width=a+"px";this.container.style.height=k+"px";this.renderer.boxWrapper.attr({width:a,height:k,viewBox:[0,0,a,k].join(" ")});this.chartBackground.attr({width:a,height:k});this.scrollingContainer.style.height=this.chartHeight+"px";b&&(d.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*d.scrollPositionX),d.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*
d.scrollPositionY));k=this.axisOffset;b=this.plotTop-k[0]-1;d=this.plotLeft-k[3]-1;a=this.plotTop+this.plotHeight+k[2]+1;k=this.plotLeft+this.plotWidth+k[1]+1;var f=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);b=this.scrollablePixelsX?[["M",0,b],["L",this.plotLeft-1,b],["L",this.plotLeft-1,a],["L",0,a],["Z"],["M",f,b],["L",this.chartWidth,b],["L",this.chartWidth,a],["L",f,a],["Z"]]:this.scrollablePixelsY?[["M",d,0],["L",d,this.plotTop-
1],["L",k,this.plotTop-1],["L",k,0],["Z"],["M",d,l],["L",d,this.chartHeight],["L",k,this.chartHeight],["L",k,l],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:b})};y(f,"afterInit",function(){this.chart.scrollableDirty=!0});y(B,"show",function(){this.chart.scrollableDirty=!0});""});I(f,"Core/Axis/StackingAxis.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Axis/Axis.js"],f["Core/Utilities.js"]],function(b,f,v){var B=b.getDeferredAnimation,r=v.addEvent,A=
v.destroyObjectProperties,E=v.fireEvent,y=v.isNumber,q=v.objectEach,l;(function(b){function e(){var a=this.stacking;if(a){var b=a.stacks;q(b,function(a,d){A(a);b[d]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function a(){this.stacking||(this.stacking=new k(this))}var d=[];b.compose=function(b){-1===d.indexOf(b)&&(d.push(b),r(b,"init",a),r(b,"destroy",e));return b};var k=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=
function(){var a=this.axis,b=a.series,d=a.options.reversedStacks,e=b.length,k;if(!a.isXAxis){this.usePercentage=!1;for(k=e;k--;){var h=b[d?k:e-k-1];h.setStackedPoints();h.setGroupedPoints()}for(k=0;k<e;k++)b[k].modifyStacks();E(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=this.stacks=this.oldStacks;q(a,function(a){q(a,function(a){a.cumulative=a.total})})}};a.prototype.resetStacks=function(){var a=this,b=a.stacks;a.axis.isXAxis||q(b,function(b){q(b,
function(d,e){y(d.touched)&&d.touched<a.stacksTouched?(d.destroy(),delete b[e]):(d.total=null,d.cumulative=null)})})};a.prototype.renderStackTotals=function(){var a=this.axis,b=a.chart,d=b.renderer,e=this.stacks;a=B(b,a.options.stackLabels&&a.options.stackLabels.animation||!1);var k=this.stackTotalGroup=this.stackTotalGroup||d.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();k.translate(b.plotLeft,b.plotTop);q(e,function(a){q(a,function(a){a.render(k)})});k.animate({opacity:1},
a)};return a}();b.Additions=k})(l||(l={}));return l});I(f,"Extensions/Stacking.js",[f["Core/Axis/Axis.js"],f["Core/Chart/Chart.js"],f["Core/FormatUtilities.js"],f["Core/Globals.js"],f["Core/Series/Series.js"],f["Core/Axis/StackingAxis.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E){var y=v.format,q=E.correctFloat,l=E.defined,n=E.destroyObjectProperties,e=E.isArray,a=E.isNumber,d=E.objectEach,k=E.pick,G=function(){function b(a,b,d,e,h){var k=a.chart.inverted;this.axis=a;this.isNegative=d;this.options=
b=b||{};this.x=e;this.total=null;this.points={};this.hasValidPoints=!1;this.stack=h;this.rightCliff=this.leftCliff=0;this.alignOptions={align:b.align||(k?d?"left":"right":"center"),verticalAlign:b.verticalAlign||(k?"middle":d?"bottom":"top"),y:b.y,x:b.x};this.textAlign=b.textAlign||(k?d?"right":"left":"center")}b.prototype.destroy=function(){n(this,this.axis)};b.prototype.render=function(a){var b=this.axis.chart,d=this.options,e=d.format;e=e?y(e,this,b):d.formatter.call(this);this.label?this.label.attr({text:e,
visibility:"hidden"}):(this.label=b.renderer.label(e,null,null,d.shape,null,null,d.useHTML,!1,"stack-labels"),e={r:d.borderRadius||0,text:e,rotation:d.rotation,padding:k(d.padding,5),visibility:"hidden"},b.styledMode||(e.fill=d.backgroundColor,e.stroke=d.borderColor,e["stroke-width"]=d.borderWidth,this.label.css(d.style)),this.label.attr(e),this.label.added||this.label.add(a));this.label.labelrank=b.plotSizeY};b.prototype.setOffset=function(b,d,e,f,h){var m=this.axis,c=m.chart;f=m.translate(m.stacking.usePercentage?
100:f?f:this.total,0,0,0,1);e=m.translate(e?e:0);e=l(f)&&Math.abs(f-e);b=k(h,c.xAxis[0].translate(this.x))+b;m=l(f)&&this.getStackBox(c,this,b,f,d,e,m);d=this.label;e=this.isNegative;b="justify"===k(this.options.overflow,"justify");var t=this.textAlign;d&&m&&(h=d.getBBox(),f=d.padding,t="left"===t?c.inverted?-f:f:"right"===t?h.width:c.inverted&&"center"===t?h.width/2:c.inverted?e?h.width+f:-f:h.width/2,e=c.inverted?h.height/2:e?-f:h.height,this.alignOptions.x=k(this.options.x,0),this.alignOptions.y=
k(this.options.y,0),m.x-=t,m.y-=e,d.align(this.alignOptions,null,m),c.isInsidePlot(d.alignAttr.x+t-this.alignOptions.x,d.alignAttr.y+e-this.alignOptions.y)?d.show():(d.alignAttr.y=-9999,b=!1),b&&r.prototype.justifyDataLabel.call(this.axis,d,this.alignOptions,d.alignAttr,h,m),d.attr({x:d.alignAttr.x,y:d.alignAttr.y}),k(!b&&this.options.crop,!0)&&((c=a(d.x)&&a(d.y)&&c.isInsidePlot(d.x-f+d.width,d.y)&&c.isInsidePlot(d.x+f,d.y))||d.hide()))};b.prototype.getStackBox=function(a,b,d,e,h,k,c){var f=b.axis.reversed,
g=a.inverted,m=c.height+c.pos-(g?a.plotLeft:a.plotTop);b=b.isNegative&&!f||!b.isNegative&&f;return{x:g?b?e-c.right:e-k+c.pos-a.plotLeft:d+a.xAxis[0].transB-a.plotLeft,y:g?c.height-d-h:b?m-e-k:m-e,width:g?k:h,height:g?h:k}};return b}();f.prototype.getStacks=function(){var a=this,b=a.inverted;a.yAxis.forEach(function(a){a.stacking&&a.stacking.stacks&&a.hasVisibleSeries&&(a.stacking.oldStacks=a.stacking.stacks)});a.series.forEach(function(d){var e=d.xAxis&&d.xAxis.options||{};!d.options.stacking||!0!==
d.visible&&!1!==a.options.chart.ignoreHiddenSeries||(d.stackKey=[d.type,k(d.options.stack,""),b?e.top:e.left,b?e.height:e.width].join())})};A.compose(b);r.prototype.setGroupedPoints=function(){var a=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?r.prototype.setStackedPoints.call(this,"group"):a&&d(a.stacks,function(b,e){"group"===e.slice(-5)&&(d(b,function(a){return a.destroy()}),delete a.stacks[e])})};
r.prototype.setStackedPoints=function(a){var b=a||this.options.stacking;if(b&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var d=this.processedXData,f=this.processedYData,m=[],h=f.length,u=this.options,c=u.threshold,n=k(u.startFromThreshold&&c,0);u=u.stack;a=a?this.type+","+b:this.stackKey;var g="-"+a,z=this.negStacks,p=this.yAxis,D=p.stacking.stacks,H=p.stacking.oldStacks,r,y;p.stacking.stacksTouched+=1;for(y=0;y<h;y++){var v=d[y];var A=f[y];var E=this.getStackIndicator(E,
v,this.index);var B=E.key;var J=(r=z&&A<(n?0:c))?g:a;D[J]||(D[J]={});D[J][v]||(H[J]&&H[J][v]?(D[J][v]=H[J][v],D[J][v].total=null):D[J][v]=new G(p,p.options.stackLabels,r,v,u));J=D[J][v];null!==A?(J.points[B]=J.points[this.index]=[k(J.cumulative,n)],l(J.cumulative)||(J.base=B),J.touched=p.stacking.stacksTouched,0<E.index&&!1===this.singleStacks&&(J.points[B][0]=J.points[this.index+","+v+",0"][0])):J.points[B]=J.points[this.index]=null;"percent"===b?(r=r?a:g,z&&D[r]&&D[r][v]?(r=D[r][v],J.total=r.total=
Math.max(r.total,J.total)+Math.abs(A)||0):J.total=q(J.total+(Math.abs(A)||0))):"group"===b?(e(A)&&(A=A[0]),null!==A&&(J.total=(J.total||0)+1)):J.total=q(J.total+(A||0));J.cumulative="group"===b?(J.total||1)-1:k(J.cumulative,n)+(A||0);null!==A&&(J.points[B].push(J.cumulative),m[y]=J.cumulative,J.hasValidPoints=!0)}"percent"===b&&(p.stacking.usePercentage=!0);"group"!==b&&(this.stackedYData=m);p.stacking.oldStacks={}}};r.prototype.modifyStacks=function(){var a=this,b=a.stackKey,d=a.yAxis.stacking.stacks,
e=a.processedXData,k,h=a.options.stacking;a[h+"Stacker"]&&[b,"-"+b].forEach(function(b){for(var c=e.length,f,g;c--;)if(f=e[c],k=a.getStackIndicator(k,f,a.index,b),g=(f=d[b]&&d[b][f])&&f.points[k.key])a[h+"Stacker"](g,f,c)})};r.prototype.percentStacker=function(a,b,d){b=b.total?100/b.total:0;a[0]=q(a[0]*b);a[1]=q(a[1]*b);this.stackedYData[d]=a[1]};r.prototype.getStackIndicator=function(a,b,d,e){!l(a)||a.x!==b||e&&a.stackKey!==e?a={x:b,index:0,key:e,stackKey:e}:a.index++;a.key=[d,b,a.index].join();
return a};B.StackItem=G;"";return B.StackItem});I(f,"Series/Line/LineSeries.js",[f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v){var B=this&&this.__extends||function(){var b=function(f,q){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var e in f)f.hasOwnProperty(e)&&(b[e]=f[e])};return b(f,q)};return function(f,q){function l(){this.constructor=f}b(f,q);f.prototype=null===q?Object.create(q):
(l.prototype=q.prototype,new l)}}(),r=v.defined,A=v.merge;v=function(f){function y(){var b=null!==f&&f.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}B(y,f);y.prototype.drawGraph=function(){var b=this,f=this.options,n=(this.gappedPath||this.getGraphPath).call(this),e=this.chart.styledMode,a=[["graph","highcharts-graph"]];e||a[0].push(f.lineColor||this.color||"#cccccc",f.dashStyle);a=b.getZonesGraphs(a);a.forEach(function(a,k){var d=a[0],l=b[d],q=l?"animate":"attr";
l?(l.endX=b.preventGraphAnimation?null:n.xMap,l.animate({d:n})):n.length&&(b[d]=l=b.chart.renderer.path(n).addClass(a[1]).attr({zIndex:1}).add(b.group));l&&!e&&(d={stroke:a[2],"stroke-width":f.lineWidth,fill:b.fillGraph&&b.color||"none"},a[3]?d.dashstyle=a[3]:"square"!==f.linecap&&(d["stroke-linecap"]=d["stroke-linejoin"]="round"),l[q](d).shadow(2>k&&f.shadow));l&&(l.startX=n.xMap,l.isArea=n.isArea)})};y.prototype.getGraphPath=function(b,f,n){var e=this,a=e.options,d=[],k=[],l,q=a.step;b=b||e.points;
var C=b.reversed;C&&b.reverse();(q={right:1,center:2}[q]||q&&3)&&C&&(q=4-q);b=this.getValidPoints(b,!1,!(a.connectNulls&&!f&&!n));b.forEach(function(x,t){var m=x.plotX,h=x.plotY,u=b[t-1];(x.leftCliff||u&&u.rightCliff)&&!n&&(l=!0);x.isNull&&!r(f)&&0<t?l=!a.connectNulls:x.isNull&&!f?l=!0:(0===t||l?t=[["M",x.plotX,x.plotY]]:e.getPointSpline?t=[e.getPointSpline(b,x,t)]:q?(t=1===q?[["L",u.plotX,h]]:2===q?[["L",(u.plotX+m)/2,u.plotY],["L",(u.plotX+m)/2,h]]:[["L",m,u.plotY]],t.push(["L",m,h])):t=[["L",m,
h]],k.push(x.x),q&&(k.push(x.x),2===q&&k.push(x.x)),d.push.apply(d,t),l=!1)});d.xMap=k;return e.graphPath=d};y.prototype.getZonesGraphs=function(b){this.zones.forEach(function(f,n){n=["zone-graph-"+n,"highcharts-graph highcharts-zone-graph-"+n+" "+(f.className||"")];this.chart.styledMode||n.push(f.color||this.color,f.dashStyle||this.options.dashStyle);b.push(n)},this);return b};y.defaultOptions=A(b.defaultOptions,{});return y}(b);f.registerSeriesType("line",v);"";return v});I(f,"Series/Area/AreaSeries.js",
[f["Core/Color/Color.js"],f["Core/Legend/LegendSymbol.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B){var r=this&&this.__extends||function(){var b=function(e,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(e,a)};return function(e,a){function d(){this.constructor=e}b(e,a);e.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),A=b.parse,
E=v.seriesTypes.line;b=B.extend;var y=B.merge,q=B.objectEach,l=B.pick;B=function(b){function e(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}r(e,b);e.prototype.drawGraph=function(){this.areaPath=[];b.prototype.drawGraph.apply(this);var a=this,d=this.areaPath,e=this.options,f=[["area","highcharts-area",this.color,e.fillColor]];this.zones.forEach(function(b,d){f.push(["zone-area-"+d,"highcharts-area highcharts-zone-area-"+d+" "+b.className,b.color||
a.color,b.fillColor||e.fillColor])});f.forEach(function(b){var f=b[0],k=a[f],t=k?"animate":"attr",m={};k?(k.endX=a.preventGraphAnimation?null:d.xMap,k.animate({d:d})):(m.zIndex=0,k=a[f]=a.chart.renderer.path(d).addClass(b[1]).add(a.group),k.isArea=!0);a.chart.styledMode||(m.fill=l(b[3],A(b[2]).setOpacity(l(e.fillOpacity,.75)).get()));k[t](m);k.startX=d.xMap;k.shiftUnit=e.step?2:1})};e.prototype.getGraphPath=function(a){var b=E.prototype.getGraphPath,e=this.options,f=e.stacking,n=this.yAxis,q,x=[],
t=[],m=this.index,h=n.stacking.stacks[this.stackKey],u=e.threshold,c=Math.round(n.getThreshold(e.threshold));e=l(e.connectNulls,"percent"===f);var w=function(b,d,e){var g=a[b];b=f&&h[g.x].points[m];var k=g[e+"Null"]||0;e=g[e+"Cliff"]||0;g=!0;if(e||k){var p=(k?b[0]:b[1])+e;var l=b[0]+e;g=!!k}else!f&&a[d]&&a[d].isNull&&(p=l=u);"undefined"!==typeof p&&(t.push({plotX:F,plotY:null===p?c:n.getThreshold(p),isNull:g,isCliff:!0}),x.push({plotX:F,plotY:null===l?c:n.getThreshold(l),doCurve:!1}))};a=a||this.points;
f&&(a=this.getStackPoints(a));for(q=0;q<a.length;q++){f||(a[q].leftCliff=a[q].rightCliff=a[q].leftNull=a[q].rightNull=void 0);var g=a[q].isNull;var F=l(a[q].rectPlotX,a[q].plotX);var p=f?l(a[q].yBottom,c):c;if(!g||e)e||w(q,q-1,"left"),g&&!f&&e||(t.push(a[q]),x.push({x:q,plotX:F,plotY:p})),e||w(q,q+1,"right")}q=b.call(this,t,!0,!0);x.reversed=!0;g=b.call(this,x,!0,!0);(p=g[0])&&"M"===p[0]&&(g[0]=["L",p[1],p[2]]);g=q.concat(g);g.length&&g.push(["Z"]);b=b.call(this,t,!1,e);g.xMap=q.xMap;this.areaPath=
g;return b};e.prototype.getStackPoints=function(a){var b=this,e=[],f=[],n=this.xAxis,C=this.yAxis,x=C.stacking.stacks[this.stackKey],t={},m=C.series,h=m.length,u=C.options.reversedStacks?1:-1,c=m.indexOf(b);a=a||this.points;if(this.options.stacking){for(var w=0;w<a.length;w++)a[w].leftNull=a[w].rightNull=void 0,t[a[w].x]=a[w];q(x,function(c,a){null!==c.total&&f.push(a)});f.sort(function(c,a){return c-a});var g=m.map(function(c){return c.visible});f.forEach(function(a,d){var k=0,p,w;if(t[a]&&!t[a].isNull)e.push(t[a]),
[-1,1].forEach(function(e){var k=1===e?"rightNull":"leftNull",l=0,n=x[f[d+e]];if(n)for(var D=c;0<=D&&D<h;){var q=m[D].index;p=n.points[q];p||(q===b.index?t[a][k]=!0:g[D]&&(w=x[a].points[q])&&(l-=w[1]-w[0]));D+=u}t[a][1===e?"rightCliff":"leftCliff"]=l});else{for(var q=c;0<=q&&q<h;){if(p=x[a].points[m[q].index]){k=p[1];break}q+=u}k=l(k,0);k=C.translate(k,0,1,0,1);e.push({isNull:!0,plotX:n.translate(a,0,0,0,1),x:a,plotY:k,yBottom:k})}})}return e};e.defaultOptions=y(E.defaultOptions,{threshold:0});return e}(E);
b(B.prototype,{singleStacks:!1,drawLegendSymbol:f.drawRectangle});v.registerSeriesType("area",B);"";return B});I(f,"Series/Spline/SplineSeries.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f){var v=this&&this.__extends||function(){var b=function(f,q){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var e in f)f.hasOwnProperty(e)&&(b[e]=f[e])};return b(f,q)};return function(f,q){function l(){this.constructor=f}b(f,
q);f.prototype=null===q?Object.create(q):(l.prototype=q.prototype,new l)}}(),B=b.seriesTypes.line,r=f.merge,A=f.pick;f=function(b){function f(){var f=null!==b&&b.apply(this,arguments)||this;f.data=void 0;f.options=void 0;f.points=void 0;return f}v(f,b);f.prototype.getPointSpline=function(b,f,n){var e=f.plotX||0,a=f.plotY||0,d=b[n-1];n=b[n+1];if(d&&!d.isNull&&!1!==d.doCurve&&!f.isCliff&&n&&!n.isNull&&!1!==n.doCurve&&!f.isCliff){b=d.plotY||0;var k=n.plotX||0;n=n.plotY||0;var l=0;var q=(1.5*e+(d.plotX||
0))/2.5;var C=(1.5*a+b)/2.5;k=(1.5*e+k)/2.5;var x=(1.5*a+n)/2.5;k!==q&&(l=(x-C)*(k-e)/(k-q)+a-x);C+=l;x+=l;C>b&&C>a?(C=Math.max(b,a),x=2*a-C):C<b&&C<a&&(C=Math.min(b,a),x=2*a-C);x>n&&x>a?(x=Math.max(n,a),C=2*a-x):x<n&&x<a&&(x=Math.min(n,a),C=2*a-x);f.rightContX=k;f.rightContY=x}f=["C",A(d.rightContX,d.plotX,0),A(d.rightContY,d.plotY,0),A(q,e,0),A(C,a,0),e,a];d.rightContX=d.rightContY=void 0;return f};f.defaultOptions=r(B.defaultOptions);return f}(B);b.registerSeriesType("spline",f);"";return f});
I(f,"Series/AreaSpline/AreaSplineSeries.js",[f["Series/Area/AreaSeries.js"],f["Series/Spline/SplineSeries.js"],f["Core/Legend/LegendSymbol.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B,r){var A=this&&this.__extends||function(){var b=function(f,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(f,e)};return function(f,e){function a(){this.constructor=f}b(f,
e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),E=b.prototype,y=r.extend,q=r.merge;r=function(l){function n(){var b=null!==l&&l.apply(this,arguments)||this;b.data=void 0;b.points=void 0;b.options=void 0;return b}A(n,l);n.defaultOptions=q(f.defaultOptions,b.defaultOptions);return n}(f);y(r.prototype,{getGraphPath:E.getGraphPath,getStackPoints:E.getStackPoints,drawGraph:E.drawGraph,drawLegendSymbol:v.drawRectangle});B.registerSeriesType("areaspline",r);"";return r});I(f,
"Series/Column/ColumnSeries.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Legend/LegendSymbol.js"],f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E){var y=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])};return a(b,c)};return function(b,
c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),q=b.animObject,l=f.parse,n=v.hasTouch;b=v.noop;var e=E.clamp,a=E.css,d=E.defined,k=E.extend,G=E.fireEvent,z=E.isArray,C=E.isNumber,x=E.merge,t=E.pick,m=E.objectEach;E=function(b){function h(){var c=null!==b&&b.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}y(h,b);h.prototype.animate=function(c){var a=this,b=this.yAxis,
d=a.options,h=this.chart.inverted,f={},m=h?"translateX":"translateY";if(c)f.scaleY=.001,c=e(b.toPixels(d.threshold),b.pos,b.pos+b.len),h?f.translateX=c-b.len:f.translateY=c,a.clipBox&&a.setClip(),a.group.attr(f);else{var l=Number(a.group.attr(m));a.group.animate({scaleY:1},k(q(a.options.animation),{step:function(c,d){a.group&&(f[m]=l+d.pos*(b.pos-l),a.group.attr(f))}}))}};h.prototype.init=function(c,a){b.prototype.init.apply(this,arguments);var d=this;c=d.chart;c.hasRendered&&c.series.forEach(function(c){c.type===
d.type&&(c.isDirty=!0)})};h.prototype.getColumnMetrics=function(){var c=this,a=c.options,b=c.xAxis,d=c.yAxis,e=b.options.reversedStacks;e=b.reversed&&!e||!b.reversed&&e;var h={},f,k=0;!1===a.grouping?k=1:c.chart.series.forEach(function(a){var b=a.yAxis,e=a.options;if(a.type===c.type&&(a.visible||!c.chart.options.chart.ignoreHiddenSeries)&&d.len===b.len&&d.pos===b.pos){if(e.stacking&&"group"!==e.stacking){f=a.stackKey;"undefined"===typeof h[f]&&(h[f]=k++);var g=h[f]}else!1!==e.grouping&&(g=k++);a.columnIndex=
g}});var m=Math.min(Math.abs(b.transA)*(b.ordinal&&b.ordinal.slope||a.pointRange||b.closestPointRange||b.tickInterval||1),b.len),l=m*a.groupPadding,u=(m-2*l)/(k||1);a=Math.min(a.maxPointWidth||b.len,t(a.pointWidth,u*(1-2*a.pointPadding)));c.columnMetrics={width:a,offset:(u-a)/2+(l+((c.columnIndex||0)+(e?1:0))*u-m/2)*(e?-1:1),paddedWidth:u,columnCount:k};return c.columnMetrics};h.prototype.crispCol=function(c,a,b,d){var e=this.chart,g=this.borderWidth,h=-(g%2?.5:0);g=g%2?.5:1;e.inverted&&e.renderer.isVML&&
(g+=1);this.options.crisp&&(b=Math.round(c+b)+h,c=Math.round(c)+h,b-=c);d=Math.round(a+d)+g;h=.5>=Math.abs(a)&&.5<d;a=Math.round(a)+g;d-=a;h&&d&&(--a,d+=1);return{x:c,y:a,width:b,height:d}};h.prototype.adjustForMissingColumns=function(c,a,b,d){var e=this,g=this.options.stacking;if(!b.isNull&&1<d.columnCount){var h=this.yAxis.options.reversedStacks,f=0,k=h?0:-d.columnCount;m(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(c){if("number"===typeof b.x&&(c=c[b.x.toString()])){var a=c.points[e.index],
d=c.total;g?(a&&(f=k),c.hasValidPoints&&(h?k++:k--)):z(a)&&(f=a[1],k=d||0)}});c=(b.plotX||0)+((k-1)*d.paddedWidth+a)/2-a-f*d.paddedWidth}return c};h.prototype.translate=function(){var c=this,a=c.chart,b=c.options,h=c.dense=2>c.closestPointRange*c.xAxis.transA;h=c.borderWidth=t(b.borderWidth,h?0:1);var f=c.xAxis,k=c.yAxis,m=b.threshold,l=c.translatedThreshold=k.getThreshold(m),u=t(b.minPointLength,5),n=c.getColumnMetrics(),x=n.width,q=c.pointXOffset=n.offset,z=c.dataMin,G=c.dataMax,y=c.barW=Math.max(x,
1+2*h);a.inverted&&(l-=.5);b.pointPadding&&(y=Math.ceil(y));r.prototype.translate.apply(c);c.points.forEach(function(g){var h=t(g.yBottom,l),p=999+Math.abs(h),w=g.plotX||0;p=e(g.plotY,-p,k.len+p);var D=Math.min(p,h),r=Math.max(p,h)-D,H=x,F=w+q,v=y;u&&Math.abs(r)<u&&(r=u,w=!k.reversed&&!g.negative||k.reversed&&g.negative,C(m)&&C(G)&&g.y===m&&G<=m&&(k.min||0)<m&&(z!==G||(k.max||0)<=m)&&(w=!w),D=Math.abs(D-l)>u?h-u:l-(w?u:0));d(g.options.pointWidth)&&(H=v=Math.ceil(g.options.pointWidth),F-=Math.round((H-
x)/2));b.centerInCategory&&(F=c.adjustForMissingColumns(F,H,g,n));g.barX=F;g.pointWidth=H;g.tooltipPos=a.inverted?[e(k.len+k.pos-a.plotLeft-p,k.pos-a.plotLeft,k.len+k.pos-a.plotLeft),f.len+f.pos-a.plotTop-F-v/2,r]:[f.left-a.plotLeft+F+v/2,e(p+k.pos-a.plotTop,k.pos-a.plotTop,k.len+k.pos-a.plotTop),r];g.shapeType=c.pointClass.prototype.shapeType||"rect";g.shapeArgs=c.crispCol.apply(c,g.isNull?[F,l,v,0]:[F,D,v,r])})};h.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};
h.prototype.pointAttribs=function(c,a){var b=this.options,d=this.pointAttrToOptions||{},e=d.stroke||"borderColor",h=d["stroke-width"]||"borderWidth",f=c&&c.color||this.color,k=c&&c[e]||b[e]||f;d=c&&c.options.dashStyle||b.dashStyle;var m=c&&c[h]||b[h]||this[h]||0,u=t(c&&c.opacity,b.opacity,1);if(c&&this.zones.length){var n=c.getZone();f=c.options.color||n&&(n.color||c.nonZonedColor)||this.color;n&&(k=n.borderColor||k,d=n.dashStyle||d,m=n.borderWidth||m)}a&&c&&(c=x(b.states[a],c.options.states&&c.options.states[a]||
{}),a=c.brightness,f=c.color||"undefined"!==typeof a&&l(f).brighten(c.brightness).get()||f,k=c[e]||k,m=c[h]||m,d=c.dashStyle||d,u=t(c.opacity,u));e={fill:f,stroke:k,"stroke-width":m,opacity:u};d&&(e.dashstyle=d);return e};h.prototype.drawPoints=function(){var c=this,a=this.chart,b=c.options,d=a.renderer,e=b.animationLimit||250,h;c.points.forEach(function(g){var f=g.graphic,k=!!f,m=f&&a.pointCount<e?"animate":"attr";if(C(g.plotY)&&null!==g.y){h=g.shapeArgs;f&&g.hasNewShapeType()&&(f=f.destroy());c.enabledDataSorting&&
(g.startXPos=c.xAxis.reversed?-(h?h.width||0:0):c.xAxis.width);f||(g.graphic=f=d[g.shapeType](h).add(g.group||c.group))&&c.enabledDataSorting&&a.hasRendered&&a.pointCount<e&&(f.attr({x:g.startXPos}),k=!0,m="animate");if(f&&k)f[m](x(h));if(b.borderRadius)f[m]({r:b.borderRadius});a.styledMode||f[m](c.pointAttribs(g,g.selected&&"select")).shadow(!1!==g.allowShadow&&b.shadow,null,b.stacking&&!b.borderRadius);f&&(f.addClass(g.getClassName(),!0),f.attr({visibility:g.visible?"inherit":"hidden"}))}else f&&
(g.graphic=f.destroy())})};h.prototype.drawTracker=function(){var c=this,b=c.chart,d=b.pointer,e=function(c){var a=d.getPointFromEvent(c);"undefined"!==typeof a&&(d.isDirectTouch=!0,a.onMouseOver(c))},h;c.points.forEach(function(c){h=z(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[];c.graphic&&(c.graphic.element.point=c);h.forEach(function(a){a.div?a.div.point=c:a.element.point=c})});c._hasTracking||(c.trackerGroups.forEach(function(g){if(c[g]){c[g].addClass("highcharts-tracker").on("mouseover",
e).on("mouseout",function(c){d.onTrackerMouseOut(c)});if(n)c[g].on("touchstart",e);!b.styledMode&&c.options.cursor&&c[g].css(a).css({cursor:c.options.cursor})}}),c._hasTracking=!0);G(this,"afterDrawTracker")};h.prototype.remove=function(){var c=this,a=c.chart;a.hasRendered&&a.series.forEach(function(a){a.type===c.type&&(a.isDirty=!0)});r.prototype.remove.apply(c,arguments)};h.defaultOptions=x(r.defaultOptions,{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"});return h}(r);k(E.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:B.drawRectangle,getSymbol:b,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});A.registerSeriesType("column",E);"";"";return E});I(f,"Core/Series/DataLabel.js",
[f["Core/Animation/AnimationUtilities.js"],f["Core/FormatUtilities.js"],f["Core/Utilities.js"]],function(b,f,v){var B=b.getDeferredAnimation,r=f.format,A=v.defined,E=v.extend,y=v.fireEvent,q=v.isArray,l=v.merge,n=v.objectEach,e=v.pick,a=v.splat,d;(function(b){function d(a,c,b,d,h){var g=this,f=this.chart,k=this.isCartesian&&f.inverted,m=this.enabledDataSorting,l=e(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),u=e(a.plotY,-9999),t=c.getBBox(),n=b.rotation,w=b.align,x=f.isInsidePlot(l,Math.round(u),{inverted:k,
paneCoordinates:!0,series:g}),q=function(b){m&&g.xAxis&&!z&&g.setDataLabelStartPos(a,c,h,x,b)},z="justify"===e(b.overflow,m?"none":"justify"),C=this.visible&&!1!==a.visible&&(a.series.forceDL||m&&!z||x||e(b.inside,!!this.options.stacking)&&d&&f.isInsidePlot(l,k?d.x+1:d.y+d.height-1,{inverted:k,paneCoordinates:!0,series:g}));if(C){var r=f.renderer.fontMetrics(f.styledMode?void 0:b.style.fontSize,c).b;d=E({x:k?this.yAxis.len-u:l,y:Math.round(k?this.xAxis.len-l:u),width:0,height:0},d);E(b,{width:t.width,
height:t.height});n?(z=!1,l=f.renderer.rotCorr(r,n),l={x:d.x+(b.x||0)+d.width/2+l.x,y:d.y+(b.y||0)+{top:0,middle:.5,bottom:1}[b.verticalAlign]*d.height},q(l),c[h?"attr":"animate"](l).attr({align:w}),q=(n+720)%360,q=180<q&&360>q,"left"===w?l.y-=q?t.height:0:"center"===w?(l.x-=t.width/2,l.y-=t.height/2):"right"===w&&(l.x-=t.width,l.y-=q?0:t.height),c.placed=!0,c.alignAttr=l):(q(d),c.align(b,void 0,d),l=c.alignAttr);z&&0<=d.height?this.justifyDataLabel(c,b,l,t,d,h):e(b.crop,!0)&&(C=f.isInsidePlot(l.x,
l.y,{paneCoordinates:!0,series:g})&&f.isInsidePlot(l.x+t.width,l.y+t.height,{paneCoordinates:!0,series:g}));if(b.shape&&!n)c[h?"attr":"animate"]({anchorX:k?f.plotWidth-a.plotY:a.plotX,anchorY:k?f.plotHeight-a.plotX:a.plotY})}h&&m&&(c.placed=!1);C||m&&!z||(c.hide(!0),c.placed=!1)}function f(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 k(){var b=this,c=b.chart,d=b.options,
g=b.points,h=b.hasRendered||0,k=c.renderer,m=d.dataLabels,l,x=m.animation;x=m.defer?B(c,x,b):{defer:0,duration:0};m=t(t(c.options.plotOptions&&c.options.plotOptions.series&&c.options.plotOptions.series.dataLabels,c.options.plotOptions&&c.options.plotOptions[b.type]&&c.options.plotOptions[b.type].dataLabels),m);y(this,"drawDataLabels");if(q(m)||m.enabled||b._hasPointLabels){var z=b.plotGroup("dataLabelsGroup","data-labels",h?"inherit":"hidden",m.zIndex||6);z.attr({opacity:+h});!h&&(h=b.dataLabelsGroup)&&
(b.visible&&z.show(!0),h[d.animation?"animate":"attr"]({opacity:1},x));g.forEach(function(g){l=a(t(m,g.dlOptions||g.options&&g.options.dataLabels));l.forEach(function(a,h){var m=a.enabled&&(!g.isNull||g.dataLabelOnNull)&&f(g,a),l=g.connectors?g.connectors[h]:g.connector,p=g.dataLabels?g.dataLabels[h]:g.dataLabel,u=!p,t=e(a.distance,g.labelDistance);if(m){var x=g.getLabelConfig();var w=e(a[g.formatPrefix+"Format"],a.format);x=A(w)?r(w,x,c):(a[g.formatPrefix+"Formatter"]||a.formatter).call(x,a);w=a.style;
var q=a.rotation;c.styledMode||(w.color=e(a.color,w.color,b.color,"#000000"),"contrast"===w.color?(g.contrastColor=k.getContrast(g.color||b.color),w.color=!A(t)&&a.inside||0>t||d.stacking?g.contrastColor:"#000000"):delete g.contrastColor,d.cursor&&(w.cursor=d.cursor));var D={r:a.borderRadius||0,rotation:q,padding:a.padding,zIndex:1};c.styledMode||(D.fill=a.backgroundColor,D.stroke=a.borderColor,D["stroke-width"]=a.borderWidth);n(D,function(c,a){"undefined"===typeof c&&delete D[a]})}!p||m&&A(x)&&!!p.div===
!!a.useHTML&&(p.rotation&&a.rotation||p.rotation===a.rotation)||(u=!0,g.dataLabel=p=g.dataLabel&&g.dataLabel.destroy(),g.dataLabels&&(1===g.dataLabels.length?delete g.dataLabels:delete g.dataLabels[h]),h||delete g.dataLabel,l&&(g.connector=g.connector.destroy(),g.connectors&&(1===g.connectors.length?delete g.connectors:delete g.connectors[h])));m&&A(x)&&(p?D.text=x:(g.dataLabels=g.dataLabels||[],p=g.dataLabels[h]=q?k.text(x,0,-9999,a.useHTML).addClass("highcharts-data-label"):k.label(x,0,-9999,a.shape,
null,null,a.useHTML,null,"data-label"),h||(g.dataLabel=p),p.addClass(" highcharts-data-label-color-"+g.colorIndex+" "+(a.className||"")+(a.useHTML?" highcharts-tracker":""))),p.options=a,p.attr(D),c.styledMode||p.css(w).shadow(a.shadow),p.added||p.add(z),a.textPath&&!a.useHTML&&(p.setTextPath(g.getDataLabelPath&&g.getDataLabelPath(p)||g.graphic,a.textPath),g.dataLabelPath&&!a.textPath.enabled&&(g.dataLabelPath=g.dataLabelPath.destroy())),b.alignDataLabel(g,p,a,null,u))})})}y(this,"afterDrawDataLabels")}
function x(a,c,b,d,e,h){var g=this.chart,f=c.align,k=c.verticalAlign,m=a.box?0:a.padding||0,l=c.x;l=void 0===l?0:l;var p=c.y;p=void 0===p?0:p;var u=(b.x||0)+m;if(0>u){"right"===f&&0<=l?(c.align="left",c.inside=!0):l-=u;var t=!0}u=(b.x||0)+d.width-m;u>g.plotWidth&&("left"===f&&0>=l?(c.align="right",c.inside=!0):l+=g.plotWidth-u,t=!0);u=b.y+m;0>u&&("bottom"===k&&0<=p?(c.verticalAlign="top",c.inside=!0):p-=u,t=!0);u=(b.y||0)+d.height-m;u>g.plotHeight&&("top"===k&&0>=p?(c.verticalAlign="bottom",c.inside=
!0):p+=g.plotHeight-u,t=!0);t&&(c.x=l,c.y=p,a.placed=!h,a.align(c,void 0,e));return t}function t(a,c){var b=[],d;if(q(a)&&!q(c))b=a.map(function(a){return l(a,c)});else if(q(c)&&!q(a))b=c.map(function(c){return l(a,c)});else if(q(a)||q(c))for(d=Math.max(a.length,c.length);d--;)b[d]=l(a[d],c[d]);else b=l(a,c);return b}function m(a,c,b,d,e){var g=this.chart,h=g.inverted,f=this.xAxis,k=f.reversed,m=h?c.height/2:c.width/2;a=(a=a.pointWidth)?a/2:0;c.startXPos=h?e.x:k?-m-a:f.width-m+a;c.startYPos=h?k?this.yAxis.height-
m+a:-m-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);g.hasRendered&&(b&&c.attr({x:c.startXPos,y:c.startYPos}),c.placed=!0)}var h=[];b.compose=function(a){if(-1===h.indexOf(a)){var c=a.prototype;h.push(a);c.alignDataLabel=d;c.drawDataLabels=k;c.justifyDataLabel=x;c.setDataLabelStartPos=m}}})(d||(d={}));"";return d});I(f,"Series/Column/ColumnDataLabel.js",[f["Core/Series/DataLabel.js"],f["Core/Series/SeriesRegistry.js"],
f["Core/Utilities.js"]],function(b,f,v){var B=f.series,r=v.merge,A=v.pick,E;(function(f){function q(b,e,a,d,f){var k=this.chart.inverted,l=b.series,n=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||0;l=(l.yAxis?l.yAxis.len:this.chart.plotSizeY)||0;var x=b.dlBox||b.shapeArgs,t=A(b.below,b.plotY>A(this.translatedThreshold,l)),m=A(a.inside,!!this.options.stacking);x&&(d=r(x),0>d.y&&(d.height+=d.y,d.y=0),x=d.y+d.height-l,0<x&&x<d.height&&(d.height-=x),k&&(d={x:l-d.y-d.height,y:n-d.x-d.width,width:d.height,
height:d.width}),m||(k?(d.x+=t?0:d.width,d.width=0):(d.y+=t?d.height:0,d.height=0)));a.align=A(a.align,!k||m?"center":t?"right":"left");a.verticalAlign=A(a.verticalAlign,k||m?"middle":t?"top":"bottom");B.prototype.alignDataLabel.call(this,b,e,a,d,f);a.inside&&b.contrastColor&&e.css({color:b.contrastColor})}var l=[];f.compose=function(f){b.compose(B);-1===l.indexOf(f)&&(l.push(f),f.prototype.alignDataLabel=q)}})(E||(E={}));return E});I(f,"Series/Bar/BarSeries.js",[f["Series/Column/ColumnSeries.js"],
f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v){var B=this&&this.__extends||function(){var b=function(f,q){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var e in f)f.hasOwnProperty(e)&&(b[e]=f[e])};return b(f,q)};return function(f,q){function l(){this.constructor=f}b(f,q);f.prototype=null===q?Object.create(q):(l.prototype=q.prototype,new l)}}(),r=v.extend,A=v.merge;v=function(f){function r(){var b=null!==f&&f.apply(this,
arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}B(r,f);r.defaultOptions=A(b.defaultOptions,{});return r}(b);r(v.prototype,{inverted:!0});f.registerSeriesType("bar",v);"";return v});I(f,"Series/Scatter/ScatterSeries.js",[f["Series/Column/ColumnSeries.js"],f["Series/Line/LineSeries.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B){var r=this&&this.__extends||function(){var b=function(f,n){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(f,n)};return function(f,n){function e(){this.constructor=f}b(f,n);f.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),A=B.addEvent,E=B.extend,y=B.merge;B=function(b){function l(){var f=null!==b&&b.apply(this,arguments)||this;f.data=void 0;f.options=void 0;f.points=void 0;return f}r(l,b);l.prototype.applyJitter=function(){var b=this,e=this.options.jitter,a=this.points.length;
e&&this.points.forEach(function(d,f){["x","y"].forEach(function(k,l){var n="plot"+k.toUpperCase();if(e[k]&&!d.isNull){var x=b[k+"Axis"];var t=e[k]*x.transA;if(x&&!x.isLog){var m=Math.max(0,d[n]-t);x=Math.min(x.len,d[n]+t);l=1E4*Math.sin(f+l*a);d[n]=m+(x-m)*(l-Math.floor(l));"x"===k&&(d.clientX=d.plotX)}}})})};l.prototype.drawGraph=function(){this.options.lineWidth?b.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};l.defaultOptions=y(f.defaultOptions,{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/>"}});return l}(f);E(B.prototype,{drawTracker:b.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});A(B,"afterTranslate",function(){this.applyJitter()});v.registerSeriesType("scatter",
B);"";return B});I(f,"Series/CenteredUtilities.js",[f["Core/Globals.js"],f["Core/Series/Series.js"],f["Core/Utilities.js"]],function(b,f,v){var B=b.deg2rad,r=v.isNumber,A=v.pick,E=v.relativeLength,y;(function(b){b.getCenter=function(){var b=this.options,n=this.chart,e=2*(b.slicedOffset||0),a=n.plotWidth-2*e,d=n.plotHeight-2*e,k=b.center,q=Math.min(a,d),z=b.size,C=b.innerSize||0;"string"===typeof z&&(z=parseFloat(z));"string"===typeof C&&(C=parseFloat(C));b=[A(k[0],"50%"),A(k[1],"50%"),A(z&&0>z?void 0:
b.size,"100%"),A(C&&0>C?void 0:b.innerSize||0,"0%")];!n.angular||this instanceof f||(b[3]=0);for(k=0;4>k;++k)z=b[k],n=2>k||2===k&&/%$/.test(z),b[k]=E(z,[a,d,q,b[2]][k])+(n?e:0);b[3]>b[2]&&(b[3]=b[2]);return b};b.getStartAndEndRadians=function(b,f){b=r(b)?b:0;f=r(f)&&f>b&&360>f-b?f:b+360;return{start:B*(b+-90),end:B*(f+-90)}}})(y||(y={}));"";return y});I(f,"Series/Pie/PiePoint.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Series/Point.js"],f["Core/Utilities.js"]],function(b,f,v){var B=this&&
this.__extends||function(){var b=function(e,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(e,a)};return function(e,a){function d(){this.constructor=e}b(e,a);e.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),r=b.setAnimation,A=v.addEvent,E=v.defined;b=v.extend;var y=v.isNumber,q=v.pick,l=v.relativeLength;f=function(b){function e(){var a=null!==b&&b.apply(this,arguments)||
this;a.labelDistance=void 0;a.options=void 0;a.series=void 0;return a}B(e,b);e.prototype.getConnectorPath=function(){var a=this.labelPosition,b=this.series.options.dataLabels,e=this.connectorShapes,f=b.connectorShape;e[f]&&(f=e[f]);return f.call(this,{x:a.final.x,y:a.final.y,alignment:a.alignment},a.connectorPosition,b)};e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};e.prototype.haloPath=function(a){var b=this.shapeArgs;return this.sliced||
!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:b.r-1,start:b.start,end:b.end})};e.prototype.init=function(){var a=this;b.prototype.init.apply(this,arguments);this.name=q(this.name,"Slice");var d=function(b){a.slice("select"===b.type)};A(this,"select",d);A(this,"unselect",d);return this};e.prototype.isValid=function(){return y(this.y)&&0<=this.y};e.prototype.setVisible=function(a,b){var d=this,e=this.series,f=e.chart,l=e.options.ignoreHiddenPoint;b=q(b,l);a!==this.visible&&
(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,e.options.data[e.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(b){if(d[b])d[b][a?"show":"hide"](a)}),this.legendItem&&f.legend.colorizeItem(this,a),a||"hover"!==this.state||this.setState(""),l&&(e.isDirty=!0),b&&f.redraw())};e.prototype.slice=function(a,b,e){var d=this.series;r(e,d.chart);q(b,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;d.options.data[d.data.indexOf(this)]=
this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return e}(f);b(f.prototype,{connectorShapes:{fixedOffset:function(b,e,a){var d=e.breakAt;e=e.touchingSliceAt;return[["M",b.x,b.y],a.softConnector?["C",b.x+("left"===b.alignment?-5:5),b.y,2*d.x-e.x,2*d.y-e.y,d.x,d.y]:["L",d.x,d.y],["L",e.x,e.y]]},straight:function(b,e){e=e.touchingSliceAt;return[["M",b.x,b.y],["L",e.x,e.y]]},crookedLine:function(b,e,a){e=e.touchingSliceAt;
var d=this.series,f=d.center[0],n=d.chart.plotWidth,q=d.chart.plotLeft;d=b.alignment;var C=this.shapeArgs.r;a=l(a.crookDistance,1);n="left"===d?f+C+(n+q-f-C)*(1-a):q+(f-C)*a;a=["L",n,b.y];f=!0;if("left"===d?n>b.x||n<e.x:n<b.x||n>e.x)f=!1;b=[["M",b.x,b.y]];f&&b.push(a);b.push(["L",e.x,e.y]);return b}}});return f});I(f,"Series/Pie/PieSeries.js",[f["Series/CenteredUtilities.js"],f["Series/Column/ColumnSeries.js"],f["Core/Globals.js"],f["Core/Legend/LegendSymbol.js"],f["Series/Pie/PiePoint.js"],f["Core/Series/Series.js"],
f["Core/Series/SeriesRegistry.js"],f["Core/Renderer/SVG/Symbols.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E,y,q){var l=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),n=b.getStartAndEndRadians;
v=v.noop;var e=q.clamp,a=q.extend,d=q.fireEvent,k=q.merge,G=q.pick,z=q.relativeLength;q=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.center=void 0;b.data=void 0;b.maxLabelDistance=void 0;b.options=void 0;b.points=void 0;return b}l(b,a);b.prototype.animate=function(a){var b=this,d=b.points,e=b.startAngleRad;a||d.forEach(function(c){var a=c.graphic,d=c.shapeArgs;a&&d&&(a.attr({r:G(c.startR,b.center&&b.center[3]/2),start:e,end:e}),a.animate({r:d.r,start:d.start,end:d.end},
b.options.animation))})};b.prototype.drawEmpty=function(){var a=this.startAngleRad,b=this.endAngleRad,d=this.options;if(0===this.total&&this.center){var e=this.center[0];var c=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(e,c,this.center[1]/2,0,a,b).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:y.arc(e,c,this.center[2]/2,0,{start:a,end:b,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())};b.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(b){b.graphic&&b.hasNewShapeType()&&(b.graphic=b.graphic.destroy());b.graphic||(b.graphic=a[b.shapeType](b.shapeArgs).add(b.series.group),b.delayedRendering=!0)})};b.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};b.prototype.getX=function(a,b,d){var h=this.center,c=this.radii?this.radii[d.index]||
0:h[2]/2;a=Math.asin(e((a-h[1])/(c+d.labelDistance),-1,1));return h[0]+(b?-1:1)*Math.cos(a)*(c+d.labelDistance)+(0<d.labelDistance?(b?-1:1)*this.options.dataLabels.padding:0)};b.prototype.hasData=function(){return!!this.processedXData.length};b.prototype.redrawPoints=function(){var a=this,b=a.chart,d=b.renderer,e=a.options.shadow,c,f,g,l;this.drawEmpty();!e||a.shadowGroup||b.styledMode||(a.shadowGroup=d.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(h){var m={};f=h.graphic;
if(!h.isNull&&f){var p=void 0;l=h.shapeArgs;c=h.getTranslate();b.styledMode||(p=h.shadowGroup,e&&!p&&(p=h.shadowGroup=d.g("shadow").add(a.shadowGroup)),p&&p.attr(c),g=a.pointAttribs(h,h.selected&&"select"));h.delayedRendering?(f.setRadialReference(a.center).attr(l).attr(c),b.styledMode||f.attr(g).attr({"stroke-linejoin":"round"}).shadow(e,p),h.delayedRendering=!1):(f.setRadialReference(a.center),b.styledMode||k(!0,m,g),k(!0,m,l,c),f.animate(m));f.attr({visibility:h.visible?"inherit":"hidden"});f.addClass(h.getClassName(),
!0)}else f&&(h.graphic=f.destroy())})};b.prototype.sortByAngle=function(a,b){a.sort(function(a,d){return"undefined"!==typeof a.angle&&(d.angle-a.angle)*b})};b.prototype.translate=function(a){this.generatePoints();var b=this.options,e=b.slicedOffset,f=e+(b.borderWidth||0),c=n(b.startAngle,b.endAngle),k=this.startAngleRad=c.start;c=(this.endAngleRad=c.end)-k;var g=this.points,l=b.dataLabels.distance;b=b.ignoreHiddenPoint;var p=g.length,t,x=0;a||(this.center=a=this.getCenter());for(t=0;t<p;t++){var q=
g[t];var C=k+x*c;!q.isValid()||b&&!q.visible||(x+=q.percentage/100);var r=k+x*c;var v={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*C)/1E3,end:Math.round(1E3*r)/1E3};q.shapeType="arc";q.shapeArgs=v;q.labelDistance=G(q.options.dataLabels&&q.options.dataLabels.distance,l);q.labelDistance=z(q.labelDistance,v.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,q.labelDistance);r=(r+C)/2;r>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);q.slicedTranslation={translateX:Math.round(Math.cos(r)*
e),translateY:Math.round(Math.sin(r)*e)};v=Math.cos(r)*a[2]/2;var y=Math.sin(r)*a[2]/2;q.tooltipPos=[a[0]+.7*v,a[1]+.7*y];q.half=r<-Math.PI/2||r>Math.PI/2?1:0;q.angle=r;C=Math.min(f,q.labelDistance/5);q.labelPosition={natural:{x:a[0]+v+Math.cos(r)*q.labelDistance,y:a[1]+y+Math.sin(r)*q.labelDistance},"final":{},alignment:0>q.labelDistance?"center":q.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+v+Math.cos(r)*C,y:a[1]+y+Math.sin(r)*C},touchingSliceAt:{x:a[0]+v,y:a[1]+y}}}}d(this,"afterTranslate")};
b.prototype.updateTotals=function(){var a=this.points,b=a.length,d=this.options.ignoreHiddenPoint,e,c=0;for(e=0;e<b;e++){var f=a[e];!f.isValid()||d&&!f.visible||(c+=f.y)}this.total=c;for(e=0;e<b;e++)f=a[e],f.percentage=0<c&&(f.visible||!d)?f.y/c*100:0,f.total=c};b.defaultOptions=k(A.defaultOptions,{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}}});return b}(A);a(q.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:B.drawRectangle,drawTracker:f.prototype.drawTracker,getCenter:b.getCenter,getSymbol:v,isCartesian:!1,
noSharedTooltip:!0,pointAttribs:f.prototype.pointAttribs,pointClass:r,requireSorting:!1,searchPoint:v,trackerGroups:["group","dataLabelsGroup"]});E.registerSeriesType("pie",q);"";return q});I(f,"Series/Pie/PieDataLabel.js",[f["Core/Series/DataLabel.js"],f["Core/Globals.js"],f["Core/Renderer/RendererUtilities.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B,r){var A=f.noop,E=v.distribute,y=B.series,q=r.arrayMax,l=r.clamp,n=r.defined,e=r.merge,a=r.pick,d=r.relativeLength,
k;(function(f){function k(){var b=this,d=b.data,c=b.chart,f=b.options.dataLabels||{},g=f.connectorPadding,k=c.plotWidth,m=c.plotHeight,l=c.plotLeft,t=Math.round(c.chartWidth/3),x=b.center,r=x[2]/2,z=x[1],C=[[],[]],v=[0,0,0,0],G=b.dataLabelPositioners,A,B,J,I,Y,R,Z,Q,U,T,V,O;b.visible&&(f.enabled||b._hasPointLabels)&&(d.forEach(function(c){c.dataLabel&&c.visible&&c.dataLabel.shortened&&(c.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),c.dataLabel.shortened=!1)}),y.prototype.drawDataLabels.apply(b),
d.forEach(function(c){c.dataLabel&&(c.visible?(C[c.half].push(c),c.dataLabel._pos=null,!n(f.style.width)&&!n(c.options.dataLabels&&c.options.dataLabels.style&&c.options.dataLabels.style.width)&&c.dataLabel.getBBox().width>t&&(c.dataLabel.css({width:Math.round(.7*t)+"px"}),c.dataLabel.shortened=!0)):(c.dataLabel=c.dataLabel.destroy(),c.dataLabels&&1===c.dataLabels.length&&delete c.dataLabels))}),C.forEach(function(d,e){var h=d.length,p=[],u;if(h){b.sortByAngle(d,e-.5);if(0<b.maxLabelDistance){var t=
Math.max(0,z-r-b.maxLabelDistance);var q=Math.min(z+r+b.maxLabelDistance,c.plotHeight);d.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,z-r-a.labelDistance),a.bottom=Math.min(z+r+a.labelDistance,c.plotHeight),u=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPosition.natural.y-a.top+u/2,size:u,rank:a.y},p.push(a.distributeBox))});t=q+u-t;E(p,t,t/5)}for(V=0;V<h;V++){A=d[V];R=A.labelPosition;I=A.dataLabel;T=!1===A.visible?"hidden":"inherit";U=t=R.natural.y;p&&
n(A.distributeBox)&&("undefined"===typeof A.distributeBox.pos?T="hidden":(Z=A.distributeBox.size,U=G.radialDistributionY(A)));delete A.positionIndex;if(f.justify)Q=G.justify(A,r,x);else switch(f.alignTo){case "connectors":Q=G.alignToConnectors(d,e,k,l);break;case "plotEdges":Q=G.alignToPlotEdges(I,e,k,l);break;default:Q=G.radialDistributionX(b,A,U,t)}I._attr={visibility:T,align:R.alignment};O=A.options.dataLabels||{};I._pos={x:Q+a(O.x,f.x)+({left:g,right:-g}[R.alignment]||0),y:U+a(O.y,f.y)-10};R.final.x=
Q;R.final.y=U;a(f.crop,!0)&&(Y=I.getBBox().width,t=null,Q-Y<g&&1===e?(t=Math.round(Y-Q+g),v[3]=Math.max(t,v[3])):Q+Y>k-g&&0===e&&(t=Math.round(Q+Y-k+g),v[1]=Math.max(t,v[1])),0>U-Z/2?v[0]=Math.max(Math.round(-U+Z/2),v[0]):U+Z/2>m&&(v[2]=Math.max(Math.round(U+Z/2-m),v[2])),I.sideOverflow=t)}}}),0===q(v)||this.verifyDataLabelOverflow(v))&&(this.placeDataLabels(),this.points.forEach(function(d){O=e(f,d.options.dataLabels);if(B=a(O.connectorWidth,1)){var g;J=d.connector;if((I=d.dataLabel)&&I._pos&&d.visible&&
0<d.labelDistance){T=I._attr.visibility;if(g=!J)d.connector=J=c.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+d.colorIndex+(d.className?" "+d.className:"")).add(b.dataLabelsGroup),c.styledMode||J.attr({"stroke-width":B,stroke:O.connectorColor||d.color||"#666666"});J[g?"attr":"animate"]({d:d.getConnectorPath()});J.attr("visibility",T)}else J&&(d.connector=J.destroy())}}))}function r(){this.points.forEach(function(a){var b=a.dataLabel,c;b&&a.visible&&((c=b._pos)?(b.sideOverflow&&
(b._attr.width=Math.max(b.getBBox().width-b.sideOverflow,0),b.css({width:b._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?"animate":"attr"](c),b.moved=!0):b&&b.attr({y:-9999}));delete a.distributeBox},this)}function x(a){var b=this.center,c=this.options,e=c.center,g=c.minSize||80,h=null!==c.size;if(!h){if(null!==e[0])var f=Math.max(b[2]-Math.max(a[1],a[3]),g);else f=Math.max(b[2]-a[1]-a[3],g),b[0]+=(a[3]-a[1])/
2;null!==e[1]?f=l(f,g,b[2]-Math.max(a[0],a[2])):(f=l(f,g,b[2]-a[0]-a[2]),b[1]+=(a[0]-a[2])/2);f<b[2]?(b[2]=f,b[3]=Math.min(d(c.innerSize||0,f),f),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):h=!0}return h}var t=[],m={radialDistributionY:function(a){return a.top+a.distributeBox.pos},radialDistributionX:function(a,b,c,d){return a.getX(c<b.top+2||c>b.bottom-2?d:c,b.half,b)},justify:function(a,b,c){return c[0]+(a.half?-1:1)*(b+a.labelDistance)},alignToPlotEdges:function(a,b,c,d){a=a.getBBox().width;
return b?a+d:c-a-d},alignToConnectors:function(a,b,c,d){var e=0,h;a.forEach(function(c){h=c.dataLabel.getBBox().width;h>e&&(e=h)});return b?e+d:c-e-d}};f.compose=function(a){b.compose(y);-1===t.indexOf(a)&&(t.push(a),a=a.prototype,a.dataLabelPositioners=m,a.alignDataLabel=A,a.drawDataLabels=k,a.placeDataLabels=r,a.verifyDataLabelOverflow=x)}})(k||(k={}));return k});I(f,"Extensions/OverlappingDataLabels.js",[f["Core/Chart/Chart.js"],f["Core/Utilities.js"]],function(b,f){function v(b,f){var e=!1;if(b){var a=
b.newOpacity;b.oldOpacity!==a&&(b.alignAttr&&b.placed?(b[a?"removeClass":"addClass"]("highcharts-data-label-hidden"),e=!0,b.alignAttr.opacity=a,b[b.isOld?"animate":"attr"](b.alignAttr,null,function(){f.styledMode||b.css({pointerEvents:a?"auto":"none"})}),r(f,"afterHideOverlappingLabel")):b.attr({opacity:a}));b.isOld=!0}return e}var B=f.addEvent,r=f.fireEvent,A=f.isArray,E=f.isNumber,y=f.objectEach,q=f.pick;B(b,"render",function(){var b=this,f=[];(this.labelCollectors||[]).forEach(function(b){f=f.concat(b())});
(this.yAxis||[]).forEach(function(b){b.stacking&&b.options.stackLabels&&!b.options.stackLabels.allowOverlap&&y(b.stacking.stacks,function(a){y(a,function(a){a.label&&"hidden"!==a.label.visibility&&f.push(a.label)})})});(this.series||[]).forEach(function(e){var a=e.options.dataLabels;e.visible&&(!1!==a.enabled||e._hasPointLabels)&&(a=function(a){return a.forEach(function(a){a.visible&&(A(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[]).forEach(function(d){var e=d.options;d.labelrank=q(e.labelrank,
a.labelrank,a.shapeArgs&&a.shapeArgs.height);e.allowOverlap?(d.oldOpacity=d.opacity,d.newOpacity=1,v(d,b)):f.push(d)})})},a(e.nodes||[]),a(e.points))});this.hideOverlappingLabels(f)});b.prototype.hideOverlappingLabels=function(b){var f=this,e=b.length,a=f.renderer,d,k,l,q=!1;var C=function(b){var d,e=b.box?0:b.padding||0,c=d=0,f;if(b&&(!b.alignAttr||b.placed)){var g=b.alignAttr||{x:b.attr("x"),y:b.attr("y")};var k=b.parentGroup;b.width||(d=b.getBBox(),b.width=d.width,b.height=d.height,d=a.fontMetrics(null,
b.element).h);var m=b.width-2*e;(f={left:"0",center:"0.5",right:"1"}[b.alignValue])?c=+f*m:E(b.x)&&Math.round(b.x)!==b.translateX&&(c=b.x-b.translateX);return{x:g.x+(k.translateX||0)+e-(c||0),y:g.y+(k.translateY||0)+e-d,width:b.width-2*e,height:b.height-2*e}}};for(k=0;k<e;k++)if(d=b[k])d.oldOpacity=d.opacity,d.newOpacity=1,d.absoluteBox=C(d);b.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(k=0;k<e;k++){var x=(C=b[k])&&C.absoluteBox;for(d=k+1;d<e;++d){var t=(l=b[d])&&l.absoluteBox;
!x||!t||C===l||0===C.newOpacity||0===l.newOpacity||t.x>=x.x+x.width||t.x+t.width<=x.x||t.y>=x.y+x.height||t.y+t.height<=x.y||((C.labelrank<l.labelrank?C:l).newOpacity=0)}}b.forEach(function(a){v(a,f)&&(q=!0)});q&&r(f,"afterHideAllOverlappingLabels")}});I(f,"Core/Responsive.js",[f["Core/Utilities.js"]],function(b){var f=b.extend,v=b.find,B=b.isArray,r=b.isObject,A=b.merge,E=b.objectEach,y=b.pick,q=b.splat,l=b.uniqueKey,n;(function(b){var a=[];b.compose=function(b){-1===a.indexOf(b)&&(a.push(b),f(b.prototype,
d.prototype));return b};var d=function(){function a(){}a.prototype.currentOptions=function(a){function b(a,e,f,k){var c;E(a,function(a,g){if(!k&&-1<d.collectionsWithUpdate.indexOf(g)&&e[g])for(a=q(a),f[g]=[],c=0;c<Math.max(a.length,e[g].length);c++)e[g][c]&&(void 0===a[c]?f[g][c]=e[g][c]:(f[g][c]={},b(a[c],e[g][c],f[g][c],k+1)));else r(a)?(f[g]=B(a)?[]:{},b(a,e[g]||{},f[g],k+1)):f[g]="undefined"===typeof e[g]?null:e[g]})}var d=this,e={};b(a,this.options,e,0);return e};a.prototype.matchResponsiveRule=
function(a,b){var d=a.condition;(d.callback||function(){return this.chartWidth<=y(d.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=y(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=y(d.minWidth,0)&&this.chartHeight>=y(d.minHeight,0)}).call(this)&&b.push(a._id)};a.prototype.setResponsive=function(a,b){var d=this,e=this.options.responsive,f=this.currentResponsive,k=[];!b&&e&&e.rules&&e.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=l());d.matchResponsiveRule(a,k)},this);b=A.apply(void 0,
k.map(function(a){return v((e||{}).rules||[],function(b){return b._id===a})}).map(function(a){return a&&a.chartOptions}));b.isResponsiveOptions=!0;k=k.toString()||void 0;k!==(f&&f.ruleIds)&&(f&&this.update(f.undoOptions,a,!0),k?(f=this.currentOptions(b),f.isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:b,undoOptions:f},this.update(b,a,!0)):this.currentResponsive=void 0)};return a}()})(n||(n={}));"";"";return n});I(f,"masters/highcharts.src.js",[f["Core/Globals.js"],f["Core/Utilities.js"],
f["Core/DefaultOptions.js"],f["Core/Animation/Fx.js"],f["Core/Animation/AnimationUtilities.js"],f["Core/Renderer/HTML/AST.js"],f["Core/FormatUtilities.js"],f["Core/Renderer/RendererUtilities.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Renderer/SVG/SVGRenderer.js"],f["Core/Renderer/HTML/HTMLElement.js"],f["Core/Renderer/HTML/HTMLRenderer.js"],f["Core/Axis/Axis.js"],f["Core/Axis/DateTimeAxis.js"],f["Core/Axis/LogarithmicAxis.js"],f["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],f["Core/Axis/Tick.js"],
f["Core/Tooltip.js"],f["Core/Series/Point.js"],f["Core/Pointer.js"],f["Core/MSPointer.js"],f["Core/Legend/Legend.js"],f["Core/Chart/Chart.js"],f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Series/Column/ColumnSeries.js"],f["Series/Column/ColumnDataLabel.js"],f["Series/Pie/PieSeries.js"],f["Series/Pie/PieDataLabel.js"],f["Core/Series/DataLabel.js"],f["Core/Responsive.js"],f["Core/Color/Color.js"],f["Core/Time.js"]],function(b,f,v,B,r,A,E,y,q,l,n,e,a,d,k,G,z,C,x,t,m,h,u,c,w,g,F,p,
D,H,L,P,K){b.animate=r.animate;b.animObject=r.animObject;b.getDeferredAnimation=r.getDeferredAnimation;b.setAnimation=r.setAnimation;b.stop=r.stop;b.timers=B.timers;b.AST=A;b.Axis=a;b.Chart=u;b.chart=u.chart;b.Fx=B;b.Legend=h;b.PlotLineOrBand=G;b.Point=x;b.Pointer=m.isRequired()?m:t;b.Series=c;b.SVGElement=q;b.SVGRenderer=l;b.Tick=z;b.Time=K;b.Tooltip=C;b.Color=P;b.color=P.parse;e.compose(l);n.compose(q);b.defaultOptions=v.defaultOptions;b.getOptions=v.getOptions;b.time=v.defaultTime;b.setOptions=
v.setOptions;b.dateFormat=E.dateFormat;b.format=E.format;b.numberFormat=E.numberFormat;b.addEvent=f.addEvent;b.arrayMax=f.arrayMax;b.arrayMin=f.arrayMin;b.attr=f.attr;b.clearTimeout=f.clearTimeout;b.correctFloat=f.correctFloat;b.createElement=f.createElement;b.css=f.css;b.defined=f.defined;b.destroyObjectProperties=f.destroyObjectProperties;b.discardElement=f.discardElement;b.distribute=y.distribute;b.erase=f.erase;b.error=f.error;b.extend=f.extend;b.extendClass=f.extendClass;b.find=f.find;b.fireEvent=
f.fireEvent;b.getMagnitude=f.getMagnitude;b.getStyle=f.getStyle;b.inArray=f.inArray;b.isArray=f.isArray;b.isClass=f.isClass;b.isDOMElement=f.isDOMElement;b.isFunction=f.isFunction;b.isNumber=f.isNumber;b.isObject=f.isObject;b.isString=f.isString;b.keys=f.keys;b.merge=f.merge;b.normalizeTickInterval=f.normalizeTickInterval;b.objectEach=f.objectEach;b.offset=f.offset;b.pad=f.pad;b.pick=f.pick;b.pInt=f.pInt;b.relativeLength=f.relativeLength;b.removeEvent=f.removeEvent;b.seriesType=w.seriesType;b.splat=
f.splat;b.stableSort=f.stableSort;b.syncTimeout=f.syncTimeout;b.timeUnits=f.timeUnits;b.uniqueKey=f.uniqueKey;b.useSerialIds=f.useSerialIds;b.wrap=f.wrap;F.compose(g);H.compose(c);d.compose(a);k.compose(a);D.compose(p);G.compose(a);L.compose(u);return b});I(f,"Core/Axis/Color/ColorAxisComposition.js",[f["Core/Color/Color.js"],f["Core/Utilities.js"]],function(b,f){var v=b.parse,B=f.addEvent,r=f.extend,A=f.merge,E=f.pick,y=f.splat,q;(function(b){function f(){var c=this,a=this.options;this.colorAxis=
[];a.colorAxis&&(a.colorAxis=y(a.colorAxis),a.colorAxis.forEach(function(a,b){a.index=b;new u(c,a)}))}function e(c){var a=this,b=function(b){b=c.allItems.indexOf(b);-1!==b&&(a.destroyItem(c.allItems[b]),c.allItems.splice(b,1))},d=[],e,f;(this.chart.colorAxis||[]).forEach(function(c){(e=c.options)&&e.showInLegend&&(e.dataClasses&&e.visible?d=d.concat(c.getDataClassLegendSymbols()):e.visible&&d.push(c),c.series.forEach(function(c){if(!c.options.showInLegend||e.dataClasses)"point"===c.options.legendType?
c.points.forEach(function(c){b(c)}):b(c)}))});for(f=d.length;f--;)c.allItems.unshift(d[f])}function a(c){c.visible&&c.item.legendColor&&c.item.legendSymbol.attr({fill:c.item.legendColor})}function d(){var c=this.chart.colorAxis;c&&c.forEach(function(c,a,b){c.update({},b)})}function k(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function l(){var c=this.axisTypes;c?-1===c.indexOf("colorAxis")&&c.push("colorAxis"):this.axisTypes=["colorAxis"]}function q(c){var a=
this,b=c?"show":"hide";a.visible=a.options.visible=!!c;["graphic","dataLabel"].forEach(function(c){if(a[c])a[c][b]()});this.series.buildKDTree()}function C(){var c=this,a=this.options.nullColor,b=this.colorAxis,d=this.colorKey;(this.data.length?this.data:this.points).forEach(function(e){var g=e.getNestedProperty(d);(g=e.options.color||(e.isNull||null===e.value?a:b&&"undefined"!==typeof g?b.toColor(g,e):e.color||c.color))&&e.color!==g&&(e.color=g,"point"===c.options.legendType&&e.legendItem&&c.chart.legend.colorizeItem(e,
e.visible))})}function x(c){var a=c.prototype.createAxis;c.prototype.createAxis=function(c,b){if("colorAxis"!==c)return a.apply(this,arguments);var d=new u(this,A(b.axis,{index:this[c].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(c){c.series=[]});this.series.forEach(function(c){c.bindAxes();c.isDirtyData=!0});E(b.redraw,!0)&&this.redraw(b.animation);return d}}function t(){this.elem.attr("fill",v(this.start).tweenTo(v(this.end),this.pos),void 0,!0)}function m(){this.elem.attr("stroke",
v(this.start).tweenTo(v(this.end),this.pos),void 0,!0)}var h=[],u;b.compose=function(c,b,g,n,p){u||(u=c);-1===h.indexOf(b)&&(h.push(b),c=b.prototype,c.collectionsWithUpdate.push("colorAxis"),c.collectionsWithInit.colorAxis=[c.addColorAxis],B(b,"afterGetAxes",f),x(b));-1===h.indexOf(g)&&(h.push(g),b=g.prototype,b.fillSetter=t,b.strokeSetter=m);-1===h.indexOf(n)&&(h.push(n),B(n,"afterGetAllItems",e),B(n,"afterColorizeItem",a),B(n,"afterUpdate",d));-1===h.indexOf(p)&&(h.push(p),r(p.prototype,{optionalAxis:"colorAxis",
translateColors:C}),r(p.prototype.pointClass.prototype,{setVisible:q}),B(p,"afterTranslate",k),B(p,"bindAxes",l))};b.pointSetVisible=q})(q||(q={}));return q});I(f,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}});
I(f,"Core/Axis/Color/ColorAxis.js",[f["Core/Axis/Axis.js"],f["Core/Color/Color.js"],f["Core/Axis/Color/ColorAxisComposition.js"],f["Core/Axis/Color/ColorAxisDefaults.js"],f["Core/Globals.js"],f["Core/Legend/LegendSymbol.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E,y){var q=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&
(a[d]=b[d])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),l=f.parse,n=r.noop,e=E.series,a=y.extend,d=y.isNumber,k=y.merge,G=y.pick;f=function(b){function f(a,d){var e=b.call(this,a,d)||this;e.beforePadding=!1;e.chart=void 0;e.coll="colorAxis";e.dataClasses=void 0;e.legendItem=void 0;e.legendItems=void 0;e.name="";e.options=void 0;e.stops=void 0;e.visible=!0;e.init(a,d);return e}q(f,b);f.compose=
function(a,b,d,e){v.compose(f,a,b,d,e)};f.prototype.init=function(a,d){var e=a.options.legend||{},h=d.layout?"vertical"!==d.layout:"vertical"!==e.layout,l=d.visible;e=k(f.defaultColorAxisOptions,d,{showEmpty:!1,title:null,visible:e.enabled&&!1!==l});this.coll="colorAxis";this.side=d.side||h?2:1;this.reversed=d.reversed||!h;this.opposite=!h;b.prototype.init.call(this,a,e);this.userOptions.visible=l;d.dataClasses&&this.initDataClasses(d);this.initStops();this.horiz=h;this.zoomEnabled=!1};f.prototype.initDataClasses=
function(a){var b=this.chart,d=this.options,e=a.dataClasses.length,f,c=0,n=b.options.chart.colorCount;this.dataClasses=f=[];this.legendItems=[];(a.dataClasses||[]).forEach(function(a,h){a=k(a);f.push(a);if(b.styledMode||!a.color)"category"===d.dataClassColor?(b.styledMode||(h=b.options.colors,n=h.length,a.color=h[c]),a.colorIndex=c,c++,c===n&&(c=0)):a.color=l(d.minColor).tweenTo(l(d.maxColor),2>e?.5:h/(e-1))})};f.prototype.hasData=function(){return!!(this.tickPositions||[]).length};f.prototype.setTickPositions=
function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};f.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=l(a[1])})};f.prototype.setOptions=function(a){b.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker};f.prototype.setAxisSize=function(){var a=this.legendSymbol,b=this.chart,d=b.options.legend||{},e,k;a?(this.left=d=a.attr("x"),this.top=e=a.attr("y"),
this.width=k=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-d-k,this.bottom=b.chartHeight-e-a,this.len=this.horiz?k:a,this.pos=this.horiz?d:e):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||f.defaultLegendLength};f.prototype.normalizedValue=function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};f.prototype.toColor=function(a,b){var d=this.dataClasses,e=this.stops,f;if(d)for(f=d.length;f--;){var c=d[f];var k=c.from;e=
c.to;if(("undefined"===typeof k||a>=k)&&("undefined"===typeof e||a<=e)){var g=c.color;b&&(b.dataClass=f,b.colorIndex=c.colorIndex);break}}else{a=this.normalizedValue(a);for(f=e.length;f--&&!(a>e[f][0]););k=e[f]||e[f+1];e=e[f+1]||k;a=1-(e[0]-a)/(e[0]-k[0]||1);g=k.color.tweenTo(e.color,a)}return g};f.prototype.getOffset=function(){var a=this.legendGroup,d=this.chart.axisOffset[this.side];if(a){this.axisParent=a;b.prototype.getOffset.call(this);var e=this.chart.legend;e.allItems.forEach(function(a){a instanceof
f&&a.drawLegendSymbol(e,a)});e.render();this.chart.getMargins(!0);this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width);this.chart.axisOffset[this.side]=d}};f.prototype.setLegendColor=function(){var a=this.reversed,b=a?1:0;a=a?0:1;b=this.horiz?[b,0,a,0]:[0,a,0,b];this.legendColor={linearGradient:{x1:b[0],y1:b[1],x2:b[2],y2:b[3]},stops:this.stops}};f.prototype.drawLegendSymbol=function(a,b){var d=a.padding,e=a.options,k=this.horiz,c=G(e.symbolWidth,k?f.defaultLegendLength:12),l=G(e.symbolHeight,
k?12:f.defaultLegendLength),g=G(e.labelPadding,k?16:30);e=G(e.itemDistance,10);this.setLegendColor();b.legendSymbol||(b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,c,l).attr({zIndex:1}).add(b.legendGroup));this.legendItemWidth=c+d+(k?e:this.options.labels.x+this.maxLabelLength);this.legendItemHeight=l+d+(k?g:0)};f.prototype.setState=function(a){this.series.forEach(function(b){b.setState(a)})};f.prototype.setVisible=function(){};f.prototype.getSeriesExtremes=function(){var a=this.series,
b=a.length,d;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;){var f=a[b];var k=f.colorKey=G(f.options.colorKey,f.colorKey,f.pointValKey,f.zoneAxis,"y");var c=f.pointArrayMap;var l=f[k+"Min"]&&f[k+"Max"];if(f[k+"Data"])var g=f[k+"Data"];else if(c){g=[];c=c.indexOf(k);var n=f.yData;if(0<=c&&n)for(d=0;d<n.length;d++)g.push(G(n[d][c],n[d]))}else g=f.yData;l?(f.minColorValue=f[k+"Min"],f.maxColorValue=f[k+"Max"]):(g=e.prototype.getExtremes.call(f,g),f.minColorValue=g.dataMin,f.maxColorValue=g.dataMax);
"undefined"!==typeof f.minColorValue&&(this.dataMin=Math.min(this.dataMin,f.minColorValue),this.dataMax=Math.max(this.dataMax,f.maxColorValue));l||e.prototype.applyExtremes.call(f)}};f.prototype.drawCrosshair=function(a,d){var e=d&&d.plotX,f=d&&d.plotY,k=this.pos,c=this.len;if(d){var l=this.toPixels(d.getNestedProperty(d.series.colorKey));l<k?l=k-2:l>k+c&&(l=k+c+2);d.plotX=l;d.plotY=this.len-l;b.prototype.drawCrosshair.call(this,a,d);d.plotX=e;d.plotY=f;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&
(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};f.prototype.getPlotLinePath=function(a){var e=this.left,f=a.translatedValue,h=this.top;return d(f)?this.horiz?[["M",f-4,h-6],["L",f+4,h-6],["L",f,h],["Z"]]:[["M",e,f],["L",e-6,f+6],["L",e-6,f-6],["Z"]]:b.prototype.getPlotLinePath.call(this,a)};f.prototype.update=function(a,d){var e=this.chart.legend;
this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&e.allItems||this.dataClasses)&&this.destroyItems();b.prototype.update.call(this,a,d);this.legendItem&&(this.setLegendColor(),e.colorizeItem(this,!0))};f.prototype.destroyItems=function(){var a=this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(b){a.legend.destroyItem(b)});a.isDirtyLegend=!0};f.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();b.prototype.destroy.apply(this,
[].slice.call(arguments))};f.prototype.remove=function(a){this.destroyItems();b.prototype.remove.call(this,a)};f.prototype.getDataClassLegendSymbols=function(){var b=this,d=b.chart,e=b.legendItems,f=d.options.legend,k=f.valueDecimals,c=f.valueSuffix||"",l;e.length||b.dataClasses.forEach(function(f,h){var g=f.from,m=f.to,t=d.numberFormatter,u=!0;l="";"undefined"===typeof g?l="< ":"undefined"===typeof m&&(l="> ");"undefined"!==typeof g&&(l+=t(g,k)+c);"undefined"!==typeof g&&"undefined"!==typeof m&&
(l+=" - ");"undefined"!==typeof m&&(l+=t(m,k)+c);e.push(a({chart:d,name:l,options:{},drawLegendSymbol:A.drawRectangle,visible:!0,setState:n,isDataClass:!0,setVisible:function(){u=b.visible=!u;b.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===h&&a.setVisible(u)})});d.legend.colorizeItem(this,u)}},f))});return e};f.defaultColorAxisOptions=B;f.defaultLegendLength=200;f.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return f}(b);Array.prototype.push.apply(b.keepProps,
f.keepProps);"";return f});I(f,"Maps/MapNavigationOptionsDefault.js",[f["Core/DefaultOptions.js"],f["Core/Utilities.js"]],function(b,f){f=f.extend;var v={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};f(b.defaultOptions.lang,
{zoomIn:"Zoom in",zoomOut:"Zoom out"});return b.defaultOptions.mapNavigation=v});I(f,"Maps/MapNavigation.js",[f["Core/Chart/Chart.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(b,f,v){function B(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function r(a){this.navButtons=[];this.init(a)}var A=f.doc,E=v.addEvent,y=v.extend,q=v.isNumber,l=v.merge,n=v.objectEach,e=v.pick;r.prototype.init=function(a){this.chart=a};r.prototype.update=function(a){var b=
this,f=this.chart,q=f.options.mapNavigation,r,C,x,t,m=function(a){this.handler.call(f,a);B(a)},h=b.navButtons;a&&(q=f.options.mapNavigation=l(f.options.mapNavigation,a));for(;h.length;)h.pop().destroy();e(q.enableButtons,q.enabled)&&!f.renderer.forExport&&(b.navButtonsGroup||(b.navButtonsGroup=f.renderer.g().attr({zIndex:4}).add()),n(q.buttons,function(a,c){a=l(q.buttonOptions,a);!f.styledMode&&a.theme&&(r=a.theme,r.style=l(a.theme.style,a.style),x=(C=r.states)&&C.hover,t=C&&C.select,delete r.states);
var d=f.renderer.button(a.text||"",0,0,m,r,x,t,void 0,"zoomIn"===c?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[c]).attr({width:a.width,height:a.height,title:f.options.lang[c],padding:a.padding,zIndex:5}).add(b.navButtonsGroup);d.handler=a.onclick;E(d.element,"dblclick",B);h.push(d);y(a,{width:d.width,height:2*d.height});if(f.hasLoaded)d.align(a,!1,a.alignTo);else var e=E(f,"load",function(){d.element&&d.align(a,!1,a.alignTo);e()})}),
a=function(){var a=f.exportingGroup&&f.exportingGroup.getBBox();if(a){var c=b.navButtonsGroup.getBBox();if(!(c.x>=a.x+a.width||c.x+c.width<=a.x||c.y>=a.y+a.height||c.y+c.height<=a.y)){var d=-c.y-c.height+a.y-5;a=a.y+a.height-c.y+5;b.navButtonsGroup.attr({translateY:"bottom"===(q.buttonOptions&&q.buttonOptions.verticalAlign)?d:a})}}},f.hasLoaded||E(f,"render",a));this.updateEvents(q)};r.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?
this.unbindDblClick=this.unbindDblClick||E(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||E(b.container,void 0!==A.onwheel?"wheel":void 0!==A.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){b.pointer.inClass(a.target,"highcharts-no-mousewheel")||(b.pointer.onContainerMouseWheel(a),B(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=
this.unbindMouseWheel())};y(b.prototype,{fitToBox:function(a,b){[["x","width"],["y","height"]].forEach(function(d){var e=d[0];d=d[1];a[e]+a[d]>b[e]+b[d]&&(a[d]>b[d]?(a[d]=b[d],a[e]=b[e]):a[e]=b[e]+b[d]-a[d]);a[d]>b[d]&&(a[d]=b[d]);a[e]<b[e]&&(a[e]=b[e])});return a},mapZoom:function(a,b,e,f,l){this.mapView&&(q(a)&&(a=Math.log(a)/Math.log(.5)),this.mapView.zoomBy(a,q(b)&&q(e)?this.mapView.projection.inverse([b,e]):void 0,q(f)&&q(l)?[f,l]:void 0))}});E(b,"beforeRender",function(){this.mapNavigation=
new r(this);this.mapNavigation.update()});f.MapNavigation=r});I(f,"Maps/MapPointer.js",[f["Core/Pointer.js"],f["Core/Utilities.js"]],function(b,f){var v=f.defined,B=f.extend,r=f.pick;f=f.wrap;var A=b.prototype.normalize,E=0,y;B(b.prototype,{normalize:function(b,f){var l=this.chart;b=A.call(this,b,f);l&&l.mapView&&(f=l.mapView.pixelsToLonLat({x:b.chartX-l.plotLeft,y:b.chartY-l.plotTop}))&&B(b,f);return b},onContainerDblClick:function(b){var f=this.chart;b=this.normalize(b);f.options.mapNavigation.enableDoubleClickZoomTo?
f.pointer.inClass(b.target,"highcharts-tracker")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(b.chartX-f.plotLeft,b.chartY-f.plotTop)&&f.mapZoom(.5,void 0,void 0,b.chartX,b.chartY)},onContainerMouseWheel:function(b){var f=this.chart;b=this.normalize(b);var n=v(b.wheelDelta)&&-b.wheelDelta/120||b.deltaY||b.detail;1<=Math.abs(n)&&(E+=Math.abs(n),y&&clearTimeout(y),y=setTimeout(function(){E=0},50));10>E&&f.isInsidePlot(b.chartX-f.plotLeft,b.chartY-f.plotTop)&&f.mapView&&f.mapView.zoomBy((f.options.mapNavigation.mouseWheelSensitivity-
1)*-n,void 0,[b.chartX,b.chartY],1>Math.abs(n)?!1:void 0)}});f(b.prototype,"zoomOption",function(b){var f=this.chart.options.mapNavigation;r(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType="xy");b.apply(this,[].slice.call(arguments,1))});f(b.prototype,"pinchTranslate",function(b,f,n,e,a,d,k){b.call(this,f,n,e,a,d,k);"map"===this.chart.options.chart.type&&this.hasZoom&&(b=e.scaleX>e.scaleY,this.pinchTranslateDirection(!b,f,n,e,a,d,k,b?e.scaleX:e.scaleY))})});I(f,"Series/ColorMapMixin.js",
[f["Core/Globals.js"],f["Core/Series/Point.js"],f["Core/Utilities.js"]],function(b,f,v){var B=b.noop;b=b.seriesTypes;var r=v.defined;v=v.addEvent;v(f,"afterSetState",function(b){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:b&&"hover"===b.state?1:0})});return{PointMixin:{dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}},SeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group",
"markerGroup","dataLabelsGroup"],getSymbol:B,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:b.column.prototype.pointAttribs,colorAttribs:function(b){var f={};!r(b.color)||b.state&&"normal"!==b.state||(f[this.colorProp||"fill"]=b.color);return f}}}});I(f,"Maps/MapSymbols.js",[f["Core/Renderer/SVG/SVGRenderer.js"]],function(b){function f(b,f,r,A,E,y,q,l){return[["M",b+E,f],["L",b+r-y,f],["C",b+r-y/2,f,b+r,f+y/2,b+r,f+y],["L",b+r,f+A-q],["C",b+r,f+A-q/2,b+r-q/2,f+A,b+r-q,f+A],["L",b+
l,f+A],["C",b+l/2,f+A,b,f+A-l/2,b,f+A-l],["L",b,f+E],["C",b,f+E/2,b+E/2,f,b+E,f],["Z"]]}b=b.prototype.symbols;b.bottombutton=function(b,B,r,A,E){E=E&&E.r||0;return f(b-1,B-1,r,A,0,0,E,E)};b.topbutton=function(b,B,r,A,E){E=E&&E.r||0;return f(b-1,B-1,r,A,E,E,0,0)};return b});I(f,"Core/Chart/MapChart.js",[f["Core/Chart/Chart.js"],f["Core/DefaultOptions.js"],f["Core/Renderer/SVG/SVGRenderer.js"],f["Core/Utilities.js"]],function(b,f,v,B){var r=this&&this.__extends||function(){var b=function(f,n){b=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(f,n)};return function(f,n){function e(){this.constructor=f}b(f,n);f.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),A=f.getOptions,E=B.merge,y=B.pick;b=function(b){function f(){return null!==b&&b.apply(this,arguments)||this}r(f,b);f.prototype.init=function(f,e){var a=A().credits;f=E({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:y(a.mapText,
' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:y(a.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},f);b.prototype.init.call(this,f,e)};return f}(b);(function(b){b.maps={};b.mapChart=function(f,n,e){return new b(f,n,e)};b.splitPath=function(b){"string"===typeof b&&(b=b.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),b=b.split(/[ ,;]+/).map(function(b){return/[A-za-z]/.test(b)?b:parseFloat(b)}));return v.prototype.pathToSegments(b)}})(b||
(b={}));return b});I(f,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(b){var f=-Number.MAX_VALUE,v=Number.MAX_VALUE,B=-Number.MAX_VALUE,r=Number.MAX_VALUE,A;b.forEach(function(b){var y=b[b.length-2];b=b[b.length-1];"number"===typeof y&&"number"===typeof b&&(v=Math.min(v,y),f=Math.max(f,y),r=Math.min(r,b),B=Math.max(B,b),A=!0)});if(A)return{x1:v,y1:r,x2:f,y2:B}},pointInPolygon:function(b,f){var v,B=!1,r=b.x,A=b.y;b=0;for(v=f.length-1;b<f.length;v=b++){var E=f[b][1]>A;var y=f[v][1]>
A;E!==y&&r<(f[v][0]-f[b][0])*(A-f[b][1])/(f[v][1]-f[b][1])+f[b][0]&&(B=!B)}return B}}});I(f,"Series/Map/MapPoint.js",[f["Series/ColorMapMixin.js"],f["Maps/MapUtilities.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B){var r=this&&this.__extends||function(){var b=function(f,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(f,e)};return function(f,e){function a(){this.constructor=
f}b(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),A=f.boundsFromPath,E=B.extend,y=B.isNumber,q=B.pick;f=function(b){function f(){var e=null!==b&&b.apply(this,arguments)||this;e.options=void 0;e.path=void 0;e.series=void 0;return e}r(f,b);f.getProjectedPath=function(b,a){b.projectedPath||(a&&b.geometry?(a.hasCoordinates=!0,b.projectedPath=a.path(b.geometry)):b.projectedPath=b.path);return b.projectedPath||[]};f.prototype.applyOptions=function(e,a){var d=this.series;
e=b.prototype.applyOptions.call(this,e,a);a=d.joinBy;d.mapData&&d.mapMap&&(a=b.prototype.getNestedProperty.call(e,a[1]),(d="undefined"!==typeof a&&d.mapMap[a])?E(e,d):e.value=e.value||null);return e};f.prototype.getProjectedBounds=function(b){b=f.getProjectedPath(this,b);b=A(b);var a=this.properties;if(b){var d=a&&a["hc-middle-x"];a=a&&a["hc-middle-y"];b.midX=b.x1+(b.x2-b.x1)*q(this.middleX,y(d)?d:.5);d=q(this.middleY,y(a)?a:.5);this.geometry||(d=1-d);b.midY=b.y2-(b.y2-b.y1)*d;return b}};f.prototype.onMouseOver=
function(e){B.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)b.prototype.onMouseOver.call(this,e);else this.series.onMouseOut(e)};f.prototype.zoomTo=function(){var b=this.series.chart;b.mapView&&this.bounds&&(b.mapView.fitToBounds(this.bounds,void 0,!1),this.series.isDirty=!0,b.redraw())};return f}(v.seriesTypes.scatter.prototype.pointClass);E(f.prototype,{dataLabelOnNull:b.PointMixin.dataLabelOnNull,isValid:b.PointMixin.isValid,moveToTopOnHover:b.PointMixin.moveToTopOnHover});
return f});I(f,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0}});I(f,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}});I(f,"Extensions/GeoJSON.js",[f["Core/Chart/Chart.js"],f["Core/FormatUtilities.js"],f["Core/Globals.js"],f["Maps/MapUtilities.js"],f["Core/Utilities.js"]],
function(b,f,v,B,r){function A(a,b){b||(b=Object.keys(a.objects)[0]);b=a.objects[b];if(b["hc-decoded-geojson"])return b["hc-decoded-geojson"];var d=a.arcs;if(a.transform){var e=a.transform,f=e.scale,l=e.translate;d=a.arcs.map(function(a){var b=0,d=0;return a.map(function(a){a=a.slice();a[0]=(b+=a[0])*f[0]+l[0];a[1]=(d+=a[1])*f[1]+l[1];return a})})}var n=function(a){return"number"===typeof a[0]?a.reduce(function(a,b,e){var c=0>b?d[~b]:d[b];0>b?(c=c.slice(0,0===e?c.length:c.length-1),c.reverse()):e&&
(c=c.slice(1));return a.concat(c)},[]):a.map(n)};e=b.geometries.map(function(a){return{type:"Feature",properties:a.properties,geometry:{type:a.type,coordinates:a.coordinates||n(a.arcs)}}});a={type:"FeatureCollection",copyright:a.copyright,copyrightShort:a.copyrightShort,copyrightUrl:a.copyrightUrl,features:e,"hc-recommended-mapview":b["hc-recommended-mapview"],bbox:a.bbox};return b["hc-decoded-geojson"]=a}function E(a,b,e){void 0===b&&(b="map");var d=[];a="Topology"===a.type?A(a):a;a.features.forEach(function(a){var e=
a.geometry||{},f=e.type;e=e.coordinates;a=a.properties;var k;"map"!==b&&"mapbubble"!==b||"Polygon"!==f&&"MultiPolygon"!==f?"mapline"!==b||"LineString"!==f&&"MultiLineString"!==f?"mappoint"===b&&"Point"===f&&e.length&&(k={geometry:{coordinates:e,type:f}}):e.length&&(k={geometry:{coordinates:e,type:f}}):e.length&&(k={geometry:{coordinates:e,type:f}});k&&(f=a&&(a.name||a.NAME),d.push(n(k,{name:"string"===typeof f?f:void 0,properties:a})))});e&&a.copyrightShort&&(e.chart.mapCredits=y(e.chart.options.credits.mapText,
{geojson:a}),e.chart.mapCreditsFull=y(e.chart.options.credits.mapTextFull,{geojson:a}));return d}var y=f.format,q=v.win,l=r.error,n=r.extend,e=r.merge;f=r.wrap;"";b.prototype.transformFromLatLon=function(a,b){var d=this.options.chart.proj4||q.proj4;if(d){var e=b.jsonmarginX;e=void 0===e?0:e;var f=b.jsonmarginY;f=void 0===f?0:f;var n=b.jsonres;n=void 0===n?1:n;var r=b.scale;r=void 0===r?1:r;var t=b.xoffset;t=void 0===t?0:t;var m=b.xpan;m=void 0===m?0:m;var h=b.yoffset;h=void 0===h?0:h;var u=b.ypan;
u=void 0===u?0:u;a=d(b.crs,[a.lon,a.lat]);d=b.cosAngle||b.rotation&&Math.cos(b.rotation);var c=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=b.rotation?[a[0]*d+a[1]*c,-a[0]*c+a[1]*d]:a;return{x:((b[0]-t)*r+m)*n+e,y:-(((h-b[1])*r+u)*n-f)}}l(21,!1,this)};b.prototype.transformToLatLon=function(a,b){if(!this.options.chart.proj4&&!q.proj4)l(21,!1,this);else if(null!==a.y){var d=b.jsonmarginX,e=b.jsonmarginY,f=b.jsonres;f=void 0===f?1:f;var n=b.scale;n=void 0===n?1:n;var r=b.xoffset,t=b.xpan,m=b.yoffset,
h=b.ypan;a={x:((a.x-(void 0===d?0:d))/f-(void 0===t?0:t))/n+(void 0===r?0:r),y:((a.y-(void 0===e?0:e))/f+(void 0===h?0:h))/n+(void 0===m?0:m)};d=b.cosAngle||b.rotation&&Math.cos(b.rotation);e=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=q.proj4(b.crs,"WGS84",b.rotation?{x:a.x*d+a.y*-e,y:a.x*e+a.y*d}:a);return{lat:b.y,lon:b.x}}};b.prototype.fromPointToLatLon=function(a){return this.mapView&&this.mapView.projectedUnitsToLonLat(a)};b.prototype.fromLatLonToPoint=function(a){return this.mapView&&this.mapView.lonLatToProjectedUnits(a)};
f(b.prototype,"addCredits",function(a,b){b=e(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})});v.geojson=E;return{geojson:E,topo2geo:A}});I(f,"Core/Geometry/PolygonClip.js",[],function(){var b=function(b,f,v){return(f[0]-b[0])*(v[1]-b[1])>(f[1]-b[1])*(v[0]-b[0])},f=function(b,f,v,E){var r=[b[0]-f[0],b[1]-f[1]],q=[v[0]-E[0],v[1]-E[1]];b=b[0]*f[1]-b[1]*f[0];v=v[0]*E[1]-v[1]*E[0];E=1/(r[0]*q[1]-
r[1]*q[0]);r=[(b*q[0]-v*r[0])*E,(b*q[1]-v*r[1])*E];r.isIntersection=!0;return r},v;(function(v){v.clipLineString=function(b,f){var r=[];b=v.clipPolygon(b,f,!1);for(f=1;f<b.length;f++)b[f].isIntersection&&b[f-1].isIntersection&&(r.push(b.splice(0,f)),f=0),f===b.length-1&&r.push(b);return r};v.clipPolygon=function(r,v,B){void 0===B&&(B=!0);for(var y=v[v.length-1],q,l,n=r,e=0;e<v.length;e++){var a=n;r=v[e];n=[];q=B?a[a.length-1]:a[0];for(var d=0;d<a.length;d++)l=a[d],b(y,r,l)?(b(y,r,q)||n.push(f(y,r,
q,l)),n.push(l)):b(y,r,q)&&n.push(f(y,r,q,l)),q=l;y=r}return n}})(v||(v={}));return v});I(f,"Maps/Projections/LambertConformalConic.js",[],function(){var b=Math.sign||function(b){return 0===b?0:0<b?1:-1},f=Math.PI/180,v=Math.PI/2;return function(){function B(r){var A,B=(r.parallels||[]).map(function(b){return b*f}),y=B[0]||0;B=null!==(A=B[1])&&void 0!==A?A:y;A=Math.cos(y);"object"===typeof r.projectedBounds&&(this.projectedBounds=r.projectedBounds);r=y===B?Math.sin(y):Math.log(A/Math.cos(B))/Math.log(Math.tan((v+
B)/2)/Math.tan((v+y)/2));1e-10>Math.abs(r)&&(r=1e-10*(b(r)||1));this.n=r;this.c=A*Math.pow(Math.tan((v+y)/2),r)/r}B.prototype.forward=function(b){var r=b[0]*f,B=this.c,y=this.n,q=this.projectedBounds;b=b[1]*f;0<B?b<-v+.000001&&(b=-v+.000001):b>v-.000001&&(b=v-.000001);var l=B/Math.pow(Math.tan((v+b)/2),y);b=l*Math.sin(y*r)*63.78137;r=63.78137*(B-l*Math.cos(y*r));B=[b,r];q&&(b<q.x1||b>q.x2||r<q.y1||r>q.y2)&&(B.outside=!0);return B};B.prototype.inverse=function(r){var A=r[0]/63.78137,B=this.c,y=this.n;
r=B-r[1]/63.78137;var q=b(y)*Math.sqrt(A*A+r*r),l=Math.atan2(A,Math.abs(r))*b(r);0>r*y&&(l-=Math.PI*b(A)*b(r));return[l/y/f,(2*Math.atan(Math.pow(B/q,1/y))-v)/f]};return B}()});I(f,"Maps/Projections/EqualEarth.js",[],function(){var b=Math.sqrt(3)/2;return function(){function f(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}f.prototype.forward=function(f){var v=Math.PI/180,r=Math.asin(b*Math.sin(f[1]*v)),A=r*r,E=A*A*A;return[f[0]*v*Math.cos(r)*
74.03120656864502/(b*(1.340264+3*-.081106*A+E*(7*.000893+.034164*A))),74.03120656864502*r*(1.340264+-.081106*A+E*(.000893+.003796*A))]};f.prototype.inverse=function(f){var v=f[0]/74.03120656864502;f=f[1]/74.03120656864502;var r=180/Math.PI,A=f,E;for(E=0;12>E;++E){var y=A*A;var q=y*y*y;var l=A*(1.340264+-.081106*y+q*(.000893+.003796*y))-f;y=1.340264+3*-.081106*y+q*(7*.000893+.034164*y);A-=l/=y;if(1e-9>Math.abs(l))break}y=A*A;return[r*b*v*(1.340264+3*-.081106*y+y*y*y*(7*.000893+.034164*y))/Math.cos(A),
r*Math.asin(Math.sin(A)/b)]};return f}()});I(f,"Maps/Projections/Miller.js",[],function(){var b=Math.PI/4,f=Math.PI/180;return function(){function v(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}v.prototype.forward=function(v){return[v[0]*f*63.78137,79.7267125*Math.log(Math.tan(b+.4*v[1]*f))]};v.prototype.inverse=function(v){return[v[0]/63.78137/f,2.5*(Math.atan(Math.exp(v[1]/63.78137*.8))-b)/f]};return v}()});I(f,"Maps/Projections/Orthographic.js",
[],function(){var b=Math.PI/180;return function(){function f(){this.antimeridianCutting=!1;this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}f.prototype.forward=function(f){var v=f[0];f=f[1]*b;f=[Math.cos(f)*Math.sin(v*b)*63.78460826781007,63.78460826781007*Math.sin(f)];if(-90>v||90<v)f.outside=!0;return f};f.prototype.inverse=function(f){var v=f[0]/63.78460826781007;f=f[1]/63.78460826781007;var r=Math.sqrt(v*v+f*f),A=Math.asin(r),E=Math.sin(A);return[Math.atan2(v*
E,r*Math.cos(A))/b,Math.asin(r&&f*E/r)/b]};return f}()});I(f,"Maps/Projections/WebMercator.js",[],function(){var b=Math.PI/180;return function(){function f(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071};this.maxLatitude=85.0511287798}f.prototype.forward=function(f){var v=Math.sin(f[1]*b);v=[63.78137*f[0]*b,63.78137*Math.log((1+v)/(1-v))/2];85.0511287798<Math.abs(f[1])&&(v.outside=!0);return v};f.prototype.inverse=function(f){return[f[0]/(63.78137*
b),(2*Math.atan(Math.exp(f[1]/63.78137))-Math.PI/2)/b]};return f}()});I(f,"Maps/Projections/ProjectionRegistry.js",[f["Maps/Projections/LambertConformalConic.js"],f["Maps/Projections/EqualEarth.js"],f["Maps/Projections/Miller.js"],f["Maps/Projections/Orthographic.js"],f["Maps/Projections/WebMercator.js"]],function(b,f,v,B,r){return{EqualEarth:f,LambertConformalConic:b,Miller:v,Orthographic:B,WebMercator:r}});I(f,"Maps/Projection.js",[f["Core/Geometry/PolygonClip.js"],f["Maps/Projections/ProjectionRegistry.js"],
f["Core/Utilities.js"]],function(b,f,v){var B=this&&this.__spreadArrays||function(){for(var b=0,e=0,a=arguments.length;e<a;e++)b+=arguments[e].length;b=Array(b);var d=0;for(e=0;e<a;e++)for(var f=arguments[e],l=0,q=f.length;l<q;l++,d++)b[d]=f[l];return b},r=b.clipLineString,A=b.clipPolygon,E=v.clamp,y=v.erase,q=2*Math.PI/360,l=function(b){-180>b&&(b+=360);180<b&&(b-=360);return b};return function(){function b(e){void 0===e&&(e={});this.hasGeoProjection=this.hasCoordinates=!1;this.maxLatitude=90;this.options=
e;var a=e.name,d=e.projectedBounds,f=e.rotation;this.rotator=f?this.getRotator(f):void 0;if(a=a?b.registry[a]:void 0)this.def=new a(e);var l=this.def,n=this.rotator;l&&(this.maxLatitude=l.maxLatitude||90,this.hasGeoProjection=!0);n&&l?(this.forward=function(a){return l.forward(n.forward(a))},this.inverse=function(a){return n.inverse(l.inverse(a))}):l?(this.forward=function(a){return l.forward(a)},this.inverse=function(a){return l.inverse(a)}):n&&(this.forward=n.forward,this.inverse=n.inverse);this.bounds=
"world"===d?l&&l.bounds:d}b.add=function(e,a){b.registry[e]=a};b.greatCircle=function(b,a,d){var e=Math.atan2,f=Math.cos,l=Math.sin,n=Math.sqrt,r=b[1]*q,t=b[0]*q,m=a[1]*q,h=a[0]*q,u=m-r,c=h-t;u=l(u/2)*l(u/2)+f(r)*f(m)*l(c/2)*l(c/2);u=2*e(n(u),n(1-u));var w=Math.round(6371E3*u/5E5);c=[];d&&c.push(b);if(1<w)for(w=b=1/w;.999>w;w+=b){var g=l((1-w)*u)/l(u),v=l(w*u)/l(u),p=g*f(r)*f(t)+v*f(m)*f(h),D=g*f(r)*l(t)+v*f(m)*l(h);g=g*l(r)+v*l(m);g=e(g,n(p*p+D*D));p=e(D,p);c.push([p/q,g/q])}d&&c.push(a);return c};
b.insertGreatCircles=function(e){for(var a=e.length-1;a--;)if(10<Math.max(Math.abs(e[a][0]-e[a+1][0]),Math.abs(e[a][1]-e[a+1][1]))){var d=b.greatCircle(e[a],e[a+1]);d.length&&e.splice.apply(e,B([a+1,0],d))}};b.toString=function(b){b=b||{};var a=b.rotation;return[b.name,a&&a.join(",")].join(";")};b.prototype.lineIntersectsBounds=function(b){var a=this.bounds||{},d=a.x2,e=a.y1,f=a.y2,l=function(a,b,d){var e=a[0];a=a[1];var f=b?0:1;if("number"===typeof d&&e[b]>=d!==a[b]>=d)return e=e[f]+(d-e[b])/(a[b]-
e[b])*(a[f]-e[f]),b?[e,d]:[d,e]},n=b[0];if(a=l(b,0,a.x1))n=a,b[1]=a;else if(a=l(b,0,d))n=a,b[1]=a;if(a=l(b,1,e))n=a;else if(a=l(b,1,f))n=a;return n};b.prototype.getRotator=function(b){var a=b[0]*q,d=(b[1]||0)*q;b=(b[2]||0)*q;var e=Math.cos(d),f=Math.sin(d),l=Math.cos(b),n=Math.sin(b);if(0!==a||0!==d||0!==b)return{forward:function(b){var d=b[0]*q+a,k=b[1]*q,h=Math.cos(k);b=Math.cos(d)*h;d=Math.sin(d)*h;k=Math.sin(k);h=k*e+b*f;return[Math.atan2(d*l-h*n,b*e-k*f)/q,Math.asin(h*l+d*n)/q]},inverse:function(b){var d=
b[0]*q,k=b[1]*q,h=Math.cos(k);b=Math.cos(d)*h;d=Math.sin(d)*h;k=Math.sin(k);h=k*l-d*n;return[(Math.atan2(d*l+k*n,b*e+h*f)-a)/q,Math.asin(h*e-b*f)/q]}}};b.prototype.forward=function(b){return b};b.prototype.inverse=function(b){return b};b.prototype.cutOnAntimeridian=function(e,a){var d=[],f=[e];e.forEach(function(c,b){var f=e[b-1];if(!b){if(!a)return;f=e[e.length-1]}var h=f[0],k=c[0];(-90>h||90<h)&&(-90>k||90<k)&&0<h!==0<k&&(k=E((180-(h+360)%360)/((k+360)%360-(h+360)%360),0,1),d.push({i:b,lat:f[1]+
k*(c[1]-f[1]),direction:0>h?1:-1,previousLonLat:f,lonLat:c}))});if(d.length)if(a){if(1===d.length%2){var n=d.slice().sort(function(a,b){return Math.abs(b.lat)-Math.abs(a.lat)})[0];y(d,n)}for(var q=d.length-2;0<=q;){var r=d[q].i,x=l(180+.000001*d[q].direction),t=l(180-.000001*d[q].direction);r=e.splice.apply(e,B([r,d[q+1].i-r],b.greatCircle([x,d[q].lat],[x,d[q+1].lat],!0)));r.push.apply(r,b.greatCircle([t,d[q+1].lat],[t,d[q].lat],!0));f.push(r);q-=2}if(n)for(x=0;x<f.length;x++){q=n.direction;var m=
n.lat;t=f[x];r=t.indexOf(n.lonLat);if(-1<r){x=(0>m?-1:1)*this.maxLatitude;var h=l(180+.000001*q),u=l(180-.000001*q);m=b.greatCircle([h,m],[h,x],!0);for(h+=120*q;-180<h&&180>h;h+=120*q)m.push([h,x]);m.push.apply(m,b.greatCircle([u,x],[u,n.lat],!0));t.splice.apply(t,B([r,0],m));break}}}else for(q=d.length;q--;)r=d[q].i,r=e.splice(r,e.length,[l(180+.000001*d[q].direction),d[q].lat]),r.unshift([l(180-.000001*d[q].direction),d[q].lat]),f.push(r);return f};b.prototype.path=function(e){var a=this,d=this.bounds,
f=this.def,l=this.rotator,n=[],q="Polygon"===e.type||"MultiPolygon"===e.type,x=this.hasGeoProjection,t=!f||!1!==f.antimeridianCutting,m=t?l:void 0,h=t?f||this:this,u;d&&(u=[[d.x1,d.y1],[d.x2,d.y1],[d.x2,d.y2],[d.x1,d.y2]]);var c=function(c){c=c.map(function(a){if(t){m&&(a=m.forward(a));var c=a[0];.000001>Math.abs(c-180)&&(c=180>c?179.999999:180.000001);a=[c,a[1]]}return a});var e=[c];x&&(b.insertGreatCircles(c),t&&(e=a.cutOnAntimeridian(c,q)));e.forEach(function(a){if(!(2>a.length)){var c=!1,e=!1,
f=function(a){c?n.push(["L",a[0],a[1]]):(n.push(["M",a[0],a[1]]),c=!0)},g=!1,k=!1,m=a.map(function(a){a=h.forward(a);a.outside?g=!0:k=!0;Infinity===a[1]?a[1]=1E10:-Infinity===a[1]&&(a[1]=-1E10);return a});if(t){q&&m.push(m[0]);if(g){if(!k)return;if(u)if(q)m=A(m,u);else if(d){r(m,u).forEach(function(a){c=!1;a.forEach(f)});return}}m.forEach(f)}else for(var l=0;l<m.length;l++){var w=a[l],v=m[l];if(v.outside)e=!0;else{if(q&&!y){var y=w;a.push(w);m.push(v)}e&&C&&(q&&x?b.greatCircle(C,w).forEach(function(a){return f(h.forward(a))}):
c=!1);f(v);var C=w;e=!1}}}})};"LineString"===e.type?c(e.coordinates):"MultiLineString"===e.type?e.coordinates.forEach(function(a){return c(a)}):"Polygon"===e.type?(e.coordinates.forEach(function(a){return c(a)}),n.length&&n.push(["Z"])):"MultiPolygon"===e.type&&(e.coordinates.forEach(function(a){a.forEach(function(a){return c(a)})}),n.length&&n.push(["Z"]));return n};b.registry=f;return b}()});I(f,"Maps/MapView.js",[f["Maps/MapViewOptionsDefault.js"],f["Maps/MapViewInsetsOptionsDefault.js"],f["Extensions/GeoJSON.js"],
f["Core/Chart/MapChart.js"],f["Maps/MapUtilities.js"],f["Maps/Projection.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E){var y=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),q=this&&this.__spreadArrays||
function(){for(var a=0,c=0,b=arguments.length;c<b;c++)a+=arguments[c].length;a=Array(a);var d=0;for(c=0;c<b;c++)for(var e=arguments[c],f=0,g=e.length;f<g;f++,d++)a[d]=e[f];return a},l=v.topo2geo,n=B.maps,e=r.boundsFromPath,a=r.pointInPolygon,d=E.addEvent,k=E.clamp,G=E.fireEvent,z=E.isArray,C=E.isNumber,x=E.isObject,t=E.isString,m=E.merge,h=E.pick,u=E.relativeLength,c=function(a,c){return Math.log(400.979322/Math.max((a.x2-a.x1)/(c.width/256),(a.y2-a.y1)/(c.height/256)))/Math.log(2)},w=function(){function e(a,
c){var f=this;this.insets=[];this.padding=[0,0,0,0];this.eventsToUnbind=[];var h;if(!(this instanceof g)){var k=q([a.options.chart.map],(a.options.series||[]).map(function(a){return a.mapData})).map(function(a){return f.getGeoMap(a)}),l=[];k.forEach(function(a){a&&(h||(h=a["hc-recommended-mapview"]),a.bbox&&(a=a.bbox,l.push({x1:a[0],y1:a[1],x2:a[2],y2:a[3]})))});var p=l.length&&e.compositeBounds(l);if(p){var n=p.x1;var t=p.y1,u=p.x2;p=p.y2;n=180<u-n&&90<p-t?{name:"EqualEarth"}:{name:"LambertConformalConic",
parallels:[t,p],rotation:[-(n+u)/2]}}this.geoMap=k[0]}this.userOptions=c||{};k=m(b,{projection:n},h,c);p=h&&h.insets;c=c&&c.insets;p&&c&&(k.insets=e.mergeInsets(p,c));this.chart=a;this.center=k.center;this.options=k;this.projection=new A(k.projection);this.playingField=a.plotBox;this.zoom=k.zoom||0;this.createInsets();this.eventsToUnbind.push(d(a,"afterSetChartSize",function(){f.playingField=f.getField();if(void 0===f.minZoom||f.minZoom===f.zoom)f.fitToBounds(void 0,void 0,!1),C(f.userOptions.zoom)&&
(f.zoom=f.userOptions.zoom),f.userOptions.center&&m(!0,f.center,f.userOptions.center)}));this.setUpEvents()}e.mergeInsets=function(a,c){var b=function(a){var c={};a.forEach(function(a,b){c[a&&a.id||"i"+b]=a});return c},d=m(b(a),b(c));return Object.keys(d).map(function(a){return d[a]})};e.prototype.createInsets=function(){var a=this,c=this.options,b=c.insets;b&&b.forEach(function(b){b=new g(a,m(c.insetOptions,b));a.insets.push(b)})};e.prototype.fitToBounds=function(a,b,d,e){void 0===d&&(d=!0);var f=
a||this.getProjectedBounds();if(f){var g=h(b,a?0:this.options.padding);b=this.getField(!1);g=z(g)?g:[g,g,g,g];this.padding=[u(g[0],b.height),u(g[1],b.width),u(g[2],b.height),u(g[3],b.width)];this.playingField=this.getField();b=c(f,this.playingField);a||(this.minZoom=b);a=this.projection.inverse([(f.x2+f.x1)/2,(f.y2+f.y1)/2]);this.setView(a,b,d,e)}};e.prototype.getField=function(a){void 0===a&&(a=!0);a=a?this.padding:[0,0,0,0];return{x:a[3],y:a[0],width:this.chart.plotWidth-a[1]-a[3],height:this.chart.plotHeight-
a[0]-a[2]}};e.prototype.getGeoMap=function(a){if(t(a))return n[a];if(x(a,!0)){if("FeatureCollection"===a.type)return a;if("Topology"===a.type)return l(a)}};e.prototype.getMapBBox=function(){var a=this.getProjectedBounds(),c=this.getScale();if(a){var b=this.padding,d=this.projectedUnitsToPixels({x:a.x1,y:a.y2});return{width:(a.x2-a.x1)*c+b[1]+b[3],height:(a.y2-a.y1)*c+b[0]+b[2],x:d.x-b[3],y:d.y-b[0]}}};e.prototype.getProjectedBounds=function(){var a=this.chart.series.reduce(function(a,c){var b=c.getProjectedBounds&&
c.getProjectedBounds();b&&!1!==c.options.affectsMapView&&a.push(b);return a},[]);return this.projection.bounds||e.compositeBounds(a)};e.prototype.getScale=function(){return 256/400.979322*Math.pow(2,this.zoom)};e.prototype.getSVGTransform=function(){var a=this.playingField,c=a.x,b=a.y,d=a.width;a=a.height;var e=this.projection.forward(this.center),f=this.projection.hasCoordinates?-1:1,g=this.getScale();f*=g;return{scaleX:g,scaleY:f,translateX:c+d/2-e[0]*g,translateY:b+a/2-e[1]*f}};e.prototype.lonLatToPixels=
function(a){if(a=this.lonLatToProjectedUnits(a))return this.projectedUnitsToPixels(a)};e.prototype.lonLatToProjectedUnits=function(c){var b=this.chart,d=b.mapTransforms;if(d){for(var e in d)if(Object.hasOwnProperty.call(d,e)&&d[e].hitZone){var f=b.transformFromLatLon(c,d[e]);if(f&&a(f,d[e].hitZone.coordinates[0]))return f}return b.transformFromLatLon(c,d["default"])}d=0;for(e=this.insets;d<e.length;d++)if(b=e[d],b.options.geoBounds&&a({x:c.lon,y:c.lat},b.options.geoBounds.coordinates[0]))return c=
b.projection.forward([c.lon,c.lat]),c=b.projectedUnitsToPixels({x:c[0],y:c[1]}),this.pixelsToProjectedUnits(c);c=this.projection.forward([c.lon,c.lat]);if(!c.outside)return{x:c[0],y:c[1]}};e.prototype.projectedUnitsToLonLat=function(c){var b=this.chart,d=b.mapTransforms;if(d){for(var e in d)if(Object.hasOwnProperty.call(d,e)&&d[e].hitZone&&a(c,d[e].hitZone.coordinates[0]))return b.transformToLatLon(c,d[e]);return b.transformToLatLon(c,d["default"])}d=this.projectedUnitsToPixels(c);e=0;for(var f=this.insets;e<
f.length;e++)if(b=f[e],b.hitZone&&a(d,b.hitZone.coordinates[0]))return c=b.pixelsToProjectedUnits(d),c=b.projection.inverse([c.x,c.y]),{lon:c[0],lat:c[1]};c=this.projection.inverse([c.x,c.y]);return{lon:c[0],lat:c[1]}};e.prototype.redraw=function(a){this.chart.series.forEach(function(a){a.useMapGeometry&&(a.isDirty=!0)});this.chart.redraw(a)};e.prototype.setView=function(a,c,b,d){void 0===b&&(b=!0);a&&(this.center=a);"number"===typeof c&&("number"===typeof this.minZoom&&(c=Math.max(c,this.minZoom)),
"number"===typeof this.options.maxZoom&&(c=Math.min(c,this.options.maxZoom)),this.zoom=c);var e=this.getProjectedBounds();if(e){a=this.projection.forward(this.center);var f=this.playingField;c=f.x;var g=f.y,h=f.width;f=f.height;var k=this.getScale(),m=this.projectedUnitsToPixels({x:e.x1,y:e.y1}),l=this.projectedUnitsToPixels({x:e.x2,y:e.y2});e=[(e.x1+e.x2)/2,(e.y1+e.y2)/2];var n=m.x,p=l.y;l=l.x;m=m.y;l-n<h?a[0]=e[0]:n<c&&l<c+h?a[0]+=Math.max(n-c,l-h-c)/k:l>c+h&&n>c&&(a[0]+=Math.min(l-h-c,n-c)/k);
m-p<f?a[1]=e[1]:p<g&&m<g+f?a[1]-=Math.max(p-g,m-f-g)/k:m>g+f&&p>g&&(a[1]-=Math.min(m-f-g,p-g)/k);this.center=this.projection.inverse(a);this.insets.forEach(function(a){a.options.field&&(a.hitZone=a.getHitZone(),a.playingField=a.getField())});this.render()}G(this,"afterSetView");b&&this.redraw(d)};e.prototype.projectedUnitsToPixels=function(a){var c=this.getScale(),b=this.projection.forward(this.center),d=this.playingField;return{x:d.x+d.width/2-c*(b[0]-a.x),y:d.y+d.height/2+c*(b[1]-a.y)}};e.prototype.pixelsToLonLat=
function(a){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(a))};e.prototype.pixelsToProjectedUnits=function(a){var c=a.x;a=a.y;var b=this.getScale(),d=this.projection.forward(this.center),e=this.playingField;return{x:d[0]+(c-(e.x+e.width/2))/b,y:d[1]-(a-(e.y+e.height/2))/b}};e.prototype.setUpEvents=function(){var a=this,b=this.chart,e,f,g,h=function(d){var h=b.pointer.pinchDown,m=a.projection,l=b.mouseDownX,n=b.mouseDownY;1===h.length&&(l=h[0].chartX,n=h[0].chartY);if("number"===typeof l&&
"number"===typeof n){var p=l+","+n,t=d.originalEvent;h=t.chartX;t=t.chartY;p!==f&&(f=p,e=a.projection.forward(a.center),g=(a.projection.options.rotation||[0,0]).slice());p=(p=m.def&&m.def.bounds)&&c(p,a.playingField)||-Infinity;"Orthographic"===m.options.name&&(a.minZoom||Infinity)<1.1*p?(m=440/(a.getScale()*Math.min(b.plotWidth,b.plotHeight)),g&&(l=(l-h)*m-g[0],n=k(-g[1]-(n-t)*m,-80,80),h=a.zoom,a.update({projection:{rotation:[-l,-n]}},!1),a.zoom=h,b.redraw(!1))):(m=a.getScale(),n=a.projection.inverse([e[0]+
(l-h)/m,e[1]-(n-t)/m]),a.setView(n,void 0,!0,!1));d.preventDefault()}};d(b,"pan",h);d(b,"touchpan",h);d(b,"selection",function(c){if(c.resetSelection)a.zoomBy();else{var d=c.x-b.plotLeft,e=c.y-b.plotTop,f=a.pixelsToProjectedUnits({x:d,y:e}),g=f.y;f=f.x;d=a.pixelsToProjectedUnits({x:d+c.width,y:e+c.height});a.fitToBounds({x1:f,y1:g,x2:d.x,y2:d.y},void 0,!0,c.originalEvent.touches?!1:void 0);/^touch/.test(c.originalEvent.type)||b.showResetZoom();c.preventDefault()}})};e.prototype.render=function(){this.group||
(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())};e.prototype.update=function(a,c,b){void 0===c&&(c=!0);var d=a.projection;d=d&&A.toString(d)!==A.toString(this.options.projection);var e=!1;m(!0,this.userOptions,a);m(!0,this.options,a);"insets"in a&&(this.insets.forEach(function(a){return a.destroy()}),this.insets.length=0,e=!0);if(d||e)this.chart.series.forEach(function(a){var c=a.transformGroups;a.clearBounds&&a.clearBounds();a.isDirty=!0;a.isDirtyData=!0;if(e&&c)for(;1<c.length;)(a=
c.pop())&&a.destroy()}),d&&(this.projection=new A(this.options.projection)),e&&this.createInsets(),a.center||C(a.zoom)||this.fitToBounds(void 0,void 0,!1);(a.center||C(a.zoom))&&this.setView(this.options.center,a.zoom,!1);c&&this.chart.redraw(b)};e.prototype.zoomBy=function(a,c,b,d){var e=this.chart,f=this.projection.forward(this.center);c=c?this.projection.forward(c):[];var g=c[0],h=c[1];"number"===typeof a?(a=this.zoom+a,c=void 0,b&&(g=b[0],h=b[1],b=this.getScale(),g=g-e.plotLeft-e.plotWidth/2,
e=h-e.plotTop-e.plotHeight/2,g=f[0]+g/b,h=f[1]+e/b),"number"===typeof g&&"number"===typeof h&&(b=1-Math.pow(2,this.zoom)/Math.pow(2,a),g=f[0]-g,e=f[1]-h,f[0]-=g*b,f[1]+=e*b,c=this.projection.inverse(f)),this.setView(c,a,void 0,d)):this.fitToBounds(void 0,void 0,void 0,d)};e.compositeBounds=function(a){if(a.length)return a.slice(1).reduce(function(a,c){a.x1=Math.min(a.x1,c.x1);a.y1=Math.min(a.y1,c.y1);a.x2=Math.max(a.x2,c.x2);a.y2=Math.max(a.y2,c.y2);return a},m(a[0]))};return e}(),g=function(c){function b(a,
b){var d=c.call(this,a.chart,b)||this;d.id=b.id;d.mapView=a;d.options=m(f,b);d.allBounds=[];d.options.geoBounds&&(a=a.projection.path(d.options.geoBounds),d.geoBoundsProjectedBox=e(a),d.geoBoundsProjectedPolygon=a.map(function(a){return[a[1]||0,a[2]||0]}));return d}y(b,c);b.prototype.getField=function(a){void 0===a&&(a=!0);var b=this.hitZone;if(b){var d=a?this.padding:[0,0,0,0];b=b.coordinates[0];var e=b.map(function(a){return a[0]}),f=b.map(function(a){return a[1]});b=Math.min.apply(0,e)+d[3];e=
Math.max.apply(0,e)-d[1];var g=Math.min.apply(0,f)+d[0];d=Math.max.apply(0,f)-d[2];if(C(b)&&C(g))return{x:b,y:g,width:e-b,height:d-g}}return c.prototype.getField.call(this,a)};b.prototype.getHitZone=function(){var a=this.chart,c=this.mapView,b=this.options,d=(b.field||{}).coordinates;if(d){d=d[0];if("percent"===b.units){var e="mapBoundingBox"===b.relativeTo&&c.getMapBBox()||m(a.plotBox,{x:0,y:0});d=d.map(function(a){return[u(a[0]+"%",e.width,e.x),u(a[1]+"%",e.height,e.y)]})}return{type:"Polygon",
coordinates:[d]}}};b.prototype.getProjectedBounds=function(){return w.compositeBounds(this.allBounds)};b.prototype.isInside=function(c){var b=this.geoBoundsProjectedBox,d=this.geoBoundsProjectedPolygon;return!!(b&&c.x>=b.x1&&c.x<=b.x2&&c.y>=b.y1&&c.y<=b.y2&&d&&a(c,d))};b.prototype.render=function(){var a=this.chart,c=this.mapView,b=this.options,d=b.borderPath||b.field;if(d&&c.group){var e=!0;this.border||(this.border=a.renderer.path().addClass("highcharts-mapview-inset-border").add(c.group),e=!1);
a.styledMode||this.border.attr({stroke:b.borderColor,"stroke-width":b.borderWidth});var f=Math.round(this.border.strokeWidth())%2/2,g="mapBoundingBox"===b.relativeTo&&c.getMapBBox()||c.playingField;c=(d.coordinates||[]).reduce(function(c,d){return d.reduce(function(c,d,e){var h=d[0];d=d[1];"percent"===b.units&&(h=a.plotLeft+u(h+"%",g.width,g.x),d=a.plotTop+u(d+"%",g.height,g.y));h=Math.floor(h)+f;d=Math.floor(d)+f;c.push(0===e?["M",h,d]:["L",h,d]);return c},c)},[]);this.border[e?"animate":"attr"]({d:c})}};
b.prototype.destroy=function(){this.border&&(this.border=this.border.destroy());this.eventsToUnbind.forEach(function(a){return a()})};b.prototype.setUpEvents=function(){};return b}(w);d(B,"afterInit",function(){this.mapView=new w(this,this.options.mapView)});return w});I(f,"Series/Map/MapSeries.js",[f["Core/Animation/AnimationUtilities.js"],f["Series/ColorMapMixin.js"],f["Series/CenteredUtilities.js"],f["Core/Globals.js"],f["Core/Legend/LegendSymbol.js"],f["Core/Chart/MapChart.js"],f["Series/Map/MapPoint.js"],
f["Maps/MapView.js"],f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Renderer/SVG/SVGRenderer.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E,y,q,l,n,e){var a=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):
(d.prototype=b.prototype,new d)}}(),d=b.animObject;b=B.noop;var k=A.splitPath;A=l.seriesTypes;var G=A.column,z=A.scatter;A=e.extend;var C=e.find,x=e.fireEvent,t=e.getNestedProperty,m=e.isArray,h=e.isNumber,u=e.isObject,c=e.merge,w=e.objectEach,g=e.pick,F=e.splat;e=function(b){function e(){var a=null!==b&&b.apply(this,arguments)||this;a.chart=void 0;a.data=void 0;a.group=void 0;a.joinBy=void 0;a.options=void 0;a.points=void 0;a.processedData=[];return a}a(e,b);e.prototype.animate=function(a){var c=
this.chart,b=this.group,e=d(this.options.animation);c.renderer.isSVG&&(a?b.attr({translateX:c.plotLeft+c.plotWidth/2,translateY:c.plotTop+c.plotHeight/2,scaleX:.001,scaleY:.001}):b.animate({translateX:c.plotLeft,translateY:c.plotTop,scaleX:1,scaleY:1},e))};e.prototype.animateDrilldown=function(a){var c=this.chart,b=this.group;c.renderer.isSVG&&(a?b.attr({translateX:c.plotLeft+c.plotWidth/2,translateY:c.plotTop+c.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(b.animate({translateX:c.plotLeft,translateY:c.plotTop,
scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),c.drilldown&&c.drilldown.fadeInGroup(this.dataLabelsGroup)))};e.prototype.animateDrillupFrom=function(){var a=this.chart;a.renderer.isSVG&&this.group.animate({translateX:a.plotLeft+a.plotWidth/2,translateY:a.plotTop+a.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})};e.prototype.animateDrillupTo=function(a){G.prototype.animateDrillupTo.call(this,a)};e.prototype.clearBounds=function(){this.points.forEach(function(a){delete a.bounds;
delete a.insetIndex;delete a.projectedPath});delete this.bounds};e.prototype.doFullTranslate=function(){return!(!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML)&&this.hasRendered)};e.prototype.drawMapDataLabels=function(){q.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};e.prototype.drawPoints=function(){var a=this,c=this.chart,b=this.group,d=this.transformGroups,e=void 0===d?[]:d,f=c.mapView,h=c.renderer;f&&(this.transformGroups=
e,e[0]||(e[0]=h.g().add(b)),f.insets.forEach(function(a,c){e[c+1]||e.push(h.g().add(b))}),this.doFullTranslate()&&(this.points.forEach(function(b){var d=b.graphic,f=b.shapeArgs;b.group=e["number"===typeof b.insetIndex?b.insetIndex+1:0];d&&d.parentGroup!==b.group&&d.add(b.group);f&&c.hasRendered&&!c.styledMode&&(f.fill=a.pointAttribs(b,b.state).fill)}),G.prototype.drawPoints.apply(this),this.points.forEach(function(b){if(b.graphic){var d="";b.name&&(d+="highcharts-name-"+b.name.replace(/ /g,"-").toLowerCase());
b.properties&&b.properties["hc-key"]&&(d+=" highcharts-key-"+b.properties["hc-key"].toString().toLowerCase());d&&b.graphic.addClass(d);c.styledMode&&b.graphic.css(a.pointAttribs(b,b.selected&&"select"||void 0))}})),e.forEach(function(b,d){var e=(0===d?f:f.insets[d-1]).getSVGTransform(),k=g(a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"],1),m=e.scaleX,l=0<e.scaleY?1:-1;if(h.globalAnimation&&c.hasRendered){var n=Number(b.attr("translateX")),p=Number(b.attr("translateY")),
t=Number(b.attr("scaleX"));b.attr({animator:0}).animate({animator:1},{step:function(a,c){a=t+(m-t)*c.pos;b.attr({translateX:n+(e.translateX-n)*c.pos,translateY:p+(e.translateY-p)*c.pos,scaleX:a,scaleY:a*l});b.element.setAttribute("stroke-width",k/a)}})}else b.attr(e),b.element.setAttribute("stroke-width",k/m)}),this.drawMapDataLabels())};e.prototype.getProjectedBounds=function(){if(!this.bounds&&this.chart.mapView){var a=this.chart.mapView,c=a.insets,b=a.projection,d=[];(this.points||[]).forEach(function(a){if(a.path||
a.geometry){"string"===typeof a.path?a.path=k(a.path):m(a.path)&&"M"===a.path[0]&&(a.path=n.prototype.pathToSegments(a.path));if(!a.bounds){var e=a.getProjectedBounds(b);if(e){a.labelrank=g(a.labelrank,(e.x2-e.x1)*(e.y2-e.y1));var f=e.midX,l=e.midY;if(c&&h(f)&&h(l)){var p=C(c,function(a){return a.isInside({x:f,y:l})});p&&(delete a.projectedPath,(e=a.getProjectedBounds(p.projection))&&p.allBounds.push(e),a.insetIndex=c.indexOf(p))}a.bounds=e}}a.bounds&&void 0===a.insetIndex&&d.push(a.bounds)}});this.bounds=
y.compositeBounds(d)}return this.bounds};e.prototype.hasData=function(){return!!this.processedXData.length};e.prototype.pointAttribs=function(a,c){var b=a.series.chart,d=b.mapView;c=b.styledMode?this.colorAttribs(a):G.prototype.pointAttribs.call(this,a,c);(a=a.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"])&&d&&(a/=d.getScale());c.dashstyle&&d&&this.options.borderWidth&&(a=this.options.borderWidth/d.getScale());c["stroke-width"]=g(a,"inherit");return c};e.prototype.setData=
function(){b.prototype.setData.apply(this,arguments);this.processData();this.generatePoints()};e.prototype.processData=function(){var a=this.options,b=a.data,d=this.chart.options.chart,e=this.joinBy,f=a.keys||this.pointArrayMap,g=[],k={},l=this.chart.mapView;l=l&&(u(a.mapData,!0)?l.getGeoMap(a.mapData):l.geoMap);var n=this.chart.mapTransforms;(this.chart.mapTransforms=n=d.mapTransforms||l&&l["hc-transform"]||n)&&w(n,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});
if(m(a.mapData))var p=a.mapData;else l&&"FeatureCollection"===l.type&&(this.mapTitle=l.title,p=B.geojson(l,this.type,this));var q=this.processedData=[];b&&b.forEach(function(c,d){var g=0;if(h(c))q[d]={value:c};else if(m(c)){q[d]={};!a.keys&&c.length>f.length&&"string"===typeof c[0]&&(q[d]["hc-key"]=c[0],++g);for(var k=0;k<f.length;++k,++g)f[k]&&"undefined"!==typeof c[g]&&(0<f[k].indexOf(".")?E.prototype.setNestedProperty(q[d],c[g],f[k]):q[d][f[k]]=c[g])}else q[d]=b[d];e&&"_i"===e[0]&&(q[d]._i=d)});
if(p){this.mapData=p;this.mapMap={};for(n=0;n<p.length;n++)d=p[n],l=d.properties,d._i=n,e[0]&&l&&l[e[0]]&&(d[e[0]]=l[e[0]]),k[d[e[0]]]=d;this.mapMap=k;if(e[1]){var r=e[1];q.forEach(function(a){a=t(r,a);k[a]&&g.push(k[a])})}if(a.allAreas){if(e[1]){var x=e[1];q.forEach(function(a){g.push(t(x,a))})}var v="|"+g.map(function(a){return a&&a[e[0]]}).join("|")+"|";p.forEach(function(a){e[0]&&-1!==v.indexOf("|"+a[e[0]]+"|")||q.push(c(a,{value:null}))})}}this.processedXData=Array(q.length)};e.prototype.setOptions=
function(a){a=q.prototype.setOptions.call(this,a);var c=a.joinBy;null===c&&(c="_i");c=this.joinBy=F(c);c[1]||(c[1]=c[0]);return a};e.prototype.translate=function(){var a=this.doFullTranslate(),c=this.chart.mapView,b=c&&c.projection;!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,this.getProjectedBounds());if(c){var d=c.getSVGTransform();this.points.forEach(function(e){var f=h(e.insetIndex)&&c.insets[e.insetIndex].getSVGTransform()||
d;f&&e.bounds&&h(e.bounds.midX)&&h(e.bounds.midY)&&(e.plotX=e.bounds.midX*f.scaleX+f.translateX,e.plotY=e.bounds.midY*f.scaleY+f.translateY);a&&(e.shapeType="path",e.shapeArgs={d:E.getProjectedPath(e,b)})})}x(this,"afterTranslate")};e.defaultOptions=c(z.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var a=this.series.chart.numberFormatter,c=this.point.value;return h(c)?a(c,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},marker:null,nullColor:"#f7f7f7",
stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"},inactive:{opacity:1}}});return e}(z);A(e.prototype,{type:"map",axisTypes:f.SeriesMixin.axisTypes,colorAttribs:f.SeriesMixin.colorAttribs,colorKey:f.SeriesMixin.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:r.drawRectangle,
forceDL:!0,getCenter:v.getCenter,getExtremesFromAll:!0,getSymbol:f.SeriesMixin.getSymbol,isCartesian:!1,parallelArrays:f.SeriesMixin.parallelArrays,pointArrayMap:f.SeriesMixin.pointArrayMap,pointClass:E,preserveAspectRatio:!0,searchPoint:b,trackerGroups:f.SeriesMixin.trackerGroups,useMapGeometry:!0});l.registerSeriesType("map",e);"";return e});I(f,"Series/MapLine/MapLineSeries.js",[f["Series/Map/MapSeries.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v){var B=this&&
this.__extends||function(){var b=function(f,l){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var a in e)e.hasOwnProperty(a)&&(b[a]=e[a])};return b(f,l)};return function(f,l){function n(){this.constructor=f}b(f,l);f.prototype=null===l?Object.create(l):(n.prototype=l.prototype,new n)}}(),r=f.series,A=v.extend,E=v.merge;v=function(f){function q(){var b=null!==f&&f.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}
B(q,f);q.prototype.pointAttribs=function(f,n){f=b.prototype.pointAttribs.call(this,f,n);f.fill=this.options.fillColor;return f};q.defaultOptions=E(b.defaultOptions,{lineWidth:1,fillColor:"none"});return q}(b);A(v.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:r.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});f.registerSeriesType("mapline",v);"";return v});I(f,"Series/MapPoint/MapPointPoint.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
function(b,f){var v=this&&this.__extends||function(){var b=function(f,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var l in f)f.hasOwnProperty(l)&&(b[l]=f[l])};return b(f,r)};return function(f,r){function v(){this.constructor=f}b(f,r);f.prototype=null===r?Object.create(r):(v.prototype=r.prototype,new v)}}(),B=f.isNumber;return function(b){function f(){var f=null!==b&&b.apply(this,arguments)||this;f.options=void 0;f.series=void 0;return f}
v(f,b);f.prototype.isValid=function(){return!!(this.options.geometry||B(this.x)&&B(this.y)||B(this.options.lon)&&B(this.options.lat))};return f}(b.seriesTypes.scatter.prototype.pointClass)});I(f,"Series/MapPoint/MapPointSeries.js",[f["Core/Globals.js"],f["Series/MapPoint/MapPointPoint.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B){var r=this&&this.__extends||function(){var b=function(e,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(e,a)};return function(e,a){function d(){this.constructor=e}b(e,a);e.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}();b=b.noop;var A=v.seriesTypes.scatter,E=B.extend,y=B.fireEvent,q=B.isNumber,l=B.merge;B=function(b){function e(){var a=null!==b&&b.apply(this,arguments)||this;a.chart=void 0;a.data=void 0;a.options=void 0;a.points=void 0;return a}r(e,b);e.prototype.drawDataLabels=function(){b.prototype.drawDataLabels.call(this);
this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};e.prototype.projectPoint=function(a){var b=this.chart.mapView;if(b){var e=a.geometry,f=a.lon;a=a.lat;e=e&&"Point"===e.type&&e.coordinates;q(f)&&q(a)&&(e=[f,a]);if(e)return b.lonLatToProjectedUnits({lon:e[0],lat:e[1]})}};e.prototype.translate=function(){var a=this,b=this.chart.mapView;this.processedXData||this.processData();this.generatePoints();this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds());
if(b){var e=b.projection.hasCoordinates;this.points.forEach(function(d){var f=d.x;f=void 0===f?void 0:f;var k=d.y;k=void 0===k?void 0:k;var l=a.projectPoint(d.options);l?(f=l.x,k=l.y):d.bounds&&(f=d.bounds.midX,k=d.bounds.midY);q(f)&&q(k)?(f=b.projectedUnitsToPixels({x:f,y:k}),d.plotX=f.x,d.plotY=e?f.y:a.chart.plotHeight-f.y):d.y=d.plotX=d.plotY=void 0;d.isInside=a.isPointInside(d);d.zone=a.zones.length?d.getZone():void 0})}y(this,"afterTranslate")};e.defaultOptions=l(A.defaultOptions,{dataLabels:{crop:!1,
defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}});return e}(A);E(B.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:f,searchPoint:b,useMapGeometry:!0});v.registerSeriesType("mappoint",B);"";return B});I(f,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,
enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}});I(f,"Series/Bubble/BubbleLegendItem.js",[f["Core/Color/Color.js"],f["Core/FormatUtilities.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(b,f,v,B){var r=b.parse,A=v.noop,E=B.arrayMax,
y=B.arrayMin,q=B.isNumber,l=B.merge,n=B.pick,e=B.stableSort;"";return function(){function a(a,b){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=A;this.init(a,b)}a.prototype.init=function(a,b){this.options=a;this.visible=!0;this.chart=b.chart;this.legend=b};a.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,
0,this)};a.prototype.drawLegendSymbol=function(a){var b=this.chart,d=this.options,f=n(a.options.itemDistance,20),l=d.ranges,r=d.connectorDistance;this.fontMetrics=b.renderer.fontMetrics(d.labels.style.fontSize);l&&l.length&&q(l[0].value)?(e(l,function(a,b){return b.value-a.value}),this.ranges=l,this.setOptions(),this.render(),a=this.getMaxLabelSize(),l=this.ranges[0].radius,b=2*l,r=r-l+a.width,r=0<r?r:0,this.maxLabel=a,this.movementX="left"===d.labels.align?r:0,this.legendItemWidth=b+r+f,this.legendItemHeight=
b+this.fontMetrics.h/2):a.options.bubbleLegend.autoRanges=!0};a.prototype.setOptions=function(){var a=this.ranges,b=this.options,e=this.chart.series[b.seriesIndex],f=this.legend.baseline,q={zIndex:b.zIndex,"stroke-width":b.borderWidth},x={zIndex:b.zIndex,"stroke-width":b.connectorWidth},t={align:this.legend.options.rtl||"left"===b.labels.align?"right":"left",zIndex:b.zIndex},m=e.options.marker.fillOpacity,h=this.chart.styledMode;a.forEach(function(d,c){h||(q.stroke=n(d.borderColor,b.borderColor,e.color),
q.fill=n(d.color,b.color,1!==m?r(e.color).setOpacity(m).get("rgba"):e.color),x.stroke=n(d.connectorColor,b.connectorColor,e.color));a[c].radius=this.getRangeRadius(d.value);a[c]=l(a[c],{center:a[0].radius-a[c].radius+f});h||l(!0,a[c],{bubbleAttribs:l(q),connectorAttribs:l(x),labelAttribs:t})},this)};a.prototype.getRangeRadius=function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,
a)};a.prototype.render=function(){var a=this.chart.renderer,b=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=a.g("bubble-legend");this.legendItem=a.g("bubble-legend-item");this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(a){a.value>=b&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};a.prototype.renderRange=
function(a){var b=this.options,d=b.labels,e=this.chart,f=e.series[b.seriesIndex],l=e.renderer,n=this.symbols;e=n.labels;var m=a.center,h=Math.abs(a.radius),u=b.connectorDistance||0,c=d.align,q=b.connectorWidth,g=this.ranges[0].radius||0,r=m-h-b.borderWidth/2+q/2,p=this.fontMetrics;p=p.f/2-(p.h-p.f)/2;var v=l.styledMode;u=this.legend.options.rtl||"left"===c?-u:u;"center"===c&&(u=0,b.connectorDistance=0,a.labelAttribs.align="center");c=r+b.labels.y;var y=g+u+b.labels.x;n.bubbleItems.push(l.circle(g,
m+((r%1?1:.5)-(q%2?0:.5)),h).attr(v?{}:a.bubbleAttribs).addClass((v?"highcharts-color-"+f.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));n.connectors.push(l.path(l.crispLine([["M",g,r],["L",g+u,r]],b.connectorWidth)).attr(v?{}:a.connectorAttribs).addClass((v?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));a=l.text(this.formatLabel(a),y,c+p).attr(v?{}:a.labelAttribs).css(v?
{}:d.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);e.push(a);a.placed=!0;a.alignAttr={x:y,y:c+p}};a.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(d){b=d.getBBox(!0);a=a?b.width>a.width?b:a:b});return a||{}};a.prototype.formatLabel=function(a){var b=this.options,d=b.labels.formatter;b=b.labels.format;var e=this.chart.numberFormatter;return b?f.format(b,a):d?d.call(a):e(a.value,1)};a.prototype.hideOverlappingLabels=
function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),b.labels.forEach(function(a,d){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[d].show():b.connectors[d].hide()}))};a.prototype.getRanges=function(){var a=this.legend.bubbleLegend,b=a.options.ranges,e,f=Number.MAX_VALUE,r=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(e=a.zData.filter(q),e.length&&(f=n(a.options.zMin,Math.min(f,Math.max(y(e),
!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),r=n(a.options.zMax,Math.max(r,E(e)))))});var x=f===r?[{value:r}]:[{value:f},{value:(f+r)/2},{value:r,autoRanges:!0}];b.length&&b[0].radius&&x.reverse();x.forEach(function(a,d){b&&b[d]&&(x[d]=l(b[d],a))});return x};a.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,e=a.legend.options,f=e.floating,l=(e="horizontal"===e.layout)?a.legend.lastLineHeight:0,n=a.plotSizeX,t=a.plotSizeY,m=a.series[this.options.seriesIndex],
h=m.getPxExtremes();a=Math.ceil(h.minPxSize);h=Math.ceil(h.maxPxSize);var u=Math.min(t,n);m=m.options.maxSize;if(f||!/%$/.test(m))b=h;else if(m=parseFloat(m),b=(u+l-b.h/2)*m/100/(m/100+1),e&&t-b>=n||!e&&n-b>=t)b=h;return[a,Math.ceil(b)]};a.prototype.updateRanges=function(a,b){var d=this.legend.options.bubbleLegend;d.minSize=a;d.maxSize=b;d.ranges=this.getRanges()};a.prototype.correctSizes=function(){var a=this.legend,b=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(b.maxPxSize)-
this.options.maxSize)&&(this.updateRanges(this.options.minSize,b.maxPxSize),a.render())};return a}()});I(f,"Series/Bubble/BubbleLegendComposition.js",[f["Series/Bubble/BubbleLegendDefaults.js"],f["Series/Bubble/BubbleLegendItem.js"],f["Core/DefaultOptions.js"],f["Core/Utilities.js"]],function(b,f,v,B){var r=v.setOptions,A=B.addEvent,E=B.objectEach,y=B.wrap,q;(function(l){function n(b,d,f){var k=this.legend,h=0<=e(this);if(k&&k.options.enabled&&k.bubbleLegend&&k.options.bubbleLegend.autoRanges&&h){var l=
k.bubbleLegend.options;h=k.bubbleLegend.predictBubbleSizes();k.bubbleLegend.updateRanges(h[0],h[1]);l.placed||(k.group.placed=!1,k.allItems.forEach(function(a){a.legendGroup.translateY=null}));k.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();l.placed||(a.setScale(),a.updateNames(),E(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});l.placed=!0;this.getMargins();b.call(this,d,f);k.bubbleLegend.correctSizes();q(k,a(k))}else b.call(this,d,f),k&&k.options.enabled&&k.bubbleLegend&&
(k.render(),q(k,a(k)))}function e(a){a=a.series;for(var b=0;b<a.length;){if(a[b]&&a[b].isBubble&&a[b].visible&&a[b].zData.length)return b;b++}return-1}function a(a){a=a.allItems;var b=[],d=a.length,e,f=0;for(e=0;e<d;e++)if(a[e].legendItemHeight&&(a[e].itemHeight=a[e].legendItemHeight),a[e]===a[d-1]||a[e+1]&&a[e]._legendItemPos[1]!==a[e+1]._legendItemPos[1]){b.push({height:0});var k=b[b.length-1];for(f;f<=e;f++)a[f].itemHeight>k.height&&(k.height=a[f].itemHeight);k.step=e}return b}function d(a){var b=
this.bubbleLegend,d=this.options,k=d.bubbleLegend,h=e(this.chart);b&&b.ranges&&b.ranges.length&&(k.ranges.length&&(k.autoRanges=!!k.ranges[0].autoRanges),this.destroyItem(b));0<=h&&d.enabled&&k.enabled&&(k.seriesIndex=h,this.bubbleLegend=new f(k,this),this.bubbleLegend.addToLegend(a.allItems))}function k(){var a=this.chart,b=this.visible,d=this.chart.legend;d&&d.bubbleLegend&&(this.visible=!b,this.ignoreSeries=b,a=0<=e(a),d.bubbleLegend.visible!==a&&(d.update({bubbleLegend:{enabled:a}}),d.bubbleLegend.visible=
a),this.visible=b)}function q(a,b){var d=a.options.rtl,e,f,k,c=0;a.allItems.forEach(function(a,g){e=a.legendGroup.translateX;f=a._legendItemPos[1];if((k=a.movementX)||d&&a.ranges)k=d?e-a.options.maxSize/2:e+k,a.legendGroup.attr({translateX:k});g>b[c].step&&c++;a.legendGroup.attr({translateY:Math.round(f+b[c].height/2)});a._legendItemPos[1]=f+b[c].height/2})}var v=[];l.compose=function(a,e,f){-1===v.indexOf(a)&&(v.push(a),r({legend:{bubbleLegend:b}}),y(a.prototype,"drawChartBox",n));-1===v.indexOf(e)&&
(v.push(e),A(e,"afterGetAllItems",d));-1===v.indexOf(f)&&(v.push(f),A(f,"legendItemClick",k))}})(q||(q={}));return q});I(f,"Series/Bubble/BubblePoint.js",[f["Core/Series/Point.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v){var B=this&&this.__extends||function(){var b=function(f,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var l in f)f.hasOwnProperty(l)&&(b[l]=f[l])};return b(f,r)};return function(f,r){function v(){this.constructor=
f}b(f,r);f.prototype=null===r?Object.create(r):(v.prototype=r.prototype,new v)}}();v=v.extend;f=function(f){function r(){var b=null!==f&&f.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}B(r,f);r.prototype.haloPath=function(f){return b.prototype.haloPath.call(this,0===f?0:(this.marker?this.marker.radius||0:0)+f)};return r}(f.seriesTypes.scatter.prototype.pointClass);v(f.prototype,{ttBelow:!1});return f});I(f,"Series/Bubble/BubbleSeries.js",[f["Core/Axis/Axis.js"],f["Series/Bubble/BubbleLegendComposition.js"],
f["Series/Bubble/BubblePoint.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E,y){var q=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):
(e.prototype=d.prototype,new e)}}(),l=B.parse;B=r.noop;var n=E.seriesTypes;r=n.column;var e=n.scatter;n=y.addEvent;var a=y.arrayMax,d=y.arrayMin,k=y.clamp,G=y.extend,z=y.isNumber,C=y.merge,x=y.pick;y=function(b){function m(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.maxPxSize=void 0;a.minPxSize=void 0;a.options=void 0;a.points=void 0;a.radii=void 0;a.yData=void 0;a.zData=void 0;return a}q(m,b);m.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&
this.points.forEach(function(a){var b=a.graphic;b&&b.width&&(this.hasRendered||b.attr({x:a.plotX,y:a.plotY,width:1,height:1}),b.animate(this.markerAttribs(a),this.options.animation))},this)};m.prototype.getRadii=function(){var a=this,b=this.zData,c=this.yData,d=[],e=this.chart.bubbleZExtremes;var f=this.getPxExtremes();var k=f.minPxSize,l=f.maxPxSize;if(!e){var m=Number.MAX_VALUE,n=-Number.MAX_VALUE,t;this.chart.series.forEach(function(b){b.bubblePadding&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&
(b=b.getZExtremes())&&(m=Math.min(m||b.zMin,b.zMin),n=Math.max(n||b.zMax,b.zMax),t=!0)});t?(e={zMin:m,zMax:n},this.chart.bubbleZExtremes=e):e={zMin:0,zMax:0}}var q=0;for(f=b.length;q<f;q++){var r=b[q];d.push(this.getRadius(e.zMin,e.zMax,k,l,r,c[q]))}this.radii=d};m.prototype.getRadius=function(a,b,c,d,e,f){var g=this.options,h="width"!==g.sizeBy,k=g.zThreshold,l=b-a,m=.5;if(null===f||null===e)return null;if(z(e)){g.sizeByAbsoluteValue&&(e=Math.abs(e-k),l=Math.max(b-k,Math.abs(a-k)),a=0);if(e<a)return c/
2-1;0<l&&(m=(e-a)/l)}h&&0<=m&&(m=Math.sqrt(m));return Math.ceil(c+m*(d-c))/2};m.prototype.hasData=function(){return!!this.processedXData.length};m.prototype.pointAttribs=function(a,b){var c=this.options.marker.fillOpacity;a=A.prototype.pointAttribs.call(this,a,b);1!==c&&(a.fill=l(a.fill).setOpacity(c).get("rgba"));return a};m.prototype.translate=function(){b.prototype.translate.call(this);this.getRadii();this.translateBubble()};m.prototype.translateBubble=function(){for(var a=this.data,b=this.radii,
c=this.getPxExtremes().minPxSize,d=a.length;d--;){var e=a[d],f=b?b[d]:0;z(f)&&f>=c/2?(e.marker=G(e.marker,{radius:f,width:2*f,height:2*f}),e.dlBox={x:e.plotX-f,y:e.plotY-f,width:2*f,height:2*f}):e.shapeArgs=e.plotY=e.dlBox=void 0}};m.prototype.getPxExtremes=function(){var a=Math.min(this.chart.plotWidth,this.chart.plotHeight),b=function(b){if("string"===typeof b){var c=/%$/.test(b);b=parseInt(b,10)}return c?a*b/100:b},c=b(x(this.options.minSize,8));b=Math.max(b(x(this.options.maxSize,"20%")),c);return{minPxSize:c,
maxPxSize:b}};m.prototype.getZExtremes=function(){var b=this.options,e=(this.zData||[]).filter(z);if(e.length){var c=x(b.zMin,k(d(e),!1===b.displayNegative?b.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));b=x(b.zMax,a(e));if(z(c)&&z(b))return{zMin:c,zMax:b}}};m.compose=f.compose;m.defaultOptions=C(e.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.z;return z(b)?a(b,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,
lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return m}(e);G(y.prototype,{alignDataLabel:r.prototype.alignDataLabel,applyZones:B,bubblePadding:!0,buildKDTree:B,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:v,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],
specialGroup:"group",zoneAxis:"z"});n(y,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});b.prototype.beforePadding=function(){var a=this,b=this.len,d=this.chart,e=0,c=b,f=this.isXAxis,g=f?"xData":"yData",k=this.min,l=this.max-k,n=b/l,q;this.series.forEach(function(b){if(b.bubblePadding&&(b.visible||!d.options.chart.ignoreHiddenSeries)){q=a.allowZoomOutside=!0;var h=b[g];f&&b.getRadii(0,0,b);if(0<l)for(var m=h.length;m--;)if(z(h[m])&&a.dataMin<=h[m]&&h[m]<=a.max){var p=b.radii&&b.radii[m]||
0;e=Math.min((h[m]-k)*n-p,e);c=Math.max((h[m]-k)*n+p,c)}}});q&&0<l&&!this.logarithmic&&(c-=b,n*=(b+Math.max(0,e)-Math.min(c,b))/b,[["min","userMin",e],["max","userMax",c]].forEach(function(b){"undefined"===typeof x(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/n)}))};E.registerSeriesType("bubble",y);"";"";return y});I(f,"Series/MapBubble/MapBubblePoint.js",[f["Series/Map/MapPoint.js"],f["Core/Series/SeriesRegistry.js"]],function(b,f){var v=this&&this.__extends||function(){var b=function(f,r){b=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var l in f)f.hasOwnProperty(l)&&(b[l]=f[l])};return b(f,r)};return function(f,r){function v(){this.constructor=f}b(f,r);f.prototype=null===r?Object.create(r):(v.prototype=r.prototype,new v)}}();f=f.seriesTypes;var B=f.map;return function(f){function r(){var r=null!==f&&f.apply(this,arguments)||this;r.applyOptions=B.prototype.pointClass.prototype.applyOptions;r.getProjectedBounds=b.prototype.getProjectedBounds;return r}
v(r,f);r.prototype.isValid=function(){return"number"===typeof this.z};return r}(f.bubble.prototype.pointClass)});I(f,"Series/MapBubble/MapBubbleSeries.js",[f["Series/Bubble/BubbleSeries.js"],f["Series/MapBubble/MapBubblePoint.js"],f["Series/Map/MapSeries.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A){var E=this&&this.__extends||function(){var b=function(f,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(f,e)};return function(f,e){function a(){this.constructor=f}b(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),y=B.seriesTypes.mappoint;r=A.extend;var q=A.merge;A=function(f){function l(){var b=null!==f&&f.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}E(l,f);l.prototype.searchPoint=function(b,a){return this.searchKDTree({clientX:b.chartX-this.chart.plotLeft,
plotY:b.chartY-this.chart.plotTop},a,b)};l.prototype.translate=function(){y.prototype.translate.call(this);this.getRadii();this.translateBubble()};l.compose=b.compose;l.defaultOptions=q(b.defaultOptions,{animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}});return l}(b);r(A.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:v.prototype.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:f,processData:v.prototype.processData,projectPoint:y.prototype.projectPoint,
setData:v.prototype.setData,setOptions:v.prototype.setOptions,useMapGeometry:!0,xyFromShape:!0});B.registerSeriesType("mapbubble",A);"";return A});I(f,"Series/Heatmap/HeatmapPoint.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f){var v=this&&this.__extends||function(){var b=function(f,l){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var a in e)e.hasOwnProperty(a)&&(b[a]=e[a])};return b(f,l)};return function(f,l){function n(){this.constructor=
f}b(f,l);f.prototype=null===l?Object.create(l):(n.prototype=l.prototype,new n)}}(),B=f.clamp,r=f.defined,A=f.extend,E=f.pick;b=function(b){function f(){var f=null!==b&&b.apply(this,arguments)||this;f.options=void 0;f.series=void 0;f.value=void 0;f.x=void 0;f.y=void 0;return f}v(f,b);f.prototype.applyOptions=function(f,n){f=b.prototype.applyOptions.call(this,f,n);f.formatPrefix=f.isNull||null===f.value?"null":"point";return f};f.prototype.getCellAttributes=function(){var b=this.series,f=b.options,
e=(f.colsize||1)/2,a=(f.rowsize||1)/2,d=b.xAxis,k=b.yAxis,q=this.options.marker||b.options.marker;b=b.pointPlacementToXValue();var v=E(this.pointPadding,f.pointPadding,0),y={x1:B(Math.round(d.len-(d.translate(this.x-e,!1,!0,!1,!0,-b)||0)),-d.len,2*d.len),x2:B(Math.round(d.len-(d.translate(this.x+e,!1,!0,!1,!0,-b)||0)),-d.len,2*d.len),y1:B(Math.round(k.translate(this.y-a,!1,!0,!1,!0)||0),-k.len,2*k.len),y2:B(Math.round(k.translate(this.y+a,!1,!0,!1,!0)||0),-k.len,2*k.len)};[["width","x"],["height",
"y"]].forEach(function(a){var b=a[0];a=a[1];var d=a+"1",e=a+"2",f=Math.abs(y[d]-y[e]),c=q&&q.lineWidth||0,k=Math.abs(y[d]+y[e])/2;b=q&&q[b];r(b)&&b<f&&(b=b/2+c/2,y[d]=k-b,y[e]=k+b);v&&("y"===a&&(d=e,e=a+"1"),y[d]+=v,y[e]-=v)});return y};f.prototype.haloPath=function(b){if(!b)return[];var f=this.shapeArgs;return["M",f.x-b,f.y-b,"L",f.x-b,f.y+f.height+b,f.x+f.width+b,f.y+f.height+b,f.x+f.width+b,f.y-b,"Z"]};f.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return f}(b.seriesTypes.scatter.prototype.pointClass);
A(b.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});return b});I(f,"Series/Heatmap/HeatmapSeries.js",[f["Core/Color/Color.js"],f["Series/ColorMapMixin.js"],f["Series/Heatmap/HeatmapPoint.js"],f["Core/Legend/LegendSymbol.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Renderer/SVG/SVGRenderer.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E){var y=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),q=r.series,l=r.seriesTypes,n=l.column,e=l.scatter,a=A.prototype.symbols,d=E.extend,k=E.fireEvent,G=E.isNumber,z=E.merge,C=E.pick;A=function(f){function l(){var a=null!==f&&f.apply(this,arguments)||this;a.colorAxis=void 0;a.data=void 0;a.options=void 0;a.points=void 0;a.valueMax=NaN;a.valueMin=
NaN;return a}y(l,f);l.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)q.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&(b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),null===b.value&&b.graphic.addClass("highcharts-null-point"))})};l.prototype.getExtremes=function(){var a=q.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;G(b)&&(this.valueMin=b);G(a)&&(this.valueMax=a);return q.prototype.getExtremes.call(this)};
l.prototype.getValidPoints=function(a,b){return q.prototype.getValidPoints.call(this,a,b,!0)};l.prototype.hasData=function(){return!!this.processedXData.length};l.prototype.init=function(){q.prototype.init.apply(this,arguments);var b=this.options;b.pointRange=C(b.pointRange,b.colsize||1);this.yAxis.axisPointRange=b.rowsize||1;a.ellipse=a.circle;b.marker&&(b.marker.r=b.borderRadius)};l.prototype.markerAttribs=function(a,b){var d=a.marker||{},c=this.options.marker||{},e=a.shapeArgs||{},f={};if(a.hasImage)return{x:a.plotX,
y:a.plotY};if(b){var h=c.states[b]||{};var k=d.states&&d.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){f[a[0]]=(k[a[0]]||h[a[0]]||e[a[0]])+(k[a[0]+"Plus"]||h[a[0]+"Plus"]||0);f[a[1]]=e[a[1]]+(e[a[0]]-f[a[0]])/2})}return b?f:e};l.prototype.pointAttribs=function(a,d){var e=q.prototype.pointAttribs.call(this,a,d),c=this.options||{},f=this.chart.options.plotOptions||{},g=f.series||{},h=f.heatmap||{};f=a&&a.options.borderColor||c.borderColor||h.borderColor||g.borderColor;g=a&&a.options.borderWidth||
c.borderWidth||h.borderWidth||g.borderWidth||e["stroke-width"];e.stroke=a&&a.marker&&a.marker.lineColor||c.marker&&c.marker.lineColor||f||this.color;e["stroke-width"]=g;d&&(a=z(c.states[d],c.marker&&c.marker.states[d],a&&a.options.states&&a.options.states[d]||{}),d=a.brightness,e.fill=a.color||b.parse(e.fill).brighten(d||0).get(),e.stroke=a.lineColor);return e};l.prototype.setClip=function(a){var b=this.chart;q.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||
this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};l.prototype.translate=function(){var b=this.options,e=b.marker&&b.marker.symbol||"rect",f=a[e]?e:"rect",c=-1!==["circle","square"].indexOf(f);this.generatePoints();this.points.forEach(function(h){var g=h.getCellAttributes(),k={};k.x=Math.min(g.x1,g.x2);k.y=Math.min(g.y1,g.y2);k.width=Math.max(Math.abs(g.x2-g.x1),0);k.height=Math.max(Math.abs(g.y2-g.y1),0);var l=h.hasImage=0===(h.marker&&h.marker.symbol||e||"").indexOf("url");
if(c){var m=Math.abs(k.width-k.height);k.x=Math.min(g.x1,g.x2)+(k.width<k.height?0:m/2);k.y=Math.min(g.y1,g.y2)+(k.width<k.height?m/2:0);k.width=k.height=Math.min(k.width,k.height)}m={plotX:(g.x1+g.x2)/2,plotY:(g.y1+g.y2)/2,clientX:(g.x1+g.x2)/2,shapeType:"path",shapeArgs:z(!0,k,{d:a[f](k.x,k.y,k.width,k.height,{r:b.borderRadius})})};l&&(h.marker={width:k.width,height:k.height});d(h,m)});k(this,"afterTranslate")};l.defaultOptions=z(e.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",
dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return G(b)?a(b,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}});return l}(e);d(A.prototype,{alignDataLabel:n.prototype.alignDataLabel,axisTypes:f.SeriesMixin.axisTypes,
colorAttribs:f.SeriesMixin.colorAttribs,colorKey:f.SeriesMixin.colorKey,directTouch:!0,drawLegendSymbol:B.drawRectangle,getExtremesFromAll:!0,getSymbol:q.prototype.getSymbol,parallelArrays:f.SeriesMixin.parallelArrays,pointArrayMap:["y","value"],pointClass:v,trackerGroups:f.SeriesMixin.trackerGroups});r.registerSeriesType("heatmap",A);"";"";return A});I(f,"masters/modules/map.src.js",[f["Core/Globals.js"],f["Core/Axis/Color/ColorAxis.js"],f["Series/MapBubble/MapBubbleSeries.js"],f["Core/Chart/MapChart.js"],
f["Maps/MapView.js"],f["Maps/Projection.js"]],function(b,f,v,B,r,A){b.ColorAxis=f;b.MapChart=B;b.mapChart=b.Map=B.mapChart;b.MapView=r;b.maps=B.maps;b.Projection=A;f.compose(b.Chart,b.Fx,b.Legend,b.Series);v.compose(b.Chart,b.Legend,b.Series)});I(f,"masters/highmaps.src.js",[f["masters/highcharts.src.js"]],function(b){b.product="Highmaps";return b});f["masters/highmaps.src.js"]._modules=f;return f["masters/highmaps.src.js"]});
//# sourceMappingURL=highmaps.js.map