PageSourceSearch

https://cdp.com/_astro/HeroDataUniverse.astro_astro_type_script_index_0_lang.BjtrhyH6.js

js cdp.com collected 2026-09-24 10:04:13 UTC 5,673 bytes, 1 lines download raw bytes

1const P=document.getElementById("hero-universe");if(P){let x=function(t,n){const i=Math.cos(R),c=Math.sin(R),e=Math.cos(p),o=Math.sin(p),l=t.x*i+t.z*c,r=-t.x*c+t.z*i,D=t.y*e-r*o,C=t.y*o+r*e,g=H/(H+C);n.x=h+l*b*g+W*8*g,n.y=d+D*b*g+_*8*g,n.z=C,n.k=g},k=function(){if(!f)return;S+=1,v||(R+=J+T,p+=F),T*=.95,F*=.95,p=Math.max(-1.2,Math.min(1.2,p)),s.clearRect(0,0,m,y);const t=b*.34;let n=s.createRadialGradient(h,d,0,h,d,t*3.2);n.addColorStop(0,"rgba(79,209,197,0.28)"),n.addColorStop(.35,"rgba(59,130,246,0.10)"),n.addColorStop(1,"rgba(59,130,246,0)"),s.fillStyle=n,s.fillRect(h-t*3.2,d-t*3.2,t*6.4,t*6.4),s.fillStyle="rgba(148,163,184,0.35)";for(const e of V){if(x(e,a),a.z>2.6)continue;const o=e.s*a.k;s.globalAlpha=.12+.1*a.k,s.fillRect(a.x,a.y,o,o)}s.globalAlpha=1,s.lineWidth=1;const i={x:0,y:0,z:0,k:1};for(const[e,o]of G){x(w[e],a),x(w[o],i);const l=(a.k+i.k)/2;s.strokeStyle=`rgba(96,165,250,${(.16*l*l).toFixed(3)})`,s.beginPath(),s.moveTo(a.x,a.y),s.lineTo(i.x,i.y),s.stroke()}for(const e of w){x(e,a);const o=.75+.25*Math.sin(S*.03+e.tw),l=Math.max(.06,(a.k-.55)*1.15)*o,r=e.s*a.k*1.6;s.fillStyle=`rgba(${e.c[0]},${e.c[1]},${e.c[2]},${l.toFixed(3)})`,s.fillRect(a.x-r/2,a.y-r/2,r,r)}for(const e of tt){e.t+=e.speed,e.t>=1&&(e.t=0,e.src=(e.src+3)%L.length);const o=L[e.src],l=e.t*e.t*(3-2*e.t),r=Math.sin(e.t*Math.PI)*.35,D={x:o.x*(1-l)+Math.sin(e.wob+S*.01)*r,y:o.y*(1-l)+Math.cos(e.wob)*r,z:o.z*(1-l)+Math.sin(e.wob*2)*r};x(D,a);const C=Math.sin(e.t*Math.PI)*.9,g=(1.4+(1-e.t)*1.2)*a.k;s.fillStyle=`rgba(${o.c[0]},${o.c[1]},${o.c[2]},${C.toFixed(3)})`,s.beginPath(),s.arc(a.x,a.y,g,0,6.283),s.fill()}s.font=`600 ${Math.max(9,b*.075)}px Inter, sans-serif`,s.textAlign="center";for(const e of L){x(e,a);const o=Math.max(.15,(a.k-.5)*1.4);s.fillStyle=`rgba(${e.c[0]},${e.c[1]},${e.c[2]},${Math.min(.9,o).toFixed(3)})`,s.beginPath(),s.arc(a.x,a.y,2.6*a.k,0,6.283),s.fill(),s.strokeStyle=`rgba(${e.c[0]},${e.c[1]},${e.c[2]},${(o*.35).toFixed(3)})`,s.lineWidth=1,s.beginPath(),s.arc(a.x,a.y,6*a.k+Math.sin(S*.04+e.x*5)*1.5,0,6.283),s.stroke(),s.fillStyle=`rgba(226,232,240,${(o*.75).toFixed(3)})`,s.fillText(e.label,a.x,a.y-9*a.k)}const c=1+Math.sin(S*.025)*.05;n=s.createRadialGradient(h,d,0,h,d,t*c),n.addColorStop(0,"rgba(79,209,197,0.85)"),n.addColorStop(.5,"rgba(20,184,166,0.35)"),n.addColorStop(1,"rgba(124,58,237,0.05)"),s.fillStyle=n,s.beginPath(),s.arc(h,d,t*c,0,6.283),s.fill();for(let e=0;e<2;e++){const o=(S*.006+e*.5)%1;s.strokeStyle=`rgba(79,209,197,${(.5*(1-o)).toFixed(3)})`,s.lineWidth=1.5,s.beginPath(),s.arc(h,d,t*(.8+o*1.6),0,6.283),s.stroke()}s.fillStyle="rgba(255,255,255,0.95)",s.font=`800 ${Math.max(13,b*.11)}px Inter, sans-serif`,s.fillText("CDP",h,d+b*.01),s.fillStyle="rgba(255,255,255,0.55)",s.font=`500 ${Math.max(8,b*.052)}px Inter, sans-serif`,s.fillText("Unified Profiles",h,d+b*.085),E?f=!1:requestAnimationFrame(k)},U=function(){const t=M.getBoundingClientRect();$=Math.min(2,window.devicePixelRatio||1),P.width=t.width*$,P.height=t.height*$,s.setTransform($,0,0,$,0,0),m=t.width,y=t.height;const n=window.matchMedia("(min-width: 1024px)").matches;h=n?m*.74:m*.5,d=n?y*.46:y*.26,b=n?Math.min(m*.16,y*.34):Math.min(m*.3,y*.22),E&&u&&(f=!0,k())};const s=P.getContext("2d"),M=P.closest("section"),E=window.matchMedia("(prefers-reduced-motion: reduce)").matches;let m=0,y=0,$=1,h=0,d=0,b=1,R=.6,p=-.25,T=0,F=0;const J=E?0:.0016;let v=!1,q=0,O=0,X=!1,W=0,_=0,f=!1,u=!1;const Y=[79,209,197],A=[96,165,250],B=[167,139,250],j=[251,191,36],N=[Y,A,B],I=window.matchMedia("(max-width: 1023px)").matches,z=I?1200:2800,K=I?250:600,Q=I?90:220,w=[],V=[],Z=Math.PI*(3-Math.sqrt(5));for(let t=0;t<z;t++){const i=1-t/z*2,c=Math.sqrt(1-i*i),e=Z*t,o=1+Math.sin(t*12.9898)*43758.5453%1*.16;w.push({x:Math.cos(e)*c*o,y:i*o,z:Math.sin(e)*c*o,c:N[t%N.length],s:.6+t*7919%100/100*1.1,tw:t*2654435761%628/100})}for(let t=0;t<K;t++){const n=(t*9301+49297)%233280/233280,i=(t*49297+9301)%233280/233280,c=(t*233280+9301)%49297/49297,e=1.7+n*2.2,o=i*Math.PI*2,l=c*2-1,r=Math.sqrt(1-l*l);V.push({x:e*r*Math.cos(o),y:e*l,z:e*r*Math.sin(o),s:.4+n})}const L=[{label:"Web",c:A},{label:"Mobile App",c:Y},{label:"CRM",c:B},{label:"Email",c:j},{label:"POS",c:A},{label:"Ads",c:B},{label:"Support",c:Y},{label:"Loyalty",c:j},{label:"IoT",c:A}].map((t,n)=>{const i=n/9*Math.PI*2,c=Math.sin(n*2.7)*.9,e=2.3+n%3*.28,o=Math.sqrt(Math.max(.2,1-c/2.4*(c/2.4)));return{...t,x:Math.cos(i)*e*o,y:c,z:Math.sin(i)*e*o}}),tt=Array.from({length:Q},(t,n)=>({src:n%L.length,t:n*6151%1e3/1e3,speed:.0022+n*271%100/100*.0035,wob:n*977%628/100})),G=[],et=Math.floor(z/(I?90:220));for(let t=0;t<z;t+=et){let n=-1,i=.14;
1for(let c=t+1;c<Math.min(t+400,z);c+=7){const e=w[t],o=w[c],l=(e.x-o.x)**2+(e.y-o.y)**2+(e.z-o.z)**2;l<i&&(i=l,n=c)}n>=0&&G.push([t,n])}const H=3.4,a={x:0,y:0,z:0,k:1};let S=0;window.addEventListener("resize",U),U(),M.addEventListener("pointerdown",t=>{t.target.closest("a, button")||(v=!0,X=!1,q=t.clientX,O=t.clientY,M.classList.add("is-grabbing"))}),window.addEventListener("pointermove",t=>{const n=M.getBoundingClientRect();if(W=(t.clientX-n.left)/Math.max(1,n.width)-.5,_=(t.clientY-n.top)/Math.max(1,n.height)-.5,!v)return;const i=t.clientX-q,c=t.clientY-O;Math.abs(i)+Math.abs(c)>2&&(X=!0),R+=i*.005,p+=c*.004,T=i*6e-4,F=c*4e-4,q=t.clientX,O=t.clientY,E&&!f&&u&&(f=!0,k())}),window.addEventListener("pointerup",()=>{v=!1,M.classList.remove("is-grabbing")}),M.addEventListener("selectstart",t=>{v&&X&&t.preventDefault()}),new IntersectionObserver(([t])=>{u=t.isIntersecting,u&&!f&&(f=!0,requestAnimationFrame(k)),u||(f=!1)},{threshold:.05}).observe(M),document.addEventListener("visibilitychange",()=>{document.hidden?f=!1:u&&!f&&(f=!0,requestAnimationFrame(k))})}

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.