/*
 Highmaps JS v5.0.12 (2017-05-24)
 Highmaps as a plugin for Highcharts 4.1.x or Highstock 2.1.x (x being the patch version of this file)

 (c) 2011-2017 Torstein Honsi

 License: www.highcharts.com/license
*/
(function(x){"object"===typeof module&&module.exports?module.exports=x:x(Highcharts)})(function(x){(function(a){var h=a.Axis,l=a.each,d=a.pick;a=a.wrap;a(h.prototype,"getSeriesExtremes",function(a){var g=this.isXAxis,n,u,h=[],m;g&&l(this.series,function(a,b){a.useMapGeometry&&(h[b]=a.xData,a.xData=[])});a.call(this);g&&(n=d(this.dataMin,Number.MAX_VALUE),u=d(this.dataMax,-Number.MAX_VALUE),l(this.series,function(a,b){a.useMapGeometry&&(n=Math.min(n,d(a.minX,n)),u=Math.max(u,d(a.maxX,n)),a.xData=h[b],
m=!0)}),m&&(this.dataMin=n,this.dataMax=u))});a(h.prototype,"setAxisTranslation",function(a){var g=this.chart,n=g.plotWidth/g.plotHeight,g=g.xAxis[0],d;a.call(this);"yAxis"===this.coll&&void 0!==g.transA&&l(this.series,function(a){a.preserveAspectRatio&&(d=!0)});if(d&&(this.transA=g.transA=Math.min(this.transA,g.transA),a=n/((g.max-g.min)/(this.max-this.min)),a=1>a?this:g,n=(a.max-a.min)*a.transA,a.pixelPadding=a.len-n,a.minPixelPadding=a.pixelPadding/2,n=a.fixTo)){n=n[1]-a.toValue(n[0],!0);n*=a.transA;
if(Math.abs(n)>a.minPixelPadding||a.min===a.dataMin&&a.max===a.dataMax)n=0;a.minPixelPadding-=n}});a(h.prototype,"render",function(a){a.call(this);this.fixTo=null})})(x);(function(a){var h=a.Axis,l=a.Chart,d=a.color,g,t=a.each,n=a.extend,u=a.isNumber,v=a.Legend,m=a.LegendSymbolMixin,c=a.noop,b=a.merge,e=a.pick,r=a.wrap;g=a.ColorAxis=function(){this.init.apply(this,arguments)};n(g.prototype,h.prototype);n(g.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(h.prototype.keepProps),init:function(a,k){var f="vertical"!==a.options.legend.layout,p;this.coll="colorAxis";p=b(this.defaultColorAxisOptions,{side:f?2:1,reversed:!f},k,{opposite:!f,showEmpty:!1,title:null});h.prototype.init.call(this,
a,p);k.dataClasses&&this.initDataClasses(k);this.initStops();this.horiz=f;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var p,f=0,q=this.chart.options.chart.colorCount,w=this.options,e=a.dataClasses.length;this.dataClasses=p=[];this.legendItems=[];t(a.dataClasses,function(a,k){a=b(a);p.push(a);a.color||("category"===w.dataClassColor?(a.colorIndex=f,f++,f===q&&(f=0)):a.color=d(w.minColor).tweenTo(d(w.maxColor),2>e?.5:k/(e-1)))})},initStops:function(){this.stops=this.options.stops||
[[0,this.options.minColor],[1,this.options.maxColor]];t(this.stops,function(a){a.color=d(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,k=this.chart,f=k.options.legend||{},q,b;a?(this.left=f=a.attr("x"),this.top=q=a.attr("y"),this.width=b=a.attr("width"),this.height=a=a.attr("height"),this.right=k.chartWidth-f-b,this.bottom=k.chartHeight-q-a,this.len=this.horiz?b:a,this.pos=this.horiz?f:
q):this.len=(this.horiz?f.symbolWidth:f.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,k){var f=this.stops,q,b,p=this.dataClasses,e,c;if(p)for(c=p.length;c--;){if(e=p[c],q=e.from,f=e.to,(void 0===q||a>=q)&&(void 0===f||a<=f)){b=e.color;k&&(k.dataClass=c,k.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(c=f.length;c--&&!(a>f[c][0]););q=f[c]||f[c+1];f=f[c+1]||q;a=
1-(f[0]-a)/(f[0]-q[0]||1);b=q.color.tweenTo(f.color,a)}return b},getOffset:function(){var a=this.legendGroup,k=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=k)},setLegendColor:function(){var a,k=this.reversed;a=k?1:0;k=k?0:1;a=this.horiz?[a,0,k,0]:[0,k,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,
k){var f=a.padding,q=a.options,b=this.horiz,c=e(q.symbolWidth,b?this.defaultLegendLength:12),p=e(q.symbolHeight,b?12:this.defaultLegendLength),r=e(q.labelPadding,b?16:30),q=e(q.itemDistance,10);this.setLegendColor();k.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,c,p).attr({zIndex:1}).add(k.legendGroup);this.legendItemWidth=c+f+(b?q:r);this.legendItemHeight=p+f+(b?r:0)},setState:c,visible:!0,setVisible:c,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=
-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var f=b&&b.plotX,q=b&&b.plotY,k,e=this.pos,c=this.len;b&&(k=this.toPixels(b[b.series.colorKey]),k<e?k=e-2:k>e+c&&(k=e+c+2),b.plotX=k,b.plotY=this.len-k,h.prototype.drawCrosshair.call(this,a,b),b.plotX=f,b.plotY=q,this.cross&&this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup))},getPlotLinePath:function(a,b,f,
q,e){return u(e)?this.horiz?["M",e-4,this.top-6,"L",e+4,this.top-6,e,this.top,"Z"]:["M",this.left,e,"L",this.left-6,e+6,this.left-6,e-6,"Z"]:h.prototype.getPlotLinePath.call(this,a,b,f,q)},update:function(a,e){var f=this.chart,q=f.legend;t(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&q.allItems&&(t(q.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),f.isDirtyLegend=!0);f.options[this.coll]=b(this.userOptions,a);h.prototype.update.call(this,a,e);this.legendItem&&
(this.setLegendColor(),q.colorizeItem(this,!0))},remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var b=this,e=this.chart,f=this.legendItems,q=e.options.legend,r=q.valueDecimals,g=q.valueSuffix||"",d;f.length||t(this.dataClasses,function(q,k){var p=!0,w=q.from,h=q.to;d="";void 0===w?d="\x3c ":void 0===h&&(d="\x3e ");void 0!==w&&(d+=a.numberFormat(w,r)+g);void 0!==w&&void 0!==h&&(d+=" - ");void 0!==h&&(d+=a.numberFormat(h,
r)+g);f.push(n({chart:e,name:d,options:{},drawLegendSymbol:m.drawRectangle,visible:!0,setState:c,isDataClass:!0,setVisible:function(){p=this.visible=!p;t(b.series,function(a){t(a.points,function(a){a.dataClass===k&&a.setVisible(p)})});e.legend.colorizeItem(this,p)}},q))});return f},name:""});t(["fill","stroke"],function(b){a.Fx.prototype[b+"Setter"]=function(){this.elem.attr(b,d(this.start).tweenTo(d(this.end),this.pos),null,!0)}});r(l.prototype,"getAxes",function(a){var b=this.options.colorAxis;
a.call(this);this.colorAxis=[];b&&new g(this,b)});r(v.prototype,"getAllItems",function(a){var b=[],f=this.chart.colorAxis[0];f&&f.options&&(f.options.showInLegend&&(f.options.dataClasses?b=b.concat(f.getDataClassLegendSymbols()):b.push(f)),t(f.series,function(a){a.options.showInLegend=!1}));return b.concat(a.call(this))});r(v.prototype,"colorizeItem",function(a,b,f){a.call(this,b,f);f&&b.legendColor&&b.legendSymbol.attr({fill:b.legendColor})})})(x);(function(a){var h=a.defined,l=a.each,d=a.noop;a.colorPointMixin=
{isValid:function(){return null!==this.value},setVisible:function(a){var g=this,d=a?"show":"hide";l(["graphic","dataLabel"],function(a){if(g[a])g[a][d]()})},setState:function(g){a.Point.prototype.setState.call(this,g);this.graphic&&this.graphic.attr({zIndex:"hover"===g?1:0})}};a.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:d,parallelArrays:["x","y","value"],colorKey:"value",
translateColors:function(){var a=this,t=this.options.nullColor,d=this.colorAxis,h=this.colorKey;l(this.data,function(g){var m=g[h];if(m=g.options.color||(g.isNull?t:d&&void 0!==m?d.toColor(m,g):g.color||a.color))g.color=m})},colorAttribs:function(a){var g={};h(a.color)&&(g[this.colorProp||"fill"]=a.color);return g}}})(x);(function(a){function h(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function l(a){this.init(a)}var d=a.addEvent,g=a.Chart,
t=a.doc,n=a.each,u=a.extend,v=a.merge,m=a.pick,c=a.wrap;l.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};l.prototype.update=function(b){var e=this.chart,c=e.options.mapNavigation,p,k=function(a){this.handler.call(e,a);h(a)},f=e.mapNavButtons;b&&(c=e.options.mapNavigation=v(e.options.mapNavigation,b));for(;f.length;)f.pop().destroy();m(c.enableButtons,c.enabled)&&!e.renderer.forExport&&a.objectEach(c.buttons,function(a,b){p=v(c.buttonOptions,a);a=e.renderer.button(p.text,0,0,k,void 0,
void 0,void 0,0,"zoomIn"===b?"topbutton":"bottombutton").addClass("highcharts-map-navigation").attr({width:p.width,height:p.height,title:e.options.lang[b],padding:p.padding,zIndex:5}).add();a.handler=p.onclick;a.align(u(p,{width:a.width,height:2*a.height}),null,p.alignTo);d(a.element,"dblclick",h);f.push(a)});this.updateEvents(c)};l.prototype.updateEvents=function(a){var b=this.chart;m(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||d(b.container,
"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());m(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||d(b.container,void 0===t.onmousewheel?"DOMMouseScroll":"mousewheel",function(a){b.pointer.onContainerMouseWheel(a);h(a);return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(g.prototype,{fitToBox:function(a,e){n([["x","width"],["y","height"]],function(b){var c=b[0];
b=b[1];a[c]+a[b]>e[c]+e[b]&&(a[b]>e[b]?(a[b]=e[b],a[c]=e[c]):a[c]=e[c]+e[b]-a[b]);a[b]>e[b]&&(a[b]=e[b]);a[c]<e[c]&&(a[c]=e[c])});return a},mapZoom:function(a,c,g,p,k){var f=this.xAxis[0],b=f.max-f.min,e=m(c,f.min+b/2),r=b*a,b=this.yAxis[0],d=b.max-b.min,t=m(g,b.min+d/2),d=d*a,e=this.fitToBox({x:e-r*(p?(p-f.pos)/f.len:.5),y:t-d*(k?(k-b.pos)/b.len:.5),width:r,height:d},{x:f.dataMin,y:b.dataMin,width:f.dataMax-f.dataMin,height:b.dataMax-b.dataMin}),r=e.x<=f.dataMin&&e.width>=f.dataMax-f.dataMin&&e.y<=
b.dataMin&&e.height>=b.dataMax-b.dataMin;p&&(f.fixTo=[p-f.pos,c]);k&&(b.fixTo=[k-b.pos,g]);void 0===a||r?(f.setExtremes(void 0,void 0,!1),b.setExtremes(void 0,void 0,!1)):(f.setExtremes(e.x,e.x+e.width,!1),b.setExtremes(e.y,e.y+e.height,!1));this.redraw()}});c(g.prototype,"render",function(a){this.mapNavigation=new l(this);this.mapNavigation.update();a.call(this)})})(x);(function(a){var h=a.extend,l=a.pick,d=a.Pointer;a=a.wrap;h(d.prototype,{onContainerDblClick:function(a){var g=this.chart;a=this.normalize(a);
g.options.mapNavigation.enableDoubleClickZoomTo?g.pointer.inClass(a.target,"highcharts-tracker")&&g.hoverPoint&&g.hoverPoint.zoomTo():g.isInsidePlot(a.chartX-g.plotLeft,a.chartY-g.plotTop)&&g.mapZoom(.5,g.xAxis[0].toValue(a.chartX),g.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var g=this.chart,d;a=this.normalize(a);d=a.detail||-(a.wheelDelta/120);g.isInsidePlot(a.chartX-g.plotLeft,a.chartY-g.plotTop)&&g.mapZoom(Math.pow(g.options.mapNavigation.mouseWheelSensitivity,
d),g.xAxis[0].toValue(a.chartX),g.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(d.prototype,"zoomOption",function(a){var g=this.chart.options.mapNavigation;l(g.enableTouchZoom,g.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});a(d.prototype,"pinchTranslate",function(a,d,h,l,v,m,c){a.call(this,d,h,l,v,m,c);"map"===this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,d,h,l,v,m,c,a?l.scaleX:l.scaleY))})})(x);
(function(a){var h=a.colorPointMixin,l=a.each,d=a.extend,g=a.isNumber,t=a.map,n=a.merge,u=a.noop,v=a.pick,m=a.isArray,c=a.Point,b=a.Series,e=a.seriesType,r=a.seriesTypes,p=a.splat,k=void 0!==a.doc.documentElement.style.vectorEffect;e("map","scatter",{allAreas:!0,animation:!1,nullColor:"#f7f7f7",borderColor:"#cccccc",borderWidth:1,marker:null,stickyTracking:!1,joinBy:"hc-key",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},turboThreshold:0,
tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{brightness:.2,halo:null},select:{color:"#cccccc"}}},n(a.colorSeriesMixin,{type:"map",supportsDrilldown:!0,getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:["value"],getBox:function(f){var b=Number.MAX_VALUE,e=-b,c=b,k=-b,p=b,m=b,d=this.xAxis,r=this.yAxis,h;l(f||[],function(f){if(f.path){"string"===typeof f.path&&(f.path=
a.splitPath(f.path));var q=f.path||[],d=q.length,r=!1,w=-b,l=b,z=-b,n=b,t=f.properties;if(!f._foundBox){for(;d--;)g(q[d])&&(r?(w=Math.max(w,q[d]),l=Math.min(l,q[d])):(z=Math.max(z,q[d]),n=Math.min(n,q[d])),r=!r);f._midX=l+(w-l)*(f.middleX||t&&t["hc-middle-x"]||.5);f._midY=n+(z-n)*(f.middleY||t&&t["hc-middle-y"]||.5);f._maxX=w;f._minX=l;f._maxY=z;f._minY=n;f.labelrank=v(f.labelrank,(w-l)*(z-n));f._foundBox=!0}e=Math.max(e,f._maxX);c=Math.min(c,f._minX);k=Math.max(k,f._maxY);p=Math.min(p,f._minY);m=
Math.min(f._maxX-f._minX,f._maxY-f._minY,m);h=!0}});h&&(this.minY=Math.min(p,v(this.minY,b)),this.maxY=Math.max(k,v(this.maxY,-b)),this.minX=Math.min(c,v(this.minX,b)),this.maxX=Math.max(e,v(this.maxX,-b)),d&&void 0===d.options.minRange&&(d.minRange=Math.min(5*m,(this.maxX-this.minX)/5,d.minRange||b)),r&&void 0===r.options.minRange&&(r.minRange=Math.min(5*m,(this.maxY-this.minY)/5,r.minRange||b)))},getExtremes:function(){b.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 f=!1,b=this.xAxis,e=this.yAxis,c=b.min,k=b.transA,b=b.minPixelPadding,p=e.min,m=e.transA,e=e.minPixelPadding,d,r=[];if(a)for(d=a.length;d--;)g(a[d])?(r[d]=f?(a[d]-c)*k+b:(a[d]-p)*m+e,f=!f):r[d]=a[d];return r},setData:function(f,e,c,k){var q=this.options,d=this.chart.options.chart,r=d&&d.map,w=q.mapData,h=q.joinBy,u=null===h,v=q.keys||this.pointArrayMap,
y=[],B={},A=this.chart.mapTransforms;!w&&r&&(w="string"===typeof r?a.maps[r]:r);u&&(h="_i");h=this.joinBy=p(h);h[1]||(h[1]=h[0]);f&&l(f,function(a,b){var e=0;if(g(a))f[b]={value:a};else if(m(a)){f[b]={};!q.keys&&a.length>v.length&&"string"===typeof a[0]&&(f[b]["hc-key"]=a[0],++e);for(var c=0;c<v.length;++c,++e)v[c]&&(f[b][v[c]]=a[e])}u&&(f[b]._i=b)});this.getBox(f);(this.chart.mapTransforms=A=d&&d.mapTransforms||w&&w["hc-transform"]||A)&&a.objectEach(A,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),
a.sinAngle=Math.sin(a.rotation))});if(w){"FeatureCollection"===w.type&&(this.mapTitle=w.title,w=a.geojson(w,this.type,this));this.mapData=w;this.mapMap={};for(A=0;A<w.length;A++)d=w[A],r=d.properties,d._i=A,h[0]&&r&&r[h[0]]&&(d[h[0]]=r[h[0]]),B[d[h[0]]]=d;this.mapMap=B;f&&h[1]&&l(f,function(a){B[a[h[1]]]&&y.push(B[a[h[1]]])});q.allAreas?(this.getBox(w),f=f||[],h[1]&&l(f,function(a){y.push(a[h[1]])}),y="|"+t(y,function(a){return a&&a[h[0]]}).join("|")+"|",l(w,function(a){h[0]&&-1!==y.indexOf("|"+a[h[0]]+
"|")||(f.push(n(a,{value:null})),k=!1)})):this.getBox(y)}b.prototype.setData.call(this,f,e,c,k)},drawGraph:u,drawDataLabels:u,doFullTranslate:function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans},translate:function(){var a=this,b=a.xAxis,e=a.yAxis,c=a.doFullTranslate();a.generatePoints();l(a.data,function(f){f.plotX=b.toPixels(f._midX,!0);f.plotY=e.toPixels(f._midY,!0);c&&(f.shapeType="path",f.shapeArgs={d:a.translatePath(f.path)})});a.translateColors()},
pointAttribs:function(a,b){b=this.colorAttribs(a);a.isFading&&delete b.fill;k?b["vector-effect"]="non-scaling-stroke":b["stroke-width"]="inherit";return b},drawPoints:function(){var a=this,b=a.xAxis,e=a.yAxis,c=a.group,d=a.chart,p=d.renderer,m,g,h,n,t=this.baseTrans,y,u,v,x,H;a.transformGroup||(a.transformGroup=p.g().attr({scaleX:1,scaleY:1}).add(c),a.transformGroup.survive=!0);a.doFullTranslate()?(a.group=a.transformGroup,r.column.prototype.drawPoints.apply(a),a.group=c,l(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:b.min-b.minPixelPadding/b.transA,originY:e.min-e.minPixelPadding/e.transA+(e.reversed?0:e.len/e.transA),transAX:b.transA,transAY:e.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1})):(m=b.transA/
t.transAX,g=e.transA/t.transAY,h=b.toPixels(t.originX,!0),n=e.toPixels(t.originY,!0),.99<m&&1.01>m&&.99<g&&1.01>g&&(g=m=1,h=Math.round(h),n=Math.round(n)),y=this.transformGroup,d.renderer.globalAnimation?(u=y.attr("translateX"),v=y.attr("translateY"),x=y.attr("scaleX"),H=y.attr("scaleY"),y.attr({animator:0}).animate({animator:1},{step:function(a,b){y.attr({translateX:u+(h-u)*b.pos,translateY:v+(n-v)*b.pos,scaleX:x+(m-x)*b.pos,scaleY:H+(g-H)*b.pos})}})):y.attr({translateX:h,translateY:n,scaleX:m,scaleY:g}));
k||a.group.element.setAttribute("stroke-width",a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"]/(m||1));this.drawMapDataLabels()},drawMapDataLabels:function(){b.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,e=b.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){e.call(a)}):e.call(a)},animate:function(a){var b=this.options.animation,f=this.group,
e=this.xAxis,c=this.yAxis,k=e.pos,d=c.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),a?f.attr({translateX:k+e.len/2,translateY:d+c.len/2,scaleX:.001,scaleY:.001}):(f.animate({translateX:k,translateY:d,scaleX:1,scaleY:1},b),this.animate=null))},animateDrilldown:function(a){var b=this.chart.plotBox,f=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],e=f.bBox,c=this.chart.options.drilldown.animation;a||(a=Math.min(e.width/b.width,e.height/b.height),f.shapeArgs={scaleX:a,scaleY:a,
translateX:e.x,translateY:e.y},l(this.points,function(a){a.graphic&&a.graphic.attr(f.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},c)}),this.animate=null)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,animateDrillupFrom:function(a){r.column.prototype.animateDrillupFrom.call(this,a)},animateDrillupTo:function(a){r.column.prototype.animateDrillupTo.call(this,a)}}),d({applyOptions:function(a,b){a=c.prototype.applyOptions.call(this,a,b);b=this.series;var f=b.joinBy;b.mapData&&
((f=void 0!==a[f[1]]&&b.mapMap[a[f[1]]])?(b.xyFromShape&&(a.x=f._midX,a.y=f._midY),d(a,f)):a.value=a.value||null);return a},onMouseOver:function(a){clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)c.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()}},h))})(x);(function(a){var h=a.seriesType;h("mapline",
"map",{},{type:"mapline",colorProp:"stroke",drawLegendSymbol:a.seriesTypes.line.prototype.drawLegendSymbol})})(x);(function(a){var h=a.merge,l=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,g){a=void 0!==a.lat&&void 0!==a.lon?h(a,this.series.chart.fromLatLonToPoint(a)):a;return l.prototype.applyOptions.call(this,a,g)}})})(x);
(function(a){var h=a.arrayMax,l=a.arrayMin,d=a.Axis,g=a.each,t=a.isNumber,n=a.noop,u=a.pick,v=a.pInt,m=a.Point,c=a.seriesType,b=a.seriesTypes;c("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,b,c,k){var f,e,d,m=this.zData,g=[],p=this.options,r="width"!==p.sizeBy,h=p.zThreshold,l=b-a;e=0;for(f=m.length;e<f;e++)d=m[e],p.sizeByAbsoluteValue&&null!==d&&(d=Math.abs(d-h),b=Math.max(b-h,Math.abs(a-h)),a=0),null===d?d=null:d<a?d=c/2-1:(d=0<l?(d-a)/l:.5,r&&0<=d&&(d=Math.sqrt(d)),d=Math.ceil(c+d*(k-c))/2),g.push(d);this.radii=g},animate:function(a){var b=
this.options.animation;a||(g(this.points,function(a){var e=a.graphic,f;e&&e.width&&(f={x:e.x,y:e.y,width:e.width,height:e.height},e.attr({x:a.plotX,y:a.plotY,width:1,height:1}),e.animate(f,b))}),this.animate=null)},translate:function(){var e,c=this.data,d,k,f=this.radii;b.scatter.prototype.translate.call(this);for(e=c.length;e--;)d=c[e],k=f?f[e]:0,t(k)&&k>=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:k,width:2*k,height:2*k}),d.dlBox={x:d.plotX-k,y:d.plotY-k,width:2*k,height:2*k}):d.shapeArgs=
d.plotY=d.dlBox=void 0},alignDataLabel:b.column.prototype.alignDataLabel,buildKDTree:n,applyZones:n},{haloPath:function(a){return m.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});d.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,m=this.isXAxis,n=m?"xData":"yData",x=this.min,C={},I=Math.min(c.plotWidth,c.plotHeight),E=Number.MAX_VALUE,F=-Number.MAX_VALUE,z=this.max-x,D=b/z,G=[];g(this.series,function(b){var f=b.options;!b.bubblePadding||
!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,G.push(b),m&&(g(["minSize","maxSize"],function(a){var b=f[a],e=/%$/.test(b),b=v(b);C[a]=e?I*b/100:b}),b.minPxSize=C.minSize,b.maxPxSize=Math.max(C.maxSize,C.minSize),b=b.zData,b.length&&(E=u(f.zMin,Math.min(E,Math.max(l(b),!1===f.displayNegative?f.zThreshold:-Number.MAX_VALUE))),F=u(f.zMax,Math.max(F,h(b))))))});g(G,function(b){var e=b[n],c=e.length,k;m&&b.getRadii(E,F,b.minPxSize,b.maxPxSize);if(0<z)for(;c--;)t(e[c])&&a.dataMin<=
e[c]&&e[c]<=a.dataMax&&(k=b.radii[c],d=Math.min((e[c]-x)*D-k,d),f=Math.max((e[c]-x)*D+k,f))});G.length&&0<z&&!this.isLog&&(f-=b,D*=(b+d-f)/b,g([["min","userMin",d],["max","userMax",f]],function(b){void 0===u(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/D)}))}})(x);(function(a){var h=a.merge,l=a.Point,d=a.seriesType,g=a.seriesTypes;g.bubble&&d("mapbubble","bubble",{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}},{xyFromShape:!0,type:"mapbubble",pointArrayMap:["z"],getMapData:g.map.prototype.getMapData,
getBox:g.map.prototype.getBox,setData:g.map.prototype.setData},{applyOptions:function(a,d){return a&&void 0!==a.lat&&void 0!==a.lon?l.prototype.applyOptions.call(this,h(a,this.series.chart.fromLatLonToPoint(a)),d):g.map.prototype.pointClass.prototype.applyOptions.call(this,a,d)},ttBelow:!1})})(x);(function(a){var h=a.colorPointMixin,l=a.each,d=a.merge,g=a.noop,t=a.pick,n=a.Series,u=a.seriesType,v=a.seriesTypes;u("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}}},d(a.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var a;v.scatter.prototype.init.apply(this,arguments);a=this.options;a.pointRange=t(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=
a.rowsize||1},translate:function(){var a=this.options,c=this.xAxis,b=this.yAxis,e=function(a,b,e){return Math.min(Math.max(b,a),e)};this.generatePoints();l(this.points,function(d){var g=(a.colsize||1)/2,k=(a.rowsize||1)/2,f=e(Math.round(c.len-c.translate(d.x-g,0,1,0,1)),-c.len,2*c.len),g=e(Math.round(c.len-c.translate(d.x+g,0,1,0,1)),-c.len,2*c.len),m=e(Math.round(b.translate(d.y-k,0,1,0,1)),-b.len,2*b.len),k=e(Math.round(b.translate(d.y+k,0,1,0,1)),-b.len,2*b.len);d.plotX=d.clientX=(f+g)/2;d.plotY=
(m+k)/2;d.shapeType="rect";d.shapeArgs={x:Math.min(f,g),y:Math.min(m,k),width:Math.abs(g-f),height:Math.abs(k-m)}});this.translateColors()},drawPoints:function(){v.column.prototype.drawPoints.call(this);l(this.points,function(a){a.graphic.css(this.colorAttribs(a))},this)},animate:g,getBox:g,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,alignDataLabel:v.column.prototype.alignDataLabel,getExtremes:function(){n.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=
this.dataMax;n.prototype.getExtremes.call(this)}}),h)})(x);(function(a){function h(a,c){var b,e,d,g=!1,k=a.x,f=a.y;a=0;for(b=c.length-1;a<c.length;b=a++)e=c[a][1]>f,d=c[b][1]>f,e!==d&&k<(c[b][0]-c[a][0])*(f-c[a][1])/(c[b][1]-c[a][1])+c[a][0]&&(g=!g);return g}var l=a.Chart,d=a.each,g=a.extend,t=a.format,n=a.merge,u=a.win,v=a.wrap;l.prototype.transformFromLatLon=function(d,c){if(void 0===u.proj4)return a.error(21),{x:0,y:null};d=u.proj4(c.crs,[d.lon,d.lat]);var b=c.cosAngle||c.rotation&&Math.cos(c.rotation),
e=c.sinAngle||c.rotation&&Math.sin(c.rotation);d=c.rotation?[d[0]*b+d[1]*e,-d[0]*e+d[1]*b]:d;return{x:((d[0]-(c.xoffset||0))*(c.scale||1)+(c.xpan||0))*(c.jsonres||1)+(c.jsonmarginX||0),y:(((c.yoffset||0)-d[1])*(c.scale||1)+(c.ypan||0))*(c.jsonres||1)-(c.jsonmarginY||0)}};l.prototype.transformToLatLon=function(d,c){if(void 0===u.proj4)a.error(21);else{d={x:((d.x-(c.jsonmarginX||0))/(c.jsonres||1)-(c.xpan||0))/(c.scale||1)+(c.xoffset||0),y:((-d.y-(c.jsonmarginY||0))/(c.jsonres||1)+(c.ypan||0))/(c.scale||
1)+(c.yoffset||0)};var b=c.cosAngle||c.rotation&&Math.cos(c.rotation),e=c.sinAngle||c.rotation&&Math.sin(c.rotation);c=u.proj4(c.crs,"WGS84",c.rotation?{x:d.x*b+d.y*-e,y:d.x*e+d.y*b}:d);return{lat:c.y,lon:c.x}}};l.prototype.fromPointToLatLon=function(d){var c=this.mapTransforms,b;if(c){for(b in c)if(c.hasOwnProperty(b)&&c[b].hitZone&&h({x:d.x,y:-d.y},c[b].hitZone.coordinates[0]))return this.transformToLatLon(d,c[b]);return this.transformToLatLon(d,c["default"])}a.error(22)};l.prototype.fromLatLonToPoint=
function(d){var c=this.mapTransforms,b,e;if(!c)return a.error(22),{x:0,y:null};for(b in c)if(c.hasOwnProperty(b)&&c[b].hitZone&&(e=this.transformFromLatLon(d,c[b]),h({x:e.x,y:-e.y},c[b].hitZone.coordinates[0])))return e;return this.transformFromLatLon(d,c["default"])};a.geojson=function(a,c,b){var e=[],h=[],p=function(a){var b,e=a.length;h.push("M");for(b=0;b<e;b++)1===b&&h.push("L"),h.push(a[b][0],-a[b][1])};c=c||"map";d(a.features,function(a){var b=a.geometry,k=b.type,b=b.coordinates;a=a.properties;
var l;h=[];"map"===c||"mapbubble"===c?("Polygon"===k?(d(b,p),h.push("Z")):"MultiPolygon"===k&&(d(b,function(a){d(a,p)}),h.push("Z")),h.length&&(l={path:h})):"mapline"===c?("LineString"===k?p(b):"MultiLineString"===k&&d(b,p),h.length&&(l={path:h})):"mappoint"===c&&"Point"===k&&(l={x:b[0],y:-b[1]});l&&e.push(g(l,{name:a.name||a.NAME,properties:a}))});b&&a.copyrightShort&&(b.chart.mapCredits=t(b.chart.options.credits.mapText,{geojson:a}),b.chart.mapCreditsFull=t(b.chart.options.credits.mapTextFull,{geojson:a}));
return e};v(l.prototype,"addCredits",function(a,c){c=n(!0,this.options.credits,c);this.mapCredits&&(c.href=null);a.call(this,c);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})})(x);(function(a){function h(a,e,c,d,g,f,h,l){return["M",a+g,e,"L",a+c-f,e,"C",a+c-f/2,e,a+c,e+f/2,a+c,e+f,"L",a+c,e+d-h,"C",a+c,e+d-h/2,a+c-h/2,e+d,a+c-h,e+d,"L",a+l,e+d,"C",a+l/2,e+d,a,e+d-l/2,a,e+d-l,"L",a,e+g,"C",a,e+g/2,a+g/2,e,a+g,e,"Z"]}var l=a.Chart,d=a.defaultOptions,g=a.each,t=a.extend,
n=a.merge,u=a.pick,v=a.Renderer,m=a.SVGRenderer,c=a.VMLRenderer;t(d.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});d.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 b;a=a.replace(/([A-Za-z])/g," $1 ");a=a.replace(/^\s*/,"").replace(/\s*$/,"");a=a.split(/[ ,]+/);
for(b=0;b<a.length;b++)/[a-zA-Z]/.test(a[b])||(a[b]=parseFloat(a[b]));return a};a.maps={};m.prototype.symbols.topbutton=function(a,c,d,g,k){return h(a-1,c-1,d,g,k.r,k.r,0,0)};m.prototype.symbols.bottombutton=function(a,c,d,g,k){return h(a-1,c-1,d,g,0,0,k.r,k.r)};v===c&&g(["topbutton","bottombutton"],function(a){c.prototype.symbols[a]=m.prototype.symbols[a]});a.Map=a.mapChart=function(b,c,d){var e="string"===typeof b||b.nodeName,g=arguments[e?1:0],f={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,
startOnTick:!1},h,m=a.getOptions().credits;h=g.series;g.series=null;g=n({chart:{panning:"xy",type:"map"},credits:{mapText:u(m.mapText,' \u00a9 \x3ca href\x3d"{geojson.copyrightUrl}"\x3e{geojson.copyrightShort}\x3c/a\x3e'),mapTextFull:u(m.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:f,yAxis:n(f,{reversed:!0})},g,{chart:{inverted:!1,alignTicks:!1}});g.series=h;return e?new l(b,g,d):new l(g,c)}})(x)});
