1import{g as z}from"./index.DcLXd38g.js";import{S as J}from"./ScrollTrigger.sZSwTlf3.js";globalThis.process??={};globalThis.process.env??={};const n=document.querySelector("[data-proc]"),lt=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(n&&!lt){z.registerPlugin(J),n.classList.add("is-live");const V=n.querySelector("[data-stage]"),tt=n.querySelector("[data-show]"),T=n.querySelector("[data-theatre]"),et=n.querySelector("[data-spread]"),ot=n.querySelector("[data-tilt]"),k=[...n.querySelectorAll("[data-leaf]")],L=[...n.querySelectorAll("[data-step]")],nt=[...n.querySelectorAll("[data-quote]")],at=k.map((t,a)=>[...n.querySelectorAll(`[data-pop="${a}"]`)]),st=n.querySelector("[data-ask]"),g=L.length;let w=g;const B=window.matchMedia("(min-width: 1024px)"),u=t=>Math.min(1,Math.max(0,t)),S=t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,R=[],F=k.map(()=>0);let N=-2,A=0;const C=t=>{const a=S(u(t/.6)),r=S(u(t-g)),i=S(u((t-.25)/.75));let f=Math.sin(i*Math.PI);k.forEach((l,s)=>{const c=s===0?i:S(u(t-s)),x=Math.sin(c*Math.PI);s>0&&(f=Math.max(f,x*.5)),l.style.transform=`translateZ(${(1+x*60).toFixed(1)}px) rotateY(${(-180*c).toFixed(2)}deg)`,l.style.zIndex=String(c<.5?40-s:40+s),l.style.setProperty("--shade",x.toFixed(3));const o=c-F[s];c>.04&&c<.96&&Math.abs(o)>.002&&R.push({t:c,n:Math.min(9,Math.ceil(Math.abs(o)*240)),burst:!1}),s===0&&F[0]<.45&&c>=.45&&R.push({t:c,n:90,burst:!0}),F[s]=c}),at.forEach((l,s)=>{if(!l.length)return;const c=u((F[s]-.55)/.45),x=s+1<k.length?u(F[s+1]/.5):0,e=((c===0?0:1+2.4*Math.pow(c-1,3)+1.4*Math.pow(c-1,2))*(1-S(x))).toFixed(3);l.forEach(m=>m.style.setProperty("--pop",e))}),A=i,n.style.setProperty("--fly",a.toFixed(3)),n.style.setProperty("--open",i.toFixed(3)),n.style.setProperty("--flash",f.toFixed(3)),n.style.setProperty("--fill",u((t-1)/(g-1)).toFixed(3)),n.style.setProperty("--end",r.toFixed(3)),n.classList.toggle("is-flown",a>.5),n.classList.toggle("is-end",r>.5);const p=i<.5?-1:Math.min(g-1,Math.max(0,Math.round(t)-1));p!==N&&(N=p,n.dataset.active=String(p),L.forEach((l,s)=>{l.classList.toggle("is-on",s===p),l.classList.toggle("is-past",s<p)}),nt.forEach((l,s)=>l.classList.toggle("is-on",s===p)))};C(0);const E={s:0},rt=(t,a)=>{const r=t*w,i=Math.round(r);return Math.abs(r-i)<.2?i/w:((a?.direction??1)>0?Math.ceil(r):Math.floor(r))/w};let M;const K=(t,a,r)=>{w=r,E.s=0,C(0),M=z.to(E,{s:r,ease:"none",onUpdate:()=>C(E.s),scrollTrigger:{trigger:t,start:"top top",end:()=>`+=${Math.round(window.innerHeight*a)}`,pin:!0,scrub:.7,invalidateOnRefresh:!0,snap:{snapTo:rt,inertia:!1,duration:{min:.3,max:.9},delay:.15,ease:"power2.inOut"}}}).scrollTrigger},Q=z.matchMedia();Q.add("(min-width: 1024px)",()=>K(V,5,g+1)),Q.add("(max-width: 1023px)",()=>
1K(tt,3.6,g)),L.forEach((t,a)=>{t.addEventListener("click",()=>{if(!M)return;const r=M.start+(M.end-M.start)*((a+1)/w);window.scrollTo({top:Math.round(r),behavior:"smooth"})})}),st.addEventListener("focusin",()=>{!M||w===g||E.s>g+.9||window.scrollTo({top:Math.round(M.end)})});let U=0,Z=document.body.scrollHeight;new ResizeObserver(()=>{window.clearTimeout(U),U=window.setTimeout(()=>{const t=document.body.scrollHeight;Math.abs(t-Z)<40||(Z=t,J.refresh())},200)}).observe(document.body);const _=n.querySelector('[data-dust="back"]'),j=n.querySelector('[data-dust="front"]'),h=_.getContext("2d"),d=j.getContext("2d"),I=["255,255,255","179,154,255","255,181,139"];let q=0,b=0;const D=()=>{q=T.clientWidth,b=T.clientHeight;const t=Math.min(2,window.devicePixelRatio||1);for(const[a,r]of[[_,h],[j,d]])a.width=Math.round(q*t),a.height=Math.round(b*t),r.setTransform(t,0,0,t,0,0)};D(),new ResizeObserver(D).observe(T);const it=Array.from({length:B.matches?110:60},()=>({x:Math.random(),y:Math.random(),r:.5+Math.random()**2*2.4,v:.12+Math.random()*.42,ph:Math.random()*6.283,c:I[Math.random()*3|0]})),y=[],ct=window.matchMedia("(pointer: fine)").matches;let O=0,H=0,Y=0,W=0;ct&&(n.addEventListener("pointermove",t=>{const a=n.getBoundingClientRect();O=((t.clientX-a.left)/a.width-.5)*12,H=-((t.clientY-Math.max(a.top,0))/window.innerHeight-.5)*8}),n.addEventListener("pointerleave",()=>{O=0,H=0}));let P=0,X=0;const G=t=>{P=window.requestAnimationFrame(G),X+=1;const a=B.matches,r=T.getBoundingClientRect(),i=et.getBoundingClientRect(),f=a?i.width/2:i.width,p=i.left+i.width/2-r.left,l=a?p-f/2*(1-A):i.left-r.left,s=i.top-r.top,c=i.height;h.clearRect(0,0,q,b),h.globalCompositeOperation="lighter";const x=Math.max(150,f*1.2);for(const o of it){o.y-=o.v/b,o.y<-.02&&(o.y=1.02,o.x=Math.random());const e=o.x*q+Math.sin(X*.012+o.ph)*16,m=o.y*b,$=(.1+.55*Math.exp(-(((e-p)/x)**2))*(.4+.6*A))*(.55+.45*Math.sin(X*.035+o.ph*3));h.fillStyle=`rgba(${o.c},${$.toFixed(3)})`,h.beginPath(),h.arc(e,m,o.r,0,6.283),h.fill(),o.r>1.5&&(h.fillStyle=`rgba(${o.c},${($*.16).toFixed(3)})`,h.beginPath(),h.arc(e,m,o.r*4.5,0,6.283),h.fill())}for(const o of R.splice(0)){const e=l+f*Math.cos(Math.PI*o.t);for(let m=0;m<o.n;m++){const v=Math.random()*6.283,$=1.5+Math.random()*5;y.push(o.burst?{x:l+(Math.random()-.3)*f*.5,y:s+c*(.1+Math.random()*.8),vx:Math.cos(v)*$,vy:Math.sin(v)*$-1.2,born:t,max:700+Math.random()*700,r:.8+Math.random()*2,c:I[Math.random()*3|0]}:{x:e,y:s+c*(.04+Math.random()*.92),vx:(Math.random()-.5)*1.8,vy:-(.4+Math.random()*1.4),born:t,max:450+Math.random()*550,r:.6+Math.random()*1.7,c:I[Math.random()*3|0]})}}y.length>500&&y.splice(0,y.length-500),d.clearRect(0,0,q,b),d.globalCompositeOperation="lighter";for(let o=y.length-1;o>=0;o--){const e=y[o],m=t-e.born;if(m>e.max){y.splice(o,1);continue}e.x+=e.vx,e.y+=e.vy,e.vx*=.96,e.vy=e.vy*.96-.025;const v=1-m/e.max;d.strokeStyle=`rgba(${e.c},${(v*.5).toFixed(3)})`,d.lineWidth=e.r,d.beginPath(),d.moveTo(e.x,e.y),d.lineTo(e.x-e.vx*3,e.y-e.vy*3),d.stroke(),d.fillStyle=`rgba(${e.c},${v.toFixed(3)})`,d.beginPath(),d.arc(e.x,e.y,e.r,0,6.283),d.fill()}Y+=(O-Y)*.06,W+=(H-W)*.06,ot.style.transform=`rotateY(${Y.toFixed(2)}deg) rotateX(${W.toFixed(2)}deg)`};new IntersectionObserver(([t])=>{t?.isIntersecting?P||(P=window.requestAnimationFrame(G)):(window.cancelAnimationFrame(P),P=0)}).observe(n)}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.