!/**
 * Highmaps JS v12.5.0 (2026-01-12)
 * @module highcharts/modules/map
 * @requires highcharts
 *
 * Highmaps as a plugin for Highcharts or Highcharts Stock.
 *
 * (c) 2011-2026 Highsoft AS
 * Author: Torstein Honsi
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("highcharts"),require("highcharts").Axis,require("highcharts").Color,require("highcharts").LegendSymbol,require("highcharts").SeriesRegistry,require("highcharts").SVGElement,require("highcharts").Series,require("highcharts").Chart,require("highcharts").SVGRenderer,require("highcharts").Templating,require("highcharts").Series.types.scatter,require("highcharts").Point):"function"==typeof define&&define.amd?define("highcharts/modules/map",[["highcharts/highcharts"],["highcharts/highcharts","Axis"],["highcharts/highcharts","Color"],["highcharts/highcharts","LegendSymbol"],["highcharts/highcharts","SeriesRegistry"],["highcharts/highcharts","SVGElement"],["highcharts/highcharts","Series"],["highcharts/highcharts","Chart"],["highcharts/highcharts","SVGRenderer"],["highcharts/highcharts","Templating"],["highcharts/highcharts","Series","types","scatter"],["highcharts/highcharts","Point"]],e):"object"==typeof exports?exports["highcharts/modules/map"]=e(require("highcharts"),require("highcharts").Axis,require("highcharts").Color,require("highcharts").LegendSymbol,require("highcharts").SeriesRegistry,require("highcharts").SVGElement,require("highcharts").Series,require("highcharts").Chart,require("highcharts").SVGRenderer,require("highcharts").Templating,require("highcharts").Series.types.scatter,require("highcharts").Point):t.Highcharts=e(t.Highcharts,t.Highcharts.Axis,t.Highcharts.Color,t.Highcharts.LegendSymbol,t.Highcharts.SeriesRegistry,t.Highcharts.SVGElement,t.Highcharts.Series,t.Highcharts.Chart,t.Highcharts.SVGRenderer,t.Highcharts.Templating,t.Highcharts.Series.types.scatter,t.Highcharts.Point)}(this,function(t,e,o,i,r,n,a,s,l,h,p,c){return function(){"use strict";var u,d,f,y,m,g,v,b,x,M,w,C,P,j,A,T,O,L,S,k,z,E,I,_,B,D,V={28:function(t){t.exports=n},260:function(t){t.exports=c},500:function(t){t.exports=i},512:function(t){t.exports=r},532:function(t){t.exports=e},540:function(t){t.exports=l},620:function(t){t.exports=o},632:function(t){t.exports=p},820:function(t){t.exports=a},944:function(e){e.exports=t},960:function(t){t.exports=s},984:function(t){t.exports=h}},X={};function N(t){var e=X[t];if(void 0!==e)return e.exports;var o=X[t]={exports:{}};return V[t](o,o.exports,N),o.exports}N.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return N.d(e,{a:e}),e},N.d=function(t,e){for(var o in e)N.o(e,o)&&!N.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},N.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var G={};N.d(G,{default:function(){return ru}});var R=N(944),Y=N.n(R),W=N(532),U=N.n(W),F=N(620),Z=N.n(F),q=Z().parse,H=Y().merge;(u=S||(S={})).initDataClasses=function(t){var e,o,i,r=this.chart,n=this.legendItem=this.legendItem||{},a=this.options,s=t.dataClasses||[],l=r.options.chart.colorCount,h=0;this.dataClasses=o=[],n.labels=[];for(var p=0,c=s.length;p<c;++p)e=H(e=s[p]),o.push(e),(r.styledMode||!e.color)&&("category"===a.dataClassColor?(r.styledMode||(l=(i=r.options.colors||[]).length,e.color=i[h]),e.colorIndex=h,++h===l&&(h=0)):e.color=q(a.minColor).tweenTo(q(a.maxColor),c<2?.5:p/(c-1)))},u.initStops=function(){for(var t=this.options,e=this.stops=t.stops||[[0,t.minColor||""],[1,t.maxColor||""]],o=0,i=e.length;o<i;++o)e[o].color=q(e[o][1])},u.normalizedValue=function(t){var e=this.max||0,o=this.min||0;return this.logarithmic&&(t=this.logarithmic.log2lin(t)),1-(e-t)/(e-o||1)},u.toColor=function(t,e){var o,i,r,n,a,s,l=this.dataClasses,h=this.stops;if(l){for(s=l.length;s--;)if(i=(a=l[s]).from,r=a.to,(void 0===i||t>=i)&&(void 0===r||t<=r)){n=a.color,e&&(e.dataClass=s,e.colorIndex=a.colorIndex);break}}else{for(o=this.normalizedValue(t),s=h.length;s--&&!(o>h[s][0]););i=h[s]||h[s+1],o=1-((r=h[s+1]||i)[0]-o)/(r[0]-i[0]||1),n=i.color.tweenTo(r.color,o)}return n};var K=S,$=Z().parse,J=Y().addEvent,Q=Y().extend,tt=Y().merge,te=Y().pick,to=Y().splat;!function(t){var e;function o(){var t=this,o=this.userOptions;this.colorAxis=[],o.colorAxis&&(o.colorAxis=to(o.colorAxis),o.colorAxis.map(function(o){return new e(t,o)}))}function i(t){var e,o,i=this,r=this.chart.colorAxis||[],n=function(e){var o=t.allItems.indexOf(e);-1!==o&&(i.destroyItem(t.allItems[o]),t.allItems.splice(o,1))},a=[];for(r.forEach(function(t){(null==(e=t.options)?void 0:e.showInLegend)&&(e.dataClasses&&e.visible?a=a.concat(t.getDataClassLegendSymbols()):e.visible&&a.push(t),t.series.forEach(function(t){(!t.options.showInLegend||e.dataClasses)&&("point"===t.options.legendType?t.points.forEach(function(t){n(t)}):n(t))}))}),o=a.length;o--;)t.allItems.unshift(a[o])}function r(t){t.visible&&t.item.legendColor&&t.item.legendItem.symbol.attr({fill:t.item.legendColor})}function n(t){var e;null==(e=this.chart.colorAxis)||e.forEach(function(e){e.update({},t.redraw)})}function a(){var t;((null==(t=this.chart.colorAxis)?void 0:t.length)||this.colorAttribs)&&this.translateColors()}function s(){var t=this.axisTypes;t?-1===t.indexOf("colorAxis")&&t.push("colorAxis"):this.axisTypes=["colorAxis"]}function l(t){var e=this,o=t?"show":"hide";e.visible=e.options.visible=!!t,["graphic","dataLabel"].forEach(function(t){e[t]&&e[t][o]()}),this.series.buildKDTree()}function h(){var t=this,e=this.getPointsCollection(),o=this.options.nullColor,i=this.colorAxis,r=this.colorKey;e.forEach(function(e){var n=e.getNestedProperty(r),a=e.options.color||(e.isNull||null===e.value?o:i&&void 0!==n?i.toColor(n,e):e.color||t.color);a&&e.color!==a&&(e.color=a,"point"===t.options.legendType&&e.legendItem&&e.legendItem.label&&t.chart.legend.colorizeItem(e,e.visible))})}function p(){this.elem.attr("fill",$(this.start).tweenTo($(this.end),this.pos),void 0,!0)}function c(){this.elem.attr("stroke",$(this.start).tweenTo($(this.end),this.pos),void 0,!0)}t.compose=function(t,u,d,f,y){var m,g,v=u.prototype,b=d.prototype,x=y.prototype;v.collectionsWithUpdate.includes("colorAxis")||(e=t,v.collectionsWithUpdate.push("colorAxis"),v.collectionsWithInit.colorAxis=[v.addColorAxis],J(u,"afterCreateAxes",o),g=(m=u).prototype.createAxis,m.prototype.createAxis=function(t,o){if("colorAxis"!==t)return g.apply(this,arguments);var i=new e(this,tt(o.axis,{index:this[t].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(function(t){t.series=[]}),this.series.forEach(function(t){t.bindAxes(),t.isDirtyData=!0}),te(o.redraw,!0)&&this.redraw(o.animation),i},b.fillSetter=p,b.strokeSetter=c,J(f,"afterGetAllItems",i),J(f,"afterColorizeItem",r),J(f,"afterUpdate",n),Q(x,{optionalAxis:"colorAxis",translateColors:h}),Q(x.pointClass.prototype,{setVisible:l}),J(y,"afterTranslate",a,{order:1}),J(y,"bindAxes",s))},t.pointSetVisible=l}(k||(k={}));var ti=k,tr=N(500),tn=N.n(tr),ta=N(512),ts=N.n(ta),tl=(d=function(t,e){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),th=Y().defaultOptions,tp=ts().series,tc=Y().defined,tu=Y().extend,td=Y().fireEvent,tf=Y().isArray,ty=Y().isNumber,tm=Y().merge,tg=Y().pick,tv=Y().relativeLength;th.colorAxis=tm(th.xAxis,{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"#ffffff",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{distance:8,overflow:"justify",rotation:0},minColor:"#e6e9ff",maxColor:"#0022ff",tickLength:5,showInLegend:!0});var tb=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.coll="colorAxis",i.visible=!0,i.init(e,o),i}return tl(e,t),e.compose=function(t,o,i,r){ti.compose(e,t,o,i,r)},e.prototype.init=function(e,o){var i=e.options.legend||{},r=o.layout?"vertical"!==o.layout:"vertical"!==i.layout;this.side=o.side||r?2:1,this.reversed=o.reversed,this.opposite=!r,t.prototype.init.call(this,e,o,"colorAxis"),this.userOptions=o,tf(e.userOptions.colorAxis)&&(e.userOptions.colorAxis[this.index]=o),o.dataClasses&&this.initDataClasses(o),this.initStops(),this.horiz=r,this.zoomEnabled=!1},e.prototype.hasData=function(){return!!(this.tickPositions||[]).length},e.prototype.setTickPositions=function(){if(!this.dataClasses)return t.prototype.setTickPositions.call(this)},e.prototype.setOptions=function(e){var o=tm(th.colorAxis,e,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&!1!==e.visible});t.prototype.setOptions.call(this,o),this.options.crosshair=this.options.marker},e.prototype.setAxisSize=function(){var t,o=this.chart,i=null==(t=this.legendItem)?void 0:t.symbol,r=this.getSize(),n=r.width,a=r.height;i&&(this.left=+i.attr("x"),this.top=+i.attr("y"),this.width=n=+i.attr("width"),this.height=a=+i.attr("height"),this.right=o.chartWidth-this.left-n,this.bottom=o.chartHeight-this.top-a,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?n:a)||e.defaultLegendLength},e.prototype.getOffset=function(){var o,i=null==(o=this.legendItem)?void 0:o.group,r=this.chart.axisOffset[this.side];if(i){this.axisParent=i,t.prototype.getOffset.call(this);var n=this.chart.legend;n.allItems.forEach(function(t){t instanceof e&&t.drawLegendSymbol(n,t)}),n.render(),this.chart.getMargins(!0),this.chart.series.some(function(t){return t.isDrilling})||(this.isDirty=!0),this.added||(this.added=!0),this.labelLeft=0,this.labelRight=this.width,this.chart.axisOffset[this.side]=r}},e.prototype.setLegendColor=function(){var t=this.horiz,e=this.reversed,o=+!!e,i=+!e,r=t?[o,0,i,0]:[0,i,0,o];this.legendColor={linearGradient:{x1:r[0],y1:r[1],x2:r[2],y2:r[3]},stops:this.stops}},e.prototype.drawLegendSymbol=function(t,e){var o,i=e.legendItem||{},r=t.padding,n=t.options,a=this.options.labels,s=tg(n.itemDistance,10),l=this.horiz,h=this.getSize(),p=h.width,c=h.height,u=tg(n.labelPadding,l?16:30);this.setLegendColor(),i.symbol||(i.symbol=this.chart.renderer.symbol("roundedRect").attr({r:null!=(o=n.symbolRadius)?o:3,zIndex:1}).add(i.group)),i.symbol.attr({x:0,y:(t.baseline||0)-11,width:p,height:c}),i.labelWidth=p+r+(l?s:tg(a.x,a.distance)+(this.maxLabelLength||0)),i.labelHeight=c+r+(l?u:0)},e.prototype.setState=function(t){this.series.forEach(function(e){e.setState(t)})},e.prototype.setVisible=function(){},e.prototype.getSeriesExtremes=function(){var t,e,o,i,r=this.series,n=r.length;for(this.dataMin=1/0,this.dataMax=-1/0;n--;){e=(i=r[n]).colorKey=tg(i.options.colorKey,i.colorKey,i.pointValKey,i.zoneAxis,"y"),o=i[e+"Min"]&&i[e+"Max"];for(var a=0,s=[e,"value","y"];a<s.length;a++){var l=s[a];if((t=i.getColumn(l)).length)break}if(o)i.minColorValue=i[e+"Min"],i.maxColorValue=i[e+"Max"];else{var h=tp.prototype.getExtremes.call(i,t);i.minColorValue=h.dataMin,i.maxColorValue=h.dataMax}tc(i.minColorValue)&&tc(i.maxColorValue)&&(this.dataMin=Math.min(this.dataMin,i.minColorValue),this.dataMax=Math.max(this.dataMax,i.maxColorValue)),o||tp.prototype.applyExtremes.call(i)}},e.prototype.drawCrosshair=function(e,o){var i,r=this.legendItem||{},n=null==o?void 0:o.plotX,a=null==o?void 0:o.plotY,s=this.pos,l=this.len;o&&((i=this.toPixels(o.getNestedProperty(o.series.colorKey)))<s?i=s-2:i>s+l&&(i=s+l+2),o.plotX=i,o.plotY=this.len-i,t.prototype.drawCrosshair.call(this,e,o),o.plotX=n,o.plotY=a,this.cross&&!this.cross.addedToColorAxis&&r.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(r.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!=typeof this.crosshair||this.cross.attr({fill:this.crosshair.color})))},e.prototype.getPlotLinePath=function(e){var o=this.left,i=e.translatedValue,r=this.top;return ty(i)?this.horiz?[["M",i-4,r-6],["L",i+4,r-6],["L",i,r],["Z"]]:[["M",o,i],["L",o-6,i+6],["L",o-6,i-6],["Z"]]:t.prototype.getPlotLinePath.call(this,e)},e.prototype.update=function(e,o){var i,r=this.chart.legend;this.series.forEach(function(t){t.isDirtyData=!0}),(e.dataClasses&&r.allItems||this.dataClasses)&&this.destroyItems(),t.prototype.update.call(this,e,o),(null==(i=this.legendItem)?void 0:i.label)&&(this.setLegendColor(),r.colorizeItem(this,!0))},e.prototype.destroyItems=function(){var t=this.chart,e=this.legendItem||{};if(e.label)t.legend.destroyItem(this);else if(e.labels)for(var o=0,i=e.labels;o<i.length;o++){var r=i[o];t.legend.destroyItem(r)}t.isDirtyLegend=!0},e.prototype.destroy=function(){this.chart.isDirtyLegend=!0,this.destroyItems(),t.prototype.destroy.apply(this,[].slice.call(arguments))},e.prototype.remove=function(e){this.destroyItems(),t.prototype.remove.call(this,e)},e.prototype.getDataClassLegendSymbols=function(){var t,e=this,o=e.chart,i=e.legendItem&&e.legendItem.labels||[],r=o.options.legend,n=tg(r.valueDecimals,-1),a=tg(r.valueSuffix,""),s=function(t){return e.series.reduce(function(e,o){return e.push.apply(e,o.points.filter(function(e){return e.dataClass===t})),e},[])};return i.length||e.dataClasses.forEach(function(r,l){var h=r.from,p=r.to,c=o.numberFormatter,u=!0;t="",void 0===h?t="< ":void 0===p&&(t="> "),void 0!==h&&(t+=c(h,n)+a),void 0!==h&&void 0!==p&&(t+=" - "),void 0!==p&&(t+=c(p,n)+a),i.push(tu({chart:o,name:t,options:{},drawLegendSymbol:tn().rectangle,visible:!0,isDataClass:!0,setState:function(t){for(var e=0,o=s(l);e<o.length;e++)o[e].setState(t)},setVisible:function(){this.visible=u=e.visible=!u;for(var t=[],i=0,r=s(l);i<r.length;i++){var n=r[i];n.setVisible(u),n.hiddenInDataClass=!u,-1===t.indexOf(n.series)&&t.push(n.series)}o.legend.colorizeItem(this,u),t.forEach(function(t){td(t,"afterDataClassLegendClick")})}},r))}),i},e.prototype.getSize=function(){var t=this.chart,o=this.horiz,i=this.options,r=i.height,n=i.width,a=t.options.legend;return{width:tg(tc(n)?tv(n,t.chartWidth):void 0,null==a?void 0:a.symbolWidth,o?e.defaultLegendLength:12),height:tg(tc(r)?tv(r,t.chartHeight):void 0,null==a?void 0:a.symbolHeight,o?12:e.defaultLegendLength)}},e.defaultLegendLength=200,e.keepProps=["legendItem"],e}(U());tu(tb.prototype,K),Array.prototype.push.apply(U().keepProps,tb.keepProps);/**
 * @license Highcharts JS v12.5.0 (2026-01-12)
 * @module highcharts/modules/color-axis
 * @requires highcharts
 *
 * ColorAxis module
 *
 * (c) 2012-2026 Highsoft AS
 * Author: Pawel Potaczek
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */var tx=Y();tx.ColorAxis=tx.ColorAxis||tb,tx.ColorAxis.compose(tx.Chart,tx.Fx,tx.Legend,tx.Series);var tM={lang:{zoomIn:"Zoom in",zoomOut:"Zoom out"},mapNavigation:{buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{color:"#666666",fontSize:"1em",fontWeight:"bold"},theme:{fill:"#ffffff",stroke:"#e6e6e6","stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1}},tw=Y().defined,tC=Y().extend,tP=Y().pick,tj=Y().wrap;!function(t){var e,o=0;function i(t){var e=this.chart;t=this.normalize(t),e.options.mapNavigation.enableDoubleClickZoomTo?e.pointer.inClass(t.target,"highcharts-tracker")&&e.hoverPoint&&e.hoverPoint.zoomTo():e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)&&e.mapZoom(.5,void 0,void 0,t.chartX,t.chartY)}function r(t){var i=this.chart,r=tw((t=this.normalize(t)).wheelDelta)&&-t.wheelDelta/120||t.deltaY||t.detail;Math.abs(r)>=1&&(o+=Math.abs(r),e&&clearTimeout(e),e=setTimeout(function(){o=0},50)),o<10&&i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop)&&i.mapView&&i.mapView.zoomBy(-((i.options.mapNavigation.mouseWheelSensitivity-1)*r),void 0,[t.chartX,t.chartY],!(1>Math.abs(r))&&void 0)}function n(t,e,o){var i=this.chart;if(e=t.call(this,e,o),i&&i.mapView){var r=i.mapView.pixelsToLonLat({x:e.chartX-i.plotLeft,y:e.chartY-i.plotTop});r&&tC(e,r)}return e}function a(t){var e=this.chart.options.mapNavigation;e&&tP(e.enableTouchZoom,e.enabled)&&(this.chart.zooming.pinchType="xy"),t.apply(this,[].slice.call(arguments,1))}t.compose=function(t){var e=t.prototype;e.onContainerDblClick||(tC(e,{onContainerDblClick:i,onContainerMouseWheel:r}),tj(e,"normalize",n),tj(e,"zoomOption",a))}}(z||(z={}));var tA=z;function tT(t,e,o,i,r){if(r){var n=(null==r?void 0:r.r)||0;r.brBoxY=e-n,r.brBoxHeight=i+n}return E.roundedRect(t,e,o,i,r)}function tO(t,e,o,i,r){if(r){var n=(null==r?void 0:r.r)||0;r.brBoxHeight=i+n}return E.roundedRect(t,e,o,i,r)}var tL=function(t){(E=t.prototype.symbols).bottombutton=tT,E.topbutton=tO},tS=Y().setOptions,tk=Y().composed,tz=Y().addEvent,tE=Y().extend,tI=Y().merge,t_=Y().objectEach,tB=Y().pick,tD=Y().pushUnique;function tV(t){var e,o;t&&(null==(e=t.preventDefault)||e.call(t),null==(o=t.stopPropagation)||o.call(t),t.cancelBubble=!0)}var tX=function(){function t(t){this.chart=t,this.navButtons=[]}return t.compose=function(e,o,i){tA.compose(o),tL(i),tD(tk,"Map.Navigation")&&(tz(e,"beforeRender",function(){this.mapNavigation=new t(this),this.mapNavigation.update()}),tS(tM))},t.prototype.update=function(t){var e,o=this,i=o.chart,r=o.navButtons,n=function(t){this.handler.call(i,t),tV(t)},a=i.options.mapNavigation;for(t&&(a=i.options.mapNavigation=tI(i.options.mapNavigation,t));r.length;)null==(e=r.pop())||e.destroy();!i.renderer.forExport&&tB(a.enableButtons,a.enabled)&&(o.navButtonsGroup||(o.navButtonsGroup=i.renderer.g().attr({zIndex:7}).add()),t_(a.buttons,function(t,e){var s,l={padding:(t=tI(a.buttonOptions,t)).padding};!i.styledMode&&t.theme&&(tE(l,t.theme),l.style=tI(t.theme.style,t.style));var h=t.text,p=t.width,c=void 0===p?0:p,u=t.height,d=void 0===u?0:u,f=t.padding,y=void 0===f?0:f,m=i.renderer.button("+"!==h&&"-"!==h&&h||"",0,0,n,l,void 0,void 0,void 0,"zoomIn"===e?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+({zoomIn:"zoom-in",zoomOut:"zoom-out"})[e]).attr({width:c,height:d,title:i.options.lang[e],zIndex:5}).add(o.navButtonsGroup);if("+"===h||"-"===h){var g=c+1,v=[["M",y+3,y+d/2],["L",y+g-3,y+d/2]];"+"===h&&v.push(["M",y+g/2,y+3],["L",y+g/2,y+d-3]),i.renderer.path(v).addClass("highcharts-button-symbol").attr(i.styledMode?{}:{stroke:null==(s=t.style)?void 0:s.color,"stroke-width":3,"stroke-linecap":"round"}).add(m)}if(m.handler=t.onclick,tz(m.element,"dblclick",tV),r.push(m),tE(t,{width:m.width,height:2*(m.height||0)}),i.hasLoaded)m.align(t,!1,t.alignTo);else var b=tz(i,"load",function(){m.element&&m.align(t,!1,t.alignTo),b()})}),i.hasLoaded||tz(i,"render",function(){var t,e,r=null==(e=null==(t=i.exporting)?void 0:t.group)?void 0:e.getBBox();if(r){var n=o.navButtonsGroup.getBBox();if(!(n.x>=r.x+r.width||n.x+n.width<=r.x||n.y>=r.y+r.height||n.y+n.height<=r.y)){var s=-n.y-n.height+r.y-5,l=r.y+r.height-n.y+5,h=a.buttonOptions&&a.buttonOptions.verticalAlign;o.navButtonsGroup.attr({translateY:"bottom"===h?s:l})}}})),this.updateEvents(a)},t.prototype.updateEvents=function(t){var e=this.chart;tB(t.enableDoubleClickZoom,t.enabled)||t.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||tz(e.container,"dblclick",function(t){e.pointer.onContainerDblClick(t)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),tB(t.enableMouseWheelZoom,t.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||tz(e.container,"wheel",function(t){var o,i;if(!e.pointer.inClass(t.target,"highcharts-no-mousewheel")){var r=null==(o=e.mapView)?void 0:o.zoom;e.pointer.onContainerMouseWheel(t),r!==(null==(i=e.mapView)?void 0:i.zoom)&&tV(t)}return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())},t}(),tN=N(28),tG=N.n(tN),tR=ts().seriesTypes.column.prototype,tY=Y().addEvent,tW=Y().defined,tU=I||(I={});function tF(t){var e=this.series,o=e.chart.renderer;this.moveToTopOnHover&&this.graphic&&(e.stateMarkerGraphic||(e.stateMarkerGraphic=new(tG())(o,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),(null==t?void 0:t.state)==="hover"?(this.graphic.attr({id:this.id}),e.stateMarkerGraphic.attr({href:""+o.url+"#".concat(this.id),visibility:"visible"})):e.stateMarkerGraphic.attr({href:""}))}tU.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&this.value!==1/0&&this.value!==-1/0&&(void 0===this.value||!isNaN(this.value))}},tU.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(t){var e={};return tW(t.color)&&(!t.state||"normal"===t.state)&&(e[this.colorProp||"fill"]=t.color),e},pointAttribs:tR.pointAttribs},tU.compose=function(t){return tY(t.prototype.pointClass,"afterSetState",tF),t};var tZ=I,tq=N(820),tH=N.n(tq),tK=Y().deg2rad,t$=Y().fireEvent,tJ=Y().isNumber,tQ=Y().pick,t0=Y().relativeLength;(f=_||(_={})).getCenter=function(){var t,e,o,i=this.options,r=this.chart,n=2*(i.slicedOffset||0),a=r.plotWidth-2*n,s=r.plotHeight-2*n,l=i.center,h=Math.min(a,s),p=i.thickness,c=i.size,u=i.innerSize||0;"string"==typeof c&&(c=parseFloat(c)),"string"==typeof u&&(u=parseFloat(u));var d=[tQ(null==l?void 0:l[0],"50%"),tQ(null==l?void 0:l[1],"50%"),tQ(c&&c<0?void 0:i.size,"100%"),tQ(u&&u<0?void 0:i.innerSize||0,"0%")];for(!r.angular||this instanceof tH()||(d[3]=0),e=0;e<4;++e)o=d[e],t=e<2||2===e&&/%$/.test(o),d[e]=t0(o,[a,s,h,d[2]][e])+(t?n:0);return d[3]>d[2]&&(d[3]=d[2]),tJ(p)&&2*p<d[2]&&p>0&&(d[3]=d[2]-2*p),t$(this,"afterGetCenter",{positions:d}),d},f.getStartAndEndRadians=function(t,e){var o=tJ(t)?t:0,i=tJ(e)&&e>o&&e-o<360?e:o+360;return{start:tK*(o+-90),end:tK*(i+-90)}};var t1=_,t2=N(960),t6=N.n(t2),t3=N(540),t8=N.n(t3),t7=(y=function(t,e){return(y=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),t9=function(t,e,o){if(o||2==arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},t4=Y().getOptions,t5=Y().isNumber,et=Y().merge,ee=Y().pick,eo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t7(e,t),e.prototype.init=function(e,o){var i=t4().credits,r=et({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:ee(i.mapText,' \xa9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:ee(i.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},e);t.prototype.init.call(this,r,o)},e.prototype.mapZoom=function(t,e,o,i,r){this.mapView&&(t5(t)&&(t=Math.log(t)/Math.log(.5)),this.mapView.zoomBy(t,t5(e)&&t5(o)?this.mapView.projection.inverse([e,o]):void 0,t5(i)&&t5(r)?[i,r]:void 0))},e.prototype.update=function(e){var o;e.chart&&"map"in e.chart&&(null==(o=this.mapView)||o.recommendMapView(this,t9([e.chart.map],(this.options.series||[]).map(function(t){return t.mapData}),!0),!0)),t.prototype.update.apply(this,arguments)},e}(t6());(m=eo||(eo={})).maps={},m.mapChart=function(t,e,o){return new m(t,e,o)},m.splitPath=function(t){var e;return e="string"==typeof t?(t=t.replace(/([A-Z])/gi," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(function(t){return/[A-Z]/i.test(t)?t:parseFloat(t)}):t,t8().prototype.pathToSegments(e)};var ei=eo,er=function(t){var e,o=-Number.MAX_VALUE,i=Number.MAX_VALUE,r=-Number.MAX_VALUE,n=Number.MAX_VALUE;if(t.forEach(function(t){var a=t[t.length-2],s=t[t.length-1];"number"==typeof a&&"number"==typeof s&&(i=Math.min(i,a),o=Math.max(o,a),n=Math.min(n,s),r=Math.max(r,s),e=!0)}),e)return{x1:i,y1:n,x2:o,y2:r}},en=(g=function(t,e){return(g=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),ea=function(){return(ea=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},es=ts().seriesTypes.scatter.prototype.pointClass,el=Y().extend,eh=Y().isNumber,ep=Y().pick,ec=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return en(e,t),e.getProjectedPath=function(t,e){return t.projectedPath||(e&&t.geometry?(e.hasCoordinates=!0,t.projectedPath=e.path(t.geometry)):t.projectedPath=t.path),t.projectedPath||[]},e.prototype.applyOptions=function(e,o){var i,r=this.series,n=t.prototype.applyOptions.call(this,e,o),a=r.joinBy;if(r.mapData&&r.mapMap){var s=a[1],l=t.prototype.getNestedProperty.call(this,s),h=void 0!==l&&r.mapMap[l];h?el(n,ea(ea({},h),{name:null!=(i=n.name)?i:h.name})):-1!==r.pointArrayMap.indexOf("value")&&(n.value=n.value||null)}return n},e.prototype.getProjectedBounds=function(t){var o=er(e.getProjectedPath(this,t)),i=this.properties,r=this.series.chart.mapView;if(o){var n=null==i?void 0:i["hc-middle-lon"],a=null==i?void 0:i["hc-middle-lat"];if(r&&eh(n)&&eh(a)){var s=t.forward([n,a]);o.midX=s[0],o.midY=s[1]}else{var l=null==i?void 0:i["hc-middle-x"],h=null==i?void 0:i["hc-middle-y"];o.midX=o.x1+(o.x2-o.x1)*ep(this.middleX,eh(l)?l:.5);var p=ep(this.middleY,eh(h)?h:.5);this.geometry||(p=1-p),o.midY=o.y2-(o.y2-o.y1)*p}return o}},e.prototype.onMouseOver=function(e){Y().clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?t.prototype.onMouseOver.call(this,e):this.series.onMouseOut()},e.prototype.setVisible=function(t){this.visible=this.options.visible=!!t,this.dataLabel&&this.dataLabel[t?"show":"hide"](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))},e.prototype.zoomTo=function(t){var e=this.series.chart,o=e.mapView,i=this.bounds;if(o&&i){var r=eh(this.insetIndex)&&o.insets[this.insetIndex];if(r){var n=r.projectedUnitsToPixels({x:i.x1,y:i.y1}),a=r.projectedUnitsToPixels({x:i.x2,y:i.y2}),s=o.pixelsToProjectedUnits({x:n.x,y:n.y}),l=o.pixelsToProjectedUnits({x:a.x,y:a.y});i={x1:s.x,y1:s.y,x2:l.x,y2:l.y}}o.fitToBounds(i,void 0,!1),this.series.isDirty=!0,e.redraw(t)}},e}(es);el(ec.prototype,{dataLabelOnNull:tZ.pointMembers.dataLabelOnNull,moveToTopOnHover:tZ.pointMembers.moveToTopOnHover,isValid:tZ.pointMembers.isValid});var eu=Y().isNumber,ed={affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.value;return eu(e)?t(e,-1):this.point.name||""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},linecap:"round",marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#e6e6e6",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:void 0,borderColor:"#666666",borderWidth:2},normal:{animation:!0},select:{color:"#cccccc"}},legendSymbol:"rectangle"},ef={center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0,insetOptions:{borderColor:"#cccccc",borderWidth:1,padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}},ey=N(984),em=N.n(ey),eg=Y().win,ev=em().format,eb=Y().error,ex=Y().extend,eM=Y().merge,ew=Y().wrap;!function(t){function e(t){var e;return null==(e=this.mapView)?void 0:e.lonLatToProjectedUnits(t)}function o(t){var e;return null==(e=this.mapView)?void 0:e.projectedUnitsToLonLat(t)}function i(t,e){var o=this.options.chart.proj4||eg.proj4;if(!o)return void eb(21,!1,this);var i=e.jsonmarginX,r=e.jsonmarginY,n=e.jsonres,a=void 0===n?1:n,s=e.scale,l=void 0===s?1:s,h=e.xoffset,p=e.xpan,c=e.yoffset,u=e.ypan,d=o(e.crs,[t.lon,t.lat]),f=e.cosAngle||e.rotation&&Math.cos(e.rotation),y=e.sinAngle||e.rotation&&Math.sin(e.rotation),m=e.rotation?[d[0]*f+d[1]*y,-d[0]*y+d[1]*f]:d;return{x:((m[0]-(void 0===h?0:h))*l+(void 0===p?0:p))*a+(void 0===i?0:i),y:-((((void 0===c?0:c)-m[1])*l+(void 0===u?0:u))*a-(void 0===r?0:r))}}function r(t,e){var o=this.options.chart.proj4||eg.proj4;if(!o)return void eb(21,!1,this);if(null!==t.y){var i=e.jsonmarginX,r=e.jsonmarginY,n=e.jsonres,a=void 0===n?1:n,s=e.scale,l=void 0===s?1:s,h=e.xoffset,p=e.xpan,c=e.yoffset,u=e.ypan,d={x:((t.x-(void 0===i?0:i))/a-(void 0===p?0:p))/l+(void 0===h?0:h),y:((t.y-(void 0===r?0:r))/a+(void 0===u?0:u))/l+(void 0===c?0:c)},f=e.cosAngle||e.rotation&&Math.cos(e.rotation),y=e.sinAngle||e.rotation&&Math.sin(e.rotation),m=o(e.crs,"WGS84",e.rotation?{x:d.x*f+-(d.y*y),y:d.x*y+d.y*f}:d);return{lat:m.y,lon:m.x}}}function n(t,e){e||(e=Object.keys(t.objects)[0]);var o=t.objects[e];if(o["hc-decoded-geojson"]&&o["hc-decoded-geojson"].title===t.title)return o["hc-decoded-geojson"];var i=t.arcs;if(t.transform){var r=t.arcs,n=t.transform,a=n.scale,s=n.translate,l=void 0,h=void 0,p=void 0;i=[];for(var c=0,u=r.length;c<u;++c){var d=r[c];i.push(l=[]),h=0,p=0;for(var f=0,y=d.length;f<y;++f)l.push([(h+=d[f][0])*a[0]+s[0],(p+=d[f][1])*a[1]+s[1]])}}for(var m=function(t){return"number"==typeof t[0]?t.reduce(function(t,e,o){var r=e<0?i[~e]:i[e];return e<0?(r=r.slice(0,0===o?r.length:r.length-1)).reverse():o&&(r=r.slice(1)),t.concat(r)},[]):t.map(m)},g=o.geometries,v=[],c=0,u=g.length;c<u;++c)v.push({type:"Feature",properties:g[c].properties,geometry:{type:g[c].type,coordinates:g[c].coordinates||m(g[c].arcs)}});var b={type:"FeatureCollection",copyright:t.copyright,copyrightShort:t.copyrightShort,copyrightUrl:t.copyrightUrl,features:v,"hc-recommended-mapview":o["hc-recommended-mapview"],bbox:t.bbox,title:t.title};return o["hc-decoded-geojson"]=b,b}function a(t,e){e=eM(!0,this.options.credits,e),t.call(this,e),this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})}t.compose=function(t){var n=t.prototype;n.transformFromLatLon||(n.fromLatLonToPoint=e,n.fromPointToLatLon=o,n.transformFromLatLon=i,n.transformToLatLon=r,ew(n,"addCredits",a))},t.geojson=function(t,e,o){void 0===e&&(e="map");for(var i,r,a=[],s="Topology"===t.type?n(t):t,l=s.features,h=0,p=l.length;h<p;++h){var c=l[h],u=c.geometry||{},d=u.type,f=u.coordinates,y=c.properties,m=void 0;if(("map"===e||"mapbubble"===e)&&("Polygon"===d||"MultiPolygon"===d)||"mapline"===e&&("LineString"===d||"MultiLineString"===d)?f.length&&(m={geometry:{coordinates:f,type:d}}):"mappoint"===e&&"Point"===d&&f.length&&(m={geometry:{coordinates:f,type:d}}),m){var g=y&&(y.name||y.NAME),v=y&&y.lon,b=y&&y.lat;a.push(ex(m,{lat:"number"==typeof b?b:void 0,lon:"number"==typeof v?v:void 0,name:"string"==typeof g?g:void 0,properties:y}))}}return o&&s.copyrightShort&&(o.chart.mapCredits=ev(null==(i=o.chart.options.credits)?void 0:i.mapText,{geojson:s}),o.chart.mapCreditsFull=ev(null==(r=o.chart.options.credits)?void 0:r.mapTextFull,{geojson:s})),a},t.topo2geo=n}(B||(B={}));var eC=B;(v=D||(D={})).getCenterOfPoints=function(t){var e=t.reduce(function(t,e){return t.x+=e.x,t.y+=e.y,t},{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},v.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},v.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},v.pointInPolygon=function(t,e){var o,i,r=t.x,n=t.y,a=e.length,s=!1;for(o=0,i=a-1;o<a;i=o++){var l=e[o],h=l[0],p=l[1],c=e[i],u=c[0],d=c[1];p>n!=d>n&&r<(u-h)*(n-p)/(d-p)+h&&(s=!s)}return s};var eP=D;function ej(t,e,o){void 0===o&&(o=!0);for(var i,r,n,a=e[e.length-1],s=t,l=0;l<e.length;l++){var h=s;i=e[l],s=[],r=o?h[h.length-1]:h[0];for(var p=0;p<h.length;p++)eA(a,i,n=h[p])?(eA(a,i,r)||s.push(eT(a,i,r,n)),s.push(n)):eA(a,i,r)&&s.push(eT(a,i,r,n)),r=n;a=i}return s}function eA(t,e,o){return(e[0]-t[0])*(o[1]-t[1])>(e[1]-t[1])*(o[0]-t[0])}function eT(t,e,o,i){var r=[t[0]-e[0],t[1]-e[1]],n=[o[0]-i[0],o[1]-i[1]],a=t[0]*e[1]-t[1]*e[0],s=o[0]*i[1]-o[1]*i[0],l=1/(r[0]*n[1]-r[1]*n[0]),h=[(a*n[0]-s*r[0])*l,(a*n[1]-s*r[1])*l];return h.isIntersection=!0,h}var eO=function(t,e){for(var o=[],i=ej(t,e,!1),r=1;r<i.length;r++)i[r].isIntersection&&i[r-1].isIntersection&&(o.push(i.splice(0,r)),r=0),r===i.length-1&&o.push(i);return o},eL=Math.sign||function(t){return 0===t?0:t>0?1:-1},eS=Math.PI/180,ek=Math.PI/2,ez=function(t){return Math.tan((ek+t)/2)},eE=function(){function t(t){var e,o=(t.parallels||[]).map(function(t){return t*eS}),i=o[0]||0,r=null!=(e=o[1])?e:i,n=Math.cos(i);"object"==typeof t.projectedBounds&&(this.projectedBounds=t.projectedBounds);var a=i===r?Math.sin(i):Math.log(n/Math.cos(r))/Math.log(ez(r)/ez(i));1e-10>Math.abs(a)&&(a=1e-10*(eL(a)||1)),this.n=a,this.c=n*Math.pow(ez(i),a)/a}return t.prototype.forward=function(t){var e=this.c,o=this.n,i=this.projectedBounds,r=t[0]*eS,n=t[1]*eS;e>0?n<-ek+1e-6&&(n=-ek+1e-6):n>ek-1e-6&&(n=ek-1e-6);var a=e/Math.pow(ez(n),o),s=a*Math.sin(o*r)*63.78137,l=(e-a*Math.cos(o*r))*63.78137,h=[s,l];return i&&(s<i.x1||s>i.x2||l<i.y1||l>i.y2)&&(h.outside=!0),h},t.prototype.inverse=function(t){var e=this.c,o=this.n,i=t[0]/63.78137,r=e-t[1]/63.78137,n=eL(o)*Math.sqrt(i*i+r*r),a=Math.atan2(i,Math.abs(r))*eL(r);return r*o<0&&(a-=Math.PI*eL(i)*eL(r)),[a/o/eS,(2*Math.atan(Math.pow(e/n,1/o))-ek)/eS]},t}(),eI=Math.sqrt(3)/2,e_=function(){function t(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}return t.prototype.forward=function(t){var e=Math.PI/180,o=Math.asin(eI*Math.sin(t[1]*e)),i=o*o,r=i*i*i;return[t[0]*e*Math.cos(o)*74.03120656864502/(eI*(1.340264+-.24331799999999998*i+r*(.0062510000000000005+.034164*i))),74.03120656864502*o*(1.340264+-.081106*i+r*(893e-6+.003796*i))]},t.prototype.inverse=function(t){for(var e,o,i,r,n=t[0]/74.03120656864502,a=t[1]/74.03120656864502,s=180/Math.PI,l=a,h=0;h<12&&(o=(e=l*l)*e*e,i=l*(1.340264+-.081106*e+o*(893e-6+.003796*e))-a,l-=r=i/(1.340264+-.24331799999999998*e+o*(.0062510000000000005+.034164*e)),!(1e-9>Math.abs(r)));++h);o=(e=l*l)*e*e;var p=s*eI*n*(1.340264+-.24331799999999998*e+o*(.0062510000000000005+.034164*e))/Math.cos(l),c=s*Math.asin(Math.sin(l)/eI);return Math.abs(p)>180?[NaN,NaN]:[p,c]},t}(),eB=Math.PI/4,eD=Math.PI/180,eV=function(){function t(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}return t.prototype.forward=function(t){return[t[0]*eD*63.78137,79.7267125*Math.log(Math.tan(eB+.4*t[1]*eD))]},t.prototype.inverse=function(t){return[t[0]/63.78137/eD,2.5*(Math.atan(Math.exp(.8*(t[1]/63.78137)))-eB)/eD]},t}(),eX=Math.PI/180,eN=function(){function t(){this.antimeridianCutting=!1,this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}return t.prototype.forward=function(t){var e=t[0],o=t[1]*eX,i=[Math.cos(o)*Math.sin(e*eX)*63.78460826781007,63.78460826781007*Math.sin(o)];return(e<-90||e>90)&&(i.outside=!0),i},t.prototype.inverse=function(t){var e=t[0]/63.78460826781007,o=t[1]/63.78460826781007,i=Math.sqrt(e*e+o*o),r=Math.asin(i),n=Math.sin(r);return[Math.atan2(e*n,i*Math.cos(r))/eX,Math.asin(i&&o*n/i)/eX]},t}(),eG=Math.PI/180,eR={EqualEarth:e_,LambertConformalConic:eE,Miller:eV,Orthographic:eN,WebMercator:function(){function t(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=85.0511287798}return t.prototype.forward=function(t){var e=Math.sin(t[1]*eG),o=[63.78137*t[0]*eG,63.78137*Math.log((1+e)/(1-e))/2];return Math.abs(t[1])>this.maxLatitude&&(o.outside=!0),o},t.prototype.inverse=function(t){return[t[0]/(63.78137*eG),(2*Math.atan(Math.exp(t[1]/63.78137))-Math.PI/2)/eG]},t}()},eY=function(t,e,o){if(o||2==arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},eW=Y().clamp,eU=Y().erase,eF=2*Math.PI/360,eZ=function(t){return t<-180&&(t+=360),t>180&&(t-=360),t},eq=function(t){return(1-Math.cos(t))/2},eH=function(t,e){var o=Math.cos,i=t[1]*eF,r=t[0]*eF,n=e[1]*eF,a=e[0]*eF;return eq(n-i)+o(i)*o(n)*eq(a-r)},eK=function(){function t(e){void 0===e&&(e={}),this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=e;var o=e.name,i=e.projectedBounds,r=e.rotation;this.rotator=r?this.getRotator(r):void 0;var n=o?t.registry[o]:void 0;n&&(this.def=new n(e));var a=this.def,s=this.rotator;a&&(this.maxLatitude=a.maxLatitude||90,this.hasGeoProjection=!0),s&&a?(this.forward=function(t){return a.forward(s.forward(t))},this.inverse=function(t){return s.inverse(a.inverse(t))}):a?(this.forward=function(t){return a.forward(t)},this.inverse=function(t){return a.inverse(t)}):s&&(this.forward=s.forward,this.inverse=s.inverse),this.bounds="world"===i?a&&a.bounds:i}return t.add=function(e,o){t.registry[e]=o},t.distance=function(t,e){var o=Math.atan2,i=Math.sqrt,r=eH(t,e);return 6371e3*(2*o(i(r),i(1-r)))},t.geodesic=function(e,o,i,r){void 0===r&&(r=5e5);var n=Math.atan2,a=Math.cos,s=Math.sin,l=Math.sqrt,h=t.distance,p=e[1]*eF,c=e[0]*eF,u=o[1]*eF,d=o[0]*eF,f=a(p)*a(c),y=a(u)*a(d),m=a(p)*s(c),g=a(u)*s(d),v=s(p),b=s(u),x=h(e,o),M=x/6371e3,w=s(M),C=Math.round(x/r),P=[];if(i&&P.push(e),C>1)for(var j=1/C,A=j;A<.999;A+=j){var T=s((1-A)*M)/w,O=s(A*M)/w,L=T*f+O*y,S=T*m+O*g,k=n(T*v+O*b,l(L*L+S*S)),z=n(S,L);P.push([z/eF,k/eF])}return i&&P.push(o),P},t.insertGeodesics=function(e){for(var o=e.length-1;o--;)if(Math.max(Math.abs(e[o][0]-e[o+1][0]),Math.abs(e[o][1]-e[o+1][1]))>10){var i=t.geodesic(e[o],e[o+1]);i.length&&e.splice.apply(e,eY([o+1,0],i,!1))}},t.toString=function(t){var e=t||{},o=e.name,i=e.rotation;return[o,i&&i.join(",")].join(";")},t.prototype.lineIntersectsBounds=function(t){var e,o=this.bounds||{},i=o.x1,r=o.x2,n=o.y1,a=o.y2,s=function(t,e,o){var i=t[0],r=t[1],n=+!e;if("number"==typeof o&&i[e]>=o!=r[e]>=o){var a=(o-i[e])/(r[e]-i[e]),s=i[n]+a*(r[n]-i[n]);return e?[s,o]:[o,s]}},l=t[0];return(e=s(t,0,i))?(l=e,t[1]=e):(e=s(t,0,r))&&(l=e,t[1]=e),(e=s(t,1,n))?l=e:(e=s(t,1,a))&&(l=e),l},t.prototype.getRotator=function(t){var e=t[0]*eF,o=(t[1]||0)*eF,i=(t[2]||0)*eF,r=Math.cos(o),n=Math.sin(o),a=Math.cos(i),s=Math.sin(i);if(0!==e||0!==o||0!==i)return{forward:function(t){var o=t[0]*eF+e,i=t[1]*eF,l=Math.cos(i),h=Math.cos(o)*l,p=Math.sin(o)*l,c=Math.sin(i),u=c*r+h*n;return[Math.atan2(p*a-u*s,h*r-c*n)/eF,Math.asin(u*a+p*s)/eF]},inverse:function(t){var o=t[0]*eF,i=t[1]*eF,l=Math.cos(i),h=Math.cos(o)*l,p=Math.sin(o)*l,c=Math.sin(i),u=c*a-p*s;return[(Math.atan2(p*a+c*s,h*r+u*n)-e)/eF,Math.asin(u*r-h*n)/eF]}}},t.prototype.forward=function(t){return t},t.prototype.inverse=function(t){return t},t.prototype.cutOnAntimeridian=function(e,o){for(var i,r=[],n=[e],a=0,s=e.length;a<s;++a){var l=e[a],h=e[a-1];if(!a){if(!o)continue;h=e[e.length-1]}var p=h[0],c=l[0];if((p<-90||p>90)&&(c<-90||c>90)&&p>0!=c>0){var u=eW((180-(p+360)%360)/((c+360)%360-(p+360)%360),0,1),d=h[1]+u*(l[1]-h[1]);r.push({i:a,lat:d,direction:p<0?1:-1,previousLonLat:h,lonLat:l})}}if(r.length)if(o){r.length%2==1&&(i=r.slice().sort(function(t,e){return Math.abs(e.lat)-Math.abs(t.lat)})[0],eU(r,i));for(var a=r.length-2;a>=0;){var f=r[a].i,y=eZ(180+1e-6*r[a].direction),m=eZ(180-1e-6*r[a].direction),g=e.splice.apply(e,eY([f,r[a+1].i-f],t.geodesic([y,r[a].lat],[y,r[a+1].lat],!0),!1));g.push.apply(g,t.geodesic([m,r[a+1].lat],[m,r[a].lat],!0)),n.push(g),a-=2}if(i)for(var v=0;v<n.length;v++){var b=i.direction,d=i.lat,x=n[v],M=x.indexOf(i.lonLat);if(M>-1){for(var w=(d<0?-1:1)*this.maxLatitude,p=eZ(180+1e-6*b),c=eZ(180-1e-6*b),C=t.geodesic([p,d],[p,w],!0),P=p+120*b;P>-180&&P<180;P+=120*b)C.push([P,w]);C.push.apply(C,t.geodesic([c,w],[c,i.lat],!0)),x.splice.apply(x,eY([M,0],C,!1));break}}}else for(var a=r.length;a--;){var f=r[a].i,g=e.splice(f,e.length,[eZ(180+1e-6*r[a].direction),r[a].lat]);g.unshift([eZ(180-1e-6*r[a].direction),r[a].lat]),n.push(g)}return n},t.prototype.path=function(e){var o,i=this,r=this.bounds,n=this.def,a=this.rotator,s=[],l="Polygon"===e.type||"MultiPolygon"===e.type,h=this.hasGeoProjection,p=!n||!1!==n.antimeridianCutting,c=p?a:void 0,u=p&&n||this;r&&(o=[[r.x1,r.y1],[r.x2,r.y1],[r.x2,r.y2],[r.x1,r.y2]]);var d=function(e){var n=e.map(function(t){if(p){c&&(t=c.forward(t));var e=t[0];1e-6>Math.abs(e-180)&&(e=e<180?179.999999:180.000001),t=[e,t[1]]}return t}),a=[n];h&&(t.insertGeodesics(n),p&&(a=i.cutOnAntimeridian(n,l))),a.forEach(function(e){if(!(e.length<2)){var i,n,a=!1,c=!1,d=function(t){a?s.push(["L",t[0],t[1]]):(s.push(["M",t[0],t[1]]),a=!0)},f=!1,y=!1,m=e.map(function(t){var e=u.forward(t);return e.outside?f=!0:y=!0,e[1]===1/0?e[1]=1e10:e[1]===-1/0&&(e[1]=-1e10),e});if(p){if(l&&m.push(m[0]),f){if(!y)return;if(o){if(l)m=ej(m,o);else if(r)return void eO(m,o).forEach(function(t){a=!1,t.forEach(d)})}}m.forEach(d)}else for(var g=0;g<m.length;g++){var v=e[g],b=m[g];b.outside?c=!0:(l&&!i&&(i=v,e.push(v),m.push(b)),c&&n&&(l&&h?t.geodesic(n,v).forEach(function(t){return d(u.forward(t))}):a=!1),d(b),n=v,c=!1)}}})};return"LineString"===e.type?d(e.coordinates):"MultiLineString"===e.type?e.coordinates.forEach(function(t){return d(t)}):"Polygon"===e.type?(e.coordinates.forEach(function(t){return d(t)}),s.length&&s.push(["Z"])):"MultiPolygon"===e.type&&(e.coordinates.forEach(function(t){t.forEach(function(t){return d(t)})}),s.length&&s.push(["Z"])),s},t.registry=eR,t}(),e$=(b=function(t,e){return(b=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),eJ=function(t,e,o){if(o||2==arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},eQ=Y().composed,e0=eP.pointInPolygon,e1=eC.topo2geo,e2=Y().addEvent,e6=Y().clamp,e3=Y().crisp,e8=Y().fireEvent,e7=Y().isArray,e9=Y().isNumber,e4=Y().isObject,e5=Y().isString,ot=Y().merge,oe=Y().pick,oo=Y().pushUnique,oi=Y().relativeLength,or={};function on(t,e){var o=e.width,i=e.height;return Math.log(400.979322/Math.max((t.x2-t.x1)/(o/256),(t.y2-t.y1)/(i/256)))/Math.log(2)}function oa(t){var e,o;t.seriesOptions.mapData&&(null==(e=this.mapView)||e.recommendMapView(this,[this.options.chart.map,t.seriesOptions.mapData],null==(o=this.options.drilldown)?void 0:o.mapZooming))}var os=function(){function t(e,o){var i,r=this;this.allowTransformAnimation=!0,this.eventsToUnbind=[],this.insets=[],this.padding=[0,0,0,0],this.recommendedMapView={},this instanceof ol||this.recommendMapView(e,eJ([e.options.chart.map],(e.options.series||[]).map(function(t){return t.mapData}),!0)),this.userOptions=o||{};var n=ot(ef,this.recommendedMapView,o),a=null==(i=this.recommendedMapView)?void 0:i.insets,s=o&&o.insets;a&&s&&(n.insets=t.mergeInsets(a,s)),this.chart=e,this.center=n.center,this.options=n,this.projection=new eK(n.projection),this.playingField=e.plotBox,this.zoom=n.zoom||0,this.minZoom=n.minZoom,this.createInsets(),this.eventsToUnbind.push(e2(e,"afterSetChartSize",function(){r.playingField=r.getField(),(void 0===r.minZoom||r.minZoom===r.zoom)&&(r.fitToBounds(void 0,void 0,!1),!r.chart.hasRendered&&e9(r.userOptions.zoom)&&(r.zoom=r.userOptions.zoom),r.userOptions.center&&ot(!0,r.center,r.userOptions.center))})),this.setUpEvents()}return t.compose=function(e){oo(eQ,"MapView")&&(or=e.maps,e2(e,"afterInit",function(){this.mapView=new t(this,this.options.mapView)},{order:0}),e2(e,"addSeriesAsDrilldown",oa),e2(e,"afterDrillUp",oa))},t.compositeBounds=function(t){if(t.length)return t.slice(1).reduce(function(t,e){return t.x1=Math.min(t.x1,e.x1),t.y1=Math.min(t.y1,e.y1),t.x2=Math.max(t.x2,e.x2),t.y2=Math.max(t.y2,e.y2),t},ot(t[0]))},t.mergeInsets=function(t,e){var o=function(t){var e={};return t.forEach(function(t,o){e[t&&t.id||"i".concat(o)]=t}),e},i=ot(o(t),o(e));return Object.keys(i).map(function(t){return i[t]})},t.prototype.createInsets=function(){var t=this,e=this.options,o=e.insets;o&&o.forEach(function(o){var i=new ol(t,ot(e.insetOptions,o));t.insets.push(i)})},t.prototype.fitToBounds=function(t,e,o,i){void 0===o&&(o=!0);var r=t||this.getProjectedBounds();if(r){var n=oe(e,t?0:this.options.padding),a=this.getField(!1),s=e7(n)?n:[n,n,n,n];this.padding=[oi(s[0],a.height),oi(s[1],a.width),oi(s[2],a.height),oi(s[3],a.width)],this.playingField=this.getField();var l=on(r,this.playingField);t||(this.minZoom=l);var h=this.projection.inverse([(r.x2+r.x1)/2,(r.y2+r.y1)/2]);this.setView(h,l,o,i)}},t.prototype.getField=function(t){void 0===t&&(t=!0);var e=t?this.padding:[0,0,0,0];return{x:e[3],y:e[0],width:this.chart.plotWidth-e[1]-e[3],height:this.chart.plotHeight-e[0]-e[2]}},t.prototype.getGeoMap=function(t){if(e5(t))return or[t]&&"Topology"===or[t].type?e1(or[t]):or[t];if(e4(t,!0)){if("FeatureCollection"===t.type)return t;if("Topology"===t.type)return e1(t)}},t.prototype.getMapBBox=function(){var t=this.getProjectedBounds(),e=this.getScale();if(t){var o=this.padding,i=this.projectedUnitsToPixels({x:t.x1,y:t.y2});return{width:(t.x2-t.x1)*e+o[1]+o[3],height:(t.y2-t.y1)*e+o[0]+o[2],x:i.x-o[3],y:i.y-o[0]}}},t.prototype.getProjectedBounds=function(){var e=this.projection,o=this.chart.series.reduce(function(t,e){var o=e.getProjectedBounds&&e.getProjectedBounds();return o&&!1!==e.options.affectsMapView&&t.push(o),t},[]),i=this.options.fitToGeometry;if(i){if(!this.fitToGeometryCache)if("MultiPoint"===i.type){var r=i.coordinates.map(function(t){return e.forward(t)}),n=r.map(function(t){return t[0]}),a=r.map(function(t){return t[1]});this.fitToGeometryCache={x1:Math.min.apply(0,n),x2:Math.max.apply(0,n),y1:Math.min.apply(0,a),y2:Math.max.apply(0,a)}}else this.fitToGeometryCache=er(e.path(i));return this.fitToGeometryCache}return this.projection.bounds||t.compositeBounds(o)},t.prototype.getScale=function(){return 256/400.979322*Math.pow(2,this.zoom)},t.prototype.getSVGTransform=function(){var t=this.playingField,e=t.x,o=t.y,i=t.width,r=t.height,n=this.projection.forward(this.center),a=this.projection.hasCoordinates?-1:1,s=this.getScale(),l=s*a,h=e+i/2-n[0]*s,p=o+r/2-n[1]*l;return{scaleX:s,scaleY:l,translateX:h,translateY:p}},t.prototype.lonLatToPixels=function(t){var e=this.lonLatToProjectedUnits(t);if(e)return this.projectedUnitsToPixels(e)},t.prototype.lonLatToProjectedUnits=function(t){var e=this.chart,o=e.mapTransforms;if(o){for(var i in o)if(Object.hasOwnProperty.call(o,i)&&o[i].hitZone){var r=e.transformFromLatLon(t,o[i]);if(r&&e0(r,o[i].hitZone.coordinates[0]))return r}return e.transformFromLatLon(t,o.default)}for(var n=0,a=this.insets;n<a.length;n++){var s=a[n];if(s.options.geoBounds&&e0({x:t.lon,y:t.lat},s.options.geoBounds.coordinates[0])){var l=s.projection.forward([t.lon,t.lat]),h=s.projectedUnitsToPixels({x:l[0],y:l[1]});return this.pixelsToProjectedUnits(h)}}var p=this.projection.forward([t.lon,t.lat]);if(!p.outside)return{x:p[0],y:p[1]}},t.prototype.pixelsToLonLat=function(t){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(t))},t.prototype.pixelsToProjectedUnits=function(t){var e=t.x,o=t.y,i=this.getScale(),r=this.projection.forward(this.center),n=this.playingField,a=n.x+n.width/2,s=n.y+n.height/2;return{x:r[0]+(e-a)/i,y:r[1]-(o-s)/i}},t.prototype.projectedUnitsToLonLat=function(t){var e=this.chart,o=e.mapTransforms;if(o){for(var i in o)if(Object.hasOwnProperty.call(o,i)&&o[i].hitZone&&e0(t,o[i].hitZone.coordinates[0]))return e.transformToLatLon(t,o[i]);return e.transformToLatLon(t,o.default)}for(var r=this.projectedUnitsToPixels(t),n=0,a=this.insets;n<a.length;n++){var s=a[n];if(s.hitZone&&e0(r,s.hitZone.coordinates[0])){var l=s.pixelsToProjectedUnits(r),h=s.projection.inverse([l.x,l.y]);return{lon:h[0],lat:h[1]}}}var p=this.projection.inverse([t.x,t.y]);return{lon:p[0],lat:p[1]}},t.prototype.projectedUnitsToPixels=function(t){var e=this.getScale(),o=this.projection.forward(this.center),i=this.playingField,r=i.x+i.width/2,n=i.y+i.height/2;return{x:r-e*(o[0]-t.x),y:n+e*(o[1]-t.y)}},t.prototype.recommendMapView=function(e,o,i){var r,n=this;void 0===i&&(i=!1),this.recommendedMapView={};var a=o.map(function(t){return n.getGeoMap(t)}),s=[];a.forEach(function(t){if(t&&(Object.keys(n.recommendedMapView).length||(n.recommendedMapView=t["hc-recommended-mapview"]||{}),t.bbox)){var e=t.bbox,o=e[0],i=e[1],r=e[2],a=e[3];s.push({x1:o,y1:i,x2:r,y2:a})}});var l=s.length&&t.compositeBounds(s);e8(this,"onRecommendMapView",{geoBounds:l,chart:e},function(){if(l&&this.recommendedMapView){if(!this.recommendedMapView.projection){var t=l.x1,e=l.y1,o=l.x2,i=l.y2;this.recommendedMapView.projection=o-t>180&&i-e>90?{name:"EqualEarth",parallels:[0,0],rotation:[0]}:{name:"LambertConformalConic",parallels:[e,i],rotation:[-(t+o)/2]}}this.recommendedMapView.insets||(this.recommendedMapView.insets=void 0)}}),this.geoMap=a[0],i&&e.hasRendered&&!(null==(r=e.userOptions.mapView)?void 0:r.projection)&&this.recommendedMapView&&this.update(this.recommendedMapView)},t.prototype.redraw=function(t){this.chart.series.forEach(function(t){t.useMapGeometry&&(t.isDirty=!0)}),this.chart.redraw(t)},t.prototype.setView=function(t,e,o,i){void 0===o&&(o=!0),t&&(this.center=t),"number"==typeof e&&("number"==typeof this.minZoom&&(e=Math.max(e,this.minZoom)),"number"==typeof this.options.maxZoom&&(e=Math.min(e,this.options.maxZoom)),e9(e)&&(this.zoom=e));var r=this.getProjectedBounds();if(r){var n=this.projection.forward(this.center),a=this.playingField,s=a.x,l=a.y,h=a.width,p=a.height,c=this.getScale(),u=this.projectedUnitsToPixels({x:r.x1,y:r.y1}),d=this.projectedUnitsToPixels({x:r.x2,y:r.y2}),f=[(r.x1+r.x2)/2,(r.y1+r.y2)/2];if(!this.chart.series.some(function(t){return t.isDrilling})){var y=u.x,m=d.y,g=d.x,v=u.y;g-y<h?n[0]=f[0]:y<s&&g<s+h?n[0]+=Math.max(y-s,g-h-s)/c:g>s+h&&y>s&&(n[0]+=Math.min(g-h-s,y-s)/c),v-m<p?n[1]=f[1]:m<l&&v<l+p?n[1]-=Math.max(m-l,v-p-l)/c:v>l+p&&m>l&&(n[1]-=Math.min(v-p-l,m-l)/c),this.center=this.projection.inverse(n)}this.insets.forEach(function(t){t.options.field&&(t.hitZone=t.getHitZone(),t.playingField=t.getField())}),this.render()}e8(this,"afterSetView"),o&&this.redraw(i)},t.prototype.setUpEvents=function(){var t,e,o,i=this,r=this.chart,n=function(n){var a=r.pointer,s=a.lastTouches,l=a.pinchDown,h=i.projection,p=n.touches,c=r.mouseDownX,u=r.mouseDownY,d=0;if((null==l?void 0:l.length)===1?(c=l[0].chartX,u=l[0].chartY):(null==l?void 0:l.length)===2&&(c=(l[0].chartX+l[1].chartX)/2,u=(l[0].chartY+l[1].chartY)/2),(null==p?void 0:p.length)===2&&s&&(d=Math.log(Math.sqrt(Math.pow(s[0].chartX-s[1].chartX,2)+Math.pow(s[0].chartY-s[1].chartY,2))/Math.sqrt(Math.pow(p[0].chartX-p[1].chartX,2)+Math.pow(p[0].chartY-p[1].chartY,2)))/Math.log(.5)),e9(c)&&e9(u)){var f=""+c+",".concat(u),y=n.originalEvent,m=y.chartX,g=y.chartY;(null==p?void 0:p.length)===2&&(m=(p[0].chartX+p[1].chartX)/2,g=(p[0].chartY+p[1].chartY)/2),f!==e&&(e=f,t=i.projection.forward(i.center),o=(i.projection.options.rotation||[0,0]).slice());var v=h.def&&h.def.bounds,b=v&&on(v,i.playingField)||-1/0;if("Orthographic"===h.options.name&&2>((null==p?void 0:p.length)||0)&&(i.minZoom||1/0)<1.3*b){var x=440/(i.getScale()*Math.min(r.plotWidth,r.plotHeight));if(o){var M=(c-m)*x-o[0],w=e6(-o[1]-(u-g)*x,-80,80),C=i.zoom;i.update({projection:{rotation:[-M,-w]}},!1),i.fitToBounds(void 0,void 0,!1),i.zoom=C,r.redraw(!1)}}else if(e9(m)&&e9(g)){var P=i.getScale(),j=i.projection.hasCoordinates?1:-1,A=i.projection.inverse([t[0]+(c-m)/P,t[1]-(u-g)/P*j]);isNaN(A[0]+A[1])||i.zoomBy(d,A,void 0,!1)}n.preventDefault()}};e2(r,"pan",n),e2(r,"touchpan",n),e2(r,"selection",function(t){if(t.resetSelection)i.zoomBy();else{var e=t.x-r.plotLeft,o=t.y-r.plotTop,n=i.pixelsToProjectedUnits({x:e,y:o}),a=n.y,s=n.x,l=i.pixelsToProjectedUnits({x:e+t.width,y:o+t.height}),h=l.y,p=l.x;i.fitToBounds({x1:s,y1:a,x2:p,y2:h},void 0,!0,!t.originalEvent.touches&&void 0),/^touch/.test(t.originalEvent.type)||r.showResetZoom(),t.preventDefault()}})},t.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())},t.prototype.update=function(t,e,o){void 0===e&&(e=!0);var i=t.projection,r=i&&eK.toString(i)!==eK.toString(this.options.projection),n=!1;ot(!0,this.userOptions,t),ot(!0,this.options,t),"insets"in t&&(this.insets.forEach(function(t){return t.destroy()}),this.insets.length=0,n=!0),(r||"fitToGeometry"in t)&&delete this.fitToGeometryCache,(r||n)&&(this.chart.series.forEach(function(t){var e=t.transformGroups;if(t.clearBounds&&t.clearBounds(),t.isDirty=!0,t.isDirtyData=!0,n&&e)for(;e.length>1;){var o=e.pop();o&&o.destroy()}}),r&&(this.projection=new eK(this.options.projection)),n&&this.createInsets(),!t.center&&Object.hasOwnProperty.call(t,"zoom")&&!e9(t.zoom)&&this.fitToBounds(void 0,void 0,!1)),t.center||e9(t.zoom)?this.setView(this.options.center,t.zoom,!1):"fitToGeometry"in t&&this.fitToBounds(void 0,void 0,!1),e&&this.chart.redraw(o)},t.prototype.zoomBy=function(t,e,o,i){var r=this.chart,n=this.projection.forward(this.center);if("number"==typeof t){var a=this.zoom+t,s=void 0,l=void 0,h=void 0;if(o){var p=o[0],c=o[1],u=this.getScale(),d=p-r.plotLeft-r.plotWidth/2,f=c-r.plotTop-r.plotHeight/2;l=n[0]+d/u,h=n[1]+f/u}if("number"==typeof l&&"number"==typeof h){var u=1-Math.pow(2,this.zoom)/Math.pow(2,a),d=n[0]-l,f=n[1]-h;n[0]-=d*u,n[1]+=f*u,s=this.projection.inverse(n)}this.setView(e||s,a,void 0,i)}else this.fitToBounds(void 0,void 0,void 0,i)},t}(),ol=function(t){function e(e,o){var i=t.call(this,e.chart,o)||this;if(i.id=o.id,i.mapView=e,i.options=ot({center:[0,0]},e.options.insetOptions,o),i.allBounds=[],i.options.geoBounds){var r=e.projection.path(i.options.geoBounds);i.geoBoundsProjectedBox=er(r),i.geoBoundsProjectedPolygon=r.map(function(t){return[t[1]||0,t[2]||0]})}return i}return e$(e,t),e.prototype.getField=function(e){void 0===e&&(e=!0);var o=this.hitZone;if(o){var i=e?this.padding:[0,0,0,0],r=o.coordinates[0],n=r.map(function(t){return t[0]}),a=r.map(function(t){return t[1]}),s=Math.min.apply(0,n)+i[3],l=Math.max.apply(0,n)-i[1],h=Math.min.apply(0,a)+i[0],p=Math.max.apply(0,a)-i[2];if(e9(s)&&e9(h))return{x:s,y:h,width:l-s,height:p-h}}return t.prototype.getField.call(this,e)},e.prototype.getHitZone=function(){var t=this.chart,e=this.mapView,o=this.options,i=(o.field||{}).coordinates;if(i){var r=i[0];if("percent"===o.units){var n="mapBoundingBox"===o.relativeTo&&e.getMapBBox()||ot(t.plotBox,{x:0,y:0});r=r.map(function(t){return[oi(""+t[0]+"%",n.width,n.x),oi(""+t[1]+"%",n.height,n.y)]})}return{type:"Polygon",coordinates:[r]}}},e.prototype.getProjectedBounds=function(){return os.compositeBounds(this.allBounds)},e.prototype.isInside=function(t){var e=this.geoBoundsProjectedBox,o=this.geoBoundsProjectedPolygon;return!!(e&&t.x>=e.x1&&t.x<=e.x2&&t.y>=e.y1&&t.y<=e.y2&&o&&e0(t,o))},e.prototype.render=function(){var t=this.chart,e=this.mapView,o=this.options,i=o.borderPath||o.field;if(i&&e.group){var r=!0;this.border||(this.border=t.renderer.path().addClass("highcharts-mapview-inset-border").add(e.group),r=!1),t.styledMode||this.border.attr({stroke:o.borderColor,"stroke-width":o.borderWidth});var n=this.border.strokeWidth(),a="mapBoundingBox"===o.relativeTo&&e.getMapBBox()||e.playingField,s=(i.coordinates||[]).reduce(function(e,i){return i.reduce(function(e,i,r){var s=i[0],l=i[1];return"percent"===o.units&&(s=t.plotLeft+oi(""+s+"%",a.width,a.x),l=t.plotTop+oi(""+l+"%",a.height,a.y)),s=e3(s,n),l=e3(l,n),e.push(0===r?["M",s,l]:["L",s,l]),e},e)},[]);this.border[r?"animate":"attr"]({d:s})}},e.prototype.destroy=function(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(function(t){return t()})},e.prototype.setUpEvents=function(){},e}(os),oh=(x=function(t,e){return(x=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}x(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),op=function(t,e,o){if(o||2==arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},oc=Y().animObject,ou=Y().stop,od=Y().noop,of=ei.splitPath,oy=ts().seriesTypes,om=oy.column,og=oy.scatter,ov=Y().extend,ob=Y().find,ox=Y().fireEvent,oM=Y().getNestedProperty,ow=Y().isArray,oC=Y().defined,oP=Y().isNumber,oj=Y().isObject,oA=Y().merge,oT=Y().objectEach,oO=Y().pick,oL=Y().splat,oS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.processedData=[],e}return oh(e,t),e.prototype.animate=function(t){var e=this.chart,o=this.group,i=oc(this.options.animation);t?o.attr({translateX:e.plotLeft+e.plotWidth/2,translateY:e.plotTop+e.plotHeight/2,scaleX:.001,scaleY:.001}):o.animate({translateX:e.plotLeft,translateY:e.plotTop,scaleX:1,scaleY:1},i)},e.prototype.clearBounds=function(){this.points.forEach(function(t){delete t.bounds,delete t.insetIndex,delete t.projectedPath}),delete this.bounds},e.prototype.doFullTranslate=function(){return!!(this.isDirtyData||this.chart.isResizing||!this.hasRendered)},e.prototype.drawMapDataLabels=function(){var e,o=this;t.prototype.drawDataLabels.call(this),null==(e=this.dataLabelsGroups)||e.forEach(function(t){return null==t?void 0:t.clip(o.chart.clipRect)})},e.prototype.drawPoints=function(){var t=this,e=this,o=this.chart,i=this.group,r=this.transformGroups,n=void 0===r?[]:r,a=o.mapView,s=o.renderer;if(a){this.transformGroups=n,n[0]||(n[0]=s.g().add(i));for(var l=0,h=a.insets.length;l<h;++l)n[l+1]||n.push(s.g().add(i));this.doFullTranslate()&&(this.points.forEach(function(t){var e=t.graphic;t.group=n["number"==typeof t.insetIndex?t.insetIndex+1:0],e&&e.parentGroup!==t.group&&e.add(t.group)}),om.prototype.drawPoints.apply(this),this.points.forEach(function(i){var r,n=i.graphic;if(n){var a=n.animate,s="";i.name&&(s+="highcharts-name-"+i.name.replace(/ /g,"-").toLowerCase()),(null==(r=i.properties)?void 0:r["hc-key"])&&(s+=" highcharts-key-"+i.properties["hc-key"].toString().toLowerCase()),s&&n.addClass(s),o.styledMode&&n.css(t.pointAttribs(i,i.selected&&"select"||void 0)),n.attr({visibility:!i.visible&&(i.visible||i.isNull)?"hidden":"inherit"}),n.animate=function(t,i,r){var s,l=oP(t["stroke-width"])&&!oP(n["stroke-width"]),h=oP(n["stroke-width"])&&!oP(t["stroke-width"]);if(l||h){var p=oO(e.getStrokeWidth(e.options),1)/((null==(s=o.mapView)?void 0:s.getScale())||1);l&&(n["stroke-width"]=p),h&&(t["stroke-width"]=p)}return a.call(n,t,i,h?function(){n.element.removeAttribute("stroke-width"),delete n["stroke-width"],r&&r.apply(this,arguments)}:r)}}})),n.forEach(function(i,r){var n=(0===r?a:a.insets[r-1]).getSVGTransform(),l=oO(t.getStrokeWidth(t.options),1),h=n.scaleX,p=n.scaleY>0?1:-1,c=function(o){(e.points||[]).forEach(function(e){var i,r=e.graphic;(null==r?void 0:r["stroke-width"])&&(i=t.getStrokeWidth(e.options))&&r.attr({"stroke-width":i/o})})};if(s.globalAnimation&&o.hasRendered&&a.allowTransformAnimation){var u=Number(i.attr("translateX")),d=Number(i.attr("translateY")),f=Number(i.attr("scaleX")),y=function(t,e){var o=f+(h-f)*e.pos;i.attr({translateX:u+(n.translateX-u)*e.pos,translateY:d+(n.translateY-d)*e.pos,scaleX:o,scaleY:o*p,"stroke-width":l/o}),c(o)},m=oA(oc(s.globalAnimation)),g=m.step;m.step=function(){g&&g.apply(this,arguments),y.apply(this,arguments)},i.attr({animator:0}).animate({animator:1},m,(function(){"boolean"!=typeof s.globalAnimation&&s.globalAnimation.complete&&s.globalAnimation.complete({applyDrilldown:!0}),ox(this,"mapZoomComplete")}).bind(t))}else ou(i),i.attr(oA(n,{"stroke-width":l/h})),c(h)}),this.isDrilling||this.drawMapDataLabels()}},e.prototype.getProjectedBounds=function(){var t=this;if(!this.bounds&&this.chart.mapView){var e=this.chart.mapView,o=e.insets,i=e.projection,r=[];(this.points||[]).forEach(function(e){if(e.path||e.geometry){if("string"==typeof e.path?e.path=of(e.path):ow(e.path)&&"M"===e.path[0]&&(e.path=t.chart.renderer.pathToSegments(e.path)),!e.bounds){var n=e.getProjectedBounds(i);if(n){e.labelrank=oO(e.labelrank,(n.x2-n.x1)*(n.y2-n.y1));var a=n.midX,s=n.midY;if(o&&oP(a)&&oP(s)){var l=ob(o,function(t){return t.isInside({x:a,y:s})});l&&(delete e.projectedPath,(n=e.getProjectedBounds(l.projection))&&l.allBounds.push(n),e.insetIndex=o.indexOf(l))}e.bounds=n}}e.bounds&&void 0===e.insetIndex&&r.push(e.bounds)}}),this.bounds=os.compositeBounds(r)}return this.bounds},e.prototype.getStrokeWidth=function(t){var e=this.pointAttrToOptions;return t[(null==e?void 0:e["stroke-width"])||"borderWidth"]},e.prototype.hasData=function(){return!!this.dataTable.rowCount},e.prototype.pointAttribs=function(t,e){var o,i,r,n=t.series.chart,a=n.mapView,s=n.styledMode?this.colorAttribs(t):om.prototype.pointAttribs.call(this,t,e),l=this.getStrokeWidth(t.options);if(e){var h=oA(null==(o=this.options.states)?void 0:o[e],(null==(i=t.options.states)?void 0:i[e])||{}),p=this.getStrokeWidth(h);oC(p)&&(l=p),s.stroke=null!=(r=h.borderColor)?r:t.color}l&&a&&(l/=a.getScale());var c=this.getStrokeWidth(this.options);return s.dashstyle&&a&&oP(c)&&(l=c/a.getScale()),t.visible||(s.fill=this.options.nullColor),t.isNull&&this.options.nullInteraction&&(s.opacity=1),oC(l)?s["stroke-width"]=l:delete s["stroke-width"],s["stroke-linecap"]=s["stroke-linejoin"]=this.options.linecap,s},e.prototype.updateData=function(){return!this.processedData&&t.prototype.updateData.apply(this,arguments)},e.prototype.setData=function(e,o,i,r){void 0===o&&(o=!0),delete this.bounds,t.prototype.setData.call(this,e,!1,void 0,r),this.processData(),this.generatePoints(),o&&this.chart.redraw(i)},e.prototype.dataColumnKeys=function(){return this.pointArrayMap},e.prototype.processData=function(){var t,e,o,i=this.options,r=i.data,n=this.chart,a=n.options.chart,s=this.joinBy,l=i.keys||this.pointArrayMap,h=[],p={},c=this.chart.mapView,u=c&&(oj(i.mapData,!0)?c.getGeoMap(i.mapData):c.geoMap),d=n.mapTransforms=a.mapTransforms||(null==u?void 0:u["hc-transform"])||n.mapTransforms;d&&oT(d,function(t){t.rotation&&(t.cosAngle=Math.cos(t.rotation),t.sinAngle=Math.sin(t.rotation))}),ow(i.mapData)?o=i.mapData:u&&"FeatureCollection"===u.type&&(this.mapTitle=u.title,o=Y().geojson(u,this.type,this)),this.processedData=[];var f=this.processedData;if(r)for(var y=void 0,m=0,g=r.length;m<g;++m){if(oP(y=r[m]))f[m]={value:y};else if(ow(y)){var v=0;f[m]={},!i.keys&&y.length>l.length&&"string"==typeof y[0]&&(f[m]["hc-key"]=y[0],++v);for(var b=0;b<l.length;++b,++v)l[b]&&void 0!==y[v]&&(l[b].indexOf(".")>0?ec.prototype.setNestedProperty(f[m],y[v],l[b]):f[m][l[b]]=y[v])}else f[m]=r[m];s&&"_i"===s[0]&&(f[m]._i=m)}if(o){this.mapData=o,this.mapMap={};for(var m=0;m<o.length;m++)e=(t=o[m]).properties,t._i=m,s[0]&&e&&e[s[0]]&&(t[s[0]]=e[s[0]]),p[t[s[0]]]=t;if(this.mapMap=p,s[1]){var x=s[1];f.forEach(function(t){var e=oM(x,t);p[e]&&h.push(p[e])})}if(i.allAreas){if(s[1]){var M=s[1];f.forEach(function(t){h.push(oM(M,t))})}var w="|"+h.map(function(t){return t&&t[s[0]]}).join("|")+"|";o.forEach(function(t){s[0]&&-1!==w.indexOf("|"+t[s[0]]+"|")||f.push(oA(t,{value:null}))})}}this.dataTable.rowCount=f.length},e.prototype.setOptions=function(e){var o=t.prototype.setOptions.call(this,e),i=o.joinBy;return null===o.joinBy&&(i="_i"),i&&(this.joinBy=oL(i),this.joinBy[1]||(this.joinBy[1]=this.joinBy[0])),o},e.prototype.translate=function(){var t=this.doFullTranslate(),e=this.chart.mapView,o=null==e?void 0:e.projection;if(this.chart.hasRendered&&(this.isDirtyData||!this.hasRendered)&&(this.processData(),this.generatePoints(),delete this.bounds,!e||e.userOptions.center||oP(e.userOptions.zoom)||e.zoom!==e.minZoom?this.getProjectedBounds():e.fitToBounds(void 0,void 0,!1)),e){var i=e.getSVGTransform();this.points.forEach(function(r){var n=oP(r.insetIndex)&&e.insets[r.insetIndex].getSVGTransform()||i;n&&r.bounds&&oP(r.bounds.midX)&&oP(r.bounds.midY)&&(r.plotX=r.bounds.midX*n.scaleX+n.translateX,r.plotY=r.bounds.midY*n.scaleY+n.translateY),t&&(r.shapeType="path",r.shapeArgs={d:ec.getProjectedPath(r,o)}),!r.hiddenInDataClass&&(r.projectedPath&&!r.projectedPath.length?r.setVisible(!1):r.visible||r.setVisible(!0))})}ox(this,"afterTranslate")},e.prototype.update=function(e){var o,i=this;e.mapData&&(null==(o=this.chart.mapView)||o.recommendMapView(this.chart,op([this.chart.options.chart.map],(this.chart.options.series||[]).map(function(t,o){return o===i._i?e.mapData:t.mapData}),!0),!0)),t.prototype.update.apply(this,arguments)},e.defaultOptions=oA(og.defaultOptions,ed),e}(og);ov(oS.prototype,{type:"map",axisTypes:tZ.seriesMembers.axisTypes,colorAttribs:tZ.seriesMembers.colorAttribs,colorKey:tZ.seriesMembers.colorKey,directTouch:!0,drawDataLabels:od,drawGraph:od,forceDL:!0,getCenter:t1.getCenter,getExtremesFromAll:!0,getSymbol:od,isCartesian:!1,parallelArrays:tZ.seriesMembers.parallelArrays,pointArrayMap:tZ.seriesMembers.pointArrayMap,pointClass:ec,preserveAspectRatio:!0,searchPoint:od,trackerGroups:tZ.seriesMembers.trackerGroups,useMapGeometry:!0}),tZ.compose(oS),ts().registerSeriesType("map",oS);var ok={lineWidth:1,fillColor:"none",legendSymbol:"lineMarker"},oz=(M=function(t,e){return(M=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}M(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),oE=Y().extend,oI=Y().merge,o_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oz(e,t),e.prototype.pointAttribs=function(e,o){var i=t.prototype.pointAttribs.call(this,e,o);return i.fill=this.options.fillColor,i},e.defaultOptions=oI(oS.defaultOptions,ok),e}(oS);oE(o_.prototype,{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),ts().registerSeriesType("mapline",o_);var oB=(w=function(t,e){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}w(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),oD=ts().seriesTypes.scatter,oV=Y().isNumber,oX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oB(e,t),e.prototype.isValid=function(){return!!(this.options.geometry||oV(this.x)&&oV(this.y)||oV(this.options.lon)&&oV(this.options.lat))},e}(oD.prototype.pointClass),oN={dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}},legendSymbol:"lineMarker",stickyTracking:!0,tooltip:{pointFormat:"{#if point.name}{point.name}{else}Lat: {point.lat}, Lon: {point.lon}{/if}"}};N(632);var oG=(C=function(t,e){return(C=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}C(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),oR=Y().noop,oY=ts().seriesTypes,oW=oY.map,oU=oY.scatter,oF=Y().extend,oZ=Y().fireEvent,oq=Y().isNumber,oH=Y().merge,oK=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearBounds=oW.prototype.clearBounds,e}return oG(e,t),e.prototype.drawDataLabels=function(){var e,o=this;t.prototype.drawDataLabels.call(this),null==(e=this.dataLabelsGroups)||e.forEach(function(t){null==t||t.clip(o.chart.clipRect)})},e.prototype.projectPoint=function(t){var e=this.chart.mapView;if(e){var o=t.geometry,i=t.lon,r=t.lat,n=o&&"Point"===o.type&&o.coordinates;if(oq(i)&&oq(r)&&(n=[i,r]),n)return e.lonLatToProjectedUnits({lon:n[0],lat:n[1]})}},e.prototype.translate=function(){var t=this,e=this.chart.mapView;if(this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),e){var o=e.getSVGTransform(),i=e.projection.hasCoordinates;this.points.forEach(function(r){var n,a=r.x,s=void 0===a?void 0:a,l=r.y,h=void 0===l?void 0:l,p=oq(r.insetIndex)&&e.insets[r.insetIndex].getSVGTransform()||o,c=t.projectPoint(r.options)||r.properties&&t.projectPoint(r.properties);if(c?(s=c.x,h=c.y):r.bounds&&(s=r.bounds.midX,h=r.bounds.midY,p&&oq(s)&&oq(h)&&(r.plotX=s*p.scaleX+p.translateX,r.plotY=h*p.scaleY+p.translateY,n=!0)),oq(s)&&oq(h)){if(!n){var u=e.projectedUnitsToPixels({x:s,y:h});r.plotX=u.x,r.plotY=i?u.y:t.chart.plotHeight-u.y}}else r.y=r.plotX=r.plotY=void 0;r.isInside=t.isPointInside(r),r.zone=t.zones.length?r.getZone():void 0})}oZ(this,"afterTranslate")},e.defaultOptions=oH(oU.defaultOptions,oN),e}(oU);t8().prototype.symbols.mapmarker=function(t,e,o,i,r){var n,a,s=r&&"legend"===r.context;s?(n=t+o/2,a=e+i):r&&"number"==typeof r.anchorX&&"number"==typeof r.anchorY?(n=r.anchorX,a=r.anchorY):(n=t+o/2,a=e+i/2,e-=i);var l=s?i/3:i/2;return[["M",n,a],["C",n,a,n-l,e+1.5*l,n-l,e+l],["A",l,l,1,1,1,n+l,e+l],["C",n+l,e+1.5*l,n,a,n,a],["Z"]]},oF(oK.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:oX,searchPoint:oR,useMapGeometry:!0}),ts().registerSeriesType("mappoint",oK);var o$={borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0},oJ=Y().noop,oQ=Y().arrayMax,o0=Y().arrayMin,o1=Y().isNumber,o2=Y().merge,o6=Y().pick,o3=Y().stableSort,o8=function(){function t(t,e){this.setState=oJ,this.init(t,e)}return t.prototype.init=function(t,e){this.options=t,this.visible=!0,this.chart=e.chart,this.legend=e},t.prototype.addToLegend=function(t){t.splice(this.options.legendIndex,0,this)},t.prototype.drawLegendSymbol=function(t){var e,o=o6(t.options.itemDistance,20),i=this.legendItem||{},r=this.options,n=r.ranges,a=r.connectorDistance;if(!n||!n.length||!o1(n[0].value)){t.options.bubbleLegend.autoRanges=!0;return}o3(n,function(t,e){return e.value-t.value}),this.ranges=n,this.setOptions(),this.render();var s=this.getMaxLabelSize(),l=this.ranges[0].radius,h=2*l;e=(e=a-l+s.width)>0?e:0,this.maxLabel=s,this.movementX="left"===r.labels.align?e:0,i.labelWidth=h+e+o,i.labelHeight=h+s.height/2},t.prototype.setOptions=function(){var t=this.ranges,e=this.options,o=this.chart.series[e.seriesIndex],i=this.legend.baseline,r={zIndex:e.zIndex,"stroke-width":e.borderWidth},n={zIndex:e.zIndex,"stroke-width":e.connectorWidth},a={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},s=o.options.marker.fillOpacity,l=this.chart.styledMode;t.forEach(function(h,p){l||(r.stroke=o6(h.borderColor,e.borderColor,o.color),r.fill=h.color||e.color,r.fill||(r.fill=o.color,r["fill-opacity"]=null!=s?s:1),n.stroke=o6(h.connectorColor,e.connectorColor,o.color)),t[p].radius=this.getRangeRadius(h.value),t[p]=o2(t[p],{center:t[0].radius-t[p].radius+i}),l||o2(!0,t[p],{bubbleAttribs:o2(r),connectorAttribs:o2(n),labelAttribs:a})},this)},t.prototype.getRangeRadius=function(t){var e=this.options,o=this.options.seriesIndex,i=this.chart.series[o],r=e.ranges[0].value,n=e.ranges[e.ranges.length-1].value,a=e.minSize,s=e.maxSize;return i.getRadius.call(this,n,r,a,s,t)},t.prototype.render=function(){var t=this.legendItem||{},e=this.chart.renderer,o=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),t.symbol=e.g("bubble-legend"),t.label=e.g("bubble-legend-item").css(this.legend.itemStyle||{}),t.symbol.translateX=0,t.symbol.translateY=0,t.symbol.add(t.label),t.label.add(t.group);for(var i=0,r=this.ranges;i<r.length;i++){var n=r[i];n.value>=o&&this.renderRange(n)}this.hideOverlappingLabels()},t.prototype.renderRange=function(t){var e=this.ranges[0],o=this.legend,i=this.options,r=i.labels,n=this.chart,a=n.series[i.seriesIndex],s=n.renderer,l=this.symbols,h=l.labels,p=t.center,c=Math.abs(t.radius),u=i.connectorDistance||0,d=r.align,f=o.options.rtl,y=i.borderWidth,m=i.connectorWidth,g=e.radius||0,v=p-c-y/2+m/2,b=(v%1?1:.5)-(m%2?0:.5),x=s.styledMode,M=f||"left"===d?-u:u;"center"===d&&(M=0,i.connectorDistance=0,t.labelAttribs.align="center"),l.bubbleItems.push(s.circle(g,p+b,c).attr(x?{}:t.bubbleAttribs).addClass((x?"highcharts-color-"+a.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(i.className||"")).add(this.legendItem.symbol)),l.connectors.push(s.path(s.crispLine([["M",g,v],["L",g+M,v]],i.connectorWidth)).attr(x?{}:t.connectorAttribs).addClass((x?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(i.connectorClassName||"")).add(this.legendItem.symbol));var w=s.text(this.formatLabel(t)).attr(x?{}:t.labelAttribs).css(x?{}:r.style).addClass("highcharts-bubble-legend-labels "+(i.labels.className||"")).add(this.legendItem.symbol),C={x:g+M+i.labels.x,y:v+i.labels.y+.4*w.getBBox().height};w.attr(C),h.push(w),w.placed=!0,w.alignAttr=C},t.prototype.getMaxLabelSize=function(){var t,e;return this.symbols.labels.forEach(function(o){e=o.getBBox(!0),t=t?e.width>t.width?e:t:e}),t||{}},t.prototype.formatLabel=function(t){var e=this.options,o=e.labels.formatter,i=e.labels.format,r=this.chart.numberFormatter;return i?em().format(i,t,this.chart):o?o.call(t):r(t.value,1)},t.prototype.hideOverlappingLabels=function(){var t=this.chart,e=this.options.labels.allowOverlap,o=this.symbols;!e&&o&&(t.hideOverlappingLabels(o.labels),o.labels.forEach(function(t,e){t.newOpacity?t.newOpacity!==t.oldOpacity&&o.connectors[e].show():o.connectors[e].hide()}))},t.prototype.getRanges=function(){var t,e,o=this.legend.bubbleLegend,i=o.chart.series,r=o.options.ranges,n=Number.MAX_VALUE,a=-Number.MAX_VALUE;return i.forEach(function(t){t.isBubble&&!t.ignoreSeries&&(e=t.getColumn("z").filter(o1)).length&&(n=o6(t.options.zMin,Math.min(n,Math.max(o0(e),!1===t.options.displayNegative?t.options.zThreshold:-Number.MAX_VALUE))),a=o6(t.options.zMax,Math.max(a,oQ(e))))}),t=n===a?[{value:a}]:[{value:n},{value:(n+a)/2},{value:a,autoRanges:!0}],r.length&&r[0].radius&&t.reverse(),t.forEach(function(e,o){r&&r[o]&&(t[o]=o2(r[o],e))}),t},t.prototype.predictBubbleSizes=function(){var t,e=this.chart,o=e.legend.options,i=o.floating,r="horizontal"===o.layout,n=r?e.legend.lastLineHeight:0,a=e.plotSizeX,s=e.plotSizeY,l=e.series[this.options.seriesIndex],h=l.getPxExtremes(),p=Math.ceil(h.minPxSize),c=Math.ceil(h.maxPxSize),u=Math.min(s,a),d=l.options.maxSize;return i||!/%$/.test(d)?t=c:(t=(u+n)*(d=parseFloat(d))/100/(d/100+1),(r&&s-t>=a||!r&&a-t>=s)&&(t=c)),[p,Math.ceil(t)]},t.prototype.updateRanges=function(t,e){var o=this.legend.options.bubbleLegend;o.minSize=t,o.maxSize=e,o.ranges=this.getRanges()},t.prototype.correctSizes=function(){var t=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,e.maxPxSize),t.render())},t}(),o7=Y().setOptions,o9=Y().composed,o4=Y().addEvent,o5=Y().objectEach,it=Y().pushUnique,ie=Y().wrap;function io(t,e,o){var i,r,n,a=this.legend,s=ii(this)>=0;a&&a.options.enabled&&a.bubbleLegend&&a.options.bubbleLegend.autoRanges&&s?(i=a.bubbleLegend.options,r=a.bubbleLegend.predictBubbleSizes(),a.bubbleLegend.updateRanges(r[0],r[1]),i.placed||(a.group.placed=!1,a.allItems.forEach(function(t){(n=t.legendItem||{}).group&&(n.group.translateY=void 0)})),a.render(),i.placed||(this.getMargins(),this.axes.forEach(function(t){t.setScale(),t.updateNames(),o5(t.ticks,function(t){t.isNew=!0,t.isNewLabel=!0})}),this.getMargins()),i.placed=!0,t.call(this,e,o),a.bubbleLegend.correctSizes(),il(a,ir(a))):(t.call(this,e,o),a&&a.options.enabled&&a.bubbleLegend&&(a.render(),il(a,ir(a))))}function ii(t){for(var e=t.series,o=0;o<e.length;){if(e[o]&&e[o].isBubble&&e[o].visible&&e[o].dataTable.rowCount)return o;o++}return -1}function ir(t){var e,o,i,r=t.allItems,n=[],a=r.length,s=0,l=0;for(s=0;s<a;s++)if(o=r[s].legendItem||{},i=(r[s+1]||{}).legendItem||{},o.labelHeight&&(r[s].itemHeight=o.labelHeight),r[s]===r[a-1]||o.y!==i.y){for(n.push({height:0}),e=n[n.length-1];l<=s;l++)r[l].itemHeight>e.height&&(e.height=r[l].itemHeight);e.step=s}return n}function ia(t){var e=this.bubbleLegend,o=this.options,i=o.bubbleLegend,r=ii(this.chart);e&&e.ranges&&e.ranges.length&&(i.ranges.length&&(i.autoRanges=!!i.ranges[0].autoRanges),this.destroyItem(e)),r>=0&&o.enabled&&i.enabled&&(i.seriesIndex=r,this.bubbleLegend=new o8(i,this),this.bubbleLegend.addToLegend(t.allItems))}function is(t){if(t.defaultPrevented)return!1;var e,o=t.legendItem,i=this.chart,r=o.visible;this&&this.bubbleLegend&&(o.visible=!r,o.ignoreSeries=r,e=ii(i)>=0,this.bubbleLegend.visible!==e&&(this.update({bubbleLegend:{enabled:e}}),this.bubbleLegend.visible=e),o.visible=r)}function il(t,e){var o,i,r,n,a=t.allItems,s=t.options.rtl,l=0;a.forEach(function(t,a){(n=t.legendItem||{}).group&&(o=n.group.translateX||0,i=n.y||0,((r=t.movementX)||s&&t.ranges)&&(r=s?o-t.options.maxSize/2:o+r,n.group.attr({translateX:r})),a>e[l].step&&l++,n.group.attr({translateY:Math.round(i+e[l].height/2)}),n.y=i+e[l].height/2)})}var ih=function(t,e){it(o9,"Series.BubbleLegend")&&(o7({legend:{bubbleLegend:o$}}),ie(t.prototype,"drawChartBox",io),o4(e,"afterGetAllItems",ia),o4(e,"itemClick",is))},ip=N(260),ic=N.n(ip),iu=(P=function(t,e){return(P=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}P(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),id=ts().seriesTypes.scatter.prototype.pointClass,iy=Y().extend,im=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iu(e,t),e.prototype.haloPath=function(t){var e=(t&&this.marker&&this.marker.radius||0)+t;if(this.series.chart.inverted){var o=this.pos()||[0,0],i=this.series,r=i.xAxis,n=i.yAxis,a=i.chart,s=2*e;return a.renderer.symbols.circle(((null==r?void 0:r.len)||0)-o[1]-e,((null==n?void 0:n.len)||0)-o[0]-e,s,s)}return ic().prototype.haloPath.call(this,e)},e}(id);iy(im.prototype,{ttBelow:!1});var ig=(j=function(t,e){return(j=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}j(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),iv=Y().composed,ib=Y().noop,ix=ts().series,iM=ts().seriesTypes,iw=iM.column.prototype,iC=iM.scatter,iP=Y().addEvent,ij=Y().arrayMax,iA=Y().arrayMin,iT=Y().clamp,iO=Y().extend,iL=Y().isNumber,iS=Y().merge,ik=Y().pick,iz=Y().pushUnique;function iE(){var t,e=this,o=this.len,i=this.coll,r=this.isXAxis,n=this.min,a=(this.max||0)-(n||0),s=0,l=o,h=o/a;("xAxis"===i||"yAxis"===i)&&(this.series.forEach(function(o){if(o.bubblePadding&&o.reserveSpace()){e.allowZoomOutside=!0,t=!0;var i=o.getColumn(r?"x":"y");if(r&&((o.onPoint||o).getRadii(0,0,o),o.onPoint&&(o.radii=o.onPoint.radii)),a>0){for(var p=i.length;p--;)if(iL(i[p])&&e.dataMin<=i[p]&&i[p]<=e.max){var c=o.radii&&o.radii[p]||0;s=Math.min((i[p]-n)*h-c,s),l=Math.max((i[p]-n)*h+c,l)}}}}),t&&a>0&&!this.logarithmic&&(l-=o,h*=(o+Math.max(0,s)-Math.min(l,o))/o,[["min","userMin",s],["max","userMax",l]].forEach(function(t){void 0===ik(e.options[t[0]],e[t[1]])&&(e[t[0]]+=t[2]/h)})))}function iI(){var t,e=this.ticks,o=this.tickPositions,i=this.dataMin,r=void 0===i?0:i,n=this.dataMax,a=void 0===n?0:n,s=this.categories,l=this.options.type;if(((null==s?void 0:s.length)||"category"===l)&&this.series.find(function(t){return t.bubblePadding}))for(var h=o.length;h--;){var p=e[o[h]],c=p.pos||0;(c>a||c<r)&&(null==(t=p.label)||t.hide())}}var i_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ig(e,t),e.compose=function(t,e,o){ih(e,o),iz(iv,"Series.Bubble")&&(iP(t,"foundExtremes",iE),iP(t,"afterRender",iI))},e.prototype.animate=function(t){!t&&this.points.length<this.options.animationLimit&&this.points.forEach(function(t){var e=t.graphic,o=t.plotX,i=t.plotY;e&&e.width&&(this.hasRendered||e.attr({x:void 0===o?0:o,y:void 0===i?0:i,width:1,height:1}),e.animate(this.markerAttribs(t),this.options.animation))},this)},e.prototype.getRadii=function(){var t,e,o,i=this.getColumn("z"),r=this.getColumn("y"),n=[],a=this.chart.bubbleZExtremes,s=this.getPxExtremes(),l=s.minPxSize,h=s.maxPxSize;if(!a){var p,c=Number.MAX_VALUE,u=-Number.MAX_VALUE;this.chart.series.forEach(function(t){if(t.bubblePadding&&t.reserveSpace()){var e=(t.onPoint||t).getZExtremes();e&&(c=Math.min(ik(c,e.zMin),e.zMin),u=Math.max(ik(u,e.zMax),e.zMax),p=!0)}}),p?(a={zMin:c,zMax:u},this.chart.bubbleZExtremes=a):a={zMin:0,zMax:0}}for(e=0,t=i.length;e<t;e++)o=i[e],n.push(this.getRadius(a.zMin,a.zMax,l,h,o,r&&r[e]));this.radii=n},e.prototype.getRadius=function(t,e,o,i,r,n){var a=this.options,s="width"!==a.sizeBy,l=a.zThreshold,h=e-t,p=.5;if(null===n||null===r)return null;if(iL(r)){if(a.sizeByAbsoluteValue&&(r=Math.abs(r-l),e=h=Math.max(e-l,Math.abs(t-l)),t=0),r<t)return o/2-1;h>0&&(p=(r-t)/h)}return s&&p>=0&&(p=Math.sqrt(p)),Math.ceil(o+p*(i-o))/2},e.prototype.hasData=function(){return!!this.dataTable.rowCount},e.prototype.markerAttribs=function(e,o){var i=t.prototype.markerAttribs.call(this,e,o),r=i.height,n=i.width;return this.chart.inverted?iO(i,{x:(e.plotX||0)-(void 0===n?0:n)/2,y:(e.plotY||0)-(void 0===r?0:r)/2}):i},e.prototype.pointAttribs=function(t,e){var o=this.options.marker,i=null==o?void 0:o.fillOpacity,r=ix.prototype.pointAttribs.call(this,t,e);return r["fill-opacity"]=null!=i?i:1,r},e.prototype.translate=function(){t.prototype.translate.call(this),this.getRadii(),this.translateBubble()},e.prototype.translateBubble=function(){for(var t=this.data,e=this.options,o=this.radii,i=this.getPxExtremes().minPxSize,r=t.length;r--;){var n=t[r],a=o?o[r]:0;"z"===this.zoneAxis&&(n.negative=(n.z||0)<(e.zThreshold||0)),iL(a)&&a>=i/2?(n.marker=iO(n.marker,{radius:a,width:2*a,height:2*a}),n.dlBox={x:n.plotX-a,y:n.plotY-a,width:2*a,height:2*a}):(n.shapeArgs=n.plotY=n.dlBox=void 0,n.isInside=!1)}},e.prototype.getPxExtremes=function(){var t=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(e){var o;return"string"==typeof e&&(o=/%$/.test(e),e=parseInt(e,10)),o?t*e/100:e},o=e(ik(this.options.minSize,8)),i=Math.max(e(ik(this.options.maxSize,"20%")),o);return{minPxSize:o,maxPxSize:i}},e.prototype.getZExtremes=function(){var t=this.options,e=this.getColumn("z").filter(iL);if(e.length){var o=ik(t.zMin,iT(iA(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),i=ik(t.zMax,ij(e));if(iL(o)&&iL(i))return{zMin:o,zMax:i}}},e.prototype.searchKDTree=function(e,o,i,r,n){return void 0===r&&(r=ib),void 0===n&&(n=ib),r=function(t,e,o){var i,r,n,a=t[o]||0,s=e[o]||0,l=!1;return a===s?n=t.index>e.index?t:e:a<0&&s<0?(n=a-((null==(i=t.marker)?void 0:i.radius)||0)>=s-((null==(r=e.marker)?void 0:r.radius)||0)?t:e,l=!0):n=a<s?t:e,[n,l]},n=function(t,e,o){return!o&&t>e||t<e},t.prototype.searchKDTree.call(this,e,o,i,r,n)},e.defaultOptions=iS(iC.defaultOptions,{dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.z;return iL(e)?t(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,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"}),e}(iC);iO(i_.prototype,{alignDataLabel:iw.alignDataLabel,applyZones:ib,bubblePadding:!0,isBubble:!0,keysAffectYAxis:["y"],pointArrayMap:["y","z"],pointClass:im,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),iP(i_,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),iP(i_,"remove",function(t){delete t.target.chart.bubbleZExtremes}),ts().registerSeriesType("bubble",i_);var iB=(A=function(t,e){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),iD=ts().seriesTypes.map.prototype.pointClass.prototype,iV=Y().extend,iX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iB(e,t),e.prototype.isValid=function(){return"number"==typeof this.z},e}(im);iV(iX.prototype,{applyOptions:iD.applyOptions,getProjectedBounds:iD.getProjectedBounds});var iN=(T=function(t,e){return(T=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}T(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),iG=ts().seriesTypes,iR=iG.map.prototype,iY=iG.mappoint.prototype,iW=Y().extend,iU=Y().merge,iF=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearBounds=iR.clearBounds,e}return iN(e,t),e.prototype.searchPoint=function(t,e){return this.searchKDTree({plotX:t.chartX-this.chart.plotLeft,plotY:t.chartY-this.chart.plotTop},e,t)},e.prototype.translate=function(){iY.translate.call(this),this.getRadii(),this.translateBubble()},e.defaultOptions=iU(i_.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"},stickyTracking:!0}),e}(i_);iW(iF.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:iR.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:iX,processData:iR.processData,projectPoint:iY.projectPoint,kdAxisArray:["plotX","plotY"],setData:iR.setData,setOptions:iR.setOptions,updateData:iR.updateData,useMapGeometry:!0,xyFromShape:!0}),ts().registerSeriesType("mapbubble",iF);var iZ=(O=function(t,e){return(O=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}O(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),iq=ts().seriesTypes.scatter.prototype.pointClass,iH=Y().clamp,iK=Y().defined,i$=Y().extend,iJ=Y().pick,iQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iZ(e,t),e.prototype.applyOptions=function(e,o){return(this.isNull||null===this.value)&&delete this.color,t.prototype.applyOptions.call(this,e,o),this.formatPrefix=this.isNull||null===this.value?"null":"point",this},e.prototype.getCellAttributes=function(){for(var t=this.series,e=t.options,o=(e.colsize||1)/2,i=(e.rowsize||1)/2,r=t.xAxis,n=t.yAxis,a=this.options.marker||t.options.marker,s=t.pointPlacementToXValue(),l=iJ(this.pointPadding,e.pointPadding,0),h={x1:iH(Math.round(r.len-r.translate(this.x-o,!1,!0,!1,!0,-s)),-r.len,2*r.len),x2:iH(Math.round(r.len-r.translate(this.x+o,!1,!0,!1,!0,-s)),-r.len,2*r.len),y1:iH(Math.round(n.translate(this.y-i,!1,!0,!1,!0)),-n.len,2*n.len),y2:iH(Math.round(n.translate(this.y+i,!1,!0,!1,!0)),-n.len,2*n.len)},p=0,c=[["width","x"],["height","y"]];p<c.length;p++){var u=c[p],d=u[0],f=u[1],y=f+"1",m=f+"2",g=Math.abs(h[y]-h[m]),v=a&&a.lineWidth||0,b=Math.abs(h[y]+h[m])/2,x=a&&a[d];if(iK(x)&&x<g){var M=x/2+v/2;h[y]=b-M,h[m]=b+M}l&&(("x"===f&&r.reversed||"y"===f&&!n.reversed)&&(y=m,m=f+"1"),h[y]+=l,h[m]-=l)}return h},e.prototype.haloPath=function(t){if(!t)return[];var e=this.shapeArgs||{},o=e.x,i=void 0===o?0:o,r=e.y,n=void 0===r?0:r,a=e.width,s=void 0===a?0:a,l=e.height,h=void 0===l?0:l;return[["M",i-t,n-t],["L",i-t,n+h+t],["L",i+s+t,n+h+t],["L",i+s+t,n-t],["Z"]]},e.prototype.isValid=function(){return this.value!==1/0&&this.value!==-1/0},e}(iq);i$(iQ.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});var i0=Y().isNumber,i1={animation:!1,borderRadius:0,borderWidth:0,interpolation:!1,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.value;return i0(e)?t(e,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:"allow",padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"},i2=Y().doc,i6=Y().defined,i3=Y().pick,i8=function(t){var e=t.canvas,o=t.context;return e&&o?(o.clearRect(0,0,e.width,e.height),o):(t.canvas=i2.createElement("canvas"),t.context=t.canvas.getContext("2d",{willReadFrequently:!0})||void 0,t.context)},i7=(L=function(t,e){return(L=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}L(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i9=function(){return(i9=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},i4=ts().series,i5=ts().seriesTypes,rt=i5.column,re=i5.scatter,ro=t8().prototype.symbols,ri=Y().addEvent,rr=Y().extend,rn=Y().fireEvent,ra=Y().isNumber,rs=Y().merge,rl=Y().pick,rh=function(t,e){var o=e.series.colorAxis;if(o){var i=o.toColor(t||0,e).split(")")[0].split("(")[1].split(",").map(function(t){return i3(parseFloat(t),parseInt(t,10))});return i[3]=255*i3(i[3],1),i6(t)&&e.visible||(i[3]=0),i}return[0,0,0,0]},rp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueMax=NaN,e.valueMin=NaN,e.isDirtyCanvas=!0,e}return i7(e,t),e.prototype.drawPoints=function(){var t=this,e=t.options,o=e.interpolation,i=e.marker||{};if(o){var r=t.image,n=t.chart,a=t.xAxis,s=t.yAxis,l=a.reversed,h=a.len,p=s.reversed,c=s.len,u={width:h,height:c};if(!r||t.isDirtyData||t.isDirtyCanvas){var d=i8(t),f=t.canvas,y=t.options,m=y.colsize,g=y.rowsize,v=t.points,b=t.points.length,x=n.colorAxis&&n.colorAxis[0];if(f&&d&&x){var M=a.getExtremes(),w=M.min,C=M.max,P=s.getExtremes(),j=P.min,A=P.max,T=C-w,O=A-j,L=Math.round(T/(void 0===m?1:m)/8*8),S=Math.round(O/(void 0===g?1:g)/8*8),k=[[L,L/T,void 0!==l&&l,"ceil"],[S,S/O,!(void 0!==p&&p),"floor"]].map(function(t){var e=t[0],o=t[1],i=t[2],r=t[3];return i?function(t){return Math[r](e-o*t)}:function(t){return Math[r](o*t)}}),z=k[0],E=k[1],I=f.width=L+1,_=I*(f.height=S+1),B=(b-1)/_,D=new Uint8ClampedArray(4*_);t.buildKDTree();for(var V=0;V<_;V++){var X=v[Math.ceil(B*V)],N=X.x,G=X.y;D.set(rh(X.value,X),4*Math.ceil(I*E(G-j)+z(N-w)))}d.putImageData(new ImageData(D,I),0,0),r?r.attr(i9(i9({},u),{href:f.toDataURL("image/png",1)})):(t.directTouch=!1,t.image=n.renderer.image(f.toDataURL("image/png",1)).attr(u).add(t.group))}t.isDirtyCanvas=!1}else(r.width!==h||r.height!==c)&&r.attr(u)}else(i.enabled||t._hasPointMarkers)&&(i4.prototype.drawPoints.call(t),t.points.forEach(function(e){e.graphic&&(e.graphic[t.chart.styledMode?"css":"animate"](t.colorAttribs(e)),null===e.value&&e.graphic.addClass("highcharts-null-point"))}))},e.prototype.getExtremes=function(){var t=i4.prototype.getExtremes.call(this,this.getColumn("value")),e=t.dataMin,o=t.dataMax;return ra(e)&&(this.valueMin=e),ra(o)&&(this.valueMax=o),i4.prototype.getExtremes.call(this)},e.prototype.getValidPoints=function(t,e){return i4.prototype.getValidPoints.call(this,t,e,!0)},e.prototype.hasData=function(){return!!this.dataTable.rowCount},e.prototype.init=function(){t.prototype.init.apply(this,arguments);var e=this.options;e.pointRange=rl(e.pointRange,e.colsize||1),this.yAxis.axisPointRange=e.rowsize||1,ro.ellipse=ro.circle,e.marker&&ra(e.borderRadius)&&(e.marker.r=e.borderRadius)},e.prototype.markerAttribs=function(t,e){var o,i,r=t.shapeArgs||{};if(t.hasImage)return{x:t.plotX,y:t.plotY};if(e&&"normal"!==e){var n=t.options.marker||{},a=(null==(o=(this.options.marker||{}).states)?void 0:o[e])||{},s=(null==(i=n.states)?void 0:i[e])||{},l=(s.width||a.width||r.width||0)+(s.widthPlus||a.widthPlus||0),h=(s.height||a.height||r.height||0)+(s.heightPlus||a.heightPlus||0);return{x:(r.x||0)+((r.width||0)-l)/2,y:(r.y||0)+((r.height||0)-h)/2,width:l,height:h}}return r},e.prototype.pointAttribs=function(t,e){var o,i,r,n,a,s,l,h=i4.prototype.pointAttribs.call(this,t,e),p=this.options||{},c=this.chart.options.plotOptions||{},u=c.series||{},d=c.heatmap||{},f=(null==t?void 0:t.options.borderColor)||p.borderColor||d.borderColor||u.borderColor,y=(null==t?void 0:t.options.borderWidth)||p.borderWidth||d.borderWidth||u.borderWidth||h["stroke-width"];if(h.stroke=(null==(o=null==t?void 0:t.marker)?void 0:o.lineColor)||(null==(i=p.marker)?void 0:i.lineColor)||f||this.color,h["stroke-width"]=y,e&&"normal"!==e){var m=rs(null==(r=p.states)?void 0:r[e],null==(a=null==(n=p.marker)?void 0:n.states)?void 0:a[e],(null==(l=null==(s=null==t?void 0:t.options.marker)?void 0:s.states)?void 0:l[e])||{});h.fill=m.color||Z().parse(h.fill).brighten(m.brightness||0).get(),h.stroke=m.lineColor||h.stroke}return h},e.prototype.translate=function(){var t,e=this.options,o=e.borderRadius,i=e.marker,r=(null==i?void 0:i.symbol)||"rect",n=ro[r]?r:"rect",a=-1!==["circle","square"].indexOf(n);this.generatePoints();for(var s=0,l=this.points;s<l.length;s++){var h=l[s],p=h.getCellAttributes(),c=Math.min(p.x1,p.x2),u=Math.min(p.y1,p.y2),d=Math.max(Math.abs(p.x2-p.x1),0),f=Math.max(Math.abs(p.y2-p.y1),0);if(h.hasImage=0===((null==(t=h.marker)?void 0:t.symbol)||r||"").indexOf("url"),a){var y=Math.abs(d-f);c=Math.min(p.x1,p.x2)+(d<f?0:y/2),u=Math.min(p.y1,p.y2)+(d<f?y/2:0),d=f=Math.min(d,f)}h.hasImage&&(h.marker={width:d,height:f}),h.plotX=h.clientX=(p.x1+p.x2)/2,h.plotY=(p.y1+p.y2)/2,h.shapeType="path",h.shapeArgs=rs(!0,{x:c,y:u,width:d,height:f},{d:ro[n](c,u,d,f,{r:ra(o)?o:0})})}rn(this,"afterTranslate")},e.defaultOptions=rs(re.defaultOptions,i1),e}(re);ri(rp,"afterDataClassLegendClick",function(){this.isDirtyCanvas=!0,this.drawPoints(),this.options.enableMouseTracking&&this.drawTracker()}),rr(rp.prototype,{axisTypes:tZ.seriesMembers.axisTypes,colorKey:tZ.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:tZ.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:iQ,specialGroup:"group",trackerGroups:tZ.seriesMembers.trackerGroups,alignDataLabel:rt.prototype.alignDataLabel,colorAttribs:tZ.seriesMembers.colorAttribs,getSymbol:i4.prototype.getSymbol}),tZ.compose(rp),ts().registerSeriesType("heatmap",rp);var rc=Y();rc.ColorMapComposition=tZ,rc.MapChart=rc.MapChart||ei,rc.MapNavigation=rc.MapNavigation||tX,rc.MapView=rc.MapView||os,rc.Projection=rc.Projection||eK,rc.mapChart=rc.Map=rc.MapChart.mapChart,rc.maps=rc.MapChart.maps,rc.geojson=eC.geojson,rc.topo2geo=eC.topo2geo,eC.compose(rc.Chart),iF.compose(rc.Axis,rc.Chart,rc.Legend),tX.compose(ei,rc.Pointer,rc.SVGRenderer),os.compose(ei);var ru=Y();return G.default}()});