PageSourceSearch

https://www.e7n.de/assets/proxy-CxVtxKBQ.js

js e7n.de collected 2026-10-07 04:43:20 UTC 123,808 bytes, 1 lines download raw bytes

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

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.