@developermafia/simple-alert-react
Version:
```bash npm i @developermafia/simple-alert-react ```
1 lines • 120 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react/jsx-runtime"),ao=require("react-dom"),T=require("react");function lo(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Be=lo(T);var Pt={},xt=ao;if(process.env.NODE_ENV==="production")Pt.createRoot=xt.createRoot,Pt.hydrateRoot=xt.hydrateRoot;else{var kt=xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Pt.createRoot=function(t,e){kt.usingClientEntryPoint=!0;try{return xt.createRoot(t,e)}finally{kt.usingClientEntryPoint=!1}},Pt.hydrateRoot=function(t,e,n){kt.usingClientEntryPoint=!0;try{return xt.hydrateRoot(t,e,n)}finally{kt.usingClientEntryPoint=!1}}}const gn=new Set;function Yt(t,e,n){t||gn.has(e)||(console.warn(e),gn.add(e))}function co(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>(process.env.NODE_ENV!=="production"&&Yt(!1,"motion() is deprecated. Use motion.create() instead."),t(...s));return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}function Xt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const ve=t=>Array.isArray(t);function ks(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function Ct(t){return typeof t=="string"||Array.isArray(t)}function yn(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function ke(t,e,n,s){if(typeof e=="function"){const[i,r]=yn(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=yn(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function Zt(t,e,n){const s=t.getProps();return ke(s,e,n!==void 0?n:s.custom,t)}const Fe=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Oe=["initial",...Fe],Et=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],at=new Set(Et),U=t=>t*1e3,z=t=>t/1e3,uo={type:"spring",stiffness:500,damping:25,restSpeed:10},ho=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),fo={type:"keyframes",duration:.8},po={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},mo=(t,{keyframes:e})=>e.length>2?fo:at.has(t)?t.startsWith("scale")?ho(e[1]):uo:po;function je(t,e){return t?t[e]||t.default||t:void 0}const go={skipAnimations:!1,useManualTiming:!1},yo=t=>t!==null;function Jt(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(yo),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const E=t=>t;function vo(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){r.has(c)&&(l.schedule(c),t()),c(o)}const l={schedule:(c,u=!1,h=!1)=>{const f=h&&s?e:n;return u&&r.add(c),f.has(c)||f.add(c),c},cancel:c=>{n.delete(c),r.delete(c)},process:c=>{if(o=c,s){i=!0;return}s=!0,[e,n]=[n,e],n.clear(),e.forEach(a),s=!1,i&&(i=!1,l.process(c))}};return l}const Ft=["read","resolveKeyframes","update","preRender","render","postRender"],xo=40;function Fs(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Ft.reduce((y,v)=>(y[v]=vo(r),y),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:h,postRender:d}=o,f=()=>{const y=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(y-i.timestamp,xo),1),i.timestamp=y,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),d.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(f))},p=()=>{n=!0,s=!0,i.isProcessing||t(f)};return{schedule:Ft.reduce((y,v)=>{const m=o[v];return y[v]=(b,S=!1,C=!1)=>(n||p(),m.schedule(b,S,C)),y},{}),cancel:y=>{for(let v=0;v<Ft.length;v++)o[Ft[v]].cancel(y)},state:i,steps:o}}const{schedule:A,cancel:Z,state:D,steps:oe}=Fs(typeof requestAnimationFrame<"u"?requestAnimationFrame:E,!0),Os=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,To=1e-7,Po=12;function bo(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Os(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>To&&++a<Po);return o}function Lt(t,e,n,s){if(t===e&&n===s)return E;const i=r=>bo(r,0,1,t,n);return r=>r===0||r===1?r:Os(i(r),e,s)}const js=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Is=t=>e=>1-t(1-e),Ns=Lt(.33,1.53,.69,.99),Ie=Is(Ns),_s=js(Ie),Us=t=>(t*=2)<1?.5*Ie(t):.5*(2-Math.pow(2,-10*(t-1))),Ne=t=>1-Math.sin(Math.acos(t)),$s=Is(Ne),Ks=js(Ne),Ws=t=>/^0[^.\s]+$/u.test(t);function So(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Ws(t):!0}let yt=E,Y=E;process.env.NODE_ENV!=="production"&&(yt=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},Y=(t,e)=>{if(!t)throw new Error(e)});const Gs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),zs=t=>e=>typeof e=="string"&&e.startsWith(t),Hs=zs("--"),wo=zs("var(--"),_e=t=>wo(t)?Ao.test(t.split("/*")[0].trim()):!1,Ao=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Vo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Co(t){const e=Vo.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}const Mo=4;function qs(t,e,n=1){Y(n<=Mo,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[s,i]=Co(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return Gs(o)?parseFloat(o):o}return _e(i)?qs(i,e,n+1):i}const J=(t,e,n)=>n>e?e:n<t?t:n,vt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Mt={...vt,transform:t=>J(0,1,t)},Ot={...vt,default:1},Bt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),X=Bt("deg"),$=Bt("%"),P=Bt("px"),Ro=Bt("vh"),Do=Bt("vw"),vn={...$,parse:t=>$.parse(t)/100,transform:t=>$.transform(t*100)},Eo=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),xn=t=>t===vt||t===P,Tn=(t,e)=>parseFloat(t.split(", ")[e]),Pn=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return Tn(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?Tn(r[1],t):0}},Lo=new Set(["x","y","z"]),Bo=Et.filter(t=>!Lo.has(t));function ko(t){const e=[];return Bo.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const pt={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:Pn(4,13),y:Pn(5,14)};pt.translateX=pt.x;pt.translateY=pt.y;const Ys=t=>e=>e.test(t),Fo={test:t=>t==="auto",parse:t=>t},Xs=[vt,P,$,X,Do,Ro,Fo],bn=t=>Xs.find(Ys(t)),rt=new Set;let xe=!1,Te=!1;function Zs(){if(Te){const t=Array.from(rt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=ko(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Te=!1,xe=!1,rt.forEach(t=>t.complete()),rt.clear()}function Js(){rt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Te=!0)})}function Oo(){Js(),Zs()}class Ue{constructor(e,n,s,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(rt.add(this),xe||(xe=!0,A.read(Js),A.resolveKeyframes(Zs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){const o=i==null?void 0:i.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&o===void 0&&i.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),rt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,rt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const wt=t=>Math.round(t*1e5)/1e5,$e=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jo(t){return t==null}const Io=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ke=(t,e)=>n=>!!(typeof n=="string"&&Io.test(n)&&n.startsWith(t)||e&&!jo(n)&&Object.prototype.hasOwnProperty.call(n,e)),Qs=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match($e);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},No=t=>J(0,255,t),re={...vt,transform:t=>Math.round(No(t))},ot={test:Ke("rgb","red"),parse:Qs("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+re.transform(t)+", "+re.transform(e)+", "+re.transform(n)+", "+wt(Mt.transform(s))+")"};function _o(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Pe={test:Ke("#"),parse:_o,transform:ot.transform},ct={test:Ke("hsl","hue"),parse:Qs("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+$.transform(wt(e))+", "+$.transform(wt(n))+", "+wt(Mt.transform(s))+")"},L={test:t=>ot.test(t)||Pe.test(t)||ct.test(t),parse:t=>ot.test(t)?ot.parse(t):ct.test(t)?ct.parse(t):Pe.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ot.transform(t):ct.transform(t)},Uo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $o(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match($e))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Uo))===null||n===void 0?void 0:n.length)||0)>0}const ti="number",ei="color",Ko="var",Wo="var(",Sn="${}",Go=/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 Rt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Go,l=>(L.test(l)?(s.color.push(r),i.push(ei),n.push(L.parse(l))):l.startsWith(Wo)?(s.var.push(r),i.push(Ko),n.push(l)):(s.number.push(r),i.push(ti),n.push(parseFloat(l))),++r,Sn)).split(Sn);return{values:n,split:a,indexes:s,types:i}}function ni(t){return Rt(t).values}function si(t){const{split:e,types:n}=Rt(t),s=e.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],i[o]!==void 0){const a=n[o];a===ti?r+=wt(i[o]):a===ei?r+=L.transform(i[o]):r+=i[o]}return r}}const zo=t=>typeof t=="number"?0:t;function Ho(t){const e=ni(t);return si(t)(e.map(zo))}const Q={test:$o,parse:ni,createTransformer:si,getAnimatableNone:Ho},qo=new Set(["brightness","contrast","saturate","opacity"]);function Yo(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match($e)||[];if(!s)return t;const i=n.replace(s,"");let r=qo.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Xo=/\b([a-z-]*)\(.*?\)/gu,be={...Q,getAnimatableNone:t=>{const e=t.match(Xo);return e?e.map(Yo).join(" "):t}},Zo={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,radius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,backgroundPositionX:P,backgroundPositionY:P},Jo={rotate:X,rotateX:X,rotateY:X,rotateZ:X,scale:Ot,scaleX:Ot,scaleY:Ot,scaleZ:Ot,skew:X,skewX:X,skewY:X,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:Mt,originX:vn,originY:vn,originZ:P},wn={...vt,transform:Math.round},We={...Zo,...Jo,zIndex:wn,size:P,fillOpacity:Mt,strokeOpacity:Mt,numOctaves:wn},Qo={...We,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:be,WebkitFilter:be},Ge=t=>Qo[t];function ii(t,e){let n=Ge(t);return n!==be&&(n=Q),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const tr=new Set(["auto","none","0"]);function er(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!tr.has(r)&&Rt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=ii(n,i)}class oi extends Ue{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),_e(c))){const u=qs(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Eo.has(s)||e.length!==2)return;const[i,r]=e,o=bn(i),a=bn(r);if(o!==a)if(xn(o)&&xn(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)So(e[i])&&s.push(i);s.length&&er(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const r=n.getValue(s);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=pt[s](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,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function ze(t){return typeof t=="function"}let Nt;function nr(){Nt=void 0}const K={now:()=>(Nt===void 0&&K.set(D.isProcessing||go.useManualTiming?D.timestamp:performance.now()),Nt),set:t=>{Nt=t,queueMicrotask(nr)}},An=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Q.test(t)||t==="0")&&!t.startsWith("url("));function sr(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 ir(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=An(i,e),a=An(r,e);return yt(o===a,`You are trying to animate ${e} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`),!o||!a?!1:sr(t)||(n==="spring"||ze(n))&&s}const or=40;class ri{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=K.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>or?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Oo(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=K.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!ir(e,s,i,r))if(o)this.options.duration=0;else{l==null||l(Jt(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function ai(t,e){return e?t*(1e3/e):0}const rr=5;function li(t,e,n){const s=Math.max(e-rr,0);return ai(n-t(s),e-s)}const ae=.001,ar=.01,Vn=10,lr=.05,cr=1;function ur({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let i,r;yt(t<=U(Vn),"Spring duration must be 10 seconds or less");let o=1-e;o=J(lr,cr,o),t=J(ar,Vn,z(t)),o<1?(i=c=>{const u=c*o,h=u*t,d=u-n,f=Se(c,o),p=Math.exp(-h);return ae-d/f*p},r=c=>{const h=c*o*t,d=h*n+n,f=Math.pow(o,2)*Math.pow(c,2)*t,p=Math.exp(-h),g=Se(Math.pow(c,2),o);return(-i(c)+ae>0?-1:1)*((d-f)*p)/g}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-ae+u*h},r=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=dr(i,r,a);if(t=U(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:t}}}const hr=12;function dr(t,e,n){let s=n;for(let i=1;i<hr;i++)s=s-t(s)/e(s);return s}function Se(t,e){return t*Math.sqrt(1-e*e)}const fr=["duration","bounce"],pr=["stiffness","damping","mass"];function Cn(t,e){return e.some(n=>t[n]!==void 0)}function mr(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Cn(t,pr)&&Cn(t,fr)){const n=ur(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function ci({keyframes:t,restDelta:e,restSpeed:n,...s}){const i=t[0],r=t[t.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:u,velocity:h,isResolvedFromDuration:d}=mr({...s,velocity:-z(s.velocity||0)}),f=h||0,p=l/(2*Math.sqrt(a*c)),g=r-i,x=z(Math.sqrt(a/c)),y=Math.abs(g)<5;n||(n=y?.01:2),e||(e=y?.005:.5);let v;if(p<1){const m=Se(x,p);v=b=>{const S=Math.exp(-p*x*b);return r-S*((f+p*x*g)/m*Math.sin(m*b)+g*Math.cos(m*b))}}else if(p===1)v=m=>r-Math.exp(-x*m)*(g+(f+x*g)*m);else{const m=x*Math.sqrt(p*p-1);v=b=>{const S=Math.exp(-p*x*b),C=Math.min(m*b,300);return r-S*((f+p*x*g)*Math.sinh(C)+m*g*Math.cosh(C))/m}}return{calculatedDuration:d&&u||null,next:m=>{const b=v(m);if(d)o.done=m>=u;else{let S=0;p<1&&(S=m===0?U(f):li(v,m,b));const C=Math.abs(S)<=n,O=Math.abs(r-b)<=e;o.done=C&&O}return o.value=o.done?r:b,o}}}function Mn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},f=w=>a!==void 0&&w<a||l!==void 0&&w>l,p=w=>a===void 0?l:l===void 0||Math.abs(a-w)<Math.abs(l-w)?a:l;let g=n*e;const x=h+g,y=o===void 0?x:o(x);y!==x&&(g=y-h);const v=w=>-g*Math.exp(-w/s),m=w=>y+v(w),b=w=>{const j=v(w),I=m(w);d.done=Math.abs(j)<=c,d.value=d.done?y:I};let S,C;const O=w=>{f(d.value)&&(S=w,C=ci({keyframes:[d.value,p(d.value)],velocity:li(m,w,d.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return O(0),{calculatedDuration:null,next:w=>{let j=!1;return!C&&S===void 0&&(j=!0,b(w),O(w)),S!==void 0&&w>=S?C.next(w-S):(!j&&b(w),d)}}}const gr=Lt(.42,0,1,1),yr=Lt(0,0,.58,1),ui=Lt(.42,0,.58,1),vr=t=>Array.isArray(t)&&typeof t[0]!="number",He=t=>Array.isArray(t)&&typeof t[0]=="number",Rn={linear:E,easeIn:gr,easeInOut:ui,easeOut:yr,circIn:Ne,circInOut:Ks,circOut:$s,backIn:Ie,backInOut:_s,backOut:Ns,anticipate:Us},Dn=t=>{if(He(t)){Y(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,s,i]=t;return Lt(e,n,s,i)}else if(typeof t=="string")return Y(Rn[t]!==void 0,`Invalid easing type '${t}'`),Rn[t];return t},xr=(t,e)=>n=>e(t(n)),H=(...t)=>t.reduce(xr),mt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},V=(t,e,n)=>t+(e-t)*n;function le(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 Tr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=le(l,a,t+1/3),r=le(l,a,t),o=le(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function $t(t,e){return n=>n>0?e:t}const ce=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Pr=[Pe,ot,ct],br=t=>Pr.find(e=>e.test(t));function En(t){const e=br(t);if(yt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===ct&&(n=Tr(n)),n}const Ln=(t,e)=>{const n=En(t),s=En(e);if(!n||!s)return $t(t,e);const i={...n};return r=>(i.red=ce(n.red,s.red,r),i.green=ce(n.green,s.green,r),i.blue=ce(n.blue,s.blue,r),i.alpha=V(n.alpha,s.alpha,r),ot.transform(i))},we=new Set(["none","hidden"]);function Sr(t,e){return we.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function wr(t,e){return n=>V(t,e,n)}function qe(t){return typeof t=="number"?wr:typeof t=="string"?_e(t)?$t:L.test(t)?Ln:Cr:Array.isArray(t)?hi:typeof t=="object"?L.test(t)?Ln:Ar:$t}function hi(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>qe(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Ar(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=qe(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Vr(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],a=t.indexes[o][i[o]],l=(n=t.values[a])!==null&&n!==void 0?n:0;s[r]=l,i[o]++}return s}const Cr=(t,e)=>{const n=Q.createTransformer(e),s=Rt(t),i=Rt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?we.has(t)&&!i.values.length||we.has(e)&&!s.values.length?Sr(t,e):H(hi(Vr(s,i),i.values),n):(yt(!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.`),$t(t,e))};function di(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?V(t,e,n):qe(t)(t,e)}function Mr(t,e,n){const s=[],i=n||di,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||E:e;a=H(l,a)}s.push(a)}return s}function Rr(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(Y(r===e.length,"Both input and output ranges must be the same length"),r===1)return()=>e[0];if(r===2&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=Mr(e,s,i),a=o.length,l=c=>{let u=0;if(a>1)for(;u<t.length-2&&!(c<t[u+1]);u++);const h=mt(t[u],t[u+1],c);return o[u](h)};return n?c=>l(J(t[0],t[r-1],c)):l}function Dr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=mt(0,e,s);t.push(V(n,1,i))}}function Er(t){const e=[0];return Dr(e,t.length-1),e}function Lr(t,e){return t.map(n=>n*e)}function Br(t,e){return t.map(()=>e||ui).splice(0,t.length-1)}function Kt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=vr(s)?s.map(Dn):Dn(s),r={done:!1,value:e[0]},o=Lr(n&&n.length===e.length?n:Er(e),t),a=Rr(o,e,{ease:Array.isArray(i)?i:Br(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const Bn=2e4;function kr(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Bn;)e+=n,s=t.next(e);return e>=Bn?1/0:e}const Fr=t=>{const e=({timestamp:n})=>t(n);return{start:()=>A.update(e,!0),stop:()=>Z(e),now:()=>D.isProcessing?D.timestamp:K.now()}},Or={decay:Mn,inertia:Mn,tween:Kt,keyframes:Kt,spring:ci},jr=t=>t/100;class Ye extends ri{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:r}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Ue,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(r,a,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,a=ze(n)?n:Or[n]||Kt;let l,c;a!==Kt&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&Y(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),l=H(jr,di(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});r==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=kr(u));const{calculatedDuration:h}=u,d=h+i,f=d*(s+1)-i;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:d,totalDuration:f}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:w}=this.options;return{done:!0,value:w[w.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:h}=s;if(this.startTime===null)return r.next(0);const{delay:d,repeat:f,repeatType:p,repeatDelay:g,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const y=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?y<0:y>u;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let m=this.currentTime,b=r;if(f){const w=Math.min(this.currentTime,u)/h;let j=Math.floor(w),I=w%1;!I&&w>=1&&(I=1),I===1&&j--,j=Math.min(j,f+1),!!(j%2)&&(p==="reverse"?(I=1-I,g&&(I-=g/h)):p==="mirror"&&(b=o)),m=J(0,1,I)*h}const S=v?{done:!1,value:l[0]}:b.next(m);a&&(S.value=a(S.value));let{done:C}=S;!v&&c!==null&&(C=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return O&&i!==void 0&&(S.value=Jt(l,this.options,i)),x&&x(S.value),O&&this.finish(),S}get duration(){const{resolved:e}=this;return e?z(e.calculatedDuration):0}get time(){return z(this.currentTime)}set time(e){e=U(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=z(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Fr,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Ir=new Set(["opacity","clipPath","filter","transform"]),Nr=10,_r=(t,e)=>{let n="";const s=Math.max(Math.round(e/Nr),2);for(let i=0;i<s;i++)n+=t(mt(0,s-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function Xe(t){let e;return()=>(e===void 0&&(e=t()),e)}const Ur={linearEasing:void 0};function $r(t,e){const n=Xe(t);return()=>{var s;return(s=Ur[e])!==null&&s!==void 0?s:n()}}const Wt=$r(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function fi(t){return!!(typeof t=="function"&&Wt()||!t||typeof t=="string"&&(t in Ae||Wt())||He(t)||Array.isArray(t)&&t.every(fi))}const bt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Ae={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bt([0,.65,.55,1]),circOut:bt([.55,0,1,.45]),backIn:bt([.31,.01,.66,-.59]),backOut:bt([.33,1.53,.69,.99])};function pi(t,e){if(t)return typeof t=="function"&&Wt()?_r(t,e):He(t)?bt(t):Array.isArray(t)?t.map(n=>pi(n,e)||Ae.easeOut):Ae[t]}function Kr(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=pi(a,i);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:s,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}function kn(t,e){t.timeline=e,t.onfinish=null}const Wr=Xe(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Gt=10,Gr=2e4;function zr(t){return ze(t.type)||t.type==="spring"||!fi(t.ease)}function Hr(t,e){const n=new Ye({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let r=0;for(;!s.done&&r<Gr;)s=n.sample(r),i.push(s.value),r+=Gt;return{times:void 0,keyframes:i,duration:r-Gt,ease:"linear"}}const mi={anticipate:Us,backInOut:_s,circInOut:Ks};function qr(t){return t in mi}class Fn extends ri{constructor(e){super(e);const{name:n,motionValue:s,element:i,keyframes:r}=this.options;this.resolver=new oi(r,(o,a)=>this.onKeyframesResolved(o,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:i=300,times:r,ease:o,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(typeof o=="string"&&Wt()&&qr(o)&&(o=mi[o]),zr(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,element:g,...x}=this.options,y=Hr(e,x);e=y.keyframes,e.length===1&&(e[1]=e[0]),i=y.duration,r=y.times,o=y.ease,a="keyframes"}const h=Kr(l.owner.current,c,e,{...this.options,duration:i,times:r,ease:o});return h.startTime=u??this.calcStartTime(),this.pendingTimeline?(kn(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:d}=this.options;l.set(Jt(e,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:r,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return z(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return z(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=U(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return E;const{animation:s}=n;kn(s,e)}return E}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:r,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:h,element:d,...f}=this.options,p=new Ye({...f,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),g=U(this.time);c.setWithVelocity(p.sample(g-Gt).value,p.sample(g).value,Gt)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:o,type:a}=e;return Wr()&&s&&Ir.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}const Yr=Xe(()=>window.ScrollTimeline!==void 0);class Xr{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e,n){const s=this.animations.map(i=>Yr()&&i.attachTimeline?i.attachTimeline(e):n(i));return()=>{s.forEach((i,r)=>{i&&i(),this.animations[r].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")}}function Zr({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Ze=(t,e,n,s={},i,r)=>o=>{const a=je(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-U(l);let 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:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Zr(a)||(u={...u,...mo(t,u)}),u.duration&&(u.duration=U(u.duration)),u.repeatDelay&&(u.repeatDelay=U(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(h=!0)),h&&!r&&e.get()!==void 0){const d=Jt(u.keyframes,a);if(d!==void 0)return A.update(()=>{u.onUpdate(d),u.onComplete()}),new Xr([])}return!r&&Fn.supports(u)?new Fn(u):new Ye(u)},Jr=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Qr=t=>ve(t)?t[t.length-1]||0:t;function Je(t,e){t.indexOf(e)===-1&&t.push(e)}function Qe(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class tn{constructor(){this.subscriptions=[]}add(e){return Je(this.subscriptions,e),()=>Qe(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const On=30,ta=t=>!isNaN(parseFloat(t));class ea{constructor(e,n={}){this.version="11.11.17",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=K.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&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=K.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ta(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Yt(!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 tn);const s=this.events[e].add(n);return e==="change"?()=>{s(),A.read(()=>{this.events.change.getSize()||this.stop()})}:s}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,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}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=K.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>On)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,On);return ai(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 Dt(t,e){return new ea(t,e)}function na(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Dt(n))}function sa(t,e){const n=Zt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Qr(r[o]);na(t,o,a)}}const en=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ia="framerAppearId",gi="data-"+en(ia);function yi(t){return t.props[gi]}const B=t=>!!(t&&t.getVelocity);function oa(t){return!!(B(t)&&t.add)}function Ve(t,e){const n=t.getValue("willChange");if(oa(n))return n.add(e)}function ra({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function vi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const d=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),f=l[h];if(f===void 0||u&&ra(u,h))continue;const p={delay:n,...je(o||{},h)};let g=!1;if(window.MotionHandoffAnimation){const y=yi(t);if(y){const v=window.MotionHandoffAnimation(y,h,A);v!==null&&(p.startTime=v,g=!0)}}Ve(t,h),d.start(Ze(h,d,f,t.shouldReduceMotion&&at.has(h)?{type:!1}:p,t,g));const x=d.animation;x&&c.push(x)}return a&&Promise.all(c).then(()=>{A.update(()=>{a&&sa(t,a)})}),c}function Ce(t,e,n={}){var s;const i=Zt(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(vi(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:d}=r;return aa(t,e,u+c,h,d,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[c,u]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function aa(t,e,n=0,s=0,i=1,r){const o=[],a=(t.variantChildren.size-1)*s,l=i===1?(c=0)=>c*s:(c=0)=>a-c*s;return Array.from(t.variantChildren).sort(la).forEach((c,u)=>{c.notify("AnimationStart",e),o.push(Ce(c,e,{...r,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(o)}function la(t,e){return t.sortNodePosition(e)}function ca(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Ce(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Ce(t,e,n);else{const i=typeof e=="function"?Zt(t,e,n.custom):e;s=Promise.all(vi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const ua=Oe.length;function xi(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?xi(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<ua;n++){const s=Oe[n],i=t.props[s];(Ct(i)||i===!1)&&(e[s]=i)}return e}const ha=[...Fe].reverse(),da=Fe.length;function fa(t){return e=>Promise.all(e.map(({animation:n,options:s})=>ca(t,n,s)))}function pa(t){let e=fa(t),n=jn(),s=!0;const i=l=>(c,u)=>{var h;const d=Zt(t,u,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(d){const{transition:f,transitionEnd:p,...g}=d;c={...c,...g,...p}}return c};function r(l){e=l(t)}function o(l){const{props:c}=t,u=xi(t.parent)||{},h=[],d=new Set;let f={},p=1/0;for(let x=0;x<da;x++){const y=ha[x],v=n[y],m=c[y]!==void 0?c[y]:u[y],b=Ct(m),S=y===l?v.isActive:null;S===!1&&(p=x);let C=m===u[y]&&m!==c[y]&&b;if(C&&s&&t.manuallyAnimateOnMount&&(C=!1),v.protectedKeys={...f},!v.isActive&&S===null||!m&&!v.prevProp||Xt(m)||typeof m=="boolean")continue;const O=ma(v.prevProp,m);let w=O||y===l&&v.isActive&&!C&&b||x>p&&b,j=!1;const I=Array.isArray(m)?m:[m];let lt=I.reduce(i(y),{});S===!1&&(lt={});const{prevResolvedValues:pn={}}=v,ro={...pn,...lt},mn=k=>{w=!0,d.has(k)&&(j=!0,d.delete(k)),v.needsAnimating[k]=!0;const W=t.getValue(k);W&&(W.liveStyle=!1)};for(const k in ro){const W=lt[k],se=pn[k];if(f.hasOwnProperty(k))continue;let ie=!1;ve(W)&&ve(se)?ie=!ks(W,se):ie=W!==se,ie?W!=null?mn(k):d.add(k):W!==void 0&&d.has(k)?mn(k):v.protectedKeys[k]=!0}v.prevProp=m,v.prevResolvedValues=lt,v.isActive&&(f={...f,...lt}),s&&t.blockInitialAnimation&&(w=!1),w&&(!(C&&O)||j)&&h.push(...I.map(k=>({animation:k,options:{type:y}})))}if(d.size){const x={};d.forEach(y=>{const v=t.getBaseTarget(y),m=t.getValue(y);m&&(m.liveStyle=!0),x[y]=v??null}),h.push({animation:x})}let g=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,g?e(h):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(d=>{var f;return(f=d.animationState)===null||f===void 0?void 0:f.setActive(l,c)}),n[l].isActive=c;const h=o(l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=jn(),s=!0}}}function ma(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ks(e,t):!1}function et(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jn(){return{animate:et(!0),whileInView:et(),whileHover:et(),whileTap:et(),whileDrag:et(),whileFocus:et(),exit:et()}}class tt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ga extends tt{constructor(e){super(e),e.animationState||(e.animationState=pa(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Xt(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(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let ya=0;class va extends tt{constructor(){super(...arguments),this.id=ya++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const xa={animation:{Feature:ga},exit:{Feature:va}},Ti=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Qt(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const Ta=t=>e=>Ti(e)&&t(e,Qt(e));function G(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function q(t,e,n,s){return G(t,e,Ta(n),s)}const In=(t,e)=>Math.abs(t-e);function Pa(t,e){const n=In(t.x,e.x),s=In(t.y,e.y);return Math.sqrt(n**2+s**2)}class Pi{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=he(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=Pa(h.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:p}=h,{timestamp:g}=D;this.history.push({...p,timestamp:g});const{onStart:x,onMove:y}=this.handlers;d||(x&&x(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ue(d,this.transformPagePoint),A.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.end();const{onEnd:f,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=he(h.type==="pointercancel"?this.lastMoveEventInfo:ue(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(h,x),p&&p(h,x)},!Ti(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const o=Qt(e),a=ue(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=D;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(e,he(a,this.history)),this.removeListeners=H(q(this.contextWindow,"pointermove",this.handlePointerMove),q(this.contextWindow,"pointerup",this.handlePointerUp),q(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Z(this.updatePoint)}}function ue(t,e){return e?{point:e(t.point)}:t}function Nn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function he({point:t},e){return{point:t,delta:Nn(t,bi(e)),offset:Nn(t,ba(e)),velocity:Sa(e,.1)}}function ba(t){return t[0]}function bi(t){return t[t.length-1]}function Sa(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=bi(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>U(e)));)n--;if(!s)return{x:0,y:0};const r=z(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Si(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const _n=Si("dragHorizontal"),Un=Si("dragVertical");function wi(t){let e=!1;if(t==="y")e=Un();else if(t==="x")e=_n();else{const n=_n(),s=Un();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function Ai(){const t=wi(!0);return t?(t(),!1):!0}function ut(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const Vi=1e-4,wa=1-Vi,Aa=1+Vi,Ci=.01,Va=0-Ci,Ca=0+Ci;function F(t){return t.max-t.min}function Ma(t,e,n){return Math.abs(t-e)<=n}function $n(t,e,n,s=.5){t.origin=s,t.originPoint=V(e.min,e.max,t.origin),t.scale=F(n)/F(e),t.translate=V(n.min,n.max,t.origin)-t.originPoint,(t.scale>=wa&&t.scale<=Aa||isNaN(t.scale))&&(t.scale=1),(t.translate>=Va&&t.translate<=Ca||isNaN(t.translate))&&(t.translate=0)}function At(t,e,n,s){$n(t.x,e.x,n.x,s?s.originX:void 0),$n(t.y,e.y,n.y,s?s.originY:void 0)}function Kn(t,e,n){t.min=n.min+e.min,t.max=t.min+F(e)}function Ra(t,e,n){Kn(t.x,e.x,n.x),Kn(t.y,e.y,n.y)}function Wn(t,e,n){t.min=e.min-n.min,t.max=t.min+F(e)}function Vt(t,e,n){Wn(t.x,e.x,n.x),Wn(t.y,e.y,n.y)}function Da(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?V(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?V(n,t,s.max):Math.min(t,n)),t}function Gn(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 Ea(t,{top:e,left:n,bottom:s,right:i}){return{x:Gn(t.x,n,i),y:Gn(t.y,e,s)}}function zn(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function La(t,e){return{x:zn(t.x,e.x),y:zn(t.y,e.y)}}function Ba(t,e){let n=.5;const s=F(t),i=F(e);return i>s?n=mt(e.min,e.max-s,t.min):s>i&&(n=mt(t.min,t.max-i,e.min)),J(0,1,n)}function ka(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 Me=.35;function Fa(t=Me){return t===!1?t=0:t===!0&&(t=Me),{x:Hn(t,"left","right"),y:Hn(t,"top","bottom")}}function Hn(t,e,n){return{min:qn(t,e),max:qn(t,n)}}function qn(t,e){return typeof t=="number"?t:t[e]||0}const Yn=()=>({translate:0,scale:1,origin:0,originPoint:0}),ht=()=>({x:Yn(),y:Yn()}),Xn=()=>({min:0,max:0}),M=()=>({x:Xn(),y:Xn()});function _(t){return[t("x"),t("y")]}function Mi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Oa({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function ja(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function de(t){return t===void 0||t===1}function Re({scale:t,scaleX:e,scaleY:n}){return!de(t)||!de(e)||!de(n)}function st(t){return Re(t)||Ri(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ri(t){return Zn(t.x)||Zn(t.y)}function Zn(t){return t&&t!=="0%"}function zt(t,e,n){const s=t-n,i=e*s;return n+i}function Jn(t,e,n,s,i){return i!==void 0&&(t=zt(t,i,s)),zt