"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[844],{844(e,i,o){o.d(i,{loadTwinkleUpdater:()=>n});var t=o(3199);class l{color;enable=!1;frequency=.05;opacity=1;load(e){(0,t.kZJ)(e)||(void 0!==e.color&&(this.color=t.Oit.create(this.color,e.color)),(0,t.kBH)(this,"enable",e.enable),(0,t.kBH)(this,"frequency",e.frequency),(0,t.dPX)(this,"opacity",e.opacity))}}class r{enable=!1;fillColor;frequency=.05;opacity=1;strokeColor;load(e){(0,t.kZJ)(e)||(void 0!==e.fillColor&&(this.fillColor=t.Oit.create(this.fillColor,e.fillColor)),void 0!==e.strokeColor&&(this.strokeColor=t.Oit.create(this.strokeColor,e.strokeColor)),(0,t.kBH)(this,"enable",e.enable),(0,t.kBH)(this,"frequency",e.frequency),(0,t.dPX)(this,"opacity",e.opacity))}}class a{links=new l;particles=new r;load(e){(0,t.kZJ)(e)||(this.links.load(e.links),this.particles.load(e.particles))}}class s{#e;#i;constructor(e,i){this.#i=e,this.#e=i}getColorStyles(e,i,o,l){const r=e.options,a=this.#e,s=r.twinkle;if(!s)return{};const n=s.particles,c=n.enable&&(0,t.G0i)()<n.frequency,p=e.options.zIndex,d=(1-e.zIndexFactor)**p.opacityRate,h=c?(0,t.VGA)(n.opacity)*d:l,k=(0,t.R5R)(this.#i,n.fillColor),u=(0,t.R5R)(this.#i,n.strokeColor),f=(()=>{if(k)return(0,t.LCf)(k,a.hdr,h)})(),g=(()=>{if(u)return(0,t.LCf)(u,a.hdr,h)})(),y={},C=c&&(!!f||!!g);return y.fill=C?f:void 0,y.stroke=C?g:void 0,y}init(){}isEnabled(e){const i=e.options.twinkle;return!!i&&i.particles.enable}loadOptions(e,...i){(0,t.Ret)(e,"twinkle",a,...i)}update(){}}async function n(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("twinkle",i=>Promise.resolve(new s(e.pluginManager,i)))})}}}]);