PageSourceSearch

https://weneed.ch/_nuxt/Bu6aspiy.js

js weneed.ch collected 2026-10-02 00:05:26 UTC 2,225 bytes, 1 lines download raw bytes

1import{g as p}from"./DDlvirwQ.js";import{S as h}from"./CG0zx5Uh.js";function E(){function d(t,a,c,f){h.create({trigger:t,animation:b(a,c,f),start:"top top",end:"bottom top",scrub:!0,markers:!1})}function b(t,a,c){return p.fromTo(t,{yPercent:a},{yPercent:c})}function T(t,a,c){const f=t.currentSrc||t.src,S=/Android/i.test(navigator.userAgent),A=/Firefox/i.test(navigator.userAgent);p.registerPlugin(h);function o(r,e,n,i){const u=function s(...m){r.removeEventListener(e,s),n.apply(this,m)};r.addEventListener(e,u,i)}if(S)new IntersectionObserver(e=>{e.forEach(n=>{n.isIntersecting?t.play().catch(()=>{}):t.pause()})},{threshold:.5}).observe(a);else if(o(document.documentElement,"touchstart",function(){t.muted=!0,t.play().then(()=>t.pause()).catch(()=>{})}),t.preload="auto",t.playsInline=!0,A){let r=0,e=null,n=0;const i=33,u="fastSeek"in t,s=()=>{if(t.readyState<2||!t.duration){setTimeout(s,100);return}t.pause();const m=()=>{const l=performance.now();if(l-n>=i){const g=Math.abs(t.currentTime-r);if(g>.066)try{g>.5&&u?t.fastSeek(r):t.currentTime=r,n=l}catch{}else n=l}e=requestAnimationFrame(m)};h.create({trigger:a,start:`top ${c}`,end:"+=300%",pin:!0,pinSpacing:!0,markers:!1,onUpdate:l=>{r=l.progress*t.duration},onEnter:()=>{t.pause(),e===null&&(n=performance.now(),e=requestAnimationFrame(m))},onLeave:()=>{e!==null&&(cancelAnimationFrame(e),e=null)},onLeaveBack:()=>{e!==null&&(cancelAnimationFrame(e),e=null)}})};t.readyState>=2?s():o(t,"loadeddata",s)}else{const r=p.timeline({scrollTrigger:{trigger:a,start:`top ${c}`,end:"+=300%",scrub:1,pin:!0,pinSpacing:!0,markers:!1}});o(t,"loadedmetadata",()=>{r.fromTo(t,{currentTime:0},{currentTime:t.duration||1,ease:"none"})}),setTimeout(function(){fetch(f).then(n=>{if(!n.ok)throw new Error("Video fetch failed");return n.blob()}).then(n=>{const i=URL.createObjectURL(n);o(document.documentElement,"touchstart",function(){t.muted=!0,t.play().then(()=>t.pause()).catch(()=>{})});const u=t.currentTime;o(t,"loadeddata",()=>{t.currentTime=u,t.play().then(()=>t.pause()).catch(()=>{})}),t.setAttribute("src",i)}).catch(n=>{console.warn("Blob optimization failed, using direct source:",n)})},1e3)}}return{useParallaxAnimation:d,useVideoScrollAnimation:T}}export{E as u};

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.