PageSourceSearch

https://alternet.io/assets/motion-vendor-ieG_UGOh.js

js alternet.io collected 2026-10-09 04:47:40 UTC 121,458 bytes, 17 lines download raw bytes

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