"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[9180],{9180(i,e,o){o.d(e,{loadPaintUpdater:()=>t});var a=o(3199);class l{#i;#e;constructor(i,e){this.#i=e,this.#e=i}init(i){const e=this.#i,o=i.options,l=(0,a.TA3)(o.paint,i.id,o.reduceDuplicates),t=l?.color,n=t??void 0,r=l?.fill,s=l?.stroke;if(r){const o=a.A9e.create(void 0===n?void 0:a.A9e.create(void 0,n),r.color);i.fillEnabled=r.enable,i.fillOpacity=(0,a.VGA)(r.opacity),i.fillAnimation=o.animation;const l=(0,a.R5R)(this.#e,o);l&&(i.fillColor=(0,a.pzy)(l,i.fillAnimation,e.retina.reduceFactor))}else i.fillEnabled=!1,i.fillAnimation=void 0,i.fillColor=void 0,i.fillOpacity=1;if(s){const o=a.A9e.create(void 0===n?void 0:a.A9e.create(void 0,n),s.color);i.strokeWidth=(0,a.VGA)(s.width)*e.retina.pixelRatio,i.strokeOpacity=(0,a.VGA)(s.opacity??1),i.strokeAnimation=o.animation;const l=(0,a.R5R)(this.#e,o)??i.getFillColor();l&&(i.strokeColor=(0,a.pzy)(l,i.strokeAnimation,e.retina.reduceFactor))}else i.strokeAnimation=void 0,i.strokeColor=void 0,i.strokeOpacity=1,i.strokeWidth=0}isEnabled(i){const{fillAnimation:e,fillColor:o,strokeAnimation:a,strokeColor:l}=i,t=!!e&&(void 0!==o?.h.value&&o.h.enable||void 0!==o?.s.value&&o.s.enable||void 0!==o?.l.value&&o.l.enable),n=!!a&&(void 0!==l?.h.value&&l.h.enable||void 0!==l?.s.value&&l.s.enable||void 0!==l?.l.value&&l.l.enable);return!i.destroyed&&!i.spawning&&(t||n)}update(i,e){this.isEnabled(i)&&((0,a.JvX)(i.fillColor,e),(0,a.JvX)(i.strokeColor,e))}}async function t(i){i.checkVersion("4.1.3"),await i.pluginManager.register(i=>{i.pluginManager.addParticleUpdater("paint",e=>Promise.resolve(new l(i.pluginManager,e)))})}}}]);