FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
surerank
/
build
/
vendor-54b208fe
Edit File: index.js
"use strict";(globalThis.webpackChunksurerank=globalThis.webpackChunksurerank||[]).push([[7938],{35997(t,e,i){i.d(e,{m:()=>x});var s=i(8104),n=i(77331),o=i(41533),a=i(79890),r=i(29746),l=i(23558),h=i(27670),c=i(36804),u=i(83202),d=i(69125),m=i(20049),p=i(33075);const f=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,y={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:f([0,.65,.55,1]),circOut:f([.55,0,1,.45]),backIn:f([.31,.01,.66,-.59]),backOut:f([.33,1.53,.69,.99])};function v(t,e){return t?"function"===typeof t?(0,m.n)()?(0,p.K)(t,e):"ease-out":(0,d.D)(t)?f(t):Array.isArray(t)?t.map(t=>v(t,e)||y.easeOut):y[t]:void 0}function g(t,e,i,{delay:s=0,duration:n=300,repeat:o=0,repeatType:a="loop",ease:r="easeOut",times:l}={},h=void 0){const d={[e]:i};l&&(d.offset=l);const m=v(r,n);Array.isArray(m)&&(d.easing=m),u.Q.value&&c.q.waapi++;const p={delay:s,duration:n,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};h&&(p.pseudoElement=h);const f=t.animate(d,p);return u.Q.value&&f.finished.finally(()=>{c.q.waapi--}),f}var T=i(63652);class x extends h.q{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:h,onComplete:c}=t;this.isPseudoElement=Boolean(o),this.allowFlatten=r,this.options=t,(0,s.V)("string"!==typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const u=function({type:t,...e}){return(0,T.W)(t)&&(0,m.n)()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=g(e,i,n,u,o),!1===u.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const t=(0,l.X)(n,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(t):(0,a.e)(e,i,t),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return(0,n.X)(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+(0,n.X)(t)}get time(){return(0,n.X)(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,n.f)(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&(0,r.J)()?(this.animation.timeline=t,o.l):e(this)}}},63652(t,e,i){function s(t){return"function"===typeof t&&"applyToOptions"in t}i.d(e,{W:()=>s})},67501(t,e,i){i.d(e,{f:()=>at});var s=i(77331),n=i(98731),o=i(41533),a=i(91833),r=i(2718),l=i(17046),h=i(36804),c=i(97755),u=i(1207);const d=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>u.Gt.update(e,t),stop:()=>(0,u.WG)(e),now:()=>u.uv.isProcessing?u.uv.timestamp:a.k.now()}};var m=i(33075);const p=2e4;function f(t){let e=0,i=t.next(e);for(;!i.done&&e<p;)e+=50,i=t.next(e);return e>=p?1/0:e}var y=i(16947);function v(t,e,i){const s=Math.max(e-5,0);return(0,y.f)(i-t(s),e-s)}var g=i(8104);function T(t,e){return t*Math.sqrt(1-e*e)}const x=["duration","bounce"],w=["stiffness","damping","mass"];function P(t,e){return e.some(e=>void 0!==t[e])}function S(t=.3,e=.3){const i="object"!==typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:o}=i;const a=i.keyframes[0],r=i.keyframes[i.keyframes.length-1],h={done:!1,value:a},{stiffness:c,damping:u,mass:d,duration:y,velocity:S,isResolvedFromDuration:k}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!P(t,w)&&P(t,x))if(t.visualDuration){const i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*(0,l.q)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:n}}else{const i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let o,a;(0,g.$)(t<=(0,s.f)(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-e;r=(0,l.q)(.05,1,r),t=(0,l.q)(.01,10,(0,s.X)(t)),r<1?(o=e=>{const s=e*r,n=s*t;return.001-(s-i)/T(e,r)*Math.exp(-n)},a=e=>{const s=e*r*t,n=s*i+i,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-s),h=T(Math.pow(e,2),r);return(.001-o(e)>0?-1:1)*((n-a)*l)/h}):(o=e=>Math.exp(-e*t)*((e-i)*t+1)-.001,a=e=>Math.exp(-e*t)*(t*t*(i-e)));const h=function(t,e,i){let s=i;for(let n=1;n<12;n++)s-=t(s)/e(s);return s}(o,a,5/t);if(t=(0,s.f)(t),isNaN(h))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(h,2)*n;return{stiffness:e,damping:2*r*Math.sqrt(n*e),duration:t}}}(t);e={...e,...i,mass:1},e.isResolvedFromDuration=!0}return e}({...i,velocity:-(0,s.X)(i.velocity||0)}),D=S||0,b=u/(2*Math.sqrt(c*d)),A=r-a,R=(0,s.X)(Math.sqrt(c/d)),E=Math.abs(A)<5;let V;if(n||(n=E?.01:2),o||(o=E?.005:.5),b<1){const t=T(R,b);V=e=>{const i=Math.exp(-b*R*e);return r-i*((D+b*R*A)/t*Math.sin(t*e)+A*Math.cos(t*e))}}else if(1===b)V=t=>r-Math.exp(-R*t)*(A+(D+R*A)*t);else{const t=R*Math.sqrt(b*b-1);V=e=>{const i=Math.exp(-b*R*e),s=Math.min(t*e,300);return r-i*((D+b*R*A)*Math.sinh(s)+t*A*Math.cosh(s))/t}}const M={calculatedDuration:k&&y||null,next:t=>{const e=V(t);if(k)h.done=t>=y;else{let i=0===t?D:0;b<1&&(i=0===t?(0,s.f)(D):v(V,t,e));const a=Math.abs(i)<=n,l=Math.abs(r-e)<=o;h.done=a&&l}return h.value=h.done?r:e,h},toString:()=>{const t=Math.min(f(M),p),e=(0,m.K)(e=>M.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return M}function k({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:o=500,modifyTarget:a,min:r,max:l,restDelta:h=.5,restSpeed:c}){const u=t[0],d={done:!1,value:u},m=t=>void 0===r?l:void 0===l||Math.abs(r-t)<Math.abs(l-t)?r:l;let p=i*e;const f=u+p,y=void 0===a?f:a(f);y!==f&&(p=y-u);const g=t=>-p*Math.exp(-t/s),T=t=>y+g(t),x=t=>{const e=g(t),i=T(t);d.done=Math.abs(e)<=h,d.value=d.done?y:i};let w,P;const k=t=>{var e;e=d.value,(void 0!==r&&e<r||void 0!==l&&e>l)&&(w=t,P=S({keyframes:[d.value,m(d.value)],velocity:v(T,t,d.value),damping:n,stiffness:o,restDelta:h,restSpeed:c}))};return k(0),{calculatedDuration:null,next:t=>{let e=!1;return P||void 0!==w||(e=!0,x(t),k(t)),void 0!==w&&t>=w?P.next(t-w):(!e&&x(t),d)}}}S.applyToOptions=t=>{const e=function(t,e=100,i){const n=i({...t,keyframes:[0,e]}),o=Math.min(f(n),p);return{type:"keyframes",ease:t=>n.next(o*t).value/e,duration:(0,s.X)(o)}}(t,100,S);return t.ease=e.ease,t.duration=(0,s.f)(e.duration),t.type="keyframes",t};var D=i(33583),b=i(23687),A=i(5979),R=i(55219),E=i(86896),V=i(65744);function M(t,e){return t.map(()=>e||D.am).splice(0,t.length-1)}function j({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){const n=(0,b.h)(s)?s.map(A.K):(0,A.K)(s),o={done:!1,value:e[0]},a=function(t,e){return t.map(t=>t*e)}(i&&i.length===e.length?i:function(t){const e=[0];return function(t,e){const i=t[t.length-1];for(let s=1;s<=e;s++){const n=(0,E.q)(0,e,s);t.push((0,V.k)(i,1,n))}}(e,t.length-1),e}(e),t),r=(0,R.G)(a,e,{ease:Array.isArray(n)?n:M(e,n)});return{calculatedDuration:t,next:e=>(o.value=r(e),o.done=e>=t,o)}}var L=i(23558);const C={decay:k,inertia:k,tween:j,keyframes:j,spring:S};function B(t){"string"===typeof t.type&&(t.type=C[t.type])}var F=i(27670);const U=t=>t/100;class O extends F.q{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==a.k.now()&&this.tick(a.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},h.q.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;B(t);const{type:e=j,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:o=0}=t;let{keyframes:a}=t;const l=e||j;l!==j&&"number"!==typeof a[0]&&(this.mixKeyframes=(0,r.F)(U,(0,c.j)(a[0],a[1])),a=[0,100]);const h=l({...t,keyframes:a});"mirror"===n&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),null===h.calculatedDuration&&(h.calculatedDuration=f(h));const{calculatedDuration:u}=h;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=h}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;this.currentTime=null!==this.holdTime?this.holdTime:e}tick(t,e=!1){const{generator:i,totalDuration:s,mixKeyframes:n,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:r}=this;if(null===this.startTime)return i.next(0);const{delay:h=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:m,type:p,onUpdate:f,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const v=this.currentTime-h*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let T=this.currentTime,x=i;if(u){const t=Math.min(this.currentTime,s)/a;let e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,e=Math.min(e,u+1),Boolean(e%2)&&("reverse"===d?(i=1-i,m&&(i-=m/a)):"mirror"===d&&(x=o)),T=(0,l.q)(0,1,i)*a}const w=g?{done:!1,value:c[0]}:x.next(T);n&&(w.value=n(w.value));let{done:P}=w;g||null===r||(P=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return S&&p!==k&&(w.value=(0,L.X)(c,this.options,y,this.speed)),f&&f(w.value),S&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return(0,s.X)(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+(0,s.X)(t)}get time(){return(0,s.X)(this.currentTime)}set time(t){t=(0,s.f)(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(a.k.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,s.X)(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=d,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();const i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(a.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,h.q.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}var I=i(31530),K=i(35997),$=i(84505),q=i(71108),W=i(94312);const X={anticipate:$.b,backInOut:q.ZZ,circInOut:W.tn};class N extends K.m{constructor(t){var e;"string"===typeof(e=t).ease&&e.ease in X&&(e.ease=X[e.ease]),B(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:i,onComplete:s,element:n,...o}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);const r=new O({...o,autoplay:!1}),h=Math.max(10,a.k.now()-this.startTime),c=(0,l.q)(0,10,h-10);e.setWithVelocity(r.sample(Math.max(0,h-c)).value,r.sample(h).value,c),r.stop()}}var H=i(63652),Q=i(85933);const G=(t,e)=>"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!Q.f.test(t)&&"0"!==t||t.startsWith("url(")));function z(t){t.duration=0,t.type="keyframes"}var Y=i(54435);const _=new Set(["opacity","clipPath","filter","transform"]),Z=(0,Y.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class J extends F.q{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:o="loop",keyframes:r,name:l,motionValue:h,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=a.k.now();const d={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:o,name:l,motionValue:h,element:c,...u};this.keyframeResolver=new(c?.KeyframeResolver||I.h)(r,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),l,h,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){this.keyframeResolver=void 0;const{name:r,type:l,velocity:h,delay:c,isHandoff:u,onUpdate:d}=i;this.resolvedAt=a.k.now(),function(t,e,i,s){const n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],a=G(n,e),r=G(o,e);return(0,g.$)(a===r,`You are trying to animate ${e} from "${n}" to "${o}". "${a?o:n}" is not an animatable value.`,"value-not-animatable"),!(!a||!r)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||(0,H.W)(i))&&s)}(t,r,l,h)||(!n.W.instantAnimations&&c||d?.((0,L.X)(t,i,e)),t[0]=t[t.length-1],z(i),i.repeat=0);const m={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=!u&&function(t){const{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:o,type:a}=t,r=e?.owner?.current;if(!(r instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:h}=e.owner.getProps();return Z()&&i&&_.has(i)&&("transform"!==i||!h)&&!l&&!s&&"mirror"!==n&&0!==o&&"inertia"!==a}(m),f=m.motionValue?.owner?.current,y=p?new N({...m,element:f}):new O(m);y.finished.then(()=>{this.notifyFinished()}).catch(o.l),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,I.q)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}var tt=i(35835),et=i(92518);const it={type:"spring",stiffness:500,damping:25,restSpeed:10},st={type:"keyframes",duration:.8},nt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ot=t=>null!==t,at=(t,e,i,o={},a,r)=>l=>{const h=(0,tt.r)(o,t)||{},c=h.delay||o.delay||0;let{elapsed:d=0}=o;d-=(0,s.f)(c);const m={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...h,delay:-d,onUpdate:t=>{e.set(t),h.onUpdate&&h.onUpdate(t)},onComplete:()=>{l(),h.onComplete&&h.onComplete()},name:t,motionValue:e,element:r?void 0:a};(function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:o,repeatType:a,repeatDelay:r,from:l,elapsed:h,...c}){return!!Object.keys(c).length})(h)||Object.assign(m,((t,{keyframes:e})=>e.length>2?st:et.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:it:nt)(t,m)),m.duration&&(m.duration=(0,s.f)(m.duration)),m.repeatDelay&&(m.repeatDelay=(0,s.f)(m.repeatDelay)),void 0!==m.from&&(m.keyframes[0]=m.from);let p=!1;if((!1===m.type||0===m.duration&&!m.repeatDelay)&&(z(m),0===m.delay&&(p=!0)),(n.W.instantAnimations||n.W.skipAnimations||a?.shouldSkipAnimations)&&(p=!0,z(m),m.delay=0),m.allowFlatten=!h.type&&!h.ease,p&&!r&&void 0!==e.get()){const t=function(t,{repeat:e,repeatType:i="loop"},s){const n=t.filter(ot),o=e&&"loop"!==i&&e%2===1?0:n.length-1;return o&&void 0!==s?s:n[o]}(m.keyframes,h);if(void 0!==t)return void u.Gt.update(()=>{m.onUpdate(t),m.onComplete()})}return h.isSync?new O(m):new J(m)}},20258(t,e,i){i.d(e,{_:()=>y});var s=i(11998),n=i(35835),o=i(38711),a=i(26571),r=i(58207),l=i(58222),h=i(43883),c=i(67501),u=i(1207);function d({protectedKeys:t,needsAnimating:e},i){const s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}function m(t,e,{delay:i=0,transitionOverride:s,type:m}={}){let{transition:p,transitionEnd:f,...y}=e;const v=t.getDefaultTransition();p=p?(0,o.K)(p,v):v;const g=p?.reduceMotion;s&&(p=s);const T=[],x=m&&t.animationState&&t.animationState.getState()[m];for(const o in y){const e=t.getValue(o,t.latestValues[o]??null),s=y[o];if(void 0===s||x&&d(x,o))continue;const r={delay:i,...(0,n.r)(p||{},o)},m=e.get();if(void 0!==m&&!e.isAnimating&&!Array.isArray(s)&&s===m&&!r.velocity)continue;let f=!1;if(window.MotionHandoffAnimation){const e=(0,h.P)(t);if(e){const t=window.MotionHandoffAnimation(e,o,u.Gt);null!==t&&(r.startTime=t,f=!0)}}(0,l.g)(t,o),e.start((0,c.f)(o,e,s,(g??t.shouldReduceMotion)&&a.$.has(o)?{type:!1}:r,t,f));const v=e.animation;v&&T.push(v)}if(f){const e=()=>u.Gt.update(()=>{f&&(0,r.U)(t,f)});T.length?Promise.all(T).then(e):e()}return T}var p=i(21419);function f(t,e,i={}){const n=(0,s.K)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(o=i.transitionOverride);const a=n?()=>Promise.all(m(t,n,i)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(s=0)=>{const{delayChildren:n=0,staggerChildren:a,staggerDirection:r}=o;return function(t,e,i=0,s=0,n=0,o=1,a){const r=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),r.push(f(l,e,{...a,delay:i+("function"===typeof s?0:s)+(0,p.L)(t.variantChildren,l,s,n,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(r)}(t,e,s,n,a,r,i)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[a,r]:[r,a];return t().then(()=>e())}return Promise.all([a(),r(i.delay)])}function y(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map(e=>f(t,e,i));n=Promise.all(s)}else if("string"===typeof e)n=f(t,e,i);else{const o="function"===typeof e?(0,s.K)(t,e,i.custom):e;n=Promise.all(m(t,o,i))}return n.then(()=>{t.notify("AnimationComplete",e)})}},460(t,e,i){i.d(e,{K:()=>v});var s=i(26571),n=i(98008),o=i(8104),a=i(9902),r=i(22846);const l=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function h(t,e,i=1){(0,o.V)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[s,n]=function(t){const e=l.exec(t);if(!e)return[,];const[,i,s,n]=e;return[`--${i??s}`,n]}(t);if(!s)return;const c=window.getComputedStyle(e).getPropertyValue(s);if(c){const t=c.trim();return(0,a.i)(t)?parseFloat(t):t}return(0,r.pG)(n)?h(n,e,i+1):n}var c=i(31530),u=i(11602);function d(t){return"number"===typeof t?0===t:null===t||"none"===t||"0"===t||(0,u.$)(t)}var m=i(85933),p=i(72881);const f=new Set(["auto","none","0"]);var y=i(96488);class v extends c.h{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let s=0;s<t.length;s++){let i=t[s];if("string"===typeof i&&(i=i.trim(),(0,r.pG)(i))){const n=h(i,e.current);void 0!==n&&(t[s]=n),s===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!s.$.has(i)||2!==t.length)return;const[o,a]=t,l=(0,n.n)(o),c=(0,n.n)(a);if((0,r.rm)(o)!==(0,r.rm)(a)&&y.Hr[i])this.needsMeasurement=!0;else if(l!==c)if((0,y.E4)(l)&&(0,y.E4)(c))for(let s=0;s<t.length;s++){const e=t[s];"string"===typeof e&&(t[s]=parseFloat(e))}else y.Hr[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,i=[];for(let s=0;s<t.length;s++)(null===t[s]||d(t[s]))&&i.push(s);i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){const e=t[n];"string"===typeof e&&!f.has(e)&&(0,m.V)(e).values.length&&(s=t[n]),n++}if(s&&i)for(const o of e)t[o]=(0,p.J)(i,s)}(t,i,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=y.Hr[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){const{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);const n=i.length-1,o=i[n];i[n]=y.Hr[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}},31530(t,e,i){i.d(e,{h:()=>d,q:()=>u});var s=i(96488),n=i(1207);const o=new Set;let a=!1,r=!1,l=!1;function h(){if(r){const t=Array.from(o).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{const e=(0,s.W9)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}r=!1,a=!1,o.forEach(t=>t.complete(l)),o.clear()}function c(){o.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(r=!0)})}function u(){l=!0,c(),h(),l=!1}class d{constructor(t,e,i,s,n,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(o.add(this),a||(a=!0,n.Gt.read(c),n.Gt.resolveKeyframes(h))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){const n=s?.get(),o=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){const s=i.readValue(e,o);void 0!==s&&null!==s&&(t[0]=s)}void 0===t[0]&&(t[0]=o),s&&void 0===n&&s.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),o.delete(this)}cancel(){"scheduled"===this.state&&(o.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}},23558(t,e,i){i.d(e,{X:()=>n});const s=t=>null!==t;function n(t,{repeat:e,repeatType:i="loop"},n,o=1){const a=t.filter(s),r=o<0||e&&"loop"!==i&&e%2===1?0:a.length-1;return r&&void 0!==n?n:a[r]}},96488(t,e,i){i.d(e,{E4:()=>r,Hr:()=>u,W9:()=>c});var s=i(32794),n=i(92518),o=i(39223),a=i(20538);const r=t=>t===o.ai||t===a.px,l=new Set(["x","y","z"]),h=n.U.filter(t=>!l.has(t));function c(t){const e=[];return h.forEach(i=>{const s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),e}const u={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>(0,s.ry)(e,"x"),y:(t,{transform:e})=>(0,s.ry)(e,"y")};u.translateX=u.x,u.translateY=u.y},38793(t,e,i){i.d(e,{n:()=>s});const s="data-"+(0,i(51647).I)("framerAppearId")},43883(t,e,i){i.d(e,{P:()=>n});var s=i(38793);function n(t){return t.props[s.n]}},27670(t,e,i){i.d(e,{q:()=>s});class s{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}},21419(t,e,i){function s(t,e,i,s=0,n=1){const o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,r=(a-1)*s;return"function"===typeof i?i(o,a):1===n?o*s:r-o*s}i.d(e,{L:()=>s})},35835(t,e,i){i.d(e,{r:()=>n});var s=i(38711);function n(t,e){const i=t?.[e]??t?.default??t;return i!==t?(0,s.K)(i,t):i}},22846(t,e,i){i.d(e,{j4:()=>n,pG:()=>a,rm:()=>l});const s=t=>e=>"string"===typeof e&&e.startsWith(t),n=s("--"),o=s("var(--"),a=t=>!!o(t)&&r.test(t.split("/*")[0].trim()),r=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function l(t){return"string"===typeof t&&t.split("/*")[0].includes("var(--")}},38711(t,e,i){function s(t,e){if(t?.inherit&&e){const{inherit:i,...s}=t;return{...e,...s}}return t}i.d(e,{K:()=>s})},15392(t,e,i){i.d(e,{M:()=>s});const s=new Set(["opacity","clipPath","filter","transform"])},33075(t,e,i){i.d(e,{K:()=>s});const s=(t,e,i=10)=>{let s="";const n=Math.max(Math.round(e/i),2);for(let o=0;o<n;o++)s+=Math.round(1e4*t(o/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`}},44447(t,e,i){function s(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}i.d(e,{k:()=>s})},58902(t,e,i){i.d(e,{I:()=>a});var s=i(98731);const n=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var o=i(83202);function a(t,e){let i=!1,a=!0;const r={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,h=n.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,n=!1,a=!1;const r=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},h=0;function c(e){r.has(e)&&(u.schedule(e),t()),h++,e(l)}const u={schedule:(t,e=!1,o=!1)=>{const a=o&&n?i:s;return e&&r.add(t),a.has(t)||a.add(t),t},cancel:t=>{s.delete(t),r.delete(t)},process:t=>{l=t,n?a=!0:(n=!0,[i,s]=[s,i],i.forEach(c),e&&o.Q.value&&o.Q.value.frameloop[e].push(h),h=0,i.clear(),n=!1,a&&(a=!1,u.process(t)))}};return u}(l,e?i:void 0),t),{}),{setup:c,read:u,resolveKeyframes:d,preUpdate:m,update:p,preRender:f,render:y,postRender:v}=h,g=()=>{const n=s.W.useManualTiming?r.timestamp:performance.now();i=!1,s.W.useManualTiming||(r.delta=a?1e3/60:Math.max(Math.min(n-r.timestamp,40),1)),r.timestamp=n,r.isProcessing=!0,c.process(r),u.process(r),d.process(r),m.process(r),p.process(r),f.process(r),y.process(r),v.process(r),r.isProcessing=!1,i&&e&&(a=!1,t(g))};return{schedule:n.reduce((e,s)=>{const n=h[s];return e[s]=(e,s=!1,o=!1)=>(i||(i=!0,a=!0,r.isProcessing||t(g)),n.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<n.length;e++)h[n[e]].cancel(t)},state:r,steps:h}}},1207(t,e,i){i.d(e,{Gt:()=>o,PP:()=>l,WG:()=>a,uv:()=>r});var s=i(41533),n=i(58902);const{schedule:o,cancel:a,state:r,steps:l}=(0,n.I)("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:s.l,!0)},66719(t,e,i){i.d(e,{k:()=>n});var s=i(58902);const{schedule:n}=(0,s.I)(queueMicrotask,!1)},91833(t,e,i){i.d(e,{k:()=>r});var s=i(98731),n=i(1207);let o;function a(){o=void 0}const r={now:()=>(void 0===o&&r.set(n.uv.isProcessing||s.W.useManualTiming?n.uv.timestamp:performance.now()),o),set:t=>{o=t,queueMicrotask(a)}}},83489(t,e,i){i.d(e,{D:()=>n,I:()=>s});const s={x:!1,y:!1};function n(){return s.x||s.y}},56257(t,e,i){i.d(e,{W:()=>n});var s=i(83489);function n(t){return"x"===t||"y"===t?s.I[t]?null:(s.I[t]=!0,()=>{s.I[t]=!1}):s.I.x||s.I.y?null:(s.I.x=s.I.y=!0,()=>{s.I.x=s.I.y=!1})}},83979(t,e,i){i.d(e,{P:()=>o});var s=i(83489),n=i(7916);function o(t,e,i={}){const[o,a,r]=(0,n.V)(t,i);return o.forEach(t=>{let i,n=!1,o=!1;const r=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",h)},l=t=>{n=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),o&&(o=!1,r(t))},h=t=>{"touch"!==t.pointerType&&(n?o=!0:r(t))};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||(0,s.D)())return;o=!1;const r=e(t,n);"function"===typeof r&&(i=r,t.addEventListener("pointerleave",h,a))},a),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",l,a),window.addEventListener("pointercancel",l,a)},a)}),r}},29326(t,e,i){i.d(e,{c:()=>p});var s=i(76995),n=i(83489);const o=(t,e)=>!!e&&(t===e||o(t,e.parentElement));var a=i(56228),r=i(7916),l=i(56304);const h=new WeakSet;function c(t){return e=>{"Enter"===e.key&&t(e)}}function u(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function d(t){return(0,a.M)(t)&&!(0,n.D)()}const m=new WeakSet;function p(t,e,i={}){const[n,a,p]=(0,r.V)(t,i),f=t=>{const s=t.currentTarget;if(!d(t))return;if(m.has(t))return;h.add(s),i.stopPropagation&&m.add(t);const n=e(s,t),r=(t,e)=>{window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",c),h.has(s)&&h.delete(s),d(t)&&"function"===typeof n&&n(t,{success:e})},l=t=>{r(t,s===window||s===document||i.useGlobalTarget||o(s,t.target))},c=t=>{r(t,!1)};window.addEventListener("pointerup",l,a),window.addEventListener("pointercancel",c,a)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",f,a),(0,s.s)(t)&&(t.addEventListener("focus",t=>((t,e)=>{const i=t.currentTarget;if(!i)return;const s=c(()=>{if(h.has(i))return;u(i,"down");const t=c(()=>{u(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>u(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,a)),(0,l.c)(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),p}},56304(t,e,i){i.d(e,{a:()=>a,c:()=>n});const s=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function n(t){return s.has(t.tagName)||!0===t.isContentEditable}const o=new Set(["INPUT","SELECT","TEXTAREA"]);function a(t){return o.has(t.tagName)||!0===t.isContentEditable}},56228(t,e,i){i.d(e,{M:()=>s});const s=t=>"mouse"===t.pointerType?"number"!==typeof t.button||t.button<=0:!1!==t.isPrimary},7916(t,e,i){i.d(e,{V:()=>n});var s=i(24072);function n(t,e){const i=(0,s.K)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}},53273(t,e,i){function s({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function n({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function o(t,e){if(!e)return t;const i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}i.d(e,{FY:()=>s,bS:()=>o,pA:()=>n})},31054(t,e,i){i.d(e,{OU:()=>u,Ql:()=>d,Ww:()=>p,hq:()=>o,o4:()=>l});var s=i(65744),n=i(53379);function o(t,e,i){return i+e*(t-i)}function a(t,e,i,s,n){return void 0!==n&&(t=o(t,n,s)),o(t,i,s)+e}function r(t,e=0,i=1,s,n){t.min=a(t.min,e,i,s,n),t.max=a(t.max,e,i,s,n)}function l(t,{x:e,y:i}){r(t.x,e.translate,e.scale,e.originPoint),r(t.y,i.translate,i.scale,i.originPoint)}const h=.999999999999,c=1.0000000000001;function u(t,e,i,s=!1){const o=i.length;if(!o)return;let a,r;e.x=e.y=1;for(let h=0;h<o;h++){a=i[h],r=a.projectionDelta;const{visualElement:o}=a.options;o&&o.props.style&&"contents"===o.props.style.display||(s&&a.options.layoutScroll&&a.scroll&&a!==a.root&&p(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,l(t,r)),s&&(0,n.HD)(a.latestValues)&&p(t,a.latestValues))}e.x<c&&e.x>h&&(e.x=1),e.y<c&&e.y>h&&(e.y=1)}function d(t,e){t.min=t.min+e,t.max=t.max+e}function m(t,e,i,n,o=.5){r(t,e,i,(0,s.k)(t.min,t.max,o),n)}function p(t,e){m(t.x,e.x,e.scaleX,e.scale,e.originX),m(t.y,e.y,e.scaleY,e.scale,e.originY)}},45317(t,e,i){i.d(e,{CQ:()=>n,HQ:()=>o,N:()=>h,jA:()=>u,vb:()=>r});var s=i(65744);function n(t){return t.max-t.min}function o(t,e,i){return Math.abs(t-e)<=i}function a(t,e,i,o=.5){t.origin=o,t.originPoint=(0,s.k)(e.min,e.max,t.origin),t.scale=n(i)/n(e),t.translate=(0,s.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function r(t,e,i,s){a(t.x,e.x,i.x,s?s.originX:void 0),a(t.y,e.y,i.y,s?s.originY:void 0)}function l(t,e,i){t.min=i.min+e.min,t.max=t.min+n(e)}function h(t,e,i){l(t.x,e.x,i.x),l(t.y,e.y,i.y)}function c(t,e,i){t.min=e.min-i.min,t.max=t.min+n(e)}function u(t,e,i){c(t.x,e.x,i.x),c(t.y,e.y,i.y)}},6343(t,e,i){i.d(e,{ge:()=>n,xU:()=>s});const s=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),n=()=>({x:{min:0,max:0},y:{min:0,max:0}})},52764(t,e,i){i.d(e,{P:()=>Bt});var s=i(63580),n=i(17046),o=i(41533),a=i(67501),r=i(4766),l=i(89495),h=i(43883),c=i(35835),u=i(66719),d=i(91833),m=i(88600),p=i(36804),f=i(83202),y=i(25907),v=i(84872),g=i(31109),T=i(65744),x=i(95547),w=i(20538),P=i(94312),S=i(86896);const k=["TopLeft","TopRight","BottomLeft","BottomRight"],D=k.length,b=t=>"string"===typeof t?parseFloat(t):t,A=t=>"number"===typeof t||w.px.test(t);function R(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const E=M(0,.5,P.yT),V=M(.5,.95,o.l);function M(t,e,i){return s=>s<t?0:s>e?1:i((0,S.q)(t,e,s))}function j(t,e){t.min=e.min,t.max=e.max}function L(t,e){j(t.x,e.x),j(t.y,e.y)}function C(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var B=i(31054),F=i(45317);function U(t,e,i,s,n){return t=(0,B.hq)(t-=e,1/i,s),void 0!==n&&(t=(0,B.hq)(t,1/n,s)),t}function O(t,e,[i,s,n],o,a){!function(t,e=0,i=1,s=.5,n,o=t,a=t){if(w.KN.test(e)&&(e=parseFloat(e),e=(0,T.k)(a.min,a.max,e/100)-a.min),"number"!==typeof e)return;let r=(0,T.k)(o.min,o.max,s);t===o&&(r-=e),t.min=U(t.min,e,i,r,n),t.max=U(t.max,e,i,r,n)}(t,e[i],e[s],e[n],e.scale,o,a)}const I=["x","scaleX","originX"],K=["y","scaleY","originY"];function $(t,e,i,s){O(t.x,e,I,i?i.x:void 0,s?s.x:void 0),O(t.y,e,K,i?i.y:void 0,s?s.y:void 0)}var q=i(6343);function W(t){return 0===t.translate&&1===t.scale}function X(t){return W(t.x)&&W(t.y)}function N(t,e){return t.min===e.min&&t.max===e.max}function H(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Q(t,e){return H(t.x,e.x)&&H(t.y,e.y)}function G(t){return(0,F.CQ)(t.x)/(0,F.CQ)(t.y)}function z(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var Y=i(32192);class _{constructor(){this.members=[]}add(t){(0,Y.Kq)(this.members,t);for(let e=this.members.length-1;e>=0;e--){const i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;const s=i.instance;s&&!1===s.isConnected&&!1!==i.isPresent&&!i.snapshot&&(0,Y.Ai)(this.members,i)}t.scheduleRender()}remove(t){if((0,Y.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex(e=>t===e);if(0===e)return!1;let i;for(let s=e;s>=0;s--){const t=this.members[s],e=t.instance;if(!1!==t.isPresent&&(!e||!1!==e.isConnected)){i=t;break}}return!!i&&(this.promote(i),!0)}promote(t,e){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender();const s=i.options.layoutDependency,n=t.options.layoutDependency;if(void 0===s||void 0===n||s!==n){const s=i.instance;s&&!1===s.isConnected&&!i.snapshot||(t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:o}=t.options;!1===o&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var Z=i(56307);const J=(t,e)=>t.depth-e.depth;class tt{constructor(){this.children=[],this.isDirty=!1}add(t){(0,Y.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,Y.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(J),this.isDirty=!1,this.children.forEach(t)}}var et=i(53379),it=i(78376),st=i(1207);const nt={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ot=["","X","Y","Z"];let at=0;function rt(t,e,i,s){const{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function lt(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const i=(0,h.P)(e);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:e,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",st.Gt,!(e||s))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&<(s)}function ht({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:o,resetTransform:h}){return class{constructor(t={},i=e?.()){this.id=at++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,f.Q.value&&(nt.nodes=nt.calculatedTargetDeltas=nt.calculatedProjections=0),this.nodes.forEach(dt),this.nodes.forEach(Tt),this.nodes.forEach(xt),this.nodes.forEach(mt),f.Q.addProjectionMetrics&&f.Q.addProjectionMetrics(nt)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new tt)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new s.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,v.x)(e)&&!(0,g.h)(e),this.instance=e;const{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0;const n=()=>this.root.updateBlockedByResize=!1;st.Gt.read(()=>{s=window.innerWidth}),t(e,()=>{const t=window.innerWidth;t!==s&&(s=t,this.root.updateBlockedByResize=!0,i&&i(),i=(0,y.c)(n,250),it.w.hasAnimatedSinceResize&&(it.w.hasAnimatedSinceResize=!1,this.nodes.forEach(gt)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||n.getDefaultTransition()||bt,{onLayoutAnimationStart:a,onLayoutAnimationComplete:r}=n.getProps(),l=!this.targetLayout||!Q(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e={...(0,c.r)(o,"layout"),onPlay:a,onComplete:r};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||gt(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,st.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(wt),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&<(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let n=0;n<this.path.length;n++){const t=this.path[n];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;const s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ft);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(yt);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(vt),this.nodes.forEach(ct),this.nodes.forEach(ut)):this.nodes.forEach(yt),this.clearAllSnapshots();const t=d.k.now();st.uv.delta=(0,n.q)(0,1e3/60,t-st.uv.timestamp),st.uv.timestamp=t,st.uv.isProcessing=!0,st.PP.update.process(st.uv),st.PP.preRender.process(st.uv),st.PP.render.process(st.uv),st.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,u.k.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pt),this.sharedNodes.forEach(Pt)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,st.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){st.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,F.CQ)(this.snapshot.measuredBox.x)||(0,F.CQ)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let i=0;i<this.path.length;i++)this.path[i].updateScroll();const t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=(0,q.ge)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){const e=o(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!h)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!X(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,et.HD)(this.latestValues)||n)&&(h(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let i=this.removeElementScroll(e);var s;return t&&(i=this.removeTransform(i)),Et((s=i).x),Et(s.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return(0,q.ge)();const e=t.measureViewportBox();if(!this.scroll?.wasRoot&&!this.path.some(Mt)){const{scroll:t}=this.root;t&&((0,B.Ql)(e.x,t.offset.x),(0,B.Ql)(e.y,t.offset.y))}return e}removeElementScroll(t){const e=(0,q.ge)();if(L(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){const s=this.path[i],{scroll:n,options:o}=s;s!==this.root&&n&&o.layoutScroll&&(n.wasRoot&&L(e,t),(0,B.Ql)(e.x,n.offset.x),(0,B.Ql)(e.y,n.offset.y))}return e}applyTransform(t,e=!1){const i=(0,q.ge)();L(i,t);for(let s=0;s<this.path.length;s++){const t=this.path[s];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&(0,B.Ww)(i,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),(0,et.HD)(t.latestValues)&&(0,B.Ww)(i,t.latestValues)}return(0,et.HD)(this.latestValues)&&(0,B.Ww)(i,this.latestValues),i}removeTransform(t){const e=(0,q.ge)();L(e,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];if(!t.instance)continue;if(!(0,et.HD)(t.latestValues))continue;(0,et.vk)(t.latestValues)&&t.updateSnapshot();const s=(0,q.ge)();L(s,t.measurePageBox()),$(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,s)}return(0,et.HD)(this.latestValues)&&$(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==st.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){const e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);const i=Boolean(this.resumingFrom)||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:n}=this.options;if(!this.layout||!s&&!n)return;this.resolvedRelativeTargetAt=st.uv.timestamp;const o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,q.ge)(),this.targetWithTransforms=(0,q.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,F.N)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):L(this.target,this.layout.layoutBox),(0,B.o4)(this.target,this.targetDelta)):L(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&Boolean(o.resumingFrom)===Boolean(this.resumingFrom)&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),f.Q.value&&nt.calculatedTargetDeltas++)}getClosestProjectingParent(){if(this.parent&&!(0,et.vk)(this.parent.latestValues)&&!(0,et.vF)(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,q.ge)(),this.relativeTargetOrigin=(0,q.ge)(),(0,F.jA)(this.relativeTargetOrigin,e,i),L(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const t=this.getLead(),e=Boolean(this.resumingFrom)||this!==t;let i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===st.uv.timestamp&&(i=!1),i)return;const{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!n)return;L(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,a=this.treeScale.y;(0,B.OU)(this.layoutCorrected,this.treeScale,this.path,e),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,q.ge)());const{target:r}=t;r?(this.projectionDelta&&this.prevProjectionDelta?(C(this.prevProjectionDelta.x,this.projectionDelta.x),C(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,F.vb)(this.projectionDelta,this.layoutCorrected,r,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&z(this.projectionDelta.x,this.prevProjectionDelta.x)&&z(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",r)),f.Q.value&&nt.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,q.xU)(),this.projectionDelta=(0,q.xU)(),this.projectionDeltaWithTransform=(0,q.xU)()}setAnimationOrigin(t,e=!1){const i=this.snapshot,s=i?i.latestValues:{},n={...this.latestValues},o=(0,q.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const a=(0,q.ge)(),r=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),h=!l||l.members.length<=1,c=Boolean(r&&!h&&!0===this.options.crossfade&&!this.path.some(Dt));let u;this.animationProgress=0,this.mixTargetDelta=e=>{const i=e/1e3;var l,d,m,p,f,y;St(o.x,t.x,i),St(o.y,t.y,i),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&((0,F.jA)(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kt((m=this.relativeTarget).x,(p=this.relativeTargetOrigin).x,(f=a).x,y=i),kt(m.y,p.y,f.y,y),u&&N((l=this.relativeTarget).x,(d=u).x)&&N(l.y,d.y)&&(this.isProjectionDirty=!1),u||(u=(0,q.ge)()),L(u,this.relativeTarget)),r&&(this.animationValues=n,function(t,e,i,s,n,o){n?(t.opacity=(0,T.k)(0,i.opacity??1,E(s)),t.opacityExit=(0,T.k)(e.opacity??1,0,V(s))):o&&(t.opacity=(0,T.k)(e.opacity??1,i.opacity??1,s));for(let a=0;a<D;a++){const n=`border${k[a]}Radius`;let o=R(e,n),r=R(i,n);void 0===o&&void 0===r||(o||(o=0),r||(r=0),0===o||0===r||A(o)===A(r)?(t[n]=Math.max((0,T.k)(b(o),b(r),s),0),(w.KN.test(r)||w.KN.test(o))&&(t[n]+="%")):t[n]=r)}(e.rotate||i.rotate)&&(t.rotate=(0,T.k)(e.rotate||0,i.rotate||0,s))}(n,s,this.latestValues,i,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,st.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=st.Gt.update(()=>{it.w.hasAnimatedSinceResize=!0,p.q.layout++,this.motionValue||(this.motionValue=(0,r.OQ)(0)),this.currentAnimation=function(t,e,i){const s=(0,l.S)(t)?t:(0,r.OQ)(t);return s.start((0,a.f)("",s,[0,1e3],i)),s.animation}(this.motionValue,0,{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{p.q.layout--},onComplete:()=>{p.q.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&Vt(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,q.ge)();const e=(0,F.CQ)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;const s=(0,F.CQ)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}L(e,i),(0,B.Ww)(e,n),(0,F.vb)(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new _),this.sharedNodes.get(t).add(e);const i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){const{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){const s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;const s={};i.z&&rt("z",t,s,this.animationValues);for(let n=0;n<ot.length;n++)rt(`rotate${ot[n]}`,t,s,this.animationValues),rt(`skew${ot[n]}`,t,s,this.animationValues);t.render();for(const n in s)t.setStaticValue(n,s[n]),this.animationValues&&(this.animationValues[n]=s[n]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(t.visibility="hidden");const i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=(0,x.u)(e?.pointerEvents)||"",void(t.transform=i?i(this.latestValues,""):"none");const s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target)return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,x.u)(e?.pointerEvents)||""),void(this.hasProjected&&!(0,et.HD)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1));t.visibility="";const n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let o=function(t,e,i){let s="";const n=t.x.translate/e.x,o=t.y.translate/e.y,a=i?.z||0;if((n||o||a)&&(s=`translate3d(${n}px, ${o}px, ${a}px) `),1===e.x&&1===e.y||(s+=`scale(${1/e.x}, ${1/e.y}) `),i){const{transformPerspective:t,rotate:e,rotateX:n,rotateY:o,skewX:a,skewY:r}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),o&&(s+=`rotateY(${o}deg) `),a&&(s+=`skewX(${a}deg) `),r&&(s+=`skewY(${r}deg) `)}const r=t.x.scale*e.x,l=t.y.scale*e.y;return 1===r&&1===l||(s+=`scale(${r}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(o=i(n,o)),t.transform=o;const{x:a,y:r}=this.projectionDelta;t.transformOrigin=`${100*a.origin}% ${100*r.origin}% 0`,t.opacity=s.animationValues?s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0;for(const l in m.H){if(void 0===n[l])continue;const{correct:e,applyTo:i,isCSSVariable:a}=m.H[l],r="none"===o?n[l]:e(n[l],s);if(i){const e=i.length;for(let s=0;s<e;s++)t[i[s]]=r}else a?this.options.visualElement.renderState.vars[l]=r:t[l]=r}this.options.layoutId&&(t.pointerEvents=s===this?(0,x.u)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(ft),this.root.sharedNodes.clear()}}}function ct(t){t.updateLayout()}function ut(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,o=e.source!==t.layout.source;"size"===n?(0,Z.X)(t=>{const s=o?e.measuredBox[t]:e.layoutBox[t],n=(0,F.CQ)(s);s.min=i[t].min,s.max=s.min+n}):Vt(n,e.layoutBox,i)&&(0,Z.X)(s=>{const n=o?e.measuredBox[s]:e.layoutBox[s],a=(0,F.CQ)(i[s]);n.max=n.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+a)});const a=(0,q.xU)();(0,F.vb)(a,i,e.layoutBox);const r=(0,q.xU)();o?(0,F.vb)(r,t.applyTransform(s,!0),e.measuredBox):(0,F.vb)(r,i,e.layoutBox);const l=!X(a);let h=!1;if(!t.resumeFrom){const s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){const{snapshot:n,layout:o}=s;if(n&&o){const a=(0,q.ge)();(0,F.jA)(a,e.layoutBox,n.layoutBox);const r=(0,q.ge)();(0,F.jA)(r,i,o.layoutBox),Q(a,r)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=r,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:r,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function dt(t){f.Q.value&&nt.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function mt(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function pt(t){t.clearSnapshot()}function ft(t){t.clearMeasurements()}function yt(t){t.isLayoutDirty=!1}function vt(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function gt(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Tt(t){t.resolveTargetDelta()}function xt(t){t.calcProjection()}function wt(t){t.resetSkewAndRotation()}function Pt(t){t.removeLeadSnapshot()}function St(t,e,i){t.translate=(0,T.k)(e.translate,0,i),t.scale=(0,T.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function kt(t,e,i,s){t.min=(0,T.k)(e.min,i.min,s),t.max=(0,T.k)(e.max,i.max,s)}function Dt(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const bt={duration:.45,ease:[.4,0,.1,1]},At=t=>"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Rt=At("applewebkit/")&&!At("chrome/")?Math.round:o.l;function Et(t){t.min=Rt(t.min),t.max=Rt(t.max)}function Vt(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,F.HQ)(G(e),G(i),.2)}function Mt(t){return t!==t.root&&t.scroll?.wasRoot}var jt=i(44447);const Lt=ht({attachResizeListener:(t,e)=>(0,jt.k)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ct={current:void 0},Bt=ht({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ct.current){const t=new Lt({});t.mount(window),t.setOptions({layoutScroll:!0}),Ct.current=t}return Ct.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)})},78376(t,e,i){i.d(e,{w:()=>s});const s={hasAnimatedSinceResize:!0,hasEverUpdated:!1}},88600(t,e,i){i.d(e,{H:()=>h});var s=i(20538);function n(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const o={correct:(t,e)=>{if(!e.target)return t;if("string"===typeof t){if(!s.px.test(t))return t;t=parseFloat(t)}return`${n(t,e.target.x)}% ${n(t,e.target.y)}%`}};var a=i(85933),r=i(65744);const l={correct:(t,{treeScale:e,projectionDelta:i})=>{const s=t,n=a.f.parse(t);if(n.length>5)return s;const o=a.f.createTransformer(t),l="number"!==typeof n[0]?1:0,h=i.x.scale*e.x,c=i.y.scale*e.y;n[0+l]/=h,n[1+l]/=c;const u=(0,r.k)(h,c,.5);return"number"===typeof n[2+l]&&(n[2+l]/=u),"number"===typeof n[3+l]&&(n[3+l]/=u),o(n)}},h={borderRadius:{...o,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:o,borderTopRightRadius:o,borderBottomLeftRadius:o,borderBottomRightRadius:o,boxShadow:l}},56307(t,e,i){function s(t){return[t("x"),t("y")]}i.d(e,{X:()=>s})},53379(t,e,i){function s(t){return void 0===t||1===t}function n({scale:t,scaleX:e,scaleY:i}){return!s(t)||!s(e)||!s(i)}function o(t){return n(t)||a(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function a(t){return r(t.x)||r(t.y)}function r(t){return t&&"0%"!==t}i.d(e,{HD:()=>o,vF:()=>a,vk:()=>n})},82360(t,e,i){i.d(e,{L:()=>a,m:()=>o});var s=i(53273),n=i(31054);function o(t,e){return(0,s.FY)((0,s.bS)(t.getBoundingClientRect(),e))}function a(t,e,i){const s=o(t,i),{scroll:a}=e;return a&&((0,n.Ql)(s.x,a.offset.x),(0,n.Ql)(s.y,a.offset.y)),s}}}]);
Save
Back