PageSourceSearch

https://www.hetgoedemoment.org/assets/AppGoogleMaps-vdUUHZ-L.js

js hetgoedemoment.org collected 2026-10-04 01:25:07 UTC 25,885 bytes, 7 lines download raw bytes

vendor: 4,344 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AppConsentPlaceholder-DQ47hnsl.js","assets/index-MSa8avpS.js","assets/index-DY-sP-Wx.css","assets/AppConsentPlaceholder-XOcq_Uyj.css"])))=>i.map(i=>d[i]);
2import{_ as be,i as Pe,aa as je,F as Re,G as qe,y as Ue,k as Ne,ab as le,ac as Be,o as F,g as H,b as ce,h as Fe,Y as Ze,Z as Ge,l as ue,c as De,m as I,p as j,I as ze,J as $e,q as J,O as Ve,ad as fe}from"./index-MSa8avpS.js";import{u as We}from"./useClientColors-9U8fDUsH.js";const{getOwnPropertyNames:Ke,getOwnPropertySymbols:Ye}=Object,{hasOwnProperty:He}=Object.prototype;function X(n,e){return function(r,s,i){return n(r,s,i)&&e(r,s,i)}}function Z(n){return function(t,r,s){if(!t||!r||typeof t!="object"||typeof r!="object")return n(t,r,s);const{cache:i}=s,a=i.get(t),l=i.get(r);if(a&&l)return a===r&&l===t;i.set(t,r),i.set(r,t);const o=n(t,r,s);return i.delete(t),i.delete(r),o}}function Je(n){return n?.[Symbol.toStringTag]}function he(n){return Ke(n).concat(Ye(n))}const Xe=Object.hasOwn||((n,e)=>He.call(n,e));function P(n,e){return n===e||!n&&!e&&n!==n&&e!==e}const Qe="__v",et="__o",tt="_owner",{getOwnPropertyDescriptor:pe,keys:de}=Object;function rt(n,e){return n.byteLength===e.byteLength&&z(new Uint8Array(n),new Uint8Array(e))}function nt(n,e,t){let r=n.length;if(e.length!==r)return!1;for(;r-- >0;)if(!t.equals(n[r],e[r],r,r,n,e,t))return!1;return!0}function st(n,e){return n.byteLength===e.byteLength&&z(new Uint8Array(n.buffer,n.byteOffset,n.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function ot(n,e){return P(n.getTime(),e.getTime())}function it(n,e){return n.name===e.name&&n.message===e.message&&n.cause===e.cause&&n.stack===e.stack}function at(n,e){return n===e}function ge(n,e,t){const r=n.size;if(r!==e.size)return!1;if(!r)return!0;const s=new Array(r),i=n.entries();let a,l,o=0;for(;(a=i.next())&&!a.done;){const f=e.entries();let h=!1,c=0;for(;(l=f.next())&&!l.done;){if(s[c]){c++;continue}const d=a.value,g=l.value;if(t.equals(d[0],g[0],o,c,n,e,t)&&t.equals(d[1],g[1],d[0],g[0],n,e,t)){h=s[c]=!0;break}c++}if(!h)return!1;o++}return!0}const lt=P;function ct(n,e,t){const r=de(n);let s=r.length;if(de(e).length!==s)return!1;for(;s-- >0;)if(!Ae(n,e,t,r[s]))return!1;return!0}function q(n,e,t){const r=he(n);let s=r.length;if(he(e).length!==s)return!1;let i,a,l;for(;s-- >0;)if(i=r[s],!Ae(n,e,t,i)||(a=pe(n,i),l=pe(e,i),(a||l)&&(!a||!l||a.configurable!==l.configurable||a.enumerable!==l.enumerable||a.writable!==l.writable)))return!1;return!0}function ut(n,e){return P(n.valueOf(),e.valueOf())}function ft(n,e){return n.source===e.source&&n.flags===e.flags}function me(n,e,t){const r=n.size;if(r!==e.size)return!1;if(!r)return!0;const s=new Array(r),i=n.values();let a,l;for(;(a=i.next())&&!a.done;){const o=e.values();let f=!1,h=0;for(;(l=o.next())&&!l.done;){if(!s[h]&&t.equals(a.value,l.value,a.value,l.value,n,e,t)){f=s[h]=!0;break}h++}if(!f)return!1}return!0}function z(n,e){let t=n.byteLength;if(e.byteLength!==t||n.byteOffset!==e.byteOffset)return!1;for(;t-- >0;)if(n[t]!==e[t])return!1;return!0}function ht(n,e){return n.hostname===e.hostname&&n.pathname===e.pathname&&n.protocol===e.protocol&&n.port===e.port&&n.hash===e.hash&&n.username===e.username&&n.password===e.password}function Ae(n,e,t,r){return(r===tt||r===et||r===Qe)&&(n.$$typeof||e.$$typeof)?!0:Xe(e,r)&&t.equals(n[r],e[r],r,r,n,e,t)}const pt="[object ArrayBuffer]",dt="[object Arguments]",gt="[object Boolean]",mt="[object DataView]",yt="[object Date]",wt="[object Error]",Et="[object Map]",_t="[object Number]",vt="[object Object]",At="[object RegExp]",Mt="[object Set]",kt="[object String]",Ct={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},xt="[object URL]",Ot=Object.prototype.toString;function St({areArrayBuffersEqual:n,areArraysEqual:e,areDataViewsEqual:t,areDatesEqual:r,areErrorsEqual:s,areFunctionsEqual:i,areMapsEqual:a,areNumbersEqual:l,areObjectsEqual:o,arePrimitiveWrappersEqual:f,areRegExpsEqual:h,areSetsEqual:c,areTypedArraysEqual:d,areUrlsEqual:g,unknownTagComparators:y}){return function(u,p,m){if(u===p)return!0;
2if(u==null||p==null)return!1;const A=typeof u;if(A!==typeof p)return!1;if(A!=="object")return A==="number"?l(u,p,m):A==="function"?i(u,p,m):!1;const k=u.constructor;if(k!==p.constructor)return!1;if(k===Object)return o(u,p,m);if(Array.isArray(u))return e(u,p,m);if(k===Date)return r(u,p,m);if(k===RegExp)return h(u,p,m);if(k===Map)return a(u,p,m);if(k===Set)return c(u,p,m);const w=Ot.call(u);if(w===yt)return r(u,p,m);if(w===At)return h(u,p,m);if(w===Et)return a(u,p,m);if(w===Mt)return c(u,p,m);if(w===vt)return typeof u.then!="function"&&typeof p.then!="function"&&o(u,p,m);if(w===xt)return g(u,p,m);if(w===wt)return s(u,p,m);if(w===dt)return o(u,p,m);if(Ct[w])return d(u,p,m);if(w===pt)return n(u,p,m);if(w===mt)return t(u,p,m);if(w===gt||w===_t||w===kt)return f(u,p,m);if(y){let x=y[w];if(!x){const C=Je(u);C&&(x=y[C])}if(x)return x(u,p,m)}return!1}}function Tt({circular:n,createCustomConfig:e,strict:t}){let r={areArrayBuffersEqual:rt,areArraysEqual:t?q:nt,areDataViewsEqual:st,areDatesEqual:ot,areErrorsEqual:it,areFunctionsEqual:at,areMapsEqual:t?X(ge,q):ge,areNumbersEqual:lt,areObjectsEqual:t?q:ct,arePrimitiveWrappersEqual:ut,areRegExpsEqual:ft,areSetsEqual:t?X(me,q):me,areTypedArraysEqual:t?X(z,q):z,areUrlsEqual:ht,unknownTagComparators:void 0};if(e&&(r=Object.assign({},r,e(r))),n){const s=Z(r.areArraysEqual),i=Z(r.areMapsEqual),a=Z(r.areObjectsEqual),l=Z(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:s,areMapsEqual:i,areObjectsEqual:a,areSetsEqual:l})}return r}function It(n){return function(e,t,r,s,i,a,l){return n(e,t,l)}}function Lt({circular:n,comparator:e,createState:t,equals:r,strict:s}){if(t)return function(l,o){const{cache:f=n?new WeakMap:void 0,meta:h}=t();return e(l,o,{cache:f,equals:r,meta:h,strict:s})};if(n)return function(l,o){return e(l,o,{cache:new WeakMap,equals:r,meta:void 0,strict:s})};const i={cache:void 0,equals:r,meta:void 0,strict:s};return function(l,o){return e(l,o,i)}}const ye=T();T({strict:!0});T({circular:!0});T({circular:!0,strict:!0});T({createInternalComparator:()=>P});T({strict:!0,createInternalComparator:()=>P});T({circular:!0,createInternalComparator:()=>P});T({circular:!0,createInternalComparator:()=>P,strict:!0});function T(n={}){const{circular:e=!1,createInternalComparator:t,createState:r,strict:s=!1}=n,i=Tt(n),a=St(i),l=t?t(a):It(a);return Lt({circular:e,comparator:a,createState:r,equals:l,strict:s})}const we=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],Q=1,U=8,E=new Uint32Array(96);class oe{static from(e){if(!e||e.byteLength===void 0||e.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[t,r]=new Uint8Array(e,0,2);if(t!==219)throw new Error("Data does not appear to be in a KDBush format.");const s=r>>4;if(s!==Q)throw new Error(`Got v${s} data when expected v${Q}.`);const i=we[r&15];if(!i)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(e,2,1),[l]=new Uint32Array(e,4,1);return new oe(l,a,i,void 0,e)}constructor(e,t=64,r=Float64Array,s=ArrayBuffer,i){if(isNaN(e)||e<0)throw new Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=r,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const a=we.indexOf(this.ArrayType),l=e*2*this.ArrayType.BYTES_PER_ELEMENT,o=e*this.IndexArrayType.BYTES_PER_ELEMENT,f=(8-o%8)%8;if(a<0)throw new Error(`Unexpected typed array class: ${r}.`);if(i)this.data=i,this.ids=new this.IndexArrayType(i,U,e),this.coords=new r(i,U+o+f,e*2),this._pos=e*2,this._finished=!0;else{const h=this.data=new s(U+l+o+f);this.ids=new this.IndexArrayType(h,U,e),this.coords=new r(h,U+o+f,e*2),this._pos=0,this._finished=!1,new Uint8Array(h,0,2).set([219,(Q<<4)+a]),new Uint16Array(h,2,1)[0]=t,new Uint32Array(h,4,1)[0]=e}}add(e,t){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=e,this.coords[this._pos++]=t,r}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return re(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,r,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:a,nodeSize:l}=this;E[0]=0,E[1]=i.length-1,E[2]=0;let o=3;const f=[];for(;o>0;){const h=E[--o],c=E[--o],d=E[--o];if(c-d<=l){for(let u=d;u<=c;u++){const p=a[2*u],m=a[2*u+1];p>=e&&p<=r&&m>=t&&m<=s&&f.push(i[u])}continue}const g=d+c>>1,y=a[2*g],_=a[2*g+1];y>=e&&y<=r&&_>=t&&_<=s&&f.push(i[g]),(h===0?e<=y:t<=_)&&(E[o++]=d,E[o++]=g-1,E[o++]=1-h),(h===0?r>=y:s>=_)&&(E[o++]=g+1,E[o++]=c,E[o++]=1-h)}return f}within(e,t,r){const s=[];return this.withinInto(e,t,r,s),s}withinInto(e,t,r,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:a,nodeSize:l}=this;E[0]=0,E[1]=i.length-1,E[2]=0;let o=3,f=0;const h=r*r;for(;o>0;){const c=E[--o],d=E[--o],g=E[--o];if(d-g<=l){for(let p=g;p<=d;p++)Ee(a[2*p],a[2*p+1],e,t)<=h&&(s[f++]=i[p]);continue}const y=g+d>>1,_=a[2*y],u=a[2*y+1];Ee(_,u,e,t)<=h&&(s[f++]=i[y]),(c===0?e-r<=_:t-r<=u)&&(E[o++]=g,E[o++]=y-1,E[o++]=1-c),(c===0?e+r>=_:t+r>=u)&&(E[o++]=y+1,E[o++]=d,E[o++]=1-c)}return f}}function re(n,e,t,r,s,i){if(s-r<=t)return;const a=r+s>>1;Me(n,e,a,r,s,i),re(n,e,t,r,a-1,1-i),re(n,e,t,a+1,s,1-i)}function Me(n,e,t,r,s,i){for(;s>r;){if(s-r>600){const f=s-r+1,h=t-r+1,c=Math.log(f),d=.5*Math.exp(2*c/3),g=.5*Math.sqrt(c*d*(f-d)/f)*(h-f/2<0?-1:1),y=Math.max(r,Math.floor(t-h*d/f+g)),_=Math.min(s,Math.floor(t+(f-h)*d/f+g));Me(n,e,t,y,_,i)}const a=e[2*t+i];let l=r,o=s;for(N(n,e,r,t),e[2*s+i]>a&&N(n,e,r,s);l<o;){for(N(n,e,l,o),l++,o--;e[2*l+i]<a;)l++;for(;e[2*o+i]>a;)o--}e[2*r+i]===a?N(n,e,r,o):(o++,N(n,e,o,s)),o<=t&&(r=o+1),t<=o&&(s=o-1)}}function N(n,e,t,r){ee(n,t,r),ee(e,2*t,2*r),ee(e,2*t+1,2*r+1)}function ee(n,e,t){const r=n[e];n[e]=n[t],n[t]=r}function Ee(n,e,t,r){const s=n-t,i=e-r;return s*s+i*i}const bt={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:n=>n},_e=Math.fround||(n=>(e=>(n[0]=+e,n[0])))(new Float32Array(1)),L=2,S=3,te=4,O=5,ke=6;class Pt{constructor(e){this.options=Object.assign(Object.create(bt),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:r,maxZoom:s}=this.options;t&&console.time("total time");const i=`prepare ${e.length} points`;t&&console.time(i),this.points=e;const a=[];for(let o=0;o<e.length;o++){const f=e[o];if(!f.geometry)continue;const[h,c]=f.geometry.coordinates,d=_e(G(h)),g=_e(D(c));a.push(d,g,1/0,o,-1,1),this.options.reduce&&a.push(0)}let l=this.trees[s+1]=this._createTree(a);t&&console.timeEnd(i);for(let o=s;o>=r;o--){const f=+Date.now();l=this.trees[o]=this._createTree(this._cluster(l,o)),t&&console.log("z%d: %d clusters in %dms",o,l.numItems,+Date.now()-f)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let r=((e[0]+180)%360+360)%360-180;const s=Math.max(-90,Math.min(90,e[1]));let i=e[2]===180?180:((e[2]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)r=-180,i=180;else if(r>i){const c=this.getClusters([r,s,180,a],t),d=this.getClusters([-180,s,i,a],t);return c.concat(d)}const l=this.trees[this._limitZoom(t)],o=l.range(G(r),D(a),G(i),D(s)),f=l.data,h=[];for(const c of o){const d=this.stride*c;h.push(f[d+O]>1?ve(f,d,this.clusterProps):this.points[f[d+S]])}return h}getChildren(e){const t=this._getOriginId(e),r=this._getOriginZoom(e),s="No cluster with the specified id.",i=this.trees[r];if(!i)throw new Error(s);const a=i.data;if(t*this.stride>=a.length)throw new Error(s);const l=this.options.radius/(this.options.extent*Math.pow(2,r-1)),o=a[t*this.stride],f=a[t*this.stride+1],h=i.within(o,f,l),c=[];for(const d of h){const g=d*this.stride;a[g+te]===e&&c.push(a[g+O]>1?ve(a,g,this.clusterProps):this.points[a[g+S]])}if(c.length===0)throw new Error(s);return c}getLeaves(e,t,r){t=t||10,r=r||0;const s=[];return this._appendLeaves(s,e,t,r,0),s}getTile(e,t,r){const s=this.trees[this._limitZoom(e)],i=Math.pow(2,e),{extent:a,radius:l}=this.options,o=l/a,f=(r-o)/i,h=(r+1+o)/i,c={features:[]};return this._addTileFeatures(s.range((t-o)/i,f,(t+1+o)/i,h),s.data,t,r,i,c),t===0&&this._addTileFeatures(s.range(1-o/i,f,1,h),s.data,i,r,i,c),t===i-1&&this._addTileFeatures(s.range(0,f,o/i,h),s.data,-1,r,i,c),c.features.length?c:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const r=this.getChildren(e);if(t++,r.length!==1)break;e=r[0].properties.cluster_id}return t}_appendLeaves(e,t,r,s,i){const a=this.getChildren(t);for(const l of a){const o=l.properties;if(o&&o.cluster?i+o.point_count<=s?i+=o.point_count:i=this._appendLeaves(e,o.cluster_id,r,s,i):i<s?i++:e.push(l),e.length===r)break}return i}_createTree(e){const t=new oe(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<e.length;r+=this.stride)t.add(e[r],e[r+1]);return t.finish(),t.data=e,t}_addTileFeatures(e,t,r,s,i,a){for(const l of e){const o=l*this.stride,f=t[o+O]>1;let h,c,d;
2if(f)h=Ce(t,o,this.clusterProps),c=t[o],d=t[o+1];else{const _=this.points[t[o+S]];h=_.properties;const[u,p]=_.geometry.coordinates;c=G(u),d=D(p)}const g={type:1,geometry:[[Math.round(this.options.extent*(c*i-r)),Math.round(this.options.extent*(d*i-s))]],tags:h};let y;f||this.options.generateId?y=t[o+S]:y=this.points[t[o+S]].id,y!==void 0&&(g.id=y),a.features.push(g)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:r,extent:s,reduce:i,minPoints:a}=this.options,l=r/(s*Math.pow(2,t)),o=e.data,f=[],h=this.stride;for(let c=0;c<o.length;c+=h){if(o[c+L]<=t)continue;o[c+L]=t;const d=o[c],g=o[c+1],y=e.within(o[c],o[c+1],l),_=o[c+O];let u=_;for(const p of y){const m=p*h;o[m+L]>t&&(u+=o[m+O])}if(u>_&&u>=a){let p=d*_,m=g*_,A,k=-1;const w=((c/h|0)<<5)+(t+1)+this.points.length;for(const x of y){const C=x*h;if(o[C+L]<=t)continue;o[C+L]=t;const R=o[C+O];p+=o[C]*R,m+=o[C+1]*R,o[C+te]=w,i&&(A||(A=this._map(o,c,!0),k=this.clusterProps.length,this.clusterProps.push(A)),i(A,this._map(o,C)))}o[c+te]=w,f.push(p/u,m/u,1/0,w,-1,u),i&&f.push(k)}else{for(let p=0;p<h;p++)f.push(o[c+p]);if(u>1)for(const p of y){const m=p*h;if(!(o[m+L]<=t)){o[m+L]=t;for(let A=0;A<h;A++)f.push(o[m+A])}}}}return f}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,r){if(e[t+O]>1){const a=this.clusterProps[e[t+ke]];return r?Object.assign({},a):a}const s=this.points[e[t+S]].properties,i=this.options.map(s);return r&&i===s?Object.assign({},i):i}}function ve(n,e,t){return{type:"Feature",id:n[e+S],properties:Ce(n,e,t),geometry:{type:"Point",coordinates:[jt(n[e]),Rt(n[e+1])]}}}function Ce(n,e,t){const r=n[e+O],s=r>=1e4?`${Math.round(r/1e3)}k`:r>=1e3?`${Math.round(r/100)/10}k`:r,i=n[e+ke],a=i===-1?{}:Object.assign({},t[i]);return Object.assign(a,{cluster:!0,cluster_id:n[e+S],point_count:r,point_count_abbreviated:s})}function G(n){return n/360+.5}function D(n){const e=Math.sin(n*Math.PI/180),t=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return t<0?0:t>1?1:t}function jt(n){return(n-.5)*360}function Rt(n){const e=(180-n*360)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function qt(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(n);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(n,r[s])&&(t[r[s]]=n[r[s]]);return t}class M{static isAdvancedMarkerAvailable(e){return google.maps.marker&&e.getMapCapabilities().isAdvancedMarkersAvailable===!0}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(Number.isFinite(e.position.lat)&&Number.isFinite(e.position.lng))return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return this.isAdvancedMarker(e)?!0:e.getVisible()}}class ne{constructor({markers:e,position:t}){this.markers=[],e&&(this.markers=e),t&&(t instanceof google.maps.LatLng?this._position=t:this._position=new google.maps.LatLng(t))}get bounds(){if(this.markers.length===0&&!this._position)return;const e=new google.maps.LatLngBounds(this._position,this._position);for(const t of this.markers)e.extend(M.getPosition(t));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(e=>M.getVisible(e)).length}push(e){this.markers.push(e)}delete(){this.marker&&(M.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}function se(n,e="assertion failed"){if(n==null)throw Error(e)}class Ut{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return Nt(e)}}const Nt=n=>n.map(t=>new ne({position:M.getPosition(t),markers:[t]}));class Bt extends Ut{constructor(e){var{maxZoom:t,radius:r=60}=e,s=qt(e,["maxZoom","radius"]);super({maxZoom:t}
2),this.markers=[],this.clusters=[],this.state={zoom:-1},this.superCluster=new Pt(Object.assign({maxZoom:this.maxZoom,radius:r},s))}calculate(e){let t=!1,r=e.map.getZoom();se(r),r=Math.round(r);const s={zoom:r};if(!ye(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const i=this.markers.map(a=>{const l=M.getPosition(a);return{type:"Feature",geometry:{type:"Point",coordinates:[l.lng(),l.lat()]},properties:{marker:a}}});this.superCluster.load(i)}return t||(this.state.zoom<=this.maxZoom||s.zoom<=this.maxZoom)&&(t=!ye(this.state,s)),this.state=s,e.markers.length===0?(this.clusters=[],{clusters:this.clusters,changed:t}):(t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t})}cluster({map:e}){const t=e.getZoom();return se(t),this.superCluster.getClusters([-180,-90,180,90],Math.round(t)).map(r=>this.transformCluster(r))}transformCluster({geometry:{coordinates:[e,t]},properties:r}){if(r.cluster)return new ne({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(i=>i.properties.marker),position:{lat:t,lng:e}});const s=r.marker;return new ne({markers:[s],position:M.getPosition(s)})}}class Ft{constructor(e,t){this.markers={sum:e.length};const r=t.map(i=>i.count),s=r.reduce((i,a)=>i+a,0);this.clusters={count:t.length,markers:{mean:s/t.length,sum:s,min:Math.min(...r),max:Math.max(...r)}}}}class Zt{render({count:e,position:t},r,s){const a=`<svg fill="${e>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">
3<circle cx="120" cy="120" opacity=".6" r="70" />
4<circle cx="120" cy="120" opacity=".3" r="90" />
5<circle cx="120" cy="120" opacity=".2" r="110" />
6<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${e}</text>
7</svg>`,l=`Cluster of ${e} markers`,o=Number(google.maps.Marker.MAX_ZINDEX)+e;if(M.isAdvancedMarkerAvailable(s)){const c=new DOMParser().parseFromString(a,"image/svg+xml").documentElement;c.setAttribute("transform","translate(0 25)");const d={map:s,position:t,zIndex:o,title:l,content:c};return new google.maps.marker.AdvancedMarkerElement(d)}const f={position:t,zIndex:o,title:l,icon:{url:`data:image/svg+xml;base64,${btoa(a)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(f)}}function Gt(n,e){for(let t in e.prototype)n.prototype[t]=e.prototype[t]}class ie{constructor(){Gt(ie,google.maps.OverlayView)}}var b;(function(n){n.CLUSTERING_BEGIN="clusteringbegin",n.CLUSTERING_END="clusteringend",n.CLUSTER_CLICK="click",n.GMP_CLICK="gmp-click"})(b||(b={}));const Dt=(n,e,t)=>{e.bounds&&t.fitBounds(e.bounds)};class zt extends ie{constructor({map:e,markers:t=[],algorithmOptions:r={},algorithm:s=new Bt(r),renderer:i=new Zt,onClusterClick:a=Dt}){super(),this.map=null,this.idleListener=null,this.markers=[...t],this.clusters=[],this.algorithm=s,this.renderer=i,this.onClusterClick=a,e&&this.setMap(e)}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?!1:(M.setMap(e,null),this.markers.splice(r,1),t||this.render(),!0)}removeMarkers(e,t){let r=!1;return e.forEach(s=>{r=this.removeMarker(s,!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,b.CLUSTERING_BEGIN,this);const{clusters:t,changed:r}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(r||r==null){const s=new Set;for(const a of t)a.markers.length==1&&s.add(a.markers[0]);const i=[];for(const a of this.clusters)a.marker!=null&&(a.markers.length==1?s.has(a.marker)||M.setMap(a.marker,null):i.push(a.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame(()=>i.forEach(a=>M.setMap(a,null)))}google.maps.event.trigger(this,b.CLUSTERING_END,this)}}onAdd(){const e=this.getMap();se(e),this.idleListener=e.addListener("idle",this.render.bind(this)),this.render()}onRemove(){this.idleListener&&google.maps.event.removeListener(this.idleListener),this.reset()}
7reset(){this.markers.forEach(e=>M.setMap(e,null)),this.clusters.forEach(e=>e.delete()),this.clusters=[]}renderClusters(){const e=new Ft(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(s=>M.setMap(s,null)),this.onClusterClick){const s=M.isAdvancedMarker(r.marker)?b.GMP_CLICK:b.CLUSTER_CLICK;r.marker.addListener(s,i=>{google.maps.event.trigger(this,b.CLUSTER_CLICK,r),this.onClusterClick(i,r,t)})}M.setMap(r.marker,t)})}}const $t={class:"gmaps"},Vt={__name:"AppGoogleMaps",props:{markers:{type:Array,default:()=>[]},zoom:{type:Number,default:12},mapStyle:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},center:{type:Object,default:()=>({lat:50.855095,lng:4.2930168})},fitBounds:{type:Boolean,default:!0},markerClustering:{type:Boolean,default:!0},icon:String},setup(n){const e=ze(()=>$e(()=>import("./AppConsentPlaceholder-DQ47hnsl.js"),__vite__mapDeps([0,1,2,3]))),t=n,{zoom:r,mapStyle:s,fitBounds:i,markers:a,markerClustering:l}=Pe(t),o=je(),{getDocumentLanguage:f}=Re(qe()),{isVendorAllowed:h}=Ve(),{loadGoogleMaps:c}=Ue(),{getColor:d}=We();let g=[],y=null;const _=j(),u=j(null),p=j(null),m=j(null),A=j(null),k=j(null),w=I(()=>h("google_maps")),x=I(()=>J.get(t,"center.lat")),C=I(()=>J.get(t,"center.lng")),R=I(()=>t.center&&x.value&&C.value?new google.maps.LatLng(x.value,C.value):null),xe=I(()=>({url:fe(`<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 32 45" style="enable-background:new 0 0 32 45;" xml:space="preserve" fill="${d("secondary-color")}"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.1,0C24.9,0,32,7.2,32,16.1c0,8.8-15.3,28.7-15.9,28.7C15.5,44.7,0,24.9,0,16.1C0,7.2,7.1,0,16.1,0z M16.1,10.1c3,0,5.5,2.5,5.5,5.5s-2.5,5.5-5.5,5.5s-5.5-2.5-5.5-5.5S13,10.1,16.1,10.1z"/></svg>`),scaledSize:new google.maps.Size(32,45)})),Oe=I(()=>({url:fe(`<svg fill="${d("primary-color")}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240"><circle cx="120" cy="120" opacity=".9" r="70" /></svg>`),scaledSize:new google.maps.Size(75,75)})),Se=I(()=>({center:R.value,scrollwheel:!1,panControl:!1,zoomControl:!0,mapTypeControl:!1,scaleControl:!1,streetViewControl:!1,overviewMapControl:!1,zoom:r.value,...t.options})),Te=v=>v||t.icon?{url:v||t.icon}:xe.value,Ie=()=>{l.value&&y?y.removeMarkers(g):g.forEach(v=>v.setMap(null)),g=[],p.value=new google.maps.LatLngBounds},ae=()=>{Ie(),!(!a.value||!a.value.length)&&(g=a.value.filter(({position:v})=>v.lat&&v.lng).map(v=>{const{lat:B,lng:Le}=v.position,W=new google.maps.LatLng(B,Le),K=new google.maps.Marker({map:u.value,position:W,icon:Te(v.icon)});if(A.value){const Y=new google.maps.InfoWindow({minWidth:150,maxWidth:200});K.addListener("click",()=>{m.value&&m.value.close(),k.value=v,$(W),Y.setContent(A.value),Y.open(u.value,K),m.value=Y})}return p.value.extend(W),K}),l.value&&y.addMarkers(g),i.value&&p.value&&(g.length>1?u.value.fitBounds(p.value,30):g.length?$(J.get(g,"0.position")):$()))},$=v=>{u.value&&u.value.setCenter(v||R.value)},V=async()=>{await c(),u.value=new google.maps.Map(_.value,Se.value),u.value.mapTypes.set("Styled",new google.maps.StyledMapType(s.value,{name:"Styled"})),u.value.setMapTypeId("Styled"),u.value.addListener("zoom_changed",()=>{m.value&&m.value.close()}),y=new zt({map:u.value,renderer:{render:({count:v,position:B})=>new google.maps.Marker({label:{text:String(v),color:"white",fontSize:"14px"},icon:Oe.value,position:B,zIndex:Number(google.maps.Marker.MAX_ZINDEX)+v})}}),ae()};return Ne(()=>{w.value&&V()}),le(a,()=>{window.google&&google.maps&&ae()}),le(f,()=>{w.value&&V()}),Be(w,()=>V()),(v,B)=>(F(),H("div",$t,[w.value?(F(),H("div",{key:0,class:"gmaps__container",ref_key:"container",ref:_},[ce(o).info_window?(F(),H("div",{key:0,ref_key:"info_window_content",ref:A},[k.value?Fe(v.$slots,"info_window",Ze(Ge(k.value)),void 0,!0,0):ue("",!0)],512)):ue("",!0)],512)):(F(),De(ce(e),{key:1,class:"position-absolute"}))]))}},Yt=be(Vt,[["__scopeId","data-v-052e2dfa"]]);export{Yt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.