vendor: 16,584 bytes, line 1
1import{j as r,r as Ne}from"./index-gjLjpUi0.js";import{u as L,c as te}from"./index-_rYYc-r3.js";import{r as o}from"./components-u3-Ruf87.js";import{b as be,c as ot,u as Ie,P as j,a as P,e as G,g as nt,d as rt,h as st,D as at}from"./index-IrSMll9i.js";import{u as lt,c as ct}from"./index-CJgHJVOR.js";import{h as it,u as dt,R as ut,F as pt}from"./index-brmISfDH.js";import{c as Ee,R as ft,A as mt,C as ht,a as vt}from"./index-BToS6iA8.js";import{u as gt}from"./index-CLgcEOrV.js";import{V as xt}from"./index-Z-VG8HPo.js";import{a as Re,C as St}from"./chevron-down-CL37uUIc.js";import{C as wt}from"./chevron-up-DEGq21Bk.js";function Pe(t,[n,e]){return Math.min(e,Math.max(n,t))}var Ct=[" ","Enter","ArrowUp","ArrowDown"],yt=[" ","Enter"],J="Select",[ie,de,It]=ct(J),[oe,vo]=ot(J,[It,Ee]),ue=Ee(),[Tt,$]=oe(J),[bt,Pt]=oe(J),_e=t=>{const{__scopeSelect:n,children:e,open:i,defaultOpen:l,onOpenChange:u,value:s,defaultValue:a,onValueChange:c,dir:f,name:g,autoComplete:w,disabled:N,required:T,form:y}=t,d=ue(n),[h,x]=o.useState(null),[m,v]=o.useState(null),[U,M]=o.useState(!1),ne=lt(f),[E,O]=be({prop:i,defaultProp:l??!1,onChange:u,caller:J}),[W,q]=be({prop:s,defaultProp:a,onChange:c,caller:J}),k=o.useRef(null),B=h?y||!!h.closest("form"):!0,[K,V]=o.useState(new Set),H=Array.from(K).map(R=>R.props.value).join(";");return r.jsx(ft,{...d,children:r.jsxs(Tt,{required:T,scope:n,trigger:h,onTriggerChange:x,valueNode:m,onValueNodeChange:v,valueNodeHasChildren:U,onValueNodeHasChildrenChange:M,contentId:Ie(),value:W,onValueChange:q,open:E,onOpenChange:O,dir:ne,triggerPointerDownPosRef:k,disabled:N,children:[r.jsx(ie.Provider,{scope:n,children:r.jsx(bt,{scope:t.__scopeSelect,onNativeOptionAdd:o.useCallback(R=>{V(D=>new Set(D).add(R))},[]),onNativeOptionRemove:o.useCallback(R=>{V(D=>{const F=new Set(D);return F.delete(R),F})},[]),children:e})}),B?r.jsxs(Je,{"aria-hidden":!0,required:T,tabIndex:-1,name:g,autoComplete:w,value:W,onChange:R=>q(R.target.value),disabled:N,form:y,children:[W===void 0?r.jsx("option",{value:""}):null,Array.from(K)]},H):null]})})};_e.displayName=J;var je="SelectTrigger",Me=o.forwardRef((t,n)=>{const{__scopeSelect:e,disabled:i=!1,...l}=t,u=ue(e),s=$(je,e),a=s.disabled||i,c=L(n,s.onTriggerChange),f=de(e),g=o.useRef("touch"),[w,N,T]=et(d=>{const h=f().filter(v=>!v.disabled),x=h.find(v=>v.value===s.value),m=tt(h,d,x);m!==void 0&&s.onValueChange(m.value)}),y=d=>{a||(s.onOpenChange(!0),T()),d&&(s.triggerPointerDownPosRef.current={x:Math.round(d.pageX),y:Math.round(d.pageY)})};return r.jsx(mt,{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:a,"data-disabled":a?"":void 0,"data-placeholder":Qe(s.value)?"":void 0,...l,ref:c,onClick:P(l.onClick,d=>{d.currentTarget.focus(),g.current!=="mouse"&&y(d)}),onPointerDown:P(l.onPointerDown,d=>{g.current=d.pointerType;const h=d.target;h.hasPointerCapture(d.pointerId)&&h.releasePointerCapture(d.pointerId),d.button===0&&d.ctrlKey===!1&&d.pointerType==="mouse"&&(y(d),d.preventDefault())}),onKeyDown:P(l.onKeyDown,d=>{const h=w.current!=="";!(d.ctrlKey||d.altKey||d.metaKey)&&d.key.length===1&&N(d.key),!(h&&d.key===" ")&&Ct.includes(d.key)&&(y(),d.preventDefault())})})})});Me.displayName=je;var Ae="SelectValue",Oe=o.forwardRef((t,n)=>{const{__scopeSelect:e,className:i,style:l,children:u,placeholder:s="",...a}=t,c=$(Ae,e),{onValueNodeHasChildrenChange:f}=c,g=u!==void 0,w=L(n,c.onValueNodeChange);return G(()=>{f(g)},[f,g]),r.jsx(j.span,{...a,ref:w,style:{pointerEvents:"none"},children:Qe(c.value)?r.jsx(r.Fragment,{children:s}):u})});Oe.displayName=Ae;var Nt="SelectIcon",De=o.forwardRef((t,n)=>{const{__scopeSelect:e,children:i,...l}=t;return r.jsx(j.span,{"aria-hidden":!0,...l,ref:n,children:i||"â¼"})});De.displayName=Nt;var Et="SelectPortal",Le=t=>r.jsx(nt,{asChild:!0,...t});Le.displayName=Et;var Q="SelectContent",ke=o.forwardRef((t,n)=>{const e=$(Q,t.__scopeSelect),[i,l]=o.useState();if(G(()=>{l(new DocumentFragment)},[]),!e.open){const u=i;return u?Ne.createPortal(r.jsx(Be,{scope:t.__scopeSelect,children:r.jsx(ie.Slot,{scope:t.__scopeSelect,children:r.jsx("div",{children:t.children})})}),u):null}return r.jsx(Ve,{...t,ref:n})});ke.displayName=Q;var A=10,[Be,Y]=oe(Q),Rt="SelectContentImpl",_t=st("SelectContent.RemoveScroll"),Ve=o.forwardRef((t,n)=>{const{__scopeSelect:e,position:i="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:s,side:a,sideOffset:c,align:f,alignOffset:g,arrowPadding:w,collisionBoundary:N,collisionPadding:T,sticky:y,hideWhenDetached:d,avoidCollisions:h,...x}=t,m=$(Q,e),[v,U]=o.useState(null),[M,ne]=o.useState(null),E=L(n,p=>U(p)),[O,W]=o.useState(null),[q,k]=o.useState(null),B=de(e),[K,V]=o.useState(!1),H=o.useRef(!1);o.useEffect(()=>{if(v)return it(v)},[v]),dt();const R=o.useCallback(p=>{const[I,..._]=B().map(b=>b.ref.current),[S]=_.slice(-1),C=document.activeElement;for(const b of p)if(b===C||(b?.scrollIntoView({block:"nearest"}),b===I&&M&&(M.scrollTop=0),b===S&&M&&(M.scrollTop=M.scrollHeight),b?.focus(),document.activeElement!==C))return},[B,M]),D=o.useCallback(()=>R([O,v]),[R,O,v]);o.useEffect(()=>{K&&D()},[K,D]);const{onOpenChange:F,triggerPointerDownPosRef:z}=m;o.useEffect(()=>{if(v){let p={x:0,y:0};const I=S=>{p={x:Math.abs(Math.round(S.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(S.pageY)-(z.current?.y??0))}},_=S=>{p.x<=10&&p.y<=10?S.preventDefault():v.contains(S.target)||F(!1),document.removeEventListener("pointermove",I),z.current=null};return z.current!==null&&(document.addEventListener("pointermove",I),document.addEventListener("pointerup",_,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",I),document.removeEventListener("pointerup",_,{capture:!0})}}},[v,F,z]),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]=et(p=>{const I=B().filter(C=>!C.disabled),_=I.find(C=>C.ref.current===document.activeElement),S=tt(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(()=>v?.focus(),[v]),ee=o.useCallback((p,I,_)=>{const S=!H.current&&!_;(m.value!==void 0&&m.value===I||S)&&k(p)},[m.value]),le=i==="popper"?xe:He,re=le===xe?{side:a,sideOffset:c,align:f,alignOffset:g,arrowPadding:w,collisionBoundary:N,collisionPadding:T,sticky:y,hideWhenDetached:d,avoidCollisions:h}:{};return r.jsx(Be,{scope:e,content:v,viewport:M,onViewportChange:ne,itemRefCallback:fe,selectedItem:O,onItemLeave:me,itemTextRefCallback:ee,focusSelectedItem:D,selectedItemText:q,position:i,isPositioned:K,searchRef:pe,children:r.jsx(ut,{as:_t,allowPinchZoom:!0,children:r.jsx(pt,{asChild:!0,trapped:m.open,onMountAutoFocus:p=>{p.preventDefault()},onUnmountAutoFocus:P(l,p=>{m.trigger?.focus({preventScroll:!0}),p.preventDefault()}),children:r.jsx(at,{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,...re,onPlaced:()=>V(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:P(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=B().filter(C=>!C.disabled).map(C=>C.ref.current);if(["ArrowUp","End"].includes(p.key)&&(S=S.slice().reverse()),["ArrowUp","ArrowDown"].includes(p.key)){const C=p.target,b=S.indexOf(C);S=S.slice(b+1)}setTimeout(()=>R(S)),p.preventDefault()}})})})})})})});Ve.displayName=Rt;var jt="SelectItemAlignedPosition",He=o.forwardRef((t,n)=>{const{__scopeSelect:e,onPlaced:i,...l}=t,u=$(Q,e),s=Y(Q,e),[a,c]=o.useState(null),[f,g]=o.useState(null),w=L(n,E=>g(E)),N=de(e),T=o.useRef(!1),y=o.useRef(!0),{viewport:d,selectedItem:h,selectedItemText:x,focusSelectedItem:m}=s,v=o.useCallback(()=>{if(u.trigger&&u.valueNode&&a&&f&&d&&h&&x){const E=u.trigger.getBoundingClientRect(),O=f.getBoundingClientRect(),W=u.valueNode.getBoundingClientRect(),q=x.getBoundingClientRect();if(u.dir!=="rtl"){const C=q.left-O.left,b=W.left-C,X=E.left-b,Z=E.width+X,he=Math.max(Z,O.width),ve=window.innerWidth-A,ge=Pe(b,[A,Math.max(A,ve-he)]);a.style.minWidth=Z+"px",a.style.left=ge+"px"}else{const C=O.right-q.right,b=window.innerWidth-W.right-C,X=window.innerWidth-E.right-b,Z=E.width+X,he=Math.max(Z,O.width),ve=window.innerWidth-A,ge=Pe(b,[A,Math.max(A,ve-he)]);a.style.minWidth=Z+"px",a.style.right=ge+"px"}const k=N(),B=window.innerHeight-A*2,K=d.scrollHeight,V=window.getComputedStyle(f),H=parseInt(V.borderTopWidth,10),R=parseInt(V.paddingTop,10),D=parseInt(V.borderBottomWidth,10),F=parseInt(V.paddingBottom,10),z=H+R+K+F+D,pe=Math.min(h.offsetHeight*5,z),ae=window.getComputedStyle(d),fe=parseInt(ae.paddingTop,10),me=parseInt(ae.paddingBottom,10),ee=E.top+E.height/2-A,le=B-ee,re=h.offsetHeight/2,p=h.offsetTop+re,I=H+R+p,_=z-I;if(I<=ee){const C=k.length>0&&h===k[k.length-1].ref.current;a.style.bottom="0px";const b=f.clientHeight-d.offsetTop-d.offsetHeight,X=Math.max(le,re+(C?me:0)+b+D),Z=I+X;a.style.height=Z+"px"}else{const C=k.length>0&&h===k[0].ref.current;a.style.top="0px";const X=Math.max(ee,H+d.offsetTop+(C?fe:0)+re)+_;a.style.height=X+"px",d.scrollTop=I-ee+d.offsetTop}a.style.margin=`${A}px 0`,a.style.minHeight=pe+"px",a.style.maxHeight=B+"px",i?.(),requestAnimationFrame(()=>T.current=!0)}},[N,u.trigger,u.valueNode,a,f,d,h,x,u.dir,i]);G(()=>v(),[v]);const[U,M]=o.useState();G(()=>{f&&M(window.getComputedStyle(f).zIndex)},[f]);const ne=o.useCallback(E=>{E&&y.current===!0&&(v(),m?.(),y.current=!1)},[v,m]);return r.jsx(At,{scope:e,contentWrapper:a,shouldExpandOnScrollRef:T,onScrollButtonChange:ne,children:r.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:U},children:r.jsx(j.div,{...l,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});He.displayName=jt;var Mt="SelectPopperPosition",xe=o.forwardRef((t,n)=>{const{__scopeSelect:e,align:i="start",collisionPadding:l=A,...u}=t,s=ue(e);return r.jsx(ht,{...s,...u,ref:n,align:i,collisionPadding:l,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=Mt;var[At,Te]=oe(Q,{}),Se="SelectViewport",Fe=o.forwardRef((t,n)=>{const{__scopeSelect:e,nonce:i,...l}=t,u=Y(Se,e),s=Te(Se,e),a=L(n,u.onViewportChange),c=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:i}),r.jsx(ie.Slot,{scope:e,children:r.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:P(l.onScroll,f=>{const g=f.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:N}=s;if(N?.current&&w){const T=Math.abs(c.current-g.scrollTop);if(T>0){const y=window.innerHeight-A*2,d=parseFloat(w.style.minHeight),h=parseFloat(w.style.height),x=Math.max(d,h);if(x<y){const m=x+T,v=Math.min(y,m),U=m-v;w.style.height=v+"px",w.style.bottom==="0px"&&(g.scrollTop=U>0?U:0,w.style.justifyContent="flex-end")}}}c.current=g.scrollTop})})})]})});Fe.displayName=Se;var Ue="SelectGroup",[Ot,Dt]=oe(Ue),Lt=o.forwardRef((t,n)=>{const{__scopeSelect:e,...i}=t,l=Ie();return r.jsx(Ot,{scope:e,id:l,children:r.jsx(j.div,{role:"group","aria-labelledby":l,...i,ref:n})})});Lt.displayName=Ue;var We="SelectLabel",kt=o.forwardRef((t,n)=>{const{__scopeSelect:e,...i}=t,l=Dt(We,e);return r.jsx(j.div,{id:l.id,...i,ref:n})});kt.displayName=We;var ce="SelectItem",[Bt,Ke]=oe(ce),ze=o.forwardRef((t,n)=>{const{__scopeSelect:e,value:i,disabled:l=!1,textValue:u,...s}=t,a=$(ce,e),c=Y(ce,e),f=a.value===i,[g,w]=o.useState(u??""),[N,T]=o.useState(!1),y=L(n,m=>c.itemRefCallback?.(m,i,l)),d=Ie(),h=o.useRef("touch"),x=()=>{l||(a.onValueChange(i),a.onOpenChange(!1))};if(i==="")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(Bt,{scope:e,value:i,disabled:l,textId:d,isSelected:f,onItemTextChange:o.useCallback(m=>{w(v=>v||(m?.textContent??"").trim())},[]),children:r.jsx(ie.ItemSlot,{scope:e,value:i,disabled:l,textValue:g,children:r.jsx(j.div,{role:"option","aria-labelledby":d,"data-highlighted":N?"":void 0,"aria-selected":f&&N,"data-state":f?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...s,ref:y,onFocus:P(s.onFocus,()=>T(!0)),onBlur:P(s.onBlur,()=>T(!1)),onClick:P(s.onClick,()=>{h.current!=="mouse"&&x()}),onPointerUp:P(s.onPointerUp,()=>{h.current==="mouse"&&x()}),onPointerDown:P(s.onPointerDown,m=>{h.current=m.pointerType}),onPointerMove:P(s.onPointerMove,m=>{h.current=m.pointerType,l?c.onItemLeave?.():h.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:P(s.onPointerLeave,m=>{m.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:P(s.onKeyDown,m=>{c.searchRef?.current!==""&&m.key===" "||(yt.includes(m.key)&&x(),m.key===" "&&m.preventDefault())})})})})});ze.displayName=ce;var se="SelectItemText",Ge=o.forwardRef((t,n)=>{const{__scopeSelect:e,className:i,style:l,...u}=t,s=$(se,e),a=Y(se,e),c=Ke(se,e),f=Pt(se,e),[g,w]=o.useState(null),N=L(n,x=>w(x),c.onItemTextChange,x=>a.itemTextRefCallback?.(x,c.value,c.disabled)),T=g?.textContent,y=o.useMemo(()=>r.jsx("option",{value:c.value,disabled:c.disabled,children:T},c.value),[c.disabled,c.value,T]),{onNativeOptionAdd:d,onNativeOptionRemove:h}=f;return G(()=>(d(y),()=>h(y)),[d,h,y]),r.jsxs(r.Fragment,{children:[r.jsx(j.span,{id:c.textId,...u,ref:N}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Ne.createPortal(u.children,s.valueNode):null]})});Ge.displayName=se;var $e="SelectItemIndicator",Ye=o.forwardRef((t,n)=>{const{__scopeSelect:e,...i}=t;return Ke($e,e).isSelected?r.jsx(j.span,{"aria-hidden":!0,...i,ref:n}):null});Ye.displayName=$e;var we="SelectScrollUpButton",qe=o.forwardRef((t,n)=>{const e=Y(we,t.__scopeSelect),i=Te(we,t.__scopeSelect),[l,u]=o.useState(!1),s=L(n,i.onScrollButtonChange);return G(()=>{if(e.viewport&&e.isPositioned){let a=function(){const f=c.scrollTop>0;u(f)};const c=e.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[e.viewport,e.isPositioned]),l?r.jsx(Ze,{...t,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=e;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});qe.displayName=we;var Ce="SelectScrollDownButton",Xe=o.forwardRef((t,n)=>{const e=Y(Ce,t.__scopeSelect),i=Te(Ce,t.__scopeSelect),[l,u]=o.useState(!1),s=L(n,i.onScrollButtonChange);return G(()=>{if(e.viewport&&e.isPositioned){let a=function(){const f=c.scrollHeight-c.clientHeight,g=Math.ceil(c.scrollTop)<f;u(g)};const c=e.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[e.viewport,e.isPositioned]),l?r.jsx(Ze,{...t,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=e;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});Xe.displayName=Ce;var Ze=o.forwardRef((t,n)=>{const{__scopeSelect:e,onAutoScroll:i,...l}=t,u=Y("SelectScrollButton",e),s=o.useRef(null),a=de(e),c=o.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return o.useEffect(()=>()=>c(),[c]),G(()=>{a().find(g=>g.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),r.jsx(j.div,{"aria-hidden":!0,...l,ref:n,style:{flexShrink:0,...l.style},onPointerDown:P(l.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(i,50))}),onPointerMove:P(l.onPointerMove,()=>{u.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(i,50))}),onPointerLeave:P(l.onPointerLeave,()=>{c()})})}
vendor: 4,225 bytes, line 1
1),Vt="SelectSeparator",Ht=o.forwardRef((t,n)=>{const{__scopeSelect:e,...i}=t;return r.jsx(j.div,{"aria-hidden":!0,...i,ref:n})});Ht.displayName=Vt;var ye="SelectArrow",Ft=o.forwardRef((t,n)=>{const{__scopeSelect:e,...i}=t,l=ue(e),u=$(ye,e),s=Y(ye,e);return u.open&&s.position==="popper"?r.jsx(vt,{...l,...i,ref:n}):null});Ft.displayName=ye;var Ut="SelectBubbleInput",Je=o.forwardRef(({__scopeSelect:t,value:n,...e},i)=>{const l=o.useRef(null),u=L(i,l),s=gt(n);return o.useEffect(()=>{const a=l.current;if(!a)return;const c=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==n&&g){const w=new Event("change",{bubbles:!0});g.call(a,n),a.dispatchEvent(w)}},[s,n]),r.jsx(j.select,{...e,style:{...xt,...e.style},ref:u,defaultValue:n})});Je.displayName=Ut;function Qe(t){return t===""||t===void 0}function et(t){const n=rt(t),e=o.useRef(""),i=o.useRef(0),l=o.useCallback(s=>{const a=e.current+s;n(a),(function c(f){e.current=f,window.clearTimeout(i.current),f!==""&&(i.current=window.setTimeout(()=>c(""),1e3))})(a)},[n]),u=o.useCallback(()=>{e.current="",window.clearTimeout(i.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(i.current),[]),[e,l,u]}function tt(t,n,e){const l=n.length>1&&Array.from(n).every(f=>f===n[0])?n[0]:n,u=e?t.indexOf(e):-1;let s=Wt(t,Math.max(u,0));l.length===1&&(s=s.filter(f=>f!==e));const c=s.find(f=>f.textValue.toLowerCase().startsWith(l.toLowerCase()));return c!==e?c:void 0}function Wt(t,n){return t.map((e,i)=>t[(n+i)%t.length])}var Kt=_e,zt=Me,Gt=Oe,$t=De,Yt=Le,qt=ke,Xt=Fe,Zt=ze,Jt=Ge,Qt=Ye,eo=qe,to=Xe;function go({...t}){return r.jsx(Kt,{"data-slot":"select",...t})}function xo({...t}){return r.jsx(Gt,{"data-slot":"select-value",...t})}function So({className:t,children:n,...e}){return r.jsxs(zt,{"data-slot":"select-trigger",className:te("border-input bg-background flex h-9 w-full items-center justify-between gap-2 rounded-md border px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","disabled:cursor-not-allowed disabled:opacity-50","[&>span]:line-clamp-1",t),...e,children:[n,r.jsx($t,{asChild:!0,children:r.jsx(Re,{className:"size-4 opacity-50"})})]})}function wo({className:t,children:n,position:e="popper",...i}){return r.jsx(Yt,{children:r.jsxs(qt,{"data-slot":"select-content",className:te("bg-popover text-popover-foreground relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border 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,...i,children:[r.jsx(oo,{}),r.jsx(Xt,{className:te("p-1",e==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),r.jsx(no,{})]})})}function Co({className:t,children:n,...e}){return r.jsxs(Zt,{"data-slot":"select-item",className:te("focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...e,children:[r.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:r.jsx(Qt,{children:r.jsx(St,{className:"size-4"})})}),r.jsx(Jt,{children:n})]})}function oo({className:t,...n}){return r.jsx(eo,{"data-slot":"select-scroll-up-button",className:te("flex cursor-default items-center justify-center py-1",t),...n,children:r.jsx(wt,{className:"size-4"})})}function no({className:t,...n}){return r.jsx(to,{"data-slot":"select-scroll-down-button",className:te("flex cursor-default items-center justify-center py-1",t),...n,children:r.jsx(Re,{className:"size-4"})})}
1export{go as S,So as a,xo as b,wo as c,Co as d};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.