/* Highmaps JS v10.0.0 (2022-03-16) (c) 2011-2021 Torstein Honsi License: www.highcharts.com/license */ (function(f,I){"object"===typeof module&&module.exports?(I["default"]=I,module.exports=f.document?I(f):I):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return I(f)}):(f.Highcharts&&f.Highcharts.error(16,!0),f.Highcharts=I(f))})("undefined"!==typeof window?window:this,function(f){function I(b,f,v,B){b.hasOwnProperty(f)||(b[f]=B.apply(null,v))}f={};I(f,"Core/Globals.js",[],function(){var b;(function(b){b.SVG_NS="http://www.w3.org/2000/svg";b.product="Highcharts";b.version= "10.0.0";b.win="undefined"!==typeof window?window:{};b.doc=b.win.document;b.svg=b.doc&&b.doc.createElementNS&&!!b.doc.createElementNS(b.SVG_NS,"svg").createSVGRect;b.userAgent=b.win.navigator&&b.win.navigator.userAgent||"";b.isChrome=-1!==b.userAgent.indexOf("Chrome");b.isFirefox=-1!==b.userAgent.indexOf("Firefox");b.isMS=/(edge|msie|trident)/i.test(b.userAgent)&&!b.win.opera;b.isSafari=!b.isChrome&&-1!==b.userAgent.indexOf("Safari");b.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(b.userAgent); b.isWebKit=-1!==b.userAgent.indexOf("AppleWebKit");b.deg2rad=2*Math.PI/360;b.hasBidiBug=b.isFirefox&&4>parseInt(b.userAgent.split("Firefox/")[1],10);b.hasTouch=!!b.win.TouchEvent;b.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];b.noop=function(){};b.supportsPassiveEvents=function(){var f=!1;if(!b.isMS){var J=Object.defineProperty({},"passive",{get:function(){f=!0}});b.win.addEventListener&&b.win.removeEventListener&&(b.win.addEventListener("testPassive",b.noop,J),b.win.removeEventListener("testPassive", b.noop,J))}return f}();b.charts=[];b.dateFormats={};b.seriesTypes={};b.symbolSizes={};b.chartCount=0})(b||(b={}));"";return b});I(f,"Core/Utilities.js",[f["Core/Globals.js"]],function(b){function f(c,p,g,h){var F=p?"Highcharts error":"Highcharts warning";32===c&&(c=F+": Deprecated member");var D=l(c),a=D?F+" #"+c+": www.highcharts.com/errors/"+c+"/":c.toString();if("undefined"!==typeof h){var m="";D&&(a+="?");C(h,function(c,p){m+="\n - "+p+": "+c;D&&(a+=encodeURI(p)+"="+encodeURI(c))});a+=m}t(b,"displayError", {chart:g,code:c,message:a,params:h},function(){if(p)throw Error(a);u.console&&-1===f.messages.indexOf(a)&&console.warn(a)});f.messages.push(a)}function v(c,p){var F={};C(c,function(g,h){if(E(c[h],!0)&&!c.nodeType&&p[h])g=v(c[h],p[h]),Object.keys(g).length&&(F[h]=g);else if(E(c[h])||c[h]!==p[h]||h in c&&!(h in p))F[h]=c[h]});return F}function B(c,p){return parseInt(c,p||10)}function r(c){return"string"===typeof c}function A(c){c=Object.prototype.toString.call(c);return"[object Array]"===c||"[object Array Iterator]"=== c}function E(c,p){return!!c&&"object"===typeof c&&(!p||!A(c))}function y(c){return E(c)&&"number"===typeof c.nodeType}function q(c){var p=c&&c.constructor;return!(!E(c,!0)||y(c)||!p||!p.name||"Object"===p.name)}function l(c){return"number"===typeof c&&!isNaN(c)&&Infinity>c&&-Infinity=p-1&&(p=Math.floor(g)),Math.max(0,p-(h(c,"padding-left",!0)||0)-(h(c,"padding-right",!0)||0));if("height"===p)return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(h(c,"padding-top",!0)||0)-(h(c,"padding-bottom",!0)||0));u.getComputedStyle||f(27,!0);if(c=u.getComputedStyle(c,void 0)){var a=c.getPropertyValue(p);d(g,"opacity"!==p)&&(a=B(a))}return a}function C(c,p,g){for(var h in c)Object.hasOwnProperty.call(c,h)&&p.call(g||c[h],c[h],h,c)}function x(c,p, g){function h(p,g){var h=c.removeEventListener||b.removeEventListenerPolyfill;h&&h.call(c,p,g,!1)}function a(g){var a;if(c.nodeName){if(p){var F={};F[p]=!0}else F=g;C(F,function(c,p){if(g[p])for(a=g[p].length;a--;)h(p,g[p][a].fn)})}}var F="function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(F,"hcEvents")){var m=F.hcEvents;p?(F=m[p]||[],g?(m[p]=F.filter(function(c){return g!==c.fn}),h(p,g)):(a(m),m[p]=[])):(a(m),delete F.hcEvents)}}function t(c,p,g,m){g=g||{};if(h.createEvent&&(c.dispatchEvent|| c.fireEvent&&c!==b)){var F=h.createEvent("Events");F.initEvent(p,!0,!0);g=a(F,g);c.dispatchEvent?c.dispatchEvent(g):c.fireEvent(p,g)}else if(c.hcEvents){g.target||a(g,{preventDefault:function(){g.defaultPrevented=!0},target:c,type:p});F=[];for(var u=c,D=!1;u.hcEvents;)Object.hasOwnProperty.call(u,"hcEvents")&&u.hcEvents[p]&&(F.length&&(D=!0),F.unshift.apply(F,u.hcEvents[p])),u=Object.getPrototypeOf(u);D&&F.sort(function(c,g){return c.order-g.order});F.forEach(function(p){!1===p.fn.call(c,g)&&g.preventDefault()})}m&& !g.defaultPrevented&&m.call(c,g)}var m=b.charts,h=b.doc,u=b.win;(f||(f={})).messages=[];Math.easeInOutSine=function(c){return-.5*(Math.cos(Math.PI*c)-1)};var c=Array.prototype.find?function(c,g){return c.find(g)}:function(c,g){var p,h=c.length;for(p=0;ph&&(h=c[g]);return h}, arrayMin:function(c){for(var g=c.length,h=c[0];g--;)c[g]g?c=h&&(g=[1/h])));for(a=0;a=c||!m&&u<=(g[a]+(g[a+1]||g[a]))/2);a++);return p=G(p*h,-Math.round(Math.log(.001)/ Math.LN10))},objectEach:C,offset:function(c){var g=h.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:c.top+(u.pageYOffset||g.scrollTop)-(g.clientTop||0),left:c.left+(u.pageXOffset||g.scrollLeft)-(g.clientLeft||0),width:c.width,height:c.height}},pad:function(c,g,h){return Array((g||2)+1-String(c).replace("-","").length).join(h||"0")+c},pick:d,pInt:B,relativeLength:function(c,g,h){return/%$/.test(c)?g*parseFloat(c)/100+(h||0):parseFloat(c)}, removeEvent:x,splat:function(c){return A(c)?c:[c]},stableSort:function(c,g){var h=c.length,p,a;for(a=0;a>16,(l&65280)>>8,l&255,1]:4===q&&(y=[(l&3840)>>4|(l&3840)>>8,(l&240)>>4|l&240,(l&15)<<4|l&15,1])}if(!y)for(l=f.parsers.length;l--&&!y;){var n=f.parsers[l];(q=n.regex.exec(b))&&(y=n.parse(q))}}y&&(this.rgba=y)};f.prototype.get=function(b){var y=this.input,q=this.rgba;if("object"=== typeof y&&"undefined"!==typeof this.stops){var l=B(y);l.stops=[].slice.call(l.stops);this.stops.forEach(function(n,e){l.stops[e]=[l.stops[e][0],n.get(b)]});return l}return q&&J(q[0])?"rgb"===b||!b&&1===q[3]?"rgb("+q[0]+","+q[1]+","+q[2]+")":"a"===b?""+q[3]:"rgba("+q.join(",")+")":y};f.prototype.brighten=function(b){var y=this.rgba;if(this.stops)this.stops.forEach(function(l){l.brighten(b)});else if(J(b)&&0!==b)for(var q=0;3>q;q++)y[q]+=r(255*b),0>y[q]&&(y[q]=0),255h?"AM":"PM",P:12>h?"am":"pm",S:l(m.getSeconds()),L:l(Math.floor(d%1E3),3)},b.dateFormats);q(m,function(c,g){for(;-1!==a.indexOf("%"+g);)a=a.replace("%"+g,"function"===typeof c?c.call(k,d):c)});return e?a.substr(0,1).toUpperCase()+a.substr(1):a};G.prototype.resolveDTLFormat=function(a){return E(a,!0)?a:(a=e(a),{main:a[0],from:a[1],to:a[2]})};G.prototype.getTimeTicks=function(d,e,k,t){var m=this,h=[],u={},c=new m.Date(e),w=d.unitRange,g=d.count||1,F;t=n(t,1);if(B(e)){m.set("Milliseconds", c,w>=a.second?0:g*Math.floor(m.get("Milliseconds",c)/g));w>=a.second&&m.set("Seconds",c,w>=a.minute?0:g*Math.floor(m.get("Seconds",c)/g));w>=a.minute&&m.set("Minutes",c,w>=a.hour?0:g*Math.floor(m.get("Minutes",c)/g));w>=a.hour&&m.set("Hours",c,w>=a.day?0:g*Math.floor(m.get("Hours",c)/g));w>=a.day&&m.set("Date",c,w>=a.month?1:Math.max(1,g*Math.floor(m.get("Date",c)/g)));if(w>=a.month){m.set("Month",c,w>=a.year?0:g*Math.floor(m.get("Month",c)/g));var p=m.get("FullYear",c)}w>=a.year&&m.set("FullYear", c,p-p%g);w===a.week&&(p=m.get("Day",c),m.set("Date",c,m.get("Date",c)-p+t+(p4*a.month||m.getTimezoneOffset(e)!==m.getTimezoneOffset(k));e=c.getTime();for(c=1;eh.length&&h.forEach(function(c){0===c%18E5&&"000000000"===m.dateFormat("%H%M%S%L",c)&&(u[c]="day")})}h.info=A(d,{higherRanks:u,totalRange:w*g});return h};G.prototype.getDateFormat=function(d,e,k,t){var m=this.dateFormat("%m-%d %H:%M:%S.%L",e),h={millisecond:15,second:12,minute:9,hour:6,day:3},u="millisecond";for(c in a){if(d===a.week&&+this.dateFormat("%w",e)===k&&"00:00:00.000"===m.substr(6)){var c="week";break}if(a[c]>d){c=u;break}if(h[c]&&m.substr(h[c])!=="01-01 00:00:00.000".substr(h[c]))break; "week"!==c&&(u=c)}if(c)var w=this.resolveDTLFormat(t[c]).main;return w};return G}();"";return f});I(f,"Core/DefaultOptions.js",[f["Core/Chart/ChartDefaults.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Color/Palettes.js"],f["Core/Time.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A){f=f.parse;var J=A.merge,y={colors:B.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "), shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:b,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44}, caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"}, itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:v.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S", minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:v.isTouchDevice?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:f("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1, style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};y.chart.styledMode=!1;"";var q=new r(J(y.global,y.time));b={defaultOptions:y,defaultTime:q,getOptions:function(){return y},setOptions:function(l){J(!0,y,l);if(l.time||l.global)v.time?v.time.update(J(y.global,y.time, l.global,l.time)):v.time=q;return y}};"";return b});I(f,"Core/Animation/Fx.js",[f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(b,f,v){var J=b.parse,r=f.win,A=v.isNumber,E=v.objectEach;return function(){function b(b,l,n){this.pos=NaN;this.options=l;this.elem=b;this.prop=n}b.prototype.dSetter=function(){var b=this.paths,l=b&&b[0];b=b&&b[1];var n=this.now||0,e=[];if(1!==n&&l&&b)if(l.length===b.length&&1>n)for(var a=0;a=d+this.startTime){this.now=this.end;this.pos=1;this.update();var G=k[this.prop]=!0;E(k,function(a){!0!==a&&(G=!1)});G&&a&&a.call(e);b=!1}else this.pos=n.easing((l-this.startTime)/d),this.now=this.start+(this.end-this.start)*this.pos,this.update(),b=!0;return b};b.prototype.initPath=function(b,l,n){function e(a,h){for(;a.lengthG[1]){var C=n+ +G[1];0<=C?(G[0]=(+G[0]).toExponential(C).split("e")[0],n=C):(G[0]=G[0].split(".")[0]||0,l=20>n?(G[0]*Math.pow(10,G[1])).toFixed(n):0,G[1]=0)}C=(Math.abs(G[1]?G[0]:l)+Math.pow(10,-Math.max(n,k)- 1)).toFixed(n);k=String(q(C));var x=3l?"-":"")+(x?k.substr(0,x)+a:"");l=0>+G[1]&&!z?"0":l+k.substr(x).replace(/(\d{3})(?=\d)/g,"$1"+a);n&&(l+=e+C.slice(-n));G[1]&&0!==+l&&(l+="e"+G[1]);return l}var B=b.defaultOptions,r=b.defaultTime,A=f.getNestedProperty,E=f.isNumber,y=f.pick,q=f.pInt;return{dateFormat:function(l,n,e){return r.dateFormat(l,n,e)},format:function(l,n,e){var a="{",d=!1,k=/f$/,G=/\.([0-9])/,z=B.lang,C=e&&e.time|| r;e=e&&e.numberFormatter||J;for(var x=[];l;){var t=l.indexOf(a);if(-1===t)break;var m=l.slice(0,t);if(d){m=m.split(":");a=A(m.shift()||"",n);if(m.length&&"number"===typeof a)if(m=m.join(":"),k.test(m)){var h=parseInt((m.match(G)||["","-1"])[1],10);null!==a&&(a=e(a,h,z.decimalPoint,-1e){B(b,a);for(C=k=0;C<=e;)C+=b[k].size,k++;z=b.splice(k-1,b.length)}B(b,d);for(b=b.map(function(a){return{size:a.size,targets:[a.target],align:v(a.align,.5)}});G;){for(k=b.length;k--;)e=b[k],a=(Math.min.apply(0,e.targets)+Math.max.apply(0,e.targets))/ 2,e.pos=f(a-e.size*e.align,0,q-e.size);k=b.length;for(G=!1;k--;)0b[k].pos&&(b[k-1].size+=b[k].size,b[k-1].targets=b[k-1].targets.concat(b[k].targets),b[k-1].align=.5,b[k-1].pos+b[k-1].size>q&&(b[k-1].pos=q-b[k-1].size),b.splice(k,1),G=!0)}n.push.apply(n,z);k=0;b.some(function(a){var d=0;return(a.targets||[]).some(function(){n[k].pos=a.pos+d;if("undefined"!==typeof l&&Math.abs(n[k].pos-n[k].target)>l)return n.slice(0,k+1).forEach(function(a){return delete a.pos}),n.reducedLen= (n.reducedLen||q)-.1*q,n.reducedLen>.1*q&&r(n,q,l),!0;d+=n[k].size;k++;return!1})});B(n,d);return n}b.distribute=r})(r||(r={}));return r});I(f,"Core/Renderer/SVG/SVGElement.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Renderer/HTML/AST.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(b,f,v,B,r){var J=b.animate,E=b.animObject,y=b.stop,q=B.deg2rad,l=B.doc,n=B.noop,e=B.svg,a=B.SVG_NS,d=B.win,k=r.addEvent,G=r.attr,z=r.createElement,C=r.css,x=r.defined,t=r.erase, m=r.extend,h=r.fireEvent,u=r.isArray,c=r.isFunction,w=r.isNumber,g=r.isString,F=r.merge,p=r.objectEach,D=r.pick,H=r.pInt,L=r.syncTimeout,P=r.uniqueKey;b=function(){function b(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=a;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}b.prototype._defaultGetter=function(c){c=D(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&& (c=parseFloat(c));return c};b.prototype._defaultSetter=function(c,a,g){g.setAttribute(a,c)};b.prototype.add=function(c){var a=this.renderer,g=this.element;c&&(this.parentGroup=c);this.parentInverted=c&&c.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&a.buildText(this);this.added=!0;if(!c||c.handleZ||this.zIndex)var h=this.zIndexSetter();h||(c?c.element:a.box).appendChild(g);if(this.onAdd)this.onAdd();return this};b.prototype.addClass=function(c,a){var g=a?"":this.attr("class")|| "";c=(c||"").split(/ /g).reduce(function(c,a){-1===g.indexOf(a)&&c.push(a);return c},g?[g]:[]).join(" ");c!==g&&this.attr("class",c);return this};b.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};b.prototype.align=function(c,a,h){var p={},d=this.renderer,e=d.alignedObjects,m,u,w;if(c){if(this.alignOptions=c,this.alignByTranslate=a,!h||g(h))this.alignTo=m=h||"renderer",t(e,this),e.push(this),h=void 0}else c=this.alignOptions,a=this.alignByTranslate, m=this.alignTo;h=D(h,d[m],"scrollablePlotBox"===m?d.plotBox:void 0,d);m=c.align;var k=c.verticalAlign;d=(h.x||0)+(c.x||0);e=(h.y||0)+(c.y||0);"right"===m?u=1:"center"===m&&(u=2);u&&(d+=(h.width-(c.width||0))/u);p[a?"translateX":"x"]=Math.round(d);"bottom"===k?w=1:"middle"===k&&(w=2);w&&(e+=(h.height-(c.height||0))/w);p[a?"translateY":"y"]=Math.round(e);this[this.placed?"animate":"attr"](p);this.placed=!0;this.alignAttr=p;return this};b.prototype.alignSetter=function(c){var a={left:"start",center:"middle", right:"end"};a[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",a[c]))};b.prototype.animate=function(c,a,g){var h=this,d=E(D(a,this.renderer.globalAnimation,!0));a=d.defer;D(l.hidden,l.msHidden,l.webkitHidden,!1)&&(d.duration=0);0!==d.duration?(g&&(d.complete=g),L(function(){h.element&&J(h,c,d)},a)):(this.attr(c,void 0,g||d.complete),p(c,function(c,a){d.step&&d.step.call(this,c,{prop:a,pos:1,elem:this})},this));return this};b.prototype.applyTextOutline=function(c){var g=this.element; -1!==c.indexOf("contrast")&&(c=c.replace(/contrast/g,this.renderer.getContrast(g.style.fill)));var h=c.split(" ");c=h[h.length-1];if((h=h[0])&&"none"!==h&&B.svg){this.fakeTS=!0;this.ySetter=this.xSetter;h=h.replace(/(^[\d\.]+)(.*?)$/g,function(c,a,g){return 2*Number(a)+g});this.removeTextOutline();var p=l.createElementNS(a,"tspan");G(p,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":h,"stroke-linejoin":"round"});[].forEach.call(g.childNodes,function(c){var a=c.cloneNode(!0);a.removeAttribute&& ["fill","stroke","stroke-width","stroke"].forEach(function(c){return a.removeAttribute(c)});p.appendChild(a)});var d=l.createElementNS(a,"tspan");d.textContent="\u200b";["x","y"].forEach(function(c){var a=g.getAttribute(c);a&&d.setAttribute(c,a)});p.appendChild(d);g.insertBefore(p,g.firstChild)}};b.prototype.attr=function(c,a,g,h){var d=this.element,e=this.symbolCustomAttribs,m,u=this,w,k;if("string"===typeof c&&"undefined"!==typeof a){var D=c;c={};c[D]=a}"string"===typeof c?u=(this[c+"Getter"]|| this._defaultGetter).call(this,c,d):(p(c,function(a,g){w=!1;h||y(this,g);this.symbolName&&-1!==e.indexOf(g)&&(m||(this.symbolAttr(c),m=!0),w=!0);!this.rotation||"x"!==g&&"y"!==g||(this.doTransform=!0);w||(k=this[g+"Setter"]||this._defaultSetter,k.call(this,a,g,d),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(g)&&this.updateShadows(g,a,k))},this),this.afterSetters());g&&g.call(this);return u};b.prototype.clip=function(c){return this.attr("clip-path",c?"url("+ this.renderer.url+"#"+c.id+")":"none")};b.prototype.crisp=function(c,a){a=a||c.strokeWidth||0;var g=Math.round(a)%2/2;c.x=Math.floor(c.x||this.x||0)+g;c.y=Math.floor(c.y||this.y||0)+g;c.width=Math.floor((c.width||this.width||0)-2*g);c.height=Math.floor((c.height||this.height||0)-2*g);x(c.strokeWidth)&&(c.strokeWidth=a);return c};b.prototype.complexColor=function(c,a,g){var d=this.renderer,e,m,w,k,D,X,t,b,C,H,z=[],l;h(this.renderer,"complexColor",{args:arguments},function(){c.radialGradient?m="radialGradient": c.linearGradient&&(m="linearGradient");if(m){w=c[m];D=d.gradients;X=c.stops;C=g.radialReference;u(w)&&(c[m]=w={x1:w[0],y1:w[1],x2:w[2],y2:w[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===m&&C&&!x(w.gradientUnits)&&(k=w,w=F(w,d.getRadialAttr(C,k),{gradientUnits:"userSpaceOnUse"}));p(w,function(c,a){"id"!==a&&z.push(a,c)});p(X,function(c){z.push(c)});z=z.join(",");if(D[z])H=D[z].attr("id");else{w.id=H=P();var h=D[z]=d.createElement(m).attr(w).add(d.defs);h.radAttr=k;h.stops=[];X.forEach(function(c){0=== c[1].indexOf("rgba")?(e=v.parse(c[1]),t=e.get("rgb"),b=e.get("a")):(t=c[1],b=1);c=d.createElement("stop").attr({offset:c[0],"stop-color":t,"stop-opacity":b}).add(h);h.stops.push(c)})}l="url("+d.url+"#"+H+")";g.setAttribute(a,l);g.gradient=z;c.toString=function(){return l}}})};b.prototype.css=function(c){var a=this.styles,g={},h=this.element,d=!a;c.color&&(c.fill=c.color);a&&p(c,function(c,h){a&&a[h]!==c&&(g[h]=c,d=!0)});if(d){a&&(c=m(a,g));if(null===c.width||"auto"===c.width)delete this.textWidth; else if("text"===h.nodeName.toLowerCase()&&c.width)var u=this.textWidth=H(c.width);this.styles=c;u&&!e&&this.renderer.forExport&&delete c.width;var w=F(c);h.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(c){return w&&delete w[c]});C(h,w);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),c.textOutline&&this.applyTextOutline(c.textOutline))}return this};b.prototype.dashstyleSetter=function(c){var a=this["stroke-width"];"inherit"===a&&(a= 1);if(c=c&&c.toLowerCase()){var g=c.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(c=g.length;c--;)g[c]=""+H(g[c])*D(a,NaN);c=g.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};b.prototype.destroy=function(){var c=this,a=c.element||{},g=c.renderer,h=a.ownerSVGElement,d=g.isSVG&& "SPAN"===a.nodeName&&c.parentGroup||void 0;a.onclick=a.onmouseout=a.onmouseover=a.onmousemove=a.point=null;y(c);if(c.clipPath&&h){var e=c.clipPath;[].forEach.call(h.querySelectorAll("[clip-path],[CLIP-PATH]"),function(c){-1t.width)t={width:0,height:0}}else t=this.htmlGetBBox();h.isSVG&&(a=t.width,h=t.height,k&&(t.height=h={"11px,17":14,"13px,20":16}[(F||"")+","+Math.round(h)]||h),g&&(k=g*q,t.width=Math.abs(h*Math.sin(k))+Math.abs(a*Math.cos(k)),t.height=Math.abs(h*Math.cos(k))+Math.abs(a*Math.sin(k))));if(z&&(""===e||0]*>/g,"").replace(/</g,"<").replace(/>/g, ">")};b.prototype.toFront=function(){var c=this.element;c.parentNode.appendChild(c);return this};b.prototype.translate=function(c,a){return this.attr({translateX:c,translateY:a})};b.prototype.updateShadows=function(c,a,g){var h=this.shadows;if(h)for(var d=h.length;d--;)g.call(h[d],"height"===c?Math.max(a-(h[d].cutHeight||0),0):"d"===c?this.d:a,c,h[d])};b.prototype.updateTransform=function(){var c=this.scaleX,a=this.scaleY,g=this.inverted,h=this.rotation,d=this.matrix,p=this.element,e=this.translateX|| 0,u=this.translateY||0;g&&(e+=this.width,u+=this.height);e=["translate("+e+","+u+")"];x(d)&&e.push("matrix("+d.join(",")+")");g?e.push("rotate(90) scale(-1,1)"):h&&e.push("rotate("+h+" "+D(this.rotationOriginX,p.getAttribute("x"),0)+" "+D(this.rotationOriginY,p.getAttribute("y")||0)+")");(x(c)||x(a))&&e.push("scale("+D(c,1)+" "+D(a,1)+")");e.length&&p.setAttribute("transform",e.join(" "))};b.prototype.visibilitySetter=function(c,a,g){"inherit"===c?g.removeAttribute(a):this[a]!==c&&g.setAttribute(a, c);this[a]=c};b.prototype.xGetter=function(c){"circle"===this.element.nodeName&&("x"===c?c="cx":"y"===c&&(c="cy"));return this._defaultGetter(c)};b.prototype.zIndexSetter=function(c,a){var g=this.renderer,h=this.parentGroup,d=(h||g).element||g.box,p=this.element;g=d===g.box;var e=!1;var u=this.added;var m;x(c)?(p.setAttribute("data-z-index",c),c=+c,this[a]===c&&(u=!1)):x(this[a])&&p.removeAttribute("data-z-index");this[a]=c;if(u){(c=this.zIndex)&&h&&(h.handleZ=!0);a=d.childNodes;for(m=a.length-1;0<= m&&!e;m--){h=a[m];u=h.getAttribute("data-z-index");var w=!x(u);if(h!==p)if(0>c&&w&&!g&&!m)d.insertBefore(p,a[m]),e=!0;else if(H(u)<=c||w&&(!x(c)||0<=c))d.insertBefore(p,a[m+1]||null),e=!0}e||(d.insertBefore(p,a[g?3:0]||null),e=!0)}return e};return b}();b.prototype["stroke-widthSetter"]=b.prototype.strokeSetter;b.prototype.yGetter=b.prototype.xGetter;b.prototype.matrixSetter=b.prototype.rotationOriginXSetter=b.prototype.rotationOriginYSetter=b.prototype.rotationSetter=b.prototype.scaleXSetter=b.prototype.scaleYSetter= b.prototype.translateXSetter=b.prototype.translateYSetter=b.prototype.verticalAlignSetter=function(c,a){this[a]=c;this.doTransform=!0};"";return b});I(f,"Core/Renderer/RendererRegistry.js",[f["Core/Globals.js"]],function(b){var f;(function(f){f.rendererTypes={};var J;f.getRendererType=function(b){void 0===b&&(b=J);return f.rendererTypes[b]||f.rendererTypes[J]};f.registerRendererType=function(r,A,E){f.rendererTypes[r]=A;if(!J||E)J=r,b.Renderer=A}})(f||(f={}));return f});I(f,"Core/Renderer/SVG/SVGLabel.js", [f["Core/Renderer/SVG/SVGElement.js"],f["Core/Utilities.js"]],function(b,f){var J=this&&this.__extends||function(){var b=function(l,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return b(l,e)};return function(l,e){function a(){this.constructor=l}b(l,e);l.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),B=f.defined,r=f.extend,A=f.isNumber,E=f.merge,y=f.pick,q=f.removeEvent; return function(l){function n(e,a,d,k,b,z,C,x,t,m){var h=l.call(this)||this;h.paddingLeftSetter=h.paddingSetter;h.paddingRightSetter=h.paddingSetter;h.init(e,"g");h.textStr=a;h.x=d;h.y=k;h.anchorX=z;h.anchorY=C;h.baseline=t;h.className=m;h.addClass("button"===m?"highcharts-no-tooltip":"highcharts-label");m&&h.addClass("highcharts-"+m);h.text=e.text(void 0,0,0,x).attr({zIndex:1});var u;"string"===typeof b&&((u=/^url\((.*?)\)$/.test(b))||h.renderer.symbols[b])&&(h.symbolKey=b);h.bBox=n.emptyBBox;h.padding= 3;h.baselineOffset=0;h.needsBox=e.styledMode||u;h.deferredAttr={};h.alignFactor=0;return h}J(n,l);n.prototype.alignSetter=function(e){e={left:0,center:.5,right:1}[e];e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&A(this.xSetting)&&this.attr({x:this.xSetting}))};n.prototype.anchorXSetter=function(e,a){this.anchorX=e;this.boxAttr(a,Math.round(e)-this.getCrispAdjust()-this.xSetting)};n.prototype.anchorYSetter=function(e,a){this.anchorY=e;this.boxAttr(a,e-this.ySetting)};n.prototype.boxAttr=function(e, a){this.box?this.box.attr(e,a):this.deferredAttr[e]=a};n.prototype.css=function(e){if(e){var a={};e=E(e);n.textProps.forEach(function(d){"undefined"!==typeof e[d]&&(a[d]=e[d],delete e[d])});this.text.css(a);var d="width"in a;"fontSize"in a||"fontWeight"in a?this.updateTextPadding():d&&this.updateBoxSize()}return b.prototype.css.call(this,e)};n.prototype.destroy=function(){q(this.element,"mouseenter");q(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy()); b.prototype.destroy.call(this)};n.prototype.fillSetter=function(e,a){e&&(this.needsBox=!0);this.fill=e;this.boxAttr(a,e)};n.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var e=this.padding,a=y(this.paddingLeft,e);return{width:this.width,height:this.height,x:this.bBox.x-a,y:this.bBox.y-e}};n.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"], 10):0)%2/2};n.prototype.heightSetter=function(e){this.heightSetting=e};n.prototype.onAdd=function(){var e=this.textStr;this.text.add(this);this.attr({text:B(e)?e:"",x:this.x,y:this.y});this.box&&B(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};n.prototype.paddingSetter=function(e,a){A(e)?e!==this[a]&&(this[a]=e,this.updateTextPadding()):this[a]=void 0};n.prototype.rSetter=function(e,a){this.boxAttr(a,e)};n.prototype.shadow=function(e){e&&!this.renderer.styledMode&&(this.updateBoxSize(), this.box&&this.box.shadow(e));return this};n.prototype.strokeSetter=function(e,a){this.stroke=e;this.boxAttr(a,e)};n.prototype["stroke-widthSetter"]=function(e,a){e&&(this.needsBox=!0);this["stroke-width"]=e;this.boxAttr(a,e)};n.prototype["text-alignSetter"]=function(e){this.textAlign=e};n.prototype.textSetter=function(e){"undefined"!==typeof e&&this.text.attr({text:e});this.updateTextPadding()};n.prototype.updateBoxSize=function(){var e=this.text.element.style,a={},d=this.padding,k=this.bBox=A(this.widthSetting)&& A(this.heightSetting)&&!this.textAlign||!B(this.text.textStr)?n.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||k.height||0)+2*d;e=this.renderer.fontMetrics(e&&e.fontSize,this.text);this.baselineOffset=d+Math.min((this.text.firstLineMetrics||e).b,k.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-e.h)/2);this.needsBox&&(this.box||(d=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),d.addClass(("button"=== this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),d.add(this)),d=this.getCrispAdjust(),a.x=d,a.y=(this.baseline?-this.baselineOffset:0)+d,a.width=Math.round(this.width),a.height=Math.round(this.height),this.box.attr(r(a,this.deferredAttr)),this.deferredAttr={})};n.prototype.updateTextPadding=function(){var e=this.text;this.updateBoxSize();var a=this.baseline?0:this.baselineOffset,d=y(this.paddingLeft,this.padding);B(this.widthSetting)&&this.bBox&& ("center"===this.textAlign||"right"===this.textAlign)&&(d+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(d!==e.x||a!==e.y)e.attr("x",d),e.hasBoxWidthChanged&&(this.bBox=e.getBBox(!0)),"undefined"!==typeof a&&e.attr("y",a);e.x=d;e.y=a};n.prototype.widthSetter=function(e){this.widthSetting=A(e)?e:void 0};n.prototype.getPaddedWidth=function(){var e=this.padding,a=y(this.paddingLeft,e);e=y(this.paddingRight,e);return(this.widthSetting||this.bBox.width||0)+a+e};n.prototype.xSetter= function(e){this.x=e;this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(e);this.attr("translateX",this.xSetting)};n.prototype.ySetter=function(e){this.ySetting=this.y=Math.round(e);this.attr("translateY",this.ySetting)};n.emptyBBox={width:0,height:0,x:0,y:0};n.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return n}(b)});I(f,"Core/Renderer/SVG/Symbols.js", [f["Core/Utilities.js"]],function(b){function f(b,f,l,n,e){var a=[];if(e){var d=e.start||0,k=E(e.r,l);l=E(e.r,n||l);var G=(e.end||0)-.001;n=e.innerR;var z=E(e.open,.001>Math.abs((e.end||0)-d-2*Math.PI)),C=Math.cos(d),x=Math.sin(d),t=Math.cos(G),m=Math.sin(G);d=E(e.longArc,.001>G-d-Math.PI?0:1);a.push(["M",b+k*C,f+l*x],["A",k,l,0,d,E(e.clockwise,1),b+k*t,f+l*m]);r(n)&&a.push(z?["M",b+n*t,f+n*m]:["L",b+n*t,f+n*m],["A",n,n,0,d,r(e.clockwise)?1-e.clockwise:0,b+n*C,f+n*x]);z||a.push(["Z"])}return a}function v(b, f,l,n,e){return e&&e.r?B(b,f,l,n,e):[["M",b,f],["L",b+l,f],["L",b+l,f+n],["L",b,f+n],["Z"]]}function B(b,f,l,n,e){e=e&&e.r||0;return[["M",b+e,f],["L",b+l-e,f],["C",b+l,f,b+l,f,b+l,f+e],["L",b+l,f+n-e],["C",b+l,f+n,b+l,f+n,b+l-e,f+n],["L",b+e,f+n],["C",b,f+n,b,f+n,b,f+n-e],["L",b,f+e],["C",b,f,b,f,b+e,f]]}var r=b.defined,A=b.isNumber,E=b.pick;return{arc:f,callout:function(b,f,l,n,e){var a=Math.min(e&&e.r||0,l,n),d=a+6,k=e&&e.anchorX;e=e&&e.anchorY||0;var G=B(b,f,l,n,{r:a});if(!A(k))return G;b+k>=l? e>f+d&&e=b+k?e>f+d&&en&&k>b+d&&ke&&k>b+d&&k/g,t=[l,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(t!==a.textCache){a.textCache=t;delete a.actualWidth;for(t=C.length;t--;)d.removeChild(C[t]);z||this.ellipsis||this.width||-1!==l.indexOf(" ")&&(!this.noWrap||x.test(l))?""!==l&&(e&&e.appendChild(d),l=new b(l),this.modifyTree(l.nodes),l.addToDOM(a.element),this.modifyDOM(),this.ellipsis&&-1!==(d.textContent||"").indexOf("\u2026")&& a.attr("title",this.unescapeEntities(a.textStr||"",["<",">"])),e&&e.removeChild(d)):d.appendChild(J.createTextNode(this.unescapeEntities(l)));q(this.textOutline)&&a.applyTextOutline&&a.applyTextOutline(this.textOutline)}};e.prototype.modifyDOM=function(){var a=this,d=this.svgElement,e=E(d.element,"x");d.firstLineMetrics=void 0;for(var b;b=d.element.firstChild;)if(/^[\s\u200B]*$/.test(b.textContent||" "))d.element.removeChild(b);else break;[].forEach.call(d.element.querySelectorAll("tspan.highcharts-br"), function(b,m){b.nextSibling&&b.previousSibling&&(0===m&&1===b.previousSibling.nodeType&&(d.firstLineMetrics=d.renderer.fontMetrics(void 0,b.previousSibling)),E(b,{dy:a.getLineHeight(b.nextSibling),x:e}))});var z=this.width||0;if(z){var C=function(b,m){var h=b.textContent||"",u=h.replace(/([^\^])-/g,"$1- ").split(" "),c=!a.noWrap&&(1z){for(;u<=c;)w=Math.ceil((u+c)/2),e&&(g=l(e,w)),p=F(w,g&&g.length-1),u===c?u=c+1:p>z?c=w-1:u=w;0===c?a.textContent="":d&&c===d.length-1||(a.textContent=g||l(d||e,w))}e&&e.splice(0,w);k.actualWidth=p;k.rotation=m};e.prototype.unescapeEntities= function(a,d){l(this.renderer.escapes,function(e,b){d&&-1!==d.indexOf(e)||(a=a.toString().replace(new RegExp(e,"g"),b))});return a};return e}()});I(f,"Core/Renderer/SVG/SVGRenderer.js",[f["Core/Renderer/HTML/AST.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Renderer/RendererRegistry.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Renderer/SVG/SVGLabel.js"],f["Core/Renderer/SVG/Symbols.js"],f["Core/Renderer/SVG/TextBuilder.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E,y,q){var l= v.charts,n=v.deg2rad,e=v.doc,a=v.isFirefox,d=v.isMS,k=v.isWebKit,G=v.noop,z=v.SVG_NS,C=v.symbolSizes,x=v.win,t=q.addEvent,m=q.attr,h=q.createElement,u=q.css,c=q.defined,w=q.destroyObjectProperties,g=q.extend,F=q.isArray,p=q.isNumber,D=q.isObject,H=q.isString,L=q.merge,P=q.pick,K=q.pInt,J=q.uniqueKey,W;v=function(){function z(c,a,g,h,d,p,e){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper= this.box=this.alignedObjects=void 0;this.init(c,a,g,h,d,p,e)}z.prototype.init=function(c,g,h,d,p,b,w){var k=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),D=k.element;w||k.css(this.getStyle(d));c.appendChild(D);m(c,"dir","ltr");-1===c.innerHTML.indexOf("xmlns")&&m(D,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=D;this.boxWrapper=k;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(e.createTextNode("Created with Highcharts 10.0.0")); this.defs=this.createElement("defs").add();this.allowHTML=b;this.forExport=p;this.styledMode=w;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,h,!1);var F;a&&c.getBoundingClientRect&&(g=function(){u(c,{left:0,top:0});F=c.getBoundingClientRect();u(c,{left:Math.ceil(F.left)-F.left+"px",top:Math.ceil(F.top)-F.top+"px"})},g(),this.unSubPixelFix=t(x,"resize",g))};z.prototype.definition=function(c){return(new b([c])).addToDOM(this.defs.element)};z.prototype.getReferenceURL= function(){if((a||k)&&e.getElementsByTagName("base").length){if(!c(W)){var g=J();g=(new b([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:g},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+g+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(e.body);u(g,{position:"fixed",top:0,left:0,zIndex:9E5});var h=e.elementFromPoint(6,6);W="hitme"===(h&&h.id); e.body.removeChild(g)}if(W)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};z.prototype.getStyle=function(c){return this.style=g({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};z.prototype.setStyle=function(c){this.boxWrapper.css(this.getStyle(c))};z.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};z.prototype.destroy=function(){var c=this.defs;this.box= null;this.boxWrapper=this.boxWrapper.destroy();w(this.gradients||{});this.gradients=null;c&&(this.defs=c.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};z.prototype.createElement=function(c){var a=new this.Element;a.init(this,c);return a};z.prototype.getRadialAttr=function(c,a){return{cx:c[0]-c[2]/2+(a.cx||0)*c[2],cy:c[1]-c[2]/2+(a.cy||0)*c[2],r:(a.r||0)*c[2]}};z.prototype.buildText=function(c){(new y(c)).buildSVG()};z.prototype.getContrast=function(c){c=f.parse(c).rgba; c[0]*=1;c[1]*=1.2;c[2]*=.5;return 459c?c+3:Math.round(1.2*c);return{h:a,b:Math.round(.8*a),f:c}};z.prototype.rotCorr=function(c,a, g){var h=c;a&&g&&(h=Math.max(h*Math.cos(a*n),4));return{x:-c/3*Math.sin(a*n),y:h}};z.prototype.pathToSegments=function(c){for(var a=[],g=[],h={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},d=0;d":">","'":"'",'"':"""},symbols:E,draw:G});B.registerRendererType("svg",v,!0);"";return v});I(f,"Core/Renderer/HTML/HTMLElement.js",[f["Core/Globals.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Utilities.js"]],function(b,f,v){var J=this&&this.__extends||function(){var a=function(d,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return a(d,e)};return function(d,e){function b(){this.constructor=d}a(d,e);d.prototype=null===e?Object.create(e):(b.prototype=e.prototype,new b)}}(),r=b.isFirefox,A=b.isMS,E=b.isWebKit,y=b.win,q=v.css,l=v.defined,n=v.extend,e=v.pick,a=v.pInt;return function(d){function b(){return null!==d&&d.apply(this,arguments)||this}J(b,d);b.compose=function(a){if(-1===b.composedClasses.indexOf(a)){b.composedClasses.push(a); var d=b.prototype,e=a.prototype;e.getSpanCorrection=d.getSpanCorrection;e.htmlCss=d.htmlCss;e.htmlGetBBox=d.htmlGetBBox;e.htmlUpdateTransform=d.htmlUpdateTransform;e.setSpanRotation=d.setSpanRotation}return a};b.prototype.getSpanCorrection=function(a,d,e){this.xCorr=-a*e;this.yCorr=-d};b.prototype.htmlCss=function(a){var d="SPAN"===this.element.tagName&&a&&"width"in a,b=e(d&&a.width,void 0);if(d){delete a.width;this.textWidth=b;var k=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow= "hidden");this.styles=n(this.styles,a);q(this.element,a);k&&this.htmlUpdateTransform();return this};b.prototype.htmlGetBBox=function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};b.prototype.htmlUpdateTransform=function(){if(this.added){var d=this.renderer,e=this.element,b=this.translateX||0,k=this.translateY||0,t=this.x||0,m=this.y||0,h=this.textAlign||"left",u={left:0,center:.5,right:1}[h],c=this.styles;c=c&&c.whiteSpace;q(e,{marginLeft:b,marginTop:k}); !d.styledMode&&this.shadows&&this.shadows.forEach(function(c){q(c,{marginLeft:b+1,marginTop:k+1})});this.inverted&&[].forEach.call(e.childNodes,function(c){d.invertChild(c,e)});if("SPAN"===e.tagName){var w=this.rotation,g=this.textWidth&&a(this.textWidth),F=[w,h,e.innerHTML,this.textWidth,this.textAlign].join(),p=void 0;p=!1;if(g!==this.oldTextWidth){if(this.textPxLength)var D=this.textPxLength;else q(e,{width:"",whiteSpace:c||"nowrap"}),D=e.offsetWidth;(g>this.oldTextWidth||D>g)&&(/[ \-]/.test(e.textContent|| e.innerText)||"ellipsis"===e.style.textOverflow)&&(q(e,{width:D>g||w?g+"px":"auto",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=g,p=!0)}this.hasBoxWidthChanged=p;F!==this.cTT&&(p=d.fontMetrics(e.style.fontSize,e).b,!l(w)||w===(this.oldRotation||0)&&h===this.oldAlign||this.setSpanRotation(w,u,p),this.getSpanCorrection(!l(w)&&this.textPxLength||e.offsetWidth,p,u,w,h));q(e,{left:t+(this.xCorr||0)+"px",top:m+(this.yCorr||0)+"px"});this.cTT=F;this.oldRotation=w;this.oldAlign=h}}else this.alignOnAdd= !0};b.prototype.setSpanRotation=function(a,d,e){var b={},k=A&&!/Edge/.test(y.navigator.userAgent)?"-ms-transform":E?"-webkit-transform":r?"MozTransform":y.opera?"-o-transform":void 0;k&&(b[k]=b.transform="rotate("+a+"deg)",b[k+(r?"Origin":"-origin")]=b.transformOrigin=100*d+"% "+e+"px",q(this.element,b))};b.composedClasses=[];return b}(f)});I(f,"Core/Renderer/HTML/HTMLRenderer.js",[f["Core/Renderer/HTML/AST.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Renderer/SVG/SVGRenderer.js"],f["Core/Utilities.js"]], function(b,f,v,B){var r=this&&this.__extends||function(){var b=function(l,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e])};return b(l,e)};return function(l,e){function a(){this.constructor=l}b(l,e);l.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),J=B.attr,E=B.createElement,y=B.extend,q=B.pick;return function(l){function n(){return null!==l&&l.apply(this,arguments)||this} r(n,l);n.compose=function(e){-1===n.composedClasses.indexOf(e)&&(n.composedClasses.push(e),e.prototype.html=n.prototype.html);return e};n.prototype.html=function(e,a,d){var k=this.createElement("span"),l=k.element,z=k.renderer,n=z.isSVG,x=function(a,d){["opacity","visibility"].forEach(function(h){a[h+"Setter"]=function(e,c,b){var g=a.div?a.div.style:d;f.prototype[h+"Setter"].call(this,e,c,b);g&&(g[c]=e)}});a.addedSetters=!0};k.textSetter=function(a){a!==this.textStr&&(delete this.bBox,delete this.oldTextWidth, b.setElementHTML(this.element,q(a,"")),this.textStr=a,k.doTransform=!0)};n&&x(k,k.element.style);k.xSetter=k.ySetter=k.alignSetter=k.rotationSetter=function(a,d){"align"===d?k.alignValue=k.textAlign=a:k[d]=a;k.doTransform=!0};k.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};k.attr({text:e,x:Math.round(a),y:Math.round(d)}).css({position:"absolute"});z.styledMode||k.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});l.style.whiteSpace="nowrap"; k.css=k.htmlCss;n&&(k.add=function(a){var d=z.box.parentNode,h=[];if(this.parentGroup=a){var e=a.div;if(!e){for(;a;)h.push(a),a=a.parentGroup;h.reverse().forEach(function(c){function a(a,g){c[g]=a;"translateX"===g?p.left=a+"px":p.top=a+"px";c.doTransform=!0}var g=J(c.element,"class"),b=c.styles||{};e=c.div=c.div||E("div",g?{className:g}:void 0,{position:"absolute",left:(c.translateX||0)+"px",top:(c.translateY||0)+"px",display:c.display,opacity:c.opacity,cursor:b.cursor,pointerEvents:b.pointerEvents, visibility:c.visibility},e||d);var p=e.style;y(c,{classSetter:function(c){return function(a){this.element.setAttribute("class",a);c.className=a}}(e),on:function(){h[0].div&&k.on.apply({element:h[0].div,onEvents:c.onEvents},arguments);return c},translateXSetter:a,translateYSetter:a});c.addedSetters||x(c)})}}else e=d;e.appendChild(l);k.added=!0;k.alignOnAdd&&k.htmlUpdateTransform();return k});return k};n.composedClasses=[];return n}(v)});I(f,"Core/Axis/AxisDefaults.js",[],function(){var b;(function(b){b.defaultXAxisOptions= {alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0, rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0, style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};b.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify", formatter:function(){var b=this.axis.chart.numberFormatter;return b(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};b.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};b.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};b.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};b.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(b|| (b={}));return b});I(f,"Core/Foundation.js",[f["Core/Utilities.js"]],function(b){var f=b.addEvent,v=b.isFunction,B=b.objectEach,r=b.removeEvent,A;(function(b){b.registerEventOptions=function(b,q){b.eventOptions=b.eventOptions||{};B(q.events,function(l,n){b.eventOptions[n]!==l&&(b.eventOptions[n]&&(r(b,n,b.eventOptions[n]),delete b.eventOptions[n]),v(l)&&(b.eventOptions[n]=l,f(b,n,l)))})}})(A||(A={}));return A});I(f,"Core/Axis/Tick.js",[f["Core/FormatUtilities.js"],f["Core/Globals.js"],f["Core/Utilities.js"]], function(b,f,v){var J=f.deg2rad,r=v.clamp,A=v.correctFloat,E=v.defined,y=v.destroyObjectProperties,q=v.extend,l=v.fireEvent,n=v.isNumber,e=v.merge,a=v.objectEach,d=v.pick;f=function(){function k(a,d,e,b,k){this.isNewLabel=this.isNew=!0;this.axis=a;this.pos=d;this.type=e||"";this.parameters=k||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;l(this,"init");e||b||this.addLabel()}k.prototype.addLabel=function(){var a=this,e=a.axis,k=e.options,x=e.chart,t=e.categories, m=e.logarithmic,h=e.names,u=a.pos,c=d(a.options&&a.options.labels,k.labels),w=e.tickPositions,g=u===w[0],F=u===w[w.length-1],p=(!c.step||1===c.step)&&1===e.tickInterval;w=w.info;var D=a.label,H;t=this.parameters.category||(t?d(t[u],h[u],u):u);m&&n(t)&&(t=A(m.lin2log(t)));if(e.dateTime)if(w){var f=x.time.resolveDTLFormat(k.dateTimeLabelFormats[!k.grid&&w.higherRanks[u]||w.unitName]);var P=f.main}else n(t)&&(P=e.dateTime.getXDateFormat(t,k.dateTimeLabelFormats||{}));a.isFirst=g;a.isLast=F;var K={axis:e, chart:x,dateTimeLabelFormat:P,isFirst:g,isLast:F,pos:u,tick:a,tickPositionInfo:w,value:t};l(this,"labelFormat",K);var r=function(a){return c.formatter?c.formatter.call(a,a):c.format?(a.text=e.defaultLabelFormatter.call(a),b.format(c.format,a,x)):e.defaultLabelFormatter.call(a,a)};k=r.call(K,K);var y=f&&f.list;a.shortenLabel=y?function(){for(H=0;Hc&&k-w*gm&&(f=Math.round((t-k)/Math.cos(c*J)));else if(t=k+(1-w)*g,k-w*gm&&(D=m-a.x+D*w,l=-1),D=Math.min(F,D),DD||e.autoRotation&&(u.styles||{}).width)f=D;f&&(this.shortenLabel?this.shortenLabel():(p.width=Math.floor(f)+"px",(b.style||{}).textOverflow||(p.textOverflow= "ellipsis"),u.css(p)))};k.prototype.moveLabel=function(d,e){var b=this,k=b.label,t=b.axis,m=t.reversed,h=!1;k&&k.textStr===d?(b.movedLabel=k,h=!0,delete b.label):a(t.ticks,function(c){h||c.isNew||c===b||!c.label||c.label.textStr!==d||(b.movedLabel=c.label,h=!0,c.labelPos=b.movedLabel.xy,delete c.label)});if(!h&&(b.labelPos||k)){var u=b.labelPos||k.xy;k=t.horiz?m?0:t.width+t.left:u.x;t=t.horiz?u.y:m?t.width+t.left:0;b.movedLabel=b.createLabel({x:k,y:t},d,e);b.movedLabel&&b.movedLabel.attr({opacity:0})}}; k.prototype.render=function(a,e,b){var k=this.axis,t=k.horiz,m=this.pos,h=d(this.tickmarkOffset,k.tickmarkOffset);m=this.getPosition(t,m,h,e);h=m.x;var u=m.y;k=t&&h===k.pos+k.len||!t&&u===k.pos?-1:1;t=d(b,this.label&&this.label.newOpacity,1);b=d(b,1);this.isActive=!0;this.renderGridLine(e,b,k);this.renderMark(m,b,k);this.renderLabel(m,e,t,a);this.isNew=!1;l(this,"afterRender")};k.prototype.renderGridLine=function(a,e,b){var k=this.axis,t=k.options,m={},h=this.pos,u=this.type,c=d(this.tickmarkOffset, k.tickmarkOffset),w=k.chart.renderer,g=this.gridLine,F=t.gridLineWidth,p=t.gridLineColor,D=t.gridLineDashStyle;"minor"===this.type&&(F=t.minorGridLineWidth,p=t.minorGridLineColor,D=t.minorGridLineDashStyle);g||(k.chart.styledMode||(m.stroke=p,m["stroke-width"]=F||0,m.dashstyle=D),u||(m.zIndex=1),a&&(e=0),this.gridLine=g=w.path().attr(m).addClass("highcharts-"+(u?u+"-":"")+"grid-line").add(k.gridGroup));if(g&&(b=k.getPlotLinePath({value:h+c,lineWidth:g.strokeWidth()*b,force:"pass",old:a})))g[a||this.isNew? "attr":"animate"]({d:b,opacity:e})};k.prototype.renderMark=function(a,e,b){var k=this.axis,t=k.options,m=k.chart.renderer,h=this.type,u=k.tickSize(h?h+"Tick":"tick"),c=a.x;a=a.y;var w=d(t["minor"!==h?"tickWidth":"minorTickWidth"],!h&&k.isXAxis?1:0);t=t["minor"!==h?"tickColor":"minorTickColor"];var g=this.mark,F=!g;u&&(k.opposite&&(u[0]=-u[0]),g||(this.mark=g=m.path().addClass("highcharts-"+(h?h+"-":"")+"tick").add(k.axisGroup),k.chart.styledMode||g.attr({stroke:t,"stroke-width":w})),g[F?"attr":"animate"]({d:this.getMarkPath(c, a,u[0],g.strokeWidth()*b,k.horiz,m),opacity:e}))};k.prototype.renderLabel=function(a,e,b,k){var t=this.axis,m=t.horiz,h=t.options,u=this.label,c=h.labels,w=c.step;t=d(this.tickmarkOffset,t.tickmarkOffset);var g=a.x;a=a.y;var F=!0;u&&n(g)&&(u.xy=a=this.getLabelPosition(g,a,u,m,c,t,k,w),this.isFirst&&!this.isLast&&!h.showFirstLabel||this.isLast&&!this.isFirst&&!h.showLastLabel?F=!1:!m||c.step||c.rotation||e||0===b||this.handleOverflow(a),w&&k%w&&(F=!1),F&&n(a.y)?(a.opacity=b,u[this.isNewLabel?"attr": "animate"](a),this.isNewLabel=!1):(u.attr("y",-9999),this.isNewLabel=!0))};k.prototype.replaceMovedLabel=function(){var a=this.label,d=this.axis,e=d.reversed;if(a&&!this.isNew){var b=d.horiz?e?d.left:d.width+d.left:a.xy.x;e=d.horiz?a.xy.y:e?d.width+d.top:d.top;a.animate({x:b,y:e,opacity:0},void 0,a.destroy);delete this.label}d.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return k}();"";return f});I(f,"Core/Axis/Axis.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Axis/AxisDefaults.js"], f["Core/Color/Color.js"],f["Core/DefaultOptions.js"],f["Core/Foundation.js"],f["Core/Globals.js"],f["Core/Axis/Tick.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E,y){var q=b.animObject,l=B.defaultOptions,n=r.registerEventOptions,e=A.deg2rad,a=y.arrayMax,d=y.arrayMin,k=y.clamp,G=y.correctFloat,z=y.defined,C=y.destroyObjectProperties,x=y.erase,t=y.error,m=y.extend,h=y.fireEvent,u=y.getMagnitude,c=y.isArray,w=y.isNumber,g=y.isString,F=y.merge,p=y.normalizeTickInterval,D=y.objectEach,H=y.pick,L= y.relativeLength,P=y.removeEvent,K=y.splat,S=y.syncTimeout;b=function(){function b(c,a){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options= this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0;this.init(c,a)}b.prototype.init=function(c,a){var g=a.isX;this.chart=c;this.horiz=c.inverted&&!this.isZAxis?!g:g;this.isXAxis=g;this.coll=this.coll||(g?"xAxis":"yAxis"); h(this,"init",{userOptions:a});this.opposite=H(a.opposite,this.opposite);this.side=H(a.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(a);var d=this.options,e=d.labels,b=d.type;this.userOptions=a;this.minPixelPadding=0;this.reversed=H(d.reversed,this.reversed);this.visible=d.visible;this.zoomEnabled=d.zoomEnabled;this.hasNames="category"===b||!0===d.categories;this.categories=d.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups= {};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=z(d.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=d.minRange||d.maxZoom;this.range=d.range;this.offset=d.offset||0;this.min=this.max=null;a=H(d.crosshair,K(c.options.tooltip.crosshairs)[g?0:1]);this.crosshair=!0===a?{}:a;-1===c.axes.indexOf(this)&&(g?c.axes.splice(c.xAxis.length,0,this):c.axes.push(this),c[this.coll].push(this));this.series= this.series||[];c.inverted&&!this.isZAxis&&g&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=w(e.rotation)?e.rotation:void 0;n(this,d);h(this,"afterInit")};b.prototype.setOptions=function(c){this.options=F(f.defaultXAxisOptions,"yAxis"===this.coll&&f.defaultYAxisOptions,[f.defaultTopAxisOptions,f.defaultRightAxisOptions,f.defaultBottomAxisOptions,f.defaultLeftAxisOptions][this.side],F(l[this.coll],c));h(this,"afterSetOptions",{userOptions:c})};b.prototype.defaultLabelFormatter= function(c){var a=this.axis;c=this.chart.numberFormatter;var g=w(this.value)?this.value:NaN,h=a.chart.time,d=this.dateTimeLabelFormat,e=l.lang,b=e.numericSymbols;e=e.numericSymbolMagnitude||1E3;var p=a.logarithmic?Math.abs(g):a.tickInterval,u=b&&b.length;if(a.categories)var m=""+this.value;else if(d)m=h.dateFormat(d,g);else if(u&&1E3<=p)for(;u--&&"undefined"===typeof m;)a=Math.pow(e,u+1),p>=a&&0===10*g%a&&null!==b[u]&&0!==g&&(m=c(g/a,-1)+b[u]);"undefined"===typeof m&&(m=1E4<=Math.abs(g)?c(g,-1):c(g, -1,void 0,""));return m};b.prototype.getSeriesExtremes=function(){var c=this,a=c.chart,g;h(this,"getSeriesExtremes",null,function(){c.hasVisibleSeries=!1;c.dataMin=c.dataMax=c.threshold=null;c.softThreshold=!c.isXAxis;c.stacking&&c.stacking.buildStacks();c.series.forEach(function(h){if(h.visible||!a.options.chart.ignoreHiddenSeries){var d=h.options,e=d.threshold;c.hasVisibleSeries=!0;c.positiveValuesOnly&&0>=e&&(e=null);if(c.isXAxis){if(d=h.xData,d.length){d=c.logarithmic?d.filter(c.validatePositiveValue): d;g=h.getXExtremes(d);var b=g.min;var p=g.max;w(b)||b instanceof Date||(d=d.filter(w),g=h.getXExtremes(d),b=g.min,p=g.max);d.length&&(c.dataMin=Math.min(H(c.dataMin,b),b),c.dataMax=Math.max(H(c.dataMax,p),p))}}else if(h=h.applyExtremes(),w(h.dataMin)&&(b=h.dataMin,c.dataMin=Math.min(H(c.dataMin,b),b)),w(h.dataMax)&&(p=h.dataMax,c.dataMax=Math.max(H(c.dataMax,p),p)),z(e)&&(c.threshold=e),!d.softThreshold||c.positiveValuesOnly)c.softThreshold=!1}})});h(this,"afterGetSeriesExtremes")};b.prototype.translate= function(c,a,g,h,d,e){var b=this.linkedParent||this,p=h&&b.old?b.old.min:b.min,u=b.minPixelPadding;d=(b.isOrdinal||b.brokenAxis&&b.brokenAxis.hasBreaks||b.logarithmic&&d)&&b.lin2val;var m=1,k=0;h=h&&b.old?b.old.transA:b.transA;h||(h=b.transA);g&&(m*=-1,k=b.len);b.reversed&&(m*=-1,k-=m*(b.sector||b.len));a?(e=(c*m+k-u)/h+p,d&&(e=b.lin2val(e))):(d&&(c=b.val2lin(c)),c=m*(c-p)*h,e=w(p)?(b.isRadial?c:G(c))+k+m*u+(w(e)?h*e:0):void 0);return e};b.prototype.toPixels=function(c,a){return this.translate(c, !1,!this.horiz,null,!0)+(a?0:this.pos)};b.prototype.toValue=function(c,a){return this.translate(c-(a?0:this.pos),!0,!this.horiz,null,!0)};b.prototype.getPlotLinePath=function(c){function a(c,a,g){if("pass"!==l&&cg)l?c=k(c,a,g):L=!0;return c}var g=this,d=g.chart,e=g.left,b=g.top,p=c.old,m=c.value,u=c.lineWidth,D=p&&d.oldChartHeight||d.chartHeight,F=p&&d.oldChartWidth||d.chartWidth,t=g.transB,f=c.translatedValue,l=c.force,n,z,x,C,L;c={value:m,lineWidth:u,old:p,force:l,acrossPanes:c.acrossPanes, translatedValue:f};h(this,"getPlotLinePath",c,function(c){f=H(f,g.translate(m,null,null,p));f=k(f,-1E5,1E5);n=x=Math.round(f+t);z=C=Math.round(D-f-t);w(f)?g.horiz?(z=b,C=D-g.bottom,n=x=a(n,e,e+g.width)):(n=e,x=F-g.right,z=C=a(z,b,b+g.height)):(L=!0,l=!1);c.path=L&&!l?null:d.renderer.crispLine([["M",n,z],["L",x,C]],u||1)});return c.path};b.prototype.getLinearTickPositions=function(c,a,g){var h=G(Math.floor(a/c)*c);g=G(Math.ceil(g/c)*c);var d=[],e;G(h+c)===h&&(e=20);if(this.single)return[a];for(a=h;a<= g;){d.push(a);a=G(a+c,e);if(a===b)break;var b=a}return d};b.prototype.getMinorTickInterval=function(){var c=this.options;return!0===c.minorTicks?H(c.minorTickInterval,"auto"):!1===c.minorTicks?null:c.minorTickInterval};b.prototype.getMinorTickPositions=function(){var c=this.options,a=this.tickPositions,g=this.minorTickInterval,h=this.pointRangePadding||0,d=this.min-h;h=this.max+h;var e=h-d,b=[];if(e&&e/g=this.minRange;var D=this.minRange;var F=(D-e+h)/2;F=[h-F,H(c.min,h-F)];w&&(F[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);h=a(F);e=[h+D,H(c.max,h+D)];w&&(e[2]=g?g.log2lin(this.dataMax):this.dataMax);e=d(e);e-h=n)L=n,f=0;else if(this.dataMax<=n){var q=n;F=0}this.min=H(x,L,this.dataMin);this.max=H(C,q,this.dataMax)}g&&(this.positiveValuesOnly&&!c&&0>=Math.min(this.min,H(this.dataMin,this.min))&&t(10,1,a),this.min=G(g.log2lin(this.min),16),this.max=G(g.log2lin(this.max),16));this.range&&z(this.max)&&(this.userMin=this.min=x=Math.max(this.dataMin,this.minFromRange()),this.userMax=C=this.max,this.range=null);h(this,"foundExtremes"); this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(k||this.axisPointRange||this.stacking&&this.stacking.usePercentage||b)&&z(this.min)&&z(this.max)&&(a=this.max-this.min)&&(!z(x)&&f&&(this.min-=a*f),!z(C)&&F&&(this.max+=a*F));w(this.userMin)||(w(d.softMin)&&d.softMinthis.max&&(this.max=C=d.softMax),w(d.ceiling)&&(this.max=Math.min(this.max,d.ceiling)));D&& z(this.dataMin)&&(n=n||0,!z(x)&&this.min=n?this.min=this.options.minRange?Math.min(n,this.max-this.minRange):n:!z(C)&&this.max>n&&this.dataMax<=n&&(this.max=this.options.minRange?Math.max(n,this.min+this.minRange):n));w(this.min)&&w(this.max)&&!this.chart.polar&&this.min>this.max&&(z(this.options.min)?this.max=this.min:z(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:b&&this.linkedParent&& !l&&m===this.linkedParent.options.tickPixelInterval?l=this.linkedParent.tickInterval:H(l,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,k?1:(this.max-this.min)*m/Math.max(this.len,m));if(e&&!c){var X=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(c){c.forceCrop=c.forceCropping&&c.forceCropping();c.processData(X)});h(this,"postProcessData",{hasExtemesChanged:X})}this.setAxisTranslation();h(this,"initialAxisTranslation"); this.pointRange&&!l&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));c=H(d.minTickInterval,this.dateTime&&!this.series.some(function(c){return c.noSharedTooltip})?this.closestPointRange:0);!l&&this.tickIntervalthis.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()}; b.prototype.setTickPositions=function(){var c=this.options,a=c.tickPositions,g=this.getMinorTickInterval(),d=this.hasVerticalPanning(),e="colorAxis"===this.coll,b=(e||!d)&&c.startOnTick;d=(e||!d)&&c.endOnTick;e=c.tickPositioner;this.tickmarkOffset=this.categories&&"between"===c.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===g&&this.tickInterval?this.tickInterval/5:g;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!== c.allowDecimals);this.tickPositions=g=a&&a.slice();!g&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?g=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,c.units),this.min,this.max,c.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min, this.max):(g=[this.min,this.max],t(19,!1,this.chart)),g.length>this.len&&(g=[g[0],g.pop()],g[0]===g[1]&&(g.length=1)),this.tickPositions=g,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=g=e);this.paddedTicks=g.slice(0);this.trimTicks(g,b,d);this.isLinked||(this.single&&2>g.length&&!this.categories&&!this.series.some(function(c){return c.is("heatmap")&&"between"===c.options.pointPlacement})&&(this.min-=.5,this.max+=.5),a||e||this.adjustTickAmount());h(this,"afterSetTickPositions")}; b.prototype.trimTicks=function(c,a,g){var d=c[0],e=c[c.length-1],b=!this.isOrdinal&&this.minPointOffset||0;h(this,"trimTicks");if(!this.isLinked){if(a&&-Infinity!==d)this.min=d;else for(;this.min-b>c[0];)c.shift();if(g)this.max=e;else for(;this.max+bg&&(this.finalTickAmt=g,g=5);this.tickAmount=g};b.prototype.adjustTickAmount=function(){var c=this,a=c.finalTickAmt,g=c.max,d=c.min,h=c.options,e=c.tickPositions,b=c.tickAmount,p=c.thresholdAlignment,m=e&&e.length,u=H(c.threshold,c.softThreshold?0:null);var k=c.tickInterval;if(w(p)){var D=.5>p?Math.ceil(p*(b-1)):Math.floor(p*(b-1));h.reversed&&(D=b-1-D)}if(c.hasData()&& w(d)&&w(g)){p=function(){c.transA*=(m-1)/(b-1);c.min=h.startOnTick?e[0]:Math.min(d,e[0]);c.max=h.endOnTick?e[e.length-1]:Math.max(g,e[e.length-1])};if(w(D)&&w(c.threshold)){for(;e[D]!==u||e.length!==b||e[0]>d||e[e.length-1]c.threshold?e.unshift(G(e[0]-k)):e.push(G(e[e.length-1]+k));if(k>8*c.tickInterval)break;k*=2}p()}else if(mb&& (c.tickInterval*=2,c.setTickPositions());if(z(a)){for(k=u=e.length;k--;)(3===a&&1===k%2||2>=a&&0m&&(a=m)),z(e)&&(hm&&(h=m))),g.displayBtn="undefined"!==typeof a||"undefined"!==typeof h,g.setExtremes(a,h,!1,void 0,{trigger:"zoom"});c.zoomed= !0});return c.zoomed};b.prototype.setAxisSize=function(){var c=this.chart,a=this.options,g=a.offsets||[0,0,0,0],d=this.horiz,h=this.width=Math.round(L(H(a.width,c.plotWidth-g[3]+g[1]),c.plotWidth)),e=this.height=Math.round(L(H(a.height,c.plotHeight-g[0]+g[2]),c.plotHeight)),b=this.top=Math.round(L(H(a.top,c.plotTop+g[0]),c.plotHeight,c.plotTop));a=this.left=Math.round(L(H(a.left,c.plotLeft+g[3]),c.plotWidth,c.plotLeft));this.bottom=c.chartHeight-e-b;this.right=c.chartWidth-h-a;this.len=Math.max(d? h:e,0);this.pos=d?a:b};b.prototype.getExtremes=function(){var c=this.logarithmic;return{min:c?G(c.lin2log(this.min)):this.min,max:c?G(c.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};b.prototype.getThreshold=function(c){var a=this.logarithmic,g=a?a.lin2log(this.min):this.min;a=a?a.lin2log(this.max):this.max;null===c||-Infinity===c?c=g:Infinity===c?c=a:g>c?c=g:aa?c.align="right":195a&&(c.align="left")});return c.align};b.prototype.tickSize=function(c){var a=this.options,g=H(a["tick"===c?"tickWidth":"minorTickWidth"],"tick"===c&&this.isXAxis&&!this.categories?1:0),d=a["tick"===c?"tickLength":"minorTickLength"];if(g&&d){"inside"===a[c+"Position"]&&(d=-d);var e=[d,g]}c={tickSize:e};h(this,"afterTickSize",c);return c.tickSize};b.prototype.labelMetrics= function(){var c=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[c]&&this.ticks[c].label)};b.prototype.unsquish=function(){var c=this.options.labels,a=this.horiz,g=this.tickInterval,d=this.len/(((this.categories?1:0)+this.max-this.min)/g),h=c.rotation,b=this.labelMetrics(),p=Math.max(this.max-this.min,0),m=function(c){var a=c/(d||1);a=1p&&Infinity!==c&&Infinity!==d&&p&&(a=Math.ceil(p/g));return G(a* g)},u=g,k,D,F=Number.MAX_VALUE;if(a){if(!c.staggerLines&&!c.step)if(w(h))var f=[h];else d=c){D=m(Math.abs(b.h/Math.sin(e*c)));var a=D+Math.abs(c/360);ad.step)return d.rotation?0:(this.staggerLines||1)*this.len/h;if(!g){c=d.style.width;if(void 0!==c)return parseInt(String(c),10);if(e)return e-a.spacing[3]}return.33*a.chartWidth};b.prototype.renderUnsquish=function(){var c=this.chart,a=c.renderer,d=this.tickPositions,h=this.ticks,e=this.options.labels,b=e.style,p=this.horiz,m=this.getSlotWidth(),u=Math.max(1,Math.round(m-2*e.padding)),k={},w=this.labelMetrics(),D=b.textOverflow,F=0;g(e.rotation)|| (k.rotation=e.rotation||0);d.forEach(function(c){c=h[c];c.movedLabel&&c.replaceMovedLabel();c&&c.label&&c.label.textPxLength>F&&(F=c.label.textPxLength)});this.maxLabelLength=F;if(this.autoRotation)F>u&&F>w.h?k.rotation=this.labelRotation:this.labelRotation=0;else if(m){var f=u;if(!D){var l="clip";for(u=d.length;!p&&u--;){var t=d[u];if(t=h[t].label)t.styles&&"ellipsis"===t.styles.textOverflow?t.css({textOverflow:"clip"}):t.textPxLength>m&&t.css({width:m+"px"}),t.getBBox().height>this.len/d.length- (w.h-w.f)&&(t.specificTextOverflow="ellipsis")}}}k.rotation&&(f=F>.5*c.chartHeight?.33*c.chartHeight:F,D||(l="ellipsis"));if(this.labelAlign=e.align||this.autoLabelAlign(this.labelRotation))k.align=this.labelAlign;d.forEach(function(c){var a=(c=h[c])&&c.label,g=b.width,d={};a&&(a.attr(k),c.shortenLabel?c.shortenLabel():f&&!g&&"nowrap"!==b.whiteSpace&&(f=this.min&&c<=this.max||this.grid&&this.grid.isColumn)d[c]||(d[c]=new E(this,c)),g&&d[c].isNew&&d[c].render(a,!0,-1),d[c].render(a)};b.prototype.render=function(){var c=this,a=c.chart,g=c.logarithmic,d=c.options,e=c.isLinked,b=c.tickPositions,p=c.axisTitle,m=c.ticks,u=c.minorTicks,k=c.alternateBands,F=d.stackLabels,f=d.alternateGridColor,t=c.tickmarkOffset,l=c.axisLine, n=c.showAxis,H=q(a.renderer.globalAnimation),x,z;c.labelEdge.length=0;c.overlap=!1;[m,u,k].forEach(function(c){D(c,function(c){c.isActive=!1})});if(c.hasData()||e){var C=c.chart.hasRendered&&c.old&&w(c.old.min);c.minorTickInterval&&!c.categories&&c.getMinorTickPositions().forEach(function(a){c.renderMinorTick(a,C)});b.length&&(b.forEach(function(a,g){c.renderTick(a,g,C)}),t&&(0===c.min||c.single)&&(m[-1]||(m[-1]=new E(c,-1,null,!0)),m[-1].render(-1)));f&&b.forEach(function(d,h){z="undefined"!==typeof b[h+ 1]?b[h+1]+t:c.max-t;0===h%2&&dd&&(!b||l<=e)&&"undefined"!==typeof l&&t.push(l);l>e&&(u=!0);l=w}}}else d=this.lin2log(d),e=this.lin2log(e),a=b?k.getMinorTickInterval():l.tickInterval,a=r("auto"===a?null:a,this.minorAutoInterval,l.tickPixelInterval/(b?5:1)*(e-d)/((b?f/k.tickPositions.length:f)||1)),a=B(a,void 0,v(a)),t=k.getLinearTickPositions(a,d,e).map(this.log2lin),b||(this.minorAutoInterval=a/5);b||(k.tickInterval=a);return t};e.prototype.lin2log=function(a){return Math.pow(10,a)};e.prototype.log2lin=function(a){return Math.log(a)/ Math.LN10};return e}();b.Additions=n})(A||(A={}));return A});I(f,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[f["Core/Utilities.js"]],function(b){var f=b.erase,v=b.extend,B=b.isNumber,r;(function(b){var r=[],y;b.compose=function(b,f){y||(y=b);-1===r.indexOf(f)&&(r.push(f),v(f.prototype,q.prototype));return f};var q=function(){function b(){}b.prototype.getPlotBandPath=function(b,e,a){void 0===a&&(a=this.options);var d=this.getPlotLinePath({value:e,force:!0,acrossPanes:a.acrossPanes}),k=[],f=this.horiz; e=!B(this.min)||!B(this.max)||bthis.max&&e>this.max;b=this.getPlotLinePath({value:b,force:!0,acrossPanes:a.acrossPanes});a=1;if(b&&d){if(e){var l=b.toString()===d.toString();a=0}for(e=0;et-h?t:t-h);else if(l)b[c]=Math.max(u,p+h+g>a?p:p+h);else return!1},q=function(c,a,g,d,h){var p;ha-e?p=!1:b[c]=ha-d/2?a-d-2:h-g/2;return p},G=function(c){var a=l;l=n;n=a;x=c},r=function(){!1!==C.apply(0,l)?!1!==q.apply(0,n)||x||(G(!0),r()):x?b.x=b.y=0:(G(!0),r())};(d.inverted||1a})&&(c= c.map(function(c){var a=g(c.anchorX,c.anchorY,c.point.isHeader,c.boxWidth,!1);return d(c,{target:a.y,x:a.x})}));e.cleanSplit();y(c,I);var aa=O,ea=O;c.forEach(function(c){var a=c.x,g=c.boxWidth;c=c.isHeader;c||(e.outside&&O+aea&&(ea=O+a))});c.forEach(function(c){var a=c.x,g=c.anchorX,d=c.pos,b=c.point.isHeader;d={visibility:"undefined"===typeof d?"hidden":"inherit",x:a,y:d+ca,anchorX:g,anchorY:c.anchorY};if(e.outside&&ag[0]?Math.max(Math.abs(g[0]),b.width-g[0]):Math.max(Math.abs(g[0]),b.width);d.height=0>g[1]?Math.max(Math.abs(g[1]),b.height-Math.abs(g[1])):Math.max(Math.abs(g[1]),b.height);this.tracker?this.tracker.attr(d):(this.tracker=a.renderer.rect(d).addClass("highcharts-tracker").add(a),c.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};b.prototype.styledModeFormat=function(c){return c.replace('style="font-size: 10px"', 'class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};b.prototype.tooltipFooterHeaderFormatter=function(c,a){var g=c.series,d=g.tooltipOptions,b=g.xAxis,e=b&&b.dateTime;b={isFooter:a,labelConfig:c};var h=d.xDateFormat,m=d[a?"footerFormat":"headerFormat"];k(this,"headerFormatter",b,function(a){e&&!h&&z(c.key)&&(h=e.getXDateFormat(c.key,d.dateTimeLabelFormats));e&&h&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(c){m= m.replace("{point."+c+"}","{point."+c+":"+h+"}")});g.chart.styledMode&&(m=this.styledModeFormat(m));a.text=A(m,{point:c,series:g},this.chart)});return b.text};b.prototype.update=function(c){this.destroy();x(!0,this.chart.options.tooltip.userOptions,c);this.init(this.chart,x(!0,this.options,c))};b.prototype.updatePosition=function(c){var a=this.chart,g=this.options,d=a.pointer,b=this.getLabel();d=d.getChartPosition();var e=(g.positioner||this.getPosition).call(this,b.width,b.height,c),h=c.plotX+a.plotLeft; c=c.plotY+a.plotTop;if(this.outside){g=g.borderWidth+2*this.distance;this.renderer.setSize(b.width+g,b.height+g,!1);if(1!==d.scaleX||1!==d.scaleY)n(this.container,{transform:"scale("+d.scaleX+", "+d.scaleY+")"}),h*=d.scaleX,c*=d.scaleY;h+=d.left-e.x;c+=d.top-e.y}this.move(Math.round(e.x),Math.round(e.y||0),h,c)};return b}();"";return b});I(f,"Core/Series/Point.js",[f["Core/Renderer/HTML/AST.js"],f["Core/Animation/AnimationUtilities.js"],f["Core/DefaultOptions.js"],f["Core/FormatUtilities.js"],f["Core/Utilities.js"]], function(b,f,v,B,r){var A=f.animObject,E=v.defaultOptions,y=B.format,q=r.addEvent,l=r.defined,n=r.erase,e=r.extend,a=r.fireEvent,d=r.getNestedProperty,k=r.isArray,G=r.isFunction,z=r.isNumber,C=r.isObject,x=r.merge,t=r.objectEach,m=r.pick,h=r.syncTimeout,u=r.removeEvent,c=r.uniqueKey;f=function(){function f(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible= !0;this.x=void 0}f.prototype.animateBeforeDestroy=function(){var c=this,a={x:c.startXPos,opacity:0},d=c.getGraphicalProps();d.singular.forEach(function(g){c[g]=c[g].animate("dataLabel"===g?{x:c[g].startXPos,y:c[g].startYPos,opacity:0}:a)});d.plural.forEach(function(a){c[a].forEach(function(a){a.element&&a.animate(e({x:c.startXPos},a.startYPos?{x:a.startXPos,y:a.startYPos}:{}))})})};f.prototype.applyOptions=function(c,a){var g=this.series,d=g.options.pointValKey||g.pointValKey;c=f.prototype.optionsToObject.call(this, c);e(this,c);this.options=this.options?e(this.options,c):c;c.group&&delete this.group;c.dataLabels&&delete this.dataLabels;d&&(this.y=f.prototype.getNestedProperty.call(this,d));this.formatPrefix=(this.isNull=m(this.isValid&&!this.isValid(),null===this.x||!z(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof a&&g.xAxis&&g.xAxis.hasNames&&(this.x=g.xAxis.nameToX(this));"undefined"===typeof this.x&&g?this.x="undefined"===typeof a?g.autoIncrement():a:z(c.x)&& g.options.relativeXValue&&(this.x=g.autoIncrement(c.x));return this};f.prototype.destroy=function(){function c(){if(a.graphic||a.dataLabel||a.dataLabels)u(a),a.destroyElements();for(k in a)a[k]=null}var a=this,d=a.series,b=d.chart;d=d.options.dataSorting;var e=b.hoverPoints,m=A(a.series.chart.renderer.globalAnimation),k;a.legendItem&&b.legend.destroyItem(a);e&&(a.setState(),n(e,a),e.length||(b.hoverPoints=null));if(a===b.hoverPoint)a.onMouseOut();d&&d.enabled?(this.animateBeforeDestroy(),h(c,m.duration)): c();b.pointCount--};f.prototype.destroyElements=function(c){var a=this;c=a.getGraphicalProps(c);c.singular.forEach(function(c){a[c]=a[c].destroy()});c.plural.forEach(function(c){a[c].forEach(function(c){c.element&&c.destroy()});delete a[c]})};f.prototype.firePointEvent=function(c,d,b){var g=this,e=this.series.options;(e.point.events[c]||g.options&&g.options.events&&g.options.events[c])&&g.importEvents();"click"===c&&e.allowPointSelect&&(b=function(c){g.select&&g.select(null,c.ctrlKey||c.metaKey|| c.shiftKey)});a(g,c,d,b)};f.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};f.prototype.getGraphicalProps=function(c){var a=this,g= [],d={singular:[],plural:[]},b;c=c||{graphic:1,dataLabel:1};c.graphic&&g.push("graphic","upperGraphic","shadowGroup");c.dataLabel&&g.push("dataLabel","dataLabelUpper","connector");for(b=g.length;b--;){var e=g[b];a[e]&&d.singular.push(e)}["dataLabel","connector"].forEach(function(g){var b=g+"s";c[g]&&a[b]&&d.plural.push(b)});return d};f.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this, percentage:this.percentage,total:this.total||this.stackTotal}};f.prototype.getNestedProperty=function(c){if(c)return 0===c.indexOf("custom.")?d(c,this.options):this[c]};f.prototype.getZone=function(){var c=this.series,a=c.zones;c=c.zoneAxis||"y";var d,b=0;for(d=a[b];this[c]>=d.value;)d=a[++b];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=d&&d.color&&!this.options.color?d.color:this.nonZonedColor;return d};f.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName|| this.graphic.element.nodeName))!==this.shapeType};f.prototype.init=function(g,d,b){this.series=g;this.applyOptions(d,b);this.id=l(this.id)?this.id:c();this.resolveColor();g.chart.pointCount++;a(this,"afterInit");return this};f.prototype.optionsToObject=function(c){var a=this.series,g=a.options.keys,d=g||a.pointArrayMap||["y"],b=d.length,e={},h=0,m=0;if(z(c)||null===c)e[d[0]]=c;else if(k(c))for(!g&&c.length>b&&(a=typeof c[0],"string"===a?e.name=c[0]:"number"===a&&(e.x=c[0]),h++);me+k&&(x=e+k),zh+m&&(z=h+m),this.hasDragged=Math.sqrt(Math.pow(f-x,2)+Math.pow(l-z,2)),10a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(c,b);if((b=G(a,!0)&&a.series)&&!(b=!G(e,!0))){b=e.distX-a.distX;var g=e.dist-a.dist,h=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex);b=0<(0!==b&&d?b:0!==g?g:0!==h?h:e.series.index> a.series.index?-1:1)}b&&(e=a)});return e};b.prototype.getChartCoordinatesFromPoint=function(a,d){var c=a.series,b=c.xAxis;c=c.yAxis;var g=a.shapeArgs;if(b&&c){var e=x(a.clientX,a.plotX),h=a.plotY||0;a.isNode&&g&&k(g.x)&&k(g.y)&&(e=g.x,h=g.y);return d?{chartX:c.len+c.pos-h,chartY:b.len+b.pos-e}:{chartX:e+b.pos,chartY:h+c.pos}}if(g&&g.x&&g.y)return{chartX:g.x,chartY:g.y}};b.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,d=C(a);this.chartPosition= {left:d.left,top:d.top,scaleX:1,scaleY:1};var c=a.offsetWidth;a=a.offsetHeight;2n.max&&(c=n.max-F,y=!0);y?(G-=.8*(G-k[f][0]),"number"===typeof r&&(r-=.8*(r-k[f][1])),d()):k[f]=[G,r];w||(e[f]=C-t,e[l]=F);e=w?1/q:q;g[l]=F;g[f]=c;b[w?a?"scaleY":"scaleX":"scale"+p]=q;b["translate"+p]=e*t+(G-e*x)};b.prototype.reset=function(a,d){var c=this.chart,b=c.hoverSeries,g=c.hoverPoint,e=c.hoverPoints, h=c.tooltip,k=h&&h.shared?e:g;a&&k&&t(k).forEach(function(c){c.series.isCartesian&&"undefined"===typeof c.plotX&&(a=!1)});if(a)h&&k&&t(k).length&&(h.refresh(k),h.shared&&e?e.forEach(function(c){c.setState(c.state,!0);c.series.isCartesian&&(c.series.xAxis.crosshair&&c.series.xAxis.drawCrosshair(null,c),c.series.yAxis.crosshair&&c.series.yAxis.drawCrosshair(null,c))}):g&&(g.setState(g.state,!0),c.axes.forEach(function(c){c.crosshair&&g.series[c.coll]===c&&c.drawCrosshair(null,g)})));else{if(g)g.onMouseOut(); e&&e.forEach(function(c){c.setState()});if(b)b.onMouseOut();h&&h.hide(d);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());c.axes.forEach(function(c){c.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}};b.prototype.runPointActions=function(d,e){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,g=h?h.shared:!1,k=e||c.hoverPoint,m=k&&k.series||c.hoverSeries;e=this.getHoverData(k,m,c.series,(!d||"touchmove"!==d.type)&&(!!e||m&&m.directTouch&&this.isDirectTouch), g,d);k=e.hoverPoint;m=e.hoverSeries;var f=e.hoverPoints;e=m&&m.tooltipOptions.followPointer&&!m.tooltipOptions.split;var u=g&&m&&!m.noSharedTooltip;if(k&&(k!==c.hoverPoint||h&&h.isHidden)){(c.hoverPoints||[]).forEach(function(c){-1===f.indexOf(c)&&c.setState()});if(c.hoverSeries!==m)m.onMouseOver();this.applyInactiveState(f);(f||[]).forEach(function(c){c.setState("hover")});c.hoverPoint&&c.hoverPoint.firePointEvent("mouseOut");if(!k.series)return;c.hoverPoints=f;c.hoverPoint=k;k.firePointEvent("mouseOver", void 0,function(){h&&k&&h.refresh(u?f:k,d)})}else e&&h&&!h.isHidden&&(g=h.getAnchor([{}],d),c.isInsidePlot(g[0],g[1],{visiblePlotOnly:!0})&&h.updatePosition({plotX:g[0],plotY:g[1]}));this.unDocMouseMove||(this.unDocMouseMove=y(c.container.ownerDocument,"mousemove",function(c){var a=A[b.hoverChartIndex];if(a)a.pointer.onDocumentMouseMove(c)}),this.eventsToUnbind.push(this.unDocMouseMove));c.axes.forEach(function(b){var g=x((b.crosshair||{}).snap,!0),e;g&&((e=c.hoverPoint)&&e.series[b.coll]===b||(e= a(f,function(c){return c.series&&c.series[b.coll]===b})));e||!g?b.drawCrosshair(d,e):b.hideCrosshair()})};b.prototype.scaleGroups=function(a,d){var c=this.chart;c.series.forEach(function(b){var g=a||b.getPlotBox();b.group&&(b.xAxis&&b.xAxis.zoomEnabled||c.mapView)&&(b.group.attr(g),b.markerGroup&&(b.markerGroup.attr(g),b.markerGroup.clip(d?c.clipRect:null)),b.dataLabelsGroup&&b.dataLabelsGroup.attr(g))});c.clipRect.attr(d||c.clipBox)};b.prototype.setDOMEvents=function(){var a=this,d=this.chart.container, c=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(y(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(y(d,"mouseleave",this.onContainerMouseLeave.bind(this)));b.unbindDocumentMouseUp||(b.unbindDocumentMouseUp=y(c,"mouseup",this.onDocumentMouseUp.bind(this)));for(var e=this.chart.renderTo.parentElement;e&&"BODY"!==e.tagName;)this.eventsToUnbind.push(y(e, "scroll",function(){delete a.chartPosition})),e=e.parentElement;f.hasTouch&&(this.eventsToUnbind.push(y(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(y(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),b.unbindDocumentTouchEnd||(b.unbindDocumentTouchEnd=y(c,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};b.prototype.setHoverChartIndex=function(){var a=this.chart,d=f.charts[x(b.hoverChartIndex,-1)];if(d&&d!==a)d.pointer.onContainerMouseLeave({relatedTarget:a.container}); d&&d.mouseIsDown||(b.hoverChartIndex=a.index)};b.prototype.touch=function(a,d){var c=this.chart,b;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(b=c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0}))&&!c.openMenu){d&&this.runPointActions(a);if("touchmove"===a.type){d=this.pinchDown;var g=d[0]?4<=Math.sqrt(Math.pow(d[0].chartX-a.chartX,2)+Math.pow(d[0].chartY-a.chartY,2)):!1}x(g,!0)&&this.pinch(a)}else d&&this.reset();else 2===a.touches.length&&this.pinch(a)}; b.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zoomBySingleTouch||!a.touches||1!==a.touches.length)};b.prototype.zoomOption=function(a){var d=this.chart,c=d.options.chart;d=d.inverted;var b=c.zoomType||"";/touch/.test(a.type)&&(b=x(c.pinchType,b));this.zoomX=a=/x/.test(b);this.zoomY=c=/y/.test(b);this.zoomHor=a&&!d||c&&d;this.zoomVert=c&&!d||a&&d;this.hasZoom=a||c};return b}();"";return b});I(f,"Core/MSPointer.js",[f["Core/Globals.js"],f["Core/Pointer.js"],f["Core/Utilities.js"]], function(b,f,v){function B(){var d=[];d.item=function(a){return this[a]};a(k,function(a){d.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return d}function r(a,d,b,e){var k=E[f.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!k||(k=k.pointer,e(a),k[d]({type:b,target:a.currentTarget,preventDefault:q,touches:B()}))}var A=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__= d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(d,b)};return function(d,b){function e(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),E=b.charts,y=b.doc,q=b.noop,l=b.win,n=v.addEvent,e=v.css,a=v.objectEach,d=v.removeEvent,k={},G=!!l.PointerEvent;return function(a){function f(){return null!==a&&a.apply(this,arguments)||this}A(f,a);f.isRequired=function(){return!(b.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)};f.prototype.batchMSEvents= function(a){a(this.chart.container,G?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,G?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(y,G?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};f.prototype.destroy=function(){this.batchMSEvents(d);a.prototype.destroy.call(this)};f.prototype.init=function(d,b){a.prototype.init.call(this,d,b);this.hasZoom&&e(d.container,{"-ms-touch-action":"none","touch-action":"none"})};f.prototype.onContainerPointerDown= function(a){r(a,"onContainerTouchStart","touchstart",function(a){k[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};f.prototype.onContainerPointerMove=function(a){r(a,"onContainerTouchMove","touchmove",function(a){k[a.pointerId]={pageX:a.pageX,pageY:a.pageY};k[a.pointerId].target||(k[a.pointerId].target=a.currentTarget)})};f.prototype.onDocumentPointerUp=function(a){r(a,"onDocumentTouchEnd","touchend",function(a){delete k[a.pointerId]})};f.prototype.setDOMEvents=function(){a.prototype.setDOMEvents.call(this); (this.hasZoom||this.followTouchMove)&&this.batchMSEvents(n)};return f}(f)});I(f,"Core/Legend/Legend.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/FormatUtilities.js"],f["Core/Globals.js"],f["Core/Series/Point.js"],f["Core/Renderer/RendererUtilities.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A){var E=b.animObject,y=b.setAnimation,q=f.format;b=v.isFirefox;var l=v.marginNames;v=v.win;var n=r.distribute,e=A.addEvent,a=A.createElement,d=A.css,k=A.defined,G=A.discardElement,z=A.find,C=A.fireEvent, x=A.isNumber,t=A.merge,m=A.pick,h=A.relativeLength,u=A.stableSort,c=A.syncTimeout;r=A.wrap;A=function(){function b(c,a){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options=void 0;this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup= void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=c;this.init(c,a)}b.prototype.init=function(c,a){this.chart=c;this.setOptions(a);a.enabled&&(this.render(),e(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=e(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};b.prototype.setOptions=function(c){var a=m(c.padding, 8);this.options=c;this.chart.styledMode||(this.itemStyle=c.itemStyle,this.itemHiddenStyle=t(this.itemStyle,c.itemHiddenStyle));this.itemMarginTop=c.itemMarginTop||0;this.itemMarginBottom=c.itemMarginBottom||0;this.padding=a;this.initialItemY=a-5;this.symbolWidth=m(c.symbolWidth,16);this.pages=[];this.proximate="proximate"===c.layout&&!this.chart.inverted;this.baseline=void 0};b.prototype.update=function(c,a){var d=this.chart;this.setOptions(t(!0,this.options,c));this.destroy();d.isDirtyLegend=d.isDirtyBox= !0;m(a,!0)&&d.redraw();C(this,"afterUpdate")};b.prototype.colorizeItem=function(c,a){c.legendGroup[a?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var d=this.options,b=c.legendItem,e=c.legendLine,g=c.legendSymbol,h=this.itemHiddenStyle.color;d=a?d.itemStyle.color:h;var k=a?c.color||h:h,m=c.options&&c.options.marker,f={fill:k};b&&b.css({fill:d,color:d});e&&e.attr({stroke:k});g&&(m&&g.isMarker&&(f=c.pointAttribs(),a||(f.stroke=f.fill=h)),g.attr(f))}C(this,"afterColorizeItem", {item:c,visible:a})};b.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};b.prototype.positionItem=function(c){var a=this,d=this.options,b=d.symbolPadding,e=!d.rtl,g=c._legendItemPos;d=g[0];g=g[1];var h=c.checkbox,m=c.legendGroup;m&&m.element&&(b={translateX:e?d:this.legendWidth-d-2*b-4,translateY:g},e=function(){C(a,"afterPositionItem",{item:c})},k(m.translateY)?m.animate(b,void 0,e):(m.attr(b),e()));h&&(h.x=d,h.y=g)}; b.prototype.destroyItem=function(c){var a=c.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(a){c[a]&&(c[a]=c[a].destroy())});a&&G(c.checkbox)};b.prototype.destroy=function(){function c(c){this[c]&&(this[c]=this[c].destroy())}this.getAllItems().forEach(function(a){["legendItem","legendGroup"].forEach(c,a)});"clipRect up down pager nav box title group".split(" ").forEach(c,this);this.display=null};b.prototype.positionCheckboxes=function(){var c=this.group&&this.group.alignAttr, a=this.clipHeight||this.legendHeight,b=this.titleHeight;if(c){var e=c.translateY;this.allItems.forEach(function(g){var h=g.checkbox;if(h){var k=e+b+h.y+(this.scrollOffset||0)+3;d(h,{left:c.translateX+g.checkboxOffset+h.x-20+"px",top:k+"px",display:this.proximate||k>e-6&&k1.5*d?a.height:d))};b.prototype.layoutItem=function(c){var a=this.options,d=this.padding,b="horizontal"===a.layout,e=c.itemHeight,g=this.itemMarginBottom,h=this.itemMarginTop,k=b?m(a.itemDistance,20):0,f=this.maxLegendWidth;a=a.alignColumns&&this.totalItemWidth>f?this.maxItemWidth:c.itemWidth;b&&this.itemX-d+a>f&&(this.itemX=d,this.lastLineHeight&&(this.itemY+=h+this.lastLineHeight+g),this.lastLineHeight=0);this.lastItemY=h+this.itemY+g;this.lastLineHeight= Math.max(e,this.lastLineHeight);c._legendItemPos=[this.itemX,this.itemY];b?this.itemX+=a:(this.itemY+=h+e+g,this.lastLineHeight=e);this.offsetWidth=this.widthOption||Math.max((b?this.itemX-d-(c.checkbox?0:k):a)+d,this.offsetWidth)};b.prototype.getAllItems=function(){var c=[];this.chart.series.forEach(function(a){var d=a&&a.options;a&&m(d.showInLegend,k(d.linkedTo)?!1:void 0,!0)&&(c=c.concat(a.legendItems||("point"===d.legendType?a.data:a)))});C(this,"afterGetAllItems",{allItems:c});return c};b.prototype.getAlignment= function(){var c=this.options;return this.proximate?c.align.charAt(0)+"tv":c.floating?"":c.align.charAt(0)+c.verticalAlign.charAt(0)+c.layout.charAt(0)};b.prototype.adjustMargins=function(c,a){var d=this.chart,b=this.options,e=this.getAlignment();e&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(g,h){g.test(e)&&!k(c[h])&&(d[l[h]]=Math.max(d[l[h]],d.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*b[h%2?"x":"y"]+m(b.margin,12)+a[h]+(d.titleOffset[h]||0)))})}; b.prototype.proximatePositions=function(){var c=this.chart,a=[],d="left"===this.options.align;this.allItems.forEach(function(b){var e;var g=d;if(b.yAxis){b.xAxis.options.reversed&&(g=!g);b.points&&(e=z(g?b.points:b.points.slice(0).reverse(),function(c){return x(c.plotY)}));g=this.itemMarginTop+b.legendItem.getBBox().height+this.itemMarginBottom;var h=b.yAxis.top-c.plotTop;b.visible?(e=e?e.plotY:b.yAxis.height,e+=h-.3*g):e=h+b.yAxis.height;a.push({target:e,size:g,item:b})}},this);n(a,c.plotHeight).forEach(function(a){a.item._legendItemPos&& (a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos)})};b.prototype.render=function(){var c=this.chart,a=c.renderer,d=this.options,b=this.padding,e=this.getAllItems(),k=this.group,m=this.box;this.itemX=b;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=h(d.width,c.spacingBox.width-b);var f=c.spacingBox.width-2*b-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(f/=2);this.maxLegendWidth=this.widthOption||f;k||(this.group=k=a.g("legend").addClass(d.className|| "").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(k),this.scrollGroup=a.g().add(this.contentGroup));this.renderTitle();u(e,function(c,a){return(c.options&&c.options.legendIndex||0)-(a.options&&a.options.legendIndex||0)});d.reversed&&e.reverse();this.allItems=e;this.display=f=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;e.forEach(this.renderItem,this);e.forEach(this.layoutItem,this);e=(this.widthOption||this.offsetWidth)+b;var l=this.lastItemY+ this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l);l+=b;m||(this.box=m=a.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(k));c.styledMode||m.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow);if(0g&&!1!==u.enabled?(this.clipHeight=C=Math.max(g-20-this.titleHeight-k,0),this.currentPage=m(this.currentPage,1),this.fullHeight=c,w.forEach(function(c,a){var d=c._legendItemPos[1],b=Math.round(c.legendItem.getBBox().height), e=n.length;if(!e||d-n[e-1]>C&&(q||d)!==n[e-1])n.push(q||d),e++;c.pageIx=e-1;q&&(w[a-1].pageIx=e-1);a===w.length-1&&d+b-n[e-1]>C&&b<=C&&(n.push(d),c.pageIx=e);d!==q&&(q=d)}),r||(r=a.clipRect=b.clipRect(0,k,9999,0),a.contentGroup.clip(r)),x(C),G||(this.nav=G=b.g().attr({zIndex:1}).add(this.group),this.up=b.symbol("triangle",0,0,t,t).add(G),z("upTracker").on("click",function(){a.scroll(-1,l)}),this.pager=b.text("",15,10).addClass("highcharts-legend-navigation"),!d.styledMode&&u.style&&this.pager.css(u.style), this.pager.add(G),this.down=b.symbol("triangle-down",0,0,t,t).add(G),z("downTracker").on("click",function(){a.scroll(1,l)})),a.scroll(0),c=g):G&&(x(),this.nav=G.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return c};b.prototype.scroll=function(a,d){var b=this,e=this.chart,g=this.pages,h=g.length,k=this.clipHeight,f=this.options.navigation,u=this.pager,l=this.padding,t=this.currentPage+a;t>h&&(t=h);0=Math.max(m+g,p.pos)&&k<=Math.min(m+g+e.width,p.pos+p.len)||(c.isInsidePlot=!1)}!b.ignoreY&&c.isInsidePlot&&(d=u&&(d?u.xAxis:u.yAxis)||{pos:h,len:Infinity},b=b.paneCoordinates?d.pos+a:h+ a,b>=Math.max(f+h,d.pos)&&b<=Math.min(f+h+e.height,d.pos+d.len)||(c.isInsidePlot=!1));N(this,"afterIsInsidePlot",c);return c.isInsidePlot};b.prototype.redraw=function(c){N(this,"beforeRedraw");var a=this.hasCartesianSeries?this.axes:this.colorAxis||[],b=this.series,d=this.pointer,e=this.legend,g=this.userOptions.legend,h=this.renderer,k=h.isHidden(),m=[],f=this.isDirtyBox,u=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);C(this.hasRendered?c:!1,this);k&&this.temporaryDisplay();this.layOutTitles(); for(c=b.length;c--;){var p=b[c];if(p.options.stacking||p.options.centerInCategory){var l=!0;if(p.isDirty){var t=!0;break}}}if(t)for(c=b.length;c--;)p=b[c],p.options.stacking&&(p.isDirty=!0);b.forEach(function(c){c.isDirty&&("point"===c.options.legendType?("function"===typeof c.updateTotals&&c.updateTotals(),u=!0):g&&(g.labelFormatter||g.labelFormat)&&(u=!0));c.isDirtyData&&N(c,"updatedData")});u&&e&&e.options.enabled&&(e.render(),this.isDirtyLegend=!1);l&&this.getStacks();a.forEach(function(c){c.updateNames(); c.setScale()});this.getMargins();a.forEach(function(c){c.isDirty&&(f=!0)});a.forEach(function(c){var a=c.min+","+c.max;c.extKey!==a&&(c.extKey=a,m.push(function(){N(c,"afterSetExtremes",ba(c.eventArgs,c.getExtremes()));delete c.eventArgs}));(f||l)&&c.redraw()});f&&this.drawChartBox();N(this,"predraw");b.forEach(function(c){(f||c.isDirty)&&c.visible&&c.redraw();c.isDirtyData=!1});d&&d.reset(!0);h.draw();N(this,"redraw");N(this,"render");k&&this.temporaryDisplay(!0);m.forEach(function(c){c.call()})}; b.prototype.get=function(c){function a(a){return a.id===c||a.options&&a.options.id===c}for(var b=this.series,d=fa(this.axes,a)||fa(this.series,a),e=0;!d&&e=k&&d<=f||m||!S(d))p=!0;b[m?"zoomX":"zoomY"]&&p&&(g=h.zoom(c.min,c.max),h.displayBtn&&(e=!0))});var h=a.resetZoomButton;e&&!h?a.showResetZoom():!e&&Q(h)&&(a.resetZoomButton=h.destroy());g&&a.redraw(O(a.options.chart.animation, c&&c.animation,100>a.pointCount))};b.prototype.pan=function(c,a){var b=this,d=b.hoverPoints;a="object"===typeof a?a:{enabled:a,type:"x"};var e=b.options.chart,g=b.options.mapNavigation&&b.options.mapNavigation.enabled;e&&e.panning&&(e.panning=a);var h=a.type,k;N(this,"pan",{originalEvent:c},function(){d&&d.forEach(function(c){c.setState()});var a=b.xAxis;"xy"===h?a=a.concat(b.yAxis):"y"===h&&(a=b.yAxis);var e={};a.forEach(function(a){if(a.options.panningEnabled&&!a.options.isInternal){var d=a.horiz, f=c[d?"chartX":"chartY"];d=d?"mouseDownX":"mouseDownY";var m=b[d],p=a.minPointOffset||0,u=a.reversed&&!b.inverted||!a.reversed&&b.inverted?-1:1,l=a.getExtremes(),t=a.toValue(m-f,!0)+p*u,n=a.toValue(m+a.len-f,!0)-(p*u||a.isXAxis&&a.pointRangePadding||0),w=n=u&&t<=n&&(a.setExtremes(m,t,!1, !1,{trigger:"pan"}),b.resetZoomButton||g||m===u||t===n||!h.match("y")||(b.showResetZoom(),a.displayBtn=!1),k=!0),e[d]=f)}});V(e,function(c,a){b[a]=c});k&&b.redraw(!1);K(b.container,{cursor:"move"})})};return b}();ba(b.prototype,{callbacks:[],collectionsWithInit:{xAxis:[b.prototype.addAxis,[!0]],yAxis:[b.prototype.addAxis,[!1]],series:[b.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "), propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return b});I(f,"Core/Legend/LegendSymbol.js",[f["Core/Utilities.js"]],function(b){var f=b.merge,v=b.pick,B;(function(b){b.drawLineMarker=function(b){var r=this.options,y=b.symbolWidth,q=b.symbolHeight,l=q/2,n=this.chart.renderer, e=this.legendGroup;b=b.baseline-Math.round(.3*b.fontMetrics.b);var a={},d=r.marker;this.chart.styledMode||(a={"stroke-width":r.lineWidth||0},r.dashStyle&&(a.dashstyle=r.dashStyle));this.legendLine=n.path([["M",0,b],["L",y,b]]).addClass("highcharts-graph").attr(a).add(e);d&&!1!==d.enabled&&y&&(r=Math.min(v(d.radius,l),l),0===this.symbol.indexOf("url")&&(d=f(d,{width:q,height:q}),r=0),this.legendSymbol=y=n.symbol(this.symbol,y/2-r,b-r,2*r,2*r,d).addClass("highcharts-point").add(e),y.isMarker=!0)};b.drawRectangle= function(b,f){var r=b.symbolHeight,q=b.options.squareSymbol;f.legendSymbol=this.chart.renderer.rect(q?(b.symbolWidth-r)/2:0,b.baseline-r+1,q?r:b.symbolWidth,r,v(b.options.symbolRadius,r/2)).addClass("highcharts-point").attr({zIndex:3}).add(f.legendGroup)}})(B||(B={}));return B});I(f,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0}, hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var b=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":b(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0}, hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});I(f,"Core/Series/Series.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/DefaultOptions.js"],f["Core/Foundation.js"],f["Core/Globals.js"],f["Core/Legend/LegendSymbol.js"],f["Core/Series/Point.js"],f["Core/Series/SeriesDefaults.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Renderer/SVG/SVGElement.js"], f["Core/Utilities.js"]],function(b,f,v,B,r,A,E,y,q,l){var n=b.animObject,e=b.setAnimation,a=f.defaultOptions,d=v.registerEventOptions,k=B.hasTouch,G=B.svg,z=B.win,C=y.seriesTypes,x=l.addEvent,t=l.arrayMax,m=l.arrayMin,h=l.clamp,u=l.cleanRecursively,c=l.correctFloat,w=l.defined,g=l.erase,F=l.error,p=l.extend,D=l.find,H=l.fireEvent,L=l.getNestedProperty,J=l.isArray,K=l.isNumber,S=l.isString,W=l.merge,I=l.objectEach,M=l.pick,ba=l.removeEvent,fa=l.splat,N=l.syncTimeout;b=function(){function b(){this.zones= this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}b.prototype.init=function(c,a){H(this,"init",{options:a});var b=this,e=c.series;this.eventsToUnbind=[];b.chart=c;b.options=b.setOptions(a);a=b.options;b.linkedSeries=[];b.bindAxes();p(b,{name:a.name,state:"",visible:!1!==a.visible,selected:!0===a.selected});d(this,a);var g= a.events;if(g&&g.click||a.point&&a.point.events&&a.point.events.click||a.allowPointSelect)c.runTrackerClick=!0;b.getColor();b.getSymbol();b.parallelArrays.forEach(function(c){b[c+"Data"]||(b[c+"Data"]=[])});b.isCartesian&&(c.hasCartesianSeries=!0);var h;e.length&&(h=e[e.length-1]);b._i=M(h&&h._i,-1)+1;b.opacity=b.options.opacity;c.orderSeries(this.insert(e));a.dataSorting&&a.dataSorting.enabled?b.setDataSortingOptions():b.points||b.data||b.setData(a.data,!1);H(this,"afterInit")};b.prototype.is=function(c){return C[c]&& this instanceof C[c]};b.prototype.insert=function(c){var a=this.options.index,b;if(K(a)){for(b=c.length;b--;)if(a>=M(c[b].options.index,c[b]._i)){c.splice(b+1,0,this);break}-1===b&&c.unshift(this);b+=1}else c.push(this);return M(b,c.length-1)};b.prototype.bindAxes=function(){var c=this,a=c.options,b=c.chart,d;H(this,"bindAxes",null,function(){(c.axisTypes||[]).forEach(function(e){var g=0;b[e].forEach(function(b){d=b.options;if(a[e]===g&&!d.isInternal||"undefined"!==typeof a[e]&&a[e]===d.id||"undefined"=== typeof a[e]&&0===d.index)c.insert(b.series),c[e]=b,b.isDirty=!0;d.isInternal||g++});c[e]||c.optionalAxis===e||F(18,!0,b)})});H(this,"afterBindAxes")};b.prototype.updateParallelArrays=function(c,a){var b=c.series,d=arguments,e=K(a)?function(d){var e="y"===d&&b.toYData?b.toYData(c):c[d];b[d+"Data"][a]=e}:function(c){Array.prototype[a].apply(b[c+"Data"],Array.prototype.slice.call(d,2))};b.parallelArrays.forEach(e)};b.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&& "undefined"!==typeof this.dataMin||this.visible&&this.yData&&0=this.cropStart?f-this.cropStart:f);!k&&K(f)&&e[f]&&e[f].touched&&(f=void 0);return f};b.prototype.updateData=function(c,a){var b=this.options,d=b.dataSorting,e=this.points,g=[],h=this.requireSorting,k=c.length===e.length,f,m,p,u=!0;this.xIncrement=null;c.forEach(function(c, a){var m=w(c)&&this.pointClass.prototype.optionsToObject.call({series:this},c)||{},u=m.x;if(m.id||K(u)){if(m=this.findPointIndex(m,p),-1===m||"undefined"===typeof m?g.push(c):e[m]&&c!==b.data[m]?(e[m].update(c,!1,null,!1),e[m].touched=!0,h&&(p=m+1)):e[m]&&(e[m].touched=!0),!k||a!==m||d&&d.enabled||this.hasDerivedData)f=!0}else g.push(c)},this);if(f)for(c=e.length;c--;)(m=e[c])&&!m.touched&&m.remove&&m.remove(!1,a);else!k||d&&d.enabled?u=!1:(c.forEach(function(c,a){c!==e[a].y&&e[a].update&&e[a].update(c, !1,null,!1)}),g.length=0);e.forEach(function(c){c&&(c.touched=!1)});if(!u)return!1;g.forEach(function(c){this.addPoint(c,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=t(this.xData),this.autoIncrement());return!0};b.prototype.setData=function(c,a,b,d){var e=this,g=e.points,h=g&&g.length||0,k=e.options,f=e.chart,m=k.dataSorting,p=e.xAxis,u=k.turboThreshold,l=this.xData,t=this.yData,n=e.pointArrayMap;n=n&&n.length;var w=k.keys,x,z=0,C=1,D=null;c=c||[]; var q=c.length;a=M(a,!0);m&&m.enabled&&(c=this.sortData(c));!1!==d&&q&&h&&!e.cropped&&!e.hasGroupedData&&e.visible&&!e.isSeriesBoosting&&(x=this.updateData(c,b));if(!x){e.xIncrement=null;e.colorCounter=0;this.parallelArrays.forEach(function(c){e[c+"Data"].length=0});if(u&&q>u)if(D=e.getFirstValidPoint(c),K(D))for(b=0;bc?1:0}).forEach(function(c,a){c.x=a},this);a.linkedSeries&&a.linkedSeries.forEach(function(a){var b= a.options,e=b.data;b.dataSorting&&b.dataSorting.enabled||!e||(e.forEach(function(b,g){e[g]=d(a,b);c[g]&&(e[g].x=c[g].x,e[g].index=g)}),a.setData(e,!1))});return c};b.prototype.getProcessedData=function(c){var a=this.xAxis,b=this.options,d=b.cropThreshold,e=c||this.getExtremesFromAll||b.getExtremesFromAll,g=this.isCartesian;c=a&&a.val2lin;b=!(!a||!a.logarithmic);var h=0,k=this.xData,f=this.yData,m=this.requireSorting;var p=!1;var u=k.length;if(a){p=a.getExtremes();var l=p.min;var t=p.max;p=!(!a.categories|| a.names.length)}if(g&&this.sorted&&!e&&(!d||u>d||this.forceCrop))if(k[u-1]t)k=[],f=[];else if(this.yData&&(k[0]t)){var n=this.cropData(this.xData,this.yData,l,t);k=n.xData;f=n.yData;h=n.start;n=!0}for(d=k.length||1;--d;)if(a=b?c(k[d])-c(k[d-1]):k[d]-k[d-1],0a&&m&&!p&&(F(15,!1,this.chart),m=!1);return{xData:k,yData:f,cropped:n,cropStart:h,closestPointRange:w}};b.prototype.processData=function(c){var a=this.xAxis;if(this.isCartesian&& !this.isDirty&&!a.isDirty&&!this.yAxis.isDirty&&!c)return!1;c=this.getProcessedData();this.cropped=c.cropped;this.cropStart=c.cropStart;this.processedXData=c.xData;this.processedYData=c.yData;this.closestPointRange=this.basePointRange=c.closestPointRange;H(this,"afterProcessData")};b.prototype.cropData=function(c,a,b,d,e){var g=c.length,h,k=0,f=g;e=M(e,this.cropShoulder);for(h=0;h=b){k=Math.max(0,h-e);break}for(b=h;bd){f=b+e;break}return{xData:c.slice(k,f),yData:a.slice(k, f),start:k,end:f}};b.prototype.generatePoints=function(){var c=this.options,a=this.processedData||c.data,b=this.processedXData,d=this.processedYData,e=this.pointClass,g=b.length,h=this.cropStart||0,k=this.hasGroupedData,f=c.keys,m=[];c=c.dataGrouping&&c.dataGrouping.groupAll?h:0;var u,l,t=this.data;if(!t&&!k){var n=[];n.length=a.length;t=this.data=n}f&&k&&(this.options.keys=!1);for(l=0;l=f&&(e[k-h]||w)<=p;if(x&&w)if(x=n.length)for(;x--;)K(n[x])&&(g[u++]=n[x]);else g[u++]=n}c={activeYData:g, dataMin:m(g),dataMax:t(g)};H(this,"afterGetExtremes",{dataExtremes:c});return c};b.prototype.applyExtremes=function(){var c=this.getExtremes();this.dataMin=c.dataMin;this.dataMax=c.dataMax;return c};b.prototype.getFirstValidPoint=function(c){for(var a=c.length,b=0,d=null;null===d&&b=y&&(y=null),D.total=D.stackTotal=F.total,D.percentage=F.total&&D.y/F.total*100,D.stackY=r,this.irregularWidths||F.setOffset(this.pointXOffset||0,this.barW||0));D.yBottom=w(y)?h(k.translate(y,0,1,0,1),-1E5,1E5):null;this.dataModify&&(r=this.dataModify.modifyValue(r,x));D.plotY=void 0;K(r)&&(F=k.translate(r,!1,!0,!1,!0), "undefined"!==typeof F&&(D.plotY=h(F,-1E5,1E5)));D.isInside=this.isPointInside(D);D.clientX=u?c(d.translate(q,0,0,0,1,p)):z;D.negative=D[n]<(a[n+"Threshold"]||l||0);D.category=M(e&&e[D.x],D.x);if(!D.isNull&&!1!==D.visible){"undefined"!==typeof A&&(C=Math.min(C,Math.abs(z-A)));var A=z}D.zone=this.zones.length?D.getZone():void 0;!D.graphic&&this.group&&g&&(D.isNew=!0)}this.closestPointRangePx=C;H(this,"afterTranslate")};b.prototype.getValidPoints=function(c,a,b){var d=this.chart;return(c||this.points|| []).filter(function(c){return a&&!d.isInsidePlot(c.plotX,c.plotY,{inverted:d.inverted})?!1:!1!==c.visible&&(b||!c.isNull)})};b.prototype.getClipBox=function(){var c=this.chart,a=this.xAxis,b=this.yAxis,d=W(c.clipBox);a&&a.len!==c.plotSizeX&&(d.width=a.len);b&&b.len!==c.plotSizeY&&(d.height=b.len);return d};b.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};b.prototype.setClip=function(){var c=this.chart,a=this.group,b=this.markerGroup, d=c.sharedClips;c=c.renderer;var e=this.getClipBox(),g=this.getSharedClipKey(),h=d[g];h?h.animate(e):d[g]=h=c.clipRect(e);a&&a.clip(!1===this.options.clip?void 0:h);b&&b.clip()};b.prototype.animate=function(c){var a=this.chart,b=this.group,d=this.markerGroup,e=a.inverted,g=n(this.options.animation),h=[this.getSharedClipKey(),g.duration,g.easing,g.defer].join(),k=a.sharedClips[h],f=a.sharedClips[h+"m"];if(c&&b)g=this.getClipBox(),k?k.attr("height",g.height):(g.width=0,e&&(g.x=a.plotHeight),k=a.renderer.clipRect(g), a.sharedClips[h]=k,f=a.renderer.clipRect({x:e?(a.plotSizeX||0)+99:-99,y:e?-a.plotLeft:-a.plotTop,width:99,height:e?a.chartWidth:a.chartHeight}),a.sharedClips[h+"m"]=f),b.clip(k),d&&d.clip(f);else if(k&&!k.hasClass("highcharts-animating")){a=this.getClipBox();var m=g.step;d&&d.element.childNodes.length&&(g.step=function(c,a){m&&m.apply(a,arguments);f&&f.element&&f.attr(a.prop,"width"===a.prop?c+99:c)});k.addClass("highcharts-animating").animate(a,g)}};b.prototype.afterAnimate=function(){var c=this; this.setClip();I(this.chart.sharedClips,function(a,b,d){a&&!c.chart.container.querySelector('[clip-path="url(#'+a.id+')"]')&&(a.destroy(),delete d[b])});this.finishedAnimating=!0;H(this,"afterAnimate")};b.prototype.drawPoints=function(){var c=this.points,a=this.chart,b=this.options.marker,d=this[this.specialGroup]||this.markerGroup,e=this.xAxis,g=M(b.enabled,!e||e.isRadial?!0:null,this.closestPointRangePx>=b.enabledThreshold*b.radius),h,k;if(!1!==b.enabled||this._hasPointMarkers)for(h=0;hH.max;c.resetZones&&0===l&&(l=void 0)});this.clips=e}else c.visible&&(g&&g.show(!0),k&&k.show(!0))};b.prototype.invertGroups=function(c){function a(){["group","markerGroup"].forEach(function(a){b[a]&& (d.renderer.isVML&&b[a].attr({width:b.yAxis.len,height:b.xAxis.len}),b[a].width=b.yAxis.len,b[a].height=b.xAxis.len,b[a].invert(b.isRadialSeries?!1:c))})}var b=this,d=b.chart;b.xAxis&&(b.eventsToUnbind.push(x(d,"resize",a)),a(),b.invertGroups=a)};b.prototype.plotGroup=function(c,a,b,d,e){var g=this[c],h=!g;b={visibility:b,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(b.opacity=this.opacity);h&&(this[c]=g=this.chart.renderer.g().add(e));g.addClass("highcharts-"+ a+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(w(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(g.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);g.attr(b)[h?"attr":"animate"](this.getPlotBox());return g};b.prototype.getPlotBox=function(){var c=this.chart,a=this.xAxis,b=this.yAxis;c.inverted&&(a=b,b=this.xAxis);return{translateX:a?a.left:c.plotLeft,translateY:b?b.top:c.plotTop,scaleX:1,scaleY:1}};b.prototype.removeEvents= function(c){c||ba(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(c){c()}),this.eventsToUnbind.length=0)};b.prototype.render=function(){var c=this,a=c.chart,b=c.options,d=n(b.animation),e=c.visible?"inherit":"hidden",g=b.zIndex,h=c.hasRendered,k=a.seriesGroup,f=a.inverted;a=!c.finishedAnimating&&a.renderer.isSVG?d.duration:0;H(this,"render");var m=c.plotGroup("group","series",e,g,k);c.markerGroup=c.plotGroup("markerGroup","markers",e,g,k);!1!==b.clip&&c.setClip();c.animate&& a&&c.animate(!0);m.inverted=M(c.invertible,c.isCartesian)?f:!1;c.drawGraph&&(c.drawGraph(),c.applyZones());c.visible&&c.drawPoints();c.drawDataLabels&&c.drawDataLabels();c.redrawPoints&&c.redrawPoints();c.drawTracker&&!1!==c.options.enableMouseTracking&&c.drawTracker();c.invertGroups(f);c.animate&&a&&c.animate();h||(a&&d.defer&&(a+=d.defer),c.animationTimeout=N(function(){c.afterAnimate()},a||0));c.isDirty=!1;c.hasRendered=!0;H(c,"afterRender")};b.prototype.redraw=function(){var c=this.chart,a=this.isDirty|| this.isDirtyData,b=this.group,d=this.xAxis,e=this.yAxis;b&&(c.inverted&&b.attr({width:c.plotWidth,height:c.plotHeight}),b.animate({translateX:M(d&&d.left,c.plotLeft),translateY:M(e&&e.top,c.plotTop)}));this.translate();this.render();a&&delete this.kdTree};b.prototype.searchPoint=function(c,a){var b=this.xAxis,d=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?b.len-c.chartY+b.pos:c.chartX-b.pos,plotY:e?d.len-c.chartX+d.pos:c.chartY-d.pos},a,c)};b.prototype.buildKDTree=function(c){function a(c, d,e){var g=c&&c.length;if(g){var h=b.kdAxisArray[d%e];c.sort(function(c,a){return c[h]-a[h]});g=Math.floor(g/2);return{point:c[g],left:a(c.slice(0,g),d+1,e),right:a(c.slice(g+1),d+1,e)}}}this.buildingKdTree=!0;var b=this,d=-1p?"left":"right";l=0>p?"right":"left";a[t]&&(t=d(c,a[t],b+1,f),u=t[k]t;)n--;this.updateParallelArrays(l,"splice",n,0,0);this.updateParallelArrays(l,n);f&&l.name&&(f[t]=l.name);m.splice(n,0,c);if(u||this.processedData)this.data.splice(n,0,null),this.processData();"point"===g.legendType&&this.generatePoints();b&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(l, "shift"),m.shift()));!1!==e&&H(this,"addPoint",{point:l});this.isDirtyData=this.isDirty=!0;a&&k.redraw(d)};b.prototype.removePoint=function(c,a,b){var d=this,g=d.data,h=g[c],k=d.points,f=d.chart,m=function(){k&&k.length===g.length&&k.splice(c,1);g.splice(c,1);d.options.data.splice(c,1);d.updateParallelArrays(h||{series:d},"splice",c,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;a&&f.redraw()};e(b,f);a=M(a,!0);h?h.firePointEvent("remove",null,m):m()};b.prototype.remove=function(c,a,b,d){function e(){g.destroy(d); h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();M(c,!0)&&h.redraw(a)}var g=this,h=g.chart;!1!==b?H(g,"remove",null,e):e()};b.prototype.update=function(c,a){c=u(c,this.userOptions);H(this,"update",{options:c});var b=this,d=b.chart,e=b.userOptions,g=b.initialType||b.type,h=d.options.plotOptions,k=C[g].prototype,f=b.finishedAnimating&&{animation:!1},m={},l,t=["eventOptions","navigatorSeries","baseSeries"],n=c.type||e.type||d.options.chart.type,w=!(this.hasDerivedData||n&&n!==this.type||"undefined"!== typeof c.pointStart||"undefined"!==typeof c.pointInterval||"undefined"!==typeof c.relativeXValue||c.joinBy||c.mapData||b.hasOptionChanged("dataGrouping")||b.hasOptionChanged("pointStart")||b.hasOptionChanged("pointInterval")||b.hasOptionChanged("pointIntervalUnit")||b.hasOptionChanged("keys"));n=n||g;w&&(t.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY", "minX","maxX"),!1!==c.visible&&t.push("area","graph"),b.parallelArrays.forEach(function(c){t.push(c+"Data")}),c.data&&(c.dataSorting&&p(b.options.dataSorting,c.dataSorting),this.setData(c.data,!1)));c=W(e,f,{index:"undefined"===typeof e.index?b.index:e.index,pointStart:M(h&&h.series&&h.series.pointStart,e.pointStart,b.xData[0])},!w&&{data:b.options.data},c);w&&c.data&&(c.data=b.options.data);t=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(t);t.forEach(function(c){t[c]=b[c];delete b[c]}); h=!1;if(C[n]){if(h=n!==b.type,b.remove(!1,!1,!1,!0),h)if(Object.setPrototypeOf)Object.setPrototypeOf(b,C[n].prototype);else{f=Object.hasOwnProperty.call(b,"hcEvents")&&b.hcEvents;for(l in k)b[l]=void 0;p(b,C[n].prototype);f?b.hcEvents=f:delete b.hcEvents}}else F(17,!0,d,{missingModuleFor:n});t.forEach(function(c){b[c]=t[c]});b.init(d,c);if(w&&this.points){var x=b.options;!1===x.visible?(m.graphic=1,m.dataLabel=1):b._hasPointLabels||(c=x.marker,k=x.dataLabels,!c||!1!==c.enabled&&(e.marker&&e.marker.symbol)=== c.symbol||(m.graphic=1),k&&!1===k.enabled&&(m.dataLabel=1));this.points.forEach(function(c){c&&c.series&&(c.resolveColor(),Object.keys(m).length&&c.destroyElements(m),!1===x.showInLegend&&c.legendItem&&d.legend.destroyItem(c))},this)}b.initialType=g;d.linkSeries();h&&b.linkedSeries.length&&(b.isDirtyData=!0);H(this,"afterUpdate");M(a,!0)&&d.redraw(w?void 0:!1)};b.prototype.setName=function(c){this.name=this.options.name=this.userOptions.name=c;this.chart.isDirtyLegend=!0};b.prototype.hasOptionChanged= function(c){var a=this.options[c],b=this.chart.options.plotOptions,d=this.userOptions[c];return d?a!==d:a!==M(b&&b[this.type]&&b[this.type][c],b&&b.series&&b.series[c],a)};b.prototype.onMouseOver=function(){var c=this.chart,a=c.hoverSeries;c.pointer.setHoverChartIndex();if(a&&a!==this)a.onMouseOut();this.options.events.mouseOver&&H(this,"mouseOver");this.setState("hover");c.hoverSeries=this};b.prototype.onMouseOut=function(){var c=this.options,a=this.chart,b=a.tooltip,d=a.hoverPoint;a.hoverSeries= null;if(d)d.onMouseOut();this&&c.events.mouseOut&&H(this,"mouseOut");!b||this.stickyTracking||b.shared&&!this.noSharedTooltip||b.hide();a.series.forEach(function(c){c.setState("",!0)})};b.prototype.setState=function(c,a){var b=this,d=b.options,e=b.graph,g=d.inactiveOtherPoints,h=d.states,k=M(h[c||"normal"]&&h[c||"normal"].animation,b.chart.options.chart.animation),f=d.lineWidth,m=0,p=d.opacity;c=c||"";if(b.state!==c&&([b.group,b.markerGroup,b.dataLabelsGroup].forEach(function(a){a&&(b.state&&a.removeClass("highcharts-series-"+ b.state),c&&a.addClass("highcharts-series-"+c))}),b.state=c,!b.chart.styledMode)){if(h[c]&&!1===h[c].enabled)return;c&&(f=h[c].lineWidth||f+(h[c].lineWidthPlus||0),p=M(h[c].opacity,p));if(e&&!e.dashstyle)for(d={"stroke-width":f},e.animate(d,k);b["zone-graph-"+m];)b["zone-graph-"+m].animate(d,k),m+=1;g||[b.group,b.markerGroup,b.dataLabelsGroup,b.labelBySeries].forEach(function(c){c&&c.animate({opacity:p},k)})}a&&g&&b.points&&b.setAllPointsToState(c||void 0)};b.prototype.setAllPointsToState=function(c){this.points.forEach(function(a){a.setState&& a.setState(c)})};b.prototype.setVisible=function(c,a){var b=this,d=b.chart,e=b.legendItem,g=d.options.chart.ignoreHiddenSeries,h=b.visible,k=(b.visible=c=b.options.visible=b.userOptions.visible="undefined"===typeof c?!h:c)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(c){if(b[c])b[c][k]()});if(d.hoverSeries===b||(d.hoverPoint&&d.hoverPoint.series)===b)b.onMouseOut();e&&d.legend.colorizeItem(b,c);b.isDirty=!0;b.options.stacking&&d.series.forEach(function(c){c.options.stacking&& c.visible&&(c.isDirty=!0)});b.linkedSeries.forEach(function(a){a.setVisible(c,!1)});g&&(d.isDirtyBox=!0);H(b,k);!1!==a&&d.redraw()};b.prototype.show=function(){this.setVisible(!0)};b.prototype.hide=function(){this.setVisible(!1)};b.prototype.select=function(c){this.selected=c=this.options.selected="undefined"===typeof c?!this.selected:c;this.checkbox&&(this.checkbox.checked=c);H(this,c?"select":"unselect")};b.prototype.shouldShowTooltip=function(c,a,b){void 0===b&&(b={});b.series=this;b.visiblePlotOnly= !0;return this.chart.isInsidePlot(c,a,b)};b.defaultOptions=E;return b}();p(b.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:r.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:A,requireSorting:!0,sorted:!0});y.series=b;"";"";return b});I(f,"Extensions/ScrollablePlotArea.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Axis/Axis.js"],f["Core/Chart/Chart.js"],f["Core/Series/Series.js"], f["Core/Renderer/RendererRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A){var E=b.stop,y=A.addEvent,q=A.createElement,l=A.merge,n=A.pick;y(v,"afterSetChartSize",function(b){var a=this.options.chart.scrollablePlotArea,d=a&&a.minWidth;a=a&&a.minHeight;if(!this.renderer.forExport){if(d){if(this.scrollablePixelsX=d=Math.max(0,d-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox);this.plotBox.width=this.plotWidth+=d;this.inverted?this.clipBox.height+=d:this.clipBox.width+= d;var e={1:{name:"right",value:d}}}}else a&&(this.scrollablePixelsY=d=Math.max(0,a-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.height=this.plotHeight+=d,this.inverted?this.clipBox.width+=d:this.clipBox.height+=d,e={2:{name:"bottom",value:d}});e&&!b.skipAxes&&this.axes.forEach(function(a){e[a.side]?a.getPlotLinePath=function(){var b=e[a.side].name,d=this[b];this[b]=d-e[a.side].value;var k=f.prototype.getPlotLinePath.apply(this,arguments); this[b]=d;return k}:(a.setAxisSize(),a.setAxisTranslation())})}});y(v,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});v.prototype.setUpScrolling=function(){var b=this,a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(a.overflowX="auto");this.scrollablePixelsY&&(a.overflowY="auto");this.scrollingParent=q("div",{className:"highcharts-scrolling-parent"}, {position:"relative"},this.renderTo);this.scrollingContainer=q("div",{className:"highcharts-scrolling"},a,this.scrollingParent);y(this.scrollingContainer,"scroll",function(){b.pointer&&delete b.pointer.chartPosition});this.innerContainer=q("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};v.prototype.moveFixedElements=function(){var b=this.container,a=this.fixedRenderer,d=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "), k;this.scrollablePixelsX&&!this.inverted?k=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(k=".highcharts-yaxis");k&&d.push(k+":not(.highcharts-radial-axis)",k+"-labels:not(.highcharts-radial-axis-labels)");d.forEach(function(d){[].forEach.call(b.querySelectorAll(d),function(b){(b.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(b);b.style.pointerEvents="auto"})})}; v.prototype.applyFixed=function(){var b=!this.fixedDiv,a=this.options.chart,d=a.scrollablePlotArea,k=r.getRendererType();b?(this.fixedDiv=q("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(a.style&&a.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=a=new k(this.fixedDiv,this.chartWidth,this.chartHeight, this.options.chart.style),this.scrollableMask=a.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":n(d.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),y(this,"afterShowResetZoom",this.moveFixedElements),y(this,"afterApplyDrilldown",this.moveFixedElements),y(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||b)this.scrollableDirty=!1,this.moveFixedElements();a=this.chartWidth+ (this.scrollablePixelsX||0);k=this.chartHeight+(this.scrollablePixelsY||0);E(this.container);this.container.style.width=a+"px";this.container.style.height=k+"px";this.renderer.boxWrapper.attr({width:a,height:k,viewBox:[0,0,a,k].join(" ")});this.chartBackground.attr({width:a,height:k});this.scrollingContainer.style.height=this.chartHeight+"px";b&&(d.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*d.scrollPositionX),d.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY* d.scrollPositionY));k=this.axisOffset;b=this.plotTop-k[0]-1;d=this.plotLeft-k[3]-1;a=this.plotTop+this.plotHeight+k[2]+1;k=this.plotLeft+this.plotWidth+k[1]+1;var f=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);b=this.scrollablePixelsX?[["M",0,b],["L",this.plotLeft-1,b],["L",this.plotLeft-1,a],["L",0,a],["Z"],["M",f,b],["L",this.chartWidth,b],["L",this.chartWidth,a],["L",f,a],["Z"]]:this.scrollablePixelsY?[["M",d,0],["L",d,this.plotTop- 1],["L",k,this.plotTop-1],["L",k,0],["Z"],["M",d,l],["L",d,this.chartHeight],["L",k,this.chartHeight],["L",k,l],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:b})};y(f,"afterInit",function(){this.chart.scrollableDirty=!0});y(B,"show",function(){this.chart.scrollableDirty=!0});""});I(f,"Core/Axis/StackingAxis.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Axis/Axis.js"],f["Core/Utilities.js"]],function(b,f,v){var B=b.getDeferredAnimation,r=v.addEvent,A= v.destroyObjectProperties,E=v.fireEvent,y=v.isNumber,q=v.objectEach,l;(function(b){function e(){var a=this.stacking;if(a){var b=a.stacks;q(b,function(a,d){A(a);b[d]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function a(){this.stacking||(this.stacking=new k(this))}var d=[];b.compose=function(b){-1===d.indexOf(b)&&(d.push(b),r(b,"init",a),r(b,"destroy",e));return b};var k=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks= function(){var a=this.axis,b=a.series,d=a.options.reversedStacks,e=b.length,k;if(!a.isXAxis){this.usePercentage=!1;for(k=e;k--;){var h=b[d?k:e-k-1];h.setStackedPoints();h.setGroupedPoints()}for(k=0;kk&&f.shadow));l&&(l.startX=n.xMap,l.isArea=n.isArea)})};y.prototype.getGraphPath=function(b,f,n){var e=this,a=e.options,d=[],k=[],l,q=a.step;b=b||e.points; var C=b.reversed;C&&b.reverse();(q={right:1,center:2}[q]||q&&3)&&C&&(q=4-q);b=this.getValidPoints(b,!1,!(a.connectNulls&&!f&&!n));b.forEach(function(x,t){var m=x.plotX,h=x.plotY,u=b[t-1];(x.leftCliff||u&&u.rightCliff)&&!n&&(l=!0);x.isNull&&!r(f)&&0b&&C>a?(C=Math.max(b,a),x=2*a-C):Cn&&x>a?(x=Math.max(n,a),C=2*a-x):x=Math.abs(a)&&.5c.closestPointRange*c.xAxis.transA;h=c.borderWidth=t(b.borderWidth,h?0:1);var f=c.xAxis,k=c.yAxis,m=b.threshold,l=c.translatedThreshold=k.getThreshold(m),u=t(b.minPointLength,5),n=c.getColumnMetrics(),x=n.width,q=c.pointXOffset=n.offset,z=c.dataMin,G=c.dataMax,y=c.barW=Math.max(x, 1+2*h);a.inverted&&(l-=.5);b.pointPadding&&(y=Math.ceil(y));r.prototype.translate.apply(c);c.points.forEach(function(g){var h=t(g.yBottom,l),p=999+Math.abs(h),w=g.plotX||0;p=e(g.plotY,-p,k.len+p);var D=Math.min(p,h),r=Math.max(p,h)-D,H=x,F=w+q,v=y;u&&Math.abs(r)u?h-u:l-(w?u:0));d(g.options.pointWidth)&&(H=v=Math.ceil(g.options.pointWidth),F-=Math.round((H- x)/2));b.centerInCategory&&(F=c.adjustForMissingColumns(F,H,g,n));g.barX=F;g.pointWidth=H;g.tooltipPos=a.inverted?[e(k.len+k.pos-a.plotLeft-p,k.pos-a.plotLeft,k.len+k.pos-a.plotLeft),f.len+f.pos-a.plotTop-F-v/2,r]:[f.left-a.plotLeft+F+v/2,e(p+k.pos-a.plotTop,k.pos-a.plotTop,k.len+k.pos-a.plotTop),r];g.shapeType=c.pointClass.prototype.shapeType||"rect";g.shapeArgs=c.crispCol.apply(c,g.isNull?[F,l,v,0]:[F,D,v,r])})};h.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}; h.prototype.pointAttribs=function(c,a){var b=this.options,d=this.pointAttrToOptions||{},e=d.stroke||"borderColor",h=d["stroke-width"]||"borderWidth",f=c&&c.color||this.color,k=c&&c[e]||b[e]||f;d=c&&c.options.dashStyle||b.dashStyle;var m=c&&c[h]||b[h]||this[h]||0,u=t(c&&c.opacity,b.opacity,1);if(c&&this.zones.length){var n=c.getZone();f=c.options.color||n&&(n.color||c.nonZonedColor)||this.color;n&&(k=n.borderColor||k,d=n.dashStyle||d,m=n.borderWidth||m)}a&&c&&(c=x(b.states[a],c.options.states&&c.options.states[a]|| {}),a=c.brightness,f=c.color||"undefined"!==typeof a&&l(f).brighten(c.brightness).get()||f,k=c[e]||k,m=c[h]||m,d=c.dashStyle||d,u=t(c.opacity,u));e={fill:f,stroke:k,"stroke-width":m,opacity:u};d&&(e.dashstyle=d);return e};h.prototype.drawPoints=function(){var c=this,a=this.chart,b=c.options,d=a.renderer,e=b.animationLimit||250,h;c.points.forEach(function(g){var f=g.graphic,k=!!f,m=f&&a.pointCountq,"left"===w?l.y-=q?t.height:0:"center"===w?(l.x-=t.width/2,l.y-=t.height/2):"right"===w&&(l.x-=t.width,l.y-=q?0:t.height),c.placed=!0,c.alignAttr=l):(q(d),c.align(b,void 0,d),l=c.alignAttr);z&&0<=d.height?this.justifyDataLabel(c,b,l,t,d,h):e(b.crop,!0)&&(C=f.isInsidePlot(l.x, l.y,{paneCoordinates:!0,series:g})&&f.isInsidePlot(l.x+t.width,l.y+t.height,{paneCoordinates:!0,series:g}));if(b.shape&&!n)c[h?"attr":"animate"]({anchorX:k?f.plotWidth-a.plotY:a.plotX,anchorY:k?f.plotHeight-a.plotX:a.plotY})}h&&m&&(c.placed=!1);C||m&&!z||(c.hide(!0),c.placed=!1)}function f(a,c){var b=c.filter;return b?(c=b.operator,a=a[b.property],b=b.value,">"===c&&a>b||"<"===c&&a="===c&&a>=b||"<="===c&&a<=b||"=="===c&&a==b||"==="===c&&a===b?!0:!1):!0}function k(){var b=this,c=b.chart,d=b.options, g=b.points,h=b.hasRendered||0,k=c.renderer,m=d.dataLabels,l,x=m.animation;x=m.defer?B(c,x,b):{defer:0,duration:0};m=t(t(c.options.plotOptions&&c.options.plotOptions.series&&c.options.plotOptions.series.dataLabels,c.options.plotOptions&&c.options.plotOptions[b.type]&&c.options.plotOptions[b.type].dataLabels),m);y(this,"drawDataLabels");if(q(m)||m.enabled||b._hasPointLabels){var z=b.plotGroup("dataLabelsGroup","data-labels",h?"inherit":"hidden",m.zIndex||6);z.attr({opacity:+h});!h&&(h=b.dataLabelsGroup)&& (b.visible&&z.show(!0),h[d.animation?"animate":"attr"]({opacity:1},x));g.forEach(function(g){l=a(t(m,g.dlOptions||g.options&&g.options.dataLabels));l.forEach(function(a,h){var m=a.enabled&&(!g.isNull||g.dataLabelOnNull)&&f(g,a),l=g.connectors?g.connectors[h]:g.connector,p=g.dataLabels?g.dataLabels[h]:g.dataLabel,u=!p,t=e(a.distance,g.labelDistance);if(m){var x=g.getLabelConfig();var w=e(a[g.formatPrefix+"Format"],a.format);x=A(w)?r(w,x,c):(a[g.formatPrefix+"Formatter"]||a.formatter).call(x,a);w=a.style; var q=a.rotation;c.styledMode||(w.color=e(a.color,w.color,b.color,"#000000"),"contrast"===w.color?(g.contrastColor=k.getContrast(g.color||b.color),w.color=!A(t)&&a.inside||0>t||d.stacking?g.contrastColor:"#000000"):delete g.contrastColor,d.cursor&&(w.cursor=d.cursor));var D={r:a.borderRadius||0,rotation:q,padding:a.padding,zIndex:1};c.styledMode||(D.fill=a.backgroundColor,D.stroke=a.borderColor,D["stroke-width"]=a.borderWidth);n(D,function(c,a){"undefined"===typeof c&&delete D[a]})}!p||m&&A(x)&&!!p.div=== !!a.useHTML&&(p.rotation&&a.rotation||p.rotation===a.rotation)||(u=!0,g.dataLabel=p=g.dataLabel&&g.dataLabel.destroy(),g.dataLabels&&(1===g.dataLabels.length?delete g.dataLabels:delete g.dataLabels[h]),h||delete g.dataLabel,l&&(g.connector=g.connector.destroy(),g.connectors&&(1===g.connectors.length?delete g.connectors:delete g.connectors[h])));m&&A(x)&&(p?D.text=x:(g.dataLabels=g.dataLabels||[],p=g.dataLabels[h]=q?k.text(x,0,-9999,a.useHTML).addClass("highcharts-data-label"):k.label(x,0,-9999,a.shape, null,null,a.useHTML,null,"data-label"),h||(g.dataLabel=p),p.addClass(" highcharts-data-label-color-"+g.colorIndex+" "+(a.className||"")+(a.useHTML?" highcharts-tracker":""))),p.options=a,p.attr(D),c.styledMode||p.css(w).shadow(a.shadow),p.added||p.add(z),a.textPath&&!a.useHTML&&(p.setTextPath(g.getDataLabelPath&&g.getDataLabelPath(p)||g.graphic,a.textPath),g.dataLabelPath&&!a.textPath.enabled&&(g.dataLabelPath=g.dataLabelPath.destroy())),b.alignDataLabel(g,p,a,null,u))})})}y(this,"afterDrawDataLabels")} function x(a,c,b,d,e,h){var g=this.chart,f=c.align,k=c.verticalAlign,m=a.box?0:a.padding||0,l=c.x;l=void 0===l?0:l;var p=c.y;p=void 0===p?0:p;var u=(b.x||0)+m;if(0>u){"right"===f&&0<=l?(c.align="left",c.inside=!0):l-=u;var t=!0}u=(b.x||0)+d.width-m;u>g.plotWidth&&("left"===f&&0>=l?(c.align="right",c.inside=!0):l+=g.plotWidth-u,t=!0);u=b.y+m;0>u&&("bottom"===k&&0<=p?(c.verticalAlign="top",c.inside=!0):p-=u,t=!0);u=(b.y||0)+d.height-m;u>g.plotHeight&&("top"===k&&0>=p?(c.verticalAlign="bottom",c.inside= !0):p+=g.plotHeight-u,t=!0);t&&(c.x=l,c.y=p,a.placed=!h,a.align(c,void 0,e));return t}function t(a,c){var b=[],d;if(q(a)&&!q(c))b=a.map(function(a){return l(a,c)});else if(q(c)&&!q(a))b=c.map(function(c){return l(a,c)});else if(q(a)||q(c))for(d=Math.max(a.length,c.length);d--;)b[d]=l(a[d],c[d]);else b=l(a,c);return b}function m(a,c,b,d,e){var g=this.chart,h=g.inverted,f=this.xAxis,k=f.reversed,m=h?c.height/2:c.width/2;a=(a=a.pointWidth)?a/2:0;c.startXPos=h?e.x:k?-m-a:f.width-m+a;c.startYPos=h?k?this.yAxis.height- m+a:-m-a:e.y;d?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);g.hasRendered&&(b&&c.attr({x:c.startXPos,y:c.startYPos}),c.placed=!0)}var h=[];b.compose=function(a){if(-1===h.indexOf(a)){var c=a.prototype;h.push(a);c.alignDataLabel=d;c.drawDataLabels=k;c.justifyDataLabel=x;c.setDataLabelStartPos=m}}})(d||(d={}));"";return d});I(f,"Series/Column/ColumnDataLabel.js",[f["Core/Series/DataLabel.js"],f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]],function(b,f,v){var B=f.series,r=v.merge,A=v.pick,E;(function(f){function q(b,e,a,d,f){var k=this.chart.inverted,l=b.series,n=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||0;l=(l.yAxis?l.yAxis.len:this.chart.plotSizeY)||0;var x=b.dlBox||b.shapeArgs,t=A(b.below,b.plotY>A(this.translatedThreshold,l)),m=A(a.inside,!!this.options.stacking);x&&(d=r(x),0>d.y&&(d.height+=d.y,d.y=0),x=d.y+d.height-l,0\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}});return l}(f);E(B.prototype,{drawTracker:b.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});A(B,"afterTranslate",function(){this.applyJitter()});v.registerSeriesType("scatter", B);"";return B});I(f,"Series/CenteredUtilities.js",[f["Core/Globals.js"],f["Core/Series/Series.js"],f["Core/Utilities.js"]],function(b,f,v){var B=b.deg2rad,r=v.isNumber,A=v.pick,E=v.relativeLength,y;(function(b){b.getCenter=function(){var b=this.options,n=this.chart,e=2*(b.slicedOffset||0),a=n.plotWidth-2*e,d=n.plotHeight-2*e,k=b.center,q=Math.min(a,d),z=b.size,C=b.innerSize||0;"string"===typeof z&&(z=parseFloat(z));"string"===typeof C&&(C=parseFloat(C));b=[A(k[0],"50%"),A(k[1],"50%"),A(z&&0>z?void 0: b.size,"100%"),A(C&&0>C?void 0:b.innerSize||0,"0%")];!n.angular||this instanceof f||(b[3]=0);for(k=0;4>k;++k)z=b[k],n=2>k||2===k&&/%$/.test(z),b[k]=E(z,[a,d,q,b[2]][k])+(n?e:0);b[3]>b[2]&&(b[3]=b[2]);return b};b.getStartAndEndRadians=function(b,f){b=r(b)?b:0;f=r(f)&&f>b&&360>f-b?f:b+360;return{start:B*(b+-90),end:B*(f+-90)}}})(y||(y={}));"";return y});I(f,"Series/Pie/PiePoint.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Series/Point.js"],f["Core/Utilities.js"]],function(b,f,v){var B=this&& this.__extends||function(){var b=function(e,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(e,a)};return function(e,a){function d(){this.constructor=e}b(e,a);e.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),r=b.setAnimation,A=v.addEvent,E=v.defined;b=v.extend;var y=v.isNumber,q=v.pick,l=v.relativeLength;f=function(b){function e(){var a=null!==b&&b.apply(this,arguments)|| this;a.labelDistance=void 0;a.options=void 0;a.series=void 0;return a}B(e,b);e.prototype.getConnectorPath=function(){var a=this.labelPosition,b=this.series.options.dataLabels,e=this.connectorShapes,f=b.connectorShape;e[f]&&(f=e[f]);return f.call(this,{x:a.final.x,y:a.final.y,alignment:a.alignment},a.connectorPosition,b)};e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};e.prototype.haloPath=function(a){var b=this.shapeArgs;return this.sliced|| !this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:b.r-1,start:b.start,end:b.end})};e.prototype.init=function(){var a=this;b.prototype.init.apply(this,arguments);this.name=q(this.name,"Slice");var d=function(b){a.slice("select"===b.type)};A(this,"select",d);A(this,"unselect",d);return this};e.prototype.isValid=function(){return y(this.y)&&0<=this.y};e.prototype.setVisible=function(a,b){var d=this,e=this.series,f=e.chart,l=e.options.ignoreHiddenPoint;b=q(b,l);a!==this.visible&& (this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,e.options.data[e.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(b){if(d[b])d[b][a?"show":"hide"](a)}),this.legendItem&&f.legend.colorizeItem(this,a),a||"hover"!==this.state||this.setState(""),l&&(e.isDirty=!0),b&&f.redraw())};e.prototype.slice=function(a,b,e){var d=this.series;r(e,d.chart);q(b,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;d.options.data[d.data.indexOf(this)]= this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return e}(f);b(f.prototype,{connectorShapes:{fixedOffset:function(b,e,a){var d=e.breakAt;e=e.touchingSliceAt;return[["M",b.x,b.y],a.softConnector?["C",b.x+("left"===b.alignment?-5:5),b.y,2*d.x-e.x,2*d.y-e.y,d.x,d.y]:["L",d.x,d.y],["L",e.x,e.y]]},straight:function(b,e){e=e.touchingSliceAt;return[["M",b.x,b.y],["L",e.x,e.y]]},crookedLine:function(b,e,a){e=e.touchingSliceAt; var d=this.series,f=d.center[0],n=d.chart.plotWidth,q=d.chart.plotLeft;d=b.alignment;var C=this.shapeArgs.r;a=l(a.crookDistance,1);n="left"===d?f+C+(n+q-f-C)*(1-a):q+(f-C)*a;a=["L",n,b.y];f=!0;if("left"===d?n>b.x||ne.x)f=!1;b=[["M",b.x,b.y]];f&&b.push(a);b.push(["L",e.x,e.y]);return b}}});return f});I(f,"Series/Pie/PieSeries.js",[f["Series/CenteredUtilities.js"],f["Series/Column/ColumnSeries.js"],f["Core/Globals.js"],f["Core/Legend/LegendSymbol.js"],f["Series/Pie/PiePoint.js"],f["Core/Series/Series.js"], f["Core/Series/SeriesRegistry.js"],f["Core/Renderer/SVG/Symbols.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E,y,q){var l=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),n=b.getStartAndEndRadians; v=v.noop;var e=q.clamp,a=q.extend,d=q.fireEvent,k=q.merge,G=q.pick,z=q.relativeLength;q=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.center=void 0;b.data=void 0;b.maxLabelDistance=void 0;b.options=void 0;b.points=void 0;return b}l(b,a);b.prototype.animate=function(a){var b=this,d=b.points,e=b.startAngleRad;a||d.forEach(function(c){var a=c.graphic,d=c.shapeArgs;a&&d&&(a.attr({r:G(c.startR,b.center&&b.center[3]/2),start:e,end:e}),a.animate({r:d.r,start:d.start,end:d.end}, b.options.animation))})};b.prototype.drawEmpty=function(){var a=this.startAngleRad,b=this.endAngleRad,d=this.options;if(0===this.total&&this.center){var e=this.center[0];var c=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(e,c,this.center[1]/2,0,a,b).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:y.arc(e,c,this.center[2]/2,0,{start:a,end:b,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":d.borderWidth,fill:d.fillColor||"none", stroke:d.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};b.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(b){b.graphic&&b.hasNewShapeType()&&(b.graphic=b.graphic.destroy());b.graphic||(b.graphic=a[b.shapeType](b.shapeArgs).add(b.series.group),b.delayedRendering=!0)})};b.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};b.prototype.getX=function(a,b,d){var h=this.center,c=this.radii?this.radii[d.index]|| 0:h[2]/2;a=Math.asin(e((a-h[1])/(c+d.labelDistance),-1,1));return h[0]+(b?-1:1)*Math.cos(a)*(c+d.labelDistance)+(01.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);q.slicedTranslation={translateX:Math.round(Math.cos(r)* e),translateY:Math.round(Math.sin(r)*e)};v=Math.cos(r)*a[2]/2;var y=Math.sin(r)*a[2]/2;q.tooltipPos=[a[0]+.7*v,a[1]+.7*y];q.half=r<-Math.PI/2||r>Math.PI/2?1:0;q.angle=r;C=Math.min(f,q.labelDistance/5);q.labelPosition={natural:{x:a[0]+v+Math.cos(r)*q.labelDistance,y:a[1]+y+Math.sin(r)*q.labelDistance},"final":{},alignment:0>q.labelDistance?"center":q.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+v+Math.cos(r)*C,y:a[1]+y+Math.sin(r)*C},touchingSliceAt:{x:a[0]+v,y:a[1]+y}}}}d(this,"afterTranslate")}; b.prototype.updateTotals=function(){var a=this.points,b=a.length,d=this.options.ignoreHiddenPoint,e,c=0;for(e=0;et&&(c.dataLabel.css({width:Math.round(.7*t)+"px"}),c.dataLabel.shortened=!0)):(c.dataLabel=c.dataLabel.destroy(),c.dataLabels&&1===c.dataLabels.length&&delete c.dataLabels))}),C.forEach(function(d,e){var h=d.length,p=[],u;if(h){b.sortByAngle(d,e-.5);if(0k-g&&0===e&&(t=Math.round(Q+Y-k+g),v[1]=Math.max(t,v[1])),0>U-Z/2?v[0]=Math.max(Math.round(-U+Z/2),v[0]):U+Z/2>m&&(v[2]=Math.max(Math.round(U+Z/2-m),v[2])),I.sideOverflow=t)}}}),0===q(v)||this.verifyDataLabelOverflow(v))&&(this.placeDataLabels(),this.points.forEach(function(d){O=e(f,d.options.dataLabels);if(B=a(O.connectorWidth,1)){var g;J=d.connector;if((I=d.dataLabel)&&I._pos&&d.visible&& 0b.bottom-2?d:c,b.half,b)},justify:function(a,b,c){return c[0]+(a.half?-1:1)*(b+a.labelDistance)},alignToPlotEdges:function(a,b,c,d){a=a.getBBox().width; return b?a+d:c-a-d},alignToConnectors:function(a,b,c,d){var e=0,h;a.forEach(function(c){h=c.dataLabel.getBBox().width;h>e&&(e=h)});return b?e+d:c-e-d}};f.compose=function(a){b.compose(y);-1===t.indexOf(a)&&(t.push(a),a=a.prototype,a.dataLabelPositioners=m,a.alignDataLabel=A,a.drawDataLabels=k,a.placeDataLabels=r,a.verifyDataLabelOverflow=x)}})(k||(k={}));return k});I(f,"Extensions/OverlappingDataLabels.js",[f["Core/Chart/Chart.js"],f["Core/Utilities.js"]],function(b,f){function v(b,f){var e=!1;if(b){var a= b.newOpacity;b.oldOpacity!==a&&(b.alignAttr&&b.placed?(b[a?"removeClass":"addClass"]("highcharts-data-label-hidden"),e=!0,b.alignAttr.opacity=a,b[b.isOld?"animate":"attr"](b.alignAttr,null,function(){f.styledMode||b.css({pointerEvents:a?"auto":"none"})}),r(f,"afterHideOverlappingLabel")):b.attr({opacity:a}));b.isOld=!0}return e}var B=f.addEvent,r=f.fireEvent,A=f.isArray,E=f.isNumber,y=f.objectEach,q=f.pick;B(b,"render",function(){var b=this,f=[];(this.labelCollectors||[]).forEach(function(b){f=f.concat(b())}); (this.yAxis||[]).forEach(function(b){b.stacking&&b.options.stackLabels&&!b.options.stackLabels.allowOverlap&&y(b.stacking.stacks,function(a){y(a,function(a){a.label&&"hidden"!==a.label.visibility&&f.push(a.label)})})});(this.series||[]).forEach(function(e){var a=e.options.dataLabels;e.visible&&(!1!==a.enabled||e._hasPointLabels)&&(a=function(a){return a.forEach(function(a){a.visible&&(A(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[]).forEach(function(d){var e=d.options;d.labelrank=q(e.labelrank, a.labelrank,a.shapeArgs&&a.shapeArgs.height);e.allowOverlap?(d.oldOpacity=d.opacity,d.newOpacity=1,v(d,b)):f.push(d)})})},a(e.nodes||[]),a(e.points))});this.hideOverlappingLabels(f)});b.prototype.hideOverlappingLabels=function(b){var f=this,e=b.length,a=f.renderer,d,k,l,q=!1;var C=function(b){var d,e=b.box?0:b.padding||0,c=d=0,f;if(b&&(!b.alignAttr||b.placed)){var g=b.alignAttr||{x:b.attr("x"),y:b.attr("y")};var k=b.parentGroup;b.width||(d=b.getBBox(),b.width=d.width,b.height=d.height,d=a.fontMetrics(null, b.element).h);var m=b.width-2*e;(f={left:"0",center:"0.5",right:"1"}[b.alignValue])?c=+f*m:E(b.x)&&Math.round(b.x)!==b.translateX&&(c=b.x-b.translateX);return{x:g.x+(k.translateX||0)+e-(c||0),y:g.y+(k.translateY||0)+e-d,width:b.width-2*e,height:b.height-2*e}}};for(k=0;k=x.x+x.width||t.x+t.width<=x.x||t.y>=x.y+x.height||t.y+t.height<=x.y||((C.labelrank=y(d.minWidth,0)&&this.chartHeight>=y(d.minHeight,0)}).call(this)&&b.push(a._id)};a.prototype.setResponsive=function(a,b){var d=this,e=this.options.responsive,f=this.currentResponsive,k=[];!b&&e&&e.rules&&e.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=l());d.matchResponsiveRule(a,k)},this);b=A.apply(void 0, k.map(function(a){return v((e||{}).rules||[],function(b){return b._id===a})}).map(function(a){return a&&a.chartOptions}));b.isResponsiveOptions=!0;k=k.toString()||void 0;k!==(f&&f.ruleIds)&&(f&&this.update(f.undoOptions,a,!0),k?(f=this.currentOptions(b),f.isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:b,undoOptions:f},this.update(b,a,!0)):this.currentResponsive=void 0)};return a}()})(n||(n={}));"";"";return n});I(f,"masters/highcharts.src.js",[f["Core/Globals.js"],f["Core/Utilities.js"], f["Core/DefaultOptions.js"],f["Core/Animation/Fx.js"],f["Core/Animation/AnimationUtilities.js"],f["Core/Renderer/HTML/AST.js"],f["Core/FormatUtilities.js"],f["Core/Renderer/RendererUtilities.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Renderer/SVG/SVGRenderer.js"],f["Core/Renderer/HTML/HTMLElement.js"],f["Core/Renderer/HTML/HTMLRenderer.js"],f["Core/Axis/Axis.js"],f["Core/Axis/DateTimeAxis.js"],f["Core/Axis/LogarithmicAxis.js"],f["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],f["Core/Axis/Tick.js"], f["Core/Tooltip.js"],f["Core/Series/Point.js"],f["Core/Pointer.js"],f["Core/MSPointer.js"],f["Core/Legend/Legend.js"],f["Core/Chart/Chart.js"],f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Series/Column/ColumnSeries.js"],f["Series/Column/ColumnDataLabel.js"],f["Series/Pie/PieSeries.js"],f["Series/Pie/PieDataLabel.js"],f["Core/Series/DataLabel.js"],f["Core/Responsive.js"],f["Core/Color/Color.js"],f["Core/Time.js"]],function(b,f,v,B,r,A,E,y,q,l,n,e,a,d,k,G,z,C,x,t,m,h,u,c,w,g,F,p, D,H,L,P,K){b.animate=r.animate;b.animObject=r.animObject;b.getDeferredAnimation=r.getDeferredAnimation;b.setAnimation=r.setAnimation;b.stop=r.stop;b.timers=B.timers;b.AST=A;b.Axis=a;b.Chart=u;b.chart=u.chart;b.Fx=B;b.Legend=h;b.PlotLineOrBand=G;b.Point=x;b.Pointer=m.isRequired()?m:t;b.Series=c;b.SVGElement=q;b.SVGRenderer=l;b.Tick=z;b.Time=K;b.Tooltip=C;b.Color=P;b.color=P.parse;e.compose(l);n.compose(q);b.defaultOptions=v.defaultOptions;b.getOptions=v.getOptions;b.time=v.defaultTime;b.setOptions= v.setOptions;b.dateFormat=E.dateFormat;b.format=E.format;b.numberFormat=E.numberFormat;b.addEvent=f.addEvent;b.arrayMax=f.arrayMax;b.arrayMin=f.arrayMin;b.attr=f.attr;b.clearTimeout=f.clearTimeout;b.correctFloat=f.correctFloat;b.createElement=f.createElement;b.css=f.css;b.defined=f.defined;b.destroyObjectProperties=f.destroyObjectProperties;b.discardElement=f.discardElement;b.distribute=y.distribute;b.erase=f.erase;b.error=f.error;b.extend=f.extend;b.extendClass=f.extendClass;b.find=f.find;b.fireEvent= f.fireEvent;b.getMagnitude=f.getMagnitude;b.getStyle=f.getStyle;b.inArray=f.inArray;b.isArray=f.isArray;b.isClass=f.isClass;b.isDOMElement=f.isDOMElement;b.isFunction=f.isFunction;b.isNumber=f.isNumber;b.isObject=f.isObject;b.isString=f.isString;b.keys=f.keys;b.merge=f.merge;b.normalizeTickInterval=f.normalizeTickInterval;b.objectEach=f.objectEach;b.offset=f.offset;b.pad=f.pad;b.pick=f.pick;b.pInt=f.pInt;b.relativeLength=f.relativeLength;b.removeEvent=f.removeEvent;b.seriesType=w.seriesType;b.splat= f.splat;b.stableSort=f.stableSort;b.syncTimeout=f.syncTimeout;b.timeUnits=f.timeUnits;b.uniqueKey=f.uniqueKey;b.useSerialIds=f.useSerialIds;b.wrap=f.wrap;F.compose(g);H.compose(c);d.compose(a);k.compose(a);D.compose(p);G.compose(a);L.compose(u);return b});I(f,"Core/Axis/Color/ColorAxisComposition.js",[f["Core/Color/Color.js"],f["Core/Utilities.js"]],function(b,f){var v=b.parse,B=f.addEvent,r=f.extend,A=f.merge,E=f.pick,y=f.splat,q;(function(b){function f(){var c=this,a=this.options;this.colorAxis= [];a.colorAxis&&(a.colorAxis=y(a.colorAxis),a.colorAxis.forEach(function(a,b){a.index=b;new u(c,a)}))}function e(c){var a=this,b=function(b){b=c.allItems.indexOf(b);-1!==b&&(a.destroyItem(c.allItems[b]),c.allItems.splice(b,1))},d=[],e,f;(this.chart.colorAxis||[]).forEach(function(c){(e=c.options)&&e.showInLegend&&(e.dataClasses&&e.visible?d=d.concat(c.getDataClassLegendSymbols()):e.visible&&d.push(c),c.series.forEach(function(c){if(!c.options.showInLegend||e.dataClasses)"point"===c.options.legendType? c.points.forEach(function(c){b(c)}):b(c)}))});for(f=d.length;f--;)c.allItems.unshift(d[f])}function a(c){c.visible&&c.item.legendColor&&c.item.legendSymbol.attr({fill:c.item.legendColor})}function d(){var c=this.chart.colorAxis;c&&c.forEach(function(c,a,b){c.update({},b)})}function k(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function l(){var c=this.axisTypes;c?-1===c.indexOf("colorAxis")&&c.push("colorAxis"):this.axisTypes=["colorAxis"]}function q(c){var a= this,b=c?"show":"hide";a.visible=a.options.visible=!!c;["graphic","dataLabel"].forEach(function(c){if(a[c])a[c][b]()});this.series.buildKDTree()}function C(){var c=this,a=this.options.nullColor,b=this.colorAxis,d=this.colorKey;(this.data.length?this.data:this.points).forEach(function(e){var g=e.getNestedProperty(d);(g=e.options.color||(e.isNull||null===e.value?a:b&&"undefined"!==typeof g?b.toColor(g,e):e.color||c.color))&&e.color!==g&&(e.color=g,"point"===c.options.legendType&&e.legendItem&&c.chart.legend.colorizeItem(e, e.visible))})}function x(c){var a=c.prototype.createAxis;c.prototype.createAxis=function(c,b){if("colorAxis"!==c)return a.apply(this,arguments);var d=new u(this,A(b.axis,{index:this[c].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(c){c.series=[]});this.series.forEach(function(c){c.bindAxes();c.isDirtyData=!0});E(b.redraw,!0)&&this.redraw(b.animation);return d}}function t(){this.elem.attr("fill",v(this.start).tweenTo(v(this.end),this.pos),void 0,!0)}function m(){this.elem.attr("stroke", v(this.start).tweenTo(v(this.end),this.pos),void 0,!0)}var h=[],u;b.compose=function(c,b,g,n,p){u||(u=c);-1===h.indexOf(b)&&(h.push(b),c=b.prototype,c.collectionsWithUpdate.push("colorAxis"),c.collectionsWithInit.colorAxis=[c.addColorAxis],B(b,"afterGetAxes",f),x(b));-1===h.indexOf(g)&&(h.push(g),b=g.prototype,b.fillSetter=t,b.strokeSetter=m);-1===h.indexOf(n)&&(h.push(n),B(n,"afterGetAllItems",e),B(n,"afterColorizeItem",a),B(n,"afterUpdate",d));-1===h.indexOf(p)&&(h.push(p),r(p.prototype,{optionalAxis:"colorAxis", translateColors:C}),r(p.prototype.pointClass.prototype,{setVisible:q}),B(p,"afterTranslate",k),B(p,"bindAxes",l))};b.pointSetVisible=q})(q||(q={}));return q});I(f,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}}); I(f,"Core/Axis/Color/ColorAxis.js",[f["Core/Axis/Axis.js"],f["Core/Color/Color.js"],f["Core/Axis/Color/ColorAxisComposition.js"],f["Core/Axis/Color/ColorAxisDefaults.js"],f["Core/Globals.js"],f["Core/Legend/LegendSymbol.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E,y){var q=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&& (a[d]=b[d])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),l=f.parse,n=r.noop,e=E.series,a=y.extend,d=y.isNumber,k=y.merge,G=y.pick;f=function(b){function f(a,d){var e=b.call(this,a,d)||this;e.beforePadding=!1;e.chart=void 0;e.coll="colorAxis";e.dataClasses=void 0;e.legendItem=void 0;e.legendItems=void 0;e.name="";e.options=void 0;e.stops=void 0;e.visible=!0;e.init(a,d);return e}q(f,b);f.compose= function(a,b,d,e){v.compose(f,a,b,d,e)};f.prototype.init=function(a,d){var e=a.options.legend||{},h=d.layout?"vertical"!==d.layout:"vertical"!==e.layout,l=d.visible;e=k(f.defaultColorAxisOptions,d,{showEmpty:!1,title:null,visible:e.enabled&&!1!==l});this.coll="colorAxis";this.side=d.side||h?2:1;this.reversed=d.reversed||!h;this.opposite=!h;b.prototype.init.call(this,a,e);this.userOptions.visible=l;d.dataClasses&&this.initDataClasses(d);this.initStops();this.horiz=h;this.zoomEnabled=!1};f.prototype.initDataClasses= function(a){var b=this.chart,d=this.options,e=a.dataClasses.length,f,c=0,n=b.options.chart.colorCount;this.dataClasses=f=[];this.legendItems=[];(a.dataClasses||[]).forEach(function(a,h){a=k(a);f.push(a);if(b.styledMode||!a.color)"category"===d.dataClassColor?(b.styledMode||(h=b.options.colors,n=h.length,a.color=h[c]),a.colorIndex=c,c++,c===n&&(c=0)):a.color=l(d.minColor).tweenTo(l(d.maxColor),2>e?.5:h/(e-1))})};f.prototype.hasData=function(){return!!(this.tickPositions||[]).length};f.prototype.setTickPositions= function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};f.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=l(a[1])})};f.prototype.setOptions=function(a){b.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker};f.prototype.setAxisSize=function(){var a=this.legendSymbol,b=this.chart,d=b.options.legend||{},e,k;a?(this.left=d=a.attr("x"),this.top=e=a.attr("y"), this.width=k=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-d-k,this.bottom=b.chartHeight-e-a,this.len=this.horiz?k:a,this.pos=this.horiz?d:e):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||f.defaultLegendLength};f.prototype.normalizedValue=function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};f.prototype.toColor=function(a,b){var d=this.dataClasses,e=this.stops,f;if(d)for(f=d.length;f--;){var c=d[f];var k=c.from;e= c.to;if(("undefined"===typeof k||a>=k)&&("undefined"===typeof e||a<=e)){var g=c.color;b&&(b.dataClass=f,b.colorIndex=c.colorIndex);break}}else{a=this.normalizedValue(a);for(f=e.length;f--&&!(a>e[f][0]););k=e[f]||e[f+1];e=e[f+1]||k;a=1-(e[0]-a)/(e[0]-k[0]||1);g=k.color.tweenTo(e.color,a)}return g};f.prototype.getOffset=function(){var a=this.legendGroup,d=this.chart.axisOffset[this.side];if(a){this.axisParent=a;b.prototype.getOffset.call(this);var e=this.chart.legend;e.allItems.forEach(function(a){a instanceof f&&a.drawLegendSymbol(e,a)});e.render();this.chart.getMargins(!0);this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width);this.chart.axisOffset[this.side]=d}};f.prototype.setLegendColor=function(){var a=this.reversed,b=a?1:0;a=a?0:1;b=this.horiz?[b,0,a,0]:[0,a,0,b];this.legendColor={linearGradient:{x1:b[0],y1:b[1],x2:b[2],y2:b[3]},stops:this.stops}};f.prototype.drawLegendSymbol=function(a,b){var d=a.padding,e=a.options,k=this.horiz,c=G(e.symbolWidth,k?f.defaultLegendLength:12),l=G(e.symbolHeight, k?12:f.defaultLegendLength),g=G(e.labelPadding,k?16:30);e=G(e.itemDistance,10);this.setLegendColor();b.legendSymbol||(b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,c,l).attr({zIndex:1}).add(b.legendGroup));this.legendItemWidth=c+d+(k?e:this.options.labels.x+this.maxLabelLength);this.legendItemHeight=l+d+(k?g:0)};f.prototype.setState=function(a){this.series.forEach(function(b){b.setState(a)})};f.prototype.setVisible=function(){};f.prototype.getSeriesExtremes=function(){var a=this.series, b=a.length,d;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;){var f=a[b];var k=f.colorKey=G(f.options.colorKey,f.colorKey,f.pointValKey,f.zoneAxis,"y");var c=f.pointArrayMap;var l=f[k+"Min"]&&f[k+"Max"];if(f[k+"Data"])var g=f[k+"Data"];else if(c){g=[];c=c.indexOf(k);var n=f.yData;if(0<=c&&n)for(d=0;dk+c&&(l=k+c+2);d.plotX=l;d.plotY=this.len-l;b.prototype.drawCrosshair.call(this,a,d);d.plotX=e;d.plotY=f;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&& (this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};f.prototype.getPlotLinePath=function(a){var e=this.left,f=a.translatedValue,h=this.top;return d(f)?this.horiz?[["M",f-4,h-6],["L",f+4,h-6],["L",f,h],["Z"]]:[["M",e,f],["L",e-6,f+6],["L",e-6,f-6],["Z"]]:b.prototype.getPlotLinePath.call(this,a)};f.prototype.update=function(a,d){var e=this.chart.legend; this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&e.allItems||this.dataClasses)&&this.destroyItems();b.prototype.update.call(this,a,d);this.legendItem&&(this.setLegendColor(),e.colorizeItem(this,!0))};f.prototype.destroyItems=function(){var a=this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(b){a.legend.destroyItem(b)});a.isDirtyLegend=!0};f.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();b.prototype.destroy.apply(this, [].slice.call(arguments))};f.prototype.remove=function(a){this.destroyItems();b.prototype.remove.call(this,a)};f.prototype.getDataClassLegendSymbols=function(){var b=this,d=b.chart,e=b.legendItems,f=d.options.legend,k=f.valueDecimals,c=f.valueSuffix||"",l;e.length||b.dataClasses.forEach(function(f,h){var g=f.from,m=f.to,t=d.numberFormatter,u=!0;l="";"undefined"===typeof g?l="< ":"undefined"===typeof m&&(l="> ");"undefined"!==typeof g&&(l+=t(g,k)+c);"undefined"!==typeof g&&"undefined"!==typeof m&& (l+=" - ");"undefined"!==typeof m&&(l+=t(m,k)+c);e.push(a({chart:d,name:l,options:{},drawLegendSymbol:A.drawRectangle,visible:!0,setState:n,isDataClass:!0,setVisible:function(){u=b.visible=!u;b.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===h&&a.setVisible(u)})});d.legend.colorizeItem(this,u)}},f))});return e};f.defaultColorAxisOptions=B;f.defaultLegendLength=200;f.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return f}(b);Array.prototype.push.apply(b.keepProps, f.keepProps);"";return f});I(f,"Maps/MapNavigationOptionsDefault.js",[f["Core/DefaultOptions.js"],f["Core/Utilities.js"]],function(b,f){f=f.extend;var v={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};f(b.defaultOptions.lang, {zoomIn:"Zoom in",zoomOut:"Zoom out"});return b.defaultOptions.mapNavigation=v});I(f,"Maps/MapNavigation.js",[f["Core/Chart/Chart.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(b,f,v){function B(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function r(a){this.navButtons=[];this.init(a)}var A=f.doc,E=v.addEvent,y=v.extend,q=v.isNumber,l=v.merge,n=v.objectEach,e=v.pick;r.prototype.init=function(a){this.chart=a};r.prototype.update=function(a){var b= this,f=this.chart,q=f.options.mapNavigation,r,C,x,t,m=function(a){this.handler.call(f,a);B(a)},h=b.navButtons;a&&(q=f.options.mapNavigation=l(f.options.mapNavigation,a));for(;h.length;)h.pop().destroy();e(q.enableButtons,q.enabled)&&!f.renderer.forExport&&(b.navButtonsGroup||(b.navButtonsGroup=f.renderer.g().attr({zIndex:4}).add()),n(q.buttons,function(a,c){a=l(q.buttonOptions,a);!f.styledMode&&a.theme&&(r=a.theme,r.style=l(a.theme.style,a.style),x=(C=r.states)&&C.hover,t=C&&C.select,delete r.states); var d=f.renderer.button(a.text||"",0,0,m,r,x,t,void 0,"zoomIn"===c?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[c]).attr({width:a.width,height:a.height,title:f.options.lang[c],padding:a.padding,zIndex:5}).add(b.navButtonsGroup);d.handler=a.onclick;E(d.element,"dblclick",B);h.push(d);y(a,{width:d.width,height:2*d.height});if(f.hasLoaded)d.align(a,!1,a.alignTo);else var e=E(f,"load",function(){d.element&&d.align(a,!1,a.alignTo);e()})}), a=function(){var a=f.exportingGroup&&f.exportingGroup.getBBox();if(a){var c=b.navButtonsGroup.getBBox();if(!(c.x>=a.x+a.width||c.x+c.width<=a.x||c.y>=a.y+a.height||c.y+c.height<=a.y)){var d=-c.y-c.height+a.y-5;a=a.y+a.height-c.y+5;b.navButtonsGroup.attr({translateY:"bottom"===(q.buttonOptions&&q.buttonOptions.verticalAlign)?d:a})}}},f.hasLoaded||E(f,"render",a));this.updateEvents(q)};r.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo? this.unbindDblClick=this.unbindDblClick||E(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||E(b.container,void 0!==A.onwheel?"wheel":void 0!==A.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){b.pointer.inClass(a.target,"highcharts-no-mousewheel")||(b.pointer.onContainerMouseWheel(a),B(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel= this.unbindMouseWheel())};y(b.prototype,{fitToBox:function(a,b){[["x","width"],["y","height"]].forEach(function(d){var e=d[0];d=d[1];a[e]+a[d]>b[e]+b[d]&&(a[d]>b[d]?(a[d]=b[d],a[e]=b[e]):a[e]=b[e]+b[d]-a[d]);a[d]>b[d]&&(a[d]=b[d]);a[e]E&&f.isInsidePlot(b.chartX-f.plotLeft,b.chartY-f.plotTop)&&f.mapView&&f.mapView.zoomBy((f.options.mapNavigation.mouseWheelSensitivity- 1)*-n,void 0,[b.chartX,b.chartY],1>Math.abs(n)?!1:void 0)}});f(b.prototype,"zoomOption",function(b){var f=this.chart.options.mapNavigation;r(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType="xy");b.apply(this,[].slice.call(arguments,1))});f(b.prototype,"pinchTranslate",function(b,f,n,e,a,d,k){b.call(this,f,n,e,a,d,k);"map"===this.chart.options.chart.type&&this.hasZoom&&(b=e.scaleX>e.scaleY,this.pinchTranslateDirection(!b,f,n,e,a,d,k,b?e.scaleX:e.scaleY))})});I(f,"Series/ColorMapMixin.js", [f["Core/Globals.js"],f["Core/Series/Point.js"],f["Core/Utilities.js"]],function(b,f,v){var B=b.noop;b=b.seriesTypes;var r=v.defined;v=v.addEvent;v(f,"afterSetState",function(b){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:b&&"hover"===b.state?1:0})});return{PointMixin:{dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}},SeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group", "markerGroup","dataLabelsGroup"],getSymbol:B,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:b.column.prototype.pointAttribs,colorAttribs:function(b){var f={};!r(b.color)||b.state&&"normal"!==b.state||(f[this.colorProp||"fill"]=b.color);return f}}}});I(f,"Maps/MapSymbols.js",[f["Core/Renderer/SVG/SVGRenderer.js"]],function(b){function f(b,f,r,A,E,y,q,l){return[["M",b+E,f],["L",b+r-y,f],["C",b+r-y/2,f,b+r,f+y/2,b+r,f+y],["L",b+r,f+A-q],["C",b+r,f+A-q/2,b+r-q/2,f+A,b+r-q,f+A],["L",b+ l,f+A],["C",b+l/2,f+A,b,f+A-l/2,b,f+A-l],["L",b,f+E],["C",b,f+E/2,b+E/2,f,b+E,f],["Z"]]}b=b.prototype.symbols;b.bottombutton=function(b,B,r,A,E){E=E&&E.r||0;return f(b-1,B-1,r,A,0,0,E,E)};b.topbutton=function(b,B,r,A,E){E=E&&E.r||0;return f(b-1,B-1,r,A,E,E,0,0)};return b});I(f,"Core/Chart/MapChart.js",[f["Core/Chart/Chart.js"],f["Core/DefaultOptions.js"],f["Core/Renderer/SVG/SVGRenderer.js"],f["Core/Utilities.js"]],function(b,f,v,B){var r=this&&this.__extends||function(){var b=function(f,n){b=Object.setPrototypeOf|| {__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(f,n)};return function(f,n){function e(){this.constructor=f}b(f,n);f.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),A=f.getOptions,E=B.merge,y=B.pick;b=function(b){function f(){return null!==b&&b.apply(this,arguments)||this}r(f,b);f.prototype.init=function(f,e){var a=A().credits;f=E({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:y(a.mapText, ' \u00a9 {geojson.copyrightShort}'),mapTextFull:y(a.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},f);b.prototype.init.call(this,f,e)};return f}(b);(function(b){b.maps={};b.mapChart=function(f,n,e){return new b(f,n,e)};b.splitPath=function(b){"string"===typeof b&&(b=b.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),b=b.split(/[ ,;]+/).map(function(b){return/[A-za-z]/.test(b)?b:parseFloat(b)}));return v.prototype.pathToSegments(b)}})(b|| (b={}));return b});I(f,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(b){var f=-Number.MAX_VALUE,v=Number.MAX_VALUE,B=-Number.MAX_VALUE,r=Number.MAX_VALUE,A;b.forEach(function(b){var y=b[b.length-2];b=b[b.length-1];"number"===typeof y&&"number"===typeof b&&(v=Math.min(v,y),f=Math.max(f,y),r=Math.min(r,b),B=Math.max(B,b),A=!0)});if(A)return{x1:v,y1:r,x2:f,y2:B}},pointInPolygon:function(b,f){var v,B=!1,r=b.x,A=b.y;b=0;for(v=f.length-1;bA;var y=f[v][1]> A;E!==y&&r<(f[v][0]-f[b][0])*(A-f[b][1])/(f[v][1]-f[b][1])+f[b][0]&&(B=!B)}return B}}});I(f,"Series/Map/MapPoint.js",[f["Series/ColorMapMixin.js"],f["Maps/MapUtilities.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B){var r=this&&this.__extends||function(){var b=function(f,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(f,e)};return function(f,e){function a(){this.constructor= f}b(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),A=f.boundsFromPath,E=B.extend,y=B.isNumber,q=B.pick;f=function(b){function f(){var e=null!==b&&b.apply(this,arguments)||this;e.options=void 0;e.path=void 0;e.series=void 0;return e}r(f,b);f.getProjectedPath=function(b,a){b.projectedPath||(a&&b.geometry?(a.hasCoordinates=!0,b.projectedPath=a.path(b.geometry)):b.projectedPath=b.path);return b.projectedPath||[]};f.prototype.applyOptions=function(e,a){var d=this.series; e=b.prototype.applyOptions.call(this,e,a);a=d.joinBy;d.mapData&&d.mapMap&&(a=b.prototype.getNestedProperty.call(e,a[1]),(d="undefined"!==typeof a&&d.mapMap[a])?E(e,d):e.value=e.value||null);return e};f.prototype.getProjectedBounds=function(b){b=f.getProjectedPath(this,b);b=A(b);var a=this.properties;if(b){var d=a&&a["hc-middle-x"];a=a&&a["hc-middle-y"];b.midX=b.x1+(b.x2-b.x1)*q(this.middleX,y(d)?d:.5);d=q(this.middleY,y(a)?a:.5);this.geometry||(d=1-d);b.midY=b.y2-(b.y2-b.y1)*d;return b}};f.prototype.onMouseOver= function(e){B.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)b.prototype.onMouseOver.call(this,e);else this.series.onMouseOut(e)};f.prototype.zoomTo=function(){var b=this.series.chart;b.mapView&&this.bounds&&(b.mapView.fitToBounds(this.bounds,void 0,!1),this.series.isDirty=!0,b.redraw())};return f}(v.seriesTypes.scatter.prototype.pointClass);E(f.prototype,{dataLabelOnNull:b.PointMixin.dataLabelOnNull,isValid:b.PointMixin.isValid,moveToTopOnHover:b.PointMixin.moveToTopOnHover}); return f});I(f,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0}});I(f,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}});I(f,"Extensions/GeoJSON.js",[f["Core/Chart/Chart.js"],f["Core/FormatUtilities.js"],f["Core/Globals.js"],f["Maps/MapUtilities.js"],f["Core/Utilities.js"]], function(b,f,v,B,r){function A(a,b){b||(b=Object.keys(a.objects)[0]);b=a.objects[b];if(b["hc-decoded-geojson"])return b["hc-decoded-geojson"];var d=a.arcs;if(a.transform){var e=a.transform,f=e.scale,l=e.translate;d=a.arcs.map(function(a){var b=0,d=0;return a.map(function(a){a=a.slice();a[0]=(b+=a[0])*f[0]+l[0];a[1]=(d+=a[1])*f[1]+l[1];return a})})}var n=function(a){return"number"===typeof a[0]?a.reduce(function(a,b,e){var c=0>b?d[~b]:d[b];0>b?(c=c.slice(0,0===e?c.length:c.length-1),c.reverse()):e&& (c=c.slice(1));return a.concat(c)},[]):a.map(n)};e=b.geometries.map(function(a){return{type:"Feature",properties:a.properties,geometry:{type:a.type,coordinates:a.coordinates||n(a.arcs)}}});a={type:"FeatureCollection",copyright:a.copyright,copyrightShort:a.copyrightShort,copyrightUrl:a.copyrightUrl,features:e,"hc-recommended-mapview":b["hc-recommended-mapview"],bbox:a.bbox};return b["hc-decoded-geojson"]=a}function E(a,b,e){void 0===b&&(b="map");var d=[];a="Topology"===a.type?A(a):a;a.features.forEach(function(a){var e= a.geometry||{},f=e.type;e=e.coordinates;a=a.properties;var k;"map"!==b&&"mapbubble"!==b||"Polygon"!==f&&"MultiPolygon"!==f?"mapline"!==b||"LineString"!==f&&"MultiLineString"!==f?"mappoint"===b&&"Point"===f&&e.length&&(k={geometry:{coordinates:e,type:f}}):e.length&&(k={geometry:{coordinates:e,type:f}}):e.length&&(k={geometry:{coordinates:e,type:f}});k&&(f=a&&(a.name||a.NAME),d.push(n(k,{name:"string"===typeof f?f:void 0,properties:a})))});e&&a.copyrightShort&&(e.chart.mapCredits=y(e.chart.options.credits.mapText, {geojson:a}),e.chart.mapCreditsFull=y(e.chart.options.credits.mapTextFull,{geojson:a}));return d}var y=f.format,q=v.win,l=r.error,n=r.extend,e=r.merge;f=r.wrap;"";b.prototype.transformFromLatLon=function(a,b){var d=this.options.chart.proj4||q.proj4;if(d){var e=b.jsonmarginX;e=void 0===e?0:e;var f=b.jsonmarginY;f=void 0===f?0:f;var n=b.jsonres;n=void 0===n?1:n;var r=b.scale;r=void 0===r?1:r;var t=b.xoffset;t=void 0===t?0:t;var m=b.xpan;m=void 0===m?0:m;var h=b.yoffset;h=void 0===h?0:h;var u=b.ypan; u=void 0===u?0:u;a=d(b.crs,[a.lon,a.lat]);d=b.cosAngle||b.rotation&&Math.cos(b.rotation);var c=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=b.rotation?[a[0]*d+a[1]*c,-a[0]*c+a[1]*d]:a;return{x:((b[0]-t)*r+m)*n+e,y:-(((h-b[1])*r+u)*n-f)}}l(21,!1,this)};b.prototype.transformToLatLon=function(a,b){if(!this.options.chart.proj4&&!q.proj4)l(21,!1,this);else if(null!==a.y){var d=b.jsonmarginX,e=b.jsonmarginY,f=b.jsonres;f=void 0===f?1:f;var n=b.scale;n=void 0===n?1:n;var r=b.xoffset,t=b.xpan,m=b.yoffset, h=b.ypan;a={x:((a.x-(void 0===d?0:d))/f-(void 0===t?0:t))/n+(void 0===r?0:r),y:((a.y-(void 0===e?0:e))/f+(void 0===h?0:h))/n+(void 0===m?0:m)};d=b.cosAngle||b.rotation&&Math.cos(b.rotation);e=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=q.proj4(b.crs,"WGS84",b.rotation?{x:a.x*d+a.y*-e,y:a.x*e+a.y*d}:a);return{lat:b.y,lon:b.x}}};b.prototype.fromPointToLatLon=function(a){return this.mapView&&this.mapView.projectedUnitsToLonLat(a)};b.prototype.fromLatLonToPoint=function(a){return this.mapView&&this.mapView.lonLatToProjectedUnits(a)}; f(b.prototype,"addCredits",function(a,b){b=e(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})});v.geojson=E;return{geojson:E,topo2geo:A}});I(f,"Core/Geometry/PolygonClip.js",[],function(){var b=function(b,f,v){return(f[0]-b[0])*(v[1]-b[1])>(f[1]-b[1])*(v[0]-b[0])},f=function(b,f,v,E){var r=[b[0]-f[0],b[1]-f[1]],q=[v[0]-E[0],v[1]-E[1]];b=b[0]*f[1]-b[1]*f[0];v=v[0]*E[1]-v[1]*E[0];E=1/(r[0]*q[1]- r[1]*q[0]);r=[(b*q[0]-v*r[0])*E,(b*q[1]-v*r[1])*E];r.isIntersection=!0;return r},v;(function(v){v.clipLineString=function(b,f){var r=[];b=v.clipPolygon(b,f,!1);for(f=1;fMath.abs(r)&&(r=1e-10*(b(r)||1));this.n=r;this.c=A*Math.pow(Math.tan((v+y)/2),r)/r}B.prototype.forward=function(b){var r=b[0]*f,B=this.c,y=this.n,q=this.projectedBounds;b=b[1]*f;0v-.000001&&(b=v-.000001);var l=B/Math.pow(Math.tan((v+b)/2),y);b=l*Math.sin(y*r)*63.78137;r=63.78137*(B-l*Math.cos(y*r));B=[b,r];q&&(bq.x2||rq.y2)&&(B.outside=!0);return B};B.prototype.inverse=function(r){var A=r[0]/63.78137,B=this.c,y=this.n; r=B-r[1]/63.78137;var q=b(y)*Math.sqrt(A*A+r*r),l=Math.atan2(A,Math.abs(r))*b(r);0>r*y&&(l-=Math.PI*b(A)*b(r));return[l/y/f,(2*Math.atan(Math.pow(B/q,1/y))-v)/f]};return B}()});I(f,"Maps/Projections/EqualEarth.js",[],function(){var b=Math.sqrt(3)/2;return function(){function f(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}f.prototype.forward=function(f){var v=Math.PI/180,r=Math.asin(b*Math.sin(f[1]*v)),A=r*r,E=A*A*A;return[f[0]*v*Math.cos(r)* 74.03120656864502/(b*(1.340264+3*-.081106*A+E*(7*.000893+.034164*A))),74.03120656864502*r*(1.340264+-.081106*A+E*(.000893+.003796*A))]};f.prototype.inverse=function(f){var v=f[0]/74.03120656864502;f=f[1]/74.03120656864502;var r=180/Math.PI,A=f,E;for(E=0;12>E;++E){var y=A*A;var q=y*y*y;var l=A*(1.340264+-.081106*y+q*(.000893+.003796*y))-f;y=1.340264+3*-.081106*y+q*(7*.000893+.034164*y);A-=l/=y;if(1e-9>Math.abs(l))break}y=A*A;return[r*b*v*(1.340264+3*-.081106*y+y*y*y*(7*.000893+.034164*y))/Math.cos(A), r*Math.asin(Math.sin(A)/b)]};return f}()});I(f,"Maps/Projections/Miller.js",[],function(){var b=Math.PI/4,f=Math.PI/180;return function(){function v(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}v.prototype.forward=function(v){return[v[0]*f*63.78137,79.7267125*Math.log(Math.tan(b+.4*v[1]*f))]};v.prototype.inverse=function(v){return[v[0]/63.78137/f,2.5*(Math.atan(Math.exp(v[1]/63.78137*.8))-b)/f]};return v}()});I(f,"Maps/Projections/Orthographic.js", [],function(){var b=Math.PI/180;return function(){function f(){this.antimeridianCutting=!1;this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}f.prototype.forward=function(f){var v=f[0];f=f[1]*b;f=[Math.cos(f)*Math.sin(v*b)*63.78460826781007,63.78460826781007*Math.sin(f)];if(-90>v||90b&&(b+=360);180w;w+=b){var g=l((1-w)*u)/l(u),v=l(w*u)/l(u),p=g*f(r)*f(t)+v*f(m)*f(h),D=g*f(r)*l(t)+v*f(m)*l(h);g=g*l(r)+v*l(m);g=e(g,n(p*p+D*D));p=e(D,p);c.push([p/q,g/q])}d&&c.push(a);return c}; b.insertGreatCircles=function(e){for(var a=e.length-1;a--;)if(10=d!==a[b]>=d)return e=e[f]+(d-e[b])/(a[b]- e[b])*(a[f]-e[f]),b?[e,d]:[d,e]},n=b[0];if(a=l(b,0,a.x1))n=a,b[1]=a;else if(a=l(b,0,d))n=a,b[1]=a;if(a=l(b,1,e))n=a;else if(a=l(b,1,f))n=a;return n};b.prototype.getRotator=function(b){var a=b[0]*q,d=(b[1]||0)*q;b=(b[2]||0)*q;var e=Math.cos(d),f=Math.sin(d),l=Math.cos(b),n=Math.sin(b);if(0!==a||0!==d||0!==b)return{forward:function(b){var d=b[0]*q+a,k=b[1]*q,h=Math.cos(k);b=Math.cos(d)*h;d=Math.sin(d)*h;k=Math.sin(k);h=k*e+b*f;return[Math.atan2(d*l-h*n,b*e-k*f)/q,Math.asin(h*l+d*n)/q]},inverse:function(b){var d= b[0]*q,k=b[1]*q,h=Math.cos(k);b=Math.cos(d)*h;d=Math.sin(d)*h;k=Math.sin(k);h=k*l-d*n;return[(Math.atan2(d*l+k*n,b*e+h*f)-a)/q,Math.asin(h*e-b*f)/q]}}};b.prototype.forward=function(b){return b};b.prototype.inverse=function(b){return b};b.prototype.cutOnAntimeridian=function(e,a){var d=[],f=[e];e.forEach(function(c,b){var f=e[b-1];if(!b){if(!a)return;f=e[e.length-1]}var h=f[0],k=c[0];(-90>h||90k||90h?1:-1,previousLonLat:f,lonLat:c}))});if(d.length)if(a){if(1===d.length%2){var n=d.slice().sort(function(a,b){return Math.abs(b.lat)-Math.abs(a.lat)})[0];y(d,n)}for(var q=d.length-2;0<=q;){var r=d[q].i,x=l(180+.000001*d[q].direction),t=l(180-.000001*d[q].direction);r=e.splice.apply(e,B([r,d[q+1].i-r],b.greatCircle([x,d[q].lat],[x,d[q+1].lat],!0)));r.push.apply(r,b.greatCircle([t,d[q+1].lat],[t,d[q].lat],!0));f.push(r);q-=2}if(n)for(x=0;xm?-1:1)*this.maxLatitude;var h=l(180+.000001*q),u=l(180-.000001*q);m=b.greatCircle([h,m],[h,x],!0);for(h+=120*q;-180h;h+=120*q)m.push([h,x]);m.push.apply(m,b.greatCircle([u,x],[u,n.lat],!0));t.splice.apply(t,B([r,0],m));break}}}else for(q=d.length;q--;)r=d[q].i,r=e.splice(r,e.length,[l(180+.000001*d[q].direction),d[q].lat]),r.unshift([l(180-.000001*d[q].direction),d[q].lat]),f.push(r);return f};b.prototype.path=function(e){var a=this,d=this.bounds, f=this.def,l=this.rotator,n=[],q="Polygon"===e.type||"MultiPolygon"===e.type,x=this.hasGeoProjection,t=!f||!1!==f.antimeridianCutting,m=t?l:void 0,h=t?f||this:this,u;d&&(u=[[d.x1,d.y1],[d.x2,d.y1],[d.x2,d.y2],[d.x1,d.y2]]);var c=function(c){c=c.map(function(a){if(t){m&&(a=m.forward(a));var c=a[0];.000001>Math.abs(c-180)&&(c=180>c?179.999999:180.000001);a=[c,a[1]]}return a});var e=[c];x&&(b.insertGreatCircles(c),t&&(e=a.cutOnAntimeridian(c,q)));e.forEach(function(a){if(!(2>a.length)){var c=!1,e=!1, f=function(a){c?n.push(["L",a[0],a[1]]):(n.push(["M",a[0],a[1]]),c=!0)},g=!1,k=!1,m=a.map(function(a){a=h.forward(a);a.outside?g=!0:k=!0;Infinity===a[1]?a[1]=1E10:-Infinity===a[1]&&(a[1]=-1E10);return a});if(t){q&&m.push(m[0]);if(g){if(!k)return;if(u)if(q)m=A(m,u);else if(d){r(m,u).forEach(function(a){c=!1;a.forEach(f)});return}}m.forEach(f)}else for(var l=0;lc+h&&n>c&&(a[0]+=Math.min(l-h-c,n-c)/k); m-pg+f&&p>g&&(a[1]-=Math.min(m-f-g,p-g)/k);this.center=this.projection.inverse(a);this.insets.forEach(function(a){a.options.field&&(a.hitZone=a.getHitZone(),a.playingField=a.getField())});this.render()}G(this,"afterSetView");b&&this.redraw(d)};e.prototype.projectedUnitsToPixels=function(a){var c=this.getScale(),b=this.projection.forward(this.center),d=this.playingField;return{x:d.x+d.width/2-c*(b[0]-a.x),y:d.y+d.height/2+c*(b[1]-a.y)}};e.prototype.pixelsToLonLat= function(a){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(a))};e.prototype.pixelsToProjectedUnits=function(a){var c=a.x;a=a.y;var b=this.getScale(),d=this.projection.forward(this.center),e=this.playingField;return{x:d[0]+(c-(e.x+e.width/2))/b,y:d[1]-(a-(e.y+e.height/2))/b}};e.prototype.setUpEvents=function(){var a=this,b=this.chart,e,f,g,h=function(d){var h=b.pointer.pinchDown,m=a.projection,l=b.mouseDownX,n=b.mouseDownY;1===h.length&&(l=h[0].chartX,n=h[0].chartY);if("number"===typeof l&& "number"===typeof n){var p=l+","+n,t=d.originalEvent;h=t.chartX;t=t.chartY;p!==f&&(f=p,e=a.projection.forward(a.center),g=(a.projection.options.rotation||[0,0]).slice());p=(p=m.def&&m.def.bounds)&&c(p,a.playingField)||-Infinity;"Orthographic"===m.options.name&&(a.minZoom||Infinity)<1.1*p?(m=440/(a.getScale()*Math.min(b.plotWidth,b.plotHeight)),g&&(l=(l-h)*m-g[0],n=k(-g[1]-(n-t)*m,-80,80),h=a.zoom,a.update({projection:{rotation:[-l,-n]}},!1),a.zoom=h,b.redraw(!1))):(m=a.getScale(),n=a.projection.inverse([e[0]+ (l-h)/m,e[1]-(n-t)/m]),a.setView(n,void 0,!0,!1));d.preventDefault()}};d(b,"pan",h);d(b,"touchpan",h);d(b,"selection",function(c){if(c.resetSelection)a.zoomBy();else{var d=c.x-b.plotLeft,e=c.y-b.plotTop,f=a.pixelsToProjectedUnits({x:d,y:e}),g=f.y;f=f.x;d=a.pixelsToProjectedUnits({x:d+c.width,y:e+c.height});a.fitToBounds({x1:f,y1:g,x2:d.x,y2:d.y},void 0,!0,c.originalEvent.touches?!1:void 0);/^touch/.test(c.originalEvent.type)||b.showResetZoom();c.preventDefault()}})};e.prototype.render=function(){this.group|| (this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())};e.prototype.update=function(a,c,b){void 0===c&&(c=!0);var d=a.projection;d=d&&A.toString(d)!==A.toString(this.options.projection);var e=!1;m(!0,this.userOptions,a);m(!0,this.options,a);"insets"in a&&(this.insets.forEach(function(a){return a.destroy()}),this.insets.length=0,e=!0);if(d||e)this.chart.series.forEach(function(a){var c=a.transformGroups;a.clearBounds&&a.clearBounds();a.isDirty=!0;a.isDirtyData=!0;if(e&&c)for(;1=b.x1&&c.x<=b.x2&&c.y>=b.y1&&c.y<=b.y2&&d&&a(c,d))};b.prototype.render=function(){var a=this.chart,c=this.mapView,b=this.options,d=b.borderPath||b.field;if(d&&c.group){var e=!0;this.border||(this.border=a.renderer.path().addClass("highcharts-mapview-inset-border").add(c.group),e=!1); a.styledMode||this.border.attr({stroke:b.borderColor,"stroke-width":b.borderWidth});var f=Math.round(this.border.strokeWidth())%2/2,g="mapBoundingBox"===b.relativeTo&&c.getMapBBox()||c.playingField;c=(d.coordinates||[]).reduce(function(c,d){return d.reduce(function(c,d,e){var h=d[0];d=d[1];"percent"===b.units&&(h=a.plotLeft+u(h+"%",g.width,g.x),d=a.plotTop+u(d+"%",g.height,g.y));h=Math.floor(h)+f;d=Math.floor(d)+f;c.push(0===e?["M",h,d]:["L",h,d]);return c},c)},[]);this.border[e?"animate":"attr"]({d:c})}}; b.prototype.destroy=function(){this.border&&(this.border=this.border.destroy());this.eventsToUnbind.forEach(function(a){return a()})};b.prototype.setUpEvents=function(){};return b}(w);d(B,"afterInit",function(){this.mapView=new w(this,this.options.mapView)});return w});I(f,"Series/Map/MapSeries.js",[f["Core/Animation/AnimationUtilities.js"],f["Series/ColorMapMixin.js"],f["Series/CenteredUtilities.js"],f["Core/Globals.js"],f["Core/Legend/LegendSymbol.js"],f["Core/Chart/MapChart.js"],f["Series/Map/MapPoint.js"], f["Maps/MapView.js"],f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Renderer/SVG/SVGRenderer.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E,y,q,l,n,e){var a=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b): (d.prototype=b.prototype,new d)}}(),d=b.animObject;b=B.noop;var k=A.splitPath;A=l.seriesTypes;var G=A.column,z=A.scatter;A=e.extend;var C=e.find,x=e.fireEvent,t=e.getNestedProperty,m=e.isArray,h=e.isNumber,u=e.isObject,c=e.merge,w=e.objectEach,g=e.pick,F=e.splat;e=function(b){function e(){var a=null!==b&&b.apply(this,arguments)||this;a.chart=void 0;a.data=void 0;a.group=void 0;a.joinBy=void 0;a.options=void 0;a.points=void 0;a.processedData=[];return a}a(e,b);e.prototype.animate=function(a){var c= this.chart,b=this.group,e=d(this.options.animation);c.renderer.isSVG&&(a?b.attr({translateX:c.plotLeft+c.plotWidth/2,translateY:c.plotTop+c.plotHeight/2,scaleX:.001,scaleY:.001}):b.animate({translateX:c.plotLeft,translateY:c.plotTop,scaleX:1,scaleY:1},e))};e.prototype.animateDrilldown=function(a){var c=this.chart,b=this.group;c.renderer.isSVG&&(a?b.attr({translateX:c.plotLeft+c.plotWidth/2,translateY:c.plotTop+c.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(b.animate({translateX:c.plotLeft,translateY:c.plotTop, scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),c.drilldown&&c.drilldown.fadeInGroup(this.dataLabelsGroup)))};e.prototype.animateDrillupFrom=function(){var a=this.chart;a.renderer.isSVG&&this.group.animate({translateX:a.plotLeft+a.plotWidth/2,translateY:a.plotTop+a.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})};e.prototype.animateDrillupTo=function(a){G.prototype.animateDrillupTo.call(this,a)};e.prototype.clearBounds=function(){this.points.forEach(function(a){delete a.bounds; delete a.insetIndex;delete a.projectedPath});delete this.bounds};e.prototype.doFullTranslate=function(){return!(!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML)&&this.hasRendered)};e.prototype.drawMapDataLabels=function(){q.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};e.prototype.drawPoints=function(){var a=this,c=this.chart,b=this.group,d=this.transformGroups,e=void 0===d?[]:d,f=c.mapView,h=c.renderer;f&&(this.transformGroups= e,e[0]||(e[0]=h.g().add(b)),f.insets.forEach(function(a,c){e[c+1]||e.push(h.g().add(b))}),this.doFullTranslate()&&(this.points.forEach(function(b){var d=b.graphic,f=b.shapeArgs;b.group=e["number"===typeof b.insetIndex?b.insetIndex+1:0];d&&d.parentGroup!==b.group&&d.add(b.group);f&&c.hasRendered&&!c.styledMode&&(f.fill=a.pointAttribs(b,b.state).fill)}),G.prototype.drawPoints.apply(this),this.points.forEach(function(b){if(b.graphic){var d="";b.name&&(d+="highcharts-name-"+b.name.replace(/ /g,"-").toLowerCase()); b.properties&&b.properties["hc-key"]&&(d+=" highcharts-key-"+b.properties["hc-key"].toString().toLowerCase());d&&b.graphic.addClass(d);c.styledMode&&b.graphic.css(a.pointAttribs(b,b.selected&&"select"||void 0))}})),e.forEach(function(b,d){var e=(0===d?f:f.insets[d-1]).getSVGTransform(),k=g(a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"],1),m=e.scaleX,l=0f.length&&"string"===typeof c[0]&&(q[d]["hc-key"]=c[0],++g);for(var k=0;k"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"},inactive:{opacity:1}}});return e}(z);A(e.prototype,{type:"map",axisTypes:f.SeriesMixin.axisTypes,colorAttribs:f.SeriesMixin.colorAttribs,colorKey:f.SeriesMixin.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:r.drawRectangle, forceDL:!0,getCenter:v.getCenter,getExtremesFromAll:!0,getSymbol:f.SeriesMixin.getSymbol,isCartesian:!1,parallelArrays:f.SeriesMixin.parallelArrays,pointArrayMap:f.SeriesMixin.pointArrayMap,pointClass:E,preserveAspectRatio:!0,searchPoint:b,trackerGroups:f.SeriesMixin.trackerGroups,useMapGeometry:!0});l.registerSeriesType("map",e);"";return e});I(f,"Series/MapLine/MapLineSeries.js",[f["Series/Map/MapSeries.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v){var B=this&& this.__extends||function(){var b=function(f,l){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var a in e)e.hasOwnProperty(a)&&(b[a]=e[a])};return b(f,l)};return function(f,l){function n(){this.constructor=f}b(f,l);f.prototype=null===l?Object.create(l):(n.prototype=l.prototype,new n)}}(),r=f.series,A=v.extend,E=v.merge;v=function(f){function q(){var b=null!==f&&f.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b} B(q,f);q.prototype.pointAttribs=function(f,n){f=b.prototype.pointAttribs.call(this,f,n);f.fill=this.options.fillColor;return f};q.defaultOptions=E(b.defaultOptions,{lineWidth:1,fillColor:"none"});return q}(b);A(v.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:r.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});f.registerSeriesType("mapline",v);"";return v});I(f,"Series/MapPoint/MapPointPoint.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]], function(b,f){var v=this&&this.__extends||function(){var b=function(f,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var l in f)f.hasOwnProperty(l)&&(b[l]=f[l])};return b(f,r)};return function(f,r){function v(){this.constructor=f}b(f,r);f.prototype=null===r?Object.create(r):(v.prototype=r.prototype,new v)}}(),B=f.isNumber;return function(b){function f(){var f=null!==b&&b.apply(this,arguments)||this;f.options=void 0;f.series=void 0;return f} v(f,b);f.prototype.isValid=function(){return!!(this.options.geometry||B(this.x)&&B(this.y)||B(this.options.lon)&&B(this.options.lat))};return f}(b.seriesTypes.scatter.prototype.pointClass)});I(f,"Series/MapPoint/MapPointSeries.js",[f["Core/Globals.js"],f["Series/MapPoint/MapPointPoint.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B){var r=this&&this.__extends||function(){var b=function(e,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__= b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(e,a)};return function(e,a){function d(){this.constructor=e}b(e,a);e.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}();b=b.noop;var A=v.seriesTypes.scatter,E=B.extend,y=B.fireEvent,q=B.isNumber,l=B.merge;B=function(b){function e(){var a=null!==b&&b.apply(this,arguments)||this;a.chart=void 0;a.data=void 0;a.options=void 0;a.points=void 0;return a}r(e,b);e.prototype.drawDataLabels=function(){b.prototype.drawDataLabels.call(this); this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};e.prototype.projectPoint=function(a){var b=this.chart.mapView;if(b){var e=a.geometry,f=a.lon;a=a.lat;e=e&&"Point"===e.type&&e.coordinates;q(f)&&q(a)&&(e=[f,a]);if(e)return b.lonLatToProjectedUnits({lon:e[0],lat:e[1]})}};e.prototype.translate=function(){var a=this,b=this.chart.mapView;this.processedXData||this.processData();this.generatePoints();this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()); if(b){var e=b.projection.hasCoordinates;this.points.forEach(function(d){var f=d.x;f=void 0===f?void 0:f;var k=d.y;k=void 0===k?void 0:k;var l=a.projectPoint(d.options);l?(f=l.x,k=l.y):d.bounds&&(f=d.bounds.midX,k=d.bounds.midY);q(f)&&q(k)?(f=b.projectedUnitsToPixels({x:f,y:k}),d.plotX=f.x,d.plotY=e?f.y:a.chart.plotHeight-f.y):d.y=d.plotX=d.plotY=void 0;d.isInside=a.isPointInside(d);d.zone=a.zones.length?d.getZone():void 0})}y(this,"afterTranslate")};e.defaultOptions=l(A.defaultOptions,{dataLabels:{crop:!1, defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}});return e}(A);E(B.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:f,searchPoint:b,useMapGeometry:!0});v.registerSeriesType("mappoint",B);"";return B});I(f,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1, enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}});I(f,"Series/Bubble/BubbleLegendItem.js",[f["Core/Color/Color.js"],f["Core/FormatUtilities.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(b,f,v,B){var r=b.parse,A=v.noop,E=B.arrayMax, y=B.arrayMin,q=B.isNumber,l=B.merge,n=B.pick,e=B.stableSort;"";return function(){function a(a,b){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=A;this.init(a,b)}a.prototype.init=function(a,b){this.options=a;this.visible=!0;this.chart=b.chart;this.legend=b};a.prototype.addToLegend=function(a){a.splice(this.options.legendIndex, 0,this)};a.prototype.drawLegendSymbol=function(a){var b=this.chart,d=this.options,f=n(a.options.itemDistance,20),l=d.ranges,r=d.connectorDistance;this.fontMetrics=b.renderer.fontMetrics(d.labels.style.fontSize);l&&l.length&&q(l[0].value)?(e(l,function(a,b){return b.value-a.value}),this.ranges=l,this.setOptions(),this.render(),a=this.getMaxLabelSize(),l=this.ranges[0].radius,b=2*l,r=r-l+a.width,r=0=b&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};a.prototype.renderRange= function(a){var b=this.options,d=b.labels,e=this.chart,f=e.series[b.seriesIndex],l=e.renderer,n=this.symbols;e=n.labels;var m=a.center,h=Math.abs(a.radius),u=b.connectorDistance||0,c=d.align,q=b.connectorWidth,g=this.ranges[0].radius||0,r=m-h-b.borderWidth/2+q/2,p=this.fontMetrics;p=p.f/2-(p.h-p.f)/2;var v=l.styledMode;u=this.legend.options.rtl||"left"===c?-u:u;"center"===c&&(u=0,b.connectorDistance=0,a.labelAttribs.align="center");c=r+b.labels.y;var y=g+u+b.labels.x;n.bubbleItems.push(l.circle(g, m+((r%1?1:.5)-(q%2?0:.5)),h).attr(v?{}:a.bubbleAttribs).addClass((v?"highcharts-color-"+f.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));n.connectors.push(l.path(l.crispLine([["M",g,r],["L",g+u,r]],b.connectorWidth)).attr(v?{}:a.connectorAttribs).addClass((v?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));a=l.text(this.formatLabel(a),y,c+p).attr(v?{}:a.labelAttribs).css(v? {}:d.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);e.push(a);a.placed=!0;a.alignAttr={x:y,y:c+p}};a.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(d){b=d.getBBox(!0);a=a?b.width>a.width?b:a:b});return a||{}};a.prototype.formatLabel=function(a){var b=this.options,d=b.labels.formatter;b=b.labels.format;var e=this.chart.numberFormatter;return b?f.format(b,a):d?d.call(a):e(a.value,1)};a.prototype.hideOverlappingLabels= function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),b.labels.forEach(function(a,d){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[d].show():b.connectors[d].hide()}))};a.prototype.getRanges=function(){var a=this.legend.bubbleLegend,b=a.options.ranges,e,f=Number.MAX_VALUE,r=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(e=a.zData.filter(q),e.length&&(f=n(a.options.zMin,Math.min(f,Math.max(y(e), !1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),r=n(a.options.zMax,Math.max(r,E(e)))))});var x=f===r?[{value:r}]:[{value:f},{value:(f+r)/2},{value:r,autoRanges:!0}];b.length&&b[0].radius&&x.reverse();x.forEach(function(a,d){b&&b[d]&&(x[d]=l(b[d],a))});return x};a.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,e=a.legend.options,f=e.floating,l=(e="horizontal"===e.layout)?a.legend.lastLineHeight:0,n=a.plotSizeX,t=a.plotSizeY,m=a.series[this.options.seriesIndex], h=m.getPxExtremes();a=Math.ceil(h.minPxSize);h=Math.ceil(h.maxPxSize);var u=Math.min(t,n);m=m.options.maxSize;if(f||!/%$/.test(m))b=h;else if(m=parseFloat(m),b=(u+l-b.h/2)*m/100/(m/100+1),e&&t-b>=n||!e&&n-b>=t)b=h;return[a,Math.ceil(b)]};a.prototype.updateRanges=function(a,b){var d=this.legend.options.bubbleLegend;d.minSize=a;d.maxSize=b;d.ranges=this.getRanges()};a.prototype.correctSizes=function(){var a=this.legend,b=this.chart.series[this.options.seriesIndex].getPxExtremes();1k.height&&(k.height=a[f].itemHeight);k.step=e}return b}function d(a){var b= this.bubbleLegend,d=this.options,k=d.bubbleLegend,h=e(this.chart);b&&b.ranges&&b.ranges.length&&(k.ranges.length&&(k.autoRanges=!!k.ranges[0].autoRanges),this.destroyItem(b));0<=h&&d.enabled&&k.enabled&&(k.seriesIndex=h,this.bubbleLegend=new f(k,this),this.bubbleLegend.addToLegend(a.allItems))}function k(){var a=this.chart,b=this.visible,d=this.chart.legend;d&&d.bubbleLegend&&(this.visible=!b,this.ignoreSeries=b,a=0<=e(a),d.bubbleLegend.visible!==a&&(d.update({bubbleLegend:{enabled:a}}),d.bubbleLegend.visible= a),this.visible=b)}function q(a,b){var d=a.options.rtl,e,f,k,c=0;a.allItems.forEach(function(a,g){e=a.legendGroup.translateX;f=a._legendItemPos[1];if((k=a.movementX)||d&&a.ranges)k=d?e-a.options.maxSize/2:e+k,a.legendGroup.attr({translateX:k});g>b[c].step&&c++;a.legendGroup.attr({translateY:Math.round(f+b[c].height/2)});a._legendItemPos[1]=f+b[c].height/2})}var v=[];l.compose=function(a,e,f){-1===v.indexOf(a)&&(v.push(a),r({legend:{bubbleLegend:b}}),y(a.prototype,"drawChartBox",n));-1===v.indexOf(e)&& (v.push(e),A(e,"afterGetAllItems",d));-1===v.indexOf(f)&&(v.push(f),A(f,"legendItemClick",k))}})(q||(q={}));return q});I(f,"Series/Bubble/BubblePoint.js",[f["Core/Series/Point.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v){var B=this&&this.__extends||function(){var b=function(f,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var l in f)f.hasOwnProperty(l)&&(b[l]=f[l])};return b(f,r)};return function(f,r){function v(){this.constructor= f}b(f,r);f.prototype=null===r?Object.create(r):(v.prototype=r.prototype,new v)}}();v=v.extend;f=function(f){function r(){var b=null!==f&&f.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}B(r,f);r.prototype.haloPath=function(f){return b.prototype.haloPath.call(this,0===f?0:(this.marker?this.marker.radius||0:0)+f)};return r}(f.seriesTypes.scatter.prototype.pointClass);v(f.prototype,{ttBelow:!1});return f});I(f,"Series/Bubble/BubbleSeries.js",[f["Core/Axis/Axis.js"],f["Series/Bubble/BubbleLegendComposition.js"], f["Series/Bubble/BubblePoint.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(b,f,v,B,r,A,E,y){var q=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d): (e.prototype=d.prototype,new e)}}(),l=B.parse;B=r.noop;var n=E.seriesTypes;r=n.column;var e=n.scatter;n=y.addEvent;var a=y.arrayMax,d=y.arrayMin,k=y.clamp,G=y.extend,z=y.isNumber,C=y.merge,x=y.pick;y=function(b){function m(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.maxPxSize=void 0;a.minPxSize=void 0;a.options=void 0;a.points=void 0;a.radii=void 0;a.yData=void 0;a.zData=void 0;return a}q(m,b);m.prototype.animate=function(a){!a&&this.points.length=c/2?(e.marker=G(e.marker,{radius:f,width:2*f,height:2*f}),e.dlBox={x:e.plotX-f,y:e.plotY-f,width:2*f,height:2*f}):e.shapeArgs=e.plotY=e.dlBox=void 0}};m.prototype.getPxExtremes=function(){var a=Math.min(this.chart.plotWidth,this.chart.plotHeight),b=function(b){if("string"===typeof b){var c=/%$/.test(b);b=parseInt(b,10)}return c?a*b/100:b},c=b(x(this.options.minSize,8));b=Math.max(b(x(this.options.maxSize,"20%")),c);return{minPxSize:c, maxPxSize:b}};m.prototype.getZExtremes=function(){var b=this.options,e=(this.zData||[]).filter(z);if(e.length){var c=x(b.zMin,k(d(e),!1===b.displayNegative?b.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));b=x(b.zMax,a(e));if(z(c)&&z(b))return{zMin:c,zMax:b}}};m.compose=f.compose;m.defaultOptions=C(e.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.z;return z(b)?a(b,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null, lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return m}(e);G(y.prototype,{alignDataLabel:r.prototype.alignDataLabel,applyZones:B,bubblePadding:!0,buildKDTree:B,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:v,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"], specialGroup:"group",zoneAxis:"z"});n(y,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});b.prototype.beforePadding=function(){var a=this,b=this.len,d=this.chart,e=0,c=b,f=this.isXAxis,g=f?"xData":"yData",k=this.min,l=this.max-k,n=b/l,q;this.series.forEach(function(b){if(b.bubblePadding&&(b.visible||!d.options.chart.ignoreHiddenSeries)){q=a.allowZoomOutside=!0;var h=b[g];f&&b.getRadii(0,0,b);if(0"},states:{hover:{halo:!1,brightness:.2}}});return l}(e);d(A.prototype,{alignDataLabel:n.prototype.alignDataLabel,axisTypes:f.SeriesMixin.axisTypes, colorAttribs:f.SeriesMixin.colorAttribs,colorKey:f.SeriesMixin.colorKey,directTouch:!0,drawLegendSymbol:B.drawRectangle,getExtremesFromAll:!0,getSymbol:q.prototype.getSymbol,parallelArrays:f.SeriesMixin.parallelArrays,pointArrayMap:["y","value"],pointClass:v,trackerGroups:f.SeriesMixin.trackerGroups});r.registerSeriesType("heatmap",A);"";"";return A});I(f,"masters/modules/map.src.js",[f["Core/Globals.js"],f["Core/Axis/Color/ColorAxis.js"],f["Series/MapBubble/MapBubbleSeries.js"],f["Core/Chart/MapChart.js"], f["Maps/MapView.js"],f["Maps/Projection.js"]],function(b,f,v,B,r,A){b.ColorAxis=f;b.MapChart=B;b.mapChart=b.Map=B.mapChart;b.MapView=r;b.maps=B.maps;b.Projection=A;f.compose(b.Chart,b.Fx,b.Legend,b.Series);v.compose(b.Chart,b.Legend,b.Series)});I(f,"masters/highmaps.src.js",[f["masters/highcharts.src.js"]],function(b){b.product="Highmaps";return b});f["masters/highmaps.src.js"]._modules=f;return f["masters/highmaps.src.js"]}); //# sourceMappingURL=highmaps.js.map