wacomm 1.72.0 → 1.72.1
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.
- package/dist/{index-22I4ZY8d.js → index-BvpC4JBR.js} +2 -2
- package/dist/{index-BIQlv0vY.mjs → index-CCWg4D-P.mjs} +13 -7
- package/dist/{mapbox-gl-DYnkRPox.mjs → mapbox-gl-Dj0yjhsn.mjs} +1 -1
- package/dist/{mapbox-gl-CJq2xzz-.js → mapbox-gl-ioK5Ggxk.js} +1 -1
- package/dist/{maplibre-gl-D75XmSH6.mjs → maplibre-gl-BG4yUERR.mjs} +1 -1
- package/dist/{maplibre-gl-8PJ_8HXB.js → maplibre-gl-YML9sdjR.js} +1 -1
- package/dist/pickers/OrderPicker.d.ts +3 -2
- package/dist/wacomm.cjs.js +1 -1
- package/dist/wacomm.es.js +1 -1
- package/package.json +1 -1
|
@@ -358,7 +358,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
358
358
|
* @license MIT
|
|
359
359
|
* This source code is licensed under the MIT license found in the
|
|
360
360
|
* LICENSE file in the root directory of this source tree.
|
|
361
|
-
*/function lO({value:e,setValue:t,disabled:o=!1}){return b.jsx(Ei,{dateAdapter:ol,children:b.jsx(sO,{value:e,minDate:Wr.getToday(),disabled:o,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"}}}}}})})}const Zg=e=>e.format("MMM D"),eu=e=>e.format("hh:mm A"),tu=e=>e.format("MMM D, hh:mm A"),Yg=(e,t)=>e.month()===t.month()&&e.date()===t.date(),Ug=(e,t)=>Yg(e,t)?`${Zg(e)}, ${eu(e)} - ${eu(t)}`:`${tu(e)} - ${tu(t)}`;function cO({startDate:e,endDate:t,className:o=""}){return b.jsx("div",{className:xe("text-gray-600 text-sm",o),children:Ug(e,t)})}function uO({date:e}){return!e||e.length<10?null:b.jsx("div",{className:"text-gray-600 text-sm",children:e.substring(0,10)})}const pO=P.createContext(null);function dO(e,t){const o=Array.isArray(e)?e[0]:e?e.x:0,n=Array.isArray(e)?e[1]:e?e.y:0,r=Array.isArray(t)?t[0]:t?t.x:0,s=Array.isArray(t)?t[1]:t?t.y:0;return o===r&&n===s}function fn(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 o=0;o<e.length;o++)if(!fn(e[o],t[o]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(const r of o)if(!t.hasOwnProperty(r)||!fn(e[r],t[r]))return!1;return!0}return!1}function fO(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function Lm(e,t){if(!e.getProjection)return;const o=e.getProjection(),n=t.getProjection();fn(o,n)||t.setProjection(o)}function zm(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function Bm(e,t){const o=t.viewState||t;let n=!1;if("zoom"in o){const r=e.zoom;e.zoom=o.zoom,n=n||r!==e.zoom}if("bearing"in o){const r=e.bearing;e.bearing=o.bearing,n=n||r!==e.bearing}if("pitch"in o){const r=e.pitch;e.pitch=o.pitch,n=n||r!==e.pitch}if(o.padding&&!e.isPaddingEqual(o.padding)&&(n=!0,e.padding=o.padding),"longitude"in o&&"latitude"in o){const r=e.center;e.center=new r.constructor(o.longitude,o.latitude),n=n||r!==e.center}return n}const mO=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Fm(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 o=e.layers.map(n=>{let r=null;"interactive"in n&&(r=Object.assign({},n),delete r.interactive);const s=t[n.ref];if(s){r=r||Object.assign({},n),delete r.ref;for(const i of mO)i in s&&(r[i]=s[i])}return r||n});return{...e,layers:o}}const Vm={version:8,sources:{},layers:[]},Gm={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"},pc={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"},Wm={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"},hO=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],yO=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class ls{constructor(t,o,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=r=>{const s=this.props[Wm[r.type]];s?s(r):r.type==="error"&&console.error(r.error)},this._onPointerEvent=r=>{(r.type==="mousemove"||r.type==="mouseout")&&this._updateHover(r);const s=this.props[Gm[r.type]];s&&(this.props.interactiveLayerIds&&r.type!=="mouseover"&&r.type!=="mouseout"&&(r.features=this._hoveredFeatures||this._queryRenderedFeatures(r.point)),s(r),delete r.features)},this._onCameraEvent=r=>{if(!this._internalUpdate){const s=this.props[pc[r.type]];s&&s(r)}r.type in this._deferredEvents&&(this._deferredEvents[r.type]=!1)},this._MapClass=t,this.props=o,this._initialize(n)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const o=this.props;this.props=t;const n=this._updateSettings(t,o);n&&this._createShadowTransform(this._map);const r=this._updateSize(t),s=this._updateViewState(t,!0);this._updateStyle(t,o),this._updateStyleComponents(t,o),this._updateHandlers(t,o),(n||r||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,o){const n=ls.savedMaps.pop();if(!n)return null;const r=n.map,s=r.getContainer();for(o.className=s.className;s.childNodes.length>0;)o.appendChild(s.childNodes[0]);r._container=o;const i=r._resizeObserver;i&&(i.disconnect(),i.observe(o)),n.setProps({...t,styleDiffing:!1}),r.resize();const{initialViewState:a}=t;return a&&(a.bounds?r.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):n._updateViewState(a,!1)),r.isStyleLoaded()?r.fire("load"):r.once("styledata",()=>r.fire("load")),r._update(),n}_initialize(t){const{props:o}=this,{mapStyle:n=Vm}=o,r={...o,...o.initialViewState,accessToken:o.mapboxAccessToken||gO()||null,container:t,style:Fm(n)},s=r.initialViewState||r.viewState||r;if(Object.assign(r,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),o.gl){const u=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=u,o.gl)}const i=new this._MapClass(r);s.padding&&i.setPadding(s.padding),o.cursor&&(i.getCanvas().style.cursor=o.cursor),this._createShadowTransform(i);const a=i._render;i._render=u=>{this._inRender=!0,a.call(i,u),this._inRender=!1};const l=i._renderTaskQueue.run;i._renderTaskQueue.run=u=>{l.call(i._renderTaskQueue,u),this._onBeforeRepaint()},i.on("render",()=>this._onAfterRepaint());const c=i.fire;i.fire=this._fireEvent.bind(this,c),i.on("resize",()=>{this._renderTransform.resize(i.transform.width,i.transform.height)}),i.on("styledata",()=>{this._updateStyleComponents(this.props,{}),Lm(i.transform,this._renderTransform)}),i.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const u in Gm)i.on(u,this._onPointerEvent);for(const u in pc)i.on(u,this._onCameraEvent);for(const u in Wm)i.on(u,this._onEvent);this._map=i}recycle(){const o=this.map.getContainer().querySelector("[mapboxgl-children]");o==null||o.remove(),ls.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 o=fO(t.transform);t.painter.transform=o,this._renderTransform=o}_updateSize(t){const{viewState:o}=t;if(o){const n=this._map;if(o.width!==n.transform.width||o.height!==n.transform.height)return n.resize(),!0}return!1}_updateViewState(t,o){if(this._internalUpdate)return!1;const n=this._map,r=this._renderTransform,{zoom:s,pitch:i,bearing:a}=r,l=n.isMoving();l&&(r.cameraElevationReference="sea");const c=Bm(r,{...zm(n.transform),...t});if(l&&(r.cameraElevationReference="ground"),c&&o){const u=this._deferredEvents;u.move=!0,u.zoom||(u.zoom=s!==r.zoom),u.rotate||(u.rotate=a!==r.bearing),u.pitch||(u.pitch=i!==r.pitch)}return l||Bm(n.transform,t),c}_updateSettings(t,o){const n=this._map;let r=!1;for(const s of hO)if(s in t&&!fn(t[s],o[s])){r=!0;const i=n[`set${s[0].toUpperCase()}${s.slice(1)}`];i==null||i.call(n,t[s])}return r}_updateStyle(t,o){if(t.cursor!==o.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==o.mapStyle){const{mapStyle:n=Vm,styleDiffing:r=!0}=t,s={diff:r};return"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(Fm(n),s),!0}return!1}_updateStyleComponents(t,o){const n=this._map;let r=!1;return n.isStyleLoaded()&&("light"in t&&n.setLight&&!fn(t.light,o.light)&&(r=!0,n.setLight(t.light)),"fog"in t&&n.setFog&&!fn(t.fog,o.fog)&&(r=!0,n.setFog(t.fog)),"terrain"in t&&n.setTerrain&&!fn(t.terrain,o.terrain)&&(!t.terrain||n.getSource(t.terrain.source))&&(r=!0,n.setTerrain(t.terrain))),r}_updateHandlers(t,o){var n,r;const s=this._map;let i=!1;for(const a of yO){const l=(n=t[a])!==null&&n!==void 0?n:!0,c=(r=o[a])!==null&&r!==void 0?r:!0;fn(l,c)||(i=!0,l?s[a].enable(l):s[a].disable())}return i}_queryRenderedFeatures(t){const o=this._map,n=o.transform,{interactiveLayerIds:r=[]}=this.props;try{return o.transform=this._renderTransform,o.queryRenderedFeatures(t,{layers:r.filter(o.getLayer.bind(o))})}catch{return[]}finally{o.transform=n}}_updateHover(t){var o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const s=t.type,i=((o=this._hoveredFeatures)===null||o===void 0?void 0:o.length)>0,a=this._queryRenderedFeatures(t.point),l=a.length>0;!l&&i&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=a,l&&!i&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=s}else this._hoveredFeatures=null}_fireEvent(t,o,n){const r=this._map,s=r.transform,i=typeof o=="string"?o:o.type;return i==="move"&&this._updateViewState(this.props,!1),i in pc&&(typeof o=="object"&&(o.viewState=zm(s)),this._map.isMoving())?(r.transform=this._renderTransform,t.call(r,o,n),r.transform=s,r):(t.call(r,o,n),r)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const n in this._deferredEvents)this._deferredEvents[n]&&t.fire(n);this._internalUpdate=!1;const o=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{Lm(this._renderTransform,o),t.transform=o}}}ls.savedMaps=[];function gO(){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 bO=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function vO(e){if(!e)return null;const t=e.map,o={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 r=t.transform;t.transform=e.transform;const s=t.project(n);return t.transform=r,s},unproject:n=>{const r=t.transform;t.transform=e.transform;const s=t.unproject(n);return t.transform=r,s},queryTerrainElevation:(n,r)=>{const s=t.transform;t.transform=e.transform;const i=t.queryTerrainElevation(n,r);return t.transform=s,i},queryRenderedFeatures:(n,r)=>{const s=t.transform;t.transform=e.transform;const i=t.queryRenderedFeatures(n,r);return t.transform=s,i}};for(const n of TO(t))!(n in o)&&!bO.includes(n)&&(o[n]=t[n].bind(t));return o}function TO(e){const t=new Set;let o=e;for(;o;){for(const n of Object.getOwnPropertyNames(o))n[0]!=="_"&&typeof e[n]=="function"&&n!=="fire"&&n!=="setEventedParent"&&t.add(n);o=Object.getPrototypeOf(o)}return Array.from(t)}const PO=typeof document<"u"?W.useLayoutEffect:W.useEffect,xO=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function CO(e,t){for(const n of xO)n in t&&(e[n]=t[n]);const{RTLTextPlugin:o="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;o&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(o,n=>{n&&console.error(n)},!0)}const Nl=P.createContext(null);function Jg(e,t,o){const n=W.useContext(pO),[r,s]=W.useState(null),i=W.useRef(),{current:a}=W.useRef({mapLib:null,map:null});W.useEffect(()=>{const u=e.mapLib;let p=!0,f;return Promise.resolve(u||o).then(d=>{if(!p)return;if(!d)throw new Error("Invalid mapLib");const m="Map"in d?d:d.default;if(!m.Map)throw new Error("Invalid mapLib");if(CO(m,e),!m.supported||m.supported(e))e.reuseMaps&&(f=ls.reuse(e,i.current)),f||(f=new ls(m.Map,e,i.current)),a.map=vO(f),a.mapLib=m,s(f),n==null||n.onMapMount(a.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(d=>{const{onError:m}=e;m?m({type:"error",target:null,originalEvent:null,error:d}):console.error(d)}),()=>{p=!1,f&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?f.recycle():f.destroy())}},[]),PO(()=>{r&&r.setProps(e)}),W.useImperativeHandle(t,()=>a.map,[r]);const l=W.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return P.createElement("div",{id:e.id,ref:i,style:l},r&&P.createElement(Nl.Provider,{value:a},P.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const wO=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Tr(e,t){if(!e||!t)return;const o=e.style;for(const n in t){const r=t[n];Number.isFinite(r)&&!wO.test(n)?o[n]=`${r}px`:o[n]=r}}function IO(e,t){const{map:o,mapLib:n}=W.useContext(Nl),r=W.useRef({props:e});r.current.props=e;const s=W.useMemo(()=>{let h=!1;P.Children.forEach(e.children,w=>{w&&(h=!0)});const y={...e,element:h?document.createElement("div"):null},g=new n.Marker(y);return g.setLngLat([e.longitude,e.latitude]),g.getElement().addEventListener("click",w=>{var I,x;(x=(I=r.current.props).onClick)===null||x===void 0||x.call(I,{type:"click",target:g,originalEvent:w})}),g.on("dragstart",w=>{var I,x;const A=w;A.lngLat=s.getLngLat(),(x=(I=r.current.props).onDragStart)===null||x===void 0||x.call(I,A)}),g.on("drag",w=>{var I,x;const A=w;A.lngLat=s.getLngLat(),(x=(I=r.current.props).onDrag)===null||x===void 0||x.call(I,A)}),g.on("dragend",w=>{var I,x;const A=w;A.lngLat=s.getLngLat(),(x=(I=r.current.props).onDragEnd)===null||x===void 0||x.call(I,A)}),g},[]);W.useEffect(()=>(s.addTo(o.getMap()),()=>{s.remove()}),[]);const{longitude:i,latitude:a,offset:l,style:c,draggable:u=!1,popup:p=null,rotation:f=0,rotationAlignment:d="auto",pitchAlignment:m="auto"}=e;return W.useEffect(()=>{Tr(s.getElement(),c)},[c]),W.useImperativeHandle(t,()=>s,[]),(s.getLngLat().lng!==i||s.getLngLat().lat!==a)&&s.setLngLat([i,a]),l&&!dO(s.getOffset(),l)&&s.setOffset(l),s.isDraggable()!==u&&s.setDraggable(u),s.getRotation()!==f&&s.setRotation(f),s.getRotationAlignment()!==d&&s.setRotationAlignment(d),s.getPitchAlignment()!==m&&s.setPitchAlignment(m),s.getPopup()!==p&&s.setPopup(p),en.createPortal(e.children,s.getElement())}const Xg=W.memo(W.forwardRef(IO));function qm(e){return new Set(e?e.trim().split(/\s+/):[])}function SO(e,t){const{map:o,mapLib:n}=W.useContext(Nl),r=W.useMemo(()=>document.createElement("div"),[]),s=W.useRef({props:e});s.current.props=e;const i=W.useMemo(()=>{const a={...e},l=new n.Popup(a);return l.setLngLat([e.longitude,e.latitude]),l.once("open",c=>{var u,p;(p=(u=s.current.props).onOpen)===null||p===void 0||p.call(u,c)}),l},[]);if(W.useEffect(()=>{const a=l=>{var c,u;(u=(c=s.current.props).onClose)===null||u===void 0||u.call(c,l)};return i.on("close",a),i.setDOMContent(r).addTo(o.getMap()),()=>{i.off("close",a),i.isOpen()&&i.remove()}},[]),W.useEffect(()=>{Tr(i.getElement(),e.style)},[e.style]),W.useImperativeHandle(t,()=>i,[]),i.isOpen()&&((i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!fn(i.options.offset,e.offset)&&i.setOffset(e.offset),(i.options.anchor!==e.anchor||i.options.maxWidth!==e.maxWidth)&&(i.options.anchor=e.anchor,i.setMaxWidth(e.maxWidth)),i.options.className!==e.className)){const a=qm(i.options.className),l=qm(e.className);for(const c of a)l.has(c)||i.removeClassName(c);for(const c of l)a.has(c)||i.addClassName(c);i.options.className=e.className}return en.createPortal(e.children,r)}const DL=W.memo(W.forwardRef(SO));function Wi(e,t,o,n){const r=W.useContext(Nl),s=W.useMemo(()=>e(r),[]);return W.useEffect(()=>{const i=n||o||t,a=typeof t=="function"&&typeof o=="function"?t:null,l=typeof o=="function"?o:typeof t=="function"?t:null,{map:c}=r;return c.hasControl(s)||(c.addControl(s,i==null?void 0:i.position),a&&a(r)),()=>{l&&l(r),c.hasControl(s)&&c.removeControl(s)}},[]),s}function AO(e){const t=Wi(({mapLib:o})=>new o.AttributionControl(e),{position:e.position});return W.useEffect(()=>{Tr(t._container,e.style)},[e.style]),null}const EL=W.memo(AO);function MO(e){const t=Wi(({mapLib:o})=>new o.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return W.useEffect(()=>{Tr(t._controlContainer,e.style)},[e.style]),null}const NL=W.memo(MO);function kO(e,t){const o=W.useRef({props:e}),n=Wi(({mapLib:r})=>{const s=new r.GeolocateControl(e),i=s._setupUI;return s._setupUI=a=>{s._container.hasChildNodes()||i(a)},s.on("geolocate",a=>{var l,c;(c=(l=o.current.props).onGeolocate)===null||c===void 0||c.call(l,a)}),s.on("error",a=>{var l,c;(c=(l=o.current.props).onError)===null||c===void 0||c.call(l,a)}),s.on("outofmaxbounds",a=>{var l,c;(c=(l=o.current.props).onOutOfMaxBounds)===null||c===void 0||c.call(l,a)}),s.on("trackuserlocationstart",a=>{var l,c;(c=(l=o.current.props).onTrackUserLocationStart)===null||c===void 0||c.call(l,a)}),s.on("trackuserlocationend",a=>{var l,c;(c=(l=o.current.props).onTrackUserLocationEnd)===null||c===void 0||c.call(l,a)}),s},{position:e.position});return o.current.props=e,W.useImperativeHandle(t,()=>n,[]),W.useEffect(()=>{Tr(n._container,e.style)},[e.style]),null}const jL=W.memo(W.forwardRef(kO));function OO(e){const t=Wi(({mapLib:o})=>new o.NavigationControl(e),{position:e.position});return W.useEffect(()=>{Tr(t._container,e.style)},[e.style]),null}const RO=W.memo(OO);function DO(e){const t=Wi(({mapLib:s})=>new s.ScaleControl(e),{position:e.position}),o=W.useRef(e),n=o.current;o.current=e;const{style:r}=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),W.useEffect(()=>{Tr(t._container,r)},[r]),null}const LL=W.memo(DO);const EO=Promise.resolve().then(()=>require("./maplibre-gl-8PJ_8HXB.js")).then(e=>e.maplibreGl),NO=P.forwardRef(function(t,o){return Jg(t,o,EO)}),jO=Xg;const LO=RO;const zO=Promise.resolve().then(()=>require("./mapbox-gl-CJq2xzz-.js")).then(e=>e.mapboxGl),zL=P.forwardRef(function(t,o){return Jg(t,o,zO)}),BO=Xg;function FO({locations:e}){if(G0.IsZeroArray(e))return null;const t=({id:o,longitude:n,latitude:r,icon:s})=>b.jsx("li",{children:b.jsx(BO,{longitude:n,latitude:r,children:s})},o);return b.jsx(hs,{items:e,itemRenderer:t})}const VO=({longitude:e,latitude:t,zoom:o=10,setCoordinates:n,locations:r=[],token:s,navigationControl:i})=>{const a=W.useRef(null),[l,c]=W.useState({longitude:e,latitude:t,zoom:o});return W.useEffect(()=>{a.current&&a.current.flyTo({center:[e,t],zoom:o,duration:3e3,essential:!0})},[t,e,o]),b.jsxs(NO,{ref:a,...l,mapStyle:`https://tiles.locationiq.com/v3/streets/vector.json?key=${s}`,style:{width:"100%",height:"100%"},onMove:u=>c(u.viewState),onClick:u=>{const{lng:p,lat:f}=u.lngLat;n&&n({lat:f,lng:p})},children:[b.jsx(jO,{longitude:e,latitude:t,children:"📌"}),b.jsx(FO,{locations:r}),b.jsx(LO,{position:i.position})]})};var $g=(e=>(e.TR="top-right",e))($g||{});const ur=Math.min,En=Math.max,Fn=Math.round,On=Math.floor,io=e=>({x:e,y:e}),GO={left:"right",right:"left",bottom:"top",top:"bottom"};function ou(e,t,o){return En(e,ur(t,o))}function qi(e,t){return typeof e=="function"?e(t):e}function pr(e){return e.split("-")[0]}function Hi(e){return e.split("-")[1]}function Qg(e){return e==="x"?"y":"x"}function Lp(e){return e==="y"?"height":"width"}function Rn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function zp(e){return Qg(Rn(e))}function WO(e,t,o){o===void 0&&(o=!1);const n=Hi(e),r=zp(e),s=Lp(r);let i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Za(i)),[i,Za(i)]}function qO(e){const t=Za(e);return[nu(e),t,nu(t)]}function nu(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Hm=["left","right"],Zm=["right","left"],HO=["top","bottom"],ZO=["bottom","top"];function YO(e,t,o){switch(e){case"top":case"bottom":return o?t?Zm:Hm:t?Hm:Zm;case"left":case"right":return t?HO:ZO;default:return[]}}function UO(e,t,o,n){const r=Hi(e);let s=YO(pr(e),o==="start",n);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(nu)))),s}function Za(e){const t=pr(e);return GO[t]+e.slice(t.length)}function JO(e){return{top:0,right:0,bottom:0,left:0,...e}}function Kg(e){return typeof e!="number"?JO(e):{top:e,right:e,bottom:e,left:e}}function Ai(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function Ym(e,t,o){let{reference:n,floating:r}=e;const s=Rn(t),i=zp(t),a=Lp(i),l=pr(t),c=s==="y",u=n.x+n.width/2-r.width/2,p=n.y+n.height/2-r.height/2,f=n[a]/2-r[a]/2;let d;switch(l){case"top":d={x:u,y:n.y-r.height};break;case"bottom":d={x:u,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:p};break;case"left":d={x:n.x-r.width,y:p};break;default:d={x:n.x,y:n.y}}switch(Hi(t)){case"start":d[i]-=f*(o&&c?-1:1);break;case"end":d[i]+=f*(o&&c?-1:1);break}return d}async function XO(e,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:d=0}=qi(t,e),m=Kg(d),y=a[f?p==="floating"?"reference":"floating":p],g=Ai(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(y)))==null||o?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),w=p==="floating"?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(I))?await(s.getScale==null?void 0:s.getScale(I))||{x:1,y:1}:{x:1,y:1},A=Ai(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:I,strategy:l}):w);return{top:(g.top-A.top+m.top)/x.y,bottom:(A.bottom-g.bottom+m.bottom)/x.y,left:(g.left-A.left+m.left)/x.x,right:(A.right-g.right+m.right)/x.x}}const $O=50,QO=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,a=i.detectOverflow?i:{...i,detectOverflow:XO},l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:p}=Ym(c,n,l),f=n,d=0;const m={};for(let h=0;h<s.length;h++){const y=s[h];if(!y)continue;const{name:g,fn:w}=y,{x:I,y:x,data:A,reset:R}=await w({x:u,y:p,initialPlacement:n,placement:f,strategy:r,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=I??u,p=x??p,m[g]={...m[g],...A},R&&d<$O&&(d++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(c=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:u,y:p}=Ym(c,f,l)),h=-1)}return{x:u,y:p,placement:f,strategy:r,middlewareData:m}},KO=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=qi(e,t)||{};if(c==null)return{};const p=Kg(u),f={x:o,y:n},d=zp(r),m=Lp(d),h=await i.getDimensions(c),y=d==="y",g=y?"top":"left",w=y?"bottom":"right",I=y?"clientHeight":"clientWidth",x=s.reference[m]+s.reference[d]-f[d]-s.floating[m],A=f[d]-s.reference[d],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let E=R?R[I]:0;(!E||!await(i.isElement==null?void 0:i.isElement(R)))&&(E=a.floating[I]||s.floating[m]);const D=x/2-A/2,B=E/2-h[m]/2-1,F=ur(p[g],B),N=ur(p[w],B),v=F,j=E-h[m]-N,O=E/2-h[m]/2+D,C=ou(v,O,j),k=!l.arrow&&Hi(r)!=null&&O!==C&&s.reference[m]/2-(O<v?F:N)-h[m]/2<0,S=k?O<v?O-v:O-j:0;return{[d]:f[d]+S,data:{[d]:C,centerOffset:O-C-S,...k&&{alignmentOffset:S}},reset:k}}});const _O=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...y}=qi(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const g=pr(r),w=Rn(a),I=pr(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=f||(I||!h?[Za(a)]:qO(a)),R=m!=="none";!f&&R&&A.push(...UO(a,h,m,x));const E=[a,...A],D=await l.detectOverflow(t,y),B=[];let F=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&B.push(D[g]),p){const O=WO(r,i,x);B.push(D[O[0]],D[O[1]])}if(F=[...F,{placement:r,overflows:B}],!B.every(O=>O<=0)){var N,v;const O=(((N=s.flip)==null?void 0:N.index)||0)+1,C=E[O];if(C&&(!(p==="alignment"?w!==Rn(C):!1)||F.every(M=>Rn(M.placement)===w?M.overflows[0]>0:!0)))return{data:{index:O,overflows:F},reset:{placement:C}};let k=(v=F.filter(S=>S.overflows[0]<=0).sort((S,M)=>S.overflows[1]-M.overflows[1])[0])==null?void 0:v.placement;if(!k)switch(d){case"bestFit":{var j;const S=(j=F.filter(M=>{if(R){const z=Rn(M.placement);return z===w||z==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(z=>z>0).reduce((z,G)=>z+G,0)]).sort((M,z)=>M[1]-z[1])[0])==null?void 0:j[0];S&&(k=S);break}case"initialPlacement":k=a;break}if(r!==k)return{reset:{placement:k}}}return{}}}};const eR=new Set(["left","top"]);async function tR(e,t){const{placement:o,platform:n,elements:r}=e,s=await(n.isRTL==null?void 0:n.isRTL(r.floating)),i=pr(o),a=Hi(o),l=Rn(o)==="y",c=eR.has(i)?-1:1,u=s&&l?-1:1,p=qi(t,e);let{mainAxis:f,crossAxis:d,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof m=="number"&&(d=a==="end"?m*-1:m),l?{x:d*u,y:f*c}:{x:f*c,y:d*u}}const oR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await tR(t,e);return i===((o=a.offset)==null?void 0:o.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},nR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:g=>{let{x:w,y:I}=g;return{x:w,y:I}}},...c}=qi(e,t),u={x:o,y:n},p=await s.detectOverflow(t,c),f=Rn(pr(r)),d=Qg(f);let m=u[d],h=u[f];if(i){const g=d==="y"?"top":"left",w=d==="y"?"bottom":"right",I=m+p[g],x=m-p[w];m=ou(I,m,x)}if(a){const g=f==="y"?"top":"left",w=f==="y"?"bottom":"right",I=h+p[g],x=h-p[w];h=ou(I,h,x)}const y=l.fn({...t,[d]:m,[f]:h});return{...y,data:{x:y.x-o,y:y.y-n,enabled:{[d]:i,[f]:a}}}}}};function jl(){return typeof window<"u"}function Cs(e){return _g(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ho(e){var t;return(t=(_g(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _g(e){return jl()?e instanceof Node||e instanceof qt(e).Node:!1}function co(e){return jl()?e instanceof Element||e instanceof qt(e).Element:!1}function Zo(e){return jl()?e instanceof HTMLElement||e instanceof qt(e).HTMLElement:!1}function Um(e){return!jl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot}function Zi(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=bo(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&r!=="inline"&&r!=="contents"}function rR(e){return/^(table|td|th)$/.test(Cs(e))}function Ll(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const sR=/transform|translate|scale|rotate|perspective|filter/,iR=/paint|layout|strict|content/,Kn=e=>!!e&&e!=="none";let dc;function Bp(e){const t=co(e)?bo(e):e;return Kn(t.transform)||Kn(t.translate)||Kn(t.scale)||Kn(t.rotate)||Kn(t.perspective)||!zl()&&(Kn(t.backdropFilter)||Kn(t.filter))||sR.test(t.willChange||"")||iR.test(t.contain||"")}function aR(e){let t=Vn(e);for(;Zo(t)&&!cs(t);){if(Bp(t))return t;if(Ll(t))return null;t=Vn(t)}return null}function zl(){return dc==null&&(dc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),dc}function cs(e){return/^(html|body|#document)$/.test(Cs(e))}function bo(e){return qt(e).getComputedStyle(e)}function Bl(e){return co(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vn(e){if(Cs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Um(e)&&e.host||Ho(e);return Um(t)?t.host:t}function e1(e){const t=Vn(e);return cs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zo(t)&&Zi(t)?t:e1(t)}function dr(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=e1(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=qt(r);if(s){const a=Mi(i);return t.concat(i,i.visualViewport||[],Zi(r)?r:[],a&&o?dr(a):[])}else return t.concat(r,dr(r,[],o))}function Mi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function t1(e){const t=bo(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=Zo(e),s=r?e.offsetWidth:o,i=r?e.offsetHeight:n,a=Fn(o)!==s||Fn(n)!==i;return a&&(o=s,n=i),{width:o,height:n,$:a}}function Fp(e){return co(e)?e:e.contextElement}function Jr(e){const t=Fp(e);if(!Zo(t))return io(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:s}=t1(t);let i=(s?Fn(o.width):o.width)/n,a=(s?Fn(o.height):o.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const lR=io(0);function o1(e){const t=qt(e);return!zl()||!t.visualViewport?lR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cR(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==qt(e)?!1:t}function fr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),s=Fp(e);let i=io(1);t&&(n?co(n)&&(i=Jr(n)):i=Jr(e));const a=cR(s,o,n)?o1(s):io(0);let l=(r.left+a.x)/i.x,c=(r.top+a.y)/i.y,u=r.width/i.x,p=r.height/i.y;if(s){const f=qt(s),d=n&&co(n)?qt(n):n;let m=f,h=Mi(m);for(;h&&n&&d!==m;){const y=Jr(h),g=h.getBoundingClientRect(),w=bo(h),I=g.left+(h.clientLeft+parseFloat(w.paddingLeft))*y.x,x=g.top+(h.clientTop+parseFloat(w.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,p*=y.y,l+=I,c+=x,m=qt(h),h=Mi(m)}}return Ai({width:u,height:p,x:l,y:c})}function Fl(e,t){const o=Bl(e).scrollLeft;return t?t.left+o:fr(Ho(e)).left+o}function n1(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Fl(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function uR(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const s=r==="fixed",i=Ho(n),a=t?Ll(t.floating):!1;if(n===i||a&&s)return o;let l={scrollLeft:0,scrollTop:0},c=io(1);const u=io(0),p=Zo(n);if((p||!p&&!s)&&((Cs(n)!=="body"||Zi(i))&&(l=Bl(n)),p)){const d=fr(n);c=Jr(n),u.x=d.x+n.clientLeft,u.y=d.y+n.clientTop}const f=i&&!p&&!s?n1(i,l):io(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:o.y*c.y-l.scrollTop*c.y+u.y+f.y}}function pR(e){return Array.from(e.getClientRects())}function dR(e){const t=Ho(e),o=Bl(e),n=e.ownerDocument.body,r=En(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=En(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+Fl(e);const a=-o.scrollTop;return bo(n).direction==="rtl"&&(i+=En(t.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:a}}const Jm=25;function fR(e,t){const o=qt(e),n=Ho(e),r=o.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,l=0;if(r){s=r.width,i=r.height;const u=zl();(!u||u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const c=Fl(n);if(c<=0){const u=n.ownerDocument,p=u.body,f=getComputedStyle(p),d=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(n.clientWidth-p.clientWidth-d);m<=Jm&&(s-=m)}else c<=Jm&&(s+=c);return{width:s,height:i,x:a,y:l}}function mR(e,t){const o=fr(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,s=Zo(e)?Jr(e):io(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,c=n*s.y;return{width:i,height:a,x:l,y:c}}function Xm(e,t,o){let n;if(t==="viewport")n=fR(e,o);else if(t==="document")n=dR(Ho(e));else if(co(t))n=mR(t,o);else{const r=o1(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Ai(n)}function r1(e,t){const o=Vn(e);return o===t||!co(o)||cs(o)?!1:bo(o).position==="fixed"||r1(o,t)}function hR(e,t){const o=t.get(e);if(o)return o;let n=dr(e,[],!1).filter(a=>co(a)&&Cs(a)!=="body"),r=null;const s=bo(e).position==="fixed";let i=s?Vn(e):e;for(;co(i)&&!cs(i);){const a=bo(i),l=Bp(i);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Zi(i)&&!l&&r1(e,i))?n=n.filter(u=>u!==i):r=a,i=Vn(i)}return t.set(e,n),n}function yR(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const i=[...o==="clippingAncestors"?Ll(t)?[]:hR(t,this._c):[].concat(o),n],a=Xm(t,i[0],r);let l=a.top,c=a.right,u=a.bottom,p=a.left;for(let f=1;f<i.length;f++){const d=Xm(t,i[f],r);l=En(d.top,l),c=ur(d.right,c),u=ur(d.bottom,u),p=En(d.left,p)}return{width:c-p,height:u-l,x:p,y:l}}function gR(e){const{width:t,height:o}=t1(e);return{width:t,height:o}}function bR(e,t,o){const n=Zo(t),r=Ho(t),s=o==="fixed",i=fr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=io(0);function c(){l.x=Fl(r)}if(n||!n&&!s)if((Cs(t)!=="body"||Zi(r))&&(a=Bl(t)),n){const d=fr(t,!0,s,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else r&&c();s&&!n&&r&&c();const u=r&&!n&&!s?n1(r,a):io(0),p=i.left+a.scrollLeft-l.x-u.x,f=i.top+a.scrollTop-l.y-u.y;return{x:p,y:f,width:i.width,height:i.height}}function fc(e){return bo(e).position==="static"}function $m(e,t){if(!Zo(e)||bo(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Ho(e)===o&&(o=o.ownerDocument.body),o}function s1(e,t){const o=qt(e);if(Ll(e))return o;if(!Zo(e)){let r=Vn(e);for(;r&&!cs(r);){if(co(r)&&!fc(r))return r;r=Vn(r)}return o}let n=$m(e,t);for(;n&&rR(n)&&fc(n);)n=$m(n,t);return n&&cs(n)&&fc(n)&&!Bp(n)?o:n||aR(e)||o}const vR=async function(e){const t=this.getOffsetParent||s1,o=this.getDimensions,n=await o(e.floating);return{reference:bR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function TR(e){return bo(e).direction==="rtl"}const PR={convertOffsetParentRelativeRectToViewportRelativeRect:uR,getDocumentElement:Ho,getClippingRect:yR,getOffsetParent:s1,getElementRects:vR,getClientRects:pR,getDimensions:gR,getScale:Jr,isElement:co,isRTL:TR};function i1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xR(e,t){let o=null,n;const r=Ho(e);function s(){var a;clearTimeout(n),(a=o)==null||a.disconnect(),o=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:p,width:f,height:d}=c;if(a||t(),!f||!d)return;const m=On(p),h=On(r.clientWidth-(u+f)),y=On(r.clientHeight-(p+d)),g=On(u),I={rootMargin:-m+"px "+-h+"px "+-y+"px "+-g+"px",threshold:En(0,ur(1,l))||1};let x=!0;function A(R){const E=R[0].intersectionRatio;if(E!==l){if(!x)return i();E?i(!1,E):n=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!i1(c,e.getBoundingClientRect())&&i(),x=!1}try{o=new IntersectionObserver(A,{...I,root:r.ownerDocument})}catch{o=new IntersectionObserver(A,I)}o.observe(e)}return i(!0),s}function CR(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Fp(e),u=r||s?[...c?dr(c):[],...t?dr(t):[]]:[];u.forEach(g=>{r&&g.addEventListener("scroll",o,{passive:!0}),s&&g.addEventListener("resize",o)});const p=c&&a?xR(c,o):null;let f=-1,d=null;i&&(d=new ResizeObserver(g=>{let[w]=g;w&&w.target===c&&d&&t&&(d.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var I;(I=d)==null||I.observe(t)})),o()}),c&&!l&&d.observe(c),t&&d.observe(t));let m,h=l?fr(e):null;l&&y();function y(){const g=fr(e);h&&!i1(h,g)&&o(),h=g,m=requestAnimationFrame(y)}return o(),()=>{var g;u.forEach(w=>{r&&w.removeEventListener("scroll",o),s&&w.removeEventListener("resize",o)}),p==null||p(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(m)}}const wR=oR;const IR=nR,SR=_O;const AR=KO;const Qm=(e,t,o)=>{const n=new Map,r={platform:PR,...o},s={...r.platform,_c:n};return QO(e,t,{...r,platform:s})};var Ia={exports:{}};/*!
|
|
361
|
+
*/function lO({value:e,setValue:t,disabled:o=!1}){return b.jsx(Ei,{dateAdapter:ol,children:b.jsx(sO,{value:e,minDate:Wr.getToday(),disabled:o,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"}}}}}})})}const Zg=e=>e.format("MMM D"),eu=e=>e.format("hh:mm A"),tu=e=>e.format("MMM D, hh:mm A"),Yg=(e,t)=>e.month()===t.month()&&e.date()===t.date(),Ug=(e,t)=>Yg(e,t)?`${Zg(e)}, ${eu(e)} - ${eu(t)}`:`${tu(e)} - ${tu(t)}`;function cO({startDate:e,endDate:t,className:o=""}){return b.jsx("div",{className:xe("text-gray-600 text-sm",o),children:Ug(e,t)})}function uO({date:e}){return!e||e.length<10?null:b.jsx("div",{className:"text-gray-600 text-sm",children:e.substring(0,10)})}const pO=P.createContext(null);function dO(e,t){const o=Array.isArray(e)?e[0]:e?e.x:0,n=Array.isArray(e)?e[1]:e?e.y:0,r=Array.isArray(t)?t[0]:t?t.x:0,s=Array.isArray(t)?t[1]:t?t.y:0;return o===r&&n===s}function fn(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 o=0;o<e.length;o++)if(!fn(e[o],t[o]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(const r of o)if(!t.hasOwnProperty(r)||!fn(e[r],t[r]))return!1;return!0}return!1}function fO(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function Lm(e,t){if(!e.getProjection)return;const o=e.getProjection(),n=t.getProjection();fn(o,n)||t.setProjection(o)}function zm(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function Bm(e,t){const o=t.viewState||t;let n=!1;if("zoom"in o){const r=e.zoom;e.zoom=o.zoom,n=n||r!==e.zoom}if("bearing"in o){const r=e.bearing;e.bearing=o.bearing,n=n||r!==e.bearing}if("pitch"in o){const r=e.pitch;e.pitch=o.pitch,n=n||r!==e.pitch}if(o.padding&&!e.isPaddingEqual(o.padding)&&(n=!0,e.padding=o.padding),"longitude"in o&&"latitude"in o){const r=e.center;e.center=new r.constructor(o.longitude,o.latitude),n=n||r!==e.center}return n}const mO=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Fm(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 o=e.layers.map(n=>{let r=null;"interactive"in n&&(r=Object.assign({},n),delete r.interactive);const s=t[n.ref];if(s){r=r||Object.assign({},n),delete r.ref;for(const i of mO)i in s&&(r[i]=s[i])}return r||n});return{...e,layers:o}}const Vm={version:8,sources:{},layers:[]},Gm={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"},pc={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"},Wm={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"},hO=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],yO=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class ls{constructor(t,o,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=r=>{const s=this.props[Wm[r.type]];s?s(r):r.type==="error"&&console.error(r.error)},this._onPointerEvent=r=>{(r.type==="mousemove"||r.type==="mouseout")&&this._updateHover(r);const s=this.props[Gm[r.type]];s&&(this.props.interactiveLayerIds&&r.type!=="mouseover"&&r.type!=="mouseout"&&(r.features=this._hoveredFeatures||this._queryRenderedFeatures(r.point)),s(r),delete r.features)},this._onCameraEvent=r=>{if(!this._internalUpdate){const s=this.props[pc[r.type]];s&&s(r)}r.type in this._deferredEvents&&(this._deferredEvents[r.type]=!1)},this._MapClass=t,this.props=o,this._initialize(n)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const o=this.props;this.props=t;const n=this._updateSettings(t,o);n&&this._createShadowTransform(this._map);const r=this._updateSize(t),s=this._updateViewState(t,!0);this._updateStyle(t,o),this._updateStyleComponents(t,o),this._updateHandlers(t,o),(n||r||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,o){const n=ls.savedMaps.pop();if(!n)return null;const r=n.map,s=r.getContainer();for(o.className=s.className;s.childNodes.length>0;)o.appendChild(s.childNodes[0]);r._container=o;const i=r._resizeObserver;i&&(i.disconnect(),i.observe(o)),n.setProps({...t,styleDiffing:!1}),r.resize();const{initialViewState:a}=t;return a&&(a.bounds?r.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):n._updateViewState(a,!1)),r.isStyleLoaded()?r.fire("load"):r.once("styledata",()=>r.fire("load")),r._update(),n}_initialize(t){const{props:o}=this,{mapStyle:n=Vm}=o,r={...o,...o.initialViewState,accessToken:o.mapboxAccessToken||gO()||null,container:t,style:Fm(n)},s=r.initialViewState||r.viewState||r;if(Object.assign(r,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),o.gl){const u=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=u,o.gl)}const i=new this._MapClass(r);s.padding&&i.setPadding(s.padding),o.cursor&&(i.getCanvas().style.cursor=o.cursor),this._createShadowTransform(i);const a=i._render;i._render=u=>{this._inRender=!0,a.call(i,u),this._inRender=!1};const l=i._renderTaskQueue.run;i._renderTaskQueue.run=u=>{l.call(i._renderTaskQueue,u),this._onBeforeRepaint()},i.on("render",()=>this._onAfterRepaint());const c=i.fire;i.fire=this._fireEvent.bind(this,c),i.on("resize",()=>{this._renderTransform.resize(i.transform.width,i.transform.height)}),i.on("styledata",()=>{this._updateStyleComponents(this.props,{}),Lm(i.transform,this._renderTransform)}),i.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const u in Gm)i.on(u,this._onPointerEvent);for(const u in pc)i.on(u,this._onCameraEvent);for(const u in Wm)i.on(u,this._onEvent);this._map=i}recycle(){const o=this.map.getContainer().querySelector("[mapboxgl-children]");o==null||o.remove(),ls.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 o=fO(t.transform);t.painter.transform=o,this._renderTransform=o}_updateSize(t){const{viewState:o}=t;if(o){const n=this._map;if(o.width!==n.transform.width||o.height!==n.transform.height)return n.resize(),!0}return!1}_updateViewState(t,o){if(this._internalUpdate)return!1;const n=this._map,r=this._renderTransform,{zoom:s,pitch:i,bearing:a}=r,l=n.isMoving();l&&(r.cameraElevationReference="sea");const c=Bm(r,{...zm(n.transform),...t});if(l&&(r.cameraElevationReference="ground"),c&&o){const u=this._deferredEvents;u.move=!0,u.zoom||(u.zoom=s!==r.zoom),u.rotate||(u.rotate=a!==r.bearing),u.pitch||(u.pitch=i!==r.pitch)}return l||Bm(n.transform,t),c}_updateSettings(t,o){const n=this._map;let r=!1;for(const s of hO)if(s in t&&!fn(t[s],o[s])){r=!0;const i=n[`set${s[0].toUpperCase()}${s.slice(1)}`];i==null||i.call(n,t[s])}return r}_updateStyle(t,o){if(t.cursor!==o.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==o.mapStyle){const{mapStyle:n=Vm,styleDiffing:r=!0}=t,s={diff:r};return"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(Fm(n),s),!0}return!1}_updateStyleComponents(t,o){const n=this._map;let r=!1;return n.isStyleLoaded()&&("light"in t&&n.setLight&&!fn(t.light,o.light)&&(r=!0,n.setLight(t.light)),"fog"in t&&n.setFog&&!fn(t.fog,o.fog)&&(r=!0,n.setFog(t.fog)),"terrain"in t&&n.setTerrain&&!fn(t.terrain,o.terrain)&&(!t.terrain||n.getSource(t.terrain.source))&&(r=!0,n.setTerrain(t.terrain))),r}_updateHandlers(t,o){var n,r;const s=this._map;let i=!1;for(const a of yO){const l=(n=t[a])!==null&&n!==void 0?n:!0,c=(r=o[a])!==null&&r!==void 0?r:!0;fn(l,c)||(i=!0,l?s[a].enable(l):s[a].disable())}return i}_queryRenderedFeatures(t){const o=this._map,n=o.transform,{interactiveLayerIds:r=[]}=this.props;try{return o.transform=this._renderTransform,o.queryRenderedFeatures(t,{layers:r.filter(o.getLayer.bind(o))})}catch{return[]}finally{o.transform=n}}_updateHover(t){var o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const s=t.type,i=((o=this._hoveredFeatures)===null||o===void 0?void 0:o.length)>0,a=this._queryRenderedFeatures(t.point),l=a.length>0;!l&&i&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=a,l&&!i&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=s}else this._hoveredFeatures=null}_fireEvent(t,o,n){const r=this._map,s=r.transform,i=typeof o=="string"?o:o.type;return i==="move"&&this._updateViewState(this.props,!1),i in pc&&(typeof o=="object"&&(o.viewState=zm(s)),this._map.isMoving())?(r.transform=this._renderTransform,t.call(r,o,n),r.transform=s,r):(t.call(r,o,n),r)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const n in this._deferredEvents)this._deferredEvents[n]&&t.fire(n);this._internalUpdate=!1;const o=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{Lm(this._renderTransform,o),t.transform=o}}}ls.savedMaps=[];function gO(){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 bO=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function vO(e){if(!e)return null;const t=e.map,o={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 r=t.transform;t.transform=e.transform;const s=t.project(n);return t.transform=r,s},unproject:n=>{const r=t.transform;t.transform=e.transform;const s=t.unproject(n);return t.transform=r,s},queryTerrainElevation:(n,r)=>{const s=t.transform;t.transform=e.transform;const i=t.queryTerrainElevation(n,r);return t.transform=s,i},queryRenderedFeatures:(n,r)=>{const s=t.transform;t.transform=e.transform;const i=t.queryRenderedFeatures(n,r);return t.transform=s,i}};for(const n of TO(t))!(n in o)&&!bO.includes(n)&&(o[n]=t[n].bind(t));return o}function TO(e){const t=new Set;let o=e;for(;o;){for(const n of Object.getOwnPropertyNames(o))n[0]!=="_"&&typeof e[n]=="function"&&n!=="fire"&&n!=="setEventedParent"&&t.add(n);o=Object.getPrototypeOf(o)}return Array.from(t)}const PO=typeof document<"u"?W.useLayoutEffect:W.useEffect,xO=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function CO(e,t){for(const n of xO)n in t&&(e[n]=t[n]);const{RTLTextPlugin:o="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;o&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(o,n=>{n&&console.error(n)},!0)}const Nl=P.createContext(null);function Jg(e,t,o){const n=W.useContext(pO),[r,s]=W.useState(null),i=W.useRef(),{current:a}=W.useRef({mapLib:null,map:null});W.useEffect(()=>{const u=e.mapLib;let p=!0,f;return Promise.resolve(u||o).then(d=>{if(!p)return;if(!d)throw new Error("Invalid mapLib");const m="Map"in d?d:d.default;if(!m.Map)throw new Error("Invalid mapLib");if(CO(m,e),!m.supported||m.supported(e))e.reuseMaps&&(f=ls.reuse(e,i.current)),f||(f=new ls(m.Map,e,i.current)),a.map=vO(f),a.mapLib=m,s(f),n==null||n.onMapMount(a.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(d=>{const{onError:m}=e;m?m({type:"error",target:null,originalEvent:null,error:d}):console.error(d)}),()=>{p=!1,f&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?f.recycle():f.destroy())}},[]),PO(()=>{r&&r.setProps(e)}),W.useImperativeHandle(t,()=>a.map,[r]);const l=W.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return P.createElement("div",{id:e.id,ref:i,style:l},r&&P.createElement(Nl.Provider,{value:a},P.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const wO=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Tr(e,t){if(!e||!t)return;const o=e.style;for(const n in t){const r=t[n];Number.isFinite(r)&&!wO.test(n)?o[n]=`${r}px`:o[n]=r}}function IO(e,t){const{map:o,mapLib:n}=W.useContext(Nl),r=W.useRef({props:e});r.current.props=e;const s=W.useMemo(()=>{let h=!1;P.Children.forEach(e.children,w=>{w&&(h=!0)});const y={...e,element:h?document.createElement("div"):null},g=new n.Marker(y);return g.setLngLat([e.longitude,e.latitude]),g.getElement().addEventListener("click",w=>{var I,x;(x=(I=r.current.props).onClick)===null||x===void 0||x.call(I,{type:"click",target:g,originalEvent:w})}),g.on("dragstart",w=>{var I,x;const A=w;A.lngLat=s.getLngLat(),(x=(I=r.current.props).onDragStart)===null||x===void 0||x.call(I,A)}),g.on("drag",w=>{var I,x;const A=w;A.lngLat=s.getLngLat(),(x=(I=r.current.props).onDrag)===null||x===void 0||x.call(I,A)}),g.on("dragend",w=>{var I,x;const A=w;A.lngLat=s.getLngLat(),(x=(I=r.current.props).onDragEnd)===null||x===void 0||x.call(I,A)}),g},[]);W.useEffect(()=>(s.addTo(o.getMap()),()=>{s.remove()}),[]);const{longitude:i,latitude:a,offset:l,style:c,draggable:u=!1,popup:p=null,rotation:f=0,rotationAlignment:d="auto",pitchAlignment:m="auto"}=e;return W.useEffect(()=>{Tr(s.getElement(),c)},[c]),W.useImperativeHandle(t,()=>s,[]),(s.getLngLat().lng!==i||s.getLngLat().lat!==a)&&s.setLngLat([i,a]),l&&!dO(s.getOffset(),l)&&s.setOffset(l),s.isDraggable()!==u&&s.setDraggable(u),s.getRotation()!==f&&s.setRotation(f),s.getRotationAlignment()!==d&&s.setRotationAlignment(d),s.getPitchAlignment()!==m&&s.setPitchAlignment(m),s.getPopup()!==p&&s.setPopup(p),en.createPortal(e.children,s.getElement())}const Xg=W.memo(W.forwardRef(IO));function qm(e){return new Set(e?e.trim().split(/\s+/):[])}function SO(e,t){const{map:o,mapLib:n}=W.useContext(Nl),r=W.useMemo(()=>document.createElement("div"),[]),s=W.useRef({props:e});s.current.props=e;const i=W.useMemo(()=>{const a={...e},l=new n.Popup(a);return l.setLngLat([e.longitude,e.latitude]),l.once("open",c=>{var u,p;(p=(u=s.current.props).onOpen)===null||p===void 0||p.call(u,c)}),l},[]);if(W.useEffect(()=>{const a=l=>{var c,u;(u=(c=s.current.props).onClose)===null||u===void 0||u.call(c,l)};return i.on("close",a),i.setDOMContent(r).addTo(o.getMap()),()=>{i.off("close",a),i.isOpen()&&i.remove()}},[]),W.useEffect(()=>{Tr(i.getElement(),e.style)},[e.style]),W.useImperativeHandle(t,()=>i,[]),i.isOpen()&&((i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!fn(i.options.offset,e.offset)&&i.setOffset(e.offset),(i.options.anchor!==e.anchor||i.options.maxWidth!==e.maxWidth)&&(i.options.anchor=e.anchor,i.setMaxWidth(e.maxWidth)),i.options.className!==e.className)){const a=qm(i.options.className),l=qm(e.className);for(const c of a)l.has(c)||i.removeClassName(c);for(const c of l)a.has(c)||i.addClassName(c);i.options.className=e.className}return en.createPortal(e.children,r)}const DL=W.memo(W.forwardRef(SO));function Wi(e,t,o,n){const r=W.useContext(Nl),s=W.useMemo(()=>e(r),[]);return W.useEffect(()=>{const i=n||o||t,a=typeof t=="function"&&typeof o=="function"?t:null,l=typeof o=="function"?o:typeof t=="function"?t:null,{map:c}=r;return c.hasControl(s)||(c.addControl(s,i==null?void 0:i.position),a&&a(r)),()=>{l&&l(r),c.hasControl(s)&&c.removeControl(s)}},[]),s}function AO(e){const t=Wi(({mapLib:o})=>new o.AttributionControl(e),{position:e.position});return W.useEffect(()=>{Tr(t._container,e.style)},[e.style]),null}const EL=W.memo(AO);function MO(e){const t=Wi(({mapLib:o})=>new o.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return W.useEffect(()=>{Tr(t._controlContainer,e.style)},[e.style]),null}const NL=W.memo(MO);function kO(e,t){const o=W.useRef({props:e}),n=Wi(({mapLib:r})=>{const s=new r.GeolocateControl(e),i=s._setupUI;return s._setupUI=a=>{s._container.hasChildNodes()||i(a)},s.on("geolocate",a=>{var l,c;(c=(l=o.current.props).onGeolocate)===null||c===void 0||c.call(l,a)}),s.on("error",a=>{var l,c;(c=(l=o.current.props).onError)===null||c===void 0||c.call(l,a)}),s.on("outofmaxbounds",a=>{var l,c;(c=(l=o.current.props).onOutOfMaxBounds)===null||c===void 0||c.call(l,a)}),s.on("trackuserlocationstart",a=>{var l,c;(c=(l=o.current.props).onTrackUserLocationStart)===null||c===void 0||c.call(l,a)}),s.on("trackuserlocationend",a=>{var l,c;(c=(l=o.current.props).onTrackUserLocationEnd)===null||c===void 0||c.call(l,a)}),s},{position:e.position});return o.current.props=e,W.useImperativeHandle(t,()=>n,[]),W.useEffect(()=>{Tr(n._container,e.style)},[e.style]),null}const jL=W.memo(W.forwardRef(kO));function OO(e){const t=Wi(({mapLib:o})=>new o.NavigationControl(e),{position:e.position});return W.useEffect(()=>{Tr(t._container,e.style)},[e.style]),null}const RO=W.memo(OO);function DO(e){const t=Wi(({mapLib:s})=>new s.ScaleControl(e),{position:e.position}),o=W.useRef(e),n=o.current;o.current=e;const{style:r}=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),W.useEffect(()=>{Tr(t._container,r)},[r]),null}const LL=W.memo(DO);const EO=Promise.resolve().then(()=>require("./maplibre-gl-YML9sdjR.js")).then(e=>e.maplibreGl),NO=P.forwardRef(function(t,o){return Jg(t,o,EO)}),jO=Xg;const LO=RO;const zO=Promise.resolve().then(()=>require("./mapbox-gl-ioK5Ggxk.js")).then(e=>e.mapboxGl),zL=P.forwardRef(function(t,o){return Jg(t,o,zO)}),BO=Xg;function FO({locations:e}){if(G0.IsZeroArray(e))return null;const t=({id:o,longitude:n,latitude:r,icon:s})=>b.jsx("li",{children:b.jsx(BO,{longitude:n,latitude:r,children:s})},o);return b.jsx(hs,{items:e,itemRenderer:t})}const VO=({longitude:e,latitude:t,zoom:o=10,setCoordinates:n,locations:r=[],token:s,navigationControl:i})=>{const a=W.useRef(null),[l,c]=W.useState({longitude:e,latitude:t,zoom:o});return W.useEffect(()=>{a.current&&a.current.flyTo({center:[e,t],zoom:o,duration:3e3,essential:!0})},[t,e,o]),b.jsxs(NO,{ref:a,...l,mapStyle:`https://tiles.locationiq.com/v3/streets/vector.json?key=${s}`,style:{width:"100%",height:"100%"},onMove:u=>c(u.viewState),onClick:u=>{const{lng:p,lat:f}=u.lngLat;n&&n({lat:f,lng:p})},children:[b.jsx(jO,{longitude:e,latitude:t,children:"📌"}),b.jsx(FO,{locations:r}),b.jsx(LO,{position:i.position})]})};var $g=(e=>(e.TR="top-right",e))($g||{});const ur=Math.min,En=Math.max,Fn=Math.round,On=Math.floor,io=e=>({x:e,y:e}),GO={left:"right",right:"left",bottom:"top",top:"bottom"};function ou(e,t,o){return En(e,ur(t,o))}function qi(e,t){return typeof e=="function"?e(t):e}function pr(e){return e.split("-")[0]}function Hi(e){return e.split("-")[1]}function Qg(e){return e==="x"?"y":"x"}function Lp(e){return e==="y"?"height":"width"}function Rn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function zp(e){return Qg(Rn(e))}function WO(e,t,o){o===void 0&&(o=!1);const n=Hi(e),r=zp(e),s=Lp(r);let i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Za(i)),[i,Za(i)]}function qO(e){const t=Za(e);return[nu(e),t,nu(t)]}function nu(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Hm=["left","right"],Zm=["right","left"],HO=["top","bottom"],ZO=["bottom","top"];function YO(e,t,o){switch(e){case"top":case"bottom":return o?t?Zm:Hm:t?Hm:Zm;case"left":case"right":return t?HO:ZO;default:return[]}}function UO(e,t,o,n){const r=Hi(e);let s=YO(pr(e),o==="start",n);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(nu)))),s}function Za(e){const t=pr(e);return GO[t]+e.slice(t.length)}function JO(e){return{top:0,right:0,bottom:0,left:0,...e}}function Kg(e){return typeof e!="number"?JO(e):{top:e,right:e,bottom:e,left:e}}function Ai(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function Ym(e,t,o){let{reference:n,floating:r}=e;const s=Rn(t),i=zp(t),a=Lp(i),l=pr(t),c=s==="y",u=n.x+n.width/2-r.width/2,p=n.y+n.height/2-r.height/2,f=n[a]/2-r[a]/2;let d;switch(l){case"top":d={x:u,y:n.y-r.height};break;case"bottom":d={x:u,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:p};break;case"left":d={x:n.x-r.width,y:p};break;default:d={x:n.x,y:n.y}}switch(Hi(t)){case"start":d[i]-=f*(o&&c?-1:1);break;case"end":d[i]+=f*(o&&c?-1:1);break}return d}async function XO(e,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:d=0}=qi(t,e),m=Kg(d),y=a[f?p==="floating"?"reference":"floating":p],g=Ai(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(y)))==null||o?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),w=p==="floating"?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(I))?await(s.getScale==null?void 0:s.getScale(I))||{x:1,y:1}:{x:1,y:1},A=Ai(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:I,strategy:l}):w);return{top:(g.top-A.top+m.top)/x.y,bottom:(A.bottom-g.bottom+m.bottom)/x.y,left:(g.left-A.left+m.left)/x.x,right:(A.right-g.right+m.right)/x.x}}const $O=50,QO=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,a=i.detectOverflow?i:{...i,detectOverflow:XO},l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:p}=Ym(c,n,l),f=n,d=0;const m={};for(let h=0;h<s.length;h++){const y=s[h];if(!y)continue;const{name:g,fn:w}=y,{x:I,y:x,data:A,reset:R}=await w({x:u,y:p,initialPlacement:n,placement:f,strategy:r,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=I??u,p=x??p,m[g]={...m[g],...A},R&&d<$O&&(d++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(c=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:u,y:p}=Ym(c,f,l)),h=-1)}return{x:u,y:p,placement:f,strategy:r,middlewareData:m}},KO=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=qi(e,t)||{};if(c==null)return{};const p=Kg(u),f={x:o,y:n},d=zp(r),m=Lp(d),h=await i.getDimensions(c),y=d==="y",g=y?"top":"left",w=y?"bottom":"right",I=y?"clientHeight":"clientWidth",x=s.reference[m]+s.reference[d]-f[d]-s.floating[m],A=f[d]-s.reference[d],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let E=R?R[I]:0;(!E||!await(i.isElement==null?void 0:i.isElement(R)))&&(E=a.floating[I]||s.floating[m]);const D=x/2-A/2,B=E/2-h[m]/2-1,F=ur(p[g],B),N=ur(p[w],B),v=F,j=E-h[m]-N,O=E/2-h[m]/2+D,C=ou(v,O,j),k=!l.arrow&&Hi(r)!=null&&O!==C&&s.reference[m]/2-(O<v?F:N)-h[m]/2<0,S=k?O<v?O-v:O-j:0;return{[d]:f[d]+S,data:{[d]:C,centerOffset:O-C-S,...k&&{alignmentOffset:S}},reset:k}}});const _O=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...y}=qi(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const g=pr(r),w=Rn(a),I=pr(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=f||(I||!h?[Za(a)]:qO(a)),R=m!=="none";!f&&R&&A.push(...UO(a,h,m,x));const E=[a,...A],D=await l.detectOverflow(t,y),B=[];let F=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&B.push(D[g]),p){const O=WO(r,i,x);B.push(D[O[0]],D[O[1]])}if(F=[...F,{placement:r,overflows:B}],!B.every(O=>O<=0)){var N,v;const O=(((N=s.flip)==null?void 0:N.index)||0)+1,C=E[O];if(C&&(!(p==="alignment"?w!==Rn(C):!1)||F.every(M=>Rn(M.placement)===w?M.overflows[0]>0:!0)))return{data:{index:O,overflows:F},reset:{placement:C}};let k=(v=F.filter(S=>S.overflows[0]<=0).sort((S,M)=>S.overflows[1]-M.overflows[1])[0])==null?void 0:v.placement;if(!k)switch(d){case"bestFit":{var j;const S=(j=F.filter(M=>{if(R){const z=Rn(M.placement);return z===w||z==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(z=>z>0).reduce((z,G)=>z+G,0)]).sort((M,z)=>M[1]-z[1])[0])==null?void 0:j[0];S&&(k=S);break}case"initialPlacement":k=a;break}if(r!==k)return{reset:{placement:k}}}return{}}}};const eR=new Set(["left","top"]);async function tR(e,t){const{placement:o,platform:n,elements:r}=e,s=await(n.isRTL==null?void 0:n.isRTL(r.floating)),i=pr(o),a=Hi(o),l=Rn(o)==="y",c=eR.has(i)?-1:1,u=s&&l?-1:1,p=qi(t,e);let{mainAxis:f,crossAxis:d,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof m=="number"&&(d=a==="end"?m*-1:m),l?{x:d*u,y:f*c}:{x:f*c,y:d*u}}const oR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await tR(t,e);return i===((o=a.offset)==null?void 0:o.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},nR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:g=>{let{x:w,y:I}=g;return{x:w,y:I}}},...c}=qi(e,t),u={x:o,y:n},p=await s.detectOverflow(t,c),f=Rn(pr(r)),d=Qg(f);let m=u[d],h=u[f];if(i){const g=d==="y"?"top":"left",w=d==="y"?"bottom":"right",I=m+p[g],x=m-p[w];m=ou(I,m,x)}if(a){const g=f==="y"?"top":"left",w=f==="y"?"bottom":"right",I=h+p[g],x=h-p[w];h=ou(I,h,x)}const y=l.fn({...t,[d]:m,[f]:h});return{...y,data:{x:y.x-o,y:y.y-n,enabled:{[d]:i,[f]:a}}}}}};function jl(){return typeof window<"u"}function Cs(e){return _g(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ho(e){var t;return(t=(_g(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _g(e){return jl()?e instanceof Node||e instanceof qt(e).Node:!1}function co(e){return jl()?e instanceof Element||e instanceof qt(e).Element:!1}function Zo(e){return jl()?e instanceof HTMLElement||e instanceof qt(e).HTMLElement:!1}function Um(e){return!jl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot}function Zi(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=bo(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&r!=="inline"&&r!=="contents"}function rR(e){return/^(table|td|th)$/.test(Cs(e))}function Ll(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const sR=/transform|translate|scale|rotate|perspective|filter/,iR=/paint|layout|strict|content/,Kn=e=>!!e&&e!=="none";let dc;function Bp(e){const t=co(e)?bo(e):e;return Kn(t.transform)||Kn(t.translate)||Kn(t.scale)||Kn(t.rotate)||Kn(t.perspective)||!zl()&&(Kn(t.backdropFilter)||Kn(t.filter))||sR.test(t.willChange||"")||iR.test(t.contain||"")}function aR(e){let t=Vn(e);for(;Zo(t)&&!cs(t);){if(Bp(t))return t;if(Ll(t))return null;t=Vn(t)}return null}function zl(){return dc==null&&(dc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),dc}function cs(e){return/^(html|body|#document)$/.test(Cs(e))}function bo(e){return qt(e).getComputedStyle(e)}function Bl(e){return co(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vn(e){if(Cs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Um(e)&&e.host||Ho(e);return Um(t)?t.host:t}function e1(e){const t=Vn(e);return cs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zo(t)&&Zi(t)?t:e1(t)}function dr(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=e1(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=qt(r);if(s){const a=Mi(i);return t.concat(i,i.visualViewport||[],Zi(r)?r:[],a&&o?dr(a):[])}else return t.concat(r,dr(r,[],o))}function Mi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function t1(e){const t=bo(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=Zo(e),s=r?e.offsetWidth:o,i=r?e.offsetHeight:n,a=Fn(o)!==s||Fn(n)!==i;return a&&(o=s,n=i),{width:o,height:n,$:a}}function Fp(e){return co(e)?e:e.contextElement}function Jr(e){const t=Fp(e);if(!Zo(t))return io(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:s}=t1(t);let i=(s?Fn(o.width):o.width)/n,a=(s?Fn(o.height):o.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const lR=io(0);function o1(e){const t=qt(e);return!zl()||!t.visualViewport?lR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cR(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==qt(e)?!1:t}function fr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),s=Fp(e);let i=io(1);t&&(n?co(n)&&(i=Jr(n)):i=Jr(e));const a=cR(s,o,n)?o1(s):io(0);let l=(r.left+a.x)/i.x,c=(r.top+a.y)/i.y,u=r.width/i.x,p=r.height/i.y;if(s){const f=qt(s),d=n&&co(n)?qt(n):n;let m=f,h=Mi(m);for(;h&&n&&d!==m;){const y=Jr(h),g=h.getBoundingClientRect(),w=bo(h),I=g.left+(h.clientLeft+parseFloat(w.paddingLeft))*y.x,x=g.top+(h.clientTop+parseFloat(w.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,p*=y.y,l+=I,c+=x,m=qt(h),h=Mi(m)}}return Ai({width:u,height:p,x:l,y:c})}function Fl(e,t){const o=Bl(e).scrollLeft;return t?t.left+o:fr(Ho(e)).left+o}function n1(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Fl(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function uR(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const s=r==="fixed",i=Ho(n),a=t?Ll(t.floating):!1;if(n===i||a&&s)return o;let l={scrollLeft:0,scrollTop:0},c=io(1);const u=io(0),p=Zo(n);if((p||!p&&!s)&&((Cs(n)!=="body"||Zi(i))&&(l=Bl(n)),p)){const d=fr(n);c=Jr(n),u.x=d.x+n.clientLeft,u.y=d.y+n.clientTop}const f=i&&!p&&!s?n1(i,l):io(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:o.y*c.y-l.scrollTop*c.y+u.y+f.y}}function pR(e){return Array.from(e.getClientRects())}function dR(e){const t=Ho(e),o=Bl(e),n=e.ownerDocument.body,r=En(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=En(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+Fl(e);const a=-o.scrollTop;return bo(n).direction==="rtl"&&(i+=En(t.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:a}}const Jm=25;function fR(e,t){const o=qt(e),n=Ho(e),r=o.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,l=0;if(r){s=r.width,i=r.height;const u=zl();(!u||u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const c=Fl(n);if(c<=0){const u=n.ownerDocument,p=u.body,f=getComputedStyle(p),d=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(n.clientWidth-p.clientWidth-d);m<=Jm&&(s-=m)}else c<=Jm&&(s+=c);return{width:s,height:i,x:a,y:l}}function mR(e,t){const o=fr(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,s=Zo(e)?Jr(e):io(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,c=n*s.y;return{width:i,height:a,x:l,y:c}}function Xm(e,t,o){let n;if(t==="viewport")n=fR(e,o);else if(t==="document")n=dR(Ho(e));else if(co(t))n=mR(t,o);else{const r=o1(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Ai(n)}function r1(e,t){const o=Vn(e);return o===t||!co(o)||cs(o)?!1:bo(o).position==="fixed"||r1(o,t)}function hR(e,t){const o=t.get(e);if(o)return o;let n=dr(e,[],!1).filter(a=>co(a)&&Cs(a)!=="body"),r=null;const s=bo(e).position==="fixed";let i=s?Vn(e):e;for(;co(i)&&!cs(i);){const a=bo(i),l=Bp(i);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Zi(i)&&!l&&r1(e,i))?n=n.filter(u=>u!==i):r=a,i=Vn(i)}return t.set(e,n),n}function yR(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const i=[...o==="clippingAncestors"?Ll(t)?[]:hR(t,this._c):[].concat(o),n],a=Xm(t,i[0],r);let l=a.top,c=a.right,u=a.bottom,p=a.left;for(let f=1;f<i.length;f++){const d=Xm(t,i[f],r);l=En(d.top,l),c=ur(d.right,c),u=ur(d.bottom,u),p=En(d.left,p)}return{width:c-p,height:u-l,x:p,y:l}}function gR(e){const{width:t,height:o}=t1(e);return{width:t,height:o}}function bR(e,t,o){const n=Zo(t),r=Ho(t),s=o==="fixed",i=fr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=io(0);function c(){l.x=Fl(r)}if(n||!n&&!s)if((Cs(t)!=="body"||Zi(r))&&(a=Bl(t)),n){const d=fr(t,!0,s,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else r&&c();s&&!n&&r&&c();const u=r&&!n&&!s?n1(r,a):io(0),p=i.left+a.scrollLeft-l.x-u.x,f=i.top+a.scrollTop-l.y-u.y;return{x:p,y:f,width:i.width,height:i.height}}function fc(e){return bo(e).position==="static"}function $m(e,t){if(!Zo(e)||bo(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Ho(e)===o&&(o=o.ownerDocument.body),o}function s1(e,t){const o=qt(e);if(Ll(e))return o;if(!Zo(e)){let r=Vn(e);for(;r&&!cs(r);){if(co(r)&&!fc(r))return r;r=Vn(r)}return o}let n=$m(e,t);for(;n&&rR(n)&&fc(n);)n=$m(n,t);return n&&cs(n)&&fc(n)&&!Bp(n)?o:n||aR(e)||o}const vR=async function(e){const t=this.getOffsetParent||s1,o=this.getDimensions,n=await o(e.floating);return{reference:bR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function TR(e){return bo(e).direction==="rtl"}const PR={convertOffsetParentRelativeRectToViewportRelativeRect:uR,getDocumentElement:Ho,getClippingRect:yR,getOffsetParent:s1,getElementRects:vR,getClientRects:pR,getDimensions:gR,getScale:Jr,isElement:co,isRTL:TR};function i1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xR(e,t){let o=null,n;const r=Ho(e);function s(){var a;clearTimeout(n),(a=o)==null||a.disconnect(),o=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:p,width:f,height:d}=c;if(a||t(),!f||!d)return;const m=On(p),h=On(r.clientWidth-(u+f)),y=On(r.clientHeight-(p+d)),g=On(u),I={rootMargin:-m+"px "+-h+"px "+-y+"px "+-g+"px",threshold:En(0,ur(1,l))||1};let x=!0;function A(R){const E=R[0].intersectionRatio;if(E!==l){if(!x)return i();E?i(!1,E):n=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!i1(c,e.getBoundingClientRect())&&i(),x=!1}try{o=new IntersectionObserver(A,{...I,root:r.ownerDocument})}catch{o=new IntersectionObserver(A,I)}o.observe(e)}return i(!0),s}function CR(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Fp(e),u=r||s?[...c?dr(c):[],...t?dr(t):[]]:[];u.forEach(g=>{r&&g.addEventListener("scroll",o,{passive:!0}),s&&g.addEventListener("resize",o)});const p=c&&a?xR(c,o):null;let f=-1,d=null;i&&(d=new ResizeObserver(g=>{let[w]=g;w&&w.target===c&&d&&t&&(d.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var I;(I=d)==null||I.observe(t)})),o()}),c&&!l&&d.observe(c),t&&d.observe(t));let m,h=l?fr(e):null;l&&y();function y(){const g=fr(e);h&&!i1(h,g)&&o(),h=g,m=requestAnimationFrame(y)}return o(),()=>{var g;u.forEach(w=>{r&&w.removeEventListener("scroll",o),s&&w.removeEventListener("resize",o)}),p==null||p(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(m)}}const wR=oR;const IR=nR,SR=_O;const AR=KO;const Qm=(e,t,o)=>{const n=new Map,r={platform:PR,...o},s={...r.platform,_c:n};return QO(e,t,{...r,platform:s})};var Ia={exports:{}};/*!
|
|
362
362
|
Copyright (c) 2018 Jed Watson.
|
|
363
363
|
Licensed under the MIT License (MIT), see
|
|
364
364
|
http://jedwatson.github.io/classnames
|
|
@@ -373,4 +373,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
373
373
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wp(e){return qD(e)||HD(e)||p1(e)||ZD()}function YD(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function UD(e){const t=bo(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=Zo(e),s=r?e.offsetWidth:o,i=r?e.offsetHeight:n,a=Fn(o)!==s||Fn(n)!==i;return a&&(o=s,n=i),{width:o,height:n,$:a}}function qp(e){return co(e)?e:e.contextElement}function hc(e){const t=qp(e);if(!Zo(t))return io(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:s}=UD(t);let i=(s?Fn(o.width):o.width)/n,a=(s?Fn(o.height):o.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const JD=io(0);function XD(e){const t=qt(e);return!zl()||!t.visualViewport?JD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $D(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==qt(e)?!1:t}function l0(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),s=qp(e);let i=io(1);t&&(n?co(n)&&(i=hc(n)):i=hc(e));const a=$D(s,o,n)?XD(s):io(0);let l=(r.left+a.x)/i.x,c=(r.top+a.y)/i.y,u=r.width/i.x,p=r.height/i.y;if(s){const f=qt(s),d=n&&co(n)?qt(n):n;let m=f,h=Mi(m);for(;h&&n&&d!==m;){const y=hc(h),g=h.getBoundingClientRect(),w=bo(h),I=g.left+(h.clientLeft+parseFloat(w.paddingLeft))*y.x,x=g.top+(h.clientTop+parseFloat(w.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,p*=y.y,l+=I,c+=x,m=qt(h),h=Mi(m)}}return Ai({width:u,height:p,x:l,y:c})}function f1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function QD(e,t){let o=null,n;const r=Ho(e);function s(){var a;clearTimeout(n),(a=o)==null||a.disconnect(),o=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:p,width:f,height:d}=c;if(a||t(),!f||!d)return;const m=On(p),h=On(r.clientWidth-(u+f)),y=On(r.clientHeight-(p+d)),g=On(u),I={rootMargin:-m+"px "+-h+"px "+-y+"px "+-g+"px",threshold:En(0,ur(1,l))||1};let x=!0;function A(R){const E=R[0].intersectionRatio;if(E!==l){if(!x)return i();E?i(!1,E):n=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!f1(c,e.getBoundingClientRect())&&i(),x=!1}try{o=new IntersectionObserver(A,{...I,root:r.ownerDocument})}catch{o=new IntersectionObserver(A,I)}o.observe(e)}return i(!0),s}function KD(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=qp(e),u=r||s?[...c?dr(c):[],...t?dr(t):[]]:[];u.forEach(g=>{r&&g.addEventListener("scroll",o,{passive:!0}),s&&g.addEventListener("resize",o)});const p=c&&a?QD(c,o):null;let f=-1,d=null;i&&(d=new ResizeObserver(g=>{let[w]=g;w&&w.target===c&&d&&t&&(d.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var I;(I=d)==null||I.observe(t)})),o()}),c&&!l&&d.observe(c),t&&d.observe(t));let m,h=l?l0(e):null;l&&y();function y(){const g=l0(e);h&&!f1(h,g)&&o(),h=g,m=requestAnimationFrame(y)}return o(),()=>{var g;u.forEach(w=>{r&&w.removeEventListener("scroll",o),s&&w.removeEventListener("resize",o)}),p==null||p(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(m)}}var _D=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ua=function(){};function eE(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function tE(e,t){for(var o=arguments.length,n=new Array(o>2?o-2:0),r=2;r<o;r++)n[r-2]=arguments[r];var s=[].concat(n);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&s.push("".concat(eE(e,i)));return s.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var c0=function(t){return uE(t)?t.filter(Boolean):mr(t)==="object"&&t!==null?[t]:[]},m1=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var o=Cn(t,_D);return Ve({},o)},jt=function(t,o,n){var r=t.cx,s=t.getStyles,i=t.getClassNames,a=t.className;return{css:s(o,t),className:r(n??{},i(o,t),a)}};function Vl(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function oE(e){return Vl(e)?window.innerHeight:e.clientHeight}function h1(e){return Vl(e)?window.pageYOffset:e.scrollTop}function Ja(e,t){if(Vl(e)){window.scrollTo(0,t);return}e.scrollTop=t}function nE(e){var t=getComputedStyle(e),o=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),!(o&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}function rE(e,t,o,n){return o*((e=e/n-1)*e*e+1)+t}function ca(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ua,r=h1(e),s=t-r,i=10,a=0;function l(){a+=i;var c=rE(a,r,s,o);Ja(e,c),a<o?window.requestAnimationFrame(l):n(e)}l()}function u0(e,t){var o=e.getBoundingClientRect(),n=t.getBoundingClientRect(),r=t.offsetHeight/3;n.bottom+r>o.bottom?Ja(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):n.top-r<o.top&&Ja(e,Math.max(t.offsetTop-r,0))}function sE(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function p0(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function iE(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var y1=!1,aE={get passive(){return y1=!0}},ua=typeof window<"u"?window:{};ua.addEventListener&&ua.removeEventListener&&(ua.addEventListener("p",Ua,aE),ua.removeEventListener("p",Ua,!1));var lE=y1;function cE(e){return e!=null}function uE(e){return Array.isArray(e)}function pa(e,t,o){return e?t:o}var pE=function(t){for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];var s=Object.entries(t).filter(function(i){var a=hn(i,1),l=a[0];return!n.includes(l)});return s.reduce(function(i,a){var l=hn(a,2),c=l[0],u=l[1];return i[c]=u,i},{})},dE=["children","innerProps"],fE=["children","innerProps"];function mE(e){var t=e.maxHeight,o=e.menuEl,n=e.minHeight,r=e.placement,s=e.shouldScroll,i=e.isFixedPosition,a=e.controlHeight,l=nE(o),c={placement:"bottom",maxHeight:t};if(!o||!o.offsetParent)return c;var u=l.getBoundingClientRect(),p=u.height,f=o.getBoundingClientRect(),d=f.bottom,m=f.height,h=f.top,y=o.offsetParent.getBoundingClientRect(),g=y.top,w=i?window.innerHeight:oE(l),I=h1(l),x=parseInt(getComputedStyle(o).marginBottom,10),A=parseInt(getComputedStyle(o).marginTop,10),R=g-A,E=w-h,D=R+I,B=p-I-h,F=d-w+I+x,N=I+h-A,v=160;switch(r){case"auto":case"bottom":if(E>=m)return{placement:"bottom",maxHeight:t};if(B>=m&&!i)return s&&ca(l,F,v),{placement:"bottom",maxHeight:t};if(!i&&B>=n||i&&E>=n){s&&ca(l,F,v);var j=i?E-x:B-x;return{placement:"bottom",maxHeight:j}}if(r==="auto"||i){var O=t,C=i?R:D;return C>=n&&(O=Math.min(C-x-a,t)),{placement:"top",maxHeight:O}}if(r==="bottom")return s&&Ja(l,F),{placement:"bottom",maxHeight:t};break;case"top":if(R>=m)return{placement:"top",maxHeight:t};if(D>=m&&!i)return s&&ca(l,N,v),{placement:"top",maxHeight:t};if(!i&&D>=n||i&&R>=n){var k=t;return(!i&&D>=n||i&&R>=n)&&(k=i?R-A:D-A),s&&ca(l,N,v),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}function hE(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var g1=function(t){return t==="auto"?"bottom":t},yE=function(t,o){var n,r=t.placement,s=t.theme,i=s.borderRadius,a=s.spacing,l=s.colors;return Ve((n={label:"menu"},oi(n,hE(r),"100%"),oi(n,"position","absolute"),oi(n,"width","100%"),oi(n,"zIndex",1),n),o?{}:{backgroundColor:l.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},b1=W.createContext(null),gE=function(t){var o=t.children,n=t.minMenuHeight,r=t.maxMenuHeight,s=t.menuPlacement,i=t.menuPosition,a=t.menuShouldScrollIntoView,l=t.theme,c=W.useContext(b1)||{},u=c.setPortalPlacement,p=W.useRef(null),f=W.useState(r),d=hn(f,2),m=d[0],h=d[1],y=W.useState(null),g=hn(y,2),w=g[0],I=g[1],x=l.spacing.controlHeight;return Ma(function(){var A=p.current;if(A){var R=i==="fixed",E=a&&!R,D=mE({maxHeight:r,menuEl:A,minHeight:n,placement:s,shouldScroll:E,isFixedPosition:R,controlHeight:x});h(D.maxHeight),I(D.placement),u==null||u(D.placement)}},[r,s,i,a,n,u,x]),o({ref:p,placerProps:Ve(Ve({},t),{},{placement:w||g1(s),maxHeight:m})})},bE=function(t){var o=t.children,n=t.innerRef,r=t.innerProps;return Fe("div",L({},jt(t,"menu",{menu:!0}),{ref:n},r),o)},vE=bE,TE=function(t,o){var n=t.maxHeight,r=t.theme.spacing.baseUnit;return Ve({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},o?{}:{paddingBottom:r,paddingTop:r})},PE=function(t){var o=t.children,n=t.innerProps,r=t.innerRef,s=t.isMulti;return Fe("div",L({},jt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:r},n),o)},v1=function(t,o){var n=t.theme,r=n.spacing.baseUnit,s=n.colors;return Ve({textAlign:"center"},o?{}:{color:s.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},xE=v1,CE=v1,wE=function(t){var o=t.children,n=o===void 0?"No options":o,r=t.innerProps,s=Cn(t,dE);return Fe("div",L({},jt(Ve(Ve({},s),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},IE=function(t){var o=t.children,n=o===void 0?"Loading...":o,r=t.innerProps,s=Cn(t,fE);return Fe("div",L({},jt(Ve(Ve({},s),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},SE=function(t){var o=t.rect,n=t.offset,r=t.position;return{left:o.left,position:r,top:n,width:o.width,zIndex:1}},AE=function(t){var o=t.appendTo,n=t.children,r=t.controlElement,s=t.innerProps,i=t.menuPlacement,a=t.menuPosition,l=W.useRef(null),c=W.useRef(null),u=W.useState(g1(i)),p=hn(u,2),f=p[0],d=p[1],m=W.useMemo(function(){return{setPortalPlacement:d}},[]),h=W.useState(null),y=hn(h,2),g=y[0],w=y[1],I=W.useCallback(function(){if(r){var E=sE(r),D=a==="fixed"?0:window.pageYOffset,B=E[f]+D;(B!==(g==null?void 0:g.offset)||E.left!==(g==null?void 0:g.rect.left)||E.width!==(g==null?void 0:g.rect.width))&&w({offset:B,rect:E})}},[r,a,f,g==null?void 0:g.offset,g==null?void 0:g.rect.left,g==null?void 0:g.rect.width]);Ma(function(){I()},[I]);var x=W.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),r&&l.current&&(c.current=KD(r,l.current,I,{elementResize:"ResizeObserver"in window}))},[r,I]);Ma(function(){x()},[x]);var A=W.useCallback(function(E){l.current=E,x()},[x]);if(!o&&a!=="fixed"||!g)return null;var R=Fe("div",L({ref:A},jt(Ve(Ve({},t),{},{offset:g.offset,position:a,rect:g.rect}),"menuPortal",{"menu-portal":!0}),s),n);return Fe(b1.Provider,{value:m},o?en.createPortal(R,o):R)},ME=function(t){var o=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:o?"none":void 0,position:"relative"}},kE=function(t){var o=t.children,n=t.innerProps,r=t.isDisabled,s=t.isRtl;return Fe("div",L({},jt(t,"container",{"--is-disabled":r,"--is-rtl":s}),n),o)},OE=function(t,o){var n=t.theme.spacing,r=t.isMulti,s=t.hasValue,i=t.selectProps.controlShouldRenderValue;return Ve({alignItems:"center",display:r&&s&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},o?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},RE=function(t){var o=t.children,n=t.innerProps,r=t.isMulti,s=t.hasValue;return Fe("div",L({},jt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":s}),n),o)},DE=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},EE=function(t){var o=t.children,n=t.innerProps;return Fe("div",L({},jt(t,"indicatorsContainer",{indicators:!0}),n),o)},d0,NE=["size"],jE=["innerProps","isRtl","size"];var LE={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},T1=function(t){var o=t.size,n=Cn(t,NE);return Fe("svg",L({height:o,width:o,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:LE},n))},Hp=function(t){return Fe(T1,L({size:20},t),Fe("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},P1=function(t){return Fe(T1,L({size:20},t),Fe("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},x1=function(t,o){var n=t.isFocused,r=t.theme,s=r.spacing.baseUnit,i=r.colors;return Ve({label:"indicatorContainer",display:"flex",transition:"color 150ms"},o?{}:{color:n?i.neutral60:i.neutral20,padding:s*2,":hover":{color:n?i.neutral80:i.neutral40}})},zE=x1,BE=function(t){var o=t.children,n=t.innerProps;return Fe("div",L({},jt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),o||Fe(P1,null))},FE=x1,VE=function(t){var o=t.children,n=t.innerProps;return Fe("div",L({},jt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),o||Fe(Hp,null))},GE=function(t,o){var n=t.isDisabled,r=t.theme,s=r.spacing.baseUnit,i=r.colors;return Ve({label:"indicatorSeparator",alignSelf:"stretch",width:1},o?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:s*2,marginTop:s*2})},WE=function(t){var o=t.innerProps;return Fe("span",L({},o,jt(t,"indicatorSeparator",{"indicator-separator":!0})))},qE=tP(d0||(d0=YD([`
|
|
374
374
|
0%, 80%, 100% { opacity: 0; }
|
|
375
375
|
40% { opacity: 1; }
|
|
376
|
-
`]))),HE=function(t,o){var n=t.isFocused,r=t.size,s=t.theme,i=s.colors,a=s.spacing.baseUnit;return Ve({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},o?{}:{color:n?i.neutral60:i.neutral20,padding:a*2})},yc=function(t){var o=t.delay,n=t.offset;return Fe("span",{css:Eu({animation:"".concat(qE," 1s ease-in-out ").concat(o,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ZE=function(t){var o=t.innerProps,n=t.isRtl,r=t.size,s=r===void 0?4:r,i=Cn(t,jE);return Fe("div",L({},jt(Ve(Ve({},i),{},{innerProps:o,isRtl:n,size:s}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),o),Fe(yc,{delay:0,offset:n}),Fe(yc,{delay:160,offset:!0}),Fe(yc,{delay:320,offset:!n}))},YE=function(t,o){var n=t.isDisabled,r=t.isFocused,s=t.theme,i=s.colors,a=s.borderRadius,l=s.spacing;return Ve({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},o?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},UE=function(t){var o=t.children,n=t.isDisabled,r=t.isFocused,s=t.innerRef,i=t.innerProps,a=t.menuIsOpen;return Fe("div",L({ref:s},jt(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),o)},JE=UE,XE=["data"],$E=function(t,o){var n=t.theme.spacing;return o?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},QE=function(t){var o=t.children,n=t.cx,r=t.getStyles,s=t.getClassNames,i=t.Heading,a=t.headingProps,l=t.innerProps,c=t.label,u=t.theme,p=t.selectProps;return Fe("div",L({},jt(t,"group",{group:!0}),l),Fe(i,L({},a,{selectProps:p,theme:u,getStyles:r,getClassNames:s,cx:n}),c),Fe("div",null,o))},KE=function(t,o){var n=t.theme,r=n.colors,s=n.spacing;return Ve({label:"group",cursor:"default",display:"block"},o?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},_E=function(t){var o=m1(t);o.data;var n=Cn(o,XE);return Fe("div",L({},jt(t,"groupHeading",{"group-heading":!0}),n))},eN=QE,tN=["innerRef","isDisabled","isHidden","inputClassName"],oN=function(t,o){var n=t.isDisabled,r=t.value,s=t.theme,i=s.spacing,a=s.colors;return Ve(Ve({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},nN),o?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},C1={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},nN={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ve({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},C1)},rN=function(t){return Ve({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},C1)},sN=function(t){var o=t.cx,n=t.value,r=m1(t),s=r.innerRef,i=r.isDisabled,a=r.isHidden,l=r.inputClassName,c=Cn(r,tN);return Fe("div",L({},jt(t,"input",{"input-container":!0}),{"data-value":n||""}),Fe("input",L({className:o({input:!0},l),ref:s,style:rN(a),disabled:i},c)))},iN=sN,aN=function(t,o){var n=t.theme,r=n.spacing,s=n.borderRadius,i=n.colors;return Ve({label:"multiValue",display:"flex",minWidth:0},o?{}:{backgroundColor:i.neutral10,borderRadius:s/2,margin:r.baseUnit/2})},lN=function(t,o){var n=t.theme,r=n.borderRadius,s=n.colors,i=t.cropWithEllipsis;return Ve({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},o?{}:{borderRadius:r/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},cN=function(t,o){var n=t.theme,r=n.spacing,s=n.borderRadius,i=n.colors,a=t.isFocused;return Ve({alignItems:"center",display:"flex"},o?{}:{borderRadius:s/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},w1=function(t){var o=t.children,n=t.innerProps;return Fe("div",n,o)},uN=w1,pN=w1;function dN(e){var t=e.children,o=e.innerProps;return Fe("div",L({role:"button"},o),t||Fe(Hp,{size:14}))}var fN=function(t){var o=t.children,n=t.components,r=t.data,s=t.innerProps,i=t.isDisabled,a=t.removeProps,l=t.selectProps,c=n.Container,u=n.Label,p=n.Remove;return Fe(c,{data:r,innerProps:Ve(Ve({},jt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),s),selectProps:l},Fe(u,{data:r,innerProps:Ve({},jt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},o),Fe(p,{data:r,innerProps:Ve(Ve({},jt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(o||"option")},a),selectProps:l}))},mN=fN,hN=function(t,o){var n=t.isDisabled,r=t.isFocused,s=t.isSelected,i=t.theme,a=i.spacing,l=i.colors;return Ve({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},o?{}:{backgroundColor:s?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:s?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:s?l.primary:l.primary50}})},yN=function(t){var o=t.children,n=t.isDisabled,r=t.isFocused,s=t.isSelected,i=t.innerRef,a=t.innerProps;return Fe("div",L({},jt(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":s}),{ref:i,"aria-disabled":n},a),o)},gN=yN,bN=function(t,o){var n=t.theme,r=n.spacing,s=n.colors;return Ve({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},o?{}:{color:s.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},vN=function(t){var o=t.children,n=t.innerProps;return Fe("div",L({},jt(t,"placeholder",{placeholder:!0}),n),o)},TN=vN,PN=function(t,o){var n=t.isDisabled,r=t.theme,s=r.spacing,i=r.colors;return Ve({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},o?{}:{color:n?i.neutral40:i.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},xN=function(t){var o=t.children,n=t.isDisabled,r=t.innerProps;return Fe("div",L({},jt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),o)},CN=xN,wN={ClearIndicator:VE,Control:JE,DropdownIndicator:BE,DownChevron:P1,CrossIcon:Hp,Group:eN,GroupHeading:_E,IndicatorsContainer:EE,IndicatorSeparator:WE,Input:iN,LoadingIndicator:ZE,Menu:vE,MenuList:PE,MenuPortal:AE,LoadingMessage:IE,NoOptionsMessage:wE,MultiValue:mN,MultiValueContainer:uN,MultiValueLabel:pN,MultiValueRemove:dN,Option:gN,Placeholder:TN,SelectContainer:kE,SingleValue:CN,ValueContainer:RE},IN=function(t){return Ve(Ve({},wN),t.components)},f0=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function SN(e,t){return!!(e===t||f0(e)&&f0(t))}function AN(e,t){if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(!SN(e[o],t[o]))return!1;return!0}function MN(e,t){t===void 0&&(t=AN);var o=null;function n(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];if(o&&o.lastThis===this&&t(r,o.lastArgs))return o.lastResult;var i=e.apply(this,r);return o={lastResult:i,lastArgs:r,lastThis:this},i}return n.clear=function(){o=null},n}var kN={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},ON=function(t){return Fe("span",L({css:kN},t))},m0=ON,RN={guidance:function(t){var o=t.isSearchable,n=t.isMulti,r=t.tabSelectsValue,s=t.context,i=t.isInitialFocus;switch(s){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(t["aria-label"]||"Select"," is focused ").concat(o?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var o=t.action,n=t.label,r=n===void 0?"":n,s=t.labels,i=t.isDisabled;switch(o){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return i?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(t){var o=t.context,n=t.focused,r=t.options,s=t.label,i=s===void 0?"":s,a=t.selectValue,l=t.isDisabled,c=t.isSelected,u=t.isAppleDevice,p=function(h,y){return h&&h.length?"".concat(h.indexOf(y)+1," of ").concat(h.length):""};if(o==="value"&&a)return"value ".concat(i," focused, ").concat(p(a,n),".");if(o==="menu"&&u){var f=l?" disabled":"",d="".concat(c?" selected":"").concat(f);return"".concat(i).concat(d,", ").concat(p(r,n),".")}return""},onFilter:function(t){var o=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(o?" for search term "+o:"",".")}},DN=function(t){var o=t.ariaSelection,n=t.focusedOption,r=t.focusedValue,s=t.focusableOptions,i=t.isFocused,a=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,p=l.ariaLiveMessages,f=l.getOptionLabel,d=l.inputValue,m=l.isMulti,h=l.isOptionDisabled,y=l.isSearchable,g=l.menuIsOpen,w=l.options,I=l.screenReaderStatus,x=l.tabSelectsValue,A=l.isLoading,R=l["aria-label"],E=l["aria-live"],D=W.useMemo(function(){return Ve(Ve({},RN),p||{})},[p]),B=W.useMemo(function(){var C="";if(o&&D.onChange){var k=o.option,S=o.options,M=o.removedValue,z=o.removedValues,G=o.value,V=function(ce){return Array.isArray(ce)?null:ce},q=M||k||V(G),H=q?f(q):"",J=S||z||void 0,X=J?J.map(f):[],K=Ve({isDisabled:q&&h(q,a),label:H,labels:X},o);C=D.onChange(K)}return C},[o,D,h,a,f]),F=W.useMemo(function(){var C="",k=n||r,S=!!(n&&a&&a.includes(n));if(k&&D.onFocus){var M={focused:k,label:f(k),isDisabled:h(k,a),isSelected:S,options:s,context:k===n?"menu":"value",selectValue:a,isAppleDevice:u};C=D.onFocus(M)}return C},[n,r,f,h,D,s,a,u]),N=W.useMemo(function(){var C="";if(g&&w.length&&!A&&D.onFilter){var k=I({count:s.length});C=D.onFilter({inputValue:d,resultsMessage:k})}return C},[s,d,g,D,w,I,A]),v=(o==null?void 0:o.action)==="initial-input-focus",j=W.useMemo(function(){var C="";if(D.guidance){var k=r?"value":g?"menu":"input";C=D.guidance({"aria-label":R,context:k,isDisabled:n&&h(n,a),isMulti:m,isSearchable:y,tabSelectsValue:x,isInitialFocus:v})}return C},[R,n,r,m,h,y,g,D,a,x,v]),O=Fe(W.Fragment,null,Fe("span",{id:"aria-selection"},B),Fe("span",{id:"aria-focused"},F),Fe("span",{id:"aria-results"},N),Fe("span",{id:"aria-guidance"},j));return Fe(W.Fragment,null,Fe(m0,{id:c},v&&O),Fe(m0,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!v&&O))},EN=DN,au=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],NN=new RegExp("["+au.map(function(e){return e.letters}).join("")+"]","g"),I1={};for(var gc=0;gc<au.length;gc++)for(var bc=au[gc],vc=0;vc<bc.letters.length;vc++)I1[bc.letters[vc]]=bc.base;var S1=function(t){return t.replace(NN,function(o){return I1[o]})},jN=MN(S1),h0=function(t){return t.replace(/^\s+|\s+$/g,"")},LN=function(t){return"".concat(t.label," ").concat(t.value)},zN=function(t){return function(o,n){if(o.data.__isNew__)return!0;var r=Ve({ignoreCase:!0,ignoreAccents:!0,stringify:LN,trim:!0,matchFrom:"any"},t),s=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,l=r.trim,c=r.matchFrom,u=l?h0(n):n,p=l?h0(a(o)):a(o);return s&&(u=u.toLowerCase(),p=p.toLowerCase()),i&&(u=jN(u),p=S1(p)),c==="start"?p.substr(0,u.length)===u:p.indexOf(u)>-1}},BN=["innerRef"];function FN(e){var t=e.innerRef,o=Cn(e,BN),n=pE(o,"onExited","in","enter","exit","appear");return Fe("input",L({ref:t},n,{css:Eu({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var VN=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function GN(e){var t=e.isEnabled,o=e.onBottomArrive,n=e.onBottomLeave,r=e.onTopArrive,s=e.onTopLeave,i=W.useRef(!1),a=W.useRef(!1),l=W.useRef(0),c=W.useRef(null),u=W.useCallback(function(y,g){if(c.current!==null){var w=c.current,I=w.scrollTop,x=w.scrollHeight,A=w.clientHeight,R=c.current,E=g>0,D=x-A-I,B=!1;D>g&&i.current&&(n&&n(y),i.current=!1),E&&a.current&&(s&&s(y),a.current=!1),E&&g>D?(o&&!i.current&&o(y),R.scrollTop=x,B=!0,i.current=!0):!E&&-g>I&&(r&&!a.current&&r(y),R.scrollTop=0,B=!0,a.current=!0),B&&VN(y)}},[o,n,r,s]),p=W.useCallback(function(y){u(y,y.deltaY)},[u]),f=W.useCallback(function(y){l.current=y.changedTouches[0].clientY},[]),d=W.useCallback(function(y){var g=l.current-y.changedTouches[0].clientY;u(y,g)},[u]),m=W.useCallback(function(y){if(y){var g=lE?{passive:!1}:!1;y.addEventListener("wheel",p,g),y.addEventListener("touchstart",f,g),y.addEventListener("touchmove",d,g)}},[d,f,p]),h=W.useCallback(function(y){y&&(y.removeEventListener("wheel",p,!1),y.removeEventListener("touchstart",f,!1),y.removeEventListener("touchmove",d,!1))},[d,f,p]);return W.useEffect(function(){if(t){var y=c.current;return m(y),function(){h(y)}}},[t,m,h]),function(y){c.current=y}}var y0=["boxSizing","height","overflow","paddingRight","position"],g0={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function b0(e){e.cancelable&&e.preventDefault()}function v0(e){e.stopPropagation()}function T0(){var e=this.scrollTop,t=this.scrollHeight,o=e+this.offsetHeight;e===0?this.scrollTop=1:o===t&&(this.scrollTop=e-1)}function P0(){return"ontouchstart"in window||navigator.maxTouchPoints}var x0=!!(typeof window<"u"&&window.document&&window.document.createElement),Gs=0,Nr={capture:!1,passive:!1};function WN(e){var t=e.isEnabled,o=e.accountForScrollbars,n=o===void 0?!0:o,r=W.useRef({}),s=W.useRef(null),i=W.useCallback(function(l){if(x0){var c=document.body,u=c&&c.style;if(n&&y0.forEach(function(m){var h=u&&u[m];r.current[m]=h}),n&&Gs<1){var p=parseInt(r.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,d=window.innerWidth-f+p||0;Object.keys(g0).forEach(function(m){var h=g0[m];u&&(u[m]=h)}),u&&(u.paddingRight="".concat(d,"px"))}c&&P0()&&(c.addEventListener("touchmove",b0,Nr),l&&(l.addEventListener("touchstart",T0,Nr),l.addEventListener("touchmove",v0,Nr))),Gs+=1}},[n]),a=W.useCallback(function(l){if(x0){var c=document.body,u=c&&c.style;Gs=Math.max(Gs-1,0),n&&Gs<1&&y0.forEach(function(p){var f=r.current[p];u&&(u[p]=f)}),c&&P0()&&(c.removeEventListener("touchmove",b0,Nr),l&&(l.removeEventListener("touchstart",T0,Nr),l.removeEventListener("touchmove",v0,Nr)))}},[n]);return W.useEffect(function(){if(t){var l=s.current;return i(l),function(){a(l)}}},[t,i,a]),function(l){s.current=l}}var qN=function(t){var o=t.target;return o.ownerDocument.activeElement&&o.ownerDocument.activeElement.blur()},HN={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ZN(e){var t=e.children,o=e.lockEnabled,n=e.captureEnabled,r=n===void 0?!0:n,s=e.onBottomArrive,i=e.onBottomLeave,a=e.onTopArrive,l=e.onTopLeave,c=GN({isEnabled:r,onBottomArrive:s,onBottomLeave:i,onTopArrive:a,onTopLeave:l}),u=WN({isEnabled:o}),p=function(d){c(d),u(d)};return Fe(W.Fragment,null,o&&Fe("div",{onClick:qN,css:HN}),t(p))}var YN={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},UN=function(t){var o=t.name,n=t.onFocus;return Fe("input",{required:!0,name:o,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:YN,value:"",onChange:function(){}})},JN=UN;function Zp(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function XN(){return Zp(/^iPhone/i)}function A1(){return Zp(/^Mac/i)}function $N(){return Zp(/^iPad/i)||A1()&&navigator.maxTouchPoints>1}function QN(){return XN()||$N()}function KN(){return A1()||QN()}var _N=function(t){return t.label},ej=function(t){return t.label},tj=function(t){return t.value},oj=function(t){return!!t.isDisabled},nj={clearIndicator:FE,container:ME,control:YE,dropdownIndicator:zE,group:$E,groupHeading:KE,indicatorsContainer:DE,indicatorSeparator:GE,input:oN,loadingIndicator:HE,loadingMessage:CE,menu:yE,menuList:TE,menuPortal:SE,multiValue:aN,multiValueLabel:lN,multiValueRemove:cN,noOptionsMessage:xE,option:hN,placeholder:bN,singleValue:PN,valueContainer:OE};var rj={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},sj=4,M1=4,ij=38,aj=M1*2,lj={baseUnit:M1,controlHeight:ij,menuGutter:aj},Tc={borderRadius:sj,colors:rj,spacing:lj},cj={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:p0(),captureMenuScroll:!p0(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:zN(),formatGroupLabel:_N,getOptionLabel:ej,getOptionValue:tj,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:oj,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!iE(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var o=t.count;return"".concat(o," result").concat(o!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function C0(e,t,o,n){var r=R1(e,t,o),s=D1(e,t,o),i=O1(e,t),a=Xa(e,t);return{type:"option",data:t,isDisabled:r,isSelected:s,label:i,value:a,index:n}}function Sa(e,t){return e.options.map(function(o,n){if("options"in o){var r=o.options.map(function(i,a){return C0(e,i,t,a)}).filter(function(i){return I0(e,i)});return r.length>0?{type:"group",data:o,options:r,index:n}:void 0}var s=C0(e,o,t,n);return I0(e,s)?s:void 0}).filter(cE)}function k1(e){return e.reduce(function(t,o){return o.type==="group"?t.push.apply(t,Wp(o.options.map(function(n){return n.data}))):t.push(o.data),t},[])}function w0(e,t){return e.reduce(function(o,n){return n.type==="group"?o.push.apply(o,Wp(n.options.map(function(r){return{data:r.data,id:"".concat(t,"-").concat(n.index,"-").concat(r.index)}}))):o.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),o},[])}function uj(e,t){return k1(Sa(e,t))}function I0(e,t){var o=e.inputValue,n=o===void 0?"":o,r=t.data,s=t.isSelected,i=t.label,a=t.value;return(!N1(e)||!s)&&E1(e,{label:i,value:a,data:r},n)}function pj(e,t){var o=e.focusedValue,n=e.selectValue,r=n.indexOf(o);if(r>-1){var s=t.indexOf(o);if(s>-1)return o;if(r<t.length)return t[r]}return null}function dj(e,t){var o=e.focusedOption;return o&&t.indexOf(o)>-1?o:t[0]}var Pc=function(t,o){var n,r=(n=t.find(function(s){return s.data===o}))===null||n===void 0?void 0:n.id;return r||null},O1=function(t,o){return t.getOptionLabel(o)},Xa=function(t,o){return t.getOptionValue(o)};function R1(e,t,o){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,o):!1}function D1(e,t,o){if(o.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,o);var n=Xa(e,t);return o.some(function(r){return Xa(e,r)===n})}function E1(e,t,o){return e.filterOption?e.filterOption(t,o):!0}var N1=function(t){var o=t.hideSelectedOptions,n=t.isMulti;return o===void 0?n:o},fj=1,j1=(function(e){VD(o,e);var t=WD(o);function o(n){var r;if(BD(this,o),r=t.call(this,n),r.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(l){r.controlRef=l},r.focusedOptionRef=null,r.getFocusedOptionRef=function(l){r.focusedOptionRef=l},r.menuListRef=null,r.getMenuListRef=function(l){r.menuListRef=l},r.inputRef=null,r.getInputRef=function(l){r.inputRef=l},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(l,c){var u=r.props,p=u.onChange,f=u.name;c.name=f,r.ariaOnChange(l,c),p(l,c)},r.setValue=function(l,c,u){var p=r.props,f=p.closeMenuOnSelect,d=p.isMulti,m=p.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:m}),f&&(r.setState({inputIsHiddenAfterUpdate:!d}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(l,{action:c,option:u})},r.selectOption=function(l){var c=r.props,u=c.blurInputOnSelect,p=c.isMulti,f=c.name,d=r.state.selectValue,m=p&&r.isOptionSelected(l,d),h=r.isOptionDisabled(l,d);if(m){var y=r.getOptionValue(l);r.setValue(d.filter(function(g){return r.getOptionValue(g)!==y}),"deselect-option",l)}else if(!h)p?r.setValue([].concat(Wp(d),[l]),"select-option",l):r.setValue(l,"select-option");else{r.ariaOnChange(l,{action:"select-option",option:l,name:f});return}u&&r.blurInput()},r.removeValue=function(l){var c=r.props.isMulti,u=r.state.selectValue,p=r.getOptionValue(l),f=u.filter(function(m){return r.getOptionValue(m)!==p}),d=pa(c,f,f[0]||null);r.onChange(d,{action:"remove-value",removedValue:l}),r.focusInput()},r.clearValue=function(){var l=r.state.selectValue;r.onChange(pa(r.props.isMulti,[],null),{action:"clear",removedValues:l})},r.popValue=function(){var l=r.props.isMulti,c=r.state.selectValue,u=c[c.length-1],p=c.slice(0,c.length-1),f=pa(l,p,p[0]||null);u&&r.onChange(f,{action:"pop-value",removedValue:u})},r.getFocusedOptionId=function(l){return Pc(r.state.focusableOptionsWithIds,l)},r.getFocusableOptionsWithIds=function(){return w0(Sa(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return tE.apply(void 0,[r.props.classNamePrefix].concat(c))},r.getOptionLabel=function(l){return O1(r.props,l)},r.getOptionValue=function(l){return Xa(r.props,l)},r.getStyles=function(l,c){var u=r.props.unstyled,p=nj[l](c,u);p.boxSizing="border-box";var f=r.props.styles[l];return f?f(p,c):p},r.getClassNames=function(l,c){var u,p;return(u=(p=r.props.classNames)[l])===null||u===void 0?void 0:u.call(p,c)},r.getElementId=function(l){return"".concat(r.state.instancePrefix,"-").concat(l)},r.getComponents=function(){return IN(r.props)},r.buildCategorizedOptions=function(){return Sa(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return k1(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(l,c){r.setState({ariaSelection:Ve({value:l},c)})},r.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(l){r.blockOptionHover=!1},r.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&r.onMenuClose():c&&r.openMenu("first"):(c&&(r.openAfterFocus=!0),r.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},r.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!r.props.isDisabled){var c=r.props,u=c.isMulti,p=c.menuIsOpen;r.focusInput(),p?(r.setState({inputIsHiddenAfterUpdate:!u}),r.onMenuClose()):r.openMenu("first"),l.preventDefault()}},r.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(r.clearValue(),l.preventDefault(),r.openAfterFocus=!1,l.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(l){typeof r.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Vl(l.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(l)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(r.initialTouchX=u.clientX,r.initialTouchY=u.clientY,r.userIsDragging=!1)},r.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var p=Math.abs(u.clientX-r.initialTouchX),f=Math.abs(u.clientY-r.initialTouchY),d=5;r.userIsDragging=p>d||f>d}},r.onTouchEnd=function(l){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(l.target)&&r.menuListRef&&!r.menuListRef.contains(l.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(l){r.userIsDragging||r.onControlMouseDown(l)},r.onClearIndicatorTouchEnd=function(l){r.userIsDragging||r.onClearIndicatorMouseDown(l)},r.onDropdownIndicatorTouchEnd=function(l){r.userIsDragging||r.onDropdownIndicatorMouseDown(l)},r.handleInputChange=function(l){var c=r.props.inputValue,u=l.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(u,{action:"input-change",prevInputValue:c}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(l){r.props.onFocus&&r.props.onFocus(l),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(l){var c=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(l),r.onInputChange("",{action:"input-blur",prevInputValue:c}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(l){if(!(r.blockOptionHover||r.state.focusedOption===l)){var c=r.getFocusableOptions(),u=c.indexOf(l);r.setState({focusedOption:l,focusedOptionId:u>-1?r.getFocusedOptionId(l):null})}},r.shouldHideSelectedOptions=function(){return N1(r.props)},r.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),r.focus()},r.onKeyDown=function(l){var c=r.props,u=c.isMulti,p=c.backspaceRemovesValue,f=c.escapeClearsValue,d=c.inputValue,m=c.isClearable,h=c.isDisabled,y=c.menuIsOpen,g=c.onKeyDown,w=c.tabSelectsValue,I=c.openMenuOnFocus,x=r.state,A=x.focusedOption,R=x.focusedValue,E=x.selectValue;if(!h&&!(typeof g=="function"&&(g(l),l.defaultPrevented))){switch(r.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||d)return;r.focusValue("previous");break;case"ArrowRight":if(!u||d)return;r.focusValue("next");break;case"Delete":case"Backspace":if(d)return;if(R)r.removeValue(R);else{if(!p)return;u?r.popValue():m&&r.clearValue()}break;case"Tab":if(r.isComposing||l.shiftKey||!y||!w||!A||I&&r.isOptionSelected(A,E))return;r.selectOption(A);break;case"Enter":if(l.keyCode===229)break;if(y){if(!A||r.isComposing)return;r.selectOption(A);break}return;case"Escape":y?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:d}),r.onMenuClose()):m&&f&&r.clearValue();break;case" ":if(d)return;if(!y){r.openMenu("first");break}if(!A)return;r.selectOption(A);break;case"ArrowUp":y?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":y?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!y)return;r.focusOption("pageup");break;case"PageDown":if(!y)return;r.focusOption("pagedown");break;case"Home":if(!y)return;r.focusOption("first");break;case"End":if(!y)return;r.focusOption("last");break;default:return}l.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++fj),r.state.selectValue=c0(n.value),n.menuIsOpen&&r.state.selectValue.length){var s=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=s,r.state.focusedOption=i[a],r.state.focusedOptionId=Pc(s,i[a])}return r}return FD(o,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&u0(this.menuListRef,this.focusedOptionRef),KN()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(r){var s=this.props,i=s.isDisabled,a=s.menuIsOpen,l=this.state.isFocused;(l&&!i&&r.isDisabled||l&&a&&!r.menuIsOpen)&&this.focusInput(),l&&i&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!i&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(u0(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,s){this.props.onInputChange(r,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var s=this,i=this.state,a=i.selectValue,l=i.isFocused,c=this.buildFocusableOptions(),u=r==="first"?0:c.length-1;if(!this.props.isMulti){var p=c.indexOf(a[0]);p>-1&&(u=p)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[u],focusedOptionId:this.getFocusedOptionId(c[u])},function(){return s.onMenuOpen()})}},{key:"focusValue",value:function(r){var s=this.state,i=s.selectValue,a=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=i.indexOf(a);a||(l=-1);var c=i.length-1,u=-1;if(i.length){switch(r){case"previous":l===0?u=0:l===-1?u=c:u=l-1;break;case"next":l>-1&&l<c&&(u=l+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:i[u]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,i=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var l=0,c=a.indexOf(i);i||(c=-1),r==="up"?l=c>0?c-1:a.length-1:r==="down"?l=(c+1)%a.length:r==="pageup"?(l=c-s,l<0&&(l=0)):r==="pagedown"?(l=c+s,l>a.length-1&&(l=a.length-1)):r==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[l])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Tc):Ve(Ve({},Tc),this.props.theme):Tc})},{key:"getCommonProps",value:function(){var r=this.clearValue,s=this.cx,i=this.getStyles,a=this.getClassNames,l=this.getValue,c=this.selectOption,u=this.setValue,p=this.props,f=p.isMulti,d=p.isRtl,m=p.options,h=this.hasValue();return{clearValue:r,cx:s,getStyles:i,getClassNames:a,getValue:l,hasValue:h,isMulti:f,isRtl:d,options:m,selectOption:c,selectProps:p,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,s=r.isClearable,i=r.isMulti;return s===void 0?i:s}},{key:"isOptionDisabled",value:function(r,s){return R1(this.props,r,s)}},{key:"isOptionSelected",value:function(r,s){return D1(this.props,r,s)}},{key:"filterOption",value:function(r,s){return E1(this.props,r,s)}},{key:"formatOptionLabel",value:function(r,s){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(r,{context:s,inputValue:i,selectValue:a})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var r=this.props,s=r.isDisabled,i=r.isSearchable,a=r.inputId,l=r.inputValue,c=r.tabIndex,u=r.form,p=r.menuIsOpen,f=r.required,d=this.getComponents(),m=d.Input,h=this.state,y=h.inputIsHidden,g=h.ariaSelection,w=this.commonProps,I=a||this.getElementId("input"),x=Ve(Ve(Ve({"aria-autocomplete":"list","aria-expanded":p,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},p&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(g==null?void 0:g.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?P.createElement(m,L({},w,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:I,innerRef:this.getInputRef,isDisabled:s,isHidden:y,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:u,type:"text",value:l},x)):P.createElement(FN,L({id:I,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ua,onFocus:this.onInputFocus,disabled:s,tabIndex:c,inputMode:"none",form:u,value:""},x))})},{key:"renderPlaceholderOrValue",value:function(){var r=this,s=this.getComponents(),i=s.MultiValue,a=s.MultiValueContainer,l=s.MultiValueLabel,c=s.MultiValueRemove,u=s.SingleValue,p=s.Placeholder,f=this.commonProps,d=this.props,m=d.controlShouldRenderValue,h=d.isDisabled,y=d.isMulti,g=d.inputValue,w=d.placeholder,I=this.state,x=I.selectValue,A=I.focusedValue,R=I.isFocused;if(!this.hasValue()||!m)return g?null:P.createElement(p,L({},f,{key:"placeholder",isDisabled:h,isFocused:R,innerProps:{id:this.getElementId("placeholder")}}),w);if(y)return x.map(function(D,B){var F=D===A,N="".concat(r.getOptionLabel(D),"-").concat(r.getOptionValue(D));return P.createElement(i,L({},f,{components:{Container:a,Label:l,Remove:c},isFocused:F,isDisabled:h,key:N,index:B,removeProps:{onClick:function(){return r.removeValue(D)},onTouchEnd:function(){return r.removeValue(D)},onMouseDown:function(j){j.preventDefault()}},data:D}),r.formatOptionLabel(D,"value"))});if(g)return null;var E=x[0];return P.createElement(u,L({},f,{data:E,isDisabled:h}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),s=r.ClearIndicator,i=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!this.isClearable()||!s||l||!this.hasValue()||c)return null;var p={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return P.createElement(s,L({},i,{innerProps:p,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),s=r.LoadingIndicator,i=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!s||!c)return null;var p={"aria-hidden":"true"};return P.createElement(s,L({},i,{innerProps:p,isDisabled:l,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),s=r.DropdownIndicator,i=r.IndicatorSeparator;if(!s||!i)return null;var a=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return P.createElement(i,L({},a,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),s=r.DropdownIndicator;if(!s)return null;var i=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return P.createElement(s,L({},i,{innerProps:c,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var r=this,s=this.getComponents(),i=s.Group,a=s.GroupHeading,l=s.Menu,c=s.MenuList,u=s.MenuPortal,p=s.LoadingMessage,f=s.NoOptionsMessage,d=s.Option,m=this.commonProps,h=this.state.focusedOption,y=this.props,g=y.captureMenuScroll,w=y.inputValue,I=y.isLoading,x=y.loadingMessage,A=y.minMenuHeight,R=y.maxMenuHeight,E=y.menuIsOpen,D=y.menuPlacement,B=y.menuPosition,F=y.menuPortalTarget,N=y.menuShouldBlockScroll,v=y.menuShouldScrollIntoView,j=y.noOptionsMessage,O=y.onMenuScrollToTop,C=y.onMenuScrollToBottom;if(!E)return null;var k=function(H,J){var X=H.type,K=H.data,Q=H.isDisabled,ce=H.isSelected,re=H.label,Y=H.value,$=h===K,_=Q?void 0:function(){return r.onOptionHover(K)},ue=Q?void 0:function(){return r.selectOption(K)},oe="".concat(r.getElementId("option"),"-").concat(J),de={id:oe,onClick:ue,onMouseMove:_,onMouseOver:_,tabIndex:-1,role:"option","aria-selected":r.state.isAppleDevice?void 0:ce};return P.createElement(d,L({},m,{innerProps:de,data:K,isDisabled:Q,isSelected:ce,key:oe,label:re,type:X,value:Y,isFocused:$,innerRef:$?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(H.data,"menu"))},S;if(this.hasOptions())S=this.getCategorizedOptions().map(function(q){if(q.type==="group"){var H=q.data,J=q.options,X=q.index,K="".concat(r.getElementId("group"),"-").concat(X),Q="".concat(K,"-heading");return P.createElement(i,L({},m,{key:K,data:H,options:J,Heading:a,headingProps:{id:Q,data:q.data},label:r.formatGroupLabel(q.data)}),q.options.map(function(ce){return k(ce,"".concat(X,"-").concat(ce.index))}))}else if(q.type==="option")return k(q,"".concat(q.index))});else if(I){var M=x({inputValue:w});if(M===null)return null;S=P.createElement(p,m,M)}else{var z=j({inputValue:w});if(z===null)return null;S=P.createElement(f,m,z)}var G={minMenuHeight:A,maxMenuHeight:R,menuPlacement:D,menuPosition:B,menuShouldScrollIntoView:v},V=P.createElement(gE,L({},m,G),function(q){var H=q.ref,J=q.placerProps,X=J.placement,K=J.maxHeight;return P.createElement(l,L({},m,G,{innerRef:H,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:I,placement:X}),P.createElement(ZN,{captureEnabled:g,onTopArrive:O,onBottomArrive:C,lockEnabled:N},function(Q){return P.createElement(c,L({},m,{innerRef:function(re){r.getMenuListRef(re),Q(re)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:r.getElementId("listbox")},isLoading:I,maxHeight:K,focusedOption:h}),S)}))});return F||B==="fixed"?P.createElement(u,L({},m,{appendTo:F,controlElement:this.controlRef,menuPlacement:D,menuPosition:B}),V):V}},{key:"renderFormField",value:function(){var r=this,s=this.props,i=s.delimiter,a=s.isDisabled,l=s.isMulti,c=s.name,u=s.required,p=this.state.selectValue;if(u&&!this.hasValue()&&!a)return P.createElement(JN,{name:c,onFocus:this.onValueInputFocus});if(!(!c||a))if(l)if(i){var f=p.map(function(h){return r.getOptionValue(h)}).join(i);return P.createElement("input",{name:c,type:"hidden",value:f})}else{var d=p.length>0?p.map(function(h,y){return P.createElement("input",{key:"i-".concat(y),name:c,type:"hidden",value:r.getOptionValue(h)})}):P.createElement("input",{name:c,type:"hidden",value:""});return P.createElement("div",null,d)}else{var m=p[0]?this.getOptionValue(p[0]):"";return P.createElement("input",{name:c,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,s=this.state,i=s.ariaSelection,a=s.focusedOption,l=s.focusedValue,c=s.isFocused,u=s.selectValue,p=this.getFocusableOptions();return P.createElement(EN,L({},r,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:a,focusedValue:l,isFocused:c,selectValue:u,focusableOptions:p,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),s=r.Control,i=r.IndicatorsContainer,a=r.SelectContainer,l=r.ValueContainer,c=this.props,u=c.className,p=c.id,f=c.isDisabled,d=c.menuIsOpen,m=this.state.isFocused,h=this.commonProps=this.getCommonProps();return P.createElement(a,L({},h,{className:u,innerProps:{id:p,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:m}),this.renderLiveRegion(),P.createElement(s,L({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:m,menuIsOpen:d}),P.createElement(l,L({},h,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),P.createElement(i,L({},h,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,s){var i=s.prevProps,a=s.clearFocusValueOnUpdate,l=s.inputIsHiddenAfterUpdate,c=s.ariaSelection,u=s.isFocused,p=s.prevWasFocused,f=s.instancePrefix,d=r.options,m=r.value,h=r.menuIsOpen,y=r.inputValue,g=r.isMulti,w=c0(m),I={};if(i&&(m!==i.value||d!==i.options||h!==i.menuIsOpen||y!==i.inputValue)){var x=h?uj(r,w):[],A=h?w0(Sa(r,w),"".concat(f,"-option")):[],R=a?pj(s,w):null,E=dj(s,x),D=Pc(A,E);I={selectValue:w,focusedOption:E,focusedOptionId:D,focusableOptionsWithIds:A,focusedValue:R,clearFocusValueOnUpdate:!1}}var B=l!=null&&r!==i?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},F=c,N=u&&p;return u&&!N&&(F={value:pa(g,w,w[0]||null),options:w,action:"initial-input-focus"},N=!p),(c==null?void 0:c.action)==="initial-input-focus"&&(F=null),Ve(Ve(Ve({},I),B),{},{prevProps:r,ariaSelection:F,prevWasFocused:N})}}]),o})(W.Component);j1.defaultProps=cj;var mj=W.forwardRef(function(e,t){var o=zD(e);return P.createElement(j1,L({ref:t},o))}),hj=mj;function Gl({defaultOption:e,options:t,onChange:o,isSearchable:n=!1,className:r="",disabled:s=!1}){const i=(a,l)=>{a&&o(a)};return b.jsx("div",{className:xe("w-full",r),children:b.jsx(hj,{isClearable:!1,isSearchable:n,isMulti:!1,defaultValue:e,options:t,onChange:i,isDisabled:s})})}const ni={[no.KG]:"kg",[no.Gram]:"g",[no.LB]:"lb",[no.Ounce]:"oz"},S0=[{value:no.KG,label:ni[no.KG]},{value:no.Gram,label:ni[no.Gram]},{value:no.LB,label:ni[no.LB]},{value:no.Ounce,label:ni[no.Ounce]}];function yj({onChange:e,className:t="",value:o=no.KG}){const n=r=>{e(r.value)};return b.jsx(Gl,{options:S0,defaultOption:S0[Number(o)],onChange:n,className:t})}const Mn={[Rt.Meter]:"m",[Rt.CM]:"cm",[Rt.KM]:"km",[Rt.Foot]:"ft",[Rt.Mile]:"mi",[Rt.Inch]:"in",[Rt.Yard]:"yd"},A0=[{value:Rt.Meter,label:Mn[Rt.Meter]},{value:Rt.CM,label:Mn[Rt.CM]},{value:Rt.KM,label:Mn[Rt.KM]},{value:Rt.Foot,label:Mn[Rt.Foot]},{value:Rt.Mile,label:Mn[Rt.Mile]},{value:Rt.Inch,label:Mn[Rt.Inch]},{value:Rt.Yard,label:Mn[Rt.Yard]}];function gj({onChange:e,className:t="",value:o=Rt.Meter}){const n=r=>{e(r.value)};return b.jsx(Gl,{options:A0,defaultOption:A0[Number(o)],onChange:n,className:t})}const lu=["Ascending","Descending"],M0=[{value:0,label:lu[0]},{value:1,label:lu[1]}];function bj({onChange:e,className:t="",value:o=0}){const n=r=>{e(r.value)};return b.jsx(Gl,{options:M0,defaultOption:M0[o],onChange:n,className:t})}function vj({letter:e,className:t="",onClick:o}){return b.jsx(ao,{onClick:o,className:xe("LetterAvatar flex items-center justify-center rounded-full w-full h-full bg-blue-300 text-white font-bold",t),children:b.jsx("svg",{viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%",role:"img","aria-label":e,xmlns:"http://www.w3.org/2000/svg",children:b.jsx("text",{x:"50",y:"50",textAnchor:"middle",dominantBaseline:"central",fontFamily:"inherit",fontWeight:"700",fontSize:"80",fill:"currentColor",children:e})})})}function L1({letter:e="N",className:t="w-full h-full",imgSrc:o="",onClick:n=Ye}){return o?b.jsx(fh,{className:"Avatar rounded-full w-full h-full",src:o,alt:e,onClick:n}):b.jsx(vj,{onClick:n,letter:e,className:t})}function Tj({name:e,onClick:t=Ye,className:o="",avatarClassName:n="w-8 h-8",imgSrc:r=""}){return b.jsxs(Yt,{className:xe("AvatarTag bg-white rounded-lg py-1",o),children:[b.jsx(L1,{className:n,onClick:t,letter:e==null?void 0:e.charAt(0).toUpperCase(),imgSrc:r}),b.jsx(Ka,{label:e})]})}exports.A=G2;exports.ATarget=th;exports.AddButton=PT;exports.AlertWrap=OT;exports.ArenaTag=uD;exports.Autocomplete=ET;exports.Avatar=L1;exports.AvatarTag=Tj;exports.Button=tl;exports.CacheButton=eT;exports.CalendarTag=$R;exports.CategoryTag=iD;exports.ChatTag=oD;exports.CheckboxGroup=zT;exports.ClickableDiv=ao;exports.CloseIcon=$a;exports.CoachTag=hD;exports.CollectionsTag=pD;exports.Column=wT;exports.CommentEditor=NT;exports.CommentTag=aD;exports.Container=bu;exports.CopyTag=_R;exports.Copyright=a5;exports.CreatePostTag=TD;exports.CreateTag=QR;exports.DateDisplay=uO;exports.DatePicker=tk;exports.DateRange=cO;exports.DateTimePicker=lO;exports.Deletable=AT;exports.DuelVersus=jT;exports.EditIcon=du;exports.EditableBlock=IT;exports.EmailInput=H2;exports.ErrorMessage=MT;exports.EventTag=dD;exports.ExpandableContainer=i5;exports.ExploreTag=UR;exports.Form=CT;exports.GameScore=e5;exports.GameTag=yD;exports.H1=Ka;exports.HomeTag=YR;exports.ImageTag=bD;exports.Img=fh;exports.InterestIconTooltip=GR;exports.InterestTag=sD;exports.LeaderboardTag=gD;exports.LengthUnitLabels=Mn;exports.LengthUnitPicker=gj;exports.LikeSection=MD;exports.List=hs;exports.LoadingIcon=el;exports.LoadingIndicator=Y2;exports.LocationTag=ID;exports.LogoutTag=tD;exports.MapTag=KR;exports.MarketTag=fD;exports.MenuTooltip=VR;exports.MiddleDot=Gp;exports.Modal=ph;exports.ModalButton=TT;exports.ModalItem=vT;exports.MonthPicker=ok;exports.NavArrows=DT;exports.Navbar=qR;exports.NavigationControlPosition=$g;exports.NewsfeedTag=XR;exports.NotFound=mh;exports.NotificationTag=rD;exports.OrderLabels=lu;exports.OrderPicker=bj;exports.OsmMap=VO;exports.P=fu;exports.PartnersTag=JR;exports.PasswordInput=Z2;exports.Picker=Gl;exports.PollTag=vD;exports.PrivateTag=eD;exports.ProfileList=t5;exports.Row=Qa;exports.SaveCancelButtons=dh;exports.SearchBar=kT;exports.SendIcon=eh;exports.Span=Nn;exports.StaticColumn=hr;exports.StaticGameScore=r5;exports.StaticImg=gu;exports.StaticRow=Yt;exports.StyledButton=Aa;exports.SubjectReactionSection=RD;exports.SubjectReactionType=c1;exports.SvgButton=nh;exports.SvgTooltip=Vp;exports.Tabs=RT;exports.Tag=ST;exports.TeamTag=cD;exports.TextInput=q2;exports.TextPostTag=PD;exports.TextUpdater=_T;exports.Textarea=W2;exports.TextareaAutosize=hh;exports.TimeAgo=n5;exports.TimePicker=kA;exports.ToggleButton=_2;exports.Tooltip=l1;exports.UpArrowTag=nD;exports.UserTag=mD;exports.VerticalLine=SD;exports.VerticalStaticInterestTag=lD;exports.WeightUnitLabels=ni;exports.WeightUnitPicker=yj;exports.a=he;exports.formatDate=Zg;exports.formatDateTime=tu;exports.formatDateTimeRange=Ug;exports.formatTime=eu;exports.getDefaultExportFromCjs=sn;exports.isSameDate=Yg;
|
|
376
|
+
`]))),HE=function(t,o){var n=t.isFocused,r=t.size,s=t.theme,i=s.colors,a=s.spacing.baseUnit;return Ve({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},o?{}:{color:n?i.neutral60:i.neutral20,padding:a*2})},yc=function(t){var o=t.delay,n=t.offset;return Fe("span",{css:Eu({animation:"".concat(qE," 1s ease-in-out ").concat(o,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ZE=function(t){var o=t.innerProps,n=t.isRtl,r=t.size,s=r===void 0?4:r,i=Cn(t,jE);return Fe("div",L({},jt(Ve(Ve({},i),{},{innerProps:o,isRtl:n,size:s}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),o),Fe(yc,{delay:0,offset:n}),Fe(yc,{delay:160,offset:!0}),Fe(yc,{delay:320,offset:!n}))},YE=function(t,o){var n=t.isDisabled,r=t.isFocused,s=t.theme,i=s.colors,a=s.borderRadius,l=s.spacing;return Ve({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},o?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},UE=function(t){var o=t.children,n=t.isDisabled,r=t.isFocused,s=t.innerRef,i=t.innerProps,a=t.menuIsOpen;return Fe("div",L({ref:s},jt(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),o)},JE=UE,XE=["data"],$E=function(t,o){var n=t.theme.spacing;return o?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},QE=function(t){var o=t.children,n=t.cx,r=t.getStyles,s=t.getClassNames,i=t.Heading,a=t.headingProps,l=t.innerProps,c=t.label,u=t.theme,p=t.selectProps;return Fe("div",L({},jt(t,"group",{group:!0}),l),Fe(i,L({},a,{selectProps:p,theme:u,getStyles:r,getClassNames:s,cx:n}),c),Fe("div",null,o))},KE=function(t,o){var n=t.theme,r=n.colors,s=n.spacing;return Ve({label:"group",cursor:"default",display:"block"},o?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},_E=function(t){var o=m1(t);o.data;var n=Cn(o,XE);return Fe("div",L({},jt(t,"groupHeading",{"group-heading":!0}),n))},eN=QE,tN=["innerRef","isDisabled","isHidden","inputClassName"],oN=function(t,o){var n=t.isDisabled,r=t.value,s=t.theme,i=s.spacing,a=s.colors;return Ve(Ve({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},nN),o?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},C1={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},nN={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ve({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},C1)},rN=function(t){return Ve({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},C1)},sN=function(t){var o=t.cx,n=t.value,r=m1(t),s=r.innerRef,i=r.isDisabled,a=r.isHidden,l=r.inputClassName,c=Cn(r,tN);return Fe("div",L({},jt(t,"input",{"input-container":!0}),{"data-value":n||""}),Fe("input",L({className:o({input:!0},l),ref:s,style:rN(a),disabled:i},c)))},iN=sN,aN=function(t,o){var n=t.theme,r=n.spacing,s=n.borderRadius,i=n.colors;return Ve({label:"multiValue",display:"flex",minWidth:0},o?{}:{backgroundColor:i.neutral10,borderRadius:s/2,margin:r.baseUnit/2})},lN=function(t,o){var n=t.theme,r=n.borderRadius,s=n.colors,i=t.cropWithEllipsis;return Ve({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},o?{}:{borderRadius:r/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},cN=function(t,o){var n=t.theme,r=n.spacing,s=n.borderRadius,i=n.colors,a=t.isFocused;return Ve({alignItems:"center",display:"flex"},o?{}:{borderRadius:s/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},w1=function(t){var o=t.children,n=t.innerProps;return Fe("div",n,o)},uN=w1,pN=w1;function dN(e){var t=e.children,o=e.innerProps;return Fe("div",L({role:"button"},o),t||Fe(Hp,{size:14}))}var fN=function(t){var o=t.children,n=t.components,r=t.data,s=t.innerProps,i=t.isDisabled,a=t.removeProps,l=t.selectProps,c=n.Container,u=n.Label,p=n.Remove;return Fe(c,{data:r,innerProps:Ve(Ve({},jt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),s),selectProps:l},Fe(u,{data:r,innerProps:Ve({},jt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},o),Fe(p,{data:r,innerProps:Ve(Ve({},jt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(o||"option")},a),selectProps:l}))},mN=fN,hN=function(t,o){var n=t.isDisabled,r=t.isFocused,s=t.isSelected,i=t.theme,a=i.spacing,l=i.colors;return Ve({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},o?{}:{backgroundColor:s?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:s?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:s?l.primary:l.primary50}})},yN=function(t){var o=t.children,n=t.isDisabled,r=t.isFocused,s=t.isSelected,i=t.innerRef,a=t.innerProps;return Fe("div",L({},jt(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":s}),{ref:i,"aria-disabled":n},a),o)},gN=yN,bN=function(t,o){var n=t.theme,r=n.spacing,s=n.colors;return Ve({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},o?{}:{color:s.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},vN=function(t){var o=t.children,n=t.innerProps;return Fe("div",L({},jt(t,"placeholder",{placeholder:!0}),n),o)},TN=vN,PN=function(t,o){var n=t.isDisabled,r=t.theme,s=r.spacing,i=r.colors;return Ve({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},o?{}:{color:n?i.neutral40:i.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},xN=function(t){var o=t.children,n=t.isDisabled,r=t.innerProps;return Fe("div",L({},jt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),o)},CN=xN,wN={ClearIndicator:VE,Control:JE,DropdownIndicator:BE,DownChevron:P1,CrossIcon:Hp,Group:eN,GroupHeading:_E,IndicatorsContainer:EE,IndicatorSeparator:WE,Input:iN,LoadingIndicator:ZE,Menu:vE,MenuList:PE,MenuPortal:AE,LoadingMessage:IE,NoOptionsMessage:wE,MultiValue:mN,MultiValueContainer:uN,MultiValueLabel:pN,MultiValueRemove:dN,Option:gN,Placeholder:TN,SelectContainer:kE,SingleValue:CN,ValueContainer:RE},IN=function(t){return Ve(Ve({},wN),t.components)},f0=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function SN(e,t){return!!(e===t||f0(e)&&f0(t))}function AN(e,t){if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(!SN(e[o],t[o]))return!1;return!0}function MN(e,t){t===void 0&&(t=AN);var o=null;function n(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];if(o&&o.lastThis===this&&t(r,o.lastArgs))return o.lastResult;var i=e.apply(this,r);return o={lastResult:i,lastArgs:r,lastThis:this},i}return n.clear=function(){o=null},n}var kN={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},ON=function(t){return Fe("span",L({css:kN},t))},m0=ON,RN={guidance:function(t){var o=t.isSearchable,n=t.isMulti,r=t.tabSelectsValue,s=t.context,i=t.isInitialFocus;switch(s){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(t["aria-label"]||"Select"," is focused ").concat(o?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var o=t.action,n=t.label,r=n===void 0?"":n,s=t.labels,i=t.isDisabled;switch(o){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return i?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(t){var o=t.context,n=t.focused,r=t.options,s=t.label,i=s===void 0?"":s,a=t.selectValue,l=t.isDisabled,c=t.isSelected,u=t.isAppleDevice,p=function(h,y){return h&&h.length?"".concat(h.indexOf(y)+1," of ").concat(h.length):""};if(o==="value"&&a)return"value ".concat(i," focused, ").concat(p(a,n),".");if(o==="menu"&&u){var f=l?" disabled":"",d="".concat(c?" selected":"").concat(f);return"".concat(i).concat(d,", ").concat(p(r,n),".")}return""},onFilter:function(t){var o=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(o?" for search term "+o:"",".")}},DN=function(t){var o=t.ariaSelection,n=t.focusedOption,r=t.focusedValue,s=t.focusableOptions,i=t.isFocused,a=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,p=l.ariaLiveMessages,f=l.getOptionLabel,d=l.inputValue,m=l.isMulti,h=l.isOptionDisabled,y=l.isSearchable,g=l.menuIsOpen,w=l.options,I=l.screenReaderStatus,x=l.tabSelectsValue,A=l.isLoading,R=l["aria-label"],E=l["aria-live"],D=W.useMemo(function(){return Ve(Ve({},RN),p||{})},[p]),B=W.useMemo(function(){var C="";if(o&&D.onChange){var k=o.option,S=o.options,M=o.removedValue,z=o.removedValues,G=o.value,V=function(ce){return Array.isArray(ce)?null:ce},q=M||k||V(G),H=q?f(q):"",J=S||z||void 0,X=J?J.map(f):[],K=Ve({isDisabled:q&&h(q,a),label:H,labels:X},o);C=D.onChange(K)}return C},[o,D,h,a,f]),F=W.useMemo(function(){var C="",k=n||r,S=!!(n&&a&&a.includes(n));if(k&&D.onFocus){var M={focused:k,label:f(k),isDisabled:h(k,a),isSelected:S,options:s,context:k===n?"menu":"value",selectValue:a,isAppleDevice:u};C=D.onFocus(M)}return C},[n,r,f,h,D,s,a,u]),N=W.useMemo(function(){var C="";if(g&&w.length&&!A&&D.onFilter){var k=I({count:s.length});C=D.onFilter({inputValue:d,resultsMessage:k})}return C},[s,d,g,D,w,I,A]),v=(o==null?void 0:o.action)==="initial-input-focus",j=W.useMemo(function(){var C="";if(D.guidance){var k=r?"value":g?"menu":"input";C=D.guidance({"aria-label":R,context:k,isDisabled:n&&h(n,a),isMulti:m,isSearchable:y,tabSelectsValue:x,isInitialFocus:v})}return C},[R,n,r,m,h,y,g,D,a,x,v]),O=Fe(W.Fragment,null,Fe("span",{id:"aria-selection"},B),Fe("span",{id:"aria-focused"},F),Fe("span",{id:"aria-results"},N),Fe("span",{id:"aria-guidance"},j));return Fe(W.Fragment,null,Fe(m0,{id:c},v&&O),Fe(m0,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!v&&O))},EN=DN,au=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],NN=new RegExp("["+au.map(function(e){return e.letters}).join("")+"]","g"),I1={};for(var gc=0;gc<au.length;gc++)for(var bc=au[gc],vc=0;vc<bc.letters.length;vc++)I1[bc.letters[vc]]=bc.base;var S1=function(t){return t.replace(NN,function(o){return I1[o]})},jN=MN(S1),h0=function(t){return t.replace(/^\s+|\s+$/g,"")},LN=function(t){return"".concat(t.label," ").concat(t.value)},zN=function(t){return function(o,n){if(o.data.__isNew__)return!0;var r=Ve({ignoreCase:!0,ignoreAccents:!0,stringify:LN,trim:!0,matchFrom:"any"},t),s=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,l=r.trim,c=r.matchFrom,u=l?h0(n):n,p=l?h0(a(o)):a(o);return s&&(u=u.toLowerCase(),p=p.toLowerCase()),i&&(u=jN(u),p=S1(p)),c==="start"?p.substr(0,u.length)===u:p.indexOf(u)>-1}},BN=["innerRef"];function FN(e){var t=e.innerRef,o=Cn(e,BN),n=pE(o,"onExited","in","enter","exit","appear");return Fe("input",L({ref:t},n,{css:Eu({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var VN=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function GN(e){var t=e.isEnabled,o=e.onBottomArrive,n=e.onBottomLeave,r=e.onTopArrive,s=e.onTopLeave,i=W.useRef(!1),a=W.useRef(!1),l=W.useRef(0),c=W.useRef(null),u=W.useCallback(function(y,g){if(c.current!==null){var w=c.current,I=w.scrollTop,x=w.scrollHeight,A=w.clientHeight,R=c.current,E=g>0,D=x-A-I,B=!1;D>g&&i.current&&(n&&n(y),i.current=!1),E&&a.current&&(s&&s(y),a.current=!1),E&&g>D?(o&&!i.current&&o(y),R.scrollTop=x,B=!0,i.current=!0):!E&&-g>I&&(r&&!a.current&&r(y),R.scrollTop=0,B=!0,a.current=!0),B&&VN(y)}},[o,n,r,s]),p=W.useCallback(function(y){u(y,y.deltaY)},[u]),f=W.useCallback(function(y){l.current=y.changedTouches[0].clientY},[]),d=W.useCallback(function(y){var g=l.current-y.changedTouches[0].clientY;u(y,g)},[u]),m=W.useCallback(function(y){if(y){var g=lE?{passive:!1}:!1;y.addEventListener("wheel",p,g),y.addEventListener("touchstart",f,g),y.addEventListener("touchmove",d,g)}},[d,f,p]),h=W.useCallback(function(y){y&&(y.removeEventListener("wheel",p,!1),y.removeEventListener("touchstart",f,!1),y.removeEventListener("touchmove",d,!1))},[d,f,p]);return W.useEffect(function(){if(t){var y=c.current;return m(y),function(){h(y)}}},[t,m,h]),function(y){c.current=y}}var y0=["boxSizing","height","overflow","paddingRight","position"],g0={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function b0(e){e.cancelable&&e.preventDefault()}function v0(e){e.stopPropagation()}function T0(){var e=this.scrollTop,t=this.scrollHeight,o=e+this.offsetHeight;e===0?this.scrollTop=1:o===t&&(this.scrollTop=e-1)}function P0(){return"ontouchstart"in window||navigator.maxTouchPoints}var x0=!!(typeof window<"u"&&window.document&&window.document.createElement),Gs=0,Nr={capture:!1,passive:!1};function WN(e){var t=e.isEnabled,o=e.accountForScrollbars,n=o===void 0?!0:o,r=W.useRef({}),s=W.useRef(null),i=W.useCallback(function(l){if(x0){var c=document.body,u=c&&c.style;if(n&&y0.forEach(function(m){var h=u&&u[m];r.current[m]=h}),n&&Gs<1){var p=parseInt(r.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,d=window.innerWidth-f+p||0;Object.keys(g0).forEach(function(m){var h=g0[m];u&&(u[m]=h)}),u&&(u.paddingRight="".concat(d,"px"))}c&&P0()&&(c.addEventListener("touchmove",b0,Nr),l&&(l.addEventListener("touchstart",T0,Nr),l.addEventListener("touchmove",v0,Nr))),Gs+=1}},[n]),a=W.useCallback(function(l){if(x0){var c=document.body,u=c&&c.style;Gs=Math.max(Gs-1,0),n&&Gs<1&&y0.forEach(function(p){var f=r.current[p];u&&(u[p]=f)}),c&&P0()&&(c.removeEventListener("touchmove",b0,Nr),l&&(l.removeEventListener("touchstart",T0,Nr),l.removeEventListener("touchmove",v0,Nr)))}},[n]);return W.useEffect(function(){if(t){var l=s.current;return i(l),function(){a(l)}}},[t,i,a]),function(l){s.current=l}}var qN=function(t){var o=t.target;return o.ownerDocument.activeElement&&o.ownerDocument.activeElement.blur()},HN={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ZN(e){var t=e.children,o=e.lockEnabled,n=e.captureEnabled,r=n===void 0?!0:n,s=e.onBottomArrive,i=e.onBottomLeave,a=e.onTopArrive,l=e.onTopLeave,c=GN({isEnabled:r,onBottomArrive:s,onBottomLeave:i,onTopArrive:a,onTopLeave:l}),u=WN({isEnabled:o}),p=function(d){c(d),u(d)};return Fe(W.Fragment,null,o&&Fe("div",{onClick:qN,css:HN}),t(p))}var YN={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},UN=function(t){var o=t.name,n=t.onFocus;return Fe("input",{required:!0,name:o,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:YN,value:"",onChange:function(){}})},JN=UN;function Zp(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function XN(){return Zp(/^iPhone/i)}function A1(){return Zp(/^Mac/i)}function $N(){return Zp(/^iPad/i)||A1()&&navigator.maxTouchPoints>1}function QN(){return XN()||$N()}function KN(){return A1()||QN()}var _N=function(t){return t.label},ej=function(t){return t.label},tj=function(t){return t.value},oj=function(t){return!!t.isDisabled},nj={clearIndicator:FE,container:ME,control:YE,dropdownIndicator:zE,group:$E,groupHeading:KE,indicatorsContainer:DE,indicatorSeparator:GE,input:oN,loadingIndicator:HE,loadingMessage:CE,menu:yE,menuList:TE,menuPortal:SE,multiValue:aN,multiValueLabel:lN,multiValueRemove:cN,noOptionsMessage:xE,option:hN,placeholder:bN,singleValue:PN,valueContainer:OE};var rj={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},sj=4,M1=4,ij=38,aj=M1*2,lj={baseUnit:M1,controlHeight:ij,menuGutter:aj},Tc={borderRadius:sj,colors:rj,spacing:lj},cj={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:p0(),captureMenuScroll:!p0(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:zN(),formatGroupLabel:_N,getOptionLabel:ej,getOptionValue:tj,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:oj,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!iE(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var o=t.count;return"".concat(o," result").concat(o!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function C0(e,t,o,n){var r=R1(e,t,o),s=D1(e,t,o),i=O1(e,t),a=Xa(e,t);return{type:"option",data:t,isDisabled:r,isSelected:s,label:i,value:a,index:n}}function Sa(e,t){return e.options.map(function(o,n){if("options"in o){var r=o.options.map(function(i,a){return C0(e,i,t,a)}).filter(function(i){return I0(e,i)});return r.length>0?{type:"group",data:o,options:r,index:n}:void 0}var s=C0(e,o,t,n);return I0(e,s)?s:void 0}).filter(cE)}function k1(e){return e.reduce(function(t,o){return o.type==="group"?t.push.apply(t,Wp(o.options.map(function(n){return n.data}))):t.push(o.data),t},[])}function w0(e,t){return e.reduce(function(o,n){return n.type==="group"?o.push.apply(o,Wp(n.options.map(function(r){return{data:r.data,id:"".concat(t,"-").concat(n.index,"-").concat(r.index)}}))):o.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),o},[])}function uj(e,t){return k1(Sa(e,t))}function I0(e,t){var o=e.inputValue,n=o===void 0?"":o,r=t.data,s=t.isSelected,i=t.label,a=t.value;return(!N1(e)||!s)&&E1(e,{label:i,value:a,data:r},n)}function pj(e,t){var o=e.focusedValue,n=e.selectValue,r=n.indexOf(o);if(r>-1){var s=t.indexOf(o);if(s>-1)return o;if(r<t.length)return t[r]}return null}function dj(e,t){var o=e.focusedOption;return o&&t.indexOf(o)>-1?o:t[0]}var Pc=function(t,o){var n,r=(n=t.find(function(s){return s.data===o}))===null||n===void 0?void 0:n.id;return r||null},O1=function(t,o){return t.getOptionLabel(o)},Xa=function(t,o){return t.getOptionValue(o)};function R1(e,t,o){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,o):!1}function D1(e,t,o){if(o.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,o);var n=Xa(e,t);return o.some(function(r){return Xa(e,r)===n})}function E1(e,t,o){return e.filterOption?e.filterOption(t,o):!0}var N1=function(t){var o=t.hideSelectedOptions,n=t.isMulti;return o===void 0?n:o},fj=1,j1=(function(e){VD(o,e);var t=WD(o);function o(n){var r;if(BD(this,o),r=t.call(this,n),r.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(l){r.controlRef=l},r.focusedOptionRef=null,r.getFocusedOptionRef=function(l){r.focusedOptionRef=l},r.menuListRef=null,r.getMenuListRef=function(l){r.menuListRef=l},r.inputRef=null,r.getInputRef=function(l){r.inputRef=l},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(l,c){var u=r.props,p=u.onChange,f=u.name;c.name=f,r.ariaOnChange(l,c),p(l,c)},r.setValue=function(l,c,u){var p=r.props,f=p.closeMenuOnSelect,d=p.isMulti,m=p.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:m}),f&&(r.setState({inputIsHiddenAfterUpdate:!d}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(l,{action:c,option:u})},r.selectOption=function(l){var c=r.props,u=c.blurInputOnSelect,p=c.isMulti,f=c.name,d=r.state.selectValue,m=p&&r.isOptionSelected(l,d),h=r.isOptionDisabled(l,d);if(m){var y=r.getOptionValue(l);r.setValue(d.filter(function(g){return r.getOptionValue(g)!==y}),"deselect-option",l)}else if(!h)p?r.setValue([].concat(Wp(d),[l]),"select-option",l):r.setValue(l,"select-option");else{r.ariaOnChange(l,{action:"select-option",option:l,name:f});return}u&&r.blurInput()},r.removeValue=function(l){var c=r.props.isMulti,u=r.state.selectValue,p=r.getOptionValue(l),f=u.filter(function(m){return r.getOptionValue(m)!==p}),d=pa(c,f,f[0]||null);r.onChange(d,{action:"remove-value",removedValue:l}),r.focusInput()},r.clearValue=function(){var l=r.state.selectValue;r.onChange(pa(r.props.isMulti,[],null),{action:"clear",removedValues:l})},r.popValue=function(){var l=r.props.isMulti,c=r.state.selectValue,u=c[c.length-1],p=c.slice(0,c.length-1),f=pa(l,p,p[0]||null);u&&r.onChange(f,{action:"pop-value",removedValue:u})},r.getFocusedOptionId=function(l){return Pc(r.state.focusableOptionsWithIds,l)},r.getFocusableOptionsWithIds=function(){return w0(Sa(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return tE.apply(void 0,[r.props.classNamePrefix].concat(c))},r.getOptionLabel=function(l){return O1(r.props,l)},r.getOptionValue=function(l){return Xa(r.props,l)},r.getStyles=function(l,c){var u=r.props.unstyled,p=nj[l](c,u);p.boxSizing="border-box";var f=r.props.styles[l];return f?f(p,c):p},r.getClassNames=function(l,c){var u,p;return(u=(p=r.props.classNames)[l])===null||u===void 0?void 0:u.call(p,c)},r.getElementId=function(l){return"".concat(r.state.instancePrefix,"-").concat(l)},r.getComponents=function(){return IN(r.props)},r.buildCategorizedOptions=function(){return Sa(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return k1(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(l,c){r.setState({ariaSelection:Ve({value:l},c)})},r.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(l){r.blockOptionHover=!1},r.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&r.onMenuClose():c&&r.openMenu("first"):(c&&(r.openAfterFocus=!0),r.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},r.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!r.props.isDisabled){var c=r.props,u=c.isMulti,p=c.menuIsOpen;r.focusInput(),p?(r.setState({inputIsHiddenAfterUpdate:!u}),r.onMenuClose()):r.openMenu("first"),l.preventDefault()}},r.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(r.clearValue(),l.preventDefault(),r.openAfterFocus=!1,l.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(l){typeof r.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Vl(l.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(l)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(r.initialTouchX=u.clientX,r.initialTouchY=u.clientY,r.userIsDragging=!1)},r.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var p=Math.abs(u.clientX-r.initialTouchX),f=Math.abs(u.clientY-r.initialTouchY),d=5;r.userIsDragging=p>d||f>d}},r.onTouchEnd=function(l){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(l.target)&&r.menuListRef&&!r.menuListRef.contains(l.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(l){r.userIsDragging||r.onControlMouseDown(l)},r.onClearIndicatorTouchEnd=function(l){r.userIsDragging||r.onClearIndicatorMouseDown(l)},r.onDropdownIndicatorTouchEnd=function(l){r.userIsDragging||r.onDropdownIndicatorMouseDown(l)},r.handleInputChange=function(l){var c=r.props.inputValue,u=l.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(u,{action:"input-change",prevInputValue:c}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(l){r.props.onFocus&&r.props.onFocus(l),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(l){var c=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(l),r.onInputChange("",{action:"input-blur",prevInputValue:c}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(l){if(!(r.blockOptionHover||r.state.focusedOption===l)){var c=r.getFocusableOptions(),u=c.indexOf(l);r.setState({focusedOption:l,focusedOptionId:u>-1?r.getFocusedOptionId(l):null})}},r.shouldHideSelectedOptions=function(){return N1(r.props)},r.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),r.focus()},r.onKeyDown=function(l){var c=r.props,u=c.isMulti,p=c.backspaceRemovesValue,f=c.escapeClearsValue,d=c.inputValue,m=c.isClearable,h=c.isDisabled,y=c.menuIsOpen,g=c.onKeyDown,w=c.tabSelectsValue,I=c.openMenuOnFocus,x=r.state,A=x.focusedOption,R=x.focusedValue,E=x.selectValue;if(!h&&!(typeof g=="function"&&(g(l),l.defaultPrevented))){switch(r.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||d)return;r.focusValue("previous");break;case"ArrowRight":if(!u||d)return;r.focusValue("next");break;case"Delete":case"Backspace":if(d)return;if(R)r.removeValue(R);else{if(!p)return;u?r.popValue():m&&r.clearValue()}break;case"Tab":if(r.isComposing||l.shiftKey||!y||!w||!A||I&&r.isOptionSelected(A,E))return;r.selectOption(A);break;case"Enter":if(l.keyCode===229)break;if(y){if(!A||r.isComposing)return;r.selectOption(A);break}return;case"Escape":y?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:d}),r.onMenuClose()):m&&f&&r.clearValue();break;case" ":if(d)return;if(!y){r.openMenu("first");break}if(!A)return;r.selectOption(A);break;case"ArrowUp":y?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":y?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!y)return;r.focusOption("pageup");break;case"PageDown":if(!y)return;r.focusOption("pagedown");break;case"Home":if(!y)return;r.focusOption("first");break;case"End":if(!y)return;r.focusOption("last");break;default:return}l.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++fj),r.state.selectValue=c0(n.value),n.menuIsOpen&&r.state.selectValue.length){var s=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=s,r.state.focusedOption=i[a],r.state.focusedOptionId=Pc(s,i[a])}return r}return FD(o,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&u0(this.menuListRef,this.focusedOptionRef),KN()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(r){var s=this.props,i=s.isDisabled,a=s.menuIsOpen,l=this.state.isFocused;(l&&!i&&r.isDisabled||l&&a&&!r.menuIsOpen)&&this.focusInput(),l&&i&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!i&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(u0(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,s){this.props.onInputChange(r,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var s=this,i=this.state,a=i.selectValue,l=i.isFocused,c=this.buildFocusableOptions(),u=r==="first"?0:c.length-1;if(!this.props.isMulti){var p=c.indexOf(a[0]);p>-1&&(u=p)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[u],focusedOptionId:this.getFocusedOptionId(c[u])},function(){return s.onMenuOpen()})}},{key:"focusValue",value:function(r){var s=this.state,i=s.selectValue,a=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=i.indexOf(a);a||(l=-1);var c=i.length-1,u=-1;if(i.length){switch(r){case"previous":l===0?u=0:l===-1?u=c:u=l-1;break;case"next":l>-1&&l<c&&(u=l+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:i[u]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,i=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var l=0,c=a.indexOf(i);i||(c=-1),r==="up"?l=c>0?c-1:a.length-1:r==="down"?l=(c+1)%a.length:r==="pageup"?(l=c-s,l<0&&(l=0)):r==="pagedown"?(l=c+s,l>a.length-1&&(l=a.length-1)):r==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[l])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Tc):Ve(Ve({},Tc),this.props.theme):Tc})},{key:"getCommonProps",value:function(){var r=this.clearValue,s=this.cx,i=this.getStyles,a=this.getClassNames,l=this.getValue,c=this.selectOption,u=this.setValue,p=this.props,f=p.isMulti,d=p.isRtl,m=p.options,h=this.hasValue();return{clearValue:r,cx:s,getStyles:i,getClassNames:a,getValue:l,hasValue:h,isMulti:f,isRtl:d,options:m,selectOption:c,selectProps:p,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,s=r.isClearable,i=r.isMulti;return s===void 0?i:s}},{key:"isOptionDisabled",value:function(r,s){return R1(this.props,r,s)}},{key:"isOptionSelected",value:function(r,s){return D1(this.props,r,s)}},{key:"filterOption",value:function(r,s){return E1(this.props,r,s)}},{key:"formatOptionLabel",value:function(r,s){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(r,{context:s,inputValue:i,selectValue:a})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var r=this.props,s=r.isDisabled,i=r.isSearchable,a=r.inputId,l=r.inputValue,c=r.tabIndex,u=r.form,p=r.menuIsOpen,f=r.required,d=this.getComponents(),m=d.Input,h=this.state,y=h.inputIsHidden,g=h.ariaSelection,w=this.commonProps,I=a||this.getElementId("input"),x=Ve(Ve(Ve({"aria-autocomplete":"list","aria-expanded":p,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},p&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(g==null?void 0:g.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?P.createElement(m,L({},w,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:I,innerRef:this.getInputRef,isDisabled:s,isHidden:y,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:u,type:"text",value:l},x)):P.createElement(FN,L({id:I,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ua,onFocus:this.onInputFocus,disabled:s,tabIndex:c,inputMode:"none",form:u,value:""},x))})},{key:"renderPlaceholderOrValue",value:function(){var r=this,s=this.getComponents(),i=s.MultiValue,a=s.MultiValueContainer,l=s.MultiValueLabel,c=s.MultiValueRemove,u=s.SingleValue,p=s.Placeholder,f=this.commonProps,d=this.props,m=d.controlShouldRenderValue,h=d.isDisabled,y=d.isMulti,g=d.inputValue,w=d.placeholder,I=this.state,x=I.selectValue,A=I.focusedValue,R=I.isFocused;if(!this.hasValue()||!m)return g?null:P.createElement(p,L({},f,{key:"placeholder",isDisabled:h,isFocused:R,innerProps:{id:this.getElementId("placeholder")}}),w);if(y)return x.map(function(D,B){var F=D===A,N="".concat(r.getOptionLabel(D),"-").concat(r.getOptionValue(D));return P.createElement(i,L({},f,{components:{Container:a,Label:l,Remove:c},isFocused:F,isDisabled:h,key:N,index:B,removeProps:{onClick:function(){return r.removeValue(D)},onTouchEnd:function(){return r.removeValue(D)},onMouseDown:function(j){j.preventDefault()}},data:D}),r.formatOptionLabel(D,"value"))});if(g)return null;var E=x[0];return P.createElement(u,L({},f,{data:E,isDisabled:h}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),s=r.ClearIndicator,i=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!this.isClearable()||!s||l||!this.hasValue()||c)return null;var p={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return P.createElement(s,L({},i,{innerProps:p,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),s=r.LoadingIndicator,i=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!s||!c)return null;var p={"aria-hidden":"true"};return P.createElement(s,L({},i,{innerProps:p,isDisabled:l,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),s=r.DropdownIndicator,i=r.IndicatorSeparator;if(!s||!i)return null;var a=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return P.createElement(i,L({},a,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),s=r.DropdownIndicator;if(!s)return null;var i=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return P.createElement(s,L({},i,{innerProps:c,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var r=this,s=this.getComponents(),i=s.Group,a=s.GroupHeading,l=s.Menu,c=s.MenuList,u=s.MenuPortal,p=s.LoadingMessage,f=s.NoOptionsMessage,d=s.Option,m=this.commonProps,h=this.state.focusedOption,y=this.props,g=y.captureMenuScroll,w=y.inputValue,I=y.isLoading,x=y.loadingMessage,A=y.minMenuHeight,R=y.maxMenuHeight,E=y.menuIsOpen,D=y.menuPlacement,B=y.menuPosition,F=y.menuPortalTarget,N=y.menuShouldBlockScroll,v=y.menuShouldScrollIntoView,j=y.noOptionsMessage,O=y.onMenuScrollToTop,C=y.onMenuScrollToBottom;if(!E)return null;var k=function(H,J){var X=H.type,K=H.data,Q=H.isDisabled,ce=H.isSelected,re=H.label,Y=H.value,$=h===K,_=Q?void 0:function(){return r.onOptionHover(K)},ue=Q?void 0:function(){return r.selectOption(K)},oe="".concat(r.getElementId("option"),"-").concat(J),de={id:oe,onClick:ue,onMouseMove:_,onMouseOver:_,tabIndex:-1,role:"option","aria-selected":r.state.isAppleDevice?void 0:ce};return P.createElement(d,L({},m,{innerProps:de,data:K,isDisabled:Q,isSelected:ce,key:oe,label:re,type:X,value:Y,isFocused:$,innerRef:$?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(H.data,"menu"))},S;if(this.hasOptions())S=this.getCategorizedOptions().map(function(q){if(q.type==="group"){var H=q.data,J=q.options,X=q.index,K="".concat(r.getElementId("group"),"-").concat(X),Q="".concat(K,"-heading");return P.createElement(i,L({},m,{key:K,data:H,options:J,Heading:a,headingProps:{id:Q,data:q.data},label:r.formatGroupLabel(q.data)}),q.options.map(function(ce){return k(ce,"".concat(X,"-").concat(ce.index))}))}else if(q.type==="option")return k(q,"".concat(q.index))});else if(I){var M=x({inputValue:w});if(M===null)return null;S=P.createElement(p,m,M)}else{var z=j({inputValue:w});if(z===null)return null;S=P.createElement(f,m,z)}var G={minMenuHeight:A,maxMenuHeight:R,menuPlacement:D,menuPosition:B,menuShouldScrollIntoView:v},V=P.createElement(gE,L({},m,G),function(q){var H=q.ref,J=q.placerProps,X=J.placement,K=J.maxHeight;return P.createElement(l,L({},m,G,{innerRef:H,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:I,placement:X}),P.createElement(ZN,{captureEnabled:g,onTopArrive:O,onBottomArrive:C,lockEnabled:N},function(Q){return P.createElement(c,L({},m,{innerRef:function(re){r.getMenuListRef(re),Q(re)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:r.getElementId("listbox")},isLoading:I,maxHeight:K,focusedOption:h}),S)}))});return F||B==="fixed"?P.createElement(u,L({},m,{appendTo:F,controlElement:this.controlRef,menuPlacement:D,menuPosition:B}),V):V}},{key:"renderFormField",value:function(){var r=this,s=this.props,i=s.delimiter,a=s.isDisabled,l=s.isMulti,c=s.name,u=s.required,p=this.state.selectValue;if(u&&!this.hasValue()&&!a)return P.createElement(JN,{name:c,onFocus:this.onValueInputFocus});if(!(!c||a))if(l)if(i){var f=p.map(function(h){return r.getOptionValue(h)}).join(i);return P.createElement("input",{name:c,type:"hidden",value:f})}else{var d=p.length>0?p.map(function(h,y){return P.createElement("input",{key:"i-".concat(y),name:c,type:"hidden",value:r.getOptionValue(h)})}):P.createElement("input",{name:c,type:"hidden",value:""});return P.createElement("div",null,d)}else{var m=p[0]?this.getOptionValue(p[0]):"";return P.createElement("input",{name:c,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,s=this.state,i=s.ariaSelection,a=s.focusedOption,l=s.focusedValue,c=s.isFocused,u=s.selectValue,p=this.getFocusableOptions();return P.createElement(EN,L({},r,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:a,focusedValue:l,isFocused:c,selectValue:u,focusableOptions:p,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),s=r.Control,i=r.IndicatorsContainer,a=r.SelectContainer,l=r.ValueContainer,c=this.props,u=c.className,p=c.id,f=c.isDisabled,d=c.menuIsOpen,m=this.state.isFocused,h=this.commonProps=this.getCommonProps();return P.createElement(a,L({},h,{className:u,innerProps:{id:p,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:m}),this.renderLiveRegion(),P.createElement(s,L({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:m,menuIsOpen:d}),P.createElement(l,L({},h,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),P.createElement(i,L({},h,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,s){var i=s.prevProps,a=s.clearFocusValueOnUpdate,l=s.inputIsHiddenAfterUpdate,c=s.ariaSelection,u=s.isFocused,p=s.prevWasFocused,f=s.instancePrefix,d=r.options,m=r.value,h=r.menuIsOpen,y=r.inputValue,g=r.isMulti,w=c0(m),I={};if(i&&(m!==i.value||d!==i.options||h!==i.menuIsOpen||y!==i.inputValue)){var x=h?uj(r,w):[],A=h?w0(Sa(r,w),"".concat(f,"-option")):[],R=a?pj(s,w):null,E=dj(s,x),D=Pc(A,E);I={selectValue:w,focusedOption:E,focusedOptionId:D,focusableOptionsWithIds:A,focusedValue:R,clearFocusValueOnUpdate:!1}}var B=l!=null&&r!==i?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},F=c,N=u&&p;return u&&!N&&(F={value:pa(g,w,w[0]||null),options:w,action:"initial-input-focus"},N=!p),(c==null?void 0:c.action)==="initial-input-focus"&&(F=null),Ve(Ve(Ve({},I),B),{},{prevProps:r,ariaSelection:F,prevWasFocused:N})}}]),o})(W.Component);j1.defaultProps=cj;var mj=W.forwardRef(function(e,t){var o=zD(e);return P.createElement(j1,L({ref:t},o))}),hj=mj;function Gl({defaultOption:e,options:t,onChange:o,isSearchable:n=!1,className:r="",disabled:s=!1}){const i=(a,l)=>{a&&o(a)};return b.jsx("div",{className:xe("w-full",r),children:b.jsx(hj,{isClearable:!1,isSearchable:n,isMulti:!1,defaultValue:e,options:t,onChange:i,isDisabled:s})})}const ni={[no.KG]:"kg",[no.Gram]:"g",[no.LB]:"lb",[no.Ounce]:"oz"},S0=[{value:no.KG,label:ni[no.KG]},{value:no.Gram,label:ni[no.Gram]},{value:no.LB,label:ni[no.LB]},{value:no.Ounce,label:ni[no.Ounce]}];function yj({onChange:e,className:t="",value:o=no.KG}){const n=r=>{e(r.value)};return b.jsx(Gl,{options:S0,defaultOption:S0[Number(o)],onChange:n,className:t})}const Mn={[Rt.Meter]:"m",[Rt.CM]:"cm",[Rt.KM]:"km",[Rt.Foot]:"ft",[Rt.Mile]:"mi",[Rt.Inch]:"in",[Rt.Yard]:"yd"},A0=[{value:Rt.Meter,label:Mn[Rt.Meter]},{value:Rt.CM,label:Mn[Rt.CM]},{value:Rt.KM,label:Mn[Rt.KM]},{value:Rt.Foot,label:Mn[Rt.Foot]},{value:Rt.Mile,label:Mn[Rt.Mile]},{value:Rt.Inch,label:Mn[Rt.Inch]},{value:Rt.Yard,label:Mn[Rt.Yard]}];function gj({onChange:e,className:t="",value:o=Rt.Meter}){const n=r=>{e(r.value)};return b.jsx(Gl,{options:A0,defaultOption:A0[Number(o)],onChange:n,className:t})}const lu=["Ascending","Descending"],M0=[{value:0,label:lu[0]},{value:1,label:lu[1]}];function bj({onChange:e,className:t="",pickedType:o=0,disabled:n=!1}){const r=s=>{e(s.value)};return b.jsx(Gl,{options:M0,defaultOption:M0[o],onChange:r,className:t,disabled:n})}function vj({letter:e,className:t="",onClick:o}){return b.jsx(ao,{onClick:o,className:xe("LetterAvatar flex items-center justify-center rounded-full w-full h-full bg-blue-300 text-white font-bold",t),children:b.jsx("svg",{viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%",role:"img","aria-label":e,xmlns:"http://www.w3.org/2000/svg",children:b.jsx("text",{x:"50",y:"50",textAnchor:"middle",dominantBaseline:"central",fontFamily:"inherit",fontWeight:"700",fontSize:"80",fill:"currentColor",children:e})})})}function L1({letter:e="N",className:t="w-full h-full",imgSrc:o="",onClick:n=Ye}){return o?b.jsx(fh,{className:"Avatar rounded-full w-full h-full",src:o,alt:e,onClick:n}):b.jsx(vj,{onClick:n,letter:e,className:t})}function Tj({name:e,onClick:t=Ye,className:o="",avatarClassName:n="w-8 h-8",imgSrc:r=""}){return b.jsxs(Yt,{className:xe("AvatarTag bg-white rounded-lg py-1",o),children:[b.jsx(L1,{className:n,onClick:t,letter:e==null?void 0:e.charAt(0).toUpperCase(),imgSrc:r}),b.jsx(Ka,{label:e})]})}exports.A=G2;exports.ATarget=th;exports.AddButton=PT;exports.AlertWrap=OT;exports.ArenaTag=uD;exports.Autocomplete=ET;exports.Avatar=L1;exports.AvatarTag=Tj;exports.Button=tl;exports.CacheButton=eT;exports.CalendarTag=$R;exports.CategoryTag=iD;exports.ChatTag=oD;exports.CheckboxGroup=zT;exports.ClickableDiv=ao;exports.CloseIcon=$a;exports.CoachTag=hD;exports.CollectionsTag=pD;exports.Column=wT;exports.CommentEditor=NT;exports.CommentTag=aD;exports.Container=bu;exports.CopyTag=_R;exports.Copyright=a5;exports.CreatePostTag=TD;exports.CreateTag=QR;exports.DateDisplay=uO;exports.DatePicker=tk;exports.DateRange=cO;exports.DateTimePicker=lO;exports.Deletable=AT;exports.DuelVersus=jT;exports.EditIcon=du;exports.EditableBlock=IT;exports.EmailInput=H2;exports.ErrorMessage=MT;exports.EventTag=dD;exports.ExpandableContainer=i5;exports.ExploreTag=UR;exports.Form=CT;exports.GameScore=e5;exports.GameTag=yD;exports.H1=Ka;exports.HomeTag=YR;exports.ImageTag=bD;exports.Img=fh;exports.InterestIconTooltip=GR;exports.InterestTag=sD;exports.LeaderboardTag=gD;exports.LengthUnitLabels=Mn;exports.LengthUnitPicker=gj;exports.LikeSection=MD;exports.List=hs;exports.LoadingIcon=el;exports.LoadingIndicator=Y2;exports.LocationTag=ID;exports.LogoutTag=tD;exports.MapTag=KR;exports.MarketTag=fD;exports.MenuTooltip=VR;exports.MiddleDot=Gp;exports.Modal=ph;exports.ModalButton=TT;exports.ModalItem=vT;exports.MonthPicker=ok;exports.NavArrows=DT;exports.Navbar=qR;exports.NavigationControlPosition=$g;exports.NewsfeedTag=XR;exports.NotFound=mh;exports.NotificationTag=rD;exports.OrderLabels=lu;exports.OrderPicker=bj;exports.OsmMap=VO;exports.P=fu;exports.PartnersTag=JR;exports.PasswordInput=Z2;exports.Picker=Gl;exports.PollTag=vD;exports.PrivateTag=eD;exports.ProfileList=t5;exports.Row=Qa;exports.SaveCancelButtons=dh;exports.SearchBar=kT;exports.SendIcon=eh;exports.Span=Nn;exports.StaticColumn=hr;exports.StaticGameScore=r5;exports.StaticImg=gu;exports.StaticRow=Yt;exports.StyledButton=Aa;exports.SubjectReactionSection=RD;exports.SubjectReactionType=c1;exports.SvgButton=nh;exports.SvgTooltip=Vp;exports.Tabs=RT;exports.Tag=ST;exports.TeamTag=cD;exports.TextInput=q2;exports.TextPostTag=PD;exports.TextUpdater=_T;exports.Textarea=W2;exports.TextareaAutosize=hh;exports.TimeAgo=n5;exports.TimePicker=kA;exports.ToggleButton=_2;exports.Tooltip=l1;exports.UpArrowTag=nD;exports.UserTag=mD;exports.VerticalLine=SD;exports.VerticalStaticInterestTag=lD;exports.WeightUnitLabels=ni;exports.WeightUnitPicker=yj;exports.a=he;exports.formatDate=Zg;exports.formatDateTime=tu;exports.formatDateTimeRange=Ug;exports.formatTime=eu;exports.getDefaultExportFromCjs=sn;exports.isSameDate=Yg;
|
|
@@ -39315,11 +39315,11 @@ function yO(e) {
|
|
|
39315
39315
|
}, [r]), null;
|
|
39316
39316
|
}
|
|
39317
39317
|
const SL = Tr(yO);
|
|
39318
|
-
const gO = import("./maplibre-gl-
|
|
39318
|
+
const gO = import("./maplibre-gl-BG4yUERR.mjs").then((e) => e.m), bO = P.forwardRef(function(t, o) {
|
|
39319
39319
|
return Kg(t, o, gO);
|
|
39320
39320
|
}), vO = _g;
|
|
39321
39321
|
const TO = hO;
|
|
39322
|
-
const PO = import("./mapbox-gl-
|
|
39322
|
+
const PO = import("./mapbox-gl-Dj0yjhsn.mjs").then((e) => e.m), AL = P.forwardRef(function(t, o) {
|
|
39323
39323
|
return Kg(t, o, PO);
|
|
39324
39324
|
}), xO = _g;
|
|
39325
39325
|
function CO({ locations: e }) {
|
|
@@ -44684,17 +44684,23 @@ const L0 = ["Ascending", "Descending"], z0 = [
|
|
|
44684
44684
|
{ value: 0, label: L0[0] },
|
|
44685
44685
|
{ value: 1, label: L0[1] }
|
|
44686
44686
|
];
|
|
44687
|
-
function hz({
|
|
44688
|
-
|
|
44689
|
-
|
|
44687
|
+
function hz({
|
|
44688
|
+
onChange: e,
|
|
44689
|
+
className: t = "",
|
|
44690
|
+
pickedType: o = 0,
|
|
44691
|
+
disabled: n = !1
|
|
44692
|
+
}) {
|
|
44693
|
+
const r = (s) => {
|
|
44694
|
+
e(s.value);
|
|
44690
44695
|
};
|
|
44691
44696
|
return /* @__PURE__ */ b.jsx(
|
|
44692
44697
|
Kp,
|
|
44693
44698
|
{
|
|
44694
44699
|
options: z0,
|
|
44695
44700
|
defaultOption: z0[o],
|
|
44696
|
-
onChange:
|
|
44697
|
-
className: t
|
|
44701
|
+
onChange: r,
|
|
44702
|
+
className: t,
|
|
44703
|
+
disabled: n
|
|
44698
44704
|
}
|
|
44699
44705
|
);
|
|
44700
44706
|
}
|