wafields 0.9.13 → 0.9.15

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.
@@ -357,7 +357,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
357
357
  * @license MIT
358
358
  * This source code is licensed under the MIT license found in the
359
359
  * LICENSE file in the root directory of this source tree.
360
- */function FD({date:e}){return!e||e.length<10?null:E.jsx("div",{className:"text-gray-600 text-sm",children:e.substring(0,10)})}const qD=y.createContext(null);function VD(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,a=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===a}function Mr(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 n=0;n<e.length;n++)if(!Mr(e[n],t[n]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!t.hasOwnProperty(o)||!Mr(e[o],t[o]))return!1;return!0}return!1}function HD(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function Gf(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();Mr(n,r)||t.setProjection(n)}function Yf(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function Qf(e,t){const n=t.viewState||t;let r=!1;if("zoom"in n){const o=e.zoom;e.zoom=n.zoom,r=r||o!==e.zoom}if("bearing"in n){const o=e.bearing;e.bearing=n.bearing,r=r||o!==e.bearing}if("pitch"in n){const o=e.pitch;e.pitch=n.pitch,r=r||o!==e.pitch}if(n.padding&&!e.isPaddingEqual(n.padding)&&(r=!0,e.padding=n.padding),"longitude"in n&&"latitude"in n){const o=e.center;e.center=new o.constructor(n.longitude,n.latitude),r=r||o!==e.center}return r}const WD=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Uf(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const n=e.layers.map(r=>{let o=null;"interactive"in r&&(o=Object.assign({},r),delete o.interactive);const a=t[r.ref];if(a){o=o||Object.assign({},r),delete o.ref;for(const i of WD)i in a&&(o[i]=a[i])}return o||r});return{...e,layers:n}}const Kf={version:8,sources:{},layers:[]},Jf={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"},Oc={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"},Xf={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"},ZD=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],GD=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class Ta{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=o=>{const a=this.props[Xf[o.type]];a?a(o):o.type==="error"&&console.error(o.error)},this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const a=this.props[Jf[o.type]];a&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),a(o),delete o.features)},this._onCameraEvent=o=>{if(!this._internalUpdate){const a=this.props[Oc[o.type]];a&&a(o)}o.type in this._deferredEvents&&(this._deferredEvents[o.type]=!1)},this._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n);r&&this._createShadowTransform(this._map);const o=this._updateSize(t),a=this._updateViewState(t,!0);this._updateStyle(t,n),this._updateStyleComponents(t,n),this._updateHandlers(t,n),(r||o||a&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=Ta.savedMaps.pop();if(!r)return null;const o=r.map,a=o.getContainer();for(n.className=a.className;a.childNodes.length>0;)n.appendChild(a.childNodes[0]);o._container=n;const i=o._resizeObserver;i&&(i.disconnect(),i.observe(n)),r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:s}=t;return s&&(s.bounds?o.fitBounds(s.bounds,{...s.fitBoundsOptions,duration:0}):r._updateViewState(s,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=Kf}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||YD()||null,container:t,style:Uf(r)},a=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[a.longitude||0,a.latitude||0],zoom:a.zoom||0,pitch:a.pitch||0,bearing:a.bearing||0}),n.gl){const u=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=u,n.gl)}const i=new this._MapClass(o);a.padding&&i.setPadding(a.padding),n.cursor&&(i.getCanvas().style.cursor=n.cursor),this._createShadowTransform(i);const s=i._render;i._render=u=>{this._inRender=!0,s.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,{}),Gf(i.transform,this._renderTransform)}),i.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const u in Jf)i.on(u,this._onPointerEvent);for(const u in Oc)i.on(u,this._onCameraEvent);for(const u in Xf)i.on(u,this._onEvent);this._map=i}recycle(){const t=this.map.getContainer().querySelector("[mapboxgl-children]");t==null||t.remove(),Ta.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 n=HD(t.transform);t.painter.transform=n,this._renderTransform=n}_updateSize(t){const{viewState:n}=t;if(n){const r=this._map;if(n.width!==r.transform.width||n.height!==r.transform.height)return r.resize(),!0}return!1}_updateViewState(t,n){if(this._internalUpdate)return!1;const r=this._map,o=this._renderTransform,{zoom:a,pitch:i,bearing:s}=o,l=r.isMoving();l&&(o.cameraElevationReference="sea");const c=Qf(o,{...Yf(r.transform),...t});if(l&&(o.cameraElevationReference="ground"),c&&n){const u=this._deferredEvents;u.move=!0,u.zoom||(u.zoom=a!==o.zoom),u.rotate||(u.rotate=s!==o.bearing),u.pitch||(u.pitch=i!==o.pitch)}return l||Qf(r.transform,t),c}_updateSettings(t,n){const r=this._map;let o=!1;for(const a of ZD)if(a in t&&!Mr(t[a],n[a])){o=!0;const i=r[`set${a[0].toUpperCase()}${a.slice(1)}`];i==null||i.call(r,t[a])}return o}_updateStyle(t,n){if(t.cursor!==n.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==n.mapStyle){const{mapStyle:r=Kf,styleDiffing:o=!0}=t,a={diff:o};return"localIdeographFontFamily"in t&&(a.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(Uf(r),a),!0}return!1}_updateStyleComponents(t,n){const r=this._map;let o=!1;return r.isStyleLoaded()&&("light"in t&&r.setLight&&!Mr(t.light,n.light)&&(o=!0,r.setLight(t.light)),"fog"in t&&r.setFog&&!Mr(t.fog,n.fog)&&(o=!0,r.setFog(t.fog)),"terrain"in t&&r.setTerrain&&!Mr(t.terrain,n.terrain)&&(!t.terrain||r.getSource(t.terrain.source))&&(o=!0,r.setTerrain(t.terrain))),o}_updateHandlers(t,n){var r,o;const a=this._map;let i=!1;for(const s of GD){const l=(r=t[s])!==null&&r!==void 0?r:!0,c=(o=n[s])!==null&&o!==void 0?o:!0;Mr(l,c)||(i=!0,l?a[s].enable(l):a[s].disable())}return i}_queryRenderedFeatures(t){const n=this._map,r=n.transform,{interactiveLayerIds:o=[]}=this.props;try{return n.transform=this._renderTransform,n.queryRenderedFeatures(t,{layers:o.filter(n.getLayer.bind(n))})}catch{return[]}finally{n.transform=r}}_updateHover(t){var n;const{props:r}=this;if(r.interactiveLayerIds&&(r.onMouseMove||r.onMouseEnter||r.onMouseLeave)){const o=t.type,a=((n=this._hoveredFeatures)===null||n===void 0?void 0:n.length)>0,i=this._queryRenderedFeatures(t.point),s=i.length>0;!s&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=i,s&&!a&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=o}else this._hoveredFeatures=null}_fireEvent(t,n,r){const o=this._map,a=o.transform,i=typeof n=="string"?n:n.type;return i==="move"&&this._updateViewState(this.props,!1),i in Oc&&(typeof n=="object"&&(n.viewState=Yf(a)),this._map.isMoving())?(o.transform=this._renderTransform,t.call(o,n,r),o.transform=a,o):(t.call(o,n,r),o)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const r in this._deferredEvents)this._deferredEvents[r]&&t.fire(r);this._internalUpdate=!1;const n=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{Gf(this._renderTransform,n),t.transform=n}}}Ta.savedMaps=[];function YD(){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 QD=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function UD(e){if(!e)return null;const t=e.map,n={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:r=>{const o=t.transform;t.transform=e.transform;const a=t.project(r);return t.transform=o,a},unproject:r=>{const o=t.transform;t.transform=e.transform;const a=t.unproject(r);return t.transform=o,a},queryTerrainElevation:(r,o)=>{const a=t.transform;t.transform=e.transform;const i=t.queryTerrainElevation(r,o);return t.transform=a,i},queryRenderedFeatures:(r,o)=>{const a=t.transform;t.transform=e.transform;const i=t.queryRenderedFeatures(r,o);return t.transform=a,i}};for(const r of KD(t))!(r in n)&&!QD.includes(r)&&(n[r]=t[r].bind(t));return n}function KD(e){const t=new Set;let n=e;for(;n;){for(const r of Object.getOwnPropertyNames(n))r[0]!=="_"&&typeof e[r]=="function"&&r!=="fire"&&r!=="setEventedParent"&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}const JD=typeof document<"u"?H.useLayoutEffect:H.useEffect,XD=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function $D(e,t){for(const r of XD)r in t&&(e[r]=t[r]);const{RTLTextPlugin:n="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(n,r=>{r&&console.error(r)},!0)}const $l=y.createContext(null);function _D(e,t,n){const r=H.useContext(qD),[o,a]=H.useState(null),i=H.useRef(),{current:s}=H.useRef({mapLib:null,map:null});H.useEffect(()=>{const u=e.mapLib;let d=!0,f;return Promise.resolve(u||n).then(p=>{if(!d)return;if(!p)throw new Error("Invalid mapLib");const m="Map"in p?p:p.default;if(!m.Map)throw new Error("Invalid mapLib");if($D(m,e),!m.supported||m.supported(e))e.reuseMaps&&(f=Ta.reuse(e,i.current)),f||(f=new Ta(m.Map,e,i.current)),s.map=UD(f),s.mapLib=m,a(f),r==null||r.onMapMount(s.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(p=>{const{onError:m}=e;m?m({type:"error",target:null,originalEvent:null,error:p}):console.error(p)}),()=>{d=!1,f&&(r==null||r.onMapUnmount(e.id),e.reuseMaps?f.recycle():f.destroy())}},[]),JD(()=>{o&&o.setProps(e)}),H.useImperativeHandle(t,()=>s.map,[o]);const l=H.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return y.createElement("div",{id:e.id,ref:i,style:l},o&&y.createElement($l.Provider,{value:s},y.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const eE=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Vo(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!eE.test(r)?n[r]=`${o}px`:n[r]=o}}function tE(e,t){const{map:n,mapLib:r}=H.useContext($l),o=H.useRef({props:e});o.current.props=e;const a=H.useMemo(()=>{let h=!1;y.Children.forEach(e.children,C=>{C&&(h=!0)});const g={...e,element:h?document.createElement("div"):null},w=new r.Marker(g);return w.setLngLat([e.longitude,e.latitude]),w.getElement().addEventListener("click",C=>{var x,A;(A=(x=o.current.props).onClick)===null||A===void 0||A.call(x,{type:"click",target:w,originalEvent:C})}),w.on("dragstart",C=>{var x,A;const M=C;M.lngLat=a.getLngLat(),(A=(x=o.current.props).onDragStart)===null||A===void 0||A.call(x,M)}),w.on("drag",C=>{var x,A;const M=C;M.lngLat=a.getLngLat(),(A=(x=o.current.props).onDrag)===null||A===void 0||A.call(x,M)}),w.on("dragend",C=>{var x,A;const M=C;M.lngLat=a.getLngLat(),(A=(x=o.current.props).onDragEnd)===null||A===void 0||A.call(x,M)}),w},[]);H.useEffect(()=>(a.addTo(n.getMap()),()=>{a.remove()}),[]);const{longitude:i,latitude:s,offset:l,style:c,draggable:u=!1,popup:d=null,rotation:f=0,rotationAlignment:p="auto",pitchAlignment:m="auto"}=e;return H.useEffect(()=>{Vo(a.getElement(),c)},[c]),H.useImperativeHandle(t,()=>a,[]),(a.getLngLat().lng!==i||a.getLngLat().lat!==s)&&a.setLngLat([i,s]),l&&!VD(a.getOffset(),l)&&a.setOffset(l),a.isDraggable()!==u&&a.setDraggable(u),a.getRotation()!==f&&a.setRotation(f),a.getRotationAlignment()!==p&&a.setRotationAlignment(p),a.getPitchAlignment()!==m&&a.setPitchAlignment(m),a.getPopup()!==d&&a.setPopup(d),pr.createPortal(e.children,a.getElement())}const HR=H.memo(H.forwardRef(tE));function $f(e){return new Set(e?e.trim().split(/\s+/):[])}function nE(e,t){const{map:n,mapLib:r}=H.useContext($l),o=H.useMemo(()=>document.createElement("div"),[]),a=H.useRef({props:e});a.current.props=e;const i=H.useMemo(()=>{const s={...e},l=new r.Popup(s);return l.setLngLat([e.longitude,e.latitude]),l.once("open",c=>{var u,d;(d=(u=a.current.props).onOpen)===null||d===void 0||d.call(u,c)}),l},[]);if(H.useEffect(()=>{const s=l=>{var c,u;(u=(c=a.current.props).onClose)===null||u===void 0||u.call(c,l)};return i.on("close",s),i.setDOMContent(o).addTo(n.getMap()),()=>{i.off("close",s),i.isOpen()&&i.remove()}},[]),H.useEffect(()=>{Vo(i.getElement(),e.style)},[e.style]),H.useImperativeHandle(t,()=>i,[]),i.isOpen()&&((i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!Mr(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 s=$f(i.options.className),l=$f(e.className);for(const c of s)l.has(c)||i.removeClassName(c);for(const c of l)s.has(c)||i.addClassName(c);i.options.className=e.className}return pr.createPortal(e.children,o)}const WR=H.memo(H.forwardRef(nE));function ns(e,t,n,r){const o=H.useContext($l),a=H.useMemo(()=>e(o),[]);return H.useEffect(()=>{const i=r||n||t,s=typeof t=="function"&&typeof n=="function"?t:null,l=typeof n=="function"?n:typeof t=="function"?t:null,{map:c}=o;return c.hasControl(a)||(c.addControl(a,i==null?void 0:i.position),s&&s(o)),()=>{l&&l(o),c.hasControl(a)&&c.removeControl(a)}},[]),a}function rE(e){const t=ns(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return H.useEffect(()=>{Vo(t._container,e.style)},[e.style]),null}const ZR=H.memo(rE);function oE(e){const t=ns(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return H.useEffect(()=>{Vo(t._controlContainer,e.style)},[e.style]),null}const GR=H.memo(oE);function aE(e,t){const n=H.useRef({props:e}),r=ns(({mapLib:o})=>{const a=new o.GeolocateControl(e),i=a._setupUI;return a._setupUI=s=>{a._container.hasChildNodes()||i(s)},a.on("geolocate",s=>{var l,c;(c=(l=n.current.props).onGeolocate)===null||c===void 0||c.call(l,s)}),a.on("error",s=>{var l,c;(c=(l=n.current.props).onError)===null||c===void 0||c.call(l,s)}),a.on("outofmaxbounds",s=>{var l,c;(c=(l=n.current.props).onOutOfMaxBounds)===null||c===void 0||c.call(l,s)}),a.on("trackuserlocationstart",s=>{var l,c;(c=(l=n.current.props).onTrackUserLocationStart)===null||c===void 0||c.call(l,s)}),a.on("trackuserlocationend",s=>{var l,c;(c=(l=n.current.props).onTrackUserLocationEnd)===null||c===void 0||c.call(l,s)}),a},{position:e.position});return n.current.props=e,H.useImperativeHandle(t,()=>r,[]),H.useEffect(()=>{Vo(r._container,e.style)},[e.style]),null}const YR=H.memo(H.forwardRef(aE));function iE(e){const t=ns(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return H.useEffect(()=>{Vo(t._container,e.style)},[e.style]),null}const QR=H.memo(iE);function sE(e){const t=ns(({mapLib:a})=>new a.ScaleControl(e),{position:e.position}),n=H.useRef(e),r=n.current;n.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),H.useEffect(()=>{Vo(t._container,o)},[o]),null}const UR=H.memo(sE),lE=Promise.resolve().then(()=>require("./mapbox-gl-FIEJQpQK-B43Dzgb8.js")).then(e=>e.m),KR=y.forwardRef(function(e,t){return _D(e,t,lE)});const No=Math.min,Xr=Math.max,ro=Math.round,Ur=Math.floor,cn=e=>({x:e,y:e}),cE={left:"right",right:"left",bottom:"top",top:"bottom"},uE={start:"end",end:"start"};function Mu(e,t,n){return Xr(e,No(t,n))}function rs(e,t){return typeof e=="function"?e(t):e}function Po(e){return e.split("-")[0]}function os(e){return e.split("-")[1]}function nb(e){return e==="x"?"y":"x"}function Xd(e){return e==="y"?"height":"width"}const dE=new Set(["top","bottom"]);function Kr(e){return dE.has(Po(e))?"y":"x"}function $d(e){return nb(Kr(e))}function pE(e,t,n){n===void 0&&(n=!1);const r=os(e),o=$d(e),a=Xd(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=gl(i)),[i,gl(i)]}function mE(e){const t=gl(e);return[Au(e),t,Au(t)]}function Au(e){return e.replace(/start|end/g,t=>uE[t])}const _f=["left","right"],eh=["right","left"],fE=["top","bottom"],hE=["bottom","top"];function gE(e,t,n){switch(e){case"top":case"bottom":return n?t?eh:_f:t?_f:eh;case"left":case"right":return t?fE:hE;default:return[]}}function vE(e,t,n,r){const o=os(e);let a=gE(Po(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Au)))),a}function gl(e){return e.replace(/left|right|bottom|top/g,t=>cE[t])}function bE(e){return{top:0,right:0,bottom:0,left:0,...e}}function rb(e){return typeof e!="number"?bE(e):{top:e,right:e,bottom:e,left:e}}function Hi(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function th(e,t,n){let{reference:r,floating:o}=e;const a=Kr(t),i=$d(t),s=Xd(i),l=Po(t),c=a==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(os(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1);break}return p}async function yE(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=rs(t,e),m=rb(p),h=s[f?d==="floating"?"reference":"floating":d],g=Hi(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(h)))==null||n?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),w=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),x=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},A=Hi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:C,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 wE=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=th(c,r,l),f=r,p={},m=0;for(let g=0;g<s.length;g++){var h;const{name:w,fn:C}=s[g],{x,y:A,data:M,reset:I}=await C({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:{...i,detectOverflow:(h=i.detectOverflow)!=null?h:yE},elements:{reference:e,floating:t}});u=x??u,d=A??d,p={...p,[w]:{...p[w],...M}},I&&m<=50&&(m++,typeof I=="object"&&(I.placement&&(f=I.placement),I.rects&&(c=I.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:u,y:d}=th(c,f,l)),g=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}},xE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=rs(e,t)||{};if(c==null)return{};const d=rb(u),f={x:n,y:r},p=$d(o),m=Xd(p),h=await i.getDimensions(c),g=p==="y",w=g?"top":"left",C=g?"bottom":"right",x=g?"clientHeight":"clientWidth",A=a.reference[m]+a.reference[p]-f[p]-a.floating[m],M=f[p]-a.reference[p],I=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let z=I?I[x]:0;(!z||!await(i.isElement==null?void 0:i.isElement(I)))&&(z=s.floating[x]||a.floating[m]);const D=A/2-M/2,j=z/2-h[m]/2-1,B=No(d[w],j),N=No(d[C],j),v=B,L=z-h[m]-N,k=z/2-h[m]/2+D,O=Mu(v,k,L),T=!l.arrow&&os(o)!=null&&k!==O&&a.reference[m]/2-(k<v?B:N)-h[m]/2<0,P=T?k<v?k-v:k-L:0;return{[p]:f[p]+P,data:{[p]:O,centerOffset:k-O-P,...T&&{alignmentOffset:P}},reset:T}}}),CE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=rs(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=Po(o),C=Kr(s),x=Po(s)===s,A=await(l.isRTL==null?void 0:l.isRTL(c.floating)),M=f||(x||!h?[gl(s)]:mE(s)),I=m!=="none";!f&&I&&M.push(...vE(s,h,m,A));const z=[s,...M],D=await l.detectOverflow(t,g),j=[];let B=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&j.push(D[w]),d){const k=pE(o,i,A);j.push(D[k[0]],D[k[1]])}if(B=[...B,{placement:o,overflows:j}],!j.every(k=>k<=0)){var N,v;const k=(((N=a.flip)==null?void 0:N.index)||0)+1,O=z[k];if(O&&(!(d==="alignment"&&C!==Kr(O))||B.every(P=>Kr(P.placement)===C?P.overflows[0]>0:!0)))return{data:{index:k,overflows:B},reset:{placement:O}};let T=(v=B.filter(P=>P.overflows[0]<=0).sort((P,S)=>P.overflows[1]-S.overflows[1])[0])==null?void 0:v.placement;if(!T)switch(p){case"bestFit":{var L;const P=(L=B.filter(S=>{if(I){const q=Kr(S.placement);return q===C||q==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(q=>q>0).reduce((q,V)=>q+V,0)]).sort((S,q)=>S[1]-q[1])[0])==null?void 0:L[0];P&&(T=P);break}case"initialPlacement":T=s;break}if(o!==T)return{reset:{placement:T}}}return{}}}},kE=new Set(["left","top"]);async function SE(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Po(n),s=os(n),l=Kr(n)==="y",c=kE.has(i)?-1:1,u=a&&l?-1:1,d=rs(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m=="number"&&(p=s==="end"?m*-1:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const ME=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await SE(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},AE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:C,y:x}=w;return{x:C,y:x}}},...c}=rs(e,t),u={x:n,y:r},d=await a.detectOverflow(t,c),f=Kr(Po(o)),p=nb(f);let m=u[p],h=u[f];if(i){const w=p==="y"?"top":"left",C=p==="y"?"bottom":"right",x=m+d[w],A=m-d[C];m=Mu(x,m,A)}if(s){const w=f==="y"?"top":"left",C=f==="y"?"bottom":"right",x=h+d[w],A=h-d[C];h=Mu(x,h,A)}const g=l.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[f]:s}}}}}};function _l(){return typeof window<"u"}function Qa(e){return ob(e)?(e.nodeName||"").toLowerCase():"#document"}function Kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nr(e){var t;return(t=(ob(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ob(e){return _l()?e instanceof Node||e instanceof Kt(e).Node:!1}function dn(e){return _l()?e instanceof Element||e instanceof Kt(e).Element:!1}function Fn(e){return _l()?e instanceof HTMLElement||e instanceof Kt(e).HTMLElement:!1}function nh(e){return!_l()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Kt(e).ShadowRoot}const IE=new Set(["inline","contents"]);function as(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Cn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!IE.has(o)}const OE=new Set(["table","td","th"]);function DE(e){return OE.has(Qa(e))}const EE=[":popover-open",":modal"];function ec(e){return EE.some(t=>{try{return e.matches(t)}catch{return!1}})}const TE=["transform","translate","scale","rotate","perspective"],NE=["transform","translate","scale","rotate","perspective","filter"],PE=["paint","layout","strict","content"];function _d(e){const t=tc(),n=dn(e)?Cn(e):e;return TE.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||NE.some(r=>(n.willChange||"").includes(r))||PE.some(r=>(n.contain||"").includes(r))}function zE(e){let t=oo(e);for(;Fn(t)&&!Na(t);){if(_d(t))return t;if(ec(t))return null;t=oo(t)}return null}function tc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const RE=new Set(["html","body","#document"]);function Na(e){return RE.has(Qa(e))}function Cn(e){return Kt(e).getComputedStyle(e)}function nc(e){return dn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function oo(e){if(Qa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nh(e)&&e.host||nr(e);return nh(t)?t.host:t}function ab(e){const t=oo(e);return Na(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fn(t)&&as(t)?t:ab(t)}function zo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ab(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=Kt(o);if(a){const s=Wi(i);return t.concat(i,i.visualViewport||[],as(o)?o:[],s&&n?zo(s):[])}return t.concat(o,zo(o,[],n))}function Wi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ib(e){const t=Cn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Fn(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=ro(n)!==a||ro(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function ep(e){return dn(e)?e:e.contextElement}function va(e){const t=ep(e);if(!Fn(t))return cn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ib(t);let i=(a?ro(n.width):n.width)/r,s=(a?ro(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const LE=cn(0);function sb(e){const t=Kt(e);return!tc()||!t.visualViewport?LE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Kt(e)?!1:t}function Ro(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=ep(e);let i=cn(1);t&&(r?dn(r)&&(i=va(r)):i=va(e));const s=jE(a,n,r)?sb(a):cn(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const f=Kt(a),p=r&&dn(r)?Kt(r):r;let m=f,h=Wi(m);for(;h&&r&&p!==m;){const g=va(h),w=h.getBoundingClientRect(),C=Cn(h),x=w.left+(h.clientLeft+parseFloat(C.paddingLeft))*g.x,A=w.top+(h.clientTop+parseFloat(C.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=x,c+=A,m=Kt(h),h=Wi(m)}}return Hi({width:u,height:d,x:l,y:c})}function rc(e,t){const n=nc(e).scrollLeft;return t?t.left+n:Ro(nr(e)).left+n}function lb(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-rc(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function BE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=nr(r),s=t?ec(t.floating):!1;if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=cn(1);const u=cn(0),d=Fn(r);if((d||!d&&!a)&&((Qa(r)!=="body"||as(i))&&(l=nc(r)),Fn(r))){const p=Ro(r);c=va(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=i&&!d&&!a?lb(i,l):cn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function FE(e){return Array.from(e.getClientRects())}function qE(e){const t=nr(e),n=nc(e),r=e.ownerDocument.body,o=Xr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Xr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+rc(e);const s=-n.scrollTop;return Cn(r).direction==="rtl"&&(i+=Xr(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}const rh=25;function VE(e,t){const n=Kt(e),r=nr(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const u=tc();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const c=rc(r);if(c<=0){const u=r.ownerDocument,d=u.body,f=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(r.clientWidth-d.clientWidth-p);m<=rh&&(a-=m)}else c<=rh&&(a+=c);return{width:a,height:i,x:s,y:l}}const HE=new Set(["absolute","fixed"]);function WE(e,t){const n=Ro(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Fn(e)?va(e):cn(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,c=r*a.y;return{width:i,height:s,x:l,y:c}}function oh(e,t,n){let r;if(t==="viewport")r=VE(e,n);else if(t==="document")r=qE(nr(e));else if(dn(t))r=WE(t,n);else{const o=sb(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Hi(r)}function cb(e,t){const n=oo(e);return n===t||!dn(n)||Na(n)?!1:Cn(n).position==="fixed"||cb(n,t)}function ZE(e,t){const n=t.get(e);if(n)return n;let r=zo(e,[],!1).filter(s=>dn(s)&&Qa(s)!=="body"),o=null;const a=Cn(e).position==="fixed";let i=a?oo(e):e;for(;dn(i)&&!Na(i);){const s=Cn(i),l=_d(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&o&&HE.has(o.position)||as(i)&&!l&&cb(e,i))?r=r.filter(c=>c!==i):o=s,i=oo(i)}return t.set(e,r),r}function GE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?ec(t)?[]:ZE(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((l,c)=>{const u=oh(t,c,o);return l.top=Xr(u.top,l.top),l.right=No(u.right,l.right),l.bottom=No(u.bottom,l.bottom),l.left=Xr(u.left,l.left),l},oh(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function YE(e){const{width:t,height:n}=ib(e);return{width:t,height:n}}function QE(e,t,n){const r=Fn(t),o=nr(t),a=n==="fixed",i=Ro(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=cn(0);function c(){l.x=rc(o)}if(r||!r&&!a)if((Qa(t)!=="body"||as(o))&&(s=nc(t)),r){const p=Ro(t,!0,a,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&c();a&&!r&&o&&c();const u=o&&!r&&!a?lb(o,s):cn(0),d=i.left+s.scrollLeft-l.x-u.x,f=i.top+s.scrollTop-l.y-u.y;return{x:d,y:f,width:i.width,height:i.height}}function Dc(e){return Cn(e).position==="static"}function ah(e,t){if(!Fn(e)||Cn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return nr(e)===n&&(n=n.ownerDocument.body),n}function ub(e,t){const n=Kt(e);if(ec(e))return n;if(!Fn(e)){let o=oo(e);for(;o&&!Na(o);){if(dn(o)&&!Dc(o))return o;o=oo(o)}return n}let r=ah(e,t);for(;r&&DE(r)&&Dc(r);)r=ah(r,t);return r&&Na(r)&&Dc(r)&&!_d(r)?n:r||zE(e)||n}const UE=async function(e){const t=this.getOffsetParent||ub,n=this.getDimensions,r=await n(e.floating);return{reference:QE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function KE(e){return Cn(e).direction==="rtl"}const JE={convertOffsetParentRelativeRectToViewportRelativeRect:BE,getDocumentElement:nr,getClippingRect:GE,getOffsetParent:ub,getElementRects:UE,getClientRects:FE,getDimensions:YE,getScale:va,isElement:dn,isRTL:KE};function db(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function XE(e,t){let n=null,r;const o=nr(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const m=Ur(d),h=Ur(o.clientWidth-(u+f)),g=Ur(o.clientHeight-(d+p)),w=Ur(u),C={rootMargin:-m+"px "+-h+"px "+-g+"px "+-w+"px",threshold:Xr(0,No(1,l))||1};let x=!0;function A(M){const I=M[0].intersectionRatio;if(I!==l){if(!x)return i();I?i(!1,I):r=setTimeout(()=>{i(!1,1e-7)},1e3)}I===1&&!db(c,e.getBoundingClientRect())&&i(),x=!1}try{n=new IntersectionObserver(A,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,C)}n.observe(e)}return i(!0),a}function $E(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ep(e),u=o||a?[...c?zo(c):[],...zo(t)]:[];u.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const d=c&&s?XE(c,n):null;let f=-1,p=null;i&&(p=new ResizeObserver(w=>{let[C]=w;C&&C.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let m,h=l?Ro(e):null;l&&g();function g(){const w=Ro(e);h&&!db(h,w)&&n(),h=w,m=requestAnimationFrame(g)}return n(),()=>{var w;u.forEach(C=>{o&&C.removeEventListener("scroll",n),a&&C.removeEventListener("resize",n)}),d==null||d(),(w=p)==null||w.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const _E=ME,eT=AE,tT=CE,nT=xE,ih=(e,t,n)=>{const r=new Map,o={platform:JE,...n},a={...o.platform,_c:r};return wE(e,t,{...o,platform:a})};var Iu={exports:{}};/*!
360
+ */function FD({date:e}){return!e||e.length<10?null:E.jsx("div",{className:"text-gray-600 text-sm",children:e.substring(0,10)})}const qD=y.createContext(null);function VD(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,a=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===a}function Mr(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 n=0;n<e.length;n++)if(!Mr(e[n],t[n]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!t.hasOwnProperty(o)||!Mr(e[o],t[o]))return!1;return!0}return!1}function HD(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function Gf(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();Mr(n,r)||t.setProjection(n)}function Yf(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function Qf(e,t){const n=t.viewState||t;let r=!1;if("zoom"in n){const o=e.zoom;e.zoom=n.zoom,r=r||o!==e.zoom}if("bearing"in n){const o=e.bearing;e.bearing=n.bearing,r=r||o!==e.bearing}if("pitch"in n){const o=e.pitch;e.pitch=n.pitch,r=r||o!==e.pitch}if(n.padding&&!e.isPaddingEqual(n.padding)&&(r=!0,e.padding=n.padding),"longitude"in n&&"latitude"in n){const o=e.center;e.center=new o.constructor(n.longitude,n.latitude),r=r||o!==e.center}return r}const WD=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Uf(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const n=e.layers.map(r=>{let o=null;"interactive"in r&&(o=Object.assign({},r),delete o.interactive);const a=t[r.ref];if(a){o=o||Object.assign({},r),delete o.ref;for(const i of WD)i in a&&(o[i]=a[i])}return o||r});return{...e,layers:n}}const Kf={version:8,sources:{},layers:[]},Jf={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"},Oc={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"},Xf={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"},ZD=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],GD=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class Ta{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=o=>{const a=this.props[Xf[o.type]];a?a(o):o.type==="error"&&console.error(o.error)},this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const a=this.props[Jf[o.type]];a&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),a(o),delete o.features)},this._onCameraEvent=o=>{if(!this._internalUpdate){const a=this.props[Oc[o.type]];a&&a(o)}o.type in this._deferredEvents&&(this._deferredEvents[o.type]=!1)},this._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n);r&&this._createShadowTransform(this._map);const o=this._updateSize(t),a=this._updateViewState(t,!0);this._updateStyle(t,n),this._updateStyleComponents(t,n),this._updateHandlers(t,n),(r||o||a&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=Ta.savedMaps.pop();if(!r)return null;const o=r.map,a=o.getContainer();for(n.className=a.className;a.childNodes.length>0;)n.appendChild(a.childNodes[0]);o._container=n;const i=o._resizeObserver;i&&(i.disconnect(),i.observe(n)),r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:s}=t;return s&&(s.bounds?o.fitBounds(s.bounds,{...s.fitBoundsOptions,duration:0}):r._updateViewState(s,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=Kf}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||YD()||null,container:t,style:Uf(r)},a=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[a.longitude||0,a.latitude||0],zoom:a.zoom||0,pitch:a.pitch||0,bearing:a.bearing||0}),n.gl){const u=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=u,n.gl)}const i=new this._MapClass(o);a.padding&&i.setPadding(a.padding),n.cursor&&(i.getCanvas().style.cursor=n.cursor),this._createShadowTransform(i);const s=i._render;i._render=u=>{this._inRender=!0,s.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,{}),Gf(i.transform,this._renderTransform)}),i.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const u in Jf)i.on(u,this._onPointerEvent);for(const u in Oc)i.on(u,this._onCameraEvent);for(const u in Xf)i.on(u,this._onEvent);this._map=i}recycle(){const t=this.map.getContainer().querySelector("[mapboxgl-children]");t==null||t.remove(),Ta.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 n=HD(t.transform);t.painter.transform=n,this._renderTransform=n}_updateSize(t){const{viewState:n}=t;if(n){const r=this._map;if(n.width!==r.transform.width||n.height!==r.transform.height)return r.resize(),!0}return!1}_updateViewState(t,n){if(this._internalUpdate)return!1;const r=this._map,o=this._renderTransform,{zoom:a,pitch:i,bearing:s}=o,l=r.isMoving();l&&(o.cameraElevationReference="sea");const c=Qf(o,{...Yf(r.transform),...t});if(l&&(o.cameraElevationReference="ground"),c&&n){const u=this._deferredEvents;u.move=!0,u.zoom||(u.zoom=a!==o.zoom),u.rotate||(u.rotate=s!==o.bearing),u.pitch||(u.pitch=i!==o.pitch)}return l||Qf(r.transform,t),c}_updateSettings(t,n){const r=this._map;let o=!1;for(const a of ZD)if(a in t&&!Mr(t[a],n[a])){o=!0;const i=r[`set${a[0].toUpperCase()}${a.slice(1)}`];i==null||i.call(r,t[a])}return o}_updateStyle(t,n){if(t.cursor!==n.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==n.mapStyle){const{mapStyle:r=Kf,styleDiffing:o=!0}=t,a={diff:o};return"localIdeographFontFamily"in t&&(a.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(Uf(r),a),!0}return!1}_updateStyleComponents(t,n){const r=this._map;let o=!1;return r.isStyleLoaded()&&("light"in t&&r.setLight&&!Mr(t.light,n.light)&&(o=!0,r.setLight(t.light)),"fog"in t&&r.setFog&&!Mr(t.fog,n.fog)&&(o=!0,r.setFog(t.fog)),"terrain"in t&&r.setTerrain&&!Mr(t.terrain,n.terrain)&&(!t.terrain||r.getSource(t.terrain.source))&&(o=!0,r.setTerrain(t.terrain))),o}_updateHandlers(t,n){var r,o;const a=this._map;let i=!1;for(const s of GD){const l=(r=t[s])!==null&&r!==void 0?r:!0,c=(o=n[s])!==null&&o!==void 0?o:!0;Mr(l,c)||(i=!0,l?a[s].enable(l):a[s].disable())}return i}_queryRenderedFeatures(t){const n=this._map,r=n.transform,{interactiveLayerIds:o=[]}=this.props;try{return n.transform=this._renderTransform,n.queryRenderedFeatures(t,{layers:o.filter(n.getLayer.bind(n))})}catch{return[]}finally{n.transform=r}}_updateHover(t){var n;const{props:r}=this;if(r.interactiveLayerIds&&(r.onMouseMove||r.onMouseEnter||r.onMouseLeave)){const o=t.type,a=((n=this._hoveredFeatures)===null||n===void 0?void 0:n.length)>0,i=this._queryRenderedFeatures(t.point),s=i.length>0;!s&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=i,s&&!a&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=o}else this._hoveredFeatures=null}_fireEvent(t,n,r){const o=this._map,a=o.transform,i=typeof n=="string"?n:n.type;return i==="move"&&this._updateViewState(this.props,!1),i in Oc&&(typeof n=="object"&&(n.viewState=Yf(a)),this._map.isMoving())?(o.transform=this._renderTransform,t.call(o,n,r),o.transform=a,o):(t.call(o,n,r),o)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const r in this._deferredEvents)this._deferredEvents[r]&&t.fire(r);this._internalUpdate=!1;const n=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{Gf(this._renderTransform,n),t.transform=n}}}Ta.savedMaps=[];function YD(){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 QD=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function UD(e){if(!e)return null;const t=e.map,n={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:r=>{const o=t.transform;t.transform=e.transform;const a=t.project(r);return t.transform=o,a},unproject:r=>{const o=t.transform;t.transform=e.transform;const a=t.unproject(r);return t.transform=o,a},queryTerrainElevation:(r,o)=>{const a=t.transform;t.transform=e.transform;const i=t.queryTerrainElevation(r,o);return t.transform=a,i},queryRenderedFeatures:(r,o)=>{const a=t.transform;t.transform=e.transform;const i=t.queryRenderedFeatures(r,o);return t.transform=a,i}};for(const r of KD(t))!(r in n)&&!QD.includes(r)&&(n[r]=t[r].bind(t));return n}function KD(e){const t=new Set;let n=e;for(;n;){for(const r of Object.getOwnPropertyNames(n))r[0]!=="_"&&typeof e[r]=="function"&&r!=="fire"&&r!=="setEventedParent"&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}const JD=typeof document<"u"?H.useLayoutEffect:H.useEffect,XD=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function $D(e,t){for(const r of XD)r in t&&(e[r]=t[r]);const{RTLTextPlugin:n="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(n,r=>{r&&console.error(r)},!0)}const $l=y.createContext(null);function _D(e,t,n){const r=H.useContext(qD),[o,a]=H.useState(null),i=H.useRef(),{current:s}=H.useRef({mapLib:null,map:null});H.useEffect(()=>{const u=e.mapLib;let d=!0,f;return Promise.resolve(u||n).then(p=>{if(!d)return;if(!p)throw new Error("Invalid mapLib");const m="Map"in p?p:p.default;if(!m.Map)throw new Error("Invalid mapLib");if($D(m,e),!m.supported||m.supported(e))e.reuseMaps&&(f=Ta.reuse(e,i.current)),f||(f=new Ta(m.Map,e,i.current)),s.map=UD(f),s.mapLib=m,a(f),r==null||r.onMapMount(s.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(p=>{const{onError:m}=e;m?m({type:"error",target:null,originalEvent:null,error:p}):console.error(p)}),()=>{d=!1,f&&(r==null||r.onMapUnmount(e.id),e.reuseMaps?f.recycle():f.destroy())}},[]),JD(()=>{o&&o.setProps(e)}),H.useImperativeHandle(t,()=>s.map,[o]);const l=H.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return y.createElement("div",{id:e.id,ref:i,style:l},o&&y.createElement($l.Provider,{value:s},y.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const eE=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Vo(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!eE.test(r)?n[r]=`${o}px`:n[r]=o}}function tE(e,t){const{map:n,mapLib:r}=H.useContext($l),o=H.useRef({props:e});o.current.props=e;const a=H.useMemo(()=>{let h=!1;y.Children.forEach(e.children,C=>{C&&(h=!0)});const g={...e,element:h?document.createElement("div"):null},w=new r.Marker(g);return w.setLngLat([e.longitude,e.latitude]),w.getElement().addEventListener("click",C=>{var x,A;(A=(x=o.current.props).onClick)===null||A===void 0||A.call(x,{type:"click",target:w,originalEvent:C})}),w.on("dragstart",C=>{var x,A;const M=C;M.lngLat=a.getLngLat(),(A=(x=o.current.props).onDragStart)===null||A===void 0||A.call(x,M)}),w.on("drag",C=>{var x,A;const M=C;M.lngLat=a.getLngLat(),(A=(x=o.current.props).onDrag)===null||A===void 0||A.call(x,M)}),w.on("dragend",C=>{var x,A;const M=C;M.lngLat=a.getLngLat(),(A=(x=o.current.props).onDragEnd)===null||A===void 0||A.call(x,M)}),w},[]);H.useEffect(()=>(a.addTo(n.getMap()),()=>{a.remove()}),[]);const{longitude:i,latitude:s,offset:l,style:c,draggable:u=!1,popup:d=null,rotation:f=0,rotationAlignment:p="auto",pitchAlignment:m="auto"}=e;return H.useEffect(()=>{Vo(a.getElement(),c)},[c]),H.useImperativeHandle(t,()=>a,[]),(a.getLngLat().lng!==i||a.getLngLat().lat!==s)&&a.setLngLat([i,s]),l&&!VD(a.getOffset(),l)&&a.setOffset(l),a.isDraggable()!==u&&a.setDraggable(u),a.getRotation()!==f&&a.setRotation(f),a.getRotationAlignment()!==p&&a.setRotationAlignment(p),a.getPitchAlignment()!==m&&a.setPitchAlignment(m),a.getPopup()!==d&&a.setPopup(d),pr.createPortal(e.children,a.getElement())}const HR=H.memo(H.forwardRef(tE));function $f(e){return new Set(e?e.trim().split(/\s+/):[])}function nE(e,t){const{map:n,mapLib:r}=H.useContext($l),o=H.useMemo(()=>document.createElement("div"),[]),a=H.useRef({props:e});a.current.props=e;const i=H.useMemo(()=>{const s={...e},l=new r.Popup(s);return l.setLngLat([e.longitude,e.latitude]),l.once("open",c=>{var u,d;(d=(u=a.current.props).onOpen)===null||d===void 0||d.call(u,c)}),l},[]);if(H.useEffect(()=>{const s=l=>{var c,u;(u=(c=a.current.props).onClose)===null||u===void 0||u.call(c,l)};return i.on("close",s),i.setDOMContent(o).addTo(n.getMap()),()=>{i.off("close",s),i.isOpen()&&i.remove()}},[]),H.useEffect(()=>{Vo(i.getElement(),e.style)},[e.style]),H.useImperativeHandle(t,()=>i,[]),i.isOpen()&&((i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!Mr(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 s=$f(i.options.className),l=$f(e.className);for(const c of s)l.has(c)||i.removeClassName(c);for(const c of l)s.has(c)||i.addClassName(c);i.options.className=e.className}return pr.createPortal(e.children,o)}const WR=H.memo(H.forwardRef(nE));function ns(e,t,n,r){const o=H.useContext($l),a=H.useMemo(()=>e(o),[]);return H.useEffect(()=>{const i=r||n||t,s=typeof t=="function"&&typeof n=="function"?t:null,l=typeof n=="function"?n:typeof t=="function"?t:null,{map:c}=o;return c.hasControl(a)||(c.addControl(a,i==null?void 0:i.position),s&&s(o)),()=>{l&&l(o),c.hasControl(a)&&c.removeControl(a)}},[]),a}function rE(e){const t=ns(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return H.useEffect(()=>{Vo(t._container,e.style)},[e.style]),null}const ZR=H.memo(rE);function oE(e){const t=ns(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return H.useEffect(()=>{Vo(t._controlContainer,e.style)},[e.style]),null}const GR=H.memo(oE);function aE(e,t){const n=H.useRef({props:e}),r=ns(({mapLib:o})=>{const a=new o.GeolocateControl(e),i=a._setupUI;return a._setupUI=s=>{a._container.hasChildNodes()||i(s)},a.on("geolocate",s=>{var l,c;(c=(l=n.current.props).onGeolocate)===null||c===void 0||c.call(l,s)}),a.on("error",s=>{var l,c;(c=(l=n.current.props).onError)===null||c===void 0||c.call(l,s)}),a.on("outofmaxbounds",s=>{var l,c;(c=(l=n.current.props).onOutOfMaxBounds)===null||c===void 0||c.call(l,s)}),a.on("trackuserlocationstart",s=>{var l,c;(c=(l=n.current.props).onTrackUserLocationStart)===null||c===void 0||c.call(l,s)}),a.on("trackuserlocationend",s=>{var l,c;(c=(l=n.current.props).onTrackUserLocationEnd)===null||c===void 0||c.call(l,s)}),a},{position:e.position});return n.current.props=e,H.useImperativeHandle(t,()=>r,[]),H.useEffect(()=>{Vo(r._container,e.style)},[e.style]),null}const YR=H.memo(H.forwardRef(aE));function iE(e){const t=ns(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return H.useEffect(()=>{Vo(t._container,e.style)},[e.style]),null}const QR=H.memo(iE);function sE(e){const t=ns(({mapLib:a})=>new a.ScaleControl(e),{position:e.position}),n=H.useRef(e),r=n.current;n.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),H.useEffect(()=>{Vo(t._container,o)},[o]),null}const UR=H.memo(sE),lE=Promise.resolve().then(()=>require("./mapbox-gl-FIEJQpQK-B9gw7ndn.js")).then(e=>e.m),KR=y.forwardRef(function(e,t){return _D(e,t,lE)});const No=Math.min,Xr=Math.max,ro=Math.round,Ur=Math.floor,cn=e=>({x:e,y:e}),cE={left:"right",right:"left",bottom:"top",top:"bottom"},uE={start:"end",end:"start"};function Mu(e,t,n){return Xr(e,No(t,n))}function rs(e,t){return typeof e=="function"?e(t):e}function Po(e){return e.split("-")[0]}function os(e){return e.split("-")[1]}function nb(e){return e==="x"?"y":"x"}function Xd(e){return e==="y"?"height":"width"}const dE=new Set(["top","bottom"]);function Kr(e){return dE.has(Po(e))?"y":"x"}function $d(e){return nb(Kr(e))}function pE(e,t,n){n===void 0&&(n=!1);const r=os(e),o=$d(e),a=Xd(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=gl(i)),[i,gl(i)]}function mE(e){const t=gl(e);return[Au(e),t,Au(t)]}function Au(e){return e.replace(/start|end/g,t=>uE[t])}const _f=["left","right"],eh=["right","left"],fE=["top","bottom"],hE=["bottom","top"];function gE(e,t,n){switch(e){case"top":case"bottom":return n?t?eh:_f:t?_f:eh;case"left":case"right":return t?fE:hE;default:return[]}}function vE(e,t,n,r){const o=os(e);let a=gE(Po(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Au)))),a}function gl(e){return e.replace(/left|right|bottom|top/g,t=>cE[t])}function bE(e){return{top:0,right:0,bottom:0,left:0,...e}}function rb(e){return typeof e!="number"?bE(e):{top:e,right:e,bottom:e,left:e}}function Hi(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function th(e,t,n){let{reference:r,floating:o}=e;const a=Kr(t),i=$d(t),s=Xd(i),l=Po(t),c=a==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(os(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1);break}return p}async function yE(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=rs(t,e),m=rb(p),h=s[f?d==="floating"?"reference":"floating":d],g=Hi(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(h)))==null||n?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),w=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),x=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},A=Hi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:C,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 wE=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=th(c,r,l),f=r,p={},m=0;for(let g=0;g<s.length;g++){var h;const{name:w,fn:C}=s[g],{x,y:A,data:M,reset:I}=await C({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:{...i,detectOverflow:(h=i.detectOverflow)!=null?h:yE},elements:{reference:e,floating:t}});u=x??u,d=A??d,p={...p,[w]:{...p[w],...M}},I&&m<=50&&(m++,typeof I=="object"&&(I.placement&&(f=I.placement),I.rects&&(c=I.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:u,y:d}=th(c,f,l)),g=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}},xE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=rs(e,t)||{};if(c==null)return{};const d=rb(u),f={x:n,y:r},p=$d(o),m=Xd(p),h=await i.getDimensions(c),g=p==="y",w=g?"top":"left",C=g?"bottom":"right",x=g?"clientHeight":"clientWidth",A=a.reference[m]+a.reference[p]-f[p]-a.floating[m],M=f[p]-a.reference[p],I=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let z=I?I[x]:0;(!z||!await(i.isElement==null?void 0:i.isElement(I)))&&(z=s.floating[x]||a.floating[m]);const D=A/2-M/2,j=z/2-h[m]/2-1,B=No(d[w],j),N=No(d[C],j),v=B,L=z-h[m]-N,k=z/2-h[m]/2+D,O=Mu(v,k,L),T=!l.arrow&&os(o)!=null&&k!==O&&a.reference[m]/2-(k<v?B:N)-h[m]/2<0,P=T?k<v?k-v:k-L:0;return{[p]:f[p]+P,data:{[p]:O,centerOffset:k-O-P,...T&&{alignmentOffset:P}},reset:T}}}),CE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=rs(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=Po(o),C=Kr(s),x=Po(s)===s,A=await(l.isRTL==null?void 0:l.isRTL(c.floating)),M=f||(x||!h?[gl(s)]:mE(s)),I=m!=="none";!f&&I&&M.push(...vE(s,h,m,A));const z=[s,...M],D=await l.detectOverflow(t,g),j=[];let B=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&j.push(D[w]),d){const k=pE(o,i,A);j.push(D[k[0]],D[k[1]])}if(B=[...B,{placement:o,overflows:j}],!j.every(k=>k<=0)){var N,v;const k=(((N=a.flip)==null?void 0:N.index)||0)+1,O=z[k];if(O&&(!(d==="alignment"&&C!==Kr(O))||B.every(P=>Kr(P.placement)===C?P.overflows[0]>0:!0)))return{data:{index:k,overflows:B},reset:{placement:O}};let T=(v=B.filter(P=>P.overflows[0]<=0).sort((P,S)=>P.overflows[1]-S.overflows[1])[0])==null?void 0:v.placement;if(!T)switch(p){case"bestFit":{var L;const P=(L=B.filter(S=>{if(I){const q=Kr(S.placement);return q===C||q==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(q=>q>0).reduce((q,V)=>q+V,0)]).sort((S,q)=>S[1]-q[1])[0])==null?void 0:L[0];P&&(T=P);break}case"initialPlacement":T=s;break}if(o!==T)return{reset:{placement:T}}}return{}}}},kE=new Set(["left","top"]);async function SE(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Po(n),s=os(n),l=Kr(n)==="y",c=kE.has(i)?-1:1,u=a&&l?-1:1,d=rs(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m=="number"&&(p=s==="end"?m*-1:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const ME=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await SE(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},AE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:C,y:x}=w;return{x:C,y:x}}},...c}=rs(e,t),u={x:n,y:r},d=await a.detectOverflow(t,c),f=Kr(Po(o)),p=nb(f);let m=u[p],h=u[f];if(i){const w=p==="y"?"top":"left",C=p==="y"?"bottom":"right",x=m+d[w],A=m-d[C];m=Mu(x,m,A)}if(s){const w=f==="y"?"top":"left",C=f==="y"?"bottom":"right",x=h+d[w],A=h-d[C];h=Mu(x,h,A)}const g=l.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[f]:s}}}}}};function _l(){return typeof window<"u"}function Qa(e){return ob(e)?(e.nodeName||"").toLowerCase():"#document"}function Kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nr(e){var t;return(t=(ob(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ob(e){return _l()?e instanceof Node||e instanceof Kt(e).Node:!1}function dn(e){return _l()?e instanceof Element||e instanceof Kt(e).Element:!1}function Fn(e){return _l()?e instanceof HTMLElement||e instanceof Kt(e).HTMLElement:!1}function nh(e){return!_l()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Kt(e).ShadowRoot}const IE=new Set(["inline","contents"]);function as(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Cn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!IE.has(o)}const OE=new Set(["table","td","th"]);function DE(e){return OE.has(Qa(e))}const EE=[":popover-open",":modal"];function ec(e){return EE.some(t=>{try{return e.matches(t)}catch{return!1}})}const TE=["transform","translate","scale","rotate","perspective"],NE=["transform","translate","scale","rotate","perspective","filter"],PE=["paint","layout","strict","content"];function _d(e){const t=tc(),n=dn(e)?Cn(e):e;return TE.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||NE.some(r=>(n.willChange||"").includes(r))||PE.some(r=>(n.contain||"").includes(r))}function zE(e){let t=oo(e);for(;Fn(t)&&!Na(t);){if(_d(t))return t;if(ec(t))return null;t=oo(t)}return null}function tc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const RE=new Set(["html","body","#document"]);function Na(e){return RE.has(Qa(e))}function Cn(e){return Kt(e).getComputedStyle(e)}function nc(e){return dn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function oo(e){if(Qa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nh(e)&&e.host||nr(e);return nh(t)?t.host:t}function ab(e){const t=oo(e);return Na(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fn(t)&&as(t)?t:ab(t)}function zo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ab(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=Kt(o);if(a){const s=Wi(i);return t.concat(i,i.visualViewport||[],as(o)?o:[],s&&n?zo(s):[])}return t.concat(o,zo(o,[],n))}function Wi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ib(e){const t=Cn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Fn(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=ro(n)!==a||ro(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function ep(e){return dn(e)?e:e.contextElement}function va(e){const t=ep(e);if(!Fn(t))return cn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ib(t);let i=(a?ro(n.width):n.width)/r,s=(a?ro(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const LE=cn(0);function sb(e){const t=Kt(e);return!tc()||!t.visualViewport?LE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Kt(e)?!1:t}function Ro(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=ep(e);let i=cn(1);t&&(r?dn(r)&&(i=va(r)):i=va(e));const s=jE(a,n,r)?sb(a):cn(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const f=Kt(a),p=r&&dn(r)?Kt(r):r;let m=f,h=Wi(m);for(;h&&r&&p!==m;){const g=va(h),w=h.getBoundingClientRect(),C=Cn(h),x=w.left+(h.clientLeft+parseFloat(C.paddingLeft))*g.x,A=w.top+(h.clientTop+parseFloat(C.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=x,c+=A,m=Kt(h),h=Wi(m)}}return Hi({width:u,height:d,x:l,y:c})}function rc(e,t){const n=nc(e).scrollLeft;return t?t.left+n:Ro(nr(e)).left+n}function lb(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-rc(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function BE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=nr(r),s=t?ec(t.floating):!1;if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=cn(1);const u=cn(0),d=Fn(r);if((d||!d&&!a)&&((Qa(r)!=="body"||as(i))&&(l=nc(r)),Fn(r))){const p=Ro(r);c=va(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=i&&!d&&!a?lb(i,l):cn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function FE(e){return Array.from(e.getClientRects())}function qE(e){const t=nr(e),n=nc(e),r=e.ownerDocument.body,o=Xr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Xr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+rc(e);const s=-n.scrollTop;return Cn(r).direction==="rtl"&&(i+=Xr(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}const rh=25;function VE(e,t){const n=Kt(e),r=nr(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const u=tc();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const c=rc(r);if(c<=0){const u=r.ownerDocument,d=u.body,f=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(r.clientWidth-d.clientWidth-p);m<=rh&&(a-=m)}else c<=rh&&(a+=c);return{width:a,height:i,x:s,y:l}}const HE=new Set(["absolute","fixed"]);function WE(e,t){const n=Ro(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Fn(e)?va(e):cn(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,c=r*a.y;return{width:i,height:s,x:l,y:c}}function oh(e,t,n){let r;if(t==="viewport")r=VE(e,n);else if(t==="document")r=qE(nr(e));else if(dn(t))r=WE(t,n);else{const o=sb(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Hi(r)}function cb(e,t){const n=oo(e);return n===t||!dn(n)||Na(n)?!1:Cn(n).position==="fixed"||cb(n,t)}function ZE(e,t){const n=t.get(e);if(n)return n;let r=zo(e,[],!1).filter(s=>dn(s)&&Qa(s)!=="body"),o=null;const a=Cn(e).position==="fixed";let i=a?oo(e):e;for(;dn(i)&&!Na(i);){const s=Cn(i),l=_d(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&o&&HE.has(o.position)||as(i)&&!l&&cb(e,i))?r=r.filter(c=>c!==i):o=s,i=oo(i)}return t.set(e,r),r}function GE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?ec(t)?[]:ZE(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((l,c)=>{const u=oh(t,c,o);return l.top=Xr(u.top,l.top),l.right=No(u.right,l.right),l.bottom=No(u.bottom,l.bottom),l.left=Xr(u.left,l.left),l},oh(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function YE(e){const{width:t,height:n}=ib(e);return{width:t,height:n}}function QE(e,t,n){const r=Fn(t),o=nr(t),a=n==="fixed",i=Ro(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=cn(0);function c(){l.x=rc(o)}if(r||!r&&!a)if((Qa(t)!=="body"||as(o))&&(s=nc(t)),r){const p=Ro(t,!0,a,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&c();a&&!r&&o&&c();const u=o&&!r&&!a?lb(o,s):cn(0),d=i.left+s.scrollLeft-l.x-u.x,f=i.top+s.scrollTop-l.y-u.y;return{x:d,y:f,width:i.width,height:i.height}}function Dc(e){return Cn(e).position==="static"}function ah(e,t){if(!Fn(e)||Cn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return nr(e)===n&&(n=n.ownerDocument.body),n}function ub(e,t){const n=Kt(e);if(ec(e))return n;if(!Fn(e)){let o=oo(e);for(;o&&!Na(o);){if(dn(o)&&!Dc(o))return o;o=oo(o)}return n}let r=ah(e,t);for(;r&&DE(r)&&Dc(r);)r=ah(r,t);return r&&Na(r)&&Dc(r)&&!_d(r)?n:r||zE(e)||n}const UE=async function(e){const t=this.getOffsetParent||ub,n=this.getDimensions,r=await n(e.floating);return{reference:QE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function KE(e){return Cn(e).direction==="rtl"}const JE={convertOffsetParentRelativeRectToViewportRelativeRect:BE,getDocumentElement:nr,getClippingRect:GE,getOffsetParent:ub,getElementRects:UE,getClientRects:FE,getDimensions:YE,getScale:va,isElement:dn,isRTL:KE};function db(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function XE(e,t){let n=null,r;const o=nr(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const m=Ur(d),h=Ur(o.clientWidth-(u+f)),g=Ur(o.clientHeight-(d+p)),w=Ur(u),C={rootMargin:-m+"px "+-h+"px "+-g+"px "+-w+"px",threshold:Xr(0,No(1,l))||1};let x=!0;function A(M){const I=M[0].intersectionRatio;if(I!==l){if(!x)return i();I?i(!1,I):r=setTimeout(()=>{i(!1,1e-7)},1e3)}I===1&&!db(c,e.getBoundingClientRect())&&i(),x=!1}try{n=new IntersectionObserver(A,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,C)}n.observe(e)}return i(!0),a}function $E(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ep(e),u=o||a?[...c?zo(c):[],...zo(t)]:[];u.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const d=c&&s?XE(c,n):null;let f=-1,p=null;i&&(p=new ResizeObserver(w=>{let[C]=w;C&&C.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let m,h=l?Ro(e):null;l&&g();function g(){const w=Ro(e);h&&!db(h,w)&&n(),h=w,m=requestAnimationFrame(g)}return n(),()=>{var w;u.forEach(C=>{o&&C.removeEventListener("scroll",n),a&&C.removeEventListener("resize",n)}),d==null||d(),(w=p)==null||w.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const _E=ME,eT=AE,tT=CE,nT=xE,ih=(e,t,n)=>{const r=new Map,o={platform:JE,...n},a={...o.platform,_c:r};return wE(e,t,{...o,platform:a})};var Iu={exports:{}};/*!
361
361
  Copyright (c) 2018 Jed Watson.
362
362
  Licensed under the MIT License (MIT), see
363
363
  http://jedwatson.github.io/classnames
@@ -372,4 +372,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
372
372
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tp(e){return DT(e)||ET(e)||fb(e)||TT()}function NT(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function PT(e){const t=Cn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Fn(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=ro(n)!==a||ro(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function np(e){return dn(e)?e:e.contextElement}function Tc(e){const t=np(e);if(!Fn(t))return cn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=PT(t);let i=(a?ro(n.width):n.width)/r,s=(a?ro(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const zT=cn(0);function RT(e){const t=Kt(e);return!tc()||!t.visualViewport?zT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function LT(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Kt(e)?!1:t}function vh(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=np(e);let i=cn(1);t&&(r?dn(r)&&(i=Tc(r)):i=Tc(e));const s=LT(a,n,r)?RT(a):cn(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const f=Kt(a),p=r&&dn(r)?Kt(r):r;let m=f,h=Wi(m);for(;h&&r&&p!==m;){const g=Tc(h),w=h.getBoundingClientRect(),C=Cn(h),x=w.left+(h.clientLeft+parseFloat(C.paddingLeft))*g.x,A=w.top+(h.clientTop+parseFloat(C.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=x,c+=A,m=Kt(h),h=Wi(m)}}return Hi({width:u,height:d,x:l,y:c})}function gb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jT(e,t){let n=null,r;const o=nr(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const m=Ur(d),h=Ur(o.clientWidth-(u+f)),g=Ur(o.clientHeight-(d+p)),w=Ur(u),C={rootMargin:-m+"px "+-h+"px "+-g+"px "+-w+"px",threshold:Xr(0,No(1,l))||1};let x=!0;function A(M){const I=M[0].intersectionRatio;if(I!==l){if(!x)return i();I?i(!1,I):r=setTimeout(()=>{i(!1,1e-7)},1e3)}I===1&&!gb(c,e.getBoundingClientRect())&&i(),x=!1}try{n=new IntersectionObserver(A,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,C)}n.observe(e)}return i(!0),a}function BT(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=np(e),u=o||a?[...c?zo(c):[],...zo(t)]:[];u.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const d=c&&s?jT(c,n):null;let f=-1,p=null;i&&(p=new ResizeObserver(w=>{let[C]=w;C&&C.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let m,h=l?vh(e):null;l&&g();function g(){const w=vh(e);h&&!gb(h,w)&&n(),h=w,m=requestAnimationFrame(g)}return n(),()=>{var w;u.forEach(C=>{o&&C.removeEventListener("scroll",n),a&&C.removeEventListener("resize",n)}),d==null||d(),(w=p)==null||w.disconnect(),p=null,l&&cancelAnimationFrame(m)}}var FT=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],bl=function(){};function qT(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function VT(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(qT(e,i)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var bh=function(e){return JT(e)?e.filter(Boolean):Lo(e)==="object"&&e!==null?[e]:[]},vb=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=Lr(e,FT);return qe({},t)},jt=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(n??{},a(t,e),i)}};function oc(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function HT(e){return oc(e)?window.innerHeight:e.clientHeight}function bb(e){return oc(e)?window.pageYOffset:e.scrollTop}function yl(e,t){if(oc(e)){window.scrollTo(0,t);return}e.scrollTop=t}function WT(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function ZT(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ms(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:bl,o=bb(e),a=t-o,i=10,s=0;function l(){s+=i;var c=ZT(s,o,a,n);yl(e,c),s<n?window.requestAnimationFrame(l):r(e)}l()}function yh(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?yl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&yl(e,Math.max(t.offsetTop-o,0))}function GT(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 wh(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function YT(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var yb=!1,QT={get passive(){return yb=!0}},As=typeof window<"u"?window:{};As.addEventListener&&As.removeEventListener&&(As.addEventListener("p",bl,QT),As.removeEventListener("p",bl,!1));var UT=yb;function KT(e){return e!=null}function JT(e){return Array.isArray(e)}function Is(e,t,n){return e?t:n}var XT=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter(function(a){var i=Ir(a,1),s=i[0];return!n.includes(s)});return o.reduce(function(a,i){var s=Ir(i,2),l=s[0],c=s[1];return a[l]=c,a},{})},$T=["children","innerProps"],_T=["children","innerProps"];function eN(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,l=WT(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,f=n.getBoundingClientRect(),p=f.bottom,m=f.height,h=f.top,g=n.offsetParent.getBoundingClientRect(),w=g.top,C=i?window.innerHeight:HT(l),x=bb(l),A=parseInt(getComputedStyle(n).marginBottom,10),M=parseInt(getComputedStyle(n).marginTop,10),I=w-M,z=C-h,D=I+x,j=d-x-h,B=p-C+x+A,N=x+h-M,v=160;switch(o){case"auto":case"bottom":if(z>=m)return{placement:"bottom",maxHeight:t};if(j>=m&&!i)return a&&Ms(l,B,v),{placement:"bottom",maxHeight:t};if(!i&&j>=r||i&&z>=r){a&&Ms(l,B,v);var L=i?z-A:j-A;return{placement:"bottom",maxHeight:L}}if(o==="auto"||i){var k=t,O=i?I:D;return O>=r&&(k=Math.min(O-A-s,t)),{placement:"top",maxHeight:k}}if(o==="bottom")return a&&yl(l,B),{placement:"bottom",maxHeight:t};break;case"top":if(I>=m)return{placement:"top",maxHeight:t};if(D>=m&&!i)return a&&Ms(l,N,v),{placement:"top",maxHeight:t};if(!i&&D>=r||i&&I>=r){var T=t;return(!i&&D>=r||i&&I>=r)&&(T=i?I-M:D-M),a&&Ms(l,N,v),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}function tN(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var wb=function(e){return e==="auto"?"bottom":e},nN=function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,s=o.colors;return qe((n={label:"menu"},vi(n,tN(r),"100%"),vi(n,"position","absolute"),vi(n,"width","100%"),vi(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},xb=H.createContext(null),rN=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,i=e.menuShouldScrollIntoView,s=e.theme,l=H.useContext(xb)||{},c=l.setPortalPlacement,u=H.useRef(null),d=H.useState(r),f=Ir(d,2),p=f[0],m=f[1],h=H.useState(null),g=Ir(h,2),w=g[0],C=g[1],x=s.spacing.controlHeight;return eu(function(){var A=u.current;if(A){var M=a==="fixed",I=i&&!M,z=eN({maxHeight:r,menuEl:A,minHeight:n,placement:o,shouldScroll:I,isFixedPosition:M,controlHeight:x});m(z.maxHeight),C(z.placement),c==null||c(z.placement)}},[r,o,a,i,n,c,x]),t({ref:u,placerProps:qe(qe({},e),{},{placement:w||wb(o),maxHeight:p})})},oN=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return je("div",R({},jt(e,"menu",{menu:!0}),{ref:n},r),t)},aN=oN,iN=function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return qe({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},sN=function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return je("div",R({},jt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},Cb=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return qe({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},lN=Cb,cN=Cb,uN=function(e){var t=e.children,n=t===void 0?"No options":t,r=e.innerProps,o=Lr(e,$T);return je("div",R({},jt(qe(qe({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},dN=function(e){var t=e.children,n=t===void 0?"Loading...":t,r=e.innerProps,o=Lr(e,_T);return je("div",R({},jt(qe(qe({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},pN=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},mN=function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,a=e.menuPlacement,i=e.menuPosition,s=H.useRef(null),l=H.useRef(null),c=H.useState(wb(a)),u=Ir(c,2),d=u[0],f=u[1],p=H.useMemo(function(){return{setPortalPlacement:f}},[]),m=H.useState(null),h=Ir(m,2),g=h[0],w=h[1],C=H.useCallback(function(){if(r){var I=GT(r),z=i==="fixed"?0:window.pageYOffset,D=I[d]+z;(D!==(g==null?void 0:g.offset)||I.left!==(g==null?void 0:g.rect.left)||I.width!==(g==null?void 0:g.rect.width))&&w({offset:D,rect:I})}},[r,i,d,g==null?void 0:g.offset,g==null?void 0:g.rect.left,g==null?void 0:g.rect.width]);eu(function(){C()},[C]);var x=H.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),r&&s.current&&(l.current=BT(r,s.current,C,{elementResize:"ResizeObserver"in window}))},[r,C]);eu(function(){x()},[x]);var A=H.useCallback(function(I){s.current=I,x()},[x]);if(!t&&i!=="fixed"||!g)return null;var M=je("div",R({ref:A},jt(qe(qe({},e),{},{offset:g.offset,position:i,rect:g.rect}),"menuPortal",{"menu-portal":!0}),o),n);return je(xb.Provider,{value:p},t?pr.createPortal(M,t):M)},fN=function(e){var t=e.isDisabled,n=e.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},hN=function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return je("div",R({},jt(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},gN=function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return qe({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},vN=function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return je("div",R({},jt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)},bN=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},yN=function(e){var t=e.children,n=e.innerProps;return je("div",R({},jt(e,"indicatorsContainer",{indicators:!0}),n),t)},xh,wN=["size"],xN=["innerProps","isRtl","size"],CN={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},kb=function(e){var t=e.size,n=Lr(e,wN);return je("svg",R({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:CN},n))},rp=function(e){return je(kb,R({size:20},e),je("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"}))},Sb=function(e){return je(kb,R({size:20},e),je("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"}))},Mb=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return qe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:o*2,":hover":{color:n?a.neutral80:a.neutral40}})},kN=Mb,SN=function(e){var t=e.children,n=e.innerProps;return je("div",R({},jt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||je(Sb,null))},MN=Mb,AN=function(e){var t=e.children,n=e.innerProps;return je("div",R({},jt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||je(rp,null))},IN=function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return qe({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},ON=function(e){var t=e.innerProps;return je("span",R({},t,jt(e,"indicatorSeparator",{"indicator-separator":!0})))},DN=Pw(xh||(xh=NT([`
373
373
  0%, 80%, 100% { opacity: 0; }
374
374
  40% { opacity: 1; }
375
- `]))),EN=function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return qe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:i*2})},Nc=function(e){var t=e.delay,n=e.offset;return je("span",{css:Ku({animation:"".concat(DN," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},TN=function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=r===void 0?4:r,a=Lr(e,xN);return je("div",R({},jt(qe(qe({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),je(Nc,{delay:0,offset:n}),je(Nc,{delay:160,offset:!0}),je(Nc,{delay:320,offset:!n}))},NN=function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius,s=o.spacing;return qe({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},PN=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return je("div",R({ref:o},jt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a,{"aria-disabled":n||void 0}),t)},zN=PN,RN=["data"],LN=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},jN=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return je("div",R({},jt(e,"group",{group:!0}),s),je(a,R({},i,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),je("div",null,t))},BN=function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return qe({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},FN=function(e){var t=vb(e);t.data;var n=Lr(t,RN);return je("div",R({},jt(e,"groupHeading",{"group-heading":!0}),n))},qN=jN,VN=["innerRef","isDisabled","isHidden","inputClassName"],HN=function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return qe(qe({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},WN),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},Ab={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},WN={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":qe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ab)},ZN=function(e){return qe({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ab)},GN=function(e){var t=e.cx,n=e.value,r=vb(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,s=r.inputClassName,l=Lr(r,VN);return je("div",R({},jt(e,"input",{"input-container":!0}),{"data-value":n||""}),je("input",R({className:t({input:!0},s),ref:o,style:ZN(i),disabled:a},l)))},YN=GN,QN=function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return qe({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},UN=function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return qe({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},KN=function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return qe({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Ib=function(e){var t=e.children,n=e.innerProps;return je("div",n,t)},JN=Ib,XN=Ib;function $N(e){var t=e.children,n=e.innerProps;return je("div",R({role:"button"},n),t||je(rp,{size:14}))}var _N=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return je(l,{data:r,innerProps:qe(qe({},jt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:s},je(c,{data:r,innerProps:qe({},jt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),je(u,{data:r,innerProps:qe(qe({},jt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:s}))},eP=_N,tP=function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,s=a.colors;return qe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(i.baseUnit*2,"px ").concat(i.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},nP=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,i=e.innerProps;return je("div",R({},jt(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},i),t)},rP=nP,oP=function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return qe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},aP=function(e){var t=e.children,n=e.innerProps;return je("div",R({},jt(e,"placeholder",{placeholder:!0}),n),t)},iP=aP,sP=function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return qe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},lP=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return je("div",R({},jt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},cP=lP,uP={ClearIndicator:AN,Control:zN,DropdownIndicator:SN,DownChevron:Sb,CrossIcon:rp,Group:qN,GroupHeading:FN,IndicatorsContainer:yN,IndicatorSeparator:ON,Input:YN,LoadingIndicator:TN,Menu:aN,MenuList:sN,MenuPortal:mN,LoadingMessage:dN,NoOptionsMessage:uN,MultiValue:eP,MultiValueContainer:JN,MultiValueLabel:XN,MultiValueRemove:$N,Option:rP,Placeholder:iP,SelectContainer:hN,SingleValue:cP,ValueContainer:vN},dP=function(e){return qe(qe({},uP),e.components)},Ch=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function pP(e,t){return!!(e===t||Ch(e)&&Ch(t))}function mP(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!pP(e[n],t[n]))return!1;return!0}function fP(e,t){t===void 0&&(t=mP);var n=null;function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return r.clear=function(){n=null},r}var hP={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"},gP=function(e){return je("span",R({css:hP},e))},kh=gP,vP={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){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 a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",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(e){var t=e.action,n=e.label,r=n===void 0?"":n,o=e.labels,a=e.isDisabled;switch(t){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(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=o===void 0?"":o,i=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(p,m){return p&&p.length?"".concat(p.indexOf(m)+1," of ").concat(p.length):""};if(t==="value"&&i)return"value ".concat(a," focused, ").concat(u(i,n),".");if(t==="menu"&&c){var d=s?" disabled":"",f="".concat(l?" selected":"").concat(d);return"".concat(a).concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},bP=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,s=e.selectProps,l=e.id,c=e.isAppleDevice,u=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,p=s.isMulti,m=s.isOptionDisabled,h=s.isSearchable,g=s.menuIsOpen,w=s.options,C=s.screenReaderStatus,x=s.tabSelectsValue,A=s.isLoading,M=s["aria-label"],I=s["aria-live"],z=H.useMemo(function(){return qe(qe({},vP),u||{})},[u]),D=H.useMemo(function(){var k="";if(t&&z.onChange){var O=t.option,T=t.options,P=t.removedValue,S=t.removedValues,q=t.value,V=function(re){return Array.isArray(re)?null:re},F=P||O||V(q),G=F?d(F):"",Q=T||S||void 0,W=Q?Q.map(d):[],Y=qe({isDisabled:F&&m(F,i),label:G,labels:W},t);k=z.onChange(Y)}return k},[t,z,m,i,d]),j=H.useMemo(function(){var k="",O=n||r,T=!!(n&&i&&i.includes(n));if(O&&z.onFocus){var P={focused:O,label:d(O),isDisabled:m(O,i),isSelected:T,options:o,context:O===n?"menu":"value",selectValue:i,isAppleDevice:c};k=z.onFocus(P)}return k},[n,r,d,m,z,o,i,c]),B=H.useMemo(function(){var k="";if(g&&w.length&&!A&&z.onFilter){var O=C({count:o.length});k=z.onFilter({inputValue:f,resultsMessage:O})}return k},[o,f,g,z,w,C,A]),N=(t==null?void 0:t.action)==="initial-input-focus",v=H.useMemo(function(){var k="";if(z.guidance){var O=r?"value":g?"menu":"input";k=z.guidance({"aria-label":M,context:O,isDisabled:n&&m(n,i),isMulti:p,isSearchable:h,tabSelectsValue:x,isInitialFocus:N})}return k},[M,n,r,p,m,h,g,z,i,x,N]),L=je(H.Fragment,null,je("span",{id:"aria-selection"},D),je("span",{id:"aria-focused"},j),je("span",{id:"aria-results"},B),je("span",{id:"aria-guidance"},v));return je(H.Fragment,null,je(kh,{id:l},N&&L),je(kh,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!N&&L))},yP=bP,Tu=[{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źẑżžẓẕƶȥɀⱬꝣ"}],wP=new RegExp("["+Tu.map(function(e){return e.letters}).join("")+"]","g"),Ob={};for(var Pc=0;Pc<Tu.length;Pc++)for(var zc=Tu[Pc],Rc=0;Rc<zc.letters.length;Rc++)Ob[zc.letters[Rc]]=zc.base;var Db=function(e){return e.replace(wP,function(t){return Ob[t]})},xP=fP(Db),Sh=function(e){return e.replace(/^\s+|\s+$/g,"")},CP=function(e){return"".concat(e.label," ").concat(e.value)},kP=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=qe({ignoreCase:!0,ignoreAccents:!0,stringify:CP,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,a=r.ignoreAccents,i=r.stringify,s=r.trim,l=r.matchFrom,c=s?Sh(n):n,u=s?Sh(i(t)):i(t);return o&&(c=c.toLowerCase(),u=u.toLowerCase()),a&&(c=xP(c),u=Db(u)),l==="start"?u.substr(0,c.length)===c:u.indexOf(c)>-1}},SP=["innerRef"];function MP(e){var t=e.innerRef,n=Lr(e,SP),r=XT(n,"onExited","in","enter","exit","appear");return je("input",R({ref:t},r,{css:Ku({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 AP=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function IP(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=H.useRef(!1),s=H.useRef(!1),l=H.useRef(0),c=H.useRef(null),u=H.useCallback(function(g,w){if(c.current!==null){var C=c.current,x=C.scrollTop,A=C.scrollHeight,M=C.clientHeight,I=c.current,z=w>0,D=A-M-x,j=!1;D>w&&i.current&&(r&&r(g),i.current=!1),z&&s.current&&(a&&a(g),s.current=!1),z&&w>D?(n&&!i.current&&n(g),I.scrollTop=A,j=!0,i.current=!0):!z&&-w>x&&(o&&!s.current&&o(g),I.scrollTop=0,j=!0,s.current=!0),j&&AP(g)}},[n,r,o,a]),d=H.useCallback(function(g){u(g,g.deltaY)},[u]),f=H.useCallback(function(g){l.current=g.changedTouches[0].clientY},[]),p=H.useCallback(function(g){var w=l.current-g.changedTouches[0].clientY;u(g,w)},[u]),m=H.useCallback(function(g){if(g){var w=UT?{passive:!1}:!1;g.addEventListener("wheel",d,w),g.addEventListener("touchstart",f,w),g.addEventListener("touchmove",p,w)}},[p,f,d]),h=H.useCallback(function(g){g&&(g.removeEventListener("wheel",d,!1),g.removeEventListener("touchstart",f,!1),g.removeEventListener("touchmove",p,!1))},[p,f,d]);return H.useEffect(function(){if(t){var g=c.current;return m(g),function(){h(g)}}},[t,m,h]),function(g){c.current=g}}var Mh=["boxSizing","height","overflow","paddingRight","position"],Ah={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ih(e){e.cancelable&&e.preventDefault()}function Oh(e){e.stopPropagation()}function Dh(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Eh(){return"ontouchstart"in window||navigator.maxTouchPoints}var Th=!!(typeof window<"u"&&window.document&&window.document.createElement),pi=0,ra={capture:!1,passive:!1};function OP(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=H.useRef({}),a=H.useRef(null),i=H.useCallback(function(l){if(Th){var c=document.body,u=c&&c.style;if(r&&Mh.forEach(function(m){var h=u&&u[m];o.current[m]=h}),r&&pi<1){var d=parseInt(o.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(Ah).forEach(function(m){var h=Ah[m];u&&(u[m]=h)}),u&&(u.paddingRight="".concat(p,"px"))}c&&Eh()&&(c.addEventListener("touchmove",Ih,ra),l&&(l.addEventListener("touchstart",Dh,ra),l.addEventListener("touchmove",Oh,ra))),pi+=1}},[r]),s=H.useCallback(function(l){if(Th){var c=document.body,u=c&&c.style;pi=Math.max(pi-1,0),r&&pi<1&&Mh.forEach(function(d){var f=o.current[d];u&&(u[d]=f)}),c&&Eh()&&(c.removeEventListener("touchmove",Ih,ra),l&&(l.removeEventListener("touchstart",Dh,ra),l.removeEventListener("touchmove",Oh,ra)))}},[r]);return H.useEffect(function(){if(t){var l=a.current;return i(l),function(){s(l)}}},[t,i,s]),function(l){a.current=l}}var DP=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},EP={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function TP(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,a=e.onBottomArrive,i=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=IP({isEnabled:o,onBottomArrive:a,onBottomLeave:i,onTopArrive:s,onTopLeave:l}),u=OP({isEnabled:n}),d=function(f){c(f),u(f)};return je(H.Fragment,null,n&&je("div",{onClick:DP,css:EP}),t(d))}var NP={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},PP=function(e){var t=e.name,n=e.onFocus;return je("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:NP,value:"",onChange:function(){}})},zP=PP;function op(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 RP(){return op(/^iPhone/i)}function Eb(){return op(/^Mac/i)}function LP(){return op(/^iPad/i)||Eb()&&navigator.maxTouchPoints>1}function jP(){return RP()||LP()}function BP(){return Eb()||jP()}var FP=function(e){return e.label},qP=function(e){return e.label},VP=function(e){return e.value},HP=function(e){return!!e.isDisabled},WP={clearIndicator:MN,container:fN,control:NN,dropdownIndicator:kN,group:LN,groupHeading:BN,indicatorsContainer:bN,indicatorSeparator:IN,input:HN,loadingIndicator:EN,loadingMessage:cN,menu:nN,menuList:iN,menuPortal:pN,multiValue:QN,multiValueLabel:UN,multiValueRemove:KN,noOptionsMessage:lN,option:tP,placeholder:oP,singleValue:sP,valueContainer:gN},ZP={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%)"},GP=4,Tb=4,YP=38,QP=Tb*2,UP={baseUnit:Tb,controlHeight:YP,menuGutter:QP},Lc={borderRadius:GP,colors:ZP,spacing:UP},KP={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:wh(),captureMenuScroll:!wh(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:kP(),formatGroupLabel:FP,getOptionLabel:qP,getOptionValue:VP,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:HP,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!YT(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(t!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Nh(e,t,n,r){var o=zb(e,t,n),a=Rb(e,t,n),i=Pb(e,t),s=wl(e,t);return{type:"option",data:t,isDisabled:o,isSelected:a,label:i,value:s,index:r}}function Us(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(i,s){return Nh(e,i,t,s)}).filter(function(i){return zh(e,i)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Nh(e,n,t,r);return zh(e,a)?a:void 0}).filter(KT)}function Nb(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,tp(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Ph(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,tp(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function JP(e,t){return Nb(Us(e,t))}function zh(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!jb(e)||!a)&&Lb(e,{label:i,value:s,data:o},r)}function XP(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var a=t.indexOf(n);if(a>-1)return n;if(o<t.length)return t[o]}return null}function $P(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var jc=function(e,t){var n,r=(n=e.find(function(o){return o.data===t}))===null||n===void 0?void 0:n.id;return r||null},Pb=function(e,t){return e.getOptionLabel(t)},wl=function(e,t){return e.getOptionValue(t)};function zb(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Rb(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=wl(e,t);return n.some(function(o){return wl(e,o)===r})}function Lb(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var jb=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return t===void 0?n:t},_P=1,Bb=(function(e){AT(n,e);var t=OT(n);function n(r){var o;if(ST(this,n),o=t.call(this,r),o.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},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,c){var u=o.props,d=u.onChange,f=u.name;c.name=f,o.ariaOnChange(l,c),d(l,c)},o.setValue=function(l,c,u){var d=o.props,f=d.closeMenuOnSelect,p=d.isMulti,m=d.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:m}),f&&(o.setState({inputIsHiddenAfterUpdate:!p}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:c,option:u})},o.selectOption=function(l){var c=o.props,u=c.blurInputOnSelect,d=c.isMulti,f=c.name,p=o.state.selectValue,m=d&&o.isOptionSelected(l,p),h=o.isOptionDisabled(l,p);if(m){var g=o.getOptionValue(l);o.setValue(p.filter(function(w){return o.getOptionValue(w)!==g}),"deselect-option",l)}else if(!h)d?o.setValue([].concat(tp(p),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:f});return}u&&o.blurInput()},o.removeValue=function(l){var c=o.props.isMulti,u=o.state.selectValue,d=o.getOptionValue(l),f=u.filter(function(m){return o.getOptionValue(m)!==d}),p=Is(c,f,f[0]||null);o.onChange(p,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(Is(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,c=o.state.selectValue,u=c[c.length-1],d=c.slice(0,c.length-1),f=Is(l,d,d[0]||null);u&&o.onChange(f,{action:"pop-value",removedValue:u})},o.getFocusedOptionId=function(l){return jc(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return Ph(Us(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return VT.apply(void 0,[o.props.classNamePrefix].concat(c))},o.getOptionLabel=function(l){return Pb(o.props,l)},o.getOptionValue=function(l){return wl(o.props,l)},o.getStyles=function(l,c){var u=o.props.unstyled,d=WP[l](c,u);d.boxSizing="border-box";var f=o.props.styles[l];return f?f(d,c):d},o.getClassNames=function(l,c){var u,d;return(u=(d=o.props.classNames)[l])===null||u===void 0?void 0:u.call(d,c)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return dP(o.props)},o.buildCategorizedOptions=function(){return Us(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return Nb(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,c){o.setState({ariaSelection:qe({value:l},c)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():c&&o.openMenu("first"):(c&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var c=o.props,u=c.isMulti,d=c.menuIsOpen;o.focusInput(),d?(o.setState({inputIsHiddenAfterUpdate:!u}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&oc(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(o.initialTouchX=u.clientX,o.initialTouchY=u.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var d=Math.abs(u.clientX-o.initialTouchX),f=Math.abs(u.clientY-o.initialTouchY),p=5;o.userIsDragging=d>p||f>p}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var c=o.props.inputValue,u=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(u,{action:"input-change",prevInputValue:c}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var c=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:c}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var c=o.getFocusableOptions(),u=c.indexOf(l);o.setState({focusedOption:l,focusedOptionId:u>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return jb(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var c=o.props,u=c.isMulti,d=c.backspaceRemovesValue,f=c.escapeClearsValue,p=c.inputValue,m=c.isClearable,h=c.isDisabled,g=c.menuIsOpen,w=c.onKeyDown,C=c.tabSelectsValue,x=c.openMenuOnFocus,A=o.state,M=A.focusedOption,I=A.focusedValue,z=A.selectValue;if(!h&&!(typeof w=="function"&&(w(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||p)return;o.focusValue("previous");break;case"ArrowRight":if(!u||p)return;o.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(I)o.removeValue(I);else{if(!d)return;u?o.popValue():m&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!g||!C||!M||x&&o.isOptionSelected(M,z))return;o.selectOption(M);break;case"Enter":if(l.keyCode===229)break;if(g){if(!M||o.isComposing)return;o.selectOption(M);break}return;case"Escape":g?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:p}),o.onMenuClose()):m&&f&&o.clearValue();break;case" ":if(p)return;if(!g){o.openMenu("first");break}if(!M)return;o.selectOption(M);break;case"ArrowUp":g?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":g?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!g)return;o.focusOption("pageup");break;case"PageDown":if(!g)return;o.focusOption("pagedown");break;case"Home":if(!g)return;o.focusOption("first");break;case"End":if(!g)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++_P),o.state.selectValue=bh(r.value),r.menuIsOpen&&o.state.selectValue.length){var a=o.getFocusableOptionsWithIds(),i=o.buildFocusableOptions(),s=i.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=a,o.state.focusedOption=i[s],o.state.focusedOptionId=jc(a,i[s])}return o}return MT(n,[{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&&yh(this.menuListRef,this.focusedOptionRef),BP()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(r){var o=this.props,a=o.isDisabled,i=o.menuIsOpen,s=this.state.isFocused;(s&&!a&&r.isDisabled||s&&i&&!r.menuIsOpen)&&this.focusInput(),s&&a&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!a&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(yh(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,o){this.props.onInputChange(r,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var o=this,a=this.state,i=a.selectValue,s=a.isFocused,l=this.buildFocusableOptions(),c=r==="first"?0:l.length-1;if(!this.props.isMulti){var u=l.indexOf(i[0]);u>-1&&(c=u)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[c],focusedOptionId:this.getFocusedOptionId(l[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(r){var o=this.state,a=o.selectValue,i=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(i);i||(s=-1);var l=a.length-1,c=-1;if(a.length){switch(r){case"previous":s===0?c=0:s===-1?c=l:c=s-1;break;case"next":s>-1&&s<l&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,i=this.getFocusableOptions();if(i.length){var s=0,l=i.indexOf(a);a||(l=-1),r==="up"?s=l>0?l-1:i.length-1:r==="down"?s=(l+1)%i.length:r==="pageup"?(s=l-o,s<0&&(s=0)):r==="pagedown"?(s=l+o,s>i.length-1&&(s=i.length-1)):r==="last"&&(s=i.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:i[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(i[s])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Lc):qe(qe({},Lc),this.props.theme):Lc})},{key:"getCommonProps",value:function(){var r=this.clearValue,o=this.cx,a=this.getStyles,i=this.getClassNames,s=this.getValue,l=this.selectOption,c=this.setValue,u=this.props,d=u.isMulti,f=u.isRtl,p=u.options,m=this.hasValue();return{clearValue:r,cx:o,getStyles:a,getClassNames:i,getValue:s,hasValue:m,isMulti:d,isRtl:f,options:p,selectOption:l,selectProps:u,setValue:c,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,o=r.isClearable,a=r.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(r,o){return zb(this.props,r,o)}},{key:"isOptionSelected",value:function(r,o){return Rb(this.props,r,o)}},{key:"filterOption",value:function(r,o){return Lb(this.props,r,o)}},{key:"formatOptionLabel",value:function(r,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,i=this.state.selectValue;return this.props.formatOptionLabel(r,{context:o,inputValue:a,selectValue:i})}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,o=r.isDisabled,a=r.isSearchable,i=r.inputId,s=r.inputValue,l=r.tabIndex,c=r.form,u=r.menuIsOpen,d=r.required,f=this.getComponents(),p=f.Input,m=this.state,h=m.inputIsHidden,g=m.ariaSelection,w=this.commonProps,C=i||this.getElementId("input"),x=qe(qe(qe({"aria-autocomplete":"list","aria-expanded":u,"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":d,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!a&&{"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 a?y.createElement(p,R({},w,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:o,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:s},x)):y.createElement(MP,R({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:bl,onFocus:this.onInputFocus,disabled:o,tabIndex:l,inputMode:"none",form:c,value:""},x))})},{key:"renderPlaceholderOrValue",value:function(){var r=this,o=this.getComponents(),a=o.MultiValue,i=o.MultiValueContainer,s=o.MultiValueLabel,l=o.MultiValueRemove,c=o.SingleValue,u=o.Placeholder,d=this.commonProps,f=this.props,p=f.controlShouldRenderValue,m=f.isDisabled,h=f.isMulti,g=f.inputValue,w=f.placeholder,C=this.state,x=C.selectValue,A=C.focusedValue,M=C.isFocused;if(!this.hasValue()||!p)return g?null:y.createElement(u,R({},d,{key:"placeholder",isDisabled:m,isFocused:M,innerProps:{id:this.getElementId("placeholder")}}),w);if(h)return x.map(function(z,D){var j=z===A,B="".concat(r.getOptionLabel(z),"-").concat(r.getOptionValue(z));return y.createElement(a,R({},d,{components:{Container:i,Label:s,Remove:l},isFocused:j,isDisabled:m,key:B,index:D,removeProps:{onClick:function(){return r.removeValue(z)},onTouchEnd:function(){return r.removeValue(z)},onMouseDown:function(N){N.preventDefault()}},data:z}),r.formatOptionLabel(z,"value"))});if(g)return null;var I=x[0];return y.createElement(c,R({},d,{data:I,isDisabled:m}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),o=r.ClearIndicator,a=this.commonProps,i=this.props,s=i.isDisabled,l=i.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||l)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return y.createElement(o,R({},a,{innerProps:u,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),o=r.LoadingIndicator,a=this.commonProps,i=this.props,s=i.isDisabled,l=i.isLoading,c=this.state.isFocused;if(!o||!l)return null;var u={"aria-hidden":"true"};return y.createElement(o,R({},a,{innerProps:u,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator,a=r.IndicatorSeparator;if(!o||!a)return null;var i=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused;return y.createElement(a,R({},i,{isDisabled:s,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator;if(!o)return null;var a=this.commonProps,i=this.props.isDisabled,s=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return y.createElement(o,R({},a,{innerProps:l,isDisabled:i,isFocused:s}))}},{key:"renderMenu",value:function(){var r=this,o=this.getComponents(),a=o.Group,i=o.GroupHeading,s=o.Menu,l=o.MenuList,c=o.MenuPortal,u=o.LoadingMessage,d=o.NoOptionsMessage,f=o.Option,p=this.commonProps,m=this.state.focusedOption,h=this.props,g=h.captureMenuScroll,w=h.inputValue,C=h.isLoading,x=h.loadingMessage,A=h.minMenuHeight,M=h.maxMenuHeight,I=h.menuIsOpen,z=h.menuPlacement,D=h.menuPosition,j=h.menuPortalTarget,B=h.menuShouldBlockScroll,N=h.menuShouldScrollIntoView,v=h.noOptionsMessage,L=h.onMenuScrollToTop,k=h.onMenuScrollToBottom;if(!I)return null;var O=function(F,G){var Q=F.type,W=F.data,Y=F.isDisabled,re=F.isSelected,U=F.label,le=F.value,K=m===W,X=Y?void 0:function(){return r.onOptionHover(W)},$=Y?void 0:function(){return r.selectOption(W)},ae="".concat(r.getElementId("option"),"-").concat(G),ee={id:ae,onClick:$,onMouseMove:X,onMouseOver:X,tabIndex:-1,role:"option","aria-selected":r.state.isAppleDevice?void 0:re};return y.createElement(f,R({},p,{innerProps:ee,data:W,isDisabled:Y,isSelected:re,key:ae,label:U,type:Q,value:le,isFocused:K,innerRef:K?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(F.data,"menu"))},T;if(this.hasOptions())T=this.getCategorizedOptions().map(function(F){if(F.type==="group"){var G=F.data,Q=F.options,W=F.index,Y="".concat(r.getElementId("group"),"-").concat(W),re="".concat(Y,"-heading");return y.createElement(a,R({},p,{key:Y,data:G,options:Q,Heading:i,headingProps:{id:re,data:F.data},label:r.formatGroupLabel(F.data)}),F.options.map(function(U){return O(U,"".concat(W,"-").concat(U.index))}))}else if(F.type==="option")return O(F,"".concat(F.index))});else if(C){var P=x({inputValue:w});if(P===null)return null;T=y.createElement(u,p,P)}else{var S=v({inputValue:w});if(S===null)return null;T=y.createElement(d,p,S)}var q={minMenuHeight:A,maxMenuHeight:M,menuPlacement:z,menuPosition:D,menuShouldScrollIntoView:N},V=y.createElement(rN,R({},p,q),function(F){var G=F.ref,Q=F.placerProps,W=Q.placement,Y=Q.maxHeight;return y.createElement(s,R({},p,q,{innerRef:G,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:C,placement:W}),y.createElement(TP,{captureEnabled:g,onTopArrive:L,onBottomArrive:k,lockEnabled:B},function(re){return y.createElement(l,R({},p,{innerRef:function(U){r.getMenuListRef(U),re(U)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:r.getElementId("listbox")},isLoading:C,maxHeight:Y,focusedOption:m}),T)}))});return j||D==="fixed"?y.createElement(c,R({},p,{appendTo:j,controlElement:this.controlRef,menuPlacement:z,menuPosition:D}),V):V}},{key:"renderFormField",value:function(){var r=this,o=this.props,a=o.delimiter,i=o.isDisabled,s=o.isMulti,l=o.name,c=o.required,u=this.state.selectValue;if(c&&!this.hasValue()&&!i)return y.createElement(zP,{name:l,onFocus:this.onValueInputFocus});if(!(!l||i))if(s)if(a){var d=u.map(function(m){return r.getOptionValue(m)}).join(a);return y.createElement("input",{name:l,type:"hidden",value:d})}else{var f=u.length>0?u.map(function(m,h){return y.createElement("input",{key:"i-".concat(h),name:l,type:"hidden",value:r.getOptionValue(m)})}):y.createElement("input",{name:l,type:"hidden",value:""});return y.createElement("div",null,f)}else{var p=u[0]?this.getOptionValue(u[0]):"";return y.createElement("input",{name:l,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,o=this.state,a=o.ariaSelection,i=o.focusedOption,s=o.focusedValue,l=o.isFocused,c=o.selectValue,u=this.getFocusableOptions();return y.createElement(yP,R({},r,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:i,focusedValue:s,isFocused:l,selectValue:c,focusableOptions:u,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),o=r.Control,a=r.IndicatorsContainer,i=r.SelectContainer,s=r.ValueContainer,l=this.props,c=l.className,u=l.id,d=l.isDisabled,f=l.menuIsOpen,p=this.state.isFocused,m=this.commonProps=this.getCommonProps();return y.createElement(i,R({},m,{className:c,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:p}),this.renderLiveRegion(),y.createElement(o,R({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:p,menuIsOpen:f}),y.createElement(s,R({},m,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),y.createElement(a,R({},m,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,o){var a=o.prevProps,i=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,l=o.ariaSelection,c=o.isFocused,u=o.prevWasFocused,d=o.instancePrefix,f=r.options,p=r.value,m=r.menuIsOpen,h=r.inputValue,g=r.isMulti,w=bh(p),C={};if(a&&(p!==a.value||f!==a.options||m!==a.menuIsOpen||h!==a.inputValue)){var x=m?JP(r,w):[],A=m?Ph(Us(r,w),"".concat(d,"-option")):[],M=i?XP(o,w):null,I=$P(o,x),z=jc(A,I);C={selectValue:w,focusedOption:I,focusedOptionId:z,focusableOptionsWithIds:A,focusedValue:M,clearFocusValueOnUpdate:!1}}var D=s!=null&&r!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},j=l,B=c&&u;return c&&!B&&(j={value:Is(g,w,w[0]||null),options:w,action:"initial-input-focus"},B=!u),(l==null?void 0:l.action)==="initial-input-focus"&&(j=null),qe(qe(qe({},C),D),{},{prevProps:r,ariaSelection:j,prevWasFocused:B})}}]),n})(H.Component);Bb.defaultProps=KP;var ez=H.forwardRef(function(e,t){var n=kT(e);return y.createElement(Bb,R({ref:t},n))}),tz=ez;function Ho({defaultOption:e,options:t,onChange:n,isSearchable:r=!1,className:o="",disabled:a=!1}){const i=(s,l)=>{s&&n(s)};return E.jsx("div",{className:At("w-full",o),children:E.jsx(tz,{isClearable:!1,isSearchable:r,isMulti:!1,defaultValue:e,options:t,onChange:i,isDisabled:a})})}const Os={[hn.KG]:"kg",[hn.Gram]:"g",[hn.LB]:"lb",[hn.Ounce]:"oz"},$R=[{value:hn.KG,label:Os[hn.KG]},{value:hn.Gram,label:Os[hn.Gram]},{value:hn.LB,label:Os[hn.LB]},{value:hn.Ounce,label:Os[hn.Ounce]}];const bo={[Lt.Meter]:"m",[Lt.CM]:"cm",[Lt.KM]:"km",[Lt.Foot]:"ft",[Lt.Mile]:"mi",[Lt.Inch]:"in",[Lt.Yard]:"yd"},_R=[{value:Lt.Meter,label:bo[Lt.Meter]},{value:Lt.CM,label:bo[Lt.CM]},{value:Lt.KM,label:bo[Lt.KM]},{value:Lt.Foot,label:bo[Lt.Foot]},{value:Lt.Mile,label:bo[Lt.Mile]},{value:Lt.Inch,label:bo[Lt.Inch]},{value:Lt.Yard,label:bo[Lt.Yard]}];function jr(){return xe.jsx(er,{className:"text-gray-600 w-fit",text:"Unspecified"})}function nz({label:e,value:t,onSave:n,AttributeEditing:r,AttributeNonEdit:o}){const[a,i]=H.useState(!1),[s,l]=H.useState(t),c=()=>{n(s),i(!1)},u=()=>{l(t),i(!1)};return H.useEffect(()=>{l(t)},[JSON.stringify(t)]),U2(()=>{i(!1)}),xe.jsxs(Co,{className:"AttributeUpdater w-full justify-between items-start",children:[xe.jsx(sy,{className:"text-gray-600 w-1/5",label:e}),xe.jsxs(Co,{className:"w-4/5 justify-between items-start",children:[a?xe.jsxs(Co,{className:"w-full justify-between",children:[xe.jsx(r,{value:s,onChange:l}),xe.jsx(Ry,{onSave:c,onCancel:u})]}):t?xe.jsx(o,{value:t}):xe.jsx(jr,{}),xe.jsx(oy,{onClick:()=>i(!0),hidden:a,isHighlighted:!0})]})]})}function br({profileType:e,categoryName:t,interestName:n,attributeType:r,className:o="",value:a}){return xe.jsxs(Co,{className:Q2("AttributeDisplay justify-between w-full",o),children:[xe.jsx(ly,{text:Ub({profileType:e,categoryName:t,interestName:n,attributeType:r})}),a||xe.jsx(jr,{})]})}var wn=(e=>(e[e.None=0]="None",e[e.User=1]="User",e[e.Uoi=2]="Uoi",e[e.Market=3]="Market",e[e.Arena=4]="Arena",e[e.Collection=5]="Collection",e[e.Event=6]="Event",e[e.Team=7]="Team",e[e.Leaderboard=8]="Leaderboard",e[e.Game=9]="Game",e))(wn||{}),Kn=(e=>(e[e.Public=0]="Public",e[e.Private=1]="Private",e[e.Internal=2]="Internal",e))(Kn||{});var Pn=(e=>(e[e.None=0]="None",e[e.He=1]="He",e[e.She=2]="She",e))(Pn||{});var Jn=(e=>(e[e.Public=0]="Public",e[e.Private=1]="Private",e[e.Internal=2]="Internal",e))(Jn||{});var Xn=(e=>(e[e.None=0]="None",e[e.Left=1]="Left",e[e.Right=2]="Right",e))(Xn||{}),zn=(e=>(e[e.None=0]="None",e[e.Male=1]="Male",e[e.Female=2]="Female",e))(zn||{}),an=(e=>(e[e.None=0]="None",e[e.Single=1]="Single",e[e.Double=2]="Double",e[e.Both=3]="Both",e))(an||{}),lt=(e=>(e[e.None=0]="None",e[e.TwoBelow=1]="TwoBelow",e[e.TwoFive=2]="TwoFive",e[e.Three=3]="Three",e[e.ThreeFive=4]="ThreeFive",e[e.Four=5]="Four",e[e.FourFive=6]="FourFive",e[e.Five=7]="Five",e[e.FiveFive=8]="FiveFive",e[e.SixAbove=9]="SixAbove",e))(lt||{}),Qr=(e=>(e[e.None=0]="None",e[e.SG=1]="SG",e[e.PG=2]="PG",e[e.C=4]="C",e[e.SF=8]="SF",e[e.PF=16]="PF",e))(Qr||{});var Br=(e=>(e.Sports="sports",e.Pets="pets",e.Music="music",e.Dancing="dancing",e.Food="food",e.Photography="photography",e.Tourism="tourism",e.Other="other",e.None="",e))(Br||{});var Pa=(e=>(e.Tennis="tennis",e.Pickleball="pickleball",e.Basketball="basketball",e.Golf="golf",e.Hiking="hiking",e.Running="running",e.Gym="gym",e.Baseball="baseball",e.Biking="biking",e.Yoga="yoga",e.TableTennis="tabletennis",e.Football="football",e.Soccer="soccer",e.Badminton="badminton",e.Skiing="skiing",e.Surfing="surfing",e.Swimming="swimming",e.Hockey="hockey",e.Other="other",e))(Pa||{});const Ks={[zn.None]:"Unspecified",[zn.Male]:"Male",[zn.Female]:"Female"},Rh=[{value:zn.None,label:Ks[zn.None]},{value:zn.Male,label:Ks[zn.Male]},{value:zn.Female,label:Ks[zn.Female]}];function rz({onChange:e,className:t="",value:n=zn.None}){const r=o=>{e(o.value)};return xe.jsx(Ho,{options:Rh,defaultOption:Rh[Number(n)],onChange:r,className:t})}function Fb({value:e}){return e===zn.None?xe.jsx(jr,{}):xe.jsx(er,{className:"text-gray-600 text-sm",text:Ks[e]})}var $r=(e=>(e[e.Handedness=0]="Handedness",e[e.Gender=1]="Gender",e[e.Dob=2]="Dob",e))($r||{});const qb={[$r.Handedness]:"Handedness",[$r.Gender]:"Gender",[$r.Dob]:"Date of Birth"};var Ao=(e=>(e[e.Level=0]="Level",e[e.Backhand=1]="Backhand",e[e.Handedness=2]="Handedness",e))(Ao||{});const Vb={[Ao.Level]:"Level",[Ao.Backhand]:"Backhand",[Ao.Handedness]:"Handedness"};var ac=(e=>(e[e.Positions=0]="Positions",e))(ac||{});const Hb={[ac.Positions]:"Positions"},Wb={[Pa.Tennis]:Vb,[Pa.Basketball]:Hb},Zb={[Br.Sports]:Wb};var En=(e=>(e[e.Breed=0]="Breed",e[e.Father=1]="Father",e[e.Mother=2]="Mother",e[e.Gender=3]="Gender",e[e.Height=4]="Height",e[e.Weight=5]="Weight",e[e.Children=6]="Children",e))(En||{});const Gb={[En.Breed]:"Breed",[En.Father]:"Father",[En.Mother]:"Mother",[En.Gender]:"Gender",[En.Height]:"Height",[En.Weight]:"Weight",[En.Children]:"Children"},Yb={[Br.Pets]:Gb},Qb={[wn.Uoi]:Zb,[wn.Collection]:Yb,[wn.None]:qb},Ub=({profileType:e,categoryName:t,interestName:n,attributeType:r})=>{let o=Qb[e];return t&&(o=(o==null?void 0:o[t])||{}),n&&(o=(o==null?void 0:o[n])||{}),(o==null?void 0:o[r])||""};function oz({value:e}){return xe.jsx(br,{profileType:wn.None,attributeType:$r.Gender,value:xe.jsx(Fb,{value:e})})}const Js={[Xn.None]:"Unspecified",[Xn.Left]:"Left",[Xn.Right]:"Right"},Lh=[{value:Xn.None,label:Js[Xn.None]},{value:Xn.Left,label:Js[Xn.Left]},{value:Xn.Right,label:Js[Xn.Right]}];function az({onChange:e,className:t="",value:n=Xn.None}){const r=o=>{e(o.value)};return xe.jsx(Ho,{options:Lh,defaultOption:Lh[Number(n)],onChange:r,className:t})}function Kb({value:e}){return xe.jsx(er,{text:Js[e]})}function iz({value:e}){return xe.jsx(br,{profileType:wn.None,attributeType:$r.Handedness,value:xe.jsx(Kb,{value:e})})}function Jb({value:e}){return e?xe.jsx(FD,{date:e}):xe.jsx(jr,{})}function sz({value:e}){return xe.jsx(br,{profileType:wn.None,attributeType:$r.Dob,value:xe.jsx(Jb,{value:e})})}function lz({onChange:e,value:t}){return xe.jsx(PO,{value:t,setValue:e})}const bi={[an.Single]:"Single-handed",[an.Double]:"Double-handed",[an.Both]:"Both",[an.None]:"Unspecified"},jh=[{value:an.None,label:bi[an.None]},{value:an.Single,label:bi[an.Single]},{value:an.Double,label:bi[an.Double]},{value:an.Both,label:bi[an.Both]}];function cz({onChange:e,className:t="",value:n=an.None}){const r=o=>{e(o.value)};return xe.jsx(Ho,{options:jh,defaultOption:jh[Number(n)],onChange:r,className:`${t} w-1/2`})}function Xb({value:e}){return xe.jsx(er,{text:bi[e]})}function uz({value:e}){return xe.jsx(br,{profileType:wn.Uoi,categoryName:Br.Sports,interestName:Pa.Tennis,attributeType:Ao.Backhand,value:xe.jsx(Xb,{value:e})})}const Yn={[lt.None]:"Unspecified",[lt.TwoBelow]:"2.0 and below",[lt.TwoFive]:"2.5",[lt.Three]:"3.0",[lt.ThreeFive]:"3.5",[lt.Four]:"4.0",[lt.FourFive]:"4.5",[lt.Five]:"5.0",[lt.FiveFive]:"5.5",[lt.SixAbove]:"6.0 and above"},Bh=[{value:lt.None,label:Yn[lt.None]},{value:lt.TwoBelow,label:Yn[lt.TwoBelow]},{value:lt.TwoFive,label:Yn[lt.TwoFive]},{value:lt.Three,label:Yn[lt.Three]},{value:lt.ThreeFive,label:Yn[lt.ThreeFive]},{value:lt.Four,label:Yn[lt.Four]},{value:lt.FourFive,label:Yn[lt.FourFive]},{value:lt.Five,label:Yn[lt.Five]},{value:lt.FiveFive,label:Yn[lt.FiveFive]},{value:lt.SixAbove,label:Yn[lt.SixAbove]}];function dz({onChange:e,className:t="",value:n=lt.None}){const r=o=>{e(o.value)};return xe.jsx(Ho,{options:Bh,defaultOption:Bh[Number(n)],onChange:r,className:`${t} w-1/2`})}function $b({value:e}){return xe.jsx(er,{text:Yn[e]})}function pz({value:e}){return xe.jsx(br,{profileType:wn.Uoi,categoryName:Br.Sports,interestName:Pa.Tennis,attributeType:Ao.Level,value:xe.jsx($b,{value:e})})}const _b=[{value:Qr.SG,label:"SG"},{value:Qr.PG,label:"PG"},{value:Qr.C,label:"C"},{value:Qr.SF,label:"SF"},{value:Qr.PF,label:"PF"}];function e2({value:e}){const t=({value:n,label:r})=>xe.jsx("li",{children:xe.jsx(By,{label:r})},n);return e===Qr.None?xe.jsx(jr,{}):xe.jsx(C0,{className:"flex flex-row gap-1",items:_b.filter(n=>n.value&e),itemRenderer:t})}function mz({label:e,value:t,onClick:n,positions:r}){return xe.jsx($c,{isHighlighted:!!(r&t),onClick:()=>n(r^t),label:e})}function fz({onChange:e,value:t=Qr.None}){const n=({value:r,label:o})=>xe.jsx("li",{children:xe.jsx(mz,{value:r,label:o,positions:t,onClick:e})},r);return xe.jsx(C0,{className:"flex flex-row gap-1",items:_b,itemRenderer:n})}function hz({value:e}){return xe.jsx(br,{profileType:wn.Uoi,categoryName:Br.Sports,interestName:Pa.Basketball,attributeType:ac.Positions,value:xe.jsx(e2,{value:e})})}function t2({value:e}){return e?xe.jsx(er,{text:e,className:"AttributeCollectionPetHeightNonEdit"}):xe.jsx(jr,{})}function gz({value:e}){return xe.jsx(br,{profileType:wn.Collection,categoryName:Br.Pets,attributeType:En.Height,value:xe.jsx(t2,{value:e})})}function n2({value:e}){return e?xe.jsx(er,{text:e,className:"AttributeCollectionPetWeightNonEdit"}):xe.jsx(jr,{})}function vz({value:e}){return xe.jsx(br,{profileType:wn.Collection,categoryName:Br.Pets,attributeType:En.Weight,value:xe.jsx(n2,{value:e})})}function r2({value:e}){return e?xe.jsx(er,{text:e,placeholder:"Enter breed..."}):xe.jsx(jr,{})}function bz({value:e}){return xe.jsx(br,{profileType:wn.Collection,categoryName:Br.Pets,attributeType:En.Breed,value:xe.jsx(r2,{value:e})})}function yz({onChange:e,className:t="",value:n}){return xe.jsx(uy,{placeholder:"Enter breed...",value:n,onChange:e,className:t})}function wz({pid:e}){const[t,n]=H.useState("Copy"),r=()=>{navigator.clipboard.writeText(e),n("Copied!")};return!e||e.length<3?null:xe.jsxs(Co,{className:"PagePID bg-blue-100 gap-2 items-center p-1 rounded-lg",children:[xe.jsxs(Co,{className:"gap-0",children:[xe.jsx("span",{className:"text-blue-300 mr-2",children:"ID:"}),xe.jsx("span",{className:"text-blue-700",children:e.slice(0,3)}),xe.jsx("span",{className:"text-blue-400",children:e.slice(3)})]}),xe.jsx(vT,{onClick:r,label:t})]})}const Xs={[Kn.Public]:"Public",[Kn.Private]:"Private",[Kn.Internal]:"Internal"},Fh=[{value:Kn.Public,label:Xs[Kn.Public]},{value:Kn.Private,label:Xs[Kn.Private]},{value:Kn.Internal,label:Xs[Kn.Internal]}];function xz({onChange:e,className:t="",value:n=Kn.Public}){const r=o=>{e(o.value)};return xe.jsx(Ho,{options:Fh,defaultOption:Fh[n],onChange:r,className:t})}function Cz({value:e}){return xe.jsx(er,{className:"text-gray-600 text-sm",text:Xs[e]})}const $s={[Pn.None]:"Unspecified",[Pn.He]:"He/Him",[Pn.She]:"She/Her"},qh=[{value:Pn.None,label:$s[Pn.None]},{value:Pn.He,label:$s[Pn.He]},{value:Pn.She,label:$s[Pn.She]}];function kz({onChange:e,className:t="",value:n=Pn.None}){const r=o=>{e(o.value)};return xe.jsx(Ho,{options:qh,defaultOption:qh[Number(n)],onChange:r,className:t})}function Sz({value:e}){return e===Pn.None?null:xe.jsx(er,{className:"text-gray-600 text-sm",text:$s[e]})}const _s={[Jn.Public]:"Public",[Jn.Private]:"Private",[Jn.Internal]:"Internal"},Vh=[{value:Jn.Public,label:_s[Jn.Public]},{value:Jn.Private,label:_s[Jn.Private]},{value:Jn.Internal,label:_s[Jn.Internal]}];function Mz({onChange:e,className:t="",value:n=Jn.Public}){const r=o=>{e(o.value)};return xe.jsx(Ho,{options:Vh,defaultOption:Vh[n],onChange:r,className:t})}function Az({value:e}){return xe.jsx(er,{className:"text-gray-600 text-sm",text:_s[e]})}exports.ATTRIBUTE_LABEL=Qb;exports.ATTRIBUTE_LABEL_COLLECTION=Yb;exports.ATTRIBUTE_LABEL_COLLECTION_PETS=Gb;exports.ATTRIBUTE_LABEL_COMMON=qb;exports.ATTRIBUTE_LABEL_UOI=Zb;exports.ATTRIBUTE_LABEL_UOI_SPORTS=Wb;exports.ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL=Hb;exports.ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS=Vb;exports.AttributeCollectionPetBreedDisplay=bz;exports.AttributeCollectionPetBreedEditing=yz;exports.AttributeCollectionPetBreedNonEdit=r2;exports.AttributeCollectionPetHeightDisplay=gz;exports.AttributeCollectionPetHeightNonEdit=t2;exports.AttributeCollectionPetWeightDisplay=vz;exports.AttributeCollectionPetWeightNonEdit=n2;exports.AttributeCommonDobDisplay=sz;exports.AttributeCommonDobEditing=lz;exports.AttributeCommonDobNonEdit=Jb;exports.AttributeCommonGenderDisplay=oz;exports.AttributeCommonGenderEditing=rz;exports.AttributeCommonGenderNonEdit=Fb;exports.AttributeCommonHandednessDisplay=iz;exports.AttributeCommonHandednessEditing=az;exports.AttributeCommonHandednessNonEdit=Kb;exports.AttributeDisplay=br;exports.AttributeTypeCollectionPets=En;exports.AttributeTypeCommon=$r;exports.AttributeTypeUoiSportsBasketball=ac;exports.AttributeTypeUoiSportsTennis=Ao;exports.AttributeUnspecified=jr;exports.AttributeUoiSportsBasketballPositionsDisplay=hz;exports.AttributeUoiSportsBasketballPositionsEditing=fz;exports.AttributeUoiSportsBasketballPositionsNonEdit=e2;exports.AttributeUoiSportsTennisBackhandDisplay=uz;exports.AttributeUoiSportsTennisBackhandEditing=cz;exports.AttributeUoiSportsTennisBackhandNonEdit=Xb;exports.AttributeUoiSportsTennisLevelDisplay=pz;exports.AttributeUoiSportsTennisLevelEditing=dz;exports.AttributeUoiSportsTennisLevelNonEdit=$b;exports.AttributeUpdater=nz;exports.Cn=Nr;exports.PagePID=wz;exports.PostPrivacyDisplay=Az;exports.PostPrivacyEdit=Mz;exports.ProfilePrivacyDisplay=Cz;exports.ProfilePrivacyEdit=xz;exports.UserPronounDisplay=Sz;exports.UserPronounEdit=kz;exports.getProfileAttributeLabel=Ub;
375
+ `]))),EN=function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return qe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:i*2})},Nc=function(e){var t=e.delay,n=e.offset;return je("span",{css:Ku({animation:"".concat(DN," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},TN=function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=r===void 0?4:r,a=Lr(e,xN);return je("div",R({},jt(qe(qe({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),je(Nc,{delay:0,offset:n}),je(Nc,{delay:160,offset:!0}),je(Nc,{delay:320,offset:!n}))},NN=function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius,s=o.spacing;return qe({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},PN=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return je("div",R({ref:o},jt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a,{"aria-disabled":n||void 0}),t)},zN=PN,RN=["data"],LN=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},jN=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return je("div",R({},jt(e,"group",{group:!0}),s),je(a,R({},i,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),je("div",null,t))},BN=function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return qe({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},FN=function(e){var t=vb(e);t.data;var n=Lr(t,RN);return je("div",R({},jt(e,"groupHeading",{"group-heading":!0}),n))},qN=jN,VN=["innerRef","isDisabled","isHidden","inputClassName"],HN=function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return qe(qe({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},WN),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},Ab={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},WN={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":qe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ab)},ZN=function(e){return qe({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ab)},GN=function(e){var t=e.cx,n=e.value,r=vb(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,s=r.inputClassName,l=Lr(r,VN);return je("div",R({},jt(e,"input",{"input-container":!0}),{"data-value":n||""}),je("input",R({className:t({input:!0},s),ref:o,style:ZN(i),disabled:a},l)))},YN=GN,QN=function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return qe({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},UN=function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return qe({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},KN=function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return qe({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Ib=function(e){var t=e.children,n=e.innerProps;return je("div",n,t)},JN=Ib,XN=Ib;function $N(e){var t=e.children,n=e.innerProps;return je("div",R({role:"button"},n),t||je(rp,{size:14}))}var _N=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return je(l,{data:r,innerProps:qe(qe({},jt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:s},je(c,{data:r,innerProps:qe({},jt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),je(u,{data:r,innerProps:qe(qe({},jt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:s}))},eP=_N,tP=function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,s=a.colors;return qe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(i.baseUnit*2,"px ").concat(i.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},nP=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,i=e.innerProps;return je("div",R({},jt(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},i),t)},rP=nP,oP=function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return qe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},aP=function(e){var t=e.children,n=e.innerProps;return je("div",R({},jt(e,"placeholder",{placeholder:!0}),n),t)},iP=aP,sP=function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return qe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},lP=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return je("div",R({},jt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},cP=lP,uP={ClearIndicator:AN,Control:zN,DropdownIndicator:SN,DownChevron:Sb,CrossIcon:rp,Group:qN,GroupHeading:FN,IndicatorsContainer:yN,IndicatorSeparator:ON,Input:YN,LoadingIndicator:TN,Menu:aN,MenuList:sN,MenuPortal:mN,LoadingMessage:dN,NoOptionsMessage:uN,MultiValue:eP,MultiValueContainer:JN,MultiValueLabel:XN,MultiValueRemove:$N,Option:rP,Placeholder:iP,SelectContainer:hN,SingleValue:cP,ValueContainer:vN},dP=function(e){return qe(qe({},uP),e.components)},Ch=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function pP(e,t){return!!(e===t||Ch(e)&&Ch(t))}function mP(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!pP(e[n],t[n]))return!1;return!0}function fP(e,t){t===void 0&&(t=mP);var n=null;function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return r.clear=function(){n=null},r}var hP={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"},gP=function(e){return je("span",R({css:hP},e))},kh=gP,vP={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){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 a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",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(e){var t=e.action,n=e.label,r=n===void 0?"":n,o=e.labels,a=e.isDisabled;switch(t){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(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=o===void 0?"":o,i=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(p,m){return p&&p.length?"".concat(p.indexOf(m)+1," of ").concat(p.length):""};if(t==="value"&&i)return"value ".concat(a," focused, ").concat(u(i,n),".");if(t==="menu"&&c){var d=s?" disabled":"",f="".concat(l?" selected":"").concat(d);return"".concat(a).concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},bP=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,s=e.selectProps,l=e.id,c=e.isAppleDevice,u=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,p=s.isMulti,m=s.isOptionDisabled,h=s.isSearchable,g=s.menuIsOpen,w=s.options,C=s.screenReaderStatus,x=s.tabSelectsValue,A=s.isLoading,M=s["aria-label"],I=s["aria-live"],z=H.useMemo(function(){return qe(qe({},vP),u||{})},[u]),D=H.useMemo(function(){var k="";if(t&&z.onChange){var O=t.option,T=t.options,P=t.removedValue,S=t.removedValues,q=t.value,V=function(re){return Array.isArray(re)?null:re},F=P||O||V(q),G=F?d(F):"",Q=T||S||void 0,W=Q?Q.map(d):[],Y=qe({isDisabled:F&&m(F,i),label:G,labels:W},t);k=z.onChange(Y)}return k},[t,z,m,i,d]),j=H.useMemo(function(){var k="",O=n||r,T=!!(n&&i&&i.includes(n));if(O&&z.onFocus){var P={focused:O,label:d(O),isDisabled:m(O,i),isSelected:T,options:o,context:O===n?"menu":"value",selectValue:i,isAppleDevice:c};k=z.onFocus(P)}return k},[n,r,d,m,z,o,i,c]),B=H.useMemo(function(){var k="";if(g&&w.length&&!A&&z.onFilter){var O=C({count:o.length});k=z.onFilter({inputValue:f,resultsMessage:O})}return k},[o,f,g,z,w,C,A]),N=(t==null?void 0:t.action)==="initial-input-focus",v=H.useMemo(function(){var k="";if(z.guidance){var O=r?"value":g?"menu":"input";k=z.guidance({"aria-label":M,context:O,isDisabled:n&&m(n,i),isMulti:p,isSearchable:h,tabSelectsValue:x,isInitialFocus:N})}return k},[M,n,r,p,m,h,g,z,i,x,N]),L=je(H.Fragment,null,je("span",{id:"aria-selection"},D),je("span",{id:"aria-focused"},j),je("span",{id:"aria-results"},B),je("span",{id:"aria-guidance"},v));return je(H.Fragment,null,je(kh,{id:l},N&&L),je(kh,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!N&&L))},yP=bP,Tu=[{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źẑżžẓẕƶȥɀⱬꝣ"}],wP=new RegExp("["+Tu.map(function(e){return e.letters}).join("")+"]","g"),Ob={};for(var Pc=0;Pc<Tu.length;Pc++)for(var zc=Tu[Pc],Rc=0;Rc<zc.letters.length;Rc++)Ob[zc.letters[Rc]]=zc.base;var Db=function(e){return e.replace(wP,function(t){return Ob[t]})},xP=fP(Db),Sh=function(e){return e.replace(/^\s+|\s+$/g,"")},CP=function(e){return"".concat(e.label," ").concat(e.value)},kP=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=qe({ignoreCase:!0,ignoreAccents:!0,stringify:CP,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,a=r.ignoreAccents,i=r.stringify,s=r.trim,l=r.matchFrom,c=s?Sh(n):n,u=s?Sh(i(t)):i(t);return o&&(c=c.toLowerCase(),u=u.toLowerCase()),a&&(c=xP(c),u=Db(u)),l==="start"?u.substr(0,c.length)===c:u.indexOf(c)>-1}},SP=["innerRef"];function MP(e){var t=e.innerRef,n=Lr(e,SP),r=XT(n,"onExited","in","enter","exit","appear");return je("input",R({ref:t},r,{css:Ku({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 AP=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function IP(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=H.useRef(!1),s=H.useRef(!1),l=H.useRef(0),c=H.useRef(null),u=H.useCallback(function(g,w){if(c.current!==null){var C=c.current,x=C.scrollTop,A=C.scrollHeight,M=C.clientHeight,I=c.current,z=w>0,D=A-M-x,j=!1;D>w&&i.current&&(r&&r(g),i.current=!1),z&&s.current&&(a&&a(g),s.current=!1),z&&w>D?(n&&!i.current&&n(g),I.scrollTop=A,j=!0,i.current=!0):!z&&-w>x&&(o&&!s.current&&o(g),I.scrollTop=0,j=!0,s.current=!0),j&&AP(g)}},[n,r,o,a]),d=H.useCallback(function(g){u(g,g.deltaY)},[u]),f=H.useCallback(function(g){l.current=g.changedTouches[0].clientY},[]),p=H.useCallback(function(g){var w=l.current-g.changedTouches[0].clientY;u(g,w)},[u]),m=H.useCallback(function(g){if(g){var w=UT?{passive:!1}:!1;g.addEventListener("wheel",d,w),g.addEventListener("touchstart",f,w),g.addEventListener("touchmove",p,w)}},[p,f,d]),h=H.useCallback(function(g){g&&(g.removeEventListener("wheel",d,!1),g.removeEventListener("touchstart",f,!1),g.removeEventListener("touchmove",p,!1))},[p,f,d]);return H.useEffect(function(){if(t){var g=c.current;return m(g),function(){h(g)}}},[t,m,h]),function(g){c.current=g}}var Mh=["boxSizing","height","overflow","paddingRight","position"],Ah={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ih(e){e.cancelable&&e.preventDefault()}function Oh(e){e.stopPropagation()}function Dh(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Eh(){return"ontouchstart"in window||navigator.maxTouchPoints}var Th=!!(typeof window<"u"&&window.document&&window.document.createElement),pi=0,ra={capture:!1,passive:!1};function OP(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=H.useRef({}),a=H.useRef(null),i=H.useCallback(function(l){if(Th){var c=document.body,u=c&&c.style;if(r&&Mh.forEach(function(m){var h=u&&u[m];o.current[m]=h}),r&&pi<1){var d=parseInt(o.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(Ah).forEach(function(m){var h=Ah[m];u&&(u[m]=h)}),u&&(u.paddingRight="".concat(p,"px"))}c&&Eh()&&(c.addEventListener("touchmove",Ih,ra),l&&(l.addEventListener("touchstart",Dh,ra),l.addEventListener("touchmove",Oh,ra))),pi+=1}},[r]),s=H.useCallback(function(l){if(Th){var c=document.body,u=c&&c.style;pi=Math.max(pi-1,0),r&&pi<1&&Mh.forEach(function(d){var f=o.current[d];u&&(u[d]=f)}),c&&Eh()&&(c.removeEventListener("touchmove",Ih,ra),l&&(l.removeEventListener("touchstart",Dh,ra),l.removeEventListener("touchmove",Oh,ra)))}},[r]);return H.useEffect(function(){if(t){var l=a.current;return i(l),function(){s(l)}}},[t,i,s]),function(l){a.current=l}}var DP=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},EP={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function TP(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,a=e.onBottomArrive,i=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=IP({isEnabled:o,onBottomArrive:a,onBottomLeave:i,onTopArrive:s,onTopLeave:l}),u=OP({isEnabled:n}),d=function(f){c(f),u(f)};return je(H.Fragment,null,n&&je("div",{onClick:DP,css:EP}),t(d))}var NP={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},PP=function(e){var t=e.name,n=e.onFocus;return je("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:NP,value:"",onChange:function(){}})},zP=PP;function op(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 RP(){return op(/^iPhone/i)}function Eb(){return op(/^Mac/i)}function LP(){return op(/^iPad/i)||Eb()&&navigator.maxTouchPoints>1}function jP(){return RP()||LP()}function BP(){return Eb()||jP()}var FP=function(e){return e.label},qP=function(e){return e.label},VP=function(e){return e.value},HP=function(e){return!!e.isDisabled},WP={clearIndicator:MN,container:fN,control:NN,dropdownIndicator:kN,group:LN,groupHeading:BN,indicatorsContainer:bN,indicatorSeparator:IN,input:HN,loadingIndicator:EN,loadingMessage:cN,menu:nN,menuList:iN,menuPortal:pN,multiValue:QN,multiValueLabel:UN,multiValueRemove:KN,noOptionsMessage:lN,option:tP,placeholder:oP,singleValue:sP,valueContainer:gN},ZP={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%)"},GP=4,Tb=4,YP=38,QP=Tb*2,UP={baseUnit:Tb,controlHeight:YP,menuGutter:QP},Lc={borderRadius:GP,colors:ZP,spacing:UP},KP={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:wh(),captureMenuScroll:!wh(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:kP(),formatGroupLabel:FP,getOptionLabel:qP,getOptionValue:VP,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:HP,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!YT(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(t!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Nh(e,t,n,r){var o=zb(e,t,n),a=Rb(e,t,n),i=Pb(e,t),s=wl(e,t);return{type:"option",data:t,isDisabled:o,isSelected:a,label:i,value:s,index:r}}function Us(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(i,s){return Nh(e,i,t,s)}).filter(function(i){return zh(e,i)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Nh(e,n,t,r);return zh(e,a)?a:void 0}).filter(KT)}function Nb(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,tp(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Ph(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,tp(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function JP(e,t){return Nb(Us(e,t))}function zh(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!jb(e)||!a)&&Lb(e,{label:i,value:s,data:o},r)}function XP(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var a=t.indexOf(n);if(a>-1)return n;if(o<t.length)return t[o]}return null}function $P(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var jc=function(e,t){var n,r=(n=e.find(function(o){return o.data===t}))===null||n===void 0?void 0:n.id;return r||null},Pb=function(e,t){return e.getOptionLabel(t)},wl=function(e,t){return e.getOptionValue(t)};function zb(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Rb(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=wl(e,t);return n.some(function(o){return wl(e,o)===r})}function Lb(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var jb=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return t===void 0?n:t},_P=1,Bb=(function(e){AT(n,e);var t=OT(n);function n(r){var o;if(ST(this,n),o=t.call(this,r),o.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},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,c){var u=o.props,d=u.onChange,f=u.name;c.name=f,o.ariaOnChange(l,c),d(l,c)},o.setValue=function(l,c,u){var d=o.props,f=d.closeMenuOnSelect,p=d.isMulti,m=d.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:m}),f&&(o.setState({inputIsHiddenAfterUpdate:!p}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:c,option:u})},o.selectOption=function(l){var c=o.props,u=c.blurInputOnSelect,d=c.isMulti,f=c.name,p=o.state.selectValue,m=d&&o.isOptionSelected(l,p),h=o.isOptionDisabled(l,p);if(m){var g=o.getOptionValue(l);o.setValue(p.filter(function(w){return o.getOptionValue(w)!==g}),"deselect-option",l)}else if(!h)d?o.setValue([].concat(tp(p),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:f});return}u&&o.blurInput()},o.removeValue=function(l){var c=o.props.isMulti,u=o.state.selectValue,d=o.getOptionValue(l),f=u.filter(function(m){return o.getOptionValue(m)!==d}),p=Is(c,f,f[0]||null);o.onChange(p,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(Is(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,c=o.state.selectValue,u=c[c.length-1],d=c.slice(0,c.length-1),f=Is(l,d,d[0]||null);u&&o.onChange(f,{action:"pop-value",removedValue:u})},o.getFocusedOptionId=function(l){return jc(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return Ph(Us(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return VT.apply(void 0,[o.props.classNamePrefix].concat(c))},o.getOptionLabel=function(l){return Pb(o.props,l)},o.getOptionValue=function(l){return wl(o.props,l)},o.getStyles=function(l,c){var u=o.props.unstyled,d=WP[l](c,u);d.boxSizing="border-box";var f=o.props.styles[l];return f?f(d,c):d},o.getClassNames=function(l,c){var u,d;return(u=(d=o.props.classNames)[l])===null||u===void 0?void 0:u.call(d,c)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return dP(o.props)},o.buildCategorizedOptions=function(){return Us(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return Nb(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,c){o.setState({ariaSelection:qe({value:l},c)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():c&&o.openMenu("first"):(c&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var c=o.props,u=c.isMulti,d=c.menuIsOpen;o.focusInput(),d?(o.setState({inputIsHiddenAfterUpdate:!u}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&oc(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(o.initialTouchX=u.clientX,o.initialTouchY=u.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var d=Math.abs(u.clientX-o.initialTouchX),f=Math.abs(u.clientY-o.initialTouchY),p=5;o.userIsDragging=d>p||f>p}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var c=o.props.inputValue,u=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(u,{action:"input-change",prevInputValue:c}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var c=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:c}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var c=o.getFocusableOptions(),u=c.indexOf(l);o.setState({focusedOption:l,focusedOptionId:u>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return jb(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var c=o.props,u=c.isMulti,d=c.backspaceRemovesValue,f=c.escapeClearsValue,p=c.inputValue,m=c.isClearable,h=c.isDisabled,g=c.menuIsOpen,w=c.onKeyDown,C=c.tabSelectsValue,x=c.openMenuOnFocus,A=o.state,M=A.focusedOption,I=A.focusedValue,z=A.selectValue;if(!h&&!(typeof w=="function"&&(w(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||p)return;o.focusValue("previous");break;case"ArrowRight":if(!u||p)return;o.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(I)o.removeValue(I);else{if(!d)return;u?o.popValue():m&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!g||!C||!M||x&&o.isOptionSelected(M,z))return;o.selectOption(M);break;case"Enter":if(l.keyCode===229)break;if(g){if(!M||o.isComposing)return;o.selectOption(M);break}return;case"Escape":g?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:p}),o.onMenuClose()):m&&f&&o.clearValue();break;case" ":if(p)return;if(!g){o.openMenu("first");break}if(!M)return;o.selectOption(M);break;case"ArrowUp":g?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":g?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!g)return;o.focusOption("pageup");break;case"PageDown":if(!g)return;o.focusOption("pagedown");break;case"Home":if(!g)return;o.focusOption("first");break;case"End":if(!g)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++_P),o.state.selectValue=bh(r.value),r.menuIsOpen&&o.state.selectValue.length){var a=o.getFocusableOptionsWithIds(),i=o.buildFocusableOptions(),s=i.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=a,o.state.focusedOption=i[s],o.state.focusedOptionId=jc(a,i[s])}return o}return MT(n,[{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&&yh(this.menuListRef,this.focusedOptionRef),BP()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(r){var o=this.props,a=o.isDisabled,i=o.menuIsOpen,s=this.state.isFocused;(s&&!a&&r.isDisabled||s&&i&&!r.menuIsOpen)&&this.focusInput(),s&&a&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!a&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(yh(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,o){this.props.onInputChange(r,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var o=this,a=this.state,i=a.selectValue,s=a.isFocused,l=this.buildFocusableOptions(),c=r==="first"?0:l.length-1;if(!this.props.isMulti){var u=l.indexOf(i[0]);u>-1&&(c=u)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[c],focusedOptionId:this.getFocusedOptionId(l[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(r){var o=this.state,a=o.selectValue,i=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(i);i||(s=-1);var l=a.length-1,c=-1;if(a.length){switch(r){case"previous":s===0?c=0:s===-1?c=l:c=s-1;break;case"next":s>-1&&s<l&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,i=this.getFocusableOptions();if(i.length){var s=0,l=i.indexOf(a);a||(l=-1),r==="up"?s=l>0?l-1:i.length-1:r==="down"?s=(l+1)%i.length:r==="pageup"?(s=l-o,s<0&&(s=0)):r==="pagedown"?(s=l+o,s>i.length-1&&(s=i.length-1)):r==="last"&&(s=i.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:i[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(i[s])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Lc):qe(qe({},Lc),this.props.theme):Lc})},{key:"getCommonProps",value:function(){var r=this.clearValue,o=this.cx,a=this.getStyles,i=this.getClassNames,s=this.getValue,l=this.selectOption,c=this.setValue,u=this.props,d=u.isMulti,f=u.isRtl,p=u.options,m=this.hasValue();return{clearValue:r,cx:o,getStyles:a,getClassNames:i,getValue:s,hasValue:m,isMulti:d,isRtl:f,options:p,selectOption:l,selectProps:u,setValue:c,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,o=r.isClearable,a=r.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(r,o){return zb(this.props,r,o)}},{key:"isOptionSelected",value:function(r,o){return Rb(this.props,r,o)}},{key:"filterOption",value:function(r,o){return Lb(this.props,r,o)}},{key:"formatOptionLabel",value:function(r,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,i=this.state.selectValue;return this.props.formatOptionLabel(r,{context:o,inputValue:a,selectValue:i})}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,o=r.isDisabled,a=r.isSearchable,i=r.inputId,s=r.inputValue,l=r.tabIndex,c=r.form,u=r.menuIsOpen,d=r.required,f=this.getComponents(),p=f.Input,m=this.state,h=m.inputIsHidden,g=m.ariaSelection,w=this.commonProps,C=i||this.getElementId("input"),x=qe(qe(qe({"aria-autocomplete":"list","aria-expanded":u,"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":d,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!a&&{"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 a?y.createElement(p,R({},w,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:o,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:s},x)):y.createElement(MP,R({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:bl,onFocus:this.onInputFocus,disabled:o,tabIndex:l,inputMode:"none",form:c,value:""},x))})},{key:"renderPlaceholderOrValue",value:function(){var r=this,o=this.getComponents(),a=o.MultiValue,i=o.MultiValueContainer,s=o.MultiValueLabel,l=o.MultiValueRemove,c=o.SingleValue,u=o.Placeholder,d=this.commonProps,f=this.props,p=f.controlShouldRenderValue,m=f.isDisabled,h=f.isMulti,g=f.inputValue,w=f.placeholder,C=this.state,x=C.selectValue,A=C.focusedValue,M=C.isFocused;if(!this.hasValue()||!p)return g?null:y.createElement(u,R({},d,{key:"placeholder",isDisabled:m,isFocused:M,innerProps:{id:this.getElementId("placeholder")}}),w);if(h)return x.map(function(z,D){var j=z===A,B="".concat(r.getOptionLabel(z),"-").concat(r.getOptionValue(z));return y.createElement(a,R({},d,{components:{Container:i,Label:s,Remove:l},isFocused:j,isDisabled:m,key:B,index:D,removeProps:{onClick:function(){return r.removeValue(z)},onTouchEnd:function(){return r.removeValue(z)},onMouseDown:function(N){N.preventDefault()}},data:z}),r.formatOptionLabel(z,"value"))});if(g)return null;var I=x[0];return y.createElement(c,R({},d,{data:I,isDisabled:m}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),o=r.ClearIndicator,a=this.commonProps,i=this.props,s=i.isDisabled,l=i.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||l)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return y.createElement(o,R({},a,{innerProps:u,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),o=r.LoadingIndicator,a=this.commonProps,i=this.props,s=i.isDisabled,l=i.isLoading,c=this.state.isFocused;if(!o||!l)return null;var u={"aria-hidden":"true"};return y.createElement(o,R({},a,{innerProps:u,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator,a=r.IndicatorSeparator;if(!o||!a)return null;var i=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused;return y.createElement(a,R({},i,{isDisabled:s,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator;if(!o)return null;var a=this.commonProps,i=this.props.isDisabled,s=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return y.createElement(o,R({},a,{innerProps:l,isDisabled:i,isFocused:s}))}},{key:"renderMenu",value:function(){var r=this,o=this.getComponents(),a=o.Group,i=o.GroupHeading,s=o.Menu,l=o.MenuList,c=o.MenuPortal,u=o.LoadingMessage,d=o.NoOptionsMessage,f=o.Option,p=this.commonProps,m=this.state.focusedOption,h=this.props,g=h.captureMenuScroll,w=h.inputValue,C=h.isLoading,x=h.loadingMessage,A=h.minMenuHeight,M=h.maxMenuHeight,I=h.menuIsOpen,z=h.menuPlacement,D=h.menuPosition,j=h.menuPortalTarget,B=h.menuShouldBlockScroll,N=h.menuShouldScrollIntoView,v=h.noOptionsMessage,L=h.onMenuScrollToTop,k=h.onMenuScrollToBottom;if(!I)return null;var O=function(F,G){var Q=F.type,W=F.data,Y=F.isDisabled,re=F.isSelected,U=F.label,le=F.value,K=m===W,X=Y?void 0:function(){return r.onOptionHover(W)},$=Y?void 0:function(){return r.selectOption(W)},ae="".concat(r.getElementId("option"),"-").concat(G),ee={id:ae,onClick:$,onMouseMove:X,onMouseOver:X,tabIndex:-1,role:"option","aria-selected":r.state.isAppleDevice?void 0:re};return y.createElement(f,R({},p,{innerProps:ee,data:W,isDisabled:Y,isSelected:re,key:ae,label:U,type:Q,value:le,isFocused:K,innerRef:K?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(F.data,"menu"))},T;if(this.hasOptions())T=this.getCategorizedOptions().map(function(F){if(F.type==="group"){var G=F.data,Q=F.options,W=F.index,Y="".concat(r.getElementId("group"),"-").concat(W),re="".concat(Y,"-heading");return y.createElement(a,R({},p,{key:Y,data:G,options:Q,Heading:i,headingProps:{id:re,data:F.data},label:r.formatGroupLabel(F.data)}),F.options.map(function(U){return O(U,"".concat(W,"-").concat(U.index))}))}else if(F.type==="option")return O(F,"".concat(F.index))});else if(C){var P=x({inputValue:w});if(P===null)return null;T=y.createElement(u,p,P)}else{var S=v({inputValue:w});if(S===null)return null;T=y.createElement(d,p,S)}var q={minMenuHeight:A,maxMenuHeight:M,menuPlacement:z,menuPosition:D,menuShouldScrollIntoView:N},V=y.createElement(rN,R({},p,q),function(F){var G=F.ref,Q=F.placerProps,W=Q.placement,Y=Q.maxHeight;return y.createElement(s,R({},p,q,{innerRef:G,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:C,placement:W}),y.createElement(TP,{captureEnabled:g,onTopArrive:L,onBottomArrive:k,lockEnabled:B},function(re){return y.createElement(l,R({},p,{innerRef:function(U){r.getMenuListRef(U),re(U)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:r.getElementId("listbox")},isLoading:C,maxHeight:Y,focusedOption:m}),T)}))});return j||D==="fixed"?y.createElement(c,R({},p,{appendTo:j,controlElement:this.controlRef,menuPlacement:z,menuPosition:D}),V):V}},{key:"renderFormField",value:function(){var r=this,o=this.props,a=o.delimiter,i=o.isDisabled,s=o.isMulti,l=o.name,c=o.required,u=this.state.selectValue;if(c&&!this.hasValue()&&!i)return y.createElement(zP,{name:l,onFocus:this.onValueInputFocus});if(!(!l||i))if(s)if(a){var d=u.map(function(m){return r.getOptionValue(m)}).join(a);return y.createElement("input",{name:l,type:"hidden",value:d})}else{var f=u.length>0?u.map(function(m,h){return y.createElement("input",{key:"i-".concat(h),name:l,type:"hidden",value:r.getOptionValue(m)})}):y.createElement("input",{name:l,type:"hidden",value:""});return y.createElement("div",null,f)}else{var p=u[0]?this.getOptionValue(u[0]):"";return y.createElement("input",{name:l,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,o=this.state,a=o.ariaSelection,i=o.focusedOption,s=o.focusedValue,l=o.isFocused,c=o.selectValue,u=this.getFocusableOptions();return y.createElement(yP,R({},r,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:i,focusedValue:s,isFocused:l,selectValue:c,focusableOptions:u,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),o=r.Control,a=r.IndicatorsContainer,i=r.SelectContainer,s=r.ValueContainer,l=this.props,c=l.className,u=l.id,d=l.isDisabled,f=l.menuIsOpen,p=this.state.isFocused,m=this.commonProps=this.getCommonProps();return y.createElement(i,R({},m,{className:c,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:p}),this.renderLiveRegion(),y.createElement(o,R({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:p,menuIsOpen:f}),y.createElement(s,R({},m,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),y.createElement(a,R({},m,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,o){var a=o.prevProps,i=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,l=o.ariaSelection,c=o.isFocused,u=o.prevWasFocused,d=o.instancePrefix,f=r.options,p=r.value,m=r.menuIsOpen,h=r.inputValue,g=r.isMulti,w=bh(p),C={};if(a&&(p!==a.value||f!==a.options||m!==a.menuIsOpen||h!==a.inputValue)){var x=m?JP(r,w):[],A=m?Ph(Us(r,w),"".concat(d,"-option")):[],M=i?XP(o,w):null,I=$P(o,x),z=jc(A,I);C={selectValue:w,focusedOption:I,focusedOptionId:z,focusableOptionsWithIds:A,focusedValue:M,clearFocusValueOnUpdate:!1}}var D=s!=null&&r!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},j=l,B=c&&u;return c&&!B&&(j={value:Is(g,w,w[0]||null),options:w,action:"initial-input-focus"},B=!u),(l==null?void 0:l.action)==="initial-input-focus"&&(j=null),qe(qe(qe({},C),D),{},{prevProps:r,ariaSelection:j,prevWasFocused:B})}}]),n})(H.Component);Bb.defaultProps=KP;var ez=H.forwardRef(function(e,t){var n=kT(e);return y.createElement(Bb,R({ref:t},n))}),tz=ez;function Ho({defaultOption:e,options:t,onChange:n,isSearchable:r=!1,className:o="",disabled:a=!1}){const i=(s,l)=>{s&&n(s)};return E.jsx("div",{className:At("w-full",o),children:E.jsx(tz,{isClearable:!1,isSearchable:r,isMulti:!1,defaultValue:e,options:t,onChange:i,isDisabled:a})})}const Os={[hn.KG]:"kg",[hn.Gram]:"g",[hn.LB]:"lb",[hn.Ounce]:"oz"},$R=[{value:hn.KG,label:Os[hn.KG]},{value:hn.Gram,label:Os[hn.Gram]},{value:hn.LB,label:Os[hn.LB]},{value:hn.Ounce,label:Os[hn.Ounce]}];const bo={[Lt.Meter]:"m",[Lt.CM]:"cm",[Lt.KM]:"km",[Lt.Foot]:"ft",[Lt.Mile]:"mi",[Lt.Inch]:"in",[Lt.Yard]:"yd"},_R=[{value:Lt.Meter,label:bo[Lt.Meter]},{value:Lt.CM,label:bo[Lt.CM]},{value:Lt.KM,label:bo[Lt.KM]},{value:Lt.Foot,label:bo[Lt.Foot]},{value:Lt.Mile,label:bo[Lt.Mile]},{value:Lt.Inch,label:bo[Lt.Inch]},{value:Lt.Yard,label:bo[Lt.Yard]}];function jr(){return xe.jsx(er,{className:"text-gray-600 w-fit",text:"Unspecified"})}function nz({label:e,value:t,onSave:n,AttributeEditing:r,AttributeNonEdit:o}){const[a,i]=H.useState(!1),[s,l]=H.useState(t),c=()=>{n(s),i(!1)},u=()=>{l(t),i(!1)};return H.useEffect(()=>{l(t)},[JSON.stringify(t)]),U2(()=>{i(!1)}),xe.jsxs(Co,{className:"AttributeUpdater w-full justify-between items-start",children:[xe.jsx(sy,{className:"text-gray-600 w-1/5",label:e}),xe.jsxs(Co,{className:"w-4/5 justify-between items-start",children:[a?xe.jsxs(Co,{className:"w-full justify-between",children:[xe.jsx(r,{value:s,onChange:l}),xe.jsx(Ry,{onSave:c,onCancel:u})]}):t?xe.jsx(o,{value:t}):xe.jsx(jr,{}),xe.jsx(oy,{onClick:()=>i(!0),hidden:a,isHighlighted:!0})]})]})}function br({profileType:e,categoryName:t,interestName:n,attributeType:r,className:o="",value:a}){return xe.jsxs(Co,{className:Q2("AttributeDisplay justify-between w-full",o),children:[xe.jsx(ly,{text:Ub({profileType:e,categoryName:t,interestName:n,attributeType:r})}),a||xe.jsx(jr,{})]})}var wn=(e=>(e[e.None=0]="None",e[e.User=1]="User",e[e.Uoi=2]="Uoi",e[e.Market=3]="Market",e[e.Arena=4]="Arena",e[e.Collection=5]="Collection",e[e.Event=6]="Event",e[e.Team=7]="Team",e[e.Leaderboard=8]="Leaderboard",e[e.Game=9]="Game",e))(wn||{}),Kn=(e=>(e[e.Public=0]="Public",e[e.Private=1]="Private",e[e.Internal=2]="Internal",e))(Kn||{});var Pn=(e=>(e[e.None=0]="None",e[e.He=1]="He",e[e.She=2]="She",e))(Pn||{});var Jn=(e=>(e[e.Public=0]="Public",e[e.Private=1]="Private",e[e.Internal=2]="Internal",e))(Jn||{});var Xn=(e=>(e[e.None=0]="None",e[e.Left=1]="Left",e[e.Right=2]="Right",e))(Xn||{}),zn=(e=>(e[e.None=0]="None",e[e.Male=1]="Male",e[e.Female=2]="Female",e))(zn||{}),an=(e=>(e[e.None=0]="None",e[e.Single=1]="Single",e[e.Double=2]="Double",e[e.Both=3]="Both",e))(an||{}),lt=(e=>(e[e.None=0]="None",e[e.TwoBelow=1]="TwoBelow",e[e.TwoFive=2]="TwoFive",e[e.Three=3]="Three",e[e.ThreeFive=4]="ThreeFive",e[e.Four=5]="Four",e[e.FourFive=6]="FourFive",e[e.Five=7]="Five",e[e.FiveFive=8]="FiveFive",e[e.SixAbove=9]="SixAbove",e))(lt||{}),Qr=(e=>(e[e.None=0]="None",e[e.SG=1]="SG",e[e.PG=2]="PG",e[e.C=4]="C",e[e.SF=8]="SF",e[e.PF=16]="PF",e))(Qr||{});var Br=(e=>(e.Sports="sports",e.Pets="pets",e.Music="music",e.Dancing="dancing",e.Food="food",e.Photography="photography",e.Tourism="tourism",e.Other="other",e.None="",e))(Br||{});var Pa=(e=>(e.Tennis="tennis",e.Pickleball="pickleball",e.Basketball="basketball",e.Golf="golf",e.Hiking="hiking",e.Running="running",e.Gym="gym",e.Baseball="baseball",e.Biking="biking",e.Yoga="yoga",e.TableTennis="tabletennis",e.Football="football",e.Soccer="soccer",e.Badminton="badminton",e.Skiing="skiing",e.Surfing="surfing",e.Swimming="swimming",e.Hockey="hockey",e.Other="other",e))(Pa||{});const Ks={[zn.None]:"Unspecified",[zn.Male]:"Male",[zn.Female]:"Female"},Rh=[{value:zn.None,label:Ks[zn.None]},{value:zn.Male,label:Ks[zn.Male]},{value:zn.Female,label:Ks[zn.Female]}];function rz({onChange:e,className:t="",value:n=zn.None}){const r=o=>{e(o.value)};return xe.jsx(Ho,{options:Rh,defaultOption:Rh[Number(n)],onChange:r,className:t})}function Fb({value:e}){return e===zn.None?xe.jsx(jr,{}):xe.jsx(er,{className:"text-gray-600 text-sm",text:Ks[e]})}var $r=(e=>(e[e.Handedness=0]="Handedness",e[e.Gender=1]="Gender",e[e.Dob=2]="Dob",e))($r||{});const qb={[$r.Handedness]:"Handedness",[$r.Gender]:"Gender",[$r.Dob]:"Date of Birth"};var Ao=(e=>(e[e.Level=0]="Level",e[e.Backhand=1]="Backhand",e[e.Handedness=2]="Handedness",e))(Ao||{});const Vb={[Ao.Level]:"Level",[Ao.Backhand]:"Backhand",[Ao.Handedness]:"Handedness"};var ac=(e=>(e[e.Positions=0]="Positions",e))(ac||{});const Hb={[ac.Positions]:"Positions"},Wb={[Pa.Tennis]:Vb,[Pa.Basketball]:Hb},Zb={[Br.Sports]:Wb};var En=(e=>(e[e.Breed=0]="Breed",e[e.Father=1]="Father",e[e.Mother=2]="Mother",e[e.Gender=3]="Gender",e[e.Height=4]="Height",e[e.Weight=5]="Weight",e[e.Children=6]="Children",e))(En||{});const Gb={[En.Breed]:"Breed",[En.Father]:"Father",[En.Mother]:"Mother",[En.Gender]:"Gender",[En.Height]:"Height",[En.Weight]:"Weight",[En.Children]:"Children"},Yb={[Br.Pets]:Gb},Qb={[wn.Uoi]:Zb,[wn.Collection]:Yb,[wn.None]:qb},Ub=({profileType:e,categoryName:t,interestName:n,attributeType:r})=>{let o=Qb[e];return t&&(o=(o==null?void 0:o[t])||{}),n&&(o=(o==null?void 0:o[n])||{}),(o==null?void 0:o[r])||""};function oz({value:e}){return xe.jsx(br,{profileType:wn.None,attributeType:$r.Gender,value:xe.jsx(Fb,{value:e})})}const Js={[Xn.None]:"Unspecified",[Xn.Left]:"Left",[Xn.Right]:"Right"},Lh=[{value:Xn.None,label:Js[Xn.None]},{value:Xn.Left,label:Js[Xn.Left]},{value:Xn.Right,label:Js[Xn.Right]}];function az({onChange:e,className:t="",value:n=Xn.None}){const r=o=>{e(o.value)};return xe.jsx(Ho,{options:Lh,defaultOption:Lh[Number(n)],onChange:r,className:t})}function Kb({value:e}){return xe.jsx(er,{text:Js[e]})}function iz({value:e}){return xe.jsx(br,{profileType:wn.None,attributeType:$r.Handedness,value:xe.jsx(Kb,{value:e})})}function Jb({value:e}){return e?xe.jsx(FD,{date:e}):xe.jsx(jr,{})}function sz({value:e}){return xe.jsx(br,{profileType:wn.None,attributeType:$r.Dob,value:xe.jsx(Jb,{value:e})})}function lz({onChange:e,value:t}){return xe.jsx(PO,{value:t,setValue:e})}const bi={[an.Single]:"Single-handed",[an.Double]:"Double-handed",[an.Both]:"Both",[an.None]:"Unspecified"},jh=[{value:an.None,label:bi[an.None]},{value:an.Single,label:bi[an.Single]},{value:an.Double,label:bi[an.Double]},{value:an.Both,label:bi[an.Both]}];function cz({onChange:e,className:t="",value:n=an.None}){const r=o=>{e(o.value)};return xe.jsx(Ho,{options:jh,defaultOption:jh[Number(n)],onChange:r,className:`${t} w-1/2`})}function Xb({value:e}){return xe.jsx(er,{text:bi[e]})}function uz({value:e}){return xe.jsx(br,{profileType:wn.Uoi,categoryName:Br.Sports,interestName:Pa.Tennis,attributeType:Ao.Backhand,value:xe.jsx(Xb,{value:e})})}const Yn={[lt.None]:"Unspecified",[lt.TwoBelow]:"2.0 and below",[lt.TwoFive]:"2.5",[lt.Three]:"3.0",[lt.ThreeFive]:"3.5",[lt.Four]:"4.0",[lt.FourFive]:"4.5",[lt.Five]:"5.0",[lt.FiveFive]:"5.5",[lt.SixAbove]:"6.0 and above"},Bh=[{value:lt.None,label:Yn[lt.None]},{value:lt.TwoBelow,label:Yn[lt.TwoBelow]},{value:lt.TwoFive,label:Yn[lt.TwoFive]},{value:lt.Three,label:Yn[lt.Three]},{value:lt.ThreeFive,label:Yn[lt.ThreeFive]},{value:lt.Four,label:Yn[lt.Four]},{value:lt.FourFive,label:Yn[lt.FourFive]},{value:lt.Five,label:Yn[lt.Five]},{value:lt.FiveFive,label:Yn[lt.FiveFive]},{value:lt.SixAbove,label:Yn[lt.SixAbove]}];function dz({onChange:e,className:t="",value:n=lt.None}){const r=o=>{e(o.value)};return xe.jsx(Ho,{options:Bh,defaultOption:Bh[Number(n)],onChange:r,className:`${t} w-1/2`})}function $b({value:e}){return xe.jsx(er,{text:Yn[e]})}function pz({value:e}){return xe.jsx(br,{profileType:wn.Uoi,categoryName:Br.Sports,interestName:Pa.Tennis,attributeType:Ao.Level,value:xe.jsx($b,{value:e})})}const _b=[{value:Qr.SG,label:"SG"},{value:Qr.PG,label:"PG"},{value:Qr.C,label:"C"},{value:Qr.SF,label:"SF"},{value:Qr.PF,label:"PF"}];function e2({value:e}){const t=({value:n,label:r})=>xe.jsx("li",{children:xe.jsx(By,{label:r})},n);return e===Qr.None?xe.jsx(jr,{}):xe.jsx(C0,{className:"flex flex-row gap-1",items:_b.filter(n=>n.value&e),itemRenderer:t})}function mz({label:e,value:t,onClick:n,positions:r}){return xe.jsx($c,{isHighlighted:!!(r&t),onClick:()=>n(r^t),label:e})}function fz({onChange:e,value:t=Qr.None}){const n=({value:r,label:o})=>xe.jsx("li",{children:xe.jsx(mz,{value:r,label:o,positions:t,onClick:e})},r);return xe.jsx(C0,{className:"flex flex-row gap-1",items:_b,itemRenderer:n})}function hz({value:e}){return xe.jsx(br,{profileType:wn.Uoi,categoryName:Br.Sports,interestName:Pa.Basketball,attributeType:ac.Positions,value:xe.jsx(e2,{value:e})})}function t2({value:e}){return e?xe.jsx(er,{text:e,className:"AttributeCollectionPetHeightNonEdit"}):xe.jsx(jr,{})}function gz({value:e}){return xe.jsx(br,{profileType:wn.Collection,categoryName:Br.Pets,attributeType:En.Height,value:xe.jsx(t2,{value:e})})}function n2({value:e}){return e?xe.jsx(er,{text:e,className:"AttributeCollectionPetWeightNonEdit"}):xe.jsx(jr,{})}function vz({value:e}){return xe.jsx(br,{profileType:wn.Collection,categoryName:Br.Pets,attributeType:En.Weight,value:xe.jsx(n2,{value:e})})}function r2({value:e}){return e?xe.jsx(er,{text:e,placeholder:"Enter breed..."}):xe.jsx(jr,{})}function bz({value:e}){return xe.jsx(br,{profileType:wn.Collection,categoryName:Br.Pets,attributeType:En.Breed,value:xe.jsx(r2,{value:e})})}function yz({onChange:e,className:t="",value:n}){return xe.jsx(uy,{placeholder:"Enter breed...",value:n,onChange:e,className:t})}function wz({pid:e}){const[t,n]=H.useState("Copy"),r=()=>{navigator.clipboard.writeText(e),n("Copied!")};return!e||e.length<3?null:xe.jsxs(Co,{className:"PagePID bg-blue-100 gap-2 items-center p-1 rounded-lg",children:[xe.jsxs(Co,{className:"gap-0",children:[xe.jsx("span",{className:"text-black mr-2",children:"ID:"}),xe.jsx("span",{className:"text-black",children:e.slice(0,3)}),xe.jsx("span",{className:"text-gray-500",children:e.slice(3)})]}),xe.jsx(vT,{onClick:r,label:t})]})}const Xs={[Kn.Public]:"Public",[Kn.Private]:"Private",[Kn.Internal]:"Internal"},Fh=[{value:Kn.Public,label:Xs[Kn.Public]},{value:Kn.Private,label:Xs[Kn.Private]},{value:Kn.Internal,label:Xs[Kn.Internal]}];function xz({onChange:e,className:t="",value:n=Kn.Public}){const r=o=>{e(o.value)};return xe.jsx(Ho,{options:Fh,defaultOption:Fh[n],onChange:r,className:t})}function Cz({value:e}){return xe.jsx(er,{className:"text-gray-600 text-sm",text:Xs[e]})}const $s={[Pn.None]:"Unspecified",[Pn.He]:"He/Him",[Pn.She]:"She/Her"},qh=[{value:Pn.None,label:$s[Pn.None]},{value:Pn.He,label:$s[Pn.He]},{value:Pn.She,label:$s[Pn.She]}];function kz({onChange:e,className:t="",value:n=Pn.None}){const r=o=>{e(o.value)};return xe.jsx(Ho,{options:qh,defaultOption:qh[Number(n)],onChange:r,className:t})}function Sz({value:e}){return e===Pn.None?null:xe.jsx(er,{className:"text-gray-600 text-sm",text:$s[e]})}const _s={[Jn.Public]:"Public",[Jn.Private]:"Private",[Jn.Internal]:"Internal"},Vh=[{value:Jn.Public,label:_s[Jn.Public]},{value:Jn.Private,label:_s[Jn.Private]},{value:Jn.Internal,label:_s[Jn.Internal]}];function Mz({onChange:e,className:t="",value:n=Jn.Public}){const r=o=>{e(o.value)};return xe.jsx(Ho,{options:Vh,defaultOption:Vh[n],onChange:r,className:t})}function Az({value:e}){return xe.jsx(er,{className:"text-gray-600 text-sm",text:_s[e]})}exports.ATTRIBUTE_LABEL=Qb;exports.ATTRIBUTE_LABEL_COLLECTION=Yb;exports.ATTRIBUTE_LABEL_COLLECTION_PETS=Gb;exports.ATTRIBUTE_LABEL_COMMON=qb;exports.ATTRIBUTE_LABEL_UOI=Zb;exports.ATTRIBUTE_LABEL_UOI_SPORTS=Wb;exports.ATTRIBUTE_LABEL_UOI_SPORTS_BASKETBALL=Hb;exports.ATTRIBUTE_LABEL_UOI_SPORTS_TENNIS=Vb;exports.AttributeCollectionPetBreedDisplay=bz;exports.AttributeCollectionPetBreedEditing=yz;exports.AttributeCollectionPetBreedNonEdit=r2;exports.AttributeCollectionPetHeightDisplay=gz;exports.AttributeCollectionPetHeightNonEdit=t2;exports.AttributeCollectionPetWeightDisplay=vz;exports.AttributeCollectionPetWeightNonEdit=n2;exports.AttributeCommonDobDisplay=sz;exports.AttributeCommonDobEditing=lz;exports.AttributeCommonDobNonEdit=Jb;exports.AttributeCommonGenderDisplay=oz;exports.AttributeCommonGenderEditing=rz;exports.AttributeCommonGenderNonEdit=Fb;exports.AttributeCommonHandednessDisplay=iz;exports.AttributeCommonHandednessEditing=az;exports.AttributeCommonHandednessNonEdit=Kb;exports.AttributeDisplay=br;exports.AttributeTypeCollectionPets=En;exports.AttributeTypeCommon=$r;exports.AttributeTypeUoiSportsBasketball=ac;exports.AttributeTypeUoiSportsTennis=Ao;exports.AttributeUnspecified=jr;exports.AttributeUoiSportsBasketballPositionsDisplay=hz;exports.AttributeUoiSportsBasketballPositionsEditing=fz;exports.AttributeUoiSportsBasketballPositionsNonEdit=e2;exports.AttributeUoiSportsTennisBackhandDisplay=uz;exports.AttributeUoiSportsTennisBackhandEditing=cz;exports.AttributeUoiSportsTennisBackhandNonEdit=Xb;exports.AttributeUoiSportsTennisLevelDisplay=pz;exports.AttributeUoiSportsTennisLevelEditing=dz;exports.AttributeUoiSportsTennisLevelNonEdit=$b;exports.AttributeUpdater=nz;exports.Cn=Nr;exports.PagePID=wz;exports.PostPrivacyDisplay=Az;exports.PostPrivacyEdit=Mz;exports.ProfilePrivacyDisplay=Cz;exports.ProfilePrivacyEdit=xz;exports.UserPronounDisplay=Sz;exports.UserPronounEdit=kz;exports.getProfileAttributeLabel=Ub;
@@ -39721,7 +39721,7 @@ function fN(e) {
39721
39721
  Qo(t._container, o);
39722
39722
  }, [o]), null;
39723
39723
  }
39724
- const eR = Vo(fN), hN = import("./mapbox-gl-FIEJQpQK-B7w5N44Y.mjs").then((e) => e.m), tR = y.forwardRef(function(e, t) {
39724
+ const eR = Vo(fN), hN = import("./mapbox-gl-FIEJQpQK-CXRTmEc-.mjs").then((e) => e.m), tR = y.forwardRef(function(e, t) {
39725
39725
  return iN(e, t, hN);
39726
39726
  });
39727
39727
  const jo = Math.min, _r = Math.max, oo = Math.round, Jr = Math.floor, pn = (e) => ({
@@ -44675,9 +44675,9 @@ function kR({ pid: e }) {
44675
44675
  };
44676
44676
  return !e || e.length < 3 ? null : /* @__PURE__ */ we.jsxs(Mo, { className: "PagePID bg-blue-100 gap-2 items-center p-1 rounded-lg", children: [
44677
44677
  /* @__PURE__ */ we.jsxs(Mo, { className: "gap-0", children: [
44678
- /* @__PURE__ */ we.jsx("span", { className: "text-blue-300 mr-2", children: "ID:" }),
44679
- /* @__PURE__ */ we.jsx("span", { className: "text-blue-700", children: e.slice(0, 3) }),
44680
- /* @__PURE__ */ we.jsx("span", { className: "text-blue-400", children: e.slice(3) })
44678
+ /* @__PURE__ */ we.jsx("span", { className: "text-black mr-2", children: "ID:" }),
44679
+ /* @__PURE__ */ we.jsx("span", { className: "text-black", children: e.slice(0, 3) }),
44680
+ /* @__PURE__ */ we.jsx("span", { className: "text-gray-500", children: e.slice(3) })
44681
44681
  ] }),
44682
44682
  /* @__PURE__ */ we.jsx(ST, { onClick: r, label: t })
44683
44683
  ] });