Files
soorya-carpet/public/build/assets/sheet-iBbRuLZ4.js
admin 9c703306ec
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
chore: build
2025-10-27 21:32:05 +05:45

51 lines
55 KiB
JavaScript

import{R as re,j as S,r as u,t as Gn}from"./app-Ajql0Lt4.js";import{c as nt,a as ee,d as De,b as qn,u as Zn,P as rt,e as Qn}from"./index-CS1SDu2T.js";import{a as Jn,u as K,e as qe,c as ye}from"./createLucideIcon-B_iAwCmA.js";import{P as B,d as er,r as tr,R as nr}from"./index-em-EQZzp.js";/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rr=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],or=Jn("X",rr);function ts(e){const t=e+"CollectionProvider",[n,r]=nt(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=l=>{const{scope:g,children:v}=l,w=re.useRef(null),x=re.useRef(new Map).current;return S.jsx(o,{scope:g,itemMap:x,collectionRef:w,children:v})};s.displayName=t;const a=e+"CollectionSlot",d=qe(a),c=re.forwardRef((l,g)=>{const{scope:v,children:w}=l,x=i(a,v),b=K(g,x.collectionRef);return S.jsx(d,{ref:b,children:w})});c.displayName=a;const f=e+"CollectionItemSlot",m="data-radix-collection-item",p=qe(f),h=re.forwardRef((l,g)=>{const{scope:v,children:w,...x}=l,b=re.useRef(null),E=K(g,b),R=i(f,v);return re.useEffect(()=>(R.itemMap.set(b,{ref:b,...x}),()=>void R.itemMap.delete(b))),S.jsx(p,{[m]:"",ref:E,children:w})});h.displayName=f;function y(l){const g=i(e+"CollectionConsumer",l);return re.useCallback(()=>{const w=g.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${m}]`));return Array.from(g.itemMap.values()).sort((R,C)=>x.indexOf(R.ref.current)-x.indexOf(C.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:c,ItemSlot:h},y,r]}var ir=u.createContext(void 0);function ns(e){const t=u.useContext(ir);return e||t||"ltr"}function fe(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>t.current?.(...n),[])}function sr(e,t=globalThis?.document){const n=fe(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ar="DismissableLayer",Ze="dismissableLayer.update",cr="dismissableLayer.pointerDownOutside",lr="dismissableLayer.focusOutside",yt,Bt=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$t=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...d}=e,c=u.useContext(Bt),[f,m]=u.useState(null),p=f?.ownerDocument??globalThis?.document,[,h]=u.useState({}),y=K(t,C=>m(C)),l=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=l.indexOf(g),w=f?l.indexOf(f):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,b=w>=v,E=dr(C=>{const P=C.target,T=[...c.branches].some(O=>O.contains(P));!b||T||(o?.(C),s?.(C),C.defaultPrevented||a?.())},p),R=mr(C=>{const P=C.target;[...c.branches].some(O=>O.contains(P))||(i?.(C),s?.(C),C.defaultPrevented||a?.())},p);return sr(C=>{w===c.layers.size-1&&(r?.(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},p),u.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(yt=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),wt(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=yt)}},[f,p,n,c]),u.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),wt())},[f,c]),u.useEffect(()=>{const C=()=>h({});return document.addEventListener(Ze,C),()=>document.removeEventListener(Ze,C)},[]),S.jsx(B.div,{...d,ref:y,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:ee(e.onFocusCapture,R.onFocusCapture),onBlurCapture:ee(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:ee(e.onPointerDownCapture,E.onPointerDownCapture)})});$t.displayName=ar;var ur="DismissableLayerBranch",fr=u.forwardRef((e,t)=>{const n=u.useContext(Bt),r=u.useRef(null),o=K(t,r);return u.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),S.jsx(B.div,{...e,ref:o})});fr.displayName=ur;function dr(e,t=globalThis?.document){const n=fe(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let d=function(){Ht(cr,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function mr(e,t=globalThis?.document){const n=fe(e),r=u.useRef(!1);return u.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ht(lr,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function wt(){const e=new CustomEvent(Ze);document.dispatchEvent(e)}function Ht(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?er(o,i):o.dispatchEvent(i)}var Be=0;function hr(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??xt()),document.body.insertAdjacentElement("beforeend",e[1]??xt()),Be++,()=>{Be===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Be--}},[])}function xt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var $e="focusScope.autoFocusOnMount",He="focusScope.autoFocusOnUnmount",bt={bubbles:!1,cancelable:!0},pr="FocusScope",Vt=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,d]=u.useState(null),c=fe(o),f=fe(i),m=u.useRef(null),p=K(t,l=>d(l)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let l=function(x){if(h.paused||!a)return;const b=x.target;a.contains(b)?m.current=b:J(m.current,{select:!0})},g=function(x){if(h.paused||!a)return;const b=x.relatedTarget;b!==null&&(a.contains(b)||J(m.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&J(a)};document.addEventListener("focusin",l),document.addEventListener("focusout",g);const w=new MutationObserver(v);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",g),w.disconnect()}}},[r,a,h.paused]),u.useEffect(()=>{if(a){Ct.add(h);const l=document.activeElement;if(!a.contains(l)){const v=new CustomEvent($e,bt);a.addEventListener($e,c),a.dispatchEvent(v),v.defaultPrevented||(gr(br(zt(a)),{select:!0}),document.activeElement===l&&J(a))}return()=>{a.removeEventListener($e,c),setTimeout(()=>{const v=new CustomEvent(He,bt);a.addEventListener(He,f),a.dispatchEvent(v),v.defaultPrevented||J(l??document.body,{select:!0}),a.removeEventListener(He,f),Ct.remove(h)},0)}}},[a,c,f,h]);const y=u.useCallback(l=>{if(!n&&!r||h.paused)return;const g=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,v=document.activeElement;if(g&&v){const w=l.currentTarget,[x,b]=vr(w);x&&b?!l.shiftKey&&v===b?(l.preventDefault(),n&&J(x,{select:!0})):l.shiftKey&&v===x&&(l.preventDefault(),n&&J(b,{select:!0})):v===w&&l.preventDefault()}},[n,r,h.paused]);return S.jsx(B.div,{tabIndex:-1,...s,ref:p,onKeyDown:y})});Vt.displayName=pr;function gr(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(J(r,{select:t}),document.activeElement!==n)return}function vr(e){const t=zt(e),n=Et(t,e),r=Et(t.reverse(),e);return[n,r]}function zt(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 Et(e,t){for(const n of e)if(!yr(n,{upTo:t}))return n}function yr(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 wr(e){return e instanceof HTMLInputElement&&"select"in e}function J(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&wr(e)&&t&&e.select()}}var Ct=xr();function xr(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=St(e,t),e.unshift(t)},remove(t){e=St(e,t),e[0]?.resume()}}}function St(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function br(e){return e.filter(t=>t.tagName!=="A")}var Er=Gn[" useId ".trim().toString()]||(()=>{}),Cr=0;function Ve(e){const[t,n]=u.useState(Er());return De(()=>{n(r=>r??String(Cr++))},[e]),e||(t?`radix-${t}`:"")}const Sr=["top","right","bottom","left"],te=Math.min,j=Math.max,Te=Math.round,be=Math.floor,X=e=>({x:e,y:e}),Rr={left:"right",right:"left",bottom:"top",top:"bottom"},Ar={start:"end",end:"start"};function Qe(e,t,n){return j(e,te(t,n))}function Z(e,t){return typeof e=="function"?e(t):e}function Q(e){return e.split("-")[0]}function me(e){return e.split("-")[1]}function ot(e){return e==="x"?"y":"x"}function it(e){return e==="y"?"height":"width"}const Pr=new Set(["top","bottom"]);function U(e){return Pr.has(Q(e))?"y":"x"}function st(e){return ot(U(e))}function Or(e,t,n){n===void 0&&(n=!1);const r=me(e),o=st(e),i=it(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ne(s)),[s,Ne(s)]}function Dr(e){const t=Ne(e);return[Je(e),t,Je(t)]}function Je(e){return e.replace(/start|end/g,t=>Ar[t])}const Rt=["left","right"],At=["right","left"],Tr=["top","bottom"],Nr=["bottom","top"];function Mr(e,t,n){switch(e){case"top":case"bottom":return n?t?At:Rt:t?Rt:At;case"left":case"right":return t?Tr:Nr;default:return[]}}function Lr(e,t,n,r){const o=me(e);let i=Mr(Q(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Je)))),i}function Ne(e){return e.replace(/left|right|bottom|top/g,t=>Rr[t])}function Ir(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yt(e){return typeof e!="number"?Ir(e):{top:e,right:e,bottom:e,left:e}}function Me(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 Pt(e,t,n){let{reference:r,floating:o}=e;const i=U(t),s=st(t),a=it(s),d=Q(t),c=i==="y",f=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/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:m};break;case"left":h={x:r.x-o.width,y:m};break;default:h={x:r.x,y:r.y}}switch(me(t)){case"start":h[s]-=p*(n&&c?-1:1);break;case"end":h[s]+=p*(n&&c?-1:1);break}return h}const kr=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:m}=Pt(c,r,d),p=r,h={},y=0;for(let l=0;l<a.length;l++){const{name:g,fn:v}=a[l],{x:w,y:x,data:b,reset:E}=await v({x:f,y:m,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});f=w??f,m=x??m,h={...h,[g]:{...h[g],...b}},E&&y<=50&&(y++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:m}=Pt(c,p,d)),l=-1)}return{x:f,y:m,placement:p,strategy:o,middlewareData:h}};async function ge(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:d}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:h=0}=Z(t,e),y=Yt(h),g=a[p?m==="floating"?"reference":"floating":m],v=Me(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:d})),w=m==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.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},E=Me(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:x,strategy:d}):w);return{top:(v.top-E.top+y.top)/b.y,bottom:(E.bottom-v.bottom+y.bottom)/b.y,left:(v.left-E.left+y.left)/b.x,right:(E.right-v.right+y.right)/b.x}}const Fr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:d}=t,{element:c,padding:f=0}=Z(e,t)||{};if(c==null)return{};const m=Yt(f),p={x:n,y:r},h=st(o),y=it(h),l=await s.getDimensions(c),g=h==="y",v=g?"top":"left",w=g?"bottom":"right",x=g?"clientHeight":"clientWidth",b=i.reference[y]+i.reference[h]-p[h]-i.floating[y],E=p[h]-i.reference[h],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let C=R?R[x]:0;(!C||!await(s.isElement==null?void 0:s.isElement(R)))&&(C=a.floating[x]||i.floating[y]);const P=b/2-E/2,T=C/2-l[y]/2-1,O=te(m[v],T),k=te(m[w],T),F=O,N=C-l[y]-k,D=C/2-l[y]/2+P,_=Qe(F,D,N),M=!d.arrow&&me(o)!=null&&D!==_&&i.reference[y]/2-(D<F?O:k)-l[y]/2<0,L=M?D<F?D-F:D-N:0;return{[h]:p[h]+L,data:{[h]:_,centerOffset:D-_-L,...M&&{alignmentOffset:L}},reset:M}}}),_r=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:a,platform:d,elements:c}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:l=!0,...g}=Z(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Q(o),w=U(a),x=Q(a)===a,b=await(d.isRTL==null?void 0:d.isRTL(c.floating)),E=p||(x||!l?[Ne(a)]:Dr(a)),R=y!=="none";!p&&R&&E.push(...Lr(a,l,y,b));const C=[a,...E],P=await ge(t,g),T=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&T.push(P[v]),m){const D=Or(o,s,b);T.push(P[D[0]],P[D[1]])}if(O=[...O,{placement:o,overflows:T}],!T.every(D=>D<=0)){var k,F;const D=(((k=i.flip)==null?void 0:k.index)||0)+1,_=C[D];if(_&&(!(m==="alignment"?w!==U(_):!1)||O.every(A=>U(A.placement)===w?A.overflows[0]>0:!0)))return{data:{index:D,overflows:O},reset:{placement:_}};let M=(F=O.filter(L=>L.overflows[0]<=0).sort((L,A)=>L.overflows[1]-A.overflows[1])[0])==null?void 0:F.placement;if(!M)switch(h){case"bestFit":{var N;const L=(N=O.filter(A=>{if(R){const I=U(A.placement);return I===w||I==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(I=>I>0).reduce((I,z)=>I+z,0)]).sort((A,I)=>A[1]-I[1])[0])==null?void 0:N[0];L&&(M=L);break}case"initialPlacement":M=a;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Ot(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Dt(e){return Sr.some(t=>e[t]>=0)}const jr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Z(e,t);switch(r){case"referenceHidden":{const i=await ge(t,{...o,elementContext:"reference"}),s=Ot(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Dt(s)}}}case"escaped":{const i=await ge(t,{...o,altBoundary:!0}),s=Ot(i,n.floating);return{data:{escapedOffsets:s,escaped:Dt(s)}}}default:return{}}}}},Ut=new Set(["left","top"]);async function Wr(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Q(n),a=me(n),d=U(n)==="y",c=Ut.has(s)?-1:1,f=i&&d?-1:1,m=Z(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:y}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&typeof y=="number"&&(h=a==="end"?y*-1:y),d?{x:h*f,y:p*c}:{x:p*c,y:h*f}}const Br=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:a}=t,d=await Wr(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:s}}}}},$r=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:a={fn:g=>{let{x:v,y:w}=g;return{x:v,y:w}}},...d}=Z(e,t),c={x:n,y:r},f=await ge(t,d),m=U(Q(o)),p=ot(m);let h=c[p],y=c[m];if(i){const g=p==="y"?"top":"left",v=p==="y"?"bottom":"right",w=h+f[g],x=h-f[v];h=Qe(w,h,x)}if(s){const g=m==="y"?"top":"left",v=m==="y"?"bottom":"right",w=y+f[g],x=y-f[v];y=Qe(w,y,x)}const l=a.fn({...t,[p]:h,[m]:y});return{...l,data:{x:l.x-n,y:l.y-r,enabled:{[p]:i,[m]:s}}}}}},Hr=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:d=!0,crossAxis:c=!0}=Z(e,t),f={x:n,y:r},m=U(o),p=ot(m);let h=f[p],y=f[m];const l=Z(a,t),g=typeof l=="number"?{mainAxis:l,crossAxis:0}:{mainAxis:0,crossAxis:0,...l};if(d){const x=p==="y"?"height":"width",b=i.reference[p]-i.floating[x]+g.mainAxis,E=i.reference[p]+i.reference[x]-g.mainAxis;h<b?h=b:h>E&&(h=E)}if(c){var v,w;const x=p==="y"?"width":"height",b=Ut.has(Q(o)),E=i.reference[m]-i.floating[x]+(b&&((v=s.offset)==null?void 0:v[m])||0)+(b?0:g.crossAxis),R=i.reference[m]+i.reference[x]+(b?0:((w=s.offset)==null?void 0:w[m])||0)-(b?g.crossAxis:0);y<E?y=E:y>R&&(y=R)}return{[p]:h,[m]:y}}}},Vr=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:a}=t,{apply:d=()=>{},...c}=Z(e,t),f=await ge(t,c),m=Q(o),p=me(o),h=U(o)==="y",{width:y,height:l}=i.floating;let g,v;m==="top"||m==="bottom"?(g=m,v=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=m,g=p==="end"?"top":"bottom");const w=l-f.top-f.bottom,x=y-f.left-f.right,b=te(l-f[g],w),E=te(y-f[v],x),R=!t.middlewareData.shift;let C=b,P=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=w),R&&!p){const O=j(f.left,0),k=j(f.right,0),F=j(f.top,0),N=j(f.bottom,0);h?P=y-2*(O!==0||k!==0?O+k:j(f.left,f.right)):C=l-2*(F!==0||N!==0?F+N:j(f.top,f.bottom))}await d({...t,availableWidth:P,availableHeight:C});const T=await s.getDimensions(a.floating);return y!==T.width||l!==T.height?{reset:{rects:!0}}:{}}}};function ke(){return typeof window<"u"}function he(e){return Xt(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q(e){var t;return(t=(Xt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xt(e){return ke()?e instanceof Node||e instanceof W(e).Node:!1}function $(e){return ke()?e instanceof Element||e instanceof W(e).Element:!1}function G(e){return ke()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}function Tt(e){return!ke()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}const zr=new Set(["inline","contents"]);function we(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=H(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!zr.has(o)}const Yr=new Set(["table","td","th"]);function Ur(e){return Yr.has(he(e))}const Xr=[":popover-open",":modal"];function Fe(e){return Xr.some(t=>{try{return e.matches(t)}catch{return!1}})}const Kr=["transform","translate","scale","rotate","perspective"],Gr=["transform","translate","scale","rotate","perspective","filter"],qr=["paint","layout","strict","content"];function at(e){const t=ct(),n=$(e)?H(e):e;return Kr.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)||Gr.some(r=>(n.willChange||"").includes(r))||qr.some(r=>(n.contain||"").includes(r))}function Zr(e){let t=ne(e);for(;G(t)&&!de(t);){if(at(t))return t;if(Fe(t))return null;t=ne(t)}return null}function ct(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qr=new Set(["html","body","#document"]);function de(e){return Qr.has(he(e))}function H(e){return W(e).getComputedStyle(e)}function _e(e){return $(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ne(e){if(he(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tt(e)&&e.host||q(e);return Tt(t)?t.host:t}function Kt(e){const t=ne(e);return de(t)?e.ownerDocument?e.ownerDocument.body:e.body:G(t)&&we(t)?t:Kt(t)}function ve(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Kt(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=W(o);if(i){const a=et(s);return t.concat(s,s.visualViewport||[],we(o)?o:[],a&&n?ve(a):[])}return t.concat(o,ve(o,[],n))}function et(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gt(e){const t=H(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=G(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Te(n)!==i||Te(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function lt(e){return $(e)?e:e.contextElement}function le(e){const t=lt(e);if(!G(t))return X(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Gt(t);let s=(i?Te(n.width):n.width)/r,a=(i?Te(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Jr=X(0);function qt(e){const t=W(e);return!ct()||!t.visualViewport?Jr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function eo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==W(e)?!1:t}function oe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=lt(e);let s=X(1);t&&(r?$(r)&&(s=le(r)):s=le(e));const a=eo(i,n,r)?qt(i):X(0);let d=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,f=o.width/s.x,m=o.height/s.y;if(i){const p=W(i),h=r&&$(r)?W(r):r;let y=p,l=et(y);for(;l&&r&&h!==y;){const g=le(l),v=l.getBoundingClientRect(),w=H(l),x=v.left+(l.clientLeft+parseFloat(w.paddingLeft))*g.x,b=v.top+(l.clientTop+parseFloat(w.paddingTop))*g.y;d*=g.x,c*=g.y,f*=g.x,m*=g.y,d+=x,c+=b,y=W(l),l=et(y)}}return Me({width:f,height:m,x:d,y:c})}function ut(e,t){const n=_e(e).scrollLeft;return t?t.left+n:oe(q(e)).left+n}function Zt(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ut(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function to(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=q(r),a=t?Fe(t.floating):!1;if(r===s||a&&i)return n;let d={scrollLeft:0,scrollTop:0},c=X(1);const f=X(0),m=G(r);if((m||!m&&!i)&&((he(r)!=="body"||we(s))&&(d=_e(r)),G(r))){const h=oe(r);c=le(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const p=s&&!m&&!i?Zt(s,d,!0):X(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-d.scrollLeft*c.x+f.x+p.x,y:n.y*c.y-d.scrollTop*c.y+f.y+p.y}}function no(e){return Array.from(e.getClientRects())}function ro(e){const t=q(e),n=_e(e),r=e.ownerDocument.body,o=j(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=j(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ut(e);const a=-n.scrollTop;return H(r).direction==="rtl"&&(s+=j(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function oo(e,t){const n=W(e),r=q(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,d=0;if(o){i=o.width,s=o.height;const c=ct();(!c||c&&t==="fixed")&&(a=o.offsetLeft,d=o.offsetTop)}return{width:i,height:s,x:a,y:d}}const io=new Set(["absolute","fixed"]);function so(e,t){const n=oe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=G(e)?le(e):X(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,d=o*i.x,c=r*i.y;return{width:s,height:a,x:d,y:c}}function Nt(e,t,n){let r;if(t==="viewport")r=oo(e,n);else if(t==="document")r=ro(q(e));else if($(t))r=so(t,n);else{const o=qt(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Me(r)}function Qt(e,t){const n=ne(e);return n===t||!$(n)||de(n)?!1:H(n).position==="fixed"||Qt(n,t)}function ao(e,t){const n=t.get(e);if(n)return n;let r=ve(e,[],!1).filter(a=>$(a)&&he(a)!=="body"),o=null;const i=H(e).position==="fixed";let s=i?ne(e):e;for(;$(s)&&!de(s);){const a=H(s),d=at(s);!d&&a.position==="fixed"&&(o=null),(i?!d&&!o:!d&&a.position==="static"&&!!o&&io.has(o.position)||we(s)&&!d&&Qt(e,s))?r=r.filter(f=>f!==s):o=a,s=ne(s)}return t.set(e,r),r}function co(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Fe(t)?[]:ao(t,this._c):[].concat(n),r],a=s[0],d=s.reduce((c,f)=>{const m=Nt(t,f,o);return c.top=j(m.top,c.top),c.right=te(m.right,c.right),c.bottom=te(m.bottom,c.bottom),c.left=j(m.left,c.left),c},Nt(t,a,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function lo(e){const{width:t,height:n}=Gt(e);return{width:t,height:n}}function uo(e,t,n){const r=G(t),o=q(t),i=n==="fixed",s=oe(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const d=X(0);function c(){d.x=ut(o)}if(r||!r&&!i)if((he(t)!=="body"||we(o))&&(a=_e(t)),r){const h=oe(t,!0,i,t);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else o&&c();i&&!r&&o&&c();const f=o&&!r&&!i?Zt(o,a):X(0),m=s.left+a.scrollLeft-d.x-f.x,p=s.top+a.scrollTop-d.y-f.y;return{x:m,y:p,width:s.width,height:s.height}}function ze(e){return H(e).position==="static"}function Mt(e,t){if(!G(e)||H(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return q(e)===n&&(n=n.ownerDocument.body),n}function Jt(e,t){const n=W(e);if(Fe(e))return n;if(!G(e)){let o=ne(e);for(;o&&!de(o);){if($(o)&&!ze(o))return o;o=ne(o)}return n}let r=Mt(e,t);for(;r&&Ur(r)&&ze(r);)r=Mt(r,t);return r&&de(r)&&ze(r)&&!at(r)?n:r||Zr(e)||n}const fo=async function(e){const t=this.getOffsetParent||Jt,n=this.getDimensions,r=await n(e.floating);return{reference:uo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function mo(e){return H(e).direction==="rtl"}const ho={convertOffsetParentRelativeRectToViewportRelativeRect:to,getDocumentElement:q,getClippingRect:co,getOffsetParent:Jt,getElementRects:fo,getClientRects:no,getDimensions:lo,getScale:le,isElement:$,isRTL:mo};function en(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function po(e,t){let n=null,r;const o=q(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),i();const c=e.getBoundingClientRect(),{left:f,top:m,width:p,height:h}=c;if(a||t(),!p||!h)return;const y=be(m),l=be(o.clientWidth-(f+p)),g=be(o.clientHeight-(m+h)),v=be(f),x={rootMargin:-y+"px "+-l+"px "+-g+"px "+-v+"px",threshold:j(0,te(1,d))||1};let b=!0;function E(R){const C=R[0].intersectionRatio;if(C!==d){if(!b)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!en(c,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return s(!0),i}function go(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,c=lt(e),f=o||i?[...c?ve(c):[],...ve(t)]:[];f.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const m=c&&a?po(c,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(v=>{let[w]=v;w&&w.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),c&&!d&&h.observe(c),h.observe(t));let y,l=d?oe(e):null;d&&g();function g(){const v=oe(e);l&&!en(l,v)&&n(),l=v,y=requestAnimationFrame(g)}return n(),()=>{var v;f.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),m?.(),(v=h)==null||v.disconnect(),h=null,d&&cancelAnimationFrame(y)}}const vo=Br,yo=$r,wo=_r,xo=Vr,bo=jr,Lt=Fr,Eo=Hr,Co=(e,t,n)=>{const r=new Map,o={platform:ho,...n},i={...o.platform,_c:r};return kr(e,t,{...o,platform:i})};var So=typeof document<"u",Ro=function(){},Ae=So?u.useLayoutEffect:Ro;function Le(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(!Le(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)&&!Le(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function tn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function It(e,t){const n=tn(e);return Math.round(t*n)/n}function Ye(e){const t=u.useRef(e);return Ae(()=>{t.current=e}),t}function Ao(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:d,open:c}=e,[f,m]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=u.useState(r);Le(p,r)||h(r);const[y,l]=u.useState(null),[g,v]=u.useState(null),w=u.useCallback(A=>{A!==R.current&&(R.current=A,l(A))},[]),x=u.useCallback(A=>{A!==C.current&&(C.current=A,v(A))},[]),b=i||y,E=s||g,R=u.useRef(null),C=u.useRef(null),P=u.useRef(f),T=d!=null,O=Ye(d),k=Ye(o),F=Ye(c),N=u.useCallback(()=>{if(!R.current||!C.current)return;const A={placement:t,strategy:n,middleware:p};k.current&&(A.platform=k.current),Co(R.current,C.current,A).then(I=>{const z={...I,isPositioned:F.current!==!1};D.current&&!Le(P.current,z)&&(P.current=z,tr.flushSync(()=>{m(z)}))})},[p,t,n,k,F]);Ae(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,m(A=>({...A,isPositioned:!1})))},[c]);const D=u.useRef(!1);Ae(()=>(D.current=!0,()=>{D.current=!1}),[]),Ae(()=>{if(b&&(R.current=b),E&&(C.current=E),b&&E){if(O.current)return O.current(b,E,N);N()}},[b,E,N,O,T]);const _=u.useMemo(()=>({reference:R,floating:C,setReference:w,setFloating:x}),[w,x]),M=u.useMemo(()=>({reference:b,floating:E}),[b,E]),L=u.useMemo(()=>{const A={position:n,left:0,top:0};if(!M.floating)return A;const I=It(M.floating,f.x),z=It(M.floating,f.y);return a?{...A,transform:"translate("+I+"px, "+z+"px)",...tn(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:z}},[n,a,M.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:N,refs:_,elements:M,floatingStyles:L}),[f,N,_,M,L])}const Po=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?Lt({element:r.current,padding:o}).fn(n):{}:r?Lt({element:r,padding:o}).fn(n):{}}}},Oo=(e,t)=>({...vo(e),options:[e,t]}),Do=(e,t)=>({...yo(e),options:[e,t]}),To=(e,t)=>({...Eo(e),options:[e,t]}),No=(e,t)=>({...wo(e),options:[e,t]}),Mo=(e,t)=>({...xo(e),options:[e,t]}),Lo=(e,t)=>({...bo(e),options:[e,t]}),Io=(e,t)=>({...Po(e),options:[e,t]});var ko="Arrow",nn=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return S.jsx(B.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});nn.displayName=ko;var Fo=nn,ft="Popper",[rn,rs]=nt(ft),[_o,on]=rn(ft),sn=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return S.jsx(_o,{scope:t,anchor:r,onAnchorChange:o,children:n})};sn.displayName=ft;var an="PopperAnchor",cn=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=on(an,n),s=u.useRef(null),a=K(t,s),d=u.useRef(null);return u.useEffect(()=>{const c=d.current;d.current=r?.current||s.current,c!==d.current&&i.onAnchorChange(d.current)}),r?null:S.jsx(B.div,{...o,ref:a})});cn.displayName=an;var dt="PopperContent",[jo,Wo]=rn(dt),ln=u.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:y,...l}=e,g=on(dt,n),[v,w]=u.useState(null),x=K(t,pe=>w(pe)),[b,E]=u.useState(null),R=qn(b),C=R?.width??0,P=R?.height??0,T=r+(i!=="center"?"-"+i:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},k=Array.isArray(c)?c:[c],F=k.length>0,N={padding:O,boundary:k.filter($o),altBoundary:F},{refs:D,floatingStyles:_,placement:M,isPositioned:L,middlewareData:A}=Ao({strategy:"fixed",placement:T,whileElementsMounted:(...pe)=>go(...pe,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[Oo({mainAxis:o+P,alignmentAxis:s}),d&&Do({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?To():void 0,...N}),d&&No({...N}),Mo({...N,apply:({elements:pe,rects:vt,availableWidth:Yn,availableHeight:Un})=>{const{width:Xn,height:Kn}=vt.reference,xe=pe.floating.style;xe.setProperty("--radix-popper-available-width",`${Yn}px`),xe.setProperty("--radix-popper-available-height",`${Un}px`),xe.setProperty("--radix-popper-anchor-width",`${Xn}px`),xe.setProperty("--radix-popper-anchor-height",`${Kn}px`)}}),b&&Io({element:b,padding:a}),Ho({arrowWidth:C,arrowHeight:P}),p&&Lo({strategy:"referenceHidden",...N})]}),[I,z]=dn(M),gt=fe(y);De(()=>{L&&gt?.()},[L,gt]);const Bn=A.arrow?.x,$n=A.arrow?.y,Hn=A.arrow?.centerOffset!==0,[Vn,zn]=u.useState();return De(()=>{v&&zn(window.getComputedStyle(v).zIndex)},[v]),S.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:L?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Vn,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(jo,{scope:n,placedSide:I,onArrowChange:E,arrowX:Bn,arrowY:$n,shouldHideArrow:Hn,children:S.jsx(B.div,{"data-side":I,"data-align":z,...l,ref:x,style:{...l.style,animation:L?void 0:"none"}})})})});ln.displayName=dt;var un="PopperArrow",Bo={top:"bottom",right:"left",bottom:"top",left:"right"},fn=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Wo(un,r),s=Bo[i.placedSide];return S.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:S.jsx(Fo,{...o,ref:n,style:{...o.style,display:"block"}})})});fn.displayName=un;function $o(e){return e!==null}var Ho=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[c,f]=dn(n),m={start:"0%",center:"50%",end:"100%"}[f],p=(o.arrow?.x??0)+a/2,h=(o.arrow?.y??0)+d/2;let y="",l="";return c==="bottom"?(y=s?m:`${p}px`,l=`${-d}px`):c==="top"?(y=s?m:`${p}px`,l=`${r.floating.height+d}px`):c==="right"?(y=`${-d}px`,l=s?m:`${h}px`):c==="left"&&(y=`${r.floating.width+d}px`,l=s?m:`${h}px`),{data:{x:y,y:l}}}});function dn(e){const[t,n="center"]=e.split("-");return[t,n]}var os=sn,is=cn,ss=ln,as=fn,Vo="Portal",mn=u.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=u.useState(!1);De(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?nr.createPortal(S.jsx(B.div,{...r,ref:t}),s):null});mn.displayName=Vo;var zo=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Yo="VisuallyHidden",hn=u.forwardRef((e,t)=>S.jsx(B.span,{...e,ref:t,style:{...zo,...e.style}}));hn.displayName=Yo;var cs=hn,Uo=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},se=new WeakMap,Ee=new WeakMap,Ce={},Ue=0,pn=function(e){return e&&(e.host||pn(e.parentNode))},Xo=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=pn(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})},Ko=function(e,t,n,r){var o=Xo(t,Array.isArray(e)?e:[e]);Ce[n]||(Ce[n]=new WeakMap);var i=Ce[n],s=[],a=new Set,d=new Set(o),c=function(m){!m||a.has(m)||(a.add(m),c(m.parentNode))};o.forEach(c);var f=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(p){if(a.has(p))f(p);else try{var h=p.getAttribute(r),y=h!==null&&h!=="false",l=(se.get(p)||0)+1,g=(i.get(p)||0)+1;se.set(p,l),i.set(p,g),s.push(p),l===1&&y&&Ee.set(p,!0),g===1&&p.setAttribute(n,"true"),y||p.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return f(t),a.clear(),Ue++,function(){s.forEach(function(m){var p=se.get(m)-1,h=i.get(m)-1;se.set(m,p),i.set(m,h),p||(Ee.has(m)||m.removeAttribute(r),Ee.delete(m)),h||m.removeAttribute(n)}),Ue--,Ue||(se=new WeakMap,se=new WeakMap,Ee=new WeakMap,Ce={})}},Go=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Uo(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ko(r,o,n,"aria-hidden")):function(){return null}},Y=function(){return Y=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},Y.apply(this,arguments)};function gn(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 qo(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 Pe="right-scroll-bar-position",Oe="width-before-scroll-bar",Zo="with-scroll-bars-hidden",Qo="--removed-body-scroll-bar-size";function Xe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Jo(e,t){var n=u.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 ei=typeof window<"u"?u.useLayoutEffect:u.useEffect,kt=new WeakMap;function ti(e,t){var n=Jo(null,function(r){return e.forEach(function(o){return Xe(o,r)})});return ei(function(){var r=kt.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Xe(a,null)}),i.forEach(function(a){o.has(a)||Xe(a,s)})}kt.set(n,e)},[e]),n}function ni(e){return e}function ri(e,t){t===void 0&&(t=ni);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(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var d=function(){var f=s;s=[],f.forEach(i)},c=function(){return Promise.resolve().then(d)};c(),n={push:function(f){s.push(f),c()},filter:function(f){return s=s.filter(f),n}}}};return o}function oi(e){e===void 0&&(e={});var t=ri(null);return t.options=Y({async:!0,ssr:!1},e),t}var vn=function(e){var t=e.sideCar,n=gn(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 u.createElement(r,Y({},n))};vn.isSideCarExport=!0;function ii(e,t){return e.useMedium(t),vn}var yn=oi(),Ke=function(){},je=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:Ke,onWheelCapture:Ke,onTouchMoveCapture:Ke}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,d=e.className,c=e.removeScrollBar,f=e.enabled,m=e.shards,p=e.sideCar,h=e.noRelative,y=e.noIsolation,l=e.inert,g=e.allowPinchZoom,v=e.as,w=v===void 0?"div":v,x=e.gapMode,b=gn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,R=ti([n,t]),C=Y(Y({},b),o);return u.createElement(u.Fragment,null,f&&u.createElement(E,{sideCar:yn,removeScrollBar:c,shards:m,noRelative:h,noIsolation:y,inert:l,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:x}),s?u.cloneElement(u.Children.only(a),Y(Y({},C),{ref:R})):u.createElement(w,Y({},C,{className:d,ref:R}),a))});je.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};je.classNames={fullWidth:Oe,zeroRight:Pe};var si=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ai(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=si();return t&&e.setAttribute("nonce",t),e}function ci(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function li(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ui=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ai())&&(ci(t,n),li(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fi=function(){var e=ui();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},wn=function(){var e=fi(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},di={left:0,top:0,right:0,gap:0},Ge=function(e){return parseInt(e||"",10)||0},mi=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[Ge(n),Ge(r),Ge(o)]},hi=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return di;var t=mi(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])}},pi=wn(),ue="data-scroll-locked",gi=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
.`.concat(Zo,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(a,"px ").concat(r,`;
}
body[`).concat(ue,`] {
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(a,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(Pe,` {
right: `).concat(a,"px ").concat(r,`;
}
.`).concat(Oe,` {
margin-right: `).concat(a,"px ").concat(r,`;
}
.`).concat(Pe," .").concat(Pe,` {
right: 0 `).concat(r,`;
}
.`).concat(Oe," .").concat(Oe,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(ue,`] {
`).concat(Qo,": ").concat(a,`px;
}
`)},Ft=function(){var e=parseInt(document.body.getAttribute(ue)||"0",10);return isFinite(e)?e:0},vi=function(){u.useEffect(function(){return document.body.setAttribute(ue,(Ft()+1).toString()),function(){var e=Ft()-1;e<=0?document.body.removeAttribute(ue):document.body.setAttribute(ue,e.toString())}},[])},yi=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;vi();var i=u.useMemo(function(){return hi(o)},[o]);return u.createElement(pi,{styles:gi(i,!t,o,n?"":"!important")})},tt=!1;if(typeof window<"u")try{var Se=Object.defineProperty({},"passive",{get:function(){return tt=!0,!0}});window.addEventListener("test",Se,Se),window.removeEventListener("test",Se,Se)}catch{tt=!1}var ae=tt?{passive:!1}:!1,wi=function(e){return e.tagName==="TEXTAREA"},xn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!wi(e)&&n[t]==="visible")},xi=function(e){return xn(e,"overflowY")},bi=function(e){return xn(e,"overflowX")},_t=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=bn(e,r);if(o){var i=En(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ei=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ci=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},bn=function(e,t){return e==="v"?xi(t):bi(t)},En=function(e,t){return e==="v"?Ei(t):Ci(t)},Si=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ri=function(e,t,n,r,o){var i=Si(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,d=t.contains(a),c=!1,f=s>0,m=0,p=0;do{if(!a)break;var h=En(e,a),y=h[0],l=h[1],g=h[2],v=l-g-i*y;(y||v)&&bn(e,a)&&(m+=v,p+=y);var w=a.parentNode;a=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!d&&a!==document.body||d&&(t.contains(a)||t===a));return(f&&Math.abs(m)<1||!f&&Math.abs(p)<1)&&(c=!0),c},Re=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jt=function(e){return[e.deltaX,e.deltaY]},Wt=function(e){return e&&"current"in e?e.current:e},Ai=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Pi=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Oi=0,ce=[];function Di(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(Oi++)[0],i=u.useState(wn)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var l=qo([e.lockRef.current],(e.shards||[]).map(Wt),!0).filter(Boolean);return l.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(l,g){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!s.current.allowPinchZoom;var v=Re(l),w=n.current,x="deltaX"in l?l.deltaX:w[0]-v[0],b="deltaY"in l?l.deltaY:w[1]-v[1],E,R=l.target,C=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in l&&C==="h"&&R.type==="range")return!1;var P=_t(C,R);if(!P)return!0;if(P?E=C:(E=C==="v"?"h":"v",P=_t(C,R)),!P)return!1;if(!r.current&&"changedTouches"in l&&(x||b)&&(r.current=E),!E)return!0;var T=r.current||E;return Ri(T,g,l,T==="h"?x:b)},[]),d=u.useCallback(function(l){var g=l;if(!(!ce.length||ce[ce.length-1]!==i)){var v="deltaY"in g?jt(g):Re(g),w=t.current.filter(function(E){return E.name===g.type&&(E.target===g.target||g.target===E.shadowParent)&&Ai(E.delta,v)})[0];if(w&&w.should){g.cancelable&&g.preventDefault();return}if(!w){var x=(s.current.shards||[]).map(Wt).filter(Boolean).filter(function(E){return E.contains(g.target)}),b=x.length>0?a(g,x[0]):!s.current.noIsolation;b&&g.cancelable&&g.preventDefault()}}},[]),c=u.useCallback(function(l,g,v,w){var x={name:l,delta:g,target:v,should:w,shadowParent:Ti(v)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(b){return b!==x})},1)},[]),f=u.useCallback(function(l){n.current=Re(l),r.current=void 0},[]),m=u.useCallback(function(l){c(l.type,jt(l),l.target,a(l,e.lockRef.current))},[]),p=u.useCallback(function(l){c(l.type,Re(l),l.target,a(l,e.lockRef.current))},[]);u.useEffect(function(){return ce.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",d,ae),document.addEventListener("touchmove",d,ae),document.addEventListener("touchstart",f,ae),function(){ce=ce.filter(function(l){return l!==i}),document.removeEventListener("wheel",d,ae),document.removeEventListener("touchmove",d,ae),document.removeEventListener("touchstart",f,ae)}},[]);var h=e.removeScrollBar,y=e.inert;return u.createElement(u.Fragment,null,y?u.createElement(i,{styles:Pi(o)}):null,h?u.createElement(yi,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ti(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ni=ii(yn,Di);var Cn=u.forwardRef(function(e,t){return u.createElement(je,Y({},e,{ref:t,sideCar:Ni}))});Cn.classNames=je.classNames;var We="Dialog",[Sn,ls]=nt(We),[Mi,V]=Sn(We),Rn=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=u.useRef(null),d=u.useRef(null),[c,f]=Zn({prop:r,defaultProp:o??!1,onChange:i,caller:We});return S.jsx(Mi,{scope:t,triggerRef:a,contentRef:d,contentId:Ve(),titleId:Ve(),descriptionId:Ve(),open:c,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(m=>!m),[f]),modal:s,children:n})};Rn.displayName=We;var An="DialogTrigger",Pn=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=V(An,n),i=K(t,o.triggerRef);return S.jsx(B.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":pt(o.open),...r,ref:i,onClick:ee(e.onClick,o.onOpenToggle)})});Pn.displayName=An;var mt="DialogPortal",[Li,On]=Sn(mt,{forceMount:void 0}),Dn=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=V(mt,t);return S.jsx(Li,{scope:t,forceMount:n,children:u.Children.map(r,s=>S.jsx(rt,{present:n||i.open,children:S.jsx(mn,{asChild:!0,container:o,children:s})}))})};Dn.displayName=mt;var Ie="DialogOverlay",Tn=u.forwardRef((e,t)=>{const n=On(Ie,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=V(Ie,e.__scopeDialog);return i.modal?S.jsx(rt,{present:r||i.open,children:S.jsx(ki,{...o,ref:t})}):null});Tn.displayName=Ie;var Ii=qe("DialogOverlay.RemoveScroll"),ki=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=V(Ie,n);return S.jsx(Cn,{as:Ii,allowPinchZoom:!0,shards:[o.contentRef],children:S.jsx(B.div,{"data-state":pt(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ie="DialogContent",Nn=u.forwardRef((e,t)=>{const n=On(ie,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=V(ie,e.__scopeDialog);return S.jsx(rt,{present:r||i.open,children:i.modal?S.jsx(Fi,{...o,ref:t}):S.jsx(_i,{...o,ref:t})})});Nn.displayName=ie;var Fi=u.forwardRef((e,t)=>{const n=V(ie,e.__scopeDialog),r=u.useRef(null),o=K(t,n.contentRef,r);return u.useEffect(()=>{const i=r.current;if(i)return Go(i)},[]),S.jsx(Mn,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ee(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ee(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:ee(e.onFocusOutside,i=>i.preventDefault())})}),_i=u.forwardRef((e,t)=>{const n=V(ie,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return S.jsx(Mn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;n.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Mn=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=V(ie,n),d=u.useRef(null),c=K(t,d);return hr(),S.jsxs(S.Fragment,{children:[S.jsx(Vt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:S.jsx($t,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":pt(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),S.jsxs(S.Fragment,{children:[S.jsx(ji,{titleId:a.titleId}),S.jsx(Bi,{contentRef:d,descriptionId:a.descriptionId})]})]})}),ht="DialogTitle",Ln=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=V(ht,n);return S.jsx(B.h2,{id:o.titleId,...r,ref:t})});Ln.displayName=ht;var In="DialogDescription",kn=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=V(In,n);return S.jsx(B.p,{id:o.descriptionId,...r,ref:t})});kn.displayName=In;var Fn="DialogClose",_n=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=V(Fn,n);return S.jsx(B.button,{type:"button",...r,ref:t,onClick:ee(e.onClick,()=>o.onOpenChange(!1))})});_n.displayName=Fn;function pt(e){return e?"open":"closed"}var jn="DialogTitleWarning",[us,Wn]=Qn(jn,{contentName:ie,titleName:ht,docsSlug:"dialog"}),ji=({titleId:e})=>{const t=Wn(jn),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Wi="DialogDescriptionWarning",Bi=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Wn(Wi).contentName}}.`;return u.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},$i=Rn,Hi=Pn,Vi=Dn,zi=Tn,Yi=Nn,Ui=Ln,Xi=kn,Ki=_n;function fs({...e}){return S.jsx($i,{"data-slot":"sheet",...e})}function ds({...e}){return S.jsx(Hi,{"data-slot":"sheet-trigger",...e})}function Gi({...e}){return S.jsx(Vi,{"data-slot":"sheet-portal",...e})}function qi({className:e,...t}){return S.jsx(zi,{"data-slot":"sheet-overlay",className:ye("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...t})}function ms({className:e,children:t,side:n="right",...r}){return S.jsxs(Gi,{children:[S.jsx(qi,{}),S.jsxs(Yi,{"data-slot":"sheet-content",className:ye("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,S.jsxs(Ki,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[S.jsx(or,{className:"size-4"}),S.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function hs({className:e,...t}){return S.jsx("div",{"data-slot":"sheet-header",className:ye("flex flex-col gap-1.5 p-4",e),...t})}function ps({className:e,...t}){return S.jsx(Ui,{"data-slot":"sheet-title",className:ye("text-foreground font-semibold",e),...t})}function gs({className:e,...t}){return S.jsx(Xi,{"data-slot":"sheet-description",className:ye("text-muted-foreground text-sm",e),...t})}export{is as A,Yi as C,Xi as D,Vt as F,zi as O,Vi as P,$i as R,fs as S,Hi as T,zo as V,or as X,ns as a,fe as b,ts as c,Ki as d,Ui as e,rs as f,os as g,mn as h,Go as i,hr as j,Cn as k,$t as l,ss as m,as as n,ds as o,ms as p,ps as q,gs as r,cs as s,hs as t,Ve as u};