import{p as rn,r as a,b as Be,u as B,j as f,P as O,c as on,ab as at,ac as an,d as M,f as X,e as ct,ad as cn,ae as sn,af as ln,ag as un,ah as dn,aa as fn,h as Z,ai as st,a8 as pn}from"./index-ByWyF7sJ.js";import{c as vn,u as ze}from"./index-BxSXBuaC.js";import{a as Ge,u as mn}from"./index-Dx2jE1p_.js";import{P as hn}from"./index-DSpiTACD.js";import{u as gn}from"./index-DFZw3ocN.js";/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sn=rn("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);function $e(e,[n,t]){return Math.min(t,Math.max(n,e))}var Ae=0;function yn(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Xe()),document.body.insertAdjacentElement("beforeend",e[1]??Xe()),Ae++,()=>{Ae===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Ae--}},[])}function Xe(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var _e="focusScope.autoFocusOnMount",Oe="focusScope.autoFocusOnUnmount",Ze={bubbles:!1,cancelable:!0},wn="FocusScope",it=a.forwardRef((e,n)=>{const{loop:t=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:l,...i}=e,[o,u]=a.useState(null),v=Be(c),S=Be(l),h=a.useRef(null),y=B(n,s=>u(s)),w=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let s=function(m){if(w.paused||!o)return;const C=m.target;o.contains(C)?h.current=C:$(h.current,{select:!0})},p=function(m){if(w.paused||!o)return;const C=m.relatedTarget;C!==null&&(o.contains(C)||$(h.current,{select:!0}))},g=function(m){if(document.activeElement===document.body)for(const E of m)E.removedNodes.length>0&&$(o)};document.addEventListener("focusin",s),document.addEventListener("focusout",p);const d=new MutationObserver(g);return o&&d.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",s),document.removeEventListener("focusout",p),d.disconnect()}}},[r,o,w.paused]),a.useEffect(()=>{if(o){Qe.add(w);const s=document.activeElement;if(!o.contains(s)){const g=new CustomEvent(_e,Ze);o.addEventListener(_e,v),o.dispatchEvent(g),g.defaultPrevented||(xn(Nn(lt(o)),{select:!0}),document.activeElement===s&&$(o))}return()=>{o.removeEventListener(_e,v),setTimeout(()=>{const g=new CustomEvent(Oe,Ze);o.addEventListener(Oe,S),o.dispatchEvent(g),g.defaultPrevented||$(s??document.body,{select:!0}),o.removeEventListener(Oe,S),Qe.remove(w)},0)}}},[o,v,S,w]);const b=a.useCallback(s=>{if(!t&&!r||w.paused)return;const p=s.key==="Tab"&&!s.altKey&&!s.ctrlKey&&!s.metaKey,g=document.activeElement;if(p&&g){const d=s.currentTarget,[m,C]=bn(d);m&&C?!s.shiftKey&&g===C?(s.preventDefault(),t&&$(m,{select:!0})):s.shiftKey&&g===m&&(s.preventDefault(),t&&$(C,{select:!0})):g===d&&s.preventDefault()}},[t,r,w.paused]);return f.jsx(O.div,{tabIndex:-1,...i,ref:y,onKeyDown:b})});it.displayName=wn;function xn(e,{select:n=!1}={}){const t=document.activeElement;for(const r of e)if($(r,{select:n}),document.activeElement!==t)return}function bn(e){const n=lt(e),t=qe(n,e),r=qe(n.reverse(),e);return[t,r]}function lt(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function qe(e,n){for(const t of e)if(!Cn(t,{upTo:n}))return t}function Cn(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function En(e){return e instanceof HTMLInputElement&&"select"in e}function $(e,{select:n=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&En(e)&&n&&e.select()}}var Qe=Tn();function Tn(){let e=[];return{add(n){const t=e[0];n!==t&&(t==null||t.pause()),e=Je(e,n),e.unshift(n)},remove(n){var t;e=Je(e,n),(t=e[0])==null||t.resume()}}}function Je(e,n){const t=[...e],r=t.indexOf(n);return r!==-1&&t.splice(r,1),t}function Nn(e){return e.filter(n=>n.tagName!=="A")}var In=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},ae=new WeakMap,ve=new WeakMap,me={},ke=0,ut=function(e){return e&&(e.host||ut(e.parentNode))},Rn=function(e,n){return n.map(function(t){if(e.contains(t))return t;var r=ut(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},Pn=function(e,n,t,r){var c=Rn(n,Array.isArray(e)?e:[e]);me[t]||(me[t]=new WeakMap);var l=me[t],i=[],o=new Set,u=new Set(c),v=function(h){!h||o.has(h)||(o.add(h),v(h.parentNode))};c.forEach(v);var S=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(y){if(o.has(y))S(y);else try{var w=y.getAttribute(r),b=w!==null&&w!=="false",s=(ae.get(y)||0)+1,p=(l.get(y)||0)+1;ae.set(y,s),l.set(y,p),i.push(y),s===1&&b&&ve.set(y,!0),p===1&&y.setAttribute(t,"true"),b||y.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",y,g)}})};return S(n),o.clear(),ke++,function(){i.forEach(function(h){var y=ae.get(h)-1,w=l.get(h)-1;ae.set(h,y),l.set(h,w),y||(ve.has(h)||h.removeAttribute(r),ve.delete(h)),w||h.removeAttribute(t)}),ke--,ke||(ae=new WeakMap,ae=new WeakMap,ve=new WeakMap,me={})}},Mn=function(e,n,t){t===void 0&&(t="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=In(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live]"))),Pn(r,c,t,"aria-hidden")):function(){return null}},V=function(){return V=Object.assign||function(n){for(var t,r=1,c=arguments.length;r<c;r++){t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(n[l]=t[l])}return n},V.apply(this,arguments)};function dt(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(e);c<r.length;c++)n.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(e,r[c])&&(t[r[c]]=e[r[c]]);return t}function An(e,n,t){if(t||arguments.length===2)for(var r=0,c=n.length,l;r<c;r++)(l||!(r in n))&&(l||(l=Array.prototype.slice.call(n,0,r)),l[r]=n[r]);return e.concat(l||Array.prototype.slice.call(n))}var Se="right-scroll-bar-position",ye="width-before-scroll-bar",_n="with-scroll-bars-hidden",On="--removed-body-scroll-bar-size";function Le(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function kn(e,n){var t=a.useState(function(){return{value:e,callback:n,facade:{get current(){return t.value},set current(r){var c=t.value;c!==r&&(t.value=r,t.callback(r,c))}}}})[0];return t.callback=n,t.facade}var Ln=typeof window<"u"?a.useLayoutEffect:a.useEffect,et=new WeakMap;function jn(e,n){var t=kn(null,function(r){return e.forEach(function(c){return Le(c,r)})});return Ln(function(){var r=et.get(t);if(r){var c=new Set(r),l=new Set(e),i=t.current;c.forEach(function(o){l.has(o)||Le(o,null)}),l.forEach(function(o){c.has(o)||Le(o,i)})}et.set(t,e)},[e]),t}function Dn(e){return e}function Bn(e,n){n===void 0&&(n=Dn);var t=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(l){var i=n(l,r);return t.push(i),function(){t=t.filter(function(o){return o!==i})}},assignSyncMedium:function(l){for(r=!0;t.length;){var i=t;t=[],i.forEach(l)}t={push:function(o){return l(o)},filter:function(){return t}}},assignMedium:function(l){r=!0;var i=[];if(t.length){var o=t;t=[],o.forEach(l),i=t}var u=function(){var S=i;i=[],S.forEach(l)},v=function(){return Promise.resolve().then(u)};v(),t={push:function(S){i.push(S),v()},filter:function(S){return i=i.filter(S),t}}}};return c}function Fn(e){e===void 0&&(e={});var n=Bn(null);return n.options=V({async:!0,ssr:!1},e),n}var ft=function(e){var n=e.sideCar,t=dt(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,V({},t))};ft.isSideCarExport=!0;function Vn(e,n){return e.useMedium(n),ft}var pt=Fn(),je=function(){},xe=a.forwardRef(function(e,n){var t=a.useRef(null),r=a.useState({onScrollCapture:je,onWheelCapture:je,onTouchMoveCapture:je}),c=r[0],l=r[1],i=e.forwardProps,o=e.children,u=e.className,v=e.removeScrollBar,S=e.enabled,h=e.shards,y=e.sideCar,w=e.noRelative,b=e.noIsolation,s=e.inert,p=e.allowPinchZoom,g=e.as,d=g===void 0?"div":g,m=e.gapMode,C=dt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=y,L=jn([t,n]),I=V(V({},C),c);return a.createElement(a.Fragment,null,S&&a.createElement(E,{sideCar:pt,removeScrollBar:v,shards:h,noRelative:w,noIsolation:b,inert:s,setCallbacks:l,allowPinchZoom:!!p,lockRef:t,gapMode:m}),i?a.cloneElement(a.Children.only(o),V(V({},I),{ref:L})):a.createElement(d,V({},I,{className:u,ref:L}),o))});xe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xe.classNames={fullWidth:ye,zeroRight:Se};var Hn=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Wn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=Hn();return n&&e.setAttribute("nonce",n),e}function Un(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function Kn(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var Gn=function(){var e=0,n=null;return{add:function(t){e==0&&(n=Wn())&&(Un(n,t),Kn(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},Yn=function(){var e=Gn();return function(n,t){a.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&t])}},vt=function(){var e=Yn(),n=function(t){var r=t.styles,c=t.dynamic;return e(r,c),null};return n},zn={left:0,top:0,right:0,gap:0},De=function(e){return parseInt(e||"",10)||0},$n=function(e){var n=window.getComputedStyle(document.body),t=n[e==="padding"?"paddingLeft":"marginLeft"],r=n[e==="padding"?"paddingTop":"marginTop"],c=n[e==="padding"?"paddingRight":"marginRight"];return[De(t),De(r),De(c)]},Xn=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zn;var n=$n(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-t+n[2]-n[0])}},Zn=vt(),ie="data-scroll-locked",qn=function(e,n,t,r){var c=e.left,l=e.top,i=e.right,o=e.gap;return t===void 0&&(t="margin"),`
  .`.concat(_n,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(o,"px ").concat(r,`;
  }
  body[`).concat(ie,`] {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([n&&"position: relative ".concat(r,";"),t==="margin"&&`
    padding-left: `.concat(c,`px;
    padding-top: `).concat(l,`px;
    padding-right: `).concat(i,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(o,"px ").concat(r,`;
    `),t==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Se,` {
    right: `).concat(o,"px ").concat(r,`;
  }
  
  .`).concat(ye,` {
    margin-right: `).concat(o,"px ").concat(r,`;
  }
  
  .`).concat(Se," .").concat(Se,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(ye," .").concat(ye,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat(ie,`] {
    `).concat(On,": ").concat(o,`px;
  }
`)},tt=function(){var e=parseInt(document.body.getAttribute(ie)||"0",10);return isFinite(e)?e:0},Qn=function(){a.useEffect(function(){return document.body.setAttribute(ie,(tt()+1).toString()),function(){var e=tt()-1;e<=0?document.body.removeAttribute(ie):document.body.setAttribute(ie,e.toString())}},[])},Jn=function(e){var n=e.noRelative,t=e.noImportant,r=e.gapMode,c=r===void 0?"margin":r;Qn();var l=a.useMemo(function(){return Xn(c)},[c]);return a.createElement(Zn,{styles:qn(l,!n,c,t?"":"!important")})},Fe=!1;if(typeof window<"u")try{var he=Object.defineProperty({},"passive",{get:function(){return Fe=!0,!0}});window.addEventListener("test",he,he),window.removeEventListener("test",he,he)}catch{Fe=!1}var ce=Fe?{passive:!1}:!1,er=function(e){return e.tagName==="TEXTAREA"},mt=function(e,n){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[n]!=="hidden"&&!(t.overflowY===t.overflowX&&!er(e)&&t[n]==="visible")},tr=function(e){return mt(e,"overflowY")},nr=function(e){return mt(e,"overflowX")},nt=function(e,n){var t=n.ownerDocument,r=n;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var c=ht(e,r);if(c){var l=gt(e,r),i=l[1],o=l[2];if(i>o)return!0}r=r.parentNode}while(r&&r!==t.body);return!1},rr=function(e){var n=e.scrollTop,t=e.scrollHeight,r=e.clientHeight;return[n,t,r]},or=function(e){var n=e.scrollLeft,t=e.scrollWidth,r=e.clientWidth;return[n,t,r]},ht=function(e,n){return e==="v"?tr(n):nr(n)},gt=function(e,n){return e==="v"?rr(n):or(n)},ar=function(e,n){return e==="h"&&n==="rtl"?-1:1},cr=function(e,n,t,r,c){var l=ar(e,window.getComputedStyle(n).direction),i=l*r,o=t.target,u=n.contains(o),v=!1,S=i>0,h=0,y=0;do{if(!o)break;var w=gt(e,o),b=w[0],s=w[1],p=w[2],g=s-p-l*b;(b||g)&&ht(e,o)&&(h+=g,y+=b);var d=o.parentNode;o=d&&d.nodeType===Node.DOCUMENT_FRAGMENT_NODE?d.host:d}while(!u&&o!==document.body||u&&(n.contains(o)||n===o));return(S&&(Math.abs(h)<1||!c)||!S&&(Math.abs(y)<1||!c))&&(v=!0),v},ge=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rt=function(e){return[e.deltaX,e.deltaY]},ot=function(e){return e&&"current"in e?e.current:e},sr=function(e,n){return e[0]===n[0]&&e[1]===n[1]},ir=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},lr=0,se=[];function ur(e){var n=a.useRef([]),t=a.useRef([0,0]),r=a.useRef(),c=a.useState(lr++)[0],l=a.useState(vt)[0],i=a.useRef(e);a.useEffect(function(){i.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var s=An([e.lockRef.current],(e.shards||[]).map(ot),!0).filter(Boolean);return s.forEach(function(p){return p.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),s.forEach(function(p){return p.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var o=a.useCallback(function(s,p){if("touches"in s&&s.touches.length===2||s.type==="wheel"&&s.ctrlKey)return!i.current.allowPinchZoom;var g=ge(s),d=t.current,m="deltaX"in s?s.deltaX:d[0]-g[0],C="deltaY"in s?s.deltaY:d[1]-g[1],E,L=s.target,I=Math.abs(m)>Math.abs(C)?"h":"v";if("touches"in s&&I==="h"&&L.type==="range")return!1;var A=nt(I,L);if(!A)return!0;if(A?E=I:(E=I==="v"?"h":"v",A=nt(I,L)),!A)return!1;if(!r.current&&"changedTouches"in s&&(m||C)&&(r.current=E),!E)return!0;var j=r.current||E;return cr(j,p,s,j==="h"?m:C,!0)},[]),u=a.useCallback(function(s){var p=s;if(!(!se.length||se[se.length-1]!==l)){var g="deltaY"in p?rt(p):ge(p),d=n.current.filter(function(E){return E.name===p.type&&(E.target===p.target||p.target===E.shadowParent)&&sr(E.delta,g)})[0];if(d&&d.should){p.cancelable&&p.preventDefault();return}if(!d){var m=(i.current.shards||[]).map(ot).filter(Boolean).filter(function(E){return E.contains(p.target)}),C=m.length>0?o(p,m[0]):!i.current.noIsolation;C&&p.cancelable&&p.preventDefault()}}},[]),v=a.useCallback(function(s,p,g,d){var m={name:s,delta:p,target:g,should:d,shadowParent:dr(g)};n.current.push(m),setTimeout(function(){n.current=n.current.filter(function(C){return C!==m})},1)},[]),S=a.useCallback(function(s){t.current=ge(s),r.current=void 0},[]),h=a.useCallback(function(s){v(s.type,rt(s),s.target,o(s,e.lockRef.current))},[]),y=a.useCallback(function(s){v(s.type,ge(s),s.target,o(s,e.lockRef.current))},[]);a.useEffect(function(){return se.push(l),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:y}),document.addEventListener("wheel",u,ce),document.addEventListener("touchmove",u,ce),document.addEventListener("touchstart",S,ce),function(){se=se.filter(function(s){return s!==l}),document.removeEventListener("wheel",u,ce),document.removeEventListener("touchmove",u,ce),document.removeEventListener("touchstart",S,ce)}},[]);var w=e.removeScrollBar,b=e.inert;return a.createElement(a.Fragment,null,b?a.createElement(l,{styles:ir(c)}):null,w?a.createElement(Jn,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function dr(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const fr=Vn(pt,ur);var St=a.forwardRef(function(e,n){return a.createElement(xe,V({},e,{ref:n,sideCar:fr}))});St.classNames=xe.classNames;var pr=[" ","Enter","ArrowUp","ArrowDown"],vr=[" ","Enter"],ne="Select",[be,Ce,mr]=vn(ne),[le,qr]=on(ne,[mr,at]),Ee=at(),[hr,q]=le(ne),[gr,Sr]=le(ne),yt=e=>{const{__scopeSelect:n,children:t,open:r,defaultOpen:c,onOpenChange:l,value:i,defaultValue:o,onValueChange:u,dir:v,name:S,autoComplete:h,disabled:y,required:w,form:b}=e,s=Ee(n),[p,g]=a.useState(null),[d,m]=a.useState(null),[C,E]=a.useState(!1),L=mn(v),[I,A]=ze({prop:r,defaultProp:c??!1,onChange:l,caller:ne}),[j,J]=ze({prop:i,defaultProp:o,onChange:u,caller:ne}),H=a.useRef(null),W=p?b||!!p.closest("form"):!0,[Y,U]=a.useState(new Set),K=Array.from(Y).map(_=>_.props.value).join(";");return f.jsx(dn,{...s,children:f.jsxs(hr,{required:w,scope:n,trigger:p,onTriggerChange:g,valueNode:d,onValueNodeChange:m,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:Ge(),value:j,onValueChange:J,open:I,onOpenChange:A,dir:L,triggerPointerDownPosRef:H,disabled:y,children:[f.jsx(be.Provider,{scope:n,children:f.jsx(gr,{scope:e.__scopeSelect,onNativeOptionAdd:a.useCallback(_=>{U(F=>new Set(F).add(_))},[]),onNativeOptionRemove:a.useCallback(_=>{U(F=>{const G=new Set(F);return G.delete(_),G})},[]),children:t})}),W?f.jsxs(Kt,{"aria-hidden":!0,required:w,tabIndex:-1,name:S,autoComplete:h,value:j,onChange:_=>J(_.target.value),disabled:y,form:b,children:[j===void 0?f.jsx("option",{value:""}):null,Array.from(Y)]},K):null]})})};yt.displayName=ne;var wt="SelectTrigger",xt=a.forwardRef((e,n)=>{const{__scopeSelect:t,disabled:r=!1,...c}=e,l=Ee(t),i=q(wt,t),o=i.disabled||r,u=B(n,i.onTriggerChange),v=Ce(t),S=a.useRef("touch"),[h,y,w]=Yt(s=>{const p=v().filter(m=>!m.disabled),g=p.find(m=>m.value===i.value),d=zt(p,s,g);d!==void 0&&i.onValueChange(d.value)}),b=s=>{o||(i.onOpenChange(!0),w()),s&&(i.triggerPointerDownPosRef.current={x:Math.round(s.pageX),y:Math.round(s.pageY)})};return f.jsx(an,{asChild:!0,...l,children:f.jsx(O.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:o,"data-disabled":o?"":void 0,"data-placeholder":Gt(i.value)?"":void 0,...c,ref:u,onClick:M(c.onClick,s=>{s.currentTarget.focus(),S.current!=="mouse"&&b(s)}),onPointerDown:M(c.onPointerDown,s=>{S.current=s.pointerType;const p=s.target;p.hasPointerCapture(s.pointerId)&&p.releasePointerCapture(s.pointerId),s.button===0&&s.ctrlKey===!1&&s.pointerType==="mouse"&&(b(s),s.preventDefault())}),onKeyDown:M(c.onKeyDown,s=>{const p=h.current!=="";!(s.ctrlKey||s.altKey||s.metaKey)&&s.key.length===1&&y(s.key),!(p&&s.key===" ")&&pr.includes(s.key)&&(b(),s.preventDefault())})})})});xt.displayName=wt;var bt="SelectValue",Ct=a.forwardRef((e,n)=>{const{__scopeSelect:t,className:r,style:c,children:l,placeholder:i="",...o}=e,u=q(bt,t),{onValueNodeHasChildrenChange:v}=u,S=l!==void 0,h=B(n,u.onValueNodeChange);return X(()=>{v(S)},[v,S]),f.jsx(O.span,{...o,ref:h,style:{pointerEvents:"none"},children:Gt(u.value)?f.jsx(f.Fragment,{children:i}):l})});Ct.displayName=bt;var yr="SelectIcon",Et=a.forwardRef((e,n)=>{const{__scopeSelect:t,children:r,...c}=e;return f.jsx(O.span,{"aria-hidden":!0,...c,ref:n,children:r||"▼"})});Et.displayName=yr;var wr="SelectPortal",Tt=e=>f.jsx(hn,{asChild:!0,...e});Tt.displayName=wr;var re="SelectContent",Nt=a.forwardRef((e,n)=>{const t=q(re,e.__scopeSelect),[r,c]=a.useState();if(X(()=>{c(new DocumentFragment)},[]),!t.open){const l=r;return l?ct.createPortal(f.jsx(It,{scope:e.__scopeSelect,children:f.jsx(be.Slot,{scope:e.__scopeSelect,children:f.jsx("div",{children:e.children})})}),l):null}return f.jsx(Rt,{...e,ref:n})});Nt.displayName=re;var D=10,[It,Q]=le(re),xr="SelectContentImpl",br=fn("SelectContent.RemoveScroll"),Rt=a.forwardRef((e,n)=>{const{__scopeSelect:t,position:r="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:l,onPointerDownOutside:i,side:o,sideOffset:u,align:v,alignOffset:S,arrowPadding:h,collisionBoundary:y,collisionPadding:w,sticky:b,hideWhenDetached:s,avoidCollisions:p,...g}=e,d=q(re,t),[m,C]=a.useState(null),[E,L]=a.useState(null),I=B(n,x=>C(x)),[A,j]=a.useState(null),[J,H]=a.useState(null),W=Ce(t),[Y,U]=a.useState(!1),K=a.useRef(!1);a.useEffect(()=>{if(m)return Mn(m)},[m]),yn();const _=a.useCallback(x=>{const[P,...k]=W().map(N=>N.ref.current),[R]=k.slice(-1),T=document.activeElement;for(const N of x)if(N===T||(N==null||N.scrollIntoView({block:"nearest"}),N===P&&E&&(E.scrollTop=0),N===R&&E&&(E.scrollTop=E.scrollHeight),N==null||N.focus(),document.activeElement!==T))return},[W,E]),F=a.useCallback(()=>_([A,m]),[_,A,m]);a.useEffect(()=>{Y&&F()},[Y,F]);const{onOpenChange:G,triggerPointerDownPosRef:z}=d;a.useEffect(()=>{if(m){let x={x:0,y:0};const P=R=>{var T,N;x={x:Math.abs(Math.round(R.pageX)-(((T=z.current)==null?void 0:T.x)??0)),y:Math.abs(Math.round(R.pageY)-(((N=z.current)==null?void 0:N.y)??0))}},k=R=>{x.x<=10&&x.y<=10?R.preventDefault():m.contains(R.target)||G(!1),document.removeEventListener("pointermove",P),z.current=null};return z.current!==null&&(document.addEventListener("pointermove",P),document.addEventListener("pointerup",k,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",P),document.removeEventListener("pointerup",k,{capture:!0})}}},[m,G,z]),a.useEffect(()=>{const x=()=>G(!1);return window.addEventListener("blur",x),window.addEventListener("resize",x),()=>{window.removeEventListener("blur",x),window.removeEventListener("resize",x)}},[G]);const[Te,fe]=Yt(x=>{const P=W().filter(T=>!T.disabled),k=P.find(T=>T.ref.current===document.activeElement),R=zt(P,x,k);R&&setTimeout(()=>R.ref.current.focus())}),Ne=a.useCallback((x,P,k)=>{const R=!K.current&&!k;(d.value!==void 0&&d.value===P||R)&&(j(x),R&&(K.current=!0))},[d.value]),Ie=a.useCallback(()=>m==null?void 0:m.focus(),[m]),oe=a.useCallback((x,P,k)=>{const R=!K.current&&!k;(d.value!==void 0&&d.value===P||R)&&H(x)},[d.value]),pe=r==="popper"?Ve:Pt,ue=pe===Ve?{side:o,sideOffset:u,align:v,alignOffset:S,arrowPadding:h,collisionBoundary:y,collisionPadding:w,sticky:b,hideWhenDetached:s,avoidCollisions:p}:{};return f.jsx(It,{scope:t,content:m,viewport:E,onViewportChange:L,itemRefCallback:Ne,selectedItem:A,onItemLeave:Ie,itemTextRefCallback:oe,focusSelectedItem:F,selectedItemText:J,position:r,isPositioned:Y,searchRef:Te,children:f.jsx(St,{as:br,allowPinchZoom:!0,children:f.jsx(it,{asChild:!0,trapped:d.open,onMountAutoFocus:x=>{x.preventDefault()},onUnmountAutoFocus:M(c,x=>{var P;(P=d.trigger)==null||P.focus({preventScroll:!0}),x.preventDefault()}),children:f.jsx(cn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:x=>x.preventDefault(),onDismiss:()=>d.onOpenChange(!1),children:f.jsx(pe,{role:"listbox",id:d.contentId,"data-state":d.open?"open":"closed",dir:d.dir,onContextMenu:x=>x.preventDefault(),...g,...ue,onPlaced:()=>U(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:M(g.onKeyDown,x=>{const P=x.ctrlKey||x.altKey||x.metaKey;if(x.key==="Tab"&&x.preventDefault(),!P&&x.key.length===1&&fe(x.key),["ArrowUp","ArrowDown","Home","End"].includes(x.key)){let R=W().filter(T=>!T.disabled).map(T=>T.ref.current);if(["ArrowUp","End"].includes(x.key)&&(R=R.slice().reverse()),["ArrowUp","ArrowDown"].includes(x.key)){const T=x.target,N=R.indexOf(T);R=R.slice(N+1)}setTimeout(()=>_(R)),x.preventDefault()}})})})})})})});Rt.displayName=xr;var Cr="SelectItemAlignedPosition",Pt=a.forwardRef((e,n)=>{const{__scopeSelect:t,onPlaced:r,...c}=e,l=q(re,t),i=Q(re,t),[o,u]=a.useState(null),[v,S]=a.useState(null),h=B(n,I=>S(I)),y=Ce(t),w=a.useRef(!1),b=a.useRef(!0),{viewport:s,selectedItem:p,selectedItemText:g,focusSelectedItem:d}=i,m=a.useCallback(()=>{if(l.trigger&&l.valueNode&&o&&v&&s&&p&&g){const I=l.trigger.getBoundingClientRect(),A=v.getBoundingClientRect(),j=l.valueNode.getBoundingClientRect(),J=g.getBoundingClientRect();if(l.dir!=="rtl"){const T=J.left-A.left,N=j.left-T,ee=I.left-N,te=I.width+ee,Re=Math.max(te,A.width),Pe=window.innerWidth-D,Me=$e(N,[D,Math.max(D,Pe-Re)]);o.style.minWidth=te+"px",o.style.left=Me+"px"}else{const T=A.right-J.right,N=window.innerWidth-j.right-T,ee=window.innerWidth-I.right-N,te=I.width+ee,Re=Math.max(te,A.width),Pe=window.innerWidth-D,Me=$e(N,[D,Math.max(D,Pe-Re)]);o.style.minWidth=te+"px",o.style.right=Me+"px"}const H=y(),W=window.innerHeight-D*2,Y=s.scrollHeight,U=window.getComputedStyle(v),K=parseInt(U.borderTopWidth,10),_=parseInt(U.paddingTop,10),F=parseInt(U.borderBottomWidth,10),G=parseInt(U.paddingBottom,10),z=K+_+Y+G+F,Te=Math.min(p.offsetHeight*5,z),fe=window.getComputedStyle(s),Ne=parseInt(fe.paddingTop,10),Ie=parseInt(fe.paddingBottom,10),oe=I.top+I.height/2-D,pe=W-oe,ue=p.offsetHeight/2,x=p.offsetTop+ue,P=K+_+x,k=z-P;if(P<=oe){const T=H.length>0&&p===H[H.length-1].ref.current;o.style.bottom="0px";const N=v.clientHeight-s.offsetTop-s.offsetHeight,ee=Math.max(pe,ue+(T?Ie:0)+N+F),te=P+ee;o.style.height=te+"px"}else{const T=H.length>0&&p===H[0].ref.current;o.style.top="0px";const ee=Math.max(oe,K+s.offsetTop+(T?Ne:0)+ue)+k;o.style.height=ee+"px",s.scrollTop=P-oe+s.offsetTop}o.style.margin=`${D}px 0`,o.style.minHeight=Te+"px",o.style.maxHeight=W+"px",r==null||r(),requestAnimationFrame(()=>w.current=!0)}},[y,l.trigger,l.valueNode,o,v,s,p,g,l.dir,r]);X(()=>m(),[m]);const[C,E]=a.useState();X(()=>{v&&E(window.getComputedStyle(v).zIndex)},[v]);const L=a.useCallback(I=>{I&&b.current===!0&&(m(),d==null||d(),b.current=!1)},[m,d]);return f.jsx(Tr,{scope:t,contentWrapper:o,shouldExpandOnScrollRef:w,onScrollButtonChange:L,children:f.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:f.jsx(O.div,{...c,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});Pt.displayName=Cr;var Er="SelectPopperPosition",Ve=a.forwardRef((e,n)=>{const{__scopeSelect:t,align:r="start",collisionPadding:c=D,...l}=e,i=Ee(t);return f.jsx(sn,{...i,...l,ref:n,align:r,collisionPadding:c,style:{boxSizing:"border-box",...l.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)"}})});Ve.displayName=Er;var[Tr,Ye]=le(re,{}),He="SelectViewport",Mt=a.forwardRef((e,n)=>{const{__scopeSelect:t,nonce:r,...c}=e,l=Q(He,t),i=Ye(He,t),o=B(n,l.onViewportChange),u=a.useRef(0);return f.jsxs(f.Fragment,{children:[f.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:r}),f.jsx(be.Slot,{scope:t,children:f.jsx(O.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:o,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:M(c.onScroll,v=>{const S=v.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:y}=i;if(y!=null&&y.current&&h){const w=Math.abs(u.current-S.scrollTop);if(w>0){const b=window.innerHeight-D*2,s=parseFloat(h.style.minHeight),p=parseFloat(h.style.height),g=Math.max(s,p);if(g<b){const d=g+w,m=Math.min(b,d),C=d-m;h.style.height=m+"px",h.style.bottom==="0px"&&(S.scrollTop=C>0?C:0,h.style.justifyContent="flex-end")}}}u.current=S.scrollTop})})})]})});Mt.displayName=He;var At="SelectGroup",[Nr,Ir]=le(At),_t=a.forwardRef((e,n)=>{const{__scopeSelect:t,...r}=e,c=Ge();return f.jsx(Nr,{scope:t,id:c,children:f.jsx(O.div,{role:"group","aria-labelledby":c,...r,ref:n})})});_t.displayName=At;var Ot="SelectLabel",kt=a.forwardRef((e,n)=>{const{__scopeSelect:t,...r}=e,c=Ir(Ot,t);return f.jsx(O.div,{id:c.id,...r,ref:n})});kt.displayName=Ot;var we="SelectItem",[Rr,Lt]=le(we),jt=a.forwardRef((e,n)=>{const{__scopeSelect:t,value:r,disabled:c=!1,textValue:l,...i}=e,o=q(we,t),u=Q(we,t),v=o.value===r,[S,h]=a.useState(l??""),[y,w]=a.useState(!1),b=B(n,d=>{var m;return(m=u.itemRefCallback)==null?void 0:m.call(u,d,r,c)}),s=Ge(),p=a.useRef("touch"),g=()=>{c||(o.onValueChange(r),o.onOpenChange(!1))};if(r==="")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 f.jsx(Rr,{scope:t,value:r,disabled:c,textId:s,isSelected:v,onItemTextChange:a.useCallback(d=>{h(m=>m||((d==null?void 0:d.textContent)??"").trim())},[]),children:f.jsx(be.ItemSlot,{scope:t,value:r,disabled:c,textValue:S,children:f.jsx(O.div,{role:"option","aria-labelledby":s,"data-highlighted":y?"":void 0,"aria-selected":v&&y,"data-state":v?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...i,ref:b,onFocus:M(i.onFocus,()=>w(!0)),onBlur:M(i.onBlur,()=>w(!1)),onClick:M(i.onClick,()=>{p.current!=="mouse"&&g()}),onPointerUp:M(i.onPointerUp,()=>{p.current==="mouse"&&g()}),onPointerDown:M(i.onPointerDown,d=>{p.current=d.pointerType}),onPointerMove:M(i.onPointerMove,d=>{var m;p.current=d.pointerType,c?(m=u.onItemLeave)==null||m.call(u):p.current==="mouse"&&d.currentTarget.focus({preventScroll:!0})}),onPointerLeave:M(i.onPointerLeave,d=>{var m;d.currentTarget===document.activeElement&&((m=u.onItemLeave)==null||m.call(u))}),onKeyDown:M(i.onKeyDown,d=>{var C;((C=u.searchRef)==null?void 0:C.current)!==""&&d.key===" "||(vr.includes(d.key)&&g(),d.key===" "&&d.preventDefault())})})})})});jt.displayName=we;var de="SelectItemText",Dt=a.forwardRef((e,n)=>{const{__scopeSelect:t,className:r,style:c,...l}=e,i=q(de,t),o=Q(de,t),u=Lt(de,t),v=Sr(de,t),[S,h]=a.useState(null),y=B(n,g=>h(g),u.onItemTextChange,g=>{var d;return(d=o.itemTextRefCallback)==null?void 0:d.call(o,g,u.value,u.disabled)}),w=S==null?void 0:S.textContent,b=a.useMemo(()=>f.jsx("option",{value:u.value,disabled:u.disabled,children:w},u.value),[u.disabled,u.value,w]),{onNativeOptionAdd:s,onNativeOptionRemove:p}=v;return X(()=>(s(b),()=>p(b)),[s,p,b]),f.jsxs(f.Fragment,{children:[f.jsx(O.span,{id:u.textId,...l,ref:y}),u.isSelected&&i.valueNode&&!i.valueNodeHasChildren?ct.createPortal(l.children,i.valueNode):null]})});Dt.displayName=de;var Bt="SelectItemIndicator",Ft=a.forwardRef((e,n)=>{const{__scopeSelect:t,...r}=e;return Lt(Bt,t).isSelected?f.jsx(O.span,{"aria-hidden":!0,...r,ref:n}):null});Ft.displayName=Bt;var We="SelectScrollUpButton",Vt=a.forwardRef((e,n)=>{const t=Q(We,e.__scopeSelect),r=Ye(We,e.__scopeSelect),[c,l]=a.useState(!1),i=B(n,r.onScrollButtonChange);return X(()=>{if(t.viewport&&t.isPositioned){let o=function(){const v=u.scrollTop>0;l(v)};const u=t.viewport;return o(),u.addEventListener("scroll",o),()=>u.removeEventListener("scroll",o)}},[t.viewport,t.isPositioned]),c?f.jsx(Wt,{...e,ref:i,onAutoScroll:()=>{const{viewport:o,selectedItem:u}=t;o&&u&&(o.scrollTop=o.scrollTop-u.offsetHeight)}}):null});Vt.displayName=We;var Ue="SelectScrollDownButton",Ht=a.forwardRef((e,n)=>{const t=Q(Ue,e.__scopeSelect),r=Ye(Ue,e.__scopeSelect),[c,l]=a.useState(!1),i=B(n,r.onScrollButtonChange);return X(()=>{if(t.viewport&&t.isPositioned){let o=function(){const v=u.scrollHeight-u.clientHeight,S=Math.ceil(u.scrollTop)<v;l(S)};const u=t.viewport;return o(),u.addEventListener("scroll",o),()=>u.removeEventListener("scroll",o)}},[t.viewport,t.isPositioned]),c?f.jsx(Wt,{...e,ref:i,onAutoScroll:()=>{const{viewport:o,selectedItem:u}=t;o&&u&&(o.scrollTop=o.scrollTop+u.offsetHeight)}}):null});Ht.displayName=Ue;var Wt=a.forwardRef((e,n)=>{const{__scopeSelect:t,onAutoScroll:r,...c}=e,l=Q("SelectScrollButton",t),i=a.useRef(null),o=Ce(t),u=a.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return a.useEffect(()=>()=>u(),[u]),X(()=>{var S;const v=o().find(h=>h.ref.current===document.activeElement);(S=v==null?void 0:v.ref.current)==null||S.scrollIntoView({block:"nearest"})},[o]),f.jsx(O.div,{"aria-hidden":!0,...c,ref:n,style:{flexShrink:0,...c.style},onPointerDown:M(c.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:M(c.onPointerMove,()=>{var v;(v=l.onItemLeave)==null||v.call(l),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:M(c.onPointerLeave,()=>{u()})})}),Pr="SelectSeparator",Ut=a.forwardRef((e,n)=>{const{__scopeSelect:t,...r}=e;return f.jsx(O.div,{"aria-hidden":!0,...r,ref:n})});Ut.displayName=Pr;var Ke="SelectArrow",Mr=a.forwardRef((e,n)=>{const{__scopeSelect:t,...r}=e,c=Ee(t),l=q(Ke,t),i=Q(Ke,t);return l.open&&i.position==="popper"?f.jsx(ln,{...c,...r,ref:n}):null});Mr.displayName=Ke;var Ar="SelectBubbleInput",Kt=a.forwardRef(({__scopeSelect:e,value:n,...t},r)=>{const c=a.useRef(null),l=B(r,c),i=gn(n);return a.useEffect(()=>{const o=c.current;if(!o)return;const u=window.HTMLSelectElement.prototype,S=Object.getOwnPropertyDescriptor(u,"value").set;if(i!==n&&S){const h=new Event("change",{bubbles:!0});S.call(o,n),o.dispatchEvent(h)}},[i,n]),f.jsx(O.select,{...t,style:{...un,...t.style},ref:l,defaultValue:n})});Kt.displayName=Ar;function Gt(e){return e===""||e===void 0}function Yt(e){const n=Be(e),t=a.useRef(""),r=a.useRef(0),c=a.useCallback(i=>{const o=t.current+i;n(o),function u(v){t.current=v,window.clearTimeout(r.current),v!==""&&(r.current=window.setTimeout(()=>u(""),1e3))}(o)},[n]),l=a.useCallback(()=>{t.current="",window.clearTimeout(r.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(r.current),[]),[t,c,l]}function zt(e,n,t){const c=n.length>1&&Array.from(n).every(v=>v===n[0])?n[0]:n,l=t?e.indexOf(t):-1;let i=_r(e,Math.max(l,0));c.length===1&&(i=i.filter(v=>v!==t));const u=i.find(v=>v.textValue.toLowerCase().startsWith(c.toLowerCase()));return u!==t?u:void 0}function _r(e,n){return e.map((t,r)=>e[(n+r)%e.length])}var Or=yt,$t=xt,kr=Ct,Lr=Et,jr=Tt,Xt=Nt,Dr=Mt,Br=_t,Zt=kt,qt=jt,Fr=Dt,Vr=Ft,Qt=Vt,Jt=Ht,en=Ut;const Qr=Or,Jr=Br,eo=kr,Hr=a.forwardRef(({className:e,children:n,...t},r)=>f.jsxs($t,{ref:r,className:Z("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",e),...t,children:[n,f.jsx(Lr,{asChild:!0,children:f.jsx(st,{className:"h-4 w-4 opacity-50"})})]}));Hr.displayName=$t.displayName;const tn=a.forwardRef(({className:e,...n},t)=>f.jsx(Qt,{ref:t,className:Z("flex cursor-default items-center justify-center py-1",e),...n,children:f.jsx(Sn,{className:"h-4 w-4"})}));tn.displayName=Qt.displayName;const nn=a.forwardRef(({className:e,...n},t)=>f.jsx(Jt,{ref:t,className:Z("flex cursor-default items-center justify-center py-1",e),...n,children:f.jsx(st,{className:"h-4 w-4"})}));nn.displayName=Jt.displayName;const Wr=a.forwardRef(({className:e,children:n,position:t="popper",...r},c)=>f.jsx(jr,{children:f.jsxs(Xt,{ref:c,className:Z("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",t==="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",e),position:t,...r,children:[f.jsx(tn,{}),f.jsx(Dr,{className:Z("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),f.jsx(nn,{})]})}));Wr.displayName=Xt.displayName;const Ur=a.forwardRef(({className:e,...n},t)=>f.jsx(Zt,{ref:t,className:Z("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...n}));Ur.displayName=Zt.displayName;const Kr=a.forwardRef(({className:e,children:n,...t},r)=>f.jsxs(qt,{ref:r,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 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...t,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(Vr,{children:f.jsx(pn,{className:"h-4 w-4"})})}),f.jsx(Fr,{children:n})]}));Kr.displayName=qt.displayName;const Gr=a.forwardRef(({className:e,...n},t)=>f.jsx(en,{ref:t,className:Z("-mx-1 my-1 h-px bg-muted",e),...n}));Gr.displayName=en.displayName;export{Qr as Select,Wr as SelectContent,Jr as SelectGroup,Kr as SelectItem,Ur as SelectLabel,nn as SelectScrollDownButton,tn as SelectScrollUpButton,Gr as SelectSeparator,Hr as SelectTrigger,eo as SelectValue};