import{H as ft,I as mt,aD as Pe,r as o,M as L,j as r,aE as ht,P as j,O as N,az as z,bf as Re,aF as gt,aH as vt,aG as xt,ar as St,aI as wt,aJ as yt,aK as Ct,Q as Ie,aL as It,bg as Tt,ay as bt,N as Nt,K as be,aN as Pt,aM as Rt,U as G,aT as Et}from"./index-CxGMQRP8.js";import{u as _t}from"./index--5Yx_EdU.js";import{C as Ee}from"./chevron-down-YGZc8BN1.js";import{C as jt}from"./chevron-up-BypMSWa2.js";function Ne(t,[n,e]){return Math.min(e,Math.max(n,t))}var Mt=[" ","Enter","ArrowUp","ArrowDown"],Ot=[" ","Enter"],se="Select",[ie,de,At]=ft(se),[te,mo]=mt(se,[At,Pe]),ue=Pe(),[Dt,Y]=te(se),[Lt,kt]=te(se),_e=t=>{const{__scopeSelect:n,children:e,open:l,defaultOpen:a,onOpenChange:u,value:s,defaultValue:c,onValueChange:i,dir:f,name:v,autoComplete:w,disabled:P,required:T,form:C}=t,d=ue(n),[h,x]=o.useState(null),[m,g]=o.useState(null),[U,M]=o.useState(!1),oe=Nt(f),[R=!1,A]=be({prop:l,defaultProp:a,onChange:u}),[W,X]=be({prop:s,defaultProp:c,onChange:i}),k=o.useRef(null),V=h?C||!!h.closest("form"):!0,[K,B]=o.useState(new Set),H=Array.from(K).map(E=>E.props.value).join(";");return r.jsx(Pt,{...d,children:r.jsxs(Dt,{required:T,scope:n,trigger:h,onTriggerChange:x,valueNode:m,onValueNodeChange:g,valueNodeHasChildren:U,onValueNodeHasChildrenChange:M,contentId:Ie(),value:W,onValueChange:X,open:R,onOpenChange:A,dir:oe,triggerPointerDownPosRef:k,disabled:P,children:[r.jsx(ie.Provider,{scope:n,children:r.jsx(Lt,{scope:t.__scopeSelect,onNativeOptionAdd:o.useCallback(E=>{B(D=>new Set(D).add(E))},[]),onNativeOptionRemove:o.useCallback(E=>{B(D=>{const F=new Set(D);return F.delete(E),F})},[]),children:e})}),V?r.jsxs(tt,{"aria-hidden":!0,required:T,tabIndex:-1,name:v,autoComplete:w,value:W,onChange:E=>X(E.target.value),disabled:P,form:C,children:[W===void 0?r.jsx("option",{value:""}):null,Array.from(K)]},H):null]})})};_e.displayName=se;var je="SelectTrigger",Me=o.forwardRef((t,n)=>{const{__scopeSelect:e,disabled:l=!1,...a}=t,u=ue(e),s=Y(je,e),c=s.disabled||l,i=L(n,s.onTriggerChange),f=de(e),v=o.useRef("touch"),[w,P,T]=ot(d=>{const h=f().filter(g=>!g.disabled),x=h.find(g=>g.value===s.value),m=nt(h,d,x);m!==void 0&&s.onValueChange(m.value)}),C=d=>{c||(s.onOpenChange(!0),T()),d&&(s.triggerPointerDownPosRef.current={x:Math.round(d.pageX),y:Math.round(d.pageY)})};return r.jsx(ht,{asChild:!0,...u,children:r.jsx(j.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":et(s.value)?"":void 0,...a,ref:i,onClick:N(a.onClick,d=>{d.currentTarget.focus(),v.current!=="mouse"&&C(d)}),onPointerDown:N(a.onPointerDown,d=>{v.current=d.pointerType;const h=d.target;h.hasPointerCapture(d.pointerId)&&h.releasePointerCapture(d.pointerId),d.button===0&&d.ctrlKey===!1&&d.pointerType==="mouse"&&(C(d),d.preventDefault())}),onKeyDown:N(a.onKeyDown,d=>{const h=w.current!=="";!(d.ctrlKey||d.altKey||d.metaKey)&&d.key.length===1&&P(d.key),!(h&&d.key===" ")&&Mt.includes(d.key)&&(C(),d.preventDefault())})})})});Me.displayName=je;var Oe="SelectValue",Ae=o.forwardRef((t,n)=>{const{__scopeSelect:e,className:l,style:a,children:u,placeholder:s="",...c}=t,i=Y(Oe,e),{onValueNodeHasChildrenChange:f}=i,v=u!==void 0,w=L(n,i.onValueNodeChange);return z(()=>{f(v)},[f,v]),r.jsx(j.span,{...c,ref:w,style:{pointerEvents:"none"},children:et(i.value)?r.jsx(r.Fragment,{children:s}):u})});Ae.displayName=Oe;var Vt="SelectIcon",De=o.forwardRef((t,n)=>{const{__scopeSelect:e,children:l,...a}=t;return r.jsx(j.span,{"aria-hidden":!0,...a,ref:n,children:l||"▼"})});De.displayName=Vt;var Bt="SelectPortal",Le=t=>r.jsx(Rt,{asChild:!0,...t});Le.displayName=Bt;var Q="SelectContent",ke=o.forwardRef((t,n)=>{const e=Y(Q,t.__scopeSelect),[l,a]=o.useState();if(z(()=>{a(new DocumentFragment)},[]),!e.open){const u=l;return u?Re.createPortal(r.jsx(Ve,{scope:t.__scopeSelect,children:r.jsx(ie.Slot,{scope:t.__scopeSelect,children:r.jsx("div",{children:t.children})})}),u):null}return r.jsx(Be,{...t,ref:n})});ke.displayName=Q;var O=10,[Ve,q]=te(Q),Ht="SelectContentImpl",Be=o.forwardRef((t,n)=>{const{__scopeSelect:e,position:l="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:u,onPointerDownOutside:s,side:c,sideOffset:i,align:f,alignOffset:v,arrowPadding:w,collisionBoundary:P,collisionPadding:T,sticky:C,hideWhenDetached:d,avoidCollisions:h,...x}=t,m=Y(Q,e),[g,U]=o.useState(null),[M,oe]=o.useState(null),R=L(n,p=>U(p)),[A,W]=o.useState(null),[X,k]=o.useState(null),V=de(e),[K,B]=o.useState(!1),H=o.useRef(!1);o.useEffect(()=>{if(g)return gt(g)},[g]),vt();const E=o.useCallback(p=>{const[I,..._]=V().map(b=>b.ref.current),[S]=_.slice(-1),y=document.activeElement;for(const b of p)if(b===y||(b?.scrollIntoView({block:"nearest"}),b===I&&M&&(M.scrollTop=0),b===S&&M&&(M.scrollTop=M.scrollHeight),b?.focus(),document.activeElement!==y))return},[V,M]),D=o.useCallback(()=>E([A,g]),[E,A,g]);o.useEffect(()=>{K&&D()},[K,D]);const{onOpenChange:F,triggerPointerDownPosRef:$}=m;o.useEffect(()=>{if(g){let p={x:0,y:0};const I=S=>{p={x:Math.abs(Math.round(S.pageX)-($.current?.x??0)),y:Math.abs(Math.round(S.pageY)-($.current?.y??0))}},_=S=>{p.x<=10&&p.y<=10?S.preventDefault():g.contains(S.target)||F(!1),document.removeEventListener("pointermove",I),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",I),document.addEventListener("pointerup",_,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",I),document.removeEventListener("pointerup",_,{capture:!0})}}},[g,F,$]),o.useEffect(()=>{const p=()=>F(!1);return window.addEventListener("blur",p),window.addEventListener("resize",p),()=>{window.removeEventListener("blur",p),window.removeEventListener("resize",p)}},[F]);const[pe,ae]=ot(p=>{const I=V().filter(y=>!y.disabled),_=I.find(y=>y.ref.current===document.activeElement),S=nt(I,p,_);S&&setTimeout(()=>S.ref.current.focus())}),fe=o.useCallback((p,I,_)=>{const S=!H.current&&!_;(m.value!==void 0&&m.value===I||S)&&(W(p),S&&(H.current=!0))},[m.value]),me=o.useCallback(()=>g?.focus(),[g]),ee=o.useCallback((p,I,_)=>{const S=!H.current&&!_;(m.value!==void 0&&m.value===I||S)&&k(p)},[m.value]),le=l==="popper"?xe:He,ne=le===xe?{side:c,sideOffset:i,align:f,alignOffset:v,arrowPadding:w,collisionBoundary:P,collisionPadding:T,sticky:C,hideWhenDetached:d,avoidCollisions:h}:{};return r.jsx(Ve,{scope:e,content:g,viewport:M,onViewportChange:oe,itemRefCallback:fe,selectedItem:A,onItemLeave:me,itemTextRefCallback:ee,focusSelectedItem:D,selectedItemText:X,position:l,isPositioned:K,searchRef:pe,children:r.jsx(xt,{as:St,allowPinchZoom:!0,children:r.jsx(wt,{asChild:!0,trapped:m.open,onMountAutoFocus:p=>{p.preventDefault()},onUnmountAutoFocus:N(a,p=>{m.trigger?.focus({preventScroll:!0}),p.preventDefault()}),children:r.jsx(yt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:r.jsx(le,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:p=>p.preventDefault(),...x,...ne,onPlaced:()=>B(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:N(x.onKeyDown,p=>{const I=p.ctrlKey||p.altKey||p.metaKey;if(p.key==="Tab"&&p.preventDefault(),!I&&p.key.length===1&&ae(p.key),["ArrowUp","ArrowDown","Home","End"].includes(p.key)){let S=V().filter(y=>!y.disabled).map(y=>y.ref.current);if(["ArrowUp","End"].includes(p.key)&&(S=S.slice().reverse()),["ArrowUp","ArrowDown"].includes(p.key)){const y=p.target,b=S.indexOf(y);S=S.slice(b+1)}setTimeout(()=>E(S)),p.preventDefault()}})})})})})})});Be.displayName=Ht;var Ft="SelectItemAlignedPosition",He=o.forwardRef((t,n)=>{const{__scopeSelect:e,onPlaced:l,...a}=t,u=Y(Q,e),s=q(Q,e),[c,i]=o.useState(null),[f,v]=o.useState(null),w=L(n,R=>v(R)),P=de(e),T=o.useRef(!1),C=o.useRef(!0),{viewport:d,selectedItem:h,selectedItemText:x,focusSelectedItem:m}=s,g=o.useCallback(()=>{if(u.trigger&&u.valueNode&&c&&f&&d&&h&&x){const R=u.trigger.getBoundingClientRect(),A=f.getBoundingClientRect(),W=u.valueNode.getBoundingClientRect(),X=x.getBoundingClientRect();if(u.dir!=="rtl"){const y=X.left-A.left,b=W.left-y,Z=R.left-b,J=R.width+Z,he=Math.max(J,A.width),ge=window.innerWidth-O,ve=Ne(b,[O,Math.max(O,ge-he)]);c.style.minWidth=J+"px",c.style.left=ve+"px"}else{const y=A.right-X.right,b=window.innerWidth-W.right-y,Z=window.innerWidth-R.right-b,J=R.width+Z,he=Math.max(J,A.width),ge=window.innerWidth-O,ve=Ne(b,[O,Math.max(O,ge-he)]);c.style.minWidth=J+"px",c.style.right=ve+"px"}const k=P(),V=window.innerHeight-O*2,K=d.scrollHeight,B=window.getComputedStyle(f),H=parseInt(B.borderTopWidth,10),E=parseInt(B.paddingTop,10),D=parseInt(B.borderBottomWidth,10),F=parseInt(B.paddingBottom,10),$=H+E+K+F+D,pe=Math.min(h.offsetHeight*5,$),ae=window.getComputedStyle(d),fe=parseInt(ae.paddingTop,10),me=parseInt(ae.paddingBottom,10),ee=R.top+R.height/2-O,le=V-ee,ne=h.offsetHeight/2,p=h.offsetTop+ne,I=H+E+p,_=$-I;if(I<=ee){const y=k.length>0&&h===k[k.length-1].ref.current;c.style.bottom="0px";const b=f.clientHeight-d.offsetTop-d.offsetHeight,Z=Math.max(le,ne+(y?me:0)+b+D),J=I+Z;c.style.height=J+"px"}else{const y=k.length>0&&h===k[0].ref.current;c.style.top="0px";const Z=Math.max(ee,H+d.offsetTop+(y?fe:0)+ne)+_;c.style.height=Z+"px",d.scrollTop=I-ee+d.offsetTop}c.style.margin=`${O}px 0`,c.style.minHeight=pe+"px",c.style.maxHeight=V+"px",l?.(),requestAnimationFrame(()=>T.current=!0)}},[P,u.trigger,u.valueNode,c,f,d,h,x,u.dir,l]);z(()=>g(),[g]);const[U,M]=o.useState();z(()=>{f&&M(window.getComputedStyle(f).zIndex)},[f]);const oe=o.useCallback(R=>{R&&C.current===!0&&(g(),m?.(),C.current=!1)},[g,m]);return r.jsx(Wt,{scope:e,contentWrapper:c,shouldExpandOnScrollRef:T,onScrollButtonChange:oe,children:r.jsx("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:U},children:r.jsx(j.div,{...a,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});He.displayName=Ft;var Ut="SelectPopperPosition",xe=o.forwardRef((t,n)=>{const{__scopeSelect:e,align:l="start",collisionPadding:a=O,...u}=t,s=ue(e);return r.jsx(Ct,{...s,...u,ref:n,align:l,collisionPadding:a,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});xe.displayName=Ut;var[Wt,Te]=te(Q,{}),Se="SelectViewport",Fe=o.forwardRef((t,n)=>{const{__scopeSelect:e,nonce:l,...a}=t,u=q(Se,e),s=Te(Se,e),c=L(n,u.onViewportChange),i=o.useRef(0);return r.jsxs(r.Fragment,{children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),r.jsx(ie.Slot,{scope:e,children:r.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:N(a.onScroll,f=>{const v=f.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:P}=s;if(P?.current&&w){const T=Math.abs(i.current-v.scrollTop);if(T>0){const C=window.innerHeight-O*2,d=parseFloat(w.style.minHeight),h=parseFloat(w.style.height),x=Math.max(d,h);if(x<C){const m=x+T,g=Math.min(C,m),U=m-g;w.style.height=g+"px",w.style.bottom==="0px"&&(v.scrollTop=U>0?U:0,w.style.justifyContent="flex-end")}}}i.current=v.scrollTop})})})]})});Fe.displayName=Se;var Ue="SelectGroup",[Kt,$t]=te(Ue),zt=o.forwardRef((t,n)=>{const{__scopeSelect:e,...l}=t,a=Ie();return r.jsx(Kt,{scope:e,id:a,children:r.jsx(j.div,{role:"group","aria-labelledby":a,...l,ref:n})})});zt.displayName=Ue;var We="SelectLabel",Ke=o.forwardRef((t,n)=>{const{__scopeSelect:e,...l}=t,a=$t(We,e);return r.jsx(j.div,{id:a.id,...l,ref:n})});Ke.displayName=We;var ce="SelectItem",[Gt,$e]=te(ce),ze=o.forwardRef((t,n)=>{const{__scopeSelect:e,value:l,disabled:a=!1,textValue:u,...s}=t,c=Y(ce,e),i=q(ce,e),f=c.value===l,[v,w]=o.useState(u??""),[P,T]=o.useState(!1),C=L(n,m=>i.itemRefCallback?.(m,l,a)),d=Ie(),h=o.useRef("touch"),x=()=>{a||(c.onValueChange(l),c.onOpenChange(!1))};if(l==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return r.jsx(Gt,{scope:e,value:l,disabled:a,textId:d,isSelected:f,onItemTextChange:o.useCallback(m=>{w(g=>g||(m?.textContent??"").trim())},[]),children:r.jsx(ie.ItemSlot,{scope:e,value:l,disabled:a,textValue:v,children:r.jsx(j.div,{role:"option","aria-labelledby":d,"data-highlighted":P?"":void 0,"aria-selected":f&&P,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...s,ref:C,onFocus:N(s.onFocus,()=>T(!0)),onBlur:N(s.onBlur,()=>T(!1)),onClick:N(s.onClick,()=>{h.current!=="mouse"&&x()}),onPointerUp:N(s.onPointerUp,()=>{h.current==="mouse"&&x()}),onPointerDown:N(s.onPointerDown,m=>{h.current=m.pointerType}),onPointerMove:N(s.onPointerMove,m=>{h.current=m.pointerType,a?i.onItemLeave?.():h.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(s.onPointerLeave,m=>{m.currentTarget===document.activeElement&&i.onItemLeave?.()}),onKeyDown:N(s.onKeyDown,m=>{i.searchRef?.current!==""&&m.key===" "||(Ot.includes(m.key)&&x(),m.key===" "&&m.preventDefault())})})})})});ze.displayName=ce;var re="SelectItemText",Ge=o.forwardRef((t,n)=>{const{__scopeSelect:e,className:l,style:a,...u}=t,s=Y(re,e),c=q(re,e),i=$e(re,e),f=kt(re,e),[v,w]=o.useState(null),P=L(n,x=>w(x),i.onItemTextChange,x=>c.itemTextRefCallback?.(x,i.value,i.disabled)),T=v?.textContent,C=o.useMemo(()=>r.jsx("option",{value:i.value,disabled:i.disabled,children:T},i.value),[i.disabled,i.value,T]),{onNativeOptionAdd:d,onNativeOptionRemove:h}=f;return z(()=>(d(C),()=>h(C)),[d,h,C]),r.jsxs(r.Fragment,{children:[r.jsx(j.span,{id:i.textId,...u,ref:P}),i.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Re.createPortal(u.children,s.valueNode):null]})});Ge.displayName=re;var Ye="SelectItemIndicator",qe=o.forwardRef((t,n)=>{const{__scopeSelect:e,...l}=t;return $e(Ye,e).isSelected?r.jsx(j.span,{"aria-hidden":!0,...l,ref:n}):null});qe.displayName=Ye;var we="SelectScrollUpButton",Xe=o.forwardRef((t,n)=>{const e=q(we,t.__scopeSelect),l=Te(we,t.__scopeSelect),[a,u]=o.useState(!1),s=L(n,l.onScrollButtonChange);return z(()=>{if(e.viewport&&e.isPositioned){let c=function(){const f=i.scrollTop>0;u(f)};const i=e.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[e.viewport,e.isPositioned]),a?r.jsx(Je,{...t,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=e;c&&i&&(c.scrollTop=c.scrollTop-i.offsetHeight)}}):null});Xe.displayName=we;var ye="SelectScrollDownButton",Ze=o.forwardRef((t,n)=>{const e=q(ye,t.__scopeSelect),l=Te(ye,t.__scopeSelect),[a,u]=o.useState(!1),s=L(n,l.onScrollButtonChange);return z(()=>{if(e.viewport&&e.isPositioned){let c=function(){const f=i.scrollHeight-i.clientHeight,v=Math.ceil(i.scrollTop)<f;u(v)};const i=e.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[e.viewport,e.isPositioned]),a?r.jsx(Je,{...t,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=e;c&&i&&(c.scrollTop=c.scrollTop+i.offsetHeight)}}):null});Ze.displayName=ye;var Je=o.forwardRef((t,n)=>{const{__scopeSelect:e,onAutoScroll:l,...a}=t,u=q("SelectScrollButton",e),s=o.useRef(null),c=de(e),i=o.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return o.useEffect(()=>()=>i(),[i]),z(()=>{c().find(v=>v.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),r.jsx(j.div,{"aria-hidden":!0,...a,ref:n,style:{flexShrink:0,...a.style},onPointerDown:N(a.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(l,50))}),onPointerMove:N(a.onPointerMove,()=>{u.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(l,50))}),onPointerLeave:N(a.onPointerLeave,()=>{i()})})}),Yt="SelectSeparator",Qe=o.forwardRef((t,n)=>{const{__scopeSelect:e,...l}=t;return r.jsx(j.div,{"aria-hidden":!0,...l,ref:n})});Qe.displayName=Yt;var Ce="SelectArrow",qt=o.forwardRef((t,n)=>{const{__scopeSelect:e,...l}=t,a=ue(e),u=Y(Ce,e),s=q(Ce,e);return u.open&&s.position==="popper"?r.jsx(It,{...a,...l,ref:n}):null});qt.displayName=Ce;function et(t){return t===""||t===void 0}var tt=o.forwardRef((t,n)=>{const{value:e,...l}=t,a=o.useRef(null),u=L(n,a),s=_t(e);return o.useEffect(()=>{const c=a.current,i=window.HTMLSelectElement.prototype,v=Object.getOwnPropertyDescriptor(i,"value").set;if(s!==e&&v){const w=new Event("change",{bubbles:!0});v.call(c,e),c.dispatchEvent(w)}},[s,e]),r.jsx(Tt,{asChild:!0,children:r.jsx("select",{...l,ref:u,defaultValue:e})})});tt.displayName="BubbleSelect";function ot(t){const n=bt(t),e=o.useRef(""),l=o.useRef(0),a=o.useCallback(s=>{const c=e.current+s;n(c),function i(f){e.current=f,window.clearTimeout(l.current),f!==""&&(l.current=window.setTimeout(()=>i(""),1e3))}(c)},[n]),u=o.useCallback(()=>{e.current="",window.clearTimeout(l.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(l.current),[]),[e,a,u]}function nt(t,n,e){const a=n.length>1&&Array.from(n).every(f=>f===n[0])?n[0]:n,u=e?t.indexOf(e):-1;let s=Xt(t,Math.max(u,0));a.length===1&&(s=s.filter(f=>f!==e));const i=s.find(f=>f.textValue.toLowerCase().startsWith(a.toLowerCase()));return i!==e?i:void 0}function Xt(t,n){return t.map((e,l)=>t[(n+l)%t.length])}var Zt=_e,rt=Me,Jt=Ae,Qt=De,eo=Le,st=ke,to=Fe,at=Ke,lt=ze,oo=Ge,no=qe,ct=Xe,it=Ze,dt=Qe;const ho=Zt,go=Jt,ro=o.forwardRef(({className:t,children:n,...e},l)=>r.jsxs(rt,{ref:l,className:G("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...e,children:[n,r.jsx(Qt,{asChild:!0,children:r.jsx(Ee,{className:"h-4 w-4 opacity-50"})})]}));ro.displayName=rt.displayName;const ut=o.forwardRef(({className:t,...n},e)=>r.jsx(ct,{ref:e,className:G("flex cursor-default items-center justify-center py-1",t),...n,children:r.jsx(jt,{className:"h-4 w-4"})}));ut.displayName=ct.displayName;const pt=o.forwardRef(({className:t,...n},e)=>r.jsx(it,{ref:e,className:G("flex cursor-default items-center justify-center py-1",t),...n,children:r.jsx(Ee,{className:"h-4 w-4"})}));pt.displayName=it.displayName;const so=o.forwardRef(({className:t,children:n,position:e="popper",...l},a)=>r.jsx(eo,{children:r.jsxs(st,{ref:a,className:G("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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",e==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:e,...l,children:[r.jsx(ut,{}),r.jsx(to,{className:G("p-1",e==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),r.jsx(pt,{})]})}));so.displayName=st.displayName;const ao=o.forwardRef(({className:t,...n},e)=>r.jsx(at,{ref:e,className:G("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...n}));ao.displayName=at.displayName;const lo=o.forwardRef(({className:t,children:n,...e},l)=>r.jsxs(lt,{ref:l,className:G("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...e,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(no,{children:r.jsx(Et,{className:"h-4 w-4"})})}),r.jsx(oo,{children:n})]}));lo.displayName=lt.displayName;const co=o.forwardRef(({className:t,...n},e)=>r.jsx(dt,{ref:e,className:G("-mx-1 my-1 h-px bg-muted",t),...n}));co.displayName=dt.displayName;export{ho as S,ro as a,go as b,so as c,lo as d,Ne as e};
//# sourceMappingURL=select-BC_Xa7za.js.map