PageSourceSearch

https://humjam.com/assets/select-DUEQzH24.js

js humjam.com collected 2026-10-04 12:37:07 UTC 70,919 bytes, 41 lines download raw bytes

1import{r as e,t}from"./jsx-runtime-DGeXAQPT.js";import{W as n,n as r}from"./useStore-B8VQ1jaU.js";import{n as i}from"./link-BWl0DV22.js";import{t as a}from"./redirect-Dhm19zUi.js";import{t as o}from"./check-DV6FURYl.js";import{a as s,c,i as l,l as u,n as d,o as f,r as p,s as m,t as h}from"./dist-9UOrqFhl.js";import{B as g,H as _,V as v,_ as y,b,h as x,v as S}from"./index-B4644gTF.js";import{n as C,t as w}from"./dist-8F4TinVg.js";var T=e(n(),1);function E(e){let t=r();return T.useCallback(async(...n)=>{try{let t=await e(...n);if(a(t))throw t;return t}catch(e){if(a(e))return e.options._fromLocation=t.stores.location.get(),t.navigate(t.resolveRedirect(e).options);throw e}},[t,e])}var D=b(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),O=t(),k=T.forwardRef(({className:e,...t},n)=>(0,O.jsx)(`textarea`,{className:x(`flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:n,...t}));k.displayName=`Textarea`;var A=e(i(),1),j=Object.defineProperty,M=(e,t)=>j(e,`name`,{value:t,configurable:!0});function N(e,[t,n]){return Math.min(n,Math.max(t,e))}M(N,`clamp`);var P=Object.defineProperty,F=(e,t)=>P(e,`name`,{value:t,configurable:!0});function I(e){let t=T.useRef(e);return T.useEffect(()=>{t.current=e}),T.useMemo(()=>((...e)=>t.current?.(...e)),[])}F(I,`useCallbackRef`);var L=Object.defineProperty,R=(e,t)=>L(e,`name`,{value:t,configurable:!0}),z=`dismissableLayer.update`,B=`dismissableLayer.pointerDownOutside`,ee=`dismissableLayer.focusOutside`,te,ne=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),re=T.forwardRef(R(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...u}=e,d=T.useContext(ne),[f,p]=T.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=T.useState({}),g=S(t,p),_=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=v?_.indexOf(v):-1,b=f?_.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=b>=y,E=T.useRef(!1),D=oe(e=>{a?.(e),s?.(e),e.defaultPrevented||l?.()},{ownerDocument:m,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:E,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:T.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...d.branches].some(t=>t.contains(e));return C&&!t},[d.branches,C])}),k=se(e=>{if(r&&E.current)return;let t=e.target;[...d.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||l?.())},m),A=f?b===_.length-1:!1,j=I(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return T.useEffect(()=>{if(A)return m.addEventListener(`keydown`,j,{capture:!0}),()=>m.removeEventListener(`keydown`,j,{capture:!0})},[m,A,j]),T.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(te=m.body.style.pointerEvents,m.body.style.pointerEvents=`none`),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),ce(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=te))}},[f,m,n,d]),T.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),ce())},[f,d]),T.useEffect(()=>{let e=R(()=>h({}),`handleUpdate`);return document.addEventListener(z,e),()=>document.removeEventListener(z,e)},[]),(0,O.jsx)(w.div,{...u,ref:g,style:{pointerEvents:x?C?`auto`:`none`:void 0,...e.style},onFocusCapture:c(e.onFocusCapture,k.onFocusCapture),onBlurCapture:c(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:c(e.onPointerDownCapture,D.onPointerDownCapture)})},`DismissableLayer`));function ie(){let e=T.useContext(ne),[t,n]=T.useState(null);return T.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}R(ie,`useDismissableLayerSurface`);var ae=R(()=>!0,`IS_TRUE`);function oe(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=ae}=t,s=I(e),c=T.useRef(!1),l=T.useRef(!1),u=T.useRef(new Map),d=T.useRef(()=>{});return T.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}R(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}R(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}R(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}R(p,`handleInteractionBubble`);let m=R(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||le(B,s,p,{discrete:!0})};if(R(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(
1),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:R(()=>c.current=!0,`onPointerDownCapture`)}}R(oe,`usePointerDownOutside`);function se(e,t=globalThis?.document){let n=I(e),r=T.useRef(!1);return T.useEffect(()=>{let e=R(e=>{e.target&&!r.current&&le(ee,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:R(()=>r.current=!0,`onFocusCapture`),onBlurCapture:R(()=>r.current=!1,`onBlurCapture`)}}R(se,`useFocusOutside`);function ce(){let e=new CustomEvent(z);document.dispatchEvent(e)}R(ce,`dispatchUpdate`);function le(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?C(i,a):i.dispatchEvent(a)}R(le,`handleAndDispatchCustomEvent`);var ue=Object.defineProperty,de=(e,t)=>ue(e,`name`,{value:t,configurable:!0}),fe=0,pe=null;function me(e){return he(),e.children}de(me,`FocusGuards`);function he(){T.useEffect(()=>{pe||={start:ge(),end:ge()};let{start:e,end:t}=pe;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),fe++,()=>{fe===1&&(pe?.start.remove(),pe?.end.remove(),pe=null),fe=Math.max(0,fe-1)}},[])}de(he,`useFocusGuards`);function ge(){let 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}de(ge,`createFocusGuard`);var _e=Object.defineProperty,V=(e,t)=>_e(e,`name`,{value:t,configurable:!0}),ve=`focusScope.autoFocusOnMount`,ye=`focusScope.autoFocusOnUnmount`,be={bubbles:!1,cancelable:!0},xe=T.forwardRef(V(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=T.useState(null),l=I(i),u=I(a),d=T.useRef(null),f=S(t,c),p=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:H(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||H(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&H(s)};V(e,`handleFocusIn`),V(t,`handleFocusOut`),V(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),T.useEffect(()=>{if(s){Oe.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(ve,be);s.addEventListener(ve,l),s.dispatchEvent(t),t.defaultPrevented||(Se(je(we(s)),{select:!0}),document.activeElement===e&&H(s))}return()=>{s.removeEventListener(ve,l),setTimeout(()=>{let t=new CustomEvent(ye,be);s.addEventListener(ye,u),s.dispatchEvent(t),t.defaultPrevented||H(e??document.body,{select:!0}),s.removeEventListener(ye,u),Oe.remove(p)},0)}}},[s,l,u,p]);let m=T.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Ce(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&H(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&H(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,O.jsx)(w.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function Se(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(H(r,{select:t}),document.activeElement!==n)return}V(Se,`focusFirst`);function Ce(e){let t=we(e);return[Te(t,e),Te(t.reverse(),e)]}V(Ce,`getTabbableEdges`);function we(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:V(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)}
1);for(;n.nextNode();)t.push(n.currentNode);return t}V(we,`getTabbableCandidates`);function Te(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Ee(r,{upTo:t})))return r}V(Te,`findVisible`);function Ee(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}V(Ee,`isHidden`);function De(e){return e instanceof HTMLInputElement&&`select`in e}V(De,`isSelectableInput`);function H(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&De(e)&&t&&e.select()}}V(H,`focus`);var Oe=ke();function ke(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Ae(e,t),e.unshift(t)},remove(t){e=Ae(e,t),e[0]?.resume()}}}V(ke,`createFocusScopesStack`);function Ae(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}V(Ae,`arrayRemove`);function je(e){return e.filter(e=>e.tagName!==`A`)}V(je,`removeLinks`);var Me=[`top`,`right`,`bottom`,`left`],Ne=Math.min,U=Math.max,Pe=Math.round,Fe=Math.floor,W=e=>({x:e,y:e}),Ie={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Le(e,t,n){return U(e,Ne(t,n))}function G(e,t){return typeof e==`function`?e(t):e}function K(e){return e.split(`-`)[0]}function Re(e){return e.split(`-`)[1]}function ze(e){return e===`x`?`y`:`x`}function Be(e){return e===`y`?`height`:`width`}function q(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ve(e){return ze(q(e))}function He(e,t,n){n===void 0&&(n=!1);let r=Re(e),i=Ve(e),a=Be(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Ze(o)),[o,Ze(o)]}function Ue(e){let t=Ze(e);return[We(e),t,We(t)]}function We(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ge=[`left`,`right`],Ke=[`right`,`left`],qe=[`top`,`bottom`],Je=[`bottom`,`top`];function Ye(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ke:Ge:t?Ge:Ke;case`left`:case`right`:return t?qe:Je;default:return[]}}function Xe(e,t,n,r){let i=Re(e),a=Ye(K(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(We)))),a}function Ze(e){let t=K(e);return Ie[t]+e.slice(t.length)}function Qe(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function $e(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Qe(e)}function et(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function tt(e,t,n){let{reference:r,floating:i}=e,a=q(t),o=Ve(t),s=Be(o),c=K(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Re(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function nt(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=G(t,e),p=$e(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=et(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=et(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var rt=50,it=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:nt},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}
1),{x:u,y:d}=tt(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<rt&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=tt(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},at=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=G(e,t)||{};if(l==null)return{};let d=$e(u),f={x:n,y:r},p=Ve(i),m=Be(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Ne(d[_],T),D=Ne(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Le(E,k,O),j=!c.arrow&&Re(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),ot=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=G(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=K(r),_=q(o),v=K(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Ze(o)]:Ue(o)),x=p!==`none`;!d&&x&&b.push(...Xe(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=He(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==q(t))||T.every(e=>q(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=q(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function st(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ct(e){return Me.some(t=>e[t]>=0)}var lt=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=G(e,t);switch(i){case`referenceHidden`:{let e=st(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ct(e)}}}case`escaped`:{let e=st(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ct(e)}}}default:return{}}}}},ut=new Set([`left`,`top`]);async function dt(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=K(n),s=Re(n),c=q(n)===`y`,l=ut.has(o)?-1:1,u=a&&c?-1:1,d=G(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ft=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await dt(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},pt=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=G(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=q(i),p=ze(f),m=u[p],h=u[f],g=(e,t)=>Le(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},mt=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=G(e,t),u={x:n,y:r},d=q(i),f=ze(d),p=u[f],m=u[d],h=G(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ut.has(K(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ht=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=G(e,t),c=await i.detectOverflow(t,s),l=K(n),u=Re(n),d=q(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Ne(p-c[m],g),y=Ne(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*U(c.left,c.right):S=p-2*U(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function gt(){return typeof window<`u`}function _t(e){return vt(e)?(e.nodeName||``).toLowerCase():`#document`}function J(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Y(e){return((vt(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function vt(e){return gt()?e instanceof Node||e instanceof J(e).Node:!1}function X(e){return gt()?e instanceof Element||e instanceof J(e).Element:!1}function yt(e){return gt()?e instanceof HTMLElement||e instanceof J(e).HTMLElement:!1}function bt(e){return!gt()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof J(e).ShadowRoot}function xt(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function St(e){return/^(table|td|th)$/.test(_t(e))}function Ct(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var wt=/transform|translate|scale|rotate|perspective|filter/,Tt=/paint|layout|strict|content/,Et=e=>!!e&&e!==`none`,Dt;function Ot(e){let t=X(e)?Z(e):e;return Et(t.transform)||Et(t.translate)||Et(t.scale)||Et(t.rotate)||Et(t.perspective)||!At()&&(Et(t.backdropFilter)||Et(t.filter))||wt.test(t.willChange||``)||Tt.test(t.contain||``)}function kt(e){let t=Nt(e);for(;yt(t)&&!jt(t);){if(Ot(t))return t;if(Ct(t))return null;t=Nt(t)}return null}function At(){return Dt??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Dt}function jt(e){return/^(html|body|#document)$/.test(_t(e))}function Z(e){return J(e).getComputedStyle(e)}function Mt(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Nt(e){if(_t(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||bt(e)&&e.host||Y(e);return bt(t)?t.host:t}function Pt(e){let t=Nt(e);return jt(t)?(e.ownerDocument||e).body:yt(t)&&xt(t)?t:Pt(t)}function Ft(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Pt(e),i=r===e.ownerDocument?.body,a=J(r);
vendor: 4,228 bytes, line 1
1if(i){let e=It(a);return t.concat(a,a.visualViewport||[],xt(r)?r:[],e&&n?Ft(e):[])}else return t.concat(r,Ft(r,[],n))}function It(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lt(e){let t=Z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=yt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Pe(n)!==a||Pe(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Rt(e){return X(e)?e:e.contextElement}function zt(e){let t=Rt(e);if(!yt(t))return W(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Lt(t),o=(a?Pe(n.width):n.width)/r,s=(a?Pe(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Bt=W(0);function Vt(e){let t=J(e);return!At()||!t.visualViewport?Bt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ht(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===J(e)}function Ut(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Rt(e),o=W(1);t&&(r?X(r)&&(o=zt(r)):o=zt(e));let s=Ht(a,n,r)?Vt(a):W(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=J(a),t=X(r)?J(r):r,n=e,i=It(n);for(;i&&t!==n;){let e=zt(i),t=i.getBoundingClientRect(),r=Z(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=J(i),i=It(n)}}return et({width:u,height:d,x:c,y:l})}function Wt(e,t){let n=Mt(e).scrollLeft;return t?t.left+n:Ut(Y(e)).left+n}function Gt(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Wt(e,n),y:n.top+t.scrollTop}}function Kt(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Y(r),s=t?Ct(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=W(1),u=W(0),d=yt(r);if((d||!a)&&((_t(r)!==`body`||xt(o))&&(c=Mt(r)),d)){let e=Ut(r);l=zt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Gt(o,c):W(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function qt(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Jt(e){let t=Mt(e),n=e.ownerDocument.body,r=U(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=U(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Wt(e),o=-t.scrollTop;return Z(n).direction===`rtl`&&(a+=U(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Yt=25;function Xt(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=J(e),a=Y(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!At()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Wt(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Yt&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Zt(e,t){let n=Ut(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=zt(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Qt(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Xt(e,n,t);else if(t===`document`)r=Jt(Y(e));else if(X(t))r=Zt(t,n);else{let n=Vt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return et(r)}function $t(e,t){let n=t.get(e);if(n)return n;let r=Ft(e,[],!1).filter(e=>X(e)&&_t(e)!==`body`),i=null,a=Z(e).position===`fixed`,o=a?Nt(e):e;for(;X(o)&&!jt(o);){let e=Z(o),t=Ot(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Nt(o)}return t.set(e,r),r}function en(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ct(t)?[]:$t(t,this._c):[].concat(n),r],o=Qt(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Qt(t,a[e],i);s=U(n.top,s),c=Ne(n.right,c),l=Ne(n.bottom,l),u=U(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function tn(e){let{width:t,height:n}=Lt(e);return{width:t,height:n}}function nn(e,t,n){let r=yt(t),i=Y(t),a=n===`fixed`,o=Ut(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=W(0);
vendor: 4,209 bytes, line 1
1if((r||!a)&&((_t(t)!==`body`||xt(i))&&(s=Mt(t)),r)){let e=Ut(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Wt(i));let l=i&&!r&&!a?Gt(i,s):W(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function rn(e){return Z(e).position===`static`}function an(e,t){if(!yt(e)||Z(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Y(e)===n&&(n=n.ownerDocument.body),n}function on(e,t){let n=J(e);if(Ct(e))return n;if(!yt(e)){let t=Nt(e);for(;t&&!jt(t);){if(X(t)&&!rn(t))return t;t=Nt(t)}return n}let r=an(e,t);for(;r&&St(r)&&rn(r);)r=an(r,t);return r&&jt(r)&&rn(r)&&!Ot(r)?n:r||kt(e)||n}var sn=async function(e){let t=this.getOffsetParent||on,n=this.getDimensions,r=await n(e.floating);return{reference:nn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function cn(e){return Z(e).direction===`rtl`}var ln={convertOffsetParentRelativeRectToViewportRelativeRect:Kt,getDocumentElement:Y,getClippingRect:en,getOffsetParent:on,getElementRects:sn,getClientRects:qt,getDimensions:tn,getScale:zt,isElement:X,isRTL:cn};function un(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function dn(e,t,n){let r=null,i,a=Y(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Fe(d),h=Fe(a.clientWidth-(u+f)),g=Fe(a.clientHeight-(d+p)),_=Fe(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:U(0,Ne(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!un(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=J(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function fn(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Rt(e),u=i||a?[...l?Ft(l):[],...t?Ft(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?dn(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Ut(e):null;c&&g();function g(){let t=Ut(e);h&&!un(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var pn=ft,mn=pt,hn=ot,gn=ht,_n=lt,vn=at,yn=mt,bn=(e,t,n)=>{let r=new Map,i=n??{},a={...ln,...i.platform,_c:r};return it(e,t,{...i,platform:a})},xn=typeof document<`u`?T.useLayoutEffect:function(){};function Sn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Sn(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Sn(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Cn(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wn(e,t){let n=Cn(e);return Math.round(t*n)/n}function Tn(e){let t=T.useRef(e);return xn(()=>{t.current=e}),t}function En(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=T.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=T.useState(r);Sn(f,r)||p(r);let[m,h]=T.useState(null),[g,_]=T.useState(null),v=T.useCallback(e=>
1{e!==S.current&&(S.current=e,h(e))},[]),y=T.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=T.useRef(null),C=T.useRef(null),w=T.useRef(u),E=c!=null,D=Tn(c),O=Tn(i),k=Tn(l),j=T.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),bn(S.current,C.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};M.current&&!Sn(w.current,t)&&(w.current=t,A.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);xn(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let M=T.useRef(!1);xn(()=>(M.current=!0,()=>{M.current=!1}),[]),xn(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(D.current)return D.current(b,x,j);j()}},[b,x,j,D,E]);let N=T.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),P=T.useMemo(()=>({reference:b,floating:x}),[b,x]),F=T.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=wn(P.floating,u.x),r=wn(P.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Cn(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,P.floating,u.x,u.y]);return T.useMemo(()=>({...u,update:j,refs:N,elements:P,floatingStyles:F}),[u,j,N,P,F])}var Dn=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:vn({element:r.current,padding:i}).fn(n):r?vn({element:r,padding:i}).fn(n):{}}}},On=(e,t)=>{let n=pn(e);return{name:n.name,fn:n.fn,options:[e,t]}},kn=(e,t)=>{let n=mn(e);return{name:n.name,fn:n.fn,options:[e,t]}},An=(e,t)=>({fn:yn(e).fn,options:[e,t]}),jn=(e,t)=>{let n=hn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Mn=(e,t)=>{let n=gn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nn=(e,t)=>{let n=_n(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pn=(e,t)=>{let n=Dn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Fn=Object.defineProperty,In=(e,t)=>Fn(e,`name`,{value:t,configurable:!0});function Ln(e){let[t,n]=T.useState(void 0);return l(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}In(Ln,`useSize`);var Rn=Object.defineProperty,zn=(e,t)=>Rn(e,`name`,{value:t,configurable:!0}),Bn=`Popper`,[Vn,Hn]=m(Bn),[Un,Wn]=Vn(Bn),Gn=zn(e=>{let{__scopePopper:t,children:n}=e,[r,i]=T.useState(null),[a,o]=T.useState(void 0);return(0,O.jsx)(Un,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Kn=`PopperAnchor`,qn=T.forwardRef(zn(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Wn(Kn,n),o=T.useRef(null),s=a.onAnchorChange,c=S(t,T.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=T.useRef(null);T.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&er(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,O.jsx)(w.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),Jn=`PopperContent`,[Yn,Xn]=Vn(Jn),Zn=T.forwardRef(zn(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f=`partial`,hideWhenDetached:p=!1,updatePositionStrategy:m=`optimized`,onPlaced:h,...g}=e,_=Wn(Jn,n),[v,y]=T.useState(null),b=S(t,y),[x,C]=T.useState(null),E=Ln(x),D=E?.width??0,k=E?.height??0,A=r+(a===`center`?``:`-`+a),j=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},M=Array.isArray(u)?u:[u],N=M.length>0,P={padding:j,boundary:M.filter(Qn),altBoundary:N},{refs:F,floatingStyles:L,placement:R,isPositioned:z,middlewareData:B}=En({strategy:`fixed`,placement:A,whileElementsMounted:zn((...e)=>fn(...e,{animationFrame:m===`always`}),`whileElementsMounted`),elements:{reference:_.anchor},middleware:[On({mainAxis:i+k,alignmentAxis:o}),c&&kn({mainAxis:!0,crossAxis:!1,limiter:f===`partial`?An():void 0,...P}),c&&jn({...P}),Mn({...P,apply:zn(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}
1),x&&Pn({element:x,padding:s}),$n({arrowWidth:D,arrowHeight:k}),p&&Nn({strategy:`referenceHidden`,...P,boundary:N?P.boundary:void 0})]}),ee=_.setPlacementState;l(()=>(ee(R),()=>{ee(void 0)}),[R,ee]);let[te,ne]=er(R),re=I(h);l(()=>{z&&re?.()},[z,re]);let ie=B.arrow?.x,ae=B.arrow?.y,oe=B.arrow?.centerOffset!==0,[se,ce]=T.useState();return l(()=>{v&&ce(window.getComputedStyle(v).zIndex)},[v]),(0,O.jsx)(`div`,{ref:F.setFloating,"data-radix-popper-content-wrapper":``,style:{...L,transform:z?L.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(` `),...B.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,O.jsx)(Yn,{scope:n,placedSide:te,placedAlign:ne,onArrowChange:C,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,O.jsx)(w.div,{"data-side":te,"data-align":ne,...g,ref:b,style:{...g.style,animation:z?g.style?.animation:`none`}})})})},`PopperContent`));function Qn(e){return e!==null}zn(Qn,`isNotNull`);var $n=zn(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=er(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function er(e){let[t,n=`center`]=e.split(`-`);return[t,n]}zn(er,`getSideAndAlignFromPlacement`);var tr=Gn,nr=qn,rr=Zn,ir=Object.defineProperty,ar=T.forwardRef(((e,t)=>ir(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=T.useState(!1);l(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?A.createPortal((0,O.jsx)(w.div,{...r,ref:t}),o):null},`Portal`)),or=Object.defineProperty,sr=(e,t)=>
vendor: 10,662 bytes, lines 1-41
1or(e,`name`,{value:t,configurable:!0});function cr(e){let t=T.useRef({value:e,previous:e});return T.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}sr(cr,`usePrevious`);var lr=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),ur=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},dr=new WeakMap,fr=new WeakMap,pr={},mr=0,hr=function(e){return e&&(e.host||hr(e.parentNode))},gr=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=hr(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},_r=function(e,t,n,r){var i=gr(t,Array.isArray(e)?e:[e]);pr[n]||(pr[n]=new WeakMap);var a=pr[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(dr.get(e)||0)+1,l=(a.get(e)||0)+1;dr.set(e,c),a.set(e,l),o.push(e),c===1&&i&&fr.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),mr++,function(){o.forEach(function(e){var t=dr.get(e)-1,i=a.get(e)-1;dr.set(e,t),a.set(e,i),t||(fr.has(e)||e.removeAttribute(r),fr.delete(e)),i||e.removeAttribute(n)}),mr--,mr||(dr=new WeakMap,dr=new WeakMap,fr=new WeakMap,pr={})}},vr=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||ur(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),_r(r,i,n,`aria-hidden`)):function(){return null}},yr=`right-scroll-bar-position`,br=`width-before-scroll-bar`,xr=`with-scroll-bars-hidden`,Sr=`--removed-body-scroll-bar-size`;function Cr(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function wr(e,t){var n=(0,T.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Tr=typeof window<`u`?T.useLayoutEffect:T.useEffect,Er=new WeakMap;function Dr(e,t){var n=wr(t||null,function(t){return e.forEach(function(e){return Cr(e,t)})});return Tr(function(){var t=Er.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Cr(e,null)}),i.forEach(function(e){r.has(e)||Cr(e,a)})}Er.set(n,e)},[e]),n}function Or(e){return e}function kr(e,t){t===void 0&&(t=Or);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Ar(e){e===void 0&&(e={});var t=kr(null);return t.options=g({async:!0,ssr:!1},e),t}var jr=function(e){var t=e.sideCar,n=v(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return T.createElement(r,g({},n))};jr.isSideCarExport=!0;function Mr(e,t){return e.useMedium(t),jr}var Nr=Ar(),Pr=function(){},Fr=T.forwardRef(function(e,t){var n=T.useRef(null),r=T.useState({onScrollCapture:Pr,onWheelCapture:Pr,onTouchMoveCapture:Pr}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,_=e.allowPinchZoom,y=e.as,b=y===void 0?`div`:y,x=e.gapMode,S=v(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),C=f,w=Dr([n,t]),E=g(g({},S),i);return T.createElement(T.Fragment,null,u&&T.createElement(C,{sideCar:Nr,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:x}),o?T.cloneElement(T.Children.only(s),g(g({},E),{ref:w})):T.createElement(b,g({},E,{className:c,ref:w}),s))});Fr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fr.classNames={fullWidth:br,zeroRight:yr};var Ir,Lr=function(){if(Ir)return Ir;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Rr(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Lr();return t&&e.setAttribute(`nonce`,t),e}function zr(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Br(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Vr=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Rr())&&(zr(t,n),Br(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Hr=function(){var e=Vr();return function(t,n){T.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ur=function(){var e=Hr();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Wr={left:0,top:0,right:0,gap:0},Gr=function(e){return parseInt(e||``,10)||0},Kr=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Gr(n),Gr(r),Gr(i)]},qr=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Wr;var t=Kr(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Jr=Ur(),Yr=`data-scroll-locked`,Xr=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2  .${xr} {
3   overflow: hidden ${r};
4   padding-right: ${s}px ${r};
5  }
6  body[${Yr}] {
7    overflow: hidden ${r};
8    overscroll-behavior: contain;
9    ${[t&&`position: relative ${r};`,n===`margin`&&`
10    padding-left: ${i}px;
11    padding-top: ${a}px;
12    padding-right: ${o}px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: ${s}px ${r};
16    `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17  }
18  
19  .${yr} {
20    right: ${s}px ${r};
21  }
22  
23  .${br} {
24    margin-right: ${s}px ${r};
25  }
26  
27  .${yr} .${yr} {
28    right: 0 ${r};
29  }
30  
31  .${br} .${br} {
32    margin-right: 0 ${r};
33  }
34  
35  body[${Yr}] {
36    ${Sr}: ${s}px;
37  }
38`},Zr=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Qr=function(){T.useEffect(function(){return document.body.setAttribute(Yr,(Zr()+1).toString()),function(){var e=Zr()-1;e<=0?document.body.removeAttribute(Yr):document.body.setAttribute(Yr,e.toString())}},[])},$r=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Qr();var a=T.useMemo(function(){return qr(i)},[i]);return T.createElement(Jr,{styles:Xr(a,!t,i,n?``:`!important`)})},ei=!1;if(typeof window<`u`)try{var ti=Object.defineProperty({},"passive",{get:function(){return ei=!0,!0}});window.addEventListener(`test`,ti,ti),window.removeEventListener(`test`,ti,ti)}catch{ei=!1}var ni=ei?{passive:!1}:!1,ri=function(e){return e.tagName===`TEXTAREA`},ii=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!ri(e)&&n[t]===`visible`)},ai=function(e){return ii(e,`overflowY`)},oi=function(e){return ii(e,`overflowX`)},si=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),ui(e,r)){var i=di(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ci=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},li=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},ui=function(e,t){return e===`v`?ai(t):oi(t)},di=function(e,t){return e===`v`?ci(t):li(t)},fi=function(e,t){return e===`h`&&t===`rtl`?-1:1},pi=function(e,t,n,r,i){var a=fi(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=di(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&ui(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},mi=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hi=function(e){return[e.deltaX,e.deltaY]},gi=function(e){return e&&`current`in e?e.current:e},_i=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vi=function(e){return`
39  .block-interactivity-${e} {pointer-events: none;}
40  .allow-interactivity-${e} {pointer-events: all;}
41`},yi=0,bi=[];function xi(e){var t=T.useRef([]),n=T.useRef([0,0]),r=T.useRef(),i=T.useState(yi++)[0],a=T.useState(Ur)[0],o=T.useRef(e);T.useEffect(function(){o.current=e},[e]),T.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=_([e.lockRef.current],(e.shards||[]).map(gi),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=T.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=mi(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=si(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=si(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return pi(h,t,e,h===`h`?s:c,!0)},[]),c=T.useCallback(function(e){var n=e;if(!(!bi.length||bi[bi.length-1]!==a)){var r=`deltaY`in n?hi(n):mi(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&_i(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}
41if(!i){var c=(o.current.shards||[]).map(gi).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=T.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Si(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=T.useCallback(function(e){n.current=mi(e),r.current=void 0},[]),d=T.useCallback(function(t){l(t.type,hi(t),t.target,s(t,e.lockRef.current))},[]),f=T.useCallback(function(t){l(t.type,mi(t),t.target,s(t,e.lockRef.current))},[]);T.useEffect(function(){return bi.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,ni),document.addEventListener(`touchmove`,c,ni),document.addEventListener(`touchstart`,u,ni),function(){bi=bi.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,ni),document.removeEventListener(`touchmove`,c,ni),document.removeEventListener(`touchstart`,u,ni)}},[]);var p=e.removeScrollBar,m=e.inert;return T.createElement(T.Fragment,null,m?T.createElement(a,{styles:vi(i)}):null,p?T.createElement($r,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Si(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ci=Mr(Nr,xi),wi=T.forwardRef(function(e,t){return T.createElement(Fr,g({},e,{ref:t,sideCar:Ci}))});wi.classNames=Fr.classNames;var Ti=Object.defineProperty,Q=(e,t)=>Ti(e,`name`,{value:t,configurable:!0}),Ei=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Di=[` `,`Enter`],Oi=`Select`,[ki,Ai,ji]=f(Oi),[Mi,Ni]=m(Oi,[ji,Hn]),Pi=Hn(),[Fi,Ii]=Mi(Oi),[Li,Ri]=Mi(Oi);function zi(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:c,onValueChange:l,dir:u,name:d,autoComplete:f,disabled:m,required:g,form:_,internal_do_not_use_render:v}=e,y=Pi(t),[b,x]=T.useState(null),[S,C]=T.useState(null),[w,E]=T.useState(!1),D=s(u),[k,A]=h({prop:r,defaultProp:i??!1,onChange:a,caller:Oi}),[j,M]=h({prop:o,defaultProp:c,onChange:l,caller:Oi}),N=T.useRef(null),P=T.useRef(j);T.useEffect(()=>{let e=_?b?.ownerDocument.getElementById(_):b?.form;if(e instanceof HTMLFormElement){let t=Q(()=>M(P.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[_,b,M]);let F=!b||!!_||!!b.closest(`form`),[I,L]=T.useState(new Set),R=p(),z=Array.from(I).map(e=>e.props.value).join(`;`),B=T.useCallback(e=>{L(t=>new Set(t).add(e))},[]),ee=T.useCallback(e=>{L(t=>{let n=new Set(t);return n.delete(e),n})},[]),te={required:g,trigger:b,onTriggerChange:x,valueNode:S,onValueNodeChange:C,valueNodeHasChildren:w,onValueNodeHasChildrenChange:E,contentId:R,value:j,onValueChange:M,open:k,onOpenChange:A,dir:D,triggerPointerDownPosRef:N,disabled:m,name:d,autoComplete:f,form:_,nativeOptions:I,nativeSelectKey:z,isFormControl:F};return(0,O.jsx)(tr,{...y,children:(0,O.jsx)(Fi,{scope:t,...te,children:(0,O.jsx)(ki.Provider,{scope:t,children:(0,O.jsx)(Li,{scope:t,onNativeOptionAdd:B,onNativeOptionRemove:ee,children:Oa(v)?v(te):n})})})})}Q(zi,`SelectProvider`);var Bi=Q(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,O.jsx)(zi,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,O.jsxs)(O.Fragment,{children:[n,e?(0,O.jsx)(Da,{__scopeSelect:t}):null]})})},`Select`),Vi=`SelectTrigger`,Hi=T.forwardRef(Q(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=Pi(n),o=Ii(Vi,n),s=o.disabled||r,l=S(t,o.onTriggerChange),u=Ai(n),d=T.useRef(`touch`),[f,p,m]=Aa(e=>{let t=u().filter(e=>!e.disabled),n=ja(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),h=Q(e=>{s||(o.onOpenChange(!0),m()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,O.jsx)(nr,{asChild:!0,...a,children:(0,O.jsx)(w.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":ka(o.value)?``:void 0,...i,ref:l,onClick:c(i.onClick,e=>
41{e.currentTarget.focus(),d.current!==`mouse`&&h(e)}),onPointerDown:c(i.onPointerDown,e=>{d.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(h(e),e.preventDefault())}),onKeyDown:c(i.onKeyDown,e=>{let t=f.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&p(e.key),!(t&&e.key===` `)&&Ei.includes(e.key)&&(h(),e.preventDefault())})})})},`SelectTrigger`)),Ui=`SelectValue`,Wi=T.forwardRef(Q(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Ii(Ui,n),{onValueNodeHasChildrenChange:u}=c,d=a!==void 0,f=S(t,c.onValueNodeChange);l(()=>{u(d)},[u,d]);let p=ka(c.value);return(0,O.jsx)(w.span,{...s,asChild:!p&&s.asChild,ref:f,style:{pointerEvents:`none`},children:(0,O.jsx)(T.Fragment,{children:p?o:a},p?`placeholder`:`value`)})},`SelectValue`)),Gi=T.forwardRef(Q(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,O.jsx)(w.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[Ki,qi]=Mi(`SelectPortal`,{forceMount:void 0}),Ji=Q(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,O.jsx)(Ki,{scope:e.__scopeSelect,forceMount:n,children:(0,O.jsx)(ar,{asChild:!0,...r})})},`SelectPortal`),Yi=`SelectContent`,Xi=T.forwardRef(Q(function(e,t){let n=qi(Yi,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=Ii(Yi,e.__scopeSelect),[o,s]=T.useState();return l(()=>{s(new DocumentFragment)},[]),(0,O.jsx)(d,{present:r||a.open,children:({present:e})=>e?(0,O.jsx)(ta,{...i,ref:t}):(0,O.jsx)(Zi,{...i,fragment:o})})},`SelectContent`)),Zi=T.forwardRef(Q(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?A.createPortal((0,O.jsx)(Qi,{scope:n,children:(0,O.jsx)(ki.Slot,{scope:n,children:(0,O.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),$=10,[Qi,$i]=Mi(Yi),ea=y(`SelectContent.RemoveScroll`),ta=T.forwardRef(Q(function(e,t){let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:
41h,hideWhenDetached:g,avoidCollisions:_,...v}=e,y=Ii(Yi,n),[b,x]=T.useState(null),[C,w]=T.useState(null),E=S(t,x),[D,k]=T.useState(null),[A,j]=T.useState(null),M=Ai(n),[N,P]=T.useState(!1),F=T.useRef(!1);T.useEffect(()=>{if(b)return vr(b)},[b]),he();let I=T.useCallback(e=>{let[t,...n]=M().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&C&&(C.scrollTop=0),n===r&&C&&(C.scrollTop=C.scrollHeight),n?.focus(),document.activeElement!==i))return},[M,C]),L=T.useCallback(()=>I([D,b]),[I,D,b]);T.useEffect(()=>{N&&L()},[N,L]);let{onOpenChange:R,triggerPointerDownPosRef:z}=y;T.useEffect(()=>{if(b){let e={x:0,y:0},t=Q(t=>{e={x:Math.abs(Math.round(t.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(z.current?.y??0))}},`handlePointerMove`),n=Q(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(b)||R(!1),document.removeEventListener(`pointermove`,t),z.current=null},`handlePointerUp`);return z.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[b,R,z]),T.useEffect(()=>{let e=Q(()=>R(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[R]);let[B,ee]=Aa(e=>{let t=M().filter(e=>!e.disabled),n=ja(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),te=T.useCallback((e,t,n)=>{let r=!F.current&&!n;(y.value!==void 0&&y.value===t||r)&&(k(e),r&&(F.current=!0))},[y.value]),ne=T.useCallback(()=>b?.focus(),[b]),ie=T.useCallback((e,t,n)=>{let r=!F.current&&!n;(y.value!==void 0&&y.value===t||r)&&j(e)},[y.value]),ae=r===`popper`?ra:na,oe=ae===ra?{side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:
vendor: 3,339 bytes, line 41
41h,hideWhenDetached:g,avoidCollisions:_}:{};return(0,O.jsx)(Qi,{scope:n,content:b,viewport:C,onViewportChange:w,itemRefCallback:te,selectedItem:D,onItemLeave:ne,itemTextRefCallback:ie,focusSelectedItem:L,selectedItemText:A,position:r,isPositioned:N,searchRef:B,children:(0,O.jsx)(wi,{as:ea,allowPinchZoom:!0,children:(0,O.jsx)(xe,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:c(i,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,O.jsx)(re,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,O.jsx)(ae,{role:`listbox`,id:y.contentId,"data-state":y.open?`open`:`closed`,dir:y.dir,onContextMenu:e=>e.preventDefault(),...v,...oe,onPlaced:()=>P(!0),ref:E,style:{display:`flex`,flexDirection:`column`,outline:`none`,...v.style},onKeyDown:c(v.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ee(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=M().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>I(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),na=T.forwardRef(Q(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=Ii(Yi,n),o=$i(Yi,n),[s,c]=T.useState(null),[u,d]=T.useState(null),f=S(t,d),p=Ai(n),m=T.useRef(!1),h=T.useRef(!0),{viewport:g,selectedItem:_,selectedItemText:v,focusSelectedItem:y}=o,b=T.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&g&&_&&v){let e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=v.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-$,d=N(a,[$,Math.max($,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-$,d=N(a,[$,Math.max($,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=p(),c=window.innerHeight-$*2,l=g.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=f+h+l+b+y,S=Math.min(_.offsetHeight*5,x),C=window.getComputedStyle(g),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-$,D=c-E,O=_.offsetHeight/2,k=_.offsetTop+O,A=f+h+k,j=x-A;if(A<=E){let e=o.length>0&&_===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=u.clientHeight-g.offsetTop-g.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&_===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,f+g.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,g.scrollTop=A-E+g.offsetTop}s.style.margin=`${$}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>m.current=!0)}},[p,a.trigger,a.valueNode,s,u,g,_,v,a.dir,r]);l(()=>b(),[b]);let[x,C]=T.useState();return l(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]),(0,O.jsx)(ia,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:T.useCallback(e=>
41{e&&h.current===!0&&(b(),y?.(),h.current=!1)},[b,y]),children:(0,O.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,O.jsx)(w.div,{...i,ref:f,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),ra=T.forwardRef(Q(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=$,...a}=e,o=Pi(n);return(0,O.jsx)(rr,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.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)`}})},`SelectPopperPosition`)),[ia,aa]=Mi(Yi,{}),oa=`SelectViewport`,sa=T.forwardRef(Q(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=$i(oa,n),o=aa(oa,n),s=S(t,a.onViewportChange),l=T.useRef(0);return(0,O.jsxs)(O.Fragment,{children:[(0,O.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}),(0,O.jsx)(ki.Slot,{scope:n,children:(0,O.jsx)(w.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:c(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(l.current-t.scrollTop);if(e>0){let r=window.innerHeight-$*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}l.current=t.scrollTop})})})]})},`SelectViewport`)),[ca,la]=Mi(`SelectGroup`),ua=`SelectLabel`,da=T.forwardRef(Q(function(e,t){let{__scopeSelect:n,...r}=e,i=la(ua,n);return(0,O.jsx)(w.div,{id:i.id,...r,ref:t})},`SelectLabel`)),fa=`SelectItem`,[pa,ma]=Mi(fa),ha=T.forwardRef(Q(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Ii(fa,n),l=$i(fa,n),u=s.value===r,[d,f]=T.useState(a??``),[m,h]=T.useState(!1),g=S(t,I(e=>l.itemRefCallback?.(e,r,i))),_=p(),v=T.useRef(`touch`),y=Q(()=>{i||(s.onValueChange(r),s.onOpenChange(!1))},`handleSelect`);return(0,O.jsx)(pa,{scope:n,value:r,disabled:i,textId:_,isSelected:u,onItemTextChange:T.useCallback(e=>{f(t=>t||(e?.textContent??``).trim())},[]),children:(0,O.jsx)(ki.ItemSlot,{scope:n,value:r,disabled:i,textValue:d,children:(0,O.jsx)(w.div,{role:`option`,"aria-labelledby":_,"data-highlighted":m?``:void 0,"aria-selected":u&&m,"data-state":u?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:g,onFocus:c(o.onFocus,()=>h(!0)),onBlur:c(o.onBlur,()=>h(!1)),onClick:c(o.onClick,()=>{v.current!==`mouse`&&y()}),onPointerUp:c(o.onPointerUp,()=>{v.current===`mouse`&&y()}),onPointerDown:c(o.onPointerDown,e=>{v.current=e.pointerType}),onPointerMove:c(o.onPointerMove,e=>{v.current=e.pointerType,i?l.onItemLeave?.():v.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:c(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:c(o.onKeyDown,e=>{i||e.target!==e.currentTarget||l.searchRef?.current!==``&&e.key===` `||(Di.includes(e.key)&&y(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),ga=`SelectItemText`,_a=T.forwardRef(Q(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=Ii(ga,n),s=$i(ga,n),c=ma(ga,n),u=Ri(ga,n),[d,f]=T.useState(null),p=I(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),m=S(t,f,c.onItemTextChange,p),h=d?.textContent,g=T.useMemo(()=>(0,O.jsx)(`option`,{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:_,onNativeOptionRemove:v}=u;return l(()=>(_(g),()=>v(g)),[_,v,g]),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(w.span,{id:c.textId,...a,ref:m}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!ka(o.value)?A.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),va=`SelectItemIndicator`,ya=T.forwardRef(Q(function(e,t){let{__scopeSelect:n,...r}=e;return ma(va,n).isSelected?(0,O.jsx)(w.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),ba=`SelectScrollUpButton`,xa=T.forwardRef(Q(function(e,t){let n=$i(ba,e.__scopeSelect),r=aa(ba,e.__scopeSelect),[i,a]=T.useState(!1),o=S(t,r.onScrollButtonChange);return l(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};Q(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,O.jsx)(wa,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),Sa=`SelectScrollDownButton`,Ca=T.forwardRef(Q(function(e,t){let n=$i(Sa,e.__scopeSelect),r=aa(Sa,e.__scopeSelect),[i,a]=T.useState(!1),o=S(t,r.onScrollButtonChange);return l(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};Q(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,O.jsx)(wa,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),wa=T.forwardRef(Q(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=$i(`SelectScrollButton`,n),o=T.useRef(null),s=Ai(n),u=T.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return T.useEffect(()=>()=>u(),[u]),l(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,O.jsx)(w.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:c(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:c(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:c(i.onPointerLeave,()=>{u()})})},`SelectScrollButtonImpl`)),Ta=T.forwardRef(Q(function(e,t){let{__scopeSelect:n,...r}=e;return(0,O.jsx)(w.div,{"aria-hidden":!0,...r,ref:t})},`SelectSeparator`)),Ea=`SelectBubbleInput`,Da=T.forwardRef(Q(function({__scopeSelect:e,...t},n){let r=Ii(Ea,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=T.useRef(null),m=S(n,p),h=i??``,g=cr(h),_=Array.from(d).some(e=>(e.props.value??``)===``);return T.useEffect(()=>{let e=p.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(g!==h&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,h),e.dispatchEvent(t)}},[g,h]),(0,O.jsxs)(w.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...lr,...t.style},ref:m,defaultValue:h,children:[ka(i)&&!_?(0,O.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function Oa(e){return typeof e==`function`}Q(Oa,`isFunction`);function ka(e){return e===``||e===void 0}Q(ka,`shouldShowPlaceholder`);function Aa(e){let t=I(e),n=T.useRef(``),r=T.useRef(0),i=T.useCallback(e=>{let i=n.current+e;t(i),Q((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=T.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return T.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}Q(Aa,`useTypeaheadSearch`);function ja(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Ma(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}Q(ja,`findNextItem`);function Ma(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Q(Ma,`wrapArray`);var Na=Bi,Pa=Wi,Fa=T.forwardRef(({className:e,children:t,...n},r)=>(0,O.jsxs)(Hi,{ref:r,className:x(`flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background cursor-pointer data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1`,e),...n,children:[t,(0,O.jsx)(Gi,{asChild:!0,children:(0,O.jsx)(u,{className:`h-4 w-4 opacity-50`})})]}));Fa.displayName=Hi.displayName;var Ia=T.forwardRef(({className:e,...t},n)=>(0,O.jsx)(xa,{ref:n,className:x(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,O.jsx)(D,{className:`h-4 w-4`})}));Ia.displayName=xa.displayName;var La=T.forwardRef(({className:e,...t},n)=>(0,O.jsx)(Ca,{ref:n,className:x(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,O.jsx)(u,{className:`h-4 w-4`})}));La.displayName=Ca.displayName;var Ra=T.forwardRef(({className:e,children:t,position:n=`popper`,...r},i)=>(0,O.jsx)(Ji,{children:(0,O.jsxs)(Xi,{ref:i,className:x(`relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-y-auto overflow-x-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]:sli
41de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-select-content-transform-origin)`,n===`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:n,...r,children:[(0,O.jsx)(Ia,{}),(0,O.jsx)(sa,{className:x(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]`),children:t}),(0,O.jsx)(La,{})]})}));Ra.displayName=Xi.displayName;var za=T.forwardRef(({className:e,...t},n)=>(0,O.jsx)(da,{ref:n,className:x(`px-2 py-1.5 text-sm font-semibold`,e),...t}));za.displayName=da.displayName;var Ba=T.forwardRef(({className:e,children:t,...n},r)=>(0,O.jsxs)(ha,{ref:r,className:x(`relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,O.jsx)(`span`,{className:`absolute right-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,O.jsx)(ya,{children:(0,O.jsx)(o,{className:`h-4 w-4`})})}),(0,O.jsx)(_a,{children:t})]}));Ba.displayName=ha.displayName;var Va=T.forwardRef(({className:e,...t},n)=>(0,O.jsx)(Ta,{ref:n,className:x(`-mx-1 my-1 h-px bg-muted`,e),...t}));Va.displayName=Ta.displayName;export{Pa as a,E as c,Fa as i,Ra as n,Ln as o,Ba as r,k as s,Na as t};

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.