"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[5650],{5650(a,s,t){t.d(s,{AbsorbersPluginInstance:()=>r});var n=t(3199);class r{#a;#s;constructor(a,s){this.#a=a,this.#s=s,this.#s.initContainer(a)}draw(a){for(const s of this.#s.getArray(this.#a))s.draw(a)}async init(){const a=this.#a.actualOptions.absorbers,s=(0,n.wJ2)(a,async a=>{await this.#s.addAbsorber(this.#a,a)});(0,n.cyL)(s)?await Promise.all(s):await s}particleUpdate(a,s){for(const t of this.#s.getArray(this.#a))if(t.attract(a,s),a.destroyed)break}resize(){for(const a of this.#s.getArray(this.#a))a.resize()}stop(){this.#s.clear(this.#a)}}}}]);