PageSourceSearch

https://www.cadlingo.com/assets/motionFeatures-4FKky8sP.js

js cadlingo.com collected 2026-10-09 22:05:25 UTC 40,218 bytes, 1 lines download raw bytes

1import{a1 as t,a2 as e,a3 as n,a4 as i,a5 as s,B as r,a6 as o,a7 as a,a8 as l,a9 as u,aa as c,ab as h,ac as d,ad as m,ae as p,af as f,ag as y,y as v,N as g,w as T,ah as w,D as b,ai as x,aj as A,ak as S,al as M,am as k,an as V,ao as P,ap as C,aq as E,ar as D,H as O,as as F,K as I,at as K}from"./app-BSdUPUTF.js";import{m as R,f as L,o as j,g as B,h as N,b as _,s as q,j as H,e as U,a as G,c as W,d as z}from"./is-svg-component-Dy1U0wK2.js";import{i as Y}from"./is-html-element-hHxEkLfE.js";import{r as X}from"./vendor-BqZM8k5L.js";function $(t){let e;return()=>(void 0===e&&(e=t()),e)}const J=(t,e)=>n=>e(t(n)),Z=(...t)=>t.reduce(J),Q=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},tt=t=>1e3*t,et=t=>t/1e3,nt=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function it(e,n,i,s){if(e===n&&i===s)return t;const r=t=>function(t,e,n,i,s){let r,o,a=0;do{o=e+(n-e)/2,r=nt(o,i,s)-t,r>0?n=o:e=o}while(Math.abs(r)>1e-7&&++a<12);return o}(t,0,1,e,i);return t=>0===t||1===t?t:nt(r(t),n,s)}const st=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,rt=t=>e=>1-t(1-e),ot=it(.33,1.53,.69,.99),at=rt(ot),lt=st(at),ut=t=>(t*=2)<1?.5*at(t):.5*(2-Math.pow(2,-10*(t-1))),ct=t=>1-Math.sin(Math.acos(t)),ht=rt(ct),dt=st(ct),mt=it(.42,0,1,1),pt=it(0,0,.58,1),ft=it(.42,0,.58,1),yt=t=>Array.isArray(t)&&"number"==typeof t[0],vt={linear:t,easeIn:mt,easeInOut:ft,easeOut:pt,circIn:ct,circInOut:dt,circOut:ht,backIn:at,backInOut:lt,backOut:ot,anticipate:ut},gt=t=>{if(yt(t)){t.length;const[e,n,i,s]=t;return it(e,n,i,s)}return"string"==typeof t?vt[t]:t};function Tt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function wt(t,e){return n=>n>0?e:t}const bt=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},xt=[i,e,n];function At(t){const e=(i=t,xt.find(t=>t.test(i)));var i;if(!Boolean(e))return!1;let s=e.parse(t);return e===n&&(s=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,r=0,o=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=Tt(a,i,t+1/3),r=Tt(a,i,t),o=Tt(a,i,t-1/3)}else s=r=o=n;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:i}}(s)),s}const St=(t,n)=>{const i=At(t),s=At(n);if(!i||!s)return wt(t,n);const r={...i};return t=>(r.red=bt(i.red,s.red,t),r.green=bt(i.green,s.green,t),r.blue=bt(i.blue,s.blue,t),r.alpha=R(i.alpha,s.alpha,t),e.transform(r))},Mt=new Set(["none","hidden"]);function kt(t,e){return n=>R(t,e,n)}function Vt(t){return"number"==typeof t?kt:"string"==typeof t?L(t)?wt:s.test(t)?St:Et:Array.isArray(t)?Pt:"object"==typeof t?s.test(t)?St:Ct:wt}function Pt(t,e){const n=[...t],i=n.length,s=t.map((t,n)=>Vt(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function Ct(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=Vt(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const Et=(t,e)=>{const n=r.createTransformer(e),i=o(t),s=o(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?Mt.has(t)&&!s.values.length||Mt.has(e)&&!i.values.length?function(t,e){return Mt.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):Z(Pt(function(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const r=e.types[s],o=t.indexes[r][i[r]],a=t.values[o]??0;n[s]=a,i[r]++}return n}(i,s),s.values),n):wt(t,e)};function Dt(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return R(t,e,n);return Vt(t)(t,e)}const Ot=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>c.update(e,t),stop:()=>u(e),now:()=>a.isProcessing?a.timestamp:l.now()}},Ft=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let r=0;r<s;r++)i+=Math.round(1e4*t(r/(s-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},It=2e4;function Kt(t){let e=0;let n=t.next(e);for(;!n.done&&e<It;)e+=50,n=t.next(e);return e>=It?1/0:e}function Rt(t,e,n){const i=Math.max(e-5,0);return h(n-t(i),e-i)}const Lt=100,jt=10,Bt=1,Nt=0,_t=800,qt=.3,Ht=.3,Ut={granular:.01,default:2},Gt={granular:.005,default:.5},Wt=.01,zt=10,Yt=.05,Xt=1,$t=.001;function Jt({duration:t=_t,bounce:e=qt,velocity:n=Nt,mass:i=Bt}){let s,r,o=1-e;o=d(Yt,Xt,o),t=d(Wt,zt,et(t)),o<1?(s=e=>{const i=e*o,s=i*t,r=i-n,a=Qt(e,o),l=Math.exp(-s);return $t-r/a*l},r=e=>{const i=e*o*t,r=i*n+n,a=Math.pow(o,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=Qt(M
vendor: 9,026 bytes, line 1
1ath.pow(e,2),o);return(-s(e)+$t>0?-1:1)*((r-a)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,r=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let s=1;s<Zt;s++)i-=t(i)/e(i);return i}(s,r,5/t);if(t=tt(t),isNaN(a))return{stiffness:Lt,damping:jt,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*o*Math.sqrt(i*e),duration:t}}}const Zt=12;function Qt(t,e){return t*Math.sqrt(1-e*e)}const te=["duration","bounce"],ee=["stiffness","damping","mass"];function ne(t,e){return e.some(e=>void 0!==t[e])}function ie(t=Ht,e=qt){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:m,isResolvedFromDuration:p}=function(t){let e={velocity:Nt,stiffness:Lt,damping:jt,mass:Bt,isResolvedFromDuration:!1,...t};if(!ne(t,ee)&&ne(t,te))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,r=2*d(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:Bt,stiffness:s,damping:r}}else{const n=Jt(t);e={...e,...n,mass:Bt},e.isResolvedFromDuration=!0}return e}({...n,velocity:-et(n.velocity||0)}),f=m||0,y=u/(2*Math.sqrt(l*c)),v=o-r,g=et(Math.sqrt(l/c)),T=Math.abs(v)<5;let w;if(i||(i=T?Ut.granular:Ut.default),s||(s=T?Gt.granular:Gt.default),y<1){const t=Qt(g,y);w=e=>{const n=Math.exp(-y*g*e);return o-n*((f+y*g*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}}else if(1===y)w=t=>o-Math.exp(-g*t)*(v+(f+g*v)*t);else{const t=g*Math.sqrt(y*y-1);w=e=>{const n=Math.exp(-y*g*e),i=Math.min(t*e,300);return o-n*((f+y*g*v)*Math.sinh(i)+t*v*Math.cosh(i))/t}}const b={calculatedDuration:p&&h||null,next:t=>{const e=w(t);if(p)a.done=t>=h;else{let n=0===t?f:0;y<1&&(n=0===t?tt(f):Rt(w,t,e));const r=Math.abs(n)<=i,l=Math.abs(o-e)<=s;a.done=r&&l}return a.value=a.done?o:e,a},toString:()=>{const t=Math.min(Kt(b),It),e=Ft(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function se({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],d={done:!1,value:h},m=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let p=n*e;const f=h+p,y=void 0===o?f:o(f);y!==f&&(p=y-h);const v=t=>-p*Math.exp(-t/i),g=t=>y+v(t),T=t=>{const e=v(t),n=g(t);d.done=Math.abs(e)<=u,d.value=d.done?y:n};let w,b;const x=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(w=t,b=ie({keyframes:[d.value,m(d.value)],velocity:Rt(g,t,d.value),damping:s,stiffness:r,restDelta:u,restSpeed:c}))};return x(0),{calculatedDuration:null,next:t=>{let e=!1;return b||void 0!==w||(e=!0,T(t),x(t)),void 0!==w&&t>=w?b.next(t-w):(!e&&T(t),d)}}}function re(e,n,{clamp:i=!0,ease:s,mixer:r}={}){const o=e.length;if(n.length,1===o)return()=>n[0];if(2===o&&n[0]===n[1])return()=>n[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),n=[...n].reverse());const l=function(e,n,i){const s=[],r=i||m.mix||Dt,o=e.length-1;for(let a=0;a<o;a++){let i=r(e[a],e[a+1]);if(n){const e=Array.isArray(n)?n[a]||t:n;i=Z(e,i)}s.push(i)}return s}(n,s,r),u=l.length,c=t=>{if(a&&t<e[0])return n[0];let i=0;if(u>1)for(;i<e.length-2&&!(t<e[i+1]);i++);const s=Q(e[i],e[i+1],t);return l[i](s)};return i?t=>c(d(e[0],e[o-1],t)):c}function oe(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=Q(0,e,i);t.push(R(n,1,s))}}(e,t.length-1),e}function ae({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(gt):gt(i),r={done:!1,value:e[0]},o=function(t,e){return t.map(t=>t*e)}(n&&n.length===e.length?n:oe(e),t),a=re(o,e,{ease:Array.isArray(s)?s:(l=e,u=s,l.map(()=>u||ft).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(r.value=a(e),r.done=e>=t,r)}}ie.applyToOptions=t=>{const e=function(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(Kt(i),It);return{type:"keyframes",ease:t=>i.next(s*t).value/e,duration:et(s)}}(t,100,ie);return t.ease=e.ease,t.duration=tt(e.duration),t.type="keyframes",t};const le=t=>null!==t;function ue(t,{repeat:e,repeatType:n="loop"},i,s=1){const r=t.filter(le),o=s<0||e&&"loop"!==n&&e%2==1?0:r.length-1;return o&&void 0!==i?i:r[o]}const ce={decay:se,inertia:se,tween:ae,keyframes:ae,spring:ie};function he(t){"string"==typeof t.type&&(t.type=ce[t.type])}class de{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)}}const me=t=>t/100;class pe extends de{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var t,e;const{motionValue:n}=this.options;n&&n.updatedAt!==l.now()&&this.tick(l.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(e=(t=this.options).onStop)||e.call(t))},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;he(t);const{type:e=ae,repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:r=0}=t;let{keyframes:o}=t;const a=e||ae;a!==ae&&"number"!=typeof o[0]&&(this.mixKeyframes=Z(me,Dt(o[0],o[1])),o=[0,100]);const l=a({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=Kt(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:n,totalDuration:i,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:u,repeat:c,repeatType:h,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-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let T=this.currentTime,w=n;if(c){const t=Math.min(this.currentTime,i)/o;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,c+1);Boolean(e%2)&&("reverse"===h?(n=1-n,m&&(n-=m/o)):"mirror"===h&&(w=r)),T=d(0,1,n)*o}const b=g?{done:!1,value:u[0]}:w.next(T);s&&(b.value=s(b.value));let{done:x}=b;g||null===a||(x=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const A=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return A&&p!==se&&(b.value=ue(u,this.options,y,this.speed)),f&&f(b.value),A&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return et(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+et(t)}get time(){return et(this.currentTime)}set time(t){var e;t=tt(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),null==(e=this.driver)||e.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(l.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=et(this.currentTime))}play(){var t,e;if(this.isStopped)return;const{driver:n=Ot,startTime:i}=this.options;this.driver||(this.driver=n(t=>this.tick(t))),null==(e=(t=this.options).onPlay)||e.call(t);const s=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=s):null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),"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(l.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",null==(e=(t=this.options).onComplete)||e.call(t)}cancel(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(e=(t=this.options).onCancel)||e.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(e=this.driver)||e.stop(),t.observe(this)}}const fe=$(()=>void 0!==window.ScrollTimeline),ye={};function ve(t,e){const n=$(t);return()=>ye[e]??n()}const ge=ve(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),Te=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,we={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Te([0,.65,.55,1]),circOut:Te([.55,0,1,.45]),backIn:Te([.31,.01,.66,-.59]),backOut:Te([.33,1.53,.69,.99])};function be(t,e){return t?"function"==typeof t?ge()?Ft(t,e):"ease-out":yt(t)?Te(t):Array.isArray(t)?t.map(t=>be(t,e)||we.easeOut):we[t]:void 0}function xe(t,e,n,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[e]:n};l&&(c.offset=l);const h=be(a,s);Array.isArray(h)&&(c.easing=h);const d={delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};u&&(d.pseudoElement=u);return t.animate(c,d)}function Ae(t){return"function"==typeof t&&"applyToOptions"in t}class Se extends de{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:n,keyframes:i,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=Boolean(s),this.allowFlatten=r,this.options=t,t.type;const l=function({type:t,...e}){return Ae(t)&&ge()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=xe(e,n,i,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const t=ue(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,n){(t=>t.startsWith("--"))(e)?t.style.setProperty(e,n):t.style[e]=n}(e,n,t),this.animation.cancel()}null==a||a(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,e;null==(e=(t=this.animation).finish)||e.call(t)}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(){var t,e;this.isPseudoElement||null==(e=(t=this.animation).commitStyles)||e.call(t)}get duration(){var t,e;const n=(null==(e=null==(t=this.animation.effect)?void 0:t.getComputedTiming)?void 0:e.call(t).duration)||0;return et(Number(n))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+et(t)}get time(){return et(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tt(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:e,observe:n}){var i;return this.allowFlatten&&(null==(i=this.animation.effect)||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&fe()?(this.animation.timeline=e,t):n(this)}}const Me={anticipate:ut,backInOut:lt,circInOut:dt};function ke(t){"string"==typeof t.ease&&t.ease in Me&&(t.ease=Me[t.ease])}class Ve extends Se{constructor(t){ke(t),he(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:n,onComplete:i,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);const o=new pe({...r,autoplay:!1}),a=Math.max(10,l.now()-this.startTime),u=d(0,10,a-10);e.setWithVelocity(o.sample(Math.max(0,a-u)).value,o.sample(a).value,u),o.stop()}}const Pe=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!r.test(t)&&"0"!==t||t.startsWith("url(")));function Ce(t){t.duration=0,t.type="keyframes"}const Ee=new Set(["opacity","clipPath","filter","transform"]),De=$(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class Oe extends de{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:r="loop",keyframes:o,name:a,motionValue:u,element:c,...h}){var d;super(),this.stop=()=>{var t,e;this._animation&&(this._animation.stop(),null==(t=this.stopTimeline)||t.call(this)),null==(e=this.keyframeResolver)||e.cancel()},this.createdAt=l.now();const m={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:r,name:a,motionValue:u,element:c,...h},f=(null==c?void 0:c.KeyframeResolver)||p;this.keyframeResolver=new f(o,(t,e,n)=>this.onKeyframesResolved(t,e,m,!n),a,u,c),null==(d=this.keyframeResolver)||d.scheduleResolve()}onKeyframesResolved(e,n,i,s){var r,o;this.keyframeResolver=void 0;const{name:a,type:u,velocity:c,delay:h,isHandoff:d,onUpdate:p}=i;this.resolvedAt=l.now(),function(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const r=t[t.length-1],o=Pe(s,e),a=Pe(r,e);return!(!o||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||Ae(n))&&i)}(e,a,u,c)||(!m.instantAnimations&&h||null==p||p(ue(e,i,n)),e[0]=e[e.length-1],Ce(i),i.repeat=0);const f={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:e},y=!d&&function(t){var e;const{motionValue:n,name:i,repeatDelay:s,repeatType:r,damping:o,type:a}=t;if(!((null==(e=null==n?void 0:n.owner)?void 0:e.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return De()&&i&&Ee.has(i)&&("transform"!==i||!u)&&!l&&!s&&"mirror"!==r&&0!==o&&"inertia"!==a}(f),v=null==(o=null==(r=f.motionValue)?void 0:r.owner)?void 0:o.current,g=y?new Ve({...f,element:v}):new pe(f);g.finished.then(()=>{this.notifyFinished()}).catch(t),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||(null==(t=this.keyframeResolver)||t.resume(),f()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),null==(t=this.keyframeResolver)||t.cancel()}}function Fe(t,e,n,i=0,s=1){const r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*i;return"function"==typeof n?n(r,o):1===s?r*i:a-r*i}const Ie=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ke(t,e,n=1){const[i,s]=function(t){const e=Ie.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}(t);if(!i)return;const r=window.getComputedStyle(e).getPropertyValue(i);if(r){const t=r.trim();return y(t)?parseFloat(t):t}return L(s)?Ke(s,e,n+1):s}const Re={type:"spring",stiffness:500,damping:25,restSpeed:10},Le={type:"keyframes",duration:.8},je={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Be=(t,{keyframes:e})=>e.length>2?Le:v.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Re:je,Ne=t=>null!==t;function _e(t,e){return(null==t?void 0:t[e])??(null==t?void 0:t.default)??t}const qe=(t,e,n,i={},s,r)=>o=>{const a=_e(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u-=tt(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:r,repeatType:
vendor: 4,812 bytes, line 1
1o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(a)||Object.assign(h,Be(t,h)),h.duration&&(h.duration=tt(h.duration)),h.repeatDelay&&(h.repeatDelay=tt(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if((!1===h.type||0===h.duration&&!h.repeatDelay)&&(Ce(h),0===h.delay&&(d=!0)),(m.instantAnimations||m.skipAnimations)&&(d=!0,Ce(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,d&&!r&&void 0!==e.get()){const t=function(t,{repeat:e,repeatType:n="loop"}){const i=t.filter(Ne);return i[e&&"loop"!==n&&e%2==1?0:i.length-1]}(h.keyframes,a);if(void 0!==t)return void c.update(()=>{h.onUpdate(t),h.onComplete()})}return a.isSync?new pe(h):new Oe(h)};function He(t,e,n){const i=t.getProps();return g(i,e,void 0!==n?n:i.custom,t)}const Ue=new Set(["width","height","top","left","right","bottom",...T]),Ge=t=>Array.isArray(t);function We(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,w(n))}function ze(t){return Ge(t)?t[t.length-1]||0:t}function Ye(t,e){const n=t.getValue("willChange");if(i=n,Boolean(b(i)&&i.add))return n.add(e);if(!n&&m.WillChange){const n=new m.WillChange("auto");t.addValue("willChange",n),n.add(e)}var i}function Xe(t){return t.props[j]}function $e({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function Je(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e;const l=null==r?void 0:r.reduceMotion;i&&(r=i);const u=[],h=s&&t.animationState&&t.animationState.getState()[s];for(const d in a){const e=t.getValue(d,t.latestValues[d]??null),i=a[d];if(void 0===i||h&&$e(h,d))continue;const s={delay:n,..._e(r||{},d)},o=e.get();if(void 0!==o&&!e.isAnimating&&!Array.isArray(i)&&i===o&&!s.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const e=Xe(t);if(e){const t=window.MotionHandoffAnimation(e,d,c);null!==t&&(s.startTime=t,m=!0)}}Ye(t,d);const p=l??t.shouldReduceMotion;e.start(qe(d,e,i,p&&Ue.has(d)?{type:!1}:s,t,m));const f=e.animation;f&&u.push(f)}return o&&Promise.all(u).then(()=>{c.update(()=>{o&&function(t,e){const n=He(t,e);let{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(const o in r)We(t,o,ze(r[o]))}(t,o)})}),u}function Ze(t,e,n={}){var i;const s=He(t,e,"exit"===n.type?null==(i=t.presenceContext)?void 0:i.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(r=n.transitionOverride);const o=s?()=>Promise.all(Je(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,n=0,i=0,s=0,r=1,o){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Ze(l,e,{...o,delay:n+("function"==typeof i?0:i)+Fe(t.variantChildren,l,i,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,s,o,a,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}return Promise.all([o(),a(n.delay)])}function Qe(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||x(t))}const tn=new Set(["auto","none","0"]);class en extends p{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let n=t[a];if("string"==typeof n&&(n=n.trim(),L(n))){const i=Ke(n,e.current);void 0!==i&&(t[a]=i),a===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Ue.has(n)||2!==t.length)return;const[i,s]=t,r=S(i),o=S(s);if(B(i)!==B(s)&&M[n])this.needsMeasurement=!0;else if(r!==o)if(k(r)&&k(o))for(let a=0;a<t.length;a++){const e=t[a];"string"==typeof e&&(t[a]=parseFloat(e))}else M[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let i=0;i<t.length;i++)(null===t[i]||Qe(t[i]))&&n.push(i);n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"==typeof e&&!tn.has(e)&&o(e).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=A(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=M[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const r=i.length-1,o=i[r];i[r]=M[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}const nn={x:!1,y:!1};function sn(){return nn.x||nn.y}function rn(t,e){const n=function(t,e,n){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document;const i=(null==n?void 0:n[t])??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(t=>null!=t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function on(t){return!("touch"===t.pointerType||sn())}const an=(t,e)=>!!e&&(t===e||an(t,e.parentElement)),ln=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,un=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function cn(t){return un.has(t.tagName)||!0===t.isContentEditable}const hn=new WeakSet;function dn(t){return e=>{"Enter"===e.key&&t(e)}}function mn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function pn(t){return ln(t)&&!sn()}function fn(t,e,n={}){const[i,s,r]=rn(t,n),o=t=>{const i=t.currentTarget;if(!pn(t))return;hn.add(i);const r=e(i,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),hn.has(i)&&hn.delete(i),pn(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,i===window||i===document||n.useGlobalTarget||an(i,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return i.forEach(t=>{(n.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),Y(t)&&(t.addEventListener("focus",t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const i=dn(()=>{if(hn.has(n))return;mn(n,"down");const t=dn(()=>{mn(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>mn(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)})(t,s)),cn(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}class yn extends V{constructor(){super(...arguments),this.KeyframeResolver=en}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){const n=t.style;return n?n[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;b(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class vn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function gn({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Tn({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function wn(t){return void 0===t||1===t}function bn({scale:t,scaleX:e,scaleY:n}){return!wn(t)||!wn(e)||!wn(n)}function xn(t){return bn(t)||An(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function An(t){return Sn(t.x)||Sn(t.y)}function Sn(t){return t&&"0%"!==t}function Mn(t,e,n){return n+e*(t-n)}function kn(t,e,n,i,s){return void 0!==s&&(t=Mn(t,s,i)),Mn(t,n,i)+e}function Vn(t,e=0,n=1,i,s){t.min=kn(t.min,e,n,i,s),t.max=kn(t.max,e,n,i,s)}function Pn(t,{x:e,y:n}){Vn(t.x,e.translate,e.scale,e.originPoint),Vn(t.y,n.translate,n.scale,n.originPoint)}const Cn=.999999999999,En=1.0000000000001;function Dn(t,e,n,i=!1){const s=n.length;if(!s)return;let r,o;e.x=e.y=1;for(let a=0;a<s;a++){r=n[a],o=r.projectionDelta;const{visualElement:s}=r.options;s&&s.props.style&&"contents"===s.props.style.display||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&In(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Pn(t,o)),i&&xn(r.latestValues)&&In(t,r.latestValues))}e.x<En&&e.x>Cn&&(e.x=1),e.y<En&&e.y>Cn&&(e.y=1)}function On(t,e){t.min=t.min+e,t.max=t.max+e}function Fn(t,e,n,i,s=.5){Vn(t,e,n,R(t.min,t.max,s),i)}function In(t,e){Fn(t.x,e.x,e.scaleX,e.scale,e.originX),Fn(t.y,e.y,e.scaleY,e.scale,e.originY)}function Kn(t,e){return gn(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}function Rn(t,e,n){const i=Kn(t,n),{scroll:s}=e;return s&&(On(i.x,s.offset.x),On(i.y,s.offset.y)),i}function Ln(t,{style:e,vars:n},i,s){const r=t.style;let o;for(o in e)r[o]=e[o];for(o in null==s||s.applyProjectionStyles(r,i),n)r.setProperty(o,n[o])}class jn extends yn{constructor(){super(...arguments),this.type="html",this.renderInstance=Ln}readValueFromInstance(t,e){var n,i;if(v.has(e))return(null==(n=this.projection)?void 0:n.isProjecting)?P(e):C(t,e);{const n=(i=t,window.getComputedStyle(i)),s=(N(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return Kn(t,e)}build(t,e,n){_(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return q(t,e,n)}}const Bn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class Nn extends yn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=E}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(v.has(e)){const t=D(e);return t&&t.default||0}return e=Bn.has(e)?e:H(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return U(t,e,n)}
vendor: 4,561 bytes, line 1
1build(t,e,n){G(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){!function(t,e,n,i){Ln(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(Bn.has(s)?s:H(s),e.attrs[s])}(t,e,0,i)}mount(t){this.isSVGTag=W(t.tagName),super.mount(t)}}const _n=F.length;function qn(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&qn(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<_n;n++){const i=F[n],s=t.props[i];(O(s)||!1===s)&&(e[i]=s)}return e}function Hn(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const Un=[...K].reverse(),Gn=K.length;function Wn(t){return e=>Promise.all(e.map(({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map(e=>Ze(t,e,n));i=Promise.all(s)}else if("string"==typeof e)i=Ze(t,e,n);else{const s="function"==typeof e?He(t,e,n.custom):e;i=Promise.all(Je(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}(t,e,n)))}function zn(t){let e=Wn(t),n=$n(),i=!0;const s=e=>(n,i)=>{var s;const r=He(t,i,"exit"===e?null==(s=t.presenceContext)?void 0:s.custom:void 0);if(r){const{transition:t,transitionEnd:e,...i}=r;n={...n,...i,...e}}return n};function r(r){const{props:o}=t,a=qn(t.parent)||{},l=[],u=new Set;let c={},h=1/0;for(let e=0;e<Gn;e++){const d=Un[e],m=n[d],p=void 0!==o[d]?o[d]:a[d],f=O(p),y=d===r?m.isActive:null;!1===y&&(h=e);let v=p===a[d]&&p!==o[d]&&f;if(v&&i&&t.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...c},!m.isActive&&null===y||!p&&!m.prevProp||I(p)||"boolean"==typeof p)continue;const g=Yn(m.prevProp,p);let T=g||d===r&&m.isActive&&!v&&f||e>h&&f,w=!1;const b=Array.isArray(p)?p:[p];let x=b.reduce(s(d),{});!1===y&&(x={});const{prevResolvedValues:A={}}=m,S={...A,...x},M=e=>{T=!0,u.has(e)&&(w=!0,u.delete(e)),m.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in S){const e=x[t],n=A[t];if(c.hasOwnProperty(t))continue;let i=!1;i=Ge(e)&&Ge(n)?!Hn(e,n):e!==n,i?null!=e?M(t):u.add(t):void 0!==e&&u.has(t)?M(t):m.protectedKeys[t]=!0}m.prevProp=p,m.prevResolvedValues=x,m.isActive&&(c={...c,...x}),i&&t.blockInitialAnimation&&(T=!1);const k=v&&g;T&&(!k||w)&&l.push(...b.map(e=>{const n={type:d};if("string"==typeof e&&i&&!k&&t.manuallyAnimateOnMount&&t.parent){const{parent:i}=t,s=He(i,e);if(i.enteringChildren&&s){const{delayChildren:e}=s.transition||{};n.delay=Fe(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(u.size){const e={};if("boolean"!=typeof o.initial){const n=He(t,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(e.transition=n.transition)}u.forEach(n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=i??null}),l.push({animation:e})}let d=Boolean(l.length);return!i||!1!==o.initial&&o.initial!==o.animate||t.manuallyAnimateOnMount||(d=!1),i=!1,d?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,i){var s;if(n[e].isActive===i)return Promise.resolve();null==(s=t.variantChildren)||s.forEach(t=>{var n;return null==(n=t.animationState)?void 0:n.setActive(e,i)}),n[e].isActive=i;const o=r(e);for(const t in n)n[t].protectedKeys={};return o},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=$n()}}}function Yn(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Hn(e,t)}function Xn(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $n(){return{animate:Xn(!0),whileInView:Xn(),whileHover:Xn(),whileTap:Xn(),whileDrag:Xn(),whileFocus:Xn(),exit:Xn()}}function Jn(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}let Zn=0;const Qn={animation:{Feature:class extends vn{constructor(t){super(t),t.animationState||(t.animationState=zn(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();I(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}},exit:{Feature:class extends vn{constructor(){super(...arguments),this.id=Zn++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>
1{e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function ti(t){return{point:{x:t.pageX,y:t.pageY}}}const ei=t=>e=>ln(e)&&t(e,ti(e));function ni(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const s=i["onHover"+n];s&&c.postRender(()=>s(e,ti(e)))}function ii(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const s=i["onTap"+("End"===n?"":n)];s&&c.postRender(()=>s(e,ti(e)))}const si=new WeakMap,ri=new WeakMap,oi=t=>{const e=si.get(t.target);e&&e(t)},ai=t=>{t.forEach(oi)};function li(t,e,n){const i=function({root:t,...e}){const n=t||document;ri.has(n)||ri.set(n,{});const i=ri.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(ai,{root:t,...e})),i[s]}(e);return si.set(t,n),i.observe(t),()=>{si.delete(t),i.unobserve(t)}}const ui={some:0,all:1};const ci={renderer:(t,e)=>e.isSVG??z(t)?new Nn(e):new jn(e,{allowProjection:t!==X.Fragment}),...Qn,...{inView:{Feature:class extends vn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:ui[i]};return li(this.node.current,r,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),r=e?n:i;r&&r(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends vn{mount(){const{current:t}=this.node;t&&(this.unmount=fn(t,(t,e)=>(ii(this.node,e,"Start"),(t,{success:e})=>ii(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends vn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Z(Jn(this.node.current,"focus",()=>this.onFocus()),Jn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends vn{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){const[i,s,r]=rn(t,n),o=t=>{if(!on(t))return;const{target:n}=t,i=e(n,t);if("function"!=typeof i||!n)return;const r=t=>{on(t)&&(i(t),n.removeEventListener("pointerleave",r))};n.addEventListener("pointerleave",r,s)};return i.forEach(t=>{t.addEventListener("pointerenter",o,s)}),r}(t,(t,e)=>(ni(this.node,e,"Start"),t=>ni(this.node,t,"End"))))}unmount(){}}}}},hi=Object.freeze(Object.defineProperty({__proto__:null,default:ci},Symbol.toStringTag,{value:"Module"}));export{ci as A,hi as B,vn as F,qe as a,In as b,ht as c,bn as d,Pn as e,An as f,_e as g,xn as h,nn as i,Dn as j,Xe as k,Jn as l,ei as m,ln as n,ti as o,Q as p,Z as q,tt as r,Mn as s,On as t,et as u,Rn as v,Tn as w,gn as x,Ye as y,cn as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.