@deslop/deploy 0.1.1245 → 0.1.1248
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/(home)-BUNbCYZe.js +41 -0
- package/dist/client/assets/-expose-BI5lv_Lk.js +1 -0
- package/dist/client/assets/effect-DRxTIl6s.js +16 -0
- package/dist/client/assets/index-DBvgHs43.css +2 -0
- package/dist/client/assets/index-DoprOeCI.js +4 -0
- package/dist/client/assets/route-Cvmzm6PR.js +1 -0
- package/dist/client/index.html +3 -4
- package/package.json +2 -2
- package/dist/client/assets/(home)-BlObYCVl.js +0 -1
- package/dist/client/assets/(home)-D4XuHWf8.js +0 -1
- package/dist/client/assets/-error-BAvaQsKd.js +0 -1
- package/dist/client/assets/-expose-hGcHiPR2.js +0 -1
- package/dist/client/assets/effect-Bkjfjq2S.js +0 -16
- package/dist/client/assets/index-Cn945tWT.css +0 -2
- package/dist/client/assets/index-DrqcfGc7.js +0 -3
- package/dist/client/assets/route-BUIPIOah.js +0 -1
- package/dist/client/assets/schema-E3uL0Qxm.js +0 -2
- package/dist/client/assets/utils-C160A-eh.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{$ as t,A as n,At as r,C as i,Dn as a,Dt as o,E as s,Et as c,G as l,Gt as u,It as d,J as f,Jn as p,Jt as m,K as h,Kt as g,Mt as _,O as v,Q as y,T as b,Ut as x,Vt as S,Wn as C,Wt as w,X as T,Xn as E,Y as D,Z as O,_ as k,at as A,b as j,bn as M,br as N,dn as P,dt as F,er as I,et as L,ft as R,g as ee,h as te,ht as z,ir as B,it as ne,jt as re,k as V,kt as H,m as ie,mt as ae,nr as oe,nt as U,o as se,on as ce,p as le,pn as ue,q as de,qt as fe,rt as pe,s as me,tr as he,tt as ge,u as _e,ut as ve,v as ye,w as be,x as xe,y as Se,yn as Ce}from"./effect-Bkjfjq2S.js";import{a as we,i as Te,o as Ee,r as De,t as Oe}from"./react-CDnnZf73.js";import{A as ke,B as Ae,C as je,D as Me,E as Ne,F as Pe,G as Fe,H as Ie,I as Le,K as Re,L as ze,M as Be,N as Ve,O as He,P as Ue,Q as We,R as W,S as Ge,T as G,U as Ke,V as qe,W as Je,X as Ye,Z as Xe,_ as Ze,b as Qe,d as K,g as $e,h as et,j as tt,k as nt,l as rt,m as it,p as at,t as ot,u as st,v as ct,w as q,x as lt,y as ut,z as dt}from"./schema-E3uL0Qxm.js";import{i as ft,n as pt,o as mt,r as J,s as ht,t as gt}from"./index-DrqcfGc7.js";import{t as _t}from"./utils-C160A-eh.js";var vt={name:`square-terminal`,size:24,node:[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]],aliases:[`terminal-square`]};vt.node;var yt=We(vt),bt={name:`box`,size:24,node:[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]};bt.node;var xt=We(bt),St={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};St.node;var Ct=We(St),wt={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};wt.node;var Tt=We(wt),Et={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};Et.node;var Dt=We(Et),Ot={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Ot.node;var kt=We(Ot),Y=e(Ee(),1),At=ht(),jt=mt(),Mt=e(Te(),1);function Nt(e){return e?.ownerDocument||document}function Pt(e){let t=Mt.unstable_scheduleCallback(4,e);return()=>Mt.unstable_cancelCallback(t)}var Ft=Y.createContext(j({scheduleTask:Pt,defaultIdleTTL:400})),It=new WeakMap,Lt=0,Rt=new Set;function zt(e){Lt++;try{return e()}finally{Lt--}}function Bt(e){if(Lt===0)return e();Rt.size===0&&queueMicrotask(Vt),Rt.add(e)}function Vt(){for(let e of Rt)Rt.delete(e),e()}function Ht(e,t){let n=It.get(e);n===void 0&&(n=new WeakMap,It.set(e,n));let r=n.get(t);if(r!==void 0)return r;let i=0,a,o={subscribe(n){i++;let r=e.subscribe(t,()=>Bt(n));return()=>{i--,Rt.delete(n),r()}},snapshot(){return zt(()=>e.get(t))},getServerSnapshot(){return(i===0||a===void 0)&&(a={value:zt(()=>te(t,e))}),a.value}};return n.set(t,o),o}function Ut(e,t){let n=Ht(e,t);return Y.useEffect(Vt),Y.useSyncExternalStore(n.subscribe,n.snapshot,n.getServerSnapshot)}function Wt(e,t,n){let r=Ht(e,t),i=Y.useMemo(()=>{let e;return t=>(e!==void 0&&Object.is(e.source,t)||(e={source:t,value:n(t)}),e.value)},[n]);return Y.useEffect(Vt),Y.useSyncExternalStore(r.subscribe,()=>i(r.snapshot()),()=>i(r.getServerSnapshot()))}var Gt=(e,t)=>{let n=Y.useContext(Ft);return t?Wt(n,e,t):Ut(n,e)};function Kt(e,t){Y.useEffect(()=>e.mount(t),[t,e])}function qt(e,t,n){return n?.mode===`promise`||n?.mode===`promiseExit`?Y.useCallback(i=>{e.set(t,i);let a=r(Se(e,t,{suspendOnWaiting:!0}));return n.mode===`promise`?a.then(Jt):a},[e,t,n.mode]):Y.useCallback(n=>{e.set(t,typeof n==`function`?n(e.get(t)):n)},[e,t])}var Jt=e=>{if(ce(e))return e.value;throw P(e.cause)},Yt=(e,t)=>{let n=Y.useContext(Ft);return Kt(n,e),qt(n,e,t)},Xt=(e,t)=>{let n=Y.useContext(Ft);return[Ut(n,e),qt(n,e,t)]},Zt={suspendOnWaiting:new WeakMap,default:new WeakMap};function Qt(e,t,n){let r=n?Zt.suspendOnWaiting:Zt.default,i=r.get(e);i===void 0&&(i=new WeakMap,r.set(e,i));let a=i.get(t);return a===void 0&&(a=new Promise(r=>{let a=e.subscribe(t,e=>{e._tag===`Initial`||n&&e.waiting||(setTimeout(a,1e3),r(),i.delete(t))})}),i.set(t,a)),a}function $t(e,t,n){let r=Ut(e,t);if(r._tag===`Initial`||n&&r.waiting)throw Qt(e,t,n);return r}var en=(e,t)=>{let n=$t(Y.useContext(Ft),e,t?.suspendOnWaiting??!1);if(n._tag===`Failure`&&!t?.includeFailure)throw P(n.cause);return n},X=we(),tn=e(De(),1);function nn({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=Y.useRef(e!==void 0),[a,o]=Y.useState(()=>t);return[i&&e!==void 0?e:a,Y.useCallback(e=>{i||o(e)},[])]}function rn(e){let t=Y.useRef(!0);t.current&&(t.current=!1,e())}function an(e){let t=Ne(on,e).current;return t.next=e,q(t.effect),t}function on(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var sn={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},cn={...sn,position:`fixed`,margin:0,top:0,left:0},ln={...sn,position:`absolute`},un=[],dn=void 0;function fn(){return dn}function pn(e){un.push(e)}function mn(e){let t=(t,n)=>{let r=Ne(gn).current,i;try{dn=r;for(let e of un)e.before(r);i=e(t,n);for(let e of un)e.after(r);r.didInitialize=!0}finally{dn=void 0}return i};return t.displayName=e.displayName||e.name,t}function hn(e){return Y.forwardRef(mn(e))}function gn(){return{didInitialize:!1}}var _n=$e(19)?bn:xn;function vn(e,t,n,r,i){return _n(e,t,n,r,i)}function yn(e,t,n,r,i){let a=Y.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,At.useSyncExternalStore)(e.subscribe,a,a)}pn({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,At.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function bn(e,t,n,r,i){let a=fn();if(!a)return yn(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],s.store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,i)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function xn(e,t,n,r,i){return(0,jt.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Sn=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return vn(this,e,t,n,r)}},Cn=class extends Sn{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){Y.useDebugValue(e);let n=this;q(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;q(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);q(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){Y.useDebugValue(e);let n=this,r=t!==void 0;q(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return Y.useDebugValue(e),vn(this,this.selectors[e],t,n,r)}useContextCallback(e,t){Y.useDebugValue(e);let n=G(t??et);this.context[e]=n}useStateSetter(e){let t=Y.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}};function wn(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Tn(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function En(e){Y.useEffect(e,at)}var Dn=0,On=class e{static create(){return new e}currentId=Dn;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Dn,t()},e)}isStarted(){return this.currentId!==Dn}clear=()=>{this.currentId!==Dn&&(clearTimeout(this.currentId),this.currentId=Dn)};disposeEffect=()=>this.clear};function kn(){let e=Ne(On.create).current;return En(e.disposeEffect),e}function An(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:jn,platform:Mn,maxTouchPoints:Nn}=An(),Pn=jn.toLowerCase(),Fn=Mn.toLowerCase(),In=/^i(os$|p)/.test(Fn)||Fn===`macintel`&&Nn>1,Ln=`android`,Rn=Fn===Ln||Pn.includes(Ln),zn=!In&&Fn.startsWith(`mac`);Fn.startsWith(`win`),!Rn&&/^(linux|chrome os)/.test(Fn);var Bn=zn||In,Vn=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`),Hn=!Vn&&Pn.includes(`firefox`);!Vn&&Pn.includes(`chrom`);var Un=Bn,Wn=/jsdom|happydom/.test(Pn),Gn=null;globalThis.requestAnimationFrame;var Kn=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},qn=class e{static create(){return new e}static request(e){return Kn.request(e)}static cancel(e){return Kn.cancel(e)}currentId=Gn;request(e){this.cancel(),this.currentId=Kn.request(()=>{this.currentId=Gn,e()})}cancel=()=>{this.currentId!==Gn&&(Kn.cancel(this.currentId),this.currentId=Gn)};disposeEffect=()=>this.cancel};function Jn(){let e=Ne(qn.create).current;return En(e.disposeEffect),e}var Yn=Y.forwardRef(function(e,t){let[n,r]=Y.useState();q(()=>{Un&&Vn&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,X.jsx)(`span`,{...e,ref:t,style:cn,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function Xn(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Z(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Ke(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Zn(e,t){let n=e;for(;n;){if(W(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(Ke(n)?n.host:null)}return null}function Qn(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var $n=`data-base-ui-focusable`,er=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,tr=`ArrowLeft`,nr=`ArrowRight`,rr=`ArrowUp`,ir=`ArrowDown`,ar=`data-starting-style`,or=`data-ending-style`,sr={[ar]:``},cr={[or]:``},lr={transitionStatus(e){return e===`starting`?sr:e===`ending`?cr:null}},ur=`data-open`,dr=`data-closed`,fr=`data-anchor-hidden`,pr=`data-popup-open`,mr=`data-pressed`,hr={[pr]:``},gr={[pr]:``,[mr]:``},_r={[ur]:``},vr={[dr]:``},yr={[fr]:``},br={open(e){return e?hr:null}},xr={open(e){return e?gr:null}},Sr={open(e){return e?_r:vr},anchorHidden(e){return e?yr:null}},Cr={...Sr,...lr},wr=`data-trigger-disabled`;function Tr(e,t){if(!W(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(wr);for(let[,e]of t.entries())if(Z(e,n))return!e.hasAttribute(wr);return!1}function Er(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Dr(e){return e.matches(`html,body`)}function Or(e){return dt(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function kr(e){return Zn(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${er}`)!=null}function Ar(e){return e?e.getAttribute(`role`)===`combobox`&&Or(e):!1}function jr(e){if(!e||Wn)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Mr(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Nr(e){e.preventDefault(),e.stopPropagation()}function Pr(e){return`nativeEvent`in e}function Fr(e){return e.pointerType===``&&e.isTrusted?!0:Rn&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Ir(e){return Wn?!1:!Rn&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(Rn||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Lr(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Rr(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var zr=Math.min,Br=Math.max,Vr=Math.round,Hr=Math.floor,Ur=e=>({x:e,y:e}),Wr={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Gr(e,t,n){return Br(e,zr(t,n))}function Kr(e,t){return typeof e==`function`?e(t):e}function qr(e){return e.split(`-`)[0]}function Jr(e){return e.split(`-`)[1]}function Yr(e){return e===`x`?`y`:`x`}function Xr(e){return e===`y`?`height`:`width`}function Zr(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Qr(e){return Yr(Zr(e))}function $r(e,t,n){n===void 0&&(n=!1);let r=Jr(e),i=Qr(e),a=Xr(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ci(o)),[o,ci(o)]}function ei(e){let t=ci(e);return[ti(e),t,ti(t)]}function ti(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ni=[`left`,`right`],ri=[`right`,`left`],ii=[`top`,`bottom`],ai=[`bottom`,`top`];function oi(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ri:ni:t?ni:ri;case`left`:case`right`:return t?ii:ai;default:return[]}}function si(e,t,n,r){let i=Jr(e),a=oi(qr(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ti)))),a}function ci(e){let t=qr(e);return Wr[t]+e.slice(t.length)}function li(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function ui(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:li(e)}function di(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function fi(e,t,n){return Math.floor(e/t)!==n}function pi(e,t){return t<0||t>=e.length}function mi(e,t){return _i(e.current,{disabledIndices:t})}function hi(e,t){return _i(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function gi(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>_i(e,{startingIndex:t,decrement:r,disabledIndices:o}),u,d=!1;if(!i)u=r?Math.max(s,l()):Math.min(c,l());else if(r?t<=s:t>=c){let n=r?-1:e.length;a&&t!==n?u=-1:(u=r?c:s,d=!0)}else u=l();return{index:pi(e,u)?-1:u,wrapped:d}}function _i(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&yi(e,a,r));return a}function vi(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=Zn(e,`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1),r=i(t,u,n[o][e]??n[o][0]);o=a[r]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!yi(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=Hr(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!yi(e,r,s))return r}};d&&Nr(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=_i(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=_i(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}pi(e,f)&&(f=u)}if(n===`both`){let n=Hr(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&Nr(t),u%o===o-1?r&&(f=_i(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=_i(e,{startingIndex:u,disabledIndices:s}),r&&fi(f,o,n)&&(f=_i(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),fi(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&Nr(t),u%o===0?r&&(f=_i(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=_i(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&fi(f,o,n)&&(f=_i(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),fi(f,o,n)&&(f=u));let c=Hr(l/o)===n;pi(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:_i(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function yi(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!xi(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function bi(e){return e.visibility===`hidden`||e.visibility===`collapse`}function xi(e,t=e?He(e):null){return!e||!e.isConnected||!t||bi(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Si=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Ci(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Ke(n)?n.host:null}function wi(e){for(let t of Array.from(e.children))if(Be(t)===`summary`)return t;return null}function Ti(e,t){let n=wi(t);return!!n&&(e===n||Z(n,e))}function Ei(e){let t=e?Be(e):``;return e!=null&&e.matches(Si)&&(t!==`summary`||e.parentElement!=null&&Be(e.parentElement)===`details`&&wi(e.parentElement)===e)&&(t!==`details`||wi(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Di(e){if(!Ei(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Ci(t)){let n=t!==e,r=Be(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Be(t)===`details`&&!t.open&&!Ti(e,t)||t.hasAttribute(`hidden`)||!r&&!Oi(t,n))return!1}return!0}function Oi(e,t){let n=He(e);return t?n.display!==`none`:xi(e,n)}function ki(e){let t=e.tabIndex;if(t<0){let t=Be(e);if(t===`details`||t===`audio`||t===`video`||dt(e)&&e.isContentEditable)return 0}return t}function Ai(e){if(Be(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function ji(e,t){let n=Ai(e);if(!n)return!0;let r=t.find(e=>{let t=Ai(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Ai(e);return t?.name===n.name&&t.form===n.form})===n}function Mi(e){if(dt(e)&&Be(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return dt(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Ni(e,t){Mi(e).forEach(e=>{Ei(e)&&t.push(e),Ni(e,t)})}function Pi(e,t,n){Mi(e).forEach(e=>{dt(e)&&e.matches(t)&&n.push(e),Pi(e,t,n)})}function Fi(e){return Di(e)&&ki(e)>=0}function Ii(e){let t=[];return Ni(e,t),t.filter(Di)}function Li(e){let t=Ii(e);return t.filter(e=>ki(e)>=0&&ji(e,t))}function Ri(e,t){let n=Li(e),r=n.length;if(r===0)return;let i=Xn(Nt(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function zi(e){return Ri(Nt(e).body,1)||e}function Bi(e){return Ri(Nt(e).body,-1)||e}function Vi(e,t,n){if(!e)return null;let r=[];Ni(Nt(e).body,r);let i=r.indexOf(e);if(i===-1)return null;let a=r.filter(Di);for(let e=1;e<r.length;e+=1){let o=r[(i+t*e+r.length)%r.length];if(!Z(n,o)&&Fi(o)&&ji(o,a))return o}return r[i]}function Hi(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Z(n,r)}function Ui(e){Li(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Wi(e){let t=[];Pi(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function Gi(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Gi(e,t.id,n)])}function Ki(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Q(e,t,n,r){let i=!1,a=!1,o=r??it;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function qi(e,t,n){let r=n??it;return{reason:e,event:t??new Event(`base-ui`),...r}}var Ji=`none`,Yi=`trigger-press`,Xi=`trigger-hover`,Zi=`trigger-focus`,Qi=`outside-press`,$i=`item-press`,ea=`close-press`,ta=`clear-press`,na=`input-change`,ra=`input-clear`,ia=`input-press`,aa=`focus-out`,oa=`escape-key`,sa=`list-navigation`,ca=`keyboard`,la=`pointer`,ua=`cancel-open`,da=`sibling-open`,fa=`disabled`,pa=`missing`,ma=`initial`,ha=`imperative-action`;function ga(e){return`data-base-ui-${e}`}var _a=0;function va(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(_a);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),et;let o=requestAnimationFrame(a);return _a=o,()=>{_a===o&&(cancelAnimationFrame(o),_a=0)}}var ya=`data-base-ui-inert`,ba=new WeakMap,xa=new WeakSet,Sa=new WeakMap,Ca=0;function wa(e){return e?Ke(e)?e.host:wa(e.parentNode):null}var Ta=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=wa(t);return e.contains(n)?n:null}).filter(e=>e!=null),Ea=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Da=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{Be(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Oa(e,t,n,{mark:r=!0}){let i=Ta(t,e),a=r?Da(t,Ea(i),new Set(i)):[],o=[],s=[];if(n){let e=Ta(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);Da(t,Ea(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(ba.get(e)||0)+1;ba.set(e,r),o.push(e),r===1&&n&&xa.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(Sa.get(e)||0)+1;Sa.set(e,t),s.push(e),t===1&&e.setAttribute(ya,``)}),Ca+=1,()=>{o.forEach(e=>{let t=(ba.get(e)||0)-1;ba.set(e,t),t||(xa.has(e)||e.removeAttribute(`aria-hidden`),xa.delete(e))}),r&&s.forEach(e=>{let t=(Sa.get(e)||0)-1;Sa.set(e,t),t||e.removeAttribute(ya)}),--Ca,Ca||(ba=new WeakMap,xa=new WeakSet,Sa=new WeakMap)}}function ka(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=Nt(e[0]).body;return Oa(e,i,n,{mark:r})}function Aa(){let[,e]=Y.useState({});return Y.useCallback(()=>{e({})},[])}var ja=0;function Ma(e,t=`mui`){let n=Y.useRef(void 0),r=Aa(),i=e??n.current;return Y.useEffect(()=>{n.current??(ja+=1,n.current=`${t}-${ja}`,e??r())},[e,t,r]),i}var Na=Me.useId;function Pa(e,t){if(Na!==void 0){let n=Na();return e??(t?`${t}-${n}`:n)}return Ma(e,t)}var Fa={style:{transition:`none`}},Ia={fallbackAxisSide:`none`},La={fallbackAxisSide:`end`},Ra={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},za=Y.createContext(null),Ba=()=>Y.useContext(za),Va=ga(`portal`);function Ha(e={}){let{ref:t,container:n,componentProps:r=it,elementProps:i}=e,a=Pa(),o=Ba()?.portalNode,[s,c]=Y.useState(null),[l,u]=Y.useState(null),d=G(e=>{e!==null&&u(e)}),f=Y.useRef(null);q(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(qe(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=K(`div`,r,{ref:[t,d],props:[{id:a,[Va]:``},i]}),m=s&&p?tn.createPortal(p,s):null;return{node:l,nodeId:Y.isValidElement(p)?p.props.id:void 0,subtree:m}}var Ua=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=Ha({container:o,ref:t,componentProps:e,elementProps:c}),f=Y.useRef(null),p=Y.useRef(null),m=Y.useRef(null),h=Y.useRef(null),[g,_]=Y.useState(null),v=Y.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;Y.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&Hi(e)&&(e.type===`focusin`?v.current&&=(Wi(l),!1):(Ui(l),v.current=!0))}return Tn(wn(l,`focusin`,e,!0),wn(l,`focusout`,e,!0))},[l,y]),q(()=>{l&&b===!0&&v.current&&(Wi(l),v.current=!1)},[b,l]);let S=Y.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,X.jsxs)(Y.Fragment,{children:[d,(0,X.jsxs)(za.Provider,{value:S,children:[x&&l&&(0,X.jsx)(Yn,{"data-type":`outside`,ref:f,onFocus:e=>{Hi(e,l)?m.current?.focus():Bi(g?g.domReference:null)?.focus()}}),x&&l&&(0,X.jsx)(`span`,{role:s,"aria-owns":u,style:Ra}),l&&tn.createPortal(a,l),x&&l&&(0,X.jsx)(Yn,{"data-type":`outside`,ref:p,onFocus:e=>{Hi(e,l)?h.current?.focus():(zi(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,Q(`focus-out`,e.nativeEvent)))}})]})]})});function Wa(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Ga=class{nodesRef={current:[]};events=Wa();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},Ka=Y.createContext(null),qa=Y.createContext(null),Ja=()=>Y.useContext(Ka)?.id||null,Ya=e=>{let t=Y.useContext(qa);return e??t};function Xa(e){let t=Pa(),n=Ya(e),r=Ja();return q(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function Za(e){let{children:t,id:n}=e,r=Ja();return(0,X.jsx)(Ka.Provider,{value:Y.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function Qa(e){let{children:t,externalTree:n}=e,r=Ne(()=>n??new Ga).current;return(0,X.jsx)(qa.Provider,{value:r,children:t})}function $a(e){return e==null?e:`current`in e?e.current:e}function eo(e,t){let n=Le(Qn(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(Fr(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var to=20,no=[];function ro(){no=no.filter(e=>e.deref()?.isConnected)}function io(e){ro(),e&&Be(e)!==`body`&&(no.push(new WeakRef(e)),no.length>to&&(no=no.slice(-20)))}function ao(){return ro(),no[no.length-1]?.deref()}function oo(e){return e?Fi(e)?e:Li(e)[0]||e:null}function so(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=Ii(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Fi(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function co(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,explicitReturnFocus:o,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=t.useState(`open`),_=t.useState(`domReferenceElement`),v=t.useState(`floatingElement`),{events:y,dataRef:b}=t.context,x=G(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Ar(_)&&S,w=an(i),T=an(a),E=an(o),D=an(u),O=an(g),k=Ya(m),A=Ba(),j=Y.useRef(!1),M=Y.useRef(!1),N=Y.useRef(!1),P=Y.useRef(null),F=Y.useRef(``),I=Y.useRef(``),L=Y.useRef(null),R=Y.useRef(null),ee=Ze(L,p,A?.beforeInsideRef),te=Ze(R,A?.afterInsideRef),z=kn(),B=kn(),ne=Jn(),re=A!=null,V=Mr(v),H=G((e=V)=>e?Li(e):[]),ie=G(()=>h?.().filter(e=>e!=null)??[]);Y.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&Z(V,Xn(Nt(V)))&&H().length===0&&!C&&Nr(e)}return wn(Nt(V),`keydown`,e)},[r,V,c,C,H]),Y.useEffect(()=>{if(r||!g)return;let e=Nt(V);function t(){N.current=!1}function n(e){let t=Qn(e),n=ie(),r=Z(v,t)||Z(_,t)||Z(A?.portalNode,t)||n.some(e=>e===t||Z(e,t));N.current=!r,I.current=e.pointerType||`keyboard`,Zn(t,`[data-base-ui-click-trigger]`)&&(M.current=!0,B.start(0,()=>{M.current=!1}))}function i(){I.current=`keyboard`}return Tn(wn(e,`pointerdown`,n,!0),wn(e,`pointerup`,t,!0),wn(e,`pointercancel`,t,!0),wn(e,`keydown`,i,!0),t)},[r,v,_,V,g,A,B,ie]),Y.useEffect(()=>{if(r||!l)return;let e=Nt(V);function n(){M.current=!0,B.start(0,()=>{M.current=!1})}function i(e){let t=Qn(e);Fi(t)&&(P.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=Qn(n);c&&r==null&&a!=null&&Z(v,a)&&io(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=ie(),p=r?.hasAttribute(ga(`focus-guard`))&&[L.current,R.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,$a(f),$a(d)].includes(r),m=!(Z(_,r)||Z(v,r)||Z(r,v)||Z(A?.portalNode,r)||u.some(e=>e===r||Z(e,r))||l.hasMatchingElement(e=>Z(e,r))||p||k&&(Gi(k.nodesRef.current,o).find(e=>Z(e.context?.elements.floating,r)||Z(e.context?.elements.domReference,r))||Ki(k.nodesRef.current,o).find(e=>[e.context?.elements.floating,Mr(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&V&&so(V),s&&i!==_&&!xi(a)&&Xn(e)===e.body){if(dt(V)&&(V.focus(),s===`popup`)){ne.request(()=>{V.focus()});return}let e=H(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||V;dt(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(C||!c)&&r&&m&&!M.current&&(C||r!==ao())&&(j.current=!0,t.setOpen(!1,Q(aa,n)))})}function o(){N.current||(b.current.insideReactTree=!0,z.start(0,()=>{b.current.insideReactTree=!1}))}let u=dt(_)?_:null;if(v||u)return Tn(u&&wn(u,`focusout`,a),u&&wn(u,`pointerdown`,n),v&&wn(v,`focusin`,i),v&&wn(v,`focusout`,a),v&&A&&wn(v,`focusout`,o,!0))},[r,_,v,V,c,k,A,t,l,s,H,C,x,b,z,B,ne,d,f,ie]),Y.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${ga(`portal`)}]`)||[]),t=(k?Ki(k.nodesRef.current,x()):[]).find(e=>Ar(e.context?.elements.domReference||null))?.context?.elements.domReference,n=ka([v,...e,L.current,R.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...ie(),t,$a(f),$a(d),C?_:null].filter(e=>e!=null),{ariaHidden:c||C,mark:!1}),i=ka([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,A,C,k,x,d,f,ie]),q(()=>{if(!g||r||!dt(V))return;F.current=``,I.current=``;let e=Nt(V),t=Xn(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||Z(V,t))return;let i=null,a=()=>(i??=H(V),i[0]||V),o;o=r===!0||r===null?a():$a(r),o||=a();let s=Z(V,Xn(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&Fr(c);va(o,{sync:l,preventScroll:o===V,shouldFocus(){if(!O.current)return!1;if(s)return!0;let t=Xn(e);return!(t!==o&&Z(V,t))}})})},[r,g,V,H,w,D,O,b]);let ae=Y.useRef(null);q(()=>{if(r||!V){ae.current=null;return}ae.current&&=(ae.current.cancelled=!0,null);let e=Nt(V),t=Xn(e),n=D.current==null;io(t);function i(e){if(e.open||(F.current=eo(e.nativeEvent,I.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(ga(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(j.current=!0),e.reason===`outside-press`){if(e.nested)j.current=!1;else if(Fr(e.nativeEvent)||Ir(e.nativeEvent))j.current=!1;else{let e=!1;Nt(V).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}}y.on(`openchange`,i);function a(e){let r=T.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=_?.isConnected?_:null,o=t?.isConnected&&Be(t)!==`body`?t:null,s=n?o||a:a||o;return s||=ao()||null,typeof i==`boolean`?s:$a(i)||s||null}return()=>{y.off(`openchange`,i);let t=Xn(e),n=ie(),r=Z(v,t)||n.some(e=>e===t||Z(e,t))||k&&Gi(k.nodesRef.current,x(),!1).some(e=>Z(e.context?.elements.floating,t)),o=T.current,s=F.current,c=a(s),l={cancelled:!1};ae.current=l,queueMicrotask(()=>{ae.current===l&&(ae.current=null);let n=oo(c),i=E.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!j.current&&dt(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}j.current=!1})}},[r,v,V,T,E,D,y,k,_,x,ie]),q(()=>{if(!Vn||g||!v)return;let e=Xn(Nt(v));dt(e)&&Or(e)&&Z(v,e)&&e.blur()},[g,v]),q(()=>{if(!r&&A)return A.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,c,g,t,l,_]),q(()=>{if(!r&&V)return so(V),()=>{queueMicrotask(ro)}},[r,V]);let oe=!r&&(!c||!C)&&(re||c);return(0,X.jsxs)(Y.Fragment,{children:[oe&&(0,X.jsx)(Yn,{"data-type":`inside`,ref:ee,onFocus:e=>{if(c){let e=H();va(e[e.length-1])}else A?.portalNode&&(j.current=!1,Hi(e,A.portalNode)?zi(_)?.focus():$a(f??A.beforeOutsideRef)?.focus())}}),n,oe&&(0,X.jsx)(Yn,{"data-type":`inside`,ref:te,onFocus:e=>{c?va(H()[0]):A?.portalNode&&(l&&(j.current=!0),Hi(e,A.portalNode)?Bi(_)?.focus():$a(d??A.afterOutsideRef)?.focus())}})]})}function lo(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=Yi}=t,l=e.context.dataRef,u=Y.useRef(void 0),d=Jn(),f=kn(),p=Y.useMemo(()=>{function t(t,n,r,i){let a=Q(c,n,r);t&&i===`touch`&&s>0?f.start(s,()=>{e.setOpen(!0,a)}):e.setOpen(t,a)}function n(t,n,r){let a=l.current.openEvent,s=e.select(`domReferenceElement`)!==n;return t&&s||!t||!i?!0:a&&(typeof o==`function`?o():o)?!r(a.type):!1}return{onPointerDown(e){u.current=Lr(e.pointerType,!0)&&Ir(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||Lr(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=Qn(s),p=Or(f);if(p||o===`virtual`){t(l,s,p?f:i.currentTarget,o);return}let m=i.currentTarget;d.request(()=>{t(l,s,m,o)})},onClick(i){if(r===`mousedown-only`)return;let o=u.current;r===`mousedown`&&o?u.current=void 0:Lr(o,!0)&&a||t(n(e.select(`open`),i.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),i.nativeEvent,i.currentTarget,o)},onKeyDown(){u.current=void 0}}},[l,r,a,c,e,o,i,d,f,s]);return Y.useMemo(()=>n?{reference:p}:it,[n,p])}function uo(){return!1}function fo(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function po(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=uo,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=Ya(c),m=G(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=G(()=>a),{escapeKey:v,outsidePress:y}=fo(s),b=Y.useRef(!1),x=Y.useRef(!1),S=Y.useRef(!1),C=Y.useRef(!1),w=Y.useRef(!1),T=Y.useRef(``),E=Y.useRef(null),D=kn(),O=kn(),k=kn(),A=G(()=>{O.clear(),d.current.insideReactTree=!1}),j=G(e=>{let t=d.current.floatingContext?.nodeId;return(p?Gi(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=G(t=>Er(t,e.select(`floatingElement`))||Er(t,e.select(`domReferenceElement`))),N=G(t=>{o()&&e.setOpen(!1,Q(Yi,t.nativeEvent))}),P=G(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=Pr(t)?t.nativeEvent:t;if(w.current||i.isComposing||!v&&j(`__escapeKeyBubbles`))return;let a=Q(oa,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!v&&!a.isPropagationAllowed&&t.stopPropagation()}),F=G(()=>{d.current.insideReactTree=!0,O.start(0,A)}),I=G(t=>{if(!l||!n||t.button!==0)return;let r=Qn(t.nativeEvent);Z(e.select(`floatingElement`),r)&&(b.current||(b.current=!0,x.current=!1))}),L=G(e=>{l&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});Y.useEffect(()=>{function e(e){e.open||(C.current=!1)}return f.on(`openchange`,e),()=>{f.off(`openchange`,e)}},[f]),Y.useEffect(()=>A,[A]),Y.useEffect(()=>{if(!l||!n)return l||(C.current=!1,w.current=!1,T.current=``,E.current=null),A;d.current.__escapeKeyBubbles=v,d.current.__outsidePressBubbles=y;let t=new On,i=Nt(u);function a(){k.clear(),w.current=!0}function o(){w.current=!0,k.start(Vn?5:0,()=>{w.current=!1})}function s(){S.current=!0,t.start(0,()=>{S.current=!1})}function c(){b.current=!1,x.current=!1}function f(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function O(e){let t=d.current.floatingContext?.nodeId,n=p&&Gi(p.nodesRef.current,t).some(t=>Er(e,t.context?.elements.floating));return M(e)||n}function N(n){if(m(n)){n.type!==`click`&&!M(n)&&(t.clear(),S.current=!1),A();return}if(d.current.insideReactTree){A();return}let r=Qn(n),i=`[${ga(`inert`)}]`,a=W(r)?r.getRootNode():null,o=Array.from((Ke(a)?a:Nt(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>Z(e,r))))return;let c=W(r)?r:null;for(;c&&!Ae(c);){let e=Pe(c);if(Ae(e)||!W(e))break;c=e}if(!(o.length&&W(r)&&!Dr(r)&&!Z(r,e.select(`floatingElement`))&&o.every(e=>!Z(c,e)))){if(dt(r)&&!(`touches`in n)){let e=Ae(r),t=He(r),i=/auto|scroll/,a=e||i.test(t.overflowX),o=e||i.test(t.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=t.direction===`rtl`,u=c&&(l?n.offsetX<=r.offsetWidth-r.clientWidth:n.offsetX>r.clientWidth),d=s&&n.offsetY>r.clientHeight;if(u||d)return}if(!O(n)){if(f()===`intentional`){if(n.detail!==0&&!Fr(n)&&!C.current)return;if(S.current){t.clear(),S.current=!1;return}}typeof h==`function`&&!h(n)||j(`__outsidePressBubbles`)||(e.setOpen(!1,Q(Qi,n)),A())}}}function F(t){f()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!M(t)&&N(t)}function I(t){if(f()!==`sloppy`||!e.select(`open`)||!n||M(t))return;let r=t.touches[0];r&&(E.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function L(e,t){let n=Qn(e);if(!n)return;let r=wn(n,e.type,()=>{t(e),r()})}function R(e){T.current=`touch`,L(e,I)}function ee(e){D.clear(),e.type===`pointerdown`&&(e.button===0&&(C.current=!0),T.current=e.pointerType),(e.type!==`mousedown`||!E.current||E.current.dismissOnMouseDown)&&L(e,e=>{e.type===`pointerdown`?F(e):N(e)})}function te(e){if(e.type===`pointercancel`&&(C.current=!1),!b.current)return;let n=x.current;c(),f()===`intentional`&&(e.type===`pointercancel`?n&&s():O(e)||(n?s():(typeof h!=`function`||h(e))&&(t.clear(),S.current=!0,A())))}function z(e){if(f()!==`sloppy`||!E.current||M(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(N(e),D.clear(),E.current=null)}function B(e){L(e,z)}function ne(e){f()===`sloppy`&&E.current&&!M(e)&&(E.current.dismissOnTouchEnd&&N(e),D.clear(),E.current=null)}function re(e){L(e,ne)}let V=Tn(r&&Tn(wn(i,`keydown`,P),wn(i,`compositionstart`,a),wn(i,`compositionend`,o)),g&&Tn(wn(i,`click`,ee,!0),wn(i,`pointerdown`,ee,!0),wn(i,`pointerup`,te,!0),wn(i,`pointercancel`,te,!0),wn(i,`mousedown`,ee,!0),wn(i,`mouseup`,te,!0),wn(i,`touchstart`,R,{capture:!0,passive:!0}),wn(i,`touchmove`,B,{capture:!0,passive:!0}),wn(i,`touchend`,re,{capture:!0,passive:!0})));return()=>{V(),t.clear(),c(),S.current=!1}},[d,u,r,g,h,l,n,v,y,P,A,_,j,M,p,e,D,k]);let R=Y.useMemo(()=>({onKeyDown:P,onPointerDown:N,onClick:N}),[P,N]),ee=Y.useMemo(()=>({onKeyDown:P,onPointerDown:L,onMouseDown:L,onClickCapture:F,onMouseDownCapture(e){F(),I(e)},onPointerDownCapture(e){F(),I(e)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[P,F,I,L]);return Y.useMemo(()=>n?{reference:R,floating:ee,trigger:R}:{},[n,R,ee])}function mo(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=o;return t.useSyncedValue(`floatingId`,i),q(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};W(c)&&(e.domReferenceElement=c),r.state.positionReference===r.state.referenceElement&&(e.positionReference=c),r.update(e)},[s,i,c,l,r]),r.context.onOpenChange=u,r.context.nested=a,r}function ho(e,t=!1,n=!1,r=!1){let[i,a]=Y.useState(e&&t?`idle`:void 0),[o,s]=Y.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),q(()=>{if(!e&&o&&i!==`ending`&&n){let e=qn.request(()=>{a(`ending`)});return()=>{qn.cancel(e)}}},[e,o,i,n]),q(()=>{if(!e||t||i===void 0)return;let n=qn.request(()=>{a(void 0)});return()=>{qn.cancel(n)}},[t,e,i]),q(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=qn.request(()=>{a(`idle`)});return()=>{qn.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function go(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var _o=null;function vo(e){if(!_o){let e=[];_o=e,queueMicrotask(()=>{_o=null,tn.flushSync(()=>{for(let t of e)t()})})}_o.push(e)}function yo(e,t=!1,n=!1){let r=Jn();return G((i,a=null)=>{r.cancel();let o=$a(e);if(o==null)return;let s=o,c=()=>{n?vo(()=>{a?.aborted||i()}):tn.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(go(s).map(e=>e.finished.then(et))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(go(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=ar;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function bo(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=G(a),s=yo(r,n,i);Y.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}function xo(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=G(i),{mounted:c,setMounted:l,transitionStatus:u}=ho(t,!1,!1,o),d=!t&&r;q(()=>{t&&s(!1)},[t,s]);let f=Y.useRef(c),p=Y.useRef(!1),m=Aa(),h=()=>{f.current=!1,l(!1),a()};q(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=G(()=>{f.current&&(t?(p.current=!0,m()):h())});return bo({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var So={tabIndex:-1,[$n]:``};function Co(e){return t=>t!==`touch`||e.current}function wo(e,t=!1){let n=Pa(),r=Ja()!=null,i=Ne(()=>e(n,r)).current;return mo({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function To({handle:e,store:t}){return q(()=>e.attachStore(t),[e,t]),null}function Eo(e){let t=e.context.triggerElements.size;e.select(`open`)&&e.state.triggerCount!==t&&e.set(`triggerCount`,t)}function Do(e,t){let n=Y.useRef(null);return G(r=>{let i=n.current;if(i!==null){if(i.element===r&&i.store===t&&i.id===e)return;n.current=null;let a=i.store;a.context.triggerElements.getById(i.id)===i.element&&(a.context.triggerElements.delete(i.id),Eo(a))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),Eo(t))})}function Oo(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s,openedWithoutTrigger:t?n==null:e.openedWithoutTrigger}}function ko(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Ao(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=Do(e,n),o=G(t=>{let i=n.select(`open`),a=n.select(`activeTriggerId`);if(a===e){let e={activeTriggerElement:t,...i?r:null};n.update(e)}else if(a==null&&i&&!n.state.openedWithoutTrigger){let i={activeTriggerId:e??null,activeTriggerElement:t,...r};n.update(i)}}),s=G(e=>{a(e),e&&o(e)});return q(()=>(s(t.current),()=>s(null)),[s,t,n,e]),q(()=>{if(i){let e={activeTriggerElement:t.current,...r};n.update(e)}},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function jo(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=Y.useRef(null),i=e.useState(`open`),a=e.useState(`triggerCount`),o=e.useState(`activeTriggerId`),s=e.useState(`activeTriggerElement`);q(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0),e.state.openedWithoutTrigger&&e.set(`openedWithoutTrigger`,!1);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&!e.state.openedWithoutTrigger&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=Q(Ji);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,a,o,s,n])}function Mo(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=xo({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState(`preventUnmountingOnClose`),setPreventUnmountOnClose:e=>t.set(`preventUnmountingOnClose`,e),animateInitialOpen:r,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}});return Ne(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function No(e,t){e.useSyncedValues(t),q(()=>()=>{e.update({activeTriggerProps:it,inactiveTriggerProps:it,popupProps:it})},[e])}function Po(e,t){q(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),q(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Fo=class{idMap=new Map;add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}},Io={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},Lo=class extends Cn{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Wa(),nested:n,triggerElements:i},Io),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Rr(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Ro(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Lo({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:it,inactiveTriggerProps:it,popupProps:it}}var zo=e=>e.triggerIdProp??e.activeTriggerId,Bo=e=>e.openProp??e.open,Vo=e=>(e.popupElement?.id??e.floatingId)||void 0;function Ho(e,t){return t!==void 0&&Bo(e)&&zo(e)===t}function Uo(e,t){return Ho(e,t)?!0:t!==void 0&&Bo(e)&&zo(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var Wo={open:Bo,mounted:e=>e.mounted,transitionStatus:e=>Bo(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:zo,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Vo,isTriggerActive:(e,t)=>t!==void 0&&zo(e)===t,isOpenedByTrigger:(e,t)=>Ho(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&zo(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>Uo(e,t)?Vo(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function Go(e){let t=Y.useCallback(t=>e===void 0?et:e.subscribeStore(t),[e]),n=Y.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,At.useSyncExternalStore)(t,n,()=>e?.serverStore)}function Ko(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Pa(),a=Ja()!=null,o=Ne(()=>new Lo({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Fo,floatingId:i,syncOnly:!1,nested:a})).current;return q(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=W(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}var qo=zn&&Vn;function Jo(e,t={}){let{enabled:n=!0,delay:r}=t,{events:i,dataRef:a}=e.context,o=Y.useRef(!1),s=Y.useRef(null),c=Y.useRef(!0),l=kn();Y.useEffect(()=>{let t=e.select(`domReferenceElement`);if(!n)return;let r=Le(t);function i(){let t=e.select(`domReferenceElement`);!e.select(`open`)&&dt(t)&&t===Xn(Nt(t))&&(o.current=!0,s.current=t)}function a(){c.current=!0}function l(){c.current=!1}return Tn(wn(r,`blur`,i),qo&&wn(r,`keydown`,a,!0),qo&&wn(r,`pointerdown`,l,!0))},[e,n]),Y.useEffect(()=>{if(!n)return;function t(t){if(t.reason===`trigger-press`||t.reason===`escape-key`){let t=e.select(`domReferenceElement`);W(t)&&(s.current=t,o.current=!0)}}return i.on(`openchange`,t),()=>{i.off(`openchange`,t)}},[i,n,e]);let u=Y.useMemo(()=>{function t(){o.current=!1,s.current=null}return{onMouseLeave(){t()},onFocus(n){let i=n.currentTarget;if(o.current){if(s.current===i)return;t()}let a=Qn(n.nativeEvent);if(W(a)){if(qo&&!n.relatedTarget){if(!c.current&&!Or(a))return}else if(!jr(a))return}let u=Tr(n.relatedTarget,e.context.triggerElements),{nativeEvent:d,currentTarget:f}=n;e.select(`open`)&&u||!r?e.setOpen(!0,Q(Zi,d,f)):l.start(r,()=>{o.current||e.setOpen(!0,Q(Zi,d,f))})},onBlur(n){t();let r=n.relatedTarget,i=n.nativeEvent,o=W(r)&&r.hasAttribute(ga(`focus-guard`))&&r.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let t=e.select(`domReferenceElement`),n=Xn(Nt(t));!r&&n===t||Z(a.current.floatingContext?.refs.floating.current,n)||Z(t,n)||o||Tr(r??n,e.context.triggerElements)||e.setOpen(!1,Q(Zi,i))})}}},[a,r,e,l]);return Y.useMemo(()=>n?{reference:u,trigger:u}:{},[n,u])}var Yo=class e{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new On;restTimeout=new On;handleCloseOptions=void 0;static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Xo=new WeakMap;function Zo(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Xo.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Xo.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Qo(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Xo.get(n);a&&a!==e&&Zo(a),Zo(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Xo.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function $o(e){let t=e.context.dataRef.current,n=Ne(()=>t.hoverInteractionState??Yo.create()).current;return t.hoverInteractionState||=n,En(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function es(e,t){return t!=null&&!Lr(t)?0:typeof e==`function`?e():e}function ts(e,t,n){let r=es(e,n);return typeof r==`number`?r:r?.[t]}function ns(e){return typeof e==`function`?e():e}function rs(e,t){return t||e===`click`||e===`mousedown`}function is(e){return e?.includes(`mouse`)&&e!==`mousedown`}function as(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=e.useState(`open`),o=e.useState(`floatingElement`),s=e.useState(`domReferenceElement`),{dataRef:c}=e.context,l=Ya(),u=Ja(),d=$o(e),f=kn(),p=G(()=>rs(c.current.openEvent?.type,d.interactedInside)),m=G(()=>is(c.current.openEvent?.type)),h=G(()=>{Zo(d)});q(()=>{a||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,h())},[a,d,h]),Y.useEffect(()=>h,[h]),q(()=>{if(n&&a&&d.handleCloseOptions?.blockPointerEvents&&m()&&W(s)&&o){let e=s,t=o,n=Nt(o),r=l?.nodesRef.current.find(e=>e.id===u)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=d.pointerEventsScopeElement===t?null:d.pointerEventsScopeElement,a=r===t?null:r,c=d.handleCloseOptions?.getScope?.()??i??a??Zn(e,`[data-rootownerid]`)??n.body;return Qo(d,{scopeElement:c,referenceElement:e,floatingElement:t}),()=>{h()}}},[n,a,s,o,d,m,l,u,h]),Y.useEffect(()=>{if(!n)return;function t(){return!!(l&&u&&Gi(l.nodesRef.current,u).length>0)}function a(t){let n=ts(r,`close`,d.pointerType),i=()=>{e.setOpen(!1,Q(Xi,t)),l?.events.emit(`floating.closed`,t)};n?d.openChangeTimeout.start(n,i):(d.openChangeTimeout.clear(),i())}function s(e){let t=Qn(e);kr(t)?d.interactedInside=Zn(t,`[aria-haspopup]`)!=null:d.interactedInside=!1}function g(){d.openChangeTimeout.clear(),f.clear(),l?.events.off(`floating.closed`,v),h()}function _(n){if(t()&&l){l.events.on(`floating.closed`,v);return}if(Tr(n.relatedTarget,e.context.triggerElements))return;let r=c.current.floatingContext?.nodeId??i,o=n.relatedTarget;l&&r&&W(o)&&Gi(l.nodesRef.current,r,!1).some(e=>Z(e.context?.elements.floating,o))||(d.handler?d.handler(n):(h(),m()&&!p()&&a(n)))}function v(n){l&&u&&!t()&&f.start(0,()=>{l.events.off(`floating.closed`,v),e.setOpen(!1,Q(Xi,n)),l.events.emit(`floating.closed`,n)})}let y=o;return Tn(y&&wn(y,`mouseenter`,g),y&&wn(y,`mouseleave`,_),y&&wn(y,`pointerdown`,s,!0),()=>{l?.events.off(`floating.closed`,v)})},[n,o,e,c,r,i,m,p,h,d,l,u,f])}var os={current:null};function ss(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=os,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,{dataRef:h,events:g}=e.context,_=Ya(l),v=$o(e),y=Y.useRef(!1),b=an(i),x=an(r),S=an(o),C=an(n),w=an(p),T=an(f),E=G(()=>rs(h.current.openEvent?.type,v.interactedInside)),D=G(()=>w.current?.()!==!1),O=G((t,n,r)=>{let i=e.context.triggerElements;if(i.hasElement(n))return!t||!Z(t,n);if(!W(r))return!1;let a=r;return i.hasMatchingElement(e=>Z(e,a))&&(!t||!Z(t,a))}),k=G(()=>{v.handler&&=(Nt(e.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=G(()=>{Zo(v)});return u&&(v.handleCloseOptions=i?.__options),Y.useEffect(()=>k,[k]),Y.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===Xi,k(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,k]),Y.useEffect(()=>{if(!n)return;function t(t,n=!0){let r=ts(x.current,`close`,v.pointerType);r?v.openChangeTimeout.start(r,()=>{e.setOpen(!1,Q(Xi,t)),_?.events.emit(`floating.closed`,t)}):n&&(v.openChangeTimeout.clear(),e.setOpen(!1,Q(Xi,t)),_?.events.emit(`floating.closed`,t))}let r=c.current??(u?e.select(`domReferenceElement`):null);if(!W(r))return;function i(t){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!Lr(v.pointerType))return;let n=ns(S.current),r=ts(x.current,`open`,v.pointerType),i=Qn(t),o=t.currentTarget??null,s=e.select(`domReferenceElement`),c=o;if(W(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if(Z(t,i)){c=t;break}}W(o)&&W(s)&&!e.context.triggerElements.hasElement(o)&&Z(o,s)&&(c=s);let l=c!=null&&O(s,c,i),u=e.select(`open`),d=T.current?.()??e.select(`transitionStatus`)===`ending`,f=!u&&d&&y.current,p=!l&&W(c)&&W(s)&&Z(s,c)&&f,m=n>0&&!r,h=l&&(u||f)||p,g=!u||l;h?D()&&e.setOpen(!0,Q(Xi,t,c)):m||(r?v.openChangeTimeout.start(r,()=>{g&&D()&&e.setOpen(!0,Q(Xi,t,c))}):g&&D()&&e.setOpen(!0,Q(Xi,t,c)))}function o(n){if(E()){A();return}k();let r=Nt(e.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let i=h.current.floatingContext??d?.();if(!Tr(n.relatedTarget,e.context.triggerElements)){if(b.current&&i){e.select(`open`)||v.openChangeTimeout.clear();let a=c.current;v.handler=b.current({...i,tree:_,x:n.clientX,y:n.clientY,onClose(){A(),k(),C.current&&!E()&&a===e.select(`domReferenceElement`)&&t(n,!0)}}),r.addEventListener(`mousemove`,v.handler),v.handler(n)}else v.pointerType===`touch`&&Z(e.select(`floatingElement`),n.relatedTarget)||t(n)}}function l(e){Z(r,e.relatedTarget)||(v.openChangeTimeout.clear(),v.restTimeout.clear(),v.restTimeoutPending=!1)}let f=m?wn(r,`mouseout`,l):void 0;return s?Tn(wn(r,`mousemove`,i,{once:!0}),wn(r,`mouseenter`,i),wn(r,`mouseleave`,o),f):Tn(wn(r,`mouseenter`,i),wn(r,`mouseleave`,o),f)},[k,A,h,x,e,n,b,v,u,O,E,a,s,S,c,_,C,d,T,D,m]),Y.useMemo(()=>{if(!n)return;function t(e){v.pointerType=e.pointerType}return{onPointerDown:t,onPointerEnter:t,onMouseMove(t){let{nativeEvent:n}=t,r=t.currentTarget,i=e.select(`domReferenceElement`),o=e.select(`open`),s=O(i,r,t.target);if(a&&!Lr(v.pointerType))return;if(o&&s&&v.handleCloseOptions?.blockPointerEvents){let t=e.select(`floatingElement`);if(t){let e=v.handleCloseOptions?.getScope?.()??r.ownerDocument.body;Qo(v,{scopeElement:e,referenceElement:r,floatingElement:t})}}let c=ns(S.current);if(o&&!s||c===0||!s&&v.restTimeoutPending&&t.movementX**2+t.movementY**2<2)return;v.restTimeout.clear();function l(){if(v.restTimeoutPending=!1,E())return;let t=e.select(`open`);!v.blockMouseMove&&(!t||s)&&D()&&e.setOpen(!0,Q(Xi,n,r))}v.pointerType===`touch`?tn.flushSync(()=>{l()}):s&&o?l():(v.restTimeoutPending=!0,v.restTimeout.start(c,l))}}},[n,v,E,O,a,e,S,D])}function cs(e){return Vn&&e.movementX===0&&e.movementY===0}function ls(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function us(e,t){return ls(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function ds(e,t,n){return ls(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function fs(e,t,n){return ls(t,n?e===tr:e===nr,e===ir)}function ps(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:ls(t,n?e===nr:e===tr,e===rr)}function ms(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:h=void 0,orientation:g=`vertical`,triggerOrientation:_=g,parentOrientation:v,id:y,resetOnPointerLeave:b=!0,externalTree:x,nestedReturnFocusRef:S,grid:C}=t,w=C!=null,T=e.useState(`open`),E=e.useState(`floatingElement`),D=e.useState(`domReferenceElement`),O=e.context.dataRef,k=Mr(E),A=Ar(D),j=an(k),M=Ja(),N=Ya(x),P=Y.useRef(f),F=Y.useRef(o??-1),I=Y.useRef(null),L=Y.useRef(!0),R=G(e=>{i(F.current===-1?null:F.current,e)}),ee=Y.useRef(!!E),te=Y.useRef(T),z=Y.useRef(!1),B=Y.useRef(!1),ne=Y.useRef(null),re=an(h),V=an(T),H=an(o),ie=an(b),ae=Jn(),oe=Jn(),U=G(()=>{ae.cancel();function e(e){d||(ne.current=va(e,{sync:z.current,preventScroll:!0}))}let t=n.current[F.current],r=B.current;t&&e(t),(z.current?e=>e():e=>ae.request(e))(()=>{let i=n.current[F.current]||t;i&&(t||e(i),fe&&(r||!L.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});q(()=>{O.current.orientation=g},[O,g]),q(()=>{T||(I.current=null),T&&f===`auto`||(P.current=f)},[T,f]),q(()=>{a&&(T&&E?(F.current=o??-1,P.current&&o!=null&&(B.current=!0,R())):ee.current&&(F.current=-1,R()))},[a,T,E,o,R]),q(()=>{if(a){if(!T)z.current=!1;else if(E){if(r==null){if(z.current=!1,H.current!=null)return;if(ee.current&&(F.current=-1,U()),(!te.current||!ee.current)&&P.current&&(I.current!=null||P.current===!0&&I.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>oe.request(e):queueMicrotask)(t),e+=1):(F.current=I.current==null||ds(I.current,_,u)||l?mi(n):hi(n),I.current=null,R())};t()}}else pi(n.current,r)||(F.current=r,U(),B.current=!1)}}},[a,T,E,r,H,l,n,_,u,R,U,oe]),q(()=>{if(!a||E||!N||d||!ee.current)return;let e=N.nodesRef.current,t=e.find(e=>e.id===M)?.context?.elements.floating,n=Xn(Nt(D??t??null)),r=e.some(e=>e.context&&Z(e.context.elements.floating,n));t&&!r&&L.current&&t.focus({preventScroll:!0})},[a,E,D,N,M,d]),q(()=>{te.current=T,ee.current=!!E});let se=r!=null,ce=G(e=>{if(!V.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(F.current!==t||r!==t)&&(F.current=t,R(e))}),le=G(()=>v??N?.nodesRef.current.find(e=>e.id===M)?.context?.dataRef?.current.orientation),ue=G(()=>mi(n,re.current)),de=G(t=>{if(L.current=!1,z.current=!0,t.which===229||!V.current&&t.currentTarget===j.current)return;if(l&&ps(t.key,g,u,w)){us(t.key,le())||Nr(t),e.setOpen(!1,Q(sa,t.nativeEvent));let n=S?.current??D;dt(n)&&n.focus();return}r!=null&&r!==F.current&&!pi(n.current,r)&&(F.current=r);let i=F.current,a=mi(n,h),o=hi(n,h);if(A||(t.key===`Home`&&(Nr(t),F.current=a,R(t)),t.key===`End`&&(Nr(t),F.current=o,R(t))),C!=null){let e=C(t,F.current,n,g,c,u,h,a,o);if(e!=null&&e!==F.current&&(F.current=e,R(t)),g===`both`)return}if(us(t.key,g)){Nr(t);let e=Xn(t.currentTarget.ownerDocument);if(T&&!d&&Z(t.currentTarget,e)&&!n.current.some(t=>t!=null&&Z(t,e))){F.current=ds(t.key,g,u)?a:o,R(t),r===F.current&&U();return}let{index:l,wrapped:f}=gi(n.current,i,{decrement:!ds(t.key,g,u),loopFocus:c,allowEscape:s,disabledIndices:h,minIndex:a,maxIndex:o});f&&(z.current=!1),F.current=l,R(t)}}),fe=Y.useMemo(()=>({onFocus(e){z.current=!0,ce(e)},onClick({currentTarget:e}){d||e.focus({preventScroll:!0})},onMouseMove(e){cs(e)||(z.current=!0,B.current=!1,p&&ce(e))},onPointerLeave(e){if(!V.current||!L.current||e.pointerType===`touch`)return;z.current=!0;let t=e.relatedTarget;if(p&&!n.current.includes(t)&&ie.current&&(ne.current?.(),ne.current=null,F.current=-1,R(e),!d)){let e=j.current,t=Xn(Nt(e));e&&Z(e,t)&&e.focus({preventScroll:!0})}}}),[ce,V,j,p,n,R,ie,d]),pe=Y.useMemo(()=>d&&T&&se&&{"aria-activedescendant":`${y}-${r}`},[d,T,se,y,r]),me=Y.useMemo(()=>({...A?{}:pe,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&T&&!d){let n=Qn(t.nativeEvent);if(n&&!Z(j.current,n))return;Nr(t);let r=Q(aa,t.nativeEvent);e.setOpen(!1,r);let i=S?.current??D;!r.isCanceled&&dt(i)&&i.focus()}else de(t)},onPointerMove(e){cs(e)||(L.current=!0)}}),[pe,de,j,A,e,T,d,D,S]),he=Y.useMemo(()=>{function t(t){e.setOpen(!0,Q(sa,t.nativeEvent,t.currentTarget))}function n(e){f===`auto`&&Fr(e.nativeEvent)&&(P.current=!d)}function r(e){P.current=f,f===`auto`&&Ir(e.nativeEvent)&&(P.current=!0)}return{onKeyDown(n){let r=e.select(`open`);L.current=!1;let i=n.key.startsWith(`Arrow`),a=fs(n.key,le(),u),o=us(n.key,r?g:_),s=(l?a:o)||n.key===`Enter`||n.key.trim()===``;if(d&&r&&(!l||Or(n.currentTarget)))return de(n);if(r||m||!i){if(s){let e=us(n.key,le());I.current=l&&e?null:n.key}l?a&&(Nr(n),r?(F.current=ue(),R(n),d&&j.current?.focus()):t(n)):o&&(H.current!=null&&(F.current=H.current),Nr(n),!r&&m?t(n):de(n),r&&R(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!d&&(F.current=-1,R(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[de,f,ue,l,R,e,m,g,_,le,u,H,d,j]),ge=Y.useMemo(()=>({...pe,...he}),[pe,he]);return Y.useMemo(()=>a?{reference:ge,floating:me,item:fe,trigger:he}:{},[a,ge,me,he,fe])}function hs(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=G(s),f=e.useState(`open`),p=kn(),m=Y.useRef(``),h=Y.useRef(u??i??-1),g=Y.useRef(null),_=G(e=>{function t(e){return r?.current[e]}function s(e){let n=t(e);return n&&!xi(n)||n?.matches(`:disabled`)?!1:o==null||!yi(at,e,o)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&s(n))return n}return-1}let _=n.current;if(m.current.length>0&&e.key===` `&&(Nr(e),d?.(!0)),m.current.length>0&&m.current[0]!==` `&&c(_,m.current)===-1&&e.key!==` `&&d?.(!1),_==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&(Nr(e),d?.(!0));let v=m.current===``;v&&(h.current=u??i??-1),_.every((e,t)=>e&&s(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,d?.(!1)});let y=((v?u??i??-1:h.current)??0)+1,b=c(_,m.current,y);b===-1?e.key!==` `&&(m.current=``,d?.(!1)):(a?.(b,e),g.current=b)}),v=G(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);Z(r,n)||Z(i,n)||(p.clear(),m.current=``,h.current=g.current,d?.(!1))});q(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``,d?.(!1)))},[f,u,p,d]);let y=Y.useMemo(()=>({onKeyDown:_,onBlur:v}),[_,v]);return Y.useMemo(()=>c?{reference:y,floating:y}:{},[c,y])}var gs=.1,_s=gs*gs,vs=.5;function ys(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function bs(e,t,n,r,i,a,o,s,c,l){let u=!1;return ys(e,t,n,r,i,a)&&(u=!u),ys(e,t,i,a,o,s)&&(u=!u),ys(e,t,o,s,c,l)&&(u=!u),ys(e,t,c,l,n,r)&&(u=!u),u}function xs(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Ss(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Cs(e={}){let{blockPointerEvents:t=!1}=e,n=new On,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*_s;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=Qn(r),g=r.type===`mouseleave`,_=Z(u,h),v=Z(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&W(r.relatedTarget)&&Z(u,r.relatedTarget))return;function y(){return!!(s&&Gi(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=Ss(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=Ss(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=Ss(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=Ss(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!xs(d,f,x)||!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?vs/2:vs*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+vs+1,o=C||T?S.bottom-vs:S.top,s=C?T?S.bottom-vs:S.top:S.bottom-vs;M=bs(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?vs/2:vs*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-vs,o=C||T?S.top+vs:S.bottom,s=C?T?S.top+vs:S.bottom:S.top+vs;M=bs(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?vs/2:vs*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+vs+1,o=w||E?S.right-vs:S.left,s=w?E?S.right-vs:S.left:S.right-vs;M=bs(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?vs/2:vs*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-vs,o=w||E?S.left+vs:S.right,s=w?E?S.left+vs:S.right:S.left+vs;M=bs(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}function ws(e,t,n){let{reference:r,floating:i}=e,a=Zr(t),o=Qr(t),s=Xr(o),c=qr(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.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-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Jr(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Ts(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Kr(t,e),p=ui(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=di(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=di(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Es=50,Ds=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Ts},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ws(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Es&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ws(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Os=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Kr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=qr(r),_=Zr(o),v=qr(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ci(o)]:ei(o)),x=p!==`none`;!d&&x&&b.push(...si(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=$r(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Zr(t)||T.every(e=>Zr(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Zr(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},ks=new Set([`left`,`top`]);async function As(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=qr(n),s=Jr(n),c=Zr(n)===`y`,l=ks.has(o)?-1:1,u=a&&c?-1:1,d=Kr(t,e),{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),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var js=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await As(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ms=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Kr(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Zr(i),p=Yr(f),m=u[p],h=u[f],g=(e,t)=>Gr(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Ns=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Kr(e,t),u={x:n,y:r},d=Zr(i),f=Yr(d),p=u[f],m=u[d],h=Kr(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ks.has(qr(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Ps=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Kr(e,t),c=await i.detectOverflow(t,s),l=qr(n),u=Jr(n),d=Zr(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=zr(p-c[m],g),y=zr(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Br(c.left,c.right):S=p-2*Br(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Fs(e){let t=He(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=dt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Vr(n)!==a||Vr(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Is(e){return W(e)?e:e.contextElement}function Ls(e){let t=Is(e);if(!dt(t))return Ur(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Fs(t),o=(a?Vr(n.width):n.width)/r,s=(a?Vr(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Rs=Ur(0);function zs(e){let t=Le(e);return!Re()||!t.visualViewport?Rs:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bs(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Le(e)}function Vs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Is(e),o=Ur(1);t&&(r?W(r)&&(o=Ls(r)):o=Ls(e));let s=Bs(a,n,r)?zs(a):Ur(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Le(a),t=W(r)?Le(r):r,n=e,i=tt(n);for(;i&&t!==n;){let e=Ls(i),t=i.getBoundingClientRect(),r=He(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Le(i),i=tt(n)}}return di({width:u,height:d,x:c,y:l})}function Hs(e,t){let n=Ve(e).scrollLeft;return t?t.left+n:Vs(ke(e)).left+n}function Us(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Hs(e,n),y:n.top+t.scrollTop}}function Ws(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=ke(r),s=t?Fe(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ur(1),u=Ur(0),d=dt(r);if((d||!a)&&((Be(r)!==`body`||Ie(o))&&(c=Ve(r)),d)){let e=Vs(r);l=Ls(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Us(o,c):Ur(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Gs(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ks(e){let t=Ve(e),n=e.ownerDocument.body,r=Br(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Br(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Hs(e),o=-t.scrollTop;return He(n).direction===`rtl`&&(a+=Br(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var qs=25;function Js(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Le(e),a=ke(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Re()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Hs(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=qs&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Ys(e,t){let n=Vs(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ls(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Xs(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Js(e,n,t);else if(t===`document`)r=Ks(ke(e));else if(W(t))r=Ys(t,n);else{let n=zs(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return di(r)}function Zs(e,t){let n=t.get(e);if(n)return n;let r=Ue(e,[],!1).filter(e=>W(e)&&Be(e)!==`body`),i=null,a=He(e).position===`fixed`,o=a?Pe(e):e;for(;W(o)&&!Ae(o);){let e=He(o),t=ze(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Pe(o)}return t.set(e,r),r}function Qs(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Fe(t)?[]:Zs(t,this._c):[].concat(n),r],o=Xs(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Xs(t,a[e],i);s=Br(n.top,s),c=zr(n.right,c),l=zr(n.bottom,l),u=Br(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function $s(e){let{width:t,height:n}=Fs(e);return{width:t,height:n}}function ec(e,t,n){let r=dt(t),i=ke(t),a=n===`fixed`,o=Vs(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Ur(0);if((r||!a)&&((Be(t)!==`body`||Ie(i))&&(s=Ve(t)),r)){let e=Vs(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Hs(i));let l=i&&!r&&!a?Us(i,s):Ur(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function tc(e){return He(e).position===`static`}function nc(e,t){if(!dt(e)||He(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return ke(e)===n&&(n=n.ownerDocument.body),n}function rc(e,t){let n=Le(e);if(Fe(e))return n;if(!dt(e)){let t=Pe(e);for(;t&&!Ae(t);){if(W(t)&&!tc(t))return t;t=Pe(t)}return n}let r=nc(e,t);for(;r&&Je(r)&&tc(r);)r=nc(r,t);return r&&Ae(r)&&tc(r)&&!ze(r)?n:r||nt(e)||n}var ic=async function(e){let t=this.getOffsetParent||rc,n=this.getDimensions,r=await n(e.floating);return{reference:ec(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ac(e){return He(e).direction===`rtl`}var oc={convertOffsetParentRelativeRectToViewportRelativeRect:Ws,getDocumentElement:ke,getClippingRect:Qs,getOffsetParent:rc,getElementRects:ic,getClientRects:Gs,getDimensions:$s,getScale:Ls,isElement:W,isRTL:ac};function sc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cc(e,t,n){let r=null,i,a=ke(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Hr(d),h=Hr(a.clientWidth-(u+f)),g=Hr(a.clientHeight-(d+p)),_=Hr(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Br(0,zr(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!sc(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Le(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function lc(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Is(e),u=i||a?[...l?Ue(l):[],...t?Ue(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?cc(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Vs(e):null;c&&g();function g(){let t=Vs(e);h&&!sc(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var uc=js,dc=Ms,fc=Os,pc=Ps,mc=Ns,hc=(e,t,n)=>{let r=new Map,i=n??{},a={...oc,...i.platform,_c:r};return Ds(e,t,{...i,platform:a})},gc=typeof document<`u`?Y.useLayoutEffect:function(){};function _c(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_c(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!_c(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function vc(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yc(e,t){let n=vc(e);return Math.round(t*n)/n}function bc(e){let t=Y.useRef(e);return gc(()=>{t.current=e}),t}function xc(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=Y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Y.useState(r);_c(f,r)||p(r);let[m,h]=Y.useState(null),[g,_]=Y.useState(null),v=Y.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=Y.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=Y.useRef(null),C=Y.useRef(null),w=Y.useRef(u),T=c!=null,E=bc(c),D=bc(i),O=bc(l),k=Y.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),hc(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!_c(w.current,t)&&(w.current=t,tn.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);gc(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=Y.useRef(!1);gc(()=>(A.current=!0,()=>{A.current=!1}),[]),gc(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=Y.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=Y.useMemo(()=>({reference:b,floating:x}),[b,x]),N=Y.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=yc(M.floating,u.x),r=yc(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...vc(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return Y.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Sc=(e,t)=>{let n=uc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Cc=(e,t)=>{let n=dc(e);return{name:n.name,fn:n.fn,options:[e,t]}},wc=(e,t)=>({fn:mc(e).fn,options:[e,t]}),Tc=(e,t)=>{let n=fc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ec=(e,t)=>{let n=pc(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Dc(e,t,n,r,i,a,o,s,c,l=2){let u=vi(n.current,{event:e,orientation:r,loopFocus:i,rtl:a,cols:l,disabledIndices:o,minIndex:s,maxIndex:c,prevIndex:t>c?s:t,stopEvent:!0});return pi(n.current,u)?void 0:u}function Oc(e){return e==null?Ji:e.type.startsWith(`key`)?ca:e.type.startsWith(`mouse`)||e.type.startsWith(`pointer`)?la:Ji}var kc=Y.createContext(void 0),Ac=Y.createContext(void 0),jc=Y.createContext(void 0),Mc=Y.createContext(!1),Nc=Y.createContext(``);function Pc(){let e=Y.useContext(kc);if(!e)throw Error(Ge(22));return e}function Fc(){let e=Y.useContext(Ac);if(!e)throw Error(Ge(23));return e}function Ic(){let e=Y.useContext(jc);if(!e)throw Error(Ge(24));return e}function Lc(){return Y.useContext(Nc)}function Rc(){return Y.useContext(Mc)}function zc(e,t,n=Object.is){let{length:r}=e;if(r!==t.length)return!1;for(let i=0;i<r;i+=1)if(!n(e[i],t[i]))return!1;return!0}var Bc=(e,t)=>Object.is(e,t);function Vc(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function Hc(e,t,n){return Array.isArray(e)&&Array.isArray(t)?!zc(e,t,(e,t)=>Vc(e,t,n)):e!==t}function Uc(e,t,n){return e?e.some(e=>e!==void 0&&Vc(t,e,n)):!1}function Wc(e,t,n){return e?e.findIndex(e=>e!==void 0&&Vc(e,t,n)):-1}function Gc(e,t){if(t!==Bc)return n=>Uc(e,n,t);let n=new Set(e);return n.delete(void 0),t=>n.has(t)&&(t!==0||e.some(e=>Object.is(t,e)))}function Kc(e,t,n,r){let i=r&&Array.isArray(t)?e.findIndex(Gc(t,n)):Wc(e,t,n);return i===-1?null:i}function qc(e,t,n,r,i,a){return Uc(r,t,i)?a!=null&&e>a&&Uc(r,n[a],i)?a:e:e===a?Kc(n,r,i,!0):a}function Jc(e,t,n){return e.filter(e=>!Vc(t,e,n))}function Yc(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function Xc(e){return typeof e==`object`&&!!e&&Array.isArray(e.items)}function Zc(e){return Xc(e?.[0])}function Qc(e){return Zc(e)?e.flatMap(e=>e.items):e}function $c(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(Zc(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function el(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return Yc(e)}function tl(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?Yc(e.value):Yc(e)}var nl={id:e=>e.id,labelId:e=>e.labelId,items:e=>e.items,selectedValue:e=>e.selectedValue,hasSelectionChips:e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0},hasSelectedValue:e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0},hasNullItemLabel:(e,t)=>t?$c(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMounted:e=>e.forceMounted,inline:e=>e.inline,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>Vc(t,e,n)):Vc(t,r,n)},transitionStatus:e=>e.transitionStatus,popupProps:e=>e.popupProps,listProps:e=>e.listProps,inputProps:e=>e.inputProps,triggerProps:e=>e.triggerProps,itemRoot:e=>e.itemRoot,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupId:e=>e.popupId,triggerElement:e=>e.triggerElement,inputElement:e=>e.inputElement,inputGroupElement:e=>e.inputGroupElement,popupSide:e=>e.popupSide,openMethod:e=>e.openMethod,inputInsidePopup:e=>e.inputInsidePopup,inputOwnsFormValue:e=>e.inputOwnsFormValue,selectionMode:e=>e.selectionMode,name:e=>e.name,form:e=>e.form,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,grid:e=>e.grid,virtualized:e=>e.virtualized,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,modal:e=>e.modal,autoHighlight:e=>e.autoHighlight},rl=`data-valid`,il=`data-invalid`,al={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},ol={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},sl={disabled:!1,...ol},cl={valid(e){return e===null?null:e?{[rl]:``}:{[il]:``}}},ll={invalid:void 0,name:void 0,validityData:{state:al,errors:[],error:``,value:``,initialValue:null},setValidityData:et,disabled:void 0,setTouched:et,setDirty:et,setFilled:et,setFocused:et,focusOwnerRef:{current:void 0},validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:sl,registerFieldControl:et,validation:{getValidationProps:(e,t=it)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:et,getInputControl:()=>null,commit:async()=>{},change:et}},ul=Y.createContext(ll);function dl(e=!0){let t=Y.useContext(ul);if(t.setValidityData===et&&!e)throw Error(Ge(28));return t}function fl(e,t,n,r,i=!0,a){let{registerFieldControl:o}=dl(),s=Ne(()=>Symbol());q(()=>{let c=s.current;i?o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}):o(c,void 0)},[e,i,r,t,a,o,s,n]),q(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var pl=Y.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:et,validationMode:`onSubmit`,submitCountRef:{current:0}});function ml(){return Y.useContext(pl)}function hl(e){return Pa(e,`base-ui`)}var gl=Y.createContext({controlId:void 0,registerControlId:et,resetControlId:et,labelId:void 0,setLabelId:et,messageIds:[],setMessageIds:et,getDescriptionProps:e=>e});function _l(){return Y.useContext(gl)}function vl(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=_l(),o=hl(),s=Ne(()=>Symbol()),c=Y.useRef(!1),l=Y.useRef(!1),u=G(()=>{c.current&&i!==et&&(c.current=!1,i(s.current,void 0))});return q(()=>{if(!n||i===et){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}e===void 0?u():(c.current=!0,i(s.current,e))},[t,n,i,a,o,s,u]),q(()=>u,[u]),(n?r:void 0)??t??o}function yl(e){return e==null?void 0:`${e}-popup`}function bl(e,t){return(n,r)=>n!=null&&e.contains(n,r,t)}function xl(e){return Array.isArray(e)?e.map(e=>xl(e)).join(`,`):e==null?``:String(e)}var Sl=new Map;function Cl(e={}){let{locale:t,...n}=e,r={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...n},i=`${xl(t)}|${JSON.stringify(r)}`,a=Sl.get(i);if(a)return a;let o=new Intl.Collator(t,r),s={contains(e,t,n){if(!t)return!0;let r=el(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(o.compare(r.slice(e,e+t.length),t)===0)return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=el(e,n);return o.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=el(e,n),i=t.length;return r.length>=i&&o.compare(r.slice(r.length-i),t)===0}};return Sl.set(i,s),s}var wl=Cl;function Tl(e){let t=Y.useRef(``),n=Y.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:Y.useCallback(n=>{n.detail===0?e(n,`keyboard`):(`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``)},[e]),onPointerDown:n}}function El(e,t){let n=Y.useRef(e),r=G(t);q(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function Dl(e,t){let{onClick:n,onPointerDown:r}=Tl(G((n,r)=>{(typeof e==`function`?e():e)||t(r||(In?`touch`:``))}));return Y.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function Ol(e){let[t,n]=Y.useState(null),r=Dl(e,n);return El(e,t=>{t&&!e&&n(null)}),Y.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function kl(e,t=!1){let{overflowY:n}=He(e);return n!==`auto`&&n!==`scroll`?!1:t?e.clientHeight>0:e.scrollHeight>e.clientHeight}var Al=Symbol(`none`),jl={value:Al,index:-1},Ml=Y.createContext(void 0);function Nl(){return Y.useContext(Ml)?.direction??`ltr`}function Pl(e,t,n){let r=e.get(t);if(r!==void 0||n===Bc)return r;for(let[r,i]of e)if(Vc(r,t,n))return i}function Fl(e){let{id:t,onOpenChangeComplete:n,defaultSelectedValue:r=null,selectedValue:i,onSelectedValueChange:a,defaultInputValue:o,inputValue:s,open:c,defaultOpen:l=!1,selectionMode:u,onItemHighlighted:d,name:f,form:p,disabled:m=!1,readOnly:h=!1,required:g=!1,inputRef:_,grid:v=!1,items:y,filteredItems:b,filter:x,filterQuery:S,openOnInputClick:C=!0,autoHighlight:w=!1,keepHighlight:T=!1,highlightItemOnHover:E=!0,loopFocus:D=!0,itemToStringLabel:O,itemToStringValue:k,isItemEqualToValue:A=Bc,virtualized:j=!1,inline:M=!1,fillInputOnItemPress:N=!0,modal:P=!1,limit:F=-1,autoComplete:I=`list`,formAutoComplete:L,locale:R,submitOnItemClick:ee=!1}=e,{clearErrors:te}=ml(),{setDirty:z,validityData:B,setFilled:ne,name:re,disabled:V,setTouched:H,setFocused:ie,validationMode:ae,validation:oe}=dl(),U=Nl(),se=vl({id:t}),ce=wl({locale:R}),le=Array.isArray(y)?null:y;if(le&&typeof le.label!=`function`)throw Error(Ge(100));let ue=le?le.data:y,de=le?.value,fe=de?void 0:ue,pe=Y.useMemo(()=>{if(!b||!de)return;let e=Qc(b),t=e.map(de),n;return{values:t,findItem(r,i){if(!n){n=new Map;for(let r=0;r<t.length;r+=1)n.has(t[r])||n.set(t[r],e[r])}return Pl(n,r,i)}}},[b,de]),me=Y.useMemo(()=>le?e=>le.label(e,A,e=>{let t=pe?.findItem(e,A);return t==null?el(e,O):le.itemLabel(t)}):O,[le,O,pe,A]),he=Y.useMemo(()=>le?Object.assign(e=>le.itemLabel(e),{selected:e=>el(e,me)}):O,[le,me,O]);function ge(e){return el(e,me)}let[_e,ve]=Y.useState(!1),[ye,be]=Y.useState(null),xe=Y.useRef(ye),Se=Y.useRef([]),Ce=Y.useRef([]),we=Y.useRef(null),Te=Y.useRef(null),Ee=Y.useRef(null),De=Y.useRef(null),Oe=Y.useRef(null),ke=Y.useRef(!1),Ae=Y.useRef(null),Me=Y.useRef(null),Pe=Y.useRef(null),Fe=Y.useRef(jl),Ie=Y.useRef(null),Le=Y.useRef([]),Re=Y.useRef(null),ze=V||m,Be=re??f,Ve=u===`multiple`,He=u===`single`,We=s!==void 0||o!==void 0,W=ue!==void 0,Ke=b!==void 0,qe;qe=w===`always`?`always`:w?`input-change`:!1;let[Je,Ye]=nn({controlled:i,default:Ve?r??at:r,name:`Combobox`,state:`selectedValue`}),Xe=Y.useMemo(()=>x===null?()=>!0:x===void 0?bl(ce,he):x,[x,ce,he]),Qe=Ne(()=>We?o??``:He?ge(Je):``).current,[K,$e]=nn({controlled:s,default:Qe,name:`Combobox`,state:`inputValue`}),[tt,nt]=nn({controlled:c,default:l,name:`Combobox`,state:`open`}),rt=Zc(ue),ot=!tt&&ye!==null?ye:String(K).trim(),st=He?ge(Je):``,ct=He&&!_e&&ot!==``&&st.length===ot.length&&ce.contains(st,ot),lt=ct?``:S??ot,ut=W&&Ke&&ct&&(!le||le.hasValue(Je,A)),ft=Y.useMemo(()=>ue?Qc(ue):at,[ue]),pt=Y.useMemo(()=>{if(b&&!ut)return b;if(!ue)return at;if(rt){let e=ue,t=[],n=0;for(let r of e){if(F>-1&&n>=F)break;let e=F>-1?F-n:1/0,i=lt===``?r.items.slice(0,e):[];if(lt!==``)for(let t of r.items){if(i.length>=e)break;Xe(t,lt,he)&&i.push(t)}if(i.length>0){let e={...r,items:i};t.push(e),n+=i.length}}return t}if(lt===``)return F>-1?ft.slice(0,F):ft;let e=[];for(let t of ft){if(F>-1&&e.length>=F)break;Xe(t,lt,he)&&e.push(t)}return e},[b,ut,ue,rt,lt,F,Xe,he,ft]),mt=Y.useMemo(()=>{if(pe&&pt===b)return pe.values;let e=Qc(pt);return de?e.map(e=>de(e)):e},[pt,b,pe,de]),J=Ne(()=>{let e=null;return M&&tt&&W&&u!==`none`&&(e=Kc(mt,Je,A,Ve)),new Cn({id:se,labelId:void 0,selectedValue:Je,open:tt,items:fe,selectionMode:u,name:Be,form:p,disabled:ze,readOnly:h,required:g,grid:v,virtualized:j,openOnInputClick:C,itemToStringLabel:me,isItemEqualToValue:A,modal:P,autoHighlight:qe,submitOnItemClick:ee,hasInputValue:We,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:M,activeIndex:null,selectedIndex:e,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemRoot:{props:it,id:se,selectionMode:u,disabled:ze,readOnly:h,isItemEqualToValue:A},positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:u===`none`},{onOpenChangeComplete:et,setOpen:et,setInputValue:et,setSelectedValue:et,setIndices:et,handleSelection:et,forceMount:et,requestSubmit:et,listRef:Se,labelsRef:Ce,popupRef:we,emptyRef:Oe,inputRef:Te,startDismissRef:Ee,endDismissRef:De,chipsContainerRef:Ae,clearRef:Me,valuesRef:Le,pointerDownItemRef:Re,selectionEventRef:Pe},nl)}).current,ht=u===`none`?K:Je,gt=Y.useMemo(()=>u===`none`?ht:Array.isArray(Je)?Je.map(e=>tl(e,k)):tl(Je,k),[ht,k,u,Je]),_t=G(d),vt=G(n),yt=J.useState(`activeIndex`),bt=J.useState(`selectedIndex`),xt=J.useState(`positionerElement`),St=J.useState(`listElement`),Ct=J.useState(`triggerElement`),wt=J.useState(`inputElement`),Tt=J.useState(`inputGroupElement`),Et=J.useState(`inline`),Dt=J.useState(`inputInsidePopup`),Ot=J.useState(`inputOwnsFormValue`),kt=He&&!Dt&&K===st,At=an(Ct),{openMethod:jt,triggerProps:Mt}=Ol(tt),Nt=G(()=>gt);fl(Dt?At:Te,se,ht,Nt,!ze,f);let Pt=G(()=>{ue?Ce.current=mt.map(ge):J.set(`forceMounted`,!0)}),Ft=G((e,t,n,r)=>{if(t===-1){if(Fe.current===jl)return;Fe.current=jl}else Fe.current={value:e,index:t};_t(e,qi(n,r,{index:t}))}),It=G(e=>{let t={};e.activeIndex!==void 0&&(t.activeIndex=e.activeIndex),e.selectedIndex!==void 0&&(t.selectedIndex=e.selectedIndex),J.update(t);let n=e.activeIndex;if(n===void 0)return;let r=e.type||`none`;n===null?Ft(void 0,-1,r,e.event):Ft(Le.current[n],n,r,e.event)}),Lt=G((t,n)=>{if(e.onInputValueChange?.(t,n),!n.isCanceled){if(ke.current=n.reason===ra,n.reason===`input-change`){tt&&ye!==null&&be(null);let e=n.event,r=e.inputType;if(e.type===`compositionend`||r!=null&&r!==``&&r!==`insertReplacementText`){let e=t.trim()!==``;e&&ve(!0),Ie.current={hasQuery:e};let n=J.state.listElement;if(!J.state.virtualized&&n){let e=we.current;for(let t of Ue(n.firstElementChild??n)){if(!dt(t)||(e?!Z(e,t):t.getAttribute(`role`)===`dialog`))break;if(kl(t)){t.scrollTop=0;break}}}e&&qe&&J.state.activeIndex==null&&(tt||Et)&&J.set(`activeIndex`,0)}}else n.reason===`input-clear`&&t===``&&J.state.inputInsidePopup&&(Ie.current={hasQuery:!1,selection:!0});$e(t)}}),Rt=G(e=>{let t=!e&&Dt&&!Et&&K!==``&&(String(K).trim()===ye||K===st);!e&&(t||K===``||kt)&&ve(!1),be(null),t&&Lt(``,Q(ra))}),[zt,Bt]=Y.useState(!1),Vt=G((t,n)=>{if(tt===t)return;n.reason===`escape-key`&&W&&mt.length===0&&!Oe.current&&n.allowPropagation();let r=n,i=ko(r);if(e.onOpenChange?.(t,r),Ie.current?.hasQuery&&n.reason===`input-change`===n.isCanceled&&(Ie.current=null),!n.isCanceled&&(t&&ye!==null&&Rt(n.reason===na),!t&&_e&&(He?(Et||be(ot),ot===``&&ve(!1)):Ve&&(Et||be(ot),Dt&&It({activeIndex:null}),(!Dt||Et)&&Lt(``,Q(ra,n.event,void 0,{isItemPress:n.reason===$i})))),t||Bt(i()),nt(t),!t&&Dt&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(H(!0),ie(!1),ae===`onBlur`))){let e=u===`none`?K:Je;oe.commit(e)}}),Ht=G((e,t)=>{a?.(e,t),!t.isCanceled&&(Ye(e),(u===`none`&&we.current&&N||He&&!J.state.inputInsidePopup)&&Lt(ge(e),Q(t.reason,t.event)))}),Ut=G((e,t)=>{let n=Qn(e),r=Pe.current??e;Pe.current=null;let i=Q($i,r),a=Zn(n,`a`)?.getAttribute(`href`);if(a)a.startsWith(`#`)&&Vt(!1,i);else if(Ve){let e=Array.isArray(Je)?Je:[],n=Uc(e,t,A),r=n?Jc(e,t,A):[...e,t];if(Ht(r,i),i.isCanceled||!(Te.current&&Te.current.value.trim()!==``))return;if(J.state.inputInsidePopup){Lt(``,Q(ra,i.event,void 0,{isItemPress:!0}));let e=Ie.current;e&&!n&&(e.toggledValue=t)}else Vt(!1,i)}else{if(Ht(t,i),i.isCanceled)return;Vt(!1,i)}}),Wt=G(()=>{let e=oe.inputRef.current?.form??J.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),Gt=G(()=>{if(vt?.(!1),ve(!1),be(null),It(u===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),Ve&&Te.current&&Te.current.value!==``&&!ke.current&&Lt(``,Q(ra)),He){if(J.state.inputInsidePopup)Te.current&&Te.current.value!==``&&Lt(``,Q(ra));else{let e=ge(Je);Te.current&&Te.current.value!==e&&Lt(e,Q(e===``?ra:Ji))}}}),Kt=Y.useMemo(()=>Et&&xt?{current:Zn(xt,`[role="dialog"]`)}:we,[Et,xt]),{mounted:qt,transitionStatus:Jt,forceUnmount:Yt}=xo({open:tt,ref:Kt,preventUnmountOnClose:zt,setPreventUnmountOnClose:Bt,onUnmount:Gt});Y.useImperativeHandle(e.actionsRef,()=>({unmount:Yt,close:()=>Vt(!1,Q(ha))}),[Yt,Vt]),q(function(){let e=xe.current!==null&&ye===null;if(xe.current=ye,tt&&(!e||!W)||(tt||(Re.current=null),u===`none`))return;let t=W?mt:Le.current;It({selectedIndex:Kc(t,Je,A,Ve)})},[tt,ye,Je,u,Ve,W,mt,A,It]),q(()=>{ue&&(Le.current=mt,Se.current.length=mt.length)},[ue,mt]),q(()=>{!tt&&Ie.current?.hasQuery&&(Ie.current=null)},[tt]),q(()=>{if(!tt&&Et&&Kt.current){Ie.current=null;return}let e=W||Ke?mt:Le.current,t=Ie.current;if(t){let n=tt||Et||J.state.positionerElement?.hidden===!1;if(t.hasQuery){let t=Te.current;!qe||String(K).trim()===``||Et&&qe!==`always`&&(!t||Xn(t.ownerDocument)!==t)?Ie.current=null:n&&(e[0]!==void 0||!W&&!Ke)&&(J.set(`activeIndex`,0),Ie.current=null)}else if(String(K).trim()===``&&(Ie.current=null,n)){let e=t.selection;qe===`always`&&!e&&J.state.selectionMode===`none`&&J.set(`activeIndex`,0),queueMicrotask(()=>{if(!J.state.open&&(!J.state.inline||Kt.current)||Te.current&&Te.current.value.trim()!==``)return;let n=J.state.selectedValue,r=J.state.selectionMode===`multiple`;if(r&&Array.isArray(n)?n.length>0:J.state.selectionMode!==`none`&&n!=null){let e=W||Ke?mt:Le.current,i=Wc(e,t.toggledValue,J.state.isItemEqualToValue);J.set(`activeIndex`,i===-1?Kc(e,n,J.state.isItemEqualToValue,r):i)}else e?J.set(`activeIndex`,null):qe===`always`&&J.set(`activeIndex`,0)})}}if(!tt&&!Et)return;let n=J.state.activeIndex;if(n==null){if(qe===`always`&&e.length>0){J.set(`activeIndex`,0);return}Ft(void 0,-1,Ji);return}if(n>=e.length){Ft(void 0,-1,Ji),J.set(`activeIndex`,null);return}let r=e[n],i=Fe.current.value,a=i!==Al&&Vc(r,i,J.state.isItemEqualToValue);Fe.current.index===n&&a||Ft(r,n,Ji)},[yt,qe,Ft,Ke,W,mt,Et,tt,Kt,J,K]),q(()=>{ne(u===`none`?String(K)!==``:Ve?Array.isArray(Je)&&Je.length>0:Je!=null)},[ne,u,K,Je,Ve]),Y.useEffect(()=>{W&&qe&&mt.length===0&&It({activeIndex:null})},[W,qe,mt.length,It]);function Xt(){tt&&ot!==``&&ot!==String(Qe)&&!kt&&ve(!0)}function Zt(){tt&&ye!==null&&Rt(!1)}let Qt=!1;function $t(){!Qt&&K!==st&&(Qt=!0,Lt(st,Q(Ji)))}function en(){u!==`none`&&(te(Be),z(Hc(Je,B.initialValue,A)),oe.change(Je),He&&!We&&!Dt&&$t())}function tn(){He&&!We&&!Dt&&!_e&&$t()}function on(){u===`none`&&(te(Be),z(K!==B.initialValue),oe.change(K))}El(ot,Xt),El(tt,Zt),El(Je,en),El(st,tn),El(ue,tn),El(K,on);let sn=Ko({open:Et?!0:tt,onOpenChange:Vt,elements:{reference:Dt?Ct:wt,floating:xt}}),un=v?`grid`:`listbox`,dn=tt||Et,fn=dn?`true`:`false`,pn=Y.useMemo(()=>{let e=wt?.tagName===`INPUT`,t=wt==null||e,n=t||dn,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=fn,r[`aria-haspopup`]=un,r[`aria-controls`]=dn?St?.id:void 0,r[`aria-autocomplete`]=h?`none`:I),{reference:r,floating:{role:`presentation`}}},[wt,dn,fn,un,St?.id,I,h]),mn=lo(sn,{enabled:!ze&&C,event:`mousedown-only`,toggle:!1,touchOpenDelay:Dt?0:100,reason:ia}),hn=po(sn,{enabled:!ze&&!Et,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:Et?!0:void 0,outsidePress(e){let t=Qn(e);return!Z(Ct,t)&&!Z(Me.current,t)&&!Z(Ae.current,t)&&!Z(Tt,t)}}),gn=ms(sn,{enabled:!ze,id:se,listRef:Se,activeIndex:yt,selectedIndex:bt,virtual:!0,loopFocus:D,allowEscape:D&&!qe,focusItemOnOpen:_e||u===`none`&&!qe?!1:`auto`,focusItemOnHover:E,resetOnPointerLeave:!T,orientation:v?`horizontal`:void 0,rtl:U===`rtl`,disabledIndices:at,grid:v?Dc:void 0,onNavigate(e,t){(t||tt||Et&&e===null)&&Jt!==`ending`&&It({activeIndex:e,type:Oc(t),event:t?.nativeEvent})}}),_n=Y.useMemo(()=>je(gn.reference,{onKeyDown(e){v&&J.state.activeIndex==null&&(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&e.preventBaseUIHandler()}},hn.reference,mn.reference,pn.reference),[gn.reference,hn.reference,mn.reference,pn.reference,v,J]),vn=Y.useMemo(()=>je(So,hn.floating),[hn.floating]),yn=Y.useMemo(()=>je(gn.floating,pn.floating),[gn.floating,pn.floating]),bn=Y.useMemo(()=>{let e=gn.item;return{props:e?{...e,onFocus:void 0}:it,id:se,selectionMode:u,disabled:ze,readOnly:h,isItemEqualToValue:A}},[gn.item,se,u,ze,h,A]);J.useContextCallback(`setOpen`,Vt),J.useContextCallback(`setInputValue`,Lt),J.useContextCallback(`setSelectedValue`,Ht),J.useContextCallback(`setIndices`,It),J.useContextCallback(`handleSelection`,Ut),J.useContextCallback(`forceMount`,Pt),J.useContextCallback(`requestSubmit`,Wt),J.useContextCallback(`onOpenChangeComplete`,n),rn(()=>{J.update({inline:M,popupProps:vn,listProps:yn,inputProps:_n,triggerProps:Mt,itemRoot:bn})});let xn={id:se,selectedValue:Je,open:tt,mounted:qt,transitionStatus:Jt,items:fe,inline:M,popupProps:vn,listProps:yn,inputProps:_n,triggerProps:Mt,itemRoot:bn,openMethod:jt,selectionMode:u,name:Be,form:p,disabled:ze,readOnly:h,required:g,grid:v,virtualized:j,openOnInputClick:C,itemToStringLabel:me,modal:P,autoHighlight:qe,isItemEqualToValue:A,submitOnItemClick:ee,hasInputValue:We};q(()=>{J.update({...xn,inputOwnsFormValue:u===`none`&&(M||!J.state.inputInsidePopup)})},[J,...Object.values(xn)]);let Sn=Ze(_,oe.inputRef),wn=Y.useMemo(()=>({query:ot,hasItems:W,filteredItems:pt,flatFilteredValues:mt}),[ot,W,pt,mt]),Tn=Y.useMemo(()=>Array.isArray(ht)?``:tl(ht,k),[ht,k]),En=Ve&&Array.isArray(Je)&&Je.length>0,Dn=Ve||u===`none`&&Ot?void 0:Be,On=Y.useMemo(()=>!Ve||!Array.isArray(Je)||!Be?null:Je.map(e=>{let t=tl(e,k);return(0,X.jsx)(`input`,{type:`hidden`,form:p,name:Be,value:t,disabled:ze},t)}),[Ve,Je,p,Be,k,ze]),kn=(0,X.jsxs)(Y.Fragment,{children:[e.children,(0,X.jsx)(`input`,{...oe.getValidationProps(ze,{onFocus(){Dt?Ct?.focus():(Te.current||Ct)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||ze||h)return;let t=e.currentTarget.value,n=t.toLowerCase(),r=Q(Ji,e.nativeEvent),i=()=>Le.current.findIndex(e=>tl(e,k).toLowerCase()===n||ge(e).toLowerCase()===n);function a(){if(Ve)return;if(u===`none`){Lt(t,r);return}let e=i();e===-1&&(e=Le.current.findIndex((e,t)=>{let r=Ce.current[t];return r!=null&&r.toLowerCase()===n}));let a=e===-1?void 0:Le.current[e];a!=null&&Ht?.(a,r)}He&&(Pt(),ue&&i()===-1&&J.set(`forceMounted`,!0)),queueMicrotask(a)}}),id:se&&Dn==null?`${se}-hidden-input`:void 0,form:p,name:Dn,autoComplete:L,disabled:ze,required:g&&!En,readOnly:h,value:Tn,ref:Sn,style:Dn?ln:cn,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),On]});return(0,X.jsx)(kc.Provider,{value:J,children:(0,X.jsx)(Ac.Provider,{value:sn,children:(0,X.jsx)(Mc.Provider,{value:W,children:(0,X.jsx)(jc.Provider,{value:wn,children:(0,X.jsx)(Nc.Provider,{value:K,children:kn})})})})})}function Il(e){let{openOnInputClick:t=!1,value:n,defaultValue:r,onValueChange:i,mode:a=`list`,itemToStringValue:o,...s}=e,c=(a===`inline`||a===`both`)&&!e.readOnly,l=a===`inline`||a===`none`,u=n!==void 0,[d,f]=Y.useState(r??``),[p,m]=Y.useState(``);Y.useEffect(()=>{(u||!c)&&m(``)},[n,u,c]);let h;h=c&&p!==``?p:u?n??``:d;let g=wl({locale:s.locale}),_=String((u?n:d)??``).trim(),v=l||s.filter===null?null:s.filter??g.contains;function y(e,t){m(``),u||f(e),i?.(e,t)}function b(t,n){e.onItemHighlighted?.(t,n),n.reason!==`pointer`&&m(c&&t!=null?el(t,o):``)}return(0,X.jsx)(Fl,{...s,itemToStringLabel:o,openOnInputClick:t,selectionMode:`none`,fillInputOnItemPress:!0,filter:v,filterQuery:a===`both`?_:void 0,autoComplete:a,inputValue:h,defaultInputValue:r,onInputValueChange:y,onItemHighlighted:b})}var Ll=`data-popup-side`,Rl=`data-list-empty`,zl={...xr,...cl,popupSide:e=>e?{[Ll]:e}:null,listEmpty:e=>e?{[Rl]:``}:null};function Bl(e,t,n){let{setFocused:r,focusOwnerRef:i}=dl(),a=G(t=>{(t?!e:i.current===a)&&(i.current=t&&a,n?.(t),r(t))});return q(()=>{let e=t.current;return e?.getRootNode()?.activeElement===e&&a(!0),()=>a(!1)},[e,t,a]),a}var Vl=5;function Hl(e,t){let n=Ul(t);return e.clientX>=n.left-Vl&&e.clientX<=n.right+Vl&&e.clientY>=n.top-Vl&&e.clientY<=n.bottom+Vl}function Ul(e){let t=e.getBoundingClientRect(),n=Le(e);if(Wn)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function Wl(e,t){return e??t}function Gl(e){let t=e.useState(`mounted`),n=e.useState(`popupSide`),r=e.useState(`positionerElement`);return t&&r?n:null}function Kl(){return Ic().filteredItems.length===0}function ql(e){return e===`rtl`?[`ArrowRight`,`ArrowLeft`]:[`ArrowLeft`,`ArrowRight`]}function Jl(e,t,n){let r=e.context.listRef.current[t];r&&(e.context.selectionEventRef.current=n,r.click(),e.context.selectionEventRef.current=null)}var Yl=Y.forwardRef(function(e,t){let{render:n,className:r,nativeButton:i=!0,disabled:a=!1,id:o,style:s,...c}=e,{state:l,disabled:u,setTouched:d,validationMode:f,validation:p}=dl(),{labelId:m}=_l(),h=Pc(),g=h.useState(`selectionMode`),_=h.useState(`disabled`),v=h.useState(`readOnly`),y=h.useState(`required`),b=h.useState(`positionerElement`),x=h.useState(`listElement`),S=h.useState(`popupId`),C=h.useState(`triggerProps`),w=h.useState(`inputInsidePopup`),T=h.useState(`id`),E=h.useState(`labelId`),D=h.useState(`open`),O=h.useState(`selectedValue`),k=h.useState(`activeIndex`),A=h.useState(`selectedIndex`),j=h.useState(`hasSelectedValue`),M=Fc(),N=Lc(),P=kn(),F=u||_||a,I=Kl(),L=Gl(h),R=Y.useRef(null),ee=Bl(F,R);vl({id:w?o:void 0});let te=w?o??T:o,z=Wl(m,E),B;D&&w?B=S??yl(T):D&&(B=x?.id);let ne=Y.useRef(``);function re(e){ne.current=e.pointerType}let{reference:V}=hs(M,{enabled:!D&&!v&&!_&&g===`single`,listRef:h.context.labelsRef,activeIndex:k,selectedIndex:A,onMatch(e){let t=h.context.valuesRef.current[e];t!==void 0&&h.context.setSelectedValue(t,Q(Ji))}}),{reference:H}=lo(M,{enabled:!_,event:`mousedown`}),{buttonRef:ie,getButtonProps:ae}=ct({native:i,disabled:F}),oe={...l,readOnly:v,open:D,disabled:F,popupSide:L,listEmpty:I,placeholder:g!==`none`&&!j},U=G(e=>{h.set(`triggerElement`,e)});return K(`button`,e,{ref:[t,ie,R,U],state:oe,props:[C,H,V,{id:te,tabIndex:w?0:-1,role:w?`combobox`:void 0,"aria-expanded":D,"aria-haspopup":w?`dialog`:`listbox`,"aria-controls":B,"aria-required":w&&y||void 0,"aria-readonly":w&&v||void 0,"aria-labelledby":z,onPointerDown:re,onPointerEnter:re,onFocus(){ee(!0),!F&&P.start(0,h.context.forceMount)},onBlur(e){if(!Z(b,e.relatedTarget)&&(d(!0),ee(!1),f===`onBlur`)){let e=g===`none`?N:O;p.commit(e)}},onMouseDown(e){if(F||(w||M.set(`domReferenceElement`,e.currentTarget),h.context.forceMount(),ne.current!==`touch`&&(h.context.inputRef.current?.focus(),w||e.preventDefault()),D))return;let t=Nt(e.currentTarget);function n(e){let t=h.state.triggerElement;if(!t)return;let n=Qn(e),r=h.state.positionerElement,i=h.state.listElement;Z(t,n)||Z(r,n)||Z(i,n)||Hl(e,t)||h.context.setOpen(!1,Q(ua,e))}w&&t.addEventListener(`mouseup`,n,{once:!0})},onKeyDown(e){(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(Nr(e),h.context.setOpen(!0,Q(sa,e.nativeEvent)),h.context.inputRef.current?.focus())}},p.getValidationProps(F,c),ae],stateAttributesMapping:zl})}),Xl=Y.createContext(void 0);function Zl(){return Y.useContext(Xl)}var Ql=Y.createContext(void 0);function $l(e){let t=Y.useContext(Ql);if(t===void 0&&!e)throw Error(Ge(21));return t}var eu=Y.forwardRef(function(e,t){let n=Pc(),{buttonRef:r,getButtonProps:i}=ct({native:!1}),a=Ze(t,r);function o(e){n.context.setOpen(!1,Q(ea,e.nativeEvent,e.currentTarget))}let s=i({onClick:o});return(0,X.jsx)(`span`,{ref:a,...s,"aria-label":`Dismiss`,tabIndex:void 0,style:ln})}),tu=Y.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,id:a,style:o,...s}=e,{state:c,disabled:l,setTouched:u,validationMode:d,validation:f}=dl(),{labelId:p}=_l(),m=Zl(),h=!!$l(!0),g=Pc(),_=Lc(),v=Nl(),y=g.useState(`required`),b=g.useState(`disabled`),x=g.useState(`readOnly`),S=g.useState(`name`),C=g.useState(`form`),w=g.useState(`selectionMode`),T=g.useState(`autoHighlight`),E=g.useState(`inputProps`),D=g.useState(`triggerProps`),O=g.useState(`open`),k=g.useState(`mounted`),A=g.useState(`selectedValue`),j=g.useState(`id`),M=g.useState(`inline`),N=g.useState(`modal`),P=!!T,F=Gl(g),I=l||b||i,L=Kl(),R=Bl(I,g.context.inputRef),ee=h||M,te=!ee||N,z=hl(a??(ee?void 0:j)),B=h?ol:c,[ne,re]=Y.useState(null),V=Y.useRef(!1),H=Y.useRef(null);q(()=>{O||(H.current=null)},[O]);let ie=w===`none`&&!h,ae=G(e=>{let t=h||g.state.inline;t&&!g.state.hasInputValue&&g.context.setInputValue(``,Q(Ji)),g.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:ie})}),oe=h?s:f.getValidationProps(I,s);function U(e){g.context.setIndices({activeIndex:null,selectedIndex:null,type:Oc(e),event:e})}let se={...B,open:O,disabled:I,readOnly:x,popupSide:F,listEmpty:L};function ce(e){if(!m)return;let t,n=m.chipsRef.current.length,[r]=ql(v);return e.key===r&&(e.currentTarget.selectionStart??0)===0&&A.length>0&&(e.preventDefault(),t=n>0?n-1:void 0),t}let le=K(`input`,e,{state:se,ref:[t,g.context.inputRef,ae],props:[E,D,{value:ne??_,"aria-readonly":x||void 0,"aria-required":y||void 0,"aria-labelledby":p,disabled:I,readOnly:x,required:w===`none`?y:void 0,form:C,...ie&&S&&{name:S},id:z,onFocus(){if(R(!0),!M)return;let e=H.current;H.current=null,e!=null&&Object.hasOwn(g.context.valuesRef.current,e)&&g.context.setIndices({activeIndex:e})},onBlur(){u(!0),R(!1);let e=g.state.activeIndex;if(M&&e!==null&&T!==`always`&&(H.current=e,g.context.setIndices({activeIndex:null})),d===`onBlur`){let e=w===`none`?_:A;f.commit(e)}},onCompositionStart(e){Rn||(V.current=!0,re(e.currentTarget.value))},onCompositionEnd(e){V.current=!1;let t=e.currentTarget.value;re(null),g.context.setInputValue(t,Q(na,e.nativeEvent))},onChange(e){let t=e.nativeEvent,n=t.inputType,r=!n||n===`insertReplacementText`,i=V.current||!r;function a(e){!x&&!I&&e&&i&&(g.context.setOpen(!0,Q(na,t)),P||U(t))}if(V.current){let n=e.currentTarget.value;re(n),n===``&&!g.state.openOnInputClick&&!g.state.inputInsidePopup&&g.context.setOpen(!1,Q(ra,t));let r=n.trim(),i=P&&r!==``;a(r),O&&g.state.activeIndex!==null&&!i&&U(t);return}let o=Q(na,t);if(g.context.setInputValue(e.currentTarget.value,o),o.isCanceled)return;let s=e.currentTarget.value===``,c=Q(ra,t);s&&!g.state.inputInsidePopup&&(w===`single`&&g.context.setSelectedValue(null,c),g.state.openOnInputClick||g.context.setOpen(!1,c)),a(e.currentTarget.value.trim()),O&&g.state.activeIndex!==null&&!P&&U(t)},onKeyDown(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;if(I||x){x&&e.key===`Enter`&&O&&g.state.activeIndex!==null&&Nr(e);return}let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=v===`rtl`;if(e.key===`Home`){Nr(e);let n=Hn&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){Nr(e);let i=Hn&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!k&&e.key===`Escape`){let t=w===`multiple`&&Array.isArray(A)?A.length===0:A===null,n=Q(oa,e.nativeEvent),r=w===`multiple`?[]:null;g.context.setInputValue(``,n),g.context.setSelectedValue(r,n),t||g.state.inline||n.isPropagationAllowed||e.stopPropagation();return}if(m&&e.key===`Backspace`&&t.value===``&&Array.isArray(A)&&A.length>0){let t=m.chipsRef.current.length,n=t>0?t-1:A.length-1,r=A.filter((e,t)=>t!==n);U(e.nativeEvent),g.context.setSelectedValue(r,Q(Ji,e.nativeEvent));return}let i=ce(e);if(i!==void 0&&m?.chipsRef.current[i]?.focus(),e.which!==229&&e.key===`Enter`&&O){let t=g.state.activeIndex,n=e.nativeEvent;if(t===null){if(M)return;g.context.setOpen(!1,Q(Ji,n));return}Nr(e),Jl(g,t,n)}}},oe],stateAttributesMapping:zl}),ue=h?(0,X.jsx)(ul.Provider,{value:ll,children:le}):le;return(0,X.jsxs)(Y.Fragment,{children:[O&&te&&(0,X.jsx)(eu,{ref:g.context.startDismissRef}),ue]})}),nu={...lr,...br},ru=Y.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:o=!1,style:s,...c}=e,{disabled:l}=dl(),u=Pc(),d=u.useState(`selectionMode`),f=u.useState(`disabled`),p=u.useState(`readOnly`),m=u.useState(`open`),h=u.useState(`selectedValue`),g=u.useState(`hasSelectionChips`),_=Lc(),v=!1;v=d===`none`?_!==``:d===`single`?h!=null:g;let y=l||f||i,{buttonRef:b,getButtonProps:x}=ct({native:a,disabled:y}),{mounted:S,transitionStatus:C,setMounted:w}=ho(v),T={disabled:y,visible:v,open:m,transitionStatus:C};bo({open:v,ref:u.context.clearRef,onComplete(){v||w(!1)}});let E=K(`button`,e,{state:T,ref:[t,b,u.context.clearRef],props:[{tabIndex:-1,children:`x`,onMouseDown(e){e.preventDefault()},onClick(e){if(y||p)return;let t=Oc(e);u.context.setInputValue(``,Q(ta,e.nativeEvent)),d===`none`?u.context.setIndices({activeIndex:null,type:t,event:e.nativeEvent}):(u.context.setSelectedValue(Array.isArray(h)?[]:null,Q(ta,e.nativeEvent)),u.context.setIndices({activeIndex:null,selectedIndex:null,type:t,event:e.nativeEvent})),u.context.inputRef.current?.focus()}},c,x],stateAttributesMapping:nu});return o||S?E:null}),iu=Y.createContext(null);function au(){return Y.useContext(iu)}function ou(e){let{children:t}=e,{filteredItems:n}=Ic(),r=au(),i=r?r.items:n;return(0,X.jsx)(Y.Fragment,{children:i.map(t)})}var su=Y.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function cu(){return Y.useContext(su)}function lu(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=G(i),[,o]=Y.useState(0),s=Ne(du).current,c=Ne(uu).current,l=Y.useRef(0),u=Y.useRef(!0),d=Y.useRef(null),f=Y.useRef(null),p=G(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=G((e,t)=>{c.set(e,t),p()}),h=G(e=>{c.delete(e),p()}),g=G(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!mu(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&hu(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=pu(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=G(()=>{let[e,t]=fu(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});q(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),q(()=>{u.current&&v()}),q(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=G(e=>(s.add(e),()=>{s.delete(e)})),b=Y.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,X.jsx)(su.Provider,{value:b,children:t})}function uu(){return new Map}function du(){return new Set}function fu(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>hu(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function pu(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function mu(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function hu(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var gu=Y.forwardRef(function(e,t){var n;let{render:r,className:i,style:a,children:o,...s}=e,c=Pc(),l=Fc(),u=!!$l(!0),{filteredItems:d,hasItems:f}=Ic(),p=c.useState(`selectionMode`),m=c.useState(`grid`),h=c.useState(`readOnly`),g=c.useState(`listProps`),_=c.useState(`virtualized`),v=c.useState(`forceMounted`),y=p===`multiple`,b=d.length===0,x=G(e=>{c.set(`positionerElement`,e)}),S=G(e=>{c.set(`listElement`,e)}),C=Y.useMemo(()=>typeof o==`function`?n||=(0,X.jsx)(ou,{children:o}):o,[o]),w={empty:b},T=l.useState(`floatingId`),E=K(`div`,e,{state:w,ref:[t,S,u?null:x],props:[g,{children:C,tabIndex:-1,id:T,role:m?`grid`:`listbox`,"aria-multiselectable":y?`true`:void 0,"aria-readonly":!m&&h?!0:void 0,onKeyDown(e){if(!(c.state.disabled||c.state.readOnly)&&e.key===`Enter`){let t=c.state.activeIndex;if(t==null)return;Nr(e),Jl(c,t,e.nativeEvent)}}},s]});if(_)return E;let D=f&&!v?void 0:c.context.labelsRef;return(0,X.jsx)(lu,{elementsRef:c.context.listRef,labelsRef:D,children:E})}),_u=Y.createContext(void 0);function vu(){let e=Y.useContext(_u);if(e===void 0)throw Error(Ge(20));return e}var yu=Y.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Pc(),a=i.useState(`mounted`),o=i.useState(`forceMounted`);return a||n||o?(0,X.jsx)(_u.Provider,{value:n,children:(0,X.jsx)(Ua,{ref:t,...r})}):null});function bu(e){return $e(19)?e:e?`true`:void 0}function xu(e){let{nodeId:t,externalTree:n,rootContext:r}=e,i=r.useState(`referenceElement`),a=r.useState(`floatingElement`),o=r.useState(`domReferenceElement`),s=r.useState(`open`),c=r.useState(`floatingId`),[l,u]=Y.useState(null),d=Y.useRef(null),f=Ya(n),p=Y.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),m=xc({...e,elements:{...p,...l&&{reference:l}}}),h=Y.useCallback(e=>{let t=W(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=Y.useMemo(()=>({...m.refs,setPositionReference:h,domReference:d}),[m.refs,h]),_=Y.useMemo(()=>({...m.elements,domReference:o}),[m.elements,o]),v=Y.useMemo(()=>({...m,dataRef:r.context.dataRef,open:s,onOpenChange:r.setOpen,events:r.context.events,floatingId:c,refs:g,elements:_,nodeId:t,rootStore:r}),[m,g,_,t,r,s,c]);return q(()=>{o&&(d.current=o)},[o]),q(()=>{r.context.dataRef.current.floatingContext=v;let e=f?.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),Y.useMemo(()=>({...m,context:v,refs:g,elements:_,rootStore:r}),[m,g,_,v,r])}var Su=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Kr(e,t)||{};if(l==null)return{};let d=ui(u),f={x:n,y:r},p=Qr(i),m=Xr(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=s.floating[y]||a.floating[m],C=b/2-x/2,w=S/2-h[m]/2-1,T=Math.min(d[_],w),E=Math.min(d[v],w),D=T,O=S-h[m]-E,k=S/2-h[m]/2+C,A=Gr(D,k,O),j=!c.arrow&&Jr(i)!=null&&k!==A&&a.reference[m]/2-(k<D?T:E)-h[m]/2<0,M=j?k<D?k-D:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),Cu=(e,t)=>{let{name:n,fn:r}=Su(e);return{name:n,fn:r,options:[e,t]}},wu={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},Tu={sideX:`left`,sideY:`top`},Eu=`--available-width`,Du=`--available-height`,Ou=`--anchor-width`,ku=`--anchor-height`,Au=`--transform-origin`,ju=Eu,Mu=Du;function Nu(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function Pu(e,t,n){let{rects:r,placement:i}=e;return{side:Nu(t,qr(i),n),align:Jr(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Fu(e){return Iu(e,xu)}function Iu(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shift:v,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,C=_.side||`flip`,w=_.align||`flip`,T=_.fallbackAxisSide||`end`,E=v?.crossAxis??!1,D=v?.rootBoundary,O=typeof n==`function`?n:void 0,k=G(O),A=O?k:n,j=an(n),M=an(g),N=Nl()===`rtl`,[P,F]=Y.useState(null);!g&&P!==null&&F(null);let I=x===`placement`,L=P?qr(P):null,R=P&&I?Jr(P)||`center`:null,ee=L||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[i],te=R||o,z=te===`center`?ee:`${ee}-${te}`,B=l;typeof B==`number`?B={top:B,right:B,bottom:B,left:B}:B&&={top:B.top||0,right:B.right||0,bottom:B.bottom||0,left:B.left||0};let ne=+(i===`bottom`),re=+(i===`top`),V=+(i===`right`),H=+(i===`left`),ie={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:B},ae=Y.useRef(null),oe=an(a),U=an(s),se=typeof a==`function`?0:a,ce=typeof s==`function`?0:s,le=[];p&&le.push(p),le.push(Sc(e=>{let t=Pu(e,i,N),n=typeof oe.current==`function`?oe.current(t):oe.current,r=typeof U.current==`function`?U.current(t):U.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[se,ce,N,i]));let ue=w===`none`&&C!==`shift`,de=!ue&&(u||E||C===`shift`),fe=C===`none`?null:Tc({...ie,padding:{top:B.top+1+ne,right:B.right+1+H,bottom:B.bottom+1+re,left:B.left+1+V},mainAxis:!E&&C===`flip`,crossAxis:w===`flip`&&`alignment`,fallbackAxisSideDirection:T}),pe=ue?null:Cc({...ie,rootBoundary:D,mainAxis:w!==`none`,crossAxis:de,limiter:u||E?void 0:wc(e=>{if(!ae.current)return{};let{width:t,height:n}=ae.current.getBoundingClientRect(),r=Zr(qr(e.placement)),i=r===`y`?t:n,a=r===`y`?B.left+B.right:B.top+B.bottom;return{offset:i/2+a/2}})},[ie,u,E,D,B,w]);C===`shift`||w===`shift`||te===`center`?le.push(pe,fe):le.push(fe,pe),le.push(Ec({...ie,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(ju,`${t}px`),i.setProperty(Mu,`${n}px`);let a=Le(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(Ou,`${u}px`),i.setProperty(ku,`${d}px`)}}),Cu(e=>({element:ae.current||Nt(e.elements.floating).createElement(`div`),padding:ae.current?d:0}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=qr(r),u=Jr(r),d=Zr(l)===`y`,f=ae.current,p=typeof a==`function`?a(Pu(e,i,N)):a,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return de&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(Au,d?`${m} ${h}`:`${h} ${m}`),{}}},wu,b),q(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let me=Y.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:he,elements:ge,x:_e,y:ve,middlewareData:ye,update:be,placement:xe,context:Se,isPositioned:Ce,floatingStyles:we}=t({rootContext:h,open:m?g:void 0,placement:z,middleware:le,strategy:r,whileElementsMounted:m?void 0:(...e)=>lc(...e,me),nodeId:y,externalTree:S}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||Tu,De=Ce?r:`fixed`,Oe=Y.useMemo(()=>{let e;return e=Ce?b?{position:De,[Te]:_e,[Ee]:ve}:{...we,position:De}:{position:De,top:0,left:0},e[ju]=`100vw`,e[Mu]=`100vh`,Ce||(e.opacity=0),e},[b,De,Te,_e,Ee,ve,we,Ce]),ke=Y.useRef(null);q(()=>{if(!g)return;let e=j.current,t=typeof e==`function`?e():e,n=(Lu(t)?t.current:t)||null;n!==ke.current&&(he.setPositionReference(n),ke.current=n)},[g,he,A,j]),Y.useEffect(()=>{if(!g)return;let e=j.current;typeof e!=`function`&&Lu(e)&&e.current!==ke.current&&(he.setPositionReference(e.current),ke.current=e.current)},[g,he,A,j]),Y.useEffect(()=>{if(m&&g&&ge.reference&&ge.floating)return lc(ge.reference,ge.floating,be,me)},[m,g,ge,be,me]);let Ae=qr(xe),je=Nu(i,Ae,N),Me=Jr(xe)||`center`,Ne=!!ye.hide?.referenceHidden;q(()=>{x&&g&&Ce&&(Ae!==ee||I&&Me!==te)&&F(xe)},[x,I,g,Ce,xe,Ae,Me,ee,te]);let Pe=Y.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Fe=ye.arrow?.centerOffset!==0;return Y.useMemo(()=>({positionerStyles:Oe,arrowStyles:Pe,arrowRef:ae,arrowUncentered:Fe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:he,context:Se,isPositioned:Ce,update:be}),[Oe,Pe,ae,Fe,je,Me,Ae,Ne,he,Se,Ce,be])}function Lu(e){return e!=null&&`current`in e}var Ru=Y.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,X.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function zu(e){return e===`starting`?Fa:it}function Bu(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),K(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},zu(r),i],stateAttributesMapping:Sr})}var Vu={},Hu={},Uu=``;function Wu(e,t){return Ie(e)?e:t}function Gu(e,t,n){return/hidden|clip/.test(e.getComputedStyle(Wu(t,n)).overflowY)}function Ku(e){if(typeof document>`u`)return!1;let t=Nt(e);return Le(t).innerWidth-t.documentElement.clientWidth>0}function qu(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Nt(e),n=t.documentElement,r=t.body,i=Wu(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Ju(e){let t=Nt(e),n=t.documentElement,r=t.body,i=Wu(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Yu(e){let t=Nt(e),n=t.documentElement,r=t.body,i=Le(n),a=0,o=0,s=!1,c=qn.create();if(Vn&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Vu={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Uu=n.style.scrollBehavior,Hu={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=Wu(n,r);s=qu(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,Vu),Object.assign(r.style,Hu),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Uu)}function d(){u(),c.request(l)}l();let f=wn(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Xu=new class{lockCount=0;restore=null;timeoutLock=On.create();timeoutUnlock=On.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Nt(e),n=t.documentElement,r=t.body,i=Le(n);if(Gu(i,n,r)){let t=new i.MutationObserver(()=>{Gu(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=In||!Ku(e);this.restore=a?Ju(e):Yu(e)}};function Zu(e=!0,t=null){q(()=>{if(e)return Xu.acquire(t)},[e,t])}var Qu=20;function $u(e,t,n,r){let[i,a]=Y.useState(!1);q(()=>{if(!e||!t||n==null){a(!1);return}let r=Nt(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Qu)},[e,t,n]),Zu(e&&(!t||i),r)}var ed=Y.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a,side:o,align:s,sideOffset:c,alignOffset:l,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f,sticky:p,disableAnchorTracking:m=!1,collisionAvoidance:h=Ia,style:g,..._}=e,v=Pc(),y=Fc(),b=vu(),x=v.useState(`modal`),S=v.useState(`open`),C=v.useState(`mounted`),w=v.useState(`openMethod`),T=v.useState(`positionerElement`),E=v.useState(`triggerElement`),D=v.useState(`inputElement`),O=v.useState(`inputGroupElement`),k=v.useState(`inputInsidePopup`),A=v.useState(`transitionStatus`),j=Kl(),M=Fu({anchor:i??(k?E:O??D),floatingRootContext:y,positionMethod:a,mounted:C,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m,keepMounted:b,collisionAvoidance:h,lazyFlip:!0});$u(S&&x,w===`touch`,T,E);let N={open:S,side:M.side,align:M.align,anchorHidden:M.anchorHidden,empty:j};q(()=>{v.set(`popupSide`,M.side)},[v,M.side]);let P=G(e=>{v.set(`positionerElement`,e)}),F=Bu(e,N,{styles:M.positionerStyles,transitionStatus:A,props:_,refs:[t,P],hidden:!C,inert:!S});return(0,X.jsxs)(Ql.Provider,{value:M,children:[C&&x&&(0,X.jsx)(Ru,{inert:bu(!S),cutout:O??D??E}),F]})}),td={...Sr,...lr},nd=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=Pc(),l=$l(),u=Fc(),d=c.useState(`mounted`),f=c.useState(`open`),p=c.useState(`openMethod`),m=c.useState(`popupProps`),h=c.useState(`transitionStatus`),g=c.useState(`inputInsidePopup`),_=c.useState(`inputElement`),v=c.useState(`modal`),y=c.useState(`id`),b=Kl(),x=s.id??(g?yl(y):void 0);q(()=>(c.set(`popupId`,c.context.popupRef.current?.id||x),()=>{c.set(`popupId`,void 0)}),[c,x]),bo({open:f,ref:c.context.popupRef,onComplete(){f&&c.context.onOpenChangeComplete(!0)}});let S={open:f,side:l.side,align:l.align,anchorHidden:l.anchorHidden,transitionStatus:h,empty:b},C=K(`div`,e,{state:S,ref:[t,c.context.popupRef],props:[m,{id:x,role:g?`dialog`:`presentation`,onFocus(e){let t=Qn(e.nativeEvent);p!==`touch`&&(Z(c.state.listElement,t)||t===e.currentTarget)&&c.context.inputRef.current?.focus()}},zu(h),s],stateAttributesMapping:td}),w=a===void 0?g?e=>e===`touch`?c.context.popupRef.current:_:!1:a,T;T=o??(g?void 0:!1);let E=!g||v;return(0,X.jsx)(co,{context:u,disabled:!d,modal:E,openInteractionType:p,initialFocus:w,returnFocus:T,getInsideElements:()=>[c.context.startDismissRef.current,c.context.endDismissRef.current],children:(0,X.jsxs)(Y.Fragment,{children:[C,E&&(0,X.jsx)(eu,{ref:c.context.endDismissRef})]})})});function rd(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=cu(),u=Y.useRef(-1),[d,f]=Y.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=Y.useRef(null),h=Y.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return q(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var id=Y.createContext(void 0);function ad(){let e=Y.useContext(id);if(!e)throw Error(Ge(19));return e}var od=Y.createContext(!1);function sd(){return Y.useContext(od)}function cd(e){let{componentProps:t,forwardedRef:n,virtualized:r,indexFromFilter:i}=e,{render:a,className:o,style:s,value:c=null,index:l,disabled:u=!1,nativeButton:d=!1,...f}=t,p=Y.useRef(null),m=rd({guess:!0,index:l,textRef:p}),h=Pc(),g=sd(),_=Rc(),{props:v,id:y,selectionMode:b,disabled:x,readOnly:S,isItemEqualToValue:C}=h.useState(`itemRoot`),w=x||u,T=b!==`none`,E=l??i??m.index,D=E!==-1,O=h.useState(`isActive`,E),k=h.useState(`isSelected`,c),A=Y.useRef(null),j=y!=null&&D?`${y}-${E}`:void 0,M=k&&T;q(()=>{if(!D||!r&&l==null)return;let e=h.context.listRef.current;return e[E]=A.current,()=>{delete e[E]}},[D,r,E,l,h]),q(()=>{if(!D||_)return;let e=h.context.valuesRef.current;return e[E]=c,()=>{delete e[E]}},[D,_,E,c,h]),q(()=>{if(!D||_)return;let e=h.state.selectedValue,t=h.state.selectedIndex;h.state.selectionMode===`multiple`&&Array.isArray(e)?t=qc(E,c,h.context.valuesRef.current,e,C,t):Vc(c,e,C)&&(t=E),h.set(`selectedIndex`,t)},[D,_,h,E,c,C]);let{getButtonProps:N,buttonRef:P}=ct({disabled:w,focusableWhenDisabled:!0,native:d,composite:!0}),F={disabled:w,selected:M,highlighted:O};function I(e){function t(){h.context.handleSelection(e,c)}h.state.submitOnItemClick?(tn.flushSync(t),h.context.requestSubmit()):t()}let L={id:j,role:g?`gridcell`:`option`,"aria-selected":T?M:void 0,tabIndex:void 0,onPointerDownCapture(e){e.isPrimary&&(h.context.pointerDownItemRef.current=e.currentTarget),e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){w||S||I(e.nativeEvent)},onMouseUp(e){let t=h.context.pointerDownItemRef.current===e.currentTarget;h.context.pointerDownItemRef.current=null,!(w||S||e.button!==0||t||!O)&&I(e.nativeEvent)}},R=K(`div`,t,{ref:[P,n,m.ref,A],state:F,props:[v,L,f,N]}),ee=Y.useMemo(()=>({selected:M,textRef:p}),[M,p]);return(0,X.jsx)(id.Provider,{value:ee,children:R})}function ld(e){let{componentProps:t,forwardedRef:n}=e,r=Pc().useState(`isItemEqualToValue`),{flatFilteredValues:i}=Ic(),a=Wc(i,t.value??null,r);return(0,X.jsx)(cd,{componentProps:t,forwardedRef:n,virtualized:!0,indexFromFilter:a})}var ud=Y.memo(Y.forwardRef(function(e,t){let n=Pc().useState(`virtualized`);return n&&e.index==null?(0,X.jsx)(ld,{componentProps:e,forwardedRef:t}):(0,X.jsx)(cd,{componentProps:e,forwardedRef:t,virtualized:n,indexFromFilter:void 0})}));function dd(e){return K(e.defaultTagName??`div`,e,e)}var fd=Y.createContext(void 0);function pd(){let e=Y.useContext(fd);if(e===void 0)throw Error(Ge(13));return e}var md={imageLoadingStatus:()=>null},hd=Y.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,[o,s]=Y.useState(`idle`),c={imageLoadingStatus:o},l=Y.useMemo(()=>({imageLoadingStatus:o,setImageLoadingStatus:s}),[o,s]),u=K(`span`,e,{state:c,ref:t,props:a,stateAttributesMapping:md});return(0,X.jsx)(fd.Provider,{value:l,children:u})});function gd(e,{referrerPolicy:t,crossOrigin:n,sizes:r,srcSet:i},a){let o=Y.useState(`idle`),s=o[1];return q(()=>{if(!a)return et;if(!e&&!i)return s(`error`),et;let o=!0,c=new window.Image,l=e=>()=>{o&&s(e)};return s(`loading`),c.onload=l(`loaded`),c.onerror=l(`error`),t&&(c.referrerPolicy=t),c.crossOrigin=n??null,r&&(c.sizes=r),i&&(c.srcset=i),e&&(c.src=e),c.complete&&s(c.naturalWidth>0?`loaded`:`error`),()=>{o=!1}},[a,e,i,r,n,t,s]),o}var _d={...md,...lr},vd=Y.forwardRef(function(e,t){let{className:n,render:r,onLoadingStatusChange:i,keepMounted:a=!1,style:o,sizes:s,srcSet:c,src:l,...u}=e,{setImageLoadingStatus:d}=pd(),[f,p]=gd(l,e,!a),m=f===`loaded`,{mounted:h,transitionStatus:g,setMounted:_}=ho(m),v=Y.useRef(null),y=Y.useRef(!0);q(()=>{if(!a)return;let e=y.current;y.current=!1;let t=v.current;if(!t)return;if(!t.complete){p(`loading`);return}let n=t.naturalWidth>0?`loaded`:`error`;p(n),n===`loaded`&&e&&_(!0)},[a,l,c,s,u.crossOrigin,u.referrerPolicy,r,p,_]);let b=a?{"data-loading":f===`loading`?``:void 0,"data-error":f===`error`?``:void 0,"aria-hidden":f!==`loaded`||void 0,onLoad(){p(`loaded`)},onError(){p(`error`)}}:void 0,x=G(e=>{i?.(e),d(e)});q(()=>{f!==`idle`&&x(f)},[f,x]),q(()=>()=>d(`idle`),[d]),bo({enabled:!m,open:m,ref:v,onComplete(){m||_(!1)}});let S={imageLoadingStatus:f,transitionStatus:a&&g===`ending`?void 0:g},C=a||h,w={};s!==void 0&&(w.sizes=s),c!==void 0&&(w.srcSet=c),l!==void 0&&(w.src=l);let T=K(`img`,e,{state:S,ref:[t,v],props:[b,u,w],stateAttributesMapping:_d,enabled:C});return C?T:null}),yd=Y.forwardRef(function(e,t){let{className:n,render:r,delay:i=0,style:a,...o}=e,{imageLoadingStatus:s}=pd(),[c,l]=Y.useState(i===0),u=kn();return Y.useEffect(()=>(i>0?u.start(i,()=>l(!0)):l(!0),u.clear),[u,i]),K(`span`,e,{state:{imageLoadingStatus:s},ref:t,props:o,stateAttributesMapping:md,enabled:s!==`loaded`&&(i===0||c)})}),$=Oe();function bd(e){let t=(0,$.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,size:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o;t[4]===n?o=t[5]:(o=Ye(`group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten`,n),t[4]=n,t[5]=o);let s;return t[6]!==r||t[7]!==a||t[8]!==o?(s=(0,X.jsx)(hd,{"data-slot":`avatar`,"data-size":a,className:o,...r}),t[6]=r,t[7]=a,t[8]=o,t[9]=s):s=t[9],s}function xd(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Ye(`aspect-square size-full rounded-full object-cover`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(vd,{"data-slot":`avatar-image`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Sd(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Ye(`flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(yd,{"data-slot":`avatar-fallback`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Cd=Y.memo(Y.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a,selected:o,...s}=e,c=Y.useRef(null),{transitionStatus:l,setMounted:u}=ho(o),d=K(`span`,e,{ref:[t,c],state:{selected:o,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},s],stateAttributesMapping:lr});return bo({batch:!0,enabled:!o,open:o,ref:c,onComplete(){o||u(!1)}}),d})),wd=Y.forwardRef(function(e,t){let{selected:n}=ad();return e.keepMounted||n?(0,X.jsx)(Cd,{...e,selected:n,ref:t}):null}),Td=Y.createContext(void 0);function Ed(e=!0){let t=Y.useContext(Td);if(t===void 0&&!e)throw Error(Ge(25));return t}var Dd=Y.createContext(void 0);function Od(e){let t=Y.useContext(Dd);if(t===void 0&&!e)throw Error(Ge(33));return t}var kd=Y.createContext(void 0);function Ad(e){let t=Y.useContext(kd);if(t===void 0&&!e)throw Error(Ge(36));return t}var jd=Y.createContext(null);function Md(e=`root`){let t=Y.useContext(jd),n=Y.useContext(kd);return t===null||n===void 0?null:(e===`submenu-trigger`?n.virtualFocus||n.parentVirtualFocus:n.virtualFocus)?t:null}var Nd={visible:!0,ref:null};function Pd(){return Nd}function Fd(e,t,n=`root`){let r=Md(n),i=((n===`submenu-trigger`?r?.useSubmenuTrigger:r?.useItem)??Pd)({label:e.label,children:e.children,render:e.render}),a=Ze(t,i.ref);return{visible:i.visible,ref:a,props:i.props}}function Id(e){e.preventDefault()}function Ld(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,l=Ad(),u=Ed(!0),d=c.type===`submenu-trigger`,f=d?l.parentVirtualFocus:l.virtualFocus,p=(d&&l.parent.type===`menu`?l.parent.store:l.store).useState(`webkitAriaSelected`,n),{events:m}=a.useState(`floatingTreeRoot`),h=a.useState(`open`),g=u!==void 0,_=!f&&h&&n?0:-1;return Y.useMemo(()=>({id:r,role:`menuitem`,tabIndex:_,"aria-selected":p,onMouseDown:f?Id:void 0,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&m.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&m.emit(`close`,{domEvent:e.nativeEvent,reason:$i})},onMouseUp(e){if(u){let t=u.initialCursorPointRef.current;if(u.initialCursorPointRef.current=null,g&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||g&&!zn&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!g||e.button===2)&&c.type===`regular-item`&&ut(s.current,e,{detail:1,pointerType:`mouse`})}}),[t,_,r,m,i,a.context.allowMouseUpTriggerRef,o,s,u,g,c.type,p,f])}var Rd={type:`regular-item`};function zd(e){let{closeOnClick:t,disabled:n,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:l}=e,u=Y.useRef(null),{getButtonProps:d,buttonRef:f}=ct({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),p=Ld({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:u,itemMetadata:c}),m=Y.useCallback(e=>je(p,{onMouseEnter(e){c.type===`submenu-trigger`&&c.setActive(e.nativeEvent)}},e,d),[p,d,c]),h=Ze(u,f);return Y.useMemo(()=>({getItemProps:m,itemRef:h}),[m,h])}var Bd=Y.createContext(void 0);function Vd(){let e=Y.useContext(Bd);if(e===void 0)throw Error(Ge(31));return e}var Hd=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=Y.useState(void 0),c=K(`div`,e,{ref:t,props:{role:`group`,"aria-labelledby":o,...a}});return(0,X.jsx)(Bd.Provider,{value:s,children:c})}),Ud=Y.forwardRef(function(e,t){let n=Md()?.Group??Hd;return(0,X.jsx)(n,{...e,ref:t})}),Wd=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=hl(a),c=Vd();return q(()=>(c(s),()=>{c(e=>e===s?void 0:e)}),[c,s]),K(`div`,e,{ref:t,props:{id:s,"aria-hidden":!0,...o}})}),Gd=Y.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,{store:d}=Ad(),f=rd({guess:!0,label:a}),p=hl(i),m=d.useState(`disabled`),h=d.useState(`isActive`,f.index),g=d.useState(`floatingNodeId`),_=d.useState(`itemProps`),v=s||m,{getItemProps:y,itemRef:b}=zd({closeOnClick:c,disabled:v,highlighted:h,id:p,store:d,nativeButton:o,nodeId:g,itemMetadata:Rd});return K(`div`,e,{state:{disabled:v,highlighted:h},props:[_,u,y],ref:[b,t,f.ref]})}),Kd=Y.forwardRef(function(e,t){let n=Fd(e,t);return n.visible?(0,X.jsx)(Gd,{...e,ref:n.ref}):null}),qd=Y.createContext(void 0);function Jd(e){let t=Y.useContext(qd);if(t===void 0&&!e)throw Error(Ge(69));return t}var Yd=`ArrowUp`,Xd=`ArrowDown`,Zd=`ArrowLeft`,Qd=`ArrowRight`,$d=new Set([Yd,Xd,Zd,Qd,`Home`,`End`]),ef=[`Shift`,`Control`,`Alt`,`Meta`];function tf(e){return dt(e)&&e.tagName===`INPUT`}function nf(e){return!!(tf(e)&&e.selectionStart!=null||dt(e)&&e.tagName===`TEXTAREA`)}function rf(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=af(e,t,`left`),a=of(e),o=of(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=af(e,t,`top`),r=of(e),i=of(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function af(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function of(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var sf=Y.createContext(void 0);function cf(){return Y.useContext(sf)}function lf(e,t){let n=st(e.render);if(Y.isValidElement(n)){let e=n.props;if(Object.hasOwn(e,`id`))return e.id??``}return e.id??t}function uf(e,t,n){let r=lf(e,t),i=r===t?void 0:r;return[r,Y.useCallback(e=>n?.(e?i:void 0),[i,n])]}function df(e,t,n){let r=st(e.render),i=Y.isValidElement(r)?r.props:void 0,a=e[`aria-label`]??i?.[`aria-label`],o=e[`aria-labelledby`]??i?.[`aria-labelledby`];return o==null&&!a&&(o=t?t.id||void 0:n||void 0),o}var ff=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,id:o,initialFocus:s,...c}=e,{store:l,defaultFloatingId:u,setRenderedFloatingId:d,virtualFocus:f,orientation:p}=Ad(),m=cf(),{side:h,align:g}=Od(),_=Jd(!0)!=null,v=l.useState(`open`),y=l.useState(`transitionStatus`),b=l.useState(`popupProps`),x=l.useState(`mounted`),S=l.useState(`instantType`),C=l.useState(`activeTriggerElement`),w=l.useState(`parent`),T=l.useState(`lastOpenChangeReason`),E=l.useState(`rootId`),D=l.useState(`floatingRootContext`),O=l.useState(`floatingTreeRoot`),k=l.useState(`closeDelay`),A=l.useState(`hoverEnabled`),j=l.useState(`disabled`),M=l.useState(`openMethod`),N=l.useState(`activeTriggerId`),P=l.useState(`listElement`),[F,I]=uf(e,u,d),L=df(e,C,N),R=w.type===`menu`?m:void 0,ee=w.type===`context-menu`,te=s??w.type!==`menu`;s===void 0&&P&&w.type!==`menu`&&(te=()=>l.state.activeIndex===null&&P),bo({open:v,ref:l.context.popupRef,onComplete(){v&&l.context.onOpenChangeComplete?.(!0)}}),Y.useEffect(()=>{function e(e){l.setOpen(!1,Q(e.reason,e.domEvent))}return O.events.on(`close`,e),()=>{O.events.off(`close`,e)}},[O.events,l]),as(D,{enabled:A&&!j&&!ee&&w.type!==`menubar`,closeDelay:k});let z=l.useStateSetter(`popupElement`),{parentVirtualFocusRef:B,handleFocus:ne}=(Y.useContext(jd)?.useParentHandoff??mf)(l,w,v,f),re={transitionStatus:y,side:h,align:g,open:v,nested:w.type===`menu`,instant:S},V=K(`div`,e,{state:re,ref:[t,l.context.popupRef,z,I],stateAttributesMapping:Cr,props:[b,{id:F,...P?{role:`presentation`}:{role:`menu`,"aria-orientation":p===`horizontal`?`horizontal`:void 0,"aria-labelledby":L},onKeyDown(e){R?.onPopupKeyDown?.(e),_&&$d.has(e.key)&&e.stopPropagation()},onFocus:ne},zu(y),c,{"data-rootownerid":E}]}),H=w.type===void 0||ee;(C||w.type===`menubar`&&T!==`outside-press`)&&(H=!0);let ie=R?.getReturnElement??B;return(0,X.jsx)(co,{context:D,openInteractionType:M,modal:ee,disabled:!x,returnFocus:a??ie??H,explicitReturnFocus:a===void 0&&ie?!1:void 0,initialFocus:te,restoreFocus:!0,getInsideElements:w.type===void 0?()=>[l.context.beforeTriggerFocusGuardRef.current]:void 0,externalTree:w.type===`menubar`?void 0:O,previousFocusableElement:C,nextFocusableElement:w.type===void 0?l.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:V})}),pf={parentVirtualFocusRef:void 0,handleFocus:void 0};function mf(){return pf}var hf=Y.forwardRef(function(e,t){let n=Md()?.Popup??ff;return(0,X.jsx)(n,{...e,ref:t})}),gf=Y.createContext(void 0);function _f(){let e=Y.useContext(gf);if(e===void 0)throw Error(Ge(32));return e}var vf=Y.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i,parent:a}=Ad();if(!(i.useState(`mounted`)||n))return null;let o=a.type===`menu`||a.type===`menubar`?`group`:void 0;return(0,X.jsx)(gf.Provider,{value:n,children:(0,X.jsx)(Ua,{ref:t,...r,portalOwnerRole:o})})});function yf(e){let{store:t,domReference:n,positionerElement:r,open:i}=e,a=Y.useRef(null),o=Y.useRef(null),s=yo(r);q(()=>{i||(o.current?.abort(),o.current=null,t.state.instantType===`trigger-change`&&t.set(`instantType`,void 0))},[i,t]),q(()=>{let e=n,r=a.current;if(e&&(a.current=e),!r||!e||e===r||!t.select(`open`))return;t.set(`instantType`,void 0);let i=new AbortController;return o.current=i,s(()=>{t.select(`open`)&&t.set(`instantType`,`trigger-change`)},i.signal),()=>{i.abort()}},[n,s,t])}var bf=Y.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:s,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=Ia,style:g,..._}=e,{store:v,virtualFocus:y,syncHighlightedItem:b}=Ad(),x=_f(),S=Ed(!0),C=v.useState(`parent`),w=v.useState(`floatingRootContext`),T=v.useState(`floatingTreeRoot`),E=v.useState(`mounted`),D=v.useState(`open`),O=v.useState(`modal`),k=v.useState(`openMethod`),A=v.useState(`activeTriggerElement`),j=v.useState(`transitionStatus`),M=v.useState(`positionerElement`),N=v.useState(`instantType`),P=v.useState(`adaptiveOrigin`),F=v.useState(`lastOpenChangeReason`),I=v.useState(`floatingNodeId`),L=v.useState(`floatingParentNodeId`),R=w.useState(`domReferenceElement`),ee=n,te=c,z=l,B=s,ne=h;C.type===`context-menu`&&(ee=n??C.context?.anchor,B??=`start`,!o&&B!==`center`&&(z=e.alignOffset??2,te=e.sideOffset??-5));let re=o,V=B;C.type===`menu`?(re??=`inline-end`,V??=`start`,ne=e.collisionAvoidance??La):C.type===`menubar`&&(re??=C.context.orientation===`vertical`?`inline-end`:`bottom`,V??=`start`);let H=C.type===`context-menu`,ie=Fu({anchor:ee,floatingRootContext:w,positionMethod:S?`fixed`:r,mounted:E,side:re,sideOffset:te,align:V,alignOffset:z,arrowPadding:H?0:f,collisionBoundary:u,collisionPadding:d,sticky:p,nodeId:I,keepMounted:x,disableAnchorTracking:m,collisionAvoidance:ne,shift:H?{crossAxis:!(`side`in ne&&ne.side===`flip`),rootBoundary:`layoutViewport`}:void 0,externalTree:T,adaptiveOrigin:P,lazyFlip:y?`placement`:!1});Y.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===I&&v.set(`hoverEnabled`,!1),e.nodeId!==I&&e.parentNodeId===v.select(`floatingParentNodeId`)&&v.setOpen(!1,Q(da)))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[v,T.events,I]),Y.useEffect(()=>{if(v.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==v.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;v.setOpen(!1,Q(t))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[T.events,v]);let ae=kn();Y.useEffect(()=>{D||ae.clear()},[D,ae]),Y.useEffect(()=>{function e(e){if(D&&e.nodeId===v.select(`floatingParentNodeId`)){if(e.target&&A&&A!==e.target){let e=v.select(`closeDelay`);e>0?ae.isStarted()||ae.start(e,()=>{v.setOpen(!1,Q(da))}):v.setOpen(!1,Q(da))}else ae.clear()}}return T.events.on(`itemhover`,e),()=>{T.events.off(`itemhover`,e)}},[T.events,D,A,v,ae]),Y.useEffect(()=>{let e={open:D,nodeId:I,parentNodeId:L,reason:v.select(`lastOpenChangeReason`)};T.events.emit(`menuopenchange`,e)},[T.events,D,v,I,L]),yf({store:v,domReference:R,positionerElement:M,open:D});let oe={open:D,side:ie.side,align:ie.align,anchorHidden:ie.anchorHidden,nested:C.type===`menu`,instant:N},U=C.type===`menubar`&&C.context.modal;$u(D&&(U||O&&F!==`trigger-hover`),k===`touch`,M,A);let se=Bu(e,oe,{styles:ie.positionerStyles,transitionStatus:j,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!E,inert:!D}),ce=E&&C.type!==`menu`&&(C.type!==`menubar`&&O&&F!==`trigger-hover`||C.type===`menubar`&&C.context.modal),le=null;return C.type===`menubar`?le=C.context.contentElement:C.type===void 0&&(le=A),(0,X.jsxs)(Dd.Provider,{value:ie,children:[ce&&(0,X.jsx)(Ru,{ref:C.type===`context-menu`||C.type===`nested-context-menu`?C.context.internalBackdropRef:null,inert:bu(!D),cutout:le}),(0,X.jsx)(Za,{id:I,children:(0,X.jsx)(lu,{elementsRef:v.context.itemDomElements,labelsRef:v.context.itemLabels,onMapChange:b,children:se})})]})}),xf=Y.createContext(null);function Sf(e){let t=Y.useContext(xf);if(t===null&&!e)throw Error(Ge(5));return t}var Cf={...Wo,disabled:e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0),openMethod:e=>e.openMethod,keyboardOpen:e=>e.keyboardOpen,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId,activeIndex:e=>e.activeIndex,listElement:e=>e.listElement,triggerControlsId:(e,t)=>{let n=Wo.triggerPopupId(e,t);return n?e.listElement?.id||n:void 0},filterTriggerProps:e=>e.filterTriggerProps,inputProps:e=>e.inputProps,webkitAriaSelected:(e,t)=>Vn&&e.inputFocused&&t?!0:void 0,highlightedItemId:e=>e.highlightedItem?.id||void 0,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType===`trigger-change`&&!Wo.open(e)?void 0:e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)}},wf=class extends Cn{constructor(e,t,n=!1){let r=new Fo,i=Ef(r,t,n,e);super(i,Tf(r),Cf),this.observe(`parent`,e=>{e.type===`menu`?this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef:e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef)})}subscribeToParentMenu(){let e=this.state.parent;if(e.type!==`menu`)return;let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);return e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}setActiveIndex(e,t,n){if(this.state.activeIndex!==e){let r=(e===null?void 0:this.context.itemDomElements.current[e])===this.context.reportedItem;this.context.highlightReason=r?`none`:t,this.context.highlightEvent=r?void 0:n}this.set(`activeIndex`,e)}highlightItem(e,t,n){let r=this.context.itemDomElements.current.indexOf(e);r>-1&&this.setActiveIndex(r,t,n)}};function Tf(e){return{positionerRef:Y.createRef(),popupRef:Y.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},highlightReason:`none`,highlightEvent:void 0,reportedItem:void 0,allowMouseUpTriggerRef:{current:!1},virtualFocusRef:void 0,triggerFocusTargetRef:Y.createRef(),beforeTriggerFocusGuardRef:Y.createRef(),beforeContentFocusGuardRef:Y.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function Ef(e,t,n=!1,r){return{...Ro(e,t,n),disabled:!1,modal:!0,openMethod:null,keyboardOpen:!1,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,listElement:null,filterTriggerProps:it,inputProps:it,inputFocused:!1,highlightedItem:void 0,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new Ga,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:it,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var Df=Y.createContext(null);function Of(e,t){return(e===`trigger-press`||e===`item-press`)&&t?.detail===0}function kf(e,t){return e===`list-navigation`||Of(e,t)}var Af=mn(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,onItemHighlighted:a,defaultOpen:o=!1,disabled:s=!1,modal:c,loopFocus:l=!0,orientation:u=`vertical`,actionsRef:d,closeParentOnEsc:f=!1,handle:p,triggerId:m,defaultTriggerId:h=null,highlightItemOnHover:g=!0,isSubmenu:_=!1,virtualFocus:v=!1,virtualFocusRef:y,allowEscape:b=!0,resetOnPointerLeave:x=!0}=e,S=Ed(!0),C=Ad(!0),w=Sf(!0),T=C?.store,E=C?.virtualFocus??!1,D=Y.useMemo(()=>_&&T?{type:`menu`,store:T}:w?{type:`menubar`,context:w}:S&&!T?{type:`context-menu`,context:S}:{type:void 0},[S,T,w,_]),O=hl(),k=hl(),[A,j]=Y.useState(void 0),M=(A??k)||void 0,N=Ja(),P=D.type===`menu`?D.store:void 0,F=(n??o)&&P?.state.transitionStatus===`starting`,I=Ne(()=>F?P?.state.instantType:void 0).current,L=Ne(()=>{let e=new wf({open:o,openProp:n,activeTriggerId:h,triggerIdProp:m,parent:D,disabled:s,highlightItemOnHover:g,modal:D.type===void 0?c:void 0,rootId:O,instantType:I},M,N!=null);return e.context.virtualFocusRef=y,e}).current;L.useControlledProp(`openProp`,n),L.useControlledProp(`triggerIdProp`,m),L.useContextCallback(`onOpenChangeComplete`,i);let R=L.useState(`floatingTreeRoot`),ee=Xa(R),te=L.useState(`open`),z=L.useState(`activeTriggerElement`),B=L.useState(`positionerElement`),ne=L.useState(`hoverEnabled`),re=L.useState(`disabled`),V=L.useState(`lastOpenChangeReason`),H=L.useState(`parent`),ie=L.useState(`activeIndex`),ae=L.useState(`keyboardOpen`),oe=L.useState(`payload`),U=L.useState(`floatingParentNodeId`),se=Y.useRef(null),ce=Y.useRef(H.type!==`context-menu`),le=kn(),ue=Y.useRef(!0),de=kn(),fe=U!=null,{openMethod:pe,triggerProps:me}=Ol(te);L.useSyncedValues({disabled:s,highlightItemOnHover:g,modal:H.type===void 0?c:void 0,openMethod:pe,rootId:O}),jo(L);let{forceUnmount:he,transitionStatus:ge}=Mo(te,L,()=>{L.set(`allowMouseEnter`,!1)},F),_e=yo(L.context.popupRef);Y.useEffect(()=>{if(I===void 0)return;let e=()=>{L.state.instantType===I&&L.set(`instantType`,void 0)};if(!te){e();return}if(ge!==void 0)return;if(L.context.popupRef.current==null){e();return}let t=new AbortController;return _e(e,t.signal),()=>{t.abort()}},[I,te,ge,_e,L]),q(()=>{S&&!C?L.update({parent:{type:`context-menu`,context:S},floatingNodeId:ee,floatingParentNodeId:N}):(C||!L.select(`activeTriggerElement`))&&L.update({floatingNodeId:ee,floatingParentNodeId:N})},[S,C,ee,N,z,L]),Y.useEffect(()=>{te||(se.current=null),H.type===`context-menu`&&(te?le.start(500,()=>{ce.current=!0}):(le.clear(),ce.current=!1))},[le,te,H.type]),q(()=>{!te&&!ne&&L.set(`hoverEnabled`,!0)},[te,ne,L]);let ve=G((e,t)=>{let n=t.reason;if(!e&&!L.select(`open`)||te===e&&t.trigger===z&&V===n)return;let i=ko(t);if(!e&&t.trigger==null&&(t.trigger=z??void 0),r?.(e,t),t.isCanceled)return;L.state.floatingRootContext.dispatchOpenChange(e,t);let a=t.event;if(e===!1&&n!==`item-press`&&a?.type===`click`&&a.pointerType===`touch`&&!ue.current)return;e&&n===`trigger-focus`?(ue.current=!1,de.start(300,()=>{ue.current=!0})):(ue.current=!0,de.clear());let o=!e&&(n===`escape-key`||n==null);se.current=t.event;let s=Oo(L.state,e,t.trigger,i());s.openChangeReason=n,s.keyboardOpen=e&&kf(n,a),s.instantType=H.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?`group`:Of(n,a)?`click`:o?`dismiss`:void 0,L.update(s)}),ye=mo({popupStore:L,floatingRootContext:L.state.floatingRootContext,floatingId:M,nested:N!=null,onOpenChange:ve}),be=ye.context.events;q(()=>{let e=({open:e,eventDetails:t})=>ve(e,t);return be.on(`setOpen`,e),()=>{be?.off(`setOpen`,e)}},[be,ve]),q(()=>L.subscribeToParentMenu(),[L]);let xe=Y.useCallback(()=>{L.setOpen(!1,Q(ha))},[L]);Y.useImperativeHandle(d,()=>({unmount:he,close:xe}),[he,xe]);let Se;H.type===`context-menu`&&(Se=H.context),Y.useImperativeHandle(Se?.positionerRef,()=>B,[B]),Y.useImperativeHandle(Se?.actionsRef,()=>({setOpen:ve}),[ve]);let Ce=po(ye,{enabled:!re,bubbles:{escapeKey:f&&H.type===`menu`},outsidePress(){return H.type!==`context-menu`||se.current?.type===`contextmenu`||ce.current},externalTree:fe?R:void 0}),we=Nl(),Te=ms(ye,{enabled:!re,listRef:L.context.itemDomElements,activeIndex:ie,virtual:v,nested:H.type===`menubar`||!v&&H.type!==void 0,parentOrientation:H.type===`menubar`?H.context.orientation:void 0,loopFocus:l,focusItemOnOpen:v?ae:void 0,allowEscape:v&&l&&b,orientation:u,triggerOrientation:v?`vertical`:u,rtl:we===`rtl`,disabledIndices:at,onNavigate(e,t){L.setActiveIndex(e,Oc(t),t?.nativeEvent)},openOnArrowKeyDown:H.type!==`context-menu`&&!(v&&_),externalTree:!v&&fe?R:void 0,nestedReturnFocusRef:P?.context.virtualFocusRef,focusItemOnHover:g,resetOnPointerLeave:x}),Ee=Y.useCallback(e=>{L.context.typingRef.current=e},[L]),De=hs(ye,{enabled:!re&&!v,listRef:L.context.itemLabels,elementsRef:L.context.itemDomElements,activeIndex:ie,resetMs:500,onMatch:(e,t)=>{te&&e!==ie&&L.setActiveIndex(e,ca,t.nativeEvent)},onTyping:Ee}),Oe=G(a),ke=Y.useRef(-1),Ae=G(()=>{let e=L.state.activeIndex,t=e===null?void 0:L.context.itemDomElements.current[e]??void 0;if(t?.isConnected===!1)return;let n=t===void 0?-1:e;if(ke.current===n&&L.context.reportedItem===t)return;ke.current=n,L.context.reportedItem=t,v&&L.set(`highlightedItem`,t);let{highlightReason:r,highlightEvent:i}=L.context;L.context.highlightReason=Ji,L.context.highlightEvent=void 0,a&&Oe(t,qi(r,i,{label:t===void 0?void 0:L.context.itemLabels.current[n]??void 0}))});q(()=>{Ae()},[ie,Ae]);let Me=Y.useMemo(()=>{if(!v)return Te.reference;if(!Te.trigger)return it;let{onFocus:e,...t}=Te.trigger;return t},[v,Te.reference,Te.trigger]);L.useSyncedValue(`inputProps`,v?Te.reference??it:it);let Pe=Y.useMemo(()=>{let e=je(De.reference,Me,Ce.reference,{onMouseMove(){L.set(`allowMouseEnter`,!0)}},me);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=te,e},[L,De.reference,Me,Ce.reference,me,te]),Fe=Y.useMemo(()=>{let e=je(Te.trigger,Ce.trigger,me);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[Te.trigger,Ce.trigger,me]);Ne(()=>(L.update({inactiveTriggerProps:Fe}),null)),No(L,{floatingRootContext:ye,activeTriggerProps:Pe,inactiveTriggerProps:Fe,popupProps:Y.useMemo(()=>je(So,{onMouseMove(){L.set(`allowMouseEnter`,!0),H.type===`menu`&&L.set(`hoverEnabled`,!1)},onClick(){L.select(`hoverEnabled`)&&L.set(`hoverEnabled`,!1)},onKeyDown(e){let t=L.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},De.floating,Te.floating,Ce.floating),[H.type,L,De.floating,Te.floating,Ce.floating]),itemProps:Te.item??it});let Ie=Y.useMemo(()=>({store:L,parent:D,orientation:u,loopFocus:l,allowEscape:b,defaultFloatingId:k,setRenderedFloatingId:j,virtualFocus:v,parentVirtualFocus:E,syncHighlightedItem:Ae}),[L,D,u,l,b,k,v,E,Ae]),Le=typeof t==`function`?t({payload:oe}):t,Re=(0,X.jsxs)(kd.Provider,{value:Ie,children:[p&&(0,X.jsx)(To,{handle:p,store:L}),Le]});return(H.type===void 0||H.type===`context-menu`)&&(Re=(0,X.jsx)(Qa,{externalTree:R,children:Re})),Re});function jf(e){let t=Y.useContext(Df);if(t===null)return(0,X.jsx)(Af,{...e});let n=t.Root;return(0,X.jsx)(Df.Provider,{value:null,children:(0,X.jsx)(n,{...t.options,...e})})}function Mf(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=lt(),{ref:i,index:a}=rd(e),o=n===a,s=Y.useRef(null),c=Ze(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function Nf(e){let{render:t,className:n,style:r,state:i=it,props:a=at,refs:o=at,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=Mf({metadata:s});return K(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function Pf(e){if(dt(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`);if(!Ae(e))return Pf(Pe(e))}function Ff(e,t){function n(n,r,i){let a=n.currentTarget;tn.flushSync(()=>{e.setOpen(!1,Q(aa,n.nativeEvent,a))}),Vi(a.isConnected?a:t.current,r,i)?.focus()}function r(t){n(t,-1,e.select(`positionerElement`))}function i(t){let r=e.select(`positionerElement`);r&&Hi(t,r)?e.context.beforeContentFocusGuardRef.current?.focus():n(t,1,r)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function If(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=Y.useRef(!1);return Y.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,Nt(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:it,[t,n,r])}var Lf=hn(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,openOnHover:c,delay:l=100,closeDelay:u=0,handle:d,payload:f,...p}=e,m=Ad(!0),h=Go(d)??m?.store;if(!h)throw Error(Ge(85));let g=hl(s),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerControlsId`,g),x=Y.useRef(null),S=zf(),C=lt(!0),w=Ya(),T=Y.useMemo(()=>w??new Ga,[w]),{registerTrigger:E,isMountedByThisTrigger:D}=Ao(g,x,h,{payload:f,closeDelay:u,parent:S,floatingTreeRoot:T,floatingNodeId:Xa(T),floatingParentNodeId:Ja(),keyboardEventRelay:C?.relayKeyboardEvent}),O=S.type===`menubar`,k=h.useState(`disabled`),A=a||k||O&&S.context.disabled,{getButtonProps:j,buttonRef:M}=ct({disabled:A,native:o});Y.useEffect(()=>{!y&&S.type===void 0&&(h.context.allowMouseUpTriggerRef.current=!1)},[h,y,S.type]);let N=Y.useRef(null),P=kn(),F=G(e=>{if(!N.current)return;P.clear(),h.context.allowMouseUpTriggerRef.current=!1;let t=e.target;Z(N.current,t)||Z(h.select(`positionerElement`),t)||t===N.current||t!=null&&Pf(t)===h.select(`rootId`)||Hl(e,N.current)||T.events.emit(`close`,{domEvent:e,reason:ua})});Y.useEffect(()=>{let e=Nt(N.current);if(y&&h.select(`lastOpenChangeReason`)===`trigger-hover`)return e.addEventListener(`mouseup`,F,{once:!0}),()=>{e.removeEventListener(`mouseup`,F)}},[y,F,h]);let I=O&&S.context.hasSubmenuOpen,L=ss(v,{enabled:(c??I)&&!A&&(!O||I&&!D),handleClose:Cs({blockPointerEvents:!O}),mouseOnly:!0,move:!1,restMs:S.type===void 0?l:void 0,delay:{close:u},triggerElementRef:x,externalTree:T,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),R=Rf(y,h.select(`lastOpenChangeReason`)),ee=lo(v,{enabled:!A,event:y&&O?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:S.type===void 0&&R}),te=Jo(v,{enabled:!A&&I}),z=If({open:y,enabled:O,mouseDownAction:`open`}),B=Y.useMemo(()=>je(te.reference,ee.reference),[te.reference,ee.reference]),ne=h.useState(`triggerProps`,D),re=h.useState(`filterTriggerProps`),{handlePreFocusGuardFocus:V,handleFocusTargetFocus:H}=Ff(h,x),ie={disabled:A,open:y},ae=[N,t,M,E,x],oe=[B,L??it,ne,{"aria-haspopup":`menu`,"aria-controls":b,id:g,onMouseDown:e=>{h.select(`open`)||(P.start(200,()=>{h.context.allowMouseUpTriggerRef.current=!0}),Nt(e.currentTarget).addEventListener(`mouseup`,F,{once:!0}))}},re,O?{role:`menuitem`}:{},z,p,j],U=K(`button`,e,{enabled:!O,stateAttributesMapping:xr,state:ie,ref:ae,props:oe});return O?(0,X.jsx)(Nf,{tag:`button`,render:n,className:r,style:i,state:ie,refs:ae,props:oe,stateAttributesMapping:xr}):y?(0,X.jsxs)(Y.Fragment,{children:[(0,X.jsx)(Yn,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:V},`${g}-pre-focus-guard`),(0,X.jsx)(Y.Fragment,{children:U},g),(0,X.jsx)(Yn,{ref:h.context.triggerFocusTargetRef,onFocus:H},`${g}-post-focus-guard`)]}):(0,X.jsx)(Y.Fragment,{children:U},g)});function Rf(e,t){let n=kn(),[r,i]=Y.useState(!1);return q(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function zf(){let e=Sf(!0);return Y.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}var Bf=Y.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return K(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});function Vf(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var Hf=Y.createContext(void 0);function Uf(e){let t=Y.useContext(Hf);if(!e&&t===void 0)throw Error(Ge(27));return t}var Wf=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=Uf(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`),d={open:c,transitionStatus:s.useState(`transitionStatus`)};return K(`div`,e,{state:d,ref:[s.context.backdropRef,t],stateAttributesMapping:Cr,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Gf=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=Uf(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=ct({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Q(ea,e.nativeEvent))}return K(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Kf=Y.createContext(void 0);function qf(){let e=Y.useContext(Kf);if(e===void 0)throw Error(Ge(26));return e}var Jf=`--nested-dialogs`,Yf=`data-nested-dialog-open`,Xf={...Sr,...lr,nestedDialogOpen(e){return e?{[Yf]:``}:null}},Zf=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=Uf(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`);qf(),bo({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?Co(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=K(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...So,hidden:!m,onKeyDown(e){$d.has(e.key)&&e.stopPropagation()},style:{[Jf]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:Xf});return(0,X.jsx)(co,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})}),Qf=Y.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Uf(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,X.jsx)(Kf.Provider,{value:n,children:(0,X.jsxs)(Ua,{ref:t,...r,children:[a&&o===!0&&(0,X.jsx)(Ru,{ref:i.context.internalBackdropRef,inert:bu(!s)}),e.children]})}):null});function $f({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=Y.useState(0),[d,f]=Y.useState(0),p=l===0,m=po(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=Qn(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||Z(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return Zu(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),q(()=>{!r&&!i&&(u(0),f(0))},[r,i]),q(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),No(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var ep={...Wo,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},tp=class extends Cn{constructor(e,t,n){let r=new Fo,i=np(e,r,t,n);super(i,rp(r),ep)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),!t.isCanceled&&(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(Oo(this.state,e,t.trigger)))}};function np(e,t,n,r=!1){return{...Ro(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function rp(e){return{popupRef:Y.createRef(),backdropRef:Y.createRef(),internalBackdropRef:Y.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function ip(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=Uf(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=wo((e,t)=>new tp({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y},e,t),!0);b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);Po(b,x),jo(b);let{forceUnmount:w}=Mo(x,b);Y.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,Q(ha))}),[w,b]);let T=x||S||u!=null;return(0,X.jsxs)(Hf.Provider,{value:b,children:[u&&(0,X.jsx)(To,{handle:u,store:b}),T&&(0,X.jsx)($f,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var ap=mn(function(e){return ip(`dialog`,e)}),op=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Uf(),c=hl(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),K(`h2`,e,{ref:t,props:[{id:c},o]})}),sp=Y.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFilled:y,validationMode:b,validation:x}=dl(),{clearErrors:S,elementRef:C,submitCountRef:w}=ml(),T=h||s,E=m??a,D={...p,disabled:T},{labelId:O}=_l(),k=vl({id:i}),A=o!==void 0,j=o==null?void 0:String(o),M=G(()=>x.inputRef.current?.value);fl(x.inputRef,k,j,M,!T,a),q(()=>{let e=j??x.inputRef.current?.value;e!==void 0&&y(e!==``)},[j,l,x.inputRef,y]),El(j,()=>{j!==void 0&&(S(E),_(j!==(v.initialValue??``)),x.change(j))});let N=Y.useRef(null),P=Bl(T,N),F=kn();return K(`input`,e,{ref:[t,N],state:D,props:[{id:k,disabled:T,name:E,ref:x.inputRef,"aria-labelledby":O,autoFocus:u,...A?{value:o}:{defaultValue:l},onChange(e){let t=e.currentTarget.value,n=Q(Ji,e.nativeEvent);c?.(t,n),!A&&(_(t!==(v.initialValue??``)),y(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(S(E),x.change(t)))},onFocus(){P(!0)},onBlur(e){if(g(!0),P(!1),b===`onBlur`){let t=e.currentTarget.value;x.commit(t),A&&queueMicrotask(()=>{let e=x.inputRef.current?.value;e!==void 0&&e!==t&&e!==(v.initialValue??``)&&x.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){g(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===C.current&&!e.defaultPrevented){let t=e.currentTarget,n=w.current;F.start(0,()=>{w.current===n&&x.commit(t.value)})}else x.commit(t)}}},f,e=>x.getValidationProps(T,e)],stateAttributesMapping:cl})}),cp=Y.forwardRef(function(e,t){return(0,X.jsx)(sp,{ref:t,...e})}),lp=Y.createContext(void 0);function up(){let e=Y.useContext(lp);if(e===void 0)throw Error(Ge(64));return e}var dp=`data-activation-direction`,fp={tabActivationDirection:e=>({[dp]:e})},pp=Y.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:o,value:s,style:c,...l}=e,u=e.defaultValue!==void 0,d=Y.useRef([]),[f,p]=Y.useState(()=>new Map),[m,h]=nn({controlled:s,default:r,name:`Tabs`,state:`value`}),g=s!==void 0,[_,v]=Y.useState(()=>new Map),y=Y.useRef(void 0),b=Y.useCallback(e=>mp(_,e),[_]),[x,S]=Y.useState(()=>({previousValue:m,tabActivationDirection:`none`})),{previousValue:C,tabActivationDirection:w}=x,T=w,E=!1;C!==m&&(T=hp(C,m,a,_),E=C!=null&&m!=null&&b(m)==null);let D=E?C:m,O=C!==D||w!==T;q(()=>{O&&S({previousValue:D,tabActivationDirection:T})},[D,O,T]);let k=G((e,t)=>{t.activationDirection=hp(m,e,a,_),i?.(e,t),!t.isCanceled&&h(()=>e)}),A=G((e,t)=>{i?.(e,Q(t,void 0,void 0,{activationDirection:`none`}))}),j=G((e,t)=>(p(n=>{let r=new Map(n);return r.set(e,t),r}),()=>{p(n=>{if(n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})})),M=Y.useCallback(e=>f.get(e),[f]),N=Y.useCallback(e=>{for(let t of _.values())if(e===t.value)return t.id},[_]),P=Y.useMemo(()=>({getTabElementBySelectedValue:b,getTabIdByPanelValue:N,getTabPanelIdByValue:M,onValueChange:k,orientation:a,registerMountedTabPanel:j,setTabMap:v,tabActivationDirection:T,value:m}),[b,N,M,k,a,j,v,T,m]),F=Y.useMemo(()=>{for(let e of _.values())if(e.value===m)return e},[_,m]),I=Y.useMemo(()=>{for(let e of _.values())if(!e.disabled)return e.value},[_]),L=Y.useRef(!u),R=Y.useRef(r),ee=Y.useRef(u),te=Y.useRef(!1);q(()=>{if(g)return;function e(e,t){h(()=>e),S({previousValue:e,tabActivationDirection:`none`}),A(e,t),L.current=!1}if(_.size===0){te.current&&m!==null&&!y.current?.isConnected&&e(null,pa);return}te.current=!0,y.current=_.keys().next().value;let t=F?.disabled,n=F==null&&m!==null;if(!t&&m===R.current&&(ee.current=!1),ee.current&&t&&m===R.current)return;let r=L.current;if(t||n){let n=I??null;if(m===n){L.current=!1;return}let i=pa;r?i=ma:t&&(i=fa),e(n,i)}else r&&F!=null&&(A(m,ma),L.current=!1)},[I,g,A,F,h,_,m]);let z=K(`div`,e,{state:{orientation:a,tabActivationDirection:T},ref:t,props:l,stateAttributesMapping:fp});return(0,X.jsx)(lp.Provider,{value:P,children:(0,X.jsx)(lu,{elementsRef:d,children:z})})});function mp(e,t){for(let[n,r]of e.entries())if(t===r.value)return n;return null}function hp(e,t,n,r){if(e==null||t==null)return`none`;let[i,a,o]=n===`horizontal`?[`left`,`left`,`right`]:[`top`,`up`,`down`],s=mp(r,e),c=mp(r,t);if(s==null||c==null)return s!==c&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?t>e?o:a:`none`;let l=s.getBoundingClientRect()[i],u=c.getBoundingClientRect()[i];return u<l?a:u>l?o:`none`}var gp=`data-composite-item-active`,_p=Y.createContext(void 0);function vp(){let e=Y.useContext(_p);if(e===void 0)throw Error(Ge(65));return e}var yp=Y.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:s=!0,style:c,...l}=e,{value:u,getTabPanelIdByValue:d,onValueChange:f,orientation:p,tabActivationDirection:m}=up(),{activateOnFocus:h,registerTabResizeObserverElement:g,tabsListElement:_}=vp(),{highlightedIndex:v,onHighlightedIndexChange:y}=lt(),b=hl(o),{compositeProps:x,compositeRef:S,index:C}=Mf({metadata:Y.useMemo(()=>({disabled:r,id:b,value:a}),[r,b,a])}),w=a===u,T=Y.useRef(!1),E=Y.useRef(null),D=G(e=>{E.current?.(),E.current=e?g(e):null});q(()=>{if(T.current){T.current=!1;return}if(!(w&&C>-1&&v!==C))return;let e=_;if(e!=null){let t=Xn(Nt(e));if(t&&Z(e,t))return}r||y(C)},[w,C,v,y,r,_]);let{getButtonProps:O,buttonRef:k}=ct({disabled:r,native:s,focusableWhenDisabled:!0}),A=d(a),j=Y.useRef(!1),M=Y.useRef(!1);function N(e){f(a,Q(Ji,e.nativeEvent,void 0,{activationDirection:`none`}))}function P(e){w||r||N(e)}function F(e){w||r||h&&(!j.current||M.current)&&N(e)}function I(e){if(w||r)return;j.current=!0,M.current=e.button===0;let t=Nt(e.currentTarget);function n(){j.current=!1,M.current=!1,t.removeEventListener(`pointerup`,n),t.removeEventListener(`pointercancel`,n)}t.addEventListener(`pointerup`,n),t.addEventListener(`pointercancel`,n)}return K(`button`,e,{state:{disabled:r,active:w,orientation:p,tabActivationDirection:m},ref:[t,k,S,D],props:[x,{role:`tab`,"aria-controls":A,"aria-selected":w,id:b,onClick:P,onFocus:F,onPointerDown:I,[gp]:w?``:void 0,onKeyDownCapture(){T.current=!0}},l,O],stateAttributesMapping:fp})}),bp=`data-index`,xp={...fp,...lr},Sp=Y.forwardRef(function(e,t){let{className:n,value:r,render:i,keepMounted:a=!1,style:o,...s}=e,{value:c,getTabIdByPanelValue:l,orientation:u,tabActivationDirection:d,registerMountedTabPanel:f}=up(),p=hl(),{ref:m,index:h}=rd(),g=r===c,{mounted:_,transitionStatus:v,setMounted:y}=ho(g),b=!_,x=l(r),S={hidden:b,orientation:u,tabActivationDirection:d,transitionStatus:v},C=Y.useRef(null),w=K(`div`,e,{state:S,ref:[t,m,C],props:[{"aria-labelledby":x,hidden:b,id:p,role:`tabpanel`,tabIndex:g?0:-1,inert:bu(!g),[bp]:h},s],stateAttributesMapping:xp});return bo({open:g,ref:C,onComplete(){g||y(!1)}}),q(()=>{if(!(p==null||b&&!a))return f(r,p)},[b,a,r,p,f]),a||_?w:null});function Cp(e){let{loopFocus:t=!0,orientation:n=`both`,grid:r,onLoop:i,direction:a,highlightedIndex:o,onHighlightedIndexChange:s,rootRef:c,enableHomeAndEndKeys:l=!1,stopEventPropagation:u,disabledIndices:d,modifierKeys:f=at}=e,[p,m]=Y.useState(0),h=r!=null,g=Y.useRef(null),_=Ze(g,c),v=Y.useRef([]),y=Y.useRef(!1),b=Y.useRef(null),x=o??p,S=G((e,t=!1)=>{if(b.current=v.current[e]??null,(s??m)(e),t){let t=v.current[e];rf(g.current,t,a,n)}}),C=G(e=>{if(e.size===0)return;if(y.current){let e=v.current,t=e.indexOf(b.current);if(t===-1){let t=e[x];!t||yi(e,x,d)?S(wp(e,d)):b.current=t}else t!==x&&S(t);return}y.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=r?e.get(r)?.index??-1:-1;if(i!==-1)S(i);else if(yi(t,x,d)){let e=_i(t,{disabledIndices:d});pi(t,e)||S(e)}rf(g.current,r,a,n)});q(()=>{if(d==null||o!=null||!y.current)return;let e=v.current;if(yi(e,x,d)){let t=_i(e,{disabledIndices:d});pi(e,t)||S(t)}},[d,o,x,v,S]);let w=G((e,t,n)=>i?i(e,t,n,v):n),T=G(e=>{let o=e.key===`Home`||e.key===`End`;if(!$d.has(e.key)||!l&&o||Tp(e,f)||!g.current)return;let s=a===`rtl`,c=s?Zd:Qd,p=s?Qd:Zd,m=n===`vertical`?Xd:c,_=n===`vertical`?Yd:p,y=Qn(e.nativeEvent);if(y!=null&&nf(y)&&!Vf(y)){let t=y.selectionStart,n=y.selectionEnd,r=y.value;if(t==null||e.shiftKey||t!==n||e.key!==_&&t<r.length||e.key!==m&&t>0)return}let b=x,C=mi(v,d),T=hi(v,d);r!=null&&(b=r({disabledIndices:d,elementsRef:v,event:e,highlightedIndex:x,loopFocus:t,maxIndex:T,minIndex:C,onLoop:w,orientation:n,rtl:s}));let E=n!==`vertical`&&e.key===c||n!==`horizontal`&&e.key===`ArrowDown`,D=n!==`vertical`&&e.key===p||n!==`horizontal`&&e.key===`ArrowUp`;l&&(e.key===`Home`?b=C:e.key===`End`&&(b=T)),b===x&&(E||D)&&(t&&b===T&&E?(b=C,i&&(b=i(e,x,b,v))):t&&b===C&&D?(b=T,i&&(b=i(e,x,b,v))):b=_i(v.current,{startingIndex:b,decrement:D,disabledIndices:d})),b!==x&&!pi(v.current,b)&&(u&&e.stopPropagation(),(h||o||E||D)&&e.preventDefault(),S(b,!0),queueMicrotask(()=>{v.current[b]?.focus()}))});return{props:{ref:_,onFocus(e){let t=g.current,n=Qn(e.nativeEvent);t&&n!=null&&nf(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:T},highlightedIndex:x,onHighlightedIndexChange:S,elementsRef:v,onMapChange:C,relayKeyboardEvent:T}}function wp(e,t){let n=-1;for(let r=0;r<e.length;r+=1){let i=e[r];if(i&&!yi(e,r,t)){if(i.hasAttribute(`data-composite-item-active`))return r;n===-1&&(n=r)}}return Math.max(n,0)}function Tp(e,t){for(let n of ef)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function Ep(e){let{render:t,className:n,style:r,refs:i=at,props:a=at,state:o=it,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:l,orientation:u,grid:d,loopFocus:f,onLoop:p,enableHomeAndEndKeys:m,onMapChange:h,stopEventPropagation:g=!0,rootRef:_,disabledIndices:v,modifierKeys:y,highlightItemOnHover:b=!1,tag:x=`div`,...S}=e,{props:C,highlightedIndex:w,onHighlightedIndexChange:T,elementsRef:E,onMapChange:D,relayKeyboardEvent:O}=Cp({grid:d,loopFocus:f,onLoop:p,orientation:u,highlightedIndex:c,onHighlightedIndexChange:l,rootRef:_,stopEventPropagation:g,enableHomeAndEndKeys:m,direction:Nl(),disabledIndices:v,modifierKeys:y}),k=K(x,e,{state:o,ref:i,props:[C,...a,S],stateAttributesMapping:s}),A=Y.useMemo(()=>({highlightedIndex:w,onHighlightedIndexChange:T,highlightItemOnHover:b,relayKeyboardEvent:O}),[w,T,b,O]);return(0,X.jsx)(Qe.Provider,{value:A,children:(0,X.jsx)(lu,{elementsRef:E,onMapChange:e=>{h?.(e),D(e)},children:k})})}var Dp=Y.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:o,...s}=e,{orientation:c,setTabMap:l,tabActivationDirection:u}=up(),[d,f]=Y.useState(0),[p,m]=Y.useState(null),h=Y.useRef(new Set),g=Y.useRef(new Set),_=Y.useRef(null);q(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{h.current.forEach(e=>{e()})});return _.current=e,p&&e.observe(p),g.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),_.current=null}},[p]);let v=G(e=>(h.current.add(e),()=>{h.current.delete(e)})),y=G(e=>(g.current.add(e),_.current?.observe(e),()=>{g.current.delete(e),_.current?.unobserve(e)})),b={orientation:c,tabActivationDirection:u},x={"aria-orientation":c===`vertical`?`vertical`:void 0,role:`tablist`},S=Y.useMemo(()=>({activateOnFocus:n,registerIndicatorUpdateListener:v,registerTabResizeObserverElement:y,tabsListElement:p}),[n,v,y,p]);return(0,X.jsx)(_p.Provider,{value:S,children:(0,X.jsx)(Ep,{render:a,className:r,style:o,state:b,refs:[t,m],props:[x,s],stateAttributesMapping:fp,highlightedIndex:d,enableHomeAndEndKeys:!0,loopFocus:i,orientation:c,onHighlightedIndexChange:f,onMapChange:l,disabledIndices:at})})});function Op(e){let t=(0,$.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=Ye(`h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs/relaxed file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,X.jsx)(cp,{type:i,"data-slot":`input`,className:a,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}function kp(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Ye(`group/input-group relative flex h-7 w-full min-w-0 items-center rounded-md border border-input bg-input/20 transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-data-[align=block-end]:rounded-md has-data-[align=block-start]:rounded-md has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-2 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/30 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-2 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[textarea]:rounded-md has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(`div`,{"data-slot":`input-group`,role:`group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Ap=Xe(`flex h-auto cursor-text items-center justify-center gap-1 py-2 text-xs/relaxed font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 **:data-[slot=kbd]:rounded-[calc(var(--radius-sm)-2px)] **:data-[slot=kbd]:bg-muted-foreground/10 **:data-[slot=kbd]:px-1 **:data-[slot=kbd]:text-[0.625rem] [&>svg:not([class*='size-'])]:size-3.5`,{variants:{align:{"inline-start":`order-first pl-2 has-[>button]:ml-[-0.275rem] has-[>kbd]:ml-[-0.275rem]`,"inline-end":`order-last pr-2 has-[>button]:mr-[-0.275rem] has-[>kbd]:mr-[-0.275rem]`,"block-start":`order-first w-full justify-start px-2 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2`,"block-end":`order-last w-full justify-start px-2 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2`}},defaultVariants:{align:`inline-start`}});function jp(e){let t=(0,$.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,align:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`inline-start`:i,o;t[4]!==a||t[5]!==n?(o=Ye(Ap({align:a}),n),t[4]=a,t[5]=n,t[6]=o):o=t[6];let s;return t[7]!==a||t[8]!==r||t[9]!==o?(s=(0,X.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":a,className:o,onClick:Mp,...r}),t[7]=a,t[8]=r,t[9]=o,t[10]=s):s=t[10],s}function Mp(e){e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()}var Np=Xe(`flex items-center gap-2 rounded-md text-xs/relaxed shadow-none`,{variants:{size:{xs:`h-5 gap-1 rounded-[calc(var(--radius-sm)-2px)] px-1 [&>svg:not([class*='size-'])]:size-3`,sm:`gap-1`,"icon-xs":`size-6 p-0 has-[>svg]:p-0`,"icon-sm":`size-7 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});function Pp(e){let t=(0,$.c)(15),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:n,type:i,variant:a,size:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=i===void 0?`button`:i,c=a===void 0?`ghost`:a,l=o===void 0?`xs`:o,u;t[6]!==n||t[7]!==l?(u=Ye(Np({size:l}),n),t[6]=n,t[7]=l,t[8]=u):u=t[8];let d;return t[9]!==r||t[10]!==l||t[11]!==u||t[12]!==s||t[13]!==c?(d=(0,X.jsx)(rt,{type:s,"data-size":l,variant:c,className:u,...r}),t[9]=r,t[10]=l,t[11]=u,t[12]=s,t[13]=c,t[14]=d):d=t[14],d}function Fp(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Ye(`flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(Op,{"data-slot":`input-group-control`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ip(e){let t=(0,$.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=Ye(`[&_svg:not([class*='size-'])]:size-3.5`,r),t[4]=r,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,X.jsx)(Tt,{className:`pointer-events-none size-3.5 text-muted-foreground`}),t[6]=o):o=t[6];let s;return t[7]!==n||t[8]!==i||t[9]!==a?(s=(0,X.jsxs)(Yl,{"data-slot":`combobox-trigger`,className:a,...i,children:[n,o]}),t[7]=n,t[8]=i,t[9]=a,t[10]=s):s=t[10],s}function Lp(e){let t=(0,$.c)(10),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(Pp,{variant:`ghost`,size:`icon-xs`}),t[3]=i):i=t[3];let a;t[4]===n?a=t[5]:(a=Ye(n),t[4]=n,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,X.jsx)(kt,{className:`pointer-events-none`}),t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==a?(s=(0,X.jsx)(ru,{"data-slot":`combobox-clear`,render:i,className:a,...r,children:o}),t[7]=r,t[8]=a,t[9]=s):s=t[9],s}function Rp(e){let t=(0,$.c)(28),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({className:r,children:n,disabled:a,showTrigger:o,showClear:s,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a!==void 0&&a,l=o===void 0||o,u=s!==void 0&&s,d;t[7]===r?d=t[8]:(d=Ye(`w-auto`,r),t[7]=r,t[8]=d);let f;t[9]===c?f=t[10]:(f=(0,X.jsx)(Fp,{disabled:c}),t[9]=c,t[10]=f);let p;t[11]!==i||t[12]!==f?(p=(0,X.jsx)(tu,{render:f,...i}),t[11]=i,t[12]=f,t[13]=p):p=t[13];let m;t[14]!==c||t[15]!==l?(m=l&&(0,X.jsx)(Pp,{size:`icon-xs`,variant:`ghost`,render:(0,X.jsx)(Ip,{}),"data-slot":`input-group-button`,className:`group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent`,disabled:c}),t[14]=c,t[15]=l,t[16]=m):m=t[16];let h;t[17]!==c||t[18]!==u?(h=u&&(0,X.jsx)(Lp,{disabled:c}),t[17]=c,t[18]=u,t[19]=h):h=t[19];let g;t[20]!==m||t[21]!==h?(g=(0,X.jsxs)(jp,{align:`inline-end`,children:[m,h]}),t[20]=m,t[21]=h,t[22]=g):g=t[22];let _;return t[23]!==n||t[24]!==d||t[25]!==p||t[26]!==g?(_=(0,X.jsxs)(kp,{className:d,children:[p,g,n]}),t[23]=n,t[24]=d,t[25]=p,t[26]=g,t[27]=_):_=t[27],_}function zp(e){let t=(0,$.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,anchor:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`bottom`:a,u=o===void 0?6:o,d=s===void 0?`start`:s,f=c===void 0?0:c,p=!!n,m;t[8]===r?m=t[9]:(m=Ye(`group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[chips=true]:min-w-(--anchor-width) data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-7 *:data-[slot=input-group]:border-none *:data-[slot=input-group]:bg-input/20 *:data-[slot=input-group]:shadow-none dark:bg-popover data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,r),t[8]=r,t[9]=m);let h;t[10]!==i||t[11]!==p||t[12]!==m?(h=(0,X.jsx)(nd,{"data-slot":`combobox-content`,"data-chips":p,className:m,...i}),t[10]=i,t[11]=p,t[12]=m,t[13]=h):h=t[13];let g;return t[14]!==d||t[15]!==f||t[16]!==n||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,X.jsx)(yu,{children:(0,X.jsx)(ed,{side:l,sideOffset:u,align:d,alignOffset:f,anchor:n,className:`isolate z-50`,children:h})}),t[14]=d,t[15]=f,t[16]=n,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}function Bp(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Ye(`no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto overscroll-contain p-1 data-empty:p-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(gu,{"data-slot":`combobox-list`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Vp(e){let t=(0,$.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=Ye(`relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,r),t[4]=r,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,X.jsx)(wd,{render:(0,X.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,X.jsx)(Ct,{className:`pointer-events-none`})}),t[6]=o):o=t[6];let s;return t[7]!==n||t[8]!==i||t[9]!==a?(s=(0,X.jsxs)(ud,{"data-slot":`combobox-item`,className:a,...i,children:[n,o]}),t[7]=n,t[8]=i,t[9]=a,t[10]=s):s=t[10],s}function Hp(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,X.jsx)(jf,{"data-slot":`dropdown-menu`,...n}),t[2]=n,t[3]=r),r}function Up(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,X.jsx)(Lf,{"data-slot":`dropdown-menu-trigger`,...n}),t[2]=n,t[3]=r),r}function Wp(e){let t=(0,$.c)(18),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({align:i,alignOffset:a,side:o,sideOffset:s,className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=i===void 0?`start`:i,l=a===void 0?0:a,u=o===void 0?`bottom`:o,d=s===void 0?4:s,f;t[7]===n?f=t[8]:(f=Ye(`z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95`,n),t[7]=n,t[8]=f);let p;t[9]!==r||t[10]!==f?(p=(0,X.jsx)(hf,{"data-slot":`dropdown-menu-content`,className:f,...r}),t[9]=r,t[10]=f,t[11]=p):p=t[11];let m;return t[12]!==c||t[13]!==l||t[14]!==u||t[15]!==d||t[16]!==p?(m=(0,X.jsx)(vf,{children:(0,X.jsx)(bf,{className:`isolate z-50 outline-none`,align:c,alignOffset:l,side:u,sideOffset:d,children:p})}),t[12]=c,t[13]=l,t[14]=u,t[15]=d,t[16]=p,t[17]=m):m=t[17],m}function Gp(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,X.jsx)(Ud,{"data-slot":`dropdown-menu-group`,...n}),t[2]=n,t[3]=r),r}function Kp(e){let t=(0,$.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,inset:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=Ye(`px-2 py-1.5 text-xs text-muted-foreground data-inset:pl-7.5`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==i||t[8]!==a?(o=(0,X.jsx)(Wd,{"data-slot":`dropdown-menu-label`,"data-inset":r,className:a,...i}),t[6]=r,t[7]=i,t[8]=a,t[9]=o):o=t[9],o}function qp(e){let t=(0,$.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,inset:r,variant:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`default`:a,s;t[5]===n?s=t[6]:(s=Ye(`group/dropdown-menu-item relative flex min-h-7 cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7.5 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 data-[variant=destructive]:*:[svg]:text-destructive`,n),t[5]=n,t[6]=s);let c;return t[7]!==r||t[8]!==i||t[9]!==s||t[10]!==o?(c=(0,X.jsx)(Kd,{"data-slot":`dropdown-menu-item`,"data-inset":r,"data-variant":o,className:s,...i}),t[7]=r,t[8]=i,t[9]=s,t[10]=o,t[11]=c):c=t[11],c}function Jp(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Ye(`-mx-1 my-1 h-px bg-border/50`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(Bf,{"data-slot":`dropdown-menu-separator`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Yp(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Ye(`pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-xs bg-muted px-1 font-sans text-[0.625rem] font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(`kbd`,{"data-slot":`kbd`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Xp=pe({id:U,name:U,signOut:h}),Zp=ye(s).atom(N(v(`/auth/user`),o(V),o(n(Xp)))),Qp=ee(k(``));function $p(){return g(m(Gt(Qp)))}function em(){let e=(0,$.c)(27),t=Gt(Zp);if(!i(t))return null;let n;e[0]===t.value.id?n=e[1]:(n=S(`github:`,``)(t.value.id),e[0]=t.value.id,e[1]=n);let r=`https://avatars.githubusercontent.com/u/${n}?s=96`,a;e[2]!==t.value.name||e[3]!==r?(a=(0,X.jsx)(xd,{src:r,alt:t.value.name}),e[2]=t.value.name,e[3]=r,e[4]=a):a=e[4];let o;e[5]===t.value.name?o=e[6]:(o=fe(x(0,1)(t.value.name)),e[5]=t.value.name,e[6]=o);let s;e[7]===o?s=e[8]:(s=(0,X.jsx)(Sd,{children:o}),e[7]=o,e[8]=s);let c;e[9]!==a||e[10]!==s?(c=(0,X.jsx)(Up,{"aria-label":`Account`,children:(0,X.jsxs)(bd,{size:`sm`,children:[a,s]})}),e[9]=a,e[10]=s,e[11]=c):c=e[11];let l;e[12]===t.value.name?l=e[13]:(l=(0,X.jsx)(Gp,{children:(0,X.jsxs)(Kp,{children:[`@`,t.value.name]})}),e[12]=t.value.name,e[13]=l);let u;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,X.jsx)(Jp,{}),e[14]=u):u=e[14];let d=!t.value.signOut,f;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(f=new URLSearchParams({next:location.href}),e[15]=f):f=e[15];let p=`/auth/sign-out?${f}`,m;e[16]===p?m=e[17]:(m=(0,X.jsx)(`a`,{"aria-label":`Sign out`,href:p}),e[16]=p,e[17]=m);let h;e[18]!==m||e[19]!==d?(h=(0,X.jsx)(qp,{variant:`destructive`,disabled:d,render:m,children:`Sign out`}),e[18]=m,e[19]=d,e[20]=h):h=e[20];let g;e[21]!==h||e[22]!==l?(g=(0,X.jsxs)(Wp,{align:`end`,className:`w-auto min-w-48`,children:[l,u,h]}),e[21]=h,e[22]=l,e[23]=g):g=e[23];let _;return e[24]!==g||e[25]!==c?(_=(0,X.jsxs)(Hp,{children:[c,g]}),e[24]=g,e[25]=c,e[26]=_):_=e[26],_}function tm(e){let t=(0,$.c)(66),[n,r]=Xt(Qp),[i,o]=(0,Y.useState)(!1),s;t[0]===n?s=t[1]:(s=()=>n!==``,t[0]=n,t[1]=s);let[c,l]=(0,Y.useState)(s),u=(0,Y.useRef)(null),f=(0,Y.useRef)(null),p,h;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{let e=function(e){e.key===`k`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),l(!0),u.current?.focus())};return addEventListener(`keydown`,e),()=>removeEventListener(`keydown`,e)},h=[],t[2]=p,t[3]=h):(p=t[2],h=t[3]),(0,Y.useEffect)(p,h);let _,v,y,b,x,S,C,w,T,E,D;if(t[4]!==i||t[5]!==e.commands||t[6]!==e.label||t[7]!==n||t[8]!==c||t[9]!==r){let o;t[21]===n?o=t[22]:(o=e=>d(g(m(n)))(g(e.label)),t[21]=n,t[22]=o),v=Ce(e.commands,o);let s,p;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{(0,tn.flushSync)(()=>l(!0)),u.current?.focus()},p=(0,X.jsx)(Dt,{}),t[23]=s,t[24]=p):(s=t[23],p=t[24]),t[25]===e.label?b=t[26]:(b=(0,X.jsx)(rt,{variant:`ghost`,size:`icon-sm`,"aria-label":e.label,className:`ml-auto sm:hidden`,onClick:s,children:p}),t[25]=e.label,t[26]=b),D=f;let h=c&&`max-sm:bg-background max-sm:absolute max-sm:inset-0 max-sm:z-10 max-sm:flex max-sm:max-w-none max-sm:items-center max-sm:gap-2 max-sm:px-3`;t[27]===h?y=t[28]:(y=Ye(`mx-auto hidden w-full max-w-sm sm:flex lg:absolute lg:left-1/2 lg:-translate-x-1/2`,h),t[27]=h,t[28]=y),_=Il,x=v,S=null,C=nm,w=n,t[29]===r?T=t[30]:(T=(e,t)=>{t.reason!==`item-press`&&r(e)},t[29]=r,t[30]=T),E=i&&a(v),t[4]=i,t[5]=e.commands,t[6]=e.label,t[7]=n,t[8]=c,t[9]=r,t[10]=_,t[11]=v,t[12]=y,t[13]=b,t[14]=x,t[15]=S,t[16]=C,t[17]=w,t[18]=T,t[19]=E,t[20]=D}else _=t[10],v=t[11],y=t[12],b=t[13],x=t[14],S=t[15],C=t[16],w=t[17],T=t[18],E=t[19],D=t[20];let O=n!==``,k;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(k=()=>o(!0),t[31]=k):k=t[31];let A;t[32]!==v||t[33]!==i||t[34]!==r?(A=e=>{e.key!==`Escape`||i&&a(v)||(r(``),l(!1),e.currentTarget.blur())},t[32]=v,t[33]=i,t[34]=r,t[35]=A):A=t[35];let j;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,X.jsx)(jp,{children:(0,X.jsx)(Dt,{})}),t[36]=j):j=t[36];let M;t[37]===n?M=t[38]:(M=n===``&&(0,X.jsx)(jp,{align:`inline-end`,className:`max-sm:hidden`,children:(0,X.jsx)(Yp,{children:`⌘K`})}),t[37]=n,t[38]=M);let N;t[39]!==e.label||t[40]!==O||t[41]!==A||t[42]!==M?(N=(0,X.jsxs)(Rp,{ref:u,"aria-label":e.label,placeholder:`Search or run a command`,showTrigger:!1,showClear:O,className:`w-full`,onFocus:k,onKeyDown:A,children:[j,M]}),t[39]=e.label,t[40]=O,t[41]=A,t[42]=M,t[43]=N):N=t[43];let P;t[44]===r?P=t[45]:(P=(0,X.jsx)(zp,{anchor:f,children:(0,X.jsx)(Bp,{children:e=>(0,X.jsxs)(Vp,{value:e,onClick:()=>{r(``),l(!1),e.run()},children:[e.icon,e.label]},e.label)})}),t[44]=r,t[45]=P);let F;t[46]!==_||t[47]!==N||t[48]!==P||t[49]!==x||t[50]!==S||t[51]!==C||t[52]!==w||t[53]!==T||t[54]!==E?(F=(0,X.jsxs)(_,{items:x,filter:S,itemToStringValue:C,value:w,onValueChange:T,open:E,onOpenChange:o,autoHighlight:!0,children:[N,P]}),t[46]=_,t[47]=N,t[48]=P,t[49]=x,t[50]=S,t[51]=C,t[52]=w,t[53]=T,t[54]=E,t[55]=F):F=t[55];let I;t[56]===r?I=t[57]:(I=(0,X.jsx)(rt,{variant:`ghost`,size:`sm`,className:`sm:hidden`,onClick:()=>{r(``),l(!1)},children:`Cancel`}),t[56]=r,t[57]=I);let L;t[58]!==y||t[59]!==F||t[60]!==I||t[61]!==D?(L=(0,X.jsxs)(`div`,{ref:D,className:y,children:[F,I]}),t[58]=y,t[59]=F,t[60]=I,t[61]=D,t[62]=L):L=t[62];let R;return t[63]!==b||t[64]!==L?(R=(0,X.jsxs)(X.Fragment,{children:[b,L]}),t[63]=b,t[64]=L,t[65]=R):R=t[65],R}function nm(e){return e.label}function rm(e){let t=(0,$.c)(25),n;t[0]===e.icon?n=t[1]:(n=(0,X.jsx)(`img`,{src:e.icon,alt:``,className:`pixelated size-8`}),t[0]=e.icon,t[1]=n);let r;t[2]===e.name?r=t[3]:(r=(0,X.jsx)(`span`,{className:`font-mono text-sm font-medium`,children:e.name}),t[2]=e.name,t[3]=r);let i;t[4]!==n||t[5]!==r?(i=(0,X.jsxs)(`a`,{href:`/`,className:`-ml-1 flex shrink-0 items-center gap-1.5`,children:[n,r]}),t[4]=n,t[5]=r,t[6]=i):i=t[6];let a;t[7]===e.tabs?a=t[8]:(a=e.tabs!==void 0&&(0,X.jsx)(`nav`,{"aria-label":`Sections`,className:`ml-2 flex items-center gap-1`,children:e.tabs}),t[7]=e.tabs,t[8]=a);let o;t[9]===e.commands?o=t[10]:(o=e.commands===void 0&&(0,X.jsx)(`span`,{className:`flex-1`}),t[9]=e.commands,t[10]=o);let s;t[11]!==e.commands||t[12]!==e.name?(s=e.commands!==void 0&&(0,X.jsx)(tm,{commands:e.commands,label:`Search ${e.name}`}),t[11]=e.commands,t[12]=e.name,t[13]=s):s=t[13];let c;t[14]===e.account?c=t[15]:(c=e.account??(0,X.jsx)(em,{}),t[14]=e.account,t[15]=c);let l;t[16]!==e.action||t[17]!==c?(l=(0,X.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 lg:ml-auto`,children:[e.action,c]}),t[16]=e.action,t[17]=c,t[18]=l):l=t[18];let u;return t[19]!==i||t[20]!==a||t[21]!==o||t[22]!==s||t[23]!==l?(u=(0,X.jsxs)(`header`,{className:`bg-background border-border sticky top-0 z-30 flex h-12 shrink-0 items-center gap-2 border-b px-4`,children:[i,a,o,s,l]}),t[19]=i,t[20]=a,t[21]=o,t[22]=s,t[23]=l,t[24]=u):u=t[24],u}function im(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Ye(`flex items-center gap-2 text-xs/relaxed leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(`label`,{"data-slot":`label`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var am=Xe(`group/field flex w-full gap-2 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:`flex-col *:w-full [&>.sr-only]:w-auto`,horizontal:`flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`,responsive:`flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`}},defaultVariants:{orientation:`vertical`}});function om(e){let t=(0,$.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`vertical`:i,o;t[4]!==n||t[5]!==a?(o=Ye(am({orientation:a}),n),t[4]=n,t[5]=a,t[6]=o):o=t[6];let s;return t[7]!==a||t[8]!==r||t[9]!==o?(s=(0,X.jsx)(`div`,{role:`group`,"data-slot":`field`,"data-orientation":a,className:o,...r}),t[7]=a,t[8]=r,t[9]=o,t[10]=s):s=t[10],s}function sm(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Ye(`group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-input/40 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-2 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/30 *:data-[slot=field]:p-2 dark:has-data-checked:bg-primary/10`,`has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(im,{"data-slot":`field-label`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function cm(e){let t=(0,$.c)(15),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,errors:i,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o;bb0:{if(n){o=n;break bb0}if(!i?.length){o=null;break bb0}let e;t[5]===i?e=t[6]:(e=[...new Map(i.map(um)).values()],t[5]=i,t[6]=e);let r=e;if(r?.length==1){o=r[0]?.message;break bb0}let a;t[7]===r?a=t[8]:(a=(0,X.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:r.map(lm)}),t[7]=r,t[8]=a),o=a}let s=o;if(!s)return null;let c;t[9]===r?c=t[10]:(c=Ye(`text-xs/relaxed font-normal text-destructive`,r),t[9]=r,t[10]=c);let l;return t[11]!==s||t[12]!==a||t[13]!==c?(l=(0,X.jsx)(`div`,{role:`alert`,"data-slot":`field-error`,className:c,...a,children:s}),t[11]=s,t[12]=a,t[13]=c,t[14]=l):l=t[14],l}function lm(e,t){return e?.message&&(0,X.jsx)(`li`,{children:e.message},t)}function um(e){return[e?.message,e]}function dm(e){let t=(0,$.c)(5),n=e.className,r;t[0]===e.result?r=t[1]:(r=E(I(xe(e.result),fm)),t[0]=e.result,t[1]=r);let i;return t[2]!==e.className||t[3]!==r?(i=(0,X.jsx)(cm,{className:n,children:r}),t[2]=e.className,t[3]=r,t[4]=i):i=t[4],i}function fm(e){return e.message}var pm=Xe(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-2.5!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border bg-input/20 text-foreground dark:bg-input/30 [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function mm(e){let t=(0,$.c)(13),n,r,i,a,o;if(t[0]!==e){let{className:s,variant:c,render:l,...u}=e;n=l,o=c===void 0?`default`:c,a=dd,r=`span`,i=je({className:Ye(pm({variant:o}),s)},u),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o}else n=t[1],r=t[2],i=t[3],a=t[4],o=t[5];let s;t[6]===o?s=t[7]:(s={slot:`badge`,variant:o},t[6]=o,t[7]=s);let c;return t[8]!==n||t[9]!==r||t[10]!==i||t[11]!==s?(c={defaultTagName:r,props:i,render:n,state:s},t[8]=n,t[9]=r,t[10]=i,t[11]=s,t[12]=c):c=t[12],a(c)}var hm=class extends ne()(`DeployError`,{cause:ae(de()),message:U}){},gm=pe({command:z(l(U)),cpu:z(f),memory:f,name:U,parent:D,pid:D}),_m=pe({address:z(U),bindings:z(l(pe({address:U,port:D,protocol:O([`tcp`,`udp`])}))),detail:U,failure:z(pe({at:z(f),reason:U})),hostname:z(U),http:z(h),id:U,kind:O([`service`,`container`,`port`,`exposure`,`peer`]),links:z(l(U)),name:U,next:z(f),owned:z(h),port:z(D),process:z(U),processes:z(l(gm)),protocol:z(O([`tcp`,`udp`])),publicAccess:z(h),scheduled:z(h),scope:z(O([`user`,`system`])),self:z(h),state:U,ui:z(h),unit:z(U),url:U,worker:U}),vm=pe({items:l(_m),sources:l(pe({error:U,name:U})),time:f,workers:z(l(U))});pe({name:y,url:ft}),U.check(R(/^[\w-]+=https?:\/\/[^,=\s]+(?:,[\w-]+=https?:\/\/[^,=\s]+)*$/u));var ym=pe({DNSName:U,HostName:U,OS:U,Online:h,TailscaleIPs:l(U)});pe({Peer:z(ge(U,ym)),Self:z(ym)}),pe({AllowFunnel:z(ge(U,h)),TCP:z(ge(U,T)),Web:z(ge(U,pe({Handlers:ge(U,pe({Proxy:z(U)}))})))});var bm=pe({hostname:U.check(F(253),R(/^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)*[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/u)),kind:O([`tailnet`,`public`]),name:y.check(F(260)),port:D.check(ve({maximum:65535,minimum:1024})),publicAccess:h}),xm=pe({...bm.fields,target:z(U)}),Sm=pe({name:U,target:z(U)}),Cm=pe({name:U,scope:O([`system`,`user`]),target:z(U)});pe({activates:t(U),next:t(f)}),pe({active:U,description:U,sub:U,unit:U}),pe({ID:U,Labels:z(U),Names:U,Ports:U,State:U,Status:U});var wm=pe({minutes:O([1,10,60,1440,10080])});pe({cores:z(l(pe({id:U,idle:f,total:f}))),cpuIdle:f,cpuTotal:f,diskRead:f,diskWrite:f,networkReceive:f,networkSend:f,time:f,uptime:f});var Tm=pe({apps:z(l(pe({cpu:z(f),id:U,memory:f}))),cores:z(l(pe({id:U,usage:z(f)}))),cpu:z(f),diskRead:z(f),diskWrite:z(f),disks:l(pe({mount:U,total:f,used:f})),load:z(l(f)),memoryAvailable:z(f),memoryBuffers:z(f),memoryCached:z(f),memoryTotal:f,memoryUsed:f,networkReceive:z(f),networkSend:z(f),since:z(f),storageUsed:z(f),swapTotal:f,swapUsed:f,time:f,uptime:z(f)}),Em=pe({cpuModel:z(U),error:U,samples:l(Tm),stale:h,time:f,worker:U});pe({cpuModel:z(U),current:z(Tm),error:U,intervalSeconds:f,recordedSince:z(f),series:pe({cpu:l(L(f)),diskRead:l(L(f)),diskWrite:l(L(f)),memoryUsed:l(f),networkReceive:l(L(f)),networkSend:l(L(f)),storageUsed:l(f),swapUsed:l(f),time:l(f)}),stale:h,time:f,worker:U});var Dm=class extends se(_e(`deploy.metrics`,{error:A([ot,hm]),payload:wm,stream:!0,success:l(Em)}),_e(`deploy.history`,{error:A([ot,hm]),payload:wm,success:Em}),_e(`deploy.inventory`,{error:A([ot,hm]),stream:!0,success:vm}),_e(`deploy.snapshot`,{error:A([ot,hm]),success:vm}),_e(`deploy.expose`,{error:A([ot,hm]),payload:xm,success:U}),_e(`deploy.hide`,{error:A([ot,hm]),payload:Sm}),_e(`deploy.run`,{error:A([ot,hm]),payload:Cm})).middleware(_t){},Om=class extends me()(`@deslop/deploy/lib/utils/RpcClient`,{group:Dm,protocol:pt(`@deslop/deploy`)}){},km=ee(Om.runtime.atom(N(Om,H(e=>e(`deploy.inventory`,void 0)),c,J))),Am=k(oe()),jm=Om.runtime.fn((e,t)=>N(o(Om,t=>t(`deploy.expose`,e)),_(()=>re(()=>t.set(Am,oe()))))),Mm=ie(e=>ie(t=>Om.runtime.fn(()=>o(Om,n=>n(`deploy.hide`,{name:t,target:e}))))),Nm=ie(e=>Om.runtime.fn(e=>o(Om,t=>t(`deploy.run`,e)))),Pm=ie(e=>Om.runtime.atom(N(Om,H(t=>t(`deploy.metrics`,{minutes:e})),c,J)));function Fm(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,X.jsx)(ap,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function Im(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,X.jsx)(Qf,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function Lm(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,X.jsx)(Gf,{"data-slot":`dialog-close`,...n}),t[2]=n,t[3]=r),r}function Rm(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Ye(`fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(Wf,{"data-slot":`dialog-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function zm(e){let t=(0,$.c)(15),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,showCloseButton:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0||a,s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,X.jsx)(Rm,{}),t[5]=s):s=t[5];let c;t[6]===r?c=t[7]:(c=Ye(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-xs/relaxed text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,r),t[6]=r,t[7]=c);let l;t[8]===o?l=t[9]:(l=o&&(0,X.jsxs)(Gf,{"data-slot":`dialog-close`,render:(0,X.jsx)(rt,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`}),children:[(0,X.jsx)(kt,{}),(0,X.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[8]=o,t[9]=l);let u;return t[10]!==n||t[11]!==i||t[12]!==c||t[13]!==l?(u=(0,X.jsxs)(Im,{children:[s,(0,X.jsxs)(Zf,{"data-slot":`dialog-content`,className:c,...i,children:[n,l]})]}),t[10]=n,t[11]=i,t[12]=c,t[13]=l,t[14]=u):u=t[14],u}function Bm(e){let t=(0,$.c)(14),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,showCloseButton:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a!==void 0&&a,s;t[5]===r?s=t[6]:(s=Ye(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,r),t[5]=r,t[6]=s);let c;t[7]===o?c=t[8]:(c=o&&(0,X.jsx)(Gf,{render:(0,X.jsx)(rt,{variant:`outline`}),children:`Close`}),t[7]=o,t[8]=c);let l;return t[9]!==n||t[10]!==i||t[11]!==s||t[12]!==c?(l=(0,X.jsxs)(`div`,{"data-slot":`dialog-footer`,className:s,...i,children:[n,c]}),t[9]=n,t[10]=i,t[11]=s,t[12]=c,t[13]=l):l=t[13],l}function Vm(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Ye(`text-sm font-medium`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(op,{"data-slot":`dialog-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Hm(e){let t=(0,$.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`horizontal`:i,o;t[4]===n?o=t[5]:(o=Ye(`group/tabs flex gap-2 data-horizontal:flex-col`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,X.jsx)(pp,{"data-slot":`tabs`,"data-orientation":a,className:o,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}var Um=Xe(`group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none`,{variants:{variant:{default:`bg-muted`,line:`gap-1 bg-transparent`}},defaultVariants:{variant:`default`}});function Wm(e){let t=(0,$.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o;t[4]!==n||t[5]!==a?(o=Ye(Um({variant:a}),n),t[4]=n,t[5]=a,t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==o||t[9]!==a?(s=(0,X.jsx)(Dp,{"data-slot":`tabs-list`,"data-variant":a,className:o,...r}),t[7]=r,t[8]=o,t[9]=a,t[10]=s):s=t[10],s}function Gm(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Ye(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-xs font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start group-data-vertical/tabs:py-[calc(--spacing(1.25))] hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(yp,{"data-slot":`tabs-trigger`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Km(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Ye(`flex-1 text-xs/relaxed outline-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(Sp,{"data-slot":`tabs-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var qm=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%20shape-rendering='crispEdges'%3e%3cpath%20fill='%23da702c'%20d='M17%2021h1v22h-1zM18%2022h2v22h-2zM20%2023h2v22h-2zM22%2024h2v22h-2zM24%2025h2v22h-2zM26%2026h2v5h-2zM28%2027h2v5h-2zM30%2028h2v22h-2zM32%2029h2v22h-2zM34%2030h2v22h-2zM26%2031h1v17h-1zM36%2031h2v22h-2zM29%2032h1v17h-1zM38%2032h1v22h-1zM27%2041h1v7h-1zM28%2042h1v7h-1z'/%3e%3cpath%20fill='%23bc5215'%20d='M46%2028h1v22h-1zM44%2029h2v22h-2zM42%2030h2v22h-2zM40%2031h2v22h-2zM39%2032h1v22h-1z'/%3e%3cpath%20fill='%230a0a0a'%20d='M29%209h2v1h-2zM27%2010h2v1h-2zM31%2010h3v1h-3zM25%2011h2v1h-2zM34%2011h1v1h-1zM24%2012h1v1h-1zM35%2012h1v1h-1zM23%2013h1v2h-1zM36%2013h1v1h-1zM37%2014h1v1h-1zM22%2015h1v3h-1zM29%2015h1v1h-1zM38%2015h1v2h-1zM28%2016h1v3h-1zM30%2016h2v1h-2zM32%2017h1v1h-1zM39%2017h1v2h-1zM20%2018h2v1h-2zM29%2018h1v1h-1zM33%2018h1v1h-1zM18%2019h2v1h-2zM30%2019h2v1h-2zM34%2019h1v3h-1zM40%2019h1v2h-1zM17%2020h1v1h-1zM32%2020h2v1h-2zM16%2021h1v22h-1zM41%2021h1v4h-1zM42%2025h2v1h-2zM44%2026h2v1h-2zM46%2027h1v1h-1zM47%2028h1v22h-1zM17%2043h1v1h-1zM18%2044h2v1h-2zM20%2045h2v1h-2zM22%2046h2v1h-2zM24%2047h2v1h-2zM26%2048h2v1h-2zM28%2049h2v1h-2zM30%2050h2v1h-2zM46%2050h1v1h-1zM32%2051h2v1h-2zM44%2051h2v1h-2zM34%2052h2v1h-2zM42%2052h2v1h-2zM36%2053h2v1h-2zM40%2053h2v1h-2zM38%2054h2v1h-2z'/%3e%3cpath%20fill='%23ec8b49'%20d='M22%2018h1v5h-1zM20%2019h2v3h-2zM28%2019h2v7h-2zM18%2020h2v1h-2zM30%2020h2v7h-2zM23%2021h1v2h-1zM32%2021h2v7h-2zM24%2022h4v2h-4zM34%2022h2v7h-2zM26%2024h2v1h-2zM41%2025h1v5h-1zM42%2026h2v3h-2zM44%2027h2v1h-2zM36%2028h2v2h-2zM40%2028h1v2h-1zM38%2029h2v2h-2z'/%3e%3cpath%20fill='%23b7b5ac'%20d='M27%2011h2v4h-2zM25%2012h2v5h-2zM29%2012h3v3h-3zM24%2013h1v9h-1zM32%2013h1v4h-1zM33%2014h1v4h-1zM23%2015h1v6h-1zM27%2015h1v1h-1zM30%2015h2v1h-2zM34%2015h1v4h-1zM35%2016h1v6h-1zM25%2017h1v5h-1zM36%2018h1v10h-1zM37%2020h1v8h-1zM38%2022h1v7h-1z'/%3e%3cpath%20fill='%23878580'%20d='M28%2015h1v1h-1zM27%2016h1v6h-1zM26%2017h1v5h-1zM37%2019h3v1h-3zM38%2020h2v2h-2zM40%2021h1v7h-1zM39%2022h1v7h-1z'/%3e%3cpath%20fill='%23f9ae77'%20d='M18%2021h2v1h-2zM20%2022h2v1h-2zM22%2023h2v1h-2zM24%2024h2v1h-2zM26%2025h2v1h-2zM28%2026h2v1h-2zM30%2027h2v1h-2zM32%2028h2v1h-2zM44%2028h2v1h-2zM34%2029h2v1h-2zM42%2029h2v1h-2zM36%2030h2v1h-2zM40%2030h2v1h-2zM38%2031h2v1h-2z'/%3e%3cpath%20fill='%23cecdc3'%20d='M29%2010h2v2h-2zM31%2011h3v1h-3zM32%2012h3v1h-3zM33%2013h3v1h-3zM34%2014h3v1h-3zM35%2015h3v1h-3zM36%2016h2v2h-2zM38%2017h1v2h-1zM37%2018h1v1h-1z'/%3e%3cpath%20fill='%23000000'%20fill-opacity='0.353'%20d='M19%2045h1v1h-1zM20%2046h2v1h-2zM22%2047h2v1h-2zM24%2048h2v1h-2zM26%2049h2v1h-2zM28%2050h2v1h-2zM30%2051h2v1h-2zM32%2052h2v1h-2zM44%2052h1v1h-1zM34%2053h2v1h-2zM42%2053h2v1h-2zM36%2054h2v1h-2zM40%2054h2v1h-2zM38%2055h2v1h-2z'/%3e%3cpath%20fill='%231c1b1a'%20d='M27%2031h1v10h-1zM28%2032h1v10h-1z'/%3e%3c/svg%3e`,Jm=`/assets/icon-B_7Zk4lP.svg`,Ym=`/assets/icon-61pmFc-p.svg`,Xm=`/assets/icon-BGymHyAZ.svg`,Zm=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2018%2018'%20shape-rendering='crispEdges'%3e%3cpath%20fill='%23fd7357'%20d='M12%200h1v1h-1zM11%201h1v1h-1zM10%202h2v1h-2zM9%203h2v1h-2zM8%204h3v1h-3zM7%205h3v1h-3zM6%206h4v1h-4zM5%207h4v1h-4zM4%208h5v1h-5zM3%209h10v1h-10zM8%2010h4v1h-4zM7%2011h4v1h-4zM7%2012h3v1h-3zM6%2013h3v1h-3zM6%2014h2v1h-2zM5%2015h2v1h-2zM5%2016h1v1h-1zM4%2017h1v1h-1z'/%3e%3cpath%20fill='%23050505'%20d='M13%200h1v1h-1zM3%201h1v1h-1zM7%201h1v1h-1zM12%201h1v1h-1zM6%202h1v1h-1zM12%202h1v1h-1zM5%203h1v1h-1zM11%203h1v1h-1zM4%204h1v1h-1zM11%204h1v1h-1zM10%205h1v1h-1zM10%206h1v1h-1zM9%207h1v1h-1zM9%208h1v1h-1zM13%209h1v1h-1zM12%2010h1v1h-1zM11%2011h1v1h-1zM10%2012h1v1h-1zM9%2013h1v1h-1zM8%2014h1v1h-1zM12%2014h1v1h-1zM7%2015h1v1h-1zM11%2015h1v1h-1zM6%2016h1v1h-1zM10%2016h1v1h-1zM5%2017h1v1h-1zM13%2017h1v1h-1z'/%3e%3c/svg%3e`,Qm=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%20shape-rendering='crispEdges'%3e%3cpath%20fill='%23403e3c'%20d='M16%2019h1v16h-1zM17%2022h2v14h-2zM19%2023h2v1h-2zM21%2024h2v1h-2zM23%2025h2v1h-2zM19%2026h2v11h-2zM25%2026h2v1h-2zM21%2027h2v11h-2zM27%2027h2v1h-2zM23%2028h2v1h-2zM28%2028h3v3h-3zM25%2029h2v1h-2zM31%2029h2v4h-2zM27%2030h1v1h-1zM33%2030h2v4h-2zM38%2030h1v16h-1zM23%2031h2v8h-2zM29%2031h2v1h-2zM35%2031h2v10h-2zM39%2031h1v16h-1zM25%2032h2v8h-2zM37%2032h1v14h-1zM27%2033h2v1h-2zM29%2034h2v1h-2zM34%2034h1v6h-1zM31%2035h2v1h-2zM27%2036h2v5h-2zM32%2036h2v3h-2zM29%2037h2v5h-2zM31%2038h1v1h-1zM33%2039h1v1h-1zM31%2041h2v2h-2zM33%2042h2v2h-2zM35%2043h2v2h-2z'/%3e%3cpath%20fill='%235abdac'%20d='M19%2013h2v5h-2zM17%2014h2v3h-2zM21%2014h2v5h-2zM15%2015h2v1h-2zM23%2015h2v5h-2zM29%2015h2v8h-2zM25%2016h4v5h-4zM31%2016h2v8h-2zM33%2017h2v8h-2zM35%2018h2v8h-2zM37%2019h2v8h-2zM39%2020h2v8h-2zM17%2021h2v1h-2zM27%2021h2v1h-2zM41%2021h2v8h-2zM19%2022h2v1h-2zM43%2022h2v6h-2zM21%2023h2v1h-2zM45%2023h2v4h-2zM23%2024h2v1h-2zM47%2024h2v1h-2zM19%2025h2v1h-2zM25%2025h2v1h-2zM21%2026h2v1h-2zM27%2026h2v1h-2zM23%2027h2v1h-2zM29%2027h2v1h-2zM25%2028h2v1h-2zM31%2028h2v1h-2zM27%2029h1v1h-1zM33%2029h2v1h-2zM23%2030h2v1h-2zM35%2030h2v1h-2zM25%2031h2v1h-2zM37%2031h1v1h-1zM27%2032h2v1h-2zM29%2033h2v1h-2zM31%2034h2v1h-2zM27%2035h2v1h-2zM33%2035h1v1h-1zM29%2036h2v1h-2zM31%2037h1v1h-1zM31%2040h2v1h-2zM33%2041h2v1h-2zM35%2042h2v1h-2z'/%3e%3cpath%20fill='%233aa99f'%20d='M14%2016h1v20h-1zM15%2017h2v2h-2zM17%2018h2v2h-2zM15%2019h1v18h-1zM19%2019h2v2h-2zM21%2020h2v2h-2zM23%2021h2v2h-2zM25%2022h2v2h-2zM27%2023h2v2h-2zM29%2024h2v2h-2zM31%2025h2v2h-2zM33%2026h2v2h-2zM35%2027h2v2h-2zM37%2028h2v2h-2zM39%2029h2v2h-2zM41%2030h1v20h-1zM40%2031h1v18h-1zM16%2035h1v2h-1zM17%2036h2v2h-2zM19%2037h2v2h-2zM21%2038h2v2h-2zM23%2039h2v2h-2zM25%2040h2v2h-2zM27%2041h2v2h-2zM29%2042h2v2h-2zM31%2043h2v2h-2zM33%2044h2v2h-2zM35%2045h2v2h-2zM37%2046h2v2h-2zM39%2047h1v2h-1z'/%3e%3cpath%20fill='%2324837b'%20d='M49%2025h1v14h-1zM47%2026h2v14h-2zM45%2028h2v20h-2zM43%2029h2v20h-2zM42%2030h1v20h-1zM47%2040h1v7h-1z'/%3e%3cpath%20fill='%230a0a0a'%20d='M19%2012h2v1h-2zM17%2013h2v1h-2zM21%2013h2v1h-2zM15%2014h2v1h-2zM23%2014h2v1h-2zM29%2014h2v1h-2zM14%2015h1v1h-1zM25%2015h4v1h-4zM31%2015h2v1h-2zM13%2016h1v20h-1zM33%2016h2v1h-2zM35%2017h2v1h-2zM37%2018h2v1h-2zM39%2019h2v1h-2zM41%2020h2v1h-2zM43%2021h2v1h-2zM45%2022h2v1h-2zM47%2023h2v1h-2zM49%2024h1v1h-1zM50%2025h1v14h-1zM14%2036h1v1h-1zM15%2037h2v1h-2zM17%2038h2v1h-2zM19%2039h2v1h-2zM49%2039h1v1h-1zM21%2040h2v1h-2zM48%2040h1v7h-1zM22%2041h1v1h-1zM21%2042h1v2h-1zM22%2044h1v1h-1zM23%2045h2v1h-2zM25%2046h2v1h-2zM27%2047h2v1h-2zM47%2047h1v1h-1zM29%2048h2v1h-2zM45%2048h2v1h-2zM31%2049h2v1h-2zM43%2049h2v1h-2zM33%2050h2v1h-2zM41%2050h2v1h-2zM35%2051h2v1h-2zM39%2051h2v1h-2zM37%2052h2v1h-2z'/%3e%3cpath%20fill='%2387d3c3'%20d='M15%2016h2v1h-2zM17%2017h2v1h-2zM19%2018h2v1h-2zM21%2019h2v1h-2zM17%2020h2v1h-2zM23%2020h2v1h-2zM19%2021h2v1h-2zM25%2021h2v1h-2zM21%2022h2v1h-2zM27%2022h2v1h-2zM23%2023h2v1h-2zM29%2023h2v1h-2zM19%2024h2v1h-2zM25%2024h2v1h-2zM31%2024h2v1h-2zM21%2025h2v1h-2zM27%2025h2v1h-2zM33%2025h2v1h-2zM47%2025h2v1h-2zM23%2026h2v1h-2zM29%2026h2v1h-2zM35%2026h2v1h-2zM25%2027h2v1h-2zM31%2027h2v1h-2zM37%2027h2v1h-2zM45%2027h2v1h-2zM27%2028h1v1h-1zM33%2028h2v1h-2zM39%2028h2v1h-2zM43%2028h2v1h-2zM23%2029h2v1h-2zM35%2029h2v1h-2zM41%2029h2v1h-2zM25%2030h2v1h-2zM37%2030h1v1h-1zM27%2031h2v1h-2zM29%2032h2v1h-2zM31%2033h2v1h-2zM27%2034h2v1h-2zM33%2034h1v1h-1zM29%2035h2v1h-2zM31%2036h1v1h-1zM31%2039h2v1h-2zM33%2040h2v1h-2zM35%2041h2v1h-2z'/%3e%3cpath%20fill='%23b7b5ac'%20d='M22%2042h1v2h-1zM23%2043h2v2h-2zM25%2044h2v2h-2zM27%2045h2v2h-2zM29%2046h2v2h-2zM31%2047h2v2h-2zM33%2048h2v2h-2zM35%2049h2v2h-2zM37%2050h1v2h-1z'/%3e%3cpath%20fill='%23cecdc3'%20d='M23%2041h2v1h-2zM25%2042h2v1h-2zM27%2043h2v1h-2zM29%2044h2v1h-2zM31%2045h2v1h-2zM33%2046h2v1h-2zM35%2047h2v1h-2zM37%2048h2v1h-2z'/%3e%3cpath%20fill='%23e6e4d9'%20d='M23%2042h2v1h-2zM25%2043h2v1h-2zM27%2044h2v1h-2zM29%2045h2v1h-2zM31%2046h2v1h-2zM33%2047h2v1h-2zM35%2048h2v1h-2zM37%2049h2v1h-2z'/%3e%3cpath%20fill='%23000000'%20fill-opacity='0.353'%20d='M24%2046h1v1h-1zM25%2047h2v1h-2zM27%2048h2v1h-2zM29%2049h2v1h-2zM31%2050h2v1h-2zM33%2051h2v1h-2zM35%2052h2v1h-2zM37%2053h2v1h-2z'/%3e%3cpath%20fill='%23878580'%20d='M39%2049h2v2h-2zM38%2050h1v2h-1z'/%3e%3c/svg%3e`,$m=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%20shape-rendering='crispEdges'%3e%3cpath%20fill='%23ce5d97'%20d='M9%2026h10v4h-10zM9%2030h1v6h-1zM12%2030h7v2h-7zM19%2031h10v4h-10zM12%2032h3v6h-3zM16%2032h3v1h-3zM17%2033h2v7h-2zM10%2034h2v3h-2zM19%2035h1v6h-1zM22%2035h7v2h-7zM15%2036h1v3h-1zM29%2036h10v4h-10zM16%2037h1v3h-1zM22%2037h3v6h-3zM26%2037h3v1h-3zM14%2038h1v1h-1zM27%2038h2v7h-2zM20%2039h2v3h-2zM18%2040h1v1h-1zM29%2040h1v6h-1zM32%2040h7v2h-7zM25%2041h1v3h-1zM26%2042h1v3h-1zM32%2042h3v6h-3zM36%2042h3v1h-3zM24%2043h1v1h-1zM37%2043h2v7h-2zM30%2044h2v3h-2zM28%2045h1v1h-1zM35%2046h1v3h-1zM36%2047h1v3h-1zM34%2048h1v1h-1zM38%2050h1v1h-1z'/%3e%3cpath%20fill='%23575653'%20d='M24%2017h10v1h-10zM22%2018h10v1h-10zM20%2019h10v1h-10zM18%2020h10v1h-10zM16%2021h10v1h-10zM14%2022h10v1h-10zM34%2022h8v2h-8zM12%2023h10v1h-10zM32%2023h2v5h-2zM10%2024h10v1h-10zM30%2024h2v5h-2zM34%2024h6v1h-6zM28%2025h2v5h-2zM34%2025h4v1h-4zM26%2026h2v4h-2zM34%2026h2v1h-2zM24%2027h2v3h-2zM50%2027h4v1h-4zM22%2028h2v2h-2zM49%2028h3v1h-3zM20%2029h2v1h-2zM40%2029h2v5h-2zM47%2029h3v1h-3zM38%2030h2v5h-2zM42%2030h6v1h-6zM36%2031h2v4h-2zM42%2031h4v1h-4zM34%2032h2v3h-2zM42%2032h2v1h-2zM32%2033h2v2h-2zM30%2034h2v1h-2z'/%3e%3cpath%20fill='%23403e3c'%20d='M34%2018h1v4h-1zM32%2019h2v1h-2zM30%2020h2v4h-2zM28%2021h2v1h-2zM26%2022h2v4h-2zM24%2023h2v1h-2zM22%2024h2v4h-2zM9%2025h10v1h-10zM20%2025h2v1h-2zM40%2025h2v4h-2zM19%2026h1v5h-1zM38%2026h2v1h-2zM36%2027h2v4h-2zM34%2028h2v1h-2zM54%2028h1v5h-1zM32%2029h2v4h-2zM52%2029h2v1h-2zM20%2030h9v1h-9zM30%2030h2v1h-2zM50%2030h2v5h-2zM29%2031h1v5h-1zM48%2031h2v1h-2zM46%2032h2v5h-2zM44%2033h2v1h-2zM52%2033h2v1h-2zM42%2034h2v5h-2zM30%2035h9v1h-9zM40%2035h2v1h-2zM48%2035h2v1h-2zM39%2036h1v5h-1zM44%2037h2v1h-2zM40%2039h2v1h-2z'/%3e%3cpath%20fill='%23a02f6f'%20d='M54%2033h1v10h-1zM52%2034h2v10h-2zM50%2035h2v10h-2zM48%2036h2v10h-2zM46%2037h2v10h-2zM44%2038h2v10h-2zM42%2039h2v10h-2zM40%2040h2v10h-2zM39%2041h1v10h-1z'/%3e%3cpath%20fill='%230a0a0a'%20d='M43%2013h6v1h-6zM42%2014h1v1h-1zM49%2014h1v1h-1zM41%2015h1v7h-1zM50%2015h1v12h-1zM24%2016h11v1h-11zM22%2017h2v1h-2zM35%2017h1v5h-1zM20%2018h2v1h-2zM18%2019h2v1h-2zM16%2020h2v1h-2zM14%2021h2v1h-2zM36%2021h5v1h-5zM12%2022h2v1h-2zM10%2023h2v1h-2zM9%2024h1v1h-1zM8%2025h1v11h-1zM51%2026h4v1h-4zM55%2027h1v16h-1zM9%2036h1v1h-1zM10%2037h2v1h-2zM12%2038h2v1h-2zM14%2039h2v1h-2zM16%2040h2v1h-2zM18%2041h2v1h-2zM20%2042h2v1h-2zM22%2043h2v1h-2zM54%2043h1v1h-1zM24%2044h2v1h-2zM52%2044h2v1h-2zM26%2045h2v1h-2zM50%2045h2v1h-2zM28%2046h2v1h-2zM48%2046h2v1h-2zM30%2047h2v1h-2zM46%2047h2v1h-2zM32%2048h2v1h-2zM44%2048h2v1h-2zM34%2049h2v1h-2zM42%2049h2v1h-2zM36%2050h2v1h-2zM40%2050h2v1h-2zM38%2051h2v1h-2z'/%3e%3cpath%20fill='%231c1b1a'%20d='M10%2030h2v4h-2zM15%2032h1v4h-1zM16%2033h1v4h-1zM20%2035h2v4h-2zM25%2037h1v4h-1zM26%2038h1v4h-1zM30%2040h2v4h-2zM35%2042h1v4h-1zM36%2043h1v4h-1z'/%3e%3cpath%20fill='%23343331'%20d='M34%2017h1v1h-1zM32%2018h2v1h-2zM30%2019h2v1h-2zM28%2020h2v1h-2zM26%2021h2v1h-2zM24%2022h2v1h-2zM22%2023h2v1h-2zM20%2024h2v1h-2zM40%2024h2v1h-2zM19%2025h1v1h-1zM38%2025h2v1h-2zM36%2026h2v1h-2zM34%2027h2v1h-2zM54%2027h1v1h-1zM32%2028h2v1h-2zM52%2028h2v1h-2zM30%2029h2v1h-2zM50%2029h2v1h-2zM29%2030h1v1h-1zM48%2030h2v1h-2zM46%2031h2v1h-2zM44%2032h2v1h-2zM42%2033h2v1h-2zM40%2034h2v1h-2zM39%2035h1v1h-1z'/%3e%3cpath%20fill='%23e47da8'%20d='M32%2021h2v2h-2zM28%2023h2v2h-2zM24%2025h2v2h-2zM20%2027h2v2h-2zM38%2028h2v2h-2zM34%2030h2v2h-2zM52%2031h2v2h-2zM30%2032h2v2h-2zM48%2033h2v2h-2zM44%2035h2v2h-2zM40%2037h2v2h-2z'/%3e%3cpath%20fill='%23000000'%20fill-opacity='0.353'%20d='M11%2038h1v1h-1zM12%2039h2v1h-2zM14%2040h2v1h-2zM16%2041h2v1h-2zM18%2042h2v1h-2zM20%2043h2v1h-2zM22%2044h2v1h-2zM24%2045h2v1h-2zM52%2045h1v1h-1zM26%2046h2v1h-2zM50%2046h2v1h-2zM28%2047h2v1h-2zM48%2047h2v1h-2zM30%2048h2v1h-2zM46%2048h2v1h-2zM32%2049h2v1h-2zM44%2049h2v1h-2zM34%2050h2v1h-2zM42%2050h2v1h-2zM36%2051h2v1h-2zM40%2051h2v1h-2zM38%2052h2v1h-2z'/%3e%3cpath%20fill='%23cecdc3'%20d='M43%2014h6v2h-6zM43%2016h2v14h-2z'/%3e%3cpath%20fill='%23b7b5ac'%20d='M42%2016h1v14h-1zM45%2017h2v13h-2z'/%3e%3cpath%20fill='%23878580'%20d='M49%2016h1v12h-1zM47%2017h2v12h-2z'/%3e%3cpath%20fill='%23f4a4c2'%20d='M32%2020h2v1h-2zM28%2022h2v1h-2zM24%2024h2v1h-2zM20%2026h2v1h-2zM38%2027h2v1h-2zM34%2029h2v1h-2zM52%2030h2v1h-2zM30%2031h2v1h-2zM48%2032h2v1h-2zM44%2034h2v1h-2zM40%2036h2v1h-2z'/%3e%3cpath%20fill='%23e6e4d9'%20d='M42%2015h1v1h-1zM49%2015h1v1h-1zM45%2016h4v1h-4z'/%3e%3c/svg%3e`,eh=`/assets/icon-THdxja9j.svg`,th=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%20shape-rendering='crispEdges'%3e%3cpath%20fill='%234385be'%20d='M17%2017h1v25h-1zM18%2018h2v25h-2zM20%2019h2v2h-2zM22%2020h2v25h-2zM24%2021h2v25h-2zM26%2022h2v2h-2zM28%2023h2v25h-2zM30%2024h2v25h-2zM32%2025h2v2h-2zM34%2026h2v25h-2zM36%2027h1v25h-1z'/%3e%3cpath%20fill='%23205ea6'%20d='M21%2021h1v23h-1zM46%2022h1v25h-1zM44%2023h2v25h-2zM27%2024h1v23h-1zM42%2024h2v25h-2zM40%2025h2v25h-2zM38%2026h2v25h-2zM33%2027h1v23h-1zM37%2027h1v25h-1z'/%3e%3cpath%20fill='%2366a0c8'%20d='M24%2013h2v7h-2zM22%2014h2v5h-2zM20%2015h2v3h-2zM30%2015h2v8h-2zM18%2016h2v1h-2zM32%2016h2v8h-2zM26%2018h4v3h-4zM38%2018h2v7h-2zM40%2019h2v5h-2zM42%2020h2v3h-2zM20%2021h1v23h-1zM28%2021h2v1h-2zM44%2021h2v1h-2zM34%2022h4v3h-4zM26%2024h1v23h-1zM36%2025h2v1h-2zM32%2027h1v23h-1z'/%3e%3cpath%20fill='%230a0a0a'%20d='M26%209h4v1h-4zM25%2010h1v3h-1zM30%2010h2v1h-2zM32%2011h2v1h-2zM24%2012h1v1h-1zM34%2012h2v1h-2zM22%2013h2v1h-2zM36%2013h2v1h-2zM20%2014h2v1h-2zM38%2014h1v4h-1zM18%2015h2v1h-2zM17%2016h1v1h-1zM16%2017h1v25h-1zM39%2017h1v1h-1zM40%2018h2v1h-2zM42%2019h2v1h-2zM44%2020h2v1h-2zM46%2021h1v1h-1zM47%2022h1v25h-1zM17%2042h1v1h-1zM18%2043h1v3h-1zM19%2046h2v1h-2zM23%2046h3v1h-3zM21%2047h2v1h-2zM26%2047h2v1h-2zM46%2047h1v1h-1zM28%2048h2v1h-2zM45%2048h1v3h-1zM30%2049h2v1h-2zM32%2050h2v1h-2zM33%2051h1v2h-1zM40%2051h1v2h-1zM43%2051h2v1h-2zM41%2052h2v1h-2zM34%2053h1v1h-1zM39%2053h1v1h-1zM35%2054h4v1h-4z'/%3e%3cpath%20fill='%23b7b5ac'%20d='M26%2011h2v7h-2zM28%2012h2v2h-2zM30%2013h2v2h-2zM32%2014h2v2h-2zM34%2015h2v7h-2z'/%3e%3cpath%20fill='%2392bfdb'%20d='M18%2017h2v1h-2zM20%2018h2v1h-2zM22%2019h2v1h-2zM24%2020h2v1h-2zM26%2021h2v1h-2zM28%2022h2v1h-2zM44%2022h2v1h-2zM30%2023h2v1h-2zM42%2023h2v1h-2zM32%2024h2v1h-2zM40%2024h2v1h-2zM34%2025h2v1h-2zM38%2025h2v1h-2zM36%2026h2v1h-2z'/%3e%3cpath%20fill='%23878580'%20d='M28%2014h2v4h-2zM36%2015h2v7h-2z'/%3e%3cpath%20fill='%23cecdc3'%20d='M26%2010h4v1h-4zM28%2011h4v1h-4zM30%2012h4v1h-4zM32%2013h4v1h-4zM34%2014h4v1h-4z'/%3e%3cpath%20fill='%23403e3c'%20d='M19%2043h1v3h-1zM21%2044h1v3h-1zM22%2045h1v2h-1zM42%2049h1v3h-1zM41%2050h1v2h-1zM34%2051h1v2h-1zM36%2052h2v2h-2z'/%3e%3cpath%20fill='%23343331'%20d='M23%2045h1v1h-1zM44%2048h1v3h-1zM43%2049h1v2h-1zM38%2051h2v2h-2zM38%2053h1v1h-1z'/%3e%3cpath%20fill='%23000000'%20fill-opacity='0.353'%20d='M21%2048h1v1h-1zM41%2053h2v1h-2zM39%2054h1v1h-1zM36%2055h3v1h-3z'/%3e%3cpath%20fill='%23575653'%20d='M20%2044h1v2h-1zM40%2050h1v1h-1zM35%2051h1v3h-1z'/%3e%3c/svg%3e`;function nh(e){let t=(0,$.c)(14),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(`path`,{d:`M71.09 20.74c-.16-.17-.33-.34-.5-.5s-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5A26.46 26.46 0 0 1 75.5 35.7c0 16.57-16.82 30.05-37.5 30.05-11.58 0-21.94-4.23-28.83-10.86l.5.5.5.5.5.5.5.5.5.5.5.5.5.5C19.55 65.3 30.14 69.75 42 69.75c20.68 0 37.5-13.48 37.5-30 0-7.06-3.04-13.75-8.41-19.01Z`}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsx)(`path`,{d:`M73 35.7c0 15.21-15.67 27.54-35 27.54S3 50.91 3 35.7C3 26.27 9 17.94 18.22 13S33.18 3 38 3s8.94 4.13 19.78 10C67 17.94 73 26.27 73 35.7Z`,style:{fill:`#fbf0df`}}),t[1]=r):r=t[1];let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(`path`,{d:`M73 35.7a21.67 21.67 0 0 0-.8-5.78c-2.73 33.3-43.35 34.9-59.32 24.94A40 40 0 0 0 38 63.24c19.3 0 35-12.35 35-27.54Z`,style:{fill:`#f6dece`}}),t[2]=i):i=t[2];let a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsx)(`path`,{d:`M24.53 11.17C29 8.49 34.94 3.46 40.78 3.45A9.29 9.29 0 0 0 38 3c-2.42 0-5 1.25-8.25 3.13-1.13.66-2.3 1.39-3.54 2.15-2.33 1.44-5 3.07-8 4.7C8.69 18.13 3 26.62 3 35.7v1.19c6.06-21.41 17.07-23.04 21.53-25.72Z`,style:{fill:`#fffefc`}}),t[3]=a):a=t[3];let o,s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,X.jsx)(`path`,{d:`M35.12 5.53A16.41 16.41 0 0 1 29.49 18c-.28.25-.06.73.3.59 3.37-1.31 7.92-5.23 6-13.14-.08-.45-.67-.33-.67.08Zm2.27 0A16.24 16.24 0 0 1 39 19c-.12.35.31.65.55.36 2.19-2.8 4.1-8.36-1.62-14.36-.29-.26-.74.14-.54.49Zm2.76-.17A16.42 16.42 0 0 1 47 17.12a.33.33 0 0 0 .65.11c.92-3.49.4-9.44-7.17-12.53-.4-.16-.66.38-.33.62Zm-18.46 10.4a16.94 16.94 0 0 0 10.47-9c.18-.36.75-.22.66.18-1.73 8-7.52 9.67-11.12 9.45-.38.01-.37-.52-.01-.63Z`,style:{fill:`#ccbea7`,fillRule:`evenodd`}}),s=(0,X.jsx)(`path`,{d:`M38 65.75C17.32 65.75.5 52.27.5 35.7c0-10 6.18-19.33 16.53-24.92 3-1.6 5.57-3.21 7.86-4.62 1.26-.78 2.45-1.51 3.6-2.19C32 1.89 35 .5 38 .5s5.62 1.2 8.9 3.14c1 .57 2 1.19 3.07 1.87 2.49 1.54 5.3 3.28 9 5.27C69.32 16.37 75.5 25.69 75.5 35.7c0 16.57-16.82 30.05-37.5 30.05ZM38 3c-2.42 0-5 1.25-8.25 3.13-1.13.66-2.3 1.39-3.54 2.15-2.33 1.44-5 3.07-8 4.7C8.69 18.13 3 26.62 3 35.7c0 15.19 15.7 27.55 35 27.55S73 50.89 73 35.7c0-9.08-5.69-17.57-15.22-22.7-3.78-2-6.73-3.88-9.12-5.36-1.09-.67-2.09-1.29-3-1.84C42.63 4 40.42 3 38 3Z`}),t[4]=o,t[5]=s):(o=t[4],s=t[5]);let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,X.jsx)(`path`,{d:`M45.05 43a8.93 8.93 0 0 1-2.92 4.71 6.81 6.81 0 0 1-4 1.88A6.84 6.84 0 0 1 34 47.71 8.93 8.93 0 0 1 31.12 43a.72.72 0 0 1 .8-.81h12.34a.72.72 0 0 1 .79.81Z`,style:{fill:`#b71422`}}),t[6]=c):c=t[6];let l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,X.jsxs)(`g`,{children:[c,(0,X.jsx)(`path`,{d:`M34 47.79a6.91 6.91 0 0 0 4.12 1.9 6.91 6.91 0 0 0 4.11-1.9 10.63 10.63 0 0 0 1-1.07 6.83 6.83 0 0 0-4.9-2.31 6.15 6.15 0 0 0-5 2.78c.23.21.43.41.67.6Z`,style:{fill:`#ff6164`}}),(0,X.jsx)(`path`,{d:`M34.16 47a5.36 5.36 0 0 1 4.19-2.08 6 6 0 0 1 4 1.69c.23-.25.45-.51.66-.77a7 7 0 0 0-4.71-1.93 6.36 6.36 0 0 0-4.89 2.36 9.53 9.53 0 0 0 .75.73Z`}),(0,X.jsx)(`path`,{d:`M38.09 50.19a7.42 7.42 0 0 1-4.45-2 9.52 9.52 0 0 1-3.11-5.05 1.2 1.2 0 0 1 .26-1 1.41 1.41 0 0 1 1.13-.51h12.34a1.44 1.44 0 0 1 1.13.51 1.19 1.19 0 0 1 .25 1 9.52 9.52 0 0 1-3.11 5.05 7.42 7.42 0 0 1-4.44 2Zm-6.17-7.4c-.16 0-.2.07-.21.09a8.29 8.29 0 0 0 2.73 4.37A6.23 6.23 0 0 0 38.09 49a6.28 6.28 0 0 0 3.65-1.73 8.3 8.3 0 0 0 2.72-4.37.21.21 0 0 0-.2-.09Z`})]}),t[7]=l):l=t[7];let u;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,X.jsx)(`ellipse`,{cx:`53.22`,cy:`40.18`,rx:`5.85`,ry:`3.44`,style:{fill:`#febbd0`}}),t[8]=u):u=t[8];let d;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,X.jsx)(`ellipse`,{cx:`22.95`,cy:`40.18`,rx:`5.85`,ry:`3.44`,style:{fill:`#febbd0`}}),t[9]=d):d=t[9];let f;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,X.jsx)(`path`,{d:`M25.7 38.8a5.51 5.51 0 1 0-5.5-5.51 5.51 5.51 0 0 0 5.5 5.51Zm24.77 0A5.51 5.51 0 1 0 45 33.29a5.5 5.5 0 0 0 5.47 5.51Z`,style:{fillRule:`evenodd`}}),t[10]=f):f=t[10];let p;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,X.jsxs)(`g`,{children:[u,d,f,(0,X.jsx)(`path`,{d:`M24 33.64a2.07 2.07 0 1 0-2.06-2.07A2.07 2.07 0 0 0 24 33.64Zm24.77 0a2.07 2.07 0 1 0-2.06-2.07 2.07 2.07 0 0 0 2.04 2.07Z`,style:{fill:`#fff`,fillRule:`evenodd`}})]}),t[11]=p):p=t[11];let m;return t[12]===e?m=t[13]:(m=(0,X.jsxs)(`svg`,{...e,viewBox:`0 0 80 70`,children:[n,r,i,a,o,s,l,p]}),t[12]=e,t[13]=m),m}function rh(e){let t=(0,$.c)(5),n,r,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(`path`,{fill:`#FFF`,d:`m202.357 49.394-5.311-2.124C172.085 103.434 72.786 69.289 66.81 85.997c-.996 11.286 54.227 2.146 93.706 4.059 12.039.583 18.076 9.671 12.964 24.484l10.069.031c11.615-36.209 48.683-17.73 50.232-29.68-2.545-7.857-42.601 0-31.425-35.497Z`}),r=(0,X.jsx)(`path`,{fill:`#F4811F`,d:`M176.332 108.348c1.593-5.31 1.062-10.622-1.593-13.809-2.656-3.187-6.374-5.31-11.154-5.842L71.17 87.634c-.531 0-1.062-.53-1.593-.53-.531-.532-.531-1.063 0-1.594.531-1.062 1.062-1.594 2.124-1.594l92.946-1.062c11.154-.53 22.839-9.56 27.087-20.182l5.312-13.809c0-.532.531-1.063 0-1.594C191.203 20.182 166.772 0 138.091 0 111.535 0 88.697 16.995 80.73 40.896c-5.311-3.718-11.684-5.843-19.12-5.31-12.747 1.061-22.838 11.683-24.432 24.43-.531 3.187 0 6.374.532 9.56C16.996 70.107 0 87.103 0 108.348c0 2.124 0 3.718.531 5.842 0 1.063 1.062 1.594 1.594 1.594h170.489c1.062 0 2.125-.53 2.125-1.594l1.593-5.842Z`}),i=(0,X.jsx)(`path`,{fill:`#FAAD3F`,d:`M205.544 48.863h-2.656c-.531 0-1.062.53-1.593 1.062l-3.718 12.747c-1.593 5.31-1.062 10.623 1.594 13.809 2.655 3.187 6.373 5.31 11.153 5.843l19.652 1.062c.53 0 1.062.53 1.593.53.53.532.53 1.063 0 1.594-.531 1.063-1.062 1.594-2.125 1.594l-20.182 1.062c-11.154.53-22.838 9.56-27.087 20.182l-1.063 4.78c-.531.532 0 1.594 1.063 1.594h70.108c1.062 0 1.593-.531 1.593-1.593 1.062-4.25 2.124-9.03 2.124-13.81 0-27.618-22.838-50.456-50.456-50.456`}),t[0]=n,t[1]=r,t[2]=i):(n=t[0],r=t[1],i=t[2]);let a;return t[3]===e?a=t[4]:(a=(0,X.jsxs)(`svg`,{...e,viewBox:`0 0 256 116`,preserveAspectRatio:`xMidYMid`,children:[n,r,i]}),t[3]=e,t[4]=a),a}function ih(e){let t=(0,$.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(`path`,{d:`M13.98 11.08h2.12a.19.19 0 0 0 .19-.19V9.01a.19.19 0 0 0-.19-.19h-2.12a.18.18 0 0 0-.18.18v1.9c0 .1.08.18.18.18m-2.95-5.43h2.12a.19.19 0 0 0 .18-.19V3.57a.19.19 0 0 0-.18-.18h-2.12a.18.18 0 0 0-.19.18v1.9c0 .1.09.18.19.18m0 2.71h2.12a.19.19 0 0 0 .18-.18V6.29a.19.19 0 0 0-.18-.18h-2.12a.18.18 0 0 0-.19.18v1.89c0 .1.09.18.19.18m-2.93 0h2.12a.19.19 0 0 0 .18-.18V6.29a.18.18 0 0 0-.18-.18H8.1a.18.18 0 0 0-.18.18v1.89c0 .1.08.18.18.18m-2.96 0h2.11a.19.19 0 0 0 .19-.18V6.29a.18.18 0 0 0-.19-.18H5.14a.19.19 0 0 0-.19.18v1.89c0 .1.08.18.19.18m5.89 2.72h2.12a.19.19 0 0 0 .18-.19V9.01a.19.19 0 0 0-.18-.19h-2.12a.18.18 0 0 0-.19.18v1.9c0 .1.09.18.19.18m-2.93 0h2.12a.18.18 0 0 0 .18-.19V9.01a.18.18 0 0 0-.18-.19H8.1a.18.18 0 0 0-.18.18v1.9c0 .1.08.18.18.18m-2.96 0h2.11a.18.18 0 0 0 .19-.19V9.01a.18.18 0 0 0-.18-.19H5.14a.19.19 0 0 0-.19.19v1.88c0 .1.08.19.19.19m-2.92 0h2.12a.18.18 0 0 0 .18-.19V9.01a.18.18 0 0 0-.18-.19H2.22a.18.18 0 0 0-.19.18v1.9c0 .1.08.18.19.18m21.54-1.19c-.06-.05-.67-.51-1.95-.51-.34 0-.68.03-1.01.09a3.77 3.77 0 0 0-1.72-2.57l-.34-.2-.23.33a4.6 4.6 0 0 0-.6 1.43c-.24.97-.1 1.88.4 2.66a4.7 4.7 0 0 1-1.75.42H.76a.75.75 0 0 0-.76.75 11.38 11.38 0 0 0 .7 4.06 6.03 6.03 0 0 0 2.4 3.12c1.18.73 3.1 1.14 5.28 1.14.98 0 1.96-.08 2.93-.26a12.25 12.25 0 0 0 3.82-1.4 10.5 10.5 0 0 0 2.61-2.13c1.25-1.42 2-3 2.55-4.4h.23c1.37 0 2.21-.55 2.68-1 .3-.3.55-.66.7-1.06l.1-.28Z`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,X.jsx)(`svg`,{...e,viewBox:`0 0 24 24`,fill:`#008fe2`,children:n}),t[1]=e,t[2]=r),r}function ah(e){let t=(0,$.c)(4),n,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(`circle`,{fill:`#FFCF00`,cx:`128`,cy:`128`,r:`128`}),r=(0,X.jsx)(`path`,{d:`M69.285 58.715 138.571 128l-69.286 69.285-16.97-16.97L104.629 128 52.315 75.685l16.97-16.97Zm76.8 0L215.371 128l-69.286 69.285-16.97-16.97L181.429 128l-52.314-52.315 16.97-16.97Z`,fill:`#191919`}),t[0]=n,t[1]=r):(n=t[0],r=t[1]);let i;return t[2]===e?i=t[3]:(i=(0,X.jsxs)(`svg`,{...e,viewBox:`0 0 256 256`,preserveAspectRatio:`xMidYMid`,children:[n,r]}),t[2]=e,t[3]=i),i}function oh(e){let t=(0,$.c)(55),n=(0,Y.useId)(),r=`${n}-a`,i,a,o,s,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(`stop`,{offset:`0%`,stopColor:`#41873F`}),a=(0,X.jsx)(`stop`,{offset:`32.88%`,stopColor:`#418B3D`}),o=(0,X.jsx)(`stop`,{offset:`63.52%`,stopColor:`#419637`}),s=(0,X.jsx)(`stop`,{offset:`93.19%`,stopColor:`#3FA92D`}),c=(0,X.jsx)(`stop`,{offset:`100%`,stopColor:`#3FAE2A`}),t[0]=i,t[1]=a,t[2]=o,t[3]=s,t[4]=c):(i=t[0],a=t[1],o=t[2],s=t[3],c=t[4]);let l;t[5]===r?l=t[6]:(l=(0,X.jsxs)(`linearGradient`,{id:r,x1:`68.188%`,x2:`27.823%`,y1:`17.487%`,y2:`89.755%`,children:[i,a,o,s,c]}),t[5]=r,t[6]=l);let u=`${n}-c`,d,f,p,m;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,X.jsx)(`stop`,{offset:`13.76%`,stopColor:`#41873F`}),m=(0,X.jsx)(`stop`,{offset:`40.32%`,stopColor:`#54A044`}),d=(0,X.jsx)(`stop`,{offset:`71.36%`,stopColor:`#66B848`}),f=(0,X.jsx)(`stop`,{offset:`90.81%`,stopColor:`#6CC04A`}),t[7]=d,t[8]=f,t[9]=p,t[10]=m):(d=t[7],f=t[8],p=t[9],m=t[10]);let h;t[11]===u?h=t[12]:(h=(0,X.jsxs)(`linearGradient`,{id:u,x1:`43.277%`,x2:`159.245%`,y1:`55.169%`,y2:`-18.306%`,children:[p,m,d,f]}),t[11]=u,t[12]=h);let g=`${n}-f`,_,v,y,b;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,X.jsx)(`stop`,{offset:`9.192%`,stopColor:`#6CC04A`}),v=(0,X.jsx)(`stop`,{offset:`28.64%`,stopColor:`#66B848`}),y=(0,X.jsx)(`stop`,{offset:`59.68%`,stopColor:`#54A044`}),b=(0,X.jsx)(`stop`,{offset:`86.24%`,stopColor:`#41873F`}),t[13]=_,t[14]=v,t[15]=y,t[16]=b):(_=t[13],v=t[14],y=t[15],b=t[16]);let x;t[17]===g?x=t[18]:(x=(0,X.jsxs)(`linearGradient`,{id:g,x1:`-4.389%`,x2:`101.499%`,y1:`49.997%`,y2:`49.997%`,children:[_,v,y,b]}),t[17]=g,t[18]=x);let S=`${n}-b`,C;t[19]===S?C=t[20]:(C=(0,X.jsx)(`path`,{id:S,d:`M134.923 1.832c-4.344-2.443-9.502-2.443-13.846 0L6.787 67.801C2.443 70.244 0 74.859 0 79.745v132.208c0 4.887 2.715 9.502 6.787 11.945l114.29 65.968c4.344 2.444 9.502 2.444 13.846 0l114.29-65.968c4.344-2.443 6.787-7.058 6.787-11.945V79.745c0-4.886-2.715-9.501-6.787-11.944L134.923 1.832Z`}),t[19]=S,t[20]=C);let w=`${n}-e`,T;t[21]===w?T=t[22]:(T=(0,X.jsx)(`path`,{id:w,d:`M134.923 1.832c-4.344-2.443-9.502-2.443-13.846 0L6.787 67.801C2.443 70.244 0 74.859 0 79.745v132.208c0 4.887 2.715 9.502 6.787 11.945l114.29 65.968c4.344 2.444 9.502 2.444 13.846 0l114.29-65.968c4.344-2.443 6.787-7.058 6.787-11.945V79.745c0-4.886-2.715-9.501-6.787-11.944L134.923 1.832Z`}),t[21]=w,t[22]=T);let E;t[23]!==h||t[24]!==x||t[25]!==C||t[26]!==T||t[27]!==l?(E=(0,X.jsxs)(`defs`,{children:[l,h,x,C,T]}),t[23]=h,t[24]=x,t[25]=C,t[26]=T,t[27]=l,t[28]=E):E=t[28];let D=`url(#${n}-a)`,O;t[29]===D?O=t[30]:(O=(0,X.jsx)(`path`,{fill:D,d:`M134.923 1.832c-4.344-2.443-9.502-2.443-13.846 0L6.787 67.801C2.443 70.244 0 74.859 0 79.745v132.208c0 4.887 2.715 9.502 6.787 11.945l114.29 65.968c4.344 2.444 9.502 2.444 13.846 0l114.29-65.968c4.344-2.443 6.787-7.058 6.787-11.945V79.745c0-4.886-2.715-9.501-6.787-11.944L134.923 1.832Z`}),t[29]=D,t[30]=O);let k=`${n}-d`,A=`#${n}-b`,j;t[31]===A?j=t[32]:(j=(0,X.jsx)(`use`,{xlinkHref:A}),t[31]=A,t[32]=j);let M;t[33]!==k||t[34]!==j?(M=(0,X.jsx)(`mask`,{id:k,fill:`#fff`,children:j}),t[33]=k,t[34]=j,t[35]=M):M=t[35];let N=`url(#${n}-c)`,P=`url(#${n}-d)`,F;t[36]!==N||t[37]!==P?(F=(0,X.jsx)(`path`,{fill:N,d:`M249.485 67.8 134.65 1.833c-1.086-.542-2.443-1.085-3.529-1.357L2.443 220.912c1.086 1.357 2.444 2.443 3.8 3.258l114.834 65.968c3.258 1.9 7.059 2.443 10.588 1.357L252.47 70.515c-.815-1.086-1.9-1.9-2.986-2.714Z`,mask:P}),t[36]=N,t[37]=P,t[38]=F):F=t[38];let I=`${n}-g`,L=`#${n}-e`,R;t[39]===L?R=t[40]:(R=(0,X.jsx)(`use`,{xlinkHref:L}),t[39]=L,t[40]=R);let ee;t[41]!==I||t[42]!==R?(ee=(0,X.jsx)(`mask`,{id:I,fill:`#fff`,children:R}),t[41]=I,t[42]=R,t[43]=ee):ee=t[43];let te=`url(#${n}-f)`,z=`url(#${n}-g)`,B;t[44]!==te||t[45]!==z?(B=(0,X.jsx)(`path`,{fill:te,d:`M249.756 223.898c3.258-1.9 5.701-5.158 6.787-8.687L130.579.204c-3.258-.543-6.787-.272-9.773 1.628L6.786 67.53l122.979 224.238c1.628-.272 3.529-.815 5.158-1.63l114.833-66.239Z`,mask:z}),t[44]=te,t[45]=z,t[46]=B):B=t[46];let ne;return t[47]!==e||t[48]!==E||t[49]!==O||t[50]!==M||t[51]!==F||t[52]!==ee||t[53]!==B?(ne=(0,X.jsxs)(`svg`,{...e,viewBox:`0 0 256 292`,xmlnsXlink:`http://www.w3.org/1999/xlink`,children:[E,O,M,F,ee,B]}),t[47]=e,t[48]=E,t[49]=O,t[50]=M,t[51]=F,t[52]=ee,t[53]=B,t[54]=ne):ne=t[54],ne}function sh(e){let t=(0,$.c)(11),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={clipRule:`nonzero`,fill:`none`,fillRule:`nonzero`,stroke:`#fff`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeMiterlimit:`4`,strokeWidth:`12.4651`},t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsx)(`path`,{d:`M323.205 324.227c2.833-23.601 1.984-27.062 19.563-23.239l4.463.392c13.517.615 31.199-2.174 41.587-7 22.362-10.376 35.622-27.7 13.572-23.148-50.297 10.376-53.755-6.655-53.755-6.655 53.111-78.803 75.313-178.836 56.149-203.322-52.27-66.789-142.748-35.206-144.262-34.386l-.482.089c-9.938-2.062-21.06-3.294-33.554-3.496-22.761-.374-40.032 5.967-53.133 15.904 0 0-161.408-66.498-153.899 83.628 1.597 31.936 45.777 241.655 98.47 178.31 19.259-23.163 37.871-42.748 37.871-42.748 9.242 6.14 20.307 9.272 31.912 8.147l.897-.765c-.281 2.876-.157 5.689.359 9.019-13.572 15.167-9.584 17.83-36.723 23.416-27.457 5.659-11.326 15.734-.797 18.367 12.768 3.193 42.305 7.716 62.268-20.224l-.795 3.188c5.325 4.26 4.965 30.619 5.72 49.452.756 18.834 2.017 36.409 5.856 46.771 3.839 10.36 8.369 37.05 44.036 29.406 29.809-6.388 52.6-15.582 54.677-101.107`,style:{fill:`#000`,stroke:`#000`,strokeLinecap:`butt`,strokeLinejoin:`miter`,strokeWidth:`37.3953`}}),t[1]=r):r=t[1];let i,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(`path`,{d:`M402.395 271.23c-50.302 10.376-53.76-6.655-53.76-6.655 53.111-78.808 75.313-178.843 56.153-203.326-52.27-66.785-142.752-35.2-144.262-34.38l-.486.087c-9.938-2.063-21.06-3.292-33.56-3.496-22.761-.373-40.026 5.967-53.127 15.902 0 0-161.411-66.495-153.904 83.63 1.597 31.938 45.776 241.657 98.471 178.312 19.26-23.163 37.869-42.748 37.869-42.748 9.243 6.14 20.308 9.272 31.908 8.147l.901-.765c-.28 2.876-.152 5.689.361 9.019-13.575 15.167-9.586 17.83-36.723 23.416-27.459 5.659-11.328 15.734-.796 18.367 12.768 3.193 42.307 7.716 62.266-20.224l-.796 3.188c5.319 4.26 9.054 27.711 8.428 48.969-.626 21.259-1.044 35.854 3.147 47.254 4.191 11.4 8.368 37.05 44.042 29.406 29.809-6.388 45.256-22.942 47.405-50.555 1.525-19.631 4.976-16.729 5.194-34.28l2.768-8.309c3.192-26.611.507-35.196 18.872-31.203l4.463.392c13.517.615 31.208-2.174 41.591-7 22.358-10.376 35.618-27.7 13.573-23.148z`,style:{fill:`#336791`,stroke:`none`},stroke:`none`}),a=(0,X.jsx)(`path`,{d:`M215.866 286.484c-1.385 49.516.348 99.377 5.193 111.495 4.848 12.118 15.223 35.688 50.9 28.045 29.806-6.39 40.651-18.756 45.357-46.051 3.466-20.082 10.148-75.854 11.005-87.281M173.104 38.256S11.583-27.76 19.092 122.365c1.597 31.938 45.779 241.664 98.473 178.316 19.256-23.166 36.671-41.335 36.671-41.335M260.349 26.207c-5.591 1.753 89.848-34.889 144.087 34.417 19.159 24.484-3.043 124.519-56.153 203.329`}),t[2]=i,t[3]=a):(i=t[2],a=t[3]);let o,s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,X.jsx)(`path`,{d:`M348.282 263.953s3.461 17.036 53.764 6.653c22.04-4.552 8.776 12.774-13.577 23.155-18.345 8.514-59.474 10.696-60.146-1.069-1.729-30.355 21.647-21.133 19.96-28.739-1.525-6.85-11.979-13.573-18.894-30.338-6.037-14.633-82.796-126.849 21.287-110.183 3.813-.789-27.146-99.002-124.553-100.599-97.385-1.597-94.19 119.762-94.19 119.762`,style:{strokeLinejoin:`bevel`}}),s=(0,X.jsx)(`path`,{d:`M188.604 274.334c-13.577 15.166-9.584 17.829-36.723 23.417-27.459 5.66-11.326 15.733-.797 18.365 12.768 3.195 42.307 7.718 62.266-20.229 6.078-8.509-.036-22.086-8.385-25.547-4.034-1.671-9.428-3.765-16.361 3.994z`}),c=(0,X.jsx)(`path`,{d:`M187.715 274.069c-1.368-8.917 2.93-19.528 7.536-31.942 6.922-18.626 22.893-37.255 10.117-96.339-9.523-44.029-73.396-9.163-73.436-3.193-.039 5.968 2.889 30.26-1.067 58.548-5.162 36.913 23.488 68.132 56.479 64.938`}),t[4]=o,t[5]=s,t[6]=c):(o=t[4],s=t[5],c=t[6]);let l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,X.jsx)(`path`,{d:`M172.517 141.7c-.288 2.039 3.733 7.48 8.976 8.207 5.234.73 9.714-3.522 9.998-5.559.284-2.039-3.732-4.285-8.977-5.015-5.237-.731-9.719.333-9.996 2.367z`,style:{fill:`#fff`,strokeLinecap:`butt`,strokeLinejoin:`miter`,strokeWidth:`4.155`}}),t[7]=l):l=t[7];let u;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,X.jsxs)(`g`,{style:n,children:[r,i,a,o,s,c,l,(0,X.jsx)(`path`,{d:`M331.941 137.543c.284 2.039-3.732 7.48-8.976 8.207-5.238.73-9.718-3.522-10.005-5.559-.277-2.039 3.74-4.285 8.979-5.015 5.239-.73 9.718.333 10.002 2.368z`,style:{fill:`#fff`,strokeLinecap:`butt`,strokeLinejoin:`miter`,strokeWidth:`2.0775`}}),(0,X.jsx)(`path`,{d:`M350.676 123.432c.863 15.994-3.445 26.888-3.988 43.914-.804 24.748 11.799 53.074-7.191 81.435`})]}),t[8]=u):u=t[8];let d;return t[9]===e?d=t[10]:(d=(0,X.jsx)(`svg`,{...e,xmlSpace:`preserve`,viewBox:`0 0 432.071 445.383`,children:u}),t[9]=e,t[10]=d),d}function ch(e){let t=(0,$.c)(11),n,r,i,a,o,s,c,l,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(`path`,{d:`M246 169c-13.7 7-84.5 36.2-99.5 44-15.1 7.9-23.5 7.8-35.4 2.1C99.2 209.4 24 179 10.3 172.5 3.6 169.3 0 166.5 0 164v-26s98-21.3 113.9-27c15.8-5.6 21.3-5.8 34.8-.9 13.4 5 94 19.5 107.3 24.3V160c0 2.5-3 5.3-10 9`,fill:`#912626`}),r=(0,X.jsx)(`path`,{d:`M246 143.2c-13.7 7.1-84.5 36.2-99.5 44-15.1 8-23.5 7.9-35.4 2.2-11.9-5.7-87.2-36.1-100.8-42.6-13.5-6.5-13.8-11-.5-16.2 13.4-5.2 88.2-34.6 104-40.3 16-5.6 21.4-5.8 34.9-1 13.4 5 83.8 33 97.1 37.9 13.3 4.9 13.8 8.9.2 16`,fill:`#C6302B`}),i=(0,X.jsx)(`path`,{d:`M246 127c-13.7 7.2-84.5 36.3-99.5 44.2-15.1 7.8-23.5 7.7-35.4 2-11.9-5.6-87.2-36-100.8-42.6-6.7-3.2-10.3-6-10.3-8.5V96.2s98-21.3 113.9-27c15.8-5.7 21.3-5.9 34.8-1 13.4 5 94 19.5 107.3 24.4V118c0 2.5-3 5.4-10 9`,fill:`#912626`}),a=(0,X.jsx)(`path`,{d:`M246 101.4c-13.7 7-84.5 36.2-99.5 44-15.1 7.9-23.5 7.8-35.4 2.1C99.2 141.8 24 111.4 10.3 105c-13.5-6.5-13.8-11-.5-16.1C23.2 83.5 98 54 113.8 48.5c16-5.7 21.4-6 34.9-1 13.4 5 83.8 33 97.1 37.8 13.3 5 13.8 9 .2 16`,fill:`#C6302B`}),o=(0,X.jsx)(`path`,{d:`M246 83.7c-13.7 7-84.5 36.2-99.5 44-15.1 7.9-23.5 7.8-35.4 2.1C99.2 124.1 24 93.7 10.3 87.2 3.6 84 0 81.2 0 78.7v-26s98-21.3 113.9-27c15.8-5.6 21.3-5.8 34.8-.9 13.4 5 94 19.5 107.3 24.4v25.5c0 2.5-3 5.3-10 9`,fill:`#912626`}),s=(0,X.jsx)(`path`,{d:`M246 58c-13.7 7-84.5 36.1-99.5 44-15.1 7.9-23.5 7.8-35.4 2C99.2 98.5 24 68 10.3 61.6c-13.5-6.5-13.8-11-.5-16.2C23.2 40.1 98 10.7 113.8 5c16-5.6 21.4-5.8 34.9-.9 13.4 5 83.8 33 97.1 37.8 13.3 4.9 13.8 9 .2 16`,fill:`#C6302B`}),c=(0,X.jsx)(`path`,{d:`m159.3 32.8-22 2.2-5 11.9-8-13.2L99 31.4l19-6.9-5.8-10.5 17.8 7 16.7-5.5-4.5 10.9 17 6.4M131 90.3l-41-17 58.8-9.1-17.8 26M74 39.3c17.5 0 31.5 5.5 31.5 12.2 0 6.8-14 12.2-31.4 12.2s-31.5-5.4-31.5-12.2c0-6.7 14.1-12.2 31.5-12.2`,fill:`#FFF`}),l=(0,X.jsx)(`path`,{d:`M185.3 36 220 49.8l-34.8 13.7V36`,fill:`#621B1C`}),u=(0,X.jsx)(`path`,{d:`M146.8 51.2 185.3 36v27.5l-3.8 1.5-34.7-13.8`,fill:`#9A2928`}),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u):(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8]);let d;return t[9]===e?d=t[10]:(d=(0,X.jsxs)(`svg`,{...e,preserveAspectRatio:`xMidYMid`,viewBox:`0 0 256 220`,children:[n,r,i,a,o,s,c,l,u]}),t[9]=e,t[10]=d),d}function lh(e){let t=(0,$.c)(6),n,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M165.735 25.0701L188.947 0.972412H0.465994V25.0701H165.735Z`,fill:`black`}),r=(0,X.jsx)(`path`,{d:`M163.981 96.3239L254.022 3.68314L221.206 3.68295L145.617 80.7609L163.981 96.3239Z`,fill:`black`}),i=(0,X.jsx)(`path`,{d:`M233.658 131.418C233.658 155.075 214.48 174.254 190.823 174.254C171.715 174.254 155.513 161.738 150 144.439L146.625 133.848L127.329 153.143L129.092 157.336C139.215 181.421 163.034 198.354 190.823 198.354C227.791 198.354 257.759 168.386 257.759 131.418C257.759 106.937 244.399 85.7396 224.956 74.0905L220.395 71.3582L202.727 89.2528L210.788 93.5083C224.403 100.696 233.658 114.981 233.658 131.418Z`,fill:`black`}),a=(0,X.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M88.2625 192.669L88.2626 45.6459H64.1648L64.1648 192.669H88.2625Z`,fill:`black`}),t[0]=n,t[1]=r,t[2]=i,t[3]=a):(n=t[0],r=t[1],i=t[2],a=t[3]);let o;return t[4]===e?o=t[5]:(o=(0,X.jsxs)(`svg`,{...e,viewBox:`0 0 258 199`,fill:`none`,children:[n,r,i,a]}),t[4]=e,t[5]=o),o}function uh(e){let t=(0,$.c)(6),n,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M165.735 25.0701L188.947 0.972412H0.465994V25.0701H165.735Z`,fill:`#e2e8f0`}),r=(0,X.jsx)(`path`,{d:`M163.981 96.3239L254.022 3.68314L221.206 3.68295L145.617 80.7609L163.981 96.3239Z`,fill:`#e2e8f0`}),i=(0,X.jsx)(`path`,{d:`M233.658 131.418C233.658 155.075 214.48 174.254 190.823 174.254C171.715 174.254 155.513 161.738 150 144.439L146.625 133.848L127.329 153.143L129.092 157.336C139.215 181.421 163.034 198.354 190.823 198.354C227.791 198.354 257.759 168.386 257.759 131.418C257.759 106.937 244.399 85.7396 224.956 74.0905L220.395 71.3582L202.727 89.2528L210.788 93.5083C224.403 100.696 233.658 114.981 233.658 131.418Z`,fill:`#e2e8f0`}),a=(0,X.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M88.2625 192.669L88.2626 45.6459H64.1648L64.1648 192.669H88.2625Z`,fill:`#e2e8f0`}),t[0]=n,t[1]=r,t[2]=i,t[3]=a):(n=t[0],r=t[1],i=t[2],a=t[3]);let o;return t[4]===e?o=t[5]:(o=(0,X.jsxs)(`svg`,{...e,viewBox:`0 0 258 199`,fill:`none`,children:[n,r,i,a]}),t[4]=e,t[5]=o),o}function dh(e){let t=(0,$.c)(11),n=(0,Y.useId)(),r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsx)(`path`,{fill:`#fff`,d:`M49.542 17.322c-17.766 0-32.22 14.454-32.22 32.22s14.454 32.22 32.22 32.22 32.22-14.454 32.22-32.22-14.454-32.22-32.22-32.22Zm0 48.894c-9.21 0-16.674-7.464-16.674-16.674 0-9.21 7.464-16.674 16.674-16.674 9.21 0 16.674 7.464 16.674 16.674 0 9.21-7.464 16.674-16.674 16.674Z`}),t[0]=r):r=t[0];let i=`url(#${n})`,a;t[1]===i?a=t[2]:(a=(0,X.jsx)(`path`,{fill:i,fillRule:`evenodd`,d:`M52.242 12.03V0c26.148 1.398 46.92 23.046 46.92 49.542 0 26.496-20.772 48.138-46.92 49.542v-12.03c19.488-1.392 34.92-17.676 34.92-37.512 0-19.836-15.432-36.12-34.92-37.512ZM21.126 74.142c-5.166-5.964-8.496-13.56-9.09-21.9H0c.624 11.67 5.292 22.26 12.606 30.414l8.514-8.514h.006Zm25.716 24.942v-12.03c-8.346-.594-15.942-3.918-21.906-9.09l-8.514 8.514c8.16 7.32 18.75 11.982 30.414 12.606h.006Z`,clipRule:`evenodd`}),t[1]=i,t[2]=a);let o,s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,X.jsx)(`stop`,{stopColor:`#0096FF`}),s=(0,X.jsx)(`stop`,{offset:`1`,stopColor:`#FF1E56`}),t[3]=o,t[4]=s):(o=t[3],s=t[4]);let c;t[5]===n?c=t[6]:(c=(0,X.jsx)(`defs`,{children:(0,X.jsxs)(`linearGradient`,{id:n,x1:`54.186`,x2:`5.418`,y1:`6.967`,y2:`55.735`,gradientUnits:`userSpaceOnUse`,children:[o,s]})}),t[5]=n,t[6]=c);let l;return t[7]!==e||t[8]!==a||t[9]!==c?(l=(0,X.jsxs)(`svg`,{...e,fill:`none`,viewBox:`0 0 100 100`,children:[r,a,c]}),t[7]=e,t[8]=a,t[9]=c,t[10]=l):l=t[10],l}function fh(e){let t=(0,$.c)(11),n=(0,Y.useId)(),r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsx)(`path`,{fill:`#000`,d:`M49.96 17.482C32.046 17.482 17.47 32.07 17.47 50S32.045 82.518 49.96 82.518c17.916 0 32.492-14.588 32.492-32.518S67.877 17.482 49.961 17.482Zm0 49.346c-9.287 0-16.814-7.533-16.814-16.828 0-9.295 7.527-16.828 16.815-16.828S66.776 40.705 66.776 50c0 9.295-7.527 16.828-16.815 16.828Z`}),t[0]=r):r=t[0];let i=`url(#${n})`,a;t[1]===i?a=t[2]:(a=(0,X.jsx)(`path`,{fill:i,fillRule:`evenodd`,d:`M52.683 12.141V0C79.053 1.41 100 23.26 100 50s-20.948 48.583-47.317 50V87.859C72.336 86.454 87.898 70.019 87.898 50c0-20.02-15.562-36.454-35.215-37.859ZM21.305 74.827c-5.21-6.019-8.568-13.685-9.167-22.102H0C.63 64.503 5.337 75.19 12.713 83.42l8.586-8.593h.006ZM47.237 100V87.859c-8.417-.6-16.077-3.954-22.091-9.174l-8.586 8.593C24.79 94.665 35.469 99.37 47.23 100h.007Z`,clipRule:`evenodd`}),t[1]=i,t[2]=a);let o,s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,X.jsx)(`stop`,{stopColor:`#0096FF`}),s=(0,X.jsx)(`stop`,{offset:`1`,stopColor:`#FF1E56`}),t[3]=o,t[4]=s):(o=t[3],s=t[4]);let c;t[5]===n?c=t[6]:(c=(0,X.jsx)(`defs`,{children:(0,X.jsxs)(`linearGradient`,{id:n,x1:`54.644`,x2:`5.425`,y1:`7.031`,y2:`56.211`,gradientUnits:`userSpaceOnUse`,children:[o,s]})}),t[5]=n,t[6]=c);let l;return t[7]!==e||t[8]!==a||t[9]!==c?(l=(0,X.jsxs)(`svg`,{...e,fill:`none`,viewBox:`0 0 100 100`,children:[r,a,c]}),t[7]=e,t[8]=a,t[9]=c,t[10]=l):l=t[10],l}function ph(e){let t=(0,$.c)(35),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(`path`,{fill:`#863bff`,d:`M25.946 44.938c-.664.845-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.287c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.497 0-3.578-1.842-3.578H1.237c-.92 0-1.456-1.04-.92-1.788L10.013.474c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.579 1.842 3.579h11.377c.943 0 1.473 1.088.89 1.83L25.947 44.94z`,style:{fill:`color(display-p3 .5252 .23 1)`,fillOpacity:`1`}}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r={maskType:`alpha`},t[1]=r):r=t[1];let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(`mask`,{id:`mask0_2002_17158`,width:`48`,height:`46`,x:`0`,y:`0`,maskUnits:`userSpaceOnUse`,style:r,children:(0,X.jsx)(`path`,{fill:`#000`,d:`M25.842 44.938c-.664.844-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.183c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.498 0-3.579-1.842-3.579H1.133c-.92 0-1.456-1.04-.92-1.787L9.91.473c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.578 1.842 3.578h11.377c.943 0 1.473 1.088.89 1.832L25.843 44.94z`,style:{fill:`#000`,fillOpacity:`1`}})}),t[2]=i):i=t[2];let a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsx)(`g`,{filter:`url(#filter0_f_2002_17158)`,children:(0,X.jsx)(`ellipse`,{cx:`5.508`,cy:`14.704`,fill:`#ede6ff`,rx:`5.508`,ry:`14.704`,style:{fill:`color(display-p3 .9275 .9033 1)`,fillOpacity:`1`},transform:`matrix(.00324 1 1 -.00324 -4.47 31.516)`})}),t[3]=a):a=t[3];let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,X.jsx)(`g`,{filter:`url(#filter1_f_2002_17158)`,children:(0,X.jsx)(`ellipse`,{cx:`10.399`,cy:`29.851`,fill:`#ede6ff`,rx:`10.399`,ry:`29.851`,style:{fill:`color(display-p3 .9275 .9033 1)`,fillOpacity:`1`},transform:`matrix(.00324 1 1 -.00324 -39.328 7.883)`})}),t[4]=o):o=t[4];let s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,X.jsx)(`g`,{filter:`url(#filter2_f_2002_17158)`,children:(0,X.jsx)(`ellipse`,{cx:`5.508`,cy:`30.487`,fill:`#7e14ff`,rx:`5.508`,ry:`30.487`,style:{fill:`color(display-p3 .4922 .0767 1)`,fillOpacity:`1`},transform:`rotate(89.814 -25.913 -14.639)scale(1 -1)`})}),t[5]=s):s=t[5];let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,X.jsx)(`g`,{filter:`url(#filter3_f_2002_17158)`,children:(0,X.jsx)(`ellipse`,{cx:`5.508`,cy:`30.599`,fill:`#7e14ff`,rx:`5.508`,ry:`30.599`,style:{fill:`color(display-p3 .4922 .0767 1)`,fillOpacity:`1`},transform:`rotate(89.814 -32.644 -3.334)scale(1 -1)`})}),t[6]=c):c=t[6];let l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,X.jsx)(`g`,{filter:`url(#filter4_f_2002_17158)`,children:(0,X.jsx)(`ellipse`,{cx:`5.508`,cy:`30.599`,fill:`#7e14ff`,rx:`5.508`,ry:`30.599`,style:{fill:`color(display-p3 .4922 .0767 1)`,fillOpacity:`1`},transform:`rotate(89.814 -32.454 -1.99)scale(1 -1)`})}),t[7]=l):l=t[7];let u;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,X.jsx)(`g`,{filter:`url(#filter5_f_2002_17158)`,children:(0,X.jsx)(`ellipse`,{cx:`14.072`,cy:`22.078`,fill:`#ede6ff`,rx:`14.072`,ry:`22.078`,style:{fill:`color(display-p3 .9275 .9033 1)`,fillOpacity:`1`},transform:`rotate(93.35 24.506 48.493)scale(-1 1)`})}),t[8]=u):u=t[8];let d;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,X.jsx)(`g`,{filter:`url(#filter6_f_2002_17158)`,children:(0,X.jsx)(`ellipse`,{cx:`3.47`,cy:`21.501`,fill:`#7e14ff`,rx:`3.47`,ry:`21.501`,style:{fill:`color(display-p3 .4922 .0767 1)`,fillOpacity:`1`},transform:`rotate(89.009 28.708 47.59)scale(-1 1)`})}),t[9]=d):d=t[9];let f;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,X.jsx)(`g`,{filter:`url(#filter7_f_2002_17158)`,children:(0,X.jsx)(`ellipse`,{cx:`3.47`,cy:`21.501`,fill:`#7e14ff`,rx:`3.47`,ry:`21.501`,style:{fill:`color(display-p3 .4922 .0767 1)`,fillOpacity:`1`},transform:`rotate(89.009 28.708 47.59)scale(-1 1)`})}),t[10]=f):f=t[10];let p;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,X.jsx)(`g`,{filter:`url(#filter8_f_2002_17158)`,children:(0,X.jsx)(`ellipse`,{cx:`.387`,cy:`8.972`,fill:`#7e14ff`,rx:`4.407`,ry:`29.108`,style:{fill:`color(display-p3 .4922 .0767 1)`,fillOpacity:`1`},transform:`rotate(39.51 .387 8.972)`})}),t[11]=p):p=t[11];let m;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,X.jsx)(`g`,{filter:`url(#filter9_f_2002_17158)`,children:(0,X.jsx)(`ellipse`,{cx:`47.523`,cy:`-6.092`,fill:`#7e14ff`,rx:`4.407`,ry:`29.108`,style:{fill:`color(display-p3 .4922 .0767 1)`,fillOpacity:`1`},transform:`rotate(37.892 47.523 -6.092)`})}),t[12]=m):m=t[12];let h;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,X.jsx)(`g`,{filter:`url(#filter10_f_2002_17158)`,children:(0,X.jsx)(`ellipse`,{cx:`41.412`,cy:`6.333`,fill:`#47bfff`,rx:`5.971`,ry:`9.665`,style:{fill:`color(display-p3 .2799 .748 1)`,fillOpacity:`1`},transform:`rotate(37.892 41.412 6.333)`})}),t[13]=h):h=t[13];let g;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,X.jsx)(`g`,{filter:`url(#filter11_f_2002_17158)`,children:(0,X.jsx)(`ellipse`,{cx:`-1.879`,cy:`38.332`,fill:`#7e14ff`,rx:`4.407`,ry:`29.108`,style:{fill:`color(display-p3 .4922 .0767 1)`,fillOpacity:`1`},transform:`rotate(37.892 -1.88 38.332)`})}),t[14]=g):g=t[14];let _;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,X.jsx)(`g`,{filter:`url(#filter12_f_2002_17158)`,children:(0,X.jsx)(`ellipse`,{cx:`-1.879`,cy:`38.332`,fill:`#7e14ff`,rx:`4.407`,ry:`29.108`,style:{fill:`color(display-p3 .4922 .0767 1)`,fillOpacity:`1`},transform:`rotate(37.892 -1.88 38.332)`})}),t[15]=_):_=t[15];let v;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,X.jsx)(`g`,{filter:`url(#filter13_f_2002_17158)`,children:(0,X.jsx)(`ellipse`,{cx:`35.651`,cy:`29.907`,fill:`#7e14ff`,rx:`4.407`,ry:`29.108`,style:{fill:`color(display-p3 .4922 .0767 1)`,fillOpacity:`1`},transform:`rotate(37.892 35.651 29.907)`})}),t[16]=v):v=t[16];let y;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,X.jsxs)(`g`,{mask:`url(#mask0_2002_17158)`,children:[a,o,s,c,l,u,d,f,p,m,h,g,_,v,(0,X.jsx)(`g`,{filter:`url(#filter14_f_2002_17158)`,children:(0,X.jsx)(`ellipse`,{cx:`38.418`,cy:`32.4`,fill:`#47bfff`,rx:`5.971`,ry:`15.297`,style:{fill:`color(display-p3 .2799 .748 1)`,fillOpacity:`1`},transform:`rotate(37.892 38.418 32.4)`})})]}),t[17]=y):y=t[17];let b;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,X.jsxs)(`filter`,{id:`filter0_f_2002_17158`,width:`60.045`,height:`41.654`,x:`-19.77`,y:`16.149`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,X.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,X.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,X.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_2002_17158`,stdDeviation:`7.659`})]}),t[18]=b):b=t[18];let x;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,X.jsxs)(`filter`,{id:`filter1_f_2002_17158`,width:`90.34`,height:`51.437`,x:`-54.613`,y:`-7.533`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,X.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,X.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,X.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_2002_17158`,stdDeviation:`7.659`})]}),t[19]=x):x=t[19];let S;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,X.jsxs)(`filter`,{id:`filter2_f_2002_17158`,width:`79.355`,height:`29.4`,x:`-49.64`,y:`2.03`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,X.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,X.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,X.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_2002_17158`,stdDeviation:`4.596`})]}),t[20]=S):S=t[20];let C;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,X.jsxs)(`filter`,{id:`filter3_f_2002_17158`,width:`79.579`,height:`29.4`,x:`-45.045`,y:`20.029`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,X.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,X.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,X.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_2002_17158`,stdDeviation:`4.596`})]}),t[21]=C):C=t[21];let w;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,X.jsxs)(`filter`,{id:`filter4_f_2002_17158`,width:`79.579`,height:`29.4`,x:`-43.513`,y:`21.178`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,X.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,X.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,X.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_2002_17158`,stdDeviation:`4.596`})]}),t[22]=w):w=t[22];let T;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,X.jsxs)(`filter`,{id:`filter5_f_2002_17158`,width:`74.749`,height:`58.852`,x:`15.756`,y:`-17.901`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,X.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,X.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,X.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_2002_17158`,stdDeviation:`7.659`})]}),t[23]=T):T=t[23];let E;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,X.jsxs)(`filter`,{id:`filter6_f_2002_17158`,width:`61.377`,height:`25.362`,x:`23.548`,y:`2.284`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,X.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,X.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,X.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_2002_17158`,stdDeviation:`4.596`})]}),t[24]=E):E=t[24];let D;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,X.jsxs)(`filter`,{id:`filter7_f_2002_17158`,width:`61.377`,height:`25.362`,x:`23.548`,y:`2.284`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,X.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,X.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,X.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_2002_17158`,stdDeviation:`4.596`})]}),t[25]=D):D=t[25];let O;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,X.jsxs)(`filter`,{id:`filter8_f_2002_17158`,width:`56.045`,height:`63.649`,x:`-27.636`,y:`-22.853`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,X.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,X.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,X.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_2002_17158`,stdDeviation:`4.596`})]}),t[26]=O):O=t[26];let k;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,X.jsxs)(`filter`,{id:`filter9_f_2002_17158`,width:`54.814`,height:`64.646`,x:`20.116`,y:`-38.415`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,X.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,X.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,X.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_2002_17158`,stdDeviation:`4.596`})]}),t[27]=k):k=t[27];let A;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,X.jsxs)(`filter`,{id:`filter10_f_2002_17158`,width:`33.541`,height:`35.313`,x:`24.641`,y:`-11.323`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,X.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,X.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,X.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_2002_17158`,stdDeviation:`4.596`})]}),t[28]=A):A=t[28];let j;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,X.jsxs)(`filter`,{id:`filter11_f_2002_17158`,width:`54.814`,height:`64.646`,x:`-29.286`,y:`6.009`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,X.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,X.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,X.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_2002_17158`,stdDeviation:`4.596`})]}),t[29]=j):j=t[29];let M;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,X.jsxs)(`filter`,{id:`filter12_f_2002_17158`,width:`54.814`,height:`64.646`,x:`-29.286`,y:`6.009`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,X.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,X.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,X.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_2002_17158`,stdDeviation:`4.596`})]}),t[30]=M):M=t[30];let N;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,X.jsxs)(`filter`,{id:`filter13_f_2002_17158`,width:`54.814`,height:`64.646`,x:`8.244`,y:`-2.416`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,X.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,X.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,X.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_2002_17158`,stdDeviation:`4.596`})]}),t[31]=N):N=t[31];let P;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,X.jsxs)(`defs`,{children:[b,x,S,C,w,T,E,D,O,k,A,j,M,N,(0,X.jsxs)(`filter`,{id:`filter14_f_2002_17158`,width:`39.409`,height:`43.623`,x:`18.713`,y:`10.588`,colorInterpolationFilters:`sRGB`,filterUnits:`userSpaceOnUse`,children:[(0,X.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,X.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,X.jsx)(`feGaussianBlur`,{result:`effect1_foregroundBlur_2002_17158`,stdDeviation:`4.596`})]})]}),t[32]=P):P=t[32];let F;return t[33]===e?F=t[34]:(F=(0,X.jsxs)(`svg`,{...e,fill:`none`,viewBox:`0 0 48 46`,children:[n,i,y,P]}),t[33]=e,t[34]=F),F}var mh=`/assets/icon-B_7Zk4lP.svg`,hh={...gt(Object.assign({"../../../../auth/src/routes/icon.svg":qm,"../icon.svg":Jm,"../../../../gateway/src/routes/icon.svg":Ym,"../../../../opm/src/routes/icon.svg":Xm,"../../../../portfolio/src/routes/icon.svg":Zm,"../../../../scope/src/routes/icon.svg":Qm,"../../../../signal/src/routes/icon.svg":$m,"../../../../stash/src/routes/icon.svg":eh,"../../../../trips/src/routes/icon.svg":th})),deploy:mh},gh=[{dark:uh,light:lh,pattern:/\bt3code\b/u},{dark:oh,light:oh,pattern:/\b(?:node|nodejs)(?:-MainThread)?\b/iu},{dark:nh,light:nh,pattern:/\bbun(?:\.native)?\b/u},{dark:sh,light:sh,pattern:/\b(?:postgres|postgresql|postmaster)\b/u},{dark:ch,light:ch,pattern:/\bredis(?:-server)?\b/u},{dark:ih,light:ih,pattern:/\b(?:docker|dockerd|containerd)\b/u},{dark:ph,light:ph,pattern:/\b(?:vp|vite)\b/u},{dark:dh,light:fh,pattern:/\bturbo\b/u},{dark:ah,light:ah,pattern:/\besbuild\b/u},{dark:rh,light:rh,pattern:/\bcloudflared\b/u}];function _h(e){let t=(0,$.c)(14),n=hh[w(e.name,/[ -]/u)[0]],r;t[0]!==e.name||t[1]!==e.process?(r=E(M(gh,t=>t.pattern.test(`${e.name} ${e.process??``}`))),t[0]=e.name,t[1]=e.process,t[2]=r):r=t[2];let i=r,a;t[3]!==i||t[4]!==n||t[5]!==e.container?(a=function(){return n===void 0?i===void 0?e.container===!0?(0,X.jsx)(xt,{className:`size-full`}):(0,X.jsx)(yt,{className:`size-full`}):i.light===i.dark?(0,X.jsx)(i.light,{className:`size-full`}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(i.light,{className:`size-full dark:hidden`}),(0,X.jsx)(i.dark,{className:`hidden size-full dark:block`})]}):(0,X.jsx)(`img`,{src:n,alt:``,className:`pixelated size-full object-contain`})},t[3]=i,t[4]=n,t[5]=e.container,t[6]=a):a=t[6];let o=a,s;t[7]===e.small?s=t[8]:(s=ue(e.small===!0,{onFalse:yh,onTrue:vh}),t[7]=e.small,t[8]=s);let c=`text-muted-foreground inline-flex shrink-0 items-center justify-center ${s}`,l;t[9]===o?l=t[10]:(l=o(),t[9]=o,t[10]=l);let u;return t[11]!==c||t[12]!==l?(u=(0,X.jsx)(`span`,{className:c,"aria-hidden":`true`,children:l}),t[11]=c,t[12]=l,t[13]=u):u=t[13],u}function vh(){return`size-4`}function yh(){return`size-5`}function bh(){let e=(0,$.c)(3),t=Yt(Am),n=Yt(jm),r;return e[0]!==n||e[1]!==t?(r=e=>{n(le),t(B(e))},e[0]=n,e[1]=t,e[2]=r):r=e[2],r}function xh(e){let t=(0,$.c)(61),[n,r]=Xt(jm),[i,a]=(0,Y.useState)(`tailnet`),[o,s]=(0,Y.useState)(``),c;if(t[0]!==e.items||t[1]!==e.port.worker){let n;t[3]===e.port.worker?n=t[4]:(n=t=>t.self===!0&&t.worker===e.port.worker,t[3]=e.port.worker,t[4]=n),c=p(I(M(e.items,n),Dh),Eh),t[0]=e.items,t[1]=e.port.worker,t[2]=c}else c=t[2];let l=c,d;t[5]===n?d=t[6]:(d=be(n),t[5]=n,t[6]=d);let f=d,m;t[7]!==r||t[8]!==o||t[9]!==i||t[10]!==e.port.id||t[11]!==e.port.port||t[12]!==e.port.worker||t[13]!==l?(m=t=>{t.preventDefault(),r({hostname:ue(i===`public`,{onFalse:()=>l,onTrue:()=>o}),kind:i,name:ue(i===`public`,{onFalse:()=>`tailnet:${e.port.port}`,onTrue:()=>`public:${o}`}),port:e.port.port??0,publicAccess:i===`public`,target:ue(u(`remote:`)(e.port.id),{onFalse:Th,onTrue:()=>e.port.worker})})},t[7]=r,t[8]=o,t[9]=i,t[10]=e.port.id,t[11]=e.port.port,t[12]=e.port.worker,t[13]=l,t[14]=m):m=t[14];let h=e.port.process??e.port.name,_;t[15]===h?_=t[16]:(_=(0,X.jsx)(_h,{name:h,small:!0}),t[15]=h,t[16]=_);let v;t[17]===e.port.port?v=t[18]:(v=(0,X.jsxs)(mm,{variant:`outline`,className:`font-mono`,children:[`:`,e.port.port]}),t[17]=e.port.port,t[18]=v);let y;t[19]!==e.port.process||t[20]!==_||t[21]!==v?(y=(0,X.jsxs)(Vm,{className:`flex items-center gap-2`,children:[_,`Expose `,e.port.process,v]}),t[19]=e.port.process,t[20]=_,t[21]=v,t[22]=y):y=t[22];let b;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(b=e=>{(e===`public`||e===`tailnet`)&&a(e)},t[23]=b):b=t[23];let x;t[24]===f?x=t[25]:(x=(0,X.jsxs)(Wm,{className:`w-full`,children:[(0,X.jsx)(Gm,{value:`tailnet`,disabled:f,children:`Tailnet`}),(0,X.jsx)(Gm,{value:`public`,disabled:f,children:`Public`})]}),t[24]=f,t[25]=x);let S;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,X.jsx)(sm,{htmlFor:`expose-tailnet`,children:`Address`}),t[26]=S):S=t[26];let C;t[27]!==e.port.port||t[28]!==l?(C=ue(l===``,{onFalse:()=>`https://${l}:${e.port.port}`,onTrue:wh}),t[27]=e.port.port,t[28]=l,t[29]=C):C=t[29];let w;t[30]===C?w=t[31]:(w=(0,X.jsx)(Km,{value:`tailnet`,children:(0,X.jsxs)(om,{children:[S,(0,X.jsx)(Op,{id:`expose-tailnet`,readOnly:!0,className:`font-mono`,value:C})]})}),t[30]=C,t[31]=w);let T;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,X.jsx)(sm,{htmlFor:`expose-public`,children:`Hostname`}),t[32]=T):T=t[32];let E=i===`public`,D;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>s(g(e.target.value)),t[33]=D):D=t[33];let O;t[34]!==o||t[35]!==f||t[36]!==E?(O=(0,X.jsx)(Km,{value:`public`,children:(0,X.jsxs)(om,{children:[T,(0,X.jsx)(Op,{id:`expose-public`,required:E,className:`font-mono`,placeholder:`app.example.com`,autoCapitalize:`none`,spellCheck:!1,value:o,disabled:f,onChange:D})]})}),t[34]=o,t[35]=f,t[36]=E,t[37]=O):O=t[37];let k;t[38]!==i||t[39]!==w||t[40]!==O||t[41]!==x?(k=(0,X.jsxs)(Hm,{value:i,onValueChange:b,children:[x,w,O]}),t[38]=i,t[39]=w,t[40]=O,t[41]=x,t[42]=k):k=t[42];let A;t[43]===n?A=t[44]:(A=(0,X.jsx)(dm,{result:n}),t[43]=n,t[44]=A);let j;t[45]===f?j=t[46]:(j=(0,X.jsx)(Lm,{render:(0,X.jsx)(rt,{variant:`ghost`,type:`button`,disabled:f}),children:`Cancel`}),t[45]=f,t[46]=j);let N=f||i===`tailnet`&&l===``||i===`public`&&o===``,P;t[47]===f?P=t[48]:(P=ue(f,{onFalse:Ch,onTrue:Sh}),t[47]=f,t[48]=P);let F;t[49]!==N||t[50]!==P?(F=(0,X.jsx)(rt,{type:`submit`,disabled:N,children:P}),t[49]=N,t[50]=P,t[51]=F):F=t[51];let L;t[52]!==j||t[53]!==F?(L=(0,X.jsxs)(Bm,{children:[j,F]}),t[52]=j,t[53]=F,t[54]=L):L=t[54];let R;return t[55]!==k||t[56]!==A||t[57]!==m||t[58]!==L||t[59]!==y?(R=(0,X.jsxs)(`form`,{className:`flex flex-col gap-4`,onSubmit:m,children:[y,k,A,L]}),t[55]=k,t[56]=A,t[57]=m,t[58]=L,t[59]=y,t[60]=R):R=t[60],R}function Sh(){return`Exposing…`}function Ch(){return`Expose`}function wh(){return``}function Th(){return``}function Eh(){return``}function Dh(e){return e.hostname??``}function Oh(){let e=(0,$.c)(2),[t,n]=Xt(Am),r;return e[0]===n?r=e[1]:(r=e=>(0,X.jsx)(Fm,{open:!0,onOpenChange:e=>{e||n(oe())},children:(0,X.jsx)(zm,{children:(0,X.jsx)(xh,{items:e.snapshot.items,port:e.port},e.port.id)})}),e[0]=n,e[1]=r),he(C({port:t,snapshot:b(Gt(km))}),{onNone:kh,onSome:r})}function kh(){return null}export{Pa as A,Z as B,Ad as C,bo as D,hl as E,Nr as F,wn as G,qn as H,xr as I,Xt as J,an as K,lr as L,Ji as M,Yi as N,yo as O,Q as P,or as R,kd as S,Ed as T,On as U,Qn as V,kn as W,Gt as X,en as Y,Nt as Z,bf as _,Mm as a,Jd as b,Nm as c,rm as d,$p as f,jf as g,Nf as h,mh as i,ua as j,ho as k,mm as l,Pf as m,bh as n,km as o,Ep as p,nn as q,_h as r,Pm as s,Oh as t,dm as u,vf as v,Td as w,Kd as x,hf as y,ar as z};
|