@googlemaps/markerclusterer
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -46,2 +46,6 @@ import equal from 'fast-deep-equal'; | ||
*/ | ||
/** | ||
* util class that creates a common set of convenience functions to wrap | ||
* shared behavior of Advanced Markers and Markers. | ||
*/ | ||
class MarkerUtils { | ||
@@ -706,5 +710,4 @@ static isAdvancedMarkerAvailable(map) { | ||
// create cluster SVG element | ||
const div = document.createElement("div"); | ||
div.innerHTML = svg; | ||
const svgEl = div.firstElementChild; | ||
const parser = new DOMParser(); | ||
const svgEl = parser.parseFromString(svg, "image/svg+xml").documentElement; | ||
svgEl.setAttribute("transform", "translate(0 25)"); | ||
@@ -711,0 +714,0 @@ const clusterOptions = { |
@@ -1,2 +0,2 @@ | ||
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;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,"symbol"==typeof(i=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"))?i:String(i)),n)}var o,i}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=i(t);if(e){var o=i(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s(this,r)}}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var m=function(t){return t&&t.Math==Math&&t},g=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof d&&d)||function(){return this}()||d||Function("return this")(),y={},b=function(t){try{return!!t()}catch(t){return!0}},w=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),k=!b((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),O=k,x=Function.prototype.call,S=O?x.bind(x):function(){return x.apply(x,arguments)},E={},A={}.propertyIsEnumerable,P=Object.getOwnPropertyDescriptor,M=P&&!A.call({1:2},1);E.f=M?function(t){var e=P(this,t);return!!e&&e.enumerable}:A;var j,_,T=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},C=k,I=Function.prototype,L=I.call,N=C&&I.bind.bind(L,L),R=C?N:function(t){return function(){return L.apply(t,arguments)}},D=R,F=D({}.toString),z=D("".slice),Z=function(t){return z(F(t),8,-1)},B=b,U=Z,G=Object,V=R("".split),W=B((function(){return!G("z").propertyIsEnumerable(0)}))?function(t){return"String"==U(t)?V(t,""):G(t)}:G,$=function(t){return null==t},H=$,q=TypeError,Y=function(t){if(H(t))throw q("Can't call method on "+t);return t},K=W,X=Y,J=function(t){return K(X(t))},Q="object"==typeof document&&document.all,tt={all:Q,IS_HTMLDDA:void 0===Q&&void 0!==Q},et=tt.all,rt=tt.IS_HTMLDDA?function(t){return"function"==typeof t||t===et}:function(t){return"function"==typeof t},nt=rt,ot=tt.all,it=tt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:nt(t)||t===ot}:function(t){return"object"==typeof t?null!==t:nt(t)},at=g,st=rt,ut=function(t,e){return arguments.length<2?(r=at[t],st(r)?r:void 0):at[t]&&at[t][e];var r},ct=R({}.isPrototypeOf),ft=g,lt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ht=ft.process,pt=ft.Deno,dt=ht&&ht.versions||pt&&pt.version,vt=dt&&dt.v8;vt&&(_=(j=vt.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!_&<&&(!(j=lt.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=lt.match(/Chrome\/(\d+)/))&&(_=+j[1]);var mt=_,gt=mt,yt=b,bt=g.String,wt=!!Object.getOwnPropertySymbols&&!yt((function(){var t=Symbol();return!bt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&>&><41})),kt=wt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=ut,xt=rt,St=ct,Et=Object,At=kt?function(t){return"symbol"==typeof t}:function(t){var e=Ot("Symbol");return xt(e)&&St(e.prototype,Et(t))},Pt=String,Mt=function(t){try{return Pt(t)}catch(t){return"Object"}},jt=rt,_t=Mt,Tt=TypeError,Ct=function(t){if(jt(t))return t;throw Tt(_t(t)+" is not a function")},It=Ct,Lt=$,Nt=function(t,e){var r=t[e];return Lt(r)?void 0:It(r)},Rt=S,Dt=rt,Ft=it,zt=TypeError,Zt={exports:{}},Bt=g,Ut=Object.defineProperty,Gt=function(t,e){try{Ut(Bt,t,{value:e,configurable:!0,writable:!0})}catch(r){Bt[t]=e}return e},Vt=Gt,Wt="__core-js_shared__",$t=g[Wt]||Vt(Wt,{}),Ht=$t;(Zt.exports=function(t,e){return Ht[t]||(Ht[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.31.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"});var qt=Zt.exports,Yt=Y,Kt=Object,Xt=function(t){return Kt(Yt(t))},Jt=Xt,Qt=R({}.hasOwnProperty),te=Object.hasOwn||function(t,e){return Qt(Jt(t),e)},ee=R,re=0,ne=Math.random(),oe=ee(1..toString),ie=function(t){return"Symbol("+(void 0===t?"":t)+")_"+oe(++re+ne,36)},ae=qt,se=te,ue=ie,ce=wt,fe=kt,le=g.Symbol,he=ae("wks"),pe=fe?le.for||le:le&&le.withoutSetter||ue,de=function(t){return se(he,t)||(he[t]=ce&&se(le,t)?le[t]:pe("Symbol."+t)),he[t]},ve=S,me=it,ge=At,ye=Nt,be=function(t,e){var r,n;if("string"===e&&Dt(r=t.toString)&&!Ft(n=Rt(r,t)))return n;if(Dt(r=t.valueOf)&&!Ft(n=Rt(r,t)))return n;if("string"!==e&&Dt(r=t.toString)&&!Ft(n=Rt(r,t)))return n;throw zt("Can't convert object to primitive value")},we=TypeError,ke=de("toPrimitive"),Oe=function(t,e){if(!me(t)||ge(t))return t;var r,n=ye(t,ke);if(n){if(void 0===e&&(e="default"),r=ve(n,t,e),!me(r)||ge(r))return r;throw we("Can't convert object to primitive value")}return void 0===e&&(e="number"),be(t,e)},xe=Oe,Se=At,Ee=function(t){var e=xe(t,"string");return Se(e)?e:e+""},Ae=it,Pe=g.document,Me=Ae(Pe)&&Ae(Pe.createElement),je=function(t){return Me?Pe.createElement(t):{}},_e=je,Te=!w&&!b((function(){return 7!=Object.defineProperty(_e("div"),"a",{get:function(){return 7}}).a})),Ce=w,Ie=S,Le=E,Ne=T,Re=J,De=Ee,Fe=te,ze=Te,Ze=Object.getOwnPropertyDescriptor;y.f=Ce?Ze:function(t,e){if(t=Re(t),e=De(e),ze)try{return Ze(t,e)}catch(t){}if(Fe(t,e))return Ne(!Ie(Le.f,t,e),t[e])};var Be={},Ue=w&&b((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ge=it,Ve=String,We=TypeError,$e=function(t){if(Ge(t))return t;throw We(Ve(t)+" is not an object")},He=w,qe=Te,Ye=Ue,Ke=$e,Xe=Ee,Je=TypeError,Qe=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,er="enumerable",rr="configurable",nr="writable";Be.f=He?Ye?function(t,e,r){if(Ke(t),e=Xe(e),Ke(r),"function"==typeof t&&"prototype"===e&&"value"in r&&nr in r&&!r[nr]){var n=tr(t,e);n&&n[nr]&&(t[e]=r.value,r={configurable:rr in r?r[rr]:n[rr],enumerable:er in r?r[er]:n[er],writable:!1})}return Qe(t,e,r)}:Qe:function(t,e,r){if(Ke(t),e=Xe(e),Ke(r),qe)try{return Qe(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 or=Be,ir=T,ar=w?function(t,e,r){return or.f(t,e,ir(1,r))}:function(t,e,r){return t[e]=r,t},sr={exports:{}},ur=w,cr=te,fr=Function.prototype,lr=ur&&Object.getOwnPropertyDescriptor,hr=cr(fr,"name"),pr={EXISTS:hr,PROPER:hr&&"something"===function(){}.name,CONFIGURABLE:hr&&(!ur||ur&&lr(fr,"name").configurable)},dr=rt,vr=$t,mr=R(Function.toString);dr(vr.inspectSource)||(vr.inspectSource=function(t){return mr(t)});var gr,yr,br,wr=vr.inspectSource,kr=rt,Or=g.WeakMap,xr=kr(Or)&&/native code/.test(String(Or)),Sr=ie,Er=qt("keys"),Ar=function(t){return Er[t]||(Er[t]=Sr(t))},Pr={},Mr=xr,jr=g,_r=it,Tr=ar,Cr=te,Ir=$t,Lr=Ar,Nr=Pr,Rr="Object already initialized",Dr=jr.TypeError,Fr=jr.WeakMap;if(Mr||Ir.state){var zr=Ir.state||(Ir.state=new Fr);zr.get=zr.get,zr.has=zr.has,zr.set=zr.set,gr=function(t,e){if(zr.has(t))throw Dr(Rr);return e.facade=t,zr.set(t,e),e},yr=function(t){return zr.get(t)||{}},br=function(t){return zr.has(t)}}else{var Zr=Lr("state");Nr[Zr]=!0,gr=function(t,e){if(Cr(t,Zr))throw Dr(Rr);return e.facade=t,Tr(t,Zr,e),e},yr=function(t){return Cr(t,Zr)?t[Zr]:{}},br=function(t){return Cr(t,Zr)}}var Br={set:gr,get:yr,has:br,enforce:function(t){return br(t)?yr(t):gr(t,{})},getterFor:function(t){return function(e){var r;if(!_r(e)||(r=yr(e)).type!==t)throw Dr("Incompatible receiver, "+t+" required");return r}}},Ur=R,Gr=b,Vr=rt,Wr=te,$r=w,Hr=pr.CONFIGURABLE,qr=wr,Yr=Br.enforce,Kr=Br.get,Xr=String,Jr=Object.defineProperty,Qr=Ur("".slice),tn=Ur("".replace),en=Ur([].join),rn=$r&&!Gr((function(){return 8!==Jr((function(){}),"length",{value:8}).length})),nn=String(String).split("String"),on=sr.exports=function(t,e,r){"Symbol("===Qr(Xr(e),0,7)&&(e="["+tn(Xr(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Wr(t,"name")||Hr&&t.name!==e)&&($r?Jr(t,"name",{value:e,configurable:!0}):t.name=e),rn&&r&&Wr(r,"arity")&&t.length!==r.arity&&Jr(t,"length",{value:r.arity});try{r&&Wr(r,"constructor")&&r.constructor?$r&&Jr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Yr(t);return Wr(n,"source")||(n.source=en(nn,"string"==typeof e?e:"")),t};Function.prototype.toString=on((function(){return Vr(this)&&Kr(this).source||qr(this)}),"toString");var an=sr.exports,sn=rt,un=Be,cn=an,fn=Gt,ln=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(sn(r)&&cn(r,i,n),n.global)o?t[e]=r:fn(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:un.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},hn={},pn=Math.ceil,dn=Math.floor,vn=Math.trunc||function(t){var e=+t;return(e>0?dn:pn)(e)},mn=function(t){var e=+t;return e!=e||0===e?0:vn(e)},gn=mn,yn=Math.max,bn=Math.min,wn=function(t,e){var r=gn(t);return r<0?yn(r+e,0):bn(r,e)},kn=mn,On=Math.min,xn=function(t){return t>0?On(kn(t),9007199254740991):0},Sn=function(t){return xn(t.length)},En=J,An=wn,Pn=Sn,Mn=function(t){return function(e,r,n){var o,i=En(e),a=Pn(i),s=An(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}},jn={includes:Mn(!0),indexOf:Mn(!1)},_n=te,Tn=J,Cn=jn.indexOf,In=Pr,Ln=R([].push),Nn=function(t,e){var r,n=Tn(t),o=0,i=[];for(r in n)!_n(In,r)&&_n(n,r)&&Ln(i,r);for(;e.length>o;)_n(n,r=e[o++])&&(~Cn(i,r)||Ln(i,r));return i},Rn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dn=Nn,Fn=Rn.concat("length","prototype");hn.f=Object.getOwnPropertyNames||function(t){return Dn(t,Fn)};var zn={};zn.f=Object.getOwnPropertySymbols;var Zn=ut,Bn=hn,Un=zn,Gn=$e,Vn=R([].concat),Wn=Zn("Reflect","ownKeys")||function(t){var e=Bn.f(Gn(t)),r=Un.f;return r?Vn(e,r(t)):e},$n=te,Hn=Wn,qn=y,Yn=Be,Kn=b,Xn=rt,Jn=/#|\.prototype\./,Qn=function(t,e){var r=eo[to(t)];return r==no||r!=ro&&(Xn(e)?Kn(e):!!e)},to=Qn.normalize=function(t){return String(t).replace(Jn,".").toLowerCase()},eo=Qn.data={},ro=Qn.NATIVE="N",no=Qn.POLYFILL="P",oo=Qn,io=g,ao=y.f,so=ar,uo=ln,co=Gt,fo=function(t,e,r){for(var n=Hn(e),o=Yn.f,i=qn.f,a=0;a<n.length;a++){var s=n[a];$n(t,s)||r&&$n(r,s)||o(t,s,i(e,s))}},lo=oo,ho=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?io:c?io[s]||co(s,{}):(io[s]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=ao(r,n))&&a.value:r[n],!lo(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;fo(i,o)}(t.sham||o&&o.sham)&&so(i,"sham",!0),uo(r,n,i,t)}},po=Z,vo=R,mo=function(t){if("Function"===po(t))return vo(t)},go=Ct,yo=k,bo=mo(mo.bind),wo=function(t,e){return go(t),void 0===e?t:yo?bo(t,e):function(){return t.apply(e,arguments)}},ko=Z,Oo=Array.isArray||function(t){return"Array"==ko(t)},xo={};xo[de("toStringTag")]="z";var So="[object z]"===String(xo),Eo=So,Ao=rt,Po=Z,Mo=de("toStringTag"),jo=Object,_o="Arguments"==Po(function(){return arguments}()),To=Eo?Po:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=jo(t),Mo))?r:_o?Po(e):"Object"==(n=Po(e))&&Ao(e.callee)?"Arguments":n},Co=R,Io=b,Lo=rt,No=To,Ro=wr,Do=function(){},Fo=[],zo=ut("Reflect","construct"),Zo=/^\s*(?:class|function)\b/,Bo=Co(Zo.exec),Uo=!Zo.exec(Do),Go=function(t){if(!Lo(t))return!1;try{return zo(Do,Fo,t),!0}catch(t){return!1}},Vo=function(t){if(!Lo(t))return!1;switch(No(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Uo||!!Bo(Zo,Ro(t))}catch(t){return!0}};Vo.sham=!0;var Wo=!zo||Io((function(){var t;return Go(Go.call)||!Go(Object)||!Go((function(){t=!0}))||t}))?Vo:Go,$o=Oo,Ho=Wo,qo=it,Yo=de("species"),Ko=Array,Xo=function(t){var e;return $o(t)&&(e=t.constructor,(Ho(e)&&(e===Ko||$o(e.prototype))||qo(e)&&null===(e=e[Yo]))&&(e=void 0)),void 0===e?Ko:e},Jo=function(t,e){return new(Xo(t))(0===e?0:e)},Qo=wo,ti=W,ei=Xt,ri=Sn,ni=Jo,oi=R([].push),ii=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,s=5==t||i;return function(u,c,f,l){for(var h,p,d=ei(u),v=ti(d),m=Qo(c,f),g=ri(v),y=0,b=l||ni,w=e?b(u,g):r||a?b(u,0):void 0;g>y;y++)if((s||y in v)&&(p=m(h=v[y],y,d),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return y;case 2:oi(w,h)}else switch(t){case 4:return!1;case 7:oi(w,h)}return i?-1:n||o?o:w}},ai={forEach:ii(0),map:ii(1),filter:ii(2),some:ii(3),every:ii(4),find:ii(5),findIndex:ii(6),filterReject:ii(7)},si=b,ui=mt,ci=de("species"),fi=function(t){return ui>=51||!si((function(){var e=[];return(e.constructor={})[ci]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},li=ai.map;function hi(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);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}ho({target:"Array",proto:!0,forced:!fi("map")},{map:function(t){return li(this,t,arguments.length>1?arguments[1]:void 0)}});var pi=ai.filter;ho({target:"Array",proto:!0,forced:!fi("filter")},{filter:function(t){return pi(this,t,arguments.length>1?arguments[1]:void 0)}});var di=To,vi=So?{}.toString:function(){return"[object "+di(this)+"]"};So||ln(Object.prototype,"toString",vi,{unsafe:!0});var mi=function(){function t(){e(this,t)}return n(t,null,[{key:"isAdvancedMarkerAvailable",value:function(t){return google.maps.marker&&!0===t.getMapCapabilities().isAdvancedMarkersAvailable}},{key:"isAdvancedMarker",value:function(t){return google.maps.marker&&t instanceof google.maps.marker.AdvancedMarkerElement}},{key:"setMap",value:function(t,e){this.isAdvancedMarker(t)?t.map=e:t.setMap(e)}},{key:"getPosition",value:function(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(t.position.lat&&t.position.lng)return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}},{key:"getVisible",value:function(t){return!!this.isAdvancedMarker(t)||t.getVisible()}}]),t}(),gi=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){var t,e=new google.maps.LatLngBounds(this._position,this._position),r=p(this.markers);try{for(r.s();!(t=r.n()).done;){var n=t.value;e.extend(mi.getPosition(n))}}catch(t){r.e(t)}finally{r.f()}return e}}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(t){return mi.getVisible(t)})).length}},{key:"push",value:function(t){this.markers.push(t)}},{key:"delete",value:function(){this.marker&&(mi.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}]),t}(),yi=function(t,e,r,n){var o=bi(t.getBounds(),e,n);return r.filter((function(t){return o.contains(mi.getPosition(t))}))},bi=function(t,e,r){var n=Oi(t,e),o=n.northEast,i=n.southWest,a=xi({northEast:o,southWest:i},r);return Si(a,e)},wi=function(t,e,r){var n=bi(t,e,r),o=n.getNorthEast(),i=n.getSouthWest();return[i.lng(),i.lat(),o.lng(),o.lat()]},ki=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),i=Math.sin(n/2),a=o*o+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*i*i;return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))},Oi=function(t,e){return{northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}},xi=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}},Si=function(t,e){var r=t.northEast,n=t.southWest,o=e.fromDivPixelToLatLng(n),i=e.fromDivPixelToLatLng(r);return new google.maps.LatLngBounds(o,i)},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 Pi(e)}}]),t}(),Ai=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=hi(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}),changed:!1}:{clusters:this.cluster({markers:yi(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}]),i}(Ei),Pi=function(t){return t.map((function(t){return new gi({position:mi.getPosition(t),markers:[t]})}))},Mi={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},ji=je("span").classList,_i=ji&&ji.constructor&&ji.constructor.prototype,Ti=_i===Object.prototype?void 0:_i,Ci=b,Ii=function(t,e){var r=[][t];return!!r&&Ci((function(){r.call(null,e||function(){return 1},1)}))},Li=ai.forEach,Ni=Ii("forEach")?[].forEach:function(t){return Li(this,t,arguments.length>1?arguments[1]:void 0)},Ri=g,Di=Mi,Fi=Ti,zi=Ni,Zi=ar,Bi=function(t){if(t&&t.forEach!==zi)try{Zi(t,"forEach",zi)}catch(e){t.forEach=zi}};for(var Ui in Di)Di[Ui]&&Bi(Ri[Ui]&&Ri[Ui].prototype);Bi(Fi);var Gi=S;ho({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Gi(URL.prototype.toString,this)}});var Vi=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=v(Vi),$i=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=hi(t,["maxDistance","gridSize"]);return(n=r.call(this,c)).clusters=[],n.state={zoom:-1},n.maxDistance=a,n.gridSize=u,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=!Wi(this.state,o)),this.state=o,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e}),changed:i}:{clusters:this.cluster({markers:yi(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;i<this.clusters.length;i++){var a=this.clusters[i],s=ki(a.bounds.getCenter().toJSON(),mi.getPosition(t).toJSON());s<n&&(n=s,o=a)}if(o&&bi(o.bounds,r,this.gridSize).contains(mi.getPosition(t)))o.push(t);else{var u=new gi({markers:[t]});this.clusters.push(u)}}}]),i}(Ai),Hi=function(t){o(i,t);var r=u(i);function i(t){e(this,i);var n=hi(t,[]);return r.call(this,n)}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return{clusters:this.cluster({markers:e,map:r,mapCanvasProjection:n}),changed:!1}}},{key:"cluster",value:function(t){return this.noop(t)}}]),i}(Ei),qi=Nn,Yi=Rn,Ki=Object.keys||function(t){return qi(t,Yi)},Xi=w,Ji=R,Qi=S,ta=b,ea=Ki,ra=zn,na=E,oa=Xt,ia=W,aa=Object.assign,sa=Object.defineProperty,ua=Ji([].concat),ca=!aa||ta((function(){if(Xi&&1!==aa({b:1},aa(sa({},"a",{enumerable:!0,get:function(){sa(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=aa({},t)[r]||ea(aa({},e)).join("")!=n}))?function(t,e){for(var r=oa(t),n=arguments.length,o=1,i=ra.f,a=na.f;n>o;)for(var s,u=ia(arguments[o++]),c=i?ua(ea(u),i(u)):ea(u),f=c.length,l=0;f>l;)s=c[l++],Xi&&!Qi(a,u,s)||(r[s]=u[s]);return r}:aa,fa=ca;ho({target:"Object",stat:!0,arity:2,forced:Object.assign!==fa},{assign:fa});const la=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class ha{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[e,r]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const n=r>>4;if(1!==n)throw new Error(`Got v${n} data when expected v1.`);const o=la[15&r];if(!o)throw new Error("Unrecognized array type.");const[i]=new Uint16Array(t,2,1),[a]=new Uint32Array(t,4,1);return new ha(a,i,o,t)}constructor(t,e=64,r=Float64Array,n){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const o=la.indexOf(this.ArrayType),i=2*t*this.ArrayType.BYTES_PER_ELEMENT,a=t*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-a%8)%8;if(o<0)throw new Error(`Unexpected typed array class: ${r}.`);n&&n instanceof ArrayBuffer?(this.data=n,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+s,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+i+a+s),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+s,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return pa(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:i,nodeSize:a}=this,s=[0,o.length-1,0],u=[];for(;s.length;){const c=s.pop()||0,f=s.pop()||0,l=s.pop()||0;if(f-l<=a){for(let a=l;a<=f;a++){const s=i[2*a],c=i[2*a+1];s>=t&&s<=r&&c>=e&&c<=n&&u.push(o[a])}continue}const h=l+f>>1,p=i[2*h],d=i[2*h+1];p>=t&&p<=r&&d>=e&&d<=n&&u.push(o[h]),(0===c?t<=p:e<=d)&&(s.push(l),s.push(h-1),s.push(1-c)),(0===c?r>=p:n>=d)&&(s.push(h+1),s.push(f),s.push(1-c))}return u}within(t,e,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:o,nodeSize:i}=this,a=[0,n.length-1,0],s=[],u=r*r;for(;a.length;){const c=a.pop()||0,f=a.pop()||0,l=a.pop()||0;if(f-l<=i){for(let r=l;r<=f;r++)ga(o[2*r],o[2*r+1],t,e)<=u&&s.push(n[r]);continue}const h=l+f>>1,p=o[2*h],d=o[2*h+1];ga(p,d,t,e)<=u&&s.push(n[h]),(0===c?t-r<=p:e-r<=d)&&(a.push(l),a.push(h-1),a.push(1-c)),(0===c?t+r>=p:e+r>=d)&&(a.push(h+1),a.push(f),a.push(1-c))}return s}}function pa(t,e,r,n,o,i){if(o-n<=r)return;const a=n+o>>1;da(t,e,a,n,o,i),pa(t,e,r,n,a-1,1-i),pa(t,e,r,a+1,o,1-i)}function da(t,e,r,n,o,i){for(;o>n;){if(o-n>600){const a=o-n+1,s=r-n+1,u=Math.log(a),c=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*c*(a-c)/a)*(s-a/2<0?-1:1);da(t,e,r,Math.max(n,Math.floor(r-s*c/a+f)),Math.min(o,Math.floor(r+(a-s)*c/a+f)),i)}const a=e[2*r+i];let s=n,u=o;for(va(t,e,n,r),e[2*o+i]>a&&va(t,e,n,o);s<u;){for(va(t,e,s,u),s++,u--;e[2*s+i]<a;)s++;for(;e[2*u+i]>a;)u--}e[2*n+i]===a?va(t,e,n,u):(u++,va(t,e,u,o)),u<=r&&(n=u+1),r<=u&&(o=u-1)}}function va(t,e,r,n){ma(t,r,n),ma(e,2*r,2*n),ma(e,2*r+1,2*n+1)}function ma(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function ga(t,e,r,n){const o=t-r,i=e-n;return o*o+i*i}const ya={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},ba=Math.fround||(wa=new Float32Array(1),t=>(wa[0]=+t,wa[0]));var wa;const ka=3,Oa=5,xa=6;class Sa{constructor(t){this.options=Object.assign(Object.create(ya),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:r,maxZoom:n}=this.options;e&&console.time("total time");const o=`prepare ${t.length} points`;e&&console.time(o),this.points=t;const i=[];for(let e=0;e<t.length;e++){const r=t[e];if(!r.geometry)continue;const[n,o]=r.geometry.coordinates,a=ba(Pa(n)),s=ba(Ma(o));i.push(a,s,1/0,e,-1,1),this.options.reduce&&i.push(0)}let a=this.trees[n+1]=this._createTree(i);e&&console.timeEnd(o);for(let t=n;t>=r;t--){const r=+Date.now();a=this.trees[t]=this._createTree(this._cluster(a,t)),e&&console.log("z%d: %d clusters in %dms",t,a.numItems,+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(Pa(r),Ma(i),Pa(o),Ma(n)),u=a.data,c=[];for(const t of s){const e=this.stride*t;c.push(u[e+Oa]>1?Ea(u,e,this.clusterProps):this.points[u[e+ka]])}return c}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.data;if(e*this.stride>=i.length)throw new Error(n);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=i[e*this.stride],u=i[e*this.stride+1],c=o.within(s,u,a),f=[];for(const e of c){const r=e*this.stride;i[r+4]===t&&f.push(i[r+Oa]>1?Ea(i,r,this.clusterProps):this.points[i[r+ka]])}if(0===f.length)throw new Error(n);return f}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.data,e,r,o,f),0===e&&this._addTileFeatures(n.range(1-s/o,u,1,c),n.data,o,r,o,f),e===o-1&&this._addTileFeatures(n.range(0,u,s/o,c),n.data,-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):o<n?o++:t.push(e),t.length===r)break}return o}_createTree(t){const e=new ha(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)e.add(t[r],t[r+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,r,n,o,i){for(const a of t){const t=a*this.stride,s=e[t+Oa]>1;let u,c,f;if(s)u=Aa(e,t,this.clusterProps),c=e[t],f=e[t+1];else{const r=this.points[e[t+ka]];u=r.properties;const[n,o]=r.geometry.coordinates;c=Pa(n),f=Ma(o)}const l={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(f*o-n))]],tags:u};let h;h=s||this.options.generateId?e[t+ka]:this.points[e[t+ka]].id,void 0!==h&&(l.id=h),i.features.push(l)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const{radius:r,extent:n,reduce:o,minPoints:i}=this.options,a=r/(n*Math.pow(2,e)),s=t.data,u=[],c=this.stride;for(let r=0;r<s.length;r+=c){if(s[r+2]<=e)continue;s[r+2]=e;const n=s[r],f=s[r+1],l=t.within(s[r],s[r+1],a),h=s[r+Oa];let p=h;for(const t of l){const r=t*c;s[r+2]>e&&(p+=s[r+Oa])}if(p>h&&p>=i){let t,i=n*h,a=f*h,d=-1;const v=((r/c|0)<<5)+(e+1)+this.points.length;for(const n of l){const u=n*c;if(s[u+2]<=e)continue;s[u+2]=e;const f=s[u+Oa];i+=s[u]*f,a+=s[u+1]*f,s[u+4]=v,o&&(t||(t=this._map(s,r,!0),d=this.clusterProps.length,this.clusterProps.push(t)),o(t,this._map(s,u)))}s[r+4]=v,u.push(i/p,a/p,1/0,v,-1,p),o&&u.push(d)}else{for(let t=0;t<c;t++)u.push(s[r+t]);if(p>1)for(const t of l){const r=t*c;if(!(s[r+2]<=e)){s[r+2]=e;for(let t=0;t<c;t++)u.push(s[r+t])}}}}return u}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,r){if(t[e+Oa]>1){const n=this.clusterProps[t[e+xa]];return r?Object.assign({},n):n}const n=this.points[t[e+ka]].properties,o=this.options.map(n);return r&&o===n?Object.assign({},o):o}}function Ea(t,e,r){return{type:"Feature",id:t[e+ka],properties:Aa(t,e,r),geometry:{type:"Point",coordinates:[(n=t[e],360*(n-.5)),ja(t[e+1])]}};var n}function Aa(t,e,r){const n=t[e+Oa],o=n>=1e4?`${Math.round(n/1e3)}k`:n>=1e3?Math.round(n/100)/10+"k":n,i=t[e+xa],a=-1===i?{}:Object.assign({},r[i]);return Object.assign(a,{cluster:!0,cluster_id:t[e+ka],point_count:n,point_count_abbreviated:o})}function Pa(t){return t/360+.5}function Ma(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 ja(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}var _a=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=hi(t,["maxZoom","radius"]);return(n=r.call(this,{maxZoom:o})).state={zoom:-1},n.superCluster=new Sa(Object.assign({maxZoom:n.maxZoom,radius:s},u)),n}return n(i,[{key:"calculate",value:function(t){var e=!1,r={zoom:t.map.getZoom()};if(!Wi(t.markers,this.markers)){e=!0,this.markers=f(t.markers);var n=this.markers.map((function(t){var e=mi.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(n)}return e||(this.state.zoom<=this.maxZoom||r.zoom<=this.maxZoom)&&(e=!Wi(this.state,r)),this.state=r,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}},{key:"cluster",value:function(t){var e=this,r=t.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(r.getZoom())).map((function(t){return e.transformCluster(t)}))}},{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 gi({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:{lat:n,lng:r}});var i=o.marker;return new gi({markers:[i],position:mi.getPosition(i)})}}]),i}(Ei),Ta=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=t.viewportPadding,c=void 0===u?60:u,f=hi(t,["maxZoom","radius","viewportPadding"]);return(n=r.call(this,{maxZoom:o,viewportPadding:c})).superCluster=new Sa(Object.assign({maxZoom:n.maxZoom,radius:s},f)),n.state={zoom:-1,view:[0,0,0,0]},n}return n(i,[{key:"calculate",value:function(t){var e={zoom:Math.round(t.map.getZoom()),view:wi(t.map.getBounds(),t.mapCanvasProjection,this.viewportPadding)},r=!Wi(this.state,e);if(!Wi(t.markers,this.markers)){r=!0,this.markers=f(t.markers);var n=this.markers.map((function(t){var e=mi.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(n)}return r&&(this.clusters=this.cluster(t),this.state=e),{clusters:this.clusters,changed:r}}},{key:"cluster",value:function(t){var e=this,r=t.map,n=t.mapCanvasProjection,o={zoom:Math.round(r.getZoom()),view:wi(r.getBounds(),n,this.viewportPadding)};return this.superCluster.getClusters(o.view,o.zoom).map((function(t){return e.transformCluster(t)}))}},{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 gi({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:{lat:n,lng:r}});var i=o.marker;return new gi({markers:[i],position:mi.getPosition(i)})}}]),i}(Ai),Ca={},Ia=w,La=Ue,Na=Be,Ra=$e,Da=J,Fa=Ki;Ca.f=Ia&&!La?Object.defineProperties:function(t,e){Ra(t);for(var r,n=Da(e),o=Fa(e),i=o.length,a=0;i>a;)Na.f(t,r=o[a++],n[r]);return t};var za,Za=ut("document","documentElement"),Ba=$e,Ua=Ca,Ga=Rn,Va=Pr,Wa=Za,$a=je,Ha="prototype",qa="script",Ya=Ar("IE_PROTO"),Ka=function(){},Xa=function(t){return"<"+qa+">"+t+"</"+qa+">"},Ja=function(t){t.write(Xa("")),t.close();var e=t.parentWindow.Object;return t=null,e},Qa=function(){try{za=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Qa="undefined"!=typeof document?document.domain&&za?Ja(za):(e=$a("iframe"),r="java"+qa+":",e.style.display="none",Wa.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Xa("document.F=Object")),t.close(),t.F):Ja(za);for(var n=Ga.length;n--;)delete Qa[Ha][Ga[n]];return Qa()};Va[Ya]=!0;var ts=Object.create||function(t,e){var r;return null!==t?(Ka[Ha]=Ba(t),r=new Ka,Ka[Ha]=null,r[Ya]=t):r=Qa(),void 0===e?r:Ua.f(r,e)},es=de,rs=ts,ns=Be.f,os=es("unscopables"),is=Array.prototype;null==is[os]&&ns(is,os,{configurable:!0,value:rs(null)});var as=function(t){is[os][t]=!0},ss=jn.includes,us=as;ho({target:"Array",proto:!0,forced:b((function(){return!Array(1).includes()}))},{includes:function(t){return ss(this,t,arguments.length>1?arguments[1]:void 0)}}),us("includes");var cs=it,fs=Z,ls=de("match"),hs=function(t){var e;return cs(t)&&(void 0!==(e=t[ls])?!!e:"RegExp"==fs(t))},ps=TypeError,ds=To,vs=String,ms=function(t){if("Symbol"===ds(t))throw TypeError("Cannot convert a Symbol value to a string");return vs(t)},gs=de("match"),ys=ho,bs=function(t){if(hs(t))throw ps("The method doesn't accept regular expressions");return t},ws=Y,ks=ms,Os=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[gs]=!1,"/./"[t](e)}catch(t){}}return!1},xs=R("".indexOf);ys({target:"String",proto:!0,forced:!Os("includes")},{includes:function(t){return!!~xs(ks(ws(this)),ks(bs(t)),arguments.length>1?arguments[1]:void 0)}});var Ss=ho,Es=jn.indexOf,As=Ii,Ps=mo([].indexOf),Ms=!!Ps&&1/Ps([1],1,-0)<0;Ss({target:"Array",proto:!0,forced:Ms||!As("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Ms?Ps(this,t,e)||0:Es(this,t,e)}});var js=w,_s=Oo,Ts=TypeError,Cs=Object.getOwnPropertyDescriptor,Is=js&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Ls=TypeError,Ns=function(t){if(t>9007199254740991)throw Ls("Maximum allowed index exceeded");return t},Rs=Ee,Ds=Be,Fs=T,zs=function(t,e,r){var n=Rs(e);n in t?Ds.f(t,n,Fs(0,r)):t[n]=r},Zs=Mt,Bs=TypeError,Us=ho,Gs=Xt,Vs=wn,Ws=mn,$s=Sn,Hs=Is?function(t,e){if(_s(t)&&!Cs(t,"length").writable)throw Ts("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},qs=Ns,Ys=Jo,Ks=zs,Xs=function(t,e){if(!delete t[e])throw Bs("Cannot delete property "+Zs(e)+" of "+Zs(t))},Js=fi("splice"),Qs=Math.max,tu=Math.min;Us({target:"Array",proto:!0,forced:!Js},{splice:function(t,e){var r,n,o,i,a,s,u=Gs(this),c=$s(u),f=Vs(t,c),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=c-f):(r=l-2,n=tu(Qs(Ws(e),0),c-f)),qs(c+r-n),o=Ys(u,n),i=0;i<n;i++)(a=f+i)in u&&Ks(o,i,u[a]);if(o.length=n,r<n){for(i=f;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Xs(u,s);for(i=c;i>c-n+r;i--)Xs(u,i-1)}else if(r>n)for(i=c-n;i>f;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Xs(u,s);for(i=0;i<r;i++)u[i+f]=arguments[i+2];return Hs(u,c-n+r),o}});var eu,ru,nu,ou={},iu=!b((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),au=te,su=rt,uu=Xt,cu=iu,fu=Ar("IE_PROTO"),lu=Object,hu=lu.prototype,pu=cu?lu.getPrototypeOf:function(t){var e=uu(t);if(au(e,fu))return e[fu];var r=e.constructor;return su(r)&&e instanceof r?r.prototype:e instanceof lu?hu:null},du=b,vu=rt,mu=it,gu=pu,yu=ln,bu=de("iterator"),wu=!1;[].keys&&("next"in(nu=[].keys())?(ru=gu(gu(nu)))!==Object.prototype&&(eu=ru):wu=!0);var ku=!mu(eu)||du((function(){var t={};return eu[bu].call(t)!==t}));ku&&(eu={}),vu(eu[bu])||yu(eu,bu,(function(){return this}));var Ou={IteratorPrototype:eu,BUGGY_SAFARI_ITERATORS:wu},xu=Be.f,Su=te,Eu=de("toStringTag"),Au=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Su(t,Eu)&&xu(t,Eu,{configurable:!0,value:e})},Pu=Ou.IteratorPrototype,Mu=ts,ju=T,_u=Au,Tu=ou,Cu=function(){return this},Iu=R,Lu=Ct,Nu=rt,Ru=String,Du=TypeError,Fu=function(t,e,r){try{return Iu(Lu(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},zu=$e,Zu=function(t){if("object"==typeof t||Nu(t))return t;throw Du("Can't set "+Ru(t)+" as a prototype")},Bu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Fu(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return zu(r),Zu(n),e?t(r,n):r.__proto__=n,r}}():void 0),Uu=ho,Gu=S,Vu=rt,Wu=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Mu(Pu,{next:ju(+!n,r)}),_u(t,o,!1),Tu[o]=Cu,t},$u=pu,Hu=Bu,qu=Au,Yu=ar,Ku=ln,Xu=ou,Ju=pr.PROPER,Qu=pr.CONFIGURABLE,tc=Ou.IteratorPrototype,ec=Ou.BUGGY_SAFARI_ITERATORS,rc=de("iterator"),nc="keys",oc="values",ic="entries",ac=function(){return this},sc=function(t,e,r,n,o,i,a){Wu(r,e,n);var s,u,c,f=function(t){if(t===o&&v)return v;if(!ec&&t in p)return p[t];switch(t){case nc:case oc:case ic:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,d=p[rc]||p["@@iterator"]||o&&p[o],v=!ec&&d||f(o),m="Array"==e&&p.entries||d;if(m&&(s=$u(m.call(new t)))!==Object.prototype&&s.next&&($u(s)!==tc&&(Hu?Hu(s,tc):Vu(s[rc])||Ku(s,rc,ac)),qu(s,l,!0)),Ju&&o==oc&&d&&d.name!==oc&&(Qu?Yu(p,"name",oc):(h=!0,v=function(){return Gu(d,this)})),o)if(u={values:f(oc),keys:i?v:f(nc),entries:f(ic)},a)for(c in u)(ec||h||!(c in p))&&Ku(p,c,u[c]);else Uu({target:e,proto:!0,forced:ec||h},u);return p[rc]!==v&&Ku(p,rc,v,{name:o}),Xu[e]=v,u},uc=function(t,e){return{value:t,done:e}},cc=J,fc=as,lc=ou,hc=Br,pc=Be.f,dc=sc,vc=uc,mc=w,gc="Array Iterator",yc=hc.set,bc=hc.getterFor(gc),wc=dc(Array,"Array",(function(t,e){yc(this,{type:gc,target:cc(t),index:0,kind:e})}),(function(){var t=bc(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,vc(void 0,!0)):vc("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),kc=lc.Arguments=lc.Array;if(fc("keys"),fc("values"),fc("entries"),mc&&"values"!==kc.name)try{pc(kc,"name",{value:"values"})}catch(t){}var Oc={exports:{}},xc={},Sc=wn,Ec=Sn,Ac=zs,Pc=Array,Mc=Math.max,jc=Z,_c=J,Tc=hn.f,Cc=function(t,e,r){for(var n=Ec(t),o=Sc(e,n),i=Sc(void 0===r?n:r,n),a=Pc(Mc(i-o,0)),s=0;o<i;o++,s++)Ac(a,s,t[o]);return a.length=s,a},Ic="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];xc.f=function(t){return Ic&&"Window"==jc(t)?function(t){try{return Tc(t)}catch(t){return Cc(Ic)}}(t):Tc(_c(t))};var Lc=b((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Nc=b,Rc=it,Dc=Z,Fc=Lc,zc=Object.isExtensible,Zc=Nc((function(){zc(1)}))||Fc?function(t){return!!Rc(t)&&((!Fc||"ArrayBuffer"!=Dc(t))&&(!zc||zc(t)))}:zc,Bc=!b((function(){return Object.isExtensible(Object.preventExtensions({}))})),Uc=ho,Gc=R,Vc=Pr,Wc=it,$c=te,Hc=Be.f,qc=hn,Yc=xc,Kc=Zc,Xc=Bc,Jc=!1,Qc=ie("meta"),tf=0,ef=function(t){Hc(t,Qc,{value:{objectID:"O"+tf++,weakData:{}}})},rf=Oc.exports={enable:function(){rf.enable=function(){},Jc=!0;var t=qc.f,e=Gc([].splice),r={};r[Qc]=1,t(r).length&&(qc.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===Qc){e(n,o,1);break}return n},Uc({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Yc.f}))},fastKey:function(t,e){if(!Wc(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!$c(t,Qc)){if(!Kc(t))return"F";if(!e)return"E";ef(t)}return t[Qc].objectID},getWeakData:function(t,e){if(!$c(t,Qc)){if(!Kc(t))return!0;if(!e)return!1;ef(t)}return t[Qc].weakData},onFreeze:function(t){return Xc&&Jc&&Kc(t)&&!$c(t,Qc)&&ef(t),t}};Vc[Qc]=!0;var nf=Oc.exports,of=ou,af=de("iterator"),sf=Array.prototype,uf=To,cf=Nt,ff=$,lf=ou,hf=de("iterator"),pf=function(t){if(!ff(t))return cf(t,hf)||cf(t,"@@iterator")||lf[uf(t)]},df=S,vf=Ct,mf=$e,gf=Mt,yf=pf,bf=TypeError,wf=S,kf=$e,Of=Nt,xf=wo,Sf=S,Ef=$e,Af=Mt,Pf=function(t){return void 0!==t&&(of.Array===t||sf[af]===t)},Mf=Sn,jf=ct,_f=function(t,e){var r=arguments.length<2?yf(t):e;if(vf(r))return mf(df(r,t));throw bf(gf(t)+" is not iterable")},Tf=pf,Cf=function(t,e,r){var n,o;kf(t);try{if(!(n=Of(t,"return"))){if("throw"===e)throw r;return r}n=wf(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return kf(n),r},If=TypeError,Lf=function(t,e){this.stopped=t,this.result=e},Nf=Lf.prototype,Rf=function(t,e,r){var n,o,i,a,s,u,c,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=xf(e,f),m=function(t){return n&&Cf(n,"normal",t),new Lf(!0,t)},g=function(t){return l?(Ef(t),d?v(t[0],t[1],m):v(t[0],t[1])):d?v(t,m):v(t)};if(h)n=t.iterator;else if(p)n=t;else{if(!(o=Tf(t)))throw If(Af(t)+" is not iterable");if(Pf(o)){for(i=0,a=Mf(t);a>i;i++)if((s=g(t[i]))&&jf(Nf,s))return s;return new Lf(!1)}n=_f(t,o)}for(u=h?t.next:n.next;!(c=Sf(u,n)).done;){try{s=g(c.value)}catch(t){Cf(n,"throw",t)}if("object"==typeof s&&s&&jf(Nf,s))return s}return new Lf(!1)},Df=ct,Ff=TypeError,zf=function(t,e){if(Df(e,t))return t;throw Ff("Incorrect invocation")},Zf=de("iterator"),Bf=!1;try{var Uf=0,Gf={next:function(){return{done:!!Uf++}},return:function(){Bf=!0}};Gf[Zf]=function(){return this},Array.from(Gf,(function(){throw 2}))}catch(t){}var Vf=rt,Wf=it,$f=Bu,Hf=function(t,e,r){var n,o;return $f&&Vf(n=e.constructor)&&n!==r&&Wf(o=n.prototype)&&o!==r.prototype&&$f(t,o),t},qf=ho,Yf=g,Kf=R,Xf=oo,Jf=ln,Qf=nf,tl=Rf,el=zf,rl=rt,nl=$,ol=it,il=b,al=function(t,e){if(!e&&!Bf)return!1;var r=!1;try{var n={};n[Zf]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},sl=Au,ul=Hf,cl=an,fl=Be,ll=function(t,e,r){return r.get&&cl(r.get,e,{getter:!0}),r.set&&cl(r.set,e,{setter:!0}),fl.f(t,e,r)},hl=ln,pl=ut,dl=ll,vl=w,ml=de("species"),gl=ts,yl=ll,bl=function(t,e,r){for(var n in e)hl(t,n,e[n],r);return t},wl=wo,kl=zf,Ol=$,xl=Rf,Sl=sc,El=uc,Al=function(t){var e=pl(t);vl&&e&&!e[ml]&&dl(e,ml,{configurable:!0,get:function(){return this}})},Pl=w,Ml=nf.fastKey,jl=Br.set,_l=Br.getterFor,Tl={getConstructor:function(t,e,r,n){var o=t((function(t,o){kl(t,i),jl(t,{type:e,index:gl(null),first:void 0,last:void 0,size:0}),Pl||(t.size=0),Ol(o)||xl(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,a=_l(e),s=function(t,e,r){var n,o,i=a(t),s=u(t,e);return s?s.value=r:(i.last=s={index:o=Ml(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),Pl?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},u=function(t,e){var r,n=a(t),o=Ml(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return bl(i,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,Pl?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=u(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),Pl?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=wl(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),bl(i,r?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),Pl&&yl(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=_l(e),i=_l(n);Sl(t,e,(function(t,e){jl(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?El("keys"==e?r.key:"values"==e?r.value:[r.key,r.value],!1):(t.target=void 0,El(void 0,!0))}),r?"entries":"values",!r,!0),Al(e)}};(function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",a=Yf[t],s=a&&a.prototype,u=a,c={},f=function(t){var e=Kf(s[t]);Jf(s,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!ol(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!ol(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!ol(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(Xf(t,!rl(a)||!(o||s.forEach&&!il((function(){(new a).entries().next()})))))u=r.getConstructor(e,t,n,i),Qf.enable();else if(Xf(t,!0)){var l=new u,h=l[i](o?{}:-0,1)!=l,p=il((function(){l.has(1)})),d=al((function(t){new a(t)})),v=!o&&il((function(){for(var t=new a,e=5;e--;)t[i](e,e);return!t.has(-0)}));d||((u=e((function(t,e){el(t,s);var r=ul(new a,t,u);return nl(e)||tl(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=s,s.constructor=u),(p||v)&&(f("delete"),f("has"),n&&f("get")),(v||h)&&f(i),o&&s.clear&&delete s.clear}c[t]=u,qf({global:!0,constructor:!0,forced:u!=a},c),sl(u,t),o||r.setStrong(u,t,n)})("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Tl);var Cl=R,Il=mn,Ll=ms,Nl=Y,Rl=Cl("".charAt),Dl=Cl("".charCodeAt),Fl=Cl("".slice),zl=function(t){return function(e,r){var n,o,i=Ll(Nl(e)),a=Il(r),s=i.length;return a<0||a>=s?t?"":void 0:(n=Dl(i,a))<55296||n>56319||a+1===s||(o=Dl(i,a+1))<56320||o>57343?t?Rl(i,a):n:t?Fl(i,a,a+2):o-56320+(n-55296<<10)+65536}},Zl={codeAt:zl(!1),charAt:zl(!0)}.charAt,Bl=ms,Ul=Br,Gl=sc,Vl=uc,Wl="String Iterator",$l=Ul.set,Hl=Ul.getterFor(Wl);Gl(String,"String",(function(t){$l(this,{type:Wl,string:Bl(t),index:0})}),(function(){var t,e=Hl(this),r=e.string,n=e.index;return n>=r.length?Vl(void 0,!0):(t=Zl(r,n),e.index+=t.length,Vl(t,!1))}));var ql=g,Yl=Mi,Kl=Ti,Xl=wc,Jl=ar,Ql=de,th=Ql("iterator"),eh=Ql("toStringTag"),rh=Xl.values,nh=function(t,e){if(t){if(t[th]!==rh)try{Jl(t,th,rh)}catch(e){t[th]=rh}if(t[eh]||Jl(t,eh,e),Yl[e])for(var r in Xl)if(t[r]!==Xl[r])try{Jl(t,r,Xl[r])}catch(e){t[r]=Xl[r]}}};for(var oh in Yl)nh(ql[oh]&&ql[oh].prototype,oh);nh(Kl,"DOMTokenList");var ih=Ct,ah=Xt,sh=W,uh=Sn,ch=TypeError,fh=function(t){return function(e,r,n,o){ih(r);var i=ah(e),a=sh(i),s=uh(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 ch("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}},lh={left:fh(!1),right:fh(!0)},hh="undefined"!=typeof process&&"process"==Z(process),ph=lh.left;ho({target:"Array",proto:!0,forced:!hh&&mt>79&&mt<83||!Ii("reduce")},{reduce:function(t){var e=arguments.length;return ph(this,t,e,e>1?arguments[1]:void 0)}});var dh=ho,vh=b,mh=Oo,gh=it,yh=Xt,bh=Sn,wh=Ns,kh=zs,Oh=Jo,xh=fi,Sh=mt,Eh=de("isConcatSpreadable"),Ah=Sh>=51||!vh((function(){var t=[];return t[Eh]=!1,t.concat()[0]!==t})),Ph=function(t){if(!gh(t))return!1;var e=t[Eh];return void 0!==e?!!e:mh(t)};dh({target:"Array",proto:!0,arity:1,forced:!Ah||!xh("concat")},{concat:function(t){var e,r,n,o,i,a=yh(this),s=Oh(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Ph(i=-1===e?a:arguments[e]))for(o=bh(i),wh(u+o),r=0;r<o;r++,u++)r in i&&kh(s,u,i[r]);else wh(u+1),kh(s,u++,i);return s.length=u,s}});var Mh=g,jh=R(1..valueOf),_h=Y,Th=ms,Ch="\t\n\v\f\r \u2028\u2029\ufeff",Ih=R("".replace),Lh=RegExp("^["+Ch+"]+"),Nh=RegExp("(^|[^"+Ch+"])["+Ch+"]+$"),Rh=function(t){return function(e){var r=Th(_h(e));return 1&t&&(r=Ih(r,Lh,"")),2&t&&(r=Ih(r,Nh,"$1")),r}},Dh={start:Rh(1),end:Rh(2),trim:Rh(3)},Fh=ho,zh=w,Zh=g,Bh=Mh,Uh=R,Gh=oo,Vh=te,Wh=Hf,$h=ct,Hh=At,qh=Oe,Yh=b,Kh=hn.f,Xh=y.f,Jh=Be.f,Qh=jh,tp=Dh.trim,ep="Number",rp=Zh[ep];Bh[ep];var np=rp.prototype,op=Zh.TypeError,ip=Uh("".slice),ap=Uh("".charCodeAt),sp=function(t){var e,r,n,o,i,a,s,u,c=qh(t,"number");if(Hh(c))throw op("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=tp(c),43===(e=ap(c,0))||45===e){if(88===(r=ap(c,2))||120===r)return NaN}else if(48===e){switch(ap(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=ip(c,2)).length,s=0;s<a;s++)if((u=ap(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c},up=Gh(ep,!rp(" 0o1")||!rp("0b1")||rp("+0x1")),cp=function(t){var e,r=arguments.length<1?0:rp(function(t){var e=qh(t,"number");return"bigint"==typeof e?e:sp(e)}(t));return $h(np,e=this)&&Yh((function(){Qh(e)}))?Wh(Object(r),this,cp):r};cp.prototype=np,up&&(np.constructor=cp),Fh({global:!0,constructor:!0,wrap:!0,forced:up},{Number:cp});up&&function(t,e){for(var r,n=zh?Kh(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)Vh(e,r=n[o])&&!Vh(t,r)&&Jh(t,r,Xh(e,r))}(Bh[ep],rp);var fp=n((function t(r,n){e(this,t),this.markers={sum:r.length};var o=n.map((function(t){return t.count})),i=o.reduce((function(t,e){return t+e}),0);this.clusters={count:n.length,markers:{mean:i/n.length,sum:i,min:Math.min.apply(Math,f(o)),max:Math.max.apply(Math,f(o))}}})),lp=function(){function t(){e(this,t)}return n(t,[{key:"render",value:function(t,e,r){var n=t.count,o=t.position,i=n>Math.max(10,e.clusters.markers.mean)?"#ff0000":"#0000ff",a='<svg fill="'.concat(i,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">').concat(n,"</text>\n</svg>"),s="Cluster of ".concat(n," markers"),u=Number(google.maps.Marker.MAX_ZINDEX)+n;if(mi.isAdvancedMarkerAvailable(r)){var c=document.createElement("div");c.innerHTML=a;var f=c.firstElementChild;f.setAttribute("transform","translate(0 25)");var l={map:r,position:o,zIndex:u,title:s,content:f};return new google.maps.marker.AdvancedMarkerElement(l)}var h={position:o,zIndex:u,title:s,icon:{url:"data:image/svg+xml;base64,".concat(btoa(a)),anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(h)}}]),t}();var hp,pp=n((function t(){e(this,t),function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)}));t.MarkerClustererEvents=void 0,(hp=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",hp.CLUSTERING_END="clusteringend",hp.CLUSTER_CLICK="click";var dp=function(t,e,r){r.fitBounds(e.bounds)},vp=function(r){o(a,r);var i=u(a);function a(t){var r,n=t.map,o=t.markers,s=void 0===o?[]:o,u=t.algorithmOptions,c=void 0===u?{}:u,l=t.algorithm,h=void 0===l?new _a(c):l,p=t.renderer,d=void 0===p?new lp:p,v=t.onClusterClick,m=void 0===v?dp:v;return e(this,a),(r=i.call(this)).markers=f(s),r.clusters=[],r.algorithm=h,r.renderer=d,r.onClusterClick=m,n&&r.setMap(n),r}return n(a,[{key:"addMarker",value:function(t,e){this.markers.includes(t)||(this.markers.push(t),e||this.render())}},{key:"addMarkers",value:function(t,e){var r=this;t.forEach((function(t){r.addMarker(t,!0)})),e||this.render()}},{key:"removeMarker",value:function(t,e){var r=this.markers.indexOf(t);return-1!==r&&(mi.setMap(t,null),this.markers.splice(r,1),e||this.render(),!0)}},{key:"removeMarkers",value:function(t,e){var r=this,n=!1;return t.forEach((function(t){n=r.removeMarker(t,!0)||n})),n&&!e&&this.render(),n}},{key:"clearMarkers",value:function(t){this.markers.length=0,t||this.render()}},{key:"render",value:function(){var e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_BEGIN,this);var r=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=r.clusters,o=r.changed;if(o||null==o){var i,a=new Set,s=p(n);try{for(s.s();!(i=s.n()).done;){var u=i.value;1==u.markers.length&&a.add(u.markers[0])}}catch(t){s.e(t)}finally{s.f()}var c,f=[],l=p(this.clusters);try{for(l.s();!(c=l.n()).done;){var h=c.value;null!=h.marker&&(1==h.markers.length?a.has(h.marker)||mi.setMap(h.marker,null):f.push(h.marker))}}catch(t){l.e(t)}finally{l.f()}this.clusters=n,this.renderClusters(),requestAnimationFrame((function(){return f.forEach((function(t){return mi.setMap(t,null)}))}))}google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_END,this)}}},{key:"onAdd",value:function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}},{key:"onRemove",value:function(){google.maps.event.removeListener(this.idleListener),this.reset()}},{key:"reset",value:function(){this.markers.forEach((function(t){return mi.setMap(t,null)})),this.clusters.forEach((function(t){return t.delete()})),this.clusters=[]}},{key:"renderClusters",value:function(){var e=this,r=new fp(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(o){1===o.markers.length?o.marker=o.markers[0]:(o.marker=e.renderer.render(o,r,n),o.markers.forEach((function(t){return mi.setMap(t,null)})),e.onClusterClick&&o.marker.addListener("click",(function(r){google.maps.event.trigger(e,t.MarkerClustererEvents.CLUSTER_CLICK,o),e.onClusterClick(r,o,n)}))),mi.setMap(o.marker,n)}))}}]),a}(pp);return t.AbstractAlgorithm=Ei,t.AbstractViewportAlgorithm=Ai,t.Cluster=gi,t.ClusterStats=fp,t.DefaultRenderer=lp,t.GridAlgorithm=$i,t.MarkerClusterer=vp,t.NoopAlgorithm=Hi,t.SuperClusterAlgorithm=_a,t.SuperClusterViewportAlgorithm=Ta,t.defaultOnClusterClickHandler=dp,t.distanceBetweenPoints=ki,t.extendBoundsToPaddedViewport=bi,t.extendPixelBounds=xi,t.filterMarkersToPaddedViewport=yi,t.getPaddedViewport=wi,t.noop=Pi,t.pixelBoundsToLatLngBounds=Si,Object.defineProperty(t,"__esModule",{value:!0}),t}({}); | ||
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;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,"symbol"==typeof(i=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"))?i:String(i)),n)}var o,i}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=i(t);if(e){var o=i(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s(this,r)}}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var m=function(t){return t&&t.Math===Math&&t},g=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof d&&d)||function(){return this}()||d||Function("return this")(),y={},b=function(t){try{return!!t()}catch(t){return!0}},w=!b((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),k=!b((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),O=k,x=Function.prototype.call,S=O?x.bind(x):function(){return x.apply(x,arguments)},E={},A={}.propertyIsEnumerable,P=Object.getOwnPropertyDescriptor,M=P&&!A.call({1:2},1);E.f=M?function(t){var e=P(this,t);return!!e&&e.enumerable}:A;var j,_,T=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},C=k,I=Function.prototype,L=I.call,N=C&&I.bind.bind(L,L),R=C?N:function(t){return function(){return L.apply(t,arguments)}},D=R,F=D({}.toString),z=D("".slice),Z=function(t){return z(F(t),8,-1)},B=b,U=Z,G=Object,V=R("".split),W=B((function(){return!G("z").propertyIsEnumerable(0)}))?function(t){return"String"===U(t)?V(t,""):G(t)}:G,$=function(t){return null==t},H=$,q=TypeError,Y=function(t){if(H(t))throw q("Can't call method on "+t);return t},K=W,X=Y,J=function(t){return K(X(t))},Q="object"==typeof document&&document.all,tt={all:Q,IS_HTMLDDA:void 0===Q&&void 0!==Q},et=tt.all,rt=tt.IS_HTMLDDA?function(t){return"function"==typeof t||t===et}:function(t){return"function"==typeof t},nt=rt,ot=tt.all,it=tt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:nt(t)||t===ot}:function(t){return"object"==typeof t?null!==t:nt(t)},at=g,st=rt,ut=function(t,e){return arguments.length<2?(r=at[t],st(r)?r:void 0):at[t]&&at[t][e];var r},ct=R({}.isPrototypeOf),ft=g,lt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ht=ft.process,pt=ft.Deno,dt=ht&&ht.versions||pt&&pt.version,vt=dt&&dt.v8;vt&&(_=(j=vt.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!_&<&&(!(j=lt.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=lt.match(/Chrome\/(\d+)/))&&(_=+j[1]);var mt=_,gt=mt,yt=b,bt=g.String,wt=!!Object.getOwnPropertySymbols&&!yt((function(){var t=Symbol("symbol detection");return!bt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&>&><41})),kt=wt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=ut,xt=rt,St=ct,Et=Object,At=kt?function(t){return"symbol"==typeof t}:function(t){var e=Ot("Symbol");return xt(e)&&St(e.prototype,Et(t))},Pt=String,Mt=function(t){try{return Pt(t)}catch(t){return"Object"}},jt=rt,_t=Mt,Tt=TypeError,Ct=function(t){if(jt(t))return t;throw Tt(_t(t)+" is not a function")},It=Ct,Lt=$,Nt=function(t,e){var r=t[e];return Lt(r)?void 0:It(r)},Rt=S,Dt=rt,Ft=it,zt=TypeError,Zt={exports:{}},Bt=g,Ut=Object.defineProperty,Gt=function(t,e){try{Ut(Bt,t,{value:e,configurable:!0,writable:!0})}catch(r){Bt[t]=e}return e},Vt=Gt,Wt="__core-js_shared__",$t=g[Wt]||Vt(Wt,{}),Ht=$t;(Zt.exports=function(t,e){return Ht[t]||(Ht[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"});var qt=Zt.exports,Yt=Y,Kt=Object,Xt=function(t){return Kt(Yt(t))},Jt=Xt,Qt=R({}.hasOwnProperty),te=Object.hasOwn||function(t,e){return Qt(Jt(t),e)},ee=R,re=0,ne=Math.random(),oe=ee(1..toString),ie=function(t){return"Symbol("+(void 0===t?"":t)+")_"+oe(++re+ne,36)},ae=qt,se=te,ue=ie,ce=wt,fe=kt,le=g.Symbol,he=ae("wks"),pe=fe?le.for||le:le&&le.withoutSetter||ue,de=function(t){return se(he,t)||(he[t]=ce&&se(le,t)?le[t]:pe("Symbol."+t)),he[t]},ve=S,me=it,ge=At,ye=Nt,be=function(t,e){var r,n;if("string"===e&&Dt(r=t.toString)&&!Ft(n=Rt(r,t)))return n;if(Dt(r=t.valueOf)&&!Ft(n=Rt(r,t)))return n;if("string"!==e&&Dt(r=t.toString)&&!Ft(n=Rt(r,t)))return n;throw zt("Can't convert object to primitive value")},we=TypeError,ke=de("toPrimitive"),Oe=function(t,e){if(!me(t)||ge(t))return t;var r,n=ye(t,ke);if(n){if(void 0===e&&(e="default"),r=ve(n,t,e),!me(r)||ge(r))return r;throw we("Can't convert object to primitive value")}return void 0===e&&(e="number"),be(t,e)},xe=Oe,Se=At,Ee=function(t){var e=xe(t,"string");return Se(e)?e:e+""},Ae=it,Pe=g.document,Me=Ae(Pe)&&Ae(Pe.createElement),je=function(t){return Me?Pe.createElement(t):{}},_e=je,Te=!w&&!b((function(){return 7!==Object.defineProperty(_e("div"),"a",{get:function(){return 7}}).a})),Ce=w,Ie=S,Le=E,Ne=T,Re=J,De=Ee,Fe=te,ze=Te,Ze=Object.getOwnPropertyDescriptor;y.f=Ce?Ze:function(t,e){if(t=Re(t),e=De(e),ze)try{return Ze(t,e)}catch(t){}if(Fe(t,e))return Ne(!Ie(Le.f,t,e),t[e])};var Be={},Ue=w&&b((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ge=it,Ve=String,We=TypeError,$e=function(t){if(Ge(t))return t;throw We(Ve(t)+" is not an object")},He=w,qe=Te,Ye=Ue,Ke=$e,Xe=Ee,Je=TypeError,Qe=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,er="enumerable",rr="configurable",nr="writable";Be.f=He?Ye?function(t,e,r){if(Ke(t),e=Xe(e),Ke(r),"function"==typeof t&&"prototype"===e&&"value"in r&&nr in r&&!r[nr]){var n=tr(t,e);n&&n[nr]&&(t[e]=r.value,r={configurable:rr in r?r[rr]:n[rr],enumerable:er in r?r[er]:n[er],writable:!1})}return Qe(t,e,r)}:Qe:function(t,e,r){if(Ke(t),e=Xe(e),Ke(r),qe)try{return Qe(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 or=Be,ir=T,ar=w?function(t,e,r){return or.f(t,e,ir(1,r))}:function(t,e,r){return t[e]=r,t},sr={exports:{}},ur=w,cr=te,fr=Function.prototype,lr=ur&&Object.getOwnPropertyDescriptor,hr=cr(fr,"name"),pr={EXISTS:hr,PROPER:hr&&"something"===function(){}.name,CONFIGURABLE:hr&&(!ur||ur&&lr(fr,"name").configurable)},dr=rt,vr=$t,mr=R(Function.toString);dr(vr.inspectSource)||(vr.inspectSource=function(t){return mr(t)});var gr,yr,br,wr=vr.inspectSource,kr=rt,Or=g.WeakMap,xr=kr(Or)&&/native code/.test(String(Or)),Sr=ie,Er=qt("keys"),Ar=function(t){return Er[t]||(Er[t]=Sr(t))},Pr={},Mr=xr,jr=g,_r=it,Tr=ar,Cr=te,Ir=$t,Lr=Ar,Nr=Pr,Rr="Object already initialized",Dr=jr.TypeError,Fr=jr.WeakMap;if(Mr||Ir.state){var zr=Ir.state||(Ir.state=new Fr);zr.get=zr.get,zr.has=zr.has,zr.set=zr.set,gr=function(t,e){if(zr.has(t))throw Dr(Rr);return e.facade=t,zr.set(t,e),e},yr=function(t){return zr.get(t)||{}},br=function(t){return zr.has(t)}}else{var Zr=Lr("state");Nr[Zr]=!0,gr=function(t,e){if(Cr(t,Zr))throw Dr(Rr);return e.facade=t,Tr(t,Zr,e),e},yr=function(t){return Cr(t,Zr)?t[Zr]:{}},br=function(t){return Cr(t,Zr)}}var Br={set:gr,get:yr,has:br,enforce:function(t){return br(t)?yr(t):gr(t,{})},getterFor:function(t){return function(e){var r;if(!_r(e)||(r=yr(e)).type!==t)throw Dr("Incompatible receiver, "+t+" required");return r}}},Ur=R,Gr=b,Vr=rt,Wr=te,$r=w,Hr=pr.CONFIGURABLE,qr=wr,Yr=Br.enforce,Kr=Br.get,Xr=String,Jr=Object.defineProperty,Qr=Ur("".slice),tn=Ur("".replace),en=Ur([].join),rn=$r&&!Gr((function(){return 8!==Jr((function(){}),"length",{value:8}).length})),nn=String(String).split("String"),on=sr.exports=function(t,e,r){"Symbol("===Qr(Xr(e),0,7)&&(e="["+tn(Xr(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Wr(t,"name")||Hr&&t.name!==e)&&($r?Jr(t,"name",{value:e,configurable:!0}):t.name=e),rn&&r&&Wr(r,"arity")&&t.length!==r.arity&&Jr(t,"length",{value:r.arity});try{r&&Wr(r,"constructor")&&r.constructor?$r&&Jr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Yr(t);return Wr(n,"source")||(n.source=en(nn,"string"==typeof e?e:"")),t};Function.prototype.toString=on((function(){return Vr(this)&&Kr(this).source||qr(this)}),"toString");var an=sr.exports,sn=rt,un=Be,cn=an,fn=Gt,ln=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(sn(r)&&cn(r,i,n),n.global)o?t[e]=r:fn(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:un.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},hn={},pn=Math.ceil,dn=Math.floor,vn=Math.trunc||function(t){var e=+t;return(e>0?dn:pn)(e)},mn=function(t){var e=+t;return e!=e||0===e?0:vn(e)},gn=mn,yn=Math.max,bn=Math.min,wn=function(t,e){var r=gn(t);return r<0?yn(r+e,0):bn(r,e)},kn=mn,On=Math.min,xn=function(t){return t>0?On(kn(t),9007199254740991):0},Sn=function(t){return xn(t.length)},En=J,An=wn,Pn=Sn,Mn=function(t){return function(e,r,n){var o,i=En(e),a=Pn(i),s=An(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}},jn={includes:Mn(!0),indexOf:Mn(!1)},_n=te,Tn=J,Cn=jn.indexOf,In=Pr,Ln=R([].push),Nn=function(t,e){var r,n=Tn(t),o=0,i=[];for(r in n)!_n(In,r)&&_n(n,r)&&Ln(i,r);for(;e.length>o;)_n(n,r=e[o++])&&(~Cn(i,r)||Ln(i,r));return i},Rn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dn=Nn,Fn=Rn.concat("length","prototype");hn.f=Object.getOwnPropertyNames||function(t){return Dn(t,Fn)};var zn={};zn.f=Object.getOwnPropertySymbols;var Zn=ut,Bn=hn,Un=zn,Gn=$e,Vn=R([].concat),Wn=Zn("Reflect","ownKeys")||function(t){var e=Bn.f(Gn(t)),r=Un.f;return r?Vn(e,r(t)):e},$n=te,Hn=Wn,qn=y,Yn=Be,Kn=b,Xn=rt,Jn=/#|\.prototype\./,Qn=function(t,e){var r=eo[to(t)];return r===no||r!==ro&&(Xn(e)?Kn(e):!!e)},to=Qn.normalize=function(t){return String(t).replace(Jn,".").toLowerCase()},eo=Qn.data={},ro=Qn.NATIVE="N",no=Qn.POLYFILL="P",oo=Qn,io=g,ao=y.f,so=ar,uo=ln,co=Gt,fo=function(t,e,r){for(var n=Hn(e),o=Yn.f,i=qn.f,a=0;a<n.length;a++){var s=n[a];$n(t,s)||r&&$n(r,s)||o(t,s,i(e,s))}},lo=oo,ho=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?io:c?io[s]||co(s,{}):(io[s]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=ao(r,n))&&a.value:r[n],!lo(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;fo(i,o)}(t.sham||o&&o.sham)&&so(i,"sham",!0),uo(r,n,i,t)}},po=Z,vo=R,mo=function(t){if("Function"===po(t))return vo(t)},go=Ct,yo=k,bo=mo(mo.bind),wo=function(t,e){return go(t),void 0===e?t:yo?bo(t,e):function(){return t.apply(e,arguments)}},ko=Z,Oo=Array.isArray||function(t){return"Array"===ko(t)},xo={};xo[de("toStringTag")]="z";var So="[object z]"===String(xo),Eo=So,Ao=rt,Po=Z,Mo=de("toStringTag"),jo=Object,_o="Arguments"===Po(function(){return arguments}()),To=Eo?Po:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=jo(t),Mo))?r:_o?Po(e):"Object"===(n=Po(e))&&Ao(e.callee)?"Arguments":n},Co=R,Io=b,Lo=rt,No=To,Ro=wr,Do=function(){},Fo=[],zo=ut("Reflect","construct"),Zo=/^\s*(?:class|function)\b/,Bo=Co(Zo.exec),Uo=!Zo.exec(Do),Go=function(t){if(!Lo(t))return!1;try{return zo(Do,Fo,t),!0}catch(t){return!1}},Vo=function(t){if(!Lo(t))return!1;switch(No(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Uo||!!Bo(Zo,Ro(t))}catch(t){return!0}};Vo.sham=!0;var Wo=!zo||Io((function(){var t;return Go(Go.call)||!Go(Object)||!Go((function(){t=!0}))||t}))?Vo:Go,$o=Oo,Ho=Wo,qo=it,Yo=de("species"),Ko=Array,Xo=function(t){var e;return $o(t)&&(e=t.constructor,(Ho(e)&&(e===Ko||$o(e.prototype))||qo(e)&&null===(e=e[Yo]))&&(e=void 0)),void 0===e?Ko:e},Jo=function(t,e){return new(Xo(t))(0===e?0:e)},Qo=wo,ti=W,ei=Xt,ri=Sn,ni=Jo,oi=R([].push),ii=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,s=5===t||i;return function(u,c,f,l){for(var h,p,d=ei(u),v=ti(d),m=Qo(c,f),g=ri(v),y=0,b=l||ni,w=e?b(u,g):r||a?b(u,0):void 0;g>y;y++)if((s||y in v)&&(p=m(h=v[y],y,d),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return y;case 2:oi(w,h)}else switch(t){case 4:return!1;case 7:oi(w,h)}return i?-1:n||o?o:w}},ai={forEach:ii(0),map:ii(1),filter:ii(2),some:ii(3),every:ii(4),find:ii(5),findIndex:ii(6),filterReject:ii(7)},si=b,ui=mt,ci=de("species"),fi=function(t){return ui>=51||!si((function(){var e=[];return(e.constructor={})[ci]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},li=ai.map;function hi(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);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}ho({target:"Array",proto:!0,forced:!fi("map")},{map:function(t){return li(this,t,arguments.length>1?arguments[1]:void 0)}});var pi=ai.filter;ho({target:"Array",proto:!0,forced:!fi("filter")},{filter:function(t){return pi(this,t,arguments.length>1?arguments[1]:void 0)}});var di=To,vi=So?{}.toString:function(){return"[object "+di(this)+"]"};So||ln(Object.prototype,"toString",vi,{unsafe:!0});var mi=function(){function t(){e(this,t)}return n(t,null,[{key:"isAdvancedMarkerAvailable",value:function(t){return google.maps.marker&&!0===t.getMapCapabilities().isAdvancedMarkersAvailable}},{key:"isAdvancedMarker",value:function(t){return google.maps.marker&&t instanceof google.maps.marker.AdvancedMarkerElement}},{key:"setMap",value:function(t,e){this.isAdvancedMarker(t)?t.map=e:t.setMap(e)}},{key:"getPosition",value:function(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(t.position.lat&&t.position.lng)return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}},{key:"getVisible",value:function(t){return!!this.isAdvancedMarker(t)||t.getVisible()}}]),t}(),gi=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){var t,e=new google.maps.LatLngBounds(this._position,this._position),r=p(this.markers);try{for(r.s();!(t=r.n()).done;){var n=t.value;e.extend(mi.getPosition(n))}}catch(t){r.e(t)}finally{r.f()}return e}}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(t){return mi.getVisible(t)})).length}},{key:"push",value:function(t){this.markers.push(t)}},{key:"delete",value:function(){this.marker&&(mi.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}]),t}(),yi=function(t,e,r,n){var o=bi(t.getBounds(),e,n);return r.filter((function(t){return o.contains(mi.getPosition(t))}))},bi=function(t,e,r){var n=Oi(t,e),o=n.northEast,i=n.southWest,a=xi({northEast:o,southWest:i},r);return Si(a,e)},wi=function(t,e,r){var n=bi(t,e,r),o=n.getNorthEast(),i=n.getSouthWest();return[i.lng(),i.lat(),o.lng(),o.lat()]},ki=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),i=Math.sin(n/2),a=o*o+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*i*i;return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))},Oi=function(t,e){return{northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}},xi=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}},Si=function(t,e){var r=t.northEast,n=t.southWest,o=e.fromDivPixelToLatLng(n),i=e.fromDivPixelToLatLng(r);return new google.maps.LatLngBounds(o,i)},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 Pi(e)}}]),t}(),Ai=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=hi(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}),changed:!1}:{clusters:this.cluster({markers:yi(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}]),i}(Ei),Pi=function(t){return t.map((function(t){return new gi({position:mi.getPosition(t),markers:[t]})}))},Mi={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},ji=je("span").classList,_i=ji&&ji.constructor&&ji.constructor.prototype,Ti=_i===Object.prototype?void 0:_i,Ci=b,Ii=function(t,e){var r=[][t];return!!r&&Ci((function(){r.call(null,e||function(){return 1},1)}))},Li=ai.forEach,Ni=Ii("forEach")?[].forEach:function(t){return Li(this,t,arguments.length>1?arguments[1]:void 0)},Ri=g,Di=Mi,Fi=Ti,zi=Ni,Zi=ar,Bi=function(t){if(t&&t.forEach!==zi)try{Zi(t,"forEach",zi)}catch(e){t.forEach=zi}};for(var Ui in Di)Di[Ui]&&Bi(Ri[Ui]&&Ri[Ui].prototype);Bi(Fi);var Gi=S;ho({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Gi(URL.prototype.toString,this)}});var Vi=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=v(Vi),$i=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=hi(t,["maxDistance","gridSize"]);return(n=r.call(this,c)).clusters=[],n.state={zoom:-1},n.maxDistance=a,n.gridSize=u,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=!Wi(this.state,o)),this.state=o,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e}),changed:i}:{clusters:this.cluster({markers:yi(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;i<this.clusters.length;i++){var a=this.clusters[i],s=ki(a.bounds.getCenter().toJSON(),mi.getPosition(t).toJSON());s<n&&(n=s,o=a)}if(o&&bi(o.bounds,r,this.gridSize).contains(mi.getPosition(t)))o.push(t);else{var u=new gi({markers:[t]});this.clusters.push(u)}}}]),i}(Ai),Hi=function(t){o(i,t);var r=u(i);function i(t){e(this,i);var n=hi(t,[]);return r.call(this,n)}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return{clusters:this.cluster({markers:e,map:r,mapCanvasProjection:n}),changed:!1}}},{key:"cluster",value:function(t){return this.noop(t)}}]),i}(Ei),qi=Nn,Yi=Rn,Ki=Object.keys||function(t){return qi(t,Yi)},Xi=w,Ji=R,Qi=S,ta=b,ea=Ki,ra=zn,na=E,oa=Xt,ia=W,aa=Object.assign,sa=Object.defineProperty,ua=Ji([].concat),ca=!aa||ta((function(){if(Xi&&1!==aa({b:1},aa(sa({},"a",{enumerable:!0,get:function(){sa(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!==aa({},t)[r]||ea(aa({},e)).join("")!==n}))?function(t,e){for(var r=oa(t),n=arguments.length,o=1,i=ra.f,a=na.f;n>o;)for(var s,u=ia(arguments[o++]),c=i?ua(ea(u),i(u)):ea(u),f=c.length,l=0;f>l;)s=c[l++],Xi&&!Qi(a,u,s)||(r[s]=u[s]);return r}:aa,fa=ca;ho({target:"Object",stat:!0,arity:2,forced:Object.assign!==fa},{assign:fa});const la=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class ha{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[e,r]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const n=r>>4;if(1!==n)throw new Error(`Got v${n} data when expected v1.`);const o=la[15&r];if(!o)throw new Error("Unrecognized array type.");const[i]=new Uint16Array(t,2,1),[a]=new Uint32Array(t,4,1);return new ha(a,i,o,t)}constructor(t,e=64,r=Float64Array,n){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const o=la.indexOf(this.ArrayType),i=2*t*this.ArrayType.BYTES_PER_ELEMENT,a=t*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-a%8)%8;if(o<0)throw new Error(`Unexpected typed array class: ${r}.`);n&&n instanceof ArrayBuffer?(this.data=n,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+s,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+i+a+s),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+s,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return pa(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:i,nodeSize:a}=this,s=[0,o.length-1,0],u=[];for(;s.length;){const c=s.pop()||0,f=s.pop()||0,l=s.pop()||0;if(f-l<=a){for(let a=l;a<=f;a++){const s=i[2*a],c=i[2*a+1];s>=t&&s<=r&&c>=e&&c<=n&&u.push(o[a])}continue}const h=l+f>>1,p=i[2*h],d=i[2*h+1];p>=t&&p<=r&&d>=e&&d<=n&&u.push(o[h]),(0===c?t<=p:e<=d)&&(s.push(l),s.push(h-1),s.push(1-c)),(0===c?r>=p:n>=d)&&(s.push(h+1),s.push(f),s.push(1-c))}return u}within(t,e,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:o,nodeSize:i}=this,a=[0,n.length-1,0],s=[],u=r*r;for(;a.length;){const c=a.pop()||0,f=a.pop()||0,l=a.pop()||0;if(f-l<=i){for(let r=l;r<=f;r++)ga(o[2*r],o[2*r+1],t,e)<=u&&s.push(n[r]);continue}const h=l+f>>1,p=o[2*h],d=o[2*h+1];ga(p,d,t,e)<=u&&s.push(n[h]),(0===c?t-r<=p:e-r<=d)&&(a.push(l),a.push(h-1),a.push(1-c)),(0===c?t+r>=p:e+r>=d)&&(a.push(h+1),a.push(f),a.push(1-c))}return s}}function pa(t,e,r,n,o,i){if(o-n<=r)return;const a=n+o>>1;da(t,e,a,n,o,i),pa(t,e,r,n,a-1,1-i),pa(t,e,r,a+1,o,1-i)}function da(t,e,r,n,o,i){for(;o>n;){if(o-n>600){const a=o-n+1,s=r-n+1,u=Math.log(a),c=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*c*(a-c)/a)*(s-a/2<0?-1:1);da(t,e,r,Math.max(n,Math.floor(r-s*c/a+f)),Math.min(o,Math.floor(r+(a-s)*c/a+f)),i)}const a=e[2*r+i];let s=n,u=o;for(va(t,e,n,r),e[2*o+i]>a&&va(t,e,n,o);s<u;){for(va(t,e,s,u),s++,u--;e[2*s+i]<a;)s++;for(;e[2*u+i]>a;)u--}e[2*n+i]===a?va(t,e,n,u):(u++,va(t,e,u,o)),u<=r&&(n=u+1),r<=u&&(o=u-1)}}function va(t,e,r,n){ma(t,r,n),ma(e,2*r,2*n),ma(e,2*r+1,2*n+1)}function ma(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function ga(t,e,r,n){const o=t-r,i=e-n;return o*o+i*i}const ya={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},ba=Math.fround||(wa=new Float32Array(1),t=>(wa[0]=+t,wa[0]));var wa;const ka=3,Oa=5,xa=6;class Sa{constructor(t){this.options=Object.assign(Object.create(ya),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:r,maxZoom:n}=this.options;e&&console.time("total time");const o=`prepare ${t.length} points`;e&&console.time(o),this.points=t;const i=[];for(let e=0;e<t.length;e++){const r=t[e];if(!r.geometry)continue;const[n,o]=r.geometry.coordinates,a=ba(Pa(n)),s=ba(Ma(o));i.push(a,s,1/0,e,-1,1),this.options.reduce&&i.push(0)}let a=this.trees[n+1]=this._createTree(i);e&&console.timeEnd(o);for(let t=n;t>=r;t--){const r=+Date.now();a=this.trees[t]=this._createTree(this._cluster(a,t)),e&&console.log("z%d: %d clusters in %dms",t,a.numItems,+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(Pa(r),Ma(i),Pa(o),Ma(n)),u=a.data,c=[];for(const t of s){const e=this.stride*t;c.push(u[e+Oa]>1?Ea(u,e,this.clusterProps):this.points[u[e+ka]])}return c}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.data;if(e*this.stride>=i.length)throw new Error(n);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=i[e*this.stride],u=i[e*this.stride+1],c=o.within(s,u,a),f=[];for(const e of c){const r=e*this.stride;i[r+4]===t&&f.push(i[r+Oa]>1?Ea(i,r,this.clusterProps):this.points[i[r+ka]])}if(0===f.length)throw new Error(n);return f}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.data,e,r,o,f),0===e&&this._addTileFeatures(n.range(1-s/o,u,1,c),n.data,o,r,o,f),e===o-1&&this._addTileFeatures(n.range(0,u,s/o,c),n.data,-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):o<n?o++:t.push(e),t.length===r)break}return o}_createTree(t){const e=new ha(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)e.add(t[r],t[r+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,r,n,o,i){for(const a of t){const t=a*this.stride,s=e[t+Oa]>1;let u,c,f;if(s)u=Aa(e,t,this.clusterProps),c=e[t],f=e[t+1];else{const r=this.points[e[t+ka]];u=r.properties;const[n,o]=r.geometry.coordinates;c=Pa(n),f=Ma(o)}const l={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(f*o-n))]],tags:u};let h;h=s||this.options.generateId?e[t+ka]:this.points[e[t+ka]].id,void 0!==h&&(l.id=h),i.features.push(l)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const{radius:r,extent:n,reduce:o,minPoints:i}=this.options,a=r/(n*Math.pow(2,e)),s=t.data,u=[],c=this.stride;for(let r=0;r<s.length;r+=c){if(s[r+2]<=e)continue;s[r+2]=e;const n=s[r],f=s[r+1],l=t.within(s[r],s[r+1],a),h=s[r+Oa];let p=h;for(const t of l){const r=t*c;s[r+2]>e&&(p+=s[r+Oa])}if(p>h&&p>=i){let t,i=n*h,a=f*h,d=-1;const v=((r/c|0)<<5)+(e+1)+this.points.length;for(const n of l){const u=n*c;if(s[u+2]<=e)continue;s[u+2]=e;const f=s[u+Oa];i+=s[u]*f,a+=s[u+1]*f,s[u+4]=v,o&&(t||(t=this._map(s,r,!0),d=this.clusterProps.length,this.clusterProps.push(t)),o(t,this._map(s,u)))}s[r+4]=v,u.push(i/p,a/p,1/0,v,-1,p),o&&u.push(d)}else{for(let t=0;t<c;t++)u.push(s[r+t]);if(p>1)for(const t of l){const r=t*c;if(!(s[r+2]<=e)){s[r+2]=e;for(let t=0;t<c;t++)u.push(s[r+t])}}}}return u}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,r){if(t[e+Oa]>1){const n=this.clusterProps[t[e+xa]];return r?Object.assign({},n):n}const n=this.points[t[e+ka]].properties,o=this.options.map(n);return r&&o===n?Object.assign({},o):o}}function Ea(t,e,r){return{type:"Feature",id:t[e+ka],properties:Aa(t,e,r),geometry:{type:"Point",coordinates:[(n=t[e],360*(n-.5)),ja(t[e+1])]}};var n}function Aa(t,e,r){const n=t[e+Oa],o=n>=1e4?`${Math.round(n/1e3)}k`:n>=1e3?Math.round(n/100)/10+"k":n,i=t[e+xa],a=-1===i?{}:Object.assign({},r[i]);return Object.assign(a,{cluster:!0,cluster_id:t[e+ka],point_count:n,point_count_abbreviated:o})}function Pa(t){return t/360+.5}function Ma(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 ja(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}var _a=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=hi(t,["maxZoom","radius"]);return(n=r.call(this,{maxZoom:o})).state={zoom:-1},n.superCluster=new Sa(Object.assign({maxZoom:n.maxZoom,radius:s},u)),n}return n(i,[{key:"calculate",value:function(t){var e=!1,r={zoom:t.map.getZoom()};if(!Wi(t.markers,this.markers)){e=!0,this.markers=f(t.markers);var n=this.markers.map((function(t){var e=mi.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(n)}return e||(this.state.zoom<=this.maxZoom||r.zoom<=this.maxZoom)&&(e=!Wi(this.state,r)),this.state=r,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}},{key:"cluster",value:function(t){var e=this,r=t.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(r.getZoom())).map((function(t){return e.transformCluster(t)}))}},{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 gi({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:{lat:n,lng:r}});var i=o.marker;return new gi({markers:[i],position:mi.getPosition(i)})}}]),i}(Ei),Ta=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=t.viewportPadding,c=void 0===u?60:u,f=hi(t,["maxZoom","radius","viewportPadding"]);return(n=r.call(this,{maxZoom:o,viewportPadding:c})).superCluster=new Sa(Object.assign({maxZoom:n.maxZoom,radius:s},f)),n.state={zoom:-1,view:[0,0,0,0]},n}return n(i,[{key:"calculate",value:function(t){var e={zoom:Math.round(t.map.getZoom()),view:wi(t.map.getBounds(),t.mapCanvasProjection,this.viewportPadding)},r=!Wi(this.state,e);if(!Wi(t.markers,this.markers)){r=!0,this.markers=f(t.markers);var n=this.markers.map((function(t){var e=mi.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(n)}return r&&(this.clusters=this.cluster(t),this.state=e),{clusters:this.clusters,changed:r}}},{key:"cluster",value:function(t){var e=this,r=t.map,n=t.mapCanvasProjection,o={zoom:Math.round(r.getZoom()),view:wi(r.getBounds(),n,this.viewportPadding)};return this.superCluster.getClusters(o.view,o.zoom).map((function(t){return e.transformCluster(t)}))}},{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 gi({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:{lat:n,lng:r}});var i=o.marker;return new gi({markers:[i],position:mi.getPosition(i)})}}]),i}(Ai),Ca={},Ia=w,La=Ue,Na=Be,Ra=$e,Da=J,Fa=Ki;Ca.f=Ia&&!La?Object.defineProperties:function(t,e){Ra(t);for(var r,n=Da(e),o=Fa(e),i=o.length,a=0;i>a;)Na.f(t,r=o[a++],n[r]);return t};var za,Za=ut("document","documentElement"),Ba=$e,Ua=Ca,Ga=Rn,Va=Pr,Wa=Za,$a=je,Ha="prototype",qa="script",Ya=Ar("IE_PROTO"),Ka=function(){},Xa=function(t){return"<"+qa+">"+t+"</"+qa+">"},Ja=function(t){t.write(Xa("")),t.close();var e=t.parentWindow.Object;return t=null,e},Qa=function(){try{za=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Qa="undefined"!=typeof document?document.domain&&za?Ja(za):(e=$a("iframe"),r="java"+qa+":",e.style.display="none",Wa.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Xa("document.F=Object")),t.close(),t.F):Ja(za);for(var n=Ga.length;n--;)delete Qa[Ha][Ga[n]];return Qa()};Va[Ya]=!0;var ts=Object.create||function(t,e){var r;return null!==t?(Ka[Ha]=Ba(t),r=new Ka,Ka[Ha]=null,r[Ya]=t):r=Qa(),void 0===e?r:Ua.f(r,e)},es=de,rs=ts,ns=Be.f,os=es("unscopables"),is=Array.prototype;void 0===is[os]&&ns(is,os,{configurable:!0,value:rs(null)});var as=function(t){is[os][t]=!0},ss=jn.includes,us=as;ho({target:"Array",proto:!0,forced:b((function(){return!Array(1).includes()}))},{includes:function(t){return ss(this,t,arguments.length>1?arguments[1]:void 0)}}),us("includes");var cs=it,fs=Z,ls=de("match"),hs=function(t){var e;return cs(t)&&(void 0!==(e=t[ls])?!!e:"RegExp"===fs(t))},ps=TypeError,ds=To,vs=String,ms=function(t){if("Symbol"===ds(t))throw TypeError("Cannot convert a Symbol value to a string");return vs(t)},gs=de("match"),ys=ho,bs=function(t){if(hs(t))throw ps("The method doesn't accept regular expressions");return t},ws=Y,ks=ms,Os=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[gs]=!1,"/./"[t](e)}catch(t){}}return!1},xs=R("".indexOf);ys({target:"String",proto:!0,forced:!Os("includes")},{includes:function(t){return!!~xs(ks(ws(this)),ks(bs(t)),arguments.length>1?arguments[1]:void 0)}});var Ss=ho,Es=jn.indexOf,As=Ii,Ps=mo([].indexOf),Ms=!!Ps&&1/Ps([1],1,-0)<0;Ss({target:"Array",proto:!0,forced:Ms||!As("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Ms?Ps(this,t,e)||0:Es(this,t,e)}});var js=w,_s=Oo,Ts=TypeError,Cs=Object.getOwnPropertyDescriptor,Is=js&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Ls=TypeError,Ns=function(t){if(t>9007199254740991)throw Ls("Maximum allowed index exceeded");return t},Rs=Ee,Ds=Be,Fs=T,zs=function(t,e,r){var n=Rs(e);n in t?Ds.f(t,n,Fs(0,r)):t[n]=r},Zs=Mt,Bs=TypeError,Us=ho,Gs=Xt,Vs=wn,Ws=mn,$s=Sn,Hs=Is?function(t,e){if(_s(t)&&!Cs(t,"length").writable)throw Ts("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},qs=Ns,Ys=Jo,Ks=zs,Xs=function(t,e){if(!delete t[e])throw Bs("Cannot delete property "+Zs(e)+" of "+Zs(t))},Js=fi("splice"),Qs=Math.max,tu=Math.min;Us({target:"Array",proto:!0,forced:!Js},{splice:function(t,e){var r,n,o,i,a,s,u=Gs(this),c=$s(u),f=Vs(t,c),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=c-f):(r=l-2,n=tu(Qs(Ws(e),0),c-f)),qs(c+r-n),o=Ys(u,n),i=0;i<n;i++)(a=f+i)in u&&Ks(o,i,u[a]);if(o.length=n,r<n){for(i=f;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Xs(u,s);for(i=c;i>c-n+r;i--)Xs(u,i-1)}else if(r>n)for(i=c-n;i>f;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Xs(u,s);for(i=0;i<r;i++)u[i+f]=arguments[i+2];return Hs(u,c-n+r),o}});var eu,ru,nu,ou={},iu=!b((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),au=te,su=rt,uu=Xt,cu=iu,fu=Ar("IE_PROTO"),lu=Object,hu=lu.prototype,pu=cu?lu.getPrototypeOf:function(t){var e=uu(t);if(au(e,fu))return e[fu];var r=e.constructor;return su(r)&&e instanceof r?r.prototype:e instanceof lu?hu:null},du=b,vu=rt,mu=it,gu=pu,yu=ln,bu=de("iterator"),wu=!1;[].keys&&("next"in(nu=[].keys())?(ru=gu(gu(nu)))!==Object.prototype&&(eu=ru):wu=!0);var ku=!mu(eu)||du((function(){var t={};return eu[bu].call(t)!==t}));ku&&(eu={}),vu(eu[bu])||yu(eu,bu,(function(){return this}));var Ou={IteratorPrototype:eu,BUGGY_SAFARI_ITERATORS:wu},xu=Be.f,Su=te,Eu=de("toStringTag"),Au=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Su(t,Eu)&&xu(t,Eu,{configurable:!0,value:e})},Pu=Ou.IteratorPrototype,Mu=ts,ju=T,_u=Au,Tu=ou,Cu=function(){return this},Iu=R,Lu=Ct,Nu=rt,Ru=String,Du=TypeError,Fu=function(t,e,r){try{return Iu(Lu(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},zu=$e,Zu=function(t){if("object"==typeof t||Nu(t))return t;throw Du("Can't set "+Ru(t)+" as a prototype")},Bu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Fu(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return zu(r),Zu(n),e?t(r,n):r.__proto__=n,r}}():void 0),Uu=ho,Gu=S,Vu=rt,Wu=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Mu(Pu,{next:ju(+!n,r)}),_u(t,o,!1),Tu[o]=Cu,t},$u=pu,Hu=Bu,qu=Au,Yu=ar,Ku=ln,Xu=ou,Ju=pr.PROPER,Qu=pr.CONFIGURABLE,tc=Ou.IteratorPrototype,ec=Ou.BUGGY_SAFARI_ITERATORS,rc=de("iterator"),nc="keys",oc="values",ic="entries",ac=function(){return this},sc=function(t,e,r,n,o,i,a){Wu(r,e,n);var s,u,c,f=function(t){if(t===o&&v)return v;if(!ec&&t in p)return p[t];switch(t){case nc:case oc:case ic:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,d=p[rc]||p["@@iterator"]||o&&p[o],v=!ec&&d||f(o),m="Array"===e&&p.entries||d;if(m&&(s=$u(m.call(new t)))!==Object.prototype&&s.next&&($u(s)!==tc&&(Hu?Hu(s,tc):Vu(s[rc])||Ku(s,rc,ac)),qu(s,l,!0)),Ju&&o===oc&&d&&d.name!==oc&&(Qu?Yu(p,"name",oc):(h=!0,v=function(){return Gu(d,this)})),o)if(u={values:f(oc),keys:i?v:f(nc),entries:f(ic)},a)for(c in u)(ec||h||!(c in p))&&Ku(p,c,u[c]);else Uu({target:e,proto:!0,forced:ec||h},u);return p[rc]!==v&&Ku(p,rc,v,{name:o}),Xu[e]=v,u},uc=function(t,e){return{value:t,done:e}},cc=J,fc=as,lc=ou,hc=Br,pc=Be.f,dc=sc,vc=uc,mc=w,gc="Array Iterator",yc=hc.set,bc=hc.getterFor(gc),wc=dc(Array,"Array",(function(t,e){yc(this,{type:gc,target:cc(t),index:0,kind:e})}),(function(){var t=bc(this),e=t.target,r=t.kind,n=t.index++;if(!e||n>=e.length)return t.target=void 0,vc(void 0,!0);switch(r){case"keys":return vc(n,!1);case"values":return vc(e[n],!1)}return vc([n,e[n]],!1)}),"values"),kc=lc.Arguments=lc.Array;if(fc("keys"),fc("values"),fc("entries"),mc&&"values"!==kc.name)try{pc(kc,"name",{value:"values"})}catch(t){}var Oc={exports:{}},xc={},Sc=wn,Ec=Sn,Ac=zs,Pc=Array,Mc=Math.max,jc=Z,_c=J,Tc=hn.f,Cc=function(t,e,r){for(var n=Ec(t),o=Sc(e,n),i=Sc(void 0===r?n:r,n),a=Pc(Mc(i-o,0)),s=0;o<i;o++,s++)Ac(a,s,t[o]);return a.length=s,a},Ic="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];xc.f=function(t){return Ic&&"Window"===jc(t)?function(t){try{return Tc(t)}catch(t){return Cc(Ic)}}(t):Tc(_c(t))};var Lc=b((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Nc=b,Rc=it,Dc=Z,Fc=Lc,zc=Object.isExtensible,Zc=Nc((function(){zc(1)}))||Fc?function(t){return!!Rc(t)&&((!Fc||"ArrayBuffer"!==Dc(t))&&(!zc||zc(t)))}:zc,Bc=!b((function(){return Object.isExtensible(Object.preventExtensions({}))})),Uc=ho,Gc=R,Vc=Pr,Wc=it,$c=te,Hc=Be.f,qc=hn,Yc=xc,Kc=Zc,Xc=Bc,Jc=!1,Qc=ie("meta"),tf=0,ef=function(t){Hc(t,Qc,{value:{objectID:"O"+tf++,weakData:{}}})},rf=Oc.exports={enable:function(){rf.enable=function(){},Jc=!0;var t=qc.f,e=Gc([].splice),r={};r[Qc]=1,t(r).length&&(qc.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===Qc){e(n,o,1);break}return n},Uc({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Yc.f}))},fastKey:function(t,e){if(!Wc(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!$c(t,Qc)){if(!Kc(t))return"F";if(!e)return"E";ef(t)}return t[Qc].objectID},getWeakData:function(t,e){if(!$c(t,Qc)){if(!Kc(t))return!0;if(!e)return!1;ef(t)}return t[Qc].weakData},onFreeze:function(t){return Xc&&Jc&&Kc(t)&&!$c(t,Qc)&&ef(t),t}};Vc[Qc]=!0;var nf=Oc.exports,of=ou,af=de("iterator"),sf=Array.prototype,uf=To,cf=Nt,ff=$,lf=ou,hf=de("iterator"),pf=function(t){if(!ff(t))return cf(t,hf)||cf(t,"@@iterator")||lf[uf(t)]},df=S,vf=Ct,mf=$e,gf=Mt,yf=pf,bf=TypeError,wf=S,kf=$e,Of=Nt,xf=wo,Sf=S,Ef=$e,Af=Mt,Pf=function(t){return void 0!==t&&(of.Array===t||sf[af]===t)},Mf=Sn,jf=ct,_f=function(t,e){var r=arguments.length<2?yf(t):e;if(vf(r))return mf(df(r,t));throw bf(gf(t)+" is not iterable")},Tf=pf,Cf=function(t,e,r){var n,o;kf(t);try{if(!(n=Of(t,"return"))){if("throw"===e)throw r;return r}n=wf(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return kf(n),r},If=TypeError,Lf=function(t,e){this.stopped=t,this.result=e},Nf=Lf.prototype,Rf=function(t,e,r){var n,o,i,a,s,u,c,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=xf(e,f),m=function(t){return n&&Cf(n,"normal",t),new Lf(!0,t)},g=function(t){return l?(Ef(t),d?v(t[0],t[1],m):v(t[0],t[1])):d?v(t,m):v(t)};if(h)n=t.iterator;else if(p)n=t;else{if(!(o=Tf(t)))throw If(Af(t)+" is not iterable");if(Pf(o)){for(i=0,a=Mf(t);a>i;i++)if((s=g(t[i]))&&jf(Nf,s))return s;return new Lf(!1)}n=_f(t,o)}for(u=h?t.next:n.next;!(c=Sf(u,n)).done;){try{s=g(c.value)}catch(t){Cf(n,"throw",t)}if("object"==typeof s&&s&&jf(Nf,s))return s}return new Lf(!1)},Df=ct,Ff=TypeError,zf=function(t,e){if(Df(e,t))return t;throw Ff("Incorrect invocation")},Zf=de("iterator"),Bf=!1;try{var Uf=0,Gf={next:function(){return{done:!!Uf++}},return:function(){Bf=!0}};Gf[Zf]=function(){return this},Array.from(Gf,(function(){throw 2}))}catch(t){}var Vf=rt,Wf=it,$f=Bu,Hf=function(t,e,r){var n,o;return $f&&Vf(n=e.constructor)&&n!==r&&Wf(o=n.prototype)&&o!==r.prototype&&$f(t,o),t},qf=ho,Yf=g,Kf=R,Xf=oo,Jf=ln,Qf=nf,tl=Rf,el=zf,rl=rt,nl=$,ol=it,il=b,al=function(t,e){if(!e&&!Bf)return!1;var r=!1;try{var n={};n[Zf]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},sl=Au,ul=Hf,cl=an,fl=Be,ll=function(t,e,r){return r.get&&cl(r.get,e,{getter:!0}),r.set&&cl(r.set,e,{setter:!0}),fl.f(t,e,r)},hl=ln,pl=ut,dl=ll,vl=w,ml=de("species"),gl=ts,yl=ll,bl=function(t,e,r){for(var n in e)hl(t,n,e[n],r);return t},wl=wo,kl=zf,Ol=$,xl=Rf,Sl=sc,El=uc,Al=function(t){var e=pl(t);vl&&e&&!e[ml]&&dl(e,ml,{configurable:!0,get:function(){return this}})},Pl=w,Ml=nf.fastKey,jl=Br.set,_l=Br.getterFor,Tl={getConstructor:function(t,e,r,n){var o=t((function(t,o){kl(t,i),jl(t,{type:e,index:gl(null),first:void 0,last:void 0,size:0}),Pl||(t.size=0),Ol(o)||xl(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,a=_l(e),s=function(t,e,r){var n,o,i=a(t),s=u(t,e);return s?s.value=r:(i.last=s={index:o=Ml(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),Pl?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},u=function(t,e){var r,n=a(t),o=Ml(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return bl(i,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,Pl?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=u(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),Pl?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=wl(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),bl(i,r?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),Pl&&yl(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=_l(e),i=_l(n);Sl(t,e,(function(t,e){jl(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?El("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=void 0,El(void 0,!0))}),r?"entries":"values",!r,!0),Al(e)}};(function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",a=Yf[t],s=a&&a.prototype,u=a,c={},f=function(t){var e=Kf(s[t]);Jf(s,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!ol(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!ol(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!ol(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(Xf(t,!rl(a)||!(o||s.forEach&&!il((function(){(new a).entries().next()})))))u=r.getConstructor(e,t,n,i),Qf.enable();else if(Xf(t,!0)){var l=new u,h=l[i](o?{}:-0,1)!==l,p=il((function(){l.has(1)})),d=al((function(t){new a(t)})),v=!o&&il((function(){for(var t=new a,e=5;e--;)t[i](e,e);return!t.has(-0)}));d||((u=e((function(t,e){el(t,s);var r=ul(new a,t,u);return nl(e)||tl(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=s,s.constructor=u),(p||v)&&(f("delete"),f("has"),n&&f("get")),(v||h)&&f(i),o&&s.clear&&delete s.clear}c[t]=u,qf({global:!0,constructor:!0,forced:u!==a},c),sl(u,t),o||r.setStrong(u,t,n)})("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Tl);var Cl=R,Il=mn,Ll=ms,Nl=Y,Rl=Cl("".charAt),Dl=Cl("".charCodeAt),Fl=Cl("".slice),zl=function(t){return function(e,r){var n,o,i=Ll(Nl(e)),a=Il(r),s=i.length;return a<0||a>=s?t?"":void 0:(n=Dl(i,a))<55296||n>56319||a+1===s||(o=Dl(i,a+1))<56320||o>57343?t?Rl(i,a):n:t?Fl(i,a,a+2):o-56320+(n-55296<<10)+65536}},Zl={codeAt:zl(!1),charAt:zl(!0)}.charAt,Bl=ms,Ul=Br,Gl=sc,Vl=uc,Wl="String Iterator",$l=Ul.set,Hl=Ul.getterFor(Wl);Gl(String,"String",(function(t){$l(this,{type:Wl,string:Bl(t),index:0})}),(function(){var t,e=Hl(this),r=e.string,n=e.index;return n>=r.length?Vl(void 0,!0):(t=Zl(r,n),e.index+=t.length,Vl(t,!1))}));var ql=g,Yl=Mi,Kl=Ti,Xl=wc,Jl=ar,Ql=de,th=Ql("iterator"),eh=Ql("toStringTag"),rh=Xl.values,nh=function(t,e){if(t){if(t[th]!==rh)try{Jl(t,th,rh)}catch(e){t[th]=rh}if(t[eh]||Jl(t,eh,e),Yl[e])for(var r in Xl)if(t[r]!==Xl[r])try{Jl(t,r,Xl[r])}catch(e){t[r]=Xl[r]}}};for(var oh in Yl)nh(ql[oh]&&ql[oh].prototype,oh);nh(Kl,"DOMTokenList");var ih=Ct,ah=Xt,sh=W,uh=Sn,ch=TypeError,fh=function(t){return function(e,r,n,o){ih(r);var i=ah(e),a=sh(i),s=uh(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 ch("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}},lh={left:fh(!1),right:fh(!0)},hh="process"===Z(g.process),ph=lh.left;ho({target:"Array",proto:!0,forced:!hh&&mt>79&&mt<83||!Ii("reduce")},{reduce:function(t){var e=arguments.length;return ph(this,t,e,e>1?arguments[1]:void 0)}});var dh=ho,vh=b,mh=Oo,gh=it,yh=Xt,bh=Sn,wh=Ns,kh=zs,Oh=Jo,xh=fi,Sh=mt,Eh=de("isConcatSpreadable"),Ah=Sh>=51||!vh((function(){var t=[];return t[Eh]=!1,t.concat()[0]!==t})),Ph=function(t){if(!gh(t))return!1;var e=t[Eh];return void 0!==e?!!e:mh(t)};dh({target:"Array",proto:!0,arity:1,forced:!Ah||!xh("concat")},{concat:function(t){var e,r,n,o,i,a=yh(this),s=Oh(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Ph(i=-1===e?a:arguments[e]))for(o=bh(i),wh(u+o),r=0;r<o;r++,u++)r in i&&kh(s,u,i[r]);else wh(u+1),kh(s,u++,i);return s.length=u,s}});var Mh=g,jh=R(1..valueOf),_h=Y,Th=ms,Ch="\t\n\v\f\r \u2028\u2029\ufeff",Ih=R("".replace),Lh=RegExp("^["+Ch+"]+"),Nh=RegExp("(^|[^"+Ch+"])["+Ch+"]+$"),Rh=function(t){return function(e){var r=Th(_h(e));return 1&t&&(r=Ih(r,Lh,"")),2&t&&(r=Ih(r,Nh,"$1")),r}},Dh={start:Rh(1),end:Rh(2),trim:Rh(3)},Fh=ho,zh=w,Zh=g,Bh=Mh,Uh=R,Gh=oo,Vh=te,Wh=Hf,$h=ct,Hh=At,qh=Oe,Yh=b,Kh=hn.f,Xh=y.f,Jh=Be.f,Qh=jh,tp=Dh.trim,ep="Number",rp=Zh[ep];Bh[ep];var np=rp.prototype,op=Zh.TypeError,ip=Uh("".slice),ap=Uh("".charCodeAt),sp=function(t){var e,r,n,o,i,a,s,u,c=qh(t,"number");if(Hh(c))throw op("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=tp(c),43===(e=ap(c,0))||45===e){if(88===(r=ap(c,2))||120===r)return NaN}else if(48===e){switch(ap(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=ip(c,2)).length,s=0;s<a;s++)if((u=ap(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c},up=Gh(ep,!rp(" 0o1")||!rp("0b1")||rp("+0x1")),cp=function(t){var e,r=arguments.length<1?0:rp(function(t){var e=qh(t,"number");return"bigint"==typeof e?e:sp(e)}(t));return $h(np,e=this)&&Yh((function(){Qh(e)}))?Wh(Object(r),this,cp):r};cp.prototype=np,up&&(np.constructor=cp),Fh({global:!0,constructor:!0,wrap:!0,forced:up},{Number:cp});up&&function(t,e){for(var r,n=zh?Kh(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)Vh(e,r=n[o])&&!Vh(t,r)&&Jh(t,r,Xh(e,r))}(Bh[ep],rp);var fp=n((function t(r,n){e(this,t),this.markers={sum:r.length};var o=n.map((function(t){return t.count})),i=o.reduce((function(t,e){return t+e}),0);this.clusters={count:n.length,markers:{mean:i/n.length,sum:i,min:Math.min.apply(Math,f(o)),max:Math.max.apply(Math,f(o))}}})),lp=function(){function t(){e(this,t)}return n(t,[{key:"render",value:function(t,e,r){var n=t.count,o=t.position,i=n>Math.max(10,e.clusters.markers.mean)?"#ff0000":"#0000ff",a='<svg fill="'.concat(i,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">').concat(n,"</text>\n</svg>"),s="Cluster of ".concat(n," markers"),u=Number(google.maps.Marker.MAX_ZINDEX)+n;if(mi.isAdvancedMarkerAvailable(r)){var c=(new DOMParser).parseFromString(a,"image/svg+xml").documentElement;c.setAttribute("transform","translate(0 25)");var f={map:r,position:o,zIndex:u,title:s,content:c};return new google.maps.marker.AdvancedMarkerElement(f)}var l={position:o,zIndex:u,title:s,icon:{url:"data:image/svg+xml;base64,".concat(btoa(a)),anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(l)}}]),t}();var hp,pp=n((function t(){e(this,t),function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)}));t.MarkerClustererEvents=void 0,(hp=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",hp.CLUSTERING_END="clusteringend",hp.CLUSTER_CLICK="click";var dp=function(t,e,r){r.fitBounds(e.bounds)},vp=function(r){o(a,r);var i=u(a);function a(t){var r,n=t.map,o=t.markers,s=void 0===o?[]:o,u=t.algorithmOptions,c=void 0===u?{}:u,l=t.algorithm,h=void 0===l?new _a(c):l,p=t.renderer,d=void 0===p?new lp:p,v=t.onClusterClick,m=void 0===v?dp:v;return e(this,a),(r=i.call(this)).markers=f(s),r.clusters=[],r.algorithm=h,r.renderer=d,r.onClusterClick=m,n&&r.setMap(n),r}return n(a,[{key:"addMarker",value:function(t,e){this.markers.includes(t)||(this.markers.push(t),e||this.render())}},{key:"addMarkers",value:function(t,e){var r=this;t.forEach((function(t){r.addMarker(t,!0)})),e||this.render()}},{key:"removeMarker",value:function(t,e){var r=this.markers.indexOf(t);return-1!==r&&(mi.setMap(t,null),this.markers.splice(r,1),e||this.render(),!0)}},{key:"removeMarkers",value:function(t,e){var r=this,n=!1;return t.forEach((function(t){n=r.removeMarker(t,!0)||n})),n&&!e&&this.render(),n}},{key:"clearMarkers",value:function(t){this.markers.length=0,t||this.render()}},{key:"render",value:function(){var e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_BEGIN,this);var r=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=r.clusters,o=r.changed;if(o||null==o){var i,a=new Set,s=p(n);try{for(s.s();!(i=s.n()).done;){var u=i.value;1==u.markers.length&&a.add(u.markers[0])}}catch(t){s.e(t)}finally{s.f()}var c,f=[],l=p(this.clusters);try{for(l.s();!(c=l.n()).done;){var h=c.value;null!=h.marker&&(1==h.markers.length?a.has(h.marker)||mi.setMap(h.marker,null):f.push(h.marker))}}catch(t){l.e(t)}finally{l.f()}this.clusters=n,this.renderClusters(),requestAnimationFrame((function(){return f.forEach((function(t){return mi.setMap(t,null)}))}))}google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_END,this)}}},{key:"onAdd",value:function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}},{key:"onRemove",value:function(){google.maps.event.removeListener(this.idleListener),this.reset()}},{key:"reset",value:function(){this.markers.forEach((function(t){return mi.setMap(t,null)})),this.clusters.forEach((function(t){return t.delete()})),this.clusters=[]}},{key:"renderClusters",value:function(){var e=this,r=new fp(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(o){1===o.markers.length?o.marker=o.markers[0]:(o.marker=e.renderer.render(o,r,n),o.markers.forEach((function(t){return mi.setMap(t,null)})),e.onClusterClick&&o.marker.addListener("click",(function(r){google.maps.event.trigger(e,t.MarkerClustererEvents.CLUSTER_CLICK,o),e.onClusterClick(r,o,n)}))),mi.setMap(o.marker,n)}))}}]),a}(pp);return t.AbstractAlgorithm=Ei,t.AbstractViewportAlgorithm=Ai,t.Cluster=gi,t.ClusterStats=fp,t.DefaultRenderer=lp,t.GridAlgorithm=$i,t.MarkerClusterer=vp,t.NoopAlgorithm=Hi,t.SuperClusterAlgorithm=_a,t.SuperClusterViewportAlgorithm=Ta,t.defaultOnClusterClickHandler=dp,t.distanceBetweenPoints=ki,t.extendBoundsToPaddedViewport=bi,t.extendPixelBounds=xi,t.filterMarkersToPaddedViewport=yi,t.getPaddedViewport=wi,t.noop=Pi,t.pixelBoundsToLatLngBounds=Si,Object.defineProperty(t,"__esModule",{value:!0}),t}({}); | ||
//# sourceMappingURL=index.min.js.map |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).markerClusterer={})}(this,(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;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,"symbol"==typeof(i=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"))?i:String(i)),n)}var o,i}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=i(t);if(e){var o=i(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s(this,r)}}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var m=function(t){return t&&t.Math==Math&&t},g=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof d&&d)||function(){return this}()||d||Function("return this")(),y={},b=function(t){try{return!!t()}catch(t){return!0}},w=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),k=!b((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),O=k,x=Function.prototype.call,S=O?x.bind(x):function(){return x.apply(x,arguments)},E={},A={}.propertyIsEnumerable,P=Object.getOwnPropertyDescriptor,M=P&&!A.call({1:2},1);E.f=M?function(t){var e=P(this,t);return!!e&&e.enumerable}:A;var j,_,T=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},C=k,I=Function.prototype,L=I.call,N=C&&I.bind.bind(L,L),R=C?N:function(t){return function(){return L.apply(t,arguments)}},D=R,F=D({}.toString),z=D("".slice),Z=function(t){return z(F(t),8,-1)},B=b,U=Z,G=Object,V=R("".split),W=B((function(){return!G("z").propertyIsEnumerable(0)}))?function(t){return"String"==U(t)?V(t,""):G(t)}:G,$=function(t){return null==t},H=$,q=TypeError,Y=function(t){if(H(t))throw q("Can't call method on "+t);return t},K=W,X=Y,J=function(t){return K(X(t))},Q="object"==typeof document&&document.all,tt={all:Q,IS_HTMLDDA:void 0===Q&&void 0!==Q},et=tt.all,rt=tt.IS_HTMLDDA?function(t){return"function"==typeof t||t===et}:function(t){return"function"==typeof t},nt=rt,ot=tt.all,it=tt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:nt(t)||t===ot}:function(t){return"object"==typeof t?null!==t:nt(t)},at=g,st=rt,ut=function(t,e){return arguments.length<2?(r=at[t],st(r)?r:void 0):at[t]&&at[t][e];var r},ct=R({}.isPrototypeOf),ft=g,lt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ht=ft.process,pt=ft.Deno,dt=ht&&ht.versions||pt&&pt.version,vt=dt&&dt.v8;vt&&(_=(j=vt.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!_&<&&(!(j=lt.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=lt.match(/Chrome\/(\d+)/))&&(_=+j[1]);var mt=_,gt=mt,yt=b,bt=g.String,wt=!!Object.getOwnPropertySymbols&&!yt((function(){var t=Symbol();return!bt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&>&><41})),kt=wt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=ut,xt=rt,St=ct,Et=Object,At=kt?function(t){return"symbol"==typeof t}:function(t){var e=Ot("Symbol");return xt(e)&&St(e.prototype,Et(t))},Pt=String,Mt=function(t){try{return Pt(t)}catch(t){return"Object"}},jt=rt,_t=Mt,Tt=TypeError,Ct=function(t){if(jt(t))return t;throw Tt(_t(t)+" is not a function")},It=Ct,Lt=$,Nt=function(t,e){var r=t[e];return Lt(r)?void 0:It(r)},Rt=S,Dt=rt,Ft=it,zt=TypeError,Zt={exports:{}},Bt=g,Ut=Object.defineProperty,Gt=function(t,e){try{Ut(Bt,t,{value:e,configurable:!0,writable:!0})}catch(r){Bt[t]=e}return e},Vt=Gt,Wt="__core-js_shared__",$t=g[Wt]||Vt(Wt,{}),Ht=$t;(Zt.exports=function(t,e){return Ht[t]||(Ht[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.31.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"});var qt=Zt.exports,Yt=Y,Kt=Object,Xt=function(t){return Kt(Yt(t))},Jt=Xt,Qt=R({}.hasOwnProperty),te=Object.hasOwn||function(t,e){return Qt(Jt(t),e)},ee=R,re=0,ne=Math.random(),oe=ee(1..toString),ie=function(t){return"Symbol("+(void 0===t?"":t)+")_"+oe(++re+ne,36)},ae=qt,se=te,ue=ie,ce=wt,fe=kt,le=g.Symbol,he=ae("wks"),pe=fe?le.for||le:le&&le.withoutSetter||ue,de=function(t){return se(he,t)||(he[t]=ce&&se(le,t)?le[t]:pe("Symbol."+t)),he[t]},ve=S,me=it,ge=At,ye=Nt,be=function(t,e){var r,n;if("string"===e&&Dt(r=t.toString)&&!Ft(n=Rt(r,t)))return n;if(Dt(r=t.valueOf)&&!Ft(n=Rt(r,t)))return n;if("string"!==e&&Dt(r=t.toString)&&!Ft(n=Rt(r,t)))return n;throw zt("Can't convert object to primitive value")},we=TypeError,ke=de("toPrimitive"),Oe=function(t,e){if(!me(t)||ge(t))return t;var r,n=ye(t,ke);if(n){if(void 0===e&&(e="default"),r=ve(n,t,e),!me(r)||ge(r))return r;throw we("Can't convert object to primitive value")}return void 0===e&&(e="number"),be(t,e)},xe=Oe,Se=At,Ee=function(t){var e=xe(t,"string");return Se(e)?e:e+""},Ae=it,Pe=g.document,Me=Ae(Pe)&&Ae(Pe.createElement),je=function(t){return Me?Pe.createElement(t):{}},_e=je,Te=!w&&!b((function(){return 7!=Object.defineProperty(_e("div"),"a",{get:function(){return 7}}).a})),Ce=w,Ie=S,Le=E,Ne=T,Re=J,De=Ee,Fe=te,ze=Te,Ze=Object.getOwnPropertyDescriptor;y.f=Ce?Ze:function(t,e){if(t=Re(t),e=De(e),ze)try{return Ze(t,e)}catch(t){}if(Fe(t,e))return Ne(!Ie(Le.f,t,e),t[e])};var Be={},Ue=w&&b((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ge=it,Ve=String,We=TypeError,$e=function(t){if(Ge(t))return t;throw We(Ve(t)+" is not an object")},He=w,qe=Te,Ye=Ue,Ke=$e,Xe=Ee,Je=TypeError,Qe=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,er="enumerable",rr="configurable",nr="writable";Be.f=He?Ye?function(t,e,r){if(Ke(t),e=Xe(e),Ke(r),"function"==typeof t&&"prototype"===e&&"value"in r&&nr in r&&!r[nr]){var n=tr(t,e);n&&n[nr]&&(t[e]=r.value,r={configurable:rr in r?r[rr]:n[rr],enumerable:er in r?r[er]:n[er],writable:!1})}return Qe(t,e,r)}:Qe:function(t,e,r){if(Ke(t),e=Xe(e),Ke(r),qe)try{return Qe(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 or=Be,ir=T,ar=w?function(t,e,r){return or.f(t,e,ir(1,r))}:function(t,e,r){return t[e]=r,t},sr={exports:{}},ur=w,cr=te,fr=Function.prototype,lr=ur&&Object.getOwnPropertyDescriptor,hr=cr(fr,"name"),pr={EXISTS:hr,PROPER:hr&&"something"===function(){}.name,CONFIGURABLE:hr&&(!ur||ur&&lr(fr,"name").configurable)},dr=rt,vr=$t,mr=R(Function.toString);dr(vr.inspectSource)||(vr.inspectSource=function(t){return mr(t)});var gr,yr,br,wr=vr.inspectSource,kr=rt,Or=g.WeakMap,xr=kr(Or)&&/native code/.test(String(Or)),Sr=ie,Er=qt("keys"),Ar=function(t){return Er[t]||(Er[t]=Sr(t))},Pr={},Mr=xr,jr=g,_r=it,Tr=ar,Cr=te,Ir=$t,Lr=Ar,Nr=Pr,Rr="Object already initialized",Dr=jr.TypeError,Fr=jr.WeakMap;if(Mr||Ir.state){var zr=Ir.state||(Ir.state=new Fr);zr.get=zr.get,zr.has=zr.has,zr.set=zr.set,gr=function(t,e){if(zr.has(t))throw Dr(Rr);return e.facade=t,zr.set(t,e),e},yr=function(t){return zr.get(t)||{}},br=function(t){return zr.has(t)}}else{var Zr=Lr("state");Nr[Zr]=!0,gr=function(t,e){if(Cr(t,Zr))throw Dr(Rr);return e.facade=t,Tr(t,Zr,e),e},yr=function(t){return Cr(t,Zr)?t[Zr]:{}},br=function(t){return Cr(t,Zr)}}var Br={set:gr,get:yr,has:br,enforce:function(t){return br(t)?yr(t):gr(t,{})},getterFor:function(t){return function(e){var r;if(!_r(e)||(r=yr(e)).type!==t)throw Dr("Incompatible receiver, "+t+" required");return r}}},Ur=R,Gr=b,Vr=rt,Wr=te,$r=w,Hr=pr.CONFIGURABLE,qr=wr,Yr=Br.enforce,Kr=Br.get,Xr=String,Jr=Object.defineProperty,Qr=Ur("".slice),tn=Ur("".replace),en=Ur([].join),rn=$r&&!Gr((function(){return 8!==Jr((function(){}),"length",{value:8}).length})),nn=String(String).split("String"),on=sr.exports=function(t,e,r){"Symbol("===Qr(Xr(e),0,7)&&(e="["+tn(Xr(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Wr(t,"name")||Hr&&t.name!==e)&&($r?Jr(t,"name",{value:e,configurable:!0}):t.name=e),rn&&r&&Wr(r,"arity")&&t.length!==r.arity&&Jr(t,"length",{value:r.arity});try{r&&Wr(r,"constructor")&&r.constructor?$r&&Jr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Yr(t);return Wr(n,"source")||(n.source=en(nn,"string"==typeof e?e:"")),t};Function.prototype.toString=on((function(){return Vr(this)&&Kr(this).source||qr(this)}),"toString");var an=sr.exports,sn=rt,un=Be,cn=an,fn=Gt,ln=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(sn(r)&&cn(r,i,n),n.global)o?t[e]=r:fn(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:un.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},hn={},pn=Math.ceil,dn=Math.floor,vn=Math.trunc||function(t){var e=+t;return(e>0?dn:pn)(e)},mn=function(t){var e=+t;return e!=e||0===e?0:vn(e)},gn=mn,yn=Math.max,bn=Math.min,wn=function(t,e){var r=gn(t);return r<0?yn(r+e,0):bn(r,e)},kn=mn,On=Math.min,xn=function(t){return t>0?On(kn(t),9007199254740991):0},Sn=function(t){return xn(t.length)},En=J,An=wn,Pn=Sn,Mn=function(t){return function(e,r,n){var o,i=En(e),a=Pn(i),s=An(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}},jn={includes:Mn(!0),indexOf:Mn(!1)},_n=te,Tn=J,Cn=jn.indexOf,In=Pr,Ln=R([].push),Nn=function(t,e){var r,n=Tn(t),o=0,i=[];for(r in n)!_n(In,r)&&_n(n,r)&&Ln(i,r);for(;e.length>o;)_n(n,r=e[o++])&&(~Cn(i,r)||Ln(i,r));return i},Rn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dn=Nn,Fn=Rn.concat("length","prototype");hn.f=Object.getOwnPropertyNames||function(t){return Dn(t,Fn)};var zn={};zn.f=Object.getOwnPropertySymbols;var Zn=ut,Bn=hn,Un=zn,Gn=$e,Vn=R([].concat),Wn=Zn("Reflect","ownKeys")||function(t){var e=Bn.f(Gn(t)),r=Un.f;return r?Vn(e,r(t)):e},$n=te,Hn=Wn,qn=y,Yn=Be,Kn=b,Xn=rt,Jn=/#|\.prototype\./,Qn=function(t,e){var r=eo[to(t)];return r==no||r!=ro&&(Xn(e)?Kn(e):!!e)},to=Qn.normalize=function(t){return String(t).replace(Jn,".").toLowerCase()},eo=Qn.data={},ro=Qn.NATIVE="N",no=Qn.POLYFILL="P",oo=Qn,io=g,ao=y.f,so=ar,uo=ln,co=Gt,fo=function(t,e,r){for(var n=Hn(e),o=Yn.f,i=qn.f,a=0;a<n.length;a++){var s=n[a];$n(t,s)||r&&$n(r,s)||o(t,s,i(e,s))}},lo=oo,ho=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?io:c?io[s]||co(s,{}):(io[s]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=ao(r,n))&&a.value:r[n],!lo(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;fo(i,o)}(t.sham||o&&o.sham)&&so(i,"sham",!0),uo(r,n,i,t)}},po=Z,vo=R,mo=function(t){if("Function"===po(t))return vo(t)},go=Ct,yo=k,bo=mo(mo.bind),wo=function(t,e){return go(t),void 0===e?t:yo?bo(t,e):function(){return t.apply(e,arguments)}},ko=Z,Oo=Array.isArray||function(t){return"Array"==ko(t)},xo={};xo[de("toStringTag")]="z";var So="[object z]"===String(xo),Eo=So,Ao=rt,Po=Z,Mo=de("toStringTag"),jo=Object,_o="Arguments"==Po(function(){return arguments}()),To=Eo?Po:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=jo(t),Mo))?r:_o?Po(e):"Object"==(n=Po(e))&&Ao(e.callee)?"Arguments":n},Co=R,Io=b,Lo=rt,No=To,Ro=wr,Do=function(){},Fo=[],zo=ut("Reflect","construct"),Zo=/^\s*(?:class|function)\b/,Bo=Co(Zo.exec),Uo=!Zo.exec(Do),Go=function(t){if(!Lo(t))return!1;try{return zo(Do,Fo,t),!0}catch(t){return!1}},Vo=function(t){if(!Lo(t))return!1;switch(No(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Uo||!!Bo(Zo,Ro(t))}catch(t){return!0}};Vo.sham=!0;var Wo=!zo||Io((function(){var t;return Go(Go.call)||!Go(Object)||!Go((function(){t=!0}))||t}))?Vo:Go,$o=Oo,Ho=Wo,qo=it,Yo=de("species"),Ko=Array,Xo=function(t){var e;return $o(t)&&(e=t.constructor,(Ho(e)&&(e===Ko||$o(e.prototype))||qo(e)&&null===(e=e[Yo]))&&(e=void 0)),void 0===e?Ko:e},Jo=function(t,e){return new(Xo(t))(0===e?0:e)},Qo=wo,ti=W,ei=Xt,ri=Sn,ni=Jo,oi=R([].push),ii=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,s=5==t||i;return function(u,c,f,l){for(var h,p,d=ei(u),v=ti(d),m=Qo(c,f),g=ri(v),y=0,b=l||ni,w=e?b(u,g):r||a?b(u,0):void 0;g>y;y++)if((s||y in v)&&(p=m(h=v[y],y,d),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return y;case 2:oi(w,h)}else switch(t){case 4:return!1;case 7:oi(w,h)}return i?-1:n||o?o:w}},ai={forEach:ii(0),map:ii(1),filter:ii(2),some:ii(3),every:ii(4),find:ii(5),findIndex:ii(6),filterReject:ii(7)},si=b,ui=mt,ci=de("species"),fi=function(t){return ui>=51||!si((function(){var e=[];return(e.constructor={})[ci]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},li=ai.map;function hi(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);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}ho({target:"Array",proto:!0,forced:!fi("map")},{map:function(t){return li(this,t,arguments.length>1?arguments[1]:void 0)}});var pi=ai.filter;ho({target:"Array",proto:!0,forced:!fi("filter")},{filter:function(t){return pi(this,t,arguments.length>1?arguments[1]:void 0)}});var di=To,vi=So?{}.toString:function(){return"[object "+di(this)+"]"};So||ln(Object.prototype,"toString",vi,{unsafe:!0});var mi=function(){function t(){e(this,t)}return n(t,null,[{key:"isAdvancedMarkerAvailable",value:function(t){return google.maps.marker&&!0===t.getMapCapabilities().isAdvancedMarkersAvailable}},{key:"isAdvancedMarker",value:function(t){return google.maps.marker&&t instanceof google.maps.marker.AdvancedMarkerElement}},{key:"setMap",value:function(t,e){this.isAdvancedMarker(t)?t.map=e:t.setMap(e)}},{key:"getPosition",value:function(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(t.position.lat&&t.position.lng)return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}},{key:"getVisible",value:function(t){return!!this.isAdvancedMarker(t)||t.getVisible()}}]),t}(),gi=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){var t,e=new google.maps.LatLngBounds(this._position,this._position),r=p(this.markers);try{for(r.s();!(t=r.n()).done;){var n=t.value;e.extend(mi.getPosition(n))}}catch(t){r.e(t)}finally{r.f()}return e}}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(t){return mi.getVisible(t)})).length}},{key:"push",value:function(t){this.markers.push(t)}},{key:"delete",value:function(){this.marker&&(mi.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}]),t}(),yi=function(t,e,r,n){var o=bi(t.getBounds(),e,n);return r.filter((function(t){return o.contains(mi.getPosition(t))}))},bi=function(t,e,r){var n=Oi(t,e),o=n.northEast,i=n.southWest,a=xi({northEast:o,southWest:i},r);return Si(a,e)},wi=function(t,e,r){var n=bi(t,e,r),o=n.getNorthEast(),i=n.getSouthWest();return[i.lng(),i.lat(),o.lng(),o.lat()]},ki=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),i=Math.sin(n/2),a=o*o+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*i*i;return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))},Oi=function(t,e){return{northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}},xi=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}},Si=function(t,e){var r=t.northEast,n=t.southWest,o=e.fromDivPixelToLatLng(n),i=e.fromDivPixelToLatLng(r);return new google.maps.LatLngBounds(o,i)},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 Pi(e)}}]),t}(),Ai=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=hi(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}),changed:!1}:{clusters:this.cluster({markers:yi(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}]),i}(Ei),Pi=function(t){return t.map((function(t){return new gi({position:mi.getPosition(t),markers:[t]})}))},Mi={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},ji=je("span").classList,_i=ji&&ji.constructor&&ji.constructor.prototype,Ti=_i===Object.prototype?void 0:_i,Ci=b,Ii=function(t,e){var r=[][t];return!!r&&Ci((function(){r.call(null,e||function(){return 1},1)}))},Li=ai.forEach,Ni=Ii("forEach")?[].forEach:function(t){return Li(this,t,arguments.length>1?arguments[1]:void 0)},Ri=g,Di=Mi,Fi=Ti,zi=Ni,Zi=ar,Bi=function(t){if(t&&t.forEach!==zi)try{Zi(t,"forEach",zi)}catch(e){t.forEach=zi}};for(var Ui in Di)Di[Ui]&&Bi(Ri[Ui]&&Ri[Ui].prototype);Bi(Fi);var Gi=S;ho({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Gi(URL.prototype.toString,this)}});var Vi=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=v(Vi),$i=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=hi(t,["maxDistance","gridSize"]);return(n=r.call(this,c)).clusters=[],n.state={zoom:-1},n.maxDistance=a,n.gridSize=u,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=!Wi(this.state,o)),this.state=o,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e}),changed:i}:{clusters:this.cluster({markers:yi(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;i<this.clusters.length;i++){var a=this.clusters[i],s=ki(a.bounds.getCenter().toJSON(),mi.getPosition(t).toJSON());s<n&&(n=s,o=a)}if(o&&bi(o.bounds,r,this.gridSize).contains(mi.getPosition(t)))o.push(t);else{var u=new gi({markers:[t]});this.clusters.push(u)}}}]),i}(Ai),Hi=function(t){o(i,t);var r=u(i);function i(t){e(this,i);var n=hi(t,[]);return r.call(this,n)}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return{clusters:this.cluster({markers:e,map:r,mapCanvasProjection:n}),changed:!1}}},{key:"cluster",value:function(t){return this.noop(t)}}]),i}(Ei),qi=Nn,Yi=Rn,Ki=Object.keys||function(t){return qi(t,Yi)},Xi=w,Ji=R,Qi=S,ta=b,ea=Ki,ra=zn,na=E,oa=Xt,ia=W,aa=Object.assign,sa=Object.defineProperty,ua=Ji([].concat),ca=!aa||ta((function(){if(Xi&&1!==aa({b:1},aa(sa({},"a",{enumerable:!0,get:function(){sa(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=aa({},t)[r]||ea(aa({},e)).join("")!=n}))?function(t,e){for(var r=oa(t),n=arguments.length,o=1,i=ra.f,a=na.f;n>o;)for(var s,u=ia(arguments[o++]),c=i?ua(ea(u),i(u)):ea(u),f=c.length,l=0;f>l;)s=c[l++],Xi&&!Qi(a,u,s)||(r[s]=u[s]);return r}:aa,fa=ca;ho({target:"Object",stat:!0,arity:2,forced:Object.assign!==fa},{assign:fa});const la=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class ha{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[e,r]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const n=r>>4;if(1!==n)throw new Error(`Got v${n} data when expected v1.`);const o=la[15&r];if(!o)throw new Error("Unrecognized array type.");const[i]=new Uint16Array(t,2,1),[a]=new Uint32Array(t,4,1);return new ha(a,i,o,t)}constructor(t,e=64,r=Float64Array,n){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const o=la.indexOf(this.ArrayType),i=2*t*this.ArrayType.BYTES_PER_ELEMENT,a=t*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-a%8)%8;if(o<0)throw new Error(`Unexpected typed array class: ${r}.`);n&&n instanceof ArrayBuffer?(this.data=n,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+s,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+i+a+s),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+s,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return pa(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:i,nodeSize:a}=this,s=[0,o.length-1,0],u=[];for(;s.length;){const c=s.pop()||0,f=s.pop()||0,l=s.pop()||0;if(f-l<=a){for(let a=l;a<=f;a++){const s=i[2*a],c=i[2*a+1];s>=t&&s<=r&&c>=e&&c<=n&&u.push(o[a])}continue}const h=l+f>>1,p=i[2*h],d=i[2*h+1];p>=t&&p<=r&&d>=e&&d<=n&&u.push(o[h]),(0===c?t<=p:e<=d)&&(s.push(l),s.push(h-1),s.push(1-c)),(0===c?r>=p:n>=d)&&(s.push(h+1),s.push(f),s.push(1-c))}return u}within(t,e,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:o,nodeSize:i}=this,a=[0,n.length-1,0],s=[],u=r*r;for(;a.length;){const c=a.pop()||0,f=a.pop()||0,l=a.pop()||0;if(f-l<=i){for(let r=l;r<=f;r++)ga(o[2*r],o[2*r+1],t,e)<=u&&s.push(n[r]);continue}const h=l+f>>1,p=o[2*h],d=o[2*h+1];ga(p,d,t,e)<=u&&s.push(n[h]),(0===c?t-r<=p:e-r<=d)&&(a.push(l),a.push(h-1),a.push(1-c)),(0===c?t+r>=p:e+r>=d)&&(a.push(h+1),a.push(f),a.push(1-c))}return s}}function pa(t,e,r,n,o,i){if(o-n<=r)return;const a=n+o>>1;da(t,e,a,n,o,i),pa(t,e,r,n,a-1,1-i),pa(t,e,r,a+1,o,1-i)}function da(t,e,r,n,o,i){for(;o>n;){if(o-n>600){const a=o-n+1,s=r-n+1,u=Math.log(a),c=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*c*(a-c)/a)*(s-a/2<0?-1:1);da(t,e,r,Math.max(n,Math.floor(r-s*c/a+f)),Math.min(o,Math.floor(r+(a-s)*c/a+f)),i)}const a=e[2*r+i];let s=n,u=o;for(va(t,e,n,r),e[2*o+i]>a&&va(t,e,n,o);s<u;){for(va(t,e,s,u),s++,u--;e[2*s+i]<a;)s++;for(;e[2*u+i]>a;)u--}e[2*n+i]===a?va(t,e,n,u):(u++,va(t,e,u,o)),u<=r&&(n=u+1),r<=u&&(o=u-1)}}function va(t,e,r,n){ma(t,r,n),ma(e,2*r,2*n),ma(e,2*r+1,2*n+1)}function ma(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function ga(t,e,r,n){const o=t-r,i=e-n;return o*o+i*i}const ya={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},ba=Math.fround||(wa=new Float32Array(1),t=>(wa[0]=+t,wa[0]));var wa;const ka=3,Oa=5,xa=6;class Sa{constructor(t){this.options=Object.assign(Object.create(ya),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:r,maxZoom:n}=this.options;e&&console.time("total time");const o=`prepare ${t.length} points`;e&&console.time(o),this.points=t;const i=[];for(let e=0;e<t.length;e++){const r=t[e];if(!r.geometry)continue;const[n,o]=r.geometry.coordinates,a=ba(Pa(n)),s=ba(Ma(o));i.push(a,s,1/0,e,-1,1),this.options.reduce&&i.push(0)}let a=this.trees[n+1]=this._createTree(i);e&&console.timeEnd(o);for(let t=n;t>=r;t--){const r=+Date.now();a=this.trees[t]=this._createTree(this._cluster(a,t)),e&&console.log("z%d: %d clusters in %dms",t,a.numItems,+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(Pa(r),Ma(i),Pa(o),Ma(n)),u=a.data,c=[];for(const t of s){const e=this.stride*t;c.push(u[e+Oa]>1?Ea(u,e,this.clusterProps):this.points[u[e+ka]])}return c}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.data;if(e*this.stride>=i.length)throw new Error(n);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=i[e*this.stride],u=i[e*this.stride+1],c=o.within(s,u,a),f=[];for(const e of c){const r=e*this.stride;i[r+4]===t&&f.push(i[r+Oa]>1?Ea(i,r,this.clusterProps):this.points[i[r+ka]])}if(0===f.length)throw new Error(n);return f}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.data,e,r,o,f),0===e&&this._addTileFeatures(n.range(1-s/o,u,1,c),n.data,o,r,o,f),e===o-1&&this._addTileFeatures(n.range(0,u,s/o,c),n.data,-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):o<n?o++:t.push(e),t.length===r)break}return o}_createTree(t){const e=new ha(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)e.add(t[r],t[r+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,r,n,o,i){for(const a of t){const t=a*this.stride,s=e[t+Oa]>1;let u,c,f;if(s)u=Aa(e,t,this.clusterProps),c=e[t],f=e[t+1];else{const r=this.points[e[t+ka]];u=r.properties;const[n,o]=r.geometry.coordinates;c=Pa(n),f=Ma(o)}const l={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(f*o-n))]],tags:u};let h;h=s||this.options.generateId?e[t+ka]:this.points[e[t+ka]].id,void 0!==h&&(l.id=h),i.features.push(l)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const{radius:r,extent:n,reduce:o,minPoints:i}=this.options,a=r/(n*Math.pow(2,e)),s=t.data,u=[],c=this.stride;for(let r=0;r<s.length;r+=c){if(s[r+2]<=e)continue;s[r+2]=e;const n=s[r],f=s[r+1],l=t.within(s[r],s[r+1],a),h=s[r+Oa];let p=h;for(const t of l){const r=t*c;s[r+2]>e&&(p+=s[r+Oa])}if(p>h&&p>=i){let t,i=n*h,a=f*h,d=-1;const v=((r/c|0)<<5)+(e+1)+this.points.length;for(const n of l){const u=n*c;if(s[u+2]<=e)continue;s[u+2]=e;const f=s[u+Oa];i+=s[u]*f,a+=s[u+1]*f,s[u+4]=v,o&&(t||(t=this._map(s,r,!0),d=this.clusterProps.length,this.clusterProps.push(t)),o(t,this._map(s,u)))}s[r+4]=v,u.push(i/p,a/p,1/0,v,-1,p),o&&u.push(d)}else{for(let t=0;t<c;t++)u.push(s[r+t]);if(p>1)for(const t of l){const r=t*c;if(!(s[r+2]<=e)){s[r+2]=e;for(let t=0;t<c;t++)u.push(s[r+t])}}}}return u}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,r){if(t[e+Oa]>1){const n=this.clusterProps[t[e+xa]];return r?Object.assign({},n):n}const n=this.points[t[e+ka]].properties,o=this.options.map(n);return r&&o===n?Object.assign({},o):o}}function Ea(t,e,r){return{type:"Feature",id:t[e+ka],properties:Aa(t,e,r),geometry:{type:"Point",coordinates:[(n=t[e],360*(n-.5)),ja(t[e+1])]}};var n}function Aa(t,e,r){const n=t[e+Oa],o=n>=1e4?`${Math.round(n/1e3)}k`:n>=1e3?Math.round(n/100)/10+"k":n,i=t[e+xa],a=-1===i?{}:Object.assign({},r[i]);return Object.assign(a,{cluster:!0,cluster_id:t[e+ka],point_count:n,point_count_abbreviated:o})}function Pa(t){return t/360+.5}function Ma(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 ja(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}var _a=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=hi(t,["maxZoom","radius"]);return(n=r.call(this,{maxZoom:o})).state={zoom:-1},n.superCluster=new Sa(Object.assign({maxZoom:n.maxZoom,radius:s},u)),n}return n(i,[{key:"calculate",value:function(t){var e=!1,r={zoom:t.map.getZoom()};if(!Wi(t.markers,this.markers)){e=!0,this.markers=f(t.markers);var n=this.markers.map((function(t){var e=mi.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(n)}return e||(this.state.zoom<=this.maxZoom||r.zoom<=this.maxZoom)&&(e=!Wi(this.state,r)),this.state=r,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}},{key:"cluster",value:function(t){var e=this,r=t.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(r.getZoom())).map((function(t){return e.transformCluster(t)}))}},{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 gi({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:{lat:n,lng:r}});var i=o.marker;return new gi({markers:[i],position:mi.getPosition(i)})}}]),i}(Ei),Ta=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=t.viewportPadding,c=void 0===u?60:u,f=hi(t,["maxZoom","radius","viewportPadding"]);return(n=r.call(this,{maxZoom:o,viewportPadding:c})).superCluster=new Sa(Object.assign({maxZoom:n.maxZoom,radius:s},f)),n.state={zoom:-1,view:[0,0,0,0]},n}return n(i,[{key:"calculate",value:function(t){var e={zoom:Math.round(t.map.getZoom()),view:wi(t.map.getBounds(),t.mapCanvasProjection,this.viewportPadding)},r=!Wi(this.state,e);if(!Wi(t.markers,this.markers)){r=!0,this.markers=f(t.markers);var n=this.markers.map((function(t){var e=mi.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(n)}return r&&(this.clusters=this.cluster(t),this.state=e),{clusters:this.clusters,changed:r}}},{key:"cluster",value:function(t){var e=this,r=t.map,n=t.mapCanvasProjection,o={zoom:Math.round(r.getZoom()),view:wi(r.getBounds(),n,this.viewportPadding)};return this.superCluster.getClusters(o.view,o.zoom).map((function(t){return e.transformCluster(t)}))}},{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 gi({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:{lat:n,lng:r}});var i=o.marker;return new gi({markers:[i],position:mi.getPosition(i)})}}]),i}(Ai),Ca={},Ia=w,La=Ue,Na=Be,Ra=$e,Da=J,Fa=Ki;Ca.f=Ia&&!La?Object.defineProperties:function(t,e){Ra(t);for(var r,n=Da(e),o=Fa(e),i=o.length,a=0;i>a;)Na.f(t,r=o[a++],n[r]);return t};var za,Za=ut("document","documentElement"),Ba=$e,Ua=Ca,Ga=Rn,Va=Pr,Wa=Za,$a=je,Ha="prototype",qa="script",Ya=Ar("IE_PROTO"),Ka=function(){},Xa=function(t){return"<"+qa+">"+t+"</"+qa+">"},Ja=function(t){t.write(Xa("")),t.close();var e=t.parentWindow.Object;return t=null,e},Qa=function(){try{za=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Qa="undefined"!=typeof document?document.domain&&za?Ja(za):(e=$a("iframe"),r="java"+qa+":",e.style.display="none",Wa.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Xa("document.F=Object")),t.close(),t.F):Ja(za);for(var n=Ga.length;n--;)delete Qa[Ha][Ga[n]];return Qa()};Va[Ya]=!0;var ts=Object.create||function(t,e){var r;return null!==t?(Ka[Ha]=Ba(t),r=new Ka,Ka[Ha]=null,r[Ya]=t):r=Qa(),void 0===e?r:Ua.f(r,e)},es=de,rs=ts,ns=Be.f,os=es("unscopables"),is=Array.prototype;null==is[os]&&ns(is,os,{configurable:!0,value:rs(null)});var as=function(t){is[os][t]=!0},ss=jn.includes,us=as;ho({target:"Array",proto:!0,forced:b((function(){return!Array(1).includes()}))},{includes:function(t){return ss(this,t,arguments.length>1?arguments[1]:void 0)}}),us("includes");var cs=it,fs=Z,ls=de("match"),hs=function(t){var e;return cs(t)&&(void 0!==(e=t[ls])?!!e:"RegExp"==fs(t))},ps=TypeError,ds=To,vs=String,ms=function(t){if("Symbol"===ds(t))throw TypeError("Cannot convert a Symbol value to a string");return vs(t)},gs=de("match"),ys=ho,bs=function(t){if(hs(t))throw ps("The method doesn't accept regular expressions");return t},ws=Y,ks=ms,Os=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[gs]=!1,"/./"[t](e)}catch(t){}}return!1},xs=R("".indexOf);ys({target:"String",proto:!0,forced:!Os("includes")},{includes:function(t){return!!~xs(ks(ws(this)),ks(bs(t)),arguments.length>1?arguments[1]:void 0)}});var Ss=ho,Es=jn.indexOf,As=Ii,Ps=mo([].indexOf),Ms=!!Ps&&1/Ps([1],1,-0)<0;Ss({target:"Array",proto:!0,forced:Ms||!As("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Ms?Ps(this,t,e)||0:Es(this,t,e)}});var js=w,_s=Oo,Ts=TypeError,Cs=Object.getOwnPropertyDescriptor,Is=js&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Ls=TypeError,Ns=function(t){if(t>9007199254740991)throw Ls("Maximum allowed index exceeded");return t},Rs=Ee,Ds=Be,Fs=T,zs=function(t,e,r){var n=Rs(e);n in t?Ds.f(t,n,Fs(0,r)):t[n]=r},Zs=Mt,Bs=TypeError,Us=ho,Gs=Xt,Vs=wn,Ws=mn,$s=Sn,Hs=Is?function(t,e){if(_s(t)&&!Cs(t,"length").writable)throw Ts("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},qs=Ns,Ys=Jo,Ks=zs,Xs=function(t,e){if(!delete t[e])throw Bs("Cannot delete property "+Zs(e)+" of "+Zs(t))},Js=fi("splice"),Qs=Math.max,tu=Math.min;Us({target:"Array",proto:!0,forced:!Js},{splice:function(t,e){var r,n,o,i,a,s,u=Gs(this),c=$s(u),f=Vs(t,c),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=c-f):(r=l-2,n=tu(Qs(Ws(e),0),c-f)),qs(c+r-n),o=Ys(u,n),i=0;i<n;i++)(a=f+i)in u&&Ks(o,i,u[a]);if(o.length=n,r<n){for(i=f;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Xs(u,s);for(i=c;i>c-n+r;i--)Xs(u,i-1)}else if(r>n)for(i=c-n;i>f;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Xs(u,s);for(i=0;i<r;i++)u[i+f]=arguments[i+2];return Hs(u,c-n+r),o}});var eu,ru,nu,ou={},iu=!b((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),au=te,su=rt,uu=Xt,cu=iu,fu=Ar("IE_PROTO"),lu=Object,hu=lu.prototype,pu=cu?lu.getPrototypeOf:function(t){var e=uu(t);if(au(e,fu))return e[fu];var r=e.constructor;return su(r)&&e instanceof r?r.prototype:e instanceof lu?hu:null},du=b,vu=rt,mu=it,gu=pu,yu=ln,bu=de("iterator"),wu=!1;[].keys&&("next"in(nu=[].keys())?(ru=gu(gu(nu)))!==Object.prototype&&(eu=ru):wu=!0);var ku=!mu(eu)||du((function(){var t={};return eu[bu].call(t)!==t}));ku&&(eu={}),vu(eu[bu])||yu(eu,bu,(function(){return this}));var Ou={IteratorPrototype:eu,BUGGY_SAFARI_ITERATORS:wu},xu=Be.f,Su=te,Eu=de("toStringTag"),Au=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Su(t,Eu)&&xu(t,Eu,{configurable:!0,value:e})},Pu=Ou.IteratorPrototype,Mu=ts,ju=T,_u=Au,Tu=ou,Cu=function(){return this},Iu=R,Lu=Ct,Nu=rt,Ru=String,Du=TypeError,Fu=function(t,e,r){try{return Iu(Lu(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},zu=$e,Zu=function(t){if("object"==typeof t||Nu(t))return t;throw Du("Can't set "+Ru(t)+" as a prototype")},Bu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Fu(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return zu(r),Zu(n),e?t(r,n):r.__proto__=n,r}}():void 0),Uu=ho,Gu=S,Vu=rt,Wu=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Mu(Pu,{next:ju(+!n,r)}),_u(t,o,!1),Tu[o]=Cu,t},$u=pu,Hu=Bu,qu=Au,Yu=ar,Ku=ln,Xu=ou,Ju=pr.PROPER,Qu=pr.CONFIGURABLE,tc=Ou.IteratorPrototype,ec=Ou.BUGGY_SAFARI_ITERATORS,rc=de("iterator"),nc="keys",oc="values",ic="entries",ac=function(){return this},sc=function(t,e,r,n,o,i,a){Wu(r,e,n);var s,u,c,f=function(t){if(t===o&&v)return v;if(!ec&&t in p)return p[t];switch(t){case nc:case oc:case ic:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,d=p[rc]||p["@@iterator"]||o&&p[o],v=!ec&&d||f(o),m="Array"==e&&p.entries||d;if(m&&(s=$u(m.call(new t)))!==Object.prototype&&s.next&&($u(s)!==tc&&(Hu?Hu(s,tc):Vu(s[rc])||Ku(s,rc,ac)),qu(s,l,!0)),Ju&&o==oc&&d&&d.name!==oc&&(Qu?Yu(p,"name",oc):(h=!0,v=function(){return Gu(d,this)})),o)if(u={values:f(oc),keys:i?v:f(nc),entries:f(ic)},a)for(c in u)(ec||h||!(c in p))&&Ku(p,c,u[c]);else Uu({target:e,proto:!0,forced:ec||h},u);return p[rc]!==v&&Ku(p,rc,v,{name:o}),Xu[e]=v,u},uc=function(t,e){return{value:t,done:e}},cc=J,fc=as,lc=ou,hc=Br,pc=Be.f,dc=sc,vc=uc,mc=w,gc="Array Iterator",yc=hc.set,bc=hc.getterFor(gc),wc=dc(Array,"Array",(function(t,e){yc(this,{type:gc,target:cc(t),index:0,kind:e})}),(function(){var t=bc(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,vc(void 0,!0)):vc("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),kc=lc.Arguments=lc.Array;if(fc("keys"),fc("values"),fc("entries"),mc&&"values"!==kc.name)try{pc(kc,"name",{value:"values"})}catch(t){}var Oc={exports:{}},xc={},Sc=wn,Ec=Sn,Ac=zs,Pc=Array,Mc=Math.max,jc=Z,_c=J,Tc=hn.f,Cc=function(t,e,r){for(var n=Ec(t),o=Sc(e,n),i=Sc(void 0===r?n:r,n),a=Pc(Mc(i-o,0)),s=0;o<i;o++,s++)Ac(a,s,t[o]);return a.length=s,a},Ic="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];xc.f=function(t){return Ic&&"Window"==jc(t)?function(t){try{return Tc(t)}catch(t){return Cc(Ic)}}(t):Tc(_c(t))};var Lc=b((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Nc=b,Rc=it,Dc=Z,Fc=Lc,zc=Object.isExtensible,Zc=Nc((function(){zc(1)}))||Fc?function(t){return!!Rc(t)&&((!Fc||"ArrayBuffer"!=Dc(t))&&(!zc||zc(t)))}:zc,Bc=!b((function(){return Object.isExtensible(Object.preventExtensions({}))})),Uc=ho,Gc=R,Vc=Pr,Wc=it,$c=te,Hc=Be.f,qc=hn,Yc=xc,Kc=Zc,Xc=Bc,Jc=!1,Qc=ie("meta"),tf=0,ef=function(t){Hc(t,Qc,{value:{objectID:"O"+tf++,weakData:{}}})},rf=Oc.exports={enable:function(){rf.enable=function(){},Jc=!0;var t=qc.f,e=Gc([].splice),r={};r[Qc]=1,t(r).length&&(qc.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===Qc){e(n,o,1);break}return n},Uc({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Yc.f}))},fastKey:function(t,e){if(!Wc(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!$c(t,Qc)){if(!Kc(t))return"F";if(!e)return"E";ef(t)}return t[Qc].objectID},getWeakData:function(t,e){if(!$c(t,Qc)){if(!Kc(t))return!0;if(!e)return!1;ef(t)}return t[Qc].weakData},onFreeze:function(t){return Xc&&Jc&&Kc(t)&&!$c(t,Qc)&&ef(t),t}};Vc[Qc]=!0;var nf=Oc.exports,of=ou,af=de("iterator"),sf=Array.prototype,uf=To,cf=Nt,ff=$,lf=ou,hf=de("iterator"),pf=function(t){if(!ff(t))return cf(t,hf)||cf(t,"@@iterator")||lf[uf(t)]},df=S,vf=Ct,mf=$e,gf=Mt,yf=pf,bf=TypeError,wf=S,kf=$e,Of=Nt,xf=wo,Sf=S,Ef=$e,Af=Mt,Pf=function(t){return void 0!==t&&(of.Array===t||sf[af]===t)},Mf=Sn,jf=ct,_f=function(t,e){var r=arguments.length<2?yf(t):e;if(vf(r))return mf(df(r,t));throw bf(gf(t)+" is not iterable")},Tf=pf,Cf=function(t,e,r){var n,o;kf(t);try{if(!(n=Of(t,"return"))){if("throw"===e)throw r;return r}n=wf(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return kf(n),r},If=TypeError,Lf=function(t,e){this.stopped=t,this.result=e},Nf=Lf.prototype,Rf=function(t,e,r){var n,o,i,a,s,u,c,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=xf(e,f),m=function(t){return n&&Cf(n,"normal",t),new Lf(!0,t)},g=function(t){return l?(Ef(t),d?v(t[0],t[1],m):v(t[0],t[1])):d?v(t,m):v(t)};if(h)n=t.iterator;else if(p)n=t;else{if(!(o=Tf(t)))throw If(Af(t)+" is not iterable");if(Pf(o)){for(i=0,a=Mf(t);a>i;i++)if((s=g(t[i]))&&jf(Nf,s))return s;return new Lf(!1)}n=_f(t,o)}for(u=h?t.next:n.next;!(c=Sf(u,n)).done;){try{s=g(c.value)}catch(t){Cf(n,"throw",t)}if("object"==typeof s&&s&&jf(Nf,s))return s}return new Lf(!1)},Df=ct,Ff=TypeError,zf=function(t,e){if(Df(e,t))return t;throw Ff("Incorrect invocation")},Zf=de("iterator"),Bf=!1;try{var Uf=0,Gf={next:function(){return{done:!!Uf++}},return:function(){Bf=!0}};Gf[Zf]=function(){return this},Array.from(Gf,(function(){throw 2}))}catch(t){}var Vf=rt,Wf=it,$f=Bu,Hf=function(t,e,r){var n,o;return $f&&Vf(n=e.constructor)&&n!==r&&Wf(o=n.prototype)&&o!==r.prototype&&$f(t,o),t},qf=ho,Yf=g,Kf=R,Xf=oo,Jf=ln,Qf=nf,tl=Rf,el=zf,rl=rt,nl=$,ol=it,il=b,al=function(t,e){if(!e&&!Bf)return!1;var r=!1;try{var n={};n[Zf]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},sl=Au,ul=Hf,cl=an,fl=Be,ll=function(t,e,r){return r.get&&cl(r.get,e,{getter:!0}),r.set&&cl(r.set,e,{setter:!0}),fl.f(t,e,r)},hl=ln,pl=ut,dl=ll,vl=w,ml=de("species"),gl=ts,yl=ll,bl=function(t,e,r){for(var n in e)hl(t,n,e[n],r);return t},wl=wo,kl=zf,Ol=$,xl=Rf,Sl=sc,El=uc,Al=function(t){var e=pl(t);vl&&e&&!e[ml]&&dl(e,ml,{configurable:!0,get:function(){return this}})},Pl=w,Ml=nf.fastKey,jl=Br.set,_l=Br.getterFor,Tl={getConstructor:function(t,e,r,n){var o=t((function(t,o){kl(t,i),jl(t,{type:e,index:gl(null),first:void 0,last:void 0,size:0}),Pl||(t.size=0),Ol(o)||xl(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,a=_l(e),s=function(t,e,r){var n,o,i=a(t),s=u(t,e);return s?s.value=r:(i.last=s={index:o=Ml(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),Pl?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},u=function(t,e){var r,n=a(t),o=Ml(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return bl(i,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,Pl?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=u(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),Pl?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=wl(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),bl(i,r?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),Pl&&yl(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=_l(e),i=_l(n);Sl(t,e,(function(t,e){jl(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?El("keys"==e?r.key:"values"==e?r.value:[r.key,r.value],!1):(t.target=void 0,El(void 0,!0))}),r?"entries":"values",!r,!0),Al(e)}};(function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",a=Yf[t],s=a&&a.prototype,u=a,c={},f=function(t){var e=Kf(s[t]);Jf(s,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!ol(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!ol(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!ol(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(Xf(t,!rl(a)||!(o||s.forEach&&!il((function(){(new a).entries().next()})))))u=r.getConstructor(e,t,n,i),Qf.enable();else if(Xf(t,!0)){var l=new u,h=l[i](o?{}:-0,1)!=l,p=il((function(){l.has(1)})),d=al((function(t){new a(t)})),v=!o&&il((function(){for(var t=new a,e=5;e--;)t[i](e,e);return!t.has(-0)}));d||((u=e((function(t,e){el(t,s);var r=ul(new a,t,u);return nl(e)||tl(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=s,s.constructor=u),(p||v)&&(f("delete"),f("has"),n&&f("get")),(v||h)&&f(i),o&&s.clear&&delete s.clear}c[t]=u,qf({global:!0,constructor:!0,forced:u!=a},c),sl(u,t),o||r.setStrong(u,t,n)})("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Tl);var Cl=R,Il=mn,Ll=ms,Nl=Y,Rl=Cl("".charAt),Dl=Cl("".charCodeAt),Fl=Cl("".slice),zl=function(t){return function(e,r){var n,o,i=Ll(Nl(e)),a=Il(r),s=i.length;return a<0||a>=s?t?"":void 0:(n=Dl(i,a))<55296||n>56319||a+1===s||(o=Dl(i,a+1))<56320||o>57343?t?Rl(i,a):n:t?Fl(i,a,a+2):o-56320+(n-55296<<10)+65536}},Zl={codeAt:zl(!1),charAt:zl(!0)}.charAt,Bl=ms,Ul=Br,Gl=sc,Vl=uc,Wl="String Iterator",$l=Ul.set,Hl=Ul.getterFor(Wl);Gl(String,"String",(function(t){$l(this,{type:Wl,string:Bl(t),index:0})}),(function(){var t,e=Hl(this),r=e.string,n=e.index;return n>=r.length?Vl(void 0,!0):(t=Zl(r,n),e.index+=t.length,Vl(t,!1))}));var ql=g,Yl=Mi,Kl=Ti,Xl=wc,Jl=ar,Ql=de,th=Ql("iterator"),eh=Ql("toStringTag"),rh=Xl.values,nh=function(t,e){if(t){if(t[th]!==rh)try{Jl(t,th,rh)}catch(e){t[th]=rh}if(t[eh]||Jl(t,eh,e),Yl[e])for(var r in Xl)if(t[r]!==Xl[r])try{Jl(t,r,Xl[r])}catch(e){t[r]=Xl[r]}}};for(var oh in Yl)nh(ql[oh]&&ql[oh].prototype,oh);nh(Kl,"DOMTokenList");var ih=Ct,ah=Xt,sh=W,uh=Sn,ch=TypeError,fh=function(t){return function(e,r,n,o){ih(r);var i=ah(e),a=sh(i),s=uh(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 ch("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}},lh={left:fh(!1),right:fh(!0)},hh="undefined"!=typeof process&&"process"==Z(process),ph=lh.left;ho({target:"Array",proto:!0,forced:!hh&&mt>79&&mt<83||!Ii("reduce")},{reduce:function(t){var e=arguments.length;return ph(this,t,e,e>1?arguments[1]:void 0)}});var dh=ho,vh=b,mh=Oo,gh=it,yh=Xt,bh=Sn,wh=Ns,kh=zs,Oh=Jo,xh=fi,Sh=mt,Eh=de("isConcatSpreadable"),Ah=Sh>=51||!vh((function(){var t=[];return t[Eh]=!1,t.concat()[0]!==t})),Ph=function(t){if(!gh(t))return!1;var e=t[Eh];return void 0!==e?!!e:mh(t)};dh({target:"Array",proto:!0,arity:1,forced:!Ah||!xh("concat")},{concat:function(t){var e,r,n,o,i,a=yh(this),s=Oh(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Ph(i=-1===e?a:arguments[e]))for(o=bh(i),wh(u+o),r=0;r<o;r++,u++)r in i&&kh(s,u,i[r]);else wh(u+1),kh(s,u++,i);return s.length=u,s}});var Mh=g,jh=R(1..valueOf),_h=Y,Th=ms,Ch="\t\n\v\f\r \u2028\u2029\ufeff",Ih=R("".replace),Lh=RegExp("^["+Ch+"]+"),Nh=RegExp("(^|[^"+Ch+"])["+Ch+"]+$"),Rh=function(t){return function(e){var r=Th(_h(e));return 1&t&&(r=Ih(r,Lh,"")),2&t&&(r=Ih(r,Nh,"$1")),r}},Dh={start:Rh(1),end:Rh(2),trim:Rh(3)},Fh=ho,zh=w,Zh=g,Bh=Mh,Uh=R,Gh=oo,Vh=te,Wh=Hf,$h=ct,Hh=At,qh=Oe,Yh=b,Kh=hn.f,Xh=y.f,Jh=Be.f,Qh=jh,tp=Dh.trim,ep="Number",rp=Zh[ep];Bh[ep];var np=rp.prototype,op=Zh.TypeError,ip=Uh("".slice),ap=Uh("".charCodeAt),sp=function(t){var e,r,n,o,i,a,s,u,c=qh(t,"number");if(Hh(c))throw op("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=tp(c),43===(e=ap(c,0))||45===e){if(88===(r=ap(c,2))||120===r)return NaN}else if(48===e){switch(ap(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=ip(c,2)).length,s=0;s<a;s++)if((u=ap(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c},up=Gh(ep,!rp(" 0o1")||!rp("0b1")||rp("+0x1")),cp=function(t){var e,r=arguments.length<1?0:rp(function(t){var e=qh(t,"number");return"bigint"==typeof e?e:sp(e)}(t));return $h(np,e=this)&&Yh((function(){Qh(e)}))?Wh(Object(r),this,cp):r};cp.prototype=np,up&&(np.constructor=cp),Fh({global:!0,constructor:!0,wrap:!0,forced:up},{Number:cp});up&&function(t,e){for(var r,n=zh?Kh(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)Vh(e,r=n[o])&&!Vh(t,r)&&Jh(t,r,Xh(e,r))}(Bh[ep],rp);var fp=n((function t(r,n){e(this,t),this.markers={sum:r.length};var o=n.map((function(t){return t.count})),i=o.reduce((function(t,e){return t+e}),0);this.clusters={count:n.length,markers:{mean:i/n.length,sum:i,min:Math.min.apply(Math,f(o)),max:Math.max.apply(Math,f(o))}}})),lp=function(){function t(){e(this,t)}return n(t,[{key:"render",value:function(t,e,r){var n=t.count,o=t.position,i=n>Math.max(10,e.clusters.markers.mean)?"#ff0000":"#0000ff",a='<svg fill="'.concat(i,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">').concat(n,"</text>\n</svg>"),s="Cluster of ".concat(n," markers"),u=Number(google.maps.Marker.MAX_ZINDEX)+n;if(mi.isAdvancedMarkerAvailable(r)){var c=document.createElement("div");c.innerHTML=a;var f=c.firstElementChild;f.setAttribute("transform","translate(0 25)");var l={map:r,position:o,zIndex:u,title:s,content:f};return new google.maps.marker.AdvancedMarkerElement(l)}var h={position:o,zIndex:u,title:s,icon:{url:"data:image/svg+xml;base64,".concat(btoa(a)),anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(h)}}]),t}();var hp,pp=n((function t(){e(this,t),function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)}));t.MarkerClustererEvents=void 0,(hp=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",hp.CLUSTERING_END="clusteringend",hp.CLUSTER_CLICK="click";var dp=function(t,e,r){r.fitBounds(e.bounds)},vp=function(r){o(a,r);var i=u(a);function a(t){var r,n=t.map,o=t.markers,s=void 0===o?[]:o,u=t.algorithmOptions,c=void 0===u?{}:u,l=t.algorithm,h=void 0===l?new _a(c):l,p=t.renderer,d=void 0===p?new lp:p,v=t.onClusterClick,m=void 0===v?dp:v;return e(this,a),(r=i.call(this)).markers=f(s),r.clusters=[],r.algorithm=h,r.renderer=d,r.onClusterClick=m,n&&r.setMap(n),r}return n(a,[{key:"addMarker",value:function(t,e){this.markers.includes(t)||(this.markers.push(t),e||this.render())}},{key:"addMarkers",value:function(t,e){var r=this;t.forEach((function(t){r.addMarker(t,!0)})),e||this.render()}},{key:"removeMarker",value:function(t,e){var r=this.markers.indexOf(t);return-1!==r&&(mi.setMap(t,null),this.markers.splice(r,1),e||this.render(),!0)}},{key:"removeMarkers",value:function(t,e){var r=this,n=!1;return t.forEach((function(t){n=r.removeMarker(t,!0)||n})),n&&!e&&this.render(),n}},{key:"clearMarkers",value:function(t){this.markers.length=0,t||this.render()}},{key:"render",value:function(){var e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_BEGIN,this);var r=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=r.clusters,o=r.changed;if(o||null==o){var i,a=new Set,s=p(n);try{for(s.s();!(i=s.n()).done;){var u=i.value;1==u.markers.length&&a.add(u.markers[0])}}catch(t){s.e(t)}finally{s.f()}var c,f=[],l=p(this.clusters);try{for(l.s();!(c=l.n()).done;){var h=c.value;null!=h.marker&&(1==h.markers.length?a.has(h.marker)||mi.setMap(h.marker,null):f.push(h.marker))}}catch(t){l.e(t)}finally{l.f()}this.clusters=n,this.renderClusters(),requestAnimationFrame((function(){return f.forEach((function(t){return mi.setMap(t,null)}))}))}google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_END,this)}}},{key:"onAdd",value:function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}},{key:"onRemove",value:function(){google.maps.event.removeListener(this.idleListener),this.reset()}},{key:"reset",value:function(){this.markers.forEach((function(t){return mi.setMap(t,null)})),this.clusters.forEach((function(t){return t.delete()})),this.clusters=[]}},{key:"renderClusters",value:function(){var e=this,r=new fp(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(o){1===o.markers.length?o.marker=o.markers[0]:(o.marker=e.renderer.render(o,r,n),o.markers.forEach((function(t){return mi.setMap(t,null)})),e.onClusterClick&&o.marker.addListener("click",(function(r){google.maps.event.trigger(e,t.MarkerClustererEvents.CLUSTER_CLICK,o),e.onClusterClick(r,o,n)}))),mi.setMap(o.marker,n)}))}}]),a}(pp);t.AbstractAlgorithm=Ei,t.AbstractViewportAlgorithm=Ai,t.Cluster=gi,t.ClusterStats=fp,t.DefaultRenderer=lp,t.GridAlgorithm=$i,t.MarkerClusterer=vp,t.NoopAlgorithm=Hi,t.SuperClusterAlgorithm=_a,t.SuperClusterViewportAlgorithm=Ta,t.defaultOnClusterClickHandler=dp,t.distanceBetweenPoints=ki,t.extendBoundsToPaddedViewport=bi,t.extendPixelBounds=xi,t.filterMarkersToPaddedViewport=yi,t.getPaddedViewport=wi,t.noop=Pi,t.pixelBoundsToLatLngBounds=Si,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).markerClusterer={})}(this,(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;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,"symbol"==typeof(i=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"))?i:String(i)),n)}var o,i}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=i(t);if(e){var o=i(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s(this,r)}}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var m=function(t){return t&&t.Math===Math&&t},g=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof d&&d)||function(){return this}()||d||Function("return this")(),y={},b=function(t){try{return!!t()}catch(t){return!0}},w=!b((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),k=!b((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),O=k,x=Function.prototype.call,S=O?x.bind(x):function(){return x.apply(x,arguments)},E={},A={}.propertyIsEnumerable,P=Object.getOwnPropertyDescriptor,M=P&&!A.call({1:2},1);E.f=M?function(t){var e=P(this,t);return!!e&&e.enumerable}:A;var j,_,T=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},C=k,I=Function.prototype,L=I.call,N=C&&I.bind.bind(L,L),R=C?N:function(t){return function(){return L.apply(t,arguments)}},D=R,F=D({}.toString),z=D("".slice),Z=function(t){return z(F(t),8,-1)},B=b,U=Z,G=Object,V=R("".split),W=B((function(){return!G("z").propertyIsEnumerable(0)}))?function(t){return"String"===U(t)?V(t,""):G(t)}:G,$=function(t){return null==t},H=$,q=TypeError,Y=function(t){if(H(t))throw q("Can't call method on "+t);return t},K=W,X=Y,J=function(t){return K(X(t))},Q="object"==typeof document&&document.all,tt={all:Q,IS_HTMLDDA:void 0===Q&&void 0!==Q},et=tt.all,rt=tt.IS_HTMLDDA?function(t){return"function"==typeof t||t===et}:function(t){return"function"==typeof t},nt=rt,ot=tt.all,it=tt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:nt(t)||t===ot}:function(t){return"object"==typeof t?null!==t:nt(t)},at=g,st=rt,ut=function(t,e){return arguments.length<2?(r=at[t],st(r)?r:void 0):at[t]&&at[t][e];var r},ct=R({}.isPrototypeOf),ft=g,lt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ht=ft.process,pt=ft.Deno,dt=ht&&ht.versions||pt&&pt.version,vt=dt&&dt.v8;vt&&(_=(j=vt.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!_&<&&(!(j=lt.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=lt.match(/Chrome\/(\d+)/))&&(_=+j[1]);var mt=_,gt=mt,yt=b,bt=g.String,wt=!!Object.getOwnPropertySymbols&&!yt((function(){var t=Symbol("symbol detection");return!bt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&>&><41})),kt=wt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=ut,xt=rt,St=ct,Et=Object,At=kt?function(t){return"symbol"==typeof t}:function(t){var e=Ot("Symbol");return xt(e)&&St(e.prototype,Et(t))},Pt=String,Mt=function(t){try{return Pt(t)}catch(t){return"Object"}},jt=rt,_t=Mt,Tt=TypeError,Ct=function(t){if(jt(t))return t;throw Tt(_t(t)+" is not a function")},It=Ct,Lt=$,Nt=function(t,e){var r=t[e];return Lt(r)?void 0:It(r)},Rt=S,Dt=rt,Ft=it,zt=TypeError,Zt={exports:{}},Bt=g,Ut=Object.defineProperty,Gt=function(t,e){try{Ut(Bt,t,{value:e,configurable:!0,writable:!0})}catch(r){Bt[t]=e}return e},Vt=Gt,Wt="__core-js_shared__",$t=g[Wt]||Vt(Wt,{}),Ht=$t;(Zt.exports=function(t,e){return Ht[t]||(Ht[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"});var qt=Zt.exports,Yt=Y,Kt=Object,Xt=function(t){return Kt(Yt(t))},Jt=Xt,Qt=R({}.hasOwnProperty),te=Object.hasOwn||function(t,e){return Qt(Jt(t),e)},ee=R,re=0,ne=Math.random(),oe=ee(1..toString),ie=function(t){return"Symbol("+(void 0===t?"":t)+")_"+oe(++re+ne,36)},ae=qt,se=te,ue=ie,ce=wt,fe=kt,le=g.Symbol,he=ae("wks"),pe=fe?le.for||le:le&&le.withoutSetter||ue,de=function(t){return se(he,t)||(he[t]=ce&&se(le,t)?le[t]:pe("Symbol."+t)),he[t]},ve=S,me=it,ge=At,ye=Nt,be=function(t,e){var r,n;if("string"===e&&Dt(r=t.toString)&&!Ft(n=Rt(r,t)))return n;if(Dt(r=t.valueOf)&&!Ft(n=Rt(r,t)))return n;if("string"!==e&&Dt(r=t.toString)&&!Ft(n=Rt(r,t)))return n;throw zt("Can't convert object to primitive value")},we=TypeError,ke=de("toPrimitive"),Oe=function(t,e){if(!me(t)||ge(t))return t;var r,n=ye(t,ke);if(n){if(void 0===e&&(e="default"),r=ve(n,t,e),!me(r)||ge(r))return r;throw we("Can't convert object to primitive value")}return void 0===e&&(e="number"),be(t,e)},xe=Oe,Se=At,Ee=function(t){var e=xe(t,"string");return Se(e)?e:e+""},Ae=it,Pe=g.document,Me=Ae(Pe)&&Ae(Pe.createElement),je=function(t){return Me?Pe.createElement(t):{}},_e=je,Te=!w&&!b((function(){return 7!==Object.defineProperty(_e("div"),"a",{get:function(){return 7}}).a})),Ce=w,Ie=S,Le=E,Ne=T,Re=J,De=Ee,Fe=te,ze=Te,Ze=Object.getOwnPropertyDescriptor;y.f=Ce?Ze:function(t,e){if(t=Re(t),e=De(e),ze)try{return Ze(t,e)}catch(t){}if(Fe(t,e))return Ne(!Ie(Le.f,t,e),t[e])};var Be={},Ue=w&&b((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ge=it,Ve=String,We=TypeError,$e=function(t){if(Ge(t))return t;throw We(Ve(t)+" is not an object")},He=w,qe=Te,Ye=Ue,Ke=$e,Xe=Ee,Je=TypeError,Qe=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,er="enumerable",rr="configurable",nr="writable";Be.f=He?Ye?function(t,e,r){if(Ke(t),e=Xe(e),Ke(r),"function"==typeof t&&"prototype"===e&&"value"in r&&nr in r&&!r[nr]){var n=tr(t,e);n&&n[nr]&&(t[e]=r.value,r={configurable:rr in r?r[rr]:n[rr],enumerable:er in r?r[er]:n[er],writable:!1})}return Qe(t,e,r)}:Qe:function(t,e,r){if(Ke(t),e=Xe(e),Ke(r),qe)try{return Qe(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 or=Be,ir=T,ar=w?function(t,e,r){return or.f(t,e,ir(1,r))}:function(t,e,r){return t[e]=r,t},sr={exports:{}},ur=w,cr=te,fr=Function.prototype,lr=ur&&Object.getOwnPropertyDescriptor,hr=cr(fr,"name"),pr={EXISTS:hr,PROPER:hr&&"something"===function(){}.name,CONFIGURABLE:hr&&(!ur||ur&&lr(fr,"name").configurable)},dr=rt,vr=$t,mr=R(Function.toString);dr(vr.inspectSource)||(vr.inspectSource=function(t){return mr(t)});var gr,yr,br,wr=vr.inspectSource,kr=rt,Or=g.WeakMap,xr=kr(Or)&&/native code/.test(String(Or)),Sr=ie,Er=qt("keys"),Ar=function(t){return Er[t]||(Er[t]=Sr(t))},Pr={},Mr=xr,jr=g,_r=it,Tr=ar,Cr=te,Ir=$t,Lr=Ar,Nr=Pr,Rr="Object already initialized",Dr=jr.TypeError,Fr=jr.WeakMap;if(Mr||Ir.state){var zr=Ir.state||(Ir.state=new Fr);zr.get=zr.get,zr.has=zr.has,zr.set=zr.set,gr=function(t,e){if(zr.has(t))throw Dr(Rr);return e.facade=t,zr.set(t,e),e},yr=function(t){return zr.get(t)||{}},br=function(t){return zr.has(t)}}else{var Zr=Lr("state");Nr[Zr]=!0,gr=function(t,e){if(Cr(t,Zr))throw Dr(Rr);return e.facade=t,Tr(t,Zr,e),e},yr=function(t){return Cr(t,Zr)?t[Zr]:{}},br=function(t){return Cr(t,Zr)}}var Br={set:gr,get:yr,has:br,enforce:function(t){return br(t)?yr(t):gr(t,{})},getterFor:function(t){return function(e){var r;if(!_r(e)||(r=yr(e)).type!==t)throw Dr("Incompatible receiver, "+t+" required");return r}}},Ur=R,Gr=b,Vr=rt,Wr=te,$r=w,Hr=pr.CONFIGURABLE,qr=wr,Yr=Br.enforce,Kr=Br.get,Xr=String,Jr=Object.defineProperty,Qr=Ur("".slice),tn=Ur("".replace),en=Ur([].join),rn=$r&&!Gr((function(){return 8!==Jr((function(){}),"length",{value:8}).length})),nn=String(String).split("String"),on=sr.exports=function(t,e,r){"Symbol("===Qr(Xr(e),0,7)&&(e="["+tn(Xr(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Wr(t,"name")||Hr&&t.name!==e)&&($r?Jr(t,"name",{value:e,configurable:!0}):t.name=e),rn&&r&&Wr(r,"arity")&&t.length!==r.arity&&Jr(t,"length",{value:r.arity});try{r&&Wr(r,"constructor")&&r.constructor?$r&&Jr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Yr(t);return Wr(n,"source")||(n.source=en(nn,"string"==typeof e?e:"")),t};Function.prototype.toString=on((function(){return Vr(this)&&Kr(this).source||qr(this)}),"toString");var an=sr.exports,sn=rt,un=Be,cn=an,fn=Gt,ln=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(sn(r)&&cn(r,i,n),n.global)o?t[e]=r:fn(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:un.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},hn={},pn=Math.ceil,dn=Math.floor,vn=Math.trunc||function(t){var e=+t;return(e>0?dn:pn)(e)},mn=function(t){var e=+t;return e!=e||0===e?0:vn(e)},gn=mn,yn=Math.max,bn=Math.min,wn=function(t,e){var r=gn(t);return r<0?yn(r+e,0):bn(r,e)},kn=mn,On=Math.min,xn=function(t){return t>0?On(kn(t),9007199254740991):0},Sn=function(t){return xn(t.length)},En=J,An=wn,Pn=Sn,Mn=function(t){return function(e,r,n){var o,i=En(e),a=Pn(i),s=An(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}},jn={includes:Mn(!0),indexOf:Mn(!1)},_n=te,Tn=J,Cn=jn.indexOf,In=Pr,Ln=R([].push),Nn=function(t,e){var r,n=Tn(t),o=0,i=[];for(r in n)!_n(In,r)&&_n(n,r)&&Ln(i,r);for(;e.length>o;)_n(n,r=e[o++])&&(~Cn(i,r)||Ln(i,r));return i},Rn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dn=Nn,Fn=Rn.concat("length","prototype");hn.f=Object.getOwnPropertyNames||function(t){return Dn(t,Fn)};var zn={};zn.f=Object.getOwnPropertySymbols;var Zn=ut,Bn=hn,Un=zn,Gn=$e,Vn=R([].concat),Wn=Zn("Reflect","ownKeys")||function(t){var e=Bn.f(Gn(t)),r=Un.f;return r?Vn(e,r(t)):e},$n=te,Hn=Wn,qn=y,Yn=Be,Kn=b,Xn=rt,Jn=/#|\.prototype\./,Qn=function(t,e){var r=eo[to(t)];return r===no||r!==ro&&(Xn(e)?Kn(e):!!e)},to=Qn.normalize=function(t){return String(t).replace(Jn,".").toLowerCase()},eo=Qn.data={},ro=Qn.NATIVE="N",no=Qn.POLYFILL="P",oo=Qn,io=g,ao=y.f,so=ar,uo=ln,co=Gt,fo=function(t,e,r){for(var n=Hn(e),o=Yn.f,i=qn.f,a=0;a<n.length;a++){var s=n[a];$n(t,s)||r&&$n(r,s)||o(t,s,i(e,s))}},lo=oo,ho=function(t,e){var r,n,o,i,a,s=t.target,u=t.global,c=t.stat;if(r=u?io:c?io[s]||co(s,{}):(io[s]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=ao(r,n))&&a.value:r[n],!lo(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;fo(i,o)}(t.sham||o&&o.sham)&&so(i,"sham",!0),uo(r,n,i,t)}},po=Z,vo=R,mo=function(t){if("Function"===po(t))return vo(t)},go=Ct,yo=k,bo=mo(mo.bind),wo=function(t,e){return go(t),void 0===e?t:yo?bo(t,e):function(){return t.apply(e,arguments)}},ko=Z,Oo=Array.isArray||function(t){return"Array"===ko(t)},xo={};xo[de("toStringTag")]="z";var So="[object z]"===String(xo),Eo=So,Ao=rt,Po=Z,Mo=de("toStringTag"),jo=Object,_o="Arguments"===Po(function(){return arguments}()),To=Eo?Po:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=jo(t),Mo))?r:_o?Po(e):"Object"===(n=Po(e))&&Ao(e.callee)?"Arguments":n},Co=R,Io=b,Lo=rt,No=To,Ro=wr,Do=function(){},Fo=[],zo=ut("Reflect","construct"),Zo=/^\s*(?:class|function)\b/,Bo=Co(Zo.exec),Uo=!Zo.exec(Do),Go=function(t){if(!Lo(t))return!1;try{return zo(Do,Fo,t),!0}catch(t){return!1}},Vo=function(t){if(!Lo(t))return!1;switch(No(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Uo||!!Bo(Zo,Ro(t))}catch(t){return!0}};Vo.sham=!0;var Wo=!zo||Io((function(){var t;return Go(Go.call)||!Go(Object)||!Go((function(){t=!0}))||t}))?Vo:Go,$o=Oo,Ho=Wo,qo=it,Yo=de("species"),Ko=Array,Xo=function(t){var e;return $o(t)&&(e=t.constructor,(Ho(e)&&(e===Ko||$o(e.prototype))||qo(e)&&null===(e=e[Yo]))&&(e=void 0)),void 0===e?Ko:e},Jo=function(t,e){return new(Xo(t))(0===e?0:e)},Qo=wo,ti=W,ei=Xt,ri=Sn,ni=Jo,oi=R([].push),ii=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,s=5===t||i;return function(u,c,f,l){for(var h,p,d=ei(u),v=ti(d),m=Qo(c,f),g=ri(v),y=0,b=l||ni,w=e?b(u,g):r||a?b(u,0):void 0;g>y;y++)if((s||y in v)&&(p=m(h=v[y],y,d),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return y;case 2:oi(w,h)}else switch(t){case 4:return!1;case 7:oi(w,h)}return i?-1:n||o?o:w}},ai={forEach:ii(0),map:ii(1),filter:ii(2),some:ii(3),every:ii(4),find:ii(5),findIndex:ii(6),filterReject:ii(7)},si=b,ui=mt,ci=de("species"),fi=function(t){return ui>=51||!si((function(){var e=[];return(e.constructor={})[ci]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},li=ai.map;function hi(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);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}ho({target:"Array",proto:!0,forced:!fi("map")},{map:function(t){return li(this,t,arguments.length>1?arguments[1]:void 0)}});var pi=ai.filter;ho({target:"Array",proto:!0,forced:!fi("filter")},{filter:function(t){return pi(this,t,arguments.length>1?arguments[1]:void 0)}});var di=To,vi=So?{}.toString:function(){return"[object "+di(this)+"]"};So||ln(Object.prototype,"toString",vi,{unsafe:!0});var mi=function(){function t(){e(this,t)}return n(t,null,[{key:"isAdvancedMarkerAvailable",value:function(t){return google.maps.marker&&!0===t.getMapCapabilities().isAdvancedMarkersAvailable}},{key:"isAdvancedMarker",value:function(t){return google.maps.marker&&t instanceof google.maps.marker.AdvancedMarkerElement}},{key:"setMap",value:function(t,e){this.isAdvancedMarker(t)?t.map=e:t.setMap(e)}},{key:"getPosition",value:function(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(t.position.lat&&t.position.lng)return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}},{key:"getVisible",value:function(t){return!!this.isAdvancedMarker(t)||t.getVisible()}}]),t}(),gi=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){var t,e=new google.maps.LatLngBounds(this._position,this._position),r=p(this.markers);try{for(r.s();!(t=r.n()).done;){var n=t.value;e.extend(mi.getPosition(n))}}catch(t){r.e(t)}finally{r.f()}return e}}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(t){return mi.getVisible(t)})).length}},{key:"push",value:function(t){this.markers.push(t)}},{key:"delete",value:function(){this.marker&&(mi.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}]),t}(),yi=function(t,e,r,n){var o=bi(t.getBounds(),e,n);return r.filter((function(t){return o.contains(mi.getPosition(t))}))},bi=function(t,e,r){var n=Oi(t,e),o=n.northEast,i=n.southWest,a=xi({northEast:o,southWest:i},r);return Si(a,e)},wi=function(t,e,r){var n=bi(t,e,r),o=n.getNorthEast(),i=n.getSouthWest();return[i.lng(),i.lat(),o.lng(),o.lat()]},ki=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),i=Math.sin(n/2),a=o*o+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*i*i;return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))},Oi=function(t,e){return{northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}},xi=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}},Si=function(t,e){var r=t.northEast,n=t.southWest,o=e.fromDivPixelToLatLng(n),i=e.fromDivPixelToLatLng(r);return new google.maps.LatLngBounds(o,i)},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 Pi(e)}}]),t}(),Ai=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=hi(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}),changed:!1}:{clusters:this.cluster({markers:yi(r,n,e,this.viewportPadding),map:r,mapCanvasProjection:n})}}}]),i}(Ei),Pi=function(t){return t.map((function(t){return new gi({position:mi.getPosition(t),markers:[t]})}))},Mi={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},ji=je("span").classList,_i=ji&&ji.constructor&&ji.constructor.prototype,Ti=_i===Object.prototype?void 0:_i,Ci=b,Ii=function(t,e){var r=[][t];return!!r&&Ci((function(){r.call(null,e||function(){return 1},1)}))},Li=ai.forEach,Ni=Ii("forEach")?[].forEach:function(t){return Li(this,t,arguments.length>1?arguments[1]:void 0)},Ri=g,Di=Mi,Fi=Ti,zi=Ni,Zi=ar,Bi=function(t){if(t&&t.forEach!==zi)try{Zi(t,"forEach",zi)}catch(e){t.forEach=zi}};for(var Ui in Di)Di[Ui]&&Bi(Ri[Ui]&&Ri[Ui].prototype);Bi(Fi);var Gi=S;ho({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Gi(URL.prototype.toString,this)}});var Vi=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=v(Vi),$i=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=hi(t,["maxDistance","gridSize"]);return(n=r.call(this,c)).clusters=[],n.state={zoom:-1},n.maxDistance=a,n.gridSize=u,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=!Wi(this.state,o)),this.state=o,r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e}),changed:i}:{clusters:this.cluster({markers:yi(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;i<this.clusters.length;i++){var a=this.clusters[i],s=ki(a.bounds.getCenter().toJSON(),mi.getPosition(t).toJSON());s<n&&(n=s,o=a)}if(o&&bi(o.bounds,r,this.gridSize).contains(mi.getPosition(t)))o.push(t);else{var u=new gi({markers:[t]});this.clusters.push(u)}}}]),i}(Ai),Hi=function(t){o(i,t);var r=u(i);function i(t){e(this,i);var n=hi(t,[]);return r.call(this,n)}return n(i,[{key:"calculate",value:function(t){var e=t.markers,r=t.map,n=t.mapCanvasProjection;return{clusters:this.cluster({markers:e,map:r,mapCanvasProjection:n}),changed:!1}}},{key:"cluster",value:function(t){return this.noop(t)}}]),i}(Ei),qi=Nn,Yi=Rn,Ki=Object.keys||function(t){return qi(t,Yi)},Xi=w,Ji=R,Qi=S,ta=b,ea=Ki,ra=zn,na=E,oa=Xt,ia=W,aa=Object.assign,sa=Object.defineProperty,ua=Ji([].concat),ca=!aa||ta((function(){if(Xi&&1!==aa({b:1},aa(sa({},"a",{enumerable:!0,get:function(){sa(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!==aa({},t)[r]||ea(aa({},e)).join("")!==n}))?function(t,e){for(var r=oa(t),n=arguments.length,o=1,i=ra.f,a=na.f;n>o;)for(var s,u=ia(arguments[o++]),c=i?ua(ea(u),i(u)):ea(u),f=c.length,l=0;f>l;)s=c[l++],Xi&&!Qi(a,u,s)||(r[s]=u[s]);return r}:aa,fa=ca;ho({target:"Object",stat:!0,arity:2,forced:Object.assign!==fa},{assign:fa});const la=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class ha{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[e,r]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const n=r>>4;if(1!==n)throw new Error(`Got v${n} data when expected v1.`);const o=la[15&r];if(!o)throw new Error("Unrecognized array type.");const[i]=new Uint16Array(t,2,1),[a]=new Uint32Array(t,4,1);return new ha(a,i,o,t)}constructor(t,e=64,r=Float64Array,n){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const o=la.indexOf(this.ArrayType),i=2*t*this.ArrayType.BYTES_PER_ELEMENT,a=t*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-a%8)%8;if(o<0)throw new Error(`Unexpected typed array class: ${r}.`);n&&n instanceof ArrayBuffer?(this.data=n,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+s,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+i+a+s),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+s,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return pa(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:i,nodeSize:a}=this,s=[0,o.length-1,0],u=[];for(;s.length;){const c=s.pop()||0,f=s.pop()||0,l=s.pop()||0;if(f-l<=a){for(let a=l;a<=f;a++){const s=i[2*a],c=i[2*a+1];s>=t&&s<=r&&c>=e&&c<=n&&u.push(o[a])}continue}const h=l+f>>1,p=i[2*h],d=i[2*h+1];p>=t&&p<=r&&d>=e&&d<=n&&u.push(o[h]),(0===c?t<=p:e<=d)&&(s.push(l),s.push(h-1),s.push(1-c)),(0===c?r>=p:n>=d)&&(s.push(h+1),s.push(f),s.push(1-c))}return u}within(t,e,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:o,nodeSize:i}=this,a=[0,n.length-1,0],s=[],u=r*r;for(;a.length;){const c=a.pop()||0,f=a.pop()||0,l=a.pop()||0;if(f-l<=i){for(let r=l;r<=f;r++)ga(o[2*r],o[2*r+1],t,e)<=u&&s.push(n[r]);continue}const h=l+f>>1,p=o[2*h],d=o[2*h+1];ga(p,d,t,e)<=u&&s.push(n[h]),(0===c?t-r<=p:e-r<=d)&&(a.push(l),a.push(h-1),a.push(1-c)),(0===c?t+r>=p:e+r>=d)&&(a.push(h+1),a.push(f),a.push(1-c))}return s}}function pa(t,e,r,n,o,i){if(o-n<=r)return;const a=n+o>>1;da(t,e,a,n,o,i),pa(t,e,r,n,a-1,1-i),pa(t,e,r,a+1,o,1-i)}function da(t,e,r,n,o,i){for(;o>n;){if(o-n>600){const a=o-n+1,s=r-n+1,u=Math.log(a),c=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*c*(a-c)/a)*(s-a/2<0?-1:1);da(t,e,r,Math.max(n,Math.floor(r-s*c/a+f)),Math.min(o,Math.floor(r+(a-s)*c/a+f)),i)}const a=e[2*r+i];let s=n,u=o;for(va(t,e,n,r),e[2*o+i]>a&&va(t,e,n,o);s<u;){for(va(t,e,s,u),s++,u--;e[2*s+i]<a;)s++;for(;e[2*u+i]>a;)u--}e[2*n+i]===a?va(t,e,n,u):(u++,va(t,e,u,o)),u<=r&&(n=u+1),r<=u&&(o=u-1)}}function va(t,e,r,n){ma(t,r,n),ma(e,2*r,2*n),ma(e,2*r+1,2*n+1)}function ma(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function ga(t,e,r,n){const o=t-r,i=e-n;return o*o+i*i}const ya={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},ba=Math.fround||(wa=new Float32Array(1),t=>(wa[0]=+t,wa[0]));var wa;const ka=3,Oa=5,xa=6;class Sa{constructor(t){this.options=Object.assign(Object.create(ya),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:r,maxZoom:n}=this.options;e&&console.time("total time");const o=`prepare ${t.length} points`;e&&console.time(o),this.points=t;const i=[];for(let e=0;e<t.length;e++){const r=t[e];if(!r.geometry)continue;const[n,o]=r.geometry.coordinates,a=ba(Pa(n)),s=ba(Ma(o));i.push(a,s,1/0,e,-1,1),this.options.reduce&&i.push(0)}let a=this.trees[n+1]=this._createTree(i);e&&console.timeEnd(o);for(let t=n;t>=r;t--){const r=+Date.now();a=this.trees[t]=this._createTree(this._cluster(a,t)),e&&console.log("z%d: %d clusters in %dms",t,a.numItems,+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(Pa(r),Ma(i),Pa(o),Ma(n)),u=a.data,c=[];for(const t of s){const e=this.stride*t;c.push(u[e+Oa]>1?Ea(u,e,this.clusterProps):this.points[u[e+ka]])}return c}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.data;if(e*this.stride>=i.length)throw new Error(n);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=i[e*this.stride],u=i[e*this.stride+1],c=o.within(s,u,a),f=[];for(const e of c){const r=e*this.stride;i[r+4]===t&&f.push(i[r+Oa]>1?Ea(i,r,this.clusterProps):this.points[i[r+ka]])}if(0===f.length)throw new Error(n);return f}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.data,e,r,o,f),0===e&&this._addTileFeatures(n.range(1-s/o,u,1,c),n.data,o,r,o,f),e===o-1&&this._addTileFeatures(n.range(0,u,s/o,c),n.data,-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):o<n?o++:t.push(e),t.length===r)break}return o}_createTree(t){const e=new ha(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)e.add(t[r],t[r+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,r,n,o,i){for(const a of t){const t=a*this.stride,s=e[t+Oa]>1;let u,c,f;if(s)u=Aa(e,t,this.clusterProps),c=e[t],f=e[t+1];else{const r=this.points[e[t+ka]];u=r.properties;const[n,o]=r.geometry.coordinates;c=Pa(n),f=Ma(o)}const l={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(f*o-n))]],tags:u};let h;h=s||this.options.generateId?e[t+ka]:this.points[e[t+ka]].id,void 0!==h&&(l.id=h),i.features.push(l)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const{radius:r,extent:n,reduce:o,minPoints:i}=this.options,a=r/(n*Math.pow(2,e)),s=t.data,u=[],c=this.stride;for(let r=0;r<s.length;r+=c){if(s[r+2]<=e)continue;s[r+2]=e;const n=s[r],f=s[r+1],l=t.within(s[r],s[r+1],a),h=s[r+Oa];let p=h;for(const t of l){const r=t*c;s[r+2]>e&&(p+=s[r+Oa])}if(p>h&&p>=i){let t,i=n*h,a=f*h,d=-1;const v=((r/c|0)<<5)+(e+1)+this.points.length;for(const n of l){const u=n*c;if(s[u+2]<=e)continue;s[u+2]=e;const f=s[u+Oa];i+=s[u]*f,a+=s[u+1]*f,s[u+4]=v,o&&(t||(t=this._map(s,r,!0),d=this.clusterProps.length,this.clusterProps.push(t)),o(t,this._map(s,u)))}s[r+4]=v,u.push(i/p,a/p,1/0,v,-1,p),o&&u.push(d)}else{for(let t=0;t<c;t++)u.push(s[r+t]);if(p>1)for(const t of l){const r=t*c;if(!(s[r+2]<=e)){s[r+2]=e;for(let t=0;t<c;t++)u.push(s[r+t])}}}}return u}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,r){if(t[e+Oa]>1){const n=this.clusterProps[t[e+xa]];return r?Object.assign({},n):n}const n=this.points[t[e+ka]].properties,o=this.options.map(n);return r&&o===n?Object.assign({},o):o}}function Ea(t,e,r){return{type:"Feature",id:t[e+ka],properties:Aa(t,e,r),geometry:{type:"Point",coordinates:[(n=t[e],360*(n-.5)),ja(t[e+1])]}};var n}function Aa(t,e,r){const n=t[e+Oa],o=n>=1e4?`${Math.round(n/1e3)}k`:n>=1e3?Math.round(n/100)/10+"k":n,i=t[e+xa],a=-1===i?{}:Object.assign({},r[i]);return Object.assign(a,{cluster:!0,cluster_id:t[e+ka],point_count:n,point_count_abbreviated:o})}function Pa(t){return t/360+.5}function Ma(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 ja(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}var _a=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=hi(t,["maxZoom","radius"]);return(n=r.call(this,{maxZoom:o})).state={zoom:-1},n.superCluster=new Sa(Object.assign({maxZoom:n.maxZoom,radius:s},u)),n}return n(i,[{key:"calculate",value:function(t){var e=!1,r={zoom:t.map.getZoom()};if(!Wi(t.markers,this.markers)){e=!0,this.markers=f(t.markers);var n=this.markers.map((function(t){var e=mi.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(n)}return e||(this.state.zoom<=this.maxZoom||r.zoom<=this.maxZoom)&&(e=!Wi(this.state,r)),this.state=r,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}},{key:"cluster",value:function(t){var e=this,r=t.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(r.getZoom())).map((function(t){return e.transformCluster(t)}))}},{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 gi({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:{lat:n,lng:r}});var i=o.marker;return new gi({markers:[i],position:mi.getPosition(i)})}}]),i}(Ei),Ta=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=t.viewportPadding,c=void 0===u?60:u,f=hi(t,["maxZoom","radius","viewportPadding"]);return(n=r.call(this,{maxZoom:o,viewportPadding:c})).superCluster=new Sa(Object.assign({maxZoom:n.maxZoom,radius:s},f)),n.state={zoom:-1,view:[0,0,0,0]},n}return n(i,[{key:"calculate",value:function(t){var e={zoom:Math.round(t.map.getZoom()),view:wi(t.map.getBounds(),t.mapCanvasProjection,this.viewportPadding)},r=!Wi(this.state,e);if(!Wi(t.markers,this.markers)){r=!0,this.markers=f(t.markers);var n=this.markers.map((function(t){var e=mi.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(n)}return r&&(this.clusters=this.cluster(t),this.state=e),{clusters:this.clusters,changed:r}}},{key:"cluster",value:function(t){var e=this,r=t.map,n=t.mapCanvasProjection,o={zoom:Math.round(r.getZoom()),view:wi(r.getBounds(),n,this.viewportPadding)};return this.superCluster.getClusters(o.view,o.zoom).map((function(t){return e.transformCluster(t)}))}},{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 gi({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(t){return t.properties.marker})),position:{lat:n,lng:r}});var i=o.marker;return new gi({markers:[i],position:mi.getPosition(i)})}}]),i}(Ai),Ca={},Ia=w,La=Ue,Na=Be,Ra=$e,Da=J,Fa=Ki;Ca.f=Ia&&!La?Object.defineProperties:function(t,e){Ra(t);for(var r,n=Da(e),o=Fa(e),i=o.length,a=0;i>a;)Na.f(t,r=o[a++],n[r]);return t};var za,Za=ut("document","documentElement"),Ba=$e,Ua=Ca,Ga=Rn,Va=Pr,Wa=Za,$a=je,Ha="prototype",qa="script",Ya=Ar("IE_PROTO"),Ka=function(){},Xa=function(t){return"<"+qa+">"+t+"</"+qa+">"},Ja=function(t){t.write(Xa("")),t.close();var e=t.parentWindow.Object;return t=null,e},Qa=function(){try{za=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Qa="undefined"!=typeof document?document.domain&&za?Ja(za):(e=$a("iframe"),r="java"+qa+":",e.style.display="none",Wa.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Xa("document.F=Object")),t.close(),t.F):Ja(za);for(var n=Ga.length;n--;)delete Qa[Ha][Ga[n]];return Qa()};Va[Ya]=!0;var ts=Object.create||function(t,e){var r;return null!==t?(Ka[Ha]=Ba(t),r=new Ka,Ka[Ha]=null,r[Ya]=t):r=Qa(),void 0===e?r:Ua.f(r,e)},es=de,rs=ts,ns=Be.f,os=es("unscopables"),is=Array.prototype;void 0===is[os]&&ns(is,os,{configurable:!0,value:rs(null)});var as=function(t){is[os][t]=!0},ss=jn.includes,us=as;ho({target:"Array",proto:!0,forced:b((function(){return!Array(1).includes()}))},{includes:function(t){return ss(this,t,arguments.length>1?arguments[1]:void 0)}}),us("includes");var cs=it,fs=Z,ls=de("match"),hs=function(t){var e;return cs(t)&&(void 0!==(e=t[ls])?!!e:"RegExp"===fs(t))},ps=TypeError,ds=To,vs=String,ms=function(t){if("Symbol"===ds(t))throw TypeError("Cannot convert a Symbol value to a string");return vs(t)},gs=de("match"),ys=ho,bs=function(t){if(hs(t))throw ps("The method doesn't accept regular expressions");return t},ws=Y,ks=ms,Os=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[gs]=!1,"/./"[t](e)}catch(t){}}return!1},xs=R("".indexOf);ys({target:"String",proto:!0,forced:!Os("includes")},{includes:function(t){return!!~xs(ks(ws(this)),ks(bs(t)),arguments.length>1?arguments[1]:void 0)}});var Ss=ho,Es=jn.indexOf,As=Ii,Ps=mo([].indexOf),Ms=!!Ps&&1/Ps([1],1,-0)<0;Ss({target:"Array",proto:!0,forced:Ms||!As("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Ms?Ps(this,t,e)||0:Es(this,t,e)}});var js=w,_s=Oo,Ts=TypeError,Cs=Object.getOwnPropertyDescriptor,Is=js&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Ls=TypeError,Ns=function(t){if(t>9007199254740991)throw Ls("Maximum allowed index exceeded");return t},Rs=Ee,Ds=Be,Fs=T,zs=function(t,e,r){var n=Rs(e);n in t?Ds.f(t,n,Fs(0,r)):t[n]=r},Zs=Mt,Bs=TypeError,Us=ho,Gs=Xt,Vs=wn,Ws=mn,$s=Sn,Hs=Is?function(t,e){if(_s(t)&&!Cs(t,"length").writable)throw Ts("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},qs=Ns,Ys=Jo,Ks=zs,Xs=function(t,e){if(!delete t[e])throw Bs("Cannot delete property "+Zs(e)+" of "+Zs(t))},Js=fi("splice"),Qs=Math.max,tu=Math.min;Us({target:"Array",proto:!0,forced:!Js},{splice:function(t,e){var r,n,o,i,a,s,u=Gs(this),c=$s(u),f=Vs(t,c),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=c-f):(r=l-2,n=tu(Qs(Ws(e),0),c-f)),qs(c+r-n),o=Ys(u,n),i=0;i<n;i++)(a=f+i)in u&&Ks(o,i,u[a]);if(o.length=n,r<n){for(i=f;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Xs(u,s);for(i=c;i>c-n+r;i--)Xs(u,i-1)}else if(r>n)for(i=c-n;i>f;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Xs(u,s);for(i=0;i<r;i++)u[i+f]=arguments[i+2];return Hs(u,c-n+r),o}});var eu,ru,nu,ou={},iu=!b((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),au=te,su=rt,uu=Xt,cu=iu,fu=Ar("IE_PROTO"),lu=Object,hu=lu.prototype,pu=cu?lu.getPrototypeOf:function(t){var e=uu(t);if(au(e,fu))return e[fu];var r=e.constructor;return su(r)&&e instanceof r?r.prototype:e instanceof lu?hu:null},du=b,vu=rt,mu=it,gu=pu,yu=ln,bu=de("iterator"),wu=!1;[].keys&&("next"in(nu=[].keys())?(ru=gu(gu(nu)))!==Object.prototype&&(eu=ru):wu=!0);var ku=!mu(eu)||du((function(){var t={};return eu[bu].call(t)!==t}));ku&&(eu={}),vu(eu[bu])||yu(eu,bu,(function(){return this}));var Ou={IteratorPrototype:eu,BUGGY_SAFARI_ITERATORS:wu},xu=Be.f,Su=te,Eu=de("toStringTag"),Au=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Su(t,Eu)&&xu(t,Eu,{configurable:!0,value:e})},Pu=Ou.IteratorPrototype,Mu=ts,ju=T,_u=Au,Tu=ou,Cu=function(){return this},Iu=R,Lu=Ct,Nu=rt,Ru=String,Du=TypeError,Fu=function(t,e,r){try{return Iu(Lu(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},zu=$e,Zu=function(t){if("object"==typeof t||Nu(t))return t;throw Du("Can't set "+Ru(t)+" as a prototype")},Bu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Fu(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return zu(r),Zu(n),e?t(r,n):r.__proto__=n,r}}():void 0),Uu=ho,Gu=S,Vu=rt,Wu=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Mu(Pu,{next:ju(+!n,r)}),_u(t,o,!1),Tu[o]=Cu,t},$u=pu,Hu=Bu,qu=Au,Yu=ar,Ku=ln,Xu=ou,Ju=pr.PROPER,Qu=pr.CONFIGURABLE,tc=Ou.IteratorPrototype,ec=Ou.BUGGY_SAFARI_ITERATORS,rc=de("iterator"),nc="keys",oc="values",ic="entries",ac=function(){return this},sc=function(t,e,r,n,o,i,a){Wu(r,e,n);var s,u,c,f=function(t){if(t===o&&v)return v;if(!ec&&t in p)return p[t];switch(t){case nc:case oc:case ic:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,d=p[rc]||p["@@iterator"]||o&&p[o],v=!ec&&d||f(o),m="Array"===e&&p.entries||d;if(m&&(s=$u(m.call(new t)))!==Object.prototype&&s.next&&($u(s)!==tc&&(Hu?Hu(s,tc):Vu(s[rc])||Ku(s,rc,ac)),qu(s,l,!0)),Ju&&o===oc&&d&&d.name!==oc&&(Qu?Yu(p,"name",oc):(h=!0,v=function(){return Gu(d,this)})),o)if(u={values:f(oc),keys:i?v:f(nc),entries:f(ic)},a)for(c in u)(ec||h||!(c in p))&&Ku(p,c,u[c]);else Uu({target:e,proto:!0,forced:ec||h},u);return p[rc]!==v&&Ku(p,rc,v,{name:o}),Xu[e]=v,u},uc=function(t,e){return{value:t,done:e}},cc=J,fc=as,lc=ou,hc=Br,pc=Be.f,dc=sc,vc=uc,mc=w,gc="Array Iterator",yc=hc.set,bc=hc.getterFor(gc),wc=dc(Array,"Array",(function(t,e){yc(this,{type:gc,target:cc(t),index:0,kind:e})}),(function(){var t=bc(this),e=t.target,r=t.kind,n=t.index++;if(!e||n>=e.length)return t.target=void 0,vc(void 0,!0);switch(r){case"keys":return vc(n,!1);case"values":return vc(e[n],!1)}return vc([n,e[n]],!1)}),"values"),kc=lc.Arguments=lc.Array;if(fc("keys"),fc("values"),fc("entries"),mc&&"values"!==kc.name)try{pc(kc,"name",{value:"values"})}catch(t){}var Oc={exports:{}},xc={},Sc=wn,Ec=Sn,Ac=zs,Pc=Array,Mc=Math.max,jc=Z,_c=J,Tc=hn.f,Cc=function(t,e,r){for(var n=Ec(t),o=Sc(e,n),i=Sc(void 0===r?n:r,n),a=Pc(Mc(i-o,0)),s=0;o<i;o++,s++)Ac(a,s,t[o]);return a.length=s,a},Ic="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];xc.f=function(t){return Ic&&"Window"===jc(t)?function(t){try{return Tc(t)}catch(t){return Cc(Ic)}}(t):Tc(_c(t))};var Lc=b((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Nc=b,Rc=it,Dc=Z,Fc=Lc,zc=Object.isExtensible,Zc=Nc((function(){zc(1)}))||Fc?function(t){return!!Rc(t)&&((!Fc||"ArrayBuffer"!==Dc(t))&&(!zc||zc(t)))}:zc,Bc=!b((function(){return Object.isExtensible(Object.preventExtensions({}))})),Uc=ho,Gc=R,Vc=Pr,Wc=it,$c=te,Hc=Be.f,qc=hn,Yc=xc,Kc=Zc,Xc=Bc,Jc=!1,Qc=ie("meta"),tf=0,ef=function(t){Hc(t,Qc,{value:{objectID:"O"+tf++,weakData:{}}})},rf=Oc.exports={enable:function(){rf.enable=function(){},Jc=!0;var t=qc.f,e=Gc([].splice),r={};r[Qc]=1,t(r).length&&(qc.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===Qc){e(n,o,1);break}return n},Uc({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Yc.f}))},fastKey:function(t,e){if(!Wc(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!$c(t,Qc)){if(!Kc(t))return"F";if(!e)return"E";ef(t)}return t[Qc].objectID},getWeakData:function(t,e){if(!$c(t,Qc)){if(!Kc(t))return!0;if(!e)return!1;ef(t)}return t[Qc].weakData},onFreeze:function(t){return Xc&&Jc&&Kc(t)&&!$c(t,Qc)&&ef(t),t}};Vc[Qc]=!0;var nf=Oc.exports,of=ou,af=de("iterator"),sf=Array.prototype,uf=To,cf=Nt,ff=$,lf=ou,hf=de("iterator"),pf=function(t){if(!ff(t))return cf(t,hf)||cf(t,"@@iterator")||lf[uf(t)]},df=S,vf=Ct,mf=$e,gf=Mt,yf=pf,bf=TypeError,wf=S,kf=$e,Of=Nt,xf=wo,Sf=S,Ef=$e,Af=Mt,Pf=function(t){return void 0!==t&&(of.Array===t||sf[af]===t)},Mf=Sn,jf=ct,_f=function(t,e){var r=arguments.length<2?yf(t):e;if(vf(r))return mf(df(r,t));throw bf(gf(t)+" is not iterable")},Tf=pf,Cf=function(t,e,r){var n,o;kf(t);try{if(!(n=Of(t,"return"))){if("throw"===e)throw r;return r}n=wf(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return kf(n),r},If=TypeError,Lf=function(t,e){this.stopped=t,this.result=e},Nf=Lf.prototype,Rf=function(t,e,r){var n,o,i,a,s,u,c,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=xf(e,f),m=function(t){return n&&Cf(n,"normal",t),new Lf(!0,t)},g=function(t){return l?(Ef(t),d?v(t[0],t[1],m):v(t[0],t[1])):d?v(t,m):v(t)};if(h)n=t.iterator;else if(p)n=t;else{if(!(o=Tf(t)))throw If(Af(t)+" is not iterable");if(Pf(o)){for(i=0,a=Mf(t);a>i;i++)if((s=g(t[i]))&&jf(Nf,s))return s;return new Lf(!1)}n=_f(t,o)}for(u=h?t.next:n.next;!(c=Sf(u,n)).done;){try{s=g(c.value)}catch(t){Cf(n,"throw",t)}if("object"==typeof s&&s&&jf(Nf,s))return s}return new Lf(!1)},Df=ct,Ff=TypeError,zf=function(t,e){if(Df(e,t))return t;throw Ff("Incorrect invocation")},Zf=de("iterator"),Bf=!1;try{var Uf=0,Gf={next:function(){return{done:!!Uf++}},return:function(){Bf=!0}};Gf[Zf]=function(){return this},Array.from(Gf,(function(){throw 2}))}catch(t){}var Vf=rt,Wf=it,$f=Bu,Hf=function(t,e,r){var n,o;return $f&&Vf(n=e.constructor)&&n!==r&&Wf(o=n.prototype)&&o!==r.prototype&&$f(t,o),t},qf=ho,Yf=g,Kf=R,Xf=oo,Jf=ln,Qf=nf,tl=Rf,el=zf,rl=rt,nl=$,ol=it,il=b,al=function(t,e){if(!e&&!Bf)return!1;var r=!1;try{var n={};n[Zf]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},sl=Au,ul=Hf,cl=an,fl=Be,ll=function(t,e,r){return r.get&&cl(r.get,e,{getter:!0}),r.set&&cl(r.set,e,{setter:!0}),fl.f(t,e,r)},hl=ln,pl=ut,dl=ll,vl=w,ml=de("species"),gl=ts,yl=ll,bl=function(t,e,r){for(var n in e)hl(t,n,e[n],r);return t},wl=wo,kl=zf,Ol=$,xl=Rf,Sl=sc,El=uc,Al=function(t){var e=pl(t);vl&&e&&!e[ml]&&dl(e,ml,{configurable:!0,get:function(){return this}})},Pl=w,Ml=nf.fastKey,jl=Br.set,_l=Br.getterFor,Tl={getConstructor:function(t,e,r,n){var o=t((function(t,o){kl(t,i),jl(t,{type:e,index:gl(null),first:void 0,last:void 0,size:0}),Pl||(t.size=0),Ol(o)||xl(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,a=_l(e),s=function(t,e,r){var n,o,i=a(t),s=u(t,e);return s?s.value=r:(i.last=s={index:o=Ml(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),Pl?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},u=function(t,e){var r,n=a(t),o=Ml(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return bl(i,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,Pl?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=u(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),Pl?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=wl(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),bl(i,r?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),Pl&&yl(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=_l(e),i=_l(n);Sl(t,e,(function(t,e){jl(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?El("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=void 0,El(void 0,!0))}),r?"entries":"values",!r,!0),Al(e)}};(function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",a=Yf[t],s=a&&a.prototype,u=a,c={},f=function(t){var e=Kf(s[t]);Jf(s,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!ol(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!ol(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!ol(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(Xf(t,!rl(a)||!(o||s.forEach&&!il((function(){(new a).entries().next()})))))u=r.getConstructor(e,t,n,i),Qf.enable();else if(Xf(t,!0)){var l=new u,h=l[i](o?{}:-0,1)!==l,p=il((function(){l.has(1)})),d=al((function(t){new a(t)})),v=!o&&il((function(){for(var t=new a,e=5;e--;)t[i](e,e);return!t.has(-0)}));d||((u=e((function(t,e){el(t,s);var r=ul(new a,t,u);return nl(e)||tl(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=s,s.constructor=u),(p||v)&&(f("delete"),f("has"),n&&f("get")),(v||h)&&f(i),o&&s.clear&&delete s.clear}c[t]=u,qf({global:!0,constructor:!0,forced:u!==a},c),sl(u,t),o||r.setStrong(u,t,n)})("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Tl);var Cl=R,Il=mn,Ll=ms,Nl=Y,Rl=Cl("".charAt),Dl=Cl("".charCodeAt),Fl=Cl("".slice),zl=function(t){return function(e,r){var n,o,i=Ll(Nl(e)),a=Il(r),s=i.length;return a<0||a>=s?t?"":void 0:(n=Dl(i,a))<55296||n>56319||a+1===s||(o=Dl(i,a+1))<56320||o>57343?t?Rl(i,a):n:t?Fl(i,a,a+2):o-56320+(n-55296<<10)+65536}},Zl={codeAt:zl(!1),charAt:zl(!0)}.charAt,Bl=ms,Ul=Br,Gl=sc,Vl=uc,Wl="String Iterator",$l=Ul.set,Hl=Ul.getterFor(Wl);Gl(String,"String",(function(t){$l(this,{type:Wl,string:Bl(t),index:0})}),(function(){var t,e=Hl(this),r=e.string,n=e.index;return n>=r.length?Vl(void 0,!0):(t=Zl(r,n),e.index+=t.length,Vl(t,!1))}));var ql=g,Yl=Mi,Kl=Ti,Xl=wc,Jl=ar,Ql=de,th=Ql("iterator"),eh=Ql("toStringTag"),rh=Xl.values,nh=function(t,e){if(t){if(t[th]!==rh)try{Jl(t,th,rh)}catch(e){t[th]=rh}if(t[eh]||Jl(t,eh,e),Yl[e])for(var r in Xl)if(t[r]!==Xl[r])try{Jl(t,r,Xl[r])}catch(e){t[r]=Xl[r]}}};for(var oh in Yl)nh(ql[oh]&&ql[oh].prototype,oh);nh(Kl,"DOMTokenList");var ih=Ct,ah=Xt,sh=W,uh=Sn,ch=TypeError,fh=function(t){return function(e,r,n,o){ih(r);var i=ah(e),a=sh(i),s=uh(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 ch("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}},lh={left:fh(!1),right:fh(!0)},hh="process"===Z(g.process),ph=lh.left;ho({target:"Array",proto:!0,forced:!hh&&mt>79&&mt<83||!Ii("reduce")},{reduce:function(t){var e=arguments.length;return ph(this,t,e,e>1?arguments[1]:void 0)}});var dh=ho,vh=b,mh=Oo,gh=it,yh=Xt,bh=Sn,wh=Ns,kh=zs,Oh=Jo,xh=fi,Sh=mt,Eh=de("isConcatSpreadable"),Ah=Sh>=51||!vh((function(){var t=[];return t[Eh]=!1,t.concat()[0]!==t})),Ph=function(t){if(!gh(t))return!1;var e=t[Eh];return void 0!==e?!!e:mh(t)};dh({target:"Array",proto:!0,arity:1,forced:!Ah||!xh("concat")},{concat:function(t){var e,r,n,o,i,a=yh(this),s=Oh(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Ph(i=-1===e?a:arguments[e]))for(o=bh(i),wh(u+o),r=0;r<o;r++,u++)r in i&&kh(s,u,i[r]);else wh(u+1),kh(s,u++,i);return s.length=u,s}});var Mh=g,jh=R(1..valueOf),_h=Y,Th=ms,Ch="\t\n\v\f\r \u2028\u2029\ufeff",Ih=R("".replace),Lh=RegExp("^["+Ch+"]+"),Nh=RegExp("(^|[^"+Ch+"])["+Ch+"]+$"),Rh=function(t){return function(e){var r=Th(_h(e));return 1&t&&(r=Ih(r,Lh,"")),2&t&&(r=Ih(r,Nh,"$1")),r}},Dh={start:Rh(1),end:Rh(2),trim:Rh(3)},Fh=ho,zh=w,Zh=g,Bh=Mh,Uh=R,Gh=oo,Vh=te,Wh=Hf,$h=ct,Hh=At,qh=Oe,Yh=b,Kh=hn.f,Xh=y.f,Jh=Be.f,Qh=jh,tp=Dh.trim,ep="Number",rp=Zh[ep];Bh[ep];var np=rp.prototype,op=Zh.TypeError,ip=Uh("".slice),ap=Uh("".charCodeAt),sp=function(t){var e,r,n,o,i,a,s,u,c=qh(t,"number");if(Hh(c))throw op("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=tp(c),43===(e=ap(c,0))||45===e){if(88===(r=ap(c,2))||120===r)return NaN}else if(48===e){switch(ap(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=ip(c,2)).length,s=0;s<a;s++)if((u=ap(i,s))<48||u>o)return NaN;return parseInt(i,n)}return+c},up=Gh(ep,!rp(" 0o1")||!rp("0b1")||rp("+0x1")),cp=function(t){var e,r=arguments.length<1?0:rp(function(t){var e=qh(t,"number");return"bigint"==typeof e?e:sp(e)}(t));return $h(np,e=this)&&Yh((function(){Qh(e)}))?Wh(Object(r),this,cp):r};cp.prototype=np,up&&(np.constructor=cp),Fh({global:!0,constructor:!0,wrap:!0,forced:up},{Number:cp});up&&function(t,e){for(var r,n=zh?Kh(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)Vh(e,r=n[o])&&!Vh(t,r)&&Jh(t,r,Xh(e,r))}(Bh[ep],rp);var fp=n((function t(r,n){e(this,t),this.markers={sum:r.length};var o=n.map((function(t){return t.count})),i=o.reduce((function(t,e){return t+e}),0);this.clusters={count:n.length,markers:{mean:i/n.length,sum:i,min:Math.min.apply(Math,f(o)),max:Math.max.apply(Math,f(o))}}})),lp=function(){function t(){e(this,t)}return n(t,[{key:"render",value:function(t,e,r){var n=t.count,o=t.position,i=n>Math.max(10,e.clusters.markers.mean)?"#ff0000":"#0000ff",a='<svg fill="'.concat(i,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">').concat(n,"</text>\n</svg>"),s="Cluster of ".concat(n," markers"),u=Number(google.maps.Marker.MAX_ZINDEX)+n;if(mi.isAdvancedMarkerAvailable(r)){var c=(new DOMParser).parseFromString(a,"image/svg+xml").documentElement;c.setAttribute("transform","translate(0 25)");var f={map:r,position:o,zIndex:u,title:s,content:c};return new google.maps.marker.AdvancedMarkerElement(f)}var l={position:o,zIndex:u,title:s,icon:{url:"data:image/svg+xml;base64,".concat(btoa(a)),anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(l)}}]),t}();var hp,pp=n((function t(){e(this,t),function(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}(t,google.maps.OverlayView)}));t.MarkerClustererEvents=void 0,(hp=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",hp.CLUSTERING_END="clusteringend",hp.CLUSTER_CLICK="click";var dp=function(t,e,r){r.fitBounds(e.bounds)},vp=function(r){o(a,r);var i=u(a);function a(t){var r,n=t.map,o=t.markers,s=void 0===o?[]:o,u=t.algorithmOptions,c=void 0===u?{}:u,l=t.algorithm,h=void 0===l?new _a(c):l,p=t.renderer,d=void 0===p?new lp:p,v=t.onClusterClick,m=void 0===v?dp:v;return e(this,a),(r=i.call(this)).markers=f(s),r.clusters=[],r.algorithm=h,r.renderer=d,r.onClusterClick=m,n&&r.setMap(n),r}return n(a,[{key:"addMarker",value:function(t,e){this.markers.includes(t)||(this.markers.push(t),e||this.render())}},{key:"addMarkers",value:function(t,e){var r=this;t.forEach((function(t){r.addMarker(t,!0)})),e||this.render()}},{key:"removeMarker",value:function(t,e){var r=this.markers.indexOf(t);return-1!==r&&(mi.setMap(t,null),this.markers.splice(r,1),e||this.render(),!0)}},{key:"removeMarkers",value:function(t,e){var r=this,n=!1;return t.forEach((function(t){n=r.removeMarker(t,!0)||n})),n&&!e&&this.render(),n}},{key:"clearMarkers",value:function(t){this.markers.length=0,t||this.render()}},{key:"render",value:function(){var e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_BEGIN,this);var r=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=r.clusters,o=r.changed;if(o||null==o){var i,a=new Set,s=p(n);try{for(s.s();!(i=s.n()).done;){var u=i.value;1==u.markers.length&&a.add(u.markers[0])}}catch(t){s.e(t)}finally{s.f()}var c,f=[],l=p(this.clusters);try{for(l.s();!(c=l.n()).done;){var h=c.value;null!=h.marker&&(1==h.markers.length?a.has(h.marker)||mi.setMap(h.marker,null):f.push(h.marker))}}catch(t){l.e(t)}finally{l.f()}this.clusters=n,this.renderClusters(),requestAnimationFrame((function(){return f.forEach((function(t){return mi.setMap(t,null)}))}))}google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_END,this)}}},{key:"onAdd",value:function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}},{key:"onRemove",value:function(){google.maps.event.removeListener(this.idleListener),this.reset()}},{key:"reset",value:function(){this.markers.forEach((function(t){return mi.setMap(t,null)})),this.clusters.forEach((function(t){return t.delete()})),this.clusters=[]}},{key:"renderClusters",value:function(){var e=this,r=new fp(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(o){1===o.markers.length?o.marker=o.markers[0]:(o.marker=e.renderer.render(o,r,n),o.markers.forEach((function(t){return mi.setMap(t,null)})),e.onClusterClick&&o.marker.addListener("click",(function(r){google.maps.event.trigger(e,t.MarkerClustererEvents.CLUSTER_CLICK,o),e.onClusterClick(r,o,n)}))),mi.setMap(o.marker,n)}))}}]),a}(pp);t.AbstractAlgorithm=Ei,t.AbstractViewportAlgorithm=Ai,t.Cluster=gi,t.ClusterStats=fp,t.DefaultRenderer=lp,t.GridAlgorithm=$i,t.MarkerClusterer=vp,t.NoopAlgorithm=Hi,t.SuperClusterAlgorithm=_a,t.SuperClusterViewportAlgorithm=Ta,t.defaultOnClusterClickHandler=dp,t.distanceBetweenPoints=ki,t.extendBoundsToPaddedViewport=bi,t.extendPixelBounds=xi,t.filterMarkersToPaddedViewport=yi,t.getPaddedViewport=wi,t.noop=Pi,t.pixelBoundsToLatLngBounds=Si,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.umd.js.map |
@@ -18,6 +18,9 @@ /** | ||
/** | ||
* Supports markers of either either "legacy" or "advanced" types. | ||
*/ | ||
export type Marker = google.maps.Marker | google.maps.marker.AdvancedMarkerElement; | ||
/** | ||
* util class that creates a common set of convenience functions to wrap | ||
* shared behavior of Advanced Markers and Markers. | ||
*/ | ||
export type Marker = google.maps.Marker | google.maps.marker.AdvancedMarkerElement; | ||
export declare class MarkerUtils { | ||
@@ -24,0 +27,0 @@ static isAdvancedMarkerAvailable(map: google.maps.Map): boolean; |
{ | ||
"name": "@googlemaps/markerclusterer", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "Creates and manages per-zoom-level clusters for large amounts of markers.", | ||
@@ -62,3 +62,3 @@ "keywords": [ | ||
"eslint": "^8.41.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-jest": "^27.0.1", | ||
@@ -74,3 +74,3 @@ "eslint-plugin-prettier": "^4.0.0", | ||
"ts-jest": "^26.3.0", | ||
"typedoc": "^0.24.7", | ||
"typedoc": "^0.25.0", | ||
"typescript": "^4.0.2" | ||
@@ -77,0 +77,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1089532
7086