"use strict";(globalThis.webpackChunkwordpress_particles=globalThis.webpackChunkwordpress_particles||[]).push([[1097],{1097:(e,t,i)=>{i.r(t),i.d(t,{loadTwinkleUpdater:()=>a});var o=i(3290);class l{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 s{constructor(){this.lines=new l,this.particles=new l}load(e){e&&(this.lines.load(e.lines),this.particles.load(e.particles))}}class n{getColorStyles(e,t,i,l){const s=e.options.twinkle;if(!s)return{};const n=s.particles,a=n.enable&&(0,o.sZ)()<n.frequency,r=e.options.zIndex,c=(1-e.zIndexFactor)**r.opacityRate,d=a?(0,o.Gu)(n.opacity)*c:l,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){e.twinkle||(e.twinkle=new s);for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];for(const t of i)e.twinkle.load(null==t?void 0:t.twinkle)}update(){}}async function a(e){await e.addParticleUpdater("twinkle",(()=>new n))}}}]);