PageSourceSearch

https://www.mutual.agency/dist/assets/home-work-SQ_PJPs5.js

js mutual.agency collected 2026-10-09 21:46:35 UTC 4,386 bytes, 1 lines download raw bytes

1import{p as K,o as Q,i as A}from"./app-Btah2L6h.js";import"./app-BivQrMcM.js";import"./analytics-DFaFEWWn.js";const p=.7,V=.6,Z=.74,$=14,tt=28,H=.84,O=.3,k=.3,et=.95,nt=8,ot=.95,st=8,it=.3,at=.3,ct="(min-width: 1000px), (min-height: 560px)",L=e=>e<0?0:e>1?1:e;function rt(e){if(e.hasAttribute("data-hw-dealt"))return;const d=e.querySelector("script[data-hw-deal]");if(!d)return;e.querySelectorAll("noscript").forEach(w=>w.remove());const f=document.createElement("script");f.textContent=d.textContent,d.replaceWith(f)}function ut(){const e=document.querySelector("[data-hero]");if(!e)return;e.hasAttribute("data-hw-bound")||rt(e);const d=e.querySelector("[data-hw]"),f=d&&d.querySelector("[data-hw-track]"),w=d?[...d.querySelectorAll("[data-hw-item]")]:[],G=[...e.querySelectorAll("[data-hw-bg]")],T=()=>e.classList.add("is-in");if(!w.length||e.hasAttribute("data-hw-bound"))return T();e.setAttribute("data-hw-bound","");const h=K(),F=window.matchMedia(ct),S=window.matchMedia("(min-width: 1000px)"),c=w.length,D=e.querySelector("[data-hw-line]"),I=D?[...D.children]:[],b=e.querySelector("[data-hw-bar]");let g="",q=0;function N(n){G.forEach((t,i)=>{const o=L(1-Math.abs(i-n));t.style.opacity=o.toFixed(3),t.style.visibility=o?"visible":"hidden"}),I.forEach((t,i)=>{const o=L((Math.abs(i-n)-it)/at);t.style.opacity=(1-o).toFixed(3),t.style.filter=o?`blur(${(o*st).toFixed(1)}px)`:""})}let v=null;function _(){if(!F.matches){const n=f.getBoundingClientRect().left+f.clientWidth/2;let t=0,i=1/0;return w.forEach((o,r)=>{const u=o.getBoundingClientRect(),M=Math.abs(u.left+u.width/2-n);M<i&&(i=M,t=r)}),{row:!0,best:t}}return{row:!1,vh:window.innerHeight,scrolled:Math.max(0,-e.getBoundingClientRect().top),cw:d.clientWidth,ch:d.clientHeight}}function C(n){if(n.row){v!==!0&&(v=!0,g="",w.forEach(a=>{a.style.transform=a.style.width=a.style.opacity=""}),f.style.opacity="",b&&(b.style.transform=""),I.forEach(a=>a.style.transition="opacity 500ms ease, filter 500ms ease"),A()),N(n.best);return}v!==!1&&(v=!1,I.forEach(a=>a.style.transition=""));const{vh:t,scrolled:i,cw:o,ch:r}=n,u=Math.min(c-1,i/(t*p)),M=Math.min(c-1+k/p,i/(t*p)),B=L((i-(c-1)*t*p)/(t*k));if(f.style.opacity=B>0?(1-B).toFixed(3):"",b){const a=et*(c-1)*t*p,X=(c-1)*t*p,l=L((i-a)/(X-a));b.style.transform=l>0?`translateY(${(l*l*100).toFixed(2)}%)`:""}e.style.setProperty("--hw-p",(c>1?u/(c-1):1).toFixed(4));const y=!S.matches,m=y?Math.min(o*Z,r*16/10):Math.min(o,r*V*16/10),W=m*10/16,U=y?(o-m)/2:o-m;g!==m+"px"&&(g=m+"px",w.forEach(a=>a.style.width=g)),q=y?m*(1+H)/2+$:0,w.forEach((a,X)=>{let l=X-M;l>c/2?l-=c:l<-c/2&&(l+=c);const x=Math.abs(l);if(x>=2){a.style.opacity="0";return}const R=1-Math.min(x,1)*(1-H),j=x<=1?1-x*(1-O):O*(2-x),z=y?l*(m*(1+R)/2+$):0,J=y?0:l*(W*(1+R)/2+tt);a.style.opacity=j.toFixed(3),a.style.transform=`translate3d(${(U+z).toFixed(1)}px,${(J-W/2).toFixed(1)}px,0) scale(${R.toFixed(4)})`}),N(u)}let s=null,E=0;const P=()=>{cancelAnimationFrame(E),E=0};e.addEventListener("touchstart",n=>{if(P(),s=null,!F.matches||S.matches||!q||n.touches.length!==1||n.target instanceof Element&&n.target.closest("form, input, textarea, button, a"))return;const t=n.touches[0];s={x:t.clientX,y:t.clientY,lastX:t.clientX,lastT:performance.now(),vel:0,axis:""}},{passive:!0,signal:h}),e.addEventListener("touchmove",n=>{if(!s||n.touches.length!==1)return;const t=n.touches[0];if(!s.axis){const r=Math.abs(t.clientX-s.x),u=Math.abs(t.clientY-s.y);if(r>=u&&n.cancelable&&n.preventDefault(),Math.max(r,u)<nt)return;if(s.axis=r>u?"x":"y",s.axis==="y")return s=null}n.cancelable&&n.preventDefault();const i=performance.now(),o=(s.lastX-t.clientX)*window.innerHeight*p/q;s.vel=o/Math.max(1,i-s.lastT),s.lastX=t.clientX,s.lastT=i,window.scrollTo(0,window.scrollY+o)},{passive:!1,signal:h});const Y=()=>{if(!s)return;let n=performance.now()-s.lastT<100?s.vel:0;if(s=null,!n)return;let t=performance.now();const i=o=>{const r=o-t;t=o,window.scrollTo(0,window.scrollY+n*r),n*=Math.pow(ot,r/16),E=Math.abs(n)>.02?requestAnimationFrame(i):0};E=requestAnimationFrame(i)};e.addEventListener("touchend",Y,{passive:!0,signal:h}),e.addEventListener("touchcancel",Y,{passive:!0,signal:h}),Q({read:_,write:C},{signal:h,el:e}),f.addEventListener("scroll",A,{passive:!0,signal:h}),F.addEventListener("change",A,{signal:h}),S.addEventListener("change",A,{signal:h}),h.addEventListener("abort",P,{once:!0}),C(_()),T()}export{ut as init};

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.