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