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