UNPKG

react-toast-notify-ks

Version:

toast notification library for React

30 lines (28 loc) 131 kB
(function(it,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],P):(it=typeof globalThis<"u"?globalThis:it||self,P(it.ReactToastNotification={},it.React,it.ReactDOM))})(this,function(it,P,oo){"use strict";var ae={exports:{}},Nt={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var zn;function ao(){if(zn)return Nt;zn=1;var t=P,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,u){var c,d={},h=null,p=null;u!==void 0&&(h=""+u),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(p=l.ref);for(c in l)i.call(l,c)&&!o.hasOwnProperty(c)&&(d[c]=l[c]);if(a&&a.defaultProps)for(c in l=a.defaultProps,l)d[c]===void 0&&(d[c]=l[c]);return{$$typeof:e,type:a,key:h,ref:p,props:d,_owner:s.current}}return Nt.Fragment=n,Nt.jsx=r,Nt.jsxs=r,Nt}var Ut={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Hn;function lo(){return Hn||(Hn=1,process.env.NODE_ENV!=="production"&&function(){var t=P,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"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=Symbol.iterator,v="@@iterator";function b(f){if(f===null||typeof f!="object")return null;var m=y&&f[y]||f[v];return typeof m=="function"?m:null}var g=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(f){{for(var m=arguments.length,T=new Array(m>1?m-1:0),C=1;C<m;C++)T[C-1]=arguments[C];S("error",f,T)}}function S(f,m,T){{var C=g.ReactDebugCurrentFrame,M=C.getStackAddendum();M!==""&&(m+="%s",T=T.concat([M]));var O=T.map(function(D){return String(D)});O.unshift("Warning: "+m),Function.prototype.apply.call(console[f],console,O)}}var R=!1,A=!1,L=!1,N=!1,V=!1,W;W=Symbol.for("react.module.reference");function H(f){return!!(typeof f=="string"||typeof f=="function"||f===i||f===o||V||f===s||f===u||f===c||N||f===p||R||A||L||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===d||f.$$typeof===r||f.$$typeof===a||f.$$typeof===l||f.$$typeof===W||f.getModuleId!==void 0))}function gt(f,m,T){var C=f.displayName;if(C)return C;var M=m.displayName||m.name||"";return M!==""?T+"("+M+")":T}function re(f){return f.displayName||"Context"}function at(f){if(f==null)return null;if(typeof f.tag=="number"&&x("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 u:return"Suspense";case c:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case a:var m=f;return re(m)+".Consumer";case r:var T=f;return re(T._context)+".Provider";case l:return gt(f,f.render,"ForwardRef");case d:var C=f.displayName||null;return C!==null?C:at(f.type)||"Memo";case h:{var M=f,O=M._payload,D=M._init;try{return at(D(O))}catch{return null}}}return null}var lt=Object.assign,jt=0,Bn,U,tt,Ft,_t,$r,Wr;function Kr(){}Kr.__reactDisabledLog=!0;function Ic(){{if(jt===0){Bn=console.log,U=console.info,tt=console.warn,Ft=console.error,_t=console.group,$r=console.groupCollapsed,Wr=console.groupEnd;var f={configurable:!0,enumerable:!0,value:Kr,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}jt++}}function Nc(){{if(jt--,jt===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:lt({},f,{value:Bn}),info:lt({},f,{value:U}),warn:lt({},f,{value:tt}),error:lt({},f,{value:Ft}),group:lt({},f,{value:_t}),groupCollapsed:lt({},f,{value:$r}),groupEnd:lt({},f,{value:Wr})})}jt<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var In=g.ReactCurrentDispatcher,Nn;function Ve(f,m,T){{if(Nn===void 0)try{throw Error()}catch(M){var C=M.stack.trim().match(/\n( *(at )?)/);Nn=C&&C[1]||""}return` `+Nn+f}}var Un=!1,Ee;{var Uc=typeof WeakMap=="function"?WeakMap:Map;Ee=new Uc}function Gr(f,m){if(!f||Un)return"";{var T=Ee.get(f);if(T!==void 0)return T}var C;Un=!0;var M=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var O;O=In.current,In.current=null,Ic();try{if(m){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(q){C=q}Reflect.construct(f,[],D)}else{try{D.call()}catch(q){C=q}f.call(D.prototype)}}else{try{throw Error()}catch(q){C=q}f()}}catch(q){if(q&&C&&typeof q.stack=="string"){for(var E=q.stack.split(` `),Y=C.stack.split(` `),B=E.length-1,I=Y.length-1;B>=1&&I>=0&&E[B]!==Y[I];)I--;for(;B>=1&&I>=0;B--,I--)if(E[B]!==Y[I]){if(B!==1||I!==1)do if(B--,I--,I<0||E[B]!==Y[I]){var et=` `+E[B].replace(" at new "," at ");return f.displayName&&et.includes("<anonymous>")&&(et=et.replace("<anonymous>",f.displayName)),typeof f=="function"&&Ee.set(f,et),et}while(B>=1&&I>=0);break}}}finally{Un=!1,In.current=O,Nc(),Error.prepareStackTrace=M}var It=f?f.displayName||f.name:"",Pt=It?Ve(It):"";return typeof f=="function"&&Ee.set(f,Pt),Pt}function $c(f,m,T){return Gr(f,!1)}function Wc(f){var m=f.prototype;return!!(m&&m.isReactComponent)}function De(f,m,T){if(f==null)return"";if(typeof f=="function")return Gr(f,Wc(f));if(typeof f=="string")return Ve(f);switch(f){case u:return Ve("Suspense");case c:return Ve("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case l:return $c(f.render);case d:return De(f.type,m,T);case h:{var C=f,M=C._payload,O=C._init;try{return De(O(M),m,T)}catch{}}}return""}var oe=Object.prototype.hasOwnProperty,Yr={},zr=g.ReactDebugCurrentFrame;function Re(f){if(f){var m=f._owner,T=De(f.type,f._source,m?m.type:null);zr.setExtraStackFrame(T)}else zr.setExtraStackFrame(null)}function Kc(f,m,T,C,M){{var O=Function.call.bind(oe);for(var D in f)if(O(f,D)){var E=void 0;try{if(typeof f[D]!="function"){var Y=Error((C||"React class")+": "+T+" type `"+D+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[D]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Y.name="Invariant Violation",Y}E=f[D](m,D,C,T,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(B){E=B}E&&!(E instanceof Error)&&(Re(M),x("%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).",C||"React class",T,D,typeof E),Re(null)),E instanceof Error&&!(E.message in Yr)&&(Yr[E.message]=!0,Re(M),x("Failed %s type: %s",T,E.message),Re(null))}}}var Gc=Array.isArray;function $n(f){return Gc(f)}function Yc(f){{var m=typeof Symbol=="function"&&Symbol.toStringTag,T=m&&f[Symbol.toStringTag]||f.constructor.name||"Object";return T}}function zc(f){try{return Hr(f),!1}catch{return!0}}function Hr(f){return""+f}function qr(f){if(zc(f))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Yc(f)),Hr(f)}var Xr=g.ReactCurrentOwner,Hc={key:!0,ref:!0,__self:!0,__source:!0},Zr,Jr;function qc(f){if(oe.call(f,"ref")){var m=Object.getOwnPropertyDescriptor(f,"ref").get;if(m&&m.isReactWarning)return!1}return f.ref!==void 0}function Xc(f){if(oe.call(f,"key")){var m=Object.getOwnPropertyDescriptor(f,"key").get;if(m&&m.isReactWarning)return!1}return f.key!==void 0}function Zc(f,m){typeof f.ref=="string"&&Xr.current}function Jc(f,m){{var T=function(){Zr||(Zr=!0,x("%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)",m))};T.isReactWarning=!0,Object.defineProperty(f,"key",{get:T,configurable:!0})}}function Qc(f,m){{var T=function(){Jr||(Jr=!0,x("%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)",m))};T.isReactWarning=!0,Object.defineProperty(f,"ref",{get:T,configurable:!0})}}var tf=function(f,m,T,C,M,O,D){var E={$$typeof:e,type:f,key:m,ref:T,props:D,_owner:O};return E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(E,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(E,"_source",{configurable:!1,enumerable:!1,writable:!1,value:M}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E};function ef(f,m,T,C,M){{var O,D={},E=null,Y=null;T!==void 0&&(qr(T),E=""+T),Xc(m)&&(qr(m.key),E=""+m.key),qc(m)&&(Y=m.ref,Zc(m,M));for(O in m)oe.call(m,O)&&!Hc.hasOwnProperty(O)&&(D[O]=m[O]);if(f&&f.defaultProps){var B=f.defaultProps;for(O in B)D[O]===void 0&&(D[O]=B[O])}if(E||Y){var I=typeof f=="function"?f.displayName||f.name||"Unknown":f;E&&Jc(D,I),Y&&Qc(D,I)}return tf(f,E,Y,M,C,Xr.current,D)}}var Wn=g.ReactCurrentOwner,Qr=g.ReactDebugCurrentFrame;function Bt(f){if(f){var m=f._owner,T=De(f.type,f._source,m?m.type:null);Qr.setExtraStackFrame(T)}else Qr.setExtraStackFrame(null)}var Kn;Kn=!1;function Gn(f){return typeof f=="object"&&f!==null&&f.$$typeof===e}function to(){{if(Wn.current){var f=at(Wn.current.type);if(f)return` Check the render method of \``+f+"`."}return""}}function nf(f){return""}var eo={};function sf(f){{var m=to();if(!m){var T=typeof f=="string"?f:f.displayName||f.name;T&&(m=` Check the top-level render call using <`+T+">.")}return m}}function no(f,m){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var T=sf(m);if(eo[T])return;eo[T]=!0;var C="";f&&f._owner&&f._owner!==Wn.current&&(C=" It was passed a child from "+at(f._owner.type)+"."),Bt(f),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',T,C),Bt(null)}}function io(f,m){{if(typeof f!="object")return;if($n(f))for(var T=0;T<f.length;T++){var C=f[T];Gn(C)&&no(C,m)}else if(Gn(f))f._store&&(f._store.validated=!0);else if(f){var M=b(f);if(typeof M=="function"&&M!==f.entries)for(var O=M.call(f),D;!(D=O.next()).done;)Gn(D.value)&&no(D.value,m)}}}function rf(f){{var m=f.type;if(m==null||typeof m=="string")return;var T;if(typeof m=="function")T=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===l||m.$$typeof===d))T=m.propTypes;else return;if(T){var C=at(m);Kc(T,f.props,"prop",C,f)}else if(m.PropTypes!==void 0&&!Kn){Kn=!0;var M=at(m);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",M||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function of(f){{for(var m=Object.keys(f.props),T=0;T<m.length;T++){var C=m[T];if(C!=="children"&&C!=="key"){Bt(f),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),Bt(null);break}}f.ref!==null&&(Bt(f),x("Invalid attribute `ref` supplied to `React.Fragment`."),Bt(null))}}var so={};function ro(f,m,T,C,M,O){{var D=H(f);if(!D){var E="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(E+=" 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 Y=nf();Y?E+=Y:E+=to();var B;f===null?B="null":$n(f)?B="array":f!==void 0&&f.$$typeof===e?(B="<"+(at(f.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):B=typeof f,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",B,E)}var I=ef(f,m,T,M,O);if(I==null)return I;if(D){var et=m.children;if(et!==void 0)if(C)if($n(et)){for(var It=0;It<et.length;It++)io(et[It],f);Object.freeze&&Object.freeze(et)}else x("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 io(et,f)}if(oe.call(m,"key")){var Pt=at(f),q=Object.keys(m).filter(function(df){return df!=="key"}),Yn=q.length>0?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}";if(!so[Pt+Yn]){var ff=q.length>0?"{"+q.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,Yn,Pt,ff,Pt),so[Pt+Yn]=!0}}return f===i?of(I):rf(I),I}}function af(f,m,T){return ro(f,m,T,!0)}function lf(f,m,T){return ro(f,m,T,!1)}var uf=lf,cf=af;Ut.Fragment=i,Ut.jsx=uf,Ut.jsxs=cf}()),Ut}var qn;function uo(){return qn||(qn=1,process.env.NODE_ENV==="production"?ae.exports=ao():ae.exports=lo()),ae.exports}var X=uo();const co={success:{background:"bg-green-100 border-l-4 border-green-500",hover:"hover:bg-green-200",icon:"✓",titleGradient:"bg-gradient-to-r from-green-600 to-green-500 bg-clip-text text-transparent",loadingBar:"bg-gradient-to-r from-transparent via-green-400 to-transparent"},error:{background:"bg-red-100 border-l-4 border-red-500",hover:"hover:bg-red-200",icon:"⚠️",titleGradient:"bg-gradient-to-r from-red-600 to-red-500 bg-clip-text text-transparent",loadingBar:"bg-gradient-to-r from-transparent via-red-400 to-transparent"},warning:{background:"bg-yellow-100 border-l-4 border-yellow-500",hover:"hover:bg-yellow-200",icon:"!",titleGradient:"bg-gradient-to-r from-yellow-600 to-yellow-500 bg-clip-text text-transparent",loadingBar:"bg-gradient-to-r from-transparent via-yellow-400 to-transparent"},info:{background:"bg-blue-100 border-l-4 border-blue-500",hover:"hover:bg-blue-200",icon:"ℹ",titleGradient:"bg-gradient-to-r from-blue-600 to-blue-500 bg-clip-text text-transparent",loadingBar:"bg-gradient-to-r from-transparent via-blue-400 to-transparent"}},Xn=P.createContext({});function fo(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const Me=P.createContext(null),Zn=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function ho(t=!0){const e=P.useContext(Me);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=e,o=P.useId();P.useEffect(()=>{t&&s(o)},[t]);const r=P.useCallback(()=>t&&i&&i(o),[o,i,t]);return!n&&i?[!1,r]:[!0]}const Le=typeof window<"u",po=Le?P.useLayoutEffect:P.useEffect,z=t=>t;let St=z,ft=z;process.env.NODE_ENV!=="production"&&(St=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},ft=(t,e)=>{if(!t)throw new Error(e)});function Oe(t){let e;return()=>(e===void 0&&(e=t()),e)}const wt=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},st=t=>t*1e3,ut=t=>t/1e3,mo={skipAnimations:!1,useManualTiming:!1};function go(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(l.schedule(u),t()),u(r)}const l={schedule:(u,c=!1,d=!1)=>{const p=d&&i?e:n;return c&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(r=u,i){s=!0;return}i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,s&&(s=!1,l.process(u))}};return l}const le=["read","resolveKeyframes","update","preRender","render","postRender"],yo=40;function Jn(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=le.reduce((g,x)=>(g[x]=go(o),g),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:h}=r,p=()=>{const g=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(g-s.timestamp,yo),1),s.timestamp=g,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),d.process(s),h.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(p))},y=()=>{n=!0,i=!0,s.isProcessing||t(p)};return{schedule:le.reduce((g,x)=>{const S=r[x];return g[x]=(R,A=!1,L=!1)=>(n||y(),S.schedule(R,A,L)),g},{}),cancel:g=>{for(let x=0;x<le.length;x++)r[le[x]].cancel(g)},state:s,steps:r}}const{schedule:k,cancel:dt,state:$,steps:ke}=Jn(typeof requestAnimationFrame<"u"?requestAnimationFrame:z,!0),Qn=P.createContext({strict:!1}),ti={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"]},At={};for(const t in ti)At[t]={isEnabled:e=>ti[t].some(n=>!!e[n])};function vo(t){for(const e in t)At[e]={...At[e],...t[e]}}const xo=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","ignoreStrict","viewport"]);function ue(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||xo.has(t)}let ei=t=>!ue(t);function To(t){t&&(ei=e=>e.startsWith("on")?!ue(e):t(e))}try{To(require("@emotion/is-prop-valid").default)}catch{}function bo(t,e,n){const i={};for(const s in t)s==="values"&&typeof t.values=="object"||(ei(s)||n===!0&&ue(s)||!e&&!ue(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}const ni=new Set;function ce(t,e,n){t||ni.has(e)||(console.warn(e),ni.add(e))}function Po(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>(process.env.NODE_ENV!=="production"&&ce(!1,"motion() is deprecated. Use motion.create() instead."),t(...i));return new Proxy(n,{get:(i,s)=>s==="create"?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}const fe=P.createContext({});function $t(t){return typeof t=="string"||Array.isArray(t)}function de(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const je=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fe=["initial",...je];function he(t){return de(t.animate)||Fe.some(e=>$t(t[e]))}function ii(t){return!!(he(t)||t.variants)}function So(t,e){if(he(t)){const{initial:n,animate:i}=t;return{initial:n===!1||$t(n)?n:void 0,animate:$t(i)?i:void 0}}return t.inherit!==!1?e:{}}function wo(t){const{initial:e,animate:n}=So(t,P.useContext(fe));return P.useMemo(()=>({initial:e,animate:n}),[si(e),si(n)])}function si(t){return Array.isArray(t)?t.join(" "):t}const Ao=Symbol.for("motionComponentSymbol");function Ct(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Co(t,e,n){return P.useCallback(i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):Ct(n)&&(n.current=i))},[e])}const _e=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ri="data-"+_e("framerAppearId"),{schedule:Be,cancel:pf}=Jn(queueMicrotask,!1),oi=P.createContext({});function Vo(t,e,n,i,s){var o,r;const{visualElement:a}=P.useContext(fe),l=P.useContext(Qn),u=P.useContext(Me),c=P.useContext(Zn).reducedMotion,d=P.useRef(null);i=i||l.renderer,!d.current&&i&&(d.current=i(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const h=d.current,p=P.useContext(oi);h&&!h.projection&&s&&(h.type==="html"||h.type==="svg")&&Eo(d.current,n,s,p);const y=P.useRef(!1);P.useInsertionEffect(()=>{h&&y.current&&h.update(n,u)});const v=n[ri],b=P.useRef(!!v&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,v))&&((r=window.MotionHasOptimisedAnimation)===null||r===void 0?void 0:r.call(window,v)));return po(()=>{h&&(y.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Be.render(h.render),b.current&&h.animationState&&h.animationState.animateChanges())}),P.useEffect(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)===null||g===void 0||g.call(window,v)}),b.current=!1))}),h}function Eo(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:ai(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!r||a&&Ct(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}function ai(t){if(t)return t.options.allowProjection!==!1?t.projection:ai(t.parent)}function Do({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:s}){var o,r;t&&vo(t);function a(u,c){let d;const h={...P.useContext(Zn),...u,layoutId:Ro(u)},{isStatic:p}=h,y=wo(u),v=i(u,p);if(!p&&Le){Mo(h,t);const b=Lo(h);d=b.MeasureLayout,y.visualElement=Vo(s,v,h,e,b.ProjectionNode)}return X.jsxs(fe.Provider,{value:y,children:[d&&y.visualElement?X.jsx(d,{visualElement:y.visualElement,...h}):null,n(s,u,Co(v,y.visualElement,c),v,p,y.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(r=(o=s.displayName)!==null&&o!==void 0?o:s.name)!==null&&r!==void 0?r:""})`}`;const l=P.forwardRef(a);return l[Ao]=s,l}function Ro({layoutId:t}){const e=P.useContext(Xn).id;return e&&t!==void 0?e+"-"+t:t}function Mo(t,e){const n=P.useContext(Qn).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?St(!1,i):ft(!1,i)}}function Lo(t){const{drag:e,layout:n}=At;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const Oo=["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 Ie(t){return typeof t!="string"||t.includes("-")?!1:!!(Oo.indexOf(t)>-1||/[A-Z]/u.test(t))}function li(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}const ui=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"]);function ci(t,e,n,i){li(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(ui.has(s)?s:_e(s),e.attrs[s])}const K=t=>!!(t&&t.getVelocity),Vt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Et=new Set(Vt),pe={};function ko(t){Object.assign(pe,t)}function fi(t,{layout:e,layoutId:n}){return Et.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!pe[t]||t==="opacity")}function Ne(t,e,n){var i;const{style:s}=t,o={};for(const r in s)(K(s[r])||e.style&&K(e.style[r])||fi(r,t)||((i=n==null?void 0:n.getValue(r))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(o[r]=s[r]);return o}function di(t,e,n){const i=Ne(t,e,n);for(const s in t)if(K(t[s])||K(e[s])){const o=Vt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[o]=t[s]}return i}function hi(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function Ue(t,e,n,i){if(typeof e=="function"){const[s,o]=hi(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]=hi(i);e=e(n!==void 0?n:t.custom,s,o)}return e}const $e=t=>Array.isArray(t),jo=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Fo=t=>$e(t)?t[t.length-1]||0:t;function me(t){const e=K(t)?t.get():t;return jo(e)?e.toValue():e}function _o({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,s,o){const r={latestValues:Bo(i,s,o,t),renderState:e()};return n&&(r.mount=a=>n(i,a,r)),r}const pi=t=>(e,n)=>{const i=P.useContext(fe),s=P.useContext(Me),o=()=>_o(t,e,i,s);return n?o():fo(o)};function Bo(t,e,n,i){const s={},o=i(t,{});for(const h in o)s[h]=me(o[h]);let{initial:r,animate:a}=t;const l=he(t),u=ii(t);e&&u&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||r===!1;const d=c?a:r;if(d&&typeof d!="boolean"&&!de(d)){const h=Array.isArray(d)?d:[d];for(let p=0;p<h.length;p++){const y=Ue(t,h[p]);if(y){const{transitionEnd:v,transition:b,...g}=y;for(const x in g){let S=g[x];if(Array.isArray(S)){const R=c?S.length-1:0;S=S[R]}S!==null&&(s[x]=S)}for(const x in v)s[x]=v[x]}}}return s}const We=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),mi=()=>({...We(),attrs:{}}),gi=t=>e=>typeof e=="string"&&e.startsWith(t),yi=gi("--"),Io=gi("var(--"),Ke=t=>Io(t)?No.test(t.split("/*")[0].trim()):!1,No=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,vi=(t,e)=>e&&typeof t=="number"?e.transform(t):t,ct=(t,e,n)=>n>e?e:n<t?t:n,Dt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Wt={...Dt,transform:t=>ct(0,1,t)},ge={...Dt,default:1},Kt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ht=Kt("deg"),rt=Kt("%"),w=Kt("px"),Uo=Kt("vh"),$o=Kt("vw"),xi={...rt,parse:t=>rt.parse(t)/100,transform:t=>rt.transform(t*100)},Wo={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,radius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,backgroundPositionX:w,backgroundPositionY:w},Ko={rotate:ht,rotateX:ht,rotateY:ht,rotateZ:ht,scale:ge,scaleX:ge,scaleY:ge,scaleZ:ge,skew:ht,skewX:ht,skewY:ht,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:Wt,originX:xi,originY:xi,originZ:w},Ti={...Dt,transform:Math.round},Ge={...Wo,...Ko,zIndex:Ti,size:w,fillOpacity:Wt,strokeOpacity:Wt,numOctaves:Ti},Go={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yo=Vt.length;function zo(t,e,n){let i="",s=!0;for(let o=0;o<Yo;o++){const r=Vt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=vi(a,Ge[r]);if(!l){s=!1;const c=Go[r]||r;i+=`${c}(${u}) `}n&&(e[r]=u)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}function Ye(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const u=e[l];if(Et.has(l)){r=!0;continue}else if(yi(l)){s[l]=u;continue}else{const c=vi(u,Ge[l]);l.startsWith("origin")?(a=!0,o[l]=c):i[l]=c}}if(e.transform||(r||n?i.transform=zo(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;i.transformOrigin=`${l} ${u} ${c}`}}function bi(t,e,n){return typeof t=="string"?t:w.transform(e+n*t)}function Ho(t,e,n){const i=bi(e,t.x,t.width),s=bi(n,t.y,t.height);return`${i} ${s}`}const qo={offset:"stroke-dashoffset",array:"stroke-dasharray"},Xo={offset:"strokeDashoffset",array:"strokeDasharray"};function Zo(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?qo:Xo;t[o.offset]=w.transform(-i);const r=w.transform(e),a=w.transform(n);t[o.array]=`${r} ${a}`}function ze(t,{attrX:e,attrY:n,attrScale:i,originX:s,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(Ye(t,u,d),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:p,dimensions:y}=t;h.transform&&(y&&(p.transform=h.transform),delete h.transform),y&&(s!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=Ho(y,s!==void 0?s:.5,o!==void 0?o:.5)),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),i!==void 0&&(h.scale=i),r!==void 0&&Zo(h,r,a,l,!1)}const He=t=>typeof t=="string"&&t.toLowerCase()==="svg",Jo={useVisualState:pi({scrapeMotionValuesFromProps:di,createRenderState:mi,onMount:(t,e,{renderState:n,latestValues:i})=>{k.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),k.render(()=>{ze(n,i,He(e.tagName),t.transformTemplate),ci(e,n)})}})},Qo={useVisualState:pi({scrapeMotionValuesFromProps:Ne,createRenderState:We})};function Pi(t,e,n){for(const i in e)!K(e[i])&&!fi(i,n)&&(t[i]=e[i])}function ta({transformTemplate:t},e){return P.useMemo(()=>{const n=We();return Ye(n,e,t),Object.assign({},n.vars,n.style)},[e])}function ea(t,e){const n=t.style||{},i={};return Pi(i,n,t),Object.assign(i,ta(t,e)),i}function na(t,e){const n={},i=ea(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}function ia(t,e,n,i){const s=P.useMemo(()=>{const o=mi();return ze(o,e,He(i),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Pi(o,t.style,t),s.style={...o,...s.style}}return s}function sa(t=!1){return(n,i,s,{latestValues:o},r)=>{const l=(Ie(n)?ia:na)(i,o,r,n),u=bo(i,typeof n=="string",t),c=n!==P.Fragment?{...u,...l,ref:s}:{},{children:d}=i,h=P.useMemo(()=>K(d)?d.get():d,[d]);return P.createElement(n,{...c,children:h})}}function ra(t,e){return function(i,{forwardMotionProps:s}={forwardMotionProps:!1}){const r={...Ie(i)?Jo:Qo,preloadedFeatures:t,useRender:sa(s),createVisualElement:e,Component:i};return Do(r)}}function Si(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}function ye(t,e,n){const i=t.getProps();return Ue(i,e,n!==void 0?n:i.custom,t)}const oa=Oe(()=>window.ScrollTimeline!==void 0);class aa{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e,n){const i=this.animations.map(s=>{if(oa()&&s.attachTimeline)return s.attachTimeline(e);if(typeof n=="function")return n(s)});return()=>{i.forEach((s,o)=>{s&&s(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class la extends aa{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function qe(t,e){return t?t[e]||t.default||t:void 0}const Xe=2e4;function wi(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Xe;)e+=n,i=t.next(e);return e>=Xe?1/0:e}function Ze(t){return typeof t=="function"}function Ai(t,e){t.timeline=e,t.onfinish=null}const Je=t=>Array.isArray(t)&&typeof t[0]=="number",ua={linearEasing:void 0};function ca(t,e){const n=Oe(t);return()=>{var i;return(i=ua[e])!==null&&i!==void 0?i:n()}}const ve=ca(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ci=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o<s;o++)i+=t(wt(0,s-1,o))+", ";return`linear(${i.substring(0,i.length-2)})`};function Vi(t){return!!(typeof t=="function"&&ve()||!t||typeof t=="string"&&(t in Qe||ve())||Je(t)||Array.isArray(t)&&t.every(Vi))}const Gt=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Qe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gt([0,.65,.55,1]),circOut:Gt([.55,0,1,.45]),backIn:Gt([.31,.01,.66,-.59]),backOut:Gt([.33,1.53,.69,.99])};function Ei(t,e){if(t)return typeof t=="function"&&ve()?Ci(t,e):Je(t)?Gt(t):Array.isArray(t)?t.map(n=>Ei(n,e)||Qe.easeOut):Qe[t]}const nt={x:!1,y:!1};function Di(){return nt.x||nt.y}function fa(t,e,n){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let s=document;const o=(i=void 0)!==null&&i!==void 0?i:s.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function Ri(t,e){const n=fa(t),i=new AbortController,s={passive:!0,...e,signal:i.signal};return[n,s,()=>i.abort()]}function Mi(t){return e=>{e.pointerType==="touch"||Di()||t(e)}}function da(t,e,n={}){const[i,s,o]=Ri(t,n),r=Mi(a=>{const{target:l}=a,u=e(a);if(typeof u!="function"||!l)return;const c=Mi(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,s)});return i.forEach(a=>{a.addEventListener("pointerenter",r,s)}),o}const Li=(t,e)=>e?t===e?!0:Li(t,e.parentElement):!1,tn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,ha=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function pa(t){return ha.has(t.tagName)||t.tabIndex!==-1}const Yt=new WeakSet;function Oi(t){return e=>{e.key==="Enter"&&t(e)}}function en(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ma=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=Oi(()=>{if(Yt.has(n))return;en(n,"down");const s=Oi(()=>{en(n,"up")}),o=()=>en(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 ki(t){return tn(t)&&!Di()}function ga(t,e,n={}){const[i,s,o]=Ri(t,n),r=a=>{const l=a.currentTarget;if(!ki(a)||Yt.has(l))return;Yt.add(l);const u=e(a),c=(p,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),!(!ki(p)||!Yt.has(l))&&(Yt.delete(l),typeof u=="function"&&u(p,{success:y}))},d=p=>{c(p,n.useGlobalTarget||Li(l,p.target))},h=p=>{c(p,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",h,s)};return i.forEach(a=>{!pa(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,s),a.addEventListener("focus",u=>ma(u,s),s)}),o}function ya(t){return t==="x"||t==="y"?nt[t]?null:(nt[t]=!0,()=>{nt[t]=!1}):nt.x||nt.y?null:(nt.x=nt.y=!0,()=>{nt.x=nt.y=!1})}const ji=new Set(["width","height","top","left","right","bottom",...Vt]);let xe;function va(){xe=void 0}const ot={now:()=>(xe===void 0&&ot.set($.isProcessing||mo.useManualTiming?$.timestamp:performance.now()),xe),set:t=>{xe=t,queueMicrotask(va)}};function nn(t,e){t.indexOf(e)===-1&&t.push(e)}function sn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class rn{constructor(){this.subscriptions=[]}add(e){return nn(this.subscriptions,e),()=>sn(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}}function Fi(t,e){return e?t*(1e3/e):0}const _i=30,xa=t=>!isNaN(parseFloat(t));class Ta{constructor(e,n={}){this.version="11.17.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,s=!0)=>{const o=ot.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=ot.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=xa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&ce(!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 rn);const i=this.events[e].add(n);return e==="change"?()=>{i(),k.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,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}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()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ot.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>_i)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_i);return Fi(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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zt(t,e){return new Ta(t,e)}function ba(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,zt(n))}function Pa(t,e){const n=ye(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const r in o){const a=Fo(o[r]);ba(t,r,a)}}function Sa(t){return!!(K(t)&&t.add)}function on(t,e){const n=t.getValue("willChange");if(Sa(n))return n.add(e)}function Bi(t){return t.props[ri]}const Ii=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,wa=1e-7,Aa=12;function Ca(t,e,n,i,s){let o,r,a=0;do r=e+(n-e)/2,o=Ii(r,i,s)-t,o>0?n=r:e=r;while(Math.abs(o)>wa&&++a<Aa);return r}function Ht(t,e,n,i){if(t===e&&n===i)return z;const s=o=>Ca(o,0,1,t,n);return o=>o===0||o===1?o:Ii(s(o),e,i)}const Ni=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ui=t=>e=>1-t(1-e),$i=Ht(.33,1.53,.69,.99),an=Ui($i),Wi=Ni(an),Ki=t=>(t*=2)<1?.5*an(t):.5*(2-Math.pow(2,-10*(t-1))),ln=t=>1-Math.sin(Math.acos(t)),Gi=Ui(ln),Yi=Ni(ln),zi=t=>/^0[^.\s]+$/u.test(t);function Va(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||zi(t):!0}const qt=t=>Math.round(t*1e5)/1e5,un=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ea(t){return t==null}const Da=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cn=(t,e)=>n=>!!(typeof n=="string"&&Da.test(n)&&n.startsWith(t)||e&&!Ea(n)&&Object.prototype.hasOwnProperty.call(n,e)),Hi=(t,e,n)=>i=>{if(typeof i!="string")return i;const[s,o,r,a]=i.match(un);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Ra=t=>ct(0,255,t),fn={...Dt,transform:t=>Math.round(Ra(t))},yt={test:cn("rgb","red"),parse:Hi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+fn.transform(t)+", "+fn.transform(e)+", "+fn.transform(n)+", "+qt(Wt.transform(i))+")"};function Ma(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 dn={test:cn("#"),parse:Ma,transform:yt.transform},Rt={test:cn("hsl","hue"),parse:Hi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+rt.transform(qt(e))+", "+rt.transform(qt(n))+", "+qt(Wt.transform(i))+")"},G={test:t=>yt.test(t)||dn.test(t)||Rt.test(t),parse:t=>yt.test(t)?yt.parse(t):Rt.test(t)?Rt.parse(t):dn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?yt.transform(t):Rt.transform(t)},La=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Oa(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(un))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(La))===null||n===void 0?void 0:n.length)||0)>0}const qi="number",Xi="color",ka="var",ja="var(",Zi="${}",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 Xt(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const a=e.replace(Fa,l=>(G.test(l)?(i.color.push(o),s.push(Xi),n.push(G.parse(l))):l.startsWith(ja)?(i.var.push(o),s.push(ka),n.push(l)):(i.number.push(o),s.push(qi),n.push(parseFloat(l))),++o,Zi)).split(Zi);return{values:n,split:a,indexes:i,types:s}}function Ji(t){return Xt(t).values}function Qi(t){const{split:e,types:n}=Xt(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===qi?o+=qt(s[r]):a===Xi?o+=G.transform(s[r]):o+=s[r]}return o}}const _a=t=>typeof t=="number"?0:t;function Ba(t){const e=Ji(t);return Qi(t)(e.map(_a))}const pt={test:Oa,parse:Ji,createTransformer:Qi,getAnimatableNone:Ba},Ia=new Set(["brightness","contrast","saturate","opacity"]);function Na(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(un)||[];if(!i)return t;const s=n.replace(i,"");let o=Ia.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const Ua=/\b([a-z-]*)\(.*?\)/gu,hn={...pt,getAnimatableNone:t=>{const e=t.match(Ua);return e?e.map(Na).join(" "):t}},$a={...Ge,color:G,backgroundColor:G,outlineColor:G,fill:G,stroke:G,borderColor:G,borderTopColor:G,borderRightColor:G,borderBottomColor:G,borderLeftColor:G,filter:hn,WebkitFilter:hn},pn=t=>$a[t];function ts(t,e){let n=pn(t);return n!==hn&&(n=pt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Wa=new Set(["auto","none","0"]);function Ka(t,e,n){let i=0,s;for(;i<t.length&&!s;){const o=t[i];typeof o=="string"&&!Wa.has(o)&&Xt(o).values.length&&(s=t[i]),i++}if(s&&n)for(const o of e)t[o]=ts(n,s)}const es=t=>t===Dt||t===w,ns=(t,e)=>parseFloat(t.split(", ")[e]),is=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return ns(s[1],e);{const o=i.match(/^matrix\((.+)\)$/u);return o?ns(o[1],t):0}},Ga=new Set(["x","y","z"]),Ya=Vt.filter(t=>!Ga.has(t));function za(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 Mt={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:is(4,13),y:is(5,14)};Mt.translateX=Mt.x,Mt.translateY=Mt.y;const vt=new Set;let mn=!1,gn=!1;function ss(){if(gn){const t=Array.from(vt).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const s=za(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])=>{var a;(a=i.getValue(o))===null||a===void 0||a.set(r)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}gn=!1,mn=!1,vt.forEach(t=>t.complete()),vt.clear()}function rs(){vt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(gn=!0)})}function Ha(){rs(),ss()}class yn{constructor(e,n,i,s,o,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=s,this.element=o,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(vt.add(this),mn||(mn=!0,k.read(rs),k.resolveKeyframes(ss))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:s}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const r=s==null?void 0:s.get(),a=e[e.length-1];if(r!==void 0)e[0]=r;else if(i&&n){const l=i.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),s&&r===void 0&&s.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),vt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,vt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const os=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),qa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Xa(t){const e=qa.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}const Za=4;function as(t,e,n=1){ft(n<=Za,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,s]=Xa(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const r=o.trim();return os(r)?parseFloat(r):r}return Ke(s)?as(s,e,n+1):s}const ls=t=>e=>e.test(t),us=[Dt,w,rt,ht,$o,Uo,{test:t=>t==="auto",parse:t=>t}],cs=t=>us.find(ls(t));class fs extends yn{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 l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),Ke(u))){const c=as(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!ji.has(i)||e.length!==2)return;const[s,o]=e,r=cs(s),a=cs(o);if(r!==a)if(es(r)&&es(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let s=0;s<e.length;s++)Va(e[s])&&i.push(s);i.length&&Ka(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=Mt[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(){var e;const{element:n,name:i,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const o=n.getValue(i);o&&o.jump(this.measuredOrigin,!1);const r=s.length-1,a=s[r];s[r]=Mt[i](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const ds=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(pt.test(t)||t==="0")&&!t.startsWith("url("));function Ja(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 Qa(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=ds(s,e),a=ds(o,e);return St(r===a,`You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!r||!a?!1:Ja(t)||(n==="spring"||Ze(n))&&i}const tl=t=>t!==null;function Te(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(tl),o=e&&n!=="loop"&&e%2===1?0:s.length-1;return!o||i===void 0?s[o]:i}const el=40;class hs{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:r="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ot.now(),this.options={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>el?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Ha(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=ot.now(),this.hasAttemptedResolve=!0;const{name:i,type:s,velocity:o,delay:r,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Qa(e,i,s,o))if(r)this.options.duration=0;else{l==null||l(Te(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolv