/*
 Highcharts JS v6.0.1 (2017-10-05)

 (c) 2009-2016 Torstein Honsi

 License: www.highcharts.com/license
*/
(function(S,L){"object"===typeof module&&module.exports?module.exports=S.document?L(S):L:S.Highcharts=L(S)})("undefined"!==typeof window?window:this,function(S){var L=function(){var a=S.document,z=S.navigator&&S.navigator.userAgent||"",A=a&&a.createElementNS&&!!a.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,E=/(edge|msie|trident)/i.test(z)&&!S.opera,C=/Firefox/.test(z),q=C&&4>parseInt(z.split("Firefox/")[1],10);return S.Highcharts?S.Highcharts.error(16,!0):{product:"Highcharts",
version:"6.0.1",deg2rad:2*Math.PI/360,doc:a,hasBidiBug:q,hasTouch:a&&void 0!==a.documentElement.ontouchstart,isMS:E,isWebKit:/AppleWebKit/.test(z),isFirefox:C,isTouchDevice:/(Mobile|Android|Windows Phone)/.test(z),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:A,win:S,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}}();(function(a){var z=[],A=a.charts,E=a.doc,C=a.win;a.error=function(q,e){q=a.isNumber(q)?"Highcharts error #"+
q+": www.highcharts.com/errors/"+q:q;if(e)throw Error(q);C.console&&console.log(q)};a.Fx=function(a,e,g){this.options=e;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],e=this.paths[1],g=[],t=this.now,l=a.length,n;if(1===t)g=this.toD;else if(l===e.length&&1>t)for(;l--;)n=parseFloat(a[l]),g[l]=isNaN(n)?a[l]:t*parseFloat(e[l]-n)+n;else g=e;this.elem.attr("d",g,null,!0)},update:function(){var a=this.elem,e=this.prop,g=this.now,t=this.options.step;if(this[e+"Setter"])this[e+
"Setter"]();else a.attr?a.element&&a.attr(e,g,null,!0):a.style[e]=g+this.unit;t&&t.call(a,g,this)},run:function(a,e,g){var q=this,l=function(a){return l.stopped?!1:q.step(a)},n=C.requestAnimationFrame||function(a){setTimeout(a,13)},d=function(){var a;for(a=0;a<z.length;a++)z[a]()||z.splice(a--,1);z.length&&n(d)};a===e?delete this.options.curAnim[this.prop]:(this.startTime=+new Date,this.start=a,this.end=e,this.unit=g,this.now=this.start,this.pos=0,l.elem=this.elem,l.prop=this.prop,l()&&1===z.push(l)&&
n(d))},step:function(q){var e=+new Date,g,t=this.options,l=this.elem,n=t.complete,d=t.duration,k=t.curAnim;l.attr&&!l.element?q=!1:q||e>=d+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=k[this.prop]=!0,a.objectEach(k,function(a){!0!==a&&(g=!1)}),g&&n&&n.call(l),q=!1):(this.pos=t.easing((e-this.startTime)/d),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,e,g){function t(a){var b,c;for(m=a.length;m--;)b="M"===a[m]||"L"===a[m],c=/[a-zA-Z]/.test(a[m+
3]),b&&c&&a.splice(m+1,0,a[m+1],a[m+2],a[m+1],a[m+2])}function l(a,f){for(;a.length<b;){a[0]=f[b-a.length];var d=a.slice(0,c);[].splice.apply(a,[0,0].concat(d));F&&(d=a.slice(a.length-c),[].splice.apply(a,[a.length,0].concat(d)),m--)}a[0]="M"}function n(a,d){for(var m=(b-a.length)/c;0<m&&m--;)p=a.slice().splice(a.length/H-c,c*H),p[0]=d[b-c-m*c],f&&(p[c-6]=p[c-2],p[c-5]=p[c-1]),[].splice.apply(a,[a.length/H,0].concat(p)),F&&m--}e=e||"";var d,k=q.startX,v=q.endX,f=-1<e.indexOf("C"),c=f?7:3,b,p,m;e=
e.split(" ");g=g.slice();var F=q.isArea,H=F?2:1,x;f&&(t(e),t(g));if(k&&v){for(m=0;m<k.length;m++)if(k[m]===v[0]){d=m;break}else if(k[0]===v[v.length-k.length+m]){d=m;x=!0;break}void 0===d&&(e=[])}e.length&&a.isNumber(d)&&(b=g.length+d*H*c,x?(l(e,g),n(g,e)):(l(g,e),n(e,g)));return[e,g]}};a.Fx.prototype.fillSetter=a.Fx.prototype.strokeSetter=function(){this.elem.attr(this.prop,a.color(this.start).tweenTo(a.color(this.end),this.pos),null,!0)};a.extend=function(a,e){var g;a||(a={});for(g in e)a[g]=e[g];
return a};a.merge=function(){var q,e=arguments,g,t={},l=function(e,d){"object"!==typeof e&&(e={});a.objectEach(d,function(k,g){!a.isObject(k,!0)||a.isClass(k)||a.isDOMElement(k)?e[g]=d[g]:e[g]=l(e[g]||{},k)});return e};!0===e[0]&&(t=e[1],e=Array.prototype.slice.call(e,2));g=e.length;for(q=0;q<g;q++)t=l(t,e[q]);return t};a.pInt=function(a,e){return parseInt(a,e||10)};a.isString=function(a){return"string"===typeof a};a.isArray=function(a){a=Object.prototype.toString.call(a);return"[object Array]"===
a||"[object Array Iterator]"===a};a.isObject=function(q,e){return!!q&&"object"===typeof q&&(!e||!a.isArray(q))};a.isDOMElement=function(q){return a.isObject(q)&&"number"===typeof q.nodeType};a.isClass=function(q){var e=q&&q.constructor;return!(!a.isObject(q,!0)||a.isDOMElement(q)||!e||!e.name||"Object"===e.name)};a.isNumber=function(a){return"number"===typeof a&&!isNaN(a)};a.erase=function(a,e){for(var g=a.length;g--;)if(a[g]===e){a.splice(g,1);break}};a.defined=function(a){return void 0!==a&&null!==
a};a.attr=function(q,e,g){var t;a.isString(e)?a.defined(g)?q.setAttribute(e,g):q&&q.getAttribute&&(t=q.getAttribute(e)):a.defined(e)&&a.isObject(e)&&a.objectEach(e,function(a,e){q.setAttribute(e,a)});return t};a.splat=function(q){return a.isArray(q)?q:[q]};a.syncTimeout=function(a,e,g){if(e)return setTimeout(a,e,g);a.call(0,g)};a.pick=function(){var a=arguments,e,g,t=a.length;for(e=0;e<t;e++)if(g=a[e],void 0!==g&&null!==g)return g};a.css=function(q,e){a.isMS&&!a.svg&&e&&void 0!==e.opacity&&(e.filter=
"alpha(opacity\x3d"+100*e.opacity+")");a.extend(q.style,e)};a.createElement=function(q,e,g,t,l){q=E.createElement(q);var n=a.css;e&&a.extend(q,e);l&&n(q,{padding:0,border:"none",margin:0});g&&n(q,g);t&&t.appendChild(q);return q};a.extendClass=function(q,e){var g=function(){};g.prototype=new q;a.extend(g.prototype,e);return g};a.pad=function(a,e,g){return Array((e||2)+1-String(a).length).join(g||0)+a};a.relativeLength=function(a,e,g){return/%$/.test(a)?e*parseFloat(a)/100+(g||0):parseFloat(a)};a.wrap=
function(a,e,g){var t=a[e];a[e]=function(){var a=Array.prototype.slice.call(arguments),e=arguments,d=this;d.proceed=function(){t.apply(d,arguments.length?arguments:e)};a.unshift(t);a=g.apply(this,a);d.proceed=null;return a}};a.getTZOffset=function(q){var e=a.Date;return 6E4*(e.hcGetTimezoneOffset&&e.hcGetTimezoneOffset(q)||e.hcTimezoneOffset||0)};a.dateFormat=function(q,e,g){if(!a.defined(e)||isNaN(e))return a.defaultOptions.lang.invalidDate||"";q=a.pick(q,"%Y-%m-%d %H:%M:%S");var t=a.Date,l=new t(e-
a.getTZOffset(e)),n=l[t.hcGetHours](),d=l[t.hcGetDay](),k=l[t.hcGetDate](),v=l[t.hcGetMonth](),f=l[t.hcGetFullYear](),c=a.defaultOptions.lang,b=c.weekdays,p=c.shortWeekdays,m=a.pad,t=a.extend({a:p?p[d]:b[d].substr(0,3),A:b[d],d:m(k),e:m(k,2," "),w:d,b:c.shortMonths[v],B:c.months[v],m:m(v+1),y:f.toString().substr(2,2),Y:f,H:m(n),k:n,I:m(n%12||12),l:n%12||12,M:m(l[t.hcGetMinutes]()),p:12>n?"AM":"PM",P:12>n?"am":"pm",S:m(l.getSeconds()),L:m(Math.round(e%1E3),3)},a.dateFormats);a.objectEach(t,function(a,
b){for(;-1!==q.indexOf("%"+b);)q=q.replace("%"+b,"function"===typeof a?a(e):a)});return g?q.substr(0,1).toUpperCase()+q.substr(1):q};a.formatSingle=function(q,e){var g=/\.([0-9])/,t=a.defaultOptions.lang;/f$/.test(q)?(g=(g=q.match(g))?g[1]:-1,null!==e&&(e=a.numberFormat(e,g,t.decimalPoint,-1<q.indexOf(",")?t.thousandsSep:""))):e=a.dateFormat(q,e);return e};a.format=function(q,e){for(var g="{",t=!1,l,n,d,k,v=[],f;q;){g=q.indexOf(g);if(-1===g)break;l=q.slice(0,g);if(t){l=l.split(":");n=l.shift().split(".");
k=n.length;f=e;for(d=0;d<k;d++)f&&(f=f[n[d]]);l.length&&(f=a.formatSingle(l.join(":"),f));v.push(f)}else v.push(l);q=q.slice(g+1);g=(t=!t)?"}":"{"}v.push(q);return v.join("")};a.getMagnitude=function(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))};a.normalizeTickInterval=function(q,e,g,t,l){var n,d=q;g=a.pick(g,1);n=q/g;e||(e=l?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===t&&(1===g?e=a.grep(e,function(a){return 0===a%1}):.1>=g&&(e=[1/g])));for(t=0;t<e.length&&!(d=e[t],l&&d*g>=q||!l&&
n<=(e[t]+(e[t+1]||e[t]))/2);t++);return d=a.correctFloat(d*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,e){var g=a.length,t,l;for(l=0;l<g;l++)a[l].safeI=l;a.sort(function(a,d){t=e(a,d);return 0===t?a.safeI-d.safeI:t});for(l=0;l<g;l++)delete a[l].safeI};a.arrayMin=function(a){for(var e=a.length,g=a[0];e--;)a[e]<g&&(g=a[e]);return g};a.arrayMax=function(a){for(var e=a.length,g=a[0];e--;)a[e]>g&&(g=a[e]);return g};a.destroyObjectProperties=function(q,e){a.objectEach(q,function(a,
t){a&&a!==e&&a.destroy&&a.destroy();delete q[t]})};a.discardElement=function(q){var e=a.garbageBin;e||(e=a.createElement("div"));q&&e.appendChild(q);e.innerHTML=""};a.correctFloat=function(a,e){return parseFloat(a.toPrecision(e||14))};a.setAnimation=function(q,e){e.renderer.globalAnimation=a.pick(q,e.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,
year:314496E5};a.numberFormat=function(q,e,g,t){q=+q||0;e=+e;var l=a.defaultOptions.lang,n=(q.toString().split(".")[1]||"").split("e")[0].length,d,k,v=q.toString().split("e");-1===e?e=Math.min(n,20):a.isNumber(e)||(e=2);k=(Math.abs(v[1]?v[0]:q)+Math.pow(10,-Math.max(e,n)-1)).toFixed(e);n=String(a.pInt(k));d=3<n.length?n.length%3:0;g=a.pick(g,l.decimalPoint);t=a.pick(t,l.thousandsSep);q=(0>q?"-":"")+(d?n.substr(0,d)+t:"");q+=n.substr(d).replace(/(\d{3})(?=\d)/g,"$1"+t);e&&(q+=g+k.slice(-e));v[1]&&
(q+="e"+v[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,e,g){if("width"===e)return Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,"padding-left")-a.getStyle(q,"padding-right");if("height"===e)return Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,"padding-top")-a.getStyle(q,"padding-bottom");C.getComputedStyle||a.error(27,!0);if(q=C.getComputedStyle(q,void 0))q=q.getPropertyValue(e),a.pick(g,"opacity"!==e)&&(q=a.pInt(q));return q};a.inArray=
function(q,e){return(a.indexOfPolyfill||Array.prototype.indexOf).call(e,q)};a.grep=function(q,e){return(a.filterPolyfill||Array.prototype.filter).call(q,e)};a.find=Array.prototype.find?function(a,e){return a.find(e)}:function(a,e){var g,t=a.length;for(g=0;g<t;g++)if(e(a[g],g))return a[g]};a.map=function(a,e){for(var g=[],t=0,l=a.length;t<l;t++)g[t]=e.call(a[t],a[t],t,a);return g};a.reduce=function(q,e,g){return(a.reducePolyfill||Array.prototype.reduce).call(q,e,g)};a.offset=function(a){var e=E.documentElement;
a=a.getBoundingClientRect();return{top:a.top+(C.pageYOffset||e.scrollTop)-(e.clientTop||0),left:a.left+(C.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}};a.stop=function(a,e){for(var g=z.length;g--;)z[g].elem!==a||e&&e!==z[g].prop||(z[g].stopped=!0)};a.each=function(q,e,g){return(a.forEachPolyfill||Array.prototype.forEach).call(q,e,g)};a.objectEach=function(a,e,g){for(var t in a)a.hasOwnProperty(t)&&e.call(g,a[t],t,a)};a.addEvent=function(q,e,g){var t=q.hcEvents=q.hcEvents||{},l=q.addEventListener||
a.addEventListenerPolyfill;l&&l.call(q,e,g,!1);t[e]||(t[e]=[]);t[e].push(g);return function(){a.removeEvent(q,e,g)}};a.removeEvent=function(q,e,g){function t(d,f){var c=q.removeEventListener||a.removeEventListenerPolyfill;c&&c.call(q,d,f,!1)}function l(){var k,f;q.nodeName&&(e?(k={},k[e]=!0):k=d,a.objectEach(k,function(a,b){if(d[b])for(f=d[b].length;f--;)t(b,d[b][f])}))}var n,d=q.hcEvents,k;d&&(e?(n=d[e]||[],g?(k=a.inArray(g,n),-1<k&&(n.splice(k,1),d[e]=n),t(e,g)):(l(),d[e]=[])):(l(),q.hcEvents={}))};
a.fireEvent=function(q,e,g,t){var l;l=q.hcEvents;var n,d;g=g||{};if(E.createEvent&&(q.dispatchEvent||q.fireEvent))l=E.createEvent("Events"),l.initEvent(e,!0,!0),a.extend(l,g),q.dispatchEvent?q.dispatchEvent(l):q.fireEvent(e,l);else if(l)for(l=l[e]||[],n=l.length,g.target||a.extend(g,{preventDefault:function(){g.defaultPrevented=!0},target:q,type:e}),e=0;e<n;e++)(d=l[e])&&!1===d.call(q,g)&&g.preventDefault();t&&!g.defaultPrevented&&t(g)};a.animate=function(q,e,g){var t,l="",n,d,k;a.isObject(g)||(k=
arguments,g={duration:k[2],easing:k[3],complete:k[4]});a.isNumber(g.duration)||(g.duration=400);g.easing="function"===typeof g.easing?g.easing:Math[g.easing]||Math.easeInOutSine;g.curAnim=a.merge(e);a.objectEach(e,function(k,f){a.stop(q,f);d=new a.Fx(q,g,f);n=null;"d"===f?(d.paths=d.initPath(q,q.d,e.d),d.toD=e.d,t=0,n=1):q.attr?t=q.attr(f):(t=parseFloat(a.getStyle(q,f))||0,"opacity"!==f&&(l="px"));n||(n=k);n&&n.match&&n.match("px")&&(n=n.replace(/px/g,""));d.run(t,n,l)})};a.seriesType=function(q,
e,g,t,l){var n=a.getOptions(),d=a.seriesTypes;n.plotOptions[q]=a.merge(n.plotOptions[e],g);d[q]=a.extendClass(d[e]||function(){},t);d[q].prototype.type=q;l&&(d[q].prototype.pointClass=a.extendClass(a.Point,l));return d[q]};a.uniqueKey=function(){var a=Math.random().toString(36).substring(2,9),e=0;return function(){return"highcharts-"+a+"-"+e++}}();C.jQuery&&(C.jQuery.fn.highcharts=function(){var q=[].slice.call(arguments);if(this[0])return q[0]?(new (a[a.isString(q[0])?q.shift():"Chart"])(this[0],
q[0],q[1]),this):A[a.attr(this[0],"data-highcharts-chart")]})})(L);(function(a){var z=a.each,A=a.isNumber,E=a.map,C=a.merge,q=a.pInt;a.Color=function(e){if(!(this instanceof a.Color))return new a.Color(e);this.init(e)};a.Color.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(a){return[q(a[1]),q(a[2]),q(a[3]),parseFloat(a[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[q(a[1]),
q(a[2]),q(a[3]),1]}}],names:{none:"rgba(255,255,255,0)",white:"#ffffff",black:"#000000"},init:function(e){var g,t,l,n;if((this.input=e=this.names[e&&e.toLowerCase?e.toLowerCase():""]||e)&&e.stops)this.stops=E(e.stops,function(d){return new a.Color(d[1])});else if(e&&e.charAt&&"#"===e.charAt()&&(g=e.length,e=parseInt(e.substr(1),16),7===g?t=[(e&16711680)>>16,(e&65280)>>8,e&255,1]:4===g&&(t=[(e&3840)>>4|(e&3840)>>8,(e&240)>>4|e&240,(e&15)<<4|e&15,1])),!t)for(l=this.parsers.length;l--&&!t;)n=this.parsers[l],
(g=n.regex.exec(e))&&(t=n.parse(g));this.rgba=t||[]},get:function(a){var g=this.input,e=this.rgba,l;this.stops?(l=C(g),l.stops=[].concat(l.stops),z(this.stops,function(e,d){l.stops[d]=[l.stops[d][0],e.get(a)]})):l=e&&A(e[0])?"rgb"===a||!a&&1===e[3]?"rgb("+e[0]+","+e[1]+","+e[2]+")":"a"===a?e[3]:"rgba("+e.join(",")+")":g;return l},brighten:function(a){var e,t=this.rgba;if(this.stops)z(this.stops,function(e){e.brighten(a)});else if(A(a)&&0!==a)for(e=0;3>e;e++)t[e]+=q(255*a),0>t[e]&&(t[e]=0),255<t[e]&&
(t[e]=255);return this},setOpacity:function(a){this.rgba[3]=a;return this},tweenTo:function(a,g){var e=this.rgba,l=a.rgba;l.length&&e&&e.length?(a=1!==l[3]||1!==e[3],g=(a?"rgba(":"rgb(")+Math.round(l[0]+(e[0]-l[0])*(1-g))+","+Math.round(l[1]+(e[1]-l[1])*(1-g))+","+Math.round(l[2]+(e[2]-l[2])*(1-g))+(a?","+(l[3]+(e[3]-l[3])*(1-g)):"")+")"):g=a.input||"none";return g}};a.color=function(e){return new a.Color(e)}})(L);(function(a){var z,A,E=a.addEvent,C=a.animate,q=a.attr,e=a.charts,g=a.color,t=a.css,
l=a.createElement,n=a.defined,d=a.deg2rad,k=a.destroyObjectProperties,v=a.doc,f=a.each,c=a.extend,b=a.erase,p=a.grep,m=a.hasTouch,F=a.inArray,H=a.isArray,x=a.isFirefox,I=a.isMS,u=a.isObject,G=a.isString,w=a.isWebKit,D=a.merge,y=a.noop,K=a.objectEach,h=a.pick,r=a.pInt,O=a.removeEvent,J=a.splat,B=a.stop,N=a.svg,T=a.SVG_NS,Q=a.symbolSizes,P=a.win;z=a.SVGElement=function(){return this};c(z.prototype,{opacity:1,SVG_NS:T,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline".split(" "),
init:function(a,h){this.element="span"===h?l(h):v.createElementNS(this.SVG_NS,h);this.renderer=a},animate:function(M,r,b){r=a.animObject(h(r,this.renderer.globalAnimation,!0));0!==r.duration?(b&&(r.complete=b),C(this,M,r)):(this.attr(M,null,b),r.step&&r.step.call(this));return this},colorGradient:function(h,r,b){var M=this.renderer,c,d,B,m,p,e,k,w,g,R,y=[],J;h.radialGradient?d="radialGradient":h.linearGradient&&(d="linearGradient");d&&(B=h[d],p=M.gradients,k=h.stops,R=b.radialReference,H(B)&&(h[d]=
B={x1:B[0],y1:B[1],x2:B[2],y2:B[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===d&&R&&!n(B.gradientUnits)&&(m=B,B=D(B,M.getRadialAttr(R,m),{gradientUnits:"userSpaceOnUse"})),K(B,function(a,h){"id"!==h&&y.push(h,a)}),K(k,function(a){y.push(a)}),y=y.join(","),p[y]?R=p[y].attr("id"):(B.id=R=a.uniqueKey(),p[y]=e=M.createElement(d).attr(B).add(M.defs),e.radAttr=m,e.stops=[],f(k,function(h){0===h[1].indexOf("rgba")?(c=a.color(h[1]),w=c.get("rgb"),g=c.get("a")):(w=h[1],g=1);h=M.createElement("stop").attr({offset:h[0],
"stop-color":w,"stop-opacity":g}).add(e);e.stops.push(h)})),J="url("+M.url+"#"+R+")",b.setAttribute(r,J),b.gradient=y,h.toString=function(){return J})},applyTextOutline:function(h){var r=this.element,M,c,d,B,p;-1!==h.indexOf("contrast")&&(h=h.replace(/contrast/g,this.renderer.getContrast(r.style.fill)));h=h.split(" ");c=h[h.length-1];if((d=h[0])&&"none"!==d&&a.svg){this.fakeTS=!0;h=[].slice.call(r.getElementsByTagName("tspan"));this.ySetter=this.xSetter;d=d.replace(/(^[\d\.]+)(.*?)$/g,function(a,
h,r){return 2*h+r});for(p=h.length;p--;)M=h[p],"highcharts-text-outline"===M.getAttribute("class")&&b(h,r.removeChild(M));B=r.firstChild;f(h,function(a,h){0===h&&(a.setAttribute("x",r.getAttribute("x")),h=r.getAttribute("y"),a.setAttribute("y",h||0),null===h&&r.setAttribute("y",0));a=a.cloneNode(1);q(a,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":d,"stroke-linejoin":"round"});r.insertBefore(a,B)})}},attr:function(a,h,r,b){var M,c=this.element,f,d=this,p,m;"string"===typeof a&&
void 0!==h&&(M=a,a={},a[M]=h);"string"===typeof a?d=(this[a+"Getter"]||this._defaultGetter).call(this,a,c):(K(a,function(h,r){p=!1;b||B(this,r);this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(r)&&(f||(this.symbolAttr(a),f=!0),p=!0);!this.rotation||"x"!==r&&"y"!==r||(this.doTransform=!0);p||(m=this[r+"Setter"]||this._defaultSetter,m.call(this,h,r,c))},this),this.afterSetters());r&&r();return d},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=
!1)},addClass:function(a,h){var r=this.attr("class")||"";-1===r.indexOf(a)&&(h||(a=(r+(r?" ":"")+a).replace("  "," ")),this.attr("class",a));return this},hasClass:function(a){return-1!==F(a,(this.attr("class")||"").split(" "))},removeClass:function(a){return this.attr("class",(this.attr("class")||"").replace(a,""))},symbolAttr:function(a){var r=this;f("x y r start end width height innerR anchorX anchorY".split(" "),function(b){r[b]=h(a[b],r[b])});r.attr({d:r.renderer.symbols[r.symbolName](r.x,r.y,
r.width,r.height,r)})},clip:function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a,h){var r=this,b={},c;h=h||a.strokeWidth||0;c=Math.round(h)%2/2;a.x=Math.floor(a.x||r.x||0)+c;a.y=Math.floor(a.y||r.y||0)+c;a.width=Math.floor((a.width||r.width||0)-2*c);a.height=Math.floor((a.height||r.height||0)-2*c);n(a.strokeWidth)&&(a.strokeWidth=h);K(a,function(a,h){r[h]!==a&&(r[h]=b[h]=a)});return b},css:function(a){var h=this.styles,b={},f=this.element,M,d=
"",B,p=!h,m=["textOutline","textOverflow","width"];a&&a.color&&(a.fill=a.color);h&&K(a,function(a,r){a!==h[r]&&(b[r]=a,p=!0)});p&&(h&&(a=c(h,b)),M=this.textWidth=a&&a.width&&"auto"!==a.width&&"text"===f.nodeName.toLowerCase()&&r(a.width),this.styles=a,M&&!N&&this.renderer.forExport&&delete a.width,I&&!N?t(this.element,a):(B=function(a,h){return"-"+h.toLowerCase()},K(a,function(a,h){-1===F(h,m)&&(d+=h.replace(/([A-Z])/g,B)+":"+a+";")}),d&&q(f,"style",d)),this.added&&("text"===this.element.nodeName&&
this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline)));return this},getStyle:function(a){return P.getComputedStyle(this.element||this,"").getPropertyValue(a)},strokeWidth:function(){var a=this.getStyle("stroke-width"),h;a.indexOf("px")===a.length-2?a=r(a):(h=v.createElementNS(T,"rect"),q(h,{width:a,"stroke-width":0}),this.element.parentNode.appendChild(h),a=h.getBBox().width,h.parentNode.removeChild(h));return a},on:function(a,h){var r=this,b=r.element;m&&"click"===
a?(b.ontouchstart=function(a){r.touchEventFired=Date.now();a.preventDefault();h.call(b,a)},b.onclick=function(a){(-1===P.navigator.userAgent.indexOf("Android")||1100<Date.now()-(r.touchEventFired||0))&&h.call(b,a)}):b["on"+a]=h;return this},setRadialReference:function(a){var h=this.renderer.gradients[this.element.gradient];this.element.radialReference=a;h&&h.radAttr&&h.animate(this.renderer.getRadialAttr(a,h.radAttr));return this},translate:function(a,h){return this.attr({translateX:a,translateY:h})},
invert:function(a){this.inverted=a;this.updateTransform();return this},updateTransform:function(){var a=this.translateX||0,r=this.translateY||0,b=this.scaleX,c=this.scaleY,f=this.inverted,d=this.rotation,B=this.matrix,p=this.element;f&&(a+=this.width,r+=this.height);a=["translate("+a+","+r+")"];n(B)&&a.push("matrix("+B.join(",")+")");f?a.push("rotate(90) scale(-1,1)"):d&&a.push("rotate("+d+" "+h(this.rotationOriginX,p.getAttribute("x"),0)+" "+h(this.rotationOriginY,p.getAttribute("y")||0)+")");(n(b)||
n(c))&&a.push("scale("+h(b,1)+" "+h(c,1)+")");a.length&&p.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,r,c){var f,d,B,M,p={};d=this.renderer;B=d.alignedObjects;var m,e;if(a){if(this.alignOptions=a,this.alignByTranslate=r,!c||G(c))this.alignTo=f=c||"renderer",b(B,this),B.push(this),c=null}else a=this.alignOptions,r=this.alignByTranslate,f=this.alignTo;c=h(c,d[f],d);f=a.align;d=a.verticalAlign;B=(c.x||0)+(a.x||
0);M=(c.y||0)+(a.y||0);"right"===f?m=1:"center"===f&&(m=2);m&&(B+=(c.width-(a.width||0))/m);p[r?"translateX":"x"]=Math.round(B);"bottom"===d?e=1:"middle"===d&&(e=2);e&&(M+=(c.height-(a.height||0))/e);p[r?"translateY":"y"]=Math.round(M);this[this.placed?"animate":"attr"](p);this.placed=!0;this.alignAttr=p;return this},getBBox:function(a,r){var b,B=this.renderer,M,p=this.element,m=this.styles,e,k=this.textStr,w,g=B.cache,y=B.cacheKeys,J;r=h(r,this.rotation);M=r*d;e=p&&z.prototype.getStyle.call(p,"font-size");
void 0!==k&&(J=k.toString(),-1===J.indexOf("\x3c")&&(J=J.replace(/[0-9]/g,"0")),J+=["",r||0,e,m&&m.width,m&&m.textOverflow].join());J&&!a&&(b=g[J]);if(!b){if(p.namespaceURI===this.SVG_NS||B.forExport){try{(w=this.fakeTS&&function(a){f(p.querySelectorAll(".highcharts-text-outline"),function(h){h.style.display=a})})&&w("none"),b=p.getBBox?c({},p.getBBox()):{width:p.offsetWidth,height:p.offsetHeight},w&&w("")}catch(V){}if(!b||0>b.width)b={width:0,height:0}}else b=this.htmlGetBBox();B.isSVG&&(a=b.width,
B=b.height,m&&"11px"===m.fontSize&&17===Math.round(B)&&(b.height=B=14),r&&(b.width=Math.abs(B*Math.sin(M))+Math.abs(a*Math.cos(M)),b.height=Math.abs(B*Math.cos(M))+Math.abs(a*Math.sin(M))));if(J&&0<b.height){for(;250<y.length;)delete g[y.shift()];g[J]||y.push(J);g[J]=b}}return b},show:function(a){return this.attr({visibility:a?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var h=this;h.animate({opacity:0},{duration:a||150,complete:function(){h.attr({y:-9999})}})},
add:function(a){var h=this.renderer,r=this.element,b;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;void 0!==this.textStr&&h.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)b=this.zIndexSetter();b||(a?a.element:h.box).appendChild(r);if(this.onAdd)this.onAdd();return this},safeRemoveChild:function(a){var h=a.parentNode;h&&h.removeChild(a)},destroy:function(){var a=this,h=a.element||{},r=a.renderer.isSVG&&"SPAN"===h.nodeName&&a.parentGroup,c=h.ownerSVGElement;h.onclick=h.onmouseout=
h.onmouseover=h.onmousemove=h.point=null;B(a);a.clipPath&&c&&(f(c.querySelectorAll("[clip-path]"),function(h){-1<h.getAttribute("clip-path").indexOf(a.clipPath.element.id+")")&&h.removeAttribute("clip-path")}),a.clipPath=a.clipPath.destroy());if(a.stops){for(c=0;c<a.stops.length;c++)a.stops[c]=a.stops[c].destroy();a.stops=null}for(a.safeRemoveChild(h);r&&r.div&&0===r.div.childNodes.length;)h=r.parentGroup,a.safeRemoveChild(r.div),delete r.div,r=h;a.alignTo&&b(a.renderer.alignedObjects,a);K(a,function(h,
r){delete a[r]});return null},xGetter:function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)},_defaultGetter:function(a){a=h(this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a},dSetter:function(a,h,r){a&&a.join&&(a=a.join(" "));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[h]!==a&&(r.setAttribute(h,a),this[h]=a)},alignSetter:function(a){this.element.setAttribute("text-anchor",{left:"start",
center:"middle",right:"end"}[a])},opacitySetter:function(a,h,r){this[h]=a;r.setAttribute(h,a)},titleSetter:function(a){var r=this.element.getElementsByTagName("title")[0];r||(r=v.createElementNS(this.SVG_NS,"title"),this.element.appendChild(r));r.firstChild&&r.removeChild(r.firstChild);r.appendChild(v.createTextNode(String(h(a),"").replace(/<[^>]*>/g,"")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,h,
r){"string"===typeof a?r.setAttribute(h,a):a&&this.colorGradient(a,h,r)},visibilitySetter:function(a,h,r){"inherit"===a?r.removeAttribute(h):this[h]!==a&&r.setAttribute(h,a);this[h]=a},zIndexSetter:function(a,h){var b=this.renderer,c=this.parentGroup,f=(c||b).element||b.box,B,d=this.element,p,m,b=f===b.box;B=this.added;var e;n(a)&&(d.zIndex=a,a=+a,this[h]===a&&(B=!1),this[h]=a);if(B){(a=this.zIndex)&&c&&(c.handleZ=!0);h=f.childNodes;for(e=h.length-1;0<=e&&!p;e--)if(c=h[e],B=c.zIndex,m=!n(B),c!==d)if(0>
a&&m&&!b&&!e)f.insertBefore(d,h[e]),p=!0;else if(r(B)<=a||m&&(!n(a)||0<=a))f.insertBefore(d,h[e+1]||null),p=!0;p||(f.insertBefore(d,h[b?3:0]||null),p=!0)}return p},_defaultSetter:function(a,h,r){r.setAttribute(h,a)}});z.prototype.yGetter=z.prototype.xGetter;z.prototype.translateXSetter=z.prototype.translateYSetter=z.prototype.rotationSetter=z.prototype.verticalAlignSetter=z.prototype.rotationOriginXSetter=z.prototype.rotationOriginYSetter=z.prototype.scaleXSetter=z.prototype.scaleYSetter=z.prototype.matrixSetter=
function(a,h){this[h]=a;this.doTransform=!0};A=a.SVGRenderer=function(){this.init.apply(this,arguments)};c(A.prototype,{Element:z,SVG_NS:T,init:function(a,h,r,b,c,f){var B;b=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"});B=b.element;a.appendChild(B);-1===a.innerHTML.indexOf("xmlns")&&q(B,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=B;this.boxWrapper=b;this.alignedObjects=[];this.url=(x||w)&&v.getElementsByTagName("base").length?P.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,
"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(v.createTextNode("Created with Highcharts 6.0.1"));this.defs=this.createElement("defs").add();this.allowHTML=f;this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(h,r,!1);var d;x&&a.getBoundingClientRect&&(h=function(){t(a,{left:0,top:0});d=a.getBoundingClientRect();t(a,{left:Math.ceil(d.left)-d.left+"px",top:Math.ceil(d.top)-d.top+"px"})},h(),this.unSubPixelFix=
E(P,"resize",h))},definition:function(a){function h(a,b){var c;f(J(a),function(a){var f=r.createElement(a.tagName),B={};K(a,function(a,h){"tagName"!==h&&"children"!==h&&"textContent"!==h&&(B[h]=a)});f.attr(B);f.add(b||r.defs);a.textContent&&f.element.appendChild(v.createTextNode(a.textContent));h(a.children||[],f);c=f});return c}var r=this;return h(a)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();
k(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var h=new this.Element;h.init(this,a);return h},draw:y,getRadialAttr:function(a,h){return{cx:a[0]-a[2]/2+h.cx*a[2],cy:a[1]-a[2]/2+h.cy*a[2],r:h.r*a[2]}},getSpanWidth:function(a,h){var r=a.getBBox(!0).width;!N&&this.forExport&&(r=this.measureSpanWidth(h.firstChild.data,a.styles));return r},applyEllipsis:function(a,h,r,b){var c=a.rotation,
f=r,B,d=0,p=r.length,m=function(a){h.removeChild(h.firstChild);a&&h.appendChild(v.createTextNode(a))},e;a.rotation=0;f=this.getSpanWidth(a,h);if(e=f>b){for(;d<=p;)B=Math.ceil((d+p)/2),f=r.substring(0,B)+"\u2026",m(f),f=this.getSpanWidth(a,h),d===p?d=p+1:f>b?p=B-1:d=B;0===p&&m("")}a.rotation=c;return e},escapes:{"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;","'":"\x26#39;",'"':"\x26quot"},buildText:function(a){var b=a.element,c=this,B=c.forExport,d=h(a.textStr,"").toString(),m=-1!==d.indexOf("\x3c"),
e=b.childNodes,k,w,g,y,J=q(b,"x"),D=a.styles,u=a.textWidth,n=D&&D.lineHeight,x=D&&D.textOutline,O=D&&"ellipsis"===D.textOverflow,M=D&&"nowrap"===D.whiteSpace,F,l=e.length,I=u&&!a.added&&this.box,G=function(a){return n?r(n):c.fontMetrics(void 0,a.getAttribute("style")?a:b).h},Q=function(a){K(c.escapes,function(h,r){a=a.replace(new RegExp(h,"g"),r)});return a},D=[d,O,M,n,x,D&&D.fontSize,u].join();if(D!==a.textCache){for(a.textCache=D;l--;)b.removeChild(e[l]);m||x||O||u||-1!==d.indexOf(" ")?(k=/<.*class="([^"]+)".*>/,
w=/<.*style="([^"]+)".*>/,g=/<.*href="([^"]+)".*>/,I&&I.appendChild(b),d=m?d.replace(/<(b|strong)>/g,'\x3cspan class\x3d"highcharts-strong"\x3e').replace(/<(i|em)>/g,'\x3cspan class\x3d"highcharts-emphasized"\x3e').replace(/<a/g,"\x3cspan").replace(/<\/(b|strong|i|em|a)>/g,"\x3c/span\x3e").split(/<br.*?>/g):[d],d=p(d,function(a){return""!==a}),f(d,function(h,r){var d,p=0;h=h.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||\x3cspan").replace(/<\/span>/g,"\x3c/span\x3e|||");d=h.split("|||");f(d,function(h){if(""!==
h||1===d.length){var f={},m=v.createElementNS(c.SVG_NS,"tspan"),e,D;k.test(h)&&(e=h.match(k)[1],q(m,"class",e));w.test(h)&&(D=h.match(w)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),q(m,"style",D));g.test(h)&&!B&&(q(m,"onclick",'location.href\x3d"'+h.match(g)[1]+'"'),q(m,"class","highcharts-anchor"));h=Q(h.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" ");if(" "!==h){m.appendChild(v.createTextNode(h));p?f.dx=0:r&&null!==J&&(f.x=J);q(m,f);b.appendChild(m);!p&&F&&(!N&&B&&t(m,{display:"block"}),q(m,"dy",G(m)));
if(u){f=h.replace(/([^\^])-/g,"$1- ").split(" ");e=1<d.length||r||1<f.length&&!M;var n=[],x,I=G(m),l=a.rotation;for(O&&(y=c.applyEllipsis(a,m,h,u));!O&&e&&(f.length||n.length);)a.rotation=0,x=c.getSpanWidth(a,m),h=x>u,void 0===y&&(y=h),h&&1!==f.length?(m.removeChild(m.firstChild),n.unshift(f.pop())):(f=n,n=[],f.length&&!M&&(m=v.createElementNS(T,"tspan"),q(m,{dy:I,x:J}),D&&q(m,"style",D),b.appendChild(m)),x>u&&(u=x)),f.length&&m.appendChild(v.createTextNode(f.join(" ").replace(/- /g,"-")));a.rotation=
l}p++}}});F=F||b.childNodes.length}),y&&a.attr("title",a.textStr),I&&I.removeChild(b),x&&a.applyTextOutline&&a.applyTextOutline(x)):b.appendChild(v.createTextNode(Q(d)))}},getContrast:function(a){a=g(a).rgba;return 510<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"},button:function(a,h,r,b,c,f,d,B,m){var p=this.label(a,h,r,m,null,null,null,null,"button"),e=0;p.attr(D({padding:8,r:2},c));E(p.element,I?"mouseover":"mouseenter",function(){3!==e&&p.setState(1)});E(p.element,I?"mouseout":"mouseleave",function(){3!==
e&&p.setState(e)});p.setState=function(a){1!==a&&(p.state=e=a);p.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0])};return p.on("click",function(a){3!==e&&b.call(p,a)})},crispLine:function(a,h){a[1]===a[4]&&(a[1]=a[4]=Math.round(a[1])-h%2/2);a[2]===a[5]&&(a[2]=a[5]=Math.round(a[2])+h%2/2);return a},path:function(a){var h={};H(a)?h.d=a:u(a)&&c(h,a);return this.createElement("path").attr(h)},circle:function(a,
h,r){a=u(a)?a:{x:a,y:h,r:r};h=this.createElement("circle");h.xSetter=h.ySetter=function(a,h,r){r.setAttribute("c"+h,a)};return h.attr(a)},arc:function(a,h,r,b,c,f){u(a)?(b=a,h=b.y,r=b.r,a=b.x):b={innerR:b,start:c,end:f};a=this.symbol("arc",a,h,r,r,b);a.r=r;return a},rect:function(a,h,r,b,c,f){c=u(a)?a.r:c;f=this.createElement("rect");a=u(a)?a:void 0===a?{}:{x:a,y:h,width:Math.max(r,0),height:Math.max(b,0)};c&&(a.r=c);f.rSetter=function(a,h,r){q(r,{rx:a,ry:a})};return f.attr(a)},setSize:function(a,
r,b){var c=this.alignedObjects,f=c.length;this.width=a;this.height=r;for(this.boxWrapper.animate({width:a,height:r},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:h(b,!0)?void 0:0});f--;)c[f].align()},g:function(a){var h=this.createElement("g");return a?h.attr({"class":"highcharts-"+a}):h},image:function(a,h,r,b,f){var d={preserveAspectRatio:"none"};1<arguments.length&&c(d,{x:h,y:r,width:b,height:f});d=this.createElement("image").attr(d);d.element.setAttributeNS?
d.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):d.element.setAttribute("hc-svg-href",a);return d},symbol:function(a,r,b,d,B,p){var m=this,k,w=/^url\((.*?)\)$/,g=w.test(a),y=!g&&(this.symbols[a]?a:"circle"),J=y&&this.symbols[y],D=n(r)&&J&&J.call(this.symbols,Math.round(r),Math.round(b),d,B,p),u,x;J?(k=this.path(D),c(k,{symbolName:y,x:r,y:b,width:d,height:B}),p&&c(k,p)):g&&(u=a.match(w)[1],k=this.image(u),k.imgwidth=h(Q[u]&&Q[u].width,p&&p.width),k.imgheight=h(Q[u]&&Q[u].height,p&&
p.height),x=function(){k.attr({width:k.width,height:k.height})},f(["width","height"],function(a){k[a+"Setter"]=function(a,h){var r={},b=this["img"+h],c="width"===h?"translateX":"translateY";this[h]=a;n(b)&&(this.element&&this.element.setAttribute(h,b),this.alignByTranslate||(r[c]=((this[h]||0)-b)/2,this.attr(r)))}}),n(r)&&k.attr({x:r,y:b}),k.isImg=!0,n(k.imgwidth)&&n(k.imgheight)?x():(k.attr({width:0,height:0}),l("img",{onload:function(){var a=e[m.chartIndex];0===this.width&&(t(this,{position:"absolute",
top:"-999em"}),v.body.appendChild(this));Q[u]={width:this.width,height:this.height};k.imgwidth=this.width;k.imgheight=this.height;k.element&&x();this.parentNode&&this.parentNode.removeChild(this);m.imgCount--;if(!m.imgCount&&a&&a.onload)a.onload()},src:u}),this.imgCount++));return k},symbols:{circle:function(a,h,r,b){return this.arc(a+r/2,h+b/2,r/2,b/2,{start:0,end:2*Math.PI,open:!1})},square:function(a,h,r,b){return["M",a,h,"L",a+r,h,a+r,h+b,a,h+b,"Z"]},triangle:function(a,h,r,b){return["M",a+r/
2,h,"L",a+r,h+b,a,h+b,"Z"]},"triangle-down":function(a,h,r,b){return["M",a,h,"L",a+r,h,a+r/2,h+b,"Z"]},diamond:function(a,h,r,b){return["M",a+r/2,h,"L",a+r,h+b/2,a+r/2,h+b,a,h+b/2,"Z"]},arc:function(a,r,b,c,f){var d=f.start,B=f.r||b,p=f.r||c||b,m=f.end-.001;b=f.innerR;c=h(f.open,.001>Math.abs(f.end-f.start-2*Math.PI));var e=Math.cos(d),k=Math.sin(d),w=Math.cos(m),m=Math.sin(m);f=.001>f.end-d-Math.PI?0:1;B=["M",a+B*e,r+p*k,"A",B,p,0,f,1,a+B*w,r+p*m];n(b)&&B.push(c?"M":"L",a+b*w,r+b*m,"A",b,b,0,f,0,
a+b*e,r+b*k);B.push(c?"":"Z");return B},callout:function(a,h,r,b,c){var f=Math.min(c&&c.r||0,r,b),d=f+6,B=c&&c.anchorX;c=c&&c.anchorY;var p;p=["M",a+f,h,"L",a+r-f,h,"C",a+r,h,a+r,h,a+r,h+f,"L",a+r,h+b-f,"C",a+r,h+b,a+r,h+b,a+r-f,h+b,"L",a+f,h+b,"C",a,h+b,a,h+b,a,h+b-f,"L",a,h+f,"C",a,h,a,h,a+f,h];B&&B>r?c>h+d&&c<h+b-d?p.splice(13,3,"L",a+r,c-6,a+r+6,c,a+r,c+6,a+r,h+b-f):p.splice(13,3,"L",a+r,b/2,B,c,a+r,b/2,a+r,h+b-f):B&&0>B?c>h+d&&c<h+b-d?p.splice(33,3,"L",a,c+6,a-6,c,a,c-6,a,h+f):p.splice(33,3,
"L",a,b/2,B,c,a,b/2,a,h+f):c&&c>b&&B>a+d&&B<a+r-d?p.splice(23,3,"L",B+6,h+b,B,h+b+6,B-6,h+b,a+f,h+b):c&&0>c&&B>a+d&&B<a+r-d&&p.splice(3,3,"L",B-6,h,B,h-6,B+6,h,r-f,h);return p}},clipRect:function(h,r,b,c){var f=a.uniqueKey(),d=this.createElement("clipPath").attr({id:f}).add(this.defs);h=this.rect(h,r,b,c,0).add(d);h.id=f;h.clipPath=d;h.count=0;return h},text:function(a,h,r,b){var c={};if(b&&(this.allowHTML||!this.forExport))return this.html(a,h,r);c.x=Math.round(h||0);r&&(c.y=Math.round(r));if(a||
0===a)c.text=a;a=this.createElement("text").attr(c);b||(a.xSetter=function(a,h,r){var b=r.getElementsByTagName("tspan"),c,f=r.getAttribute(h),d;for(d=0;d<b.length;d++)c=b[d],c.getAttribute(h)===f&&c.setAttribute(h,a);r.setAttribute(h,a)});return a},fontMetrics:function(a,h){a=h&&z.prototype.getStyle.call(h,"font-size");a=/px/.test(a)?r(a):/em/.test(a)?parseFloat(a)*(h?this.fontMetrics(null,h.parentNode).f:16):12;h=24>a?a+3:Math.round(1.2*a);return{h:h,b:Math.round(.8*h),f:a}},rotCorr:function(a,h,
r){var b=a;h&&r&&(b=Math.max(b*Math.cos(h*d),4));return{x:-a/3*Math.sin(h*d),y:b}},label:function(h,r,b,d,B,p,m,e,k){var w=this,g=w.g("button"!==k&&"label"),y=g.text=w.text("",0,0,m).attr({zIndex:1}),J,u,x=0,N=3,F=0,t,I,l,v,q,T={},G,Q=/^url\((.*?)\)$/.test(d),K=Q,H,M,P,R;k&&g.addClass("highcharts-"+k);K=!0;H=function(){return J.strokeWidth()%2/2};M=function(){var a=y.element.style,h={};u=(void 0===t||void 0===I||q)&&n(y.textStr)&&y.getBBox();g.width=(t||u.width||0)+2*N+F;g.height=(I||u.height||0)+
2*N;G=N+w.fontMetrics(a&&a.fontSize,y).b;K&&(J||(g.box=J=w.symbols[d]||Q?w.symbol(d):w.rect(),J.addClass(("button"===k?"":"highcharts-label-box")+(k?" highcharts-"+k+"-box":"")),J.add(g),a=H(),h.x=a,h.y=(e?-G:0)+a),h.width=Math.round(g.width),h.height=Math.round(g.height),J.attr(c(h,T)),T={})};P=function(){var a=F+N,h;h=e?0:G;n(t)&&u&&("center"===q||"right"===q)&&(a+={center:.5,right:1}[q]*(t-u.width));if(a!==y.x||h!==y.y)y.attr("x",a),void 0!==h&&y.attr("y",h);y.x=a;y.y=h};R=function(a,h){J?J.attr(a,
h):T[a]=h};g.onAdd=function(){y.add(g);g.attr({text:h||0===h?h:"",x:r,y:b});J&&n(B)&&g.attr({anchorX:B,anchorY:p})};g.widthSetter=function(h){t=a.isNumber(h)?h:null};g.heightSetter=function(a){I=a};g["text-alignSetter"]=function(a){q=a};g.paddingSetter=function(a){n(a)&&a!==N&&(N=g.padding=a,P())};g.paddingLeftSetter=function(a){n(a)&&a!==F&&(F=a,P())};g.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==x&&(x=a,u&&g.attr({x:l}))};g.textSetter=function(a){void 0!==a&&y.textSetter(a);M();
P()};g["stroke-widthSetter"]=function(a,h){a&&(K=!0);this["stroke-width"]=a;R(h,a)};g.rSetter=function(a,h){R(h,a)};g.anchorXSetter=function(a,h){B=g.anchorX=a;R(h,Math.round(a)-H()-l)};g.anchorYSetter=function(a,h){p=g.anchorY=a;R(h,a-v)};g.xSetter=function(a){g.x=a;x&&(a-=x*((t||u.width)+2*N));l=Math.round(a);g.attr("translateX",l)};g.ySetter=function(a){v=g.y=Math.round(a);g.attr("translateY",v)};var A=g.css;return c(g,{css:function(a){if(a){var h={};a=D(a);f(g.textProps,function(r){void 0!==a[r]&&
(h[r]=a[r],delete a[r])});y.css(h)}return A.call(g,a)},getBBox:function(){return{width:u.width+2*N,height:u.height+2*N,x:u.x-N,y:u.y-N}},destroy:function(){O(g.element,"mouseenter");O(g.element,"mouseleave");y&&(y=y.destroy());J&&(J=J.destroy());z.prototype.destroy.call(g);g=w=M=P=R=null}})}});a.Renderer=A})(L);(function(a){var z=a.attr,A=a.createElement,E=a.css,C=a.defined,q=a.each,e=a.extend,g=a.isFirefox,t=a.isMS,l=a.isWebKit,n=a.pInt,d=a.SVGRenderer,k=a.win,v=a.wrap;e(a.SVGElement.prototype,{htmlCss:function(a){var c=
this.element;if(c=a&&"SPAN"===c.tagName&&a.width)delete a.width,this.textWidth=c,this.updateTransform();a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=e(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,c=this.element,b=this.x||0,d=this.y||0,m=this.textAlign||"left",e={left:0,
center:.5,right:1}[m],k=this.styles;E(c,{marginLeft:this.translateX||0,marginTop:this.translateY||0});this.inverted&&q(c.childNodes,function(b){a.invertChild(b,c)});if("SPAN"===c.tagName){var g=this.rotation,t=n(this.textWidth),u=k&&k.whiteSpace,v=[g,m,c.innerHTML,this.textWidth,this.textAlign].join();v!==this.cTT&&(k=a.fontMetrics(c.style.fontSize).b,C(g)&&this.setSpanRotation(g,e,k),E(c,{width:"",whiteSpace:u||"nowrap"}),c.offsetWidth>t&&/[ \-]/.test(c.textContent||c.innerText)&&E(c,{width:t+"px",
display:"block",whiteSpace:u||"normal"}),this.getSpanCorrection(c.offsetWidth,k,e,g,m));E(c,{left:b+(this.xCorr||0)+"px",top:d+(this.yCorr||0)+"px"});l&&(k=c.offsetHeight);this.cTT=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,c,b){var f={},d=this.renderer.getTransformKey();f[d]=f.transform="rotate("+a+"deg)";f[d+(g?"Origin":"-origin")]=f.transformOrigin=100*c+"% "+b+"px";E(this.element,f)},getSpanCorrection:function(a,c,b){this.xCorr=-a*b;this.yCorr=-c}});e(d.prototype,{getTransformKey:function(){return t&&
!/Edge/.test(k.navigator.userAgent)?"-ms-transform":l?"-webkit-transform":g?"MozTransform":k.opera?"-o-transform":""},html:function(a,c,b){var f=this.createElement("span"),d=f.element,k=f.renderer,g=k.isSVG,n=function(a,b){q(["opacity","visibility"],function(c){v(a,c+"Setter",function(a,c,f,d){a.call(this,c,f,d);b[f]=c})})};f.textSetter=function(a){a!==d.innerHTML&&delete this.bBox;d.innerHTML=this.textStr=a;f.htmlUpdateTransform()};g&&n(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=
function(a,b){"align"===b&&(b="textAlign");f[b]=a;f.htmlUpdateTransform()};f.attr({text:a,x:Math.round(c),y:Math.round(b)}).css({position:"absolute"});d.style.whiteSpace="nowrap";f.css=f.htmlCss;g&&(f.add=function(a){var b,c=k.box.parentNode,m=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)m.push(a),a=a.parentGroup;q(m.reverse(),function(a){function d(h,b){a[b]=h;p[k.getTransformKey()]="translate("+a.x+"px,"+a.y+"px)";a.doTransform=!0}var p,h=z(a.element,"class");h&&(h={className:h});b=a.div=a.div||
A("div",h,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);p=b.style;e(a,{classSetter:function(a){this.element.setAttribute("class",a);b.className=a},on:function(){m[0].div&&f.on.apply({element:m[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});n(a,p)})}}else b=c;b.appendChild(d);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){function z(){var g=
a.defaultOptions.global,t=e.moment;if(g.timezone){if(t)return function(a){return-t.tz(a,g.timezone).utcOffset()};a.error(25)}return g.useUTC&&g.getTimezoneOffset}function A(){var g=a.defaultOptions.global,t,l=g.useUTC,n=l?"getUTC":"get",d=l?"setUTC":"set",k="Minutes Hours Day Date Month FullYear".split(" "),v=k.concat(["Milliseconds","Seconds"]);a.Date=t=g.Date||e.Date;t.hcTimezoneOffset=l&&g.timezoneOffset;t.hcGetTimezoneOffset=z();t.hcMakeTime=function(a,c,b,d,m,k){var f;l?(f=t.UTC.apply(0,arguments),
f+=E(f)):f=(new t(a,c,q(b,1),q(d,0),q(m,0),q(k,0))).getTime();return f};for(g=0;g<k.length;g++)t["hcGet"+k[g]]=n+k[g];for(g=0;g<v.length;g++)t["hcSet"+v[g]]=d+v[g]}var E=a.getTZOffset,C=a.merge,q=a.pick,e=a.win;a.defaultOptions={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:{useUTC:!0},chart:{borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}},width:null,height:null},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},plotOptions:{},labels:{style:{position:"absolute",
color:"#333333"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{},itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{}},loading:{},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:"",padding:8,snap:a.isTouchDevice?25:10,headerFormat:'\x3cspan class\x3d"highcharts-header"\x3e{point.key}\x3c/span\x3e\x3cbr/\x3e',pointFormat:'\x3cspan class\x3d"highcharts-color-{point.colorIndex}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cspan class\x3d"highcharts-strong"\x3e{point.y}\x3c/span\x3e\x3cbr/\x3e'},credits:{enabled:!0,href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",
y:-5},text:"Highcharts.com"}};a.setOptions=function(e){a.defaultOptions=C(!0,a.defaultOptions,e);A();return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;A()})(L);(function(a){var z=a.correctFloat,A=a.defined,E=a.destroyObjectProperties,C=a.isNumber,q=a.pick,e=a.deg2rad;a.Tick=function(a,e,l,n){this.axis=a;this.pos=e;this.type=l||"";this.isNewLabel=this.isNew=!0;l||n||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=
this.axis,e=a.options,l=a.chart,n=a.categories,d=a.names,k=this.pos,v=e.labels,f=a.tickPositions,c=k===f[0],b=k===f[f.length-1],d=n?q(n[k],d[k],k):k,n=this.label,f=f.info,p;a.isDatetimeAxis&&f&&(p=e.dateTimeLabelFormats[f.higherRanks[k]||f.unitName]);this.isFirst=c;this.isLast=b;e=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:b,dateTimeLabelFormat:p,value:a.isLog?z(a.lin2log(d)):d,pos:k});A(n)?n&&n.attr({text:e}):(this.labelLength=(this.label=n=A(e)&&v.enabled?l.renderer.text(e,0,0,v.useHTML).add(a.labelGroup):
null)&&n.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(a){var g=this.axis,l=a.x,n=g.chart.chartWidth,d=g.chart.spacing,k=q(g.labelLeft,Math.min(g.pos,d[3])),d=q(g.labelRight,Math.max(g.pos+g.len,n-d[1])),v=this.label,f=this.rotation,c={left:0,center:.5,right:1}[g.labelAlign],b=v.getBBox().width,p=g.getSlotWidth(),m=p,F=1,H,x={};if(f)0>f&&l-c*b<k?H=Math.round(l/Math.cos(f*e)-k):0<f&&l+c*
b>d&&(H=Math.round((n-l)/Math.cos(f*e)));else if(n=l+(1-c)*b,l-c*b<k?m=a.x+m*(1-c)-k:n>d&&(m=d-a.x+m*c,F=-1),m=Math.min(p,m),m<p&&"center"===g.labelAlign&&(a.x+=F*(p-m-c*(p-Math.min(b,m)))),b>m||g.autoRotation&&(v.styles||{}).width)H=m;H&&(x.width=H,(g.options.labels.style||{}).textOverflow||(x.textOverflow="ellipsis"),v.css(x))},getPosition:function(a,e,l,n){var d=this.axis,k=d.chart,g=n&&k.oldChartHeight||k.chartHeight;return{x:a?d.translate(e+l,null,null,n)+d.transB:d.left+d.offset+(d.opposite?
(n&&k.oldChartWidth||k.chartWidth)-d.right-d.left:0),y:a?g-d.bottom+d.offset-(d.opposite?d.height:0):g-d.translate(e+l,null,null,n)-d.transB}},getLabelPosition:function(a,t,l,n,d,k,v,f){var c=this.axis,b=c.transA,p=c.reversed,m=c.staggerLines,g=c.tickRotCorr||{x:0,y:0},q=d.y;A(q)||(q=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?g.y+8:Math.cos(l.rotation*e)*(g.y-l.getBBox(!1,0).height/2));a=a+d.x+g.x-(k&&n?k*b*(p?-1:1):0);t=t+q-(k&&!n?k*b*(p?1:-1):0);m&&(l=v/(f||1)%m,c.opposite&&(l=m-l-
1),t+=c.labelOffset/m*l);return{x:a,y:Math.round(t)}},getMarkPath:function(a,e,l,n,d,k){return k.crispLine(["M",a,e,"L",a+(d?0:-l),e+(d?l:0)],n)},renderGridLine:function(a,e,l){var g=this.axis,d=this.gridLine,k={},v=this.pos,f=this.type,c=g.tickmarkOffset,b=g.chart.renderer;d||(f||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=d=b.path().attr(k).addClass("highcharts-"+(f?f+"-":"")+"grid-line").add(g.gridGroup));if(!a&&d&&(a=g.getPlotLinePath(v+c,d.strokeWidth()*l,a,!0)))d[this.isNew?"attr":"animate"]({d:a,
opacity:e})},renderMark:function(a,e,l){var g=this.axis,d=g.chart.renderer,k=this.type,v=g.tickSize(k?k+"Tick":"tick"),f=this.mark,c=!f,b=a.x;a=a.y;v&&(g.opposite&&(v[0]=-v[0]),c&&(this.mark=f=d.path().addClass("highcharts-"+(k?k+"-":"")+"tick").add(g.axisGroup)),f[c?"attr":"animate"]({d:this.getMarkPath(b,a,v[0],f.strokeWidth()*l,g.horiz,d),opacity:e}))},renderLabel:function(a,e,l,n){var d=this.axis,k=d.horiz,g=d.options,f=this.label,c=g.labels,b=c.step,p=d.tickmarkOffset,m=!0,F=a.x;a=a.y;f&&C(F)&&
(f.xy=a=this.getLabelPosition(F,a,f,k,c,p,n,b),this.isFirst&&!this.isLast&&!q(g.showFirstLabel,1)||this.isLast&&!this.isFirst&&!q(g.showLastLabel,1)?m=!1:!k||d.isRadial||c.step||c.rotation||e||0===l||this.handleOverflow(a),b&&n%b&&(m=!1),m&&C(a.y)?(a.opacity=l,f[this.isNewLabel?"attr":"animate"](a),this.isNewLabel=!1):(f.attr("y",-9999),this.isNewLabel=!0))},render:function(a,e,l){var g=this.axis,d=g.horiz,k=this.getPosition(d,this.pos,g.tickmarkOffset,e),v=k.x,f=k.y,g=d&&v===g.pos+g.len||!d&&f===
g.pos?-1:1;l=q(l,1);this.isActive=!0;this.renderGridLine(e,l,g);this.renderMark(k,l,g);this.renderLabel(k,e,l,a);this.isNew=!1},destroy:function(){E(this,this.axis)}}})(L);var U=function(a){var z=a.addEvent,A=a.animObject,E=a.arrayMax,C=a.arrayMin,q=a.correctFloat,e=a.defaultOptions,g=a.defined,t=a.deg2rad,l=a.destroyObjectProperties,n=a.each,d=a.extend,k=a.fireEvent,v=a.format,f=a.getMagnitude,c=a.grep,b=a.inArray,p=a.isArray,m=a.isNumber,F=a.isString,H=a.merge,x=a.normalizeTickInterval,I=a.objectEach,
u=a.pick,G=a.removeEvent,w=a.splat,D=a.syncTimeout,y=a.Tick,K=function(){this.init.apply(this,arguments)};a.extend(K.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,labels:{enabled:!0,x:0},minPadding:.01,maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",
title:{align:"middle"},type:"linear"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)}}},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},
defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,r){var h=r.isX,c=this;c.chart=a;c.horiz=a.inverted&&!c.isZAxis?!h:h;c.isXAxis=h;c.coll=c.coll||(h?"xAxis":"yAxis");c.opposite=r.opposite;c.side=r.side||(c.horiz?c.opposite?0:2:c.opposite?1:3);c.setOptions(r);var f=this.options,d=f.type;c.labelFormatter=f.labels.formatter||c.defaultLabelFormatter;c.userOptions=r;c.minPixelPadding=0;c.reversed=f.reversed;c.visible=!1!==f.visible;c.zoomEnabled=!1!==f.zoomEnabled;
c.hasNames="category"===d||!0===f.categories;c.categories=f.categories||c.hasNames;c.names=c.names||[];c.plotLinesAndBandsGroups={};c.isLog="logarithmic"===d;c.isDatetimeAxis="datetime"===d;c.positiveValuesOnly=c.isLog&&!c.allowNegativeLog;c.isLinked=g(f.linkedTo);c.ticks={};c.labelEdge=[];c.minorTicks={};c.plotLinesAndBands=[];c.alternateBands={};c.len=0;c.minRange=c.userMinRange=f.minRange||f.maxZoom;c.range=f.range;c.offset=f.offset||0;c.stacks={};c.oldStacks={};c.stacksTouched=0;c.max=null;c.min=
null;c.crosshair=u(f.crosshair,w(a.options.tooltip.crosshairs)[h?0:1],!1);r=c.options.events;-1===b(c,a.axes)&&(h?a.axes.splice(a.xAxis.length,0,c):a.axes.push(c),a[c.coll].push(c));c.series=c.series||[];a.inverted&&!c.isZAxis&&h&&void 0===c.reversed&&(c.reversed=!0);I(r,function(a,h){z(c,h,a)});c.lin2log=f.linearToLogConverter||c.lin2log;c.isLog&&(c.val2lin=c.log2lin,c.lin2val=c.lin2log)},setOptions:function(a){this.options=H(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,
this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],H(e[this.coll],a))},defaultLabelFormatter:function(){var h=this.axis,r=this.value,b=h.categories,c=this.dateTimeLabelFormat,f=e.lang,d=f.numericSymbols,f=f.numericSymbolMagnitude||1E3,m=d&&d.length,p,k=h.options.labels.format,h=h.isLog?Math.abs(r):h.tickInterval;if(k)p=v(k,this);else if(b)p=r;else if(c)p=a.dateFormat(c,r);else if(m&&1E3<=h)for(;m--&&void 0===p;)b=Math.pow(f,m+1),h>=b&&0===10*r%b&&null!==
d[m]&&0!==r&&(p=a.numberFormat(r/b,-1)+d[m]);void 0===p&&(p=1E4<=Math.abs(r)?a.numberFormat(r,-1):a.numberFormat(r,-1,void 0,""));return p},getSeriesExtremes:function(){var a=this,r=a.chart;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();n(a.series,function(h){if(h.visible||!r.options.chart.ignoreHiddenSeries){var b=h.options,f=b.threshold,d;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=f&&(f=null);if(a.isXAxis)b=h.xData,b.length&&
(h=C(b),m(h)||h instanceof Date||(b=c(b,function(a){return m(a)}),h=C(b)),a.dataMin=Math.min(u(a.dataMin,b[0]),h),a.dataMax=Math.max(u(a.dataMax,b[0]),E(b)));else if(h.getExtremes(),d=h.dataMax,h=h.dataMin,g(h)&&g(d)&&(a.dataMin=Math.min(u(a.dataMin,h),h),a.dataMax=Math.max(u(a.dataMax,d),d)),g(f)&&(a.threshold=f),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})},translate:function(a,r,b,c,f,d){var h=this.linkedParent||this,B=1,e=0,p=c?h.oldTransA:h.transA;c=c?h.oldMin:h.min;var k=h.minPixelPadding;
f=(h.isOrdinal||h.isBroken||h.isLog&&f)&&h.lin2val;p||(p=h.transA);b&&(B*=-1,e=h.len);h.reversed&&(B*=-1,e-=B*(h.sector||h.len));r?(a=(a*B+e-k)/p+c,f&&(a=h.lin2val(a))):(f&&(a=h.val2lin(a)),a=m(c)?B*(a-c)*p+e+B*k+(m(d)?p*d:0):void 0);return a},toPixels:function(a,r){return this.translate(a,!1,!this.horiz,null,!0)+(r?0:this.pos)},toValue:function(a,r){return this.translate(a-(r?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,r,b,c,f){var h=this.chart,d=this.left,B=this.top,p,e,k=b&&
h.oldChartHeight||h.chartHeight,g=b&&h.oldChartWidth||h.chartWidth,w;p=this.transB;var y=function(a,h,r){if(a<h||a>r)c?a=Math.min(Math.max(h,a),r):w=!0;return a};f=u(f,this.translate(a,null,null,b));a=b=Math.round(f+p);p=e=Math.round(k-f-p);m(f)?this.horiz?(p=B,e=k-this.bottom,a=b=y(a,d,d+this.width)):(a=d,b=g-this.right,p=e=y(p,B,B+this.height)):(w=!0,c=!1);return w&&!c?null:h.renderer.crispLine(["M",a,p,"L",b,e],r||1)},getLinearTickPositions:function(a,r,b){var h,c=q(Math.floor(r/a)*a);b=q(Math.ceil(b/
a)*a);var f=[];if(this.single)return[r];for(r=c;r<=b;){f.push(r);r=q(r+a);if(r===h)break;h=r}return f},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?u(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,r=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],d=a.pointRangePadding||0,p=a.min-d,d=a.max+d,e=d-p;if(e&&e/c<a.len/3)if(a.isLog)n(this.paddedTicks,function(h,r,b){r&&f.push.apply(f,a.getLogTickPositions(c,
b[r-1],b[r],!0))});else if(a.isDatetimeAxis&&"auto"===this.getMinorTickInterval())f=f.concat(a.getTimeTicks(a.normalizeTimeTickInterval(c),p,d,r.startOfWeek));else for(r=p+(b[0]-p)%c;r<=d&&r!==f[0];r+=c)f.push(r);0!==f.length&&a.trimTicks(f);return f},adjustForMinRange:function(){var a=this.options,r=this.min,b=this.max,c,f,d,p,e,m,k,w;this.isXAxis&&void 0===this.minRange&&!this.isLog&&(g(a.min)||g(a.max)?this.minRange=null:(n(this.series,function(a){m=a.xData;for(p=k=a.xIncrement?1:m.length-1;0<
p;p--)if(e=m[p]-m[p-1],void 0===d||e<d)d=e}),this.minRange=Math.min(5*d,this.dataMax-this.dataMin)));b-r<this.minRange&&(f=this.dataMax-this.dataMin>=this.minRange,w=this.minRange,c=(w-b+r)/2,c=[r-c,u(a.min,r-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),r=E(c),b=[r+w,u(a.max,r+w)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=C(b),b-r<w&&(c[0]=b-w,c[1]=u(a.min,b-w),r=E(c)));this.min=r;this.max=b},getClosest:function(){var a;this.categories?a=1:n(this.series,function(h){var b=
h.closestPointRange,r=h.visible||!h.chart.options.chart.ignoreHiddenSeries;!h.noSharedTooltip&&g(b)&&r&&(a=g(a)?Math.min(a,b):b)});return a},nameToX:function(a){var h=p(this.categories),c=h?this.categories:this.names,f=a.options.x,d;a.series.requireSorting=!1;g(f)||(f=!1===this.options.uniqueNames?a.series.autoIncrement():b(a.name,c));-1===f?h||(d=c.length):d=f;void 0!==d&&(this.names[d]=a.name);return d},updateNames:function(){var a=this;0<this.names.length&&(this.names.length=0,this.minRange=this.userMinRange,
n(this.series||[],function(h){h.xIncrement=null;if(!h.points||h.isDirtyData)h.processData(),h.generatePoints();n(h.points,function(b,r){var c;b.options&&(c=a.nameToX(b),void 0!==c&&c!==b.x&&(b.x=c,h.xData[r]=c))})}))},setAxisTranslation:function(a){var h=this,b=h.max-h.min,c=h.axisPointRange||0,f,d=0,p=0,e=h.linkedParent,m=!!h.categories,k=h.transA,g=h.isXAxis;if(g||m||c)f=h.getClosest(),e?(d=e.minPointOffset,p=e.pointRangePadding):n(h.series,function(a){var b=m?1:g?u(a.options.pointRange,f,0):h.axisPointRange||
0;a=a.options.pointPlacement;c=Math.max(c,b);h.single||(d=Math.max(d,F(a)?0:b/2),p=Math.max(p,"on"===a?0:b))}),e=h.ordinalSlope&&f?h.ordinalSlope/f:1,h.minPointOffset=d*=e,h.pointRangePadding=p*=e,h.pointRange=Math.min(c,b),g&&(h.closestPointRange=f);a&&(h.oldTransA=k);h.translationSlope=h.transA=k=h.options.staticScale||h.len/(b+p||1);h.transB=h.horiz?h.left:h.bottom;h.minPixelPadding=k*d},minFromRange:function(){return this.max-this.range},setTickInterval:function(h){var b=this,c=b.chart,d=b.options,
p=b.isLog,e=b.log2lin,w=b.isDatetimeAxis,y=b.isXAxis,D=b.isLinked,l=d.maxPadding,F=d.minPadding,v=d.tickInterval,I=d.tickPixelInterval,t=b.categories,G=b.threshold,K=b.softThreshold,H,z,A,C;w||t||D||this.getTickAmount();A=u(b.userMin,d.min);C=u(b.userMax,d.max);D?(b.linkedParent=c[b.coll][d.linkedTo],c=b.linkedParent.getExtremes(),b.min=u(c.min,c.dataMin),b.max=u(c.max,c.dataMax),d.type!==b.linkedParent.options.type&&a.error(11,1)):(!K&&g(G)&&(b.dataMin>=G?(H=G,F=0):b.dataMax<=G&&(z=G,l=0)),b.min=
u(A,H,b.dataMin),b.max=u(C,z,b.dataMax));p&&(b.positiveValuesOnly&&!h&&0>=Math.min(b.min,u(b.dataMin,b.min))&&a.error(10,1),b.min=q(e(b.min),15),b.max=q(e(b.max),15));b.range&&g(b.max)&&(b.userMin=b.min=A=Math.max(b.dataMin,b.minFromRange()),b.userMax=C=b.max,b.range=null);k(b,"foundExtremes");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(t||b.axisPointRange||b.usePercentage||D)&&g(b.min)&&g(b.max)&&(e=b.max-b.min)&&(!g(A)&&F&&(b.min-=e*F),!g(C)&&l&&(b.max+=e*l));m(d.softMin)&&(b.min=
Math.min(b.min,d.softMin));m(d.softMax)&&(b.max=Math.max(b.max,d.softMax));m(d.floor)&&(b.min=Math.max(b.min,d.floor));m(d.ceiling)&&(b.max=Math.min(b.max,d.ceiling));K&&g(b.dataMin)&&(G=G||0,!g(A)&&b.min<G&&b.dataMin>=G?b.min=G:!g(C)&&b.max>G&&b.dataMax<=G&&(b.max=G));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:D&&!v&&I===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:u(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(b.max-b.min)*
I/Math.max(b.len,I));y&&!h&&n(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));h=u(d.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickInterval<h&&(b.tickInterval=h);w||p||v||(b.tickInterval=x(b.tickInterval,null,f(b.tickInterval),
u(d.allowDecimals,!(.5<b.tickInterval&&5>b.tickInterval&&1E3<b.max&&9999>b.max)),!!this.tickAmount));this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var f=a.tickPositioner,d=a.startOnTick,p=a.endOnTick;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===b&&this.tickInterval?this.tickInterval/5:b;this.single=
this.min===this.max&&g(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()]),
this.tickPositions=b,f&&(f=f.apply(this,[this.min,this.max])))&&(this.tickPositions=b=f);this.paddedTicks=b.slice(0);this.trimTicks(b,d,p);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||f||this.adjustTickAmount())},trimTicks:function(a,b,c){var h=a[0],f=a[a.length-1],d=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==h)this.min=h;else for(;this.min-d>a[0];)a.shift();if(c)this.max=f;else for(;this.max+d<a[a.length-1];)a.pop();0===a.length&&g(h)&&a.push((f+h)/2)}},
alignToOthers:function(){var a={},b,c=this.options;!1===this.chart.options.chart.alignTicks||!1===c.alignTicks||this.isLog||n(this.chart[this.coll],function(h){var c=h.options,c=[h.horiz?c.left:c.top,c.width,c.height,c.pane].join();h.series.length&&(a[c]?b=!0:a[c]=1)});return b},getTickAmount:function(){var a=this.options,b=a.tickAmount,c=a.tickPixelInterval;!g(a.tickInterval)&&this.len<c&&!this.isRadial&&!this.isLog&&a.startOnTick&&a.endOnTick&&(b=2);!b&&this.alignToOthers()&&(b=Math.ceil(this.len/
c)+1);4>b&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,f=this.finalTickAmt,d=b&&b.length;if(d<c){for(;b.length<c;)b.push(q(b[b.length-1]+a));this.transA*=(d-1)/(c-1);this.max=b[b.length-1]}else d>c&&(this.tickInterval*=2,this.setTickPositions());if(g(f)){for(a=c=b.length;a--;)(3===f&&1===a%2||2>=f&&0<a&&a<c-1)&&b.splice(a,1);this.finalTickAmt=void 0}},setScale:function(){var a,b;this.oldMin=this.min;this.oldMax=
this.max;this.oldAxisLength=this.len;this.setAxisSize();b=this.len!==this.oldAxisLength;n(this.series,function(b){if(b.isDirtyData||b.isDirty||b.xAxis.isDirty)a=!0});b||a||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=b||this.min!==this.oldMin||
this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks()},setExtremes:function(a,b,c,f,p){var h=this,r=h.chart;c=u(c,!0);n(h.series,function(a){delete a.kdTree});p=d(p,{min:a,max:b});k(h,"setExtremes",p,function(){h.userMin=a;h.userMax=b;h.eventArgs=p;c&&r.redraw(f)})},zoom:function(a,b){var h=this.dataMin,c=this.dataMax,f=this.options,d=Math.min(h,u(f.min,h)),f=Math.max(c,u(f.max,c));if(a!==this.min||b!==this.max)this.allowZoomOutside||(g(h)&&(a<d&&(a=d),a>f&&(a=f)),g(c)&&(b<d&&(b=d),b>f&&(b=
f))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:"zoom"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,f=c.offsets||[0,0,0,0],d=this.horiz,p=this.width=Math.round(a.relativeLength(u(c.width,b.plotWidth-f[3]+f[1]),b.plotWidth)),e=this.height=Math.round(a.relativeLength(u(c.height,b.plotHeight-f[0]+f[2]),b.plotHeight)),m=this.top=Math.round(a.relativeLength(u(c.top,b.plotTop+f[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(u(c.left,
b.plotLeft+f[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-e-m;this.right=b.chartWidth-p-c;this.len=Math.max(d?p:e,0);this.pos=d?c:m},getExtremes:function(){var a=this.isLog,b=this.lin2log;return{min:a?q(b(this.min)):this.min,max:a?q(b(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var b=this.isLog,h=this.lin2log,c=b?h(this.min):this.min,b=b?h(this.max):this.max;null===a?a=c:c>a?a=c:b<a&&(a=b);return this.translate(a,
0,1,0,1)},autoLabelAlign:function(a){a=(u(a,0)-90*this.side+720)%360;return 15<a&&165>a?"right":195<a&&345>a?"left":"center"},tickSize:function(a){var b=this.options,h=b[a+"Length"],c=u(b[a+"Width"],"tick"===a&&this.isXAxis?1:0);if(c&&h)return"inside"===b[a+"Position"]&&(h=-h),[h,c]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=
this.options.labels,b=this.horiz,c=this.tickInterval,f=c,d=this.len/(((this.categories?1:0)+this.max-this.min)/c),p,e=a.rotation,m=this.labelMetrics(),k,w=Number.MAX_VALUE,y,D=function(a){a/=d||1;a=1<a?Math.ceil(a):1;return a*c};b?(y=!a.staggerLines&&!a.step&&(g(e)?[e]:d<u(a.autoRotationLimit,80)&&a.autoRotation))&&n(y,function(a){var b;if(a===e||a&&-90<=a&&90>=a)k=D(Math.abs(m.h/Math.sin(t*a))),b=k+Math.abs(a/360),b<w&&(w=b,p=a,f=k)}):a.step||(f=D(m.h));this.autoRotation=y;this.labelRotation=u(p,
e);return f},getSlotWidth:function(){var a=this.chart,b=this.horiz,c=this.options.labels,f=Math.max(this.tickPositions.length-(this.categories?0:1),1),d=a.margin[3];return b&&2>(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/f||!b&&(c.style&&parseInt(c.style.width,10)||d&&d-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,f=this.ticks,d=this.options.labels,p=this.horiz,e=this.getSlotWidth(),m=Math.max(1,Math.round(e-2*(d.padding||
5))),k={},g=this.labelMetrics(),w=d.style&&d.style.textOverflow,y,u=0,D,x;F(d.rotation)||(k.rotation=d.rotation||0);n(c,function(a){(a=f[a])&&a.labelLength>u&&(u=a.labelLength)});this.maxLabelLength=u;if(this.autoRotation)u>m&&u>g.h?k.rotation=this.labelRotation:this.labelRotation=0;else if(e&&(y={width:m+"px"},!w))for(y.textOverflow="clip",D=c.length;!p&&D--;)if(x=c[D],m=f[x].label)m.styles&&"ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):f[x].labelLength>e&&m.css({width:e+"px"}),
m.getBBox().height>this.len/c.length-(g.h-g.f)&&(m.specCss={textOverflow:"ellipsis"});k.rotation&&(y={width:(u>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight)+"px"},w||(y.textOverflow="ellipsis"));if(this.labelAlign=d.align||this.autoLabelAlign(this.labelRotation))k.align=this.labelAlign;n(c,function(a){var b=(a=f[a])&&a.label;b&&(b.attr(k),y&&b.css(H(y,b.specCss)),delete b.specCss,a.rotation=k.rotation)});this.tickRotCorr=b.rotCorr(g.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||
g(this.min)&&g(this.max)&&!!this.tickPositions},addTitle:function(a){var b=this.chart.renderer,h=this.horiz,c=this.opposite,f=this.options.title,d;this.axisTitle||((d=f.textAlign)||(d=(h?{low:"left",middle:"center",high:"right"}:{low:c?"right":"left",middle:"center",high:c?"left":"right"})[f.align]),this.axisTitle=b.text(f.text,0,0,f.useHTML).attr({zIndex:7,rotation:f.rotation||0,align:d}).addClass("highcharts-axis-title").add(this.axisGroup),this.axisTitle.isNew=!0);this.axisTitle.css({width:this.len});
this.axisTitle[a?"show":"hide"](!0)},generateTick:function(a){var b=this.ticks;b[a]?b[a].addLabel():b[a]=new y(this,a)},getOffset:function(){var a=this,b=a.chart,c=b.renderer,f=a.options,d=a.tickPositions,p=a.ticks,e=a.horiz,m=a.side,k=b.inverted&&!a.isZAxis?[1,0,3,2][m]:m,w,y,D=0,x,l=0,F=f.title,v=f.labels,t=0,q=b.axisOffset,b=b.clipOffset,G=[-1,1,1,-1][m],K=f.className,H=a.axisParent,A=this.tickSize("tick");w=a.hasData();a.showAxis=y=w||u(f.showEmpty,!0);a.staggerLines=a.horiz&&v.staggerLines;a.axisGroup||
(a.gridGroup=c.g("grid").attr({zIndex:f.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(K||"")).add(H),a.axisGroup=c.g("axis").attr({zIndex:f.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(K||"")).add(H),a.labelGroup=c.g("axis-labels").attr({zIndex:v.zIndex||7}).addClass("highcharts-"+a.coll.toLowerCase()+"-labels "+(K||"")).add(H));w||a.isLinked?(n(d,function(b,c){a.generateTick(b,c)}),a.renderUnsquish(),!1===v.reserveSpace||0!==m&&2!==m&&{1:"left",3:"right"}[m]!==
a.labelAlign&&"center"!==a.labelAlign||n(d,function(a){t=Math.max(p[a].getLabelSize(),t)}),a.staggerLines&&(t*=a.staggerLines,a.labelOffset=t*(a.opposite?-1:1))):I(p,function(a,b){a.destroy();delete p[b]});F&&F.text&&!1!==F.enabled&&(a.addTitle(y),y&&!1!==F.reserveSpace&&(a.titleOffset=D=a.axisTitle.getBBox()[e?"height":"width"],x=F.offset,l=g(x)?0:u(F.margin,e?5:10)));a.renderLine();a.offset=G*u(f.offset,q[m]);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};c=0===m?-a.labelMetrics().h:2===m?a.tickRotCorr.y:
0;l=Math.abs(t)+l;t&&(l=l-c+G*(e?u(v.y,a.tickRotCorr.y+8*G):v.x));a.axisTitleMargin=u(x,l);q[m]=Math.max(q[m],a.axisTitleMargin+D+G*a.offset,l,w&&d.length&&A?A[0]+G*a.offset:0);f=f.offset?0:2*Math.floor(a.axisLine.strokeWidth()/2);b[k]=Math.max(b[k],f)},getLinePath:function(a){var b=this.chart,c=this.opposite,h=this.offset,f=this.horiz,d=this.left+(c?this.width:0)+h,h=b.chartHeight-this.bottom-(c?this.height:0)+h;c&&(a*=-1);return b.renderer.crispLine(["M",f?this.left:d,f?h:this.top,"L",f?b.chartWidth-
this.right:d,f?h:b.chartHeight-this.bottom],a)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup))},getTitlePosition:function(){var a=this.horiz,b=this.left,c=this.top,f=this.len,d=this.options.title,p=a?b:c,e=this.opposite,m=this.offset,k=d.x||0,g=d.y||0,w=this.axisTitle,y=this.chart.renderer.fontMetrics(d.style&&d.style.fontSize,w),w=Math.max(w.getBBox(null,0).height-y.h-1,0),f={low:p+(a?0:f),middle:p+f/2,high:p+(a?
f:0)}[d.align],b=(a?c+this.height:b)+(a?1:-1)*(e?-1:1)*this.axisTitleMargin+[-w,w,y.f,-w][this.side];return{x:a?f+k:b+(e?this.width:0)+m+k,y:a?b+g-(e?this.height:0)+m:f+g}},renderMinorTick:function(a){var b=this.chart.hasRendered&&m(this.oldMin),c=this.minorTicks;c[a]||(c[a]=new y(this,a,"minor"));b&&c[a].isNew&&c[a].render(null,!0);c[a].render(null,!1,1)},renderTick:function(a,b){var c=this.isLinked,h=this.ticks,f=this.chart.hasRendered&&m(this.oldMin);if(!c||a>=this.min&&a<=this.max)h[a]||(h[a]=
new y(this,a)),f&&h[a].isNew&&h[a].render(b,!0,.1),h[a].render(b)},render:function(){var b=this,c=b.chart,f=b.options,d=b.isLog,p=b.lin2log,e=b.isLinked,k=b.tickPositions,g=b.axisTitle,w=b.ticks,u=b.minorTicks,x=b.alternateBands,l=f.stackLabels,F=f.alternateGridColor,v=b.tickmarkOffset,t=b.axisLine,q=b.showAxis,G=A(c.renderer.globalAnimation),K,H;b.labelEdge.length=0;b.overlap=!1;n([w,u,x],function(a){I(a,function(a){a.isActive=!1})});if(b.hasData()||e)b.minorTickInterval&&!b.categories&&n(b.getMinorTickPositions(),
function(a){b.renderMinorTick(a)}),k.length&&(n(k,function(a,c){b.renderTick(a,c)}),v&&(0===b.min||b.single)&&(w[-1]||(w[-1]=new y(b,-1,null,!0)),w[-1].render(-1))),F&&n(k,function(h,f){H=void 0!==k[f+1]?k[f+1]+v:b.max-v;0===f%2&&h<b.max&&H<=b.max+(c.polar?-v:v)&&(x[h]||(x[h]=new a.PlotLineOrBand(b)),K=h+v,x[h].options={from:d?p(K):K,to:d?p(H):H,color:F},x[h].render(),x[h].isActive=!0)}),b._addedPlotLB||(n((f.plotLines||[]).concat(f.plotBands||[]),function(a){b.addPlotBandOrLine(a)}),b._addedPlotLB=
!0);n([w,u,x],function(a){var b,h=[],f=G.duration;I(a,function(a,b){a.isActive||(a.render(b,!1,0),a.isActive=!1,h.push(b))});D(function(){for(b=h.length;b--;)a[h[b]]&&!a[h[b]].isActive&&(a[h[b]].destroy(),delete a[h[b]])},a!==x&&c.hasRendered&&f?f:0)});t&&(t[t.isPlaced?"animate":"attr"]({d:this.getLinePath(t.strokeWidth())}),t.isPlaced=!0,t[q?"show":"hide"](!0));g&&q&&(f=b.getTitlePosition(),m(f.y)?(g[g.isNew?"attr":"animate"](f),g.isNew=!1):(g.attr("y",-9999),g.isNew=!0));l&&l.enabled&&b.renderStackTotals();
b.isDirty=!1},redraw:function(){this.visible&&(this.render(),n(this.plotLinesAndBands,function(a){a.render()}));n(this.series,function(a){a.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(a){var c=this,h=c.stacks,f=c.plotLinesAndBands,d;a||G(c);I(h,function(a,b){l(a);h[b]=null});n([c.ticks,c.minorTicks,c.alternateBands],function(a){l(a)});if(f)for(a=f.length;a--;)f[a].destroy();n("stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross".split(" "),
function(a){c[a]&&(c[a]=c[a].destroy())});for(d in c.plotLinesAndBandsGroups)c.plotLinesAndBandsGroups[d]=c.plotLinesAndBandsGroups[d].destroy();I(c,function(a,h){-1===b(h,c.keepProps)&&delete c[h]})},drawCrosshair:function(a,b){var c,h=this.crosshair,f=u(h.snap,!0),d,p=this.cross;a||(a=this.cross&&this.cross.e);this.crosshair&&!1!==(g(b)||!f)?(f?g(b)&&(d=this.isXAxis?b.plotX:this.len-b.plotY):d=a&&(this.horiz?a.chartX-this.pos:this.len-a.chartY+this.pos),g(d)&&(c=this.getPlotLinePath(b&&(this.isXAxis?
b.x:u(b.stackY,b.y)),null,null,null,d)||null),g(c)?(b=this.categories&&!this.isRadial,p||(this.cross=p=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(b?"category ":"thin ")+h.className).attr({zIndex:u(h.zIndex,2)}).add()),p.show().attr({d:c}),b&&!h.width&&p.attr({"stroke-width":this.transA}),this.cross.e=a):this.hideCrosshair()):this.hideCrosshair()},hideCrosshair:function(){this.cross&&this.cross.hide()}});return a.Axis=K}(L);(function(a){var z=a.Axis,A=a.Date,
E=a.dateFormat,C=a.defaultOptions,q=a.defined,e=a.each,g=a.extend,t=a.getMagnitude,l=a.getTZOffset,n=a.normalizeTickInterval,d=a.pick,k=a.timeUnits;z.prototype.getTimeTicks=function(a,f,c,b){var p=[],m={},n=C.global.useUTC,v,x=new A(f-Math.max(l(f),l(c))),t=A.hcMakeTime,u=a.unitRange,G=a.count,w,D;if(q(f)){x[A.hcSetMilliseconds](u>=k.second?0:G*Math.floor(x.getMilliseconds()/G));if(u>=k.second)x[A.hcSetSeconds](u>=k.minute?0:G*Math.floor(x.getSeconds()/G));if(u>=k.minute)x[A.hcSetMinutes](u>=k.hour?
0:G*Math.floor(x[A.hcGetMinutes]()/G));if(u>=k.hour)x[A.hcSetHours](u>=k.day?0:G*Math.floor(x[A.hcGetHours]()/G));if(u>=k.day)x[A.hcSetDate](u>=k.month?1:G*Math.floor(x[A.hcGetDate]()/G));u>=k.month&&(x[A.hcSetMonth](u>=k.year?0:G*Math.floor(x[A.hcGetMonth]()/G)),v=x[A.hcGetFullYear]());if(u>=k.year)x[A.hcSetFullYear](v-v%G);if(u===k.week)x[A.hcSetDate](x[A.hcGetDate]()-x[A.hcGetDay]()+d(b,1));v=x[A.hcGetFullYear]();b=x[A.hcGetMonth]();var y=x[A.hcGetDate](),K=x[A.hcGetHours]();if(A.hcTimezoneOffset||
A.hcGetTimezoneOffset)D=(!n||!!A.hcGetTimezoneOffset)&&(c-f>4*k.month||l(f)!==l(c)),x=x.getTime(),w=l(x),x=new A(x+w);n=x.getTime();for(f=1;n<c;)p.push(n),n=u===k.year?t(v+f*G,0):u===k.month?t(v,b+f*G):!D||u!==k.day&&u!==k.week?D&&u===k.hour?t(v,b,y,K+f*G,0,0,w)-w:n+u*G:t(v,b,y+f*G*(u===k.day?1:7)),f++;p.push(n);u<=k.hour&&1E4>p.length&&e(p,function(a){0===a%18E5&&"000000000"===E("%H%M%S%L",a)&&(m[a]="day")})}p.info=g(a,{higherRanks:m,totalRange:u*G});return p};z.prototype.normalizeTimeTickInterval=
function(a,f){var c=f||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];f=c[c.length-1];var b=k[f[0]],d=f[1],e;for(e=0;e<c.length&&!(f=c[e],b=k[f[0]],d=f[1],c[e+1]&&a<=(b*d[d.length-1]+k[c[e+1][0]])/2);e++);b===k.year&&a<5*b&&(d=[1,2,5]);a=n(a/b,d,"year"===f[0]?Math.max(t(a/b),1):1);return{unitRange:b,count:a,unitName:f[0]}}})(L);(function(a){var z=a.Axis,
A=a.getMagnitude,E=a.map,C=a.normalizeTickInterval,q=a.pick;z.prototype.getLogTickPositions=function(a,g,t,l){var e=this.options,d=this.len,k=this.lin2log,v=this.log2lin,f=[];l||(this._minorAutoInterval=null);if(.5<=a)a=Math.round(a),f=this.getLinearTickPositions(a,g,t);else if(.08<=a)for(var d=Math.floor(g),c,b,p,m,F,e=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];d<t+1&&!F;d++)for(b=e.length,c=0;c<b&&!F;c++)p=v(k(d)*e[c]),p>g&&(!l||m<=t)&&void 0!==m&&f.push(m),m>t&&(F=!0),m=p;else g=k(g),t=
k(t),a=l?this.getMinorTickInterval():e.tickInterval,a=q("auto"===a?null:a,this._minorAutoInterval,e.tickPixelInterval/(l?5:1)*(t-g)/((l?d/this.tickPositions.length:d)||1)),a=C(a,null,A(a)),f=E(this.getLinearTickPositions(a,g,t),v),l||(this._minorAutoInterval=a/5);l||(this.tickInterval=a);return f};z.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};z.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,z){var A=a.arrayMax,E=a.arrayMin,C=a.defined,q=a.destroyObjectProperties,
e=a.each,g=a.erase,t=a.merge,l=a.pick;a.PlotLineOrBand=function(a,d){this.axis=a;d&&(this.options=d,this.id=d.id)};a.PlotLineOrBand.prototype={render:function(){var e=this,d=e.axis,k=d.horiz,g=e.options,f=g.label,c=e.label,b=g.to,p=g.from,m=g.value,F=C(p)&&C(b),q=C(m),x=e.svgElem,I=!x,u=[],G=l(g.zIndex,0),w=g.events,u={"class":"highcharts-plot-"+(F?"band ":"line ")+(g.className||"")},D={},y=d.chart.renderer,K=F?"bands":"lines",h;h=d.log2lin;d.isLog&&(p=h(p),b=h(b),m=h(m));D.zIndex=G;K+="-"+G;(h=d.plotLinesAndBandsGroups[K])||
(d.plotLinesAndBandsGroups[K]=h=y.g("plot-"+K).attr(D).add());I&&(e.svgElem=x=y.path().attr(u).add(h));if(q)u=d.getPlotLinePath(m,x.strokeWidth());else if(F)u=d.getPlotBandPath(p,b,g);else return;I&&u&&u.length?(x.attr({d:u}),w&&a.objectEach(w,function(a,b){x.on(b,function(a){w[b].apply(e,[a])})})):x&&(u?(x.show(),x.animate({d:u})):(x.hide(),c&&(e.label=c=c.destroy())));f&&C(f.text)&&u&&u.length&&0<d.width&&0<d.height&&!u.flat?(f=t({align:k&&F&&"center",x:k?!F&&4:10,verticalAlign:!k&&F&&"middle",
y:k?F?16:10:F?6:-4,rotation:k&&!F&&90},f),this.renderLabel(f,u,F,G)):c&&c.hide();return e},renderLabel:function(a,d,e,g){var f=this.label,c=this.axis.chart.renderer;f||(f={align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(e?"band":"line")+"-label "+(a.className||"")},f.zIndex=g,this.label=f=c.text(a.text,0,0,a.useHTML).attr(f).add());g=d.xBounds||[d[1],d[4],e?d[6]:d[1]];d=d.yBounds||[d[2],d[5],e?d[7]:d[2]];e=E(g);c=E(d);f.align(a,!1,{x:e,y:c,width:A(g)-e,height:A(d)-c});f.show()},
destroy:function(){g(this.axis.plotLinesAndBands,this);delete this.axis;q(this)}};a.extend(z.prototype,{getPlotBandPath:function(a,d){var e=this.getPlotLinePath(d,null,null,!0),g=this.getPlotLinePath(a,null,null,!0),f=this.horiz,c=1;a=a<this.min&&d<this.min||a>this.max&&d>this.max;g&&e?(a&&(g.flat=g.toString()===e.toString(),c=0),g.push(f&&e[4]===g[4]?e[4]+c:e[4],f||e[5]!==g[5]?e[5]:e[5]+c,f&&e[1]===g[1]?e[1]+c:e[1],f||e[2]!==g[2]?e[2]:e[2]+c,"z")):g=null;return g},addPlotBand:function(a){return this.addPlotBandOrLine(a,
"plotBands")},addPlotLine:function(a){return this.addPlotBandOrLine(a,"plotLines")},addPlotBandOrLine:function(e,d){var g=(new a.PlotLineOrBand(this,e)).render(),l=this.userOptions;g&&(d&&(l[d]=l[d]||[],l[d].push(e)),this.plotLinesAndBands.push(g));return g},removePlotBandOrLine:function(a){for(var d=this.plotLinesAndBands,k=this.options,l=this.userOptions,f=d.length;f--;)d[f].id===a&&d[f].destroy();e([k.plotLines||[],l.plotLines||[],k.plotBands||[],l.plotBands||[]],function(c){for(f=c.length;f--;)c[f].id===
a&&g(c,c[f])})},removePlotBand:function(a){this.removePlotBandOrLine(a)},removePlotLine:function(a){this.removePlotBandOrLine(a)}})})(L,U);(function(a){var z=a.dateFormat,A=a.each,E=a.extend,C=a.format,q=a.isNumber,e=a.map,g=a.merge,t=a.pick,l=a.splat,n=a.syncTimeout,d=a.timeUnits;a.Tooltip=function(){this.init.apply(this,arguments)};a.Tooltip.prototype={init:function(a,d){this.chart=a;this.options=d;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=d.split&&!a.inverted;this.shared=
d.shared||this.split},cleanSplit:function(a){A(this.chart.series,function(d){var f=d&&d.tt;f&&(!f.isActive||a?d.tt=f.destroy():f.isActive=!1)})},applyFilter:function(){var a=this.chart;a.renderer.definition({tagName:"filter",id:"drop-shadow-"+a.index,opacity:.5,children:[{tagName:"feGaussianBlur",in:"SourceAlpha",stdDeviation:1},{tagName:"feOffset",dx:1,dy:1},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",type:"linear",slope:.3}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},
{tagName:"feMergeNode",in:"SourceGraphic"}]}]});a.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+a.index+"{filter:url(#drop-shadow-"+a.index+")}"})},getLabel:function(){var a=this.chart.renderer,d=this.options;this.label||(this.label=this.split?a.g("tooltip"):a.label("",0,0,d.shape||"callout",null,null,d.useHTML,null,"tooltip").attr({padding:d.padding,r:d.borderRadius}),this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index),this.label.attr({zIndex:8}).add());
return this.label},update:function(a){this.destroy();g(!0,this.chart.options.tooltip.userOptions,a);this.init(this.chart,g(!0,this.options,a))},destroy:function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());clearTimeout(this.hideTimer);clearTimeout(this.tooltipTimeout)},move:function(a,d,f,c){var b=this,e=b.now,m=!1!==b.options.animation&&!b.isHidden&&(1<Math.abs(a-e.x)||1<Math.abs(d-e.y)),g=b.followPointer||1<b.len;
E(e,{x:m?(2*e.x+a)/3:a,y:m?(e.y+d)/2:d,anchorX:g?void 0:m?(2*e.anchorX+f)/3:f,anchorY:g?void 0:m?(e.anchorY+c)/2:c});b.getLabel().attr(e);m&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){b&&b.move(a,d,f,c)},32))},hide:function(a){var d=this;clearTimeout(this.hideTimer);a=t(a,this.options.hideDelay,500);this.isHidden||(this.hideTimer=n(function(){d.getLabel()[a?"fadeOut":"hide"]();d.isHidden=!0},a))},getAnchor:function(a,d){var f,c=this.chart,b=c.inverted,p=c.plotTop,
m=c.plotLeft,g=0,k=0,x,n;a=l(a);f=a[0].tooltipPos;this.followPointer&&d&&(void 0===d.chartX&&(d=c.pointer.normalize(d)),f=[d.chartX-c.plotLeft,d.chartY-p]);f||(A(a,function(a){x=a.series.yAxis;n=a.series.xAxis;g+=a.plotX+(!b&&n?n.left-m:0);k+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!b&&x?x.top-p:0)}),g/=a.length,k/=a.length,f=[b?c.plotWidth-k:g,this.shared&&!b&&1<a.length&&d?d.chartY-p:b?c.plotHeight-g:k]);return e(f,Math.round)},getPosition:function(a,d,f){var c=this.chart,b=this.distance,
e={},m=f.h||0,g,k=["y",c.chartHeight,d,f.plotY+c.plotTop,c.plotTop,c.plotTop+c.plotHeight],x=["x",c.chartWidth,a,f.plotX+c.plotLeft,c.plotLeft,c.plotLeft+c.plotWidth],l=!this.followPointer&&t(f.ttBelow,!c.inverted===!!f.negative),u=function(a,c,h,f,d,p){var g=h<f-b,r=f+b+h<c,k=f-b-h;f+=b;if(l&&r)e[a]=f;else if(!l&&g)e[a]=k;else if(g)e[a]=Math.min(p-h,0>k-m?k:k-m);else if(r)e[a]=Math.max(d,f+m+h>c?f:f+m);else return!1},n=function(a,c,h,f){var d;f<b||f>c-b?d=!1:e[a]=f<h/2?1:f>c-h/2?c-h-2:f-h/2;return d},
w=function(a){var b=k;k=x;x=b;g=a},D=function(){!1!==u.apply(0,k)?!1!==n.apply(0,x)||g||(w(!0),D()):g?e.x=e.y=0:(w(!0),D())};(c.inverted||1<this.len)&&w();D();return e},defaultFormatter:function(a){var d=this.points||l(this),f;f=[a.tooltipFooterHeaderFormatter(d[0])];f=f.concat(a.bodyFormatter(d));f.push(a.tooltipFooterHeaderFormatter(d[0],!0));return f},refresh:function(a,d){var f,c=this.options,b=a,e,m={},g=[];f=c.formatter||this.defaultFormatter;var m=this.shared,k;c.enabled&&(clearTimeout(this.hideTimer),
this.followPointer=l(b)[0].series.tooltipOptions.followPointer,e=this.getAnchor(b,d),d=e[0],c=e[1],!m||b.series&&b.series.noSharedTooltip?m=b.getLabelConfig():(A(b,function(a){a.setState("hover");g.push(a.getLabelConfig())}),m={x:b[0].category,y:b[0].y},m.points=g,b=b[0]),this.len=g.length,m=f.call(m,this),k=b.series,this.distance=t(k.tooltipOptions.distance,16),!1===m?this.hide():(f=this.getLabel(),this.isHidden&&f.attr({opacity:1}).show(),this.split?this.renderSplit(m,a):(f.css({width:this.chart.spacingBox.width}),
f.attr({text:m&&m.join?m.join(""):m}),f.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+t(b.colorIndex,k.colorIndex)),this.updatePosition({plotX:d,plotY:c,negative:b.negative,ttBelow:b.ttBelow,h:e[2]||0})),this.isHidden=!1))},renderSplit:function(d,e){var f=this,c=[],b=this.chart,p=b.renderer,m=!0,g=this.options,k=0,x=this.getLabel();a.isString(d)&&(d=[!1,d]);A(d.slice(0,e.length+1),function(a,d){if(!1!==a){d=e[d-1]||{isHeader:!0,plotX:e[0].plotX};var u=d.series||f,w=u.tt,D="highcharts-color-"+
t(d.colorIndex,(d.series||{}).colorIndex,"none");w||(u.tt=w=p.label(null,null,null,"callout").addClass("highcharts-tooltip-box "+D).attr({padding:g.padding,r:g.borderRadius}).add(x));w.isActive=!0;w.attr({text:a});a=w.getBBox();D=a.width+w.strokeWidth();d.isHeader?(k=a.height,D=Math.max(0,Math.min(d.plotX+b.plotLeft-D/2,b.chartWidth-D))):D=d.plotX+b.plotLeft-t(g.distance,16)-D;0>D&&(m=!1);a=(d.series&&d.series.yAxis&&d.series.yAxis.pos)+(d.plotY||0);a-=b.plotTop;c.push({target:d.isHeader?b.plotHeight+
k:a,rank:d.isHeader?1:0,size:u.tt.getBBox().height+1,point:d,x:D,tt:w})}});this.cleanSplit();a.distribute(c,b.plotHeight+k);A(c,function(a){var c=a.point,f=c.series;a.tt.attr({visibility:void 0===a.pos?"hidden":"inherit",x:m||c.isHeader?a.x:c.plotX+b.plotLeft+t(g.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+f.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+f.yAxis.pos})})},updatePosition:function(a){var d=this.chart,f=this.getLabel(),f=(this.options.positioner||
this.getPosition).call(this,f.width,f.height,a);this.move(Math.round(f.x),Math.round(f.y||0),a.plotX+d.plotLeft,a.plotY+d.plotTop)},getDateFormat:function(a,e,f,c){var b=z("%m-%d %H:%M:%S.%L",e),p,m,g={millisecond:15,second:12,minute:9,hour:6,day:3},k="millisecond";for(m in d){if(a===d.week&&+z("%w",e)===f&&"00:00:00.000"===b.substr(6)){m="week";break}if(d[m]>a){m=k;break}if(g[m]&&b.substr(g[m])!=="01-01 00:00:00.000".substr(g[m]))break;"week"!==m&&(k=m)}m&&(p=c[m]);return p},getXDateFormat:function(a,
d,f){d=d.dateTimeLabelFormats;var c=f&&f.closestPointRange;return(c?this.getDateFormat(c,a.x,f.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?"footer":"header";var f=a.series,c=f.tooltipOptions,b=c.xDateFormat,e=f.xAxis,m=e&&"datetime"===e.options.type&&q(a.key),g=c[d+"Format"];m&&!b&&(b=this.getXDateFormat(a,c,e));m&&b&&A(a.point&&a.point.tooltipDateKeys||["key"],function(a){g=g.replace("{point."+a+"}","{point."+a+":"+b+"}")});return C(g,{point:a,series:f})},
bodyFormatter:function(a){return e(a,function(a){var f=a.series.tooltipOptions;return(f.pointFormatter||a.point.tooltipFormatter).call(a.point,f[(a.point.formatPrefix||"point")+"Format"])})}}})(L);(function(a){var z=a.addEvent,A=a.attr,E=a.charts,C=a.css,q=a.defined,e=a.each,g=a.extend,t=a.find,l=a.fireEvent,n=a.isObject,d=a.offset,k=a.pick,v=a.removeEvent,f=a.splat,c=a.Tooltip;a.Pointer=function(a,c){this.init(a,c)};a.Pointer.prototype={init:function(a,f){this.options=f;this.chart=a;this.runChartClick=
f.chart.events&&!!f.chart.events.click;this.pinchDown=[];this.lastValidTouch={};c&&(a.tooltip=new c(a,f.tooltip),this.followTouchMove=k(f.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||"",b=b.inverted;/touch/.test(a.type)&&(f=k(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,c){var b;b=a.touches?a.touches.length?a.touches.item(0):
a.changedTouches[0]:a;c||(this.chartPosition=c=d(this.chart.container));return g(a,{chartX:Math.round(b.pageX-c.left),chartY:Math.round(b.pageY-c.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};e(this.chart.axes,function(c){b[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})});return b},findNearestKDPoint:function(a,c,f){var b;e(a,function(a){var d=!(a.noSharedTooltip&&c)&&0>a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(f,d);if((d=n(a,
!0))&&!(d=!n(b,!0)))var d=b.distX-a.distX,e=b.dist-a.dist,g=(a.series.group&&a.series.group.zIndex)-(b.series.group&&b.series.group.zIndex),d=0<(0!==d&&c?d:0!==e?e:0!==g?g:b.series.index>a.series.index?-1:1);d&&(b=a)});return b},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,c){var b=a.series,f=b.xAxis,b=b.yAxis;if(f&&b)return c?{chartX:f.len+f.pos-a.clientX,chartY:b.len+b.pos-a.plotY}:{chartX:a.clientX+f.pos,chartY:a.plotY+
b.pos}},getHoverData:function(b,c,f,d,g,x,l){var m,p=[],w=l&&l.isBoosting;d=!(!d||!b);l=c&&!c.stickyTracking?[c]:a.grep(f,function(a){return a.visible&&!(!g&&a.directTouch)&&k(a.options.enableMouseTracking,!0)&&a.stickyTracking});c=(m=d?b:this.findNearestKDPoint(l,g,x))&&m.series;m&&(g&&!c.noSharedTooltip?(l=a.grep(f,function(a){return a.visible&&!(!g&&a.directTouch)&&k(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),e(l,function(a){var b=t(a.points,function(a){return a.x===m.x&&!a.isNull});
n(b)&&(w&&(b=a.getPoint(b)),p.push(b))})):p.push(m));return{hoverPoint:m,hoverSeries:c,hoverPoints:p}},runPointActions:function(b,c){var f=this.chart,d=f.tooltip&&f.tooltip.options.enabled?f.tooltip:void 0,g=d?d.shared:!1,p=c||f.hoverPoint,l=p&&p.series||f.hoverSeries,l=this.getHoverData(p,l,f.series,!!c||l&&l.directTouch&&this.isDirectTouch,g,b,{isBoosting:f.isBoosting}),u,p=l.hoverPoint;u=l.hoverPoints;c=(l=l.hoverSeries)&&l.tooltipOptions.followPointer;g=g&&l&&!l.noSharedTooltip;if(p&&(p!==f.hoverPoint||
d&&d.isHidden)){e(f.hoverPoints||[],function(b){-1===a.inArray(b,u)&&b.setState()});e(u||[],function(a){a.setState("hover")});if(f.hoverSeries!==l)l.onMouseOver();f.hoverPoint&&f.hoverPoint.firePointEvent("mouseOut");if(!p.series)return;p.firePointEvent("mouseOver");f.hoverPoints=u;f.hoverPoint=p;d&&d.refresh(g?u:p,b)}else c&&d&&!d.isHidden&&(p=d.getAnchor([{}],b),d.updatePosition({plotX:p[0],plotY:p[1]}));this.unDocMouseMove||(this.unDocMouseMove=z(f.container.ownerDocument,"mousemove",function(b){var c=
E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));e(f.axes,function(c){var f=k(c.crosshair.snap,!0),d=f?a.find(u,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,c){var b=this.chart,d=b.hoverSeries,g=b.hoverPoint,p=b.hoverPoints,k=b.tooltip,l=k&&k.shared?p:g;a&&l&&e(f(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)k&&l&&(k.refresh(l),g&&(g.setState(g.state,!0),e(b.axes,function(a){a.crosshair&&a.drawCrosshair(null,
g)})));else{if(g)g.onMouseOut();p&&e(p,function(a){a.setState()});if(d)d.onMouseOut();k&&k.hide(c);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());e(b.axes,function(a){a.hideCrosshair()});this.hoverX=b.hoverPoints=b.hoverPoint=null}},scaleGroups:function(a,c){var b=this.chart,f;e(b.series,function(d){f=a||d.getPlotBox();d.xAxis&&d.xAxis.zoomEnabled&&d.group&&(d.group.attr(f),d.markerGroup&&(d.markerGroup.attr(f),d.markerGroup.clip(c?b.clipRect:null)),d.dataLabelsGroup&&d.dataLabelsGroup.attr(f))});
b.clipRect.attr(c||b.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,d=a.chartY,e=this.zoomHor,g=this.zoomVert,k=b.plotLeft,l=b.plotTop,w=b.plotWidth,D=b.plotHeight,y,n=this.selectionMarker,h=this.mouseDownX,r=this.mouseDownY,t=c.panKey&&a[c.panKey+"Key"];n&&n.touch||(f<k?f=k:f>k+w&&(f=k+w),d<l?d=l:d>l+D&&(d=l+D),this.hasDragged=
Math.sqrt(Math.pow(h-f,2)+Math.pow(r-d,2)),10<this.hasDragged&&(y=b.isInsidePlot(h-k,r-l),b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&y&&!t&&!n&&(this.selectionMarker=n=b.renderer.rect(k,l,e?1:w,g?1:D,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add()),n&&e&&(f-=h,n.attr({width:Math.abs(f),x:(0<f?0:f)+h})),n&&g&&(f=d-r,n.attr({height:Math.abs(f),y:(0<f?0:f)+r})),y&&!n&&c.panning&&b.pan(a,c.panning)))},drop:function(a){var b=this,c=this.chart,f=this.hasPinched;if(this.selectionMarker){var d=
{originalEvent:a,xAxis:[],yAxis:[]},k=this.selectionMarker,n=k.attr?k.attr("x"):k.x,u=k.attr?k.attr("y"):k.y,t=k.attr?k.attr("width"):k.width,w=k.attr?k.attr("height"):k.height,D;if(this.hasDragged||f)e(c.axes,function(c){if(c.zoomEnabled&&q(c.min)&&(f||b[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])){var e=c.horiz,h="touchend"===a.type?c.minPixelPadding:0,g=c.toValue((e?n:u)+h),e=c.toValue((e?n+t:u+w)-h);d[c.coll].push({axis:c,min:Math.min(g,e),max:Math.max(g,e)});D=!0}}),D&&l(c,"selection",d,function(a){c.zoom(g(a,
f?{animation:!1}:null))});this.selectionMarker=this.selectionMarker.destroy();f&&this.scaleGroups()}c&&(C(c.container,{cursor:c._cursor}),c.cancelClick=10<this.hasDragged,c.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(a){a=this.normalize(a);this.zoomOption(a);a.preventDefault&&a.preventDefault();this.dragStart(a)},onDocumentMouseUp:function(b){E[a.hoverChartIndex]&&E[a.hoverChartIndex].pointer.drop(b)},onDocumentMouseMove:function(a){var b=this.chart,
c=this.chartPosition;a=this.normalize(a,c);!c||this.inClass(a.target,"highcharts-tracker")||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)||this.reset()},onContainerMouseLeave:function(b){var c=E[a.hoverChartIndex];c&&(b.relatedTarget||b.toElement)&&(c.pointer.reset(),c.pointer.chartPosition=null)},onContainerMouseMove:function(b){var c=this.chart;q(a.hoverChartIndex)&&E[a.hoverChartIndex]&&E[a.hoverChartIndex].mouseIsDown||(a.hoverChartIndex=c.index);b=this.normalize(b);b.returnValue=!1;
"mousedown"===c.mouseIsDown&&this.drag(b);!this.inClass(b.target,"highcharts-tracker")&&!c.isInsidePlot(b.chartX-c.plotLeft,b.chartY-c.plotTop)||c.openMenu||this.runPointActions(b)},inClass:function(a,c){for(var b;a;){if(b=A(a,"class")){if(-1!==b.indexOf(c))return!0;if(-1!==b.indexOf("highcharts-container"))return!1}a=a.parentNode}},onTrackerMouseOut:function(a){var b=this.chart.hoverSeries;a=a.relatedTarget||a.toElement;this.isDirectTouch=!1;if(!(!b||!a||b.stickyTracking||this.inClass(a,"highcharts-tooltip")||
this.inClass(a,"highcharts-series-"+b.index)&&this.inClass(a,"highcharts-tracker")))b.onMouseOut()},onContainerClick:function(a){var b=this.chart,c=b.hoverPoint,f=b.plotLeft,d=b.plotTop;a=this.normalize(a);b.cancelClick||(c&&this.inClass(a.target,"highcharts-tracker")?(l(c.series,"click",g(a,{point:c})),b.hoverPoint&&c.firePointEvent("click",a)):(g(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-f,a.chartY-d)&&l(b,"click",a)))},setDOMEvents:function(){var b=this,c=b.chart.container,f=c.ownerDocument;
c.onmousedown=function(a){b.onContainerMouseDown(a)};c.onmousemove=function(a){b.onContainerMouseMove(a)};c.onclick=function(a){b.onContainerClick(a)};z(c,"mouseleave",b.onContainerMouseLeave);1===a.chartCount&&z(f,"mouseup",b.onDocumentMouseUp);a.hasTouch&&(c.ontouchstart=function(a){b.onContainerTouchStart(a)},c.ontouchmove=function(a){b.onContainerTouchMove(a)},1===a.chartCount&&z(f,"touchend",b.onDocumentTouchEnd))},destroy:function(){var b=this,c=this.chart.container.ownerDocument;b.unDocMouseMove&&
b.unDocMouseMove();v(b.chart.container,"mouseleave",b.onContainerMouseLeave);a.chartCount||(v(c,"mouseup",b.onDocumentMouseUp),a.hasTouch&&v(c,"touchend",b.onDocumentTouchEnd));clearInterval(b.tooltipTimeout);a.objectEach(b,function(a,c){b[c]=null})}}})(L);(function(a){var z=a.charts,A=a.each,E=a.extend,C=a.map,q=a.noop,e=a.pick;E(a.Pointer.prototype,{pinchTranslate:function(a,e,l,n,d,k){this.zoomHor&&this.pinchTranslateDirection(!0,a,e,l,n,d,k);this.zoomVert&&this.pinchTranslateDirection(!1,a,e,
l,n,d,k)},pinchTranslateDirection:function(a,e,l,n,d,k,q,f){var c=this.chart,b=a?"x":"y",g=a?"X":"Y",m="chart"+g,t=a?"width":"height",v=c["plot"+(a?"Left":"Top")],x,I,u=f||1,G=c.inverted,w=c.bounds[a?"h":"v"],D=1===e.length,y=e[0][m],K=l[0][m],h=!D&&e[1][m],r=!D&&l[1][m],O;l=function(){!D&&20<Math.abs(y-h)&&(u=f||Math.abs(K-r)/Math.abs(y-h));I=(v-K)/u+y;x=c["plot"+(a?"Width":"Height")]/u};l();e=I;e<w.min?(e=w.min,O=!0):e+x>w.max&&(e=w.max-x,O=!0);O?(K-=.8*(K-q[b][0]),D||(r-=.8*(r-q[b][1])),l()):q[b]=
[K,r];G||(k[b]=I-v,k[t]=x);k=G?1/u:u;d[t]=x;d[b]=e;n[G?a?"scaleY":"scaleX":"scale"+g]=u;n["translate"+g]=k*v+(K-k*y)},pinch:function(a){var g=this,l=g.chart,n=g.pinchDown,d=a.touches,k=d.length,v=g.lastValidTouch,f=g.hasZoom,c=g.selectionMarker,b={},p=1===k&&(g.inClass(a.target,"highcharts-tracker")&&l.runTrackerClick||g.runChartClick),m={};1<k&&(g.initiated=!0);f&&g.initiated&&!p&&a.preventDefault();C(d,function(a){return g.normalize(a)});"touchstart"===a.type?(A(d,function(a,b){n[b]={chartX:a.chartX,
chartY:a.chartY}}),v.x=[n[0].chartX,n[1]&&n[1].chartX],v.y=[n[0].chartY,n[1]&&n[1].chartY],A(l.axes,function(a){if(a.zoomEnabled){var b=l.bounds[a.horiz?"h":"v"],c=a.minPixelPadding,f=a.toPixels(e(a.options.min,a.dataMin)),d=a.toPixels(e(a.options.max,a.dataMax)),g=Math.max(f,d);b.min=Math.min(a.pos,Math.min(f,d)-c);b.max=Math.max(a.pos+a.len,g+c)}}),g.res=!0):g.followTouchMove&&1===k?this.runPointActions(g.normalize(a)):n.length&&(c||(g.selectionMarker=c=E({destroy:q,touch:!0},l.plotBox)),g.pinchTranslate(n,
d,b,c,m,v),g.hasPinched=f,g.scaleGroups(b,m),g.res&&(g.res=!1,this.reset(!1,0)))},touch:function(g,q){var l=this.chart,n,d;if(l.index!==a.hoverChartIndex)this.onContainerMouseLeave({relatedTarget:!0});a.hoverChartIndex=l.index;1===g.touches.length?(g=this.normalize(g),(d=l.isInsidePlot(g.chartX-l.plotLeft,g.chartY-l.plotTop))&&!l.openMenu?(q&&this.runPointActions(g),"touchmove"===g.type&&(q=this.pinchDown,n=q[0]?4<=Math.sqrt(Math.pow(q[0].chartX-g.chartX,2)+Math.pow(q[0].chartY-g.chartY,2)):!1),e(n,
!0)&&this.pinch(g)):q&&this.reset()):2===g.touches.length&&this.pinch(g)},onContainerTouchStart:function(a){this.zoomOption(a);this.touch(a,!0)},onContainerTouchMove:function(a){this.touch(a)},onDocumentTouchEnd:function(e){z[a.hoverChartIndex]&&z[a.hoverChartIndex].pointer.drop(e)}})})(L);(function(a){var z=a.addEvent,A=a.charts,E=a.css,C=a.doc,q=a.extend,e=a.noop,g=a.Pointer,t=a.removeEvent,l=a.win,n=a.wrap;if(!a.hasTouch&&(l.PointerEvent||l.MSPointerEvent)){var d={},k=!!l.PointerEvent,v=function(){var c=
[];c.item=function(a){return this[a]};a.objectEach(d,function(a){c.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return c},f=function(c,b,f,d){"touch"!==c.pointerType&&c.pointerType!==c.MSPOINTER_TYPE_TOUCH||!A[a.hoverChartIndex]||(d(c),d=A[a.hoverChartIndex].pointer,d[b]({type:f,target:c.currentTarget,preventDefault:e,touches:v()}))};q(g.prototype,{onContainerPointerDown:function(a){f(a,"onContainerTouchStart","touchstart",function(a){d[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},
onContainerPointerMove:function(a){f(a,"onContainerTouchMove","touchmove",function(a){d[a.pointerId]={pageX:a.pageX,pageY:a.pageY};d[a.pointerId].target||(d[a.pointerId].target=a.currentTarget)})},onDocumentPointerUp:function(a){f(a,"onDocumentTouchEnd","touchend",function(a){delete d[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,k?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,k?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(C,k?
"pointerup":"MSPointerUp",this.onDocumentPointerUp)}});n(g.prototype,"init",function(a,b,f){a.call(this,b,f);this.hasZoom&&E(b.container,{"-ms-touch-action":"none","touch-action":"none"})});n(g.prototype,"setDOMEvents",function(a){a.apply(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(z)});n(g.prototype,"destroy",function(a){this.batchMSEvents(t);a.call(this)})}})(L);(function(a){var z=a.addEvent,A=a.css,E=a.discardElement,C=a.defined,q=a.each,e=a.isFirefox,g=a.marginNames,t=a.merge,
l=a.pick,n=a.setAnimation,d=a.stableSort,k=a.win,v=a.wrap;a.Legend=function(a,c){this.init(a,c)};a.Legend.prototype={init:function(a,c){this.chart=a;this.setOptions(c);c.enabled&&(this.render(),z(this.chart,"endResize",function(){this.legend.positionCheckboxes()}))},setOptions:function(a){var c=l(a.padding,8);this.options=a;this.itemMarginTop=a.itemMarginTop||0;this.padding=c;this.initialItemY=c-5;this.itemHeight=this.maxItemWidth=0;this.symbolWidth=l(a.symbolWidth,16);this.pages=[]},update:function(a,
c){var b=this.chart;this.setOptions(t(!0,this.options,a));this.destroy();b.isDirtyLegend=b.isDirtyBox=!0;l(c,!0)&&b.redraw()},colorizeItem:function(a,c){a.legendGroup[c?"removeClass":"addClass"]("highcharts-legend-item-hidden")},positionItem:function(a){var c=this.options,b=c.symbolPadding,c=!c.rtl,f=a._legendItemPos,d=f[0],f=f[1],e=a.checkbox;(a=a.legendGroup)&&a.element&&a.translate(c?d:this.legendWidth-d-2*b-4,f);e&&(e.x=d,e.y=f)},destroyItem:function(a){var c=a.checkbox;q(["legendItem","legendLine",
"legendSymbol","legendGroup"],function(b){a[b]&&(a[b]=a[b].destroy())});c&&E(a.checkbox)},destroy:function(){function a(a){this[a]&&(this[a]=this[a].destroy())}q(this.getAllItems(),function(c){q(["legendItem","legendGroup"],a,c)});q("clipRect up down pager nav box title group".split(" "),a,this);this.display=null},positionCheckboxes:function(a){var c=this.group&&this.group.alignAttr,b,f=this.clipHeight||this.legendHeight,d=this.titleHeight;c&&(b=c.translateY,q(this.allItems,function(e){var g=e.checkbox,
k;g&&(k=b+d+g.y+(a||0)+3,A(g,{left:c.translateX+e.checkboxOffset+g.x-20+"px",top:k+"px",display:k>b-6&&k<b+f-6?"":"none"}))}))},renderTitle:function(){var a=this.options,c=this.padding,b=a.title,d=0;b.text&&(this.title||(this.title=this.chart.renderer.label(b.text,c-3,c-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}).add(this.group)),a=this.title.getBBox(),d=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:d}));this.titleHeight=d},setText:function(d){var c=this.options;
d.legendItem.attr({text:c.labelFormat?a.format(c.labelFormat,d):c.labelFormatter.call(d)})},renderItem:function(a){var c=this.chart,b=c.renderer,d=this.options,f="horizontal"===d.layout,e=this.symbolWidth,g=d.symbolPadding,k=this.padding,n=f?l(d.itemDistance,20):0,u=!d.rtl,q=d.width,w=d.itemMarginBottom||0,D=this.itemMarginTop,y=a.legendItem,t=!a.series,h=!t&&a.series.drawLegendSymbol?a.series:a,r=h.options,v=this.createCheckboxForItem&&r&&r.showCheckbox,r=e+g+n+(v?20:0),J=d.useHTML,B=a.options.className;
y||(a.legendGroup=b.g("legend-item").addClass("highcharts-"+h.type+"-series highcharts-color-"+a.colorIndex+(B?" "+B:"")+(t?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=y=b.text("",u?e+g:-g,this.baseline||0,J).attr({align:u?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=b.fontMetrics(12,y),this.baseline=this.fontMetrics.f+3+D,y.attr("y",this.baseline)),this.symbolHeight=d.symbolHeight||this.fontMetrics.f,h.drawLegendSymbol(this,
a),this.setItemEvents&&this.setItemEvents(a,y,J),v&&this.createCheckboxForItem(a));this.colorizeItem(a,a.visible);y.css({width:(d.itemWidth||d.width||c.spacingBox.width)-r});this.setText(a);b=y.getBBox();e=a.checkboxOffset=d.itemWidth||a.legendItemWidth||b.width+r;this.itemHeight=b=Math.round(a.legendItemHeight||b.height||this.symbolHeight);f&&this.itemX-k+e>(q||c.spacingBox.width-2*k-d.x)&&(this.itemX=k,this.itemY+=D+this.lastLineHeight+w,this.lastLineHeight=0);this.maxItemWidth=Math.max(this.maxItemWidth,
e);this.lastItemY=D+this.itemY+w;this.lastLineHeight=Math.max(b,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];f?this.itemX+=e:(this.itemY+=D+b+w,this.lastLineHeight=b);this.offsetWidth=q||Math.max((f?this.itemX-k-(a.checkbox?0:n):e)+k,this.offsetWidth)},getAllItems:function(){var a=[];q(this.chart.series,function(c){var b=c&&c.options;c&&l(b.showInLegend,C(b.linkedTo)?!1:void 0,!0)&&(a=a.concat(c.legendItems||("point"===b.legendType?c.data:c)))});return a},adjustMargins:function(a,
c){var b=this.chart,d=this.options,f=d.align.charAt(0)+d.verticalAlign.charAt(0)+d.layout.charAt(0);d.floating||q([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,k){e.test(f)&&!C(a[k])&&(b[g[k]]=Math.max(b[g[k]],b.legend[(k+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][k]*d[k%2?"x":"y"]+l(d.margin,12)+c[k]))})},render:function(){var a=this,c=a.chart,b=c.renderer,e=a.group,g,k,l,n,I=a.box,u=a.options,v=a.padding;a.itemX=v;a.itemY=a.initialItemY;a.offsetWidth=0;a.lastItemY=
0;e||(a.group=e=b.g("legend").attr({zIndex:7}).add(),a.contentGroup=b.g().attr({zIndex:1}).add(e),a.scrollGroup=b.g().add(a.contentGroup));a.renderTitle();g=a.getAllItems();d(g,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});u.reversed&&g.reverse();a.allItems=g;a.display=k=!!g.length;a.lastLineHeight=0;q(g,function(b){a.renderItem(b)});l=(u.width||a.offsetWidth)+v;n=a.lastItemY+a.lastLineHeight+a.titleHeight;n=a.handleOverflow(n);n+=v;I||(a.box=I=
b.rect().addClass("highcharts-legend-box").attr({r:u.borderRadius}).add(e),I.isNew=!0);0<l&&0<n&&(I[I.isNew?"attr":"animate"](I.crisp({x:0,y:0,width:l,height:n},I.strokeWidth())),I.isNew=!1);I[k?"show":"hide"]();"none"===e.getStyle("display")&&(l=n=0);a.legendWidth=l;a.legendHeight=n;q(g,function(b){a.positionItem(b)});k&&e.align(t(u,{width:l,height:n}),!0,"spacingBox");c.isResizing||this.positionCheckboxes()},handleOverflow:function(a){var c=this,b=this.chart,d=b.renderer,f=this.options,e=f.y,g=
this.padding,b=b.spacingBox.height+("top"===f.verticalAlign?-e:e)-g,e=f.maxHeight,k,n=this.clipRect,u=f.navigation,t=l(u.animation,!0),w=u.arrowSize||12,D=this.nav,y=this.pages,v,h=this.allItems,r=function(a){"number"===typeof a?n.attr({height:a}):n&&(c.clipRect=n.destroy(),c.contentGroup.clip());c.contentGroup.div&&(c.contentGroup.div.style.clip=a?"rect("+g+"px,9999px,"+(g+a)+"px,0)":"auto")};"horizontal"!==f.layout||"middle"===f.verticalAlign||f.floating||(b/=2);e&&(b=Math.min(b,e));y.length=0;
a>b&&!1!==u.enabled?(this.clipHeight=k=Math.max(b-20-this.titleHeight-g,0),this.currentPage=l(this.currentPage,1),this.fullHeight=a,q(h,function(a,b){var c=a._legendItemPos[1];a=Math.round(a.legendItem.getBBox().height);var d=y.length;if(!d||c-y[d-1]>k&&(v||c)!==y[d-1])y.push(v||c),d++;b===h.length-1&&c+a-y[d-1]>k&&y.push(c);c!==v&&(v=c)}),n||(n=c.clipRect=d.clipRect(0,g,9999,0),c.contentGroup.clip(n)),r(k),D||(this.nav=D=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,w,w).on("click",
function(){c.scroll(-1,t)}).add(D),this.pager=d.text("",15,10).addClass("highcharts-legend-navigation").add(D),this.down=d.symbol("triangle-down",0,0,w,w).on("click",function(){c.scroll(1,t)}).add(D)),c.scroll(0),a=b):D&&(r(),this.nav=D.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,c){var b=this.pages,d=b.length;a=this.currentPage+a;var f=this.clipHeight,e=this.pager,g=this.padding;a>d&&(a=d);0<a&&(void 0!==c&&n(c,this.chart),this.nav.attr({translateX:g,
translateY:f+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({"class":1===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),e.attr({text:a+"/"+d}),this.down.attr({x:18+this.pager.getBBox().width,"class":a===d?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),c=-b[a-1]+this.initialItemY,this.scrollGroup.animate({translateY:c}),this.currentPage=a,this.positionCheckboxes(c))}};a.LegendSymbolMixin={drawRectangle:function(a,c){var b=a.symbolHeight,
d=a.options.squareSymbol;c.legendSymbol=this.chart.renderer.rect(d?(a.symbolWidth-b)/2:0,a.baseline-b+1,d?b:a.symbolWidth,b,l(a.options.symbolRadius,b/2)).addClass("highcharts-point").attr({zIndex:3}).add(c.legendGroup)},drawLineMarker:function(a){var c=this.options.marker,b,d=a.symbolWidth,f=a.symbolHeight;b=f/2;var e=this.chart.renderer,g=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);this.legendLine=e.path(["M",0,a,"L",d,a]).addClass("highcharts-graph").attr({}).add(g);c&&!1!==c.enabled&&
(b=Math.min(l(c.radius,b),b),0===this.symbol.indexOf("url")&&(c=t(c,{width:f,height:f}),b=0),this.legendSymbol=c=e.symbol(this.symbol,d/2-b,a-b,2*b,2*b,c).addClass("highcharts-point").add(g),c.isMarker=!0)}};(/Trident\/7\.0/.test(k.navigator.userAgent)||e)&&v(a.Legend.prototype,"positionItem",function(a,c){var b=this,d=function(){c._legendItemPos&&a.call(b,c)};d();setTimeout(d)})})(L);(function(a){var z=a.addEvent,A=a.animObject,E=a.attr,C=a.doc,q=a.Axis,e=a.createElement,g=a.defaultOptions,t=a.discardElement,
l=a.charts,n=a.defined,d=a.each,k=a.extend,v=a.find,f=a.fireEvent,c=a.grep,b=a.isNumber,p=a.isObject,m=a.isString,F=a.Legend,H=a.marginNames,x=a.merge,I=a.objectEach,u=a.Pointer,G=a.pick,w=a.pInt,D=a.removeEvent,y=a.seriesTypes,K=a.splat,h=a.svg,r=a.syncTimeout,O=a.win,J=a.Chart=function(){this.getArgs.apply(this,arguments)};a.chart=function(a,b,c){return new J(a,b,c)};k(J.prototype,{callbacks:[],getArgs:function(){var a=[].slice.call(arguments);if(m(a[0])||a[0].nodeName)this.renderTo=a.shift();this.init(a[0],
a[1])},init:function(b,c){var d,h,f=b.series,e=b.plotOptions||{};b.series=null;d=x(g,b);for(h in d.plotOptions)d.plotOptions[h].tooltip=e[h]&&x(e[h].tooltip)||void 0;d.tooltip.userOptions=b.chart&&b.chart.forExport&&b.tooltip.userOptions||b.tooltip;d.series=b.series=f;this.userOptions=b;b=d.chart;h=b.events;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=c;this.isResizing=0;this.options=d;this.axes=[];this.series=[];this.hasCartesianSeries=b.showAxes;var k=
this;k.index=l.length;l.push(k);a.chartCount++;h&&I(h,function(a,b){z(k,b,a)});k.xAxis=[];k.yAxis=[];k.pointCount=k.colorCounter=k.symbolCounter=0;k.firstRender()},initSeries:function(b){var c=this.options.chart;(c=y[b.type||c.type||c.defaultSeriesType])||a.error(17,!0);c=new c;c.init(this,b);return c},orderSeries:function(a){var b=this.series;for(a=a||0;a<b.length;a++)b[a]&&(b[a].index=a,b[a].name=b[a].name||"Series "+(b[a].index+1))},isInsidePlot:function(a,b,c){var d=c?b:a;a=c?a:b;return 0<=d&&
d<=this.plotWidth&&0<=a&&a<=this.plotHeight},redraw:function(b){var c=this.axes,h=this.series,e=this.pointer,g=this.legend,r=this.isDirtyLegend,w,m,y=this.hasCartesianSeries,p=this.isDirtyBox,l,D=this.renderer,n=D.isHidden(),B=[];this.setResponsive&&this.setResponsive(!1);a.setAnimation(b,this);n&&this.temporaryDisplay();this.layOutTitles();for(b=h.length;b--;)if(l=h[b],l.options.stacking&&(w=!0,l.isDirty)){m=!0;break}if(m)for(b=h.length;b--;)l=h[b],l.options.stacking&&(l.isDirty=!0);d(h,function(a){a.isDirty&&
"point"===a.options.legendType&&(a.updateTotals&&a.updateTotals(),r=!0);a.isDirtyData&&f(a,"updatedData")});r&&g.options.enabled&&(g.render(),this.isDirtyLegend=!1);w&&this.getStacks();y&&d(c,function(a){a.updateNames();a.setScale()});this.getMargins();y&&(d(c,function(a){a.isDirty&&(p=!0)}),d(c,function(a){var b=a.min+","+a.max;a.extKey!==b&&(a.extKey=b,B.push(function(){f(a,"afterSetExtremes",k(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(p||w)&&a.redraw()}));p&&this.drawChartBox();f(this,
"predraw");d(h,function(a){(p||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});e&&e.reset(!0);D.draw();f(this,"redraw");f(this,"render");n&&this.temporaryDisplay(!0);d(B,function(a){a.call()})},get:function(a){function b(b){return b.id===a||b.options&&b.options.id===a}var c,d=this.series,h;c=v(this.axes,b)||v(this.series,b);for(h=0;!c&&h<d.length;h++)c=v(d[h].points||[],b);return c},getAxes:function(){var a=this,b=this.options,c=b.xAxis=K(b.xAxis||{}),b=b.yAxis=K(b.yAxis||{});d(c,function(a,
b){a.index=b;a.isX=!0});d(b,function(a,b){a.index=b});c=c.concat(b);d(c,function(b){new q(a,b)})},getSelectedPoints:function(){var a=[];d(this.series,function(b){a=a.concat(c(b.data||[],function(a){return a.selected}))});return a},getSelectedSeries:function(){return c(this.series,function(a){return a.selected})},setTitle:function(a,b,c){var h=this,f=h.options,e;e=f.title=x(f.title,a);f=f.subtitle=x(f.subtitle,b);d([["title",a,e],["subtitle",b,f]],function(a,b){var c=a[0],d=h[c],f=a[1];a=a[2];d&&f&&
(h[c]=d=d.destroy());a&&a.text&&!d&&(h[c]=h.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":"highcharts-"+c,zIndex:a.zIndex||4}).add(),h[c].update=function(a){h.setTitle(!b&&a,b&&a)})});h.layOutTitles(c)},layOutTitles:function(a){var b=0,c,h=this.renderer,f=this.spacingBox;d(["title","subtitle"],function(a){var c=this[a],d=this.options[a];a="title"===a?-3:d.verticalAlign?0:b+2;var e;c&&(e=h.fontMetrics(e,c).b,c.css({width:(d.width||f.width+d.widthAdjust)+"px"}).align(k({y:a+e},d),
!1,"spacingBox"),d.floating||d.verticalAlign||(b=Math.ceil(b+c.getBBox(d.useHTML).height)))},this);c=this.titleOffset!==b;this.titleOffset=b;!this.isDirtyBox&&c&&(this.isDirtyBox=c,this.hasRendered&&G(a,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var b=this.options.chart,c=b.width,b=b.height,d=this.renderTo;n(c)||(this.containerWidth=a.getStyle(d,"width"));n(b)||(this.containerHeight=a.getStyle(d,"height"));this.chartWidth=Math.max(0,c||this.containerWidth||600);this.chartHeight=
Math.max(0,a.relativeLength(b,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},temporaryDisplay:function(b){var c=this.renderTo;if(b)for(;c&&c.style;)c.hcOrigStyle&&(a.css(c,c.hcOrigStyle),delete c.hcOrigStyle),c.hcOrigDetached&&(C.body.removeChild(c),c.hcOrigDetached=!1),c=c.parentNode;else for(;c&&c.style;){C.body.contains(c)||c.parentNode||(c.hcOrigDetached=!0,C.body.appendChild(c));if("none"===a.getStyle(c,"display",!1)||c.hcOricDetached)c.hcOrigStyle={display:c.style.display,
height:c.style.height,overflow:c.style.overflow},b={display:"block",overflow:"hidden"},c!==this.renderTo&&(b.height=0),a.css(c,b),c.offsetWidth||c.style.setProperty("display","block","important");c=c.parentNode;if(c===C.body)break}},setClassName:function(a){this.container.className="highcharts-container "+(a||"")},getContainer:function(){var c,d=this.options,h=d.chart,f,g;c=this.renderTo;var k=a.uniqueKey(),r;c||(this.renderTo=c=h.renderTo);m(c)&&(this.renderTo=c=C.getElementById(c));c||a.error(13,
!0);f=w(E(c,"data-highcharts-chart"));b(f)&&l[f]&&l[f].hasRendered&&l[f].destroy();E(c,"data-highcharts-chart",this.index);c.innerHTML="";h.skipClone||c.offsetWidth||this.temporaryDisplay();this.getChartSize();f=this.chartWidth;g=this.chartHeight;this.container=c=e("div",{id:k},void 0,c);this._cursor=c.style.cursor;this.renderer=new (a[h.renderer]||a.Renderer)(c,f,g,null,h.forExport,d.exporting&&d.exporting.allowHTML);this.setClassName(h.className);for(r in d.defs)this.renderer.definition(d.defs[r]);
this.renderer.chartIndex=this.index},getMargins:function(a){var b=this.spacing,c=this.margin,d=this.titleOffset;this.resetMargins();d&&!n(c[0])&&(this.plotTop=Math.max(this.plotTop,d+this.options.title.margin+b[0]));this.legend&&this.legend.display&&this.legend.adjustMargins(c,b);this.extraMargin&&(this[this.extraMargin.type]=(this[this.extraMargin.type]||0)+this.extraMargin.value);this.adjustPlotArea&&this.adjustPlotArea();a||this.getAxisMargins()},getAxisMargins:function(){var a=this,b=a.axisOffset=
[0,0,0,0],c=a.margin;a.hasCartesianSeries&&d(a.axes,function(a){a.visible&&a.getOffset()});d(H,function(d,h){n(c[h])||(a[d]+=b[h])});a.setChartSize()},reflow:function(b){var c=this,d=c.options.chart,h=c.renderTo,f=n(d.width)&&n(d.height),e=d.width||a.getStyle(h,"width"),d=d.height||a.getStyle(h,"height"),h=b?b.target:O;if(!f&&!c.isPrinting&&e&&d&&(h===O||h===C)){if(e!==c.containerWidth||d!==c.containerHeight)clearTimeout(c.reflowTimeout),c.reflowTimeout=r(function(){c.container&&c.setSize(void 0,
void 0,!1)},b?100:0);c.containerWidth=e;c.containerHeight=d}},initReflow:function(){var a=this,b;b=z(O,"resize",function(b){a.reflow(b)});z(a,"destroy",b)},setSize:function(b,c,h){var e=this,g=e.renderer;e.isResizing+=1;a.setAnimation(h,e);e.oldChartHeight=e.chartHeight;e.oldChartWidth=e.chartWidth;void 0!==b&&(e.options.chart.width=b);void 0!==c&&(e.options.chart.height=c);e.getChartSize();e.setChartSize(!0);g.setSize(e.chartWidth,e.chartHeight,h);d(e.axes,function(a){a.isDirty=!0;a.setScale()});
e.isDirtyLegend=!0;e.isDirtyBox=!0;e.layOutTitles();e.getMargins();e.redraw(h);e.oldChartHeight=null;f(e,"resize");r(function(){e&&f(e,"endResize",null,function(){--e.isResizing})},A(void 0).duration)},setChartSize:function(a){var b=this.inverted,c=this.renderer,h=this.chartWidth,f=this.chartHeight,e=this.options.chart,g=this.spacing,k=this.clipOffset,r,w,m,y;this.plotLeft=r=Math.round(this.plotLeft);this.plotTop=w=Math.round(this.plotTop);this.plotWidth=m=Math.max(0,Math.round(h-r-this.marginRight));
this.plotHeight=y=Math.max(0,Math.round(f-w-this.marginBottom));this.plotSizeX=b?y:m;this.plotSizeY=b?m:y;this.plotBorderWidth=e.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:g[3],y:g[0],width:h-g[3]-g[1],height:f-g[0]-g[2]};this.plotBox=c.plotBox={x:r,y:w,width:m,height:y};h=2*Math.floor(this.plotBorderWidth/2);b=Math.ceil(Math.max(h,k[3])/2);c=Math.ceil(Math.max(h,k[0])/2);this.clipBox={x:b,y:c,width:Math.floor(this.plotSizeX-Math.max(h,k[1])/2-b),height:Math.max(0,Math.floor(this.plotSizeY-
Math.max(h,k[2])/2-c))};a||d(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()})},resetMargins:function(){var a=this,b=a.options.chart;d(["margin","spacing"],function(c){var h=b[c],f=p(h)?h:[h,h,h,h];d(["Top","Right","Bottom","Left"],function(d,h){a[c][h]=G(b[c+d],f[h])})});d(H,function(b,c){a[b]=G(a.margin[c],a.spacing[c])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]},drawChartBox:function(){var a=this.options.chart,b=this.renderer,c=this.chartWidth,d=this.chartHeight,h=this.chartBackground,
f=this.plotBackground,e=this.plotBorder,g,k,r=this.plotLeft,w=this.plotTop,m=this.plotWidth,y=this.plotHeight,p=this.plotBox,l=this.clipRect,D=this.clipBox,n="animate";h||(this.chartBackground=h=b.rect().addClass("highcharts-background").add(),n="attr");g=k=h.strokeWidth();h[n]({x:k/2,y:k/2,width:c-k-g%2,height:d-k-g%2,r:a.borderRadius});n="animate";f||(n="attr",this.plotBackground=f=b.rect().addClass("highcharts-plot-background").add());f[n](p);l?l.animate({width:D.width,height:D.height}):this.clipRect=
b.clipRect(D);n="animate";e||(n="attr",this.plotBorder=e=b.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());e[n](e.crisp({x:r,y:w,width:m,height:y},-e.strokeWidth()));this.isDirtyBox=!1},propFromSeries:function(){var a=this,b=a.options.chart,c,h=a.options.series,f,e;d(["inverted","angular","polar"],function(d){c=y[b.type||b.defaultSeriesType];e=b[d]||c&&c.prototype[d];for(f=h&&h.length;!e&&f--;)(c=y[h[f].type])&&c.prototype[d]&&(e=!0);a[d]=e})},linkSeries:function(){var a=this,b=
a.series;d(b,function(a){a.linkedSeries.length=0});d(b,function(b){var c=b.options.linkedTo;m(c)&&(c=":previous"===c?a.series[b.index-1]:a.get(c))&&c.linkedParent!==b&&(c.linkedSeries.push(b),b.linkedParent=c,b.visible=G(b.options.visible,c.options.visible,b.visible))})},renderSeries:function(){d(this.series,function(a){a.translate();a.render()})},renderLabels:function(){var a=this,b=a.options.labels;b.items&&d(b.items,function(c){var d=k(b.style,c.style),h=w(d.left)+a.plotLeft,f=w(d.top)+a.plotTop+
12;delete d.left;delete d.top;a.renderer.text(c.html,h,f).attr({zIndex:2}).css(d).add()})},render:function(){var a=this.axes,b=this.renderer,c=this.options,h,f,e;this.setTitle();this.legend=new F(this,c.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();c=this.plotWidth;h=this.plotHeight-=21;d(a,function(a){a.setScale()});this.getAxisMargins();f=1.1<c/this.plotWidth;e=1.05<h/this.plotHeight;if(f||e)d(a,function(a){(a.horiz&&f||!a.horiz&&e)&&a.setTickInterval(!0)}),this.getMargins();
this.drawChartBox();this.hasCartesianSeries&&d(a,function(a){a.visible&&a.render()});this.seriesGroup||(this.seriesGroup=b.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0},addCredits:function(a){var b=this;a=x(!0,this.options.credits,a);a.enabled&&!this.credits&&(this.credits=this.renderer.text(a.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){a.href&&
(O.location.href=a.href)}).attr({align:a.position.align,zIndex:8}).add().align(a.position),this.credits.update=function(a){b.credits=b.credits.destroy();b.addCredits(a)})},destroy:function(){var b=this,c=b.axes,h=b.series,e=b.container,g,k=e&&e.parentNode;f(b,"destroy");b.renderer.forExport?a.erase(l,b):l[b.index]=void 0;a.chartCount--;b.renderTo.removeAttribute("data-highcharts-chart");D(b);for(g=c.length;g--;)c[g]=c[g].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(g=
h.length;g--;)h[g]=h[g].destroy();d("title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" "),function(a){var c=b[a];c&&c.destroy&&(b[a]=c.destroy())});e&&(e.innerHTML="",D(e),k&&t(e));I(b,function(a,c){delete b[c]})},isReadyToRender:function(){var a=this;return h||O!=O.top||"complete"===C.readyState?!0:(C.attachEvent("onreadystatechange",function(){C.detachEvent("onreadystatechange",
a.firstRender);"complete"===C.readyState&&a.firstRender()}),!1)},firstRender:function(){var a=this,b=a.options;if(a.isReadyToRender()){a.getContainer();f(a,"init");a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();d(b.series||[],function(b){a.initSeries(b)});a.linkSeries();f(a,"beforeRender");u&&(a.pointer=new u(a,b));a.render();if(!a.renderer.imgCount&&a.onload)a.onload();a.temporaryDisplay(!0)}},onload:function(){d([this.callback].concat(this.callbacks),function(a){a&&void 0!==this.index&&
a.apply(this,[this])},this);f(this,"load");f(this,"render");n(this.index)&&!1!==this.options.chart.reflow&&this.initReflow();this.onload=null}})})(L);(function(a){var z,A=a.each,E=a.extend,C=a.erase,q=a.fireEvent,e=a.format,g=a.isArray,t=a.isNumber,l=a.pick,n=a.removeEvent;a.Point=z=function(){};a.Point.prototype={init:function(a,e,g){var d=a.chart.options.chart.colorCount;this.series=a;this.applyOptions(e,g);a.options.colorByPoint?(e=a.colorCounter,a.colorCounter++,a.colorCounter===d&&(a.colorCounter=
0)):e=a.colorIndex;this.colorIndex=l(this.colorIndex,e);a.chart.pointCount++;return this},applyOptions:function(a,e){var d=this.series,f=d.options.pointValKey||d.pointValKey;a=z.prototype.optionsToObject.call(this,a);E(this,a);this.options=this.options?E(this.options,a):a;a.group&&delete this.group;f&&(this.y=this[f]);this.isNull=l(this.isValid&&!this.isValid(),null===this.x||!t(this.y,!0));this.selected&&(this.state="select");"name"in this&&void 0===e&&d.xAxis&&d.xAxis.hasNames&&(this.x=d.xAxis.nameToX(this));
void 0===this.x&&d&&(this.x=void 0===e?d.autoIncrement(this):e);return this},optionsToObject:function(a){var d={},e=this.series,f=e.options.keys,c=f||e.pointArrayMap||["y"],b=c.length,p=0,m=0;if(t(a)||null===a)d[c[0]]=a;else if(g(a))for(!f&&a.length>b&&(e=typeof a[0],"string"===e?d.name=a[0]:"number"===e&&(d.x=a[0]),p++);m<b;)f&&void 0===a[p]||(d[c[m]]=a[p]),p++,m++;else"object"===typeof a&&(d=a,a.dataLabels&&(e._hasPointLabels=!0),a.marker&&(e._hasPointMarkers=!0));return d},getClassName:function(){return"highcharts-point"+
(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){var a=this.series,e=a.zones,a=a.zoneAxis||"y",g=0,f;for(f=e[g];this[a]>=f.value;)f=e[++g];f&&f.color&&!this.options.color&&(this.color=
f.color);return f},destroy:function(){var a=this.series.chart,e=a.hoverPoints,g;a.pointCount--;e&&(this.setState(),C(e,this),e.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)n(this),this.destroyElements();this.legendItem&&a.legend.destroyItem(this);for(g in this)this[g]=null},destroyElements:function(){for(var a=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],e,g=6;g--;)e=a[g],this[e]&&(this[e]=this[e].destroy())},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}},tooltipFormatter:function(a){var d=this.series,g=d.tooltipOptions,f=l(g.valueDecimals,""),c=g.valuePrefix||"",b=g.valueSuffix||"";A(d.pointArrayMap||["y"],function(d){d="{point."+d;if(c||b)a=a.replace(d+"}",c+d+"}"+b);a=a.replace(d+"}",d+":,."+f+"f}")});return e(a,{point:this,series:this.series})},firePointEvent:function(a,e,
g){var d=this,c=this.series.options;(c.point.events[a]||d.options&&d.options.events&&d.options.events[a])&&this.importEvents();"click"===a&&c.allowPointSelect&&(g=function(a){d.select&&d.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});q(this,a,e,g)},visible:!0}})(L);(function(a){var z=a.addEvent,A=a.animObject,E=a.arrayMax,C=a.arrayMin,q=a.correctFloat,e=a.Date,g=a.defaultOptions,t=a.defined,l=a.each,n=a.erase,d=a.extend,k=a.fireEvent,v=a.grep,f=a.isArray,c=a.isNumber,b=a.isString,p=a.merge,m=a.objectEach,
F=a.pick,H=a.removeEvent,x=a.splat,I=a.SVGElement,u=a.syncTimeout,G=a.win;a.Series=a.seriesType("line",null,{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{radius:4,states:{hover:{animation:{duration:50},enabled:!0,radiusPlus:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":a.numberFormat(this.y,-1)},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{hover:{animation:{duration:50},
lineWidthPlus:1,marker:{},halo:{size:10}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(a,b){var c=this,f,h=a.series,e;c.chart=a;c.options=b=c.setOptions(b);c.linkedSeries=[];c.bindAxes();d(c,{name:b.name,state:"",visible:!1!==b.visible,selected:!0===b.selected});f=b.events;m(f,function(a,b){z(c,
b,a)});if(f&&f.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;c.getColor();c.getSymbol();l(c.parallelArrays,function(a){c[a+"Data"]=[]});c.setData(b.data,!1);c.isCartesian&&(a.hasCartesianSeries=!0);h.length&&(e=h[h.length-1]);c._i=F(e&&e._i,-1)+1;a.orderSeries(this.insert(h))},insert:function(a){var b=this.options.index,d;if(c(b)){for(d=a.length;d--;)if(b>=F(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);
return F(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;l(b.axisTypes||[],function(h){l(d[h],function(a){f=a.options;if(c[h]===f.index||void 0!==c[h]&&c[h]===f.id||void 0===c[h]&&0===f.index)b.insert(a.series),b[h]=a,a.isDirty=!0});b[h]||b.optionalAxis===h||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,f=arguments,h=c(b)?function(c){var h="y"===c&&d.toYData?d.toYData(a):a[c];d[c+"Data"][b]=h}:function(a){Array.prototype[b].apply(d[a+"Data"],Array.prototype.slice.call(f,
2))};l(d.parallelArrays,h)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,d=a.pointIntervalUnit,b=F(b,a.pointStart,0);this.pointInterval=c=F(this.pointInterval,a.pointInterval,1);d&&(a=new e(b),"day"===d?a=+a[e.hcSetDate](a[e.hcGetDate]()+c):"month"===d?a=+a[e.hcSetMonth](a[e.hcGetMonth]()+c):"year"===d&&(a=+a[e.hcSetFullYear](a[e.hcGetFullYear]()+c)),c=a-b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,c=b.options,d=c.plotOptions,h=(b.userOptions||{}).plotOptions||
{},f=d[this.type];this.userOptions=a;b=p(f,d.series,a);this.tooltipOptions=p(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,c.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=F(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===f.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=
(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+"Threshold"]||b.threshold||0,className:"highcharts-negative"});a.length&&t(a[a.length-1].value)&&a.push({});return b},getCyclic:function(a,b,c){var d,h=this.chart,f=this.userOptions,e=a+"Index",g=a+"Counter",k=c?c.length:F(h.options.chart[a+"Count"],h[a+"Count"]);b||(d=F(f[e],f["_"+e]),t(d)||(h.series.length||(h[g]=0),f["_"+e]=d=h[g]%k,h[g]+=1),c&&(b=c[d]));void 0!==d&&(this[e]=d);this[a]=b},getColor:function(){this.getCyclic("color")},
getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,setData:function(d,e,g,k){var h=this,r=h.points,m=r&&r.length||0,w,p=h.options,n=h.chart,u=null,y=h.xAxis,D=p.turboThreshold,q=this.xData,x=this.yData,t=(w=h.pointArrayMap)&&w.length;d=d||[];w=d.length;e=F(e,!0);if(!1!==k&&w&&m===w&&!h.cropped&&!h.hasGroupedData&&h.visible)l(d,function(a,b){r[b].update&&a!==p.data[b]&&r[b].update(a,!1,null,!1)});
else{h.xIncrement=null;h.colorCounter=0;l(this.parallelArrays,function(a){h[a+"Data"].length=0});if(D&&w>D){for(g=0;null===u&&g<w;)u=d[g],g++;if(c(u))for(g=0;g<w;g++)q[g]=this.autoIncrement(),x[g]=d[g];else if(f(u))if(t)for(g=0;g<w;g++)u=d[g],q[g]=u[0],x[g]=u.slice(1,t+1);else for(g=0;g<w;g++)u=d[g],q[g]=u[0],x[g]=u[1];else a.error(12)}else for(g=0;g<w;g++)void 0!==d[g]&&(u={series:h},h.pointClass.prototype.applyOptions.apply(u,[d[g]]),h.updateParallelArrays(u,g));x&&b(x[0])&&a.error(14,!0);h.data=
[];h.options.data=h.userOptions.data=d;for(g=m;g--;)r[g]&&r[g].destroy&&r[g].destroy();y&&(y.minRange=y.userMinRange);h.isDirty=n.isDirtyBox=!0;h.isDirtyData=!!r;g=!1}"point"===p.legendType&&(this.processData(),this.generatePoints());e&&n.redraw(g)},processData:function(b){var c=this.xData,d=this.yData,f=c.length,h;h=0;var e,g,k=this.xAxis,m,w=this.options;m=w.cropThreshold;var l=this.getExtremesFromAll||w.getExtremesFromAll,p=this.isCartesian,w=k&&k.val2lin,n=k&&k.isLog,u,q;if(p&&!this.isDirty&&
!k.isDirty&&!this.yAxis.isDirty&&!b)return!1;k&&(b=k.getExtremes(),u=b.min,q=b.max);if(p&&this.sorted&&!l&&(!m||f>m||this.forceCrop))if(c[f-1]<u||c[0]>q)c=[],d=[];else if(c[0]<u||c[f-1]>q)h=this.cropData(this.xData,this.yData,u,q),c=h.xData,d=h.yData,h=h.start,e=!0;for(m=c.length||1;--m;)f=n?w(c[m])-w(c[m-1]):c[m]-c[m-1],0<f&&(void 0===g||f<g)?g=f:0>f&&this.requireSorting&&a.error(15);this.cropped=e;this.cropStart=h;this.processedXData=c;this.processedYData=d;this.closestPointRange=g},cropData:function(a,
b,c,d){var h=a.length,f=0,e=h,g=F(this.cropShoulder,1),k;for(k=0;k<h;k++)if(a[k]>=c){f=Math.max(0,k-g);break}for(c=k;c<h;c++)if(a[c]>d){e=c+g;break}return{xData:a.slice(f,e),yData:b.slice(f,e),start:f,end:e}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,d,h=this.processedXData,f=this.processedYData,e=this.pointClass,g=h.length,k=this.cropStart||0,m,l=this.hasGroupedData,a=a.keys,p,n=[],u;c||l||(c=[],c.length=b.length,c=this.data=c);a&&l&&(this.options.keys=!1);for(u=0;u<g;u++)m=
k+u,l?(p=(new e).init(this,[h[u]].concat(x(f[u]))),p.dataGroup=this.groupMap[u]):(p=c[m])||void 0===b[m]||(c[m]=p=(new e).init(this,b[m],h[u])),p&&(p.index=m,n[u]=p);this.options.keys=a;if(c&&(g!==(d=c.length)||l))for(u=0;u<d;u++)u!==k||l||(u+=g),c[u]&&(c[u].destroyElements(),c[u].plotX=void 0);this.data=c;this.points=n},getExtremes:function(a){var b=this.yAxis,d=this.processedXData,e,h=[],g=0;e=this.xAxis.getExtremes();var k=e.min,m=e.max,p,l,w,n;a=a||this.stackedYData||this.processedYData||[];e=
a.length;for(n=0;n<e;n++)if(l=d[n],w=a[n],p=(c(w,!0)||f(w))&&(!b.positiveValuesOnly||w.length||0<w),l=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(d[n+1]||l)>=k&&(d[n-1]||l)<=m,p&&l)if(p=w.length)for(;p--;)null!==w[p]&&(h[g++]=w[p]);else h[g++]=w;this.dataMin=C(h);this.dataMax=E(h)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,d=this.xAxis,f=d.categories,h=this.yAxis,e=this.points,g=e.length,k=!!this.modifyValue,
m=a.pointPlacement,p="between"===m||c(m),l=a.threshold,n=a.startFromThreshold?l:0,u,x,I,G,v=Number.MAX_VALUE;"between"===m&&(m=.5);c(m)&&(m*=F(a.pointRange||d.pointRange));for(a=0;a<g;a++){var H=e[a],A=H.x,z=H.y;x=H.low;var C=b&&h.stacks[(this.negStacks&&z<(n?0:l)?"-":"")+this.stackKey],E;h.positiveValuesOnly&&null!==z&&0>=z&&(H.isNull=!0);H.plotX=u=q(Math.min(Math.max(-1E5,d.translate(A,0,0,0,1,m,"flags"===this.type)),1E5));b&&this.visible&&!H.isNull&&C&&C[A]&&(G=this.getStackIndicator(G,A,this.index),
E=C[A],z=E.points[G.key],x=z[0],z=z[1],x===n&&G.key===C[A].base&&(x=F(l,h.min)),h.positiveValuesOnly&&0>=x&&(x=null),H.total=H.stackTotal=E.total,H.percentage=E.total&&H.y/E.total*100,H.stackY=z,E.setOffset(this.pointXOffset||0,this.barW||0));H.yBottom=t(x)?h.translate(x,0,1,0,1):null;k&&(z=this.modifyValue(z,H));H.plotY=x="number"===typeof z&&Infinity!==z?Math.min(Math.max(-1E5,h.translate(z,0,1,0,1)),1E5):void 0;H.isInside=void 0!==x&&0<=x&&x<=h.len&&0<=u&&u<=d.len;H.clientX=p?q(d.translate(A,0,
0,0,1,m)):u;H.negative=H.y<(l||0);H.category=f&&void 0!==f[H.x]?f[H.x]:H.x;H.isNull||(void 0!==I&&(v=Math.min(v,Math.abs(u-I))),I=u);H.zone=this.zones.length&&H.getZone()}this.closestPointRangePx=v},getValidPoints:function(a,b){var c=this.chart;return v(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,d=b.renderer,h=b.inverted,f=this.clipBox,e=f||b.clipBox,g=this.sharedClipKey||["_sharedClip",a&&
a.duration,a&&a.easing,e.height,c.xAxis,c.yAxis].join(),k=b[g],m=b[g+"m"];k||(a&&(e.width=0,h&&(e.x=b.plotSizeX),b[g+"m"]=m=d.clipRect(h?b.plotSizeX+99:-99,h?-b.plotLeft:-b.plotTop,99,h?b.chartWidth:b.chartHeight)),b[g]=k=d.clipRect(e),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||f?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=g);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),0===k.count.length&&
g&&b[g]&&(f||(b[g]=b[g].destroy()),b[g+"m"]&&(b[g+"m"]=b[g+"m"].destroy())))},animate:function(a){var b=this.chart,c=A(this.options.animation),d;a?this.setClip(c):(d=this.sharedClipKey,(a=b[d])&&a.animate({width:b.plotSizeX,x:0},c),b[d+"m"]&&b[d+"m"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();k(this,"afterAnimate");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,f,h,e,g=this.options.marker,k,m,l,p,n=this[this.specialGroup]||
this.markerGroup,u=F(g.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=2*g.radius);if(!1!==g.enabled||this._hasPointMarkers)for(f=0;f<a.length;f++)h=a[f],d=h.plotY,e=h.graphic,k=h.marker||{},m=!!h.marker,l=u&&void 0===k.enabled||k.enabled,p=h.isInside,l&&c(d)&&null!==h.y?(d=F(k.symbol,this.symbol),h.hasImage=0===d.indexOf("url"),l=this.markerAttribs(h,h.selected&&"select"),e?e[p?"show":"hide"](!0).animate(l):p&&(0<l.width||h.hasImage)&&(h.graphic=e=b.renderer.symbol(d,l.x,l.y,l.width,
l.height,m?k:g).add(n)),e&&e.addClass(h.getClassName(),!0)):e&&(h.graphic=e.destroy())},markerAttribs:function(a,b){var c=this.options.marker,d=a.marker||{},h=F(d.radius,c.radius);b&&(c=c.states[b],b=d.states&&d.states[b],h=F(b&&b.radius,c&&c.radius,h+(c&&c.radiusPlus||0)));a.hasImage&&(h=0);a={x:Math.floor(a.plotX)-h,y:a.plotY-h};h&&(a.width=a.height=2*h);return a},destroy:function(){var a=this,b=a.chart,c=/AppleWebKit\/533/.test(G.navigator.userAgent),d,h,f=a.data||[],e,g;k(a,"destroy");H(a);l(a.axisTypes||
[],function(b){(g=a[b])&&g.series&&(n(g.series,a),g.isDirty=g.forceRedraw=!0)});a.legendItem&&a.chart.legend.destroyItem(a);for(h=f.length;h--;)(e=f[h])&&e.destroy&&e.destroy();a.points=null;clearTimeout(a.animationTimeout);m(a,function(a,b){a instanceof I&&!a.survive&&(d=c&&"group"===b?"hide":"destroy",a[d]())});b.hoverSeries===a&&(b.hoverSeries=null);n(b.series,a);b.orderSeries();m(a,function(b,c){delete a[c]})},getGraphPath:function(a,b,c){var d=this,h=d.options,f=h.step,e,g=[],k=[],m;a=a||d.points;
(e=a.reversed)&&a.reverse();(f={right:1,center:2}[f]||f&&3)&&e&&(f=4-f);!h.connectNulls||b||c||(a=this.getValidPoints(a));l(a,function(e,l){var p=e.plotX,r=e.plotY,n=a[l-1];(e.leftCliff||n&&n.rightCliff)&&!c&&(m=!0);e.isNull&&!t(b)&&0<l?m=!h.connectNulls:e.isNull&&!b?m=!0:(0===l||m?l=["M",e.plotX,e.plotY]:d.getPointSpline?l=d.getPointSpline(a,e,l):f?(l=1===f?["L",n.plotX,r]:2===f?["L",(n.plotX+p)/2,n.plotY,"L",(n.plotX+p)/2,r]:["L",p,n.plotY],l.push("L",p,r)):l=["L",p,r],k.push(e.x),f&&k.push(e.x),
g.push.apply(g,l),m=!1)});g.xMap=k;return d.graphPath=g},drawGraph:function(){var a=this,b=(this.gappedPath||this.getGraphPath).call(this),c=[["graph","highcharts-graph"]];l(this.zones,function(a,b){c.push(["zone-graph-"+b,"highcharts-graph highcharts-zone-graph-"+b+" "+(a.className||"")])});l(c,function(c,d){d=c[0];var h=a[d];h?(h.endX=b.xMap,h.animate({d:b})):b.length&&(a[d]=a.chart.renderer.path(b).addClass(c[1]).attr({zIndex:1}).add(a.group));h&&(h.startX=b.xMap,h.isArea=b.isArea)})},applyZones:function(){var a=
this,b=this.chart,c=b.renderer,d=this.zones,h,f,e=this.clips||[],g,k=this.graph,m=this.area,p=Math.max(b.chartWidth,b.chartHeight),n=this[(this.zoneAxis||"y")+"Axis"],u,x,q=b.inverted,t,I,G,v,H=!1;d.length&&(k||m)&&n&&void 0!==n.min&&(x=n.reversed,t=n.horiz,k&&k.hide(),m&&m.hide(),u=n.getExtremes(),l(d,function(d,l){h=x?t?b.plotWidth:0:t?0:n.toPixels(u.min);h=Math.min(Math.max(F(f,h),0),p);f=Math.min(Math.max(Math.round(n.toPixels(F(d.value,u.max),!0)),0),p);H&&(h=f=n.toPixels(u.max));I=Math.abs(h-
f);G=Math.min(h,f);v=Math.max(h,f);n.isXAxis?(g={x:q?v:G,y:0,width:I,height:p},t||(g.x=b.plotHeight-g.x)):(g={x:0,y:q?v:G,width:p,height:I},t&&(g.y=b.plotWidth-g.y));e[l]?e[l].animate(g):(e[l]=c.clipRect(g),k&&a["zone-graph-"+l].clip(e[l]),m&&a["zone-area-"+l].clip(e[l]));H=d.value>u.max}),this.clips=e)},invertGroups:function(a){function b(){l(["group","markerGroup"],function(b){c[b]&&(d.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,
c[b].invert(a))})}var c=this,d=c.chart,h;c.xAxis&&(h=z(d,"resize",b),z(c,"destroy",h),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,d,h){var f=this[a],e=!f;e&&(this[a]=f=this.chart.renderer.g().attr({zIndex:d||.1}).add(h));f.addClass("highcharts-"+b+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(t(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(f.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);f.attr({visibility:c})[e?
"attr":"animate"](this.getPlotBox());return f},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,c,d=a.options,f=!!a.animate&&b.renderer.isSVG&&A(d.animation).duration,e=a.visible?"inherit":"hidden",g=d.zIndex,k=a.hasRendered,m=b.seriesGroup,l=b.inverted;c=a.plotGroup("group","series",e,g,m);a.markerGroup=a.plotGroup("markerGroup",
"markers",e,g,m);f&&a.animate(!0);c.inverted=a.isCartesian?l:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(l);!1===d.clip||a.sharedClipKey||k||c.clip(b.clipRect);f&&a.animate();k||(a.animationTimeout=u(function(){a.afterAnimate()},f));a.isDirty=!1;a.hasRendered=!0},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,d=this.xAxis,
f=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:F(d&&d.left,a.plotLeft),translateY:F(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(a,b){var c=this.xAxis,d=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:f?d.len-a.chartX+d.pos:a.chartY-d.pos},b)},buildKDTree:function(){function a(c,d,f){var h,e;if(e=c&&
c.length)return h=b.kdAxisArray[d%f],c.sort(function(a,b){return a[h]-b[h]}),e=Math.floor(e/2),{point:c[e],left:a(c.slice(0,e),d+1,f),right:a(c.slice(e+1),d+1,f)}}this.buildingKdTree=!0;var b=this,c=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;u(function(){b.kdTree=a(b.getValidPoints(null,!b.directTouch),c,c);b.buildingKdTree=!1},b.options.kdNow?0:1)},searchKDTree:function(a,b){function c(a,b,h,k){var m=b.point,l=d.kdAxisArray[h%k],p,n,u=m;n=t(a[f])&&t(m[f])?Math.pow(a[f]-m[f],
2):null;p=t(a[e])&&t(m[e])?Math.pow(a[e]-m[e],2):null;p=(n||0)+(p||0);m.dist=t(p)?Math.sqrt(p):Number.MAX_VALUE;m.distX=t(n)?Math.sqrt(n):Number.MAX_VALUE;l=a[l]-m[l];p=0>l?"left":"right";n=0>l?"right":"left";b[p]&&(p=c(a,b[p],h+1,k),u=p[g]<u[g]?p:m);b[n]&&Math.sqrt(l*l)<u[g]&&(a=c(a,b[n],h+1,k),u=a[g]<u[g]?a:u);return u}var d=this,f=this.kdAxisArray[0],e=this.kdAxisArray[1],g=b?"distX":"dist";b=-1<d.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree();
if(this.kdTree)return c(a,this.kdTree,b,b)}})})(L);(function(a){var z=a.Axis,A=a.Chart,E=a.correctFloat,C=a.defined,q=a.destroyObjectProperties,e=a.each,g=a.format,t=a.objectEach,l=a.pick,n=a.Series;a.StackItem=function(a,e,g,f,c){var b=a.chart.inverted;this.axis=a;this.isNegative=g;this.options=e;this.x=f;this.total=null;this.points={};this.stack=c;this.rightCliff=this.leftCliff=0;this.alignOptions={align:e.align||(b?g?"left":"right":"center"),verticalAlign:e.verticalAlign||(b?"middle":g?"bottom":
"top"),y:l(e.y,b?4:g?14:-6),x:l(e.x,b?g?-6:6:0)};this.textAlign=e.textAlign||(b?g?"right":"left":"center")};a.StackItem.prototype={destroy:function(){q(this,this.axis)},render:function(a){var d=this.options,e=d.format,e=e?g(e,this):d.formatter.call(this);this.label?this.label.attr({text:e,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(e,null,null,d.useHTML).css(d.style).attr({align:this.textAlign,rotation:d.rotation,visibility:"hidden"}).add(a)},setOffset:function(a,e){var d=this.axis,
f=d.chart,c=d.translate(d.usePercentage?100:this.total,0,0,0,1),d=d.translate(0),d=Math.abs(c-d);a=f.xAxis[0].translate(this.x)+a;c=this.getStackBox(f,this,a,c,e,d);if(e=this.label)e.align(this.alignOptions,null,c),c=e.alignAttr,e[!1===this.options.crop||f.isInsidePlot(c.x,c.y)?"show":"hide"](!0)},getStackBox:function(a,e,g,f,c,b){var d=e.axis.reversed,k=a.inverted;a=a.plotHeight;e=e.isNegative&&!d||!e.isNegative&&d;return{x:k?e?f:f-b:g,y:k?a-g-c:e?a-f-b:a-f,width:k?b:c,height:k?c:b}}};A.prototype.getStacks=
function(){var a=this;e(a.yAxis,function(a){a.stacks&&a.hasVisibleSeries&&(a.oldStacks=a.stacks)});e(a.series,function(d){!d.options.stacking||!0!==d.visible&&!1!==a.options.chart.ignoreHiddenSeries||(d.stackKey=d.type+l(d.options.stack,""))})};z.prototype.buildStacks=function(){var a=this.series,e=l(this.options.reversedStacks,!0),g=a.length,f;if(!this.isXAxis){this.usePercentage=!1;for(f=g;f--;)a[e?f:g-f-1].setStackedPoints();for(f=0;f<g;f++)a[f].modifyStacks()}};z.prototype.renderStackTotals=function(){var a=
this.chart,e=a.renderer,g=this.stacks,f=this.stackTotalGroup;f||(this.stackTotalGroup=f=e.g("stack-labels").attr({visibility:"visible",zIndex:6}).add());f.translate(a.plotLeft,a.plotTop);t(g,function(a){t(a,function(a){a.render(f)})})};z.prototype.resetStacks=function(){var a=this,e=a.stacks;a.isXAxis||t(e,function(d){t(d,function(f,c){f.touched<a.stacksTouched?(f.destroy(),delete d[c]):(f.total=null,f.cum=null)})})};z.prototype.cleanStacks=function(){var a;this.isXAxis||(this.oldStacks&&(a=this.stacks=
this.oldStacks),t(a,function(a){t(a,function(a){a.cum=a.total})}))};n.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var d=this.processedXData,e=this.processedYData,g=[],f=e.length,c=this.options,b=c.threshold,p=c.startFromThreshold?b:0,m=c.stack,c=c.stacking,n=this.stackKey,q="-"+n,x=this.negStacks,t=this.yAxis,u=t.stacks,G=t.oldStacks,w,D,y,z,h,r,A;t.stacksTouched+=1;for(h=0;h<f;h++)r=d[h],A=e[h],w=this.getStackIndicator(w,
r,this.index),z=w.key,y=(D=x&&A<(p?0:b))?q:n,u[y]||(u[y]={}),u[y][r]||(G[y]&&G[y][r]?(u[y][r]=G[y][r],u[y][r].total=null):u[y][r]=new a.StackItem(t,t.options.stackLabels,D,r,m)),y=u[y][r],null!==A&&(y.points[z]=y.points[this.index]=[l(y.cum,p)],C(y.cum)||(y.base=z),y.touched=t.stacksTouched,0<w.index&&!1===this.singleStacks&&(y.points[z][0]=y.points[this.index+","+r+",0"][0])),"percent"===c?(D=D?n:q,x&&u[D]&&u[D][r]?(D=u[D][r],y.total=D.total=Math.max(D.total,y.total)+Math.abs(A)||0):y.total=E(y.total+
(Math.abs(A)||0))):y.total=E(y.total+(A||0)),y.cum=l(y.cum,p)+(A||0),null!==A&&(y.points[z].push(y.cum),g[h]=y.cum);"percent"===c&&(t.usePercentage=!0);this.stackedYData=g;t.oldStacks={}}};n.prototype.modifyStacks=function(){var a=this,g=a.stackKey,l=a.yAxis.stacks,f=a.processedXData,c,b=a.options.stacking;a[b+"Stacker"]&&e([g,"-"+g],function(d){for(var e=f.length,g,k;e--;)if(g=f[e],c=a.getStackIndicator(c,g,a.index,d),k=(g=l[d]&&l[d][g])&&g.points[c.key])a[b+"Stacker"](k,g,e)})};n.prototype.percentStacker=
function(a,e,g){e=e.total?100/e.total:0;a[0]=E(a[0]*e);a[1]=E(a[1]*e);this.stackedYData[g]=a[1]};n.prototype.getStackIndicator=function(a,e,g,f){!C(a)||a.x!==e||f&&a.key!==f?a={x:e,index:0,key:f}:a.index++;a.key=[g,e,a.index].join();return a}})(L);(function(a){var z=a.addEvent,A=a.Axis,E=a.createElement,C=a.css,q=a.defined,e=a.each,g=a.erase,t=a.extend,l=a.fireEvent,n=a.inArray,d=a.isNumber,k=a.isObject,v=a.isArray,f=a.merge,c=a.objectEach,b=a.pick,p=a.Point,m=a.Series,F=a.seriesTypes,H=a.setAnimation,
x=a.splat;t(a.Chart.prototype,{addSeries:function(a,c,d){var e,f=this;a&&(c=b(c,!0),l(f,"addSeries",{options:a},function(){e=f.initSeries(a);f.isDirtyLegend=!0;f.linkSeries();c&&f.redraw(d)}));return e},addAxis:function(a,c,d,e){var g=c?"xAxis":"yAxis",k=this.options;a=f(a,{index:this[g].length,isX:c});c=new A(this,a);k[g]=x(k[g]||{});k[g].push(a);b(d,!0)&&this.redraw(e);return c},showLoading:function(a){var b=this,c=b.options,d=b.loadingDiv,e=function(){d&&C(d,{left:b.plotLeft+"px",top:b.plotTop+
"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})};d||(b.loadingDiv=d=E("div",{className:"highcharts-loading highcharts-loading-hidden"},null,b.container),b.loadingSpan=E("span",{className:"highcharts-loading-inner"},null,d),z(b,"redraw",e));d.className="highcharts-loading";b.loadingSpan.innerHTML=a||c.lang.loading;b.loadingShown=!0;e()},hideLoading:function(){var a=this.loadingDiv;a&&(a.className="highcharts-loading highcharts-loading-hidden");this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions tooltip".split(" "),update:function(a,g,k){var m=this,l={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle"},p=a.chart,u,h,r=[];if(p){f(!0,m.options.chart,p);"className"in p&&m.setClassName(p.className);if("inverted"in p||"polar"in p)m.propFromSeries(),u=!0;"alignTicks"in p&&(u=!0);c(p,function(a,b){-1!==n("chart."+b,m.propsRequireUpdateSeries)&&(h=!0);-1!==n(b,m.propsRequireDirtyBox)&&
(m.isDirtyBox=!0)})}a.plotOptions&&f(!0,this.options.plotOptions,a.plotOptions);c(a,function(a,b){if(m[b]&&"function"===typeof m[b].update)m[b].update(a,!1);else if("function"===typeof m[l[b]])m[l[b]](a);"chart"!==b&&-1!==n(b,m.propsRequireUpdateSeries)&&(h=!0)});e("xAxis yAxis zAxis series colorAxis pane".split(" "),function(b){a[b]&&(e(x(a[b]),function(a,c){(c=q(a.id)&&m.get(a.id)||m[b][c])&&c.coll===b&&(c.update(a,!1),k&&(c.touched=!0));if(!c&&k)if("series"===b)m.addSeries(a,!1).touched=!0;else if("xAxis"===
b||"yAxis"===b)m.addAxis(a,"xAxis"===b,!1).touched=!0}),k&&e(m[b],function(a){a.touched?delete a.touched:r.push(a)}))});e(r,function(a){a.remove(!1)});u&&e(m.axes,function(a){a.update({},!1)});h&&e(m.series,function(a){a.update({},!1)});a.loading&&f(!0,m.options.loading,a.loading);u=p&&p.width;p=p&&p.height;d(u)&&u!==m.chartWidth||d(p)&&p!==m.chartHeight?m.setSize(u,p):b(g,!0)&&m.redraw()},setSubtitle:function(a){this.setTitle(void 0,a)}});t(p.prototype,{update:function(a,c,d,e){function f(){g.applyOptions(a);
null===g.y&&h&&(g.graphic=h.destroy());k(a,!0)&&(h&&h.element&&a&&a.marker&&void 0!==a.marker.symbol&&(g.graphic=h.destroy()),a&&a.dataLabels&&g.dataLabel&&(g.dataLabel=g.dataLabel.destroy()));l=g.index;m.updateParallelArrays(g,l);n.data[l]=k(n.data[l],!0)||k(a,!0)?g.options:a;m.isDirty=m.isDirtyData=!0;!m.fixedBox&&m.hasCartesianSeries&&(p.isDirtyBox=!0);"point"===n.legendType&&(p.isDirtyLegend=!0);c&&p.redraw(d)}var g=this,m=g.series,h=g.graphic,l,p=m.chart,n=m.options;c=b(c,!0);!1===e?f():g.firePointEvent("update",
{options:a},f)},remove:function(a,b){this.series.removePoint(n(this,this.series.data),a,b)}});t(m.prototype,{addPoint:function(a,c,d,e){var f=this.options,g=this.data,m=this.chart,h=this.xAxis,h=h&&h.hasNames&&h.names,k=f.data,l,p,n=this.xData,u,q;c=b(c,!0);l={series:this};this.pointClass.prototype.applyOptions.apply(l,[a]);q=l.x;u=n.length;if(this.requireSorting&&q<n[u-1])for(p=!0;u&&n[u-1]>q;)u--;this.updateParallelArrays(l,"splice",u,0,0);this.updateParallelArrays(l,u);h&&l.name&&(h[q]=l.name);
k.splice(u,0,a);p&&(this.data.splice(u,0,null),this.processData());"point"===f.legendType&&this.generatePoints();d&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),this.updateParallelArrays(l,"shift"),k.shift()));this.isDirtyData=this.isDirty=!0;c&&m.redraw(e)},removePoint:function(a,c,d){var e=this,f=e.data,g=f[a],k=e.points,h=e.chart,m=function(){k&&k.length===f.length&&k.splice(a,1);f.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(g||{series:e},"splice",a,1);g&&g.destroy();e.isDirty=
!0;e.isDirtyData=!0;c&&h.redraw()};H(d,h);c=b(c,!0);g?g.firePointEvent("remove",null,m):m()},remove:function(a,c,d){function e(){f.destroy();g.isDirtyLegend=g.isDirtyBox=!0;g.linkSeries();b(a,!0)&&g.redraw(c)}var f=this,g=f.chart;!1!==d?l(f,"remove",null,e):e()},update:function(a,c){var d=this,g=d.chart,k=d.userOptions,m=d.oldType||d.type,l=a.type||k.type||g.options.chart.type,h=F[m].prototype,p,n=["group","markerGroup","dataLabelsGroup"],u=["navigatorSeries","baseSeries"],q=d.finishedAnimating&&
{animation:!1};if(Object.keys&&"data"===Object.keys(a).toString())return this.setData(a.data,c);if(l&&l!==m||void 0!==a.zIndex)n.length=0;d.options.isInternal&&(u.length=0);u=n.concat(u);e(u,function(a){u[a]=d[a];delete d[a]});a=f(k,q,{index:d.index,pointStart:d.xData[0]},{data:d.options.data},a);d.remove(!1,null,!1);for(p in h)d[p]=void 0;t(d,F[l||m].prototype);e(u,function(a){d[a]=u[a]});d.init(g,a);d.oldType=m;g.linkSeries();b(c,!0)&&g.redraw(!1)}});t(A.prototype,{update:function(a,c){var d=this.chart;
a=d.options[this.coll][this.options.index]=f(this.userOptions,a);this.destroy(!0);this.init(d,t(a,{events:void 0}));d.isDirtyBox=!0;b(c,!0)&&d.redraw()},remove:function(a){for(var c=this.chart,d=this.coll,f=this.series,m=f.length;m--;)f[m]&&f[m].remove(!1);g(c.axes,this);g(c[d],this);v(c.options[d])?c.options[d].splice(this.options.index,1):delete c.options[d];e(c[d],function(a,b){a.options.index=b});this.destroy();c.isDirtyBox=!0;b(a,!0)&&c.redraw()},setTitle:function(a,b){this.update({title:a},
b)},setCategories:function(a,b){this.update({categories:a},b)}})})(L);(function(a){var z=a.each,A=a.map,E=a.pick,C=a.Series,q=a.seriesType;q("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(e){var g=[],q=[],l=this.xAxis,n=this.yAxis,d=n.stacks[this.stackKey],k={},v=this.index,f=n.series,c=f.length,b,p=E(n.options.reversedStacks,!0)?1:-1,m;e=e||this.points;if(this.options.stacking){for(m=0;m<e.length;m++)k[e[m].x]=e[m];a.objectEach(d,function(a,b){null!==a.total&&
q.push(b)});q.sort(function(a,b){return a-b});b=A(f,function(){return this.visible});z(q,function(a,e){var f=0,t,u;if(k[a]&&!k[a].isNull)g.push(k[a]),z([-1,1],function(f){var g=1===f?"rightNull":"leftNull",l=0,n=d[q[e+f]];if(n)for(m=v;0<=m&&m<c;)t=n.points[m],t||(m===v?k[a][g]=!0:b[m]&&(u=d[a].points[m])&&(l-=u[1]-u[0])),m+=p;k[a][1===f?"rightCliff":"leftCliff"]=l});else{for(m=v;0<=m&&m<c;){if(t=d[a].points[m]){f=t[1];break}m+=p}f=n.translate(f,0,1,0,1);g.push({isNull:!0,plotX:l.translate(a,0,0,0,
1),x:a,plotY:f,yBottom:f})}})}return g},getGraphPath:function(a){var e=C.prototype.getGraphPath,q=this.options,l=q.stacking,n=this.yAxis,d,k,v=[],f=[],c=this.index,b,p=n.stacks[this.stackKey],m=q.threshold,F=n.getThreshold(q.threshold),H,q=q.connectNulls||"percent"===l,x=function(d,e,g){var k=a[d];d=l&&p[k.x].points[c];var u=k[g+"Null"]||0;g=k[g+"Cliff"]||0;var q,x,k=!0;g||u?(q=(u?d[0]:d[1])+g,x=d[0]+g,k=!!u):!l&&a[e]&&a[e].isNull&&(q=x=m);void 0!==q&&(f.push({plotX:b,plotY:null===q?F:n.getThreshold(q),
isNull:k,isCliff:!0}),v.push({plotX:b,plotY:null===x?F:n.getThreshold(x),doCurve:!1}))};a=a||this.points;l&&(a=this.getStackPoints(a));for(d=0;d<a.length;d++)if(k=a[d].isNull,b=E(a[d].rectPlotX,a[d].plotX),H=E(a[d].yBottom,F),!k||q)q||x(d,d-1,"left"),k&&!l&&q||(f.push(a[d]),v.push({x:d,plotX:b,plotY:H})),q||x(d,d+1,"right");d=e.call(this,f,!0,!0);v.reversed=!0;k=e.call(this,v,!0,!0);k.length&&(k[0]="L");k=d.concat(k);e=e.call(this,f,!1,q);k.xMap=d.xMap;this.areaPath=k;return e},drawGraph:function(){this.areaPath=
[];C.prototype.drawGraph.apply(this);var a=this,g=this.areaPath,q=this.options,l=[["area","highcharts-area"]];z(this.zones,function(a,d){l.push(["zone-area-"+d,"highcharts-area highcharts-zone-area-"+d+" "+a.className])});z(l,function(e){var d=e[0],k=a[d];k?(k.endX=g.xMap,k.animate({d:g})):(k=a[d]=a.chart.renderer.path(g).addClass(e[1]).attr({zIndex:0}).add(a.group),k.isArea=!0);k.startX=g.xMap;k.shiftUnit=q.step?2:1})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle})})(L);(function(a){var z=
a.pick;a=a.seriesType;a("spline","line",{},{getPointSpline:function(a,E,C){var q=E.plotX,e=E.plotY,g=a[C-1];C=a[C+1];var t,l,n,d;if(g&&!g.isNull&&!1!==g.doCurve&&!E.isCliff&&C&&!C.isNull&&!1!==C.doCurve&&!E.isCliff){a=g.plotY;n=C.plotX;C=C.plotY;var k=0;t=(1.5*q+g.plotX)/2.5;l=(1.5*e+a)/2.5;n=(1.5*q+n)/2.5;d=(1.5*e+C)/2.5;n!==t&&(k=(d-l)*(n-q)/(n-t)+e-d);l+=k;d+=k;l>a&&l>e?(l=Math.max(a,e),d=2*e-l):l<a&&l<e&&(l=Math.min(a,e),d=2*e-l);d>C&&d>e?(d=Math.max(C,e),l=2*e-d):d<C&&d<e&&(d=Math.min(C,e),l=
2*e-d);E.rightContX=n;E.rightContY=d}E=["C",z(g.rightContX,g.plotX),z(g.rightContY,g.plotY),z(t,q),z(l,e),q,e];g.rightContX=g.rightContY=null;return E}})})(L);(function(a){var z=a.seriesTypes.area.prototype,A=a.seriesType;A("areaspline","spline",a.defaultPlotOptions.area,{getStackPoints:z.getStackPoints,getGraphPath:z.getGraphPath,drawGraph:z.drawGraph,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle})})(L);(function(a){var z=a.animObject,A=a.each,E=a.extend,C=a.isNumber,q=a.merge,e=a.pick,g=a.Series,
t=a.seriesType,l=a.svg;t("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){g.prototype.init.apply(this,arguments);var a=this,d=a.chart;d.hasRendered&&
A(d.series,function(d){d.type===a.type&&(d.isDirty=!0)})},getColumnMetrics:function(){var a=this,d=a.options,g=a.xAxis,l=a.yAxis,f=g.reversed,c,b={},p=0;!1===d.grouping?p=1:A(a.chart.series,function(d){var f=d.options,e=d.yAxis,g;d.type!==a.type||!d.visible&&a.chart.options.chart.ignoreHiddenSeries||l.len!==e.len||l.pos!==e.pos||(f.stacking?(c=d.stackKey,void 0===b[c]&&(b[c]=p++),g=b[c]):!1!==f.grouping&&(g=p++),d.columnIndex=g)});var m=Math.min(Math.abs(g.transA)*(g.ordinalSlope||d.pointRange||g.closestPointRange||
g.tickInterval||1),g.len),q=m*d.groupPadding,t=(m-2*q)/(p||1),d=Math.min(d.maxPointWidth||g.len,e(d.pointWidth,t*(1-2*d.pointPadding)));a.columnMetrics={width:d,offset:(t-d)/2+(q+((a.columnIndex||0)+(f?1:0))*t-m/2)*(f?-1:1)};return a.columnMetrics},crispCol:function(a,d,e,g){var f=this.chart,c=this.borderWidth,b=-(c%2?.5:0),c=c%2?.5:1;f.inverted&&f.renderer.isVML&&(c+=1);this.options.crisp&&(e=Math.round(a+e)+b,a=Math.round(a)+b,e-=a);g=Math.round(d+g)+c;b=.5>=Math.abs(d)&&.5<g;d=Math.round(d)+c;
g-=d;b&&g&&(--d,g+=1);return{x:a,y:d,width:e,height:g}},translate:function(){var a=this,d=a.chart,k=a.options,l=a.dense=2>a.closestPointRange*a.xAxis.transA,l=a.borderWidth=e(k.borderWidth,l?0:1),f=a.yAxis,c=a.translatedThreshold=f.getThreshold(k.threshold),b=e(k.minPointLength,5),p=a.getColumnMetrics(),m=p.width,q=a.barW=Math.max(m,1+2*l),t=a.pointXOffset=p.offset;d.inverted&&(c-=.5);k.pointPadding&&(q=Math.ceil(q));g.prototype.translate.apply(a);A(a.points,function(g){var k=e(g.yBottom,c),l=999+
Math.abs(k),l=Math.min(Math.max(-l,g.plotY),f.len+l),p=g.plotX+t,n=q,x=Math.min(l,k),y,v=Math.max(l,k)-x;b&&Math.abs(v)<b&&(v=b,y=!f.reversed&&!g.negative||f.reversed&&g.negative,0===g.y&&0>=a.dataMax&&(y=!y),x=Math.abs(x-c)>b?k-b:c-(y?b:0));g.barX=p;g.pointWidth=m;g.tooltipPos=d.inverted?[f.len+f.pos-d.plotLeft-l,a.xAxis.len-p-n/2,v]:[p+n/2,l+f.pos-d.plotTop,v];g.shapeType="rect";g.shapeArgs=a.crispCol.apply(a,g.isNull?[p,c,n,0]:[p,x,n,v])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,
drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},drawPoints:function(){var a=this,d=this.chart,e=a.options,g=d.renderer,f=e.animationLimit||250,c;A(a.points,function(b){var k=b.graphic;if(C(b.plotY)&&null!==b.y){c=b.shapeArgs;if(k)k[d.pointCount<f?"animate":"attr"](q(c));else b.graphic=k=g[b.shapeType](c).add(b.group||a.group);e.borderRadius&&k.attr({r:e.borderRadius});k.addClass(b.getClassName(),!0)}else k&&(b.graphic=k.destroy())})},animate:function(a){var d=
this,e=this.yAxis,g=d.options,f=this.chart.inverted,c={},b=f?"translateX":"translateY",p;l&&(a?(c.scaleY=.001,a=Math.min(e.pos+e.len,Math.max(e.pos,e.toPixels(g.threshold))),f?c.translateX=a-e.len:c.translateY=a,d.group.attr(c)):(p=d.group.attr(b),d.group.animate({scaleY:1},E(z(d.options.animation),{step:function(a,f){c[b]=p+f.pos*(e.pos-p);d.group.attr(c)}})),d.animate=null))},remove:function(){var a=this,d=a.chart;d.hasRendered&&A(d.series,function(d){d.type===a.type&&(d.isDirty=!0)});g.prototype.remove.apply(a,
arguments)}})})(L);(function(a){a=a.seriesType;a("bar","column",null,{inverted:!0})})(L);(function(a){var z=a.Series;a=a.seriesType;a("scatter","line",{lineWidth:0,findNearestPointBy:"xy",marker:{enabled:!0},tooltip:{headerFormat:'\x3cspan class\x3d"highcharts-color-{point.colorIndex}"\x3e\u25cf\x3c/span\x3e \x3cspan class\x3d"highcharts-header"\x3e {series.name}\x3c/span\x3e\x3cbr/\x3e',pointFormat:"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3e"}},{sorted:!1,
requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&z.prototype.drawGraph.call(this)}})})(L);(function(a){var z=a.deg2rad,A=a.isNumber,E=a.pick,C=a.relativeLength;a.CenteredSeriesMixin={getCenter:function(){var a=this.options,e=this.chart,g=2*(a.slicedOffset||0),t=e.plotWidth-2*g,e=e.plotHeight-2*g,l=a.center,l=[E(l[0],"50%"),E(l[1],"50%"),a.size||"100%",a.innerSize||0],n=Math.min(t,e),d,k;
for(d=0;4>d;++d)k=l[d],a=2>d||2===d&&/%$/.test(k),l[d]=C(k,[t,e,n,l[2]][d])+(a?g:0);l[3]>l[2]&&(l[3]=l[2]);return l},getStartAndEndRadians:function(a,e){a=A(a)?a:0;e=A(e)&&e>a&&360>e-a?e:a+360;return{start:z*(a+-90),end:z*(e+-90)}}}})(L);(function(a){var z=a.addEvent,A=a.CenteredSeriesMixin,E=a.defined,C=a.each,q=a.extend,e=A.getStartAndEndRadians,g=a.inArray,t=a.noop,l=a.pick,n=a.Point,d=a.Series,k=a.seriesType,v=a.setAnimation;k("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,
enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,d=c.startAngleRad;a||(C(b,function(a){var b=a.graphic,
e=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:d,end:d}),b.animate({r:e.r,start:e.start,end:e.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,d=b.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a<d;a++)e=b[a],c+=g&&!e.visible?0:e.isNull?0:e.y;this.total=c;for(a=0;a<d;a++)e=b[a],e.percentage=0<c&&(e.visible||!g)?e.y/c*100:0,e.total=c},generatePoints:function(){d.prototype.generatePoints.call(this);this.updateTotals()},translate:function(a){this.generatePoints();
var c=0,b=this.options,d=b.slicedOffset,f=d+(b.borderWidth||0),g,k,n,q=e(b.startAngle,b.endAngle),u=this.startAngleRad=q.start,q=(this.endAngleRad=q.end)-u,t=this.points,w,D=b.dataLabels.distance,b=b.ignoreHiddenPoint,y,v=t.length,h;a||(this.center=a=this.getCenter());this.getX=function(b,c,d){n=Math.asin(Math.min((b-a[1])/(a[2]/2+d.labelDistance),1));return a[0]+(c?-1:1)*Math.cos(n)*(a[2]/2+d.labelDistance)};for(y=0;y<v;y++){h=t[y];h.labelDistance=l(h.options.dataLabels&&h.options.dataLabels.distance,
D);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,h.labelDistance);g=u+c*q;if(!b||h.visible)c+=h.percentage/100;k=u+c*q;h.shapeType="arc";h.shapeArgs={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*g)/1E3,end:Math.round(1E3*k)/1E3};n=(k+g)/2;n>1.5*Math.PI?n-=2*Math.PI:n<-Math.PI/2&&(n+=2*Math.PI);h.slicedTranslation={translateX:Math.round(Math.cos(n)*d),translateY:Math.round(Math.sin(n)*d)};k=Math.cos(n)*a[2]/2;w=Math.sin(n)*a[2]/2;h.tooltipPos=[a[0]+.7*k,a[1]+.7*w];h.half=n<-Math.PI/
2||n>Math.PI/2?1:0;h.angle=n;g=Math.min(f,h.labelDistance/5);h.labelPos=[a[0]+k+Math.cos(n)*h.labelDistance,a[1]+w+Math.sin(n)*h.labelDistance,a[0]+k+Math.cos(n)*g,a[1]+w+Math.sin(n)*g,a[0]+k,a[1]+w,0>h.labelDistance?"center":h.half?"right":"left",n]}},drawGraph:null,drawPoints:function(){var a=this,c=a.chart.renderer,b,d,e;C(a.points,function(f){d=f.graphic;f.isNull?d&&(f.graphic=d.destroy()):(e=f.shapeArgs,b=f.getTranslate(),d?d.setRadialReference(a.center).animate(q(e,b)):(f.graphic=d=c[f.shapeType](e).setRadialReference(a.center).attr(b).add(a.group),
f.visible||d.attr({visibility:"hidden"})),d.addClass(f.getClassName()))})},searchPoint:t,sortByAngle:function(a,c){a.sort(function(a,d){return void 0!==a.angle&&(d.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:A.getCenter,getSymbol:t},{init:function(){n.prototype.init.apply(this,arguments);var a=this,c;a.name=l(a.name,"Slice");c=function(b){a.slice("select"===b.type)};z(a,"select",c);z(a,"unselect",c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=
this.y},setVisible:function(a,c){var b=this,d=b.series,e=d.chart,f=d.options.ignoreHiddenPoint;c=l(c,f);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,d.options.data[g(b,d.data)]=b.options,C(["graphic","dataLabel","connector","shadowGroup"],function(c){if(b[c])b[c][a?"show":"hide"](!0)}),b.legendItem&&e.legend.colorizeItem(b,a),a||"hover"!==b.state||b.setState(""),f&&(d.isDirty=!0),c&&e.redraw())},slice:function(a,c,b){var d=this.series;v(b,d.chart);l(c,!0);this.sliced=this.options.sliced=
E(a)?a:!this.sliced;d.options.data[g(this,d.data)]=this.options;this.graphic.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},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:this.shapeArgs.r,start:c.start,end:c.end})}})})(L);(function(a){var z=a.addEvent,A=a.arrayMax,E=a.defined,C=a.each,q=a.extend,e=a.format,g=a.map,t=a.merge,
l=a.noop,n=a.pick,d=a.relativeLength,k=a.Series,v=a.seriesTypes,f=a.stableSort;a.distribute=function(a,b){function c(a,b){return a.target-b.target}var d,e=!0,k=a,l=[],n;n=0;for(d=a.length;d--;)n+=a[d].size;if(n>b){f(a,function(a,b){return(b.rank||0)-(a.rank||0)});for(n=d=0;n<=b;)n+=a[d].size,d++;l=a.splice(d-1,a.length)}f(a,c);for(a=g(a,function(a){return{size:a.size,targets:[a.target]}});e;){for(d=a.length;d--;)e=a[d],n=(Math.min.apply(0,e.targets)+Math.max.apply(0,e.targets))/2,e.pos=Math.min(Math.max(0,
n-e.size/2),b-e.size);d=a.length;for(e=!1;d--;)0<d&&a[d-1].pos+a[d-1].size>a[d].pos&&(a[d-1].size+=a[d].size,a[d-1].targets=a[d-1].targets.concat(a[d].targets),a[d-1].pos+a[d-1].size>b&&(a[d-1].pos=b-a[d-1].size),a.splice(d,1),e=!0)}d=0;C(a,function(a){var b=0;C(a.targets,function(){k[d].pos=a.pos+b;b+=k[d].size;d++})});k.push.apply(k,l);f(k,c)};k.prototype.drawDataLabels=function(){var c=this,b=c.options,d=b.dataLabels,f=c.points,g,k,l=c.hasRendered||0,q,u,v=n(d.defer,!!b.animation),w=c.chart.renderer;
if(d.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(d),u=c.plotGroup("dataLabelsGroup","data-labels",v&&!l?"hidden":"visible",d.zIndex||6),v&&(u.attr({opacity:+l}),l||z(c,"afterAnimate",function(){c.visible&&u.show(!0);u[b.animation?"animate":"attr"]({opacity:1},{duration:200})})),k=d,C(f,function(b){var f,l=b.dataLabel,h,m,p=b.connector,x=!l,v;g=b.dlOptions||b.options&&b.options.dataLabels;if(f=n(g&&g.enabled,k.enabled)&&!b.isNull)d=t(k,g),h=b.getLabelConfig(),v=d[b.formatPrefix+
"Format"]||d.format,q=E(v)?e(v,h):d.formatter.call(h,d),h=d.rotation,m={r:d.borderRadius||0,rotation:h,padding:d.padding,zIndex:1},a.objectEach(m,function(a,b){void 0===a&&delete m[b]});!l||f&&E(q)?f&&E(q)&&(l?m.text=q:(l=b.dataLabel=w[h?"text":"label"](q,0,-9999,d.shape,null,null,d.useHTML,null,"data-label"),l.addClass("highcharts-data-label-color-"+b.colorIndex+" "+(d.className||"")+(d.useHTML?"highcharts-tracker":""))),l.attr(m),l.added||l.add(u),c.alignDataLabel(b,l,d,null,x)):(b.dataLabel=l=
l.destroy(),p&&(b.connector=p.destroy()))})};k.prototype.alignDataLabel=function(a,b,d,e,f){var c=this.chart,g=c.inverted,k=n(a.plotX,-9999),l=n(a.plotY,-9999),m=b.getBBox(),p,t=d.rotation,y=d.align,v=this.visible&&(a.series.forceDL||c.isInsidePlot(k,Math.round(l),g)||e&&c.isInsidePlot(k,g?e.x+1:e.y+e.height-1,g)),h="justify"===n(d.overflow,"justify");if(v&&(p=c.renderer.fontMetrics(void 0,b).b,e=q({x:g?this.yAxis.len-l:k,y:Math.round(g?this.xAxis.len-k:l),width:0,height:0},e),q(d,{width:m.width,
height:m.height}),t?(h=!1,k=c.renderer.rotCorr(p,t),k={x:e.x+d.x+e.width/2+k.x,y:e.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*e.height},b[f?"attr":"animate"](k).attr({align:y}),l=(t+720)%360,l=180<l&&360>l,"left"===y?k.y-=l?m.height:0:"center"===y?(k.x-=m.width/2,k.y-=m.height/2):"right"===y&&(k.x-=m.width,k.y-=l?0:m.height)):(b.align(d,null,e),k=b.alignAttr),h?a.isLabelJustified=this.justifyDataLabel(b,d,k,m,e,f):n(d.crop,!0)&&(v=c.isInsidePlot(k.x,k.y)&&c.isInsidePlot(k.x+m.width,k.y+m.height)),
d.shape&&!t))b[f?"attr":"animate"]({anchorX:g?c.plotWidth-a.plotY:a.plotX,anchorY:g?c.plotHeight-a.plotX:a.plotY});v||(b.attr({y:-9999}),b.placed=!1)};k.prototype.justifyDataLabel=function(a,b,d,e,f,g){var c=this.chart,k=b.align,l=b.verticalAlign,m,n,p=a.box?0:a.padding||0;m=d.x+p;0>m&&("right"===k?b.align="left":b.x=-m,n=!0);m=d.x+e.width-p;m>c.plotWidth&&("left"===k?b.align="right":b.x=c.plotWidth-m,n=!0);m=d.y+p;0>m&&("bottom"===l?b.verticalAlign="top":b.y=-m,n=!0);m=d.y+e.height-p;m>c.plotHeight&&
("top"===l?b.verticalAlign="bottom":b.y=c.plotHeight-m,n=!0);n&&(a.placed=!g,a.align(b,null,f));return n};v.pie&&(v.pie.prototype.drawDataLabels=function(){var c=this,b=c.data,d,e=c.chart,f=c.options.dataLabels,g=n(f.connectorPadding,10),l=n(f.connectorWidth,1),q=e.plotWidth,u=e.plotHeight,t,w=c.center,v=w[2]/2,y=w[1],z,h,r,O,J=[[],[]],B,N,L,Q,P=[0,0,0,0];c.visible&&(f.enabled||c._hasPointLabels)&&(C(b,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",
textOverflow:"clip"}),a.dataLabel.shortened=!1)}),k.prototype.drawDataLabels.apply(c),C(b,function(a){a.dataLabel&&a.visible&&(J[a.half].push(a),a.dataLabel._pos=null)}),C(J,function(b,k){var l,m,p=b.length,t=[],x;if(p)for(c.sortByAngle(b,k-.5),0<c.maxLabelDistance&&(l=Math.max(0,y-v-c.maxLabelDistance),m=Math.min(y+v+c.maxLabelDistance,e.plotHeight),C(b,function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,y-v-a.labelDistance),a.bottom=Math.min(y+v+a.labelDistance,e.plotHeight),x=a.dataLabel.getBBox().height||
21,a.positionsIndex=t.push({target:a.labelPos[1]-a.top+x/2,size:x,rank:a.y})-1)}),a.distribute(t,m+x-l)),Q=0;Q<p;Q++)d=b[Q],m=d.positionsIndex,r=d.labelPos,z=d.dataLabel,L=!1===d.visible?"hidden":"inherit",N=l=r[1],t&&E(t[m])&&(void 0===t[m].pos?L="hidden":(O=t[m].size,N=d.top+t[m].pos)),delete d.positionIndex,B=f.justify?w[0]+(k?-1:1)*(v+d.labelDistance):c.getX(N<d.top+2||N>d.bottom-2?l:N,k,d),z._attr={visibility:L,align:r[6]},z._pos={x:B+f.x+({left:g,right:-g}[r[6]]||0),y:N+f.y-10},r.x=B,r.y=N,
n(f.crop,!0)&&(h=z.getBBox().width,l=null,B-h<g?(l=Math.round(h-B+g),P[3]=Math.max(l,P[3])):B+h>q-g&&(l=Math.round(B+h-q+g),P[1]=Math.max(l,P[1])),0>N-O/2?P[0]=Math.max(Math.round(-N+O/2),P[0]):N+O/2>u&&(P[2]=Math.max(Math.round(N+O/2-u),P[2])),z.sideOverflow=l)}),0===A(P)||this.verifyDataLabelOverflow(P))&&(this.placeDataLabels(),l&&C(this.points,function(a){var b;t=a.connector;if((z=a.dataLabel)&&z._pos&&a.visible&&0<a.labelDistance){L=z._attr.visibility;if(b=!t)a.connector=t=e.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+
a.colorIndex).add(c.dataLabelsGroup);t[b?"attr":"animate"]({d:c.connectorPath(a.labelPos)});t.attr("visibility",L)}else t&&(a.connector=t.destroy())}))},v.pie.prototype.connectorPath=function(a){var b=a.x,c=a.y;return n(this.options.dataLabels.softConnector,!0)?["M",b+("left"===a[6]?5:-5),c,"C",b,c,2*a[2]-a[4],2*a[3]-a[5],a[2],a[3],"L",a[4],a[5]]:["M",b+("left"===a[6]?5:-5),c,"L",a[2],a[3],"L",a[4],a[5]]},v.pie.prototype.placeDataLabels=function(){C(this.points,function(a){var b=a.dataLabel;b&&a.visible&&
((a=b._pos)?(b.sideOverflow&&(b._attr.width=b.getBBox().width-b.sideOverflow,b.css({width:b._attr.width+"px",textOverflow:"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?"animate":"attr"](a),b.moved=!0):b&&b.attr({y:-9999}))},this)},v.pie.prototype.alignDataLabel=l,v.pie.prototype.verifyDataLabelOverflow=function(a){var b=this.center,c=this.options,e=c.center,f=c.minSize||80,g,k=null!==c.size;k||(null!==e[0]?g=Math.max(b[2]-Math.max(a[1],a[3]),f):(g=Math.max(b[2]-a[1]-a[3],f),b[0]+=(a[3]-a[1])/
2),null!==e[1]?g=Math.max(Math.min(g,b[2]-Math.max(a[0],a[2])),f):(g=Math.max(Math.min(g,b[2]-a[0]-a[2]),f),b[1]+=(a[0]-a[2])/2),g<b[2]?(b[2]=g,b[3]=Math.min(d(c.innerSize||0,g),g),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):k=!0);return k});v.column&&(v.column.prototype.alignDataLabel=function(a,b,d,e,f){var c=this.chart.inverted,g=a.series,l=a.dlBox||a.shapeArgs,m=n(a.below,a.plotY>n(this.translatedThreshold,g.yAxis.len)),p=n(d.inside,!!this.options.stacking);l&&(e=t(l),0>e.y&&
(e.height+=e.y,e.y=0),l=e.y+e.height-g.yAxis.len,0<l&&(e.height-=l),c&&(e={x:g.yAxis.len-e.y-e.height,y:g.xAxis.len-e.x-e.width,width:e.height,height:e.width}),p||(c?(e.x+=m?0:e.width,e.width=0):(e.y+=m?e.height:0,e.height=0)));d.align=n(d.align,!c||p?"center":m?"right":"left");d.verticalAlign=n(d.verticalAlign,c||p?"middle":m?"top":"bottom");k.prototype.alignDataLabel.call(this,a,b,d,e,f);a.isLabelJustified&&a.contrastColor&&a.dataLabel.css({color:a.contrastColor})})})(L);(function(a){var z=a.Chart,
A=a.each,E=a.objectEach,C=a.pick,q=a.addEvent;z.prototype.callbacks.push(function(a){q(a,"render",function(){var e=[];A(a.labelCollectors||[],function(a){e=e.concat(a())});A(a.yAxis||[],function(a){a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&E(a.stacks,function(a){E(a,function(a){e.push(a.label)})})});A(a.series||[],function(a){var g=a.options.dataLabels,n=a.dataLabelCollections||["dataLabel"];(g.enabled||a._hasPointLabels)&&!g.allowOverlap&&a.visible&&A(n,function(d){A(a.points,function(a){a[d]&&
(a[d].labelrank=C(a.labelrank,a.shapeArgs&&a.shapeArgs.height),e.push(a[d]))})})});a.hideOverlappingLabels(e)})});z.prototype.hideOverlappingLabels=function(a){var e=a.length,q,l,n,d,k,v,f,c,b,p=function(a,b,c,d,e,f,g,k){return!(e>a+c||e+g<a||f>b+d||f+k<b)};for(l=0;l<e;l++)if(q=a[l])q.oldOpacity=q.opacity,q.newOpacity=1,q.width||(n=q.getBBox(),q.width=n.width,q.height=n.height);a.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(l=0;l<e;l++)for(n=a[l],q=l+1;q<e;++q)if(d=a[q],n&&d&&
n!==d&&n.placed&&d.placed&&0!==n.newOpacity&&0!==d.newOpacity&&(k=n.alignAttr,v=d.alignAttr,f=n.parentGroup,c=d.parentGroup,b=2*(n.box?0:n.padding||0),k=p(k.x+f.translateX,k.y+f.translateY,n.width-b,n.height-b,v.x+c.translateX,v.y+c.translateY,d.width-b,d.height-b)))(n.labelrank<d.labelrank?n:d).newOpacity=0;A(a,function(a){var b,c;a&&(c=a.newOpacity,a.oldOpacity!==c&&a.placed&&(c?a.show(!0):b=function(){a.hide()},a.alignAttr.opacity=c,a[a.isOld?"animate":"attr"](a.alignAttr,null,b)),a.isOld=!0)})}})(L);
(function(a){var z=a.addEvent,A=a.Chart,E=a.createElement,C=a.css,q=a.defaultOptions,e=a.defaultPlotOptions,g=a.each,t=a.extend,l=a.fireEvent,n=a.hasTouch,d=a.inArray,k=a.isObject,v=a.Legend,f=a.merge,c=a.pick,b=a.Point,p=a.Series,m=a.seriesTypes,F=a.svg,H;H=a.TrackerMixin={drawTrackerPoint:function(){var a=this,b=a.chart.pointer,c=function(a){var c=b.getPointFromEvent(a);void 0!==c&&(b.isDirectTouch=!0,c.onMouseOver(a))};g(a.points,function(a){a.graphic&&(a.graphic.element.point=a);a.dataLabel&&
(a.dataLabel.div?a.dataLabel.div.point=a:a.dataLabel.element.point=a)});a._hasTracking||(g(a.trackerGroups,function(d){if(a[d]&&(a[d].addClass("highcharts-tracker").on("mouseover",c).on("mouseout",function(a){b.onTrackerMouseOut(a)}),n))a[d].on("touchstart",c)}),a._hasTracking=!0)},drawTrackerGraph:function(){var a=this,b=a.options.trackByArea,c=[].concat(b?a.areaPath:a.graphPath),d=c.length,e=a.chart,f=e.pointer,k=e.renderer,l=e.options.tooltip.snap,h=a.tracker,m,p=function(){if(e.hoverSeries!==
a)a.onMouseOver()},q="rgba(192,192,192,"+(F?.0001:.002)+")";if(d&&!b)for(m=d+1;m--;)"M"===c[m]&&c.splice(m+1,0,c[m+1]-l,c[m+2],"L"),(m&&"M"===c[m]||m===d)&&c.splice(m,0,"L",c[m-2]+l,c[m-1]);h?h.attr({d:c}):a.graph&&(a.tracker=k.path(c).attr({"stroke-linejoin":"round",visibility:a.visible?"visible":"hidden",stroke:q,fill:b?q:"none","stroke-width":a.graph.strokeWidth()+(b?0:2*l),zIndex:2}).add(a.group),g([a.tracker,a.markerGroup],function(a){a.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",
function(a){f.onTrackerMouseOut(a)});if(n)a.on("touchstart",p)}))}};m.column&&(m.column.prototype.drawTracker=H.drawTrackerPoint);m.pie&&(m.pie.prototype.drawTracker=H.drawTrackerPoint);m.scatter&&(m.scatter.prototype.drawTracker=H.drawTrackerPoint);t(v.prototype,{setItemEvents:function(a,b,c){var d=this.chart.renderer.boxWrapper,e="highcharts-legend-"+(a.series?"point":"series")+"-active";(c?b:a.legendGroup).on("mouseover",function(){a.setState("hover");d.addClass(e)}).on("mouseout",function(){d.removeClass(e);
a.setState()}).on("click",function(b){var c=function(){a.setVisible&&a.setVisible()};b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,c):l(a,"legendItemClick",b,c)})},createCheckboxForItem:function(a){a.checkbox=E("input",{type:"checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);z(a.checkbox,"click",function(b){l(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})}});t(A.prototype,
{showResetZoom:function(){var a=this,b=q.lang,c=a.options.chart.resetZoomButton,d=c.theme,e=d.states,f="chart"===c.relativeTo?null:"plotBox";this.resetZoomButton=a.renderer.button(b.resetZoom,null,null,function(){a.zoomOut()},d,e&&e.hover).attr({align:c.position.align,title:b.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(c.position,!1,f)},zoomOut:function(){var a=this;l(a,"selection",{resetSelection:!0},function(){a.zoom()})},zoom:function(a){var b,d=this.pointer,e=!1,f;!a||a.resetSelection?
(g(this.axes,function(a){b=a.zoom()}),d.initiated=!1):g(a.xAxis.concat(a.yAxis),function(a){var c=a.axis;d[c.isXAxis?"zoomX":"zoomY"]&&(b=c.zoom(a.min,a.max),c.displayBtn&&(e=!0))});f=this.resetZoomButton;e&&!f?this.showResetZoom():!e&&k(f)&&(this.resetZoomButton=f.destroy());b&&this.redraw(c(this.options.chart.animation,a&&a.animation,100>this.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&g(d,function(a){a.setState()});g("xy"===b?[1,0]:[1],function(b){b=c[b?"xAxis":"yAxis"][0];
var d=b.horiz,f=a[d?"chartX":"chartY"],d=d?"mouseDownX":"mouseDownY",g=c[d],k=(b.pointRange||0)/2,l=b.getExtremes(),m=b.toValue(g-f,!0)+k,k=b.toValue(g+b.len-f,!0)-k,n=k<m,g=n?k:m,m=n?m:k,k=Math.min(l.dataMin,b.toValue(b.toPixels(l.min)-b.minPixelPadding)),n=Math.max(l.dataMax,b.toValue(b.toPixels(l.max)+b.minPixelPadding)),p;p=k-g;0<p&&(m+=p,g=k);p=m-n;0<p&&(m=n,g-=p);b.series.length&&g!==l.min&&m!==l.max&&(b.setExtremes(g,m,!1,!1,{trigger:"pan"}),e=!0);c[d]=f});e&&c.redraw(!1);C(c.container,{cursor:"move"})}});
t(b.prototype,{select:function(a,b){var e=this,f=e.series,k=f.chart;a=c(a,!e.selected);e.firePointEvent(a?"select":"unselect",{accumulate:b},function(){e.selected=e.options.selected=a;f.options.data[d(e,f.data)]=e.options;e.setState(a&&"select");b||g(k.getSelectedPoints(),function(a){a.selected&&a!==e&&(a.selected=a.options.selected=!1,f.options.data[d(a,f.data)]=a.options,a.setState(""),a.firePointEvent("unselect"))})})},onMouseOver:function(a){var b=this.series.chart,c=b.pointer;a=a?c.normalize(a):
c.getChartCoordinatesFromPoint(this,b.inverted);c.runPointActions(a,this)},onMouseOut:function(){var a=this.series.chart;this.firePointEvent("mouseOut");g(a.hoverPoints||[],function(a){a.setState()});a.hoverPoints=a.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var b=this,c=f(b.series.options.point,b.options).events;b.events=c;a.objectEach(c,function(a,c){z(b,c,a)});this.hasImportedEvents=!0}},setState:function(a,b){var d=Math.floor(this.plotX),f=this.plotY,g=this.series,k=
g.options.states[a]||{},l=e[g.type].marker&&g.options.marker,m=l&&!1===l.enabled,h=l&&l.states&&l.states[a]||{},n=!1===h.enabled,p=g.stateMarkerGraphic,q=this.marker||{},t=g.chart,v=g.halo,x,z=l&&g.markerAttribs;a=a||"";if(!(a===this.state&&!b||this.selected&&"select"!==a||!1===k.enabled||a&&(n||m&&!1===h.enabled)||a&&q.states&&q.states[a]&&!1===q.states[a].enabled)){z&&(x=g.markerAttribs(this,a));if(this.graphic)this.state&&this.graphic.removeClass("highcharts-point-"+this.state),a&&this.graphic.addClass("highcharts-point-"+
a),x&&this.graphic.animate(x,c(t.options.chart.animation,h.animation,l.animation)),p&&p.hide();else{if(a&&h)if(l=q.symbol||g.symbol,p&&p.currentSymbol!==l&&(p=p.destroy()),p)p[b?"animate":"attr"]({x:x.x,y:x.y});else l&&(g.stateMarkerGraphic=p=t.renderer.symbol(l,x.x,x.y,x.width,x.height).add(g.markerGroup),p.currentSymbol=l);p&&(p[a&&t.isInsidePlot(d,f,t.inverted)?"show":"hide"](),p.element.point=this)}(d=k.halo)&&d.size?(v||(g.halo=v=t.renderer.path().add((this.graphic||p).parentGroup)),v[b?"animate":
"attr"]({d:this.haloPath(d.size)}),v.attr({"class":"highcharts-halo highcharts-color-"+c(this.colorIndex,g.colorIndex)}),v.point=this):v&&v.point&&v.point.haloPath&&v.animate({d:v.point.haloPath(0)});this.state=a}},haloPath:function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-a,this.plotY-a,2*a,2*a)}});t(p.prototype,{onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&l(this,"mouseOver");this.setState("hover");
a.hoverSeries=this},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;b.hoverSeries=null;if(d)d.onMouseOut();this&&a.events.mouseOut&&l(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();this.setState()},setState:function(a){var b=this;a=a||"";b.state!==a&&(g([b.group,b.markerGroup,b.dataLabelsGroup],function(c){c&&(b.state&&c.removeClass("highcharts-series-"+b.state),a&&c.addClass("highcharts-series-"+a))}),b.state=a)},setVisible:function(a,
b){var c=this,d=c.chart,e=c.legendItem,f,k=d.options.chart.ignoreHiddenSeries,m=c.visible;f=(c.visible=a=c.options.visible=c.userOptions.visible=void 0===a?!m:a)?"show":"hide";g(["group","dataLabelsGroup","markerGroup","tracker","tt"],function(a){if(c[a])c[a][f]()});if(d.hoverSeries===c||(d.hoverPoint&&d.hoverPoint.series)===c)c.onMouseOut();e&&d.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&g(d.series,function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});g(c.linkedSeries,function(b){b.setVisible(a,
!1)});k&&(d.isDirtyBox=!0);!1!==b&&d.redraw();l(c,f)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=void 0===a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);l(this,a?"select":"unselect")},drawTracker:H.drawTrackerGraph})})(L);(function(a){var z=a.Chart,A=a.each,E=a.inArray,C=a.isArray,q=a.isObject,e=a.pick,g=a.splat;z.prototype.setResponsive=function(e){var g=this.options.responsive,n=[],d=this.currentResponsive;g&&g.rules&&
A(g.rules,function(d){void 0===d._id&&(d._id=a.uniqueKey());this.matchResponsiveRule(d,n,e)},this);var k=a.merge.apply(0,a.map(n,function(d){return a.find(g.rules,function(a){return a._id===d}).chartOptions})),n=n.toString()||void 0;n!==(d&&d.ruleIds)&&(d&&this.update(d.undoOptions,e),n?(this.currentResponsive={ruleIds:n,mergedOptions:k,undoOptions:this.currentOptions(k)},this.update(k,e)):this.currentResponsive=void 0)};z.prototype.matchResponsiveRule=function(a,g){var l=a.condition;(l.callback||
function(){return this.chartWidth<=e(l.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=e(l.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=e(l.minWidth,0)&&this.chartHeight>=e(l.minHeight,0)}).call(this)&&g.push(a._id)};z.prototype.currentOptions=function(e){function l(d,e,n,f){var c;a.objectEach(d,function(a,k){if(!f&&-1<E(k,["series","xAxis","yAxis"]))for(d[k]=g(d[k]),n[k]=[],c=0;c<d[k].length;c++)e[k][c]&&(n[k][c]={},l(a[c],e[k][c],n[k][c],f+1));else q(a)?(n[k]=C(a)?[]:{},l(a,e[k]||{},n[k],f+1)):n[k]=
e[k]||null})}var n={};l(e,this.options,n,0);return n}})(L);return L});
