File manager - Edit - /home/opticamezl/www/newok/templates/yootheme/packages/builder/elements/map/app/map-google-markerclusterer.min.js
Back
/*! YOOtheme Pro v4.5.33 | https://yootheme.com */ var wi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hs(V){return V&&V.__esModule&&Object.prototype.hasOwnProperty.call(V,"default")?V.default:V}var nt={exports:{}},ps=nt.exports,bi;function ds(){return bi||(bi=1,(function(V,Ei){(function(O,H){H(Ei)})(ps,function(O){var H,Yt,Xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof wi<"u"?wi:typeof self<"u"?self:{},ki={};function A(){if(Yt)return H;Yt=1;var e=function(t){return t&&t.Math===Math&&t};return H=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof Xt=="object"&&Xt)||e(typeof H=="object"&&H)||(function(){return this})()||Function("return this")()}var Jt,Qt,tr,rr,er,nr,mt,or,gt={};function I(){return Qt?Jt:(Qt=1,Jt=function(e){try{return!!e()}catch{return!0}})}function R(){if(rr)return tr;rr=1;var e=I();return tr=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}function ot(){if(nr)return er;nr=1;var e=I();return er=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")})}function Z(){if(or)return mt;or=1;var e=ot(),t=Function.prototype.call;return mt=e?t.bind(t):function(){return t.apply(t,arguments)},mt}var ir,sr,ar,vt,ur,cr,fr,lr,hr,pr,dr,mr,gr,vr,yr,wr,br,Er,kr,yt,xr,Mr,Or,Pr,jr,Cr,Sr,Ar,_r,Ir,Tr,Lr,qr,Rr,Zr,zr,Dr,Fr,Nr,Ur,Br,wt={};function bt(){return ar?sr:(ar=1,sr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function z(){if(ur)return vt;ur=1;var e=ot(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return vt=e?n:function(o){return function(){return r.apply(o,arguments)}},vt}function Et(){if(fr)return cr;fr=1;var e=z(),t=e({}.toString),r=e("".slice);return cr=function(n){return r(t(n),8,-1)}}function kt(){return dr?pr:(dr=1,pr=function(e){return e==null})}function $r(){if(gr)return mr;gr=1;var e=kt(),t=TypeError;return mr=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function it(){if(yr)return vr;yr=1;var e=(function(){if(hr)return lr;hr=1;var r=z(),n=I(),o=Et(),i=Object,s=r("".split);return lr=n(function(){return!i("z").propertyIsEnumerable(0)})?function(u){return o(u)==="String"?s(u,""):i(u)}:i})(),t=$r();return vr=function(r){return e(t(r))}}function S(){if(br)return wr;br=1;var e=typeof document=="object"&&document.all;return wr=e===void 0&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"}}function K(){if(kr)return Er;kr=1;var e=S();return Er=function(t){return typeof t=="object"?t!==null:e(t)}}function xt(){if(xr)return yt;xr=1;var e=A(),t=S();return yt=function(r,n){return arguments.length<2?(o=e[r],t(o)?o:void 0):e[r]&&e[r][n];var o},yt}function Mt(){if(Or)return Mr;Or=1;var e=z();return Mr=e({}.isPrototypeOf)}function xi(){if(Sr)return Cr;Sr=1;var e,t,r=A(),n=(function(){if(jr)return Pr;jr=1;var a=A().navigator,l=a&&a.userAgent;return Pr=l?String(l):""})(),o=r.process,i=r.Deno,s=o&&o.versions||i&&i.version,u=s&&s.v8;return u&&(t=(e=u.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),Cr=t}function Wr(){if(_r)return Ar;_r=1;var e=xi(),t=I(),r=A().String;return Ar=!!Object.getOwnPropertySymbols&&!t(function(){var n=Symbol("symbol detection");return!r(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function Gr(){if(Tr)return Ir;Tr=1;var e=Wr();return Ir=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}function Vr(){if(qr)return Lr;qr=1;var e=xt(),t=S(),r=Mt(),n=Gr(),o=Object;return Lr=n?function(i){return typeof i=="symbol"}:function(i){var s=e("Symbol");return t(s)&&r(s.prototype,o(i))}}function Ot(){if(Zr)return Rr;Zr=1;var e=String;return Rr=function(t){try{return e(t)}catch{return"Object"}}}function W(){if(Dr)return zr;Dr=1;var e=S(),t=Ot(),r=TypeError;return zr=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function st(){if(Nr)return Fr;Nr=1;var e=W(),t=kt();return Fr=function(r,n){var o=r[n];return t(o)?void 0:e(o)}}function Mi(){if(Br)return Ur;Br=1;var e=Z(),t=S(),r=K(),n=TypeError;return Ur=function(o,i){var s,u;if(i==="string"&&t(s=o.toString)&&!r(u=e(s,o))||t(s=o.valueOf)&&!r(u=e(s,o))||i!=="string"&&t(s=o.toString)&&!r(u=e(s,o)))return u;throw new n("Can't convert object to primitive value")}}var Hr,Kr,Yr,Xr,Jr,Qr,te,re,ee,ne,oe,ie,se,ae,ue,ce,fe,le,he,pe,de,me,ge,ve,Pt={exports:{}};function X(){return Kr?Hr:(Kr=1,Hr=!1)}function jt(){if(Xr)return Yr;Xr=1;var e=A(),t=Object.defineProperty;return Yr=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n}}function Ct(){if(Jr)return Pt.exports;Jr=1;var e=X(),t=A(),r=jt(),n="__core-js_shared__",o=Pt.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.44.0",mode:e?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Pt.exports}function ye(){if(te)return Qr;te=1;var e=Ct();return Qr=function(t,r){return e[t]||(e[t]=r||{})}}function we(){if(ee)return re;ee=1;var e=$r(),t=Object;return re=function(r){return t(e(r))}}function D(){if(oe)return ne;oe=1;var e=z(),t=we(),r=e({}.hasOwnProperty);return ne=Object.hasOwn||function(n,o){return r(t(n),o)}}function be(){if(se)return ie;se=1;var e=z(),t=0,r=Math.random(),n=e(1.1.toString);return ie=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++t+r,36)}}function F(){if(ue)return ae;ue=1;var e=A(),t=ye(),r=D(),n=be(),o=Wr(),i=Gr(),s=e.Symbol,u=t("wks"),a=i?s.for||s:s&&s.withoutSetter||n;return ae=function(l){return r(u,l)||(u[l]=o&&r(s,l)?s[l]:a("Symbol."+l)),u[l]}}function Oi(){if(fe)return ce;fe=1;var e=Z(),t=K(),r=Vr(),n=st(),o=Mi(),i=F(),s=TypeError,u=i("toPrimitive");return ce=function(a,l){if(!t(a)||r(a))return a;var c,f=n(a,u);if(f){if(l===void 0&&(l="default"),c=e(f,a,l),!t(c)||r(c))return c;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),o(a,l)}}function Ee(){if(he)return le;he=1;var e=Oi(),t=Vr();return le=function(r){var n=e(r,"string");return t(n)?n:n+""}}function ke(){if(de)return pe;de=1;var e=A(),t=K(),r=e.document,n=t(r)&&t(r.createElement);return pe=function(o){return n?r.createElement(o):{}}}function xe(){if(ge)return me;ge=1;var e=R(),t=I(),r=ke();return me=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7})}function Me(){if(ve)return gt;ve=1;var e=R(),t=Z(),r=(function(){if(ir)return wt;ir=1;var l={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,f=c&&!l.call({1:2},1);return wt.f=f?function(d){var h=c(this,d);return!!h&&h.enumerable}:l,wt})(),n=bt(),o=it(),i=Ee(),s=D(),u=xe(),a=Object.getOwnPropertyDescriptor;return gt.f=e?a:function(l,c){if(l=o(l),c=i(c),u)try{return a(l,c)}catch{}if(s(l,c))return n(!t(r.f,l,c),l[c])},gt}var Oe,Pe,je,Ce,Se,Ae,_e,St={};function Ie(){if(Pe)return Oe;Pe=1;var e=R(),t=I();return Oe=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})}function _(){if(Ce)return je;Ce=1;var e=K(),t=String,r=TypeError;return je=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function Y(){if(Se)return St;Se=1;var e=R(),t=xe(),r=Ie(),n=_(),o=Ee(),i=TypeError,s=Object.defineProperty,u=Object.getOwnPropertyDescriptor,a="enumerable",l="configurable",c="writable";return St.f=e?r?function(f,d,h){if(n(f),d=o(d),n(h),typeof f=="function"&&d==="prototype"&&"value"in h&&c in h&&!h[c]){var g=u(f,d);g&&g[c]&&(f[d]=h.value,h={configurable:l in h?h[l]:g[l],enumerable:a in h?h[a]:g[a],writable:!1})}return s(f,d,h)}:s:function(f,d,h){if(n(f),d=o(d),n(h),t)try{return s(f,d,h)}catch{}if("get"in h||"set"in h)throw new i("Accessors not supported");return"value"in h&&(f[d]=h.value),f},St}function At(){if(_e)return Ae;_e=1;var e=R(),t=Y(),r=bt();return Ae=e?function(n,o,i){return t.f(n,o,r(1,i))}:function(n,o,i){return n[o]=i,n}}var Te,Le,qe,Re,Ze,ze,De,Fe,Ne,Ue,Be,$e,We,Ge,Ve,_t={exports:{}};function Pi(){if(Re)return qe;Re=1;var e=z(),t=S(),r=Ct(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(o){return n(o)}),qe=r.inspectSource}function It(){if(Fe)return De;Fe=1;var e=ye(),t=be(),r=e("keys");return De=function(n){return r[n]||(r[n]=t(n))}}function Tt(){return Ue?Ne:(Ue=1,Ne={})}function He(){if($e)return Be;$e=1;var e,t,r,n=(function(){if(ze)return Ze;ze=1;var p=A(),v=S(),y=p.WeakMap;return Ze=v(y)&&/native code/.test(String(y))})(),o=A(),i=K(),s=At(),u=D(),a=Ct(),l=It(),c=Tt(),f="Object already initialized",d=o.TypeError,h=o.WeakMap;if(n||a.state){var g=a.state||(a.state=new h);g.get=g.get,g.has=g.has,g.set=g.set,e=function(p,v){if(g.has(p))throw new d(f);return v.facade=p,g.set(p,v),v},t=function(p){return g.get(p)||{}},r=function(p){return g.has(p)}}else{var m=l("state");c[m]=!0,e=function(p,v){if(u(p,m))throw new d(f);return v.facade=p,s(p,m,v),v},t=function(p){return u(p,m)?p[m]:{}},r=function(p){return u(p,m)}}return Be={set:e,get:t,has:r,enforce:function(p){return r(p)?t(p):e(p,{})},getterFor:function(p){return function(v){var y;if(!i(v)||(y=t(v)).type!==p)throw new d("Incompatible receiver, "+p+" required");return y}}}}function Ke(){if(We)return _t.exports;We=1;var e=z(),t=I(),r=S(),n=D(),o=R(),i=(function(){if(Le)return Te;Le=1;var y=R(),k=D(),b=Function.prototype,P=y&&Object.getOwnPropertyDescriptor,M=k(b,"name"),w=M&&(function(){}).name==="something",E=M&&(!y||y&&P(b,"name").configurable);return Te={EXISTS:M,PROPER:w,CONFIGURABLE:E}})().CONFIGURABLE,s=Pi(),u=He(),a=u.enforce,l=u.get,c=String,f=Object.defineProperty,d=e("".slice),h=e("".replace),g=e([].join),m=o&&!t(function(){return f(function(){},"length",{value:8}).length!==8}),p=String(String).split("String"),v=_t.exports=function(y,k,b){d(c(k),0,7)==="Symbol("&&(k="["+h(c(k),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),b&&b.getter&&(k="get "+k),b&&b.setter&&(k="set "+k),(!n(y,"name")||i&&y.name!==k)&&(o?f(y,"name",{value:k,configurable:!0}):y.name=k),m&&b&&n(b,"arity")&&y.length!==b.arity&&f(y,"length",{value:b.arity});try{b&&n(b,"constructor")&&b.constructor?o&&f(y,"prototype",{writable:!1}):y.prototype&&(y.prototype=void 0)}catch{}var P=a(y);return n(P,"source")||(P.source=g(p,typeof k=="string"?k:"")),y};return Function.prototype.toString=v(function(){return r(this)&&l(this).source||s(this)},"toString"),_t.exports}function Lt(){if(Ve)return Ge;Ve=1;var e=S(),t=Y(),r=Ke(),n=jt();return Ge=function(o,i,s,u){u||(u={});var a=u.enumerable,l=u.name!==void 0?u.name:i;if(e(s)&&r(s,l,u),u.global)a?o[i]=s:n(i,s);else{try{u.unsafe?o[i]&&(a=!0):delete o[i]}catch{}a?o[i]=s:t.f(o,i,{value:s,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return o}}var Ye,Xe,Je,Qe,tn,rn,en,nn,on,sn,an,un,cn,fn,ln,hn,pn,qt={};function dn(){if(Qe)return Je;Qe=1;var e=(function(){if(Xe)return Ye;Xe=1;var t=Math.ceil,r=Math.floor;return Ye=Math.trunc||function(n){var o=+n;return(o>0?r:t)(o)}})();return Je=function(t){var r=+t;return r!=r||r===0?0:e(r)}}function ji(){if(rn)return tn;rn=1;var e=dn(),t=Math.max,r=Math.min;return tn=function(n,o){var i=e(n);return i<0?t(i+o,0):r(i,o)}}function Ci(){if(nn)return en;nn=1;var e=dn(),t=Math.min;return en=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function mn(){if(sn)return on;sn=1;var e=Ci();return on=function(t){return e(t.length)}}function gn(){if(fn)return cn;fn=1;var e=z(),t=D(),r=it(),n=(function(){if(un)return an;un=1;var s=it(),u=ji(),a=mn(),l=function(c){return function(f,d,h){var g=s(f),m=a(g);if(m===0)return!c&&-1;var p,v=u(h,m);if(c&&d!=d){for(;m>v;)if((p=g[v++])!=p)return!0}else for(;m>v;v++)if((c||v in g)&&g[v]===d)return c||v||0;return!c&&-1}};return an={includes:l(!0),indexOf:l(!1)}})().indexOf,o=Tt(),i=e([].push);return cn=function(s,u){var a,l=r(s),c=0,f=[];for(a in l)!t(o,a)&&t(l,a)&&i(f,a);for(;u.length>c;)t(l,a=u[c++])&&(~n(f,a)||i(f,a));return f}}function Rt(){return hn?ln:(hn=1,ln=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var vn,Zt,yn,zt,wn,bn,En,kn,xn,Mn,On,Pn,jn,Cn,Sn,An,_n,In,Tn,Ln={};function Si(){if(yn)return Zt;yn=1;var e=xt(),t=z(),r=(function(){if(pn)return qt;pn=1;var s=gn(),u=Rt().concat("length","prototype");return qt.f=Object.getOwnPropertyNames||function(a){return s(a,u)},qt})(),n=(vn||(vn=1,Ln.f=Object.getOwnPropertySymbols),Ln),o=_(),i=t([].concat);return Zt=e("Reflect","ownKeys")||function(s){var u=r.f(o(s)),a=n.f;return a?i(u,a(s)):u},Zt}function Ai(){if(wn)return zt;wn=1;var e=D(),t=Si(),r=Me(),n=Y();return zt=function(o,i,s){for(var u=t(i),a=n.f,l=r.f,c=0;c<u.length;c++){var f=u[c];e(o,f)||s&&e(s,f)||a(o,f,l(i,f))}},zt}function J(){if(xn)return kn;xn=1;var e=A(),t=Me().f,r=At(),n=Lt(),o=jt(),i=Ai(),s=(function(){if(En)return bn;En=1;var u=I(),a=S(),l=/#|\.prototype\./,c=function(m,p){var v=d[f(m)];return v===g||v!==h&&(a(p)?u(p):!!p)},f=c.normalize=function(m){return String(m).replace(l,".").toLowerCase()},d=c.data={},h=c.NATIVE="N",g=c.POLYFILL="P";return bn=c})();return kn=function(u,a){var l,c,f,d,h,g=u.target,m=u.global,p=u.stat;if(l=m?e:p?e[g]||o(g,{}):e[g]&&e[g].prototype)for(c in a){if(d=a[c],f=u.dontCallGetSet?(h=t(l,c))&&h.value:l[c],!s(m?c:g+(p?".":"#")+c,u.forced)&&f!==void 0){if(typeof d==typeof f)continue;i(d,f)}(u.sham||f&&f.sham)&&r(d,"sham",!0),n(l,c,d,u)}}}function _i(){if(On)return Mn;On=1;var e=Mt(),t=TypeError;return Mn=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function qn(){if(Sn)return Cn;Sn=1;var e=D(),t=S(),r=we(),n=It(),o=(function(){if(jn)return Pn;jn=1;var a=I();return Pn=!a(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})})(),i=n("IE_PROTO"),s=Object,u=s.prototype;return Cn=o?s.getPrototypeOf:function(a){var l=r(a);if(e(l,i))return l[i];var c=l.constructor;return t(c)&&l instanceof c?c.prototype:l instanceof s?u:null}}function Ii(){if(_n)return An;_n=1;var e=Ke(),t=Y();return An=function(r,n,o){return o.get&&e(o.get,n,{getter:!0}),o.set&&e(o.set,n,{setter:!0}),t.f(r,n,o)}}function Ti(){if(Tn)return In;Tn=1;var e=R(),t=Y(),r=bt();return In=function(n,o,i){e?t.f(n,o,r(0,i)):n[o]=i}}var Rn,Zn,zn,Dn,Fn,Nn,Un,Bn,$n,Wn,Gn,Dt={};function Li(){if(Zn)return Rn;Zn=1;var e=gn(),t=Rt();return Rn=Object.keys||function(r){return e(r,t)}}function qi(){if(Fn)return Dn;Fn=1;var e=xt();return Dn=e("document","documentElement")}function Vn(){if(Un)return Nn;Un=1;var e,t=_(),r=(function(){if(zn)return Dt;zn=1;var m=R(),p=Ie(),v=Y(),y=_(),k=it(),b=Li();return Dt.f=m&&!p?Object.defineProperties:function(P,M){y(P);for(var w,E=k(M),x=b(M),$=x.length,L=0;$>L;)v.f(P,w=x[L++],E[w]);return P},Dt})(),n=Rt(),o=Tt(),i=qi(),s=ke(),u=It(),a="prototype",l="script",c=u("IE_PROTO"),f=function(){},d=function(m){return"<"+l+">"+m+"</"+l+">"},h=function(m){m.write(d("")),m.close();var p=m.parentWindow.Object;return m=null,p},g=function(){try{e=new ActiveXObject("htmlfile")}catch{}var m,p,v;g=typeof document<"u"?document.domain&&e?h(e):(p=s("iframe"),v="java"+l+":",p.style.display="none",i.appendChild(p),p.src=String(v),(m=p.contentWindow.document).open(),m.write(d("document.F=Object")),m.close(),m.F):h(e);for(var y=n.length;y--;)delete g[a][n[y]];return g()};return o[c]=!0,Nn=Object.create||function(m,p){var v;return m!==null?(f[a]=t(m),v=new f,f[a]=null,v[c]=m):v=g(),p===void 0?v:r.f(v,p)}}function Hn(){if($n)return Bn;$n=1;var e,t,r,n=I(),o=S(),i=K(),s=Vn(),u=qn(),a=Lt(),l=F(),c=X(),f=l("iterator"),d=!1;return[].keys&&("next"in(r=[].keys())?(t=u(u(r)))!==Object.prototype&&(e=t):d=!0),!i(e)||n(function(){var h={};return e[f].call(h)!==h})?e={}:c&&(e=s(e)),o(e[f])||a(e,f,function(){return this}),Bn={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:d}}Gn||(Gn=1,(function(){if(Wn)return ki;Wn=1;var e=J(),t=A(),r=_i(),n=_(),o=S(),i=qn(),s=Ii(),u=Ti(),a=I(),l=D(),c=F(),f=Hn().IteratorPrototype,d=R(),h=X(),g="constructor",m="Iterator",p=c("toStringTag"),v=TypeError,y=t[m],k=h||!o(y)||y.prototype!==f||!a(function(){y({})}),b=function(){if(r(this,f),i(this)===f)throw new v("Abstract class Iterator not directly constructable")},P=function(M,w){d?s(f,M,{configurable:!0,get:function(){return w},set:function(E){if(n(this),this===f)throw new v("You can't redefine this property");l(this,M)?this[M]=E:u(this,M,E)}}):f[M]=w};l(f,p)||P(p,m),!k&&l(f,g)&&f[g]!==Object||P(g,b),b.prototype=f,e({global:!0,constructor:!0,forced:k},{Iterator:b})})());var Kn,Yn,Xn,Jn,Qn,to,ro,eo,no,oo,io,so,ao,uo,co,fo,lo,ho,po,mo,Ri={};function at(){return Yn?Kn:(Yn=1,Kn=function(e){return{iterator:e,next:e.next,done:!1}})}function Zi(){if(Jn)return Xn;Jn=1;var e=Lt();return Xn=function(t,r,n){for(var o in r)e(t,o,r[o],n);return t}}function zi(){return to?Qn:(to=1,Qn=function(e,t){return{value:e,done:t}})}function N(){if(eo)return ro;eo=1;var e=Z(),t=_(),r=st();return ro=function(n,o,i){var s,u;t(n);try{if(!(s=r(n,"return"))){if(o==="throw")throw i;return i}s=e(s,n)}catch(a){u=!0,s=a}if(o==="throw")throw i;if(u)throw s;return t(s),i}}function Di(){if(oo)return no;oo=1;var e=N();return no=function(t,r,n){for(var o=t.length-1;o>=0;o--)if(t[o]!==void 0)try{n=e(t[o].iterator,r,n)}catch(i){r="throw",n=i}if(r==="throw")throw n;return n}}function go(){if(so)return io;so=1;var e=Z(),t=Vn(),r=At(),n=Zi(),o=F(),i=He(),s=st(),u=Hn().IteratorPrototype,a=zi(),l=N(),c=Di(),f=o("toStringTag"),d="IteratorHelper",h="WrapForValidIterator",g="normal",m="throw",p=i.set,v=function(b){var P=i.getterFor(b?h:d);return n(t(u),{next:function(){var M=P(this);if(b)return M.nextHandler();if(M.done)return a(void 0,!0);try{var w=M.nextHandler();return M.returnHandlerResult?w:a(w,M.done)}catch(E){throw M.done=!0,E}},return:function(){var M=P(this),w=M.iterator;if(M.done=!0,b){var E=s(w,"return");return E?e(E,w):a(void 0,!0)}if(M.inner)try{l(M.inner.iterator,g)}catch(x){return l(w,m,x)}if(M.openIters)try{c(M.openIters,g)}catch(x){return l(w,m,x)}return w&&l(w,g),a(void 0,!0)}})},y=v(!0),k=v(!1);return r(k,f,"Iterator Helper"),io=function(b,P,M){var w=function(E,x){x?(x.iterator=E.iterator,x.next=E.next):x=E,x.type=P?h:d,x.returnHandlerResult=!!M,x.nextHandler=b,x.counter=0,x.done=!1,p(this,x)};return w.prototype=P?y:k,w}}function vo(){if(uo)return ao;uo=1;var e=_(),t=N();return ao=function(r,n,o,i){try{return i?n(e(o)[0],o[1]):n(o)}catch(s){t(r,"throw",s)}}}function yo(){return fo?co:(fo=1,co=function(e,t){var r=typeof Iterator=="function"&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch{return!0}})}function ut(){if(ho)return lo;ho=1;var e=A();return lo=function(t,r){var n=e.Iterator,o=n&&n.prototype,i=o&&o[t],s=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(u){u instanceof r||(s=!1)}if(!s)return i}}function Q(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}mo||(mo=1,(function(){if(po)return Ri;po=1;var e=J(),t=Z(),r=W(),n=_(),o=at(),i=go(),s=vo(),u=N(),a=yo(),l=ut(),c=X(),f=!c&&!a("map",function(){}),d=!c&&!f&&l("map",TypeError),h=c||f||d,g=i(function(){var m=this.iterator,p=n(t(this.next,m));if(!(this.done=!!p.done))return s(m,this.mapper,[p.value,this.counter++],!0)});e({target:"Iterator",proto:!0,real:!0,forced:h},{map:function(m){n(this);try{r(m)}catch(p){u(this,"throw",p)}return d?t(d,this,m):new g(o(this),{mapper:m})}})})()),typeof SuppressedError=="function"&&SuppressedError;var wo,bo,Fi={};bo||(bo=1,(function(){if(wo)return Fi;wo=1;var e=J(),t=Z(),r=W(),n=_(),o=at(),i=go(),s=vo(),u=X(),a=N(),l=yo(),c=ut(),f=!u&&!l("filter",function(){}),d=!u&&!f&&c("filter",TypeError),h=u||f||d,g=i(function(){for(var m,p,v=this.iterator,y=this.predicate,k=this.next;;){if(m=n(t(k,v)),this.done=!!m.done)return;if(p=m.value,s(v,y,[p,this.counter++],!0))return p}});e({target:"Iterator",proto:!0,real:!0,forced:h},{filter:function(m){n(this);try{r(m)}catch(p){a(this,"throw",p)}return d?t(d,this,m):new g(o(this),{predicate:m})}})})());class j{static isAdvancedMarkerAvailable(t){return google.maps.marker&&t.getMapCapabilities().isAdvancedMarkersAvailable===!0}static isAdvancedMarker(t){return google.maps.marker&&t instanceof google.maps.marker.AdvancedMarkerElement}static setMap(t,r){this.isAdvancedMarker(t)?t.map=r:t.setMap(r)}static getPosition(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(Number.isFinite(t.position.lat)&&Number.isFinite(t.position.lng))return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}static getVisible(t){return!!this.isAdvancedMarker(t)||t.getVisible()}}class U{constructor(t){let{markers:r,position:n}=t;this.markers=[],r&&(this.markers=r),n&&(n instanceof google.maps.LatLng?this._position=n:this._position=new google.maps.LatLng(n))}get bounds(){if(this.markers.length===0&&!this._position)return;const t=new google.maps.LatLngBounds(this._position,this._position);for(const r of this.markers)t.extend(j.getPosition(r));return t}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(t=>j.getVisible(t)).length}push(t){this.markers.push(t)}delete(){this.marker&&(j.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}function T(e){if(e==null)throw Error(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"assertion failed")}const Ft=(e,t,r,n)=>{const o=e.getBounds();T(o);const i=ct(o,t,n);return r.filter(s=>i.contains(j.getPosition(s)))},ct=(e,t,r)=>{const{northEast:n,southWest:o}=Ni(e,t),i=xo({northEast:n,southWest:o},r);return Mo(i,t)},Eo=(e,t,r)=>{const n=ct(e,t,r),o=n.getNorthEast(),i=n.getSouthWest();return[i.lng(),i.lat(),o.lng(),o.lat()]},ko=(e,t)=>{const r=(t.lat-e.lat)*Math.PI/180,n=(t.lng-e.lng)*Math.PI/180,o=Math.sin(r/2),i=Math.sin(n/2),s=o*o+Math.cos(e.lat*Math.PI/180)*Math.cos(t.lat*Math.PI/180)*i*i;return 6371*(2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s)))},Ni=(e,t)=>{const r=t.fromLatLngToDivPixel(e.getNorthEast()),n=t.fromLatLngToDivPixel(e.getSouthWest());return T(r),T(n),{northEast:r,southWest:n}},xo=(e,t)=>{let{northEast:r,southWest:n}=e;return r.x+=t,r.y-=t,n.x-=t,n.y+=t,{northEast:r,southWest:n}},Mo=(e,t)=>{let{northEast:r,southWest:n}=e;const o=t.fromDivPixelToLatLng(n),i=t.fromDivPixelToLatLng(r);return new google.maps.LatLngBounds(o,i)};class ft{constructor(t){let{maxZoom:r=16}=t;this.maxZoom=r}noop(t){let{markers:r}=t;return Oo(r)}}class Nt extends ft{constructor(t){var{viewportPadding:r=60}=t;super(Q(t,["viewportPadding"])),this.viewportPadding=60,this.viewportPadding=r}calculate(t){let{markers:r,map:n,mapCanvasProjection:o}=t;const i=n.getZoom();return T(i),i>=this.maxZoom?{clusters:this.noop({markers:r}),changed:!1}:{clusters:this.cluster({markers:Ft(n,o,r,this.viewportPadding),map:n,mapCanvasProjection:o})}}}const Oo=e=>e.map(t=>new U({position:j.getPosition(t),markers:[t]}));var Po,jo,Ut,Co,So,Ao,_o,Io,To,Lo,qo,Ro,Zo,zo,Bt,Do,Fo,No,Uo,Bo,Ui={};function Bi(){if(Co)return Ut;Co=1;var e=(function(){if(jo)return Po;jo=1;var o=Et(),i=z();return Po=function(s){if(o(s)==="Function")return i(s)}})(),t=W(),r=ot(),n=e(e.bind);return Ut=function(o,i){return t(o),i===void 0?o:r?n(o,i):function(){return o.apply(i,arguments)}},Ut}function $o(){return Ao?So:(Ao=1,So={})}function $i(){if(Io)return _o;Io=1;var e=F(),t=$o(),r=e("iterator"),n=Array.prototype;return _o=function(o){return o!==void 0&&(t.Array===o||n[r]===o)}}function Wi(){if(Ro)return qo;Ro=1;var e=(function(){if(Lo)return To;Lo=1;var s={};return s[F()("toStringTag")]="z",To=String(s)==="[object z]"})(),t=S(),r=Et(),n=F()("toStringTag"),o=Object,i=r((function(){return arguments})())==="Arguments";return qo=e?r:function(s){var u,a,l;return s===void 0?"Undefined":s===null?"Null":typeof(a=(function(c,f){try{return c[f]}catch{}})(u=o(s),n))=="string"?a:i?r(u):(l=r(u))==="Object"&&t(u.callee)?"Arguments":l}}function Wo(){if(zo)return Zo;zo=1;var e=Wi(),t=st(),r=kt(),n=$o(),o=F()("iterator");return Zo=function(i){if(!r(i))return t(i,o)||t(i,"@@iterator")||n[e(i)]}}function Gi(){if(Do)return Bt;Do=1;var e=Z(),t=W(),r=_(),n=Ot(),o=Wo(),i=TypeError;return Bt=function(s,u){var a=arguments.length<2?o(s):u;if(t(a))return r(e(a,s));throw new i(n(s)+" is not iterable")},Bt}function Go(){if(No)return Fo;No=1;var e=Bi(),t=Z(),r=_(),n=Ot(),o=$i(),i=mn(),s=Mt(),u=Gi(),a=Wo(),l=N(),c=TypeError,f=function(h,g){this.stopped=h,this.result=g},d=f.prototype;return Fo=function(h,g,m){var p,v,y,k,b,P,M,w=m&&m.that,E=!(!m||!m.AS_ENTRIES),x=!(!m||!m.IS_RECORD),$=!(!m||!m.IS_ITERATOR),L=!(!m||!m.INTERRUPTED),C=e(g,w),vi=function(q){return p&&l(p,"normal"),new f(!0,q)},yi=function(q){return E?(r(q),L?C(q[0],q[1],vi):C(q[0],q[1])):L?C(q,vi):C(q)};if(x)p=h.iterator;else if($)p=h;else{if(!(v=a(h)))throw new c(n(h)+" is not iterable");if(o(v)){for(y=0,k=i(h);k>y;y++)if((b=yi(h[y]))&&s(d,b))return b;return new f(!1)}p=u(h,v)}for(P=x?h.next:p.next;!(M=t(P,p)).done;){try{b=yi(M.value)}catch(q){l(p,"throw",q)}if(typeof b=="object"&&b&&s(d,b))return b}return new f(!1)}}Bo||(Bo=1,(function(){if(Uo)return Ui;Uo=1;var e=J(),t=Z(),r=Go(),n=W(),o=_(),i=at(),s=N(),u=ut()("forEach",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(a){o(this);try{n(a)}catch(f){s(this,"throw",f)}if(u)return t(u,this,a);var l=i(this),c=0;r(l,function(f){a(f,c++)},{IS_RECORD:!0})}})})());var Vi=Object.getOwnPropertyNames,Hi=Object.getOwnPropertySymbols,Ki=Object.prototype.hasOwnProperty;function Vo(e,t){return function(r,n,o){return e(r,n,o)&&t(r,n,o)}}function lt(e){return function(t,r,n){if(!t||!r||typeof t!="object"||typeof r!="object")return e(t,r,n);var o=n.cache,i=o.get(t),s=o.get(r);if(i&&s)return i===r&&s===t;o.set(t,r),o.set(r,t);var u=e(t,r,n);return o.delete(t),o.delete(r),u}}function Ho(e){return Vi(e).concat(Hi(e))}var Yi=Object.hasOwn||function(e,t){return Ki.call(e,t)};function G(e,t){return e===t||!e&&!t&&e!=e&&t!=t}var Ko=Object.getOwnPropertyDescriptor,Yo=Object.keys;function Xi(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function Ji(e,t){return G(e.getTime(),t.getTime())}function Qi(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function ts(e,t){return e===t}function Xo(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var o,i,s=new Array(n),u=e.entries(),a=0;(o=u.next())&&!o.done;){for(var l=t.entries(),c=!1,f=0;(i=l.next())&&!i.done;)if(s[f])f++;else{var d=o.value,h=i.value;if(r.equals(d[0],h[0],a,f,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){c=s[f]=!0;break}f++}if(!c)return!1;a++}return!0}var rs=G;function es(e,t,r){var n=Yo(e),o=n.length;if(Yo(t).length!==o)return!1;for(;o-- >0;)if(!Qo(e,t,r,n[o]))return!1;return!0}function tt(e,t,r){var n,o,i,s=Ho(e),u=s.length;if(Ho(t).length!==u)return!1;for(;u-- >0;)if(!Qo(e,t,r,n=s[u])||(o=Ko(e,n),i=Ko(t,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable)))return!1;return!0}function ns(e,t){return G(e.valueOf(),t.valueOf())}function os(e,t){return e.source===t.source&&e.flags===t.flags}function Jo(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var o,i,s=new Array(n),u=e.values();(o=u.next())&&!o.done;){for(var a=t.values(),l=!1,c=0;(i=a.next())&&!i.done;){if(!s[c]&&r.equals(o.value,i.value,o.value,i.value,e,t,r)){l=s[c]=!0;break}c++}if(!l)return!1}return!0}function is(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function ss(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Qo(e,t,r,n){return!(n!=="_owner"&&n!=="__o"&&n!=="__v"||!e.$$typeof&&!t.$$typeof)||Yi(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var as=Array.isArray,ti=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,ri=Object.assign,us=Object.prototype.toString.call.bind(Object.prototype.toString),rt=B();function B(e){e===void 0&&(e={});var t,r=e.circular,n=r!==void 0&&r,o=e.createInternalComparator,i=e.createState,s=e.strict,u=s!==void 0&&s,a=(function(c){var f=c.circular,d=c.createCustomConfig,h=c.strict,g={areArraysEqual:h?tt:Xi,areDatesEqual:Ji,areErrorsEqual:Qi,areFunctionsEqual:ts,areMapsEqual:h?Vo(Xo,tt):Xo,areNumbersEqual:rs,areObjectsEqual:h?tt:es,arePrimitiveWrappersEqual:ns,areRegExpsEqual:os,areSetsEqual:h?Vo(Jo,tt):Jo,areTypedArraysEqual:h?tt:is,areUrlsEqual:ss};if(d&&(g=ri({},g,d(g))),f){var m=lt(g.areArraysEqual),p=lt(g.areMapsEqual),v=lt(g.areObjectsEqual),y=lt(g.areSetsEqual);g=ri({},g,{areArraysEqual:m,areMapsEqual:p,areObjectsEqual:v,areSetsEqual:y})}return g})(e),l=(function(c){var f=c.areArraysEqual,d=c.areDatesEqual,h=c.areErrorsEqual,g=c.areFunctionsEqual,m=c.areMapsEqual,p=c.areNumbersEqual,v=c.areObjectsEqual,y=c.arePrimitiveWrappersEqual,k=c.areRegExpsEqual,b=c.areSetsEqual,P=c.areTypedArraysEqual,M=c.areUrlsEqual;return function(w,E,x){if(w===E)return!0;if(w==null||E==null)return!1;var $=typeof w;if($!==typeof E)return!1;if($!=="object")return $==="number"?p(w,E,x):$==="function"&&g(w,E,x);var L=w.constructor;if(L!==E.constructor)return!1;if(L===Object)return v(w,E,x);if(as(w))return f(w,E,x);if(ti!=null&&ti(w))return P(w,E,x);if(L===Date)return d(w,E,x);if(L===RegExp)return k(w,E,x);if(L===Map)return m(w,E,x);if(L===Set)return b(w,E,x);var C=us(w);return C==="[object Date]"?d(w,E,x):C==="[object RegExp]"?k(w,E,x):C==="[object Map]"?m(w,E,x):C==="[object Set]"?b(w,E,x):C==="[object Object]"?typeof w.then!="function"&&typeof E.then!="function"&&v(w,E,x):C==="[object URL]"?M(w,E,x):C==="[object Error]"?h(w,E,x):C==="[object Arguments]"?v(w,E,x):(C==="[object Boolean]"||C==="[object Number]"||C==="[object String]")&&y(w,E,x)}})(a);return(function(c){var f=c.circular,d=c.comparator,h=c.createState,g=c.equals,m=c.strict;if(h)return function(v,y){var k=h(),b=k.cache,P=b===void 0?f?new WeakMap:void 0:b,M=k.meta;return d(v,y,{cache:P,equals:g,meta:M,strict:m})};if(f)return function(v,y){return d(v,y,{cache:new WeakMap,equals:g,meta:void 0,strict:m})};var p={cache:void 0,equals:g,meta:void 0,strict:m};return function(v,y){return d(v,y,p)}})({circular:n,comparator:l,createState:i,equals:o?o(l):(t=l,function(c,f,d,h,g,m,p){return t(c,f,p)}),strict:u})}B({strict:!0}),B({circular:!0}),B({circular:!0,strict:!0}),B({createInternalComparator:function(){return G}}),B({strict:!0,createInternalComparator:function(){return G}}),B({circular:!0,createInternalComparator:function(){return G}}),B({circular:!0,createInternalComparator:function(){return G},strict:!0});const ei=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class $t{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[r,n]=new Uint8Array(t,0,2);if(r!==219)throw new Error("Data does not appear to be in a KDBush format.");const o=n>>4;if(o!==1)throw new Error(`Got v${o} data when expected v1.`);const i=ei[15&n];if(!i)throw new Error("Unrecognized array type.");const[s]=new Uint16Array(t,2,1),[u]=new Uint32Array(t,4,1);return new $t(u,s,i,t)}constructor(t,r=64,n=Float64Array,o){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=n,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const i=ei.indexOf(this.ArrayType),s=2*t*this.ArrayType.BYTES_PER_ELEMENT,u=t*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-u%8)%8;if(i<0)throw new Error(`Unexpected typed array class: ${n}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+u+a,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+s+u+a),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+u+a,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+i]),new Uint16Array(this.data,2,1)[0]=r,new Uint32Array(this.data,4,1)[0]=t)}add(t,r){const n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=t,this.coords[this._pos++]=r,n}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return Wt(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,r,n,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:s,nodeSize:u}=this,a=[0,i.length-1,0],l=[];for(;a.length;){const c=a.pop()||0,f=a.pop()||0,d=a.pop()||0;if(f-d<=u){for(let p=d;p<=f;p++){const v=s[2*p],y=s[2*p+1];v>=t&&v<=n&&y>=r&&y<=o&&l.push(i[p])}continue}const h=d+f>>1,g=s[2*h],m=s[2*h+1];g>=t&&g<=n&&m>=r&&m<=o&&l.push(i[h]),(c===0?t<=g:r<=m)&&(a.push(d),a.push(h-1),a.push(1-c)),(c===0?n>=g:o>=m)&&(a.push(h+1),a.push(f),a.push(1-c))}return l}within(t,r,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:i,nodeSize:s}=this,u=[0,o.length-1,0],a=[],l=n*n;for(;u.length;){const c=u.pop()||0,f=u.pop()||0,d=u.pop()||0;if(f-d<=s){for(let p=d;p<=f;p++)oi(i[2*p],i[2*p+1],t,r)<=l&&a.push(o[p]);continue}const h=d+f>>1,g=i[2*h],m=i[2*h+1];oi(g,m,t,r)<=l&&a.push(o[h]),(c===0?t-n<=g:r-n<=m)&&(u.push(d),u.push(h-1),u.push(1-c)),(c===0?t+n>=g:r+n>=m)&&(u.push(h+1),u.push(f),u.push(1-c))}return a}}function Wt(e,t,r,n,o,i){if(o-n<=r)return;const s=n+o>>1;ni(e,t,s,n,o,i),Wt(e,t,r,n,s-1,1-i),Wt(e,t,r,s+1,o,1-i)}function ni(e,t,r,n,o,i){for(;o>n;){if(o-n>600){const l=o-n+1,c=r-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*d*(l-d)/l)*(c-l/2<0?-1:1);ni(e,t,r,Math.max(n,Math.floor(r-c*d/l+h)),Math.min(o,Math.floor(r+(l-c)*d/l+h)),i)}const s=t[2*r+i];let u=n,a=o;for(et(e,t,n,r),t[2*o+i]>s&&et(e,t,n,o);u<a;){for(et(e,t,u,a),u++,a--;t[2*u+i]<s;)u++;for(;t[2*a+i]>s;)a--}t[2*n+i]===s?et(e,t,n,a):(a++,et(e,t,a,o)),a<=r&&(n=a+1),r<=a&&(o=a-1)}}function et(e,t,r,n){Gt(e,r,n),Gt(t,2*r,2*n),Gt(t,2*r+1,2*n+1)}function Gt(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function oi(e,t,r,n){const o=e-r,i=t-n;return o*o+i*i}const cs={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},ii=Math.fround||(Vt=new Float32Array(1),e=>(Vt[0]=+e,Vt[0]));var Vt;class si{constructor(t){this.options=Object.assign(Object.create(cs),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:r,minZoom:n,maxZoom:o}=this.options;r&&console.time("total time");const i=`prepare ${t.length} points`;r&&console.time(i),this.points=t;const s=[];for(let a=0;a<t.length;a++){const l=t[a];if(!l.geometry)continue;const[c,f]=l.geometry.coordinates,d=ii(ht(c)),h=ii(pt(f));s.push(d,h,1/0,a,-1,1),this.options.reduce&&s.push(0)}let u=this.trees[o+1]=this._createTree(s);r&&console.timeEnd(i);for(let a=o;a>=n;a--){const l=+Date.now();u=this.trees[a]=this._createTree(this._cluster(u,a)),r&&console.log("z%d: %d clusters in %dms",a,u.numItems,+Date.now()-l)}return r&&console.timeEnd("total time"),this}getClusters(t,r){let n=((t[0]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,t[1]));let i=t[2]===180?180:((t[2]+180)%360+360)%360-180;const s=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)n=-180,i=180;else if(n>i){const f=this.getClusters([n,o,180,s],r),d=this.getClusters([-180,o,i,s],r);return f.concat(d)}const u=this.trees[this._limitZoom(r)],a=u.range(ht(n),pt(s),ht(i),pt(o)),l=u.data,c=[];for(const f of a){const d=this.stride*f;c.push(l[d+5]>1?ai(l,d,this.clusterProps):this.points[l[d+3]])}return c}getChildren(t){const r=this._getOriginId(t),n=this._getOriginZoom(t),o="No cluster with the specified id.",i=this.trees[n];if(!i)throw new Error(o);const s=i.data;if(r*this.stride>=s.length)throw new Error(o);const u=this.options.radius/(this.options.extent*Math.pow(2,n-1)),a=s[r*this.stride],l=s[r*this.stride+1],c=i.within(a,l,u),f=[];for(const d of c){const h=d*this.stride;s[h+4]===t&&f.push(s[h+5]>1?ai(s,h,this.clusterProps):this.points[s[h+3]])}if(f.length===0)throw new Error(o);return f}getLeaves(t,r,n){r=r||10,n=n||0;const o=[];return this._appendLeaves(o,t,r,n,0),o}getTile(t,r,n){const o=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:s,radius:u}=this.options,a=u/s,l=(n-a)/i,c=(n+1+a)/i,f={features:[]};return this._addTileFeatures(o.range((r-a)/i,l,(r+1+a)/i,c),o.data,r,n,i,f),r===0&&this._addTileFeatures(o.range(1-a/i,l,1,c),o.data,i,n,i,f),r===i-1&&this._addTileFeatures(o.range(0,l,a/i,c),o.data,-1,n,i,f),f.features.length?f:null}getClusterExpansionZoom(t){let r=this._getOriginZoom(t)-1;for(;r<=this.options.maxZoom;){const n=this.getChildren(t);if(r++,n.length!==1)break;t=n[0].properties.cluster_id}return r}_appendLeaves(t,r,n,o,i){const s=this.getChildren(r);for(const u of s){const a=u.properties;if(a&&a.cluster?i+a.point_count<=o?i+=a.point_count:i=this._appendLeaves(t,a.cluster_id,n,o,i):i<o?i++:t.push(u),t.length===n)break}return i}_createTree(t){const r=new $t(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let n=0;n<t.length;n+=this.stride)r.add(t[n],t[n+1]);return r.finish(),r.data=t,r}_addTileFeatures(t,r,n,o,i,s){for(const u of t){const a=u*this.stride,l=r[a+5]>1;let c,f,d;if(l)c=ui(r,a,this.clusterProps),f=r[a],d=r[a+1];else{const m=this.points[r[a+3]];c=m.properties;const[p,v]=m.geometry.coordinates;f=ht(p),d=pt(v)}const h={type:1,geometry:[[Math.round(this.options.extent*(f*i-n)),Math.round(this.options.extent*(d*i-o))]],tags:c};let g;g=l||this.options.generateId?r[a+3]:this.points[r[a+3]].id,g!==void 0&&(h.id=g),s.features.push(h)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,r){const{radius:n,extent:o,reduce:i,minPoints:s}=this.options,u=n/(o*Math.pow(2,r)),a=t.data,l=[],c=this.stride;for(let f=0;f<a.length;f+=c){if(a[f+2]<=r)continue;a[f+2]=r;const d=a[f],h=a[f+1],g=t.within(a[f],a[f+1],u),m=a[f+5];let p=m;for(const v of g){const y=v*c;a[y+2]>r&&(p+=a[y+5])}if(p>m&&p>=s){let v,y=d*m,k=h*m,b=-1;const P=(f/c<<5)+(r+1)+this.points.length;for(const M of g){const w=M*c;if(a[w+2]<=r)continue;a[w+2]=r;const E=a[w+5];y+=a[w]*E,k+=a[w+1]*E,a[w+4]=P,i&&(v||(v=this._map(a,f,!0),b=this.clusterProps.length,this.clusterProps.push(v)),i(v,this._map(a,w)))}a[f+4]=P,l.push(y/p,k/p,1/0,P,-1,p),i&&l.push(b)}else{for(let v=0;v<c;v++)l.push(a[f+v]);if(p>1)for(const v of g){const y=v*c;if(!(a[y+2]<=r)){a[y+2]=r;for(let k=0;k<c;k++)l.push(a[y+k])}}}}return l}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,r,n){if(t[r+5]>1){const s=this.clusterProps[t[r+6]];return n?Object.assign({},s):s}const o=this.points[t[r+3]].properties,i=this.options.map(o);return n&&i===o?Object.assign({},i):i}}function ai(e,t,r){return{type:"Feature",id:e[t+3],properties:ui(e,t,r),geometry:{type:"Point",coordinates:[(n=e[t],360*(n-.5)),fs(e[t+1])]}};var n}function ui(e,t,r){const n=e[t+5],o=n>=1e4?`${Math.round(n/1e3)}k`:n>=1e3?Math.round(n/100)/10+"k":n,i=e[t+6],s=i===-1?{}:Object.assign({},r[i]);return Object.assign(s,{cluster:!0,cluster_id:e[t+3],point_count:n,point_count_abbreviated:o})}function ht(e){return e/360+.5}function pt(e){const t=Math.sin(e*Math.PI/180),r=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return r<0?0:r>1?1:r}function fs(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}class ci extends ft{constructor(t){var{maxZoom:r,radius:n=60}=t,o=Q(t,["maxZoom","radius"]);super({maxZoom:r}),this.markers=[],this.clusters=[],this.state={zoom:-1},this.superCluster=new si(Object.assign({maxZoom:this.maxZoom,radius:n},o))}calculate(t){let r=!1,n=t.map.getZoom();T(n),n=Math.round(n);const o={zoom:n};if(!rt(t.markers,this.markers)){r=!0,this.markers=[...t.markers];const i=this.markers.map(s=>{const u=j.getPosition(s);return{type:"Feature",geometry:{type:"Point",coordinates:[u.lng(),u.lat()]},properties:{marker:s}}});this.superCluster.load(i)}return r||(this.state.zoom<=this.maxZoom||o.zoom<=this.maxZoom)&&(r=!rt(this.state,o)),this.state=o,t.markers.length===0?(this.clusters=[],{clusters:this.clusters,changed:r}):(r&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:r})}cluster(t){let{map:r}=t;const n=r.getZoom();return T(n),this.superCluster.getClusters([-180,-90,180,90],Math.round(n)).map(o=>this.transformCluster(o))}transformCluster(t){let{geometry:{coordinates:[r,n]},properties:o}=t;if(o.cluster)return new U({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map(s=>s.properties.marker),position:{lat:n,lng:r}});const i=o.marker;return new U({markers:[i],position:j.getPosition(i)})}}var Ht,fi,li,hi,dt,pi={};function ls(){if(li)return pi;li=1;var e=J(),t=Go(),r=W(),n=_(),o=at(),i=N(),s=ut(),u=(function(){if(fi)return Ht;fi=1;var d=ot(),h=Function.prototype,g=h.apply,m=h.call;return Ht=typeof Reflect=="object"&&Reflect.apply||(d?m.bind(g):function(){return m.apply(g,arguments)}),Ht})(),a=I(),l=TypeError,c=a(function(){[].keys().reduce(function(){},void 0)}),f=!c&&s("reduce",l);return e({target:"Iterator",proto:!0,real:!0,forced:c||f},{reduce:function(d){n(this);try{r(d)}catch(v){i(this,"throw",v)}var h=arguments.length<2,g=h?void 0:arguments[1];if(f)return u(f,this,h?[d]:[d,g]);var m=o(this),p=0;if(t(m,function(v){h?(h=!1,g=v):g=d(g,v,p),p++},{IS_RECORD:!0}),h)throw new l("Reduce of empty iterator with no initial value");return g}}),pi}hi||(hi=1,ls());class di{constructor(t,r){this.markers={sum:t.length};const n=r.map(i=>i.count),o=n.reduce((i,s)=>i+s,0);this.clusters={count:r.length,markers:{mean:o/r.length,sum:o,min:Math.min(...n),max:Math.max(...n)}}}}class mi{render(t,r,n){let{count:o,position:i}=t;const s=`<svg fill="${o>Math.max(10,r.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50"> <circle cx="120" cy="120" opacity=".6" r="70" /> <circle cx="120" cy="120" opacity=".3" r="90" /> <circle cx="120" cy="120" opacity=".2" r="110" /> <text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${o}</text> </svg>`,u=`Cluster of ${o} markers`,a=Number(google.maps.Marker.MAX_ZINDEX)+o;if(j.isAdvancedMarkerAvailable(n)){const c=new DOMParser().parseFromString(s,"image/svg+xml").documentElement;c.setAttribute("transform","translate(0 25)");const f={map:n,position:i,zIndex:a,title:u,content:c};return new google.maps.marker.AdvancedMarkerElement(f)}const l={position:i,zIndex:a,title:u,icon:{url:`data:image/svg+xml;base64,${btoa(s)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(l)}}class Kt{constructor(){(function(t,r){for(let n in r.prototype)t.prototype[n]=r.prototype[n]})(Kt,google.maps.OverlayView)}}O.MarkerClustererEvents=void 0,(dt=O.MarkerClustererEvents||(O.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",dt.CLUSTERING_END="clusteringend",dt.CLUSTER_CLICK="click",dt.GMP_CLICK="gmp-click";const gi=(e,t,r)=>{t.bounds&&r.fitBounds(t.bounds)};O.AbstractAlgorithm=ft,O.AbstractViewportAlgorithm=Nt,O.Cluster=U,O.ClusterStats=di,O.DefaultRenderer=mi,O.GridAlgorithm=class extends Nt{constructor(e){var{maxDistance:t=4e4,gridSize:r=40}=e;super(Q(e,["maxDistance","gridSize"])),this.clusters=[],this.state={zoom:-1},this.maxDistance=t,this.gridSize=r}calculate(e){let{markers:t,map:r,mapCanvasProjection:n}=e;const o=r.getZoom();T(o);const i={zoom:o};let s=!1;return this.state.zoom>=this.maxZoom&&i.zoom>=this.maxZoom||(s=!rt(this.state,i)),this.state=i,o>=this.maxZoom?{clusters:this.noop({markers:t}),changed:s}:{clusters:this.cluster({markers:Ft(r,n,t,this.viewportPadding),map:r,mapCanvasProjection:n})}}cluster(e){let{markers:t,map:r,mapCanvasProjection:n}=e;return this.clusters=[],t.forEach(o=>{this.addToClosestCluster(o,r,n)}),this.clusters}addToClosestCluster(e,t,r){let n=this.maxDistance,o=null;for(let i=0;i<this.clusters.length;i++){const s=this.clusters[i];T(s.bounds);const u=ko(s.bounds.getCenter().toJSON(),j.getPosition(e).toJSON());u<n&&(n=u,o=s)}if(o)if(T(o.bounds),ct(o.bounds,r,this.gridSize).contains(j.getPosition(e)))o.push(e);else{const i=new U({markers:[e]});this.clusters.push(i)}else{const i=new U({markers:[e]});this.clusters.push(i)}}},O.MarkerClusterer=class extends Kt{constructor(e){let{map:t,markers:r=[],algorithmOptions:n={},algorithm:o=new ci(n),renderer:i=new mi,onClusterClick:s=gi}=e;super(),this.map=null,this.idleListener=null,this.markers=[...r],this.clusters=[],this.algorithm=o,this.renderer=i,this.onClusterClick=s,t&&this.setMap(t)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach(r=>{this.addMarker(r,!0)}),t||this.render()}removeMarker(e,t){const r=this.markers.indexOf(e);return r!==-1&&(j.setMap(e,null),this.markers.splice(r,1),t||this.render(),!0)}removeMarkers(e,t){let r=!1;return e.forEach(n=>{r=this.removeMarker(n,!0)||r}),r&&!t&&this.render(),r}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,O.MarkerClustererEvents.CLUSTERING_BEGIN,this);const{clusters:t,changed:r}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(r||r==null){const n=new Set;for(const i of t)i.markers.length==1&&n.add(i.markers[0]);const o=[];for(const i of this.clusters)i.marker!=null&&(i.markers.length==1?n.has(i.marker)||j.setMap(i.marker,null):o.push(i.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame(()=>o.forEach(i=>j.setMap(i,null)))}google.maps.event.trigger(this,O.MarkerClustererEvents.CLUSTERING_END,this)}}onAdd(){const e=this.getMap();T(e),this.idleListener=e.addListener("idle",this.render.bind(this)),this.render()}onRemove(){this.idleListener&&google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(e=>j.setMap(e,null)),this.clusters.forEach(e=>e.delete()),this.clusters=[]}renderClusters(){const e=new di(this.markers,this.clusters),t=this.getMap();this.clusters.forEach(r=>{if(r.markers.length===1)r.marker=r.markers[0];else if(r.marker=this.renderer.render(r,e,t),r.markers.forEach(n=>j.setMap(n,null)),this.onClusterClick){const n=j.isAdvancedMarker(r.marker)?O.MarkerClustererEvents.GMP_CLICK:O.MarkerClustererEvents.CLUSTER_CLICK;r.marker.addListener(n,o=>{google.maps.event.trigger(this,O.MarkerClustererEvents.CLUSTER_CLICK,r),this.onClusterClick(o,r,t)})}j.setMap(r.marker,t)})}},O.MarkerUtils=j,O.NoopAlgorithm=class extends ft{constructor(e){super(Q(e,[]))}calculate(e){let{markers:t,map:r,mapCanvasProjection:n}=e;return{clusters:this.cluster({markers:t,map:r,mapCanvasProjection:n}),changed:!1}}cluster(e){return this.noop(e)}},O.SuperClusterAlgorithm=ci,O.SuperClusterViewportAlgorithm=class extends Nt{constructor(e){var{maxZoom:t,radius:r=60,viewportPadding:n=60}=e,o=Q(e,["maxZoom","radius","viewportPadding"]);super({maxZoom:t,viewportPadding:n}),this.markers=[],this.clusters=[],this.superCluster=new si(Object.assign({maxZoom:this.maxZoom,radius:r},o)),this.state={zoom:-1,view:[0,0,0,0]}}calculate(e){const t=this.getViewportState(e);let r=!rt(this.state,t);if(!rt(e.markers,this.markers)){r=!0,this.markers=[...e.markers];const n=this.markers.map(o=>{const i=j.getPosition(o);return{type:"Feature",geometry:{type:"Point",coordinates:[i.lng(),i.lat()]},properties:{marker:o}}});this.superCluster.load(n)}return r&&(this.clusters=this.cluster(e),this.state=t),{clusters:this.clusters,changed:r}}cluster(e){const t=this.getViewportState(e);return this.superCluster.getClusters(t.view,t.zoom).map(r=>this.transformCluster(r))}transformCluster(e){let{geometry:{coordinates:[t,r]},properties:n}=e;if(n.cluster)return new U({markers:this.superCluster.getLeaves(n.cluster_id,1/0).map(i=>i.properties.marker),position:{lat:r,lng:t}});const o=n.marker;return new U({markers:[o],position:j.getPosition(o)})}getViewportState(e){const t=e.map.getZoom(),r=e.map.getBounds();return T(t),T(r),{zoom:Math.round(t),view:Eo(r,e.mapCanvasProjection,this.viewportPadding)}}},O.defaultOnClusterClickHandler=gi,O.distanceBetweenPoints=ko,O.extendBoundsToPaddedViewport=ct,O.extendPixelBounds=xo,O.filterMarkersToPaddedViewport=Ft,O.getPaddedViewport=Eo,O.noop=Oo,O.pixelBoundsToLatLngBounds=Mo})})(nt,nt.exports)),nt.exports}var ms=ds(),gs=hs(ms);export{gs as default};
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings