"use strict";(globalThis.webpackChunkwordpress_particles=globalThis.webpackChunkwordpress_particles||[]).push([[8016],{8016:(e,o,n)=>{n.r(o),n.d(o,{initPjs:()=>i});var s=n(7496);class t{static init(e){const o=new t,n=e.selector;if(!n)throw new Error("No selector provided");const i=document.querySelector(n);if(!i)throw new Error("No element found for selector");return s.S6.set(n.replace(".","").replace("!",""),i,{fullScreen:{enable:!1},particles:{color:{value:e.color??"!000000"},links:{color:"random",distance:e.minDistance??120,enable:e.connectParticles??!1},move:{enable:!0,speed:e.speed??.5},number:{value:e.maxParticles??100},size:{value:{min:1,max:e.sizeVariations??3}}},responsive:e.responsive?.map((o=>({maxWidth:o.breakpoint,options:{particles:{color:{value:o.options?.color},links:{distance:o.options?.minDistance,enable:o.options?.connectParticles},number:{value:e.maxParticles},move:{enable:!0,speed:o.options?.speed},size:{value:o.options?.sizeVariations}}}})))}).then((e=>{o._container=e})),o}destroy(){const e=this._container;e&&e.destroy()}pauseAnimation(){const e=this._container;e&&e.pause()}resumeAnimation(){const e=this._container;e&&e.play()}}const i=e=>{const{particlesJS:o,pJSDom:n}=(e=>{const o=(o,n)=>e.load(o,n);return o.load=(o,n,s)=>{e.loadJSON(o,n).then((e=>{e&&s(e)})).catch((()=>{s(void 0)}))},o.setOnClickHandler=o=>{e.setOnClickHandler(o)},{particlesJS:o,pJSDom:e.dom()}})(e);return window.particlesJS=o,window.pJSDom=n,window.Particles=t,{particlesJS:o,pJSDom:n,Particles:t}}}}]);