1import{J as e,Z as t,t as n}from"./jsx-runtime-CB84OG5s.js";import{t as r}from"./react-dom-ckMTofG3.js";import{d as i,s as a}from"./IconBase.es-NTHG1Qhr.js";import{t as o}from"./compose-refs-sFdxsL7k-B-Yv-pjm.js";import{i as s,n as c,r as l}from"./dist-DHRsSZk-.js";import{n as u,r as d,t as f}from"./dist-BkRMSILK.js";var p=i(),m=t(e(),1),h=n(),g=(0,m.createContext)(null);function _(){return(0,m.useContext)(g)}function v(e){let t=(0,p.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,ref:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let[a,s]=(0,m.useState)(null),c=o(i,s),l;t[4]!==n||t[5]!==a?(l=(0,h.jsx)(g.Provider,{value:a,children:n}),t[4]=n,t[5]=a,t[6]=l):l=t[6];let u;return t[7]!==c||t[8]!==r||t[9]!==l?(u=(0,h.jsx)(`div`,{ref:c,...r,children:l}),t[7]=c,t[8]=r,t[9]=l,t[10]=u):u=t[10],u}var y=Object.defineProperty,b=(e,t)=>y(e,`name`,{value:t,configurable:!0});function x(e){let t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>((...e)=>t.current?.(...e)),[])}b(x,`useCallbackRef`);var S=Object.defineProperty,C=(e,t)=>S(e,`name`,{value:t,configurable:!0}),w=`dismissableLayer.update`,T=`dismissableLayer.pointerDownOutside`,E=`dismissableLayer.focusOutside`,D,O=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),k=m.forwardRef(C(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:l,onDismiss:u,...d}=e,p=m.useContext(O),[g,_]=m.useState(null),v=g?.ownerDocument??globalThis?.document,[,y]=m.useState({}),b=a(t,_),S=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),E=T?S.indexOf(T):-1,k=g?S.indexOf(g):-1,A=p.layersWithOutsidePointerEventsDisabled.size>0,j=k>=E,F=m.useRef(!1),ee=M(e=>{o?.(e),l?.(e),e.defaultPrevented||u?.()},{ownerDocument:v,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:F,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:m.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...p.branches].some(t=>t.contains(e));return j&&!t},[p.branches,j])}),I=N(e=>{if(r&&F.current)return;let t=e.target;[...p.branches].some(e=>e.contains(t))||(c?.(e),l?.(e),e.defaultPrevented||u?.())},v),L=g?k===S.length-1:!1,R=x(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))});return m.useEffect(()=>{if(L)return v.addEventListener(`keydown`,R,{capture:!0}),()=>v.removeEventListener(`keydown`,R,{capture:!0})},[v,L,R]),m.useEffect(()=>{if(g)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(D=v.body.style.pointerEvents,v.body.style.pointerEvents=`none`),p.layersWithOutsidePointerEventsDisabled.add(g)),p.layers.add(g),P(),()=>{n&&(p.layersWithOutsidePointerEventsDisabled.delete(g),p.layersWithOutsidePointerEventsDisabled.size===0&&(v.body.style.pointerEvents=D))}},[g,v,n,p]),m.useEffect(()=>()=>{g&&(p.layers.delete(g),p.layersWithOutsidePointerEventsDisabled.delete(g),P())},[g,p]),m.useEffect(()=>{let e=C(()=>y({}),`handleUpdate`);return document.addEventListener(w,e),()=>document.removeEventListener(w,e)},[]),(0,h.jsx)(f.div,{...d,ref:b,style:{pointerEvents:A?j?`auto`:`none`:void 0,...e.style},onFocusCapture:s(e.onFocusCapture,I.onFocusCapture),onBlurCapture:s(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:s(e.onPointerDownCapture,ee.onPointerDownCapture)})},`DismissableLayer`));function A(){let e=m.useContext(O),[t,n]=m.useState(null);return m.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}C(A,`useDismissableLayerSurface`);var j=C(()=>!0,`IS_TRUE`);function M(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=j}=t,s=x(e),c=m.useRef(!1),l=m.useRef(!1),u=m.useRef(new Map),d=m.useRef(()=>{});return m.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}C(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}C(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}C(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}C(p,`handleInteractionBubble`);let m=C(a=>
1{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||F(T,s,p,{discrete:!0})};if(C(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:C(()=>c.current=!0,`onPointerDownCapture`)}}C(M,`usePointerDownOutside`);function N(e,t=globalThis?.document){let n=x(e),r=m.useRef(!1);return m.useEffect(()=>{let e=C(e=>{e.target&&!r.current&&F(E,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:C(()=>r.current=!0,`onFocusCapture`),onBlurCapture:C(()=>r.current=!1,`onBlurCapture`)}}C(N,`useFocusOutside`);function P(){let e=new CustomEvent(w);document.dispatchEvent(e)}C(P,`dispatchUpdate`);function F(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?u(i,a):i.dispatchEvent(a)}C(F,`handleAndDispatchCustomEvent`);var ee=[`top`,`right`,`bottom`,`left`],I=Math.min,L=Math.max,R=Math.round,z=Math.floor,B=e=>({x:e,y:e}),te={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function ne(e,t,n){return L(e,I(t,n))}function V(e,t){return typeof e==`function`?e(t):e}function H(e){return e.split(`-`)[0]}function U(e){return e.split(`-`)[1]}function re(e){return e===`x`?`y`:`x`}function ie(e){return e===`y`?`height`:`width`}function W(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ae(e){return re(W(e))}function oe(e,t,n){n===void 0&&(n=!1);let r=U(e),i=ae(e),a=ie(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=he(o)),[o,he(o)]}function se(e){let t=he(e);return[ce(e),t,ce(t)]}function ce(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var le=[`left`,`right`],ue=[`right`,`left`],de=[`top`,`bottom`],fe=[`bottom`,`top`];function pe(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ue:le:t?le:ue;case`left`:case`right`:return t?de:fe;default:return[]}}function me(e,t,n,r){let i=U(e),a=pe(H(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ce)))),a}function he(e){let t=H(e);return te[t]+e.slice(t.length)}function ge(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function _e(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ge(e)}function ve(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ye(e,t,n){let{reference:r,floating:i}=e,a=W(t),o=ae(t),s=ie(o),c=H(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=U(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function be(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=V(t,e),p=_e(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ve(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ve(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left
1:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var xe=50,Se=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:be},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ye(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<xe&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ye(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Ce=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=V(e,t)||{};if(l==null)return{};let d=_e(u),f={x:n,y:r},p=ae(i),m=ie(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=I(d[_],T),D=I(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=ne(E,k,O),j=!c.arrow&&U(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),we=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=V(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=H(r),_=W(o),v=H(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[he(o)]:se(o)),x=p!==`none`;!d&&x&&b.push(...me(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=oe(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===W(t)||T.every(e=>W(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=W(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Te(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ee(e){return ee.some(t=>e[t]>=0)}var De=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=V(e,t);switch(i){case`referenceHidden`:{let e=Te(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ee(e)}}}case`escaped`:{let e=Te(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ee(e)}}}default:return{}}}}},Oe=new Set([`left`,`top`]);async function ke(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=H(n),s=U(n),c=W(n)===`y`,l=Oe.has(o)?-1:1,u=a&&c?-1:1,d=V(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Ae=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ke(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},je=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=V(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=W(i),p=re(f),m=u[p],h=u[f],g=(e,t)=>ne(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Me=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=V(e,t),u={x:n,y:r},d=W(i),f=re(d),p=u[f],m=u[d],h=V(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Oe.has(H(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Ne=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=V(e,t),c=await i.detectOverflow(t,s),l=H(n),u=U(n),d=W(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=I(p-c[m],g),y=I(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*L(c.left,c.right):S=p-2*L(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Pe(){return typeof window<`u`}function Fe(e){return Ie(e)?(e.nodeName||``).toLowerCase():`#document`}function G(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function K(e){return((Ie(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ie(e){return Pe()?e instanceof Node||e instanceof G(e).Node:!1}function q(e){return Pe()?e instanceof Element||e instanceof G(e).Element:!1}function J(e){return Pe()?e instanceof HTMLElement||e instanceof G(e).HTMLElement:!1}function Le(e){return!Pe()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof G(e).ShadowRoot}function Re(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ze(e){return/^(table|td|th)$/.test(Fe(e))}function Be(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ve=/transform|translate|scale|rotate|perspective|filter/,He=/paint|layout|strict|content/,Y=e=>!!e&&e!==`none`,Ue;function We(e){let t=q(e)?X(e):e;return Y(t.transform)||Y(t.translate)||Y(t.scale)||Y(t.rotate)||Y(t.perspective)||!Ke()&&(Y(t.backdropFilter)||Y(t.filter))||Ve.test(t.willChange||``)||He.test(t.contain||``)}function Ge(e){let t=Z(e);for(;J(t)&&!qe(t);){if(We(t))return t;if(Be(t))return null;t=Z(t)}return null}function Ke(){return Ue??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ue}function qe(e){return/^(html|body|#document)$/.test(Fe(e))}function X(e){return G(e).getComputedStyle(e)}function Je(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if(Fe(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Le(e)&&e.host||K(e);return Le(t)?t.host:t}function Ye(e){let t=Z(e);return qe(t)?(e.ownerDocument||e).body:J(t)&&Re(t)?t:Ye(t)}function Xe(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ye(e),i=r===e.ownerDocument?.body,a=G(r);if(i){let e=Ze(a);
vendor: 4,193 bytes, line 1
1return t.concat(a,a.visualViewport||[],Re(r)?r:[],e&&n?Xe(e):[])}return t.concat(r,Xe(r,[],n))}function Ze(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qe(e){let t=X(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=J(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=R(n)!==a||R(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function $e(e){return q(e)?e:e.contextElement}function et(e){let t=$e(e);if(!J(t))return B(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Qe(t),o=(a?R(n.width):n.width)/r,s=(a?R(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var tt=B(0);function nt(e){let t=G(e);return!Ke()||!t.visualViewport?tt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rt(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===G(e)}function it(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=$e(e),o=B(1);t&&(r?q(r)&&(o=et(r)):o=et(e));let s=rt(a,n,r)?nt(a):B(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=G(a),t=q(r)?G(r):r,n=e,i=Ze(n);for(;i&&t!==n;){let e=et(i),t=i.getBoundingClientRect(),r=X(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=G(i),i=Ze(n)}}return ve({width:u,height:d,x:c,y:l})}function at(e,t){let n=Je(e).scrollLeft;return t?t.left+n:it(K(e)).left+n}function ot(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-at(e,n),y:n.top+t.scrollTop}}function st(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=K(r),s=t?Be(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=B(1),u=B(0),d=J(r);if((d||!a)&&((Fe(r)!==`body`||Re(o))&&(c=Je(r)),d)){let e=it(r);l=et(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?ot(o,c):B(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function ct(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function lt(e){let t=Je(e),n=e.ownerDocument.body,r=L(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=L(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+at(e),o=-t.scrollTop;return X(n).direction===`rtl`&&(a+=L(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var ut=25;function dt(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=G(e),a=K(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Ke()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(at(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=ut&&(s-=o)}return{width:s,height:c,x:l,y:u}}function ft(e,t){let n=it(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=et(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function pt(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=dt(e,n,t);else if(t===`document`)r=lt(K(e));else if(q(t))r=ft(t,n);else{let n=nt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ve(r)}function mt(e,t){let n=t.get(e);if(n)return n;let r=Xe(e,[],!1).filter(e=>q(e)&&Fe(e)!==`body`),i=null,a=X(e).position===`fixed`,o=a?Z(e):e;for(;q(o)&&!qe(o);){let e=X(o),t=We(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Z(o)}return t.set(e,r),r}function ht(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Be(t)?[]:mt(t,this._c):[].concat(n),r],o=pt(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=pt(t,a[e],i);s=L(n.top,s),c=I(n.right,c),l=I(n.bottom,l),u=L(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function gt(e){let{width:t,height:n}=Qe(e);return{width:t,height:n}}function _t(e,t,n){let r=J(t),i=K(t),a=n===`fixed`,o=it(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=B(0);
vendor: 4,212 bytes, line 1
1if((r||!a)&&((Fe(t)!==`body`||Re(i))&&(s=Je(t)),r)){let e=it(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=at(i));let l=i&&!r&&!a?ot(i,s):B(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function vt(e){return X(e).position===`static`}function yt(e,t){if(!J(e)||X(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return K(e)===n&&(n=n.ownerDocument.body),n}function bt(e,t){let n=G(e);if(Be(e))return n;if(!J(e)){let t=Z(e);for(;t&&!qe(t);){if(q(t)&&!vt(t))return t;t=Z(t)}return n}let r=yt(e,t);for(;r&&ze(r)&&vt(r);)r=yt(r,t);return r&&qe(r)&&vt(r)&&!We(r)?n:r||Ge(e)||n}var xt=async function(e){let t=this.getOffsetParent||bt,n=this.getDimensions,r=await n(e.floating);return{reference:_t(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function St(e){return X(e).direction===`rtl`}var Ct={convertOffsetParentRelativeRectToViewportRelativeRect:st,getDocumentElement:K,getClippingRect:ht,getOffsetParent:bt,getElementRects:xt,getClientRects:ct,getDimensions:gt,getScale:et,isElement:q,isRTL:St};function wt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Tt(e,t,n){let r=null,i,a=K(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=z(d),h=z(a.clientWidth-(u+f)),g=z(a.clientHeight-(d+p)),_=z(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:L(0,I(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!wt(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=G(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Et(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=$e(e),u=i||a?[...l?Xe(l):[],...t?Xe(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Tt(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?it(e):null;c&&g();function g(){let t=it(e);h&&!wt(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Dt=Ae,Ot=je,kt=we,At=Ne,jt=De,Mt=Ce,Nt=Me,Pt=(e,t,n)=>{let r=new Map,i=n??{},a={...Ct,...i.platform,_c:r};return Se(e,t,{...i,platform:a})},Ft=t(r(),1),It=typeof document<`u`?m.useLayoutEffect:function(){};function Lt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Lt(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Lt(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Rt(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zt(e,t){let n=Rt(e);return Math.round(t*n)/n}function Bt(e){let t=m.useRef(e);return It(()=>{t.current=e}),t}function Vt(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=m.useState(r);Lt(f,r)||p(r);let[h,g]=m.useState(null),[_,v]=m.useState(null),y=m.useCallback(e=>
1{e!==C.current&&(C.current=e,g(e))},[]),b=m.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||h,S=o||_,C=m.useRef(null),w=m.useRef(null),T=m.useRef(u),E=c!=null,D=Bt(c),O=Bt(i),k=Bt(l),A=m.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Pt(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Lt(T.current,t)&&(T.current=t,Ft.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);It(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=m.useRef(!1);It(()=>(j.current=!0,()=>{j.current=!1}),[]),It(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=m.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=m.useMemo(()=>({reference:x,floating:S}),[x,S]),P=m.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=zt(N.floating,u.x),r=zt(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Rt(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var Ht=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Mt({element:r.current,padding:i}).fn(n):r?Mt({element:r,padding:i}).fn(n):{}}}},Ut=(e,t)=>{let n=Dt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wt=(e,t)=>{let n=Ot(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gt=(e,t)=>({fn:Nt(e).fn,options:[e,t]}),Kt=(e,t)=>{let n=kt(e);return{name:n.name,fn:n.fn,options:[e,t]}},qt=(e,t)=>{let n=At(e);return{name:n.name,fn:n.fn,options:[e,t]}},Jt=(e,t)=>{let n=jt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yt=(e,t)=>{let n=Ht(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xt=Object.defineProperty,Zt=m.forwardRef(((e,t)=>Xt(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,h.jsx)(f.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,h.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),Qt=Object.defineProperty,Q=(e,t)=>Qt(e,`name`,{value:t,configurable:!0}),$t=`Popper`,[en,tn]=d($t),[nn,rn]=en($t),an=Q(e=>{let{__scopePopper:t,children:n}=e,[r,i]=m.useState(null),[a,o]=m.useState(void 0);return(0,h.jsx)(nn,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),on=`PopperAnchor`,sn=m.forwardRef(Q(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,o=rn(on,n),s=m.useRef(null),c=o.onAnchorChange,l=m.useCallback(e=>{s.current=e,e&&c(e)},[c]),u=a(t,l),d=m.useRef(null);m.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&c(d.current)});let p=o.placementState&&_n(o.placementState),g=p?.[0],_=p?.[1];return r?null:(0,h.jsx)(f.div,{"data-radix-popper-side":g,"data-radix-popper-align":_,...i,ref:u})}
1,`PopperAnchor`)),cn=`PopperContent`,[ln,un]=en(cn),dn=m.forwardRef(Q(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:o=`center`,alignOffset:s=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:p=[],collisionPadding:g=0,sticky:_=`partial`,hideWhenDetached:v=!1,updatePositionStrategy:y=`optimized`,onPlaced:b,...S}=e,C=rn(cn,n),[w,T]=m.useState(null),E=a(t,T),[D,O]=m.useState(null),k=c(D),A=k?.width??0,j=k?.height??0,M=r+(o===`center`?``:`-`+o),N=typeof g==`number`?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(p)?p:[p],F=P.length>0,ee={padding:N,boundary:P.filter(hn),altBoundary:F},{refs:I,floatingStyles:L,placement:R,isPositioned:z,middlewareData:B}=Vt({strategy:`fixed`,placement:M,whileElementsMounted:Q((...e)=>Et(...e,{animationFrame:y===`always`}),`whileElementsMounted`),elements:{reference:C.anchor},middleware:[Ut({mainAxis:i+j,alignmentAxis:s}),d&&Wt({mainAxis:!0,crossAxis:!1,limiter:_===`partial`?Gt():void 0,...ee}),d&&Kt({...ee}),qt({...ee,apply:Q(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),D&&Yt({element:D,padding:u}),gn({arrowWidth:A,arrowHeight:j}),v&&Jt({strategy:`referenceHidden`,...ee,boundary:F?ee.boundary:void 0})]}),te=C.setPlacementState;l(()=>(te(R),()=>{te(void 0)}),[R,te]);let[ne,V]=_n(R),H=x(b);l(()=>{z&&H?.()},[z,H]);let U=B.arrow?.x,re=B.arrow?.y,ie=B.arrow?.centerOffset!==0,[W,ae]=m.useState();return l(()=>{w&&ae(window.getComputedStyle(w).zIndex)},[w]),(0,h.jsx)(`div`,{ref:I.setFloating,"data-radix-popper-content-wrapper":``,style:{...L,transform:z?L.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:W,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(` `),...B.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,h.jsx)(ln,{scope:n,placedSide:ne,placedAlign:V,onArrowChange:O,arrowX:U,arrowY:re,shouldHideArrow:ie,children:(0,h.jsx)(f.div,{"data-side":ne,"data-align":V,...S,ref:E,style:{...S.style,animation:z?S.style?.animation:`none`}})})})},`PopperContent`)),fn=`PopperArrow`,pn={top:`bottom`,right:`left`,bottom:`top`,left:`right`},mn=m.forwardRef(Q(function(e,t){let{__scopePopper:n,...r}=e,i=un(fn,n),a=pn[i.placedSide];return(0,h.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]: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:(0,h.jsx)(Zt,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function hn(e){return e!==null}Q(hn,`isNotNull`);var gn=Q(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=_n(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function _n(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Q(_n,`getSideAndAlignFromPlacement`);var vn=an,yn=sn,bn=dn,xn=mn,Sn=Object.defineProperty,Cn=m.forwardRef(((e,t)=>Sn(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=m.useState(!1);l(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Ft.createPortal((0,h.jsx)(f.div,{...r,ref:t}),o):null},`Portal`)),wn=Object.defineProperty,$=(e,t)=>wn(e,`name`,{value:t,configurable:!0});function Tn(e,t){return m.useReducer((e,n)=>t[e][n]??e,e)}$(Tn,`useStateMachine`);var En=$(e=>{let{present:t,children:n}=e,r=Dn(t),i=typeof n==`function`?n({present:r.isPresent}):m.Children.only(n),a=kn(r.ref,jn(i));return typeof n==`function`||r.isPresent?m.cloneElement(i,{ref:a}):null},`Presence`);function Dn(e){let[t,n]=m.useState(),r=m.useRef(null),i=m.useRef(e),a=m.useRef(`none`),o=m.useRef(void 0),[s,c]=Tn(e?`mounted`:`unmounted`,{mou
1nted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return m.useEffect(()=>{s===`mounted`?(a.current=o.current??An(r.current),o.current=void 0):a.current=`none`},[s]),l(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=An(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),l(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=$(a=>{let o=An(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=$(e=>{e.target===t&&(a.current=An(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:m.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=An(t)}else r.current=null;n(e)},[])}}$(Dn,`usePresence`);function On(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}$(On,`setRef`);function kn(...e){let t=m.useRef(e);return t.current=e,m.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=On(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():On(n[e],null)}}},[])}$(kn,`useStableComposedRefs`);function An(e){return e?.animationName||`none`}$(An,`getAnimationName`);function jn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}$(jn,`getElementRef`);export{bn as a,k as c,v as d,g as f,xn as i,A as l,Cn as n,vn as o,_ as p,yn as r,tn as s,En as t,x 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.