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