@deslop/deploy 0.1.1227 → 0.1.1231

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.
@@ -1 +0,0 @@
1
- import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{$s as t,Ac as n,Al as r,As as i,Bs as a,C as o,Cc as s,Dc as c,F as l,Fs as u,G as d,Hs as f,I as p,Is as m,Js as h,K as g,Ls as _,Ms as v,Oc as y,Ol as b,Os as x,Qc as S,Qs as C,S as w,Sc as T,T as E,Us as D,W as O,Ws as k,Xc as A,Xs as j,Zc as M,Zs as N,aa as P,b as F,bc as I,ca as L,d as R,f as z,gc as ee,h as B,ia as V,j as te,jc as ne,jl as re,js as ie,kl as ae,l as oe,la as se,m as ce,nc as le,o as ue,oa as de,q as fe,ra as pe,rc as me,sa as he,tc as ge,u as _e,ua as ve,wc as ye,wl as be,x as H,y as xe,yc as U,zs as Se}from"./schema-DLne3DRa.js";import{A as Ce,At as we,C as Te,Ct as Ee,D as De,E as Oe,Et as ke,Ft as Ae,L as W,Nt as je,Ot as Me,Pt as Ne,R as Pe,T as Fe,Tt as Ie,W as Le,a as Re,b as ze,c as Be,f as Ve,g as He,gt as Ue,h as We,k as Ge,m as Ke,n as qe,p as Je,r as Ye,s as Xe,t as Ze,v as Qe,w as $e,wt as et,x as tt,y as nt,z as rt}from"./utils-B7SpBnlR.js";import{D as it,E as at,F as ot,G as st,J as ct,P as lt,Q as ut,T as dt,a as ft,at as pt,c as mt,d as ht,dt as G,f as gt,ft as _t,g as vt,gt as K,h as yt,ht as bt,i as xt,j as q,l as St,lt as Ct,m as J,n as wt,nt as Tt,o as Et,ot as Dt,p as Ot,q as kt,r as At,s as jt,st as Mt,t as Nt,u as Pt,ut as Ft,v as It,w as Lt}from"./icon-dark-qOQYJ5Qz.js";import{B as Rt,D as zt,F as Bt,H as Y,I as Vt,J as Ht,L as Ut,M as Wt,N as Gt,O as Kt,P as qt,V as Jt,b as Yt,v as Xt,x as Zt,z as X}from"./index-DVPVace2.js";var Qt=`~effect/MutableHashSet`,$t={[Qt]:Qt,[Symbol.iterator](){return Array.from(this.keyMap).map(([e])=>e)[Symbol.iterator]()},toString(){return`MutableHashSet(${S(Array.from(this))})`},toJSON(){return{_id:`MutableHashSet`,values:M(Array.from(this))}},[A](){return this.toJSON()},pipe(){return ae(this,arguments)}},en=e=>{let t=Object.create($t);return t.keyMap=e,t},tn=()=>en(Bt()),nn=be(2,(e,t)=>(Ut(e.keyMap,t,!0),e)),rn=be(2,(e,t)=>Vt(e.keyMap,t)),an={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};an.node;var on=g(an),sn={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`]};sn.node;var cn=g(sn),ln={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`}]]};ln.node;var un=g(ln),dn={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};dn.node;var fn=g(dn),pn={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};pn.node;var mn=g(pn),hn={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};hn.node;var gn=g(hn),_n={name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]};_n.node;var vn=g(_n),yn={name:`network`,size:24,node:[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]};yn.node;var bn=g(yn),xn={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};xn.node;var Sn=g(xn),Cn={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Cn.node;var wn=g(Cn),Z=e(re(),1),Q=fe(),$=r();d(`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 Tn(e){let t=(0,Q.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(Dn)).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,$.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:r.map(En)}),t[7]=r,t[8]=a),o=a}let s=o;if(!s)return null;let c;t[9]===r?c=t[10]:(c=O(`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,$.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 En(e,t){return e?.message&&(0,$.jsx)(`li`,{children:e.message},t)}function Dn(e){return[e?.message,e]}function On(e){let t=(0,Q.c)(5),n=e.className,r;t[0]===e.result?r=t[1]:(r=U(s(Xt(e.result),kn)),t[0]=e.result,t[1]=r);let i;return t[2]!==e.className||t[3]!==r?(i=(0,$.jsx)(Tn,{className:n,children:r}),t[2]=e.className,t[3]=r,t[4]=i):i=t[4],i}function kn(e){return e.message}function An(e){return oe(e.defaultTagName??`div`,e,e)}var jn=d(`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 Mn(e){let t=(0,Q.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=An,r=`span`,i=F({className:O(jn({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)}function Nn(e){let t=Z.useRef(!0);t.current&&(t.current=!1,e())}function Pn(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=He(),a=q()!=null,s=o(()=>new J({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new yt,floatingId:i,syncOnly:!1,nested:a})).current;return H(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=l(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),s.update(e)},[t,i,r.reference,r.floating,s]),s.context.onOpenChange=n,s.context.nested=a,s}function Fn(e,t,n,r,i,a,o,s,c,l=2){let u=rt(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 Le(n.current,u)?void 0:u}var In=Z.createContext(void 0),Ln=Z.createContext(void 0),Rn=Z.createContext(void 0),zn=Z.createContext(!1),Bn=Z.createContext(``);function Vn(){let e=Z.useContext(In);if(!e)throw Error(xe(22));return e}function Hn(){let e=Z.useContext(Ln);if(!e)throw Error(xe(23));return e}function Un(){let e=Z.useContext(Rn);if(!e)throw Error(xe(24));return e}function Wn(){return Z.useContext(Bn)}function Gn(){return Z.useContext(zn)}function Kn(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 qn=(e,t)=>Object.is(e,t);function Jn(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function Yn(e,t,n){return Array.isArray(e)&&Array.isArray(t)?!Kn(e,t,(e,t)=>Jn(e,t,n)):e!==t}function Xn(e,t,n){return e?e.some(e=>e!==void 0&&Jn(t,e,n)):!1}function Zn(e,t,n){return e?e.findIndex(e=>e!==void 0&&Jn(e,t,n)):-1}function Qn(e,t){if(t!==qn)return n=>Xn(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 $n(e,t,n,r){let i=r&&Array.isArray(t)?e.findIndex(Qn(t,n)):Zn(e,t,n);return i===-1?null:i}function er(e,t,n,r,i,a){return Xn(r,t,i)?a!=null&&e>a&&Xn(r,n[a],i)?a:e:e===a?$n(n,r,i,!0):a}function tr(e,t,n){return e.filter(e=>!Jn(t,e,n))}function nr(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function rr(e){return typeof e==`object`&&!!e&&Array.isArray(e.items)}function ir(e){return rr(e?.[0])}function ar(e){return ir(e)?e.flatMap(e=>e.items):e}function or(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(ir(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 sr(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 nr(e)}function cr(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?nr(e.value):nr(e)}var lr={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?or(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=>Jn(t,e,n)):Jn(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},ur=`data-valid`,dr=`data-invalid`,fr={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},pr={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},mr={disabled:!1,...pr},hr={valid(e){return e===null?null:e?{[ur]:``}:{[dr]:``}}},gr={invalid:void 0,name:void 0,validityData:{state:fr,errors:[],error:``,value:``,initialValue:null},setValidityData:z,disabled:void 0,setTouched:z,setDirty:z,setFilled:z,setFocused:z,focusOwnerRef:{current:void 0},validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:mr,registerFieldControl:z,validation:{getValidationProps:(e,t=R)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:z,getInputControl:()=>null,commit:async()=>{},change:z}},_r=Z.createContext(gr);function vr(e=!0){let t=Z.useContext(_r);if(t.setValidityData===z&&!e)throw Error(xe(28));return t}function yr(e,t,n,r,i=!0,a){let{registerFieldControl:s}=vr(),c=o(()=>Symbol());H(()=>{let o=c.current;i?s(o,{controlRef:e,getValue:r,id:t,name:a,value:n}):s(o,void 0)},[e,i,r,t,a,s,c,n]),H(()=>{let e=c.current;return()=>{s(e,void 0)}},[s,c])}var br=Z.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:z,validationMode:`onSubmit`,submitCountRef:{current:0}});function xr(){return Z.useContext(br)}var Sr=Z.createContext({controlId:void 0,registerControlId:z,resetControlId:z,labelId:void 0,setLabelId:z,messageIds:[],setMessageIds:z,getDescriptionProps:e=>e});function Cr(){return Z.useContext(Sr)}function wr(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=Cr(),s=We(),c=o(()=>Symbol()),l=Z.useRef(!1),u=Z.useRef(!1),d=w(()=>{l.current&&i!==z&&(l.current=!1,i(c.current,void 0))});return H(()=>{if(!n||i===z){d();return}let e;if(t!==void 0)u.current=!0,e=t;else if(u.current)e=s;else{a();return}e===void 0?d():(l.current=!0,i(c.current,e))},[t,n,i,a,s,c,d]),H(()=>d,[d]),(n?r:void 0)??t??s}function Tr(e){return e==null?void 0:`${e}-popup`}function Er(e,t){return(n,r)=>n!=null&&e.contains(n,r,t)}function Dr(e){return Array.isArray(e)?e.map(e=>Dr(e)).join(`,`):e==null?``:String(e)}var Or=new Map;function kr(e={}){let{locale:t,...n}=e,r={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...n},i=`${Dr(t)}|${JSON.stringify(r)}`,a=Or.get(i);if(a)return a;let o=new Intl.Collator(t,r),s={contains(e,t,n){if(!t)return!0;let r=sr(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=sr(e,n);return o.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=sr(e,n),i=t.length;return r.length>=i&&o.compare(r.slice(r.length-i),t)===0}};return Or.set(i,s),s}var Ar=kr;function jr(e,t=!1){let{overflowY:n}=E(e);return n!==`auto`&&n!==`scroll`?!1:t?e.clientHeight>0:e.scrollHeight>e.clientHeight}var Mr=Symbol(`none`),Nr={value:Mr,index:-1};function Pr(e,t,n){let r=e.get(t);if(r!==void 0||n===qn)return r;for(let[r,i]of e)if(Jn(r,t,n))return i}function Fr(e){let{id:t,onOpenChangeComplete:n,defaultSelectedValue:r=null,selectedValue:i,onSelectedValueChange:a,defaultInputValue:s,inputValue:c,open:l,defaultOpen:u=!1,selectionMode:d,onItemHighlighted:f,name:m,form:h,disabled:g=!1,readOnly:_=!1,required:v=!1,inputRef:y,grid:b=!1,items:x,filteredItems:S,filter:C,filterQuery:T,openOnInputClick:E=!0,autoHighlight:D=!1,keepHighlight:O=!1,highlightItemOnHover:k=!0,loopFocus:A=!0,itemToStringLabel:j,itemToStringValue:M,isItemEqualToValue:N=qn,virtualized:P=!1,inline:I=!1,fillInputOnItemPress:L=!0,modal:ee=!1,limit:B=-1,autoComplete:V=`list`,formAutoComplete:ne,locale:re,submitOnItemClick:ie=!1}=e,{clearErrors:ae}=xr(),{setDirty:oe,validityData:se,setFilled:le,name:ue,disabled:de,setTouched:fe,setFocused:pe,validationMode:me,validation:he}=vr(),ge=Ke(),ve=wr({id:t}),ye=Ar({locale:re}),be=Array.isArray(x)?null:x;if(be&&typeof be.label!=`function`)throw Error(xe(100));let U=be?be.data:x,Se=be?.value,we=Se?void 0:U,Ae=Z.useMemo(()=>{if(!S||!Se)return;let e=ar(S),t=e.map(Se),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 Pr(n,r,i)}}},[S,Se]),Me=Z.useMemo(()=>be?e=>be.label(e,N,e=>{let t=Ae?.findItem(e,N);return t==null?sr(e,j):be.itemLabel(t)}):j,[be,j,Ae,N]),Ne=Z.useMemo(()=>be?Object.assign(e=>be.itemLabel(e),{selected:e=>sr(e,Me)}):j,[be,Me,j]);function Le(e){return sr(e,Me)}let[Re,ze]=Z.useState(!1),[Be,Ve]=Z.useState(null),He=Z.useRef(Be),Ue=Z.useRef([]),We=Z.useRef([]),Ge=Z.useRef(null),qe=Z.useRef(null),Je=Z.useRef(null),Ye=Z.useRef(null),Xe=Z.useRef(null),Ze=Z.useRef(!1),Qe=Z.useRef(null),tt=Z.useRef(null),nt=Z.useRef(null),rt=Z.useRef(Nr),it=Z.useRef(null),ot=Z.useRef([]),st=Z.useRef(null),ct=de||g,lt=ue??m,ut=d===`multiple`,ft=d===`single`,mt=c!==void 0||s!==void 0,G=U!==void 0,gt=S!==void 0,_t;_t=D===`always`?`always`:D?`input-change`:!1;let[K,yt]=je({controlled:i,default:ut?r??_e:r,name:`Combobox`,state:`selectedValue`}),bt=Z.useMemo(()=>C===null?()=>!0:C===void 0?Er(ye,Ne):C,[C,ye,Ne]),xt=o(()=>mt?s??``:ft?Le(K):``).current,[q,Ct]=je({controlled:c,default:xt,name:`Combobox`,state:`inputValue`}),[J,wt]=je({controlled:l,default:u,name:`Combobox`,state:`open`}),Et=ir(U),kt=!J&&Be!==null?Be:String(q).trim(),At=ft?Le(K):``,jt=ft&&!Re&&kt!==``&&At.length===kt.length&&ye.contains(At,kt),Nt=jt?``:T??kt,Ft=G&&gt&&jt&&(!be||be.hasValue(K,N)),Rt=Z.useMemo(()=>U?ar(U):_e,[U]),zt=Z.useMemo(()=>{if(S&&!Ft)return S;if(!U)return _e;if(Et){let e=U,t=[],n=0;for(let r of e){if(B>-1&&n>=B)break;let e=B>-1?B-n:1/0,i=Nt===``?r.items.slice(0,e):[];if(Nt!==``)for(let t of r.items){if(i.length>=e)break;bt(t,Nt,Ne)&&i.push(t)}if(i.length>0){let e={...r,items:i};t.push(e),n+=i.length}}return t}if(Nt===``)return B>-1?Rt.slice(0,B):Rt;let e=[];for(let t of Rt){if(B>-1&&e.length>=B)break;bt(t,Nt,Ne)&&e.push(t)}return e},[S,Ft,U,Et,Nt,B,bt,Ne,Rt]),Bt=Z.useMemo(()=>{if(Ae&&zt===S)return Ae.values;let e=ar(zt);return Se?e.map(e=>Se(e)):e},[zt,S,Ae,Se]),Y=o(()=>{let e=null;return I&&J&&G&&d!==`none`&&(e=$n(Bt,K,N,ut)),new Tt({id:ve,labelId:void 0,selectedValue:K,open:J,items:we,selectionMode:d,name:lt,form:h,disabled:ct,readOnly:_,required:v,grid:b,virtualized:P,openOnInputClick:E,itemToStringLabel:Me,isItemEqualToValue:N,modal:ee,autoHighlight:_t,submitOnItemClick:ie,hasInputValue:mt,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:I,activeIndex:null,selectedIndex:e,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemRoot:{props:R,id:ve,selectionMode:d,disabled:ct,readOnly:_,isItemEqualToValue:N},positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:d===`none`},{onOpenChangeComplete:z,setOpen:z,setInputValue:z,setSelectedValue:z,setIndices:z,handleSelection:z,forceMount:z,requestSubmit:z,listRef:Ue,labelsRef:We,popupRef:Ge,emptyRef:Xe,inputRef:qe,startDismissRef:Je,endDismissRef:Ye,chipsContainerRef:Qe,clearRef:tt,valuesRef:ot,pointerDownItemRef:st,selectionEventRef:nt},lr)}).current,Vt=d===`none`?q:K,Ht=Z.useMemo(()=>d===`none`?Vt:Array.isArray(K)?K.map(e=>cr(e,M)):cr(K,M),[Vt,M,d,K]),Ut=w(f),Wt=w(n),Gt=Y.useState(`activeIndex`),Kt=Y.useState(`selectedIndex`),qt=Y.useState(`positionerElement`),Jt=Y.useState(`listElement`),Yt=Y.useState(`triggerElement`),Xt=Y.useState(`inputElement`),Zt=Y.useState(`inputGroupElement`),X=Y.useState(`inline`),Qt=Y.useState(`inputInsidePopup`),$t=Y.useState(`inputOwnsFormValue`),en=ft&&!Qt&&q===At,tn=Mt(Yt),{openMethod:nn,triggerProps:rn}=St(J),an=w(()=>Ht);yr(Qt?tn:qe,ve,Vt,an,!ct,m);let on=w(()=>{U?We.current=Bt.map(Le):Y.set(`forceMounted`,!0)}),sn=w((e,t,n,r)=>{if(t===-1){if(rt.current===Nr)return;rt.current=Nr}else rt.current={value:e,index:t};Ut(e,Pe(n,r,{index:t}))}),cn=w(e=>{let t={};e.activeIndex!==void 0&&(t.activeIndex=e.activeIndex),e.selectedIndex!==void 0&&(t.selectedIndex=e.selectedIndex),Y.update(t);let n=e.activeIndex;if(n===void 0)return;let r=e.type||`none`;n===null?sn(void 0,-1,r,e.event):sn(ot.current[n],n,r,e.event)}),ln=w((t,n)=>{if(e.onInputValueChange?.(t,n),!n.isCanceled){if(Ze.current=n.reason===Fe,n.reason===`input-change`){J&&Be!==null&&Ve(null);let e=n.event,r=e.inputType;if(e.type===`compositionend`||r!=null&&r!==``&&r!==`insertReplacementText`){let e=t.trim()!==``;e&&ze(!0),it.current={hasQuery:e};let n=Y.state.listElement;if(!Y.state.virtualized&&n){let e=Ge.current;for(let t of te(n.firstElementChild??n)){if(!p(t)||(e?!Ie(e,t):t.getAttribute(`role`)===`dialog`))break;if(jr(t)){t.scrollTop=0;break}}}e&&_t&&Y.state.activeIndex==null&&(J||X)&&Y.set(`activeIndex`,0)}}else n.reason===`input-clear`&&t===``&&Y.state.inputInsidePopup&&(it.current={hasQuery:!1,selection:!0});Ct(t)}}),un=w(e=>{let t=!e&&Qt&&!X&&q!==``&&(String(q).trim()===Be||q===At);!e&&(t||q===``||en)&&ze(!1),Ve(null),t&&ln(``,W(Fe))}),[dn,fn]=Z.useState(!1),pn=w((t,n)=>{if(J===t)return;n.reason===`escape-key`&&G&&Bt.length===0&&!Xe.current&&n.allowPropagation();let r=n,i=It(r);if(e.onOpenChange?.(t,r),it.current?.hasQuery&&n.reason===`input-change`===n.isCanceled&&(it.current=null),!n.isCanceled&&(t&&Be!==null&&un(n.reason===$e),!t&&Re&&(ft?(X||Ve(kt),kt===``&&ze(!1)):ut&&(X||Ve(kt),Qt&&cn({activeIndex:null}),(!Qt||X)&&ln(``,W(Fe,n.event,void 0,{isItemPress:n.reason===De})))),t||fn(i()),wt(t),!t&&Qt&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(fe(!0),pe(!1),me===`onBlur`))){let e=d===`none`?q:K;he.commit(e)}}),mn=w((e,t)=>{a?.(e,t),!t.isCanceled&&(yt(e),(d===`none`&&Ge.current&&L||ft&&!Y.state.inputInsidePopup)&&ln(Le(e),W(t.reason,t.event)))}),hn=w((e,t)=>{let n=ke(e),r=nt.current??e;nt.current=null;let i=W(De,r),a=et(n,`a`)?.getAttribute(`href`);if(a)a.startsWith(`#`)&&pn(!1,i);else if(ut){let e=Array.isArray(K)?K:[],n=Xn(e,t,N),r=n?tr(e,t,N):[...e,t];if(mn(r,i),i.isCanceled||!(qe.current&&qe.current.value.trim()!==``))return;if(Y.state.inputInsidePopup){ln(``,W(Fe,i.event,void 0,{isItemPress:!0}));let e=it.current;e&&!n&&(e.toggledValue=t)}else pn(!1,i)}else{if(mn(t,i),i.isCanceled)return;pn(!1,i)}}),gn=w(()=>{let e=he.inputRef.current?.form??Y.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),_n=w(()=>{if(Wt?.(!1),ze(!1),Ve(null),cn(d===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),ut&&qe.current&&qe.current.value!==``&&!Ze.current&&ln(``,W(Fe)),ft){if(Y.state.inputInsidePopup)qe.current&&qe.current.value!==``&&ln(``,W(Fe));else{let e=Le(K);qe.current&&qe.current.value!==e&&ln(e,W(e===``?Fe:Ce))}}}),vn=Z.useMemo(()=>X&&qt?{current:et(qt,`[role="dialog"]`)}:Ge,[X,qt]),{mounted:yn,transitionStatus:bn,forceUnmount:xn}=Lt({open:J,ref:vn,preventUnmountOnClose:dn,setPreventUnmountOnClose:fn,onUnmount:_n});Z.useImperativeHandle(e.actionsRef,()=>({unmount:xn,close:()=>pn(!1,W(Te))}),[xn,pn]),H(function(){let e=He.current!==null&&Be===null;if(He.current=Be,J&&(!e||!G)||(J||(st.current=null),d===`none`))return;let t=G?Bt:ot.current;cn({selectedIndex:$n(t,K,N,ut)})},[J,Be,K,d,ut,G,Bt,N,cn]),H(()=>{U&&(ot.current=Bt,Ue.current.length=Bt.length)},[U,Bt]),H(()=>{!J&&it.current?.hasQuery&&(it.current=null)},[J]),H(()=>{if(!J&&X&&vn.current){it.current=null;return}let e=G||gt?Bt:ot.current,t=it.current;if(t){let n=J||X||Y.state.positionerElement?.hidden===!1;if(t.hasQuery){let t=qe.current;!_t||String(q).trim()===``||X&&_t!==`always`&&(!t||Ee(t.ownerDocument)!==t)?it.current=null:n&&(e[0]!==void 0||!G&&!gt)&&(Y.set(`activeIndex`,0),it.current=null)}else if(String(q).trim()===``&&(it.current=null,n)){let e=t.selection;_t===`always`&&!e&&Y.state.selectionMode===`none`&&Y.set(`activeIndex`,0),queueMicrotask(()=>{if(!Y.state.open&&(!Y.state.inline||vn.current)||qe.current&&qe.current.value.trim()!==``)return;let n=Y.state.selectedValue,r=Y.state.selectionMode===`multiple`;if(r&&Array.isArray(n)?n.length>0:Y.state.selectionMode!==`none`&&n!=null){let e=G||gt?Bt:ot.current,i=Zn(e,t.toggledValue,Y.state.isItemEqualToValue);Y.set(`activeIndex`,i===-1?$n(e,n,Y.state.isItemEqualToValue,r):i)}else e?Y.set(`activeIndex`,null):_t===`always`&&Y.set(`activeIndex`,0)})}}if(!J&&!X)return;let n=Y.state.activeIndex;if(n==null){if(_t===`always`&&e.length>0){Y.set(`activeIndex`,0);return}sn(void 0,-1,Ce);return}if(n>=e.length){sn(void 0,-1,Ce),Y.set(`activeIndex`,null);return}let r=e[n],i=rt.current.value,a=i!==Mr&&Jn(r,i,Y.state.isItemEqualToValue);rt.current.index===n&&a||sn(r,n,Ce)},[Gt,_t,sn,gt,G,Bt,X,J,vn,Y,q]),H(()=>{le(d===`none`?String(q)!==``:ut?Array.isArray(K)&&K.length>0:K!=null)},[le,d,q,K,ut]),Z.useEffect(()=>{G&&_t&&Bt.length===0&&cn({activeIndex:null})},[G,_t,Bt.length,cn]);function Sn(){J&&kt!==``&&kt!==String(xt)&&!en&&ze(!0)}function Cn(){J&&Be!==null&&un(!1)}let wn=!1;function Q(){!wn&&q!==At&&(wn=!0,ln(At,W(Ce)))}function Tn(){d!==`none`&&(ae(lt),oe(Yn(K,se.initialValue,N)),he.change(K),ft&&!mt&&!Qt&&Q())}function En(){ft&&!mt&&!Qt&&!Re&&Q()}function Dn(){d===`none`&&(ae(lt),oe(q!==se.initialValue),he.change(q))}Pt(kt,Sn),Pt(J,Cn),Pt(K,Tn),Pt(At,En),Pt(U,En),Pt(q,Dn);let On=Pn({open:X?!0:J,onOpenChange:pn,elements:{reference:Qt?Yt:Xt,floating:qt}}),kn=b?`grid`:`listbox`,An=J||X,jn=An?`true`:`false`,Mn=Z.useMemo(()=>{let e=Xt?.tagName===`INPUT`,t=Xt==null||e,n=t||An,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=jn,r[`aria-haspopup`]=kn,r[`aria-controls`]=An?Jt?.id:void 0,r[`aria-autocomplete`]=_?`none`:V),{reference:r,floating:{role:`presentation`}}},[Xt,An,jn,kn,Jt?.id,V,_]),Vn=at(On,{enabled:!ct&&E,event:`mousedown-only`,toggle:!1,touchOpenDelay:Qt?0:100,reason:Oe}),Hn=dt(On,{enabled:!ct&&!X,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:X?!0:void 0,outsidePress(e){let t=ke(e);return!Ie(Yt,t)&&!Ie(tt.current,t)&&!Ie(Qe.current,t)&&!Ie(Zt,t)}}),Un=Ot(On,{enabled:!ct,id:ve,listRef:Ue,activeIndex:Gt,selectedIndex:Kt,virtual:!0,loopFocus:A,allowEscape:A&&!_t,focusItemOnOpen:Re||d===`none`&&!_t?!1:`auto`,focusItemOnHover:k,resetOnPointerLeave:!O,orientation:b?`horizontal`:void 0,rtl:ge===`rtl`,disabledIndices:_e,grid:b?Fn:void 0,onNavigate(e,t){(t||J||X&&e===null)&&bn!==`ending`&&cn({activeIndex:e,type:ht(t),event:t?.nativeEvent})}}),Wn=Z.useMemo(()=>F(Un.reference,{onKeyDown(e){b&&Y.state.activeIndex==null&&(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&e.preventBaseUIHandler()}},Hn.reference,Vn.reference,Mn.reference),[Un.reference,Hn.reference,Vn.reference,Mn.reference,b,Y]),Gn=Z.useMemo(()=>F(vt,Hn.floating),[Hn.floating]),Kn=Z.useMemo(()=>F(Un.floating,Mn.floating),[Un.floating,Mn.floating]),Qn=Z.useMemo(()=>{let e=Un.item;return{props:e?{...e,onFocus:void 0}:R,id:ve,selectionMode:d,disabled:ct,readOnly:_,isItemEqualToValue:N}},[Un.item,ve,d,ct,_,N]);Y.useContextCallback(`setOpen`,pn),Y.useContextCallback(`setInputValue`,ln),Y.useContextCallback(`setSelectedValue`,mn),Y.useContextCallback(`setIndices`,cn),Y.useContextCallback(`handleSelection`,hn),Y.useContextCallback(`forceMount`,on),Y.useContextCallback(`requestSubmit`,gn),Y.useContextCallback(`onOpenChangeComplete`,n),Nn(()=>{Y.update({inline:I,popupProps:Gn,listProps:Kn,inputProps:Wn,triggerProps:rn,itemRoot:Qn})});let er={id:ve,selectedValue:K,open:J,mounted:yn,transitionStatus:bn,items:we,inline:I,popupProps:Gn,listProps:Kn,inputProps:Wn,triggerProps:rn,itemRoot:Qn,openMethod:nn,selectionMode:d,name:lt,form:h,disabled:ct,readOnly:_,required:v,grid:b,virtualized:P,openOnInputClick:E,itemToStringLabel:Me,modal:ee,autoHighlight:_t,isItemEqualToValue:N,submitOnItemClick:ie,hasInputValue:mt};H(()=>{Y.update({...er,inputOwnsFormValue:d===`none`&&(I||!Y.state.inputInsidePopup)})},[Y,...Object.values(er)]);let nr=ce(y,he.inputRef),rr=Z.useMemo(()=>({query:kt,hasItems:G,filteredItems:zt,flatFilteredValues:Bt}),[kt,G,zt,Bt]),or=Z.useMemo(()=>Array.isArray(Vt)?``:cr(Vt,M),[Vt,M]),ur=ut&&Array.isArray(K)&&K.length>0,dr=ut||d===`none`&&$t?void 0:lt,fr=Z.useMemo(()=>!ut||!Array.isArray(K)||!lt?null:K.map(e=>{let t=cr(e,M);return(0,$.jsx)(`input`,{type:`hidden`,form:h,name:lt,value:t,disabled:ct},t)}),[ut,K,h,lt,M,ct]),pr=(0,$.jsxs)(Z.Fragment,{children:[e.children,(0,$.jsx)(`input`,{...he.getValidationProps(ct,{onFocus(){Qt?Yt?.focus():(qe.current||Yt)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||ct||_)return;let t=e.currentTarget.value,n=t.toLowerCase(),r=W(Ce,e.nativeEvent),i=()=>ot.current.findIndex(e=>cr(e,M).toLowerCase()===n||Le(e).toLowerCase()===n);function a(){if(ut)return;if(d===`none`){ln(t,r);return}let e=i();e===-1&&(e=ot.current.findIndex((e,t)=>{let r=We.current[t];return r!=null&&r.toLowerCase()===n}));let a=e===-1?void 0:ot.current[e];a!=null&&mn?.(a,r)}ft&&(on(),U&&i()===-1&&Y.set(`forceMounted`,!0)),queueMicrotask(a)}}),id:ve&&dr==null?`${ve}-hidden-input`:void 0,form:h,name:dr,autoComplete:ne,disabled:ct,required:v&&!ur,readOnly:_,value:or,ref:nr,style:dr?Dt:pt,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),fr]});return(0,$.jsx)(In.Provider,{value:Y,children:(0,$.jsx)(Ln.Provider,{value:On,children:(0,$.jsx)(zn.Provider,{value:G,children:(0,$.jsx)(Rn.Provider,{value:rr,children:(0,$.jsx)(Bn.Provider,{value:q,children:pr})})})})})}function Ir(e){let{multiple:t=!1,defaultValue:n,value:r,onValueChange:i,autoComplete:a,...o}=e;return(0,$.jsx)(Fr,{...o,selectionMode:t?`multiple`:`single`,selectedValue:r,defaultSelectedValue:n,onSelectedValueChange:i,formAutoComplete:a})}function Lr(e,t){return e??t}var Rr=`data-popup-side`,zr=`data-list-empty`,Br={...kt,...hr,popupSide:e=>e?{[Rr]:e}:null,listEmpty:e=>e?{[zr]:``}:null};function Vr(e,t,n){let{setFocused:r,focusOwnerRef:i}=vr(),a=w(t=>{(t?!e:i.current===a)&&(i.current=t&&a,n?.(t),r(t))});return H(()=>{let e=t.current;return e?.getRootNode()?.activeElement===e&&a(!0),()=>a(!1)},[e,t,a]),a}var Hr=Z.createContext(void 0);function Ur(){return Z.useContext(Hr)}var Wr=Z.createContext(void 0);function Gr(e){let t=Z.useContext(Wr);if(t===void 0&&!e)throw Error(xe(21));return t}var Kr=Z.forwardRef(function(e,t){let n=Vn(),{buttonRef:r,getButtonProps:i}=B({native:!1}),a=ce(t,r);function o(e){n.context.setOpen(!1,W(ze,e.nativeEvent,e.currentTarget))}let s=i({onClick:o});return(0,$.jsx)(`span`,{ref:a,...s,"aria-label":`Dismiss`,tabIndex:void 0,style:Dt})});function qr(e){let t=e.useState(`mounted`),n=e.useState(`popupSide`),r=e.useState(`positionerElement`);return t&&r?n:null}function Jr(){return Un().filteredItems.length===0}function Yr(e){return e===`rtl`?[`ArrowRight`,`ArrowLeft`]:[`ArrowLeft`,`ArrowRight`]}function Xr(e,t,n){let r=e.context.listRef.current[t];r&&(e.context.selectionEventRef.current=n,r.click(),e.context.selectionEventRef.current=null)}var Zr=Z.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}=vr(),{labelId:p}=Cr(),m=Ur(),h=!!Gr(!0),g=Vn(),_=Wn(),v=Ke(),y=g.useState(`required`),b=g.useState(`disabled`),x=g.useState(`readOnly`),S=g.useState(`name`),C=g.useState(`form`),T=g.useState(`selectionMode`),E=g.useState(`autoHighlight`),D=g.useState(`inputProps`),O=g.useState(`triggerProps`),k=g.useState(`open`),A=g.useState(`mounted`),j=g.useState(`selectedValue`),M=g.useState(`id`),N=g.useState(`inline`),P=g.useState(`modal`),F=!!E,I=qr(g),L=l||b||i,R=Jr(),z=Vr(L,g.context.inputRef),ee=h||N,B=!ee||P,V=We(a??(ee?void 0:M)),te=h?pr:c,[ne,re]=Z.useState(null),ie=Z.useRef(!1),ae=Z.useRef(null);H(()=>{k||(ae.current=null)},[k]);let se=T===`none`&&!h,ce=w(e=>{let t=h||g.state.inline;t&&!g.state.hasInputValue&&g.context.setInputValue(``,W(Ce)),g.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:se})}),le=h?s:f.getValidationProps(L,s);function ue(e){g.context.setIndices({activeIndex:null,selectedIndex:null,type:ht(e),event:e})}let de={...te,open:k,disabled:L,readOnly:x,popupSide:I,listEmpty:R};function fe(e){if(!m)return;let t,n=m.chipsRef.current.length,[r]=Yr(v);return e.key===r&&(e.currentTarget.selectionStart??0)===0&&j.length>0&&(e.preventDefault(),t=n>0?n-1:void 0),t}let pe=oe(`input`,e,{state:de,ref:[t,g.context.inputRef,ce],props:[D,O,{value:ne??_,"aria-readonly":x||void 0,"aria-required":y||void 0,"aria-labelledby":p,disabled:L,readOnly:x,required:T===`none`?y:void 0,form:C,...se&&S&&{name:S},id:V,onFocus(){if(z(!0),!N)return;let e=ae.current;ae.current=null,e!=null&&Object.hasOwn(g.context.valuesRef.current,e)&&g.context.setIndices({activeIndex:e})},onBlur(){u(!0),z(!1);let e=g.state.activeIndex;if(N&&e!==null&&E!==`always`&&(ae.current=e,g.context.setIndices({activeIndex:null})),d===`onBlur`){let e=T===`none`?_:j;f.commit(e)}},onCompositionStart(e){Me||(ie.current=!0,re(e.currentTarget.value))},onCompositionEnd(e){ie.current=!1;let t=e.currentTarget.value;re(null),g.context.setInputValue(t,W($e,e.nativeEvent))},onChange(e){let t=e.nativeEvent,n=t.inputType,r=!n||n===`insertReplacementText`,i=ie.current||!r;function a(e){!x&&!L&&e&&i&&(g.context.setOpen(!0,W($e,t)),F||ue(t))}if(ie.current){let n=e.currentTarget.value;re(n),n===``&&!g.state.openOnInputClick&&!g.state.inputInsidePopup&&g.context.setOpen(!1,W(Fe,t));let r=n.trim(),i=F&&r!==``;a(r),k&&g.state.activeIndex!==null&&!i&&ue(t);return}let o=W($e,t);if(g.context.setInputValue(e.currentTarget.value,o),o.isCanceled)return;let s=e.currentTarget.value===``,c=W(Fe,t);s&&!g.state.inputInsidePopup&&(T===`single`&&g.context.setSelectedValue(null,c),g.state.openOnInputClick||g.context.setOpen(!1,c)),a(e.currentTarget.value.trim()),k&&g.state.activeIndex!==null&&!F&&ue(t)},onKeyDown(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;if(L||x){x&&e.key===`Enter`&&k&&g.state.activeIndex!==null&&Ue(e);return}let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=v===`rtl`;if(e.key===`Home`){Ue(e);let n=ut&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){Ue(e);let i=ut&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!A&&e.key===`Escape`){let t=T===`multiple`&&Array.isArray(j)?j.length===0:j===null,n=W(tt,e.nativeEvent),r=T===`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(j)&&j.length>0){let t=m.chipsRef.current.length,n=t>0?t-1:j.length-1,r=j.filter((e,t)=>t!==n);ue(e.nativeEvent),g.context.setSelectedValue(r,W(Ce,e.nativeEvent));return}let i=fe(e);if(i!==void 0&&m?.chipsRef.current[i]?.focus(),e.which!==229&&e.key===`Enter`&&k){let t=g.state.activeIndex,n=e.nativeEvent;if(t===null){if(N)return;g.context.setOpen(!1,W(Ce,n));return}Ue(e),Xr(g,t,n)}}},le],stateAttributesMapping:Br}),me=h?(0,$.jsx)(_r.Provider,{value:gr,children:pe}):pe;return(0,$.jsxs)(Z.Fragment,{children:[k&&B&&(0,$.jsx)(Kr,{ref:g.context.startDismissRef}),me]})}),Qr=Z.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}=vr(),{labelId:m}=Cr(),h=Vn(),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`),T=h.useState(`inputInsidePopup`),E=h.useState(`id`),D=h.useState(`labelId`),O=h.useState(`open`),k=h.useState(`selectedValue`),A=h.useState(`activeIndex`),j=h.useState(`selectedIndex`),M=h.useState(`hasSelectedValue`),N=Hn(),P=Wn(),F=Ct(),I=u||_||a,L=Jr(),R=qr(h),z=Z.useRef(null),ee=Vr(I,z);wr({id:T?o:void 0});let V=T?o??E:o,te=Lr(m,D),ne;O&&T?ne=S??Tr(E):O&&(ne=x?.id);let re=Z.useRef(``);function ie(e){re.current=e.pointerType}let{reference:ae}=gt(N,{enabled:!O&&!v&&!_&&g===`single`,listRef:h.context.labelsRef,activeIndex:A,selectedIndex:j,onMatch(e){let t=h.context.valuesRef.current[e];t!==void 0&&h.context.setSelectedValue(t,W(Ce))}}),{reference:se}=at(N,{enabled:!_,event:`mousedown`}),{buttonRef:ce,getButtonProps:le}=B({native:i,disabled:I}),ue={...l,readOnly:v,open:O,disabled:I,popupSide:R,listEmpty:L,placeholder:g!==`none`&&!M},de=w(e=>{h.set(`triggerElement`,e)});return oe(`button`,e,{ref:[t,ce,z,de],state:ue,props:[C,se,ae,{id:V,tabIndex:T?0:-1,role:T?`combobox`:void 0,"aria-expanded":O,"aria-haspopup":T?`dialog`:`listbox`,"aria-controls":ne,"aria-required":T&&y||void 0,"aria-readonly":T&&v||void 0,"aria-labelledby":te,onPointerDown:ie,onPointerEnter:ie,onFocus(){ee(!0),!I&&F.start(0,h.context.forceMount)},onBlur(e){if(!Ie(b,e.relatedTarget)&&(d(!0),ee(!1),f===`onBlur`)){let e=g===`none`?P:k;p.commit(e)}},onMouseDown(e){if(I||(T||N.set(`domReferenceElement`,e.currentTarget),h.context.forceMount(),re.current!==`touch`&&(h.context.inputRef.current?.focus(),T||e.preventDefault()),O))return;let t=K(e.currentTarget);function n(e){let t=h.state.triggerElement;if(!t)return;let n=ke(e),r=h.state.positionerElement,i=h.state.listElement;Ie(t,n)||Ie(r,n)||Ie(i,n)||mt(e,t)||h.context.setOpen(!1,W(Qe,e))}T&&t.addEventListener(`mouseup`,n,{once:!0})},onKeyDown(e){(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(Ue(e),h.context.setOpen(!0,W(Ge,e.nativeEvent)),h.context.inputRef.current?.focus())}},p.getValidationProps(I,c),le],stateAttributesMapping:Br})}),$r=Z.createContext(null);function ei(){return Z.useContext($r)}function ti(e){let{children:t}=e,{filteredItems:n}=Un(),r=ei(),i=r?r.items:n;return(0,$.jsx)(Z.Fragment,{children:i.map(t)})}var ni=Z.forwardRef(function(e,t){var n;let{render:r,className:i,style:a,children:o,...s}=e,c=Vn(),l=Hn(),u=!!Gr(!0),{filteredItems:d,hasItems:f}=Un(),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=w(e=>{c.set(`positionerElement`,e)}),S=w(e=>{c.set(`listElement`,e)}),C=Z.useMemo(()=>typeof o==`function`?n||=(0,$.jsx)(ti,{children:o}):o,[o]),T={empty:b},E=l.useState(`floatingId`),D=oe(`div`,e,{state:T,ref:[t,S,u?null:x],props:[g,{children:C,tabIndex:-1,id:E,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;Ue(e),Xr(c,t,e.nativeEvent)}}},s]});if(_)return D;let O=f&&!v?void 0:c.context.labelsRef;return(0,$.jsx)(Je,{elementsRef:c.context.listRef,labelsRef:O,children:D})}),ri=`⁠`;function ii(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;e.nodeValue!==``&&(n=e)}return n}function ai(e=!0){let t=Ct(),n=Z.useRef(null);return Z.useEffect(()=>{if(!e||we)return;let r=n.current;if(r==null)return;let i=ii(r);if(i==null)return;let a=i.data,o=`${a}${ri}`;return i.nodeValue=o,t.start(200,()=>{i.nodeValue===o&&(i.nodeValue=a)}),()=>{t.clear(),i.nodeValue===o&&(i.nodeValue=a)}},[e,n,t]),n}var oi=Z.createContext(void 0);function si(){let e=Z.useContext(oi);if(e===void 0)throw Error(xe(20));return e}var ci=Z.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Vn(),a=i.useState(`mounted`),o=i.useState(`forceMounted`);return a||n||o?(0,$.jsx)(oi.Provider,{value:n,children:(0,$.jsx)(lt,{ref:t,...r})}):null}),li=Z.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=ot,style:g,..._}=e,v=Vn(),y=Hn(),b=si(),x=v.useState(`modal`),S=v.useState(`open`),C=v.useState(`mounted`),T=v.useState(`openMethod`),E=v.useState(`positionerElement`),D=v.useState(`triggerElement`),O=v.useState(`inputElement`),k=v.useState(`inputGroupElement`),A=v.useState(`inputInsidePopup`),j=v.useState(`transitionStatus`),M=Jr(),N=Et({anchor:i??(A?D:k??O),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});wt(S&&x,T===`touch`,E,D);let P={open:S,side:N.side,align:N.align,anchorHidden:N.anchorHidden,empty:M};H(()=>{v.set(`popupSide`,N.side)},[v,N.side]);let F=w(e=>{v.set(`positionerElement`,e)}),I=At(e,P,{styles:N.positionerStyles,transitionStatus:j,props:_,refs:[t,F],hidden:!C,inert:!S});return(0,$.jsxs)(Wr.Provider,{value:N,children:[C&&x&&(0,$.jsx)(ft,{inert:jt(!S),cutout:k??O??D}),I]})}),ui={...st,...G},di=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=Vn(),l=Gr(),u=Hn(),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=Jr(),x=s.id??(g?Tr(y):void 0);H(()=>(c.set(`popupId`,c.context.popupRef.current?.id||x),()=>{c.set(`popupId`,void 0)}),[c,x]),_t({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=oe(`div`,e,{state:S,ref:[t,c.context.popupRef],props:[m,{id:x,role:g?`dialog`:`presentation`,onFocus(e){let t=ke(e.nativeEvent);p!==`touch`&&(Ie(c.state.listElement,t)||t===e.currentTarget)&&c.context.inputRef.current?.focus()}},xt(h),s],stateAttributesMapping:ui}),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,$.jsx)(it,{context:u,disabled:!d,modal:E,openInteractionType:p,initialFocus:w,returnFocus:T,getInsideElements:()=>[c.context.startDismissRef.current,c.context.endDismissRef.current],children:(0,$.jsxs)(Z.Fragment,{children:[C,E&&(0,$.jsx)(Kr,{ref:c.context.endDismissRef})]})})}),fi=Z.createContext(void 0);function pi(){let e=Z.useContext(fi);if(!e)throw Error(xe(19));return e}var mi=Z.createContext(!1);function hi(){return Z.useContext(mi)}var gi=e(Y(),1);function _i(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=Z.useRef(null),m=Ve({guess:!0,index:l,textRef:p}),h=Vn(),g=hi(),_=Gn(),{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=Z.useRef(null),j=y!=null&&D?`${y}-${E}`:void 0,M=k&&T;H(()=>{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]),H(()=>{if(!D||_)return;let e=h.context.valuesRef.current;return e[E]=c,()=>{delete e[E]}},[D,_,E,c,h]),H(()=>{if(!D||_)return;let e=h.state.selectedValue,t=h.state.selectedIndex;h.state.selectionMode===`multiple`&&Array.isArray(e)?t=er(E,c,h.context.valuesRef.current,e,C,t):Jn(c,e,C)&&(t=E),h.set(`selectedIndex`,t)},[D,_,h,E,c,C]);let{getButtonProps:N,buttonRef:P}=B({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?(gi.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=oe(`div`,t,{ref:[P,n,m.ref,A],state:F,props:[v,L,f,N]}),z=Z.useMemo(()=>({selected:M,textRef:p}),[M,p]);return(0,$.jsx)(fi.Provider,{value:z,children:R})}function vi(e){let{componentProps:t,forwardedRef:n}=e,r=Vn().useState(`isItemEqualToValue`),{flatFilteredValues:i}=Un(),a=Zn(i,t.value??null,r);return(0,$.jsx)(_i,{componentProps:t,forwardedRef:n,virtualized:!0,indexFromFilter:a})}var yi=Z.memo(Z.forwardRef(function(e,t){let n=Vn().useState(`virtualized`);return n&&e.index==null?(0,$.jsx)(vi,{componentProps:e,forwardedRef:t}):(0,$.jsx)(_i,{componentProps:e,forwardedRef:t,virtualized:n,indexFromFilter:void 0})})),bi=Z.memo(Z.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a,selected:o,...s}=e,c=Z.useRef(null),{transitionStatus:l,setMounted:u}=Ft(o),d=oe(`span`,e,{ref:[t,c],state:{selected:o,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},s],stateAttributesMapping:G});return _t({batch:!0,enabled:!o,open:o,ref:c,onComplete(){o||u(!1)}}),d})),xi=Z.forwardRef(function(e,t){let{selected:n}=pi();return e.keepMounted||n?(0,$.jsx)(bi,{...e,selected:n,ref:t}):null}),Si=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,{filteredItems:s}=Un(),c=Vn(),l=ai(),u=s.length===0?a:null;return oe(`div`,e,{ref:[t,c.context.emptyRef,l],props:[{children:u,role:`status`,"aria-live":`polite`,"aria-atomic":!0},o]})}),Ci={...G,...ct},wi=Z.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:o=!1,style:s,...c}=e,{disabled:l}=vr(),u=Vn(),d=u.useState(`selectionMode`),f=u.useState(`disabled`),p=u.useState(`readOnly`),m=u.useState(`open`),h=u.useState(`selectedValue`),g=u.useState(`hasSelectionChips`),_=Wn(),v=!1;v=d===`none`?_!==``:d===`single`?h!=null:g;let y=l||f||i,{buttonRef:b,getButtonProps:x}=B({native:a,disabled:y}),{mounted:S,transitionStatus:C,setMounted:w}=Ft(v),T={disabled:y,visible:v,open:m,transitionStatus:C};_t({open:v,ref:u.context.clearRef,onComplete(){v||w(!1)}});let E=oe(`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=ht(e);u.context.setInputValue(``,W(nt,e.nativeEvent)),d===`none`?u.context.setIndices({activeIndex:null,type:t,event:e.nativeEvent}):(u.context.setSelectedValue(Array.isArray(h)?[]:null,W(nt,e.nativeEvent)),u.context.setIndices({activeIndex:null,selectedIndex:null,type:t,event:e.nativeEvent})),u.context.inputRef.current?.focus()}},c,x],stateAttributesMapping:Ci});return o||S?E:null}),Ti=Z.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}=vr(),{clearErrors:S,elementRef:C,submitCountRef:T}=xr(),E=h||s,D=m??a,O={...p,disabled:E},{labelId:k}=Cr(),A=wr({id:i}),j=o!==void 0,M=o==null?void 0:String(o),N=w(()=>x.inputRef.current?.value);yr(x.inputRef,A,M,N,!E,a),H(()=>{let e=M??x.inputRef.current?.value;e!==void 0&&y(e!==``)},[M,l,x.inputRef,y]),Pt(M,()=>{M!==void 0&&(S(D),_(M!==(v.initialValue??``)),x.change(M))});let P=Z.useRef(null),F=Vr(E,P),I=Ct();return oe(`input`,e,{ref:[t,P],state:O,props:[{id:A,disabled:E,name:D,ref:x.inputRef,"aria-labelledby":k,autoFocus:u,...j?{value:o}:{defaultValue:l},onChange(e){let t=e.currentTarget.value,n=W(Ce,e.nativeEvent);c?.(t,n),!j&&(_(t!==(v.initialValue??``)),y(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(S(D),x.change(t)))},onFocus(){F(!0)},onBlur(e){if(g(!0),F(!1),b===`onBlur`){let t=e.currentTarget.value;x.commit(t),j&&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=T.current;I.start(0,()=>{T.current===n&&x.commit(t.value)})}else x.commit(t)}}},f,e=>x.getValidationProps(E,e)],stateAttributesMapping:hr})}),Ei=Z.forwardRef(function(e,t){return(0,$.jsx)(Ti,{ref:t,...e})});function Di(e){let t=(0,Q.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=O(`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,$.jsx)(Ei,{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 Oi(e){let t=(0,Q.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=O(`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,$.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 ki=d(`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 Ai(e){let t=(0,Q.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=O(ki({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,$.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":a,className:o,onClick:ji,...r}),t[7]=a,t[8]=r,t[9]=o,t[10]=s):s=t[10],s}function ji(e){e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()}var Mi=d(`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 Ni(e){let t=(0,Q.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=O(Mi({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,$.jsx)(ue,{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 Pi(e){let t=(0,Q.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=O(`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,$.jsx)(Di,{"data-slot":`input-group-control`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Fi=Ir;function Ii(e){let t=(0,Q.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=O(`[&_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,$.jsx)(mn,{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,$.jsxs)(Qr,{"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 Li(e){let t=(0,Q.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,$.jsx)(Ni,{variant:`ghost`,size:`icon-xs`}),t[3]=i):i=t[3];let a;t[4]===n?a=t[5]:(a=O(n),t[4]=n,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,$.jsx)(wn,{className:`pointer-events-none`}),t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==a?(s=(0,$.jsx)(wi,{"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 Ri(e){let t=(0,Q.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=O(`w-auto`,r),t[7]=r,t[8]=d);let f;t[9]===c?f=t[10]:(f=(0,$.jsx)(Pi,{disabled:c}),t[9]=c,t[10]=f);let p;t[11]!==i||t[12]!==f?(p=(0,$.jsx)(Zr,{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,$.jsx)(Ni,{size:`icon-xs`,variant:`ghost`,render:(0,$.jsx)(Ii,{}),"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,$.jsx)(Li,{disabled:c}),t[17]=c,t[18]=u,t[19]=h):h=t[19];let g;t[20]!==m||t[21]!==h?(g=(0,$.jsxs)(Ai,{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,$.jsxs)(Oi,{className:d,children:[p,g,n]}),t[23]=n,t[24]=d,t[25]=p,t[26]=g,t[27]=_):_=t[27],_}function zi(e){let t=(0,Q.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=O(`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,$.jsx)(di,{"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,$.jsx)(ci,{children:(0,$.jsx)(li,{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 Bi(e){let t=(0,Q.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=O(`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,$.jsx)(ni,{"data-slot":`combobox-list`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Vi(e){let t=(0,Q.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=O(`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,$.jsx)(xi,{render:(0,$.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,$.jsx)(fn,{className:`pointer-events-none`})}),t[6]=o):o=t[6];let s;return t[7]!==n||t[8]!==i||t[9]!==a?(s=(0,$.jsxs)(yi,{"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 Hi(e){let t=(0,Q.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=O(`hidden w-full justify-center py-2 text-center text-xs/relaxed text-muted-foreground group-data-empty/combobox-content:flex`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(Si,{"data-slot":`combobox-empty`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ui(e){let t=(0,Q.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=O(`size-4 animate-spin`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(on,{"data-slot":`spinner`,role:`status`,"aria-label":`Loading`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Wi=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%20shape-rendering='crispEdges'%3e%3cpath%20fill='%230a0a0a'%20d='M28%208h2v1h-2zM26%209h2v1h-2zM30%209h2v1h-2zM25%2010h1v1h-1zM32%2010h2v1h-2zM34%2011h2v1h-2zM24%2011h1v2h-1zM36%2012h1v1h-1zM23%2013h1v1h-1zM37%2013h1v2h-1zM29%2015h1v1h-1zM38%2015h1v1h-1zM29%2016h3v1h-3zM32%2017h2v1h-2zM39%2016h1v4h-1zM29%2017h1v4h-1zM40%2020h1v1h-1zM22%2014h1v8h-1zM30%2021h2v1h-2zM34%2018h1v4h-1zM20%2022h2v1h-2zM32%2022h3v1h-3zM19%2023h1v1h-1zM34%2023h1v1h-1zM18%2024h1v2h-1zM17%2026h1v1h-1zM41%2021h1v6h-1zM42%2027h2v1h-2zM44%2028h1v1h-1zM45%2029h1v2h-1zM46%2031h1v1h-1zM16%2027h1v18h-1zM17%2045h1v1h-1zM18%2046h2v1h-2zM20%2047h2v1h-2zM22%2048h2v1h-2zM24%2049h2v1h-2zM47%2032h1v18h-1zM26%2050h2v1h-2zM46%2050h1v1h-1zM28%2051h2v1h-2zM44%2051h2v1h-2zM30%2052h2v1h-2zM42%2052h2v1h-2zM32%2053h2v1h-2zM40%2053h2v1h-2zM34%2054h2v1h-2zM38%2054h2v1h-2zM36%2055h2v1h-2z'/%3e%3cpath%20fill='%23da702c'%20d='M19%2024h1v3h-1zM17%2027h1v1h-1zM19%2027h3v1h-3zM17%2028h7v1h-7zM17%2029h9v1h-9zM17%2030h11v1h-11zM17%2031h13v1h-13zM17%2032h15v1h-15zM26%2033h8v1h-8zM28%2034h8v1h-8zM17%2033h8v10h-8zM17%2043h9v1h-9zM17%2044h11v1h-11zM29%2035h8v10h-8zM18%2045h19v1h-19zM20%2046h17v1h-17zM22%2047h15v1h-15zM24%2048h13v1h-13zM26%2049h11v1h-11zM28%2050h9v1h-9zM30%2051h7v1h-7zM32%2052h5v1h-5zM34%2053h3v1h-3zM36%2054h1v1h-1z'/%3e%3cpath%20fill='%23ec8b49'%20d='M29%2021h1v1h-1zM22%2022h1v1h-1zM29%2022h3v1h-3zM20%2023h3v1h-3zM29%2023h5v1h-5zM20%2024h4v1h-4zM29%2024h6v1h-6zM20%2025h6v1h-6zM28%2025h7v1h-7zM18%2026h1v1h-1zM21%2026h14v1h-14zM23%2027h12v1h-12zM41%2027h1v1h-1zM25%2028h10v1h-10zM27%2029h8v1h-8zM29%2030h7v1h-7zM41%2028h3v3h-3zM31%2031h7v1h-7zM40%2031h3v1h-3zM45%2031h1v1h-1zM33%2032h8v1h-8zM35%2033h4v1h-4z'/%3e%3cpath%20fill='%23b7b5ac'%20d='M27%2010h1v1h-1zM25%2011h1v1h-1zM27%2011h3v1h-3zM25%2012h7v1h-7zM25%2013h9v1h-9zM23%2014h1v1h-1zM25%2014h2v1h-2zM28%2014h7v1h-7zM30%2015h5v1h-5zM32%2016h4v1h-4zM34%2017h3v1h-3zM35%2018h2v3h-2zM35%2021h3v1h-3zM23%2015h4v9h-4zM24%2024h3v1h-3zM26%2025h1v1h-1zM35%2022h4v8h-4zM36%2030h3v1h-3zM38%2031h1v1h-1z'/%3e%3cpath%20fill='%23f3b489'%20d='M20%2026h1v1h-1zM18%2027h1v1h-1zM22%2027h1v1h-1zM24%2028h1v1h-1zM26%2029h1v1h-1zM28%2030h1v1h-1zM30%2031h1v1h-1zM43%2031h1v1h-1zM32%2032h1v1h-1zM41%2032h1v1h-1zM45%2032h1v1h-1zM34%2033h1v1h-1zM39%2033h1v1h-1zM36%2034h2v1h-2z'/%3e%3cpath%20fill='%23000000'%20fill-opacity='0.353'%20d='M18%2047h2v1h-2zM20%2048h2v1h-2zM22%2049h2v1h-2zM24%2050h2v1h-2zM26%2051h2v1h-2zM28%2052h2v1h-2zM44%2052h2v1h-2zM30%2053h2v1h-2zM42%2053h2v1h-2zM32%2054h2v1h-2zM40%2054h2v1h-2zM34%2055h2v1h-2zM38%2055h2v1h-2zM36%2056h2v1h-2z'/%3e%3cpath%20fill='%23878580'%20d='M36%2013h1v1h-1zM27%2014h1v1h-1zM35%2014h2v1h-2zM35%2015h1v1h-1zM38%2016h1v1h-1zM37%2017h2v3h-2zM37%2020h1v1h-1zM40%2021h1v1h-1zM27%2015h2v10h-2zM27%2025h1v1h-1zM39%2022h2v9h-2zM39%2031h1v1h-1z'/%3e%3cpath%20fill='%23bc5215'%20d='M44%2029h1v3h-1zM42%2032h3v1h-3zM46%2032h1v1h-1zM40%2033h7v1h-7zM38%2034h9v1h-9zM37%2035h10v15h-10zM37%2050h9v1h-9zM37%2051h7v1h-7zM37%2052h5v1h-5zM37%2053h3v1h-3zM37%2054h1v1h-1z'/%3e%3cpath%20fill='%23cecdc3'%20d='M28%209h2v1h-2zM26%2010h1v1h-1zM29%2010h3v1h-3zM31%2011h3v1h-3zM33%2012h3v1h-3zM24%2013h1v1h-1zM36%2015h2v1h-2zM38%2020h2v1h-2z'/%3e%3cpath%20fill='%23dfded8'%20d='M28%2010h1v1h-1zM26%2011h1v1h-1zM30%2011h1v1h-1zM32%2012h1v1h-1zM34%2013h2v1h-2zM24%2014h1v1h-1zM36%2016h2v1h-2zM38%2021h2v1h-2z'/%3e%3cpath%20fill='%23403e3c'%20d='M25%2033h1v1h-1zM25%2034h3v1h-3zM25%2035h4v8h-4zM26%2043h3v1h-3zM28%2044h1v1h-1z'/%3e%3c/svg%3e`,Gi=`/assets/icon-dark-D9-64csD.svg`,Ki=`/assets/icon-dark-B6bEETJE.svg`,qi=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20shape-rendering='crispEdges'%3e%3cpath%20fill='%23da702c'%20d='M15%203h1v1h-1zM14%204h1v1h-1zM13%205h2v1h-2zM12%206h2v1h-2zM11%207h3v1h-3zM10%208h3v1h-3zM9%209h4v1h-4zM8%2010h4v1h-4zM7%2011h5v1h-5zM6%2012h10v1h-10zM11%2013h4v1h-4zM10%2014h4v1h-4zM10%2015h3v1h-3zM9%2016h3v1h-3zM9%2017h2v1h-2zM8%2018h2v1h-2zM8%2019h1v1h-1zM7%2020h1v1h-1z'/%3e%3cpath%20fill='%23575653'%20d='M16%203h1v1h-1zM15%204h1v2h-1zM14%206h1v2h-1zM13%208h1v2h-1zM12%2010h1v2h-1zM16%2012h1v1h-1zM15%2013h1v1h-1zM14%2014h1v1h-1zM13%2015h1v1h-1zM12%2016h1v1h-1zM11%2017h1v1h-1zM10%2018h1v1h-1zM9%2019h1v1h-1zM8%2020h1v1h-1z'/%3e%3cpath%20fill='%23d0a215'%20d='M6%204h1v1h-1zM14%2018h1v1h-1zM13%2019h1v1h-1z'/%3e%3cpath%20fill='%234385be'%20d='M10%204h1v1h-1zM8%206h1v1h-1zM16%2020h1v1h-1z'/%3e%3cpath%20fill='%233aa99f'%20d='M9%205h1v1h-1z'/%3e%3cpath%20fill='%238b7ec8'%20d='M7%207h1v1h-1z'/%3e%3cpath%20fill='%23ce5d97'%20d='M15%2017h1v1h-1z'/%3e%3c/svg%3e`,Ji=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%20shape-rendering='crispEdges'%3e%3cpath%20fill='%230a0a0a'%20d='M19%2012h2v1h-2zM17%2013h2v1h-2zM21%2013h2v1h-2zM33%2013h2v1h-2zM15%2014h2v1h-2zM23%2014h2v1h-2zM31%2014h2v1h-2zM35%2014h2v1h-2zM14%2015h1v1h-1zM25%2015h2v1h-2zM29%2015h2v1h-2zM37%2015h2v1h-2zM27%2016h2v1h-2zM39%2016h2v1h-2zM41%2017h2v1h-2zM43%2018h2v1h-2zM45%2019h2v1h-2zM47%2020h2v1h-2zM49%2021h1v1h-1zM50%2022h1v12h-1zM49%2034h1v1h-1zM13%2016h1v20h-1zM47%2035h2v1h-2zM14%2036h1v1h-1zM45%2036h2v1h-2zM15%2037h2v1h-2zM17%2038h2v1h-2zM19%2039h2v1h-2zM20%2040h1v1h-1zM44%2037h1v4h-1zM45%2041h2v1h-2zM19%2041h1v2h-1zM47%2042h1v1h-1zM20%2043h1v1h-1zM21%2044h2v1h-2zM48%2043h1v2h-1zM23%2045h2v1h-2zM47%2045h1v1h-1zM25%2046h2v1h-2zM45%2046h2v1h-2zM27%2047h2v1h-2zM43%2047h2v1h-2zM29%2048h2v1h-2zM41%2048h2v1h-2zM31%2049h2v1h-2zM39%2049h2v1h-2zM33%2050h2v1h-2zM37%2050h2v1h-2zM35%2051h2v1h-2z'/%3e%3cpath%20fill='%235abdac'%20d='M19%2013h2v1h-2zM17%2014h6v1h-6zM33%2014h2v1h-2zM15%2015h10v1h-10zM31%2015h6v1h-6zM16%2016h11v1h-11zM29%2016h10v1h-10zM18%2017h23v1h-23zM20%2018h23v1h-23zM22%2019h23v1h-23zM24%2020h23v1h-23zM26%2021h23v1h-23zM18%2022h1v1h-1zM28%2022h20v1h-20zM18%2023h3v1h-3zM30%2023h16v1h-16zM19%2024h4v1h-4zM32%2024h12v1h-12zM21%2025h4v1h-4zM34%2025h8v1h-8zM36%2026h4v1h-4zM22%2026h4v2h-4zM23%2028h4v1h-4zM25%2029h4v1h-4zM27%2030h3v1h-3zM24%2031h1v1h-1zM29%2031h1v1h-1zM24%2032h3v1h-3zM20%2033h1v1h-1zM25%2033h3v1h-3zM20%2034h3v1h-3zM26%2034h2v1h-2zM21%2035h3v1h-3zM26%2035h3v1h-3zM23%2036h1v1h-1zM27%2036h4v1h-4zM29%2037h4v1h-4zM31%2038h3v1h-3zM33%2039h1v1h-1zM34%2044h1v1h-1zM34%2045h2v1h-2zM35%2046h1v1h-1z'/%3e%3cpath%20fill='%23403e3c'%20d='M16%2019h1v1h-1zM16%2020h3v1h-3zM16%2021h5v1h-5zM19%2022h4v1h-4zM16%2022h2v2h-2zM21%2023h4v1h-4zM16%2024h3v1h-3zM23%2024h4v1h-4zM16%2025h5v1h-5zM25%2025h4v1h-4zM26%2026h5v1h-5zM16%2026h6v2h-6zM26%2027h7v1h-7zM16%2028h7v1h-7zM27%2028h8v1h-8zM16%2029h9v1h-9zM29%2029h7v1h-7zM16%2030h11v1h-11zM25%2031h4v1h-4zM30%2030h6v2h-6zM16%2031h8v2h-8zM27%2032h9v1h-9zM21%2033h4v1h-4zM16%2033h4v2h-4zM23%2034h3v1h-3zM28%2033h8v2h-8zM17%2035h4v1h-4zM24%2035h2v1h-2zM29%2035h7v1h-7zM19%2036h4v1h-4zM24%2036h3v1h-3zM31%2036h5v1h-5zM21%2037h8v1h-8zM33%2037h3v1h-3zM23%2038h8v1h-8zM25%2039h8v1h-8zM34%2038h2v2h-2zM27%2040h9v1h-9zM29%2041h7v1h-7zM31%2042h5v1h-5zM33%2043h3v1h-3zM35%2044h1v1h-1z'/%3e%3cpath%20fill='%233aa99f'%20d='M14%2016h1v1h-1zM14%2017h3v1h-3zM14%2018h5v1h-5zM17%2019h4v1h-4zM19%2020h4v1h-4zM21%2021h4v1h-4zM23%2022h4v1h-4zM25%2023h4v1h-4zM27%2024h4v1h-4zM29%2025h4v1h-4zM31%2026h4v1h-4zM33%2027h4v1h-4zM35%2028h3v1h-3zM14%2019h2v16h-2zM14%2035h3v1h-3zM15%2036h4v1h-4zM17%2037h4v1h-4zM19%2038h4v1h-4zM21%2039h4v1h-4zM23%2040h4v1h-4zM25%2041h4v1h-4zM27%2042h4v1h-4zM29%2043h4v1h-4zM31%2044h3v1h-3zM33%2045h1v1h-1zM36%2029h2v18h-2zM37%2047h1v1h-1z'/%3e%3cpath%20fill='%2394d4c9'%20d='M15%2016h1v1h-1zM17%2017h1v1h-1zM19%2018h1v1h-1zM21%2019h1v1h-1zM23%2020h1v1h-1zM25%2021h1v1h-1zM27%2022h1v1h-1zM48%2022h1v1h-1zM29%2023h1v1h-1zM46%2023h1v1h-1zM31%2024h1v1h-1zM44%2024h1v1h-1zM33%2025h1v1h-1zM42%2025h1v1h-1zM35%2026h1v1h-1zM40%2026h1v1h-1zM37%2027h2v1h-2z'/%3e%3cpath%20fill='%2324837b'%20d='M49%2022h1v1h-1zM47%2023h3v1h-3zM45%2024h5v1h-5zM43%2025h7v1h-7zM41%2026h9v1h-9zM39%2027h11v1h-11zM38%2028h12v6h-12zM38%2034h11v1h-11zM38%2035h9v1h-9zM38%2036h7v1h-7zM38%2037h6v8h-6zM38%2045h5v1h-5zM38%2046h3v1h-3zM38%2047h1v1h-1z'/%3e%3cpath%20fill='%23000000'%20fill-opacity='0.353'%20d='M21%2045h2v1h-2zM23%2046h2v1h-2zM25%2047h2v1h-2zM45%2047h2v1h-2zM27%2048h2v1h-2zM43%2048h2v1h-2zM29%2049h2v1h-2zM41%2049h2v1h-2zM31%2050h2v1h-2zM39%2050h2v1h-2zM33%2051h2v1h-2zM37%2051h2v1h-2zM35%2052h2v1h-2z'/%3e%3cpath%20fill='%23cecdc3'%20d='M21%2040h2v1h-2zM22%2041h3v1h-3zM44%2041h1v1h-1zM24%2042h3v1h-3zM44%2042h3v1h-3zM26%2043h3v1h-3zM44%2043h2v1h-2zM28%2044h3v1h-3zM30%2045h3v1h-3zM32%2046h3v1h-3zM34%2047h3v1h-3z'/%3e%3cpath%20fill='%23b7b5ac'%20d='M20%2041h1v1h-1zM20%2042h3v1h-3zM21%2043h4v1h-4zM23%2044h4v1h-4zM25%2045h4v1h-4zM27%2046h4v1h-4zM29%2047h4v1h-4zM31%2048h4v1h-4zM33%2049h3v1h-3zM35%2050h1v1h-1z'/%3e%3cpath%20fill='%23dfded8'%20d='M21%2041h1v1h-1zM23%2042h1v1h-1zM25%2043h1v1h-1zM46%2043h1v1h-1zM27%2044h1v1h-1zM44%2044h1v1h-1zM29%2045h1v1h-1zM31%2046h1v1h-1zM33%2047h1v1h-1zM35%2048h2v1h-2z'/%3e%3cpath%20fill='%23878580'%20d='M47%2043h1v1h-1zM45%2044h3v1h-3zM43%2045h4v1h-4zM41%2046h4v1h-4zM39%2047h4v1h-4zM37%2048h4v1h-4zM36%2049h3v1h-3zM36%2050h1v1h-1z'/%3e%3c/svg%3e`,Yi=`/assets/icon-dark-D13czbqT.svg`;function Xi(e){let t=(0,Q.c)(14),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.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,$.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,$.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,$.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,$.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,$.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,$.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,$.jsxs)(`g`,{children:[c,(0,$.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,$.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,$.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,$.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,$.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,$.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,$.jsxs)(`g`,{children:[u,d,f,(0,$.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,$.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 Zi(e){let t=(0,Q.c)(5),n,r,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.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,$.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,$.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,$.jsxs)(`svg`,{...e,viewBox:`0 0 256 116`,preserveAspectRatio:`xMidYMid`,children:[n,r,i]}),t[3]=e,t[4]=a),a}function Qi(e){let t=(0,Q.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.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,$.jsx)(`svg`,{...e,viewBox:`0 0 24 24`,fill:`#008fe2`,children:n}),t[1]=e,t[2]=r),r}function $i(e){let t=(0,Q.c)(4),n,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(`circle`,{fill:`#FFCF00`,cx:`128`,cy:`128`,r:`128`}),r=(0,$.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,$.jsxs)(`svg`,{...e,viewBox:`0 0 256 256`,preserveAspectRatio:`xMidYMid`,children:[n,r]}),t[2]=e,t[3]=i),i}function ea(e){let t=(0,Q.c)(55),n=(0,Z.useId)(),r=`${n}-a`,i,a,o,s,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(`stop`,{offset:`0%`,stopColor:`#41873F`}),a=(0,$.jsx)(`stop`,{offset:`32.88%`,stopColor:`#418B3D`}),o=(0,$.jsx)(`stop`,{offset:`63.52%`,stopColor:`#419637`}),s=(0,$.jsx)(`stop`,{offset:`93.19%`,stopColor:`#3FA92D`}),c=(0,$.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,$.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,$.jsx)(`stop`,{offset:`13.76%`,stopColor:`#41873F`}),m=(0,$.jsx)(`stop`,{offset:`40.32%`,stopColor:`#54A044`}),d=(0,$.jsx)(`stop`,{offset:`71.36%`,stopColor:`#66B848`}),f=(0,$.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,$.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,$.jsx)(`stop`,{offset:`9.192%`,stopColor:`#6CC04A`}),v=(0,$.jsx)(`stop`,{offset:`28.64%`,stopColor:`#66B848`}),y=(0,$.jsx)(`stop`,{offset:`59.68%`,stopColor:`#54A044`}),b=(0,$.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,$.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,$.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,$.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,$.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,$.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,$.jsx)(`use`,{xlinkHref:A}),t[31]=A,t[32]=j);let M;t[33]!==k||t[34]!==j?(M=(0,$.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,$.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,$.jsx)(`use`,{xlinkHref:L}),t[39]=L,t[40]=R);let z;t[41]!==I||t[42]!==R?(z=(0,$.jsx)(`mask`,{id:I,fill:`#fff`,children:R}),t[41]=I,t[42]=R,t[43]=z):z=t[43];let ee=`url(#${n}-f)`,B=`url(#${n}-g)`,V;t[44]!==ee||t[45]!==B?(V=(0,$.jsx)(`path`,{fill:ee,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:B}),t[44]=ee,t[45]=B,t[46]=V):V=t[46];let te;return t[47]!==e||t[48]!==E||t[49]!==O||t[50]!==M||t[51]!==F||t[52]!==z||t[53]!==V?(te=(0,$.jsxs)(`svg`,{...e,viewBox:`0 0 256 292`,xmlnsXlink:`http://www.w3.org/1999/xlink`,children:[E,O,M,F,z,V]}),t[47]=e,t[48]=E,t[49]=O,t[50]=M,t[51]=F,t[52]=z,t[53]=V,t[54]=te):te=t[54],te}function ta(e){let t=(0,Q.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,$.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,$.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,$.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,$.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,$.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,$.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,$.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,$.jsxs)(`g`,{style:n,children:[r,i,a,o,s,c,l,(0,$.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,$.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,$.jsx)(`svg`,{...e,xmlSpace:`preserve`,viewBox:`0 0 432.071 445.383`,children:u}),t[9]=e,t[10]=d),d}function na(e){let t=(0,Q.c)(11),n,r,i,a,o,s,c,l,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.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,$.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,$.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,$.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,$.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,$.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,$.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,$.jsx)(`path`,{d:`M185.3 36 220 49.8l-34.8 13.7V36`,fill:`#621B1C`}),u=(0,$.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,$.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 ra(e){let t=(0,Q.c)(6),n,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M165.735 25.0701L188.947 0.972412H0.465994V25.0701H165.735Z`,fill:`black`}),r=(0,$.jsx)(`path`,{d:`M163.981 96.3239L254.022 3.68314L221.206 3.68295L145.617 80.7609L163.981 96.3239Z`,fill:`black`}),i=(0,$.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,$.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,$.jsxs)(`svg`,{...e,viewBox:`0 0 258 199`,fill:`none`,children:[n,r,i,a]}),t[4]=e,t[5]=o),o}function ia(e){let t=(0,Q.c)(6),n,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M165.735 25.0701L188.947 0.972412H0.465994V25.0701H165.735Z`,fill:`#e2e8f0`}),r=(0,$.jsx)(`path`,{d:`M163.981 96.3239L254.022 3.68314L221.206 3.68295L145.617 80.7609L163.981 96.3239Z`,fill:`#e2e8f0`}),i=(0,$.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,$.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,$.jsxs)(`svg`,{...e,viewBox:`0 0 258 199`,fill:`none`,children:[n,r,i,a]}),t[4]=e,t[5]=o),o}function aa(e){let t=(0,Q.c)(11),n=(0,Z.useId)(),r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.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,$.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,$.jsx)(`stop`,{stopColor:`#0096FF`}),s=(0,$.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,$.jsx)(`defs`,{children:(0,$.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,$.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 oa(e){let t=(0,Q.c)(11),n=(0,Z.useId)(),r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.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,$.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,$.jsx)(`stop`,{stopColor:`#0096FF`}),s=(0,$.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,$.jsx)(`defs`,{children:(0,$.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,$.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 sa(e){let t=(0,Q.c)(35),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.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,$.jsx)(`mask`,{id:`mask0_2002_17158`,width:`48`,height:`46`,x:`0`,y:`0`,maskUnits:`userSpaceOnUse`,style:r,children:(0,$.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,$.jsx)(`g`,{filter:`url(#filter0_f_2002_17158)`,children:(0,$.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,$.jsx)(`g`,{filter:`url(#filter1_f_2002_17158)`,children:(0,$.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,$.jsx)(`g`,{filter:`url(#filter2_f_2002_17158)`,children:(0,$.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,$.jsx)(`g`,{filter:`url(#filter3_f_2002_17158)`,children:(0,$.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,$.jsx)(`g`,{filter:`url(#filter4_f_2002_17158)`,children:(0,$.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,$.jsx)(`g`,{filter:`url(#filter5_f_2002_17158)`,children:(0,$.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,$.jsx)(`g`,{filter:`url(#filter6_f_2002_17158)`,children:(0,$.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,$.jsx)(`g`,{filter:`url(#filter7_f_2002_17158)`,children:(0,$.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,$.jsx)(`g`,{filter:`url(#filter8_f_2002_17158)`,children:(0,$.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,$.jsx)(`g`,{filter:`url(#filter9_f_2002_17158)`,children:(0,$.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,$.jsx)(`g`,{filter:`url(#filter10_f_2002_17158)`,children:(0,$.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,$.jsx)(`g`,{filter:`url(#filter11_f_2002_17158)`,children:(0,$.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,$.jsx)(`g`,{filter:`url(#filter12_f_2002_17158)`,children:(0,$.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,$.jsx)(`g`,{filter:`url(#filter13_f_2002_17158)`,children:(0,$.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,$.jsxs)(`g`,{mask:`url(#mask0_2002_17158)`,children:[a,o,s,c,l,u,d,f,p,m,h,g,_,v,(0,$.jsx)(`g`,{filter:`url(#filter14_f_2002_17158)`,children:(0,$.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,$.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,$.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,$.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,$.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,$.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,$.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,$.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,$.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,$.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,$.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,$.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,$.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,$.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,$.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,$.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,$.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,$.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,$.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,$.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,$.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,$.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,$.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,$.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,$.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,$.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,$.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,$.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,$.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,$.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,$.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,$.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,$.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,$.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,$.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,$.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,$.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,$.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,$.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,$.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,$.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,$.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,$.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,$.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,$.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,$.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,$.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,$.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,$.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,$.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,$.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,$.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,$.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,$.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,$.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,$.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,$.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,$.jsxs)(`defs`,{children:[b,x,S,C,w,T,E,D,O,k,A,j,M,N,(0,$.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,$.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,$.jsx)(`feBlend`,{in:`SourceGraphic`,in2:`BackgroundImageFix`,result:`shape`}),(0,$.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,$.jsxs)(`svg`,{...e,fill:`none`,viewBox:`0 0 48 46`,children:[n,i,y,P]}),t[33]=e,t[34]=F),F}var ca={...ge(h(le(Object.assign({"../../../../auth/src/routes/icon-dark.svg":Wi,"../icon-dark.svg":Gi,"../../../../gateway/src/routes/icon-dark.svg":Ki,"../../../../portfolio/src/routes/icon-dark.svg":qi,"../../../../scope/src/routes/icon-dark.svg":Ji,"../../../../signal/src/routes/icon-dark.svg":Yi})),e=>[L(e[0],`/`)[4]??``,e[1]])),deploy:Nt},la=[{dark:ia,light:ra,pattern:/\bt3code\b/u},{dark:ea,light:ea,pattern:/\b(?:node|nodejs)(?:-MainThread)?\b/iu},{dark:Xi,light:Xi,pattern:/\bbun(?:\.native)?\b/u},{dark:ta,light:ta,pattern:/\b(?:postgres|postgresql|postmaster)\b/u},{dark:na,light:na,pattern:/\bredis(?:-server)?\b/u},{dark:Qi,light:Qi,pattern:/\b(?:docker|dockerd|containerd)\b/u},{dark:sa,light:sa,pattern:/\b(?:vp|vite)\b/u},{dark:aa,light:oa,pattern:/\bturbo\b/u},{dark:$i,light:$i,pattern:/\besbuild\b/u},{dark:Zi,light:Zi,pattern:/\bcloudflared\b/u}];function ua(e){let t=(0,Q.c)(14),n=ca[L(e.name,/[ -]/u)[0]??``],r;t[0]!==e.name||t[1]!==e.process?(r=U(m(la,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,$.jsx)(un,{className:`size-full`}):(0,$.jsx)(cn,{className:`size-full`}):i.light===i.dark?(0,$.jsx)(i.light,{className:`size-full`}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(i.light,{className:`size-full dark:hidden`}),(0,$.jsx)(i.dark,{className:`hidden size-full dark:block`})]}):(0,$.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=x(e.small===!0,{onFalse:fa,onTrue:da}),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,$.jsx)(`span`,{className:c,"aria-hidden":`true`,children:l}),t[11]=c,t[12]=l,t[13]=u):u=t[13],u}function da(){return`size-4`}function fa(){return`size-5`}var pa=P(/-MainThread$|\.native$/u,``);function ma(e){return{cpu:x(N(e,e=>e.cpu!==void 0),{onFalse:()=>void 0,onTrue:()=>j(e,0,(e,t)=>e+(t.cpu??0))}),memory:x(D(e),{onFalse:()=>void 0,onTrue:()=>j(e,0,(e,t)=>e+t.memory)}),partial:N(e,e=>e.cpu!==void 0)&&N(e,e=>e.cpu===void 0)}}function ha(e){let r=zt(h(e,e=>e.pid)),i=Se(e,e=>`${e.parent}`),a=tn(),o=Gt();function s(e,t){nn(a,e.pid),Wt(t,e);let n=i[`${e.pid}`]??[];return n.length===1&&n[0]!==void 0&&!rn(a,n[0].pid)?s(n[0],t):e}function l(e,r,d){if(rn(a,e.pid))return;let p=Gt(),m=s(e,p),g=qt(p),_=t(g,e=>e.memory,n(c))[0]??e;Wt(o,{depth:Rt(r,2),main:d,members:g,name:pa(_.name),path:k(h(g,e=>pa(e.name)),` › `)});let v=u(i[`${m.pid}`]??[],e=>!rn(a,e.pid)),y=Se(u(v,e=>f(i[`${e.pid}`]??[])),e=>pa(e.name));for(let e of me(y)){let t=e[0];if(t!==void 0){for(let t of e)nn(a,t.pid);Wt(o,{depth:Rt(r+1,2),main:!1,members:e,name:`${pa(t.name)}${x(e.length>1,{onFalse:()=>``,onTrue:()=>` ×${e.length}`})}`,path:pa(t.name)})}}for(let e of v)l(e,r+1,!1)}let d=t(u(e,e=>!Kt(r,e.parent)),e=>e.memory,n(c));for(let e of d)l(e,1,d.length===1);for(let t of e)l(t,1,!1);return qt(o)}function ga(e){let t=(0,Q.c)(18),n=(e.memory??0)/1048576,r;t[0]===e.partial?r=t[1]:(r=x(e.partial===!0,{onFalse:Oa,onTrue:Da}),t[0]=e.partial,t[1]=r);let i;t[2]!==e.cpu||t[3]!==e.partial?(i=x(e.cpu===void 0,{onFalse:()=>`${x(e.partial===!0,{onFalse:Ea,onTrue:Ta})}${new Intl.NumberFormat(void 0,{maximumFractionDigits:x((e.cpu??0)<10,{onFalse:wa,onTrue:Ca})}).format(e.cpu??0)}%`,onTrue:Sa}),t[2]=e.cpu,t[3]=e.partial,t[4]=i):i=t[4];let a;t[5]!==r||t[6]!==i?(a=(0,$.jsx)(`span`,{className:`text-muted-foreground text-right font-mono text-xs whitespace-nowrap tabular-nums`,title:r,children:i}),t[5]=r,t[6]=i,t[7]=a):a=t[7];let o;if(t[8]!==n||t[9]!==e.memory){let r;t[11]===n?r=t[12]:(r=()=>`${new Intl.NumberFormat(void 0,{maximumFractionDigits:x(n>=1e3||n<10,{onFalse:xa,onTrue:ba})}).format(x(n>=1e3,{onFalse:()=>n,onTrue:()=>n/1024}))} ${x(n>=1e3,{onFalse:ya,onTrue:va})}`,t[11]=n,t[12]=r),o=x(e.memory===void 0,{onFalse:r,onTrue:_a}),t[8]=n,t[9]=e.memory,t[10]=o}else o=t[10];let s;t[13]===o?s=t[14]:(s=(0,$.jsx)(`span`,{className:`text-muted-foreground text-right font-mono text-xs whitespace-nowrap tabular-nums`,title:`Resident memory`,children:o}),t[13]=o,t[14]=s);let c;return t[15]!==a||t[16]!==s?(c=(0,$.jsxs)($.Fragment,{children:[a,s]}),t[15]=a,t[16]=s,t[17]=c):c=t[17],c}function _a(){return``}function va(){return`GiB`}function ya(){return`MiB`}function ba(){return 1}function xa(){return 0}function Sa(){return``}function Ca(){return 1}function wa(){return 0}function Ta(){return`≥`}function Ea(){return``}function Da(){return`CPU · lower bound; some processes have no baseline`}function Oa(){return`CPU · share of machine capacity`}function ka(e){let t=(0,Q.c)(7),n;if(t[0]!==e.rows||t[1]!==e.showMachine){let r;t[3]===e.showMachine?r=t[4]:(r=(t,n)=>(0,$.jsxs)(`div`,{className:`deploy-process-grid h-7`,"data-show-machine":e.showMachine,children:[(0,$.jsx)(`span`,{className:`bg-border w-px self-stretch justify-self-center`}),(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2 ${x(t.depth===2,{onFalse:ja,onTrue:Aa})}`,title:t.path,children:[(0,$.jsx)(ua,{name:t.name,small:!0}),(0,$.jsxs)(`span`,{className:`truncate text-xs`,children:[t.name,t.main&&(0,$.jsx)(`span`,{className:`text-muted-foreground ml-1`,children:`main`})]})]}),(0,$.jsx)(ga,{...ma(t.members)})]},t.members[0]?.pid??n),t[3]=e.showMachine,t[4]=r),n=h(e.rows,r),t[0]=e.rows,t[1]=e.showMachine,t[2]=n}else n=t[2];let r;return t[5]===n?r=t[6]:(r=(0,$.jsx)(`div`,{className:`pb-2`,children:n}),t[5]=n,t[6]=r),r}function Aa(){return`pl-4`}function ja(){return``}function Ma(e){return e.kind===`port`&&e.protocol===`tcp`&&e.port!==void 0&&e.port>=1024&&T(V(/^(?:127\.0\.0\.1|0\.0\.0\.0):/u)(e.address??``))}function Na(e){return Ma(e)&&e.process!==void 0&&e.process!==``&&!i([5353,5355],e.port??0)&&I(V(/^(?:ssh|cloudflared|tailscaled|caddy)$/u)(e.process??``))}function Pa(e){return pe(`failed`)(e.state)||pe(`unhealthy`)(e.detail)?!0:e.kind===`exposure`?e.owned===!0||e.publicAccess===!0:e.kind===`container`?T(V(/^(?:stale · )?(?:running|restarting|paused)$/u)(e.state))||T(V(/Exited \([1-9]/u)(e.detail)):e.kind===`port`?Na(e):e.kind===`service`?T(V(/^(?:deslop-|preview-|t3code)/u)(e.name))?!0:e.scope===`user`&&T(V(/(?:^| · )active · /u)(e.state))&&I(V(/^(?:dbus|dirmngr|gpg-|keyboxd|gcr-|gnome-|secret-service|ssh-agent|openvpn3-)/u)(e.name)):!1}function Fa(e){return b(e,u(e=>Na(e)&&e.http===!0&&!se(`stale`)(e.state)),C(ne(y,e=>`${x(Na(e),{onFalse:()=>`1`,onTrue:()=>`0`})}:${e.worker}:${e.port}:${e.address}`)),v((e,t)=>e.worker===t.worker&&e.port===t.port))}function Ia(e){return`${e.process??e.name} · :${e.port}`}function La(e){return e.kind===`port`?e.process||e.name:e.kind===`container`&&se(`deslop-`)(e.name)?P(/-[0-9]+$/u,``)(he(7)(e.name)):se(`preview-`)(e.name)?ye(V(/@deslop\/([a-z0-9-]+)/u)(e.detail),{onNone:()=>`Preview ${P(/\.service$/u,``)(he(8)(e.name))}`,onSome:e=>`${e[1]} preview`}):de(/^deslop-|\.service$/gu,``)(e.name)}function Ra(e){return b(La(e),de(/\b([a-f0-9]{7})[a-f0-9]+\b/giu,`$1`),de(/\b(?=[a-z0-9]{10,}\b)(?=[a-z0-9]*[0-9])([a-z0-9]{7})[a-z0-9]+\b/giu,`$1`))}function za(e,t){return e.address===`container`||t.address===`container`||e.port!==t.port||e.protocol!==t.protocol?!1:e.address===t.address||T(V(/^(?:127\.0\.0\.1|0\.0\.0\.0):/u)(e.address??``))&&T(V(/^(?:127\.0\.0\.1|0\.0\.0\.0):/u)(t.address))}function Ba(e){let t=u(e,e=>e.kind===`port`),n=h(u(e,e=>e.kind===`service`||e.kind===`container`),e=>{let n=u(t,t=>t.worker===e.worker&&t.unit===e.name),r=h(e.bindings??[],n=>({...e,...ee(m(t,t=>t.worker===e.worker&&za(t,n)),()=>({})),...n,bindings:[],id:`${e.id}:port:${n.address}`,kind:`port`,process:e.name,unit:e.name,url:``}));return{item:e,listeners:[...n,...r]}}),r=u(t,e=>!N(n,t=>t.item.worker===e.worker&&(t.item.kind===`service`&&t.item.name===e.unit||N(t.listeners,t=>za(e,{address:t.address??``,port:t.port??0,protocol:t.protocol??`tcp`}))))),i=[...n,...h(r,e=>({item:e,listeners:[e]}))],a=[...u(e,e=>e.kind===`exposure`&&e.owned===!0),...u(e,e=>e.kind===`exposure`&&e.owned!==!0)],o=h(i,e=>({...e,exposures:v([...h(e.item.links??[],t=>({...e.item,id:`${e.item.id}:url:${t}`,kind:`exposure`,owned:!1,publicAccess:!0,url:t})),...u(a,t=>t.worker===e.item.worker&&N(e.listeners,e=>za(e,{address:`127.0.0.1:${t.port}`,port:t.port??0,protocol:`tcp`})))],(e,t)=>e.url===t.url)})),s=h(u(a,e=>!N(o,t=>N(t.exposures,t=>t.id===e.id||t.url===e.url&&t.worker===e.worker))),e=>({exposures:[e],item:e,listeners:[]}));return h(u([...o,...s],e=>Pa(e.item)&&(e.item.kind!==`port`||e.item.http===!0&&e.item.process!==``&&e.item.process!==`node`)),e=>{if(e.item.kind===`container`)return e;let t=Fa(e.listeners);return{...e,listeners:u(t,n=>!N(t,e=>e.ui===!0)||n.ui===!0||N(e.exposures,e=>e.port===n.port))}})}function Va(e){return Fa(_(Ba(e),e=>h(u(e.listeners,t=>(!N(e.listeners,e=>e.ui===!0)||t.ui===!0)&&f(e.item.links??[])&&!N(e.exposures,e=>e.port===t.port)),t=>({...t,process:Ra(e.item)}))))}function Ha(e){let t=(0,Q.c)(62),[n,r]=Ne(Ze),[i,a]=(0,Z.useState)(`tailnet`),[o,c]=(0,Z.useState)(``),[l,u]=(0,Z.useState)(``),d;if(t[0]!==e.choices||t[1]!==o){let n;t[3]===o?n=t[4]:(n=e=>e.id===o,t[3]=o,t[4]=n),d=U(m(e.choices,n)),t[0]=e.choices,t[1]=o,t[2]=d}else d=t[2];let f=d,p;if(t[5]!==e.items||t[6]!==f?.worker){let n;t[8]===f?.worker?n=t[9]:(n=e=>e.self===!0&&e.worker===f?.worker,t[8]=f?.worker,t[9]=n),p=ee(s(m(e.items,n),Ya),Ja),t[5]=e.items,t[6]=f?.worker,t[7]=p}else p=t[7];let h=p,g;t[10]===n?g=t[11]:(g=Zt(n),t[10]=n,t[11]=g);let _=g,v;t[12]!==r||t[13]!==l||t[14]!==i||t[15]!==f||t[16]!==h?(v=e=>{e.preventDefault(),f?.port!==void 0&&r({hostname:x(i===`public`,{onFalse:()=>h,onTrue:()=>l}),kind:i,name:x(i===`public`,{onFalse:()=>`tailnet:${f.port}`,onTrue:()=>`public:${l}`}),port:f.port,publicAccess:i===`public`,target:x(se(`remote:`)(f.id),{onFalse:qa,onTrue:()=>f.worker})})},t[12]=r,t[13]=l,t[14]=i,t[15]=f,t[16]=h,t[17]=v):v=t[17];let y;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsx)(`h1`,{className:`text-sm font-semibold`,children:`Expose a port`}),t[18]=y):y=t[18];let b;t[19]===i?b=t[20]:(b=[i],t[19]=i,t[20]=b);let S,C,w;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>{(e[0]===`public`||e[0]===`tailnet`)&&a(e[0])},C=(0,$.jsx)(Be,{value:`tailnet`,children:`Tailnet`}),w=(0,$.jsx)(Be,{value:`public`,children:`Public`}),t[21]=S,t[22]=C,t[23]=w):(S=t[21],C=t[22],w=t[23]);let T;t[24]!==_||t[25]!==b?(T=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[y,(0,$.jsxs)(Xe,{"aria-label":`Exposure visibility`,value:b,disabled:_,onValueChange:S,children:[C,w]})]}),t[24]=_,t[25]=b,t[26]=T):T=t[26];let E=f??null,D;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>c(e?.id??``),t[27]=D):D=t[27];let O;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(Ri,{id:`expose-port`,"aria-label":`Listening port`,placeholder:`Choose an app…`,className:`w-full`,showClear:!0}),t[28]=O):O=t[28];let k;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,$.jsxs)(zi,{className:`w-(--available-width) max-w-sm sm:w-(--anchor-width)`,children:[(0,$.jsx)(Hi,{children:`No matching app listeners.`}),(0,$.jsx)(Bi,{children:Ga})]}),t[29]=k):k=t[29];let A;t[30]!==_||t[31]!==e.choices||t[32]!==E?(A=(0,$.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,$.jsxs)(Fi,{items:e.choices,value:E,itemToStringLabel:Ia,isItemEqualToValue:Ka,onValueChange:D,disabled:_,children:[O,k]})}),t[30]=_,t[31]=e.choices,t[32]=E,t[33]=A):A=t[33];let j;t[34]!==l||t[35]!==i||t[36]!==_?(j=i===`public`&&(0,$.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,$.jsx)(Di,{id:`expose-hostname`,"aria-label":`Public hostname`,required:!0,placeholder:`app.example.com`,autoCapitalize:`none`,spellCheck:!1,value:l,disabled:_,onChange:e=>u(ve(e.target.value))})}),t[34]=l,t[35]=i,t[36]=_,t[37]=j):j=t[37];let M=_||f===void 0||i===`tailnet`&&h===``||i===`public`&&l===``,N;t[38]===_?N=t[39]:(N=x(_,{onFalse:Wa,onTrue:Ua}),t[38]=_,t[39]=N);let P;t[40]!==M||t[41]!==N?(P=(0,$.jsx)(ue,{type:`submit`,size:`icon`,"aria-label":`Expose port`,disabled:M,children:N}),t[40]=M,t[41]=N,t[42]=P):P=t[42];let F;t[43]!==A||t[44]!==j||t[45]!==P?(F=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[A,j,P]}),t[43]=A,t[44]=j,t[45]=P,t[46]=F):F=t[46];let I;t[47]!==n||t[48]!==o||t[49]!==f?(I=o!==``&&f===void 0&&!Yt(n)&&(0,$.jsx)(`p`,{className:`text-warning text-xs`,role:`status`,children:`The selected listener is no longer available. Pick another port.`}),t[47]=n,t[48]=o,t[49]=f,t[50]=I):I=t[50];let L;t[51]===n?L=t[52]:(L=Yt(n)&&(0,$.jsx)(`a`,{className:`text-primary text-xs wrap-anywhere`,href:n.value,target:`_blank`,rel:`noreferrer`,children:n.value}),t[51]=n,t[52]=L);let R;t[53]===n?R=t[54]:(R=(0,$.jsx)(On,{result:n}),t[53]=n,t[54]=R);let z;return t[55]!==F||t[56]!==I||t[57]!==L||t[58]!==R||t[59]!==v||t[60]!==T?(z=(0,$.jsxs)(`form`,{"aria-label":`Expose a port`,className:`flex flex-col gap-2 border-b pb-4`,onSubmit:v,children:[T,F,I,L,R]}),t[55]=F,t[56]=I,t[57]=L,t[58]=R,t[59]=v,t[60]=T,t[61]=z):z=t[61],z}function Ua(){return(0,$.jsx)(Ui,{})}function Wa(){return(0,$.jsx)(Sn,{})}function Ga(e){return(0,$.jsxs)(Vi,{value:e,className:`pr-7`,children:[(0,$.jsx)(Re,{worker:e.worker}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:e.unit||e.process,children:e.process}),(0,$.jsxs)(Mn,{variant:`secondary`,className:`font-mono`,children:[`:`,e.port]})]},e.id)}function Ka(e,t){return e.id===t.id}function qa(){return``}function Ja(){return``}function Ya(e){return e.hostname??``}function Xa(e){return se(`stale`)(e.state)?`stale`:pe(`unhealthy`)(e.detail)?`unhealthy`:e.kind===`port`?`listening`:e.kind===`exposure`&&e.owned===!0?`configured`:e.kind===`exposure`&&e.publicAccess===!0?`public permission`:P(/^active · /u,``)(ve(e.state))}function Za(e,t){return T(V(/failed|unhealthy|Exited \([1-9]/u)(e.state+e.detail))?`error`:t===`stale`||t===`public permission`||t===`restarting`?`warning`:T(V(/running|online|listening/u)(t))?`live`:`quiet`}function Qa(e){let t=(0,Q.c)(37),n;if(t[0]!==e.item.id||t[1]!==e.item.name||t[2]!==e.item.worker){let r;t[4]===e.item.worker?r=t[5]:(r=()=>e.item.worker,t[4]=e.item.worker,t[5]=r),n=qe(x(se(`remote:`)(e.item.id),{onFalse:to,onTrue:r}))(e.item.name),t[0]=e.item.id,t[1]=e.item.name,t[2]=e.item.worker,t[3]=n}else n=t[3];let[r,i]=Ne(n),a;t[6]===e.item.url?a=t[7]:(a=(0,$.jsx)(`a`,{href:e.item.url,"aria-label":e.item.url,target:`_blank`,rel:`noreferrer`,title:e.item.url}),t[6]=e.item.url,t[7]=a);let o;t[8]===e.item.publicAccess?o=t[9]:(o=x(e.item.publicAccess===!0,{onFalse:eo,onTrue:$a}),t[8]=e.item.publicAccess,t[9]=o);let s;if(t[10]!==e.item.port||t[11]!==e.item.publicAccess||t[12]!==e.item.url){let n;t[14]===e.item.port?n=t[15]:(n=()=>`:${e.item.port}`,t[14]=e.item.port,t[15]=n);let r;t[16]===e.item.url?r=t[17]:(r=()=>P(/^https:\/\//u,``)(e.item.url),t[16]=e.item.url,t[17]=r),s=x(e.item.publicAccess===!0,{onFalse:n,onTrue:r}),t[10]=e.item.port,t[11]=e.item.publicAccess,t[12]=e.item.url,t[13]=s}else s=t[13];let c;t[18]===s?c=t[19]:(c=(0,$.jsx)(`span`,{className:`truncate`,children:s}),t[18]=s,t[19]=c);let l;t[20]!==a||t[21]!==o||t[22]!==c?(l=(0,$.jsxs)(Mn,{variant:`outline`,className:`max-w-full font-mono`,render:a,children:[o,c]}),t[20]=a,t[21]=o,t[22]=c,t[23]=l):l=t[23];let u;t[24]!==i||t[25]!==e.item.name||t[26]!==e.item.owned||t[27]!==r?(u=e.item.owned===!0&&(0,$.jsx)(ue,{size:`icon-sm`,variant:`ghost`,disabled:Zt(r),"aria-label":`Remove ${e.item.name} exposure`,onClick:()=>i(),children:(0,$.jsx)(wn,{})}),t[24]=i,t[25]=e.item.name,t[26]=e.item.owned,t[27]=r,t[28]=u):u=t[28];let d;t[29]!==l||t[30]!==u?(d=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[l,u]}),t[29]=l,t[30]=u,t[31]=d):d=t[31];let f;t[32]===r?f=t[33]:(f=(0,$.jsx)(On,{result:r}),t[32]=r,t[33]=f);let p;return t[34]!==d||t[35]!==f?(p=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[d,f]}),t[34]=d,t[35]=f,t[36]=p):p=t[36],p}function $a(){return(0,$.jsx)(vn,{className:`size-3 shrink-0`,"aria-label":`Public`})}function eo(){return(0,$.jsx)(bn,{className:`size-3 shrink-0`,"aria-label":`Tailnet`})}function to(){return``}var no=new Intl.RelativeTimeFormat(`en`,{numeric:`auto`,style:`narrow`});function ro(e,t){let n=X(0,Jt((e-t)/6e4,0));return n<60?no.format(n,`minute`):no.format(Jt(n/60,0),`hour`)}function io(e){let t=(0,Q.c)(78),n,r,i,a,o,s,c,l,d,f,p,m,g;if(t[0]!==e.row.item||t[1]!==e.showMachine){r=Xa(e.row.item);let u;t[15]===e.row.item.processes?u=t[16]:(u=e.row.item.processes??[],t[15]=e.row.item.processes,t[16]=u);let h=u;d=`deploy-process-grid min-w-0 gap-y-1`,f=e.showMachine;let _;t[17]===e.row.item?_=t[18]:(_=Ra(e.row.item),t[17]=e.row.item,t[18]=_);let v;t[19]===h?v=t[20]:(v=ha(h)[0]?.name,t[19]=h,t[20]=v);let y=e.row.item.kind===`container`;t[21]!==_||t[22]!==v||t[23]!==y?(p=(0,$.jsx)(ua,{name:_,process:v,container:y}),t[21]=_,t[22]=v,t[23]=y,t[24]=p):p=t[24];let b=e.row.item.name,x;t[25]===e.row.item?x=t[26]:(x=Ra(e.row.item),t[25]=e.row.item,t[26]=x),t[27]!==e.row.item.name||t[28]!==x?(m=(0,$.jsx)(`span`,{className:`min-w-0 truncate text-sm font-medium`,title:b,children:x}),t[27]=e.row.item.name,t[28]=x,t[29]=m):m=t[29];let S;t[30]===h?S=t[31]:(S=ma(h),t[30]=h,t[31]=S),t[32]===S?g=t[33]:(g=(0,$.jsx)(ga,{...S}),t[32]=S,t[33]=g),t[34]!==e.row.item.worker||t[35]!==e.showMachine?(o=e.showMachine&&(0,$.jsx)(Re,{worker:e.row.item.worker}),t[34]=e.row.item.worker,t[35]=e.showMachine,t[36]=o):o=t[36],a=r,s=r,c=`img`,l=`flex items-center justify-center`,n=bt,i=Za(e.row.item,r),t[0]=e.row.item,t[1]=e.showMachine,t[2]=n,t[3]=r,t[4]=i,t[5]=a,t[6]=o,t[7]=s,t[8]=c,t[9]=l,t[10]=d,t[11]=f,t[12]=p,t[13]=m,t[14]=g}else n=t[2],r=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8],l=t[9],d=t[10],f=t[11],p=t[12],m=t[13],g=t[14];let _;t[37]!==n||t[38]!==i?(_=(0,$.jsx)(n,{status:i}),t[37]=n,t[38]=i,t[39]=_):_=t[39];let v;t[40]!==a||t[41]!==_||t[42]!==s||t[43]!==c||t[44]!==l?(v=(0,$.jsx)(`span`,{title:a,"aria-label":s,role:c,className:l,children:_}),t[40]=a,t[41]=_,t[42]=s,t[43]=c,t[44]=l,t[45]=v):v=t[45];let y;t[46]===e.expanded?y=t[47]:(y=x(e.expanded===void 0,{onFalse:()=>x(e.expanded===!0,{onFalse:mo,onTrue:po}),onTrue:fo}),t[46]=e.expanded,t[47]=y);let b=`text-muted-foreground size-3 ${y}`,S;t[48]===b?S=t[49]:(S=(0,$.jsx)(gn,{className:b}),t[48]=b,t[49]=S);let C;if(t[50]!==e.row.exposures||t[51]!==e.row.listeners){let n;t[53]===e.row.exposures?n=t[54]:(n=t=>t.address!==`container`&&!N(e.row.exposures,e=>e.port===t.port),t[53]=e.row.exposures,t[54]=n),C=h(ie(h(u(e.row.listeners,n),uo)),lo),t[50]=e.row.exposures,t[51]=e.row.listeners,t[52]=C}else C=t[52];let w;t[55]===e.row.exposures?w=t[56]:(w=h(e.row.exposures,co),t[55]=e.row.exposures,t[56]=w);let T;t[57]!==e.now||t[58]!==e.row.item.next?(T=e.row.item.next!==void 0&&(0,$.jsxs)(`span`,{className:`text-muted-foreground text-xs tabular-nums`,children:[`next `,ro(e.row.item.next,e.now)]}),t[57]=e.now,t[58]=e.row.item.next,t[59]=T):T=t[59];let E;t[60]!==C||t[61]!==w||t[62]!==T?(E=(0,$.jsxs)(`div`,{className:`col-start-2 col-end-5 flex min-w-0 flex-wrap items-center gap-1 empty:hidden`,children:[C,w,T]}),t[60]=C,t[61]=w,t[62]=T,t[63]=E):E=t[63];let D;t[64]!==e.row.item||t[65]!==r?(D=(r===`stale`||r===`unhealthy`||pe(`failed`)(r)||pe(`exited`)(r))&&(0,$.jsx)(`p`,{className:`col-start-2 col-end-5 text-xs wrap-anywhere ${x(Za(e.row.item,r)===`error`,{onFalse:()=>x(Za(e.row.item,r)===`warning`,{onFalse:so,onTrue:oo}),onTrue:ao})}`,children:e.row.item.detail}),t[64]=e.row.item,t[65]=r,t[66]=D):D=t[66];let O;return t[67]!==o||t[68]!==v||t[69]!==S||t[70]!==E||t[71]!==D||t[72]!==d||t[73]!==f||t[74]!==p||t[75]!==m||t[76]!==g?(O=(0,$.jsxs)(`div`,{className:d,"data-show-machine":f,children:[p,m,g,o,v,S,E,D]}),t[67]=o,t[68]=v,t[69]=S,t[70]=E,t[71]=D,t[72]=d,t[73]=f,t[74]=p,t[75]=m,t[76]=g,t[77]=O):O=t[77],O}function ao(){return`text-destructive`}function oo(){return`text-warning`}function so(){return`text-muted-foreground`}function co(e){return(0,$.jsx)(Qa,{item:e},e.id)}function lo(e){return(0,$.jsxs)(Mn,{variant:`secondary`,className:`font-mono`,children:[`:`,e]},e)}function uo(e){return e.port}function fo(){return`invisible`}function po(){return`rotate-90`}function mo(){return``}function ho(e){let t=(0,Q.c)(23),[n,r]=(0,Z.useState)(!1),i;t[0]===e.row.item.processes?i=t[1]:(i=e.row.item.processes??[],t[0]=e.row.item.processes,t[1]=i);let a;t[2]===i?a=t[3]:(a=ha(i),t[2]=i,t[3]=a);let o=a;if(o.length<2&&!e.processMatch){let n;return t[4]!==e.now||t[5]!==e.row||t[6]!==e.showMachine?(n=(0,$.jsx)(`div`,{role:`listitem`,className:`border-b py-2.5`,children:(0,$.jsx)(io,{row:e.row,now:e.now,showMachine:e.showMachine})}),t[4]=e.now,t[5]=e.row,t[6]=e.showMachine,t[7]=n):n=t[7],n}let s=n||e.processMatch,c;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(c=e=>r(e.currentTarget.open),t[8]=c):c=t[8];let l=n||e.processMatch,u;t[9]!==e.now||t[10]!==e.row||t[11]!==e.showMachine||t[12]!==l?(u=(0,$.jsx)(`summary`,{className:`cursor-pointer list-none py-2.5 [&::-webkit-details-marker]:hidden`,children:(0,$.jsx)(io,{row:e.row,now:e.now,expanded:l,showMachine:e.showMachine})}),t[9]=e.now,t[10]=e.row,t[11]=e.showMachine,t[12]=l,t[13]=u):u=t[13];let d;t[14]!==n||t[15]!==o||t[16]!==e.processMatch||t[17]!==e.showMachine?(d=(n||e.processMatch)&&(0,$.jsx)(ka,{rows:o,showMachine:e.showMachine}),t[14]=n,t[15]=o,t[16]=e.processMatch,t[17]=e.showMachine,t[18]=d):d=t[18];let f;return t[19]!==s||t[20]!==u||t[21]!==d?(f=(0,$.jsxs)(`details`,{role:`listitem`,className:`border-b`,open:s,onToggle:c,children:[u,d]}),t[19]=s,t[20]=u,t[21]=d,t[22]=f):f=t[22],f}function go(){let e=(0,Q.c)(40),t=Ae(Ye),[n,r]=(0,Z.useState)(``),o;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={from:`/(home)`},e[0]=o):o=e[0];let s=Ht(o),c,l,d,f,p,m,g;if(e[1]!==n||e[2]!==t.value.items||e[3]!==t.value.sources||e[4]!==t.value.time||e[5]!==t.value.workers||e[6]!==s.machine){let o;e[14]===s.machine?o=e[15]:(o=e=>s.machine===void 0||s.machine===`all`||e.worker===s.machine,e[14]=s.machine,e[15]=o);let _=u(t.value.items,o),v;e[16]===n?v=e[17]:(v=e=>pe(ve(n))(ve(`${e.item.worker} ${e.item.name} ${k(h(e.item.processes??[],wo),` `)} ${k(h(e.listeners,Co),` `)} ${k(h(e.exposures,So),` `)}`)),e[16]=n,e[17]=v);let y=u(Ba(_),v),b=u(y,xo),x=u(y,bo);f=`flex min-h-0 w-full max-w-3xl flex-1 flex-col gap-4 self-center`,p=(0,$.jsx)(Ha,{items:_,choices:Va(_)},s.machine??`all`);let S;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>r(e.target.value),e[18]=S):S=e[18];let C;if(e[19]===n?C=e[20]:(C=(0,$.jsx)(Di,{"aria-label":`Find a service or port`,placeholder:`Filter apps, ports, processes…`,value:n,onChange:S}),e[19]=n,e[20]=C),m=(0,$.jsxs)(`div`,{className:`flex items-center gap-3`,children:[C,(0,$.jsxs)(`span`,{className:`text-muted-foreground shrink-0 text-xs whitespace-nowrap`,children:[b.length,` apps`]})]}),e[21]!==t.value.sources||e[22]!==t.value.workers){let n;e[24]===t.value.workers?n=e[25]:(n=e=>e.error!==``&&!i(t.value.workers??[],e.name),e[24]=t.value.workers,e[25]=n),g=h(u(t.value.sources,n),yo),e[21]=t.value.sources,e[22]=t.value.workers,e[23]=g}else g=e[23];c=`pb-safe min-h-0 flex-1 overflow-y-auto pr-3`;let w;e[26]!==n||e[27]!==t.value.time||e[28]!==s.machine?(w=e=>!a(e.rows)&&(0,$.jsxs)(`section`,{"aria-label":e.label,className:`not-first:mt-6`,children:[e.label===`Scheduled`&&(0,$.jsx)(`h2`,{className:`text-muted-foreground mb-1 text-xs`,children:`Scheduled`}),(0,$.jsx)(`div`,{role:`list`,children:h(e.rows,e=>(0,$.jsx)(ho,{row:e,now:t.value.time,showMachine:s.machine===void 0||s.machine===`all`,processMatch:n!==``&&!pe(ve(n))(ve(`${e.item.worker} ${e.item.name} ${k(h(e.listeners,vo),` `)} ${k(h(e.exposures,_o),` `)}`))},`${e.item.id}:${n!==``}`))})]},e.label),e[26]=n,e[27]=t.value.time,e[28]=s.machine,e[29]=w):w=e[29],l=h([{label:`Apps`,rows:b},{label:`Scheduled`,rows:x}],w),d=a(y)&&(0,$.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:`No matching apps.`}),e[1]=n,e[2]=t.value.items,e[3]=t.value.sources,e[4]=t.value.time,e[5]=t.value.workers,e[6]=s.machine,e[7]=c,e[8]=l,e[9]=d,e[10]=f,e[11]=p,e[12]=m,e[13]=g}else c=e[7],l=e[8],d=e[9],f=e[10],p=e[11],m=e[12],g=e[13];let _;e[30]!==c||e[31]!==l||e[32]!==d?(_=(0,$.jsxs)(`div`,{className:c,children:[l,d]}),e[30]=c,e[31]=l,e[32]=d,e[33]=_):_=e[33];let v;return e[34]!==f||e[35]!==p||e[36]!==m||e[37]!==g||e[38]!==_?(v=(0,$.jsxs)(`div`,{className:f,children:[p,m,g,_]}),e[34]=f,e[35]=p,e[36]=m,e[37]=g,e[38]=_,e[39]=v):v=e[39],v}function _o(e){return e.url}function vo(e){return`${e.port}`}function yo(e){return(0,$.jsxs)(`p`,{className:`text-destructive text-xs wrap-anywhere`,role:`alert`,title:e.error,children:[e.name,`: `,e.error]},e.name)}function bo(e){return e.item.scheduled===!0}function xo(e){return e.item.scheduled!==!0}function So(e){return e.url}function Co(e){return`${e.port}`}function wo(e){return e.name}export{go as component};
@@ -1 +0,0 @@
1
- import{Al as e,a as t,q as n,r}from"./schema-DLne3DRa.js";import{n as i,r as a}from"./utils-CzWcd8BF.js";var o=n(),s=e();function c(e){let n=(0,o.c)(3);if(i(e.error)){let e;return n[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,s.jsx)(t,{href:a(location.href)}),n[0]=e):e=n[0],e}let c;return n[1]===e.error?c=n[2]:(c=(0,s.jsx)(r,{error:e.error,reset:l}),n[1]=e.error,n[2]=c),c}function l(){return location.reload()}export{c as t};
@@ -1 +0,0 @@
1
- import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{A as t,Al as n,B as r,C as i,D as a,E as o,F as s,G as c,H as l,I as u,L as d,M as f,N as p,O as m,P as h,R as g,S as _,T as v,U as y,V as b,W as x,d as S,f as C,j as w,jl as T,k as E,l as D,m as O,p as k,q as A,u as j,x as M,z as N}from"./schema-DLne3DRa.js";import{$ as P,A as F,At as I,B as L,Ct as R,Dt as z,Et as ee,G as B,H as te,I as V,J as H,K as U,L as ne,M as re,Mt as ie,O as W,Q as ae,S as oe,St as se,Tt as G,U as ce,V as le,W as K,X as q,Y as J,Z as ue,_ as de,_t as fe,at as Y,bt as pe,ct as me,dt as he,et as ge,ft as _e,g as ve,gt as ye,ht as be,it as xe,j as Se,k as Ce,kt as we,lt as Te,m as Ee,mt as De,nt as Oe,ot as ke,pt as Ae,q as je,rt as Me,st as Ne,tt as Pe,ut as Fe,vt as Ie,wt as Le,x as Re,xt as ze,yt as Be}from"./utils-B7SpBnlR.js";import{H as Ve,X as He,Y as Ue}from"./index-DVPVace2.js";var X=e(T(),1),We=n(),Ge=He(),Ke=Ue(),qe=A();function Z(e){return e?.ownerDocument||document}var Je=c(`inline-block size-1.5 shrink-0 rounded-full`,{defaultVariants:{status:`live`},variants:{status:{error:`bg-destructive`,live:`bg-primary`,off:`border-muted-foreground border`,quiet:`bg-muted-foreground/50`,warning:`bg-warning`}}});function Ye(e){let t=(0,qe.c)(6),n;t[0]!==e.className||t[1]!==e.status||t[2]!==e.waiting?(n=x(Je({status:e.status}),e.waiting===!0&&`motion-safe:animate-pulse`,e.className),t[0]=e.className,t[1]=e.status,t[2]=e.waiting,t[3]=n):n=t[3];let r;return t[4]===n?r=t[5]:(r=(0,We.jsx)(`span`,{"data-slot":`status-dot`,"aria-hidden":`true`,className:n}),t[4]=n,t[5]=r),r}function Xe(e){X.useEffect(e,j)}var Ze=null;globalThis.requestAnimationFrame;var Qe=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)}},$e=class e{static create(){return new e}static request(e){return Qe.request(e)}static cancel(e){return Qe.cancel(e)}currentId=Ze;request(e){this.cancel(),this.currentId=Qe.request(()=>{this.currentId=Ze,e()})}cancel=()=>{this.currentId!==Ze&&(Qe.cancel(this.currentId),this.currentId=Ze)};disposeEffect=()=>this.cancel};function et(){let e=i($e.create).current;return Xe(e.disposeEffect),e}var tt=e(Ve(),1);function nt(e){return e==null?e:`current`in e?e.current:e}function rt(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var it=`data-starting-style`,at=`data-ending-style`,ot=null;function st(e){if(!ot){let e=[];ot=e,queueMicrotask(()=>{ot=null,tt.flushSync(()=>{for(let t of e)t()})})}ot.push(e)}function ct(e,t=!1,n=!1){let r=et();return _((i,a=null)=>{r.cancel();let o=nt(e);if(o==null)return;let s=o,c=()=>{n?st(()=>{a?.aborted||i()}):tt.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(rt(s).map(e=>e.finished.then(C))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(rt(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=it;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 lt(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=_(a),s=ct(r,n,i);X.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}var ut={[it]:``},dt={[at]:``},ft={transitionStatus(e){return e===`starting`?ut:e===`ending`?dt:null}};function pt(e,t=!1,n=!1,r=!1){let[i,a]=X.useState(e&&t?`idle`:void 0),[o,s]=X.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),M(()=>{if(!e&&o&&i!==`ending`&&n){let e=$e.request(()=>{a(`ending`)});return()=>{$e.cancel(e)}}},[e,o,i,n]),M(()=>{if(!e||t||i===void 0)return;let n=$e.request(()=>{a(void 0)});return()=>{$e.cancel(n)}},[t,e,i]),M(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=$e.request(()=>{a(`idle`)});return()=>{$e.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}var mt=0,ht=class e{static create(){return new e}currentId=mt;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=mt,t()},e)}isStarted(){return this.currentId!==mt}clear=()=>{this.currentId!==mt&&(clearTimeout(this.currentId),this.currentId=mt)};disposeEffect=()=>this.clear};function gt(){let e=i(ht.create).current;return Xe(e.disposeEffect),e}function Q(e){let t=i(_t,e).current;return t.next=e,M(t.effect),t}function _t(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var vt={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},yt={...vt,position:`fixed`,margin:0,top:0,left:0},bt={...vt,position:`absolute`},xt=[],St=void 0;function Ct(){return St}function wt(e){xt.push(e)}function Tt(e){let t=(t,n)=>{let r=i(Dt).current,a;try{St=r;for(let e of xt)e.before(r);a=e(t,n);for(let e of xt)e.after(r);r.didInitialize=!0}finally{St=void 0}return a};return t.displayName=e.displayName||e.name,t}function Et(e){return X.forwardRef(Tt(e))}function Dt(){return{didInitialize:!1}}var Ot=k(19)?jt:Mt;function kt(e,t,n,r,i){return Ot(e,t,n,r,i)}function At(e,t,n,r,i){let a=X.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Ge.useSyncExternalStore)(e.subscribe,a,a)}wt({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,Ge.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function jt(e,t,n,r,i){let a=Ct();if(!a)return At(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 Mt(e,t,n,r,i){return(0,Ke.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Nt=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 kt(this,e,t,n,r)}},Pt=class extends Nt{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){X.useDebugValue(e);let n=this;M(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;M(()=>(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);M(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){X.useDebugValue(e);let n=this,r=t!==void 0;M(()=>{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 X.useDebugValue(e),kt(this,this.selectors[e],t,n,r)}useContextCallback(e,t){X.useDebugValue(e);let n=_(t??C);this.context[e]=n}useStateSetter(e){let t=X.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 $(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Ft(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var It=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`),Lt=!It&&ie.includes(`firefox`);!It&&ie.includes(`chrom`);var Rt=we,zt=X.forwardRef(function(e,t){let[n,r]=X.useState();M(()=>{Rt&&It&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,We.jsx)(`span`,{...e,ref:t,style:yt,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})}),Bt=`data-open`,Vt=`data-closed`,Ht=`data-anchor-hidden`,Ut=`data-popup-open`,Wt=`data-pressed`,Gt={[Ut]:``},Kt={[Ut]:``,[Wt]:``},qt={[Bt]:``},Jt={[Vt]:``},Yt={[Ht]:``},Xt={open(e){return e?Gt:null}},Zt={open(e){return e?Kt:null}},Qt={open(e){return e?qt:Jt},anchorHidden(e){return e?Yt:null}},$t={...Qt,...ft},en=`data-trigger-disabled`;function tn(e,t){if(!s(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(en);for(let[,e]of t.entries())if(G(e,n))return!e.hasAttribute(en);return!1}function nn(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 rn(e){return e.matches(`html,body`)}function an(e){return u(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function on(e){return Le(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${se}`)!=null}function sn(e){return e?e.getAttribute(`role`)===`combobox`&&an(e):!1}function cn(e){if(!e||z)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function ln(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}var un=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function dn(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return r(n)?n.host:null}function fn(e){for(let t of Array.from(e.children))if(E(t)===`summary`)return t;return null}function pn(e,t){let n=fn(t);return!!n&&(e===n||G(n,e))}function mn(e){let t=e?E(e):``;return e!=null&&e.matches(un)&&(t!==`summary`||e.parentElement!=null&&E(e.parentElement)===`details`&&fn(e.parentElement)===e)&&(t!==`details`||fn(e)==null)&&(t!==`input`||e.type!==`hidden`)}function hn(e){if(!mn(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=dn(t)){let n=t!==e,r=E(t)===`slot`;if(t.hasAttribute(`inert`)||n&&E(t)===`details`&&!t.open&&!pn(e,t)||t.hasAttribute(`hidden`)||!r&&!gn(t,n))return!1}return!0}function gn(e,t){let n=v(e);return t?n.display!==`none`:ce(e,n)}function _n(e){let t=e.tabIndex;if(t<0){let t=E(e);if(t===`details`||t===`audio`||t===`video`||u(e)&&e.isContentEditable)return 0}return t}function vn(e){if(E(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function yn(e,t){let n=vn(e);if(!n)return!0;let r=t.find(e=>{let t=vn(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=vn(e);return t?.name===n.name&&t.form===n.form})===n}function bn(e){if(u(e)&&E(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return u(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function xn(e,t){bn(e).forEach(e=>{mn(e)&&t.push(e),xn(e,t)})}function Sn(e,t,n){bn(e).forEach(e=>{u(e)&&e.matches(t)&&n.push(e),Sn(e,t,n)})}function Cn(e){return hn(e)&&_n(e)>=0}function wn(e){let t=[];return xn(e,t),t.filter(hn)}function Tn(e){let t=wn(e);return t.filter(e=>_n(e)>=0&&yn(e,t))}function En(e,t){let n=Tn(e),r=n.length;if(r===0)return;let i=R(Z(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Dn(e){return En(Z(e).body,1)||e}function On(e){return En(Z(e).body,-1)||e}function kn(e,t,n){if(!e)return null;let r=[];xn(Z(e).body,r);let i=r.indexOf(e);if(i===-1)return null;let a=r.filter(hn);for(let e=1;e<r.length;e+=1){let o=r[(i+t*e+r.length)%r.length];if(!G(n,o)&&Cn(o)&&yn(o,a))return o}return r[i]}function An(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!G(n,r)}function jn(e){Tn(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Mn(e){let t=[];Sn(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 Nn(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Nn(e,t.id,n)])}function Pn(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 Fn(e){return`data-base-ui-${e}`}var In=0;function Ln(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(In);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),C;let o=requestAnimationFrame(a);return In=o,()=>{In===o&&(cancelAnimationFrame(o),In=0)}}var Rn=`data-base-ui-inert`,zn=new WeakMap,Bn=new WeakSet,Vn=new WeakMap,Hn=0;function Un(e){return e?r(e)?e.host:Un(e.parentNode):null}var Wn=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Un(t);return e.contains(n)?n:null}).filter(e=>e!=null),Gn=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Kn=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{E(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function qn(e,t,n,{mark:r=!0}){let i=Wn(t,e),a=r?Kn(t,Gn(i),new Set(i)):[],o=[],s=[];if(n){let e=Wn(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);Kn(t,Gn(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(zn.get(e)||0)+1;zn.set(e,r),o.push(e),r===1&&n&&Bn.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(Vn.get(e)||0)+1;Vn.set(e,t),s.push(e),t===1&&e.setAttribute(Rn,``)}),Hn+=1,()=>{o.forEach(e=>{let t=(zn.get(e)||0)-1;zn.set(e,t),t||(Bn.has(e)||e.removeAttribute(`aria-hidden`),Bn.delete(e))}),r&&s.forEach(e=>{let t=(Vn.get(e)||0)-1;Vn.set(e,t),t||e.removeAttribute(Rn)}),--Hn,Hn||(zn=new WeakMap,Bn=new WeakSet,Vn=new WeakMap)}}function Jn(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=Z(e[0]).body;return qn(e,i,n,{mark:r})}var Yn={style:{transition:`none`}},Xn={fallbackAxisSide:`none`},Zn={fallbackAxisSide:`end`},Qn={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},$n=X.createContext(null),er=()=>X.useContext($n),tr=Fn(`portal`);function nr(e={}){let{ref:t,container:n,componentProps:r=S,elementProps:i}=e,a=ve(),o=er()?.portalNode,[s,c]=X.useState(null),[l,u]=X.useState(null),d=_(e=>{e!==null&&u(e)}),f=X.useRef(null);M(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(g(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=D(`div`,r,{ref:[t,d],props:[{id:a,[tr]:``},i]}),m=s&&p?tt.createPortal(p,s):null;return{node:l,nodeId:X.isValidElement(p)?p.props.id:void 0,subtree:m}}var rr=X.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}=nr({container:o,ref:t,componentProps:e,elementProps:c}),f=X.useRef(null),p=X.useRef(null),m=X.useRef(null),h=X.useRef(null),[g,_]=X.useState(null),v=X.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;X.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&An(e)&&(e.type===`focusin`?v.current&&=(Mn(l),!1):(jn(l),v.current=!0))}return Ft($(l,`focusin`,e,!0),$(l,`focusout`,e,!0))},[l,y]),M(()=>{l&&b===!0&&v.current&&(Mn(l),v.current=!1)},[b,l]);let S=X.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,We.jsxs)(X.Fragment,{children:[d,(0,We.jsxs)($n.Provider,{value:S,children:[x&&l&&(0,We.jsx)(zt,{"data-type":`outside`,ref:f,onFocus:e=>{An(e,l)?m.current?.focus():On(g?g.domReference:null)?.focus()}}),x&&l&&(0,We.jsx)(`span`,{role:s,"aria-owns":u,style:Qn}),l&&tt.createPortal(a,l),x&&l&&(0,We.jsx)(zt,{"data-type":`outside`,ref:p,onFocus:e=>{An(e,l)?h.current?.focus():(Dn(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,ne(`focus-out`,e.nativeEvent)))}})]})]})});function ir(){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 ar=class{nodesRef={current:[]};events=ir();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)}},or=X.createContext(null),sr=X.createContext(null),cr=()=>X.useContext(or)?.id||null,lr=e=>{let t=X.useContext(sr);return e??t};function ur(e){let t=ve(),n=lr(e),r=cr();return M(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function dr(e){let{children:t,id:n}=e,r=cr();return(0,We.jsx)(or.Provider,{value:X.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function fr(e){let{children:t,externalTree:n}=e,r=i(()=>n??new ar).current;return(0,We.jsx)(sr.Provider,{value:r,children:t})}function pr(e,t){let n=p(ee(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(De(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var mr=20,hr=[];function gr(){hr=hr.filter(e=>e.deref()?.isConnected)}function _r(e){gr(),e&&E(e)!==`body`&&(hr.push(new WeakRef(e)),hr.length>mr&&(hr=hr.slice(-20)))}function vr(){return gr(),hr[hr.length-1]?.deref()}function yr(e){return e?Cn(e)?e:Tn(e)[0]||e:null}function br(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=wn(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Cn(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 xr(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:d=``,nextFocusableElement:f,previousFocusableElement:p,beforeContentFocusGuardRef:m,externalTree:h,getInsideElements:g}=e,v=t.useState(`open`),y=t.useState(`domReferenceElement`),b=t.useState(`floatingElement`),{events:x,dataRef:S}=t.context,C=_(()=>S.current.floatingContext?.nodeId),w=i===!1,T=sn(y)&&w,D=Q(i),k=Q(a),A=Q(o),j=Q(d),N=Q(v),P=lr(h),F=er(),I=X.useRef(!1),L=X.useRef(!1),z=X.useRef(!1),B=X.useRef(null),te=X.useRef(``),V=X.useRef(``),H=X.useRef(null),U=X.useRef(null),re=O(H,m,F?.beforeInsideRef),ie=O(U,F?.afterInsideRef),W=gt(),ae=gt(),se=et(),le=F!=null,K=ln(b),q=_((e=K)=>e?Tn(e):[]),J=_(()=>g?.().filter(e=>e!=null)??[]);X.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&G(K,R(Z(K)))&&q().length===0&&!T&&ye(e)}return $(Z(K),`keydown`,e)},[r,K,c,T,q]),X.useEffect(()=>{if(r||!v)return;let e=Z(K);function t(){z.current=!1}function n(e){let t=ee(e),n=J(),r=G(b,t)||G(y,t)||G(F?.portalNode,t)||n.some(e=>e===t||G(e,t));z.current=!r,V.current=e.pointerType||`keyboard`,Le(t,`[data-base-ui-click-trigger]`)&&(L.current=!0,ae.start(0,()=>{L.current=!1}))}function i(){V.current=`keyboard`}return Ft($(e,`pointerdown`,n,!0),$(e,`pointerup`,t,!0),$(e,`pointercancel`,t,!0),$(e,`keydown`,i,!0),t)},[r,b,y,K,v,F,ae,J]),X.useEffect(()=>{if(r||!l)return;let e=Z(K);function n(){L.current=!0,ae.start(0,()=>{L.current=!1})}function i(e){let t=ee(e);Cn(t)&&(B.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=ee(n);c&&r==null&&a!=null&&G(b,a)&&_r(a),queueMicrotask(()=>{let o=C(),l=t.context.triggerElements,d=J(),m=r?.hasAttribute(Fn(`focus-guard`))&&[H.current,U.current,F?.beforeInsideRef.current,F?.afterInsideRef.current,F?.beforeOutsideRef.current,F?.afterOutsideRef.current,nt(p),nt(f)].includes(r),h=!(G(y,r)||G(b,r)||G(r,b)||G(F?.portalNode,r)||d.some(e=>e===r||G(e,r))||l.hasMatchingElement(e=>G(e,r))||m||P&&(Nn(P.nodesRef.current,o).find(e=>G(e.context?.elements.floating,r)||G(e.context?.elements.domReference,r))||Pn(P.nodesRef.current,o).find(e=>[e.context?.elements.floating,ln(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===y&&K&&br(K),s&&i!==y&&!ce(a)&&R(e)===e.body){if(u(K)&&(K.focus(),s===`popup`)){se.request(()=>{K.focus()});return}let e=q(),t=B.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||K;u(n)&&n.focus()}S.current.insideReactTree?S.current.insideReactTree=!1:(T||!c)&&r&&h&&!L.current&&(T||r!==vr())&&(I.current=!0,t.setOpen(!1,ne(oe,n)))})}function o(){z.current||(S.current.insideReactTree=!0,W.start(0,()=>{S.current.insideReactTree=!1}))}let d=u(y)?y:null;if(b||d)return Ft(d&&$(d,`focusout`,a),d&&$(d,`pointerdown`,n),b&&$(b,`focusin`,i),b&&$(b,`focusout`,a),b&&F&&$(b,`focusout`,o,!0))},[r,y,b,K,c,P,F,t,l,s,q,T,C,S,W,ae,se,f,p,J]),X.useEffect(()=>{if(r||!b||!v)return;let e=Array.from(F?.portalNode?.querySelectorAll(`[${Fn(`portal`)}]`)||[]),t=(P?Pn(P.nodesRef.current,C()):[]).find(e=>sn(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Jn([b,...e,H.current,U.current,F?.beforeOutsideRef.current,F?.afterOutsideRef.current,...J(),t,nt(p),nt(f),T?y:null].filter(e=>e!=null),{ariaHidden:c||T,mark:!1}),i=Jn([b,...e].filter(e=>e!=null));return()=>{i(),n()}},[v,r,y,b,c,F,T,P,C,f,p,J]),M(()=>{if(!v||r||!u(K))return;te.current=``,V.current=``;let e=Z(K),t=R(e);queueMicrotask(()=>{let n=D.current,r=typeof n==`function`?n(j.current||``):n;if(r===void 0||r===!1||G(K,t))return;let i=null,a=()=>(i??=q(K),i[0]||K),o;o=r===!0||r===null?a():nt(r),o||=a();let s=G(K,R(e)),c=S.current.openEvent,l=c?.type===`mousedown`&&De(c);Ln(o,{sync:l,preventScroll:o===K,shouldFocus(){if(!N.current)return!1;if(s)return!0;let t=R(e);return!(t!==o&&G(K,t))}})})},[r,v,K,q,D,j,N,S]);let ue=X.useRef(null);M(()=>{if(r||!K){ue.current=null;return}ue.current&&=(ue.current.cancelled=!0,null);let e=Z(K),t=R(e),n=j.current==null;_r(t);function i(e){if(e.open||(te.current=pr(e.nativeEvent,V.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(Fn(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(I.current=!0),e.reason===`outside-press`){if(e.nested)I.current=!1;else if(De(e.nativeEvent)||be(e.nativeEvent))I.current=!1;else{let e=!1;Z(K).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?I.current=!1:I.current=!0}}}x.on(`openchange`,i);function a(e){let r=k.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=y?.isConnected?y:null,o=t?.isConnected&&E(t)!==`body`?t:null,s=n?o||a:a||o;return s||=vr()||null,typeof i==`boolean`?s:nt(i)||s||null}return()=>{x.off(`openchange`,i);let t=R(e),n=J(),r=G(b,t)||n.some(e=>e===t||G(e,t))||P&&Nn(P.nodesRef.current,C(),!1).some(e=>G(e.context?.elements.floating,t)),o=k.current,s=te.current,c=a(s),l={cancelled:!1};ue.current=l,queueMicrotask(()=>{ue.current===l&&(ue.current=null);let n=yr(c),i=A.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!I.current&&u(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}I.current=!1})}},[r,b,K,k,A,j,x,P,y,C,J]),M(()=>{if(!It||v||!b)return;let e=R(Z(b));u(e)&&an(e)&&G(b,e)&&e.blur()},[v,b]),M(()=>{if(!r&&F)return F.setFocusManagerState({modal:c,closeOnFocusOut:l,open:v,onOpenChange:t.setOpen,domReference:y}),()=>{F.setFocusManagerState(null)}},[r,F,c,v,t,l,y]),M(()=>{if(!r&&K)return br(K),()=>{queueMicrotask(gr)}},[r,K]);let de=!r&&(!c||!T)&&(le||c);return(0,We.jsxs)(X.Fragment,{children:[de&&(0,We.jsx)(zt,{"data-type":`inside`,ref:re,onFocus:e=>{if(c){let e=q();Ln(e[e.length-1])}else F?.portalNode&&(I.current=!1,An(e,F.portalNode)?Dn(y)?.focus():nt(p??F.beforeOutsideRef)?.focus())}}),n,de&&(0,We.jsx)(zt,{"data-type":`inside`,ref:ie,onFocus:e=>{c?Ln(q()[0]):F?.portalNode&&(l&&(I.current=!0),An(e,F.portalNode)?On(y)?.focus():nt(f??F.afterOutsideRef)?.focus())}})]})}function Sr(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=V}=t,l=e.context.dataRef,u=X.useRef(void 0),d=et(),f=gt(),p=X.useMemo(()=>{function t(t,n,r,i){let a=ne(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=_e(e.pointerType,!0)&&be(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||_e(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=ee(s),p=an(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:_e(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 X.useMemo(()=>n?{reference:p}:S,[n,p])}function Cr(){return!1}function wr(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Tr(e,t={}){let{enabled:n=!0,escapeKey:i=!0,outsidePress:a=!0,outsidePressEvent:o=`sloppy`,referencePress:c=Cr,bubbles:l,externalTree:p}=t,m=e.useState(`open`),h=e.useState(`floatingElement`),{dataRef:g,events:y}=e.context,b=lr(p),x=_(typeof a==`function`?a:()=>!1),S=typeof a==`function`?x:a,C=S!==!1,w=_(()=>o),{escapeKey:T,outsidePress:E}=wr(l),D=X.useRef(!1),O=X.useRef(!1),k=X.useRef(!1),A=X.useRef(!1),j=X.useRef(!1),M=X.useRef(``),N=X.useRef(null),P=gt(),F=gt(),I=gt(),L=_(()=>{F.clear(),g.current.insideReactTree=!1}),R=_(e=>{let t=g.current.floatingContext?.nodeId;return(b?Nn(b.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),z=_(t=>nn(t,e.select(`floatingElement`))||nn(t,e.select(`domReferenceElement`))),B=_(t=>{c()&&e.setOpen(!1,ne(V,t.nativeEvent))}),te=_(t=>{if(!m||!n||!i||t.key!==`Escape`)return;let r=Ae(t)?t.nativeEvent:t;if(j.current||r.isComposing||!T&&R(`__escapeKeyBubbles`))return;let a=ne(Re,r);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!T&&!a.isPropagationAllowed&&t.stopPropagation()}),H=_(()=>{g.current.insideReactTree=!0,F.start(0,L)}),U=_(t=>{if(!m||!n||t.button!==0)return;let r=ee(t.nativeEvent);G(e.select(`floatingElement`),r)&&(D.current||(D.current=!0,O.current=!1))}),re=_(e=>{m&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&D.current&&(O.current=!0)});X.useEffect(()=>{function e(e){e.open||(A.current=!1)}return y.on(`openchange`,e),()=>{y.off(`openchange`,e)}},[y]),X.useEffect(()=>L,[L]),X.useEffect(()=>{if(!m||!n)return m||(A.current=!1,j.current=!1,M.current=``,N.current=null),L;g.current.__escapeKeyBubbles=T,g.current.__outsidePressBubbles=E;let t=new ht,a=Z(h);function o(){I.clear(),j.current=!0}function c(){j.current=!0,I.start(It?5:0,()=>{j.current=!1})}function l(){k.current=!0,t.start(0,()=>{k.current=!1})}function p(){D.current=!1,O.current=!1}function _(){let e=M.current,t=e===`pen`||!e?`mouse`:e,n=w(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function y(e){let t=_();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function x(e){let t=g.current.floatingContext?.nodeId,n=b&&Nn(b.nodesRef.current,t).some(t=>nn(e,t.context?.elements.floating));return z(e)||n}function F(n){if(y(n)){n.type!==`click`&&!z(n)&&(t.clear(),k.current=!1),L();return}if(g.current.insideReactTree){L();return}let i=ee(n),a=`[${Fn(`inert`)}]`,o=s(i)?i.getRootNode():null,c=Array.from((r(o)?o:Z(e.select(`floatingElement`))).querySelectorAll(a)),l=e.context.triggerElements;if(i&&(l.hasElement(i)||l.hasMatchingElement(e=>G(e,i))))return;let p=s(i)?i:null;for(;p&&!d(p);){let e=f(p);if(d(e)||!s(e))break;p=e}if(!(c.length&&s(i)&&!rn(i)&&!G(i,e.select(`floatingElement`))&&c.every(e=>!G(p,e)))){if(u(i)&&!(`touches`in n)){let e=d(i),t=v(i),r=/auto|scroll/,a=e||r.test(t.overflowX),o=e||r.test(t.overflowY),s=a&&i.clientWidth>0&&i.scrollWidth>i.clientWidth,c=o&&i.clientHeight>0&&i.scrollHeight>i.clientHeight,l=t.direction===`rtl`,u=c&&(l?n.offsetX<=i.offsetWidth-i.clientWidth:n.offsetX>i.clientWidth),f=s&&n.offsetY>i.clientHeight;if(u||f)return}if(!x(n)){if(_()===`intentional`){if(n.detail!==0&&!De(n)&&!A.current)return;if(k.current){t.clear(),k.current=!1;return}}typeof S==`function`&&!S(n)||R(`__outsidePressBubbles`)||(e.setOpen(!1,ne(Se,n)),L())}}}function B(t){_()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!z(t)&&F(t)}function V(t){if(_()!==`sloppy`||!e.select(`open`)||!n||z(t))return;let r=t.touches[0];r&&(N.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},P.start(1e3,()=>{N.current&&(N.current.dismissOnTouchEnd=!1,N.current.dismissOnMouseDown=!1)}))}function H(e,t){let n=ee(e);if(!n)return;let r=$(n,e.type,()=>{t(e),r()})}function U(e){M.current=`touch`,H(e,V)}function re(e){P.clear(),e.type===`pointerdown`&&(e.button===0&&(A.current=!0),M.current=e.pointerType),(e.type!==`mousedown`||!N.current||N.current.dismissOnMouseDown)&&H(e,e=>{e.type===`pointerdown`?B(e):F(e)})}function ie(e){if(e.type===`pointercancel`&&(A.current=!1),!D.current)return;let n=O.current;p(),_()===`intentional`&&(e.type===`pointercancel`?n&&l():x(e)||(n?l():(typeof S!=`function`||S(e))&&(t.clear(),k.current=!0,L())))}function W(e){if(_()!==`sloppy`||!N.current||z(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-N.current.startX),r=Math.abs(t.clientY-N.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(N.current.dismissOnTouchEnd=!0),i>10&&(F(e),P.clear(),N.current=null)}function ae(e){H(e,W)}function oe(e){_()===`sloppy`&&N.current&&!z(e)&&(N.current.dismissOnTouchEnd&&F(e),P.clear(),N.current=null)}function se(e){H(e,oe)}let ce=Ft(i&&Ft($(a,`keydown`,te),$(a,`compositionstart`,o),$(a,`compositionend`,c)),C&&Ft($(a,`click`,re,!0),$(a,`pointerdown`,re,!0),$(a,`pointerup`,ie,!0),$(a,`pointercancel`,ie,!0),$(a,`mousedown`,re,!0),$(a,`mouseup`,ie,!0),$(a,`touchstart`,U,{capture:!0,passive:!0}),$(a,`touchmove`,ae,{capture:!0,passive:!0}),$(a,`touchend`,se,{capture:!0,passive:!0})));return()=>{ce(),t.clear(),p(),k.current=!1}},[g,h,i,C,S,m,n,T,E,te,L,w,R,z,b,e,P,I]);let ie=X.useMemo(()=>({onKeyDown:te,onPointerDown:B,onClick:B}),[te,B]),W=X.useMemo(()=>({onKeyDown:te,onPointerDown:re,onMouseDown:re,onClickCapture:H,onMouseDownCapture(e){H(),U(e)},onPointerDownCapture(e){H(),U(e)},onMouseUpCapture:H,onTouchEndCapture:H,onTouchMoveCapture:H}),[te,H,U,re]);return X.useMemo(()=>n?{reference:ie,floating:W,trigger:ie}:{},[n,ie,W])}function Er(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=_(i),{mounted:c,setMounted:l,transitionStatus:u}=pt(t,!1,!1,o),d=!t&&r;M(()=>{t&&s(!1)},[t,s]);let f=X.useRef(c),p=X.useRef(!1),m=de(),h=()=>{f.current=!1,l(!1),a()};M(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=_(()=>{f.current&&(t?(p.current=!0,m()):h())});return lt({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var Dr={tabIndex:-1,[ze]:``};function Or({handle:e,store:t}){return M(()=>e.attachStore(t),[e,t]),null}function kr(e){let t=e.context.triggerElements.size;e.select(`open`)&&e.state.triggerCount!==t&&e.set(`triggerCount`,t)}function Ar(e,t){let n=X.useRef(null);return _(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),kr(a))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),kr(t))})}function jr(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 Mr(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Nr(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=Ar(e,n),o=_(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=_(e=>{a(e),e&&o(e)});return M(()=>(s(t.current),()=>s(null)),[s,t,n,e]),M(()=>{if(i){let e={activeTriggerElement:t.current,...r};n.update(e)}},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function Pr(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=X.useRef(null),i=e.useState(`open`),a=e.useState(`triggerCount`),o=e.useState(`activeTriggerId`),s=e.useState(`activeTriggerElement`);M(()=>{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=ne(F);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,a,o,s,n])}function Fr(e,t,n,r){let{mounted:a,transitionStatus:o,forceUnmount:s}=Er({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 i(()=>(t.set(`mounted`,a),null)),t.useSyncedValues({mounted:a,transitionStatus:o}),{forceUnmount:s,transitionStatus:o}}function Ir(e,t){e.useSyncedValues(t),M(()=>()=>{e.update({activeTriggerProps:S,inactiveTriggerProps:S,popupProps:S})},[e])}var Lr=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}},Rr={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},zr=class extends Pt{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:ir(),nested:n,triggerElements:i},Rr),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&he(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 Br(e){return It&&e.movementX===0&&e.movementY===0}function Vr(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Hr(e,t){return Vr(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Ur(e,t,n){return Vr(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function Wr(e,t,n){return Vr(t,n?e===Ie:e===Be,e===fe)}function Gr(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:Vr(t,n?e===Be:e===Ie,e===pe)}function Kr(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:d=!1,virtual:f=!1,focusItemOnOpen:p=`auto`,focusItemOnHover:m=!0,openOnArrowKeyDown:h=!0,disabledIndices:g=void 0,orientation:v=`vertical`,triggerOrientation:y=v,parentOrientation:b,id:x,resetOnPointerLeave:S=!0,externalTree:C,nestedReturnFocusRef:w,grid:T}=t,E=T!=null,D=e.useState(`open`),O=e.useState(`floatingElement`),k=e.useState(`domReferenceElement`),A=e.context.dataRef,j=ln(O),N=sn(k),P=Q(j),F=cr(),I=lr(C),z=X.useRef(p),B=X.useRef(o??-1),V=X.useRef(null),H=X.useRef(!0),U=_(e=>{i(B.current===-1?null:B.current,e)}),re=X.useRef(!!O),ie=X.useRef(D),W=X.useRef(!1),ae=X.useRef(!1),se=X.useRef(null),ce=Q(g),q=Q(D),J=Q(o),ue=Q(S),de=et(),fe=et(),Y=_(()=>{de.cancel();function e(e){f||(se.current=Ln(e,{sync:W.current,preventScroll:!0}))}let t=n.current[B.current],r=ae.current;t&&e(t),(W.current?e=>e():e=>de.request(e))(()=>{let i=n.current[B.current]||t;i&&(t||e(i),ve&&(r||!H.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});M(()=>{A.current.orientation=v},[A,v]),M(()=>{D||(V.current=null),D&&p===`auto`||(z.current=p)},[D,p]),M(()=>{a&&(D&&O?(B.current=o??-1,z.current&&o!=null&&(ae.current=!0,U())):re.current&&(B.current=-1,U()))},[a,D,O,o,U]),M(()=>{if(a){if(!D)W.current=!1;else if(O){if(r==null){if(W.current=!1,J.current!=null)return;if(re.current&&(B.current=-1,Y()),(!ie.current||!re.current)&&z.current&&(V.current!=null||z.current===!0&&V.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>fe.request(e):queueMicrotask)(t),e+=1):(B.current=V.current==null||Ur(V.current,y,d)||l?le(n):L(n),V.current=null,U())};t()}}else K(n.current,r)||(B.current=r,Y(),ae.current=!1)}}},[a,D,O,r,J,l,n,y,d,U,Y,fe]),M(()=>{if(!a||O||!I||f||!re.current)return;let e=I.nodesRef.current,t=e.find(e=>e.id===F)?.context?.elements.floating,n=R(Z(k??t??null)),r=e.some(e=>e.context&&G(e.context.elements.floating,n));t&&!r&&H.current&&t.focus({preventScroll:!0})},[a,O,k,I,F,f]),M(()=>{ie.current=D,re.current=!!O});let pe=r!=null,me=_(e=>{if(!q.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(B.current!==t||r!==t)&&(B.current=t,U(e))}),he=_(()=>b??I?.nodesRef.current.find(e=>e.id===F)?.context?.dataRef?.current.orientation),ge=_(()=>le(n,ce.current)),_e=_(t=>{if(H.current=!1,W.current=!0,t.which===229||!q.current&&t.currentTarget===P.current)return;if(l&&Gr(t.key,v,d,E)){Hr(t.key,he())||ye(t),e.setOpen(!1,ne(Ce,t.nativeEvent));let n=w?.current??k;u(n)&&n.focus();return}r!=null&&r!==B.current&&!K(n.current,r)&&(B.current=r);let i=B.current,a=le(n,g),o=L(n,g);if(N||(t.key===`Home`&&(ye(t),B.current=a,U(t)),t.key===`End`&&(ye(t),B.current=o,U(t))),T!=null){let e=T(t,B.current,n,v,c,d,g,a,o);if(e!=null&&e!==B.current&&(B.current=e,U(t)),v===`both`)return}if(Hr(t.key,v)){ye(t);let e=R(t.currentTarget.ownerDocument);if(D&&!f&&G(t.currentTarget,e)&&!n.current.some(t=>t!=null&&G(t,e))){B.current=Ur(t.key,v,d)?a:o,U(t),r===B.current&&Y();return}let{index:l,wrapped:u}=te(n.current,i,{decrement:!Ur(t.key,v,d),loopFocus:c,allowEscape:s,disabledIndices:g,minIndex:a,maxIndex:o});u&&(W.current=!1),B.current=l,U(t)}}),ve=X.useMemo(()=>({onFocus(e){W.current=!0,me(e)},onClick({currentTarget:e}){f||e.focus({preventScroll:!0})},onMouseMove(e){Br(e)||(W.current=!0,ae.current=!1,m&&me(e))},onPointerLeave(e){if(!q.current||!H.current||e.pointerType===`touch`)return;W.current=!0;let t=e.relatedTarget;if(m&&!n.current.includes(t)&&ue.current&&(se.current?.(),se.current=null,B.current=-1,U(e),!f)){let e=P.current,t=R(Z(e));e&&G(e,t)&&e.focus({preventScroll:!0})}}}),[me,q,P,m,n,U,ue,f]),xe=X.useMemo(()=>f&&D&&pe&&{"aria-activedescendant":`${x}-${r}`},[f,D,pe,x,r]),Se=X.useMemo(()=>({...N?{}:xe,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&D&&!f){let n=ee(t.nativeEvent);if(n&&!G(P.current,n))return;ye(t);let r=ne(oe,t.nativeEvent);e.setOpen(!1,r);let i=w?.current??k;!r.isCanceled&&u(i)&&i.focus()}else _e(t)},onPointerMove(e){Br(e)||(H.current=!0)}}),[xe,_e,P,N,e,D,f,k,w]),we=X.useMemo(()=>{function t(t){e.setOpen(!0,ne(Ce,t.nativeEvent,t.currentTarget))}function n(e){p===`auto`&&De(e.nativeEvent)&&(z.current=!f)}function r(e){z.current=p,p===`auto`&&be(e.nativeEvent)&&(z.current=!0)}return{onKeyDown(n){let r=e.select(`open`);H.current=!1;let i=n.key.startsWith(`Arrow`),a=Wr(n.key,he(),d),o=Hr(n.key,r?v:y),s=(l?a:o)||n.key===`Enter`||n.key.trim()===``;if(f&&r&&(!l||an(n.currentTarget)))return _e(n);if(r||h||!i){if(s){let e=Hr(n.key,he());V.current=l&&e?null:n.key}l?a&&(ye(n),r?(B.current=ge(),U(n),f&&P.current?.focus()):t(n)):o&&(J.current!=null&&(B.current=J.current),ye(n),!r&&h?t(n):_e(n),r&&U(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!f&&(B.current=-1,U(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[_e,p,ge,l,U,e,h,v,y,he,d,J,f,P]),Te=X.useMemo(()=>({...xe,...we}),[xe,we]);return X.useMemo(()=>a?{reference:Te,floating:Se,item:ve,trigger:we}:{},[a,Te,Se,we,ve])}function qr(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=_(s),f=e.useState(`open`),p=gt(),m=X.useRef(``),h=X.useRef(u??i??-1),g=X.useRef(null),v=_(e=>{function t(e){return r?.current[e]}function s(e){let n=t(e);return n&&!ce(n)||n?.matches(`:disabled`)?!1:o==null||!B(j,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===` `&&(ye(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!==` `&&(ye(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)}),y=_(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);G(r,n)||G(i,n)||(p.clear(),m.current=``,h.current=g.current,d?.(!1))});M(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``,d?.(!1)))},[f,u,p,d]);let b=X.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]);return X.useMemo(()=>c?{reference:b,floating:b}:{},[c,b])}function Jr(e,t,n){let{reference:r,floating:i}=e,a=ke(t),o=ue(t),s=P(o),c=Y(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=q(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Yr(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}=H(t,e),p=xe(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Te(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=Te(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 Xr=50,Zr=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Yr},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Jr(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<Xr&&(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}=Jr(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Qr=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}=H(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Y(r),_=ke(o),v=Y(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Me(o)]:ge(o)),x=p!==`none`;!d&&x&&b.push(...Oe(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=ae(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`||_===ke(t)||T.every(e=>ke(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=ke(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{}}}},$r=new Set([`left`,`top`]);async function ei(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Y(n),s=q(n),c=ke(n)===`y`,l=$r.has(o)?-1:1,u=a&&c?-1:1,d=H(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 ti=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 ei(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}}}}},ni=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}=H(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ke(i),p=Pe(f),m=u[p],h=u[f],g=(e,t)=>U(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}}}}}},ri=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}=H(e,t),u={x:n,y:r},d=ke(i),f=Pe(d),p=u[f],m=u[d],h=H(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=$r.has(Y(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}}}},ii=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}=H(e,t),c=await i.detectOverflow(t,s),l=Y(n),u=q(n),d=ke(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=me(p-c[m],g),y=me(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*Ne(c.left,c.right):S=p-2*Ne(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 ai(e){let t=v(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=u(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Fe(n)!==a||Fe(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function oi(e){return s(e)?e:e.contextElement}function si(e){let t=oi(e);if(!u(t))return je(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ai(t),o=(a?Fe(n.width):n.width)/r,s=(a?Fe(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var ci=je(0);function li(e){let t=p(e);return!y()||!t.visualViewport?ci:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ui(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===p(e)}function di(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=oi(e),o=je(1);t&&(r?s(r)&&(o=si(r)):o=si(e));let c=ui(a,n,r)?li(a):je(0),l=(i.left+c.x)/o.x,u=(i.top+c.y)/o.y,d=i.width/o.x,f=i.height/o.y;if(a&&r){let e=p(a),t=s(r)?p(r):r,n=e,i=m(n);for(;i&&t!==n;){let e=si(i),t=i.getBoundingClientRect(),r=v(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=a,u+=o,n=p(i),i=m(n)}}return Te({width:d,height:f,x:l,y:u})}function fi(e,n){let r=t(e).scrollLeft;return n?n.left+r:di(a(e)).left+r}function pi(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-fi(e,n),y:n.top+t.scrollTop}}function mi(e){let{elements:n,rect:r,offsetParent:i,strategy:o}=e,s=o===`fixed`,c=a(i),d=n?l(n.floating):!1;if(i===c||d&&s)return r;let f={scrollLeft:0,scrollTop:0},p=je(1),m=je(0),h=u(i);if((h||!s)&&((E(i)!==`body`||N(c))&&(f=t(i)),h)){let e=di(i);p=si(i),m.x=e.x+i.clientLeft,m.y=e.y+i.clientTop}let g=c&&!h&&!s?pi(c,f):je(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-f.scrollLeft*p.x+m.x+g.x,y:r.y*p.y-f.scrollTop*p.y+m.y+g.y}}function hi(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function gi(e){let n=t(e),r=e.ownerDocument.body,i=Ne(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=Ne(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+fi(e),s=-n.scrollTop;return v(r).direction===`rtl`&&(o+=Ne(e.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var _i=25;function vi(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=p(e),o=a(e),s=i.visualViewport,c=o.clientWidth,l=o.clientHeight,u=0,d=0;if(s){let e=!y()||t===`fixed`;r?e||(u=-s.offsetLeft,d=-s.offsetTop):(c=s.width,l=s.height,e&&(u=s.offsetLeft,d=s.offsetTop))}if(fi(o)<=0){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r),a=getComputedStyle(o).scrollbarGutter===`stable both-edges`?i/2:i;a<=_i&&(c-=a)}return{width:c,height:l,x:u,y:d}}function yi(e,t){let n=di(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=si(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function bi(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=vi(e,n,t);else if(t===`document`)r=gi(a(e));else if(s(t))r=yi(t,n);else{let n=li(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Te(r)}function xi(e,t){let n=t.get(e);if(n)return n;let r=w(e,[],!1).filter(e=>s(e)&&E(e)!==`body`),i=null,a=v(e).position===`fixed`,o=a?f(e):e;for(;s(o)&&!d(o);){let e=v(o),t=h(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=f(o)}return t.set(e,r),r}function Si(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?l(t)?[]:xi(t,this._c):[].concat(n),r],o=bi(t,a[0],i),s=o.top,c=o.right,u=o.bottom,d=o.left;for(let e=1;e<a.length;e++){let n=bi(t,a[e],i);s=Ne(n.top,s),c=me(n.right,c),u=me(n.bottom,u),d=Ne(n.left,d)}return{width:c-d,height:u-s,x:d,y:s}}function Ci(e){let{width:t,height:n}=ai(e);return{width:t,height:n}}function wi(e,n,r){let i=u(n),o=a(n),s=r===`fixed`,c=di(e,!0,s,n),l={scrollLeft:0,scrollTop:0},d=je(0);if((i||!s)&&((E(n)!==`body`||N(o))&&(l=t(n)),i)){let e=di(n,!0,s,n);d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}!i&&o&&(d.x=fi(o));let f=o&&!i&&!s?pi(o,l):je(0);return{x:c.left+l.scrollLeft-d.x-f.x,y:c.top+l.scrollTop-d.y-f.y,width:c.width,height:c.height}}function Ti(e){return v(e).position===`static`}function Ei(e,t){if(!u(e)||v(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return a(e)===n&&(n=n.ownerDocument.body),n}function Di(e,t){let n=p(e);if(l(e))return n;if(!u(e)){let t=f(e);for(;t&&!d(t);){if(s(t)&&!Ti(t))return t;t=f(t)}return n}let r=Ei(e,t);for(;r&&b(r)&&Ti(r);)r=Ei(r,t);return r&&d(r)&&Ti(r)&&!h(r)?n:r||o(e)||n}var Oi=async function(e){let t=this.getOffsetParent||Di,n=this.getDimensions,r=await n(e.floating);return{reference:wi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ki(e){return v(e).direction===`rtl`}var Ai={convertOffsetParentRelativeRectToViewportRelativeRect:mi,getDocumentElement:a,getClippingRect:Si,getOffsetParent:Di,getElementRects:Oi,getClientRects:hi,getDimensions:Ci,getScale:si,isElement:s,isRTL:ki};function ji(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Mi(e,t,n){let r=null,i,o=a(e);function s(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function c(n,a){n===void 0&&(n=!1),a===void 0&&(a=1),s();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=J(d),h=J(o.clientWidth-(u+f)),g=J(o.clientHeight-(d+p)),_=J(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Ne(0,me(1,a))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!ji(l,e.getBoundingClientRect()))return c();if(n!==a){if(!y)return c();n?c(!1,n):i=setTimeout(()=>{c(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:o.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let l=p(e),u=()=>c(n);return l.addEventListener(`resize`,u),c(!0),()=>{l.removeEventListener(`resize`,u),s()}}function Ni(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=oi(e),u=i||a?[...l?w(l):[],...t?w(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Mi(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?di(e):null;c&&g();function g(){let t=di(e);h&&!ji(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 Pi=ti,Fi=ni,Ii=Qr,Li=ii,Ri=ri,zi=(e,t,n)=>{let r=new Map,i=n??{},a={...Ai,...i.platform,_c:r};return Zr(e,t,{...i,platform:a})},Bi=typeof document<`u`?X.useLayoutEffect:function(){};function Vi(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(!Vi(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)&&!Vi(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Hi(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ui(e,t){let n=Hi(e);return Math.round(t*n)/n}function Wi(e){let t=X.useRef(e);return Bi(()=>{t.current=e}),t}function Gi(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]=X.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=X.useState(r);Vi(f,r)||p(r);let[m,h]=X.useState(null),[g,_]=X.useState(null),v=X.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=X.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=X.useRef(null),C=X.useRef(null),w=X.useRef(u),T=c!=null,E=Wi(c),D=Wi(i),O=Wi(l),k=X.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),zi(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Vi(w.current,t)&&(w.current=t,tt.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Bi(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=X.useRef(!1);Bi(()=>(A.current=!0,()=>{A.current=!1}),[]),Bi(()=>{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=X.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=X.useMemo(()=>({reference:b,floating:x}),[b,x]),N=X.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Ui(M.floating,u.x),r=Ui(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Hi(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return X.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Ki=(e,t)=>{let n=Pi(e);return{name:n.name,fn:n.fn,options:[e,t]}},qi=(e,t)=>{let n=Fi(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ji=(e,t)=>({fn:Ri(e).fn,options:[e,t]}),Yi=(e,t)=>{let n=Ii(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xi=(e,t)=>{let n=Li(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Zi(e){return e==null?F:e.type.startsWith(`key`)?W:e.type.startsWith(`mouse`)||e.type.startsWith(`pointer`)?re:F}function Qi(e){let t=X.useRef(``),n=X.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:X.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 $i(e,t){let n=X.useRef(e),r=_(t);M(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function ea(e,t){let{onClick:n,onPointerDown:r}=Qi(_((n,r)=>{(typeof e==`function`?e():e)||t(r||(I?`touch`:``))}));return X.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function ta(e){let[t,n]=X.useState(null),r=ea(e,n);return $i(e,t=>{t&&!e&&n(null)}),X.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var na=5;function ra(e,t){let n=ia(t);return e.clientX>=n.left-na&&e.clientX<=n.right+na&&e.clientY>=n.top-na&&e.clientY<=n.bottom+na}function ia(e){let t=e.getBoundingClientRect(),n=p(e);if(z)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 aa(e){return k(19)?e:e?`true`:void 0}function oa(e){let{nodeId:t,externalTree:n,rootContext:r}=e,i=r.useState(`referenceElement`),a=r.useState(`floatingElement`),o=r.useState(`domReferenceElement`),c=r.useState(`open`),l=r.useState(`floatingId`),[u,d]=X.useState(null),f=X.useRef(null),p=lr(n),m=X.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),h=Gi({...e,elements:{...m,...u&&{reference:u}}}),g=X.useCallback(e=>{let t=s(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),h.refs.setReference(t)},[h.refs]),_=X.useMemo(()=>({...h.refs,setPositionReference:g,domReference:f}),[h.refs,g]),v=X.useMemo(()=>({...h.elements,domReference:o}),[h.elements,o]),y=X.useMemo(()=>({...h,dataRef:r.context.dataRef,open:c,onOpenChange:r.setOpen,events:r.context.events,floatingId:l,refs:_,elements:v,nodeId:t,rootStore:r}),[h,_,v,t,r,c,l]);return M(()=>{o&&(f.current=o)},[o]),M(()=>{r.context.dataRef.current.floatingContext=y;let e=p?.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),X.useMemo(()=>({...h,context:y,refs:_,elements:v,rootStore:r}),[h,_,v,y,r])}var sa=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}=H(e,t)||{};if(l==null)return{};let d=xe(u),f={x:n,y:r},p=ue(i),m=P(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=U(D,k,O),j=!c.arrow&&q(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}}}),ca=(e,t)=>{let{name:n,fn:r}=sa(e);return{name:n,fn:r,options:[e,t]}},la={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}}}},ua={sideX:`left`,sideY:`top`},da=`--available-width`,fa=`--available-height`,pa=`--anchor-width`,ma=`--anchor-height`,ha=`--transform-origin`,ga=da,_a=fa;function va(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 ya(e,t,n){let{rects:r,placement:i}=e;return{side:va(t,Y(i),n),align:q(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function ba(e){return xa(e,oa)}function xa(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:m,keepMounted:h=!1,floatingRootContext:g,mounted:v,collisionAvoidance:y,shift:b,nodeId:x,adaptiveOrigin:S,lazyFlip:C=!1,externalTree:w}=e,T=y.side||`flip`,E=y.align||`flip`,D=y.fallbackAxisSide||`end`,O=b?.crossAxis??!1,k=b?.rootBoundary,A=typeof n==`function`?n:void 0,j=_(A),N=A?j:n,P=Q(n),F=Q(v),I=Ee()===`rtl`,[L,R]=X.useState(null);!v&&L!==null&&R(null);let z=C===`placement`,ee=L?Y(L):null,B=L&&z?q(L)||`center`:null,te=ee||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":I?`left`:`right`,"inline-start":I?`right`:`left`}[i],V=B||o,H=V===`center`?te:`${te}-${V}`,U=l;typeof U==`number`?U={top:U,right:U,bottom:U,left:U}:U&&={top:U.top||0,right:U.right||0,bottom:U.bottom||0,left:U.left||0};let ne=+(i===`bottom`),re=+(i===`top`),ie=+(i===`right`),W=+(i===`left`),ae={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:U},oe=X.useRef(null),se=Q(a),G=Q(s),ce=typeof a==`function`?0:a,le=typeof s==`function`?0:s,K=[];m&&K.push(m),K.push(Ki(e=>{let t=ya(e,i,I),n=typeof se.current==`function`?se.current(t):se.current,r=typeof G.current==`function`?G.current(t):G.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[ce,le,I,i]));let J=E===`none`&&T!==`shift`,ue=!J&&(u||O||T===`shift`),de=T===`none`?null:Yi({...ae,padding:{top:U.top+1+ne,right:U.right+1+W,bottom:U.bottom+1+re,left:U.left+1+ie},mainAxis:!O&&T===`flip`,crossAxis:E===`flip`&&`alignment`,fallbackAxisSideDirection:D}),fe=J?null:qi({...ae,rootBoundary:k,mainAxis:E!==`none`,crossAxis:ue,limiter:u||O?void 0:Ji(e=>{if(!oe.current)return{};let{width:t,height:n}=oe.current.getBoundingClientRect(),r=ke(Y(e.placement)),i=r===`y`?t:n,a=r===`y`?U.left+U.right:U.top+U.bottom;return{offset:i/2+a/2}})},[ae,u,O,k,U,E]);T===`shift`||E===`shift`||V===`center`?K.push(fe,de):K.push(de,fe),K.push(Xi({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!F.current)return;let i=e.style;i.setProperty(ga,`${t}px`),i.setProperty(_a,`${n}px`);let a=p(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(pa,`${u}px`),i.setProperty(ma,`${d}px`)}}),ca(e=>({element:oe.current||Z(e.elements.floating).createElement(`div`),padding:oe.current?d:0}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=Y(r),u=q(r),d=ke(l)===`y`,f=oe.current,p=typeof a==`function`?a(ya(e,i,I)):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 ue&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(ha,d?`${m} ${h}`:`${h} ${m}`),{}}},la,S),M(()=>{!v&&g&&g.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[v,g]);let pe=X.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:me,elements:he,x:ge,y:_e,middlewareData:ve,update:ye,placement:be,context:xe,isPositioned:Se,floatingStyles:Ce}=t({rootContext:g,open:h?v:void 0,placement:H,middleware:K,strategy:r,whileElementsMounted:h?void 0:(...e)=>Ni(...e,pe),nodeId:x,externalTree:w}),{sideX:we,sideY:Te}=ve.adaptiveOrigin||ua,De=Se?r:`fixed`,Oe=X.useMemo(()=>{let e;return e=Se?S?{position:De,[we]:ge,[Te]:_e}:{...Ce,position:De}:{position:De,top:0,left:0},e[ga]=`100vw`,e[_a]=`100vh`,Se||(e.opacity=0),e},[S,De,we,ge,Te,_e,Ce,Se]),Ae=X.useRef(null);M(()=>{if(!v)return;let e=P.current,t=typeof e==`function`?e():e,n=(Sa(t)?t.current:t)||null;n!==Ae.current&&(me.setPositionReference(n),Ae.current=n)},[v,me,N,P]),X.useEffect(()=>{if(!v)return;let e=P.current;typeof e!=`function`&&Sa(e)&&e.current!==Ae.current&&(me.setPositionReference(e.current),Ae.current=e.current)},[v,me,N,P]),X.useEffect(()=>{if(h&&v&&he.reference&&he.floating)return Ni(he.reference,he.floating,ye,pe)},[h,v,he,ye,pe]);let je=Y(be),Me=va(i,je,I),Ne=q(be)||`center`,Pe=!!ve.hide?.referenceHidden;M(()=>{C&&v&&Se&&(je!==te||z&&Ne!==V)&&R(be)},[C,z,v,Se,be,je,Ne,te,V]);let Fe=X.useMemo(()=>({position:`absolute`,top:ve.arrow?.y,left:ve.arrow?.x}),[ve.arrow]),Ie=ve.arrow?.centerOffset!==0;return X.useMemo(()=>({positionerStyles:Oe,arrowStyles:Fe,arrowRef:oe,arrowUncentered:Ie,side:Me,align:Ne,physicalSide:je,anchorHidden:Pe,refs:me,context:xe,isPositioned:Se,update:ye}),[Oe,Fe,oe,Ie,Me,Ne,je,Pe,me,xe,Se,ye])}function Sa(e){return e!=null&&`current`in e}var Ca=X.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,We.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function wa(e){return e===`starting`?Yn:S}function Ta(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),D(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},wa(r),i],stateAttributesMapping:Qt})}var Ea={},Da={},Oa=``;function ka(e,t){return N(e)?e:t}function Aa(e,t,n){return/hidden|clip/.test(e.getComputedStyle(ka(t,n)).overflowY)}function ja(e){if(typeof document>`u`)return!1;let t=Z(e);return p(t).innerWidth-t.documentElement.clientWidth>0}function Ma(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Z(e),n=t.documentElement,r=t.body,i=ka(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 Na(e){let t=Z(e),n=t.documentElement,r=t.body,i=ka(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 Pa(e){let t=Z(e),n=t.documentElement,r=t.body,i=p(n),a=0,o=0,s=!1,c=$e.create();if(It&&(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,Ea={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Oa=n.style.scrollBehavior,Da={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=ka(n,r);s=Ma(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,Ea),Object.assign(r.style,Da),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Oa)}function d(){u(),c.request(l)}l();let f=$(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Fa=new class{lockCount=0;restore=null;timeoutLock=ht.create();timeoutUnlock=ht.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=Z(e),n=t.documentElement,r=t.body,i=p(n);if(Aa(i,n,r)){let t=new i.MutationObserver(()=>{Aa(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=I||!ja(e);this.restore=a?Na(e):Pa(e)}};function Ia(e=!0,t=null){M(()=>{if(e)return Fa.acquire(t)},[e,t])}var La=20;function Ra(e,t,n,r){let[i,a]=X.useState(!1);M(()=>{if(!e||!t||n==null){a(!1);return}let r=Z(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-La)},[e,t,n]),Ia(e&&(!t||i),r)}var za=`/assets/icon-dark-D9-64csD.svg`;export{It as $,ur as A,An as B,Nr as C,xr as D,Sr as E,Xn as F,Qt as G,tn as H,Zn as I,Xt as J,$t as K,Fn as L,lr as M,ar as N,dr as O,rr as P,Lt as Q,Nn as R,Ir as S,Tr as T,an as U,on as V,cn as W,Wt as X,Ut as Y,zt as Z,Or as _,Ca as a,yt as at,Pr as b,ra as c,ht as ct,Zi as d,ft as dt,Ft as et,qr as f,lt as ft,Dr as g,Z as gt,Lr as h,Ye as ht,wa as i,Et as it,cr as j,fr as k,ta as l,gt as lt,zr as m,Xe as mt,Ra as n,Pt as nt,ba as o,bt as ot,Kr as p,ct as pt,Zt as q,Ta as r,Tt as rt,aa as s,Q as st,za as t,$ as tt,$i as u,pt as ut,Mr as v,Er as w,Fr as x,jr as y,kn as z};