1import{f as go,r as a,au as ho,av as wo,c as fe,j as p,Z as Ge,ae as Se,ah as ae,af as Z,aj as xo,ab as U,ag as et,ak as _e,Y as be,ac as P,aa as it,ad as He,ai as vo,al as yo,aw as bo,am as Co,an as Ro,ao as Mo,ap as So,l as re}from"./index-BLTtCV_q.js";function Gi(e){const t=go({warn:e?.router===void 0}),n=e?.router||t,o=a.useRef(void 0);return ho(n.stores.__store,r=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const s=wo(o.current,e.select(r));return o.current=s,s}return e.select(r)}return r})}const _o=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ao=fe("check",_o);const Eo=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Po=fe("chevron-right",Eo);const Oo=[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Hi=fe("circle-user-round",Oo);const Do=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Io=fe("circle",Do);const No=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Ki=fe("log-out",No);const To=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Vi=fe("menu",To);const jo=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],zi=fe("x",jo);function Rt(e){const t=ko(e),n=a.forwardRef((o,r)=>{const{children:s,...i}=o,c=a.Children.toArray(s),f=c.find(Fo);if(f){const d=f.props.children,u=c.map(l=>l===f?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:l);return p.jsx(t,{...i,ref:r,children:a.isValidElement(d)?a.cloneElement(d,void 0,u):null})}return p.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function ko(e){const t=a.forwardRef((n,o)=>{const{children:r,...s}=n;if(a.isValidElement(r)){const i=Bo(r),c=$o(s,r.props);return r.type!==a.Fragment&&(c.ref=o?Ge(o,i):i),a.cloneElement(r,c)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lo=Symbol("radix.slottable");function Fo(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lo}function $o(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...c)=>{const f=s(...c);return r(...c),f}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Bo(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function kt(e){const t=e+"CollectionProvider",[n,o]=Se(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=x=>{const{scope:w,children:v}=x,R=ae.useRef(null),b=ae.useRef(new Map).current;return p.jsx(r,{scope:w,itemMap:b,collectionRef:R,children:v})};i.displayName=t;const c=e+"CollectionSlot",f=Rt(c),d=ae.forwardRef((x,w)=>{const{scope:v,children:R}=x,b=s(c,v),y=Z(w,b.collectionRef);return p.jsx(f,{ref:y,children:R})});d.displayName=c;const u=e+"CollectionItemSlot",l="data-radix-collection-item",m=Rt(u),g=ae.forwardRef((x,w)=>{const{scope:v,children:R,...b}=x,y=ae.useRef(null),S=Z(w,y),M=s(u,v);return ae.useEffect(()=>(M.itemMap.set(y,{ref:y,...b}),()=>{M.itemMap.delete(y)})),p.jsx(m,{[l]:"",ref:S,children:R})});g.displayName=u;function h(x){const w=s(e+"CollectionConsumer",x);return ae.useCallback(()=>{const R=w.collectionRef.current;if(!R)return[];const b=Array.from(R.querySelectorAll(`[${l}]`));return Array.from(w.itemMap.values()).sort((M,A)=>b.indexOf(M.ref.current)-b.indexOf(A.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:d,ItemSlot:g},h,o]}var Wo=a.createContext(void 0);function Lt(e){const t=a.useContext(Wo);return e||t||"ltr"}const Go=["top","right","bottom","left"],ne=Math.min,G=Math.max,ke=Math.round,Te=Math.floor,q=e=>({x:e,y:e}),Ho={left:"right",right:"left",bottom:"top",top:"bottom"};function tt(e,t,n){return G(e,ne(t,n))}function Q(e,t){return typeof e=="function"?e(t):e}function ee(e){return e.split("-")[0]}function ge(e){return e.split("-")[1]}function ct(e){return e==="x"?"y":"x"}function at(e){return e==="y"?"height":"width"}function X(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function lt(e){return ct(X(e))}function Ko(e,t,n){n===void 0&&(n=!1);const o=ge(e),r=lt(e),s=at(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Le(i)),[i,Le(i)]}function Vo(e){const t=Le(e);return[nt(e),t,nt(t)]}function nt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Mt=["left","right"],St=["right","left"],zo=["top","bottom"],Uo=["bottom","top"];function Yo(e,t,n){switch(e){case"top":case"bottom":return n?t?St:Mt:t?Mt:St;case"left":case"right":return t?zo:Uo;default:return[]}}function Xo(e,t,n,o){const r=ge(e);let s=Yo(ee(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(nt)))),s}function Le(e){const t=ee(e);return Ho[t]+e.slice(t.length)}function qo(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ft(e){return typeof e!="number"?qo(e):{top:e,right:e,bottom:e,left:e}}function Fe(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function _t(e,t,n){let{reference:o,floating:r}=e;const s=X(t),i=lt(t),c=at(i),f=ee(t),d=s==="y",u=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,m=o[
1c]/2-r[c]/2;let g;switch(f){case"top":g={x:u,y:o.y-r.height};break;case"bottom":g={x:u,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:l};break;case"left":g={x:o.x-r.width,y:l};break;default:g={x:o.x,y:o.y}}switch(ge(t)){case"start":g[i]-=m*(n&&d?-1:1);break;case"end":g[i]+=m*(n&&d?-1:1);break}return g}async function Zo(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:l="floating",altBoundary:m=!1,padding:g=0}=Q(t,e),h=Ft(g),w=c[m?l==="floating"?"reference":"floating":l],v=Fe(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:u,strategy:f})),R=l==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),y=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},S=Fe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:R,offsetParent:b,strategy:f}):R);return{top:(v.top-S.top+h.top)/y.y,bottom:(S.bottom-v.bottom+h.bottom)/y.y,left:(v.left-S.left+h.left)/y.x,right:(S.right-v.right+h.right)/y.x}}const Jo=50,Qo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:Zo},f=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:l}=_t(d,o,f),m=o,g=0;const h={};for(let x=0;x<s.length;x++){const w=s[x];if(!w)continue;const{name:v,fn:R}=w,{x:b,y,data:S,reset:M}=await R({x:u,y:l,initialPlacement:o,placement:m,strategy:r,middlewareData:h,rects:d,platform:c,elements:{reference:e,floating:t}});u=b??u,l=y??l,h[v]={...h[v],...S},M&&g<Jo&&(g++,typeof M=="object"&&(M.placement&&(m=M.placement),M.rects&&(d=M.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):M.rects),{x:u,y:l}=_t(d,m,f)),x=-1)}return{x:u,y:l,placement:m,strategy:r,middlewareData:h}},er=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:c,middlewareData:f}=t,{element:d,padding:u=0}=Q(e,t)||{};if(d==null)return{};const l=Ft(u),m={x:n,y:o},g=lt(r),h=at(g),x=await i.getDimensions(d),w=g==="y",v=w?"top":"left",R=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=s.reference[h]+s.reference[g]-m[g]-s.floating[h],S=m[g]-s.reference[g],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let A=M?M[b]:0;(!A||!await(i.isElement==null?void 0:i.isElement(M)))&&(A=c.floating[b]||s.floating[h]);const E=y/2-S/2,T=A/2-x[h]/2-1,D=ne(l[v],T),j=ne(l[R],T),k=D,N=A-x[h]-j,I=A/2-x[h]/2+E,$=tt(k,I,N),O=!f.arrow&&ge(r)!=null&&I!==$&&s.reference[h]/2-(I<k?D:j)-x[h]/2<0,L=O?I<k?I-k:I-N:0;return{[g]:m[g]+L,data:{[g]:$,centerOffset:I-$-L,...O&&{alignmentOffset:L}},reset:O}}}),tr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:u=!0,crossAxis:l=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:x=!0,...w}=Q(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=ee(r),R=X(c),b=ee(c)===c,y=await(f.isRTL==null?void 0:f.isRTL(d.floating)),S=m||(b||!x?[Le(c)]:Vo(c)),M=h!=="none";!m&&M&&S.push(...Xo(c,x,h,y));const A=[c,...S],E=await f.detectOverflow(t,w),T=[];let D=((o=s.flip)==null?void 0:o.overflows)||[];if(u&&T.push(E[v]),l){const I=Ko(r,i,y);T.push(E[I[0]],E[I[1]])}if(D=[...D,{placement:r,overflows:T}],!T.every(I=>I<=0)){var j,k;const I=(((j=s.flip)==null?void 0:j.index)||0)+1,$=A[I];if($&&(!(l==="alignment"?R!==X($):!1)||D.every(_=>X(_.placement)===R?_.overflows[0]>0:!0)))return{data:{index:I,overflows:D},reset:{placement:$}};let O=(k=D.filter(L=>L.overflows[0]<=0).sort((L,_)=>L.overflows[1]-_.overflows[1])[0])==null?void 0:k.placement;if(!O)switch(g){case"bestFit":{var N;const L=(N=D.filter(_=>{if(M){const C=X(_.placement);return C===R||C==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(C=>C>0).reduce((C,B)=>C+B,0)]).sort((_,C)=>_[1]-C[1])[0])==null?void 0:N[0];L&&(O=L);break}case"initialPlacement":O=c;break}if(r!==O)return{reset:{placement:O}}}return{}}}};function At(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Et(e){return Go.some(t=>e[t]>=0)}const nr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=Q(e,t);switch(r){case"referenceHidden":{const i=await o.detectOverflow(t,{...s,elementContext:"reference"}),c=At(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Et(c)}}}case"escaped":{const i=await o.detectOverflow(t,{...s,altBoundary:!0}),c=At(i,n.floating);return{data:{escapedOffsets:c,escaped:Et(c)}}}default:return{}}}}},$t=new Set(["left","top"]);async function or(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=ee(n),c=ge(n),f=X(n)==="y",d=$t.has(i)?-1:1,u=s&&f?-1:1,l=Q(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:h}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}
1:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return c&&typeof h=="number"&&(g=c==="end"?h*-1:h),f?{x:g*u,y:m*d}:{x:m*d,y:g*u}}const rr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:c}=t,f=await or(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+f.x,y:s+f.y,data:{...f,placement:i}}}}},sr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:f={fn:v=>{let{x:R,y:b}=v;return{x:R,y:b}}},...d}=Q(e,t),u={x:n,y:o},l=await s.detectOverflow(t,d),m=X(ee(r)),g=ct(m);let h=u[g],x=u[m];if(i){const v=g==="y"?"top":"left",R=g==="y"?"bottom":"right",b=h+l[v],y=h-l[R];h=tt(b,h,y)}if(c){const v=m==="y"?"top":"left",R=m==="y"?"bottom":"right",b=x+l[v],y=x-l[R];x=tt(b,x,y)}const w=f.fn({...t,[g]:h,[m]:x});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[g]:i,[m]:c}}}}}},ir=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:c=0,mainAxis:f=!0,crossAxis:d=!0}=Q(e,t),u={x:n,y:o},l=X(r),m=ct(l);let g=u[m],h=u[l];const x=Q(c,t),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(f){const b=m==="y"?"height":"width",y=s.reference[m]-s.floating[b]+w.mainAxis,S=s.reference[m]+s.reference[b]-w.mainAxis;g<y?g=y:g>S&&(g=S)}if(d){var v,R;const b=m==="y"?"width":"height",y=$t.has(ee(r)),S=s.reference[l]-s.floating[b]+(y&&((v=i.offset)==null?void 0:v[l])||0)+(y?0:w.crossAxis),M=s.reference[l]+s.reference[b]+(y?0:((R=i.offset)==null?void 0:R[l])||0)-(y?w.crossAxis:0);h<S?h=S:h>M&&(h=M)}return{[m]:g,[l]:h}}}},cr=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:i,elements:c}=t,{apply:f=()=>{},...d}=Q(e,t),u=await i.detectOverflow(t,d),l=ee(r),m=ge(r),g=X(r)==="y",{width:h,height:x}=s.floating;let w,v;l==="top"||l==="bottom"?(w=l,v=m===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(v=l,w=m==="end"?"top":"bottom");const R=x-u.top-u.bottom,b=h-u.left-u.right,y=ne(x-u[w],R),S=ne(h-u[v],b),M=!t.middlewareData.shift;let A=y,E=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=b),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(A=R),M&&!m){const D=G(u.left,0),j=G(u.right,0),k=G(u.top,0),N=G(u.bottom,0);g?E=h-2*(D!==0||j!==0?D+j:G(u.left,u.right)):A=x-2*(k!==0||N!==0?k+N:G(u.top,u.bottom))}await f({...t,availableWidth:E,availableHeight:A});const T=await i.getDimensions(c.floating);return h!==T.width||x!==T.height?{reset:{rects:!0}}:{}}}};function Ke(){return typeof window<"u"}function he(e){return Bt(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function J(e){var t;return(t=(Bt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Bt(e){return Ke()?e instanceof Node||e instanceof H(e).Node:!1}function V(e){return Ke()?e instanceof Element||e instanceof H(e).Element:!1}function te(e){return Ke()?e instanceof HTMLElement||e instanceof H(e).HTMLElement:!1}function Pt(e){return!Ke()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}function Ae(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function ar(e){return/^(table|td|th)$/.test(he(e))}function Ve(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const lr=/transform|translate|scale|rotate|perspective|filter/,ur=/paint|layout|strict|content/,le=e=>!!e&&e!=="none";let qe;function ut(e){const t=V(e)?z(e):e;return le(t.transform)||le(t.translate)||le(t.scale)||le(t.rotate)||le(t.perspective)||!ft()&&(le(t.backdropFilter)||le(t.filter))||lr.test(t.willChange||"")||ur.test(t.contain||"")}function fr(e){let t=oe(e);for(;te(t)&&!me(t);){if(ut(t))return t;if(Ve(t))return null;t=oe(t)}return null}function ft(){return qe==null&&(qe=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qe}function me(e){return/^(html|body|#document)$/.test(he(e))}function z(e){return H(e).getComputedStyle(e)}function ze(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function oe(e){if(he(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pt(e)&&e.host||J(e);return Pt(t)?t.host:t}function Wt(e){const t=oe(e);return me(t)?e.ownerDocument?e.ownerDocument.body:e.body:te(t)&&Ae(t)?t:Wt(t)}function Ce(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Wt(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=H(r);if(s){const c=ot(i);
1return t.concat(i,i.visualViewport||[],Ae(r)?r:[],c&&n?Ce(c):[])}else return t.concat(r,Ce(r,[],n))}function ot(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gt(e){const t=z(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=te(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,c=ke(n)!==s||ke(o)!==i;return c&&(n=s,o=i),{width:n,height:o,$:c}}function dt(e){return V(e)?e:e.contextElement}function pe(e){const t=dt(e);if(!te(t))return q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Gt(t);let i=(s?ke(n.width):n.width)/o,c=(s?ke(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const dr=q(0);function Ht(e){const t=H(e);return!ft()||!t.visualViewport?dr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==H(e)?!1:t}function ue(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=dt(e);let i=q(1);t&&(o?V(o)&&(i=pe(o)):i=pe(e));const c=pr(s,n,o)?Ht(s):q(0);let f=(r.left+c.x)/i.x,d=(r.top+c.y)/i.y,u=r.width/i.x,l=r.height/i.y;if(s){const m=H(s),g=o&&V(o)?H(o):o;let h=m,x=ot(h);for(;x&&o&&g!==h;){const w=pe(x),v=x.getBoundingClientRect(),R=z(x),b=v.left+(x.clientLeft+parseFloat(R.paddingLeft))*w.x,y=v.top+(x.clientTop+parseFloat(R.paddingTop))*w.y;f*=w.x,d*=w.y,u*=w.x,l*=w.y,f+=b,d+=y,h=H(x),x=ot(h)}}return Fe({width:u,height:l,x:f,y:d})}function Ue(e,t){const n=ze(e).scrollLeft;return t?t.left+n:ue(J(e)).left+n}function Kt(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Ue(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function mr(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=J(o),c=t?Ve(t.floating):!1;if(o===i||c&&s)return n;let f={scrollLeft:0,scrollTop:0},d=q(1);const u=q(0),l=te(o);if((l||!l&&!s)&&((he(o)!=="body"||Ae(i))&&(f=ze(o)),l)){const g=ue(o);d=pe(o),u.x=g.x+o.clientLeft,u.y=g.y+o.clientTop}const m=i&&!l&&!s?Kt(i,f):q(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+u.x+m.x,y:n.y*d.y-f.scrollTop*d.y+u.y+m.y}}function gr(e){return Array.from(e.getClientRects())}function hr(e){const t=J(e),n=ze(e),o=e.ownerDocument.body,r=G(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=G(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+Ue(e);const c=-n.scrollTop;return z(o).direction==="rtl"&&(i+=G(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:c}}const Ot=25;function wr(e,t){const n=H(e),o=J(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,c=0,f=0;if(r){s=r.width,i=r.height;const u=ft();(!u||u&&t==="fixed")&&(c=r.offsetLeft,f=r.offsetTop)}const d=Ue(o);if(d<=0){const u=o.ownerDocument,l=u.body,m=getComputedStyle(l),g=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,h=Math.abs(o.clientWidth-l.clientWidth-g);h<=Ot&&(s-=h)}else d<=Ot&&(s+=d);return{width:s,height:i,x:c,y:f}}function xr(e,t){const n=ue(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=te(e)?pe(e):q(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,f=r*s.x,d=o*s.y;return{width:i,height:c,x:f,y:d}}function Dt(e,t,n){let o;if(t==="viewport")o=wr(e,n);else if(t==="document")o=hr(J(e));else if(V(t))o=xr(t,n);else{const r=Ht(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Fe(o)}function Vt(e,t){const n=oe(e);return n===t||!V(n)||me(n)?!1:z(n).position==="fixed"||Vt(n,t)}function vr(e,t){const n=t.get(e);if(n)return n;let o=Ce(e,[],!1).filter(c=>V(c)&&he(c)!=="body"),r=null;const s=z(e).position==="fixed";let i=s?oe(e):e;for(;V(i)&&!me(i);){const c=z(i),f=ut(i);!f&&c.position==="fixed"&&(r=null),(s?!f&&!r:!f&&c.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Ae(i)&&!f&&Vt(e,i))?o=o.filter(u=>u!==i):r=c,i=oe(i)}return t.set(e,o),o}function yr(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Ve(t)?[]:vr(t,this._c):[].concat(n),o],c=Dt(t,i[0],r);let f=c.top,d=c.right,u=c.bottom,l=c.left;for(let m=1;m<i.length;m++){const g=Dt(t,i[m],r);f=G(g.top,f),d=ne(g.right,d),u=ne(g.bottom,u),l=G(g.left,l)}return{width:d-l,height:u-f,x:l,y:f}}function br(e){const{width:t,height:n}=Gt(e);return{width:t,height:n}}function Cr(e,t,n){const o=te(t),r=J(t),s=n==="fixed",i=ue(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const f=q(0);function d(){f.x=Ue(r)}if(o||!o&&!s)if((he(t)!=="body"||Ae(r))&&(c=ze(t)),o){const g=ue(t,!0,s,t);f.x=g.x+t.clientLeft,f.y=g.y+t.clientTop}else r&&d();s&&!o&&r&&d();const u=r&&!o&&!s?Kt(r,c):q(0),l=i.left+c.scrollLeft-f.x-u.x,m=i.top+c.scrollTop-f.y-u.y;return{x:l,y:m,width:i.width,height:i.height}}function Ze(e){return z(e).position==="static"}function It(e,t){if(!te(e)||z(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return J(e)===n&&(n=n.ownerDocument.body),n}function zt(e,t){const n=H(e);if(Ve(e))return n;if(!te(e)){let r=oe(e);for(;r&&!me(r);){if(V(r)&&!Ze(r))return r;r=oe(r)}return n}let o=It(e,t);for(;o&&ar(o)&&Ze(o);)o=It(o,t);return o&&me(o)&&Ze(o)&&!ut(o)?n:o||fr(e)||n}const Rr=async function(e){const t=this.getOffsetParent||zt,n=this.getDimensions,o=await n(e.floating);return{reference:Cr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Mr(e){return z(e).direction==="rtl"}const Sr={convertOffsetParentRelativeRectToViewportRelativeRect:mr,getDocumentElement:J,getClippingRect:yr,getOffsetParent:zt,getElementRects:Rr,getClientRects:gr,getDimensions:br,getScale:pe,isElement:V,isRTL:Mr};function Ut(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _r(e,t){let n=null,o;const r=J(e);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function i(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),s();const d=e.getBoundingClientRect(),{left:u,top:l,width:m,height:g}=d;if(c||t(),!m||!g)return;const h=Te(l),x=Te(r.clientWidth-(u+m)),w=Te(r.clientHeight-(l+g)),v=Te(u),b={rootMargin:-h+"px "+-x+"px "+-w+"px "+-v+"px",threshold:G(0,ne(1,f))||1};let y=!0;function S(M){const A=M[0].intersectionRatio;if(A!==f){if(!y)return i();A?i(!1,A):o=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!Ut(d,e.getBoundingClientRect())&&i(),y=!1}try{n=new IntersectionObserver(S,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return i(!0),s}function Ar(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=o,d=dt(e),u=r||s?[...d?Ce(d):[],...t?Ce(t):[]]:[];u.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const l=d&&c?_r(d,n):null;let m=-1,g=null;i&&(g=new ResizeObserver(v=>{let[R]=v;R&&R.target===d&&g&&t&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=g)==null||b.observe(t)})),n()}),d&&!f&&g.observe(d),t&&g.observe(t));let h,x=f?ue(e):null;f&&w();function w(){const v=ue(e);x&&!Ut(x,v)&&n(),x=v,h=requestAnimationFrame(w)}return n(),()=>{var v;u.forEach(R=>{r&&R.removeEventListener("scroll",n),s&&R.removeEventListener("resize",n)}),l?.(),(v=g)==null||v.disconnect(),g=null,f&&cancelAnimationFrame(h)}}const Er=rr,Pr=sr,Or=tr,Dr=cr,Ir=nr,Nt=er,Nr=ir,Tr=(e,t,n)=>{const o=new Map,r={platform:Sr,...n},s={...r.platform,_c:o};return Qo(e,t,{...r,platform:s})};var jr=typeof document<"u",kr=function(){},je=jr?a.useLayoutEffect:kr;function $e(e,t){if(e===t)return!0;
1if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!$e(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!$e(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Yt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tt(e,t){const n=Yt(e);return Math.round(t*n)/n}function Je(e){const t=a.useRef(e);return je(()=>{t.current=e}),t}function Lr(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[u,l]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=a.useState(o);$e(m,o)||g(o);const[h,x]=a.useState(null),[w,v]=a.useState(null),R=a.useCallback(_=>{_!==M.current&&(M.current=_,x(_))},[]),b=a.useCallback(_=>{_!==A.current&&(A.current=_,v(_))},[]),y=s||h,S=i||w,M=a.useRef(null),A=a.useRef(null),E=a.useRef(u),T=f!=null,D=Je(f),j=Je(r),k=Je(d),N=a.useCallback(()=>{if(!M.current||!A.current)return;const _={placement:t,strategy:n,middleware:m};j.current&&(_.platform=j.current),Tr(M.current,A.current,_).then(C=>{const B={...C,isPositioned:k.current!==!1};I.current&&!$e(E.current,B)&&(E.current=B,xo.flushSync(()=>{l(B)}))})},[m,t,n,j,k]);je(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,l(_=>({..._,isPositioned:!1})))},[d]);const I=a.useRef(!1);je(()=>(I.current=!0,()=>{I.current=!1}),[]),je(()=>{if(y&&(M.current=y),S&&(A.current=S),y&&S){if(D.current)return D.current(y,S,N);N()}},[y,S,N,D,T]);const $=a.useMemo(()=>({reference:M,floating:A,setReference:R,setFloating:b}),[R,b]),O=a.useMemo(()=>({reference:y,floating:S}),[y,S]),L=a.useMemo(()=>{const _={position:n,left:0,top:0};if(!O.floating)return _;const C=Tt(O.floating,u.x),B=Tt(O.floating,u.y);return c?{..._,transform:"translate("+C+"px, "+B+"px)",...Yt(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:C,top:B}},[n,c,O.floating,u.x,u.y]);return a.useMemo(()=>({...u,update:N,refs:$,elements:O,floatingStyles:L}),[u,N,$,O,L])}const Fr=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Nt({element:o.current,padding:r}).fn(n):{}:o?Nt({element:o,padding:r}).fn(n):{}}}},$r=(e,t)=>{const n=Er(e);return{name:n.name,fn:n.fn,options:[e,t]}},Br=(e,t)=>{const n=Pr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wr=(e,t)=>({fn:Nr(e).fn,options:[e,t]}),Gr=(e,t)=>{const n=Or(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hr=(e,t)=>{const n=Dr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kr=(e,t)=>{const n=Ir(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vr=(e,t)=>{const n=Fr(e);return{name:n.name,fn:n.fn,options:[e,t]}};var zr="Arrow",Xt=a.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return p.jsx(U.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Xt.displayName=zr;var Ur=Xt;function Yr(e){const[t,n]=a.useState(void 0);return et(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,c;if("borderBoxSize"in s){const f=s.borderBoxSize,d=Array.isArray(f)?f[0]:f;i=d.inlineSize,c=d.blockSize}else i=e.offsetWidth,c=e.offsetHeight;n({width:i,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var pt="Popper",[qt,Zt]=Se(pt),[Xr,Jt]=qt(pt),Qt=e=>{const{__scopePopper:t,children:n}=e,[o,r]=a.useState(null);return p.jsx(Xr,{scope:t,anchor:o,onAnchorChange:r,children:n})};Qt.displayName=pt;var en="PopperAnchor",tn=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=Jt(en,n),i=a.useRef(null),c=Z(t,i),f=a.useRef(null);return a.useEffect(()=>{const d=f.current;f.current=o?.current||i.current,d!==f.current&&s.onAnchorChange(f.current)}),o?null:p.jsx(U.div,{...r,ref:c})});tn.displayName=en;var mt="PopperContent",[qr,Zr]=qt(mt),nn=a.forwardRef((e,t)=>
1{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:l="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:h,...x}=e,w=Jt(mt,n),[v,R]=a.useState(null),b=Z(t,F=>R(F)),[y,S]=a.useState(null),M=Yr(y),A=M?.width??0,E=M?.height??0,T=o+(s!=="center"?"-"+s:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},j=Array.isArray(d)?d:[d],k=j.length>0,N={padding:D,boundary:j.filter(Qr),altBoundary:k},{refs:I,floatingStyles:$,placement:O,isPositioned:L,middlewareData:_}=Lr({strategy:"fixed",placement:T,whileElementsMounted:(...F)=>Ar(...F,{animationFrame:g==="always"}),elements:{reference:w.anchor},middleware:[$r({mainAxis:r+E,alignmentAxis:i}),f&&Br({mainAxis:!0,crossAxis:!1,limiter:l==="partial"?Wr():void 0,...N}),f&&Gr({...N}),Hr({...N,apply:({elements:F,rects:ve,availableWidth:uo,availableHeight:fo})=>{const{width:po,height:mo}=ve.reference,Ne=F.floating.style;Ne.setProperty("--radix-popper-available-width",`${uo}px`),Ne.setProperty("--radix-popper-available-height",`${fo}px`),Ne.setProperty("--radix-popper-anchor-width",`${po}px`),Ne.setProperty("--radix-popper-anchor-height",`${mo}px`)}}),y&&Vr({element:y,padding:c}),es({arrowWidth:A,arrowHeight:E}),m&&Kr({strategy:"referenceHidden",...N})]}),[C,B]=sn(O),Y=_e(h);et(()=>{L&&Y?.()},[L,Y]);const ie=_.arrow?.x,we=_.arrow?.y,xe=_.arrow?.centerOffset!==0,[Ie,ce]=a.useState();return et(()=>{v&&ce(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:L?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ie,"--radix-popper-transform-origin":[_.transformOrigin?.x,_.transformOrigin?.y].join(" "),..._.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(qr,{scope:n,placedSide:C,onArrowChange:S,arrowX:ie,arrowY:we,shouldHideArrow:xe,children:p.jsx(U.div,{"data-side":C,"data-align":B,...x,ref:b,style:{...x.style,animation:L?void 0:"none"}})})})});nn.displayName=mt;var on="PopperArrow",Jr={top:"bottom",right:"left",bottom:"top",left:"right"},rn=a.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=Zr(on,o),i=Jr[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(Ur,{...r,ref:n,style:{...r.style,display:"block"}})})});rn.displayName=on;function Qr(e){return e!==null}var es=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,i=r.arrow?.centerOffset!==0,c=i?0:e.arrowWidth,f=i?0:e.arrowHeight,[d,u]=sn(n),l={start:"0%",center:"50%",end:"100%"}[u],m=(r.arrow?.x??0)+c/2,g=(r.arrow?.y??0)+f/2;let h="",x="";return d==="bottom"?(h=i?l:`${m}px`,x=`${-f}px`):d==="top"?(h=i?l:`${m}px`,x=`${o.floating.height+f}px`):d==="right"?(h=`${-f}px`,x=i?l:`${g}px`):d==="left"&&(h=`${o.floating.width+f}px`,x=i?l:`${g}px`),{data:{x:h,y:x}}}});function sn(e){const[t,n="center"]=e.split("-");return[t,n]}var cn=Qt,ts=tn,ns=nn,os=rn,Qe="rovingFocusGroup.onEntryFocus",rs={bubbles:!1,cancelable:!0},Ee="RovingFocusGroup",[rt,an,ss]=kt(Ee),[is,ln]=Se(Ee,[ss]),[cs,as]=is(Ee),un=a.forwardRef((e,t)=>p.jsx(rt.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(rt.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(ls,{...e,ref:t})})}));un.displayName=Ee;var ls=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...l}=e,m=a.useRef(null),g=Z(t,m),h=Lt(s),[x,w]=it({prop:i,defaultProp:c??null,onChange:f,caller:Ee}),[v,R]=a.useState(!1),b=_e(d),y=an(n),S=a.useRef(!1),[M,A]=a.useState(0);return a.useEffect(()=>{const E=m.current;if(E)return E.addEventListener(Qe,b),()=>E.removeEventListener(Qe,b)},[b]),p.jsx(cs,{scope:n,orientation:o,dir:h,loop:r,currentTabStopId:x,onItemFocus:a.useCallback(E=>w(E),[w]),onItemShiftTab:a.useCallback(()=>R(!0),[]),onFocusableItemAdd:a.useCallback(()=>A(E=>E+1),[]),onFocusableItemRemove:a.useCallback(()=>A(E=>E-1),[]),children:p.jsx(U.div,{tabIndex:v||M===0?-1:0,"data-orientation":o,...l,ref:g,style:{outline:"none",...e.style},onMouseDown:P(e.onMouseDown,()=>{S.current=!0}),onFocus:P(e.onFocus,E=>{const T=!S.current;if(E.target===E.currentTarget&&T&&!v){const D=new CustomEvent(Qe,rs);if(E.currentTarget.dispatchEvent(D),!D.defaultPrevented){const j=y().filter(O=>O.focusable),k=j.find(O=>O.active),N=j.find(O=>
1O.id===x),$=[k,N,...j].filter(Boolean).map(O=>O.ref.current);pn($,u)}}S.current=!1}),onBlur:P(e.onBlur,()=>R(!1))})})}),fn="RovingFocusGroupItem",dn=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:i,...c}=e,f=be(),d=s||f,u=as(fn,n),l=u.currentTabStopId===d,m=an(n),{onFocusableItemAdd:g,onFocusableItemRemove:h,currentTabStopId:x}=u;return a.useEffect(()=>{if(o)return g(),()=>h()},[o,g,h]),p.jsx(rt.ItemSlot,{scope:n,id:d,focusable:o,active:r,children:p.jsx(U.span,{tabIndex:l?0:-1,"data-orientation":u.orientation,...c,ref:t,onMouseDown:P(e.onMouseDown,w=>{o?u.onItemFocus(d):w.preventDefault()}),onFocus:P(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:P(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){u.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const v=ds(w,u.orientation,u.dir);if(v!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let b=m().filter(y=>y.focusable).map(y=>y.ref.current);if(v==="last")b.reverse();else if(v==="prev"||v==="next"){v==="prev"&&b.reverse();const y=b.indexOf(w.currentTarget);b=u.loop?ps(b,y+1):b.slice(y+1)}setTimeout(()=>pn(b))}}),children:typeof i=="function"?i({isCurrentTabStop:l,hasTabStop:x!=null}):i})})});dn.displayName=fn;var us={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function fs(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ds(e,t,n){const o=fs(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return us[o]}function pn(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function ps(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var ms=un,gs=dn;function hs(e){const t=ws(e),n=a.forwardRef((o,r)=>{const{children:s,...i}=o,c=a.Children.toArray(s),f=c.find(vs);if(f){const d=f.props.children,u=c.map(l=>l===f?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:l);return p.jsx(t,{...i,ref:r,children:a.isValidElement(d)?a.cloneElement(d,void 0,u):null})}return p.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function ws(e){const t=a.forwardRef((n,o)=>{const{children:r,...s}=n;if(a.isValidElement(r)){const i=bs(r),c=ys(s,r.props);return r.type!==a.Fragment&&(c.ref=o?Ge(o,i):i),a.cloneElement(r,c)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xs=Symbol("radix.slottable");function vs(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xs}function ys(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...c)=>{const f=s(...c);return r(...c),f}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function bs(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var st=["Enter"," "],Cs=["ArrowDown","PageUp","Home"],mn=["ArrowUp","PageDown","End"],Rs=[...Cs,...mn],Ms={ltr:[...st,"ArrowRight"],rtl:[...st,"ArrowLeft"]},Ss={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Pe="Menu",[Re,_s,As]=kt(Pe),[de,gn]=Se(Pe,[As,Zt,ln]),Oe=Zt(),hn=ln(),[wn,se]=de(Pe),[Es,De]=de(Pe),xn=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:i=!0}=e,c=Oe(t),[f,d]=a.useState(null),u=a.useRef(!1),l=_e(s),m=Lt(r);return a.useEffect(()=>{const g=()=>{u.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>u.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),p.jsx(cn,{...c,children:p.jsx(wn,{scope:t,open:n,onOpenChange:l,content:f,onContentChange:d,children:p.jsx(Es,{scope:t,onClose:a.useCallback(()=>l(!1),[l]),isUsingKeyboardRef:u,dir:m,modal:i,children:o})})})};xn.displayName=Pe;var Ps="MenuAnchor",gt=a.forwardRef((e,t)=>
1{const{__scopeMenu:n,...o}=e,r=Oe(n);return p.jsx(ts,{...r,...o,ref:t})});gt.displayName=Ps;var ht="MenuPortal",[Os,vn]=de(ht,{forceMount:void 0}),yn=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=se(ht,t);return p.jsx(Os,{scope:t,forceMount:n,children:p.jsx(He,{present:n||s.open,children:p.jsx(vo,{asChild:!0,container:r,children:o})})})};yn.displayName=ht;var K="MenuContent",[Ds,wt]=de(K),bn=a.forwardRef((e,t)=>{const n=vn(K,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=se(K,e.__scopeMenu),i=De(K,e.__scopeMenu);return p.jsx(Re.Provider,{scope:e.__scopeMenu,children:p.jsx(He,{present:o||s.open,children:p.jsx(Re.Slot,{scope:e.__scopeMenu,children:i.modal?p.jsx(Is,{...r,ref:t}):p.jsx(Ns,{...r,ref:t})})})})}),Is=a.forwardRef((e,t)=>{const n=se(K,e.__scopeMenu),o=a.useRef(null),r=Z(t,o);return a.useEffect(()=>{const s=o.current;if(s)return yo(s)},[]),p.jsx(xt,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:P(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Ns=a.forwardRef((e,t)=>{const n=se(K,e.__scopeMenu);return p.jsx(xt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Ts=hs("MenuContent.ScrollLock"),xt=a.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:m,onDismiss:g,disableOutsideScroll:h,...x}=e,w=se(K,n),v=De(K,n),R=Oe(n),b=hn(n),y=_s(n),[S,M]=a.useState(null),A=a.useRef(null),E=Z(t,A,w.onContentChange),T=a.useRef(0),D=a.useRef(""),j=a.useRef(0),k=a.useRef(null),N=a.useRef("right"),I=a.useRef(0),$=h?Ro:a.Fragment,O=h?{as:Ts,allowPinchZoom:!0}:void 0,L=C=>{const B=D.current+C,Y=y().filter(F=>!F.disabled),ie=document.activeElement,we=Y.find(F=>F.ref.current===ie)?.textValue,xe=Y.map(F=>F.textValue),Ie=zs(xe,B,we),ce=Y.find(F=>F.textValue===Ie)?.ref.current;(function F(ve){D.current=ve,window.clearTimeout(T.current),ve!==""&&(T.current=window.setTimeout(()=>F(""),1e3))})(B),ce&&setTimeout(()=>ce.focus())};a.useEffect(()=>()=>window.clearTimeout(T.current),[]),Co();const _=a.useCallback(C=>N.current===k.current?.side&&Ys(C,k.current?.area),[]);return p.jsx(Ds,{scope:n,searchRef:D,onItemEnter:a.useCallback(C=>{_(C)&&C.preventDefault()},[_]),onItemLeave:a.useCallback(C=>{_(C)||(A.current?.focus(),M(null))},[_]),onTriggerLeave:a.useCallback(C=>{_(C)&&C.preventDefault()},[_]),pointerGraceTimerRef:j,onPointerGraceIntentChange:a.useCallback(C=>{k.current=C},[]),children:p.jsx($,{...O,children:p.jsx(Mo,{asChild:!0,trapped:r,onMountAutoFocus:P(s,C=>{C.preventDefault(),A.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:p.jsx(So,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:m,onDismiss:g,children:p.jsx(ms,{asChild:!0,...b,dir:v.dir,orientation:"vertical",loop:o,currentTabStopId:S,onCurrentTabStopIdChange:M,onEntryFocus:P(f,C=>{v.isUsingKeyboardRef.current||C.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(ns,{role:"menu","aria-orientation":"vertical","data-state":Fn(w.open),"data-radix-menu-content":"",dir:v.dir,...R,...x,ref:E,style:{outline:"none",...x.style},onKeyDown:P(x.onKeyDown,C=>{const Y=C.target.closest("[data-radix-menu-content]")===C.currentTarget,ie=C.ctrlKey||C.altKey||C.metaKey,we=C.key.length===1;Y&&(C.key==="Tab"&&C.preventDefault(),!ie&&we&&L(C.key));const xe=A.current;if(C.target!==xe||!Rs.includes(C.key))return;C.preventDefault();const ce=y().filter(F=>!F.disabled).map(F=>F.ref.current);mn.includes(C.key)&&ce.reverse(),Ks(ce)}),onBlur:P(e.onBlur,C=>{C.currentTarget.contains(C.target)||(window.clearTimeout(T.current),D.current="")}),onPointerMove:P(e.onPointerMove,Me(C=>
1{const B=C.target,Y=I.current!==C.clientX;if(C.currentTarget.contains(B)&&Y){const ie=C.clientX>I.current?"right":"left";N.current=ie,I.current=C.clientX}}))})})})})})})});bn.displayName=K;var js="MenuGroup",vt=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return p.jsx(U.div,{role:"group",...o,ref:t})});vt.displayName=js;var ks="MenuLabel",Cn=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return p.jsx(U.div,{...o,ref:t})});Cn.displayName=ks;var Be="MenuItem",jt="menu.itemSelect",Ye=a.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=a.useRef(null),i=De(Be,e.__scopeMenu),c=wt(Be,e.__scopeMenu),f=Z(t,s),d=a.useRef(!1),u=()=>{const l=s.current;if(!n&&l){const m=new CustomEvent(jt,{bubbles:!0,cancelable:!0});l.addEventListener(jt,g=>o?.(g),{once:!0}),bo(l,m),m.defaultPrevented?d.current=!1:i.onClose()}};return p.jsx(Rn,{...r,ref:f,disabled:n,onClick:P(e.onClick,u),onPointerDown:l=>{e.onPointerDown?.(l),d.current=!0},onPointerUp:P(e.onPointerUp,l=>{d.current||l.currentTarget?.click()}),onKeyDown:P(e.onKeyDown,l=>{const m=c.searchRef.current!=="";n||m&&l.key===" "||st.includes(l.key)&&(l.currentTarget.click(),l.preventDefault())})})});Ye.displayName=Be;var Rn=a.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,i=wt(Be,n),c=hn(n),f=a.useRef(null),d=Z(t,f),[u,l]=a.useState(!1),[m,g]=a.useState("");return a.useEffect(()=>{const h=f.current;h&&g((h.textContent??"").trim())},[s.children]),p.jsx(Re.ItemSlot,{scope:n,disabled:o,textValue:r??m,children:p.jsx(gs,{asChild:!0,...c,focusable:!o,children:p.jsx(U.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:d,onPointerMove:P(e.onPointerMove,Me(h=>{o?i.onItemLeave(h):(i.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:P(e.onPointerLeave,Me(h=>i.onItemLeave(h))),onFocus:P(e.onFocus,()=>l(!0)),onBlur:P(e.onBlur,()=>l(!1))})})})}),Ls="MenuCheckboxItem",Mn=a.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return p.jsx(Pn,{scope:e.__scopeMenu,checked:n,children:p.jsx(Ye,{role:"menuitemcheckbox","aria-checked":We(n)?"mixed":n,...r,ref:t,"data-state":Ct(n),onSelect:P(r.onSelect,()=>o?.(We(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Mn.displayName=Ls;var Sn="MenuRadioGroup",[Fs,$s]=de(Sn,{value:void 0,onValueChange:()=>{}}),_n=a.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=_e(o);return p.jsx(Fs,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(vt,{...r,ref:t})})});_n.displayName=Sn;var An="MenuRadioItem",En=a.forwardRef((e,t)=>{const{value:n,...o}=e,r=$s(An,e.__scopeMenu),s=n===r.value;return p.jsx(Pn,{scope:e.__scopeMenu,checked:s,children:p.jsx(Ye,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":Ct(s),onSelect:P(o.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});En.displayName=An;var yt="MenuItemIndicator",[Pn,Bs]=de(yt,{checked:!1}),On=a.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=Bs(yt,n);return p.jsx(He,{present:o||We(s.checked)||s.checked===!0,children:p.jsx(U.span,{...r,ref:t,"data-state":Ct(s.checked)})})});On.displayName=yt;var Ws="MenuSeparator",Dn=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return p.jsx(U.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Dn.displayName=Ws;var Gs="MenuArrow",In=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Oe(n);return p.jsx(os,{...r,...o,ref:t})});In.displayName=Gs;var bt="MenuSub",[Hs,Nn]=de(bt),Tn=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:r}=e,s=se(bt,t),i=Oe(t),[c,f]=a.useState(null),[d,u]=a.useState(null),l=_e(r);return a.useEffect(()=>(s.open===!1&&l(!1),()=>l(!1)),[s.open,l]),p.jsx(cn,{...i,children:p.jsx(wn,{scope:t,open:o,onOpenChange:l,content:d,onContentChange:u,children:p.jsx(Hs,{scope:t,contentId:be(),triggerId:be(),trigger:c,onTriggerChange:f,children:n})})})};Tn.displayName=bt;var ye="MenuSubTrigger",jn=a.forwardRef((e,t)=>{const n=se(ye,e.__scopeMenu),o=De(ye,e.__scopeMenu),r=Nn(ye,e.__scopeMenu),s=wt(ye,e.__scopeMenu),i=a.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=s,d={__scopeMenu:e.__scopeMenu},u=a.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return a.useEffect(()=>u,[u]),a.useEffect(()=>{const l=c.current;return()=>{window.clearTimeout(l),f(null)}},[c,f]),p.jsx(gt,{asChild:!0,...d,children:p.jsx(Rn,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":Fn(n.open),...e,ref:Ge(t,r.onTriggerChange),onClick:l=>{e.onClick?.(l),!(e.disabled||l.defaultPrevented)&&(l.currentTarget.focu
1s(),n.open||n.onOpenChange(!0))},onPointerMove:P(e.onPointerMove,Me(l=>{s.onItemEnter(l),!l.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:P(e.onPointerLeave,Me(l=>{u();const m=n.content?.getBoundingClientRect();if(m){const g=n.content?.dataset.side,h=g==="right",x=h?-5:5,w=m[h?"left":"right"],v=m[h?"right":"left"];s.onPointerGraceIntentChange({area:[{x:l.clientX+x,y:l.clientY},{x:w,y:m.top},{x:v,y:m.top},{x:v,y:m.bottom},{x:w,y:m.bottom}],side:g}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(l),l.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:P(e.onKeyDown,l=>{const m=s.searchRef.current!=="";e.disabled||m&&l.key===" "||Ms[o.dir].includes(l.key)&&(n.onOpenChange(!0),n.content?.focus(),l.preventDefault())})})})});jn.displayName=ye;var kn="MenuSubContent",Ln=a.forwardRef((e,t)=>{const n=vn(K,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=se(K,e.__scopeMenu),i=De(K,e.__scopeMenu),c=Nn(kn,e.__scopeMenu),f=a.useRef(null),d=Z(t,f);return p.jsx(Re.Provider,{scope:e.__scopeMenu,children:p.jsx(He,{present:o||s.open,children:p.jsx(Re.Slot,{scope:e.__scopeMenu,children:p.jsx(xt,{id:c.contentId,"aria-labelledby":c.triggerId,...r,ref:d,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{i.isUsingKeyboardRef.current&&f.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:P(e.onFocusOutside,u=>{u.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:P(e.onEscapeKeyDown,u=>{i.onClose(),u.preventDefault()}),onKeyDown:P(e.onKeyDown,u=>{const l=u.currentTarget.contains(u.target),m=Ss[i.dir].includes(u.key);l&&m&&(s.onOpenChange(!1),c.trigger?.focus(),u.preventDefault())})})})})})});Ln.displayName=kn;function Fn(e){return e?"open":"closed"}function We(e){return e==="indeterminate"}function Ct(e){return We(e)?"indeterminate":e?"checked":"unchecked"}function Ks(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Vs(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function zs(e,t,n){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Vs(e,Math.max(s,0));r.length===1&&(i=i.filter(d=>d!==n));const f=i.find(d=>d.toLowerCase().startsWith(r.toLowerCase()));return f!==n?f:void 0}function Us(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const c=t[s],f=t[i],d=c.x,u=c.y,l=f.x,m=f.y;u>o!=m>o&&n<(l-d)*(o-u)/(m-u)+d&&(r=!r)}return r}function Ys(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Us(n,t)}function Me(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Xs=xn,qs=gt,Zs=yn,Js=bn,Qs=vt,ei=Cn,ti=Ye,ni=Mn,oi=_n,ri=En,si=On,ii=Dn,ci=In,ai=Tn,li=jn,ui=Ln,Xe="DropdownMenu",[fi]=Se(Xe,[gn]),W=gn(),[di,$n]=fi(Xe),Bn=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:i,modal:c=!0}=e,f=W(t),d=a.useRef(null),[u,l]=it({prop:r,defaultProp:s??!1,onChange:i,caller:Xe});return p.jsx(di,{scope:t,triggerId:be(),triggerRef:d,contentId:be(),open:u,onOpenChange:l,onOpenToggle:a.useCallback(()=>l(m=>!m),[l]),modal:c,children:p.jsx(Xs,{...f,open:u,onOpenChange:l,dir:o,modal:c,children:n})})};Bn.displayName=Xe;var Wn="DropdownMenuTrigger",Gn=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=$n(Wn,n),i=W(n);return p.jsx(qs,{asChild:!0,...i,children:p.jsx(U.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:Ge(t,s.triggerRef),onPointerDown:P(e.onPointerDown,c=>{!o&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:P(e.onKeyDown,c=>{o||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});Gn.displayName=Wn;var pi="DropdownMenuPortal",Hn=e=>{const{__scopeDropdownMenu:t,...n}=e,o=W(t);return p.jsx(Zs,{...o,...n})};Hn.displayName=pi;var Kn="DropdownMenuContent",Vn=a.forwardRef((e,t)=>
1{const{__scopeDropdownMenu:n,...o}=e,r=$n(Kn,n),s=W(n),i=a.useRef(!1);return p.jsx(Js,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:P(e.onCloseAutoFocus,c=>{i.current||r.triggerRef.current?.focus(),i.current=!1,c.preventDefault()}),onInteractOutside:P(e.onInteractOutside,c=>{const f=c.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0,u=f.button===2||d;(!r.modal||u)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Vn.displayName=Kn;var mi="DropdownMenuGroup",gi=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=W(n);return p.jsx(Qs,{...r,...o,ref:t})});gi.displayName=mi;var hi="DropdownMenuLabel",zn=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=W(n);return p.jsx(ei,{...r,...o,ref:t})});zn.displayName=hi;var wi="DropdownMenuItem",Un=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=W(n);return p.jsx(ti,{...r,...o,ref:t})});Un.displayName=wi;var xi="DropdownMenuCheckboxItem",Yn=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=W(n);return p.jsx(ni,{...r,...o,ref:t})});Yn.displayName=xi;var vi="DropdownMenuRadioGroup",yi=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=W(n);return p.jsx(oi,{...r,...o,ref:t})});yi.displayName=vi;var bi="DropdownMenuRadioItem",Xn=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=W(n);return p.jsx(ri,{...r,...o,ref:t})});Xn.displayName=bi;var Ci="DropdownMenuItemIndicator",qn=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=W(n);return p.jsx(si,{...r,...o,ref:t})});qn.displayName=Ci;var Ri="DropdownMenuSeparator",Zn=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=W(n);return p.jsx(ii,{...r,...o,ref:t})});Zn.displayName=Ri;var Mi="DropdownMenuArrow",Si=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=W(n);return p.jsx(ci,{...r,...o,ref:t})});Si.displayName=Mi;var _i=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:r,defaultOpen:s}=e,i=W(t),[c,f]=it({prop:o,defaultProp:s??!1,onChange:r,caller:"DropdownMenuSub"});return p.jsx(ai,{...i,open:c,onOpenChange:f,children:n})},Ai="DropdownMenuSubTrigger",Jn=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=W(n);return p.jsx(li,{...r,...o,ref:t})});Jn.displayName=Ai;var Ei="DropdownMenuSubContent",Qn=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=W(n);return p.jsx(ui,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Qn.displayName=Ei;var Pi=Bn,Oi=Gn,eo=Hn,to=Vn,no=zn,oo=Un,ro=Yn,so=Xn,io=qn,co=Zn,Di=_i,ao=Jn,lo=Qn;const Ui=Pi,Yi=Oi,Xi=eo,qi=Di,Ii=a.forwardRef(({className:e,inset:t,children:n,...o},r)=>p.jsxs(ao,{ref:r,className:re("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[n,p.jsx(Po,{className:"ml-auto"})]}));Ii.displayName=ao.displayName;const Ni=a.forwardRef(({className:e,...t},n)=>p.jsx(lo,{ref:n,className:re("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-dropdown-menu-content-transform-origin)",e),...t}));Ni.displayName=lo.displayName;const Ti=a.forwardRef(({className:e,sideOffset:t=4,...n},o)=>p.jsx(eo,{children:p.jsx(to,{ref:o,sideOffset:t,className:re("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 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 origin-(--radix-dropdown-menu-content-transform-origin)",e),...n})}));Ti.displayName=to.displayName;const ji=a.forwardRef(({className:e,inset:t,...n},o)=>p.jsx(oo,{ref:o,className:re("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));ji.displayName=oo.displayName;const ki=a.forwardRef(({className:e,children:t,checked:n,...o},r)=>p.jsxs(ro,{ref:r,className:re("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...o,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(io,{children:p.jsx(Ao,{className:"h-4 w-4"})})}),t]}));ki.displayName=ro.displayName;const Li=a.forwardRef(({className:e,children:t,...n},o)=>p.jsxs(so,{ref:o,className:re("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(io,{children:p.jsx(Io,{className:"h-2 w-2 fill-current"})})}),t]}));Li.displayName=so.displayName;const Fi=a.forwardRef(({className:e,inset:t,...n},o)=>p.jsx(no,{ref:o,className:re("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Fi.displayName=no.displayName;const $i=a.forwardRef(({className:e,...t},n)=>p.jsx(co,{ref:n,className:re("-mx-1 my-1 h-px bg-muted",e),...t}));$i.displayName=co.displayName;const Zi="/assets/elistingo-mark-BHBLK8FF.png",Bi="[email protected]";function Ji(e){return(e??"").trim().toLowerCase()===Bi}function Qi(){return p.jsxs("div",{className:"elistingo-bg","aria-hidden":!0,children:[p.jsx("div",{className:"elistingo-bg__base"}),p.jsxs("div",{className:"elistingo-bg__aurora",children:[p.jsx("span",{className:"elistingo-bg__blob elistingo-bg__blob--a"}),p.jsx("span",{className:"elistingo-bg__blob elistingo-bg__blob--b"}),p.jsx("span",{className:"elistingo-bg__blob elistingo-bg__blob--c"})]}),p.jsx("div",{className:"elistingo-bg__vignette"})]})}
1export{ts as A,Ao as C,Ui as D,Ki as L,Vi as M,cn as R,Qi as S,zi as X,Yi as a,Ti as b,$i as c,ji as d,Hi as e,qi as f,Ii as g,Xi as h,Ji as i,Ni as j,kt as k,Zi as l,Lt as m,Zt as n,ns as o,os as p,Po as q,Fi as r,Yr as s,Io as t,Gi as u};
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.