"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[9470],{9470:(e,t,i)=>{i.d(t,{loadTwinkleUpdater:()=>a});var o=i(9201);class s{constructor(){this.enable=!1,this.frequency=.05,this.opacity=1}load(e){e&&(void 0!==e.color&&(this.color=o.Oz.create(this.color,e.color)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.frequency&&(this.frequency=e.frequency),void 0!==e.opacity&&(this.opacity=(0,o.Cs)(e.opacity)))}}class l{constructor(){this.lines=new s,this.particles=new s}load(e){e&&(this.lines.load(e.lines),this.particles.load(e.particles))}}class n{getColorStyles(e,t,i,s){const l=e.options.twinkle;if(!l)return{};const n=l.particles,a=n.enable&&(0,o.sZ)()<n.frequency,c=e.options.zIndex,r=(1-e.zIndexFactor)**c.opacityRate,d=a?(0,o.Gu)(n.opacity)*r:s,p=(0,o.lN)(n.color),h=p?(0,o.vz)(p,d):void 0,u={},w=a&&h;return u.fill=w?h:void 0,u.stroke=w?h:void 0,u}init(){}isEnabled(e){const t=e.options.twinkle;return!!t&&t.particles.enable}loadOptions(e,...t){e.twinkle||(e.twinkle=new l);for(const i of t)e.twinkle.load(i?.twinkle)}update(){}}async function a(e,t=!0){await e.addParticleUpdater("twinkle",(()=>new n),t)}}}]);