!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/marker-clusters
 * @requires highcharts
 *
 * Marker clusters module for Highcharts
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Wojciech Chmiel
 *
 * 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(t._Highcharts):"function"==typeof define&&define.amd?define("highcharts/modules/marker-clusters",["highcharts/highcharts"],function(t){return e(t)}):"object"==typeof exports?exports["highcharts/modules/marker-clusters"]=e(t._Highcharts):t.Highcharts=e(t.Highcharts)}("u"<typeof window?this:window,t=>(()=>{"use strict";let e;var i={944:e=>{e.exports=t}},s={};function r(t){var e=s[t];if(void 0!==e)return e.exports;var a=s[t]={exports:{}};return i[t](a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};r.d(a,{default:()=>$});var o=r(944),n=r.n(o);let l={cluster:{enabled:!1,allowOverlap:!0,animation:{duration:500},drillToCluster:!0,minimumClusterSize:2,layoutAlgorithm:{gridSize:50,distance:40,kmeansThreshold:100},marker:{symbol:"cluster",radius:15,lineWidth:0,lineColor:"var(--highcharts-background-color)"},dataLabels:{enabled:!0,format:"{point.clusterPointsAmount}",verticalAlign:"middle",align:"center",style:{color:"contrast"},inside:!0}},tooltip:{clusterFormat:"<span>Clustered points: {point.clusterPointsAmount}</span><br/>"}},{setLength:u,splice:h}={convertToNumber:function(t,e){switch(typeof t){case"boolean":return+!!t;case"number":return isNaN(t)&&!e?null:t;default:return isNaN(t=parseFloat(`${t??""}`))&&!e?null:t}},setLength:function(t,e,i){return Array.isArray(t)?(t.length=e,t):t[i?"subarray":"slice"](0,e)},splice:function(t,e,i,s,r=[]){if(Array.isArray(t))return Array.isArray(r)||(r=Array.from(r)),{removed:t.splice(e,i,...r),array:t};let a=Object.getPrototypeOf(t).constructor,o=t[s?"subarray":"slice"](e,e+i),n=new a(t.length-i+r.length);return n.set(t.subarray(0,e),0),n.set(r,e),n.set(t.subarray(e+i),e+r.length),{removed:o,array:n}}},p=class{constructor(t={}){this.isDataTable=!0,this.autoId=!t.id,this.columns={},this.id=t.id||(0,o.uniqueKey)(),this.rowCount=0,this.versionTag=(0,o.uniqueKey)();let e=0;(0,o.objectEach)(t.columns||{},(t,i)=>{this.columns[i]=t.slice(),e=Math.max(e,t.length)}),this.applyRowCount(e)}applyRowCount(t){this.rowCount=t,(0,o.objectEach)(this.columns,(e,i)=>{e.length!==t&&(this.columns[i]=u(e,t))})}deleteRows(t,e=1){if(e>0&&t<this.rowCount){let i=0;(0,o.objectEach)(this.columns,(s,r)=>{this.columns[r]=h(s,t,e).array,i=s.length}),this.rowCount=i}(0,o.fireEvent)(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=(0,o.uniqueKey)()}getColumn(t,e){return this.columns[t]}getColumns(t,e){return(t||Object.keys(this.columns)).reduce((t,e)=>(t[e]=this.columns[e],t),{})}getRowObject(t,e){let i={},s=this.columns;for(let r of(e??(e=Object.keys(this.columns)),e))i[r]=s[r]?.[t];return i}setColumn(t,e=[],i=0,s){this.setColumns({[t]:e},i,s)}setColumns(t,e,i){let s=this.rowCount;(0,o.objectEach)(t,(t,e)=>{this.columns[e]=t.slice(),s=t.length}),this.applyRowCount(s),i?.silent||((0,o.fireEvent)(this,"afterSetColumns"),this.versionTag=(0,o.uniqueKey)())}setRow(t,e=this.rowCount,i,s){var r;let{columns:a}=this,n=i?this.rowCount+1:e+1,l=Object.keys(t);if(s?.addColumns!==!1)for(let t=0,e=l.length;t<e;t++)a[r=l[t]]||(a[r]=Array(this.rowCount));(0,o.objectEach)(a,(s,r)=>{s&&(i?s=h(s,e,0,!0,[t[r]]).array:s[e]=r in t?t[r]:s[e],a[r]=s)}),this.applyRowCount(Math.max(n,this.rowCount)),s?.silent||((0,o.fireEvent)(this,"afterSetRows",{rowIndex:e}),this.versionTag=(0,o.uniqueKey)())}getModified(){return this.modified||this}},{animObject:d}=n(),{cluster:c}=l,m={grid:function(t,e,i,s){let r,a,o,n,l,u={},h=this.getGridOffset(),p=this.getScaledGridSize(s);for(l=0;l<t.length;l++){let s=V(this,{x:t[l],y:e[l]});r=s.x-h.plotLeft,a=s.y-h.plotTop,o=Math.floor(r/p),u[n=Math.floor(a/p)+":"+o]??(u[n]=[]),u[n].push({dataIndex:i[l],x:t[l],y:e[l]})}return u},kmeans:function(t,e,i,s){let r=[],a=[],n={},l=Number(s.processedDistance??(0,o.relativeLength)(s.distance||c.layoutAlgorithm.distance,this.chart.plotWidth)),u=s.iterations,h=0,p=!0,d=0,m=0,f,g=[];s.processedGridSize=l;let y=this.markerClusterAlgorithms?this.markerClusterAlgorithms.grid.call(this,t,e,i,s):{};for(let t in y)y[t].length>1&&(f=k(y[t]),r.push({posX:f.x,posY:f.y,oldX:0,oldY:0,startPointsLen:y[t].length,points:[]}));for(;p;){for(let t of r)t.points.length=0;a.length=0;for(let s=0;s<t.length;s++)d=t[s],m=e[s],(g=this.getClusterDistancesFromPoint(r,d,m)).length&&g[0].distance<l?r[g[0].clusterIndex].points.push({x:d,y:m,dataIndex:i[s]}):a.push({x:d,y:m,dataIndex:i[s]});for(let t=0;t<r.length;t++)1===r[t].points.length&&(g=this.getClusterDistancesFromPoint(r,r[t].points[0].x,r[t].points[0].y))[1].distance<l&&(r[g[1].clusterIndex].points.push(r[t].points[0]),r[g[0].clusterIndex].points.length=0);p=!1;for(let t=0;t<r.length;t++)f=k(r[t].points),r[t].oldX=r[t].posX,r[t].oldY=r[t].posY,r[t].posX=f.x,r[t].posY=f.y,(r[t].posX>r[t].oldX+1||r[t].posX<r[t].oldX-1||r[t].posY>r[t].oldY+1||r[t].posY<r[t].oldY-1)&&(p=!0);u&&(p=h<u-1),h++}for(let t=0,e=r.length;t<e;++t)n["cluster"+t]=r[t].points;for(let t=0,e=a.length;t<e;++t)n["noise"+t]=[a[t]];return n},optimizedKmeans:function(t,e,i,s){let r=Number(s.processedDistance??(0,o.relativeLength)(s.distance||c.layoutAlgorithm.gridSize,this.chart.plotWidth)),a=this.getRealExtremes(),n=(this.options.cluster||{}).marker,l,u={};if(!this.markerClusterInfo||this.initMaxX&&this.initMaxX<a.maxX||this.initMinX&&this.initMinX>a.minX||this.initMaxY&&this.initMaxY<a.maxY||this.initMinY&&this.initMinY>a.minY)this.initMaxX=a.maxX,this.initMinX=a.minX,this.initMaxY=a.maxY,this.initMinY=a.minY,u=this.markerClusterAlgorithms?this.markerClusterAlgorithms.kmeans.call(this,t,e,i,s):{},this.baseClusters=null;else{for(let t of(this.baseClusters??(this.baseClusters={clusters:this.markerClusterInfo.clusters,noise:this.markerClusterInfo.noise}),this.baseClusters.clusters)){for(let e of(t.pointsOutside=[],t.pointsInside=[],t.data)){let i=V(this,e),s=V(this,t);l=Math.sqrt(Math.pow(i.x-s.x,2)+Math.pow(i.y-s.y,2));let a=t.clusterZone?.marker?.radius??n?.radius??c.marker.radius??0,u=r-a>=0?r-a:a;l>a+u&&(0,o.defined)(t.pointsOutside)?t.pointsOutside.push(e):(0,o.defined)(t.pointsInside)&&t.pointsInside.push(e)}t.pointsInside.length&&(u[t.id]=t.pointsInside);let e=0;for(let i of t.pointsOutside)u[t.id+"_noise"+e++]=[i]}for(let t of this.baseClusters.noise)u[t.id]=t.data}return u}},f,g=[],y=0;function x(t,e,i){t.attr({opacity:e}).animate({opacity:1},i)}function C(t,e,i,s){for(let r of(b(t,s,i,!0,!0),e))r.point?.destroy?.()}function b(t,e,i,s,r){t.point&&(s&&t.point.graphic&&(t.point.graphic.show(),x(t.point.graphic,e,i)),r&&t.point.dataLabel&&(t.point.dataLabel.show(),x(t.point.dataLabel,e,i)))}function k(t){let e=t.length,i=0,s=0;for(let r=0;r<e;r++)i+=t[r].x,s+=t[r].y;return{x:i/e,y:s/e}}function I(t,e){let i=[];return i.length=e,t.clusters.forEach(function(t){t.data.forEach(function(t){i[t.dataIndex]=t})}),t.noise.forEach(function(t){i[t.data[0].dataIndex]=t.data[0]}),i}function M(){return Math.random().toString(36).substring(2,7)+"-"+y++}function S(t,e,i){t.point&&(e&&t.point.graphic&&t.point.graphic.hide(),i&&t.point.dataLabel&&t.point.dataLabel.hide())}function w(t){(t.point||t.target).firePointEvent("drillToCluster",t,function(t){let e=t.point||t.target,i=e.series,{xAxis:s,yAxis:r,chart:a}=i,{inverted:o,mapView:n,pointer:l}=a;if(i.options.cluster?.drillToCluster&&e.clusteredData){let t=e.clusteredData.map(t=>t.x).sort((t,e)=>t-e),i=e.clusteredData.map(t=>t.y).sort((t,e)=>t-e),u=t[0],h=t[t.length-1],p=i[0],d=i[i.length-1],c=Math.abs((h-u)*.1),m=Math.abs((d-p)*.1),f=Math.min(u,h)-c,g=Math.max(u,h)+c,y=Math.min(p,d)-m,x=Math.max(p,d)+m;if(n)n.fitToBounds({x1:f,x2:g,y1:y,y2:x});else if(s&&r){let t=s.toPixels(f),e=s.toPixels(g),i=r.toPixels(y),n=r.toPixels(x);o&&([t,e,i,n]=[i,n,t,e]),t>e&&([t,e]=[e,t]),i>n&&([i,n]=[n,i]),l&&(l.zoomX=!0,l.zoomY=!0),a.transform({from:{x:t,y:i,width:e-t,height:n-i}})}}})}function A(t,e){let{chart:i,xAxis:s,yAxis:r}=t;return i.mapView?i.mapView.pixelsToProjectedUnits(e):{x:s?s.toValue(e.x):0,y:r?r.toValue(e.y):0}}function v(t){let e=this.chart,i=e.mapView,s=d(this.options.cluster?.animation),r=s.duration||500,a=this.markerClusterInfo?.pointsState,n=a?.newState,l=a?.oldState,u=[],h,p,c,m=0,f=0,g=0,y=!1,x=!1;if(l&&n){let a=V(this,p=n[t.stateId]);f=a.x-(i?0:e.plotLeft),g=a.y-(i?0:e.plotTop),1===p.parentsId.length?(h=l[n?.[t.stateId].parentsId[0]],p.point?.graphic&&h.point?.plotX&&h.point.plotY&&(h.point.plotX!==p.point.plotX||h.point.plotY!==p.point.plotY)&&(c=p.point.graphic.getBBox(),m=p.point.graphic?.isImg?0:c.width/2,p.point.graphic.attr({x:h.point.plotX-m,y:h.point.plotY-m}),p.point.graphic.animate({x:f-(p.point.graphic.radius||0),y:g-(p.point.graphic.radius||0)},s,function(){x=!0,h.point?.destroy?.()}),p.point.dataLabel?.alignAttr&&h.point.dataLabel?.alignAttr&&(p.point.dataLabel.attr({x:h.point.dataLabel.alignAttr.x,y:h.point.dataLabel.alignAttr.y}),p.point.dataLabel.animate({x:p.point.dataLabel.alignAttr.x,y:p.point.dataLabel.alignAttr.y},s)))):0===p.parentsId.length?(S(p,!0,!0),(0,o.syncTimeout)(function(){b(p,.1,s,!0,!0)},r/2)):(S(p,!0,!0),p.parentsId.forEach(function(t){l?.[t]&&(h=l[t],u.push(h),h.point?.graphic&&(y=!0,h.point.graphic.show(),h.point.graphic.animate({x:f-(h.point.graphic.radius||0),y:g-(h.point.graphic.radius||0),opacity:.4},s,function(){x=!0,C(p,u,s,.7)}),h.point.dataLabel&&-9999!==h.point.dataLabel.y&&p.point?.dataLabel?.alignAttr&&(h.point.dataLabel.show(),h.point.dataLabel.animate({x:p.point.dataLabel.alignAttr.x,y:p.point.dataLabel.alignAttr.y,opacity:.4},s))))}),(0,o.syncTimeout)(function(){x||C(p,u,s,.85)},r),y||(0,o.syncTimeout)(function(){C(p,u,s,.1)},r/2))}}function L(){this.markerClusterSeriesData?.forEach(t=>{t?.destroy?.()}),this.markerClusterSeriesData=null}function P(){let t,e,i,s,r,a,n,l,u,h,d,m,g,y,x,C=this,{chart:b}=C,k=b.mapView,I=C.getColumn("x"),M=C.getColumn("y"),S=C.options.cluster,v=C.getRealExtremes(),L=[],P=[],X=[];if(k&&C.is("mappoint")&&I&&M&&C.options.data?.forEach((t,e)=>{let i=C.projectPoint(t);i&&(I[e]=i.x,M[e]=i.y)}),S?.enabled&&I?.length&&M?.length&&!b.polar){d=S.layoutAlgorithm.type,(y=S.layoutAlgorithm).processedGridSize=(0,o.relativeLength)(y.gridSize||c.layoutAlgorithm.gridSize,b.plotWidth),y.processedDistance=(0,o.relativeLength)(y.distance||c.layoutAlgorithm.distance,b.plotWidth),s=y.kmeansThreshold||c.layoutAlgorithm.kmeansThreshold;let k=y.processedGridSize/2,O=A(C,{x:0,y:0}),z=A(C,{x:k,y:k});r=Math.abs(O.x-z.x),a=Math.abs(O.y-z.y);for(let t=0;t<I.length;t++)!C.dataMaxX&&((0,o.defined)(l)&&(0,o.defined)(n)&&(0,o.defined)(h)&&(0,o.defined)(u)?(0,o.isNumber)(M[t])&&(0,o.isNumber)(h)&&(0,o.isNumber)(u)&&(l=Math.max(I[t],l),n=Math.min(I[t],n),h=Math.max(M[t]||h,h),u=Math.min(M[t]||u,u)):(l=n=I[t],h=u=M[t])),I[t]>=v.minX-r&&I[t]<=v.maxX+r&&(M[t]||v.minY)>=v.minY-a&&(M[t]||v.maxY)<=v.maxY+a&&(L.push(I[t]),P.push(M[t]),X.push(t));if((0,o.defined)(l)&&(0,o.defined)(n)&&(0,o.isNumber)(h)&&(0,o.isNumber)(u)&&(C.dataMaxX=l,C.dataMinX=n,C.dataMaxY=h,C.dataMinY=u),m=(g=((0,o.isFunction)(d)?d:C.markerClusterAlgorithms?d&&C.markerClusterAlgorithms[d]?C.markerClusterAlgorithms[d]:L.length<s?C.markerClusterAlgorithms.kmeans:C.markerClusterAlgorithms.grid:()=>!1).call(this,L,P,X,y))?C.getClusteredData(g,S):g,S.animation&&C.markerClusterInfo?.pointsState?.oldState){var Y=C.markerClusterInfo.pointsState.oldState;for(let t of Object.keys(Y))Y[t].point?.destroy?.();t=C.markerClusterInfo.pointsState.newState}else t={};e=I.length,i=C.markerClusterInfo,m&&(C.dataTable.modified=new p({columns:{x:m.groupedXData,y:m.groupedYData}}),C.hasGroupedData=!0,C.markerClusterInfo=m,C.groupMap=m.groupMap),f.apply(this),m&&C.markerClusterInfo&&(C.markerClusterInfo.clusters?.forEach(t=>{(x=C.points[t.index]).isCluster=!0,x.clusteredData=t.data,x.clusterPointsAmount=t.data.length,t.point=x,(0,o.addEvent)(x,"click",w)}),C.markerClusterInfo.noise?.forEach(t=>{t.point=C.points[t.index]}),S.animation&&C.markerClusterInfo&&(C.markerClusterInfo.pointsState={oldState:t,newState:C.getPointsState(m,i,e)}),S.animation?this.hideClusteredData():this.destroyClusteredData(),this.markerClusterSeriesData=this.hasGroupedData?this.points:null)}else f.apply(this)}function X(t,e,i){let s=[];for(let r=0;r<t.length;r++){let a=V(this,{x:e,y:i}),o=V(this,{x:t[r].posX,y:t[r].posY}),n=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2));s.push({clusterIndex:r,distance:n})}return s.sort((t,e)=>t.distance-e.distance)}function Y(t,e){let i=this.options.data,s=[],r=[],a=[],n=[],l=[],u=Math.max(2,e.minimumClusterSize||2),h=0,p,d,m,f,g,y,x,C,b,I,S,w;if((0,o.isFunction)(e.layoutAlgorithm.type)&&!this.isValidGroupedDataObject(t))return(0,o.error)("Highcharts marker-clusters module: The custom algorithm result is not valid!",!1,this.chart),!1;for(let A in t)if(t[A].length>=u){if(m=t[A],p=M(),g=m.length,e.zones)for(let t=0;t<e.zones.length;t++)g>=e.zones[t].from&&g<=e.zones[t].to&&((S=e.zones[t]).zoneIndex=t,I=e.zones[t].marker,w=e.zones[t].className);b=k(m),"grid"!==e.layoutAlgorithm.type||e.allowOverlap?x={x:b.x,y:b.y}:(y=this.options.marker||{},x=this.preventClusterCollisions({x:b.x,y:b.y,key:A,groupedData:t,gridSize:this.getScaledGridSize(e.layoutAlgorithm),defaultRadius:y.radius||3+(y.lineWidth||0),clusterRadius:I?.radius??e.marker?.radius??c.marker.radius??0}));for(let t=0;t<g;t++)m[t].parentStateId=p;if(a.push({x:x.x,y:x.y,id:A,stateId:p,index:h,data:m,clusterZone:S,clusterZoneClassName:w}),s.push(x.x),r.push(x.y),l.push({options:{formatPrefix:"cluster",dataLabels:e.dataLabels,marker:(0,o.merge)(e.marker,{states:e.states},I||{})}}),i?.length)for(let t=0;t<g;t++)(0,o.isObject)(i[m[t].dataIndex])&&(m[t].options=i[m[t].dataIndex]);h++,I=null}else for(let e=0;e<t[A].length;e++)d=t[A][e],p=M(),C=null,f=i?.[d.dataIndex],s.push(d.x),r.push(d.y),d.parentStateId=p,n.push({x:d.x,y:d.y,id:A,stateId:p,index:h,data:t[A]}),C=f&&"object"==typeof f&&!(0,o.isArray)(f)?(0,o.merge)(f,{x:d.x,y:d.y}):{userOptions:f,x:d.x,y:d.y},l.push({options:C}),h++;return{clusters:a,noise:n,groupedXData:s,groupedYData:r,groupMap:l}}function O(){let{chart:t,xAxis:e,yAxis:i}=this,s=0;return{plotLeft:s=e&&this.dataMinX&&this.dataMaxX?e.reversed?e.toPixels(this.dataMaxX):e.toPixels(this.dataMinX):t.plotLeft,plotTop:i&&this.dataMinY&&this.dataMaxY?i.reversed?i.toPixels(this.dataMinY):i.toPixels(this.dataMaxY):t.plotTop}}function z(t,e,i){let s,r,a=e?I(e,i):[],o=I(t,i),n={};g=[],t.clusters.forEach(t=>{n[t.stateId]={x:t.x,y:t.y,id:t.stateId,point:t.point,parentsId:[]}}),t.noise.forEach(t=>{n[t.stateId]={x:t.x,y:t.y,id:t.stateId,point:t.point,parentsId:[]}});for(let t=0;t<o.length;t++)s=o[t],r=a[t],s?.parentStateId&&r?.parentStateId&&n[s.parentStateId]?.parentsId.indexOf(r.parentStateId)===-1&&(n[s.parentStateId].parentsId.push(r.parentStateId),-1===g.indexOf(r.parentStateId)&&g.push(r.parentStateId));return n}function D(){let t=this.chart,e=t.mapView?0:t.plotLeft,i=A(this,{x:e,y:t.mapView?0:t.plotTop}),s=A(this,{x:e+t.plotWidth,y:e+t.plotHeight}),r=i.x,a=s.x,o=i.y,n=s.y;return{minX:Math.min(r,a),maxX:Math.max(r,a),minY:Math.min(o,n),maxY:Math.max(o,n)}}function E(t){let e=this.xAxis,i=this.chart.mapView,s=Number(t.processedGridSize??(0,o.relativeLength)(t.gridSize||c.layoutAlgorithm.gridSize,this.chart.plotWidth)),r=!0,a=1,n=1;this.gridValueSize||(i?this.gridValueSize=s/i.getScale():this.gridValueSize=Math.abs(e.toValue(s)-e.toValue(0)));let l=i?this.gridValueSize*i.getScale():e.toPixels(this.gridValueSize)-e.toPixels(0),u=0!==l?Math.abs(+(s/l).toFixed(14)):1;for(;r&&1!==u;){let t=Math.pow(2,a);u>.75&&u<1.25?r=!1:u>=1/t&&u<1/t*2?(r=!1,n=t):u<=t&&u>t/2&&(r=!1,n=1/t),a++}return s/n/u}function T(){let t=this.markerClusterSeriesData,e=this.markerClusterInfo?.pointsState?.oldState,i=g.map(t=>e?.[t].point?.id||"");t?.forEach(t=>{t&&-1!==i.indexOf(t.id)?(t.graphic&&t.graphic.hide(),t.dataLabel&&t.dataLabel.hide()):t?.destroy?.()})}function j(t){let e=!1;return!!(0,o.isObject)(t)&&((0,o.objectEach)(t,t=>{if(e=!0,!(0,o.isArray)(t)||!t.length){e=!1;return}for(let i=0;i<t.length;i++)if(!(0,o.isObject)(t[i])||!t[i].x||!t[i].y){e=!1;return}}),e)}function R(t){let[e,i]=t.key.split(":").map(parseFloat),s=t.gridSize,r=t.groupedData,a=t.defaultRadius,n=t.clusterRadius,l=i*s,u=e*s,h=V(this,t),p=[],d=this.options.cluster?.marker,m=this.options.cluster?.zones,f=this.getGridOffset(),g=h.x,y=h.y,x=0,C=0,b,I,M,S,w,v,L,P,X,Y,O,z;g-=f.plotLeft,y-=f.plotTop;for(let r=1;r<5;r++)for(L=0,M=r%2?-1:1,S=r<3?-1:1,w=Math.floor((g+M*n)/s),z=[(v=Math.floor((y+S*n)/s))+":"+w,v+":"+i,e+":"+w];L<z.length;L++)-1===p.indexOf(z[L])&&z[L]!==t.key&&p.push(z[L]);for(let t of p)if(r[t]){r[t].posX||(Y=k(r[t]),r[t].posX=Y.x,r[t].posY=Y.y);let h=V(this,{x:r[t].posX||0,y:r[t].posY||0});if(b=h.x-f.plotLeft,I=h.y-f.plotTop,[X,P]=t.split(":").map(parseFloat),m){x=r[t].length;for(let t=0;t<m.length;t++)x>=m[t].from&&x<=m[t].to&&(C=(0,o.defined)(m[t].marker?.radius)?m[t].marker.radius||0:d?.radius?d.radius:c.marker.radius??0)}r[t].length>1&&0===C&&d?.radius?C=d.radius:1===r[t].length&&(C=a),O=n+C,C=0,P!==i&&Math.abs(g-b)<O&&(g=P-i<0?l+n:l+s-n),X!==e&&Math.abs(y-I)<O&&(y=X-e<0?u+n:u+s-n)}let D=A(this,{x:g+f.plotLeft,y:y+f.plotTop});return r[t.key].posX=D.x,r[t.key].posY=D.y,D}function V(t,e){let{chart:i,xAxis:s,yAxis:r}=t;return i.mapView?i.mapView.projectedUnitsToPixels(e):{x:s?s.toPixels(e.x):0,y:r?r.toPixels(e.y):0}}let G=function(t,e){let i=e.prototype;!i.markerClusterAlgorithms&&(f=i.generatePoints,i.markerClusterAlgorithms=m,i.animateClusterPoint=v,i.destroyClusteredData=L,i.generatePoints=P,i.getClusterDistancesFromPoint=X,i.getClusteredData=Y,i.getGridOffset=O,i.getPointsState=z,i.getRealExtremes=D,i.getScaledGridSize=E,i.hideClusteredData=T,i.isValidGroupedDataObject=j,i.preventClusterCollisions=R,(0,o.addEvent)(e,"destroy",i.destroyClusteredData),t.plotOptions&&(t.plotOptions.series=(0,o.merge)(t.plotOptions.series,l)))},{animObject:N}=n(),{defaultOptions:F}=n(),{composed:q}=n();function W(){let t=this.chart,e=0;for(let i of t.series)i.markerClusterInfo&&(e=N((i.options.cluster||{}).animation).duration||0);(0,o.syncTimeout)(()=>{t.tooltip&&t.tooltip.destroy()},e)}function H(){for(let t of this.series||[])if(t.markerClusterInfo){let e=t.options.cluster,i=((t.markerClusterInfo||{}).pointsState||{}).oldState;if((e||{}).animation&&t.markerClusterInfo&&0===(t.chart.pointer?.pinchDown||[]).length&&"pan"!==((t.xAxis||{}).eventArgs||{}).trigger&&i&&Object.keys(i).length){for(let e of t.markerClusterInfo.clusters)t.animateClusterPoint(e);for(let e of t.markerClusterInfo.noise)t.animateClusterPoint(e)}}}function K(t){let e=(((t.point||t.target).series.options.cluster||{}).events||{}).drillToCluster;(0,o.isFunction)(e)&&e.call(this,t)}function _(){if(this.dataGroup)return(0,o.error)("Highcharts marker-clusters module: Running `Point.update` when point belongs to clustered series is not supported.",!1,this.series.chart),!1}function Z(){let t=(this.options.cluster||{}).drillToCluster;if(this.markerClusterInfo&&this.markerClusterInfo.clusters)for(let e of this.markerClusterInfo.clusters)e.point&&e.point.graphic&&(e.point.graphic.addClass("highcharts-cluster-point"),t&&e.point&&(e.point.graphic.css({cursor:"pointer"}),e.point.dataLabel&&e.point.dataLabel.css({cursor:"pointer"})),(0,o.defined)(e.clusterZone)&&e.point.graphic.addClass(e.clusterZoneClassName||"highcharts-cluster-zone-"+e.clusterZone.zoneIndex))}function B(t,i,s,r){let a=s/2,o=r/2,n=e.arc(t+a,i+o,a-4,o-4,{start:.5*Math.PI,end:2.5*Math.PI,open:!1}),l=e.arc(t+a,i+o,a-3,o-3,{start:.5*Math.PI,end:2.5*Math.PI,innerR:a-2,open:!1});return e.arc(t+a,i+o,a-1,o-1,{start:.5*Math.PI,end:2.5*Math.PI,innerR:a,open:!1}).concat(l,n)}(F.plotOptions||{}).series=(0,o.merge)((F.plotOptions||{}).series,l);let U=n();({compose:function(t,e,i,s){if((0,o.pushUnique)(q,"MarkerClusters")){let r=s.prototype.pointClass,{scatter:a}=s.types;(0,o.addEvent)(t,"setExtremes",W),(0,o.addEvent)(e,"render",H),(0,o.addEvent)(r,"drillToCluster",K),(0,o.addEvent)(r,"update",_),(0,o.addEvent)(s,"afterRender",Z),a&&G(i,a)}}}).compose(U.Axis,U.Chart,U.defaultOptions,U.Series),({compose:function(t){(e=t.prototype.symbols).cluster=B}}).compose(U.SVGRenderer);let $=n();return a.default})());