PageSourceSearch

https://artificial.io/_astro/pinned-list-scroll-block.astro_astro_…?dpl=dpl_Hdjgkrf3DSHA58yuYnSM75hYcvrU

js artificial.io collected 2026-10-01 15:34:02 UTC 8,940 bytes, 1 lines download raw bytes

1import{t as e}from"./lenis-instance.CUTSZyPP.js?dpl=dpl_Hdjgkrf3DSHA58yuYnSM75hYcvrU";var t={gap:20,centerGap:24,headY:60,feedStep:20,nPer:3,arcAdv:40,tailTrim:7},n=`c10.606 0 20.777 4.212 28.278 11.709`,r=`c7.505 7.502 11.722 17.679 11.722 28.291`,i=`c-10.606 0 -20.777 4.212 -28.278 11.709`,a=`c-7.505 7.502 -11.722 17.679 -11.722 28.291`,o=[[43.526,43.506],[31.804,31.789],[20.083,20.074]],s=[`#E9E3DF`,`#FFFFB0`,`#FFFF9F`,`#E6E389`,`#9A9856`,`#5C5A41`,`#373533`],c=(e,n,r)=>r/2+e*(t.centerGap/2+t.gap*n),l=e=>t.headY+t.feedStep*e,u=()=>[-1,1].flatMap(e=>Array.from({length:t.nPer},(t,n)=>({side:e,r:n,lit:!0}))),d=(e,s,u,d)=>{let f=c(e,s,u),p=l(s),[m,h]=o[s],g=e<0?0:u,_=f+e*(t.arcAdv+m),v=e<0?n:i,y=e<0?r:a,b=e<0?`l${m} ${h}`:`l${-m} ${h}`;return`M${g} ${p} H${_.toFixed(2)} ${v} ${b} ${y} V${(d-t.tailTrim).toFixed(2)}`},f=e=>e<0?0:e>1?1:e,p=.6,m=1,h=.5,g=192,_=2,v=2,y=2,b=`#E3DBD7`,ee=2,x={desktop:[.8,1],mobile:[.6,.95]},te=`(max-width: 960px)`,S=s.map(e=>[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16)]),C=e=>{let t=S.length-1,n=f(e)*t,r=Math.min(t-1,Math.floor(n)),i=n-r,[a,o]=[S[r],S[r+1]];return`${Math.round(a[0]+(o[0]-a[0])*i)},${Math.round(a[1]+(o[1]-a[1])*i)},${Math.round(a[2]+(o[2]-a[2])*i)}`},ne=Array.from({length:256},(e,t)=>`rgb(${C(t/255)})`),w=32,T=.001,E=6,D=(e,t,n)=>{let r=e.length-1,i=n/r,a=n=>{let r=e[n]-e[n-1],i=t[n]-t[n-1],a=e[n+1]-e[n],o=t[n+1]-t[n],s=Math.hypot(r,i),c=Math.hypot(a,o);return s&&c?Math.abs(r*o-i*a)/(s*c):1},o=new Uint8Array(r);for(let e=0;e<r;e++){let t=e>0&&a(e)<T,n=e<r-1&&a(e+1)<T;o[e]=t||n?1:0}let s=[],c=0;for(let e=1;e<=r;e++){if(e<r&&o[e]===o[c])continue;let t=!!o[c]&&e-c>=E,a=s[s.length-1];a&&a.straight===t?a.b=Math.min(n,e*i):s.push({a:c*i,b:Math.min(n,e*i),straight:t}),c=e}return s},re=e=>{let t=e.getTotalLength();if(!t)return null;let n=Math.max(2,Math.ceil(t)+1),r=new Float32Array(n),i=new Float32Array(n);for(let a=0;a<n;a++){let o=e.getPointAtLength(Math.min(t,a*t/(n-1)));r[a]=o.x,i[a]=o.y}return{xs:r,ys:i,total:t,runs:D(r,i,t)}},O=[[`l`,0,8.15],[`a`,1,1,.99,1],[`l`,5,0],[`a`,1,1,1.01,-1],[`l`,0,-15.57],[`l`,-6.71,6.71],[`a`,1,1,-.29,.7]],k=270,ie=6.5,ae=-3,oe=new Path2D((e=>{let t=e*Math.PI/180,n=Math.cos(t),r=Math.sin(t),i=`M0 0`;for(let e of O){let[t,a]=e[0]===`l`?[e[1],e[2]]:[e[3],e[4]],o=(t*n-a*r).toFixed(3),s=(t*r+a*n).toFixed(3);i+=e[0]===`l`?`l${o} ${s}`:`a${e[1]} ${e[2]} 0 0 0 ${o} ${s}`}return`${i}z`})(k));function se(e,t,n,r,i){let a=e.querySelectorAll(`.pls-base path`);u().forEach((e,r)=>a[r]?.setAttribute(`d`,d(e.side,e.r,t,n))),e.setAttribute(`viewBox`,`0 0 ${t} ${n}`);let o=Math.min(.49,r/t),s=e.querySelectorAll(`[data-pls-fade-x] stop`);s[1]?.setAttribute(`offset`,String(.01+o)),s[2]?.setAttribute(`offset`,String(.99-o));
1let c=e.querySelector(`[data-pls-edge-fade]`);c?.setAttribute(`mask`,r?c.getAttribute(`data-pls-edge-fade`)??`none`:`none`);let[l,f]=i?x.mobile:x.desktop,p=e.querySelectorAll(`[data-pls-fade-y] stop`);p[0]?.setAttribute(`offset`,String(l)),p[1]?.setAttribute(`offset`,String(f)),e.setAttribute(`data-measured`,``)}function A(t,n,r){let i=t.querySelector(`[data-pls-svg]`),a=Array.from(t.querySelectorAll(`[data-pls-canvas]`)).flatMap(e=>{let t=e.getContext(`2d`);return t?[{el:e,ctx:t,x:0,y:0,w:0,h:0}]:[]}),o=null,s=0,c=0,l=t.querySelector(`[data-pls-list]`),u=l?Array.from(l.children):[],d=i?Array.from(i.querySelectorAll(`.pls-base path`)):[],x=t.querySelector(`[data-pls-inner]`),T=window.matchMedia(te),E=[],D=0,O=0,k=1,A=-1,j=0,M=0,N=0,P=()=>{if(!i)return;let e=i.getBoundingClientRect(),t=e.width,n=e.height;t&&n&&(j=T.matches||!x?0:parseFloat(getComputedStyle(x).paddingLeft)||0,M=t*.01,N=t*.99,se(i,t,n,j,T.matches),D=t,O=n,E=d.map(re).filter(e=>!!e),k=Math.min(window.devicePixelRatio||1,ee),ce(t,n).forEach((e,t)=>le(a[t],e)),A=-1,me())},ce=(e,t)=>{let n={x:0,y:0,w:e,h:t},r={x:0,y:0,w:0,h:0};if(a.length<2)return[n];if(!E.length)return[n,r];let i=0,o=1/0,s=-1/0;for(let e of E){let t=e.runs[e.runs.length-1];if(!t?.straight)return[n,r];F(e,t.a,R),i=Math.max(i,R.y),o=Math.min(o,R.x),s=Math.max(s,R.x)}let c=Math.min(t,Math.ceil((i+w)*k)/k),l=Math.max(0,Math.floor((o-w)*k)/k),u=Math.min(e,Math.ceil((s+w)*k)/k);return[{x:0,y:0,w:e,h:c},{x:l,y:c,w:u-l,h:t-c}]},le=(e,t)=>{e&&(Object.assign(e,t),e.el.style.left=`${t.x}px`,e.el.style.top=`${t.y}px`,e.el.style.width=`${t.w}px`,e.el.style.height=`${t.h}px`,e.el.width=Math.round(t.w*k),e.el.height=Math.round(t.h*k))},F=(e,t,n)=>{let r=e.xs.length,i=Math.max(0,Math.min(r-1,t/e.total*(r-1))),a=Math.min(r-2,Math.floor(i)),o=i-a;n.x=e.xs[a]+(e.xs[a+1]-e.xs[a])*o,n.y=e.ys[a]+(e.ys[a+1]-e.ys[a])*o},I=e=>j?f((e-M)/j)*f((N-e)/j):1,L=(e,t)=>{let{ys:n,total:r}=e,i=0,a=n.length-1;if(t<=n[0])return 0;if(t>=n[a])return r;for(;i<a;){let e=i+a>>1;n[e]<t?i=e+1:a=e}return i/(n.length-1)*r},R={x:0,y:0},z={x:0,y:0},B={x:0,y:0},ue=(e,t,n,r)=>{if(o){F(e,t,R);for(let i=t;i<n;i+=v){let t=Math.min(n,i+v);F(e,t,z);let a=(r-(i+t)/2)/e.total*1e3;o.strokeStyle=ne[Math.max(0,Math.min(255,Math.round(a/g*255)))],o.globalAlpha=I((R.x+z.x)/2),o.beginPath(),o.moveTo(R.x,R.y),o.lineTo(z.x,z.y),o.stroke(),R.x=z.x,R.y=z.y}}},V=[],de=(e,t,n,r)=>{if(!o)return;F(e,t,R),F(e,n,z);let i=n-t,a=z.x-R.x,s=g/1e3*e.total;V.length=0,V.push(0,1);for(let e=1;e<S.length-1;e++){let n=(r-e/(S.length-1)*s-t)/i;n>0&&n<1&&V.push(n)}if(j&&Math.abs(a)>.001)for(let e of[M,M+j/2,M+j,N-j,N-j/2,N]){let t=(e-R.x)/a;t>0&&t<1&&V.push(t)}V.sort((e,t)=>e-t);let c=o.createLinearGradient(R.x,R.y,z.x,z.y);for(let n of V){let o=(r-(t+n*i))/e.total*1e3/g;c.addColorStop(n,`rgba(${C(o)},${I(R.x+n*a)})`)}o.strokeStyle=c,o.globalAlpha=1,o.beginPath(),o.moveTo(R.x,R.y),o.lineTo(z.x,z.y),o.stroke()},fe=(e,t,n,r)=>{if(!o)return;let{total:i}=e,a=(t*1e3-_)/1e3*i,l=Math.max(0,a-g/1e3*i),u=Math.max(l,Math.min(i,a)-y/2);if(u>l){o.lineWidth=y,o.lineCap=`round`;for(let t of e.runs){let i=Math.max(l,t.a,n),o=Math.min(u,t.b,r);o-i<.25||(t.straight?de(e,i,o,a):ue(e,i,o,a))}}let d=Math.max(0,Math.min(i,t*i));if(d<n||d>r)return;F(e,d,R),F(e,Math.max(0,d-1.5),z),F(e,Math.min(i,d+1.5),B);let f=Math.atan2(B.y-z.y,B.x-z.x),p=Math.cos(f),m=Math.sin(f),h=R.x-m*ie+p*ae,v=R.y+p*ie+m*ae;o.globalAlpha=I(R.x),o.setTransform(k*p,k*m,-k*m,k*p,k*(h-s),k*(v-c)),o.fillStyle=b,o.fill(oe),o.strokeStyle=b,o.lineWidth=1,o.stroke(oe),o.setTransform(k,0,0,k,-s*k,-c*k)},pe=e=>{if(a.length&&D&&O&&e!==A){A=e;for(let t of a)if(t.w&&t.h&&(o=t.ctx,s=t.x,c=t.y,o.setTransform(k,0,0,k,-s*k,-c*k),o.clearRect(s,c,t.w,t.h),!n))for(let n of E)fe(n,e,L(n,c-w),L(n,c+t.h+w));o=null}},H=u.map(e=>
1e.querySelector(`[data-pls-toggle]`)),U=(e,t)=>{u[e]?.toggleAttribute(`data-open`,t),H[e]?.setAttribute(`aria-expanded`,String(t))},W=()=>{if(!l)return;let e=u.map(e=>e.hasAttribute(`data-open`));l.style.minHeight=``;let t=0;u.forEach((e,n)=>{H[n]&&(u.forEach((e,t)=>e.toggleAttribute(`data-open`,t===n||!H[t])),t=Math.max(t,l.getBoundingClientRect().height))}),u.forEach((t,n)=>t.toggleAttribute(`data-open`,e[n])),t&&(l.style.minHeight=`${Math.ceil(t)}px`)},G=0,K=()=>{t.isConnected&&(t.setAttribute(`data-pls-snap`,``),W(),t.offsetHeight,requestAnimationFrame(()=>t.removeAttribute(`data-pls-snap`)))};if(H.some(Boolean)){u.forEach((e,t)=>{let n=H[t];if(!n){e.setAttribute(`data-open`,``);return}U(t,t===0);let i=()=>{let n=e.hasAttribute(`data-open`);u.forEach((e,t)=>H[t]&&U(t,!1)),n||U(t,!0)};n.addEventListener(`click`,i),r.push(()=>n.removeEventListener(`click`,i))}),t.setAttribute(`data-pls-snap`,``),t.setAttribute(`data-accordion`,``),W(),t.offsetHeight,requestAnimationFrame(()=>t.removeAttribute(`data-pls-snap`));let e=()=>{G||=requestAnimationFrame(()=>{G=0,K()})};window.addEventListener(`resize`,e,{passive:!0}),r.push(()=>window.removeEventListener(`resize`,e)),document.fonts?.ready.then(K)}let q=null,J=0,Y=0,X=0,me=()=>{let e=t.getBoundingClientRect();J=e.top+window.scrollY,Y=e.height,X=window.innerHeight},Z=(e=q?.scroll??window.scrollY)=>{if(!Y)return;let t=J-e,n=X*m,r=X*h-Y;pe(f((n-t)/(n-r))**+p)},Q=0,$=()=>{Q||=requestAnimationFrame(()=>{Q=0,P(),n||Z()})};if(P(),i){let e=new ResizeObserver($);e.observe(i),r.push(()=>e.disconnect())}if(!n){let t=new ResizeObserver(()=>{me(),Z()});t.observe(document.documentElement);let n=null,i=e(e=>{if(n?.(),q=e,e)n=e.on(`scroll`,()=>Z(e.scroll));else{let e=()=>Z(window.scrollY);window.addEventListener(`scroll`,e,{passive:!0}),n=()=>window.removeEventListener(`scroll`,e)}Z()});window.addEventListener(`resize`,$,{passive:!0}),r.push(()=>{t.disconnect(),i(),n?.(),window.removeEventListener(`resize`,$)})}r.push(()=>{Q&&cancelAnimationFrame(Q),G&&cancelAnimationFrame(G)})}function j(e){let t=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;document.querySelectorAll(`[data-pinned-list-scroll]`).forEach(n=>{try{A(n,t,e)}catch{n.removeAttribute(`data-accordion`)}})}var M=[],N=()=>{for(let e of M)try{e()}catch{}M.length=0};document.addEventListener(`astro:page-load`,()=>{N(),j(M)}),document.addEventListener(`astro:before-swap`,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.