PageSourceSearch

https://www.grasp-ai.com/_astro/product.astro_astro_type_script_index_0_lang.DxmEr1xo.js

js grasp-ai.com collected 2026-10-08 01:17:49 UTC 1,738 bytes, 1 lines download raw bytes

1var e=window.matchMedia(`(prefers-reduced-motion: reduce)`);document.querySelectorAll(`[data-carousel]`).forEach(t=>{let n=t.querySelector(`.track`),r=t.querySelector(`.slides`),i=t.querySelector(`.next`),a=t.querySelector(`.count`);if(!n||!r||!i||!a)return;let o=Array.from(r.children),s=()=>{let e=n.scrollWidth-n.clientWidth,t=r.getBoundingClientRect().left;return o.map(r=>{let{left:i,width:a}=r.getBoundingClientRect(),o=i-t-(n.clientWidth-a)/2;return Math.min(Math.max(o,0),e)})},c=e=>{let t=s();return t.reduce((n,r,i)=>Math.abs(r-e)<Math.abs(t[n]-e)?i:n,0)},l=t=>{n.scrollTo({left:s()[t],behavior:e.matches?`auto`:`smooth`})};n.addEventListener(`scroll`,()=>{let e=`${c(n.scrollLeft)+1} / ${o.length}`;a.textContent!==e&&(a.textContent=e)},{passive:!0}),i.addEventListener(`click`,()=>{l((c(n.scrollLeft)+1)%o.length)});let u,d;n.addEventListener(`pointerdown`,e=>{e.pointerType===`touch`||!e.isPrimary||e.button!==0||d||(d={pointerId:e.pointerId,startX:e.clientX,startScroll:n.scrollLeft},n.setPointerCapture(e.pointerId),n.classList.add(`is-dragging`))}),n.addEventListener(`pointermove`,e=>{!d||e.pointerId!==d.pointerId||(n.scrollLeft=d.startScroll-(e.clientX-d.startX))});let f=e=>{if(!d||e.pointerId!==d.pointerId)return;let t=c(d.startScroll),r=n.scrollLeft-d.startScroll;d=void 0,n.classList.add(`is-settling`),n.classList.remove(`is-dragging`),window.clearTimeout(u),u=window.setTimeout(()=>n.classList.remove(`is-settling`),600),n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId);let i=c(n.scrollLeft);i===t&&Math.abs(r)>40&&(i=Math.min(o.length-1,Math.max(0,t+Math.sign(r)))),l(i)};n.addEventListener(`pointerup`,f),n.addEventListener(`pointercancel`,f),n.addEventListener(`lostpointercapture`,f)});

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.