/*
 Highmaps JS v5.0.12 (2017-05-24)

 (c) 2011-2016 Torstein Honsi

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