1var Ht=e=>{throw TypeError(e)};var Vt=(e,t,n)=>t.has(e)||Ht("Cannot "+n);var B=(e,t,n)=>(Vt(e,t,"read from private field"),n?n.call(e):t.get(e)),zt=(e,t,n)=>t.has(e)?Ht("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ze=(e,t,n,r)=>(Vt(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);import{r as u,j as F,t as fn,d as dn}from"./app-CxpiwYDE.js";import{a as Be,d as ge,u as gr,c as J,b as yr}from"./index-CiSaywgB.js";import{u as X,b as ke}from"./button-DyqREa-r.js";import{P as oe,d as wr}from"./index-vduFKmeD.js";var br=Object.defineProperty,W=(e,t)=>br(e,"name",{value:t,configurable:!0});function hn(e){const t=e+"CollectionProvider",[n,r]=Be(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=W(f=>{const{scope:p,children:b}=f,y=u.useRef(null),w=u.useRef(new Map).current;return F.jsx(o,{scope:p,itemMap:w,collectionRef:y,children:b})},"CollectionProvider");s.displayName=t;const c=e+"CollectionSlot",a=ke(c),h=u.forwardRef((f,p)=>{const{scope:b,children:y}=f,w=i(c,b),x=X(p,w.collectionRef);return F.jsx(a,{ref:x,children:y})});h.displayName=c;const v=e+"CollectionItemSlot",l="data-radix-collection-item",d=ke(v),g=u.forwardRef((f,p)=>{const{scope:b,children:y,...w}=f,x=u.useRef(null),E=X(p,x),C=i(v,b);return u.useEffect(()=>(C.itemMap.set(x,{ref:x,...w}),()=>void C.itemMap.delete(x))),F.jsx(d,{[l]:"",ref:E,children:y})});g.displayName=v;function m(f){const p=i(e+"CollectionConsumer",f);return u.useCallback(()=>{const y=p.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${l}]`));return Array.from(p.itemMap.values()).sort((C,S)=>w.indexOf(C.ref.current)-w.indexOf(S.ref.current))},[p.collectionRef,p.itemMap])}return W(m,"useCollection"),[{Provider:s,Slot:h,ItemSlot:g},m,r]}W(hn,"createCollection");var Ut=new WeakMap,N,z,Qe=(z=class extends Map{constructor(n){super(n);zt(this,N);Ze(this,N,[...super.keys()]),Ut.set(this,!0)}set(n,r){return Ut.get(this)&&(this.has(n)?B(this,N)[B(this,N).indexOf(n)]=n:B(this,N).push(n)),super.set(n,r),this}insert(n,r,o){const i=this.has(r),s=B(this,N).length,c=bt(n);let a=c>=0?c:s+c;const h=a<0||a>=s?-1:a;if(h===this.size||i&&h===this.size-1||h===-1)return this.set(r,o),this;const v=this.size+(i?0:1);c<0&&a++;const l=[...B(this,N)];let d,g=!1;for(let m=a;m<v;m++)if(a===m){let f=l[m];l[m]===r&&(f=l[m+1]),i&&this.delete(r),d=this.get(f),this.set(r,o)}else{!g&&l[m-1]===r&&(g=!0);const f=l[g?m:m-1],p=d;d=this.get(f),this.delete(f),this.set(f,p)}return this}with(n,r,o){const i=new z(this);return i.insert(n,r,o),i}before(n){const r=B(this,N).indexOf(n)-1;if(!(r<0))return this.entryAt(r)}setBefore(n,r,o){const i=B(this,N).indexOf(n);return i===-1?this:this.insert(i,r,o)}after(n){let r=B(this,N).indexOf(n);if(r=r===-1||r===this.size-1?-1:r+1,r!==-1)return this.entryAt(r)}setAfter(n,r,o){const i=B(this,N).indexOf(n);return i===-1?this:this.insert(i+1,r,o)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Ze(this,N,[]),super.clear()}delete(n){const r=super.delete(n);return r&&B(this,N).splice(B(this,N).indexOf(n),1),r}deleteAt(n){const r=this.keyAt(n);return r!==void 0?this.delete(r):!1}at(n){const r=Le(B(this,N),n);if(r!==void 0)return this.get(r)}entryAt(n){const r=Le(B(this,N),n);if(r!==void 0)return[r,this.get(r)]}indexOf(n){return B(this,N).indexOf(n)}keyAt(n){return Le(B(this,N),n)}from(n,r){const o=this.indexOf(n);if(o===-1)return;let i=o+r;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(n,r){const o=this.indexOf(n);if(o===-1)return;let i=o+r;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(n,r){let o=0;for(const i of this){if(Reflect.apply(n,r,[i,o,this]))return i;o++}}findIndex(n,r){let o=0;for(const i of this){if(Reflect.apply(n,r,[i,o,this]))return o;o++}return-1}filter(n,r){const o=[];let i=0;for(const s of this)Reflect.apply(n,r,[s,i,this])&&o.push(s),i++;return new z(o)}map(n,r){const o=[];let i=0;for(const s of this)o.push([s[0],Reflect.apply(n,r,[s,i,this])]),i++;return new z(o)}reduce(...n){const[r,o]=n;let i=0,s=o??this.at(0);for(const c of this)i===0&&n.length===1?s=c:s=Reflect.apply(r,this,[s,c,i,this]),i++;return s}reduceRight(...n){const[r,o]=n;let i=o??this.at(-1);for(let s=this.size-1;s>=0;s--){const c=this.at(s);s===this.size-1&&n.length===1?i=c:i=Reflect.apply(r,this,[i,c,s,this])}return i}toSorted(n){const r=[...this.entries()].sort(n);return new z(r)}toReversed(){const n=new z;for(let r=this.size-1;r>=0;r--){const o=this.keyAt(r),i=this.get(o);n.set(o,i)}return n}toSpliced(...n){const r=[...this.entries()];return r.splice(...n),new z(r)}slice(n,r){const o=new z;let i=this.size-1;if(n===void 0)return o;n<0&&(n=n+this.size),r!==void 0&&r>0&&(i=r-1);for(let s=n;s<=i;s++){const c=this.keyAt(s),a=this.get(c);o.set(c,a)}return o}every(n,r){let o=0;for(const i of this){if(!Reflect.apply(n,r,[i,o,this]))return!1;o++}return!0}some(n,r){let o=0;for(const i of this){if(Reflect.apply(n,r,[i,o,this]))return!0;o++}return!1}},N=new WeakMap,W(z,"OrderedDict"),z);function Le(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=mn(e,t);return n===-1?void 0:e[n]}W(Le,"at");function mn(e,t){const n=e.length,r=bt(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}W(mn,"toSafeIndex");function bt(e){return e!==e||e===0?0:Math.trunc(e)}W(bt,"toSafeInteger");function xr(e){const t=e+"CollectionProvider",[n,r]=Be(t),[o,i]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Qe,setItemMap:W(()=>{},"setItemMap")}),s=W(({state:w,...x})=>w?F.jsx(a,{...x,state:w}):F.jsx(c,{...x}),"CollectionProvider");s.displayName=t;const c=W(w=>{const x=p();return F.jsx(a,{...w,state:x})},"CollectionInit");c.displayName=t+"Init";const a=W(w=>{const{scope:x,children:E,state:C}=w,S=u.useRef(null),[O,R]=u.useState(null),A=X(S,R),[_,P]=C;return u.useEffect(()=>{if(!O)return;const T=gn(()=>{});return T.observe(O,{childList:!0,subtree:!0}),()=>{T.disconnect()}},[O]),F.jsx(o,{scope:x,itemMap:_,setItemMap:P,collectionRef:A,collectionRefObject:S,collectionElement:O,children:E})},"CollectionProviderImpl");a.displayName=t+"Impl";const h=e+"CollectionSlot",v=ke(h),l=u.forwardRef((w,x)=>{const{scope:E,children:C}=w,S=i(h,E),O=X(x,S.collectionRef);return F.jsx(v,{ref:O,children:C})});l.displayName=h;const d=e+"CollectionItemSlot",g="data-radix-collection-item",m=ke(d),f=u.forwardRef((w,x)=>{const{scope:E,children:C,...S}=w,O=u.useRef(null),[R,A]=u.useState(null),_=X(x,O,A),P=i(d,E),{setItemMap:T}=P,L=u.useRef(S);pn(L.current,S)||(L.current=S);const $=L.current;return u.useEffect(()=>{const M=$;return T(I=>R?I.has(R)?I.set(R,{...M,element:R}).toSorted(ut):(I.set(R,{...M,element:R}),I.toSorted(ut)):I),()=>{T(I=>!R||!I.has(R)?I:(I.delete(R),new Qe(I)))}},[R,$,T]),F.jsx(m,{[g]:"",ref:_,children:C})});f.displayName=d;function p(){return u.useState(new Qe)}W(p,"useInitCollection");function b(w){const{itemMap:x}=i(e+"CollectionConsumer",w);return x}return W(b,"useCollection"),[{Provider:s,Slot:l,ItemSlot:f},{createCollectionScope:r,useCollection:b,useInitCollection:p}]}W(xr,"createCollection");function pn(e,t){if(e===t)return!0;
1if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!Object.prototype.hasOwnProperty.call(t,o)||e[o]!==t[o])return!1;return!0}W(pn,"shallowEqual");function vn(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}W(vn,"isElementPreceding");function ut(e,t){return!e[1].element||!t[1].element?0:vn(e[1].element,t[1].element)?-1:1}W(ut,"sortByDocumentPosition");function gn(e){return new MutationObserver(n=>{for(const r of n)if(r.type==="childList"){e();return}})}W(gn,"getChildListObserver");var Er=Object.defineProperty,Cr=(e,t)=>Er(e,"name",{value:t,configurable:!0}),Sr=fn[" useId ".trim().toString()]||(()=>{}),Rr=0;function yn(e){const[t,n]=u.useState(Sr());return ge(()=>{e||n(r=>r??String(Rr++))},[e]),e||(t?`radix-${t}`:"")}Cr(yn,"useId");var Pr=Object.defineProperty,Or=(e,t)=>Pr(e,"name",{value:t,configurable:!0});function se(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>((...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)}),[])}Or(se,"useCallbackRef");var Ar=Object.defineProperty,Ir=(e,t)=>Ar(e,"name",{value:t,configurable:!0}),Tr=u.createContext(void 0);function wn(e){const t=u.useContext(Tr);return e||t||"ltr"}Ir(wn,"useDirection");var Dr=Object.defineProperty,xt=(e,t)=>Dr(e,"name",{value:t,configurable:!0}),Je=!1;function bn(){const[e,t]=u.useState(Je);return u.useEffect(()=>{Je||(Je=!0,t(!0))},[]),e}xt(bn,"useIsHydrated");var xn=fn[" useSyncExternalStore ".trim().toString()];function En(){return()=>{}}xt(En,"subscribe");function Cn(){return xn(En,()=>!0,()=>!1)}xt(Cn,"useIsHydratedModern");var Lr=typeof xn=="function"?Cn:bn,Fr=Object.defineProperty,he=(e,t)=>Fr(e,"name",{value:t,configurable:!0}),et="rovingFocusGroup.onEntryFocus",_r={bubbles:!1,cancelable:!0},He="RovingFocusGroup",[ft,Sn,Mr]=hn(He),[kr,gs]=Be(He,[Mr]),[Nr,$r]=kr(He),jr=u.forwardRef(he(function(t,n){return F.jsx(ft.Provider,{scope:t.__scopeRovingFocusGroup,children:F.jsx(ft.Slot,{scope:t.__scopeRovingFocusGroup,children:F.jsx(Wr,{...t,ref:n})})})},"RovingFocusGroup")),Wr=u.forwardRef(he(function(t,n){const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:h,onEntryFocus:v,preventScrollOnEntryFocus:l=!1,...d}=t,g=u.useRef(null),m=X(n,g),f=wn(s),[p,b]=gr({prop:c,defaultProp:a??null,onChange:h,caller:He}),[y,w]=u.useState(!1),x=se(v),E=Sn(r),C=u.useRef(!1),[S,O]=u.useState(0);return u.useEffect(()=>{const R=g.current;if(R)return R.addEventListener(et,x),()=>R.removeEventListener(et,x)},[x]),F.jsx(Nr,{scope:r,orientation:o,dir:f,loop:i,currentTabStopId:p,onItemFocus:u.useCallback(R=>b(R),[b]),onItemShiftTab:u.useCallback(()=>w(!0),[]),onFocusableItemAdd:u.useCallback(()=>O(R=>R+1),[]),onFocusableItemRemove:u.useCallback(()=>O(R=>R-1),[]),children:F.jsx(oe.div,{tabIndex:y||S===0?-1:0,"data-orientation":o,...d,ref:m,style:{outline:"none",...t.style},onMouseDown:J(t.onMouseDown,()=>{C.current=!0}),onFocus:J(t.onFocus,R=>{const A=!C.current;if(R.target===R.currentTarget&&A&&!y){const _=new CustomEvent(et,_r);if(R.currentTarget.dispatchEvent(_),!_.defaultPrevented){const P=E().filter(I=>I.focusable),T=P.find(I=>I.active),L=P.find(I=>I.id===p),M=[T,L,...P].filter(Boolean).map(I=>I.ref.current);Et(M,l)}}C.current=!1}),onBlur:J(t.onBlur,()=>w(!1))})})},"RovingFocusGroupImpl")),Br="RovingFocusGroupItem",Hr=u.forwardRef(he(function(t,n){const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:s,children:c,...a}=t,h=yn(),v=s||h,l=$r(Br,r),d=l.currentTabStopId===v,g=Sn(r),{onFocusableItemAdd:m,onFocusableItemRemove:f,currentTabStopId:p}=l,b=Lr();return ge(()=>{if(!(!b||!o))return m(),()=>f()},[b,o,m,f]),u.useEffect(()=>{if(!(b||!o))return m(),()=>f()},[b,o,m,f]),F.jsx(ft.ItemSlot,{scope:r,id:v,focusable:o,active:i,children:F.jsx(oe.span,{tabIndex:d?0:-1,"data-orientation":l.orientation,...a,ref:n,onMouseDown:J(t.onMouseDown,y=>{o?l.onItemFocus(v):y.preventDefault()}),onFocus:J(t.onFocus,()=>l.onItemFocus(v)),onKeyDown:J(t.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){l.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const w=Pn(y,l.orientation,l.dir);if(w!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let E=g().filter(C=>C.focusable).map(C=>C.ref.current);if(w==="last")E.reverse();else if(w==="prev"||w==="next"){w==="prev"&&E.reverse();const C=E.indexOf(y.currentTarget);E=l.loop?On(E,C+1):E.slice(C+1)}setTimeout(()=>Et(E))}}),children:typeof c=="function"?c({isCurrentTabStop:d,hasTabStop:p!=null}):c}
1)})},"RovingFocusGroupItem")),Vr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Rn(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}he(Rn,"getDirectionAwareKey");function Pn(e,t,n){const r=Rn(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Vr[r]}he(Pn,"getFocusIntent");function Et(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}he(Et,"focusFirst");function On(e,t){return e.map((n,r)=>e[(t+r)%e.length])}he(On,"wrapArray");var ys=jr,ws=Hr,zr=Object.defineProperty,j=(e,t)=>zr(e,"name",{value:t,configurable:!0}),dt="dismissableLayer.update",Ur="dismissableLayer.pointerDownOutside",Gr="dismissableLayer.focusOutside",Gt,An=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),bs=u.forwardRef(j(function(t,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:a,onDismiss:h,...v}=t,l=u.useContext(An),[d,g]=u.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=u.useState({}),p=X(n,g),b=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),w=y?b.indexOf(y):-1,x=d?b.indexOf(d):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=w,S=u.useRef(!1),O=In(P=>{s==null||s(P),a==null||a(P),P.defaultPrevented||h==null||h()},{ownerDocument:m,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:l.dismissableSurfaces,shouldHandlePointerDownOutside:u.useCallback(P=>{if(!(P instanceof Node))return!1;const T=[...l.branches].some(L=>L.contains(P));return C&&!T},[l.branches,C])}),R=Tn(P=>{if(o&&S.current)return;const T=P.target;[...l.branches].some($=>$.contains(T))||(c==null||c(P),a==null||a(P),P.defaultPrevented||h==null||h())},m),A=d?x===b.length-1:!1,_=se(P=>{P.key==="Escape"&&(i==null||i(P),!P.defaultPrevented&&h&&(P.preventDefault(),h()))});return u.useEffect(()=>{if(A)return m.addEventListener("keydown",_,{capture:!0}),()=>m.removeEventListener("keydown",_,{capture:!0})},[m,A,_]),u.useEffect(()=>{if(d)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Gt=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),ht(),()=>{r&&(l.layersWithOutsidePointerEventsDisabled.delete(d),l.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Gt))}},[d,m,r,l]),u.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),ht())},[d,l]),u.useEffect(()=>{const P=j(()=>f({}),"handleUpdate");return document.addEventListener(dt,P),()=>document.removeEventListener(dt,P)},[]),F.jsx(oe.div,{...v,ref:p,style:{pointerEvents:E?C?"auto":"none":void 0,...t.style},onFocusCapture:J(t.onFocusCapture,R.onFocusCapture),onBlurCapture:J(t.onBlurCapture,R.onBlurCapture),onPointerDownCapture:J(t.onPointerDownCapture,O.onPointerDownCapture)})},"DismissableLayer"));function Kr(){const e=u.useContext(An),[t,n]=u.useState(null);return u.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}j(Kr,"useDismissableLayerSurface");var Yr=j(()=>!0,"IS_TRUE");function In(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:s=Yr}=t,c=se(e),a=u.useRef(!1),h=u.useRef(!1),v=u.useRef(new Map),l=u.useRef(()=>{});return u.useEffect(()=>{function d(){h.current=!1,o.current=!1,v.current.clear()}j(d,"resetOutsideInteraction");function g(){return Array.from(v.current.values()).some(Boolean)}j(g,"isOutsideInteractionIntercepted");function m(w){if(!h.current)return;const x=w.target;x instanceof Node&&[...i].some(C=>C.contains(x))||v.current.set(w.type,!0),w.type==="click"&&window.setTimeout(()=>{h.current&&l.current()},0)}j(m,"handleInteractionCapture");function f(w){h.current&&v.current.set(w.type,!1)}j(f,"handleInteractionBubble");const p=j(w=>{if(w.target&&!a.current){let x=function(){n.removeEventListener("click",l.current);const C=g();d(),C||Ct(Ur,c,E,{discrete:!0})};if(j(x,"handleAndDispatchPointerDownOutsideEvent"),!s(w.target)){n.removeEventListener("click",l.current),d(),a.current=!1;return}const E={originalEvent:w};h.current=!0,o.current=r&&w.button===0,v.current.clear(),!r||w.button!==0?x():(n.removeEventListener("click",l.current),l.current=x,n.addEventListener("click",l.current,{once:!0}))}else n.removeEventListener("click",l.current),d();a.current=!1},"handlePointerDown"),b=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const w of b)n.addEventListener(w,m,!0),n.addEventListener(w,f);const y=window.setTimeout(()=>{n.addEventListener("pointerdown",p)},0);return()=>{window.clearTimeout(y),n.removeEventListener("pointerdown",p),n.removeEventListener("click",l.current);for(const w of b)n.removeEventListener(w,m,!0),n.removeEventListener(w,f)}},[n,c,r,o,i,s]),{onPointerDownCapture:j(()=>a.current=!0,"onPointerDownCapture")}}j(In,"usePointerDownOutside");function Tn(e,t=globalThis==null?void 0:globalThis.document){const n=se(e),r=u.useRef(!1);return u.useEffect(()=>{const o=j(i=>{i.target&&!r.current&&Ct(Gr,n,{originalEvent:i},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:j(()=>r.current=!0,"onFocusCapture"),onBlurCapture:j(()=>r.current=!1,"onBlurCapture")}}j(Tn,"useFocusOutside");function ht(){const e=new CustomEvent(dt);document.dispatchEvent(e)}j(ht,"dispatchUpdate");function Ct(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?wr(o,i):o.dispatchEvent(i)}j(Ct,"handleAndDispatchCustomEvent");var Xr=Object.defineProperty,St=(e,t)=>
1Xr(e,"name",{value:t,configurable:!0}),Pe=0,G=null;function qr(e){return Dn(),e.children}St(qr,"FocusGuards");function Dn(){u.useEffect(()=>{G||(G={start:mt(),end:mt()});const{start:e,end:t}=G;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Pe++,()=>{Pe===1&&(G==null||G.start.remove(),G==null||G.end.remove(),G=null),Pe=Math.max(0,Pe-1)}},[])}St(Dn,"useFocusGuards");function mt(){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}St(mt,"createFocusGuard");var Zr=Object.defineProperty,H=(e,t)=>Zr(e,"name",{value:t,configurable:!0}),tt="focusScope.autoFocusOnMount",nt="focusScope.autoFocusOnUnmount",Kt={bubbles:!1,cancelable:!0},xs=u.forwardRef(H(function(t,n){const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...c}=t,[a,h]=u.useState(null),v=se(i),l=se(s),d=u.useRef(null),g=X(n,h),m=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(o){let p=function(x){if(m.paused||!a)return;const E=x.target;a.contains(E)?d.current=E:Q(d.current,{select:!0})},b=function(x){if(m.paused||!a)return;const E=x.relatedTarget;E!==null&&(a.contains(E)||Q(d.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&Q(a)};H(p,"handleFocusIn"),H(b,"handleFocusOut"),H(y,"handleMutations"),document.addEventListener("focusin",p),document.addEventListener("focusout",b);const w=new MutationObserver(y);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),w.disconnect()}}},[o,a,m.paused]),u.useEffect(()=>{if(a){Yt.add(m);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(tt,Kt);a.addEventListener(tt,v),a.dispatchEvent(y),y.defaultPrevented||(Ln(Nn(Rt(a)),{select:!0}),document.activeElement===p&&Q(a))}return()=>{a.removeEventListener(tt,v),setTimeout(()=>{const y=new CustomEvent(nt,Kt);a.addEventListener(nt,l),a.dispatchEvent(y),y.defaultPrevented||Q(p??document.body,{select:!0}),a.removeEventListener(nt,l),Yt.remove(m)},0)}}},[a,v,l,m]);const f=u.useCallback(p=>{if(!r&&!o||m.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(b&&y){const w=p.currentTarget,[x,E]=Fn(w);x&&E?!p.shiftKey&&y===E?(p.preventDefault(),r&&Q(x,{select:!0})):p.shiftKey&&y===x&&(p.preventDefault(),r&&Q(E,{select:!0})):y===w&&p.preventDefault()}},[r,o,m.paused]);return F.jsx(oe.div,{tabIndex:-1,...c,ref:g,onKeyDown:f})},"FocusScope"));function Ln(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Q(r,{select:t}),document.activeElement!==n)return}H(Ln,"focusFirst");function Fn(e){const t=Rt(e),n=pt(t,e),r=pt(t.reverse(),e);return[n,r]}H(Fn,"getTabbableEdges");function Rt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:H(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},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}H(Rt,"getTabbableCandidates");function pt(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):_n(r,{upTo:t})))return r}H(pt,"findVisible");function _n(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}H(_n,"isHidden");function Mn(e){return e instanceof HTMLInputElement&&"select"in e}H(Mn,"isSelectableInput");function Q(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Mn(e)&&t&&e.select()}}H(Q,"focus");var Yt=kn();function kn(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=vt(e,t),e.unshift(t)},remove(t){var n;e=vt(e,t),(n=e[0])==null||n.resume()}}}H(kn,"createFocusScopesStack");function vt(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}H(vt,"arrayRemove");function Nn(e){return e.filter(t=>t.tagName!=="A")}H(Nn,"removeLinks");const Qr=["top","right","bottom","left"],ce=Math.min,ee=Math.max,Ne=Math.round,Oe=Math.floor,te=e=>({x:e,y:e}
1),Jr={left:"right",right:"left",bottom:"top",top:"bottom"};function $n(e,t,n){return ee(e,ce(t,n))}function re(e,t){return typeof e=="function"?e(t):e}function ae(e){return e.split("-")[0]}function be(e){return e.split("-")[1]}function Pt(e){return e==="x"?"y":"x"}function Ot(e){return e==="y"?"height":"width"}function Y(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function At(e){return Pt(Y(e))}function eo(e,t,n){n===void 0&&(n=!1);const r=be(e),o=At(e),i=Ot(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=$e(s)),[s,$e(s)]}function to(e){const t=$e(e);return[gt(e),t,gt(t)]}function gt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Xt=["left","right"],qt=["right","left"],no=["top","bottom"],ro=["bottom","top"];function oo(e,t,n){switch(e){case"top":case"bottom":return n?t?qt:Xt:t?Xt:qt;case"left":case"right":return t?no:ro;default:return[]}}function io(e,t,n,r){const o=be(e);let i=oo(ae(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(gt)))),i}function $e(e){const t=ae(e);return Jr[t]+e.slice(t.length)}function so(e){var t,n,r,o;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(o=e.left)!=null?o:0}}function jn(e){return typeof e!="number"?so(e):{top:e,right:e,bottom:e,left:e}}function je(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 Zt(e,t,n){let{reference:r,floating:o}=e;const i=Y(t),s=At(t),c=Ot(s),a=ae(t),h=i==="y",v=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,d=r[c]/2-o[c]/2;let g;switch(a){case"top":g={x:v,y:r.y-o.height};break;case"bottom":g={x:v,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:l};break;case"left":g={x:r.x-o.width,y:l};break;default:g={x:r.x,y:r.y}}const m=be(t);return m&&(g[s]+=d*(m==="end"?1:-1)*(n&&h?-1:1)),g}async function co(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:c,strategy:a}=e,{boundary:h="clippingAncestors",rootBoundary:v="viewport",elementContext:l="floating",altBoundary:d=!1,padding:g=0}=re(t,e),m=jn(g),p=c[d?l==="floating"?"reference":"floating":l],b=je(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:h,rootBoundary:v,strategy:a})),y=l==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),x=await(i.isElement==null?void 0:i.isElement(w))&&await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1},E=je(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:w,strategy:a}):y);return{top:(b.top-E.top+m.top)/x.y,bottom:(E.bottom-b.bottom+m.bottom)/x.y,left:(b.left-E.left+m.left)/x.x,right:(E.right-b.right+m.right)/x.x}}const ao=50,lo=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,c=s.detectOverflow?s:{...s,detectOverflow:co},a=await(s.isRTL==null?void 0:s.isRTL(t));let h=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y:l}=Zt(h,r,a),d=r,g=0;const m={};for(let f=0;f<i.length;f++){const p=i[f];if(!p)continue;const{name:b,fn:y}=p,{x:w,y:x,data:E,reset:C}=await y({x:v,y:l,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:h,platform:c,elements:{reference:e,floating:t}});v=w??v,l=x??l,m[b]={...m[b],...E},C&&g<ao&&(g++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(h=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:v,y:l}=Zt(h,d,a)),f=-1)}return{x:v,y:l,placement:d,strategy:o,middlewareData:m}},uo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:c,middlewareData:a}=t,{element:h,padding:v=0}=re(e,t)||{};if(h==null)return{};const l=jn(v),d={x:n,y:r},g=At(o),m=Ot(g),f=await s.getDimensions(h),p=g==="y",b=p?"top":"left",y=p?"bottom":"right",w=p?"clientHeight":"clientWidth",x=i.reference[m]+i.reference[g]-d[g]-i.floating[m],E=d[g]-i.reference[g],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h));let S=C?C[w]:0;
1(!S||!await(s.isElement==null?void 0:s.isElement(C)))&&(S=c.floating[w]||i.floating[m]);const O=x/2-E/2,R=S/2-f[m]/2-1,A=ce(l[b],R),_=ce(l[y],R),P=S-f[m]-_,T=S/2-f[m]/2+O,L=$n(A,T,P),$=!a.arrow&&be(o)!=null&&T!==L&&i.reference[m]/2-(T<A?A:_)-f[m]/2<0,M=$?T<A?T-A:T-P:0;return{[g]:d[g]+M,data:{[g]:L,centerOffset:T-L-M,...$&&{alignmentOffset:M}},reset:$}}}),fo=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:a,elements:h}=t,{mainAxis:v=!0,crossAxis:l=!0,fallbackPlacements:d,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:f=!0,...p}=re(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=ae(o),y=Y(c),w=ae(c)===c,x=await(a.isRTL==null?void 0:a.isRTL(h.floating)),E=d||(w||!f?[$e(c)]:to(c)),C=m!=="none";!d&&C&&E.push(...io(c,f,m,x));const S=[c,...E],O=await a.detectOverflow(t,p),R=[];let A=((r=i.flip)==null?void 0:r.overflows)||[];if(v&&R.push(O[b]),l){const L=eo(o,s,x);R.push(O[L[0]],O[L[1]])}if(A=[...A,{placement:o,overflows:R}],!R.every(L=>L<=0)){var _,P;const L=(((_=i.flip)==null?void 0:_.index)||0)+1,$=S[L];if($&&(!(l==="alignment"?y!==Y($):!1)||A.every(D=>Y(D.placement)===y?D.overflows[0]>0:!0)))return{data:{index:L,overflows:A},reset:{placement:$}};let M=(P=A.filter(I=>I.overflows[0]<=0).sort((I,D)=>I.overflows[1]-D.overflows[1])[0])==null?void 0:P.placement;if(!M)switch(g){case"bestFit":{var T;const I=(T=A.filter(D=>{if(C){const k=Y(D.placement);return k===y||k==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(k=>k>0).reduce((k,U)=>k+U,0)]).sort((D,k)=>D[1]-k[1])[0])==null?void 0:T[0];I&&(M=I);break}case"initialPlacement":M=c;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Qt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jt(e){return Qr.some(t=>e[t]>=0)}const ho=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=re(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...i,elementContext:"reference"}),c=Qt(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Jt(c)}}}case"escaped":{const s=await r.detectOverflow(t,{...i,altBoundary:!0}),c=Qt(s,n.floating);return{data:{escapedOffsets:c,escaped:Jt(c)}}}default:return{}}}}},Wn=new Set(["left","top"]);async function mo(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ae(n),c=be(n),a=Y(n)==="y",h=Wn.has(s)?-1:1,v=i&&a?-1:1,l=re(t,e);let{mainAxis:d,crossAxis:g,alignmentAxis:m}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return c&&typeof m=="number"&&(g=c==="end"?m*-1:m),a?{x:g*v,y:d*h}:{x:d*h,y:g*v}}const po=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,a=await mo(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},vo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:a={fn:y=>{let{x:w,y:x}=y;return{x:w,y:x}}},...h}=re(e,t),v={x:n,y:r},l=await i.detectOverflow(t,h),d=Y(o),g=Pt(d);let m=v[g],f=v[d];const p=(y,w)=>$n(w+l[y==="y"?"top":"left"],w,w-l[y==="y"?"bottom":"right"]);s&&(m=p(g,m)),c&&(f=p(d,f));const b=a.fn({...t,[g]:m,[d]:f});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[g]:s,[d]:c}}}}}},go=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;const{x:o,y:i,placement:s,rects:c,middlewareData:a}=t,{offset:h=0,mainAxis:v=!0,crossAxis:l=!0}=re(e,t),d={x:o,y:i},g=Y(s),m=Pt(g);let f=d[m],p=d[g];const b=re(h,t),y=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:(n=b.mainAxis)!=null?n:0,crossAxis:(r=b.crossAxis)!=null?r:0};if(v){const E=m==="y"?"height":"width",C=c.reference[m]-c.floating[E]+y.mainAxis,S=c.reference[m]+c.reference[E]-y.mainAxis;f<C?f=C:f>S&&(f=S)}if(l){var w,x;const E=m==="y"?"width":"height",C=Wn.has(ae(s)),S=c.reference[g]-c.floating[E]+(C&&((w=a.offset)==null?void 0:w[g])||0)+(C?0:y.crossAxis),O=c.reference[g]+c.reference[E]+(C?0:((x=a.offset)==null?void 0:x[g])||0)-(C?y.crossAxis:0);p<S?p=S:p>O&&(p=O)}return{[m]:f,[g]:p}}}},yo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...c}=re(e,t),a=await o.detectOverflow(t,c),h=ae(n),v=be(n),l=Y(n)==="y",{width:d,height:g}=r.floating;let m,f;h==="top"||h==="bottom"?(m=h,f=v===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(f=h,m=v==="end"?"top":"bottom");const p=g-a.top-a.bottom,b=d-a.left-a.right,y=ce(g-a[m],p),w=ce(d-a[f],b),x=t.middlewareData.shift,E=!x;let C=y,S=w;x!=null&&x.enabled.x&&(S=b),x!=null&&x.enabled.y&&(C=p),E&&!v&&(l?S=d-2*ee(a.left,a.right):C=g-2*ee(a.top,a.bottom)),await s({...t,availableWidth:S,availableHeight:C});const O=await o.getDimensions(i.floating);return d!==O.width||g!==O.height?{reset:{rects:!0}}:{}}}};function Ve(){return typeof window<"u"}function xe(e){return Bn(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ie(e){var t;return(t=(Bn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Bn(e){return Ve()?e instanceof Node||e instanceof V(e).Node:!1}function q(e){return Ve()?e instanceof Element||e instanceof V(e).Element:!1}function le(e){return Ve()?e instanceof HTMLElement||e instanceof V(e).HTMLElement:!1}function en(e){return!Ve()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function ze(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function wo(e){return/^(table|td|th)$/.test(xe(e))}function Ue(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const bo=/transform|translate|scale|rotate|perspective|filter/,xo=/paint|layout|strict|content/,ue=e=>!!e&&e!=="none";let rt;function It(e){const t=q(e)?Z(e):e;return ue(t.transform)||ue(t.translate)||ue(t.scale)||ue(t.rotate)||ue(t.perspective)||!Tt()&&(ue(t.backdropFilter)||ue(t.filter))||bo.test(t.willChange||"")||xo.test(t.contain||"")}function Eo(e){let t=fe(e);for(;le(t)&&!Ee(t);){if(It(t))return t;if(Ue(t))return null;t=fe(t)}return null}function Tt(){return rt==null&&(rt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),rt}function Ee(e){return/^(html|body|#document)$/.test(xe(e))}function Z(e){return V(e).getComputedStyle(e)}function Ge(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fe(e){if(xe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||en(e)&&e.host||ie(e);return en(t)?t.host:t}function Hn(e){const t=fe(e);return Ee(t)?(e.ownerDocument||e).body:le(t)&&ze(t)?t:Hn(t)}function Ce(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Hn(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=V(o);if(i){const c=yt(s);
1return t.concat(s,s.visualViewport||[],ze(o)?o:[],c&&n?Ce(c):[])}else return t.concat(o,Ce(o,[],n))}function yt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vn(e){const t=Z(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=le(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=Ne(n)!==i||Ne(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function Dt(e){return q(e)?e:e.contextElement}function ye(e){const t=Dt(e);if(!le(t))return te(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Vn(t);let s=(i?Ne(n.width):n.width)/r,c=(i?Ne(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Co=te(0);function zn(e){const t=V(e);return!Tt()||!t.visualViewport?Co:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function So(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===V(e)}function de(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Dt(e);let s=te(1);t&&(r?q(r)&&(s=ye(r)):s=ye(e));const c=So(i,n,r)?zn(i):te(0);let a=(o.left+c.x)/s.x,h=(o.top+c.y)/s.y,v=o.width/s.x,l=o.height/s.y;if(i&&r){const d=V(i),g=q(r)?V(r):r;let m=d,f=yt(m);for(;f&&g!==m;){const p=ye(f),b=f.getBoundingClientRect(),y=Z(f),w=b.left+(f.clientLeft+parseFloat(y.paddingLeft))*p.x,x=b.top+(f.clientTop+parseFloat(y.paddingTop))*p.y;a*=p.x,h*=p.y,v*=p.x,l*=p.y,a+=w,h+=x,m=V(f),f=yt(m)}}return je({width:v,height:l,x:a,y:h})}function Ke(e,t){const n=Ge(e).scrollLeft;return t?t.left+n:de(ie(e)).left+n}function Un(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ke(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ro(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=ie(r),c=t?Ue(t.floating):!1;if(r===s||c&&i)return n;let a={scrollLeft:0,scrollTop:0},h=te(1);const v=te(0),l=le(r);if((l||!i)&&((xe(r)!=="body"||ze(s))&&(a=Ge(r)),l)){const g=de(r);h=ye(r),v.x=g.x+r.clientLeft,v.y=g.y+r.clientTop}const d=s&&!l&&!i?Un(s,a):te(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-a.scrollLeft*h.x+v.x+d.x,y:n.y*h.y-a.scrollTop*h.y+v.y+d.y}}function Po(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Oo(e){const t=Ge(e),n=e.ownerDocument.body,r=ee(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=ee(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Ke(e);const s=-t.scrollTop;return Z(n).direction==="rtl"&&(i+=ee(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:s}}const Ao=25;function Io(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",o=V(e),i=ie(e),s=o.visualViewport;let c=i.clientWidth,a=i.clientHeight,h=0,v=0;if(s){const d=!Tt()||t==="fixed";r?d||(h=-s.offsetLeft,v=-s.offsetTop):(c=s.width,a=s.height,d&&(h=s.offsetLeft,v=s.offsetTop))}if(Ke(i)<=0){const d=i.ownerDocument,g=d.body,m=getComputedStyle(g),f=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(i.clientWidth-g.clientWidth-f),b=getComputedStyle(i).scrollbarGutter==="stable both-edges"?p/2:p;b<=Ao&&(c-=b)}return{width:c,height:a,x:h,y:v}}function To(e,t){const n=de(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ye(e),s=e.clientWidth*i.x,c=e.clientHeight*i.y,a=o*i.x,h=r*i.y;return{width:s,height:c,x:a,y:h}}function tn(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=Io(e,n,t);else if(t==="document")r=Oo(ie(e));else if(q(t))r=To(t,n);else{const o=zn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return je(r)}function Do(e,t){const n=t.get(e);if(n)return n;let r=Ce(e,[],!1).filter(c=>q(c)&&xe(c)!=="body"),o=null;const i=Z(e).position==="fixed";let s=i?fe(e):e;for(;q(s)&&!Ee(s);){const c=Z(s),a=It(s),h=o?o.position:i?"fixed":"";!a&&(h==="fixed"||h==="absolute"&&c.position==="static")?r=r.filter(l=>l!==s):o=c,s=fe(s)}return t.set(e,r),r}function Lo(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ue(t)?[]:Do(t,this._c):[].concat(n),r],c=tn(t,s[0],o);let a=c.top,h=c.right,v=c.bottom,l=c.left;for(let d=1;d<s.length;d++){const g=tn(t,s[d],o);a=ee(g.top,a),h=ce(g.right,h),v=ce(g.bottom,v),l=ee(g.left,l)}return{width:h-l,height:v-a,x:l,y:a}}function Fo(e){const{width:t,height:n}=Vn(e);return{width:t,height:n}}function _o(e,t,n){const r=le(t),o=ie(t),i=n==="fixed",s=de(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const a=te(0);if((r||!i)&&((xe(t)!=="body"||ze(o))&&(c=Ge(t)),r)){const d=de(t,!0,i,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}!r&&o&&(a.x=Ke(o));const h=o&&!r&&!i?Un(o,c):te(0),v=s.left+c.scrollLeft-a.x-h.x,l=s.top+c.scrollTop-a.y-h.y;return{x:v,y:l,width:s.width,height:s.height}}function ot(e){return Z(e).position==="static"}function nn(e,t){if(!le(e)||Z(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ie(e)===n&&(n=n.ownerDocument.body),n}function Gn(e,t){const n=V(e);if(Ue(e))return n;if(!le(e)){let o=fe(e);for(;o&&!Ee(o);){if(q(o)&&!ot(o))return o;o=fe(o)}return n}let r=nn(e,t);for(;r&&wo(r)&&ot(r);)r=nn(r,t);return r&&Ee(r)&&ot(r)&&!It(r)?n:r||Eo(e)||n}const Mo=async function(e){const t=this.getOffsetParent||Gn,n=this.getDimensions,r=await n(e.floating);return{reference:_o(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ko(e){return Z(e).direction==="rtl"}const No={convertOffsetParentRelativeRectToViewportRelativeRect:Ro,getDocumentElement:ie,getClippingRect:Lo,getOffsetParent:Gn,getElementRects:Mo,getClientRects:Po,getDimensions:Fo,getScale:ye,isElement:q,isRTL:ko};function Kn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $o(e,t,n){let r=null,o;const i=ie(e);function s(){var v;clearTimeout(o),(v=r)==null||v.disconnect(),r=null}function c(v,l){v===void 0&&(v=!1),l===void 0&&(l=1),s();const d=e.getBoundingClientRect(),{left:g,top:m,width:f,height:p}=d;if(v||t(),!f||!p)return;const b=Oe(m),y=Oe(i.clientWidth-(g+f)),w=Oe(i.clientHeight-(m+p)),x=Oe(g),C={rootMargin:-b+"px "+-y+"px "+-w+"px "+-x+"px",threshold:ee(0,ce(1,l))||1};let S=!0;function O(R){const A=R[0].intersectionRatio;if(!Kn(d,e.getBoundingClientRect()))return c();if(A!==l){if(!S)return c();A?c(!1,A):o=setTimeout(()=>{c(!1,1e-7)},1e3)}S=!1}try{r=new IntersectionObserver(O,{...C,root:i.ownerDocument})}catch{r=new IntersectionObserver(O,C)}r.observe(e)}const a=V(e),h=()=>c(n);return a.addEventListener("resize",h),c(!0),()=>{a.removeEventListener("resize",h),s()}}function jo(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:a=!1}=r,h=Dt(e),v=o||i?[...h?Ce(h):[],...t?Ce(t):[]]:[];v.forEach(b=>{o&&b.addEventListener("scroll",n),i&&b.addEventListener("resize",n)});const l=h&&c?$o(h,n,i):null;let d=-1,g=null;s&&(g=new ResizeObserver(b=>{let[y]=b;y&&y.target===h&&g&&t&&(g.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),h&&!a&&g.observe(h),t&&g.observe(t));let m,f=a?de(e):null;a&&p();function p(){const b=de(e);f&&!Kn(f,b)&&n(),f=b,m=requestAnimationFrame(p)}return n(),()=>{var b;v.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),l==null||l(),(b=g)==null||b.disconnect(),g=null,a&&cancelAnimationFrame(m)}}
1const Wo=po,Bo=vo,Ho=fo,Vo=yo,zo=ho,rn=uo,Uo=go,Go=(e,t,n)=>{const r=new Map,o=n??{},i={...No,...o.platform,_c:r};return lo(e,t,{...o,platform:i})};var Ko=typeof document<"u",Yo=function(){},Fe=Ko?u.useLayoutEffect:Yo;function We(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(!We(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)&&!We(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Yn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function on(e,t){const n=Yn(e);return Math.round(t*n)/n}function it(e){const t=u.useRef(e);return Fe(()=>{t.current=e}),t}function Xo(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:a,open:h}=e,[v,l]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,g]=u.useState(r);We(d,r)||g(r);const[m,f]=u.useState(null),[p,b]=u.useState(null),y=u.useCallback(D=>{D!==C.current&&(C.current=D,f(D))},[]),w=u.useCallback(D=>{D!==S.current&&(S.current=D,b(D))},[]),x=i||m,E=s||p,C=u.useRef(null),S=u.useRef(null),O=u.useRef(v),R=a!=null,A=it(a),_=it(o),P=it(h),T=u.useCallback(()=>{if(!C.current||!S.current)return;const D={placement:t,strategy:n,middleware:d};_.current&&(D.platform=_.current),Go(C.current,S.current,D).then(k=>{const U={...k,isPositioned:P.current!==!1};L.current&&!We(O.current,U)&&(O.current=U,dn.flushSync(()=>{l(U)}))})},[d,t,n,_,P]);Fe(()=>{h===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,l(D=>({...D,isPositioned:!1})))},[h]);const L=u.useRef(!1);Fe(()=>(L.current=!0,()=>{L.current=!1}),[]),Fe(()=>{if(x&&(C.current=x),E&&(S.current=E),x&&E){if(A.current)return A.current(x,E,T);T()}},[x,E,T,A,R]);const $=u.useMemo(()=>({reference:C,floating:S,setReference:y,setFloating:w}),[y,w]),M=u.useMemo(()=>({reference:x,floating:E}),[x,E]),I=u.useMemo(()=>{const D={position:n,left:0,top:0};if(!M.floating)return D;const k=on(M.floating,v.x),U=on(M.floating,v.y);return c?{...D,transform:"translate("+k+"px, "+U+"px)",...Yn(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:U}},[n,c,M.floating,v.x,v.y]);return u.useMemo(()=>({...v,update:T,refs:$,elements:M,floatingStyles:I}),[v,T,$,M,I])}const qo=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?rn({element:r.current,padding:o}).fn(n):{}:r?rn({element:r,padding:o}).fn(n):{}}}},Zo=(e,t)=>{const n=Wo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Qo=(e,t)=>{const n=Bo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Jo=(e,t)=>({fn:Uo(e).fn,options:[e,t]}),ei=(e,t)=>{const n=Ho(e);return{name:n.name,fn:n.fn,options:[e,t]}},ti=(e,t)=>{const n=Vo(e);return{name:n.name,fn:n.fn,options:[e,t]}},ni=(e,t)=>{const n=zo(e);return{name:n.name,fn:n.fn,options:[e,t]}},ri=(e,t)=>{const n=qo(e);return{name:n.name,fn:n.fn,options:[e,t]}};var oi=Object.defineProperty,ii=(e,t)=>oi(e,"name",{value:t,configurable:!0}),si=u.forwardRef(ii(function(t,n){const{children:r,width:o=10,height:i=5,...s}=t;return F.jsx(oe.svg,{...s,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:F.jsx("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),ci=si,ai=Object.defineProperty,ne=(e,t)=>ai(e,"name",{value:t,configurable:!0}),Xn="Popper",[qn,Es]=Be(Xn),[li,Zn]=qn(Xn),ui=ne(e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null),[i,s]=u.useState(void 0);return F.jsx(li,{scope:t,anchor:r,onAnchorChange:o,placementState:i,setPlacementState:s,children:n})},"Popper"),fi="PopperAnchor",di=u.forwardRef(ne(function(t,n){const{__scopePopper:r,virtualRef:o,...i}=t,s=Zn(fi,r),c=u.useRef(null),a=s.onAnchorChange,h=u.useCallback(f=>{c.current=f,f&&a(f)},[a]),v=X(n,h),l=u.useRef(null);u.useEffect(()=>{if(!o)return;const f=l.current;l.current=o.current,f!==l.current&&a(l.current)});const d=s.placementState&&Ye(s.placementState),g=d==null?void 0:d[0],m=d==null?void 0:d[1];return o?null:F.jsx(oe.div,{"data-radix-popper-side":g,"data-radix-popper-align":m,...i,ref:v})},"PopperAnchor")),Qn="PopperContent",[hi,mi]=qn(Qn),pi=u.forwardRef(ne(function(t,n){var _t,Mt,kt,Nt,$t,jt,Wt;const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:s="center",alignOffset:c=0,arrowPadding:a=0,avoidCollisions:h=!0,collisionBoundary:v=[],collisionPadding:l=0,sticky:d="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:f,...p}=t,b=Zn(Qn,r),[y,w]=u.useState(null),x=X(n,w),[E,C]=u.useState(null),S=yr(E),O
1=(S==null?void 0:S.width)??0,R=(S==null?void 0:S.height)??0,A=o+(s!=="center"?"-"+s:""),_=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},P=Array.isArray(v)?v:[v],T=P.length>0,L={padding:_,boundary:P.filter(Jn),altBoundary:T},{refs:$,floatingStyles:M,placement:I,isPositioned:D,middlewareData:k}=Xo({strategy:"fixed",placement:A,whileElementsMounted:ne((...qe)=>jo(...qe,{animationFrame:m==="always"}),"whileElementsMounted"),elements:{reference:b.anchor},middleware:[Zo({mainAxis:i+R,alignmentAxis:c}),h&&Qo({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Jo():void 0,...L}),h&&ei({...L}),ti({...L,apply:ne(({elements:qe,rects:Bt,availableWidth:hr,availableHeight:mr})=>{const{width:pr,height:vr}=Bt.reference,Re=qe.floating.style;Re.setProperty("--radix-popper-available-width",`${hr}px`),Re.setProperty("--radix-popper-available-height",`${mr}px`),Re.setProperty("--radix-popper-anchor-width",`${pr}px`),Re.setProperty("--radix-popper-anchor-height",`${vr}px`)},"apply")}),E&&ri({element:E,padding:a}),wi({arrowWidth:O,arrowHeight:R}),g&&ni({strategy:"referenceHidden",...L,boundary:T?L.boundary:void 0})]}),U=b.setPlacementState;ge(()=>(U(I),()=>{U(void 0)}),[I,U]);const[Lt,Ft]=Ye(I),Se=se(f);ge(()=>{D&&(Se==null||Se())},[D,Se]);const ar=(_t=k.arrow)==null?void 0:_t.x,lr=(Mt=k.arrow)==null?void 0:Mt.y,ur=((kt=k.arrow)==null?void 0:kt.centerOffset)!==0,[fr,dr]=u.useState();return ge(()=>{y&&dr(window.getComputedStyle(y).zIndex)},[y]),F.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:D?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fr,"--radix-popper-transform-origin":[(Nt=k.transformOrigin)==null?void 0:Nt.x,($t=k.transformOrigin)==null?void 0:$t.y].join(" "),...((jt=k.hide)==null?void 0:jt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:F.jsx(hi,{scope:r,placedSide:Lt,placedAlign:Ft,onArrowChange:C,arrowX:ar,arrowY:lr,shouldHideArrow:ur,children:F.jsx(oe.div,{"data-side":Lt,"data-align":Ft,...p,ref:x,style:{...p.style,animation:D?(Wt=p.style)==null?void 0:Wt.animation:"none"}})})})},"PopperContent")),vi="PopperArrow",gi={top:"bottom",right:"left",bottom:"top",left:"right"},yi=u.forwardRef(ne(function(t,n){const{__scopePopper:r,...o}=t,i=mi(vi,r),s=gi[i.placedSide];return F.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:F.jsx(ci,{...o,ref:n,style:{...o.style,display:"block"}})})},"PopperArrow"));function Jn(e){return e!==null}ne(Jn,"isNotNull");var wi=ne(e=>({name:"transformOrigin",options:e,fn(t){var p,b,y;const{placement:n,rects:r,middlewareData:o}=t,s=((p=o.arrow)==null?void 0:p.centerOffset)!==0,c=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[h,v]=Ye(n),l={start:"0%",center:"50%",end:"100%"}[v],d=(((b=o.arrow)==null?void 0:b.x)??0)+c/2,g=(((y=o.arrow)==null?void 0:y.y)??0)+a/2;let m="",f="";return h==="bottom"?(m=s?l:`${d}px`,f=`${-a}px`):h==="top"?(m=s?l:`${d}px`,f=`${r.floating.height+a}px`):h==="right"?(m=`${-a}px`,f=s?l:`${g}px`):h==="left"&&(m=`${r.floating.width+a}px`,f=s?l:`${g}px`),{data:{x:m,y:f}}}}),"transformOrigin");function Ye(e){const[t,n="center"]=e.split("-");return[t,n]}ne(Ye,"getSideAndAlignFromPlacement");var Cs=ui,Ss=di,Rs=pi,Ps=yi,bi=Object.defineProperty,xi=(e,t)=>bi(e,"name",{value:t,configurable:!0}),Os=u.forwardRef(xi(function(t,n){var a;const{container:r,...o}=t,[i,s]=u.useState(!1);ge(()=>s(!0),[]);const c=r||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return c?dn.createPortal(F.jsx(oe.div,{...o,ref:n}),c):null},"Portal")),Ei=Object.defineProperty,Ci=(e,t)=>Ei(e,"name",{value:t,configurable:!0}),Si=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"}),Ri=u.forwardRef(Ci(function(t,n){return F.jsx(oe.span,{...t,ref:n,style:{...Si,...t.style}})},"VisuallyHidden")),As=Ri,Pi=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},me=new WeakMap,Ae=new WeakMap,Ie={},st=0,er=function(e){return e&&(e.host||er(e.parentNode))},Oi=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=er(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})},Ai=function(e,t,n,r){var o=Oi(t,Array.isArray(e)?e:[e]);Ie[n]||(Ie[n]=new WeakMap);var i=Ie[n],s=[],c=new Set,a=new Set(o),h=function(l){!l||c.has(l)||(c.add(l),h(l.parentNode))};o.forEach(h);var v=function(l){!l||a.has(l)||Array.prototype.forEach.call(l.children,function(d){if(c.has(d))v(d);else try{var g=d.getAttribute(r),m=g!==null&&g!=="false",f=(me.get(d)||0)+1,p=(i.get(d)||0)+1;me.set(d,f),i.set(d,p),s.push(d),f===1&&m&&Ae.set(d,!0),p===1&&d.setAttribute(n,"true"),m||d.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",d,b)}})};
1return v(t),c.clear(),st++,function(){s.forEach(function(l){var d=me.get(l)-1,g=i.get(l)-1;me.set(l,d),i.set(l,g),d||(Ae.has(l)||l.removeAttribute(r),Ae.delete(l)),g||l.removeAttribute(n)}),st--,st||(me=new WeakMap,me=new WeakMap,Ae=new WeakMap,Ie={})}},Is=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Pi(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ai(r,o,n,"aria-hidden")):function(){return null}},K=function(){return K=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},K.apply(this,arguments)};function tr(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 Ii(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 _e="right-scroll-bar-position",Me="width-before-scroll-bar",Ti="with-scroll-bars-hidden",Di="--removed-body-scroll-bar-size";function ct(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Li(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 Fi=typeof window<"u"?u.useLayoutEffect:u.useEffect,sn=new WeakMap;function _i(e,t){var n=Li(null,function(r){return e.forEach(function(o){return ct(o,r)})});return Fi(function(){var r=sn.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(c){i.has(c)||ct(c,null)}),i.forEach(function(c){o.has(c)||ct(c,s)})}sn.set(n,e)},[e]),n}function Mi(e){return e}function ki(e,t){t===void 0&&(t=Mi);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 a=function(){var v=s;s=[],v.forEach(i)},h=function(){return Promise.resolve().then(a)};h(),n={push:function(v){s.push(v),h()},filter:function(v){return s=s.filter(v),n}}}};return o}function Ni(e){e===void 0&&(e={});var t=ki(null);return t.options=K({async:!0,ssr:!1},e),t}var nr=function(e){var t=e.sideCar,n=tr(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,K({},n))};nr.isSideCarExport=!0;function $i(e,t){return e.useMedium(t),nr}var rr=Ni(),at=function(){},Xe=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:at,onWheelCapture:at,onTouchMoveCapture:at}),o=r[0],i=r[1],s=e.forwardProps,c=e.children,a=e.className,h=e.removeScrollBar,v=e.enabled,l=e.shards,d=e.sideCar,g=e.noRelative,m=e.noIsolation,f=e.inert,p=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,x=tr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=d,C=_i([n,t]),S=K(K({},x),o);return u.createElement(u.Fragment,null,v&&u.createElement(E,{sideCar:rr,removeScrollBar:h,shards:l,noRelative:g,noIsolation:m,inert:f,setCallbacks:i,allowPinchZoom:!!p,lockRef:n,gapMode:w}),s?u.cloneElement(u.Children.only(c),K(K({},S),{ref:C})):u.createElement(y,K({},S,{className:a,ref:C}),c))});Xe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Xe.classNames={fullWidth:Me,zeroRight:_e};var ji=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Wi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ji();return t&&e.setAttribute("nonce",t),e}function Bi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Hi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Vi=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Wi())&&(Bi(t,n),Hi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},zi=function(){var e=Vi();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},or=function(){var e=zi(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ui={left:0,top:0,right:0,gap:0},lt=function(e){return parseInt(e||"",10)||0},Gi=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[lt(n),lt(r),lt(o)]},Ki=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ui;var t=Gi(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])}},Yi=or(),we="data-scroll-locked",Xi=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(Ti,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(c,"px ").concat(r,`; 5 } 6 body[`).concat(we,`] { 7 overflow: hidden `).concat(r,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 10 padding-left: `.concat(o,`px; 11 padding-top: `).concat(i,`px; 12 padding-right: `).concat(s,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(c,"px ").concat(r,`; 16 `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";
16")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(_e,` { 20 right: `).concat(c,"px ").concat(r,`; 21 } 22 23 .`).concat(Me,` { 24 margin-right: `).concat(c,"px ").concat(r,`; 25 } 26 27 .`).concat(_e," .").concat(_e,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(Me," .").concat(Me,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(we,`] { 36 `).concat(Di,": ").concat(c,`px; 37 } 38`)},cn=function(){var e=parseInt(document.body.getAttribute(we)||"0",10);return isFinite(e)?e:0},qi=function(){u.useEffect(function(){return document.body.setAttribute(we,(cn()+1).toString()),function(){var e=cn()-1;e<=0?document.body.removeAttribute(we):document.body.setAttribute(we,e.toString())}},[])},Zi=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;qi();var i=u.useMemo(function(){return Ki(o)},[o]);return u.createElement(Yi,{styles:Xi(i,!t,o,n?"":"!important")})},wt=!1;if(typeof window<"u")try{var Te=Object.defineProperty({},"passive",{get:function(){return wt=!0,!0}});window.addEventListener("test",Te,Te),window.removeEventListener("test",Te,Te)}catch{wt=!1}var pe=wt?{passive:!1}:!1,Qi=function(e){return e.tagName==="TEXTAREA"},ir=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Qi(e)&&n[t]==="visible")},Ji=function(e){return ir(e,"overflowY")},es=function(e){return ir(e,"overflowX")},an=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=sr(e,r);if(o){var i=cr(e,r),s=i[1],c=i[2];if(s>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ts=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ns=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},sr=function(e,t){return e==="v"?Ji(t):es(t)},cr=function(e,t){return e==="v"?ts(t):ns(t)},rs=function(e,t){return e==="h"&&t==="rtl"?-1:1},os=function(e,t,n,r,o){var i=rs(e,window.getComputedStyle(t).direction),s=i*r,c=n.target,a=t.contains(c),h=!1,v=s>0,l=0,d=0;do{if(!c)break;var g=cr(e,c),m=g[0],f=g[1],p=g[2],b=f-p-i*m;(m||b)&&sr(e,c)&&(l+=b,d+=m);var y=c.parentNode;c=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!a&&c!==document.body||a&&(t.contains(c)||t===c));return(v&&Math.abs(l)<1||!v&&Math.abs(d)<1)&&(h=!0),h},De=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ln=function(e){return[e.deltaX,e.deltaY]},un=function(e){return e&&"current"in e?e.current:e},is=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ss=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},cs=0,ve=[];function as(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(cs++)[0],i=u.useState(or)[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 f=Ii([e.lockRef.current],(e.shards||[]).map(un),!0).filter(Boolean);return f.forEach(function(p){return p.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(p){return p.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=u.useCallback(function(f,p){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!s.current.allowPinchZoom;var b=De(f),y=n.current,w="deltaX"in f?f.deltaX:y[0]-b[0],x="deltaY"in f?f.deltaY:y[1]-b[1],E,C=f.target,S=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in f&&S==="h"&&C.type==="range")return!1;var O=window.getSelection(),R=O&&O.anchorNode,A=R?R===C||R.contains(C):!1;if(A)return!1;var _=an(S,C);if(!_)return!0;if(_?E=S:(E=S==="v"?"h":"v",_=an(S,C)),!_)return!1;if(!r.current&&"changedTouches"in f&&(w||x)&&(r.current=E),!E)return!0;var P=r.current||E;return os(P,p,f,P==="h"?w:x)},[]),a=u.useCallback(function(f){var p=f;if(!(!ve.length||ve[ve.length-1]!==i)){var b="deltaY"in p?ln(p):De(p),y=t.current.filter(function(E){return E.name===p.type&&(E.target===p.target||p.target===E.shadowParent)&&is(E.delta,b)})[0];if(y&&y.should){p.cancelable&&p.preventDefault();return}
vendor: 1,671 bytes, line 41
41if(!y){var w=(s.current.shards||[]).map(un).filter(Boolean).filter(function(E){return E.contains(p.target)}),x=w.length>0?c(p,w[0]):!s.current.noIsolation;x&&p.cancelable&&p.preventDefault()}}},[]),h=u.useCallback(function(f,p,b,y){var w={name:f,delta:p,target:b,should:y,shadowParent:ls(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),v=u.useCallback(function(f){n.current=De(f),r.current=void 0},[]),l=u.useCallback(function(f){h(f.type,ln(f),f.target,c(f,e.lockRef.current))},[]),d=u.useCallback(function(f){h(f.type,De(f),f.target,c(f,e.lockRef.current))},[]);u.useEffect(function(){return ve.push(i),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:d}),document.addEventListener("wheel",a,pe),document.addEventListener("touchmove",a,pe),document.addEventListener("touchstart",v,pe),function(){ve=ve.filter(function(f){return f!==i}),document.removeEventListener("wheel",a,pe),document.removeEventListener("touchmove",a,pe),document.removeEventListener("touchstart",v,pe)}},[]);var g=e.removeScrollBar,m=e.inert;return u.createElement(u.Fragment,null,m?u.createElement(i,{styles:ss(o)}):null,g?u.createElement(Zi,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ls(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const us=$i(rr,as);var fs=u.forwardRef(function(e,t){return u.createElement(Xe,K({},e,{ref:t,sideCar:us}))});fs.classNames=Xe.classNames;export{Ss as A,Rs as C,bs as D,xs as F,ws as I,Os as P,fs as R,Si as V,Cs as a,yn as b,Es as c,ys as d,gs as e,wn as f,hn as g,Is as h,se as i,As as j,Ps as k,Kr as l,Dn as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.