diff --git a/404.html b/404.html index 21bb4bd..b17f40d 100644 --- a/404.html +++ b/404.html @@ -3,27 +3,26 @@ + + + + + Intuition Labs LLC - AI Research & Consulting + + + + + - - - - - - + + + + + +
diff --git a/assets/Home-Bz0xtnBV.js b/assets/Home-Bz0xtnBV.js new file mode 100644 index 0000000..575f479 --- /dev/null +++ b/assets/Home-Bz0xtnBV.js @@ -0,0 +1 @@ +import{j as e,m as t}from"./animation-CyPhY3sF.js";import{r as s,L as a}from"./vendor-kDvAVQqt.js";class n{constructor(){this.init(),this.setupParallax()}init(){const e=document.querySelectorAll(".section"),t={root:null,rootMargin:"0px",threshold:i()},s=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.intersectionRatio;e.target.style.opacity=Math.min(1.5*t,1),e.target.style.transform=`translateY(${20*(1-t)}px)`;const s=e.target.children;Array.from(s).forEach(((e,t)=>{e.style.transitionDelay=100*t+"ms",e.classList.add("visible")}))}}))}),t);e.forEach((e=>{e.style.opacity="0",e.style.transform="translateY(20px)",e.style.transition="opacity 0.6s ease-out, transform 0.6s ease-out",s.observe(e)}))}setupParallax(){const e=document.querySelectorAll("[data-parallax]");window.addEventListener("scroll",(()=>{const t=window.pageYOffset;e.forEach((e=>{const s=e.dataset.parallax||.5,a=t*s;e.style.transform=`translateY(${a}px)`}))}))}}function i(){let e=[];for(let t=1;t<=20;t++){let s=t/20;e.push(s)}return e}class r{constructor(){this.init()}init(){document.querySelectorAll(".card").forEach((e=>{e.addEventListener("mousemove",(t=>{const s=e.getBoundingClientRect(),a=(t.clientX-s.left)/s.width*100,n=(t.clientY-s.top)/s.height*100;e.style.setProperty("--x",`${a}%`),e.style.setProperty("--y",`${n}%`);const i=.1*(n-50),r=-.1*(a-50);e.style.transform=`perspective(1000px) rotateX(${i}deg) rotateY(${r}deg) scale(1.02)`})),e.addEventListener("mouseleave",(()=>{e.style.transform="perspective(1000px) rotateX(0) rotateY(0) scale(1)"}));e.querySelectorAll(".learn-more-content li").forEach(((e,t)=>{e.style.transitionDelay=75*t+"ms",e.style.transform="translateY(10px)",e.style.opacity="0"}))}))}}function l({onMount:i}){const[l,o]=s.useState(!1);s.useEffect((()=>{if(!l){null==i||i(),o(!0);const e=new r,t=new n;return()=>{var s,a;null==(s=e.dispose)||s.call(e),null==(a=t.dispose)||a.call(t)}}}),[l,i]);const c={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{duration:.6,ease:[.23,1,.32,1]}}};return e.jsxs(t.div,{className:"home-container",initial:"hidden",animate:l?"visible":"hidden",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}}},children:[e.jsxs(t.section,{className:"hero-section",variants:c,children:[e.jsx("h1",{className:"gradient-text",children:"Intuition Labs"}),e.jsx("p",{className:"tagline",children:"Pioneering the future of AI through intuitive design"}),e.jsxs("div",{className:"cta-container",children:[e.jsx(t.a,{href:"https://zcal.co/terminals",className:"cta-button primary",whileHover:{scale:1.05},whileTap:{scale:.95},children:"Schedule Consultation"}),e.jsx(t.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:e.jsx(a,{to:"/manifesto",className:"cta-button secondary",children:"Read Our Manifesto"})})]})]}),e.jsx("div",{className:"platforms-marquee",children:e.jsx("div",{className:"platforms-track",children:[...Array(2)].map(((t,s)=>e.jsxs("div",{style:{display:"flex",gap:"4rem"},children:[e.jsx("span",{className:"platform-name platform-terminals",children:"terminals"}),e.jsx("span",{className:"platform-name platform-radical",children:"radical"}),e.jsx("span",{className:"platform-name platform-pathfinder",children:"pathfinder"}),e.jsx("span",{className:"platform-name platform-wuji",children:"wuji"}),e.jsx("span",{className:"platform-name platform-boom",children:"boom"}),e.jsx("span",{className:"platform-name platform-journey",children:"journey"})]},s)))})}),e.jsxs(t.section,{className:"section solutions-grid",variants:c,"data-parallax":"0.2",children:[e.jsx("h2",{children:"Featured Solutions"}),e.jsxs("div",{className:"grid",children:[e.jsxs(t.div,{className:"card",whileHover:{scale:1.02,y:-5},transition:{duration:.2},children:[e.jsx("h3",{children:"Enterprise AI Strategy"}),e.jsx("p",{children:"Comprehensive AI implementation and transformation roadmaps"}),e.jsx("div",{className:"card-content",children:e.jsxs("ul",{children:[e.jsx("li",{children:"Enterprise AI Implementation Strategy"}),e.jsx("li",{children:"LLM & Agent System Architecture"}),e.jsx("li",{children:"GTM Strategy Development"}),e.jsx("li",{children:"Complex System Integration"})]})})]}),e.jsxs(t.div,{className:"card",whileHover:{scale:1.02,y:-5},transition:{duration:.2},children:[e.jsx("h3",{children:"LLM Systems"}),e.jsx("p",{children:"Custom language model development and integration"}),e.jsx("div",{className:"card-content",children:e.jsxs("ul",{children:[e.jsx("li",{children:"Custom AI Agent Development"}),e.jsx("li",{children:"Advanced Prompt Engineering"}),e.jsx("li",{children:"Multi-modal System Design"}),e.jsx("li",{children:"Process Automation & Optimization"})]})})]})]})]}),e.jsx(t.section,{className:"section vision-section",variants:c,"data-parallax":"0.4",children:e.jsxs("div",{className:"vision-content",children:[e.jsx("h2",{children:"Our Vision"}),e.jsx("p",{children:"Transforming enterprises through cutting-edge AI solutions and polymathic expertise"}),e.jsx(t.div,{className:"tech-stack",initial:{opacity:0},animate:{opacity:1},transition:{delay:.5}})]})})]})}export{l as default}; diff --git a/assets/Home-CIdzXA5l.js b/assets/Home-CIdzXA5l.js deleted file mode 100644 index 75fa85c..0000000 --- a/assets/Home-CIdzXA5l.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e,m as i}from"./animation-6CpB2BtV.js";import{r as s,L as n}from"./vendor-CJ7Qk68r.js";function a({onMount:a}){const[t,r]=s.useState(!1);s.useEffect((()=>{null==a||a(),r(!0)}),[a]);const l={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{duration:.6,ease:[.23,1,.32,1]}}};return e.jsxs(i.div,{className:"home-container",initial:"hidden",animate:t?"visible":"hidden",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}}},children:[e.jsxs(i.section,{className:"hero-section",variants:l,children:[e.jsx("h1",{className:"gradient-text",children:"Intuition Labs"}),e.jsx("p",{className:"tagline",children:"Pioneering the future of AI through intuitive design"}),e.jsxs("div",{className:"cta-container",children:[e.jsx(i.a,{href:"https://zcal.co/terminals",className:"cta-button primary",whileHover:{scale:1.05},whileTap:{scale:.95},children:"Schedule Consultation"}),e.jsx(i.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:e.jsx(n,{to:"/manifesto",className:"cta-button secondary",children:"Read Our Manifesto"})})]})]}),e.jsxs(i.section,{className:"section solutions-grid",variants:l,"data-parallax":"0.2",children:[e.jsx("h2",{children:"Featured Solutions"}),e.jsxs("div",{className:"grid",children:[e.jsxs(i.div,{className:"card",whileHover:{scale:1.02,y:-5},transition:{duration:.2},children:[e.jsx("h3",{children:"Enterprise AI Strategy"}),e.jsx("p",{children:"Comprehensive AI implementation and transformation roadmaps"}),e.jsx("div",{className:"card-content",children:e.jsxs("ul",{children:[e.jsx("li",{children:"Enterprise AI Implementation Strategy"}),e.jsx("li",{children:"LLM & Agent System Architecture"}),e.jsx("li",{children:"GTM Strategy Development"}),e.jsx("li",{children:"Complex System Integration"})]})})]}),e.jsxs(i.div,{className:"card",whileHover:{scale:1.02,y:-5},transition:{duration:.2},children:[e.jsx("h3",{children:"LLM Systems"}),e.jsx("p",{children:"Custom language model development and integration"}),e.jsx("div",{className:"card-content",children:e.jsxs("ul",{children:[e.jsx("li",{children:"Custom AI Agent Development"}),e.jsx("li",{children:"Advanced Prompt Engineering"}),e.jsx("li",{children:"Multi-modal System Design"}),e.jsx("li",{children:"Process Automation & Optimization"})]})})]})]})]}),e.jsx(i.section,{className:"section vision-section",variants:l,"data-parallax":"0.4",children:e.jsxs("div",{className:"vision-content",children:[e.jsx("h2",{children:"Our Vision"}),e.jsx("p",{children:"Transforming enterprises through cutting-edge AI solutions and polymathic expertise"}),e.jsx(i.div,{className:"tech-stack",initial:{opacity:0},animate:{opacity:1},transition:{delay:.5}})]})})]})}export{a as default}; diff --git a/assets/Manifesto-CBmvqAB7.js b/assets/Manifesto-CBmvqAB7.js new file mode 100644 index 0000000..0573a3b --- /dev/null +++ b/assets/Manifesto-CBmvqAB7.js @@ -0,0 +1 @@ +import{j as e,m as i}from"./animation-CyPhY3sF.js";import{r as n,L as s}from"./vendor-kDvAVQqt.js";function t({onMount:t}){n.useEffect((()=>{null==t||t()}),[t]);const a={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{duration:.6,ease:[.23,1,.32,1]}}};return e.jsxs(i.div,{id:"app",initial:"hidden",animate:"visible",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}}},children:[e.jsx("canvas",{id:"bg"}),e.jsxs(i.header,{variants:a,children:[e.jsx(s,{to:"/",className:"back-link",children:"← Back to Home"}),e.jsx("h1",{children:"Our Manifesto"}),e.jsx("p",{className:"tagline",children:"Shaping the future of AI with purpose and responsibility"})]}),e.jsxs(i.section,{className:"section manifesto-content",variants:a,children:[e.jsxs("div",{className:"manifesto-grid",children:[e.jsxs("div",{className:"manifesto-item",children:[e.jsx("h2",{children:"Purpose"}),e.jsx("p",{children:"We believe AI should augment human capabilities, not replace them. Our mission is to create AI systems that enhance human potential while maintaining ethical boundaries and promoting sustainable innovation."})]}),e.jsxs("div",{className:"manifesto-item",children:[e.jsx("h2",{children:"Innovation"}),e.jsx("p",{children:"True innovation comes from understanding both the technical and human aspects of AI. We combine cutting-edge technology with deep industry knowledge to create solutions that matter."})]}),e.jsxs("div",{className:"manifesto-item",children:[e.jsx("h2",{children:"Ethics"}),e.jsx("p",{children:"We are committed to developing AI systems that are transparent, fair, and accountable. Our ethical framework ensures that every solution we create considers its impact on society and individuals."})]}),e.jsxs("div",{className:"manifesto-item",children:[e.jsx("h2",{children:"Collaboration"}),e.jsx("p",{children:"The best solutions emerge from diverse perspectives. We work closely with our clients, fostering partnerships that drive meaningful transformation and sustainable growth."})]})]}),e.jsxs("div",{className:"principles",children:[e.jsx("h2",{children:"Our Guiding Principles"}),e.jsxs("ul",{className:"experience-list",children:[e.jsx("li",{children:"Human-centered AI development that prioritizes user needs and experiences"}),e.jsx("li",{children:"Continuous learning and adaptation to emerging technologies and methodologies"}),e.jsx("li",{children:"Transparent communication and collaboration with stakeholders"}),e.jsx("li",{children:"Sustainable and responsible AI implementation practices"}),e.jsx("li",{children:"Commitment to diversity, equity, and inclusion in AI development"})]})]})]}),e.jsxs(i.footer,{variants:a,children:[e.jsxs("div",{className:"social-links",children:[e.jsx("a",{href:"https://www.linkedin.com/company/intuition-labs",target:"_blank",rel:"noopener noreferrer",children:"LinkedIn"}),e.jsx("a",{href:"https://github.com/wheattoast11",target:"_blank",rel:"noopener noreferrer",children:"GitHub"}),e.jsx("a",{href:"https://www.youtube.com/@IntuitionLabsLLC",target:"_blank",rel:"noopener noreferrer",children:"YouTube"})]}),e.jsx("p",{className:"copyright",children:"© 2024 Intuition Labs LLC. Pioneering the future of AI."})]})]})}export{t as default}; diff --git a/assets/Manifesto-Dax6b0Cd.js b/assets/Manifesto-Dax6b0Cd.js deleted file mode 100644 index 2dcc18d..0000000 --- a/assets/Manifesto-Dax6b0Cd.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e}from"./animation-6CpB2BtV.js";import{r as i,L as n}from"./vendor-CJ7Qk68r.js";function s({onMount:s}){return i.useEffect((()=>{s()}),[s]),e.jsxs("div",{id:"app",children:[e.jsx("canvas",{id:"bg"}),e.jsxs("header",{children:[e.jsx(n,{to:"/",className:"back-link",children:"← Back to Home"}),e.jsx("h1",{children:"Our Manifesto"}),e.jsx("p",{className:"tagline",children:"Shaping the future of AI with purpose and responsibility"})]}),e.jsxs("section",{className:"section manifesto-content",children:[e.jsxs("div",{className:"manifesto-grid",children:[e.jsxs("div",{className:"manifesto-item",children:[e.jsx("h2",{children:"Purpose"}),e.jsx("p",{children:"We believe AI should augment human capabilities, not replace them. Our mission is to create AI systems that enhance human potential while maintaining ethical boundaries and promoting sustainable innovation."})]}),e.jsxs("div",{className:"manifesto-item",children:[e.jsx("h2",{children:"Innovation"}),e.jsx("p",{children:"True innovation comes from understanding both the technical and human aspects of AI. We combine cutting-edge technology with deep industry knowledge to create solutions that matter."})]}),e.jsxs("div",{className:"manifesto-item",children:[e.jsx("h2",{children:"Ethics"}),e.jsx("p",{children:"We are committed to developing AI systems that are transparent, fair, and accountable. Our ethical framework ensures that every solution we create considers its impact on society and individuals."})]}),e.jsxs("div",{className:"manifesto-item",children:[e.jsx("h2",{children:"Collaboration"}),e.jsx("p",{children:"The best solutions emerge from diverse perspectives. We work closely with our clients, fostering partnerships that drive meaningful transformation and sustainable growth."})]})]}),e.jsxs("div",{className:"principles",children:[e.jsx("h2",{children:"Our Guiding Principles"}),e.jsxs("ul",{className:"experience-list",children:[e.jsx("li",{children:"Human-centered AI development that prioritizes user needs and experiences"}),e.jsx("li",{children:"Continuous learning and adaptation to emerging technologies and methodologies"}),e.jsx("li",{children:"Transparent communication and collaboration with stakeholders"}),e.jsx("li",{children:"Sustainable and responsible AI implementation practices"}),e.jsx("li",{children:"Commitment to diversity, equity, and inclusion in AI development"})]})]})]}),e.jsxs("footer",{children:[e.jsxs("div",{className:"social-links",children:[e.jsx("a",{href:"https://www.linkedin.com/company/intuition-labs",children:"LinkedIn"}),e.jsx("a",{href:"https://github.com/wheattoast11",children:"GitHub"}),e.jsx("a",{href:"https://www.youtube.com/@IntuitionLabsLLC",children:"YouTube"})]}),e.jsx("p",{className:"copyright",children:"© 2024 Intuition Labs LLC. Pioneering the future of AI."})]})]})}export{s as default}; diff --git a/assets/Scene-Bgu4qmls.js b/assets/Scene-Bgu4qmls.js deleted file mode 100644 index bd7dfa2..0000000 --- a/assets/Scene-Bgu4qmls.js +++ /dev/null @@ -1 +0,0 @@ -import{G as t,L as e,A as s,B as r,V as i,a,I as n,M as o,D as l,b as h,O as u,F as d,S as c,U as m,c as f,W as p,H as g,N as v,C as w,d as x,e as M,f as T,P as b,g as S,h as C,i as y,j as P,k as _}from"./three-CHXrHHRv.js";const D=Math.sqrt(5),R=(D-1)/4,B=(5-D)/20,U=t=>0|Math.floor(t),z=new Float64Array([0,1,1,1,0,1,1,-1,0,1,-1,1,0,1,-1,-1,0,-1,1,1,0,-1,1,-1,0,-1,-1,1,0,-1,-1,-1,1,0,1,1,1,0,1,-1,1,0,-1,1,1,0,-1,-1,-1,0,1,1,-1,0,1,-1,-1,0,-1,1,-1,0,-1,-1,1,1,0,1,1,1,0,-1,1,-1,0,1,1,-1,0,-1,-1,1,0,1,-1,1,0,-1,-1,-1,0,1,-1,-1,0,-1,1,1,1,0,1,1,-1,0,1,-1,1,0,1,-1,-1,0,-1,1,1,0,-1,1,-1,0,-1,-1,1,0,-1,-1,-1,0]);function F(t=Math.random){const e=function(t){const e=512,s=new Uint8Array(e);for(let r=0;rz[t%32*4])),r=new Float64Array(e).map((t=>z[t%32*4+1])),i=new Float64Array(e).map((t=>z[t%32*4+2])),a=new Float64Array(e).map((t=>z[t%32*4+3]));return function(t,n,o,l){let h,u,d,c,m;const f=(t+n+o+l)*R,p=U(t+f),g=U(n+f),v=U(o+f),w=U(l+f),x=(p+g+v+w)*B,M=t-(p-x),T=n-(g-x),b=o-(v-x),S=l-(w-x);let C=0,y=0,P=0,_=0;M>T?C++:y++,M>b?C++:P++,M>S?C++:_++,T>b?y++:P++,T>S?y++:_++,b>S?P++:_++;const D=C>=3?1:0,z=y>=3?1:0,F=P>=3?1:0,E=_>=3?1:0,A=C>=2?1:0,L=y>=2?1:0,Q=P>=2?1:0,H=_>=2?1:0,I=C>=1?1:0,V=y>=1?1:0,k=P>=1?1:0,O=_>=1?1:0,W=M-D+B,j=T-z+B,N=b-F+B,K=S-E+B,Y=M-A+2*B,G=T-L+2*B,q=b-Q+2*B,X=S-H+2*B,Z=M-I+3*B,J=T-V+3*B,$=b-k+3*B,tt=S-O+3*B,et=M-1+4*B,st=T-1+4*B,rt=b-1+4*B,it=S-1+4*B,at=255&p,nt=255&g,ot=255&v,lt=255&w;let ht=.6-M*M-T*T-b*b-S*S;if(ht<0)h=0;else{const t=at+e[nt+e[ot+e[lt]]];ht*=ht,h=ht*ht*(s[t]*M+r[t]*T+i[t]*b+a[t]*S)}let ut=.6-W*W-j*j-N*N-K*K;if(ut<0)u=0;else{const t=at+D+e[nt+z+e[ot+F+e[lt+E]]];ut*=ut,u=ut*ut*(s[t]*W+r[t]*j+i[t]*N+a[t]*K)}let dt=.6-Y*Y-G*G-q*q-X*X;if(dt<0)d=0;else{const t=at+A+e[nt+L+e[ot+Q+e[lt+H]]];dt*=dt,d=dt*dt*(s[t]*Y+r[t]*G+i[t]*q+a[t]*X)}let ct=.6-Z*Z-J*J-$*$-tt*tt;if(ct<0)c=0;else{const t=at+I+e[nt+V+e[ot+k+e[lt+O]]];ct*=ct,c=ct*ct*(s[t]*Z+r[t]*J+i[t]*$+a[t]*tt)}let mt=.6-et*et-st*st-rt*rt-it*it;if(mt<0)m=0;else{const t=at+1+e[nt+1+e[ot+1+e[lt+1]]];mt*=mt,m=mt*mt*(s[t]*et+r[t]*st+i[t]*rt+a[t]*it)}return 27*(h+u+d+c+m)}}class E{constructor(){this.noise4D=F(),this.group=new t,this.lines=[],this.particleCount=150,this.segmentCount=100,this.material=new e({color:8035999,transparent:!0,opacity:.3,blending:s}),this.init()}createFlowLine(){const t=[],e=new r,s=new i(100*(Math.random()-.5),100*(Math.random()-.5),100*(Math.random()-.5));t.push(s.clone());for(let r=1;rt.clone()))}}init(){for(let t=0;t{const r=e.points.map(((e,r)=>{const a=this.noise4D(.02*e.x,.02*e.y,.02*e.z,t+.1*s);return new i(e.x+.1*Math.cos(a*Math.PI*2),e.y+.1*Math.sin(a*Math.PI*2),e.z+.05*(Math.cos(a*Math.PI)+Math.sin(a*Math.PI)))}));e.line.geometry.setFromPoints(r),e.line.geometry.computeBoundingSphere()})),this.group.rotation.x+=1e-4,this.group.rotation.y+=1e-4}}class A{constructor(){this.noise4D=F(),this.spheres=[],this.materials=[],this.baseGeometry=new n(1,3),this.createMaterials(),this.init()}createMaterials(){[5270655,8035999,4217967].forEach((t=>{this.materials.push(new o({color:t,transparent:!0,opacity:.2,shininess:100,specular:8035999,side:l,wireframe:Math.random()>.7}))}))}init(){for(let t=0;t<20;t++){const t=new h(this.baseGeometry,this.materials[Math.floor(Math.random()*this.materials.length)]),e=30+30*Math.random(),s=Math.random()*Math.PI*2,r=Math.random()*Math.PI;t.position.set(e*Math.sin(r)*Math.cos(s),e*Math.sin(r)*Math.sin(s),e*Math.cos(r)),t.scale.setScalar(2*Math.random()+.5),t.userData={originalPosition:t.position.clone(),rotationSpeed:.002*(Math.random()-.5),pulseSpeed:.002*Math.random()+.001,pulseOffset:Math.random()*Math.PI*2},this.spheres.push(t)}}update(t){this.spheres.forEach(((e,s)=>{const r=this.noise4D(.02*e.position.x,.02*e.position.y,.02*e.position.z,t),i=e.userData.originalPosition;e.position.x=i.x+2*Math.cos(t+s)*r,e.position.y=i.y+2*Math.sin(t+s)*r,e.position.z=i.z+2*Math.cos(.5*t+s)*r,e.rotation.x+=e.userData.rotationSpeed,e.rotation.y+=1.2*e.userData.rotationSpeed;const a=.1*Math.sin(t*e.userData.pulseSpeed+e.userData.pulseOffset)+1,n=e.userData.originalScale||1;e.scale.setScalar(n*a),e.material.transparent&&(e.material.opacity=.2+.1*Math.sin(2*t+s))}))}dispose(){this.baseGeometry.dispose(),this.materials.forEach((t=>t.dispose()))}}const L={name:"CopyShader",uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform float opacity;\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 texel = texture2D( tDiffuse, vUv );\n\t\t\tgl_FragColor = opacity * texel;\n\n\n\t\t}"};class Q{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){}dispose(){}}const H=new u(-1,1,1,-1,0,1);const I=new class extends r{constructor(){super(),this.setAttribute("position",new d([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute("uv",new d([0,2,0,0,2,0],2))}};class V{constructor(t){this._mesh=new h(I,t)}dispose(){this._mesh.geometry.dispose()}render(t){t.render(this._mesh,H)}get material(){return this._mesh.material}set material(t){this._mesh.material=t}}class k extends Q{constructor(t,e){super(),this.textureID=void 0!==e?e:"tDiffuse",t instanceof c?(this.uniforms=t.uniforms,this.material=t):t&&(this.uniforms=m.clone(t.uniforms),this.material=new c({name:void 0!==t.name?t.name:"unspecified",defines:Object.assign({},t.defines),uniforms:this.uniforms,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader})),this.fsQuad=new V(this.material)}render(t,e,s){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=s.texture),this.fsQuad.material=this.material,this.renderToScreen?(t.setRenderTarget(null),this.fsQuad.render(t)):(t.setRenderTarget(e),this.clear&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),this.fsQuad.render(t))}dispose(){this.material.dispose(),this.fsQuad.dispose()}}class O extends Q{constructor(t,e){super(),this.scene=t,this.camera=e,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(t,e,s){const r=t.getContext(),i=t.state;let a,n;i.buffers.color.setMask(!1),i.buffers.depth.setMask(!1),i.buffers.color.setLocked(!0),i.buffers.depth.setLocked(!0),this.inverse?(a=0,n=1):(a=1,n=0),i.buffers.stencil.setTest(!0),i.buffers.stencil.setOp(r.REPLACE,r.REPLACE,r.REPLACE),i.buffers.stencil.setFunc(r.ALWAYS,a,4294967295),i.buffers.stencil.setClear(n),i.buffers.stencil.setLocked(!0),t.setRenderTarget(s),this.clear&&t.clear(),t.render(this.scene,this.camera),t.setRenderTarget(e),this.clear&&t.clear(),t.render(this.scene,this.camera),i.buffers.color.setLocked(!1),i.buffers.depth.setLocked(!1),i.buffers.color.setMask(!0),i.buffers.depth.setMask(!0),i.buffers.stencil.setLocked(!1),i.buffers.stencil.setFunc(r.EQUAL,1,4294967295),i.buffers.stencil.setOp(r.KEEP,r.KEEP,r.KEEP),i.buffers.stencil.setLocked(!0)}}class W extends Q{constructor(){super(),this.needsSwap=!1}render(t){t.state.buffers.stencil.setLocked(!1),t.state.buffers.stencil.setTest(!1)}}class j{constructor(t,e){if(this.renderer=t,this._pixelRatio=t.getPixelRatio(),void 0===e){const s=t.getSize(new f);this._width=s.width,this._height=s.height,(e=new p(this._width*this._pixelRatio,this._height*this._pixelRatio,{type:g})).texture.name="EffectComposer.rt1"}else this._width=e.width,this._height=e.height;this.renderTarget1=e,this.renderTarget2=e.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],this.copyPass=new k(L),this.copyPass.material.blending=v,this.clock=new w}swapBuffers(){const t=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=t}addPass(t){this.passes.push(t),t.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(t,e){this.passes.splice(e,0,t),t.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(t){const e=this.passes.indexOf(t);-1!==e&&this.passes.splice(e,1)}isLastEnabledPass(t){for(let e=t+1;e\n\t\t\t\tvarying vec2 vUv;\n\t\t\t\tuniform sampler2D colorTexture;\n\t\t\t\tuniform vec2 invSize;\n\t\t\t\tuniform vec2 direction;\n\t\t\t\tuniform float gaussianCoefficients[KERNEL_RADIUS];\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tfloat weightSum = gaussianCoefficients[0];\n\t\t\t\t\tvec3 diffuseSum = texture2D( colorTexture, vUv ).rgb * weightSum;\n\t\t\t\t\tfor( int i = 1; i < KERNEL_RADIUS; i ++ ) {\n\t\t\t\t\t\tfloat x = float(i);\n\t\t\t\t\t\tfloat w = gaussianCoefficients[i];\n\t\t\t\t\t\tvec2 uvOffset = direction * invSize * x;\n\t\t\t\t\t\tvec3 sample1 = texture2D( colorTexture, vUv + uvOffset ).rgb;\n\t\t\t\t\t\tvec3 sample2 = texture2D( colorTexture, vUv - uvOffset ).rgb;\n\t\t\t\t\t\tdiffuseSum += (sample1 + sample2) * w;\n\t\t\t\t\t\tweightSum += 2.0 * w;\n\t\t\t\t\t}\n\t\t\t\t\tgl_FragColor = vec4(diffuseSum/weightSum, 1.0);\n\t\t\t\t}"})}getCompositeMaterial(t){return new c({defines:{NUM_MIPS:t},uniforms:{blurTexture1:{value:null},blurTexture2:{value:null},blurTexture3:{value:null},blurTexture4:{value:null},blurTexture5:{value:null},bloomStrength:{value:1},bloomFactors:{value:null},bloomTintColors:{value:null},bloomRadius:{value:0}},vertexShader:"varying vec2 vUv;\n\t\t\t\tvoid main() {\n\t\t\t\t\tvUv = uv;\n\t\t\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t\t\t\t}",fragmentShader:"varying vec2 vUv;\n\t\t\t\tuniform sampler2D blurTexture1;\n\t\t\t\tuniform sampler2D blurTexture2;\n\t\t\t\tuniform sampler2D blurTexture3;\n\t\t\t\tuniform sampler2D blurTexture4;\n\t\t\t\tuniform sampler2D blurTexture5;\n\t\t\t\tuniform float bloomStrength;\n\t\t\t\tuniform float bloomRadius;\n\t\t\t\tuniform float bloomFactors[NUM_MIPS];\n\t\t\t\tuniform vec3 bloomTintColors[NUM_MIPS];\n\n\t\t\t\tfloat lerpBloomFactor(const in float factor) {\n\t\t\t\t\tfloat mirrorFactor = 1.2 - factor;\n\t\t\t\t\treturn mix(factor, mirrorFactor, bloomRadius);\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tgl_FragColor = bloomStrength * ( lerpBloomFactor(bloomFactors[0]) * vec4(bloomTintColors[0], 1.0) * texture2D(blurTexture1, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[1]) * vec4(bloomTintColors[1], 1.0) * texture2D(blurTexture2, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[2]) * vec4(bloomTintColors[2], 1.0) * texture2D(blurTexture3, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[3]) * vec4(bloomTintColors[3], 1.0) * texture2D(blurTexture4, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[4]) * vec4(bloomTintColors[4], 1.0) * texture2D(blurTexture5, vUv) );\n\t\t\t\t}"})}}Y.BlurDirectionX=new f(1,0),Y.BlurDirectionY=new f(0,1);class G{constructor(){this.scene=new T,this.camera=new b(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new S({canvas:document.querySelector("#bg"),antialias:!0,alpha:!0}),this.composer=null,this.flowField=new E,this.spheres=new A,this.time=0,this.mouse=new f,this.targetRotation=new f,this.init(),this.setupLights(),this.setupPostProcessing(),this.setupEventListeners()}init(){this.renderer.setPixelRatio(Math.min(window.devicePixelRatio,2)),this.renderer.setSize(window.innerWidth,window.innerHeight),this.renderer.toneMapping=C,this.renderer.toneMappingExposure=1,this.camera.position.setZ(30),this.camera.position.setY(5),this.scene.fog=new y(0,.01),this.scene.add(this.flowField.group),this.spheres.spheres.forEach((t=>this.scene.add(t)))}setupPostProcessing(){this.composer=new j(this.renderer);const t=new N(this.scene,this.camera);this.composer.addPass(t);const e=new Y(new f(window.innerWidth,window.innerHeight),.5,.4,.85);this.composer.addPass(e)}setupLights(){const t=new P(4210752,.8),e=new _(8035999,2);e.position.set(10,10,10);const s=new _(5270655,1.5);s.position.set(-10,-10,-10),this.scene.add(t,e,s)}setupEventListeners(){window.addEventListener("resize",(()=>{this.camera.aspect=window.innerWidth/window.innerHeight,this.camera.updateProjectionMatrix(),this.renderer.setSize(window.innerWidth,window.innerHeight),this.composer.setSize(window.innerWidth,window.innerHeight)})),document.addEventListener("mousemove",(t=>{this.mouse.x=t.clientX/window.innerWidth*2-1,this.mouse.y=-t.clientY/window.innerHeight*2+1,this.targetRotation.x=.1*this.mouse.y,this.targetRotation.y=.1*this.mouse.x}))}animate(){requestAnimationFrame(this.animate.bind(this)),this.time+=.001,this.camera.rotation.x+=.05*(this.targetRotation.x-this.camera.rotation.x),this.camera.rotation.y+=.05*(this.targetRotation.y-this.camera.rotation.y),this.flowField.update(this.time),this.spheres.update(this.time),this.composer.render()}dispose(){this.renderer.dispose(),this.scene.traverse((t=>{t.geometry&&t.geometry.dispose(),t.material&&(Array.isArray(t.material)?t.material.forEach((t=>t.dispose())):t.material.dispose())}))}}export{G as Scene}; diff --git a/assets/animation-6CpB2BtV.js b/assets/animation-CyPhY3sF.js similarity index 99% rename from assets/animation-6CpB2BtV.js rename to assets/animation-CyPhY3sF.js index 98b3a5a..57e9986 100644 --- a/assets/animation-6CpB2BtV.js +++ b/assets/animation-CyPhY3sF.js @@ -1 +1 @@ -import{r as t}from"./vendor-CJ7Qk68r.js";var e={exports:{}},n={},i=t,s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,n){var i,o={},u=null,h=null;for(i in void 0!==n&&(u=""+n),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(h=e.ref),e)r.call(e,i)&&!l.hasOwnProperty(i)&&(o[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps)void 0===o[i]&&(o[i]=e[i]);return{$$typeof:s,type:t,key:u,ref:h,props:o,_owner:a.current}}n.Fragment=o,n.jsx=u,n.jsxs=u,e.exports=n;var h=e.exports;function c(t){if("undefined"==typeof Proxy)return t;const e=new Map;return new Proxy(((...e)=>t(...e)),{get:(n,i)=>"create"===i?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}function d(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const p=t=>Array.isArray(t);function m(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function g(t,e,n,i){if("function"==typeof e){const[s,o]=v(i);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,o]=v(i);e=e(void 0!==n?n:t.custom,s,o)}return e}function y(t,e,n){const i=t.getProps();return g(i,e,void 0!==n?n:i.custom,t)}const x=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],P=["initial",...x],T=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],w=new Set(T),S=t=>1e3*t,b=t=>t/1e3,A={type:"spring",stiffness:500,damping:25,restSpeed:10},V={type:"keyframes",duration:.8},E={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},C=(t,{keyframes:e})=>e.length>2?V:w.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:A:E;function M(t,e){return t?t[e]||t.default||t:void 0}const D=!1,R=t=>null!==t;function k(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(R),o=e&&"loop"!==n&&e%2==1?0:s.length-1;return o&&void 0!==i?i:s[o]}const L=t=>t;const j=["read","resolveKeyframes","update","preRender","render","postRender"];function F(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=j.reduce(((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(r)}const l={schedule:(t,s=!1,r=!1)=>{const a=r&&i?e:n;return s&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{r=t,i?s=!0:(i=!0,[e,n]=[n,e],n.clear(),e.forEach(a),i=!1,s&&(s=!1,l.process(t)))}};return l}(o),t)),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:c,postRender:d}=r,p=()=>{const o=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),h.process(s),c.process(s),d.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(p))};return{schedule:j.reduce(((e,o)=>{const a=r[o];return e[o]=(e,o=!1,r=!1)=>(n||(n=!0,i=!0,s.isProcessing||t(p)),a.schedule(e,o,r)),e}),{}),cancel:t=>{for(let e=0;e(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function $(t,e,n,i){if(t===e&&n===i)return L;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=N(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:N(s(t),e,i)}const W=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Y=t=>e=>1-t(1-e),K=$(.33,1.53,.69,.99),z=Y(K),X=W(z),H=t=>(t*=2)<1?.5*z(t):.5*(2-Math.pow(2,-10*(t-1))),G=t=>1-Math.sin(Math.acos(t)),_=Y(G),q=W(G),Z=t=>/^0[^.\s]+$/u.test(t);let J=L;const Q=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),tt=t=>e=>"string"==typeof e&&e.startsWith(t),et=tt("--"),nt=tt("var(--"),it=t=>!!nt(t)&&st.test(t.split("/*")[0].trim()),st=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ot=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rt(t,e,n=1){const[i,s]=function(t){const e=ot.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${null!=n?n:i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return Q(t)?parseFloat(t):t}return it(s)?rt(s,e,n+1):s}const at=(t,e,n)=>n>e?e:n"number"==typeof t,parse:parseFloat,transform:t=>t},ut={...lt,transform:t=>at(0,1,t)},ht={...lt,default:1},ct=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),dt=ct("deg"),pt=ct("%"),mt=ct("px"),ft=ct("vh"),vt=ct("vw"),gt={...pt,parse:t=>pt.parse(t)/100,transform:t=>pt.transform(100*t)},yt=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),xt=t=>t===lt||t===mt,Pt=(t,e)=>parseFloat(t.split(", ")[e]),Tt=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return Pt(s[1],e);{const e=i.match(/^matrix\((.+)\)$/u);return e?Pt(e[1],t):0}},wt=new Set(["x","y","z"]),St=T.filter((t=>!wt.has(t)));const bt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Tt(4,13),y:Tt(5,14)};bt.translateX=bt.x,bt.translateY=bt.y;const At=t=>e=>e.test(t),Vt=[lt,mt,pt,dt,vt,ft,{test:t=>"auto"===t,parse:t=>t}],Et=t=>Vt.find(At(t)),Ct=new Set;let Mt=!1,Dt=!1;function Rt(){if(Dt){const t=Array.from(Ct).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return St.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((([e,n])=>{var i;null===(i=t.getValue(e))||void 0===i||i.set(n)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}Dt=!1,Mt=!1,Ct.forEach((t=>t.complete())),Ct.clear()}function kt(){Ct.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(Dt=!0)}))}class Lt{constructor(t,e,n,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ct.add(this),Mt||(Mt=!0,B.read(kt),B.resolveKeyframes(Rt))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let s=0;sMath.round(1e5*t)/1e5,Ft=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Bt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ot=(t,e)=>n=>Boolean("string"==typeof n&&Bt.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),It=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[s,o,r,a]=i.match(Ft);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},Ut={...lt,transform:t=>Math.round((t=>at(0,255,t))(t))},Nt={test:Ot("rgb","red"),parse:It("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Ut.transform(t)+", "+Ut.transform(e)+", "+Ut.transform(n)+", "+jt(ut.transform(i))+")"};const $t={test:Ot("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:Nt.transform},Wt={test:Ot("hsl","hue"),parse:It("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+pt.transform(jt(e))+", "+pt.transform(jt(n))+", "+jt(ut.transform(i))+")"},Yt={test:t=>Nt.test(t)||$t.test(t)||Wt.test(t),parse:t=>Nt.test(t)?Nt.parse(t):Wt.test(t)?Wt.parse(t):$t.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?Nt.transform(t):Wt.transform(t)},Kt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const zt="number",Xt="color",Ht=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Gt(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const r=e.replace(Ht,(t=>(Yt.test(t)?(i.color.push(o),s.push(Xt),n.push(Yt.parse(t))):t.startsWith("var(")?(i.var.push(o),s.push("var"),n.push(t)):(i.number.push(o),s.push(zt),n.push(parseFloat(t))),++o,"${}"))).split("${}");return{values:n,split:r,indexes:i,types:s}}function _t(t){return Gt(t).values}function qt(t){const{split:e,types:n}=Gt(t),i=e.length;return t=>{let s="";for(let o=0;o"number"==typeof t?0:t;const Jt={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(Ft))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(Kt))||void 0===n?void 0:n.length)||0)>0},parse:_t,createTransformer:qt,getAnimatableNone:function(t){const e=_t(t);return qt(t)(e.map(Zt))}},Qt=new Set(["brightness","contrast","saturate","opacity"]);function te(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(Ft)||[];if(!i)return t;const s=n.replace(i,"");let o=Qt.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const ee=/\b([a-z-]*)\(.*?\)/gu,ne={...Jt,getAnimatableNone:t=>{const e=t.match(ee);return e?e.map(te).join(" "):t}},ie={borderWidth:mt,borderTopWidth:mt,borderRightWidth:mt,borderBottomWidth:mt,borderLeftWidth:mt,borderRadius:mt,radius:mt,borderTopLeftRadius:mt,borderTopRightRadius:mt,borderBottomRightRadius:mt,borderBottomLeftRadius:mt,width:mt,maxWidth:mt,height:mt,maxHeight:mt,top:mt,right:mt,bottom:mt,left:mt,padding:mt,paddingTop:mt,paddingRight:mt,paddingBottom:mt,paddingLeft:mt,margin:mt,marginTop:mt,marginRight:mt,marginBottom:mt,marginLeft:mt,backgroundPositionX:mt,backgroundPositionY:mt},se={rotate:dt,rotateX:dt,rotateY:dt,rotateZ:dt,scale:ht,scaleX:ht,scaleY:ht,scaleZ:ht,skew:dt,skewX:dt,skewY:dt,distance:mt,translateX:mt,translateY:mt,translateZ:mt,x:mt,y:mt,z:mt,perspective:mt,transformPerspective:mt,opacity:ut,originX:gt,originY:gt,originZ:mt},oe={...lt,transform:Math.round},re={...ie,...se,zIndex:oe,size:mt,fillOpacity:ut,strokeOpacity:ut,numOctaves:oe},ae={...re,color:Yt,backgroundColor:Yt,outlineColor:Yt,fill:Yt,stroke:Yt,borderColor:Yt,borderTopColor:Yt,borderRightColor:Yt,borderBottomColor:Yt,borderLeftColor:Yt,filter:ne,WebkitFilter:ne},le=t=>ae[t];function ue(t,e){let n=le(t);return n!==ne&&(n=Jt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const he=new Set(["auto","none","0"]);class ce extends Lt{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a{e.getValue(t).set(n)})),this.resolveNoneKeyframes()}}function de(t){return"function"==typeof t}let pe;function me(){pe=void 0}const fe={now:()=>(void 0===pe&&fe.set(I.isProcessing||D?I.timestamp:performance.now()),pe),set:t=>{pe=t,queueMicrotask(me)}},ve=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Jt.test(t)&&"0"!==t||t.startsWith("url(")));class ge{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...r}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=fe.now(),this.options={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:o,...r},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(kt(),Rt()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=fe.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:s,delay:o,onComplete:r,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],r=ve(s,e),a=ve(o,e);return!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n{this.resolveFinishedPromise=t}))}}const ye=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},xe=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o{const i=e*r,s=i*t,o=i-n,a=Ie(e,r),l=Math.exp(-s);return Fe-o/a*l},o=e=>{const i=e*r*t,o=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=Ie(Math.pow(e,2),r);return(-s(e)+Fe>0?-1:1)*((o-a)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let s=1;s=Ue?1/0:e}const $e=["duration","bounce"],We=["stiffness","damping","mass"];function Ye(t,e){return e.some((e=>void 0!==t[e]))}function Ke(t=Ce,e=Ee){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:h,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:Ae,stiffness:we,damping:Se,mass:be,isResolvedFromDuration:!1,...t};if(!Ye(t,We)&&Ye(t,$e))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,o=2*at(.05,1,1-t.bounce)*Math.sqrt(s);e={...e,mass:be,stiffness:s,damping:o}}else{const n=Be(t);e={...e,...n,mass:be},e.isResolvedFromDuration=!0}return e}({...n,velocity:-b(n.velocity||0)}),m=d||0,f=u/(2*Math.sqrt(l*h)),v=r-o,g=b(Math.sqrt(l/h)),y=Math.abs(v)<5;let x;if(i||(i=y?Me.granular:Me.default),s||(s=y?De.granular:De.default),f<1){const t=Ie(g,f);x=e=>{const n=Math.exp(-f*g*e);return r-n*((m+f*g*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}}else if(1===f)x=t=>r-Math.exp(-g*t)*(v+(m+g*v)*t);else{const t=g*Math.sqrt(f*f-1);x=e=>{const n=Math.exp(-f*g*e),i=Math.min(t*e,300);return r-n*((m+f*g*v)*Math.sinh(i)+t*v*Math.cosh(i))/t}}const P={calculatedDuration:p&&c||null,next:t=>{const e=x(t);if(p)a.done=t>=c;else{let n=0;f<1&&(n=0===t?S(m):Te(x,t,e));const o=Math.abs(n)<=i,l=Math.abs(r-e)<=s;a.done=o&&l}return a.value=a.done?r:e,a},toString:()=>{const t=Math.min(Ne(P),Ue),e=xe((e=>P.next(t*e).value),t,30);return t+"ms "+e}};return P}function ze({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:h}){const c=t[0],d={done:!1,value:c},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)-m*Math.exp(-t/i),y=t=>v+g(t),x=t=>{const e=g(t),n=y(t);d.done=Math.abs(e)<=u,d.value=d.done?v:n};let P,T;const w=t=>{var e;(e=d.value,void 0!==a&&el)&&(P=t,T=Ke({keyframes:[d.value,p(d.value)],velocity:Te(y,t,d.value),damping:s,stiffness:o,restDelta:u,restSpeed:h}))};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return T||void 0!==P||(e=!0,x(t),w(t)),void 0!==P&&t>=P?T.next(t-P):(!e&&x(t),d)}}}const Xe=$(.42,0,1,1),He=$(0,0,.58,1),Ge=$(.42,0,.58,1),_e=t=>Array.isArray(t)&&"number"==typeof t[0],qe={linear:L,easeIn:Xe,easeInOut:Ge,easeOut:He,circIn:G,circInOut:q,circOut:_,backIn:z,backInOut:X,backOut:K,anticipate:H},Ze=t=>{if(_e(t)){J(4===t.length);const[e,n,i,s]=t;return $(e,n,i,s)}return"string"==typeof t?(J(void 0!==qe[t]),qe[t]):t},Je=(t,e)=>n=>e(t(n)),Qe=(...t)=>t.reduce(Je),tn=(t,e,n)=>t+(e-t)*n;function en(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function nn(t,e){return n=>n>0?e:t}const sn=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},on=[$t,Nt,Wt];function rn(t){const e=(n=t,on.find((t=>t.test(n))));var n;if(!Boolean(e))return!1;let i=e.parse(t);return e===Wt&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=en(a,i,t+1/3),o=en(a,i,t),r=en(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}(i)),i}const an=(t,e)=>{const n=rn(t),i=rn(e);if(!n||!i)return nn(t,e);const s={...n};return t=>(s.red=sn(n.red,i.red,t),s.green=sn(n.green,i.green,t),s.blue=sn(n.blue,i.blue,t),s.alpha=tn(n.alpha,i.alpha,t),Nt.transform(s))},ln=new Set(["none","hidden"]);function un(t,e){return n=>tn(t,e,n)}function hn(t){return"number"==typeof t?un:"string"==typeof t?it(t)?nn:Yt.test(t)?an:pn:Array.isArray(t)?cn:"object"==typeof t?Yt.test(t)?an:dn:nn}function cn(t,e){const n=[...t],i=n.length,s=t.map(((t,n)=>hn(t)(t,e[n])));return t=>{for(let e=0;e{for(const e in i)n[e]=i[e](t);return n}}const pn=(t,e)=>{const n=Jt.createTransformer(e),i=Gt(t),s=Gt(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?ln.has(t)&&!s.values.length||ln.has(e)&&!i.values.length?function(t,e){return ln.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):Qe(cn(function(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let o=0;oe[0];if(2===o&&t[0]===t[1])return()=>e[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=function(t,e,n){const i=[],s=n||mn,o=t.length-1;for(let r=0;r{let n=0;if(a>1)for(;nl(at(t[0],t[o-1],e)):l}function vn(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=ye(0,e,i);t.push(tn(n,1,s))}}(e,t.length-1),e}function gn({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(Ze):Ze(i),o={done:!1,value:e[0]},r=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:vn(e),t),a=fn(r,e,{ease:Array.isArray(s)?s:(l=e,u=s,l.map((()=>u||Ge)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}const yn=t=>{const e=({timestamp:e})=>t(e);return{start:()=>B.update(e,!0),stop:()=>O(e),now:()=>I.isProcessing?I.timestamp:fe.now()}},xn={decay:ze,inertia:ze,tween:gn,keyframes:gn,spring:Ke},Pn=t=>t/100;class Tn extends ge{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:i,keyframes:s}=this.options,o=(null==i?void 0:i.KeyframeResolver)||Lt;this.resolver=new o(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,r=de(e)?e:xn[e]||gn;let a,l;r!==gn&&"number"!=typeof t[0]&&(a=Qe(Pn,mn(t[0],t[1])),t=[0,100]);const u=r({...this.options,keyframes:t});"mirror"===s&&(l=r({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=Ne(u));const{calculatedDuration:h}=u,c=h+i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(n+1)-i}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:r,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=n;if(null===this.startTime)return s.next(0);const{delay:c,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-c*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=s;if(d){const t=Math.min(this.currentTime,u)/h;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1);Boolean(e%2)&&("reverse"===p?(n=1-n,m&&(n-=m/h)):"mirror"===p&&(x=o)),y=at(0,1,n)*h}const P=g?{done:!1,value:a[0]}:x.next(y);r&&(P.value=r(P.value));let{done:T}=P;g||null===l||(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return w&&void 0!==i&&(P.value=k(a,this.options,i)),f&&f(P.value),w&&this.finish(),P}get duration(){const{resolved:t}=this;return t?b(t.calculatedDuration):0}get time(){return b(this.currentTime)}set time(t){t=S(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=b(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=yn,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const wn=new Set(["opacity","clipPath","filter","transform"]);function Sn(t){let e;return()=>(void 0===e&&(e=t()),e)}const bn={linearEasing:void 0};function An(t,e){const n=Sn(t);return()=>{var t;return null!==(t=bn[e])&&void 0!==t?t:n()}}const Vn=An((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),"linearEasing");function En(t){return Boolean("function"==typeof t&&Vn()||!t||"string"==typeof t&&(t in Mn||Vn())||_e(t)||Array.isArray(t)&&t.every(En))}const Cn=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Mn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cn([0,.65,.55,1]),circOut:Cn([.55,0,1,.45]),backIn:Cn([.31,.01,.66,-.59]),backOut:Cn([.33,1.53,.69,.99])};function Dn(t,e){return t?"function"==typeof t&&Vn()?xe(t,e):_e(t)?Cn(t):Array.isArray(t)?t.map((t=>Dn(t,e)||Mn.easeOut)):Mn[t]:void 0}function Rn(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const h=Dn(a,s);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}function kn(t,e){t.timeline=e,t.onfinish=null}const Ln=Sn((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));const jn={anticipate:H,backInOut:X,circInOut:q};class Fn extends ge{constructor(t){super(t);const{name:e,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new ce(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}initPlayback(t,e){var n;let{duration:i=300,times:s,ease:o,type:r,motionValue:a,name:l,startTime:u}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;var h;if("string"==typeof o&&Vn()&&o in jn&&(o=jn[o]),de((h=this.options).type)||"spring"===h.type||!En(h.ease)){const{onComplete:e,onUpdate:n,motionValue:a,element:l,...u}=this.options,h=function(t,e){const n=new Tn({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let o=0;for(;!i.done&&o<2e4;)i=n.sample(o),s.push(i.value),o+=10;return{times:void 0,keyframes:s,duration:o-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),i=h.duration,s=h.times,o=h.ease,r="keyframes"}const c=Rn(a.owner.current,l,t,{...this.options,duration:i,times:s,ease:o});return c.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(kn(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;a.set(k(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:r,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return b(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return b(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=S(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return L;const{animation:n}=e;kn(n,t)}else this.pendingTimeline=t;return L}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:i,type:s,ease:o,times:r}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new Tn({...u,keyframes:n,duration:i,type:s,ease:o,times:r,isGenerator:!0}),c=S(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;return Ln()&&n&&wn.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}}const Bn=Sn((()=>void 0!==window.ScrollTimeline));class On{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;nBn()&&n.attachTimeline?n.attachTimeline(t):e(n)));return()=>{n.forEach(((t,e)=>{t&&t(),this.animations[e].stop()}))}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;ee[t]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const In=(t,e,n,i={},s,o)=>r=>{const a=M(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u-=S(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length})(a)||(h={...h,...C(t,h)}),h.duration&&(h.duration=S(h.duration)),h.repeatDelay&&(h.repeatDelay=S(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if((!1===h.type||0===h.duration&&!h.repeatDelay)&&(h.duration=0,0===h.delay&&(c=!0)),c&&!o&&void 0!==e.get()){const t=k(h.keyframes,a);if(void 0!==t)return B.update((()=>{h.onUpdate(t),h.onComplete()})),new On([])}return!o&&Fn.supports(h)?new Fn(h):new Tn(h)};function Un(t,e){-1===t.indexOf(e)&&t.push(e)}function Nn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class $n{constructor(){this.subscriptions=[]}add(t){return Un(this.subscriptions,t),()=>Nn(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s{const n=fe.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=fe.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new $n);const n=this.events[t].add(e);return"change"===t?()=>{n(),B.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=fe.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Pe(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Yn(t,e){return new Wn(t,e)}function Kn(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Yn(n))}const zn=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Xn="data-"+zn("framerAppearId");function Hn(t){return t.props[Xn]}const Gn=t=>Boolean(t&&t.getVelocity);function _n(t,e){const n=t.getValue("willChange");if(i=n,Boolean(Gn(i)&&i.add))return n.add(e);var i}function qn({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function Zn(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;i&&(r=i);const u=[],h=s&&t.animationState&&t.animationState.getState()[s];for(const c in l){const e=t.getValue(c,null!==(o=t.latestValues[c])&&void 0!==o?o:null),i=l[c];if(void 0===i||h&&qn(h,c))continue;const s={delay:n,...M(r||{},c)};let a=!1;if(window.MotionHandoffAnimation){const e=Hn(t);if(e){const t=window.MotionHandoffAnimation(e,c,B);null!==t&&(s.startTime=t,a=!0)}}_n(t,c),e.start(In(c,e,i,t.shouldReduceMotion&&w.has(c)?{type:!1}:s,t,a));const d=e.animation;d&&u.push(d)}return a&&Promise.all(u).then((()=>{B.update((()=>{a&&function(t,e){const n=y(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const a in o)Kn(t,a,(r=o[a],p(r)?r[r.length-1]||0:r));var r}(t,a)}))})),u}function Jn(t,e,n={}){var i;const s=y(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>Promise.all(Zn(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,i=0,s=1,o){const r=[],a=(t.variantChildren.size-1)*i,l=1===s?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(Qn).forEach(((t,i)=>{t.notify("AnimationStart",e),r.push(Jn(t,e,{...o,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,s+i,r,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then((()=>e()))}return Promise.all([r(),a(n.delay)])}function Qn(t,e){return t.sortNodePosition(e)}const ti=P.length;function ei(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&ei(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;nPromise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>Jn(t,e,n)));i=Promise.all(s)}else if("string"==typeof e)i=Jn(t,e,n);else{const s="function"==typeof e?y(t,e,n.custom):e;i=Promise.all(Zn(t,s,n))}return i.then((()=>{t.notify("AnimationComplete",e)}))}(t,e,n))))}function oi(t){let e=si(t),n=li(),i=!0;const s=e=>(n,i)=>{var s;const o=y(t,i,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function o(o){const{props:r}=t,a=ei(t.parent)||{},l=[],u=new Set;let h={},c=1/0;for(let e=0;ec&&x,b=!1;const A=Array.isArray(y)?y:[y];let V=A.reduce(s(v),{});!1===P&&(V={});const{prevResolvedValues:E={}}=g,C={...E,...V},M=e=>{S=!0,u.has(e)&&(b=!0,u.delete(e)),g.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in C){const e=V[t],n=E[t];if(h.hasOwnProperty(t))continue;let i=!1;i=p(e)&&p(n)?!m(e,n):e!==n,i?null!=e?M(t):u.add(t):void 0!==e&&u.has(t)?M(t):g.protectedKeys[t]=!0}g.prevProp=y,g.prevResolvedValues=V,g.isActive&&(h={...h,...V}),i&&t.blockInitialAnimation&&(S=!1);S&&(!(T&&w)||b)&&l.push(...A.map((t=>({animation:t,options:{type:v}}))))}if(u.size){const e={};u.forEach((n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=null!=i?i:null})),l.push({animation:e})}let v=Boolean(l.length);return!i||!1!==r.initial&&r.initial!==r.animate||t.manuallyAnimateOnMount||(v=!1),i=!1,v?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const r=o(e);for(const t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=li(),i=!0}}}function ri(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!m(e,t)}function ai(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function li(){return{animate:ai(!0),whileInView:ai(),whileHover:ai(),whileTap:ai(),whileDrag:ai(),whileFocus:ai(),exit:ai()}}class ui{constructor(t){this.isMounted=!1,this.node=t}update(){}}let hi=0;const ci={animation:{Feature:class extends ui{constructor(t){super(t),t.animationState||(t.animationState=oi(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();d(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends ui{constructor(){super(...arguments),this.id=hi++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},di=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function pi(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function mi(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function fi(t,e,n,i){return mi(t,e,(t=>e=>di(e)&&t(e,pi(e)))(n),i)}const vi=(t,e)=>Math.abs(t-e);class gi{constructor(t,e,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Pi(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=vi(t.x,e.x),i=vi(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=I;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=yi(e,this.transformPagePoint),B.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Pi("pointercancel"===t.type?this.lastMoveEventInfo:yi(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!di(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.contextWindow=i||window;const o=yi(pi(t),this.transformPagePoint),{point:r}=o,{timestamp:a}=I;this.history=[{...r,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,Pi(o,this.history)),this.removeListeners=Qe(fi(this.contextWindow,"pointermove",this.handlePointerMove),fi(this.contextWindow,"pointerup",this.handlePointerUp),fi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),O(this.updatePoint)}}function yi(t,e){return e?{point:e(t.point)}:t}function xi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Pi({point:t},e){return{point:t,delta:xi(t,wi(e)),offset:xi(t,Ti(e)),velocity:Si(e,.1)}}function Ti(t){return t[0]}function wi(t){return t[t.length-1]}function Si(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=wi(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>S(e)));)n--;if(!i)return{x:0,y:0};const o=b(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function bi(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const Ai=bi("dragHorizontal"),Vi=bi("dragVertical");function Ei(t){let e=!1;if("y"===t)e=Vi();else if("x"===t)e=Ai();else{const t=Ai(),n=Vi();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function Ci(){const t=Ei(!0);return!t||(t(),!1)}function Mi(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function Di(t){return t.max-t.min}function Ri(t,e,n,i=.5){t.origin=i,t.originPoint=tn(e.min,e.max,t.origin),t.scale=Di(n)/Di(e),t.translate=tn(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function ki(t,e,n,i){Ri(t.x,e.x,n.x,i?i.originX:void 0),Ri(t.y,e.y,n.y,i?i.originY:void 0)}function Li(t,e,n){t.min=n.min+e.min,t.max=t.min+Di(e)}function ji(t,e,n){t.min=e.min-n.min,t.max=t.min+Di(e)}function Fi(t,e,n){ji(t.x,e.x,n.x),ji(t.y,e.y,n.y)}function Bi(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Oi(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min({x:{min:0,max:0},y:{min:0,max:0}});function Wi(t){return[t("x"),t("y")]}function Yi({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Ki(t){return void 0===t||1===t}function zi({scale:t,scaleX:e,scaleY:n}){return!Ki(t)||!Ki(e)||!Ki(n)}function Xi(t){return zi(t)||Hi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Hi(t){return Gi(t.x)||Gi(t.y)}function Gi(t){return t&&"0%"!==t}function _i(t,e,n){return n+e*(t-n)}function qi(t,e,n,i,s){return void 0!==s&&(t=_i(t,s,i)),_i(t,n,i)+e}function Zi(t,e=0,n=1,i,s){t.min=qi(t.min,e,n,i,s),t.max=qi(t.max,e,n,i,s)}function Ji(t,{x:e,y:n}){Zi(t.x,e.translate,e.scale,e.originPoint),Zi(t.y,n.translate,n.scale,n.originPoint)}const Qi=.999999999999,ts=1.0000000000001;function es(t,e){t.min=t.min+e,t.max=t.max+e}function ns(t,e,n,i,s=.5){Zi(t,e,n,tn(t.min,t.max,s),i)}function is(t,e){ns(t.x,e.x,e.scaleX,e.scale,e.originX),ns(t.y,e.y,e.scaleY,e.scale,e.originY)}function ss(t,e){return Yi(function(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}}(t.getBoundingClientRect(),e))}const os=({current:t})=>t?t.ownerDocument.defaultView:null,rs=new WeakMap;class as{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new gi(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(pi(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ei(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Wi((t=>{let e=this.getAxisMotionValue(t).get()||0;if(pt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=Di(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),s&&B.postRender((()=>s(t,e))),_n(this.visualElement,"transform");const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>Wi((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:os(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&B.postRender((()=>s(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!ls(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&tn&&(t=i?tn(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&Mi(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:Bi(t.x,n,s),y:Bi(t.y,e,i)}}(i.layoutBox,e),this.elastic=function(t=Ii){return!1===t?t=0:!0===t&&(t=Ii),{x:Ui(t,"left","right"),y:Ui(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Wi((t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!Mi(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=function(t,e,n){const i=ss(t,n),{scroll:s}=e;return s&&(es(i.x,s.offset.x),es(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:Oi(t.x,e.x),y:Oi(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=Yi(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=Wi((r=>{if(!ls(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const u=i?200:1e6,h=i?40:1e7,c={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,c)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return _n(this.visualElement,t),n.start(In(t,n,0,e,this.visualElement,!1))}stopAnimation(){Wi((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){Wi((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Wi((e=>{const{drag:n}=this.getProps();if(!ls(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-tn(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!Mi(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Wi((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=Di(t),s=Di(e);return s>i?n=ye(e.min,e.max-i,t.min):i>s&&(n=ye(t.min,t.max-s,e.min)),at(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Wi((e=>{if(!ls(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set(tn(s,o,i[e]))}))}addListeners(){if(!this.visualElement.current)return;rs.set(this.visualElement,this);const t=fi(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();Mi(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),B.read(e);const s=mi(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Wi((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Ii,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function ls(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const us=t=>(e,n)=>{t&&B.postRender((()=>t(e,n)))};const hs=t.createContext(null);const cs=t.createContext({}),ds=t.createContext({}),ps={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ms(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const fs={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!mt.test(t))return t;t=parseFloat(t)}return`${ms(t,e.target.x)}% ${ms(t,e.target.y)}%`}},vs={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=Jt.parse(t);if(s.length>5)return i;const o=Jt.createTransformer(t),r="number"!=typeof s[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const u=tn(a,l,.5);return"number"==typeof s[2+r]&&(s[2+r]/=u),"number"==typeof s[3+r]&&(s[3+r]/=u),o(s)}},gs={};const{schedule:ys,cancel:xs}=F(queueMicrotask,!1);class Ps extends t.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;var o;o=ws,Object.assign(gs,o),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(()=>{this.safeToRemove()})),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ps.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o?(o.isPresent=s,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||B.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ys.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ts(e){const[n,i]=function(){const e=t.useContext(hs);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=e,o=t.useId();t.useEffect((()=>s(o)),[]);const r=t.useCallback((()=>i&&i(o)),[o,i]);return!n&&i?[!1,r]:[!0]}(),s=t.useContext(cs);return h.jsx(Ps,{...e,layoutGroup:s,switchLayoutGroup:t.useContext(ds),isPresent:n,safeToRemove:i})}const ws={borderRadius:{...fs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fs,borderTopRightRadius:fs,borderBottomLeftRadius:fs,borderBottomRightRadius:fs,boxShadow:vs},Ss=["TopLeft","TopRight","BottomLeft","BottomRight"],bs=Ss.length,As=t=>"string"==typeof t?parseFloat(t):t,Vs=t=>"number"==typeof t||mt.test(t);function Es(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Cs=Ds(0,.5,_),Ms=Ds(.5,.95,L);function Ds(t,e,n){return i=>ie?1:n(ye(t,e,i))}function Rs(t,e){t.min=e.min,t.max=e.max}function ks(t,e){Rs(t.x,e.x),Rs(t.y,e.y)}function Ls(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function js(t,e,n,i,s){return t=_i(t-=e,1/n,i),void 0!==s&&(t=_i(t,1/s,i)),t}function Fs(t,e,[n,i,s],o,r){!function(t,e=0,n=1,i=.5,s,o=t,r=t){pt.test(e)&&(e=parseFloat(e),e=tn(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=tn(o.min,o.max,i);t===o&&(a-=e),t.min=js(t.min,e,n,a,s),t.max=js(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,o,r)}const Bs=["x","scaleX","originX"],Os=["y","scaleY","originY"];function Is(t,e,n,i){Fs(t.x,e,Bs,n?n.x:void 0,i?i.x:void 0),Fs(t.y,e,Os,n?n.y:void 0,i?i.y:void 0)}function Us(t){return 0===t.translate&&1===t.scale}function Ns(t){return Us(t.x)&&Us(t.y)}function $s(t,e){return t.min===e.min&&t.max===e.max}function Ws(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ys(t,e){return Ws(t.x,e.x)&&Ws(t.y,e.y)}function Ks(t){return Di(t.x)/Di(t.y)}function zs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Xs{constructor(){this.members=[]}add(t){Un(this.members,t),t.scheduleRender()}remove(t){if(Nn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Hs=(t,e)=>t.depth-e.depth;class Gs{constructor(){this.children=[],this.isDirty=!1}add(t){Un(this.children,t),this.isDirty=!0}remove(t){Nn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Hs),this.isDirty=!1,this.children.forEach(t)}}function _s(t){const e=Gn(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const qs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Zs="undefined"!=typeof window&&void 0!==window.MotionDebug,Js=["","X","Y","Z"],Qs={visibility:"hidden"};let to=0;function eo(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function no(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Hn(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",B,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&no(i)}function io({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=to++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Zs&&(qs.totalNodes=qs.resolvedTargetDeltas=qs.recalculatedProjection=0),this.nodes.forEach(ro),this.nodes.forEach(mo),this.nodes.forEach(fo),this.nodes.forEach(ao),Zs&&window.MotionDebug.record(qs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=fe.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(O(i),t(o-e))};return B.read(i,!0),()=>O(i)}(i,250),ps.hasAnimatedSinceResize&&(ps.hasAnimatedSinceResize=!1,this.nodes.forEach(po))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(s||o)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||r.getDefaultTransition()||To,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!Ys(this.targetLayout,i)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...M(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||po(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,O(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(vo),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&no(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;nQi&&(e.x=1),e.yQi&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(Ls(this.prevProjectionDelta.x,this.projectionDelta.x),Ls(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ki(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&zs(this.projectionDelta.x,this.prevProjectionDelta.x)&&zs(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Zs&&qs.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,h=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(Po));let c;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,v;yo(o.x,t.x,n),yo(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fi(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,v=n,xo(p.x,m.x,f.x,v),xo(p.y,m.y,f.y,v),c&&(l=this.relativeTarget,d=c,$s(l.x,d.x)&&$s(l.y,d.y))&&(this.isProjectionDirty=!1),c||(c={x:{min:0,max:0},y:{min:0,max:0}}),ks(c,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=tn(0,void 0!==n.opacity?n.opacity:1,Cs(i)),t.opacityExit=tn(void 0!==e.opacity?e.opacity:1,0,Ms(i))):o&&(t.opacity=tn(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let r=0;r{ps.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const i=Gn(t)?t:Yn(t);return i.start(In("",i,e,n)),i.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.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 t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&Ao(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Di(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Di(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}ks(e,n),is(e,s),ki(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Xs);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&eo("z",t,i,this.animationValues);for(let s=0;s{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(uo),this.root.sharedNodes.clear()}}}function so(t){t.updateLayout()}function oo(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?Wi((t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=Di(i);i.min=e[t].min,i.max=i.min+s})):Ao(s,n.layoutBox,e)&&Wi((i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=Di(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)}));const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};ki(r,e,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?ki(a,t.applyTransform(i,!0),n.measuredBox):ki(a,e,n.layoutBox);const l=!Ns(r);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r={x:{min:0,max:0},y:{min:0,max:0}};Fi(r,n.layoutBox,s.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Fi(a,e,o.layoutBox),Ys(r,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ro(t){Zs&&qs.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ao(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function lo(t){t.clearSnapshot()}function uo(t){t.clearMeasurements()}function ho(t){t.isLayoutDirty=!1}function co(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function po(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function mo(t){t.resolveTargetDelta()}function fo(t){t.calcProjection()}function vo(t){t.resetSkewAndRotation()}function go(t){t.removeLeadSnapshot()}function yo(t,e,n){t.translate=tn(e.translate,0,n),t.scale=tn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function xo(t,e,n,i){t.min=tn(e.min,n.min,i),t.max=tn(e.max,n.max,i)}function Po(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const To={duration:.45,ease:[.4,0,.1,1]},wo=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),So=wo("applewebkit/")&&!wo("chrome/")?Math.round:L;function bo(t){t.min=So(t.min),t.max=So(t.max)}function Ao(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=Ks(e),s=Ks(n),o=.2,!(Math.abs(i-s)<=o));var i,s,o}function Vo(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}const Eo=io({attachResizeListener:(t,e)=>mi(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Co={current:void 0},Mo=io({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Co.current){const t=new Eo({});t.mount(window),t.setOptions({layoutScroll:!0}),Co.current=t}return Co.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Do={pan:{Feature:class extends ui{constructor(){super(...arguments),this.removePointerDownListener=L}onPointerDown(t){this.session=new gi(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:os(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:us(t),onStart:us(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&B.postRender((()=>i(t,e)))}}}mount(){this.removePointerDownListener=fi(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ui{constructor(t){super(t),this.removeGroupControls=L,this.removeListeners=L,this.controls=new as(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||L}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Mo,MeasureLayout:Ts}};function Ro(t,e){const n=e?"pointerenter":"pointerleave",i=e?"onHoverStart":"onHoverEnd";return fi(t.current,n,((n,s)=>{if("touch"===n.pointerType||Ci())return;const o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e);const r=o[i];r&&B.postRender((()=>r(n,s)))}),{passive:!t.getProps()[i]})}const ko=(t,e)=>!!e&&(t===e||ko(t,e.parentElement));function Lo(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,pi(n))}const jo=new WeakMap,Fo=new WeakMap,Bo=t=>{const e=jo.get(t.target);e&&e(t)},Oo=t=>{t.forEach(Bo)};function Io(t,e,n){const i=function({root:t,...e}){const n=t||document;Fo.has(n)||Fo.set(n,{});const i=Fo.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(Oo,{root:t,...e})),i[s]}(e);return jo.set(t,n),i.observe(t),()=>{jo.delete(t),i.unobserve(t)}}const Uo={some:0,all:1};const No={inView:{Feature:class extends ui{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:Uo[i]};return Io(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ui{constructor(){super(...arguments),this.removeStartListeners=L,this.removeEndListeners=L,this.removeAccessibleListeners=L,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=fi(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:i,globalTapTarget:s}=this.node.getProps(),o=s||ko(this.node.current,t.target)?n:i;o&&B.update((()=>o(t,e)))}),{passive:!(n.onTap||n.onPointerUp)}),s=fi(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Qe(i,s),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=mi(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=mi(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&Lo("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&B.postRender((()=>n(t,e)))}))})),Lo("down",((t,e)=>{this.startPress(t,e)}))})),e=mi(this.node.current,"blur",(()=>{this.isPressing&&Lo("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=Qe(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&B.postRender((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ci()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&B.postRender((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=fi(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=mi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Qe(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends ui{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Qe(mi(this.node.current,"focus",(()=>this.onFocus())),mi(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends ui{mount(){this.unmount=Qe(Ro(this.node,!0),Ro(this.node,!1))}unmount(){}}}},$o={layout:{ProjectionNode:Mo,MeasureLayout:Ts}},Wo=t.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Yo=t.createContext({}),Ko="undefined"!=typeof window,zo=Ko?t.useLayoutEffect:t.useEffect,Xo=t.createContext({strict:!1});function Ho(e,n,i,s,o){var r,a;const{visualElement:l}=t.useContext(Yo),u=t.useContext(Xo),h=t.useContext(hs),c=t.useContext(Wo).reducedMotion,d=t.useRef();s=s||u.renderer,!d.current&&s&&(d.current=s(e,{visualState:n,parent:l,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:c}));const p=d.current,m=t.useContext(ds);!p||p.projection||!o||"html"!==p.type&&"svg"!==p.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Go(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&Mi(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}(d.current,i,o,m);const f=t.useRef(!1);t.useInsertionEffect((()=>{p&&f.current&&p.update(i,h)}));const v=i[Xn],g=t.useRef(Boolean(v)&&!(null===(r=window.MotionHandoffIsComplete)||void 0===r?void 0:r.call(window,v))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,v)));return zo((()=>{p&&(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),ys.render(p.render),g.current&&p.animationState&&p.animationState.animateChanges())})),t.useEffect((()=>{p&&(!g.current&&p.animationState&&p.animationState.animateChanges(),g.current&&(queueMicrotask((()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,v)})),g.current=!1))})),p}function Go(t){if(t)return!1!==t.options.allowProjection?t.projection:Go(t.parent)}function _o(e,n,i){return t.useCallback((t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),i&&("function"==typeof i?i(t):Mi(i)&&(i.current=t))}),[n])}function qo(t){return d(t.animate)||P.some((e=>f(t[e])))}function Zo(t){return Boolean(qo(t)||t.variants)}function Jo(e){const{initial:n,animate:i}=function(t,e){if(qo(t)){const{initial:e,animate:n}=t;return{initial:!1===e||f(e)?e:void 0,animate:f(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,t.useContext(Yo));return t.useMemo((()=>({initial:n,animate:i})),[Qo(n),Qo(i)])}function Qo(t){return Array.isArray(t)?t.join(" "):t}const tr={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},er={};for(const _r in tr)er[_r]={isEnabled:t=>tr[_r].some((e=>!!t[e]))};const nr=Symbol.for("motionComponentSymbol");function ir({preloadedFeatures:e,createVisualElement:n,useRender:i,useVisualState:s,Component:o}){e&&function(t){for(const e in t)er[e]={...er[e],...t[e]}}(e);const r=t.forwardRef((function(e,r){let a;const l={...t.useContext(Wo),...e,layoutId:sr(e)},{isStatic:u}=l,c=Jo(e),d=s(e,u);if(!u&&Ko){t.useContext(Xo).strict;const e=function(t){const{drag:e,layout:n}=er;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(l);a=e.MeasureLayout,c.visualElement=Ho(o,d,l,n,e.ProjectionNode)}return h.jsxs(Yo.Provider,{value:c,children:[a&&c.visualElement?h.jsx(a,{visualElement:c.visualElement,...l}):null,i(o,e,_o(d,c.visualElement,r),d,u,c.visualElement)]})}));return r[nr]=o,r}function sr({layoutId:e}){const n=t.useContext(cs).id;return n&&void 0!==e?n+"-"+e:e}const or=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function rr(t){return"string"==typeof t&&!t.includes("-")&&!!(or.indexOf(t)>-1||/[A-Z]/u.test(t))}function ar(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}const lr=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 ur(t,e,n,i){ar(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(lr.has(s)?s:zn(s),e.attrs[s])}function hr(t,{layout:e,layoutId:n}){return w.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!gs[t]||"opacity"===t)}function cr(t,e,n){var i;const{style:s}=t,o={};for(const r in s)(Gn(s[r])||e.style&&Gn(e.style[r])||hr(r,t)||void 0!==(null===(i=null==n?void 0:n.getValue(r))||void 0===i?void 0:i.liveStyle))&&(o[r]=s[r]);return o}function dr(t,e,n){const i=cr(t,e,n);for(const s in t)if(Gn(t[s])||Gn(e[s])){i[-1!==T.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]}return i}const pr=e=>(n,i)=>{const s=t.useContext(Yo),o=t.useContext(hs),r=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,s,o){const r={latestValues:mr(i,s,o,t),renderState:e()};return n&&(r.mount=t=>n(i,t,r)),r}(e,n,s,o);return i?r():function(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}(r)};function mr(t,e,n,i){const s={},o=i(t,{});for(const d in o)s[d]=_s(o[d]);let{initial:r,animate:a}=t;const l=qo(t),u=Zo(t);e&&u&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let h=!!n&&!1===n.initial;h=h||!1===r;const c=h?a:r;if(c&&"boolean"!=typeof c&&!d(c)){const e=Array.isArray(c)?c:[c];for(let n=0;n({style:{},transform:{},transformOrigin:{},vars:{}}),vr=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),gr=(t,e)=>e&&"number"==typeof t?e.transform(t):t,yr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xr=T.length;function Pr(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const t=e[l];if(w.has(l))r=!0;else if(et(l))s[l]=t;else{const e=gr(t,re[l]);l.startsWith("origin")?(a=!0,o[l]=e):i[l]=e}}if(e.transform||(r||n?i.transform=function(t,e,n){let i="",s=!0;for(let o=0;o"string"==typeof t&&"svg"===t.toLowerCase(),Vr={useVisualState:pr({scrapeMotionValuesFromProps:dr,createRenderState:vr,onMount:(t,e,{renderState:n,latestValues:i})=>{B.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),B.render((()=>{br(n,i,Ar(e.tagName),t.transformTemplate),ur(e,n)}))}})},Er={useVisualState:pr({scrapeMotionValuesFromProps:cr,createRenderState:fr})};function Cr(t,e,n){for(const i in e)Gn(e[i])||hr(i,n)||(t[i]=e[i])}function Mr(e,n){const i={};return Cr(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},n){return t.useMemo((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return Pr(t,n,e),Object.assign({},t.vars,t.style)}),[n])}(e,n)),i}function Dr(t,e){const n={},i=Mr(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const Rr=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function kr(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Rr.has(t)}let Lr=t=>!kr(t);try{(jr=require("@emotion/is-prop-valid").default)&&(Lr=t=>t.startsWith("on")?!kr(t):jr(t))}catch(Gr){}var jr;function Fr(e,n,i,s){const o=t.useMemo((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return br(t,n,Ar(s),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};Cr(t,e.style,e),o.style={...t,...o.style}}return o}function Br(e=!1){return(n,i,s,{latestValues:o},r)=>{const a=(rr(n)?Fr:Dr)(i,o,r,n),l=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||(Lr(s)||!0===n&&kr(s)||!e&&!kr(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(i,"string"==typeof n,e),u=n!==t.Fragment?{...l,...a,ref:s}:{},{children:h}=i,c=t.useMemo((()=>Gn(h)?h.get():h),[h]);return t.createElement(n,{...u,children:c})}}function Or(t,e){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){return ir({...rr(n)?Vr:Er,preloadedFeatures:t,useRender:Br(i),createVisualElement:e,Component:n})}}const Ir={current:null},Ur={current:!1};const Nr=new WeakMap,$r=[...Vt,Yt,Jt],Wr=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Yr{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Lt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=fe.now();this.renderScheduledAtthis.bindToMotionValue(e,t))),Ur.current||function(){if(Ur.current=!0,Ko)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ir.current=t.matches;t.addListener(e),e()}else Ir.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ir.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Nr.delete(this.current),this.projection&&this.projection.unmount(),O(this.notifyUpdate),O(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=w.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&B.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{i(),s(),o&&o(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in er){const e=er[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;ne.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Yn(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return null!=i&&("string"==typeof i&&(Q(i)||Z(i))?i=parseFloat(i):(s=i,!$r.find(At(s))&&Jt.test(e)&&(i=ue(t,e))),this.setBaseTarget(t,Gn(i)?i.get():i)),Gn(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"==typeof n||"object"==typeof n){const s=g(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||Gn(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new $n),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class Kr extends Yr{constructor(){super(...arguments),this.KeyframeResolver=ce}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}}class zr extends Kr{constructor(){super(...arguments),this.type="html",this.renderInstance=ar}readValueFromInstance(t,e){if(w.has(e)){const t=le(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),s=(et(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return ss(t,e)}build(t,e,n){Pr(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return cr(t,e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Gn(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}class Xr extends Kr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$i}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(w.has(e)){const t=le(e);return t&&t.default||0}return e=lr.has(e)?e:zn(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return dr(t,e,n)}build(t,e,n){br(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){ur(t,e,0,i)}mount(t){this.isSVGTag=Ar(t.tagName),super.mount(t)}}const Hr=c(Or({...ci,...No,...Do,...$o},((e,n)=>rr(e)?new Xr(n):new zr(n,{allowProjection:e!==t.Fragment}))));export{h as j,Hr as m}; +import{r as t}from"./vendor-kDvAVQqt.js";var e={exports:{}},n={},i=t,s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,n){var i,o={},u=null,h=null;for(i in void 0!==n&&(u=""+n),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(h=e.ref),e)r.call(e,i)&&!l.hasOwnProperty(i)&&(o[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps)void 0===o[i]&&(o[i]=e[i]);return{$$typeof:s,type:t,key:u,ref:h,props:o,_owner:a.current}}n.Fragment=o,n.jsx=u,n.jsxs=u,e.exports=n;var h=e.exports;function c(t){if("undefined"==typeof Proxy)return t;const e=new Map;return new Proxy(((...e)=>t(...e)),{get:(n,i)=>"create"===i?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}function d(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const p=t=>Array.isArray(t);function m(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function g(t,e,n,i){if("function"==typeof e){const[s,o]=v(i);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,o]=v(i);e=e(void 0!==n?n:t.custom,s,o)}return e}function y(t,e,n){const i=t.getProps();return g(i,e,void 0!==n?n:i.custom,t)}const x=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],P=["initial",...x],T=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],w=new Set(T),S=t=>1e3*t,b=t=>t/1e3,A={type:"spring",stiffness:500,damping:25,restSpeed:10},V={type:"keyframes",duration:.8},E={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},C=(t,{keyframes:e})=>e.length>2?V:w.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:A:E;function M(t,e){return t?t[e]||t.default||t:void 0}const D=!1,R=t=>null!==t;function k(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(R),o=e&&"loop"!==n&&e%2==1?0:s.length-1;return o&&void 0!==i?i:s[o]}const L=t=>t;const j=["read","resolveKeyframes","update","preRender","render","postRender"];function F(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=j.reduce(((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(r)}const l={schedule:(t,s=!1,r=!1)=>{const a=r&&i?e:n;return s&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{r=t,i?s=!0:(i=!0,[e,n]=[n,e],n.clear(),e.forEach(a),i=!1,s&&(s=!1,l.process(t)))}};return l}(o),t)),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:c,postRender:d}=r,p=()=>{const o=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),h.process(s),c.process(s),d.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(p))};return{schedule:j.reduce(((e,o)=>{const a=r[o];return e[o]=(e,o=!1,r=!1)=>(n||(n=!0,i=!0,s.isProcessing||t(p)),a.schedule(e,o,r)),e}),{}),cancel:t=>{for(let e=0;e(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function $(t,e,n,i){if(t===e&&n===i)return L;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=N(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:N(s(t),e,i)}const W=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Y=t=>e=>1-t(1-e),K=$(.33,1.53,.69,.99),z=Y(K),X=W(z),H=t=>(t*=2)<1?.5*z(t):.5*(2-Math.pow(2,-10*(t-1))),G=t=>1-Math.sin(Math.acos(t)),_=Y(G),q=W(G),Z=t=>/^0[^.\s]+$/u.test(t);let J=L;const Q=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),tt=t=>e=>"string"==typeof e&&e.startsWith(t),et=tt("--"),nt=tt("var(--"),it=t=>!!nt(t)&&st.test(t.split("/*")[0].trim()),st=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ot=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rt(t,e,n=1){const[i,s]=function(t){const e=ot.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${null!=n?n:i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return Q(t)?parseFloat(t):t}return it(s)?rt(s,e,n+1):s}const at=(t,e,n)=>n>e?e:n"number"==typeof t,parse:parseFloat,transform:t=>t},ut={...lt,transform:t=>at(0,1,t)},ht={...lt,default:1},ct=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),dt=ct("deg"),pt=ct("%"),mt=ct("px"),ft=ct("vh"),vt=ct("vw"),gt={...pt,parse:t=>pt.parse(t)/100,transform:t=>pt.transform(100*t)},yt=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),xt=t=>t===lt||t===mt,Pt=(t,e)=>parseFloat(t.split(", ")[e]),Tt=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return Pt(s[1],e);{const e=i.match(/^matrix\((.+)\)$/u);return e?Pt(e[1],t):0}},wt=new Set(["x","y","z"]),St=T.filter((t=>!wt.has(t)));const bt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Tt(4,13),y:Tt(5,14)};bt.translateX=bt.x,bt.translateY=bt.y;const At=t=>e=>e.test(t),Vt=[lt,mt,pt,dt,vt,ft,{test:t=>"auto"===t,parse:t=>t}],Et=t=>Vt.find(At(t)),Ct=new Set;let Mt=!1,Dt=!1;function Rt(){if(Dt){const t=Array.from(Ct).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return St.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((([e,n])=>{var i;null===(i=t.getValue(e))||void 0===i||i.set(n)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}Dt=!1,Mt=!1,Ct.forEach((t=>t.complete())),Ct.clear()}function kt(){Ct.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(Dt=!0)}))}class Lt{constructor(t,e,n,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ct.add(this),Mt||(Mt=!0,B.read(kt),B.resolveKeyframes(Rt))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let s=0;sMath.round(1e5*t)/1e5,Ft=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Bt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ot=(t,e)=>n=>Boolean("string"==typeof n&&Bt.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),It=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[s,o,r,a]=i.match(Ft);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},Ut={...lt,transform:t=>Math.round((t=>at(0,255,t))(t))},Nt={test:Ot("rgb","red"),parse:It("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Ut.transform(t)+", "+Ut.transform(e)+", "+Ut.transform(n)+", "+jt(ut.transform(i))+")"};const $t={test:Ot("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:Nt.transform},Wt={test:Ot("hsl","hue"),parse:It("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+pt.transform(jt(e))+", "+pt.transform(jt(n))+", "+jt(ut.transform(i))+")"},Yt={test:t=>Nt.test(t)||$t.test(t)||Wt.test(t),parse:t=>Nt.test(t)?Nt.parse(t):Wt.test(t)?Wt.parse(t):$t.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?Nt.transform(t):Wt.transform(t)},Kt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const zt="number",Xt="color",Ht=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Gt(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const r=e.replace(Ht,(t=>(Yt.test(t)?(i.color.push(o),s.push(Xt),n.push(Yt.parse(t))):t.startsWith("var(")?(i.var.push(o),s.push("var"),n.push(t)):(i.number.push(o),s.push(zt),n.push(parseFloat(t))),++o,"${}"))).split("${}");return{values:n,split:r,indexes:i,types:s}}function _t(t){return Gt(t).values}function qt(t){const{split:e,types:n}=Gt(t),i=e.length;return t=>{let s="";for(let o=0;o"number"==typeof t?0:t;const Jt={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(Ft))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(Kt))||void 0===n?void 0:n.length)||0)>0},parse:_t,createTransformer:qt,getAnimatableNone:function(t){const e=_t(t);return qt(t)(e.map(Zt))}},Qt=new Set(["brightness","contrast","saturate","opacity"]);function te(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(Ft)||[];if(!i)return t;const s=n.replace(i,"");let o=Qt.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const ee=/\b([a-z-]*)\(.*?\)/gu,ne={...Jt,getAnimatableNone:t=>{const e=t.match(ee);return e?e.map(te).join(" "):t}},ie={borderWidth:mt,borderTopWidth:mt,borderRightWidth:mt,borderBottomWidth:mt,borderLeftWidth:mt,borderRadius:mt,radius:mt,borderTopLeftRadius:mt,borderTopRightRadius:mt,borderBottomRightRadius:mt,borderBottomLeftRadius:mt,width:mt,maxWidth:mt,height:mt,maxHeight:mt,top:mt,right:mt,bottom:mt,left:mt,padding:mt,paddingTop:mt,paddingRight:mt,paddingBottom:mt,paddingLeft:mt,margin:mt,marginTop:mt,marginRight:mt,marginBottom:mt,marginLeft:mt,backgroundPositionX:mt,backgroundPositionY:mt},se={rotate:dt,rotateX:dt,rotateY:dt,rotateZ:dt,scale:ht,scaleX:ht,scaleY:ht,scaleZ:ht,skew:dt,skewX:dt,skewY:dt,distance:mt,translateX:mt,translateY:mt,translateZ:mt,x:mt,y:mt,z:mt,perspective:mt,transformPerspective:mt,opacity:ut,originX:gt,originY:gt,originZ:mt},oe={...lt,transform:Math.round},re={...ie,...se,zIndex:oe,size:mt,fillOpacity:ut,strokeOpacity:ut,numOctaves:oe},ae={...re,color:Yt,backgroundColor:Yt,outlineColor:Yt,fill:Yt,stroke:Yt,borderColor:Yt,borderTopColor:Yt,borderRightColor:Yt,borderBottomColor:Yt,borderLeftColor:Yt,filter:ne,WebkitFilter:ne},le=t=>ae[t];function ue(t,e){let n=le(t);return n!==ne&&(n=Jt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const he=new Set(["auto","none","0"]);class ce extends Lt{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a{e.getValue(t).set(n)})),this.resolveNoneKeyframes()}}function de(t){return"function"==typeof t}let pe;function me(){pe=void 0}const fe={now:()=>(void 0===pe&&fe.set(I.isProcessing||D?I.timestamp:performance.now()),pe),set:t=>{pe=t,queueMicrotask(me)}},ve=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Jt.test(t)&&"0"!==t||t.startsWith("url(")));class ge{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...r}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=fe.now(),this.options={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:o,...r},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(kt(),Rt()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=fe.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:s,delay:o,onComplete:r,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],r=ve(s,e),a=ve(o,e);return!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n{this.resolveFinishedPromise=t}))}}const ye=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},xe=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o{const i=e*r,s=i*t,o=i-n,a=Ie(e,r),l=Math.exp(-s);return Fe-o/a*l},o=e=>{const i=e*r*t,o=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=Ie(Math.pow(e,2),r);return(-s(e)+Fe>0?-1:1)*((o-a)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let s=1;s=Ue?1/0:e}const $e=["duration","bounce"],We=["stiffness","damping","mass"];function Ye(t,e){return e.some((e=>void 0!==t[e]))}function Ke(t=Ce,e=Ee){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:h,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:Ae,stiffness:we,damping:Se,mass:be,isResolvedFromDuration:!1,...t};if(!Ye(t,We)&&Ye(t,$e))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,o=2*at(.05,1,1-t.bounce)*Math.sqrt(s);e={...e,mass:be,stiffness:s,damping:o}}else{const n=Be(t);e={...e,...n,mass:be},e.isResolvedFromDuration=!0}return e}({...n,velocity:-b(n.velocity||0)}),m=d||0,f=u/(2*Math.sqrt(l*h)),v=r-o,g=b(Math.sqrt(l/h)),y=Math.abs(v)<5;let x;if(i||(i=y?Me.granular:Me.default),s||(s=y?De.granular:De.default),f<1){const t=Ie(g,f);x=e=>{const n=Math.exp(-f*g*e);return r-n*((m+f*g*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}}else if(1===f)x=t=>r-Math.exp(-g*t)*(v+(m+g*v)*t);else{const t=g*Math.sqrt(f*f-1);x=e=>{const n=Math.exp(-f*g*e),i=Math.min(t*e,300);return r-n*((m+f*g*v)*Math.sinh(i)+t*v*Math.cosh(i))/t}}const P={calculatedDuration:p&&c||null,next:t=>{const e=x(t);if(p)a.done=t>=c;else{let n=0;f<1&&(n=0===t?S(m):Te(x,t,e));const o=Math.abs(n)<=i,l=Math.abs(r-e)<=s;a.done=o&&l}return a.value=a.done?r:e,a},toString:()=>{const t=Math.min(Ne(P),Ue),e=xe((e=>P.next(t*e).value),t,30);return t+"ms "+e}};return P}function ze({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:h}){const c=t[0],d={done:!1,value:c},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)-m*Math.exp(-t/i),y=t=>v+g(t),x=t=>{const e=g(t),n=y(t);d.done=Math.abs(e)<=u,d.value=d.done?v:n};let P,T;const w=t=>{var e;(e=d.value,void 0!==a&&el)&&(P=t,T=Ke({keyframes:[d.value,p(d.value)],velocity:Te(y,t,d.value),damping:s,stiffness:o,restDelta:u,restSpeed:h}))};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return T||void 0!==P||(e=!0,x(t),w(t)),void 0!==P&&t>=P?T.next(t-P):(!e&&x(t),d)}}}const Xe=$(.42,0,1,1),He=$(0,0,.58,1),Ge=$(.42,0,.58,1),_e=t=>Array.isArray(t)&&"number"==typeof t[0],qe={linear:L,easeIn:Xe,easeInOut:Ge,easeOut:He,circIn:G,circInOut:q,circOut:_,backIn:z,backInOut:X,backOut:K,anticipate:H},Ze=t=>{if(_e(t)){J(4===t.length);const[e,n,i,s]=t;return $(e,n,i,s)}return"string"==typeof t?(J(void 0!==qe[t]),qe[t]):t},Je=(t,e)=>n=>e(t(n)),Qe=(...t)=>t.reduce(Je),tn=(t,e,n)=>t+(e-t)*n;function en(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function nn(t,e){return n=>n>0?e:t}const sn=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},on=[$t,Nt,Wt];function rn(t){const e=(n=t,on.find((t=>t.test(n))));var n;if(!Boolean(e))return!1;let i=e.parse(t);return e===Wt&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=en(a,i,t+1/3),o=en(a,i,t),r=en(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}(i)),i}const an=(t,e)=>{const n=rn(t),i=rn(e);if(!n||!i)return nn(t,e);const s={...n};return t=>(s.red=sn(n.red,i.red,t),s.green=sn(n.green,i.green,t),s.blue=sn(n.blue,i.blue,t),s.alpha=tn(n.alpha,i.alpha,t),Nt.transform(s))},ln=new Set(["none","hidden"]);function un(t,e){return n=>tn(t,e,n)}function hn(t){return"number"==typeof t?un:"string"==typeof t?it(t)?nn:Yt.test(t)?an:pn:Array.isArray(t)?cn:"object"==typeof t?Yt.test(t)?an:dn:nn}function cn(t,e){const n=[...t],i=n.length,s=t.map(((t,n)=>hn(t)(t,e[n])));return t=>{for(let e=0;e{for(const e in i)n[e]=i[e](t);return n}}const pn=(t,e)=>{const n=Jt.createTransformer(e),i=Gt(t),s=Gt(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?ln.has(t)&&!s.values.length||ln.has(e)&&!i.values.length?function(t,e){return ln.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):Qe(cn(function(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let o=0;oe[0];if(2===o&&t[0]===t[1])return()=>e[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=function(t,e,n){const i=[],s=n||mn,o=t.length-1;for(let r=0;r{let n=0;if(a>1)for(;nl(at(t[0],t[o-1],e)):l}function vn(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=ye(0,e,i);t.push(tn(n,1,s))}}(e,t.length-1),e}function gn({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(Ze):Ze(i),o={done:!1,value:e[0]},r=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:vn(e),t),a=fn(r,e,{ease:Array.isArray(s)?s:(l=e,u=s,l.map((()=>u||Ge)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}const yn=t=>{const e=({timestamp:e})=>t(e);return{start:()=>B.update(e,!0),stop:()=>O(e),now:()=>I.isProcessing?I.timestamp:fe.now()}},xn={decay:ze,inertia:ze,tween:gn,keyframes:gn,spring:Ke},Pn=t=>t/100;class Tn extends ge{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:i,keyframes:s}=this.options,o=(null==i?void 0:i.KeyframeResolver)||Lt;this.resolver=new o(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,r=de(e)?e:xn[e]||gn;let a,l;r!==gn&&"number"!=typeof t[0]&&(a=Qe(Pn,mn(t[0],t[1])),t=[0,100]);const u=r({...this.options,keyframes:t});"mirror"===s&&(l=r({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=Ne(u));const{calculatedDuration:h}=u,c=h+i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(n+1)-i}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:r,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=n;if(null===this.startTime)return s.next(0);const{delay:c,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-c*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=s;if(d){const t=Math.min(this.currentTime,u)/h;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1);Boolean(e%2)&&("reverse"===p?(n=1-n,m&&(n-=m/h)):"mirror"===p&&(x=o)),y=at(0,1,n)*h}const P=g?{done:!1,value:a[0]}:x.next(y);r&&(P.value=r(P.value));let{done:T}=P;g||null===l||(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return w&&void 0!==i&&(P.value=k(a,this.options,i)),f&&f(P.value),w&&this.finish(),P}get duration(){const{resolved:t}=this;return t?b(t.calculatedDuration):0}get time(){return b(this.currentTime)}set time(t){t=S(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=b(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=yn,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const wn=new Set(["opacity","clipPath","filter","transform"]);function Sn(t){let e;return()=>(void 0===e&&(e=t()),e)}const bn={linearEasing:void 0};function An(t,e){const n=Sn(t);return()=>{var t;return null!==(t=bn[e])&&void 0!==t?t:n()}}const Vn=An((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),"linearEasing");function En(t){return Boolean("function"==typeof t&&Vn()||!t||"string"==typeof t&&(t in Mn||Vn())||_e(t)||Array.isArray(t)&&t.every(En))}const Cn=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Mn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cn([0,.65,.55,1]),circOut:Cn([.55,0,1,.45]),backIn:Cn([.31,.01,.66,-.59]),backOut:Cn([.33,1.53,.69,.99])};function Dn(t,e){return t?"function"==typeof t&&Vn()?xe(t,e):_e(t)?Cn(t):Array.isArray(t)?t.map((t=>Dn(t,e)||Mn.easeOut)):Mn[t]:void 0}function Rn(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const h=Dn(a,s);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}function kn(t,e){t.timeline=e,t.onfinish=null}const Ln=Sn((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));const jn={anticipate:H,backInOut:X,circInOut:q};class Fn extends ge{constructor(t){super(t);const{name:e,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new ce(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}initPlayback(t,e){var n;let{duration:i=300,times:s,ease:o,type:r,motionValue:a,name:l,startTime:u}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;var h;if("string"==typeof o&&Vn()&&o in jn&&(o=jn[o]),de((h=this.options).type)||"spring"===h.type||!En(h.ease)){const{onComplete:e,onUpdate:n,motionValue:a,element:l,...u}=this.options,h=function(t,e){const n=new Tn({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let o=0;for(;!i.done&&o<2e4;)i=n.sample(o),s.push(i.value),o+=10;return{times:void 0,keyframes:s,duration:o-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),i=h.duration,s=h.times,o=h.ease,r="keyframes"}const c=Rn(a.owner.current,l,t,{...this.options,duration:i,times:s,ease:o});return c.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(kn(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;a.set(k(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:r,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return b(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return b(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=S(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return L;const{animation:n}=e;kn(n,t)}else this.pendingTimeline=t;return L}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:i,type:s,ease:o,times:r}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new Tn({...u,keyframes:n,duration:i,type:s,ease:o,times:r,isGenerator:!0}),c=S(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;return Ln()&&n&&wn.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}}const Bn=Sn((()=>void 0!==window.ScrollTimeline));class On{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;nBn()&&n.attachTimeline?n.attachTimeline(t):e(n)));return()=>{n.forEach(((t,e)=>{t&&t(),this.animations[e].stop()}))}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;ee[t]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const In=(t,e,n,i={},s,o)=>r=>{const a=M(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u-=S(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length})(a)||(h={...h,...C(t,h)}),h.duration&&(h.duration=S(h.duration)),h.repeatDelay&&(h.repeatDelay=S(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if((!1===h.type||0===h.duration&&!h.repeatDelay)&&(h.duration=0,0===h.delay&&(c=!0)),c&&!o&&void 0!==e.get()){const t=k(h.keyframes,a);if(void 0!==t)return B.update((()=>{h.onUpdate(t),h.onComplete()})),new On([])}return!o&&Fn.supports(h)?new Fn(h):new Tn(h)};function Un(t,e){-1===t.indexOf(e)&&t.push(e)}function Nn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class $n{constructor(){this.subscriptions=[]}add(t){return Un(this.subscriptions,t),()=>Nn(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s{const n=fe.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=fe.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new $n);const n=this.events[t].add(e);return"change"===t?()=>{n(),B.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=fe.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Pe(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Yn(t,e){return new Wn(t,e)}function Kn(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Yn(n))}const zn=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Xn="data-"+zn("framerAppearId");function Hn(t){return t.props[Xn]}const Gn=t=>Boolean(t&&t.getVelocity);function _n(t,e){const n=t.getValue("willChange");if(i=n,Boolean(Gn(i)&&i.add))return n.add(e);var i}function qn({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function Zn(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;i&&(r=i);const u=[],h=s&&t.animationState&&t.animationState.getState()[s];for(const c in l){const e=t.getValue(c,null!==(o=t.latestValues[c])&&void 0!==o?o:null),i=l[c];if(void 0===i||h&&qn(h,c))continue;const s={delay:n,...M(r||{},c)};let a=!1;if(window.MotionHandoffAnimation){const e=Hn(t);if(e){const t=window.MotionHandoffAnimation(e,c,B);null!==t&&(s.startTime=t,a=!0)}}_n(t,c),e.start(In(c,e,i,t.shouldReduceMotion&&w.has(c)?{type:!1}:s,t,a));const d=e.animation;d&&u.push(d)}return a&&Promise.all(u).then((()=>{B.update((()=>{a&&function(t,e){const n=y(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const a in o)Kn(t,a,(r=o[a],p(r)?r[r.length-1]||0:r));var r}(t,a)}))})),u}function Jn(t,e,n={}){var i;const s=y(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>Promise.all(Zn(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,i=0,s=1,o){const r=[],a=(t.variantChildren.size-1)*i,l=1===s?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(Qn).forEach(((t,i)=>{t.notify("AnimationStart",e),r.push(Jn(t,e,{...o,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,s+i,r,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then((()=>e()))}return Promise.all([r(),a(n.delay)])}function Qn(t,e){return t.sortNodePosition(e)}const ti=P.length;function ei(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&ei(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;nPromise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>Jn(t,e,n)));i=Promise.all(s)}else if("string"==typeof e)i=Jn(t,e,n);else{const s="function"==typeof e?y(t,e,n.custom):e;i=Promise.all(Zn(t,s,n))}return i.then((()=>{t.notify("AnimationComplete",e)}))}(t,e,n))))}function oi(t){let e=si(t),n=li(),i=!0;const s=e=>(n,i)=>{var s;const o=y(t,i,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function o(o){const{props:r}=t,a=ei(t.parent)||{},l=[],u=new Set;let h={},c=1/0;for(let e=0;ec&&x,b=!1;const A=Array.isArray(y)?y:[y];let V=A.reduce(s(v),{});!1===P&&(V={});const{prevResolvedValues:E={}}=g,C={...E,...V},M=e=>{S=!0,u.has(e)&&(b=!0,u.delete(e)),g.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in C){const e=V[t],n=E[t];if(h.hasOwnProperty(t))continue;let i=!1;i=p(e)&&p(n)?!m(e,n):e!==n,i?null!=e?M(t):u.add(t):void 0!==e&&u.has(t)?M(t):g.protectedKeys[t]=!0}g.prevProp=y,g.prevResolvedValues=V,g.isActive&&(h={...h,...V}),i&&t.blockInitialAnimation&&(S=!1);S&&(!(T&&w)||b)&&l.push(...A.map((t=>({animation:t,options:{type:v}}))))}if(u.size){const e={};u.forEach((n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=null!=i?i:null})),l.push({animation:e})}let v=Boolean(l.length);return!i||!1!==r.initial&&r.initial!==r.animate||t.manuallyAnimateOnMount||(v=!1),i=!1,v?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const r=o(e);for(const t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=li(),i=!0}}}function ri(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!m(e,t)}function ai(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function li(){return{animate:ai(!0),whileInView:ai(),whileHover:ai(),whileTap:ai(),whileDrag:ai(),whileFocus:ai(),exit:ai()}}class ui{constructor(t){this.isMounted=!1,this.node=t}update(){}}let hi=0;const ci={animation:{Feature:class extends ui{constructor(t){super(t),t.animationState||(t.animationState=oi(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();d(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends ui{constructor(){super(...arguments),this.id=hi++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},di=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function pi(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function mi(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function fi(t,e,n,i){return mi(t,e,(t=>e=>di(e)&&t(e,pi(e)))(n),i)}const vi=(t,e)=>Math.abs(t-e);class gi{constructor(t,e,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Pi(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=vi(t.x,e.x),i=vi(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=I;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=yi(e,this.transformPagePoint),B.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Pi("pointercancel"===t.type?this.lastMoveEventInfo:yi(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!di(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.contextWindow=i||window;const o=yi(pi(t),this.transformPagePoint),{point:r}=o,{timestamp:a}=I;this.history=[{...r,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,Pi(o,this.history)),this.removeListeners=Qe(fi(this.contextWindow,"pointermove",this.handlePointerMove),fi(this.contextWindow,"pointerup",this.handlePointerUp),fi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),O(this.updatePoint)}}function yi(t,e){return e?{point:e(t.point)}:t}function xi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Pi({point:t},e){return{point:t,delta:xi(t,wi(e)),offset:xi(t,Ti(e)),velocity:Si(e,.1)}}function Ti(t){return t[0]}function wi(t){return t[t.length-1]}function Si(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=wi(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>S(e)));)n--;if(!i)return{x:0,y:0};const o=b(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function bi(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const Ai=bi("dragHorizontal"),Vi=bi("dragVertical");function Ei(t){let e=!1;if("y"===t)e=Vi();else if("x"===t)e=Ai();else{const t=Ai(),n=Vi();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function Ci(){const t=Ei(!0);return!t||(t(),!1)}function Mi(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function Di(t){return t.max-t.min}function Ri(t,e,n,i=.5){t.origin=i,t.originPoint=tn(e.min,e.max,t.origin),t.scale=Di(n)/Di(e),t.translate=tn(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function ki(t,e,n,i){Ri(t.x,e.x,n.x,i?i.originX:void 0),Ri(t.y,e.y,n.y,i?i.originY:void 0)}function Li(t,e,n){t.min=n.min+e.min,t.max=t.min+Di(e)}function ji(t,e,n){t.min=e.min-n.min,t.max=t.min+Di(e)}function Fi(t,e,n){ji(t.x,e.x,n.x),ji(t.y,e.y,n.y)}function Bi(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Oi(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min({x:{min:0,max:0},y:{min:0,max:0}});function Wi(t){return[t("x"),t("y")]}function Yi({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Ki(t){return void 0===t||1===t}function zi({scale:t,scaleX:e,scaleY:n}){return!Ki(t)||!Ki(e)||!Ki(n)}function Xi(t){return zi(t)||Hi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Hi(t){return Gi(t.x)||Gi(t.y)}function Gi(t){return t&&"0%"!==t}function _i(t,e,n){return n+e*(t-n)}function qi(t,e,n,i,s){return void 0!==s&&(t=_i(t,s,i)),_i(t,n,i)+e}function Zi(t,e=0,n=1,i,s){t.min=qi(t.min,e,n,i,s),t.max=qi(t.max,e,n,i,s)}function Ji(t,{x:e,y:n}){Zi(t.x,e.translate,e.scale,e.originPoint),Zi(t.y,n.translate,n.scale,n.originPoint)}const Qi=.999999999999,ts=1.0000000000001;function es(t,e){t.min=t.min+e,t.max=t.max+e}function ns(t,e,n,i,s=.5){Zi(t,e,n,tn(t.min,t.max,s),i)}function is(t,e){ns(t.x,e.x,e.scaleX,e.scale,e.originX),ns(t.y,e.y,e.scaleY,e.scale,e.originY)}function ss(t,e){return Yi(function(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}}(t.getBoundingClientRect(),e))}const os=({current:t})=>t?t.ownerDocument.defaultView:null,rs=new WeakMap;class as{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new gi(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(pi(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ei(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Wi((t=>{let e=this.getAxisMotionValue(t).get()||0;if(pt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=Di(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),s&&B.postRender((()=>s(t,e))),_n(this.visualElement,"transform");const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>Wi((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:os(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&B.postRender((()=>s(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!ls(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&tn&&(t=i?tn(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&Mi(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:Bi(t.x,n,s),y:Bi(t.y,e,i)}}(i.layoutBox,e),this.elastic=function(t=Ii){return!1===t?t=0:!0===t&&(t=Ii),{x:Ui(t,"left","right"),y:Ui(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Wi((t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!Mi(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=function(t,e,n){const i=ss(t,n),{scroll:s}=e;return s&&(es(i.x,s.offset.x),es(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:Oi(t.x,e.x),y:Oi(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=Yi(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=Wi((r=>{if(!ls(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const u=i?200:1e6,h=i?40:1e7,c={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,c)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return _n(this.visualElement,t),n.start(In(t,n,0,e,this.visualElement,!1))}stopAnimation(){Wi((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){Wi((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Wi((e=>{const{drag:n}=this.getProps();if(!ls(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-tn(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!Mi(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Wi((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=Di(t),s=Di(e);return s>i?n=ye(e.min,e.max-i,t.min):i>s&&(n=ye(t.min,t.max-s,e.min)),at(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Wi((e=>{if(!ls(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set(tn(s,o,i[e]))}))}addListeners(){if(!this.visualElement.current)return;rs.set(this.visualElement,this);const t=fi(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();Mi(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),B.read(e);const s=mi(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Wi((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Ii,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function ls(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const us=t=>(e,n)=>{t&&B.postRender((()=>t(e,n)))};const hs=t.createContext(null);const cs=t.createContext({}),ds=t.createContext({}),ps={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ms(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const fs={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!mt.test(t))return t;t=parseFloat(t)}return`${ms(t,e.target.x)}% ${ms(t,e.target.y)}%`}},vs={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=Jt.parse(t);if(s.length>5)return i;const o=Jt.createTransformer(t),r="number"!=typeof s[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const u=tn(a,l,.5);return"number"==typeof s[2+r]&&(s[2+r]/=u),"number"==typeof s[3+r]&&(s[3+r]/=u),o(s)}},gs={};const{schedule:ys,cancel:xs}=F(queueMicrotask,!1);class Ps extends t.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;var o;o=ws,Object.assign(gs,o),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(()=>{this.safeToRemove()})),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ps.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o?(o.isPresent=s,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||B.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ys.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ts(e){const[n,i]=function(){const e=t.useContext(hs);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=e,o=t.useId();t.useEffect((()=>s(o)),[]);const r=t.useCallback((()=>i&&i(o)),[o,i]);return!n&&i?[!1,r]:[!0]}(),s=t.useContext(cs);return h.jsx(Ps,{...e,layoutGroup:s,switchLayoutGroup:t.useContext(ds),isPresent:n,safeToRemove:i})}const ws={borderRadius:{...fs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fs,borderTopRightRadius:fs,borderBottomLeftRadius:fs,borderBottomRightRadius:fs,boxShadow:vs},Ss=["TopLeft","TopRight","BottomLeft","BottomRight"],bs=Ss.length,As=t=>"string"==typeof t?parseFloat(t):t,Vs=t=>"number"==typeof t||mt.test(t);function Es(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Cs=Ds(0,.5,_),Ms=Ds(.5,.95,L);function Ds(t,e,n){return i=>ie?1:n(ye(t,e,i))}function Rs(t,e){t.min=e.min,t.max=e.max}function ks(t,e){Rs(t.x,e.x),Rs(t.y,e.y)}function Ls(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function js(t,e,n,i,s){return t=_i(t-=e,1/n,i),void 0!==s&&(t=_i(t,1/s,i)),t}function Fs(t,e,[n,i,s],o,r){!function(t,e=0,n=1,i=.5,s,o=t,r=t){pt.test(e)&&(e=parseFloat(e),e=tn(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=tn(o.min,o.max,i);t===o&&(a-=e),t.min=js(t.min,e,n,a,s),t.max=js(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,o,r)}const Bs=["x","scaleX","originX"],Os=["y","scaleY","originY"];function Is(t,e,n,i){Fs(t.x,e,Bs,n?n.x:void 0,i?i.x:void 0),Fs(t.y,e,Os,n?n.y:void 0,i?i.y:void 0)}function Us(t){return 0===t.translate&&1===t.scale}function Ns(t){return Us(t.x)&&Us(t.y)}function $s(t,e){return t.min===e.min&&t.max===e.max}function Ws(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ys(t,e){return Ws(t.x,e.x)&&Ws(t.y,e.y)}function Ks(t){return Di(t.x)/Di(t.y)}function zs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Xs{constructor(){this.members=[]}add(t){Un(this.members,t),t.scheduleRender()}remove(t){if(Nn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Hs=(t,e)=>t.depth-e.depth;class Gs{constructor(){this.children=[],this.isDirty=!1}add(t){Un(this.children,t),this.isDirty=!0}remove(t){Nn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Hs),this.isDirty=!1,this.children.forEach(t)}}function _s(t){const e=Gn(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const qs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Zs="undefined"!=typeof window&&void 0!==window.MotionDebug,Js=["","X","Y","Z"],Qs={visibility:"hidden"};let to=0;function eo(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function no(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Hn(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",B,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&no(i)}function io({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=to++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Zs&&(qs.totalNodes=qs.resolvedTargetDeltas=qs.recalculatedProjection=0),this.nodes.forEach(ro),this.nodes.forEach(mo),this.nodes.forEach(fo),this.nodes.forEach(ao),Zs&&window.MotionDebug.record(qs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=fe.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(O(i),t(o-e))};return B.read(i,!0),()=>O(i)}(i,250),ps.hasAnimatedSinceResize&&(ps.hasAnimatedSinceResize=!1,this.nodes.forEach(po))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(s||o)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||r.getDefaultTransition()||To,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!Ys(this.targetLayout,i)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...M(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||po(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,O(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(vo),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&no(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;nQi&&(e.x=1),e.yQi&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(Ls(this.prevProjectionDelta.x,this.projectionDelta.x),Ls(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ki(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&zs(this.projectionDelta.x,this.prevProjectionDelta.x)&&zs(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Zs&&qs.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,h=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(Po));let c;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,v;yo(o.x,t.x,n),yo(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fi(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,v=n,xo(p.x,m.x,f.x,v),xo(p.y,m.y,f.y,v),c&&(l=this.relativeTarget,d=c,$s(l.x,d.x)&&$s(l.y,d.y))&&(this.isProjectionDirty=!1),c||(c={x:{min:0,max:0},y:{min:0,max:0}}),ks(c,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=tn(0,void 0!==n.opacity?n.opacity:1,Cs(i)),t.opacityExit=tn(void 0!==e.opacity?e.opacity:1,0,Ms(i))):o&&(t.opacity=tn(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let r=0;r{ps.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const i=Gn(t)?t:Yn(t);return i.start(In("",i,e,n)),i.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.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 t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&Ao(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Di(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Di(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}ks(e,n),is(e,s),ki(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Xs);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&eo("z",t,i,this.animationValues);for(let s=0;s{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(uo),this.root.sharedNodes.clear()}}}function so(t){t.updateLayout()}function oo(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?Wi((t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=Di(i);i.min=e[t].min,i.max=i.min+s})):Ao(s,n.layoutBox,e)&&Wi((i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=Di(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)}));const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};ki(r,e,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?ki(a,t.applyTransform(i,!0),n.measuredBox):ki(a,e,n.layoutBox);const l=!Ns(r);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r={x:{min:0,max:0},y:{min:0,max:0}};Fi(r,n.layoutBox,s.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Fi(a,e,o.layoutBox),Ys(r,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ro(t){Zs&&qs.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ao(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function lo(t){t.clearSnapshot()}function uo(t){t.clearMeasurements()}function ho(t){t.isLayoutDirty=!1}function co(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function po(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function mo(t){t.resolveTargetDelta()}function fo(t){t.calcProjection()}function vo(t){t.resetSkewAndRotation()}function go(t){t.removeLeadSnapshot()}function yo(t,e,n){t.translate=tn(e.translate,0,n),t.scale=tn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function xo(t,e,n,i){t.min=tn(e.min,n.min,i),t.max=tn(e.max,n.max,i)}function Po(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const To={duration:.45,ease:[.4,0,.1,1]},wo=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),So=wo("applewebkit/")&&!wo("chrome/")?Math.round:L;function bo(t){t.min=So(t.min),t.max=So(t.max)}function Ao(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=Ks(e),s=Ks(n),o=.2,!(Math.abs(i-s)<=o));var i,s,o}function Vo(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}const Eo=io({attachResizeListener:(t,e)=>mi(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Co={current:void 0},Mo=io({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Co.current){const t=new Eo({});t.mount(window),t.setOptions({layoutScroll:!0}),Co.current=t}return Co.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Do={pan:{Feature:class extends ui{constructor(){super(...arguments),this.removePointerDownListener=L}onPointerDown(t){this.session=new gi(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:os(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:us(t),onStart:us(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&B.postRender((()=>i(t,e)))}}}mount(){this.removePointerDownListener=fi(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ui{constructor(t){super(t),this.removeGroupControls=L,this.removeListeners=L,this.controls=new as(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||L}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Mo,MeasureLayout:Ts}};function Ro(t,e){const n=e?"pointerenter":"pointerleave",i=e?"onHoverStart":"onHoverEnd";return fi(t.current,n,((n,s)=>{if("touch"===n.pointerType||Ci())return;const o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e);const r=o[i];r&&B.postRender((()=>r(n,s)))}),{passive:!t.getProps()[i]})}const ko=(t,e)=>!!e&&(t===e||ko(t,e.parentElement));function Lo(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,pi(n))}const jo=new WeakMap,Fo=new WeakMap,Bo=t=>{const e=jo.get(t.target);e&&e(t)},Oo=t=>{t.forEach(Bo)};function Io(t,e,n){const i=function({root:t,...e}){const n=t||document;Fo.has(n)||Fo.set(n,{});const i=Fo.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(Oo,{root:t,...e})),i[s]}(e);return jo.set(t,n),i.observe(t),()=>{jo.delete(t),i.unobserve(t)}}const Uo={some:0,all:1};const No={inView:{Feature:class extends ui{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:Uo[i]};return Io(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ui{constructor(){super(...arguments),this.removeStartListeners=L,this.removeEndListeners=L,this.removeAccessibleListeners=L,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=fi(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:i,globalTapTarget:s}=this.node.getProps(),o=s||ko(this.node.current,t.target)?n:i;o&&B.update((()=>o(t,e)))}),{passive:!(n.onTap||n.onPointerUp)}),s=fi(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Qe(i,s),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=mi(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=mi(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&Lo("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&B.postRender((()=>n(t,e)))}))})),Lo("down",((t,e)=>{this.startPress(t,e)}))})),e=mi(this.node.current,"blur",(()=>{this.isPressing&&Lo("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=Qe(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&B.postRender((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ci()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&B.postRender((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=fi(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=mi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Qe(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends ui{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Qe(mi(this.node.current,"focus",(()=>this.onFocus())),mi(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends ui{mount(){this.unmount=Qe(Ro(this.node,!0),Ro(this.node,!1))}unmount(){}}}},$o={layout:{ProjectionNode:Mo,MeasureLayout:Ts}},Wo=t.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Yo=t.createContext({}),Ko="undefined"!=typeof window,zo=Ko?t.useLayoutEffect:t.useEffect,Xo=t.createContext({strict:!1});function Ho(e,n,i,s,o){var r,a;const{visualElement:l}=t.useContext(Yo),u=t.useContext(Xo),h=t.useContext(hs),c=t.useContext(Wo).reducedMotion,d=t.useRef();s=s||u.renderer,!d.current&&s&&(d.current=s(e,{visualState:n,parent:l,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:c}));const p=d.current,m=t.useContext(ds);!p||p.projection||!o||"html"!==p.type&&"svg"!==p.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Go(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&Mi(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}(d.current,i,o,m);const f=t.useRef(!1);t.useInsertionEffect((()=>{p&&f.current&&p.update(i,h)}));const v=i[Xn],g=t.useRef(Boolean(v)&&!(null===(r=window.MotionHandoffIsComplete)||void 0===r?void 0:r.call(window,v))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,v)));return zo((()=>{p&&(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),ys.render(p.render),g.current&&p.animationState&&p.animationState.animateChanges())})),t.useEffect((()=>{p&&(!g.current&&p.animationState&&p.animationState.animateChanges(),g.current&&(queueMicrotask((()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,v)})),g.current=!1))})),p}function Go(t){if(t)return!1!==t.options.allowProjection?t.projection:Go(t.parent)}function _o(e,n,i){return t.useCallback((t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),i&&("function"==typeof i?i(t):Mi(i)&&(i.current=t))}),[n])}function qo(t){return d(t.animate)||P.some((e=>f(t[e])))}function Zo(t){return Boolean(qo(t)||t.variants)}function Jo(e){const{initial:n,animate:i}=function(t,e){if(qo(t)){const{initial:e,animate:n}=t;return{initial:!1===e||f(e)?e:void 0,animate:f(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,t.useContext(Yo));return t.useMemo((()=>({initial:n,animate:i})),[Qo(n),Qo(i)])}function Qo(t){return Array.isArray(t)?t.join(" "):t}const tr={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},er={};for(const _r in tr)er[_r]={isEnabled:t=>tr[_r].some((e=>!!t[e]))};const nr=Symbol.for("motionComponentSymbol");function ir({preloadedFeatures:e,createVisualElement:n,useRender:i,useVisualState:s,Component:o}){e&&function(t){for(const e in t)er[e]={...er[e],...t[e]}}(e);const r=t.forwardRef((function(e,r){let a;const l={...t.useContext(Wo),...e,layoutId:sr(e)},{isStatic:u}=l,c=Jo(e),d=s(e,u);if(!u&&Ko){t.useContext(Xo).strict;const e=function(t){const{drag:e,layout:n}=er;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(l);a=e.MeasureLayout,c.visualElement=Ho(o,d,l,n,e.ProjectionNode)}return h.jsxs(Yo.Provider,{value:c,children:[a&&c.visualElement?h.jsx(a,{visualElement:c.visualElement,...l}):null,i(o,e,_o(d,c.visualElement,r),d,u,c.visualElement)]})}));return r[nr]=o,r}function sr({layoutId:e}){const n=t.useContext(cs).id;return n&&void 0!==e?n+"-"+e:e}const or=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function rr(t){return"string"==typeof t&&!t.includes("-")&&!!(or.indexOf(t)>-1||/[A-Z]/u.test(t))}function ar(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}const lr=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 ur(t,e,n,i){ar(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(lr.has(s)?s:zn(s),e.attrs[s])}function hr(t,{layout:e,layoutId:n}){return w.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!gs[t]||"opacity"===t)}function cr(t,e,n){var i;const{style:s}=t,o={};for(const r in s)(Gn(s[r])||e.style&&Gn(e.style[r])||hr(r,t)||void 0!==(null===(i=null==n?void 0:n.getValue(r))||void 0===i?void 0:i.liveStyle))&&(o[r]=s[r]);return o}function dr(t,e,n){const i=cr(t,e,n);for(const s in t)if(Gn(t[s])||Gn(e[s])){i[-1!==T.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]}return i}const pr=e=>(n,i)=>{const s=t.useContext(Yo),o=t.useContext(hs),r=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,s,o){const r={latestValues:mr(i,s,o,t),renderState:e()};return n&&(r.mount=t=>n(i,t,r)),r}(e,n,s,o);return i?r():function(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}(r)};function mr(t,e,n,i){const s={},o=i(t,{});for(const d in o)s[d]=_s(o[d]);let{initial:r,animate:a}=t;const l=qo(t),u=Zo(t);e&&u&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let h=!!n&&!1===n.initial;h=h||!1===r;const c=h?a:r;if(c&&"boolean"!=typeof c&&!d(c)){const e=Array.isArray(c)?c:[c];for(let n=0;n({style:{},transform:{},transformOrigin:{},vars:{}}),vr=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),gr=(t,e)=>e&&"number"==typeof t?e.transform(t):t,yr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xr=T.length;function Pr(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const t=e[l];if(w.has(l))r=!0;else if(et(l))s[l]=t;else{const e=gr(t,re[l]);l.startsWith("origin")?(a=!0,o[l]=e):i[l]=e}}if(e.transform||(r||n?i.transform=function(t,e,n){let i="",s=!0;for(let o=0;o"string"==typeof t&&"svg"===t.toLowerCase(),Vr={useVisualState:pr({scrapeMotionValuesFromProps:dr,createRenderState:vr,onMount:(t,e,{renderState:n,latestValues:i})=>{B.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),B.render((()=>{br(n,i,Ar(e.tagName),t.transformTemplate),ur(e,n)}))}})},Er={useVisualState:pr({scrapeMotionValuesFromProps:cr,createRenderState:fr})};function Cr(t,e,n){for(const i in e)Gn(e[i])||hr(i,n)||(t[i]=e[i])}function Mr(e,n){const i={};return Cr(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},n){return t.useMemo((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return Pr(t,n,e),Object.assign({},t.vars,t.style)}),[n])}(e,n)),i}function Dr(t,e){const n={},i=Mr(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const Rr=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function kr(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Rr.has(t)}let Lr=t=>!kr(t);try{(jr=require("@emotion/is-prop-valid").default)&&(Lr=t=>t.startsWith("on")?!kr(t):jr(t))}catch(Gr){}var jr;function Fr(e,n,i,s){const o=t.useMemo((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return br(t,n,Ar(s),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};Cr(t,e.style,e),o.style={...t,...o.style}}return o}function Br(e=!1){return(n,i,s,{latestValues:o},r)=>{const a=(rr(n)?Fr:Dr)(i,o,r,n),l=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||(Lr(s)||!0===n&&kr(s)||!e&&!kr(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(i,"string"==typeof n,e),u=n!==t.Fragment?{...l,...a,ref:s}:{},{children:h}=i,c=t.useMemo((()=>Gn(h)?h.get():h),[h]);return t.createElement(n,{...u,children:c})}}function Or(t,e){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){return ir({...rr(n)?Vr:Er,preloadedFeatures:t,useRender:Br(i),createVisualElement:e,Component:n})}}const Ir={current:null},Ur={current:!1};const Nr=new WeakMap,$r=[...Vt,Yt,Jt],Wr=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Yr{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Lt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=fe.now();this.renderScheduledAtthis.bindToMotionValue(e,t))),Ur.current||function(){if(Ur.current=!0,Ko)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ir.current=t.matches;t.addListener(e),e()}else Ir.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ir.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Nr.delete(this.current),this.projection&&this.projection.unmount(),O(this.notifyUpdate),O(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=w.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&B.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{i(),s(),o&&o(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in er){const e=er[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;ne.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Yn(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return null!=i&&("string"==typeof i&&(Q(i)||Z(i))?i=parseFloat(i):(s=i,!$r.find(At(s))&&Jt.test(e)&&(i=ue(t,e))),this.setBaseTarget(t,Gn(i)?i.get():i)),Gn(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"==typeof n||"object"==typeof n){const s=g(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||Gn(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new $n),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class Kr extends Yr{constructor(){super(...arguments),this.KeyframeResolver=ce}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}}class zr extends Kr{constructor(){super(...arguments),this.type="html",this.renderInstance=ar}readValueFromInstance(t,e){if(w.has(e)){const t=le(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),s=(et(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return ss(t,e)}build(t,e,n){Pr(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return cr(t,e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Gn(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}class Xr extends Kr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$i}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(w.has(e)){const t=le(e);return t&&t.default||0}return e=lr.has(e)?e:zn(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return dr(t,e,n)}build(t,e,n){br(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){ur(t,e,0,i)}mount(t){this.isSVGTag=Ar(t.tagName),super.mount(t)}}const Hr=c(Or({...ci,...No,...Do,...$o},((e,n)=>rr(e)?new Xr(n):new zr(n,{allowProjection:e!==t.Fragment}))));export{h as j,Hr as m}; diff --git a/assets/index-BdfmPiAn.js b/assets/index-BdfmPiAn.js new file mode 100644 index 0000000..68e4b60 --- /dev/null +++ b/assets/index-BdfmPiAn.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-Bz0xtnBV.js","assets/animation-CyPhY3sF.js","assets/vendor-kDvAVQqt.js","assets/Manifesto-CBmvqAB7.js"])))=>i.map(i=>d[i]); +import{j as e,m as t}from"./animation-CyPhY3sF.js";import{a as s,r,R as i,B as n,b as a,c as o}from"./vendor-kDvAVQqt.js";import{G as l,L as h,A as u,B as d,V as c,a as m,I as f,M as p,D as g,b as v,O as w,F as x,S as M,U as b,c as T,W as y,H as C,N as S,C as P,d as _,e as D,f as E,P as R,g as B,h as F,i as L,j as z,k as U}from"./three-CHXrHHRv.js";var A;!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const s of e)if("childList"===s.type)for(const e of s.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var j=s;A=j.createRoot,j.hydrateRoot;const I={},k=function(e,t,s){let r=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const e=document.querySelector("meta[property=csp-nonce]"),s=(null==e?void 0:e.nonce)||(null==e?void 0:e.getAttribute("nonce"));r=Promise.allSettled(t.map((e=>{if((e=function(e){return"/"+e}(e))in I)return;I[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${r}`))return;const i=document.createElement("link");return i.rel=t?"stylesheet":"modulepreload",t||(i.as="script"),i.crossOrigin="",i.href=e,s&&i.setAttribute("nonce",s),document.head.appendChild(i),t?new Promise(((t,s)=>{i.addEventListener("load",t),i.addEventListener("error",(()=>s(new Error(`Unable to preload CSS for ${e}`))))})):void 0})))}function i(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then((t=>{for(const e of t||[])"rejected"===e.status&&i(e.reason);return e().catch(i)}))},H=()=>e.jsx(t.div,{className:"loading-container",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:e.jsxs("div",{className:"loading-content",children:[e.jsx(t.div,{className:"loading-logo",animate:{scale:[1,1.2,1],opacity:[.5,1,.5]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:e.jsx("svg",{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",children:e.jsx("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"2"})})}),e.jsx(t.div,{className:"loading-dots",initial:"hidden",animate:"visible",children:[0,1,2].map(((s,r)=>e.jsx(t.span,{className:"dot",animate:{y:["0%","-50%","0%"],opacity:[.5,1,.5]},transition:{duration:1,repeat:1/0,delay:.2*r,ease:"easeInOut"}},r)))})]})}),O=Math.sqrt(5),Q=(O-1)/4,V=(5-O)/20,N=e=>0|Math.floor(e),W=new Float64Array([0,1,1,1,0,1,1,-1,0,1,-1,1,0,1,-1,-1,0,-1,1,1,0,-1,1,-1,0,-1,-1,1,0,-1,-1,-1,1,0,1,1,1,0,1,-1,1,0,-1,1,1,0,-1,-1,-1,0,1,1,-1,0,1,-1,-1,0,-1,1,-1,0,-1,-1,1,1,0,1,1,1,0,-1,1,-1,0,1,1,-1,0,-1,-1,1,0,1,-1,1,0,-1,-1,-1,0,1,-1,-1,0,-1,1,1,1,0,1,1,-1,0,1,-1,1,0,1,-1,-1,0,-1,1,1,0,-1,1,-1,0,-1,-1,1,0,-1,-1,-1,0]);function K(e=Math.random){const t=function(e){const t=512,s=new Uint8Array(t);for(let r=0;rW[e%32*4])),r=new Float64Array(t).map((e=>W[e%32*4+1])),i=new Float64Array(t).map((e=>W[e%32*4+2])),n=new Float64Array(t).map((e=>W[e%32*4+3]));return function(e,a,o,l){let h,u,d,c,m;const f=(e+a+o+l)*Q,p=N(e+f),g=N(a+f),v=N(o+f),w=N(l+f),x=(p+g+v+w)*V,M=e-(p-x),b=a-(g-x),T=o-(v-x),y=l-(w-x);let C=0,S=0,P=0,_=0;M>b?C++:S++,M>T?C++:P++,M>y?C++:_++,b>T?S++:P++,b>y?S++:_++,T>y?P++:_++;const D=C>=3?1:0,E=S>=3?1:0,R=P>=3?1:0,B=_>=3?1:0,F=C>=2?1:0,L=S>=2?1:0,z=P>=2?1:0,U=_>=2?1:0,A=C>=1?1:0,j=S>=1?1:0,I=P>=1?1:0,k=_>=1?1:0,H=M-D+V,O=b-E+V,W=T-R+V,K=y-B+V,q=M-F+2*V,Y=b-L+2*V,G=T-z+2*V,X=y-U+2*V,$=M-A+3*V,Z=b-j+3*V,J=T-I+3*V,ee=y-k+3*V,te=M-1+4*V,se=b-1+4*V,re=T-1+4*V,ie=y-1+4*V,ne=255&p,ae=255&g,oe=255&v,le=255&w;let he=.6-M*M-b*b-T*T-y*y;if(he<0)h=0;else{const e=ne+t[ae+t[oe+t[le]]];he*=he,h=he*he*(s[e]*M+r[e]*b+i[e]*T+n[e]*y)}let ue=.6-H*H-O*O-W*W-K*K;if(ue<0)u=0;else{const e=ne+D+t[ae+E+t[oe+R+t[le+B]]];ue*=ue,u=ue*ue*(s[e]*H+r[e]*O+i[e]*W+n[e]*K)}let de=.6-q*q-Y*Y-G*G-X*X;if(de<0)d=0;else{const e=ne+F+t[ae+L+t[oe+z+t[le+U]]];de*=de,d=de*de*(s[e]*q+r[e]*Y+i[e]*G+n[e]*X)}let ce=.6-$*$-Z*Z-J*J-ee*ee;if(ce<0)c=0;else{const e=ne+A+t[ae+j+t[oe+I+t[le+k]]];ce*=ce,c=ce*ce*(s[e]*$+r[e]*Z+i[e]*J+n[e]*ee)}let me=.6-te*te-se*se-re*re-ie*ie;if(me<0)m=0;else{const e=ne+1+t[ae+1+t[oe+1+t[le+1]]];me*=me,m=me*me*(s[e]*te+r[e]*se+i[e]*re+n[e]*ie)}return 27*(h+u+d+c+m)}}class q{constructor(){this.noise4D=K(),this.group=new l,this.lines=[],this.particleCount=150,this.segmentCount=100,this.material=new h({color:8035999,transparent:!0,opacity:.3,blending:u}),this.init()}createFlowLine(){const e=[],t=new d,s=new c(100*(Math.random()-.5),100*(Math.random()-.5),100*(Math.random()-.5));e.push(s.clone());for(let r=1;re.clone()))}}init(){for(let e=0;e{const r=t.points.map(((t,r)=>{const i=this.noise4D(.02*t.x,.02*t.y,.02*t.z,e+.1*s);return new c(t.x+.1*Math.cos(i*Math.PI*2),t.y+.1*Math.sin(i*Math.PI*2),t.z+.05*(Math.cos(i*Math.PI)+Math.sin(i*Math.PI)))}));t.line.geometry.setFromPoints(r),t.line.geometry.computeBoundingSphere()})),this.group.rotation.x+=1e-4,this.group.rotation.y+=1e-4}}class Y{constructor(){this.noise4D=K(),this.spheres=[],this.materials=[],this.baseGeometry=new f(1,3),this.createMaterials(),this.init()}createMaterials(){[5270655,8035999,4217967].forEach((e=>{this.materials.push(new p({color:e,transparent:!0,opacity:.2,shininess:100,specular:8035999,side:g,wireframe:Math.random()>.7}))}))}init(){for(let e=0;e<20;e++){const e=new v(this.baseGeometry,this.materials[Math.floor(Math.random()*this.materials.length)]),t=30+30*Math.random(),s=Math.random()*Math.PI*2,r=Math.random()*Math.PI;e.position.set(t*Math.sin(r)*Math.cos(s),t*Math.sin(r)*Math.sin(s),t*Math.cos(r)),e.scale.setScalar(2*Math.random()+.5),e.userData={originalPosition:e.position.clone(),rotationSpeed:.002*(Math.random()-.5),pulseSpeed:.002*Math.random()+.001,pulseOffset:Math.random()*Math.PI*2},this.spheres.push(e)}}update(e){this.spheres.forEach(((t,s)=>{const r=this.noise4D(.02*t.position.x,.02*t.position.y,.02*t.position.z,e),i=t.userData.originalPosition;t.position.x=i.x+2*Math.cos(e+s)*r,t.position.y=i.y+2*Math.sin(e+s)*r,t.position.z=i.z+2*Math.cos(.5*e+s)*r,t.rotation.x+=t.userData.rotationSpeed,t.rotation.y+=1.2*t.userData.rotationSpeed;const n=.1*Math.sin(e*t.userData.pulseSpeed+t.userData.pulseOffset)+1,a=t.userData.originalScale||1;t.scale.setScalar(a*n),t.material.transparent&&(t.material.opacity=.2+.1*Math.sin(2*e+s))}))}dispose(){this.baseGeometry.dispose(),this.materials.forEach((e=>e.dispose()))}}const G={name:"CopyShader",uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform float opacity;\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 texel = texture2D( tDiffuse, vUv );\n\t\t\tgl_FragColor = opacity * texel;\n\n\n\t\t}"};class X{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){}dispose(){}}const $=new w(-1,1,1,-1,0,1);const Z=new class extends d{constructor(){super(),this.setAttribute("position",new x([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute("uv",new x([0,2,0,0,2,0],2))}};class J{constructor(e){this._mesh=new v(Z,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,$)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}}class ee extends X{constructor(e,t){super(),this.textureID=void 0!==t?t:"tDiffuse",e instanceof M?(this.uniforms=e.uniforms,this.material=e):e&&(this.uniforms=b.clone(e.uniforms),this.material=new M({name:void 0!==e.name?e.name:"unspecified",defines:Object.assign({},e.defines),uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader})),this.fsQuad=new J(this.material)}render(e,t,s){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=s.texture),this.fsQuad.material=this.material,this.renderToScreen?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this.fsQuad.render(e))}dispose(){this.material.dispose(),this.fsQuad.dispose()}}class te extends X{constructor(e,t){super(),this.scene=e,this.camera=t,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(e,t,s){const r=e.getContext(),i=e.state;let n,a;i.buffers.color.setMask(!1),i.buffers.depth.setMask(!1),i.buffers.color.setLocked(!0),i.buffers.depth.setLocked(!0),this.inverse?(n=0,a=1):(n=1,a=0),i.buffers.stencil.setTest(!0),i.buffers.stencil.setOp(r.REPLACE,r.REPLACE,r.REPLACE),i.buffers.stencil.setFunc(r.ALWAYS,n,4294967295),i.buffers.stencil.setClear(a),i.buffers.stencil.setLocked(!0),e.setRenderTarget(s),this.clear&&e.clear(),e.render(this.scene,this.camera),e.setRenderTarget(t),this.clear&&e.clear(),e.render(this.scene,this.camera),i.buffers.color.setLocked(!1),i.buffers.depth.setLocked(!1),i.buffers.color.setMask(!0),i.buffers.depth.setMask(!0),i.buffers.stencil.setLocked(!1),i.buffers.stencil.setFunc(r.EQUAL,1,4294967295),i.buffers.stencil.setOp(r.KEEP,r.KEEP,r.KEEP),i.buffers.stencil.setLocked(!0)}}class se extends X{constructor(){super(),this.needsSwap=!1}render(e){e.state.buffers.stencil.setLocked(!1),e.state.buffers.stencil.setTest(!1)}}class re{constructor(e,t){if(this.renderer=e,this._pixelRatio=e.getPixelRatio(),void 0===t){const s=e.getSize(new T);this._width=s.width,this._height=s.height,(t=new y(this._width*this._pixelRatio,this._height*this._pixelRatio,{type:C})).texture.name="EffectComposer.rt1"}else this._width=t.width,this._height=t.height;this.renderTarget1=t,this.renderTarget2=t.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],this.copyPass=new ee(G),this.copyPass.material.blending=S,this.clock=new P}swapBuffers(){const e=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=e}addPass(e){this.passes.push(e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(e,t){this.passes.splice(t,0,e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(e){const t=this.passes.indexOf(e);-1!==t&&this.passes.splice(t,1)}isLastEnabledPass(e){for(let t=e+1;t\n\t\t\t\tvarying vec2 vUv;\n\t\t\t\tuniform sampler2D colorTexture;\n\t\t\t\tuniform vec2 invSize;\n\t\t\t\tuniform vec2 direction;\n\t\t\t\tuniform float gaussianCoefficients[KERNEL_RADIUS];\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tfloat weightSum = gaussianCoefficients[0];\n\t\t\t\t\tvec3 diffuseSum = texture2D( colorTexture, vUv ).rgb * weightSum;\n\t\t\t\t\tfor( int i = 1; i < KERNEL_RADIUS; i ++ ) {\n\t\t\t\t\t\tfloat x = float(i);\n\t\t\t\t\t\tfloat w = gaussianCoefficients[i];\n\t\t\t\t\t\tvec2 uvOffset = direction * invSize * x;\n\t\t\t\t\t\tvec3 sample1 = texture2D( colorTexture, vUv + uvOffset ).rgb;\n\t\t\t\t\t\tvec3 sample2 = texture2D( colorTexture, vUv - uvOffset ).rgb;\n\t\t\t\t\t\tdiffuseSum += (sample1 + sample2) * w;\n\t\t\t\t\t\tweightSum += 2.0 * w;\n\t\t\t\t\t}\n\t\t\t\t\tgl_FragColor = vec4(diffuseSum/weightSum, 1.0);\n\t\t\t\t}"})}getCompositeMaterial(e){return new M({defines:{NUM_MIPS:e},uniforms:{blurTexture1:{value:null},blurTexture2:{value:null},blurTexture3:{value:null},blurTexture4:{value:null},blurTexture5:{value:null},bloomStrength:{value:1},bloomFactors:{value:null},bloomTintColors:{value:null},bloomRadius:{value:0}},vertexShader:"varying vec2 vUv;\n\t\t\t\tvoid main() {\n\t\t\t\t\tvUv = uv;\n\t\t\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t\t\t\t}",fragmentShader:"varying vec2 vUv;\n\t\t\t\tuniform sampler2D blurTexture1;\n\t\t\t\tuniform sampler2D blurTexture2;\n\t\t\t\tuniform sampler2D blurTexture3;\n\t\t\t\tuniform sampler2D blurTexture4;\n\t\t\t\tuniform sampler2D blurTexture5;\n\t\t\t\tuniform float bloomStrength;\n\t\t\t\tuniform float bloomRadius;\n\t\t\t\tuniform float bloomFactors[NUM_MIPS];\n\t\t\t\tuniform vec3 bloomTintColors[NUM_MIPS];\n\n\t\t\t\tfloat lerpBloomFactor(const in float factor) {\n\t\t\t\t\tfloat mirrorFactor = 1.2 - factor;\n\t\t\t\t\treturn mix(factor, mirrorFactor, bloomRadius);\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tgl_FragColor = bloomStrength * ( lerpBloomFactor(bloomFactors[0]) * vec4(bloomTintColors[0], 1.0) * texture2D(blurTexture1, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[1]) * vec4(bloomTintColors[1], 1.0) * texture2D(blurTexture2, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[2]) * vec4(bloomTintColors[2], 1.0) * texture2D(blurTexture3, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[3]) * vec4(bloomTintColors[3], 1.0) * texture2D(blurTexture4, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[4]) * vec4(bloomTintColors[4], 1.0) * texture2D(blurTexture5, vUv) );\n\t\t\t\t}"})}}ae.BlurDirectionX=new T(1,0),ae.BlurDirectionY=new T(0,1);class oe{constructor(){this.scene=new E,this.camera=new R(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new B({canvas:document.querySelector("#bg"),antialias:!0,alpha:!0}),this.composer=null,this.flowField=new q,this.spheres=new Y,this.time=0,this.mouse=new T,this.targetRotation=new T,this.init(),this.setupLights(),this.setupPostProcessing(),this.setupEventListeners()}init(){this.renderer.setPixelRatio(Math.min(window.devicePixelRatio,2)),this.renderer.setSize(window.innerWidth,window.innerHeight),this.renderer.toneMapping=F,this.renderer.toneMappingExposure=1,this.camera.position.setZ(30),this.camera.position.setY(5),this.scene.fog=new L(0,.01),this.scene.add(this.flowField.group),this.spheres.spheres.forEach((e=>this.scene.add(e)))}setupPostProcessing(){this.composer=new re(this.renderer);const e=new ie(this.scene,this.camera);this.composer.addPass(e);const t=new ae(new T(window.innerWidth,window.innerHeight),.5,.4,.85);this.composer.addPass(t)}setupLights(){const e=new z(4210752,.8),t=new U(8035999,2);t.position.set(10,10,10);const s=new U(5270655,1.5);s.position.set(-10,-10,-10),this.scene.add(e,t,s)}setupEventListeners(){window.addEventListener("resize",(()=>{this.camera.aspect=window.innerWidth/window.innerHeight,this.camera.updateProjectionMatrix(),this.renderer.setSize(window.innerWidth,window.innerHeight),this.composer.setSize(window.innerWidth,window.innerHeight)})),document.addEventListener("mousemove",(e=>{this.mouse.x=e.clientX/window.innerWidth*2-1,this.mouse.y=-e.clientY/window.innerHeight*2+1,this.targetRotation.x=.1*this.mouse.y,this.targetRotation.y=.1*this.mouse.x}))}animate(){requestAnimationFrame(this.animate.bind(this)),this.time+=.001,this.camera.rotation.x+=.05*(this.targetRotation.x-this.camera.rotation.x),this.camera.rotation.y+=.05*(this.targetRotation.y-this.camera.rotation.y),this.flowField.update(this.time),this.spheres.update(this.time),this.composer.render()}dispose(){this.renderer.dispose(),this.scene.traverse((e=>{e.geometry&&e.geometry.dispose(),e.material&&(Array.isArray(e.material)?e.material.forEach((e=>e.dispose())):e.material.dispose())}))}}const le=()=>{const t=r.useRef(null);return r.useEffect((()=>{if(!t.current)return;const e=()=>{t.current&&(t.current.width=window.innerWidth,t.current.height=window.innerHeight)};e(),window.addEventListener("resize",e);const s=new oe(t.current);return s.init(),s.animate(),()=>{window.removeEventListener("resize",e),s.dispose()}}),[]),e.jsx("canvas",{ref:t,style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",zIndex:-1,background:"#000000"}})};class he extends i.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){}render(){return this.state.hasError?e.jsx("div",{style:{padding:"2rem",textAlign:"center",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:"#000000",color:"white"},children:e.jsxs("div",{children:[e.jsx("h1",{children:"Something went wrong"}),e.jsx("p",{children:"Please refresh the page or try again later."})]})}):this.props.children}}const ue=r.lazy((()=>k((()=>import("./Home-Bz0xtnBV.js")),__vite__mapDeps([0,1,2])))),de=r.lazy((()=>k((()=>import("./Manifesto-CBmvqAB7.js")),__vite__mapDeps([3,1,2]))));function ce(){return r.useEffect((()=>{var e;(e=console.log)&&e instanceof Function&&k((async()=>{const{getCLS:e,getFID:t,getFCP:s,getLCP:r,getTTFB:i}=await import("./web-vitals-BJUkJDow.js");return{getCLS:e,getFID:t,getFCP:s,getLCP:r,getTTFB:i}}),[]).then((({getCLS:t,getFID:s,getFCP:r,getLCP:i,getTTFB:n})=>{t(e),s(e),r(e),i(e),n(e)})),"performance"in window&&window.performance.mark("app_start")}),[]),e.jsx(he,{children:e.jsxs(n,{children:[e.jsx(le,{}),e.jsx(r.Suspense,{fallback:e.jsx(H,{}),children:e.jsxs(a,{children:[e.jsx(o,{path:"/",element:e.jsx(ue,{})}),e.jsx(o,{path:"/manifesto",element:e.jsx(de,{})})]})})]})})}A(document.getElementById("root")).render(e.jsx(i.StrictMode,{children:e.jsx(ce,{})})); diff --git a/assets/index-BeBtB0Xr.js b/assets/index-BeBtB0Xr.js deleted file mode 100644 index beed74f..0000000 --- a/assets/index-BeBtB0Xr.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-CIdzXA5l.js","assets/animation-6CpB2BtV.js","assets/vendor-CJ7Qk68r.js","assets/Manifesto-Dax6b0Cd.js","assets/Scene-Bgu4qmls.js","assets/three-CHXrHHRv.js"])))=>i.map(i=>d[i]); -import{j as e,m as t}from"./animation-6CpB2BtV.js";import{a as n,r,B as o,R as i,b as s,c as a}from"./vendor-CJ7Qk68r.js";var l;!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var c=n;l=c.createRoot,c.hydrateRoot;const d={},u=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const e=document.querySelector("meta[property=csp-nonce]"),n=(null==e?void 0:e.nonce)||(null==e?void 0:e.getAttribute("nonce"));r=Promise.allSettled(t.map((e=>{if((e=function(e){return"/"+e}(e))in d)return;d[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${r}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":"modulepreload",t||(o.as="script"),o.crossOrigin="",o.href=e,n&&o.setAttribute("nonce",n),document.head.appendChild(o),t?new Promise(((t,n)=>{o.addEventListener("load",t),o.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0})))}function o(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then((t=>{for(const e of t||[])"rejected"===e.status&&o(e.reason);return e().catch(o)}))},m=()=>e.jsx(t.div,{className:"loading-container",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:e.jsxs("div",{className:"loading-content",children:[e.jsx(t.div,{className:"loading-logo",animate:{scale:[1,1.2,1],opacity:[.5,1,.5]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:e.jsx("svg",{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",children:e.jsx("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"2"})})}),e.jsx(t.div,{className:"loading-dots",initial:"hidden",animate:"visible",children:[0,1,2].map(((n,r)=>e.jsx(t.span,{className:"dot",animate:{y:["0%","-50%","0%"],opacity:[.5,1,.5]},transition:{duration:1,repeat:1/0,delay:.2*r,ease:"easeInOut"}},r)))})]})}),f=r.lazy((()=>u((()=>import("./Home-CIdzXA5l.js")),__vite__mapDeps([0,1,2])))),p=r.lazy((()=>u((()=>import("./Manifesto-Dax6b0Cd.js")),__vite__mapDeps([3,1,2])))),h=r.lazy((()=>u((()=>import("./Scene-Bgu4qmls.js")),__vite__mapDeps([4,5])).then((e=>({default:e.Scene})))));function y(){const[t,n]=r.useState(null),[a,l]=r.useState(!0);return r.useEffect((()=>((async()=>{try{const e=new h;await e.init(),n(e),await new Promise((e=>setTimeout(e,1e3))),l(!1)}catch(e){l(!1)}})(),()=>{t&&t.dispose()})),[]),r.useEffect((()=>{let e;const n=()=>{clearTimeout(e),e=setTimeout((()=>{t&&t.handleResize()}),250)};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n),clearTimeout(e)}}),[t]),a?e.jsx(m,{}):e.jsx(o,{children:e.jsx(r.Suspense,{fallback:e.jsx(m,{}),children:e.jsxs(i,{children:[e.jsx(s,{path:"/",element:e.jsx(f,{onMount:()=>null==t?void 0:t.animate()})}),e.jsx(s,{path:"/manifesto",element:e.jsx(p,{onMount:()=>null==t?void 0:t.animate()})})]})})})}l(document.getElementById("root")).render(e.jsx(a.StrictMode,{children:e.jsx(y,{})})); diff --git a/assets/index-Du2sDgkR.css b/assets/index-Du2sDgkR.css deleted file mode 100644 index 05290b4..0000000 --- a/assets/index-Du2sDgkR.css +++ /dev/null @@ -1 +0,0 @@ -:root{--primary: #2A2B2E;--accent: #506C7F;--glow: #7A9E9F;--background: #030303;--text: #E4E4E4;--card-bg: rgba(255, 255, 255, .03);--hover: rgba(122, 158, 159, .08);--font-display: "Garnett", system-ui, -apple-system;--font-body: "Aeonik", sans-serif}@font-face{font-family:Garnett;src:url(/fonts/Garnett-Regular.woff2) format("woff2");font-weight:400;font-display:swap}@font-face{font-family:Aeonik;src:url(/fonts/Aeonik-Regular.woff2) format("woff2");font-weight:400;font-display:swap}@font-face{font-family:Space Mono;src:url(https://fonts.gstatic.com/s/spacemono/v12/i7dPIFZifjKcF5UAWdDRYEF8RQ.woff2) format("woff2");font-display:swap}@font-face{font-family:Syncopate;src:url(https://fonts.gstatic.com/s/syncopate/v19/pe0sMIuPIYBCpEV5eFdCBfe_.woff2) format("woff2");font-display:swap}@font-face{font-family:Cinzel;src:url(https://fonts.gstatic.com/s/cinzel/v23/8vIU7ww63mVu7gtR-kwKxNvkNOjw-tbnfYPlDX5Z.woff2) format("woff2");font-display:swap}@font-face{font-family:Audiowide;src:url(https://fonts.gstatic.com/s/audiowide/v16/l7gdbjpo0cum0ckerWCdlg_O.woff2) format("woff2");font-display:swap}@font-face{font-family:Cormorant Garamond;src:url(https://fonts.gstatic.com/s/cormorantgaramond/v16/co3WmX5slCNuHLi8bLeY9MK7whWMhyjYrEPjuw-N.woff2) format("woff2");font-display:swap}*{margin:0;padding:0;box-sizing:border-box}body{font-family:var(--font-body);color:var(--text);line-height:1.6;overflow-x:hidden;background:var(--background);letter-spacing:-.01em}canvas{position:fixed;top:0;left:0;z-index:-1;opacity:.6}#app{position:relative;max-width:1200px;margin:0 auto;padding:4rem 2rem}header{margin-bottom:8rem;opacity:0;transform:translateY(20px);animation:fadeIn 1s ease forwards}h1{font-family:var(--font-display);font-size:5.5rem;font-weight:500;margin-bottom:1.5rem;line-height:.9;letter-spacing:-.05em;position:relative;background:linear-gradient(135deg,var(--text) 0%,var(--glow) 50%,var(--accent) 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 30px rgba(122,158,159,.1)}h1:after{content:"";position:absolute;bottom:-10px;left:0;width:60px;height:1px;background:linear-gradient(90deg,var(--accent),transparent);opacity:.5}h2{font-family:var(--font-display);font-size:2.5rem;font-weight:500;margin-bottom:2rem;letter-spacing:-.03em;position:relative;background:linear-gradient(135deg,var(--accent) 0%,var(--glow) 100%);-webkit-background-clip:text;background-clip:text;color:transparent}h2:before{content:"";position:absolute;top:-20px;left:-40px;width:200%;height:200%;background:radial-gradient(circle at 50% 50%,var(--glow) 0%,transparent 70%);opacity:.05;pointer-events:none;z-index:-1}.platforms-marquee{position:relative;width:110%;left:-5%;overflow:hidden;padding:2rem 0;margin:4rem 0;background:linear-gradient(to right,transparent,var(--card-bg) 20%,var(--card-bg) 80%,transparent)}.platforms-track{display:flex;gap:4rem;animation:scroll 30s linear infinite;white-space:nowrap;will-change:transform;width:fit-content;padding-left:4rem;-webkit-mask-image:linear-gradient(to right,transparent 0%,black 10%,black 90%,transparent 100%);mask-image:linear-gradient(to right,transparent 0%,black 10%,black 90%,transparent 100%)}.platform-name{font-size:2.5rem;opacity:.7;transition:all .3s ease;cursor:pointer;padding:.5rem 2rem;position:relative;display:inline-block}.platform-name:hover{opacity:1;transform:scale(1.05)}.platform-terminals{font-family:Space Mono,monospace;letter-spacing:-.05em;color:var(--glow);text-shadow:0 0 10px rgba(122,158,159,.3)}.platform-radical{font-family:var(--font-display);font-weight:700;background:linear-gradient(135deg,var(--accent),var(--glow));-webkit-background-clip:text;background-clip:text;color:transparent;letter-spacing:.1em}.platform-pathfinder{font-family:"Syncopate",var(--font-display);letter-spacing:-.02em;color:var(--text);border-bottom:2px solid var(--glow)}.platform-wuji{font-family:Cinzel,serif;letter-spacing:.2em;color:var(--accent);text-shadow:0 0 20px rgba(80,108,127,.2)}.platform-boom{font-family:"Audiowide",var(--font-display);color:var(--glow);text-shadow:0 0 15px rgba(122,158,159,.4);transform:skew(-5deg)}.platform-journey{font-family:Cormorant Garamond,serif;font-style:italic;color:var(--text);letter-spacing:.05em}@keyframes scroll{0%{transform:translate(0)}to{transform:translate(calc(-50% - 2rem))}}.tagline{font-size:1.75rem;line-height:1.4;max-width:650px;font-weight:400;color:var(--text);opacity:.8;letter-spacing:-.02em}.section{margin:8rem 0;opacity:0;transform:translateY(20px);transition:opacity .8s ease,transform .8s ease}.section.visible{opacity:1;transform:translateY(0)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:3rem;margin-top:4rem}.card{background:var(--card-bg);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);padding:2.5rem;border-radius:2px;border:1px solid rgba(255,255,255,.03);transition:transform .6s cubic-bezier(.23,1,.32,1),box-shadow .6s cubic-bezier(.23,1,.32,1);transform-style:preserve-3d;will-change:transform;position:relative;overflow:hidden}.card:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:radial-gradient(circle at var(--x, 50%) var(--y, 50%),rgba(122,158,159,.1) 0%,transparent 50%);opacity:0;transition:opacity .3s ease}.card:hover:before{opacity:1}.learn-more-content{max-height:0;opacity:0;overflow:hidden;transition:all .4s cubic-bezier(.23,1,.32,1);margin:0;padding:0}.card:hover .learn-more-content{max-height:300px;opacity:1;margin-top:1.5rem}.learn-more-content ul{list-style:none;padding:0;margin:0}.learn-more-content li{position:relative;padding-left:1.5rem;margin-bottom:.75rem;font-size:.95rem;opacity:.8;transform:translateY(10px);transition:all .3s ease}.learn-more-content li:before{content:"/";position:absolute;left:0;color:var(--glow);opacity:.6}.card:hover .learn-more-content li{transform:translateY(0);opacity:1}.experience-list{list-style:none;padding:0;margin:1.5rem 0 0}.experience-list li{position:relative;padding-left:1.5rem;margin-bottom:1rem;font-size:.95rem;opacity:.8;line-height:1.5}.experience-list li:before{content:"/";position:absolute;left:0;color:var(--glow);opacity:.6}.card h3{font-family:var(--font-display);color:var(--glow);margin-bottom:1.25rem;font-size:1.5rem;letter-spacing:-.02em;font-weight:500}.card p{font-size:1rem;line-height:1.7;opacity:.8;letter-spacing:-.01em}.learn-more{display:inline-flex;align-items:center;margin-top:1.5rem;color:var(--accent);text-decoration:none;font-size:.95rem;transition:all .3s ease;font-weight:500;letter-spacing:.02em}.learn-more:hover{color:var(--glow);transform:translate(3px)}.cta-container{display:flex;flex-direction:column;gap:1rem;margin-top:3rem;align-items:flex-start}.zcal-inline-widget{margin:2rem 0;width:100%;max-width:600px}.cta-button{background:transparent;color:var(--text);border:1px solid var(--accent);padding:1rem 2.5rem;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .4s cubic-bezier(.23,1,.32,1);font-family:var(--font-body);letter-spacing:.02em;position:relative;overflow:hidden;width:100%;max-width:600px;text-align:center}.cta-button:before{content:"";position:absolute;top:50%;left:50%;width:150%;height:150%;background:var(--accent);transform:translate(-50%,-50%) scale(0);opacity:0;transition:transform .6s ease,opacity .4s ease;z-index:-1}.cta-button:hover{border-color:var(--glow)}.cta-button:hover:before{transform:translate(-50%,-50%) scale(1);opacity:.1}.text-link{color:var(--text);text-decoration:none;opacity:.8;transition:all .3s ease;font-weight:500;letter-spacing:.02em}.text-link:hover{opacity:1;color:var(--glow)}footer{margin-top:12rem;padding:3rem 0;border-top:1px solid rgba(255,255,255,.03)}.social-links{display:flex;gap:3rem;margin-bottom:1.5rem}.social-links a{color:var(--text);text-decoration:none;opacity:.7;transition:all .3s ease;font-size:.95rem;font-weight:500;letter-spacing:.02em}.social-links a:hover{opacity:1;color:var(--glow)}.copyright{opacity:.5;font-size:.9rem;letter-spacing:.01em}.back-link{display:inline-block;color:var(--text);text-decoration:none;opacity:.8;margin-bottom:2rem;font-size:1rem;transition:all .3s ease;letter-spacing:.02em}.back-link:hover{opacity:1;color:var(--glow);transform:translate(-3px)}.manifesto-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:4rem;margin-bottom:6rem}.manifesto-item{position:relative;padding:2rem;background:var(--card-bg);border:1px solid rgba(255,255,255,.03);border-radius:2px;transition:transform .6s cubic-bezier(.23,1,.32,1),background .3s ease,border-color .3s ease;transform-style:preserve-3d}.manifesto-item:hover{transform:translateY(-5px) scale(1.02);background:var(--hover)}.manifesto-item h2{font-size:2rem;margin-bottom:1.5rem}.manifesto-item p{font-size:1.1rem;line-height:1.7;opacity:.9;letter-spacing:-.01em}.principles{margin-top:8rem;padding:3rem;background:var(--card-bg);border:1px solid rgba(255,255,255,.03);border-radius:2px}.principles h2{margin-bottom:3rem}@media (max-width: 768px){.manifesto-grid{grid-template-columns:1fr;gap:2rem}.manifesto-item{padding:1.5rem}.manifesto-item h2{font-size:1.75rem}.principles{padding:1.5rem;margin-top:4rem}}@media (max-width: 768px){#app{padding:2rem 1rem}h1{font-size:3.5rem}.tagline{font-size:1.3rem}.cta-container{flex-direction:column;align-items:flex-start;gap:1.5rem}}.platforms-track{animation:scroll 40s linear infinite;filter:blur(0);transition:filter .3s ease}.platforms-track:hover{animation-play-state:paused;filter:blur(0)}.platform-name{transition:transform .3s ease,opacity .3s ease,color .3s ease}.platform-name:hover{transform:scale(1.1);opacity:1;color:var(--glow)}@keyframes fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.section{animation:fadeIn .8s ease-out forwards;animation-play-state:paused}.section.visible{animation-play-state:running}.loading-container{position:fixed;top:0;left:0;width:100%;height:100%;background:#000;display:flex;justify-content:center;align-items:center;z-index:1000}.loading-content{display:flex;flex-direction:column;align-items:center;gap:2rem}.loading-logo{color:#7a9e9f;width:50px;height:50px}.loading-dots{display:flex;gap:.5rem}.dot{width:8px;height:8px;background-color:#7a9e9f;border-radius:50%;display:inline-block}.gradient-text{background:linear-gradient(135deg,#7a9e9f,#506c7f);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.hero-section{min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:2rem}.solutions-grid{padding:4rem 2rem}.vision-section{padding:6rem 2rem;background:linear-gradient(to bottom,transparent,rgba(122,158,159,.1))}.tech-stack{display:flex;gap:2rem;flex-wrap:wrap;justify-content:center;margin-top:2rem} diff --git a/assets/index-r3__4dqW.css b/assets/index-r3__4dqW.css new file mode 100644 index 0000000..9ff81ec --- /dev/null +++ b/assets/index-r3__4dqW.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Space+Mono&family=Syncopate:wght@700&family=Cinzel&family=Audiowide&family=Cormorant+Garamond:ital@1&display=swap";:root{--font-display: system-ui, -apple-system, sans-serif;--text: rgba(255, 255, 255, .9);--accent: #7A9E9F;--background: #000000;--glow: rgba(122, 158, 159, .5);--card-bg: rgba(122, 158, 159, .05);--hover: rgba(122, 158, 159, .1)}*{margin:0;padding:0;box-sizing:border-box}body{background:#000;color:#fff;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;overflow-x:hidden;min-height:100vh}.gradient-text{background:linear-gradient(135deg,var(--primary) 0%,var(--glow) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.cta-button{padding:1rem 2rem;border:1px solid var(--primary);border-radius:4px;text-decoration:none;color:#fff;transition:all .3s ease}.cta-button.primary{background:var(--primary)}.cta-button.secondary{background:transparent}@font-face{font-family:Garnett;src:url(/fonts/Garnett-Regular.woff2) format("woff2");font-weight:400;font-display:swap}@font-face{font-family:Aeonik;src:url(/fonts/Aeonik-Regular.woff2) format("woff2");font-weight:400;font-display:swap}@font-face{font-family:Space Mono;src:url(https://fonts.gstatic.com/s/spacemono/v12/i7dPIFZifjKcF5UAWdDRYEF8RQ.woff2) format("woff2");font-display:swap}@font-face{font-family:Syncopate;src:url(https://fonts.gstatic.com/s/syncopate/v19/pe0sMIuPIYBCpEV5eFdCBfe_.woff2) format("woff2");font-display:swap}@font-face{font-family:Cinzel;src:url(https://fonts.gstatic.com/s/cinzel/v23/8vIU7ww63mVu7gtR-kwKxNvkNOjw-tbnfYPlDX5Z.woff2) format("woff2");font-display:swap}@font-face{font-family:Audiowide;src:url(https://fonts.gstatic.com/s/audiowide/v16/l7gdbjpo0cum0ckerWCdlg_O.woff2) format("woff2");font-display:swap}@font-face{font-family:Cormorant Garamond;src:url(https://fonts.gstatic.com/s/cormorantgaramond/v16/co3WmX5slCNuHLi8bLeY9MK7whWMhyjYrEPjuw-N.woff2) format("woff2");font-display:swap}body{font-family:var(--font-body);color:var(--text);line-height:1.6;overflow-x:hidden;background:var(--background);letter-spacing:-.01em}canvas{position:fixed;top:0;left:0;z-index:-1;opacity:.6}#app{position:relative;max-width:1200px;margin:0 auto;padding:4rem 2rem}header{margin-bottom:8rem;opacity:0;transform:translateY(20px);animation:fadeIn 1s ease forwards}h1{font-family:var(--font-display);font-size:5.5rem;font-weight:500;margin-bottom:1.5rem;line-height:.9;letter-spacing:-.05em;position:relative;background:linear-gradient(135deg,var(--text) 0%,var(--glow) 50%,var(--accent) 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 30px rgba(122,158,159,.1)}h1:after{content:"";position:absolute;bottom:-10px;left:0;width:60px;height:1px;background:linear-gradient(90deg,var(--accent),transparent);opacity:.5}h2{font-family:var(--font-display);font-size:2.5rem;font-weight:500;margin-bottom:2rem;letter-spacing:-.03em;position:relative;background:linear-gradient(135deg,var(--accent) 0%,var(--glow) 100%);-webkit-background-clip:text;background-clip:text;color:transparent}h2:before{content:"";position:absolute;top:-20px;left:-40px;width:200%;height:200%;background:radial-gradient(circle at 50% 50%,var(--glow) 0%,transparent 70%);opacity:.05;pointer-events:none;z-index:-1}.platforms-marquee{position:relative;width:110%;left:-5%;overflow:hidden;padding:2rem 0;margin:4rem 0;background:linear-gradient(to right,transparent,var(--card-bg) 20%,var(--card-bg) 80%,transparent)}.platforms-track{display:flex;gap:4rem;animation:scroll 30s linear infinite;white-space:nowrap;will-change:transform;width:fit-content;padding-left:4rem;-webkit-mask-image:linear-gradient(to right,transparent 0%,black 10%,black 90%,transparent 100%);mask-image:linear-gradient(to right,transparent 0%,black 10%,black 90%,transparent 100%)}.platform-name{font-size:2.5rem;opacity:.7;transition:all .3s ease;cursor:pointer;padding:.5rem 2rem;position:relative;display:inline-block}.platform-name:hover{opacity:1;transform:scale(1.05)}.platform-terminals{font-family:Space Mono,monospace;letter-spacing:-.05em;color:var(--glow);text-shadow:0 0 10px rgba(122,158,159,.3)}.platform-radical{font-family:var(--font-display);font-weight:700;background:linear-gradient(135deg,var(--accent),var(--glow));-webkit-background-clip:text;background-clip:text;color:transparent;letter-spacing:.1em}.platform-pathfinder{font-family:"Syncopate",var(--font-display);letter-spacing:-.02em;color:var(--text);border-bottom:2px solid var(--glow)}.platform-wuji{font-family:Cinzel,serif;letter-spacing:.2em;color:var(--accent);text-shadow:0 0 20px rgba(80,108,127,.2)}.platform-boom{font-family:"Audiowide",var(--font-display);color:var(--glow);text-shadow:0 0 15px rgba(122,158,159,.4);transform:skew(-5deg)}.platform-journey{font-family:Cormorant Garamond,serif;font-style:italic;color:var(--text);letter-spacing:.05em}@keyframes scroll{0%{transform:translate(0)}to{transform:translate(calc(-50% - 2rem))}}.tagline{font-size:1.75rem;line-height:1.4;max-width:650px;font-weight:400;color:var(--text);opacity:.8;letter-spacing:-.02em}.section{margin:8rem 0;opacity:0;transform:translateY(20px);transition:opacity .8s ease,transform .8s ease}.section.visible{opacity:1;transform:translateY(0)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:3rem;margin-top:4rem}.card{background:var(--card-bg);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);padding:2.5rem;border-radius:2px;border:1px solid rgba(255,255,255,.03);transition:transform .6s cubic-bezier(.23,1,.32,1),box-shadow .6s cubic-bezier(.23,1,.32,1);transform-style:preserve-3d;will-change:transform;position:relative;overflow:hidden}.card:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:radial-gradient(circle at var(--x, 50%) var(--y, 50%),rgba(122,158,159,.1) 0%,transparent 50%);opacity:0;transition:opacity .3s ease}.card:hover:before{opacity:1}.learn-more-content{max-height:0;opacity:0;overflow:hidden;transition:all .4s cubic-bezier(.23,1,.32,1);margin:0;padding:0}.card:hover .learn-more-content{max-height:300px;opacity:1;margin-top:1.5rem}.learn-more-content ul{list-style:none;padding:0;margin:0}.learn-more-content li{position:relative;padding-left:1.5rem;margin-bottom:.75rem;font-size:.95rem;opacity:.8;transform:translateY(10px);transition:all .3s ease}.learn-more-content li:before{content:"/";position:absolute;left:0;color:var(--glow);opacity:.6}.card:hover .learn-more-content li{transform:translateY(0);opacity:1}.experience-list{list-style:none;padding:0;margin:1.5rem 0 0}.experience-list li{position:relative;padding-left:1.5rem;margin-bottom:1rem;font-size:.95rem;opacity:.8;line-height:1.5}.experience-list li:before{content:"/";position:absolute;left:0;color:var(--glow);opacity:.6}.card h3{font-family:var(--font-display);color:var(--glow);margin-bottom:1.25rem;font-size:1.5rem;letter-spacing:-.02em;font-weight:500}.card p{font-size:1rem;line-height:1.7;opacity:.8;letter-spacing:-.01em}.learn-more{display:inline-flex;align-items:center;margin-top:1.5rem;color:var(--accent);text-decoration:none;font-size:.95rem;transition:all .3s ease;font-weight:500;letter-spacing:.02em}.learn-more:hover{color:var(--glow);transform:translate(3px)}.cta-container{display:flex;flex-direction:column;gap:1rem;margin-top:3rem;align-items:flex-start}.zcal-inline-widget{margin:2rem 0;width:100%;max-width:600px}.cta-button{background:transparent;color:var(--text);border:1px solid var(--accent);padding:1rem 2.5rem;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .4s cubic-bezier(.23,1,.32,1);font-family:var(--font-body);letter-spacing:.02em;position:relative;overflow:hidden;width:100%;max-width:600px;text-align:center}.cta-button:before{content:"";position:absolute;top:50%;left:50%;width:150%;height:150%;background:var(--accent);transform:translate(-50%,-50%) scale(0);opacity:0;transition:transform .6s ease,opacity .4s ease;z-index:-1}.cta-button:hover{border-color:var(--glow)}.cta-button:hover:before{transform:translate(-50%,-50%) scale(1);opacity:.1}.text-link{color:var(--text);text-decoration:none;opacity:.8;transition:all .3s ease;font-weight:500;letter-spacing:.02em}.text-link:hover{opacity:1;color:var(--glow)}footer{margin-top:12rem;padding:3rem 0;border-top:1px solid rgba(255,255,255,.03)}.social-links{display:flex;gap:3rem;margin-bottom:1.5rem}.social-links a{color:var(--text);text-decoration:none;opacity:.7;transition:all .3s ease;font-size:.95rem;font-weight:500;letter-spacing:.02em}.social-links a:hover{opacity:1;color:var(--glow)}.copyright{opacity:.5;font-size:.9rem;letter-spacing:.01em}.back-link{display:inline-block;color:var(--text);text-decoration:none;opacity:.8;margin-bottom:2rem;font-size:1rem;transition:all .3s ease;letter-spacing:.02em}.back-link:hover{opacity:1;color:var(--glow);transform:translate(-3px)}.manifesto-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:4rem;margin-bottom:6rem}.manifesto-item{position:relative;padding:2rem;background:var(--card-bg);border:1px solid rgba(255,255,255,.03);border-radius:2px;transition:transform .6s cubic-bezier(.23,1,.32,1),background .3s ease,border-color .3s ease;transform-style:preserve-3d}.manifesto-item:hover{transform:translateY(-5px) scale(1.02);background:var(--hover)}.manifesto-item h2{font-size:2rem;margin-bottom:1.5rem}.manifesto-item p{font-size:1.1rem;line-height:1.7;opacity:.9;letter-spacing:-.01em}.principles{margin-top:8rem;padding:3rem;background:var(--card-bg);border:1px solid rgba(255,255,255,.03);border-radius:2px}.principles h2{margin-bottom:3rem}@media (max-width: 768px){.manifesto-grid{grid-template-columns:1fr;gap:2rem}.manifesto-item{padding:1.5rem}.manifesto-item h2{font-size:1.75rem}.principles{padding:1.5rem;margin-top:4rem}}@media (max-width: 768px){#app{padding:2rem 1rem}h1{font-size:3.5rem}.tagline{font-size:1.3rem}.cta-container{flex-direction:column;align-items:flex-start;gap:1.5rem}}.platforms-track{animation:scroll 40s linear infinite;filter:blur(0);transition:filter .3s ease}.platforms-track:hover{animation-play-state:paused;filter:blur(0)}.platform-name{transition:transform .3s ease,opacity .3s ease,color .3s ease}.platform-name:hover{transform:scale(1.1);opacity:1;color:var(--glow)}@keyframes fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.section{animation:fadeIn .8s ease-out forwards;animation-play-state:paused}.section.visible{animation-play-state:running}.loading-container{position:fixed;top:0;left:0;width:100%;height:100%;background:#000;display:flex;justify-content:center;align-items:center;z-index:1000}.loading-content{display:flex;flex-direction:column;align-items:center;gap:2rem}.loading-logo{color:#7a9e9f;width:50px;height:50px}.loading-dots{display:flex;gap:.5rem}.dot{width:8px;height:8px;background-color:#7a9e9f;border-radius:50%;display:inline-block}.gradient-text{background:linear-gradient(135deg,#7a9e9f,#506c7f);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.hero-section{min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:2rem}.solutions-grid{padding:4rem 2rem}.vision-section{padding:6rem 2rem;background:linear-gradient(to bottom,transparent,rgba(122,158,159,.1))}.tech-stack{display:flex;gap:2rem;flex-wrap:wrap;justify-content:center;margin-top:2rem}body{margin:0;background:#000;color:#fff;font-family:system-ui,-apple-system,sans-serif;overflow-x:hidden}#root{min-height:100vh} diff --git a/assets/site-BwHFeIBa.webmanifest b/assets/site-BwHFeIBa.webmanifest deleted file mode 100644 index 45dc8a2..0000000 --- a/assets/site-BwHFeIBa.webmanifest +++ /dev/null @@ -1 +0,0 @@ -{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file diff --git a/assets/site-DtPqOtSE.webmanifest b/assets/site-DtPqOtSE.webmanifest new file mode 100644 index 0000000..ed0beef --- /dev/null +++ b/assets/site-DtPqOtSE.webmanifest @@ -0,0 +1,21 @@ +{ + "name": "Intuition Labs LLC", + "short_name": "IntuitionLab", + "description": "Pioneering the future of AI through intuitive design", + "start_url": "/", + "display": "standalone", + "background_color": "#000000", + "theme_color": "#7A9E9F", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} \ No newline at end of file diff --git a/assets/vendor-CJ7Qk68r.js b/assets/vendor-kDvAVQqt.js similarity index 99% rename from assets/vendor-CJ7Qk68r.js rename to assets/vendor-kDvAVQqt.js index 312fe59..48cb7a5 100644 --- a/assets/vendor-CJ7Qk68r.js +++ b/assets/vendor-kDvAVQqt.js @@ -48,4 +48,4 @@ function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t{}));const ad=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(hd){}const ld=$.startTransition;function od(e){let{basename:t,children:n,future:r,window:a}=e,l=U.useRef();null==l.current&&(l.current=Gc({window:a,v5Compat:!0}));let o=l.current,[u,i]=U.useState({action:o.action,location:o.location}),{v7_startTransition:s}=r||{},c=U.useCallback((e=>{s&&ld?ld((()=>i(e))):i(e)}),[i,s]);return U.useLayoutEffect((()=>o.listen(c)),[o,c]),U.useEffect((()=>{return null!=(e=r)&&e.v7_startTransition||Jf("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),void(null!=e&&e.v7_relativeSplatPath||t||Jf("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"));var e,t}),[r]),U.createElement(ed,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:o,future:r})}const ud="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,id=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sd=U.forwardRef((function(e,t){let n,{onClick:r,relative:a,reloadDocument:l,replace:o,state:u,target:i,to:s,preventScrollReset:c,viewTransition:f}=e,d=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,ad),{basename:p}=U.useContext(Ff),h=!1;if("string"==typeof s&&id.test(s)&&(n=s,ud))try{let e=new URL(window.location.href),t=s.startsWith("//")?new URL(e.protocol+s):new URL(s),n=kf(t.pathname,p);t.origin===e.origin&&null!=n?s=n+t.search+t.hash:h=!0}catch(hd){}let m=function(e,t){let{relative:n}=void 0===t?{}:t;Uf()||Jc(!1);let{basename:r,navigator:a}=U.useContext(Ff),{hash:l,pathname:o,search:u}=Af(e,{relative:n}),i=o;return"/"!==r&&(i="/"===o?r:Cf([r,o])),a.createHref({pathname:i,search:u,hash:l})}(s,{relative:a}),v=function(e,t){let{target:n,replace:r,state:a,preventScrollReset:l,relative:o,viewTransition:u}=void 0===t?{}:t,i=Bf(),s=jf(),c=Af(e,{relative:o});return U.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:nf(s)===nf(c);i(e,{replace:n,state:a,preventScrollReset:l,relative:o,viewTransition:u})}}),[s,i,c,r,a,n,e,l,o,u])}(s,{replace:o,state:u,target:i,preventScrollReset:c,relative:a,viewTransition:f});return U.createElement("a",rd({},d,{href:n||m,onClick:h||l?r:function(e){r&&r(e),e.defaultPrevented||v(e)},ref:t,target:i}))}));var cd,fd,dd,pd;(fd=cd||(cd={})).UseScrollRestoration="useScrollRestoration",fd.UseSubmit="useSubmit",fd.UseSubmitFetcher="useSubmitFetcher",fd.UseFetcher="useFetcher",fd.useViewTransitionState="useViewTransitionState",(pd=dd||(dd={})).UseFetcher="useFetcher",pd.UseFetchers="useFetchers",pd.UseScrollRestoration="useScrollRestoration";export{od as B,sd as L,td as R,qc as a,Zf as b,j as c,U as r}; + */function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t{}));const ad=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(hd){}const ld=$.startTransition;function od(e){let{basename:t,children:n,future:r,window:a}=e,l=U.useRef();null==l.current&&(l.current=Gc({window:a,v5Compat:!0}));let o=l.current,[u,i]=U.useState({action:o.action,location:o.location}),{v7_startTransition:s}=r||{},c=U.useCallback((e=>{s&&ld?ld((()=>i(e))):i(e)}),[i,s]);return U.useLayoutEffect((()=>o.listen(c)),[o,c]),U.useEffect((()=>{return null!=(e=r)&&e.v7_startTransition||Jf("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),void(null!=e&&e.v7_relativeSplatPath||t||Jf("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"));var e,t}),[r]),U.createElement(ed,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:o,future:r})}const ud="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,id=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sd=U.forwardRef((function(e,t){let n,{onClick:r,relative:a,reloadDocument:l,replace:o,state:u,target:i,to:s,preventScrollReset:c,viewTransition:f}=e,d=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,ad),{basename:p}=U.useContext(Ff),h=!1;if("string"==typeof s&&id.test(s)&&(n=s,ud))try{let e=new URL(window.location.href),t=s.startsWith("//")?new URL(e.protocol+s):new URL(s),n=kf(t.pathname,p);t.origin===e.origin&&null!=n?s=n+t.search+t.hash:h=!0}catch(hd){}let m=function(e,t){let{relative:n}=void 0===t?{}:t;Uf()||Jc(!1);let{basename:r,navigator:a}=U.useContext(Ff),{hash:l,pathname:o,search:u}=Af(e,{relative:n}),i=o;return"/"!==r&&(i="/"===o?r:Cf([r,o])),a.createHref({pathname:i,search:u,hash:l})}(s,{relative:a}),v=function(e,t){let{target:n,replace:r,state:a,preventScrollReset:l,relative:o,viewTransition:u}=void 0===t?{}:t,i=Bf(),s=jf(),c=Af(e,{relative:o});return U.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:nf(s)===nf(c);i(e,{replace:n,state:a,preventScrollReset:l,relative:o,viewTransition:u})}}),[s,i,c,r,a,n,e,l,o,u])}(s,{replace:o,state:u,target:i,preventScrollReset:c,relative:a,viewTransition:f});return U.createElement("a",rd({},d,{href:n||m,onClick:h||l?r:function(e){r&&r(e),e.defaultPrevented||v(e)},ref:t,target:i}))}));var cd,fd,dd,pd;(fd=cd||(cd={})).UseScrollRestoration="useScrollRestoration",fd.UseSubmit="useSubmit",fd.UseSubmitFetcher="useSubmitFetcher",fd.UseFetcher="useFetcher",fd.useViewTransitionState="useViewTransitionState",(pd=dd||(dd={})).UseFetcher="useFetcher",pd.UseFetchers="useFetchers",pd.UseScrollRestoration="useScrollRestoration";export{od as B,sd as L,j as R,qc as a,td as b,Zf as c,U as r}; diff --git a/assets/web-vitals-BJUkJDow.js b/assets/web-vitals-BJUkJDow.js new file mode 100644 index 0000000..ef60d7c --- /dev/null +++ b/assets/web-vitals-BJUkJDow.js @@ -0,0 +1 @@ +var e,n,t,r,i=-1,a=function(e){addEventListener("pageshow",(function(n){n.persisted&&(i=n.timeStamp,e(n))}),!0)},o=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},c=function(){var e=o();return e&&e.activationStart||0},u=function(e,n){var t=o(),r="navigate";return i>=0?r="back-forward-cache":t&&(document.prerendering||c()>0?r="prerender":document.wasDiscarded?r="restore":t.type&&(r=t.type.replace(/_/g,"-"))),{name:e,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},s=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},t||{})),r}}catch(i){}},f=function(e,n,t,r){var i,a;return function(o){var c,u;n.value>=0&&(o||r)&&((a=n.value-(i||0))||void 0===i)&&(i=n.value,n.delta=a,n.rating=(c=n.value)>(u=t)[1]?"poor":c>u[0]?"needs-improvement":"good",e(n))}},d=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},p=function(e){var n=function(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||e(n)};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},v=function(e){var n=!1;return function(t){n||(e(t),n=!0)}},m=-1,l=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},h=function(e){"hidden"===document.visibilityState&&m>-1&&(m="visibilitychange"===e.type?e.timeStamp:0,T())},g=function(){addEventListener("visibilitychange",h,!0),addEventListener("prerenderingchange",h,!0)},T=function(){removeEventListener("visibilitychange",h,!0),removeEventListener("prerenderingchange",h,!0)},y=function(){return m<0&&(m=l(),g(),a((function(){setTimeout((function(){m=l(),g()}),0)}))),{get firstHiddenTime(){return m}}},E=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},L=[1800,3e3],C=function(e,n){n=n||{},E((function(){var t,r=y(),i=u("FCP"),o=s("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTimer.value&&(r.value=i,r.entries=o,t())},v=s("layout-shift",c);v&&(t=f(e,r,S,n.reportAllChanges),p((function(){c(v.takeRecords()),t(!0)})),a((function(){i=0,r=u("CLS",0),t=f(e,r,S,n.reportAllChanges),d((function(){return t()}))})),setTimeout(t,0))})))},F={passive:!0,capture:!0},b=new Date,P=function(r,i){e||(e=i,n=r,t=new Date,k(removeEventListener),A())},A=function(){if(n>=0&&n1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=n,r=e,i=function(){P(t,r),o()},a=function(){o()},o=function(){removeEventListener("pointerup",i,F),removeEventListener("pointercancel",a,F)},addEventListener("pointerup",i,F),addEventListener("pointercancel",a,F)):P(n,e)}var t,r,i,a,o},k=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(n){return e(n,D,F)}))},B=[100,300],I=function(t,i){i=i||{},E((function(){var o,c=y(),d=u("FID"),m=function(e){e.startTimeperformance.now())return;t.value=Math.max(s-c(),0),t.entries=[i],r(!0),a((function(){t=u("TTFB",0),(r=f(e,t,R,n.reportAllChanges))(!0)}))}}))};export{S as CLSThresholds,L as FCPThresholds,B as FIDThresholds,M as LCPThresholds,R as TTFBThresholds,w as getCLS,C as getFCP,I as getFID,H as getLCP,q as getTTFB,w as onCLS,C as onFCP,I as onFID,H as onLCP,q as onTTFB}; diff --git a/index.html b/index.html index 21bb4bd..b17f40d 100644 --- a/index.html +++ b/index.html @@ -3,27 +3,26 @@ + + + + + Intuition Labs LLC - AI Research & Consulting + + + + + - - - - - - + + + + + +