@snowbomb1/nova-ui 1.0.21 → 1.0.22
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.
- package/dist/index.d.ts +17 -1
- package/dist/index.js +12 -12
- package/dist/nova-ui.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export declare interface BoxProps {
|
|
|
61
61
|
position?: BoxPosition;
|
|
62
62
|
direction?: FlexDirection;
|
|
63
63
|
reverse?: boolean;
|
|
64
|
+
style?: React.CSSProperties;
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
export declare const Button: ({ children, onClick, variant, disabled, disabledMessage, tooltipPosition, ...props }: ButtonProps) => JSX.Element;
|
|
@@ -97,6 +98,7 @@ export declare interface ContainerProps {
|
|
|
97
98
|
variant?: ContainerVariant;
|
|
98
99
|
padding?: ContainerPadding;
|
|
99
100
|
fullWidth?: boolean;
|
|
101
|
+
style?: React.CSSProperties;
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
export declare type ContainerVariant = 'default' | 'outlined' | 'elevated' | 'flat';
|
|
@@ -151,7 +153,7 @@ export declare interface HeaderProps {
|
|
|
151
153
|
variant?: HeaderVariant;
|
|
152
154
|
}
|
|
153
155
|
|
|
154
|
-
export declare type HeaderVariant = 'h1' | 'h2' | 'h3' | 'h4';
|
|
156
|
+
export declare type HeaderVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
155
157
|
|
|
156
158
|
export declare const Input: ({ value, onChange, disabled, suggestions, placeholder, hideClear, label, error, required, fullWidth, helperText, ...props }: InputProps) => JSX.Element;
|
|
157
159
|
|
|
@@ -248,6 +250,20 @@ export declare interface StepperProps extends Pick<FormFieldProps, 'label' | 'he
|
|
|
248
250
|
disabled?: boolean;
|
|
249
251
|
}
|
|
250
252
|
|
|
253
|
+
export declare const TextArea: ({ value, onChange, placeHolder, label, helperText, required, fullWidth, error, disabled }: TextAreaProps) => JSX.Element;
|
|
254
|
+
|
|
255
|
+
export declare interface TextAreaProps {
|
|
256
|
+
label: string;
|
|
257
|
+
helperText?: string;
|
|
258
|
+
fullWidth?: boolean;
|
|
259
|
+
required?: boolean;
|
|
260
|
+
error?: string;
|
|
261
|
+
disabled?: boolean;
|
|
262
|
+
value: string;
|
|
263
|
+
placeHolder?: string;
|
|
264
|
+
onChange: (value: string) => void;
|
|
265
|
+
}
|
|
266
|
+
|
|
251
267
|
declare type Theme = 'light' | 'dark';
|
|
252
268
|
|
|
253
269
|
export declare const Toast: ({ visible, onDismiss, timeout, position, status, children, dismissible }: ToastProps) => JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(L,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],g):(L=typeof globalThis<"u"?globalThis:L||self,g(L.NovaUI={},L.React,L.ReactDOM))})(this,(function(L,g,
|
|
1
|
+
(function(L,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],g):(L=typeof globalThis<"u"?globalThis:L||self,g(L.NovaUI={},L.React,L.ReactDOM))})(this,(function(L,g,Rr){"use strict";var Dr;function Ir(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=Ir(g);var yt={exports:{}},Ze={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var ms;function Nr(){if(ms)return Ze;ms=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(s,i,r){var o=null;if(r!==void 0&&(o=""+r),i.key!==void 0&&(o=""+i.key),"key"in i){r={};for(var a in i)a!=="key"&&(r[a]=i[a])}else r=i;return i=r.ref,{$$typeof:e,type:s,key:o,ref:i!==void 0?i:null,props:r}}return Ze.Fragment=t,Ze.jsx=n,Ze.jsxs=n,Ze}var Je={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,22 +14,22 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var ps;function $r(){return ps||(ps=1,process.env.NODE_ENV!=="production"&&(function(){function e(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===ee?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case v:return"Fragment";case b:return"Profiler";case x:return"StrictMode";case M:return"Suspense";case D:return"SuspenseList";case F:return"Activity"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case y:return"Portal";case C:return _.displayName||"Context";case w:return(_._context.displayName||"Context")+".Consumer";case T:var V=_.render;return _=_.displayName,_||(_=V.displayName||V.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case P:return V=_.displayName||null,V!==null?V:e(_.type)||"Memo";case k:V=_._payload,_=_._init;try{return e(_(V))}catch{}}return null}function t(_){return""+_}function n(_){try{t(_);var V=!1}catch{V=!0}if(V){V=console;var O=V.error,z=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return O.call(V,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",z),t(_)}}function s(_){if(_===v)return"<>";if(typeof _=="object"&&_!==null&&_.$$typeof===k)return"<...>";try{var V=e(_);return V?"<"+V+">":"<...>"}catch{return"<...>"}}function i(){var _=de.A;return _===null?null:_.getOwner()}function r(){return Error("react-stack-top-frame")}function o(_){if(_e.call(_,"key")){var V=Object.getOwnPropertyDescriptor(_,"key").get;if(V&&V.isReactWarning)return!1}return _.key!==void 0}function a(_,V){function O(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",V))}O.isReactWarning=!0,Object.defineProperty(_,"key",{get:O,configurable:!0})}function l(){var _=e(this.type);return j[_]||(j[_]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),_=this.props.ref,_!==void 0?_:null}function u(_,V,O,z,Ut,hs){var K=O.ref;return _={$$typeof:p,type:_,key:V,props:O,_owner:z},(K!==void 0?K:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:l}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ut}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:hs}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function c(_,V,O,z,Ut,hs){var K=V.children;if(K!==void 0)if(z)if(A(K)){for(z=0;z<K.length;z++)d(K[z]);Object.freeze&&Object.freeze(K)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(K);if(_e.call(V,"key")){K=e(_);var qe=Object.keys(V).filter(function(_h){return _h!=="key"});z=0<qe.length?"{key: someKey, "+qe.join(": ..., ")+": ...}":"{key: someKey}",ne[K+z]||(qe=0<qe.length?"{"+qe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,z,K,qe,K),ne[K+z]=!0)}if(K=null,O!==void 0&&(n(O),K=""+O),o(V)&&(n(V.key),K=""+V.key),"key"in V){O={};for(var fs in V)fs!=="key"&&(O[fs]=V[fs])}else O=V;return K&&a(O,typeof _=="function"?_.displayName||_.name||"Unknown":_),u(_,K,O,i(),Ut,hs)}function d(_){h(_)?_._store&&(_._store.validated=1):typeof _=="object"&&_!==null&&_.$$typeof===k&&(_._payload.status==="fulfilled"?h(_._payload.value)&&_._payload.value._store&&(_._payload.value._store.validated=1):_._store&&(_._store.validated=1))}function h(_){return typeof _=="object"&&_!==null&&_.$$typeof===m}var p=g,m=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),C=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),ee=Symbol.for("react.client.reference"),de=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_e=Object.prototype.hasOwnProperty,A=Array.isArray,W=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(_){return _()}};var q,j={},R=p.react_stack_bottom_frame.bind(p,r)(),re=W(s(r)),ne={};Je.Fragment=v,Je.jsx=function(_,V,O){var z=1e4>de.recentlyCreatedOwnerStacks++;return c(_,V,O,!1,z?Error("react-stack-top-frame"):R,z?W(s(_)):re)},Je.jsxs=function(_,V,O){var z=1e4>de.recentlyCreatedOwnerStacks++;return c(_,V,O,!0,z?Error("react-stack-top-frame"):R,z?W(s(_)):re)}})()),Je}var gs;function $r(){return gs||(gs=1,process.env.NODE_ENV==="production"?gt.exports=Ir():gt.exports=Nr()),gt.exports}var f=$r();const De={container:"accordion-module__container___M1a4P",accordion:"accordion-module__accordion___C0eUc",header:"accordion-module__header___NFLuh",icon:"accordion-module__icon___Mjff1",content:"accordion-module__content___18iAN",open:"accordion-module__open___acchR"};function Br({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M3 6.75A.75.75 0 0 1 3.75 6h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.75ZM3 12a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 12Zm0 5.25a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))}const ys=E.forwardRef(Br);function Fr({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",clipRule:"evenodd"}))}const _s=E.forwardRef(Fr);function Or({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))}const Wr=E.forwardRef(Or);function Ur({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}))}const vs=E.forwardRef(Ur);function Hr({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}))}const xs=E.forwardRef(Hr);function zr({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M4.25 12a.75.75 0 0 1 .75-.75h14a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))}const bs=E.forwardRef(zr);function Kr({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M12 3.75a.75.75 0 0 1 .75.75v6.75h6.75a.75.75 0 0 1 0 1.5h-6.75v6.75a.75.75 0 0 1-1.5 0v-6.75H4.5a.75.75 0 0 1 0-1.5h6.75V4.5a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}))}const ws=E.forwardRef(Kr);function Yr({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z",clipRule:"evenodd"}))}const Ht=E.forwardRef(Yr);function Gr({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const zt=E.forwardRef(Gr),Xr=({title:e,children:t,defaultOpen:n=!1})=>{const[s,i]=g.useState(n),r=g.useId();return g.useLayoutEffect(()=>{i(n)},[n]),f.jsxs("div",{className:De.container,children:[f.jsxs("button",{id:r,onClick:()=>i(!s),className:De.accordion,"aria-expanded":s,children:[f.jsx("span",{className:De.header,children:e}),f.jsx("span",{className:De.icon,children:s?f.jsx(bs,{width:"24"}):f.jsx(ws,{width:"24"})})]}),f.jsx("div",{role:"region","aria-labelledby":r,className:`${De.content} ${s?De.open:void 0}`,children:t})]})},Kt=g.createContext({});function yt(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ts=typeof window<"u",Ss=Ts?g.useLayoutEffect:g.useEffect,_t=g.createContext(null);function Yt(e,t){e.indexOf(t)===-1&&e.push(t)}function vt(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const he=(e,t,n)=>n>t?t:n<e?e:n;function Gt(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Re=()=>{},me=()=>{};typeof process<"u"&&((jr=process.env)==null?void 0:jr.NODE_ENV)!=="production"&&(Re=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Gt(t,n))},me=(e,t,n)=>{if(!e)throw new Error(Gt(t,n))});const ge={},Ps=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Es(e){return typeof e=="object"&&e!==null}const Cs=e=>/^0[^.\s]+$/u.test(e);function Xt(e){let t;return()=>(t===void 0&&(t=e()),t)}const se=e=>e,qr=(e,t)=>n=>t(e(n)),Qe=(...e)=>e.reduce(qr),et=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s};class qt{constructor(){this.subscriptions=[]}add(t){return Yt(this.subscriptions,t),()=>vt(this.subscriptions,t)}notify(t,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ie=e=>e*1e3,oe=e=>e/1e3;function Ms(e,t){return t?e*(1e3/t):0}const As=new Set;function Zt(e,t,n){e||As.has(t)||(console.warn(Gt(t,n)),As.add(t))}const ks=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Zr=1e-7,Jr=12;function Qr(e,t,n,s,i){let r,o,a=0;do o=t+(n-t)/2,r=ks(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>Zr&&++a<Jr);return o}function tt(e,t,n,s){if(e===t&&n===s)return se;const i=r=>Qr(r,0,1,e,n);return r=>r===0||r===1?r:ks(i(r),t,s)}const Vs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ls=e=>t=>1-e(1-t),js=tt(.33,1.53,.69,.99),Jt=Ls(js),Ds=Vs(Jt),Rs=e=>(e*=2)<1?.5*Jt(e):.5*(2-Math.pow(2,-10*(e-1))),Qt=e=>1-Math.sin(Math.acos(e)),Is=Ls(Qt),Ns=Vs(Qt),ea=tt(.42,0,1,1),ta=tt(0,0,.58,1),$s=tt(.42,0,.58,1),na=e=>Array.isArray(e)&&typeof e[0]!="number",Bs=e=>Array.isArray(e)&&typeof e[0]=="number",Fs={linear:se,easeIn:ea,easeInOut:$s,easeOut:ta,circIn:Qt,circInOut:Ns,circOut:Is,backIn:Jt,backInOut:Ds,backOut:js,anticipate:Rs},sa=e=>typeof e=="string",Os=e=>{if(Bs(e)){me(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,s,i]=e;return tt(t,n,s,i)}else if(sa(e))return me(Fs[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Fs[e];return e},xt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ia(e,t){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,h=!1)=>{const m=h&&i?n:s;return d&&o.add(c),m.has(c)||m.add(c),c},cancel:c=>{s.delete(c),o.delete(c)},process:c=>{if(a=c,i){r=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,r&&(r=!1,u.process(c))}};return u}const oa=40;function Ws(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=xt.reduce((w,C)=>(w[C]=ia(r),w),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:p,postRender:m}=o,y=()=>{const w=ge.useManualTiming?i.timestamp:performance.now();n=!1,ge.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(w-i.timestamp,oa),1)),i.timestamp=w,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(y))},v=()=>{n=!0,s=!0,i.isProcessing||e(y)};return{schedule:xt.reduce((w,C)=>{const T=o[C];return w[C]=(M,D=!1,P=!1)=>(n||v(),T.schedule(M,D,P)),w},{}),cancel:w=>{for(let C=0;C<xt.length;C++)o[xt[C]].cancel(w)},state:i,steps:o}}const{schedule:I,cancel:ve,state:Y,steps:en}=Ws(typeof requestAnimationFrame<"u"?requestAnimationFrame:se,!0);let bt;function ra(){bt=void 0}const Z={now:()=>(bt===void 0&&Z.set(Y.isProcessing||ge.useManualTiming?Y.timestamp:performance.now()),bt),set:e=>{bt=e,queueMicrotask(ra)}},Us=e=>t=>typeof t=="string"&&t.startsWith(e),Hs=Us("--"),aa=Us("var(--"),tn=e=>aa(e)?la.test(e.split("/*")[0].trim()):!1,la=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function zs(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ie={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},nt={...Ie,transform:e=>he(0,1,e)},wt={...Ie,default:1},st=e=>Math.round(e*1e5)/1e5,nn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ca(e){return e==null}const ua=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,sn=(e,t)=>n=>!!(typeof n=="string"&&ua.test(n)&&n.startsWith(e)||t&&!ca(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ks=(e,t,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(nn);return{[e]:parseFloat(i),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},da=e=>he(0,255,e),on={...Ie,transform:e=>Math.round(da(e))},Ee={test:sn("rgb","red"),parse:Ks("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+on.transform(e)+", "+on.transform(t)+", "+on.transform(n)+", "+st(nt.transform(s))+")"};function ha(e){let t="",n="",s="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const rn={test:sn("#"),parse:ha,transform:Ee.transform},it=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xe=it("deg"),fe=it("%"),S=it("px"),fa=it("vh"),pa=it("vw"),Ys={...fe,parse:e=>fe.parse(e)/100,transform:e=>fe.transform(e*100)},Ne={test:sn("hsl","hue"),parse:Ks("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+fe.transform(st(t))+", "+fe.transform(st(n))+", "+st(nt.transform(s))+")"},U={test:e=>Ee.test(e)||rn.test(e)||Ne.test(e),parse:e=>Ee.test(e)?Ee.parse(e):Ne.test(e)?Ne.parse(e):rn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ee.transform(e):Ne.transform(e),getAnimatableNone:e=>{const t=U.parse(e);return t.alpha=0,U.transform(t)}},ma=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ga(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(nn))==null?void 0:t.length)||0)+(((n=e.match(ma))==null?void 0:n.length)||0)>0}const Gs="number",Xs="color",ya="var",_a="var(",qs="${}",va=/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+)/giu;function ot(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=t.replace(va,l=>(U.test(l)?(s.color.push(r),i.push(Xs),n.push(U.parse(l))):l.startsWith(_a)?(s.var.push(r),i.push(ya),n.push(l)):(s.number.push(r),i.push(Gs),n.push(parseFloat(l))),++r,qs)).split(qs);return{values:n,split:a,indexes:s,types:i}}function Zs(e){return ot(e).values}function Js(e){const{split:t,types:n}=ot(e),s=t.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=t[o],i[o]!==void 0){const a=n[o];a===Gs?r+=st(i[o]):a===Xs?r+=U.transform(i[o]):r+=i[o]}return r}}const xa=e=>typeof e=="number"?0:U.test(e)?U.getAnimatableNone(e):e;function ba(e){const t=Zs(e);return Js(e)(t.map(xa))}const be={test:ga,parse:Zs,createTransformer:Js,getAnimatableNone:ba};function an(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function wa({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=an(l,a,e+1/3),r=an(l,a,e),o=an(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Tt(e,t){return n=>n>0?t:e}const $=(e,t,n)=>e+(t-e)*n,ln=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},Ta=[rn,Ee,Ne],Sa=e=>Ta.find(t=>t.test(e));function Qs(e){const t=Sa(e);if(Re(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Ne&&(n=wa(n)),n}const ei=(e,t)=>{const n=Qs(e),s=Qs(t);if(!n||!s)return Tt(e,t);const i={...n};return r=>(i.red=ln(n.red,s.red,r),i.green=ln(n.green,s.green,r),i.blue=ln(n.blue,s.blue,r),i.alpha=$(n.alpha,s.alpha,r),Ee.transform(i))},cn=new Set(["none","hidden"]);function Pa(e,t){return cn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ea(e,t){return n=>$(e,t,n)}function un(e){return typeof e=="number"?Ea:typeof e=="string"?tn(e)?Tt:U.test(e)?ei:Aa:Array.isArray(e)?ti:typeof e=="object"?U.test(e)?ei:Ca:Tt}function ti(e,t){const n=[...e],s=n.length,i=e.map((r,o)=>un(r)(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Ca(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=un(e[i])(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Ma(e,t){const n=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const r=t.types[i],o=e.indexes[r][s[r]],a=e.values[o]??0;n[i]=a,s[r]++}return n}const Aa=(e,t)=>{const n=be.createTransformer(t),s=ot(e),i=ot(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?cn.has(e)&&!i.values.length||cn.has(t)&&!s.values.length?Pa(e,t):Qe(ti(Ma(s,i),i.values),n):(Re(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Tt(e,t))};function ni(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?$(e,t,n):un(e)(e,t)}const ka=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>I.update(t,n),stop:()=>ve(t),now:()=>Y.isProcessing?Y.timestamp:Z.now()}},si=(e,t,n=10)=>{let s="";const i=Math.max(Math.round(t/n),2);for(let r=0;r<i;r++)s+=Math.round(e(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},St=2e4;function dn(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<St;)t+=n,s=e.next(t);return t>=St?1/0:t}function Va(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(dn(s),St);return{type:"keyframes",ease:r=>s.next(i*r).value/t,duration:oe(i)}}const La=5;function ii(e,t,n){const s=Math.max(t-La,0);return Ms(n-e(s),t-s)}const B={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},hn=.001;function ja({duration:e=B.duration,bounce:t=B.bounce,velocity:n=B.velocity,mass:s=B.mass}){let i,r;Re(e<=ie(B.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=he(B.minDamping,B.maxDamping,o),e=he(B.minDuration,B.maxDuration,oe(e)),o<1?(i=u=>{const c=u*o,d=c*e,h=c-n,p=fn(u,o),m=Math.exp(-d);return hn-h/p*m},r=u=>{const d=u*o*e,h=d*n+n,p=Math.pow(o,2)*Math.pow(u,2)*e,m=Math.exp(-d),y=fn(Math.pow(u,2),o);return(-i(u)+hn>0?-1:1)*((h-p)*m)/y}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-hn+c*d},r=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=Ra(i,r,a);if(e=ie(e),isNaN(l))return{stiffness:B.stiffness,damping:B.damping,duration:e};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:e}}}const Da=12;function Ra(e,t,n){let s=n;for(let i=1;i<Da;i++)s=s-e(s)/t(s);return s}function fn(e,t){return e*Math.sqrt(1-t*t)}const Ia=["duration","bounce"],Na=["stiffness","damping","mass"];function oi(e,t){return t.some(n=>e[n]!==void 0)}function $a(e){let t={velocity:B.velocity,stiffness:B.stiffness,damping:B.damping,mass:B.mass,isResolvedFromDuration:!1,...e};if(!oi(e,Na)&&oi(e,Ia))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*he(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:B.mass,stiffness:i,damping:r}}else{const n=ja(e);t={...t,...n,mass:B.mass},t.isResolvedFromDuration=!0}return t}function Pt(e=B.visualDuration,t=B.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:p}=$a({...n,velocity:-oe(n.velocity||0)}),m=h||0,y=u/(2*Math.sqrt(l*c)),v=o-r,x=oe(Math.sqrt(l/c)),b=Math.abs(v)<5;s||(s=b?B.restSpeed.granular:B.restSpeed.default),i||(i=b?B.restDelta.granular:B.restDelta.default);let w;if(y<1){const T=fn(x,y);w=M=>{const D=Math.exp(-y*x*M);return o-D*((m+y*x*v)/T*Math.sin(T*M)+v*Math.cos(T*M))}}else if(y===1)w=T=>o-Math.exp(-x*T)*(v+(m+x*v)*T);else{const T=x*Math.sqrt(y*y-1);w=M=>{const D=Math.exp(-y*x*M),P=Math.min(T*M,300);return o-D*((m+y*x*v)*Math.sinh(P)+T*v*Math.cosh(P))/T}}const C={calculatedDuration:p&&d||null,next:T=>{const M=w(T);if(p)a.done=T>=d;else{let D=T===0?m:0;y<1&&(D=T===0?ie(m):ii(w,T,M));const P=Math.abs(D)<=s,k=Math.abs(o-M)<=i;a.done=P&&k}return a.value=a.done?o:M,a},toString:()=>{const T=Math.min(dn(C),St),M=si(D=>C.next(T*D).value,T,30);return T+"ms "+M},toTransition:()=>{}};return C}Pt.applyToOptions=e=>{const t=Va(e,100,Pt);return e.ease=t.ease,e.duration=ie(t.duration),e.type="keyframes",e};function pn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],h={done:!1,value:d},p=P=>a!==void 0&&P<a||l!==void 0&&P>l,m=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let y=n*t;const v=d+y,x=o===void 0?v:o(v);x!==v&&(y=x-d);const b=P=>-y*Math.exp(-P/s),w=P=>x+b(P),C=P=>{const k=b(P),F=w(P);h.done=Math.abs(k)<=u,h.value=h.done?x:F};let T,M;const D=P=>{p(h.value)&&(T=P,M=Pt({keyframes:[h.value,m(h.value)],velocity:ii(w,P,h.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:P=>{let k=!1;return!M&&T===void 0&&(k=!0,C(P),D(P)),T!==void 0&&P>=T?M.next(P-T):(!k&&C(P),h)}}}function Ba(e,t,n){const s=[],i=n||ge.mix||ni,r=e.length-1;for(let o=0;o<r;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||se:t;a=Qe(l,a)}s.push(a)}return s}function Fa(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;if(me(r===t.length,"Both input and output ranges must be the same length","range-length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Ba(t,s,i),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const h=et(e[d],e[d+1],c);return a[d](h)};return n?c=>u(he(e[0],e[r-1],c)):u}function Oa(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=et(0,t,s);e.push($(n,1,i))}}function Wa(e){const t=[0];return Oa(t,e.length-1),t}function Ua(e,t){return e.map(n=>n*t)}function Ha(e,t){return e.map(()=>t||$s).splice(0,e.length-1)}function $e({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=na(s)?s.map(Os):Os(s),r={done:!1,value:t[0]},o=Ua(n&&n.length===t.length?n:Wa(t),e),a=Fa(o,t,{ease:Array.isArray(i)?i:Ha(t,i)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}const za=e=>e!==null;function mn(e,{repeat:t,repeatType:n="loop"},s,i=1){const r=e.filter(za),a=i<0||t&&n!=="loop"&&t%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Ka={decay:pn,inertia:pn,tween:$e,keyframes:$e,spring:Pt};function ri(e){typeof e.type=="string"&&(e.type=Ka[e.type])}class gn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Ya=e=>e/100;class yn extends gn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Z.now()&&this.tick(Z.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ri(t);const{type:n=$e,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t;let{keyframes:a}=t;const l=n||$e;process.env.NODE_ENV!=="production"&&l!==$e&&me(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==$e&&typeof a[0]!="number"&&(this.mixKeyframes=Qe(Ya,ni(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=dn(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:h,repeatDelay:p,type:m,onUpdate:y,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let w=this.currentTime,C=s;if(d){const P=Math.min(this.currentTime,i)/a;let k=Math.floor(P),F=P%1;!F&&P>=1&&(F=1),F===1&&k--,k=Math.min(k,d+1),!!(k%2)&&(h==="reverse"?(F=1-F,p&&(F-=p/a)):h==="mirror"&&(C=o)),w=he(0,1,F)*a}const T=b?{done:!1,value:c[0]}:C.next(w);r&&(T.value=r(T.value));let{done:M}=T;!b&&l!==null&&(M=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return D&&m!==pn&&(T.value=mn(c,this.options,v,this.speed)),y&&y(T.value),D&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return oe(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+oe(t)}get time(){return oe(this.currentTime)}set time(t){var n;t=ie(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Z.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=oe(this.currentTime))}play(){var i,r;if(this.isStopped)return;const{driver:t=ka,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(r=(i=this.options).onPlay)==null||r.call(i);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),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(Z.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Ga(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ce=e=>e*180/Math.PI,_n=e=>{const t=Ce(Math.atan2(e[1],e[0]));return vn(t)},Xa={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:_n,rotateZ:_n,skewX:e=>Ce(Math.atan(e[1])),skewY:e=>Ce(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},vn=e=>(e=e%360,e<0&&(e+=360),e),ai=_n,li=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ci=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),qa={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:li,scaleY:ci,scale:e=>(li(e)+ci(e))/2,rotateX:e=>vn(Ce(Math.atan2(e[6],e[5]))),rotateY:e=>vn(Ce(Math.atan2(-e[2],e[0]))),rotateZ:ai,rotate:ai,skewX:e=>Ce(Math.atan(e[4])),skewY:e=>Ce(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function xn(e){return e.includes("scale")?1:0}function bn(e,t){if(!e||e==="none")return xn(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=qa,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Xa,i=a}if(!i)return xn(t);const r=s[t],o=i[1].split(",").map(Ja);return typeof r=="function"?r(o):o[r]}const Za=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return bn(n,t)};function Ja(e){return parseFloat(e.trim())}const Be=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Fe=new Set(Be),ui=e=>e===Ie||e===S,Qa=new Set(["x","y","z"]),el=Be.filter(e=>!Qa.has(e));function tl(e){const t=[];return el.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const we={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>bn(t,"x"),y:(e,{transform:t})=>bn(t,"y")};we.translateX=we.x,we.translateY=we.y;const Me=new Set;let wn=!1,Tn=!1,Sn=!1;function di(){if(Tn){const e=Array.from(Me).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const i=tl(s);i.length&&(n.set(s,i),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))==null||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Tn=!1,wn=!1,Me.forEach(e=>e.complete(Sn)),Me.clear()}function hi(){Me.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Tn=!0)})}function nl(){Sn=!0,hi(),di(),Sn=!1}class Pn{constructor(t,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Me.add(this),wn||(wn=!0,I.read(hi),I.resolveKeyframes(di))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:i}=this;if(t[0]===null){const r=i==null?void 0:i.get(),o=t[t.length-1];if(r!==void 0)t[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&r===void 0&&i.set(t[0])}Ga(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Me.delete(this)}cancel(){this.state==="scheduled"&&(Me.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const sl=e=>e.startsWith("--");function il(e,t,n){sl(t)?e.style.setProperty(t,n):e.style[t]=n}const ol=Xt(()=>window.ScrollTimeline!==void 0),rl={};function al(e,t){const n=Xt(e);return()=>rl[t]??n()}const fi=al(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),rt=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,pi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rt([0,.65,.55,1]),circOut:rt([.55,0,1,.45]),backIn:rt([.31,.01,.66,-.59]),backOut:rt([.33,1.53,.69,.99])};function mi(e,t){if(e)return typeof e=="function"?fi()?si(e,t):"ease-out":Bs(e)?rt(e):Array.isArray(e)?e.map(n=>mi(n,t)||pi.easeOut):pi[e]}function ll(e,t,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=mi(a,i);Array.isArray(d)&&(c.easing=d);const h={delay:s,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(c,h)}function gi(e){return typeof e=="function"&&"applyToOptions"in e}function cl({type:e,...t}){return gi(e)&&fi()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class yi extends gn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t,me(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=cl(t);this.animation=ll(n,s,i,u,r),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const c=mn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):il(n,s,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,s,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(s=this.animation).commitStyles)==null||i.call(s))}get duration(){var n,s;const t=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return oe(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+oe(t)}get time(){return oe(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ie(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&ol()?(this.animation.timeline=t,se):n(this)}}const _i={anticipate:Rs,backInOut:Ds,circInOut:Ns};function ul(e){return e in _i}function dl(e){typeof e.ease=="string"&&ul(e.ease)&&(e.ease=_i[e.ease])}const En=10;class hl extends yi{constructor(t){dl(t),ri(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new yn({...o,autoplay:!1}),l=Math.max(En,Z.now()-this.startTime),u=he(0,En,l-En);n.setWithVelocity(a.sample(Math.max(0,l-u)).value,a.sample(l).value,u),a.stop()}}const vi=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(be.test(e)||e==="0")&&!e.startsWith("url("));function fl(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function pl(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],o=vi(i,t),a=vi(r,t);return Re(o===a,`You are trying to animate ${t} from "${i}" to "${r}". "${o?r:i}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:fl(e)||(n==="spring"||gi(n))&&s}function Cn(e){e.duration=0,e.type="keyframes"}const ml=new Set(["opacity","clipPath","filter","transform"]),gl=Xt(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function yl(e){var c;const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:r,type:o}=e;if(!(((c=t==null?void 0:t.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return gl()&&n&&ml.has(n)&&(n!=="transform"||!u)&&!l&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const _l=40;class vl extends gn{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){var m;super(),this.stop=()=>{var y,v;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=Z.now();const h={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:u,element:c,...d},p=(c==null?void 0:c.KeyframeResolver)||Pn;this.keyframeResolver=new p(a,(y,v,x)=>this.onKeyframesResolved(y,v,h,!x),l,u,c),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(t,n,s,i){var v,x;this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=s;this.resolvedAt=Z.now(),pl(t,r,o,a)||((ge.instantAnimations||!l)&&(c==null||c(mn(t,s,n))),t[0]=t[t.length-1],Cn(s),s.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>_l?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},p=!u&&yl(h),m=(x=(v=h.motionValue)==null?void 0:v.owner)==null?void 0:x.current,y=p?new hl({...h,element:m}):new yn(h);y.finished.then(()=>{this.notifyFinished()}).catch(se),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),nl()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function xi(e,t,n,s=0,i=1){const r=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const xl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function bl(e){const t=xl.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}const wl=4;function bi(e,t,n=1){me(n<=wl,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[s,i]=bl(e);if(!s)return;const r=window.getComputedStyle(t).getPropertyValue(s);if(r){const o=r.trim();return Ps(o)?parseFloat(o):o}return tn(i)?bi(i,t,n+1):i}const Tl={type:"spring",stiffness:500,damping:25,restSpeed:10},Sl=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Pl={type:"keyframes",duration:.8},El={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Cl=(e,{keyframes:t})=>t.length>2?Pl:Fe.has(e)?e.startsWith("scale")?Sl(t[1]):Tl:El,Ml=e=>e!==null;function Al(e,{repeat:t,repeatType:n="loop"},s){const i=e.filter(Ml),r=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[r]}function wi(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function Mn(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?wi(n,e):n}function kl({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const An=(e,t,n,s={},i,r)=>o=>{const a=Mn(s,e)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-ie(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:i};kl(a)||Object.assign(c,Cl(e,c)),c.duration&&(c.duration=ie(c.duration)),c.repeatDelay&&(c.repeatDelay=ie(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Cn(c),c.delay===0&&(d=!0)),(ge.instantAnimations||ge.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(d=!0,Cn(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!r&&t.get()!==void 0){const h=Al(c.keyframes,a);if(h!==void 0){I.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new yn(c):new vl(c)};function Ti(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function kn(e,t,n,s){if(typeof t=="function"){const[i,r]=Ti(s);t=t(n!==void 0?n:e.custom,i,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,r]=Ti(s);t=t(n!==void 0?n:e.custom,i,r)}return t}function Oe(e,t,n){const s=e.getProps();return kn(s,t,n!==void 0?n:s.custom,e)}const Si=new Set(["width","height","top","left","right","bottom",...Be]),Pi=30,Vl=e=>!isNaN(parseFloat(e));class Ll{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var r;const i=Z.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((r=this.events.change)==null||r.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Z.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Vl(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Zt(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new qt);const s=this.events[t].add(n);return t==="change"?()=>{s(),I.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Pi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Pi);return Ms(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ae(e,t){return new Ll(e,t)}const Vn=e=>Array.isArray(e);function jl(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ae(n))}function Dl(e){return Vn(e)?e[e.length-1]||0:e}function Rl(e,t){const n=Oe(e,t);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Dl(r[o]);jl(e,o,a)}}const G=e=>!!(e&&e.getVelocity);function Il(e){return!!(G(e)&&e.add)}function Ln(e,t){const n=e.getValue("willChange");if(Il(n))return n.add(t);if(!n&&ge.WillChange){const s=new ge.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function jn(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Ei="data-"+jn("framerAppearId");function Ci(e){return e.props[Ei]}function Nl({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function Mi(e,t,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();r=r?wi(r,l):l;const u=r==null?void 0:r.reduceMotion;s&&(r=s);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in a){const p=e.getValue(h,e.latestValues[h]??null),m=a[h];if(m===void 0||d&&Nl(d,h))continue;const y={delay:n,...Mn(r||{},h)},v=p.get();if(v!==void 0&&!p.isAnimating&&!Array.isArray(m)&&m===v&&!y.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const C=Ci(e);if(C){const T=window.MotionHandoffAnimation(C,h,I);T!==null&&(y.startTime=T,x=!0)}}Ln(e,h);const b=u??e.shouldReduceMotion;p.start(An(h,p,m,b&&Si.has(h)?{type:!1}:y,e,x));const w=p.animation;w&&c.push(w)}if(o){const h=()=>I.update(()=>{o&&Rl(e,o)});c.length?Promise.all(c).then(h):h()}return c}function Dn(e,t,n={}){var l;const s=Oe(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(Mi(e,s,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:h}=i;return $l(e,t,u,c,d,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[r,o]:[o,r];return u().then(()=>c())}else return Promise.all([r(),o(n.delay)])}function $l(e,t,n=0,s=0,i=0,r=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Dn(l,t,{...o,delay:n+(typeof s=="function"?0:s)+xi(e.variantChildren,l,s,i,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Bl(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(r=>Dn(e,r,n));s=Promise.all(i)}else if(typeof t=="string")s=Dn(e,t,n);else{const i=typeof t=="function"?Oe(e,t,n.custom):t;s=Promise.all(Mi(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const Fl={test:e=>e==="auto",parse:e=>e},Ai=e=>t=>t.test(e),ki=[Ie,S,fe,xe,pa,fa,Fl],Vi=e=>ki.find(Ai(e));function Ol(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Cs(e):!0}const Wl=new Set(["brightness","contrast","saturate","opacity"]);function Ul(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(nn)||[];if(!s)return e;const i=n.replace(s,"");let r=Wl.has(t)?1:0;return s!==n&&(r*=100),t+"("+r+i+")"}const Hl=/\b([a-z-]*)\(.*?\)/gu,Rn={...be,getAnimatableNone:e=>{const t=e.match(Hl);return t?t.map(Ul).join(" "):e}},Li={...Ie,transform:Math.round},In={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,...{rotate:xe,rotateX:xe,rotateY:xe,rotateZ:xe,scale:wt,scaleX:wt,scaleY:wt,scaleZ:wt,skew:xe,skewX:xe,skewY:xe,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:nt,originX:Ys,originY:Ys,originZ:S},zIndex:Li,fillOpacity:nt,strokeOpacity:nt,numOctaves:Li},zl={...In,color:U,backgroundColor:U,outlineColor:U,fill:U,stroke:U,borderColor:U,borderTopColor:U,borderRightColor:U,borderBottomColor:U,borderLeftColor:U,filter:Rn,WebkitFilter:Rn},ji=e=>zl[e];function Di(e,t){let n=ji(e);return n!==Rn&&(n=be),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Kl=new Set(["auto","none","0"]);function Yl(e,t,n){let s=0,i;for(;s<e.length&&!i;){const r=e[s];typeof r=="string"&&!Kl.has(r)&&ot(r).values.length&&(i=e[s]),s++}if(i&&n)for(const r of t)e[r]=Di(n,i)}class Gl extends Pn{constructor(t,n,s,i,r){super(t,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),tn(d))){const h=bi(d,n.current);h!==void 0&&(t[c]=h),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Si.has(s)||t.length!==2)return;const[i,r]=t,o=Vi(i),a=Vi(r),l=zs(i),u=zs(r);if(l!==u&&we[s]){this.needsMeasurement=!0;return}if(o!==a)if(ui(o)&&ui(a))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else we[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)(t[i]===null||Ol(t[i]))&&s.push(i);s.length&&Yl(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=we[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=we[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const Xl=new Set(["opacity","clipPath","filter","transform"]);function Ri(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const i=(n==null?void 0:n[e])??s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(s=>s!=null)}const Ii=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Nn(e){return Es(e)&&"offsetHeight"in e}const{schedule:$n}=Ws(queueMicrotask,!1),ae={x:!1,y:!1};function Ni(){return ae.x||ae.y}function ql(e){return e==="x"||e==="y"?ae[e]?null:(ae[e]=!0,()=>{ae[e]=!1}):ae.x||ae.y?null:(ae.x=ae.y=!0,()=>{ae.x=ae.y=!1})}function $i(e,t){const n=Ri(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function Zl(e){return!(e.pointerType==="touch"||Ni())}function Jl(e,t,n={}){const[s,i,r]=$i(e,n);return s.forEach(o=>{let a=!1,l=!1,u;const c=()=>{o.removeEventListener("pointerleave",m)},d=v=>{u&&(u(v),u=void 0),c()},h=v=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,d(v))},p=()=>{a=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},m=v=>{if(v.pointerType!=="touch"){if(a){l=!0;return}d(v)}},y=v=>{if(!Zl(v))return;l=!1;const x=t(o,v);typeof x=="function"&&(u=x,o.addEventListener("pointerleave",m,i))};o.addEventListener("pointerenter",y,i),o.addEventListener("pointerdown",p,i)}),r}const Bi=(e,t)=>t?e===t?!0:Bi(e,t.parentElement):!1,Bn=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ql=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ec(e){return Ql.has(e.tagName)||e.isContentEditable===!0}const tc=new Set(["INPUT","SELECT","TEXTAREA"]);function nc(e){return tc.has(e.tagName)||e.isContentEditable===!0}const Et=new WeakSet;function Fi(e){return t=>{t.key==="Enter"&&e(t)}}function Fn(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const sc=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Fi(()=>{if(Et.has(n))return;Fn(n,"down");const i=Fi(()=>{Fn(n,"up")}),r=()=>Fn(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function Oi(e){return Bn(e)&&!Ni()}const Wi=new WeakSet;function ic(e,t,n={}){const[s,i,r]=$i(e,n),o=a=>{const l=a.currentTarget;if(!Oi(a)||Wi.has(a))return;Et.add(l),n.stopPropagation&&Wi.add(a);const u=t(l,a),c=(p,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),Et.has(l)&&Et.delete(l),Oi(p)&&typeof u=="function"&&u(p,{success:m})},d=p=>{c(p,l===window||l===document||n.useGlobalTarget||Bi(l,p.target))},h=p=>{c(p,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",h,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Nn(a)&&(a.addEventListener("focus",u=>sc(u,i)),!ec(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function On(e){return Es(e)&&"ownerSVGElement"in e}const Ct=new WeakMap;let Te;const Ui=(e,t,n)=>(s,i)=>i&&i[0]?i[0][e+"Size"]:On(s)&&"getBBox"in s?s.getBBox()[t]:s[n],oc=Ui("inline","width","offsetWidth"),rc=Ui("block","height","offsetHeight");function ac({target:e,borderBoxSize:t}){var n;(n=Ct.get(e))==null||n.forEach(s=>{s(e,{get width(){return oc(e,t)},get height(){return rc(e,t)}})})}function lc(e){e.forEach(ac)}function cc(){typeof ResizeObserver>"u"||(Te=new ResizeObserver(lc))}function uc(e,t){Te||cc();const n=Ri(e);return n.forEach(s=>{let i=Ct.get(s);i||(i=new Set,Ct.set(s,i)),i.add(t),Te==null||Te.observe(s)}),()=>{n.forEach(s=>{const i=Ct.get(s);i==null||i.delete(t),i!=null&&i.size||Te==null||Te.unobserve(s)})}}const Mt=new Set;let We;function dc(){We=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Mt.forEach(t=>t(e))},window.addEventListener("resize",We)}function hc(e){return Mt.add(e),We||dc(),()=>{Mt.delete(e),!Mt.size&&typeof We=="function"&&(window.removeEventListener("resize",We),We=void 0)}}function Hi(e,t){return typeof e=="function"?hc(e):uc(e,t)}function fc(e){return On(e)&&e.tagName==="svg"}const pc=[...ki,U,be],mc=e=>pc.find(Ai(e)),zi=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ue=()=>({x:zi(),y:zi()}),Ki=()=>({min:0,max:0}),H=()=>({x:Ki(),y:Ki()}),gc=new WeakMap;function At(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function at(e){return typeof e=="string"||Array.isArray(e)}const Wn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Un=["initial",...Wn];function kt(e){return At(e.animate)||Un.some(t=>at(e[t]))}function Yi(e){return!!(kt(e)||e.variants)}function yc(e,t,n){for(const s in t){const i=t[s],r=n[s];if(G(i))e.addValue(s,i);else if(G(r))e.addValue(s,Ae(i,{owner:e}));else if(r!==i)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(s);e.addValue(s,Ae(o!==void 0?o:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const Hn={current:null},Gi={current:!1},_c=typeof window<"u";function vc(){if(Gi.current=!0,!!_c)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Hn.current=e.matches;e.addEventListener("change",t),t()}else Hn.current=!1}const Xi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Vt={};function qi(e){Vt=e}function xc(){return Vt}class bc{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Pn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Z.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,I.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=kt(n),this.isVariantNode=Yi(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const m=h[p];u[p]!==void 0&&G(m)&&m.set(u[p])}}mount(t){var n,s;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,gc.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,r)=>this.bindToMotionValue(r,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Gi.current||vc(),this.shouldReduceMotion=Hn.current),process.env.NODE_ENV!=="production"&&Zt(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),ve(this.notifyUpdate),ve(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Xl.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,d=new yi({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:ie(c)}),h=o(d);this.valueSubscriptions.set(t,()=>{h(),d.cancel()});return}const s=Fe.has(t);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&I.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),r&&r(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Vt){const n=Vt[t];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(this)),this.features[t]){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):H()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Xi.length;s++){const i=Xi[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=t[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=yc(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=Ae(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(Ps(s)||Cs(s))?s=parseFloat(s):!mc(s)&&be.test(n)&&(s=Di(t,n)),this.setBaseTarget(t,G(s)?s.get():s)),G(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var r;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=kn(this.props,n,(r=this.presenceContext)==null?void 0:r.custom);o&&(s=o[t])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!G(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new qt),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){$n.render(this.render)}}class Zi extends bc{constructor(){super(...arguments),this.KeyframeResolver=Gl}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const s=t.style;return s?s[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;G(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Se{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Ji({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function wc({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Tc(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function zn(e){return e===void 0||e===1}function Kn({scale:e,scaleX:t,scaleY:n}){return!zn(e)||!zn(t)||!zn(n)}function ke(e){return Kn(e)||Qi(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Qi(e){return eo(e.x)||eo(e.y)}function eo(e){return e&&e!=="0%"}function Lt(e,t,n){const s=e-n,i=t*s;return n+i}function to(e,t,n,s,i){return i!==void 0&&(e=Lt(e,i,s)),Lt(e,n,s)+t}function Yn(e,t=0,n=1,s,i){e.min=to(e.min,t,n,s,i),e.max=to(e.max,t,n,s,i)}function no(e,{x:t,y:n}){Yn(e.x,t.translate,t.scale,t.originPoint),Yn(e.y,n.translate,n.scale,n.originPoint)}const so=.999999999999,io=1.0000000000001;function Sc(e,t,n,s=!1){const i=n.length;if(!i)return;t.x=t.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ze(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,no(e,o)),s&&ke(r.latestValues)&&ze(e,r.latestValues))}t.x<io&&t.x>so&&(t.x=1),t.y<io&&t.y>so&&(t.y=1)}function He(e,t){e.min=e.min+t,e.max=e.max+t}function oo(e,t,n,s,i=.5){const r=$(e.min,e.max,i);Yn(e,t,n,r,s)}function ze(e,t){oo(e.x,t.x,t.scaleX,t.scale,t.originX),oo(e.y,t.y,t.scaleY,t.scale,t.originY)}function ro(e,t){return Ji(Tc(e.getBoundingClientRect(),t))}function Pc(e,t,n){const s=ro(e,n),{scroll:i}=t;return i&&(He(s.x,i.offset.x),He(s.y,i.offset.y)),s}const Ec={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Cc=Be.length;function Mc(e,t,n){let s="",i=!0;for(let r=0;r<Cc;r++){const o=Be[r],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(o.startsWith("scale")?1:0);else{const u=parseFloat(a);l=o.startsWith("scale")?u===1:u===0}if(!l||n){const u=Ii(a,In[o]);if(!l){i=!1;const c=Ec[o]||o;s+=`${c}(${u}) `}n&&(t[o]=u)}}return s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}function Gn(e,t,n){const{style:s,vars:i,transformOrigin:r}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(Fe.has(l)){o=!0;continue}else if(Hs(l)){i[l]=u;continue}else{const c=Ii(u,In[l]);l.startsWith("origin")?(a=!0,r[l]=c):s[l]=c}}if(t.transform||(o||n?s.transform=Mc(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=r;s.transformOrigin=`${l} ${u} ${c}`}}function ao(e,{style:t,vars:n},s,i){const r=e.style;let o;for(o in t)r[o]=t[o];i==null||i.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function lo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const lt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(S.test(e))e=parseFloat(e);else return e;const n=lo(e,t.target.x),s=lo(e,t.target.y);return`${n}% ${s}%`}},Ac={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,i=be.parse(e);if(i.length>5)return s;const r=be.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=$(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}},Xn={borderRadius:{...lt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lt,borderTopRightRadius:lt,borderBottomLeftRadius:lt,borderBottomRightRadius:lt,boxShadow:Ac};function co(e,{layout:t,layoutId:n}){return Fe.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xn[e]||e==="opacity")}function qn(e,t,n){var o;const s=e.style,i=t==null?void 0:t.style,r={};if(!s)return r;for(const a in s)(G(s[a])||i&&G(i[a])||co(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(r[a]=s[a]);return r}function kc(e){return window.getComputedStyle(e)}class Vc extends Zi{constructor(){super(...arguments),this.type="html",this.renderInstance=ao}readValueFromInstance(t,n){var s;if(Fe.has(n))return(s=this.projection)!=null&&s.isProjecting?xn(n):Za(t,n);{const i=kc(t),r=(Hs(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ro(t,n)}build(t,n,s){Gn(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return qn(t,n,s)}}const Lc={offset:"stroke-dashoffset",array:"stroke-dasharray"},jc={offset:"strokeDashoffset",array:"strokeDasharray"};function Dc(e,t,n=1,s=0,i=!0){e.pathLength=1;const r=i?Lc:jc;e[r.offset]=`${-s}`,e[r.array]=`${t} ${n}`}const Rc=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function uo(e,{attrX:t,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},l,u,c){if(Gn(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete d.transformBox);for(const p of Rc)d[p]!==void 0&&(h[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),i!==void 0&&Dc(d,i,r,o,!1)}const ho=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),fo=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ic(e,t,n,s){ao(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(ho.has(i)?i:jn(i),t.attrs[i])}function po(e,t,n){const s=qn(e,t,n);for(const i in e)if(G(e[i])||G(t[i])){const r=Be.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=e[i]}return s}class Nc extends Zi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=H}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Fe.has(n)){const s=ji(n);return s&&s.default||0}return n=ho.has(n)?n:jn(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return po(t,n,s)}build(t,n,s){uo(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,i){Ic(t,n,s,i)}mount(t){this.isSVGTag=fo(t.tagName),super.mount(t)}}const $c=Un.length;function mo(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?mo(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<$c;n++){const s=Un[n],i=e.props[s];(at(i)||i===!1)&&(t[s]=i)}return t}function go(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const Bc=[...Wn].reverse(),Fc=Wn.length;function Oc(e){return t=>Promise.all(t.map(({animation:n,options:s})=>Bl(e,n,s)))}function Wc(e){let t=Oc(e),n=yo(),s=!0;const i=l=>(u,c)=>{var h;const d=Oe(e,c,l==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(d){const{transition:p,transitionEnd:m,...y}=d;u={...u,...y,...m}}return u};function r(l){t=l(e)}function o(l){const{props:u}=e,c=mo(e.parent)||{},d=[],h=new Set;let p={},m=1/0;for(let v=0;v<Fc;v++){const x=Bc[v],b=n[x],w=u[x]!==void 0?u[x]:c[x],C=at(w),T=x===l?b.isActive:null;T===!1&&(m=v);let M=w===c[x]&&w!==u[x]&&C;if(M&&s&&e.manuallyAnimateOnMount&&(M=!1),b.protectedKeys={...p},!b.isActive&&T===null||!w&&!b.prevProp||At(w)||typeof w=="boolean")continue;if(x==="exit"&&b.isActive&&T!==!0){b.prevResolvedValues&&(p={...p,...b.prevResolvedValues});continue}const D=Uc(b.prevProp,w);let P=D||x===l&&b.isActive&&!M&&C||v>m&&C,k=!1;const F=Array.isArray(w)?w:[w];let ee=F.reduce(i(x),{});T===!1&&(ee={});const{prevResolvedValues:de={}}=b,_e={...de,...ee},A=j=>{P=!0,h.has(j)&&(k=!0,h.delete(j)),b.needsAnimating[j]=!0;const R=e.getValue(j);R&&(R.liveStyle=!1)};for(const j in _e){const R=ee[j],re=de[j];if(p.hasOwnProperty(j))continue;let ne=!1;Vn(R)&&Vn(re)?ne=!go(R,re):ne=R!==re,ne?R!=null?A(j):h.add(j):R!==void 0&&h.has(j)?A(j):b.protectedKeys[j]=!0}b.prevProp=w,b.prevResolvedValues=ee,b.isActive&&(p={...p,...ee}),s&&e.blockInitialAnimation&&(P=!1);const W=M&&D;P&&(!W||k)&&d.push(...F.map(j=>{const R={type:x};if(typeof j=="string"&&s&&!W&&e.manuallyAnimateOnMount&&e.parent){const{parent:re}=e,ne=Oe(re,j);if(re.enteringChildren&&ne){const{delayChildren:_}=ne.transition||{};R.delay=xi(re.enteringChildren,e,_)}}return{animation:j,options:R}}))}if(h.size){const v={};if(typeof u.initial!="boolean"){const x=Oe(e,Array.isArray(u.initial)?u.initial[0]:u.initial);x&&x.transition&&(v.transition=x.transition)}h.forEach(x=>{const b=e.getBaseTarget(x),w=e.getValue(x);w&&(w.liveStyle=!0),v[x]=b??null}),d.push({animation:v})}let y=!!d.length;return s&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),s=!1,y?t(d):Promise.resolve()}function a(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(h=>{var p;return(p=h.animationState)==null?void 0:p.setActive(l,u)}),n[l].isActive=u;const c=o(l);for(const h in n)n[h].protectedKeys={};return c}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=yo()}}}function Uc(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!go(t,e):!1}function Ve(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yo(){return{animate:Ve(!0),whileInView:Ve(),whileHover:Ve(),whileTap:Ve(),whileDrag:Ve(),whileFocus:Ve(),exit:Ve()}}function _o(e,t){e.min=t.min,e.max=t.max}function le(e,t){_o(e.x,t.x),_o(e.y,t.y)}function vo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const xo=1e-4,Hc=1-xo,zc=1+xo,bo=.01,Kc=0-bo,Yc=0+bo;function J(e){return e.max-e.min}function Gc(e,t,n){return Math.abs(e-t)<=n}function wo(e,t,n,s=.5){e.origin=s,e.originPoint=$(t.min,t.max,e.origin),e.scale=J(n)/J(t),e.translate=$(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Hc&&e.scale<=zc||isNaN(e.scale))&&(e.scale=1),(e.translate>=Kc&&e.translate<=Yc||isNaN(e.translate))&&(e.translate=0)}function ct(e,t,n,s){wo(e.x,t.x,n.x,s?s.originX:void 0),wo(e.y,t.y,n.y,s?s.originY:void 0)}function To(e,t,n){e.min=n.min+t.min,e.max=e.min+J(t)}function Xc(e,t,n){To(e.x,t.x,n.x),To(e.y,t.y,n.y)}function So(e,t,n){e.min=t.min-n.min,e.max=e.min+J(t)}function jt(e,t,n){So(e.x,t.x,n.x),So(e.y,t.y,n.y)}function Po(e,t,n,s,i){return e-=t,e=Lt(e,1/n,s),i!==void 0&&(e=Lt(e,1/i,s)),e}function qc(e,t=0,n=1,s=.5,i,r=e,o=e){if(fe.test(t)&&(t=parseFloat(t),t=$(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=$(r.min,r.max,s);e===r&&(a-=t),e.min=Po(e.min,t,n,a,i),e.max=Po(e.max,t,n,a,i)}function Eo(e,t,[n,s,i],r,o){qc(e,t[n],t[s],t[i],t.scale,r,o)}const Zc=["x","scaleX","originX"],Jc=["y","scaleY","originY"];function Co(e,t,n,s){Eo(e.x,t,Zc,n?n.x:void 0,s?s.x:void 0),Eo(e.y,t,Jc,n?n.y:void 0,s?s.y:void 0)}function Mo(e){return e.translate===0&&e.scale===1}function Ao(e){return Mo(e.x)&&Mo(e.y)}function ko(e,t){return e.min===t.min&&e.max===t.max}function Qc(e,t){return ko(e.x,t.x)&&ko(e.y,t.y)}function Vo(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Lo(e,t){return Vo(e.x,t.x)&&Vo(e.y,t.y)}function jo(e){return J(e.x)/J(e.y)}function Do(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function pe(e){return[e("x"),e("y")]}function eu(e,t,n){let s="";const i=e.x.translate/t.x,r=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:h,skewX:p,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),d&&(s+=`rotateX(${d}deg) `),h&&(s+=`rotateY(${h}deg) `),p&&(s+=`skewX(${p}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Ro=["TopLeft","TopRight","BottomLeft","BottomRight"],tu=Ro.length,Io=e=>typeof e=="string"?parseFloat(e):e,No=e=>typeof e=="number"||S.test(e);function nu(e,t,n,s,i,r){i?(e.opacity=$(0,n.opacity??1,su(s)),e.opacityExit=$(t.opacity??1,0,iu(s))):r&&(e.opacity=$(t.opacity??1,n.opacity??1,s));for(let o=0;o<tu;o++){const a=`border${Ro[o]}Radius`;let l=$o(t,a),u=$o(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||No(l)===No(u)?(e[a]=Math.max($(Io(l),Io(u),s),0),(fe.test(u)||fe.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=$(t.rotate||0,n.rotate||0,s))}function $o(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const su=Bo(0,.5,Is),iu=Bo(.5,.95,se);function Bo(e,t,n){return s=>s<e?0:s>t?1:n(et(e,t,s))}function ou(e,t,n){const s=G(e)?e:Ae(e);return s.start(An("",s,t,n)),s.animation}function ut(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}const ru=(e,t)=>e.depth-t.depth;class au{constructor(){this.children=[],this.isDirty=!1}add(t){Yt(this.children,t),this.isDirty=!0}remove(t){vt(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ru),this.isDirty=!1,this.children.forEach(t)}}function lu(e,t){const n=Z.now(),s=({timestamp:i})=>{const r=i-n;r>=t&&(ve(s),e(r-t))};return I.setup(s,!0),()=>ve(s)}function Dt(e){return G(e)?e.get():e}class cu{constructor(){this.members=[]}add(t){Yt(this.members,t);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===t||s===this.lead||s===this.prevLead)continue;const i=s.instance;i&&i.isConnected===!1&&s.isPresent!==!1&&!s.snapshot&&vt(this.members,s)}t.scheduleRender()}remove(t){if(vt(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const r=this.members[i],o=r.instance;if(r.isPresent!==!1&&(!o||o.isConnected!==!1)){s=r;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender();const i=s.options.layoutDependency,r=t.options.layoutDependency;if(!(i!==void 0&&r!==void 0&&i===r)){const l=s.instance;l&&l.isConnected===!1&&!s.snapshot||(t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:a}=t.options;a===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Rt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Zn=["","X","Y","Z"],uu=1e3;let du=0;function Jn(e,t,n,s){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),s&&(s[e]=0))}function Fo(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ci(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",I,!(i||r))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&Fo(s)}function Oo({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=du++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(pu),this.nodes.forEach(_u),this.nodes.forEach(vu),this.nodes.forEach(mu)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new au)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new qt),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=On(o)&&!fc(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,d=0;const h=()=>this.root.updateBlockedByResize=!1;I.read(()=>{d=window.innerWidth}),e(o,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,c&&c(),c=lu(h,250),Rt.hasAnimatedSinceResize&&(Rt.hasAnimatedSinceResize=!1,this.nodes.forEach(Ho)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Su,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=u.getProps(),x=!this.targetLayout||!Lo(this.targetLayout,p),b=!d&&h;if(this.options.layoutRoot||this.resumeFrom||b||d&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...Mn(m,"layout"),onPlay:y,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(c,b)}else d||Ho(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ve(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(xu),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Fo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Wo);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Uo);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(yu),this.nodes.forEach(hu),this.nodes.forEach(fu)):this.nodes.forEach(Uo),this.clearAllSnapshots();const a=Z.now();Y.delta=he(0,1e3/60,a-Y.timestamp),Y.timestamp=a,Y.isProcessing=!0,en.update.process(Y),en.preRender.process(Y),en.render.process(Y),Y.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,$n.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(gu),this.sharedNodes.forEach(bu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,I.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){I.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!J(this.snapshot.measuredBox.x)&&!J(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=H(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ao(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||ke(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),Pu(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return H();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(Eu))){const{scroll:c}=this.root;c&&(He(a.x,c.offset.x),He(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=H();if(le(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:h}=c;c!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&le(a,o),He(a.x,d.offset.x),He(a.y,d.offset.y))}return a}applyTransform(o,a=!1){const l=H();le(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ze(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),ke(c.latestValues)&&ze(l,c.latestValues)}return ke(this.latestValues)&&ze(l,this.latestValues),l}removeTransform(o){const a=H();le(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ke(u.latestValues))continue;Kn(u.latestValues)&&u.updateSnapshot();const c=H(),d=u.measurePageBox();le(c,d),Co(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return ke(this.latestValues)&&Co(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Y.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var p;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=Y.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=H(),this.targetWithTransforms=H()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Xc(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):le(this.target,this.layout.layoutBox),no(this.target,this.targetDelta)):le(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Kn(this.parent.latestValues)||Qi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=H(),this.relativeTargetOrigin=H(),jt(this.relativeTargetOrigin,a,l),le(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Y.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;le(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;Sc(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=H());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vo(this.prevProjectionDelta.x,this.projectionDelta.x),vo(this.prevProjectionDelta.y,this.projectionDelta.y)),ct(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!Do(this.projectionDelta.x,this.prevProjectionDelta.x)||!Do(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ue(),this.projectionDelta=Ue(),this.projectionDeltaWithTransform=Ue()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Ue();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=H(),p=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=p!==m,v=this.getStack(),x=!v||v.members.length<=1,b=!!(y&&!x&&this.options.crossfade===!0&&!this.path.some(Tu));this.animationProgress=0;let w;this.mixTargetDelta=C=>{const T=C/1e3;zo(d.x,o.x,T),zo(d.y,o.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jt(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wu(this.relativeTarget,this.relativeTargetOrigin,h,T),w&&Qc(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=H()),le(w,this.relativeTarget)),y&&(this.animationValues=c,nu(c,u,this.latestValues,T,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(ve(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=I.update(()=>{Rt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ae(0)),this.currentAnimation=ou(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uu),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&qo(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||H();const d=J(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=J(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}le(a,l),ze(a,c),ct(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new cu),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Jn("z",o,u,this.animationValues);for(let c=0;c<Zn.length;c++)Jn(`rotate${Zn[c]}`,o,u,this.animationValues),Jn(`skew${Zn[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Dt(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Dt(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ke(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=eu(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),o.transform=d;const{x:h,y:p}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const m in Xn){if(c[m]===void 0)continue;const{correct:y,applyTo:v,isCSSVariable:x}=Xn[m],b=d==="none"?c[m]:y(c[m],u);if(v){const w=v.length;for(let C=0;C<w;C++)o[v[C]]=b}else x?this.options.visualElement.renderState.vars[m]=b:o[m]=b}this.options.layoutId&&(o.pointerEvents=u===this?Dt(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Wo),this.root.sharedNodes.clear()}}}function hu(e){e.updateLayout()}function fu(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=e.layout,{animationType:r}=e.options,o=t.source!==e.layout.source;r==="size"?pe(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],p=J(h);h.min=s[d].min,h.max=h.min+p}):qo(r,t.layoutBox,s)&&pe(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],p=J(s[d]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=Ue();ct(a,s,t.layoutBox);const l=Ue();o?ct(l,e.applyTransform(i,!0),t.measuredBox):ct(l,s,t.layoutBox);const u=!Ao(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:p}=d;if(h&&p){const m=H();jt(m,t.layoutBox,h.layoutBox);const y=H();jt(y,s,p.layoutBox),Lo(m,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function pu(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function mu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gu(e){e.clearSnapshot()}function Wo(e){e.clearMeasurements()}function Uo(e){e.isLayoutDirty=!1}function yu(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ho(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _u(e){e.resolveTargetDelta()}function vu(e){e.calcProjection()}function xu(e){e.resetSkewAndRotation()}function bu(e){e.removeLeadSnapshot()}function zo(e,t,n){e.translate=$(t.translate,0,n),e.scale=$(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ko(e,t,n,s){e.min=$(t.min,n.min,s),e.max=$(t.max,n.max,s)}function wu(e,t,n,s){Ko(e.x,t.x,n.x,s),Ko(e.y,t.y,n.y,s)}function Tu(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Su={duration:.45,ease:[.4,0,.1,1]},Yo=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Go=Yo("applewebkit/")&&!Yo("chrome/")?Math.round:se;function Xo(e){e.min=Go(e.min),e.max=Go(e.max)}function Pu(e){Xo(e.x),Xo(e.y)}function qo(e,t,n){return e==="position"||e==="preserve-aspect"&&!Gc(jo(t),jo(n),.2)}function Eu(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Cu=Oo({attachResizeListener:(e,t)=>ut(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Qn={current:void 0},Zo=Oo({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Qn.current){const e=new Cu({});e.mount(window),e.setOptions({layoutScroll:!0}),Qn.current=e}return Qn.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),It=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Jo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Mu(...e){return t=>{let n=!1;const s=e.map(i=>{const r=Jo(i,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<s.length;i++){const r=s[i];typeof r=="function"?r():Jo(e[i],null)}}}}function Au(...e){return E.useCallback(Mu(...e),e)}class ku extends E.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,i=Nn(s)&&s.offsetWidth||0,r=Nn(s)&&s.offsetHeight||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left,o.bottom=r-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Vu({children:e,isPresent:t,anchorX:n,anchorY:s,root:i,pop:r}){var h;const o=g.useId(),a=g.useRef(null),l=g.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=g.useContext(It),c=((h=e.props)==null?void 0:h.ref)??(e==null?void 0:e.ref),d=Au(a,c);return g.useInsertionEffect(()=>{const{width:p,height:m,top:y,left:v,right:x,bottom:b}=l.current;if(t||r===!1||!a.current||!p||!m)return;const w=n==="left"?`left: ${v}`:`right: ${x}`,C=s==="bottom"?`bottom: ${b}`:`top: ${y}`;a.current.dataset.motionPopId=o;const T=document.createElement("style");u&&(T.nonce=u);const M=i??document.head;return M.appendChild(T),T.sheet&&T.sheet.insertRule(`
|
|
22
|
+
<%s key={someKey} {...props} />`,z,K,qe,K),ne[K+z]=!0)}if(K=null,O!==void 0&&(n(O),K=""+O),o(V)&&(n(V.key),K=""+V.key),"key"in V){O={};for(var fs in V)fs!=="key"&&(O[fs]=V[fs])}else O=V;return K&&a(O,typeof _=="function"?_.displayName||_.name||"Unknown":_),u(_,K,O,i(),Ut,hs)}function d(_){h(_)?_._store&&(_._store.validated=1):typeof _=="object"&&_!==null&&_.$$typeof===k&&(_._payload.status==="fulfilled"?h(_._payload.value)&&_._payload.value._store&&(_._payload.value._store.validated=1):_._store&&(_._store.validated=1))}function h(_){return typeof _=="object"&&_!==null&&_.$$typeof===p}var m=g,p=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),C=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),ee=Symbol.for("react.client.reference"),de=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_e=Object.prototype.hasOwnProperty,A=Array.isArray,W=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(_){return _()}};var q,j={},R=m.react_stack_bottom_frame.bind(m,r)(),ae=W(s(r)),ne={};Je.Fragment=v,Je.jsx=function(_,V,O){var z=1e4>de.recentlyCreatedOwnerStacks++;return c(_,V,O,!1,z?Error("react-stack-top-frame"):R,z?W(s(_)):ae)},Je.jsxs=function(_,V,O){var z=1e4>de.recentlyCreatedOwnerStacks++;return c(_,V,O,!0,z?Error("react-stack-top-frame"):R,z?W(s(_)):ae)}})()),Je}var gs;function Br(){return gs||(gs=1,process.env.NODE_ENV==="production"?yt.exports=Nr():yt.exports=$r()),yt.exports}var f=Br();const De={container:"accordion-module__container___M1a4P",accordion:"accordion-module__accordion___C0eUc",header:"accordion-module__header___NFLuh",icon:"accordion-module__icon___Mjff1",content:"accordion-module__content___18iAN",open:"accordion-module__open___acchR"};function Fr({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M3 6.75A.75.75 0 0 1 3.75 6h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.75ZM3 12a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 12Zm0 5.25a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))}const ys=E.forwardRef(Fr);function Or({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",clipRule:"evenodd"}))}const _s=E.forwardRef(Or);function Wr({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))}const Ur=E.forwardRef(Wr);function Hr({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}))}const vs=E.forwardRef(Hr);function zr({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}))}const xs=E.forwardRef(zr);function Kr({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M4.25 12a.75.75 0 0 1 .75-.75h14a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))}const bs=E.forwardRef(Kr);function Yr({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M12 3.75a.75.75 0 0 1 .75.75v6.75h6.75a.75.75 0 0 1 0 1.5h-6.75v6.75a.75.75 0 0 1-1.5 0v-6.75H4.5a.75.75 0 0 1 0-1.5h6.75V4.5a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}))}const ws=E.forwardRef(Yr);function Gr({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z",clipRule:"evenodd"}))}const Ht=E.forwardRef(Gr);function Xr({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const zt=E.forwardRef(Xr),qr=({title:e,children:t,defaultOpen:n=!1})=>{const[s,i]=g.useState(n),r=g.useId();return g.useLayoutEffect(()=>{i(n)},[n]),f.jsxs("div",{className:De.container,children:[f.jsxs("button",{id:r,onClick:()=>i(!s),className:De.accordion,"aria-expanded":s,children:[f.jsx("span",{className:De.header,children:e}),f.jsx("span",{className:De.icon,children:s?f.jsx(bs,{width:"24"}):f.jsx(ws,{width:"24"})})]}),f.jsx("div",{role:"region","aria-labelledby":r,className:`${De.content} ${s?De.open:void 0}`,children:t})]})},Kt=g.createContext({});function _t(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ts=typeof window<"u",Ss=Ts?g.useLayoutEffect:g.useEffect,vt=g.createContext(null);function Yt(e,t){e.indexOf(t)===-1&&e.push(t)}function xt(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const he=(e,t,n)=>n>t?t:n<e?e:n;function Gt(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Re=()=>{},pe=()=>{};typeof process<"u"&&((Dr=process.env)==null?void 0:Dr.NODE_ENV)!=="production"&&(Re=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Gt(t,n))},pe=(e,t,n)=>{if(!e)throw new Error(Gt(t,n))});const ge={},Ps=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Es(e){return typeof e=="object"&&e!==null}const Cs=e=>/^0[^.\s]+$/u.test(e);function Xt(e){let t;return()=>(t===void 0&&(t=e()),t)}const se=e=>e,Zr=(e,t)=>n=>t(e(n)),Qe=(...e)=>e.reduce(Zr),et=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s};class qt{constructor(){this.subscriptions=[]}add(t){return Yt(this.subscriptions,t),()=>xt(this.subscriptions,t)}notify(t,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ie=e=>e*1e3,oe=e=>e/1e3;function Ms(e,t){return t?e*(1e3/t):0}const As=new Set;function Zt(e,t,n){e||As.has(t)||(console.warn(Gt(t,n)),As.add(t))}const ks=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Jr=1e-7,Qr=12;function ea(e,t,n,s,i){let r,o,a=0;do o=t+(n-t)/2,r=ks(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>Jr&&++a<Qr);return o}function tt(e,t,n,s){if(e===t&&n===s)return se;const i=r=>ea(r,0,1,e,n);return r=>r===0||r===1?r:ks(i(r),t,s)}const Vs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ls=e=>t=>1-e(1-t),js=tt(.33,1.53,.69,.99),Jt=Ls(js),Ds=Vs(Jt),Rs=e=>(e*=2)<1?.5*Jt(e):.5*(2-Math.pow(2,-10*(e-1))),Qt=e=>1-Math.sin(Math.acos(e)),Is=Ls(Qt),Ns=Vs(Qt),ta=tt(.42,0,1,1),na=tt(0,0,.58,1),$s=tt(.42,0,.58,1),sa=e=>Array.isArray(e)&&typeof e[0]!="number",Bs=e=>Array.isArray(e)&&typeof e[0]=="number",Fs={linear:se,easeIn:ta,easeInOut:$s,easeOut:na,circIn:Qt,circInOut:Ns,circOut:Is,backIn:Jt,backInOut:Ds,backOut:js,anticipate:Rs},ia=e=>typeof e=="string",Os=e=>{if(Bs(e)){pe(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,s,i]=e;return tt(t,n,s,i)}else if(ia(e))return pe(Fs[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Fs[e];return e},bt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function oa(e,t){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,h=!1)=>{const p=h&&i?n:s;return d&&o.add(c),p.has(c)||p.add(c),c},cancel:c=>{s.delete(c),o.delete(c)},process:c=>{if(a=c,i){r=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,r&&(r=!1,u.process(c))}};return u}const ra=40;function Ws(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=bt.reduce((w,C)=>(w[C]=oa(r),w),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:m,postRender:p}=o,y=()=>{const w=ge.useManualTiming?i.timestamp:performance.now();n=!1,ge.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(w-i.timestamp,ra),1)),i.timestamp=w,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(y))},v=()=>{n=!0,s=!0,i.isProcessing||e(y)};return{schedule:bt.reduce((w,C)=>{const T=o[C];return w[C]=(M,D=!1,P=!1)=>(n||v(),T.schedule(M,D,P)),w},{}),cancel:w=>{for(let C=0;C<bt.length;C++)o[bt[C]].cancel(w)},state:i,steps:o}}const{schedule:I,cancel:ve,state:Y,steps:en}=Ws(typeof requestAnimationFrame<"u"?requestAnimationFrame:se,!0);let wt;function aa(){wt=void 0}const Z={now:()=>(wt===void 0&&Z.set(Y.isProcessing||ge.useManualTiming?Y.timestamp:performance.now()),wt),set:e=>{wt=e,queueMicrotask(aa)}},Us=e=>t=>typeof t=="string"&&t.startsWith(e),Hs=Us("--"),la=Us("var(--"),tn=e=>la(e)?ca.test(e.split("/*")[0].trim()):!1,ca=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function zs(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ie={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},nt={...Ie,transform:e=>he(0,1,e)},Tt={...Ie,default:1},st=e=>Math.round(e*1e5)/1e5,nn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ua(e){return e==null}const da=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,sn=(e,t)=>n=>!!(typeof n=="string"&&da.test(n)&&n.startsWith(e)||t&&!ua(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ks=(e,t,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(nn);return{[e]:parseFloat(i),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},ha=e=>he(0,255,e),on={...Ie,transform:e=>Math.round(ha(e))},Ee={test:sn("rgb","red"),parse:Ks("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+on.transform(e)+", "+on.transform(t)+", "+on.transform(n)+", "+st(nt.transform(s))+")"};function fa(e){let t="",n="",s="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const rn={test:sn("#"),parse:fa,transform:Ee.transform},it=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xe=it("deg"),fe=it("%"),S=it("px"),ma=it("vh"),pa=it("vw"),Ys={...fe,parse:e=>fe.parse(e)/100,transform:e=>fe.transform(e*100)},Ne={test:sn("hsl","hue"),parse:Ks("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+fe.transform(st(t))+", "+fe.transform(st(n))+", "+st(nt.transform(s))+")"},U={test:e=>Ee.test(e)||rn.test(e)||Ne.test(e),parse:e=>Ee.test(e)?Ee.parse(e):Ne.test(e)?Ne.parse(e):rn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ee.transform(e):Ne.transform(e),getAnimatableNone:e=>{const t=U.parse(e);return t.alpha=0,U.transform(t)}},ga=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ya(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(nn))==null?void 0:t.length)||0)+(((n=e.match(ga))==null?void 0:n.length)||0)>0}const Gs="number",Xs="color",_a="var",va="var(",qs="${}",xa=/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+)/giu;function ot(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=t.replace(xa,l=>(U.test(l)?(s.color.push(r),i.push(Xs),n.push(U.parse(l))):l.startsWith(va)?(s.var.push(r),i.push(_a),n.push(l)):(s.number.push(r),i.push(Gs),n.push(parseFloat(l))),++r,qs)).split(qs);return{values:n,split:a,indexes:s,types:i}}function Zs(e){return ot(e).values}function Js(e){const{split:t,types:n}=ot(e),s=t.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=t[o],i[o]!==void 0){const a=n[o];a===Gs?r+=st(i[o]):a===Xs?r+=U.transform(i[o]):r+=i[o]}return r}}const ba=e=>typeof e=="number"?0:U.test(e)?U.getAnimatableNone(e):e;function wa(e){const t=Zs(e);return Js(e)(t.map(ba))}const be={test:ya,parse:Zs,createTransformer:Js,getAnimatableNone:wa};function an(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ta({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=an(l,a,e+1/3),r=an(l,a,e),o=an(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function St(e,t){return n=>n>0?t:e}const $=(e,t,n)=>e+(t-e)*n,ln=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},Sa=[rn,Ee,Ne],Pa=e=>Sa.find(t=>t.test(e));function Qs(e){const t=Pa(e);if(Re(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Ne&&(n=Ta(n)),n}const ei=(e,t)=>{const n=Qs(e),s=Qs(t);if(!n||!s)return St(e,t);const i={...n};return r=>(i.red=ln(n.red,s.red,r),i.green=ln(n.green,s.green,r),i.blue=ln(n.blue,s.blue,r),i.alpha=$(n.alpha,s.alpha,r),Ee.transform(i))},cn=new Set(["none","hidden"]);function Ea(e,t){return cn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ca(e,t){return n=>$(e,t,n)}function un(e){return typeof e=="number"?Ca:typeof e=="string"?tn(e)?St:U.test(e)?ei:ka:Array.isArray(e)?ti:typeof e=="object"?U.test(e)?ei:Ma:St}function ti(e,t){const n=[...e],s=n.length,i=e.map((r,o)=>un(r)(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Ma(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=un(e[i])(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Aa(e,t){const n=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const r=t.types[i],o=e.indexes[r][s[r]],a=e.values[o]??0;n[i]=a,s[r]++}return n}const ka=(e,t)=>{const n=be.createTransformer(t),s=ot(e),i=ot(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?cn.has(e)&&!i.values.length||cn.has(t)&&!s.values.length?Ea(e,t):Qe(ti(Aa(s,i),i.values),n):(Re(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),St(e,t))};function ni(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?$(e,t,n):un(e)(e,t)}const Va=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>I.update(t,n),stop:()=>ve(t),now:()=>Y.isProcessing?Y.timestamp:Z.now()}},si=(e,t,n=10)=>{let s="";const i=Math.max(Math.round(t/n),2);for(let r=0;r<i;r++)s+=Math.round(e(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Pt=2e4;function dn(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Pt;)t+=n,s=e.next(t);return t>=Pt?1/0:t}function La(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(dn(s),Pt);return{type:"keyframes",ease:r=>s.next(i*r).value/t,duration:oe(i)}}const ja=5;function ii(e,t,n){const s=Math.max(t-ja,0);return Ms(n-e(s),t-s)}const B={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},hn=.001;function Da({duration:e=B.duration,bounce:t=B.bounce,velocity:n=B.velocity,mass:s=B.mass}){let i,r;Re(e<=ie(B.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=he(B.minDamping,B.maxDamping,o),e=he(B.minDuration,B.maxDuration,oe(e)),o<1?(i=u=>{const c=u*o,d=c*e,h=c-n,m=fn(u,o),p=Math.exp(-d);return hn-h/m*p},r=u=>{const d=u*o*e,h=d*n+n,m=Math.pow(o,2)*Math.pow(u,2)*e,p=Math.exp(-d),y=fn(Math.pow(u,2),o);return(-i(u)+hn>0?-1:1)*((h-m)*p)/y}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-hn+c*d},r=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=Ia(i,r,a);if(e=ie(e),isNaN(l))return{stiffness:B.stiffness,damping:B.damping,duration:e};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:e}}}const Ra=12;function Ia(e,t,n){let s=n;for(let i=1;i<Ra;i++)s=s-e(s)/t(s);return s}function fn(e,t){return e*Math.sqrt(1-t*t)}const Na=["duration","bounce"],$a=["stiffness","damping","mass"];function oi(e,t){return t.some(n=>e[n]!==void 0)}function Ba(e){let t={velocity:B.velocity,stiffness:B.stiffness,damping:B.damping,mass:B.mass,isResolvedFromDuration:!1,...e};if(!oi(e,$a)&&oi(e,Na))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*he(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:B.mass,stiffness:i,damping:r}}else{const n=Da(e);t={...t,...n,mass:B.mass},t.isResolvedFromDuration=!0}return t}function Et(e=B.visualDuration,t=B.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:m}=Ba({...n,velocity:-oe(n.velocity||0)}),p=h||0,y=u/(2*Math.sqrt(l*c)),v=o-r,x=oe(Math.sqrt(l/c)),b=Math.abs(v)<5;s||(s=b?B.restSpeed.granular:B.restSpeed.default),i||(i=b?B.restDelta.granular:B.restDelta.default);let w;if(y<1){const T=fn(x,y);w=M=>{const D=Math.exp(-y*x*M);return o-D*((p+y*x*v)/T*Math.sin(T*M)+v*Math.cos(T*M))}}else if(y===1)w=T=>o-Math.exp(-x*T)*(v+(p+x*v)*T);else{const T=x*Math.sqrt(y*y-1);w=M=>{const D=Math.exp(-y*x*M),P=Math.min(T*M,300);return o-D*((p+y*x*v)*Math.sinh(P)+T*v*Math.cosh(P))/T}}const C={calculatedDuration:m&&d||null,next:T=>{const M=w(T);if(m)a.done=T>=d;else{let D=T===0?p:0;y<1&&(D=T===0?ie(p):ii(w,T,M));const P=Math.abs(D)<=s,k=Math.abs(o-M)<=i;a.done=P&&k}return a.value=a.done?o:M,a},toString:()=>{const T=Math.min(dn(C),Pt),M=si(D=>C.next(T*D).value,T,30);return T+"ms "+M},toTransition:()=>{}};return C}Et.applyToOptions=e=>{const t=La(e,100,Et);return e.ease=t.ease,e.duration=ie(t.duration),e.type="keyframes",e};function mn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],h={done:!1,value:d},m=P=>a!==void 0&&P<a||l!==void 0&&P>l,p=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let y=n*t;const v=d+y,x=o===void 0?v:o(v);x!==v&&(y=x-d);const b=P=>-y*Math.exp(-P/s),w=P=>x+b(P),C=P=>{const k=b(P),F=w(P);h.done=Math.abs(k)<=u,h.value=h.done?x:F};let T,M;const D=P=>{m(h.value)&&(T=P,M=Et({keyframes:[h.value,p(h.value)],velocity:ii(w,P,h.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:P=>{let k=!1;return!M&&T===void 0&&(k=!0,C(P),D(P)),T!==void 0&&P>=T?M.next(P-T):(!k&&C(P),h)}}}function Fa(e,t,n){const s=[],i=n||ge.mix||ni,r=e.length-1;for(let o=0;o<r;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||se:t;a=Qe(l,a)}s.push(a)}return s}function Oa(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;if(pe(r===t.length,"Both input and output ranges must be the same length","range-length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Fa(t,s,i),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const h=et(e[d],e[d+1],c);return a[d](h)};return n?c=>u(he(e[0],e[r-1],c)):u}function Wa(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=et(0,t,s);e.push($(n,1,i))}}function Ua(e){const t=[0];return Wa(t,e.length-1),t}function Ha(e,t){return e.map(n=>n*t)}function za(e,t){return e.map(()=>t||$s).splice(0,e.length-1)}function $e({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=sa(s)?s.map(Os):Os(s),r={done:!1,value:t[0]},o=Ha(n&&n.length===t.length?n:Ua(t),e),a=Oa(o,t,{ease:Array.isArray(i)?i:za(t,i)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}const Ka=e=>e!==null;function pn(e,{repeat:t,repeatType:n="loop"},s,i=1){const r=e.filter(Ka),a=i<0||t&&n!=="loop"&&t%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Ya={decay:mn,inertia:mn,tween:$e,keyframes:$e,spring:Et};function ri(e){typeof e.type=="string"&&(e.type=Ya[e.type])}class gn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Ga=e=>e/100;class yn extends gn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Z.now()&&this.tick(Z.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ri(t);const{type:n=$e,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t;let{keyframes:a}=t;const l=n||$e;process.env.NODE_ENV!=="production"&&l!==$e&&pe(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==$e&&typeof a[0]!="number"&&(this.mixKeyframes=Qe(Ga,ni(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=dn(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:h,repeatDelay:m,type:p,onUpdate:y,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let w=this.currentTime,C=s;if(d){const P=Math.min(this.currentTime,i)/a;let k=Math.floor(P),F=P%1;!F&&P>=1&&(F=1),F===1&&k--,k=Math.min(k,d+1),!!(k%2)&&(h==="reverse"?(F=1-F,m&&(F-=m/a)):h==="mirror"&&(C=o)),w=he(0,1,F)*a}const T=b?{done:!1,value:c[0]}:C.next(w);r&&(T.value=r(T.value));let{done:M}=T;!b&&l!==null&&(M=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return D&&p!==mn&&(T.value=pn(c,this.options,v,this.speed)),y&&y(T.value),D&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return oe(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+oe(t)}get time(){return oe(this.currentTime)}set time(t){var n;t=ie(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Z.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=oe(this.currentTime))}play(){var i,r;if(this.isStopped)return;const{driver:t=Va,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(r=(i=this.options).onPlay)==null||r.call(i);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),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(Z.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Xa(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ce=e=>e*180/Math.PI,_n=e=>{const t=Ce(Math.atan2(e[1],e[0]));return vn(t)},qa={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:_n,rotateZ:_n,skewX:e=>Ce(Math.atan(e[1])),skewY:e=>Ce(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},vn=e=>(e=e%360,e<0&&(e+=360),e),ai=_n,li=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ci=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Za={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:li,scaleY:ci,scale:e=>(li(e)+ci(e))/2,rotateX:e=>vn(Ce(Math.atan2(e[6],e[5]))),rotateY:e=>vn(Ce(Math.atan2(-e[2],e[0]))),rotateZ:ai,rotate:ai,skewX:e=>Ce(Math.atan(e[4])),skewY:e=>Ce(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function xn(e){return e.includes("scale")?1:0}function bn(e,t){if(!e||e==="none")return xn(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Za,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=qa,i=a}if(!i)return xn(t);const r=s[t],o=i[1].split(",").map(Qa);return typeof r=="function"?r(o):o[r]}const Ja=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return bn(n,t)};function Qa(e){return parseFloat(e.trim())}const Be=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Fe=new Set(Be),ui=e=>e===Ie||e===S,el=new Set(["x","y","z"]),tl=Be.filter(e=>!el.has(e));function nl(e){const t=[];return tl.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const we={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>bn(t,"x"),y:(e,{transform:t})=>bn(t,"y")};we.translateX=we.x,we.translateY=we.y;const Me=new Set;let wn=!1,Tn=!1,Sn=!1;function di(){if(Tn){const e=Array.from(Me).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const i=nl(s);i.length&&(n.set(s,i),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))==null||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Tn=!1,wn=!1,Me.forEach(e=>e.complete(Sn)),Me.clear()}function hi(){Me.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Tn=!0)})}function sl(){Sn=!0,hi(),di(),Sn=!1}class Pn{constructor(t,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Me.add(this),wn||(wn=!0,I.read(hi),I.resolveKeyframes(di))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:i}=this;if(t[0]===null){const r=i==null?void 0:i.get(),o=t[t.length-1];if(r!==void 0)t[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&r===void 0&&i.set(t[0])}Xa(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Me.delete(this)}cancel(){this.state==="scheduled"&&(Me.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const il=e=>e.startsWith("--");function ol(e,t,n){il(t)?e.style.setProperty(t,n):e.style[t]=n}const rl=Xt(()=>window.ScrollTimeline!==void 0),al={};function ll(e,t){const n=Xt(e);return()=>al[t]??n()}const fi=ll(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),rt=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,mi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rt([0,.65,.55,1]),circOut:rt([.55,0,1,.45]),backIn:rt([.31,.01,.66,-.59]),backOut:rt([.33,1.53,.69,.99])};function pi(e,t){if(e)return typeof e=="function"?fi()?si(e,t):"ease-out":Bs(e)?rt(e):Array.isArray(e)?e.map(n=>pi(n,t)||mi.easeOut):mi[e]}function cl(e,t,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=pi(a,i);Array.isArray(d)&&(c.easing=d);const h={delay:s,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(c,h)}function gi(e){return typeof e=="function"&&"applyToOptions"in e}function ul({type:e,...t}){return gi(e)&&fi()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class yi extends gn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t,pe(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=ul(t);this.animation=cl(n,s,i,u,r),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const c=pn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):ol(n,s,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,s,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(s=this.animation).commitStyles)==null||i.call(s))}get duration(){var n,s;const t=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return oe(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+oe(t)}get time(){return oe(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ie(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&rl()?(this.animation.timeline=t,se):n(this)}}const _i={anticipate:Rs,backInOut:Ds,circInOut:Ns};function dl(e){return e in _i}function hl(e){typeof e.ease=="string"&&dl(e.ease)&&(e.ease=_i[e.ease])}const En=10;class fl extends yi{constructor(t){hl(t),ri(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new yn({...o,autoplay:!1}),l=Math.max(En,Z.now()-this.startTime),u=he(0,En,l-En);n.setWithVelocity(a.sample(Math.max(0,l-u)).value,a.sample(l).value,u),a.stop()}}const vi=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(be.test(e)||e==="0")&&!e.startsWith("url("));function ml(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function pl(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],o=vi(i,t),a=vi(r,t);return Re(o===a,`You are trying to animate ${t} from "${i}" to "${r}". "${o?r:i}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:ml(e)||(n==="spring"||gi(n))&&s}function Cn(e){e.duration=0,e.type="keyframes"}const gl=new Set(["opacity","clipPath","filter","transform"]),yl=Xt(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function _l(e){var c;const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:r,type:o}=e;if(!(((c=t==null?void 0:t.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return yl()&&n&&gl.has(n)&&(n!=="transform"||!u)&&!l&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const vl=40;class xl extends gn{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){var p;super(),this.stop=()=>{var y,v;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=Z.now();const h={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:u,element:c,...d},m=(c==null?void 0:c.KeyframeResolver)||Pn;this.keyframeResolver=new m(a,(y,v,x)=>this.onKeyframesResolved(y,v,h,!x),l,u,c),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(t,n,s,i){var v,x;this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=s;this.resolvedAt=Z.now(),pl(t,r,o,a)||((ge.instantAnimations||!l)&&(c==null||c(pn(t,s,n))),t[0]=t[t.length-1],Cn(s),s.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>vl?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},m=!u&&_l(h),p=(x=(v=h.motionValue)==null?void 0:v.owner)==null?void 0:x.current,y=m?new fl({...h,element:p}):new yn(h);y.finished.then(()=>{this.notifyFinished()}).catch(se),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),sl()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function xi(e,t,n,s=0,i=1){const r=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const bl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wl(e){const t=bl.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}const Tl=4;function bi(e,t,n=1){pe(n<=Tl,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[s,i]=wl(e);if(!s)return;const r=window.getComputedStyle(t).getPropertyValue(s);if(r){const o=r.trim();return Ps(o)?parseFloat(o):o}return tn(i)?bi(i,t,n+1):i}const Sl={type:"spring",stiffness:500,damping:25,restSpeed:10},Pl=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),El={type:"keyframes",duration:.8},Cl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ml=(e,{keyframes:t})=>t.length>2?El:Fe.has(e)?e.startsWith("scale")?Pl(t[1]):Sl:Cl,Al=e=>e!==null;function kl(e,{repeat:t,repeatType:n="loop"},s){const i=e.filter(Al),r=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[r]}function wi(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function Mn(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?wi(n,e):n}function Vl({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const An=(e,t,n,s={},i,r)=>o=>{const a=Mn(s,e)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-ie(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:i};Vl(a)||Object.assign(c,Ml(e,c)),c.duration&&(c.duration=ie(c.duration)),c.repeatDelay&&(c.repeatDelay=ie(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Cn(c),c.delay===0&&(d=!0)),(ge.instantAnimations||ge.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(d=!0,Cn(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!r&&t.get()!==void 0){const h=kl(c.keyframes,a);if(h!==void 0){I.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new yn(c):new xl(c)};function Ti(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function kn(e,t,n,s){if(typeof t=="function"){const[i,r]=Ti(s);t=t(n!==void 0?n:e.custom,i,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,r]=Ti(s);t=t(n!==void 0?n:e.custom,i,r)}return t}function Oe(e,t,n){const s=e.getProps();return kn(s,t,n!==void 0?n:s.custom,e)}const Si=new Set(["width","height","top","left","right","bottom",...Be]),Pi=30,Ll=e=>!isNaN(parseFloat(e));class jl{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var r;const i=Z.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((r=this.events.change)==null||r.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Z.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Ll(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Zt(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new qt);const s=this.events[t].add(n);return t==="change"?()=>{s(),I.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Pi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Pi);return Ms(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ae(e,t){return new jl(e,t)}const Vn=e=>Array.isArray(e);function Dl(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ae(n))}function Rl(e){return Vn(e)?e[e.length-1]||0:e}function Il(e,t){const n=Oe(e,t);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Rl(r[o]);Dl(e,o,a)}}const G=e=>!!(e&&e.getVelocity);function Nl(e){return!!(G(e)&&e.add)}function Ln(e,t){const n=e.getValue("willChange");if(Nl(n))return n.add(t);if(!n&&ge.WillChange){const s=new ge.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function jn(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Ei="data-"+jn("framerAppearId");function Ci(e){return e.props[Ei]}function $l({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function Mi(e,t,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();r=r?wi(r,l):l;const u=r==null?void 0:r.reduceMotion;s&&(r=s);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in a){const m=e.getValue(h,e.latestValues[h]??null),p=a[h];if(p===void 0||d&&$l(d,h))continue;const y={delay:n,...Mn(r||{},h)},v=m.get();if(v!==void 0&&!m.isAnimating&&!Array.isArray(p)&&p===v&&!y.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const C=Ci(e);if(C){const T=window.MotionHandoffAnimation(C,h,I);T!==null&&(y.startTime=T,x=!0)}}Ln(e,h);const b=u??e.shouldReduceMotion;m.start(An(h,m,p,b&&Si.has(h)?{type:!1}:y,e,x));const w=m.animation;w&&c.push(w)}if(o){const h=()=>I.update(()=>{o&&Il(e,o)});c.length?Promise.all(c).then(h):h()}return c}function Dn(e,t,n={}){var l;const s=Oe(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(Mi(e,s,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:h}=i;return Bl(e,t,u,c,d,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[r,o]:[o,r];return u().then(()=>c())}else return Promise.all([r(),o(n.delay)])}function Bl(e,t,n=0,s=0,i=0,r=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Dn(l,t,{...o,delay:n+(typeof s=="function"?0:s)+xi(e.variantChildren,l,s,i,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Fl(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(r=>Dn(e,r,n));s=Promise.all(i)}else if(typeof t=="string")s=Dn(e,t,n);else{const i=typeof t=="function"?Oe(e,t,n.custom):t;s=Promise.all(Mi(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const Ol={test:e=>e==="auto",parse:e=>e},Ai=e=>t=>t.test(e),ki=[Ie,S,fe,xe,pa,ma,Ol],Vi=e=>ki.find(Ai(e));function Wl(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Cs(e):!0}const Ul=new Set(["brightness","contrast","saturate","opacity"]);function Hl(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(nn)||[];if(!s)return e;const i=n.replace(s,"");let r=Ul.has(t)?1:0;return s!==n&&(r*=100),t+"("+r+i+")"}const zl=/\b([a-z-]*)\(.*?\)/gu,Rn={...be,getAnimatableNone:e=>{const t=e.match(zl);return t?t.map(Hl).join(" "):e}},Li={...Ie,transform:Math.round},In={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,...{rotate:xe,rotateX:xe,rotateY:xe,rotateZ:xe,scale:Tt,scaleX:Tt,scaleY:Tt,scaleZ:Tt,skew:xe,skewX:xe,skewY:xe,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:nt,originX:Ys,originY:Ys,originZ:S},zIndex:Li,fillOpacity:nt,strokeOpacity:nt,numOctaves:Li},Kl={...In,color:U,backgroundColor:U,outlineColor:U,fill:U,stroke:U,borderColor:U,borderTopColor:U,borderRightColor:U,borderBottomColor:U,borderLeftColor:U,filter:Rn,WebkitFilter:Rn},ji=e=>Kl[e];function Di(e,t){let n=ji(e);return n!==Rn&&(n=be),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Yl=new Set(["auto","none","0"]);function Gl(e,t,n){let s=0,i;for(;s<e.length&&!i;){const r=e[s];typeof r=="string"&&!Yl.has(r)&&ot(r).values.length&&(i=e[s]),s++}if(i&&n)for(const r of t)e[r]=Di(n,i)}class Xl extends Pn{constructor(t,n,s,i,r){super(t,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),tn(d))){const h=bi(d,n.current);h!==void 0&&(t[c]=h),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Si.has(s)||t.length!==2)return;const[i,r]=t,o=Vi(i),a=Vi(r),l=zs(i),u=zs(r);if(l!==u&&we[s]){this.needsMeasurement=!0;return}if(o!==a)if(ui(o)&&ui(a))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else we[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)(t[i]===null||Wl(t[i]))&&s.push(i);s.length&&Gl(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=we[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=we[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const ql=new Set(["opacity","clipPath","filter","transform"]);function Ri(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const i=(n==null?void 0:n[e])??s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(s=>s!=null)}const Ii=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Nn(e){return Es(e)&&"offsetHeight"in e}const{schedule:$n}=Ws(queueMicrotask,!1),le={x:!1,y:!1};function Ni(){return le.x||le.y}function Zl(e){return e==="x"||e==="y"?le[e]?null:(le[e]=!0,()=>{le[e]=!1}):le.x||le.y?null:(le.x=le.y=!0,()=>{le.x=le.y=!1})}function $i(e,t){const n=Ri(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function Jl(e){return!(e.pointerType==="touch"||Ni())}function Ql(e,t,n={}){const[s,i,r]=$i(e,n);return s.forEach(o=>{let a=!1,l=!1,u;const c=()=>{o.removeEventListener("pointerleave",p)},d=v=>{u&&(u(v),u=void 0),c()},h=v=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,d(v))},m=()=>{a=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},p=v=>{if(v.pointerType!=="touch"){if(a){l=!0;return}d(v)}},y=v=>{if(!Jl(v))return;l=!1;const x=t(o,v);typeof x=="function"&&(u=x,o.addEventListener("pointerleave",p,i))};o.addEventListener("pointerenter",y,i),o.addEventListener("pointerdown",m,i)}),r}const Bi=(e,t)=>t?e===t?!0:Bi(e,t.parentElement):!1,Bn=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ec=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tc(e){return ec.has(e.tagName)||e.isContentEditable===!0}const nc=new Set(["INPUT","SELECT","TEXTAREA"]);function sc(e){return nc.has(e.tagName)||e.isContentEditable===!0}const Ct=new WeakSet;function Fi(e){return t=>{t.key==="Enter"&&e(t)}}function Fn(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ic=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Fi(()=>{if(Ct.has(n))return;Fn(n,"down");const i=Fi(()=>{Fn(n,"up")}),r=()=>Fn(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function Oi(e){return Bn(e)&&!Ni()}const Wi=new WeakSet;function oc(e,t,n={}){const[s,i,r]=$i(e,n),o=a=>{const l=a.currentTarget;if(!Oi(a)||Wi.has(a))return;Ct.add(l),n.stopPropagation&&Wi.add(a);const u=t(l,a),c=(m,p)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),Ct.has(l)&&Ct.delete(l),Oi(m)&&typeof u=="function"&&u(m,{success:p})},d=m=>{c(m,l===window||l===document||n.useGlobalTarget||Bi(l,m.target))},h=m=>{c(m,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",h,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Nn(a)&&(a.addEventListener("focus",u=>ic(u,i)),!tc(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function On(e){return Es(e)&&"ownerSVGElement"in e}const Mt=new WeakMap;let Te;const Ui=(e,t,n)=>(s,i)=>i&&i[0]?i[0][e+"Size"]:On(s)&&"getBBox"in s?s.getBBox()[t]:s[n],rc=Ui("inline","width","offsetWidth"),ac=Ui("block","height","offsetHeight");function lc({target:e,borderBoxSize:t}){var n;(n=Mt.get(e))==null||n.forEach(s=>{s(e,{get width(){return rc(e,t)},get height(){return ac(e,t)}})})}function cc(e){e.forEach(lc)}function uc(){typeof ResizeObserver>"u"||(Te=new ResizeObserver(cc))}function dc(e,t){Te||uc();const n=Ri(e);return n.forEach(s=>{let i=Mt.get(s);i||(i=new Set,Mt.set(s,i)),i.add(t),Te==null||Te.observe(s)}),()=>{n.forEach(s=>{const i=Mt.get(s);i==null||i.delete(t),i!=null&&i.size||Te==null||Te.unobserve(s)})}}const At=new Set;let We;function hc(){We=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};At.forEach(t=>t(e))},window.addEventListener("resize",We)}function fc(e){return At.add(e),We||hc(),()=>{At.delete(e),!At.size&&typeof We=="function"&&(window.removeEventListener("resize",We),We=void 0)}}function Hi(e,t){return typeof e=="function"?fc(e):dc(e,t)}function mc(e){return On(e)&&e.tagName==="svg"}const pc=[...ki,U,be],gc=e=>pc.find(Ai(e)),zi=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ue=()=>({x:zi(),y:zi()}),Ki=()=>({min:0,max:0}),H=()=>({x:Ki(),y:Ki()}),yc=new WeakMap;function kt(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function at(e){return typeof e=="string"||Array.isArray(e)}const Wn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Un=["initial",...Wn];function Vt(e){return kt(e.animate)||Un.some(t=>at(e[t]))}function Yi(e){return!!(Vt(e)||e.variants)}function _c(e,t,n){for(const s in t){const i=t[s],r=n[s];if(G(i))e.addValue(s,i);else if(G(r))e.addValue(s,Ae(i,{owner:e}));else if(r!==i)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(s);e.addValue(s,Ae(o!==void 0?o:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const Hn={current:null},Gi={current:!1},vc=typeof window<"u";function xc(){if(Gi.current=!0,!!vc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Hn.current=e.matches;e.addEventListener("change",t),t()}else Hn.current=!1}const Xi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Lt={};function qi(e){Lt=e}function bc(){return Lt}class wc{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Pn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=Z.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,I.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Vt(n),this.isVariantNode=Yi(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const p=h[m];u[m]!==void 0&&G(p)&&p.set(u[m])}}mount(t){var n,s;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,yc.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,r)=>this.bindToMotionValue(r,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Gi.current||xc(),this.shouldReduceMotion=Hn.current),process.env.NODE_ENV!=="production"&&Zt(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),ve(this.notifyUpdate),ve(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&ql.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,d=new yi({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:ie(c)}),h=o(d);this.valueSubscriptions.set(t,()=>{h(),d.cancel()});return}const s=Fe.has(t);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&I.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),r&&r(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Lt){const n=Lt[t];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(this)),this.features[t]){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):H()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Xi.length;s++){const i=Xi[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=t[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=_c(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=Ae(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(Ps(s)||Cs(s))?s=parseFloat(s):!gc(s)&&be.test(n)&&(s=Di(t,n)),this.setBaseTarget(t,G(s)?s.get():s)),G(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var r;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=kn(this.props,n,(r=this.presenceContext)==null?void 0:r.custom);o&&(s=o[t])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!G(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new qt),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){$n.render(this.render)}}class Zi extends wc{constructor(){super(...arguments),this.KeyframeResolver=Xl}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const s=t.style;return s?s[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;G(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Se{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Ji({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Tc({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Sc(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function zn(e){return e===void 0||e===1}function Kn({scale:e,scaleX:t,scaleY:n}){return!zn(e)||!zn(t)||!zn(n)}function ke(e){return Kn(e)||Qi(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Qi(e){return eo(e.x)||eo(e.y)}function eo(e){return e&&e!=="0%"}function jt(e,t,n){const s=e-n,i=t*s;return n+i}function to(e,t,n,s,i){return i!==void 0&&(e=jt(e,i,s)),jt(e,n,s)+t}function Yn(e,t=0,n=1,s,i){e.min=to(e.min,t,n,s,i),e.max=to(e.max,t,n,s,i)}function no(e,{x:t,y:n}){Yn(e.x,t.translate,t.scale,t.originPoint),Yn(e.y,n.translate,n.scale,n.originPoint)}const so=.999999999999,io=1.0000000000001;function Pc(e,t,n,s=!1){const i=n.length;if(!i)return;t.x=t.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ze(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,no(e,o)),s&&ke(r.latestValues)&&ze(e,r.latestValues))}t.x<io&&t.x>so&&(t.x=1),t.y<io&&t.y>so&&(t.y=1)}function He(e,t){e.min=e.min+t,e.max=e.max+t}function oo(e,t,n,s,i=.5){const r=$(e.min,e.max,i);Yn(e,t,n,r,s)}function ze(e,t){oo(e.x,t.x,t.scaleX,t.scale,t.originX),oo(e.y,t.y,t.scaleY,t.scale,t.originY)}function ro(e,t){return Ji(Sc(e.getBoundingClientRect(),t))}function Ec(e,t,n){const s=ro(e,n),{scroll:i}=t;return i&&(He(s.x,i.offset.x),He(s.y,i.offset.y)),s}const Cc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Mc=Be.length;function Ac(e,t,n){let s="",i=!0;for(let r=0;r<Mc;r++){const o=Be[r],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(o.startsWith("scale")?1:0);else{const u=parseFloat(a);l=o.startsWith("scale")?u===1:u===0}if(!l||n){const u=Ii(a,In[o]);if(!l){i=!1;const c=Cc[o]||o;s+=`${c}(${u}) `}n&&(t[o]=u)}}return s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}function Gn(e,t,n){const{style:s,vars:i,transformOrigin:r}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(Fe.has(l)){o=!0;continue}else if(Hs(l)){i[l]=u;continue}else{const c=Ii(u,In[l]);l.startsWith("origin")?(a=!0,r[l]=c):s[l]=c}}if(t.transform||(o||n?s.transform=Ac(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=r;s.transformOrigin=`${l} ${u} ${c}`}}function ao(e,{style:t,vars:n},s,i){const r=e.style;let o;for(o in t)r[o]=t[o];i==null||i.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function lo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const lt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(S.test(e))e=parseFloat(e);else return e;const n=lo(e,t.target.x),s=lo(e,t.target.y);return`${n}% ${s}%`}},kc={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,i=be.parse(e);if(i.length>5)return s;const r=be.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=$(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}},Xn={borderRadius:{...lt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lt,borderTopRightRadius:lt,borderBottomLeftRadius:lt,borderBottomRightRadius:lt,boxShadow:kc};function co(e,{layout:t,layoutId:n}){return Fe.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xn[e]||e==="opacity")}function qn(e,t,n){var o;const s=e.style,i=t==null?void 0:t.style,r={};if(!s)return r;for(const a in s)(G(s[a])||i&&G(i[a])||co(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(r[a]=s[a]);return r}function Vc(e){return window.getComputedStyle(e)}class Lc extends Zi{constructor(){super(...arguments),this.type="html",this.renderInstance=ao}readValueFromInstance(t,n){var s;if(Fe.has(n))return(s=this.projection)!=null&&s.isProjecting?xn(n):Ja(t,n);{const i=Vc(t),r=(Hs(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ro(t,n)}build(t,n,s){Gn(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return qn(t,n,s)}}const jc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Dc={offset:"strokeDashoffset",array:"strokeDasharray"};function Rc(e,t,n=1,s=0,i=!0){e.pathLength=1;const r=i?jc:Dc;e[r.offset]=`${-s}`,e[r.array]=`${t} ${n}`}const Ic=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function uo(e,{attrX:t,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},l,u,c){if(Gn(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete d.transformBox);for(const m of Ic)d[m]!==void 0&&(h[m]=d[m],delete d[m]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),i!==void 0&&Rc(d,i,r,o,!1)}const ho=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),fo=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Nc(e,t,n,s){ao(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(ho.has(i)?i:jn(i),t.attrs[i])}function mo(e,t,n){const s=qn(e,t,n);for(const i in e)if(G(e[i])||G(t[i])){const r=Be.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=e[i]}return s}class $c extends Zi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=H}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Fe.has(n)){const s=ji(n);return s&&s.default||0}return n=ho.has(n)?n:jn(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return mo(t,n,s)}build(t,n,s){uo(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,i){Nc(t,n,s,i)}mount(t){this.isSVGTag=fo(t.tagName),super.mount(t)}}const Bc=Un.length;function po(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?po(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Bc;n++){const s=Un[n],i=e.props[s];(at(i)||i===!1)&&(t[s]=i)}return t}function go(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const Fc=[...Wn].reverse(),Oc=Wn.length;function Wc(e){return t=>Promise.all(t.map(({animation:n,options:s})=>Fl(e,n,s)))}function Uc(e){let t=Wc(e),n=yo(),s=!0;const i=l=>(u,c)=>{var h;const d=Oe(e,c,l==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(d){const{transition:m,transitionEnd:p,...y}=d;u={...u,...y,...p}}return u};function r(l){t=l(e)}function o(l){const{props:u}=e,c=po(e.parent)||{},d=[],h=new Set;let m={},p=1/0;for(let v=0;v<Oc;v++){const x=Fc[v],b=n[x],w=u[x]!==void 0?u[x]:c[x],C=at(w),T=x===l?b.isActive:null;T===!1&&(p=v);let M=w===c[x]&&w!==u[x]&&C;if(M&&s&&e.manuallyAnimateOnMount&&(M=!1),b.protectedKeys={...m},!b.isActive&&T===null||!w&&!b.prevProp||kt(w)||typeof w=="boolean")continue;if(x==="exit"&&b.isActive&&T!==!0){b.prevResolvedValues&&(m={...m,...b.prevResolvedValues});continue}const D=Hc(b.prevProp,w);let P=D||x===l&&b.isActive&&!M&&C||v>p&&C,k=!1;const F=Array.isArray(w)?w:[w];let ee=F.reduce(i(x),{});T===!1&&(ee={});const{prevResolvedValues:de={}}=b,_e={...de,...ee},A=j=>{P=!0,h.has(j)&&(k=!0,h.delete(j)),b.needsAnimating[j]=!0;const R=e.getValue(j);R&&(R.liveStyle=!1)};for(const j in _e){const R=ee[j],ae=de[j];if(m.hasOwnProperty(j))continue;let ne=!1;Vn(R)&&Vn(ae)?ne=!go(R,ae):ne=R!==ae,ne?R!=null?A(j):h.add(j):R!==void 0&&h.has(j)?A(j):b.protectedKeys[j]=!0}b.prevProp=w,b.prevResolvedValues=ee,b.isActive&&(m={...m,...ee}),s&&e.blockInitialAnimation&&(P=!1);const W=M&&D;P&&(!W||k)&&d.push(...F.map(j=>{const R={type:x};if(typeof j=="string"&&s&&!W&&e.manuallyAnimateOnMount&&e.parent){const{parent:ae}=e,ne=Oe(ae,j);if(ae.enteringChildren&&ne){const{delayChildren:_}=ne.transition||{};R.delay=xi(ae.enteringChildren,e,_)}}return{animation:j,options:R}}))}if(h.size){const v={};if(typeof u.initial!="boolean"){const x=Oe(e,Array.isArray(u.initial)?u.initial[0]:u.initial);x&&x.transition&&(v.transition=x.transition)}h.forEach(x=>{const b=e.getBaseTarget(x),w=e.getValue(x);w&&(w.liveStyle=!0),v[x]=b??null}),d.push({animation:v})}let y=!!d.length;return s&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),s=!1,y?t(d):Promise.resolve()}function a(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(h=>{var m;return(m=h.animationState)==null?void 0:m.setActive(l,u)}),n[l].isActive=u;const c=o(l);for(const h in n)n[h].protectedKeys={};return c}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=yo()}}}function Hc(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!go(t,e):!1}function Ve(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yo(){return{animate:Ve(!0),whileInView:Ve(),whileHover:Ve(),whileTap:Ve(),whileDrag:Ve(),whileFocus:Ve(),exit:Ve()}}function _o(e,t){e.min=t.min,e.max=t.max}function ce(e,t){_o(e.x,t.x),_o(e.y,t.y)}function vo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const xo=1e-4,zc=1-xo,Kc=1+xo,bo=.01,Yc=0-bo,Gc=0+bo;function J(e){return e.max-e.min}function Xc(e,t,n){return Math.abs(e-t)<=n}function wo(e,t,n,s=.5){e.origin=s,e.originPoint=$(t.min,t.max,e.origin),e.scale=J(n)/J(t),e.translate=$(n.min,n.max,e.origin)-e.originPoint,(e.scale>=zc&&e.scale<=Kc||isNaN(e.scale))&&(e.scale=1),(e.translate>=Yc&&e.translate<=Gc||isNaN(e.translate))&&(e.translate=0)}function ct(e,t,n,s){wo(e.x,t.x,n.x,s?s.originX:void 0),wo(e.y,t.y,n.y,s?s.originY:void 0)}function To(e,t,n){e.min=n.min+t.min,e.max=e.min+J(t)}function qc(e,t,n){To(e.x,t.x,n.x),To(e.y,t.y,n.y)}function So(e,t,n){e.min=t.min-n.min,e.max=e.min+J(t)}function Dt(e,t,n){So(e.x,t.x,n.x),So(e.y,t.y,n.y)}function Po(e,t,n,s,i){return e-=t,e=jt(e,1/n,s),i!==void 0&&(e=jt(e,1/i,s)),e}function Zc(e,t=0,n=1,s=.5,i,r=e,o=e){if(fe.test(t)&&(t=parseFloat(t),t=$(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=$(r.min,r.max,s);e===r&&(a-=t),e.min=Po(e.min,t,n,a,i),e.max=Po(e.max,t,n,a,i)}function Eo(e,t,[n,s,i],r,o){Zc(e,t[n],t[s],t[i],t.scale,r,o)}const Jc=["x","scaleX","originX"],Qc=["y","scaleY","originY"];function Co(e,t,n,s){Eo(e.x,t,Jc,n?n.x:void 0,s?s.x:void 0),Eo(e.y,t,Qc,n?n.y:void 0,s?s.y:void 0)}function Mo(e){return e.translate===0&&e.scale===1}function Ao(e){return Mo(e.x)&&Mo(e.y)}function ko(e,t){return e.min===t.min&&e.max===t.max}function eu(e,t){return ko(e.x,t.x)&&ko(e.y,t.y)}function Vo(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Lo(e,t){return Vo(e.x,t.x)&&Vo(e.y,t.y)}function jo(e){return J(e.x)/J(e.y)}function Do(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function me(e){return[e("x"),e("y")]}function tu(e,t,n){let s="";const i=e.x.translate/t.x,r=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:h,skewX:m,skewY:p}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),d&&(s+=`rotateX(${d}deg) `),h&&(s+=`rotateY(${h}deg) `),m&&(s+=`skewX(${m}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Ro=["TopLeft","TopRight","BottomLeft","BottomRight"],nu=Ro.length,Io=e=>typeof e=="string"?parseFloat(e):e,No=e=>typeof e=="number"||S.test(e);function su(e,t,n,s,i,r){i?(e.opacity=$(0,n.opacity??1,iu(s)),e.opacityExit=$(t.opacity??1,0,ou(s))):r&&(e.opacity=$(t.opacity??1,n.opacity??1,s));for(let o=0;o<nu;o++){const a=`border${Ro[o]}Radius`;let l=$o(t,a),u=$o(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||No(l)===No(u)?(e[a]=Math.max($(Io(l),Io(u),s),0),(fe.test(u)||fe.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=$(t.rotate||0,n.rotate||0,s))}function $o(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const iu=Bo(0,.5,Is),ou=Bo(.5,.95,se);function Bo(e,t,n){return s=>s<e?0:s>t?1:n(et(e,t,s))}function ru(e,t,n){const s=G(e)?e:Ae(e);return s.start(An("",s,t,n)),s.animation}function ut(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}const au=(e,t)=>e.depth-t.depth;class lu{constructor(){this.children=[],this.isDirty=!1}add(t){Yt(this.children,t),this.isDirty=!0}remove(t){xt(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(au),this.isDirty=!1,this.children.forEach(t)}}function cu(e,t){const n=Z.now(),s=({timestamp:i})=>{const r=i-n;r>=t&&(ve(s),e(r-t))};return I.setup(s,!0),()=>ve(s)}function Rt(e){return G(e)?e.get():e}class uu{constructor(){this.members=[]}add(t){Yt(this.members,t);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===t||s===this.lead||s===this.prevLead)continue;const i=s.instance;i&&i.isConnected===!1&&s.isPresent!==!1&&!s.snapshot&&xt(this.members,s)}t.scheduleRender()}remove(t){if(xt(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const r=this.members[i],o=r.instance;if(r.isPresent!==!1&&(!o||o.isConnected!==!1)){s=r;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender();const i=s.options.layoutDependency,r=t.options.layoutDependency;if(!(i!==void 0&&r!==void 0&&i===r)){const l=s.instance;l&&l.isConnected===!1&&!s.snapshot||(t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:a}=t.options;a===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const It={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Zn=["","X","Y","Z"],du=1e3;let hu=0;function Jn(e,t,n,s){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),s&&(s[e]=0))}function Fo(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ci(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",I,!(i||r))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&Fo(s)}function Oo({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=hu++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(pu),this.nodes.forEach(vu),this.nodes.forEach(xu),this.nodes.forEach(gu)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new lu)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new qt),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=On(o)&&!mc(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,d=0;const h=()=>this.root.updateBlockedByResize=!1;I.read(()=>{d=window.innerWidth}),e(o,()=>{const m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,c&&c(),c=cu(h,250),It.hasAnimatedSinceResize&&(It.hasAnimatedSinceResize=!1,this.nodes.forEach(Ho)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Pu,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=u.getProps(),x=!this.targetLayout||!Lo(this.targetLayout,m),b=!d&&h;if(this.options.layoutRoot||this.resumeFrom||b||d&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...Mn(p,"layout"),onPlay:y,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(c,b)}else d||Ho(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ve(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(bu),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Fo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Wo);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Uo);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(_u),this.nodes.forEach(fu),this.nodes.forEach(mu)):this.nodes.forEach(Uo),this.clearAllSnapshots();const a=Z.now();Y.delta=he(0,1e3/60,a-Y.timestamp),Y.timestamp=a,Y.isProcessing=!0,en.update.process(Y),en.preRender.process(Y),en.render.process(Y),Y.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,$n.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(yu),this.sharedNodes.forEach(wu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,I.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){I.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!J(this.snapshot.measuredBox.x)&&!J(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=H(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ao(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||ke(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),Eu(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return H();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(Cu))){const{scroll:c}=this.root;c&&(He(a.x,c.offset.x),He(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=H();if(ce(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:h}=c;c!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&ce(a,o),He(a.x,d.offset.x),He(a.y,d.offset.y))}return a}applyTransform(o,a=!1){const l=H();ce(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ze(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),ke(c.latestValues)&&ze(l,c.latestValues)}return ke(this.latestValues)&&ze(l,this.latestValues),l}removeTransform(o){const a=H();ce(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ke(u.latestValues))continue;Kn(u.latestValues)&&u.updateSnapshot();const c=H(),d=u.measurePageBox();ce(c,d),Co(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return ke(this.latestValues)&&Co(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Y.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var m;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=Y.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=H(),this.targetWithTransforms=H()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qc(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ce(this.target,this.layout.layoutBox),no(this.target,this.targetDelta)):ce(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Kn(this.parent.latestValues)||Qi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=H(),this.relativeTargetOrigin=H(),Dt(this.relativeTargetOrigin,a,l),ce(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Y.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;ce(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;Pc(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=H());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vo(this.prevProjectionDelta.x,this.projectionDelta.x),vo(this.prevProjectionDelta.y,this.projectionDelta.y)),ct(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!Do(this.projectionDelta.x,this.prevProjectionDelta.x)||!Do(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ue(),this.projectionDelta=Ue(),this.projectionDeltaWithTransform=Ue()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Ue();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=H(),m=l?l.source:void 0,p=this.layout?this.layout.source:void 0,y=m!==p,v=this.getStack(),x=!v||v.members.length<=1,b=!!(y&&!x&&this.options.crossfade===!0&&!this.path.some(Su));this.animationProgress=0;let w;this.mixTargetDelta=C=>{const T=C/1e3;zo(d.x,o.x,T),zo(d.y,o.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Dt(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Tu(this.relativeTarget,this.relativeTargetOrigin,h,T),w&&eu(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=H()),ce(w,this.relativeTarget)),y&&(this.animationValues=c,su(c,u,this.latestValues,T,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(ve(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=I.update(()=>{It.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ae(0)),this.currentAnimation=ru(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(du),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&qo(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||H();const d=J(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=J(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}ce(a,l),ze(a,c),ct(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new uu),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Jn("z",o,u,this.animationValues);for(let c=0;c<Zn.length;c++)Jn(`rotate${Zn[c]}`,o,u,this.animationValues),Jn(`skew${Zn[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Rt(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Rt(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ke(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=tu(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),o.transform=d;const{x:h,y:m}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const p in Xn){if(c[p]===void 0)continue;const{correct:y,applyTo:v,isCSSVariable:x}=Xn[p],b=d==="none"?c[p]:y(c[p],u);if(v){const w=v.length;for(let C=0;C<w;C++)o[v[C]]=b}else x?this.options.visualElement.renderState.vars[p]=b:o[p]=b}this.options.layoutId&&(o.pointerEvents=u===this?Rt(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Wo),this.root.sharedNodes.clear()}}}function fu(e){e.updateLayout()}function mu(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=e.layout,{animationType:r}=e.options,o=t.source!==e.layout.source;r==="size"?me(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],m=J(h);h.min=s[d].min,h.max=h.min+m}):qo(r,t.layoutBox,s)&&me(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],m=J(s[d]);h.max=h.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const a=Ue();ct(a,s,t.layoutBox);const l=Ue();o?ct(l,e.applyTransform(i,!0),t.measuredBox):ct(l,s,t.layoutBox);const u=!Ao(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:m}=d;if(h&&m){const p=H();Dt(p,t.layoutBox,h.layoutBox);const y=H();Dt(y,s,m.layoutBox),Lo(p,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=p,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function pu(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function gu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function yu(e){e.clearSnapshot()}function Wo(e){e.clearMeasurements()}function Uo(e){e.isLayoutDirty=!1}function _u(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ho(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vu(e){e.resolveTargetDelta()}function xu(e){e.calcProjection()}function bu(e){e.resetSkewAndRotation()}function wu(e){e.removeLeadSnapshot()}function zo(e,t,n){e.translate=$(t.translate,0,n),e.scale=$(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ko(e,t,n,s){e.min=$(t.min,n.min,s),e.max=$(t.max,n.max,s)}function Tu(e,t,n,s){Ko(e.x,t.x,n.x,s),Ko(e.y,t.y,n.y,s)}function Su(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Pu={duration:.45,ease:[.4,0,.1,1]},Yo=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Go=Yo("applewebkit/")&&!Yo("chrome/")?Math.round:se;function Xo(e){e.min=Go(e.min),e.max=Go(e.max)}function Eu(e){Xo(e.x),Xo(e.y)}function qo(e,t,n){return e==="position"||e==="preserve-aspect"&&!Xc(jo(t),jo(n),.2)}function Cu(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Mu=Oo({attachResizeListener:(e,t)=>ut(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Qn={current:void 0},Zo=Oo({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Qn.current){const e=new Mu({});e.mount(window),e.setOptions({layoutScroll:!0}),Qn.current=e}return Qn.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Nt=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Jo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Au(...e){return t=>{let n=!1;const s=e.map(i=>{const r=Jo(i,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<s.length;i++){const r=s[i];typeof r=="function"?r():Jo(e[i],null)}}}}function ku(...e){return E.useCallback(Au(...e),e)}class Vu extends E.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,i=Nn(s)&&s.offsetWidth||0,r=Nn(s)&&s.offsetHeight||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left,o.bottom=r-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Lu({children:e,isPresent:t,anchorX:n,anchorY:s,root:i,pop:r}){var h;const o=g.useId(),a=g.useRef(null),l=g.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=g.useContext(Nt),c=((h=e.props)==null?void 0:h.ref)??(e==null?void 0:e.ref),d=ku(a,c);return g.useInsertionEffect(()=>{const{width:m,height:p,top:y,left:v,right:x,bottom:b}=l.current;if(t||r===!1||!a.current||!m||!p)return;const w=n==="left"?`left: ${v}`:`right: ${x}`,C=s==="bottom"?`bottom: ${b}`:`top: ${y}`;a.current.dataset.motionPopId=o;const T=document.createElement("style");u&&(T.nonce=u);const M=i??document.head;return M.appendChild(T),T.sheet&&T.sheet.insertRule(`
|
|
23
23
|
[data-motion-pop-id="${o}"] {
|
|
24
24
|
position: absolute !important;
|
|
25
|
-
width: ${
|
|
26
|
-
height: ${
|
|
25
|
+
width: ${m}px !important;
|
|
26
|
+
height: ${p}px !important;
|
|
27
27
|
${w}px !important;
|
|
28
28
|
${C}px !important;
|
|
29
29
|
}
|
|
30
|
-
`),()=>{M.contains(T)&&M.removeChild(T)}},[t]),f.jsx(ku,{isPresent:t,childRef:a,sizeRef:l,pop:r,children:r===!1?e:E.cloneElement(e,{ref:d})})}const Lu=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:r,mode:o,anchorX:a,anchorY:l,root:u})=>{const c=yt(ju),d=g.useId();let h=!0,p=g.useMemo(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:m=>{c.set(m,!0);for(const y of c.values())if(!y)return;s&&s()},register:m=>(c.set(m,!1),()=>c.delete(m))}),[n,c,s]);return r&&h&&(p={...p}),g.useMemo(()=>{c.forEach((m,y)=>c.set(y,!1))},[n]),E.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),e=f.jsx(Vu,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:u,children:e}),f.jsx(_t.Provider,{value:p,children:e})};function ju(){return new Map}function Qo(e=!0){const t=g.useContext(_t);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=t,r=g.useId();g.useEffect(()=>{if(e)return i(r)},[e]);const o=g.useCallback(()=>e&&s&&s(r),[r,s,e]);return!n&&s?[!1,o]:[!0]}const Nt=e=>e.key||"";function er(e){const t=[];return g.Children.forEach(e,n=>{g.isValidElement(n)&&t.push(n)}),t}const Le=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:r="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:u})=>{const[c,d]=Qo(o),h=g.useMemo(()=>er(e),[e]),p=o&&!c?[]:h.map(Nt),m=g.useRef(!0),y=g.useRef(h),v=yt(()=>new Map),x=g.useRef(new Set),[b,w]=g.useState(h),[C,T]=g.useState(h);Ss(()=>{m.current=!1,y.current=h;for(let P=0;P<C.length;P++){const k=Nt(C[P]);p.includes(k)?(v.delete(k),x.current.delete(k)):v.get(k)!==!0&&v.set(k,!1)}},[C,p.length,p.join("-")]);const M=[];if(h!==b){let P=[...h];for(let k=0;k<C.length;k++){const F=C[k],ee=Nt(F);p.includes(ee)||(P.splice(k,0,F),M.push(F))}return r==="wait"&&M.length&&(P=M),T(er(P)),w(h),null}process.env.NODE_ENV!=="production"&&r==="wait"&&C.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:D}=g.useContext(Kt);return f.jsx(f.Fragment,{children:C.map(P=>{const k=Nt(P),F=o&&!c?!1:h===C||p.includes(k),ee=()=>{if(x.current.has(k))return;if(x.current.add(k),v.has(k))v.set(k,!0);else return;let de=!0;v.forEach(_e=>{_e||(de=!1)}),de&&(D==null||D(),T(y.current),o&&(d==null||d()),s&&s())};return f.jsx(Lu,{isPresent:F,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:r,root:u,onExitComplete:F?void 0:ee,anchorX:a,anchorY:l,children:P},k)})})},tr=g.createContext({strict:!1}),nr={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let sr=!1;function Du(){if(sr)return;const e={};for(const t in nr)e[t]={isEnabled:n=>nr[t].some(s=>!!n[s])};qi(e),sr=!0}function ir(){return Du(),xc()}function Ru(e){const t=ir();for(const n in e)t[n]={...t[n],...e[n]};qi(t)}const Iu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function $t(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Iu.has(e)}let or=e=>!$t(e);function Nu(e){typeof e=="function"&&(or=t=>t.startsWith("on")?!$t(t):e(t))}try{Nu(require("@emotion/is-prop-valid").default)}catch{}function $u(e,t,n){const s={};for(const i in e)i==="values"&&typeof e.values=="object"||(or(i)||n===!0&&$t(i)||!t&&!$t(i)||e.draggable&&i.startsWith("onDrag"))&&(s[i]=e[i]);return s}const Bt=g.createContext({});function Bu(e,t){if(kt(e)){const{initial:n,animate:s}=e;return{initial:n===!1||at(n)?n:void 0,animate:at(s)?s:void 0}}return e.inherit!==!1?t:{}}function Fu(e){const{initial:t,animate:n}=Bu(e,g.useContext(Bt));return g.useMemo(()=>({initial:t,animate:n}),[rr(t),rr(n)])}function rr(e){return Array.isArray(e)?e.join(" "):e}const es=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ar(e,t,n){for(const s in t)!G(t[s])&&!co(s,n)&&(e[s]=t[s])}function Ou({transformTemplate:e},t){return g.useMemo(()=>{const n=es();return Gn(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Wu(e,t){const n=e.style||{},s={};return ar(s,n,e),Object.assign(s,Ou(e,t)),s}function Uu(e,t){const n={},s=Wu(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}const lr=()=>({...es(),attrs:{}});function Hu(e,t,n,s){const i=g.useMemo(()=>{const r=lr();return uo(r,t,fo(s),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};ar(r,e.style,e),i.style={...r,...i.style}}return i}const zu=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ts(e){return typeof e!="string"||e.includes("-")?!1:!!(zu.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ku(e,t,n,{latestValues:s},i,r=!1,o){const l=(o??ts(e)?Hu:Uu)(t,s,i,e),u=$u(t,typeof e=="string",r),c=e!==g.Fragment?{...u,...l,ref:n}:{},{children:d}=t,h=g.useMemo(()=>G(d)?d.get():d,[d]);return g.createElement(e,{...c,children:h})}function Yu({scrapeMotionValuesFromProps:e,createRenderState:t},n,s,i){return{latestValues:Gu(n,s,i,e),renderState:t()}}function Gu(e,t,n,s){const i={},r=s(e,{});for(const h in r)i[h]=Dt(r[h]);let{initial:o,animate:a}=e;const l=kt(e),u=Yi(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;if(d&&typeof d!="boolean"&&!At(d)){const h=Array.isArray(d)?d:[d];for(let p=0;p<h.length;p++){const m=kn(e,h[p]);if(m){const{transitionEnd:y,transition:v,...x}=m;for(const b in x){let w=x[b];if(Array.isArray(w)){const C=c?w.length-1:0;w=w[C]}w!==null&&(i[b]=w)}for(const b in y)i[b]=y[b]}}}return i}const cr=e=>(t,n)=>{const s=g.useContext(Bt),i=g.useContext(_t),r=()=>Yu(e,t,s,i);return n?r():yt(r)},Xu=cr({scrapeMotionValuesFromProps:qn,createRenderState:es}),qu=cr({scrapeMotionValuesFromProps:po,createRenderState:lr}),Zu=Symbol.for("motionComponentSymbol");function Ju(e,t,n){const s=g.useRef(n);g.useInsertionEffect(()=>{s.current=n});const i=g.useRef(null);return g.useCallback(r=>{var a;r&&((a=e.onMount)==null||a.call(e,r)),t&&(r?t.mount(r):t.unmount());const o=s.current;if(typeof o=="function")if(r){const l=o(r);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r)},[t])}const ur=g.createContext({});function Ke(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Qu(e,t,n,s,i,r){var w,C;const{visualElement:o}=g.useContext(Bt),a=g.useContext(tr),l=g.useContext(_t),u=g.useContext(It),c=u.reducedMotion,d=u.skipAnimations,h=g.useRef(null),p=g.useRef(!1);s=s||a.renderer,!h.current&&s&&(h.current=s(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:r}),p.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const m=h.current,y=g.useContext(ur);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&ed(h.current,n,i,y);const v=g.useRef(!1);g.useInsertionEffect(()=>{m&&v.current&&m.update(n,l)});const x=n[Ei],b=g.useRef(!!x&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,x))&&((C=window.MotionHasOptimisedAnimation)==null?void 0:C.call(window,x)));return Ss(()=>{p.current=!0,m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),b.current&&m.animationState&&m.animationState.animateChanges())}),g.useEffect(()=>{m&&(!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,x)}),b.current=!1),m.enteringChildren=void 0)}),m}function ed(e,t,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:dr(e.parent)),e.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&Ke(a),visualElement:e,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:c,layoutScroll:l,layoutRoot:u})}function dr(e){if(e)return e.options.allowProjection!==!1?e.projection:dr(e.parent)}function ns(e,{forwardMotionProps:t=!1,type:n}={},s,i){s&&Ru(s);const r=n?n==="svg":ts(e),o=r?qu:Xu;function a(u,c){let d;const h={...g.useContext(It),...u,layoutId:td(u)},{isStatic:p}=h,m=Fu(u),y=o(u,p);if(!p&&Ts){nd(h,s);const v=sd(h);d=v.MeasureLayout,m.visualElement=Qu(e,y,h,i,v.ProjectionNode,r)}return f.jsxs(Bt.Provider,{value:m,children:[d&&m.visualElement?f.jsx(d,{visualElement:m.visualElement,...h}):null,Ku(e,u,Ju(y,m.visualElement,c),y,p,t,r)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=g.forwardRef(a);return l[Zu]=e,l}function td({layoutId:e}){const t=g.useContext(Kt).id;return t&&e!==void 0?t+"-"+e:e}function nd(e,t){const n=g.useContext(tr).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const s="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Re(!1,s,"lazy-strict-mode"):me(!1,s,"lazy-strict-mode")}}function sd(e){const t=ir(),{drag:n,layout:s}=t;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n!=null&&n.isEnabled(e)||s!=null&&s.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function id(e,t){if(typeof Proxy>"u")return ns;const n=new Map,s=(r,o)=>ns(r,o,e,t),i=(r,o)=>(process.env.NODE_ENV!=="production"&&Zt(!1,"motion() is deprecated. Use motion.create() instead."),s(r,o));return new Proxy(i,{get:(r,o)=>o==="create"?s:(n.has(o)||n.set(o,ns(o,void 0,e,t)),n.get(o))})}const od=(e,t)=>t.isSVG??ts(e)?new Nc(t):new Vc(t,{allowProjection:e!==g.Fragment});class rd extends Se{constructor(t){super(t),t.animationState||(t.animationState=Wc(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();At(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let ad=0;class ld extends Se{constructor(){super(...arguments),this.id=ad++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const cd={animation:{Feature:rd},exit:{Feature:ld}};function dt(e){return{point:{x:e.pageX,y:e.pageY}}}const ud=e=>t=>Bn(t)&&e(t,dt(t));function ht(e,t,n,s){return ut(e,t,ud(n),s)}const hr=({current:e})=>e?e.ownerDocument.defaultView:null,fr=(e,t)=>Math.abs(e-t);function dd(e,t){const n=fr(e.x,t.x),s=fr(e.y,t.y);return Math.sqrt(n**2+s**2)}const pr=new Set(["auto","scroll"]);class mr{constructor(t,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=is(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,y=dd(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!y)return;const{point:v}=p,{timestamp:x}=Y;this.history.push({...v,timestamp:x});const{onStart:b,onMove:w}=this.handlers;m||(b&&b(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=ss(m,this.transformPagePoint),I.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:y,onSessionEnd:v,resumeAnimation:x}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=is(p.type==="pointercancel"?this.lastMoveEventInfo:ss(m,this.transformPagePoint),this.history);this.startEvent&&y&&y(p,b),v&&v(p,b)},!Bn(t))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=o,this.contextWindow=i||window;const l=dt(t),u=ss(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=Y;this.history=[{...c,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,is(u,this.history)),this.removeListeners=Qe(ht(this.contextWindow,"pointermove",this.handlePointerMove),ht(this.contextWindow,"pointerup",this.handlePointerUp),ht(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const s=getComputedStyle(n);(pr.has(s.overflowX)||pr.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const s=t===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:i.x-n.x,y:i.y-n.y};r.x===0&&r.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,i),I.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ve(this.updatePoint)}}function ss(e,t){return t?{point:t(e.point)}:e}function gr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function is({point:e},t){return{point:e,delta:gr(e,yr(t)),offset:gr(e,hd(t)),velocity:fd(t,.1)}}function hd(e){return e[0]}function yr(e){return e[e.length-1]}function fd(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const i=yr(e);for(;n>=0&&(s=e[n],!(i.timestamp-s.timestamp>ie(t)));)n--;if(!s)return{x:0,y:0};s===e[0]&&e.length>2&&i.timestamp-s.timestamp>ie(t)*2&&(s=e[1]);const r=oe(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function pd(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?$(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?$(n,e,s.max):Math.min(e,n)),e}function _r(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function md(e,{top:t,left:n,bottom:s,right:i}){return{x:_r(e.x,n,i),y:_r(e.y,t,s)}}function vr(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function gd(e,t){return{x:vr(e.x,t.x),y:vr(e.y,t.y)}}function yd(e,t){let n=.5;const s=J(e),i=J(t);return i>s?n=et(t.min,t.max-s,e.min):s>i&&(n=et(e.min,e.max-i,t.min)),he(0,1,n)}function _d(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const os=.35;function vd(e=os){return e===!1?e=0:e===!0&&(e=os),{x:xr(e,"left","right"),y:xr(e,"top","bottom")}}function xr(e,t,n){return{min:br(e,t),max:br(e,n)}}function br(e,t){return typeof e=="number"?e:e[t]||0}const xd=new WeakMap;class bd{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=H(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=d=>{n&&this.snapToCursor(dt(d).point),this.stopAnimation()},o=(d,h)=>{const{drag:p,dragPropagation:m,onDragStart:y}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ql(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pe(x=>{let b=this.getAxisMotionValue(x).get()||0;if(fe.test(b)){const{projection:w}=this.visualElement;if(w&&w.layout){const C=w.layout.layoutBox[x];C&&(b=J(C)*(parseFloat(b)/100))}}this.originPoint[x]=b}),y&&I.update(()=>y(d,h),!1,!0),Ln(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:y,onDrag:v}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:x}=h;if(m&&this.currentDirection===null){this.currentDirection=Td(x),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,x),this.updateAxis("y",h.point,x),this.visualElement.render(),v&&I.update(()=>v(d,h),!1,!0)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new mr(t,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:s,contextWindow:hr(this.visualElement),element:this.visualElement.current})}stop(t,n){const s=t||this.latestPointerEvent,i=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!s)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&I.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,s){const{drag:i}=this.getProps();if(!s||!Ft(t,i,this.currentDirection))return;const r=this.getAxisMotionValue(t);let o=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(o=pd(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){var r;const{dragConstraints:t,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)==null?void 0:r.layout,i=this.constraints;t&&Ke(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=md(s.layoutBox,t):this.constraints=!1,this.elastic=vd(n),i!==this.constraints&&!Ke(t)&&s&&this.constraints&&!this.hasMutatedConstraints&&pe(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=_d(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ke(t))return!1;const s=t.current;me(s!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Pc(s,i.root,this.visualElement.getTransformPagePoint());let o=gd(i.layout.layoutBox,r);if(n){const a=n(wc(o));this.hasMutatedConstraints=!!a,a&&(o=Ji(a))}return o}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=pe(c=>{if(!Ft(c,n,this.currentDirection))return;let d=l&&l[c]||{};o&&(d={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,m={type:"inertia",velocity:s?t[c]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...r,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return Ln(this.visualElement,t),s.start(An(t,s,0,n,this.visualElement,!1))}stopAnimation(){pe(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){pe(n=>{const{drag:s}=this.getProps();if(!Ft(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],l=r.get()||0;r.set(t[n]-$(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Ke(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};pe(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=yd({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),pe(o=>{if(!Ft(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set($(l,u,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;xd.set(this.visualElement,this);const t=this.visualElement.current,n=ht(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps(),h=u.target,p=h!==t&&nc(h);c&&d&&!p&&this.start(u)});let s;const i=()=>{const{dragConstraints:u}=this.getProps();Ke(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),s||(s=wd(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),I.read(i);const a=ut(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(pe(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=u[d].translate,h.set(h.get()+u[d].translate))}),this.visualElement.render())}));return()=>{a(),n(),o(),l&&l(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=os,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function wr(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function wd(e,t,n){const s=Hi(e,wr(n)),i=Hi(t,wr(n));return()=>{s(),i()}}function Ft(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Td(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Sd extends Se{constructor(t){super(t),this.removeGroupControls=se,this.removeListeners=se,this.controls=new bd(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||se}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const rs=e=>(t,n)=>{e&&I.update(()=>e(t,n),!1,!0)};class Pd extends Se{constructor(){super(...arguments),this.removePointerDownListener=se}onPointerDown(t){this.session=new mr(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hr(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:rs(t),onStart:rs(n),onMove:rs(s),onEnd:(r,o)=>{delete this.session,i&&I.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=ht(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let as=!1;class Ed extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=t;r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),as&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Rt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,{projection:o}=s;return o&&(o.isPresent=r,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),as=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==r?o.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?o.promote():o.relegate()||I.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),$n.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=t;as=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Tr(e){const[t,n]=Qo(),s=g.useContext(Kt);return f.jsx(Ed,{...e,layoutGroup:s,switchLayoutGroup:g.useContext(ur),isPresent:t,safeToRemove:n})}const Cd={pan:{Feature:Pd},drag:{Feature:Sd,ProjectionNode:Zo,MeasureLayout:Tr}};function Sr(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&I.postRender(()=>r(t,dt(t)))}class Md extends Se{mount(){const{current:t}=this.node;t&&(this.unmount=Jl(t,(n,s)=>(Sr(this.node,s,"Start"),i=>Sr(this.node,i,"End"))))}unmount(){}}class Ad extends Se{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Qe(ut(this.node.current,"focus",()=>this.onFocus()),ut(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Pr(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&I.postRender(()=>r(t,dt(t)))}class kd extends Se{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=ic(t,(i,r)=>(Pr(this.node,r,"Start"),(o,{success:a})=>Pr(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const ls=new WeakMap,cs=new WeakMap,Vd=e=>{const t=ls.get(e.target);t&&t(e)},Ld=e=>{e.forEach(Vd)};function jd({root:e,...t}){const n=e||document;cs.has(n)||cs.set(n,{});const s=cs.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(Ld,{root:e,...t})),s[i]}function Dd(e,t,n){const s=jd(t);return ls.set(e,n),s.observe(e),()=>{ls.delete(e),s.unobserve(e)}}const Rd={some:0,all:1};class Id extends Se{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Rd[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),h=u?c:d;h&&h(l)};return Dd(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Nd(t,n))&&this.startObserver()}unmount(){}}function Nd({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const $d={...cd,...{inView:{Feature:Id},tap:{Feature:kd},focus:{Feature:Ad},hover:{Feature:Md}},...Cd,...{layout:{ProjectionNode:Zo,MeasureLayout:Tr}}},N=id($d,od);function Bd(e){const t=yt(()=>Ae(e)),{isStatic:n}=g.useContext(It);if(n){const[,s]=g.useState(e);g.useEffect(()=>t.on("change",s),[])}return t}const te={backdrop:"action-sheet-module__backdrop___E-oM5",sheet:"action-sheet-module__sheet___zFFdl",handle:"action-sheet-module__handle___1dYRp",handleBar:"action-sheet-module__handleBar___3lmQ1",header:"action-sheet-module__header___oMW-U",title:"action-sheet-module__title___k5RM2",message:"action-sheet-module__message___jsCQT",actions:"action-sheet-module__actions___vgr-N",action:"action-sheet-module__action___kV71S",destructive:"action-sheet-module__destructive___N5M9i",actionIcon:"action-sheet-module__actionIcon___MXc9U",actionLabel:"action-sheet-module__actionLabel___dPWqE",cancel:"action-sheet-module__cancel___Oncun"},Er=({isOpen:e,onClose:t,title:n,message:s,actions:i})=>{const r=Bd(0),o=(l,u)=>{(u.offset.y>250||u.velocity.y>500)&&a()},a=()=>{t()};return f.jsx(Le,{children:e&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:te.backdrop,onClick:a}),f.jsxs(N.div,{className:te.sheet,role:"dialog","aria-modal":"true","aria-labelledby":n?"action-sheet-title":void 0,style:{y:r},drag:"y",dragConstraints:{top:0,bottom:0},dragElastic:{top:0,bottom:.5},onDragEnd:o,initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{type:"spring",damping:30,stiffness:300},children:[f.jsx("div",{className:te.handle,children:f.jsx("div",{className:te.handleBar})}),(n||s)&&f.jsxs("div",{className:te.header,children:[n&&f.jsx("h3",{className:te.title,children:n}),s&&f.jsx("p",{className:te.message,children:s})]}),f.jsx("div",{className:te.actions,children:i.map((l,u)=>f.jsxs("button",{className:`${te.action} ${l.destructive?te.destructive:""}`,onClick:()=>{l.onClick(),a()},disabled:l.disabled,children:[l.icon&&f.jsx("span",{className:te.actionIcon,children:l.icon}),f.jsx("span",{className:te.actionLabel,children:l.label})]},u))}),f.jsx("button",{className:te.cancel,onClick:a,children:"Cancel"})]})]})})},ft={alert:"alert-module__alert___phXsH",iconWrapper:"alert-module__iconWrapper___5mthT",statusIcon:"alert-module__statusIcon___Tyvx3",content:"alert-module__content___IvPaU",success:"alert-module__success___lM3GI",warning:"alert-module__warning___DfOAf",error:"alert-module__error___9GnhN",info:"alert-module__info___SotSQ",container:"alert-module__container___SGTJP"},Fd=({type:e="info",children:t})=>{const n={success:f.jsx(_s,{width:"20"}),warning:f.jsx(vs,{width:"20"}),error:f.jsx(Ht,{width:"20"}),info:f.jsx(xs,{width:"20"})};return f.jsxs("div",{className:`${ft.alert} ${ft[e]}`,role:e==="error"?"alert":"status","aria-live":e==="error"?"assertive":"polite","aria-atomic":"true",children:[f.jsx("div",{className:ft.iconWrapper,children:f.jsx("span",{className:ft.statusIcon,children:n[e]})}),f.jsx("div",{className:ft.content,children:t})]})},us={layout:"applayout-module__layout___d2c6J",mainArea:"applayout-module__mainArea___Q4Yhu",content:"applayout-module__content___lok2L"},Od=({topNav:e,sideNav:t,sideNavOpen:n=!1,sideNavExpandedWidth:s="280px",sideNavCollapsedWidth:i="50px",children:r})=>{const[o,a]=g.useState(!1);return g.useLayoutEffect(()=>{const l=()=>a(window.innerWidth<=768);return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[]),f.jsxs("div",{className:us.layout,children:[t,f.jsxs(N.div,{className:us.mainArea,animate:{marginLeft:!t||o?"0px":n?s:i},transition:{type:"spring",damping:25,stiffness:200},children:[e,f.jsx("main",{className:us.content,children:r})]})]})},Wd={box:"box-module__box___FP5Js"},Ud=g.forwardRef(({children:e,position:t="center",direction:n="vertical",reverse:s=!1},i)=>f.jsx("div",{ref:i,className:Wd.box,"data-position":t,"data-direction":n,"data-reverse":s?!0:void 0,children:e})),ds={triggerWrapper:"tooltip-module__triggerWrapper___mvvzS",tooltip:"tooltip-module__tooltip___mEmui",arrow:"tooltip-module__arrow___Kjrs-"},Cr=({children:e,message:t=void 0,position:n="top"})=>{const[s,i]=g.useState(!1),r=g.useRef(null),o=g.useRef(null),a=()=>window.matchMedia("(hover: none)").matches;g.useLayoutEffect(()=>{var p;if(!s)return;const d=(p=r.current)==null?void 0:p.getBoundingClientRect(),h=o.current;if(d&&h){const m=h.offsetWidth,y=h.offsetHeight,v=10,x={top:{x:d.left+d.width/2-m/2,y:d.top-y-v},bottom:{x:d.left+d.width/2-m/2,y:d.bottom+v},left:{x:d.left-m-v,y:d.top+d.height/2-y/2},right:{x:d.right+v,y:d.top+d.height/2-y/2}},{x:b,y:w}=x[n];o.current&&(o.current.style.setProperty("--tooltip-x",`${b+window.scrollX}px`),o.current.style.setProperty("--tooltip-y",`${w+window.scrollY}px`))}},[s,n]);const l=()=>{a()||t&&i(!0)},u=()=>{a()||i(!1)},c=d=>{a()&&(d.stopPropagation(),i(h=>!h))};return g.useEffect(()=>{if(!s)return;const d=h=>{r.current&&!r.current.contains(h.target)&&i(!1)};return document.addEventListener("click",d),()=>document.removeEventListener("click",d)},[s]),t?f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:r,className:ds.triggerWrapper,onClick:c,onMouseEnter:l,onMouseLeave:u,children:e}),Dr.createPortal(f.jsx(Le,{children:s&&f.jsxs(N.div,{ref:o,"data-position":n,initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},transition:{duration:.2},className:ds.tooltip,children:[t,f.jsx("div",{className:ds.arrow})]})}),document.body)]}):f.jsx(f.Fragment,{children:e})},Mr={button:"button-module__button___JyfZW",primary:"button-module__primary___ggjlO",secondary:"button-module__secondary___Q4I1z",icon:"button-module__icon___zcUnX"},Ar=({children:e,onClick:t,variant:n="primary",disabled:s=!1,disabledMessage:i,tooltipPosition:r="top",...o})=>f.jsx(Cr,{message:s?i:void 0,position:r,children:f.jsx("button",{className:`${Mr.button} ${Mr[n]}`,disabled:s,onClick:t,...o,children:e})}),je={container:"checkbox-module__container___26-ah",hiddenInput:"checkbox-module__hiddenInput___X-HH-",label:"checkbox-module__label___dV34E",box:"checkbox-module__box___UQZjc",checked:"checkbox-module__checked___mqwdo",labelText:"checkbox-module__labelText___ORrnL",disabled:"checkbox-module__disabled___E2BaQ"},Hd=({checked:e,onChange:t,label:n,disabled:s=!1,indeterminate:i=!1})=>{const r=g.useId();return f.jsxs("div",{className:`${je.container} ${s?je.disabled:""}`,children:[f.jsx("input",{id:r,type:"checkbox",checked:e,onChange:({target:o})=>t(o.checked),disabled:s,className:je.hiddenInput,"aria-checked":i?"mixed":e}),f.jsxs("label",{htmlFor:r,className:je.label,onClick:o=>o.stopPropagation(),children:[f.jsxs("div",{className:`${je.box} ${e||i?je.checked:""}`,children:[e&&!i&&f.jsx(Wr,{width:"20"}),i&&f.jsx(bs,{width:"20"})]}),n&&f.jsx("span",{onClick:o=>o.stopPropagation(),className:je.labelText,children:n})]})]})},ye={container:"container-module__container___g2I0w",fullWidth:"container-module__fullWidth___C7E9O",default:"container-module__default___VLaR3",outlined:"container-module__outlined___V7eh0",elevated:"container-module__elevated___TdnlI",flat:"container-module__flat___VVl-e",header:"container-module__header___EUrkl",headerContent:"container-module__headerContent___E9O0H",headerActions:"container-module__headerActions___PZYbZ",content:"container-module__content___U-qAz",footer:"container-module__footer___TrwGJ",paddingNone:"container-module__paddingNone___qFyWC",paddingSm:"container-module__paddingSm___geCvv",paddingMd:"container-module__paddingMd___oSyMG",paddingLg:"container-module__paddingLg___RMAPT"},zd=g.forwardRef(({children:e,header:t,headerActions:n,footer:s,variant:i="default",padding:r="md",fullWidth:o=!1},a)=>{const l=t||n,u=g.useId(),c={sm:"Sm",md:"Md",lg:"Lg",none:"None"};return f.jsxs("div",{ref:a,className:`${ye.container} ${ye[i]} ${ye[`padding${c[r]}`]} ${o?ye.fullWidth:""}`,role:t?"region":void 0,"aria-labelledby":t?u:void 0,children:[l&&f.jsxs("div",{className:ye.header,children:[f.jsx("div",{className:ye.headerContent,children:t}),n&&f.jsx("div",{className:ye.headerActions,children:n})]}),f.jsx("div",{className:ye.content,children:e}),s&&f.jsx("div",{className:ye.footer,children:s})]})}),Kd={floatingButton:"floating-menu-button-module__floatingButton___aAEgo"},Yd=({onClick:e,variant:t,ariaLabel:n})=>f.jsx("button",{className:Kd.floatingButton,onClick:e,"aria-label":n,children:t==="action"?f.jsx(ws,{width:"24"}):f.jsx(ys,{width:"24"})}),ce={wrapper:"styles-module__wrapper___-K643",container:"styles-module__container___rhMhO",containerNoLabel:"styles-module__containerNoLabel___BoOt6",border:"styles-module__border___Jsi91",fullWidth:"styles-module__fullWidth___uRgMU",label:"styles-module__label___gBE41",borderError:"styles-module__borderError___WH34m",borderDisabled:"styles-module__borderDisabled___wc6lw",labelError:"styles-module__labelError___m0PRR",helperText:"styles-module__helperText___cA3Se",errorText:"styles-module__errorText___QZJ5F"},Ot=({label:e,helperText:t,error:n,required:s=!1,disabled:i=!1,fullWidth:r=!1,children:o})=>{const a=g.useId();return f.jsxs("div",{className:`${ce.wrapper}`,children:[f.jsxs("div",{className:`${ce.container} ${e?"":ce.containerNoLabel}`,children:[e&&f.jsxs("label",{htmlFor:a,className:`${ce.label} ${n?ce.labelError:""}`,children:[e,s&&f.jsx("span",{children:"*"})]}),f.jsx("div",{className:`
|
|
31
|
-
${
|
|
32
|
-
${n?
|
|
33
|
-
${i?
|
|
34
|
-
${r?
|
|
35
|
-
`,children:o})]}),t&&f.jsx("span",{className:ce.helperText,children:t}),n&&f.jsx("p",{className:ce.errorText,role:"alert",children:n})]})},Ye={grid:"styles-module__grid___7DnDv",gapsm:"styles-module__gapsm___104P1",gapmd:"styles-module__gapmd___LvPjL",gaplg:"styles-module__gaplg___WkLKC",colspan1:"styles-module__colspan1___hoLRA",colspan2:"styles-module__colspan2___ABbjp",colspan3:"styles-module__colspan3___HDLYO",colspan4:"styles-module__colspan4___wPGDN",colspan5:"styles-module__colspan5___h1Pwu",colspan6:"styles-module__colspan6___v8-oh",colspan7:"styles-module__colspan7___thnCF",colspan8:"styles-module__colspan8___uz2bd",colspan9:"styles-module__colspan9___SHH9-",colspan10:"styles-module__colspan10___Hrx-M",colspan11:"styles-module__colspan11___Vz-iu",colspan12:"styles-module__colspan12___NZlug",colspanSm1:"styles-module__colspanSm1___4nU2j",colspanSm2:"styles-module__colspanSm2___8utrH",colspanSm3:"styles-module__colspanSm3___q-Z5-",colspanSm4:"styles-module__colspanSm4___M1MVJ",colspanSm5:"styles-module__colspanSm5___657CR",colspanSm6:"styles-module__colspanSm6___m8HyT",colspanSm7:"styles-module__colspanSm7___RAaMP",colspanSm8:"styles-module__colspanSm8___GSqva",colspanSm9:"styles-module__colspanSm9___DqPb8",colspanSm10:"styles-module__colspanSm10___62Hmc",colspanSm11:"styles-module__colspanSm11___YBUib",colspanSm12:"styles-module__colspanSm12___-7Lge",colspanMd1:"styles-module__colspanMd1___qoIET",colspanMd2:"styles-module__colspanMd2___4oSlF",colspanMd3:"styles-module__colspanMd3___EvoZw",colspanMd4:"styles-module__colspanMd4___QUMw1",colspanMd5:"styles-module__colspanMd5___waeN3",colspanMd6:"styles-module__colspanMd6___26eu8",colspanMd7:"styles-module__colspanMd7___-9aQs",colspanMd8:"styles-module__colspanMd8___xq4FB",colspanMd9:"styles-module__colspanMd9___VgYaP",colspanMd10:"styles-module__colspanMd10___a9j6x",colspanMd11:"styles-module__colspanMd11___c39ph",colspanMd12:"styles-module__colspanMd12___2RVdx",colspanLg1:"styles-module__colspanLg1___gF497",colspanLg2:"styles-module__colspanLg2___wTQ-p",colspanLg3:"styles-module__colspanLg3___oz40x",colspanLg4:"styles-module__colspanLg4___reQi-",colspanLg5:"styles-module__colspanLg5___8w62S",colspanLg6:"styles-module__colspanLg6___vaBci",colspanLg7:"styles-module__colspanLg7___jfjCY",colspanLg8:"styles-module__colspanLg8___P4I5D",colspanLg9:"styles-module__colspanLg9___jDDsP",colspanLg10:"styles-module__colspanLg10___0Wxt0",colspanLg11:"styles-module__colspanLg11___DcBbv",colspanLg12:"styles-module__colspanLg12___jGxHL"},Gd=e=>{const t=[];return console.log("def:",e),console.log("colspan:",e.colspan),typeof e.colspan=="object"&&(e.colspan.default&&t.push(Ye[`colspan${e.colspan.default}`]),e.colspan.sm&&t.push(Ye[`colspanSm${e.colspan.sm}`]),e.colspan.md&&t.push(Ye[`colspanMd${e.colspan.md}`]),e.colspan.lg&&t.push(Ye[`colspanLg${e.colspan.lg}`])),console.log("classes:",t),t.join(" ")},Xd=g.forwardRef(({gridDefinition:e,gap:t,children:n},s)=>{const i=g.Children.toArray(n);return f.jsx("div",{ref:s,className:`${Ye.grid} ${t?Ye[`gap${t}`]:""}`,children:i.map((r,o)=>{const a=e[o]??{};return f.jsx("div",{className:Gd(a),children:r},o)})})}),qd={header:"styles-module__header___XLj-v"},Zd=({children:e,variant:t="h1"})=>{const n=t;return f.jsx(n,{className:qd.header,children:e})},pt={inputContainer:"input-module__inputContainer___ulqhQ",input:"input-module__input___tBoBs",clearButton:"input-module__clearButton___GmMYO",suggestionsList:"input-module__suggestionsList___ym2TV",suggestionItem:"input-module__suggestionItem___xtYWE"},kr=({value:e,onChange:t,disabled:n=!1,suggestions:s=[],placeholder:i,hideClear:r=!1,label:o,error:a,required:l=!1,fullWidth:u=!1,helperText:c,...d})=>{const h=g.useId(),[p,m]=g.useState(!1),{onBlur:y,...v}=d,x=g.useMemo(()=>s.length===0||!e?[]:s.filter(b=>b.toLowerCase().includes(e.toLowerCase())),[s,e]);return f.jsx(Ot,{label:o,required:l,disabled:n,helperText:c,error:a,fullWidth:u,children:f.jsxs("div",{className:pt.inputContainer,children:[f.jsx(N.input,{id:h,className:pt.input,value:e,disabled:n,onChange:({target:b})=>t==null?void 0:t(b.value),placeholder:i,required:l,"aria-invalid":a?"true":"false","aria-describedby":a?`${h}-error`:c?`${h}-helper`:void 0,onFocus:()=>m(!0),onBlur:b=>{setTimeout(()=>m(!1),150),y==null||y(b)},...v}),!r&&e&&f.jsx("button",{className:pt.clearButton,onClick:()=>t==null?void 0:t(""),"aria-label":"Clear input",type:"button",children:f.jsx(zt,{width:"20",strokeWidth:2.5})}),f.jsx(Le,{children:p&&x.length>0&&f.jsx(N.ul,{className:pt.suggestionsList,role:"listbox","aria-label":"Suggestions",initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.2},children:x.map(b=>f.jsx("li",{role:"option","aria-selected":e===b,className:pt.suggestionItem,onClick:()=>{t==null||t(b),m(!1)},children:b},b))})})]})})},Ge={overlay:"modal-module__overlay___z2GxJ",modal:"modal-module__modal___RJmct",header:"modal-module__header___KlpKY",close:"modal-module__close___ELArH",content:"modal-module__content___OMS8T",footer:"modal-module__footer___rF7ly"},Jd=({isVisible:e,onClose:t,size:n="m",header:s,footer:i,children:r})=>{const o=g.useRef(null);return g.useLayoutEffect(()=>{if(!e)return;const a=o.current;if(!a)return;const l=a.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),u=l[0],c=l[l.length-1],d=h=>{h.key==="Tab"&&(h.shiftKey?document.activeElement===u&&(h.preventDefault(),c==null||c.focus()):document.activeElement===c&&(h.preventDefault(),u==null||u.focus()))};return u==null||u.focus(),document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[e]),g.useLayoutEffect(()=>{if(!e)return;const a=l=>{l.key==="Escape"&&t()};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e,t]),f.jsx(Le,{children:e&&f.jsx(N.div,{id:"overlay",className:Ge.overlay,role:"dialog","aria-modal":"true","aria-labelledby":"modal-header",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,children:f.jsxs(N.div,{id:"modal",ref:o,className:Ge.modal,onClick:a=>a.stopPropagation(),"data-size":n,initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},transition:{duration:.3},exit:{opacity:0,scale:0},children:[f.jsxs(N.div,{id:"header",className:Ge.header,onClick:a=>a.stopPropagation(),children:[s,f.jsx(N.button,{className:Ge.close,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.2},onClick:t,"aria-label":"Close Modal",type:"button",children:f.jsx(zt,{width:"24"})})]}),f.jsx(N.div,{id:"content",className:Ge.content,onClick:a=>a.stopPropagation(),children:r}),i&&f.jsx(N.div,{id:"footer",className:Ge.footer,onClick:a=>a.stopPropagation(),children:i})]})})})},Q={container:"select-module__container___U4BrV",hiddenSelect:"select-module__hiddenSelect___qRfKA",control:"select-module__control___qogxN",disabled:"select-module__disabled___kYpJI",value:"select-module__value___sRnlS",placeholder:"select-module__placeholder___qhzG5",arrow:"select-module__arrow___LWj9s",menu:"select-module__menu___MHmhv",searchWrapper:"select-module__searchWrapper___gI2ic",list:"select-module__list___XICSu",item:"select-module__item___XHREC",selected:"select-module__selected___iSbaR",highlighted:"select-module__highlighted___OhCJO",checkbox:"select-module__checkbox___dD2H5",empty:"select-module__empty___i6OgM"},Qd=e=>{var _e;const{selectedOption:t,selectType:n="single",autoFilter:s=!1,options:i,onChange:r,placeholder:o="Select...",disabled:a=!1,name:l,required:u,label:c,helperText:d,error:h,fullWidth:p=!1}=e,m=g.useId(),[y,v]=g.useState(!1),[x,b]=g.useState(""),[w,C]=g.useState(null),T=g.useRef(null),M=g.useRef(null),D=g.useCallback(A=>{var W,q;if(!a){if(n==="multi"){const j=Array.isArray(t)?t:[],re=j.find(ne=>ne.value===A.value)?j.filter(ne=>ne.value!==A.value):[...j,A];r(re),(W=M.current)==null||W.focus()}else r(A),v(!1),(q=M.current)==null||q.blur();b("")}},[a,n,t,r]),P=g.useMemo(()=>i.filter(A=>A.label.toLowerCase().includes(x.toLowerCase())),[i,x]);g.useEffect(()=>{if(!y){C(null);return}const A=W=>{var q;switch(W.key){case"ArrowDown":W.preventDefault(),C(j=>{const R=j??-1;return R<P.length-1?R+1:0});break;case"ArrowUp":W.preventDefault(),C(j=>{const R=j??0;return R>0?R-1:P.length-1});break;case"Enter":W.preventDefault(),w!==null&&P[w]&&D(P[w]);break;case"Escape":W.preventDefault(),v(!1),(q=M.current)==null||q.blur();break}};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[y,P,w,D]),g.useEffect(()=>{if(!y)return;const A=W=>{var q;T.current&&!T.current.contains(W.target)&&(v(!1),(q=M.current)==null||q.blur())};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[y]);const k=()=>{a||v(A=>!A)},F=g.useMemo(()=>n==="multi"&&Array.isArray(t)?t.length>0?t.map(A=>A.label).join(", "):o:(t==null?void 0:t.label)||o,[t,n,o]),ee=n==="multi"?!Array.isArray(t)||t.length===0:!t,de=A=>n==="multi"&&Array.isArray(t)?t.some(W=>W.value===A.value):(t==null?void 0:t.value)===A.value;return f.jsx(Ot,{label:c,required:u,disabled:a,helperText:d,error:h,fullWidth:p,children:f.jsxs("div",{ref:T,className:Q.container,children:[f.jsx("select",{name:l,id:m,required:u,disabled:a,multiple:n==="multi",value:n==="multi"?t==null?void 0:t.map(A=>String(A.value)):((_e=t==null?void 0:t.value)==null?void 0:_e.toString())||"",className:Q.hiddenSelect,tabIndex:-1,"aria-hidden":"true",onChange:()=>{},children:i.map(A=>f.jsx("option",{value:A.value,children:A.label},A.value))}),f.jsxs("div",{ref:M,className:`${Q.control} ${a?Q.disabled:""}`,onClick:k,role:"combobox","aria-haspopup":"listbox","aria-expanded":y,"aria-controls":`${m}-listbox`,tabIndex:a?-1:0,onKeyDown:A=>{(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),y||k())},children:[f.jsx("span",{className:`${Q.value} ${ee?Q.placeholder:""}`,children:F}),f.jsx(N.span,{className:Q.arrow,animate:{rotate:y?180:0},transition:{duration:.2},children:"▼"})]}),f.jsx(Le,{children:y&&f.jsxs(N.div,{id:`${m}-listbox`,className:Q.menu,initial:{opacity:0,y:-4,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.95},transition:{duration:.15},role:"listbox","aria-label":c||"Select an option","aria-multiselectable":n==="multi",children:[s&&f.jsx("div",{className:Q.searchWrapper,children:f.jsx(kr,{value:x,onChange:b,placeholder:"Search...",hideClear:!0})}),f.jsx("div",{className:Q.list,children:P.length>0?P.map((A,W)=>{const q=de(A),j=W===w;return f.jsxs("div",{className:`${Q.item} ${q?Q.selected:""} ${j?Q.highlighted:""}`,onClick:R=>{R.stopPropagation(),D(A)},tabIndex:j?0:-1,onKeyDown:R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),D(A))},role:"option","aria-selected":q,children:[n==="multi"&&f.jsx("span",{className:Q.checkbox,"aria-hidden":!0,children:q?"✓":"○"}),A.label]},A.value)}):f.jsx("div",{className:Q.empty,children:"No options found"})})]})})]})})},ue={overlay:"sidenav-module__overlay___QDdKo",sidenav:"sidenav-module__sidenav___CnZmU",left:"sidenav-module__left___Qa1xG",right:"sidenav-module__right___4BYR2",collapsed:"sidenav-module__collapsed___jltGX",header:"sidenav-module__header___f3Sc9",item:"sidenav-module__item___5B09S",toggleButton:"sidenav-module__toggleButton___8Z7kQ",items:"sidenav-module__items___Az0kh",active:"sidenav-module__active___Lo-AM",itemIcon:"sidenav-module__itemIcon___i6GWq"},eh=({isOpen:e,items:t,onToggle:n,expandedWidth:s="280px",collapsedWidth:i="50px",position:r="left"})=>{const[o,a]=g.useState(()=>window.location.pathname.slice(1)||""),[l,u]=g.useState(!1);return g.useLayoutEffect(()=>{const c=()=>u(window.innerWidth<=768);return c(),window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]),g.useLayoutEffect(()=>{const c=d=>{d.key==="Escape"&&e&&n()};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[e,n]),l?f.jsx(Er,{isOpen:e,onClose:n,title:"Menu",actions:t.map(c=>({label:c.label,icon:c.icon,onClick:c.onClick,destructive:c.destructive}))}):f.jsxs(f.Fragment,{children:[e&&f.jsx("div",{className:ue.overlay,onClick:n,onKeyDown:c=>{c.key==="Enter"&&n()}}),f.jsxs(N.nav,{className:`${ue.sidenav} ${ue[r]} ${e?"":ue.collapsed}`,initial:!1,animate:{width:e?s:i},transition:{type:"spring",damping:25,stiffness:200},children:[f.jsx("div",{className:ue.header,children:f.jsx(N.button,{className:ue.toggleButton,onClick:n,whileHover:{scale:1.05},whileTap:{scale:.95},"aria-label":e?"Close menu":"Open menu",children:e?f.jsx(zt,{width:"24"}):f.jsx(ys,{width:"24"})})}),f.jsx("div",{className:ue.items,children:t.filter(c=>e||c.icon).map(c=>f.jsxs("button",{className:`${ue.item} ${c.label.toLowerCase()===o?ue.active:""}`,"aria-current":c.label===o?"page":void 0,onClick:()=>{c.type!=="action"&&a(c.label.toLowerCase()),c.onClick(),e&&n()},title:e?void 0:c.label,children:[c.icon&&f.jsx("span",{className:ue.itemIcon,children:c.icon}),e&&f.jsx("span",{className:ue.itemLabel,children:c.label})]},c.label))})]})]})};function th({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14"}))}const nh=E.forwardRef(th);function sh({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))}const ih=E.forwardRef(sh);function oh({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const rh=E.forwardRef(oh);function ah({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))}const lh=E.forwardRef(ah),Wt={container:"stepper-module__container___GYIxN",stepper:"stepper-module__stepper___44JDp",input:"stepper-module__input___9ZI6O"},ch=({label:e,helperText:t,error:n,required:s,value:i,onChange:r,min:o=0,max:a,step:l=1,disabled:u=!1})=>{const[c,d]=g.useState(i.toString()),h=u||i<=o,p=u||a!==void 0&&i>=a,m=()=>{if(h)return;const b=Math.max(o,i-l);r(b),d(b.toString())},y=()=>{if(p)return;const b=i+l,w=a!==void 0?Math.min(a,b):b;r(w),d(w.toString())},v=b=>{d(b)},x=()=>{const b=parseInt(c);if(isNaN(b)){d(i.toString());return}const w=a!==void 0?Math.min(a,Math.max(o,b)):Math.max(o,b);r(w),d(w.toString())};return f.jsx(Ot,{label:e,required:s,disabled:u,helperText:t,error:n,children:f.jsxs("div",{className:`${Wt.container}`,children:[f.jsx("button",{className:Wt.stepper,disabled:h,onClick:m,"aria-label":"Decrease value",type:"button",children:f.jsx(nh,{width:"20",strokeWidth:2.5})}),f.jsx("input",{className:Wt.input,value:c,onChange:b=>v(b.target.value),onBlur:x,disabled:u,type:"text",inputMode:"numeric",pattern:"[0-9]*","aria-label":"Value"}),f.jsx("button",{className:Wt.stepper,disabled:p,onClick:y,"aria-label":"Increase value",type:"button",children:f.jsx(rh,{width:"20",strokeWidth:2.5})})]})})},Pe={container:"toast-module__container___7m6vr",top:"toast-module__top___iVpue",bottom:"toast-module__bottom___Bt3N0",toast:"toast-module__toast___SOSDh",iconWrapper:"toast-module__iconWrapper___F-4yg",statusIcon:"toast-module__statusIcon___KjJ56",content:"toast-module__content___9ufP5",closeButton:"toast-module__closeButton___eMXm-",success:"toast-module__success___FYQI3",warning:"toast-module__warning___2XrO1",error:"toast-module__error___v44fd",info:"toast-module__info___tOY3D"},uh=({visible:e,onDismiss:t,timeout:n=5e3,position:s="top",status:i="info",children:r,dismissible:o=!0})=>{g.useEffect(()=>{if(!e||!n)return;const l=setTimeout(()=>{t()},n);return()=>clearTimeout(l)},[e,n,t]);const a={success:f.jsx(_s,{width:"20"}),warning:f.jsx(vs,{width:"20"}),error:f.jsx(Ht,{width:"20"}),info:f.jsx(xs,{width:"20"})};return f.jsx("div",{className:`${Pe.container} ${Pe[s]}`,children:f.jsx(Le,{children:e&&f.jsxs(N.div,{layout:!0,initial:{opacity:0,y:s==="top"?-50:50,scale:.8},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.8,x:100},transition:{duration:.3,ease:[.4,0,.2,1]},className:`${Pe.toast} ${Pe[i]}`,role:i==="error"?"alert":"status","aria-live":i==="error"?"assertive":"polite","aria-atomic":"true",children:[f.jsx("div",{className:Pe.iconWrapper,children:f.jsx("span",{className:Pe.statusIcon,children:a[i]})}),f.jsx("div",{className:Pe.content,children:r}),o&&f.jsx(N.button,{className:Pe.closeButton,onClick:t,whileHover:{scale:1.1},whileTap:{scale:.9},"aria-label":"Dismiss",children:f.jsx(Ht,{width:"20"})})]})})})},mt={wrapper:"toggle-module__wrapper___xb91q",label:"toggle-module__label___8-AlI",switch:"toggle-module__switch___9e0np",enabled:"toggle-module__enabled___3jPo5",handle:"toggle-module__handle___fiWwj"},dh=({label:e,value:t,onChange:n,disabled:s=!1})=>{const i=g.useRef(null),r=g.useId();return g.useLayoutEffect(()=>{i.current&&(t?i.current.style.setProperty("--toggle-direction","flex-end"):i.current.style.setProperty("--toggle-direction","flex-start"))},[t]),f.jsxs("div",{className:mt.wrapper,children:[f.jsx("span",{className:mt.label,children:e}),f.jsx(N.button,{ref:i,role:"switch","aria-checked":t,"aria-labelledby":r,className:`${mt.switch} ${t?mt.enabled:""}`,onClick:()=>n(!t),disabled:s,onKeyDown:o=>{(o.key===" "||o.key==="Enter")&&(o.preventDefault(),n(!t))},...!s&&{whileHover:{scale:1.1}},children:f.jsx(N.div,{layout:!0,className:mt.handle,initial:{opacity:0},animate:{opacity:1},transition:{type:"spring",stiffness:300,damping:15}})})]})},Vr=()=>{const[e,t]=g.useState(!1),[n,s]=g.useState(()=>{const r=localStorage.getItem("nova-ui-theme");return r||(window.matchMedia("(prefers-color-scheme: dark)").media?"dark":"light")});g.useLayoutEffect(()=>{document.documentElement.classList.remove("light","dark"),document.documentElement.classList.add(n),localStorage.setItem("nova-ui-theme",n)},[n]);const i=g.useCallback(r=>{if(e)return;const o=r.clientX,a=r.clientY;document.documentElement.style.setProperty("--x",`${o}px`),document.documentElement.style.setProperty("--y",`${a}px`);const l=()=>{s(c=>c==="dark"?"light":"dark")};if(!document.startViewTransition){l();return}t(!0),document.startViewTransition(l).finished.finally(()=>{t(!1)})},[e]);return{theme:n,isTransitioning:e,toggleTheme:i}},hh=()=>{const{theme:e,isTransitioning:t,toggleTheme:n}=Vr();return f.jsx(Ar,{variant:"icon",onClick:n,disabled:t,"aria-label":e==="dark"?"Switch to light mode":"Switch to dark mode",children:e==="dark"?f.jsx(lh,{width:"24"}):f.jsx(ih,{width:"24"})})},Xe={topnavContainer:"topnav-module__topnavContainer___TXXB4",topRow:"topnav-module__topRow___s-Ohm",header:"topnav-module__header___r3Y52",collapsibleContent:"topnav-module__collapsibleContent___oulCx",searchWrapper:"topnav-module__searchWrapper___Rdox0",themeWrapper:"topnav-module__themeWrapper___gx0Yd"},fh=({header:e,logo:t,logoClick:n,search:s})=>f.jsxs("nav",{className:Xe.topnavContainer,"aria-label":"Main navigation",children:[f.jsx("div",{className:Xe.topRow,children:f.jsxs("div",{className:Xe.header,children:[f.jsx("div",{onClick:n,style:{cursor:n?"pointer":"default"},children:t}),e]})}),f.jsxs("div",{className:Xe.collapsibleContent,children:[f.jsx("div",{className:Xe.searchWrapper,children:s}),f.jsx("div",{className:Xe.themeWrapper,children:f.jsx(hh,{})})]})]}),X={thumbnailWrapper:"viewer-module__thumbnailWrapper___iV-AM",thumbnail:"viewer-module__thumbnail___pk9Jf",hoverOverlay:"viewer-module__hoverOverlay___k04ev",expandIcon:"viewer-module__expandIcon___xm6pk",skeleton:"viewer-module__skeleton___h3Hzv",errorState:"viewer-module__errorState___gXQxU",errorIcon:"viewer-module__errorIcon___-qPTV",errorText:"viewer-module__errorText___UT4dg",retryButton:"viewer-module__retryButton___L-B3U",lightboxOverlay:"viewer-module__lightboxOverlay___jP4rl",closeButton:"viewer-module__closeButton___0rBK1",lightboxContent:"viewer-module__lightboxContent___i-2FK",lightboxMedia:"viewer-module__lightboxMedia___ZBgR-"},ph=({divRef:e,width:t,aspectRatio:n})=>f.jsx("div",{ref:e,className:X.thumbnailWrapper,style:{width:t,aspectRatio:n.toString()},children:f.jsx("div",{className:X.skeleton,"aria-busy":"true","aria-label":"Loading media"})}),Lr=({src:e,onError:t})=>{const[n,s]=g.useState(!0),[i,r]=g.useState(!1),[o,a]=g.useState(!1),[l,u]=g.useState(0),c=g.useCallback(()=>{u(d=>d+1)},[]);return g.useEffect(()=>{if(!e.length)return;s(!0),r(!1);const d=setTimeout(()=>{const m=new Error(`Media loading timed out: ${e}`);r(!0),s(!1),t==null||t(m)},1e4),h=e.endsWith(".mp4")||e.endsWith(".webm")||e.endsWith(".ogg");a(h);const p=h?document.createElement("video"):new Image;return p.src=e,p.onerror=()=>{const m=new Error(`Failed to load media: ${e}`);r(!0),t==null||t(m)},h?p.onloadeddata=()=>{clearTimeout(d),s(!1)}:p.onload=()=>{clearTimeout(d),s(!1)},()=>{p.onload=null,p.onloadeddata=null,p.onerror=null,clearTimeout(d)}},[e,l]),{isLoading:n,hasError:i,isVideo:o,reload:c}},mh=({src:e,alt:t,video:n={controls:!0,loop:!0,autoPlay:!0,muted:!0},thumbnailWidth:s="300px",onError:i,aspectRatio:r="9/16"})=>{const{isLoading:o,hasError:a,isVideo:l,reload:u}=Lr({src:e,onError:i}),[c,d]=g.useState(!1),h=g.useRef(null);return g.useLayoutEffect(()=>{var p;(p=h.current)==null||p.style.setProperty("--thumbnail-size",s)},[s]),g.useLayoutEffect(()=>{const p=m=>{m.key==="Escape"&&d(!1)};return c&&document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)}},[c]),o?f.jsx(ph,{divRef:h,aspectRatio:r,width:s}):a?f.jsxs("div",{ref:h,className:X.errorState,role:"alert",children:[f.jsx("span",{className:X.errorIcon,children:"⚠️"}),f.jsx("p",{className:X.errorText,children:"Failed to load media"}),f.jsx("button",{onClick:u,className:X.retryButton,children:"Retry"})]}):f.jsxs(f.Fragment,{children:[f.jsxs(N.div,{ref:h,className:X.thumbnailWrapper,whileHover:{scale:1.02},whileTap:{scale:.98},children:[l?f.jsx(N.video,{className:X.thumbnail,src:e,muted:!0,preload:"none",autoPlay:n.autoPlay,loop:n.loop,disablePictureInPicture:!0,initial:{opacity:0},animate:{opacity:1},onClick:()=>d(!0)}):f.jsx(N.img,{className:X.thumbnail,loading:"lazy",src:e,alt:t,initial:{opacity:0},animate:{opacity:1},onClick:()=>d(!0)}),f.jsx(N.div,{className:X.hoverOverlay,initial:{opacity:0},whileHover:{opacity:1},children:f.jsx("span",{className:X.expandIcon,children:"🔍"})})]}),f.jsx(Le,{children:c&&f.jsxs(N.div,{className:X.lightboxOverlay,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},onClick:()=>d(!1),children:[f.jsx(N.button,{className:X.closeButton,onClick:()=>d(!1),whileHover:{scale:1.1,rotate:90},transition:{duration:.2},"aria-label":"Close lightbox",children:"✕"}),f.jsx(N.div,{className:X.lightboxContent,onClick:p=>p.stopPropagation(),initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},transition:{duration:.3,ease:[.4,0,.2,1]},children:l?f.jsx("video",{preload:"none",className:X.lightboxMedia,src:e,controls:n.controls,loop:n.loop,autoPlay:n.autoPlay,muted:n.muted,children:f.jsx("track",{kind:"captions"})}):f.jsx("img",{className:X.lightboxMedia,src:e,alt:t})})]})})]})};L.Accordion=Xr,L.ActionSheet=Er,L.Alert=Fd,L.AppLayout=Od,L.Box=Ud,L.Button=Ar,L.Checkbox=Hd,L.Container=zd,L.FloatingButton=Yd,L.FormField=Ot,L.Grid=Xd,L.Header=Zd,L.Input=kr,L.Modal=Jd,L.Select=Qd,L.SideNav=eh,L.Stepper=ch,L.Toast=uh,L.Toggle=dh,L.Tooltip=Cr,L.TopNav=fh,L.Viewer=mh,L.useMediaLoader=Lr,L.useTheme=Vr,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
|
|
30
|
+
`),()=>{M.contains(T)&&M.removeChild(T)}},[t]),f.jsx(Vu,{isPresent:t,childRef:a,sizeRef:l,pop:r,children:r===!1?e:E.cloneElement(e,{ref:d})})}const ju=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:r,mode:o,anchorX:a,anchorY:l,root:u})=>{const c=_t(Du),d=g.useId();let h=!0,m=g.useMemo(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:p=>{c.set(p,!0);for(const y of c.values())if(!y)return;s&&s()},register:p=>(c.set(p,!1),()=>c.delete(p))}),[n,c,s]);return r&&h&&(m={...m}),g.useMemo(()=>{c.forEach((p,y)=>c.set(y,!1))},[n]),E.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),e=f.jsx(Lu,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:u,children:e}),f.jsx(vt.Provider,{value:m,children:e})};function Du(){return new Map}function Qo(e=!0){const t=g.useContext(vt);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=t,r=g.useId();g.useEffect(()=>{if(e)return i(r)},[e]);const o=g.useCallback(()=>e&&s&&s(r),[r,s,e]);return!n&&s?[!1,o]:[!0]}const $t=e=>e.key||"";function er(e){const t=[];return g.Children.forEach(e,n=>{g.isValidElement(n)&&t.push(n)}),t}const Le=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:r="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:u})=>{const[c,d]=Qo(o),h=g.useMemo(()=>er(e),[e]),m=o&&!c?[]:h.map($t),p=g.useRef(!0),y=g.useRef(h),v=_t(()=>new Map),x=g.useRef(new Set),[b,w]=g.useState(h),[C,T]=g.useState(h);Ss(()=>{p.current=!1,y.current=h;for(let P=0;P<C.length;P++){const k=$t(C[P]);m.includes(k)?(v.delete(k),x.current.delete(k)):v.get(k)!==!0&&v.set(k,!1)}},[C,m.length,m.join("-")]);const M=[];if(h!==b){let P=[...h];for(let k=0;k<C.length;k++){const F=C[k],ee=$t(F);m.includes(ee)||(P.splice(k,0,F),M.push(F))}return r==="wait"&&M.length&&(P=M),T(er(P)),w(h),null}process.env.NODE_ENV!=="production"&&r==="wait"&&C.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:D}=g.useContext(Kt);return f.jsx(f.Fragment,{children:C.map(P=>{const k=$t(P),F=o&&!c?!1:h===C||m.includes(k),ee=()=>{if(x.current.has(k))return;if(x.current.add(k),v.has(k))v.set(k,!0);else return;let de=!0;v.forEach(_e=>{_e||(de=!1)}),de&&(D==null||D(),T(y.current),o&&(d==null||d()),s&&s())};return f.jsx(ju,{isPresent:F,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:r,root:u,onExitComplete:F?void 0:ee,anchorX:a,anchorY:l,children:P},k)})})},tr=g.createContext({strict:!1}),nr={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let sr=!1;function Ru(){if(sr)return;const e={};for(const t in nr)e[t]={isEnabled:n=>nr[t].some(s=>!!n[s])};qi(e),sr=!0}function ir(){return Ru(),bc()}function Iu(e){const t=ir();for(const n in e)t[n]={...t[n],...e[n]};qi(t)}const Nu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Bt(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Nu.has(e)}let or=e=>!Bt(e);function $u(e){typeof e=="function"&&(or=t=>t.startsWith("on")?!Bt(t):e(t))}try{$u(require("@emotion/is-prop-valid").default)}catch{}function Bu(e,t,n){const s={};for(const i in e)i==="values"&&typeof e.values=="object"||(or(i)||n===!0&&Bt(i)||!t&&!Bt(i)||e.draggable&&i.startsWith("onDrag"))&&(s[i]=e[i]);return s}const Ft=g.createContext({});function Fu(e,t){if(Vt(e)){const{initial:n,animate:s}=e;return{initial:n===!1||at(n)?n:void 0,animate:at(s)?s:void 0}}return e.inherit!==!1?t:{}}function Ou(e){const{initial:t,animate:n}=Fu(e,g.useContext(Ft));return g.useMemo(()=>({initial:t,animate:n}),[rr(t),rr(n)])}function rr(e){return Array.isArray(e)?e.join(" "):e}const es=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ar(e,t,n){for(const s in t)!G(t[s])&&!co(s,n)&&(e[s]=t[s])}function Wu({transformTemplate:e},t){return g.useMemo(()=>{const n=es();return Gn(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Uu(e,t){const n=e.style||{},s={};return ar(s,n,e),Object.assign(s,Wu(e,t)),s}function Hu(e,t){const n={},s=Uu(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}const lr=()=>({...es(),attrs:{}});function zu(e,t,n,s){const i=g.useMemo(()=>{const r=lr();return uo(r,t,fo(s),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};ar(r,e.style,e),i.style={...r,...i.style}}return i}const Ku=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ts(e){return typeof e!="string"||e.includes("-")?!1:!!(Ku.indexOf(e)>-1||/[A-Z]/u.test(e))}function Yu(e,t,n,{latestValues:s},i,r=!1,o){const l=(o??ts(e)?zu:Hu)(t,s,i,e),u=Bu(t,typeof e=="string",r),c=e!==g.Fragment?{...u,...l,ref:n}:{},{children:d}=t,h=g.useMemo(()=>G(d)?d.get():d,[d]);return g.createElement(e,{...c,children:h})}function Gu({scrapeMotionValuesFromProps:e,createRenderState:t},n,s,i){return{latestValues:Xu(n,s,i,e),renderState:t()}}function Xu(e,t,n,s){const i={},r=s(e,{});for(const h in r)i[h]=Rt(r[h]);let{initial:o,animate:a}=e;const l=Vt(e),u=Yi(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;if(d&&typeof d!="boolean"&&!kt(d)){const h=Array.isArray(d)?d:[d];for(let m=0;m<h.length;m++){const p=kn(e,h[m]);if(p){const{transitionEnd:y,transition:v,...x}=p;for(const b in x){let w=x[b];if(Array.isArray(w)){const C=c?w.length-1:0;w=w[C]}w!==null&&(i[b]=w)}for(const b in y)i[b]=y[b]}}}return i}const cr=e=>(t,n)=>{const s=g.useContext(Ft),i=g.useContext(vt),r=()=>Gu(e,t,s,i);return n?r():_t(r)},qu=cr({scrapeMotionValuesFromProps:qn,createRenderState:es}),Zu=cr({scrapeMotionValuesFromProps:mo,createRenderState:lr}),Ju=Symbol.for("motionComponentSymbol");function Qu(e,t,n){const s=g.useRef(n);g.useInsertionEffect(()=>{s.current=n});const i=g.useRef(null);return g.useCallback(r=>{var a;r&&((a=e.onMount)==null||a.call(e,r)),t&&(r?t.mount(r):t.unmount());const o=s.current;if(typeof o=="function")if(r){const l=o(r);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r)},[t])}const ur=g.createContext({});function Ke(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ed(e,t,n,s,i,r){var w,C;const{visualElement:o}=g.useContext(Ft),a=g.useContext(tr),l=g.useContext(vt),u=g.useContext(Nt),c=u.reducedMotion,d=u.skipAnimations,h=g.useRef(null),m=g.useRef(!1);s=s||a.renderer,!h.current&&s&&(h.current=s(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:r}),m.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const p=h.current,y=g.useContext(ur);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&td(h.current,n,i,y);const v=g.useRef(!1);g.useInsertionEffect(()=>{p&&v.current&&p.update(n,l)});const x=n[Ei],b=g.useRef(!!x&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,x))&&((C=window.MotionHasOptimisedAnimation)==null?void 0:C.call(window,x)));return Ss(()=>{m.current=!0,p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),b.current&&p.animationState&&p.animationState.animateChanges())}),g.useEffect(()=>{p&&(!b.current&&p.animationState&&p.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,x)}),b.current=!1),p.enteringChildren=void 0)}),p}function td(e,t,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:dr(e.parent)),e.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&Ke(a),visualElement:e,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:c,layoutScroll:l,layoutRoot:u})}function dr(e){if(e)return e.options.allowProjection!==!1?e.projection:dr(e.parent)}function ns(e,{forwardMotionProps:t=!1,type:n}={},s,i){s&&Iu(s);const r=n?n==="svg":ts(e),o=r?Zu:qu;function a(u,c){let d;const h={...g.useContext(Nt),...u,layoutId:nd(u)},{isStatic:m}=h,p=Ou(u),y=o(u,m);if(!m&&Ts){sd(h,s);const v=id(h);d=v.MeasureLayout,p.visualElement=ed(e,y,h,i,v.ProjectionNode,r)}return f.jsxs(Ft.Provider,{value:p,children:[d&&p.visualElement?f.jsx(d,{visualElement:p.visualElement,...h}):null,Yu(e,u,Qu(y,p.visualElement,c),y,m,t,r)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=g.forwardRef(a);return l[Ju]=e,l}function nd({layoutId:e}){const t=g.useContext(Kt).id;return t&&e!==void 0?t+"-"+e:e}function sd(e,t){const n=g.useContext(tr).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const s="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Re(!1,s,"lazy-strict-mode"):pe(!1,s,"lazy-strict-mode")}}function id(e){const t=ir(),{drag:n,layout:s}=t;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n!=null&&n.isEnabled(e)||s!=null&&s.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function od(e,t){if(typeof Proxy>"u")return ns;const n=new Map,s=(r,o)=>ns(r,o,e,t),i=(r,o)=>(process.env.NODE_ENV!=="production"&&Zt(!1,"motion() is deprecated. Use motion.create() instead."),s(r,o));return new Proxy(i,{get:(r,o)=>o==="create"?s:(n.has(o)||n.set(o,ns(o,void 0,e,t)),n.get(o))})}const rd=(e,t)=>t.isSVG??ts(e)?new $c(t):new Lc(t,{allowProjection:e!==g.Fragment});class ad extends Se{constructor(t){super(t),t.animationState||(t.animationState=Uc(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();kt(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let ld=0;class cd extends Se{constructor(){super(...arguments),this.id=ld++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const ud={animation:{Feature:ad},exit:{Feature:cd}};function dt(e){return{point:{x:e.pageX,y:e.pageY}}}const dd=e=>t=>Bn(t)&&e(t,dt(t));function ht(e,t,n,s){return ut(e,t,dd(n),s)}const hr=({current:e})=>e?e.ownerDocument.defaultView:null,fr=(e,t)=>Math.abs(e-t);function hd(e,t){const n=fr(e.x,t.x),s=fr(e.y,t.y);return Math.sqrt(n**2+s**2)}const mr=new Set(["auto","scroll"]);class pr{constructor(t,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=is(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=hd(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!y)return;const{point:v}=m,{timestamp:x}=Y;this.history.push({...v,timestamp:x});const{onStart:b,onMove:w}=this.handlers;p||(b&&b(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=ss(p,this.transformPagePoint),I.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:y,onSessionEnd:v,resumeAnimation:x}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=is(m.type==="pointercancel"?this.lastMoveEventInfo:ss(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,b),v&&v(m,b)},!Bn(t))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=o,this.contextWindow=i||window;const l=dt(t),u=ss(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=Y;this.history=[{...c,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,is(u,this.history)),this.removeListeners=Qe(ht(this.contextWindow,"pointermove",this.handlePointerMove),ht(this.contextWindow,"pointerup",this.handlePointerUp),ht(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const s=getComputedStyle(n);(mr.has(s.overflowX)||mr.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const s=t===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:i.x-n.x,y:i.y-n.y};r.x===0&&r.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,i),I.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ve(this.updatePoint)}}function ss(e,t){return t?{point:t(e.point)}:e}function gr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function is({point:e},t){return{point:e,delta:gr(e,yr(t)),offset:gr(e,fd(t)),velocity:md(t,.1)}}function fd(e){return e[0]}function yr(e){return e[e.length-1]}function md(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const i=yr(e);for(;n>=0&&(s=e[n],!(i.timestamp-s.timestamp>ie(t)));)n--;if(!s)return{x:0,y:0};s===e[0]&&e.length>2&&i.timestamp-s.timestamp>ie(t)*2&&(s=e[1]);const r=oe(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function pd(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?$(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?$(n,e,s.max):Math.min(e,n)),e}function _r(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function gd(e,{top:t,left:n,bottom:s,right:i}){return{x:_r(e.x,n,i),y:_r(e.y,t,s)}}function vr(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function yd(e,t){return{x:vr(e.x,t.x),y:vr(e.y,t.y)}}function _d(e,t){let n=.5;const s=J(e),i=J(t);return i>s?n=et(t.min,t.max-s,e.min):s>i&&(n=et(e.min,e.max-i,t.min)),he(0,1,n)}function vd(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const os=.35;function xd(e=os){return e===!1?e=0:e===!0&&(e=os),{x:xr(e,"left","right"),y:xr(e,"top","bottom")}}function xr(e,t,n){return{min:br(e,t),max:br(e,n)}}function br(e,t){return typeof e=="number"?e:e[t]||0}const bd=new WeakMap;class wd{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=H(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=d=>{n&&this.snapToCursor(dt(d).point),this.stopAnimation()},o=(d,h)=>{const{drag:m,dragPropagation:p,onDragStart:y}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Zl(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),me(x=>{let b=this.getAxisMotionValue(x).get()||0;if(fe.test(b)){const{projection:w}=this.visualElement;if(w&&w.layout){const C=w.layout.layoutBox[x];C&&(b=J(C)*(parseFloat(b)/100))}}this.originPoint[x]=b}),y&&I.update(()=>y(d,h),!1,!0),Ln(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:y,onDrag:v}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:x}=h;if(p&&this.currentDirection===null){this.currentDirection=Sd(x),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,x),this.updateAxis("y",h.point,x),this.visualElement.render(),v&&I.update(()=>v(d,h),!1,!0)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new pr(t,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:s,contextWindow:hr(this.visualElement),element:this.visualElement.current})}stop(t,n){const s=t||this.latestPointerEvent,i=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!s)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&I.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,s){const{drag:i}=this.getProps();if(!s||!Ot(t,i,this.currentDirection))return;const r=this.getAxisMotionValue(t);let o=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(o=pd(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){var r;const{dragConstraints:t,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)==null?void 0:r.layout,i=this.constraints;t&&Ke(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=gd(s.layoutBox,t):this.constraints=!1,this.elastic=xd(n),i!==this.constraints&&!Ke(t)&&s&&this.constraints&&!this.hasMutatedConstraints&&me(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=vd(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ke(t))return!1;const s=t.current;pe(s!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Ec(s,i.root,this.visualElement.getTransformPagePoint());let o=yd(i.layout.layoutBox,r);if(n){const a=n(Tc(o));this.hasMutatedConstraints=!!a,a&&(o=Ji(a))}return o}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=me(c=>{if(!Ot(c,n,this.currentDirection))return;let d=l&&l[c]||{};o&&(d={min:0,max:0});const h=i?200:1e6,m=i?40:1e7,p={type:"inertia",velocity:s?t[c]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...r,...d};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return Ln(this.visualElement,t),s.start(An(t,s,0,n,this.visualElement,!1))}stopAnimation(){me(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){me(n=>{const{drag:s}=this.getProps();if(!Ot(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],l=r.get()||0;r.set(t[n]-$(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Ke(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};me(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=_d({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),me(o=>{if(!Ot(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set($(l,u,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;bd.set(this.visualElement,this);const t=this.visualElement.current,n=ht(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps(),h=u.target,m=h!==t&&sc(h);c&&d&&!m&&this.start(u)});let s;const i=()=>{const{dragConstraints:u}=this.getProps();Ke(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),s||(s=Td(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),I.read(i);const a=ut(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(me(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=u[d].translate,h.set(h.get()+u[d].translate))}),this.visualElement.render())}));return()=>{a(),n(),o(),l&&l(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=os,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function wr(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Td(e,t,n){const s=Hi(e,wr(n)),i=Hi(t,wr(n));return()=>{s(),i()}}function Ot(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Sd(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Pd extends Se{constructor(t){super(t),this.removeGroupControls=se,this.removeListeners=se,this.controls=new wd(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||se}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const rs=e=>(t,n)=>{e&&I.update(()=>e(t,n),!1,!0)};class Ed extends Se{constructor(){super(...arguments),this.removePointerDownListener=se}onPointerDown(t){this.session=new pr(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hr(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:rs(t),onStart:rs(n),onMove:rs(s),onEnd:(r,o)=>{delete this.session,i&&I.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=ht(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let as=!1;class Cd extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=t;r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),as&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),It.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,{projection:o}=s;return o&&(o.isPresent=r,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),as=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==r?o.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?o.promote():o.relegate()||I.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),$n.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=t;as=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Tr(e){const[t,n]=Qo(),s=g.useContext(Kt);return f.jsx(Cd,{...e,layoutGroup:s,switchLayoutGroup:g.useContext(ur),isPresent:t,safeToRemove:n})}const Md={pan:{Feature:Ed},drag:{Feature:Pd,ProjectionNode:Zo,MeasureLayout:Tr}};function Sr(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&I.postRender(()=>r(t,dt(t)))}class Ad extends Se{mount(){const{current:t}=this.node;t&&(this.unmount=Ql(t,(n,s)=>(Sr(this.node,s,"Start"),i=>Sr(this.node,i,"End"))))}unmount(){}}class kd extends Se{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Qe(ut(this.node.current,"focus",()=>this.onFocus()),ut(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Pr(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&I.postRender(()=>r(t,dt(t)))}class Vd extends Se{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=oc(t,(i,r)=>(Pr(this.node,r,"Start"),(o,{success:a})=>Pr(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const ls=new WeakMap,cs=new WeakMap,Ld=e=>{const t=ls.get(e.target);t&&t(e)},jd=e=>{e.forEach(Ld)};function Dd({root:e,...t}){const n=e||document;cs.has(n)||cs.set(n,{});const s=cs.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(jd,{root:e,...t})),s[i]}function Rd(e,t,n){const s=Dd(t);return ls.set(e,n),s.observe(e),()=>{ls.delete(e),s.unobserve(e)}}const Id={some:0,all:1};class Nd extends Se{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Id[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),h=u?c:d;h&&h(l)};return Rd(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some($d(t,n))&&this.startObserver()}unmount(){}}function $d({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Bd={...ud,...{inView:{Feature:Nd},tap:{Feature:Vd},focus:{Feature:kd},hover:{Feature:Ad}},...Md,...{layout:{ProjectionNode:Zo,MeasureLayout:Tr}}},N=od(Bd,rd);function Fd(e){const t=_t(()=>Ae(e)),{isStatic:n}=g.useContext(Nt);if(n){const[,s]=g.useState(e);g.useEffect(()=>t.on("change",s),[])}return t}const te={backdrop:"action-sheet-module__backdrop___E-oM5",sheet:"action-sheet-module__sheet___zFFdl",handle:"action-sheet-module__handle___1dYRp",handleBar:"action-sheet-module__handleBar___3lmQ1",header:"action-sheet-module__header___oMW-U",title:"action-sheet-module__title___k5RM2",message:"action-sheet-module__message___jsCQT",actions:"action-sheet-module__actions___vgr-N",action:"action-sheet-module__action___kV71S",destructive:"action-sheet-module__destructive___N5M9i",actionIcon:"action-sheet-module__actionIcon___MXc9U",actionLabel:"action-sheet-module__actionLabel___dPWqE",cancel:"action-sheet-module__cancel___Oncun"},Er=({isOpen:e,onClose:t,title:n,message:s,actions:i})=>{const r=Fd(0),o=(l,u)=>{(u.offset.y>250||u.velocity.y>500)&&a()},a=()=>{t()};return f.jsx(Le,{children:e&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:te.backdrop,onClick:a}),f.jsxs(N.div,{className:te.sheet,role:"dialog","aria-modal":"true","aria-labelledby":n?"action-sheet-title":void 0,style:{y:r},drag:"y",dragConstraints:{top:0,bottom:0},dragElastic:{top:0,bottom:.5},onDragEnd:o,initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{type:"spring",damping:30,stiffness:300},children:[f.jsx("div",{className:te.handle,children:f.jsx("div",{className:te.handleBar})}),(n||s)&&f.jsxs("div",{className:te.header,children:[n&&f.jsx("h3",{className:te.title,children:n}),s&&f.jsx("p",{className:te.message,children:s})]}),f.jsx("div",{className:te.actions,children:i.map((l,u)=>f.jsxs("button",{className:`${te.action} ${l.destructive?te.destructive:""}`,onClick:()=>{l.onClick(),a()},disabled:l.disabled,children:[l.icon&&f.jsx("span",{className:te.actionIcon,children:l.icon}),f.jsx("span",{className:te.actionLabel,children:l.label})]},u))}),f.jsx("button",{className:te.cancel,onClick:a,children:"Cancel"})]})]})})},ft={alert:"alert-module__alert___phXsH",iconWrapper:"alert-module__iconWrapper___5mthT",statusIcon:"alert-module__statusIcon___Tyvx3",content:"alert-module__content___IvPaU",success:"alert-module__success___lM3GI",warning:"alert-module__warning___DfOAf",error:"alert-module__error___9GnhN",info:"alert-module__info___SotSQ",container:"alert-module__container___SGTJP"},Od=({type:e="info",children:t})=>{const n={success:f.jsx(_s,{width:"20"}),warning:f.jsx(vs,{width:"20"}),error:f.jsx(Ht,{width:"20"}),info:f.jsx(xs,{width:"20"})};return f.jsxs("div",{className:`${ft.alert} ${ft[e]}`,role:e==="error"?"alert":"status","aria-live":e==="error"?"assertive":"polite","aria-atomic":"true",children:[f.jsx("div",{className:ft.iconWrapper,children:f.jsx("span",{className:ft.statusIcon,children:n[e]})}),f.jsx("div",{className:ft.content,children:t})]})},us={layout:"applayout-module__layout___d2c6J",mainArea:"applayout-module__mainArea___Q4Yhu",content:"applayout-module__content___lok2L"},Wd=({topNav:e,sideNav:t,sideNavOpen:n=!1,sideNavExpandedWidth:s="280px",sideNavCollapsedWidth:i="50px",children:r})=>{const[o,a]=g.useState(!1);return g.useLayoutEffect(()=>{const l=()=>a(window.innerWidth<=768);return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[]),f.jsxs("div",{className:us.layout,children:[t,f.jsxs(N.div,{className:us.mainArea,animate:{marginLeft:!t||o?"0px":n?s:i},transition:{type:"spring",damping:25,stiffness:200},children:[e,f.jsx("main",{className:us.content,children:r})]})]})},Ud={box:"box-module__box___FP5Js"},Hd=g.forwardRef(({children:e,position:t="center",direction:n="vertical",reverse:s=!1,style:i},r)=>f.jsx("div",{ref:r,className:Ud.box,"data-position":t,"data-direction":n,"data-reverse":s?!0:void 0,style:i,children:e})),ds={triggerWrapper:"tooltip-module__triggerWrapper___mvvzS",tooltip:"tooltip-module__tooltip___mEmui",arrow:"tooltip-module__arrow___Kjrs-"},Cr=({children:e,message:t=void 0,position:n="top"})=>{const[s,i]=g.useState(!1),r=g.useRef(null),o=g.useRef(null),a=()=>window.matchMedia("(hover: none)").matches;g.useLayoutEffect(()=>{var m;if(!s)return;const d=(m=r.current)==null?void 0:m.getBoundingClientRect(),h=o.current;if(d&&h){const p=h.offsetWidth,y=h.offsetHeight,v=10,x={top:{x:d.left+d.width/2-p/2,y:d.top-y-v},bottom:{x:d.left+d.width/2-p/2,y:d.bottom+v},left:{x:d.left-p-v,y:d.top+d.height/2-y/2},right:{x:d.right+v,y:d.top+d.height/2-y/2}},{x:b,y:w}=x[n];o.current&&(o.current.style.setProperty("--tooltip-x",`${b+window.scrollX}px`),o.current.style.setProperty("--tooltip-y",`${w+window.scrollY}px`))}},[s,n]);const l=()=>{a()||t&&i(!0)},u=()=>{a()||i(!1)},c=d=>{a()&&(d.stopPropagation(),i(h=>!h))};return g.useEffect(()=>{if(!s)return;const d=h=>{r.current&&!r.current.contains(h.target)&&i(!1)};return document.addEventListener("click",d),()=>document.removeEventListener("click",d)},[s]),t?f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:r,className:ds.triggerWrapper,onClick:c,onMouseEnter:l,onMouseLeave:u,children:e}),Rr.createPortal(f.jsx(Le,{children:s&&f.jsxs(N.div,{ref:o,"data-position":n,initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},transition:{duration:.2},className:ds.tooltip,children:[t,f.jsx("div",{className:ds.arrow})]})}),document.body)]}):f.jsx(f.Fragment,{children:e})},Mr={button:"button-module__button___JyfZW",primary:"button-module__primary___ggjlO",secondary:"button-module__secondary___Q4I1z",icon:"button-module__icon___zcUnX"},Ar=({children:e,onClick:t,variant:n="primary",disabled:s=!1,disabledMessage:i,tooltipPosition:r="top",...o})=>f.jsx(Cr,{message:s?i:void 0,position:r,children:f.jsx("button",{className:`${Mr.button} ${Mr[n]}`,disabled:s,onClick:t,...o,children:e})}),je={container:"checkbox-module__container___26-ah",hiddenInput:"checkbox-module__hiddenInput___X-HH-",label:"checkbox-module__label___dV34E",box:"checkbox-module__box___UQZjc",checked:"checkbox-module__checked___mqwdo",labelText:"checkbox-module__labelText___ORrnL",disabled:"checkbox-module__disabled___E2BaQ"},zd=({checked:e,onChange:t,label:n,disabled:s=!1,indeterminate:i=!1})=>{const r=g.useId();return f.jsxs("div",{className:`${je.container} ${s?je.disabled:""}`,children:[f.jsx("input",{id:r,type:"checkbox",checked:e,onChange:({target:o})=>t(o.checked),disabled:s,className:je.hiddenInput,"aria-checked":i?"mixed":e}),f.jsxs("label",{htmlFor:r,className:je.label,onClick:o=>o.stopPropagation(),children:[f.jsxs("div",{className:`${je.box} ${e||i?je.checked:""}`,children:[e&&!i&&f.jsx(Ur,{width:"20"}),i&&f.jsx(bs,{width:"20"})]}),n&&f.jsx("span",{onClick:o=>o.stopPropagation(),className:je.labelText,children:n})]})]})},ye={container:"container-module__container___g2I0w",fullWidth:"container-module__fullWidth___C7E9O",default:"container-module__default___VLaR3",outlined:"container-module__outlined___V7eh0",elevated:"container-module__elevated___TdnlI",flat:"container-module__flat___VVl-e",header:"container-module__header___EUrkl",headerContent:"container-module__headerContent___E9O0H",headerActions:"container-module__headerActions___PZYbZ",content:"container-module__content___U-qAz",footer:"container-module__footer___TrwGJ",paddingNone:"container-module__paddingNone___qFyWC",paddingSm:"container-module__paddingSm___geCvv",paddingMd:"container-module__paddingMd___oSyMG",paddingLg:"container-module__paddingLg___RMAPT"},Kd=g.forwardRef(({children:e,header:t,headerActions:n,footer:s,variant:i="default",padding:r="md",fullWidth:o=!1,style:a},l)=>{const u=t||n,c=g.useId(),d={sm:"Sm",md:"Md",lg:"Lg",none:"None"};return f.jsxs("div",{ref:l,style:a,className:`${ye.container} ${ye[i]} ${ye[`padding${d[r]}`]} ${o?ye.fullWidth:""}`,role:t?"region":void 0,"aria-labelledby":t?c:void 0,children:[u&&f.jsxs("div",{className:ye.header,children:[f.jsx("div",{className:ye.headerContent,children:t}),n&&f.jsx("div",{className:ye.headerActions,children:n})]}),f.jsx("div",{className:ye.content,children:e}),s&&f.jsx("div",{className:ye.footer,children:s})]})}),Yd={floatingButton:"floating-menu-button-module__floatingButton___aAEgo"},Gd=({onClick:e,variant:t,ariaLabel:n})=>f.jsx("button",{className:Yd.floatingButton,onClick:e,"aria-label":n,children:t==="action"?f.jsx(ws,{width:"24"}):f.jsx(ys,{width:"24"})}),re={wrapper:"styles-module__wrapper___-K643",container:"styles-module__container___rhMhO",containerNoLabel:"styles-module__containerNoLabel___BoOt6",border:"styles-module__border___Jsi91",fullWidth:"styles-module__fullWidth___uRgMU",label:"styles-module__label___gBE41",borderError:"styles-module__borderError___WH34m",borderDisabled:"styles-module__borderDisabled___wc6lw",labelError:"styles-module__labelError___m0PRR",required:"styles-module__required___dp8xu",helperText:"styles-module__helperText___cA3Se",errorText:"styles-module__errorText___QZJ5F"},mt=({label:e,helperText:t,error:n,required:s=!1,disabled:i=!1,fullWidth:r=!1,children:o})=>{const a=g.useId();return f.jsxs("div",{className:`${re.wrapper}`,children:[f.jsxs("div",{className:`${re.container} ${e?"":re.containerNoLabel}`,children:[e&&f.jsxs("label",{htmlFor:a,className:`${re.label} ${n?re.labelError:""}`,children:[e,s&&f.jsx("span",{className:re.required,children:"*"})]}),f.jsx("div",{className:`
|
|
31
|
+
${re.border}
|
|
32
|
+
${n?re.borderError:""}
|
|
33
|
+
${i?re.borderDisabled:""}
|
|
34
|
+
${r?re.fullWidth:""}
|
|
35
|
+
`,children:o})]}),t&&f.jsx("span",{className:re.helperText,children:t}),n&&f.jsx("p",{className:re.errorText,role:"alert",children:n})]})},Ye={grid:"styles-module__grid___7DnDv",gapsm:"styles-module__gapsm___104P1",gapmd:"styles-module__gapmd___LvPjL",gaplg:"styles-module__gaplg___WkLKC",colspan1:"styles-module__colspan1___hoLRA",colspan2:"styles-module__colspan2___ABbjp",colspan3:"styles-module__colspan3___HDLYO",colspan4:"styles-module__colspan4___wPGDN",colspan5:"styles-module__colspan5___h1Pwu",colspan6:"styles-module__colspan6___v8-oh",colspan7:"styles-module__colspan7___thnCF",colspan8:"styles-module__colspan8___uz2bd",colspan9:"styles-module__colspan9___SHH9-",colspan10:"styles-module__colspan10___Hrx-M",colspan11:"styles-module__colspan11___Vz-iu",colspan12:"styles-module__colspan12___NZlug",colspanSm1:"styles-module__colspanSm1___4nU2j",colspanSm2:"styles-module__colspanSm2___8utrH",colspanSm3:"styles-module__colspanSm3___q-Z5-",colspanSm4:"styles-module__colspanSm4___M1MVJ",colspanSm5:"styles-module__colspanSm5___657CR",colspanSm6:"styles-module__colspanSm6___m8HyT",colspanSm7:"styles-module__colspanSm7___RAaMP",colspanSm8:"styles-module__colspanSm8___GSqva",colspanSm9:"styles-module__colspanSm9___DqPb8",colspanSm10:"styles-module__colspanSm10___62Hmc",colspanSm11:"styles-module__colspanSm11___YBUib",colspanSm12:"styles-module__colspanSm12___-7Lge",colspanMd1:"styles-module__colspanMd1___qoIET",colspanMd2:"styles-module__colspanMd2___4oSlF",colspanMd3:"styles-module__colspanMd3___EvoZw",colspanMd4:"styles-module__colspanMd4___QUMw1",colspanMd5:"styles-module__colspanMd5___waeN3",colspanMd6:"styles-module__colspanMd6___26eu8",colspanMd7:"styles-module__colspanMd7___-9aQs",colspanMd8:"styles-module__colspanMd8___xq4FB",colspanMd9:"styles-module__colspanMd9___VgYaP",colspanMd10:"styles-module__colspanMd10___a9j6x",colspanMd11:"styles-module__colspanMd11___c39ph",colspanMd12:"styles-module__colspanMd12___2RVdx",colspanLg1:"styles-module__colspanLg1___gF497",colspanLg2:"styles-module__colspanLg2___wTQ-p",colspanLg3:"styles-module__colspanLg3___oz40x",colspanLg4:"styles-module__colspanLg4___reQi-",colspanLg5:"styles-module__colspanLg5___8w62S",colspanLg6:"styles-module__colspanLg6___vaBci",colspanLg7:"styles-module__colspanLg7___jfjCY",colspanLg8:"styles-module__colspanLg8___P4I5D",colspanLg9:"styles-module__colspanLg9___jDDsP",colspanLg10:"styles-module__colspanLg10___0Wxt0",colspanLg11:"styles-module__colspanLg11___DcBbv",colspanLg12:"styles-module__colspanLg12___jGxHL"},Xd=e=>{const t=[];return typeof e.colspan=="object"&&(e.colspan.default&&t.push(Ye[`colspan${e.colspan.default}`]),e.colspan.sm&&t.push(Ye[`colspanSm${e.colspan.sm}`]),e.colspan.md&&t.push(Ye[`colspanMd${e.colspan.md}`]),e.colspan.lg&&t.push(Ye[`colspanLg${e.colspan.lg}`])),t.join(" ")},qd=g.forwardRef(({gridDefinition:e,gap:t,children:n},s)=>{const i=g.Children.toArray(n);return f.jsx("div",{ref:s,className:`${Ye.grid} ${t?Ye[`gap${t}`]:""}`,children:i.map((r,o)=>{const a=e[o]??{};return f.jsx("div",{className:Xd(a),children:r},o)})})}),Zd={header:"styles-module__header___XLj-v"},Jd=({children:e,variant:t="h1"})=>{const n=t;return f.jsx(n,{className:Zd.header,children:e})},pt={inputContainer:"input-module__inputContainer___ulqhQ",input:"input-module__input___tBoBs",clearButton:"input-module__clearButton___GmMYO",suggestionsList:"input-module__suggestionsList___ym2TV",suggestionItem:"input-module__suggestionItem___xtYWE"},kr=({value:e,onChange:t,disabled:n=!1,suggestions:s=[],placeholder:i,hideClear:r=!1,label:o,error:a,required:l=!1,fullWidth:u=!1,helperText:c,...d})=>{const h=g.useId(),[m,p]=g.useState(!1),{onBlur:y,...v}=d,x=g.useMemo(()=>s.length===0||!e?[]:s.filter(b=>b.toLowerCase().includes(e.toLowerCase())),[s,e]);return f.jsx(mt,{label:o,required:l,disabled:n,helperText:c,error:a,fullWidth:u,children:f.jsxs("div",{className:pt.inputContainer,children:[f.jsx("input",{id:h,className:pt.input,value:e,disabled:n,onChange:({target:b})=>t==null?void 0:t(b.value),placeholder:i,required:l,"aria-invalid":a?"true":"false","aria-describedby":a?`${h}-error`:c?`${h}-helper`:void 0,onFocus:()=>p(!0),onBlur:b=>{setTimeout(()=>p(!1),150),y==null||y(b)},...v}),!r&&e&&f.jsx("button",{className:pt.clearButton,onClick:()=>t==null?void 0:t(""),"aria-label":"Clear input",type:"button",children:f.jsx(zt,{width:"20",strokeWidth:2.5})}),f.jsx(Le,{children:m&&x.length>0&&f.jsx(N.ul,{className:pt.suggestionsList,role:"listbox","aria-label":"Suggestions",initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.2},children:x.map(b=>f.jsx("li",{role:"option","aria-selected":e===b,className:pt.suggestionItem,onClick:()=>{t==null||t(b),p(!1)},children:b},b))})})]})})},Ge={overlay:"modal-module__overlay___z2GxJ",modal:"modal-module__modal___RJmct",header:"modal-module__header___KlpKY",close:"modal-module__close___ELArH",content:"modal-module__content___OMS8T",footer:"modal-module__footer___rF7ly"},Qd=({isVisible:e,onClose:t,size:n="m",header:s,footer:i,children:r})=>{const o=g.useRef(null);return g.useLayoutEffect(()=>{if(!e)return;const a=o.current;if(!a)return;const l=a.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),u=l[0],c=l[l.length-1],d=h=>{h.key==="Tab"&&(h.shiftKey?document.activeElement===u&&(h.preventDefault(),c==null||c.focus()):document.activeElement===c&&(h.preventDefault(),u==null||u.focus()))};return u==null||u.focus(),document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[e]),g.useLayoutEffect(()=>{if(!e)return;const a=l=>{l.key==="Escape"&&t()};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e,t]),f.jsx(Le,{children:e&&f.jsx(N.div,{id:"overlay",className:Ge.overlay,role:"dialog","aria-modal":"true","aria-labelledby":"modal-header",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,children:f.jsxs(N.div,{id:"modal",ref:o,className:Ge.modal,onClick:a=>a.stopPropagation(),"data-size":n,initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},transition:{duration:.3},exit:{opacity:0,scale:0},children:[f.jsxs(N.div,{id:"header",className:Ge.header,onClick:a=>a.stopPropagation(),children:[s,f.jsx(N.button,{className:Ge.close,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.2},onClick:t,"aria-label":"Close Modal",type:"button",children:f.jsx(zt,{width:"24"})})]}),f.jsx(N.div,{id:"content",className:Ge.content,onClick:a=>a.stopPropagation(),children:r}),i&&f.jsx(N.div,{id:"footer",className:Ge.footer,onClick:a=>a.stopPropagation(),children:i})]})})})},Q={container:"select-module__container___U4BrV",hiddenSelect:"select-module__hiddenSelect___qRfKA",control:"select-module__control___qogxN",disabled:"select-module__disabled___kYpJI",value:"select-module__value___sRnlS",placeholder:"select-module__placeholder___qhzG5",arrow:"select-module__arrow___LWj9s",menu:"select-module__menu___MHmhv",searchWrapper:"select-module__searchWrapper___gI2ic",list:"select-module__list___XICSu",item:"select-module__item___XHREC",selected:"select-module__selected___iSbaR",highlighted:"select-module__highlighted___OhCJO",checkbox:"select-module__checkbox___dD2H5",empty:"select-module__empty___i6OgM"},eh=e=>{var _e;const{selectedOption:t,selectType:n="single",autoFilter:s=!1,options:i,onChange:r,placeholder:o="Select...",disabled:a=!1,name:l,required:u,label:c,helperText:d,error:h,fullWidth:m=!1}=e,p=g.useId(),[y,v]=g.useState(!1),[x,b]=g.useState(""),[w,C]=g.useState(null),T=g.useRef(null),M=g.useRef(null),D=g.useCallback(A=>{var W,q;if(!a){if(n==="multi"){const j=Array.isArray(t)?t:[],ae=j.find(ne=>ne.value===A.value)?j.filter(ne=>ne.value!==A.value):[...j,A];r(ae),(W=M.current)==null||W.focus()}else r(A),v(!1),(q=M.current)==null||q.blur();b("")}},[a,n,t,r]),P=g.useMemo(()=>i.filter(A=>A.label.toLowerCase().includes(x.toLowerCase())),[i,x]);g.useEffect(()=>{if(!y){C(null);return}const A=W=>{var q;switch(W.key){case"ArrowDown":W.preventDefault(),C(j=>{const R=j??-1;return R<P.length-1?R+1:0});break;case"ArrowUp":W.preventDefault(),C(j=>{const R=j??0;return R>0?R-1:P.length-1});break;case"Enter":W.preventDefault(),w!==null&&P[w]&&D(P[w]);break;case"Escape":W.preventDefault(),v(!1),(q=M.current)==null||q.blur();break}};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[y,P,w,D]),g.useEffect(()=>{if(!y)return;const A=W=>{var q;T.current&&!T.current.contains(W.target)&&(v(!1),(q=M.current)==null||q.blur())};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[y]);const k=()=>{a||v(A=>!A)},F=g.useMemo(()=>n==="multi"&&Array.isArray(t)?t.length>0?t.map(A=>A.label).join(", "):o:(t==null?void 0:t.label)||o,[t,n,o]),ee=n==="multi"?!Array.isArray(t)||t.length===0:!t,de=A=>n==="multi"&&Array.isArray(t)?t.some(W=>W.value===A.value):(t==null?void 0:t.value)===A.value;return f.jsx(mt,{label:c,required:u,disabled:a,helperText:d,error:h,fullWidth:m,children:f.jsxs("div",{ref:T,className:Q.container,children:[f.jsx("select",{name:l,id:p,required:u,disabled:a,multiple:n==="multi",value:n==="multi"?t==null?void 0:t.map(A=>String(A.value)):((_e=t==null?void 0:t.value)==null?void 0:_e.toString())||"",className:Q.hiddenSelect,tabIndex:-1,"aria-hidden":"true",onChange:()=>{},children:i.map(A=>f.jsx("option",{value:A.value,children:A.label},A.value))}),f.jsxs("div",{ref:M,className:`${Q.control} ${a?Q.disabled:""}`,onClick:k,role:"combobox","aria-haspopup":"listbox","aria-expanded":y,"aria-controls":`${p}-listbox`,tabIndex:a?-1:0,onKeyDown:A=>{(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),y||k())},children:[f.jsx("span",{className:`${Q.value} ${ee?Q.placeholder:""}`,children:F}),f.jsx(N.span,{className:Q.arrow,animate:{rotate:y?180:0},transition:{duration:.2},children:"▼"})]}),f.jsx(Le,{children:y&&f.jsxs(N.div,{id:`${p}-listbox`,className:Q.menu,initial:{opacity:0,y:-4,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.95},transition:{duration:.15},role:"listbox","aria-label":c||"Select an option","aria-multiselectable":n==="multi",children:[s&&f.jsx("div",{className:Q.searchWrapper,children:f.jsx(kr,{value:x,onChange:b,placeholder:"Search...",hideClear:!0})}),f.jsx("div",{className:Q.list,children:P.length>0?P.map((A,W)=>{const q=de(A),j=W===w;return f.jsxs("div",{className:`${Q.item} ${q?Q.selected:""} ${j?Q.highlighted:""}`,onClick:R=>{R.stopPropagation(),D(A)},tabIndex:j?0:-1,onKeyDown:R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),D(A))},role:"option","aria-selected":q,children:[n==="multi"&&f.jsx("span",{className:Q.checkbox,"aria-hidden":!0,children:q?"✓":"○"}),A.label]},A.value)}):f.jsx("div",{className:Q.empty,children:"No options found"})})]})})]})})},ue={overlay:"sidenav-module__overlay___QDdKo",sidenav:"sidenav-module__sidenav___CnZmU",left:"sidenav-module__left___Qa1xG",right:"sidenav-module__right___4BYR2",collapsed:"sidenav-module__collapsed___jltGX",header:"sidenav-module__header___f3Sc9",item:"sidenav-module__item___5B09S",toggleButton:"sidenav-module__toggleButton___8Z7kQ",items:"sidenav-module__items___Az0kh",active:"sidenav-module__active___Lo-AM",itemIcon:"sidenav-module__itemIcon___i6GWq"},th=({isOpen:e,items:t,onToggle:n,expandedWidth:s="280px",collapsedWidth:i="50px",position:r="left"})=>{const[o,a]=g.useState(()=>window.location.pathname.slice(1)||""),[l,u]=g.useState(!1);return g.useLayoutEffect(()=>{const c=()=>u(window.innerWidth<=768);return c(),window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]),g.useLayoutEffect(()=>{const c=d=>{d.key==="Escape"&&e&&n()};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[e,n]),l?f.jsx(Er,{isOpen:e,onClose:n,title:"Menu",actions:t.map(c=>({label:c.label,icon:c.icon,onClick:c.onClick,destructive:c.destructive}))}):f.jsxs(f.Fragment,{children:[e&&f.jsx("div",{className:ue.overlay,onClick:n,onKeyDown:c=>{c.key==="Enter"&&n()}}),f.jsxs(N.nav,{className:`${ue.sidenav} ${ue[r]} ${e?"":ue.collapsed}`,initial:!1,animate:{width:e?s:i},transition:{type:"spring",damping:25,stiffness:200},children:[f.jsx("div",{className:ue.header,children:f.jsx(N.button,{className:ue.toggleButton,onClick:n,whileHover:{scale:1.05},whileTap:{scale:.95},"aria-label":e?"Close menu":"Open menu",children:e?f.jsx(zt,{width:"24"}):f.jsx(ys,{width:"24"})})}),f.jsx("div",{className:ue.items,children:t.filter(c=>e||c.icon).map(c=>f.jsxs("button",{className:`${ue.item} ${c.label.toLowerCase()===o?ue.active:""}`,"aria-current":c.label===o?"page":void 0,onClick:()=>{c.type!=="action"&&a(c.label.toLowerCase()),c.onClick(),e&&n()},title:e?void 0:c.label,children:[c.icon&&f.jsx("span",{className:ue.itemIcon,children:c.icon}),e&&f.jsx("span",{className:ue.itemLabel,children:c.label})]},c.label))})]})]})};function nh({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14"}))}const sh=E.forwardRef(nh);function ih({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))}const oh=E.forwardRef(ih);function rh({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const ah=E.forwardRef(rh);function lh({title:e,titleId:t,...n},s){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?E.createElement("title",{id:t},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))}const ch=E.forwardRef(lh),Wt={container:"stepper-module__container___GYIxN",stepper:"stepper-module__stepper___44JDp",input:"stepper-module__input___9ZI6O"},uh=({label:e,helperText:t,error:n,required:s,value:i,onChange:r,min:o=0,max:a,step:l=1,disabled:u=!1})=>{const[c,d]=g.useState(i.toString()),h=u||i<=o,m=u||a!==void 0&&i>=a,p=()=>{if(h)return;const b=Math.max(o,i-l);r(b),d(b.toString())},y=()=>{if(m)return;const b=i+l,w=a!==void 0?Math.min(a,b):b;r(w),d(w.toString())},v=b=>{d(b)},x=()=>{const b=parseInt(c);if(isNaN(b)){d(i.toString());return}const w=a!==void 0?Math.min(a,Math.max(o,b)):Math.max(o,b);r(w),d(w.toString())};return f.jsx(mt,{label:e,required:s,disabled:u,helperText:t,error:n,children:f.jsxs("div",{className:`${Wt.container}`,children:[f.jsx("button",{className:Wt.stepper,disabled:h,onClick:p,"aria-label":"Decrease value",type:"button",children:f.jsx(sh,{width:"20",strokeWidth:2.5})}),f.jsx("input",{className:Wt.input,value:c,onChange:b=>v(b.target.value),onBlur:x,disabled:u,type:"text",inputMode:"numeric",pattern:"[0-9]*","aria-label":"Value"}),f.jsx("button",{className:Wt.stepper,disabled:m,onClick:y,"aria-label":"Increase value",type:"button",children:f.jsx(ah,{width:"20",strokeWidth:2.5})})]})})},Vr={container:"textarea-module__container___mxBjF",field:"textarea-module__field___0qAp5"},dh=({value:e,onChange:t,placeHolder:n,label:s,helperText:i,required:r=!1,fullWidth:o=!1,error:a,disabled:l=!1})=>{const u=g.useId();return f.jsx(mt,{disabled:l,fullWidth:o,required:r,label:s,helperText:i,error:a,children:f.jsx("div",{className:Vr.container,children:f.jsx("textarea",{id:u,className:Vr.field,value:e,onChange:({target:c})=>t(c.value),disabled:l,placeholder:n,"aria-invalid":a?"true":"false","aria-describedby":a?`${u}-error`:i?`${u}-helper`:void 0})})})},Pe={container:"toast-module__container___7m6vr",top:"toast-module__top___iVpue",bottom:"toast-module__bottom___Bt3N0",toast:"toast-module__toast___SOSDh",iconWrapper:"toast-module__iconWrapper___F-4yg",statusIcon:"toast-module__statusIcon___KjJ56",content:"toast-module__content___9ufP5",closeButton:"toast-module__closeButton___eMXm-",success:"toast-module__success___FYQI3",warning:"toast-module__warning___2XrO1",error:"toast-module__error___v44fd",info:"toast-module__info___tOY3D"},hh=({visible:e,onDismiss:t,timeout:n=5e3,position:s="top",status:i="info",children:r,dismissible:o=!0})=>{g.useEffect(()=>{if(!e||!n)return;const l=setTimeout(()=>{t()},n);return()=>clearTimeout(l)},[e,n,t]);const a={success:f.jsx(_s,{width:"20"}),warning:f.jsx(vs,{width:"20"}),error:f.jsx(Ht,{width:"20"}),info:f.jsx(xs,{width:"20"})};return f.jsx("div",{className:`${Pe.container} ${Pe[s]}`,children:f.jsx(Le,{children:e&&f.jsxs(N.div,{layout:!0,initial:{opacity:0,y:s==="top"?-50:50,scale:.8},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.8,x:100},transition:{duration:.3,ease:[.4,0,.2,1]},className:`${Pe.toast} ${Pe[i]}`,role:i==="error"?"alert":"status","aria-live":i==="error"?"assertive":"polite","aria-atomic":"true",children:[f.jsx("div",{className:Pe.iconWrapper,children:f.jsx("span",{className:Pe.statusIcon,children:a[i]})}),f.jsx("div",{className:Pe.content,children:r}),o&&f.jsx(N.button,{className:Pe.closeButton,onClick:t,whileHover:{scale:1.1},whileTap:{scale:.9},"aria-label":"Dismiss",children:f.jsx(Ht,{width:"20"})})]})})})},gt={wrapper:"toggle-module__wrapper___xb91q",label:"toggle-module__label___8-AlI",switch:"toggle-module__switch___9e0np",enabled:"toggle-module__enabled___3jPo5",handle:"toggle-module__handle___fiWwj"},fh=({label:e,value:t,onChange:n,disabled:s=!1})=>{const i=g.useRef(null),r=g.useId();return g.useLayoutEffect(()=>{i.current&&(t?i.current.style.setProperty("--toggle-direction","flex-end"):i.current.style.setProperty("--toggle-direction","flex-start"))},[t]),f.jsxs("div",{className:gt.wrapper,children:[f.jsx("span",{className:gt.label,children:e}),f.jsx(N.button,{ref:i,role:"switch","aria-checked":t,"aria-labelledby":r,className:`${gt.switch} ${t?gt.enabled:""}`,onClick:()=>n(!t),disabled:s,onKeyDown:o=>{(o.key===" "||o.key==="Enter")&&(o.preventDefault(),n(!t))},...!s&&{whileHover:{scale:1.1}},children:f.jsx(N.div,{layout:!0,className:gt.handle,initial:{opacity:0},animate:{opacity:1},transition:{type:"spring",stiffness:300,damping:15}})})]})},Lr=()=>{const[e,t]=g.useState(!1),[n,s]=g.useState(()=>{const r=localStorage.getItem("nova-ui-theme");return r||(window.matchMedia("(prefers-color-scheme: dark)").media?"dark":"light")});g.useLayoutEffect(()=>{document.documentElement.classList.remove("light","dark"),document.documentElement.classList.add(n),localStorage.setItem("nova-ui-theme",n)},[n]);const i=g.useCallback(r=>{if(e)return;const o=r.clientX,a=r.clientY;document.documentElement.style.setProperty("--x",`${o}px`),document.documentElement.style.setProperty("--y",`${a}px`);const l=()=>{s(c=>c==="dark"?"light":"dark")};if(!document.startViewTransition){l();return}t(!0),document.startViewTransition(l).finished.finally(()=>{t(!1)})},[e]);return{theme:n,isTransitioning:e,toggleTheme:i}},mh=()=>{const{theme:e,isTransitioning:t,toggleTheme:n}=Lr();return f.jsx(Ar,{variant:"icon",onClick:n,disabled:t,"aria-label":e==="dark"?"Switch to light mode":"Switch to dark mode",children:e==="dark"?f.jsx(ch,{width:"24"}):f.jsx(oh,{width:"24"})})},Xe={topnavContainer:"topnav-module__topnavContainer___TXXB4",topRow:"topnav-module__topRow___s-Ohm",header:"topnav-module__header___r3Y52",collapsibleContent:"topnav-module__collapsibleContent___oulCx",searchWrapper:"topnav-module__searchWrapper___Rdox0",themeWrapper:"topnav-module__themeWrapper___gx0Yd"},ph=({header:e,logo:t,logoClick:n,search:s})=>f.jsxs("nav",{className:Xe.topnavContainer,"aria-label":"Main navigation",children:[f.jsx("div",{className:Xe.topRow,children:f.jsxs("div",{className:Xe.header,children:[f.jsx("div",{onClick:n,style:{cursor:n?"pointer":"default"},children:t}),e]})}),f.jsxs("div",{className:Xe.collapsibleContent,children:[f.jsx("div",{className:Xe.searchWrapper,children:s}),f.jsx("div",{className:Xe.themeWrapper,children:f.jsx(mh,{})})]})]}),X={thumbnailWrapper:"viewer-module__thumbnailWrapper___iV-AM",thumbnail:"viewer-module__thumbnail___pk9Jf",hoverOverlay:"viewer-module__hoverOverlay___k04ev",expandIcon:"viewer-module__expandIcon___xm6pk",skeleton:"viewer-module__skeleton___h3Hzv",errorState:"viewer-module__errorState___gXQxU",errorIcon:"viewer-module__errorIcon___-qPTV",errorText:"viewer-module__errorText___UT4dg",retryButton:"viewer-module__retryButton___L-B3U",lightboxOverlay:"viewer-module__lightboxOverlay___jP4rl",closeButton:"viewer-module__closeButton___0rBK1",lightboxContent:"viewer-module__lightboxContent___i-2FK",lightboxMedia:"viewer-module__lightboxMedia___ZBgR-"},gh=({divRef:e,width:t,aspectRatio:n})=>f.jsx("div",{ref:e,className:X.thumbnailWrapper,style:{width:t,aspectRatio:n.toString()},children:f.jsx("div",{className:X.skeleton,"aria-busy":"true","aria-label":"Loading media"})}),jr=({src:e,onError:t})=>{const[n,s]=g.useState(!0),[i,r]=g.useState(!1),[o,a]=g.useState(!1),[l,u]=g.useState(0),c=g.useCallback(()=>{u(d=>d+1)},[]);return g.useEffect(()=>{if(!e.length)return;s(!0),r(!1);const d=setTimeout(()=>{const p=new Error(`Media loading timed out: ${e}`);r(!0),s(!1),t==null||t(p)},1e4),h=e.endsWith(".mp4")||e.endsWith(".webm")||e.endsWith(".ogg");a(h);const m=h?document.createElement("video"):new Image;return m.src=e,m.onerror=()=>{const p=new Error(`Failed to load media: ${e}`);r(!0),t==null||t(p)},h?m.onloadeddata=()=>{clearTimeout(d),s(!1)}:m.onload=()=>{clearTimeout(d),s(!1)},()=>{m.onload=null,m.onloadeddata=null,m.onerror=null,clearTimeout(d)}},[e,l]),{isLoading:n,hasError:i,isVideo:o,reload:c}},yh=({src:e,alt:t,video:n={controls:!0,loop:!0,autoPlay:!0,muted:!0},thumbnailWidth:s="300px",onError:i,aspectRatio:r="9/16"})=>{const{isLoading:o,hasError:a,isVideo:l,reload:u}=jr({src:e,onError:i}),[c,d]=g.useState(!1),h=g.useRef(null);return g.useLayoutEffect(()=>{var m;(m=h.current)==null||m.style.setProperty("--thumbnail-size",s)},[s]),g.useLayoutEffect(()=>{const m=p=>{p.key==="Escape"&&d(!1)};return c&&document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[c]),o?f.jsx(gh,{divRef:h,aspectRatio:r,width:s}):a?f.jsxs("div",{ref:h,className:X.errorState,role:"alert",children:[f.jsx("span",{className:X.errorIcon,children:"⚠️"}),f.jsx("p",{className:X.errorText,children:"Failed to load media"}),f.jsx("button",{onClick:u,className:X.retryButton,children:"Retry"})]}):f.jsxs(f.Fragment,{children:[f.jsxs(N.div,{ref:h,className:X.thumbnailWrapper,whileHover:{scale:1.02},whileTap:{scale:.98},children:[l?f.jsx(N.video,{className:X.thumbnail,src:e,muted:!0,preload:"none",autoPlay:n.autoPlay,loop:n.loop,disablePictureInPicture:!0,initial:{opacity:0},animate:{opacity:1},onClick:()=>d(!0)}):f.jsx(N.img,{className:X.thumbnail,loading:"lazy",src:e,alt:t,initial:{opacity:0},animate:{opacity:1},onClick:()=>d(!0)}),f.jsx(N.div,{className:X.hoverOverlay,initial:{opacity:0},whileHover:{opacity:1},children:f.jsx("span",{className:X.expandIcon,children:"🔍"})})]}),f.jsx(Le,{children:c&&f.jsxs(N.div,{className:X.lightboxOverlay,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},onClick:()=>d(!1),children:[f.jsx(N.button,{className:X.closeButton,onClick:()=>d(!1),whileHover:{scale:1.1,rotate:90},transition:{duration:.2},"aria-label":"Close lightbox",children:"✕"}),f.jsx(N.div,{className:X.lightboxContent,onClick:m=>m.stopPropagation(),initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},transition:{duration:.3,ease:[.4,0,.2,1]},children:l?f.jsx("video",{preload:"none",className:X.lightboxMedia,src:e,controls:n.controls,loop:n.loop,autoPlay:n.autoPlay,muted:n.muted,children:f.jsx("track",{kind:"captions"})}):f.jsx("img",{className:X.lightboxMedia,src:e,alt:t})})]})})]})};L.Accordion=qr,L.ActionSheet=Er,L.Alert=Od,L.AppLayout=Wd,L.Box=Hd,L.Button=Ar,L.Checkbox=zd,L.Container=Kd,L.FloatingButton=Gd,L.FormField=mt,L.Grid=qd,L.Header=Jd,L.Input=kr,L.Modal=Qd,L.Select=eh,L.SideNav=th,L.Stepper=uh,L.TextArea=dh,L.Toast=hh,L.Toggle=fh,L.Tooltip=Cr,L.TopNav=ph,L.Viewer=yh,L.useMediaLoader=jr,L.useTheme=Lr,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/nova-ui.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.accordion-module__container___M1a4P{width:100%;border:2px solid var(--color-border);border-radius:.5rem;overflow:hidden;align-self:flex-start}.accordion-module__accordion___C0eUc{width:100%;background-color:var(--color-surface);color:#fff;cursor:pointer;display:flex;flex-direction:row;padding:1rem;text-align:left;align-items:center;border:none}.accordion-module__header___NFLuh{font-size:medium;font-weight:600;color:var(--color-text)}.accordion-module__icon___Mjff1{margin-left:auto;color:var(--color-text)}.accordion-module__content___18iAN{position:relative;background-color:var(--color-surface);transition:max-height .2s ease-out;max-height:0}.accordion-module__content___18iAN.accordion-module__open___acchR{padding:1rem;max-height:500px}.accordion-module__container___M1a4P:hover:not(:has(.accordion-module__content___18iAN.accordion-module__open___acchR)){border-color:var(--color-primary)}.action-sheet-module__backdrop___E-oM5{position:fixed;top:0;right:0;bottom:0;left:0;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:9998}.action-sheet-module__sheet___zFFdl{position:fixed;bottom:0;left:0;right:0;background:var(--color-surface);border-radius:1rem 1rem 0 0;z-index:9999;max-height:80vh;display:flex;flex-direction:column;padding-bottom:calc(1rem + env(safe-area-inset-bottom,0))}.action-sheet-module__handle___1dYRp{display:flex;justify-content:center;padding:.75rem}.action-sheet-module__handleBar___3lmQ1{width:36px;height:4px;background:var(--color-border);border-radius:2px}.action-sheet-module__header___oMW-U{padding:1rem 1.5rem;text-align:center;border-bottom:1px solid var(--color-border)}.action-sheet-module__title___k5RM2{font-size:1.125rem;font-weight:600;color:var(--color-text);margin:0 0 .25rem}.action-sheet-module__message___jsCQT{font-size:.875rem;color:var(--color-text-secondary);margin:0}.action-sheet-module__actions___vgr-N{overflow-y:auto;max-height:60vh}.action-sheet-module__action___kV71S{display:flex;align-items:center;gap:1rem;width:100%;padding:1rem 1.5rem;background:transparent;border:none;border-bottom:1px solid var(--color-border);color:var(--color-text);font-size:1rem;cursor:pointer;transition:background-color .15s;min-height:56px}.action-sheet-module__action___kV71S:active{background-color:#0000000d}.action-sheet-module__action___kV71S:disabled{opacity:.5;cursor:not-allowed}.action-sheet-module__action___kV71S.action-sheet-module__destructive___N5M9i{color:var(--color-error)}.action-sheet-module__actionIcon___MXc9U{font-size:1.5rem;width:28px;display:flex;align-items:center;justify-content:center}.action-sheet-module__actionLabel___dPWqE{flex:1;text-align:left}.action-sheet-module__cancel___Oncun{width:100%;padding:1rem;background:var(--color-surface);border:none;color:var(--color-primary);font-size:1rem;font-weight:600;cursor:pointer;margin-top:.5rem}.action-sheet-module__cancel___Oncun:active{opacity:.7}.alert-module__alert___phXsH{pointer-events:auto;width:100%;padding:1rem 1.25rem;background:var(--toast-bg);border-radius:12px;color:var(--color-text);display:flex;align-items:center;gap:.75rem;position:relative;overflow:hidden;border:2px solid var(--status-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.alert-module__iconWrapper___5mthT{flex-shrink:0;width:32px;height:32px;border-radius:50%;background:var(--status-color);display:flex;align-items:center;justify-content:center;margin-left:.5rem}.alert-module__statusIcon___Tyvx3{color:#fff}.alert-module__content___IvPaU{flex:1;font-size:.9375rem;line-height:1.5}.alert-module__success___lM3GI{--status-color: var(--color-success);--toast-bg: var(--toast-bg-success)}.alert-module__warning___DfOAf{--status-color: var(--color-warning);--toast-bg: var(--toast-bg-warning)}.alert-module__error___9GnhN{--status-color: var(--color-error);--toast-bg: var(--toast-bg-error)}.alert-module__info___SotSQ{--status-color: var(--color-info);--toast-bg: var(--toast-bg-info)}@media(max-width:768px){.alert-module__container___SGTJP{width:calc(100% - 2rem)}.alert-module__alert___phXsH{padding:.875rem 1rem}}.applayout-module__layout___d2c6J{position:relative;display:flex;min-height:100vh;background-color:var(--color-background)}.applayout-module__mainArea___Q4Yhu{flex:1;min-height:100vh;display:flex;flex-direction:column;min-width:0}.applayout-module__content___lok2L{flex:1;padding:2rem;max-width:1400px}@media(max-width:768px){.applayout-module__mainArea___Q4Yhu{margin-left:0!important}.applayout-module__content___lok2L{padding:1rem}}.box-module__box___FP5Js{display:flex;width:100%;gap:1rem}.box-module__box___FP5Js[data-direction=vertical]{flex-direction:column}.box-module__box___FP5Js[data-direction=vertical][data-position=left]{align-items:flex-start}.box-module__box___FP5Js[data-direction=vertical][data-position=center]{align-items:center}.box-module__box___FP5Js[data-direction=vertical][data-position=right]{align-items:flex-end}.box-module__box___FP5Js[data-direction=vertical][data-reverse=true]{flex-direction:column-reverse}.box-module__box___FP5Js[data-direction=horizontal]{flex-direction:row;align-items:center}.box-module__box___FP5Js[data-direction=horizontal][data-position=left]{justify-content:flex-start}.box-module__box___FP5Js[data-direction=horizontal][data-position=center]{justify-content:center}.box-module__box___FP5Js[data-direction=horizontal][data-position=right]{justify-content:flex-end}.box-module__box___FP5Js[data-direction=horizontal][data-reverse=true][data-position=left]{justify-content:flex-end;flex-direction:row-reverse}.box-module__box___FP5Js[data-direction=horizontal][data-reverse=true][data-position=right]{justify-content:flex-start;flex-direction:row-reverse}.tooltip-module__triggerWrapper___mvvzS{display:inline-block;width:fit-content;text-decoration:underline dashed var(--color-accent)}.tooltip-module__tooltip___mEmui{position:fixed;left:var(--tooltip-x, 0);top:var(--tooltip-y, 0);padding:8px 12px;border-radius:4px;font-size:14px;z-index:1000;background:linear-gradient(135deg,var(--color-primary) 0%,var(--color-primary-dark) 100%);color:var(--color-text);pointer-events:none;white-space:nowrap;display:flex;flex-direction:column;align-items:center;will-change:transform}.tooltip-module__arrow___Kjrs-{position:absolute;width:0;height:0;border-style:solid;border-width:6px}.tooltip-module__tooltip___mEmui[data-position=top] .tooltip-module__arrow___Kjrs-{top:100%;border-color:var(--color-primary) transparent transparent transparent}.tooltip-module__tooltip___mEmui[data-position=bottom] .tooltip-module__arrow___Kjrs-{bottom:100%;border-color:transparent transparent var(--color-primary) transparent}.tooltip-module__tooltip___mEmui[data-position=left] .tooltip-module__arrow___Kjrs-{left:100%;border-color:transparent transparent transparent var(--color-primary)}.tooltip-module__tooltip___mEmui[data-position=right] .tooltip-module__arrow___Kjrs-{right:100%;border-color:transparent var(--color-primary) transparent transparent}.button-module__button___JyfZW{border:none;border-radius:.75rem;padding:.75rem 1.5rem;font-size:1rem;font-weight:600;cursor:pointer;color:var(--color-text)}.button-module__button___JyfZW:active{opacity:.8}.button-module__button___JyfZW:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.3)}.button-module__button___JyfZW:focus-visible{outline:2px solid var(--color-accent)}.button-module__primary___ggjlO{background:linear-gradient(135deg,var(--color-primary) 0%,var(--color-primary-dark) 100%);color:var(--color-text-on-primary)}.button-module__secondary___Q4I1z{background:linear-gradient(135deg,var(--color-secondary) 0%,var(--color-secondary-dark) 100%);color:var(--color-text-on-secondary)}.button-module__icon___zcUnX{padding:.75rem;border-radius:.5rem;background:transparent;object-fit:cover}.button-module__primary___ggjlO:hover:not(:disabled),.button-module__secondary___Q4I1z:hover:not(:disabled),.button-module__icon___zcUnX:hover:not(:disabled){outline:2px solid var(--color-accent)}.checkbox-module__container___26-ah{display:inline-flex;align-items:center}.checkbox-module__hiddenInput___X-HH-{position:absolute;opacity:0;width:0;height:0}.checkbox-module__label___dV34E{display:flex;align-items:center;gap:.75rem;cursor:pointer;-webkit-user-select:none;user-select:none}.checkbox-module__box___UQZjc{width:20px;height:20px;border:2px solid var(--color-border);border-radius:.25rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}.checkbox-module__box___UQZjc:hover{border-color:var(--color-primary)}.checkbox-module__checked___mqwdo{background-color:var(--color-primary);border-color:var(--color-primary)}.checkbox-module__labelText___ORrnL{color:var(--color-text);font-size:.9375rem}.checkbox-module__disabled___E2BaQ{opacity:.5;pointer-events:none}.checkbox-module__disabled___E2BaQ .checkbox-module__label___dV34E{cursor:not-allowed}.container-module__container___g2I0w{display:flex;flex-direction:column;background:var(--color-surface);border-radius:.75rem;overflow:visible;min-width:0;width:fit-content}.container-module__fullWidth___C7E9O{width:100%}.container-module__default___VLaR3{border:1px solid var(--color-border)}.container-module__outlined___V7eh0{border:2px solid var(--color-border)}.container-module__elevated___TdnlI{border:1px solid var(--color-border);box-shadow:var(--shadow-md)}.container-module__flat___VVl-e{background:transparent;border:none}.container-module__header___EUrkl{display:flex;align-items:center;border-bottom:1px solid var(--color-border);background:var(--color-background);gap:1rem}.container-module__headerContent___E9O0H{flex:1}.container-module__headerActions___PZYbZ{display:flex;align-items:center;gap:.5rem;margin-left:auto;flex-shrink:0}.container-module__content___U-qAz{flex:1;overflow:auto}.container-module__footer___TrwGJ{display:flex;justify-content:flex-end;align-items:center;gap:.75rem;border-top:1px solid var(--color-border);background:var(--color-background)}.container-module__paddingNone___qFyWC .container-module__header___EUrkl,.container-module__paddingNone___qFyWC .container-module__footer___TrwGJ{padding:.75rem 0}.container-module__paddingNone___qFyWC .container-module__content___U-qAz{padding:0}.container-module__paddingSm___geCvv .container-module__header___EUrkl,.container-module__paddingSm___geCvv .container-module__footer___TrwGJ{padding:.75rem 1rem}.container-module__paddingSm___geCvv .container-module__content___U-qAz{padding:1rem}.container-module__paddingMd___oSyMG .container-module__header___EUrkl,.container-module__paddingMd___oSyMG .container-module__footer___TrwGJ{padding:1rem 1.5rem}.container-module__paddingMd___oSyMG .container-module__content___U-qAz{padding:1.5rem}.container-module__paddingLg___RMAPT .container-module__header___EUrkl,.container-module__paddingLg___RMAPT .container-module__footer___TrwGJ{padding:1.25rem 2rem}.container-module__paddingLg___RMAPT .container-module__content___U-qAz{padding:2rem}@media(max-width:768px){.container-module__header___EUrkl{flex-direction:column;gap:1rem}.container-module__headerActions___PZYbZ{width:100%;margin-left:0;justify-content:flex-start}.container-module__paddingMd___oSyMG .container-module__content___U-qAz,.container-module__paddingLg___RMAPT .container-module__content___U-qAz{padding:1rem}}.floating-menu-button-module__floatingButton___aAEgo{position:fixed;bottom:calc(2rem + env(safe-area-inset-bottom,0));right:calc(2rem + env(safe-area-inset-right,0));z-index:998;background:var(--color-primary);color:#fff;border:none;border-radius:50%;width:56px;height:56px;display:flex;align-items:center;justify-content:center;cursor:pointer}@media(min-width:769px){.floating-menu-button-module__floatingButton___aAEgo{display:none}}.styles-module__wrapper___-K643{display:flex;flex-direction:column;gap:.25rem;width:100%}.styles-module__container___rhMhO{position:relative;width:100%;margin-top:.65rem}.styles-module__containerNoLabel___BoOt6{margin-top:0}.styles-module__border___Jsi91{position:relative;display:inline-flex;background:var(--color-surface);border:1.5px solid var(--color-border);border-radius:.5rem;transition:border-color .2s ease;padding-top:.25rem}.styles-module__fullWidth___uRgMU{width:100%}.styles-module__border___Jsi91:focus-within{border-color:var(--color-accent)}.styles-module__container___rhMhO:focus-within .styles-module__label___gBE41{border-color:var(--color-accent);color:var(--color-accent)}.styles-module__borderError___WH34m{border-color:var(--color-error);background-color:var(--toast-bg-error)}.styles-module__borderDisabled___wc6lw{opacity:.5;filter:grayscale(.3);cursor:not-allowed}.styles-module__border___Jsi91:hover:not(.styles-module__borderDisabled___wc6lw):not(.styles-module__borderError___WH34m){border-color:var(--color-accent)}.styles-module__label___gBE41{position:absolute;top:-.65rem;left:.75rem;background:var(--color-surface);padding:.1rem .6rem;border-radius:999px;font-size:.7rem;font-weight:500;letter-spacing:.03em;border:1.5px solid var(--color-border);color:var(--color-text-secondary);pointer-events:none;transition:border-color .2s ease,color .2s ease;white-space:nowrap;z-index:1}.styles-module__labelFocused___Q36TT{border-color:var(--color-accent);color:var(--color-accent)}.styles-module__labelError___m0PRR{border-color:var(--color-error);color:var(--color-error)}.styles-module__required___dp8xu{color:var(--color-error);margin-left:.25rem}.styles-module__helperText___cA3Se{font-size:.75rem;color:var(--color-text-secondary)}.styles-module__errorText___QZJ5F{font-size:.75rem;color:var(--color-error);margin:0;display:flex;align-items:center;gap:.25rem}.styles-module__errorText___QZJ5F:before{content:"⚠";font-size:1rem}.styles-module__grid___7DnDv{display:grid;grid-template-columns:repeat(12,1fr);width:100%}.styles-module__gapsm___104P1{gap:.5rem}.styles-module__gapmd___LvPjL{gap:1rem}.styles-module__gaplg___WkLKC{gap:1.5rem}@media(min-width:0px){.styles-module__colspan1___hoLRA{grid-column:span 1}.styles-module__colspan2___ABbjp{grid-column:span 2}.styles-module__colspan3___HDLYO{grid-column:span 3}.styles-module__colspan4___wPGDN{grid-column:span 4}.styles-module__colspan5___h1Pwu{grid-column:span 5}.styles-module__colspan6___v8-oh{grid-column:span 6}.styles-module__colspan7___thnCF{grid-column:span 7}.styles-module__colspan8___uz2bd{grid-column:span 8}.styles-module__colspan9___SHH9-{grid-column:span 9}.styles-module__colspan10___Hrx-M{grid-column:span 10}.styles-module__colspan11___Vz-iu{grid-column:span 11}.styles-module__colspan12___NZlug{grid-column:span 12}}@media(min-width:576px){.styles-module__colspanSm1___4nU2j{grid-column:span 1}.styles-module__colspanSm2___8utrH{grid-column:span 2}.styles-module__colspanSm3___q-Z5-{grid-column:span 3}.styles-module__colspanSm4___M1MVJ{grid-column:span 4}.styles-module__colspanSm5___657CR{grid-column:span 5}.styles-module__colspanSm6___m8HyT{grid-column:span 6}.styles-module__colspanSm7___RAaMP{grid-column:span 7}.styles-module__colspanSm8___GSqva{grid-column:span 8}.styles-module__colspanSm9___DqPb8{grid-column:span 9}.styles-module__colspanSm10___62Hmc{grid-column:span 10}.styles-module__colspanSm11___YBUib{grid-column:span 11}.styles-module__colspanSm12___-7Lge{grid-column:span 12}}@media(min-width:768px){.styles-module__colspanMd1___qoIET{grid-column:span 1}.styles-module__colspanMd2___4oSlF{grid-column:span 2}.styles-module__colspanMd3___EvoZw{grid-column:span 3}.styles-module__colspanMd4___QUMw1{grid-column:span 4}.styles-module__colspanMd5___waeN3{grid-column:span 5}.styles-module__colspanMd6___26eu8{grid-column:span 6}.styles-module__colspanMd7___-9aQs{grid-column:span 7}.styles-module__colspanMd8___xq4FB{grid-column:span 8}.styles-module__colspanMd9___VgYaP{grid-column:span 9}.styles-module__colspanMd10___a9j6x{grid-column:span 10}.styles-module__colspanMd11___c39ph{grid-column:span 11}.styles-module__colspanMd12___2RVdx{grid-column:span 12}}@media(min-width:1024px){.styles-module__colspanLg1___gF497{grid-column:span 1}.styles-module__colspanLg2___wTQ-p{grid-column:span 2}.styles-module__colspanLg3___oz40x{grid-column:span 3}.styles-module__colspanLg4___reQi-{grid-column:span 4}.styles-module__colspanLg5___8w62S{grid-column:span 5}.styles-module__colspanLg6___vaBci{grid-column:span 6}.styles-module__colspanLg7___jfjCY{grid-column:span 7}.styles-module__colspanLg8___P4I5D{grid-column:span 8}.styles-module__colspanLg9___jDDsP{grid-column:span 9}.styles-module__colspanLg10___0Wxt0{grid-column:span 10}.styles-module__colspanLg11___DcBbv{grid-column:span 11}.styles-module__colspanLg12___jGxHL{grid-column:span 12}}.styles-module__header___XLj-v{color:var(--color-text)}.input-module__inputContainer___ulqhQ{position:relative;width:100%;min-width:250px}.input-module__input___tBoBs{width:100%;padding:.8rem 2.5rem .8rem 1.2rem;font-size:.875rem;color:var(--color-text);background:transparent;border:none;outline:none}.input-module__input___tBoBs::placeholder{color:var(--color-text-secondary);opacity:.6}.input-module__input___tBoBs:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.3)}.input-module__clearButton___GmMYO{position:absolute;right:.8rem;top:50%;transform:translateY(-50%);background:transparent;border:none;cursor:pointer;padding:.5rem;display:flex;align-items:center;justify-content:center}.input-module__clearButton___GmMYO:hover{color:var(--color-primary);transform:translateY(-50%) scale(1.1)}.input-module__suggestionsList___ym2TV{position:absolute;top:calc(100% + .5rem);left:0;right:0;background-color:var(--color-surface);border:1px solid var(--color-border);border-radius:.5rem;list-style:none;padding:.4rem;margin:0;z-index:1000;max-height:200px;overflow-y:auto}.input-module__suggestionItem___xtYWE{padding:.6rem 1rem;font-size:.75rem;color:var(--color-text);border-radius:.3rem;cursor:pointer;min-height:44px;display:flex;align-items:center}.input-module__suggestionItem___xtYWE:hover{background-color:var(--color-primary);color:#fff}.input-module__suggestionsList___ym2TV::-webkit-scrollbar{width:4px}.input-module__suggestionsList___ym2TV::-webkit-scrollbar-thumb{background:var(--color-text-secondary);border-radius:10px}@media(max-width:768px){.input-module__input___tBoBs{font-size:16px}}.modal-module__overlay___z2GxJ{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#0009;z-index:9999;display:flex;align-items:center;justify-content:center;padding:1rem}.modal-module__modal___RJmct{background-color:var(--color-surface);border-radius:.75rem;width:100%;max-height:90vh;overflow:hidden}.modal-module__modal___RJmct[data-size=s]{max-width:400px}.modal-module__modal___RJmct[data-size=m]{max-width:600px}.modal-module__modal___RJmct[data-size=l]{max-width:800px}.modal-module__modal___RJmct[data-size=xl]{max-width:1140px}.modal-module__header___KlpKY{display:flex;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid var(--color-border)}.modal-module__close___ELArH{margin-left:auto;background:none;border:none}.modal-module__content___OMS8T{padding:1.5rem;overflow-y:auto;max-height:calc(90vh - 140px)}.modal-module__footer___rF7ly{border-top:1px solid var(--color-border);display:flex;gap:.75rem}@media(max-width:768px){.modal-module__modal___RJmct{width:100%;max-height:90vh;border-radius:1rem 1rem 0 0;margin-top:auto}}.select-module__container___U4BrV{position:relative;width:100%;min-width:250px;outline:none}.select-module__container___U4BrV:focus-within{outline:none}.select-module__hiddenSelect___qRfKA{position:absolute;opacity:0;pointer-events:none;width:0;height:0}.select-module__control___qogxN{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;cursor:pointer;color:var(--color-text)}.select-module__control___qogxN:focus{outline:2px solid var(--color-primary);outline-offset:2px}.select-module__control___qogxN:focus:not(:focus-visible){outline:none}.select-module__disabled___kYpJI{opacity:.5;cursor:not-allowed;filter:grayscale(.3)}.select-module__value___sRnlS{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:.5rem}.select-module__placeholder___qhzG5{color:var(--color-text-secondary)}.select-module__arrow___LWj9s{font-size:.75rem;color:var(--color-text-secondary);flex-shrink:0}.select-module__menu___MHmhv{position:absolute;top:calc(100% + .5rem);left:0;right:0;background:var(--color-surface);border:1px solid var(--color-border);border-radius:.5rem;z-index:1000;max-height:300px;overflow:hidden}.select-module__searchWrapper___gI2ic{padding:.5rem;border-bottom:1px solid var(--color-border)}.select-module__list___XICSu{max-height:250px;overflow-y:auto;padding:.25rem}.select-module__list___XICSu::-webkit-scrollbar{width:8px}.select-module__list___XICSu::-webkit-scrollbar-track{background:transparent}.select-module__list___XICSu::-webkit-scrollbar-thumb{background:var(--color-text-secondary);border-radius:4px}.select-module__list___XICSu::-webkit-scrollbar-thumb:hover{background:var(--color-primary)}.select-module__item___XHREC{padding:10px;cursor:pointer;border-radius:.375rem;display:flex;align-items:center;gap:.5rem;color:var(--color-text);min-height:44px}.select-module__selected___iSbaR{background:var(--color-primary-dark);color:var(--color-text-on-primary);font-weight:600}.select-module__item___XHREC:hover,.select-module__highlighted___OhCJO:not(.select-module__selected___iSbaR){background:var(--color-secondary);color:var(--color-text-on-secondary)}.select-module__checkbox___dD2H5{font-size:1.25rem;width:1.25rem;height:1.25rem;display:flex;align-items:center;justify-content:center}.select-module__empty___i6OgM{padding:1rem;text-align:center;color:var(--color-text-secondary);font-size:.875rem}@media(max-width:768px){.select-module__menu___MHmhv{max-height:200px}.select-module__list___XICSu{max-height:150px}}.sidenav-module__overlay___QDdKo{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:999}.sidenav-module__sidenav___CnZmU{position:fixed;height:100vh;top:0;background-color:var(--color-surface);display:flex;flex-direction:column;overflow:hidden;z-index:1000}.sidenav-module__sidenav___CnZmU.sidenav-module__left___Qa1xG{left:0;border-right:2px solid var(--color-border)}.sidenav-module__sidenav___CnZmU.sidenav-module__right___4BYR2{right:0;border-left:2px solid var(--color-border)}.sidenav-module__sidenav___CnZmU.sidenav-module__collapsed___jltGX .sidenav-module__header___f3Sc9{justify-content:center}.sidenav-module__sidenav___CnZmU.sidenav-module__collapsed___jltGX .sidenav-module__item___5B09S{justify-content:center;padding:1rem .5rem}.sidenav-module__header___f3Sc9{display:flex;align-items:center;justify-content:flex-end;padding:1.5rem;border-bottom:1px solid var(--color-border);height:4rem}.sidenav-module__toggleButton___8Z7kQ{background:transparent;border:none;cursor:pointer;color:var(--color-text);align-items:center;justify-content:center;border-radius:.5rem;transition:background-color .2s ease}.sidenav-module__items___Az0kh{flex:1;padding:1rem;display:flex;flex-direction:column;gap:.75rem;overflow-y:auto;overflow-x:hidden}.sidenav-module__item___5B09S{display:flex;align-items:center;gap:.75rem;padding:1rem;background:transparent;border:2px solid var(--color-border);border-radius:.5rem;color:var(--color-text);font-size:1rem;font-weight:500;cursor:pointer;text-align:left;white-space:nowrap}.sidenav-module__item___5B09S:hover,.sidenav-module__active___Lo-AM{background-color:var(--color-primary);border-color:var(--color-primary);color:#fff}.sidenav-module__itemIcon___i6GWq{display:flex;align-items:center;justify-content:center;font-size:1.25rem;flex-shrink:0;width:24px}.sidenav-module__items___Az0kh::-webkit-scrollbar{width:6px}.sidenav-module__items___Az0kh::-webkit-scrollbar-track{background:transparent}.sidenav-module__items___Az0kh::-webkit-scrollbar-thumb{background:var(--color-border);border-radius:3px}.sidenav-module__items___Az0kh::-webkit-scrollbar-thumb:hover{background:var(--color-primary)}.stepper-module__container___GYIxN{display:inline-flex;align-items:center;width:8rem}.stepper-module__stepper___44JDp{display:flex;align-items:center;justify-content:center;background:none;color:var(--color-primary);border:none;cursor:pointer;flex-shrink:0;width:2.5rem;height:2.5rem;border-radius:.5rem}.stepper-module__stepper___44JDp:hover:not(:disabled){background-color:var(--color-border);color:var(--color-primary-dark)}.stepper-module__stepper___44JDp:active:not(:disabled){transform:scale(.9)}.stepper-module__stepper___44JDp:disabled{opacity:.3;cursor:not-allowed}.stepper-module__input___9ZI6O{flex:1;min-width:0;text-align:center;border:none!important;background:transparent!important;padding:0!important;font-weight:600;font-size:1rem;color:var(--color-text)}.stepper-module__input___9ZI6O:focus{outline:none}.toast-module__container___7m6vr{position:fixed;z-index:10000;left:50%;transform:translate(-50%);display:flex;flex-direction:column;gap:.75rem;pointer-events:none;max-width:500px;width:90%;bottom:calc(1rem + env(safe-area-inset-bottom,0))}.toast-module__top___iVpue{top:2rem}.toast-module__bottom___Bt3N0{bottom:2rem}.toast-module__toast___SOSDh{pointer-events:auto;width:100%;padding:1rem 1.25rem;background:var(--toast-bg);border-radius:12px;color:var(--color-text);display:flex;align-items:center;gap:.75rem;position:relative;overflow:hidden;border:2px solid var(--status-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.toast-module__iconWrapper___F-4yg{flex-shrink:0;width:32px;height:32px;border-radius:50%;background:var(--status-color);display:flex;align-items:center;justify-content:center;margin-left:.5rem}.toast-module__statusIcon___KjJ56{font-size:1.125rem;font-weight:700;color:#fff}.toast-module__content___9ufP5{flex:1;font-size:.9375rem;line-height:1.5}.toast-module__closeButton___eMXm-{flex-shrink:0;background:transparent;border:none;cursor:pointer;color:var(--color-text-secondary);padding:.25rem;display:flex;align-items:center;justify-content:center;border-radius:4px}.toast-module__closeButton___eMXm-:hover{background:#0000001a;color:var(--color-text)}.toast-module__success___FYQI3{--status-color: var(--color-success);--toast-bg: var(--toast-bg-success)}.toast-module__warning___2XrO1{--status-color: var(--color-warning);--toast-bg: var(--toast-bg-warning)}.toast-module__error___v44fd{--status-color: var(--color-error);--toast-bg: var(--toast-bg-error)}.toast-module__info___tOY3D{--status-color: var(--color-info);--toast-bg: var(--toast-bg-info)}@media(prefers-color-scheme:dark){.toast-module__closeButton___eMXm-:hover{background:#ffffff1a}}@media(max-width:768px){.toast-module__container___7m6vr{width:calc(100% - 2rem)}.toast-module__toast___SOSDh{padding:.875rem 1rem}}.toggle-module__wrapper___xb91q{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.25rem 0;width:100%}.toggle-module__label___8-AlI{font-size:.875rem;font-weight:500;color:var(--color-text)}.toggle-module__switch___9e0np{position:relative;flex-shrink:0;width:3rem;height:1.5rem;background-color:var(--color-disabled);display:flex;align-items:center;border-radius:100px;padding:3px;cursor:pointer;border:2px solid var(--color-border);transition:background-color .3s ease;outline:none}.toggle-module__switch___9e0np.toggle-module__enabled___3jPo5{background-color:var(--color-primary)}.toggle-module__switch___9e0np.toggle-module__enabled___3jPo5 .toggle-module__handle___fiWwj{margin-left:auto}.toggle-module__handle___fiWwj{width:1rem;height:1rem;background-color:var(--color-surface);border-radius:50%}.toggle-module__switch___9e0np:hover:not(:disabled){border-color:var(--color-accent)}.toggle-module__switch___9e0np:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.3)}.topnav-module__topnavContainer___TXXB4{position:sticky;width:100%;background-color:var(--color-surface);border-bottom:1px solid var(--color-border);z-index:100;display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;gap:1rem;max-height:60px;top:env(safe-area-inset-top,0);padding-left:env(safe-area-inset-left,1rem);padding-right:env(safe-area-inset-right,1rem)}.topnav-module__topRow___s-Ohm,.topnav-module__header___r3Y52{display:flex;align-items:center;gap:.75rem}.topnav-module__header___r3Y52 h1{font-size:1.25rem;margin:0;white-space:nowrap}.topnav-module__collapsibleContent___oulCx{display:flex;align-items:center;gap:1rem;margin-left:auto}.topnav-module__searchWrapper___Rdox0{display:none}.topnav-module__themeWrapper___gx0Yd{display:flex;align-items:center}@media(min-width:769px){.topnav-module__topnavContainer___TXXB4{padding:0 2rem;min-height:4rem;gap:2rem}.topnav-module__header___r3Y52 h1{font-size:1.5rem}.topnav-module__searchWrapper___Rdox0{display:flex;flex:1;max-width:450px}.topnav-module__collapsibleContent___oulCx{flex:1;justify-content:flex-end;gap:2rem}}.viewer-module__thumbnailWrapper___iV-AM{position:relative;width:var(--thumbnail-size, 300px);max-width:100%;height:auto;display:inline-block}.viewer-module__thumbnail___pk9Jf{width:100%;height:auto;border-radius:.5rem;object-fit:cover;display:block;cursor:zoom-in}.viewer-module__hoverOverlay___k04ev{position:absolute;top:0;left:0;right:0;bottom:0;background:#00000080;border-radius:.5rem;display:flex;align-items:center;justify-content:center;pointer-events:none}.viewer-module__expandIcon___xm6pk{font-size:3rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3))}.viewer-module__skeleton___h3Hzv{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;border-radius:.5rem;cursor:default;background:linear-gradient(90deg,var(--color-border) 0%,var(--color-surface) 50%,var(--color-border) 100%);background-size:200% 100%;animation:viewer-module__shimmer___Lapfq 1.5s ease-in-out infinite}.viewer-module__skeleton___h3Hzv:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0000001a;pointer-events:none}@keyframes viewer-module__shimmer___Lapfq{0%{background-position:200% 0}to{background-position:-200% 0}}@media(prefers-color-scheme:dark){.viewer-module__skeleton___h3Hzv{background-color:#ffffff0d}.viewer-module__skeleton___h3Hzv:after{background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.1),transparent 100%)}}.viewer-module__errorState___gXQxU{width:var(--thumbnail-size);height:250px;border-radius:.5rem;background-color:var(--color-surface);border:2px dashed var(--color-text-secondary);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem}.viewer-module__errorIcon___-qPTV{font-size:2rem}.viewer-module__errorText___UT4dg{color:var(--color-text-secondary);font-size:.875rem;margin:0}.viewer-module__retryButton___L-B3U{margin-top:.5rem;padding:.5rem 1rem;background:var(--color-primary);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.875rem}.viewer-module__retryButton___L-B3U:hover{background:var(--color-primary-dark);transform:translateY(-1px)}.viewer-module__lightboxOverlay___jP4rl{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:9999;display:flex;align-items:center;justify-content:center;padding:2rem}.viewer-module__closeButton___0rBK1{position:absolute;top:1rem;right:1rem;width:48px;height:48px;border:none;background-color:#ffffff1a;border-radius:50%;cursor:pointer;font-size:24px;color:#fff;z-index:10000;transition:background-color .2s ease;display:flex;align-items:center;justify-content:center}.viewer-module__closeButton___0rBK1:hover{background-color:#fff3}.viewer-module__lightboxContent___i-2FK{max-width:90vw;max-height:90vh;display:flex;flex-direction:column;align-items:center;gap:1rem}.viewer-module__lightboxMedia___ZBgR-{max-width:100%;max-height:80vh;width:auto;height:auto;border-radius:8px}@media(max-width:768px){.viewer-module__lightboxOverlay___jP4rl{padding:1rem}.viewer-module__closeButton___0rBK1{top:.5rem;right:.5rem;width:40px;height:40px;font-size:20px}.viewer-module__lightboxMedia___ZBgR-{max-height:70vh}}:root{--color-primary: #1A6B7A;--color-primary-dark: #0F4F5C;--color-secondary: #7A4A1E;--color-secondary-dark: #5C3412;--color-accent: #C2185B;--color-background: #F0F4F7;--color-surface: #FFFFFF;--color-surface-elevated: #E8EEF3;--color-text: #0F1E2E;--color-text-secondary: #3D5166;--color-text-on-primary: #FFFFFF;--color-text-on-secondary: #FFFFFF;--color-text-on-accent: #FFFFFF;--color-disabled: #9CA3AF;--color-border: rgba(0, 0, 0, .12);--shadow-sm: 0 2px 8px rgba(26, 107, 122, .12);--shadow-md: 0 4px 12px rgba(26, 107, 122, .2);--shadow-lg: 0 8px 24px rgba(26, 107, 122, .28);--color-success: #1B5E45;--color-warning: #B45309;--color-error: #B91C1C;--color-info: #1A5276;--toast-bg-success: rgba(27, 94, 69, .1);--toast-bg-warning: rgba(180, 83, 9, .1);--toast-bg-error: rgba(185, 28, 28, .1);--toast-bg-info: rgba(26, 82, 118, .1)}.dark{--color-primary: #FF8B66;--color-primary-dark: #FF6E40;--color-secondary: #FF3DDB;--color-secondary-dark: #D600B3;--color-accent: #00E5FF;--color-background: #050508;--color-surface: #0D0D14;--color-surface-elevated: #141420;--color-text: #F0F6FF;--color-text-secondary: #9BAAB8;--color-disabled: #4A5568;--color-border: rgba(255, 255, 255, .25);--color-text-on-primary: #FFFFFF;--color-text-on-secondary: #FFFFFF;--color-text-on-accent: #FFFFFF;--shadow-sm: 0 2px 8px rgba(255, 110, 64, .25);--shadow-md: 0 4px 16px rgba(255, 110, 64, .35);--shadow-lg: 0 8px 32px rgba(255, 110, 64, .45);--color-success: #34D399;--color-warning: #FBBF24;--color-error: #F87171;--color-info: #60A5FA;--toast-bg-success: rgba(52, 211, 153, .12);--toast-bg-warning: rgba(251, 191, 36, .12);--toast-bg-error: rgba(248, 113, 113, .12);--toast-bg-info: rgba(96, 165, 250, .12)}@media(prefers-color-scheme:dark){:root:not(.light):not(.dark){--color-primary: #FF8B66;--color-primary-dark: #FF6E40;--color-secondary: #FFB84D;--color-secondary-dark: #FF8C42;--color-accent: #00E5FF;--color-background: #0A0118;--color-surface: #1F0F3D;--color-surface-elevated: #2A1850;--color-text: #E8F4FD;--color-text-secondary: #B0BEC5;--color-disabled: #6B7280;--color-border: rgba(255, 255, 255, .15);--shadow-sm: 0 2px 8px rgba(255, 110, 64, .2);--shadow-md: 0 4px 12px rgba(255, 110, 64, .3);--shadow-lg: 0 8px 24px rgba(255, 110, 64, .4);--color-success: #34D399;--color-warning: #FBBF24;--color-error: #F87171;--color-info: #60A5FA;--toast-bg-success: rgba(52, 211, 153, .15);--toast-bg-warning: rgba(251, 191, 36, .15);--toast-bg-error: rgba(248, 113, 113, .15);--toast-bg-info: rgba(96, 165, 250, .15)}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background-color:var(--color-background);color:var(--color-text);transition:background-color .3s ease,color .3s ease;min-height:100vh}::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}::view-transition-new(root){animation:reveal .75s ease-out}@keyframes reveal{0%{clip-path:circle(0% at var(--x) var(--y))}to{clip-path:circle(150% at var(--x) var(--y))}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}::view-transition-new(root){animation:none}}
|
|
1
|
+
.accordion-module__container___M1a4P{width:100%;border:2px solid var(--color-border);border-radius:.5rem;overflow:hidden;align-self:flex-start}.accordion-module__accordion___C0eUc{width:100%;background-color:var(--color-surface);color:#fff;cursor:pointer;display:flex;flex-direction:row;padding:1rem;text-align:left;align-items:center;border:none}.accordion-module__header___NFLuh{font-size:medium;font-weight:600;color:var(--color-text)}.accordion-module__icon___Mjff1{margin-left:auto;color:var(--color-text)}.accordion-module__content___18iAN{position:relative;background-color:var(--color-surface);transition:max-height .2s ease-out;max-height:0}.accordion-module__content___18iAN.accordion-module__open___acchR{padding:1rem;max-height:500px}.accordion-module__container___M1a4P:hover:not(:has(.accordion-module__content___18iAN.accordion-module__open___acchR)){border-color:var(--color-primary)}.action-sheet-module__backdrop___E-oM5{position:fixed;top:0;right:0;bottom:0;left:0;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:9998}.action-sheet-module__sheet___zFFdl{position:fixed;bottom:0;left:0;right:0;background:var(--color-surface);border-radius:1rem 1rem 0 0;z-index:9999;max-height:80vh;display:flex;flex-direction:column;padding-bottom:calc(1rem + env(safe-area-inset-bottom,0))}.action-sheet-module__handle___1dYRp{display:flex;justify-content:center;padding:.75rem}.action-sheet-module__handleBar___3lmQ1{width:36px;height:4px;background:var(--color-border);border-radius:2px}.action-sheet-module__header___oMW-U{padding:1rem 1.5rem;text-align:center;border-bottom:1px solid var(--color-border)}.action-sheet-module__title___k5RM2{font-size:1.125rem;font-weight:600;color:var(--color-text);margin:0 0 .25rem}.action-sheet-module__message___jsCQT{font-size:.875rem;color:var(--color-text-secondary);margin:0}.action-sheet-module__actions___vgr-N{overflow-y:auto;max-height:60vh}.action-sheet-module__action___kV71S{display:flex;align-items:center;gap:1rem;width:100%;padding:1rem 1.5rem;background:transparent;border:none;border-bottom:1px solid var(--color-border);color:var(--color-text);font-size:1rem;cursor:pointer;transition:background-color .15s;min-height:56px}.action-sheet-module__action___kV71S:active{background-color:#0000000d}.action-sheet-module__action___kV71S:disabled{opacity:.5;cursor:not-allowed}.action-sheet-module__action___kV71S.action-sheet-module__destructive___N5M9i{color:var(--color-error)}.action-sheet-module__actionIcon___MXc9U{font-size:1.5rem;width:28px;display:flex;align-items:center;justify-content:center}.action-sheet-module__actionLabel___dPWqE{flex:1;text-align:left}.action-sheet-module__cancel___Oncun{width:100%;padding:1rem;background:var(--color-surface);border:none;color:var(--color-primary);font-size:1rem;font-weight:600;cursor:pointer;margin-top:.5rem}.action-sheet-module__cancel___Oncun:active{opacity:.7}.alert-module__alert___phXsH{pointer-events:auto;width:100%;padding:1rem 1.25rem;background:var(--toast-bg);border-radius:12px;color:var(--color-text);display:flex;align-items:center;gap:.75rem;position:relative;overflow:hidden;border:2px solid var(--status-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.alert-module__iconWrapper___5mthT{flex-shrink:0;width:32px;height:32px;border-radius:50%;background:var(--status-color);display:flex;align-items:center;justify-content:center;margin-left:.5rem}.alert-module__statusIcon___Tyvx3{color:#fff}.alert-module__content___IvPaU{flex:1;font-size:.9375rem;line-height:1.5}.alert-module__success___lM3GI{--status-color: var(--color-success);--toast-bg: var(--toast-bg-success)}.alert-module__warning___DfOAf{--status-color: var(--color-warning);--toast-bg: var(--toast-bg-warning)}.alert-module__error___9GnhN{--status-color: var(--color-error);--toast-bg: var(--toast-bg-error)}.alert-module__info___SotSQ{--status-color: var(--color-info);--toast-bg: var(--toast-bg-info)}@media(max-width:768px){.alert-module__container___SGTJP{width:calc(100% - 2rem)}.alert-module__alert___phXsH{padding:.875rem 1rem}}.applayout-module__layout___d2c6J{position:relative;display:flex;min-height:100vh;background-color:var(--color-background)}.applayout-module__mainArea___Q4Yhu{flex:1;min-height:100vh;display:flex;flex-direction:column;min-width:0}.applayout-module__content___lok2L{flex:1;padding:2rem;max-width:1400px}@media(max-width:768px){.applayout-module__mainArea___Q4Yhu{margin-left:0!important}.applayout-module__content___lok2L{padding:1rem}}.box-module__box___FP5Js{display:flex;width:100%;gap:1rem}.box-module__box___FP5Js[data-direction=vertical]{flex-direction:column}.box-module__box___FP5Js[data-direction=vertical][data-position=left]{align-items:flex-start}.box-module__box___FP5Js[data-direction=vertical][data-position=center]{align-items:center}.box-module__box___FP5Js[data-direction=vertical][data-position=right]{align-items:flex-end}.box-module__box___FP5Js[data-direction=vertical][data-reverse=true]{flex-direction:column-reverse}.box-module__box___FP5Js[data-direction=horizontal]{flex-direction:row;align-items:center}.box-module__box___FP5Js[data-direction=horizontal][data-position=left]{justify-content:flex-start}.box-module__box___FP5Js[data-direction=horizontal][data-position=center]{justify-content:center}.box-module__box___FP5Js[data-direction=horizontal][data-position=right]{justify-content:flex-end}.box-module__box___FP5Js[data-direction=horizontal][data-reverse=true][data-position=left]{justify-content:flex-end;flex-direction:row-reverse}.box-module__box___FP5Js[data-direction=horizontal][data-reverse=true][data-position=right]{justify-content:flex-start;flex-direction:row-reverse}.tooltip-module__triggerWrapper___mvvzS{display:inline-block;width:fit-content;text-decoration:underline dashed var(--color-accent)}.tooltip-module__tooltip___mEmui{position:fixed;left:var(--tooltip-x, 0);top:var(--tooltip-y, 0);padding:8px 12px;border-radius:4px;font-size:14px;z-index:1000;background:linear-gradient(135deg,var(--color-primary) 0%,var(--color-primary-dark) 100%);color:var(--color-text);pointer-events:none;white-space:nowrap;display:flex;flex-direction:column;align-items:center;will-change:transform}.tooltip-module__arrow___Kjrs-{position:absolute;width:0;height:0;border-style:solid;border-width:6px}.tooltip-module__tooltip___mEmui[data-position=top] .tooltip-module__arrow___Kjrs-{top:100%;border-color:var(--color-primary) transparent transparent transparent}.tooltip-module__tooltip___mEmui[data-position=bottom] .tooltip-module__arrow___Kjrs-{bottom:100%;border-color:transparent transparent var(--color-primary) transparent}.tooltip-module__tooltip___mEmui[data-position=left] .tooltip-module__arrow___Kjrs-{left:100%;border-color:transparent transparent transparent var(--color-primary)}.tooltip-module__tooltip___mEmui[data-position=right] .tooltip-module__arrow___Kjrs-{right:100%;border-color:transparent var(--color-primary) transparent transparent}.button-module__button___JyfZW{border:none;border-radius:.75rem;padding:.75rem 1.5rem;font-size:1rem;font-weight:600;cursor:pointer;color:var(--color-text)}.button-module__button___JyfZW:active{opacity:.8}.button-module__button___JyfZW:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.3)}.button-module__button___JyfZW:focus-visible{outline:2px solid var(--color-accent)}.button-module__primary___ggjlO{background:linear-gradient(135deg,var(--color-primary) 0%,var(--color-primary-dark) 100%);color:var(--color-text-on-primary)}.button-module__secondary___Q4I1z{background:linear-gradient(135deg,var(--color-secondary) 0%,var(--color-secondary-dark) 100%);color:var(--color-text-on-secondary)}.button-module__icon___zcUnX{padding:.75rem;border-radius:.5rem;background:transparent;object-fit:cover}.button-module__primary___ggjlO:hover:not(:disabled),.button-module__secondary___Q4I1z:hover:not(:disabled),.button-module__icon___zcUnX:hover:not(:disabled){outline:2px solid var(--color-accent)}.checkbox-module__container___26-ah{display:inline-flex;align-items:center}.checkbox-module__hiddenInput___X-HH-{position:absolute;opacity:0;width:0;height:0}.checkbox-module__label___dV34E{display:flex;align-items:center;gap:.75rem;cursor:pointer;-webkit-user-select:none;user-select:none}.checkbox-module__box___UQZjc{width:20px;height:20px;border:2px solid var(--color-border);border-radius:.25rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}.checkbox-module__box___UQZjc:hover{border-color:var(--color-primary)}.checkbox-module__checked___mqwdo{background-color:var(--color-primary);border-color:var(--color-primary)}.checkbox-module__labelText___ORrnL{color:var(--color-text);font-size:.9375rem}.checkbox-module__disabled___E2BaQ{opacity:.5;pointer-events:none}.checkbox-module__disabled___E2BaQ .checkbox-module__label___dV34E{cursor:not-allowed}.container-module__container___g2I0w{display:flex;flex-direction:column;background:var(--color-surface);border-radius:.75rem;overflow:hidden;min-width:0;width:fit-content}.container-module__fullWidth___C7E9O{width:100%}.container-module__default___VLaR3{border:1px solid var(--color-border)}.container-module__outlined___V7eh0{border:2px solid var(--color-border)}.container-module__elevated___TdnlI{border:1px solid var(--color-border);box-shadow:var(--shadow-md)}.container-module__flat___VVl-e{background:transparent;border:none}.container-module__header___EUrkl{display:flex;align-items:center;border-bottom:1px solid var(--color-border);background:var(--color-background);gap:1rem}.container-module__headerContent___E9O0H{flex:1}.container-module__headerActions___PZYbZ{display:flex;align-items:center;gap:.5rem;margin-left:auto;flex-shrink:0}.container-module__content___U-qAz{flex:1;overflow:auto;min-height:0}.container-module__footer___TrwGJ{display:flex;justify-content:flex-end;align-items:center;gap:.75rem;border-top:1px solid var(--color-border);background:var(--color-background)}.container-module__paddingNone___qFyWC .container-module__header___EUrkl,.container-module__paddingNone___qFyWC .container-module__footer___TrwGJ{padding:.75rem 0}.container-module__paddingNone___qFyWC .container-module__content___U-qAz{padding:0}.container-module__paddingSm___geCvv .container-module__header___EUrkl,.container-module__paddingSm___geCvv .container-module__footer___TrwGJ{padding:.75rem 1rem}.container-module__paddingSm___geCvv .container-module__content___U-qAz{padding:1rem}.container-module__paddingMd___oSyMG .container-module__header___EUrkl,.container-module__paddingMd___oSyMG .container-module__footer___TrwGJ{padding:1rem 1.5rem}.container-module__paddingMd___oSyMG .container-module__content___U-qAz{padding:1.5rem}.container-module__paddingLg___RMAPT .container-module__header___EUrkl,.container-module__paddingLg___RMAPT .container-module__footer___TrwGJ{padding:1.25rem 2rem}.container-module__paddingLg___RMAPT .container-module__content___U-qAz{padding:2rem}@media(max-width:768px){.container-module__header___EUrkl{flex-direction:column;gap:1rem}.container-module__headerActions___PZYbZ{width:100%;margin-left:0;justify-content:flex-start}.container-module__paddingMd___oSyMG .container-module__content___U-qAz,.container-module__paddingLg___RMAPT .container-module__content___U-qAz{padding:1rem}}.floating-menu-button-module__floatingButton___aAEgo{position:fixed;bottom:calc(2rem + env(safe-area-inset-bottom,0));right:calc(2rem + env(safe-area-inset-right,0));z-index:998;background:var(--color-primary);color:#fff;border:none;border-radius:50%;width:56px;height:56px;display:flex;align-items:center;justify-content:center;cursor:pointer}@media(min-width:769px){.floating-menu-button-module__floatingButton___aAEgo{display:none}}.styles-module__wrapper___-K643{display:flex;flex-direction:column;gap:.25rem;width:100%}.styles-module__container___rhMhO{position:relative;width:100%;margin-top:.65rem}.styles-module__containerNoLabel___BoOt6{margin-top:0}.styles-module__border___Jsi91{position:relative;display:inline-flex;background:var(--color-surface);border:1.5px solid var(--color-border);border-radius:.5rem;transition:border-color .2s ease;padding-top:.25rem}.styles-module__fullWidth___uRgMU{width:100%}.styles-module__border___Jsi91:focus-within{border-color:var(--color-accent)}.styles-module__container___rhMhO:focus-within .styles-module__label___gBE41{border-color:var(--color-accent);color:var(--color-accent)}.styles-module__borderError___WH34m{border-color:var(--color-error);background-color:var(--toast-bg-error)}.styles-module__borderDisabled___wc6lw{opacity:.5;filter:grayscale(.3);cursor:not-allowed}.styles-module__border___Jsi91:hover:not(.styles-module__borderDisabled___wc6lw):not(.styles-module__borderError___WH34m){border-color:var(--color-accent)}.styles-module__label___gBE41{position:absolute;top:-.65rem;left:.75rem;background:var(--color-surface);padding:.1rem .6rem;border-radius:999px;font-size:.7rem;font-weight:500;letter-spacing:.03em;border:1.5px solid var(--color-border);color:var(--color-text-secondary);pointer-events:none;transition:border-color .2s ease,color .2s ease;white-space:nowrap;z-index:1}.styles-module__labelFocused___Q36TT{border-color:var(--color-accent);color:var(--color-accent)}.styles-module__labelError___m0PRR{border-color:var(--color-error);color:var(--color-error)}.styles-module__required___dp8xu{color:var(--color-error);margin-left:.25rem}.styles-module__helperText___cA3Se{font-size:.75rem;color:var(--color-text-secondary)}.styles-module__errorText___QZJ5F{font-size:.75rem;color:var(--color-error);margin:0;display:flex;align-items:center;gap:.25rem}.styles-module__errorText___QZJ5F:before{content:"⚠";font-size:1rem}.styles-module__required___dp8xu{color:var(--color-error);font-size:small}.styles-module__grid___7DnDv{display:grid;grid-template-columns:repeat(12,1fr);width:100%}.styles-module__gapsm___104P1{gap:.5rem}.styles-module__gapmd___LvPjL{gap:1rem}.styles-module__gaplg___WkLKC{gap:1.5rem}@media(min-width:0px){.styles-module__colspan1___hoLRA{grid-column:span 1}.styles-module__colspan2___ABbjp{grid-column:span 2}.styles-module__colspan3___HDLYO{grid-column:span 3}.styles-module__colspan4___wPGDN{grid-column:span 4}.styles-module__colspan5___h1Pwu{grid-column:span 5}.styles-module__colspan6___v8-oh{grid-column:span 6}.styles-module__colspan7___thnCF{grid-column:span 7}.styles-module__colspan8___uz2bd{grid-column:span 8}.styles-module__colspan9___SHH9-{grid-column:span 9}.styles-module__colspan10___Hrx-M{grid-column:span 10}.styles-module__colspan11___Vz-iu{grid-column:span 11}.styles-module__colspan12___NZlug{grid-column:span 12}}@media(min-width:576px){.styles-module__colspanSm1___4nU2j{grid-column:span 1}.styles-module__colspanSm2___8utrH{grid-column:span 2}.styles-module__colspanSm3___q-Z5-{grid-column:span 3}.styles-module__colspanSm4___M1MVJ{grid-column:span 4}.styles-module__colspanSm5___657CR{grid-column:span 5}.styles-module__colspanSm6___m8HyT{grid-column:span 6}.styles-module__colspanSm7___RAaMP{grid-column:span 7}.styles-module__colspanSm8___GSqva{grid-column:span 8}.styles-module__colspanSm9___DqPb8{grid-column:span 9}.styles-module__colspanSm10___62Hmc{grid-column:span 10}.styles-module__colspanSm11___YBUib{grid-column:span 11}.styles-module__colspanSm12___-7Lge{grid-column:span 12}}@media(min-width:768px){.styles-module__colspanMd1___qoIET{grid-column:span 1}.styles-module__colspanMd2___4oSlF{grid-column:span 2}.styles-module__colspanMd3___EvoZw{grid-column:span 3}.styles-module__colspanMd4___QUMw1{grid-column:span 4}.styles-module__colspanMd5___waeN3{grid-column:span 5}.styles-module__colspanMd6___26eu8{grid-column:span 6}.styles-module__colspanMd7___-9aQs{grid-column:span 7}.styles-module__colspanMd8___xq4FB{grid-column:span 8}.styles-module__colspanMd9___VgYaP{grid-column:span 9}.styles-module__colspanMd10___a9j6x{grid-column:span 10}.styles-module__colspanMd11___c39ph{grid-column:span 11}.styles-module__colspanMd12___2RVdx{grid-column:span 12}}@media(min-width:1024px){.styles-module__colspanLg1___gF497{grid-column:span 1}.styles-module__colspanLg2___wTQ-p{grid-column:span 2}.styles-module__colspanLg3___oz40x{grid-column:span 3}.styles-module__colspanLg4___reQi-{grid-column:span 4}.styles-module__colspanLg5___8w62S{grid-column:span 5}.styles-module__colspanLg6___vaBci{grid-column:span 6}.styles-module__colspanLg7___jfjCY{grid-column:span 7}.styles-module__colspanLg8___P4I5D{grid-column:span 8}.styles-module__colspanLg9___jDDsP{grid-column:span 9}.styles-module__colspanLg10___0Wxt0{grid-column:span 10}.styles-module__colspanLg11___DcBbv{grid-column:span 11}.styles-module__colspanLg12___jGxHL{grid-column:span 12}}.styles-module__header___XLj-v{color:var(--color-text)}.input-module__inputContainer___ulqhQ{position:relative;width:100%;min-width:250px}.input-module__input___tBoBs{width:100%;padding:.8rem 2.5rem .8rem 1.2rem;font-size:.875rem;color:var(--color-text);background:transparent;border:none;outline:none}.input-module__input___tBoBs::placeholder{color:var(--color-text-secondary);opacity:.6}.input-module__input___tBoBs:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.3)}.input-module__clearButton___GmMYO{position:absolute;right:.8rem;top:50%;transform:translateY(-50%);background:transparent;border:none;cursor:pointer;padding:.5rem;display:flex;align-items:center;justify-content:center}.input-module__clearButton___GmMYO:hover{color:var(--color-primary);transform:translateY(-50%) scale(1.1)}.input-module__suggestionsList___ym2TV{position:absolute;top:calc(100% + .5rem);left:0;right:0;background-color:var(--color-surface);border:1px solid var(--color-border);border-radius:.5rem;list-style:none;padding:.4rem;margin:0;z-index:1000;max-height:200px;overflow-y:auto}.input-module__suggestionItem___xtYWE{padding:.6rem 1rem;font-size:.75rem;color:var(--color-text);border-radius:.3rem;cursor:pointer;min-height:44px;display:flex;align-items:center}.input-module__suggestionItem___xtYWE:hover{background-color:var(--color-primary);color:#fff}.input-module__suggestionsList___ym2TV::-webkit-scrollbar{width:4px}.input-module__suggestionsList___ym2TV::-webkit-scrollbar-thumb{background:var(--color-text-secondary);border-radius:10px}@media(max-width:768px){.input-module__input___tBoBs{font-size:16px}}.modal-module__overlay___z2GxJ{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#0009;z-index:9999;display:flex;align-items:center;justify-content:center;padding:1rem}.modal-module__modal___RJmct{background-color:var(--color-surface);border-radius:.75rem;width:100%;max-height:90vh;overflow:hidden}.modal-module__modal___RJmct[data-size=s]{max-width:400px}.modal-module__modal___RJmct[data-size=m]{max-width:600px}.modal-module__modal___RJmct[data-size=l]{max-width:800px}.modal-module__modal___RJmct[data-size=xl]{max-width:1140px}.modal-module__header___KlpKY{display:flex;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid var(--color-border)}.modal-module__close___ELArH{margin-left:auto;background:none;border:none}.modal-module__content___OMS8T{padding:1.5rem;overflow-y:auto;max-height:calc(90vh - 140px)}.modal-module__footer___rF7ly{border-top:1px solid var(--color-border);display:flex;gap:.75rem}@media(max-width:768px){.modal-module__modal___RJmct{width:100%;max-height:90vh;border-radius:1rem 1rem 0 0;margin-top:auto}}.select-module__container___U4BrV{position:relative;width:100%;min-width:250px;outline:none}.select-module__container___U4BrV:focus-within{outline:none}.select-module__hiddenSelect___qRfKA{position:absolute;opacity:0;pointer-events:none;width:0;height:0}.select-module__control___qogxN{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;cursor:pointer;color:var(--color-text)}.select-module__control___qogxN:focus{outline:2px solid var(--color-primary);outline-offset:2px}.select-module__control___qogxN:focus:not(:focus-visible){outline:none}.select-module__disabled___kYpJI{opacity:.5;cursor:not-allowed;filter:grayscale(.3)}.select-module__value___sRnlS{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:.5rem}.select-module__placeholder___qhzG5{color:var(--color-text-secondary)}.select-module__arrow___LWj9s{font-size:.75rem;color:var(--color-text-secondary);flex-shrink:0}.select-module__menu___MHmhv{position:absolute;top:calc(100% + .5rem);left:0;right:0;background:var(--color-surface);border:1px solid var(--color-border);border-radius:.5rem;z-index:1000;max-height:300px;overflow:hidden}.select-module__searchWrapper___gI2ic{padding:.5rem;border-bottom:1px solid var(--color-border)}.select-module__list___XICSu{max-height:250px;overflow-y:auto;padding:.25rem}.select-module__list___XICSu::-webkit-scrollbar{width:8px}.select-module__list___XICSu::-webkit-scrollbar-track{background:transparent}.select-module__list___XICSu::-webkit-scrollbar-thumb{background:var(--color-text-secondary);border-radius:4px}.select-module__list___XICSu::-webkit-scrollbar-thumb:hover{background:var(--color-primary)}.select-module__item___XHREC{padding:10px;cursor:pointer;border-radius:.375rem;display:flex;align-items:center;gap:.5rem;color:var(--color-text);min-height:44px}.select-module__selected___iSbaR{background:var(--color-primary-dark);color:var(--color-text-on-primary);font-weight:600}.select-module__item___XHREC:hover,.select-module__highlighted___OhCJO:not(.select-module__selected___iSbaR){background:var(--color-secondary);color:var(--color-text-on-secondary)}.select-module__checkbox___dD2H5{font-size:1.25rem;width:1.25rem;height:1.25rem;display:flex;align-items:center;justify-content:center}.select-module__empty___i6OgM{padding:1rem;text-align:center;color:var(--color-text-secondary);font-size:.875rem}@media(max-width:768px){.select-module__menu___MHmhv{max-height:200px}.select-module__list___XICSu{max-height:150px}}.sidenav-module__overlay___QDdKo{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:999}.sidenav-module__sidenav___CnZmU{position:fixed;height:100vh;top:0;background-color:var(--color-surface);display:flex;flex-direction:column;overflow:hidden;z-index:1000}.sidenav-module__sidenav___CnZmU.sidenav-module__left___Qa1xG{left:0;border-right:2px solid var(--color-border)}.sidenav-module__sidenav___CnZmU.sidenav-module__right___4BYR2{right:0;border-left:2px solid var(--color-border)}.sidenav-module__sidenav___CnZmU.sidenav-module__collapsed___jltGX .sidenav-module__header___f3Sc9{justify-content:center}.sidenav-module__sidenav___CnZmU.sidenav-module__collapsed___jltGX .sidenav-module__item___5B09S{justify-content:center;padding:1rem .5rem}.sidenav-module__header___f3Sc9{display:flex;align-items:center;justify-content:flex-end;padding:1.5rem;border-bottom:1px solid var(--color-border);height:4rem}.sidenav-module__toggleButton___8Z7kQ{background:transparent;border:none;cursor:pointer;color:var(--color-text);align-items:center;justify-content:center;border-radius:.5rem;transition:background-color .2s ease}.sidenav-module__items___Az0kh{flex:1;padding:1rem;display:flex;flex-direction:column;gap:.75rem;overflow-y:auto;overflow-x:hidden}.sidenav-module__item___5B09S{display:flex;align-items:center;gap:.75rem;padding:1rem;background:transparent;border:2px solid var(--color-border);border-radius:.5rem;color:var(--color-text);font-size:1rem;font-weight:500;cursor:pointer;text-align:left;white-space:nowrap}.sidenav-module__item___5B09S:hover,.sidenav-module__active___Lo-AM{background-color:var(--color-primary);border-color:var(--color-primary);color:#fff}.sidenav-module__itemIcon___i6GWq{display:flex;align-items:center;justify-content:center;font-size:1.25rem;flex-shrink:0;width:24px;border:none}.sidenav-module__items___Az0kh::-webkit-scrollbar{width:6px}.sidenav-module__items___Az0kh::-webkit-scrollbar-track{background:transparent}.sidenav-module__items___Az0kh::-webkit-scrollbar-thumb{background:var(--color-border);border-radius:3px}.sidenav-module__items___Az0kh::-webkit-scrollbar-thumb:hover{background:var(--color-primary)}.stepper-module__container___GYIxN{display:inline-flex;align-items:center;width:8rem}.stepper-module__stepper___44JDp{display:flex;align-items:center;justify-content:center;background:none;color:var(--color-primary);border:none;cursor:pointer;flex-shrink:0;width:2.5rem;height:2.5rem;border-radius:.5rem}.stepper-module__stepper___44JDp:hover:not(:disabled){background-color:var(--color-border);color:var(--color-primary-dark)}.stepper-module__stepper___44JDp:active:not(:disabled){transform:scale(.9)}.stepper-module__stepper___44JDp:disabled{opacity:.3;cursor:not-allowed}.stepper-module__input___9ZI6O{flex:1;min-width:0;text-align:center;border:none!important;background:transparent!important;padding:0!important;font-weight:600;font-size:1rem;color:var(--color-text)}.stepper-module__input___9ZI6O:focus{outline:none}.textarea-module__container___mxBjF{position:relative;width:100%;min-width:250px}.textarea-module__field___0qAp5{width:100%;padding:.8rem 2.5rem .8rem 1.2rem;font-size:.875rem;color:var(--color-text);background:transparent;border:none;outline:none}.textarea-module__field___0qAp5::placeholder{color:var(--color-text-secondary);opacity:.6}.textarea-module__field___0qAp5:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.3)}@media(max-width:768px){.textarea-module__field___0qAp5{font-size:16px}}.toast-module__container___7m6vr{position:fixed;z-index:10000;left:50%;transform:translate(-50%);display:flex;flex-direction:column;gap:.75rem;pointer-events:none;max-width:500px;width:90%;bottom:calc(1rem + env(safe-area-inset-bottom,0))}.toast-module__top___iVpue{top:2rem}.toast-module__bottom___Bt3N0{bottom:2rem}.toast-module__toast___SOSDh{pointer-events:auto;width:100%;padding:1rem 1.25rem;background:var(--toast-bg);border-radius:12px;color:var(--color-text);display:flex;align-items:center;gap:.75rem;position:relative;overflow:hidden;border:2px solid var(--status-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.toast-module__iconWrapper___F-4yg{flex-shrink:0;width:32px;height:32px;border-radius:50%;background:var(--status-color);display:flex;align-items:center;justify-content:center;margin-left:.5rem}.toast-module__statusIcon___KjJ56{font-size:1.125rem;font-weight:700;color:#fff}.toast-module__content___9ufP5{flex:1;font-size:.9375rem;line-height:1.5}.toast-module__closeButton___eMXm-{flex-shrink:0;background:transparent;border:none;cursor:pointer;color:var(--color-text-secondary);padding:.25rem;display:flex;align-items:center;justify-content:center;border-radius:4px}.toast-module__closeButton___eMXm-:hover{background:#0000001a;color:var(--color-text)}.toast-module__success___FYQI3{--status-color: var(--color-success);--toast-bg: var(--toast-bg-success)}.toast-module__warning___2XrO1{--status-color: var(--color-warning);--toast-bg: var(--toast-bg-warning)}.toast-module__error___v44fd{--status-color: var(--color-error);--toast-bg: var(--toast-bg-error)}.toast-module__info___tOY3D{--status-color: var(--color-info);--toast-bg: var(--toast-bg-info)}@media(prefers-color-scheme:dark){.toast-module__closeButton___eMXm-:hover{background:#ffffff1a}}@media(max-width:768px){.toast-module__container___7m6vr{width:calc(100% - 2rem)}.toast-module__toast___SOSDh{padding:.875rem 1rem}}.toggle-module__wrapper___xb91q{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.25rem 0;width:100%}.toggle-module__label___8-AlI{font-size:.875rem;font-weight:500;color:var(--color-text)}.toggle-module__switch___9e0np{position:relative;flex-shrink:0;width:3rem;height:1.5rem;background-color:var(--color-disabled);display:flex;align-items:center;border-radius:100px;padding:3px;cursor:pointer;border:2px solid var(--color-border);transition:background-color .3s ease;outline:none}.toggle-module__switch___9e0np.toggle-module__enabled___3jPo5{background-color:var(--color-primary)}.toggle-module__switch___9e0np.toggle-module__enabled___3jPo5 .toggle-module__handle___fiWwj{margin-left:auto}.toggle-module__handle___fiWwj{width:1rem;height:1rem;background-color:var(--color-surface);border-radius:50%}.toggle-module__switch___9e0np:hover:not(:disabled){border-color:var(--color-accent)}.toggle-module__switch___9e0np:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.3)}.topnav-module__topnavContainer___TXXB4{position:sticky;width:100%;background-color:var(--color-surface);border-bottom:1px solid var(--color-border);z-index:100;display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;gap:1rem;max-height:60px;top:env(safe-area-inset-top,0);padding-left:env(safe-area-inset-left,1rem);padding-right:env(safe-area-inset-right,1rem)}.topnav-module__topRow___s-Ohm,.topnav-module__header___r3Y52{display:flex;align-items:center;gap:.75rem}.topnav-module__header___r3Y52 h1{font-size:1.25rem;margin:0;white-space:nowrap}.topnav-module__collapsibleContent___oulCx{display:flex;align-items:center;gap:1rem;margin-left:auto}.topnav-module__searchWrapper___Rdox0{display:none}.topnav-module__themeWrapper___gx0Yd{display:flex;align-items:center}@media(min-width:769px){.topnav-module__topnavContainer___TXXB4{padding:0 2rem;min-height:4rem;gap:2rem}.topnav-module__header___r3Y52 h1{font-size:1.5rem}.topnav-module__searchWrapper___Rdox0{display:flex;flex:1;max-width:450px}.topnav-module__collapsibleContent___oulCx{flex:1;justify-content:flex-end;gap:2rem}}.viewer-module__thumbnailWrapper___iV-AM{position:relative;width:var(--thumbnail-size, 300px);max-width:100%;height:auto;display:inline-block}.viewer-module__thumbnail___pk9Jf{width:100%;height:auto;border-radius:.5rem;object-fit:cover;display:block;cursor:zoom-in}.viewer-module__hoverOverlay___k04ev{position:absolute;top:0;left:0;right:0;bottom:0;background:#00000080;border-radius:.5rem;display:flex;align-items:center;justify-content:center;pointer-events:none}.viewer-module__expandIcon___xm6pk{font-size:3rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3))}.viewer-module__skeleton___h3Hzv{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;border-radius:.5rem;cursor:default;background:linear-gradient(90deg,var(--color-border) 0%,var(--color-surface) 50%,var(--color-border) 100%);background-size:200% 100%;animation:viewer-module__shimmer___Lapfq 1.5s ease-in-out infinite}.viewer-module__skeleton___h3Hzv:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0000001a;pointer-events:none}@keyframes viewer-module__shimmer___Lapfq{0%{background-position:200% 0}to{background-position:-200% 0}}@media(prefers-color-scheme:dark){.viewer-module__skeleton___h3Hzv{background-color:#ffffff0d}.viewer-module__skeleton___h3Hzv:after{background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.1),transparent 100%)}}.viewer-module__errorState___gXQxU{width:var(--thumbnail-size);height:250px;border-radius:.5rem;background-color:var(--color-surface);border:2px dashed var(--color-text-secondary);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem}.viewer-module__errorIcon___-qPTV{font-size:2rem}.viewer-module__errorText___UT4dg{color:var(--color-text-secondary);font-size:.875rem;margin:0}.viewer-module__retryButton___L-B3U{margin-top:.5rem;padding:.5rem 1rem;background:var(--color-primary);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.875rem}.viewer-module__retryButton___L-B3U:hover{background:var(--color-primary-dark);transform:translateY(-1px)}.viewer-module__lightboxOverlay___jP4rl{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:9999;display:flex;align-items:center;justify-content:center;padding:2rem}.viewer-module__closeButton___0rBK1{position:absolute;top:1rem;right:1rem;width:48px;height:48px;border:none;background-color:#ffffff1a;border-radius:50%;cursor:pointer;font-size:24px;color:#fff;z-index:10000;transition:background-color .2s ease;display:flex;align-items:center;justify-content:center}.viewer-module__closeButton___0rBK1:hover{background-color:#fff3}.viewer-module__lightboxContent___i-2FK{max-width:90vw;max-height:90vh;display:flex;flex-direction:column;align-items:center;gap:1rem}.viewer-module__lightboxMedia___ZBgR-{max-width:100%;max-height:80vh;width:auto;height:auto;border-radius:8px}@media(max-width:768px){.viewer-module__lightboxOverlay___jP4rl{padding:1rem}.viewer-module__closeButton___0rBK1{top:.5rem;right:.5rem;width:40px;height:40px;font-size:20px}.viewer-module__lightboxMedia___ZBgR-{max-height:70vh}}:root{--color-primary: #1A6B7A;--color-primary-dark: #0F4F5C;--color-secondary: #7A4A1E;--color-secondary-dark: #5C3412;--color-accent: #B8860B;--color-background: #F0F4F7;--color-surface: #FFFFFF;--color-surface-elevated: #E8EEF3;--color-text: #0F1E2E;--color-text-secondary: #3D5166;--color-text-on-primary: #FFFFFF;--color-text-on-secondary: #FFFFFF;--color-text-on-accent: #FFFFFF;--color-disabled: #9CA3AF;--color-border: rgba(0, 0, 0, .12);--shadow-sm: 0 2px 8px rgba(26, 107, 122, .12);--shadow-md: 0 4px 12px rgba(26, 107, 122, .2);--shadow-lg: 0 8px 24px rgba(26, 107, 122, .28);--color-success: #1B5E45;--color-warning: #B45309;--color-error: #B91C1C;--color-info: #1A5276;--toast-bg-success: rgba(27, 94, 69, .1);--toast-bg-warning: rgba(180, 83, 9, .1);--toast-bg-error: rgba(185, 28, 28, .1);--toast-bg-info: rgba(26, 82, 118, .1)}.dark{--color-primary: #FF8B66;--color-primary-dark: #FF6E40;--color-secondary: #FF3DDB;--color-secondary-dark: #D600B3;--color-accent: #00E5FF;--color-background: #050508;--color-surface: #0D0D14;--color-surface-elevated: #141420;--color-text: #F0F6FF;--color-text-secondary: #9BAAB8;--color-disabled: #4A5568;--color-border: rgba(255, 255, 255, .25);--color-text-on-primary: #FFFFFF;--color-text-on-secondary: #FFFFFF;--color-text-on-accent: #FFFFFF;--shadow-sm: 0 2px 8px rgba(255, 110, 64, .25);--shadow-md: 0 4px 16px rgba(255, 110, 64, .35);--shadow-lg: 0 8px 32px rgba(255, 110, 64, .45);--color-success: #34D399;--color-warning: #FBBF24;--color-error: #F87171;--color-info: #60A5FA;--toast-bg-success: rgba(52, 211, 153, .12);--toast-bg-warning: rgba(251, 191, 36, .12);--toast-bg-error: rgba(248, 113, 113, .12);--toast-bg-info: rgba(96, 165, 250, .12)}@media(prefers-color-scheme:dark){:root:not(.light):not(.dark){--color-primary: #FF8B66;--color-primary-dark: #FF6E40;--color-secondary: #FFB84D;--color-secondary-dark: #FF8C42;--color-accent: #00E5FF;--color-background: #0A0118;--color-surface: #1F0F3D;--color-surface-elevated: #2A1850;--color-text: #E8F4FD;--color-text-secondary: #B0BEC5;--color-disabled: #6B7280;--color-border: rgba(255, 255, 255, .15);--shadow-sm: 0 2px 8px rgba(255, 110, 64, .2);--shadow-md: 0 4px 12px rgba(255, 110, 64, .3);--shadow-lg: 0 8px 24px rgba(255, 110, 64, .4);--color-success: #34D399;--color-warning: #FBBF24;--color-error: #F87171;--color-info: #60A5FA;--toast-bg-success: rgba(52, 211, 153, .15);--toast-bg-warning: rgba(251, 191, 36, .15);--toast-bg-error: rgba(248, 113, 113, .15);--toast-bg-info: rgba(96, 165, 250, .15)}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background-color:var(--color-background);color:var(--color-text);transition:background-color .3s ease,color .3s ease;min-height:100vh}::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}::view-transition-new(root){animation:reveal .75s ease-out}@keyframes reveal{0%{clip-path:circle(0% at var(--x) var(--y))}to{clip-path:circle(150% at var(--x) var(--y))}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}::view-transition-new(root){animation:none}}
|