PageSourceSearch

https://smartfitmethod.com/_next/static/immutable/chunks/3nyy5qh2e-dmp.js

js smartfitmethod.com collected 2026-10-02 15:08:24 UTC 72,078 bytes, 12 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,376896,237992,e=>{"use strict";let t,r,n;var a,o,l=e.i(271645),i=e.i(174080);function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function u(e,t,r,n){return new(r||(r=Promise))(function(a,o){function l(e){try{s(n.next(e))}catch(e){o(e)}}function i(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?a(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(l,i)}s((n=n.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;let c=()=>{},d="@googlemaps/js-api-loader",f={createScriptURL:e=>e},g=!1;function p(e){if(g)return void c(`The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`);e.apiKey&&(c(),e.key||(e.key=e.apiKey)),function(e){var r,n,a,o,l,i,s,u,g,p,m;let h=!!window.google?.maps?.importLibrary;h&&JSON.stringify(e);h||(o="google",l="importLibrary",i=document,g=(u=(s=window)[o]||(s[o]={})).maps||(u.maps={}),p=new Set,m=new URLSearchParams,g[l]?console.warn("The Google Maps JavaScript API only loads once. Ignoring:",e):g[l]=(s,...u)=>p.add(s)&&(r||(r=new Promise(async(l,s)=>{var u,h;for(a in await (n=i.createElement("script")),m.set("libraries",[...p]+""),e)m.set(a.replace(/[A-Z]/g,e=>"_"+e[0].toLowerCase()),e[a]);m.set("callback",o+".maps.__ib__"),u=n,h="https://maps.googleapis.com/maps/api/js?"+m,u.src=(function(){if(t)return t;let e=globalThis.trustedTypes;if(!e)return t=f;try{t=e.createPolicy(d,{createScriptURL:e=>e})}catch(e){c(`Failed to create Trusted Types policy "${d}": ${e instanceof Error?e.message:String(e)}.
2
3If your Content Security Policy uses "require-trusted-types-for 'script'", allow this policy with "trusted-types ${d} google-maps-api-loader google-maps-api#html lit-html". The "google-maps-api-loader", "lit-html", and "google-maps-api#html" policies are required for full Maps JavaScript API execution. Falling back to a string script URL.`),t=f}return t})().createScriptURL(h),g.__ib__=l,n.onerror=()=>r=s(Error("The Google Maps JavaScript API could not load.")),n.nonce=i.querySelector("script[nonce]")?.nonce||"",i.head.append(n)}))).then(()=>g[l](s,...u)))}(e),g=!0}async function m(e){if(g||c(),!window?.google?.maps?.importLibrary)throw Error("google.maps.importLibrary is not installed.");return await google.maps.importLibrary(e)}let h="NOT_LOADED",y="LOADING",b="LOADED",v=["gmp_visgl_reactgooglemaps_v1.9.0"],E=l.default.createContext(null),w=h,C=new Set;function k(e){e!==w&&(w=e,C.forEach(e=>e(w)))}let O={onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onContextmenu:"contextmenu",onDblclick:"dblclick",onDrag:"drag",onDragend:"dragend",onDragstart:"dragstart",onHeadingChanged:"heading_changed",onIdle:"idle",onIsFractionalZoomEnabledChanged:"isfractionalzoomenabled_changed",onMapCapabilitiesChanged:"mapcapabilities_changed",onMapTypeIdChanged:"maptypeid_changed",onMousemove:"mousemove",onMouseout:"mouseout",onMouseover:"mouseover",onProjectionChanged:"projection_changed",onRenderingTypeChanged:"renderingtype_changed",onTilesLoaded:"tilesloaded",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed",onCameraChanged:"bounds_changed"},M=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],A=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],j=Object.keys(O);function x(e,t){let r=(0,l.useRef)(e);return t(e,r.current)||(r.current=e),r.current}let{getOwnPropertyNames:L,getOwnPropertySymbols:S}=Object,{hasOwnProperty:_}=Object.prototype;function I(e,t){return function(r,n,a){return e(r,n,a)&&t(r,n,a)}}function P(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);let{cache:a}=n,o=a.get(t),l=a.get(r);if(o&&l)return o===r&&l===t;a.set(t,r),a.set(r,t);let i=e(t,r,n);return a.delete(t),a.delete(r),i}}function N(e){return L(e).concat(S(e))}let T=Object.hasOwn||((e,t)=>_.call(e,t)),{getOwnPropertyDescriptor:R,keys:D}=Object,F=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};function U(e,t){return e===t}function z(e,t){return e.byteLength===t.byteLength&&Y(new Uint8Array(e),new Uint8Array(t))}function q(e,t,r){let 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 B(e,t){return e.byteLength===t.byteLength&&Y(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Z(e,t){return F(e.getTime(),t.getTime())}function $(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function G(e,t,r){let n,a,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let l=Array(o),i=e.entries(),s=0;for(;(n=i.next())&&!n.done;){let o=t.entries(),i=!1,u=0;for(;(a=o.next())&&!a.done;){if(l[u]){u++;continue}let o=n.value,c=a.value;if(r.equals(o[0],c[0],s,u,e,t,r)&&r.equals(o[1],c[1],o[0],c[0],e,t,r)){i=l[u]=!0;break}u++}if(!i)return!1;s++}return!0}function H(e,t,r){let n=D(e),a=n.length;if(D(t).length!==a)return!1;for(;a-- >0;)if(!Q(e,t,r,n[a]))return!1;return!0}function J(e,t,r){let n,a,o,l=N(e),i=l.length;if(N(t).length!==i)return!1;for(;i-- >0;)if(!Q(e,t,r,n=l[i])||(a=R(e,n),o=R(t,n),(a||o)&&(!a||!o||a.configurable!==o.configurable||a.enumerable!==o.enumerable||a.writable!==o.writable)))return!1;return!0}function V(e,t){return F(e.valueOf(),t.valueOf())}function W(e,t){return e.source===t.source&&e.flags===t.flags}function K(e,t,r){let n,a,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let l=Array(o),i=e.values();for(;(n=i.next())&&!n.done;){let o=t.values(),i=!1,s=0;for(;(a=o.next())&&!a.done;
3){if(!l[s]&&r.equals(n.value,a.value,n.value,a.value,e,t,r)){i=l[s]=!0;break}s++}if(!i)return!1}return!0}function Y(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function X(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 Q(e,t,r,n){return("_owner"===n||"__o"===n||"__v"===n)&&(!!e.$$typeof||!!t.$$typeof)||T(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}let ee=Object.prototype.toString,et=er();function er(e={}){let{circular:t=!1,createInternalComparator:r,createState:n,strict:a=!1}=e,o=function(e){let t=function({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:a,areFunctionsEqual:o,areMapsEqual:l,areNumbersEqual:i,areObjectsEqual:s,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:g}){return{"[object Arguments]":s,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":o,"[object BigInt]":i,"[object BigInt64Array]":f,"[object BigUint64Array]":f,"[object Boolean]":u,"[object DataView]":r,"[object Date]":n,"[object Error]":a,"[object Float16Array]":f,"[object Float32Array]":f,"[object Float64Array]":f,"[object Function]":o,"[object GeneratorFunction]":o,"[object Int8Array]":f,"[object Int16Array]":f,"[object Int32Array]":f,"[object Map]":l,"[object Number]":u,"[object Object]":(e,t,r)=>"function"!=typeof e.then&&"function"!=typeof t.then&&s(e,t,r),"[object RegExp]":c,"[object Set]":d,"[object String]":u,"[object URL]":g,"[object Uint8Array]":f,"[object Uint8ClampedArray]":f,"[object Uint16Array]":f,"[object Uint32Array]":f}}(e),{areArraysEqual:r,areDatesEqual:n,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:i,areRegExpsEqual:s,areSetsEqual:u,getUnsupportedCustomComparator:c}=e;return function(e,d,f){if(e===d)return!0;if(null==e||null==d)return!1;let g=typeof e;if(g!==typeof d)return!1;if("object"!==g)return"number"===g||"bigint"===g?l(e,d,f):"function"===g&&a(e,d,f);let p=e.constructor;if(p!==d.constructor)return!1;if(p===Object)return i(e,d,f);if(p===Array)return r(e,d,f);if(p===Date)return n(e,d,f);if(p===RegExp)return s(e,d,f);if(p===Map)return o(e,d,f);if(p===Set)return u(e,d,f);if(p===Promise)return!1;if(Array.isArray(e))return r(e,d,f);let m=ee.call(e),h=t[m];if(h)return h(e,d,f);let y=c&&c(e,d,f,m);return!!y&&y(e,d,f)}}(function({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:z,areArraysEqual:r?J:q,areDataViewsEqual:B,areDatesEqual:Z,areErrorsEqual:$,areFunctionsEqual:U,areMapsEqual:r?I(G,J):G,areNumbersEqual:F,areObjectsEqual:r?J:H,arePrimitiveWrappersEqual:V,areRegExpsEqual:W,areSetsEqual:r?I(K,J):K,areTypedArraysEqual:r?I(Y,J):Y,areUrlsEqual:X,getUnsupportedCustomComparator:void 0};if(t&&(n=Object.assign({},n,t(n))),e){let e=P(n.areArraysEqual),t=P(n.areMapsEqual),r=P(n.areObjectsEqual),a=P(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:r,areSetsEqual:a})}return n}(e)),l=r?r(o):function(e,t,r,n,a,l,i){return o(e,t,i)};return function({circular:e,comparator:t,createState:r,equals:n,strict:a}){if(r)return function(o,l){let{cache:i=e?new WeakMap:void 0,meta:s}=r();return t(o,l,{cache:i,equals:n,meta:s,strict:a})};if(e)return function(e,r){return t(e,r,{cache:new WeakMap,equals:n,meta:void 0,strict:a})};let o={cache:void 0,equals:n,meta:void 0,strict:a};return function(e,r){return t(e,r,o)}}({circular:t,comparator:o,createState:n,equals:l,strict:a})}function en(e,t){(0,l.useEffect)(e,[x(t,et)])}er({strict:!0}),er({circular:!0}),er({circular:!0,strict:!0}),er({createInternalComparator:()=>F}),er({strict:!0,createInternalComparator:()=>F}),er({circular:!0,createInternalComparator:()=>F}),er({circular:!0,createInternalComparator:()=>F,strict:!0});let ea=new Set(["backgroundColor","clickableIcons","controlSize","disableDefaultUI","disableDoubleClickZoom","draggable","draggableCursor","draggingCursor","fullscreenControl","fullscreenControlOptions","gestureHandling","headingInteractionEnabled","isFractionalZoomEnabled","keyboardShortcuts","mapT
3ypeControl","mapTypeControlOptions","mapTypeId","maxZoom","minZoom","noClear","panControl","panControlOptions","restriction","rotateControl","rotateControlOptions","scaleControl","scaleControlOptions","scrollwheel","streetView","streetViewControl","streetViewControlOptions","styles","tiltInteractionEnabled","zoomControl","zoomControlOptions"]);function eo(){var e;return(null==(e=(0,l.useContext)(E))?void 0:e.status)||h}function el(e,t){if(!e||!t)return!1;let r=ei(e),n=ei(t);return r.lat===n.lat&&r.lng===n.lng}function ei(e){return e&&"object"==typeof e&&"lat"in e&&"lng"in e&&Number.isFinite(e.lat)&&Number.isFinite(e.lng)?e:e.toJSON()}function es(e){if("north"in e&&"south"in e&&"east"in e&&"west"in e)return e;let t=e.getNorthEast().toJSON(),r=e.getSouthWest().toJSON();return{north:t.lat,east:t.lng,south:r.lat,west:r.lng}}function eu(e,t){if(!e||!t)return e===t;let r="getArray"in t?t.getArray():t;if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(!el(e[t],r[t]))return!1;return!0}let ec=()=>l.default.createElement("div",{style:{position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:999,display:"flex",flexFlow:"column nowrap",textAlign:"center",justifyContent:"center",fontSize:".8rem",color:"rgba(0,0,0,0.6)",background:"#dddddd",padding:"1rem 1.5rem"}},l.default.createElement("h2",null,"Error: AuthFailure"),l.default.createElement("p",null,"A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",l.default.createElement("code",null,"APIProvider.apiKey")," prop is correct. Check the error-message in the console for further details."));function ed(){let[e,t]=(0,l.useState)(null);return[e,(0,l.useCallback)(e=>t(e),[t])]}function ef(){let[,e]=(0,l.useReducer)(e=>e+1,0);return e}class eg{static has(e){return this.entries[e]&&this.entries[e].length>0}static pop(e){return this.entries[e]&&this.entries[e].pop()||null}static push(e,t){this.entries[e]||(this.entries[e]=[]),this.entries[e].push(t)}}eg.entries={};let ep=l.default.createContext(null),em=e=>{let t,r,n,a,o,i,{children:u,id:c,className:d,style:f}=e,g=(0,l.useContext)(E),p=eo();if(!g)throw Error("<Map> can only be used inside an <ApiProvider> component.");let[m,h,y]=function(e,t){let r,n,a=eo()===b,[o,i]=(0,l.useState)(null),[u,c]=ed(),d=(r=ef(),n=(0,l.useRef)({center:{lat:0,lng:0},heading:0,tilt:0,zoom:0}),(0,l.useEffect)(()=>{if(!o)return;let e=google.maps.event.addListener(o,"bounds_changed",()=>{let e,t,a,l,i;e=o.getCenter(),t=o.getZoom(),a=o.getHeading()||0,l=o.getTilt()||0,i=o.getBounds(),e&&i&&Number.isFinite(t)||console.warn("[useTrackedCameraState] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),Object.assign(n.current,{center:(null==e?void 0:e.toJSON())||{lat:0,lng:0},zoom:t||0,heading:a,tilt:l}),r()});return()=>e.remove()},[o,r]),n),{id:f,defaultBounds:g,defaultCenter:p,defaultZoom:m,defaultHeading:h,defaultTilt:y,reuseMaps:v,renderingType:E,colorScheme:w}=e,C=s(e,["id","defaultBounds","defaultCenter","defaultZoom","defaultHeading","defaultTilt","reuseMaps","renderingType","colorScheme"]),k=void 0!==e.zoom||void 0!==e.defaultZoom,O=void 0!==e.center||void 0!==e.defaultCenter;g||k&&O||console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"),!C.center&&p&&(C.center=p),!C.zoom&&Number.isFinite(m)&&(C.zoom=m),!C.heading&&Number.isFinite(h)&&(C.heading=h),!C.tilt&&Number.isFinite(y)&&(C.tilt=y);let M=C.internalUsageAttributionIds;for(let e of(null==M?C.internalUsageAttributionIds=t.internalUsageAttributionIds:C.internalUsageAttributionIds=[...t.internalUsageAttributionIds||[],...M],Object.keys(C)))void 0===C[e]&&delete C[e];let A=(0,l.useRef)(void 0);return(0,l.useEffect)(()=>{let r,n;if(!u||!a)return;let{addMapInstance:o,removeMapInstance:l}=t,{mapId:c}=e,p=`${c||"default"}:${E||"default"}:${w||"LIGHT"}`,m=v&&eg.has(p)?eg.pop(p):null,h=null==m?void 0:m.getDiv(),y=m&&h instanceof Node?m:null;if(y?(n=y,r=h,u.appendChild(r),n.setOptions(C),setTimeout(()=>n.moveCamera({}),0)):(m&&google.maps.event.clearInstanceListeners(m),(r=document.createElement("div")).style.height="100%",u.appendChild(r),n=new google.maps.Map(r,Object.assign(Object.assign(Object.assign({},C),E?{renderingType:E}:{}),w?{colorScheme:w}:{}))),i(n),o(n,f),g){let{padding:e}=g,t=s(g,["padding"]);n.fitBounds(t,e)}else k&&O||n.fitBounds({east:180,west:-180,south:-90,north:90});if(A.current){let{mapId:e,cameraState:t}=A.current;e!==c&&n.moveCamera(t)}return()=>{A.current={mapId:c,cameraState:d.current},r.remove(),v?eg.push(p,n):google.maps.event.clearInstanceListeners(n),i(null),l(f)}},[u,a,f,e.mapId,e.renderingType,e.colorScheme]),[o,c,d]}(e,g);for(let s of(t=e.center?ei(e.center):null,r=null,n=null,t&&Number.isFinite(t.lat)&&Number.isFinite(t.lng)&&(r=t.lat,n=t.lng),a=Number.isFinite(e.zoom)?e.zoom:null,o=Number.isFinite(e.heading)?e.heading:null,i=Number.isFinite(e.tilt)?e.tilt:null,(0,l.useLayoutEffect)(()=>
3{if(!m)return;let e={},t=!1;null!==r&&null!==n&&(y.current.center.lat!==r||y.current.center.lng!==n)&&(e.center={lat:r,lng:n},t=!0),null!==a&&y.current.zoom!==a&&(e.zoom=a,t=!0),null!==o&&y.current.heading!==o&&(e.heading=o,t=!0),null!==i&&y.current.tilt!==i&&(e.tilt=i,t=!0),t&&m.moveCamera(e)}),j)){let t=e[s],r=O[s];(0,l.useEffect)(()=>{if(!m||!t)return;let e=google.maps.event.addListener(m,r,e=>{t(function(e,t,r){var n;let a={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(M.includes(e)){let e=t.getCenter(),r=t.getZoom(),n=t.getHeading()||0,o=t.getTilt()||0,l=t.getBounds();return e&&l&&Number.isFinite(r)||console.warn("[createEvent] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),a.detail={center:(null==e?void 0:e.toJSON())||{lat:0,lng:0},zoom:r||0,heading:n,tilt:o,bounds:(null==l?void 0:l.toJSON())||{north:90,east:180,south:-90,west:-180}},a}if(A.includes(e)){if(!r)throw Error("[createEvent] mouse events must provide a srcEvent");return a.domEvent=r.domEvent,a.stoppable=!0,a.stop=()=>r.stop(),a.detail={latLng:(null==(n=r.latLng)?void 0:n.toJSON())||null,placeId:r.placeId},a}return a}(r,m,e))});return()=>e.remove()},[m,r,t])}let v={};for(let t of Object.keys(e))ea.has(t)&&(v[t]=e[t]);en(()=>{m&&m.setOptions(v)},[v]);let w=function(e,t){let{viewport:r,viewState:n}=t;return(0,l.useLayoutEffect)(()=>{if(!e||!n)return;let{latitude:t,longitude:r,bearing:a,pitch:o,zoom:l}=n;e.moveCamera({center:{lat:t,lng:r},heading:a,tilt:o,zoom:l+1})},[e,n]),!!r}(m,e),C=!!e.controlled;(0,l.useEffect)(()=>{if(m)return w&&m.setOptions({disableDefaultUI:!0}),(w||C)&&m.setOptions({gestureHandling:"none",keyboardShortcuts:!1}),()=>{m.setOptions({gestureHandling:e.gestureHandling,keyboardShortcuts:e.keyboardShortcuts})}},[m,w,C,e.gestureHandling,e.keyboardShortcuts]);let k=e.center?ei(e.center):null,x=null,L=null;k&&Number.isFinite(k.lat)&&Number.isFinite(k.lng)&&(x=k.lat,L=k.lng);let S=(0,l.useMemo)(()=>{var t,r,n;return{center:{lat:null!=x?x:0,lng:null!=L?L:0},zoom:null!=(t=e.zoom)?t:0,heading:null!=(r=e.heading)?r:0,tilt:null!=(n=e.tilt)?n:0}},[x,L,e.zoom,e.heading,e.tilt]);(0,l.useLayoutEffect)(()=>{if(!m||!C)return;m.moveCamera(S);let e=m.addListener("bounds_changed",()=>{m.moveCamera(S)});return()=>e.remove()},[m,C,S]);let _=(0,l.useMemo)(()=>Object.assign({width:"100%",height:"100%",position:"relative",zIndex:w?-1:0},f),[f,w]),I=(0,l.useMemo)(()=>({map:m}),[m]);return"AUTH_FAILURE"===p?l.default.createElement("div",{style:Object.assign({position:"relative"},d?{}:_),className:d},l.default.createElement(ec,null)):l.default.createElement("div",Object.assign({ref:h,"data-testid":"map",style:d?void 0:_,className:d},c?{id:c}:{}),m?l.default.createElement(ep.Provider,{value:I},u):null)};em.deckGLViewProps=!0;let eh=new Set,ey=(e=null)=>{let t=(0,l.useContext)(E),{map:r}=(0,l.useContext)(ep)||{};if(null===t)return!function(...e){let t=JSON.stringify(e);eh.has(t)||(eh.add(t),console.error(...e))}("useMap(): failed to retrieve APIProviderContext. Make sure that the <APIProvider> component exists and that the component you are calling `useMap()` from is a sibling of the <APIProvider>."),null;let{mapInstances:n}=t;return null!==e?n[e]||null:r||n.default||null};function eb(e){var t;let r=eo()===b,n=(0,l.useContext)(E);return(0,l.useEffect)(()=>{r&&n&&n.importLibrary(e)},[r,n,e]),null!=(t=null==n?void 0:n.loadedLibraries[e])?t:null}let ev=Object.assign({},l),eE=ev.useInsertionEffect,ew=eE&&eE!==ev.useLayoutEffect?eE:e=>{e()};function eC(){throw Error("useEffectEvent: invalid call during rendering.")}let ek=function(e){let t=(0,l.useRef)(eC);return ew(()=>{t.current=e},[e]),(...e)=>t.current(...e)},eO=()=>{};function eM(e,t,r){let n=ek(null!=r?r:eO),a=!!r;(0,l.useEffect)(()=>{if(!e||!t||!a)return;let r=google.maps.event.addListener(e,t,n);return()=>r.remove()},[e,t,a])}function eA(e,t,r){(0,l.useEffect)(()=>{e&&(e[t]=r)},[e,t,r])}let ej=()=>{};function ex(e,t,r){let n=ek(null!=r?r:ej),a=!!r;(0,l.useEffect)(()=>{if(e&&t&&a)return e.addEventListener(t,n),()=>e.removeEventListener(t,n)},[e,t,a])}let eL=new class{constructor(){this.renderedStyles=new Set,this.styleElement=null}getStyleElement(){return this.styleElement||(this.styleElement=document.createElement("style"),this.styleElement.setAttribute("data-rgm-anchor-styles",""),document.head.appendChild(this.styleElement)),this.styleElement}addAdvancedMarkerPointerEventsOverwrite(){if(this.renderedStyles.has("marker-pointer-events"))return;let e=this.getStyleElement();e.textContent+=`
4      gmp-advanced-marker[data-origin='rgm'] {
5        pointer-events: none !important;
6      }
7    `,this.renderedStyles.add("marker-pointer-events")}cleanup(){this.styleElement&&(this.styleElement.remove(),this.styleElement=null,this.renderedStyles.clear())}},eS=l.default.createContext(null),e_=["50%","100%"],eI=(0,l.forwardRef)((e,t)=>{let{children:r,style:n,className:a,anchorPoint:o}=e,[s,u]=function(e){var t,r,n,a,o;let[i,s]=(0,l.useState)(null),[u,c]=(0,l.useState)(null),d=ey(),f=eb("marker"),{children:g,onClick:p,onKeyDown:m,onKeyUp:h,className:y,onMouseEnter:b,onMouseLeave:v,onDrag:E,onDragStart:w,onDragEnd:C,collisionBehavior:k,clickable:O,draggable:M,position:A,title:j,zIndex:x,anchorPoint:L,anchorLeft:S,anchorTop:_}=e,I=l.Children.count(g);return(0,l.useEffect)(()=>
7{if(!d||!f)return;let e=new f.AdvancedMarkerElement;e.map=d,s(e);let t=null;return I>0&&(e.content=t=document.createElement("div"),c(t)),()=>{e.map=null,null==t||t.remove(),s(null),c(null)}},[d,f,I]),(0,l.useEffect)(()=>{(null==i?void 0:i.content)&&eP(i.content)&&!(I>0)&&(i.content.className=null!=y?y:"")},[i,y,I]),t=i,r=L,n=S,a=_,o=I>0,(0,l.useEffect)(()=>{if(!t||!o)return;let e=function(){var e;if(!(null==(e=null==google?void 0:google.maps)?void 0:e.version))return;let t=google.maps.version.split("."),r=parseInt(t[0],10),n=parseInt(t[1],10);return r>3||3===r&&n>=62}(),l=t.content;if(l&&eP(l)){if(void 0!==n||void 0!==a){e||console.warn(`AdvancedMarker: The anchorLeft and anchorTop props are only supported in Google Maps API version 3.62 and above. The current version is ${google.maps.version}.`),t.anchorLeft=n,t.anchorTop=a,void 0!==r&&console.warn("AdvancedMarker: the anchorPoint prop is ignored when anchorLeft and/or anchorTop are set.");return}if(void 0!==r){let[n,a]=null!=r?r:e_,o=`calc(-1 * ${n})`,i=`calc(-1 * ${a})`;e?(t.anchorLeft=o,t.anchorTop=i,l.style.transform=""):(l.style.transform=`translate(50%, 100%) translate(${o}, ${i})`,t.dataset.origin="rgm",eL.addAdvancedMarkerPointerEventsOverwrite())}}},[t,r,n,a,o]),eA(i,"position",A),eA(i,"title",null!=j?j:""),eA(i,"zIndex",x),eA(i,"collisionBehavior",k),(0,l.useEffect)(()=>{i&&(void 0!==M?i.gmpDraggable=M:E||w||C?i.gmpDraggable=!0:i.gmpDraggable=!1)},[i,M,E,C,w]),(0,l.useEffect)(()=>{if(!i)return;let e=void 0!==O?O:!!p||!!m||!!h||!!b||!!v;i.gmpClickable=e,(null==i?void 0:i.content)&&eP(i.content)&&(i.content.style.pointerEvents=e?"all":"none",i.content.style.cursor=e&&p?"pointer":"")},[i,O,p,m,h,b,v]),eM(i,"drag",E),eM(i,"dragstart",w),eM(i,"dragend",C),ex(i,"gmp-click",p),ex(i,"keydown",m),ex(i,"keyup",h),ex(i,"mouseenter",b),ex(i,"mouseleave",v),[i,u]}(e),c=(0,l.useMemo)(()=>s?{marker:s}:null,[s]);return((0,l.useImperativeHandle)(t,()=>s,[s]),u)?l.default.createElement(eS.Provider,{value:c},(0,i.createPortal)(l.default.createElement(eN,{anchorPoint:o,styles:n,className:a},r),u)):null});function eP(e){return e.nodeType===Node.ELEMENT_NODE}eI.displayName="AdvancedMarker";let eN=({children:e,styles:t,className:r})=>l.default.createElement("div",{className:r,style:t},e);function eT(e,t,r){if(null!=t&&"object"!=typeof t)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");let n=e.style;if(null==r){if(null==t)return;for(let e in t)t.hasOwnProperty(e)&&eR(n,e,t[e]);return}for(let e in r)r.hasOwnProperty(e)&&(null==t||!t.hasOwnProperty(e))&&(0===e.indexOf("--")?n.setProperty(e,""):"float"===e?n.cssFloat="":n[e]="");if(null!=t)for(let e in t){let a=t[e];t.hasOwnProperty(e)&&r[e]!==a&&eR(n,e,a)}}function eR(e,t,r){var n;let a=0===t.indexOf("--");null==r||"boolean"==typeof r||""===r?a?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":a?e.setProperty(t,r):"number"!=typeof r||0===r||(n=t,eD.has(n))?"float"===t?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}(0,l.forwardRef)((e,t)=>{let r=function(e){var t,r,n;let{onClick:a,onDrag:o,onDragStart:i,onDragEnd:u,onMouseOver:c,onMouseOut:d,onRadiusChanged:f,onCenterChanged:g,center:p,defaultCenter:m,radius:h,defaultRadius:y}=e,b=s(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut","onRadiusChanged","onCenterChanged","center","defaultCenter","radius","defaultRadius"]),[v,E]=(0,l.useState)(null),w=ey(),C=x(Object.assign(Object.assign({},b),{clickable:null!=(t=b.clickable)?t:!!a,draggable:null!=(r=b.draggable)?r:!!(o||i||u||g),editable:null!=(n=b.editable)?n:!!f}),et);return(0,l.useEffect)(()=>{if(!w){void 0===w&&console.error("<Circle> has to be inside a Map component.");return}let e=new google.maps.Circle(Object.assign(Object.assign({},C),{center:null!=p?p:m,radius:null!=h?h:y}));return e.setMap(w),E(e),()=>{e.setMap(null),E(null)}},[w]),eM(v,"click",a),eM(v,"drag",o),eM(v,"dragstart",i),eM(v,"dragend",u),eM(v,"mouseover",c),eM(v,"mouseout",d),eM(v,"radius_changed",f?()=>{let e=null==v?void 0:v.getRadius();void 0!==e&&f(e)}
7:null),eM(v,"center_changed",g?()=>{g(null==v?void 0:v.getCenter())}:null),(0,l.useEffect)(()=>{v&&v.setOptions(C)},[v,C]),(0,l.useEffect)(()=>{v&&p&&(el(p,v.getCenter())||v.setCenter(p))},[v,p]),(0,l.useEffect)(()=>{v&&void 0!==h&&h!==v.getRadius()&&v.setRadius(h)},[v,h]),v}(e);return(0,l.useImperativeHandle)(t,()=>r,[r]),l.default.createElement(l.default.Fragment,null)}).displayName="Circle";let eD=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","scale","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth"]);function eF(e){let t=e.getPaths(),r=[];for(let e=0;e<t.getLength();e++)r.push(t.getAt(e).getArray());return r}(0,l.forwardRef)((e,t)=>{let r=function(e){var t,r,n;let{onClick:a,onDrag:o,onDragStart:i,onDragEnd:u,onMouseOver:c,onMouseOut:d,onPathsChanged:f,polygon:g,encodedPaths:p,paths:m,defaultPaths:h}=e,y=s(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut","onPathsChanged","polygon","encodedPaths","paths","defaultPaths"]),[b,v]=(0,l.useState)(null),E=ey(),w=eb("geometry"),C=(0,l.useRef)(!1),k=x(Object.assign(Object.assign({},y),{clickable:null!=(t=y.clickable)?t:!!a,draggable:null!=(r=y.draggable)?r:!!(o||i||u||f),editable:null!=(n=y.editable)?n:!!f}),et);return(0,l.useEffect)(()=>{let e;if(!E){void 0===E&&console.error("<Polygon> has to be inside a Map component.");return}if(g){e=g;let t=null!=m?m:h;t&&Array.isArray(t)&&e.setPaths(t),e.setOptions(k)}else{let t=null!=m?m:h,r=Object.assign({},k);t&&Array.isArray(t)&&(r.paths=t),e=new google.maps.Polygon(r)}return e.setMap(E),v(e),()=>{e.setMap(null),v(null)}},[E,g]),eM(b,"click",a),eM(b,"drag",o),eM(b,"dragstart",i),eM(b,"mouseover",c),eM(b,"mouseout",d),eM(b,"dragend",e=>{null==u||u(e),f&&b&&!C.current&&f(eF(b))}),(0,l.useEffect)(()=>{if(!b||!f)return;let e=[],t=b.getPaths();if("function"!=typeof t.getLength||"function"!=typeof t.getAt)return;let r=()=>{C.current||f(eF(b))},n=t=>{e.push(google.maps.event.addListener(t,"insert_at",r)),e.push(google.maps.event.addListener(t,"remove_at",r)),e.push(google.maps.event.addListener(t,"set_at",r))};for(let e=0;e<t.getLength();e++)n(t.getAt(e));return e.push(google.maps.event.addListener(t,"insert_at",e=>{n(t.getAt(e)),r()})),e.push(google.maps.event.addListener(t,"set_at",e=>{n(t.getAt(e)),r()})),e.push(google.maps.event.addListener(t,"remove_at",r)),()=>{e.forEach(e=>e.remove())}},[b,f,m,p,k.editable,k.draggable]),(0,l.useEffect)(()=>{b&&b.setOptions(k)},[b,k]),(0,l.useEffect)(()=>{b&&m&&Array.isArray(m)&&!function(e,t){if(!e||!t)return e===t;let r="getArray"in t?t.getArray().map(e=>e.getArray()):t;if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(!eu(e[t],r[t]))return!1;return!0}(Array.isArray(m[0])?m:[m],b.getPaths())&&(C.current=!0,b.setPaths(m),C.current=!1)},[b,m]),(0,l.useEffect)(()=>{if(!b||!p||!w)return;C.current=!0;let e=p.map(e=>w.encoding.decodePath(e));b.setPaths(e),C.current=!1},[b,p,w]),b}(e);return(0,l.useImperativeHandle)(t,()=>r,[r]),l.default.createElement(l.default.Fragment,null)}).displayName="Polygon",(0,l.forwardRef)((e,t)=>{let r=function(e){var t,r,n;let{onClick:a,onDrag:o,onDragStart:i,onDragEnd:u,onMouseOver:c,onMouseOut:d,onPathChanged:f,polyline:g,encodedPath:p,path:m,defaultPath:h}=e,y=s(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut","onPathChanged","polyline","encodedPath","path","defaultPath"]),[b,v]=(0,l.useState)(null),E=ey(),w=eb("geometry"),C=(0,l.useRef)(!1),k=x(Object.assign(Object.assign({},y),{clickable:null!=(t=y.clickable)?t:!!a,draggable:null!=(r=y.draggable)?r:!!(o||i||u||f),editable:null!=(n=y.editable)?n:!!f}),et);return(0,l.useEffect)(()=>{let e;if(!E){void 0===E&&console.error("<Polyline> has to be inside a Map component.");return}if(g){e=g;let t=null!=m?m:h;t&&Array.isArray(t)&&e.setPath(t),e.setOptions(k)}else{let t=null!=m?m:h,r=Object.assign({},k);t&&Array.isArray(t)&&(r.path=t),e=new google.maps.Polyline(r)}return e.setMap(E),v(e),()=>{e.setMap(null),v(null)}},[E,g]),eM(b,"click",a),eM(b,"drag",o),eM(b,"dragstart",i),eM(b,"mouseover",c),eM(b,"mouseout",d),eM(b,"dragend",e=>{null==u||u(e),f&&b&&!C.current&&f(b.getPath().getArray())}),(0,l.useEffect)(()=>
7{if(!b||!f)return;let e=b.getPath();if(!e)return;let t=()=>{C.current||f(e.getArray())},r=[google.maps.event.addListener(e,"insert_at",t),google.maps.event.addListener(e,"remove_at",t),google.maps.event.addListener(e,"set_at",t)];return()=>{r.forEach(e=>e.remove())}},[b,f,m,p,k.editable,k.draggable]),(0,l.useEffect)(()=>{b&&b.setOptions(k)},[b,k]),(0,l.useEffect)(()=>{b&&m&&(eu(m,b.getPath())||(C.current=!0,b.setPath(m),C.current=!1))},[b,m]),(0,l.useEffect)(()=>{if(!b||!p||!w)return;C.current=!0;let e=w.encoding.decodePath(p);b.setPath(e),C.current=!1},[b,p,w]),b}(e);return(0,l.useImperativeHandle)(t,()=>r,[r]),l.default.createElement(l.default.Fragment,null)}).displayName="Polyline";let eU={center:{lat:0,lng:0,altitude:0},range:0,heading:0,tilt:0,roll:0},ez=["center","range","heading","tilt","roll"],eq=["gmp-centerchange","gmp-headingchange","gmp-tiltchange","gmp-rangechange","gmp-rollchange"];function eB(e,t){let r=e.center;return{type:t,map3d:e,detail:{center:r&&"toJSON"in r&&"function"==typeof r.toJSON?r.toJSON():r||{lat:0,lng:0,altitude:0},range:e.range||0,heading:e.heading||0,tilt:e.tilt||0,roll:e.roll||0}}}function eZ(e,t,r,n){(0,l.useEffect)(()=>{if(!e||!r)return;let a=()=>{r(n(e,t))};return e.addEventListener(t,a),()=>e.removeEventListener(t,a)},[e,t,r,n])}let e$=new Set(["bounds","defaultUIHidden","gestureHandling","internalUsageAttributionIds","maxAltitude","maxHeading","maxTilt","minAltitude","minHeading","minTilt","mode"]),eG=l.default.createContext(null),eH={width:"100%",height:"100%",position:"relative"};(0,l.forwardRef)((e,t)=>{var r,n,a,o,i,u,c,d;let f,g,p,m,h,y,b,v,w,{children:C,id:k,className:O,style:M}=e,A=(0,l.useContext)(E);if(!A)throw Error("<Map3D> can only be used inside an <APIProvider> component.");let{addMap3DInstance:j,removeMap3DInstance:x}=A,[L,S,_,I,P]=function(e){let t,r,n=eb("maps3d"),[a,o]=(0,l.useState)(!1),[,i]=ed(),[u,c]=ed(),d=(t=ef(),r=(0,l.useRef)(Object.assign({},eU)),(0,l.useEffect)(()=>{if(!u)return;let e=[];for(let n of ez){let a=`gmp-${n}change`,o=()=>{!function(e,t,r){let n=e[r];null!=n&&("center"===r?t.current.center=n.toJSON?n.toJSON():n:t.current[r]=n)}(u,r,n),t()};u.addEventListener(a,o),e.push(()=>u.removeEventListener(a,o))}return()=>{for(let t of e)t()}},[u,t]),r);return(0,l.useEffect)(()=>{customElements.whenDefined("gmp-map-3d").then(()=>{o(!0)})},[]),(0,l.useEffect)(()=>{if(!u)return;let{center:t,heading:r,tilt:n,range:a,roll:o,defaultCenter:l,defaultHeading:i,defaultTilt:c,defaultRange:d,defaultRoll:f,id:g,style:p,className:m,children:h,onCenterChanged:y,onHeadingChanged:b,onTiltChanged:v,onRangeChanged:E,onRollChanged:w,onCameraChanged:C,onClick:k,onSteadyChange:O,onAnimationEnd:M,onError:A,mode:j,gestureHandling:x}=e,L=s(e,["center","heading","tilt","range","roll","defaultCenter","defaultHeading","defaultTilt","defaultRange","defaultRoll","
7id","style","className","children","onCenterChanged","onHeadingChanged","onTiltChanged","onRangeChanged","onRollChanged","onCameraChanged","onClick","onSteadyChange","onAnimationEnd","onError","mode","gestureHandling"]),S=null!=t?t:l,_=null!=r?r:i,I=null!=n?n:c,P=null!=a?a:d,N=null!=o?o:f,T=Object.assign({},L);S&&(T.center=S),void 0!==_&&(T.heading=_),void 0!==I&&(T.tilt=I),void 0!==P&&(T.range=P),void 0!==N&&(T.roll=N),Object.assign(u,T)},[u]),[u,i,c,d,!!n&&a]}(e);g=null!=(r=null==(f=(d=e.center)?"toJSON"in d&&"function"==typeof d.toJSON?d.toJSON():d:null)?void 0:f.lat)?r:null,p=null!=(n=null==f?void 0:f.lng)?n:null,m=null!=(a=null==f?void 0:f.altitude)?a:null,h=null!=(o=e.range)?o:null,y=null!=(i=e.heading)?i:null,b=null!=(u=e.tilt)?u:null,v=null!=(c=e.roll)?c:null,(0,l.useLayoutEffect)(()=>{var e;if(!L)return;let t=I.current;null!==g&&null!==p&&(t.center.lat!==g||t.center.lng!==p||null!==m&&t.center.altitude!==m)&&(L.center={lat:g,lng:p,altitude:null!=(e=null!=m?m:t.center.altitude)?e:0}),null!==h&&t.range!==h&&(L.range=h),null!==y&&t.heading!==y&&(L.heading=y),null!==b&&t.tilt!==b&&(L.tilt=b),null!==v&&t.roll!==v&&(L.roll=v)}),function(e,t){let{onCenterChanged:r,onHeadingChanged:n,onTiltChanged:a,onRangeChanged:o,onRollChanged:i,onCameraChanged:s,onClick:u,onSteadyChange:c,onAnimationEnd:d,onError:f}=t;eZ(e,"gmp-centerchange",r,eB),eZ(e,"gmp-headingchange",n,eB),eZ(e,"gmp-tiltchange",a,eB),eZ(e,"gmp-rangechange",o,eB),eZ(e,"gmp-rollchange",i,eB),(0,l.useEffect)(()=>{if(!e||!s)return;let t=()=>{s(eB(e,"camerachange"))};for(let r of eq)e.addEventListener(r,t);return()=>{for(let r of eq)e.removeEventListener(r,t)}},[e,s]),(0,l.useEffect)(()=>{if(!e||!u)return;let t=t=>{u({type:"gmp-click",map3d:e,detail:{position:t.position||null,placeId:t.placeId}})};return e.addEventListener("gmp-click",t),()=>e.removeEventListener("gmp-click",t)},[e,u]),(0,l.useEffect)(()=>{if(!e||!c)return;let t=t=>{c({type:"gmp-steadychange",map3d:e,detail:{isSteady:t.isSteady}})};return e.addEventListener("gmp-steadychange",t),()=>e.removeEventListener("gmp-steadychange",t)},[e,c]),eZ(e,"gmp-animationend",d,(e,t)=>({type:t,map3d:e})),eZ(e,"gmp-error",f,(e,t)=>({type:t,map3d:e}))}(L,e),en(()=>{L&&Object.assign(L,w)},[L,w=(0,l.useMemo)(()=>{let t={};for(let r of Object.keys(e)){if(!e$.has(r))continue;let n=e[r];void 0!==n&&(t[r]=n)}return t},[e])]),(0,l.useEffect)(()=>{if(!L)return;let e=null!=k?k:"default";return j(L,e),()=>{x(e)}},[L,k]),(0,l.useImperativeHandle)(t,()=>({map3d:L,flyCameraAround:e=>{null==L||L.flyCameraAround(e)},flyCameraTo:e=>{null==L||L.flyCameraTo(e)},stopCameraAnimation:()=>{null==L||L.stopCameraAnimation()}}),[L]);let N=(0,l.useMemo)(()=>Object.assign(Object.assign({},eH),M),[M]),T=(0,l.useMemo)(()=>({map3d:L}),[L]);return P?l.default.createElement("div",Object.assign({ref:S,"data-testid":"map-3d",style:O?void 0:N,className:O},k?{id:k}:{}),l.default.createElement("gmp-map-3d",{ref:_,style:{width:"100%",height:"100%"}},L&&l.default.createElement(eG.Provider,{value:T},C))):l.default.createElement("div",Object.assign({ref:S,"data-testid":"map-3d",style:O?void 0:N,className:O},k?{id:k}:{}))}).displayName="Map3D";let eJ=(0,l.createContext)(null);(0,l.forwardRef)(function(e,t){let{children:r,onClick:n,position:a,altitudeMode:o,collisionBehavior:s,drawsWhenOccluded:u,extruded:c,label:d,sizePreserved:f,zIndex:g,title:p}=e,m=!!n,[h,y]=(0,l.useState)(null),[b,v]=(0,l.useState)(!1),E=(0,l.useMemo)(()=>{let e=document.createElement("div");return e.style.display="none",document.body.appendChild(e),e},[]);(0,l.useEffect)(()=>()=>E.remove(),[E]);let w=(0,l.useCallback)(e=>{y(e),"function"==typeof t?t(e):t&&(t.current=e)},[t]);ex(h,"gmp-click",n),(0,l.useLayoutEffect)(()=>{if(!b&&h&&E){for(;h.firstChild;)h.removeChild(h.firstChild);for(let e of Array.from(E.childNodes)){if(e.nodeType!==Node.ELEMENT_NODE)continue;let t=e.tagName.toLowerCase();if("img"===t||"svg"===t){let t=document.createElement("template");t.content.appendChild(e.cloneNode(!0)),h.appendChild(t)}else h.appendChild(e.cloneNode(!0))}}},[h,E,r,b]);let C=(0,l.useMemo)(()=>({marker:h,setContentHandledExternally:v}
7),[h]);return eA(h,"position",a),eA(h,"altitudeMode",o),eA(h,"collisionBehavior",s),eA(h,"drawsWhenOccluded",u),eA(h,"extruded",c),eA(h,"label",d),eA(h,"sizePreserved",f),eA(h,"zIndex",g),eA(h,"title",null!=p?p:""),l.default.createElement(eJ.Provider,{value:C},m?l.default.createElement("gmp-marker-3d-interactive",{ref:w}):l.default.createElement("gmp-marker-3d",{ref:w}),(0,i.createPortal)(r,E))}).displayName="Marker3D",(0,l.forwardRef)(function(e,t){var r,n,a,o;let i,s,{children:u,headerContent:c,style:d,className:f,open:g=!0,position:p,anchor:m,anchorId:h,altitudeMode:y,lightDismissDisabled:b,autoPanDisabled:v,onClose:E}=e,[w,C]=(0,l.useState)(null),k=(0,l.useRef)(null);return(0,l.useImperativeHandle)(t,()=>w,[w]),n=w,a=g,o=E,i=(0,l.useRef)(void 0),s=(0,l.useRef)(a),(0,l.useEffect)(()=>{s.current=a},[a]),(0,l.useEffect)(()=>{if(!n||!o)return;let e=new MutationObserver(e=>{for(let t of e)if("attributes"===t.type&&"open"===t.attributeName){let e=n.hasAttribute("open");!0!==i.current||e||!1===s.current||o(),i.current=e}});return e.observe(n,{attributes:!0,attributeFilter:["open"]}),i.current=n.hasAttribute("open"),()=>{e.disconnect()}},[n,o]),eA(w,"open",null!=g&&g),eA(w,"altitudeMode",y),eA(w,"lightDismissDisabled",b),eA(w,"autoPanDisabled",v),eA(w,"positionAnchor",null!=(r=null!=m?m:h)?r:p),(0,l.useLayoutEffect)(()=>{w&&(eT(w,d||null,k.current),k.current=d||null)},[w,d]),l.default.createElement("gmp-popover",{ref:C,className:f},c&&l.default.createElement("div",{slot:"header"},c),u)}).displayName="Popover",(0,l.forwardRef)((e,t)=>{let r=function(e){let[t,r]=(0,l.useState)(null),n=ey(),{onClick:a,onDrag:o,onDragStart:i,onDragEnd:u,onMouseOver:c,onMouseOut:d}=e,f=s(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut"]),{position:g,draggable:p}=f;return(0,l.useEffect)(()=>{if(!n){void 0===n&&console.error("<Marker> has to be inside a Map component.");return}let e=new google.maps.Marker(f);return e.setMap(n),r(e),()=>{e.setMap(null),r(null)}},[n]),(0,l.useEffect)(()=>{if(!t)return;let e=google.maps.event;return a&&e.addListener(t,"click",a),o&&e.addListener(t,"drag",o),i&&e.addListener(t,"dragstart",i),u&&e.addListener(t,"dragend",u),c&&e.addListener(t,"mouseover",c),d&&e.addListener(t,"mouseout",d),t.setDraggable(!!p),()=>{e.clearInstanceListeners(t)}},[t,p,a,o,i,u,c,d]),(0,l.useEffect)(()=>{t&&t.setOptions(f)},[t,f]),(0,l.useEffect)(()=>{!p&&g&&t&&t.setPosition(g)},[p,g,t]),t}(e);return(0,l.useImperativeHandle)(t,()=>r,[r]),l.default.createElement(l.default.Fragment,null)}).displayName="Marker",(0,l.forwardRef)((e,t)=>{let r=function(e){var t,r,n;let{onClick:a,onDrag:o,onDragStart:i,onDragEnd:u,onMouseOver:c,onMouseOut:d,onBoundsChanged:f,bounds:g,defaultBounds:p}=e,m=s(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut","onBoundsChanged","bounds","defaultBounds"]),[h,y]=(0,l.useState)(null),b=ey(),v=x(Object.assign(Object.assign({},m),{clickable:null!=(t=m.clickable)?t:!!a,draggable:null!=(r=m.draggable)?r:!!(o||i||u||f),editable:null!=(n=m.editable)?n:!!f}),et);return(0,l.useEffect)(()=>{if(!b){void 0===b&&console.error("<Rectangle> has to be inside a Map component.");return}let e=new google.maps.Rectangle(Object.assign(Object.assign({},v),{bounds:null!=g?g:p}));return e.setMap(b),y(e),()=>{e.setMap(null),y(null)}},[b]),eM(h,"click",a),eM(h,"drag",o),eM(h,"dragstart",i),eM(h,"dragend",u),eM(h,"mouseover",c),eM(h,"mouseout",d),eM(h,"bounds_changed",f?()=>{f(null==h?void 0:h.getBounds())}:null),(0,l.useEffect)(()=>{h&&h.setOptions(v)},[h,v]),(0,l.useEffect)(()=>{h&&g&&!function(e,t){if(!e||!t)return!1;let r=es(e),n=es(t);return r.north===n.north&&r.south===n.south&&r.east===n.east&&r.west===n.west}(g,h.getBounds())&&h.setBounds(g)},[h,g]),h}(e);return(0,l.useImperativeHandle)(t,()=>r,[r]),l.default.createElement(l.default.Fragment,null)}).displayName="Rectangle",e.s(["APIProvider",0,e=>{let{children:t}=e,n=s(e,["children"]),{mapInstances:a,addMapInstance:o,removeMapInstance:i,clearMapInstances:c}=function(){let[e,t]=(0,l.useState)({});return{mapInstances:e,addMapInstance:(e,r="default")=>{t(t=>Object.assign(Object.assign({},t),{[r]:e}))},removeMapInstance:(e="default")=>{t(t=>(t[e],s(t,["symbol"==typeof e?e:e+""])))},clearMapInstances:()=>{t({})}}}(),{map3dInstances:d,addMap3DInstance:f,removeMap3DInstance:g,clearMap3DInstances:h}=function(){let[e,t]=(0,l.useState)({});return{map3dInstances:e,addMap3DInstance:(e,r="default")=>{t(t=>Object.assign(Object.assign({},t),{[r]:e}))},removeMap3DInstance:(e="default")=>{t(t=>(t[e],s(t,["symbol"==typeof e?e:e+""])))},clearMap3DInstances:()=>{t({})}}}(),{status:O,loadedLibraries:M,importLibrary:A}=function(e){let{onLoad:t,onError:n,apiKey:a,version:o,libraries:i=[],region:s,language:c,authReferrerPolicy:d,channel:f,solutionChannel:g,fetchAppCheckToken:h}=e,[v,E]=(0,l.useState)(w),[O,M]=(0,l.useReducer)((e,t)=>e[t.name]?e:Object.assign(Object.assign({},e),{[t.name]:t.value}),{}),A=(0,l.useMemo)(()=>JSON.stringify({apiKey:a,version:o,libraries:i.join(","),region:s,language:c,authReferrerPolicy:d,channel:f,solutionChannel:g}),[a,o,i,s,c,d,f,g]),j=(0,l.useCallback)(e=>u(this,void 0,void 0,function*(){if(O[e])return O[e];let t=yield m(e);return M({name:e,value:t}),t}),[O]);return(0,l.useEffect)(()=>(C.add(E),E(w),()=>{C.delete(E)}),[]),(0,l.useEffect)(()=>{u(this,void 0,void 0,function*(){var e,l;try{r&&r!==A&&console.warn("The Google Maps JavaScript API has already been loaded with different parameters. The new parameters will be ignored. If you need to use different parameters, please refresh the page.");let n=["core","maps",...i],u=Object.fromEntries(Object.entries({key:a,v:o,libraries:i,region:s,language:c,authReferrerPolicy:d}).filter(([,e])=>void 0!==e));if(void 0!==f&&f>=0&&f<=999&&(u.channel=String(f)),void 0===g?u.solutionChannel="GMP_visgl_rgmlibrary_v1_default":""!==g&&(u.solutionChannel=g),null==(l=null==(e=window.google)?void 0:e.maps)?void 0:l.importLibrary){let e=!r;e&&(r=A,p(u)),yield Promise.all(n.map(e=>j(e))),e&&k(b),t&&t();return}if(w===y||w===b){w===b&&t&&t();return}r=A,k(y),p(u),yield Promise.all(n.map(e=>j(e))),k(b),t&&t()}catch(e){k("FAILED"),n?n(e):console.error("The Google Maps JavaScript API failed to load.",e)}})},[A,t,n,j,i]),(0,l.useEffect)(()=>
7{if(v!==b)return;let e=google.maps.Settings.getInstance();h&&(e.fetchAppCheckToken=h)},[v,h]),{status:v,loadedLibraries:O,importLibrary:j}}(n),j=(0,l.useMemo)(()=>n.disableUsageAttribution?null:v,[n.disableUsageAttribution]),x=(0,l.useMemo)(()=>({mapInstances:a,addMapInstance:o,removeMapInstance:i,clearMapInstances:c,map3dInstances:d,addMap3DInstance:f,removeMap3DInstance:g,clearMap3DInstances:h,status:O,loadedLibraries:M,importLibrary:A,internalUsageAttributionIds:j}),[a,o,i,c,d,f,g,h,O,M,A,j]);return l.default.createElement(E.Provider,{value:x},t)},"AdvancedMarker",0,eI,"InfoWindow",0,e=>{let{children:t,headerContent:r,style:n,className:a,pixelOffset:o,anchor:u,shouldFocus:c,onClose:d,onCloseClick:f}=e,g=s(e,["children","headerContent","style","className","pixelOffset","anchor","shouldFocus","onClose","onCloseClick"]),p=eb("maps"),[m,h]=(0,l.useState)(null),y=(0,l.useRef)(null),b=(0,l.useRef)(null),v=x(g,et);(0,l.useEffect)(()=>{if(!p)return;y.current=document.createElement("div"),b.current=document.createElement("div");let e=Object.assign({},v);o&&(e.pixelOffset=new google.maps.Size(o[0],o[1])),r&&(e.headerContent="string"==typeof r?r:b.current);let t=new google.maps.InfoWindow(e);return t.setContent(y.current),h(t),()=>{var e,r;t.setContent(null),null==(e=y.current)||e.remove(),null==(r=b.current)||r.remove(),y.current=null,b.current=null,h(null)}},[p]);let E=(0,l.useRef)(null);(0,l.useLayoutEffect)(()=>{m&&y.current&&(eT(y.current,n||null,E.current),E.current=n||null,a!==y.current.className&&(y.current.className=a||""))},[m,a,n]),(0,l.useEffect)(()=>{if(!m)return;let e=Object.assign({},v);o?e.pixelOffset=new google.maps.Size(o[0],o[1]):e.pixelOffset=null,r?e.headerContent="string"==typeof r?r:b.current:e.headerContent=null,m.setOptions(e)},[v,o,r]),eM(m,"close",d),eM(m,"closeclick",f);let w=ey();return(0,l.useEffect)(()=>{var e;if(!w||!m||null===u)return;let t=!!u,r={map:w};if(u&&(r.anchor=u,void 0!==u.content&&u.content instanceof Element)){let t=null==u?void 0:u.getBoundingClientRect();if(t&&"rgm"===u.dataset.origin){let r=null==(e=u.content.firstElementChild)?void 0:e.firstElementChild,n=null==r?void 0:r.getBoundingClientRect(),a=n.x-t.x+(n.width-t.width)/2,l=n.y-t.y,i=Object.assign({},v);i.pixelOffset=new google.maps.Size(o?o[0]+a:a,o?o[1]+l:l),m.setOptions(i)}}return void 0!==c&&(r.shouldFocus=c),m.open(r),()=>{t&&m.set("anchor",null),m.close()}},[m,u,w,c,v,o]),l.default.createElement(l.default.Fragment,null,y.current&&(0,i.createPortal)(t,y.current),null!==b.current&&(0,i.createPortal)(r,b.current))},"Map",0,em,"useAdvancedMarkerRef",0,function(){let[e,t]=(0,l.useState)(null);return[(0,l.useCallback)(e=>{t(e)},[]),e]},"useMap",0,ey,"useMapsLibrary",0,eb],376896);let{getOwnPropertyNames:eV,getOwnPropertySymbols:eW}=Object,{hasOwnProperty:eK}=Object.prototype;function eY(e,t){return function(r,n,a){return e(r,n,a)&&t(r,n,a)}}function eX(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);let{cache:a}=n,o=a.get(t),l=a.get(r);if(o&&l)return o===r&&l===t;a.set(t,r),a.set(r,t);let i=e(t,r,n);return a.delete(t),a.delete(r),i}}function eQ(e){return eV(e).concat(eW(e))}let e0=Object.hasOwn||((e,t)=>eK.call(e,t));function e1(e,t){return e===t||!e&&!t&&e!=e&&t!=t}let{getOwnPropertyDescriptor:e2,keys:e3}=Object;function e6(e,t){return e.byteLength===t.byteLength&&tl(new Uint8Array(e),new Uint8Array(t))}function e8(e,t,r){let 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 e5(e,t){return e.byteLength===t.byteLength&&tl(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function e4(e,t){return e1(e.getTime(),t.getTime())}function e9(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function e7(e,t){return e===t}function te(e,t,r){let n,a,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let l=Array(o),i=e.entries(),s=0;for(;(n=i.next())&&!n.done;){let o=t.entries(),i=!1,u=0;for(;(a=o.next())&&!a.done;){if(l[u]){u++;continue}let o=n.value,c=a.value;if(r.equals(o[0],c[0],s,u,e,t,r)&&r.equals(o[1],c[1],o[0],c[0],e,t,r)){i=l[u]=!0;break}u++}if(!i)return!1;s++}return!0}function tt(e,t,r){let n=e3(e),a=n.length;if(e3(t).length!==a)return!1;for(;a-- >0;)if(!ts(e,t,r,n[a]))return!1;return!0}function tr(e,t,r){let n,a,o,l=eQ(e),i=l.length;if(eQ(t).length!==i)return!1;for(;i-- >0;)if(!ts(e,t,r,n=l[i])||(a=e2(e,n),o=e2(t,n),(a||o)&&(!a||!o||a.configurable!==o.configurable||a.enumerable!==o.enumerable||a.writable!==o.writable)))return!1;return!0}function tn(e,t){return e1(e.valueOf(),t.valueOf())}function ta(e,t){return e.source===t.source&&e.flags===t.flags}function to(e,t,r){let n,a,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let l=Array(o),i=e.values();for(;(n=i.next())&&!n.done;){let o=t.values(),i=!1,s=0;for(;(a=o.next())&&!a.done;
7){if(!l[s]&&r.equals(n.value,a.value,n.value,a.value,e,t,r)){i=l[s]=!0;break}s++}if(!i)return!1}return!0}function tl(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function ti(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 ts(e,t,r,n){return("_owner"===n||"__o"===n||"__v"===n)&&(!!e.$$typeof||!!t.$$typeof)||e0(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}let tu={"[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},tc=Object.prototype.toString,td=tf();function tf(e={}){let{circular:t=!1,createInternalComparator:r,createState:n,strict:a=!1}=e,o=function({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:a,areFunctionsEqual:o,areMapsEqual:l,areNumbersEqual:i,areObjectsEqual:s,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:g,unknownTagComparators:p}){return function(m,h,y){if(m===h)return!0;if(null==m||null==h)return!1;let b=typeof m;if(b!==typeof h)return!1;if("object"!==b)return"number"===b?i(m,h,y):"function"===b&&o(m,h,y);let v=m.constructor;if(v!==h.constructor)return!1;if(v===Object)return s(m,h,y);if(Array.isArray(m))return t(m,h,y);if(v===Date)return n(m,h,y);if(v===RegExp)return c(m,h,y);if(v===Map)return l(m,h,y);if(v===Set)return d(m,h,y);let E=tc.call(m);if("[object Date]"===E)return n(m,h,y);if("[object RegExp]"===E)return c(m,h,y);if("[object Map]"===E)return l(m,h,y);if("[object Set]"===E)return d(m,h,y);if("[object Object]"===E)return"function"!=typeof m.then&&"function"!=typeof h.then&&s(m,h,y);if("[object URL]"===E)return g(m,h,y);if("[object Error]"===E)return a(m,h,y);if("[object Arguments]"===E)return s(m,h,y);if(tu[E])return f(m,h,y);if("[object ArrayBuffer]"===E)return e(m,h,y);if("[object DataView]"===E)return r(m,h,y);if("[object Boolean]"===E||"[object Number]"===E||"[object String]"===E)return u(m,h,y);if(p){let e=p[E];if(!e){let t=null!=m?m[Symbol.toStringTag]:void 0;t&&(e=p[t])}if(e)return e(m,h,y)}return!1}}(function({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:e6,areArraysEqual:r?tr:e8,areDataViewsEqual:e5,areDatesEqual:e4,areErrorsEqual:e9,areFunctionsEqual:e7,areMapsEqual:r?eY(te,tr):te,areNumbersEqual:e1,areObjectsEqual:r?tr:tt,arePrimitiveWrappersEqual:tn,areRegExpsEqual:ta,areSetsEqual:r?eY(to,tr):to,areTypedArraysEqual:r?eY(tl,tr):tl,areUrlsEqual:ti,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){let e=eX(n.areArraysEqual),t=eX(n.areMapsEqual),r=eX(n.areObjectsEqual),a=eX(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:r,areSetsEqual:a})}return n}(e)),l=r?r(o):function(e,t,r,n,a,l,i){return o(e,t,i)};return function({circular:e,comparator:t,createState:r,equals:n,strict:a}){if(r)return function(o,l){let{cache:i=e?new WeakMap:void 0,meta:s}=r();return t(o,l,{cache:i,equals:n,meta:s,strict:a})};if(e)return function(e,r){return t(e,r,{cache:new WeakMap,equals:n,meta:void 0,strict:a})};let o={cache:void 0,equals:n,meta:void 0,strict:a};return function(e,r){return t(e,r,o)}}({circular:t,comparator:o,createState:n,equals:l,strict:a})}tf({strict:!0}),tf({circular:!0}),tf({circular:!0,strict:!0}),tf({createInternalComparator:()=>e1}),tf({strict:!0,createInternalComparator:()=>e1}),tf({circular:!0,createInternalComparator:()=>e1}),tf({circular:!0,createInternalComparator:()=>e1,strict:!0});let tg=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],tp=new Uint32Array(96);class tm{static from(e){if(!e||void 0===e.byteLength||e.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[t,r]=new Uint8Array(e,0,2);if(219!==t)throw Error("Data does not appear to be in a KDBush format.");let n=r>>4;if(1!==n)throw Error(`Got v${n} data when expected v1.`);let a=tg[15&r];
7if(!a)throw Error("Unrecognized array type.");let[o]=new Uint16Array(e,2,1),[l]=new Uint32Array(e,4,1);return new tm(l,o,a,void 0,e)}constructor(e,t=64,r=Float64Array,n=ArrayBuffer,a){if(isNaN(e)||e<0)throw 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 o=tg.indexOf(this.ArrayType),l=2*e*this.ArrayType.BYTES_PER_ELEMENT,i=e*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-i%8)%8;if(o<0)throw Error(`Unexpected typed array class: ${r}.`);if(a)this.data=a,this.ids=new this.IndexArrayType(a,8,e),this.coords=new r(a,8+i+s,2*e),this._pos=2*e,this._finished=!0;else{const a=this.data=new n(8+l+i+s);this.ids=new this.IndexArrayType(a,8,e),this.coords=new r(a,8+i+s,2*e),this._pos=0,this._finished=!1,new Uint8Array(a,0,2).set([219,16+o]),new Uint16Array(a,2,1)[0]=t,new Uint32Array(a,4,1)[0]=e}}add(e,t){let r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=e,this.coords[this._pos++]=t,r}finish(){let e=this._pos>>1;if(e!==this.numItems)throw Error(`Added ${e} items when expected ${this.numItems}.`);return function e(t,r,n,a,o,l){if(o-a<=n)return;let i=a+o>>1;(function e(t,r,n,a,o,l){for(;o>a;){if(o-a>600){let i=o-a+1,s=n-a+1,u=Math.log(i),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(i-c)/i)*(s-i/2<0?-1:1),f=Math.max(a,Math.floor(n-s*c/i+d)),g=Math.min(o,Math.floor(n+(i-s)*c/i+d));e(t,r,n,f,g,l)}let i=r[2*n+l],s=a,u=o;for(th(t,r,a,n),r[2*o+l]>i&&th(t,r,a,o);s<u;){for(th(t,r,s,u),s++,u--;r[2*s+l]<i;)s++;for(;r[2*u+l]>i;)u--}r[2*a+l]===i?th(t,r,a,u):th(t,r,++u,o),u<=n&&(a=u+1),n<=u&&(o=u-1)}})(t,r,i,a,o,l),e(t,r,n,a,i-1,1-l),e(t,r,n,i+1,o,1-l)}(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,r,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:l}=this;tp[0]=0,tp[1]=a.length-1,tp[2]=0;let i=3,s=[];for(;i>0;){let u=tp[--i],c=tp[--i],d=tp[--i];if(c-d<=l){for(let l=d;l<=c;l++){let i=o[2*l],u=o[2*l+1];i>=e&&i<=r&&u>=t&&u<=n&&s.push(a[l])}continue}let f=d+c>>1,g=o[2*f],p=o[2*f+1];g>=e&&g<=r&&p>=t&&p<=n&&s.push(a[f]),(0===u?e<=g:t<=p)&&(tp[i++]=d,tp[i++]=f-1,tp[i++]=1-u),(0===u?r>=g:n>=p)&&(tp[i++]=f+1,tp[i++]=c,tp[i++]=1-u)}return s}within(e,t,r){let n=[];return this.withinInto(e,t,r,n),n}withinInto(e,t,r,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:l}=this;tp[0]=0,tp[1]=a.length-1,tp[2]=0;let i=3,s=0,u=r*r;for(;i>0;){let c=tp[--i],d=tp[--i],f=tp[--i];if(d-f<=l){for(let r=f;r<=d;r++)tb(o[2*r],o[2*r+1],e,t)<=u&&(n[s++]=a[r]);continue}let g=f+d>>1,p=o[2*g],m=o[2*g+1];tb(p,m,e,t)<=u&&(n[s++]=a[g]),(0===c?e-r<=p:t-r<=m)&&(tp[i++]=f,tp[i++]=g-1,tp[i++]=1-c),(0===c?e+r>=p:t+r>=m)&&(tp[i++]=g+1,tp[i++]=d,tp[i++]=1-c)}return s}}function th(e,t,r,n){ty(e,r,n),ty(t,2*r,2*n),ty(t,2*r+1,2*n+1)}function ty(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function tb(e,t,r,n){let a=e-r,o=t-n;return a*a+o*o}let tv={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},tE=Math.fround||(n=new Float32Array(1),e=>(n[0]=+e,n[0]));class tw{constructor(e){this.options=Object.assign(Object.create(tv),e),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){let{log:t,minZoom:r,maxZoom:n}=this.options;t&&console.time("total time");let a=`prepare ${e.length} points`;t&&console.time(a),this.points=e;let o=[];for(let t=0;t<e.length;t++){let r=e[t];if(!r.geometry)continue;let[n,a]=r.geometry.coordinates,l=tE(tO(n)),i=tE(tM(a));o.push(l,i,1/0,t,-1,1),this.options.reduce&&o.push(0)}let l=this.trees[n+1]=this._createTree(o);t&&console.timeEnd(a);for(let e=n;e>=r;e--){let r=+Date.now();l=this.trees[e]=this._createTree(this._cluster(l,e)),t&&console.log("z%d: %d clusters in %dms",e,l.numItems,Date.now()-r)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let r=((e[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,e[1])),a=180===e[2]?180:((e[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)r=-180,a=180;else if(r>a){let e=this.getClusters([r,n,180,o],t),l=this.getClusters([-180,n,a,o],t);return e.concat(l)}let l=this.trees[this._limitZoom(t)],i=l.range(tO(r),tM(o),tO(a),tM(n)),s=l.data,u=[];for(let e of i){let t=this.stride*e;u.push(s[t+5]>1?tC(s,t,this.clusterProps):this.points[s[t+3]])}return u}getChildren(e){let t=this._getOriginId(e),r=this._getOriginZoom(e),n="No cluster with the specified id.",a=this.trees[r];if(!a)throw Error(n);let o=a.data;if(t*this.stride>=o.length)throw Error(n);let l=this.options.radius/(this.options.extent*Math.pow(2,r-1)),i=o[t*this.stride],s=o[t*this.stride+1],u=a.within(i,s,l),c=[];for(let t of u){let r=t*this.stride;o[r+4]===e&&c.push(o[r+5]>1?tC(o,r,this.clusterProps):this.points[o[r+3]])}if(0===c.length)throw Error(n);return c}getLeaves(e,t,r){t=t||10,r=r||0;let n=[];return this._appendLeaves(n,e,t,r,0),n}getTile(e,t,r){let n=this.trees[this._limitZoom(e)],a=Math.pow(2,e),{extent:o,radius:l}=this.options,i=l/o,s=(r-i)/a,u=(r+1+i)/a,c={features:[]};return this._addTileFeatures(n.range((t-i)/a,s,(t+1+i)/a,u),n.data,t,r,a,c),0===t&&this._addTileFeatures(n.range(1-i/a,s,1,u),n.data,a,r,a,c),t===a-1&&this._addTileFeatures(n.range(0,s,i/a,u),n.data,-1,r,a,c),c.features.length?c:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){let r=this.getChildren(e);if(t++,1!==r.length)break;e=r[0].properties.cluster_id}return t}_appendLeaves(e,t,r,n,a){for(let o of this.getChildren(t)){let t=
7o.properties;if(t&&t.cluster?a+t.point_count<=n?a+=t.point_count:a=this._appendLeaves(e,t.cluster_id,r,n,a):a<n?a++:e.push(o),e.length===r)break}return a}_createTree(e){let t=new tm(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,n,a,o){for(let l of e){let e,i,s,u,c=l*this.stride,d=t[c+5]>1;if(d)e=tk(t,c,this.clusterProps),i=t[c],s=t[c+1];else{let r=this.points[t[c+3]];e=r.properties;let[n,a]=r.geometry.coordinates;i=tO(n),s=tM(a)}let f={type:1,geometry:[[Math.round(this.options.extent*(i*a-r)),Math.round(this.options.extent*(s*a-n))]],tags:e};void 0!==(u=d||this.options.generateId?t[c+3]:this.points[t[c+3]].id)&&(f.id=u),o.features.push(f)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){let{radius:r,extent:n,reduce:a,minPoints:o}=this.options,l=r/(n*Math.pow(2,t)),i=e.data,s=[],u=this.stride;for(let r=0;r<i.length;r+=u){if(i[r+2]<=t)continue;i[r+2]=t;let n=i[r],c=i[r+1],d=e.within(i[r],i[r+1],l),f=i[r+5],g=f;for(let e of d){let r=e*u;i[r+2]>t&&(g+=i[r+5])}if(g>f&&g>=o){let e,o=n*f,l=c*f,p=-1,m=(r/u<<5)+(t+1)+this.points.length;for(let n of d){let s=n*u;if(i[s+2]<=t)continue;i[s+2]=t;let c=i[s+5];o+=i[s]*c,l+=i[s+1]*c,i[s+4]=m,a&&(e||(e=this._map(i,r,!0),p=this.clusterProps.length,this.clusterProps.push(e)),a(e,this._map(i,s)))}i[r+4]=m,s.push(o/g,l/g,1/0,m,-1,g),a&&s.push(p)}else{for(let e=0;e<u;e++)s.push(i[r+e]);if(g>1)for(let e of d){let r=e*u;if(!(i[r+2]<=t)){i[r+2]=t;for(let e=0;e<u;e++)s.push(i[r+e])}}}}return s}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,r){if(e[t+5]>1){let n=this.clusterProps[e[t+6]];return r?Object.assign({},n):n}let n=this.points[e[t+3]].properties,a=this.options.map(n);return r&&a===n?Object.assign({},a):a}}function tC(e,t,r){return{type:"Feature",id:e[t+3],properties:tk(e,t,r),geometry:{type:"Point",coordinates:[(e[t]-.5)*360,360*Math.atan(Math.exp((180-360*e[t+1])*Math.PI/180))/Math.PI-90]}}}function tk(e,t,r){let n=e[t+5],a=n>=1e4?`${Math.round(n/1e3)}k`:n>=1e3?`${Math.round(n/100)/10}k`:n,o=e[t+6];return Object.assign(-1===o?{}:Object.assign({},r[o]),{cluster:!0,cluster_id:e[t+3],point_count:n,point_count_abbreviated:a})}function tO(e){return e/360+.5}function tM(e){let 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"==typeof SuppressedError&&SuppressedError;class tA{static isAdvancedMarkerAvailable(e){return google.maps.marker&&!0===e.getMapCapabilities().isAdvancedMarkersAvailable}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)||e.getVisible()}}class tj{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(0===this.markers.length&&!this._position)return;let e=new google.maps.LatLngBounds(this._position,this._position);for(let t of this.markers)e.extend(tA.getPosition(t));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(e=>tA.getVisible(e)).length}push(e){this.markers.push(e)}delete(){this.marker&&(tA.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}function tx(e,t="assertion failed"){if(null==e)throw Error(t)}class tL{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return tS(e)}}let tS=e=>e.map(e=>new tj({position:tA.getPosition(e),markers:[e]}));class t_ extends tL{constructor(e){var{maxZoom:t,radius:r=60}=e,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}(e,["maxZoom","radius"]);super({maxZoom:t}
7),this.markers=[],this.clusters=[],this.state={zoom:-1},this.superCluster=new tw(Object.assign({maxZoom:this.maxZoom,radius:r},n))}calculate(e){let t=!1,r=e.map.getZoom();tx(r);let n={zoom:r=Math.round(r)};if(!td(e.markers,this.markers)){t=!0,this.markers=[...e.markers];let r=this.markers.map(e=>{let t=tA.getPosition(e);return{type:"Feature",geometry:{type:"Point",coordinates:[t.lng(),t.lat()]},properties:{marker:e}}});this.superCluster.load(r)}return(!t&&(this.state.zoom<=this.maxZoom||n.zoom<=this.maxZoom)&&(t=!td(this.state,n)),this.state=n,0===e.markers.length)?this.clusters=[]:t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}}cluster({map:e}){let t=e.getZoom();return tx(t),this.superCluster.getClusters([-180,-90,180,90],Math.round(t)).map(e=>this.transformCluster(e))}transformCluster({geometry:{coordinates:[e,t]},properties:r}){if(r.cluster)return new tj({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(e=>e.properties.marker),position:{lat:t,lng:e}});let n=r.marker;return new tj({markers:[n],position:tA.getPosition(n)})}}class tI{constructor(e,t){this.markers={sum:e.length};const r=t.map(e=>e.count),n=r.reduce((e,t)=>e+t,0);this.clusters={count:t.length,markers:{mean:n/t.length,sum:n,min:Math.min(...r),max:Math.max(...r)}}}}class tP{render({count:e,position:t},r,n){let a=e>Math.max(10,r.clusters.markers.mean)?"#ff0000":"#0000ff",o=`<svg fill="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">
8<circle cx="120" cy="120" opacity=".6" r="70" />
9<circle cx="120" cy="120" opacity=".3" r="90" />
10<circle cx="120" cy="120" opacity=".2" r="110" />
11<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>
12</svg>`,l=`Cluster of ${e} markers`,i=Number(google.maps.Marker.MAX_ZINDEX)+e;if(tA.isAdvancedMarkerAvailable(n)){let e=new DOMParser().parseFromString(o,"image/svg+xml").documentElement;return e.setAttribute("transform","translate(0 25)"),new google.maps.marker.AdvancedMarkerElement({map:n,position:t,zIndex:i,title:l,content:e})}let s={position:t,zIndex:i,title:l,icon:{url:`data:image/svg+xml;base64,${btoa(o)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(s)}}class tN{constructor(){!function(e,t){for(let r in t.prototype)e.prototype[r]=t.prototype[r]}(tN,google.maps.OverlayView)}}(a=o||(o={})).CLUSTERING_BEGIN="clusteringbegin",a.CLUSTERING_END="clusteringend",a.CLUSTER_CLICK="click",a.GMP_CLICK="gmp-click";let tT=(e,t,r)=>{t.bounds&&r.fitBounds(t.bounds)};e.s(["MarkerClusterer",0,class extends tN{constructor({map:e,markers:t=[],algorithmOptions:r={},algorithm:n=new t_(r),renderer:a=new tP,onClusterClick:o=tT}){super(),this.map=null,this.idleListener=null,this.markers=[...t],this.clusters=[],this.algorithm=n,this.renderer=a,this.onClusterClick=o,e&&this.setMap(e)}addMarker(e,t){!this.markers.includes(e)&&(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach(e=>{this.addMarker(e,!0)}),t||this.render()}removeMarker(e,t){let r=this.markers.indexOf(e);return -1!==r&&(tA.setMap(e,null),this.markers.splice(r,1),t||this.render(),!0)}removeMarkers(e,t){let r=!1;return e.forEach(e=>{r=this.removeMarker(e,!0)||r}),r&&!t&&this.render(),r}clearMarkers(e){this.markers.length=0,e||this.render()}render(){let e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,o.CLUSTERING_BEGIN,this);let{clusters:t,changed:r}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(r||void 0==r){let e=new Set;for(let r of t)1==r.markers.length&&e.add(r.markers[0]);let r=[];for(let t of this.clusters)null!=t.marker&&(1==t.markers.length?e.has(t.marker)||tA.setMap(t.marker,null):r.push(t.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame(()=>r.forEach(e=>tA.setMap(e,null)))}google.maps.event.trigger(this,o.CLUSTERING_END,this)}}onAdd(){let e=this.getMap();tx(e),this.idleListener=e.addListener("idle",this.render.bind(this)),this.render()}onRemove(){this.idleListener&&google.maps.event.removeListener(this.idleListener),this.reset()}
12reset(){this.markers.forEach(e=>tA.setMap(e,null)),this.clusters.forEach(e=>e.delete()),this.clusters=[]}renderClusters(){let e=new tI(this.markers,this.clusters),t=this.getMap();this.clusters.forEach(r=>{if(1===r.markers.length)r.marker=r.markers[0];else if(r.marker=this.renderer.render(r,e,t),r.markers.forEach(e=>tA.setMap(e,null)),this.onClusterClick){let e=tA.isAdvancedMarker(r.marker)?o.GMP_CLICK:o.CLUSTER_CLICK;r.marker.addListener(e,e=>{google.maps.event.trigger(this,o.CLUSTER_CLICK,r),this.onClusterClick(e,r,t)})}tA.setMap(r.marker,t)})}}],237992)},469699,e=>{"use strict";e.i(247167);var t=e.i(843476),r=e.i(271645),n=e.i(376896),a=e.i(237992),o=e.i(282686),l=e.i(348597),i=e.i(657688),s=e.i(526683),u=e.i(123010);let c={lat:33.01985056816009,lng:-117.28090170209633};function d({className:e}){return(0,t.jsxs)("div",{className:(0,s.cn)("w-full h-full col-span-full row-span-full bg-gray-100 border border-gray-200 rounded-lg flex flex-col items-center justify-center p-6 text-center min-h-[300px]",e),children:[(0,t.jsx)("div",{className:"rounded-full bg-gray-200/80 p-3 mb-3",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"})})}),(0,t.jsx)("p",{className:"text-sm font-semibold text-gray-800",children:"Map is unavailable at the moment"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-1 max-w-xs",children:"You can continue browsing locations using the list view."})]})}class f extends r.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.warn("MapErrorBoundary caught an error:",e,t)}componentDidMount(){window.gm_authFailure=()=>{console.warn("Google Maps API authentication error occurred."),this.setState({hasError:!0})}}componentWillUnmount(){window.gm_authFailure&&delete window.gm_authFailure}render(){return this.state.hasError?this.props.fallback:this.props.children}}function g({items:e,openId:l,onSelect:i,onClose:s}){let u=(0,n.useMap)(),c=(0,n.useMapsLibrary)("marker"),d=(0,r.useRef)(null),f=(0,r.useRef)(new Map);(0,r.useEffect)(()=>{if(!u||!c)return;let e=new a.MarkerClusterer({map:u,renderer:{render:({count:e,position:t})=>{let r=document.createElement("div");return r.style.cssText="width:50px;height:50px;background:white;border:6px solid #f97316;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:bold;color:black;",r.textContent=String(e),new c.AdvancedMarkerElement({position:t,content:r,zIndex:1e3+e})}}});for(let t of(d.current=e,f.current.values()))e.addMarker(t);return()=>{e.clearMarkers(),d.current=null}},[u,c]);let m=(0,r.useCallback)((e,t)=>{if(t)f.current.set(e,t),d.current?.addMarker(t);else{let t=f.current.get(e);t&&(d.current?.removeMarker(t),f.current.delete(e))}},[]);return(0,t.jsx)(t.Fragment,{children:e.map(e=>{let r=(0,o.getCoordinatesByLocation)(e);return r?.lat&&r?.lng?(0,t.jsx)(p,{item:e,position:r,isOpen:l===e.id,onSelect:i,onClose:s,registerMarker:m},e.id):null})})}function p({item:e,position:a,isOpen:o,onSelect:l,onClose:s,registerMarker:u}){let[c,d]=(0,n.useAdvancedMarkerRef)();return(0,r.useEffect)(()=>{if(d)return u(e.id,d),()=>{u(e.id,null)}},[d,e.id,u]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.AdvancedMarker,{ref:c,position:a,onClick:()=>l(e.id),children:(0,t.jsx)("div",{className:"size-10",children:(0,t.jsx)(i.default,{src:"/images/location/marker.svg",width:50,height:50,alt:e?.name??e?.city??"Marker"})})}),o&&d&&(0,t.jsx)(n.InfoWindow,{className:"max-w-80",anchor:d,disableAutoPan:!0,onClose:s,headerContent:(0,t.jsx)("p",{className:"text-b1 font-semibold tracking-[2%] hover:underline font-tt-firs-neue",children:e.name}),children:(0,t.jsxs)("p",{className:"text-b3 font-articulat font-normal",children:[e.address_line1,", ",e.address_line2,", ",e.city,", ",e.zip_code]})})]})}e.s(["DEFAULT_MAP_CENTER",0,c,"DEFAULT_MAP_MIN_ZOOM",0,3,"DEFAULT_MAP_ZOOM",0,4,"DEFAULT_MAP_ZOOM_IN",0,15,"GOOGLE_MAP_LIBRARIES",0,["marker"],"default",0,function({selectedId:e=null,onSelect:a=()=>{},locations:i,className:p,disableControls:m=!1}){let h=(0,n.useMap)(),{items:y}=(0,l.useGetGymLocations)({intialData:i}),[b,v]=(0,r.useState)(!1),[E,w]=(0,r.useState)(null),C=(0,r.useCallback)(e=>{if(!h||!e)return;let t=y.find(t=>
12t.id===e);if(!t)return;let r=(0,o.getCoordinatesByLocation)(t);r?.lat&&r?.lng&&(h.panTo(r),15>h.getZoom()&&h.setZoom(15))},[h,y]);(0,r.useEffect)(()=>{C(e)},[e,C]);let k=(0,r.useCallback)(e=>{let t=E===e?null:e;w(t),t&&C(t),a(t)},[E,a,C]),O=(0,r.useCallback)(()=>{w(null),a(null)},[a]);return(0,t.jsx)("div",{className:(0,s.cn)("w-full h-full grid",{[p]:!!p}),children:(0,t.jsxs)(f,{fallback:(0,t.jsx)(d,{className:p}),children:[!b&&(0,t.jsx)(u.Skeleton,{className:(0,s.cn)("w-full h-full col-span-full row-span-full bg-gray-200",{[p]:!!p})}),(0,t.jsx)(n.Map,{className:(0,s.cn)("max-w-full w-full h-full col-span-full row-span-full border border-gray-600/30 z-1",{[p]:!!p}),mapId:"5401484bdad3f37ad8b44902",defaultCenter:c,defaultZoom:4,minZoom:3,zoomControl:!m,mapTypeId:"roadmap",mapTypeControl:!1,streetViewControl:!m,fullscreenControl:!m,gestureHandling:m?"none":"auto",onTilesLoaded:()=>v(!0),children:(0,t.jsx)(g,{items:y.filter(e=>!e.skip),openId:E,onSelect:k,onClose:O})})]})})}])},123010,e=>{"use strict";var t=e.i(843476),r=e.i(526683);e.s(["Skeleton",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,r.cn)("bg-accent animate-pulse rounded-md",e),...n})}])}]);

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.