/* Highmaps JS v9.1.1 (2021-06-03) (c) 2011-2021 Torstein Honsi License: www.highcharts.com/license */ 'use strict';(function(X,J){"object"===typeof module&&module.exports?(J["default"]=J,module.exports=X.document?J(X):J):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return J(X)}):(X.Highcharts&&X.Highcharts.error(16,!0),X.Highcharts=J(X))})("undefined"!==typeof window?window:this,function(X){function J(u,a,C,D){u.hasOwnProperty(a)||(u[a]=D.apply(null,C))}var a={};J(a,"Core/Globals.js",[],function(){var u="undefined"!==typeof X?X:"undefined"!==typeof window?window: {},a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="9.1.1";a.win=u;a.doc=a.win.document;a.svg=a.doc&&a.doc.createElementNS&&!!a.doc.createElementNS(a.SVG_NS,"svg").createSVGRect;a.userAgent=a.win.navigator&&a.win.navigator.userAgent||"";a.isChrome=-1!==a.userAgent.indexOf("Chrome");a.isFirefox=-1!==a.userAgent.indexOf("Firefox");a.isMS=/(edge|msie|trident)/i.test(a.userAgent)&&!a.win.opera;a.isSafari=!a.isChrome&&-1!==a.userAgent.indexOf("Safari");a.isTouchDevice= /(Mobile|Android|Windows Phone)/.test(a.userAgent);a.isWebKit=-1!==a.userAgent.indexOf("AppleWebKit");a.deg2rad=2*Math.PI/360;a.hasBidiBug=a.isFirefox&&4>parseInt(a.userAgent.split("Firefox/")[1],10);a.hasTouch=!!a.win.TouchEvent;a.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];a.noop=function(){};a.supportsPassiveEvents=function(){var u=!1;if(!a.isMS){var n=Object.defineProperty({},"passive",{get:function(){u=!0}});a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive", a.noop,n),a.win.removeEventListener("testPassive",a.noop,n))}return u}();a.charts=[];a.dateFormats={};a.seriesTypes={};a.symbolSizes={}})(a||(a={}));return a});J(a,"Core/Utilities.js",[a["Core/Globals.js"]],function(a){function u(c,e,g,l){var G=e?"Highcharts error":"Highcharts warning";32===c&&(c=G+": Deprecated member");var b=d(c),v=b?G+" #"+c+": www.highcharts.com/errors/"+c+"/":c.toString();if("undefined"!==typeof l){var q="";b&&(v+="?");E(l,function(c,e){q+="\n - "+e+": "+c;b&&(v+=encodeURI(e)+ "="+encodeURI(c))});v+=q}r(a,"displayError",{chart:g,code:c,message:v,params:l},function(){if(e)throw Error(v);m.console&&-1===u.messages.indexOf(v)&&console.warn(v)});u.messages.push(v)}function C(c,e){var g={};E(c,function(l,m){if(y(c[m],!0)&&!c.nodeType&&e[m])l=C(c[m],e[m]),Object.keys(l).length&&(g[m]=l);else if(y(c[m])||c[m]!==e[m])g[m]=c[m]});return g}function D(c,e){return parseInt(c,e||10)}function z(c){return"string"===typeof c}function A(c){c=Object.prototype.toString.call(c);return"[object Array]"=== c||"[object Array Iterator]"===c}function y(c,e){return!!c&&"object"===typeof c&&(!e||!A(c))}function p(c){return y(c)&&"number"===typeof c.nodeType}function h(c){var e=c&&c.constructor;return!(!y(c,!0)||p(c)||!e||!e.name||"Object"===e.name)}function d(c){return"number"===typeof c&&!isNaN(c)&&Infinity>c&&-Infinity=e-1&&(e=Math.floor(g)),Math.max(0,e-(l(c,"padding-left",!0)||0)-(l(c,"padding-right",!0)||0));if("height"===e)return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(l(c,"padding-top",!0)||0)-(l(c,"padding-bottom",!0)||0));m.getComputedStyle||u(27,!0);if(c=m.getComputedStyle(c,void 0)){var b= c.getPropertyValue(e);B(g,"opacity"!==e)&&(b=D(b))}return b}function E(c,e,g){for(var l in c)Object.hasOwnProperty.call(c,l)&&e.call(g||c[l],c[l],l,c)}function x(c,e,g){function l(e,g){var l=c.removeEventListener||a.removeEventListenerPolyfill;l&&l.call(c,e,g,!1)}function m(g){var I;if(c.nodeName){if(e){var m={};m[e]=!0}else m=g;E(m,function(c,e){if(g[e])for(I=g[e].length;I--;)l(e,g[e][I].fn)})}}var b="function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(b,"hcEvents")){var v=b.hcEvents; e?(b=v[e]||[],g?(v[e]=b.filter(function(c){return g!==c.fn}),l(e,g)):(m(v),v[e]=[])):(m(v),delete b.hcEvents)}}function r(c,g,l,m){l=l||{};if(e.createEvent&&(c.dispatchEvent||c.fireEvent&&c!==a)){var b=e.createEvent("Events");b.initEvent(g,!0,!0);l=k(b,l);c.dispatchEvent?c.dispatchEvent(l):c.fireEvent(g,l)}else if(c.hcEvents){l.target||k(l,{preventDefault:function(){l.defaultPrevented=!0},target:c,type:g});b=[];for(var v=c,q=!1;v.hcEvents;)Object.hasOwnProperty.call(v,"hcEvents")&&v.hcEvents[g]&& (b.length&&(q=!0),b.unshift.apply(b,v.hcEvents[g])),v=Object.getPrototypeOf(v);q&&b.sort(function(c,e){return c.order-e.order});b.forEach(function(e){!1===e.fn.call(c,l)&&l.preventDefault()})}m&&!l.defaultPrevented&&m.call(c,l)}var q=a.charts,e=a.doc,m=a.win;"";(u||(u={})).messages=[];var c;Math.easeInOutSine=function(c){return-.5*(Math.cos(Math.PI*c)-1)};var g=Array.prototype.find?function(c,e){return c.find(e)}:function(c,e){var g,l=c.length;for(g=0;gg&&(g=c[e]);return g},arrayMin:function(c){for(var e=c.length,g=c[0];e--;)c[e]e?c=g&&(e=[1/g])));for(l=0;l=c||!m&&v<=(e[l]+ (e[l+1]||e[l]))/2);l++);return b=K(b*g,-Math.round(Math.log(.001)/Math.LN10))},objectEach:E,offset:function(c){var g=e.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:c.top+(m.pageYOffset||g.scrollTop)-(g.clientTop||0),left:c.left+(m.pageXOffset||g.scrollLeft)-(g.clientLeft||0),width:c.width,height:c.height}},pad:function(c,e,g){return Array((e||2)+1-String(c).replace("-","").length).join(g||"0")+c},pick:B,pInt:D,relativeLength:function(c, e,g){return/%$/.test(c)?e*parseFloat(c)/100+(g||0):parseFloat(c)},removeEvent:x,splat:function(c){return A(c)?c:[c]},stableSort:function(c,e){var g=c.length,l,m;for(m=0;m>16,(a&65280)>>8,a&255,1]:4===d&&(p=[(a&3840)>>4|(a&3840)>>8,(a&240)>>4|a&240,(a&15)<<4|a&15,1])}if(!p)for(h=this.parsers.length;h--&&!p;){var f=this.parsers[h];(d=f.regex.exec(a))&&(p=f.parse(d))}}this.rgba=p||[]};n.prototype.get=function(a){var p=this.input,h=this.rgba;if("undefined"!==typeof this.stops){var d=D(p);d.stops=[].concat(d.stops);this.stops.forEach(function(f,b){d.stops[b]=[d.stops[b][0],f.get(a)]})}else d= h&&u(h[0])?"rgb"===a||!a&&1===h[3]?"rgb("+h[0]+","+h[1]+","+h[2]+")":"a"===a?h[3]:"rgba("+h.join(",")+")":p;return d};n.prototype.brighten=function(a){var p,h=this.rgba;if(this.stops)this.stops.forEach(function(d){d.brighten(a)});else if(u(a)&&0!==a)for(p=0;3>p;p++)h[p]+=z(255*a),0>h[p]&&(h[p]=0),255q?"AM":"PM",P:12>q?"am":"pm",S:d(r.getSeconds()),L:d(Math.floor(k%1E3),3)},a.dateFormats);h(r, function(c,e){for(;-1!==b.indexOf("%"+e);)b=b.replace("%"+e,"function"===typeof c?c.call(w,k):c)});return B?b.substr(0,1).toUpperCase()+b.substr(1):b};H.prototype.resolveDTLFormat=function(f){return y(f,!0)?f:(f=b(f),{main:f[0],from:f[1],to:f[2]})};H.prototype.getTimeTicks=function(b,d,h,x){var r=this,q=[],e={},m=new r.Date(d),c=b.unitRange,g=b.count||1,l;x=f(x,1);if(D(d)){r.set("Milliseconds",m,c>=k.second?0:g*Math.floor(r.get("Milliseconds",m)/g));c>=k.second&&r.set("Seconds",m,c>=k.minute?0:g* Math.floor(r.get("Seconds",m)/g));c>=k.minute&&r.set("Minutes",m,c>=k.hour?0:g*Math.floor(r.get("Minutes",m)/g));c>=k.hour&&r.set("Hours",m,c>=k.day?0:g*Math.floor(r.get("Hours",m)/g));c>=k.day&&r.set("Date",m,c>=k.month?1:Math.max(1,g*Math.floor(r.get("Date",m)/g)));if(c>=k.month){r.set("Month",m,c>=k.year?0:g*Math.floor(r.get("Month",m)/g));var v=r.get("FullYear",m)}c>=k.year&&r.set("FullYear",m,v-v%g);c===k.week&&(v=r.get("Day",m),r.set("Date",m,r.get("Date",m)-v+x+(v4*k.month||r.getTimezoneOffset(d)!==r.getTimezoneOffset(h));d=m.getTime();for(m=1;dq.length&&q.forEach(function(c){0===c%18E5&&"000000000"===r.dateFormat("%H%M%S%L", c)&&(e[c]="day")})}q.info=A(b,{higherRanks:e,totalRange:c*g});return q};return H}();"";return n});J(a,"Core/DefaultOptions.js",[a["Core/Globals.js"],a["Core/Chart/ChartDefaults.js"],a["Core/Color/Color.js"],a["Core/Color/Palette.js"],a["Core/Time.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A){var u=a.isTouchDevice,p=a.svg;C=C.parse;var h=A.merge;"";var d={colors:D.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:n,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:D.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:D.neutralColor40,borderRadius:0,navigation:{activeColor:D.highlightColor100,inactiveColor:D.neutralColor20},itemStyle:{color:D.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"}, itemHoverStyle:{color:D.neutralColor100},itemHiddenStyle:{color:D.neutralColor20},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:D.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:p,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L", second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:u?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:C(D.neutralColor3).setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:D.neutralColor80,cursor:"default",fontSize:"12px", whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:D.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};d.chart.styledMode=!1;"";var f=new z(h(d.global,d.time));return{defaultOptions:d,defaultTime:f,getOptions:function(){return d},setOptions:function(b){h(!0,d,b);if(b.time||b.global)a.time?a.time.update(h(d.global,d.time,b.global,b.time)):a.time=f;return d}}});J(a,"Core/Animation/Fx.js", [a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n,C){var u=a.parse,z=n.win,A=C.isNumber,y=C.objectEach;return function(){function a(h,d,f){this.pos=NaN;this.options=d;this.elem=h;this.prop=f}a.prototype.dSetter=function(){var h=this.paths,d=h&&h[0];h=h&&h[1];var f=this.now||0,b=[];if(1!==f&&d&&h)if(d.length===h.length&&1>f)for(var k=0;k=a+this.startTime){this.now=this.end;this.pos=1;this.update();var H=t[this.prop]=!0;y(t,function(b){!0!==b&&(H=!1)});H&&k&&k.call(b);h=!1}else this.pos=f.easing((d-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),h=!0;return h};a.prototype.initPath=function(h,d,f){function b(b,q){for(;b.lengthH[1]){var w=f+ +H[1];0<=w?(H[0]=(+H[0]).toExponential(w).split("e")[0],f=w):(H[0]=H[0].split(".")[0]||0,d=20>f?(H[0]* Math.pow(10,H[1])).toFixed(f):0,H[1]=0)}w=(Math.abs(H[1]?H[0]:d)+Math.pow(10,-Math.max(f,t)-1)).toFixed(f);t=String(h(w));var E=3d?"-":"")+(E?t.substr(0,E)+k:"");d=0>+H[1]&&!K?"0":d+t.substr(E).replace(/(\d{3})(?=\d)/g,"$1"+k);f&&(d+=b+w.slice(-f));H[1]&&0!==+d&&(d+="e"+H[1]);return d}var D=a.defaultOptions,z=a.defaultTime,A=n.getNestedProperty,y=n.isNumber,p=n.pick,h=n.pInt;return{dateFormat:function(d,f,b){return z.dateFormat(d, f,b)},format:function(d,f,b){var k="{",a=!1,h=/f$/,p=/\.([0-9])/,K=D.lang,w=b&&b.time||z;b=b&&b.numberFormatter||u;for(var E=[];d;){var x=d.indexOf(k);if(-1===x)break;var r=d.slice(0,x);if(a){r=r.split(":");k=A(r.shift()||"",f);if(r.length&&"number"===typeof k)if(r=r.join(":"),h.test(r)){var q=parseInt((r.match(p)||["","-1"])[1],10);null!==k&&(k=b(k,q,K.decimalPoint,-1h.width)h={width:0, height:0}}else h=this.htmlGetBBox();l.isSVG&&(e=h.width,l=h.height,k&&(h.height=l={"11px,17":14,"13px,20":16}[m&&m.fontSize+","+Math.round(l)]||l),g&&(m=g*d,h.width=Math.abs(l*Math.sin(m))+Math.abs(e*Math.cos(m)),h.height=Math.abs(l*Math.cos(m))+Math.abs(e*Math.sin(m))));if(w&&0]*>/g,"").replace(/</g,"<").replace(/>/g,">")};a.prototype.toFront=function(){var c=this.element;c.parentNode.appendChild(c);return this};a.prototype.translate=function(c,e){return this.attr({translateX:c,translateY:e})};a.prototype.updateShadows=function(c,e,g){var l=this.shadows;if(l)for(var b=l.length;b--;)g.call(l[b],"height"===c?Math.max(e-(l[b].cutHeight||0),0):"d"===c?this.d:e,c,l[b])};a.prototype.updateTransform= function(){var c=this.scaleX,e=this.scaleY,g=this.inverted,l=this.rotation,b=this.matrix,m=this.element,v=this.translateX||0,f=this.translateY||0;g&&(v+=this.width,f+=this.height);v=["translate("+v+","+f+")"];x(b)&&v.push("matrix("+b.join(",")+")");g?v.push("rotate(90) scale(-1,1)"):l&&v.push("rotate("+l+" "+L(this.rotationOriginX,m.getAttribute("x"),0)+" "+L(this.rotationOriginY,m.getAttribute("y")||0)+")");(x(c)||x(e))&&v.push("scale("+L(c,1)+" "+L(e,1)+")");v.length&&m.setAttribute("transform", v.join(" "))};a.prototype.visibilitySetter=function(c,e,g){"inherit"===c?g.removeAttribute(e):this[e]!==c&&g.setAttribute(e,c);this[e]=c};a.prototype.xGetter=function(c){"circle"===this.element.nodeName&&("x"===c?c="cx":"y"===c&&(c="cy"));return this._defaultGetter(c)};a.prototype.zIndexSetter=function(c,e){var g=this.renderer,l=this.parentGroup,b=(l||g).element||g.box,m=this.element;g=b===g.box;var v=!1;var f=this.added;var q;x(c)?(m.setAttribute("data-z-index",c),c=+c,this[e]===c&&(f=!1)):x(this[e])&& m.removeAttribute("data-z-index");this[e]=c;if(f){(c=this.zIndex)&&l&&(l.handleZ=!0);e=b.childNodes;for(q=e.length-1;0<=q&&!v;q--){l=e[q];f=l.getAttribute("data-z-index");var d=!x(f);if(l!==m)if(0>c&&d&&!g&&!q)b.insertBefore(m,e[q]),v=!0;else if(F(f)<=c||d&&(!x(c)||0<=c))b.insertBefore(m,e[q+1]||null),v=!0}v||(b.insertBefore(m,e[g?3:0]||null),v=!0)}return v};return a}();a.prototype["stroke-widthSetter"]=a.prototype.strokeSetter;a.prototype.yGetter=a.prototype.xGetter;a.prototype.matrixSetter=a.prototype.rotationOriginXSetter= a.prototype.rotationOriginYSetter=a.prototype.rotationSetter=a.prototype.scaleXSetter=a.prototype.scaleYSetter=a.prototype.translateXSetter=a.prototype.translateYSetter=a.prototype.verticalAlignSetter=function(c,e){this[e]=c;this.doTransform=!0};"";return a});J(a,"Core/Renderer/RendererRegistry.js",[a["Core/Globals.js"]],function(a){var u;(function(u){var n;u.rendererTypes={};u.getRendererType=function(a){void 0===a&&(a=n);return u.rendererTypes[a]||u.rendererTypes[n]};u.registerRendererType=function(z, A,y){u.rendererTypes[z]=A;if(!n||y)n=z,a.Renderer=A}})(u||(u={}));return u});J(a,"Core/Renderer/SVG/SVGLabel.js",[a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,n){var u=this&&this.__extends||function(){var d=function(f,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var d in f)f.hasOwnProperty(d)&&(b[d]=f[d])};return d(f,b)};return function(f,b){function a(){this.constructor=f}d(f,b);f.prototype=null===b?Object.create(b): (a.prototype=b.prototype,new a)}}(),D=n.defined,z=n.extend,A=n.isNumber,y=n.merge,p=n.pick,h=n.removeEvent;return function(d){function f(b,a,h,t,p,K,w,E,x,r){var q=d.call(this)||this;q.paddingLeftSetter=q.paddingSetter;q.paddingRightSetter=q.paddingSetter;q.init(b,"g");q.textStr=a;q.x=h;q.y=t;q.anchorX=K;q.anchorY=w;q.baseline=x;q.className=r;q.addClass("button"===r?"highcharts-no-tooltip":"highcharts-label");r&&q.addClass("highcharts-"+r);q.text=b.text("",0,0,E).attr({zIndex:1});var e;"string"=== typeof p&&((e=/^url\((.*?)\)$/.test(p))||q.renderer.symbols[p])&&(q.symbolKey=p);q.bBox=f.emptyBBox;q.padding=3;q.baselineOffset=0;q.needsBox=b.styledMode||e;q.deferredAttr={};q.alignFactor=0;return q}u(f,d);f.prototype.alignSetter=function(b){b={left:0,center:.5,right:1}[b];b!==this.alignFactor&&(this.alignFactor=b,this.bBox&&A(this.xSetting)&&this.attr({x:this.xSetting}))};f.prototype.anchorXSetter=function(b,f){this.anchorX=b;this.boxAttr(f,Math.round(b)-this.getCrispAdjust()-this.xSetting)};f.prototype.anchorYSetter= function(b,f){this.anchorY=b;this.boxAttr(f,b-this.ySetting)};f.prototype.boxAttr=function(b,f){this.box?this.box.attr(b,f):this.deferredAttr[b]=f};f.prototype.css=function(b){if(b){var d={};b=y(b);f.textProps.forEach(function(f){"undefined"!==typeof b[f]&&(d[f]=b[f],delete b[f])});this.text.css(d);var h="width"in d;"fontSize"in d||"fontWeight"in d?this.updateTextPadding():h&&this.updateBoxSize()}return a.prototype.css.call(this,b)};f.prototype.destroy=function(){h(this.element,"mouseenter");h(this.element, "mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());a.prototype.destroy.call(this)};f.prototype.fillSetter=function(b,f){b&&(this.needsBox=!0);this.fill=b;this.boxAttr(f,b)};f.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var b=this.padding,f=p(this.paddingLeft,b);return{width:this.width,height:this.height,x:this.bBox.x-f,y:this.bBox.y-b}};f.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};f.prototype.heightSetter=function(b){this.heightSetting=b};f.prototype.on=function(b,f){var d=this,k=d.text,h=k&&"SPAN"===k.element.tagName?k:void 0;if(h){var p=function(a){("mouseenter"===b||"mouseleave"===b)&&a.relatedTarget instanceof Element&&(d.element.compareDocumentPosition(a.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY||h.element.compareDocumentPosition(a.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)|| f.call(d.element,a)};h.on(b,p)}a.prototype.on.call(d,b,p||f);return d};f.prototype.onAdd=function(){var b=this.textStr;this.text.add(this);this.attr({text:D(b)?b:"",x:this.x,y:this.y});this.box&&D(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};f.prototype.paddingSetter=function(b,f){A(b)?b!==this[f]&&(this[f]=b,this.updateTextPadding()):this[f]=void 0};f.prototype.rSetter=function(b,f){this.boxAttr(f,b)};f.prototype.shadow=function(b){b&&!this.renderer.styledMode&&(this.updateBoxSize(), this.box&&this.box.shadow(b));return this};f.prototype.strokeSetter=function(b,f){this.stroke=b;this.boxAttr(f,b)};f.prototype["stroke-widthSetter"]=function(b,f){b&&(this.needsBox=!0);this["stroke-width"]=b;this.boxAttr(f,b)};f.prototype["text-alignSetter"]=function(b){this.textAlign=b};f.prototype.textSetter=function(b){"undefined"!==typeof b&&this.text.attr({text:b});this.updateTextPadding()};f.prototype.updateBoxSize=function(){var b=this.text.element.style,d={},a=this.padding,h=this.bBox=A(this.widthSetting)&& A(this.heightSetting)&&!this.textAlign||!D(this.text.textStr)?f.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||h.height||0)+2*a;b=this.renderer.fontMetrics(b&&b.fontSize,this.text);this.baselineOffset=a+Math.min((this.text.firstLineMetrics||b).b,h.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-b.h)/2);this.needsBox&&(this.box||(a=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),a.addClass(("button"=== this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)),a=this.getCrispAdjust(),d.x=a,d.y=(this.baseline?-this.baselineOffset:0)+a,d.width=Math.round(this.width),d.height=Math.round(this.height),this.box.attr(z(d,this.deferredAttr)),this.deferredAttr={})};f.prototype.updateTextPadding=function(){var b=this.text;this.updateBoxSize();var f=this.baseline?0:this.baselineOffset,d=p(this.paddingLeft,this.padding);D(this.widthSetting)&&this.bBox&& ("center"===this.textAlign||"right"===this.textAlign)&&(d+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(d!==b.x||f!==b.y)b.attr("x",d),b.hasBoxWidthChanged&&(this.bBox=b.getBBox(!0)),"undefined"!==typeof f&&b.attr("y",f);b.x=d;b.y=f};f.prototype.widthSetter=function(b){this.widthSetting=A(b)?b:void 0};f.prototype.getPaddedWidth=function(){var b=this.padding,f=p(this.paddingLeft,b);b=p(this.paddingRight,b);return(this.widthSetting||this.bBox.width||0)+f+b};f.prototype.xSetter= function(b){this.x=b;this.alignFactor&&(b-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(b);this.attr("translateX",this.xSetting)};f.prototype.ySetter=function(b){this.ySetting=this.y=Math.round(b);this.attr("translateY",this.ySetting)};f.emptyBBox={width:0,height:0,x:0,y:0};f.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return f}(a)});J(a,"Core/Renderer/SVG/Symbols.js", [a["Core/Utilities.js"]],function(a){function u(a,h,d,f,b){var k=[];if(b){var p=b.start||0,t=y(b.r,d);d=y(b.r,f||d);var H=(b.end||0)-.001;f=b.innerR;var K=y(b.open,.001>Math.abs((b.end||0)-p-2*Math.PI)),w=Math.cos(p),E=Math.sin(p),x=Math.cos(H),r=Math.sin(H);p=y(b.longArc,.001>H-p-Math.PI?0:1);k.push(["M",a+t*w,h+d*E],["A",t,d,0,p,y(b.clockwise,1),a+t*x,h+d*r]);z(f)&&k.push(K?["M",a+f*x,h+f*r]:["L",a+f*x,h+f*r],["A",f,f,0,p,z(b.clockwise)?1-b.clockwise:0,a+f*w,h+f*E]);K||k.push(["Z"])}return k}function C(a, h,d,f,b){return b&&b.r?D(a,h,d,f,b):[["M",a,h],["L",a+d,h],["L",a+d,h+f],["L",a,h+f],["Z"]]}function D(a,h,d,f,b){b=b&&b.r||0;return[["M",a+b,h],["L",a+d-b,h],["C",a+d,h,a+d,h,a+d,h+b],["L",a+d,h+f-b],["C",a+d,h+f,a+d,h+f,a+d-b,h+f],["L",a+b,h+f],["C",a,h+f,a,h+f,a,h+f-b],["L",a,h+b],["C",a,h,a,h,a+b,h]]}var z=a.defined,A=a.isNumber,y=a.pick;return{arc:u,callout:function(a,h,d,f,b){var k=Math.min(b&&b.r||0,d,f),B=k+6,t=b&&b.anchorX;b=b&&b.anchorY||0;var H=D(a,h,d,f,{r:k});if(!A(t))return H;a+t>=d? b>h+B&&b=a+t?b>h+B&&bf&&t>a+B&&tb&&t>a+B&&t/g;var E=[B,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(E!==f.textCache){f.textCache=E;for(delete f.actualWidth;K--;)b.removeChild(H[K]);t||this.ellipsis||this.width||-1!==B.indexOf(" ")&&(!this.noWrap||w.test(B))?""!==B&&(d&&d.appendChild(b),B=new a(B),this.modifyTree(B.nodes),B.addToDOM(f.element),this.modifyDOM(),this.ellipsis&&-1!==(b.textContent||"").indexOf("\u2026")&& f.attr("title",this.unescapeEntities(f.textStr||"",["<",">"])),d&&d.removeChild(b)):b.appendChild(u.createTextNode(this.unescapeEntities(B)));y(this.textOutline)&&f.applyTextOutline&&f.applyTextOutline(this.textOutline)}};d.prototype.modifyDOM=function(){var a=this,b=this.svgElement,d=A(b.element,"x");b.firstLineMetrics=void 0;[].forEach.call(b.element.querySelectorAll("tspan.highcharts-br"),function(f,h){f.nextSibling&&f.previousSibling&&(0===h&&1===f.previousSibling.nodeType&&(b.firstLineMetrics= b.renderer.fontMetrics(void 0,f.previousSibling)),A(f,{dy:a.getLineHeight(f.nextSibling),x:d}))});var h=this.width||0;if(h){var t=function(f,k){var w=f.textContent||"",x=w.replace(/([^\^])-/g,"$1- ").split(" "),r=!a.noWrap&&(1t){for(;r<=q;)e=Math.ceil((r+q)/2),d&&(m=H(d,e)),g=c(e,m&&m.length-1),r===q?r=q+1:g>t?q=e-1:r=e;0===q?a.textContent="":b&&q===b.length-1||(a.textContent=m||H(b||d,e))}d&&d.splice(0,e);f.actualWidth=g;f.rotation=E};d.prototype.unescapeEntities=function(a,b){p(this.renderer.escapes,function(d,f){b&&-1!==b.indexOf(d)||(a=a.toString().replace(new RegExp(d,"g"),f))});return a};return d}()}); J(a,"Core/Renderer/SVG/SVGRenderer.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGLabel.js"],a["Core/Renderer/SVG/Symbols.js"],a["Core/Renderer/SVG/TextBuilder.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p,h,d){var f=C.charts,b=C.deg2rad,k=C.doc,B=C.isFirefox,t=C.isMS,H=C.isWebKit,K=C.noop,w=C.SVG_NS,E=C.symbolSizes,x=C.win,r=d.addEvent, q=d.attr,e=d.createElement,m=d.css,c=d.defined,g=d.destroyObjectProperties,l=d.extend,v=d.isArray,G=d.isNumber,L=d.isObject,F=d.isString,N=d.merge,u=d.pick,aa=d.pInt,V=d.uniqueKey,ba;C=function(){function d(c,e,g,l,b,m,a){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(c,e,g,l,b,m,a)}d.prototype.init=function(c,e,g,l,b,a,d){var f= this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),v=f.element;d||f.css(this.getStyle(l));c.appendChild(v);q(c,"dir","ltr");-1===c.innerHTML.indexOf("xmlns")&&q(v,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=v;this.boxWrapper=f;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(k.createTextNode("Created with Highcharts 9.1.1"));this.defs=this.createElement("defs").add();this.allowHTML=a;this.forExport=b;this.styledMode= d;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(e,g,!1);var I;B&&c.getBoundingClientRect&&(e=function(){m(c,{left:0,top:0});I=c.getBoundingClientRect();m(c,{left:Math.ceil(I.left)-I.left+"px",top:Math.ceil(I.top)-I.top+"px"})},e(),this.unSubPixelFix=r(x,"resize",e))};d.prototype.definition=function(c){return(new a([c])).addToDOM(this.defs.element)};d.prototype.getReferenceURL=function(){if((B||H)&&k.getElementsByTagName("base").length){if(!c(ba)){var e=V();e=(new a([{tagName:"svg", attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+e+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(k.body);m(e,{position:"fixed",top:0,left:0,zIndex:9E5});var g=k.elementFromPoint(6,6);ba="hitme"===(g&&g.id);k.body.removeChild(e)}if(ba)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g, "\\$1").replace(/ /g,"%20")}return""};d.prototype.getStyle=function(c){return this.style=l({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};d.prototype.setStyle=function(c){this.boxWrapper.css(this.getStyle(c))};d.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};d.prototype.destroy=function(){var c=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();g(this.gradients||{});this.gradients=null;c&&(this.defs=c.destroy()); this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};d.prototype.createElement=function(c){var e=new this.Element;e.init(this,c);return e};d.prototype.getRadialAttr=function(c,e){return{cx:c[0]-c[2]/2+(e.cx||0)*c[2],cy:c[1]-c[2]/2+(e.cy||0)*c[2],r:(e.r||0)*c[2]}};d.prototype.buildText=function(c){(new h(c)).buildSVG()};d.prototype.getContrast=function(c){c=n.parse(c).rgba;c[0]*=1;c[1]*=1.2;c[2]*=.5;return 459c?c+3:Math.round(1.2*c);return{h:e,b:Math.round(.8*e),f:c}};d.prototype.rotCorr=function(c,e,g){var l=c;e&&g&&(l=Math.max(l*Math.cos(e*b),4));return{x:-c/3*Math.sin(e*b),y:l}};d.prototype.pathToSegments=function(c){for(var e= [],g=[],b={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},l=0;l":">","'":"'",'"':"""},symbols:p,draw:K});z.registerRendererType("svg",C,!0);"";return C});J(a,"Core/Renderer/HTML/HTMLElement.js",[a["Core/Globals.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var b=function(a,d){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(a,d)};return function(a, d){function f(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),z=a.isFirefox,A=a.isMS,y=a.isWebKit,p=a.win,h=C.css,d=C.defined,f=C.extend,b=C.pick,k=C.pInt;return function(a){function t(){return null!==a&&a.apply(this,arguments)||this}u(t,a);t.compose=function(b){b=b.prototype;var a=t.prototype;b.getSpanCorrection=a.getSpanCorrection;b.htmlCss=a.htmlCss;b.htmlGetBBox=a.htmlGetBBox;b.htmlUpdateTransform=a.htmlUpdateTransform;b.setSpanRotation=a.setSpanRotation}; t.prototype.getSpanCorrection=function(b,a,d){this.xCorr=-b*d;this.yCorr=-a};t.prototype.htmlCss=function(a){var d="SPAN"===this.element.tagName&&a&&"width"in a,k=b(d&&a.width,void 0);if(d){delete a.width;this.textWidth=k;var E=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=f(this.styles,a);h(this.element,a);E&&this.htmlUpdateTransform();return this};t.prototype.htmlGetBBox=function(){var b=this.element;return{x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth, height:b.offsetHeight}};t.prototype.htmlUpdateTransform=function(){if(this.added){var b=this.renderer,a=this.element,f=this.translateX||0,E=this.translateY||0,x=this.x||0,r=this.y||0,q=this.textAlign||"left",e={left:0,center:.5,right:1}[q],m=this.styles;m=m&&m.whiteSpace;h(a,{marginLeft:f,marginTop:E});!b.styledMode&&this.shadows&&this.shadows.forEach(function(c){h(c,{marginLeft:f+1,marginTop:E+1})});this.inverted&&[].forEach.call(a.childNodes,function(c){b.invertChild(c,a)});if("SPAN"===a.tagName){var c= this.rotation,g=this.textWidth&&k(this.textWidth),l=[c,q,a.innerHTML,this.textWidth,this.textAlign].join(),v=void 0;(v=g!==this.oldTextWidth)&&!(v=g>this.oldTextWidth)&&((v=this.textPxLength)||(h(a,{width:"",whiteSpace:m||"nowrap"}),v=a.offsetWidth),v=v>g);v&&(/[ \-]/.test(a.textContent||a.innerText)||"ellipsis"===a.style.textOverflow)?(h(a,{width:g+"px",display:"block",whiteSpace:m||"normal"}),this.oldTextWidth=g,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;l!==this.cTT&&(v=b.fontMetrics(a.style.fontSize, a).b,!d(c)||c===(this.oldRotation||0)&&q===this.oldAlign||this.setSpanRotation(c,e,v),this.getSpanCorrection(!d(c)&&this.textPxLength||a.offsetWidth,v,e,c,q));h(a,{left:x+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"});this.cTT=l;this.oldRotation=c;this.oldAlign=q}}else this.alignOnAdd=!0};t.prototype.setSpanRotation=function(b,a,d){var f={},k=A&&!/Edge/.test(p.navigator.userAgent)?"-ms-transform":y?"-webkit-transform":z?"MozTransform":p.opera?"-o-transform":void 0;k&&(f[k]=f.transform="rotate("+ b+"deg)",f[k+(z?"Origin":"-origin")]=f.transformOrigin=100*a+"% "+d+"px",h(this.element,f))};return t}(n)});J(a,"Core/Renderer/HTML/HTMLRenderer.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,n,C,D){var u=this&&this.__extends||function(){var a=function(d,b){a=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 a(d,b)};return function(d,b){function f(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)}}(),A=D.attr,y=D.createElement,p=D.extend,h=D.pick;return function(d){function f(){return null!==d&&d.apply(this,arguments)||this}u(f,d);f.compose=function(b){b.prototype.html=f.prototype.html};f.prototype.html=function(b,d,f){var k=this.createElement("span"),B=k.element,K=k.renderer,w=K.isSVG,E=function(b,a){["opacity","visibility"].forEach(function(d){b[d+ "Setter"]=function(e,m,c){var g=b.div?b.div.style:a;n.prototype[d+"Setter"].call(this,e,m,c);g&&(g[m]=e)}});b.addedSetters=!0};k.textSetter=function(b){b!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a.setElementHTML(this.element,h(b,"")),this.textStr=b,k.doTransform=!0)};w&&E(k,k.element.style);k.xSetter=k.ySetter=k.alignSetter=k.rotationSetter=function(b,a){"align"===a?k.alignValue=k.textAlign=b:k[a]=b;k.doTransform=!0};k.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(), this.doTransform=!1)};k.attr({text:b,x:Math.round(d),y:Math.round(f)}).css({position:"absolute"});K.styledMode||k.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});B.style.whiteSpace="nowrap";k.css=k.htmlCss;w&&(k.add=function(b){var a=K.box.parentNode,d=[];if(this.parentGroup=b){var e=b.div;if(!e){for(;b;)d.push(b),b=b.parentGroup;d.reverse().forEach(function(b){function c(c,e){b[e]=c;"translateX"===e?m.left=c+"px":m.top=c+"px";b.doTransform=!0}var g=A(b.element,"class"),l=b.styles|| {};e=b.div=b.div||y("div",g?{className:g}:void 0,{position:"absolute",left:(b.translateX||0)+"px",top:(b.translateY||0)+"px",display:b.display,opacity:b.opacity,cursor:l.cursor,pointerEvents:l.pointerEvents},e||a);var m=e.style;p(b,{classSetter:function(c){return function(e){this.element.setAttribute("class",e);c.className=e}}(e),on:function(){d[0].div&&k.on.apply({element:d[0].div,onEvents:k.onEvents},arguments);return b},translateXSetter:c,translateYSetter:c});b.addedSetters||E(b)})}}else e=a;e.appendChild(B); k.added=!0;k.alignOnAdd&&k.htmlUpdateTransform();return k});return k};return f}(C)});J(a,"Core/Axis/AxisDefaults.js",[a["Core/Color/Palette.js"]],function(a){var u;(function(u){u.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:a.neutralColor60,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:a.neutralColor60}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:a.neutralColor5,minorGridLineWidth:1,minorTickColor:a.neutralColor40,lineColor:a.highlightColor20,lineWidth:1,gridLineColor:a.neutralColor10,gridLineWidth:void 0,tickColor:a.highlightColor20};u.defaultYAxisOptions={reversedStacks:!0, endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var a=this.axis.chart.numberFormatter;return a(this.total,-1)},style:{color:a.neutralColor100,fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};u.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};u.defaultRightAxisOptions= {labels:{x:15},title:{rotation:90}};u.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};u.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(u||(u={}));return u});J(a,"Core/Foundation.js",[a["Core/Utilities.js"]],function(a){var u=a.addEvent,C=a.isFunction,D=a.objectEach,z=a.removeEvent;return{registerEventOptions:function(a,n){a.eventOptions=a.eventOptions||{};D(n.events,function(p,h){C(p)&&a.eventOptions[h]!==p&&(C(a.eventOptions[h])&& z(a,h,a.eventOptions[h]),a.eventOptions[h]=p,u(a,h,p))})}}});J(a,"Core/Axis/Tick.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n,C){var u=n.deg2rad,z=C.clamp,A=C.correctFloat,y=C.defined,p=C.destroyObjectProperties,h=C.extend,d=C.fireEvent,f=C.isNumber,b=C.merge,k=C.objectEach,B=C.pick;n=function(){function t(b,a,f,k,h){this.isNewLabel=this.isNew=!0;this.axis=b;this.pos=a;this.type=f||"";this.parameters=h||{};this.tickmarkOffset=this.parameters.tickmarkOffset; this.options=this.parameters.options;d(this,"init");f||k||this.addLabel()}t.prototype.addLabel=function(){var b=this,k=b.axis,w=k.options,E=k.chart,x=k.categories,r=k.logarithmic,q=k.names,e=b.pos,m=B(b.options&&b.options.labels,w.labels),c=k.tickPositions,g=e===c[0],l=e===c[c.length-1],v=(!m.step||1===m.step)&&1===k.tickInterval;c=c.info;var G=b.label,L;x=this.parameters.category||(x?B(x[e],q[e],e):e);r&&f(x)&&(x=A(r.lin2log(x)));if(k.dateTime&&c){var F=E.time.resolveDTLFormat(w.dateTimeLabelFormats[!w.grid&& c.higherRanks[e]||c.unitName]);var t=F.main}b.isFirst=g;b.isLast=l;var p={axis:k,chart:E,dateTimeLabelFormat:t,isFirst:g,isLast:l,pos:e,tick:b,tickPositionInfo:c,value:x};d(this,"labelFormat",p);var u=function(c){return m.formatter?m.formatter.call(c,c):m.format?(c.text=k.defaultLabelFormatter.call(c),a.format(m.format,c,E)):k.defaultLabelFormatter.call(c,c)};w=u.call(p,p);var n=F&&F.list;b.shortenLabel=n?function(){for(L=0;Lm&&f-c*gh&&(F=Math.round((k-f)/Math.cos(m*u)));else if(k=f+(1-c)*g,f-c*gh&&(G=h-b.x+G*c,L=-1),G=Math.min(l,G),GG||a.autoRotation&&(e.styles||{}).width)F=G;F&&(this.shortenLabel? this.shortenLabel():(v.width=Math.floor(F)+"px",(d.style||{}).textOverflow||(v.textOverflow="ellipsis"),e.css(v)))};t.prototype.moveLabel=function(b,a){var d=this,f=d.label,h=d.axis,r=h.reversed,q=!1;f&&f.textStr===b?(d.movedLabel=f,q=!0,delete d.label):k(h.ticks,function(e){q||e.isNew||e===d||!e.label||e.label.textStr!==b||(d.movedLabel=e.label,q=!0,e.labelPos=d.movedLabel.xy,delete e.label)});if(!q&&(d.labelPos||f)){var e=d.labelPos||f.xy;f=h.horiz?r?0:h.width+h.left:e.x;h=h.horiz?e.y:r?h.width+ h.left:0;d.movedLabel=d.createLabel({x:f,y:h},b,a);d.movedLabel&&d.movedLabel.attr({opacity:0})}};t.prototype.render=function(b,a,f){var k=this.axis,h=k.horiz,r=this.pos,q=B(this.tickmarkOffset,k.tickmarkOffset);r=this.getPosition(h,r,q,a);q=r.x;var e=r.y;k=h&&q===k.pos+k.len||!h&&e===k.pos?-1:1;h=B(f,this.label&&this.label.newOpacity,1);f=B(f,1);this.isActive=!0;this.renderGridLine(a,f,k);this.renderMark(r,f,k);this.renderLabel(r,a,h,b);this.isNew=!1;d(this,"afterRender")};t.prototype.renderGridLine= function(b,a,d){var f=this.axis,k=f.options,h={},q=this.pos,e=this.type,m=B(this.tickmarkOffset,f.tickmarkOffset),c=f.chart.renderer,g=this.gridLine,l=k.gridLineWidth,v=k.gridLineColor,G=k.gridLineDashStyle;"minor"===this.type&&(l=k.minorGridLineWidth,v=k.minorGridLineColor,G=k.minorGridLineDashStyle);g||(f.chart.styledMode||(h.stroke=v,h["stroke-width"]=l||0,h.dashstyle=G),e||(h.zIndex=1),b&&(a=0),this.gridLine=g=c.path().attr(h).addClass("highcharts-"+(e?e+"-":"")+"grid-line").add(f.gridGroup)); if(g&&(d=f.getPlotLinePath({value:q+m,lineWidth:g.strokeWidth()*d,force:"pass",old:b})))g[b||this.isNew?"attr":"animate"]({d:d,opacity:a})};t.prototype.renderMark=function(b,a,d){var f=this.axis,k=f.options,h=f.chart.renderer,q=this.type,e=f.tickSize(q?q+"Tick":"tick"),m=b.x;b=b.y;var c=B(k["minor"!==q?"tickWidth":"minorTickWidth"],!q&&f.isXAxis?1:0);k=k["minor"!==q?"tickColor":"minorTickColor"];var g=this.mark,l=!g;e&&(f.opposite&&(e[0]=-e[0]),g||(this.mark=g=h.path().addClass("highcharts-"+(q?q+ "-":"")+"tick").add(f.axisGroup),f.chart.styledMode||g.attr({stroke:k,"stroke-width":c})),g[l?"attr":"animate"]({d:this.getMarkPath(m,b,e[0],g.strokeWidth()*d,f.horiz,h),opacity:a}))};t.prototype.renderLabel=function(b,a,d,k){var h=this.axis,r=h.horiz,q=h.options,e=this.label,m=q.labels,c=m.step;h=B(this.tickmarkOffset,h.tickmarkOffset);var g=b.x;b=b.y;var l=!0;e&&f(g)&&(e.xy=b=this.getLabelPosition(g,b,e,r,m,h,k,c),this.isFirst&&!this.isLast&&!q.showFirstLabel||this.isLast&&!this.isFirst&&!q.showLastLabel? l=!1:!r||m.step||m.rotation||a||0===d||this.handleOverflow(b),c&&k%c&&(l=!1),l&&f(b.y)?(b.opacity=d,e[this.isNewLabel?"attr":"animate"](b),this.isNewLabel=!1):(e.attr("y",-9999),this.isNewLabel=!0))};t.prototype.replaceMovedLabel=function(){var b=this.label,a=this.axis,d=a.reversed;if(b&&!this.isNew){var f=a.horiz?d?a.left:a.width+a.left:b.xy.x;d=a.horiz?b.xy.y:d?a.width+a.top:a.top;b.animate({x:f,y:d,opacity:0},void 0,b.destroy);delete this.label}a.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel}; return t}();"";return n});J(a,"Core/Axis/Axis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/AxisDefaults.js"],a["Core/Color/Color.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/DefaultOptions.js"],a["Core/Axis/Tick.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p,h){var d=a.animObject,f=D.registerEventOptions,b=z.deg2rad,k=y.defaultOptions,B=h.arrayMax,t=h.arrayMin,u=h.clamp,K=h.correctFloat,w=h.defined,E=h.destroyObjectProperties,x=h.erase, r=h.error,q=h.extend,e=h.fireEvent,m=h.getMagnitude,c=h.isArray,g=h.isNumber,l=h.isString,v=h.merge,G=h.normalizeTickInterval,L=h.objectEach,F=h.pick,N=h.relativeLength,O=h.removeEvent,aa=h.splat,V=h.syncTimeout;a=function(){function a(c,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly= this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(c, e)}a.prototype.init=function(c,b){var a=b.isX;this.chart=c;this.horiz=c.inverted&&!this.isZAxis?!a:a;this.isXAxis=a;this.coll=this.coll||(a?"xAxis":"yAxis");e(this,"init",{userOptions:b});this.opposite=F(b.opposite,this.opposite);this.side=F(b.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(b);var l=this.options,m=l.labels,d=l.type;this.userOptions=b;this.minPixelPadding=0;this.reversed=F(l.reversed,this.reversed);this.visible=l.visible;this.zoomEnabled=l.zoomEnabled; this.hasNames="category"===d||!0===l.categories;this.categories=l.categories||this.hasNames;this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=w(l.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=l.minRange||l.maxZoom;this.range=l.range;this.offset=l.offset||0;this.min=this.max=null;b=F(l.crosshair,aa(c.options.tooltip.crosshairs)[a? 0:1]);this.crosshair=!0===b?{}:b;-1===c.axes.indexOf(this)&&(a?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&&a&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=g(m.rotation)?m.rotation:void 0;f(this,l);e(this,"afterInit")};a.prototype.setOptions=function(c){this.options=v(n.defaultXAxisOptions,"yAxis"===this.coll&&n.defaultYAxisOptions,[n.defaultTopAxisOptions,n.defaultRightAxisOptions, n.defaultBottomAxisOptions,n.defaultLeftAxisOptions][this.side],v(k[this.coll],c));e(this,"afterSetOptions",{userOptions:c})};a.prototype.defaultLabelFormatter=function(c){var e=this.axis;c=this.chart.numberFormatter;var b=g(this.value)?this.value:NaN,a=e.chart.time,l=this.dateTimeLabelFormat,m=k.lang,d=m.numericSymbols;m=m.numericSymbolMagnitude||1E3;var f=e.logarithmic?Math.abs(b):e.tickInterval,v=d&&d.length;if(e.categories)var q=""+this.value;else if(l)q=a.dateFormat(l,b);else if(v&&1E3<=f)for(;v--&& "undefined"===typeof q;)e=Math.pow(m,v+1),f>=e&&0===10*b%e&&null!==d[v]&&0!==b&&(q=c(b/e,-1)+d[v]);"undefined"===typeof q&&(q=1E4<=Math.abs(b)?c(b,-1):c(b,-1,void 0,""));return q};a.prototype.getSeriesExtremes=function(){var c=this,b=c.chart,a;e(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(e){if(e.visible||!b.options.chart.ignoreHiddenSeries){var l=e.options, m=l.threshold;c.hasVisibleSeries=!0;c.positiveValuesOnly&&0>=m&&(m=null);if(c.isXAxis){if(l=e.xData,l.length){l=c.logarithmic?l.filter(c.validatePositiveValue):l;a=e.getXExtremes(l);var d=a.min;var f=a.max;g(d)||d instanceof Date||(l=l.filter(g),a=e.getXExtremes(l),d=a.min,f=a.max);l.length&&(c.dataMin=Math.min(F(c.dataMin,d),d),c.dataMax=Math.max(F(c.dataMax,f),f))}}else if(e=e.applyExtremes(),g(e.dataMin)&&(d=e.dataMin,c.dataMin=Math.min(F(c.dataMin,d),d)),g(e.dataMax)&&(f=e.dataMax,c.dataMax=Math.max(F(c.dataMax, f),f)),w(m)&&(c.threshold=m),!l.softThreshold||c.positiveValuesOnly)c.softThreshold=!1}})});e(this,"afterGetSeriesExtremes")};a.prototype.translate=function(c,e,b,a,l,d){var m=this.linkedParent||this,f=a&&m.old?m.old.min:m.min,v=m.minPixelPadding;l=(m.isOrdinal||m.brokenAxis&&m.brokenAxis.hasBreaks||m.logarithmic&&l)&&m.lin2val;var q=1,k=0;a=a&&m.old?m.old.transA:m.transA;a||(a=m.transA);b&&(q*=-1,k=m.len);m.reversed&&(q*=-1,k-=q*(m.sector||m.len));e?(c=(c*q+k-v)/a+f,l&&(c=m.lin2val(c))):(l&&(c=m.val2lin(c)), c=g(f)?q*(c-f)*a+k+q*v+(g(d)?a*d:0):void 0);return c};a.prototype.toPixels=function(c,e){return this.translate(c,!1,!this.horiz,null,!0)+(e?0:this.pos)};a.prototype.toValue=function(c,e){return this.translate(c-(e?0:this.pos),!0,!this.horiz,null,!0)};a.prototype.getPlotLinePath=function(c){function b(c,e,g){if("pass"!==G&&cg)G?c=u(c,e,g):t=!0;return c}var a=this,l=a.chart,m=a.left,d=a.top,f=c.old,v=c.value,q=c.lineWidth,k=f&&l.oldChartHeight||l.chartHeight,h=f&&l.oldChartWidth||l.chartWidth, I=a.transB,r=c.translatedValue,G=c.force,L,w,x,B,t;c={value:v,lineWidth:q,old:f,force:G,acrossPanes:c.acrossPanes,translatedValue:r};e(this,"getPlotLinePath",c,function(c){r=F(r,a.translate(v,null,null,f));r=u(r,-1E5,1E5);L=x=Math.round(r+I);w=B=Math.round(k-r-I);g(r)?a.horiz?(w=d,B=k-a.bottom,L=x=b(L,m,m+a.width)):(L=m,x=h-a.right,w=B=b(w,d,d+a.height)):(t=!0,G=!1);c.path=t&&!G?null:l.renderer.crispLine([["M",L,w],["L",x,B]],q||1)});return c.path};a.prototype.getLinearTickPositions=function(c,e, g){var b=K(Math.floor(e/c)*c);g=K(Math.ceil(g/c)*c);var a=[],l;K(b+c)===b&&(l=20);if(this.single)return[e];for(e=b;e<=g;){a.push(e);e=K(e+c,l);if(e===m)break;var m=e}return a};a.prototype.getMinorTickInterval=function(){var c=this.options;return!0===c.minorTicks?F(c.minorTickInterval,"auto"):!1===c.minorTicks?null:c.minorTickInterval};a.prototype.getMinorTickPositions=function(){var c=this.options,e=this.tickPositions,g=this.minorTickInterval,b=this.pointRangePadding||0,a=this.min-b;b=this.max+b; var l=b-a,m=[];if(l&&l/g=this.minRange;var q=this.minRange;var k=(q-g+b)/2;k=[b-k,F(c.min,b-k)];v&&(k[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin); b=B(k);g=[b+q,F(c.max,b+q)];v&&(g[2]=e?e.log2lin(this.dataMax):this.dataMax);g=t(g);g-b=B)E=B,L=0;else if(b.dataMax<=B){var u=B;I=0}b.min=F(t,E,b.dataMin);b.max=F(p,u,b.dataMax)}l&&(b.positiveValuesOnly&&!c&&0>=Math.min(b.min,F(b.dataMin,b.min))&&r(10,1,a),b.min=K(l.log2lin(b.min),16),b.max=K(l.log2lin(b.max),16));b.range&&w(b.max)&&(b.userMin=b.min=t=Math.max(b.dataMin,b.minFromRange()),b.userMax=p=b.max,b.range=null);e(b,"foundExtremes");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(k||b.axisPointRange|| b.stacking&&b.stacking.usePercentage||v)&&w(b.min)&&w(b.max)&&(a=b.max-b.min)&&(!w(t)&&L&&(b.min-=a*L),!w(p)&&I&&(b.max+=a*I));g(b.userMin)||(g(d.softMin)&&d.softMinb.max&&(b.max=p=d.softMax),g(d.ceiling)&&(b.max=Math.min(b.max,d.ceiling)));h&&w(b.dataMin)&&(B=B||0,!w(t)&&b.min=B?b.min=b.options.minRange?Math.min(B,b.max-b.minRange):B:!w(p)&&b.max>B&&b.dataMax<=B&&(b.max=b.options.minRange? Math.max(B,b.min+b.minRange):B));g(b.min)&&g(b.max)&&!this.chart.polar&&b.min>b.max&&(w(b.options.min)?b.max=b.min:w(b.options.max)&&(b.min=b.max));b.tickInterval=b.min===b.max||"undefined"===typeof b.min||"undefined"===typeof b.max?1:v&&b.linkedParent&&!x&&q===b.linkedParent.options.tickPixelInterval?x=b.linkedParent.tickInterval:F(x,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,k?1:(b.max-b.min)*q/Math.max(b.len,q));f&&!c&&b.series.forEach(function(c){c.processData(b.min!== (b.old&&b.old.min)||b.max!==(b.old&&b.old.max))});b.setAxisTranslation();e(this,"initialAxisTranslation");b.pointRange&&!x&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));c=F(d.minTickInterval,b.dateTime&&!b.series.some(function(c){return c.noSharedTooltip})?b.closestPointRange:0);!x&&b.tickIntervalb.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)); this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()};a.prototype.setTickPositions=function(){var c=this.options,b=c.tickPositions,g=this.getMinorTickInterval(),a=this.hasVerticalPanning(),l="colorAxis"===this.coll,m=(l||!a)&&c.startOnTick;a=(l||!a)&&c.endOnTick;l=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&& w(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==c.allowDecimals);this.tickPositions=g=b&&b.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],r(19,!1,this.chart)),g.length>this.len&&(g=[g[0],g.pop()],g[0]===g[1]&&(g.length=1)),this.tickPositions=g,l&&(l=l.apply(this,[this.min,this.max])))&&(this.tickPositions=g=l);this.paddedTicks=g.slice(0);this.trimTicks(g,m,a);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), b||l||this.adjustTickAmount());e(this,"afterSetTickPositions")};a.prototype.trimTicks=function(c,b,g){var a=c[0],l=c[c.length-1],m=!this.isOrdinal&&this.minPointOffset||0;e(this,"trimTicks");if(!this.isLinked){if(b&&-Infinity!==a)this.min=a;else for(;this.min-m>c[0];)c.shift();if(g)this.max=l;else for(;this.max+mb&&(this.finalTickAmt= b,b=5);this.tickAmount=b};a.prototype.adjustTickAmount=function(){var c=this.options,e=this.tickInterval,b=this.tickPositions,a=this.tickAmount,l=this.finalTickAmt,m=b&&b.length,d=F(this.threshold,this.softThreshold?0:null);if(this.hasData()&&g(this.min)&&g(this.max)){if(ma&&(this.tickInterval*=2,this.setTickPositions());if(w(l)){for(e=c=b.length;e--;)(3===l&&1===e%2||2>=l&&0f&&(e=f)),w(l)&&(bf&&(b=f))),g.displayBtn="undefined"!==typeof e||"undefined"!==typeof b,g.setExtremes(e,b,!1,void 0,{trigger:"zoom"}); c.zoomed=!0});return c.zoomed};a.prototype.setAxisSize=function(){var c=this.chart,e=this.options,b=e.offsets||[0,0,0,0],g=this.horiz,a=this.width=Math.round(N(F(e.width,c.plotWidth-b[3]+b[1]),c.plotWidth)),l=this.height=Math.round(N(F(e.height,c.plotHeight-b[0]+b[2]),c.plotHeight)),m=this.top=Math.round(N(F(e.top,c.plotTop+b[0]),c.plotHeight,c.plotTop));e=this.left=Math.round(N(F(e.left,c.plotLeft+b[3]),c.plotWidth,c.plotLeft));this.bottom=c.chartHeight-l-m;this.right=c.chartWidth-a-e;this.len=Math.max(g? a:l,0);this.pos=g?e:m};a.prototype.getExtremes=function(){var c=this.logarithmic;return{min:c?K(c.lin2log(this.min)):this.min,max:c?K(c.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};a.prototype.getThreshold=function(c){var e=this.logarithmic,b=e?e.lin2log(this.min):this.min;e=e?e.lin2log(this.max):this.max;null===c||-Infinity===c?c=b:Infinity===c?c=e:b>c?c=b:eb?c.align="right":195b&&(c.align="left")});return c.align};a.prototype.tickSize=function(c){var b=this.options,g=F(b["tick"===c?"tickWidth":"minorTickWidth"],"tick"===c&&this.isXAxis&&!this.categories?1:0),a=b["tick"===c?"tickLength":"minorTickLength"];if(g&&a){"inside"===b[c+"Position"]&&(a=-a);var l=[a,g]}c={tickSize:l};e(this,"afterTickSize",c);return c.tickSize};a.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)};a.prototype.unsquish=function(){var c=this.options.labels,e=this.horiz,a=this.tickInterval,l=this.len/(((this.categories?1:0)+this.max-this.min)/a),m=c.rotation,d=this.labelMetrics(),f=Math.max(this.max-this.min,0),v=function(c){var e=c/(l||1);e=1f&&Infinity!==c&&Infinity!==l&&f&&(e=Math.ceil(f/a));return K(e* a)},q=a,k,h,r=Number.MAX_VALUE;if(e){if(!c.staggerLines&&!c.step)if(g(m))var G=[m];else l=c){h=v(Math.abs(d.h/Math.sin(b*c)));var e=h+Math.abs(c/360);ea.step)return a.rotation?0:(this.staggerLines||1)*this.len/l;if(!b){c=a.style.width;if(void 0!==c)return parseInt(String(c),10);if(m)return m-e.spacing[3]}return.33*e.chartWidth};a.prototype.renderUnsquish=function(){var c=this.chart,e=c.renderer,b=this.tickPositions,g=this.ticks,a=this.options.labels,m=a.style,d=this.horiz,f=this.getSlotWidth(),v=Math.max(1,Math.round(f-2*a.padding)),q={},k=this.labelMetrics(),h=m.textOverflow,r=0;l(a.rotation)|| (q.rotation=a.rotation||0);b.forEach(function(c){c=g[c];c.movedLabel&&c.replaceMovedLabel();c&&c.label&&c.label.textPxLength>r&&(r=c.label.textPxLength)});this.maxLabelLength=r;if(this.autoRotation)r>v&&r>k.h?q.rotation=this.labelRotation:this.labelRotation=0;else if(f){var G=v;if(!h){var F="clip";for(v=b.length;!d&&v--;){var L=b[v];if(L=g[L].label)L.styles&&"ellipsis"===L.styles.textOverflow?L.css({textOverflow:"clip"}):L.textPxLength>f&&L.css({width:f+"px"}),L.getBBox().height>this.len/b.length- (k.h-k.f)&&(L.specificTextOverflow="ellipsis")}}}q.rotation&&(G=r>.5*c.chartHeight?.33*c.chartHeight:r,h||(F="ellipsis"));if(this.labelAlign=a.align||this.autoLabelAlign(this.labelRotation))q.align=this.labelAlign;b.forEach(function(c){var e=(c=g[c])&&c.label,b=m.width,a={};e&&(e.attr(q),c.shortenLabel?c.shortenLabel():G&&!b&&"nowrap"!==m.whiteSpace&&(G=this.min&&c<=this.max||this.grid&&this.grid.isColumn)b[c]||(b[c]=new p(this,c)),g&&b[c].isNew&&b[c].render(e,!0,-1),b[c].render(e)};a.prototype.render=function(){var c=this,b=c.chart,a=c.logarithmic,l=c.options,m=c.isLinked,f=c.tickPositions,v=c.axisTitle,q=c.ticks,k=c.minorTicks,h=c.alternateBands,r=l.stackLabels,G=l.alternateGridColor, F=c.tickmarkOffset,w=c.axisLine,x=c.showAxis,B=d(b.renderer.globalAnimation),t,E;c.labelEdge.length=0;c.overlap=!1;[q,k,h].forEach(function(c){L(c,function(c){c.isActive=!1})});if(c.hasData()||m)c.minorTickInterval&&!c.categories&&c.getMinorTickPositions().forEach(function(e){c.renderMinorTick(e)}),f.length&&(f.forEach(function(e,b){c.renderTick(e,b)}),F&&(0===c.min||c.single)&&(q[-1]||(q[-1]=new p(c,-1,null,!0)),q[-1].render(-1))),G&&f.forEach(function(e,g){E="undefined"!==typeof f[g+1]?f[g+1]+F: c.max-F;0===g%2&&ed&&(!b||t<=f)&&"undefined"!==typeof t&&p.push(t); t>f&&(E=!0);t=r}}}else d=this.lin2log(d),f=this.lin2log(f),a=b?k.getMinorTickInterval():t.tickInterval,a=A("auto"===a?null:a,this.minorAutoInterval,t.tickPixelInterval/(b?5:1)*(f-d)/((b?h/k.tickPositions.length:h)||1)),a=z(a,void 0,D(a)),p=k.getLinearTickPositions(a,d,f).map(this.log2lin),b||(this.minorAutoInterval=a/5);b||(k.tickInterval=a);return p};a.prototype.lin2log=function(a){return Math.pow(10,a)};a.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return a}();n=function(){function a(){} a.compose=function(a){a.keepProps.push("logarithmic");u(a,"init",function(a){var d=this.logarithmic;"logarithmic"!==a.userOptions.type?this.logarithmic=void 0:d||(this.logarithmic=new y(this))});u(a,"afterInit",function(){var a=this.logarithmic;a&&(this.lin2val=function(d){return a.lin2log(d)},this.val2lin=function(d){return a.log2lin(d)})})};return a}();n.compose(a);return n});J(a,"Core/Axis/PlotLineOrBand.js",[a["Core/Axis/Axis.js"],a["Core/Color/Palette.js"],a["Core/Utilities.js"]],function(a, n,C){var u=C.arrayMax,z=C.arrayMin,A=C.defined,y=C.destroyObjectProperties,p=C.erase,h=C.extend,d=C.fireEvent,f=C.isNumber,b=C.merge,k=C.objectEach,B=C.pick,t=function(){function a(b,a){this.axis=b;a&&(this.options=a,this.id=a.id)}a.prototype.render=function(){d(this,"render");var a=this,f=a.axis,h=f.horiz,x=f.logarithmic,r=a.options,q=r.label,e=a.label,m=r.to,c=r.from,g=r.value,l=A(c)&&A(m),v=A(g),G=a.svgElem,L=!G,F=[],t=r.color,p=B(r.zIndex,0),u=r.events;F={"class":"highcharts-plot-"+(l?"band ": "line ")+(r.className||"")};var y={},H=f.chart.renderer,I=l?"bands":"lines";x&&(c=x.log2lin(c),m=x.log2lin(m),g=x.log2lin(g));f.chart.styledMode||(v?(F.stroke=t||n.neutralColor40,F["stroke-width"]=B(r.width,1),r.dashStyle&&(F.dashstyle=r.dashStyle)):l&&(F.fill=t||n.highlightColor10,r.borderWidth&&(F.stroke=r.borderColor,F["stroke-width"]=r.borderWidth)));y.zIndex=p;I+="-"+p;(x=f.plotLinesAndBandsGroups[I])||(f.plotLinesAndBandsGroups[I]=x=H.g("plot-"+I).attr(y).add());L&&(a.svgElem=G=H.path().attr(F).add(x)); if(v)F=f.getPlotLinePath({value:g,lineWidth:G.strokeWidth(),acrossPanes:r.acrossPanes});else if(l)F=f.getPlotBandPath(c,m,r);else return;!a.eventsAdded&&u&&(k(u,function(c,b){G.on(b,function(c){u[b].apply(a,[c])})}),a.eventsAdded=!0);(L||!G.d)&&F&&F.length?G.attr({d:F}):G&&(F?(G.show(!0),G.animate({d:F})):G.d&&(G.hide(),e&&(a.label=e=e.destroy())));q&&(A(q.text)||A(q.formatter))&&F&&F.length&&0this.max&&a>this.max;if(d&&k){if(b){var e=d.toString()===k.toString();q=0}for(b=0;bb){k=f;break}if(m[k]&&d.substr(m[k])!=="01-01 00:00:00.000".substr(m[k]))break;"week"!==k&&(f=k)}if(k)var q=e.resolveDTLFormat(g[k]).main;return q};a.prototype.getLabel=function(){var b=this,a=this.chart.renderer,c=this.chart.styledMode,g=this.options,l="tooltip"+(d(g.className)?" "+g.className: ""),f=g.style&&g.style.pointerEvents||(!this.followPointer&&g.stickOnContact?"auto":"none"),k,q=function(){b.inContact=!0},r=function(){var c=b.chart.hoverSeries;b.inContact=!1;if(c&&c.onMouseOut)c.onMouseOut()};if(!this.label){if(this.outside){var w=this.chart.options.chart.style,x=D.getRendererType();this.container=k=n.doc.createElement("div");k.className="highcharts-tooltip-container";h(k,{position:"absolute",top:"1px",pointerEvents:f,zIndex:Math.max(this.options.style&&this.options.style.zIndex|| 0,(w&&w.zIndex||0)+3)});n.doc.body.appendChild(k);this.renderer=a=new x(k,0,0,w,void 0,void 0,a.styledMode)}this.split?this.label=a.g(l):(this.label=a.label("",0,0,g.shape||"callout",null,null,g.useHTML,null,l).attr({padding:g.padding,r:g.borderRadius}),c||this.label.attr({fill:g.backgroundColor,"stroke-width":g.borderWidth}).css(g.style).css({pointerEvents:f}).shadow(g.shadow));c&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index));if(b.outside&&!b.split){var t=this.label, B=t.xSetter,p=t.ySetter;t.xSetter=function(c){B.call(t,b.distance);k.style.left=c+"px"};t.ySetter=function(c){p.call(t,b.distance);k.style.top=c+"px"}}this.label.on("mouseenter",q).on("mouseleave",r).attr({zIndex:8}).add()}return this.label};a.prototype.getPosition=function(b,a,c){var e=this.chart,l=this.distance,d={},m=e.inverted&&c.h||0,f,k=this.outside,q=k?y.documentElement.clientWidth-2*l:e.chartWidth,h=k?Math.max(y.body.scrollHeight,y.documentElement.scrollHeight,y.body.offsetHeight,y.documentElement.offsetHeight, y.documentElement.clientHeight):e.chartHeight,r=e.pointer.getChartPosition(),x=function(g){var d="x"===g;return[g,d?q:h,d?b:a].concat(k?[d?b*r.scaleX:a*r.scaleY,d?r.left-l+(c.plotX+e.plotLeft)*r.scaleX:r.top-l+(c.plotY+e.plotTop)*r.scaleY,0,d?q:h]:[d?b:a,d?c.plotX+e.plotLeft:c.plotY+e.plotTop,d?e.plotLeft:e.plotTop,d?e.plotLeft+e.plotWidth:e.plotTop+e.plotHeight])},t=x("y"),B=x("x"),p=!this.followPointer&&w(c.ttBelow,!e.inverted===!!c.negative),E=function(c,b,e,a,g,f,v){var q=k?"y"===c?l*r.scaleY: l*r.scaleX:l,h=(e-a)/2,G=aL-m?L:L-m);else if(F)d[c]=Math.max(f,g+m+e>b?g:g+m);else return!1},u=function(c,b,e,a,g){var m;gb-l?m=!1:d[c]=gb-a/2?b-a-2:g-e/2;return m},n=function(c){var b=t;t=B;B=b;f=c},M=function(){!1!==E.apply(0,t)?!1!==u.apply(0,B)||f||(n(!0),M()):f?d.x=d.y=0:(n(!0),M())};(e.inverted||1b})&&(e=e.map(function(e){var a=c(e.anchorX,e.anchorY, e.point.isHeader,e.boxWidth,!1);return b(e,{target:a.y,x:a.x})}));g.cleanSplit();n.distribute(e,da);var Y=K,J=K;e.forEach(function(c){var b=c.x,e=c.boxWidth;c=c.isHeader;c||(g.outside&&K+bJ&&(J=K+b))});e.forEach(function(c){var b=c.x,e=c.anchorX,a=c.pos,l=c.point.isHeader;a={visibility:"undefined"===typeof a?"hidden":"inherit",x:b,y:a+D,anchorX:e,anchorY:c.anchorY};if(g.outside&&bc[0]?Math.max(Math.abs(c[0]),l.width-c[0]):Math.max(Math.abs(c[0]),l.width);g.height=0>c[1]?Math.max(Math.abs(c[1]),l.height-Math.abs(c[1])):Math.max(Math.abs(c[1]),l.height);this.tracker?this.tracker.attr(g):(this.tracker=a.renderer.rect(g).addClass("highcharts-tracker").add(a),b.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};a.prototype.styledModeFormat=function(b){return b.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g, 'class="highcharts-color-{$1.colorIndex}"')};a.prototype.tooltipFooterHeaderFormatter=function(b,a){var c=a?"footer":"header",e=b.series,l=e.tooltipOptions,d=l.xDateFormat,f=e.xAxis,m=f&&"datetime"===f.options.type&&t(b.key),q=l[c+"Format"];a={isFooter:a,labelConfig:b};k(this,"headerFormatter",a,function(c){m&&!d&&(d=this.getXDateFormat(b,l,f));m&&d&&(b.point&&b.point.tooltipDateKeys||["key"]).forEach(function(c){q=q.replace("{point."+c+"}","{point."+c+":"+d+"}")});e.chart.styledMode&&(q=this.styledModeFormat(q)); c.text=u(q,{point:b,series:e},this.chart)});return a.text};a.prototype.update=function(b){this.destroy();K(!0,this.chart.options.tooltip.userOptions,b);this.init(this.chart,K(!0,this.options,b))};a.prototype.updatePosition=function(b){var e=this.chart,c=e.pointer,a=this.getLabel(),l=b.plotX+e.plotLeft;e=b.plotY+e.plotTop;c=c.getChartPosition();b=(this.options.positioner||this.getPosition).call(this,a.width,a.height,b);if(this.outside){var d=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(a.width+ d,a.height+d,!1);if(1!==c.scaleX||1!==c.scaleY)h(this.container,{transform:"scale("+c.scaleX+", "+c.scaleY+")"}),l*=c.scaleX,e*=c.scaleY;l+=c.left-b.x;e+=c.top-b.y}this.move(Math.round(b.x),Math.round(b.y||0),l,e)};return a}();n.Tooltip=a;return n.Tooltip});J(a,"Core/Pointer.js",[a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Tooltip.js"],a["Core/Utilities.js"]],function(a,n,C,D,z){var u=a.parse,y=n.charts,p=n.noop,h=z.addEvent,d=z.attr,f=z.css,b=z.defined,k=z.extend, B=z.find,t=z.fireEvent,H=z.isNumber,K=z.isObject,w=z.objectEach,E=z.offset,x=z.pick,r=z.splat;a=function(){function a(b,a){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=b;this.hasDragged=!1;this.options=a;this.init(b,a)}a.prototype.applyInactiveState=function(b){var a=[],c;(b||[]).forEach(function(b){c=b.series;a.push(c);c.linkedParent&&a.push(c.linkedParent);c.linkedSeries&&(a=a.concat(c.linkedSeries));c.navigatorSeries&&a.push(c.navigatorSeries)}); this.chart.series.forEach(function(c){-1===a.indexOf(c)?c.setState("inactive",!0):c.options.inactiveOtherPoints&&c.setAllPointsToState("inactive")})};a.prototype.destroy=function(){var b=this;this.eventsToUnbind.forEach(function(b){return b()});this.eventsToUnbind=[];n.chartCount||(a.unbindDocumentMouseUp&&(a.unbindDocumentMouseUp=a.unbindDocumentMouseUp()),a.unbindDocumentTouchEnd&&(a.unbindDocumentTouchEnd=a.unbindDocumentTouchEnd()));clearInterval(b.tooltipTimeout);w(b,function(a,c){b[c]=void 0})}; a.prototype.drag=function(b){var a=this.chart,c=a.options.chart,e=this.zoomHor,l=this.zoomVert,d=a.plotLeft,f=a.plotTop,k=a.plotWidth,q=a.plotHeight,h=this.mouseDownX||0,r=this.mouseDownY||0,x=K(c.panning)?c.panning&&c.panning.enabled:c.panning,w=c.panKey&&b[c.panKey+"Key"],t=b.chartX,B=b.chartY,p=this.selectionMarker;if(!p||!p.touch)if(td+k&&(t=d+k),Bf+q&&(B=f+q),this.hasDragged=Math.sqrt(Math.pow(h-t,2)+Math.pow(r-B,2)),10b.options.findNearestPointBy.indexOf("y");b=b.searchPoint(c,e);if((e=K(b,!0)&&b.series)&&!(e=!K(d,!0))){e=d.distX-b.distX;var g=d.dist-b.dist,l=(b.series.group&&b.series.group.zIndex)-(d.series.group&&d.series.group.zIndex);e=0<(0!==e&&a?e:0!==g?g:0!==l?l:d.series.index>b.series.index?-1:1)}e&&(d=b)});return d};a.prototype.getChartCoordinatesFromPoint= function(b,a){var c=b.series,e=c.xAxis;c=c.yAxis;var l=b.shapeArgs;if(e&&c){var d=x(b.clientX,b.plotX),f=b.plotY||0;b.isNode&&l&&H(l.x)&&H(l.y)&&(d=l.x,f=l.y);return a?{chartX:c.len+c.pos-f,chartY:e.len+e.pos-d}:{chartX:d+e.pos,chartY:f+c.pos}}if(l&&l.x&&l.y)return{chartX:l.x,chartY:l.y}};a.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var b=this.chart.container,a=E(b);this.chartPosition={left:a.left,top:a.top,scaleX:1,scaleY:1};var c=b.offsetWidth;b=b.offsetHeight; 2x.max&&(c=x.max-M,n=!0);n?(E-= .8*(E-f[m][0]),"number"===typeof u&&(u-=.8*(u-f[m][1])),a()):f[m]=[E,u];G||(d[m]=B-r,d[v]=M);d=G?1/p:p;l[v]=M;l[m]=c;g[G?b?"scaleY":"scaleX":"scale"+q]=p;g["translate"+q]=d*r+(E-d*L)};a.prototype.reset=function(b,a){var c=this.chart,e=c.hoverSeries,l=c.hoverPoint,d=c.hoverPoints,f=c.tooltip,m=f&&f.shared?d:l;b&&m&&r(m).forEach(function(c){c.series.isCartesian&&"undefined"===typeof c.plotX&&(b=!1)});if(b)f&&m&&r(m).length&&(f.refresh(m),f.shared&&d?d.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))}):l&&(l.setState(l.state,!0),c.axes.forEach(function(c){c.crosshair&&l.series[c.coll]===c&&c.drawCrosshair(null,l)})));else{if(l)l.onMouseOut();d&&d.forEach(function(c){c.setState()});if(e)e.onMouseOut();f&&f.hide(a);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());c.axes.forEach(function(c){c.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}}; a.prototype.runPointActions=function(b,d){var c=this.chart,e=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,l=e?e.shared:!1,f=d||c.hoverPoint,m=f&&f.series||c.hoverSeries;d=this.getHoverData(f,m,c.series,(!b||"touchmove"!==b.type)&&(!!d||m&&m.directTouch&&this.isDirectTouch),l,b);f=d.hoverPoint;m=d.hoverSeries;var k=d.hoverPoints;d=m&&m.tooltipOptions.followPointer&&!m.tooltipOptions.split;l=l&&m&&!m.noSharedTooltip;if(f&&(f!==c.hoverPoint||e&&e.isHidden)){(c.hoverPoints||[]).forEach(function(c){-1=== k.indexOf(c)&&c.setState()});if(c.hoverSeries!==m)m.onMouseOver();this.applyInactiveState(k);(k||[]).forEach(function(c){c.setState("hover")});c.hoverPoint&&c.hoverPoint.firePointEvent("mouseOut");if(!f.series)return;c.hoverPoints=k;c.hoverPoint=f;f.firePointEvent("mouseOver");e&&e.refresh(l?k:f,b)}else d&&e&&!e.isHidden&&(f=e.getAnchor([{}],b),c.isInsidePlot(f[0],f[1],{visiblePlotOnly:!0})&&e.updatePosition({plotX:f[0],plotY:f[1]}));this.unDocMouseMove||(this.unDocMouseMove=h(c.container.ownerDocument, "mousemove",function(c){var b=y[a.hoverChartIndex];if(b)b.pointer.onDocumentMouseMove(c)}),this.eventsToUnbind.push(this.unDocMouseMove));c.axes.forEach(function(a){var e=x((a.crosshair||{}).snap,!0),g;e&&((g=c.hoverPoint)&&g.series[a.coll]===a||(g=B(k,function(c){return c.series[a.coll]===a})));g||!e?a.drawCrosshair(b,g):a.hideCrosshair()})};a.prototype.scaleGroups=function(b,a){var c=this.chart;c.series.forEach(function(e){var g=b||e.getPlotBox();e.xAxis&&e.xAxis.zoomEnabled&&e.group&&(e.group.attr(g), e.markerGroup&&(e.markerGroup.attr(g),e.markerGroup.clip(a?c.clipRect:null)),e.dataLabelsGroup&&e.dataLabelsGroup.attr(g))});c.clipRect.attr(a||c.clipBox)};a.prototype.setDOMEvents=function(){var b=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(h(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(h(d,"mouseleave", this.onContainerMouseLeave.bind(this)));a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=h(c,"mouseup",this.onDocumentMouseUp.bind(this)));for(var g=this.chart.renderTo.parentElement;g&&"BODY"!==g.tagName;)this.eventsToUnbind.push(h(g,"scroll",function(){delete b.chartPosition})),g=g.parentElement;n.hasTouch&&(this.eventsToUnbind.push(h(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(h(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})), a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=h(c,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};a.prototype.setHoverChartIndex=function(){var b=this.chart,d=n.charts[x(a.hoverChartIndex,-1)];if(d&&d!==b)d.pointer.onContainerMouseLeave({relatedTarget:!0});d&&d.mouseIsDown||(a.hoverChartIndex=b.index)};a.prototype.touch=function(b,a){var c=this.chart,e;this.setHoverChartIndex();if(1===b.touches.length)if(b=this.normalize(b),(e=c.isInsidePlot(b.chartX-c.plotLeft,b.chartY-c.plotTop, {visiblePlotOnly:!0}))&&!c.openMenu){a&&this.runPointActions(b);if("touchmove"===b.type){a=this.pinchDown;var d=a[0]?4<=Math.sqrt(Math.pow(a[0].chartX-b.chartX,2)+Math.pow(a[0].chartY-b.chartY,2)):!1}x(d,!0)&&this.pinch(b)}else a&&this.reset();else 2===b.touches.length&&this.pinch(b)};a.prototype.touchSelect=function(b){return!(!this.chart.options.chart.zoomBySingleTouch||!b.touches||1!==b.touches.length)};a.prototype.zoomOption=function(b){var a=this.chart,c=a.options.chart;a=a.inverted;var e=c.zoomType|| "";/touch/.test(b.type)&&(e=x(c.pinchType,e));this.zoomX=b=/x/.test(e);this.zoomY=c=/y/.test(e);this.zoomHor=b&&!a||c&&a;this.zoomVert=c&&!a||b&&a;this.hasZoom=b||c};return a}();"";return a});J(a,"Core/MSPointer.js",[a["Core/Globals.js"],a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,n,C){function u(){var b=[];b.item=function(b){return this[b]};k(t,function(a){b.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return b}function z(b,a,d,f){var k=y[n.hoverChartIndex||NaN];"touch"!==b.pointerType&& b.pointerType!==b.MSPOINTER_TYPE_TOUCH||!k||(k=k.pointer,f(b),k[a]({type:d,target:b.currentTarget,preventDefault:h,touches:u()}))}var A=this&&this.__extends||function(){var b=function(a,d){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(a,d)};return function(a,d){function f(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),y=a.charts,p= a.doc,h=a.noop,d=a.win,f=C.addEvent,b=C.css,k=C.objectEach,B=C.removeEvent,t={},H=!!d.PointerEvent;return function(k){function h(){return null!==k&&k.apply(this,arguments)||this}A(h,k);h.isRequired=function(){return!(a.hasTouch||!d.PointerEvent&&!d.MSPointerEvent)};h.prototype.batchMSEvents=function(b){b(this.chart.container,H?"pointerdown":"MSPointerDown",this.onContainerPointerDown);b(this.chart.container,H?"pointermove":"MSPointerMove",this.onContainerPointerMove);b(p,H?"pointerup":"MSPointerUp", this.onDocumentPointerUp)};h.prototype.destroy=function(){this.batchMSEvents(B);k.prototype.destroy.call(this)};h.prototype.init=function(a,d){k.prototype.init.call(this,a,d);this.hasZoom&&b(a.container,{"-ms-touch-action":"none","touch-action":"none"})};h.prototype.onContainerPointerDown=function(b){z(b,"onContainerTouchStart","touchstart",function(b){t[b.pointerId]={pageX:b.pageX,pageY:b.pageY,target:b.currentTarget}})};h.prototype.onContainerPointerMove=function(b){z(b,"onContainerTouchMove","touchmove", function(b){t[b.pointerId]={pageX:b.pageX,pageY:b.pageY};t[b.pointerId].target||(t[b.pointerId].target=b.currentTarget)})};h.prototype.onDocumentPointerUp=function(b){z(b,"onDocumentTouchEnd","touchend",function(b){delete t[b.pointerId]})};h.prototype.setDOMEvents=function(){k.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(f)};return h}(n)});J(a,"Core/Series/Point.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"], a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A){var u=n.animObject,p=C.format,h=z.defaultOptions,d=A.addEvent,f=A.defined,b=A.erase,k=A.extend,B=A.fireEvent,t=A.getNestedProperty,H=A.isArray,K=A.isFunction,w=A.isNumber,E=A.isObject,x=A.merge,r=A.objectEach,q=A.pick,e=A.syncTimeout,m=A.removeEvent,c=A.uniqueKey;"";n=function(){function g(){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}g.prototype.animateBeforeDestroy=function(){var c=this,b={x:c.startXPos,opacity:0},a,e=c.getGraphicalProps();e.singular.forEach(function(e){a="dataLabel"===e;c[e]=c[e].animate(a?{x:c[e].startXPos,y:c[e].startYPos,opacity:0}:b)});e.plural.forEach(function(b){c[b].forEach(function(b){b.element&&b.animate(k({x:c.startXPos},b.startYPos?{x:b.startXPos,y:b.startYPos}:{}))})})};g.prototype.applyOptions=function(c, b){var a=this.series,e=a.options.pointValKey||a.pointValKey;c=g.prototype.optionsToObject.call(this,c);k(this,c);this.options=this.options?k(this.options,c):c;c.group&&delete this.group;c.dataLabels&&delete this.dataLabels;e&&(this.y=g.prototype.getNestedProperty.call(this,e));this.formatPrefix=(this.isNull=q(this.isValid&&!this.isValid(),null===this.x||!w(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof b&&a.xAxis&&a.xAxis.hasNames&&(this.x=a.xAxis.nameToX(this)); "undefined"===typeof this.x&&a&&(this.x="undefined"===typeof b?a.autoIncrement(this):b);return this};g.prototype.destroy=function(){function c(){if(a.graphic||a.dataLabel||a.dataLabels)m(a),a.destroyElements();for(h in a)a[h]=null}var a=this,g=a.series,d=g.chart;g=g.options.dataSorting;var f=d.hoverPoints,k=u(a.series.chart.renderer.globalAnimation),h;a.legendItem&&d.legend.destroyItem(a);f&&(a.setState(),b(f,a),f.length||(d.hoverPoints=null));if(a===d.hoverPoint)a.onMouseOut();g&&g.enabled?(this.animateBeforeDestroy(), e(c,k.duration)):c();d.pointCount--};g.prototype.destroyElements=function(c){var b=this;c=b.getGraphicalProps(c);c.singular.forEach(function(c){b[c]=b[c].destroy()});c.plural.forEach(function(c){b[c].forEach(function(c){c.element&&c.destroy()});delete b[c]})};g.prototype.firePointEvent=function(c,b,a){var e=this,g=this.series.options;(g.point.events[c]||e.options&&e.options.events&&e.options.events[c])&&e.importEvents();"click"===c&&g.allowPointSelect&&(a=function(c){e.select&&e.select(null,c.ctrlKey|| c.metaKey||c.shiftKey)});B(e,c,b,a)};g.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};g.prototype.getGraphicalProps=function(c){var b= this,a=[],e,g={singular:[],plural:[]};c=c||{graphic:1,dataLabel:1};c.graphic&&a.push("graphic","upperGraphic","shadowGroup");c.dataLabel&&a.push("dataLabel","dataLabelUpper","connector");for(e=a.length;e--;){var d=a[e];b[d]&&g.singular.push(d)}["dataLabel","connector"].forEach(function(a){var e=a+"s";c[a]&&b[e]&&g.plural.push(e)});return g};g.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series, point:this,percentage:this.percentage,total:this.total||this.stackTotal}};g.prototype.getNestedProperty=function(c){if(c)return 0===c.indexOf("custom.")?t(c,this.options):this[c]};g.prototype.getZone=function(){var c=this.series,b=c.zones;c=c.zoneAxis||"y";var a=0,e;for(e=b[a];this[c]>=e.value;)e=b[++a];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=e&&e.color&&!this.options.color?e.color:this.nonZonedColor;return e};g.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName|| this.graphic.element.nodeName))!==this.shapeType};g.prototype.init=function(b,a,e){this.series=b;this.applyOptions(a,e);this.id=f(this.id)?this.id:c();this.resolveColor();b.chart.pointCount++;B(this,"afterInit");return this};g.prototype.optionsToObject=function(c){var b={},a=this.series,e=a.options.keys,d=e||a.pointArrayMap||["y"],l=d.length,f=0,k=0;if(w(c)||null===c)b[d[0]]=c;else if(H(c))for(!e&&c.length>l&&(a=typeof c[0],"string"===a?b.name=c[0]:"number"===a&&(b.x=c[0]),f++);kd-6&&lh?this.maxItemWidth:c.itemWidth;e&&this.itemX-a+b>h&&(this.itemX=a,this.lastLineHeight&&(this.itemY+=k+this.lastLineHeight+ f),this.lastLineHeight=0);this.lastItemY=k+this.itemY+f;this.lastLineHeight=Math.max(d,this.lastLineHeight);c._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=b:(this.itemY+=k+d+f,this.lastLineHeight=d);this.offsetWidth=this.widthOption||Math.max((e?this.itemX-a-(c.checkbox?0:m):b)+a,this.offsetWidth)};a.prototype.getAllItems=function(){var c=[];this.chart.series.forEach(function(b){var a=b&&b.options;b&&E(a.showInLegend,k(a.linkedTo)?!1:void 0,!0)&&(c=c.concat(b.legendItems||("point"===a.legendType? b.data:b)))});H(this,"afterGetAllItems",{allItems:c});return c};a.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)};a.prototype.adjustMargins=function(c,b){var a=this.chart,e=this.options,d=this.getAlignment();d&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(g,f){g.test(d)&&!k(c[f])&&(a[h[f]]=Math.max(a[h[f]],a.legend[(f+1)%2?"legendHeight": "legendWidth"]+[1,-1,-1,1][f]*e[f%2?"x":"y"]+E(e.margin,12)+b[f]+(a.titleOffset[f]||0)))})};a.prototype.proximatePositions=function(){var c=this.chart,b=[],a="left"===this.options.align;this.allItems.forEach(function(e){var d;var g=a;if(e.yAxis){e.xAxis.options.reversed&&(g=!g);e.points&&(d=t(g?e.points:e.points.slice(0).reverse(),function(c){return K(c.plotY)}));g=this.itemMarginTop+e.legendItem.getBBox().height+this.itemMarginBottom;var f=e.yAxis.top-c.plotTop;e.visible?(d=d?d.plotY:e.yAxis.height, d+=f-.3*g):d=f+e.yAxis.height;b.push({target:d,size:g,item:e})}},this);C.distribute(b,c.plotHeight);b.forEach(function(b){b.item._legendItemPos[1]=c.plotTop-c.spacing[0]+b.pos})};a.prototype.render=function(){var c=this.chart,b=c.renderer,a=this.group,e=this.box,d=this.options,f=this.padding;this.itemX=f;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=x(d.width,c.spacingBox.width-f);var k=c.spacingBox.width-2*f-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0, 2))&&(k/=2);this.maxLegendWidth=this.widthOption||k;a||(this.group=a=b.g("legend").addClass(d.className||"").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(a),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();var m=this.getAllItems();r(m,function(c,b){return(c.options&&c.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});d.reversed&&m.reverse();this.allItems=m;this.display=k=!!m.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight= 0;m.forEach(this.renderItem,this);m.forEach(this.layoutItem,this);m=(this.widthOption||this.offsetWidth)+f;var h=this.lastItemY+this.lastLineHeight+this.titleHeight;h=this.handleOverflow(h);h+=f;e||(this.box=e=b.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(a),e.isNew=!0);c.styledMode||e.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow);0f&&!1!==r.enabled?(this.clipHeight=h=Math.max(f-20-this.titleHeight-k,0),this.currentPage=E(this.currentPage,1),this.fullHeight= c,u.forEach(function(c,b){var a=c._legendItemPos[1],e=Math.round(c.legendItem.getBBox().height),d=p.length;if(!d||a-p[d-1]>h&&(w||a)!==p[d-1])p.push(w||a),d++;c.pageIx=d-1;w&&(u[b-1].pageIx=d-1);b===u.length-1&&a+e-p[d-1]>h&&a!==w&&(p.push(a),c.pageIx=d);a!==w&&(w=a)}),q||(q=b.clipRect=e.clipRect(0,k,9999,0),b.contentGroup.clip(q)),M(h),x||(this.nav=x=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol("triangle",0,0,B,B).add(x),n("upTracker").on("click",function(){b.scroll(-1,t)}),this.pager= e.text("",15,10).addClass("highcharts-legend-navigation"),a.styledMode||this.pager.css(r.style),this.pager.add(x),this.down=e.symbol("triangle-down",0,0,B,B).add(x),n("downTracker").on("click",function(){b.scroll(1,t)})),b.scroll(0),c=f):x&&(M(),this.nav=x.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return c};a.prototype.scroll=function(c,b){var a=this,e=this.chart,d=this.pages,g=d.length,f=this.currentPage+c;c=this.clipHeight;var k=this.options.navigation,m=this.pager,h=this.padding; f>g&&(f=g);0=Math.max(k+g,q.pos)&&l<=Math.min(k+g+d.width,q.pos+q.len)||(c.isInsidePlot=!1)}!a.ignoreY&& c.isInsidePlot&&(e=h&&(e?h.xAxis:h.yAxis)||{pos:f,len:Infinity},a=a.paneCoordinates?e.pos+b:f+b,a>=Math.max(m+f,e.pos)&&a<=Math.min(m+f+d.height,e.pos+e.len)||(c.isInsidePlot=!1));J(this,"afterIsInsidePlot",c);return c.isInsidePlot};b.prototype.redraw=function(c){J(this,"beforeRedraw");var b=this.hasCartesianSeries?this.axes:this.colorAxis||[],a=this.series,e=this.pointer,d=this.legend,g=this.userOptions.legend,f=this.renderer,l=f.isHidden(),k=[],m=this.isDirtyBox,h=this.isDirtyLegend;this.setResponsive&& this.setResponsive(!1);w(this.hasRendered?c:!1,this);l&&this.temporaryDisplay();this.layOutTitles();for(c=a.length;c--;){var q=a[c];if(q.options.stacking||q.options.centerInCategory){var r=!0;if(q.isDirty){var v=!0;break}}}if(v)for(c=a.length;c--;)q=a[c],q.options.stacking&&(q.isDirty=!0);a.forEach(function(c){c.isDirty&&("point"===c.options.legendType?("function"===typeof c.updateTotals&&c.updateTotals(),h=!0):g&&(g.labelFormatter||g.labelFormat)&&(h=!0));c.isDirtyData&&J(c,"updatedData")});h&&d&& d.options.enabled&&(d.render(),this.isDirtyLegend=!1);r&&this.getStacks();b.forEach(function(c){c.updateNames();c.setScale()});this.getMargins();b.forEach(function(c){c.isDirty&&(m=!0)});b.forEach(function(c){var b=c.min+","+c.max;c.extKey!==b&&(c.extKey=b,k.push(function(){J(c,"afterSetExtremes",I(c.eventArgs,c.getExtremes()));delete c.eventArgs}));(m||r)&&c.redraw()});m&&this.drawChartBox();J(this,"predraw");a.forEach(function(c){(m||c.isDirty)&&c.visible&&c.redraw();c.isDirtyData=!1});e&&e.reset(!0); f.draw();J(this,"redraw");J(this,"render");l&&this.temporaryDisplay(!0);k.forEach(function(c){c.call()})};b.prototype.get=function(c){function b(b){return b.id===c||b.options&&b.options.id===c}for(var a=this.series,e=P(this.axes,b)||P(this.series,b),d=0;!e&&d=l&&e<=k||m||!O(e))h=!0;a[m?"zoomX":"zoomY"]&&h&&(g=f.zoom(c.min,c.max),f.displayBtn&&(d=!0))});var f=b.resetZoomButton;d&&!f?b.showResetZoom():!d&&Q(f)&& (b.resetZoomButton=f.destroy());g&&b.redraw(R(b.options.chart.animation,c&&c.animation,100>b.pointCount))};b.prototype.pan=function(c,b){var a=this,e=a.hoverPoints;b="object"===typeof b?b:{enabled:b,type:"x"};var d=a.options.chart,g=a.options.mapNavigation&&a.options.mapNavigation.enabled;d&&d.panning&&(d.panning=b);var f=b.type,l;J(this,"pan",{originalEvent:c},function(){e&&e.forEach(function(c){c.setState()});var b=a.xAxis;"xy"===f?b=b.concat(a.yAxis):"y"===f&&(b=a.yAxis);var d={};b.forEach(function(b){if(b.options.panningEnabled&& !b.options.isInternal){var e=b.horiz,k=c[e?"chartX":"chartY"];e=e?"mouseDownX":"mouseDownY";var m=a[e],h=b.minPointOffset||0,q=b.reversed&&!a.inverted||!b.reversed&&a.inverted?-1:1,r=b.getExtremes(),v=b.toValue(m-k,!0)+h*q,t=b.toValue(m+b.len-k,!0)-(h*q||b.isXAxis&&b.pointRangePadding||0),x=t=q&&v<=t&&(b.setExtremes(m,v,!1,!1,{trigger:"pan"}),a.resetZoomButton||g||m===q||v===t||!f.match("y")||(a.showResetZoom(),b.displayBtn=!1),l=!0),d[e]=k)}});S(d,function(c,b){a[b]=c});l&&a.redraw(!1);N(a.container,{cursor:"move"})})};return b}();I(a.prototype,{callbacks:[],collectionsWithInit:{xAxis:[a.prototype.addAxis,[!0]],yAxis:[a.prototype.addAxis,[!1]],series:[a.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "), propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return a});J(a,"Mixins/LegendSymbol.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n){var u=n.merge,D=n.pick;return a.LegendSymbolMixin={drawRectangle:function(a,u){var n=a.symbolHeight,p=a.options.squareSymbol; u.legendSymbol=this.chart.renderer.rect(p?(a.symbolWidth-n)/2:0,a.baseline-n+1,p?n:a.symbolWidth,n,D(a.options.symbolRadius,n/2)).addClass("highcharts-point").attr({zIndex:3}).add(u.legendGroup)},drawLineMarker:function(a){var n=this.options,y=n.marker,p=a.symbolWidth,h=a.symbolHeight,d=h/2,f=this.chart.renderer,b=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);var k={};this.chart.styledMode||(k={"stroke-width":n.lineWidth||0},n.dashStyle&&(k.dashstyle=n.dashStyle));this.legendLine=f.path([["M", 0,a],["L",p,a]]).addClass("highcharts-graph").attr(k).add(b);y&&!1!==y.enabled&&p&&(n=Math.min(D(y.radius,d),d),0===this.symbol.indexOf("url")&&(y=u(y,{width:h,height:h}),n=0),this.legendSymbol=y=f.symbol(this.symbol,p/2-n,a-n,2*n,2*n,y).addClass("highcharts-point").add(b),y.isMarker=!0)}}});J(a,"Core/Series/Series.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Mixins/LegendSymbol.js"],a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"],a["Core/Series/Point.js"], a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p,h,d){var f=a.animObject,b=a.setAnimation,k=n.registerEventOptions,B=C.hasTouch,t=C.svg,u=C.win,K=z.defaultOptions,w=p.seriesTypes,E=d.addEvent,x=d.arrayMax,r=d.arrayMin,q=d.clamp,e=d.cleanRecursively,m=d.correctFloat,c=d.defined,g=d.erase,l=d.error,v=d.extend,G=d.find,L=d.fireEvent,F=d.getNestedProperty,N=d.isArray,O=d.isNumber,aa=d.isString,V=d.merge,J=d.objectEach,I=d.pick,P= d.removeEvent,fa=d.splat,Z=d.syncTimeout;a=function(){function a(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}a.prototype.init=function(c,b){L(this,"init",{options:b});var a=this,e=c.series;this.eventsToUnbind=[];a.chart=c;a.options=a.setOptions(b);b=a.options;a.linkedSeries=[];a.bindAxes();v(a,{name:b.name, state:"",visible:!1!==b.visible,selected:!0===b.selected});k(this,b);var d=b.events;if(d&&d.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)c.runTrackerClick=!0;a.getColor();a.getSymbol();a.parallelArrays.forEach(function(c){a[c+"Data"]||(a[c+"Data"]=[])});a.isCartesian&&(c.hasCartesianSeries=!0);var g;e.length&&(g=e[e.length-1]);a._i=I(g&&g._i,-1)+1;a.opacity=a.options.opacity;c.orderSeries(this.insert(e));b.dataSorting&&b.dataSorting.enabled?a.setDataSortingOptions():a.points|| a.data||a.setData(b.data,!1);L(this,"afterInit")};a.prototype.is=function(c){return w[c]&&this instanceof w[c]};a.prototype.insert=function(c){var b=this.options.index,a;if(O(b)){for(a=c.length;a--;)if(b>=I(c[a].options.index,c[a]._i)){c.splice(a+1,0,this);break}-1===a&&c.unshift(this);a+=1}else c.push(this);return I(a,c.length-1)};a.prototype.bindAxes=function(){var c=this,b=c.options,a=c.chart,e;L(this,"bindAxes",null,function(){(c.axisTypes||[]).forEach(function(d){var g=0;a[d].forEach(function(a){e= a.options;if(b[d]===g&&!e.isInternal||"undefined"!==typeof b[d]&&b[d]===e.id||"undefined"===typeof b[d]&&0===e.index)c.insert(a.series),c[d]=a,a.isDirty=!0;e.isInternal||g++});c[d]||c.optionalAxis===d||l(18,!0,a)})});L(this,"afterBindAxes")};a.prototype.updateParallelArrays=function(c,b){var a=c.series,e=arguments,d=O(b)?function(e){var d="y"===e&&a.toYData?a.toYData(c):c[e];a[e+"Data"][b]=d}:function(c){Array.prototype[b].apply(a[c+"Data"],Array.prototype.slice.call(e,2))};a.parallelArrays.forEach(d)}; a.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0=this.cropStart?m-this.cropStart:m);!g&&d[m]&&d[m].touched&&(m=void 0);return m};a.prototype.updateData=function(b,a){var e=this.options,d=e.dataSorting,g=this.points,f=[],l,k,m,h=this.requireSorting,q=b.length===g.length,r=!0;this.xIncrement=null;b.forEach(function(b,a){var k=c(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b)||{}; var r=k.x;if(k.id||O(r)){if(r=this.findPointIndex(k,m),-1===r||"undefined"===typeof r?f.push(b):g[r]&&b!==e.data[r]?(g[r].update(b,!1,null,!1),g[r].touched=!0,h&&(m=r+1)):g[r]&&(g[r].touched=!0),!q||a!==r||d&&d.enabled||this.hasDerivedData)l=!0}else f.push(b)},this);if(l)for(b=g.length;b--;)(k=g[b])&&!k.touched&&k.remove&&k.remove(!1,a);else!q||d&&d.enabled?r=!1:(b.forEach(function(c,b){c!==g[b].y&&g[b].update&&g[b].update(c,!1,null,!1)}),f.length=0);g.forEach(function(c){c&&(c.touched=!1)});if(!r)return!1; f.forEach(function(c){this.addPoint(c,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=x(this.xData),this.autoIncrement());return!0};a.prototype.setData=function(c,b,a,e){var d=this,g=d.points,f=g&&g.length||0,k,m=d.options,h=d.chart,q=m.dataSorting,r=null,v=d.xAxis;r=m.turboThreshold;var t=this.xData,p=this.yData,x=(k=d.pointArrayMap)&&k.length,B=m.keys,w=0,M=1,u;c=c||[];k=c.length;b=I(b,!0);q&&q.enabled&&(c=this.sortData(c));!1!==e&&k&&f&&!d.cropped&& !d.hasGroupedData&&d.visible&&!d.isSeriesBoosting&&(u=this.updateData(c,a));if(!u){d.xIncrement=null;d.colorCounter=0;this.parallelArrays.forEach(function(c){d[c+"Data"].length=0});if(r&&k>r)if(r=d.getFirstValidPoint(c),O(r))for(a=0;ac?1:0}).forEach(function(c,b){c.x=b},this);a.linkedSeries&&a.linkedSeries.forEach(function(c){var a=c.options,e=a.data;a.dataSorting&&a.dataSorting.enabled||!e||(e.forEach(function(a,g){e[g]=d(c,a);b[g]&&(e[g].x=b[g].x,e[g].index=g)}),c.setData(e,!1))});return b};a.prototype.getProcessedData=function(c){var b=this.xData,a=this.yData,e=b.length;var d=0;var g=this.xAxis,f= this.options;var k=f.cropThreshold;var m=c||this.getExtremesFromAll||f.getExtremesFromAll,h=this.isCartesian;c=g&&g.val2lin;f=!(!g||!g.logarithmic);var q=this.requireSorting;if(g){g=g.getExtremes();var r=g.min;var v=g.max}if(h&&this.sorted&&!m&&(!k||e>k||this.forceCrop))if(b[e-1]v)b=[],a=[];else if(this.yData&&(b[0]v)){d=this.cropData(this.xData,this.yData,r,v);b=d.xData;a=d.yData;d=d.start;var t=!0}for(k=b.length||1;--k;)if(e=f?c(b[k])-c(b[k-1]):b[k]-b[k-1],0e&&q&&(l(15,!1,this.chart),q=!1);return{xData:b,yData:a,cropped:t,cropStart:d,closestPointRange:p}};a.prototype.processData=function(c){var b=this.xAxis;if(this.isCartesian&&!this.isDirty&&!b.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};a.prototype.cropData=function(c,b,a,e,d){var g= c.length,f=0,l=g,k;d=I(d,this.cropShoulder);for(k=0;k=a){f=Math.max(0,k-d);break}for(a=k;ae){l=a+d;break}return{xData:c.slice(f,l),yData:b.slice(f,l),start:f,end:l}};a.prototype.generatePoints=function(){var c=this.options,b=c.data,a=this.data,e,d=this.processedXData,g=this.processedYData,f=this.pointClass,l=d.length,k=this.cropStart||0,m=this.hasGroupedData,h=c.keys,q=[],r;c=c.dataGrouping&&c.dataGrouping.groupAll?k:0;a||m||(a=[],a.length=b.length,a=this.data=a);h&& m&&(this.options.keys=!1);for(r=0;r=l&&(d[q-m]||v)<=k;if(p&&v)if(p=t.length)for(;p--;)O(t[p])&&(g[f++]=t[p]);else g[f++]=t}c={dataMin:r(g),dataMax:x(g)};L(this,"afterGetExtremes",{dataExtremes:c});return c};a.prototype.applyExtremes=function(){var c=this.getExtremes();this.dataMin=c.dataMin;this.dataMax=c.dataMax;return c};a.prototype.getFirstValidPoint=function(c){for(var b=null,a=c.length,e=0;null===b&&e=G&&(G=null),n.total=n.stackTotal=z.total,n.percentage=z.total&&n.y/z.total*100,n.stackY=F,this.irregularWidths||z.setOffset(this.pointXOffset||0,this.barW||0));n.yBottom=c(G)?q(f.translate(G, 0,1,0,1),-1E5,1E5):null;h&&(F=this.modifyValue(F,n));n.plotY=void 0;O(F)&&(F=f.translate(F,!1,!0,!1,!0),"undefined"!==typeof F&&(n.plotY=q(F,-1E5,1E5)));n.isInside=this.isPointInside(n);n.clientX=t?m(e.translate(E,0,0,0,1,v)):B;n.negative=n[w]<(b[w+"Threshold"]||p||0);n.category=d&&"undefined"!==typeof d[n.x]?d[n.x]:n.x;if(!n.isNull&&!1!==n.visible){"undefined"!==typeof C&&(u=Math.min(u,Math.abs(B-C)));var C=B}n.zone=this.zones.length&&n.getZone();!n.graphic&&this.group&&g&&(n.isNew=!0)}this.closestPointRangePx= u;L(this,"afterTranslate")};a.prototype.getValidPoints=function(c,b,a){var e=this.chart;return(c||this.points||[]).filter(function(c){return b&&!e.isInsidePlot(c.plotX,c.plotY,{inverted:e.inverted})?!1:!1!==c.visible&&(a||!c.isNull)})};a.prototype.getClipBox=function(c,b){var a=this.options,e=this.chart,d=e.inverted,g=this.xAxis,f=g&&this.yAxis,l=e.options.chart.scrollablePlotArea||{};c&&!1===a.clip&&f?c=d?{y:-e.chartWidth+f.len+f.pos,height:e.chartWidth,width:e.chartHeight,x:-e.chartHeight+g.len+ g.pos}:{y:-f.pos,height:e.chartHeight,width:e.chartWidth,x:-g.pos}:(c=this.clipBox||e.clipBox,b&&(c.width=e.plotSizeX,c.x=(e.scrollablePixelsX||0)*(l.scrollPositionX||0)));return b?{width:c.width,x:c.x}:c};a.prototype.getSharedClipKey=function(c){if(this.sharedClipKey)return this.sharedClipKey;var b=[c&&c.duration,c&&c.easing,c&&c.defer,this.getClipBox(c).height,this.options.xAxis,this.options.yAxis].join();if(!1!==this.options.clip||c)this.sharedClipKey=b;return b};a.prototype.setClip=function(c){var b= this.chart,a=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,f=this.getClipBox(c),l=this.getSharedClipKey(c),k=b.sharedClips[l],m=b.sharedClips[l+"m"];c&&(f.width=0,d&&(f.x=b.plotHeight+(!1!==a.clip?0:b.plotTop)));k?b.hasLoaded||k.attr(f):(c&&(b.sharedClips[l+"m"]=m=e.clipRect(d?(b.plotSizeX||0)+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b.sharedClips[l]=k=e.clipRect(f),k.count={length:0});c&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);if(!1!==a.clip|| c)this.group.clip(c||g?k:b.clipRect),this.markerGroup.clip(m);c||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),0===k.count.length&&(g||(b.sharedClips[l]=k.destroy()),m&&(b.sharedClips[l+"m"]=m.destroy())))};a.prototype.animate=function(c){var b=this.chart,a=f(this.options.animation),e=this.sharedClipKey;if(c)this.setClip(a);else if(e){c=b.sharedClips[e];e=b.sharedClips[e+"m"];var d=this.getClipBox(a,!0);c&&c.animate(d,a);e&&e.animate({width:d.width+99,x:d.x-(b.inverted?0:99)}, a)}};a.prototype.afterAnimate=function(){this.setClip();L(this,"afterAnimate");this.finishedAnimating=!0};a.prototype.drawPoints=function(){var c=this.points,b=this.chart,a,e,d=this.options.marker,g=this[this.specialGroup]||this.markerGroup,f=this.xAxis,l=I(d.enabled,!f||f.isRadial?!0:null,this.closestPointRangePx>=d.enabledThreshold*d.radius);if(!1!==d.enabled||this._hasPointMarkers)for(a=0;aF.max;c.resetZones&&0===g&&(g=void 0)});this.clips=f}else c.visible&&(k&&k.show(!0),m&&m.show(!0))};a.prototype.invertGroups=function(c){function b(){["group","markerGroup"].forEach(function(b){a[b]&&(e.renderer.isVML&&a[b].attr({width:a.yAxis.len,height:a.xAxis.len}),a[b].width=a.yAxis.len,a[b].height=a.xAxis.len,a[b].invert(a.isRadialSeries? !1:c))})}var a=this,e=a.chart;a.xAxis&&(a.eventsToUnbind.push(E(e,"resize",b)),b(),a.invertGroups=b)};a.prototype.plotGroup=function(b,a,e,d,g){var f=this[b],l=!f;e={visibility:e,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(e.opacity=this.opacity);l&&(this[b]=f=this.chart.renderer.g().add(g));f.addClass("highcharts-"+a+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(c(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ": "")+(this.options.className||"")+(f.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);f.attr(e)[l?"attr":"animate"](this.getPlotBox());return f};a.prototype.getPlotBox=function(){var c=this.chart,b=this.xAxis,a=this.yAxis;c.inverted&&(b=a,a=this.xAxis);return{translateX:b?b.left:c.plotLeft,translateY:a?a.top:c.plotTop,scaleX:1,scaleY:1}};a.prototype.removeEvents=function(c){c||P(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(c){c()}),this.eventsToUnbind.length= 0)};a.prototype.render=function(){var c=this,b=c.chart,a=c.options,e=f(a.animation),d=!c.finishedAnimating&&b.renderer.isSVG&&e.duration,g=c.visible?"inherit":"hidden",l=a.zIndex,k=c.hasRendered,m=b.seriesGroup,h=b.inverted;L(this,"render");var q=c.plotGroup("group","series",g,l,m);c.markerGroup=c.plotGroup("markerGroup","markers",g,l,m);d&&c.animate&&c.animate(!0);q.inverted=I(c.invertible,c.isCartesian)?h:!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(h);!1===a.clip||c.sharedClipKey||k||q.clip(b.clipRect);d&&c.animate&&c.animate();k||(d&&e.defer&&(d+=e.defer),c.animationTimeout=Z(function(){c.afterAnimate()},d||0));c.isDirty=!1;c.hasRendered=!0;L(c,"afterRender")};a.prototype.redraw=function(){var c=this.chart,b=this.isDirty||this.isDirtyData,a=this.group,e=this.xAxis,d=this.yAxis;a&&(c.inverted&&a.attr({width:c.plotWidth, height:c.plotHeight}),a.animate({translateX:I(e&&e.left,c.plotLeft),translateY:I(d&&d.top,c.plotTop)}));this.translate();this.render();b&&delete this.kdTree};a.prototype.searchPoint=function(c,b){var a=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?a.len-c.chartY+a.pos:c.chartX-a.pos,plotY:d?e.len-c.chartX+e.pos:c.chartY-e.pos},b,c)};a.prototype.buildKDTree=function(c){function b(c,e,d){var g;if(g=c&&c.length){var f=a.kdAxisArray[e%d];c.sort(function(c,b){return c[f]- b[f]});g=Math.floor(g/2);return{point:c[g],left:b(c.slice(0,g),e+1,d),right:b(c.slice(g+1),e+1,d)}}}this.buildingKdTree=!0;var a=this,e=-1q?"left":"right";v=0>q?"right":"left";a[t]&&(t=d(b,a[t],e+1,m),r=t[k]v;)t--;this.updateParallelArrays(r,"splice",t,0,0);this.updateParallelArrays(r,t);k&&r.name&&(k[v]=r.name);m.splice(t,0,c);q&&(this.data.splice(t,0,null),this.processData());"point"===g.legendType&&this.generatePoints();a&&(f[0]&&f[0].remove?f[0].remove(!1):(f.shift(),this.updateParallelArrays(r,"shift"),m.shift()));!1!==d&&L(this,"addPoint",{point:r});this.isDirtyData=this.isDirty=!0;b&&l.redraw(e)};a.prototype.removePoint=function(c, a,e){var d=this,g=d.data,f=g[c],l=d.points,k=d.chart,m=function(){l&&l.length===g.length&&l.splice(c,1);g.splice(c,1);d.options.data.splice(c,1);d.updateParallelArrays(f||{series:d},"splice",c,1);f&&f.destroy();d.isDirty=!0;d.isDirtyData=!0;a&&k.redraw()};b(e,k);a=I(a,!0);f?f.firePointEvent("remove",null,m):m()};a.prototype.remove=function(c,b,a,e){function d(){g.destroy(e);f.isDirtyLegend=f.isDirtyBox=!0;f.linkSeries();I(c,!0)&&f.redraw(b)}var g=this,f=g.chart;!1!==a?L(g,"remove",null,d):d()};a.prototype.update= function(c,b){c=e(c,this.userOptions);L(this,"update",{options:c});var a=this,d=a.chart,g=a.userOptions,f=a.initialType||a.type,k=d.options.plotOptions,m=c.type||g.type||d.options.chart.type,h=!(this.hasDerivedData||m&&m!==this.type||"undefined"!==typeof c.pointStart||"undefined"!==typeof c.pointInterval||a.hasOptionChanged("dataGrouping")||a.hasOptionChanged("pointStart")||a.hasOptionChanged("pointInterval")||a.hasOptionChanged("pointIntervalUnit")||a.hasOptionChanged("keys")),q=w[f].prototype,r, t=["eventOptions","navigatorSeries","baseSeries"],p=a.finishedAnimating&&{animation:!1},x={};m=m||f;h&&(t.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==c.visible&&t.push("area","graph"),a.parallelArrays.forEach(function(c){t.push(c+"Data")}),c.data&&(c.dataSorting&&v(a.options.dataSorting,c.dataSorting),this.setData(c.data,!1)));c=V(g,p,{index:"undefined"=== typeof g.index?a.index:g.index,pointStart:I(k&&k.series&&k.series.pointStart,g.pointStart,a.xData[0])},!h&&{data:a.options.data},c);h&&c.data&&(c.data=a.options.data);t=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(t);t.forEach(function(c){t[c]=a[c];delete a[c]});g=!1;if(w[m]){if(g=m!==a.type,a.remove(!1,!1,!1,!0),g)if(Object.setPrototypeOf)Object.setPrototypeOf(a,w[m].prototype);else{k=Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents;for(r in q)a[r]=void 0;v(a,w[m].prototype); k?a.hcEvents=k:delete a.hcEvents}}else l(17,!0,d,{missingModuleFor:m});t.forEach(function(c){a[c]=t[c]});a.init(d,c);if(h&&this.points){var B=a.options;!1===B.visible?(x.graphic=1,x.dataLabel=1):a._hasPointLabels||(c=B.marker,m=B.dataLabels,c&&(!1===c.enabled||"symbol"in c)&&(x.graphic=1),m&&!1===m.enabled&&(x.dataLabel=1));this.points.forEach(function(c){c&&c.series&&(c.resolveColor(),Object.keys(x).length&&c.destroyElements(x),!1===B.showInLegend&&c.legendItem&&d.legend.destroyItem(c))},this)}a.initialType= f;d.linkSeries();g&&a.linkedSeries.length&&(a.isDirtyData=!0);L(this,"afterUpdate");I(b,!0)&&d.redraw(h?void 0:!1)};a.prototype.setName=function(c){this.name=this.options.name=this.userOptions.name=c;this.chart.isDirtyLegend=!0};a.prototype.hasOptionChanged=function(c){var b=this.options[c],a=this.chart.options.plotOptions,e=this.userOptions[c];return e?b!==e:b!==I(a&&a[this.type]&&a[this.type][c],a&&a.series&&a.series[c],b)};a.prototype.onMouseOver=function(){var c=this.chart,b=c.hoverSeries;c.pointer.setHoverChartIndex(); if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&L(this,"mouseOver");this.setState("hover");c.hoverSeries=this};a.prototype.onMouseOut=function(){var c=this.options,b=this.chart,a=b.tooltip,e=b.hoverPoint;b.hoverSeries=null;if(e)e.onMouseOut();this&&c.events.mouseOut&&L(this,"mouseOut");!a||this.stickyTracking||a.shared&&!this.noSharedTooltip||a.hide();b.series.forEach(function(c){c.setState("",!0)})};a.prototype.setState=function(c,b){var a=this,e=a.options,d=a.graph,g=e.inactiveOtherPoints, f=e.states,l=e.lineWidth,k=e.opacity,m=I(f[c||"normal"]&&f[c||"normal"].animation,a.chart.options.chart.animation);e=0;c=c||"";if(a.state!==c&&([a.group,a.markerGroup,a.dataLabelsGroup].forEach(function(b){b&&(a.state&&b.removeClass("highcharts-series-"+a.state),c&&b.addClass("highcharts-series-"+c))}),a.state=c,!a.chart.styledMode)){if(f[c]&&!1===f[c].enabled)return;c&&(l=f[c].lineWidth||l+(f[c].lineWidthPlus||0),k=I(f[c].opacity,k));if(d&&!d.dashstyle)for(f={"stroke-width":l},d.animate(f,m);a["zone-graph-"+ e];)a["zone-graph-"+e].animate(f,m),e+=1;g||[a.group,a.markerGroup,a.dataLabelsGroup,a.labelBySeries].forEach(function(c){c&&c.animate({opacity:k},m)})}b&&g&&a.points&&a.setAllPointsToState(c||void 0)};a.prototype.setAllPointsToState=function(c){this.points.forEach(function(b){b.setState&&b.setState(c)})};a.prototype.setVisible=function(c,b){var a=this,e=a.chart,d=a.legendItem,g=e.options.chart.ignoreHiddenSeries,f=a.visible;var l=(a.visible=c=a.options.visible=a.userOptions.visible="undefined"=== typeof c?!f:c)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(c){if(a[c])a[c][l]()});if(e.hoverSeries===a||(e.hoverPoint&&e.hoverPoint.series)===a)a.onMouseOut();d&&e.legend.colorizeItem(a,c);a.isDirty=!0;a.options.stacking&&e.series.forEach(function(c){c.options.stacking&&c.visible&&(c.isDirty=!0)});a.linkedSeries.forEach(function(b){b.setVisible(c,!1)});g&&(e.isDirtyBox=!0);L(a,l);!1!==b&&e.redraw()};a.prototype.show=function(){this.setVisible(!0)};a.prototype.hide= function(){this.setVisible(!1)};a.prototype.select=function(c){this.selected=c=this.options.selected="undefined"===typeof c?!this.selected:c;this.checkbox&&(this.checkbox.checked=c);L(this,c?"select":"unselect")};a.prototype.shouldShowTooltip=function(c,b,a){void 0===a&&(a={});a.series=this;a.visiblePlotOnly=!0;return this.chart.isInsidePlot(c,b,a)};a.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:A.backgroundColor, lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:A.neutralColor20,lineColor:A.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var c=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":c(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"};return a}();v(a.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:D.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"], parallelArrays:["x","y"],pointClass:y,requireSorting:!0,sorted:!0});p.series=a;"";"";return a});J(a,"Extensions/ScrollablePlotArea.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Series/Series.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A){var u=a.stop,p=A.addEvent,h=A.createElement,d=A.merge,f=A.pick;p(C,"afterSetChartSize",function(b){var a=this.options.chart.scrollablePlotArea,f=a&&a.minWidth;a=a&& a.minHeight;if(!this.renderer.forExport){if(f){if(this.scrollablePixelsX=f=Math.max(0,f-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=d(this.plotBox);this.plotBox.width=this.plotWidth+=f;this.inverted?this.clipBox.height+=f:this.clipBox.width+=f;var h={1:{name:"right",value:f}}}}else a&&(this.scrollablePixelsY=f=Math.max(0,a-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=d(this.plotBox),this.plotBox.height=this.plotHeight+=f,this.inverted?this.clipBox.width+= f:this.clipBox.height+=f,h={2:{name:"bottom",value:f}});h&&!b.skipAxes&&this.axes.forEach(function(b){h[b.side]?b.getPlotLinePath=function(){var a=h[b.side].name,d=this[a];this[a]=d-h[b.side].value;var f=n.prototype.getPlotLinePath.apply(this,arguments);this[a]=d;return f}:(b.setAxisSize(),b.setAxisTranslation())})}});p(C,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});C.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=h("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=h("div",{className:"highcharts-scrolling"},a,this.scrollingParent);p(this.scrollingContainer,"scroll",function(){b.pointer&&delete b.pointer.chartPosition});this.innerContainer=h("div", {className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};C.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(" "), f;this.scrollablePixelsX&&!this.inverted?f=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?f=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?f=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(f=".highcharts-yaxis");f&&d.push(f+":not(.highcharts-radial-axis)",f+"-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"})})}; C.prototype.applyFixed=function(){var b=!this.fixedDiv,a=this.options.chart,d=a.scrollablePlotArea,t=z.getRendererType();b?(this.fixedDiv=h("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 t(this.fixedDiv,this.chartWidth,this.chartHeight, this.options.chart.style),this.scrollableMask=a.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":f(d.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),p(this,"afterShowResetZoom",this.moveFixedElements),p(this,"afterDrilldown",this.moveFixedElements),p(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);t=this.chartHeight+(this.scrollablePixelsY||0);u(this.container);this.container.style.width=a+"px";this.container.style.height=t+"px";this.renderer.boxWrapper.attr({width:a,height:t,viewBox:[0,0,a,t].join(" ")});this.chartBackground.attr({width:a,height:t});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));t=this.axisOffset;b=this.plotTop-t[0]-1;d=this.plotLeft-t[3]-1;a=this.plotTop+this.plotHeight+t[2]+1;t=this.plotLeft+this.plotWidth+t[1]+1;var n=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),y=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",n,b],["L",this.chartWidth,b],["L",this.chartWidth,a],["L",n,a],["Z"]]:this.scrollablePixelsY?[["M",d,0],["L",d,this.plotTop- 1],["L",t,this.plotTop-1],["L",t,0],["Z"],["M",d,y],["L",d,this.chartHeight],["L",t,this.chartHeight],["L",t,y],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:b})};p(n,"afterInit",function(){this.chart.scrollableDirty=!0});p(D,"show",function(){this.chart.scrollableDirty=!0});""});J(a,"Core/Axis/StackingAxis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Utilities.js"]],function(a,n){var u=a.getDeferredAnimation,D=n.addEvent,z=n.destroyObjectProperties, A=n.fireEvent,y=n.isNumber,p=n.objectEach,h=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,h=b.length,t;if(!a.isXAxis){this.usePercentage=!1;for(t=h;t--;){var p=b[d?t:h-t-1];p.setStackedPoints();p.setGroupedPoints()}for(t=0;th&&f.shadow));p&&(p.startX=b.xMap,p.isArea=b.isArea)})};h.prototype.getGraphPath=function(a,f,b){var d=this,h=d.options,t=h.step,p,n=[],u=[],y;a=a||d.points;(p=a.reversed)&&a.reverse();(t={right:1, center:2}[t]||t&&3)&&p&&(t=4-t);a=this.getValidPoints(a,!1,!(h.connectNulls&&!f&&!b));a.forEach(function(k,r){var q=k.plotX,e=k.plotY,m=a[r-1];(k.leftCliff||m&&m.rightCliff)&&!b&&(y=!0);k.isNull&&!A(f)&&0a&&w>k?(w=Math.max(a,k),y=2*k-w):wf&&y>k?(y=Math.max(f,k),w=2*k-y):y=Math.abs(b)&&.5c.closestPointRange*c.xAxis.transA;e=c.borderWidth=r(a.borderWidth,e?0:1);var d=c.xAxis,f=c.yAxis,h=a.threshold,m=c.translatedThreshold=f.getThreshold(h),q=r(a.minPointLength,5),p=c.getColumnMetrics(),n=p.width,x=c.barW=Math.max(n,1+2*e),u=c.pointXOffset=p.offset,B=c.dataMin,w=c.dataMax;b.inverted&&(m-=.5);a.pointPadding&&(x=Math.ceil(x));A.prototype.translate.apply(c);c.points.forEach(function(e){var g= r(e.yBottom,m),l=999+Math.abs(g),v=n,y=e.plotX||0;l=k(e.plotY,-l,f.len+l);y+=u;var F=x,G=Math.min(l,g),z=Math.max(l,g)-G;if(q&&Math.abs(z)q?g-q:m-(A?q:0)}t(e.options.pointWidth)&&(v=F=Math.ceil(e.options.pointWidth),y-=Math.round((v-n)/2));a.centerInCategory&&(y=c.adjustForMissingColumns(y,v,e,p));e.barX=y;e.pointWidth=v;e.tooltipPos=b.inverted?[k(f.len+ f.pos-b.plotLeft-l,f.pos-b.plotLeft,f.len+f.pos-b.plotLeft),d.len+d.pos-b.plotTop-y-F/2,z]:[d.left-b.plotLeft+y+F/2,k(l+f.pos-b.plotTop,f.pos-b.plotTop,f.len+f.pos-b.plotTop),z];e.shapeType=c.pointClass.prototype.shapeType||"rect";e.shapeArgs=c.crispCol.apply(c,e.isNull?[y,m,F,0]:[y,G,F,z])})};e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};e.prototype.pointAttribs=function(c,b){var a=this.options,e=this.pointAttrToOptions||{};var d=e.stroke|| "borderColor";var g=e["stroke-width"]||"borderWidth",k=c&&c.color||this.color,h=c&&c[d]||a[d]||k,m=c&&c[g]||a[g]||this[g]||0;e=c&&c.options.dashStyle||a.dashStyle;var q=r(c&&c.opacity,a.opacity,1);if(c&&this.zones.length){var p=c.getZone();k=c.options.color||p&&(p.color||c.nonZonedColor)||this.color;p&&(h=p.borderColor||h,e=p.dashStyle||e,m=p.borderWidth||m)}b&&c&&(c=x(a.states[b],c.options.states&&c.options.states[b]||{}),b=c.brightness,k=c.color||"undefined"!==typeof b&&f(k).brighten(c.brightness).get()|| k,h=c[d]||h,m=c[g]||m,e=c.dashStyle||e,q=r(c.opacity,q));d={fill:k,stroke:h,"stroke-width":m,opacity:q};e&&(d.dashstyle=e);return d};e.prototype.drawPoints=function(){var c=this,b=this.chart,a=c.options,e=b.renderer,d=a.animationLimit||250,f;c.points.forEach(function(g){var l=g.graphic,k=!!l,h=l&&b.pointCount\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}});return d}(n);y(D.prototype,{drawTracker:a.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});A(D,"afterTranslate",function(){this.applyJitter()});C.registerSeriesType("scatter",D);"";return D}); J(a,"Mixins/CenteredSeries.js",[a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,n,C){var u=C.isNumber,z=C.pick,A=C.relativeLength,y=a.deg2rad;return a.CenteredSeriesMixin={getCenter:function(){var a=this.options,h=this.chart,d=2*(a.slicedOffset||0),f=h.plotWidth-2*d,b=h.plotHeight-2*d,k=a.center,u=Math.min(f,b),t=a.size,y=a.innerSize||0;"string"===typeof t&&(t=parseFloat(t));"string"===typeof y&&(y=parseFloat(y));a=[z(k[0],"50%"),z(k[1],"50%"),z(t&&0>t?void 0:a.size, "100%"),z(y&&0>y?void 0:a.innerSize||0,"0%")];!h.angular||this instanceof n||(a[3]=0);for(k=0;4>k;++k)t=a[k],h=2>k||2===k&&/%$/.test(t),a[k]=A(t,[f,b,u,a[2]][k])+(h?d:0);a[3]>a[2]&&(a[3]=a[2]);return a},getStartAndEndRadians:function(a,h){a=u(a)?a:0;h=u(h)&&h>a&&360>h-a?h:a+360;return{start:y*(a+-90),end:y*(h+-90)}}}});J(a,"Series/Pie/PiePoint.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a= function(b,d){a=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 a(b,d)};return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),z=a.setAnimation,A=C.addEvent,y=C.defined;a=C.extend;var p=C.isNumber,h=C.pick,d=C.relativeLength;C=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.labelDistance=void 0; b.options=void 0;b.series=void 0;return b}u(b,a);b.prototype.getConnectorPath=function(){var b=this.labelPosition,a=this.series.options.dataLabels,d=a.connectorShape,f=this.connectorShapes;f[d]&&(d=f[d]);return d.call(this,{x:b.final.x,y:b.final.y,alignment:b.alignment},b.connectorPosition,a)};b.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};b.prototype.haloPath=function(b){var a=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(a.x, a.y,a.r+b,a.r+b,{innerR:a.r-1,start:a.start,end:a.end})};b.prototype.init=function(){n.prototype.init.apply(this,arguments);var b=this;b.name=h(b.name,"Slice");var a=function(a){b.slice("select"===a.type)};A(b,"select",a);A(b,"unselect",a);return b};b.prototype.isValid=function(){return p(this.y)&&0<=this.y};b.prototype.setVisible=function(b,a){var d=this,f=d.series,k=f.chart,p=f.options.ignoreHiddenPoint;a=h(a,p);b!==d.visible&&(d.visible=d.options.visible=b="undefined"===typeof b?!d.visible:b,f.options.data[f.data.indexOf(d)]= d.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(a){if(d[a])d[a][b?"show":"hide"](b)}),d.legendItem&&k.legend.colorizeItem(d,b),b||"hover"!==d.state||d.setState(""),p&&(f.isDirty=!0),a&&k.redraw())};b.prototype.slice=function(b,a,d){var f=this.series;z(d,f.chart);h(a,!0);this.sliced=this.options.sliced=y(b)?b:!this.sliced;f.options.data[f.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())}; return b}(n);a(C.prototype,{connectorShapes:{fixedOffset:function(a,b,d){var f=b.breakAt;b=b.touchingSliceAt;return[["M",a.x,a.y],d.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*f.x-b.x,2*f.y-b.y,f.x,f.y]:["L",f.x,f.y],["L",b.x,b.y]]},straight:function(a,b){b=b.touchingSliceAt;return[["M",a.x,a.y],["L",b.x,b.y]]},crookedLine:function(a,b,h){b=b.touchingSliceAt;var f=this.series,k=f.center[0],p=f.chart.plotWidth,n=f.chart.plotLeft;f=a.alignment;var u=this.shapeArgs.r;h=d(h.crookDistance, 1);p="left"===f?k+u+(p+n-k-u)*(1-h):n+(k-u)*h;h=["L",p,a.y];k=!0;if("left"===f?p>a.x||pb.x)k=!1;a=[["M",a.x,a.y]];k&&a.push(h);a.push(["L",b.x,b.y]);return a}}});return C});J(a,"Series/Pie/PieSeries.js",[a["Mixins/CenteredSeries.js"],a["Series/Column/ColumnSeries.js"],a["Core/Globals.js"],a["Mixins/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Series/Pie/PiePoint.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/Symbols.js"],a["Core/Utilities.js"]], function(a,n,C,D,z,A,y,p,h,d){var f=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var e in a)a.hasOwnProperty(e)&&(b[e]=a[e])};return b(a,d)};return function(a,d){function f(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),b=a.getStartAndEndRadians;C=C.noop;var k=d.clamp,u=d.extend,t=d.fireEvent,H=d.merge,K=d.pick,w=d.relativeLength;d= function(a){function d(){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}f(d,a);d.prototype.animate=function(b){var a=this,e=a.points,d=a.startAngleRad;b||e.forEach(function(c){var b=c.graphic,e=c.shapeArgs;b&&e&&(b.attr({r:K(c.startR,a.center&&a.center[3]/2),start:d,end:d}),b.animate({r:e.r,start:e.start,end:e.end},a.options.animation))})};d.prototype.drawEmpty=function(){var b=this.startAngleRad,a=this.endAngleRad, e=this.options;if(0===this.total&&this.center){var d=this.center[0];var c=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(d,c,this.center[1]/2,0,b,a).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:h.arc(d,c,this.center[2]/2,0,{start:b,end:a,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":e.borderWidth,fill:e.fillColor||"none",stroke:e.color||z.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())};d.prototype.drawPoints= function(){var b=this.chart.renderer;this.points.forEach(function(a){a.graphic&&a.hasNewShapeType()&&(a.graphic=a.graphic.destroy());a.graphic||(a.graphic=b[a.shapeType](a.shapeArgs).add(a.series.group),a.delayedRendering=!0)})};d.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};d.prototype.getX=function(b,a,e){var d=this.center,c=this.radii?this.radii[e.index]||0:d[2]/2;b=Math.asin(k((b-d[1])/(c+e.labelDistance),-1,1));return d[0]+(a?-1:1)*Math.cos(b)* (c+e.labelDistance)+(01.5*Math.PI?x-=2*Math.PI:x<-Math.PI/2&&(x+=2*Math.PI);n.slicedTranslation={translateX:Math.round(Math.cos(x)*f),translateY:Math.round(Math.sin(x)*f)};y=Math.cos(x)*a[2]/ 2;var B=Math.sin(x)*a[2]/2;n.tooltipPos=[a[0]+.7*y,a[1]+.7*B];n.half=x<-Math.PI/2||x>Math.PI/2?1:0;n.angle=x;u=Math.min(c,n.labelDistance/5);n.labelPosition={natural:{x:a[0]+y+Math.cos(x)*n.labelDistance,y:a[1]+B+Math.sin(x)*n.labelDistance},"final":{},alignment:0>n.labelDistance?"center":n.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+y+Math.cos(x)*u,y:a[1]+B+Math.sin(x)*u},touchingSliceAt:{x:a[0]+y,y:a[1]+B}}}}t(this,"afterTranslate")};d.prototype.updateTotals=function(){var b,a=0,e=this.points, d=e.length,c=this.options.ignoreHiddenPoint;for(b=0;bq){r(b,function(c,b){return(b.rank||0)-(c.rank||0)});for(m=e=0;m<=q;)m+=b[e].size,e++;k=b.splice(e-1,b.length)}r(b,c);for(b=b.map(function(c){return{size:c.size,targets:[c.target],align:w(c.align,.5)}});l;){for(e=b.length;e--;)l= b[e],m=(Math.min.apply(0,l.targets)+Math.max.apply(0,l.targets))/2,l.pos=f(m-l.size*l.align,0,a-l.size);e=b.length;for(l=!1;e--;)0b[e].pos&&(b[e-1].size+=b[e].size,b[e-1].targets=b[e-1].targets.concat(b[e].targets),b[e-1].align=.5,b[e-1].pos+b[e-1].size>a&&(b[e-1].pos=a-b[e-1].size),b.splice(e,1),l=!0)}h.push.apply(h,k);e=0;b.some(function(c){var b=0;if(c.targets.some(function(){h[e].pos=c.pos+b;if("undefined"!==typeof d&&Math.abs(h[e].pos-h[e].target)>d)return h.slice(0, e+1).forEach(function(c){delete c.pos}),h.reducedLen=(h.reducedLen||a)-.1*a,h.reducedLen>.1*a&&C.distribute(h,a,d),!0;b+=h[e].size;e++}))return!0});r(h,c)};z.prototype.drawDataLabels=function(){function a(c,b){var a=b.filter;return a?(b=a.operator,c=c[a.property],a=a.value,">"===b&&c>a||"<"===b&&c="===b&&c>=a||"<="===b&&c<=a||"=="===b&&c==a||"==="===b&&c===a?!0:!1):!0}function e(c,b){var a=[],e;if(t(c)&&!t(b))a=c.map(function(c){return H(c,b)});else if(t(b)&&!t(c))a=b.map(function(b){return H(c, b)});else if(t(c)||t(b))for(e=Math.max(c.length,b.length);e--;)a[e]=H(c[e],b[e]);else a=H(c,b);return a}var d=this,c=d.chart,f=d.options,l=f.dataLabels,k=d.points,r,n=d.hasRendered||0,y=l.animation;y=l.defer?p(c,y,d):{defer:0,duration:0};var B=c.renderer;l=e(e(c.options.plotOptions&&c.options.plotOptions.series&&c.options.plotOptions.series.dataLabels,c.options.plotOptions&&c.options.plotOptions[d.type]&&c.options.plotOptions[d.type].dataLabels),l);u(this,"drawDataLabels");if(t(l)||l.enabled||d._hasPointLabels){var z= d.plotGroup("dataLabelsGroup","data-labels",n?"inherit":"hidden",l.zIndex||6);z.attr({opacity:+n});!n&&(n=d.dataLabelsGroup)&&(d.visible&&z.show(!0),n[f.animation?"animate":"attr"]({opacity:1},y));k.forEach(function(g){r=x(e(l,g.dlOptions||g.options&&g.options.dataLabels));r.forEach(function(e,l){var k=e.enabled&&(!g.isNull||g.dataLabelOnNull)&&a(g,e),m=g.dataLabels?g.dataLabels[l]:g.dataLabel,q=g.connectors?g.connectors[l]:g.connector,r=w(e.distance,g.labelDistance),p=!m;if(k){var v=g.getLabelConfig(); var n=w(e[g.formatPrefix+"Format"],e.format);v=b(n)?h(n,v,c):(e[g.formatPrefix+"Formatter"]||e.formatter).call(v,e);n=e.style;var t=e.rotation;c.styledMode||(n.color=w(e.color,n.color,d.color,D.neutralColor100),"contrast"===n.color?(g.contrastColor=B.getContrast(g.color||d.color),n.color=!b(r)&&e.inside||0>r||f.stacking?g.contrastColor:D.neutralColor100):delete g.contrastColor,f.cursor&&(n.cursor=f.cursor));var x={r:e.borderRadius||0,rotation:t,padding:e.padding,zIndex:1};c.styledMode||(x.fill=e.backgroundColor, x.stroke=e.borderColor,x["stroke-width"]=e.borderWidth);K(x,function(c,b){"undefined"===typeof c&&delete x[b]})}!m||k&&b(v)?k&&b(v)&&(m?x.text=v:(g.dataLabels=g.dataLabels||[],m=g.dataLabels[l]=t?B.text(v,0,-9999,e.useHTML).addClass("highcharts-data-label"):B.label(v,0,-9999,e.shape,null,null,e.useHTML,null,"data-label"),l||(g.dataLabel=m),m.addClass(" highcharts-data-label-color-"+g.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":""))),m.options=e,m.attr(x),c.styledMode||m.css(n).shadow(e.shadow), m.added||m.add(z),e.textPath&&!e.useHTML&&(m.setTextPath(g.getDataLabelPath&&g.getDataLabelPath(m)||g.graphic,e.textPath),g.dataLabelPath&&!e.textPath.enabled&&(g.dataLabelPath=g.dataLabelPath.destroy())),d.alignDataLabel(g,m,e,null,p)):(g.dataLabel=g.dataLabel&&g.dataLabel.destroy(),g.dataLabels&&(1===g.dataLabels.length?delete g.dataLabels:delete g.dataLabels[l]),l||delete g.dataLabel,q&&(g.connector=g.connector.destroy(),g.connectors&&(1===g.connectors.length?delete g.connectors:delete g.connectors[l])))})})}u(this, "afterDrawDataLabels")};z.prototype.alignDataLabel=function(b,a,d,c,f){var e=this,g=this.chart,h=this.isCartesian&&g.inverted,m=this.enabledDataSorting,q=w(b.dlBox&&b.dlBox.centerX,b.plotX,-9999),r=w(b.plotY,-9999),p=a.getBBox(),n=d.rotation,t=d.align,x=g.isInsidePlot(q,Math.round(r),{inverted:h,paneCoordinates:!0,series:e}),u="justify"===w(d.overflow,m?"none":"justify"),y=this.visible&&!1!==b.visible&&(b.series.forceDL||m&&!u||x||w(d.inside,!!this.options.stacking)&&c&&g.isInsidePlot(q,h?c.x+1:c.y+ c.height-1,{inverted:h,paneCoordinates:!0,series:e}));var B=function(c){m&&e.xAxis&&!u&&e.setDataLabelStartPos(b,a,f,x,c)};if(y){var z=g.renderer.fontMetrics(g.styledMode?void 0:d.style.fontSize,a).b;c=k({x:h?this.yAxis.len-r:q,y:Math.round(h?this.xAxis.len-q:r),width:0,height:0},c);k(d,{width:p.width,height:p.height});n?(u=!1,q=g.renderer.rotCorr(z,n),q={x:c.x+(d.x||0)+c.width/2+q.x,y:c.y+(d.y||0)+{top:0,middle:.5,bottom:1}[d.verticalAlign]*c.height},B(q),a[f?"attr":"animate"](q).attr({align:t}), B=(n+720)%360,B=180B,"left"===t?q.y-=B?p.height:0:"center"===t?(q.x-=p.width/2,q.y-=p.height/2):"right"===t&&(q.x-=p.width,q.y-=B?0:p.height),a.placed=!0,a.alignAttr=q):(B(c),a.align(d,void 0,c),q=a.alignAttr);u&&0<=c.height?this.justifyDataLabel(a,d,q,p,c,f):w(d.crop,!0)&&(y=g.isInsidePlot(q.x,q.y,{paneCoordinates:!0,series:e})&&g.isInsidePlot(q.x+p.width,q.y+p.height,{paneCoordinates:!0,series:e}));if(d.shape&&!n)a[f?"attr":"animate"]({anchorX:h?g.plotWidth-b.plotY:b.plotX,anchorY:h?g.plotHeight- b.plotX:b.plotY})}f&&m&&(a.placed=!1);y||m&&!u||(a.hide(!0),a.placed=!1)};z.prototype.setDataLabelStartPos=function(b,a,d,c,f){var e=this.chart,g=e.inverted,h=this.xAxis,k=h.reversed,m=g?a.height/2:a.width/2;b=(b=b.pointWidth)?b/2:0;h=g?f.x:k?-m-b:h.width-m+b;f=g?k?this.yAxis.height-m+b:-m-b:f.y;a.startXPos=h;a.startYPos=f;c?"hidden"===a.visibility&&(a.show(),a.attr({opacity:0}).animate({opacity:1})):a.attr({opacity:1}).animate({opacity:0},void 0,a.hide);e.hasRendered&&(d&&a.attr({x:a.startXPos,y:a.startYPos}), a.placed=!0)};z.prototype.justifyDataLabel=function(b,a,d,c,f,l){var e=this.chart,g=a.align,h=a.verticalAlign,k=b.box?0:b.padding||0,m=a.x;m=void 0===m?0:m;var q=a.y;var r=void 0===q?0:q;q=(d.x||0)+k;if(0>q){"right"===g&&0<=m?(a.align="left",a.inside=!0):m-=q;var p=!0}q=(d.x||0)+c.width-k;q>e.plotWidth&&("left"===g&&0>=m?(a.align="right",a.inside=!0):m+=e.plotWidth-q,p=!0);q=d.y+k;0>q&&("bottom"===h&&0<=r?(a.verticalAlign="top",a.inside=!0):r-=q,p=!0);q=(d.y||0)+c.height-k;q>e.plotHeight&&("top"=== h&&0>=r?(a.verticalAlign="bottom",a.inside=!0):r+=e.plotHeight-q,p=!0);p&&(a.x=m,a.y=r,b.placed=!l,b.align(a,void 0,f));return p};A.pie&&(A.pie.prototype.dataLabelPositioners={radialDistributionY:function(b){return b.top+b.distributeBox.pos},radialDistributionX:function(b,a,d,c){return b.getX(da.bottom-2?c:d,a.half,a)},justify:function(b,a,d){return d[0]+(b.half?-1:1)*(a+b.labelDistance)},alignToPlotEdges:function(b,a,d,c){b=b.getBBox().width;return a?b+c:d-b-c},alignToConnectors:function(b, a,d,c){var e=0,f;b.forEach(function(c){f=c.dataLabel.getBBox().width;f>e&&(e=f)});return a?e+c:d-e-c}},A.pie.prototype.drawDataLabels=function(){var a=this,e=a.data,f,c=a.chart,g=a.options.dataLabels||{},l=g.connectorPadding,h,k=c.plotWidth,r=c.plotHeight,p=c.plotLeft,n=Math.round(c.chartWidth/3),t,x=a.center,u=x[2]/2,y=x[1],B,A,E,K,J=[[],[]],M,Q,U,T,S=[0,0,0,0],R=a.dataLabelPositioners,W;a.visible&&(g.enabled||a._hasPointLabels)&&(e.forEach(function(c){c.dataLabel&&c.visible&&c.dataLabel.shortened&& (c.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),c.dataLabel.shortened=!1)}),z.prototype.drawDataLabels.apply(a),e.forEach(function(c){c.dataLabel&&(c.visible?(J[c.half].push(c),c.dataLabel._pos=null,!b(g.style.width)&&!b(c.options.dataLabels&&c.options.dataLabels.style&&c.options.dataLabels.style.width)&&c.dataLabel.getBBox().width>n&&(c.dataLabel.css({width:Math.round(.7*n)+"px"}),c.dataLabel.shortened=!0)):(c.dataLabel=c.dataLabel.destroy(),c.dataLabels&&1===c.dataLabels.length&& delete c.dataLabels))}),J.forEach(function(e,d){var h=e.length,m=[],q;if(h){a.sortByAngle(e,d-.5);if(0k-l&&0===d&&(v=Math.round(M+A-k+l),S[1]=Math.max(v,S[1])),0>Q-K/2?S[0]=Math.max(Math.round(-Q+K/2),S[0]):Q+K/2>r&&(S[2]=Math.max(Math.round(Q+K/2-r),S[2])),B.sideOverflow=v)}}}),0===d(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),this.points.forEach(function(b){W= H(g,b.options.dataLabels);if(h=w(W.connectorWidth,1)){var e;t=b.connector;if((B=b.dataLabel)&&B._pos&&b.visible&&0w(this.translatedThreshold,g.yAxis.len)),m=w(d.inside,!!this.options.stacking);h&&(c=H(h),0>c.y&&(c.height+=c.y,c.y=0),h=c.y+c.height-g.yAxis.len,0=E.x+E.width||x.x+x.width<=E.x||x.y>=E.y+E.height||x.y+x.height<=E.y||((w.labelrank=p(d.minWidth,0)&&this.chartHeight>=p(d.minHeight,0)}).call(this)&&a.push(b._id)};b.prototype.setResponsive=function(b,a){var f=this.options.responsive,h=this.currentResponsive,k=[];!a&& f&&f.rules&&f.rules.forEach(function(b){"undefined"===typeof b._id&&(b._id=d());this.matchResponsiveRule(b,k)},this);a=A.apply(void 0,k.map(function(b){return u((f||{}).rules||[],function(a){return a._id===b})}).map(function(b){return b&&b.chartOptions}));a.isResponsiveOptions=!0;k=k.toString()||void 0;k!==(h&&h.ruleIds)&&(h&&this.update(h.undoOptions,b,!0),k?(h=this.currentOptions(a),h.isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:a,undoOptions:h},this.update(a,b,!0)):this.currentResponsive= void 0)};return b}();a=function(){function b(){}b.compose=function(b){n(b.prototype,f.prototype);return b};return b}();"";"";return a});J(a,"masters/highcharts.src.js",[a["Core/Globals.js"],a["Core/Utilities.js"],a["Core/DefaultOptions.js"],a["Core/Animation/Fx.js"],a["Core/Animation/AnimationUtilities.js"],a["Core/Renderer/HTML/AST.js"],a["Core/FormatUtilities.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Renderer/HTML/HTMLElement.js"],a["Core/Renderer/HTML/HTMLRenderer.js"], a["Core/Axis/Axis.js"],a["Core/Axis/PlotLineOrBand.js"],a["Core/Axis/Tick.js"],a["Core/Pointer.js"],a["Core/MSPointer.js"],a["Core/Chart/Chart.js"],a["Core/Series/Series.js"],a["Core/Responsive.js"],a["Core/Color/Color.js"],a["Core/Time.js"]],function(a,n,C,D,z,A,y,p,h,d,f,b,k,B,t,H,K,w,E,x,r){a.animate=z.animate;a.animObject=z.animObject;a.getDeferredAnimation=z.getDeferredAnimation;a.setAnimation=z.setAnimation;a.stop=z.stop;a.timers=D.timers;a.AST=A;a.Axis=b;a.Chart=K;a.chart=K.chart;a.Fx=D;a.PlotLineOrBand= k;a.Pointer=H.isRequired()?H:t;a.Series=w;a.SVGElement=p;a.SVGRenderer=h;a.Tick=B;a.Time=r;a.Color=x;a.color=x.parse;f.compose(h);d.compose(p);a.defaultOptions=C.defaultOptions;a.getOptions=C.getOptions;a.time=C.defaultTime;a.setOptions=C.setOptions;a.dateFormat=y.dateFormat;a.format=y.format;a.numberFormat=y.numberFormat;a.addEvent=n.addEvent;a.arrayMax=n.arrayMax;a.arrayMin=n.arrayMin;a.attr=n.attr;a.clearTimeout=n.clearTimeout;a.correctFloat=n.correctFloat;a.createElement=n.createElement;a.css= n.css;a.defined=n.defined;a.destroyObjectProperties=n.destroyObjectProperties;a.discardElement=n.discardElement;a.erase=n.erase;a.error=n.error;a.extend=n.extend;a.extendClass=n.extendClass;a.find=n.find;a.fireEvent=n.fireEvent;a.getMagnitude=n.getMagnitude;a.getStyle=n.getStyle;a.inArray=n.inArray;a.isArray=n.isArray;a.isClass=n.isClass;a.isDOMElement=n.isDOMElement;a.isFunction=n.isFunction;a.isNumber=n.isNumber;a.isObject=n.isObject;a.isString=n.isString;a.keys=n.keys;a.merge=n.merge;a.normalizeTickInterval= n.normalizeTickInterval;a.objectEach=n.objectEach;a.offset=n.offset;a.pad=n.pad;a.pick=n.pick;a.pInt=n.pInt;a.relativeLength=n.relativeLength;a.removeEvent=n.removeEvent;a.splat=n.splat;a.stableSort=n.stableSort;a.syncTimeout=n.syncTimeout;a.timeUnits=n.timeUnits;a.uniqueKey=n.uniqueKey;a.useSerialIds=n.useSerialIds;a.wrap=n.wrap;E.compose(K);return a});J(a,"Core/Axis/MapAxis.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,n){var u=n.addEvent,D=n.pick,z=function(){return function(a){this.axis= a}}();n=function(){function a(){}a.compose=function(a){a.keepProps.push("mapAxis");u(a,"init",function(){this.mapAxis||(this.mapAxis=new z(this))});u(a,"getSeriesExtremes",function(){if(this.mapAxis){var a=[];this.isXAxis&&(this.series.forEach(function(h,d){h.useMapGeometry&&(a[d]=h.xData,h.xData=[])}),this.mapAxis.seriesXData=a)}});u(a,"afterGetSeriesExtremes",function(){if(this.mapAxis){var a=this.mapAxis.seriesXData||[],h;if(this.isXAxis){var d=D(this.dataMin,Number.MAX_VALUE);var f=D(this.dataMax, -Number.MAX_VALUE);this.series.forEach(function(b,k){b.useMapGeometry&&(d=Math.min(d,D(b.minX,d)),f=Math.max(f,D(b.maxX,f)),b.xData=a[k],h=!0)});h&&(this.dataMin=d,this.dataMax=f);this.mapAxis.seriesXData=void 0}}});u(a,"afterSetAxisTranslation",function(){if(this.mapAxis){var a=this.chart,h=a.plotWidth/a.plotHeight;a=a.xAxis[0];var d;"yAxis"===this.coll&&"undefined"!==typeof a.transA&&this.series.forEach(function(a){a.preserveAspectRatio&&(d=!0)});if(d&&(this.transA=a.transA=Math.min(this.transA, a.transA),h/=(a.max-a.min)/(this.max-this.min),h=1>h?this:a,a=(h.max-h.min)*h.transA,h.mapAxis.pixelPadding=h.len-a,h.minPixelPadding=h.mapAxis.pixelPadding/2,a=h.mapAxis.fixTo)){a=a[1]-h.toValue(a[0],!0);a*=h.transA;if(Math.abs(a)>h.minPixelPadding||h.min===h.dataMin&&h.max===h.dataMax)a=0;h.minPixelPadding-=a}}});u(a,"render",function(){this.mapAxis&&(this.mapAxis.fixTo=void 0)})};return a}();n.compose(a);return n});J(a,"Mixins/ColorSeries.js",[],function(){return{colorPointMixin:{setVisible:function(a){var n= this,u=a?"show":"hide";n.visible=n.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(n[a])n[a][u]()});this.series.buildKDTree()}},colorSeriesMixin:{optionalAxis:"colorAxis",colorAxis:0,translateColors:function(){var a=this,n=this.options.nullColor,C=this.colorAxis,D=this.colorKey;(this.data.length?this.data:this.points).forEach(function(u){var A=u.getNestedProperty(D);(A=u.options.color||(u.isNull||null===u.value?n:C&&"undefined"!==typeof A?C.toColor(A,u):u.color||a.color))&&u.color!== A&&(u.color=A,"point"===a.options.legendType&&u.legendItem&&a.chart.legend.colorizeItem(u,u.visible))})}}}});J(a,"Core/Axis/ColorAxis.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Color/Color.js"],a["Mixins/ColorSeries.js"],a["Core/Animation/Fx.js"],a["Core/Globals.js"],a["Core/Legend.js"],a["Mixins/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Core/Series/Point.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p,h,d,f,b){var k=this&&this.__extends||function(){var b= function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(a,c)};return function(a,c){function e(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),u=C.parse;C=D.colorPointMixin;D=D.colorSeriesMixin;var t=A.noop,H=b.addEvent,K=b.extend,w=b.isNumber,E=b.merge,x=b.pick,r=b.splat;"";K(f.prototype,D);K(d.prototype,C);n.prototype.collectionsWithUpdate.push("colorAxis"); n.prototype.collectionsWithInit.colorAxis=[n.prototype.addColorAxis];var q=function(b){function a(a,e){var c=b.call(this,a,e)||this;c.beforePadding=!1;c.chart=void 0;c.coll="colorAxis";c.dataClasses=void 0;c.legendItem=void 0;c.legendItems=void 0;c.name="";c.options=void 0;c.stops=void 0;c.visible=!0;c.init(a,e);return c}k(a,b);a.prototype.init=function(c,e){var d=c.options.legend||{},f=e.layout?"vertical"!==e.layout:"vertical"!==d.layout;d=E(a.defaultColorAxisOptions,e,{showEmpty:!1,title:null,visible:d.enabled&& (e?!1!==e.visible:!0)});this.coll="colorAxis";this.side=e.side||f?2:1;this.reversed=e.reversed||!f;this.opposite=!f;b.prototype.init.call(this,c,d);e.dataClasses&&this.initDataClasses(e);this.initStops();this.horiz=f;this.zoomEnabled=!1};a.prototype.initDataClasses=function(a){var b=this.chart,c,e=0,d=b.options.chart.colorCount,f=this.options,h=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];a.dataClasses.forEach(function(a,g){a=E(a);c.push(a);if(b.styledMode||!a.color)"category"=== f.dataClassColor?(b.styledMode||(g=b.options.colors,d=g.length,a.color=g[e]),a.colorIndex=e,e++,e===d&&(e=0)):a.color=u(f.minColor).tweenTo(u(f.maxColor),2>h?.5:g/(h-1))})};a.prototype.hasData=function(){return!!(this.tickPositions||[]).length};a.prototype.setTickPositions=function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};a.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color= u(a[1])})};a.prototype.setOptions=function(a){b.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker};a.prototype.setAxisSize=function(){var b=this.legendSymbol,e=this.chart,d=e.options.legend||{},f,h;b?(this.left=d=b.attr("x"),this.top=f=b.attr("y"),this.width=h=b.attr("width"),this.height=b=b.attr("height"),this.right=e.chartWidth-d-h,this.bottom=e.chartHeight-f-b,this.len=this.horiz?h:b,this.pos=this.horiz?d:f):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||a.defaultLegendLength}; a.prototype.normalizedValue=function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};a.prototype.toColor=function(a,b){var c=this.dataClasses,e=this.stops,d;if(c)for(d=c.length;d--;){var f=c[d];var g=f.from;e=f.to;if(("undefined"===typeof g||a>=g)&&("undefined"===typeof e||a<=e)){var h=f.color;b&&(b.dataClass=d,b.colorIndex=f.colorIndex);break}}else{a=this.normalizedValue(a);for(d=e.length;d--&&!(a>e[d][0]););g=e[d]||e[d+1];e=e[d+1]||g;a=1-(e[0]- a)/(e[0]-g[0]||1);h=g.color.tweenTo(e.color,a)}return h};a.prototype.getOffset=function(){var a=this.legendGroup,e=this.chart.axisOffset[this.side];a&&(this.axisParent=a,b.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=e)};a.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}}; a.prototype.drawLegendSymbol=function(b,e){var c=b.padding,d=b.options,f=this.horiz,g=x(d.symbolWidth,f?a.defaultLegendLength:12),h=x(d.symbolHeight,f?12:a.defaultLegendLength),k=x(d.labelPadding,f?16:30);d=x(d.itemDistance,10);this.setLegendColor();e.legendSymbol=this.chart.renderer.rect(0,b.baseline-11,g,h).attr({zIndex:1}).add(e.legendGroup);this.legendItemWidth=g+c+(f?d:k);this.legendItemHeight=h+c+(f?k:0)};a.prototype.setState=function(a){this.series.forEach(function(b){b.setState(a)})};a.prototype.setVisible= function(){};a.prototype.getSeriesExtremes=function(){var a=this.series,b=a.length,e;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;){var d=a[b];var h=d.colorKey=x(d.options.colorKey,d.colorKey,d.pointValKey,d.zoneAxis,"y");var k=d.pointArrayMap;var m=d[h+"Min"]&&d[h+"Max"];if(d[h+"Data"])var q=d[h+"Data"];else if(k){q=[];k=k.indexOf(h);var r=d.yData;if(0<=k&&r)for(e=0;ef+g&&(h=f+g+2);e.plotX=h;e.plotY=this.len-h;b.prototype.drawCrosshair.call(this,a,e);e.plotX= c;e.plotY=d;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}))}};a.prototype.getPlotLinePath=function(a){var c=this.left,e=a.translatedValue,d=this.top;return w(e)?this.horiz?[["M",e-4,d-6],["L",e+4,d-6],["L",e,d],["Z"]]:[["M",c,e],["L",c-6,e+6],["L",c-6,e-6],["Z"]]:b.prototype.getPlotLinePath.call(this, a)};a.prototype.update=function(a,e){var c=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&c.allItems||this.dataClasses)&&this.destroyItems();b.prototype.update.call(this,a,e);this.legendItem&&(this.setLegendColor(),c.colorizeItem(this,!0))};a.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};a.prototype.destroy=function(){this.chart.isDirtyLegend= !0;this.destroyItems();b.prototype.destroy.apply(this,[].slice.call(arguments))};a.prototype.remove=function(a){this.destroyItems();b.prototype.remove.call(this,a)};a.prototype.getDataClassLegendSymbols=function(){var a=this,b=a.chart,e=a.legendItems,d=b.options.legend,f=d.valueDecimals,h=d.valueSuffix||"",k;e.length||a.dataClasses.forEach(function(c,d){var g=!0,l=c.from,m=c.to,q=b.numberFormatter;k="";"undefined"===typeof l?k="< ":"undefined"===typeof m&&(k="> ");"undefined"!==typeof l&&(k+=q(l, f)+h);"undefined"!==typeof l&&"undefined"!==typeof m&&(k+=" - ");"undefined"!==typeof m&&(k+=q(m,f)+h);e.push(K({chart:b,name:k,options:{},drawLegendSymbol:p.drawRectangle,visible:!0,setState:t,isDataClass:!0,setVisible:function(){g=a.visible=!g;a.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===d&&a.setVisible(g)})});b.legend.colorizeItem(this,g)}},c))});return e};a.defaultLegendLength=200;a.defaultColorAxisOptions={lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72, startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:h.neutralColor40},labels:{overflow:"justify",rotation:0},minColor:h.highlightColor10,maxColor:h.highlightColor100,tickLength:5,showInLegend:!0};a.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return a}(a);Array.prototype.push.apply(a.keepProps,q.keepProps);A.ColorAxis=q;["fill","stroke"].forEach(function(a){z.prototype[a+"Setter"]=function(){this.elem.attr(a,u(this.start).tweenTo(u(this.end), this.pos),null,!0)}});H(n,"afterGetAxes",function(){var a=this,b=a.options;this.colorAxis=[];b.colorAxis&&(b.colorAxis=r(b.colorAxis),b.colorAxis.forEach(function(b,e){b.index=e;new q(a,b)}))});H(f,"bindAxes",function(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]});H(y,"afterGetAllItems",function(a){var b=this,c=[],e,d,f=function(c){c=a.allItems.indexOf(c);-1!==c&&(b.destroyItem(a.allItems[c]),a.allItems.splice(c,1))};(this.chart.colorAxis|| []).forEach(function(a){(e=a.options)&&e.showInLegend&&(e.dataClasses&&e.visible?c=c.concat(a.getDataClassLegendSymbols()):e.visible&&c.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||e.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){f(a)}):f(a)}))});for(d=c.length;d--;)a.allItems.unshift(c[d])});H(y,"afterColorizeItem",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})});H(y,"afterUpdate",function(){var a=this.chart.colorAxis; a&&a.forEach(function(a,b,e){a.update({},e)})});H(f,"afterTranslate",function(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()});return q});J(a,"Mixins/ColorMapSeries.js",[a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,n,C){var u=C.defined;C=C.addEvent;var z=a.noop;a=a.seriesTypes;C(n,"afterSetState",function(a){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:a&&"hover"===a.state?1:0})});return{colorMapPointMixin:{dataLabelOnNull:!0, moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}},colorMapSeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:z,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:a.column.prototype.pointAttribs,colorAttribs:function(a){var n={};!u(a.color)||a.state&&"normal"!==a.state||(n[this.colorProp||"fill"]=a.color);return n}}}});J(a,"Maps/MapNavigationOptionsDefault.js", [a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,n){n=n.extend;var u={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};n(a.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return a.defaultOptions.mapNavigation= u});J(a,"Maps/MapNavigation.js",[a["Core/Chart/Chart.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n,C){function u(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function z(a){this.init(a)}var A=n.doc,y=C.addEvent,p=C.extend,h=C.merge,d=C.objectEach,f=C.pick;z.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};z.prototype.update=function(a){var b=this.chart,n=b.options.mapNavigation,t,z,A,w,E=function(a){this.handler.call(b, a);u(a)},x=b.mapNavButtons;a&&(n=b.options.mapNavigation=h(b.options.mapNavigation,a));for(;x.length;)x.pop().destroy();f(n.enableButtons,n.enabled)&&!b.renderer.forExport&&d(n.buttons,function(a,d){a=h(n.buttonOptions,a);!b.styledMode&&a.theme&&(t=a.theme,t.style=h(a.theme.style,a.style),A=(z=t.states)&&z.hover,w=z&&z.select,delete t.states);var e=b.renderer.button(a.text||"",0,0,E,t,A,w,void 0,"zoomIn"===d?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in", zoomOut:"zoom-out"}[d]).attr({width:a.width,height:a.height,title:b.options.lang[d],padding:a.padding,zIndex:5}).add();e.handler=a.onclick;y(e.element,"dblclick",u);x.push(e);p(a,{width:e.width,height:2*e.height});if(b.hasLoaded)e.align(a,!1,a.alignTo);else var f=y(b,"load",function(){e.element&&e.align(a,!1,a.alignTo);f()})});this.updateEvents(n)};z.prototype.updateEvents=function(a){var b=this.chart;f(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick|| y(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());f(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||y(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),u(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())}; p(a.prototype,{fitToBox:function(a,d){[["x","width"],["y","height"]].forEach(function(b){var f=b[0];b=b[1];a[f]+a[b]>d[f]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[f]=d[f]):a[f]=d[f]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[f]=b.dataMax-b.dataMin&&t.y<=k.dataMin&&t.height>=k.dataMax-k.dataMin;p&&b.mapAxis&&(b.mapAxis.fixTo=[p-b.pos,d]);n&&k.mapAxis&&(k.mapAxis.fixTo=[n-k.pos,h]);"undefined"===typeof a||r?(b.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(b.setExtremes(t.x,t.x+t.width,!1),k.setExtremes(t.y,t.y+t.height,!1));this.redraw(u)}});y(a,"beforeRender",function(){this.mapNavigation=new z(this);this.mapNavigation.update()}); n.MapNavigation=z});J(a,"Maps/MapPointer.js",[a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,n){var u=n.extend,D=n.pick;n=n.wrap;var z=0,A;u(a.prototype,{onContainerDblClick:function(a){var p=this.chart;a=this.normalize(a);p.options.mapNavigation.enableDoubleClickZoomTo?p.pointer.inClass(a.target,"highcharts-tracker")&&p.hoverPoint&&p.hoverPoint.zoomTo():p.isInsidePlot(a.chartX-p.plotLeft,a.chartY-p.plotTop)&&p.mapZoom(.5,p.xAxis[0].toValue(a.chartX),p.yAxis[0].toValue(a.chartY),a.chartX, a.chartY)},onContainerMouseWheel:function(a){var p=this.chart;a=this.normalize(a);var h=a.deltaY||a.detail||-(a.wheelDelta/120);1<=Math.abs(h)&&(z+=Math.abs(h),A&&clearTimeout(A),A=setTimeout(function(){z=0},50));10>z&&p.isInsidePlot(a.chartX-p.plotLeft,a.chartY-p.plotTop)&&p.mapZoom(Math.pow(p.options.mapNavigation.mouseWheelSensitivity,h),p.xAxis[0].toValue(a.chartX),p.yAxis[0].toValue(a.chartY),a.chartX,a.chartY,1>Math.abs(h)?!1:void 0)}});n(a.prototype,"zoomOption",function(a){var p=this.chart.options.mapNavigation; D(p.enableTouchZoom,p.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});n(a.prototype,"pinchTranslate",function(a,p,h,d,f,b,k){a.call(this,p,h,d,f,b,k);"map"===this.chart.options.chart.type&&this.hasZoom&&(a=d.scaleX>d.scaleY,this.pinchTranslateDirection(!a,p,h,d,f,b,k,a?d.scaleX:d.scaleY))})});J(a,"Maps/MapSymbols.js",[a["Core/Renderer/SVG/SVGRenderer.js"]],function(a){function n(a,n,u,A,y,p,h,d){return[["M",a+y,n],["L",a+u-p,n],["C",a+u-p/2,n,a+u,n+p/ 2,a+u,n+p],["L",a+u,n+A-h],["C",a+u,n+A-h/2,a+u-h/2,n+A,a+u-h,n+A],["L",a+d,n+A],["C",a+d/2,n+A,a,n+A-d/2,a,n+A-d],["L",a,n+y],["C",a,n+y/2,a+y/2,n,a+y,n],["Z"]]}a=a.prototype.symbols;a.bottombutton=function(a,u,z,A,y){y=y&&y.r||0;return n(a-1,u-1,z,A,0,0,y,y)};a.topbutton=function(a,u,z,A,y){y=y&&y.r||0;return n(a-1,u-1,z,A,y,y,0,0)};return a});J(a,"Core/Chart/MapChart.js",[a["Core/Chart/Chart.js"],a["Core/DefaultOptions.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a, n,C,D){var u=this&&this.__extends||function(){var a=function(d,f){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,f)};return function(d,f){function b(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}(),A=n.getOptions,y=D.merge,p=D.pick;a=function(a){function d(){return null!==a&&a.apply(this,arguments)||this}u(d,a);d.prototype.init=function(d, b){var f={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},h=A().credits;d=y({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:p(h.mapText,' \u00a9 {geojson.copyrightShort}'),mapTextFull:p(h.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:f,yAxis:y(f,{reversed:!0})},d,{chart:{inverted:!1,alignTicks:!1}});a.prototype.init.call(this,d,b)};return d}(a);(function(a){a.maps={};a.mapChart=function(d,f,b){return new a(d, f,b)};a.splitPath=function(a){"string"===typeof a&&(a=a.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),a=a.split(/[ ,;]+/).map(function(a){return/[A-za-z]/.test(a)?a:parseFloat(a)}));return C.prototype.pathToSegments(a)}})(a||(a={}));return a});J(a,"Series/Map/MapPoint.js",[a["Mixins/ColorMapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a=function(n,p){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return a(n,p)};return function(n,p){function h(){this.constructor=n}a(n,p);n.prototype=null===p?Object.create(p):(h.prototype=p.prototype,new h)}}();a=a.colorMapPointMixin;var z=C.extend;n=function(a){function n(){var p=null!==a&&a.apply(this,arguments)||this;p.options=void 0;p.path=void 0;p.series=void 0;return p}u(n,a);n.prototype.applyOptions=function(p,h){var d=this.series;p=a.prototype.applyOptions.call(this, p,h);h=d.joinBy;d.mapData&&d.mapMap&&(h=a.prototype.getNestedProperty.call(p,h[1]),(h="undefined"!==typeof h&&d.mapMap[h])?(d.xyFromShape&&(p.x=h._midX,p.y=h._midY),z(p,h)):p.value=p.value||null);return p};n.prototype.onMouseOver=function(p){C.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)a.prototype.onMouseOver.call(this,p);else this.series.onMouseOut(p)};n.prototype.zoomTo=function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY, this._maxY,!1);a.chart.redraw()};return n}(n.seriesTypes.scatter.prototype.pointClass);z(n.prototype,{dataLabelOnNull:a.dataLabelOnNull,isValid:a.isValid,moveToTopOnHover:a.moveToTopOnHover});return n});J(a,"Series/Map/MapSeries.js",[a["Mixins/ColorMapSeries.js"],a["Core/Globals.js"],a["Mixins/LegendSymbol.js"],a["Core/Chart/MapChart.js"],a["Series/Map/MapPoint.js"],a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]], function(a,n,C,D,z,A,y,p,h,d){var f=this&&this.__extends||function(){var a=function(b,c){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,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();a=a.colorMapSeriesMixin;var b=n.noop,k=D.maps,u=D.splitPath;D=p.seriesTypes;var t=D.column,H=D.scatter;D=d.extend; var K=d.fireEvent,w=d.getNestedProperty,E=d.isArray,x=d.isNumber,r=d.merge,q=d.objectEach,e=d.pick,m=d.splat;d=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.baseTrans=void 0;b.chart=void 0;b.data=void 0;b.group=void 0;b.joinBy=void 0;b.options=void 0;b.points=void 0;b.transformGroup=void 0;return b}f(b,a);b.prototype.animate=function(a){var b=this.options.animation,c=this.group,e=this.xAxis,d=this.yAxis,f=e.pos,g=d.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}), a?c.attr({translateX:f+e.len/2,translateY:g+d.len/2,scaleX:.001,scaleY:.001}):c.animate({translateX:f,translateY:g,scaleX:1,scaleY:1},b))};b.prototype.animateDrilldown=function(a){var b=this.chart.plotBox,c=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],e=c.bBox,d=this.chart.options.drilldown.animation;a||(a=Math.min(e.width/b.width,e.height/b.height),c.shapeArgs={scaleX:a,scaleY:a,translateX:e.x,translateY:e.y},this.points.forEach(function(a){a.graphic&&a.graphic.attr(c.shapeArgs).animate({scaleX:1, scaleY:1,translateX:0,translateY:0},d)}))};b.prototype.animateDrillupFrom=function(a){t.prototype.animateDrillupFrom.call(this,a)};b.prototype.animateDrillupTo=function(a){t.prototype.animateDrillupTo.call(this,a)};b.prototype.doFullTranslate=function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans};b.prototype.drawMapDataLabels=function(){y.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};b.prototype.drawPoints= function(){var a=this,b=a.xAxis,c=a.yAxis,d=a.group,f=a.chart,g=f.renderer,h=this.baseTrans;a.transformGroup||(a.transformGroup=g.g().attr({scaleX:1,scaleY:1}).add(d),a.transformGroup.survive=!0);if(a.doFullTranslate())f.hasRendered&&!f.styledMode&&a.points.forEach(function(b){b.shapeArgs&&(b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}),a.group=a.transformGroup,t.prototype.drawPoints.apply(a),a.group=d,a.points.forEach(function(b){if(b.graphic){var c="";b.name&&(c+="highcharts-name-"+b.name.replace(/ /g, "-").toLowerCase());b.properties&&b.properties["hc-key"]&&(c+=" highcharts-key-"+b.properties["hc-key"].toLowerCase());c&&b.graphic.addClass(c);f.styledMode&&b.graphic.css(a.pointAttribs(b,b.selected&&"select"||void 0))}}),this.baseTrans={originX:b.min-b.minPixelPadding/b.transA,originY:c.min-c.minPixelPadding/c.transA+(c.reversed?0:c.len/c.transA),transAX:b.transA,transAY:c.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1});else{var k=b.transA/h.transAX;var m=c.transA/ h.transAY;var q=b.toPixels(h.originX,!0);var r=c.toPixels(h.originY,!0);.99k&&.99m&&(m=k=1,q=Math.round(q),r=Math.round(r));var p=this.transformGroup;if(f.renderer.globalAnimation){var n=p.attr("translateX");var x=p.attr("translateY");var u=p.attr("scaleX");var w=p.attr("scaleY");p.attr({animator:0}).animate({animator:1},{step:function(a,b){p.attr({translateX:n+(q-n)*b.pos,translateY:x+(r-x)*b.pos,scaleX:u+(k-u)*b.pos,scaleY:w+(m-w)*b.pos})}})}else p.attr({translateX:q,translateY:r, scaleX:k,scaleY:m})}f.styledMode||d.element.setAttribute("stroke-width",e(a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"],1)/(k||1));this.drawMapDataLabels()};b.prototype.getBox=function(a){var b=Number.MAX_VALUE,c=-b,d=b,f=-b,g=b,k=b,l=this.xAxis,m=this.yAxis,q;(a||[]).forEach(function(a){if(a.path){"string"===typeof a.path?a.path=u(a.path):"M"===a.path[0]&&(a.path=h.prototype.pathToSegments(a.path));var l=a.path||[],m=-b,r=b,p=-b,n=b,t=a.properties;a._foundBox|| (l.forEach(function(a){var b=a[a.length-2];a=a[a.length-1];"number"===typeof b&&"number"===typeof a&&(r=Math.min(r,b),m=Math.max(m,b),n=Math.min(n,a),p=Math.max(p,a))}),a._midX=r+(m-r)*e(a.middleX,t&&t["hc-middle-x"],.5),a._midY=n+(p-n)*e(a.middleY,t&&t["hc-middle-y"],.5),a._maxX=m,a._minX=r,a._maxY=p,a._minY=n,a.labelrank=e(a.labelrank,(m-r)*(p-n)),a._foundBox=!0);c=Math.max(c,a._maxX);d=Math.min(d,a._minX);f=Math.max(f,a._maxY);g=Math.min(g,a._minY);k=Math.min(a._maxX-a._minX,a._maxY-a._minY,k); q=!0}});q&&(this.minY=Math.min(g,e(this.minY,b)),this.maxY=Math.max(f,e(this.maxY,-b)),this.minX=Math.min(d,e(this.minX,b)),this.maxX=Math.max(c,e(this.maxX,-b)),l&&"undefined"===typeof l.options.minRange&&(l.minRange=Math.min(5*k,(this.maxX-this.minX)/5,l.minRange||b)),m&&"undefined"===typeof m.options.minRange&&(m.minRange=Math.min(5*k,(this.maxY-this.minY)/5,m.minRange||b)))};b.prototype.getExtremes=function(){var a=y.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;this.chart.hasRendered&& this.isDirtyData&&this.getBox(this.options.data);x(b)&&(this.valueMin=b);x(a)&&(this.valueMax=a);return{dataMin:this.minY,dataMax:this.maxY}};b.prototype.hasData=function(){return!!this.processedXData.length};b.prototype.pointAttribs=function(a,b){b=a.series.chart.styledMode?this.colorAttribs(a):t.prototype.pointAttribs.call(this,a,b);b["stroke-width"]=e(a.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"],"inherit");return b};b.prototype.render=function(){var a= this,b=y.prototype.render;a.chart.renderer.isVML&&3E3m.length&&"string"===typeof b[0]&&(a[c]["hc-key"]=b[0],++e);for(var f= 0;f"},turboThreshold:0,allAreas:!0,borderColor:A.neutralColor20,borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:A.neutralColor20},inactive:{opacity:1}}});return b}(H); D(d.prototype,{type:"map",axisTypes:a.axisTypes,colorAttribs:a.colorAttribs,colorKey:a.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:C.drawRectangle,forceDL:!0,getExtremesFromAll:!0,getSymbol:a.getSymbol,parallelArrays:a.parallelArrays,pointArrayMap:a.pointArrayMap,pointClass:z,preserveAspectRatio:!0,searchPoint:b,trackerGroups:a.trackerGroups,useMapGeometry:!0});p.registerSeriesType("map",d);"";return d});J(a,"Series/MapLine/MapLineSeries.js",[a["Series/Map/MapSeries.js"], a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a=function(h,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(h,d)};return function(h,d){function f(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),z=n.series,A=C.extend,y=C.merge;C=function(p){function h(){var a=null!== p&&p.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}u(h,p);h.prototype.pointAttribs=function(d,f){d=a.prototype.pointAttribs.call(this,d,f);d.fill=this.options.fillColor;return d};h.defaultOptions=y(a.defaultOptions,{lineWidth:1,fillColor:"none"});return h}(a);A(C.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:z.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});n.registerSeriesType("mapline",C);"";return C}); J(a,"Series/MapPoint/MapPointPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n){var u=this&&this.__extends||function(){var a=function(n,u){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var d in h)h.hasOwnProperty(d)&&(a[d]=h[d])};return a(n,u)};return function(n,u){function p(){this.constructor=n}a(n,u);n.prototype=null===u?Object.create(u):(p.prototype=u.prototype,new p)}}(),D=n.merge;return function(a){function n(){var n= null!==a&&a.apply(this,arguments)||this;n.options=void 0;n.series=void 0;return n}u(n,a);n.prototype.applyOptions=function(n,p){n="undefined"!==typeof n.lat&&"undefined"!==typeof n.lon?D(n,this.series.chart.fromLatLonToPoint(n)):n;return a.prototype.applyOptions.call(this,n,p)};return n}(a.seriesTypes.scatter.prototype.pointClass)});J(a,"Series/MapPoint/MapPointSeries.js",[a["Series/MapPoint/MapPointPoint.js"],a["Core/Color/Palette.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a, n,C,D){var u=this&&this.__extends||function(){var a=function(d,f){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,f)};return function(d,f){function b(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}(),A=C.seriesTypes.scatter,y=D.extend,p=D.merge;D=function(a){function d(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options= void 0;d.points=void 0;return d}u(d,a);d.prototype.drawDataLabels=function(){a.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};d.defaultOptions=p(A.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:n.neutralColor100}}});return d}(A);y(D.prototype,{type:"mappoint",forceDL:!0,pointClass:a});C.registerSeriesType("mappoint",D);"";return D});J(a,"Series/Bubble/BubblePoint.js", [a["Core/Series/Point.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a=function(n,u){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var d in h)h.hasOwnProperty(d)&&(a[d]=h[d])};return a(n,u)};return function(n,u){function p(){this.constructor=n}a(n,u);n.prototype=null===u?Object.create(u):(p.prototype=u.prototype,new p)}}();C=C.extend;n=function(n){function z(){var a= null!==n&&n.apply(this,arguments)||this;a.options=void 0;a.series=void 0;return a}u(z,n);z.prototype.haloPath=function(n){return a.prototype.haloPath.call(this,0===n?0:(this.marker?this.marker.radius||0:0)+n)};return z}(n.seriesTypes.scatter.prototype.pointClass);C(n.prototype,{ttBelow:!1});return n});J(a,"Series/Bubble/BubbleLegend.js",[a["Core/Chart/Chart.js"],a["Core/Color/Color.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Legend.js"],a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"], a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p,h){var d=n.parse,f=D.noop;A=A.setOptions;n=h.addEvent;var b=h.arrayMax,k=h.arrayMin,u=h.isNumber,t=h.merge,H=h.objectEach,K=h.pick,w=h.stableSort;h=h.wrap;"";A({legend:{bubbleLegend:{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:y.neutralColor100},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}}});y=function(){function a(a,b){this.options=this.symbols=this.visible=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=f;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,e=K(a.options.itemDistance,20),f=d.ranges;var c=d.connectorDistance;this.fontMetrics=b.renderer.fontMetrics(d.labels.style.fontSize);f&&f.length&&u(f[0].value)?(w(f,function(a,b){return b.value-a.value}),this.ranges=f,this.setOptions(),this.render(), b=this.getMaxLabelSize(),f=this.ranges[0].radius,a=2*f,c=c-f+b.width,c=0= 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],c=e.renderer,g=this.symbols;e=g.labels;var h=a.center,k=Math.abs(a.radius),n=b.connectorDistance||0,p=d.align;n=this.legend.options.rtl||"left"===p?-n:n;var t=b.connectorWidth,x=this.ranges[0].radius||0,u=h-k-b.borderWidth/2+t/2,w=this.fontMetrics;w=w.f/2-(w.h- w.f)/2;var B=c.styledMode;"center"===p&&(n=0,b.connectorDistance=0,a.labelAttribs.align="center");p=u+b.labels.y;var y=x+n+b.labels.x;g.bubbleItems.push(c.circle(x,h+((u%1?1:.5)-(t%2?0:.5)),k).attr(B?{}:a.bubbleAttribs).addClass((B?"highcharts-color-"+f.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));g.connectors.push(c.path(c.crispLine([["M",x,u],["L",x+n,u]],b.connectorWidth)).attr(B?{}:a.connectorAttribs).addClass((B?"highcharts-color-"+this.options.seriesIndex+ " ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));a=c.text(this.formatLabel(a),y,p+w).attr(B?{}:a.labelAttribs).css(B?{}:d.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);e.push(a);a.placed=!0;a.alignAttr={x:y,y:p+w}};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?C.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,e){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[e].show():b.connectors[e].hide()}))};a.prototype.getRanges=function(){var a=this.legend.bubbleLegend,d=a.options.ranges,f,e=Number.MAX_VALUE, h=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(f=a.zData.filter(u),f.length&&(e=K(a.options.zMin,Math.min(e,Math.max(k(f),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),h=K(a.options.zMax,Math.max(h,b(f)))))});var c=e===h?[{value:h}]:[{value:e},{value:(e+h)/2},{value:h,autoRanges:!0}];d.length&&d[0].radius&&c.reverse();c.forEach(function(a,b){d&&d[b]&&(c[b]=t(d[b],a))});return c};a.prototype.predictBubbleSizes=function(){var a=this.chart, b=this.fontMetrics,d=a.legend.options,e="horizontal"===d.layout,f=e?a.legend.lastLineHeight:0,c=a.plotSizeX,g=a.plotSizeY,h=a.series[this.options.seriesIndex];a=Math.ceil(h.minPxSize);var k=Math.ceil(h.maxPxSize);h=h.options.maxSize;var n=Math.min(g,c);if(d.floating||!/%$/.test(h))b=k;else if(h=parseFloat(h),b=(n+f-b.h/2)*h/100/(h/100+1),e&&g-b>=c||!e&&c-b>=g)b=k;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];1h.height&&(h.height=a[e].itemHeight);h.step=f}return b};z.prototype.retranslateItems=function(a){var b,d,f,e=this.options.rtl,h=0;this.allItems.forEach(function(c,g){b=c.legendGroup.translateX;d=c._legendItemPos[1];if((f=c.movementX)||e&&c.ranges)f=e?b-c.options.maxSize/2:b+f,c.legendGroup.attr({translateX:f});g>a[h].step&&h++;c.legendGroup.attr({translateY:Math.round(d+a[h].height/2)});c._legendItemPos[1]= d+a[h].height/2})};n(p,"legendItemClick",function(){var a=this.chart,b=this.visible,d=this.chart.legend;d&&d.bubbleLegend&&(this.visible=!b,this.ignoreSeries=b,a=0<=a.getVisibleBubbleSeriesIndex(),d.bubbleLegend.visible!==a&&(d.update({bubbleLegend:{enabled:a}}),d.bubbleLegend.visible=a),this.visible=b)});h(a.prototype,"drawChartBox",function(a,b,d){var f=this.legend,e=0<=this.getVisibleBubbleSeriesIndex();if(f&&f.options.enabled&&f.bubbleLegend&&f.options.bubbleLegend.autoRanges&&e){var h=f.bubbleLegend.options; e=f.bubbleLegend.predictBubbleSizes();f.bubbleLegend.updateRanges(e[0],e[1]);h.placed||(f.group.placed=!1,f.allItems.forEach(function(a){a.legendGroup.translateY=null}));f.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();h.placed||(a.setScale(),a.updateNames(),H(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});h.placed=!0;this.getMargins();a.call(this,b,d);f.bubbleLegend.correctSizes();f.retranslateItems(f.getLinesHeights())}else a.call(this,b,d),f&&f.options.enabled&& f.bubbleLegend&&(f.render(),f.retranslateItems(f.getLinesHeights()))});D.BubbleLegend=y;return D.BubbleLegend});J(a,"Series/Bubble/BubbleSeries.js",[a["Core/Axis/Axis.js"],a["Series/Bubble/BubblePoint.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y){var p=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)}}(),h=C.parse;C=D.noop;var d=A.seriesTypes;D=d.column;var f=d.scatter,b=y.arrayMax,k=y.arrayMin,u=y.clamp,t=y.extend,H=y.isNumber,K=y.merge,w=y.pick,E=y.pInt;y=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.maxPxSize=void 0;b.minPxSize=void 0;b.options= void 0;b.points=void 0;b.radii=void 0;b.yData=void 0;b.zData=void 0;return b}p(b,a);b.prototype.animate=function(a){!a&&this.points.length=this.minPxSize/2?(c.marker=t(c.marker,{radius:f,width:2*f,height:2*f}),c.dlBox={x:c.plotX-f,y:c.plotY-f,width:2*f,height:2*f}):c.shapeArgs=c.plotY=c.dlBox=void 0}};b.defaultOptions=K(f.defaultOptions,{dataLabels:{formatter:function(){return this.point.z}, 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 b}(f);t(y.prototype,{alignDataLabel:D.prototype.alignDataLabel,applyZones:C,bubblePadding:!0,buildKDTree:C,directTouch:!0,isBubble:!0,pointArrayMap:["y", "z"],pointClass:n,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});a.prototype.beforePadding=function(){var a=this,d=this.len,f=this.chart,e=0,h=d,c=this.isXAxis,g=c?"xData":"yData",l=this.min,n={},p=Math.min(f.plotWidth,f.plotHeight),t=Number.MAX_VALUE,B=-Number.MAX_VALUE,y=this.max-l,z=d/y,A=[];this.series.forEach(function(e){var d=e.options;!e.bubblePadding||!e.visible&&f.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,A.push(e), c&&(["minSize","maxSize"].forEach(function(a){var b=d[a],c=/%$/.test(b);b=E(b);n[a]=c?p*b/100:b}),e.minPxSize=n.minSize,e.maxPxSize=Math.max(n.maxSize,n.minSize),e=e.zData.filter(H),e.length&&(t=w(d.zMin,u(k(e),!1===d.displayNegative?d.zThreshold:-Number.MAX_VALUE,t)),B=w(d.zMax,Math.max(B,b(e))))))});A.forEach(function(b){var d=b[g],f=d.length;c&&b.getRadii(t,B,b);if(0"},states:{hover:{halo:!1,brightness:.2}}});return f}(k);t(y.prototype,{alignDataLabel:b.prototype.alignDataLabel,axisTypes:n.axisTypes,colorAttribs:n.colorAttribs,colorKey:n.colorKey,directTouch:!0,drawLegendSymbol:D.drawRectangle,getExtremesFromAll:!0,getSymbol:d.prototype.getSymbol,parallelArrays:n.parallelArrays,pointArrayMap:["y","value"],pointClass:C, trackerGroups:n.trackerGroups});A.registerSeriesType("heatmap",y);"";"";return y});J(a,"Extensions/GeoJSON.js",[a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n,C,D){function u(a,b){var d,f=!1,h=a.x,n=a.y;a=0;for(d=b.length-1;an;var u=b[d][1]>n;p!==u&&h<(b[d][0]-b[a][0])*(n-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(f=!f)}return f}var A=n.format,y=C.win,p=D.error,h=D.extend,d=D.merge;n=D.wrap;"";a.prototype.transformFromLatLon= function(a,b){var d=this.userOptions.chart&&this.userOptions.chart.proj4||y.proj4;if(!d)return p(21,!1,this),{x:0,y:null};a=d(b.crs,[a.lon,a.lat]);d=b.cosAngle||b.rotation&&Math.cos(b.rotation);var f=b.sinAngle||b.rotation&&Math.sin(b.rotation);a=b.rotation?[a[0]*d+a[1]*f,-a[0]*f+a[1]*d]:a;return{x:((a[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-a[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};a.prototype.transformToLatLon=function(a, b){if("undefined"===typeof y.proj4)p(21,!1,this);else{a={x:((a.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-a.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=y.proj4(b.crs,"WGS84",b.rotation?{x:a.x*d+a.y*-f,y:a.x*f+a.y*d}:a);return{lat:b.y,lon:b.x}}};a.prototype.fromPointToLatLon=function(a){var b=this.mapTransforms,d;if(b){for(d in b)if(Object.hasOwnProperty.call(b, d)&&b[d].hitZone&&u({x:a.x,y:-a.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(a,b[d]);return this.transformToLatLon(a,b["default"])}p(22,!1,this)};a.prototype.fromLatLonToPoint=function(a){var b=this.mapTransforms,d;if(!b)return p(22,!1,this),{x:0,y:null};for(d in b)if(Object.hasOwnProperty.call(b,d)&&b[d].hitZone){var f=this.transformFromLatLon(a,b[d]);if(u({x:f.x,y:-f.y},b[d].hitZone.coordinates[0]))return f}return this.transformFromLatLon(a,b["default"])};C.geojson=function(a,b, d){var f=[],k=[],n=function(a){a.forEach(function(a,b){0===b?k.push(["M",a[0],-a[1]]):k.push(["L",a[0],-a[1]])})};b=b||"map";a.features.forEach(function(a){var d=a.geometry,p=d.type;d=d.coordinates;a=a.properties;var t;k=[];"map"===b||"mapbubble"===b?("Polygon"===p?(d.forEach(n),k.push(["Z"])):"MultiPolygon"===p&&(d.forEach(function(a){a.forEach(n)}),k.push(["Z"])),k.length&&(t={path:k})):"mapline"===b?("LineString"===p?n(d):"MultiLineString"===p&&d.forEach(n),k.length&&(t={path:k})):"mappoint"=== b&&"Point"===p&&(t={x:d[0],y:-d[1]});t&&f.push(h(t,{name:a.name||a.NAME,properties:a}))});d&&a.copyrightShort&&(d.chart.mapCredits=A(d.chart.options.credits.mapText,{geojson:a}),d.chart.mapCreditsFull=A(d.chart.options.credits.mapTextFull,{geojson:a}));return f};n(a.prototype,"addCredits",function(a,b){b=d(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})});J(a,"masters/modules/map.src.js",[a["Core/Globals.js"], a["Core/Chart/MapChart.js"]],function(a,n){a.MapChart=n;a.mapChart=a.Map=n.mapChart;a.maps=n.maps});J(a,"masters/highmaps.src.js",[a["masters/highcharts.src.js"]],function(a){a.product="Highmaps";return a});a["masters/highmaps.src.js"]._modules=a;return a["masters/highmaps.src.js"]}); //# sourceMappingURL=highmaps.js.map