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