@zomako/elearning-components 1.0.2 → 2.0.3

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.
@@ -1,30 +1,22 @@
1
- (function(x,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("react"),require("framer-motion")):typeof define=="function"&&define.amd?define(["exports","react","framer-motion"],j):(x=typeof globalThis<"u"?globalThis:x||self,j(x.ElearningComponents={},x.React,x.FramerMotion))})(this,function(x,j,B){"use strict";var H={exports:{}},U={};/**
2
- * @license React
3
- * react-jsx-runtime.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var ie;function De(){if(ie)return U;ie=1;var d=j,v=Symbol.for("react.element"),k=Symbol.for("react.fragment"),_=Object.prototype.hasOwnProperty,E=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w={key:!0,ref:!0,__self:!0,__source:!0};function C(T,p,P){var o,u={},f=null,b=null;P!==void 0&&(f=""+P),p.key!==void 0&&(f=""+p.key),p.ref!==void 0&&(b=p.ref);for(o in p)_.call(p,o)&&!w.hasOwnProperty(o)&&(u[o]=p[o]);if(T&&T.defaultProps)for(o in p=T.defaultProps,p)u[o]===void 0&&(u[o]=p[o]);return{$$typeof:v,type:T,key:f,ref:b,props:u,_owner:E.current}}return U.Fragment=k,U.jsx=C,U.jsxs=C,U}var V={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var oe;function Ae(){return oe||(oe=1,process.env.NODE_ENV!=="production"&&function(){var d=j,v=Symbol.for("react.element"),k=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),T=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),o=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),A=Symbol.iterator,W="@@iterator";function K(e){if(e===null||typeof e!="object")return null;var r=A&&e[A]||e[W];return typeof r=="function"?r:null}var D=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];We("error",e,t)}}function We(e,r,t){{var n=D.ReactDebugCurrentFrame,s=n.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(i){return String(i)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var Ye=!1,Le=!1,Ue=!1,Ve=!1,$e=!1,se;se=Symbol.for("react.module.reference");function Me(e){return!!(typeof e=="string"||typeof e=="function"||e===_||e===w||$e||e===E||e===P||e===o||Ve||e===b||Ye||Le||Ue||typeof e=="object"&&e!==null&&(e.$$typeof===f||e.$$typeof===u||e.$$typeof===C||e.$$typeof===T||e.$$typeof===p||e.$$typeof===se||e.getModuleId!==void 0))}function Be(e,r,t){var n=e.displayName;if(n)return n;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function ce(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case k:return"Portal";case w:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case o:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case T:var r=e;return ce(r)+".Consumer";case C:var t=e;return ce(t._context)+".Provider";case p:return Be(e,e.render,"ForwardRef");case u:var n=e.displayName||null;return n!==null?n:N(e.type)||"Memo";case f:{var s=e,c=s._payload,i=s._init;try{return N(i(c))}catch{return null}}}return null}var F=Object.assign,$=0,le,ue,fe,de,ve,pe,he;function ge(){}ge.__reactDisabledLog=!0;function Ke(){{if($===0){le=console.log,ue=console.info,fe=console.warn,de=console.error,ve=console.group,pe=console.groupCollapsed,he=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ge,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function Je(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:le}),info:F({},e,{value:ue}),warn:F({},e,{value:fe}),error:F({},e,{value:de}),group:F({},e,{value:ve}),groupCollapsed:F({},e,{value:pe}),groupEnd:F({},e,{value:he})})}$<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=D.ReactCurrentDispatcher,Z;function J(e,r,t){{if(Z===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);Z=n&&n[1]||""}return`
18
- `+Z+e}}var Q=!1,G;{var Ge=typeof WeakMap=="function"?WeakMap:Map;G=new Ge}function _e(e,r){if(!e||Q)return"";{var t=G.get(e);if(t!==void 0)return t}var n;Q=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=q.current,q.current=null,Ke();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(R){n=R}Reflect.construct(e,[],i)}else{try{i.call()}catch(R){n=R}e.call(i.prototype)}}else{try{throw Error()}catch(R){n=R}e()}}catch(R){if(R&&n&&typeof R.stack=="string"){for(var a=R.stack.split(`
19
- `),m=n.stack.split(`
20
- `),h=a.length-1,g=m.length-1;h>=1&&g>=0&&a[h]!==m[g];)g--;for(;h>=1&&g>=0;h--,g--)if(a[h]!==m[g]){if(h!==1||g!==1)do if(h--,g--,g<0||a[h]!==m[g]){var S=`
21
- `+a[h].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&G.set(e,S),S}while(h>=1&&g>=0);break}}}finally{Q=!1,q.current=c,Je(),Error.prepareStackTrace=s}var L=e?e.displayName||e.name:"",I=L?J(L):"";return typeof e=="function"&&G.set(e,I),I}function ze(e,r,t){return _e(e,!1)}function Xe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function z(e,r,t){if(e==null)return"";if(typeof e=="function")return _e(e,Xe(e));if(typeof e=="string")return J(e);switch(e){case P:return J("Suspense");case o:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return ze(e.render);case u:return z(e.type,r,t);case f:{var n=e,s=n._payload,c=n._init;try{return z(c(s),r,t)}catch{}}}return""}var M=Object.prototype.hasOwnProperty,be={},ye=D.ReactDebugCurrentFrame;function X(e){if(e){var r=e._owner,t=z(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}function He(e,r,t,n,s){{var c=Function.call.bind(M);for(var i in e)if(c(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var m=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(h){a=h}a&&!(a instanceof Error)&&(X(s),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),X(null)),a instanceof Error&&!(a.message in be)&&(be[a.message]=!0,X(s),y("Failed %s type: %s",t,a.message),X(null))}}}var qe=Array.isArray;function ee(e){return qe(e)}function Ze(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Qe(e){try{return me(e),!1}catch{return!0}}function me(e){return""+e}function Ee(e){if(Qe(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ze(e)),me(e)}var Re=D.ReactCurrentOwner,er={key:!0,ref:!0,__self:!0,__source:!0},je,ke;function rr(e){if(M.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function tr(e){if(M.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function nr(e,r){typeof e.ref=="string"&&Re.current}function ar(e,r){{var t=function(){je||(je=!0,y("%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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ir(e,r){{var t=function(){ke||(ke=!0,y("%s: `ref` 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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var or=function(e,r,t,n,s,c,i){var a={$$typeof:v,type:e,key:r,ref:t,props:i,_owner:c};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function sr(e,r,t,n,s){{var c,i={},a=null,m=null;t!==void 0&&(Ee(t),a=""+t),tr(r)&&(Ee(r.key),a=""+r.key),rr(r)&&(m=r.ref,nr(r,s));for(c in r)M.call(r,c)&&!er.hasOwnProperty(c)&&(i[c]=r[c]);if(e&&e.defaultProps){var h=e.defaultProps;for(c in h)i[c]===void 0&&(i[c]=h[c])}if(a||m){var g=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ar(i,g),m&&ir(i,g)}return or(e,a,m,s,n,Re.current,i)}}var re=D.ReactCurrentOwner,Te=D.ReactDebugCurrentFrame;function Y(e){if(e){var r=e._owner,t=z(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}var te;te=!1;function ne(e){return typeof e=="object"&&e!==null&&e.$$typeof===v}function Se(){{if(re.current){var e=N(re.current.type);if(e)return`
1
+ (function(gt,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],b):(gt=typeof globalThis<"u"?globalThis:gt||self,b(gt.ElearningComponents={},gt.React))})(this,(function(gt,b){"use strict";function Io(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const le=Io(b);var ue={exports:{}},zt={};var di;function Bo(){if(di)return zt;di=1;var t=b,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function r(a,l,c){var u,h={},d=null,p=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)i.call(l,u)&&!o.hasOwnProperty(u)&&(h[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)h[u]===void 0&&(h[u]=l[u]);return{$$typeof:e,type:a,key:d,ref:p,props:h,_owner:s.current}}return zt.Fragment=n,zt.jsx=r,zt.jsxs=r,zt}var Yt={};var pi;function _o(){return pi||(pi=1,process.env.NODE_ENV!=="production"&&(function(){var t=b,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),r=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.iterator,x="@@iterator";function T(f){if(f===null||typeof f!="object")return null;var g=m&&f[m]||f[x];return typeof g=="function"?g:null}var y=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(f){{for(var g=arguments.length,P=new Array(g>1?g-1:0),V=1;V<g;V++)P[V-1]=arguments[V];w("error",f,P)}}function w(f,g,P){{var V=y.ReactDebugCurrentFrame,j=V.getStackAddendum();j!==""&&(g+="%s",P=P.concat([j]));var O=P.map(function(k){return String(k)});O.unshift("Warning: "+g),Function.prototype.apply.call(console[f],console,O)}}var E=!1,C=!1,L=!1,_=!1,A=!1,R;R=Symbol.for("react.module.reference");function N(f){return!!(typeof f=="string"||typeof f=="function"||f===i||f===o||A||f===s||f===c||f===u||_||f===p||E||C||L||typeof f=="object"&&f!==null&&(f.$$typeof===d||f.$$typeof===h||f.$$typeof===r||f.$$typeof===a||f.$$typeof===l||f.$$typeof===R||f.getModuleId!==void 0))}function nt(f,g,P){var V=f.displayName;if(V)return V;var j=g.displayName||g.name||"";return j!==""?P+"("+j+")":P}function wt(f){return f.displayName||"Context"}function it(f){if(f==null)return null;if(typeof f.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case i:return"Fragment";case n:return"Portal";case o:return"Profiler";case s:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case a:var g=f;return wt(g)+".Consumer";case r:var P=f;return wt(P._context)+".Provider";case l:return nt(f,f.render,"ForwardRef");case h:var V=f.displayName||null;return V!==null?V:it(f.type)||"Memo";case d:{var j=f,O=j._payload,k=j._init;try{return it(k(O))}catch{return null}}}return null}var ft=Object.assign,Pt=0,si,$,q,ht,mt,Le,xo;function bo(){}bo.__reactDisabledLog=!0;function Of(){{if(Pt===0){si=console.log,$=console.info,q=console.warn,ht=console.error,mt=console.group,Le=console.groupCollapsed,xo=console.groupEnd;var f={configurable:!0,enumerable:!0,value:bo,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}Pt++}}function Ff(){{if(Pt--,Pt===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ft({},f,{value:si}),info:ft({},f,{value:$}),warn:ft({},f,{value:q}),error:ft({},f,{value:ht}),group:ft({},f,{value:mt}),groupCollapsed:ft({},f,{value:Le}),groupEnd:ft({},f,{value:xo})})}Pt<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ri=y.ReactCurrentDispatcher,oi;function je(f,g,P){{if(oi===void 0)try{throw Error()}catch(j){var V=j.stack.trim().match(/\n( *(at )?)/);oi=V&&V[1]||""}return`
2
+ `+oi+f}}var ai=!1,Oe;{var If=typeof WeakMap=="function"?WeakMap:Map;Oe=new If}function wo(f,g){if(!f||ai)return"";{var P=Oe.get(f);if(P!==void 0)return P}var V;ai=!0;var j=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var O;O=ri.current,ri.current=null,Of();try{if(g){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(J){V=J}Reflect.construct(f,[],k)}else{try{k.call()}catch(J){V=J}f.call(k.prototype)}}else{try{throw Error()}catch(J){V=J}f()}}catch(J){if(J&&V&&typeof J.stack=="string"){for(var D=J.stack.split(`
3
+ `),Z=V.stack.split(`
4
+ `),W=D.length-1,K=Z.length-1;W>=1&&K>=0&&D[W]!==Z[K];)K--;for(;W>=1&&K>=0;W--,K--)if(D[W]!==Z[K]){if(W!==1||K!==1)do if(W--,K--,K<0||D[W]!==Z[K]){var st=`
5
+ `+D[W].replace(" at new "," at ");return f.displayName&&st.includes("<anonymous>")&&(st=st.replace("<anonymous>",f.displayName)),typeof f=="function"&&Oe.set(f,st),st}while(W>=1&&K>=0);break}}}finally{ai=!1,ri.current=O,Ff(),Error.prepareStackTrace=j}var Kt=f?f.displayName||f.name:"",Dt=Kt?je(Kt):"";return typeof f=="function"&&Oe.set(f,Dt),Dt}function Bf(f,g,P){return wo(f,!1)}function _f(f){var g=f.prototype;return!!(g&&g.isReactComponent)}function Fe(f,g,P){if(f==null)return"";if(typeof f=="function")return wo(f,_f(f));if(typeof f=="string")return je(f);switch(f){case c:return je("Suspense");case u:return je("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case l:return Bf(f.render);case h:return Fe(f.type,g,P);case d:{var V=f,j=V._payload,O=V._init;try{return Fe(O(j),g,P)}catch{}}}return""}var ae=Object.prototype.hasOwnProperty,Po={},So=y.ReactDebugCurrentFrame;function Ie(f){if(f){var g=f._owner,P=Fe(f.type,f._source,g?g.type:null);So.setExtraStackFrame(P)}else So.setExtraStackFrame(null)}function Nf(f,g,P,V,j){{var O=Function.call.bind(ae);for(var k in f)if(O(f,k)){var D=void 0;try{if(typeof f[k]!="function"){var Z=Error((V||"React class")+": "+P+" type `"+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[k]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Z.name="Invariant Violation",Z}D=f[k](g,k,V,P,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(W){D=W}D&&!(D instanceof Error)&&(Ie(j),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",V||"React class",P,k,typeof D),Ie(null)),D instanceof Error&&!(D.message in Po)&&(Po[D.message]=!0,Ie(j),v("Failed %s type: %s",P,D.message),Ie(null))}}}var Wf=Array.isArray;function li(f){return Wf(f)}function Uf(f){{var g=typeof Symbol=="function"&&Symbol.toStringTag,P=g&&f[Symbol.toStringTag]||f.constructor.name||"Object";return P}}function $f(f){try{return Co(f),!1}catch{return!0}}function Co(f){return""+f}function Eo(f){if($f(f))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Uf(f)),Co(f)}var Ao=y.ReactCurrentOwner,Kf={key:!0,ref:!0,__self:!0,__source:!0},Vo,Do;function zf(f){if(ae.call(f,"ref")){var g=Object.getOwnPropertyDescriptor(f,"ref").get;if(g&&g.isReactWarning)return!1}return f.ref!==void 0}function Yf(f){if(ae.call(f,"key")){var g=Object.getOwnPropertyDescriptor(f,"key").get;if(g&&g.isReactWarning)return!1}return f.key!==void 0}function Hf(f,g){typeof f.ref=="string"&&Ao.current}function Gf(f,g){{var P=function(){Vo||(Vo=!0,v("%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://reactjs.org/link/special-props)",g))};P.isReactWarning=!0,Object.defineProperty(f,"key",{get:P,configurable:!0})}}function Xf(f,g){{var P=function(){Do||(Do=!0,v("%s: `ref` 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://reactjs.org/link/special-props)",g))};P.isReactWarning=!0,Object.defineProperty(f,"ref",{get:P,configurable:!0})}}var qf=function(f,g,P,V,j,O,k){var D={$$typeof:e,type:f,key:g,ref:P,props:k,_owner:O};return D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(D,"_self",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.defineProperty(D,"_source",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D};function Zf(f,g,P,V,j){{var O,k={},D=null,Z=null;P!==void 0&&(Eo(P),D=""+P),Yf(g)&&(Eo(g.key),D=""+g.key),zf(g)&&(Z=g.ref,Hf(g,j));for(O in g)ae.call(g,O)&&!Kf.hasOwnProperty(O)&&(k[O]=g[O]);if(f&&f.defaultProps){var W=f.defaultProps;for(O in W)k[O]===void 0&&(k[O]=W[O])}if(D||Z){var K=typeof f=="function"?f.displayName||f.name||"Unknown":f;D&&Gf(k,K),Z&&Xf(k,K)}return qf(f,D,Z,j,V,Ao.current,k)}}var ui=y.ReactCurrentOwner,Mo=y.ReactDebugCurrentFrame;function $t(f){if(f){var g=f._owner,P=Fe(f.type,f._source,g?g.type:null);Mo.setExtraStackFrame(P)}else Mo.setExtraStackFrame(null)}var ci;ci=!1;function fi(f){return typeof f=="object"&&f!==null&&f.$$typeof===e}function Ro(){{if(ui.current){var f=it(ui.current.type);if(f)return`
22
6
 
23
- Check the render method of \``+e+"`."}return""}}function cr(e){return""}var Oe={};function lr(e){{var r=Se();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
7
+ Check the render method of \``+f+"`."}return""}}function Jf(f){return""}var ko={};function Qf(f){{var g=Ro();if(!g){var P=typeof f=="string"?f:f.displayName||f.name;P&&(g=`
24
8
 
25
- Check the top-level render call using <`+t+">.")}return r}}function we(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=lr(r);if(Oe[t])return;Oe[t]=!0;var n="";e&&e._owner&&e._owner!==re.current&&(n=" It was passed a child from "+N(e._owner.type)+"."),Y(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),Y(null)}}function Ce(e,r){{if(typeof e!="object")return;if(ee(e))for(var t=0;t<e.length;t++){var n=e[t];ne(n)&&we(n,r)}else if(ne(e))e._store&&(e._store.validated=!0);else if(e){var s=K(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),i;!(i=c.next()).done;)ne(i.value)&&we(i.value,r)}}}function ur(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===p||r.$$typeof===u))t=r.propTypes;else return;if(t){var n=N(r);He(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!te){te=!0;var s=N(r);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){Y(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Y(null);break}}e.ref!==null&&(Y(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}var Pe={};function xe(e,r,t,n,s,c){{var i=Me(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var m=cr();m?a+=m:a+=Se();var h;e===null?h="null":ee(e)?h="array":e!==void 0&&e.$$typeof===v?(h="<"+(N(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):h=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",h,a)}var g=sr(e,r,t,s,c);if(g==null)return g;if(i){var S=r.children;if(S!==void 0)if(n)if(ee(S)){for(var L=0;L<S.length;L++)Ce(S[L],e);Object.freeze&&Object.freeze(S)}else y("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 Ce(S,e)}if(M.call(r,"key")){var I=N(e),R=Object.keys(r).filter(function(_r){return _r!=="key"}),ae=R.length>0?"{key: someKey, "+R.join(": ..., ")+": ...}":"{key: someKey}";if(!Pe[I+ae]){var gr=R.length>0?"{"+R.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
9
+ Check the top-level render call using <`+P+">.")}return g}}function Lo(f,g){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var P=Qf(g);if(ko[P])return;ko[P]=!0;var V="";f&&f._owner&&f._owner!==ui.current&&(V=" It was passed a child from "+it(f._owner.type)+"."),$t(f),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',P,V),$t(null)}}function jo(f,g){{if(typeof f!="object")return;if(li(f))for(var P=0;P<f.length;P++){var V=f[P];fi(V)&&Lo(V,g)}else if(fi(f))f._store&&(f._store.validated=!0);else if(f){var j=T(f);if(typeof j=="function"&&j!==f.entries)for(var O=j.call(f),k;!(k=O.next()).done;)fi(k.value)&&Lo(k.value,g)}}}function th(f){{var g=f.type;if(g==null||typeof g=="string")return;var P;if(typeof g=="function")P=g.propTypes;else if(typeof g=="object"&&(g.$$typeof===l||g.$$typeof===h))P=g.propTypes;else return;if(P){var V=it(g);Nf(P,f.props,"prop",V,f)}else if(g.PropTypes!==void 0&&!ci){ci=!0;var j=it(g);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",j||"Unknown")}typeof g.getDefaultProps=="function"&&!g.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function eh(f){{for(var g=Object.keys(f.props),P=0;P<g.length;P++){var V=g[P];if(V!=="children"&&V!=="key"){$t(f),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",V),$t(null);break}}f.ref!==null&&($t(f),v("Invalid attribute `ref` supplied to `React.Fragment`."),$t(null))}}var Oo={};function Fo(f,g,P,V,j,O){{var k=N(f);if(!k){var D="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(D+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Z=Jf();Z?D+=Z:D+=Ro();var W;f===null?W="null":li(f)?W="array":f!==void 0&&f.$$typeof===e?(W="<"+(it(f.type)||"Unknown")+" />",D=" Did you accidentally export a JSX literal instead of a component?"):W=typeof f,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",W,D)}var K=Zf(f,g,P,j,O);if(K==null)return K;if(k){var st=g.children;if(st!==void 0)if(V)if(li(st)){for(var Kt=0;Kt<st.length;Kt++)jo(st[Kt],f);Object.freeze&&Object.freeze(st)}else v("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 jo(st,f)}if(ae.call(g,"key")){var Dt=it(f),J=Object.keys(g).filter(function(ah){return ah!=="key"}),hi=J.length>0?"{key: someKey, "+J.join(": ..., ")+": ...}":"{key: someKey}";if(!Oo[Dt+hi]){var oh=J.length>0?"{"+J.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
26
10
  let props = %s;
27
11
  <%s {...props} />
28
12
  React keys must be passed directly to JSX without using spread:
29
13
  let props = %s;
30
- <%s key={someKey} {...props} />`,ae,I,gr,I),Pe[I+ae]=!0}}return e===_?fr(g):ur(g),g}}function dr(e,r,t){return xe(e,r,t,!0)}function vr(e,r,t){return xe(e,r,t,!1)}var pr=vr,hr=dr;V.Fragment=_,V.jsx=pr,V.jsxs=hr}()),V}process.env.NODE_ENV==="production"?H.exports=De():H.exports=Ae();var l=H.exports;const Ne=({cards:d=[]})=>{const[v,k]=j.useState(0),[_,E]=j.useState(!1);if(!d||d.length===0)return l.jsx("div",{className:"flashcard-deck-container",children:l.jsx("p",{className:"flashcard-empty-message",children:"No cards available"})});const w=d[v],C=v>0,T=v<d.length-1,p=()=>{C&&(k(v-1),E(!1))},P=()=>{T&&(k(v+1),E(!1))},o=()=>{E(!_)};return l.jsxs("div",{className:"flashcard-deck-container",children:[l.jsx("div",{className:"flashcard-deck-header",children:l.jsxs("span",{className:"flashcard-counter",children:["Card ",v+1," of ",d.length]})}),l.jsx("div",{className:"flashcard-wrapper",children:l.jsxs(B.motion.div,{className:"flashcard",onClick:o,animate:{rotateY:_?180:0},transition:{duration:.6,type:"spring",stiffness:100},style:{transformStyle:"preserve-3d"},children:[l.jsx("div",{className:"flashcard-face flashcard-front",children:l.jsx("div",{className:"flashcard-content",children:w.front})}),l.jsx("div",{className:"flashcard-face flashcard-back",children:l.jsx("div",{className:"flashcard-content",children:w.back})})]},v)}),l.jsxs("div",{className:"flashcard-controls",children:[l.jsx("button",{className:"flashcard-button flashcard-button-previous",onClick:p,disabled:!C,"aria-label":"Previous card",children:"Previous"}),l.jsx("button",{className:"flashcard-button flashcard-button-next",onClick:P,disabled:!T,"aria-label":"Next card",children:"Next"})]})]})},O={accordion:"_accordion_1gkiv_1",empty:"_empty_1gkiv_17",item:"_item_1gkiv_31",heading:"_heading_1gkiv_73",trigger:"_trigger_1gkiv_85",title:"_title_1gkiv_145",icon:"_icon_1gkiv_155",panelWrapper:"_panelWrapper_1gkiv_179",panel:"_panel_1gkiv_179",content:"_content_1gkiv_195"},Fe=(d,v,k,_)=>d&&k&&k.length>0?new Set(k.filter(E=>_!=null&&E>=0&&E<_)):!d&&v!=null&&v>=0&&_!=null&&v<_?new Set([v]):new Set,Ie=({items:d,allowMultiple:v=!1,defaultExpandedIndex:k,defaultExpandedIndexes:_,className:E})=>{const w=j.useId(),[C,T]=j.useState(()=>Fe(v,k,_,d==null?void 0:d.length)),p=j.useCallback(o=>{T(u=>{const f=new Set(u);return f.has(o)?f.delete(o):(v||f.clear(),f.add(o)),f})},[v]),P=j.useCallback((o,u)=>{var A,W,K,D;const f=o.currentTarget.closest("[data-accordion]"),b=f==null?void 0:f.querySelectorAll("[data-accordion-trigger]");if(b!=null&&b.length)switch(o.key){case"Enter":case" ":o.preventDefault(),p(u);break;case"ArrowDown":case"ArrowRight":o.preventDefault(),u<d.length-1&&((A=b[u+1])==null||A.focus());break;case"ArrowUp":case"ArrowLeft":o.preventDefault(),u>0&&((W=b[u-1])==null||W.focus());break;case"Home":o.preventDefault(),(K=b[0])==null||K.focus();break;case"End":o.preventDefault(),(D=b[b.length-1])==null||D.focus();break}},[d.length,p]);return d!=null&&d.length?l.jsx("div",{className:[O.accordion,E].filter(Boolean).join(" "),role:"region","aria-label":"Accordion","data-accordion":!0,children:d.map((o,u)=>{const f=C.has(u),b=`${w}-header-${u}`,A=`${w}-panel-${u}`;return l.jsxs("div",{className:O.item,"data-open":f,children:[l.jsx("h3",{className:O.heading,children:l.jsxs("button",{type:"button",id:b,className:O.trigger,"aria-expanded":f,"aria-controls":A,"data-accordion-trigger":!0,onClick:()=>p(u),onKeyDown:W=>P(W,u),children:[l.jsx("span",{className:O.title,children:o.title}),l.jsx(B.motion.span,{className:O.icon,animate:{rotate:f?180:0},transition:{duration:.25},"aria-hidden":!0,children:"▼"})]})}),l.jsx("div",{id:A,role:"region","aria-labelledby":b,"aria-hidden":!f,className:O.panelWrapper,children:l.jsx(B.AnimatePresence,{initial:!1,children:f&&l.jsx(B.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:O.panel,children:l.jsx("div",{className:O.content,children:o.content})})})})]},o.id??u)})}):l.jsx("div",{className:[O.accordion,E].filter(Boolean).join(" "),role:"region","aria-label":"Accordion",children:l.jsx("p",{className:O.empty,children:"No items to display."})})};x.Accordion=Ie,x.FlashcardDeck=Ne,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
14
+ <%s key={someKey} {...props} />`,hi,Dt,oh,Dt),Oo[Dt+hi]=!0}}return f===i?eh(K):th(K),K}}function nh(f,g,P){return Fo(f,g,P,!0)}function ih(f,g,P){return Fo(f,g,P,!1)}var sh=ih,rh=nh;Yt.Fragment=i,Yt.jsx=sh,Yt.jsxs=rh})()),Yt}var mi;function No(){return mi||(mi=1,process.env.NODE_ENV==="production"?ue.exports=Bo():ue.exports=_o()),ue.exports}var M=No();const Wo=({cards:t=[]})=>{const[e,n]=b.useState(0),[i,s]=b.useState(!1);if(!t||t.length===0)return M.jsx("div",{className:"flashcard-deck-container",children:M.jsx("p",{className:"flashcard-empty-message",children:"No cards available"})});const o=t[e],r=e>0,a=e<t.length-1,l=()=>{r&&(n(e-1),s(!1))},c=()=>{a&&(n(e+1),s(!1))},u=()=>{s(!i)};return M.jsxs("div",{className:"flashcard-deck-container",children:[M.jsx("div",{className:"flashcard-deck-header",children:M.jsxs("span",{className:"flashcard-counter",children:["Card ",e+1," of ",t.length]})}),M.jsx("div",{className:"flashcard-wrapper",children:M.jsxs("div",{className:`flashcard ${i?"flashcard--flipped":""}`,onClick:u,children:[M.jsx("div",{className:"flashcard-face flashcard-front",children:M.jsx("div",{className:"flashcard-content",children:o.front})}),M.jsx("div",{className:"flashcard-face flashcard-back",children:M.jsx("div",{className:"flashcard-content",children:o.back})})]},e)}),M.jsxs("div",{className:"flashcard-controls",children:[M.jsx("button",{className:"flashcard-button flashcard-button-previous",onClick:l,disabled:!r,"aria-label":"Previous card",children:"Previous"}),M.jsx("button",{className:"flashcard-button flashcard-button-next",onClick:c,disabled:!a,"aria-label":"Next card",children:"Next"})]})]})},Be=b.createContext({});function _e(t){const e=b.useRef(null);return e.current===null&&(e.current=t()),e.current}const gi=typeof window<"u",yi=gi?b.useLayoutEffect:b.useEffect,ce=b.createContext(null);function Ne(t,e){t.indexOf(e)===-1&&t.push(e)}function fe(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const lt=(t,e,n)=>n>e?e:n<t?t:n;function We(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}let Mt=()=>{},dt=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(Mt=(t,e,n)=>{!t&&typeof console<"u"&&console.warn(We(e,n))},dt=(t,e,n)=>{if(!t)throw new Error(We(e,n))});const pt={},vi=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Ti(t){return typeof t=="object"&&t!==null}const xi=t=>/^0[^.\s]+$/u.test(t);function Ue(t){let e;return()=>(e===void 0&&(e=t()),e)}const Q=t=>t,Uo=(t,e)=>n=>e(t(n)),Ht=(...t)=>t.reduce(Uo),Gt=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i};class $e{constructor(){this.subscriptions=[]}add(e){return Ne(this.subscriptions,e),()=>fe(this.subscriptions,e)}notify(e,n,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,i);else for(let o=0;o<s;o++){const r=this.subscriptions[o];r&&r(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const tt=t=>t*1e3,et=t=>t/1e3;function bi(t,e){return e?t*(1e3/e):0}const wi=new Set;function Ke(t,e,n){t||wi.has(e)||(console.warn(We(e,n)),wi.add(e))}const Pi=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,$o=1e-7,Ko=12;function zo(t,e,n,i,s){let o,r,a=0;do r=e+(n-e)/2,o=Pi(r,i,s)-t,o>0?n=r:e=r;while(Math.abs(o)>$o&&++a<Ko);return r}function Xt(t,e,n,i){if(t===e&&n===i)return Q;const s=o=>zo(o,0,1,t,n);return o=>o===0||o===1?o:Pi(s(o),e,i)}const Si=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ci=t=>e=>1-t(1-e),Ei=Xt(.33,1.53,.69,.99),ze=Ci(Ei),Ai=Si(ze),Vi=t=>(t*=2)<1?.5*ze(t):.5*(2-Math.pow(2,-10*(t-1))),Ye=t=>1-Math.sin(Math.acos(t)),Di=Ci(Ye),Mi=Si(Ye),Yo=Xt(.42,0,1,1),Ho=Xt(0,0,.58,1),Ri=Xt(.42,0,.58,1),Go=t=>Array.isArray(t)&&typeof t[0]!="number",ki=t=>Array.isArray(t)&&typeof t[0]=="number",Li={linear:Q,easeIn:Yo,easeInOut:Ri,easeOut:Ho,circIn:Ye,circInOut:Mi,circOut:Di,backIn:ze,backInOut:Ai,backOut:Ei,anticipate:Vi},Xo=t=>typeof t=="string",ji=t=>{if(ki(t)){dt(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,i,s]=t;return Xt(e,n,i,s)}else if(Xo(t))return dt(Li[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),Li[t];return t},he=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function qo(t,e){let n=new Set,i=new Set,s=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){r.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,h=!1,d=!1)=>{const m=d&&s?n:i;return h&&r.add(u),m.has(u)||m.add(u),u},cancel:u=>{i.delete(u),r.delete(u)},process:u=>{if(a=u,s){o=!0;return}s=!0,[n,i]=[i,n],n.forEach(l),n.clear(),s=!1,o&&(o=!1,c.process(u))}};return c}const Zo=40;function Oi(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=he.reduce((w,E)=>(w[E]=qo(o),w),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:d,render:p,postRender:m}=r,x=()=>{const w=pt.useManualTiming?s.timestamp:performance.now();n=!1,pt.useManualTiming||(s.delta=i?1e3/60:Math.max(Math.min(w-s.timestamp,Zo),1)),s.timestamp=w,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),h.process(s),d.process(s),p.process(s),m.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(x))},T=()=>{n=!0,i=!0,s.isProcessing||t(x)};return{schedule:he.reduce((w,E)=>{const C=r[E];return w[E]=(L,_=!1,A=!1)=>(n||T(),C.schedule(L,_,A)),w},{}),cancel:w=>{for(let E=0;E<he.length;E++)r[he[E]].cancel(w)},state:s,steps:r}}const{schedule:F,cancel:yt,state:Y,steps:He}=Oi(typeof requestAnimationFrame<"u"?requestAnimationFrame:Q,!0);let de;function Jo(){de=void 0}const G={now:()=>(de===void 0&&G.set(Y.isProcessing||pt.useManualTiming?Y.timestamp:performance.now()),de),set:t=>{de=t,queueMicrotask(Jo)}},Fi=t=>e=>typeof e=="string"&&e.startsWith(t),Ii=Fi("--"),Qo=Fi("var(--"),Ge=t=>Qo(t)?ta.test(t.split("/*")[0].trim()):!1,ta=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Bi(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Rt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},qt={...Rt,transform:t=>lt(0,1,t)},pe={...Rt,default:1},Zt=t=>Math.round(t*1e5)/1e5,Xe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ea(t){return t==null}const na=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,qe=(t,e)=>n=>!!(typeof n=="string"&&na.test(n)&&n.startsWith(t)||e&&!ea(n)&&Object.prototype.hasOwnProperty.call(n,e)),_i=(t,e,n)=>i=>{if(typeof i!="string")return i;const[s,o,r,a]=i.match(Xe);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},ia=t=>lt(0,255,t),Ze={...Rt,transform:t=>Math.round(ia(t))},St={test:qe("rgb","red"),parse:_i("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Ze.transform(t)+", "+Ze.transform(e)+", "+Ze.transform(n)+", "+Zt(qt.transform(i))+")"};function sa(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const Je={test:qe("#"),parse:sa,transform:St.transform},Jt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),vt=Jt("deg"),ut=Jt("%"),S=Jt("px"),ra=Jt("vh"),oa=Jt("vw"),Ni={...ut,parse:t=>ut.parse(t)/100,transform:t=>ut.transform(t*100)},kt={test:qe("hsl","hue"),parse:_i("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+ut.transform(Zt(e))+", "+ut.transform(Zt(n))+", "+Zt(qt.transform(i))+")"},U={test:t=>St.test(t)||Je.test(t)||kt.test(t),parse:t=>St.test(t)?St.parse(t):kt.test(t)?kt.parse(t):Je.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?St.transform(t):kt.transform(t),getAnimatableNone:t=>{const e=U.parse(t);return e.alpha=0,U.transform(e)}},aa=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function la(t){return isNaN(t)&&typeof t=="string"&&(t.match(Xe)?.length||0)+(t.match(aa)?.length||0)>0}const Wi="number",Ui="color",ua="var",ca="var(",$i="${}",fa=/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 Qt(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const a=e.replace(fa,l=>(U.test(l)?(i.color.push(o),s.push(Ui),n.push(U.parse(l))):l.startsWith(ca)?(i.var.push(o),s.push(ua),n.push(l)):(i.number.push(o),s.push(Wi),n.push(parseFloat(l))),++o,$i)).split($i);return{values:n,split:a,indexes:i,types:s}}function Ki(t){return Qt(t).values}function zi(t){const{split:e,types:n}=Qt(t),i=e.length;return s=>{let o="";for(let r=0;r<i;r++)if(o+=e[r],s[r]!==void 0){const a=n[r];a===Wi?o+=Zt(s[r]):a===Ui?o+=U.transform(s[r]):o+=s[r]}return o}}const ha=t=>typeof t=="number"?0:U.test(t)?U.getAnimatableNone(t):t;function da(t){const e=Ki(t);return zi(t)(e.map(ha))}const Tt={test:la,parse:Ki,createTransformer:zi,getAnimatableNone:da};function Qe(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function pa({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let s=0,o=0,r=0;if(!e)s=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;s=Qe(l,a,t+1/3),o=Qe(l,a,t),r=Qe(l,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:i}}function me(t,e){return n=>n>0?e:t}const I=(t,e,n)=>t+(e-t)*n,tn=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},ma=[Je,St,kt],ga=t=>ma.find(e=>e.test(t));function Yi(t){const e=ga(t);if(Mt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===kt&&(n=pa(n)),n}const Hi=(t,e)=>{const n=Yi(t),i=Yi(e);if(!n||!i)return me(t,e);const s={...n};return o=>(s.red=tn(n.red,i.red,o),s.green=tn(n.green,i.green,o),s.blue=tn(n.blue,i.blue,o),s.alpha=I(n.alpha,i.alpha,o),St.transform(s))},en=new Set(["none","hidden"]);function ya(t,e){return en.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function va(t,e){return n=>I(t,e,n)}function nn(t){return typeof t=="number"?va:typeof t=="string"?Ge(t)?me:U.test(t)?Hi:ba:Array.isArray(t)?Gi:typeof t=="object"?U.test(t)?Hi:Ta:me}function Gi(t,e){const n=[...t],i=n.length,s=t.map((o,r)=>nn(o)(o,e[r]));return o=>{for(let r=0;r<i;r++)n[r]=s[r](o);return n}}function Ta(t,e){const n={...t,...e},i={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(i[s]=nn(t[s])(t[s],e[s]));return s=>{for(const o in i)n[o]=i[o](s);return n}}function xa(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],r=t.indexes[o][i[o]],a=t.values[r]??0;n[s]=a,i[o]++}return n}const ba=(t,e)=>{const n=Tt.createTransformer(e),i=Qt(t),s=Qt(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?en.has(t)&&!s.values.length||en.has(e)&&!i.values.length?ya(t,e):Ht(Gi(xa(i,s),s.values),n):(Mt(!0,`Complex values '${t}' and '${e}' 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"),me(t,e))};function Xi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?I(t,e,n):nn(t)(t,e)}const wa=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>F.update(e,n),stop:()=>yt(e),now:()=>Y.isProcessing?Y.timestamp:G.now()}},qi=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o<s;o++)i+=Math.round(t(o/(s-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},ge=2e4;function sn(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<ge;)e+=n,i=t.next(e);return e>=ge?1/0:e}function Pa(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(sn(i),ge);return{type:"keyframes",ease:o=>i.next(s*o).value/e,duration:et(s)}}const Sa=5;function Zi(t,e,n){const i=Math.max(e-Sa,0);return bi(n-t(i),e-i)}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},rn=.001;function Ca({duration:t=B.duration,bounce:e=B.bounce,velocity:n=B.velocity,mass:i=B.mass}){let s,o;Mt(t<=tt(B.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-e;r=lt(B.minDamping,B.maxDamping,r),t=lt(B.minDuration,B.maxDuration,et(t)),r<1?(s=c=>{const u=c*r,h=u*t,d=u-n,p=on(c,r),m=Math.exp(-h);return rn-d/p*m},o=c=>{const h=c*r*t,d=h*n+n,p=Math.pow(r,2)*Math.pow(c,2)*t,m=Math.exp(-h),x=on(Math.pow(c,2),r);return(-s(c)+rn>0?-1:1)*((d-p)*m)/x}):(s=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-rn+u*h},o=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=Aa(s,o,a);if(t=tt(t),isNaN(l))return{stiffness:B.stiffness,damping:B.damping,duration:t};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:r*2*Math.sqrt(i*c),duration:t}}}const Ea=12;function Aa(t,e,n){let i=n;for(let s=1;s<Ea;s++)i=i-t(i)/e(i);return i}function on(t,e){return t*Math.sqrt(1-e*e)}const Va=["duration","bounce"],Da=["stiffness","damping","mass"];function Ji(t,e){return e.some(n=>t[n]!==void 0)}function Ma(t){let e={velocity:B.velocity,stiffness:B.stiffness,damping:B.damping,mass:B.mass,isResolvedFromDuration:!1,...t};if(!Ji(t,Da)&&Ji(t,Va))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,o=2*lt(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:B.mass,stiffness:s,damping:o}}else{const n=Ca(t);e={...e,...n,mass:B.mass},e.isResolvedFromDuration=!0}return e}function ye(t=B.visualDuration,e=B.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:h,velocity:d,isResolvedFromDuration:p}=Ma({...n,velocity:-et(n.velocity||0)}),m=d||0,x=c/(2*Math.sqrt(l*u)),T=r-o,y=et(Math.sqrt(l/u)),v=Math.abs(T)<5;i||(i=v?B.restSpeed.granular:B.restSpeed.default),s||(s=v?B.restDelta.granular:B.restDelta.default);let w;if(x<1){const C=on(y,x);w=L=>{const _=Math.exp(-x*y*L);return r-_*((m+x*y*T)/C*Math.sin(C*L)+T*Math.cos(C*L))}}else if(x===1)w=C=>r-Math.exp(-y*C)*(T+(m+y*T)*C);else{const C=y*Math.sqrt(x*x-1);w=L=>{const _=Math.exp(-x*y*L),A=Math.min(C*L,300);return r-_*((m+x*y*T)*Math.sinh(A)+C*T*Math.cosh(A))/C}}const E={calculatedDuration:p&&h||null,next:C=>{const L=w(C);if(p)a.done=C>=h;else{let _=C===0?m:0;x<1&&(_=C===0?tt(m):Zi(w,C,L));const A=Math.abs(_)<=i,R=Math.abs(r-L)<=s;a.done=A&&R}return a.value=a.done?r:L,a},toString:()=>{const C=Math.min(sn(E),ge),L=qi(_=>E.next(C*_).value,C,30);return C+"ms "+L},toTransition:()=>{}};return E}ye.applyToOptions=t=>{const e=Pa(t,100,ye);return t.ease=e.ease,t.duration=tt(e.duration),t.type="keyframes",t};function an({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},p=A=>a!==void 0&&A<a||l!==void 0&&A>l,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let x=n*e;const T=h+x,y=r===void 0?T:r(T);y!==T&&(x=y-h);const v=A=>-x*Math.exp(-A/i),w=A=>y+v(A),E=A=>{const R=v(A),N=w(A);d.done=Math.abs(R)<=c,d.value=d.done?y:N};let C,L;const _=A=>{p(d.value)&&(C=A,L=ye({keyframes:[d.value,m(d.value)],velocity:Zi(w,A,d.value),damping:s,stiffness:o,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:A=>{let R=!1;return!L&&C===void 0&&(R=!0,E(A),_(A)),C!==void 0&&A>=C?L.next(A-C):(!R&&E(A),d)}}}function Ra(t,e,n){const i=[],s=n||pt.mix||Xi,o=t.length-1;for(let r=0;r<o;r++){let a=s(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||Q:e;a=Ht(l,a)}i.push(a)}return i}function ka(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(dt(o===e.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ra(e,i,s),l=a.length,c=u=>{if(r&&u<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const d=Gt(t[h],t[h+1],u);return a[h](d)};return n?u=>c(lt(t[0],t[o-1],u)):c}function La(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=Gt(0,e,i);t.push(I(n,1,s))}}function ja(t){const e=[0];return La(e,t.length-1),e}function Oa(t,e){return t.map(n=>n*e)}function Fa(t,e){return t.map(()=>e||Ri).splice(0,t.length-1)}function Lt({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=Go(i)?i.map(ji):ji(i),o={done:!1,value:e[0]},r=Oa(n&&n.length===e.length?n:ja(e),t),a=ka(r,e,{ease:Array.isArray(s)?s:Fa(e,s)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Ia=t=>t!==null;function ln(t,{repeat:e,repeatType:n="loop"},i,s=1){const o=t.filter(Ia),a=s<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||i===void 0?o[a]:i}const Ba={decay:an,inertia:an,tween:Lt,keyframes:Lt,spring:ye};function Qi(t){typeof t.type=="string"&&(t.type=Ba[t.type])}class un{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const _a=t=>t/100;class cn extends un{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==G.now()&&this.tick(G.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Qi(e);const{type:n=Lt,repeat:i=0,repeatDelay:s=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||Lt;process.env.NODE_ENV!=="production"&&l!==Lt&&dt(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Lt&&typeof a[0]!="number"&&(this.mixKeyframes=Ht(_a,Xi(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=sn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:i,totalDuration:s,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return i.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:p,type:m,onUpdate:x,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const y=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>s;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let w=this.currentTime,E=i;if(h){const A=Math.min(this.currentTime,s)/a;let R=Math.floor(A),N=A%1;!N&&A>=1&&(N=1),N===1&&R--,R=Math.min(R,h+1),R%2&&(d==="reverse"?(N=1-N,p&&(N-=p/a)):d==="mirror"&&(E=r)),w=lt(0,1,N)*a}const C=v?{done:!1,value:u[0]}:E.next(w);o&&(C.value=o(C.value));let{done:L}=C;!v&&l!==null&&(L=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return _&&m!==an&&(C.value=ln(u,this.options,T,this.speed)),x&&x(C.value),_&&this.finish(),C}then(e,n){return this.finished.then(e,n)}get duration(){return et(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+et(e)}get time(){return et(this.currentTime)}set time(e){e=tt(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(G.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=et(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=wa,startTime:n}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),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(G.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Na(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Ct=t=>t*180/Math.PI,fn=t=>{const e=Ct(Math.atan2(t[1],t[0]));return hn(e)},Wa={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:fn,rotateZ:fn,skewX:t=>Ct(Math.atan(t[1])),skewY:t=>Ct(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},hn=t=>(t=t%360,t<0&&(t+=360),t),ts=fn,es=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ns=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Ua={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:es,scaleY:ns,scale:t=>(es(t)+ns(t))/2,rotateX:t=>hn(Ct(Math.atan2(t[6],t[5]))),rotateY:t=>hn(Ct(Math.atan2(-t[2],t[0]))),rotateZ:ts,rotate:ts,skewX:t=>Ct(Math.atan(t[4])),skewY:t=>Ct(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function dn(t){return t.includes("scale")?1:0}function pn(t,e){if(!t||t==="none")return dn(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=Ua,s=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Wa,s=a}if(!s)return dn(e);const o=i[e],r=s[1].split(",").map(Ka);return typeof o=="function"?o(r):r[o]}const $a=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return pn(n,e)};function Ka(t){return parseFloat(t.trim())}const jt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ot=new Set(jt),is=t=>t===Rt||t===S,za=new Set(["x","y","z"]),Ya=jt.filter(t=>!za.has(t));function Ha(t){const e=[];return Ya.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const xt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>pn(e,"x"),y:(t,{transform:e})=>pn(e,"y")};xt.translateX=xt.x,xt.translateY=xt.y;const Et=new Set;let mn=!1,gn=!1,yn=!1;function ss(){if(gn){const t=Array.from(Et).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const s=Ha(i);s.length&&(n.set(i,s),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const s=n.get(i);s&&s.forEach(([o,r])=>{i.getValue(o)?.set(r)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}gn=!1,mn=!1,Et.forEach(t=>t.complete(yn)),Et.clear()}function rs(){Et.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(gn=!0)})}function Ga(){yn=!0,rs(),ss(),yn=!1}class vn{constructor(e,n,i,s,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=s,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Et.add(this),mn||(mn=!0,F.read(rs),F.resolveKeyframes(ss))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:s}=this;if(e[0]===null){const o=s?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(i&&n){const a=i.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),s&&o===void 0&&s.set(e[0])}Na(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Et.delete(this)}cancel(){this.state==="scheduled"&&(Et.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Xa=t=>t.startsWith("--");function qa(t,e,n){Xa(e)?t.style.setProperty(e,n):t.style[e]=n}const Za=Ue(()=>window.ScrollTimeline!==void 0),Ja={};function Qa(t,e){const n=Ue(t);return()=>Ja[e]??n()}const os=Qa(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),te=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,as={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:te([0,.65,.55,1]),circOut:te([.55,0,1,.45]),backIn:te([.31,.01,.66,-.59]),backOut:te([.33,1.53,.69,.99])};function ls(t,e){if(t)return typeof t=="function"?os()?qi(t,e):"ease-out":ki(t)?te(t):Array.isArray(t)?t.map(n=>ls(n,e)||as.easeOut):as[t]}function tl(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const h=ls(a,s);Array.isArray(h)&&(u.easing=h);const d={delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return c&&(d.pseudoElement=c),t.animate(u,d)}function us(t){return typeof t=="function"&&"applyToOptions"in t}function el({type:t,...e}){return us(t)&&os()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class cs extends un{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:i,keyframes:s,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,dt(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=el(e);this.animation=tl(n,i,s,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=ln(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):qa(n,i,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return et(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+et(e)}get time(){return et(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tt(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Za()?(this.animation.timeline=e,Q):n(this)}}const fs={anticipate:Vi,backInOut:Ai,circInOut:Mi};function nl(t){return t in fs}function il(t){typeof t.ease=="string"&&nl(t.ease)&&(t.ease=fs[t.ease])}const Tn=10;class sl extends cs{constructor(e){il(e),Qi(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:i,onComplete:s,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new cn({...r,autoplay:!1}),l=Math.max(Tn,G.now()-this.startTime),c=lt(0,Tn,l-Tn);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const hs=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Tt.test(t)||t==="0")&&!t.startsWith("url("));function rl(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function ol(t,e,n,i){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=hs(s,e),a=hs(o,e);return Mt(r===a,`You are trying to animate ${e} from "${s}" to "${o}". "${r?o:s}" is not an animatable value.`,"value-not-animatable"),!r||!a?!1:rl(t)||(n==="spring"||us(n))&&i}function xn(t){t.duration=0,t.type="keyframes"}const al=new Set(["opacity","clipPath","filter","transform"]),ll=Ue(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ul(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return ll()&&n&&al.has(n)&&(n!=="transform"||!c)&&!l&&!i&&s!=="mirror"&&o!==0&&r!=="inertia"}const cl=40;class fl extends un{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:c,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=G.now();const d={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:o,repeatType:r,name:l,motionValue:c,element:u,...h},p=u?.KeyframeResolver||vn;this.keyframeResolver=new p(a,(m,x,T)=>this.onKeyframesResolved(m,x,d,!T),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,i,s){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:c,onUpdate:u}=i;this.resolvedAt=G.now(),ol(e,o,r,a)||((pt.instantAnimations||!l)&&u?.(ln(e,i,n)),e[0]=e[e.length-1],xn(i),i.repeat=0);const d={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>cl?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:e},p=!c&&ul(d),m=d.motionValue?.owner?.current,x=p?new sl({...d,element:m}):new cn(d);x.finished.then(()=>{this.notifyFinished()}).catch(Q),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ga()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function ds(t,e,n,i=0,s=1){const o=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),r=t.size,a=(r-1)*i;return typeof n=="function"?n(o,r):s===1?o*i:a-o*i}const hl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function dl(t){const e=hl.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}const pl=4;function ps(t,e,n=1){dt(n<=pl,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[i,s]=dl(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const r=o.trim();return vi(r)?parseFloat(r):r}return Ge(s)?ps(s,e,n+1):s}const ml={type:"spring",stiffness:500,damping:25,restSpeed:10},gl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),yl={type:"keyframes",duration:.8},vl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tl=(t,{keyframes:e})=>e.length>2?yl:Ot.has(t)?t.startsWith("scale")?gl(e[1]):ml:vl,xl=t=>t!==null;function bl(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(xl),o=e&&n!=="loop"&&e%2===1?0:s.length-1;return s[o]}function ms(t,e){if(t?.inherit&&e){const{inherit:n,...i}=t;return{...e,...i}}return t}function bn(t,e){const n=t?.[e]??t?.default??t;return n!==t?ms(n,t):n}function wl({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const wn=(t,e,n,i={},s,o)=>r=>{const a=bn(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-tt(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};wl(a)||Object.assign(u,Tl(t,u)),u.duration&&(u.duration=tt(u.duration)),u.repeatDelay&&(u.repeatDelay=tt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(xn(u),u.delay===0&&(h=!0)),(pt.instantAnimations||pt.skipAnimations||s?.shouldSkipAnimations)&&(h=!0,xn(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const d=bl(u.keyframes,a);if(d!==void 0){F.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new cn(u):new fl(u)};function gs(t){const e=[{},{}];return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function Pn(t,e,n,i){if(typeof e=="function"){const[s,o]=gs(i);e=e(n!==void 0?n:t.custom,s,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,o]=gs(i);e=e(n!==void 0?n:t.custom,s,o)}return e}function Ft(t,e,n){const i=t.getProps();return Pn(i,e,n!==void 0?n:i.custom,t)}const ys=new Set(["width","height","top","left","right","bottom",...jt]),vs=30,Pl=t=>!isNaN(parseFloat(t));class Sl{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const s=G.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=G.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Pl(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Ke(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new $e);const i=this.events[e].add(n);return e==="change"?()=>{i(),F.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=G.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>vs)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,vs);return bi(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function It(t,e){return new Sl(t,e)}const Sn=t=>Array.isArray(t);function Cl(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,It(n))}function El(t){return Sn(t)?t[t.length-1]||0:t}function Al(t,e){const n=Ft(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const r in o){const a=El(o[r]);Cl(t,r,a)}}const H=t=>!!(t&&t.getVelocity);function Vl(t){return!!(H(t)&&t.add)}function Cn(t,e){const n=t.getValue("willChange");if(Vl(n))return n.add(e);if(!n&&pt.WillChange){const i=new pt.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function En(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Ts="data-"+En("framerAppearId");function xs(t){return t.props[Ts]}function Dl({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function bs(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:o,transitionEnd:r,...a}=e;const l=t.getDefaultTransition();o=o?ms(o,l):l;const c=o?.reduceMotion;i&&(o=i);const u=[],h=s&&t.animationState&&t.animationState.getState()[s];for(const d in a){const p=t.getValue(d,t.latestValues[d]??null),m=a[d];if(m===void 0||h&&Dl(h,d))continue;const x={delay:n,...bn(o||{},d)},T=p.get();if(T!==void 0&&!p.isAnimating&&!Array.isArray(m)&&m===T&&!x.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const E=xs(t);if(E){const C=window.MotionHandoffAnimation(E,d,F);C!==null&&(x.startTime=C,y=!0)}}Cn(t,d);const v=c??t.shouldReduceMotion;p.start(wn(d,p,m,v&&ys.has(d)?{type:!1}:x,t,y));const w=p.animation;w&&u.push(w)}if(r){const d=()=>F.update(()=>{r&&Al(t,r)});u.length?Promise.all(u).then(d):d()}return u}function An(t,e,n={}){const i=Ft(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(bs(t,i,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=s;return Ml(t,e,l,c,u,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[l,c]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function Ml(t,e,n=0,i=0,s=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(An(l,e,{...r,delay:n+(typeof i=="function"?0:i)+ds(t.variantChildren,l,i,s,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Rl(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const s=e.map(o=>An(t,o,n));i=Promise.all(s)}else if(typeof e=="string")i=An(t,e,n);else{const s=typeof e=="function"?Ft(t,e,n.custom):e;i=Promise.all(bs(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const kl={test:t=>t==="auto",parse:t=>t},ws=t=>e=>e.test(t),Ps=[Rt,S,ut,vt,oa,ra,kl],Ss=t=>Ps.find(ws(t));function Ll(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||xi(t):!0}const jl=new Set(["brightness","contrast","saturate","opacity"]);function Ol(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Xe)||[];if(!i)return t;const s=n.replace(i,"");let o=jl.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const Fl=/\b([a-z-]*)\(.*?\)/gu,Vn={...Tt,getAnimatableNone:t=>{const e=t.match(Fl);return e?e.map(Ol).join(" "):t}},Cs={...Rt,transform:Math.round},Dn={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:vt,rotateX:vt,rotateY:vt,rotateZ:vt,scale:pe,scaleX:pe,scaleY:pe,scaleZ:pe,skew:vt,skewX:vt,skewY:vt,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:qt,originX:Ni,originY:Ni,originZ:S},zIndex:Cs,fillOpacity:qt,strokeOpacity:qt,numOctaves:Cs},Il={...Dn,color:U,backgroundColor:U,outlineColor:U,fill:U,stroke:U,borderColor:U,borderTopColor:U,borderRightColor:U,borderBottomColor:U,borderLeftColor:U,filter:Vn,WebkitFilter:Vn},Es=t=>Il[t];function As(t,e){let n=Es(t);return n!==Vn&&(n=Tt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Bl=new Set(["auto","none","0"]);function _l(t,e,n){let i=0,s;for(;i<t.length&&!s;){const o=t[i];typeof o=="string"&&!Bl.has(o)&&Qt(o).values.length&&(s=t[i]),i++}if(s&&n)for(const o of e)t[o]=As(n,s)}class Nl extends vn{constructor(e,n,i,s,o){super(e,n,i,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let h=e[u];if(typeof h=="string"&&(h=h.trim(),Ge(h))){const d=ps(h,n.current);d!==void 0&&(e[u]=d),u===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!ys.has(i)||e.length!==2)return;const[s,o]=e,r=Ss(s),a=Ss(o),l=Bi(s),c=Bi(o);if(l!==c&&xt[i]){this.needsMeasurement=!0;return}if(r!==a)if(is(r)&&is(a))for(let u=0;u<e.length;u++){const h=e[u];typeof h=="string"&&(e[u]=parseFloat(h))}else xt[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let s=0;s<e.length;s++)(e[s]===null||Ll(e[s]))&&i.push(s);i.length&&_l(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=xt[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(i,s).jump(s,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,r=i[o];i[o]=xt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}const Wl=new Set(["opacity","clipPath","filter","transform"]);function Vs(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const s=n?.[t]??i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(i=>i!=null)}const Ds=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Mn(t){return Ti(t)&&"offsetHeight"in t}const{schedule:Rn}=Oi(queueMicrotask,!1),rt={x:!1,y:!1};function Ms(){return rt.x||rt.y}function Ul(t){return t==="x"||t==="y"?rt[t]?null:(rt[t]=!0,()=>{rt[t]=!1}):rt.x||rt.y?null:(rt.x=rt.y=!0,()=>{rt.x=rt.y=!1})}function Rs(t,e){const n=Vs(t),i=new AbortController,s={passive:!0,...e,signal:i.signal};return[n,s,()=>i.abort()]}function $l(t){return!(t.pointerType==="touch"||Ms())}function Kl(t,e,n={}){const[i,s,o]=Rs(t,n);return i.forEach(r=>{let a=!1,l=!1,c;const u=()=>{r.removeEventListener("pointerleave",m)},h=T=>{c&&(c(T),c=void 0),u()},d=T=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),l&&(l=!1,h(T))},p=()=>{a=!0,window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",d,s)},m=T=>{if(T.pointerType!=="touch"){if(a){l=!0;return}h(T)}},x=T=>{if(!$l(T))return;l=!1;const y=e(r,T);typeof y=="function"&&(c=y,r.addEventListener("pointerleave",m,s))};r.addEventListener("pointerenter",x,s),r.addEventListener("pointerdown",p,s)}),o}const ks=(t,e)=>e?t===e?!0:ks(t,e.parentElement):!1,kn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,zl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Yl(t){return zl.has(t.tagName)||t.isContentEditable===!0}const Hl=new Set(["INPUT","SELECT","TEXTAREA"]);function Gl(t){return Hl.has(t.tagName)||t.isContentEditable===!0}const ve=new WeakSet;function Ls(t){return e=>{e.key==="Enter"&&t(e)}}function Ln(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Xl=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=Ls(()=>{if(ve.has(n))return;Ln(n,"down");const s=Ls(()=>{Ln(n,"up")}),o=()=>Ln(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function js(t){return kn(t)&&!Ms()}const Os=new WeakSet;function ql(t,e,n={}){const[i,s,o]=Rs(t,n),r=a=>{const l=a.currentTarget;if(!js(a)||Os.has(a))return;ve.add(l),n.stopPropagation&&Os.add(a);const c=e(l,a),u=(p,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",d),ve.has(l)&&ve.delete(l),js(p)&&typeof c=="function"&&c(p,{success:m})},h=p=>{u(p,l===window||l===document||n.useGlobalTarget||ks(l,p.target))},d=p=>{u(p,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",d,s)};return i.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,s),Mn(a)&&(a.addEventListener("focus",c=>Xl(c,s)),!Yl(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function jn(t){return Ti(t)&&"ownerSVGElement"in t}const Te=new WeakMap;let xe;const Fs=(t,e,n)=>(i,s)=>s&&s[0]?s[0][t+"Size"]:jn(i)&&"getBBox"in i?i.getBBox()[e]:i[n],Zl=Fs("inline","width","offsetWidth"),Jl=Fs("block","height","offsetHeight");function Ql({target:t,borderBoxSize:e}){Te.get(t)?.forEach(n=>{n(t,{get width(){return Zl(t,e)},get height(){return Jl(t,e)}})})}function tu(t){t.forEach(Ql)}function eu(){typeof ResizeObserver>"u"||(xe=new ResizeObserver(tu))}function nu(t,e){xe||eu();const n=Vs(t);return n.forEach(i=>{let s=Te.get(i);s||(s=new Set,Te.set(i,s)),s.add(e),xe?.observe(i)}),()=>{n.forEach(i=>{const s=Te.get(i);s?.delete(e),s?.size||xe?.unobserve(i)})}}const be=new Set;let Bt;function iu(){Bt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};be.forEach(e=>e(t))},window.addEventListener("resize",Bt)}function su(t){return be.add(t),Bt||iu(),()=>{be.delete(t),!be.size&&typeof Bt=="function"&&(window.removeEventListener("resize",Bt),Bt=void 0)}}function Is(t,e){return typeof t=="function"?su(t):nu(t,e)}function ru(t){return jn(t)&&t.tagName==="svg"}const ou=[...Ps,U,Tt],au=t=>ou.find(ws(t)),Bs=()=>({translate:0,scale:1,origin:0,originPoint:0}),_t=()=>({x:Bs(),y:Bs()}),_s=()=>({min:0,max:0}),z=()=>({x:_s(),y:_s()}),lu=new WeakMap;function we(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function ee(t){return typeof t=="string"||Array.isArray(t)}const On=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fn=["initial",...On];function Pe(t){return we(t.animate)||Fn.some(e=>ee(t[e]))}function Ns(t){return!!(Pe(t)||t.variants)}function uu(t,e,n){for(const i in e){const s=e[i],o=n[i];if(H(s))t.addValue(i,s);else if(H(o))t.addValue(i,It(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const r=t.getValue(i);r.liveStyle===!0?r.jump(s):r.hasAnimated||r.set(s)}else{const r=t.getStaticValue(i);t.addValue(i,It(r!==void 0?r:s,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const In={current:null},Ws={current:!1},cu=typeof window<"u";function fu(){if(Ws.current=!0,!!cu)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>In.current=t.matches;t.addEventListener("change",e),e()}else In.current=!1}const Us=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Se={};function $s(t){Se=t}function hu(){return Se}class du{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:s,skipAnimations:o,blockInitialAnimation:r,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=vn,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=G.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,F.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!r,this.isControllingVariants=Pe(n),this.isVariantNode=Ns(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in d){const m=d[p];c[p]!==void 0&&H(m)&&m.set(c[p])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,lu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Ws.current||fu(),this.shouldReduceMotion=In.current),process.env.NODE_ENV!=="production"&&Ke(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,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),yt(this.notifyUpdate),yt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Wl.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,h=new cs({element:this.current,name:e,keyframes:a,times:l,ease:c,duration:tt(u)}),d=r(h);this.valueSubscriptions.set(e,()=>{d(),h.cancel()});return}const i=Ot.has(e);i&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&F.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Se){const n=Se[e];if(!n)continue;const{isEnabled:i,Feature:s}=n;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):z()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<Us.length;i++){const s=Us[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,r=e[o];r&&(this.propEventSubscriptions[s]=this.on(s,r))}this.prevMotionValues=uu(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=It(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(vi(i)||xi(i))?i=parseFloat(i):!au(i)&&Tt.test(n)&&(i=As(e,n)),this.setBaseTarget(e,H(i)?i.get():i)),H(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=Pn(this.props,n,this.presenceContext?.custom);o&&(i=o[e])}if(n&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!H(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new $e),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Rn.render(this.render)}}class Ks extends du{constructor(){super(...arguments),this.KeyframeResolver=Nl}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const i=e.style;return i?i[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;H(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class bt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function zs({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function pu({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function mu(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Bn(t){return t===void 0||t===1}function _n({scale:t,scaleX:e,scaleY:n}){return!Bn(t)||!Bn(e)||!Bn(n)}function At(t){return _n(t)||Ys(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ys(t){return Hs(t.x)||Hs(t.y)}function Hs(t){return t&&t!=="0%"}function Ce(t,e,n){const i=t-n,s=e*i;return n+s}function Gs(t,e,n,i,s){return s!==void 0&&(t=Ce(t,s,i)),Ce(t,n,i)+e}function Nn(t,e=0,n=1,i,s){t.min=Gs(t.min,e,n,i,s),t.max=Gs(t.max,e,n,i,s)}function Xs(t,{x:e,y:n}){Nn(t.x,e.translate,e.scale,e.originPoint),Nn(t.y,n.translate,n.scale,n.originPoint)}const qs=.999999999999,Zs=1.0000000000001;function gu(t,e,n,i=!1){const s=n.length;if(!s)return;e.x=e.y=1;let o,r;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Wt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Xs(t,r)),i&&At(o.latestValues)&&Wt(t,o.latestValues))}e.x<Zs&&e.x>qs&&(e.x=1),e.y<Zs&&e.y>qs&&(e.y=1)}function Nt(t,e){t.min=t.min+e,t.max=t.max+e}function Js(t,e,n,i,s=.5){const o=I(t.min,t.max,s);Nn(t,e,n,o,i)}function Wt(t,e){Js(t.x,e.x,e.scaleX,e.scale,e.originX),Js(t.y,e.y,e.scaleY,e.scale,e.originY)}function Qs(t,e){return zs(mu(t.getBoundingClientRect(),e))}function yu(t,e,n){const i=Qs(t,n),{scroll:s}=e;return s&&(Nt(i.x,s.offset.x),Nt(i.y,s.offset.y)),i}const vu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Tu=jt.length;function xu(t,e,n){let i="",s=!0;for(let o=0;o<Tu;o++){const r=jt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(r.startsWith("scale")?1:0);else{const c=parseFloat(a);l=r.startsWith("scale")?c===1:c===0}if(!l||n){const c=Ds(a,Dn[r]);if(!l){s=!1;const u=vu[r]||r;i+=`${u}(${c}) `}n&&(e[r]=c)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}function Wn(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const c=e[l];if(Ot.has(l)){r=!0;continue}else if(Ii(l)){s[l]=c;continue}else{const u=Ds(c,Dn[l]);l.startsWith("origin")?(a=!0,o[l]=u):i[l]=u}}if(e.transform||(r||n?i.transform=xu(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;i.transformOrigin=`${l} ${c} ${u}`}}function tr(t,{style:e,vars:n},i,s){const o=t.style;let r;for(r in e)o[r]=e[r];s?.applyProjectionStyles(o,i);for(r in n)o.setProperty(r,n[r])}function er(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ne={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(S.test(t))t=parseFloat(t);else return t;const n=er(t,e.target.x),i=er(t,e.target.y);return`${n}% ${i}%`}},bu={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=Tt.parse(t);if(s.length>5)return i;const o=Tt.createTransformer(t),r=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const c=I(a,l,.5);return typeof s[2+r]=="number"&&(s[2+r]/=c),typeof s[3+r]=="number"&&(s[3+r]/=c),o(s)}},Un={borderRadius:{...ne,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomLeftRadius:ne,borderBottomRightRadius:ne,boxShadow:bu};function nr(t,{layout:e,layoutId:n}){return Ot.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Un[t]||t==="opacity")}function $n(t,e,n){const i=t.style,s=e?.style,o={};if(!i)return o;for(const r in i)(H(i[r])||s&&H(s[r])||nr(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=i[r]);return o}function wu(t){return window.getComputedStyle(t)}class Pu extends Ks{constructor(){super(...arguments),this.type="html",this.renderInstance=tr}readValueFromInstance(e,n){if(Ot.has(n))return this.projection?.isProjecting?dn(n):$a(e,n);{const i=wu(e),s=(Ii(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Qs(e,n)}build(e,n,i){Wn(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return $n(e,n,i)}}const Su={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cu={offset:"strokeDashoffset",array:"strokeDasharray"};function Eu(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?Su:Cu;t[o.offset]=`${-i}`,t[o.array]=`${e} ${n}`}const Au=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ir(t,{attrX:e,attrY:n,attrScale:i,pathLength:s,pathSpacing:o=1,pathOffset:r=0,...a},l,c,u){if(Wn(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete h.transformBox);for(const p of Au)h[p]!==void 0&&(d[p]=h[p],delete h[p]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),i!==void 0&&(h.scale=i),s!==void 0&&Eu(h,s,o,r,!1)}const sr=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"]),rr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Vu(t,e,n,i){tr(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(sr.has(s)?s:En(s),e.attrs[s])}function or(t,e,n){const i=$n(t,e,n);for(const s in t)if(H(t[s])||H(e[s])){const o=jt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[o]=t[s]}return i}class Du extends Ks{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=z}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ot.has(n)){const i=Es(n);return i&&i.default||0}return n=sr.has(n)?n:En(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return or(e,n,i)}build(e,n,i){ir(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,s){Vu(e,n,i,s)}mount(e){this.isSVGTag=rr(e.tagName),super.mount(e)}}const Mu=Fn.length;function ar(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?ar(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Mu;n++){const i=Fn[n],s=t.props[i];(ee(s)||s===!1)&&(e[i]=s)}return e}function lr(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const Ru=[...On].reverse(),ku=On.length;function Lu(t){return e=>Promise.all(e.map(({animation:n,options:i})=>Rl(t,n,i)))}function ju(t){let e=Lu(t),n=ur(),i=!0;const s=l=>(c,u)=>{const h=Ft(t,u,l==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:d,transitionEnd:p,...m}=h;c={...c,...m,...p}}return c};function o(l){e=l(t)}function r(l){const{props:c}=t,u=ar(t.parent)||{},h=[],d=new Set;let p={},m=1/0;for(let T=0;T<ku;T++){const y=Ru[T],v=n[y],w=c[y]!==void 0?c[y]:u[y],E=ee(w),C=y===l?v.isActive:null;C===!1&&(m=T);let L=w===u[y]&&w!==c[y]&&E;if(L&&i&&t.manuallyAnimateOnMount&&(L=!1),v.protectedKeys={...p},!v.isActive&&C===null||!w&&!v.prevProp||we(w)||typeof w=="boolean")continue;if(y==="exit"&&v.isActive&&C!==!0){v.prevResolvedValues&&(p={...p,...v.prevResolvedValues});continue}const _=Ou(v.prevProp,w);let A=_||y===l&&v.isActive&&!L&&E||T>m&&E,R=!1;const N=Array.isArray(w)?w:[w];let nt=N.reduce(s(y),{});C===!1&&(nt={});const{prevResolvedValues:wt={}}=v,it={...wt,...nt},ft=$=>{A=!0,d.has($)&&(R=!0,d.delete($)),v.needsAnimating[$]=!0;const q=t.getValue($);q&&(q.liveStyle=!1)};for(const $ in it){const q=nt[$],ht=wt[$];if(p.hasOwnProperty($))continue;let mt=!1;Sn(q)&&Sn(ht)?mt=!lr(q,ht):mt=q!==ht,mt?q!=null?ft($):d.add($):q!==void 0&&d.has($)?ft($):v.protectedKeys[$]=!0}v.prevProp=w,v.prevResolvedValues=nt,v.isActive&&(p={...p,...nt}),i&&t.blockInitialAnimation&&(A=!1);const Pt=L&&_;A&&(!Pt||R)&&h.push(...N.map($=>{const q={type:y};if(typeof $=="string"&&i&&!Pt&&t.manuallyAnimateOnMount&&t.parent){const{parent:ht}=t,mt=Ft(ht,$);if(ht.enteringChildren&&mt){const{delayChildren:Le}=mt.transition||{};q.delay=ds(ht.enteringChildren,t,Le)}}return{animation:$,options:q}}))}if(d.size){const T={};if(typeof c.initial!="boolean"){const y=Ft(t,Array.isArray(c.initial)?c.initial[0]:c.initial);y&&y.transition&&(T.transition=y.transition)}d.forEach(y=>{const v=t.getBaseTarget(y),w=t.getValue(y);w&&(w.liveStyle=!0),T[y]=v??null}),h.push({animation:T})}let x=!!h.length;return i&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(x=!1),i=!1,x?e(h):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(l,c)),n[l].isActive=c;const u=r(l);for(const h in n)n[h].protectedKeys={};return u}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ur()}}}function Ou(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!lr(e,t):!1}function Vt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ur(){return{animate:Vt(!0),whileInView:Vt(),whileHover:Vt(),whileTap:Vt(),whileDrag:Vt(),whileFocus:Vt(),exit:Vt()}}function cr(t,e){t.min=e.min,t.max=e.max}function ot(t,e){cr(t.x,e.x),cr(t.y,e.y)}function fr(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const hr=1e-4,Fu=1-hr,Iu=1+hr,dr=.01,Bu=0-dr,_u=0+dr;function X(t){return t.max-t.min}function Nu(t,e,n){return Math.abs(t-e)<=n}function pr(t,e,n,i=.5){t.origin=i,t.originPoint=I(e.min,e.max,t.origin),t.scale=X(n)/X(e),t.translate=I(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Fu&&t.scale<=Iu||isNaN(t.scale))&&(t.scale=1),(t.translate>=Bu&&t.translate<=_u||isNaN(t.translate))&&(t.translate=0)}function ie(t,e,n,i){pr(t.x,e.x,n.x,i?i.originX:void 0),pr(t.y,e.y,n.y,i?i.originY:void 0)}function mr(t,e,n){t.min=n.min+e.min,t.max=t.min+X(e)}function Wu(t,e,n){mr(t.x,e.x,n.x),mr(t.y,e.y,n.y)}function gr(t,e,n){t.min=e.min-n.min,t.max=t.min+X(e)}function Ee(t,e,n){gr(t.x,e.x,n.x),gr(t.y,e.y,n.y)}function yr(t,e,n,i,s){return t-=e,t=Ce(t,1/n,i),s!==void 0&&(t=Ce(t,1/s,i)),t}function Uu(t,e=0,n=1,i=.5,s,o=t,r=t){if(ut.test(e)&&(e=parseFloat(e),e=I(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=I(o.min,o.max,i);t===o&&(a-=e),t.min=yr(t.min,e,n,a,s),t.max=yr(t.max,e,n,a,s)}function vr(t,e,[n,i,s],o,r){Uu(t,e[n],e[i],e[s],e.scale,o,r)}const $u=["x","scaleX","originX"],Ku=["y","scaleY","originY"];function Tr(t,e,n,i){vr(t.x,e,$u,n?n.x:void 0,i?i.x:void 0),vr(t.y,e,Ku,n?n.y:void 0,i?i.y:void 0)}function xr(t){return t.translate===0&&t.scale===1}function br(t){return xr(t.x)&&xr(t.y)}function wr(t,e){return t.min===e.min&&t.max===e.max}function zu(t,e){return wr(t.x,e.x)&&wr(t.y,e.y)}function Pr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Sr(t,e){return Pr(t.x,e.x)&&Pr(t.y,e.y)}function Cr(t){return X(t.x)/X(t.y)}function Er(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function ct(t){return[t("x"),t("y")]}function Yu(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:d,skewX:p,skewY:m}=n;c&&(i=`perspective(${c}px) ${i}`),u&&(i+=`rotate(${u}deg) `),h&&(i+=`rotateX(${h}deg) `),d&&(i+=`rotateY(${d}deg) `),p&&(i+=`skewX(${p}deg) `),m&&(i+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const Ar=["TopLeft","TopRight","BottomLeft","BottomRight"],Hu=Ar.length,Vr=t=>typeof t=="string"?parseFloat(t):t,Dr=t=>typeof t=="number"||S.test(t);function Gu(t,e,n,i,s,o){s?(t.opacity=I(0,n.opacity??1,Xu(i)),t.opacityExit=I(e.opacity??1,0,qu(i))):o&&(t.opacity=I(e.opacity??1,n.opacity??1,i));for(let r=0;r<Hu;r++){const a=`border${Ar[r]}Radius`;let l=Mr(e,a),c=Mr(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Dr(l)===Dr(c)?(t[a]=Math.max(I(Vr(l),Vr(c),i),0),(ut.test(c)||ut.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=I(e.rotate||0,n.rotate||0,i))}function Mr(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Xu=Rr(0,.5,Di),qu=Rr(.5,.95,Q);function Rr(t,e,n){return i=>i<t?0:i>e?1:n(Gt(t,e,i))}function Zu(t,e,n){const i=H(t)?t:It(t);return i.start(wn("",i,e,n)),i.animation}function se(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const Ju=(t,e)=>t.depth-e.depth;class Qu{constructor(){this.children=[],this.isDirty=!1}add(e){Ne(this.children,e),this.isDirty=!0}remove(e){fe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ju),this.isDirty=!1,this.children.forEach(e)}}function tc(t,e){const n=G.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(yt(i),t(o-e))};return F.setup(i,!0),()=>yt(i)}function Ae(t){return H(t)?t.get():t}class ec{constructor(){this.members=[]}add(e){Ne(this.members,e);for(let n=this.members.length-1;n>=0;n--){const i=this.members[n];if(i===e||i===this.lead||i===this.prevLead)continue;const s=i.instance;s&&s.isConnected===!1&&i.isPresent!==!1&&!i.snapshot&&fe(this.members,i)}e.scheduleRender()}remove(e){if(fe(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let i;for(let s=n;s>=0;s--){const o=this.members[s],r=o.instance;if(o.isPresent!==!1&&(!r||r.isConnected!==!1)){i=o;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender();const s=i.options.layoutDependency,o=e.options.layoutDependency;if(!(s!==void 0&&o!==void 0&&s===o)){const l=i.instance;l&&l.isConnected===!1&&!i.snapshot||(e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0))}const{crossfade:a}=e.options;a===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Ve={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Kn=["","X","Y","Z"],nc=1e3;let ic=0;function zn(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function kr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=xs(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",F,!(s||o))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&kr(i)}function Lr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(r={},a=e?.()){this.id=ic++,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(oc),this.nodes.forEach(cc),this.nodes.forEach(fc),this.nodes.forEach(ac)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,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 Qu)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new $e),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=jn(r)&&!ru(r),this.instance=r;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const d=()=>this.root.updateBlockedByResize=!1;F.read(()=>{h=window.innerWidth}),t(r,()=>{const p=window.innerWidth;p!==h&&(h=p,this.root.updateBlockedByResize=!0,u&&u(),u=tc(d,250),Ve.hasAnimatedSinceResize&&(Ve.hasAnimatedSinceResize=!1,this.nodes.forEach(Fr)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||gc,{onLayoutAnimationStart:x,onLayoutAnimationComplete:T}=c.getProps(),y=!this.targetLayout||!Sr(this.targetLayout,p),v=!h&&d;if(this.options.layoutRoot||this.resumeFrom||v||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...bn(m,"layout"),onPlay:x,onComplete:T};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,v)}else h||Fr(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),yt(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(hc),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&kr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(jr);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Or);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(uc),this.nodes.forEach(sc),this.nodes.forEach(rc)):this.nodes.forEach(Or),this.clearAllSnapshots();const a=G.now();Y.delta=lt(0,1e3/60,a-Y.timestamp),Y.timestamp=a,Y.isProcessing=!0,He.update.process(Y),He.preRender.process(Y),He.render.process(Y),Y.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Rn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lc),this.sharedNodes.forEach(dc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,F.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){F.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!X(this.snapshot.measuredBox.x)&&!X(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 r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=z(),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,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!br(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&this.instance&&(a||At(this.latestValues)||u)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),yc(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return z();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(vc))){const{scroll:c}=this.root;c&&(Nt(a.x,c.offset.x),Nt(a.y,c.offset.y))}return a}removeElementScroll(r){const a=z();if(ot(a,r),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:h}=c;c!==this.root&&u&&h.layoutScroll&&(u.wasRoot&&ot(a,r),Nt(a.x,u.offset.x),Nt(a.y,u.offset.y))}return a}applyTransform(r,a=!1){const l=z();ot(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Wt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),At(u.latestValues)&&Wt(l,u.latestValues)}return At(this.latestValues)&&Wt(l,this.latestValues),l}removeTransform(r){const a=z();ot(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!At(c.latestValues))continue;_n(c.latestValues)&&c.updateSnapshot();const u=z(),h=c.measurePageBox();ot(u,h),Tr(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return At(this.latestValues)&&Tr(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.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(r=!1){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(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=Y.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=z(),this.targetWithTransforms=z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Wu(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ot(this.target,this.layout.layoutBox),Xs(this.target,this.targetDelta)):ot(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||_n(this.parent.latestValues)||Ys(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,l){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=z(),this.relativeTargetOrigin=z(),Ee(this.relativeTargetOrigin,a,l),ot(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Y.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;ot(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;gu(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=z());const{target:p}=r;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(fr(this.prevProjectionDelta.x,this.projectionDelta.x),fr(this.prevProjectionDelta.y,this.projectionDelta.y)),ie(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==d||!Er(this.projectionDelta.x,this.prevProjectionDelta.x)||!Er(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=_t(),this.projectionDelta=_t(),this.projectionDeltaWithTransform=_t()}setAnimationOrigin(r,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=_t();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=z(),p=l?l.source:void 0,m=this.layout?this.layout.source:void 0,x=p!==m,T=this.getStack(),y=!T||T.members.length<=1,v=!!(x&&!y&&this.options.crossfade===!0&&!this.path.some(mc));this.animationProgress=0;let w;this.mixTargetDelta=E=>{const C=E/1e3;Ir(h.x,r.x,C),Ir(h.y,r.y,C),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ee(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pc(this.relativeTarget,this.relativeTargetOrigin,d,C),w&&zu(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=z()),ot(w,this.relativeTarget)),x&&(this.animationValues=u,Gu(u,c,this.latestValues,C,v,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(yt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=F.update(()=>{Ve.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=It(0)),this.currentAnimation=Zu(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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 r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&Ur(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||z();const h=X(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const d=X(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+d}ot(a,l),Wt(a,u),ie(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new ec),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&zn("z",r,c,this.animationValues);for(let u=0;u<Kn.length;u++)zn(`rotate${Kn[u]}`,r,c,this.animationValues),zn(`skew${Kn[u]}`,r,c,this.animationValues);r.render();for(const u in c)r.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Ae(a?.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Ae(a?.pointerEvents)||""),this.hasProjected&&!At(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=Yu(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),r.transform=h;const{x:d,y:p}=this.projectionDelta;r.transformOrigin=`${d.origin*100}% ${p.origin*100}% 0`,c.animationValues?r.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in Un){if(u[m]===void 0)continue;const{correct:x,applyTo:T,isCSSVariable:y}=Un[m],v=h==="none"?u[m]:x(u[m],c);if(T){const w=T.length;for(let E=0;E<w;E++)r[T[E]]=v}else y?this.options.visualElement.renderState.vars[m]=v:r[m]=v}this.options.layoutId&&(r.pointerEvents=c===this?Ae(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(jr),this.root.sharedNodes.clear()}}}function sc(t){t.updateLayout()}function rc(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;s==="size"?ct(u=>{const h=o?e.measuredBox[u]:e.layoutBox[u],d=X(h);h.min=n[u].min,h.max=h.min+d}):Ur(s,e.layoutBox,n)&&ct(u=>{const h=o?e.measuredBox[u]:e.layoutBox[u],d=X(n[u]);h.max=h.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+d)});const r=_t();ie(r,n,e.layoutBox);const a=_t();o?ie(a,t.applyTransform(i,!0),e.measuredBox):ie(a,n,e.layoutBox);const l=!br(r);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:d}=u;if(h&&d){const p=z();Ee(p,e.layoutBox,h.layoutBox);const m=z();Ee(m,n,d.layoutBox),Sr(p,m)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function oc(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ac(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function lc(t){t.clearSnapshot()}function jr(t){t.clearMeasurements()}function Or(t){t.isLayoutDirty=!1}function uc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Fr(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function cc(t){t.resolveTargetDelta()}function fc(t){t.calcProjection()}function hc(t){t.resetSkewAndRotation()}function dc(t){t.removeLeadSnapshot()}function Ir(t,e,n){t.translate=I(e.translate,0,n),t.scale=I(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Br(t,e,n,i){t.min=I(e.min,n.min,i),t.max=I(e.max,n.max,i)}function pc(t,e,n,i){Br(t.x,e.x,n.x,i),Br(t.y,e.y,n.y,i)}function mc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const gc={duration:.45,ease:[.4,0,.1,1]},_r=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Nr=_r("applewebkit/")&&!_r("chrome/")?Math.round:Q;function Wr(t){t.min=Nr(t.min),t.max=Nr(t.max)}function yc(t){Wr(t.x),Wr(t.y)}function Ur(t,e,n){return t==="position"||t==="preserve-aspect"&&!Nu(Cr(e),Cr(n),.2)}function vc(t){return t!==t.root&&t.scroll?.wasRoot}const Tc=Lr({attachResizeListener:(t,e)=>se(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Yn={current:void 0},$r=Lr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Yn.current){const t=new Tc({});t.mount(window),t.setOptions({layoutScroll:!0}),Yn.current=t}return Yn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Hn=b.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Kr(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function xc(...t){return e=>{let n=!1;const i=t.map(s=>{const o=Kr(s,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let s=0;s<i.length;s++){const o=i[s];typeof o=="function"?o():Kr(t[s],null)}}}}function bc(...t){return le.useCallback(xc(...t),t)}class wc extends le.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const i=n.offsetParent,s=Mn(i)&&i.offsetWidth||0,o=Mn(i)&&i.offsetHeight||0,r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft,r.right=s-r.width-r.left,r.bottom=o-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Pc({children:t,isPresent:e,anchorX:n,anchorY:i,root:s,pop:o}){const r=b.useId(),a=b.useRef(null),l=b.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=b.useContext(Hn),u=t.props?.ref??t?.ref,h=bc(a,u);return b.useInsertionEffect(()=>{const{width:d,height:p,top:m,left:x,right:T,bottom:y}=l.current;if(e||o===!1||!a.current||!d||!p)return;const v=n==="left"?`left: ${x}`:`right: ${T}`,w=i==="bottom"?`bottom: ${y}`:`top: ${m}`;a.current.dataset.motionPopId=r;const E=document.createElement("style");c&&(E.nonce=c);const C=s??document.head;return C.appendChild(E),E.sheet&&E.sheet.insertRule(`
15
+ [data-motion-pop-id="${r}"] {
16
+ position: absolute !important;
17
+ width: ${d}px !important;
18
+ height: ${p}px !important;
19
+ ${v}px !important;
20
+ ${w}px !important;
21
+ }
22
+ `),()=>{C.contains(E)&&C.removeChild(E)}},[e]),M.jsx(wc,{isPresent:e,childRef:a,sizeRef:l,pop:o,children:o===!1?t:le.cloneElement(t,{ref:h})})}const Sc=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:s,presenceAffectsLayout:o,mode:r,anchorX:a,anchorY:l,root:c})=>{const u=_e(Cc),h=b.useId();let d=!0,p=b.useMemo(()=>(d=!1,{id:h,initial:e,isPresent:n,custom:s,onExitComplete:m=>{u.set(m,!0);for(const x of u.values())if(!x)return;i&&i()},register:m=>(u.set(m,!1),()=>u.delete(m))}),[n,u,i]);return o&&d&&(p={...p}),b.useMemo(()=>{u.forEach((m,x)=>u.set(x,!1))},[n]),le.useEffect(()=>{!n&&!u.size&&i&&i()},[n]),t=M.jsx(Pc,{pop:r==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:c,children:t}),M.jsx(ce.Provider,{value:p,children:t})};function Cc(){return new Map}function zr(t=!0){const e=b.useContext(ce);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=e,o=b.useId();b.useEffect(()=>{if(t)return s(o)},[t]);const r=b.useCallback(()=>t&&i&&i(o),[o,i,t]);return!n&&i?[!1,r]:[!0]}const De=t=>t.key||"";function Yr(t){const e=[];return b.Children.forEach(t,n=>{b.isValidElement(n)&&e.push(n)}),e}const Ec=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:o="sync",propagate:r=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[u,h]=zr(r),d=b.useMemo(()=>Yr(t),[t]),p=r&&!u?[]:d.map(De),m=b.useRef(!0),x=b.useRef(d),T=_e(()=>new Map),y=b.useRef(new Set),[v,w]=b.useState(d),[E,C]=b.useState(d);yi(()=>{m.current=!1,x.current=d;for(let A=0;A<E.length;A++){const R=De(E[A]);p.includes(R)?(T.delete(R),y.current.delete(R)):T.get(R)!==!0&&T.set(R,!1)}},[E,p.length,p.join("-")]);const L=[];if(d!==v){let A=[...d];for(let R=0;R<E.length;R++){const N=E[R],nt=De(N);p.includes(nt)||(A.splice(R,0,N),L.push(N))}return o==="wait"&&L.length&&(A=L),C(Yr(A)),w(d),null}process.env.NODE_ENV!=="production"&&o==="wait"&&E.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:_}=b.useContext(Be);return M.jsx(M.Fragment,{children:E.map(A=>{const R=De(A),N=r&&!u?!1:d===E||p.includes(R),nt=()=>{if(y.current.has(R))return;if(y.current.add(R),T.has(R))T.set(R,!0);else return;let wt=!0;T.forEach(it=>{it||(wt=!1)}),wt&&(_?.(),C(x.current),r&&h?.(),i&&i())};return M.jsx(Sc,{isPresent:N,initial:!m.current||n?void 0:!1,custom:e,presenceAffectsLayout:s,mode:o,root:c,onExitComplete:N?void 0:nt,anchorX:a,anchorY:l,children:A},R)})})},Hr=b.createContext({strict:!1}),Gr={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 Xr=!1;function Ac(){if(Xr)return;const t={};for(const e in Gr)t[e]={isEnabled:n=>Gr[e].some(i=>!!n[i])};$s(t),Xr=!0}function qr(){return Ac(),hu()}function Vc(t){const e=qr();for(const n in t)e[n]={...e[n],...t[n]};$s(e)}const Dc=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 Me(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Dc.has(t)}let Zr=t=>!Me(t);function Mc(t){typeof t=="function"&&(Zr=e=>e.startsWith("on")?!Me(e):t(e))}try{Mc(require("@emotion/is-prop-valid").default)}catch{}function Rc(t,e,n){const i={};for(const s in t)s==="values"&&typeof t.values=="object"||(Zr(s)||n===!0&&Me(s)||!e&&!Me(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}const Re=b.createContext({});function kc(t,e){if(Pe(t)){const{initial:n,animate:i}=t;return{initial:n===!1||ee(n)?n:void 0,animate:ee(i)?i:void 0}}return t.inherit!==!1?e:{}}function Lc(t){const{initial:e,animate:n}=kc(t,b.useContext(Re));return b.useMemo(()=>({initial:e,animate:n}),[Jr(e),Jr(n)])}function Jr(t){return Array.isArray(t)?t.join(" "):t}const Gn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qr(t,e,n){for(const i in e)!H(e[i])&&!nr(i,n)&&(t[i]=e[i])}function jc({transformTemplate:t},e){return b.useMemo(()=>{const n=Gn();return Wn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Oc(t,e){const n=t.style||{},i={};return Qr(i,n,t),Object.assign(i,jc(t,e)),i}function Fc(t,e){const n={},i=Oc(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const to=()=>({...Gn(),attrs:{}});function Ic(t,e,n,i){const s=b.useMemo(()=>{const o=to();return ir(o,e,rr(i),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Qr(o,t.style,t),s.style={...o,...s.style}}return s}const Bc=["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 Xn(t){return typeof t!="string"||t.includes("-")?!1:!!(Bc.indexOf(t)>-1||/[A-Z]/u.test(t))}function _c(t,e,n,{latestValues:i},s,o=!1,r){const l=(r??Xn(t)?Ic:Fc)(e,i,s,t),c=Rc(e,typeof t=="string",o),u=t!==b.Fragment?{...c,...l,ref:n}:{},{children:h}=e,d=b.useMemo(()=>H(h)?h.get():h,[h]);return b.createElement(t,{...u,children:d})}function Nc({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,s){return{latestValues:Wc(n,i,s,t),renderState:e()}}function Wc(t,e,n,i){const s={},o=i(t,{});for(const d in o)s[d]=Ae(o[d]);let{initial:r,animate:a}=t;const l=Pe(t),c=Ns(t);e&&c&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const h=u?a:r;if(h&&typeof h!="boolean"&&!we(h)){const d=Array.isArray(h)?h:[h];for(let p=0;p<d.length;p++){const m=Pn(t,d[p]);if(m){const{transitionEnd:x,transition:T,...y}=m;for(const v in y){let w=y[v];if(Array.isArray(w)){const E=u?w.length-1:0;w=w[E]}w!==null&&(s[v]=w)}for(const v in x)s[v]=x[v]}}}return s}const eo=t=>(e,n)=>{const i=b.useContext(Re),s=b.useContext(ce),o=()=>Nc(t,e,i,s);return n?o():_e(o)},Uc=eo({scrapeMotionValuesFromProps:$n,createRenderState:Gn}),$c=eo({scrapeMotionValuesFromProps:or,createRenderState:to}),Kc=Symbol.for("motionComponentSymbol");function zc(t,e,n){const i=b.useRef(n);b.useInsertionEffect(()=>{i.current=n});const s=b.useRef(null);return b.useCallback(o=>{o&&t.onMount?.(o),e&&(o?e.mount(o):e.unmount());const r=i.current;if(typeof r=="function")if(o){const a=r(o);typeof a=="function"&&(s.current=a)}else s.current?(s.current(),s.current=null):r(o);else r&&(r.current=o)},[e])}const no=b.createContext({});function Ut(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Yc(t,e,n,i,s,o){const{visualElement:r}=b.useContext(Re),a=b.useContext(Hr),l=b.useContext(ce),c=b.useContext(Hn),u=c.reducedMotion,h=c.skipAnimations,d=b.useRef(null),p=b.useRef(!1);i=i||a.renderer,!d.current&&i&&(d.current=i(t,{visualState:e,parent:r,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:h,isSVG:o}),p.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const m=d.current,x=b.useContext(no);m&&!m.projection&&s&&(m.type==="html"||m.type==="svg")&&Hc(d.current,n,s,x);const T=b.useRef(!1);b.useInsertionEffect(()=>{m&&T.current&&m.update(n,l)});const y=n[Ts],v=b.useRef(!!y&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return yi(()=>{p.current=!0,m&&(T.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),m.enteringChildren=void 0)}),m}function Hc(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:io(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!r||a&&Ut(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,crossfade:u,layoutScroll:l,layoutRoot:c})}function io(t){if(t)return t.options.allowProjection!==!1?t.projection:io(t.parent)}function qn(t,{forwardMotionProps:e=!1,type:n}={},i,s){i&&Vc(i);const o=n?n==="svg":Xn(t),r=o?$c:Uc;function a(c,u){let h;const d={...b.useContext(Hn),...c,layoutId:Gc(c)},{isStatic:p}=d,m=Lc(c),x=r(c,p);if(!p&&gi){Xc(d,i);const T=qc(d);h=T.MeasureLayout,m.visualElement=Yc(t,x,d,s,T.ProjectionNode,o)}return M.jsxs(Re.Provider,{value:m,children:[h&&m.visualElement?M.jsx(h,{visualElement:m.visualElement,...d}):null,_c(t,c,zc(x,m.visualElement,u),x,p,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=b.forwardRef(a);return l[Kc]=t,l}function Gc({layoutId:t}){const e=b.useContext(Be).id;return e&&t!==void 0?e+"-"+t:t}function Xc(t,e){const n=b.useContext(Hr).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const i="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Mt(!1,i,"lazy-strict-mode"):dt(!1,i,"lazy-strict-mode")}}function qc(t){const e=qr(),{drag:n,layout:i}=e;if(!n&&!i)return{};const s={...n,...i};return{MeasureLayout:n?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function Zc(t,e){if(typeof Proxy>"u")return qn;const n=new Map,i=(o,r)=>qn(o,r,t,e),s=(o,r)=>(process.env.NODE_ENV!=="production"&&Ke(!1,"motion() is deprecated. Use motion.create() instead."),i(o,r));return new Proxy(s,{get:(o,r)=>r==="create"?i:(n.has(r)||n.set(r,qn(r,void 0,t,e)),n.get(r))})}const Jc=(t,e)=>e.isSVG??Xn(t)?new Du(e):new Pu(e,{allowProjection:t!==b.Fragment});class Qc extends bt{constructor(e){super(e),e.animationState||(e.animationState=ju(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();we(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let tf=0;class ef extends bt{constructor(){super(...arguments),this.id=tf++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const s=this.node.animationState.setActive("exit",!e);n&&!e&&s.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const nf={animation:{Feature:Qc},exit:{Feature:ef}};function re(t){return{point:{x:t.pageX,y:t.pageY}}}const sf=t=>e=>kn(e)&&t(e,re(e));function oe(t,e,n,i){return se(t,e,sf(n),i)}const so=({current:t})=>t?t.ownerDocument.defaultView:null,ro=(t,e)=>Math.abs(t-e);function rf(t,e){const n=ro(t.x,e.x),i=ro(t.y,e.y);return Math.sqrt(n**2+i**2)}const oo=new Set(["auto","scroll"]);class ao{constructor(e,n,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:o=!1,distanceThreshold:r=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=Jn(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,x=rf(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!x)return;const{point:T}=p,{timestamp:y}=Y;this.history.push({...T,timestamp:y});const{onStart:v,onMove:w}=this.handlers;m||(v&&v(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Zn(m,this.transformPagePoint),F.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:x,onSessionEnd:T,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Jn(p.type==="pointercancel"?this.lastMoveEventInfo:Zn(m,this.transformPagePoint),this.history);this.startEvent&&x&&x(p,v),T&&T(p,v)},!kn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const l=re(e),c=Zn(l,this.transformPagePoint),{point:u}=c,{timestamp:h}=Y;this.history=[{...u,timestamp:h}];const{onSessionStart:d}=n;d&&d(e,Jn(c,this.history)),this.removeListeners=Ht(oe(this.contextWindow,"pointermove",this.handlePointerMove),oe(this.contextWindow,"pointerup",this.handlePointerUp),oe(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const i=getComputedStyle(n);(oo.has(i.overflowX)||oo.has(i.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(e){const n=this.scrollPositions.get(e);if(!n)return;const i=e===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:s.x-n.x,y:s.y-n.y};o.x===0&&o.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,s),F.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),yt(this.updatePoint)}}function Zn(t,e){return e?{point:e(t.point)}:t}function lo(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Jn({point:t},e){return{point:t,delta:lo(t,uo(e)),offset:lo(t,of(e)),velocity:af(e,.1)}}function of(t){return t[0]}function uo(t){return t[t.length-1]}function af(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=uo(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>tt(e)));)n--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>tt(e)*2&&(i=t[1]);const o=et(s.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function lf(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?I(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?I(n,t,i.max):Math.min(t,n)),t}function co(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function uf(t,{top:e,left:n,bottom:i,right:s}){return{x:co(t.x,n,s),y:co(t.y,e,i)}}function fo(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function cf(t,e){return{x:fo(t.x,e.x),y:fo(t.y,e.y)}}function ff(t,e){let n=.5;const i=X(t),s=X(e);return s>i?n=Gt(e.min,e.max-i,t.min):i>s&&(n=Gt(t.min,t.max-s,e.min)),lt(0,1,n)}function hf(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Qn=.35;function df(t=Qn){return t===!1?t=0:t===!0&&(t=Qn),{x:ho(t,"left","right"),y:ho(t,"top","bottom")}}function ho(t,e,n){return{min:po(t,e),max:po(t,n)}}function po(t,e){return typeof t=="number"?t:t[e]||0}const pf=new WeakMap;class mf{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=z(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=h=>{n&&this.snapToCursor(re(h).point),this.stopAnimation()},r=(h,d)=>{const{drag:p,dragPropagation:m,onDragStart:x}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ul(p),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ct(y=>{let v=this.getAxisMotionValue(y).get()||0;if(ut.test(v)){const{projection:w}=this.visualElement;if(w&&w.layout){const E=w.layout.layoutBox[y];E&&(v=X(E)*(parseFloat(v)/100))}}this.originPoint[y]=v}),x&&F.update(()=>x(h,d),!1,!0),Cn(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},a=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d;const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:x,onDrag:T}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=d;if(m&&this.currentDirection===null){this.currentDirection=yf(y),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",d.point,y),this.updateAxis("y",d.point,y),this.visualElement.render(),T&&F.update(()=>T(h,d),!1,!0)},l=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d,this.stop(h,d),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new ao(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:so(this.visualElement),element:this.visualElement.current})}stop(e,n){const i=e||this.latestPointerEvent,s=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!s||!i)return;const{velocity:r}=s;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&F.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,i){const{drag:s}=this.getProps();if(!i||!ke(e,s,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(r=lf(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&Ut(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=uf(i.layoutBox,e):this.constraints=!1,this.elastic=df(n),s!==this.constraints&&!Ut(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&ct(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=hf(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Ut(e))return!1;const i=e.current;dt(i!==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:s}=this.visualElement;if(!s||!s.layout)return!1;const o=yu(i,s.root,this.visualElement.getTransformPagePoint());let r=cf(s.layout.layoutBox,o);if(n){const a=n(pu(r));this.hasMutatedConstraints=!!a,a&&(r=zs(a))}return r}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=ct(u=>{if(!ke(u,n,this.currentDirection))return;let h=l&&l[u]||{};r&&(h={min:0,max:0});const d=s?200:1e6,p=s?40:1e7,m={type:"inertia",velocity:i?e[u]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Cn(this.visualElement,e),i.start(wn(e,i,0,n,this.visualElement,!1))}stopAnimation(){ct(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),s=i[n];return s||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){ct(n=>{const{drag:i}=this.getProps();if(!ke(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:r,max:a}=s.layout.layoutBox[n],l=o.get()||0;o.set(e[n]-I(r,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Ut(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ct(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();s[r]=ff({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),ct(r=>{if(!ke(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(I(l,c,s[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;pf.set(this.visualElement,this);const e=this.visualElement.current,n=oe(e,"pointerdown",c=>{const{drag:u,dragListener:h=!0}=this.getProps(),d=c.target,p=d!==e&&Gl(d);u&&h&&!p&&this.start(c)});let i;const s=()=>{const{dragConstraints:c}=this.getProps();Ut(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),i||(i=gf(e,c.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),F.read(s);const a=se(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(ct(h=>{const d=this.getAxisMotionValue(h);d&&(this.originPoint[h]+=c[h].translate,d.set(d.get()+c[h].translate))}),this.visualElement.render())}));return()=>{a(),n(),r(),l&&l(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:r=Qn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function mo(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function gf(t,e,n){const i=Is(t,mo(n)),s=Is(e,mo(n));return()=>{i(),s()}}function ke(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function yf(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class vf extends bt{constructor(e){super(e),this.removeGroupControls=Q,this.removeListeners=Q,this.controls=new mf(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Q}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const ti=t=>(e,n)=>{t&&F.update(()=>t(e,n),!1,!0)};class Tf extends bt{constructor(){super(...arguments),this.removePointerDownListener=Q}onPointerDown(e){this.session=new ao(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:so(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:ti(e),onStart:ti(n),onMove:ti(i),onEnd:(o,r)=>{delete this.session,s&&F.postRender(()=>s(o,r))}}}mount(){this.removePointerDownListener=oe(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ei=!1;class xf extends b.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),i&&i.register&&s&&i.register(o),ei&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ve.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:s,isPresent:o}=this.props,{projection:r}=i;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),ei=!0,s||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||F.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Rn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=e;ei=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function go(t){const[e,n]=zr(),i=b.useContext(Be);return M.jsx(xf,{...t,layoutGroup:i,switchLayoutGroup:b.useContext(no),isPresent:e,safeToRemove:n})}const bf={pan:{Feature:Tf},drag:{Feature:vf,ProjectionNode:$r,MeasureLayout:go}};function yo(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,o=i[s];o&&F.postRender(()=>o(e,re(e)))}class wf extends bt{mount(){const{current:e}=this.node;e&&(this.unmount=Kl(e,(n,i)=>(yo(this.node,i,"Start"),s=>yo(this.node,s,"End"))))}unmount(){}}class Pf extends bt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=Ht(se(this.node.current,"focus",()=>this.onFocus()),se(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vo(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),o=i[s];o&&F.postRender(()=>o(e,re(e)))}class Sf extends bt{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:i}=this.node.props;this.unmount=ql(e,(s,o)=>(vo(this.node,o,"Start"),(r,{success:a})=>vo(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:i?.tap===!1})}unmount(){}}const ni=new WeakMap,ii=new WeakMap,Cf=t=>{const e=ni.get(t.target);e&&e(t)},Ef=t=>{t.forEach(Cf)};function Af({root:t,...e}){const n=t||document;ii.has(n)||ii.set(n,{});const i=ii.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(Ef,{root:t,...e})),i[s]}function Vf(t,e,n){const i=Af(e);return ni.set(t,n),i.observe(t),()=>{ni.delete(t),i.unobserve(t)}}const Df={some:0,all:1};class Mf extends bt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:s="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:Df[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),d=c?u:h;d&&d(l)};return Vf(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Rf(e,n))&&this.startObserver()}unmount(){}}function Rf({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const kf={...nf,...{inView:{Feature:Mf},tap:{Feature:Sf},focus:{Feature:Pf},hover:{Feature:wf}},...bf,...{layout:{ProjectionNode:$r,MeasureLayout:go}}},To=Zc(kf,Jc),at={accordion:"_accordion_1gkiv_1",empty:"_empty_1gkiv_17",item:"_item_1gkiv_31",heading:"_heading_1gkiv_73",trigger:"_trigger_1gkiv_85",title:"_title_1gkiv_145",icon:"_icon_1gkiv_155",panelWrapper:"_panelWrapper_1gkiv_179",panel:"_panel_1gkiv_179",content:"_content_1gkiv_195"},Lf=(t,e,n,i)=>t&&n&&n.length>0?new Set(n.filter(s=>i!=null&&s>=0&&s<i)):!t&&e!=null&&e>=0&&i!=null&&e<i?new Set([e]):new Set,jf=({items:t,allowMultiple:e=!1,defaultExpandedIndex:n,defaultExpandedIndexes:i,className:s})=>{const o=b.useId(),[r,a]=b.useState(()=>Lf(e,n,i,t?.length)),l=b.useCallback(u=>{a(h=>{const d=new Set(h);return d.has(u)?d.delete(u):(e||d.clear(),d.add(u)),d})},[e]),c=b.useCallback((u,h)=>{const p=u.currentTarget.closest("[data-accordion]")?.querySelectorAll("[data-accordion-trigger]");if(p?.length)switch(u.key){case"Enter":case" ":u.preventDefault(),l(h);break;case"ArrowDown":case"ArrowRight":u.preventDefault(),h<t.length-1&&p[h+1]?.focus();break;case"ArrowUp":case"ArrowLeft":u.preventDefault(),h>0&&p[h-1]?.focus();break;case"Home":u.preventDefault(),p[0]?.focus();break;case"End":u.preventDefault(),p[p.length-1]?.focus();break}},[t.length,l]);return t?.length?M.jsx("div",{className:[at.accordion,s].filter(Boolean).join(" "),role:"region","aria-label":"Accordion","data-accordion":!0,children:t.map((u,h)=>{const d=r.has(h),p=`${o}-header-${h}`,m=`${o}-panel-${h}`;return M.jsxs("div",{className:at.item,"data-open":d,children:[M.jsx("h3",{className:at.heading,children:M.jsxs("button",{type:"button",id:p,className:at.trigger,"aria-expanded":d,"aria-controls":m,"data-accordion-trigger":!0,onClick:()=>l(h),onKeyDown:x=>c(x,h),children:[M.jsx("span",{className:at.title,children:u.title}),M.jsx(To.span,{className:at.icon,animate:{rotate:d?180:0},transition:{duration:.25},"aria-hidden":!0,children:"▼"})]})}),M.jsx("div",{id:m,role:"region","aria-labelledby":p,"aria-hidden":!d,className:at.panelWrapper,children:M.jsx(Ec,{initial:!1,children:d&&M.jsx(To.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:at.panel,children:M.jsx("div",{className:at.content,children:u.content})})})})]},u.id??h)})}):M.jsx("div",{className:[at.accordion,s].filter(Boolean).join(" "),role:"region","aria-label":"Accordion",children:M.jsx("p",{className:at.empty,children:"No items to display."})})};gt.Accordion=jf,gt.FlashcardDeck=Wo,Object.defineProperty(gt,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zomako/elearning-components",
3
- "version": "1.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "A library of interactive and SCORM-compliant eLearning components.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -9,7 +9,8 @@
9
9
  "preview": "vite preview"
10
10
  },
11
11
  "dependencies": {
12
- "framer-motion": "^10.16.16",
12
+ "@zomako/elearning-components": "^1.0.2",
13
+ "motion": "^12.34.0",
13
14
  "react": "^18.2.0",
14
15
  "react-dom": "^18.2.0"
15
16
  },
@@ -21,7 +22,7 @@
21
22
  "rollup": "^4.57.1",
22
23
  "rollup-plugin-postcss": "^4.0.2",
23
24
  "typescript": "^5.9.3",
24
- "vite": "^5.0.8"
25
+ "vite": "^7.3.1"
25
26
  },
26
27
  "keywords": [],
27
28
  "author": "Kevwe Zoma",
package/rollup.config.js CHANGED
@@ -15,6 +15,6 @@ export default {
15
15
  extract: 'styles.css',
16
16
  }),
17
17
  ],
18
- external: ['react', 'react-dom', 'framer-motion'],
18
+ external: ['react', 'react-dom', 'motion'],
19
19
  };
20
20
 
package/src/App.jsx ADDED
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import { Accordion, FlashcardDeck } from './index';
3
+
4
+ const accordionItems = [
5
+ { title: 'Getting started', content: 'Install the package and import the components you need.' },
6
+ { title: 'Components', content: 'FlashcardDeck and Accordion are available. See each component README for usage.' },
7
+ { title: 'Support', content: 'Check the repository for documentation and issues.' },
8
+ ];
9
+
10
+ const sampleCards = [
11
+ { front: 'Front 1', back: 'Back 1' },
12
+ { front: 'Front 2', back: 'Back 2' },
13
+ ];
14
+
15
+ export default function App() {
16
+ return (
17
+ <div style={{ padding: '2rem', maxWidth: 640, margin: '0 auto' }}>
18
+ <h1>E-learning Components</h1>
19
+ <section style={{ marginBottom: '2rem' }}>
20
+ <h2>Accordion</h2>
21
+ <Accordion items={accordionItems} />
22
+ </section>
23
+ <section>
24
+ <h2>FlashcardDeck</h2>
25
+ <FlashcardDeck cards={sampleCards} />
26
+ </section>
27
+ </div>
28
+ );
29
+ }
@@ -1,6 +1,6 @@
1
1
  # Accordion Component
2
2
 
3
- A fully accessible, animated React accordion built with Framer Motion and CSS Modules. It renders a list of collapsible items with smooth expand/collapse animations and supports either single or multiple open panels.
3
+ A fully accessible, animated React accordion built with Motion and CSS Modules. It renders a list of collapsible items with smooth expand/collapse animations and supports either single or multiple open panels.
4
4
 
5
5
  ## Purpose
6
6
 
@@ -25,19 +25,19 @@ The `Accordion` component is designed for e-learning and content-heavy UIs where
25
25
  ### Dependencies
26
26
 
27
27
  ```bash
28
- npm install react react-dom framer-motion
28
+ npm install react react-dom motion
29
29
  ```
30
30
 
31
31
  Or with yarn:
32
32
 
33
33
  ```bash
34
- yarn add react react-dom framer-motion
34
+ yarn add react react-dom motion
35
35
  ```
36
36
 
37
37
  Or with pnpm:
38
38
 
39
39
  ```bash
40
- pnpm add react react-dom framer-motion
40
+ pnpm add react react-dom motion
41
41
  ```
42
42
 
43
43
  ## Props
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useCallback, useId } from 'react';
2
- import { motion, AnimatePresence } from 'framer-motion';
2
+ import { motion, AnimatePresence } from 'motion/react';
3
3
  import styles from './style.module.css';
4
4
 
5
5
  /**
@@ -31,6 +31,11 @@
31
31
  height: 300px;
32
32
  cursor: pointer;
33
33
  transform-style: preserve-3d;
34
+ transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
35
+ }
36
+
37
+ .flashcard--flipped {
38
+ transform: rotateY(180deg);
34
39
  }
35
40
 
36
41
  .flashcard-face {