"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[6102],{6102:(t,a,s)=>{s.d(a,{loadRoundedPolygonShape:()=>n});var e=s(9201);class o{draw(t){const{context:a,particle:s,radius:e}=t;!function(t,a,s){let e=a[0],o=a[1];const n=a.length;t.moveTo((e.x+o.x)/2,(e.y+o.y)/2);for(let r=1;r<=n;r++)e=o,o=a[(r+1)%n],t.arcTo(e.x,e.y,(e.x+o.x)/2,(e.y+o.y)/2,s)}(a,function(t,a,s=0){const e=2*Math.PI/t,o=[];for(let n=0;n<t;n++)o.push({x:Math.cos(n*e+s)*a,y:Math.sin(n*e+s)*a});return o}(s.sides,e),s.borderRadius??5)}getSidesCount(t){const a=t.shapeData;return Math.round((0,e.Gu)(a?.sides??5))}particleInit(t,a){const s=a.shapeData;a.borderRadius=Math.round((0,e.Gu)(s?.radius??5))*t.retina.pixelRatio}}async function n(t,a=!0){await t.addShape("rounded-polygon",new o,a)}}}]);