PageSourceSearch

https://www.ellieinspace.com/_next/static/chunks/CosmosBackdrop-BzAx_eM9.js

js ellieinspace.com collected 2026-10-08 10:55:41 UTC 2,013 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t,r as n}from"./framework-A1pNZAzD.js";var r=e(t(),1),i=n(),a=118,o=4,s={stars:[],shootingStars:[]};function c(e,t){let n=new Uint32Array(2048);crypto.getRandomValues(n);let r=0,i=()=>n[r++]/2**32,a=[`#ffffff`,`#b9dcff`,`#ffe0cf`],o=[{x:16,y:30,spreadX:25,spreadY:15},{x:51,y:78,spreadX:31,spreadY:13},{x:91,y:43,spreadX:22,spreadY:18}],s=Array.from({length:e},(e,t)=>{let n=2+i()*96,r=3+i()*94;if(i()<.38){let e=o[Math.floor(i()*o.length)],t=i()*Math.PI*2,a=Math.sqrt(i());n=e.x+Math.cos(t)*e.spreadX*a,r=e.y+Math.sin(t)*e.spreadY*a}let s=i()<.84?.65+i()*1.15:1.8+i()*1.7,c=a[Math.floor(i()*a.length)],l=s>1.7?`${2+i()*5}px`:`0px`;return{id:t,style:{left:`${Math.max(-1,Math.min(101,n)).toFixed(2)}%`,top:`${Math.max(-1,Math.min(101,r)).toFixed(2)}%`,width:`${s.toFixed(2)}px`,height:`${s.toFixed(2)}px`,opacity:.28+i()*.7,"--star-color":c,"--star-glow":l}}}),c=[[12,55],[125,168],[192,235],[305,348]];return{stars:s,shootingStars:Array.from({length:t},(e,t)=>{let n=c[Math.floor(i()*c.length)],r=n[0]+i()*(n[1]-n[0]),a=r*Math.PI/180,o=280+i()*250,s=Math.cos(a)*o,l=Math.sin(a)*o,u=s>=0,d=l>=0,f=8.5+i()*5;return{id:t,style:{left:`${u?-12+i()*43:69+i()*43}%`,top:`${d?-9+i()*47:62+i()*47}%`,width:`${82+i()*70}px`,animationDelay:`${(-i()*f).toFixed(2)}s`,animationDuration:`${f.toFixed(2)}s`,"--shoot-angle":`${r.toFixed(2)}deg`,"--shoot-x":`${s.toFixed(2)}px`,"--shoot-y":`${l.toFixed(2)}px`}}})}}function l({className:e,starCount:t=a,shootingStarCount:n=o}){let[l,u]=(0,r.useState)(s);return(0,r.useEffect)(()=>{let e=window.requestAnimationFrame(()=>{u(c(t,n))});return()=>window.cancelAnimationFrame(e)},[n,t]),(0,i.jsxs)(`div`,{className:`${e} cosmos-backdrop`,"aria-hidden":`true`,children:[(0,i.jsx)(`div`,{className:`cosmos-stars`,children:l.stars.map(e=>(0,i.jsx)(`span`,{className:`cosmos-star`,style:e.style},e.id))}),l.shootingStars.map(e=>(0,i.jsx)(`span`,{className:`cosmos-shooting-star`,style:e.style},e.id))]})}export{l as default};

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.