import{r as v,t as vn,j as X}from"./app-BXD2B5eP.js";import{b as He,d as je,c as wn}from"./index-jdRYo6ia.js";import{c as Mt}from"./createLucideIcon-CV8Pe8Ty.js";import{u as Ue,P as Re}from"./index-Bth_M-wI.js";import{r as yn}from"./index-CX9bDgWD.js";import{u as xn}from"./index-BvPdTlb4.js";var bn=vn[" useId ".trim().toString()]||(()=>{}),Sn=0;function Yo(e){const[t,n]=v.useState(bn());return He(()=>{n(r=>r??String(Sn++))},[e]),e||(t?`radix-${t}`:"")}/**
* @license lucide-react v0.474.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const An=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],zo=Mt("Check",An);/**
* @license lucide-react v0.474.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Cn=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Uo=Mt("ChevronDown",Cn);var En=v.createContext(void 0);function Ko(e){const t=v.useContext(En);return e||t||"ltr"}function qo(e,[t,n]){return Math.min(n,Math.max(t,e))}var ke=0;function Zo(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??lt()),document.body.insertAdjacentElement("beforeend",e[1]??lt()),ke++,()=>{ke===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ke--}},[])}function lt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ne="focusScope.autoFocusOnMount",De="focusScope.autoFocusOnUnmount",ut={bubbles:!1,cancelable:!0},Rn="FocusScope",On=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[c,d]=v.useState(null),u=je(o),f=je(i),l=v.useRef(null),m=Ue(t,a=>d(a)),h=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let a=function(x){if(h.paused||!c)return;const b=x.target;c.contains(b)?l.current=b:Z(l.current,{select:!0})},p=function(x){if(h.paused||!c)return;const b=x.relatedTarget;b!==null&&(c.contains(b)||Z(l.current,{select:!0}))},g=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Z(c)};document.addEventListener("focusin",a),document.addEventListener("focusout",p);const y=new MutationObserver(g);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",p),y.disconnect()}}},[r,c,h.paused]),v.useEffect(()=>{if(c){dt.add(h);const a=document.activeElement;if(!c.contains(a)){const g=new CustomEvent(Ne,ut);c.addEventListener(Ne,u),c.dispatchEvent(g),g.defaultPrevented||(Pn(Nn(Lt(c)),{select:!0}),document.activeElement===a&&Z(c))}return()=>{c.removeEventListener(Ne,u),setTimeout(()=>{const g=new CustomEvent(De,ut);c.addEventListener(De,f),c.dispatchEvent(g),g.defaultPrevented||Z(a??document.body,{select:!0}),c.removeEventListener(De,f),dt.remove(h)},0)}}},[c,u,f,h]);const w=v.useCallback(a=>{if(!n&&!r||h.paused)return;const p=a.key==="Tab"&&!a.altKey&&!a.ctrlKey&&!a.metaKey,g=document.activeElement;if(p&&g){const y=a.currentTarget,[x,b]=Tn(y);x&&b?!a.shiftKey&&g===b?(a.preventDefault(),n&&Z(x,{select:!0})):a.shiftKey&&g===x&&(a.preventDefault(),n&&Z(b,{select:!0})):g===y&&a.preventDefault()}},[n,r,h.paused]);return X.jsx(Re.div,{tabIndex:-1,...s,ref:m,onKeyDown:w})});On.displayName=Rn;function Pn(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Z(r,{select:t}),document.activeElement!==n)return}function Tn(e){const t=Lt(e),n=ft(t,e),r=ft(t.reverse(),e);return[n,r]}function Lt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ft(e,t){for(const n of e)if(!Mn(n,{upTo:t}))return n}function Mn(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}function Ln(e){return e instanceof HTMLInputElement&&"select"in e}function Z(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ln(e)&&t&&e.select()}}var dt=kn();function kn(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ht(e,t),e.unshift(t)},remove(t){var n;e=ht(e,t),(n=e[0])==null||n.resume()}}}function ht(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Nn(e){return e.filter(t=>t.tagName!=="A")}const Dn=["top","right","bottom","left"],G=Math.min,I=Math.max,Se=Math.round,me=Math.floor,Y=e=>({x:e,y:e}),Fn={left:"right",right:"left",bottom:"top",top:"bottom"},Wn={start:"end",end:"start"};function Ve(e,t,n){return I(e,G(t,n))}function K(e,t){return typeof e=="function"?e(t):e}function q(e){return e.split("-")[0]}function se(e){return e.split("-")[1]}function Ke(e){return e==="x"?"y":"x"}function qe(e){return e==="y"?"height":"width"}const In=new Set(["top","bottom"]);function V(e){return In.has(q(e))?"y":"x"}function Ze(e){return Ke(V(e))}function _n(e,t,n){n===void 0&&(n=!1);const r=se(e),o=Ze(e),i=qe(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ae(s)),[s,Ae(s)]}function Bn(e){const t=Ae(e);return[Xe(e),t,Xe(t)]}function Xe(e){return e.replace(/start|end/g,t=>Wn[t])}const mt=["left","right"],pt=["right","left"],$n=["top","bottom"],Hn=["bottom","top"];function jn(e,t,n){switch(e){case"top":case"bottom":return n?t?pt:mt:t?mt:pt;case"left":case"right":return t?$n:Hn;default:return[]}}function Vn(e,t,n,r){const o=se(e);let i=jn(q(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Xe)))),i}function Ae(e){return e.replace(/left|right|bottom|top/g,t=>Fn[t])}function Xn(e){return{top:0,right:0,bottom:0,left:0,...e}}function kt(e){return typeof e!="number"?Xn(e):{top:e,right:e,bottom:e,left:e}}function Ce(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function gt(e,t,n){let{reference:r,floating:o}=e;const i=V(t),s=Ze(t),c=qe(s),d=q(t),u=i==="y",f=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,m=r[c]/2-o[c]/2;let h;switch(d){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:l};break;case"left":h={x:r.x-o.width,y:l};break;default:h={x:r.x,y:r.y}}switch(se(t)){case"start":h[s]-=m*(n&&u?-1:1);break;case"end":h[s]+=m*(n&&u?-1:1);break}return h}const Yn=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:l}=gt(u,r,d),m=r,h={},w=0;for(let a=0;a<c.length;a++){const{name:p,fn:g}=c[a],{x:y,y:x,data:b,reset:S}=await g({x:f,y:l,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});f=y??f,l=x??l,h={...h,[p]:{...h[p],...b}},S&&w<=50&&(w++,typeof S=="object"&&(S.placement&&(m=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:f,y:l}=gt(u,m,d)),a=-1)}return{x:f,y:l,placement:m,strategy:o,middlewareData:h}};async function le(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:l="floating",altBoundary:m=!1,padding:h=0}=K(t,e),w=kt(h),p=c[m?l==="floating"?"reference":"floating":l],g=Ce(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(p)))==null||n?p:p.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:d})),y=l==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),b=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Ce(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:x,strategy:d}):y);return{top:(g.top-S.top+w.top)/b.y,bottom:(S.bottom-g.bottom+w.bottom)/b.y,left:(g.left-S.left+w.left)/b.x,right:(S.right-g.right+w.right)/b.x}}const zn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:c,middlewareData:d}=t,{element:u,padding:f=0}=K(e,t)||{};if(u==null)return{};const l=kt(f),m={x:n,y:r},h=Ze(o),w=qe(h),a=await s.getDimensions(u),p=h==="y",g=p?"top":"left",y=p?"bottom":"right",x=p?"clientHeight":"clientWidth",b=i.reference[w]+i.reference[h]-m[h]-i.floating[w],S=m[h]-i.reference[h],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=A?A[x]:0;(!C||!await(s.isElement==null?void 0:s.isElement(A)))&&(C=c.floating[x]||i.floating[w]);const R=b/2-S/2,k=C/2-a[w]/2-1,L=G(l[g],k),D=G(l[y],k),F=L,P=C-a[w]-D,O=C/2-a[w]/2+R,W=Ve(F,O,P),T=!d.arrow&&se(o)!=null&&O!==W&&i.reference[w]/2-(O<F?L:D)-a[w]/2<0,M=T?O<F?O-F:O-P:0;return{[h]:m[h]+M,data:{[h]:W,centerOffset:O-W-M,...T&&{alignmentOffset:M}},reset:T}}}),Un=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:f=!0,crossAxis:l=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:a=!0,...p}=K(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=q(o),y=V(c),x=q(c)===c,b=await(d.isRTL==null?void 0:d.isRTL(u.floating)),S=m||(x||!a?[Ae(c)]:Bn(c)),A=w!=="none";!m&&A&&S.push(...Vn(c,a,w,b));const C=[c,...S],R=await le(t,p),k=[];let L=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&k.push(R[g]),l){const O=_n(o,s,b);k.push(R[O[0]],R[O[1]])}if(L=[...L,{placement:o,overflows:k}],!k.every(O=>O<=0)){var D,F;const O=(((D=i.flip)==null?void 0:D.index)||0)+1,W=C[O];if(W&&(!(l==="alignment"?y!==V(W):!1)||L.every(E=>V(E.placement)===y?E.overflows[0]>0:!0)))return{data:{index:O,overflows:L},reset:{placement:W}};let T=(F=L.filter(M=>M.overflows[0]<=0).sort((M,E)=>M.overflows[1]-E.overflows[1])[0])==null?void 0:F.placement;if(!T)switch(h){case"bestFit":{var P;const M=(P=L.filter(E=>{if(A){const N=V(E.placement);return N===y||N==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(N=>N>0).reduce((N,H)=>N+H,0)]).sort((E,N)=>E[1]-N[1])[0])==null?void 0:P[0];M&&(T=M);break}case"initialPlacement":T=c;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function vt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wt(e){return Dn.some(t=>e[t]>=0)}const Kn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=K(e,t);switch(r){case"referenceHidden":{const i=await le(t,{...o,elementContext:"reference"}),s=vt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:wt(s)}}}case"escaped":{const i=await le(t,{...o,altBoundary:!0}),s=vt(i,n.floating);return{data:{escapedOffsets:s,escaped:wt(s)}}}default:return{}}}}},Nt=new Set(["left","top"]);async function qn(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=q(n),c=se(n),d=V(n)==="y",u=Nt.has(s)?-1:1,f=i&&d?-1:1,l=K(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:w}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return c&&typeof w=="number"&&(h=c==="end"?w*-1:w),d?{x:h*f,y:m*u}:{x:m*u,y:h*f}}const Zn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:c}=t,d=await qn(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:s}}}}},Gn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:p=>{let{x:g,y}=p;return{x:g,y}}},...d}=K(e,t),u={x:n,y:r},f=await le(t,d),l=V(q(o)),m=Ke(l);let h=u[m],w=u[l];if(i){const p=m==="y"?"top":"left",g=m==="y"?"bottom":"right",y=h+f[p],x=h-f[g];h=Ve(y,h,x)}if(s){const p=l==="y"?"top":"left",g=l==="y"?"bottom":"right",y=w+f[p],x=w-f[g];w=Ve(y,w,x)}const a=c.fn({...t,[m]:h,[l]:w});return{...a,data:{x:a.x-n,y:a.y-r,enabled:{[m]:i,[l]:s}}}}}},Qn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=K(e,t),f={x:n,y:r},l=V(o),m=Ke(l);let h=f[m],w=f[l];const a=K(c,t),p=typeof a=="number"?{mainAxis:a,crossAxis:0}:{mainAxis:0,crossAxis:0,...a};if(d){const x=m==="y"?"height":"width",b=i.reference[m]-i.floating[x]+p.mainAxis,S=i.reference[m]+i.reference[x]-p.mainAxis;h<b?h=b:h>S&&(h=S)}if(u){var g,y;const x=m==="y"?"width":"height",b=Nt.has(q(o)),S=i.reference[l]-i.floating[x]+(b&&((g=s.offset)==null?void 0:g[l])||0)+(b?0:p.crossAxis),A=i.reference[l]+i.reference[x]+(b?0:((y=s.offset)==null?void 0:y[l])||0)-(b?p.crossAxis:0);w<S?w=S:w>A&&(w=A)}return{[m]:h,[l]:w}}}},Jn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:c}=t,{apply:d=()=>{},...u}=K(e,t),f=await le(t,u),l=q(o),m=se(o),h=V(o)==="y",{width:w,height:a}=i.floating;let p,g;l==="top"||l==="bottom"?(p=l,g=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=l,p=m==="end"?"top":"bottom");const y=a-f.top-f.bottom,x=w-f.left-f.right,b=G(a-f[p],y),S=G(w-f[g],x),A=!t.middlewareData.shift;let C=b,R=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=y),A&&!m){const L=I(f.left,0),D=I(f.right,0),F=I(f.top,0),P=I(f.bottom,0);h?R=w-2*(L!==0||D!==0?L+D:I(f.left,f.right)):C=a-2*(F!==0||P!==0?F+P:I(f.top,f.bottom))}await d({...t,availableWidth:R,availableHeight:C});const k=await s.getDimensions(c.floating);return w!==k.width||a!==k.height?{reset:{rects:!0}}:{}}}};function Oe(){return typeof window<"u"}function ce(e){return Dt(e)?(e.nodeName||"").toLowerCase():"#document"}function _(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function U(e){var t;return(t=(Dt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dt(e){return Oe()?e instanceof Node||e instanceof _(e).Node:!1}function B(e){return Oe()?e instanceof Element||e instanceof _(e).Element:!1}function z(e){return Oe()?e instanceof HTMLElement||e instanceof _(e).HTMLElement:!1}function yt(e){return!Oe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _(e).ShadowRoot}const er=new Set(["inline","contents"]);function fe(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!er.has(o)}const tr=new Set(["table","td","th"]);function nr(e){return tr.has(ce(e))}const rr=[":popover-open",":modal"];function Pe(e){return rr.some(t=>{try{return e.matches(t)}catch{return!1}})}const or=["transform","translate","scale","rotate","perspective"],ir=["transform","translate","scale","rotate","perspective","filter"],sr=["paint","layout","strict","content"];function Ge(e){const t=Qe(),n=B(e)?$(e):e;return or.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ir.some(r=>(n.willChange||"").includes(r))||sr.some(r=>(n.contain||"").includes(r))}function cr(e){let t=Q(e);for(;z(t)&&!ie(t);){if(Ge(t))return t;if(Pe(t))return null;t=Q(t)}return null}function Qe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ar=new Set(["html","body","#document"]);function ie(e){return ar.has(ce(e))}function $(e){return _(e).getComputedStyle(e)}function Te(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if(ce(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yt(e)&&e.host||U(e);return yt(t)?t.host:t}function Ft(e){const t=Q(e);return ie(t)?e.ownerDocument?e.ownerDocument.body:e.body:z(t)&&fe(t)?t:Ft(t)}function ue(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ft(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=_(o);if(i){const c=Ye(s);return t.concat(s,s.visualViewport||[],fe(o)?o:[],c&&n?ue(c):[])}return t.concat(o,ue(o,[],n))}function Ye(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wt(e){const t=$(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=z(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=Se(n)!==i||Se(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function Je(e){return B(e)?e:e.contextElement}function re(e){const t=Je(e);if(!z(t))return Y(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Wt(t);let s=(i?Se(n.width):n.width)/r,c=(i?Se(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const lr=Y(0);function It(e){const t=_(e);return!Qe()||!t.visualViewport?lr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ur(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_(e)?!1:t}function J(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Je(e);let s=Y(1);t&&(r?B(r)&&(s=re(r)):s=re(e));const c=ur(i,n,r)?It(i):Y(0);let d=(o.left+c.x)/s.x,u=(o.top+c.y)/s.y,f=o.width/s.x,l=o.height/s.y;if(i){const m=_(i),h=r&&B(r)?_(r):r;let w=m,a=Ye(w);for(;a&&r&&h!==w;){const p=re(a),g=a.getBoundingClientRect(),y=$(a),x=g.left+(a.clientLeft+parseFloat(y.paddingLeft))*p.x,b=g.top+(a.clientTop+parseFloat(y.paddingTop))*p.y;d*=p.x,u*=p.y,f*=p.x,l*=p.y,d+=x,u+=b,w=_(a),a=Ye(w)}}return Ce({width:f,height:l,x:d,y:u})}function Me(e,t){const n=Te(e).scrollLeft;return t?t.left+n:J(U(e)).left+n}function _t(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Me(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function fr(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=U(r),c=t?Pe(t.floating):!1;if(r===s||c&&i)return n;let d={scrollLeft:0,scrollTop:0},u=Y(1);const f=Y(0),l=z(r);if((l||!l&&!i)&&((ce(r)!=="body"||fe(s))&&(d=Te(r)),z(r))){const h=J(r);u=re(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const m=s&&!l&&!i?_t(s,d):Y(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+f.x+m.x,y:n.y*u.y-d.scrollTop*u.y+f.y+m.y}}function dr(e){return Array.from(e.getClientRects())}function hr(e){const t=U(e),n=Te(e),r=e.ownerDocument.body,o=I(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=I(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Me(e);const c=-n.scrollTop;return $(r).direction==="rtl"&&(s+=I(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:c}}const xt=25;function mr(e,t){const n=_(e),r=U(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,c=0,d=0;if(o){i=o.width,s=o.height;const f=Qe();(!f||f&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}const u=Me(r);if(u<=0){const f=r.ownerDocument,l=f.body,m=getComputedStyle(l),h=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,w=Math.abs(r.clientWidth-l.clientWidth-h);w<=xt&&(i-=w)}else u<=xt&&(i+=u);return{width:i,height:s,x:c,y:d}}const pr=new Set(["absolute","fixed"]);function gr(e,t){const n=J(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=z(e)?re(e):Y(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,d=o*i.x,u=r*i.y;return{width:s,height:c,x:d,y:u}}function bt(e,t,n){let r;if(t==="viewport")r=mr(e,n);else if(t==="document")r=hr(U(e));else if(B(t))r=gr(t,n);else{const o=It(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ce(r)}function Bt(e,t){const n=Q(e);return n===t||!B(n)||ie(n)?!1:$(n).position==="fixed"||Bt(n,t)}function vr(e,t){const n=t.get(e);if(n)return n;let r=ue(e,[],!1).filter(c=>B(c)&&ce(c)!=="body"),o=null;const i=$(e).position==="fixed";let s=i?Q(e):e;for(;B(s)&&!ie(s);){const c=$(s),d=Ge(s);!d&&c.position==="fixed"&&(o=null),(i?!d&&!o:!d&&c.position==="static"&&!!o&&pr.has(o.position)||fe(s)&&!d&&Bt(e,s))?r=r.filter(f=>f!==s):o=c,s=Q(s)}return t.set(e,r),r}function wr(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Pe(t)?[]:vr(t,this._c):[].concat(n),r],c=s[0],d=s.reduce((u,f)=>{const l=bt(t,f,o);return u.top=I(l.top,u.top),u.right=G(l.right,u.right),u.bottom=G(l.bottom,u.bottom),u.left=I(l.left,u.left),u},bt(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function yr(e){const{width:t,height:n}=Wt(e);return{width:t,height:n}}function xr(e,t,n){const r=z(t),o=U(t),i=n==="fixed",s=J(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const d=Y(0);function u(){d.x=Me(o)}if(r||!r&&!i)if((ce(t)!=="body"||fe(o))&&(c=Te(t)),r){const h=J(t,!0,i,t);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else o&&u();i&&!r&&o&&u();const f=o&&!r&&!i?_t(o,c):Y(0),l=s.left+c.scrollLeft-d.x-f.x,m=s.top+c.scrollTop-d.y-f.y;return{x:l,y:m,width:s.width,height:s.height}}function Fe(e){return $(e).position==="static"}function St(e,t){if(!z(e)||$(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return U(e)===n&&(n=n.ownerDocument.body),n}function $t(e,t){const n=_(e);if(Pe(e))return n;if(!z(e)){let o=Q(e);for(;o&&!ie(o);){if(B(o)&&!Fe(o))return o;o=Q(o)}return n}let r=St(e,t);for(;r&&nr(r)&&Fe(r);)r=St(r,t);return r&&ie(r)&&Fe(r)&&!Ge(r)?n:r||cr(e)||n}const br=async function(e){const t=this.getOffsetParent||$t,n=this.getDimensions,r=await n(e.floating);return{reference:xr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Sr(e){return $(e).direction==="rtl"}const Ar={convertOffsetParentRelativeRectToViewportRelativeRect:fr,getDocumentElement:U,getClippingRect:wr,getOffsetParent:$t,getElementRects:br,getClientRects:dr,getDimensions:yr,getScale:re,isElement:B,isRTL:Sr};function Ht(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cr(e,t){let n=null,r;const o=U(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),i();const u=e.getBoundingClientRect(),{left:f,top:l,width:m,height:h}=u;if(c||t(),!m||!h)return;const w=me(l),a=me(o.clientWidth-(f+m)),p=me(o.clientHeight-(l+h)),g=me(f),x={rootMargin:-w+"px "+-a+"px "+-p+"px "+-g+"px",threshold:I(0,G(1,d))||1};let b=!0;function S(A){const C=A[0].intersectionRatio;if(C!==d){if(!b)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!Ht(u,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return s(!0),i}function Er(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=Je(e),f=o||i?[...u?ue(u):[],...ue(t)]:[];f.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const l=u&&c?Cr(u,n):null;let m=-1,h=null;s&&(h=new ResizeObserver(g=>{let[y]=g;y&&y.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),u&&!d&&h.observe(u),h.observe(t));let w,a=d?J(e):null;d&&p();function p(){const g=J(e);a&&!Ht(a,g)&&n(),a=g,w=requestAnimationFrame(p)}return n(),()=>{var g;f.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),l==null||l(),(g=h)==null||g.disconnect(),h=null,d&&cancelAnimationFrame(w)}}const Rr=Zn,Or=Gn,Pr=Un,Tr=Jn,Mr=Kn,At=zn,Lr=Qn,kr=(e,t,n)=>{const r=new Map,o={platform:Ar,...n},i={...o.platform,_c:r};return Yn(e,t,{...o,platform:i})};var Nr=typeof document<"u",Dr=function(){},ye=Nr?v.useLayoutEffect:Dr;function Ee(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,o;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(!Ee(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ee(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function jt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ct(e,t){const n=jt(e);return Math.round(t*n)/n}function We(e){const t=v.useRef(e);return ye(()=>{t.current=e}),t}function Fr(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[f,l]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=v.useState(r);Ee(m,r)||h(r);const[w,a]=v.useState(null),[p,g]=v.useState(null),y=v.useCallback(E=>{E!==A.current&&(A.current=E,a(E))},[]),x=v.useCallback(E=>{E!==C.current&&(C.current=E,g(E))},[]),b=i||w,S=s||p,A=v.useRef(null),C=v.useRef(null),R=v.useRef(f),k=d!=null,L=We(d),D=We(o),F=We(u),P=v.useCallback(()=>{if(!A.current||!C.current)return;const E={placement:t,strategy:n,middleware:m};D.current&&(E.platform=D.current),kr(A.current,C.current,E).then(N=>{const H={...N,isPositioned:F.current!==!1};O.current&&!Ee(R.current,H)&&(R.current=H,yn.flushSync(()=>{l(H)}))})},[m,t,n,D,F]);ye(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,l(E=>({...E,isPositioned:!1})))},[u]);const O=v.useRef(!1);ye(()=>(O.current=!0,()=>{O.current=!1}),[]),ye(()=>{if(b&&(A.current=b),S&&(C.current=S),b&&S){if(L.current)return L.current(b,S,P);P()}},[b,S,P,L,k]);const W=v.useMemo(()=>({reference:A,floating:C,setReference:y,setFloating:x}),[y,x]),T=v.useMemo(()=>({reference:b,floating:S}),[b,S]),M=v.useMemo(()=>{const E={position:n,left:0,top:0};if(!T.floating)return E;const N=Ct(T.floating,f.x),H=Ct(T.floating,f.y);return c?{...E,transform:"translate("+N+"px, "+H+"px)",...jt(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:H}},[n,c,T.floating,f.x,f.y]);return v.useMemo(()=>({...f,update:P,refs:W,elements:T,floatingStyles:M}),[f,P,W,T,M])}const Wr=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?At({element:r.current,padding:o}).fn(n):{}:r?At({element:r,padding:o}).fn(n):{}}}},Ir=(e,t)=>({...Rr(e),options:[e,t]}),_r=(e,t)=>({...Or(e),options:[e,t]}),Br=(e,t)=>({...Lr(e),options:[e,t]}),$r=(e,t)=>({...Pr(e),options:[e,t]}),Hr=(e,t)=>({...Tr(e),options:[e,t]}),jr=(e,t)=>({...Mr(e),options:[e,t]}),Vr=(e,t)=>({...Wr(e),options:[e,t]});var Xr="Arrow",Vt=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return X.jsx(Re.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:X.jsx("polygon",{points:"0,0 30,0 15,10"})})});Vt.displayName=Xr;var Yr=Vt,et="Popper",[Xt,Go]=wn(et),[zr,Yt]=Xt(et),zt=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v.useState(null);return X.jsx(zr,{scope:t,anchor:r,onAnchorChange:o,children:n})};zt.displayName=et;var Ut="PopperAnchor",Kt=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Yt(Ut,n),s=v.useRef(null),c=Ue(t,s),d=v.useRef(null);return v.useEffect(()=>{const u=d.current;d.current=(r==null?void 0:r.current)||s.current,u!==d.current&&i.onAnchorChange(d.current)}),r?null:X.jsx(Re.div,{...o,ref:c})});Kt.displayName=Ut;var tt="PopperContent",[Ur,Kr]=Xt(tt),qt=v.forwardRef((e,t)=>{var nt,rt,ot,it,st,ct;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:l="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:w,...a}=e,p=Yt(tt,n),[g,y]=v.useState(null),x=Ue(t,ae=>y(ae)),[b,S]=v.useState(null),A=xn(b),C=(A==null?void 0:A.width)??0,R=(A==null?void 0:A.height)??0,k=r+(i!=="center"?"-"+i:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},D=Array.isArray(u)?u:[u],F=D.length>0,P={padding:L,boundary:D.filter(Zr),altBoundary:F},{refs:O,floatingStyles:W,placement:T,isPositioned:M,middlewareData:E}=Fr({strategy:"fixed",placement:k,whileElementsMounted:(...ae)=>Er(...ae,{animationFrame:h==="always"}),elements:{reference:p.anchor},middleware:[Ir({mainAxis:o+R,alignmentAxis:s}),d&&_r({mainAxis:!0,crossAxis:!1,limiter:l==="partial"?Br():void 0,...P}),d&&$r({...P}),Hr({...P,apply:({elements:ae,rects:at,availableWidth:hn,availableHeight:mn})=>{const{width:pn,height:gn}=at.reference,he=ae.floating.style;he.setProperty("--radix-popper-available-width",`${hn}px`),he.setProperty("--radix-popper-available-height",`${mn}px`),he.setProperty("--radix-popper-anchor-width",`${pn}px`),he.setProperty("--radix-popper-anchor-height",`${gn}px`)}}),b&&Vr({element:b,padding:c}),Gr({arrowWidth:C,arrowHeight:R}),m&&jr({strategy:"referenceHidden",...P})]}),[N,H]=Qt(T),de=je(w);He(()=>{M&&(de==null||de())},[M,de]);const an=(nt=E.arrow)==null?void 0:nt.x,ln=(rt=E.arrow)==null?void 0:rt.y,un=((ot=E.arrow)==null?void 0:ot.centerOffset)!==0,[fn,dn]=v.useState();return He(()=>{g&&dn(window.getComputedStyle(g).zIndex)},[g]),X.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:M?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fn,"--radix-popper-transform-origin":[(it=E.transformOrigin)==null?void 0:it.x,(st=E.transformOrigin)==null?void 0:st.y].join(" "),...((ct=E.hide)==null?void 0:ct.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:X.jsx(Ur,{scope:n,placedSide:N,onArrowChange:S,arrowX:an,arrowY:ln,shouldHideArrow:un,children:X.jsx(Re.div,{"data-side":N,"data-align":H,...a,ref:x,style:{...a.style,animation:M?void 0:"none"}})})})});qt.displayName=tt;var Zt="PopperArrow",qr={top:"bottom",right:"left",bottom:"top",left:"right"},Gt=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Kr(Zt,r),s=qr[i.placedSide];return X.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:X.jsx(Yr,{...o,ref:n,style:{...o.style,display:"block"}})})});Gt.displayName=Zt;function Zr(e){return e!==null}var Gr=e=>({name:"transformOrigin",options:e,fn(t){var p,g,y;const{placement:n,rects:r,middlewareData:o}=t,s=((p=o.arrow)==null?void 0:p.centerOffset)!==0,c=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[u,f]=Qt(n),l={start:"0%",center:"50%",end:"100%"}[f],m=(((g=o.arrow)==null?void 0:g.x)??0)+c/2,h=(((y=o.arrow)==null?void 0:y.y)??0)+d/2;let w="",a="";return u==="bottom"?(w=s?l:`${m}px`,a=`${-d}px`):u==="top"?(w=s?l:`${m}px`,a=`${r.floating.height+d}px`):u==="right"?(w=`${-d}px`,a=s?l:`${h}px`):u==="left"&&(w=`${r.floating.width+d}px`,a=s?l:`${h}px`),{data:{x:w,y:a}}}});function Qt(e){const[t,n="center"]=e.split("-");return[t,n]}var Qo=zt,Jo=Kt,ei=qt,ti=Gt,Qr=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ee=new WeakMap,pe=new WeakMap,ge={},Ie=0,Jt=function(e){return e&&(e.host||Jt(e.parentNode))},Jr=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Jt(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},eo=function(e,t,n,r){var o=Jr(t,Array.isArray(e)?e:[e]);ge[n]||(ge[n]=new WeakMap);var i=ge[n],s=[],c=new Set,d=new Set(o),u=function(l){!l||c.has(l)||(c.add(l),u(l.parentNode))};o.forEach(u);var f=function(l){!l||d.has(l)||Array.prototype.forEach.call(l.children,function(m){if(c.has(m))f(m);else try{var h=m.getAttribute(r),w=h!==null&&h!=="false",a=(ee.get(m)||0)+1,p=(i.get(m)||0)+1;ee.set(m,a),i.set(m,p),s.push(m),a===1&&w&&pe.set(m,!0),p===1&&m.setAttribute(n,"true"),w||m.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",m,g)}})};return f(t),c.clear(),Ie++,function(){s.forEach(function(l){var m=ee.get(l)-1,h=i.get(l)-1;ee.set(l,m),i.set(l,h),m||(pe.has(l)||l.removeAttribute(r),pe.delete(l)),h||l.removeAttribute(n)}),Ie--,Ie||(ee=new WeakMap,ee=new WeakMap,pe=new WeakMap,ge={})}},ni=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Qr(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),eo(r,o,n,"aria-hidden")):function(){return null}},j=function(){return j=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},j.apply(this,arguments)};function en(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function to(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var xe="right-scroll-bar-position",be="width-before-scroll-bar",no="with-scroll-bars-hidden",ro="--removed-body-scroll-bar-size";function _e(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function oo(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var io=typeof window<"u"?v.useLayoutEffect:v.useEffect,Et=new WeakMap;function so(e,t){var n=oo(null,function(r){return e.forEach(function(o){return _e(o,r)})});return io(function(){var r=Et.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(c){i.has(c)||_e(c,null)}),i.forEach(function(c){o.has(c)||_e(c,s)})}Et.set(n,e)},[e]),n}function co(e){return e}function ao(e,t){t===void 0&&(t=co);var n=[],r=!1,o={read:function(){if(r)throw new 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(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(i),s=n}var d=function(){var f=s;s=[],f.forEach(i)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),n}}}};return o}function lo(e){e===void 0&&(e={});var t=ao(null);return t.options=j({async:!0,ssr:!1},e),t}var tn=function(e){var t=e.sideCar,n=en(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,j({},n))};tn.isSideCarExport=!0;function uo(e,t){return e.useMedium(t),tn}var nn=lo(),Be=function(){},Le=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:Be,onWheelCapture:Be,onTouchMoveCapture:Be}),o=r[0],i=r[1],s=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,l=e.shards,m=e.sideCar,h=e.noRelative,w=e.noIsolation,a=e.inert,p=e.allowPinchZoom,g=e.as,y=g===void 0?"div":g,x=e.gapMode,b=en(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,A=so([n,t]),C=j(j({},b),o);return v.createElement(v.Fragment,null,f&&v.createElement(S,{sideCar:nn,removeScrollBar:u,shards:l,noRelative:h,noIsolation:w,inert:a,setCallbacks:i,allowPinchZoom:!!p,lockRef:n,gapMode:x}),s?v.cloneElement(v.Children.only(c),j(j({},C),{ref:A})):v.createElement(y,j({},C,{className:d,ref:A}),c))});Le.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Le.classNames={fullWidth:be,zeroRight:xe};var fo=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ho(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=fo();return t&&e.setAttribute("nonce",t),e}function mo(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function po(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var go=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ho())&&(mo(t,n),po(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vo=function(){var e=go();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},rn=function(){var e=vo(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},wo={left:0,top:0,right:0,gap:0},$e=function(e){return parseInt(e||"",10)||0},yo=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[$e(n),$e(r),$e(o)]},xo=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return wo;var t=yo(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])}},bo=rn(),oe="data-scroll-locked",So=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
.`.concat(no,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(c,"px ").concat(r,`;
}
body[`).concat(oe,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(i,`px;
padding-right: `).concat(s,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(c,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(xe,` {
right: `).concat(c,"px ").concat(r,`;
}
.`).concat(be,` {
margin-right: `).concat(c,"px ").concat(r,`;
}
.`).concat(xe," .").concat(xe,` {
right: 0 `).concat(r,`;
}
.`).concat(be," .").concat(be,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(oe,`] {
`).concat(ro,": ").concat(c,`px;
}
`)},Rt=function(){var e=parseInt(document.body.getAttribute(oe)||"0",10);return isFinite(e)?e:0},Ao=function(){v.useEffect(function(){return document.body.setAttribute(oe,(Rt()+1).toString()),function(){var e=Rt()-1;e<=0?document.body.removeAttribute(oe):document.body.setAttribute(oe,e.toString())}},[])},Co=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Ao();var i=v.useMemo(function(){return xo(o)},[o]);return v.createElement(bo,{styles:So(i,!t,o,n?"":"!important")})},ze=!1;if(typeof window<"u")try{var ve=Object.defineProperty({},"passive",{get:function(){return ze=!0,!0}});window.addEventListener("test",ve,ve),window.removeEventListener("test",ve,ve)}catch{ze=!1}var te=ze?{passive:!1}:!1,Eo=function(e){return e.tagName==="TEXTAREA"},on=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Eo(e)&&n[t]==="visible")},Ro=function(e){return on(e,"overflowY")},Oo=function(e){return on(e,"overflowX")},Ot=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=sn(e,r);if(o){var i=cn(e,r),s=i[1],c=i[2];if(s>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Po=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},To=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},sn=function(e,t){return e==="v"?Ro(t):Oo(t)},cn=function(e,t){return e==="v"?Po(t):To(t)},Mo=function(e,t){return e==="h"&&t==="rtl"?-1:1},Lo=function(e,t,n,r,o){var i=Mo(e,window.getComputedStyle(t).direction),s=i*r,c=n.target,d=t.contains(c),u=!1,f=s>0,l=0,m=0;do{if(!c)break;var h=cn(e,c),w=h[0],a=h[1],p=h[2],g=a-p-i*w;(w||g)&&sn(e,c)&&(l+=g,m+=w);var y=c.parentNode;c=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(f&&Math.abs(l)<1||!f&&Math.abs(m)<1)&&(u=!0),u},we=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pt=function(e){return[e.deltaX,e.deltaY]},Tt=function(e){return e&&"current"in e?e.current:e},ko=function(e,t){return e[0]===t[0]&&e[1]===t[1]},No=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Do=0,ne=[];function Fo(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(Do++)[0],i=v.useState(rn)[0],s=v.useRef(e);v.useEffect(function(){s.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var a=to([e.lockRef.current],(e.shards||[]).map(Tt),!0).filter(Boolean);return a.forEach(function(p){return p.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),a.forEach(function(p){return p.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=v.useCallback(function(a,p){if("touches"in a&&a.touches.length===2||a.type==="wheel"&&a.ctrlKey)return!s.current.allowPinchZoom;var g=we(a),y=n.current,x="deltaX"in a?a.deltaX:y[0]-g[0],b="deltaY"in a?a.deltaY:y[1]-g[1],S,A=a.target,C=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in a&&C==="h"&&A.type==="range")return!1;var R=Ot(C,A);if(!R)return!0;if(R?S=C:(S=C==="v"?"h":"v",R=Ot(C,A)),!R)return!1;if(!r.current&&"changedTouches"in a&&(x||b)&&(r.current=S),!S)return!0;var k=r.current||S;return Lo(k,p,a,k==="h"?x:b)},[]),d=v.useCallback(function(a){var p=a;if(!(!ne.length||ne[ne.length-1]!==i)){var g="deltaY"in p?Pt(p):we(p),y=t.current.filter(function(S){return S.name===p.type&&(S.target===p.target||p.target===S.shadowParent)&&ko(S.delta,g)})[0];if(y&&y.should){p.cancelable&&p.preventDefault();return}if(!y){var x=(s.current.shards||[]).map(Tt).filter(Boolean).filter(function(S){return S.contains(p.target)}),b=x.length>0?c(p,x[0]):!s.current.noIsolation;b&&p.cancelable&&p.preventDefault()}}},[]),u=v.useCallback(function(a,p,g,y){var x={name:a,delta:p,target:g,should:y,shadowParent:Wo(g)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(b){return b!==x})},1)},[]),f=v.useCallback(function(a){n.current=we(a),r.current=void 0},[]),l=v.useCallback(function(a){u(a.type,Pt(a),a.target,c(a,e.lockRef.current))},[]),m=v.useCallback(function(a){u(a.type,we(a),a.target,c(a,e.lockRef.current))},[]);v.useEffect(function(){return ne.push(i),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:m}),document.addEventListener("wheel",d,te),document.addEventListener("touchmove",d,te),document.addEventListener("touchstart",f,te),function(){ne=ne.filter(function(a){return a!==i}),document.removeEventListener("wheel",d,te),document.removeEventListener("touchmove",d,te),document.removeEventListener("touchstart",f,te)}},[]);var h=e.removeScrollBar,w=e.inert;return v.createElement(v.Fragment,null,w?v.createElement(i,{styles:No(o)}):null,h?v.createElement(Co,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Wo(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Io=uo(nn,Fo);var _o=v.forwardRef(function(e,t){return v.createElement(Le,j({},e,{ref:t,sideCar:Io}))});_o.classNames=Le.classNames;export{Jo as A,zo as C,On as F,Qo as R,Uo as a,Ko as b,qo as c,Go as d,Zo as e,_o as f,ei as g,ni as h,ti as i,Yo as u};
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]