"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[8360],{8360(e,a,r){r.d(a,{loadRoundedRectShape:()=>o});var i=r(3199);class t{draw(e){const{context:a,particle:r,radius:t}=e,o=t*Math.SQRT1_2,n=o*i.gdl,s=r.borderRadius??5;"roundRect"in a?a.roundRect(-o,-o,n,n,s):function(e,a,r,i){const t={x:-a,y:-a,height:r,width:r},o=i,n=i,s=i,d=i,{x:c,y:u,width:l,height:h}=t,p=c+l,T=u+h;e.moveTo(c+o,u),e.lineTo(p-n,u),e.quadraticCurveTo(p,u,p,u+n),e.lineTo(p,u+h-d),e.quadraticCurveTo(p,T,p-d,T),e.lineTo(c+s,T),e.quadraticCurveTo(c,T,c,T-s),e.lineTo(c,u+o),e.quadraticCurveTo(c,u,c+o,u)}(a,o,n,s)}particleInit(e,a){const r=a.shapeData;a.borderRadius=(0,i.VGA)(r?.radius??5)*e.retina.pixelRatio}}async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addShape(["rounded-rect"],()=>Promise.resolve(new t))})}}}]);