wacomm 1.88.1 → 1.88.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -415,7 +415,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
415
415
  * @license MIT
416
416
  * This source code is licensed under the MIT license found in the
417
417
  * LICENSE file in the root directory of this source tree.
418
- */function EB({value:e,setValue:t,disabled:r=!1}){return L.jsx(Ol,{dateAdapter:pu,children:L.jsx(OB,{value:e,disabled:r,onChange:t,slotProps:{textField:{sx:{"& .MuiPickersSectionList-root":{padding:0},"& .MuiPickersInputBase-sectionsContainer":{padding:0},width:"100%",height:30,"& .MuiInputBase-root":{height:30,"& .MuiInputBase-input":{padding:"0px 16px",color:"gray"}}}}}})})}function jB({startDate:e,endDate:t,className:r=""}){return L.jsx("div",{className:it("text-gray-600 text-sm",r),children:lu.formatDateTimeRange(e,t)})}function LB({date:e}){return!e||e.length<10?null:L.jsx("div",{className:"text-gray-600 text-sm",children:lu.formatDateTime(e)})}const BB=G.createContext(null);function NB(e,t){const r=Array.isArray(e)?e[0]:e?e.x:0,n=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,c=Array.isArray(t)?t[1]:t?t.y:0;return r===o&&n===c}function Do(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Do(e[r],t[r]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r)if(!t.hasOwnProperty(o)||!Do(e[o],t[o]))return!1;return!0}return!1}function zB(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function y2(e,t){if(!e.getProjection)return;const r=e.getProjection(),n=t.getProjection();Do(r,n)||t.setProjection(r)}function b2(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function v2(e,t){const r=t.viewState||t;let n=!1;if("zoom"in r){const o=e.zoom;e.zoom=r.zoom,n=n||o!==e.zoom}if("bearing"in r){const o=e.bearing;e.bearing=r.bearing,n=n||o!==e.bearing}if("pitch"in r){const o=e.pitch;e.pitch=r.pitch,n=n||o!==e.pitch}if(r.padding&&!e.isPaddingEqual(r.padding)&&(n=!0,e.padding=r.padding),"longitude"in r&&"latitude"in r){const o=e.center;e.center=new o.constructor(r.longitude,r.latitude),n=n||o!==e.center}return n}const FB=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function T2(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const n of e.layers)t[n.id]=n;const r=e.layers.map(n=>{let o=null;"interactive"in n&&(o=Object.assign({},n),delete o.interactive);const c=t[n.ref];if(c){o=o||Object.assign({},n),delete o.ref;for(const u of FB)u in c&&(o[u]=c[u])}return o||n});return{...e,layers:r}}const w2={version:8,sources:{},layers:[]},P2={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},YA={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},C2={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},VB=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],GB=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class Ji{constructor(t,r,n){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=o=>{const c=this.props[C2[o.type]];c?c(o):o.type==="error"&&console.error(o.error)},this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const c=this.props[P2[o.type]];c&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),c(o),delete o.features)},this._onCameraEvent=o=>{if(!this._internalUpdate){const c=this.props[YA[o.type]];c&&c(o)}o.type in this._deferredEvents&&(this._deferredEvents[o.type]=!1)},this._MapClass=t,this.props=r,this._initialize(n)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const r=this.props;this.props=t;const n=this._updateSettings(t,r);n&&this._createShadowTransform(this._map);const o=this._updateSize(t),c=this._updateViewState(t,!0);this._updateStyle(t,r),this._updateStyleComponents(t,r),this._updateHandlers(t,r),(n||o||c&&!this._map.isMoving())&&this.redraw()}static reuse(t,r){const n=Ji.savedMaps.pop();if(!n)return null;const o=n.map,c=o.getContainer();for(r.className=c.className;c.childNodes.length>0;)r.appendChild(c.childNodes[0]);o._container=r;const u=o._resizeObserver;u&&(u.disconnect(),u.observe(r)),n.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:d}=t;return d&&(d.bounds?o.fitBounds(d.bounds,{...d.fitBoundsOptions,duration:0}):n._updateViewState(d,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),n}_initialize(t){const{props:r}=this,{mapStyle:n=w2}=r,o={...r,...r.initialViewState,accessToken:r.mapboxAccessToken||WB()||null,container:t,style:T2(n)},c=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[c.longitude||0,c.latitude||0],zoom:c.zoom||0,pitch:c.pitch||0,bearing:c.bearing||0}),r.gl){const y=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=y,r.gl)}const u=new this._MapClass(o);c.padding&&u.setPadding(c.padding),r.cursor&&(u.getCanvas().style.cursor=r.cursor),this._createShadowTransform(u);const d=u._render;u._render=y=>{this._inRender=!0,d.call(u,y),this._inRender=!1};const f=u._renderTaskQueue.run;u._renderTaskQueue.run=y=>{f.call(u._renderTaskQueue,y),this._onBeforeRepaint()},u.on("render",()=>this._onAfterRepaint());const h=u.fire;u.fire=this._fireEvent.bind(this,h),u.on("resize",()=>{this._renderTransform.resize(u.transform.width,u.transform.height)}),u.on("styledata",()=>{this._updateStyleComponents(this.props,{}),y2(u.transform,this._renderTransform)}),u.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const y in P2)u.on(y,this._onPointerEvent);for(const y in YA)u.on(y,this._onCameraEvent);for(const y in C2)u.on(y,this._onEvent);this._map=u}recycle(){const r=this.map.getContainer().querySelector("[mapboxgl-children]");r==null||r.remove(),Ji.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const r=zB(t.transform);t.painter.transform=r,this._renderTransform=r}_updateSize(t){const{viewState:r}=t;if(r){const n=this._map;if(r.width!==n.transform.width||r.height!==n.transform.height)return n.resize(),!0}return!1}_updateViewState(t,r){if(this._internalUpdate)return!1;const n=this._map,o=this._renderTransform,{zoom:c,pitch:u,bearing:d}=o,f=n.isMoving();f&&(o.cameraElevationReference="sea");const h=v2(o,{...b2(n.transform),...t});if(f&&(o.cameraElevationReference="ground"),h&&r){const y=this._deferredEvents;y.move=!0,y.zoom||(y.zoom=c!==o.zoom),y.rotate||(y.rotate=d!==o.bearing),y.pitch||(y.pitch=u!==o.pitch)}return f||v2(n.transform,t),h}_updateSettings(t,r){const n=this._map;let o=!1;for(const c of VB)if(c in t&&!Do(t[c],r[c])){o=!0;const u=n[`set${c[0].toUpperCase()}${c.slice(1)}`];u==null||u.call(n,t[c])}return o}_updateStyle(t,r){if(t.cursor!==r.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==r.mapStyle){const{mapStyle:n=w2,styleDiffing:o=!0}=t,c={diff:o};return"localIdeographFontFamily"in t&&(c.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(T2(n),c),!0}return!1}_updateStyleComponents(t,r){const n=this._map;let o=!1;return n.isStyleLoaded()&&("light"in t&&n.setLight&&!Do(t.light,r.light)&&(o=!0,n.setLight(t.light)),"fog"in t&&n.setFog&&!Do(t.fog,r.fog)&&(o=!0,n.setFog(t.fog)),"terrain"in t&&n.setTerrain&&!Do(t.terrain,r.terrain)&&(!t.terrain||n.getSource(t.terrain.source))&&(o=!0,n.setTerrain(t.terrain))),o}_updateHandlers(t,r){var n,o;const c=this._map;let u=!1;for(const d of GB){const f=(n=t[d])!==null&&n!==void 0?n:!0,h=(o=r[d])!==null&&o!==void 0?o:!0;Do(f,h)||(u=!0,f?c[d].enable(f):c[d].disable())}return u}_queryRenderedFeatures(t){const r=this._map,n=r.transform,{interactiveLayerIds:o=[]}=this.props;try{return r.transform=this._renderTransform,r.queryRenderedFeatures(t,{layers:o.filter(r.getLayer.bind(r))})}catch{return[]}finally{r.transform=n}}_updateHover(t){var r;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const c=t.type,u=((r=this._hoveredFeatures)===null||r===void 0?void 0:r.length)>0,d=this._queryRenderedFeatures(t.point),f=d.length>0;!f&&u&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=d,f&&!u&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=c}else this._hoveredFeatures=null}_fireEvent(t,r,n){const o=this._map,c=o.transform,u=typeof r=="string"?r:r.type;return u==="move"&&this._updateViewState(this.props,!1),u in YA&&(typeof r=="object"&&(r.viewState=b2(c)),this._map.isMoving())?(o.transform=this._renderTransform,t.call(o,r,n),o.transform=c,o):(t.call(o,r,n),o)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const n in this._deferredEvents)this._deferredEvents[n]&&t.fire(n);this._internalUpdate=!1;const r=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{y2(this._renderTransform,r),t.transform=r}}}Ji.savedMaps=[];function WB(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const HB=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function qB(e){if(!e)return null;const t=e.map,r={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:n=>{const o=t.transform;t.transform=e.transform;const c=t.project(n);return t.transform=o,c},unproject:n=>{const o=t.transform;t.transform=e.transform;const c=t.unproject(n);return t.transform=o,c},queryTerrainElevation:(n,o)=>{const c=t.transform;t.transform=e.transform;const u=t.queryTerrainElevation(n,o);return t.transform=c,u},queryRenderedFeatures:(n,o)=>{const c=t.transform;t.transform=e.transform;const u=t.queryRenderedFeatures(n,o);return t.transform=c,u}};for(const n of ZB(t))!(n in r)&&!HB.includes(n)&&(r[n]=t[n].bind(t));return r}function ZB(e){const t=new Set;let r=e;for(;r;){for(const n of Object.getOwnPropertyNames(r))n[0]!=="_"&&typeof e[n]=="function"&&n!=="fire"&&n!=="setEventedParent"&&t.add(n);r=Object.getPrototypeOf(r)}return Array.from(t)}const YB=typeof document<"u"?Ae.useLayoutEffect:Ae.useEffect,QB=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function UB(e,t){for(const n of QB)n in t&&(e[n]=t[n]);const{RTLTextPlugin:r="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;r&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(r,n=>{n&&console.error(n)},!0)}const Zu=G.createContext(null);function Fb(e,t,r){const n=Ae.useContext(BB),[o,c]=Ae.useState(null),u=Ae.useRef(),{current:d}=Ae.useRef({mapLib:null,map:null});Ae.useEffect(()=>{const y=e.mapLib;let T=!0,P;return Promise.resolve(y||r).then(w=>{if(!T)return;if(!w)throw new Error("Invalid mapLib");const S="Map"in w?w:w.default;if(!S.Map)throw new Error("Invalid mapLib");if(UB(S,e),!S.supported||S.supported(e))e.reuseMaps&&(P=Ji.reuse(e,u.current)),P||(P=new Ji(S.Map,e,u.current)),d.map=qB(P),d.mapLib=S,c(P),n==null||n.onMapMount(d.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(w=>{const{onError:S}=e;S?S({type:"error",target:null,originalEvent:null,error:w}):console.error(w)}),()=>{T=!1,P&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?P.recycle():P.destroy())}},[]),YB(()=>{o&&o.setProps(e)}),Ae.useImperativeHandle(t,()=>d.map,[o]);const f=Ae.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),h={height:"100%"};return G.createElement("div",{id:e.id,ref:u,style:f},o&&G.createElement(Zu.Provider,{value:d},G.createElement("div",{"mapboxgl-children":"",style:h},e.children)))}const JB=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function ei(e,t){if(!e||!t)return;const r=e.style;for(const n in t){const o=t[n];Number.isFinite(o)&&!JB.test(n)?r[n]=`${o}px`:r[n]=o}}function XB(e,t){const{map:r,mapLib:n}=Ae.useContext(Zu),o=Ae.useRef({props:e});o.current.props=e;const c=Ae.useMemo(()=>{let C=!1;G.Children.forEach(e.children,H=>{H&&(C=!0)});const k={...e,element:C?document.createElement("div"):null},D=new n.Marker(k);return D.setLngLat([e.longitude,e.latitude]),D.getElement().addEventListener("click",H=>{var Z,V;(V=(Z=o.current.props).onClick)===null||V===void 0||V.call(Z,{type:"click",target:D,originalEvent:H})}),D.on("dragstart",H=>{var Z,V;const Y=H;Y.lngLat=c.getLngLat(),(V=(Z=o.current.props).onDragStart)===null||V===void 0||V.call(Z,Y)}),D.on("drag",H=>{var Z,V;const Y=H;Y.lngLat=c.getLngLat(),(V=(Z=o.current.props).onDrag)===null||V===void 0||V.call(Z,Y)}),D.on("dragend",H=>{var Z,V;const Y=H;Y.lngLat=c.getLngLat(),(V=(Z=o.current.props).onDragEnd)===null||V===void 0||V.call(Z,Y)}),D},[]);Ae.useEffect(()=>(c.addTo(r.getMap()),()=>{c.remove()}),[]);const{longitude:u,latitude:d,offset:f,style:h,draggable:y=!1,popup:T=null,rotation:P=0,rotationAlignment:w="auto",pitchAlignment:S="auto"}=e;return Ae.useEffect(()=>{ei(c.getElement(),h)},[h]),Ae.useImperativeHandle(t,()=>c,[]),(c.getLngLat().lng!==u||c.getLngLat().lat!==d)&&c.setLngLat([u,d]),f&&!NB(c.getOffset(),f)&&c.setOffset(f),c.isDraggable()!==y&&c.setDraggable(y),c.getRotation()!==P&&c.setRotation(P),c.getRotationAlignment()!==w&&c.setRotationAlignment(w),c.getPitchAlignment()!==S&&c.setPitchAlignment(S),c.getPopup()!==T&&c.setPopup(T),To.createPortal(e.children,c.getElement())}const Vb=Ae.memo(Ae.forwardRef(XB));function x2(e){return new Set(e?e.trim().split(/\s+/):[])}function $B(e,t){const{map:r,mapLib:n}=Ae.useContext(Zu),o=Ae.useMemo(()=>document.createElement("div"),[]),c=Ae.useRef({props:e});c.current.props=e;const u=Ae.useMemo(()=>{const d={...e},f=new n.Popup(d);return f.setLngLat([e.longitude,e.latitude]),f.once("open",h=>{var y,T;(T=(y=c.current.props).onOpen)===null||T===void 0||T.call(y,h)}),f},[]);if(Ae.useEffect(()=>{const d=f=>{var h,y;(y=(h=c.current.props).onClose)===null||y===void 0||y.call(h,f)};return u.on("close",d),u.setDOMContent(o).addTo(r.getMap()),()=>{u.off("close",d),u.isOpen()&&u.remove()}},[]),Ae.useEffect(()=>{ei(u.getElement(),e.style)},[e.style]),Ae.useImperativeHandle(t,()=>u,[]),u.isOpen()&&((u.getLngLat().lng!==e.longitude||u.getLngLat().lat!==e.latitude)&&u.setLngLat([e.longitude,e.latitude]),e.offset&&!Do(u.options.offset,e.offset)&&u.setOffset(e.offset),(u.options.anchor!==e.anchor||u.options.maxWidth!==e.maxWidth)&&(u.options.anchor=e.anchor,u.setMaxWidth(e.maxWidth)),u.options.className!==e.className)){const d=x2(u.options.className),f=x2(e.className);for(const h of d)f.has(h)||u.removeClassName(h);for(const h of f)d.has(h)||u.addClassName(h);u.options.className=e.className}return To.createPortal(e.children,o)}const QH=Ae.memo(Ae.forwardRef($B));function Fl(e,t,r,n){const o=Ae.useContext(Zu),c=Ae.useMemo(()=>e(o),[]);return Ae.useEffect(()=>{const u=n||r||t,d=typeof t=="function"&&typeof r=="function"?t:null,f=typeof r=="function"?r:typeof t=="function"?t:null,{map:h}=o;return h.hasControl(c)||(h.addControl(c,u==null?void 0:u.position),d&&d(o)),()=>{f&&f(o),h.hasControl(c)&&h.removeControl(c)}},[]),c}function KB(e){const t=Fl(({mapLib:r})=>new r.AttributionControl(e),{position:e.position});return Ae.useEffect(()=>{ei(t._container,e.style)},[e.style]),null}const UH=Ae.memo(KB);function _B(e){const t=Fl(({mapLib:r})=>new r.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return Ae.useEffect(()=>{ei(t._controlContainer,e.style)},[e.style]),null}const JH=Ae.memo(_B);function eN(e,t){const r=Ae.useRef({props:e}),n=Fl(({mapLib:o})=>{const c=new o.GeolocateControl(e),u=c._setupUI;return c._setupUI=d=>{c._container.hasChildNodes()||u(d)},c.on("geolocate",d=>{var f,h;(h=(f=r.current.props).onGeolocate)===null||h===void 0||h.call(f,d)}),c.on("error",d=>{var f,h;(h=(f=r.current.props).onError)===null||h===void 0||h.call(f,d)}),c.on("outofmaxbounds",d=>{var f,h;(h=(f=r.current.props).onOutOfMaxBounds)===null||h===void 0||h.call(f,d)}),c.on("trackuserlocationstart",d=>{var f,h;(h=(f=r.current.props).onTrackUserLocationStart)===null||h===void 0||h.call(f,d)}),c.on("trackuserlocationend",d=>{var f,h;(h=(f=r.current.props).onTrackUserLocationEnd)===null||h===void 0||h.call(f,d)}),c},{position:e.position});return r.current.props=e,Ae.useImperativeHandle(t,()=>n,[]),Ae.useEffect(()=>{ei(n._container,e.style)},[e.style]),null}const XH=Ae.memo(Ae.forwardRef(eN));function tN(e){const t=Fl(({mapLib:r})=>new r.NavigationControl(e),{position:e.position});return Ae.useEffect(()=>{ei(t._container,e.style)},[e.style]),null}const rN=Ae.memo(tN);function nN(e){const t=Fl(({mapLib:c})=>new c.ScaleControl(e),{position:e.position}),r=Ae.useRef(e),n=r.current;r.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==n.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==n.unit&&t.setUnit(e.unit),Ae.useEffect(()=>{ei(t._container,o)},[o]),null}const $H=Ae.memo(nN);const oN=Promise.resolve().then(()=>require("./maplibre-gl-MQtYfVUI.js")).then(e=>e.maplibreGl),sN=G.forwardRef(function(t,r){return Fb(t,r,oN)}),iN=Vb;const aN=rN;const lN=Promise.resolve().then(()=>require("./mapbox-gl-BLehTtUw.js")).then(e=>e.mapboxGl),KH=G.forwardRef(function(t,r){return Fb(t,r,lN)}),cN=Vb;function uN({locations:e}){if(b4.IsZeroArray(e))return null;const t=({id:r,longitude:n,latitude:o,icon:c})=>L.jsx("li",{children:L.jsx(cN,{longitude:n,latitude:o,children:c})},r);return L.jsx(ra,{items:e,itemRenderer:t})}const AN=({longitude:e,latitude:t,zoom:r=10,setCoordinates:n,locations:o=[],token:c,navigationControl:u})=>{const d=Ae.useRef(null),[f,h]=Ae.useState({longitude:e,latitude:t,zoom:r});return Ae.useEffect(()=>{d.current&&d.current.flyTo({center:[e,t],duration:3e3,essential:!0})},[t,e]),L.jsxs(sN,{ref:d,...f,mapStyle:`https://tiles.locationiq.com/v3/streets/vector.json?key=${c}`,style:{width:"100%",height:"100%"},onMove:y=>h(y.viewState),onClick:y=>{const{lng:T,lat:P}=y.lngLat;n&&n({lat:P,lng:T})},children:[L.jsx(iN,{longitude:e,latitude:t,children:"📌"}),L.jsx(uN,{locations:o}),L.jsx(aN,{position:u.position})]})};var Gb=(e=>(e.TR="top-right",e))(Gb||{});const qs=Math.min,ns=Math.max,cs=Math.round,es=Math.floor,Pn=e=>({x:e,y:e}),dN={left:"right",right:"left",bottom:"top",top:"bottom"};function Y0(e,t,r){return ns(e,qs(t,r))}function Vl(e,t){return typeof e=="function"?e(t):e}function Zs(e){return e.split("-")[0]}function Gl(e){return e.split("-")[1]}function Wb(e){return e==="x"?"y":"x"}function kp(e){return e==="y"?"height":"width"}function ts(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Mp(e){return Wb(ts(e))}function pN(e,t,r){r===void 0&&(r=!1);const n=Gl(e),o=Mp(e),c=kp(o);let u=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(u=tu(u)),[u,tu(u)]}function fN(e){const t=tu(e);return[Q0(e),t,Q0(t)]}function Q0(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const S2=["left","right"],I2=["right","left"],mN=["top","bottom"],hN=["bottom","top"];function gN(e,t,r){switch(e){case"top":case"bottom":return r?t?I2:S2:t?S2:I2;case"left":case"right":return t?mN:hN;default:return[]}}function yN(e,t,r,n){const o=Gl(e);let c=gN(Zs(e),r==="start",n);return o&&(c=c.map(u=>u+"-"+o),t&&(c=c.concat(c.map(Q0)))),c}function tu(e){const t=Zs(e);return dN[t]+e.slice(t.length)}function bN(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hb(e){return typeof e!="number"?bN(e):{top:e,right:e,bottom:e,left:e}}function Cl(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function k2(e,t,r){let{reference:n,floating:o}=e;const c=ts(t),u=Mp(t),d=kp(u),f=Zs(t),h=c==="y",y=n.x+n.width/2-o.width/2,T=n.y+n.height/2-o.height/2,P=n[d]/2-o[d]/2;let w;switch(f){case"top":w={x:y,y:n.y-o.height};break;case"bottom":w={x:y,y:n.y+n.height};break;case"right":w={x:n.x+n.width,y:T};break;case"left":w={x:n.x-o.width,y:T};break;default:w={x:n.x,y:n.y}}switch(Gl(t)){case"start":w[u]-=P*(r&&h?-1:1);break;case"end":w[u]+=P*(r&&h?-1:1);break}return w}async function vN(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:c,rects:u,elements:d,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:y="viewport",elementContext:T="floating",altBoundary:P=!1,padding:w=0}=Vl(t,e),S=Hb(w),k=d[P?T==="floating"?"reference":"floating":T],D=Cl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(k)))==null||r?k:k.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:h,rootBoundary:y,strategy:f})),H=T==="floating"?{x:n,y:o,width:u.floating.width,height:u.floating.height}:u.reference,Z=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),V=await(c.isElement==null?void 0:c.isElement(Z))?await(c.getScale==null?void 0:c.getScale(Z))||{x:1,y:1}:{x:1,y:1},Y=Cl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:H,offsetParent:Z,strategy:f}):H);return{top:(D.top-Y.top+S.top)/V.y,bottom:(Y.bottom-D.bottom+S.bottom)/V.y,left:(D.left-Y.left+S.left)/V.x,right:(Y.right-D.right+S.right)/V.x}}const TN=50,wN=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:c=[],platform:u}=r,d=u.detectOverflow?u:{...u,detectOverflow:vN},f=await(u.isRTL==null?void 0:u.isRTL(t));let h=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:y,y:T}=k2(h,n,f),P=n,w=0;const S={};for(let C=0;C<c.length;C++){const k=c[C];if(!k)continue;const{name:D,fn:H}=k,{x:Z,y:V,data:Y,reset:W}=await H({x:y,y:T,initialPlacement:n,placement:P,strategy:o,middlewareData:S,rects:h,platform:d,elements:{reference:e,floating:t}});y=Z??y,T=V??T,S[D]={...S[D],...Y},W&&w<TN&&(w++,typeof W=="object"&&(W.placement&&(P=W.placement),W.rects&&(h=W.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):W.rects),{x:y,y:T}=k2(h,P,f)),C=-1)}return{x:y,y:T,placement:P,strategy:o,middlewareData:S}},PN=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:c,platform:u,elements:d,middlewareData:f}=t,{element:h,padding:y=0}=Vl(e,t)||{};if(h==null)return{};const T=Hb(y),P={x:r,y:n},w=Mp(o),S=kp(w),C=await u.getDimensions(h),k=w==="y",D=k?"top":"left",H=k?"bottom":"right",Z=k?"clientHeight":"clientWidth",V=c.reference[S]+c.reference[w]-P[w]-c.floating[S],Y=P[w]-c.reference[w],W=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let z=W?W[Z]:0;(!z||!await(u.isElement==null?void 0:u.isElement(W)))&&(z=d.floating[Z]||c.floating[S]);const Q=V/2-Y/2,J=z/2-C[S]/2-1,F=qs(T[D],J),B=qs(T[H],J),I=F,X=z-C[S]-B,O=z/2-C[S]/2+Q,M=Y0(I,O,X),j=!f.arrow&&Gl(o)!=null&&O!==M&&c.reference[S]/2-(O<I?F:B)-C[S]/2<0,E=j?O<I?O-I:O-X:0;return{[w]:P[w]+E,data:{[w]:M,centerOffset:O-M-E,...j&&{alignmentOffset:E}},reset:j}}});const CN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:c,rects:u,initialPlacement:d,platform:f,elements:h}=t,{mainAxis:y=!0,crossAxis:T=!0,fallbackPlacements:P,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:C=!0,...k}=Vl(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const D=Zs(o),H=ts(d),Z=Zs(d)===d,V=await(f.isRTL==null?void 0:f.isRTL(h.floating)),Y=P||(Z||!C?[tu(d)]:fN(d)),W=S!=="none";!P&&W&&Y.push(...yN(d,C,S,V));const z=[d,...Y],Q=await f.detectOverflow(t,k),J=[];let F=((n=c.flip)==null?void 0:n.overflows)||[];if(y&&J.push(Q[D]),T){const O=pN(o,u,V);J.push(Q[O[0]],Q[O[1]])}if(F=[...F,{placement:o,overflows:J}],!J.every(O=>O<=0)){var B,I;const O=(((B=c.flip)==null?void 0:B.index)||0)+1,M=z[O];if(M&&(!(T==="alignment"?H!==ts(M):!1)||F.every(v=>ts(v.placement)===H?v.overflows[0]>0:!0)))return{data:{index:O,overflows:F},reset:{placement:M}};let j=(I=F.filter(E=>E.overflows[0]<=0).sort((E,v)=>E.overflows[1]-v.overflows[1])[0])==null?void 0:I.placement;if(!j)switch(w){case"bestFit":{var X;const E=(X=F.filter(v=>{if(W){const $=ts(v.placement);return $===H||$==="y"}return!0}).map(v=>[v.placement,v.overflows.filter($=>$>0).reduce(($,_)=>$+_,0)]).sort((v,$)=>v[1]-$[1])[0])==null?void 0:X[0];E&&(j=E);break}case"initialPlacement":j=d;break}if(o!==j)return{reset:{placement:j}}}return{}}}};const xN=new Set(["left","top"]);async function SN(e,t){const{placement:r,platform:n,elements:o}=e,c=await(n.isRTL==null?void 0:n.isRTL(o.floating)),u=Zs(r),d=Gl(r),f=ts(r)==="y",h=xN.has(u)?-1:1,y=c&&f?-1:1,T=Vl(t,e);let{mainAxis:P,crossAxis:w,alignmentAxis:S}=typeof T=="number"?{mainAxis:T,crossAxis:0,alignmentAxis:null}:{mainAxis:T.mainAxis||0,crossAxis:T.crossAxis||0,alignmentAxis:T.alignmentAxis};return d&&typeof S=="number"&&(w=d==="end"?S*-1:S),f?{x:w*y,y:P*h}:{x:P*h,y:w*y}}const IN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:c,placement:u,middlewareData:d}=t,f=await SN(t,e);return u===((r=d.offset)==null?void 0:r.placement)&&(n=d.arrow)!=null&&n.alignmentOffset?{}:{x:o+f.x,y:c+f.y,data:{...f,placement:u}}}}},kN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:c}=t,{mainAxis:u=!0,crossAxis:d=!1,limiter:f={fn:D=>{let{x:H,y:Z}=D;return{x:H,y:Z}}},...h}=Vl(e,t),y={x:r,y:n},T=await c.detectOverflow(t,h),P=ts(Zs(o)),w=Wb(P);let S=y[w],C=y[P];if(u){const D=w==="y"?"top":"left",H=w==="y"?"bottom":"right",Z=S+T[D],V=S-T[H];S=Y0(Z,S,V)}if(d){const D=P==="y"?"top":"left",H=P==="y"?"bottom":"right",Z=C+T[D],V=C-T[H];C=Y0(Z,C,V)}const k=f.fn({...t,[w]:S,[P]:C});return{...k,data:{x:k.x-r,y:k.y-n,enabled:{[w]:u,[P]:d}}}}}};function Yu(){return typeof window<"u"}function Aa(e){return qb(e)?(e.nodeName||"").toLowerCase():"#document"}function Kr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lo(e){var t;return(t=(qb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qb(e){return Yu()?e instanceof Node||e instanceof Kr(e).Node:!1}function xn(e){return Yu()?e instanceof Element||e instanceof Kr(e).Element:!1}function co(e){return Yu()?e instanceof HTMLElement||e instanceof Kr(e).HTMLElement:!1}function M2(e){return!Yu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Kr(e).ShadowRoot}function Wl(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=jn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&o!=="inline"&&o!=="contents"}function MN(e){return/^(table|td|th)$/.test(Aa(e))}function Qu(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ON=/transform|translate|scale|rotate|perspective|filter/,RN=/paint|layout|strict|content/,Os=e=>!!e&&e!=="none";let QA;function Op(e){const t=xn(e)?jn(e):e;return Os(t.transform)||Os(t.translate)||Os(t.scale)||Os(t.rotate)||Os(t.perspective)||!Uu()&&(Os(t.backdropFilter)||Os(t.filter))||ON.test(t.willChange||"")||RN.test(t.contain||"")}function DN(e){let t=us(e);for(;co(t)&&!Xi(t);){if(Op(t))return t;if(Qu(t))return null;t=us(t)}return null}function Uu(){return QA==null&&(QA=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),QA}function Xi(e){return/^(html|body|#document)$/.test(Aa(e))}function jn(e){return Kr(e).getComputedStyle(e)}function Ju(e){return xn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function us(e){if(Aa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||M2(e)&&e.host||lo(e);return M2(t)?t.host:t}function Zb(e){const t=us(e);return Xi(t)?e.ownerDocument?e.ownerDocument.body:e.body:co(t)&&Wl(t)?t:Zb(t)}function Ys(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Zb(e),c=o===((n=e.ownerDocument)==null?void 0:n.body),u=Kr(o);if(c){const d=xl(u);return t.concat(u,u.visualViewport||[],Wl(o)?o:[],d&&r?Ys(d):[])}else return t.concat(o,Ys(o,[],r))}function xl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yb(e){const t=jn(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=co(e),c=o?e.offsetWidth:r,u=o?e.offsetHeight:n,d=cs(r)!==c||cs(n)!==u;return d&&(r=c,n=u),{width:r,height:n,$:d}}function Rp(e){return xn(e)?e:e.contextElement}function Li(e){const t=Rp(e);if(!co(t))return Pn(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:c}=Yb(t);let u=(c?cs(r.width):r.width)/n,d=(c?cs(r.height):r.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const EN=Pn(0);function Qb(e){const t=Kr(e);return!Uu()||!t.visualViewport?EN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jN(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Kr(e)?!1:t}function Qs(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),c=Rp(e);let u=Pn(1);t&&(n?xn(n)&&(u=Li(n)):u=Li(e));const d=jN(c,r,n)?Qb(c):Pn(0);let f=(o.left+d.x)/u.x,h=(o.top+d.y)/u.y,y=o.width/u.x,T=o.height/u.y;if(c){const P=Kr(c),w=n&&xn(n)?Kr(n):n;let S=P,C=xl(S);for(;C&&n&&w!==S;){const k=Li(C),D=C.getBoundingClientRect(),H=jn(C),Z=D.left+(C.clientLeft+parseFloat(H.paddingLeft))*k.x,V=D.top+(C.clientTop+parseFloat(H.paddingTop))*k.y;f*=k.x,h*=k.y,y*=k.x,T*=k.y,f+=Z,h+=V,S=Kr(C),C=xl(S)}}return Cl({width:y,height:T,x:f,y:h})}function Xu(e,t){const r=Ju(e).scrollLeft;return t?t.left+r:Qs(lo(e)).left+r}function Ub(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Xu(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function LN(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const c=o==="fixed",u=lo(n),d=t?Qu(t.floating):!1;if(n===u||d&&c)return r;let f={scrollLeft:0,scrollTop:0},h=Pn(1);const y=Pn(0),T=co(n);if((T||!T&&!c)&&((Aa(n)!=="body"||Wl(u))&&(f=Ju(n)),T)){const w=Qs(n);h=Li(n),y.x=w.x+n.clientLeft,y.y=w.y+n.clientTop}const P=u&&!T&&!c?Ub(u,f):Pn(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-f.scrollLeft*h.x+y.x+P.x,y:r.y*h.y-f.scrollTop*h.y+y.y+P.y}}function BN(e){return Array.from(e.getClientRects())}function NN(e){const t=lo(e),r=Ju(e),n=e.ownerDocument.body,o=ns(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),c=ns(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let u=-r.scrollLeft+Xu(e);const d=-r.scrollTop;return jn(n).direction==="rtl"&&(u+=ns(t.clientWidth,n.clientWidth)-o),{width:o,height:c,x:u,y:d}}const O2=25;function zN(e,t){const r=Kr(e),n=lo(e),o=r.visualViewport;let c=n.clientWidth,u=n.clientHeight,d=0,f=0;if(o){c=o.width,u=o.height;const y=Uu();(!y||y&&t==="fixed")&&(d=o.offsetLeft,f=o.offsetTop)}const h=Xu(n);if(h<=0){const y=n.ownerDocument,T=y.body,P=getComputedStyle(T),w=y.compatMode==="CSS1Compat"&&parseFloat(P.marginLeft)+parseFloat(P.marginRight)||0,S=Math.abs(n.clientWidth-T.clientWidth-w);S<=O2&&(c-=S)}else h<=O2&&(c+=h);return{width:c,height:u,x:d,y:f}}function FN(e,t){const r=Qs(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,c=co(e)?Li(e):Pn(1),u=e.clientWidth*c.x,d=e.clientHeight*c.y,f=o*c.x,h=n*c.y;return{width:u,height:d,x:f,y:h}}function R2(e,t,r){let n;if(t==="viewport")n=zN(e,r);else if(t==="document")n=NN(lo(e));else if(xn(t))n=FN(t,r);else{const o=Qb(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Cl(n)}function Jb(e,t){const r=us(e);return r===t||!xn(r)||Xi(r)?!1:jn(r).position==="fixed"||Jb(r,t)}function VN(e,t){const r=t.get(e);if(r)return r;let n=Ys(e,[],!1).filter(d=>xn(d)&&Aa(d)!=="body"),o=null;const c=jn(e).position==="fixed";let u=c?us(e):e;for(;xn(u)&&!Xi(u);){const d=jn(u),f=Op(u);!f&&d.position==="fixed"&&(o=null),(c?!f&&!o:!f&&d.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Wl(u)&&!f&&Jb(e,u))?n=n.filter(y=>y!==u):o=d,u=us(u)}return t.set(e,n),n}function GN(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const u=[...r==="clippingAncestors"?Qu(t)?[]:VN(t,this._c):[].concat(r),n],d=R2(t,u[0],o);let f=d.top,h=d.right,y=d.bottom,T=d.left;for(let P=1;P<u.length;P++){const w=R2(t,u[P],o);f=ns(w.top,f),h=qs(w.right,h),y=qs(w.bottom,y),T=ns(w.left,T)}return{width:h-T,height:y-f,x:T,y:f}}function WN(e){const{width:t,height:r}=Yb(e);return{width:t,height:r}}function HN(e,t,r){const n=co(t),o=lo(t),c=r==="fixed",u=Qs(e,!0,c,t);let d={scrollLeft:0,scrollTop:0};const f=Pn(0);function h(){f.x=Xu(o)}if(n||!n&&!c)if((Aa(t)!=="body"||Wl(o))&&(d=Ju(t)),n){const w=Qs(t,!0,c,t);f.x=w.x+t.clientLeft,f.y=w.y+t.clientTop}else o&&h();c&&!n&&o&&h();const y=o&&!n&&!c?Ub(o,d):Pn(0),T=u.left+d.scrollLeft-f.x-y.x,P=u.top+d.scrollTop-f.y-y.y;return{x:T,y:P,width:u.width,height:u.height}}function UA(e){return jn(e).position==="static"}function D2(e,t){if(!co(e)||jn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return lo(e)===r&&(r=r.ownerDocument.body),r}function Xb(e,t){const r=Kr(e);if(Qu(e))return r;if(!co(e)){let o=us(e);for(;o&&!Xi(o);){if(xn(o)&&!UA(o))return o;o=us(o)}return r}let n=D2(e,t);for(;n&&MN(n)&&UA(n);)n=D2(n,t);return n&&Xi(n)&&UA(n)&&!Op(n)?r:n||DN(e)||r}const qN=async function(e){const t=this.getOffsetParent||Xb,r=this.getDimensions,n=await r(e.floating);return{reference:HN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ZN(e){return jn(e).direction==="rtl"}const YN={convertOffsetParentRelativeRectToViewportRelativeRect:LN,getDocumentElement:lo,getClippingRect:GN,getOffsetParent:Xb,getElementRects:qN,getClientRects:BN,getDimensions:WN,getScale:Li,isElement:xn,isRTL:ZN};function $b(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function QN(e,t){let r=null,n;const o=lo(e);function c(){var d;clearTimeout(n),(d=r)==null||d.disconnect(),r=null}function u(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),c();const h=e.getBoundingClientRect(),{left:y,top:T,width:P,height:w}=h;if(d||t(),!P||!w)return;const S=es(T),C=es(o.clientWidth-(y+P)),k=es(o.clientHeight-(T+w)),D=es(y),Z={rootMargin:-S+"px "+-C+"px "+-k+"px "+-D+"px",threshold:ns(0,qs(1,f))||1};let V=!0;function Y(W){const z=W[0].intersectionRatio;if(z!==f){if(!V)return u();z?u(!1,z):n=setTimeout(()=>{u(!1,1e-7)},1e3)}z===1&&!$b(h,e.getBoundingClientRect())&&u(),V=!1}try{r=new IntersectionObserver(Y,{...Z,root:o.ownerDocument})}catch{r=new IntersectionObserver(Y,Z)}r.observe(e)}return u(!0),c}function UN(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:f=!1}=n,h=Rp(e),y=o||c?[...h?Ys(h):[],...t?Ys(t):[]]:[];y.forEach(D=>{o&&D.addEventListener("scroll",r,{passive:!0}),c&&D.addEventListener("resize",r)});const T=h&&d?QN(h,r):null;let P=-1,w=null;u&&(w=new ResizeObserver(D=>{let[H]=D;H&&H.target===h&&w&&t&&(w.unobserve(t),cancelAnimationFrame(P),P=requestAnimationFrame(()=>{var Z;(Z=w)==null||Z.observe(t)})),r()}),h&&!f&&w.observe(h),t&&w.observe(t));let S,C=f?Qs(e):null;f&&k();function k(){const D=Qs(e);C&&!$b(C,D)&&r(),C=D,S=requestAnimationFrame(k)}return r(),()=>{var D;y.forEach(H=>{o&&H.removeEventListener("scroll",r),c&&H.removeEventListener("resize",r)}),T==null||T(),(D=w)==null||D.disconnect(),w=null,f&&cancelAnimationFrame(S)}}const JN=IN;const XN=kN,$N=CN;const KN=PN;const E2=(e,t,r)=>{const n=new Map,o={platform:YN,...r},c={...o.platform,_c:n};return wN(e,t,{...o,platform:c})};var jc={exports:{}};/*!
418
+ */function EB({value:e,setValue:t,disabled:r=!1}){return L.jsx(Ol,{dateAdapter:pu,children:L.jsx(OB,{value:e,disabled:r,onChange:t,slotProps:{textField:{sx:{"& .MuiPickersSectionList-root":{padding:0},"& .MuiPickersInputBase-sectionsContainer":{padding:0},width:"100%",height:30,"& .MuiInputBase-root":{height:30,"& .MuiInputBase-input":{padding:"0px 16px",color:"gray"}}}}}})})}function jB({startDate:e,endDate:t,className:r=""}){return L.jsx("div",{className:it("text-gray-600 text-sm",r),children:lu.formatDateTimeRange(e,t)})}function LB({date:e}){return!e||e.length<10?null:L.jsx("div",{className:"text-gray-600 text-sm",children:lu.formatDateTime(e)})}const BB=G.createContext(null);function NB(e,t){const r=Array.isArray(e)?e[0]:e?e.x:0,n=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,c=Array.isArray(t)?t[1]:t?t.y:0;return r===o&&n===c}function Do(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Do(e[r],t[r]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r)if(!t.hasOwnProperty(o)||!Do(e[o],t[o]))return!1;return!0}return!1}function zB(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function y2(e,t){if(!e.getProjection)return;const r=e.getProjection(),n=t.getProjection();Do(r,n)||t.setProjection(r)}function b2(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function v2(e,t){const r=t.viewState||t;let n=!1;if("zoom"in r){const o=e.zoom;e.zoom=r.zoom,n=n||o!==e.zoom}if("bearing"in r){const o=e.bearing;e.bearing=r.bearing,n=n||o!==e.bearing}if("pitch"in r){const o=e.pitch;e.pitch=r.pitch,n=n||o!==e.pitch}if(r.padding&&!e.isPaddingEqual(r.padding)&&(n=!0,e.padding=r.padding),"longitude"in r&&"latitude"in r){const o=e.center;e.center=new o.constructor(r.longitude,r.latitude),n=n||o!==e.center}return n}const FB=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function T2(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const n of e.layers)t[n.id]=n;const r=e.layers.map(n=>{let o=null;"interactive"in n&&(o=Object.assign({},n),delete o.interactive);const c=t[n.ref];if(c){o=o||Object.assign({},n),delete o.ref;for(const u of FB)u in c&&(o[u]=c[u])}return o||n});return{...e,layers:r}}const w2={version:8,sources:{},layers:[]},P2={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},YA={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},C2={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},VB=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],GB=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class Ji{constructor(t,r,n){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=o=>{const c=this.props[C2[o.type]];c?c(o):o.type==="error"&&console.error(o.error)},this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const c=this.props[P2[o.type]];c&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),c(o),delete o.features)},this._onCameraEvent=o=>{if(!this._internalUpdate){const c=this.props[YA[o.type]];c&&c(o)}o.type in this._deferredEvents&&(this._deferredEvents[o.type]=!1)},this._MapClass=t,this.props=r,this._initialize(n)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const r=this.props;this.props=t;const n=this._updateSettings(t,r);n&&this._createShadowTransform(this._map);const o=this._updateSize(t),c=this._updateViewState(t,!0);this._updateStyle(t,r),this._updateStyleComponents(t,r),this._updateHandlers(t,r),(n||o||c&&!this._map.isMoving())&&this.redraw()}static reuse(t,r){const n=Ji.savedMaps.pop();if(!n)return null;const o=n.map,c=o.getContainer();for(r.className=c.className;c.childNodes.length>0;)r.appendChild(c.childNodes[0]);o._container=r;const u=o._resizeObserver;u&&(u.disconnect(),u.observe(r)),n.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:d}=t;return d&&(d.bounds?o.fitBounds(d.bounds,{...d.fitBoundsOptions,duration:0}):n._updateViewState(d,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),n}_initialize(t){const{props:r}=this,{mapStyle:n=w2}=r,o={...r,...r.initialViewState,accessToken:r.mapboxAccessToken||WB()||null,container:t,style:T2(n)},c=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[c.longitude||0,c.latitude||0],zoom:c.zoom||0,pitch:c.pitch||0,bearing:c.bearing||0}),r.gl){const y=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=y,r.gl)}const u=new this._MapClass(o);c.padding&&u.setPadding(c.padding),r.cursor&&(u.getCanvas().style.cursor=r.cursor),this._createShadowTransform(u);const d=u._render;u._render=y=>{this._inRender=!0,d.call(u,y),this._inRender=!1};const f=u._renderTaskQueue.run;u._renderTaskQueue.run=y=>{f.call(u._renderTaskQueue,y),this._onBeforeRepaint()},u.on("render",()=>this._onAfterRepaint());const h=u.fire;u.fire=this._fireEvent.bind(this,h),u.on("resize",()=>{this._renderTransform.resize(u.transform.width,u.transform.height)}),u.on("styledata",()=>{this._updateStyleComponents(this.props,{}),y2(u.transform,this._renderTransform)}),u.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const y in P2)u.on(y,this._onPointerEvent);for(const y in YA)u.on(y,this._onCameraEvent);for(const y in C2)u.on(y,this._onEvent);this._map=u}recycle(){const r=this.map.getContainer().querySelector("[mapboxgl-children]");r==null||r.remove(),Ji.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const r=zB(t.transform);t.painter.transform=r,this._renderTransform=r}_updateSize(t){const{viewState:r}=t;if(r){const n=this._map;if(r.width!==n.transform.width||r.height!==n.transform.height)return n.resize(),!0}return!1}_updateViewState(t,r){if(this._internalUpdate)return!1;const n=this._map,o=this._renderTransform,{zoom:c,pitch:u,bearing:d}=o,f=n.isMoving();f&&(o.cameraElevationReference="sea");const h=v2(o,{...b2(n.transform),...t});if(f&&(o.cameraElevationReference="ground"),h&&r){const y=this._deferredEvents;y.move=!0,y.zoom||(y.zoom=c!==o.zoom),y.rotate||(y.rotate=d!==o.bearing),y.pitch||(y.pitch=u!==o.pitch)}return f||v2(n.transform,t),h}_updateSettings(t,r){const n=this._map;let o=!1;for(const c of VB)if(c in t&&!Do(t[c],r[c])){o=!0;const u=n[`set${c[0].toUpperCase()}${c.slice(1)}`];u==null||u.call(n,t[c])}return o}_updateStyle(t,r){if(t.cursor!==r.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==r.mapStyle){const{mapStyle:n=w2,styleDiffing:o=!0}=t,c={diff:o};return"localIdeographFontFamily"in t&&(c.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(T2(n),c),!0}return!1}_updateStyleComponents(t,r){const n=this._map;let o=!1;return n.isStyleLoaded()&&("light"in t&&n.setLight&&!Do(t.light,r.light)&&(o=!0,n.setLight(t.light)),"fog"in t&&n.setFog&&!Do(t.fog,r.fog)&&(o=!0,n.setFog(t.fog)),"terrain"in t&&n.setTerrain&&!Do(t.terrain,r.terrain)&&(!t.terrain||n.getSource(t.terrain.source))&&(o=!0,n.setTerrain(t.terrain))),o}_updateHandlers(t,r){var n,o;const c=this._map;let u=!1;for(const d of GB){const f=(n=t[d])!==null&&n!==void 0?n:!0,h=(o=r[d])!==null&&o!==void 0?o:!0;Do(f,h)||(u=!0,f?c[d].enable(f):c[d].disable())}return u}_queryRenderedFeatures(t){const r=this._map,n=r.transform,{interactiveLayerIds:o=[]}=this.props;try{return r.transform=this._renderTransform,r.queryRenderedFeatures(t,{layers:o.filter(r.getLayer.bind(r))})}catch{return[]}finally{r.transform=n}}_updateHover(t){var r;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const c=t.type,u=((r=this._hoveredFeatures)===null||r===void 0?void 0:r.length)>0,d=this._queryRenderedFeatures(t.point),f=d.length>0;!f&&u&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=d,f&&!u&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=c}else this._hoveredFeatures=null}_fireEvent(t,r,n){const o=this._map,c=o.transform,u=typeof r=="string"?r:r.type;return u==="move"&&this._updateViewState(this.props,!1),u in YA&&(typeof r=="object"&&(r.viewState=b2(c)),this._map.isMoving())?(o.transform=this._renderTransform,t.call(o,r,n),o.transform=c,o):(t.call(o,r,n),o)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const n in this._deferredEvents)this._deferredEvents[n]&&t.fire(n);this._internalUpdate=!1;const r=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{y2(this._renderTransform,r),t.transform=r}}}Ji.savedMaps=[];function WB(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const HB=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function qB(e){if(!e)return null;const t=e.map,r={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:n=>{const o=t.transform;t.transform=e.transform;const c=t.project(n);return t.transform=o,c},unproject:n=>{const o=t.transform;t.transform=e.transform;const c=t.unproject(n);return t.transform=o,c},queryTerrainElevation:(n,o)=>{const c=t.transform;t.transform=e.transform;const u=t.queryTerrainElevation(n,o);return t.transform=c,u},queryRenderedFeatures:(n,o)=>{const c=t.transform;t.transform=e.transform;const u=t.queryRenderedFeatures(n,o);return t.transform=c,u}};for(const n of ZB(t))!(n in r)&&!HB.includes(n)&&(r[n]=t[n].bind(t));return r}function ZB(e){const t=new Set;let r=e;for(;r;){for(const n of Object.getOwnPropertyNames(r))n[0]!=="_"&&typeof e[n]=="function"&&n!=="fire"&&n!=="setEventedParent"&&t.add(n);r=Object.getPrototypeOf(r)}return Array.from(t)}const YB=typeof document<"u"?Ae.useLayoutEffect:Ae.useEffect,QB=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function UB(e,t){for(const n of QB)n in t&&(e[n]=t[n]);const{RTLTextPlugin:r="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;r&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(r,n=>{n&&console.error(n)},!0)}const Zu=G.createContext(null);function Fb(e,t,r){const n=Ae.useContext(BB),[o,c]=Ae.useState(null),u=Ae.useRef(),{current:d}=Ae.useRef({mapLib:null,map:null});Ae.useEffect(()=>{const y=e.mapLib;let T=!0,P;return Promise.resolve(y||r).then(w=>{if(!T)return;if(!w)throw new Error("Invalid mapLib");const S="Map"in w?w:w.default;if(!S.Map)throw new Error("Invalid mapLib");if(UB(S,e),!S.supported||S.supported(e))e.reuseMaps&&(P=Ji.reuse(e,u.current)),P||(P=new Ji(S.Map,e,u.current)),d.map=qB(P),d.mapLib=S,c(P),n==null||n.onMapMount(d.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(w=>{const{onError:S}=e;S?S({type:"error",target:null,originalEvent:null,error:w}):console.error(w)}),()=>{T=!1,P&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?P.recycle():P.destroy())}},[]),YB(()=>{o&&o.setProps(e)}),Ae.useImperativeHandle(t,()=>d.map,[o]);const f=Ae.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),h={height:"100%"};return G.createElement("div",{id:e.id,ref:u,style:f},o&&G.createElement(Zu.Provider,{value:d},G.createElement("div",{"mapboxgl-children":"",style:h},e.children)))}const JB=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function ei(e,t){if(!e||!t)return;const r=e.style;for(const n in t){const o=t[n];Number.isFinite(o)&&!JB.test(n)?r[n]=`${o}px`:r[n]=o}}function XB(e,t){const{map:r,mapLib:n}=Ae.useContext(Zu),o=Ae.useRef({props:e});o.current.props=e;const c=Ae.useMemo(()=>{let C=!1;G.Children.forEach(e.children,H=>{H&&(C=!0)});const k={...e,element:C?document.createElement("div"):null},D=new n.Marker(k);return D.setLngLat([e.longitude,e.latitude]),D.getElement().addEventListener("click",H=>{var Z,V;(V=(Z=o.current.props).onClick)===null||V===void 0||V.call(Z,{type:"click",target:D,originalEvent:H})}),D.on("dragstart",H=>{var Z,V;const Y=H;Y.lngLat=c.getLngLat(),(V=(Z=o.current.props).onDragStart)===null||V===void 0||V.call(Z,Y)}),D.on("drag",H=>{var Z,V;const Y=H;Y.lngLat=c.getLngLat(),(V=(Z=o.current.props).onDrag)===null||V===void 0||V.call(Z,Y)}),D.on("dragend",H=>{var Z,V;const Y=H;Y.lngLat=c.getLngLat(),(V=(Z=o.current.props).onDragEnd)===null||V===void 0||V.call(Z,Y)}),D},[]);Ae.useEffect(()=>(c.addTo(r.getMap()),()=>{c.remove()}),[]);const{longitude:u,latitude:d,offset:f,style:h,draggable:y=!1,popup:T=null,rotation:P=0,rotationAlignment:w="auto",pitchAlignment:S="auto"}=e;return Ae.useEffect(()=>{ei(c.getElement(),h)},[h]),Ae.useImperativeHandle(t,()=>c,[]),(c.getLngLat().lng!==u||c.getLngLat().lat!==d)&&c.setLngLat([u,d]),f&&!NB(c.getOffset(),f)&&c.setOffset(f),c.isDraggable()!==y&&c.setDraggable(y),c.getRotation()!==P&&c.setRotation(P),c.getRotationAlignment()!==w&&c.setRotationAlignment(w),c.getPitchAlignment()!==S&&c.setPitchAlignment(S),c.getPopup()!==T&&c.setPopup(T),To.createPortal(e.children,c.getElement())}const Vb=Ae.memo(Ae.forwardRef(XB));function x2(e){return new Set(e?e.trim().split(/\s+/):[])}function $B(e,t){const{map:r,mapLib:n}=Ae.useContext(Zu),o=Ae.useMemo(()=>document.createElement("div"),[]),c=Ae.useRef({props:e});c.current.props=e;const u=Ae.useMemo(()=>{const d={...e},f=new n.Popup(d);return f.setLngLat([e.longitude,e.latitude]),f.once("open",h=>{var y,T;(T=(y=c.current.props).onOpen)===null||T===void 0||T.call(y,h)}),f},[]);if(Ae.useEffect(()=>{const d=f=>{var h,y;(y=(h=c.current.props).onClose)===null||y===void 0||y.call(h,f)};return u.on("close",d),u.setDOMContent(o).addTo(r.getMap()),()=>{u.off("close",d),u.isOpen()&&u.remove()}},[]),Ae.useEffect(()=>{ei(u.getElement(),e.style)},[e.style]),Ae.useImperativeHandle(t,()=>u,[]),u.isOpen()&&((u.getLngLat().lng!==e.longitude||u.getLngLat().lat!==e.latitude)&&u.setLngLat([e.longitude,e.latitude]),e.offset&&!Do(u.options.offset,e.offset)&&u.setOffset(e.offset),(u.options.anchor!==e.anchor||u.options.maxWidth!==e.maxWidth)&&(u.options.anchor=e.anchor,u.setMaxWidth(e.maxWidth)),u.options.className!==e.className)){const d=x2(u.options.className),f=x2(e.className);for(const h of d)f.has(h)||u.removeClassName(h);for(const h of f)d.has(h)||u.addClassName(h);u.options.className=e.className}return To.createPortal(e.children,o)}const QH=Ae.memo(Ae.forwardRef($B));function Fl(e,t,r,n){const o=Ae.useContext(Zu),c=Ae.useMemo(()=>e(o),[]);return Ae.useEffect(()=>{const u=n||r||t,d=typeof t=="function"&&typeof r=="function"?t:null,f=typeof r=="function"?r:typeof t=="function"?t:null,{map:h}=o;return h.hasControl(c)||(h.addControl(c,u==null?void 0:u.position),d&&d(o)),()=>{f&&f(o),h.hasControl(c)&&h.removeControl(c)}},[]),c}function KB(e){const t=Fl(({mapLib:r})=>new r.AttributionControl(e),{position:e.position});return Ae.useEffect(()=>{ei(t._container,e.style)},[e.style]),null}const UH=Ae.memo(KB);function _B(e){const t=Fl(({mapLib:r})=>new r.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return Ae.useEffect(()=>{ei(t._controlContainer,e.style)},[e.style]),null}const JH=Ae.memo(_B);function eN(e,t){const r=Ae.useRef({props:e}),n=Fl(({mapLib:o})=>{const c=new o.GeolocateControl(e),u=c._setupUI;return c._setupUI=d=>{c._container.hasChildNodes()||u(d)},c.on("geolocate",d=>{var f,h;(h=(f=r.current.props).onGeolocate)===null||h===void 0||h.call(f,d)}),c.on("error",d=>{var f,h;(h=(f=r.current.props).onError)===null||h===void 0||h.call(f,d)}),c.on("outofmaxbounds",d=>{var f,h;(h=(f=r.current.props).onOutOfMaxBounds)===null||h===void 0||h.call(f,d)}),c.on("trackuserlocationstart",d=>{var f,h;(h=(f=r.current.props).onTrackUserLocationStart)===null||h===void 0||h.call(f,d)}),c.on("trackuserlocationend",d=>{var f,h;(h=(f=r.current.props).onTrackUserLocationEnd)===null||h===void 0||h.call(f,d)}),c},{position:e.position});return r.current.props=e,Ae.useImperativeHandle(t,()=>n,[]),Ae.useEffect(()=>{ei(n._container,e.style)},[e.style]),null}const XH=Ae.memo(Ae.forwardRef(eN));function tN(e){const t=Fl(({mapLib:r})=>new r.NavigationControl(e),{position:e.position});return Ae.useEffect(()=>{ei(t._container,e.style)},[e.style]),null}const rN=Ae.memo(tN);function nN(e){const t=Fl(({mapLib:c})=>new c.ScaleControl(e),{position:e.position}),r=Ae.useRef(e),n=r.current;r.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==n.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==n.unit&&t.setUnit(e.unit),Ae.useEffect(()=>{ei(t._container,o)},[o]),null}const $H=Ae.memo(nN);const oN=Promise.resolve().then(()=>require("./maplibre-gl-BYdDlbVo.js")).then(e=>e.maplibreGl),sN=G.forwardRef(function(t,r){return Fb(t,r,oN)}),iN=Vb;const aN=rN;const lN=Promise.resolve().then(()=>require("./mapbox-gl-MvFvMAIZ.js")).then(e=>e.mapboxGl),KH=G.forwardRef(function(t,r){return Fb(t,r,lN)}),cN=Vb;function uN({locations:e}){if(b4.IsZeroArray(e))return null;const t=({id:r,longitude:n,latitude:o,icon:c})=>L.jsx("li",{children:L.jsx(cN,{longitude:n,latitude:o,children:c})},r);return L.jsx(ra,{items:e,itemRenderer:t})}const AN=({lng:e,lat:t,zoom:r=10,setCoordinates:n,locations:o=[],token:c,navigationControl:u})=>{const d=Ae.useRef(null),[f,h]=Ae.useState({longitude:e,latitude:t,zoom:r});return Ae.useEffect(()=>{d.current&&d.current.flyTo({center:[e,t],duration:3e3,essential:!0})},[t,e]),L.jsxs(sN,{ref:d,...f,mapStyle:`https://tiles.locationiq.com/v3/streets/vector.json?key=${c}`,style:{width:"100%",height:"100%"},onMove:y=>h(y.viewState),onClick:y=>{const{lng:T,lat:P}=y.lngLat;n&&n({lat:P,lng:T})},children:[L.jsx(iN,{longitude:e,latitude:t,children:"📌"}),L.jsx(uN,{locations:o}),L.jsx(aN,{position:u.position})]})};var Gb=(e=>(e.TR="top-right",e))(Gb||{});const qs=Math.min,ns=Math.max,cs=Math.round,es=Math.floor,Pn=e=>({x:e,y:e}),dN={left:"right",right:"left",bottom:"top",top:"bottom"};function Y0(e,t,r){return ns(e,qs(t,r))}function Vl(e,t){return typeof e=="function"?e(t):e}function Zs(e){return e.split("-")[0]}function Gl(e){return e.split("-")[1]}function Wb(e){return e==="x"?"y":"x"}function kp(e){return e==="y"?"height":"width"}function ts(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Mp(e){return Wb(ts(e))}function pN(e,t,r){r===void 0&&(r=!1);const n=Gl(e),o=Mp(e),c=kp(o);let u=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(u=tu(u)),[u,tu(u)]}function fN(e){const t=tu(e);return[Q0(e),t,Q0(t)]}function Q0(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const S2=["left","right"],I2=["right","left"],mN=["top","bottom"],hN=["bottom","top"];function gN(e,t,r){switch(e){case"top":case"bottom":return r?t?I2:S2:t?S2:I2;case"left":case"right":return t?mN:hN;default:return[]}}function yN(e,t,r,n){const o=Gl(e);let c=gN(Zs(e),r==="start",n);return o&&(c=c.map(u=>u+"-"+o),t&&(c=c.concat(c.map(Q0)))),c}function tu(e){const t=Zs(e);return dN[t]+e.slice(t.length)}function bN(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hb(e){return typeof e!="number"?bN(e):{top:e,right:e,bottom:e,left:e}}function Cl(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function k2(e,t,r){let{reference:n,floating:o}=e;const c=ts(t),u=Mp(t),d=kp(u),f=Zs(t),h=c==="y",y=n.x+n.width/2-o.width/2,T=n.y+n.height/2-o.height/2,P=n[d]/2-o[d]/2;let w;switch(f){case"top":w={x:y,y:n.y-o.height};break;case"bottom":w={x:y,y:n.y+n.height};break;case"right":w={x:n.x+n.width,y:T};break;case"left":w={x:n.x-o.width,y:T};break;default:w={x:n.x,y:n.y}}switch(Gl(t)){case"start":w[u]-=P*(r&&h?-1:1);break;case"end":w[u]+=P*(r&&h?-1:1);break}return w}async function vN(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:c,rects:u,elements:d,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:y="viewport",elementContext:T="floating",altBoundary:P=!1,padding:w=0}=Vl(t,e),S=Hb(w),k=d[P?T==="floating"?"reference":"floating":T],D=Cl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(k)))==null||r?k:k.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:h,rootBoundary:y,strategy:f})),H=T==="floating"?{x:n,y:o,width:u.floating.width,height:u.floating.height}:u.reference,Z=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),V=await(c.isElement==null?void 0:c.isElement(Z))?await(c.getScale==null?void 0:c.getScale(Z))||{x:1,y:1}:{x:1,y:1},Y=Cl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:H,offsetParent:Z,strategy:f}):H);return{top:(D.top-Y.top+S.top)/V.y,bottom:(Y.bottom-D.bottom+S.bottom)/V.y,left:(D.left-Y.left+S.left)/V.x,right:(Y.right-D.right+S.right)/V.x}}const TN=50,wN=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:c=[],platform:u}=r,d=u.detectOverflow?u:{...u,detectOverflow:vN},f=await(u.isRTL==null?void 0:u.isRTL(t));let h=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:y,y:T}=k2(h,n,f),P=n,w=0;const S={};for(let C=0;C<c.length;C++){const k=c[C];if(!k)continue;const{name:D,fn:H}=k,{x:Z,y:V,data:Y,reset:W}=await H({x:y,y:T,initialPlacement:n,placement:P,strategy:o,middlewareData:S,rects:h,platform:d,elements:{reference:e,floating:t}});y=Z??y,T=V??T,S[D]={...S[D],...Y},W&&w<TN&&(w++,typeof W=="object"&&(W.placement&&(P=W.placement),W.rects&&(h=W.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):W.rects),{x:y,y:T}=k2(h,P,f)),C=-1)}return{x:y,y:T,placement:P,strategy:o,middlewareData:S}},PN=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:c,platform:u,elements:d,middlewareData:f}=t,{element:h,padding:y=0}=Vl(e,t)||{};if(h==null)return{};const T=Hb(y),P={x:r,y:n},w=Mp(o),S=kp(w),C=await u.getDimensions(h),k=w==="y",D=k?"top":"left",H=k?"bottom":"right",Z=k?"clientHeight":"clientWidth",V=c.reference[S]+c.reference[w]-P[w]-c.floating[S],Y=P[w]-c.reference[w],W=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let z=W?W[Z]:0;(!z||!await(u.isElement==null?void 0:u.isElement(W)))&&(z=d.floating[Z]||c.floating[S]);const Q=V/2-Y/2,J=z/2-C[S]/2-1,F=qs(T[D],J),B=qs(T[H],J),I=F,X=z-C[S]-B,O=z/2-C[S]/2+Q,M=Y0(I,O,X),j=!f.arrow&&Gl(o)!=null&&O!==M&&c.reference[S]/2-(O<I?F:B)-C[S]/2<0,E=j?O<I?O-I:O-X:0;return{[w]:P[w]+E,data:{[w]:M,centerOffset:O-M-E,...j&&{alignmentOffset:E}},reset:j}}});const CN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:c,rects:u,initialPlacement:d,platform:f,elements:h}=t,{mainAxis:y=!0,crossAxis:T=!0,fallbackPlacements:P,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:C=!0,...k}=Vl(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const D=Zs(o),H=ts(d),Z=Zs(d)===d,V=await(f.isRTL==null?void 0:f.isRTL(h.floating)),Y=P||(Z||!C?[tu(d)]:fN(d)),W=S!=="none";!P&&W&&Y.push(...yN(d,C,S,V));const z=[d,...Y],Q=await f.detectOverflow(t,k),J=[];let F=((n=c.flip)==null?void 0:n.overflows)||[];if(y&&J.push(Q[D]),T){const O=pN(o,u,V);J.push(Q[O[0]],Q[O[1]])}if(F=[...F,{placement:o,overflows:J}],!J.every(O=>O<=0)){var B,I;const O=(((B=c.flip)==null?void 0:B.index)||0)+1,M=z[O];if(M&&(!(T==="alignment"?H!==ts(M):!1)||F.every(v=>ts(v.placement)===H?v.overflows[0]>0:!0)))return{data:{index:O,overflows:F},reset:{placement:M}};let j=(I=F.filter(E=>E.overflows[0]<=0).sort((E,v)=>E.overflows[1]-v.overflows[1])[0])==null?void 0:I.placement;if(!j)switch(w){case"bestFit":{var X;const E=(X=F.filter(v=>{if(W){const $=ts(v.placement);return $===H||$==="y"}return!0}).map(v=>[v.placement,v.overflows.filter($=>$>0).reduce(($,_)=>$+_,0)]).sort((v,$)=>v[1]-$[1])[0])==null?void 0:X[0];E&&(j=E);break}case"initialPlacement":j=d;break}if(o!==j)return{reset:{placement:j}}}return{}}}};const xN=new Set(["left","top"]);async function SN(e,t){const{placement:r,platform:n,elements:o}=e,c=await(n.isRTL==null?void 0:n.isRTL(o.floating)),u=Zs(r),d=Gl(r),f=ts(r)==="y",h=xN.has(u)?-1:1,y=c&&f?-1:1,T=Vl(t,e);let{mainAxis:P,crossAxis:w,alignmentAxis:S}=typeof T=="number"?{mainAxis:T,crossAxis:0,alignmentAxis:null}:{mainAxis:T.mainAxis||0,crossAxis:T.crossAxis||0,alignmentAxis:T.alignmentAxis};return d&&typeof S=="number"&&(w=d==="end"?S*-1:S),f?{x:w*y,y:P*h}:{x:P*h,y:w*y}}const IN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:c,placement:u,middlewareData:d}=t,f=await SN(t,e);return u===((r=d.offset)==null?void 0:r.placement)&&(n=d.arrow)!=null&&n.alignmentOffset?{}:{x:o+f.x,y:c+f.y,data:{...f,placement:u}}}}},kN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:c}=t,{mainAxis:u=!0,crossAxis:d=!1,limiter:f={fn:D=>{let{x:H,y:Z}=D;return{x:H,y:Z}}},...h}=Vl(e,t),y={x:r,y:n},T=await c.detectOverflow(t,h),P=ts(Zs(o)),w=Wb(P);let S=y[w],C=y[P];if(u){const D=w==="y"?"top":"left",H=w==="y"?"bottom":"right",Z=S+T[D],V=S-T[H];S=Y0(Z,S,V)}if(d){const D=P==="y"?"top":"left",H=P==="y"?"bottom":"right",Z=C+T[D],V=C-T[H];C=Y0(Z,C,V)}const k=f.fn({...t,[w]:S,[P]:C});return{...k,data:{x:k.x-r,y:k.y-n,enabled:{[w]:u,[P]:d}}}}}};function Yu(){return typeof window<"u"}function Aa(e){return qb(e)?(e.nodeName||"").toLowerCase():"#document"}function Kr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lo(e){var t;return(t=(qb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qb(e){return Yu()?e instanceof Node||e instanceof Kr(e).Node:!1}function xn(e){return Yu()?e instanceof Element||e instanceof Kr(e).Element:!1}function co(e){return Yu()?e instanceof HTMLElement||e instanceof Kr(e).HTMLElement:!1}function M2(e){return!Yu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Kr(e).ShadowRoot}function Wl(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=jn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&o!=="inline"&&o!=="contents"}function MN(e){return/^(table|td|th)$/.test(Aa(e))}function Qu(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ON=/transform|translate|scale|rotate|perspective|filter/,RN=/paint|layout|strict|content/,Os=e=>!!e&&e!=="none";let QA;function Op(e){const t=xn(e)?jn(e):e;return Os(t.transform)||Os(t.translate)||Os(t.scale)||Os(t.rotate)||Os(t.perspective)||!Uu()&&(Os(t.backdropFilter)||Os(t.filter))||ON.test(t.willChange||"")||RN.test(t.contain||"")}function DN(e){let t=us(e);for(;co(t)&&!Xi(t);){if(Op(t))return t;if(Qu(t))return null;t=us(t)}return null}function Uu(){return QA==null&&(QA=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),QA}function Xi(e){return/^(html|body|#document)$/.test(Aa(e))}function jn(e){return Kr(e).getComputedStyle(e)}function Ju(e){return xn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function us(e){if(Aa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||M2(e)&&e.host||lo(e);return M2(t)?t.host:t}function Zb(e){const t=us(e);return Xi(t)?e.ownerDocument?e.ownerDocument.body:e.body:co(t)&&Wl(t)?t:Zb(t)}function Ys(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Zb(e),c=o===((n=e.ownerDocument)==null?void 0:n.body),u=Kr(o);if(c){const d=xl(u);return t.concat(u,u.visualViewport||[],Wl(o)?o:[],d&&r?Ys(d):[])}else return t.concat(o,Ys(o,[],r))}function xl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yb(e){const t=jn(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=co(e),c=o?e.offsetWidth:r,u=o?e.offsetHeight:n,d=cs(r)!==c||cs(n)!==u;return d&&(r=c,n=u),{width:r,height:n,$:d}}function Rp(e){return xn(e)?e:e.contextElement}function Li(e){const t=Rp(e);if(!co(t))return Pn(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:c}=Yb(t);let u=(c?cs(r.width):r.width)/n,d=(c?cs(r.height):r.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const EN=Pn(0);function Qb(e){const t=Kr(e);return!Uu()||!t.visualViewport?EN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jN(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Kr(e)?!1:t}function Qs(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),c=Rp(e);let u=Pn(1);t&&(n?xn(n)&&(u=Li(n)):u=Li(e));const d=jN(c,r,n)?Qb(c):Pn(0);let f=(o.left+d.x)/u.x,h=(o.top+d.y)/u.y,y=o.width/u.x,T=o.height/u.y;if(c){const P=Kr(c),w=n&&xn(n)?Kr(n):n;let S=P,C=xl(S);for(;C&&n&&w!==S;){const k=Li(C),D=C.getBoundingClientRect(),H=jn(C),Z=D.left+(C.clientLeft+parseFloat(H.paddingLeft))*k.x,V=D.top+(C.clientTop+parseFloat(H.paddingTop))*k.y;f*=k.x,h*=k.y,y*=k.x,T*=k.y,f+=Z,h+=V,S=Kr(C),C=xl(S)}}return Cl({width:y,height:T,x:f,y:h})}function Xu(e,t){const r=Ju(e).scrollLeft;return t?t.left+r:Qs(lo(e)).left+r}function Ub(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Xu(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function LN(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const c=o==="fixed",u=lo(n),d=t?Qu(t.floating):!1;if(n===u||d&&c)return r;let f={scrollLeft:0,scrollTop:0},h=Pn(1);const y=Pn(0),T=co(n);if((T||!T&&!c)&&((Aa(n)!=="body"||Wl(u))&&(f=Ju(n)),T)){const w=Qs(n);h=Li(n),y.x=w.x+n.clientLeft,y.y=w.y+n.clientTop}const P=u&&!T&&!c?Ub(u,f):Pn(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-f.scrollLeft*h.x+y.x+P.x,y:r.y*h.y-f.scrollTop*h.y+y.y+P.y}}function BN(e){return Array.from(e.getClientRects())}function NN(e){const t=lo(e),r=Ju(e),n=e.ownerDocument.body,o=ns(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),c=ns(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let u=-r.scrollLeft+Xu(e);const d=-r.scrollTop;return jn(n).direction==="rtl"&&(u+=ns(t.clientWidth,n.clientWidth)-o),{width:o,height:c,x:u,y:d}}const O2=25;function zN(e,t){const r=Kr(e),n=lo(e),o=r.visualViewport;let c=n.clientWidth,u=n.clientHeight,d=0,f=0;if(o){c=o.width,u=o.height;const y=Uu();(!y||y&&t==="fixed")&&(d=o.offsetLeft,f=o.offsetTop)}const h=Xu(n);if(h<=0){const y=n.ownerDocument,T=y.body,P=getComputedStyle(T),w=y.compatMode==="CSS1Compat"&&parseFloat(P.marginLeft)+parseFloat(P.marginRight)||0,S=Math.abs(n.clientWidth-T.clientWidth-w);S<=O2&&(c-=S)}else h<=O2&&(c+=h);return{width:c,height:u,x:d,y:f}}function FN(e,t){const r=Qs(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,c=co(e)?Li(e):Pn(1),u=e.clientWidth*c.x,d=e.clientHeight*c.y,f=o*c.x,h=n*c.y;return{width:u,height:d,x:f,y:h}}function R2(e,t,r){let n;if(t==="viewport")n=zN(e,r);else if(t==="document")n=NN(lo(e));else if(xn(t))n=FN(t,r);else{const o=Qb(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Cl(n)}function Jb(e,t){const r=us(e);return r===t||!xn(r)||Xi(r)?!1:jn(r).position==="fixed"||Jb(r,t)}function VN(e,t){const r=t.get(e);if(r)return r;let n=Ys(e,[],!1).filter(d=>xn(d)&&Aa(d)!=="body"),o=null;const c=jn(e).position==="fixed";let u=c?us(e):e;for(;xn(u)&&!Xi(u);){const d=jn(u),f=Op(u);!f&&d.position==="fixed"&&(o=null),(c?!f&&!o:!f&&d.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Wl(u)&&!f&&Jb(e,u))?n=n.filter(y=>y!==u):o=d,u=us(u)}return t.set(e,n),n}function GN(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const u=[...r==="clippingAncestors"?Qu(t)?[]:VN(t,this._c):[].concat(r),n],d=R2(t,u[0],o);let f=d.top,h=d.right,y=d.bottom,T=d.left;for(let P=1;P<u.length;P++){const w=R2(t,u[P],o);f=ns(w.top,f),h=qs(w.right,h),y=qs(w.bottom,y),T=ns(w.left,T)}return{width:h-T,height:y-f,x:T,y:f}}function WN(e){const{width:t,height:r}=Yb(e);return{width:t,height:r}}function HN(e,t,r){const n=co(t),o=lo(t),c=r==="fixed",u=Qs(e,!0,c,t);let d={scrollLeft:0,scrollTop:0};const f=Pn(0);function h(){f.x=Xu(o)}if(n||!n&&!c)if((Aa(t)!=="body"||Wl(o))&&(d=Ju(t)),n){const w=Qs(t,!0,c,t);f.x=w.x+t.clientLeft,f.y=w.y+t.clientTop}else o&&h();c&&!n&&o&&h();const y=o&&!n&&!c?Ub(o,d):Pn(0),T=u.left+d.scrollLeft-f.x-y.x,P=u.top+d.scrollTop-f.y-y.y;return{x:T,y:P,width:u.width,height:u.height}}function UA(e){return jn(e).position==="static"}function D2(e,t){if(!co(e)||jn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return lo(e)===r&&(r=r.ownerDocument.body),r}function Xb(e,t){const r=Kr(e);if(Qu(e))return r;if(!co(e)){let o=us(e);for(;o&&!Xi(o);){if(xn(o)&&!UA(o))return o;o=us(o)}return r}let n=D2(e,t);for(;n&&MN(n)&&UA(n);)n=D2(n,t);return n&&Xi(n)&&UA(n)&&!Op(n)?r:n||DN(e)||r}const qN=async function(e){const t=this.getOffsetParent||Xb,r=this.getDimensions,n=await r(e.floating);return{reference:HN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ZN(e){return jn(e).direction==="rtl"}const YN={convertOffsetParentRelativeRectToViewportRelativeRect:LN,getDocumentElement:lo,getClippingRect:GN,getOffsetParent:Xb,getElementRects:qN,getClientRects:BN,getDimensions:WN,getScale:Li,isElement:xn,isRTL:ZN};function $b(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function QN(e,t){let r=null,n;const o=lo(e);function c(){var d;clearTimeout(n),(d=r)==null||d.disconnect(),r=null}function u(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),c();const h=e.getBoundingClientRect(),{left:y,top:T,width:P,height:w}=h;if(d||t(),!P||!w)return;const S=es(T),C=es(o.clientWidth-(y+P)),k=es(o.clientHeight-(T+w)),D=es(y),Z={rootMargin:-S+"px "+-C+"px "+-k+"px "+-D+"px",threshold:ns(0,qs(1,f))||1};let V=!0;function Y(W){const z=W[0].intersectionRatio;if(z!==f){if(!V)return u();z?u(!1,z):n=setTimeout(()=>{u(!1,1e-7)},1e3)}z===1&&!$b(h,e.getBoundingClientRect())&&u(),V=!1}try{r=new IntersectionObserver(Y,{...Z,root:o.ownerDocument})}catch{r=new IntersectionObserver(Y,Z)}r.observe(e)}return u(!0),c}function UN(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:f=!1}=n,h=Rp(e),y=o||c?[...h?Ys(h):[],...t?Ys(t):[]]:[];y.forEach(D=>{o&&D.addEventListener("scroll",r,{passive:!0}),c&&D.addEventListener("resize",r)});const T=h&&d?QN(h,r):null;let P=-1,w=null;u&&(w=new ResizeObserver(D=>{let[H]=D;H&&H.target===h&&w&&t&&(w.unobserve(t),cancelAnimationFrame(P),P=requestAnimationFrame(()=>{var Z;(Z=w)==null||Z.observe(t)})),r()}),h&&!f&&w.observe(h),t&&w.observe(t));let S,C=f?Qs(e):null;f&&k();function k(){const D=Qs(e);C&&!$b(C,D)&&r(),C=D,S=requestAnimationFrame(k)}return r(),()=>{var D;y.forEach(H=>{o&&H.removeEventListener("scroll",r),c&&H.removeEventListener("resize",r)}),T==null||T(),(D=w)==null||D.disconnect(),w=null,f&&cancelAnimationFrame(S)}}const JN=IN;const XN=kN,$N=CN;const KN=PN;const E2=(e,t,r)=>{const n=new Map,o={platform:YN,...r},c={...o.platform,_c:n};return wN(e,t,{...o,platform:c})};var jc={exports:{}};/*!
419
419
  Copyright (c) 2018 Jed Watson.
420
420
  Licensed under the MIT License (MIT), see
421
421
  http://jedwatson.github.io/classnames
@@ -45198,11 +45198,11 @@ function HB(e) {
45198
45198
  }, [o]), null;
45199
45199
  }
45200
45200
  const GH = ei(HB);
45201
- const qB = import("./maplibre-gl-Cy3mEfSX.mjs").then((e) => e.m), ZB = G.forwardRef(function(t, r) {
45201
+ const qB = import("./maplibre-gl-BXCuAw1-.mjs").then((e) => e.m), ZB = G.forwardRef(function(t, r) {
45202
45202
  return Yb(t, r, qB);
45203
45203
  }), YB = Qb;
45204
45204
  const QB = WB;
45205
- const UB = import("./mapbox-gl-Bhg5l1v9.mjs").then((e) => e.m), WH = G.forwardRef(function(t, r) {
45205
+ const UB = import("./mapbox-gl-BGTxSvUS.mjs").then((e) => e.m), WH = G.forwardRef(function(t, r) {
45206
45206
  return Yb(t, r, UB);
45207
45207
  }), JB = Qb;
45208
45208
  function XB({ locations: e }) {
@@ -45211,8 +45211,8 @@ function XB({ locations: e }) {
45211
45211
  return /* @__PURE__ */ L.jsx(jl, { items: e, itemRenderer: t });
45212
45212
  }
45213
45213
  const HH = ({
45214
- longitude: e,
45215
- latitude: t,
45214
+ lng: e,
45215
+ lat: t,
45216
45216
  zoom: r = 10,
45217
45217
  setCoordinates: n,
45218
45218
  locations: o = [],
@@ -1,4 +1,4 @@
1
- import { g as qT } from "./index-DV65TlJv.mjs";
1
+ import { g as qT } from "./index-DRQns3X4.mjs";
2
2
  function $T(Cu, gm) {
3
3
  for (var Io = 0; Io < gm.length; Io++) {
4
4
  const gs = gm[Io];