PageSourceSearch

https://www.glassroom.ca/_next/static/chunks/dbac7db7-9818b75ee7d805b4.js?dpl=dpl_HSEjzP66xs8hPZq1hziM66DEBbW7

js glassroom.ca collected 2026-10-07 21:27:05 UTC 112,493 bytes, 3 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4141],{93244:(t,e,i)=>{let n,s,r;Object.defineProperty(e,"__esModule",{value:!0});var a=i(21415);let o=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],l={value:null,addProjectionMetrics:null};function u(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,u=o.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},u=0;function h(e){a.has(e)&&(d.schedule(e),t()),u++,e(o)}let d={schedule:(t,e=!1,r=!1)=>{let o=r&&s?i:n;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(o=t,s){r=!0;return}s=!0,[i,n]=[n,i],i.forEach(h),e&&l.value&&l.value.frameloop[e].push(u),u=0,i.clear(),s=!1,r&&(r=!1,d.process(t))}};return d}(r,e?i:void 0),t),{}),{setup:h,read:d,resolveKeyframes:c,preUpdate:p,update:m,preRender:f,render:g,postRender:y}=u,v=()=>{let r=a.MotionGlobalConfig.useManualTiming?s.timestamp:performance.now();i=!1,a.MotionGlobalConfig.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(r-s.timestamp,40),1)),s.timestamp=r,s.isProcessing=!0,h.process(s),d.process(s),c.process(s),p.process(s),m.process(s),f.process(s),g.process(s),y.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(v))};return{schedule:o.reduce((e,r)=>{let a=u[r];return e[r]=(e,r=!1,o=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||t(v)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<o.length;e++)u[o[e]].cancel(t)},state:s,steps:u}}let{schedule:h,cancel:d,state:c,steps:p}=u("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:a.noop,!0);function m(){n=void 0}let f={now:()=>(void 0===n&&f.set(c.isProcessing||a.MotionGlobalConfig.useManualTiming?c.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(m)}},g={layout:0,mainThread:0,waapi:0},y=t=>e=>"string"==typeof e&&e.startsWith(t),v=y("--"),T=y("var(--"),x=t=>!!T(t)&&w.test(t.split("/*")[0].trim()),w=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function b(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let S={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},A={...S,transform:t=>a.clamp(0,1,t)},V={...S,default:1},P=t=>Math.round(1e5*t)/1e5,M=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,E=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,D=(t,e)=>i=>!!("string"==typeof i&&E.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),k=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,a,o]=n.match(M);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},R={...S,transform:t=>Math.round(a.clamp(0,255,t))},C={test:D("rgb","red"),parse:k("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+R.transform(t)+", "+R.transform(e)+", "+R.transform(i)+", "+P(A.transform(n))+")"},B={test:D("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:C.transform},j=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),F=j("deg"),L=j("%"),O=j("px"),I=j("vh"),N=j("vw"),U={...L,parse:t=>L.parse(t)/100,transform:t=>L.transform(100*t)},$={test:D("hsl","hue"),parse:k("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+L.transform(P(e))+", "+L.transform(P(i))+", "+P(A.transform(n))+")"},W={test:t=>C.test(t)||B.test(t)||$.test(t),parse:t=>C.test(t)?C.parse(t):$.test(t)?$.parse(t):B.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?C.transform(t):$.transform(t),getAnimatableNone:t=>{let e=W.parse(t);return e.alpha=0,W.transform(e)}},z=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,K="number",Y="color",X=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function G(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,a=e.replace(X,t=>(W.test(t)?(n.color.push(r),s.push(Y),i.push(W.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(K),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:a,indexes:n,types:s}}function q(t){return G(t).values}function H(t){let{split:e,types:i}=G(t),n=e.length;return t=>{let s="";for(let r=0;r<n;r++)if(s+=e[r],void 0!==t[r]){let e=i[r];e===K?s+=P(t[r]):e===Y?s+=W.transform(t[r]):s+=t[r]}return s}}let Z=t=>"number"==typeof t?0:W.test(t)?W.getAnimatableNone(t):t,_={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(M)?.length||0)+(t.match(z)?.length||0)>0},parse:q,createTransformer:H,getAnimatableNone:function(t){let e=q(t);return H(t)(e.map(Z))}};function J(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function Q({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;s=J(o,n,t+1/3),r=J(o,n,t),a=J(o,n,t-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}function tt(t,e){return i=>i>0?e:t}let te=(t,e,i)=>
1t+(e-t)*i,ti=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},tn=[B,C,$];function ts(t){let e=tn.find(e=>e.test(t));if(a.warning(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===$&&(i=Q(i)),i}let tr=(t,e)=>{let i=ts(t),n=ts(e);if(!i||!n)return tt(t,e);let s={...i};return t=>(s.red=ti(i.red,n.red,t),s.green=ti(i.green,n.green,t),s.blue=ti(i.blue,n.blue,t),s.alpha=te(i.alpha,n.alpha,t),C.transform(s))},ta=new Set(["none","hidden"]);function to(t,e){return ta.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}function tl(t,e){return i=>te(t,e,i)}function tu(t){return"number"==typeof t?tl:"string"==typeof t?x(t)?tt:W.test(t)?tr:tc:Array.isArray(t)?th:"object"==typeof t?W.test(t)?tr:td:tt}function th(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>tu(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function td(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=tu(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let tc=(t,e)=>{let i=_.createTransformer(e),n=G(t),s=G(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?ta.has(t)&&!s.values.length||ta.has(e)&&!n.values.length?to(t,e):a.pipe(th(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],a=t.indexes[r][n[r]],o=t.values[a]??0;i[s]=o,n[r]++}return i}(n,s),s.values),i):(a.warning(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),tt(t,e))};function tp(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?te(t,e,i):tu(t)(t,e)}let tm=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>h.update(e,t),stop:()=>d(e),now:()=>c.isProcessing?c.timestamp:f.now()}},tf=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function tg(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function ty(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(tg(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:a.millisecondsToSeconds(s)}}function tv(t,e,i){let n=Math.max(e-5,0);return a.velocityPerSecond(i-t(n),e-n)}let tT={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tx(t,e){return t*Math.sqrt(1-e*e)}let tw=["duration","bounce"],tb=["stiffness","damping","mass"];function tS(t,e){return e.some(e=>void 0!==t[e])}function tA(t=tT.visualDuration,e=tT.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:r}=n,o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:h,damping:d,mass:c,duration:p,velocity:m,isResolvedFromDuration:f}=function(t){let e={velocity:tT.velocity,stiffness:tT.stiffness,damping:tT.damping,mass:tT.mass,isResolvedFromDuration:!1,...t};if(!tS(t,tb)&&tS(t,tw))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*a.clamp(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:tT.mass,stiffness:n,damping:s}}else{let i=function({duration:t=tT.duration,bounce:e=tT.bounce,velocity:i=tT.velocity,mass:n=tT.mass}){let s,r;a.warning(t<=a.secondsToMilliseconds(tT.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=a.clamp(tT.minDamping,tT.maxDamping,o),t=a.clamp(tT.minDuration,tT.maxDuration,a.millisecondsToSeconds(t)),o<1?(s=e=>{let n=e*o,s=n*t;return .001-(n-i)/tx(e,o)*Math.exp(-s)},r=e=>{let n=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=tx(Math.pow(e,2),o);return(n*i+i-r)*a*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));
1let l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=a.secondsToMilliseconds(t),isNaN(l))return{stiffness:tT.stiffness,damping:tT.damping,duration:t};{let e=Math.pow(l,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:tT.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-a.millisecondsToSeconds(n.velocity||0)}),g=m||0,y=d/(2*Math.sqrt(h*c)),v=l-o,T=a.millisecondsToSeconds(Math.sqrt(h/c)),x=5>Math.abs(v);if(s||(s=x?tT.restSpeed.granular:tT.restSpeed.default),r||(r=x?tT.restDelta.granular:tT.restDelta.default),y<1){let t=tx(T,y);i=e=>l-Math.exp(-y*T*e)*((g+y*T*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===y)i=t=>l-Math.exp(-T*t)*(v+(g+T*v)*t);else{let t=T*Math.sqrt(y*y-1);i=e=>{let i=Math.exp(-y*T*e),n=Math.min(t*e,300);return l-i*((g+y*T*v)*Math.sinh(n)+t*v*Math.cosh(n))/t}}let w={calculatedDuration:f&&p||null,next:t=>{let e=i(t);if(f)u.done=t>=p;else{let n=0===t?g:0;y<1&&(n=0===t?a.secondsToMilliseconds(g):tv(i,t,e));let o=Math.abs(l-e)<=r;u.done=Math.abs(n)<=s&&o}return u.value=u.done?l:e,u},toString:()=>{let t=Math.min(tg(w),2e4),e=tf(e=>w.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return w}function tV({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===a?g:a(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),T=t=>y+v(t),x=t=>{let e=v(t),i=T(t);m.done=Math.abs(e)<=u,m.value=m.done?y:i},w=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;d=t,c=tA({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:tv(T,t,m.value),damping:s,stiffness:r,restDelta:u,restSpeed:h})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,x(t),w(t)),void 0!==d&&t>=d)?c.next(t-d):(e||x(t),m)}}}function tP(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(a.invariant(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let n=[],s=i||a.MotionGlobalConfig.mix||tp,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||a.noop:e;r=a.pipe(t,r)}n.push(r)}return n}(e,n,s),u=l.length,h=i=>{if(o&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=a.progress(t[n],t[n+1],i);return l[n](s)};return i?e=>h(a.clamp(t[0],t[r-1],e)):h}function tM(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=a.progress(0,e,n);t.push(te(i,1,s))}}function tE(t){let e=[0];return tM(e,t.length-1),e}function tD(t,e){return t.map(t=>t*e)}function tk(t,e){return t.map(()=>e||a.easeInOut).splice(0,t.length-1)}function tR({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let s=a.isEasingArray(n)?n.map(a.easingDefinitionToFunction):a.easingDefinitionToFunction(n),r={done:!1,value:e[0]},o=tP(tD(i&&i.length===e.length?i:tE(e),t),e,{ease:Array.isArray(s)?s:tk(e,s)});return{calculatedDuration:t,next:e=>(r.value=o(e),r.done=e>=t,r)}}tA.applyToOptions=t=>{let e=ty(t,100,tA);return t.ease=e.ease,t.duration=a.secondsToMilliseconds(e.duration),t.type="keyframes",t};let tC=t=>null!==t;function tB(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(tC),a=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==n?n:r[a]}let tj={decay:tV,inertia:tV,tween:tR,keyframes:tR,spring:tA};function tF(t){"string"==typeof t.type&&(t.type=tj[t.type])}class tL{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)}}let tO=t=>t/100;class tI extends tL{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==f.now()&&this.tick(f.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},g.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;tF(t);let{type:e=tR,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:o}=t,l=e||tR;l!==tR&&"number"!=typeof o[0]&&(this.mixKeyframes=a.pipe(tO,tp(o[0],o[1])),o=[0,100]);let u=l({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-r})),null===u.calculatedDuration&&(u.calculatedDuration=tg(u));let{calculatedDuration:h}=u;this.calculatedDuration=h,this.resolvedDuration=h+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=u}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:h,repeat:d,repeatType:c,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let T=this.currentTime,x=i;if(d){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===c?(i=1-i,p&&(i-=p/o)):"mirror"===c&&(x=r)),T=a.clamp(0,1,i)*o}let w=v?{done:!1,value:h[0]}:x.next(T);s&&(w.value=s(w.value));let{done:b}=w;v||null===l||(b=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return S&&m!==tV&&(w.value=tB(h,this.options,g,this.speed)),f&&f(w.value),S&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return a.millisecondsToSeconds(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+a.millisecondsToSeconds(t)}get time(){return a.millisecondsToSeconds(this.currentTime)}set time(t){t=a.secondsToMilliseconds(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(f.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=a.millisecondsToSeconds(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=tm,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let 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(f.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,g.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)}}function tN(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}let tU=t=>180*t/Math.PI,t$=t=>tz(tU(Math.atan2(t[1],t[0]))),tW={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:t$,rotateZ:t$,skewX:t=>tU(Math.atan(t[1])),skewY:t=>tU(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tz=t=>((t%=360)<0&&(t+=360),t),tK=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tY=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tX={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tK,scaleY:tY,scale:t=>(tK(t)+tY(t))/2,rotateX:t=>tz(tU(Math.atan2(t[6],t[5]))),rotateY:t=>tz(tU(Math.atan2(-t[2],t[0]))),rotateZ:t$,rotate:t$,skewX:t=>tU(Math.atan(t[4])),skewY:t=>tU(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tG(t){return+!!t.includes("scale")}function tq(t,e){let i,n;if(!t||"none"===t)return tG(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=tX,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tW,n=e}if(!n)return tG(e);let r=i[e],a=n[1].split(",").map(tZ);return"function"==typeof r?r(a):a[r]}let tH=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tq(i,e)};function tZ(t){return parseFloat(t.trim())}let t_=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tJ=new Set(t_),tQ=t=>t===S||t===O,t0=new Set(["x","y","z"]),t1=t_.filter(t=>!t0.has(t)),t5={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})=>tq(e,"x"),y:(t,{transform:e})=>tq(e,"y")};t5.translateX=t5.x,t5.translateY=t5.y;let t2=new Set,t3=!1,t9=!1,t4=!1;function t6(){if(t9){let t=Array.from(t2).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];
1return t1.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let 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)})}t9=!1,t3=!1,t2.forEach(t=>t.complete(t4)),t2.clear()}function t8(){t2.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(t9=!0)})}function t7(){t4=!0,t8(),t6(),t4=!1}class et{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(t2.add(this),t3||(t3=!0,h.read(t8),h.resolveKeyframes(t6))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}tN(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),t2.delete(this)}cancel(){"scheduled"===this.state&&(t2.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let ee=t=>t.startsWith("--");function ei(t,e,i){ee(e)?t.style.setProperty(e,i):t.style[e]=i}let en={};function es(t,e){let i=a.memo(t);return()=>en[e]??i()}let er=es(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),ea=es(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),eo=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,el={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eo([0,.65,.55,1]),circOut:eo([.55,0,1,.45]),backIn:eo([.31,.01,.66,-.59]),backOut:eo([.33,1.53,.69,.99])};function eu(t,e){if(t)return"function"==typeof t?ea()?tf(t,e):"ease-out":a.isBezierDefinition(t)?eo(t):Array.isArray(t)?t.map(t=>eu(t,e)||el.easeOut):el[t]}function eh(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:u}={},h){let d={[e]:i};u&&(d.offset=u);let c=eu(o,s);Array.isArray(c)&&(d.easing=c),l.value&&g.waapi++;let p={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};h&&(p.pseudoElement=h);let m=t.animate(d,p);return l.value&&m.finished.finally(()=>{g.waapi--}),m}function ed(t){return"function"==typeof t&&"applyToOptions"in t}function ec({type:t,...e}){return ed(t)&&ea()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class ep extends tL{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,a.invariant("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let u=ec(t);this.animation=eh(e,i,n,u,s),!1===u.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=tB(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):ei(e,i,t),this.animation.cancel()}l?.(),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;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return a.millisecondsToSeconds(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+a.millisecondsToSeconds(t)}get time(){return a.millisecondsToSeconds(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=a.secondsToMilliseconds(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&&er())?(this.animation.timeline=t,a.noop):e(this)}}let em={anticipate:a.anticipate,backInOut:a.backInOut,circInOut:a.circInOut};class ef extends ep{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in em&&(t.ease=em[t.ease])}(t),tF(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new tI({...r,autoplay:!1}),l=Math.max(10,f.now()-this.startTime),u=a.clamp(0,10,l-10);e.setWithVelocity(o.sample(Math.max(0,l-u)).value,o.sample(l).value,u),o.stop()}}let eg=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(_.test(t)||"0"===t)&&!t.startsWith("url("));function ey(t){t.duration=0,t.type="keyframes"}let ev=new Set(["opacity","clipPath","filter","transform"]),eT=a.memo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ex(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;
1let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return eT()&&i&&ev.has(i)&&("transform"!==i||!l)&&!o&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}class ew extends tL{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=f.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:l,element:u,...h},c=u?.KeyframeResolver||et;this.keyframeResolver=new c(a,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:r,velocity:o,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=f.now(),!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=eg(s,e),l=eg(r,e);return a.warning(o===l,`You are trying to animate ${e} from "${s}" to "${r}". "${o?r:s}" is not an animatable value.`,"value-not-animatable"),!!o&&!!l&&(function(t){let 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||ed(i))&&n)}(t,s,r,o)&&((a.MotionGlobalConfig.instantAnimations||!l)&&h?.(tB(t,i,e)),t[0]=t[t.length-1],ey(i),i.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!u&&ex(d),p=d.motionValue?.owner?.current,m=c?new ef({...d,element:p}):new tI(d);m.finished.then(()=>{this.notifyFinished()}).catch(a.noop),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}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(),t7()),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()}}class eb{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){let e=this.animations.map(e=>e.attachTimeline(t));return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return eS(this.animations,"duration")}get iterationDuration(){return eS(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function eS(t,e){let i=0;for(let n=0;n<t.length;n++){let s=t[n][e];null!==s&&s>i&&(i=s)}return i}class eA extends eb{then(t,e){return this.finished.finally(t).then(()=>{})}}class eV extends ep{constructor(t){super(),this.animation=t,t.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()}}}let eP=new WeakMap;function eM(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(r,a):1===s?r*n:o-r*n}let eE=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function eD(t){let e=eE.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}function ek(t,e,i=1){a.invariant(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,s]=eD(t);if(!n)return;let r=window.getComputedStyle(e).getPropertyValue(n);if(r){let t=r.trim();return a.isNumericalString(t)?parseFloat(t):t}return x(s)?ek(s,e,i+1):s}let eR={type:"spring",stiffness:500,damping:25,restSpeed:10},eC={type:"keyframes",duration:.8},eB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ej=(t,{keyframes:e})=>e.length>2?eC:tJ.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:eR:eB,eF=t=>null!==t;function eL(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(eF),r=e&&"loop"!==i&&e%2==1?0:s.length-1;return r&&void 0!==n?n:s[r]}function eO(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function eI(t,e){let i=t?.[e]??t?.default??t;return i!==t?eO(i,t):i}function eN({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}let eU=(t,e,i,n={},s,r)=>o=>{let l=eI(n,t)||{},u=l.delay||n.delay||0,{elapsed:d=0}=n;d-=a.secondsToMilliseconds(u);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-d,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:s};eN(l)||Object.assign(c,ej(t,c)),c.duration&&(c.duration=a.secondsToMilliseconds(c.duration)),c.repeatDelay&&(c.repeatDelay=a.secondsToMilliseconds(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let p=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(ey(c),0===c.delay&&(p=!0)),(a.MotionGlobalConfig.instantAnimations||a.MotionGlobalConfig.skipAnimations||s?.shouldSkipAnimations)&&(p=!0,ey(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,p&&!r&&void 0!==e.get()){let t=eL(c.keyframes,l);if(void 0!==t)return void h.update(()=>{c.onUpdate(t),c.onComplete()})}return l.isSync?new tI(c):new ew(c)};function e$(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eW(t,e,i,n){if("function"==typeof e){let[s,r]=e$(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=e$(n);e=e(void 0!==i?i:t.custom,s,r)}return e}function ez(t,e,i){let n=t.getProps();return eW(n,e,void 0!==i?i:n.custom,t)}let eK=new Set(["width","height","top","left","right","bottom",...t_]),eY={current:void 0};class eX{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=f.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=f.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new a.SubscriptionManager);let i=this.events[t].add(e);return"change"===t?()=>{i(),h.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return eY.current&&eY.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=f.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return a.velocityPerSecond(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function eG(t,e){return new eX(t,e)}let eq=t=>Array.isArray(t);function eH(t,e){let{transitionEnd:i={},transition:n={},...s}=ez(t,e)||{};for(let e in s={...s,...i}){var r;let i=eq(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,eG(i))}}let eZ=t=>!!(t&&t.getVelocity);function e_(t){return!!(eZ(t)&&t.add)}function eJ(t,e){let i=t.getValue("willChange");if(e_(i))return i.add(e);if(!i&&a.MotionGlobalConfig.WillChange){let i=new a.MotionGlobalConfig.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function eQ(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let e0="framerAppearId",e1="data-"+eQ(e0);function e5(t){return t.props[e1]}function e2(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:a,...o}=e,l=t.getDefaultTransition();r=r?eO(r,l):l;let u=r?.reduceMotion;n&&(r=n);let d=[],c=s&&t.animationState&&t.animationState.getState()[s];for(let e in o){let n=t.getValue(e,t.latestValues[e]??null),s=o[e];if(void 0===s||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let a={delay:i,...eI(r||{},e)},l=n.get();if(void 0!==l&&!n.isAnimating&&!Array.isArray(s)&&s===l&&!a.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){let i=e5(t);if(i){let t=window.MotionHandoffAnimation(i,e,h);null!==t&&(a.startTime=t,p=!0)}}eJ(t,e);let m=u??t.shouldReduceMotion;n.start(eU(e,n,s,m&&eK.has(e)?{type:!1}:a,t,p));let f=n.animation;f&&d.push(f)}if(a){let e=()=>h.update(()=>{a&&eH(t,a)});d.length?Promise.all(d).then(e):e()}return d}function e3(t,e,i={}){let n=ez(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(e2(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;
1return function(t,e,i=0,n=0,s=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(e3(l,e,{...a,delay:i+("function"==typeof n?0:n)+eM(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,r,a,o,i)}:()=>Promise.resolve(),{when:o}=s;if(!o)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[r,a]:[a,r];return t().then(()=>e())}}function e9(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>e3(t,e,i)));else if("string"==typeof e)n=e3(t,e,i);else{let s="function"==typeof e?ez(t,e,i.custom):e;n=Promise.all(e2(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})}let e4=t=>e=>e.test(t),e6=[S,O,L,F,N,I,{test:t=>"auto"===t,parse:t=>t}],e8=t=>e6.find(e4(t)),e7=new Set(["brightness","contrast","saturate","opacity"]);function it(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(M)||[];if(!n)return t;let s=i.replace(n,""),r=+!!e7.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let ie=/\b([a-z-]*)\(.*?\)/gu,ii={..._,getAnimatableNone:t=>{let e=t.match(ie);return e?e.map(it).join(" "):t}},is={..._,getAnimatableNone:t=>{let e=_.parse(t);return _.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},ir={...S,transform:Math.round},ia={rotate:F,rotateX:F,rotateY:F,rotateZ:F,scale:V,scaleX:V,scaleY:V,scaleZ:V,skew:F,skewX:F,skewY:F,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:A,originX:U,originY:U,originZ:O},io={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,inset:O,insetBlock:O,insetBlockStart:O,insetBlockEnd:O,insetInline:O,insetInlineStart:O,insetInlineEnd:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,paddingBlock:O,paddingBlockStart:O,paddingBlockEnd:O,paddingInline:O,paddingInlineStart:O,paddingInlineEnd:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,marginBlock:O,marginBlockStart:O,marginBlockEnd:O,marginInline:O,marginInlineStart:O,marginInlineEnd:O,fontSize:O,backgroundPositionX:O,backgroundPositionY:O,...ia,zIndex:ir,fillOpacity:A,strokeOpacity:A,numOctaves:ir},il={...io,color:W,backgroundColor:W,outlineColor:W,fill:W,stroke:W,borderColor:W,borderTopColor:W,borderRightColor:W,borderBottomColor:W,borderLeftColor:W,filter:ii,WebkitFilter:ii,mask:is,WebkitMask:is},iu=t=>il[t],ih=new Set([ii,is]);function id(t,e){let i=iu(t);return ih.has(i)||(i=_),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let ic=new Set(["auto","none","0"]);class ip extends et{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&x(n=n.trim())){let s=ek(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!eK.has(i)||2!==t.length)return;let[n,s]=t,r=e8(n),a=e8(s);if(b(n)!==b(s)&&t5[i]){this.needsMeasurement=!0;return}if(r!==a)if(tQ(r)&&tQ(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else t5[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||a.isZeroValueString(n)))&&i.push(e)}i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!ic.has(e)&&G(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=id(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=t5[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=t5[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let im=new Set(["borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","width","maxWidth","height","maxHeight","top","right","bottom","left","inset","insetBlock","insetBlockStart","insetBlockEnd","insetInline","insetInlineStart","insetInlineEnd","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingBlockStart","paddingBlockEnd","paddingInline","paddingInlineStart","paddingInlineEnd","margin","marginTop","marginRight","marginBottom","marginLeft","marginBlock","marginBlockStart","marginBlockEnd","marginInline","marginInlineStart","marginInlineEnd","fontSize","backgroundPositionX","backgroundPositionY"]),ig=a.memo(()=>{try{document.createElement("div").animate({opacity:[1]})}catch(t){return!1}return!0}),iy=new Set(["opacity","clipPath","filter","transform"]);function iv(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}function iT(t){return(e,i)=>{let n=iv(e),s=[];for(let e of n){let n=t(e,i);s.push(n)}return()=>{for(let t of s)t()}}}let ix=(t,e)=>e&&"number"==typeof t?e.transform(t):t;class iw{constructor(){this.latest={},this.values=new Map}set(t,e,i,n,s=!0){let r=this.values.get(t);r&&r.onRemove();let a=()=>{let n=e.get();s?this.latest[t]=ix(n,io[t]):this.latest[t]=n,i&&h.render(i)};a();let o=e.on("change",a);n&&e.addDependent(n);let l=()=>{o(),i&&d(i),this.values.delete(t),n&&e.removeDependent(n)};return this.values.set(t,{value:e,onRemove:l}),l}get(t){return this.values.get(t)?.value}destroy(){for(let t of this.values.values())t.onRemove()}}function ib(t){let e=new WeakMap,i=[];return(n,s)=>{let r=e.get(n)??new iw;for(let a in e.set(n,r),s){let e=s[a],o=t(n,r,a,e);i.push(o)}return()=>{for(let t of i)t()}}}let iS=(t,e,i,n)=>{let s=function(t,e){if(!(e in t))return!1;let i=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);return i&&"function"==typeof i.set}(t,i),r=s?i:i.startsWith("data")||i.startsWith("aria")?eQ(i):i,a=s?()=>{t[r]=e.latest[i]}:()=>{let n=e.latest[i];null==n?t.removeAttribute(r):t.setAttribute(r,String(n))};return e.set(i,n,a)},iA=iT(ib(iS)),iV=ib((t,e,i,n)=>e.set(i,n,()=>{t[i]=e.latest[i]},void 0,!1));function iP(t){return a.isObject(t)&&"offsetHeight"in t}let iM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iE=new Set(["originX","originY","originZ"]),iD=(t,e,i,n)=>{let s,r;return tJ.has(i)?(e.get("transform")||(iP(t)||e.get("transformBox")||iD(t,e,"transformBox",new eX("fill-box")),e.set("transform",new eX("none"),()=>{t.style.transform=function(t){let e="",i=!0;for(let n=0;n<t_.length;n++){let s=t_[n],r=t.latest[s];if(void 0===r)continue;let a=!0;if("number"==typeof r)a=r===+!!s.startsWith("scale");else{let t=parseFloat(r);a=s.startsWith("scale")?1===t:0===t}if(!a){i=!1;let n=iM[s]||s,r=t.latest[s];e+=`${n}(${r}) `}}return i?"none":e.trim()}(e)})),r=e.get("transform")):iE.has(i)?(e.get("transformOrigin")||e.set("transformOrigin",new eX(""),()=>{let i=e.latest.originX??"50%",n=e.latest.originY??"50%",s=e.latest.originZ??0;t.style.transformOrigin=`${i} ${n} ${s}`}),r=e.get("transformOrigin")):s=ee(i)?()=>{t.style.setProperty(i,e.latest[i])}:()=>{t.style[i]=e.latest[i]},e.set(i,n,s,r)},ik=iT(ib(iD)),iR=iT(ib((t,e,i,n)=>i.startsWith("path")?function(t,e,i,n){return(h.render(()=>t.setAttribute("pathLength","1")),"pathOffset"===i)?e.set(i,n,()=>{let n=e.latest[i];t.setAttribute("stroke-dashoffset",`${-n}`)}):(e.get("stroke-dasharray")||e.set("stroke-dasharray",new eX("1 1"),()=>{let{pathLength:i=1,pathSpacing:n}=e.latest;t.setAttribute("stroke-dasharray",`${i} ${n??1-Number(i)}`)}),e.set(i,n,void 0,e.get("stroke-dasharray")))}(t,e,i,n):i.startsWith("attr")?iS(t,e,i.replace(/^attr([A-Z])/,(t,e)=>e.toLowerCase()),n):(i in t.style?iD:iS)(t,e,i,n))),{schedule:iC,cancel:iB}=u(queueMicrotask,!1),ij={x:!1,y:!1};function iF(){return ij.x||ij.y}function iL(t,e){let i=iv(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}let iO=(t,e)=>!!e&&(t===e||iO(t,e.parentElement)),iI=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,iN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function iU(t){return iN.has(t.tagName)||!0===t.isContentEditable}let i$=new Set(["INPUT","SELECT","TEXTAREA"]),iW=new WeakSet;function iz(t){return e=>{"Enter"===e.key&&t(e)}}function iK(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let iY=new WeakSet;function iX(t){return a.isObject(t)&&"ownerSVGElement"in t}let iG=new WeakMap,iq=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:iX(n)&&"getBBox"in n?n.getBBox()[e]:n[i],iH=iq("inline","width","offsetWidth"),iZ=iq("block","height","offsetHeight");function i_({target:t,borderBoxSize:e}){iG.get(t)?.forEach(i=>
1{i(t,{get width(){return iH(t,e)},get height(){return iZ(t,e)}})})}function iJ(t){t.forEach(i_)}let iQ=new Set;function i0(){let{value:t}=l;if(null===t)return void d(i0);t.frameloop.rate.push(c.delta),t.animations.mainThread.push(g.mainThread),t.animations.waapi.push(g.waapi),t.animations.layout.push(g.layout)}function i1(t){return t.reduce((t,e)=>t+e,0)/t.length}function i5(t,e=i1){return 0===t.length?{min:0,max:0,avg:0}:{min:Math.min(...t),max:Math.max(...t),avg:e(t)}}let i2=t=>Math.round(1e3/t);function i3(){l.value=null,l.addProjectionMetrics=null}function i9(){let{value:t}=l;if(!t)throw Error("Stats are not being measured");i3(),d(i0);let e={frameloop:{setup:i5(t.frameloop.setup),rate:i5(t.frameloop.rate),read:i5(t.frameloop.read),resolveKeyframes:i5(t.frameloop.resolveKeyframes),preUpdate:i5(t.frameloop.preUpdate),update:i5(t.frameloop.update),preRender:i5(t.frameloop.preRender),render:i5(t.frameloop.render),postRender:i5(t.frameloop.postRender)},animations:{mainThread:i5(t.animations.mainThread),waapi:i5(t.animations.waapi),layout:i5(t.animations.layout)},layoutProjection:{nodes:i5(t.layoutProjection.nodes),calculatedTargetDeltas:i5(t.layoutProjection.calculatedTargetDeltas),calculatedProjections:i5(t.layoutProjection.calculatedProjections)}},{rate:i}=e.frameloop;return i.min=i2(i.min),i.max=i2(i.max),i.avg=i2(i.avg),[i.min,i.max]=[i.max,i.min],e}function i4(t){return iX(t)&&"svg"===t.tagName}function i6(t,e){if("first"===t)return 0;{let i=e-1;return"last"===t?i:i/2}}function i8(...t){let e=!Array.isArray(t[0]),i=e?0:-1,n=t[0+i],s=t[1+i],r=tP(s,t[2+i],t[3+i]);return e?r(n):r}function i7(t,e){let i=eG(eZ(t)?t.get():t);return nt(i,t,e),i}function nt(t,e,i={}){let n,s=t.get(),r=null,a=s,o="string"==typeof s?s.replace(/[\d.-]/g,""):void 0,l=()=>{r&&(r.stop(),r=null)};if(t.attach((e,s)=>{a=e,n=t=>{var e,i;return s((e=t,(i=o)?e+i:e))},h.postRender(()=>{l();let e=ne(t.get()),s=ne(a);e!==s&&(r=new tI({keyframes:[e,s],velocity:t.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...i,onUpdate:n})),t.events.animationStart?.notify(),r?.then(()=>{t.events.animationComplete?.notify()})})},l),eZ(e)){let i=e.on("change",e=>{var i,n;return t.set((i=e,(n=o)?i+n:i))}),n=t.on("destroy",i);return()=>{i(),n()}}return l}function ne(t){return"number"==typeof t?t:parseFloat(t)}function ni(t){let e=[];eY.current=e;let i=t();eY.current=void 0;let n=eG(i),s=()=>n.set(t()),r=()=>h.preRender(s,!1,!0),a=e.map(t=>t.on("change",r));return n.on("destroy",()=>{a.forEach(t=>t()),d(s)}),n}let nn=[...e6,W,_],ns=t=>nn.find(e4(t)),nr={},na=null,no={set:(t,e)=>{nr[t]=e},commit:()=>{na||((na=document.createElement("style")).id="motion-view");let t="";for(let e in nr){let i=nr[e];for(let[n,s]of(t+=`${e} {
2`,Object.entries(i)))t+=`  ${n}: ${s};
3`;t+="}\n"}na.textContent=t,document.head.appendChild(na),nr={}},remove:()=>{na&&na.parentElement&&na.parentElement.removeChild(na)}};function nl(t){let e=t.match(/::view-transition-(old|new|group|image-pair)\((.*?)\)/);return e?{layer:e[2],type:e[1]}:null}function nu(t){let{effect:e}=t;return!!e&&e.target===document.documentElement&&e.pseudoElement?.startsWith("::view-transition")}function nh(){return document.getAnimations().filter(nu)}let nd=["layout","enter","exit","new","old"];function nc(t,e){return t?.[e]?.keyframes.opacity}let np=[],nm=null;function nf(){for(let t=np.length-1;t>=0;t--){let e=np[t],{interrupt:i}=e.options;if("immediate"===i){let i=np.slice(0,t+1).map(t=>t.update),n=np.slice(t+1);e.update=()=>{i.forEach(t=>t())},np=[e,...n];break}}nm&&np[0]?.options.interrupt!=="immediate"||function t(){var e;nm=null;let[i]=np;i&&(e=i,a.removeItem(np,e),nm=e,(function(t){let{update:e,targets:i,options:n}=t;if(!document.startViewTransition)return new Promise(async t=>{await e(),t(new eb([]))});i.has("root")&&Object.keys(i.get("root")).length>0||no.set(":root",{"view-transition-name":"none"}),no.set("::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)",{"animation-timing-function":"linear !important"}),no.commit();let s=document.startViewTransition(async()=>{await e()});return s.finished.finally(()=>{no.remove()}),new Promise(t=>{s.ready.then(()=>{let e=nh(),s=[];for(let t of(i.forEach((t,e)=>{for(let i of nd){if(!t[i])continue;let{keyframes:r,options:o}=t[i];for(let[t,l]of Object.entries(r)){if(!l)continue;let r={...eI(n,t),...eI(o,t)},u="layout"===i?"group":"enter"===i||"new"===i?"new":"exit"===i||"old"===i?"old":"group";"opacity"!==t||Array.isArray(l)||(l=[+("new"!==u),l]),"function"==typeof r.delay&&(r.delay=r.delay(0,1)),r.duration&&(r.duration=a.secondsToMilliseconds(r.duration)),r.delay&&(r.delay=a.secondsToMilliseconds(r.delay));let h=new ep({...r,element:document.documentElement,name:t,pseudoElement:`::view-transition-${u}(${e})`,keyframes:l});s.push(h)}}}),e)){if("finished"===t.playState)continue;let{effect:e}=t;if(!e||!(e instanceof KeyframeEffect))continue;let{pseudoElement:r}=e;if(!r)continue;let o=nl(r);if(!o)continue;let l=i.get(o.layer);if(l)nc(l,"enter")&&nc(l,"exit")&&e.getKeyframes().some(t=>t.mixBlendMode)?s.push(new eV(t)):t.cancel();else{let i={...eI(n,"group"===o.type?"layout":"")};i.duration&&(i.duration=a.secondsToMilliseconds(i.duration));let r=eu((i=ec(i)).ease,i.duration);e.updateTiming({delay:a.secondsToMilliseconds(i.delay??0),duration:i.duration,easing:r}),s.push(new eV(t))}}t(new eb(s))})})})(e).then(i=>{e.notifyReady(i),i.finished.finally(t)}))}()}class ng{constructor(t,e={}){this.currentSubject="root",this.targets=new Map,this.notifyReady=a.noop,this.readyPromise=new Promise(t=>{this.notifyReady=t}),this.update=t,this.options={interrupt:"wait",...e},np.push(this),iC.render(nf)}get(t){return this.currentSubject=t,this}layout(t,e){return this.updateTarget("layout",t,e),this}new(t,e){return this.updateTarget("new",t,e),this}old(t,e){return this.updateTarget("old",t,e),this}enter(t,e){return this.updateTarget("enter",t,e),this}exit(t,e){return this.updateTarget("exit",t,e),this}crossfade(t){return this.updateTarget("enter",{opacity:1},t),this.updateTarget("exit",{opacity:0}
3,t),this}updateTarget(t,e,i={}){let{currentSubject:n,targets:s}=this;s.has(n)||s.set(n,{}),s.get(n)[t]={keyframes:e,options:i}}then(t,e){return this.readyPromise.then(t,e)}}let ny=()=>({translate:0,scale:1,origin:0,originPoint:0}),nv=()=>({x:ny(),y:ny()}),nT=()=>({min:0,max:0}),nx=()=>({x:nT(),y:nT()}),nw=new WeakMap;function nb(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function nS(t){return"string"==typeof t||Array.isArray(t)}let nA=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],nV=["initial",...nA];function nP(t){return nb(t.animate)||nV.some(e=>nS(t[e]))}function nM(t){return!!(nP(t)||t.variants)}function nE(t,e,i){for(let n in e){let s=e[n],r=i[n];if(eZ(s))t.addValue(n,s);else if(eZ(r))t.addValue(n,eG(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,eG(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}let nD={current:null},nk={current:!1},nR="undefined"!=typeof window;function nC(){if(nk.current=!0,nR)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nD.current=t.matches;t.addEventListener("change",e),e()}else nD.current=!1}let nB=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nj={};class nF{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=et,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=f.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,h.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=s,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=nP(e),this.isVariantNode=nM(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==l[t]&&eZ(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,nw.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(nk.current||nC(),this.shouldReduceMotion=nD.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),d(this.notifyUpdate),d(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&iy.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:o}=e.accelerate,l=new ep({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:a.secondsToMilliseconds(o)}),u=i(l);this.valueSubscriptions.set(t,()=>{u(),l.cancel()});return}let n=tJ.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&h.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in nj){let e=nj[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
3e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nx()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<nB.length;e++){let i=nB[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=nE(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=eG(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(a.isNumericalString(i)||a.isZeroValueString(i))?i=parseFloat(i):!ns(i)&&_.test(e)&&(i=id(t,e)),this.setBaseTarget(t,eZ(i)?i.get():i)),eZ(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=eW(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||eZ(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new a.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){iC.render(this.render)}}class nL extends nF{constructor(){super(...arguments),this.KeyframeResolver=ip}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;eZ(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class nO{constructor(t){this.isMounted=!1,this.node=t}update(){}}function nI({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function nN(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}function nU(t){return void 0===t||1===t}function n$({scale:t,scaleX:e,scaleY:i}){return!nU(t)||!nU(e)||!nU(i)}function nW(t){return n$(t)||nz(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function nz(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function nK(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function nY(t,e=0,i=1,n,s){t.min=nK(t.min,e,i,n,s),t.max=nK(t.max,e,i,n,s)}function nX(t,{x:e,y:i}){nY(t.x,e.translate,e.scale,e.originPoint),nY(t.y,i.translate,i.scale,i.originPoint)}function nG(t,e,i,n=!1){let s,r,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){r=(s=i[o]).projectionDelta;let{visualElement:a}=s.options;
3(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&nZ(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,nX(t,r)),n&&nW(s.latestValues)&&nZ(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function nq(t,e){t.min=t.min+e,t.max=t.max+e}function nH(t,e,i,n,s=.5){let r=te(t.min,t.max,s);nY(t,e,i,r,n)}function nZ(t,e){nH(t.x,e.x,e.scaleX,e.scale,e.originX),nH(t.y,e.y,e.scaleY,e.scale,e.originY)}function n_(t,e){return nI(nN(t.getBoundingClientRect(),e))}let nJ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nQ=t_.length;function n0(t,e,i){let n="",s=!0;for(let r=0;r<nQ;r++){let a=t_[r],o=t[a];if(void 0===o)continue;let l=!0;if("number"==typeof o)l=o===+!!a.startsWith("scale");else{let t=parseFloat(o);l=a.startsWith("scale")?1===t:0===t}if(!l||i){let t=ix(o,io[a]);if(!l){s=!1;let e=nJ[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}function n1(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(tJ.has(t)){a=!0;continue}if(v(t)){s[t]=i;continue}{let e=ix(i,io[t]);t.startsWith("origin")?(o=!0,r[t]=e):n[t]=e}}if(!e.transform&&(a||i?n.transform=n0(e,t.transform,i):n.transform&&(n.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}function n5(t,{style:e,vars:i},n,s){let r,a=t.style;for(r in e)a[r]=e[r];for(r in s?.applyProjectionStyles(a,n),i)a.setProperty(r,i[r])}function n2(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let n3={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!O.test(t))return t;else t=parseFloat(t);let i=n2(t,e.target.x),n=n2(t,e.target.y);return`${i}% ${n}%`}},n9={correct:(t,{treeScale:e,projectionDelta:i})=>{let n=_.parse(t);if(n.length>5)return t;let s=_.createTransformer(t),r=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=o;let l=te(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}},n4={borderRadius:{...n3,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:n3,borderTopRightRadius:n3,borderBottomLeftRadius:n3,borderBottomRightRadius:n3,boxShadow:n9};function n6(t,{layout:e,layoutId:i}){return tJ.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!n4[t]||"opacity"===t)}function n8(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)(eZ(n[e])||s&&eZ(s[e])||n6(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}class n7 extends nL{constructor(){super(...arguments),this.type="html",this.renderInstance=n5}readValueFromInstance(t,e){if(tJ.has(e))return this.projection?.isProjecting?tG(e):tH(t,e);{let i=window.getComputedStyle(t),n=(v(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return n_(t,e)}build(t,e,i){n1(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return n8(t,e,i)}}class st extends nF{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(e in t){let i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return nx()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}let se={offset:"stroke-dashoffset",array:"stroke-dasharray"},si={offset:"strokeDashoffset",array:"strokeDasharray"};function sn(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?se:si;t[r.offset]=`${-n}`,t[r.array]=`${e} ${i}`}let ss=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function sr(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...o},l,u,h){if(n1(t,o,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of(d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete d.transformBox),ss))void 0!==d[t]&&(c[t]=d[t],delete d[t]);void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==s&&sn(d,s,r,a,!1)}let sa=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"]),so=t=>"string"==typeof t&&"svg"===t.toLowerCase();function sl(t,e,i,n){for(let i in n5(t,e,void 0,n),e.attrs)t.setAttribute(sa.has(i)?i:eQ(i),e.attrs[i])}function su(t,e,i){let n=n8(t,e,i);
3for(let i in t)(eZ(t[i])||eZ(e[i]))&&(n[-1!==t_.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class sh extends nL{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nx}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(tJ.has(e)){let t=iu(e);return t&&t.default||0}return e=sa.has(e)?e:eQ(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return su(t,e,i)}build(t,e,i){sr(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){sl(t,e,i,n)}mount(t){this.isSVGTag=so(t.tagName),super.mount(t)}}let sd=nV.length;function sc(t){if(!t)return;if(!t.isControllingVariants){let e=t.parent&&sc(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}let e={};for(let i=0;i<sd;i++){let n=nV[i],s=t.props[n];(nS(s)||!1===s)&&(e[n]=s)}return e}function sp(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let sm=[...nA].reverse(),sf=nA.length;function sg(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!sp(e,t)}function sy(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sv(){return{animate:sy(!0),whileInView:sy(),whileHover:sy(),whileTap:sy(),whileDrag:sy(),whileFocus:sy(),exit:sy()}}function sT(t,e){t.min=e.min,t.max=e.max}function sx(t,e){sT(t.x,e.x),sT(t.y,e.y)}function sw(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sb(t){return t.max-t.min}function sS(t,e,i){return Math.abs(t-e)<=i}function sA(t,e,i,n=.5){t.origin=n,t.originPoint=te(e.min,e.max,t.origin),t.scale=sb(i)/sb(e),t.translate=te(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 sV(t,e,i,n){sA(t.x,e.x,i.x,n?n.originX:void 0),sA(t.y,e.y,i.y,n?n.originY:void 0)}function sP(t,e,i){t.min=i.min+e.min,t.max=t.min+sb(e)}function sM(t,e,i){sP(t.x,e.x,i.x),sP(t.y,e.y,i.y)}function sE(t,e,i){t.min=e.min-i.min,t.max=t.min+sb(e)}function sD(t,e,i){sE(t.x,e.x,i.x),sE(t.y,e.y,i.y)}function sk(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function sR(t,e=0,i=1,n=.5,s,r=t,a=t){if(L.test(e)&&(e=parseFloat(e),e=te(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=te(r.min,r.max,n);t===r&&(o-=e),t.min=sk(t.min,e,i,o,s),t.max=sk(t.max,e,i,o,s)}function sC(t,e,[i,n,s],r,a){sR(t,e[i],e[n],e[s],e.scale,r,a)}let sB=["x","scaleX","originX"],sj=["y","scaleY","originY"];function sF(t,e,i,n){sC(t.x,e,sB,i?i.x:void 0,n?n.x:void 0),sC(t.y,e,sj,i?i.y:void 0,n?n.y:void 0)}function sL(t){return 0===t.translate&&1===t.scale}function sO(t){return sL(t.x)&&sL(t.y)}function sI(t,e){return t.min===e.min&&t.max===e.max}function sN(t,e){return sI(t.x,e.x)&&sI(t.y,e.y)}function sU(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function s$(t,e){return sU(t.x,e.x)&&sU(t.y,e.y)}function sW(t){return sb(t.x)/sb(t.y)}function sz(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function sK(t){return[t("x"),t("y")]}function sY(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:a,skewY:o}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}let sX=["TopLeft","TopRight","BottomLeft","BottomRight"],sG=sX.length,sq=t=>"string"==typeof t?parseFloat(t):t,sH=t=>"number"==typeof t||O.test(t);function sZ(t,e,i,n,s,r){s?(t.opacity=te(0,i.opacity??1,sJ(n)),t.opacityExit=te(e.opacity??1,0,sQ(n))):r&&(t.opacity=te(e.opacity??1,i.opacity??1,n));for(let s=0;s<sG;s++){let r=`border${sX[s]}Radius`,a=s_(e,r),o=s_(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||sH(a)===sH(o)?(t[r]=Math.max(te(sq(a),sq(o
3),n),0),(L.test(o)||L.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=te(e.rotate||0,i.rotate||0,n))}function s_(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sJ=s0(0,.5,a.circOut),sQ=s0(.5,.95,a.noop);function s0(t,e,i){return n=>n<t?0:n>e?1:i(a.progress(t,e,n))}function s1(t,e,i){let n=eZ(t)?t:eG(t);return n.start(eU("",n,e,i)),n.animation}function s5(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let s2=(t,e)=>t.depth-e.depth;class s3{constructor(){this.children=[],this.isDirty=!1}add(t){a.addUniqueItem(this.children,t),this.isDirty=!0}remove(t){a.removeItem(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(s2),this.isDirty=!1,this.children.forEach(t)}}function s9(t,e){let i=f.now(),n=({timestamp:s})=>{let r=s-i;r>=e&&(d(n),t(r-e))};return h.setup(n,!0),()=>d(n)}function s4(t){return eZ(t)?t.get():t}class s6{constructor(){this.members=[]}add(t){a.addUniqueItem(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1===n.isConnected&&!1!==i.isPresent&&!i.snapshot&&a.removeItem(this.members,i)}t.scheduleRender()}remove(t){if(a.removeItem(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t],n=i.instance;if(!1!==i.isPresent&&(!n||!1!==n.isConnected)){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender();let n=i.options.layoutDependency,s=t.options.layoutDependency;if(void 0===n||void 0===s||n!==s){let n=i.instance;!(n&&!1===n.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))}let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{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)}}let s8={hasAnimatedSinceResize:!0,hasEverUpdated:!1},s7={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rt=["","X","Y","Z"],re=0;function ri(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function rn({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=re++,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,l.value&&(s7.nodes=s7.calculatedTargetDeltas=s7.calculatedProjections=0),this.nodes.forEach(ra),this.nodes.forEach(rp),this.nodes.forEach(rm),this.nodes.forEach(ro),l.addProjectionMetrics&&l.addProjectionMetrics(s7)},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 t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new s3)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new a.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=iX(e)&&!i4(e),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;h.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=s9(s,250),s8.hasAnimatedSinceResize&&(s8.hasAnimatedSinceResize=!1,this.nodes.forEac
3h(rc)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||rx,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!s$(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...eI(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||rc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),d(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(rf),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=e5(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",h,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ru);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rh);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rd),this.nodes.forEach(rs),this.nodes.forEach(rr)):this.nodes.forEach(rh),this.clearAllSnapshots();let t=f.now();c.delta=a.clamp(0,1e3/60,t-c.timestamp),c.timestamp=t,c.isProcessing=!0,p.update.process(c),p.preRender.process(c),p.render.process(c),c.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,iC.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rl),this.sharedNodes.forEach(rg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,h.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){h.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||sb(this.snapshot.measuredBox.x)||sb(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=nx(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(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(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!sO(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||nW(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rS((e=n).x),rS(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return nx();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rV))){let{scroll:t}=this.root;t&&(nq(e.x,t.offset.x),nq(e.y,t.offset.y))}return e}removeElementScroll(t){let e=nx();if(sx(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&sx(e,t),nq(e.x,s.offset.x),nq(e.y,s.offset.y))}return e}applyTransform(t,e=!1){let i=nx();sx(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&nZ(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),nW(n.latestValues)&&nZ(i,n.latestValues)}return nW(this.latestValues)&&nZ(i,this.latestValues),i}removeTransform(t){let e=nx();sx(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!nW(i.latestValues))continue;n$(i.latestValues)&&i.updateSnapshot();let n=nx();sx(n,i.measurePageBox()),sF(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return nW(this.latestValues)&&sF(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!==c.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=c.timestamp;let r=this.getClosestProjectingParent();r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=nx(),this.targetWithTransforms=nx()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s
3M(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sx(this.target,this.layout.layoutBox),nX(this.target,this.targetDelta)):sx(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0),l.value&&s7.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||n$(this.parent.latestValues)||nz(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nx(),this.relativeTargetOrigin=nx(),sD(this.relativeTargetOrigin,e,i),sx(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===c.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;sx(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;nG(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=nx());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sw(this.prevProjectionDelta.x,this.projectionDelta.x),sw(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),sV(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&sz(this.projectionDelta.x,this.prevProjectionDelta.x)&&sz(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),l.value&&s7.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=nv(),this.projectionDelta=nv(),this.projectionDeltaWithTransform=nv()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},a=nv();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=nx(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(rT));this.animationProgress=0,this.mixTargetDelta=e=>{var n,u,c,p;let m=e/1e3;ry(a.x,t.x,m),ry(a.y,t.y,m),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sD(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),n=this.relativeTarget,u=this.relativeTargetOrigin,c=o,p=m,rv(n.x,u.x,c.x,p),rv(n.y,u.y,c.y,p),i&&sN(this.relativeTarget,i)&&(this.isProjectionDirty=!1),i||(i=nx()),sx(i,this.relativeTarget)),l&&(this.animationValues=r,sZ(r,s,this.latestValues,m,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(d(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=h.update(()=>{s8.hasAnimatedSinceResize=!0,g.layout++,this.motionValue||(this.motionValue=eG(0)),this.motionValue.jump(0,!1),this.currentAnimation=s1(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{g.layout--},onComplete:()=>{g.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);let 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(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rA(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||nx();let e=sb(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=sb(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}sx(e,i),nZ(e,s),sV(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new s6),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
3return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&ri("z",t,n,this.animationValues);for(let e=0;e<rt.length;e++)ri(`rotate${rt[e]}`,t,n,this.animationValues),ri(`skew${rt[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=s4(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=s4(e?.pointerEvents)||""),this.hasProjected&&!nW(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=sY(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,n4){if(void 0===s[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=n4[e],l="none"===r?s[e]:i(s[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?s4(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(ru),this.root.sharedNodes.clear()}}}function rs(t){t.updateLayout()}function rr(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;"size"===s?sK(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=sb(n);n.min=i[t].min,n.max=n.min+s}):rA(s,e.layoutBox,i)&&sK(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],a=sb(i[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=nv();sV(a,i,e.layoutBox);let o=nv();r?sV(o,t.applyTransform(n,!0),e.measuredBox):sV(o,i,e.layoutBox);let l=!sO(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=nx();sD(a,e.layoutBox,s.layoutBox);let o=nx();sD(o,i,r.layoutBox),s$(a,o)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ra(t){l.value&&s7.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ro(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rl(t){t.clearSnapshot()}function ru(t){t.clearMeasurements()}function rh(t){t.isLayoutDirty=!1}function rd(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rc(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rp(t){t.resolveTargetDelta()}function rm(t){t.calcProjection()}
3function rf(t){t.resetSkewAndRotation()}function rg(t){t.removeLeadSnapshot()}function ry(t,e,i){t.translate=te(e.translate,0,i),t.scale=te(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rv(t,e,i,n){t.min=te(e.min,i.min,n),t.max=te(e.max,i.max,n)}function rT(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rx={duration:.45,ease:[.4,0,.1,1]},rw=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rb=rw("applewebkit/")&&!rw("chrome/")?Math.round:a.noop;function rS(t){t.min=rb(t.min),t.max=rb(t.max)}function rA(t,e,i){return"position"===t||"preserve-aspect"===t&&!sS(sW(e),sW(i),.2)}function rV(t){return t!==t.root&&t.scroll?.wasRoot}let rP=rn({attachResizeListener:(t,e)=>s5(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rM=t=>!t.isLayoutDirty&&t.willUpdate(!1),rE={current:void 0},rD=rn({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rE.current){let t=new rP({});t.mount(window),t.setOptions({layoutScroll:!0}),rE.current=t}return rE.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),rk="[data-layout], [data-layout-id]",rR=()=>{};class rC{constructor(t,e,i){this.sharedTransitions=new Map,this.notifyReady=rR,this.rejectReady=rR,this.scope=t,this.updateDom=e,this.defaultOptions=i,this.readyPromise=new Promise((t,e)=>{this.notifyReady=t,this.rejectReady=e}),h.postRender(()=>{this.start().then(this.notifyReady).catch(this.rejectReady)})}shared(t,e){return this.sharedTransitions.set(t,e),this}then(t,e){return this.readyPromise.then(t,e)}async start(){let t=rB(this.scope),e=this.buildRecords(t);e.forEach(({projection:t})=>{let e=!!t.currentAnimation,i=!!t.options.layoutId;if(e&&i){let e=function(t){let e=t.targetWithTransforms||t.target;if(!e)return;let i=nx(),n=nx();return sx(i,e),sx(n,e),{animationId:t.root?.animationId??0,measuredBox:i,layoutBox:n,latestValues:t.animationValues||t.latestValues||{},source:t.id}}(t);e?t.snapshot=e:t.snapshot&&(t.snapshot=void 0)}else t.snapshot&&(t.currentAnimation||t.isProjecting())&&(t.snapshot=void 0);t.isPresent=!0,t.willUpdate()}),await this.updateDom();let i=rB(this.scope),n=this.buildRecords(i);this.handleExitingElements(e,n),n.forEach(({projection:t})=>{let e=t.instance,i=t.resumeFrom?.instance;if(!e||!i||!("style"in e))return;let n=e.style.transform,s=i.style.transform;n&&s&&n===s&&(e.style.transform="",e.style.transformOrigin="")}),n.forEach(({projection:t})=>{t.isPresent=!0});let s=function(t,e){let i=t[0]||e[0];return i?.projection.root}(n,e);return s?.didUpdate(),await new Promise(t=>{h.postRender(()=>t())}),new eb(function(t){let e=new Set;return t.forEach(t=>{let i=t.projection.currentAnimation;i&&e.add(i)}),Array.from(e)}(n))}buildRecords(t){let e=[],i=new Map;for(let n of t){let t=function(t,e,i){let n=t.parentElement;for(;n;){let t=e.get(n);if(t)return t;if(n===i)break;n=n.parentElement}}(n,i,this.scope),{layout:s,layoutId:r}=function(t){let e,i=t.getAttribute("data-layout-id")||void 0,n=t.getAttribute("data-layout");return""===n||"true"===n?e=!0:n&&(e=n),{layout:e,layoutId:i}}(n),a=(r?this.sharedTransitions.get(r):void 0)||this.defaultOptions,o=function(t,e,i){let n=nw.get(t),s=n??new n7({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0});return n&&s.projection||(s.projection=new rD(s.latestValues,e)),s.projection.setOptions({...i,visualElement:s}),s.current?s.projection.instance||s.projection.mount(t):s.mount(t),n||nw.set(t,s),{element:t,visualElement:s,projection:s.projection}}(n,t?.projection,{layout:s,layoutId:r,animationType:"string"==typeof s?s:"both",transition:a});i.set(n,o),e.push(o)}return e}handleExitingElements(t,e){let i=new Set(e.map(t=>t.element));t.forEach(t=>{i.has(t.element)||(t.projection.options.layoutId&&(t.projection.isPresent=!1,t.projection.relegate()),t.visualElement.unmount(),nw.delete(t.element))});let n=new Set(t.map(t=>t.element));e.forEach(({element:t,projection:e})=>{n.has(t)&&e.resumeFrom&&!e.resumeFrom.instance&&!e.isLead()&&(e.resumeFrom=void 0,e.snapshot=void 0)})}}function rB(t){let e=Array.from(t.querySelectorAll(rk));return t instanceof Element&&t.matches(rk)&&!e.includes(t)&&e.unshift(t),e}let rj=o.reduce((t,e)=>(t[e]=t=>d(t),t),{});e.AsyncMotionValueAnimation=ew,e.DOMKeyframesResolver=ip,e.DOMVisualElement=nL,e.DocumentProjectionNode=rP,e.Feature=nO,e.FlatTree=s3,e.GroupAnimation=eb,e.GroupAnimationWithThen=eA,e.HTMLProjectionNode=rD,e.HTMLVisualElement=n7,e.JSAnimation=tI,e.KeyframeResolver=et,e.LayoutAnimationBuilder=rC,e.MotionValue=eX,e.NativeAnimation=ep,e.NativeAnimationExtended=ef,e.NativeAnimationWrapper=eV,e.NodeStack=s6,e.ObjectVisualElement=st,e.SVGVisualElement=sh,e.ViewTransitionBuilder=ng,e.VisualElement=nF,e.acceleratedValues=iy,e.activeAnimations=g,e.addAttrValue=iS,e.addDomEvent=s5,e.addScaleCorrector=function(t){for(let e in t)n4[e]=t[e],v(e)&&(n4[e].isCSSVariable=!0)},e.addStyleValue=iD,e.addValueToWillChange=eJ,e.alpha=A,e.analyseComplexValue=G,e.animateMotionValue=eU,e.animateSingleValue=s1,e.animateTarget=e2,e.animateValue=function(t){return new tI(t)},e.animateVariant=e3,e.animateView=function(t,e={}){return new ng(t,e)},e.animateVisualElement=e9,e.animationMapKey=(t,e="")=>`${t}:${e}`,e.applyAxisDelta=nY,e.applyBoxDelta=nX,e.applyGeneratorOptions=ec,e.applyPointDelta=nK,e.applyPxDefaults=function(t,e){for(let i=0;i<t.length;i++)"number"==typeof t[i]&&im.has(e)&&(t[i]=t[i]+"px")},e.applyTreeDeltas=nG,e.aspectRatio=sW,e.attachFollow=nt,e.attachSpring=function(t,e,
3i){return nt(t,e,{type:"spring",...i})},e.attrEffect=iA,e.axisDeltaEquals=sz,e.axisEquals=sI,e.axisEqualsRounded=sU,e.boxEquals=sN,e.boxEqualsRounded=s$,e.buildHTMLStyles=n1,e.buildProjectionTransform=sY,e.buildSVGAttrs=sr,e.buildSVGPath=sn,e.buildTransform=n0,e.calcAxisDelta=sA,e.calcBoxDelta=sV,e.calcChildStagger=eM,e.calcGeneratorDuration=tg,e.calcLength=sb,e.calcRelativeAxis=sP,e.calcRelativeAxisPosition=sE,e.calcRelativeBox=sM,e.calcRelativePosition=sD,e.camelCaseAttributes=sa,e.camelToDash=eQ,e.cancelFrame=d,e.cancelMicrotask=iB,e.cancelSync=rj,e.checkVariantsDidChange=sg,e.cleanDirtyNodes=ro,e.collectMotionValues=eY,e.color=W,e.compareByDepth=s2,e.complex=_,e.containsCSSVariable=b,e.convertBoundingBoxToBox=nI,e.convertBoxToBoundingBox=function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}},e.convertOffsetToTimes=tD,e.copyAxisDeltaInto=sw,e.copyAxisInto=sT,e.copyBoxInto=sx,e.correctBorderRadius=n3,e.correctBoxShadow=n9,e.createAnimationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>e9(t,e,i))),i=sv(),n=!0,s=e=>(i,n)=>{let s=ez(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function r(r){let{props:a}=t,o=sc(t.parent)||{},l=[],u=new Set,h={},d=1/0;for(let e=0;e<sf;e++){let c=sm[e],p=i[c],m=void 0!==a[c]?a[c]:o[c],f=nS(m),g=c===r?p.isActive:null;!1===g&&(d=e);let y=m===o[c]&&m!==a[c]&&f;if(y&&n&&t.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...h},!p.isActive&&null===g||!m&&!p.prevProp||nb(m)||"boolean"==typeof m)continue;if("exit"===c&&p.isActive&&!0!==g){p.prevResolvedValues&&(h={...h,...p.prevResolvedValues});continue}let v=sg(p.prevProp,m),T=v||c===r&&p.isActive&&!y&&f||e>d&&f,x=!1,w=Array.isArray(m)?m:[m],b=w.reduce(s(c),{});!1===g&&(b={});let{prevResolvedValues:S={}}=p,A={...S,...b},V=e=>{T=!0,u.has(e)&&(x=!0,u.delete(e)),p.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in A){let e=b[t],i=S[t];if(!h.hasOwnProperty(t))(eq(e)&&eq(i)?sp(e,i):e===i)?void 0!==e&&u.has(t)?V(t):p.protectedKeys[t]=!0:null!=e?V(t):u.add(t)}p.prevProp=m,p.prevResolvedValues=b,p.isActive&&(h={...h,...b}),n&&t.blockInitialAnimation&&(T=!1);let P=y&&v,M=!P||x;T&&M&&l.push(...w.map(e=>{let i={type:c};if("string"==typeof e&&n&&!P&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=ez(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=eM(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=ez(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let c=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(c=!1),n=!1,c?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=r(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=sv()}}},e.createAxis=nT,e.createAxisDelta=ny,e.createBox=nx,e.createDelta=nv,e.createGeneratorEasing=ty,e.createProjectionNode=rn,e.createRenderBatcher=u,e.cubicBezierAsString=eo,e.defaultEasing=tk,e.defaultOffset=tE,e.defaultTransformValue=tG,e.defaultValueTypes=il,e.degrees=F,e.delay=s9,e.delayInSeconds=function(t,e){return s9(t,a.secondsToMilliseconds(e))},e.dimensionValueTypes=e6,e.eachAxis=sK,e.fillOffset=tM,e.fillWildcards=tN,e.findDimensionValueType=e8,e.findValueType=ns,e.flushKeyframeResolvers=t7,e.followValue=i7,e.frame=h,e.frameData=c,e.frameSteps=p,e.generateLinearEasing=tf,e.getAnimatableNone=id,e.getAnimationMap=function(t){let e=eP.get(t)||new Map;return eP.set(t,e),e},e.getComputedStyle=function(t,e){let i=window.getComputedStyle(t);return ee(e)?i.getPropertyValue(e):i[e]},e.getDefaultTransition=ej,e.getDefaultValueType=iu,e.getFeatureDefinitions=function(){return nj},e.getFinalKeyframe=eL,e.getMixer=tu,e.getOptimisedAppearId=e5,e.getOriginIndex=i6,e.getValueAsType=ix,e.getValueTransition=eI,e.getVariableValue=ek,e.getVariantContext=sc,e.getViewAnimationLayerInfo=nl,e.getViewAnimations=nh,e.globalProjectionState=s8,e.has2DTranslate=nz,e.hasReducedMotionListener=nk,e.hasScale=n$,e.hasTransform=nW,e.hex=B,e.hover=function(t,e,
3i={}){let[n,s,r]=iL(t,i);return n.forEach(t=>{let i,n=!1,r=!1,a=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},o=t=>{n=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),r&&(r=!1,a(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||iF())return;r=!1;let a=e(t,n);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",o,s)},s)}),r},e.hsla=$,e.hslaToRgba=Q,e.inertia=tV,e.initPrefersReducedMotion=nC,e.interpolate=tP,e.invisibleValues=ta,e.isAnimationControls=nb,e.isCSSVariableName=v,e.isCSSVariableToken=x,e.isControllingVariants=nP,e.isDeltaZero=sO,e.isDragActive=iF,e.isDragging=ij,e.isElementKeyboardAccessible=iU,e.isElementTextInput=function(t){return i$.has(t.tagName)||!0===t.isContentEditable},e.isForcedMotionValue=n6,e.isGenerator=ed,e.isHTMLElement=iP,e.isKeyframesTarget=eq,e.isMotionValue=eZ,e.isNear=sS,e.isNodeOrChild=iO,e.isPrimaryPointer=iI,e.isSVGElement=iX,e.isSVGSVGElement=i4,e.isSVGTag=so,e.isTransitionDefined=eN,e.isVariantLabel=nS,e.isVariantNode=nM,e.isWaapiSupportedEasing=function t(e){return!!("function"==typeof e&&ea()||!e||"string"==typeof e&&(e in el||ea())||a.isBezierDefinition(e)||Array.isArray(e)&&e.every(t))},e.isWillChangeMotionValue=e_,e.keyframes=tR,e.makeAnimationInstant=ey,e.mapEasingToNativeEasing=eu,e.mapValue=function(t,e,i,n){let s=i8(e,i,n);return ni(()=>s(t.get()))},e.maxGeneratorDuration=2e4,e.measurePageBox=function(t,e,i){let n=n_(t,i),{scroll:s}=e;return s&&(nq(n.x,s.offset.x),nq(n.y,s.offset.y)),n},e.measureViewportBox=n_,e.microtask=iC,e.mix=tp,e.mixArray=th,e.mixColor=tr,e.mixComplex=tc,e.mixImmediate=tt,e.mixLinearColor=ti,e.mixNumber=te,e.mixObject=td,e.mixValues=sZ,e.mixVisibility=to,e.motionValue=eG,e.nodeGroup=function(){let t=new Set,e=new WeakMap,i=()=>t.forEach(rM);return{add:n=>{t.add(n),e.set(n,n.addEventListener("willUpdate",i))},remove:n=>{t.delete(n);let s=e.get(n);s&&(s(),e.delete(n)),i()},dirty:i}},e.number=S,e.numberValueTypes=io,e.observeTimeline=function(t,e){let i,n=()=>{let{currentTime:n}=e,s=(null===n?0:n.value)/100;i!==s&&t(s),i=s};return h.preUpdate(n,!0),()=>d(n)}
3,e.optimizedAppearDataAttribute=e1,e.optimizedAppearDataId=e0,e.parseAnimateLayoutArgs=function(t,e,i){return"function"==typeof t?{scope:document,updateDom:t,defaultOptions:e}:{scope:iv(t)[0]||document,updateDom:e,defaultOptions:i}},e.parseCSSVariable=eD,e.parseValueFromTransform=tq,e.percent=L,e.pixelsToPercent=n2,e.positionalKeys=eK,e.prefersReducedMotion=nD,e.press=function(t,e,i={}){let[n,s,r]=iL(t,i),a=t=>{let n=t.currentTarget;if(!(iI(t)&&!iF())||iY.has(t))return;iW.add(n),i.stopPropagation&&iY.add(t);let r=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),iW.has(n)&&iW.delete(n),iI(t)&&!iF()&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||iO(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),iP(t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=iz(()=>{if(iW.has(i))return;iK(i,"down");let t=iz(()=>{iK(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>iK(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),iU(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r},e.progressPercentage=U,e.propEffect=iV,e.propagateDirtyNodes=ra,e.px=O,e.readTransformValue=tH,e.recordStats=function(){if(l.value)throw i3(),Error("Stats are already being measured");return l.value={frameloop:{setup:[],rate:[],read:[],resolveKeyframes:[],preUpdate:[],update:[],preRender:[],render:[],postRender:[]},animations:{mainThread:[],waapi:[],layout:[]},layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}},l.addProjectionMetrics=t=>{let{layoutProjection:e}=l.value;e.nodes.push(t.nodes),e.calculatedTargetDeltas.push(t.calculatedTargetDeltas),e.calculatedProjections.push(t.calculatedProjections)},h.postRender(i0,!0),i9},e.removeAxisDelta=sR,e.removeAxisTransforms=sC,e.removeBoxTransforms=sF,e.removePointDelta=sk,e.renderHTML=n5,e.renderSVG=sl,e.resize=function(t,e){return"function"==typeof t?(iQ.add(t),r||(r=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};iQ.forEach(e=>e(t))},window.addEventListener("resize",r)),()=>{iQ.delete(t),iQ.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):function(t,e){s||"undefined"!=typeof ResizeObserver&&(s=new ResizeObserver(iJ));let i=iv(t);return i.forEach(t=>{let i=iG.get(t);i||(i=new Set,iG.set(t,i)),i.add(e),s?.observe(t)}),()=>{i.forEach(t=>{let i=iG.get(t);i?.delete(e),i?.size||s?.unobserve(t)})}}(t,e)},e.resolveElements=iv,e.resolveMotionValue=s4,e.resolveTransition=eO,e.resolveVariant=ez,e.resolveVariantFromProps=eW,e.rgbUnit=R,e.rgba=C,e.rootProjectionNode=rE,e.scale=V,e.scaleCorrectors=n4,e.scalePoint=function(t,e,i){return i+e*(t-i)},e.scrapeHTMLMotionValuesFromProps=n8,e.scrapeSVGMotionValuesFromProps=su,e.setDragLock=function(t){if("x"===t||"y"===t)if(ij[t])return null;else return ij[t]=!0,()=>{ij[t]=!1};return ij.x||ij.y?null:(ij.x=ij.y=!0,()=>{ij.x=ij.y=!1})},e.setFeatureDefinitions=function(t){nj=t},e.setStyle=ei,e.setTarget=eH,e.spring=tA,e.springValue=function(t,e){return i7(t,{type:"spring",...e})},e.stagger=function(t=.1,{startDelay:e=0,from:i=0,ease:n}={}){return(s,r)=>{let o=t*Math.abs(("number"==typeof i?i:i6(i,r))-s);if(n){let e=r*t;o=a.easingDefinitionToFunction(n)(o/e)*e}return e+o}},e.startWaapiAnimation=eh,e.statsBuffer=l,e.styleEffect=ik,e.supportedWaapiEasing=el,e.supportsBrowserAnimation=ex,e.supportsFlags=en,e.supportsLinearEasing=ea,e.supportsPartialKeyframes=ig,e.supportsScrollTimeline=er,e.svgEffect=iR,e.sync=h,e.testValueType=e4,e.time=f,e.transform=i8,e.transformAxis=nH,e.transformBox=nZ,e.transformBoxPoints=nN,e.transformPropOrder=t_,e.transformProps=tJ,e.transformValue=ni,e.transformValueTypes=ia,e.translateAxis=nq,e.updateMotionValuesFromProps=nE,e.variantPriorityOrder=nA,e.variantProps=nV,e.vh=I,e.visualElementStore=nw,e.vw=N}}]);

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.