charlie-kirk 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm-publish-github-packages.yml +36 -0
- package/.github/workflows/publish.yml +21 -0
- package/8cfc2/ccqit.wasm +0 -0
- package/8cfc2/hgshm.js +195 -0
- package/8cfc2/sfoew.js +1 -0
- package/assets/3oruu3por5.js +1 -0
- package/assets/6y4sp7rdhb.js +1 -0
- package/assets/73sxysj46r.js +1 -0
- package/assets/8qezz8tdz1.js +1 -0
- package/assets/a3g0q43tbe.js +1 -0
- package/assets/ai-page-CPMi_fet.js +309 -0
- package/assets/blhj60cfaf.js +1 -0
- package/assets/cl75b3c3pk.js +1 -0
- package/assets/games-page-BVj3FJxV.js +1 -0
- package/assets/history-CVc3OIZs.js +1 -0
- package/assets/house-D0FgPHqQ.js +1 -0
- package/assets/i5zeofgaug.js +1 -0
- package/assets/index-8N-ebit3.js +28 -0
- package/assets/index-Dp_-Met-.css +1 -0
- package/assets/internal-tab-entry-pages-_g_peIHO.js +1 -0
- package/assets/is-ref-object-BUjs8pam.js +1 -0
- package/assets/kqt39if07o.js +1 -0
- package/assets/layout-DKQHM32n.js +1 -0
- package/assets/legal-pages-B28Ojyk8.js +1 -0
- package/assets/mh5v4t7fxj.js +1 -0
- package/assets/motion-features-BoLvxpMG.js +1 -0
- package/assets/new-tab-page-jjqO5LES.js +2 -0
- package/assets/not-found-page-Df5nmw-a.js +1 -0
- package/assets/nttg54ebk2.js +1 -0
- package/assets/placeholder +1 -0
- package/assets/pn0cxyjo1a.js +1 -0
- package/assets/proxy-viewport-B0O0IPVx.js +22 -0
- package/assets/qrctueqbf5.css +1 -0
- package/assets/qtcnv81qko.js +1 -0
- package/assets/qzcpiwg4gv.js +1 -0
- package/assets/roblox-shortcut.svg +4 -0
- package/assets/syk21s6dt9.js +1 -0
- package/assets/t1hj12i407.js +1 -0
- package/assets/tlz3pvqimi.js +1 -0
- package/assets/use-discord-auth-oR_GpijY.js +9 -0
- package/assets/use-theme-catalog-BCaXDwAm.js +1 -0
- package/assets/wlaswqv83p.js +1 -0
- package/assets/xbal01i589.js +1 -0
- package/assets/ydhzrh99oh.js +1 -0
- package/branding/anthropic.svg +16 -0
- package/branding/deepseek.svg +1 -0
- package/branding/gemini.svg +1 -0
- package/branding/lucide.png +0 -0
- package/branding/openai.svg +1 -0
- package/branding/placeholder +1 -0
- package/branding/xai.svg +1 -0
- package/d1g0y/5tirm.js +1 -0
- package/d1g0y/xsv4z.js +1 -0
- package/index.html +168 -0
- package/j3ve9/ls3ez.mjs +6475 -0
- package/logo.svg +175 -0
- package/package.json +20 -0
- package/runtime/baremux/index.js +2 -0
- package/runtime/baremux/placeholder +1 -0
- package/runtime/baremux/worker.js +2 -0
- package/runtime/libcurl/index.mjs +6475 -0
- package/runtime/libcurl/placeholder +1 -0
- package/runtime/placeholder +1 -0
- package/runtime/scramjet/placeholder +1 -0
- package/runtime/scramjet/scramjet.all.js +196 -0
- package/runtime/scramjet/scramjet.sync.js +2 -0
- package/runtime/scramjet/scramjet.wasm.wasm +0 -0
- package/sw.js +251 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{K as z,M as Ci,N as Pn,O as wn,P as Sn,Q as Mi,U as Te,V as Dn,W as $t,X as R,Y as H,h as st,e as V,Z as $,$ as X,a0 as Li,a1 as U,a2 as Ri,a3 as ot,a4 as An,a5 as ae,a6 as ki,a7 as Bi,a8 as Ii,a9 as ji,aa as Oi,ab as Vn,ac as Fi,ad as Ui,ae as le,af as Ni,ag as Wi,m as ce,n as ue,ah as Gi,ai as Ki,aj as Pe,ak as pt,al as we,am as Hi,an as zi,ao as _i,ap as E,aq as $i,ar as bn,as as En,at as Cn,au as Mn,av as Dt,aw as Xi,ax as Ln,ay as Xt,az as Yi,aA as Rt,aB as Rn,aC as nt,r as At,j as qi}from"./index-8N-ebit3.js";import{m as D,i as he,o as Zi,c as Se,a as Ji,b as Qi,d as ts,e as es,s as ns,f as kn,g as is,h as ss,j as os,r as kt,k as De,l as rs,n as rt,u as as,L as ls,S as cs}from"./is-ref-object-BUjs8pam.js";const us=(t,e)=>n=>e(t(n)),ft=(...t)=>t.reduce(us),ut=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Bn=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,hs=1e-7,fs=12;function ds(t,e,n,i,s){let a,o,r=0;do o=e+(n-e)/2,a=Bn(o,i,s)-t,a>0?n=o:e=o;while(Math.abs(a)>hs&&++r<fs);return o}function dt(t,e,n,i){if(t===e&&n===i)return z;const s=a=>ds(a,0,1,t,n);return a=>a===0||a===1?a:Bn(s(a),e,i)}const In=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,jn=t=>e=>1-t(1-e),On=dt(.33,1.53,.69,.99),fe=jn(On),Fn=In(fe),Un=t=>t>=1?1:(t*=2)<1?.5*fe(t):.5*(2-Math.pow(2,-10*(t-1))),de=t=>1-Math.sin(Math.acos(t)),Nn=jn(de),Wn=In(de),ms=dt(.42,0,1,1),ps=dt(0,0,.58,1),Gn=dt(.42,0,.58,1),ys=t=>Array.isArray(t)&&typeof t[0]!="number",gs={linear:z,easeIn:ms,easeInOut:Gn,easeOut:ps,circIn:de,circInOut:Wn,circOut:Nn,backIn:fe,backInOut:Fn,backOut:On,anticipate:Un},vs=t=>typeof t=="string",Ae=t=>{if(Ci(t)){Pn(t.length===4);const[e,n,i,s]=t;return dt(e,n,i,s)}else if(vs(t))return gs[t];return t};function Bt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function xs({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let s=0,a=0,o=0;if(!e)s=a=o=n;else{const r=n<.5?n*(1+e):n+e-n*e,c=2*n-r;s=Bt(c,r,t+1/3),a=Bt(c,r,t),o=Bt(c,r,t-1/3)}return{red:Math.round(s*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:i}}function Vt(t,e){return n=>n>0?e:t}const It=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},Ts=[Mi,wn,Sn],Ps=t=>Ts.find(e=>e.test(t));function Ve(t){const e=Ps(t);if(!e)return!1;let n=e.parse(t);return e===Sn&&(n=xs(n)),n}const be=(t,e)=>{const n=Ve(t),i=Ve(e);if(!n||!i)return Vt(t,e);const s={...n};return a=>(s.red=It(n.red,i.red,a),s.green=It(n.green,i.green,a),s.blue=It(n.blue,i.blue,a),s.alpha=D(n.alpha,i.alpha,a),wn.transform(s))},Yt=new Set(["none","hidden"]);function ws(t,e){return Yt.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Ss(t,e){return n=>D(t,e,n)}function me(t){return typeof t=="number"?Ss:typeof t=="string"?he(t)?Vt:Te.test(t)?be:Vs:Array.isArray(t)?Kn:typeof t=="object"?Te.test(t)?be:Ds:Vt}function Kn(t,e){const n=[...t],i=n.length,s=t.map((a,o)=>me(a)(a,e[o]));return a=>{for(let o=0;o<i;o++)n[o]=s[o](a);return n}}function Ds(t,e){const n={...t,...e},i={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(i[s]=me(t[s])(t[s],e[s]));return s=>{for(const a in i)n[a]=i[a](s);return n}}function As(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const a=e.types[s],o=t.indexes[a][i[a]],r=t.values[o]??0;n[s]=r,i[a]++}return n}const Vs=(t,e)=>{const n=Dn.createTransformer(e),i=$t(t),s=$t(e);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?Yt.has(t)&&!s.values.length||Yt.has(e)&&!i.values.length?ws(t,e):ft(Kn(As(i,s),s.values),n):Vt(t,e)};function Hn(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?D(t,e,n):me(t)(t,e)}const bs=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>V.update(e,n),stop:()=>st(e),now:()=>R.isProcessing?R.timestamp:H.now()}},bt=2e4;function pe(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<bt;)e+=n,i=t.next(e);return e>=bt?1/0:e}function Es(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(pe(i),bt);return{type:"keyframes",ease:a=>i.next(s*a).value/e,duration:$(s)}}const A={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 qt(t,e){return t*Math.sqrt(1-e*e)}const Cs=12;function Ms(t,e,n){let i=n;for(let s=1;s<Cs;s++)i=i-t(i)/e(i);return i}const jt=.001;function Ls({duration:t=A.duration,bounce:e=A.bounce,velocity:n=A.velocity,mass:i=A.mass}){let s,a,o=1-e;o=X(A.minDamping,A.maxDamping,o),t=X(A.minDuration,A.maxDuration,$(t)),o<1?(s=u=>{const l=u*o,h=l*t,f=l-n,d=qt(u,o),m=Math.exp(-h);return jt-f/d*m},a=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,m=Math.exp(-h),y=qt(Math.pow(u,2),o);return(-s(u)+jt>0?-1:1)*((f-d)*m)/y}):(s=u=>{const l=Math.exp(-u*t),h=(u-n)*t+1;return-jt+l*h},a=u=>{const l=Math.exp(-u*t),h=(n-u)*(t*t);return l*h});const r=5/t,c=Ms(s,a,r);if(t=U(t),isNaN(c))return{stiffness:A.stiffness,damping:A.damping,duration:t};{const u=Math.pow(c,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:t}}}const Rs=["duration","bounce"],ks=["stiffness","damping","mass"];function Ee(t,e){return e.some(n=>t[n]!==void 0)}function Bs(t){let e={velocity:A.velocity,stiffness:A.stiffness,damping:A.damping,mass:A.mass,isResolvedFromDuration:!1,...t};if(!Ee(t,ks)&&Ee(t,Rs))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,a=2*X(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:A.mass,stiffness:s,damping:a}}else{const n=Ls({...t,velocity:0});e={...e,...n,mass:A.mass},e.isResolvedFromDuration=!0}return e}function Et(t=A.visualDuration,e=A.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],r={done:!1,value:a},{stiffness:c,damping:u,mass:l,duration:h,velocity:f,isResolvedFromDuration:d}=Bs({...n,velocity:-$(n.velocity||0)}),m=f||0,y=u/(2*Math.sqrt(c*l)),p=o-a,g=$(Math.sqrt(c/l)),v=Math.abs(p)<5;i||(i=v?A.restSpeed.granular:A.restSpeed.default),s||(s=v?A.restDelta.granular:A.restDelta.default);let x,w,P,C,B,S;if(y<1)P=qt(g,y),C=(m+y*g*p)/P,x=T=>{const b=Math.exp(-y*g*T);return o-b*(C*Math.sin(P*T)+p*Math.cos(P*T))},B=y*g*C+p*P,S=y*g*p-C*P,w=T=>Math.exp(-y*g*T)*(B*Math.sin(P*T)+S*Math.cos(P*T));else if(y===1){x=b=>o-Math.exp(-g*b)*(p+(m+g*p)*b);const T=m+g*p;w=b=>Math.exp(-g*b)*(g*T*b-m)}else{const T=g*Math.sqrt(y*y-1);x=N=>{const _=Math.exp(-y*g*N),W=Math.min(T*N,300);return o-_*((m+y*g*p)*Math.sinh(W)+T*p*Math.cosh(W))/T};const b=(m+y*g*p)/T,I=y*g*b-p*T,q=y*g*p-b*T;w=N=>{const _=Math.exp(-y*g*N),W=Math.min(T*N,300);return _*(I*Math.sinh(W)+q*Math.cosh(W))}}const M={calculatedDuration:d&&h||null,velocity:T=>U(w(T)),next:T=>{if(!d&&y<1){const I=Math.exp(-y*g*T),q=Math.sin(P*T),N=Math.cos(P*T),_=o-I*(C*q+p*N),W=U(I*(B*q+S*N));return r.done=Math.abs(W)<=i&&Math.abs(o-_)<=s,r.value=r.done?o:_,r}const b=x(T);if(d)r.done=T>=h;else{const I=U(w(T));r.done=Math.abs(I)<=i&&Math.abs(o-b)<=s}return r.value=r.done?o:b,r},toString:()=>{const T=Math.min(pe(M),bt),b=Li(I=>M.next(T*I).value,T,30);return T+"ms "+b},toTransition:()=>{}};return M}Et.applyToOptions=t=>{const e=Es(t,100,Et);return t.ease=e.ease,t.duration=U(e.duration),t.type="keyframes",t};const Is=5;function zn(t,e,n){const i=Math.max(e-Is,0);return Ri(n-t(i),e-i)}function Zt({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:o,min:r,max:c,restDelta:u=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},d=S=>r!==void 0&&S<r||c!==void 0&&S>c,m=S=>r===void 0?c:c===void 0||Math.abs(r-S)<Math.abs(c-S)?r:c;let y=n*e;const p=h+y,g=o===void 0?p:o(p);g!==p&&(y=g-h);const v=S=>-y*Math.exp(-S/i),x=S=>g+v(S),w=S=>{const M=v(S),T=x(S);f.done=Math.abs(M)<=u,f.value=f.done?g:T};let P,C;const B=S=>{d(f.value)&&(P=S,C=Et({keyframes:[f.value,m(f.value)],velocity:zn(x,S,f.value),damping:s,stiffness:a,restDelta:u,restSpeed:l}))};return B(0),{calculatedDuration:null,next:S=>{let M=!1;return!C&&P===void 0&&(M=!0,w(S),B(S)),P!==void 0&&S>=P?C.next(S-P):(!M&&w(S),f)}}}function js(t,e,n){const i=[],s=n||ot.mix||Hn,a=t.length-1;for(let o=0;o<a;o++){let r=s(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||z:e;r=ft(c,r)}i.push(r)}return i}function Os(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const a=t.length;if(Pn(a===e.length),a===1)return()=>e[0];if(a===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=js(e,i,s),c=r.length,u=l=>{if(o&&l<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=ut(t[h],t[h+1],l);return r[h](f)};return n?l=>u(X(t[0],t[a-1],l)):u}function Fs(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=ut(0,e,i);t.push(D(n,1,s))}}function Us(t){const e=[0];return Fs(e,t.length-1),e}function Ns(t,e){return t.map(n=>n*e)}function Ws(t,e){return t.map(()=>e||Gn).splice(0,t.length-1)}function at({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=ys(i)?i.map(Ae):Ae(i),a={done:!1,value:e[0]},o=Ns(n&&n.length===e.length?n:Us(e),t),r=Os(o,e,{ease:Array.isArray(s)?s:Ws(e,s)});return{calculatedDuration:t,next:c=>(a.value=r(c),a.done=c>=t,a)}}const Gs={decay:Zt,inertia:Zt,tween:at,keyframes:at,spring:Et};function _n(t){typeof t.type=="string"&&(t.type=Gs[t.type])}const Ks=t=>t/100;class Ct extends An{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=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==H.now()&&this.tick(H.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;_n(e);const{type:n=at,repeat:i=0,repeatDelay:s=0,repeatType:a,velocity:o=0}=e;let{keyframes:r}=e;const c=n||at;c!==at&&typeof r[0]!="number"&&(this.mixKeyframes=ft(Ks,Hn(r[0],r[1])),r=[0,100]);const u=c({...e,keyframes:r});a==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...r].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=pe(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:i,totalDuration:s,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:r,calculatedDuration:c}=this;if(this.startTime===null)return i.next(0);const{delay:u=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:d,type:m,onUpdate:y,finalKeyframe:p}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let x=this.currentTime,w=i;if(h){const S=Math.min(this.currentTime,s)/r;let M=Math.floor(S),T=S%1;!T&&S>=1&&(T=1),T===1&&M--,M=Math.min(M,h+1),M%2&&(f==="reverse"?(T=1-T,d&&(T-=d/r)):f==="mirror"&&(w=o)),x=X(0,1,T)*r}let P;v?(this.delayState.value=l[0],P=this.delayState):P=w.next(x),a&&!v&&(P.value=a(P.value));let{done:C}=P;!v&&c!==null&&(C=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const B=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return B&&m!==Zt&&(P.value=ae(l,this.options,p,this.speed)),y&&y(P.value),B&&this.finish(),P}then(e,n){return this.finished.then(e,n)}get duration(){return $(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+$(e)}get time(){return $(this.currentTime)}set time(e){e=U(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(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return zn(i=>this.generator.next(i).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(H.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=$(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=bs,startTime:n}=this.options;this.driver||(this.driver=e(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(H.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}const $n={anticipate:Un,backInOut:Fn,circInOut:Wn};function Hs(t){return t in $n}function zs(t){typeof t.ease=="string"&&Hs(t.ease)&&(t.ease=$n[t.ease])}const Ot=10;class _s extends ki{constructor(e){zs(e),_n(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:i,onComplete:s,element:a,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const r=new Ct({...o,autoplay:!1}),c=Math.max(Ot,H.now()-this.startTime),u=X(0,Ot,c-Ot),l=r.sample(c).value,{name:h}=this.options;a&&h&&Bi(a,h,l),n.setWithVelocity(r.sample(Math.max(0,c-u)).value,l,u),r.stop()}}const Ce=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Dn.test(t)||t==="0")&&!t.startsWith("url("));function $s(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Xs(t,e,n,i){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const a=t[t.length-1],o=Ce(s,e),r=Ce(a,e);return!o||!r?!1:$s(t)||(n==="spring"||Ii(n))&&i}function Jt(t){t.duration=0,t.type="keyframes"}const Ys=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function qs(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&Ys.test(t[e]))return!0;return!1}const Zs=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Js=ji(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Qs(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:a,type:o,keyframes:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=e.owner.getProps();return Js()&&n&&(Oi.has(n)||Zs.has(n)&&qs(r))&&(n!=="transform"||!l)&&!u&&!i&&s!=="mirror"&&a!==0&&o!=="inertia"}const to=40;class eo extends An{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:o="loop",keyframes:r,name:c,motionValue:u,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=H.now();const f={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:a,repeatType:o,name:c,motionValue:u,element:l,...h},d=l?.KeyframeResolver||Vn;this.keyframeResolver=new d(r,(m,y,p)=>this.onKeyframesResolved(m,y,f,!p),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,i,s){this.keyframeResolver=void 0;const{name:a,type:o,velocity:r,delay:c,isHandoff:u,onUpdate:l}=i;this.resolvedAt=H.now();let h=!0;Xs(e,a,o,r)||(h=!1,(ot.instantAnimations||!c)&&l?.(ae(e,i,n)),e[0]=e[e.length-1],Jt(i),i.repeat=0);const d={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>to?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:e},m=h&&!u&&Qs(d),y=d.motionValue?.owner?.current;let p;if(m)try{p=new _s({...d,element:y})}catch{p=new Ct(d)}else p=new Ct(d);p.finished.then(()=>{this.notifyFinished()}).catch(z),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Fi()),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 Xn(t,e,n,i=0,s=1){const a=Array.from(t).sort((u,l)=>u.sortNodePosition(l)).indexOf(e),o=t.size,r=(o-1)*i;return typeof n=="function"?n(a,o):s===1?a*i:r-a*i}const no=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function io(t){const e=no.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}function Yn(t,e,n=1){const[i,s]=io(t);if(!i)return;const a=window.getComputedStyle(e).getPropertyValue(i);if(a){const o=a.trim();return Ui(o)?parseFloat(o):o}return he(s)?Yn(s,e,n+1):s}const so={type:"spring",stiffness:500,damping:25,restSpeed:10},oo=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ro={type:"keyframes",duration:.8},ao={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lo=(t,{keyframes:e})=>e.length>2?ro:le.has(t)?t.startsWith("scale")?oo(e[1]):so:ao;function qn(t,e){if(t?.inherit&&e){const{inherit:n,...i}=t;return{...e,...i}}return t}function ye(t,e){const n=t?.[e]??t?.default??t;return n!==t?qn(n,t):n}const co=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function uo(t){for(const e in t)if(!co.has(e))return!0;return!1}const ge=(t,e,n,i={},s,a)=>o=>{const r=ye(i,t)||{},c=r.delay||i.delay||0;let{elapsed:u=0}=i;u=u-U(c);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...r,delay:-u,onUpdate:f=>{e.set(f),r.onUpdate&&r.onUpdate(f)},onComplete:()=>{o(),r.onComplete&&r.onComplete()},name:t,motionValue:e,element:a?void 0:s};uo(r)||Object.assign(l,lo(t,l)),l.duration&&(l.duration=U(l.duration)),l.repeatDelay&&(l.repeatDelay=U(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(Jt(l),l.delay===0&&(h=!0)),(ot.instantAnimations||ot.skipAnimations||s?.shouldSkipAnimations)&&(h=!0,Jt(l),l.delay=0),l.allowFlatten=!r.type&&!r.ease,h&&!a&&e.get()!==void 0){const f=ae(l.keyframes,r);if(f!==void 0){V.update(()=>{l.onUpdate(f),l.onComplete()});return}}return r.isSync?new Ct(l):new eo(l)};function tt(t,e,n){const i=t.getProps();return Ni(i,e,n!==void 0?n:i.custom,t)}const Zn=new Set(["width","height","top","left","right","bottom",...Wi]),Qt=t=>Array.isArray(t);function ho(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ce(n))}function fo(t){return Qt(t)?t[t.length-1]||0:t}function mo(t,e){const n=tt(t,e);let{transitionEnd:i={},transition:s={},...a}=n||{};a={...a,...i};for(const o in a){const r=fo(a[o]);ho(t,o,r)}}function po(t){return!!(ue(t)&&t.add)}function te(t,e){const n=t.getValue("willChange");if(po(n))return n.add(e);if(!n&&ot.WillChange){const i=new ot.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function Jn(t){return t.props[Zi]}function yo({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function Qn(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:a,transitionEnd:o,...r}=e;const c=t.getDefaultTransition();a=a?qn(a,c):c;const u=a?.reduceMotion;i&&(a=i);const l=[],h=s&&t.animationState&&t.animationState.getState()[s];for(const f in r){const d=t.getValue(f,t.latestValues[f]??null),m=r[f];if(m===void 0||h&&yo(h,f))continue;const y={delay:n,...ye(a||{},f)},p=d.get();if(p!==void 0&&!d.isAnimating()&&!Array.isArray(m)&&m===p&&!y.velocity){V.update(()=>d.set(m));continue}let g=!1;if(window.MotionHandoffAnimation){const w=Jn(t);if(w){const P=window.MotionHandoffAnimation(w,f,V);P!==null&&(y.startTime=P,g=!0)}}te(t,f);const v=u??t.shouldReduceMotion;d.start(ge(f,d,m,v&&Zn.has(f)?{type:!1}:y,t,g));const x=d.animation;x&&l.push(x)}if(o){const f=()=>V.update(()=>{o&&mo(t,o)});l.length?Promise.all(l).then(f):f()}return l}function ee(t,e,n={}){const i=tt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const a=i?()=>Promise.all(Qn(t,i,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:l,staggerDirection:h}=s;return go(t,e,c,u,l,h,n)}:()=>Promise.resolve(),{when:r}=s;if(r){const[c,u]=r==="beforeChildren"?[a,o]:[o,a];return c().then(()=>u())}else return Promise.all([a(),o(n.delay)])}function go(t,e,n=0,i=0,s=0,a=1,o){const r=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),r.push(ee(c,e,{...o,delay:n+(typeof i=="function"?0:i)+Xn(t.variantChildren,c,i,s,a)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(r)}function vo(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const s=e.map(a=>ee(t,a,n));i=Promise.all(s)}else if(typeof e=="string")i=ee(t,e,n);else{const s=typeof e=="function"?tt(t,e,n.custom):e;i=Promise.all(Qn(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function xo(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Gi(t):!0}const To=new Set(["auto","none","0"]);function Po(t,e,n){let i=0,s;for(;i<t.length&&!s;){const a=t[i];typeof a=="string"&&!To.has(a)&&$t(a).values.length&&(s=t[i]),i++}if(s&&n)for(const a of e)t[a]=Ki(n,s)}class wo extends Vn{constructor(e,n,i,s,a){super(e,n,i,s,a,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let h=e[l];if(typeof h=="string"&&(h=h.trim(),he(h))){const f=Yn(h,n.current);f!==void 0&&(e[l]=f),l===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Zn.has(i)||e.length!==2)return;const[s,a]=e,o=Pe(s),r=Pe(a),c=Se(s),u=Se(a);if(c!==u&&pt[i]){this.needsMeasurement=!0;return}if(o!==r)if(we(o)&&we(r))for(let l=0;l<e.length;l++){const h=e[l];typeof h=="string"&&(e[l]=parseFloat(h))}else pt[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let s=0;s<e.length;s++)(e[s]===null||xo(e[s]))&&i.push(s);i.length&&Po(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pt[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(i,s).jump(s,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const a=i.length-1,o=i[a];i[a]=pt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([r,c])=>{e.getValue(r).set(c)}),this.resolveNoneKeyframes()}}function ti(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const s=n?.[t]??i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(i=>i!=null)}const F={x:!1,y:!1};function ei(){return F.x||F.y}function So(t){return t==="x"||t==="y"?F[t]?null:(F[t]=!0,()=>{F[t]=!1}):F.x||F.y?null:(F.x=F.y=!0,()=>{F.x=F.y=!1})}function ni(t,e){const n=ti(t),i=new AbortController,s={passive:!0,...e,signal:i.signal};return[n,s,()=>i.abort()]}function Do(t){return!(t.pointerType==="touch"||ei())}function Ao(t,e,n={}){const[i,s,a]=ni(t,n);return i.forEach(o=>{let r=!1,c=!1,u;const l=()=>{o.removeEventListener("pointerleave",m)},h=p=>{u&&(u(p),u=void 0),l()},f=p=>{r=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,h(p))},d=()=>{r=!0,window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",f,s)},m=p=>{if(p.pointerType!=="touch"){if(r){c=!0;return}h(p)}},y=p=>{if(!Do(p))return;c=!1;const g=e(o,p);typeof g=="function"&&(u=g,o.addEventListener("pointerleave",m,s))};o.addEventListener("pointerenter",y,s),o.addEventListener("pointerdown",d,s)}),a}const ii=(t,e)=>e?t===e?!0:ii(t,e.parentElement):!1,ve=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Vo=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function bo(t){return Vo.has(t.tagName)||t.isContentEditable===!0}const Eo=new Set(["INPUT","SELECT","TEXTAREA"]);function Co(t){return Eo.has(t.tagName)||t.isContentEditable===!0}const vt=new WeakSet;function Me(t){return e=>{e.key==="Enter"&&t(e)}}function Ft(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Mo=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=Me(()=>{if(vt.has(n))return;Ft(n,"down");const s=Me(()=>{Ft(n,"up")}),a=()=>Ft(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",a,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function Le(t){return ve(t)&&!ei()}const Re=new WeakSet;function Lo(t,e,n={}){const[i,s,a]=ni(t,n),o=r=>{const c=r.currentTarget;if(!Le(r)||Re.has(r))return;vt.add(c),n.stopPropagation&&Re.add(r);const u=e(c,r),l=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),vt.has(c)&&vt.delete(c),Le(d)&&typeof u=="function"&&u(d,{success:m})},h=d=>{l(d,c===window||c===document||n.useGlobalTarget||ii(c,d.target))},f=d=>{l(d,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",f,s)};return i.forEach(r=>{(n.useGlobalTarget?window:r).addEventListener("pointerdown",o,s),Ji(r)&&(r.addEventListener("focus",u=>Mo(u,s)),!bo(r)&&!r.hasAttribute("tabindex")&&(r.tabIndex=0))}),a}function xe(t){return Qi(t)&&"ownerSVGElement"in t}const xt=new WeakMap;let Tt;const si=(t,e,n)=>(i,s)=>s&&s[0]?s[0][t+"Size"]:xe(i)&&"getBBox"in i?i.getBBox()[e]:i[n],Ro=si("inline","width","offsetWidth"),ko=si("block","height","offsetHeight");function Bo({target:t,borderBoxSize:e}){xt.get(t)?.forEach(n=>{n(t,{get width(){return Ro(t,e)},get height(){return ko(t,e)}})})}function Io(t){t.forEach(Bo)}function jo(){typeof ResizeObserver>"u"||(Tt=new ResizeObserver(Io))}function Oo(t,e){Tt||jo();const n=ti(t);return n.forEach(i=>{let s=xt.get(i);s||(s=new Set,xt.set(i,s)),s.add(e),Tt?.observe(i)}),()=>{n.forEach(i=>{const s=xt.get(i);s?.delete(e),s?.size||Tt?.unobserve(i)})}}const Pt=new Set;let it;function Fo(){it=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Pt.forEach(e=>e(t))},window.addEventListener("resize",it)}function Uo(t){return Pt.add(t),it||Fo(),()=>{Pt.delete(t),!Pt.size&&typeof it=="function"&&(window.removeEventListener("resize",it),it=void 0)}}function ke(t,e){return typeof t=="function"?Uo(t):Oo(t,e)}function No(t){return xe(t)&&t.tagName==="svg"}class oi extends Hi{constructor(){super(...arguments),this.KeyframeResolver=wo}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const i=e.style;return i?i[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ue(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Y{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ri({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Wo({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Go(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Ut(t){return t===void 0||t===1}function ne({scale:t,scaleX:e,scaleY:n}){return!Ut(t)||!Ut(e)||!Ut(n)}function Q(t){return ne(t)||ai(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ai(t){return Be(t.x)||Be(t.y)}function Be(t){return t&&t!=="0%"}function Mt(t,e,n){const i=t-n,s=e*i;return n+s}function Ie(t,e,n,i,s){return s!==void 0&&(t=Mt(t,s,i)),Mt(t,n,i)+e}function ie(t,e=0,n=1,i,s){t.min=Ie(t.min,e,n,i,s),t.max=Ie(t.max,e,n,i,s)}function li(t,{x:e,y:n}){ie(t.x,e.translate,e.scale,e.originPoint),ie(t.y,n.translate,n.scale,n.originPoint)}const je=.999999999999,Oe=1.0000000000001;function Ko(t,e,n,i=!1){const s=n.length;if(!s)return;e.x=e.y=1;let a,o;for(let r=0;r<s;r++){a=n[r],o=a.projectionDelta;const{visualElement:c}=a.options;c&&c.props.style&&c.props.style.display==="contents"||(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(K(t.x,-a.scroll.offset.x),K(t.y,-a.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,li(t,o)),i&&Q(a.latestValues)&&wt(t,a.latestValues,a.layout?.layoutBox))}e.x<Oe&&e.x>je&&(e.x=1),e.y<Oe&&e.y>je&&(e.y=1)}function K(t,e){t.min+=e,t.max+=e}function Fe(t,e,n,i,s=.5){const a=D(t.min,t.max,s);ie(t,e,n,a,i)}function Ue(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function wt(t,e,n){const i=n??t;Fe(t.x,Ue(e.x,i.x),e.scaleX,e.scale,e.originX),Fe(t.y,Ue(e.y,i.y),e.scaleY,e.scale,e.originY)}function ci(t,e){return ri(Go(t.getBoundingClientRect(),e))}function Ho(t,e,n){const i=ci(t,n),{scroll:s}=e;return s&&(K(i.x,s.offset.x),K(i.y,s.offset.y)),i}function ui(t,{style:e,vars:n},i,s){const a=t.style;let o;for(o in e)a[o]=e[o];s?.applyProjectionStyles(a,i);for(o in n)a.setProperty(o,n[o])}function zo(t){return window.getComputedStyle(t)}class _o extends oi{constructor(){super(...arguments),this.type="html",this.renderInstance=ui}readValueFromInstance(e,n){if(le.has(n))return this.projection?.isProjecting?zi(n):_i(e,n);{const i=zo(e),s=(ts(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ci(e,n)}build(e,n,i){es(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return ns(e,n,i)}}const hi=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 $o(t,e,n,i){ui(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(hi.has(s)?s:kn(s),e.attrs[s])}class Xo extends oi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=E}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(le.has(n)){const i=$i(n);return i&&i.default||0}return n=hi.has(n)?n:kn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return is(e,n,i)}build(e,n,i){ss(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,s){$o(e,n,i,s)}mount(e){this.isSVGTag=os(e.tagName),super.mount(e)}}const Yo=En.length;function fi(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?fi(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Yo;n++){const i=En[n],s=t.props[i];(bn(s)||s===!1)&&(e[i]=s)}return e}function di(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const qo=[...Mn].reverse(),Zo=Mn.length;function Jo(t){return e=>Promise.all(e.map(({animation:n,options:i})=>vo(t,n,i)))}function Qo(t){let e=Jo(t),n=Ne(),i=!0,s=!1;const a=u=>(l,h)=>{const f=tt(t,h,u==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:d,transitionEnd:m,...y}=f;l={...l,...y,...m}}return l};function o(u){e=u(t)}function r(u){const{props:l}=t,h=fi(t.parent)||{},f=[],d=new Set;let m={},y=1/0;for(let g=0;g<Zo;g++){const v=qo[g],x=n[v],w=l[v]!==void 0?l[v]:h[v],P=bn(w),C=v===u?x.isActive:null;C===!1&&(y=g);let B=w===h[v]&&w!==l[v]&&P;if(B&&(i||s)&&t.manuallyAnimateOnMount&&(B=!1),x.protectedKeys={...m},!x.isActive&&C===null||!w&&!x.prevProp||Cn(w)||typeof w=="boolean")continue;if(v==="exit"&&x.isActive&&C!==!0){x.prevResolvedValues&&(m={...m,...x.prevResolvedValues});continue}const S=tr(x.prevProp,w);let M=S||v===u&&x.isActive&&!B&&P||g>y&&P,T=!1;const b=Array.isArray(w)?w:[w];let I=b.reduce(a(v),{});C===!1&&(I={});const{prevResolvedValues:q={}}=x,N={...q,...I},_=L=>{M=!0,d.has(L)&&(T=!0,d.delete(L)),x.needsAnimating[L]=!0;const j=t.getValue(L);j&&(j.liveStyle=!1)};for(const L in N){const j=I[L],Z=q[L];if(m.hasOwnProperty(L))continue;let et=!1;Qt(j)&&Qt(Z)?et=!di(j,Z):et=j!==Z,et?j!=null?_(L):d.add(L):j!==void 0&&d.has(L)?_(L):x.protectedKeys[L]=!0}x.prevProp=w,x.prevResolvedValues=I,x.isActive&&(m={...m,...I}),(i||s)&&t.blockInitialAnimation&&(M=!1);const W=B&&S;M&&(!W||T)&&f.push(...b.map(L=>{const j={type:v};if(typeof L=="string"&&(i||s)&&!W&&t.manuallyAnimateOnMount&&t.parent){const{parent:Z}=t,et=tt(Z,L);if(Z.enteringChildren&&et){const{delayChildren:Ei}=et.transition||{};j.delay=Xn(Z.enteringChildren,t,Ei)}}return{animation:L,options:j}}))}if(d.size){const g={};if(typeof l.initial!="boolean"){const v=tt(t,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(g.transition=v.transition)}d.forEach(v=>{const x=t.getBaseTarget(v),w=t.getValue(v);w&&(w.liveStyle=!0),g[v]=x??null}),f.push({animation:g})}let p=!!f.length;return i&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(p=!1),i=!1,s=!1,p?e(f):Promise.resolve()}function c(u,l){if(n[u].isActive===l)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(u,l)),n[u].isActive=l;const h=r(u);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:r,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ne(),s=!0}}}function tr(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!di(e,t):!1}function J(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ne(){return{animate:J(!0),whileInView:J(),whileHover:J(),whileTap:J(),whileDrag:J(),whileFocus:J(),exit:J()}}function se(t,e){t.min=e.min,t.max=e.max}function O(t,e){se(t.x,e.x),se(t.y,e.y)}function We(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const mi=1e-4,er=1-mi,nr=1+mi,pi=.01,ir=0-pi,sr=0+pi;function k(t){return t.max-t.min}function or(t,e,n){return Math.abs(t-e)<=n}function Ge(t,e,n,i=.5){t.origin=i,t.originPoint=D(e.min,e.max,t.origin),t.scale=k(n)/k(e),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(t.scale>=er&&t.scale<=nr||isNaN(t.scale))&&(t.scale=1),(t.translate>=ir&&t.translate<=sr||isNaN(t.translate))&&(t.translate=0)}function lt(t,e,n,i){Ge(t.x,e.x,n.x,i?i.originX:void 0),Ge(t.y,e.y,n.y,i?i.originY:void 0)}function Ke(t,e,n,i=0){const s=i?D(n.min,n.max,i):n.min;t.min=s+e.min,t.max=t.min+k(e)}function rr(t,e,n,i){Ke(t.x,e.x,n.x,i?.x),Ke(t.y,e.y,n.y,i?.y)}function He(t,e,n,i=0){const s=i?D(n.min,n.max,i):n.min;t.min=e.min-s,t.max=t.min+k(e)}function Lt(t,e,n,i){He(t.x,e.x,n.x,i?.x),He(t.y,e.y,n.y,i?.y)}function ze(t,e,n,i,s){return t-=e,t=Mt(t,1/n,i),s!==void 0&&(t=Mt(t,1/s,i)),t}function ar(t,e=0,n=1,i=.5,s,a=t,o=t){if(Dt.test(e)&&(e=parseFloat(e),e=D(o.min,o.max,e/100)-o.min),typeof e!="number")return;let r=D(a.min,a.max,i);t===a&&(r-=e),t.min=ze(t.min,e,n,r,s),t.max=ze(t.max,e,n,r,s)}function _e(t,e,[n,i,s],a,o){ar(t,e[n],e[i],e[s],e.scale,a,o)}const lr=["x","scaleX","originX"],cr=["y","scaleY","originY"];function $e(t,e,n,i){_e(t.x,e,lr,n?n.x:void 0,i?i.x:void 0),_e(t.y,e,cr,n?n.y:void 0,i?i.y:void 0)}function Xe(t){return t.translate===0&&t.scale===1}function yi(t){return Xe(t.x)&&Xe(t.y)}function Ye(t,e){return t.min===e.min&&t.max===e.max}function ur(t,e){return Ye(t.x,e.x)&&Ye(t.y,e.y)}function qe(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function gi(t,e){return qe(t.x,e.x)&&qe(t.y,e.y)}function Ze(t){return k(t.x)/k(t.y)}function Je(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function G(t){return[t("x"),t("y")]}function hr(t,e,n){let i="";const s=t.x.translate/e.x,a=t.y.translate/e.y,o=n?.z||0;if((s||a||o)&&(i=`translate3d(${s}px, ${a}px, ${o}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:l,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;u&&(i=`perspective(${u}px) ${i}`),l&&(i+=`rotate(${l}deg) `),h&&(i+=`rotateX(${h}deg) `),f&&(i+=`rotateY(${f}deg) `),d&&(i+=`skewX(${d}deg) `),m&&(i+=`skewY(${m}deg) `)}const r=t.x.scale*e.x,c=t.y.scale*e.y;return(r!==1||c!==1)&&(i+=`scale(${r}, ${c})`),i||"none"}const vi=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],fr=vi.length,Qe=t=>typeof t=="string"?parseFloat(t):t,tn=t=>typeof t=="number"||Xi.test(t);function dr(t,e,n,i,s,a){s?(t.opacity=D(0,n.opacity??1,mr(i)),t.opacityExit=D(e.opacity??1,0,pr(i))):a&&(t.opacity=D(e.opacity??1,n.opacity??1,i));for(let o=0;o<fr;o++){const r=vi[o];let c=en(e,r),u=en(n,r);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||tn(c)===tn(u)?(t[r]=Math.max(D(Qe(c),Qe(u),i),0),(Dt.test(u)||Dt.test(c))&&(t[r]+="%")):t[r]=u}(e.rotate||n.rotate)&&(t.rotate=D(e.rotate||0,n.rotate||0,i))}function en(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const mr=xi(0,.5,Nn),pr=xi(.5,.95,z);function xi(t,e,n){return i=>i<t?0:i>e?1:n(ut(t,e,i))}function yr(t,e,n){const i=ue(t)?t:ce(t);return i.start(ge("",i,e,n)),i.animation}function ht(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const gr=(t,e)=>t.depth-e.depth;class vr{constructor(){this.children=[],this.isDirty=!1}add(e){Ln(this.children,e),this.isDirty=!0}remove(e){Xt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(gr),this.isDirty=!1,this.children.forEach(e)}}function xr(t,e){const n=H.now(),i=({timestamp:s})=>{const a=s-n;a>=e&&(st(i),t(a-e))};return V.setup(i,!0),()=>st(i)}class Tr{constructor(){this.members=[]}add(e){Ln(this.members,e);for(let n=this.members.length-1;n>=0;n--){const i=this.members[n];if(i===e||i===this.lead||i===this.prevLead)continue;const s=i.instance;(!s||s.isConnected===!1)&&!i.snapshot&&(Xt(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(Xt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){const i=this.members[n];if(i.isPresent!==!1&&i.instance?.isConnected!==!1)return this.promote(i),!0}return!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();const{layoutDependency:s}=i.options,{layoutDependency:a}=e.options;(s===void 0||s!==a)&&(e.resumeFrom=i,n&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&i.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)}}const St={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Nt=["","X","Y","Z"],Pr=1e3;let wr=0;function Wt(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Ti(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Jn(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:a}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(s||a))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Ti(i)}function Pi({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(o={},r=e?.()){this.id=wr++,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,this.nodes.forEach(Ar),this.nodes.forEach(Lr),this.nodes.forEach(Rr),this.nodes.forEach(Vr)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new vr)}addEventListener(o,r){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Yi),this.eventHandlers.get(o).add(r)}notifyListeners(o,...r){const c=this.eventHandlers.get(o);c&&c.notify(...r)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=xe(o)&&!No(o),this.instance=o;const{layoutId:r,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||r)&&(this.isLayoutDirty=!0),t){let l,h=0;const f=()=>this.root.updateBlockedByResize=!1;V.read(()=>{h=window.innerWidth}),t(o,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,l&&l(),l=xr(f,250),St.hasAnimatedSinceResize&&(St.hasAnimatedSinceResize=!1,this.nodes.forEach(on)))})}r&&this.root.registerSharedNode(r,this),this.options.animate!==!1&&u&&(r||c)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Or,{onLayoutAnimationStart:y,onLayoutAnimationComplete:p}=u.getProps(),g=!this.targetLayout||!gi(this.targetLayout,d),v=!h&&f;if(this.options.layoutRoot||this.resumeFrom||v||h&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...ye(m,"layout"),onPlay:y,onComplete:p};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(l,v)}else h||on(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),st(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(kr),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ti(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const h=this.path[l];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:r,layout:c}=this.options;if(r===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(Er),this.nodes.forEach(nn);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(sn);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Cr),this.nodes.forEach(Mr),this.nodes.forEach(Sr),this.nodes.forEach(Dr)):this.nodes.forEach(sn),this.clearAllSnapshots();const r=H.now();R.delta=X(0,1e3/60,r-R.timestamp),R.timestamp=r,R.isProcessing=!0,Rt.update.process(R),Rt.preRender.process(R),Rt.render.process(R),R.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Rn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(br),this.sharedNodes.forEach(Br)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!k(this.snapshot.measuredBox.x)&&!k(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=E()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:r}=this.options;r&&r.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let r=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(r=!1),r&&this.instance){const c=i(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,r=this.projectionDelta&&!yi(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;o&&this.instance&&(r||Q(this.latestValues)||l)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const r=this.measurePageBox();let c=this.removeElementScroll(r);return o&&(c=this.removeTransform(c)),Fr(c),{animationId:this.root.animationId,measuredBox:r,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return E();const r=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ur))){const{scroll:u}=this.root;u&&(K(r.x,u.offset.x),K(r.y,u.offset.y))}return r}removeElementScroll(o){const r=E();if(O(r,o),this.scroll?.wasRoot)return r;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:l,options:h}=u;u!==this.root&&l&&h.layoutScroll&&(l.wasRoot&&O(r,o),K(r.x,l.offset.x),K(r.y,l.offset.y))}return r}applyTransform(o,r=!1,c){const u=c||E();O(u,o);for(let l=0;l<this.path.length;l++){const h=this.path[l];!r&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(K(u.x,-h.scroll.offset.x),K(u.y,-h.scroll.offset.y)),Q(h.latestValues)&&wt(u,h.latestValues,h.layout?.layoutBox)}return Q(this.latestValues)&&wt(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(o){const r=E();O(r,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!Q(u.latestValues))continue;let l;u.instance&&(ne(u.latestValues)&&u.updateSnapshot(),l=E(),O(l,u.measurePageBox())),$e(r,u.latestValues,u.snapshot?.layoutBox,l)}return Q(this.latestValues)&&$e(r,this.latestValues),r}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==R.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==r;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:h}=this.options;if(!this.layout||!(l||h))return;this.resolvedRelativeTargetAt=R.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=E(),this.targetWithTransforms=E()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),rr(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):O(this.target,this.layout.layoutBox),li(this.target,this.targetDelta)):O(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ne(this.parent.latestValues)||ai(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,r,c){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=E(),this.relativeTargetOrigin=E(),Lt(this.relativeTargetOrigin,r,c,this.options.layoutAnchor||void 0),O(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),r=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===R.timestamp&&(c=!1),c)return;const{layout:u,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||l))return;O(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Ko(this.layoutCorrected,this.treeScale,this.path,r),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=E());const{target:d}=o;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(We(this.prevProjectionDelta.x,this.projectionDelta.x),We(this.prevProjectionDelta.y,this.projectionDelta.y)),lt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Je(this.projectionDelta.x,this.prevProjectionDelta.x)||!Je(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const r=this.getStack();r&&r.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=nt(),this.projectionDelta=nt(),this.projectionDeltaWithTransform=nt()}setAnimationOrigin(o,r=!1){const c=this.snapshot,u=c?c.latestValues:{},l={...this.latestValues},h=nt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!r;const f=E(),d=c?c.source:void 0,m=this.layout?this.layout.source:void 0,y=d!==m,p=this.getStack(),g=!p||p.members.length<=1,v=!!(y&&!g&&this.options.crossfade===!0&&!this.path.some(jr));this.animationProgress=0;let x;this.mixTargetDelta=w=>{const P=w/1e3;rn(h.x,o.x,P),rn(h.y,o.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Lt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ir(this.relativeTarget,this.relativeTargetOrigin,f,P),x&&ur(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=E()),O(x,this.relativeTarget)),y&&(this.animationValues=l,dr(l,u,this.latestValues,P,v,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(st(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{St.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ce(0)),this.motionValue.jump(0,!1),this.currentAnimation=yr(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:r=>{this.mixTargetDelta(r),o.onUpdate&&o.onUpdate(r)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Pr),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:r,target:c,layout:u,latestValues:l}=o;if(!(!r||!c||!u)){if(this!==o&&this.layout&&u&&wi(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||E();const h=k(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+h;const f=k(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}O(r,c),wt(r,l),lt(this.projectionDeltaWithTransform,this.layoutCorrected,r,l)}}registerSharedNode(o,r){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Tr),this.sharedNodes.get(o).add(r);const u=r.options.initialPromotionConfig;r.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(r):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:r,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let r=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(r=!0),!r)return;const u={};c.z&&Wt("z",o,u,this.animationValues);for(let l=0;l<Nt.length;l++)Wt(`rotate${Nt[l]}`,o,u,this.animationValues),Wt(`skew${Nt[l]}`,o,u,this.animationValues);o.render();for(const l in u)o.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);o.scheduleRender()}applyProjectionStyles(o,r){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=kt(r?.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=kt(r?.pointerEvents)||""),this.hasProjected&&!Q(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=hr(this.projectionDeltaWithTransform,this.treeScale,l);c&&(h=c(l,h)),o.transform=h;const{x:f,y:d}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,u.animationValues?o.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:o.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const m in De){if(l[m]===void 0)continue;const{correct:y,applyTo:p,isCSSVariable:g}=De[m],v=h==="none"?l[m]:y(l[m],u);if(p){const x=p.length;for(let w=0;w<x;w++)o[p[w]]=v}else g?this.options.visualElement.renderState.vars[m]=v:o[m]=v}this.options.layoutId&&(o.pointerEvents=u===this?kt(r?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(nn),this.root.sharedNodes.clear()}}}function Sr(t){t.updateLayout()}function Dr(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:s}=t.options,a=e.source!==t.layout.source;if(s==="size")G(l=>{const h=a?e.measuredBox[l]:e.layoutBox[l],f=k(h);h.min=n[l].min,h.max=h.min+f});else if(s==="x"||s==="y"){const l=s==="x"?"y":"x";se(a?e.measuredBox[l]:e.layoutBox[l],n[l])}else wi(s,e.layoutBox,n)&&G(l=>{const h=a?e.measuredBox[l]:e.layoutBox[l],f=k(n[l]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[l].max=t.relativeTarget[l].min+f)});const o=nt();lt(o,n,e.layoutBox);const r=nt();a?lt(r,t.applyTransform(i,!0),e.measuredBox):lt(r,n,e.layoutBox);const c=!yi(o);let u=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:h,layout:f}=l;if(h&&f){const d=t.options.layoutAnchor||void 0,m=E();Lt(m,e.layoutBox,h.layoutBox,d);const y=E();Lt(y,n,f.layoutBox,d),gi(m,y)||(u=!0),l.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=m,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:r,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Ar(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Vr(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function br(t){t.clearSnapshot()}function nn(t){t.clearMeasurements()}function Er(t){t.isLayoutDirty=!0,t.updateLayout()}function sn(t){t.isLayoutDirty=!1}function Cr(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function Mr(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function on(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Lr(t){t.resolveTargetDelta()}function Rr(t){t.calcProjection()}function kr(t){t.resetSkewAndRotation()}function Br(t){t.removeLeadSnapshot()}function rn(t,e,n){t.translate=D(e.translate,0,n),t.scale=D(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function an(t,e,n,i){t.min=D(e.min,n.min,i),t.max=D(e.max,n.max,i)}function Ir(t,e,n,i){an(t.x,e.x,n.x,i),an(t.y,e.y,n.y,i)}function jr(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Or={duration:.45,ease:[.4,0,.1,1]},ln=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),cn=ln("applewebkit/")&&!ln("chrome/")?Math.round:z;function un(t){t.min=cn(t.min),t.max=cn(t.max)}function Fr(t){un(t.x),un(t.y)}function wi(t,e,n){return t==="position"||t==="preserve-aspect"&&!or(Ze(e),Ze(n),.2)}function Ur(t){return t!==t.root&&t.scroll?.wasRoot}const Nr=Pi({attachResizeListener:(t,e)=>ht(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Gt={current:void 0},Si=Pi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Gt.current){const t=new Nr({});t.mount(window),t.setOptions({layoutScroll:!0}),Gt.current=t}return Gt.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Pa=(t,e)=>e.isSVG??rs(t)?new Xo(e):new _o(e,{allowProjection:t!==At.Fragment});class Wr extends Y{constructor(e){super(e),e.animationState||(e.animationState=Qo(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Cn(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Gr=0;class Kr extends Y{constructor(){super(...arguments),this.id=Gr++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;if(e&&i===!1){if(this.isExitComplete){const{initial:a,custom:o}=this.node.getProps();if(typeof a=="string"){const r=tt(this.node,a,o);if(r){const{transition:c,transitionEnd:u,...l}=r;for(const h in l)this.node.getValue(h)?.jump(l[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!e);n&&!e&&s.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const wa={animation:{Feature:Wr},exit:{Feature:Kr}};function mt(t){return{point:{x:t.pageX,y:t.pageY}}}const Hr=t=>e=>ve(e)&&t(e,mt(e));function ct(t,e,n,i){return ht(t,e,Hr(n),i)}const Di=({current:t})=>t?t.ownerDocument.defaultView:null,hn=(t,e)=>Math.abs(t-e);function zr(t,e){const n=hn(t.x,e.x),i=hn(t.y,e.y);return Math.sqrt(n**2+i**2)}const fn=new Set(["auto","scroll"]);class Ai{constructor(e,n,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:a=!1,distanceThreshold:o=3,element:r}={}){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=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=yt(this.lastRawMoveEventInfo,this.transformPagePoint));const d=Kt(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,y=zr(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!y)return;const{point:p}=d,{timestamp:g}=R;this.history.push({...p,timestamp:g});const{onStart:v,onMove:x}=this.handlers;m||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=yt(m,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:y,onSessionEnd:p,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Kt(d.type==="pointercancel"?this.lastMoveEventInfo:yt(m,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,v),p&&p(d,v)},!ve(e))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=s||window;const c=mt(e),u=yt(c,this.transformPagePoint),{point:l}=u,{timestamp:h}=R;this.history=[{...l,timestamp:h}];const{onSessionStart:f}=n;f&&f(e,Kt(u,this.history)),this.removeListeners=ft(ct(this.contextWindow,"pointermove",this.handlePointerMove),ct(this.contextWindow,"pointerup",this.handlePointerUp),ct(this.contextWindow,"pointercancel",this.handlePointerUp)),r&&this.startScrollTracking(r)}startScrollTracking(e){let n=e.parentElement;for(;n;){const i=getComputedStyle(n);(fn.has(i.overflowX)||fn.has(i.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.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){const n=this.scrollPositions.get(e);if(!n)return;const i=e===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},a={x:s.x-n.x,y:s.y-n.y};a.x===0&&a.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(e,s),V.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),st(this.updatePoint)}}function yt(t,e){return e?{point:e(t.point)}:t}function dn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Kt({point:t},e){return{point:t,delta:dn(t,Vi(e)),offset:dn(t,_r(e)),velocity:$r(e,.1)}}function _r(t){return t[0]}function Vi(t){return t[t.length-1]}function $r(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=Vi(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>U(e)));)n--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>U(e)*2&&(i=t[1]);const a=$(s.timestamp-i.timestamp);if(a===0)return{x:0,y:0};const o={x:(s.x-i.x)/a,y:(s.y-i.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Xr(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?D(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?D(n,t,i.max):Math.min(t,n)),t}function mn(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Yr(t,{top:e,left:n,bottom:i,right:s}){return{x:mn(t.x,n,s),y:mn(t.y,e,i)}}function pn(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function qr(t,e){return{x:pn(t.x,e.x),y:pn(t.y,e.y)}}function Zr(t,e){let n=.5;const i=k(t),s=k(e);return s>i?n=ut(e.min,e.max-i,t.min):i>s&&(n=ut(t.min,t.max-s,e.min)),X(0,1,n)}function Jr(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const oe=.35;function Qr(t=oe){return t===!1?t=0:t===!0&&(t=oe),{x:yn(t,"left","right"),y:yn(t,"top","bottom")}}function yn(t,e,n){return{min:gn(t,e),max:gn(t,n)}}function gn(t,e){return typeof t=="number"?t:t[e]||0}const ta=new WeakMap;class ea{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=E(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const a=h=>{n&&this.snapToCursor(mt(h).point),this.stopAnimation()},o=(h,f)=>{const{drag:d,dragPropagation:m,onDragStart:y}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=So(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),G(g=>{let v=this.getAxisMotionValue(g).get()||0;if(Dt.test(v)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[g];w&&(v=k(w)*(parseFloat(v)/100))}}this.originPoint[g]=v}),y&&V.update(()=>y(h,f),!1,!0),te(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},r=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:y,onDrag:p}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:g}=f;if(m&&this.currentDirection===null){this.currentDirection=ia(g),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),p&&V.update(()=>p(h,f),!1,!0)},c=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Ai(e,{onSessionStart:a,onStart:o,onMove:r,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:i,contextWindow:Di(this.visualElement),element:this.visualElement.current})}stop(e,n){const i=e||this.latestPointerEvent,s=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!s||!i)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:r}=this.getProps();r&&V.postRender(()=>r(i,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,i){const{drag:s}=this.getProps();if(!i||!gt(e,s,this.currentDirection))return;const a=this.getAxisMotionValue(e);let o=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(o=Xr(o,this.constraints[e],this.elastic[e])),a.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&rt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=Yr(i.layoutBox,e):this.constraints=!1,this.elastic=Qr(n),s!==this.constraints&&!rt(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&G(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Jr(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!rt(e))return!1;const i=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const a=Ho(i,s.root,this.visualElement.getTransformPagePoint());let o=qr(s.layout.layoutBox,a);if(n){const r=n(Wo(o));this.hasMutatedConstraints=!!r,r&&(o=ri(r))}return o}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),c=this.constraints||{},u=G(l=>{if(!gt(l,n,this.currentDirection))return;let h=c&&c[l]||{};(o===!0||o===l)&&(h={min:0,max:0});const f=s?200:1e6,d=s?40:1e7,m={type:"inertia",velocity:i?e[l]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...a,...h};return this.startAxisValueAnimation(l,m)});return Promise.all(u).then(r)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return te(this.visualElement,e),i.start(ge(e,i,0,n,this.visualElement,!1))}stopAnimation(){G(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),s=i[n];return s||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){G(n=>{const{drag:i}=this.getProps();if(!gt(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,a=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:r}=s.layout.layoutBox[n],c=a.get()||0;a.set(e[n]-D(o,r,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!rt(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};G(o=>{const r=this.getAxisMotionValue(o);if(r&&this.constraints!==!1){const c=r.get();s[o]=Zr({min:c,max:c},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),G(o=>{if(!gt(o,e,null))return;const r=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];r.set(D(c,u,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;ta.set(this.visualElement,this);const e=this.visualElement.current,n=ct(e,"pointerdown",u=>{const{drag:l,dragListener:h=!0}=this.getProps(),f=u.target,d=f!==e&&Co(f);l&&h&&!d&&this.start(u)});let i;const s=()=>{const{dragConstraints:u}=this.getProps();rt(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),i||(i=na(e,u.current,()=>this.scalePositionWithinConstraints())))},{projection:a}=this.visualElement,o=a.addEventListener("measure",s);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),V.read(s);const r=ht(window,"resize",()=>this.scalePositionWithinConstraints()),c=a.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(G(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=u[h].translate,f.set(f.get()+u[h].translate))}),this.visualElement.render())}));return()=>{r(),n(),o(),c&&c(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:a=!1,dragElastic:o=oe,dragMomentum:r=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:a,dragElastic:o,dragMomentum:r}}}function vn(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function na(t,e,n){const i=ke(t,vn(n)),s=ke(e,vn(n));return()=>{i(),s()}}function gt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function ia(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class sa extends Y{constructor(e){super(e),this.removeGroupControls=z,this.removeListeners=z,this.controls=new ea(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||z}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ht=t=>(e,n)=>{t&&V.update(()=>t(e,n),!1,!0)};class oa extends Y{constructor(){super(...arguments),this.removePointerDownListener=z}onPointerDown(e){this.session=new Ai(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Di(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ht(e),onStart:Ht(n),onMove:Ht(i),onEnd:(a,o)=>{delete this.session,s&&V.postRender(()=>s(a,o))}}}mount(){this.removePointerDownListener=ct(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let zt=!1;class ra extends At.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:a}=e;a&&(n.group&&n.group.add(a),i&&i.register&&s&&i.register(a),zt&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),St.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:s,isPresent:a}=this.props,{projection:o}=i;return o&&(o.isPresent=a,e.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),zt=!0,s||e.layoutDependency!==n||n===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||V.postRender(()=>{const r=o.getStack();(!r||!r.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:i}=e;i&&(i.options.layoutAnchor=n,i.root.didUpdate(),Rn.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=e;zt=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function bi(t){const[e,n]=as(),i=At.useContext(ls);return qi.jsx(ra,{...t,layoutGroup:i,switchLayoutGroup:At.useContext(cs),isPresent:e,safeToRemove:n})}const Sa={pan:{Feature:oa},drag:{Feature:sa,ProjectionNode:Si,MeasureLayout:bi}};function xn(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,a=i[s];a&&V.postRender(()=>a(e,mt(e)))}class aa extends Y{mount(){const{current:e}=this.node;e&&(this.unmount=Ao(e,(n,i)=>(xn(this.node,i,"Start"),s=>xn(this.node,s,"End"))))}unmount(){}}class la extends Y{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=ft(ht(this.node.current,"focus",()=>this.onFocus()),ht(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Tn(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),a=i[s];a&&V.postRender(()=>a(e,mt(e)))}class ca extends Y{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:i}=this.node.props;this.unmount=Lo(e,(s,a)=>(Tn(this.node,a,"Start"),(o,{success:r})=>Tn(this.node,o,r?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:i?.tap===!1})}unmount(){}}const re=new WeakMap,_t=new WeakMap,ua=t=>{const e=re.get(t.target);e&&e(t)},ha=t=>{t.forEach(ua)};function fa({root:t,...e}){const n=t||document;_t.has(n)||_t.set(n,{});const i=_t.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(ha,{root:t,...e})),i[s]}function da(t,e,n){const i=fa(e);return re.set(t,n),i.observe(t),()=>{re.delete(t),i.unobserve(t)}}const ma={some:0,all:1};class pa extends Y{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:s="some",once:a}=e,o={root:n?n.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:ma[s]},r=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,a&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:l,onViewportLeave:h}=this.node.getProps(),f=u?l:h;f&&f(c)};this.stopObserver=da(this.node.current,o,r)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(ya(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function ya({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Da={inView:{Feature:pa},tap:{Feature:ca},focus:{Feature:la},hover:{Feature:aa}},Aa={layout:{ProjectionNode:Si,MeasureLayout:bi}};export{wa as a,Pa as c,Sa as d,Da as g,Os as i,Aa as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as s,j as e,L as u}from"./index-8N-ebit3.js";import{H as p}from"./house-D0FgPHqQ.js";const h=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],m=s("file-text",h);const y=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],x=s("shield",y);function i({eyebrow:r,title:a,intro:n,icon:o,children:c}){const l=d=>{window.parent!==window&&(d.preventDefault(),window.parent.postMessage({type:"lucide:go-home"},window.location.origin))};return e.jsx("div",{className:"app-grid-bg h-screen overflow-y-auto px-6 py-12 text-[var(--text)]",children:e.jsxs("div",{className:"mx-auto w-full max-w-4xl rounded-md border border-[var(--border)] bg-[color-mix(in_srgb,var(--surface)_88%,transparent)] p-8 shadow-[0_18px_50px_rgba(0,0,0,0.25)] backdrop-blur-xl sm:p-10",children:[e.jsx("div",{className:"flex flex-wrap items-center gap-2 text-sm text-[var(--muted)]",children:e.jsxs(u,{to:"/",onClick:l,className:"inline-flex items-center gap-2 rounded-md border border-[var(--border)] bg-[var(--surface-2)] px-3 py-2 font-medium transition hover:border-[var(--muted)]/45",children:[e.jsx(p,{size:15,strokeWidth:2}),"Home"]})}),e.jsx("div",{className:"mt-8 inline-flex h-11 w-11 items-center justify-center rounded-md bg-[var(--surface-2)] text-[var(--accent)]",children:o}),e.jsx("p",{className:"mt-5 text-xs font-medium uppercase tracking-[0.18em] text-[var(--muted)]",children:r}),e.jsx("h1",{className:"mt-3 text-3xl font-semibold sm:text-4xl",children:a}),e.jsx("p",{className:"mt-3 max-w-3xl text-sm leading-6 text-[var(--muted)] sm:text-[15px]",children:n}),e.jsx("p",{className:"mt-3 text-xs text-[var(--muted)]",children:"Last updated March 13, 2026"}),e.jsx("div",{className:"mt-8 space-y-5",children:c})]})})}function t({title:r,children:a}){return e.jsxs("section",{className:"rounded-md border border-[var(--border)] bg-[var(--surface)]/72 p-5 sm:p-6",children:[e.jsx("h2",{className:"text-lg font-semibold",children:r}),e.jsx("div",{className:"mt-2 space-y-3 text-sm leading-6 text-[var(--muted)]",children:a})]})}function b(){return e.jsxs(i,{eyebrow:"Privacy Policy",title:"Lucide Privacy Policy",intro:"This page explains what data Lucide may store or process when you use search, AI, Discord-based authentication, analytics, and related features.",icon:e.jsx(x,{size:20,strokeWidth:2}),children:[e.jsxs(t,{title:"Accounts and Discord authentication",children:[e.jsx("p",{children:"If you sign in with Discord, we process basic account information such as your Discord user ID, username, display name, avatar, authentication session data, and related security information."}),e.jsx("p",{children:"We may also process IP addresses, user-agent information, and Discord DM challenge metadata in order to send one-time sign-in codes, prevent abuse, and keep the sign-in flow working."})]}),e.jsxs(t,{title:"AI and abuse prevention",children:[e.jsx("p",{children:"When you use AI features, your prompts, attachments, and related request metadata may be processed by us and by upstream AI providers in order to generate responses, enforce limits, and keep the feature working."}),e.jsx("p",{children:"We may log AI requests, responses, model usage, IP-related risk signals, and similar technical information to help detect abuse, troubleshoot problems, and improve reliability."})]}),e.jsxs(t,{title:"Analytics, ads, and third parties",children:[e.jsx("p",{children:"Lucide may use privacy-focused analytics and similar measurement tools to understand usage trends, page activity, and product health."}),e.jsx("p",{children:"Some parts of the app may load content or services from third parties, including analytics, ads, AI providers, authentication infrastructure, music search sources, and proxy-related services. Those third parties may process data under their own terms."}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{children:"External service privacy policies:"}),e.jsx("p",{children:e.jsx("a",{href:"https://umami.is/privacy",target:"_blank",rel:"noreferrer",className:"text-[var(--accent)] underline underline-offset-4",children:"Umami Privacy Policy"})}),e.jsx("p",{children:e.jsx("a",{href:"https://policies.google.com/privacy",target:"_blank",rel:"noreferrer",className:"text-[var(--accent)] underline underline-offset-4",children:"Google Privacy Policy"})}),e.jsx("p",{children:e.jsx("a",{href:"https://policies.google.com/terms",target:"_blank",rel:"noreferrer",className:"text-[var(--accent)] underline underline-offset-4",children:"Google Terms"})})]})]}),e.jsxs(t,{title:"Security and network information",children:[e.jsx("p",{children:"We may process IP addresses, request headers, origin information, and similar technical data for security, rate-limiting, fraud prevention, signup protection, and service stability."}),e.jsx("p",{children:"We take reasonable steps to protect the service, but no system can guarantee absolute security."})]}),e.jsxs(t,{title:"Age requirements",children:[e.jsx("p",{children:"Lucide is not intended for anyone under 18, and we do not knowingly collect personal data from anyone under 18."}),e.jsx("p",{children:"If we become aware that we have collected personal data from someone under 18, we will take reasonable steps to delete that data."})]}),e.jsxs(t,{title:"Your choices",children:[e.jsx("p",{children:"You can stop using optional features like AI, Discord sign-in, or analytics-blocked environments at any time."}),e.jsx("p",{children:"You can also clear local app data, export your data, import your data, or sign out of your account where that option is available."})]})]})}function v(){return e.jsxs(i,{eyebrow:"Terms of Service",title:"Lucide Terms of Service",intro:"By using Lucide, you agree to use the app responsibly and understand that some features rely on third-party services.",icon:e.jsx(m,{size:20,strokeWidth:2}),children:[e.jsxs(t,{title:"Using the service",children:[e.jsx("p",{children:"You may use Lucide for personal or lawful internal use. Do not use the service to break the law, harm others, interfere with the app, or bypass restrictions we put in place."}),e.jsx("p",{children:"You are responsible for the content you submit, search for, sync, or generate while using the app."}),e.jsx("p",{children:"By using Lucide, you represent and agree that you are at least 18 years old."})]}),e.jsxs(t,{title:"Accounts and security",children:[e.jsx("p",{children:"If you create an account, you are responsible for keeping access to that account secure and for the activity that happens under it."}),e.jsx("p",{children:"We may suspend, restrict, or refuse access to protect the service, enforce rate limits, respond to abuse, or comply with legal or security requirements."})]}),e.jsxs(t,{title:"Subscriptions and billing",children:[e.jsx("p",{children:"Some Lucide features may be offered through paid plans or recurring subscriptions. By purchasing a plan, you authorize the applicable payment provider to charge the listed amount, plus any taxes or fees that apply."}),e.jsx("p",{children:"Paid benefits generally apply automatically after a successful purchase, but some changes may take time to propagate across the app or related services."}),e.jsx("p",{children:"Unless stated otherwise at checkout, subscriptions renew automatically until canceled. You are responsible for managing or canceling your subscription through the applicable billing provider."}),e.jsx("p",{children:"We may change pricing, plan features, or subscription benefits in the future. Continued use of a paid plan after those changes take effect means you accept the updated pricing or terms to the extent permitted by law."}),e.jsx("p",{children:"Except where required by law, purchases, subscription fees, and partial billing periods are non-refundable."})]}),e.jsxs(t,{title:"AI, search, and third-party services",children:[e.jsx("p",{children:"Lucide may route requests through third-party providers for AI, search, sync, media lookup, analytics, ads, and related functionality. Availability, quality, and results may change at any time."}),e.jsx("p",{children:"AI and search results can be inaccurate, incomplete, offensive, or out of date. You should review important output yourself before relying on it."}),e.jsx("p",{children:"Lucide does not provide any service level agreement, guaranteed uptime, guaranteed response time, or guaranteed availability for AI features."})]}),e.jsxs(t,{title:"Content, availability, and changes",children:[e.jsx("p",{children:"We may change, limit, pause, or remove features at any time, including models, proxy options, sync behavior, account features, and integrations."}),e.jsx("p",{children:"We are not responsible for third-party outages, blocking, provider decisions, or content returned by outside services."})]}),e.jsxs(t,{title:"Disclaimers and liability",children:[e.jsx("p",{children:'Lucide is provided on an "as is" and "as available" basis without guarantees of uninterrupted service, perfect accuracy, or fitness for a particular purpose.'}),e.jsx("p",{children:"To the maximum extent allowed by law, we are not liable for indirect, incidental, special, or consequential damages arising from your use of the service."})]}),e.jsx(t,{title:"Updates to these terms",children:e.jsx("p",{children:"We may update these terms and the privacy policy from time to time. Continued use of Lucide after changes means you accept the updated terms."})})]})}export{b as PrivacyPolicyPage,v as TermsOfServicePage};
|