/*
 Highcharts JS v5.0.0 (2016-09-29)

 (c) 2009-2016 Torstein Honsi

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