PageSourceSearch

https://omg-franck.ch/assets/framer-motion-DVtsX_o6.js

js omg-franck.ch collected 2026-10-06 09:31:01 UTC 122,490 bytes, 9 lines download raw bytes

vendor: 27,386 bytes, line 1
1import{r as p,j as q}from"./react-vendor-D5LV1Rra.js";const Ge=p.createContext({});function ie(t){const e=p.useRef(null);return e.current===null&&(e.current=t()),e.current}const _e=typeof window<"u",Xe=_e?p.useLayoutEffect:p.useEffect,re=p.createContext(null);function Ye(t,e){t.indexOf(e)===-1&&t.push(e)}function qe(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const X=(t,e,n)=>n>e?e:n<t?t:n;let Et=()=>{};const Z={},Qs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function ti(t){return typeof t=="object"&&t!==null}const ei=t=>/^0[^.\s]+$/u.test(t);function Ze(t){let e;return()=>(e===void 0&&(e=t()),e)}const N=t=>t,Ir=(t,e)=>n=>e(t(n)),It=(...t)=>t.reduce(Ir),yt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Je{constructor(){this.subscriptions=[]}add(e){return Ye(this.subscriptions,e),()=>qe(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const G=t=>t*1e3,$=t=>t/1e3;function Qe(t,e){return e?t*(1e3/e):0}const ni=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Or=1e-7,jr=12;function Nr(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=ni(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Or&&++a<jr);return r}function Ot(t,e,n,s){if(t===e&&n===s)return N;const i=o=>Nr(o,0,1,t,n);return o=>o===0||o===1?o:ni(i(o),e,s)}const si=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ii=t=>e=>1-t(1-e),ri=Ot(.33,1.53,.69,.99),tn=ii(ri),oi=si(tn),ai=t=>(t*=2)<1?.5*tn(t):.5*(2-Math.pow(2,-10*(t-1))),en=t=>1-Math.sin(Math.acos(t)),li=ii(en),ci=si(en),Wr=Ot(.42,0,1,1),Ur=Ot(0,0,.58,1),ui=Ot(.42,0,.58,1),Kr=t=>Array.isArray(t)&&typeof t[0]!="number",hi=t=>Array.isArray(t)&&typeof t[0]=="number",$r={linear:N,easeIn:Wr,easeInOut:ui,easeOut:Ur,circIn:en,circInOut:ci,circOut:li,backIn:tn,backInOut:oi,backOut:ri,anticipate:ai},Hr=t=>typeof t=="string",Bn=t=>{if(hi(t)){Et(t.length===4);const[e,n,s,i]=t;return Ot(e,n,s,i)}else if(Hr(t))return $r[t];return t},Wt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function zr(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){r.has(c)&&(u.schedule(c),t()),c(a)}const u={schedule:(c,h=!1,f=!1)=>{const m=f&&i?n:s;return h&&r.add(c),m.has(c)||m.add(c),c},cancel:c=>{s.delete(c),r.delete(c)},process:c=>{if(a=c,i){o=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,u.process(c))}};return u}const Gr=40;function fi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Wt.reduce((v,b)=>(v[b]=zr(o),v),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:f,render:d,postRender:m}=r,y=()=>{const v=Z.useManualTiming?i.timestamp:performance.now();n=!1,Z.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(v-i.timestamp,Gr),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(y))},x=()=>{n=!0,s=!0,i.isProcessing||t(y)};return{schedule:Wt.reduce((v,b)=>{const P=r[b];return v[b]=(A,V=!1,S=!1)=>(n||x(),P.schedule(A,V,S)),v},{}),cancel:v=>{for(let b=0;b<Wt.length;b++)r[Wt[b]].cancel(v)},state:i,steps:r}}const{schedule:C,cancel:Y,state:k,steps:ce}=fi(typeof requestAnimationFrame<"u"?requestAnimationFrame:N,!0);let zt;function _r(){zt=void 0}const j={now:()=>(zt===void 0&&j.set(k.isProcessing||Z.useManualTiming?k.timestamp:performance.now()),zt),set:t=>{zt=t,queueMicrotask(_r)}},di=t=>e=>typeof e=="string"&&e.startsWith(t),nn=di("--"),Xr=di("var(--"),sn=t=>Xr(t)?Yr.test(t.split("/*")[0].trim()):!1,Yr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,xt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Rt={...xt,transform:t=>X(0,1,t)},Ut={...xt,default:1},At=t=>Math.round(t*1e5)/1e5,rn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function qr(t){return t==null}const Zr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,on=(t,e)=>n=>!!(typeof n=="string"&&Zr.test(n)&&n.startsWith(t)||e&&!qr(n)&&Object.prototype.hasOwnProperty.call(n,e)),mi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(rn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Jr=t=>X(0,255,t),ue={...xt,transform:t=>Math.round(Jr(t))},rt={test:on("rgb","red"),parse:mi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ue.transform(t)+", "+ue.transform(e)+", "+ue.transform(n)+", "+At(Rt.transform(s))+")"};function Qr(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Ae={test:on("#"),parse:Qr,transform:rt.transform},jt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Q=jt("deg"),_=jt("%"),w=jt("px"),to=jt("vh"),eo=jt("vw"),Fn={..._,parse:t=>_.parse(t)/100,transform:t=>_.transform(t*100)},ut={test:on("hsl","hue"),parse:mi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+_.transform(At(e))+", "+_.transform(At(n))+", "+At(Rt.transform(s))+")"},R={test:t=>rt.test(t)||Ae.test(t)||ut.test(t),parse:t=>rt.test(t)?rt.parse(t):ut.test(t)?ut.parse(t):Ae.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?rt.transform(t):ut.transform(t),getAnimatableNone:t=>{const e=R.parse(t);return e.alpha=0,R.transform(e)}},no=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function so(t){return isNaN(t)&&typeof t=="string"&&(t.match(rn)?.length||0)+(t.match(no)?.length||0)>0}const pi="number",gi="color",io="var",ro="var(",In="${}",oo=/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 Lt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(oo,l=>(R.test(l)?(s.color.push(o),i.push(gi),n.push(R.parse(l))):l.startsWith(ro)?(s.var.push(o),i.push(io),n.push(l)):(s.number.push(o),i.push(pi),n.push(parseFloat(l))),++o,In)).split(In);return{values:n,split:a,indexes:s,types:i}}function yi(t){return Lt(t).values}function vi(t){const{split:e,types:n}=Lt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===pi?o+=At(i[r]):a===gi?o+=R.transform(i[r]):o+=i[r]}return o}}const ao=t=>typeof t=="number"?0:R.test(t)?R.getAnimatableNone(t):t;function lo(t){const e=yi(t);return vi(t)(e.map(ao))}const tt={test:so,parse:yi,createTransformer:vi,getAnimatableNone:lo};function he(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function co({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=he(l,a,t+1/3),o=he(l,a,t),r=he(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Jt(t,e){return n=>n>0?e:t}const M=(t,e,n)=>t+(e-t)*n,fe=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},uo=[Ae,rt,ut],ho=t=>uo.find(e=>e.test(t));function On(t){const e=ho(t);if(!e)return!1;let n=e.parse(t);return e===ut&&(n=co(n)),n}const jn=(t,e)=>{const n=On(t),s=On(e);if(!n||!s)return Jt(t,e);const i={...n};return o=>(i.red=fe(n.red,s.red,o),i.green=fe(n.green,s.green,o),i.blue=fe(n.blue,s.blue,o),i.alpha=M(n.alpha,s.alpha,o),rt.transform(i))},Ve=new Set(["none","hidden"]);function fo(t,e){return Ve.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function mo(t,e){return n=>M(t,e,n)}function an(t){return typeof t=="number"?mo:typeof t=="string"?sn(t)?Jt:R.test(t)?jn:yo:Array.isArray(t)?xi:typeof t=="object"?R.test(t)?jn:po:Jt}function xi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>an(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function po(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=an(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function go(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const yo=(t,e)=>{const n=tt.createTransformer(e),s=Lt(t),i=Lt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ve.has(t)&&!i.values.length||Ve.has(e)&&!s.values.length?fo(t,e):It(xi(go(s,i),i.values),n):Jt(t,e)};function Ti(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?M(t,e,n):an(t)(t,e)}const vo=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>C.update(e,n),stop:()=>Y(e),now:()=>k.isProcessing?k.timestamp:j.now()}},Pi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Qt=2e4;function ln(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Qt;)e+=n,s=t.next(e);return e>=Qt?1/0:e}function xo(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(ln(s),Qt);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:$(i)}}const To=5;function wi(t,e,n){const s=Math.max(e-To,0);return Qe(n-t(s),e-s)}const D={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},de=.001;function Po({duration:t=D.duration,bounce:e=D.bounce,velocity:n=D.velocity,mass:s=D.mass}){let i,o,r=1-e;r=X(D.minDamping,D.maxDamping,r),t=X(D.minDuration,D.maxDuration,$(t)),r<1?(i=u=>{const c=u*r,h=c*t,f=c-n,d=Ce(u,r),m=Math.exp(-h);return de-f/d*m},o=u=>{const h=u*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,m=Math.exp(-h),y=Ce(Math.pow(u,2),r);return(-i(u)+de>0?-1:1)*((f-d)*m)/y}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-de+c*h},o=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=So(i,o,a);if(t=G(t),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const wo=12;function So(t,e,n){let s=n;for(let i=1;i<wo;i++)s=s-t(s)/e(s);return s}function Ce(t,e){return t*Math.sqrt(1-e*e)}const bo=["duration","bounce"],Ao=["stiffness","damping","mass"];function Nn(t,e){return e.some(n=>t[n]!==void 0)}function Vo(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!Nn(t,Ao)&&Nn(t,bo))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*X(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:D.mass,stiffness:i,damping:o}}else{const n=Po(t);e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function te(t=D.visualDuration,e=D.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=Vo({...n,velocity:-$(n.velocity||0)}),m=f||0,y=u/(2*Math.sqrt(l*c)),x=r-o,g=$(Math.sqrt(l/c)),T=Math.abs(x)<5;s||(s=T?D.restSpeed.granular:D.restSpeed.default),i||(i=T?D.restDelta.granular:D.restDelta.default);let v;if(y<1){const P=Ce(g,y);v=A=>{const V=Math.exp(-y*g*A);return r-V*((m+y*g*x)/P*Math.sin(P*A)+x*Math.cos(P*A))}}else if(y===1)v=P=>r-Math.exp(-g*P)*(x+(m+g*x)*P);else{const P=g*Math.sqrt(y*y-1);v=A=>{const V=Math.exp(-y*g*A),S=Math.min(P*A,300);return r-V*((m+y*g*x)*Math.sinh(S)+P*x*Math.cosh(S))/P}}const b={calculatedDuration:d&&h||null,next:P=>{const A=v(P);if(d)a.done=P>=h;else{let V=P===0?m:0;y<1&&(V=P===0?G(m):wi(v,P,A));const S=Math.abs(V)<=s,L=Math.abs(r-A)<=i;a.done=S&&L}return a.value=a.done?r:A,a},toString:()=>{const P=Math.min(ln(b),Qt),A=Pi(V=>b.next(P*V).value,P,30);return P+"ms "+A},toTransition:()=>{}};return b}te.applyToOptions=t=>{const e=xo(t,100,te);return t.ease=e.ease,t.duration=G(e.duration),t.type="keyframes",t};function Me({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=S=>a!==void 0&&S<a||l!==void 0&&S>l,m=S=>a===void 0?l:l===void 0||Math.abs(a-S)<Math.abs(l-S)?a:l;let y=n*e;const x=h+y,g=r===void 0?x:r(x);g!==x&&(y=g-h);const T=S=>-y*Math.exp(-S/s),v=S=>g+T(S),b=S=>{const L=T(S),I=v(S);f.done=Math.abs(L)<=u,f.value=f.done?g:I};let P,A;const V=S=>{d(f.value)&&(P=S,A=te({keyframes:[f.value,m(f.value)],velocity:wi(v,S,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return V(0),{calculatedDuration:null,next:S=>{let L=!1;return!A&&P===void 0&&(L=!0,b(S),V(S)),P!==void 0&&S>=P?A.next(S-P):(!L&&b(S),f)}}}function Co(t,e,n){const s=[],i=n||Z.mix||Ti,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||N:e;a=It(l,a)}s.push(a)}return s}function Si(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(Et(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Co(e,s,i),l=a.length,u=c=>{if(r&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const f=yt(t[h],t[h+1],c);return a[h](f)};return n?c=>u(X(t[0],t[o-1],c)):u}function Mo(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=yt(0,e,s);t.push(M(n,1,i))}}function bi(t){const e=[0];return Mo(e,t.length-1),e}function Do(t,e){return t.map(n=>n*e)}function Eo(t,e){return t.map(()=>e||ui).splice(0,t.length-1)}function Vt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Kr(s)?s.map(Bn):Bn(s),o={done:!1,value:e[0]},r=Do(n&&n.length===e.length?n:bi(e),t),a=Si(r,e,{ease:Array.isArray(i)?i:Eo(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Ro=t=>t!==null;function cn(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(Ro),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const Lo={decay:Me,inertia:Me,tween:Vt,keyframes:Vt,spring:te};function Ai(t){typeof t.type=="string"&&(t.type=Lo[t.type])}class un{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const ko=t=>t/100;class hn extends un{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==j.now()&&this.tick(j.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Ai(e);const{type:n=Vt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||Vt;l!==Vt&&typeof a[0]!="number"&&(this.mixKeyframes=It(ko,Ti(a[0],a[1])),a=[0,100]);const u=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=ln(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:c,repeat:h,repeatType:f,repeatDelay:d,type:m,onUpdate:y,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,b=s;if(h){const S=Math.min(this.currentTime,i)/a;let L=Math.floor(S),I=S%1;!I&&S>=1&&(I=1),I===1&&L--,L=Math.min(L,h+1),L%2&&(f==="reverse"?(I=1-I,d&&(I-=d/a)):f==="mirror"&&(b=r)),v=X(0,1,I)*a}const P=T?{done:!1,value:c[0]}:b.next(v);o&&(P.value=o(P.value));let{done:A}=P;!T&&l!==null&&(A=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return V&&m!==Me&&(P.value=cn(c,this.options,x,this.speed)),y&&y(P.value),V&&this.finish(),P}then(e,n){return this.finished.then(e,n)}get duration(){return $(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+$(e)}get time(){return $(this.currentTime)}set time(e){e=G(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(j.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=$(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=vo,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(j.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&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}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Bo(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ot=t=>t*180/Math.PI,De=t=>{const e=ot(Math.atan2(t[1],t[0]));return Ee(e)},Fo={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:De,rotateZ:De,skewX:t=>ot(Math.atan(t[1])),skewY:t=>ot(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ee=t=>(t=t%360,t<0&&(t+=360),t),Wn=De,Un=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Kn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Io={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Un,scaleY:Kn,scale:t=>(Un(t)+Kn(t))/2,rotateX:t=>Ee(ot(Math.atan2(t[6],t[5]))),rotateY:t=>Ee(ot(Math.atan2(-t[2],t[0]))),rotateZ:Wn,rotate:Wn,skewX:t=>ot(Math.atan(t[4])),skewY:t=>ot(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Re(t){return t.includes("scale")?1:0}function Le(t,e){if(!t||t==="none")return Re(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Io,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Fo,i=a}if(!i)return Re(e);const o=s[e],r=i[1].split(",").map(jo);return typeof o=="function"?o(r):r[o]}const Oo=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Le(n,e)};function jo(t){return parseFloat(t.trim())}const Tt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Pt=new Set(Tt),$n=t=>t===xt||t===w,No=new Set(["x","y","z"]),Wo=Tt.filter(t=>!No.has(t));function Uo(t){const e=[];return Wo.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const at={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Le(e,"x"),y:(t,{transform:e})=>Le(e,"y")};at.translateX=at.x;at.translateY=at.y;const lt=new Set;let ke=!1,Be=!1,Fe=!1;function Vi(){if(Be){const t=Array.from(lt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Uo(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Be=!1,ke=!1,lt.forEach(t=>t.complete(Fe)),lt.clear()}function Ci(){lt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Be=!0)})}function Ko(){Fe=!0,Ci(),Vi(),Fe=!1}class fn{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(lt.add(this),ke||(ke=!0,C.read(Ci),C.resolveKeyframes(Vi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}Bo(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),lt.delete(this)}cancel(){this.state==="scheduled"&&(lt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const $o=t=>t.startsWith("--");function Ho(t,e,n){$o(e)?t.style.setProperty(e,n):t.style[e]=n}const Mi=Ze(()=>window.ScrollTimeline!==void 0),zo={};function Go(t,e){const n=Ze(t);return()=>zo[e]??n()}const Di=Go(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),bt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Hn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bt([0,.65,.55,1]),circOut:bt([.55,0,1,.45]),backIn:bt([.31,.01,.66,-.59]),backOut:bt([.33,1.53,.69,.99])};function Ei(t,e){if(t)return typeof t=="function"?Di()?Pi(t,e):"ease-out":hi(t)?bt(t):Array.isArray(t)?t.map(n=>Ei(n,e)||Hn.easeOut):Hn[t]}function _o(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[e]:n};l&&(c.offset=l);const h=Ei(a,i);Array.isArray(h)&&(c.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(c,f)}function Ri(t){return typeof t=="function"&&"applyToOptions"in t}function Xo({type:t,...e}){return Ri(t)&&Di()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Yo extends un{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,Et(typeof e.type!="string");const u=Xo(e);this.animation=_o(n,s,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=cn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):Ho(n,s,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return $(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+$(e)}get time(){return $(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=G(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Mi()?(this.animation.timeline=e,N):n(this)}}const Li={anticipate:ai,backInOut:oi,circInOut:ci};function qo(t){return t in Li}function Zo(t){typeof t.ease=="string"&&qo(t.ease)&&(t.ease=Li[t.ease])}const zn=10;class Jo extends Yo{constructor(e){Zo(e),Ai(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new hn({...r,autoplay:!1}),l=G(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-zn).value,a.sample(l).value,zn),a.stop()}}const Gn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(tt.test(t)||t==="0")&&!t.startsWith("url("));function Qo(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function ta(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Gn(i,e),a=Gn(o,e);return!r||!a?!1:Qo(t)||(n==="spring"||Ri(n))&&s}function Ie(t){t.duration=0,t.type="keyframes"}const ea=new Set(["opacity","clipPath","filter","transform"]),na=Ze(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function sa(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return na()&&n&&ea.has(n)&&(n!=="transform"||!u)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const ia=40;class ra extends un{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:u,element:c,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=j.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:l,motionValue:u,element:c,...h},d=c?.KeyframeResolver||fn;this.keyframeResolver=new d(a,(m,y,x)=>this.onKeyframesResolved(m,y,f,!x),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:u,onUpdate:c}=s;this.resolvedAt=j.now(),ta(e,o,r,a)||((Z.instantAnimations||!l)&&c?.(cn(e,s,n)),e[0]=e[e.length-1],Ie(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ia?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!u&&sa(f)?new Jo({...f,element:f.motionValue.owner.current}):new hn(f);d.finished.then(()=>this.notifyFinished()).catch(N),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ko()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const oa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function aa(t){const e=oa.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function ki(t,e,n=1){const[s,i]=aa(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Qs(r)?parseFloat(r):r}return sn(i)?ki(i,e,n+1):i}function dn(t,e){return t?.[e]??t?.default??t}const Bi=new Set(["width","height","top","left","right","bottom",...Tt]),la={test:t=>t==="auto",parse:t=>t},Fi=t=>e=>e.test(t),Ii=[xt,w,_,Q,eo,to,la],_n=t=>Ii.find(Fi(t));function ca(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ei(t):!0}const ua=new Set(["brightness","contrast","saturate","opacity"]);function ha(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(rn)||[];if(!s)return t;const i=n.replace(s,"");let o=ua.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const fa=/\b([a-z-]*)\(.*?\)/gu,Oe={...tt,getAnimatableNone:t=>{const e=t.match(fa);return e?e.map(ha).join(" "):t}},Xn={...xt,transform:Math.round},da={rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:Ut,scaleX:Ut,scaleY:Ut,scaleZ:Ut,skew:Q,skewX:Q,skewY:Q,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:Rt,originX:Fn,originY:Fn,originZ:w},mn={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,radius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,backgroundPositionX:w,backgroundPositionY:w,...da,zIndex:Xn,fillOpacity:Rt,strokeOpacity:Rt,numOctaves:Xn},ma={...mn,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:Oe,WebkitFilter:Oe},Oi=t=>ma[t];function ji(t,e){let n=Oi(t);return n!==Oe&&(n=tt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
vendor: 6,343 bytes, line 1
1const pa=new Set(["auto","none","0"]);function ga(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!pa.has(o)&&Lt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=ji(n,i)}class ya extends fn{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),sn(u))){const c=ki(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Bi.has(s)||e.length!==2)return;const[i,o]=e,r=_n(i),a=_n(o);if(r!==a)if($n(r)&&$n(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else at[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||ca(e[i]))&&s.push(i);s.length&&ga(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=at[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=at[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function pn(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){const i=document.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const Ni=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function gn(t){return ti(t)&&"offsetHeight"in t}const Yn=30,va=t=>!isNaN(parseFloat(t));class xa{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=j.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=j.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=va(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Je);const s=this.events[e].add(n);return e==="change"?()=>{s(),C.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=j.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Yn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Yn);return Qe(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function z(t,e){return new xa(t,e)}const{schedule:yn}=fi(queueMicrotask,!1),H={x:!1,y:!1};function Wi(){return H.x||H.y}function Ta(t){return t==="x"||t==="y"?H[t]?null:(H[t]=!0,()=>{H[t]=!1}):H.x||H.y?null:(H.x=H.y=!0,()=>{H.x=H.y=!1})}function Ui(t,e){const n=pn(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function qn(t){return!(t.pointerType==="touch"||Wi())}function Pa(t,e,n={}){const[s,i,o]=Ui(t,n),r=a=>{if(!qn(a))return;const{target:l}=a,u=e(l,a);if(typeof u!="function"||!l)return;const c=h=>{qn(h)&&(u(h),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const Ki=(t,e)=>e?t===e?!0:Ki(t,e.parentElement):!1,vn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,wa=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Sa(t){return wa.has(t.tagName)||t.tabIndex!==-1}const Gt=new WeakSet;function Zn(t){return e=>{e.key==="Enter"&&t(e)}}function me(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ba=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Zn(()=>{if(Gt.has(n))return;me(n,"down");const i=Zn(()=>{me(n,"up")}),o=()=>me(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Jn(t){return vn(t)&&!Wi()}function Aa(t,e,n={}){const[s,i,o]=Ui(t,n),r=a=>{const l=a.currentTarget;if(!Jn(a))return;Gt.add(l);const u=e(l,a),c=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Gt.has(l)&&Gt.delete(l),Jn(d)&&typeof u=="function"&&u(d,{success:m})},h=d=>{c(d,l===window||l===document||n.useGlobalTarget||Ki(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};
1return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),gn(a)&&(a.addEventListener("focus",u=>ba(u,i)),!Sa(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function xn(t){return ti(t)&&"ownerSVGElement"in t}const _t=new WeakMap;let Xt;const $i=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:xn(s)&&"getBBox"in s?s.getBBox()[e]:s[n],Va=$i("inline","width","offsetWidth"),Ca=$i("block","height","offsetHeight");function Ma({target:t,borderBoxSize:e}){_t.get(t)?.forEach(n=>{n(t,{get width(){return Va(t,e)},get height(){return Ca(t,e)}})})}function Da(t){t.forEach(Ma)}function Ea(){typeof ResizeObserver>"u"||(Xt=new ResizeObserver(Da))}function Ra(t,e){Xt||Ea();const n=pn(t);return n.forEach(s=>{let i=_t.get(s);i||(i=new Set,_t.set(s,i)),i.add(e),Xt?.observe(s)}),()=>{n.forEach(s=>{const i=_t.get(s);i?.delete(e),i?.size||Xt?.unobserve(s)})}}const Yt=new Set;let ht;function La(){ht=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Yt.forEach(e=>e(t))},window.addEventListener("resize",ht)}function ka(t){return Yt.add(t),ht||La(),()=>{Yt.delete(t),!Yt.size&&typeof ht=="function"&&(window.removeEventListener("resize",ht),ht=void 0)}}function Ba(t,e){return typeof t=="function"?ka(t):Ra(t,e)}function Hi(t,e){let n;const s=()=>{const{currentTime:i}=e,r=(i===null?0:i.value)/100;n!==r&&t(r),n=r};return C.preUpdate(s,!0),()=>Y(s)}function Fa(t){return xn(t)&&t.tagName==="svg"}const F=t=>!!(t&&t.getVelocity),Ia=[...Ii,R,tt],Oa=t=>Ia.find(Fi(t)),Tn=p.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Qn(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function ja(...t){return e=>{let n=!1;const s=t.map(i=>{const o=Qn(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<s.length;i++){const o=s[i];typeof o=="function"?o():Qn(t[i],null)}}}}function Na(...t){return p.useCallback(ja(...t),t)}class Wa extends p.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,i=gn(s)&&s.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Ua({children:t,isPresent:e,anchorX:n,root:s}){const i=p.useId(),o=p.useRef(null),r=p.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=p.useContext(Tn),l=Na(o,t?.ref);return p.useInsertionEffect(()=>{const{width:u,height:c,top:h,left:f,right:d}=r.current;if(e||!o.current||!u||!c)return;const m=n==="left"?`left: ${f}`:`right: ${d}`;o.current.dataset.motionPopId=i;const y=document.createElement("style");a&&(y.nonce=a);const x=s??document.head;return x.appendChild(y),y.sheet&&y.sheet.insertRule(`
2          [data-motion-pop-id="${i}"] {
3            position: absolute !important;
4            width: ${u}px !important;
5            height: ${c}px !important;
6            ${m}px !important;
7            top: ${h}px !important;
8          }
9        `),()=>{x.contains(y)&&x.removeChild(y)}},[e]),q.jsx(Wa,{isPresent:e,childRef:o,sizeRef:r,children:p.cloneElement(t,{ref:l})})}const Ka=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r,anchorX:a,root:l})=>{const u=ie($a),c=p.useId();let h=!0,f=p.useMemo(()=>(h=!1,{id:c,initial:e,isPresent:n,custom:i,onExitComplete:d=>{u.set(d,!0);for(const m of u.values())if(!m)return;s&&s()},register:d=>(u.set(d,!1),()=>u.delete(d))}),[n,u,s]);return o&&h&&(f={...f}),p.useMemo(()=>{u.forEach((d,m)=>u.set(m,!1))},[n]),p.useEffect(()=>{!n&&!u.size&&s&&s()},[n]),r==="popLayout"&&(t=q.jsx(Ua,{isPresent:n,anchorX:a,root:l,children:t})),q.jsx(re.Provider,{value:f,children:t})};function $a(){return new Map}function zi(t=!0){const e=p.useContext(re);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=p.useId();p.useEffect(()=>{if(t)return i(o)},[t]);const r=p.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Kt=t=>t.key||"";function ts(t){const e=[];
vendor: 5,413 bytes, line 9
9return p.Children.forEach(t,n=>{p.isValidElement(n)&&e.push(n)}),e}const Hu=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1,anchorX:a="left",root:l})=>{const[u,c]=zi(r),h=p.useMemo(()=>ts(t),[t]),f=r&&!u?[]:h.map(Kt),d=p.useRef(!0),m=p.useRef(h),y=ie(()=>new Map),[x,g]=p.useState(h),[T,v]=p.useState(h);Xe(()=>{d.current=!1,m.current=h;for(let A=0;A<T.length;A++){const V=Kt(T[A]);f.includes(V)?y.delete(V):y.get(V)!==!0&&y.set(V,!1)}},[T,f.length,f.join("-")]);const b=[];if(h!==x){let A=[...h];for(let V=0;V<T.length;V++){const S=T[V],L=Kt(S);f.includes(L)||(A.splice(V,0,S),b.push(S))}return o==="wait"&&b.length&&(A=b),v(ts(A)),g(h),null}const{forceRender:P}=p.useContext(Ge);return q.jsx(q.Fragment,{children:T.map(A=>{const V=Kt(A),S=r&&!u?!1:h===T||f.includes(V),L=()=>{if(y.has(V))y.set(V,!0);else return;let I=!0;y.forEach(J=>{J||(I=!1)}),I&&(P?.(),v(m.current),r&&c?.(),s&&s())};return q.jsx(Ka,{isPresent:S,initial:!d.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,root:l,onExitComplete:S?void 0:L,anchorX:a,children:A},V)})})},Gi=p.createContext({strict:!1}),es={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},vt={};for(const t in es)vt[t]={isEnabled:e=>es[t].some(n=>!!e[n])};function Ha(t){for(const e in t)vt[e]={...vt[e],...t[e]}}const za=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ee(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||za.has(t)}let _i=t=>!ee(t);function Ga(t){typeof t=="function"&&(_i=e=>e.startsWith("on")?!ee(e):t(e))}try{Ga(require("@emotion/is-prop-valid").default)}catch{}function _a(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(_i(i)||n===!0&&ee(i)||!e&&!ee(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const oe=p.createContext({});function ae(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function kt(t){return typeof t=="string"||Array.isArray(t)}const Pn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wn=["initial",...Pn];function le(t){return ae(t.animate)||wn.some(e=>kt(t[e]))}function Xi(t){return!!(le(t)||t.variants)}function Xa(t,e){if(le(t)){const{initial:n,animate:s}=t;return{initial:n===!1||kt(n)?n:void 0,animate:kt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Ya(t){const{initial:e,animate:n}=Xa(t,p.useContext(oe));return p.useMemo(()=>({initial:e,animate:n}),[ns(e),ns(n)])}function ns(t){return Array.isArray(t)?t.join(" "):t}const Bt={};function qa(t){for(const e in t)Bt[e]=t[e],nn(e)&&(Bt[e].isCSSVariable=!0)}function Yi(t,{layout:e,layoutId:n}){return Pt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Bt[t]||t==="opacity")}const Za={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ja=Tt.length;function Qa(t,e,n){let s="",i=!0;for(let o=0;o<Ja;o++){const r=Tt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Ni(a,mn[r]);if(!l){i=!1;const c=Za[r]||r;s+=`${c}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Sn(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const u=e[l];if(Pt.has(l)){r=!0;continue}else if(nn(l)){i[l]=u;continue}else{const c=Ni(u,mn[l]);l.startsWith("origin")?(a=!0,o[l]=c):s[l]=c}}if(e.transform||(r||n?s.transform=Qa(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;s.transformOrigin=`${l} ${u} ${c}`}}const bn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qi(t,e,n){for(const s in e)!F(e[s])&&!Yi(s,n)&&(t[s]=e[s])}function tl({transformTemplate:t},e){return p.useMemo(()=>{const n=bn();return Sn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function el(t,e){const n=t.style||{},s={};return qi(s,n,t),Object.assign(s,tl(t,e)),s}function nl(t,e){const n={},s=el(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const sl={offset:"stroke-dashoffset",array:"stroke-dasharray"},il={offset:"strokeDashoffset",array:"strokeDasharray"};function rl(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?sl:il;t[o.offset]=w.transform(-s);const r=w.transform(e),a=w.transform(n);t[o.array]=`${r} ${a}`}function Zi(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a}
9,l,u,c){if(Sn(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&rl(h,i,o,r,!1)}const Ji=()=>({...bn(),attrs:{}}),Qi=t=>typeof t=="string"&&t.toLowerCase()==="svg";function ol(t,e,n,s){const i=p.useMemo(()=>{const o=Ji();return Zi(o,e,Qi(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};qi(o,t.style,t),i.style={...o,...i.style}}return i}const al=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function An(t){return typeof t!="string"||t.includes("-")?!1:!!(al.indexOf(t)>-1||/[A-Z]/u.test(t))}function ll(t,e,n,{latestValues:s},i,o=!1){const a=(An(t)?ol:nl)(e,s,i,t),l=_a(e,typeof t=="string",o),u=t!==p.Fragment?{...l,...a,ref:n}:{},{children:c}=e,h=p.useMemo(()=>F(c)?c.get():c,[c]);return p.createElement(t,{...u,children:h})}function ss(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Vn(t,e,n,s){if(typeof e=="function"){const[i,o]=ss(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=ss(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function qt(t){return F(t)?t.get():t}function cl({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:ul(n,s,i,t),renderState:e()}}function ul(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=qt(o[f]);let{initial:r,animate:a}=t;const l=le(t),u=Xi(t);e&&u&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||r===!1;const h=c?a:r;if(h&&typeof h!="boolean"&&!ae(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const m=Vn(t,f[d]);if(m){const{transitionEnd:y,transition:x,...g}=m;for(const T in g){let v=g[T];if(Array.isArray(v)){const b=c?v.length-1:0;v=v[b]}v!==null&&(i[T]=v)}for(const T in y)i[T]=y[T]}}}return i}const tr=t=>(e,n)=>{const s=p.useContext(oe),i=p.useContext(re),o=()=>cl(t,e,s,i);return n?o():ie(o)};function Cn(t,e,n){const{style:s}=t,i={};for(const o in s)(F(s[o])||e.style&&F(e.style[o])||Yi(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=s[o]);return i}const hl=tr({scrapeMotionValuesFromProps:Cn,createRenderState:bn});function er(t,e,n){const s=Cn(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const o=Tt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}const fl=tr({scrapeMotionValuesFromProps:er,createRenderState:Ji}),dl=Symbol.for("motionComponentSymbol");function ft(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function ml(t,e,n){return p.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):ft(n)&&(n.current=s))},[e])}const Mn=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),pl="framerAppearId",nr="data-"+Mn(pl),sr=p.createContext({});function gl(t,e,n,s,i){const{visualElement:o}=p.useContext(oe),r=p.useContext(Gi),a=p.useContext(re),l=p.useContext(Tn).reducedMotion,u=p.useRef(null);s=s||r.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,h=p.useContext(sr);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&yl(u.current,n,i,h);const f=p.useRef(!1);p.useInsertionEffect(()=>{c&&f.current&&c.update(n,a)});const d=n[nr],m=p.useRef(!!d&&!window.MotionHandoffIsComplete?.(d)&&window.MotionHasOptimisedAnimation?.(d));return Xe(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),m.current&&c.animationState&&c.animationState.animateChanges())}),p.useEffect(()=>{c&&(!m.current&&c.animationState&&c.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(d)}),m.current=!1),c.enteringChildren=void 0)}),c}function yl(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:ir(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&ft(a),visualElement:t,animationType:typeof o=="str
9ing"?o:"both",initialPromotionConfig:s,crossfade:c,layoutScroll:l,layoutRoot:u})}function ir(t){if(t)return t.options.allowProjection!==!1?t.projection:ir(t.parent)}function pe(t,{forwardMotionProps:e=!1}={},n,s){n&&Ha(n);const i=An(t)?fl:hl;function o(a,l){let u;const c={...p.useContext(Tn),...a,layoutId:vl(a)},{isStatic:h}=c,f=Ya(a),d=i(a,h);if(!h&&_e){xl();const m=Tl(c);u=m.MeasureLayout,f.visualElement=gl(t,d,c,s,m.ProjectionNode)}return q.jsxs(oe.Provider,{value:f,children:[u&&f.visualElement?q.jsx(u,{visualElement:f.visualElement,...c}):null,ll(t,a,ml(d,f.visualElement,l),d,h,e)]})}o.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const r=p.forwardRef(o);return r[dl]=t,r}function vl({layoutId:t}){const e=p.useContext(Ge).id;return e&&t!==void 0?e+"-"+t:t}function xl(t,e){p.useContext(Gi).strict}function Tl(t){const{drag:e,layout:n}=vt;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function Pl(t,e){if(typeof Proxy>"u")return pe;const n=new Map,s=(o,r)=>pe(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,pe(r,void 0,t,e)),n.get(r))})}function rr({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function wl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Sl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ge(t){return t===void 0||t===1}function je({scale:t,scaleX:e,scaleY:n}){return!ge(t)||!ge(e)||!ge(n)}function it(t){return je(t)||or(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function or(t){return is(t.x)||is(t.y)}function is(t){return t&&t!=="0%"}function ne(t,e,n){const s=t-n,i=e*s;return n+i}function rs(t,e,n,s,i){return i!==void 0&&(t=ne(t,i,s)),ne(t,n,s)+e}function Ne(t,e=0,n=1,s,i){t.min=rs(t.min,e,n,s,i),t.max=rs(t.max,e,n,s,i)}function ar(t,{x:e,y:n}){Ne(t.x,e.translate,e.scale,e.originPoint),Ne(t.y,n.translate,n.scale,n.originPoint)}const os=.999999999999,as=1.0000000000001;function bl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&mt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,ar(t,r)),s&&it(o.latestValues)&&mt(t,o.latestValues))}e.x<as&&e.x>os&&(e.x=1),e.y<as&&e.y>os&&(e.y=1)}function dt(t,e){t.min=t.min+e,t.max=t.max+e}function ls(t,e,n,s,i=.5){const o=M(t.min,t.max,i);Ne(t,e,n,o,s)}function mt(t,e){ls(t.x,e.x,e.scaleX,e.scale,e.originX),ls(t.y,e.y,e.scaleY,e.scale,e.originY)}function lr(t,e){return rr(Sl(t.getBoundingClientRect(),e))}function Al(t,e,n){const s=lr(t,n),{scroll:i}=e;return i&&(dt(s.x,i.offset.x),dt(s.y,i.offset.y)),s}const cs=()=>({translate:0,scale:1,origin:0,originPoint:0}),pt=()=>({x:cs(),y:cs()}),us=()=>({min:0,max:0}),E=()=>({x:us(),y:us()}),se={current:null},Dn={current:!1};function cr(){if(Dn.current=!0,!!_e)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>se.current=t.matches;t.addEventListener("change",e),e()}else se.current=!1}const Vl=new WeakMap;function Cl(t,e,n){for(const s in e){const i=e[s],o=n[s];if(F(i))t.addValue(s,i);else if(F(o))t.addValue(s,z(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,z(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const hs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ml{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=fn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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=()=>{const f=j.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,C.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=le(n),this.isVariantNode=Xi(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&F(d)&&d.set(l[f])}}mount(e){this.current=e,Vl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 30,120 bytes, line 9
9h((n,s)=>this.bindToMotionValue(s,n)),Dn.current||cr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:se.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Y(this.notifyUpdate),Y(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=Pt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&C.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in vt){const n=vt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):E()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<hs.length;s++){const i=hs[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Cl(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=z(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Qs(s)||ei(s))?s=parseFloat(s):!Oa(s)&&tt.test(n)&&(s=ji(e,n)),this.setBaseTarget(e,F(s)?s.get():s)),F(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=Vn(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!F(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Je),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){yn.render(this.render)}}class ur extends Ml{constructor(){super(...arguments),this.KeyframeResolver=ya}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;F(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function hr(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function Dl(t){return window.getComputedStyle(t)}class El extends ur{constructor(){super(...arguments),this.type="html",this.renderInstance=hr}readValueFromInstance(e,n){if(Pt.has(n))return this.projection?.isProjecting?Re(n):Oo(e,n);{const s=Dl(e),i=(nn(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return lr(e,n)}build(e,n,s){Sn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Cn(e,n,s)}}const fr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Rl(t,e,n,s){hr(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(fr.has(i)?i:Mn(i),e.attrs[i])}class Ll extends ur{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=E}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Pt.has(n)){const s=Oi(n);return s&&s.default||0}return n=fr.has(n)?n:Mn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return er(e,n,s)}build(e,n,s){Zi(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Rl(e,n,s,i)}mount(e){this.isSVGTag=Qi(e.tagName),super.mount(e)}}const kl=(t,e)=>An(t)?new Ll(e):new El(e,{allowProjection:t!==p.Fragment});function gt(t,e,n){const s=t.getProps();return Vn(s,e,n!==void 0?n:s.custom,t)}const We=t=>Array.isArray(t);function Bl(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,z(n))}function Fl(t){return We(t)?t[t.length-1]||0:t}function Il(t,e){const n=gt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Fl(o[r]);Bl(t,r,a)}}function Ol(t){return!!(F(t)&&t.add)}function Ue(t,e){const n=t.getValue("willChange");if(Ol(n))return n.add(e);if(!n&&Z.WillChange){const s=new Z.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function dr(t){return t.props[nr]}const jl=t=>t!==null;function Nl(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(jl),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}const Wl={type:"spring",stiffness:500,damping:25,restSpeed:10},Ul=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Kl={type:"keyframes",duration:.8},$l={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Hl=(t,{keyframes:e})=>e.length>2?Kl:Pt.has(t)?t.startsWith("scale")?Ul(e[1]):Wl:$l;function zl({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const En=(t,e,n,s={},i,o)=>r=>{const a=dn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-G(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};zl(a)||Object.assign(c,Hl(t,c)),c.duration&&(c.duration=G(c.duration)),c.repeatDelay&&(c.repeatDelay=G(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Ie(c),c.delay===0&&(h=!0)),(Z.instantAnimations||Z.skipAnimations)&&(h=!0,Ie(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=Nl(c.keyframes,a);if(f!==void 0){C.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new hn(c):new ra(c)};function Gl({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function mr(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;s&&(o=s);const l=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const c in a){const h=t.getValue(c,t.latestValues[c]??null),f=a[c];if(f===void 0||u&&Gl(u,c))continue;const d={delay:n,...dn(o||{},c)},m=h.get();if(m!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===m&&!d.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const g=dr(t);if(g){const T=window.MotionHandoffAnimation(g,c,C);T!==null&&(d.startTime=T,y=!0)}}Ue(t,c),h.start(En(c,h,f,t.shouldReduceMotion&&Bi.has(c)?{type:!1}:d,t,y));const x=h.animation;x&&l.push(x)}return r&&Promise.all(l).then(()=>{C.update(()=>{r&&Il(t,r)})}),l}function pr(t,e,n,s=0,i=1){const o=Array.from(t).sort((u,c)=>u.sortNodePosition(c)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}function Ke(t,e,n={}){const s=gt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(mr(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:h}=i;return _l(t,e,l,u,c,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function _l(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Ke(l,e,{...r,delay:n+(typeof s=="function"?0:s)+pr(t.variantChildren,l,s,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Xl(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Ke(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Ke(t,e,n);else{const i=typeof e=="function"?gt(t,e,n.custom):e;s=Promise.all(mr(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}function gr(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const Yl=wn.length;function yr(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?yr(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Yl;n++){const s=wn[n],i=t.props[s];(kt(i)||i===!1)&&(e[s]=i)}return e}const ql=[...Pn].reverse(),Zl=Pn.length;function Jl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Xl(t,n,s)))}function Ql(t){let e=Jl(t),n=fs(),s=!0;const i=l=>(u,c)=>{const h=gt(t,c,l==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:d,...m}=h;u={...u,...m,...d}}return u};function o(l){e=l(t)}function r(l){const{props:u}=t,c=yr(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let x=0;x<Zl;x++){const g=ql[x],T=n[g],v=u[g]!==void 0?u[g]:c[g],b=kt(v),P=g===l?T.isActive:null;P===!1&&(m=x);let A=v===c[g]&&v!==u[g]&&b;if(A&&s&&t.manuallyAnimateOnMount&&(A=!1),T.protectedKeys={...d},!T.isActive&&P===null||!v&&!T.prevProp||ae(v)||typeof v=="boolean")continue;const V=tc(T.prevProp,v);let S=V||g===l&&T.isActive&&!A&&b||x>m&&b,L=!1;const I=Array.isArray(v)?v:[v];let J=I.reduce(i(g),{});P===!1&&(J={});const{prevResolvedValues:Rn={}}=T,Br={...Rn,...J},Ln=B=>{S=!0,f.has(B)&&(L=!0,f.delete(B)),T.needsAnimating[B]=!0;const W=t.getValue(B);W&&(W.liveStyle=!1)};for(const B in Br){const W=J[B],nt=Rn[B];if(d.hasOwnProperty(B))continue;let ct=!1;We(W)&&We(nt)?ct=!gr(W,nt):ct=W!==nt,ct?W!=null?Ln(B):f.add(B):W!==void 0&&f.has(B)?Ln(B):T.protectedKeys[B]=!0}T.prevProp=v,T.prevResolvedValues=J,T.isActive&&(d={...d,...J}),s&&t.blockInitialAnimation&&(S=!1);const kn=A&&V;S&&(!kn||L)&&h.push(...I.map(B=>{const W={type:g};if(typeof B=="string"&&s&&!kn&&t.manuallyAnimateOnMount&&t.parent){const{parent:nt}=t,ct=gt(nt,B);if(nt.enteringChildren&&ct){const{delayChildren:Fr}=ct.transition||{};W.delay=pr(nt.enteringChildren,t,Fr)}}return{animation:B,options:W}}))}if(f.size){const x={};if(typeof u.initial!="boolean"){const g=gt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(x.transition=g.transition)}f.forEach(g=>{const T=t.getBaseTarget(g),v=t.getValue(g);v&&(v.liveStyle=!0),x[g]=T??null}),h.push({animation:x})}let y=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(h):Promise.resolve()}function a(l,u){if(n[l].isActive===u)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(l,u)),n[l].isActive=u;const c=r(l);for(const h in n)n[h].protectedKeys={};return c}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=fs()}}}function tc(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!gr(e,t):!1}function st(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fs(){return{animate:st(!0),whileInView:st(),whileHover:st(),whileTap:st(),whileDrag:st(),whileFocus:st(),exit:st()}}class et{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ec extends et{constructor(e){super(e),e.animationState||(e.animationState=Ql(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ae(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let nc=0;class sc extends et{constructor(){super(...arguments),this.id=nc++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const ic={animation:{Feature:ec},exit:{Feature:sc}};function Ft(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function Nt(t){return{point:{x:t.pageX,y:t.pageY}}}const rc=t=>e=>vn(e)&&t(e,Nt(e));function Ct(t,e,n,s){return Ft(t,e,rc(n),s)}const vr=1e-4,oc=1-vr,ac=1+vr,xr=.01,lc=0-xr,cc=0+xr;function O(t){return t.max-t.min}function uc(t,e,n){return Math.abs(t-e)<=n}function ds(t,e,n,s=.5){t.origin=s,t.originPoint=M(e.min,e.max,t.origin),t.scale=O(n)/O(e),t.translate=M(n.min,n.max,t.origin)-t.originPoint,(t.scale>=oc&&t.scale<=ac||isNaN(t.scale))&&(t.scale=1),(t.translate>=lc&&t.translate<=cc||isNaN(t.translate))&&(t.translate=0)}function Mt(t,e,n,s){ds(t.x,e.x,n.x,s?s.originX:void 0),ds(t.y,e.y,n.y,s?s.originY:void 0)}function ms(t,e,n){t.min=n.min+e.min,t.max=t.min+O(e)}function hc(t,e,n){ms(t.x,e.x,n.x),ms(t.y,e.y,n.y)}function ps(t,e,n){t.min=e.min-n.min,t.max=t.min+O(e)}function Dt(t,e,n){ps(t.x,e.x,n.x),ps(t.y,e.y,n.y)}function K(t){return[t("x"),t("y")]}const Tr=({current:t})=>t?t.ownerDocument.defaultView:null,gs=(t,e)=>Math.abs(t-e);function fc(t,e){const n=gs(t.x,e.x),s=gs(t.y,e.y);return Math.sqrt(n**2+s**2)}class Pr{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=ve(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=fc(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!m)return;const{point:y}=f,{timestamp:x}=k;this.history.push({...y,timestamp:x});const{onStart:g,onMove:T}=this.handlers;d||(g&&g(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=ye(d,this.transformPagePoint),C.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=ve(f.type==="pointercancel"?this.lastMoveEventInfo:ye(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,g),y&&y(f,g)},!vn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const a=Nt(e),l=ye(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=k;this.history=[{...u,timestamp:c}];const{onSessionStart:h}=n;h&&h(e,ve(l,this.history)),this.removeListeners=It(Ct(this.contextWindow,"pointermove",this.handlePointerMove),Ct(this.contextWindow,"pointerup",this.handlePointerUp),Ct(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Y(this.updatePoint)}}function ye(t,e){return e?{point:e(t.point)}:t}function ys(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ve({point:t},e){return{point:t,delta:ys(t,wr(e)),offset:ys(t,dc(e)),velocity:mc(e,.1)}}function dc(t){return t[0]}function wr(t){return t[t.length-1]}function mc(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=wr(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>G(e)));)n--;if(!s)return{x:0,y:0};const o=$(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function pc(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?M(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?M(n,t,s.max):Math.min(t,n)),t}function vs(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function gc(t,{top:e,left:n,bottom:s,right:i}){return{x:vs(t.x,n,i),y:vs(t.y,e,s)}}function xs(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function yc(t,e){return{x:xs(t.x,e.x),y:xs(t.y,e.y)}}function vc(t,e){let n=.5;const s=O(t),i=O(e);return i>s?n=yt(e.min,e.max-s,t.min):s>i&&(n=yt(t.min,t.max-i,e.min)),X(0,1,n)}function xc(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const $e=.35;function Tc(t=$e){return t===!1?t=0:t===!0&&(t=$e),{x:Ts(t,"left","right"),y:Ts(t,"top","bottom")}}function Ts(t,e,n){return{min:Ps(t,e),max:Ps(t,n)}}function Ps(t,e){return typeof t=="number"?t:t[e]||0}const Pc=new WeakMap;class wc{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=E(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Nt(h).point)},r=(h,f)=>{const{drag:d,dragPropagation:m,onDragStart:y}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ta(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),K(g=>{let T=this.getAxisMotionValue(g).get()||0;if(_.test(T)){const{projection:v}=this.visualElement;if(v&&v.layout){const b=v.layout.layoutBox[g];b&&(T=O(b)*(parseFloat(T)/100))}}this.originPoint[g]=T}),y&&C.postRender(()=>y(h,f)),Ue(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:y,onDrag:x}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:g}=f;if(m&&this.currentDirection===null){this.currentDirection=Sc(g),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),x&&x(h,f)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>K(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Pr(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:s,contextWindow:Tr(this.visualElement)})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&C.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!$t(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=pc(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&ft(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=gc(s.layoutBox,e):this.constraints=!1,this.elastic=Tc(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&K(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=xc(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ft(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Al(s,i.root,this.visualElement.getTransformPagePoint());let r=yc(i.layout.layoutBox,o);if(n){const a=n(wl(r));this.hasMutatedConstraints=!!a,a&&(r=rr(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=K(c=>{if(!$t(c,n,this.currentDirection))return;let h=l&&l[c]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Ue(this.visualElement,e),s.start(En(e,s,0,n,this.visualElement,!1))}stopAnimation(){K(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){K(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){K(n=>{const{drag:s}=this.getProps();if(!$t(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-M(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!ft(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};K(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=vc({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),K(r=>{if(!$t(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(M(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;Pc.set(this.visualElement,this);const e=this.visualElement.current,n=Ct(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();ft(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),C.read(s);const r=Ft(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(K(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())}));return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=$e,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function $t(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Sc(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class bc extends et{constructor(e){super(e),this.removeGroupControls=N,this.removeListeners=N,this.controls=new wc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||N}unmount(){this.removeGroupControls(),this.removeListeners()}}const ws=t=>(e,n)=>{t&&C.postRender(()=>t(e,n))};class Ac extends et{constructor(){super(...arguments),this.removePointerDownListener=N}onPointerDown(e){this.session=new Pr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Tr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:ws(e),onStart:ws(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&C.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Ct(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Zt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ss(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const wt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(w.test(t))t=parseFloat(t);else return t;const n=Ss(t,e.target.x),s=Ss(t,e.target.y);return`${n}% ${s}%`}},Vc={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=tt.parse(t);if(i.length>5)return s;const o=tt.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=M(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}};let xe=!1;class Cc extends p.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;qa(Mc),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),xe&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Zt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,xe=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||C.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),yn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;xe=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Sr(t){const[e,n]=zi(),s=p.useContext(Ge);return q.jsx(Cc,{...t,layoutGroup:s,switchLayoutGroup:p.useContext(sr),isPresent:e,safeToRemove:n})}const Mc={borderRadius:{...wt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wt,borderTopRightRadius:wt,borderBottomLeftRadius:wt,borderBottomRightRadius:wt,boxShadow:Vc};function Dc(t,e,n){const s=F(t)?t:z(t);return s.start(En("",s,e,n)),s.animation}const Ec=(t,e)=>t.depth-e.depth;class Rc{constructor(){this.children=[],this.isDirty=!1}add(e){Ye(this.children,e),this.isDirty=!0}remove(e){qe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ec),this.isDirty=!1,this.children.forEac
vendor: 5,053 bytes, line 9
9h(e)}}function Lc(t,e){const n=j.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(Y(s),t(o-e))};return C.setup(s,!0),()=>Y(s)}const br=["TopLeft","TopRight","BottomLeft","BottomRight"],kc=br.length,bs=t=>typeof t=="string"?parseFloat(t):t,As=t=>typeof t=="number"||w.test(t);function Bc(t,e,n,s,i,o){i?(t.opacity=M(0,n.opacity??1,Fc(s)),t.opacityExit=M(e.opacity??1,0,Ic(s))):o&&(t.opacity=M(e.opacity??1,n.opacity??1,s));for(let r=0;r<kc;r++){const a=`border${br[r]}Radius`;let l=Vs(e,a),u=Vs(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||As(l)===As(u)?(t[a]=Math.max(M(bs(l),bs(u),s),0),(_.test(u)||_.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=M(e.rotate||0,n.rotate||0,s))}function Vs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Fc=Ar(0,.5,li),Ic=Ar(.5,.95,N);function Ar(t,e,n){return s=>s<t?0:s>e?1:n(yt(t,e,s))}function Cs(t,e){t.min=e.min,t.max=e.max}function U(t,e){Cs(t.x,e.x),Cs(t.y,e.y)}function Ms(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Ds(t,e,n,s,i){return t-=e,t=ne(t,1/n,s),i!==void 0&&(t=ne(t,1/i,s)),t}function Oc(t,e=0,n=1,s=.5,i,o=t,r=t){if(_.test(e)&&(e=parseFloat(e),e=M(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=M(o.min,o.max,s);t===o&&(a-=e),t.min=Ds(t.min,e,n,a,i),t.max=Ds(t.max,e,n,a,i)}function Es(t,e,[n,s,i],o,r){Oc(t,e[n],e[s],e[i],e.scale,o,r)}const jc=["x","scaleX","originX"],Nc=["y","scaleY","originY"];function Rs(t,e,n,s){Es(t.x,e,jc,n?n.x:void 0,s?s.x:void 0),Es(t.y,e,Nc,n?n.y:void 0,s?s.y:void 0)}function Ls(t){return t.translate===0&&t.scale===1}function Vr(t){return Ls(t.x)&&Ls(t.y)}function ks(t,e){return t.min===e.min&&t.max===e.max}function Wc(t,e){return ks(t.x,e.x)&&ks(t.y,e.y)}function Bs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Cr(t,e){return Bs(t.x,e.x)&&Bs(t.y,e.y)}function Fs(t){return O(t.x)/O(t.y)}function Is(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Uc{constructor(){this.members=[]}add(e){Ye(this.members,e),e.scheduleRender()}remove(e){if(qe(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Kc(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Te=["","X","Y","Z"],$c=1e3;let Hc=0;function Pe(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Mr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=dr(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",C,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Mr(s)}function Dr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=Hc++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 8,463 bytes, line 9
9{this.projectionUpdateScheduled=!1,this.nodes.forEach(_c),this.nodes.forEach(Zc),this.nodes.forEach(Jc),this.nodes.forEach(Xc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Rc)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Je),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=xn(r)&&!Fa(r),this.instance=r;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let c,h=0;const f=()=>this.root.updateBlockedByResize=!1;C.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,c&&c(),c=Lc(f,250),Zt.hasAnimatedSinceResize&&(Zt.hasAnimatedSinceResize=!1,this.nodes.forEach(Ns)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||su,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=u.getProps(),g=!this.targetLayout||!Cr(this.targetLayout,d),T=!h&&f;if(this.options.layoutRoot||this.resumeFrom||T||h&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...dn(m,"layout"),onPlay:y,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,T)}else h||Ns(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Y(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(Qc),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Mr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Os);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(js);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(qc),this.nodes.forEach(zc),this.nodes.forEach(Gc)):this.nodes.forEach(js),this.clearAllSnapshots();const a=j.now();k.delta=X(0,1e3/60,a-k.timestamp),k.timestamp=a,k.isProcessing=!0,ce.update.process(k),ce.preRender.process(k),ce.render.process(k),k.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,yn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Yc),this.sharedNodes.forEach(tu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,C.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){C.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!O(this.snapshot.measuredBox.x)&&!O(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=E(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Vr(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||it(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),iu(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return E();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ru))){const{scroll:u}=this.root;u&&(dt(a.x,u.offset.x),dt(a.y,u.offset.y))}return a}removeElementScroll(r){const a=E();if(U(a,r),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:h}=u;u!==this.root&&c&&h.layoutScroll&&(c.wasRoot&&U(a,r),dt(a.x,c.offset.x),dt(a.y,c.offset.y))}return a}applyTransform(r,a=!1){const l=E();U(l,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&mt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),it(c.latestValues)&&mt(l,c.latestValues)}return it(this.latestValues)&&mt(l,this.latestValues),l}removeTransform(r){const a=E();U(a,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!it(u.latestValues))continue;je(u.latestValues)&&u.updateSnapshot();const c=E(),h=u.measurePageBox();U(c,h),Rs(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return it(this.latestValues)&&Rs(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}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!==k.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:h}=this.options;
vendor: 5,668 bytes, line 9
9if(!(!this.layout||!(c||h))){if(this.resolvedRelativeTargetAt=k.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=E(),this.relativeTargetOrigin=E(),Dt(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),U(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=E(),this.targetWithTransforms=E()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hc(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):U(this.target,this.layout.layoutBox),ar(this.target,this.targetDelta)):U(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=E(),this.relativeTargetOrigin=E(),Dt(this.relativeTargetOrigin,this.target,f.target),U(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||je(this.parent.latestValues)||or(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===k.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;U(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;bl(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=E());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ms(this.prevProjectionDelta.x,this.projectionDelta.x),Ms(this.prevProjectionDelta.y,this.projectionDelta.y)),Mt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Is(this.projectionDelta.x,this.prevProjectionDelta.x)||!Is(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=pt(),this.projectionDelta=pt(),this.projectionDeltaWithTransform=pt()}setAnimationOrigin(r,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=pt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=E(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=d!==m,x=this.getStack(),g=!x||x.members.length<=1,T=!!(y&&!g&&this.options.crossfade===!0&&!this.path.some(nu));this.animationProgress=0;let v;this.mixTargetDelta=b=>{const P=b/1e3;Ws(h.x,r.x,P),Ws(h.y,r.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Dt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),eu(this.relativeTarget,this.relativeTargetOrigin,f,P),v&&Wc(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=E()),U(v,this.relativeTarget)),y&&(this.animationValues=c,Bc(c,u,this.latestValues,P,T,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Y(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=C.update(()=>{Zt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=z(0)),this.currentAnimation=Dc(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta($c
vendor: 4,850 bytes, line 9
9),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=r;if(!(!a||!l||!u)){if(this!==r&&this.layout&&u&&Er(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||E();const h=O(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=O(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}U(a,l),mt(a,c),Mt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Uc),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Pe("z",r,u,this.animationValues);for(let c=0;c<Te.length;c++)Pe(`rotate${Te[c]}`,r,u,this.animationValues),Pe(`skew${Te[c]}`,r,u,this.animationValues);r.render();for(const c in u)r.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=qt(a?.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=qt(a?.pointerEvents)||""),this.hasProjected&&!it(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=Kc(this.projectionDeltaWithTransform,this.treeScale,c);l&&(h=l(c,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,u.animationValues?r.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:r.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const m in Bt){if(c[m]===void 0)continue;const{correct:y,applyTo:x,isCSSVariable:g}=Bt[m],T=h==="none"?c[m]:y(c[m],u);if(x){const v=x.length;for(let b=0;b<v;b++)r[x[b]]=T}else g?this.options.visualElement.renderState.vars[m]=T:r[m]=T}this.options.layoutId&&(r.pointerEvents=u===this?qt(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Os),this.root.sharedNodes.clear()}}}function zc(t){t.updateLayout()}function Gc(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;i==="size"?K(c=>{const h=o?e.measuredBox[c]:e.layoutBox[c],f=O(h);h.min=n[c].min,h.max=h.min+f}):Er(i,e.layoutBox,n)&&K(c=>{const h=o?e.measuredBox[c]:e.layoutBox[c],f=O(n[c]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[c].max=t.relativeTarget[c].min+f)});const r=pt();Mt(r,n,e.layoutBox);const a=pt();o?Mt(a,t.applyTransform(s,!0),e.measuredBox):Mt(a,n,e.layoutBox);const l=!Vr(r);let u=!1;if(!t.resumeFrom){const c=t.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:h,layout:f}=c;if(h&&f){const d=E();Dt(d,e.layoutBox,h.layoutBox);const m=E();Dt(m,n,f.layoutBox),Cr(d,m)||(u=!0),c.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=d,t.relativeParent=c)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function _c(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
9isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Xc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Yc(t){t.clearSnapshot()}function Os(t){t.clearMeasurements()}function js(t){t.isLayoutDirty=!1}function qc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ns(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Zc(t){t.resolveTargetDelta()}function Jc(t){t.calcProjection()}function Qc(t){t.resetSkewAndRotation()}function tu(t){t.removeLeadSnapshot()}function Ws(t,e,n){t.translate=M(e.translate,0,n),t.scale=M(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Us(t,e,n,s){t.min=M(e.min,n.min,s),t.max=M(e.max,n.max,s)}function eu(t,e,n,s){Us(t.x,e.x,n.x,s),Us(t.y,e.y,n.y,s)}function nu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const su={duration:.45,ease:[.4,0,.1,1]},Ks=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),$s=Ks("applewebkit/")&&!Ks("chrome/")?Math.round:N;function Hs(t){t.min=$s(t.min),t.max=$s(t.max)}function iu(t){Hs(t.x),Hs(t.y)}function Er(t,e,n){return t==="position"||t==="preserve-aspect"&&!uc(Fs(e),Fs(n),.2)}function ru(t){return t!==t.root&&t.scroll?.wasRoot}const ou=Dr({attachResizeListener:(t,e)=>Ft(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),we={current:void 0},Rr=Dr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!we.current){const t=new ou({});t.mount(window),t.setOptions({layoutScroll:!0}),we.current=t}return we.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),au={pan:{Feature:Ac},drag:{Feature:bc,ProjectionNode:Rr,MeasureLayout:Sr}};function zs(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&C.postRender(()=>o(e,Nt(e)))}class lu extends et{mount(){const{current:e}=this.node;e&&(this.unmount=Pa(e,(n,s)=>(zs(this.node,s,"Start"),i=>zs(this.node,i,"End"))))}unmount(){}}class cu extends et{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=It(Ft(this.node.current,"focus",()=>this.onFocus()),Ft(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Gs(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&C.postRender(()=>o(e,Nt(e)))}class uu extends et{mount(){const{current:e}=this.node;e&&(this.unmount=Aa(e,(n,s)=>(Gs(this.node,s,"Start"),(i,{success:o})=>Gs(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const He=new WeakMap,Se=new WeakMap,hu=t=>{const e=He.get(t.target);e&&e(t)},fu=t=>{t.forEach(hu)};function du({root:t,...e}){const n=t||document;Se.has(n)||Se.set(n,{});const s=Se.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(fu,{root:t,...e})),s[i]}function mu(t,e,n){const s=du(e);return He.set(t,n),s.observe(t),()=>{He.delete(t),s.unobserve(t)}}const pu={some:0,all:1};class gu extends et{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:pu[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return mu(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(yu(e,n))&&this.startObserver()}unmount(){}}function yu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const vu={inView:{Feature:gu},tap:{Feature:uu},focus:{Feature:cu},hover:{Feature:lu}},xu={layout:{ProjectionNode:Rr,MeasureLayout:Sr}},Tu={...ic,...vu,...au,...xu},Gu=Pl(Tu,kl),Pu=50,_s=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),wu=()=>({time:0,x:_s(),y:_s()}),Su={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Xs(t,e,n,s){const i=n[e],{length:o,position:r}=Su[e],a=i.current,l=n.time;i.current=t[`scroll${r}`],i.scrollLength=t[`scroll${o}`]-t[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=yt(0,i.scrollLength,i.current);const u=s-l;i.velocity=u>Pu?0:Qe(i.current-a,u)}function bu(t,e,n){Xs(t,"x",e,n),Xs(t,"y",e,n),e.time=n}function Au(t,e){const n={x:0,y:0};let s=t;for(;s&&s!==e;)if(gn(s))n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if(s.tagName==="svg"){const i=s.getBoundingClientRect();s=s.parentElement;const o=s.getBoundingClientRect();n.x+=i.left-o.left,n.y+=i.top-o.top}else if(s instanceof SVGGraphicsElement){const{x:i,y:o}=s.getBBox();n.x+=i,n.y+=o;let r=null,a=s.parentNode;for(;!r;)a.tagName==="svg"&&(r=a),a=s.parentNode;s=r}else break;return n}const ze={start:0,center:.5,end:1};function Ys(t,e,n=0){let s=0;if(t in ze&&(t=ze[t]),typeof t=="string"){const i=parseFloat(t);t.endsWith("px")?s=i:t.endsWith("%")?t=i/100:t.endsWith("vw")?s=i/100*document.documentElement.clientWidth:t.endsWith("vh")?s=i/100*document.documentElement.clientHeight:t=i}return typeof t=="number"&&(s=e*t),n+s}const Vu=[0,0];function Cu(t,e,n,s){let i=Array.isArray(t)?t:Vu,o=0,r=0;return typeof t=="number"?i=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?i=t.split(" "):i=[t,ze[t]?t:"0"]),o=Ys(i[0],n,s),r=Ys(i[1],e),o-r}const Mu={All:[[0,0],[1,1]]},Du={x:0,y:0};function Eu(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function Ru(t,e,n){const{offset:s=Mu.All}=n,{target:i=t,axis:o="y"}=n,r=o==="y"?"height":"width",a=i!==t?Au(i,t):Du,l=i===t?{width:t.scrollWidth,height:t.scrollHeight}:Eu(i),u={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let c=!e[o].interpolate;const h=s.length;for(let f=0;f<h;f++){const d=Cu(s[f],u[r],l[r],a[o]);
9!c&&d!==e[o].interpolatorOffsets[f]&&(c=!0),e[o].offset[f]=d}c&&(e[o].interpolate=Si(e[o].offset,bi(s),{clamp:!1}),e[o].interpolatorOffsets=[...e[o].offset]),e[o].progress=X(0,1,e[o].interpolate(e[o].current))}function Lu(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let s=e;for(;s&&s!==t;)n.x.targetOffset+=s.offsetLeft,n.y.targetOffset+=s.offsetTop,s=s.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}function ku(t,e,n,s={}){return{measure:i=>{Lu(t,s.target,n),bu(t,n,i),(s.offset||s.target)&&Ru(t,n,s)},notify:()=>e(n)}}const St=new WeakMap,qs=new WeakMap,be=new WeakMap,Zs=t=>t===document.scrollingElement?window:t;function Lr(t,{container:e=document.scrollingElement,...n}={}){if(!e)return N;let s=be.get(e);s||(s=new Set,be.set(e,s));const i=wu(),o=ku(e,t,i,n);if(s.add(o),!St.has(e)){const a=()=>{for(const h of s)h.measure(k.timestamp);C.preUpdate(l)},l=()=>{for(const h of s)h.notify()},u=()=>C.read(a);St.set(e,u);const c=Zs(e);window.addEventListener("resize",u,{passive:!0}),e!==document.documentElement&&qs.set(e,Ba(e,u)),c.addEventListener("scroll",u,{passive:!0}),u()}const r=St.get(e);return C.read(r,!1,!0),()=>{Y(r);const a=be.get(e);if(!a||(a.delete(o),a.size))return;const l=St.get(e);St.delete(e),l&&(Zs(e).removeEventListener("scroll",l),qs.get(e)?.(),window.removeEventListener("resize",l))}}const Js=new Map;function Bu(t){const e={value:0},n=Lr(s=>{e.value=s[t.axis].progress*100},t);return{currentTime:e,cancel:n}}function kr({source:t,container:e,...n}){const{axis:s}=n;t&&(e=t);const i=Js.get(e)??new Map;Js.set(e,i);const o=n.target??"self",r=i.get(o)??{},a=s+(n.offset??[]).join(",");return r[a]||(r[a]=!n.target&&Mi()?new ScrollTimeline({source:e,axis:s}):Bu({container:e,...n})),r[a]}function Fu(t,e){const n=kr(e);return t.attachTimeline({timeline:e.target?void 0:n,observe:s=>(s.pause(),Hi(i=>{s.time=s.iterationDuration*i},n))})}function Iu(t){return t.length===2}function Ou(t,e){return Iu(t)?Lr(n=>{t(n[e.axis].progress,n)},e):Hi(t,kr(e))}function ju(t,{axis:e="y",container:n=document.scrollingElement,...s}={}){if(!n)return N;const i={axis:e,container:n,...s};return typeof t=="function"?Ou(t,i):Fu(t,i)}const Nu=()=>({scrollX:z(0),scrollY:z(0),scrollXProgress:z(0),scrollYProgress:z(0)}),Ht=t=>t?!t.current:!1;function _u({container:t,target:e,...n}={}){const s=ie(Nu),i=p.useRef(null),o=p.useRef(!1),r=p.useCallback(()=>(i.current=ju((a,{x:l,y:u})=>{s.scrollX.set(l.current),s.scrollXProgress.set(l.progress),s.scrollY.set(u.current),s.scrollYProgress.set(u.progress)},{...n,container:t?.current||void 0,target:e?.current||void 0}),()=>{i.current?.()}),[t,e,JSON.stringify(n.offset)]);return Xe(()=>{if(o.current=!1,Ht(t)||Ht(e)){o.current=!0;return}else return r()},[r]),p.useEffect(()=>{if(o.current)return Et(!Ht(t)),Et(!Ht(e)),r()},[r]),s}function Xu(){!Dn.current&&cr();const[t]=p.useState(se.current);return t}const Wu={some:0,all:1};function Uu(t,e,{root:n,margin:s,amount:i="some"}={}){const o=pn(t),r=new WeakMap,a=u=>{u.forEach(c=>{const h=r.get(c.target);if(c.isIntersecting!==!!h)if(c.isIntersecting){const f=e(c.target,c);typeof f=="function"?r.set(c.target,f):l.unobserve(c.target)}else typeof h=="function"&&(h(c),r.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:s,threshold:typeof i=="number"?i:Wu[i]});return o.forEach(u=>l.observe(u)),()=>l.disconnect()}function Yu(t,{root:e,margin:n,amount:s,once:i=!1,initial:o=!1}={}){const[r,a]=p.useState(o);return p.useEffect(()=>{if(!t.current||i&&r)return;const l=()=>(a(!0),i?void 0:()=>a(!1)),u={root:e&&e.current||void 0,margin:n,amount:s};return Uu(t.current,l,u)},[e,t,n,i,s]),r}export{Hu as A,Yu as a,Xu as b,Gu as m,_u as u};

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.