"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[1859,6554],{6554(e,n,a){a.d(n,{loadBrownianPath:()=>s});var t=a(1859),i=a(3199);class r{options;#e;#n;constructor(e){this.#e=e,this.#n=i.Miz.origin,this.options={angleDelta:Math.PI/12,damping:i.D_O}}generate(e){e.brownian??={angle:(0,i.G0i)()*i.R1e,speed:e.velocity.length};const n=e.brownian,a=(2*(0,i.G0i)()-1)*(this.options.angleDelta??0);n.angle+=a;const t=this.options.damping??i.D_O;return e.velocity.x=0,e.velocity.y=0,this.#n.length=n.speed*t,this.#n.angle=n.angle,this.#n}init(){const e=this.#e.actualOptions.particles.move.path.options;this.options.angleDelta=e.angleDelta??this.options.angleDelta,this.options.damping=e.damping??this.options.damping}reset(e){delete e.brownian}update(){}}async function s(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{(0,t.g)(e),e.pluginManager.addPathGenerator?.("brownianPathGenerator",e=>Promise.resolve(new r(e)))})}},1859(e,n,a){a.d(n,{g:()=>s,loadMovePlugin:()=>r});var t=a(3199);class i{id="move";#a;constructor(e){this.#a=e}async getPlugin(e){const{MovePluginInstance:n}=await a.e(5272).then(a.bind(a,5272));return new n(this.#a,e)}loadOptions(){}needsPlugin(){return!0}}async function r(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{const n=e.pluginManager;n.initializers.pathGenerators??=new Map,n.pathGenerators??=new Map,n.addPathGenerator=(e,a)=>{n.initializers.pathGenerators??=new Map,n.initializers.pathGenerators.set(e,a)},n.getPathGenerators=async(e,a=!1)=>(n.initializers.pathGenerators??=new Map,n.pathGenerators??=new Map,(0,t.OtU)(e,n.pathGenerators,n.initializers.pathGenerators,a)),e.pluginManager.addPlugin(new i(e.pluginManager))})}function s(e){if(!e.pluginManager.addPathGenerator)throw new Error("tsParticles Base Mover is not loaded")}}}]);