var markerClusterer=function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&j[0]<4?1:+(j[0]+j[1])),!E&&ft&&(!(j=ft.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=ft.match(/Chrome\/(\d+)/))&&(E=+j[1]);var dt=E,gt=dt,vt=v,yt=!!Object.getOwnPropertySymbols&&!vt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&>&><41})),bt=yt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,wt=st,kt=tt,St=ut,Ot=Object,xt=bt?function(t){return"symbol"==typeof t}:function(t){var e=wt("Symbol");return kt(e)&&St(e.prototype,Ot(t))},Mt=String,Pt=function(t){try{return Mt(t)}catch(t){return"Object"}},jt=tt,Et=Pt,Ct=TypeError,_t=function(t){if(jt(t))return t;throw Ct(Et(t)+" is not a function")},Lt=_t,Tt=U,It=S,At=tt,Nt=nt,zt=TypeError,Dt={},Rt={get exports(){return Dt},set exports(t){Dt=t}},Ft=d,Zt=Object.defineProperty,Gt=function(t,e){try{Zt(Ft,t,{value:e,configurable:!0,writable:!0})}catch(r){Ft[t]=e}return e},Vt=Gt,Bt="__core-js_shared__",Ut=d[Bt]||Vt(Bt,{}),Wt=Ut;(Rt.exports=function(t,e){return Wt[t]||(Wt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.27.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ht=q,qt=Object,Xt=function(t){return qt(Ht(t))},$t=Xt,Jt=A({}.hasOwnProperty),Kt=Object.hasOwn||function(t,e){return Jt($t(t),e)},Yt=A,Qt=0,te=Math.random(),ee=Yt(1..toString),re=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ee(++Qt+te,36)},ne=d,oe=Kt,ie=re,ae=yt,se=bt,ue=Dt("wks"),ce=ne.Symbol,fe=ce&&ce.for,le=se?ce:ce&&ce.withoutSetter||ie,pe=function(t){if(!oe(ue,t)||!ae&&"string"!=typeof ue[t]){var e="Symbol."+t;ae&&oe(ce,t)?ue[t]=ce[t]:ue[t]=se&&fe?fe(e):le(e)}return ue[t]},he=S,me=nt,de=xt,ge=function(t,e){var r=t[e];return Tt(r)?void 0:Lt(r)},ve=function(t,e){var r,n;if("string"===e&&At(r=t.toString)&&!Nt(n=It(r,t)))return n;if(At(r=t.valueOf)&&!Nt(n=It(r,t)))return n;if("string"!==e&&At(r=t.toString)&&!Nt(n=It(r,t)))return n;throw zt("Can't convert object to primitive value")},ye=TypeError,be=pe("toPrimitive"),we=function(t,e){if(!me(t)||de(t))return t;var r,n=ge(t,be);if(n){if(void 0===e&&(e="default"),r=he(n,t,e),!me(r)||de(r))return r;throw ye("Can't convert object to primitive value")}return void 0===e&&(e="number"),ve(t,e)},ke=we,Se=xt,Oe=function(t){var e=ke(t,"string");return Se(e)?e:e+""},xe=nt,Me=d.document,Pe=xe(Me)&&xe(Me.createElement),je=function(t){return Pe?Me.createElement(t):{}},Ee=je,Ce=!y&&!v((function(){return 7!=Object.defineProperty(Ee("div"),"a",{get:function(){return 7}}).a})),_e=y,Le=S,Te=O,Ie=C,Ae=J,Ne=Oe,ze=Kt,De=Ce,Re=Object.getOwnPropertyDescriptor;g.f=_e?Re:function(t,e){if(t=Ae(t),e=Ne(e),De)try{return Re(t,e)}catch(t){}if(ze(t,e))return Ie(!Le(Te.f,t,e),t[e])};var Fe={},Ze=y&&v((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ge=nt,Ve=String,Be=TypeError,Ue=function(t){if(Ge(t))return t;throw Be(Ve(t)+" is not an object")},We=y,He=Ce,qe=Ze,Xe=Ue,$e=Oe,Je=TypeError,Ke=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Qe="enumerable",tr="configurable",er="writable";Fe.f=We?qe?function(t,e,r){if(Xe(t),e=$e(e),Xe(r),"function"==typeof t&&"prototype"===e&&"value"in r&&er in r&&!r.writable){var n=Ye(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:tr in r?r.configurable:n.configurable,enumerable:Qe in r?r.enumerable:n.enumerable,writable:!1})}return Ke(t,e,r)}:Ke:function(t,e,r){if(Xe(t),e=$e(e),Xe(r),He)try{return Ke(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Je("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var rr=Fe,nr=C,or=y?function(t,e,r){return rr.f(t,e,nr(1,r))}:function(t,e,r){return t[e]=r,t},ir={},ar={get exports(){return ir},set exports(t){ir=t}},sr=y,ur=Kt,cr=Function.prototype,fr=sr&&Object.getOwnPropertyDescriptor,lr=ur(cr,"name"),pr={EXISTS:lr,PROPER:lr&&"something"===function(){}.name,CONFIGURABLE:lr&&(!sr||sr&&fr(cr,"name").configurable)},hr=tt,mr=Ut,dr=A(Function.toString);hr(mr.inspectSource)||(mr.inspectSource=function(t){return dr(t)});var gr,vr,yr,br=mr.inspectSource,wr=tt,kr=d.WeakMap,Sr=wr(kr)&&/native code/.test(String(kr)),Or=re,xr=Dt("keys"),Mr=function(t){return xr[t]||(xr[t]=Or(t))},Pr={},jr=Sr,Er=d,Cr=nt,_r=or,Lr=Kt,Tr=Ut,Ir=Mr,Ar=Pr,Nr="Object already initialized",zr=Er.TypeError,Dr=Er.WeakMap;if(jr||Tr.state){var Rr=Tr.state||(Tr.state=new Dr);Rr.get=Rr.get,Rr.has=Rr.has,Rr.set=Rr.set,gr=function(t,e){if(Rr.has(t))throw zr(Nr);return e.facade=t,Rr.set(t,e),e},vr=function(t){return Rr.get(t)||{}},yr=function(t){return Rr.has(t)}}else{var Fr=Ir("state");Ar[Fr]=!0,gr=function(t,e){if(Lr(t,Fr))throw zr(Nr);return e.facade=t,_r(t,Fr,e),e},vr=function(t){return Lr(t,Fr)?t[Fr]:{}},yr=function(t){return Lr(t,Fr)}}var Zr={set:gr,get:vr,has:yr,enforce:function(t){return yr(t)?vr(t):gr(t,{})},getterFor:function(t){return function(e){var r;if(!Cr(e)||(r=vr(e)).type!==t)throw zr("Incompatible receiver, "+t+" required");return r}}},Gr=v,Vr=tt,Br=Kt,Ur=y,Wr=pr.CONFIGURABLE,Hr=br,qr=Zr.enforce,Xr=Zr.get,$r=Object.defineProperty,Jr=Ur&&!Gr((function(){return 8!==$r((function(){}),"length",{value:8}).length})),Kr=String(String).split("String"),Yr=ar.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Br(t,"name")||Wr&&t.name!==e)&&(Ur?$r(t,"name",{value:e,configurable:!0}):t.name=e),Jr&&r&&Br(r,"arity")&&t.length!==r.arity&&$r(t,"length",{value:r.arity});try{r&&Br(r,"constructor")&&r.constructor?Ur&&$r(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=qr(t);return Br(n,"source")||(n.source=Kr.join("string"==typeof e?e:"")),t};Function.prototype.toString=Yr((function(){return Vr(this)&&Xr(this).source||Hr(this)}),"toString");var Qr=tt,tn=Fe,en=ir,rn=Gt,nn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(Qr(r)&&en(r,i,n),n.global)o?t[e]=r:rn(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:tn.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},on={},an=Math.ceil,sn=Math.floor,un=Math.trunc||function(t){var e=+t;return(e>0?sn:an)(e)},cn=function(t){var e=+t;return e!=e||0===e?0:un(e)},fn=cn,ln=Math.max,pn=Math.min,hn=function(t,e){var r=fn(t);return r<0?ln(r+e,0):pn(r,e)},mn=cn,dn=Math.min,gn=function(t){return t>0?dn(mn(t),9007199254740991):0},vn=function(t){return gn(t.length)},yn=J,bn=hn,wn=vn,kn=function(t){return function(e,r,n){var o,i=yn(e),a=wn(i),s=bn(n,a);if(t&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===r)return t||s||0;return!t&&-1}},Sn={includes:kn(!0),indexOf:kn(!1)},On=Kt,xn=J,Mn=Sn.indexOf,Pn=Pr,jn=A([].push),En=function(t,e){var r,n=xn(t),o=0,i=[];for(r in n)!On(Pn,r)&&On(n,r)&&jn(i,r);for(;e.length>o;)On(n,r=e[o++])&&(~Mn(i,r)||jn(i,r));return i},Cn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_n=En,Ln=Cn.concat("length","prototype");on.f=Object.getOwnPropertyNames||function(t){return _n(t,Ln)};var Tn={};Tn.f=Object.getOwnPropertySymbols;var In=st,An=on,Nn=Tn,zn=Ue,Dn=A([].concat),Rn=In("Reflect","ownKeys")||function(t){var e=An.f(zn(t)),r=Nn.f;return r?Dn(e,r(t)):e},Fn=Kt,Zn=Rn,Gn=g,Vn=Fe,Bn=v,Un=tt,Wn=/#|\.prototype\./,Hn=function(t,e){var r=Xn[qn(t)];return r==Jn||r!=$n&&(Un(e)?Bn(e):!!e)},qn=Hn.normalize=function(t){return String(t).replace(Wn,".").toLowerCase()},Xn=Hn.data={},$n=Hn.NATIVE="N",Jn=Hn.POLYFILL="P",Kn=Hn,Yn=d,Qn=g.f,to=or,eo=nn,ro=Gt,no=function(t,e,r){for(var n=Zn(e),o=Vn.f,i=Gn.f,a=0;ay;y++)if((s||y in d)&&(h=g(p=d[y],y,m),t))if(e)w[y]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return y;case 2:Jo(w,p)}else switch(t){case 4:return!1;case 7:Jo(w,p)}return i?-1:n||o?o:w}},Yo={forEach:Ko(0),map:Ko(1),filter:Ko(2),some:Ko(3),every:Ko(4),find:Ko(5),findIndex:Ko(6),filterReject:Ko(7)},Qo=v,ti=dt,ei=pe("species"),ri=function(t){return ti>=51||!Qo((function(){var e=[];return(e.constructor={})[ei]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ni=Yo.map;function oi(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o1?arguments[1]:void 0)}});var ii=_t,ai=Xt,si=B,ui=vn,ci=TypeError,fi=function(t){return function(e,r,n,o){ii(r);var i=ai(e),a=si(i),s=ui(i),u=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(u in a){o=a[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw ci("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in a&&(o=r(o,a[u],u,i));return o}},li={left:fi(!1),right:fi(!0)},pi=v,hi=function(t,e){var r=[][t];return!!r&&pi((function(){r.call(null,e||function(){return 1},1)}))},mi="process"==R(d.process),di=li.left,gi=dt,vi=mi;io({target:"Array",proto:!0,forced:!hi("reduce")||!vi&&gi>79&&gi<83},{reduce:function(t){var e=arguments.length;return di(this,t,e,e>1?arguments[1]:void 0)}});var yi=Oo,bi=go?{}.toString:function(){return"[object "+yi(this)+"]"};go||nn(Object.prototype,"toString",bi,{unsafe:!0});var wi=Yo.filter;io({target:"Array",proto:!0,forced:!ri("filter")},{filter:function(t){return wi(this,t,arguments.length>1?arguments[1]:void 0)}});var ki=function(){function t(r){var n=r.markers,o=r.position;e(this,t),this.markers=n,o&&(o instanceof google.maps.LatLng?this._position=o:this._position=new google.maps.LatLng(o))}return n(t,[{key:"bounds",get:function(){if(0!==this.markers.length||this._position)return this.markers.reduce((function(t,e){return t.extend(e.getPosition())}),new google.maps.LatLngBounds(this._position,this._position))}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(t){return t.getVisible()})).length}},{key:"push",value:function(t){this.markers.push(t)}},{key:"delete",value:function(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0}}]),t}(),Si=function(t,e,r,n){var o=Oi(t.getBounds(),e,n);return r.filter((function(t){return o.contains(t.getPosition())}))},Oi=function(t,e,r){var n=Mi(t,e),o=n.northEast,i=n.southWest,a=Pi({northEast:o,southWest:i},r);return ji(a,e)},xi=function(t,e){var r=(e.lat-t.lat)*Math.PI/180,n=(e.lng-t.lng)*Math.PI/180,o=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2);return 6371*(2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o)))},Mi=function(t,e){return{northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}},Pi=function(t,e){var r=t.northEast,n=t.southWest;return r.x+=e,r.y-=e,n.x-=e,n.y+=e,{northEast:r,southWest:n}},ji=function(t,e){var r=t.northEast,n=t.southWest,o=new google.maps.LatLngBounds;return o.extend(e.fromDivPixelToLatLng(r)),o.extend(e.fromDivPixelToLatLng(n)),o},Ei=function(){function t(r){var n=r.maxZoom,o=void 0===n?16:n;e(this,t),this.maxZoom=o}return n(t,[{key:"noop",value:function(t){var e=t.markers;return _i(e)}}]),t}(),Ci=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.viewportPadding,a=void 0===o?60:o,s=oi(t,["viewportPadding"]);return(n=r.call(this,s)).viewportPadding=60,n.viewportPadding=a,n}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:!1}:{clusters:this.cluster({markers:Si(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}]),i}(Ei),_i=function(t){return t.map((function(t){return new ki({position:t.getPosition(),markers:[t]})}))},Li=je("span").classList,Ti=Li&&Li.constructor&&Li.constructor.prototype,Ii=Ti===Object.prototype?void 0:Ti,Ai=Yo.forEach,Ni=hi("forEach")?[].forEach:function(t){return Ai(this,t,arguments.length>1?arguments[1]:void 0)},zi=d,Di={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ri=Ii,Fi=Ni,Zi=or,Gi=function(t){if(t&&t.forEach!==Fi)try{Zi(t,"forEach",Fi)}catch(e){t.forEach=Fi}};for(var Vi in Di)Di[Vi]&&Gi(zi[Vi]&&zi[Vi].prototype);Gi(Ri);var Bi=S;io({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Bi(URL.prototype.toString,this)}});var Ui=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var a=i[o];if(!t(e[a],r[a]))return!1}return!0}return e!=e&&r!=r},Wi=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxDistance,a=void 0===o?4e4:o,s=t.gridSize,u=void 0===s?40:s,c=oi(t,["maxDistance","gridSize"]);return(n=r.call(this,c)).clusters=[],n.maxDistance=a,n.gridSize=u,n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection,o={zoom:r.getZoom()},i=!1;return this.state.zoom>this.maxZoom&&o.zoom>this.maxZoom||(i=!Ui(this.state,o)),this.state=o,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e,map:r,mapCanvasProjection:n}),changed:i}:{clusters:this.cluster({markers:Si(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}},{key:"cluster",value:function(t){var e=this,r=t.markers,n=t.map,o=t.mapCanvasProjection;return this.clusters=[],r.forEach((function(t){e.addToClosestCluster(t,n,o)})),this.clusters}},{key:"addToClosestCluster",value:function(t,e,r){for(var n=this.maxDistance,o=null,i=0;io;)for(var s,u=oa(arguments[o++]),c=i?sa(ta(u),i(u)):ta(u),f=c.length,l=0;f>l;)s=c[l++],Ji&&!Yi(a,u,s)||(r[s]=u[s]);return r}:ia,ca=ua;io({target:"Object",stat:!0,arity:2,forced:Object.assign!==ca},{assign:ca});var fa={};({get exports(){return fa},set exports(t){fa=t}}).exports=function(){function t(r,n,o,i,a,s){if(!(a-i<=o)){var u=i+a>>1;e(r,n,u,i,a,s%2),t(r,n,o,i,u-1,s+1),t(r,n,o,u+1,a,s+1)}}function e(t,n,o,i,a,s){for(;a>i;){if(a-i>600){var u=a-i+1,c=o-i+1,f=Math.log(u),l=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*l*(u-l)/u)*(c-u/2<0?-1:1);e(t,n,o,Math.max(i,Math.floor(o-c*l/u+p)),Math.min(a,Math.floor(o+(u-c)*l/u+p)),s)}var h=n[2*o+s],m=i,d=a;for(r(t,n,i,o),n[2*a+s]>h&&r(t,n,i,a);mh;)d--}n[2*i+s]===h?r(t,n,i,d):r(t,n,++d,a),d<=o&&(i=d+1),o<=d&&(a=d-1)}}function r(t,e,r,o){n(t,r,o),n(e,2*r,2*o),n(e,2*r+1,2*o+1)}function n(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function o(t,e,r,n,o,i,a){for(var s,u,c=[0,t.length-1,0],f=[];c.length;){var l=c.pop(),p=c.pop(),h=c.pop();if(p-h<=a)for(var m=h;m<=p;m++)s=e[2*m],u=e[2*m+1],s>=r&&s<=o&&u>=n&&u<=i&&f.push(t[m]);else{var d=Math.floor((h+p)/2);s=e[2*d],u=e[2*d+1],s>=r&&s<=o&&u>=n&&u<=i&&f.push(t[d]);var g=(l+1)%2;(0===l?r<=s:n<=u)&&(c.push(h),c.push(d-1),c.push(g)),(0===l?o>=s:i>=u)&&(c.push(d+1),c.push(p),c.push(g))}}return f}function i(t,e,r,n,o,i){for(var s=[0,t.length-1,0],u=[],c=o*o;s.length;){var f=s.pop(),l=s.pop(),p=s.pop();if(l-p<=i)for(var h=p;h<=l;h++)a(e[2*h],e[2*h+1],r,n)<=c&&u.push(t[h]);else{var m=Math.floor((p+l)/2),d=e[2*m],g=e[2*m+1];a(d,g,r,n)<=c&&u.push(t[m]);var v=(f+1)%2;(0===f?r-o<=d:n-o<=g)&&(s.push(p),s.push(m-1),s.push(v)),(0===f?r+o>=d:n+o>=g)&&(s.push(m+1),s.push(l),s.push(v))}}return u}function a(t,e,r,n){var o=t-r,i=e-n;return o*o+i*i}var s=function(t){return t[0]},u=function(t){return t[1]},c=function(e,r,n,o,i){void 0===r&&(r=s),void 0===n&&(n=u),void 0===o&&(o=64),void 0===i&&(i=Float64Array),this.nodeSize=o,this.points=e;for(var a=e.length<65536?Uint16Array:Uint32Array,c=this.ids=new a(e.length),f=this.coords=new i(2*e.length),l=0;lt},ha=Math.fround||(ma=new Float32Array(1),t=>(ma[0]=+t,ma[0]));var ma;class da{constructor(t){this.options=Oa(Object.create(pa),t),this.trees=new Array(this.options.maxZoom+1)}load(t){const{log:e,minZoom:r,maxZoom:n,nodeSize:o}=this.options;e&&console.time("total time");const i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;let a=[];for(let e=0;e=r;t--){const r=+Date.now();a=this._cluster(a,t),this.trees[t]=new la(a,xa,Ma,o,Float32Array),e&&console.log("z%d: %d clusters in %dms",t,a.length,+Date.now()-r)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,t[1]));let o=180===t[2]?180:((t[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,o=180;else if(r>o){const t=this.getClusters([r,n,180,i],e),a=this.getClusters([-180,n,o,i],e);return t.concat(a)}const a=this.trees[this._limitZoom(e)],s=a.range(wa(r),ka(i),wa(o),ka(n)),u=[];for(const t of s){const e=a.points[t];u.push(e.numPoints?ya(e):this.points[e.index])}return u}getChildren(t){const e=this._getOriginId(t),r=this._getOriginZoom(t),n="No cluster with the specified id.",o=this.trees[r];if(!o)throw new Error(n);const i=o.points[e];if(!i)throw new Error(n);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=o.within(i.x,i.y,a),u=[];for(const e of s){const r=o.points[e];r.parentId===t&&u.push(r.numPoints?ya(r):this.points[r.index])}if(0===u.length)throw new Error(n);return u}getLeaves(t,e,r){e=e||10,r=r||0;const n=[];return this._appendLeaves(n,t,e,r,0),n}getTile(t,e,r){const n=this.trees[this._limitZoom(t)],o=Math.pow(2,t),{extent:i,radius:a}=this.options,s=a/i,u=(r-s)/o,c=(r+1+s)/o,f={features:[]};return this._addTileFeatures(n.range((e-s)/o,u,(e+1+s)/o,c),n.points,e,r,o,f),0===e&&this._addTileFeatures(n.range(1-s/o,u,1,c),n.points,o,r,o,f),e===o-1&&this._addTileFeatures(n.range(0,u,s/o,c),n.points,-1,r,o,f),f.features.length?f:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,n,o){const i=this.getChildren(e);for(const e of i){const i=e.properties;if(i&&i.cluster?o+i.point_count<=n?o+=i.point_count:o=this._appendLeaves(t,i.cluster_id,r,n,o):oe&&(l+=r.numPoints||1)}if(l>f&&l>=a){let t=o.x*f,a=o.y*f,s=i&&f>1?this._map(o,!0):null;const p=(n<<5)+(e+1)+this.points.length;for(const r of c){const n=u.points[r];if(n.zoom<=e)continue;n.zoom=e;const c=n.numPoints||1;t+=n.x*c,a+=n.y*c,n.parentId=p,i&&(s||(s=this._map(o,!0)),i(s,this._map(n)))}o.parentId=p,r.push(ga(t/l,a/l,p,l,s))}else if(r.push(o),l>1)for(const t of c){const n=u.points[t];n.zoom<=e||(n.zoom=e,r.push(n))}}return r}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e){if(t.numPoints)return e?Oa({},t.properties):t.properties;const r=this.points[t.index].properties,n=this.options.map(r);return e&&n===r?Oa({},n):n}}function ga(t,e,r,n,o){return{x:ha(t),y:ha(e),zoom:1/0,id:r,parentId:-1,numPoints:n,properties:o}}function va(t,e){const[r,n]=t.geometry.coordinates;return{x:ha(wa(r)),y:ha(ka(n)),zoom:1/0,index:e,parentId:-1}}function ya(t){return{type:"Feature",id:t.id,properties:ba(t),geometry:{type:"Point",coordinates:[(e=t.x,360*(e-.5)),Sa(t.y)]}};var e}function ba(t){const e=t.numPoints,r=e>=1e4?`${Math.round(e/1e3)}k`:e>=1e3?Math.round(e/100)/10+"k":e;return Oa(Oa({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function wa(t){return t/360+.5}function ka(t){const e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function Sa(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function Oa(t,e){for(const r in e)t[r]=e[r];return t}function xa(t){return t.x}function Ma(t){return t.y}var Pa=function(t){o(i,t);var r=u(i);function i(t){var n;e(this,i);var o=t.maxZoom,a=t.radius,s=void 0===a?60:a,u=oi(t,["maxZoom","radius"]);return(n=r.call(this,{maxZoom:o})).superCluster=new da(Object.assign({maxZoom:n.maxZoom,radius:s},u)),n.state={zoom:null},n}return n(i,[{key:"calculate",value:function(t){var e=!1;if(!Ui(t.markers,this.markers)){e=!0,this.markers=f(t.markers);var r=this.markers.map((function(t){return{type:"Feature",geometry:{type:"Point",coordinates:[t.getPosition().lng(),t.getPosition().lat()]},properties:{marker:t}}}));this.superCluster.load(r)}var n={zoom:t.map.getZoom()};return e||this.state.zoom>this.maxZoom&&n.zoom>this.maxZoom||(e=e||!Ui(this.state,n)),this.state=n,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}},{key:"cluster",value:function(t){var e=t.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(this.transformCluster.bind(this))}},{key:"transformCluster",value:function(t){var e=c(t.geometry.coordinates,2),r=e[0],n=e[1],o=t.properties;if(o.cluster)return new ki({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:new google.maps.LatLng({lat:n,lng:r})});var i=o.marker;return new ki({markers:[i],position:i.getPosition()})}}]),i}(Ei),ja={},Ea=y,Ca=Ze,_a=Fe,La=Ue,Ta=J,Ia=$i;ja.f=Ea&&!Ca?Object.defineProperties:function(t,e){La(t);for(var r,n=Ta(e),o=Ia(e),i=o.length,a=0;i>a;)_a.f(t,r=o[a++],n[r]);return t};var Aa,Na=st("document","documentElement"),za=Ue,Da=ja,Ra=Cn,Fa=Pr,Za=Na,Ga=je,Va=Mr("IE_PROTO"),Ba=function(){},Ua=function(t){return"