1let w=0,u=[];const p=(e,t,s)=>Math.min(Math.max(e,t),s),E=e=>{u=e.slideNodes().map(t=>t.querySelector(".embla__slide-frame"))},h=e=>{w=.125*e.scrollSnapList().length},d=e=>{const t=e.previousScrollSnap(),s=e.selectedScrollSnap(),n=e.slideNodes(),r=n[t],c=n[s];r.removeAttribute("aria-selected"),c.setAttribute("aria-selected","true")},o=(e,t)=>{const s=e.internalEngine(),n=e.scrollProgress(),r=e.slidesInView(),c=t==="scroll";e.scrollSnapList().forEach((i,N)=>{let l=i-n;s.slideRegistry[N].forEach(a=>{if(c&&!r.includes(a))return;s.options.loop&&s.slideLooper.loopPoints.forEach(g=>{const f=g.target();if(a===g.index&&f!==0){const S=Math.sign(f);S===-1&&(l=i-(1+n)),S===1&&(l=i+(1-n))}});const T=1-Math.abs(l*w),v=p(T,0,1).toString(),_=u[a];_.style.transform=`scale(${v})`})})},I=e=>(E(e),h(e),o(e),e.on("reInit",E).on("reInit",h).on("reInit",o).on("scroll",o).on("slideFocus",o).on("init",d).on("reInit",d).on("select",d),()=>{u.forEach(t=>t.removeAttribute("style"))});export{I as s};
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.