import{r as a,ak as p,al as m,j as s,a2 as x,z as C,L as g,N as P}from"./index.BN4Hj9cC.js";const E=({children:t})=>{const e=a.useContext(p)?.();return e?m.createPortal(t,e):s(x,{children:t})},f=C("div",{target:"e1swy67l0"})({"@media print":{display:"none"}}),u=({className:t,scriptRunId:e,numParticles:o,numParticleTypes:r,ParticleComponent:n})=>{const{resourceCrossOriginMode:i}=a.useContext(g),c=a.useMemo(()=>P(o).map(()=>Math.floor(Math.random()*r)),[o,r]);return s(f,{className:t,"data-testid":t,children:c.map((l,d)=>s(n,{particleType:l,resourceCrossOriginMode:i},e+d))})},M=a.memo(u);export{M as P,E as R};
