PageSourceSearch

https://ejfoundation.org/vite/assets/Hero-f9011506.js

js ejfoundation.org collected 2026-09-24 08:37:01 UTC 2,651 bytes, 2 lines download raw bytes

1import{_ as N,h as R,a as u}from"./lazysizes-f11a459c.js";import{c as k,g as W}from"./_commonjsHelpers-725317a4.js";var w={exports:{}},g={exports:{}};(function(){var e,r,t,s,a,c;typeof performance<"u"&&performance!==null&&performance.now?g.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(g.exports=function(){return(e()-a)/1e6},r=process.hrtime,e=function(){var l;return l=r(),l[0]*1e9+l[1]},s=e(),c=process.uptime()*1e9,a=s-c):Date.now?(g.exports=function(){return Date.now()-t},t=Date.now()):(g.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(k);var q=g.exports,z=q,i=typeof window>"u"?k:window,y=["moz","webkit"],d="AnimationFrame",m=i["request"+d],v=i["cancel"+d]||i["cancelRequest"+d];for(var h=0;!m&&h<y.length;h++)m=i[y[h]+"Request"+d],v=i[y[h]+"Cancel"+d]||i[y[h]+"CancelRequest"+d];if(!m||!v){var $=0,E=0,f=[],C=1e3/60;m=function(e){if(f.length===0){var r=z(),t=Math.max(0,C-(r-$));$=t+r,setTimeout(function(){var s=f.slice(0);f.length=0;for(var a=0;a<s.length;a++)if(!s[a].cancelled)try{s[a].callback($)}catch(c){setTimeout(function(){throw c},0)}},Math.round(t))}return f.push({handle:++E,callback:e,cancelled:!1}),E},v=function(e){for(var r=0;r<f.length;r++)f[r].handle===e&&(f[r].cancelled=!0)}}w.exports=function(e){return m.call(i,e)};w.exports.cancel=function(){v.apply(i,arguments)};w.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=m,e.cancelAnimationFrame=v};var L=w.exports;const _=W(L);function b({node:e,plugins:{device:r}}){const t=e.querySelector(".hero__video > video, .hero__video > iframe");u.set(t,{opacity:0});const{clientWidth:s,clientHeight:a}=e;function c(n,o){const{width:p,height:x}=t,A=p/x;t.style.height=`${o}px`,t.style.width=`${o*A}px`,t.clientWidth<n&&(t.style.width=`${n}px`,t.style.height=`${n*(1/A)}px`),u({targets:t,opacity:1,easing:"linear"})}c(s,a),r.resize(()=>{const{clientWidth:n,clientHeight:o}=e;c(n,o)});const l={...JSON.parse(e.dataset.messages)};delete l[0];const T=e.querySelector(".js-hero-text");let S=1;function F(n){return n.split("").reduce((o,p)=>(o+=`<span>${p}</span>`,o),"")}function M(n){Object.keys(l).forEach((o,p)=>{const x=parseInt(o,0);if(x>n-1&&x<n+1){if(S===p)return!1;S=p,u({targets:T.querySelectorAll("span"),opacity:[1,0],easing:"linear",delay:u.stagger(50),complete:()=>{T.innerHTML=F(l[o]),u({targets:T.querySelectorAll("span"),opacity:[0,1],easing:"linear",delay:u.stagger(50,{direction:"reverse"})})}})}})}let D=0;function H(n){n>=D+1e3&&(M(n/1e3),D=n),_(H)}return window.onload=()=>{_(H)},()=>{}}const j=N(R)(b);export{j as default};
2//# sourceMappingURL=Hero-f9011506.js.map

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.