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