slicer-studio 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{a as n,n as r,r as i}from"./StudioContext-CsxoZNKd.js";var a=/* @__PURE__ */ t((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return l(e,t,null,n)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.1`})),o=/* @__PURE__ */ t(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=/* @__PURE__ */ e(n(),1),c=Object.defineProperty,l=(e,t)=>c(e,`name`,{value:t,configurable:!0});function u(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}l(u,`setRef`);function d(...e){return t=>{let n=!1,r=e.map(e=>{let r=u(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():u(e[t],null)}}}}l(d,`composeRefs`);function f(...e){return s.useCallback(d(...e),e)}l(f,`useComposedRefs`);var p=/* @__PURE__ */ e(o(),1),m=i(),h=Object.defineProperty,g=(e,t)=>h(e,`name`,{value:t,configurable:!0});// @__NO_SIDE_EFFECTS__
2
+ function _(e){let t=s.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,c=[];r=D(r),s.Children.forEach(r,e=>{if(C(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;T(n)&&typeof j==`function`;)n=j(n._payload);a=b(t,n),c.push(a?.props?.children)}else c.push(e)}),a?a=s.cloneElement(a,void 0,c):!o&&s.Children.count(r)===1&&s.isValidElement(r)&&(a=r);let l=a?S(a):void 0,u=f(n,l);if(!a){if(r||r===0)throw Error(o?A(e):k(e));return r}let d=x(i,a.props??{});return a.type!==s.Fragment&&(d.ref=n?u:l),s.cloneElement(a,d)});return t.displayName=`${e}.Slot`,t}g(_,`createSlot`);var v=Symbol.for(`radix.slottable`);// @__NO_SIDE_EFFECTS__
3
+ function y(e){let t=/* @__PURE__ */ g(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=v,t}g(y,`createSlottable`);var b=/* @__PURE__ */ g((e,t)=>`child`in e.props?s.isValidElement(t)?s.cloneElement(t,void 0,e.props.children(t.props.children)):null:s.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function x(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=O(a,i))}return{...e,...n}}g(x,`mergeProps`);function S(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)}g(S,`getElementRef`);function C(e){return s.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===v}g(C,`isSlottable`);var w=Symbol.for(`react.lazy`);function T(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===w&&`_payload`in e&&E(e._payload)}g(T,`isLazyComponent`);function E(e){return typeof e==`object`&&!!e&&`then`in e}g(E,`isPromiseLike`);function D(e){let t=e;for(;T(t)&&typeof j==`function`;)t=j(t._payload);return t}g(D,`useUnwrappedLazy`);function O(...e){let t=/* @__PURE__ */ new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}g(O,`concatAriaDescribedby`);var k=/* @__PURE__ */ g(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),A=/* @__PURE__ */ g(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),j=s.use,M=Object.defineProperty,N=(e,t)=>M(e,`name`,{value:t,configurable:!0}),P=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=/* @__PURE__ */ _(`Primitive.${t}`),r=s.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),/* @__PURE__ */ (0,m.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ee(e,t){e&&p.flushSync(()=>e.dispatchEvent(t))}N(ee,`dispatchDiscreteCustomEvent`);var F=Object.defineProperty,te=(e,t)=>F(e,`name`,{value:t,configurable:!0}),ne=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`}),re=/* @__PURE__ */ s.forwardRef(/* @__PURE__ */ te(function(e,t){return/* @__PURE__ */ (0,m.jsx)(P.span,{...e,ref:t,style:{...ne,...e.style}})},`VisuallyHidden`)),ie=Object.defineProperty,I=(e,t)=>ie(e,`name`,{value:t,configurable:!0});// @__NO_SIDE_EFFECTS__
4
+ function L(e,t){let n=s.createContext(t);n.displayName=e+`Context`;let r=/* @__PURE__ */ I(e=>{let{children:t,...r}=e,i=s.useMemo(()=>r,Object.values(r));return/* @__PURE__ */ (0,m.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=s.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return I(i,`useContext`),[r,i]}I(L,`createContext`);// @__NO_SIDE_EFFECTS__
5
+ function ae(e,t=[]){let n=[];function r(t,r){let i=s.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=/* @__PURE__ */ I(t=>{let{scope:n,children:r,...o}=t,c=n?.[e]?.[a]||i,l=s.useMemo(()=>o,Object.values(o));return/* @__PURE__ */ (0,m.jsx)(c.Provider,{value:l,children:r})},`Provider`);o.displayName=t+`Provider`;function c(n,o,c={}){let{optional:l=!1}=c,u=o?.[e]?.[a]||i,d=s.useContext(u);if(d)return d;if(r!==void 0)return r;if(!l)throw Error(`\`${n}\` must be used within \`${t}\``)}return I(c,`useContext`),[o,c]}I(r,`createContext`);let i=/* @__PURE__ */ I(()=>{let t=n.map(e=>s.createContext(e));return/* @__PURE__ */ I(function(n){let r=n?.[e]||t;return s.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,oe(i,...t)]}I(ae,`createContextScope`);function oe(...e){let t=e[0];if(e.length===1)return t;let n=/* @__PURE__ */ I(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return/* @__PURE__ */ I(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}I(oe,`composeContextScopes`);var R=globalThis?.document?s.useLayoutEffect:()=>{},se=Object.defineProperty,z=(e,t)=>se(e,`name`,{value:t,configurable:!0}),ce=!!(typeof window<`u`&&window.document&&window.document.createElement);function B(e,t,{checkForDefaultPrevented:n=!0}={}){return/* @__PURE__ */ z(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}z(B,`composeEventHandlers`);function le(e){if(!ce)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}z(le,`getOwnerWindow`);function ue(e){if(!ce)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}z(ue,`getOwnerDocument`);function de(e,t=!1){let{activeElement:n}=ue(e);if(!n?.nodeName)return null;if(fe(n)&&n.contentDocument)return de(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=ue(n).getElementById(e);if(t)return t}}return n}z(de,`getActiveElement`);function fe(e){return e.tagName===`IFRAME`}z(fe,`isFrame`);var pe=Object.defineProperty,me=(e,t)=>pe(e,`name`,{value:t,configurable:!0}),he=s.useEffectEvent,ge=s.useInsertionEffect;function _e(e){if(typeof he==`function`)return he(e);let t=s.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof ge==`function`?ge(()=>{t.current=e}):R(()=>{t.current=e}),s.useMemo(()=>((...e)=>t.current?.(...e)),[])}me(_e,`useEffectEvent`);var ve=Object.defineProperty,ye=(e,t)=>ve(e,`name`,{value:t,configurable:!0}),be=s.useInsertionEffect||R;function xe({prop:e,defaultProp:t,onChange:n=/* @__PURE__ */ ye(()=>{},`onChange`),caller:r}){let[i,a,o]=Se({defaultProp:t,onChange:n}),c=e!==void 0;return[c?e:i,s.useCallback(t=>{if(c){let n=Ce(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[c,e,a,o])]}ye(xe,`useControllableState`);function Se({defaultProp:e,onChange:t}){let[n,r]=s.useState(e),i=s.useRef(n),a=s.useRef(t);return be(()=>{a.current=t},[t]),s.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}ye(Se,`useUncontrolledState`);function Ce(e){return typeof e==`function`}ye(Ce,`isFunction`);var we=Symbol(`RADIX:SYNC_STATE`);function Te(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:c}=t,l=i!==void 0,u=_e(o),d=[{...n,state:a}];r&&d.push(r);let[f,p]=s.useReducer((t,n)=>{if(n.type===we)return{...t,state:n.state};let r=e(t,n);return l&&!Object.is(r.state,t.state)&&u(r.state),r},...d),m=f.state,h=s.useRef(m);s.useEffect(()=>{h.current!==m&&(h.current=m,l||u(m))},[m,h,l]);let g=s.useMemo(()=>i===void 0?f:{...f,state:i},[f,i]);return s.useEffect(()=>{l&&!Object.is(i,f.state)&&p({type:we,state:i})},[i,f.state,l]),[g,p]}ye(Te,`useControllableStateReducer`);var Ee=Object.defineProperty,De=(e,t)=>Ee(e,`name`,{value:t,configurable:!0});function Oe(e,t){return s.useReducer((e,n)=>t[e][n]??e,e)}De(Oe,`useStateMachine`);var ke=/* @__PURE__ */ De(e=>{let{present:t,children:n}=e,r=Ae(t),i=typeof n==`function`?n({present:r.isPresent}):s.Children.only(n),a=Me(r.ref,Pe(i));return typeof n==`function`||r.isPresent?s.cloneElement(i,{ref:a}):null},`Presence`);function Ae(e){let[t,n]=s.useState(),r=s.useRef(null),i=s.useRef(e),a=s.useRef(`none`),o=s.useRef(void 0),[c,l]=Oe(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return s.useEffect(()=>{c===`mounted`?(a.current=o.current??Ne(r.current),o.current=void 0):a.current=`none`},[c]),R(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Ne(t);e?(o.current=s,l(`MOUNT`)):s===`none`||t?.display===`none`?l(`UNMOUNT`):l(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,l]),R(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=/* @__PURE__ */ De(a=>{let o=Ne(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(l(`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=/* @__PURE__ */ De(e=>{e.target===t&&(a.current=Ne(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)}}l(`ANIMATION_END`)},[t,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(c),ref:s.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Ne(t)}else r.current=null;n(e)},[])}}De(Ae,`usePresence`);function je(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}De(je,`setRef`);function Me(...e){let t=s.useRef(e);return t.current=e,s.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=je(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():je(n[e],null)}}},[])}De(Me,`useStableComposedRefs`);function Ne(e){return e?.animationName||`none`}De(Ne,`getAnimationName`);function Pe(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)}De(Pe,`getElementRef`);var Fe=Object.defineProperty,Ie=(e,t)=>Fe(e,`name`,{value:t,configurable:!0}),Le=s.useId||(()=>void 0),Re=0;function ze(e){let[t,n]=s.useState(Le());return R(()=>{e||n(e=>e??String(Re++))},[e]),e||(t?`radix-${t}`:``)}Ie(ze,`useId`);var Be=Object.defineProperty,Ve=(e,t)=>Be(e,`name`,{value:t,configurable:!0}),He=s.useInsertionEffect;function Ue(e){let t=s.useRef(e);return typeof He==`function`?He(()=>{t.current=e}):R(()=>{t.current=e}),s.useMemo(()=>((...e)=>t.current?.(...e)),[])}Ve(Ue,`useCallbackRef`);var We=Object.defineProperty,V=(e,t)=>We(e,`name`,{value:t,configurable:!0}),Ge=`dismissableLayer.update`,Ke=`dismissableLayer.pointerDownOutside`,qe=`dismissableLayer.focusOutside`,Je,Ye=s.createContext({layers:/* @__PURE__ */ new Set,layersWithOutsidePointerEventsDisabled:/* @__PURE__ */ new Set,branches:/* @__PURE__ */ new Set,dismissableSurfaces:/* @__PURE__ */ new Set}),Xe=/* @__PURE__ */ s.forwardRef(/* @__PURE__ */ V(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:c,onDismiss:l,...u}=e,d=s.useContext(Ye),[p,h]=s.useState(null),g=p?.ownerDocument??globalThis?.document,[,_]=s.useState({}),v=f(t,h),y=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=b?y.indexOf(b):-1,S=p?y.indexOf(p):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,w=S>=x,T=s.useRef(!1),E=$e(e=>{a?.(e),c?.(e),e.defaultPrevented||l?.()},{ownerDocument:g,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:T,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:s.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...d.branches].some(t=>t.contains(e));return w&&!t},[d.branches,w])}),D=et(e=>{if(r&&T.current)return;let t=e.target;[...d.branches].some(e=>e.contains(t))||(o?.(e),c?.(e),e.defaultPrevented||l?.())},g),O=p?S===y.length-1:!1,k=Ue(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return s.useEffect(()=>{if(O)return g.addEventListener(`keydown`,k,{capture:!0}),()=>g.removeEventListener(`keydown`,k,{capture:!0})},[g,O,k]),s.useEffect(()=>{if(p)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Je=g.body.style.pointerEvents,g.body.style.pointerEvents=`none`),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),tt(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(p),d.layersWithOutsidePointerEventsDisabled.size===0&&(g.body.style.pointerEvents=Je))}},[p,g,n,d]),s.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),tt())},[p,d]),s.useEffect(()=>{let e=/* @__PURE__ */ V(()=>_({}),`handleUpdate`);return document.addEventListener(Ge,e),()=>document.removeEventListener(Ge,e)},[]),/* @__PURE__ */ (0,m.jsx)(P.div,{...u,ref:v,style:{pointerEvents:C?w?`auto`:`none`:void 0,...e.style},onFocusCapture:B(e.onFocusCapture,D.onFocusCapture),onBlurCapture:B(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,E.onPointerDownCapture)})},`DismissableLayer`));function Ze(){let e=s.useContext(Ye),[t,n]=s.useState(null);return s.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}V(Ze,`useDismissableLayerSurface`);var Qe=/* @__PURE__ */ V(()=>!0,`IS_TRUE`);function $e(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Qe}=t,c=Ue(e),l=s.useRef(!1),u=s.useRef(!1),d=s.useRef(/* @__PURE__ */ new Map),f=s.useRef(()=>{});return s.useEffect(()=>{function e(){u.current=!1,i.current=!1,d.current.clear()}V(e,`resetOutsideInteraction`);function t(){return Array.from(d.current.values()).some(Boolean)}V(t,`isOutsideInteractionIntercepted`);function s(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||d.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{u.current&&f.current()},0)}V(s,`handleInteractionCapture`);function p(e){u.current&&d.current.set(e.type,!1)}V(p,`handleInteractionBubble`);let m=/* @__PURE__ */ V(a=>{if(a.target&&!l.current){let s=function(){n.removeEventListener(`click`,f.current);let r=t();e(),r||nt(Ke,c,p,{discrete:!0})};if(V(s,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,f.current),e(),l.current=!1;return}let p={originalEvent:a};u.current=!0,i.current=r&&a.button===0,d.current.clear(),!r||a.button!==0?s():(n.removeEventListener(`click`,f.current),f.current=s,n.addEventListener(`click`,f.current,{once:!0}))}else n.removeEventListener(`click`,f.current),e();l.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,s,!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`,f.current);for(let e of h)n.removeEventListener(e,s,!0),n.removeEventListener(e,p)}},[n,c,r,i,a,o]),{onPointerDownCapture:/* @__PURE__ */ V(()=>l.current=!0,`onPointerDownCapture`)}}V($e,`usePointerDownOutside`);function et(e,t=globalThis?.document){let n=Ue(e),r=s.useRef(!1);return s.useEffect(()=>{let e=/* @__PURE__ */ V(e=>{e.target&&!r.current&&nt(qe,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:/* @__PURE__ */ V(()=>r.current=!0,`onFocusCapture`),onBlurCapture:/* @__PURE__ */ V(()=>r.current=!1,`onBlurCapture`)}}V(et,`useFocusOutside`);function tt(){let e=new CustomEvent(Ge);document.dispatchEvent(e)}V(tt,`dispatchUpdate`);function nt(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?ee(i,a):i.dispatchEvent(a)}V(nt,`handleAndDispatchCustomEvent`);var rt=Object.defineProperty,H=(e,t)=>rt(e,`name`,{value:t,configurable:!0});function it(){let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e}var at=`focusScope.autoFocusOnMount`,ot=`focusScope.autoFocusOnUnmount`,st={bubbles:!1,cancelable:!0},ct=/* @__PURE__ */ s.forwardRef(/* @__PURE__ */ H(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...c}=e,[l,u]=s.useState(null),d=Ue(a),p=Ue(o),h=s.useRef(null),g=f(t,u),_=s.useRef(i);s.useEffect(()=>{_.current=i});let v=s.useCallback(e=>e?l?.contains(e)?!0:!!_.current?.some(t=>t.contains(e)):!1,[l]),y=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let e=function(e){if(y.paused||!l)return;let t=e.target;v(t)?h.current=t:yt(h.current,{select:!0})},t=function(e){if(y.paused||!l)return;let t=e.relatedTarget;t!==null&&(v(t)||yt(h.current,{select:!0}))},n=function(e){if(it()===document.body)for(let t of e)t.removedNodes.length>0&&yt(l)};H(e,`handleFocusIn`),H(t,`handleFocusOut`),H(n,`handleMutations`);let r=l?.getRootNode()??document;r.addEventListener(`focusin`,e),r.addEventListener(`focusout`,t);let i=new MutationObserver(n);return l&&i.observe(l,{childList:!0,subtree:!0}),()=>{r.removeEventListener(`focusin`,e),r.removeEventListener(`focusout`,t),i.disconnect()}}},[r,l,y.paused,v]),s.useEffect(()=>{if(l){bt.add(y);let e=it();if(!l.contains(e)){let t=new CustomEvent(at,st);l.addEventListener(at,d),l.dispatchEvent(t),t.defaultPrevented||(pt(Ct(ht(l)),{select:!0}),it()===e&&yt(l))}return()=>{l.removeEventListener(at,d);let t=l.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(ot,st);l.addEventListener(ot,p),l.dispatchEvent(r),r.defaultPrevented||yt(e??t.body,{select:!0}),l.removeEventListener(ot,p),bt.remove(y)},0)}}},[l,d,p,y]);let b=s.useCallback(e=>{if(!n&&!r||y.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=it();if(t&&i){let t=e.currentTarget,[r,a]=mt(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&yt(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&yt(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,y.paused]);return/* @__PURE__ */ (0,m.jsx)(P.div,{tabIndex:-1,...c,ref:g,onKeyDown:b})},`FocusScope`)),lt=s.createContext(null);function ut({registry:e,children:t}){return e?/* @__PURE__ */ (0,m.jsx)(lt.Provider,{value:e,children:t}):t}H(ut,`FocusScopeBranchProvider`);function dt(){let[e,t]=s.useState([]);return{nodes:e,registry:s.useMemo(()=>({add:/* @__PURE__ */ H(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:/* @__PURE__ */ H(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}H(dt,`useFocusScopeBranchRegistry`);function ft(e){let t=s.useContext(lt);s.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}H(ft,`useFocusScopeBranch`);function pt(e,{select:t=!1}={}){let n=it();for(let r of e)if(yt(r,{select:t}),it()!==n)return}H(pt,`focusFirst`);function mt(e){let t=ht(e);return[gt(t,e),gt(t.reverse(),e)]}H(mt,`getTabbableEdges`);function ht(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:/* @__PURE__ */ H(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}H(ht,`getTabbableCandidates`);function gt(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):_t(r,{upTo:t})))return r}H(gt,`findVisible`);function _t(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(_t,`isHidden`);function vt(e){return e.tagName===`INPUT`&&typeof e.select==`function`}H(vt,`isSelectableInput`);function yt(e,{select:t=!1}={}){if(e&&e.focus){let n=it();e.focus({preventScroll:!0}),e!==n&&vt(e)&&t&&e.select()}}H(yt,`focus`);var bt=xt();function xt(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=St(e,t),e.unshift(t)},remove(t){e=St(e,t),e[0]?.resume()}}}H(xt,`createFocusScopesStack`);function St(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}H(St,`arrayRemove`);function Ct(e){return e.filter(e=>e.tagName!==`A`)}H(Ct,`removeLinks`);var wt=Object.defineProperty,Tt=/* @__PURE__ */ s.forwardRef(/* @__PURE__ */ ((e,t)=>wt(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=s.useState(!1);R(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?p.createPortal(/* @__PURE__ */ (0,m.jsx)(P.div,{...r,ref:t}),o):null},`Portal`)),Et=Object.defineProperty,Dt=(e,t)=>Et(e,`name`,{value:t,configurable:!0});function Ot(e){let[t,n]=s.useState(void 0);return R(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}Dt(Ot,`useSize`);var kt=[`top`,`right`,`bottom`,`left`],At=Math.min,jt=Math.max,Mt=Math.round,Nt=Math.floor,Pt=e=>({x:e,y:e}),Ft={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function It(e,t,n){return jt(e,At(t,n))}function Lt(e,t){return typeof e==`function`?e(t):e}function Rt(e){return e.split(`-`)[0]}function zt(e){return e.split(`-`)[1]}function Bt(e){return e===`x`?`y`:`x`}function Vt(e){return e===`y`?`height`:`width`}function Ht(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ut(e){return Bt(Ht(e))}function Wt(e,t,n){n===void 0&&(n=!1);let r=zt(e),i=Ut(e),a=Vt(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=$t(o)),[o,$t(o)]}function Gt(e){let t=$t(e);return[Kt(e),t,Kt(t)]}function Kt(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var qt=[`left`,`right`],Jt=[`right`,`left`],Yt=[`top`,`bottom`],Xt=[`bottom`,`top`];function Zt(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Jt:qt:t?qt:Jt;case`left`:case`right`:return t?Yt:Xt;default:return[]}}function Qt(e,t,n,r){let i=zt(e),a=Zt(Rt(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Kt)))),a}function $t(e){let t=Rt(e);return Ft[t]+e.slice(t.length)}function en(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function tn(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:en(e)}function nn(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 rn(e,t,n){let{reference:r,floating:i}=e,a=Ht(t),o=Ut(t),s=Vt(o),c=Rt(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=zt(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function an(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}=Lt(t,e),p=tn(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=nn(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=nn(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:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var on=50,sn=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:an},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=rn(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<on&&(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}=rn(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},cn=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}=Lt(e,t)||{};if(l==null)return{};let d=tn(u),f={x:n,y:r},p=Ut(i),m=Vt(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=At(d[_],T),D=At(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=It(E,k,O),j=!c.arrow&&zt(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}}}),ln=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}=Lt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Rt(r),_=Ht(o),v=Rt(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[$t(o)]:Gt(o)),x=p!==`none`;!d&&x&&b.push(...Qt(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=Wt(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`||_===Ht(t)||T.every(e=>Ht(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=Ht(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 un(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dn(e){return kt.some(t=>e[t]>=0)}var fn=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Lt(e,t);switch(i){case`referenceHidden`:{let e=un(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:dn(e)}}}case`escaped`:{let e=un(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:dn(e)}}}default:return{}}}}},pn=/*#__PURE__*/ new Set([`left`,`top`]);async function mn(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Rt(n),s=zt(n),c=Ht(n)===`y`,l=pn.has(o)?-1:1,u=a&&c?-1:1,d=Lt(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 hn=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 mn(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}}}}},gn=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}=Lt(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Ht(i),p=Bt(f),m=u[p],h=u[f],g=(e,t)=>It(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}}}}}},_n=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}=Lt(e,t),u={x:n,y:r},d=Ht(i),f=Bt(d),p=u[f],m=u[d],h=Lt(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=pn.has(Rt(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}}}},vn=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}=Lt(e,t),c=await i.detectOverflow(t,s),l=Rt(n),u=zt(n),d=Ht(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=At(p-c[m],g),y=At(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*jt(c.left,c.right):S=p-2*jt(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 yn(){return typeof window<`u`}function bn(e){return Sn(e)?(e.nodeName||``).toLowerCase():`#document`}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xn(e){return((Sn(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Sn(e){return yn()?e instanceof Node||e instanceof U(e).Node:!1}function Cn(e){return yn()?e instanceof Element||e instanceof U(e).Element:!1}function wn(e){return yn()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function Tn(e){return!yn()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function En(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Ln(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Dn(e){return/^(table|td|th)$/.test(bn(e))}function On(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var kn=/transform|translate|scale|rotate|perspective|filter/,An=/paint|layout|strict|content/,jn=e=>!!e&&e!==`none`,Mn;function Nn(e){let t=Cn(e)?Ln(e):e;return jn(t.transform)||jn(t.translate)||jn(t.scale)||jn(t.rotate)||jn(t.perspective)||!Fn()&&(jn(t.backdropFilter)||jn(t.filter))||kn.test(t.willChange||``)||An.test(t.contain||``)}function Pn(e){let t=zn(e);for(;wn(t)&&!In(t);){if(Nn(t))return t;if(On(t))return null;t=zn(t)}return null}function Fn(){return Mn??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Mn}function In(e){return/^(html|body|#document)$/.test(bn(e))}function Ln(e){return U(e).getComputedStyle(e)}function Rn(e){return Cn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zn(e){if(bn(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Tn(e)&&e.host||xn(e);return Tn(t)?t.host:t}function Bn(e){let t=zn(e);return In(t)?(e.ownerDocument||e).body:wn(t)&&En(t)?t:Bn(t)}function Vn(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Bn(e),i=r===e.ownerDocument?.body,a=U(r);if(i){let e=Hn(a);return t.concat(a,a.visualViewport||[],En(r)?r:[],e&&n?Vn(e):[])}return t.concat(r,Vn(r,[],n))}function Hn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Un(e){let t=Ln(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=wn(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Mt(n)!==a||Mt(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Wn(e){return Cn(e)?e:e.contextElement}function Gn(e){let t=Wn(e);if(!wn(t))return Pt(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Un(t),o=(a?Mt(n.width):n.width)/r,s=(a?Mt(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Kn=/*#__PURE__*/ Pt(0);function qn(e){let t=U(e);return!Fn()||!t.visualViewport?Kn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jn(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===U(e)}function Yn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Wn(e),o=Pt(1);t&&(r?Cn(r)&&(o=Gn(r)):o=Gn(e));let s=Jn(a,n,r)?qn(a):Pt(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=U(a),t=Cn(r)?U(r):r,n=e,i=Hn(n);for(;i&&t!==n;){let e=Gn(i),t=i.getBoundingClientRect(),r=Ln(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=U(i),i=Hn(n)}}return nn({width:u,height:d,x:c,y:l})}function Xn(e,t){let n=Rn(e).scrollLeft;return t?t.left+n:Yn(xn(e)).left+n}function Zn(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Xn(e,n),y:n.top+t.scrollTop}}function Qn(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=xn(r),s=t?On(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Pt(1),u=Pt(0),d=wn(r);if((d||!a)&&((bn(r)!==`body`||En(o))&&(c=Rn(r)),d)){let e=Yn(r);l=Gn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Zn(o,c):Pt(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 $n(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function er(e){let t=Rn(e),n=e.ownerDocument.body,r=jt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=jt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Xn(e),o=-t.scrollTop;return Ln(n).direction===`rtl`&&(a+=jt(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var tr=25;function nr(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=U(e),a=xn(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Fn()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Xn(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<=tr&&(s-=o)}return{width:s,height:c,x:l,y:u}}function rr(e,t){let n=Yn(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Gn(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ir(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=nr(e,n,t);else if(t===`document`)r=er(xn(e));else if(Cn(t))r=rr(t,n);else{let n=qn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return nn(r)}function ar(e,t){let n=t.get(e);if(n)return n;let r=Vn(e,[],!1).filter(e=>Cn(e)&&bn(e)!==`body`),i=null,a=Ln(e).position===`fixed`,o=a?zn(e):e;for(;Cn(o)&&!In(o);){let e=Ln(o),t=Nn(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=zn(o)}return t.set(e,r),r}function or(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?On(t)?[]:ar(t,this._c):[].concat(n),r],o=ir(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=ir(t,a[e],i);s=jt(n.top,s),c=At(n.right,c),l=At(n.bottom,l),u=jt(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function sr(e){let{width:t,height:n}=Un(e);return{width:t,height:n}}function cr(e,t,n){let r=wn(t),i=xn(t),a=n===`fixed`,o=Yn(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Pt(0);if((r||!a)&&((bn(t)!==`body`||En(i))&&(s=Rn(t)),r)){let e=Yn(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Xn(i));let l=i&&!r&&!a?Zn(i,s):Pt(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 lr(e){return Ln(e).position===`static`}function ur(e,t){if(!wn(e)||Ln(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return xn(e)===n&&(n=n.ownerDocument.body),n}function dr(e,t){let n=U(e);if(On(e))return n;if(!wn(e)){let t=zn(e);for(;t&&!In(t);){if(Cn(t)&&!lr(t))return t;t=zn(t)}return n}let r=ur(e,t);for(;r&&Dn(r)&&lr(r);)r=ur(r,t);return r&&In(r)&&lr(r)&&!Nn(r)?n:r||Pn(e)||n}var fr=async function(e){let t=this.getOffsetParent||dr,n=this.getDimensions,r=await n(e.floating);return{reference:cr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pr(e){return Ln(e).direction===`rtl`}var mr={convertOffsetParentRelativeRectToViewportRelativeRect:Qn,getDocumentElement:xn,getClippingRect:or,getOffsetParent:dr,getElementRects:fr,getClientRects:$n,getDimensions:sr,getScale:Gn,isElement:Cn,isRTL:pr};function hr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gr(e,t,n){let r=null,i,a=xn(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=Nt(d),h=Nt(a.clientWidth-(u+f)),g=Nt(a.clientHeight-(d+p)),_=Nt(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:jt(0,At(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!hr(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=U(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function _r(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=Wn(e),u=i||a?[...l?Vn(l):[],...t?Vn(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?gr(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?Yn(e):null;c&&g();function g(){let t=Yn(e);h&&!hr(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 vr=hn,yr=gn,br=ln,xr=vn,Sr=fn,Cr=cn,wr=_n,Tr=(e,t,n)=>{let r=/* @__PURE__ */ new Map,i=n??{},a={...mr,...i.platform,_c:r};return sn(e,t,{...i,platform:a})},Er=typeof document<`u`?s.useLayoutEffect:function(){};function Dr(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(!Dr(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)&&!Dr(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Or(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kr(e,t){let n=Or(e);return Math.round(t*n)/n}function Ar(e){let t=s.useRef(e);return Er(()=>{t.current=e}),t}function jr(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,f]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=s.useState(r);Dr(m,r)||h(r);let[g,_]=s.useState(null),[v,y]=s.useState(null),b=s.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=s.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=o||v,w=s.useRef(null),T=s.useRef(null),E=s.useRef(d),D=l!=null,O=Ar(l),k=Ar(i),A=Ar(u),j=s.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};k.current&&(e.platform=k.current),Tr(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!Dr(E.current,t)&&(E.current=t,p.flushSync(()=>{f(t)}))})},[m,t,n,k,A]);Er(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let M=s.useRef(!1);Er(()=>(M.current=!0,()=>{M.current=!1}),[]),Er(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=s.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=s.useMemo(()=>({reference:S,floating:C}),[S,C]),ee=s.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=kr(P.floating,d.x),r=kr(P.floating,d.y);return c?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Or(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,c,P.floating,d.x,d.y]);return s.useMemo(()=>({...d,update:j,refs:N,elements:P,floatingStyles:ee}),[d,j,N,P,ee])}var Mr=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?{}:Cr({element:r.current,padding:i}).fn(n):r?Cr({element:r,padding:i}).fn(n):{}}}},Nr=(e,t)=>{let n=vr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pr=(e,t)=>{let n=yr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Fr=(e,t)=>({fn:wr(e).fn,options:[e,t]}),Ir=(e,t)=>{let n=br(e);return{name:n.name,fn:n.fn,options:[e,t]}},Lr=(e,t)=>{let n=xr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rr=(e,t)=>{let n=Sr(e);return{name:n.name,fn:n.fn,options:[e,t]}},zr=(e,t)=>{let n=Mr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Br=Object.defineProperty,Vr=(e,t)=>Br(e,`name`,{value:t,configurable:!0}),Hr={Partial:`partial`,Always:`always`},Ur={Optimized:`optimized`,Always:`always`},Wr=`Popper`,[Gr,Kr]=/* @__PURE__ */ ae(Wr),[qr,Jr]=Gr(Wr),Yr=/* @__PURE__ */ Vr(e=>{let{__scopePopper:t,children:n}=e,[r,i]=s.useState(null),[a,o]=s.useState(void 0);return/* @__PURE__ */ (0,m.jsx)(qr,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Xr=`PopperAnchor`,Zr=/* @__PURE__ */ s.forwardRef(/* @__PURE__ */ Vr(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Jr(Xr,n),o=s.useRef(null),c=a.onAnchorChange,l=f(t,s.useCallback(e=>{o.current=e,e&&c(e)},[c])),u=s.useRef(null);s.useEffect(()=>{if(!r)return;let e=u.current;u.current=r.current,e!==u.current&&c(u.current)});let d=a.placementState&&ii(a.placementState),p=d?.[0],h=d?.[1];return r?null:/* @__PURE__ */ (0,m.jsx)(P.div,{"data-radix-popper-side":p,"data-radix-popper-align":h,...i,ref:l})},`PopperAnchor`)),Qr=`PopperContent`,[$r,ei]=Gr(Qr),ti=/* @__PURE__ */ s.forwardRef(/* @__PURE__ */ Vr(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p=Hr.Partial,hideWhenDetached:h=!1,updatePositionStrategy:g=Ur.Optimized,onPlaced:_,...v}=e,y=Jr(Qr,n),[b,x]=s.useState(null),S=f(t,x),[C,w]=s.useState(null),T=Ot(C),E=T?.width??0,D=T?.height??0,O=r+(a===`center`?``:`-`+a),k=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},A=Array.isArray(u)?u:[u],j=A.length>0,M={padding:k,boundary:A.filter(ni),altBoundary:j},{refs:N,floatingStyles:ee,placement:F,isPositioned:te,middlewareData:ne}=jr({strategy:`fixed`,placement:O,whileElementsMounted:/* @__PURE__ */ Vr((...e)=>_r(...e,{animationFrame:g===Ur.Always}),`whileElementsMounted`),elements:{reference:y.anchor},middleware:[Nr({mainAxis:i+D,alignmentAxis:o}),l&&Pr({mainAxis:!0,crossAxis:!1,...p===Hr.Partial?{limiter:Fr()}:{},...M}),l&&Ir({...M}),Lr({...M,apply:/* @__PURE__ */ Vr(({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`)}),C&&zr({element:C,padding:c}),ri({arrowWidth:E,arrowHeight:D}),h&&Rr(j?{strategy:`referenceHidden`,...M}:{strategy:`referenceHidden`,padding:M.padding,altBoundary:M.altBoundary})]}),re=y.setPlacementState;R(()=>(re(F),()=>{re(void 0)}),[F,re]);let[ie,I]=ii(F),L=Ue(_);R(()=>{te&&L?.()},[te,L]);let ae=ne.arrow?.x,oe=ne.arrow?.y,se=ne.arrow?.centerOffset!==0,[z,ce]=s.useState();return R(()=>{b&&ce(window.getComputedStyle(b).zIndex)},[b]),/* @__PURE__ */ (0,m.jsx)(`div`,{ref:N.setFloating,"data-radix-popper-content-wrapper":``,style:{...ee,transform:te?ee.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:z,"--radix-popper-transform-origin":[ne.transformOrigin?.x,ne.transformOrigin?.y].join(` `),...ne.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:/* @__PURE__ */ (0,m.jsx)($r,{scope:n,placedSide:ie,placedAlign:I,onArrowChange:w,arrowX:ae,arrowY:oe,shouldHideArrow:se,children:/* @__PURE__ */ (0,m.jsx)(P.div,{"data-side":ie,"data-align":I,...v,ref:S,style:{...v.style,animation:te?v.style?.animation:`none`}})})})},`PopperContent`));function ni(e){return e!==null}Vr(ni,`isNotNull`);var ri=/* @__PURE__ */ Vr(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]=ii(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 ii(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Vr(ii,`getSideAndAlignFromPlacement`);var ai=Object.defineProperty,W=(e,t)=>ai(e,`name`,{value:t,configurable:!0}),[oi,si]=/* @__PURE__ */ ae(`Tooltip`,[Kr]),ci=Kr(),li=`TooltipProvider`,ui=700,di=`tooltip.open`,[fi,pi]=oi(li),mi=/* @__PURE__ */ W(e=>{let{__scopeTooltip:t,delayDuration:n=ui,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=s.useRef(!0),c=s.useRef(!1),l=s.useRef(0);return s.useEffect(()=>{let e=l.current;return()=>window.clearTimeout(e)},[]),/* @__PURE__ */ (0,m.jsx)(fi,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:s.useCallback(()=>{r<=0||(window.clearTimeout(l.current),o.current=!1)},[r]),onClose:s.useCallback(()=>{r<=0||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:c,onPointerInTransitChange:s.useCallback(e=>{c.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),hi=`Tooltip`,[gi,_i]=oi(hi),vi=/* @__PURE__ */ W(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:c}=e,l=pi(hi,e.__scopeTooltip),u=ci(t),[d,f]=s.useState(null),[p,h]=s.useState(void 0),g=ze(),_=s.useRef(0),v=o??l.disableHoverableContent,y=c??l.delayDuration,b=s.useRef(!1),[x,S]=xe({prop:r,defaultProp:i??!1,onChange:/* @__PURE__ */ W(e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(di))):l.onClose(),a?.(e)},`onChange`),caller:hi}),C=s.useMemo(()=>x?b.current?`delayed-open`:`instant-open`:`closed`,[x]),w=s.useCallback(()=>{window.clearTimeout(_.current),_.current=0,b.current=!1,S(!0)},[S]),T=s.useCallback(()=>{window.clearTimeout(_.current),_.current=0,S(!1)},[S]),E=s.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>{b.current=!0,S(!0),_.current=0},y)},[y,S]);s.useEffect(()=>()=>{_.current&&=(window.clearTimeout(_.current),0)},[]);let D=p??g;return/* @__PURE__ */ (0,m.jsx)(Yr,{...u,children:/* @__PURE__ */ (0,m.jsx)(gi,{scope:t,contentId:D,setContentId:h,open:x,stateAttribute:C,trigger:d,onTriggerChange:f,onTriggerEnter:s.useCallback(()=>{l.isOpenDelayedRef.current?E():w()},[l.isOpenDelayedRef,E,w]),onTriggerLeave:s.useCallback(()=>{v?T():(window.clearTimeout(_.current),_.current=0)},[T,v]),onOpen:w,onClose:T,disableHoverableContent:v,children:n})})},`Tooltip`),yi=`TooltipTrigger`,bi=/* @__PURE__ */ s.forwardRef(/* @__PURE__ */ W(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=_i(yi,n),o=pi(yi,n),c=ci(n),l=f(t,s.useRef(null),a.onTriggerChange),u=s.useRef(!1),d=s.useRef(!1),p=s.useCallback(()=>u.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener(`pointerup`,p),[p]),/* @__PURE__ */ (0,m.jsx)(Zr,{asChild:!0,...c,children:/* @__PURE__ */ (0,m.jsx)(P.button,{"aria-describedby":a.open?Ii(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:l,onPointerMove:B(e.onPointerMove,e=>{e.pointerType!==`touch`&&!d.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:B(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener(`pointerup`,p,{once:!0})}),onFocus:B(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:B(e.onBlur,a.onClose),onClick:B(e.onClick,a.onClose)})})},`TooltipTrigger`)),xi=`TooltipPortal`,[Si,Ci]=oi(xi,{forceMount:void 0}),wi=/* @__PURE__ */ W(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=_i(xi,t);return/* @__PURE__ */ (0,m.jsx)(Si,{scope:t,forceMount:n,children:/* @__PURE__ */ (0,m.jsx)(ke,{present:n||a.open,children:/* @__PURE__ */ (0,m.jsx)(Tt,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),Ti=`TooltipContent`,Ei=/* @__PURE__ */ s.forwardRef(/* @__PURE__ */ W(function(e,t){let n=Ci(Ti,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=_i(Ti,e.__scopeTooltip);return/* @__PURE__ */ (0,m.jsx)(ke,{present:r||o.open,children:o.disableHoverableContent?/* @__PURE__ */ (0,m.jsx)(ki,{side:i,...a,ref:t}):/* @__PURE__ */ (0,m.jsx)(Di,{side:i,...a,ref:t})})},`TooltipContent`)),Di=/* @__PURE__ */ s.forwardRef(/* @__PURE__ */ W(function(e,t){let n=_i(Ti,e.__scopeTooltip),r=pi(Ti,e.__scopeTooltip),i=s.useRef(null),a=f(t,i),[o,c]=s.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:p}=r,h=s.useCallback(()=>{c(null),p(!1)},[p]),g=s.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=ji(r,Ai(r,n.getBoundingClientRect())),a=Mi(t.getBoundingClientRect()),o=Pi([...i,...a]);c(o),p(!0)},[p]);return s.useEffect(()=>()=>h(),[h]),s.useEffect(()=>{if(l&&d){let e=/* @__PURE__ */ W(e=>g(e,d),`handleTriggerLeave`),t=/* @__PURE__ */ W(e=>g(e,l),`handleContentLeave`);return l.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{l.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[l,d,g,h]),s.useEffect(()=>{if(o){let e=/* @__PURE__ */ W(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),i=!Ni(n,o);r?h():i&&(h(),u())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[l,d,o,u,h]),/* @__PURE__ */ (0,m.jsx)(ki,{...e,ref:a})},`TooltipContentHoverable`)),Oi=/* @__PURE__ */ y(`TooltipContent`),ki=/* @__PURE__ */ s.forwardRef(/* @__PURE__ */ W(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:c,...l}=e,u=_i(Ti,n),d=ci(n),{onClose:p}=u,[h,g]=s.useState(null),_=f(t,g);ft(h),s.useEffect(()=>(document.addEventListener(di,p),()=>document.removeEventListener(di,p)),[p]),s.useEffect(()=>{if(u.trigger){let e=/* @__PURE__ */ W(e=>{e.target instanceof Node&&e.target.contains(u.trigger)&&p()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[u.trigger,p]);let{setContentId:v}=u;return R(()=>(v(a),()=>{v(void 0)}),[a,v]),/* @__PURE__ */ (0,m.jsx)(Xe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:/* @__PURE__ */ (0,m.jsxs)(ti,{"data-state":u.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:u.contentId,...d,...l,ref:_,style:{...l.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[/* @__PURE__ */ (0,m.jsx)(Oi,{children:r}),i?/* @__PURE__ */ (0,m.jsx)(re,{id:u.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`));function Ai(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}W(Ai,`getExitSideFromRect`);function ji(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}W(ji,`getPaddedExitPoints`);function Mi(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}W(Mi,`getPointsFromRect`);function Ni(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}W(Ni,`isPointInPolygon`);function Pi(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Fi(t)}W(Pi,`getHull`);function Fi(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}W(Fi,`getHullPresorted`);function Ii(...e){let t=/* @__PURE__ */ new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}W(Ii,`concatAriaDescribedby`);function Li(e,t){e.indexOf(t)===-1&&e.push(t)}function Ri(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var zi=(e,t,n)=>n>t?t:n<e?e:n,Bi={},Vi=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Hi=e=>typeof e==`object`&&!!e,Ui=e=>/^0[^.\s]+$/u.test(e);/*#__NO_SIDE_EFFECTS__*/
6
+ function Wi(e){let t;return()=>(t===void 0&&(t=e()),t)}var Gi=/* @__NO_SIDE_EFFECTS__ */ e=>e,Ki=(...e)=>e.reduce((e,t)=>n=>t(e(n))),qi=/* @__NO_SIDE_EFFECTS__ */ (e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Ji=class{constructor(){this.subscriptions=[]}add(e){return Li(this.subscriptions,e),()=>this.remove(e)}remove(e){Ri(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},G=/* @__NO_SIDE_EFFECTS__ */ e=>e*1e3,K=/* @__NO_SIDE_EFFECTS__ */ e=>e/1e3,Yi=/* @__NO_SIDE_EFFECTS__ */ (e,t)=>t?1e3/t*e:0,Xi=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Zi=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);/*#__NO_SIDE_EFFECTS__*/
7
+ function Qi(e,t,n,r){return e===t&&n===r?Gi:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Zi(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Zi(s+1e-7,e,n)-i-r)}return Zi(s,t,r)}}var $i=/* @__NO_SIDE_EFFECTS__ */ e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ea=/* @__NO_SIDE_EFFECTS__ */ e=>t=>1-e(1-t),ta=/*@__PURE__*/ Qi(.33,1.53,.69,.99),na=/*@__PURE__*/ ea(ta),ra=/*@__PURE__*/ $i(na),ia=e=>e>=1?1:(e*=2)<1?.5*na(e):.5*(2-2**(-10*(e-1))),aa=e=>1-Math.sin(Math.acos(e)),oa=/* @__PURE__ */ ea(aa),sa=/* @__PURE__ */ $i(aa),ca=/*@__PURE__*/ Qi(.42,0,1,1),la=/*@__PURE__*/ Qi(0,0,.58,1),ua=/*@__PURE__*/ Qi(.42,0,.58,1),da=/* @__NO_SIDE_EFFECTS__ */ e=>Array.isArray(e)&&typeof e[0]!=`number`;/*#__NO_SIDE_EFFECTS__*/
8
+ function fa(e,t){return/* @__PURE__ */ da(e)?e[Xi(0,e.length,t)]:e}var pa=/* @__NO_SIDE_EFFECTS__ */ e=>Array.isArray(e)&&typeof e[0]==`number`,ma={linear:Gi,easeIn:ca,easeInOut:ua,easeOut:la,circIn:aa,circInOut:sa,circOut:oa,backIn:na,backInOut:ra,backOut:ta,anticipate:ia},ha=e=>typeof e==`string`,ga=e=>{if(/* @__PURE__ */ pa(e)){let[t,n,r,i]=e;return/* @__PURE__ */ Qi(t,n,r,i)}return ha(e)?ma[e]:e},_a={delta:0,timestamp:0,isProcessing:!1},va;function ya(){va=void 0}var q={now:()=>(va===void 0&&q.set(_a.isProcessing||Bi.useManualTiming?_a.timestamp:performance.now()),va),set:e=>{va=e,queueMicrotask(ya)}},ba=e=>Math.round(e*1e5)/1e5,xa=e=>t=>typeof t==`string`&&t.startsWith(e),Sa=/*@__PURE__*/ xa(`--`),Ca=/*@__PURE__*/ xa(`var(--`),wa=e=>Ca(e)?Ta.test(e.split(`/*`)[0].trim()):!1,Ta=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ea(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Da={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Oa={...Da,transform:e=>zi(0,1,e)},ka={...Da,default:1},Aa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ja(e){return e==null}var Ma=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Na=(e,t)=>n=>!!(typeof n==`string`&&Ma.test(n)&&n.startsWith(e)||t&&!ja(n)&&Object.prototype.hasOwnProperty.call(n,t)),Pa=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Aa);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Fa=e=>zi(0,255,e),Ia={...Da,transform:e=>Math.round(Fa(e))},La={test:/*@__PURE__*/ Na(`rgb`,`red`),parse:/*@__PURE__*/ Pa(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ia.transform(e)+`, `+Ia.transform(t)+`, `+Ia.transform(n)+`, `+ba(Oa.transform(r))+`)`},Ra=(e,t,n)=>{let r=e.substring(1+t*n,1+(t+1)*n);return n>1?r:r+r};function za(e){let t=e.length>5?2:1,n=Ra(e,3,t);return{red:parseInt(Ra(e,0,t),16),green:parseInt(Ra(e,1,t),16),blue:parseInt(Ra(e,2,t),16),alpha:n?parseInt(n,16)/255:1}}var Ba={test:/*@__PURE__*/ Na(`#`),parse:za,transform:La.transform},Va=/* @__NO_SIDE_EFFECTS__ */ e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ha=/*@__PURE__*/ Va(`deg`),Ua=/*@__PURE__*/ Va(`%`),J=/*@__PURE__*/ Va(`px`),Wa=/*@__PURE__*/ Va(`vh`),Ga=/*@__PURE__*/ Va(`vw`),Ka={...Ua,parse:e=>Ua.parse(e)/100,transform:e=>Ua.transform(e*100)},qa={test:/*@__PURE__*/ Na(`hsl`,`hue`),parse:/*@__PURE__*/ Pa(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Ua.transform(ba(t))+`, `+Ua.transform(ba(n))+`, `+ba(Oa.transform(r))+`)`},Y={test:e=>La.test(e)||Ba.test(e)||qa.test(e),parse:e=>La.test(e)?La.parse(e):qa.test(e)?qa.parse(e):Ba.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?La.transform(e):qa.transform(e),getAnimatableNone:e=>{let t=Y.parse(e);return t.alpha=0,Y.transform(t)}},Ja=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Ya=/*@__PURE__*/ new RegExp(Aa.source),Xa=/*@__PURE__*/ new RegExp(Ja.source,`i`);function Za(e){return isNaN(e)&&typeof e==`string`&&(Ya.test(e)||Xa.test(e))}var Qa=`number`,$a=`color`,eo=`var`,to=`var(`,no="${}",ro=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;function io(e){let t=e.toString();return Ya.test(t)||Xa.test(t)}function ao(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ro,e=>(Y.test(e)?(r.color.push(a),i.push($a),n.push(Y.parse(e))):e.startsWith(to)?(r.var.push(a),i.push(eo),n.push(e)):(r.number.push(a),i.push(Qa),n.push(parseFloat(e))),++a,no)).split(no),indexes:r,types:i}}function oo(e){return ao(e).values}function so({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===Qa?ba(r[a]):e===$a?Y.transform(r[a]):r[a]}return i}}function co(e){return so(ao(e))}var lo=e=>typeof e==`number`?0:Y.test(e)?Y.getAnimatableNone(e):e,uo=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:lo(e);function fo(e){let t=ao(e);return so(t)(t.values.map((e,n)=>uo(e,t.split[n])))}var po={test:Za,parse:oo,createTransformer:co,getAnimatableNone:fo};function mo(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ho({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=mo(s,r,e+1/3),a=mo(s,r,e),o=mo(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function go(e,t){return n=>n>0?t:e}var _o=(e,t,n)=>e+(t-e)*n,vo=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},yo=[Ba,La,qa],bo=e=>yo.find(t=>t.test(e));function xo(e){let t=bo(e);if(!t)return!1;let n=t.parse(e);return t===qa&&(n=ho(n)),n}var So=(e,t)=>{let n=xo(e),r=xo(t);if(!n||!r)return go(e,t);let i={...n};return e=>(i.red=vo(n.red,r.red,e),i.green=vo(n.green,r.green,e),i.blue=vo(n.blue,r.blue,e),i.alpha=_o(n.alpha,r.alpha,e),La.transform(i))},Co=/* @__PURE__ */ new Set([`none`,`hidden`]);function wo(e,t){return Co.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function To(e,t){return n=>_o(e,t,n)}function Eo(e){return typeof e==`number`?To:typeof e==`string`?wa(e)?go:Y.test(e)?So:Ao:Array.isArray(e)?Do:typeof e==`object`?Y.test(e)?So:Oo:go}function Do(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Eo(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Oo(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Eo(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function ko(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var Ao=(e,t)=>{let n=ao(e),r=ao(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?Co.has(e)&&!r.values.length||Co.has(t)&&!n.values.length?wo(e,t):Ki(Do(ko(n,r),r.values),so(r)):go(e,t)},jo=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Mo(e,t){let n=jo.exec(e);if(!n)return;let r=jo.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>ba(_o(a,o,e))+i}function No(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return _o(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Mo(e,t);if(n)return n}return Eo(e)(e,t)}var Po=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Fo(e){let t=/* @__PURE__ */ new Set,n=/* @__PURE__ */ new Set,r=!1,i=!1,a,o=/* @__PURE__ */ new Set,s={delta:0,timestamp:0,isProcessing:!1};function c(t){o.has(t)&&(n.add(t),e()),(a=t)(s)}let l={schedule:(e,i=!1,s=!1)=>{let c=s&&r,l=c?t:n;return i&&o.add(e),c&&e!==a&&l.delete(e),l.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(c),t.clear(),a=void 0,r=!1,i&&(i=!1,l.process(e))}};return l}var Io=40;function Lo(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Po.reduce((e,t)=>(e[t]=Fo(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Bi.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,Io),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:Po.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Po.length;t++)o[Po[t]].cancel(e)},state:n,steps:o}}var{schedule:Ro,cancel:zo,steps:Bo}=/* @__PURE__ */ Lo(typeof requestAnimationFrame<`u`?requestAnimationFrame:Gi,!0,_a),Vo=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Ro.update(t,e),stop:()=>zo(t),now:()=>_a.isProcessing?_a.timestamp:q.now()}},Ho=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Uo=2e4;function Wo(e,t=50,n=Uo,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Go(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Wo(o),Uo);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:/* @__PURE__ */ K(s)}}var Ko=100,qo=10,Jo=1,Yo=800,Xo=.3,Zo=.3,Qo=.01,$o=2,es=.005,ts=.5,ns=.01,rs=10,is=.05,as=e=>e<0?1/Math.max(1+e,is):Math.max(1-e,is);function os(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return ls(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function ss(e,t){return e*Math.sqrt(1-t*t)}var cs=12;function ls(e,t,n){let r=n;for(let n=1;n<cs;n++)r-=e(r)/t(r);return r}var us=.001;function ds({duration:e=Yo,bounce:t=Xo}){let n,r,i=as(t);e=zi(ns,rs,/* @__PURE__ */ K(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=ss(t,i),o=Math.exp(-r);return us-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=ss(t*t,i);return(-n(t)+us>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=ls(n,r,a),s=o*os(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:/* @__PURE__ */ G(e)}}var fs=(e,t)=>(t?e>=0:e>0)&&e<1/0;function ps(e,t){if(fs(e,t))return e}function ms(e){let t=ps(e.stiffness),n=ps(e.damping,!0),r=ps(e.mass),i={...e,stiffness:t??Ko,damping:n??qo,mass:r??Jo,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=as(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*os(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,ds(i)),i.isResolvedFromDuration=!0;fs(i.stiffness)&&fs(i.damping,!0)||(i.stiffness=Ko,i.damping=qo)}return i}function hs(e=Zo,t=Xo){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=ms({...n}),f=e=>d?0:-/* @__PURE__ */ K(e),p=s/(2*Math.sqrt(o*c)),m=/* @__PURE__ */ K(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?Qo:$o),g.restDelta=n.restDelta||(e?es:ts)};_();let v,y,b;if(p<1){let e=ss(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=e<1||d?1/0:300/e,i=(e,t)=>Math.exp(t>r?(h-e)*r-h*t:-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>/* @__PURE__ */ G(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=/* @__PURE__ */ G(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Wo(S),Uo),t=Ho(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}var gs=/* @__PURE__ */ Object.assign(hs,{applyToOptions:e=>{let t=Go(e,100,hs);return e.ease=t.ease,e.duration=/* @__PURE__ */ G(t.duration),e.type=`keyframes`,e}});function _s({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o?o(g):g;_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:e?_+t:d},b,x,S=e=>{p(f.value)&&(b=e,x=gs({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function vs(e,t,n){let r=[],i=n||Bi.mix||No,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Ki(Array.isArray(t)?t[n]||Gi:t,a)),r.push(a)}return r}function ys(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=vs(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=/* @__PURE__ */ qi(e[r],e[r+1],n);return s[r](i)};return n?t=>l(zi(e[0],e[a-1],t)):l}function bs(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=/* @__PURE__ */ qi(0,t,r);e.push(_o(n,1,i))}}function xs(e){let t=[0];return bs(t,e.length-1),t}function Ss(e,t){return e.map(e=>e*t)}function Cs(e,t){return e.map(()=>t||ua).splice(0,e.length-1)}function ws({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=/* @__PURE__ */ da(r)?r.map(ga):ga(r)||ua,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(Bi.mix||No)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?zi(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=ys(Ss(n&&n.length===t.length?n:xs(t),e),t,{ease:Array.isArray(i)?i:Cs(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Ts=5;function Es(e,t,n){let r=Math.max(t-Ts,0);return/* @__PURE__ */ Yi(n-e(r),t-r)}function Ds(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):Es(t=>e.next(t).value,t,e.next(t).value)}var Os=e=>e!==null;function ks(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Os),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var As={decay:_s,inertia:_s,tween:ws,keyframes:ws,spring:gs};function js(e){typeof e.type==`string`&&(e.type=As[e.type])}var Ms=40,Ns=(e,t)=>t-e>Ms&&!Bi.useManualTiming?t:e;function Ps(e,t){return{kind:e,animation:t,timestamp:q.now(),frameTimestamp:_a.timestamp,frameIsProcessing:_a.isProcessing}}function Fs(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...Ps(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function Is(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...Ps(`layout-animation-start`,e),node:t})}catch{}}var Ls=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},Rs=e=>e/100,zs=e=>Math.round(e*1e4)/1e4,Bs=class extends Ls{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==q.now()&&this.tick(q.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),Fs(this,this.options)}initAnimation(){let{options:e}=this;js(e);let{type:t=ws,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||ws;s!==ws&&typeof o[0]!=`number`&&(this.mixKeyframes=Ki(Rs,No(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Wo(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){this.currentTime=this.holdTime??Math.round(e-this.startTime)*this.playbackSpeed}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=Ns(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;d||(p=this.playbackSpeed>=0?i<1/0?this.currentTime>=r:p:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==_s&&(f.value=ks(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??zs((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==_s?ks(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=zi(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}get duration(){return/* @__PURE__ */ K(this.calculatedDuration)}get iterationDuration(){return this.duration+/* @__PURE__ */ K(this.options.delay??0)}get time(){return/* @__PURE__ */ K(this.currentTime)}set time(e){e=/* @__PURE__ */ G(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return Ds(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(q.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=/* @__PURE__ */ K(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Vo,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(q.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},Vs=/* @__PURE__ */ new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Hs(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Aa)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Vs.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Us=/\b([a-z-]*)\(.*?\)/gu,Ws={...po,getAnimatableNone:e=>{let t=e.match(Us);return t?t.map(Hs).join(` `):e}},Gs={...po,getAnimatableNone:e=>{let t=po.parse(e);return po.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Ks={...Da,transform:Math.round},qs={rotate:Ha,pathRotation:Ha,rotateX:Ha,rotateY:Ha,rotateZ:Ha,scale:ka,scaleX:ka,scaleY:ka,scaleZ:ka,skew:Ha,skewX:Ha,skewY:Ha,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:Oa,originX:Ka,originY:Ka,originZ:J},Js={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,inset:J,insetBlock:J,insetBlockStart:J,insetBlockEnd:J,insetInline:J,insetInlineStart:J,insetInlineEnd:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,paddingBlock:J,paddingBlockStart:J,paddingBlockEnd:J,paddingInline:J,paddingInlineStart:J,paddingInlineEnd:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,marginBlock:J,marginBlockStart:J,marginBlockEnd:J,marginInline:J,marginInlineStart:J,marginInlineEnd:J,fontSize:J,backgroundPositionX:J,backgroundPositionY:J,...qs,zIndex:Ks,fillOpacity:Oa,strokeOpacity:Oa,numOctaves:Ks},Ys={...Js,color:Y,backgroundColor:Y,outlineColor:Y,fill:Y,stroke:Y,borderColor:Y,borderTopColor:Y,borderRightColor:Y,borderBottomColor:Y,borderLeftColor:Y,filter:Ws,WebkitFilter:Ws,mask:Gs,WebkitMask:Gs},Xs=e=>Ys[e],Zs=/*@__PURE__*/ new Set([Ws,Gs]);function Qs(e,t){let n=Xs(e);return Zs.has(n)||(n=po),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function $s(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var ec=e=>e*180/Math.PI,tc=e=>rc(ec(Math.atan2(e[1],e[0]))),nc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:tc,rotateZ:tc,skewX:e=>ec(Math.atan(e[1])),skewY:e=>ec(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},rc=e=>(e%=360,e<0&&(e+=360),e),ic=tc,ac=e=>Math.hypot(e[0],e[1]),oc=e=>Math.hypot(e[4],e[5]),sc={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ac,scaleY:oc,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(ac(e)+oc(e))/2,rotateX:e=>rc(ec(Math.atan2(e[6],e[5]))),rotateY:e=>rc(ec(Math.atan2(-e[2],e[0]))),rotateZ:ic,rotate:ic,skewX:e=>ec(Math.atan(e[4])),skewY:e=>ec(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function cc(e){return+!!e.includes(`scale`)}function lc(e,t){if(!e||e===`none`)return cc(t);let n=e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);if(!n)return cc(t);let r=(n[1]?sc:nc)[t],i=n[2].split(`,`).map(e=>parseFloat(e));return typeof r==`function`?r(i):i[r]}var uc=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return lc(n,t)},dc=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],fc=/* @__PURE__ */ new Set([...dc,`pathRotation`]),pc=e=>e===Da||e===J,mc=/* @__PURE__ */ new Set([`x`,`y`,`z`]),hc=/* @__PURE__ */ dc.filter(e=>!mc.has(e));function gc(e){let t=[];return hc.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var _c=/* @__PURE__ */ new Set([`bottom`,`right`]);function vc(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var yc=({transform:e})=>lc(e,`x`),bc=({transform:e})=>lc(e,`y`),xc={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>vc(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>vc(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:yc,y:bc,translateX:yc,translateY:bc},Sc=/* @__PURE__ */ new Set,Cc=!1,wc=!1,Tc=!1;function Ec(){if(wc){let e=[],t=/* @__PURE__ */ new Set,n=/* @__PURE__ */ new Set;Sc.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),_c.has(r.name)&&n.add(r.element))});let r=/* @__PURE__ */ new Map;n.forEach(e=>{let t=gc(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}wc=!1,Cc=!1,Sc.forEach(e=>e.complete(Tc)),Sc.clear()}function Dc(){Sc.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(wc=!0)})}function Oc(){Tc=!0,Dc(),Ec(),Tc=!1}function kc(e,t,n){if(typeof e==`string`){if(Vi(e)||Ui(e))return parseFloat(e);if(!po.test(e)&&po.test(n))return Qs(t,n)}return e??void 0}var Ac=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Sc.add(this),Cc||(Cc=!0,Ro.read(Dc),Ro.resolveKeyframes(Ec))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=kc(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}$s(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Sc.delete(this)}cancel(){this.state===`scheduled`&&(Sc.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},jc=e=>e.startsWith(`--`);function Mc(e,t,n){jc(t)?e.style.setProperty(t,n):e.style[t]=n}var Nc={};function Pc(e,t){let n=/* @__PURE__ */ Wi(e);return()=>Nc[t]??n()}var Fc=/* @__PURE__ */ Pc(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Ic=/*@__PURE__*/ Pc(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Lc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Rc={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:/*@__PURE__*/ Lc([0,.65,.55,1]),circOut:/*@__PURE__*/ Lc([.55,0,1,.45]),backIn:/*@__PURE__*/ Lc([.31,.01,.66,-.59]),backOut:/*@__PURE__*/ Lc([.33,1.53,.69,.99])};function zc(e,t){if(e)return typeof e==`function`?Ic()?Ho(e,t):`ease-out`:/* @__PURE__ */ pa(e)?Lc(e):Array.isArray(e)?e.map(e=>zc(e,t)||Rc.easeOut):Rc[e]}function Bc(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=zc(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Vc(e){return typeof e==`function`&&`applyToOptions`in e}function Hc({type:e,...t}){return Vc(e)&&Ic()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Uc=class extends Ls{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e;let c=Hc(e);this.animation=Bc(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=ks(r,this.options,o,this.speed);this.updateMotionValue?.(e),Mc(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},Fs(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){this.isStopped||(this.isStopped=!0,this.state!==`idle`&&this.finishedTime===null&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||(this.animation.onfinish=null,this.cancel())))}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return/* @__PURE__ */ K(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+/* @__PURE__ */ K(e)}get time(){return/* @__PURE__ */ K(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=/* @__PURE__ */ G(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Fc()?(this.animation.timeline=e,t?.(this.animation),Gi):n(this)}},Wc={anticipate:ia,backInOut:ra,circInOut:sa};function Gc(e){return e in Wc}function Kc(e){typeof e.ease==`string`&&Gc(e.ease)&&(e.ease=Wc[e.ease])}var qc=class extends Uc{constructor(e){Kc(e),js(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(q.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new Bs({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?zi(0,10,a):0,s=this.sample(a);n&&r&&Mc(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Jc=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(po.test(e)||e===`0`)&&!e.startsWith(`url(`));function Yc(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Xc(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Jc(i,t),s=Jc(a,t);return!o||!s?!1:Yc(e)||(n===`spring`||Vc(n))&&r}function Zc(e){e.duration=0,e.type=`keyframes`}var Qc=/* @__PURE__ */ new Set([`opacity`,`clipPath`,`filter`,`transform`]),$c=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function el(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&$c.test(e[t]))return!0;return!1}var tl=/* @__PURE__ */ new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),nl=()=>!Bi.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,`animate`);function rl(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Qc.has(n)||tl.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return nl()&&(Qc.has(n)||tl.has(n)&&el(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var il=(e,t)=>t&&typeof e==`number`?t.transform(e):e,al={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},ol=dc.length,sl={},cl=(e,t,n=il(t,qs[e]))=>(sl[e]||(sl[e]=(al[e]||e)+`(`))+n+`)`,ll=(e,t)=>(typeof t==`number`?t:parseFloat(t))===+!!e.startsWith(`scale`);function ul(e,t,n){let r=``;for(let i=0;i<ol;i++){let a=dc[i],o=e[a];if(o===void 0)continue;let s=n&&(t[a]=il(o,Js[a]));ll(a,o)||(r+=cl(a,o,s||void 0)+` `)}let i=e.pathRotation;return i&&(r+=cl(`rotate`,i)),r=r.trim(),n?n(t,r):r||`none`}var dl=/* @__PURE__ */ new WeakMap,fl=200,pl=.001,ml=.1,hl=.001,gl=100,_l=e=>/^(linear|ease(In|Out|InOut))$/.test(e),vl=(e,t)=>e-t,yl=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(_o(e,t,i/n));return r},bl=e=>e.motionValue.owner,xl=e=>dl.get(e),Sl=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),Cl=({name:e,motionValue:t})=>e&&dc.includes(e)&&t?.owner?.current instanceof HTMLElement&&nl()&&Ic();function wl(e){let t=bl(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(Sl(t,`transform`)||`none`)===`none`&&!Sl(t,`pathRotation`)&&!t.projection?.isProjecting()}var Tl=class extends Bs{constructor(e){let t=bl(e).current,{driver:n=Vo}=e,r,i=wl(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=xl(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=xl(t);e&&!e.isFinishing&&e.release(r)}}},super(e),r=this,this.canAccelerate=i;let{stop:a}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),a()}}get group(){return xl(bl(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(q.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=/* @__PURE__ */ pa(n)?Lc(n):_l(n)&&Rc[n];if(o&&!i&&!r&&e.length===2&&t===ws&&this.holdTime===null){let e=this.startTime+a/this.speed;return[e,e+this.resolvedDuration/this.speed,o]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,times:u,keyframes:d,type:f}=a,p=(f||ws)===ws?u||xs(d):[0,1],m=n+o/r,h=[];if(this.holdTime!==null||!(i>0))return h;for(let n=Math.max(0,Math.floor((e-m)*r/i));n<=s;n++){let a=m+n*i/r;if(a>t)break;for(let o of p){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&h.push(s)}}return h}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=q.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||El(bl(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.canAccelerate&&this.tick(q.now())}get time(){return this.isAccelerated()?/* @__PURE__ */ K(zi(0,this.totalDuration,this.at(q.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function El(e){let t=e.current,n=/* @__PURE__ */ new Set,r=/* @__PURE__ */ new Map,i={},a=[],o=/* @__PURE__ */ new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p=e=>{for(let t of n)if(t.name===e)return!0},m=(t,n)=>{let o={};for(let s of t===void 0?dc:a){let a=r.get(s),c=t===void 0?Sl(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},h=(e,t)=>{let n=``;for(let r in e){let i=e[r];t&&ll(r,i)||(n+=cl(r,i)+` `)}return(t?n.trim():n)||`none`},g=(e,t)=>h(m(e,t)),_=(e=m())=>{t.style.transform=h(e,!0)},v=(e=!0)=>{e&&_(),s.forEach(({animation:e})=>e.cancel()),s=[]},y=(e,n)=>new Animation(new KeyframeEffect(t,e,n)),b=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=q.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(e.cancel(),s=s.filter(e=>e!==r)),A.schedule(!1)}),e.oncancel=()=>s.includes(r)&&A.demote(),s.push(r)},x=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},S=(e,t,n,r)=>{let i=Math.min(fl,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=yl(t,n,i).concat(r).sort(vl),o=e=>/* @__PURE__ */ qi(t,n,e),s,c;for(let t of e){let e=a.map(e=>t.numberAt(e)),[n]=e,r=e.map(e=>e-n),i=r[r.length-1],o=r.some(e=>Math.abs(e)*pl>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=pl)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=pl)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=pl))return`linear`;let l=[],u=(e,t=c(e))=>l.push(zs(t)+` `+zs(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&x(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},C=(e,t,n,r)=>{let i=[t],a=(t,n)=>e.every(e=>!(Math.abs(e.numberAt((t+n)/2)-(e.numberAt(t)+e.numberAt(n))/2)>(e.name.startsWith(`scale`)?hl:ml))),o=(t,n,r)=>{if(n-t<1||a(t,n))i.push(n);else if(r<4)o(t,(t+n)/2,r+1),o((t+n)/2,n,r+1);else{for(let r of e)i.push(...x(e=>r.numberAt(e),t,n));i.push(n)}},s=yl(t,n,Math.ceil((n-t)/100));for(let e of r)s.push(e,Math.min(e+.01,n));let c=t;for(let e of s.sort(vl))e>c&&o(c,e,0),c=e;return i.sort(vl)},w=e=>{let t;for(let n of e){let e=n.tween();if(!e||t?.some((t,n)=>n<2?Math.abs(e[n]-t)>1:e[n]!==t))return;t=e}return t},T=(e,t,n,r={fill:`both`},i,a)=>{let o=e.flatMap(e=>e.boundaries(t,n)),s=a||S(e,t,n,o),c=s?[t,n]:C(e,t,n,o),l=c.map(e=>g(e,i)),u={transform:l};return s||(u.offset=c.map(e=>/* @__PURE__ */ qi(t,n,e))),l.every(e=>e===l[0])&&(_(m(t,i)),u=null),y(u,{...r,duration:n-t,easing:s||`linear`})},E=t=>{let c=t,l=0,u=0,d=[],f=[],p=/* @__PURE__ */ new Set;r.clear(),o=/* @__PURE__ */ new Map;for(let e of n){r.set(e.name,e);let[n,i]=e.timing(),a=n===1/0;if(o.set(e,[e.at(t),e.speed,a]),a)e.sync();else{if(e.speed<0)return;if(i){if(l){let e=(n-u)/i;if(Math.abs(i-l)>1||Math.abs(e-Math.round(e))*l>1)return}else l=i,u=n;f.push(e)}else p.add(n);d.push(e),c=Math.max(c,n)}}i={},a=dc.filter(t=>{if(r.has(t))return!0;let n=i[t]=Sl(e,t);return n!==void 0&&parseFloat(n)!==+!!t.startsWith(`scale`)}),v(!1);let m=!l&&w(d);try{if(m&&m[1]>t){let[e,n,r]=m;b(T(d,e,n,void 0,void 0,r),e-t,n-e)}else c>t&&(b(T(d,t,c),0,c-t),p.forEach(e=>e<c-1&&b(y(null,{duration:e-t}),0,e-t)));if(l){let e=u+Math.floor((c-u)/l)*l;b(T(f,e,e+l,{iterations:1/0,iterationStart:(c-e)/l,fill:`forwards`},c),c-t)}}catch{return}return s.length||v(),!0},D=e=>{let t,r=0;for(let i of n){let n=o.get(i);if(!n)return!1;let[a,s,c]=n,l=i.at(e),u=i.timing()[0]===1/0;if(c){if(u&&l===a)continue;return!1}let d=(l-a)/s,f=u?0:i.speed/s;if(t===void 0)t=d,r=f;else if(Math.abs(d-t)>1||f!==r)return!1}if(t===void 0)return!0;if(!s.length)return!1;for(let{offset:e,end:n,isDone:r}of s){let i=t-e;if(n<1/0&&(r?i<n-1:i<0||i>=n))return!1}for(let{animation:n,offset:i,isDone:a}of s){if(a)continue;let o=t-i;r&&n.updatePlaybackRate&&n.playState===`running`&&Math.abs(Number(n.currentTime)-o)<20?n.playbackRate!==r&&n.updatePlaybackRate(r):r?(n.playbackRate=r,n.startTime=e-o/r):(n.startTime=null,n.currentTime=o)}return!0},O=()=>!n.size&&(u=!0,xl(t)===A&&dl.delete(t),A.isJS||v(),!0),k=()=>{let t=q.now();if(A.isJS||(A.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=Sl(e,n.name),o.has(n)||(c=!0))}),A.isFinishing=!1),l=!1,u||(n.forEach(({state:e},t)=>{(e===`idle`||e===`finished`)&&n.delete(t)}),O()))return;for(let e of n)if(!e.canAccelerate)return A.demote(!0);A.isJS&&(A.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let r=c,a=d;if(c=d=!1,r||!D(t)){if(a){if(t-f<gl)return A.demote();f=t}if(!E(t))return A.demote()}},A={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,_a.isProcessing?Ro.render(k,!1,!0):queueMicrotask(k)))},release(e){let{state:t}=e;(t===`idle`||t===`finished`)&&n.delete(e),O()||A.schedule(!0)},check(){if(!A.isJS){for(let t in i)if(Sl(e,t)!==i[t]&&!p(t))return A.schedule(!0,!0)}},demote(e){if(!(A.isJS||u))return n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),A.isJS=!0,o=/* @__PURE__ */ new Map,v(),n.forEach(e=>e.state===`running`&&e.js?.start()),!0}};return dl.set(t,A),A}var Dl=class extends Ls{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=q.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||Ac;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=q.now();let u=Xc(e,i,a,o);u||((Bi.instantAnimations||!s)&&l?.(ks(e,n,t)),e[0]=e[e.length-1],Zc(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&rl(n),p=!f&&Cl(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=Ns(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new qc(n)}catch{m=new Bs(n)}}else m=p?new Tl(n):new Bs(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),Oc()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation?.cancel(),this.keyframeResolver?.cancel()}},Ol=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return kl(this.animations,`duration`)}get iterationDuration(){return kl(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function kl(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Al=class extends Ol{then(e,t){return this.finished.finally(e).then(()=>{})}},jl=30,Ml=e=>!isNaN(parseFloat(e)),Nl={current:void 0},Pl=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=q.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.dirty(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=q.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ml(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new Ji)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Ji,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){Ro.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect?.()}dirty(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){(this.dependents||=/* @__PURE__ */ new Set).add(e)}removeDependent(e){this.dependents?.delete(e)}get(){Nl.current?.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=q.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>jl)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,jl);return/* @__PURE__ */ Yi(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&(this.animation=void 0),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel?.notify()),this.animation=void 0}isAnimating(){return!!this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect?.()}};function Fl(e,t){return new Pl(e,t)}function Il(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Ll(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Il(n,e)}var Rl={type:`spring`,stiffness:500,damping:25,restSpeed:10},zl=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Bl={type:`keyframes`,duration:.8},Vl={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Hl=(e,{keyframes:t})=>t.length>2?Bl:fc.has(e)?e.startsWith(`scale`)?zl(t[1]):Rl:Vl,Ul=/* @__PURE__ */ new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`,`out`]);function Wl(e){for(let t in e)if(!Ul.has(t))return!0;return!1}var Gl=(e,t,n,r={},i,a)=>o=>{let s=Ll(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=/* @__PURE__ */ G(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!s.onUpdate};Wl(s)||Object.assign(u,Hl(e,u)),u.duration&&=/* @__PURE__ */ G(u.duration),u.repeatDelay&&=/* @__PURE__ */ G(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Zc(u),u.delay===0&&(d=!0)),(Bi.instantAnimations||Bi.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Zc(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=ks(u.keyframes,s);if(e!==void 0){Ro.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Bs(u):new Dl(u)},Kl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ql(e){let t=Kl.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Jl(e,t,n=1){let[r,i]=ql(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Vi(e)?parseFloat(e):e}return wa(i)?Jl(i,t,n+1):i}var Yl=/* @__PURE__ */ new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...dc]),Xl=e=>!!(e&&e.getVelocity),Zl={test:e=>e===`auto`,parse:e=>e},Ql=e=>t=>t.test(e),$l=[Da,J,Ua,Ha,Ga,Wa,Zl],eu=e=>$l.find(Ql(e));function tu(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Ui(e)}var nu=/* @__PURE__ */ new Set([`auto`,`none`,`0`]);function ru(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!nu.has(t)&&io(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Qs(n,i))}var iu=class extends Ac{constructor(){super(...arguments),this.isAsync=!0}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(Ea(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t?.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),wa(r))){let i=Jl(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Yl.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=eu(r),o=eu(i);if(Ea(r)!==Ea(i)&&xc[n])this.needsMeasurement=!0;else if(a!==o){if(pc(a)&&pc(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else xc[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||tu(e[t]))&&n.push(t);n.length&&ru(e,n,t)}measure(){let{element:e,name:t}=this;return xc[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e?.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e?.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.resolveNoneKeyframes()}},au=[];function ou(e){su(e),au.unshift(e)}function su(e){Ri(au,e)}function cu(e){return au.find(t=>t.test(e))}function lu(e,t,n={},r){let i=[],{velocity:a,path:o}=n,s=n.reduceMotion??r?.shouldReduceMotion;o?.animateValues&&r&&(t={...t},o.animateValues(e,t,n,0,i));for(let o in t){if(o===`transition`||o===`transitionEnd`)continue;let c=t[o];if(c===void 0)continue;let l=e(o),u=l.get();u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a?Ro.update(()=>l.set(c)):(l.start(Gl(o,l,c,s&&Yl.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>Ro.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function uu(e,t,n,r,i){return lu(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=du(i)??e.read(t,r,i)}a=Fl(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function du(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function fu(e){return Hi(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function pu(e){return Hi(e)&&`ownerSVGElement`in e}var mu={};function hu(e){return mu.current?.add(e),e}var gu=e=>mu.current?mu.current.bind(e):e;function _u(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:mu.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var vu=class{constructor(e=Ro.render){this.step=e,this.values=/* @__PURE__ */ new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=/* @__PURE__ */ new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function yu(e,{step:t,...n}={}){let r=/* @__PURE__ */ new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new vu(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}function bu(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].getCurrent();a!==void 0&&(ll(i,a)||(t+=(t&&` `)+cl(i,a)))}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+cl(`rotate`,i)),t||`none`}var xu=/* @__PURE__ */ new Set([`originX`,`originY`,`originZ`]),Su=(e,t)=>il(e.get(t)?.get(),Js[t]),Cu=(e,t,n,r)=>{let i,a;if(fc.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>dc.indexOf(e)-dc.indexOf(t)))}t.get(`transform`)||(!fu(e)&&!t.get(`transformBox`)&&Cu(e,t,`transformBox`,new Pl(`fill-box`)),t.set(`transform`,new Pl(`none`),()=>{dl.get(e)?.check(),e.style.transform=bu(t)})),a=t.get(`transform`)}else xu.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new Pl(``),()=>{let n=Su(t,`originX`)??`50%`,r=Su(t,`originY`)??`50%`,i=Su(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=jc(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=il(r.getCurrent(),Js[n])};return t.set(n,r,i,a)},wu=e=>fu(e)||pu(e),Tu=(e,t)=>{if(fc.has(t))return uc(e,t);let n=getComputedStyle(e),r=jc(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},Eu=/*@__PURE__*/ yu(Cu,{test:wu,read:Tu});function Du(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function Ou(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(fc.has(e))o=!0;else if(Sa(e))i[e]=n;else{let t=il(n,Js[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=ul(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var ku={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Au={offset:`strokeDashoffset`,array:`strokeDasharray`};function ju(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?ku:Au;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Mu=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Nu(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Ou(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of Mu)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&ju(d,i,a,o,!1)}function Pu(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var Fu=(e,t,n,r,i=n)=>{let a=Pu(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=Du(i));let o=Js[n]||Js[i],s=a?()=>{e[i]=il(r.get(),Js[n])}:()=>{let t=il(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)};function Iu(e,t,n,r){return Ro.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new Pl(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var Lu=/*@__PURE__*/ yu((e,t,n,r)=>n.startsWith(`path`)&&!fc.has(n)?Iu(e,t,n,r):n.startsWith(`attr`)?Fu(e,t,n,r,Ru(n)):(fc.has(n)||xu.has(n)||jc(n)||n in e.style?Cu:Fu)(e,t,n,r),{test:pu,read:(e,t)=>fc.has(t)?Js[t]?.default||0:jc(t)||Mu.includes(t)?Tu(e,t)||e.getAttribute(Du(t))||0:(t=Ru(t),e.getAttribute(Du(t))??e.getAttribute(t)??void 0)});function Ru(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function zu({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Bu({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Vu(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Hu(e){return e===void 0||e===1}function Uu({scale:e,scaleX:t,scaleY:n}){return!Hu(e)||!Hu(t)||!Hu(n)}var Wu=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`];function Gu(e){return Uu(e)||qu(e)||Ku(e)}function Ku(e){return e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function qu(e){return Ju(e.x)||Ju(e.y)}function Ju(e){return e&&e!==`0%`}function Yu(e,t,n){return n+t*(e-n)}function Xu(e,t,n,r,i){return i!==void 0&&(e=Yu(e,i,r)),Yu(e,n,r)+t}function Zu(e,t=0,n=1,r,i){e.min=Xu(e.min,t,n,r,i),e.max=Xu(e.max,t,n,r,i)}function Qu(e,{x:t,y:n}){Zu(e.x,t.translate,t.scale,t.originPoint),Zu(e.y,n.translate,n.scale,n.originPoint)}var $u=.999999999999,ed=1.0000000000001;function td(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++)a=n[s],o=a.projectionDelta,a.options.visualElement?.props.style?.display!==`contents`&&(r===!0&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(nd(e.x,-a.scroll.offset.x),nd(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Qu(e,o)),r&&(r.path?.[s]||r)!==a&&Gu(a.latestValues)&&ad(e,a.latestValues,a.layout?.layoutBox));t.x<ed&&t.x>$u&&(t.x=1),t.y<ed&&t.y>$u&&(t.y=1)}function nd(e,t){e.min+=t,e.max+=t}function rd(e,t,n,r,i=.5){Zu(e,t,n,_o(e.min,e.max,i),r)}function id(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function ad(e,t,n){let r=n??e;rd(e.x,id(t.x,r.x),t.scaleX,t.scale,t.originX),rd(e.y,id(t.y,r.y),t.scaleY,t.scale,t.originY)}function od(e,t){return zu(Vu(e.getBoundingClientRect(),t))}function sd(e,t,n){let r=od(e,n),{scroll:i}=t;return i&&(nd(r.x,i.offset.x),nd(r.y,i.offset.y)),r}var cd={},ld=e=>pu(e)?Lu:Eu,ud=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=iu}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return od(this.current)}getProps(){return cd}};function dd(e,t,n,r){if(mu.current?.track(e),r)return lu(e=>r.getValue(e,null),t,n,r);let i=ld(e);return uu(i,e,t,n,new ud(i,e))}var fd=/*@__PURE__*/ yu((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>Hi(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}});function pd(e,t,n){let r=Xl(e)?e:Fl(e);return r.start(Gl(``,r,t,n)),r.animation}var md=/* @__PURE__ */ new WeakMap,hd={current:null},gd={current:!1},_d=typeof window<`u`;function vd(){if(gd.current=!0,_d){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>hd.current=e.matches;e.addEventListener(`change`,t),t()}else hd.current=!1}}function yd(){!gd.current&&vd();let[e]=(0,s.useState)(hd.current);return e}function bd(e){return typeof e==`object`&&!Array.isArray(e)}function xd(e,t,n,r){return e==null?[]:typeof e==`string`&&bd(t)?_u(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Sd(e,t,n){return e*(t+1)+n*t}function Cd(e,t){if(t.has(e))return t.get(e);let[,n,r]=e.match(/^(.+?)([+-][\d.]+)$/)||[];return t.has(n)?Math.max(0,t.get(n)+parseFloat(r)):void 0}function wd(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):Cd(t,r)??e}function Td(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(Ri(e,i),r--)}}function Ed(e,t,n,r,i,a){Td(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:_o(i,a,r[o]),easing:/* @__PURE__ */ fa(n,o)})}function Dd(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Od(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var kd=`easeInOut`,Ad=20;function jd(e,{defaultTransition:t={},...n}={},r,i,a){let o=t.duration||.3,s=/* @__PURE__ */ new Map,c=/* @__PURE__ */ new Map,l={},u=/* @__PURE__ */ new Map,d=0,f=0,p=0,m=(e,n)=>{let a=n,s=e=>typeof e==`number`?n+e:wd(f,e,d,u);for(let n=0;n<e.length;n++){let h=e[n];if(typeof h==`string`){u.set(h,f);continue}if(!Array.isArray(h)){let e=h.at===void 0?f:s(h.at);`sequence`in h?(d=f=e,f=m(h.sequence,e),d=e,a=Math.max(a,f)):u.set(h.name,e);continue}let[g,_,v={}]=h;v.at!==void 0&&(f=s(v.at));let y=0,b=(e,n,r,a=0,s=0)=>{let c=Pd(e),{delay:l=0,times:u=xs(c),type:d=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:g=0,..._}=n,{ease:v=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(a,s):l,S=c.length,C=Vc(d)?d:i?.[d||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Ld(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,..._};b!==void 0&&(n.duration=/* @__PURE__ */ G(b));let r=Go(n,e,C);v=r.ease,b=r.duration}b??=o;let w=f+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&bs(u,T),c.length===1&&c.unshift(null),m&&m<Ad){let e=b>0?g/b:0;b=Sd(b,m,g);let t=[...c],n=[...u];v=Array.isArray(v)?[...v]:[v];let r=[...v],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?/* @__PURE__ */ ea(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),v.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),v.push(e===0?`linear`:/* @__PURE__ */ fa(f,e-1))}Dd(u,m,e)}let E=w+b;Ed(r,c,v,u,w,E),y=Math.max(x+b,y),p=Math.max(E,p)};if(Xl(g)){let e=Md(g,c);b(_,v,Nd(`default`,e))}else{let e=xd(g,_,r,l),t=e.length;for(let n=0;n<t;n++){_=_,v=v;let r=e[n],i=Md(r,c);for(let e in _)b(_[e],Fd(v,e),Nd(e,i),n,t)}}d=f,f+=y,a=Math.max(a,f)}return a};return m(e,0),a&&(a.duration=p,a.labels=u),c.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Od);let o=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];o.push(n),c.push(/* @__PURE__ */ qi(0,p,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),o.unshift(o[0]),l.unshift(kd)),c[c.length-1]!==1&&(c.push(1),o.push(null)),s.has(r)||s.set(r,{keyframes:{},transition:{}});let u=s.get(r);u.keyframes[i]=o;let{type:d,...f}=t;u.transition[i]={...f,duration:p,ease:l,times:c,...n}}}),s}function Md(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Nd(e,t){return t[e]||(t[e]=[]),t[e]}function Pd(e){return Array.isArray(e)?e:[e]}function Fd(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Id=e=>typeof e==`number`,Ld=e=>e.every(Id);function Rd(e,t){return Xl(e)||typeof e==`number`||typeof e==`string`&&!bd(t)}function zd(e,t,n,r){let i=[];if(Rd(e,t))i.push(pd(e,bd(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=xd(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...dd(r,t,s,md.get(r))):i.push(...uu(cu(r)??fd,r,t,s))}}return i}function Bd(e,t,n,r){let i=[];return jd(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=Fl(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:gs},r).forEach(({keyframes:e,transition:t},n)=>{i.push(...zd(n,e,t))}),i}var Vd=0;function Hd(e,t){let n=[...e],r=typeof n[0]==`function`?Math.max(1,n.length-1):2;return n[r]={...n[r],at:t},n}var Ud=(e,t)=>t===void 0?e:{name:e,at:t};function Wd(e){e.pause(),e.time=0,e.stop()}var Gd=class e{constructor(e=[],t={},n){this.options=t,this.entries=[],this.repeatIndex=0,this.prevTime=0,this.markers=[],this.labels=/* @__PURE__ */ new Map,this.totalDuration=0,this.isDirty=!1,this.isDone=!1,this.isRebuilding=!1,this.playbackSpeed=1,this.isWrapped=!1,this.stop=()=>{this.flush(),this.group?.stop()},this.isPaused=t.autoplay===!1,this.newFinished(),e.forEach(e=>this.add(e)),n?(this.isDirty=!1,this.isWrapped=!0,this.group=new Al(n),this.watch()):(this.invalidate(),this.flush());let{scope:r}=t;r&&(r.animations.push(this),this.finished.then(()=>Ri(r.animations,this)))}add(t,n){return t instanceof e&&t.adopt(this),this.push({item:t,at:n})}call(e,t){return this.push({item:e,at:t,marker:{name:`_m`+Vd++,time:0,callback:e}})}addPause(e,t){return this.push({item:t||{},at:e,marker:{name:`_m`+Vd++,time:0,callback:t,pause:!0}})}move(e,t){return this.entries.forEach(n=>{n.item===e&&(n.at=t)}),this.invalidate()}remove(t){return t instanceof e&&(t.parent=void 0),this.entries=this.entries.filter(e=>e.item!==t),this.invalidate()}clear(){return this.entries=[],this.invalidate()}getLabelTime(e){return this.flush(),this.labels.get(e)}seek(e){return this.time=this.resolve(e),this}playTo(e){let t=this.resolve(e),n=Math.abs(this.speed);return this.speed=t<this.time?-n:n,this.stopAt=t,this.clock||this.invalidate(),this.play(),this}reverse(){return this.speed=-this.speed,this.play(),this}get progress(){return this.duration?this.time/this.duration:0}set progress(e){this.time=e*this.duration}get time(){return this.active()?.time??0}set time(e){this.flush(),this.prevTime=e,this.group&&(this.group.time=e),this.repeatIndex=this.currentRepeat()}get speed(){return this.playbackSpeed}set speed(e){this.playbackSpeed=e,this.group&&(this.group.speed=e)}get duration(){return this.flush(),this.isWrapped?this.group.duration:this.totalDuration}get iterationDuration(){return this.flush(),this.isWrapped?this.group.iterationDuration:this.totalDuration}get state(){return this.active()?.state??`idle`}get startTime(){return this.active()?.startTime??null}play(){this.flush(),this.isPaused=!1,this.group?.play(),this.isDone&&(this.newFinished(),this.watch())}pause(){this.flush(),this.isPaused=!0,this.group?.pause()}cancel(){this.flush(),this.group?.cancel()}complete(){this.flush(),this.group?.complete()}attachTimeline(e){return this.flush(),this.scrollTimeline=e,this.detachScroll=this.group?.attachTimeline(e),()=>{this.scrollTimeline=void 0,this.detachScroll?.()}}then(e,t){return this.finished.then(e,t)}active(){return this.flush(),this.group?.animations.length?this.group:void 0}push(e){return this.entries.push(e),this.invalidate()}invalidate(){return this.parent?this.parent.invalidate():this.isDirty||(this.isDirty=!0,queueMicrotask(()=>this.flush())),this}flush(){this.isDirty&&!this.parent&&this.build()}adopt(e){this.group&&=(Wd(this.group),void 0),this.isDirty=!1,this.parent=e}build(){this.isDirty=!1,this.isWrapped=!1;let e=this.group,t=0;e&&(this.isRebuilding=!0,this.scrollTimeline?(this.detachScroll?.(),e.cancel()):(t=e.animations.length?e.time:0,Wd(e)),this.isRebuilding=!1);let{defaultTransition:n,onComplete:r,onUpdate:i,onRepeat:a,onReverseComplete:o,autoplay:s,scope:c,...l}=this.options,u={};c?.reduceMotion!==void 0&&(u.reduceMotion=c.reduceMotion),c?.skipAnimations!==void 0&&(u.skipAnimations=c.skipAnimations),Object.assign(u,l);let d=/* @__PURE__ */ new Map,f={},p=Bd(this.toSequence(d),{defaultTransition:n,...u},c,f),m=f.labels,h=u.duration??f.duration,g=f.duration?h/f.duration:1;if(m.forEach((e,t)=>m.set(t,e*g)),this.markers=[],d.forEach((e,t)=>{e.time=m.get(t),m.delete(t),h=Math.max(h,e.time),this.markers.push(e)}),this.markers.sort((e,t)=>e.time-t.time),this.labels=m,this.totalDuration=h,this.clock=this.clockAnimation=void 0,this.markers.length||this.stopAt!==void 0||i||a){let e=this.clock=Fl(0);e.on(`change`,t=>e===this.clock&&this.onClock(t)),p.unshift(this.clockAnimation=pd(e,[0,h],{...u,duration:h,ease:`linear`}))}let _=this.group=new Al(p);t=Math.min(t,h),this.isDone&&t<h&&this.newFinished(),this.scrollTimeline?this.detachScroll=_.attachTimeline(this.scrollTimeline):(_.speed=this.playbackSpeed,this.isPaused&&_.pause(),t&&(_.time=t)),this.repeatIndex=this.currentRepeat(),this.prevTime=t||-1,this.watch()}toSequence(t){return this.entries.map(({item:n,at:r,marker:i})=>i?(t.set(i.name,i),Ud(i.name,r)):n instanceof e?{sequence:n.toSequence(t),at:r}:typeof n==`string`?Ud(n,r):r===void 0?n:Array.isArray(n)?Hd(n,r):{...n,at:r})}resolve(e){return this.flush(),typeof e==`number`?e:Cd(e,this.labels)??this.time}currentRepeat(){let{repeat:e=0,repeatDelay:t=0,delay:n=0}=this.options,r=this.totalDuration+t,i=(this.clockAnimation?.time??0)-n;return r&&i>0?Math.min(e,Math.floor(i/r)):0}onClock(e){let t=this.prevTime;if(this.prevTime=e,this.isRebuilding)return;let{onUpdate:n,onRepeat:r,repeatType:i=`loop`}=this.options;n?.(e);let a=this.currentRepeat();if(a!==this.repeatIndex&&(this.repeatIndex=a,r?.(),i===`loop`)){let e=this.speed>0;if(this.cross(t,e?this.totalDuration:0))return;t=e?-1:1/0}this.cross(t,e)}cross(e,t){if(e===t)return;let n=t>e,r=r=>n?r>e&&r<=t:r<e&&r>=t,i=n?this.markers:[...this.markers].reverse();for(let e of i)if(r(e.time)&&(e.callback?.(n?1:-1),e.pause))return this.pauseAt(e.time);if(this.stopAt!==void 0&&r(this.stopAt))return this.pauseAt(this.stopAt),this.stopAt=void 0,!0}pauseAt(e){return this.pause(),this.time=e,!0}watch(){let e=this.group;e.finished.then(()=>{if(e!==this.group||this.isDone)return;this.isDone=!0;let{onComplete:t,onReverseComplete:n}=this.options;(this.speed<0&&n||t)?.(),this.resolveFinished()})}newFinished(){this.isDone=!1,this.finished=new Promise(e=>{this.resolveFinished=e})}};function Kd(e){return Array.isArray(e)&&e.some(Array.isArray)}function qd(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=mu.current,s=o?.transition,c={};n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r);let l;if(Kd(e)){let n={...c,...i,scope:t};s&&(n.defaultTransition={...s,...n.defaultTransition}),l=new Gd(e,n)}else{let{onComplete:n,...r}=a||{},o={...c,...s,...r},{onUpdate:u}=r;l=new Gd([typeof e==`number`||typeof e==`string`&&(typeof i==`string`||Array.isArray(i))?[u||(()=>{}),Array.isArray(i)?i:[e,i],{...o,onUpdate:void 0}]:[e,i,o]],{...c,onComplete:n,scope:t},zd(e,i,o,t))}return o&&l.finished.then(o.add(()=>l.stop())),l}return i}var Jd=/* @__PURE__ */ Object.assign(/* @__PURE__ */ qd(),{addEffect:ou,removeEffect:su}),Yd=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Xd(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Yd(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Zd=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},Qd=e=>{let t=Zd(e);return t.charAt(0).toUpperCase()+t.slice(1)},$d=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ef={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function tf(e){return e!=null}function nf(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??ef.width,a=e.size??e.height??ef.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?$d(...c):$d(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??ef[`stroke-width`])*Number(e.size??e.width??ef.width)/Number(t.size??t.width??ef.width):t.strokeWidth??ef[`stroke-width`];return[`svg`,{...Object.entries(ef).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&tf(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&tf(t.width)&&{[r(`width`)]:t.width},...`height`in t&&tf(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function rf(e,t={}){return nf(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var af=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},of=(0,s.createContext)({}),sf=()=>(0,s.useContext)(of),cf=(0,s.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:c=``,children:l,iconNode:u=[],icon:d={node:u,aliases:[],size:24},...f},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=sf()??{},b=!!l||af(f),[x,S,C=[]]=rf(d,{color:e??v,width:n??t??m,height:r??t??m,strokeWidth:i??h,absoluteStrokeWidth:a??g,nonScalingStroke:o??_,className:$d(y,c),hasA11yProp:b,attributes:f});return(0,s.createElement)(x,{ref:p,...S},[...C.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(l)?l:[l]])});function lf(e,t=[],n=[]){let r=typeof e==`string`?Xd(e,t,n):e,i=(0,s.forwardRef)(({className:e,...t},n)=>(0,s.createElement)(cf,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Qd(r.name)),i}function uf(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=uf(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function df(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=uf(e))&&(r&&(r+=` `),r+=t);return r}var ff=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},pf=(e,t)=>({classGroupId:e,validator:t}),mf=(e=/* @__PURE__ */ new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),hf=`-`,gf=[],_f=`arbitrary..`,vf=e=>{let t=xf(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return bf(e);let n=e.split(hf);return yf(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?ff(i,t):t:i||gf}return n[e]||gf}}},yf=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=yf(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(hf):e.slice(t).join(hf),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},bf=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?_f+r:void 0})(),xf=e=>{let{theme:t,classGroups:n}=e;return Sf(n,t)},Sf=(e,t)=>{let n=mf();for(let r in e){let i=e[r];Cf(i,n,r,t)}return n},Cf=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];wf(i,t,n,r)}},wf=(e,t,n,r)=>{typeof e==`string`?Tf(e,t,n):typeof e==`function`?Ef(e,t,n,r):Df(e,t,n,r)},Tf=(e,t,n)=>{let r=e===``?t:Of(t,e);r.classGroupId=n},Ef=(e,t,n,r)=>{kf(e)?Cf(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(pf(n,e)))},Df=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Cf(o,Of(t,a),n,r)}},Of=(e,t)=>{let n=e,r=t.split(hf),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=mf(),n.nextPart.set(t,i)),n=i}return n},kf=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Af=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},jf=`!`,Mf=`:`,Nf=[],Pf=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Ff=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Mf){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(jf)?(c=s.slice(0,-1),l=!0):s.startsWith(jf)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Pf(t,l,c,u)};if(t){let e=t+Mf,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Pf(Nf,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},If=e=>{let t=/* @__PURE__ */ new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Lf=e=>({cache:Af(e.cacheSize),parseClassName:Ff(e),sortModifiers:If(e),postfixLookupClassGroupIds:Rf(e),...vf(e)}),Rf=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},zf=/\s+/,Bf=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(zf),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+jf:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Vf=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Hf(n))&&(i&&(i+=` `),i+=r);return i},Hf=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Hf(e[r]))&&(n&&(n+=` `),n+=t);return n},Uf=(e,...t)=>{let n,r,i,a,o=o=>(n=Lf(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Bf(e,n);return i(e,a),a};return a=o,(...e)=>a(Vf(...e))},Wf=[],X=e=>{let t=t=>t[e]||Wf;return t.isThemeGetter=!0,t.themeKey=e,t},Gf=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Kf=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qf=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Jf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yf=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Xf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,Zf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$f=e=>qf.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),ep=e=>!!e&&Number.isInteger(Number(e)),tp=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),np=e=>Jf.test(e),rp=()=>!0,ip=e=>Yf.test(e)&&!Xf.test(e),ap=()=>!1,op=e=>Zf.test(e),sp=e=>Qf.test(e),cp=e=>!Q(e)&&!$(e),lp=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),up=e=>Tp(e,kp,ap),Q=e=>Gf.test(e),dp=e=>Tp(e,Ap,ip),fp=e=>Tp(e,jp,Z),pp=e=>Tp(e,Np,rp),mp=e=>Tp(e,Mp,ap),hp=e=>Tp(e,Dp,ap),gp=e=>Tp(e,Op,sp),_p=e=>Tp(e,Pp,op),$=e=>Kf.test(e),vp=e=>Ep(e,Ap),yp=e=>Ep(e,Mp),bp=e=>Ep(e,Dp),xp=e=>Ep(e,kp),Sp=e=>Ep(e,Op),Cp=e=>Ep(e,Pp,!0),wp=e=>Ep(e,Np,!0),Tp=(e,t,n)=>{let r=Gf.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ep=(e,t,n=!1)=>{let r=Kf.exec(e);return r?r[1]?t(r[1]):n:!1},Dp=e=>e===`position`||e===`percentage`,Op=e=>e===`image`||e===`url`,kp=e=>e===`length`||e===`size`||e===`bg-size`,Ap=e=>e===`length`,jp=e=>e===`number`,Mp=e=>e===`family-name`,Np=e=>e===`number`||e===`weight`,Pp=e=>e===`shadow`,Fp=/*#__PURE__*/ Uf(()=>{let e=X(`color`),t=X(`font`),n=X(`text`),r=X(`font-weight`),i=X(`tracking`),a=X(`leading`),o=X(`breakpoint`),s=X(`container`),c=X(`spacing`),l=X(`radius`),u=X(`shadow`),d=X(`inset-shadow`),f=X(`text-shadow`),p=X(`drop-shadow`),m=X(`blur`),h=X(`perspective`),g=X(`aspect`),_=X(`ease`),v=X(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],T=()=>[$f,`full`,`auto`,...w()],E=()=>[ep,`none`,`subgrid`,$,Q],D=()=>[`auto`,{span:[`full`,ep,$,Q]},ep,$,Q],O=()=>[ep,`auto`,$,Q],k=()=>[`auto`,`min`,`max`,`fr`,$,Q],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[$f,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[s,$f,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ee=()=>[$f,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,$,Q],te=()=>[...b(),bp,hp,{position:[$,Q]}],ne=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,xp,up,{size:[$,Q]}],ie=()=>[tp,vp,dp],I=()=>[``,`none`,`full`,l,$,Q],L=()=>[``,Z,vp,dp],ae=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],R=()=>[Z,tp,bp,hp],se=()=>[``,`none`,m,$,Q],z=()=>[`none`,Z,$,Q],ce=()=>[`none`,Z,$,Q],B=()=>[Z,$,Q],le=()=>[$f,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[np],breakpoint:[np],color:[rp],container:[np],"drop-shadow":[np],ease:[`in`,`out`,`in-out`],font:[cp],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[np],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[np],shadow:[np],spacing:[`px`,Z],text:[np],"text-shadow":[np],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,$f,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[lp],columns:[{columns:[Z,`auto`,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ep,`auto`,$,Q]}],basis:[{basis:[$f,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,$f,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[ep,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...ee()]}],"min-block-size":[{"min-block":[`auto`,...ee()]}],"max-block-size":[{"max-block":[`none`,...ee()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...N()]}],"font-size":[{text:[`base`,n,vp,dp]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,wp,pp]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,tp,Q]}],"font-family":[{font:[yp,mp,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,fp]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ae(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,dp]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[ep,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ep,$,Q],radial:[``,$,Q],conic:[``,ep,$,Q]},Sp,gp]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":L()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ae(),`hidden`,`none`]}],"divide-style":[{divide:[...ae(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ae(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,vp,dp]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`inner`,`none`,u,Cp,_p]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,Cp,_p]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:L()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Z,dp]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,Cp,_p]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:se()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Cp,_p]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:z()}],"rotate-x":[{"rotate-x":z()}],"rotate-y":[{"rotate-y":z()}],"rotate-z":[{"rotate-z":z()}],scale:[{scale:ce()}],"scale-x":[{"scale-x":ce()}],"scale-y":[{"scale-y":ce()}],"scale-z":[{"scale-z":ce()}],"scale-3d":[`scale-3d`],skew:[{skew:B()}],"skew-x":[{"skew-x":B()}],"skew-y":[{"skew-y":B()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":[`translate-none`],zoom:[{zoom:[ep,$,Q]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[Z,vp,dp,fp]}],stroke:[{stroke:[`none`,...F()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}}),Ip=(...e)=>Fp(df(e));function Lp({label:e,side:t=`bottom`,children:n}){let{portal:i}=r();return/* @__PURE__ */ (0,m.jsxs)(vi,{children:[/* @__PURE__ */ (0,m.jsx)(bi,{asChild:!0,children:n}),/* @__PURE__ */ (0,m.jsx)(wi,{container:i,children:/* @__PURE__ */ (0,m.jsx)(Ei,{side:t,sideOffset:6,className:`pop z-50 rounded-control bg-ink px-2 py-1 text-label text-ink-contrast shadow-popover`,children:e})})]})}var Rp={type:`spring`,bounce:0,duration:.35},zp=e=>({height:e?{duration:0}:Rp,opacity:{duration:e?.15:.2}});function Bp({className:e,children:t,...n}){return/* @__PURE__ */ (0,m.jsx)(`div`,{className:Ip(`material flex items-center gap-0.5 rounded-card p-1`,e),...n,children:t})}function Vp({label:e,pressed:t,disabled:n,onClick:r,className:i,children:a,...o}){return/* @__PURE__ */ (0,m.jsx)(Lp,{label:e,children:/* @__PURE__ */ (0,m.jsx)(`button`,{type:`button`,"aria-label":e,"aria-pressed":t,disabled:n,onClick:r,...o,className:Ip(`press grid size-8 place-items-center rounded-control text-ink hover:bg-raise aria-pressed:bg-ink aria-pressed:text-ink-contrast`,i),children:a})})}export{uc as $,f as $t,Mu as A,Zr as At,Yl as B,Ze as Bt,qu as C,Vi as Ct,zu as D,Ri as Dt,Gu as E,Li as Et,gu as F,ct as Ft,Fl as G,B as Gt,Gl as H,ze as Ht,pu as I,ut as It,Uc as J,ne as Jt,dl as K,R as Kt,fu as L,ft as Lt,Du as M,Kr as Mt,_u as N,Ot as Nt,Bu as O,mi as Ot,hu as P,Tt as Pt,cc as Q,d as Qt,iu as R,dt as Rt,Wu as S,Ui as St,Uu as T,zi as Tt,Ll as U,ke as Ut,Jl as V,Ue as Vt,Il as W,xe as Wt,dc as X,ee as Xt,Ac as Y,P as Yt,fc as Z,_ as Zt,Qu as _,G as _t,Lp as a,Bo as at,ad as b,Ki as bt,Jd as c,po as ct,gd as d,Sa as dt,o as en,Qs as et,hd as f,wa as ft,od as g,K as gt,sd as h,oa as ht,zp as i,Ro as it,Ou as j,ti as jt,Nu as k,Yr as kt,yd as l,Ua as lt,pd as m,_a as mt,Bp as n,Is as nt,Ip as o,Lo as ot,md as p,q as pt,Qc as q,ae as qt,Rp as r,zo as rt,lf as s,_o as st,Vp as t,Xs as tt,vd as u,J as ut,td as v,Ji as vt,Ku as w,Bi as wt,nd as x,Gi as xt,Yu as y,qi as yt,Xl as z,Xe as zt};
@@ -0,0 +1 @@
1
+ import{s as e}from"./tool-button-BSd3e5SL.js";var t={name:`box`,size:24,node:[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]};t.node;var n=e(t),r={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};r.node;var i=e(r),a={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};a.node;var o=e(a);export{i as n,n as r,o as t};