@tsparticles/preset-big-circles 4.2.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/preset-big-circles",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "tsParticles big circles preset",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -105,8 +105,8 @@
105
105
  "./package.json": "./package.json"
106
106
  },
107
107
  "dependencies": {
108
- "@tsparticles/basic": "4.2.0",
109
- "@tsparticles/engine": "4.2.0"
108
+ "@tsparticles/basic": "4.2.1",
109
+ "@tsparticles/engine": "4.2.1"
110
110
  },
111
111
  "publishConfig": {
112
112
  "access": "public"
@@ -1,5 +1,5 @@
1
1
  (function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
2
- /* Preset v4.2.0 */
2
+ /* Preset v4.2.1 */
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
5
5
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
@@ -796,7 +796,7 @@
796
796
  return this.#domArray;
797
797
  }
798
798
  get version() {
799
- return "4.2.0";
799
+ return "4.2.1";
800
800
  }
801
801
  addEventListener(type, listener) {
802
802
  this.#eventDispatcher.addEventListener(type, listener);
@@ -2072,7 +2072,7 @@
2072
2072
  }
2073
2073
 
2074
2074
  async function loadBlendPlugin(engine) {
2075
- engine.checkVersion("4.2.0");
2075
+ engine.checkVersion("4.2.1");
2076
2076
  await engine.pluginManager.register(e => {
2077
2077
  e.pluginManager.addPlugin(new BlendPlugin());
2078
2078
  });
@@ -2109,7 +2109,7 @@
2109
2109
  }
2110
2110
 
2111
2111
  async function loadCircleShape(engine) {
2112
- engine.checkVersion("4.2.0");
2112
+ engine.checkVersion("4.2.1");
2113
2113
  await engine.pluginManager.register(e => {
2114
2114
  e.pluginManager.addShape(["circle"], () => {
2115
2115
  return Promise.resolve(new CircleDrawer());
@@ -2157,7 +2157,7 @@
2157
2157
  }
2158
2158
 
2159
2159
  async function loadHexColorPlugin(engine) {
2160
- engine.checkVersion("4.2.0");
2160
+ engine.checkVersion("4.2.1");
2161
2161
  await engine.pluginManager.register(e => {
2162
2162
  e.pluginManager.addColorManager("hex", new HexColorManager());
2163
2163
  });
@@ -2210,7 +2210,7 @@
2210
2210
  }
2211
2211
 
2212
2212
  async function loadHslColorPlugin(engine) {
2213
- engine.checkVersion("4.2.0");
2213
+ engine.checkVersion("4.2.1");
2214
2214
  await engine.pluginManager.register(e => {
2215
2215
  e.pluginManager.addColorManager("hsl", new HslColorManager());
2216
2216
  });
@@ -2234,7 +2234,7 @@
2234
2234
  }
2235
2235
 
2236
2236
  async function loadMovePlugin(engine) {
2237
- engine.checkVersion("4.2.0");
2237
+ engine.checkVersion("4.2.1");
2238
2238
  await engine.pluginManager.register(e => {
2239
2239
  const moveEngine = e, movePluginManager = moveEngine.pluginManager;
2240
2240
  movePluginManager.initializers.pathGenerators ??= new Map();
@@ -2444,7 +2444,7 @@
2444
2444
  }
2445
2445
 
2446
2446
  async function loadOpacityUpdater(engine) {
2447
- engine.checkVersion("4.2.0");
2447
+ engine.checkVersion("4.2.1");
2448
2448
  await engine.pluginManager.register(e => {
2449
2449
  e.pluginManager.addParticleUpdater("opacity", container => {
2450
2450
  return Promise.resolve(new OpacityUpdater(container));
@@ -2789,7 +2789,7 @@
2789
2789
  }
2790
2790
 
2791
2791
  async function loadOutModesUpdater(engine) {
2792
- engine.checkVersion("4.2.0");
2792
+ engine.checkVersion("4.2.1");
2793
2793
  await engine.pluginManager.register(e => {
2794
2794
  e.pluginManager.addParticleUpdater("outModes", container => {
2795
2795
  return Promise.resolve(new OutOfCanvasUpdater(container));
@@ -2860,7 +2860,7 @@
2860
2860
  }
2861
2861
 
2862
2862
  async function loadPaintUpdater(engine) {
2863
- engine.checkVersion("4.2.0");
2863
+ engine.checkVersion("4.2.1");
2864
2864
  await engine.pluginManager.register(e => {
2865
2865
  e.pluginManager.addParticleUpdater("paint", container => {
2866
2866
  return Promise.resolve(new PaintUpdater(e.pluginManager, container));
@@ -2915,7 +2915,7 @@
2915
2915
  }
2916
2916
 
2917
2917
  async function loadRgbColorPlugin(engine) {
2918
- engine.checkVersion("4.2.0");
2918
+ engine.checkVersion("4.2.1");
2919
2919
  await engine.pluginManager.register(e => {
2920
2920
  e.pluginManager.addColorManager("rgb", new RgbColorManager());
2921
2921
  });
@@ -3000,7 +3000,7 @@
3000
3000
  }
3001
3001
 
3002
3002
  async function loadSizeUpdater(engine) {
3003
- engine.checkVersion("4.2.0");
3003
+ engine.checkVersion("4.2.1");
3004
3004
  await engine.pluginManager.register(e => {
3005
3005
  e.pluginManager.addParticleUpdater("size", container => {
3006
3006
  return Promise.resolve(new SizeUpdater(container));
@@ -3009,7 +3009,7 @@
3009
3009
  }
3010
3010
 
3011
3011
  async function loadBasic(engine) {
3012
- engine.checkVersion("4.2.0");
3012
+ engine.checkVersion("4.2.1");
3013
3013
  await engine.pluginManager.register(async (e) => {
3014
3014
  await Promise.all([
3015
3015
  loadBlendPlugin(e),
@@ -1 +1 @@
1
- !function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var e="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,e){return e in t||(t[e]={}),t[e]}})}:function(t){return t};t.__tsParticlesInternals.bundles=e(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=e(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=e(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=e(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=e(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=e(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=e(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=e(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=e(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=e(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=e(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=e(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=e(t.__tsParticlesInternals.path),t.tsparticlesInternalExports=t.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.presets.bigCircles=t.__tsParticlesInternals.presets.bigCircles||{}))}(this,function(t){"use strict";const e="generated",i="source-over",s=100,n=.5,a=1e3,o={x:0,y:0,z:0},r=1,l=0,c=0,h=1,d="random",u=2*Math.PI,p="true",f="false",g="canvas",y=255,m=360,v=100,w=100,P=.25;var b;function x(t){return"z"in t?t.z:o.z}!function(t){t.bottom="bottom",t.bottomLeft="bottom-left",t.bottomRight="bottom-right",t.left="left",t.none="none",t.right="right",t.top="top",t.topLeft="top-left",t.topRight="top-right",t.outside="outside",t.inside="inside"}(b||(b={}));class z{x;y;z;constructor(t=o.x,e=o.y,i=o.z){this.x=t,this.y=e,this.z=i}static get origin(){return z.create(o.x,o.y,o.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this.#t(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this.#t(this.angle,t)}static clone(t){return z.create(t.x,t.y,x(t))}static create(t,e,i){return"number"==typeof t?new z(t,e??o.y,i??o.z):new z(t.x,t.y,x(t))}add(t){return z.create(this.x+t.x,this.y+t.y,this.z+x(t))}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=x(t)}copy(){return z.clone(this)}div(t){return z.create(this.x/t,this.y/t,this.z/t)}getLengthSq(){return this.x**2+this.y**2}mult(t){return z.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return z.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),o.z)}setTo(t){this.x=t.x,this.y=t.y,this.z=x(t)}sub(t){return z.create(this.x-t.x,this.y-t.y,this.z-x(t))}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=x(t)}#t(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}class M extends z{constructor(t=o.x,e=o.y){super(t,e,o.z)}static get origin(){return M.create(o.x,o.y)}static clone(t){return M.create(t.x,t.y)}static create(t,e){return"number"==typeof t?new M(t,e??o.y):new M(t.x,t.y)}}function C(t){return"boolean"==typeof t}function S(t){return"string"==typeof t}function I(t){return"number"==typeof t}function k(t){return"object"==typeof t&&null!==t}function _(t){return Array.isArray(t)}function D(t){return null==t}const O=Math.PI/180;let F=Math.random;const R=t=>requestAnimationFrame(t),L=t=>{cancelAnimationFrame(t)};function E(){return A(F(),0,1-Number.EPSILON)}function T(t,e){return E()*(e-t)+t}function A(t,e,i){return Math.min(Math.max(t,e),i)}function B(t){const e=$(t);let i=V(t);return e===i&&(i=0),T(i,e)}function U(t){return I(t)?t:B(t)}function V(t){return I(t)?t:t.min}function $(t){return I(t)?t:t.max}function G(t,e){if(t===e||void 0===e&&I(t))return t;const i=V(t),s=$(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:G(i,s)}function W(t,e){const i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.hypot(i,s)}}function j(t,e){const i=t.x-e.x,s=t.y-e.y;return i*i+s*s}function H(t){return t*O}function q(t){const{position:e,size:i}=t;return{x:e?.x??E()*i.width,y:e?.y??E()*i.height}}function N(t){return t?t.endsWith("%")?parseFloat(t)/s:parseFloat(t):1}var X,Y;!function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(X||(X={})),function(t){t.precise="precise",t.percent="percent"}(Y||(Y={}));function Q(){return globalThis.document}function K(t){if("undefined"!=typeof matchMedia)return matchMedia(t)}function Z(t,e,i=!0){return t[void 0!==e&&i?e%t.length:Math.floor(E()*t.length)]}function J(t,e,i,s,n){return function(t,e,i,s){let n=!0;s&&s!==X.bottom||(n=t.top<e.height+i.x);!n||s&&s!==X.left||(n=t.right>i.x);!n||s&&s!==X.right||(n=t.left<e.width+i.y);!n||s&&s!==X.top||(n=t.bottom>i.y);return n}(tt(t,s??0),e,i,n)}function tt(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function et(t,...e){for(const i of e){if(D(i))continue;if(!k(i)){t=i;continue}Array.isArray(i)?Array.isArray(t)||(t=[]):k(t)&&!Array.isArray(t)||(t={});const e=Object.keys(i),s=new Set(["__proto__","constructor","prototype"]);if(!e.some(t=>{const e=i[t];return k(e)||Array.isArray(e)})){const n=i,a=t;for(const t of e)if(!s.has(t)&&t in n){const e=n[t];void 0!==e&&(a[t]=e)}continue}for(const n of e){if(s.has(n))continue;const e=t,a=i[n];e[n]=Array.isArray(a)?a.map(t=>et(void 0,t)):et(e[n],a)}}return t}function it(t,e){return _(t)?t.map((t,i)=>e(t,i)):e(t,0)}function st(t,e,i){return _(t)?Z(t,e,i):t}function nt(t,e){return function(t,e){if(t.mode!==Y.percent){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/s*e.width,y:t.y/s*e.height}:{width:t.width/s*e.width,height:t.height/s*e.height}}(t,e)}let at,ot;function rt(t,e,i,s,n){if(s){let s={passive:!0};C(n)?s.capture=n:void 0!==n&&(s=n),t.addEventListener(e,i,s)}else{const s=n;t.removeEventListener(e,i,s)}}async function lt(t,e,i,s=!1){let n=e.get(t);if(!n||s){const s=await Promise.all([...i.entries()].map(([e,i])=>i(t).then(t=>[e,t])));n=new Map(s),e.set(t,n)}return n}class ct{#e;constructor(){this.#e=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this.#e.get(t);i||(i=[],this.#e.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this.#e.get(t);i?.forEach(t=>{t(e)})}hasEventListener(t){return!!this.#e.get(t)}removeAllEventListeners(t){t?this.#e.delete(t):this.#e=new Map}removeEventListener(t,e){const i=this.#e.get(t);if(!i)return;const s=i.length,n=i.indexOf(e);n<0||(1===s?this.#e.delete(t):i.splice(n,1))}}var ht;!function(t){t.configAdded="configAdded",t.containerInit="containerInit",t.particlesSetup="particlesSetup",t.containerStarted="containerStarted",t.containerStopped="containerStopped",t.containerDestroyed="containerDestroyed",t.containerPaused="containerPaused",t.containerPlay="containerPlay",t.containerBuilt="containerBuilt",t.particleAdded="particleAdded",t.particleDestroyed="particleDestroyed",t.particleRemoved="particleRemoved"}(ht||(ht={}));class dt{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;#i=new Set;#s=new Map;#n;#a=new Set;#o=!1;#r=!1;#l=new Set;constructor(t){this.#n=t}get configs(){const t={};for(const[e,i]of this.#s)t[e]=i;return t}addColorManager(t,e){this.colorManagers.set(t,e)}addConfig(t){const e=t.key??t.name??"default";this.#s.set(e,t),this.#n.dispatchEvent(ht.configAdded,{data:{name:e,config:t}})}addEasing(t,e){this.easingFunctions.get(t)||this.easingFunctions.set(t,e)}addEffect(t,e){this.initializers.effects.set(t,e)}addPalette(t,e){this.palettes.set(t,e)}addParticleUpdater(t,e){this.initializers.updaters.set(t,e)}addPlugin(t){this.getPlugin(t.id)||this.plugins.push(t)}addPreset(t,e,i=!1){!i&&this.getPreset(t)||this.presets.set(t,e)}addShape(t,e){for(const i of t)this.initializers.shapes.set(i,e)}clearPlugins(t){this.effectDrawers.delete(t),this.shapeDrawers.delete(t),this.updaters.delete(t)}getEasing(t){return this.easingFunctions.get(t)??(t=>t)}getEffectDrawers(t,e=!1){return lt(t,this.effectDrawers,this.initializers.effects,e)}getPalette(t){return this.palettes.get(t)}getPlugin(t){return this.plugins.find(e=>e.id===t)}getPreset(t){return this.presets.get(t)}async getShapeDrawers(t,e=!1){return lt(t,this.shapeDrawers,this.initializers.shapes,e)}async getUpdaters(t,e=!1){return async function(t,e,i,s=!1){let n=e.get(t);return n&&!s||(n=await Promise.all([...i.values()].map(e=>e(t))),e.set(t,n)),n}(t,this.updaters,this.initializers.updaters,e)}async init(){if(!this.#o&&!this.#r){this.#r=!0,this.#a=new Set,this.#i=new Set(this.#l);try{for(const t of this.#i)await this.#c(t,this.#a,this.#i)}finally{this.#l.clear(),this.#r=!1,this.#o=!0}}}loadParticlesOptions(t,e,...i){const s=this.updaters.get(t);s&&s.forEach(t=>t.loadOptions?.(e,...i))}async register(...t){if(this.#o)throw new Error("Register plugins can only be done before calling tsParticles.load()");for(const e of t)this.#r?await this.#c(e,this.#a,this.#i):this.#l.add(e)}async#c(t,e,i){e.has(t)||(e.add(t),i.add(t),await t(this.#n))}}const ut=t=>(...e)=>{t(...e)},pt={debug:ut(console.debug),error:(t,...e)=>{console.error(`tsParticles - Error - ${t}`,...e)},info:ut(console.info),log:ut(console.log),trace:ut(console.trace),verbose:ut(console.log),warning:ut(console.warn)};function ft(){return pt}const gt="100%";class yt{pluginManager=new dt(this);#h=[];#d=new ct;#o=!1;get items(){return this.#h}get version(){return"4.2.0"}addEventListener(t,e){this.#d.addEventListener(t,e)}checkVersion(t){if(this.version!==t)throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${t}`)}dispatchEvent(t,e){this.#d.dispatchEvent(t,e)}async init(){this.#o||(await this.pluginManager.init(),this.#o=!0)}item(t){const e=this.items,i=e[t];if(!i?.destroyed)return i;e.splice(t,1)}async load(t){let i;await this.init(),"undefined"!=typeof HTMLElement&&t.element instanceof HTMLElement&&(i=t.element);const{Container:s}=await Promise.resolve().then(function(){return Ei}),n=t.id??i?.id??`tsparticles${Math.floor(1e4*E()).toString()}`,{index:a,url:o}=t,r=o?await async function(t){const e=st(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():(ft().error(`${i.status.toString()} while retrieving config file`),t.fallback)}({fallback:t.options,url:o,index:a}):t.options,l=st(r,a),{items:c}=this,h=c.findIndex(t=>t.id.description===n),d=new s({dispatchCallback:(t,e)=>{this.dispatchEvent(t,e)},id:n,onDestroy:t=>{if(!t)return;const e=this.items,i=e.indexOf(d);i>=0&&e.splice(i,1)},pluginManager:this.pluginManager,sourceOptions:l});if(h>=0){const t=this.item(h),e=t?1:0;t&&!t.destroyed&&t.destroy(!1),c.splice(h,e,d)}else c.push(d);const u="undefined"!=typeof OffscreenCanvas&&t.element instanceof OffscreenCanvas?t.element:(t=>{const i=Q();let s;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===g)s=t,s.dataset[e]??=f,s.dataset[e]===p&&(s.style.width||=gt,s.style.height||=gt,s.style.pointerEvents="none",s.style.setProperty("pointer-events","none"));else{const n=t.getElementsByTagName(g).item(0);n?(s=n,s.dataset[e]=f):(s=i.createElement(g),s.dataset[e]=p,t.appendChild(s)),s.style.width||=gt,s.style.height||=gt,s.style.pointerEvents="none",s.style.setProperty("pointer-events","none")}return s})(((t,i)=>{const s=Q();let n=i??s.getElementById(t);return n||(n=s.createElement("canvas"),n.id=t,n.dataset[e]=p,s.body.append(n),n)})(n,i));return d.canvas.loadCanvas(u),await d.start(),d}async refresh(t=!0){t&&await Promise.all(this.items.map(t=>t.refresh()))}removeEventListener(t,e){this.#d.removeEventListener(t,e)}}var mt,vt,wt,Pt,bt,xt,zt,Mt,Ct,St,It;!function(t){t.circle="circle",t.rectangle="rectangle"}(mt||(mt={}));class kt{position;type;constructor(t,e,i){this.position={x:t,y:e},this.type=i}_resetPosition(t,e){this.position.x=t,this.position.y=e}}class _t extends kt{radius;constructor(t,e,i){super(t,e,mt.circle),this.radius=i}contains(t){return e=t,i=this.position,s=this.radius,j(e,i)<=s*s;var e,i,s}intersects(t){const e=this.position,i=t.position,s=this.radius,n=Math.abs(i.x-e.x),a=Math.abs(i.y-e.y);if(t instanceof _t||t.type===mt.circle){return s+t.radius>Math.hypot(n,a)}if(t instanceof Dt||t.type===mt.rectangle){const e=t,{width:i,height:o}=e.size;return Math.pow(n-i,2)+Math.pow(a-o,2)<=s**2||n<=s+i&&a<=s+o||n<=i||a<=o}return!1}reset(t,e,i){return this._resetPosition(t,e),this.radius=i,this}}class Dt extends kt{size;constructor(t,e,i,s){super(t,e,mt.rectangle),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){if(t instanceof _t)return t.intersects(this);if(!(t instanceof Dt))return!1;const e=this.size.width,i=this.size.height,s=this.position,n=t.position,a=t.size,o=a.width,r=a.height;return n.x<s.x+e&&n.x+o>s.x&&n.y<s.y+i&&n.y+r>s.y}reset(t,e,i,s){return this._resetPosition(t,e),this.size.width=i,this.size.height=s,this}}!function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(vt||(vt={})),function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"}(wt||(wt={})),function(t){t.delete="delete",t.wait="wait"}(Pt||(Pt={})),function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"}(bt||(bt={})),function(t){t.darken="darken",t.enlighten="enlighten"}(xt||(xt={})),function(t){t.none="none",t.max="max",t.min="min"}(zt||(zt={})),function(t){t.linear="linear",t.radial="radial",t.random="random"}(Mt||(Mt={})),function(t){t.normal="normal",t.inside="inside",t.outside="outside"}(Ct||(Ct={})),function(t){t.max="max",t.min="min",t.random="random"}(St||(St={})),function(t){t.increasing="increasing",t.decreasing="decreasing"}(It||(It={}));class Ot{load(t){D(t)||this.doLoad(t)}}function Ft(t,...e){for(const i of e)t.load(i)}function Rt(t,e,i){void 0!==i&&(t[e]=i)}function Lt(t,e,i){void 0!==i&&(t[e]=G(i))}function Et(t,e,i,s){if(void 0!==i){const n=t;n[e]??=s(),n[e].load(i)}}function Tt(t,e,i,...s){const n=t;n[e]??=new i;const a=n[e];for(const t of s)a.load(t?.[e])}class At extends Ot{count=0;decay=0;delay=0;enable=!1;speed=1;sync=!1;doLoad(t){Lt(this,"count",t.count),Rt(this,"enable",t.enable),Lt(this,"speed",t.speed),Lt(this,"decay",t.decay),Lt(this,"delay",t.delay),Rt(this,"sync",t.sync)}}class Bt extends At{mode=wt.auto;startValue=St.random;doLoad(t){super.doLoad(t),Rt(this,"mode",t.mode),Rt(this,"startValue",t.startValue)}}class Ut extends At{max;min;offset=0;sync=!0;constructor(t,e){super(),this.min=t,this.max=e}doLoad(t){super.doLoad(t),Rt(this,"max",t.max),Rt(this,"min",t.min),Lt(this,"offset",t.offset)}}class Vt extends Ot{h=new Ut(0,m);l=new Ut(0,w);s=new Ut(0,v);doLoad(t){this.h.load(t.h),this.s.load(t.s),this.l.load(t.l)}}class $t extends Ot{value="";static create(t,e){const i=new $t;return i.load(t),void 0!==e&&(S(e)||_(e)?i.load({value:e}):i.load(e)),i}doLoad(t){D(t.value)||(this.value=t.value)}}class Gt extends $t{animation=new Vt;static create(t,e){const i=new Gt;return i.load(t),void 0!==e&&(S(e)||_(e)?i.load({value:e}):i.load(e)),i}doLoad(t){super.doLoad(t);const e=t.animation;void 0!==e&&(void 0===e.enable?this.animation.load(t.animation):this.animation.h.load(e))}}class Wt extends Ot{color;image="";opacity=1;position="";repeat="";size="";constructor(){super(),this.color=new $t,this.color.value=""}doLoad(t){void 0!==t.color&&(this.color=$t.create(this.color,t.color)),Rt(this,"image",t.image),Rt(this,"position",t.position),Rt(this,"repeat",t.repeat),Rt(this,"size",t.size),Rt(this,"opacity",t.opacity)}}class jt extends Ot{enable=!0;zIndex=0;doLoad(t){Rt(this,"enable",t.enable),Rt(this,"zIndex",t.zIndex)}}class Ht extends Ot{delay=.5;enable=!0;doLoad(t){Rt(this,"delay",t.delay),Rt(this,"enable",t.enable)}}class qt extends Ot{close=!0;options={};type=[];doLoad(t){const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=et(this.options[t]??{},i))}Rt(this,"close",t.close),Rt(this,"type",t.type)}}class Nt extends Ot{color;enable=!0;opacity=1;doLoad(t){void 0!==t.color&&(this.color=Gt.create(this.color,t.color)),Rt(this,"enable",t.enable),Lt(this,"opacity",t.opacity)}}class Xt extends Ot{offset=0;value=90;doLoad(t){Lt(this,"offset",t.offset),Lt(this,"value",t.value)}}class Yt extends Ot{mode=Y.percent;radius=0;x=50;y=50;doLoad(t){Rt(this,"x",t.x),Rt(this,"y",t.y),Rt(this,"mode",t.mode),Rt(this,"radius",t.radius)}}class Qt extends Ot{acceleration=9.81;enable=!1;inverse=!1;maxSpeed=50;doLoad(t){Lt(this,"acceleration",t.acceleration),Rt(this,"enable",t.enable),Rt(this,"inverse",t.inverse),Lt(this,"maxSpeed",t.maxSpeed)}}class Kt extends Ot{value=0;doLoad(t){D(t.value)||(this.value=G(t.value))}}class Zt extends Kt{animation=new At;doLoad(t){var e,i,s;super.doLoad(t),e=this,i="animation",void 0!==(s=t.animation)&&e[i].load(s)}}class Jt extends Zt{animation=new Bt}class te extends Ot{clamp=!0;delay=new Kt;enable=!1;generator;options={};doLoad(t){Rt(this,"clamp",t.clamp),this.delay.load(t.delay),Rt(this,"enable",t.enable),this.generator=t.generator,t.options&&(this.options=et(this.options,t.options))}}class ee extends Ot{bottom;default=bt.out;left;right;top;doLoad(t){void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default}}class ie extends Ot{acceleration=0;enable=!1;position;doLoad(t){Lt(this,"acceleration",t.acceleration),Rt(this,"enable",t.enable),t.position&&(this.position=et({},t.position))}}class se extends Ot{angle=new Xt;center=new Yt;decay=0;direction=b.none;distance={};drift=0;enable=!1;gravity=new Qt;outModes=new ee;path=new te;random=!1;size=!1;speed=2;spin=new ie;straight=!1;vibrate=!1;warp=!1;doLoad(t){this.angle.load(I(t.angle)?{value:t.angle}:t.angle),this.center.load(t.center),Lt(this,"decay",t.decay),Rt(this,"direction",t.direction),void 0!==t.distance&&(this.distance=I(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),Lt(this,"drift",t.drift),Rt(this,"enable",t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&(k(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),Rt(this,"random",t.random),Rt(this,"size",t.size),Lt(this,"speed",t.speed),this.spin.load(t.spin),Rt(this,"straight",t.straight),Rt(this,"vibrate",t.vibrate),Rt(this,"warp",t.warp)}}class ne extends Ot{color;opacity;width=0;doLoad(t){void 0!==t.color&&(this.color=Gt.create(this.color,t.color)),Lt(this,"width",t.width),Lt(this,"opacity",t.opacity)}}class ae extends Ot{color;fill;stroke;doLoad(t){void 0!==t.color&&(this.color=Gt.create(this.color,t.color)),Et(this,"fill",t.fill,()=>new Nt),Et(this,"stroke",t.stroke,()=>new ne)}}class oe extends Kt{value=1}class re extends Ot{horizontal=new oe;vertical=new oe;doLoad(t){this.horizontal.load(t.horizontal),this.vertical.load(t.vertical)}}class le extends Ot{enable=!1;height=1080;width=1920;doLoad(t){Rt(this,"enable",t.enable),Rt(this,"width",t.width),Rt(this,"height",t.height)}}class ce extends Ot{mode=Pt.delete;value=0;doLoad(t){Rt(this,"mode",t.mode),Rt(this,"value",t.value)}}class he extends Ot{density=new le;limit=new ce;value=0;doLoad(t){this.density.load(t.density),this.limit.load(t.limit),Rt(this,"value",t.value)}}class de extends Ot{close=!0;options={};type="circle";doLoad(t){const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=et(this.options[t]??{},i))}Rt(this,"close",t.close),Rt(this,"type",t.type)}}class ue extends Kt{opacityRate=1;sizeRate=1;velocityRate=1;doLoad(t){super.doLoad(t),Rt(this,"opacityRate",t.opacityRate),Rt(this,"sizeRate",t.sizeRate),Rt(this,"velocityRate",t.velocityRate)}}class pe extends Ot{bounce=new re;effect=new qt;groups={};move=new se;number=new he;paint;palette;reduceDuplicates=!1;shape=new de;zIndex=new ue;#u;#p;constructor(t,e){super(),this.#p=t,this.#u=e,this.paint=new ae,this.paint.color=new Gt,this.paint.color.value="#fff",this.paint.fill=new Nt,this.paint.fill.enable=!0}doLoad(t){if(t.palette&&(this.palette=t.palette,this.#f(this.palette)),void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!(e in t.groups))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=et(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number);const e=t.paint;if(e&&(_(e)?this.paint=it(e,t=>{const e=new ae;return e.load(t),e}):_(this.paint)?(this.paint=new ae,this.paint.load(e)):this.paint.load(e)),this.shape.load(t.shape),this.zIndex.load(t.zIndex),this.#u){for(const e of this.#p.plugins)e.loadParticlesOptions&&e.loadParticlesOptions(this.#u,this,t);const e=this.#p.updaters.get(this.#u);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t)}}#f(t){const e=this.#p.getPalette(t);if(!e)return;const i=e.colors,s=(_(i)?i:[i]).flatMap(t=>{const e=t.fill,i=t.stroke,s=e?{color:{value:e.value},enable:e.enable,opacity:e.opacity}:void 0;return i?[{fill:s,stroke:{color:{value:i.value},opacity:i.opacity,width:i.width||0}}]:[{fill:s}]}),n=s.length>1?s:s[0]??{};this.load({paint:n,blend:{enable:!0,mode:e.blendMode}})}}function fe(t,e,...i){const s=new pe(t,e);return Ft(s,...i),s}class ge extends Ot{autoPlay=!0;background;clear=!0;defaultThemes={};delay=0;detectRetina=!0;duration=0;fpsLimit=120;fullScreen;hdr=!0;key;name;palette;particles;pauseOnBlur=!0;pauseOnOutsideViewport=!0;preset;resize;smooth=!1;style={};zLayers=100;#u;#p;constructor(t,e){super(),this.#p=t,this.#u=e,this.background=new Wt,this.fullScreen=new jt,this.particles=fe(this.#p,this.#u),this.resize=new Ht}doLoad(t){void 0!==t.preset&&(this.preset=t.preset,it(this.preset,t=>{this.#g(t)})),void 0!==t.palette&&(this.palette=t.palette,this.#f(this.palette)),Rt(this,"autoPlay",t.autoPlay),Rt(this,"clear",t.clear),Rt(this,"key",t.key),Rt(this,"name",t.name),Lt(this,"delay",t.delay),Rt(this,"detectRetina",t.detectRetina),Lt(this,"duration",t.duration),Rt(this,"fpsLimit",t.fpsLimit),Rt(this,"hdr",t.hdr),Rt(this,"pauseOnBlur",t.pauseOnBlur),Rt(this,"pauseOnOutsideViewport",t.pauseOnOutsideViewport),Rt(this,"zLayers",t.zLayers),this.background.load(t.background);const e=t.fullScreen;C(e)?this.fullScreen.enable=e:this.fullScreen.load(e),this.particles.load(t.particles),this.resize.load(t.resize),this.style=et(this.style,t.style),Rt(this,"smooth",t.smooth),this.#p.plugins.forEach(e=>{e.loadOptions(this.#u,this,t)})}#f(t){const e=this.#p.getPalette(t);e&&this.load({background:{color:e.background},blend:{enable:!0,mode:e.blendMode},particles:{palette:t}})}#g(t){this.load(this.#p.getPreset(t))}}const ye=new Map;function me(t,e){let i=ye.get(t);return i||(i=e(),ye.size>2e3&&ye.clear(),ye.set(t,i)),i}function ve(t,e,i,s=!0){if(!e)return;const n=S(e)?{value:e}:e;if(S(n.value))return we(t,n.value,i,s);if(_(n.value)){const e=Z(n.value,i,s);if(!e)return;return ve(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleRangeColor(n);if(t)return t}}function we(t,e,i,s=!0){if(!e)return;const n=S(e)?{value:e}:e;if(S(n.value))return n.value===d?function(){const t=0,e=256,i=()=>Math.floor(T(t,e));return{b:i(),g:i(),r:i()}}():function(t,e){return function(t,e){if(e)for(const i of t.colorManagers.values())if(i.accepts(e))return i.parseString(e)}(t,e)}(t,n.value);if(_(n.value)){const e=Z(n.value,i,s);if(!e)return;return we(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleColor(n);if(t)return t}}function Pe(t,e,i,s=!0){const a=ve(t,e,i,s);return a?function(t){const e=t.r/y,i=t.g/y,s=t.b/y,a=Math.max(e,i,s),o=Math.min(e,i,s),r={h:0,l:(a+o)*n,s:0};a!==o&&(r.s=r.l<n?(a-o)/(a+o):(a-o)/(2-a-o),r.h=e===a?(i-s)/(a-o):i===a?2+(s-e)/(a-o):4+(e-i)/(a-o));r.l*=w,r.s*=v,r.h*=60,r.h<0&&(r.h+=m);r.h>=m&&(r.h-=m);return r}(a):void 0}function be(t,e,i){if(i<0&&i++,i>1&&i--,6*i<1)return t+6*(e-t)*i;if(2*i<1)return e;if(3*i<2){return t+(e-t)*(2/3-i)*6}return t}function xe(t){const e=(t.h%m+m)%m,i=Math.max(0,Math.min(v,t.s)),s=Math.max(0,Math.min(w,t.l)),a=e/m,o=i/v,r=s/w;if(0===i){const t=Math.round(r*y);return{r:t,g:t,b:t}}const l=r<n?r*(1+o):r+o-r*o,c=2*r-l,h=1/3,d=Math.min(y,y*be(c,l,a+h)),u=Math.min(y,y*be(c,l,a)),p=Math.min(y,y*be(c,l,a-h));return{r:Math.round(d),g:Math.round(u),b:Math.round(p)}}function ze(t,e,i){const s=i??1;return me(`rgb-${t.r.toFixed(2)}-${t.g.toFixed(2)}-${t.b.toFixed(2)}-${e?"hdr":"sdr"}-${s.toString()}`,()=>e?function(t,e,i=400){const s=i/203;return`color(display-p3 ${(t.r/y*s).toString()} ${(t.g/y*s).toString()} ${(t.b/y*s).toString()} / ${(e??1).toString()})`}(t,i):function(t,e){return`rgba(${t.r.toString()}, ${t.g.toString()}, ${t.b.toString()}, ${(e??1).toString()})`}(t,i))}function Me(t,e,i){const s=i??1;return me(`hsl-${t.h.toFixed(2)}-${t.s.toFixed(2)}-${t.l.toFixed(2)}-${e?"hdr":"sdr"}-${s.toString()}`,()=>e?ze(xe(t),!0,i):`hsla(${t.h.toString()}, ${t.s.toString()}%, ${t.l.toString()}%, ${s.toString()})`)}function Ce(t){return void 0===t?void 0:{h:t.h.value,s:t.s.value,l:t.l.value}}function Se(t,e,i){const s={h:{enable:!1,value:t.h,min:0,max:m},s:{enable:!1,value:t.s,min:0,max:v},l:{enable:!1,value:t.l,min:0,max:w}};return e&&(Ie(s.h,e.h,i),Ie(s.s,e.s,i),Ie(s.l,e.l,i)),s}function Ie(t,e,i){t.enable=e.enable,t.min=e.min,t.max=e.max,t.enable?(t.velocity=U(e.speed)/s*i,t.decay=1-U(e.decay),t.status=It.increasing,t.loops=0,t.maxLoops=U(e.count),t.time=0,t.delayTime=U(e.delay)*a,e.sync||(t.velocity*=E(),t.value*=E()),t.initialValue=t.value,t.offset=G(e.offset)):t.velocity=0}function ke(t,e,i){if(!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=i.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const s=t.offset?B(t.offset):0,n=(t.velocity??0)*i.factor+3.6*s,a=t.decay??1,o=t.max,r=t.min;e&&t.status!==It.increasing?(t.value-=n,t.value<r&&(t.loops??=0,t.loops++,t.status=It.increasing)):(t.value+=n,t.value>o&&(t.loops??=0,t.loops++,e?t.status=It.decreasing:t.value-=o)),t.velocity&&1!==a&&(t.velocity*=a),t.value=A(t.value,r,o)}function _e(t,e){if(!t)return;const{h:i,s:s,l:n}=t;ke(i,!1,e),ke(s,!0,e),ke(n,!0,e)}const De=new yt;class Oe{enable=!1;mode="destination-out";load(t){D(t)||(Rt(this,"mode",t.mode),Rt(this,"enable",t.enable))}}class Fe{id="blend";async getPlugin(t){const{BlendPluginInstance:e}=await Promise.resolve().then(function(){return Ti});return new e(t)}loadOptions(t,e,i){if(!this.needsPlugin(e)&&!this.needsPlugin(i))return;let s=e.blend;s?.load||(e.blend=s=new Oe),s.load(i?.blend)}loadParticlesOptions(t,e,i){e.blend??=new Oe,e.blend.load(i?.blend)}needsPlugin(t){return!!t?.blend?.enable||!!t?.particles?.blend?.enable}}async function Re(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addPlugin(new Fe)})}class Le{draw(t){!function(t){const{context:e,particle:i,radius:s}=t;i.circleRange??={min:0,max:u};const n=i.circleRange;e.arc(o.x,o.y,s,n.min,n.max,!1)}(t)}getSidesCount(){return 12}particleInit(t,e){const i=e.shapeData,s=i?.angle??{max:360,min:0};e.circleRange=k(s)?{min:H(s.min),max:H(s.max)}:{min:0,max:H(s)}}}async function Ee(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addShape(["circle"],()=>Promise.resolve(new Le))})}var Te;!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=4]="a"}(Te||(Te={}));const Ae=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Be=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class Ue{accepts(t){return t.startsWith("#")}handleColor(t){return this.#y(t.value)}handleRangeColor(t){return this.#y(t.value)}parseString(t){return this.#y(t)}#y(t){if("string"!=typeof t||!this.accepts(t))return;const e=t.replace(Ae,(t,e,i,s,n)=>e+e+i+i+s+s+(void 0===n?"":n+n)),i=Be.exec(e);return i?{a:i[Te.a]?Number.parseInt(i[Te.a],16)/255:1,b:Number.parseInt(i[Te.b]??"0",16),g:Number.parseInt(i[Te.g]??"0",16),r:Number.parseInt(i[Te.r]??"0",16)}:void 0}}async function Ve(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hex",new Ue)})}var $e;!function(t){t[t.h=1]="h",t[t.s=2]="s",t[t.l=3]="l",t[t.a=5]="a"}($e||($e={}));const Ge=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class We{accepts(t){return t.startsWith("hsl")}handleColor(t){const e=t.value.hsl??t.value;if("h"in e&&"s"in e&&"l"in e)return xe(e)}handleRangeColor(t){const e=t.value.hsl??t.value;if("h"in e&&"s"in e&&"l"in e)return xe({h:U(e.h),l:U(e.l),s:U(e.s)})}parseString(t){if(!this.accepts(t))return;const e=Ge.exec(t);return e?function(t){const e=xe(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?N(e[$e.a]):1,h:Number.parseInt(e[$e.h]??"0",10),l:Number.parseInt(e[$e.l]??"0",10),s:Number.parseInt(e[$e.s]??"0",10)}):void 0}}async function je(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hsl",new We)})}class He{id="move";#p;constructor(t){this.#p=t}async getPlugin(t){const{MovePluginInstance:e}=await Promise.resolve().then(function(){return Ui});return new e(this.#p,t)}loadOptions(){}needsPlugin(){return!0}}async function qe(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{const e=t.pluginManager;e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,e.addPathGenerator=(t,i)=>{e.initializers.pathGenerators??=new Map,e.initializers.pathGenerators.set(t,i)},e.getPathGenerators=async(t,i=!1)=>(e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,lt(t,e.pathGenerators,e.initializers.pathGenerators,i)),t.pluginManager.addPlugin(new He(t.pluginManager))})}function Ne(t,e){const i=t.value,s=t.animation,o={delayTime:U(s.delay)*a,enable:s.enable,value:U(t.value)*e,max:$(i)*e,min:V(i)*e,loops:0,maxLoops:U(s.count),time:0};if(s.enable){switch(o.decay=1-U(s.decay),s.mode){case wt.increase:o.status=It.increasing;break;case wt.decrease:o.status=It.decreasing;break;case wt.random:o.status=E()>=n?It.increasing:It.decreasing}const t=s.mode===wt.auto;switch(s.startValue){case St.min:o.value=o.min,t&&(o.status=It.increasing);break;case St.max:o.value=o.max,t&&(o.status=It.decreasing);break;case St.random:default:o.value=B(o),t&&(o.status=E()>=n?It.increasing:It.decreasing)}}return o.initialValue=o.value,o}function Xe(t,e,i,s,n){if(t.destroyed||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const a=(e.velocity??0)*n.factor,o=e.min,r=e.max,l=e.decay??1;e.time??=0;const c=e.delayTime??0;if(!(c>0&&e.time<c&&(e.time+=n.value,e.time<c))){switch(e.status){case It.increasing:e.value+=a;break;case It.decreasing:e.value-=a}switch(e.velocity&&1!==l&&(e.velocity*=l),e.status){case It.increasing:e.value>=r&&(e.status=It.decreasing,e.loops??=0,e.loops++);break;case It.decreasing:e.value<=o&&(e.status=It.increasing,e.loops??=0,e.loops++)}!function(t,e,i,s,n){switch(e){case zt.max:i>=n&&t.destroy();break;case zt.min:i<=s&&t.destroy()}}(t,s,e.value,o,r),t.destroyed||(e.value=A(e.value,o,r))}}class Ye extends Bt{destroy=zt.none;load(t){super.load(t),D(t)||Rt(this,"destroy",t.destroy)}}class Qe extends Jt{animation=new Ye;value=1;load(t){if(D(t))return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}class Ke{#u;constructor(t){this.#u=t}init(t){const e=t.options.opacity;if(!e)return;t.opacity=Ne(e,1);const i=e.animation;i.enable&&(t.opacity.velocity=U(i.speed)/s*this.#u.retina.reduceFactor,i.sync||(t.opacity.velocity*=E()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}loadOptions(t,...e){Tt(t,"opacity",Qe,...e)}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,e){this.isEnabled(t)&&t.opacity&&t.options.opacity&&Xe(t,t.opacity,0,t.options.opacity.animation.destroy,e)}}async function Ze(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("opacity",t=>Promise.resolve(new Ke(t)))})}class Je{modes;#u;#m;constructor(t){this.#u=t,this.modes=[bt.bounce,bt.split],this.#m=t.plugins.filter(t=>void 0!==t.particleBounce)}update(t,e,i,s){if(!this.modes.includes(s))return;const n=this.#u;let a=!1;for(const s of this.#m)if(a=s.particleBounce?.(t,i,e)??!1,a)break;if(a)return;const o=t.getPosition(),r=t.offset,l=t.getRadius(),c=tt(o,l),h=n.canvas.size,d=!t.isInsideCanvasForOutMode(s,e);!function(t){if(t.outMode!==bt.bounce&&t.outMode!==bt.split||t.direction!==X.left&&t.direction!==X.right)return;t.bounds.right<0&&t.direction===X.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===X.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const e=t.particle.velocity.x;let i=!1;if(t.outOfCanvas&&(t.direction===X.right&&e>0||t.direction===X.left&&e<0)){const e=U(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;const s=t.offset.x+t.size;t.outOfCanvas&&t.direction===X.right?t.particle.position.x=t.canvasSize.width-s:t.outOfCanvas&&t.direction===X.left&&(t.particle.position.x=s),t.outMode===bt.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:r,outOfCanvas:d,size:l}),function(t){if(t.outMode!==bt.bounce&&t.outMode!==bt.split||t.direction!==X.bottom&&t.direction!==X.top)return;t.bounds.bottom<0&&t.direction===X.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===X.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const e=t.particle.velocity.y;let i=!1;if(t.outOfCanvas&&(t.direction===X.bottom&&e>0||t.direction===X.top&&e<0)){const e=U(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;const s=t.offset.y+t.size;t.outOfCanvas&&t.direction===X.bottom?t.particle.position.y=t.canvasSize.height-s:t.outOfCanvas&&t.direction===X.top&&(t.particle.position.y=s),t.outMode===bt.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:r,outOfCanvas:d,size:l})}}class ti{modes;constructor(t){this.modes=[bt.destroy]}update(t,e,i,s){if(this.modes.includes(s)){switch(t.outType){case Ct.normal:case Ct.outside:if(t.isInsideCanvasForOutMode(s,e))return;break;case Ct.inside:{const{dx:e,dy:i}=W(t.position,t.moveCenter),{x:s,y:n}=t.velocity;if(s<0&&e>t.moveCenter.radius||n<0&&i>t.moveCenter.radius||s>=0&&e<-t.moveCenter.radius||n>=0&&i<-t.moveCenter.radius)return;break}}t.destroy(!0)}}}class ei{modes;#u;constructor(t){this.#u=t,this.modes=[bt.none]}update(t,e,i,s){if(!this.modes.includes(s))return;if((t.options.move.distance.horizontal&&(e===X.left||e===X.right))??(t.options.move.distance.vertical&&(e===X.top||e===X.bottom)))return;const n=t.options.move.gravity,a=this.#u,r=a.canvas.size,l=t.getRadius();if(n.enable){const i=t.position;(!n.inverse&&i.y>r.height+l&&e===X.bottom||n.inverse&&i.y<-l&&e===X.top)&&t.destroy()}else{if(t.velocity.y>0&&t.position.y<=r.height+l||t.velocity.y<0&&t.position.y>=-l||t.velocity.x>0&&t.position.x<=r.width+l||t.velocity.x<0&&t.position.x>=-l)return;J(t.position,a.canvas.size,o,l,e)||t.destroy()}}}const ii=M.origin;class si{modes;#u;constructor(t){this.#u=t,this.modes=[bt.out]}update(t,e,i,s){if(!this.modes.includes(s))return;const n=this.#u;switch(t.outType){case Ct.inside:{const{x:e,y:i}=t.velocity;ii.setTo(o),ii.length=t.moveCenter.radius,ii.angle=t.velocity.angle+Math.PI,ii.addTo(t.moveCenter);const{dx:s,dy:a}=W(t.position,ii);if(e<=0&&s>=0||i<=0&&a>=0||e>=0&&s<=0||i>=0&&a<=0)return;t.position.x=Math.floor(B({min:0,max:n.canvas.size.width})),t.position.y=Math.floor(B({min:0,max:n.canvas.size.height}));const{dx:r,dy:l}=W(t.position,t.moveCenter);t.direction=Math.atan2(-l,-r),t.velocity.angle=t.direction,t.justWarped=!0;break}default:if(t.isInsideCanvasForOutMode(s,e))return;switch(t.outType){case Ct.outside:{t.position.x=Math.floor(B({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor(B({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:e,dy:i}=W(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction),t.justWarped=!0;break}case Ct.normal:{const i=t.options.move.warp,s=n.canvas.size,a={bottom:s.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},o=t.getRadius(),r=tt(t.position,o);e===X.right&&r.left>s.width+t.offset.x?(t.position.x=a.left,t.initialPosition.x=t.position.x,i||(t.position.y=E()*s.height,t.initialPosition.y=t.position.y),t.justWarped=!0):e===X.left&&r.right<-t.offset.x&&(t.position.x=a.right,t.initialPosition.x=t.position.x,i||(t.position.y=E()*s.height,t.initialPosition.y=t.position.y),t.justWarped=!0),e===X.bottom&&r.top>s.height+t.offset.y?(i||(t.position.x=E()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.top,t.initialPosition.y=t.position.y,t.justWarped=!0):e===X.top&&r.bottom<-t.offset.y&&(i||(t.position.x=E()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.bottom,t.initialPosition.y=t.position.y,t.justWarped=!0);break}}}}}class ni{updaters;#u;constructor(t){this.#u=t,this.updaters=new Map}init(t){this.#v(t,bt.bounce,t=>new Je(t)),this.#v(t,bt.out,t=>new si(t)),this.#v(t,bt.destroy,t=>new ti(t)),this.#v(t,bt.none,t=>new ei(t))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){const i=t.options.move.outModes;t.justWarped=!1,this.#w(t,e,i.bottom??i.default,X.bottom),this.#w(t,e,i.left??i.default,X.left),this.#w(t,e,i.right??i.default,X.right),this.#w(t,e,i.top??i.default,X.top)}#v(t,e,i){const s=t.options.move.outModes;!this.updaters.has(e)&&((t,e)=>t.default===e||t.bottom===e||t.left===e||t.right===e||t.top===e)(s,e)&&this.updaters.set(e,i(this.#u))}#w(t,e,i,s){for(const n of this.updaters.values())n.update(t,s,e,i)}}async function ai(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("outModes",t=>Promise.resolve(new ni(t)))})}class oi{#u;#p;constructor(t,e){this.#u=e,this.#p=t}init(t){const e=this.#u,i=t.options,s=st(i.paint,t.id,i.reduceDuplicates),n=s?.color,a=n??void 0,o=s?.fill,r=s?.stroke;if(o){const i=Gt.create(void 0===a?void 0:Gt.create(void 0,a),o.color);t.fillEnabled=o.enable,t.fillOpacity=U(o.opacity),t.fillAnimation=i.animation;const s=Pe(this.#p,i);s&&(t.fillColor=Se(s,t.fillAnimation,e.retina.reduceFactor))}else t.fillEnabled=!1,t.fillAnimation=void 0,t.fillColor=void 0,t.fillOpacity=1;if(r){const i=Gt.create(void 0===a?void 0:Gt.create(void 0,a),r.color);t.strokeWidth=U(r.width)*e.retina.pixelRatio,t.strokeOpacity=U(r.opacity??1),t.strokeAnimation=i.animation;const s=Pe(this.#p,i)??t.getFillColor();s&&(t.strokeColor=Se(s,t.strokeAnimation,e.retina.reduceFactor))}else t.strokeAnimation=void 0,t.strokeColor=void 0,t.strokeOpacity=1,t.strokeWidth=0}isEnabled(t){const{fillAnimation:e,fillColor:i,strokeAnimation:s,strokeColor:n}=t,a=!!e&&(void 0!==i?.h.value&&i.h.enable||void 0!==i?.s.value&&i.s.enable||void 0!==i?.l.value&&i.l.enable),o=!!s&&(void 0!==n?.h.value&&n.h.enable||void 0!==n?.s.value&&n.s.enable||void 0!==n?.l.value&&n.l.enable);return!t.destroyed&&!t.spawning&&(a||o)}update(t,e){this.isEnabled(t)&&(_e(t.fillColor,e),_e(t.strokeColor,e))}}async function ri(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("paint",e=>Promise.resolve(new oi(t.pluginManager,e)))})}var li;!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=5]="a"}(li||(li={}));const ci=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class hi{accepts(t){return t.startsWith("rgb")}handleColor(t){const e=t.value.rgb??t.value;if("r"in e&&"g"in e&&"b"in e)return e}handleRangeColor(t){const e=t.value.rgb??t.value;if("r"in e&&"g"in e&&"b"in e)return{r:U(e.r),g:U(e.g),b:U(e.b)}}parseString(t){if(!this.accepts(t))return;const e=ci.exec(t);return e?{a:e.length>4?N(e[li.a]):1,b:parseInt(e[li.b]??"0",10),g:parseInt(e[li.g]??"0",10),r:parseInt(e[li.r]??"0",10)}:void 0}}async function di(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("rgb",new hi)})}class ui extends Bt{destroy=zt.none;load(t){super.load(t),D(t)||Rt(this,"destroy",t.destroy)}}class pi extends Jt{animation=new ui;value=3;load(t){if(super.load(t),D(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class fi{#u;constructor(t){this.#u=t}init(t){const e=this.#u,i=t.options.size;if(!i)return;const n=i.animation;n.enable&&(t.size.velocity=t.retina.sizeAnimationSpeed/s*e.retina.reduceFactor,n.sync||(t.size.velocity*=E()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??0)<=0||(t.size.maxLoops??0)>0&&(t.size.loops??0)<(t.size.maxLoops??0))}loadOptions(t,...e){Tt(t,"size",pi,...e)}preInit(t){const e=this.#u.retina.pixelRatio,i=t.options.size;i&&(t.size=Ne(i,e),t.retina.sizeAnimationSpeed=U(i.animation.speed)*e)}reset(t){t.size.time=0,t.size.loops=0}update(t,e){this.isEnabled(t)&&t.options.size&&Xe(t,t.size,0,t.options.size.animation.destroy,e)}}async function gi(t){t.checkVersion("4.2.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("size",t=>Promise.resolve(new fi(t)))})}const yi={fpsLimit:120,background:{color:"#fff"},particles:{number:{value:100,density:{enable:!0}},paint:{fill:{color:{value:["#FF0000","#FF2A00","#FF5500","#FF8000","#FFAA00","#FFD400","#FFFF00","#D4FF00","#AAFF00","#80FF00","#55FF00","#2AFF00","#00FF00","#00FF2A","#00FF55","#00FF80","#00FFAA","#00FFD4","#00FFFF","#00D4FF","#00AAFF","#0080FF","#0055FF","#002AFF","#0000FF","#2A00FF","#5500FF","#8000FF","#AA00FF","#D400FF","#FF00FF","#FF00D4","#FF00AA","#FF0080","#FF0055","#FF002A"]},enable:!0}},shape:{type:"circle"},opacity:{value:{min:.4,max:.8}},size:{value:{min:150,max:300}},move:{enable:!0,angle:{value:30,offset:0},speed:{min:10,max:20},direction:b.top,outModes:bt.out}},detectRetina:!0},mi=["bigCircles","big-circles"];async function vi(t){await t.pluginManager.register(async t=>{await async function(t){t.checkVersion("4.2.0"),await t.pluginManager.register(async t=>{await Promise.all([Re(t),Ve(t),je(t),di(t),qe(t),Ee(t),ri(t),Ze(t),ai(t),gi(t)])})}(t),mi.forEach(e=>{t.pluginManager.addPreset(e,yi)})})}const wi=globalThis;wi.loadBigCirclesPreset=vi,wi.tsParticles=De;function Pi(t,e,i){const s=e[i];void 0!==s&&(t[i]=(t[i]??1)*s)}class bi{#P;#b;#x;#z;#M;#u;#C;#S;#I;#k;#_;#D;#O;#F;#p;#R;#L;#E={};#T=[void 0,void 0];#A={};constructor(t,e,i){this.#p=t,this.#u=e,this.#b=i,this.#C=null,this.#L=[],this.#R=[],this.#M=[],this.#P=[],this.#x=[],this.#z=[],this.#I=[],this.#k=[],this.#_=[],this.#D=[],this.#F=[],this.#O=[]}get settings(){return this.#S}canvasClear(){this.#u.actualOptions.clear&&this.draw(t=>{t.clearRect(o.x,o.y,this.#b.size.width,this.#b.size.height)})}clear(){let t=!1;for(const e of this.#P)if(t=e.canvasClear?.()??!1,t)break;t||this.canvasClear()}destroy(){this.stop(),this.#L=[],this.#R=[],this.#M=[],this.#P=[],this.#x=[],this.#z=[],this.#I=[],this.#k=[],this.#_=[],this.#D=[],this.#F=[],this.#O=[]}draw(t){const e=this.#C;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;const i=t.getRadius();if(i<=0)return;const s=t.getFillColor(),n=t.getStrokeColor();let[a,o]=this.#B(t);if(a??=s,o??=n,!a&&!o)return;const r=this.#u,l=t.options.zIndex,c=1-t.zIndexFactor,{fillOpacity:h,opacity:d,strokeOpacity:u}=t.getOpacity(),p=this.#A,f=this.#E,g=a?Me(a,r.hdr,h*d):void 0,y=o?Me(o,r.hdr,u*d):g;p.a=p.b=p.c=p.d=void 0,f.fill=g,f.stroke=y,this.draw(s=>{for(const i of this.#_)i.drawParticleSetup?.(s,t,e);this.#U(s,t,i,d,f,p),this.#V({container:r,context:s,particle:t,delta:e,colorStyles:f,radius:i*c**l.sizeRate,opacity:d,transform:p}),this.#$(t);for(const i of this.#k)i.drawParticleCleanup?.(s,t,e)})}drawParticlePlugins(t,e){this.draw(i=>{for(const s of this.#I)this.#G(i,s,t,e)})}drawParticles(t){const{particles:e}=this.#u;this.clear(),e.update(t),this.draw(i=>{for(const e of this.#F)e.drawSettingsSetup?.(i,t);for(const e of this.#D)e.draw?.(i,t);e.drawParticles(t);for(const e of this.#z)e.clearDraw?.(i,t);for(const e of this.#O)e.drawSettingsCleanup?.(i,t)})}init(){this.initUpdaters(),this.initPlugins(),this.paint()}initPlugins(){this.#M=[],this.#P=[],this.#x=[],this.#z=[],this.#I=[],this.#_=[],this.#k=[],this.#D=[],this.#F=[],this.#O=[];for(const t of this.#u.plugins)(t.particleFillColor??t.particleStrokeColor)&&this.#M.push(t),t.canvasClear&&this.#P.push(t),t.canvasPaint&&this.#x.push(t),t.drawParticle&&this.#I.push(t),t.drawParticleSetup&&this.#_.push(t),t.drawParticleCleanup&&this.#k.push(t),t.draw&&this.#D.push(t),t.drawSettingsSetup&&this.#F.push(t),t.drawSettingsCleanup&&this.#O.push(t),t.clearDraw&&this.#z.push(t)}initUpdaters(){this.#L=[],this.#R=[];for(const t of this.#u.particleUpdaters)t.afterDraw&&this.#R.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this.#L.push(t)}paint(){let t=!1;for(const e of this.#x)if(t=e.canvasPaint?.()??!1,t)break;t||this.paintBase()}paintBase(t){this.draw(e=>{e.fillStyle=t??"rgba(0,0,0,0)",e.fillRect(o.x,o.y,this.#b.size.width,this.#b.size.height)})}paintImage(t,e){this.draw(i=>{if(!t)return;const s=i.globalAlpha;i.globalAlpha=e,i.drawImage(t,o.x,o.y,this.#b.size.width,this.#b.size.height),i.globalAlpha=s})}setContext(t){this.#C=t,this.#C&&(this.#C.globalCompositeOperation=i)}setContextSettings(t){this.#S=t}stop(){this.draw(t=>{t.clearRect(o.x,o.y,this.#b.size.width,this.#b.size.height)})}#$(t){for(const e of this.#R)e.afterDraw?.(t)}#U(t,e,i,s,n,a){for(const o of this.#L){if(o.getColorStyles){const{fill:a,stroke:r}=o.getColorStyles(e,t,i,s);a&&(n.fill=a),r&&(n.stroke=r)}if(o.getTransformValues){const t=o.getTransformValues(e);for(const e in t)Pi(a,t,e)}o.beforeDraw?.(e)}}#W(t,e){if(!t?.drawAfter)return;const{particle:i}=e;i.effect&&t.drawAfter(e)}#j(t,e){if(!t?.drawBefore)return;const{particle:i}=e;i.effect&&t.drawBefore(e)}#V(t){const{container:e,context:i,particle:s,delta:n,colorStyles:a,radius:o,opacity:r,transform:l}=t,{effectDrawers:c,shapeDrawers:h}=e,d=s.getPosition(),u=s.getTransformData(l),p={x:d.x,y:d.y};i.setTransform(u.a,u.b,u.c,u.d,d.x,d.y),a.fill&&(i.fillStyle=a.fill);const f=!!s.fillEnabled,g=s.strokeWidth??0;i.lineWidth=g,a.stroke&&(i.strokeStyle=a.stroke);const y={context:i,particle:s,radius:o,drawRadius:1*o,opacity:r,delta:n,pixelRatio:e.retina.pixelRatio,fill:f,stroke:g>0,transformData:u,position:{...d},drawPosition:p,drawScale:1};for(const t of e.plugins)t.drawParticleTransform?.(y);const m=s.effect?c.get(s.effect):void 0,v=s.shape?h.get(s.shape):void 0;this.#j(m,y),this.#H(v,y),this.#q(v,y),this.#N(v,y),this.#W(m,y),i.resetTransform()}#G(t,e,i,s){e.drawParticle&&e.drawParticle(t,i,s)}#q(t,e){if(!t)return;const{context:i,fill:s,particle:n,stroke:a}=e;n.shape&&(i.beginPath(),t.draw(e),n.shapeClose&&i.closePath(),s&&i.fill(),a&&i.stroke())}#N(t,e){if(!t?.afterDraw)return;const{particle:i}=e;i.shape&&t.afterDraw(e)}#H(t,e){if(!t?.beforeDraw)return;const{particle:i}=e;i.shape&&t.beforeDraw(e)}#B(t){let e,i;for(const s of this.#M)if(!e&&s.particleFillColor&&(e=Pe(this.#p,s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=Pe(this.#p,s.particleStrokeColor(t))),e&&i)break;return this.#T[0]=e,this.#T[1]=i,this.#T}}const xi=new WeakMap;function zi(t,e,i=!1){if(!e)return;const s=t.style,n=new Set;for(let t=0;t<s.length;t++){const e=s.item(t);e&&n.add(e)}for(let t=0;t<e.length;t++){const i=e.item(t);i&&n.add(i)}for(const t of n){const n=e.getPropertyValue(t);n?s.setProperty(t,n,i?"important":""):s.removeProperty(t)}}class Mi{domElement;render;renderCanvas;size;zoom=1;#u;#X;#Y;#Q;#p;#K;#Z;#J;#tt;constructor(t,e){this.#p=t,this.#u=e,this.render=new bi(t,e,this),this.#J={height:0,width:0};const i=e.retina.pixelRatio,s=this.#J;this.size={height:s.height*i,width:s.width*i},this.#X=!1,this.#Z=[],this.#K="none"}get#et(){return this.#u.actualOptions.fullScreen.enable}destroy(){if(this.stop(),this.#X){const t=this.domElement;t?.remove(),this.domElement=void 0,this.renderCanvas=void 0}else this.#it();this.render.destroy(),this.#Z=[]}getZoomCenter(){const t=this.#u.retina.pixelRatio,{width:e,height:i}=this.size;return this.#tt?this.#tt:{x:e*n/t,y:i*n/t}}init(){this.#st(t=>{t.disconnect()}),this.#Y=function(t){if("undefined"!=typeof MutationObserver)return new MutationObserver(t)}(t=>{for(const e of t)"attributes"===e.type&&"style"===e.attributeName&&this.#nt()}),this.resize(),this.#at(),this.initBackground(),this.#st(t=>{const e=this.domElement;e&&e instanceof Node&&t.observe(e,{attributes:!0})}),this.initPlugins(),this.#ot(),this.render.init()}initBackground(){const t=this.#u,e=t.actualOptions.background,i=this.domElement;if(!i)return;const s=i.style,n=ve(this.#p,e.color);s.backgroundColor=n?ze(n,t.actualOptions.hdr,e.opacity):"",s.backgroundImage=e.image||"",s.backgroundPosition=e.position||"",s.backgroundRepeat=e.repeat||"",s.backgroundSize=e.size||""}initPlugins(){this.#Z=[];for(const t of this.#u.plugins)t.resize&&this.#Z.push(t)}loadCanvas(t){this.#X&&this.domElement&&this.domElement.remove();const i=(t=>"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement)(t)?t:void 0;this.domElement=i,this.#X=!!i&&"true"===i.dataset[e],this.renderCanvas=i?(t=>{const e=xi.get(t);if(e)return e;if("function"!=typeof t.transferControlToOffscreen)throw new TypeError("OffscreenCanvas is required but not supported by this browser");try{const e=t.transferControlToOffscreen();return xi.set(t,e),e}catch{throw new TypeError("OffscreenCanvas transfer failed")}})(i):t;const s=this.domElement;s&&(s.ariaHidden="true",this.#Q=function(t){const e=Q().createElement("div").style;for(const i in t){const s=t[i];if(!(i in t)||D(s))continue;const n=t.getPropertyValue?.(s);if(!n)continue;const a=t.getPropertyPriority?.(s);a?e.setProperty(s,n,a):e.setProperty(s,n)}return e}(s.style));const n=this.#J,a=this.renderCanvas;s?(n.height=s.offsetHeight,n.width=s.offsetWidth):(n.height=a.height,n.width=a.width);const o=this.#u.retina.pixelRatio,r=this.size;a.height=r.height=n.height*o,a.width=r.width=n.width*o}resize(){const t=this.domElement;if(!t)return!1;const e=this.#u,i=this.renderCanvas;if(void 0===i)return!1;const s=e.canvas.#J,n={width:t.offsetWidth,height:t.offsetHeight},a=e.retina.pixelRatio,o={width:n.width*a,height:n.height*a};if(n.height===s.height&&n.width===s.width&&o.height===i.height&&o.width===i.width)return!1;const r={...s};s.height=n.height,s.width=n.width;const l=this.size;return i.width=l.width=o.width,i.height=l.height=o.height,this.#u.started&&e.particles.setResizeFactor({width:s.width/r.width,height:s.height/r.height}),!0}setPointerEvents(t){this.domElement&&(this.#K=t,this.#nt())}setZoom(t,e){this.zoom=t,this.#tt=e}stop(){this.#st(t=>{t.disconnect()}),this.#Y=void 0,this.render.stop()}async windowResize(){if(!this.domElement||!this.resize())return;const t=this.#u,e=t.updateActualOptions();t.particles.setDensity(),this.#rt(),e&&await t.refresh()}#rt(){for(const t of this.#Z)t.resize?.()}#ot(){const t=this.#u.actualOptions.hdr&&K("(color-gamut: p3)")?.matches&&K("(dynamic-range: high)")?.matches;this.render.setContextSettings({alpha:!0,desynchronized:!0,willReadFrequently:!1,...t?{colorSpace:"display-p3",colorType:"float16"}:{colorSpace:"srgb"}});const e=this.renderCanvas;e&&this.render.setContext(e.getContext("2d",this.render.settings))}#at(){const t=this.domElement,e=this.#u.actualOptions;if(t){this.#et?this.#lt():this.#it();for(const i in e.style){if(!i||!(i in e.style))continue;const s=e.style[i];s&&t.style.setProperty(i,s,"important")}}}#nt(){const t=this.domElement;if(!t)return;this.#st(t=>{t.disconnect()}),this.#at(),this.initBackground();const e=this.#K;t.style.pointerEvents=e,t.style.setProperty("pointer-events",e),this.#st(e=>{t instanceof Node&&e.observe(t,{attributes:!0})})}#it(){const t=this.domElement,e=this.#Q;t&&e&&zi(t,e,!0)}#st(t){this.#Y&&t(this.#Y)}#lt(){const t=this.domElement;t&&zi(t,function(t){if(at!==t||!ot){at=t;const e=Q().createElement("div").style,i=10,s={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(i),"z-index":t.toString(i),top:"0",left:"0","pointer-events":"none"};for(const t in s){const i=s[t];void 0!==i&&e.setProperty(t,i)}ot=e}return ot}(this.#u.actualOptions.fullScreen.zIndex),!0)}}class Ci{#u;#ct;#ht;#dt;constructor(t){this.#u=t,this.#ct={visibilityChange:()=>{this.#ut()},resize:()=>{this.#pt()}}}addListeners(){this.#ft(!0)}removeListeners(){this.#ft(!1)}#ut(){const t=this.#u;t.actualOptions.pauseOnBlur&&(Q().hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))}#pt(){this.#dt&&(clearTimeout(this.#dt),this.#dt=void 0);const t=async()=>{const t=this.#u.canvas;await t.windowResize()};this.#dt=setTimeout(()=>{t()},this.#u.actualOptions.resize.delay*a)}#ft(t){const e=this.#ct;this.#gt(t),rt(document,"visibilitychange",e.visibilityChange,t,!1)}#gt(t){const e=this.#ct,i=this.#u;if(!i.actualOptions.resize.enable)return;if("undefined"==typeof ResizeObserver)return void rt(globalThis,"resize",e.resize,t);const s=i.canvas.domElement;this.#ht&&!t?(s&&this.#ht.unobserve(s),this.#ht.disconnect(),this.#ht=void 0):!this.#ht&&t&&s&&(this.#ht=new ResizeObserver(t=>{t.find(t=>t.target===s)&&this.#pt()}),this.#ht.observe(s))}}function Si(t){if(e=t.outMode,i=t.checkModes,!(e===i||_(i)&&i.includes(e)))return;var e,i;const s=2*t.radius;t.coord>t.maxCoord-s?t.setCb(-t.radius):t.coord<s&&t.setCb(t.radius)}function Ii(t,e){const i=t%e;return i<0?i+e:i}function ki(t,e,i,s){const n=fe(i,e,e.actualOptions.particles),a=n.reduceDuplicates;t.effect=st(n.effect.type,t.id,a),t.shape=st(n.shape.type,t.id,a);const o=n.effect,r=n.shape;if(s){if(s.effect){const e=s.effect.type;if(e&&e!==t.effect){const i=st(e,t.id,a);i&&(t.effect=i)}o.load(s.effect)}if(s.shape){const e=s.shape.type;if(e&&e!==t.shape){const i=st(e,t.id,a);i&&(t.shape=i)}r.load(s.shape)}}if(t.effect===d){const i=[...e.effectDrawers.keys()];t.effect=i[Math.floor(E()*i.length)]}if(t.shape===d){const i=[...e.shapeDrawers.keys()];t.shape=i[Math.floor(E()*i.length)]}t.effectData=t.effect?function(t,e,i,s){const n=e.options[t];return et({close:e.close},st(n,i,s))}(t.effect,o,t.id,a):void 0,t.shapeData=t.shape?function(t,e,i,s){const n=e.options[t];return et({close:e.close},st(n,i,s))}(t.shape,r,t.id,a):void 0,n.load(s);const l=t.effectData,c=t.shapeData;return l&&n.load(l.particles),c&&n.load(c.particles),t.effectClose=l?.close??n.effect.close,t.shapeClose=c?.close??n.shape.close,n}class _i{backColor;bubble;destroyed;direction;effect;effectClose;effectData;fillColor;fillEnabled;fillOpacity;group;id;ignoresResizeRatio;initialPosition;initialVelocity;isRotating;justWarped;lastPathTime;misplaced;moveCenter;offset;opacity;options;outType;pathRotation;position;randomIndexData;retina;roll;rotation;shape;shapeClose;shapeData;sides;size;slow;spawning;strokeColor;strokeOpacity;strokeWidth;unbreakable;velocity;zIndexFactor;#yt={fillOpacity:1,opacity:1,strokeOpacity:1};#mt=z.origin;#vt={sin:0,cos:0};#wt={a:1,b:0,c:0,d:1};#u;#p;constructor(t,e){this.#p=t,this.#u=e}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const e=this.#u,i=this.shape?e.shapeDrawers.get(this.shape):void 0;i?.particleDestroy?.(this);for(const i of e.particleDestroyedPlugins)i.particleDestroyed?.(this,t);for(const i of e.particleUpdaters)i.particleDestroyed?.(this,t);this.#u.dispatchEvent(ht.particleDestroyed,{particle:this})}draw(t){const e=this.#u.canvas.render;e.drawParticlePlugins(this,t),e.drawParticle(this,t)}getAngle(){return this.rotation+(this.pathRotation?this.velocity.angle:0)}getFillColor(){return this.#Pt(this.bubble.color??Ce(this.fillColor))}getMass(){return this.getRadius()**2*Math.PI*n}getOpacity(){const t=this.options.zIndex,e=(1-this.zIndexFactor)**t.opacityRate,i=this.bubble.opacity??U(this.opacity?.value??1),s=this.fillOpacity??1,n=this.strokeOpacity??1;return this.#yt.fillOpacity=i*s*e,this.#yt.opacity=i*e,this.#yt.strokeOpacity=i*n*e,this.#yt}getPosition(){return this.#mt.x=this.position.x+this.offset.x,this.#mt.y=this.position.y+this.offset.y,this.#mt.z=this.position.z,this.#mt}getRadius(){return this.bubble.radius??this.size.value}getRotateData(){const t=this.getAngle();return this.#vt.sin=Math.sin(t),this.#vt.cos=Math.cos(t),this.#vt}getStrokeColor(){return this.#Pt(this.bubble.color??Ce(this.strokeColor))}getTransformData(t){const e=this.getRotateData(),i=this.isRotating;return this.#wt.a=e.cos*(t.a??r),this.#wt.b=i?e.sin*(t.b??1):t.b??l,this.#wt.c=i?-e.sin*(t.c??1):t.c??c,this.#wt.d=e.cos*(t.d??h),this.#wt}init(t,e,i,s){const n=this.#u;!function(t,e,i){t.id=e,t.group=i,t.justWarped=!1,t.effectClose=!0,t.shapeClose=!0,t.pathRotation=!1,t.lastPathTime=0,t.destroyed=!1,t.unbreakable=!1,t.isRotating=!1,t.rotation=0,t.misplaced=!1,t.retina={maxDistance:{},maxSpeed:0,moveDrift:0,moveSpeed:0,sizeAnimationSpeed:0},t.size={value:1,max:1,min:1,enable:!1},t.outType=Ct.normal,t.ignoresResizeRatio=!0}(this,t,s),this.options=ki(this,n,this.#p,i),n.retina.initParticle(this),function(t,e){for(const i of t)i.preInit?.(e)}(n.particleUpdaters,this),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this.#bt(e),this.initialVelocity=this.#xt(),this.velocity=this.initialVelocity.copy(),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24,function(t,e){let i,s;t.effect&&(i=e.effectDrawers.get(t.effect)),i?.loadEffect&&i.loadEffect(t),t.shape&&(s=e.shapeDrawers.get(t.shape)),s?.loadShape&&s.loadShape(t);const n=s?.getSidesCount;n&&(t.sides=n(t))}(this,n),this.spawning=!1,function(t,e){for(const i of t)i.init(e)}(n.particleUpdaters,this),function(t,e){const i=e.shape?t.shapeDrawers.get(e.shape):void 0,s=e.effect?t.effectDrawers.get(e.effect):void 0;s?.particleInit?.(t,e),i?.particleInit?.(t,e)}(n,this),function(t,e){for(const i of t.particleCreatedPlugins)i.particleCreated?.(e)}(n,this)}isInsideCanvas(t){return this.#zt({direction:t}).inside}isInsideCanvasForOutMode(t,e){return this.#zt({direction:e,outMode:t}).inside}isShowingBack(){if(!this.roll)return!1;const t=this.roll.angle;if(this.roll.horizontal&&this.roll.vertical){const e=Ii(t,u);return e>=Math.PI*n&&e<3*Math.PI*n}if(this.roll.horizontal){const e=Ii(t+Math.PI*n,u);return e>=Math.PI&&e<2*Math.PI}if(this.roll.vertical){const e=Ii(t,u);return e>=Math.PI&&e<2*Math.PI}return!1}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const t of this.#u.particleUpdaters)t.reset?.(this)}#Mt(t,e){let i=0,s=t?z.create(t.x,t.y,e):void 0;const n=this.#u,a=n.particlePositionPlugins,o=this.options.move.outModes,r=this.getRadius(),l=n.canvas.size;for(;;){for(const t of a){const i=t.particlePosition?.(s,this);if(i)return z.create(i.x,i.y,e)}const t=q({size:l,position:s}),c=z.create(t.x,t.y,e);this.#Ct(c,r,o.left??o.default),this.#Ct(c,r,o.right??o.default),this.#St(c,r,o.top??o.default),this.#St(c,r,o.bottom??o.default);let h=!0;for(const t of n.particles.checkParticlePositionPlugins)if(h=t.checkParticlePosition?.(this,c,i)??!0,!h)break;if(h)return c;i+=1,s=void 0}}#xt(){const t=this.options.move,e=function(t){const e=M.origin;return e.length=1,e.angle=t,e}(this.direction).copy();if(t.direction===b.inside||t.direction===b.outside)return e;const i=H(U(t.angle.value)),s=H(U(t.angle.offset)),a={left:s-i*n,right:s+i*n};return t.straight||(e.angle+=B(G(a.left,a.right))),t.random&&"number"==typeof t.speed&&(e.length*=E()),e}#Ct(t,e,i){Si({outMode:i,checkModes:[bt.bounce],coord:t.x,maxCoord:this.#u.canvas.size.width,setCb:e=>t.x+=e,radius:e})}#St(t,e,i){Si({outMode:i,checkModes:[bt.bounce],coord:t.y,maxCoord:this.#u.canvas.size.height,setCb:e=>t.y+=e,radius:e})}#It(t,e){const i=this.getRadius(),s=this.#u.canvas.size,n=this.position,a=e===bt.bounce;return t===X.bottom?{inside:a?n.y+i<s.height:n.y-i<s.height,reason:"default"}:t===X.left?{inside:a?n.x-i>0:n.x+i>0,reason:"default"}:t===X.right?{inside:a?n.x+i<s.width:n.x-i<s.width,reason:"default"}:t===X.top?{inside:a?n.y-i>0:n.y+i>0,reason:"default"}:{inside:n.x>=-i&&n.y>=-i&&n.y<=s.height+i&&n.x<=s.width+i,reason:"default"}}#kt(t,e){return{canvasSize:this.#u.canvas.size,direction:t,outMode:e,particle:this,radius:this.getRadius()}}#zt(t){const e=this.#It(t.direction,t.outMode),i=this.#u,s=this.shape?i.shapeDrawers.get(this.shape):void 0,n=this.effect?i.effectDrawers.get(this.effect):void 0,a=s?.isInsideCanvas,o=n?.isInsideCanvas;if(!a&&!o)return e;const r=this.#kt(t.direction,t.outMode),l=a?this.#_t(a(r),"shape"):void 0,c=o?this.#_t(o(r),"effect"):void 0;if(l&&c){const t=Math.max(l.margin??0,c.margin??0);return{inside:l.inside&&c.inside,margin:t>0?t:void 0,reason:"combined"}}return l??c??e}#Pt(t){return t&&this.roll&&(this.backColor||this.roll.alter)&&this.isShowingBack()?this.backColor?this.backColor:this.roll.alter?function(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===xt.darken?-1:1)*i}}(t,this.roll.alter.type,this.roll.alter.value):t:t}#bt(t){const e=this.#u,i=Math.floor(U(this.options.zIndex.value)),s=this.#Mt(t,A(i,0,e.zLayers));if(!s)throw new Error("a valid position cannot be found for particle");this.position=s,this.initialPosition=this.position.copy();const a=e.canvas.size;switch(this.moveCenter={...nt(this.options.move.center,a),radius:this.options.move.center.radius,mode:this.options.move.center.mode},this.direction=function(t,e,i){if(I(t))return H(t);switch(t){case b.top:return-Math.PI*n;case b.topRight:return-Math.PI*P;case b.right:return 0;case b.bottomRight:return Math.PI*P;case b.bottom:return Math.PI*n;case b.bottomLeft:return.75*Math.PI;case b.left:return Math.PI;case b.topLeft:return.75*-Math.PI;case b.inside:return Math.atan2(i.y-e.y,i.x-e.x);case b.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return E()*u}}(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case b.inside:this.outType=Ct.inside;break;case b.outside:this.outType=Ct.outside}this.offset=M.origin}#_t(t,e){return"boolean"==typeof t?{inside:t,reason:e}:{inside:t.inside,margin:t.margin,reason:t.reason??e}}}class Di{#Dt;#Ot=new Map;#Ft=[];#Rt;#Lt;#Et=[];#Tt;constructor(t){this.#Dt=t,this.#Rt=0,this.#Tt=0}clear(){this.#Ot.clear();const t=this.#Lt;t&&(this.#Dt=t),this.#Lt=void 0}insert(t){const{x:e,y:i}=t.getPosition(),s=this.#At(e,i);this.#Ot.has(s)||this.#Ot.set(s,[]),this.#Ot.get(s)?.push(t)}query(t,e,i=[]){const s=this.#Bt(t);if(!s)return i;const n=Math.floor(s.minX/this.#Dt),a=Math.floor(s.maxX/this.#Dt),o=Math.floor(s.minY/this.#Dt),r=Math.floor(s.maxY/this.#Dt);for(let s=n;s<=a;s++)for(let n=o;n<=r;n++){const a=`${s}_${n}`,o=this.#Ot.get(a);if(o)for(const s of o)e&&!e(s)||t.contains(s.getPosition())&&i.push(s)}return i}queryCircle(t,e,i,s=[]){const n=this.#Ut(t.x,t.y,e),a=this.query(n,i,s);return this.#Vt(),a}queryRectangle(t,e,i,s=[]){const n=this.#$t(t.x,t.y,e.width,e.height),a=this.query(n,i,s);return this.#Vt(),a}setCellSize(t){this.#Lt=t}#Ut(t,e,i){return(this.#Ft[this.#Rt++]??=new _t(t,e,i)).reset(t,e,i)}#$t(t,e,i,s){return(this.#Et[this.#Tt++]??=new Dt(t,e,i,s)).reset(t,e,i,s)}#At(t,e){return`${Math.floor(t/this.#Dt)}_${Math.floor(e/this.#Dt)}`}#Bt(t){if(t instanceof _t){const e=t.radius,{x:i,y:s}=t.position;return{minX:i-e,maxX:i+e,minY:s-e,maxY:s+e}}if(t instanceof Dt){const{x:e,y:i}=t.position,{width:s,height:n}=t.size;return{minX:e,maxX:e+s,minY:i,maxY:i+n}}return null}#Vt(){this.#Rt=0,this.#Tt=0}}class Oi{checkParticlePositionPlugins;grid;#Gt;#u;#Wt;#jt;#Ht;#qt;#Nt;#Xt;#p;#Yt;#Qt;#Kt;#Zt;#Jt;#te;constructor(t,e){this.#p=t,this.#u=e,this.#Ht=0,this.#Gt=[],this.#Yt=[],this.#jt=0,this.#Wt=new Map,this.#qt=new Map,this.#te=this.#ee(this.#u.zLayers),this.grid=new Di(100),this.checkParticlePositionPlugins=[],this.#Nt=[],this.#Xt=[],this.#Kt=[],this.#Qt=[],this.#Jt=[]}get count(){return this.#Gt.length}addParticle(t,e,i,s){const n=this.#u.actualOptions.particles.number.limit.mode,a=void 0===i?this.#jt:this.#Wt.get(i)??this.#jt,o=this.count;if(a>0)switch(n){case Pt.delete:{const t=o+1-a;t>0&&this.removeQuantity(t);break}case Pt.wait:if(o>=a)return}try{const n=this.#Yt.pop()??new _i(this.#p,this.#u);n.init(this.#Ht,t,e,i);let a=!0;return s&&(a=s(n)),a?(this.#Gt.push(n),this.#ie(n),this.#Ht++,this.#u.dispatchEvent(ht.particleAdded,{particle:n}),n):void this.#Yt.push(n)}catch(t){ft().warning(`error adding particle: ${t}`)}}clear(){this.#Gt=[],this.#qt.clear(),this.#se(this.#u.zLayers)}destroy(){this.#Gt=[],this.#Yt.length=0,this.#qt.clear(),this.#te=[],this.checkParticlePositionPlugins=[],this.#Nt=[],this.#Xt=[],this.#Kt=[],this.#Qt=[],this.#Jt=[]}drawParticles(t){for(let e=this.#te.length-1;e>=0;e--){const i=this.#te[e];if(i)for(const e of i)e.draw(t)}}filter(t){return this.#Gt.filter(t)}find(t){return this.#Gt.find(t)}get(t){return this.#Gt[t]}async init(){const t=this.#u,e=t.actualOptions;this.checkParticlePositionPlugins=[],this.#Jt=[],this.#Xt=[],this.#Kt=[],this.#Nt=[],this.#Qt=[],this.#qt.clear(),this.#se(t.zLayers),this.grid=new Di(100*t.retina.pixelRatio);for(const e of t.plugins)e.redrawInit&&await e.redrawInit(),e.checkParticlePosition&&this.checkParticlePositionPlugins.push(e),e.update&&this.#Jt.push(e),e.particleUpdate&&this.#Xt.push(e),e.postUpdate&&this.#Kt.push(e),e.particleReset&&this.#Nt.push(e),e.postParticleUpdate&&this.#Qt.push(e);await this.#u.initDrawersAndUpdaters();for(const e of this.#u.effectDrawers.values())await(e.init?.(t));for(const e of this.#u.shapeDrawers.values())await(e.init?.(t));let i=!1;for(const e of t.plugins)if(i=e.particlesInitialization?.()??i,i)break;if(!i){const t=e.particles,i=t.groups;for(const e in i){const s=i[e];if(s)for(let i=this.count,n=0;n<s.number.value&&i<t.number.value;i++,n++)this.addParticle(void 0,s,e)}for(let e=this.count;e<t.number.value;e++)this.addParticle()}}push(t,e,i,s){for(let n=0;n<t;n++)this.addParticle(e,i,s)}async redraw(){this.clear(),await this.init(),this.#u.canvas.render.drawParticles({value:0,factor:0})}remove(t,e,i){this.removeAt(this.#Gt.indexOf(t),void 0,e,i)}removeAt(t,e=1,i,s){if(t<0||t>this.count)return;let n=0;for(let a=t;n<e&&a<this.count;a++)this.#ne(a,i,s)&&(a--,n++)}removeQuantity(t,e){this.removeAt(0,t,e)}setDensity(){const t=this.#u.actualOptions,e=t.particles.groups;let i=0;for(const t of this.#u.plugins)t.particlesDensityCount&&(i+=t.particlesDensityCount());for(const t in e){const s=e[t];if(!s)continue;const n=fe(this.#p,this.#u,s);this.#ae(n,i,t)}this.#ae(t.particles,i)}setResizeFactor(t){this.#Zt=t}update(t){this.grid.clear();for(const e of this.#Jt)e.update?.(t);const e=this.#oe(t);for(const e of this.#Kt)e.postUpdate?.(t);if(this.#re(t,e),e.size)for(const t of e)this.remove(t);this.#Zt=void 0}#le(...t){this.#Yt.push(...t)}#ae(t,e,i,s){const n=t.number;if(!n.density.enable)return void(void 0===i?this.#jt=n.limit.value:(s?.number.limit.value??n.limit.value)&&this.#Wt.set(i,s?.number.limit.value??n.limit.value));const a=this.#ce(n.density),o=n.value,r=n.limit.value>0?n.limit.value:o,l=Math.min(o,r)*a+e,c=Math.min(this.count,this.filter(t=>t.group===i).length);void 0===i?this.#jt=n.limit.value*a:this.#Wt.set(i,n.limit.value*a),c<l?this.push(Math.abs(l-c),void 0,t,i):c>l&&this.removeQuantity(c-l,i)}#ee(t){const e=Math.max(Math.floor(t),1);return Array.from({length:e},()=>[])}#he(t){const e=this.#te.length-1;return e<=0?0:Math.min(Math.max(Math.floor(t),0),e)}#ce(t){const e=this.#u;if(!t.enable)return 1;const i=e.canvas.size,s=e.retina.pixelRatio;return i.width&&i.height?i.width*i.height/(t.height*t.width*s**2):1}#ie(t){const e=this.#he(t.position.z),i=this.#te[e];i&&(i.push(t),this.#qt.set(t.id,e))}#ne(t,e,i){const s=this.#Gt[t];return!!s&&(s.group===e&&(this.#Gt.splice(t,1),this.#de(s),s.destroy(i),this.#u.dispatchEvent(ht.particleRemoved,{particle:s}),this.#le(s),!0))}#de(t){const e=this.#qt.get(t.id)??this.#he(t.position.z),i=this.#te[e];if(!i)return void this.#qt.delete(t.id);const s=i.findIndex(e=>e.id===t.id);s>=0&&i.splice(s,1),this.#qt.delete(t.id)}#se(t){const e=Math.max(Math.floor(t),1);if(this.#te.length===e)for(const t of this.#te)t.length=0;else this.#te=this.#ee(e)}#ue(t){const e=this.#he(t.position.z),i=this.#qt.get(t.id);if(void 0===i)return void this.#ie(t);if(i===e)return;const s=this.#te[i];if(s){const e=s.findIndex(e=>e.id===t.id);e>=0&&s.splice(e,1)}const n=this.#te[e];if(n){if(n.push(t),n.length>=2){const e=n[n.length-2];e&&t.id<e.id&&n.sort((t,e)=>t.id-e.id)}this.#qt.set(t.id,e)}else this.#qt.set(t.id,e)}#oe(t){const e=new Set,i=this.#Zt;for(const s of this.#Gt){i&&!s.ignoresResizeRatio&&(s.position.x*=i.width,s.position.y*=i.height,s.initialPosition.x*=i.width,s.initialPosition.y*=i.height),s.ignoresResizeRatio=!1;for(const t of this.#Nt)t.particleReset?.(s);for(const e of this.#Xt){if(s.destroyed)break;e.particleUpdate?.(s,t)}s.destroyed?e.add(s):this.grid.insert(s)}return e}#re(t,e){for(const i of this.#Gt)if(i.destroyed)e.add(i);else{for(const e of this.#u.particleUpdaters)e.update(i,t);if(!i.spawning)for(const e of this.#Qt)e.postParticleUpdate?.(i,t);this.#ue(i)}}}class Fi{pixelRatio;reduceFactor;#u;constructor(t){this.#u=t,this.pixelRatio=1,this.reduceFactor=1}init(){const t=this.#u,e=t.actualOptions;this.pixelRatio=e.detectRetina?devicePixelRatio:1,this.reduceFactor=1;const i=this.pixelRatio,s=t.canvas,n=s.domElement;n&&(s.size.width=n.offsetWidth*i,s.size.height=n.offsetHeight*i)}initParticle(t){const e=t.options,i=this.pixelRatio,s=e.move,n=s.distance,a=t.retina;a.maxSpeed=U(s.gravity.maxSpeed)*i,a.moveDrift=U(s.drift)*i,a.moveSpeed=U(s.speed)*i;const o=a.maxDistance;o.horizontal=void 0===n.horizontal?void 0:n.horizontal*i,o.vertical=void 0===n.vertical?void 0:n.vertical*i}}function Ri(t){return!t.destroyed}function Li(t,e,...i){const s=new ge(t,e);return Ft(s,...i),s}var Ei=Object.freeze({__proto__:null,Container:class{actualOptions;canvas;destroyed;effectDrawers;fpsLimit;hdr;id;pageHidden;particleCreatedPlugins;particleDestroyedPlugins;particlePositionPlugins;particleUpdaters;particles;plugins;retina;shapeDrawers;started;zLayers;#pe;#fe;#ge={value:0,factor:0};#ye;#me;#ve;#we;#Pe;#be;#xe;#ze;#Me;#Ce;#Se;#p;#Ie;#ke;constructor(t){const{dispatchCallback:e,pluginManager:i,id:s,onDestroy:n,sourceOptions:a}=t;this.#p=i,this.#ye=e,this.#Me=n,this.id=Symbol(s),this.fpsLimit=120,this.hdr=!1,this.#Ie=!1,this.#pe=0,this.#ve=0,this.#ze=0,this.#Pe=!0,this.started=!1,this.destroyed=!1,this.#Se=!0,this.#xe=0,this.zLayers=100,this.pageHidden=!1,this.#ke=a,this.#be=a,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.retina=new Fi(this),this.canvas=new Mi(this.#p,this),this.particles=new Oi(this.#p,this),this.plugins=[],this.particleDestroyedPlugins=[],this.particleCreatedPlugins=[],this.particlePositionPlugins=[],this.#Ce=Li(this.#p,this),this.actualOptions=Li(this.#p,this),this.#we=new Ci(this),this.dispatchEvent(ht.containerBuilt)}get animationStatus(){return!this.#Se&&!this.pageHidden&&Ri(this)}get options(){return this.#Ce}get sourceOptions(){return this.#ke}addLifeTime(t){this.#ze+=t}alive(){return!this.#ve||this.#ze<=this.#ve}destroy(t=!0){if(Ri(this)){this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,t]of this.effectDrawers)t.destroy?.(this);for(const[,t]of this.shapeDrawers)t.destroy?.(this);for(const t of this.plugins)t.destroy?.();this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.plugins.length=0,this.#p.clearPlugins(this),this.destroyed=!0,this.#Me(t),this.dispatchEvent(ht.containerDestroyed)}}dispatchEvent(t,e){this.#ye(t,{container:this,data:e})}draw(t){if(!Ri(this))return;let e=t;this.#me=R(t=>{e&&(this.#xe=void 0,e=!1),this.#_e(t)})}async export(t,e={}){for(const i of this.plugins){if(!i.export)continue;const s=await i.export(t,e);if(s.supported)return s.blob}ft().error(`Export plugin with type ${t} not found`)}async init(){if(!Ri(this))return;const t=new Map;for(const e of this.#p.plugins){const i=await e.getPlugin(this);i.preInit&&await i.preInit(),t.set(e,i)}await this.initDrawersAndUpdaters(),this.#Ce=Li(this.#p,this,this.#be,this.sourceOptions),this.actualOptions=Li(this.#p,this,this.#Ce),this.plugins.length=0,this.particleDestroyedPlugins.length=0,this.particleCreatedPlugins.length=0,this.particlePositionPlugins.length=0;for(const[e,i]of t)e.needsPlugin(this.actualOptions)&&(this.plugins.push(i),i.particleCreated&&this.particleCreatedPlugins.push(i),i.particleDestroyed&&this.particleDestroyedPlugins.push(i),i.particlePosition&&this.particlePositionPlugins.push(i));this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{delay:e,duration:i,fpsLimit:s,hdr:n,smooth:o,zLayers:r}=this.actualOptions;this.hdr=n,this.zLayers=r,this.#ve=U(i)*a,this.#pe=U(e)*a,this.#ze=0,this.fpsLimit=s>0?s:120,this.#Ie=o;for(const t of this.plugins)await(t.init?.());await this.particles.init(),this.dispatchEvent(ht.containerInit),this.particles.setDensity();for(const t of this.plugins)t.particlesSetup?.();this.dispatchEvent(ht.particlesSetup)}async initDrawersAndUpdaters(){const t=this.#p;this.effectDrawers=await t.getEffectDrawers(this,!0),this.shapeDrawers=await t.getShapeDrawers(this,!0),this.particleUpdaters=await t.getUpdaters(this,!0)}pause(){var t;if(Ri(this)&&(void 0!==this.#me&&(t=this.#me,L(t),this.#me=void 0),!this.#Se)){for(const t of this.plugins)t.pause?.();this.pageHidden||(this.#Se=!0),this.dispatchEvent(ht.containerPaused)}}play(t){if(!Ri(this))return;const e=this.#Se||t;if(!this.#Pe||this.actualOptions.autoPlay){if(this.#Se&&(this.#Se=!1),e)for(const t of this.plugins)t.play&&t.play();this.dispatchEvent(ht.containerPlay),this.draw(e??!1)}else this.#Pe=!1}async refresh(){if(Ri(this))return this.stop(),this.start()}async reset(t){if(Ri(this))return this.#be=t,this.#ke=t,this.#Ce=Li(this.#p,this,this.#be,this.sourceOptions),this.actualOptions=Li(this.#p,this,this.#Ce),this.refresh()}async start(){Ri(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{const e=async()=>{this.#we.addListeners();for(const t of this.plugins)await(t.start?.());this.dispatchEvent(ht.containerStarted),this.play(),t()};this.#fe=setTimeout(()=>{e()},this.#pe)}))}stop(){if(Ri(this)&&this.started){this.#fe&&(clearTimeout(this.#fe),this.#fe=void 0),this.#Pe=!0,this.started=!1,this.#we.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop();for(const t of this.plugins)t.stop?.();this.particleCreatedPlugins.length=0,this.particleDestroyedPlugins.length=0,this.particlePositionPlugins.length=0,this.#ke=this.#Ce,this.dispatchEvent(ht.containerStopped)}}updateActualOptions(){let t=!1;for(const e of this.plugins)e.updateActualOptions&&(t=e.updateActualOptions()||t);return t}#_e(t){try{if(!this.#Ie&&void 0!==this.#xe&&t<this.#xe+a/this.fpsLimit)return void this.draw(!1);if(this.#xe??=t,function(t,e,i=60,s=!1){t.value=e,t.factor=s?60/i:60*e/a}(this.#ge,t-this.#xe,this.fpsLimit,this.#Ie),this.addLifeTime(this.#ge.value),this.#xe=t,this.#ge.value>a)return void this.draw(!1);if(this.canvas.render.drawParticles(this.#ge),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(t){ft().error("error in animation loop",t)}}}});var Ti=Object.freeze({__proto__:null,BlendPluginInstance:class{#u;#De;constructor(t){this.#u=t}drawParticleCleanup(t,e){e.options.blend?.enable&&(t.globalCompositeOperation=e.originalBlendMode??i,e.originalBlendMode=void 0)}drawParticleSetup(t,e){e.options.blend?.enable&&(e.originalBlendMode=t.globalCompositeOperation,t.globalCompositeOperation=e.options.blend.mode)}drawSettingsCleanup(t){this.#De&&(t.globalCompositeOperation=this.#De)}drawSettingsSetup(t){const e=t.globalCompositeOperation,i=this.#u.actualOptions.blend;this.#De=e,t.globalCompositeOperation=i?.enable?i.mode:e}}});function Ai(t,e,i,s,n,a,o){!function(t,e){const i=t.options,s=i.move.path;if(!s.enable)return;const n=t.pathDelay??0;if(t.lastPathTime<=n)return void(t.lastPathTime+=e.value);const a=t.pathGenerator?.generate(t,e);a&&t.velocity.addTo(a);s.clamp&&(t.velocity.x=A(t.velocity.x,-1,1),t.velocity.y=A(t.velocity.y,-1,1));t.lastPathTime-=n}(t,o);const r=t.gravity,l=r?.enable&&r.inverse?-1:1;n&&i&&(t.velocity.x+=n*o.factor/(60*i)),r?.enable&&i&&(t.velocity.y+=l*(r.acceleration*o.factor)/(60*i));const c=t.moveDecay;t.velocity.multTo(c??1);const h=t.velocity.mult(i);r?.enable&&s>0&&(!r.inverse&&h.y>=0&&h.y>=s||r.inverse&&h.y<=0&&h.y<=-s)&&(h.y=l*s,i&&(t.velocity.y=h.y/i));const d=t.options.zIndex,u=(1-t.zIndexFactor)**d.velocityRate;h.multTo(u),h.multTo(a);const{position:p}=t;p.addTo(h),e.vibrate&&(p.x+=Math.sin(p.x*Math.cos(p.y))*a,p.y+=Math.cos(p.y*Math.sin(p.x))*a)}function Bi(t,e){const i=e.options.move.spin;if(!i.enable)return;const s=i.position??{x:50,y:50},n={x:.01*s.x*t.canvas.size.width,y:.01*s.y*t.canvas.size.height},a=e.getPosition(),o=(l=a,c=n,Math.sqrt(j(l,c))),r=U(i.acceleration);var l,c;e.retina.spinAcceleration=r*t.retina.pixelRatio,e.spin={center:n,direction:e.velocity.x>=0?vt.clockwise:vt.counterClockwise,angle:E()*u,radius:o,acceleration:e.retina.spinAcceleration}}var Ui=Object.freeze({__proto__:null,MovePluginInstance:class{availablePathGenerators;pathGenerators;#u;#p;constructor(t,e){this.#p=t,this.#u=e,this.availablePathGenerators=new Map,this.pathGenerators=new Map}destroy(){this.availablePathGenerators=new Map,this.pathGenerators=new Map}isEnabled(t){return!t.destroyed&&t.options.move.enable}particleCreated(t){const e=t.options.move,i=e.gravity,s=e.path;if(t.moveDecay=1-U(e.decay),t.pathDelay=U(s.delay.value)*a,s.generator){let e=this.pathGenerators.get(s.generator);e||(e=this.availablePathGenerators.get(s.generator),e&&(this.pathGenerators.set(s.generator,e),e.init())),t.pathGenerator=e}t.gravity={enable:i.enable,acceleration:U(i.acceleration),inverse:i.inverse},Bi(this.#u,t)}particleDestroyed(t){const e=t.pathGenerator;e?.reset(t)}particleUpdate(t,e){const i=t.options.move;if(!i.enable)return;const s=this.#u,a=function(t){return t.slow.inRange?t.slow.factor:1}(t),o=s.retina.reduceFactor,r=t.retina.moveSpeed,l=t.retina.moveDrift,c=t.size.max,h=r*(i.size?t.getRadius()/c:1)*a*(e.factor||1)*n,d=t.retina.maxSpeed;i.spin.enable?function(t,e,i,s){if(!e.spin)return;const a=e.spin.direction===vt.clockwise,o={x:a?Math.cos:Math.sin,y:a?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*o.x(e.spin.angle)*s,e.position.y=e.spin.center.y+e.spin.radius*o.y(e.spin.angle)*s,e.spin.radius+=e.spin.acceleration*s;const r=Math.max(t.canvas.size.width,t.canvas.size.height),l=r*n;e.spin.radius>l?(e.spin.radius=l,e.spin.acceleration*=-1):e.spin.radius<0&&(e.spin.radius=0,e.spin.acceleration*=-1),e.spin.angle+=.01*i*(1-e.spin.radius/r)}(s,t,h,o):Ai(t,i,h,d,l,o,e),function(t){const e=t.initialPosition,{dx:i,dy:s}=W(e,t.position),a=Math.abs(i),o=Math.abs(s),{maxDistance:r}=t.retina,l=r.horizontal,c=r.vertical;if(!l&&!c)return;if((l&&a>=l||c&&o>=c)&&!t.misplaced)t.misplaced=!!l&&a>l||!!c&&o>c,l&&(t.velocity.x=t.velocity.y*n-t.velocity.x),c&&(t.velocity.y=t.velocity.x*n-t.velocity.y);else if((!l||a<l)&&(!c||o<c)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const i=t.position,s=t.velocity;l&&(i.x<e.x&&s.x<0||i.x>e.x&&s.x>0)&&(s.x*=-E()),c&&(i.y<e.y&&s.y<0||i.y>e.y&&s.y>0)&&(s.y*=-E())}}(t)}preInit(){return this.#Oe()}redrawInit(){return this.#Oe()}update(){for(const t of this.pathGenerators.values())t.update()}async#Oe(){const t=await(this.#p.getPathGenerators?.(this.#u,!0));if(t){this.availablePathGenerators=t,this.pathGenerators=new Map;for(const t of this.pathGenerators.values())t.init()}}}});t.loadBigCirclesPreset=vi,t.tsParticles=De}),Object.assign(globalThis.window||globalThis,{loadBigCirclesPreset:(globalThis.__tsParticlesInternals.presets.bigCircles||{}).loadBigCirclesPreset}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
1
+ !function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var e="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,e){return e in t||(t[e]={}),t[e]}})}:function(t){return t};t.__tsParticlesInternals.bundles=e(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=e(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=e(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=e(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=e(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=e(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=e(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=e(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=e(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=e(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=e(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=e(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=e(t.__tsParticlesInternals.path),t.tsparticlesInternalExports=t.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.presets.bigCircles=t.__tsParticlesInternals.presets.bigCircles||{}))}(this,function(t){"use strict";const e="generated",i="source-over",s=100,n=.5,a=1e3,o={x:0,y:0,z:0},r=1,l=0,c=0,h=1,d="random",u=2*Math.PI,p="true",f="false",g="canvas",y=255,m=360,v=100,w=100,P=.25;var b;function x(t){return"z"in t?t.z:o.z}!function(t){t.bottom="bottom",t.bottomLeft="bottom-left",t.bottomRight="bottom-right",t.left="left",t.none="none",t.right="right",t.top="top",t.topLeft="top-left",t.topRight="top-right",t.outside="outside",t.inside="inside"}(b||(b={}));class z{x;y;z;constructor(t=o.x,e=o.y,i=o.z){this.x=t,this.y=e,this.z=i}static get origin(){return z.create(o.x,o.y,o.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this.#t(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this.#t(this.angle,t)}static clone(t){return z.create(t.x,t.y,x(t))}static create(t,e,i){return"number"==typeof t?new z(t,e??o.y,i??o.z):new z(t.x,t.y,x(t))}add(t){return z.create(this.x+t.x,this.y+t.y,this.z+x(t))}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=x(t)}copy(){return z.clone(this)}div(t){return z.create(this.x/t,this.y/t,this.z/t)}getLengthSq(){return this.x**2+this.y**2}mult(t){return z.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return z.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),o.z)}setTo(t){this.x=t.x,this.y=t.y,this.z=x(t)}sub(t){return z.create(this.x-t.x,this.y-t.y,this.z-x(t))}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=x(t)}#t(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}class M extends z{constructor(t=o.x,e=o.y){super(t,e,o.z)}static get origin(){return M.create(o.x,o.y)}static clone(t){return M.create(t.x,t.y)}static create(t,e){return"number"==typeof t?new M(t,e??o.y):new M(t.x,t.y)}}function C(t){return"boolean"==typeof t}function S(t){return"string"==typeof t}function I(t){return"number"==typeof t}function k(t){return"object"==typeof t&&null!==t}function _(t){return Array.isArray(t)}function D(t){return null==t}const O=Math.PI/180;let F=Math.random;const R=t=>requestAnimationFrame(t),L=t=>{cancelAnimationFrame(t)};function E(){return A(F(),0,1-Number.EPSILON)}function T(t,e){return E()*(e-t)+t}function A(t,e,i){return Math.min(Math.max(t,e),i)}function B(t){const e=$(t);let i=V(t);return e===i&&(i=0),T(i,e)}function U(t){return I(t)?t:B(t)}function V(t){return I(t)?t:t.min}function $(t){return I(t)?t:t.max}function G(t,e){if(t===e||void 0===e&&I(t))return t;const i=V(t),s=$(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:G(i,s)}function W(t,e){const i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.hypot(i,s)}}function j(t,e){const i=t.x-e.x,s=t.y-e.y;return i*i+s*s}function H(t){return t*O}function q(t){const{position:e,size:i}=t;return{x:e?.x??E()*i.width,y:e?.y??E()*i.height}}function N(t){return t?t.endsWith("%")?parseFloat(t)/s:parseFloat(t):1}var X,Y;!function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(X||(X={})),function(t){t.precise="precise",t.percent="percent"}(Y||(Y={}));function Q(){return globalThis.document}function K(t){if("undefined"!=typeof matchMedia)return matchMedia(t)}function Z(t,e,i=!0){return t[void 0!==e&&i?e%t.length:Math.floor(E()*t.length)]}function J(t,e,i,s,n){return function(t,e,i,s){let n=!0;s&&s!==X.bottom||(n=t.top<e.height+i.x);!n||s&&s!==X.left||(n=t.right>i.x);!n||s&&s!==X.right||(n=t.left<e.width+i.y);!n||s&&s!==X.top||(n=t.bottom>i.y);return n}(tt(t,s??0),e,i,n)}function tt(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function et(t,...e){for(const i of e){if(D(i))continue;if(!k(i)){t=i;continue}Array.isArray(i)?Array.isArray(t)||(t=[]):k(t)&&!Array.isArray(t)||(t={});const e=Object.keys(i),s=new Set(["__proto__","constructor","prototype"]);if(!e.some(t=>{const e=i[t];return k(e)||Array.isArray(e)})){const n=i,a=t;for(const t of e)if(!s.has(t)&&t in n){const e=n[t];void 0!==e&&(a[t]=e)}continue}for(const n of e){if(s.has(n))continue;const e=t,a=i[n];e[n]=Array.isArray(a)?a.map(t=>et(void 0,t)):et(e[n],a)}}return t}function it(t,e){return _(t)?t.map((t,i)=>e(t,i)):e(t,0)}function st(t,e,i){return _(t)?Z(t,e,i):t}function nt(t,e){return function(t,e){if(t.mode!==Y.percent){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/s*e.width,y:t.y/s*e.height}:{width:t.width/s*e.width,height:t.height/s*e.height}}(t,e)}let at,ot;function rt(t,e,i,s,n){if(s){let s={passive:!0};C(n)?s.capture=n:void 0!==n&&(s=n),t.addEventListener(e,i,s)}else{const s=n;t.removeEventListener(e,i,s)}}async function lt(t,e,i,s=!1){let n=e.get(t);if(!n||s){const s=await Promise.all([...i.entries()].map(([e,i])=>i(t).then(t=>[e,t])));n=new Map(s),e.set(t,n)}return n}class ct{#e;constructor(){this.#e=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this.#e.get(t);i||(i=[],this.#e.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this.#e.get(t);i?.forEach(t=>{t(e)})}hasEventListener(t){return!!this.#e.get(t)}removeAllEventListeners(t){t?this.#e.delete(t):this.#e=new Map}removeEventListener(t,e){const i=this.#e.get(t);if(!i)return;const s=i.length,n=i.indexOf(e);n<0||(1===s?this.#e.delete(t):i.splice(n,1))}}var ht;!function(t){t.configAdded="configAdded",t.containerInit="containerInit",t.particlesSetup="particlesSetup",t.containerStarted="containerStarted",t.containerStopped="containerStopped",t.containerDestroyed="containerDestroyed",t.containerPaused="containerPaused",t.containerPlay="containerPlay",t.containerBuilt="containerBuilt",t.particleAdded="particleAdded",t.particleDestroyed="particleDestroyed",t.particleRemoved="particleRemoved"}(ht||(ht={}));class dt{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;#i=new Set;#s=new Map;#n;#a=new Set;#o=!1;#r=!1;#l=new Set;constructor(t){this.#n=t}get configs(){const t={};for(const[e,i]of this.#s)t[e]=i;return t}addColorManager(t,e){this.colorManagers.set(t,e)}addConfig(t){const e=t.key??t.name??"default";this.#s.set(e,t),this.#n.dispatchEvent(ht.configAdded,{data:{name:e,config:t}})}addEasing(t,e){this.easingFunctions.get(t)||this.easingFunctions.set(t,e)}addEffect(t,e){this.initializers.effects.set(t,e)}addPalette(t,e){this.palettes.set(t,e)}addParticleUpdater(t,e){this.initializers.updaters.set(t,e)}addPlugin(t){this.getPlugin(t.id)||this.plugins.push(t)}addPreset(t,e,i=!1){!i&&this.getPreset(t)||this.presets.set(t,e)}addShape(t,e){for(const i of t)this.initializers.shapes.set(i,e)}clearPlugins(t){this.effectDrawers.delete(t),this.shapeDrawers.delete(t),this.updaters.delete(t)}getEasing(t){return this.easingFunctions.get(t)??(t=>t)}getEffectDrawers(t,e=!1){return lt(t,this.effectDrawers,this.initializers.effects,e)}getPalette(t){return this.palettes.get(t)}getPlugin(t){return this.plugins.find(e=>e.id===t)}getPreset(t){return this.presets.get(t)}async getShapeDrawers(t,e=!1){return lt(t,this.shapeDrawers,this.initializers.shapes,e)}async getUpdaters(t,e=!1){return async function(t,e,i,s=!1){let n=e.get(t);return n&&!s||(n=await Promise.all([...i.values()].map(e=>e(t))),e.set(t,n)),n}(t,this.updaters,this.initializers.updaters,e)}async init(){if(!this.#o&&!this.#r){this.#r=!0,this.#a=new Set,this.#i=new Set(this.#l);try{for(const t of this.#i)await this.#c(t,this.#a,this.#i)}finally{this.#l.clear(),this.#r=!1,this.#o=!0}}}loadParticlesOptions(t,e,...i){const s=this.updaters.get(t);s&&s.forEach(t=>t.loadOptions?.(e,...i))}async register(...t){if(this.#o)throw new Error("Register plugins can only be done before calling tsParticles.load()");for(const e of t)this.#r?await this.#c(e,this.#a,this.#i):this.#l.add(e)}async#c(t,e,i){e.has(t)||(e.add(t),i.add(t),await t(this.#n))}}const ut=t=>(...e)=>{t(...e)},pt={debug:ut(console.debug),error:(t,...e)=>{console.error(`tsParticles - Error - ${t}`,...e)},info:ut(console.info),log:ut(console.log),trace:ut(console.trace),verbose:ut(console.log),warning:ut(console.warn)};function ft(){return pt}const gt="100%";class yt{pluginManager=new dt(this);#h=[];#d=new ct;#o=!1;get items(){return this.#h}get version(){return"4.2.1"}addEventListener(t,e){this.#d.addEventListener(t,e)}checkVersion(t){if(this.version!==t)throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${t}`)}dispatchEvent(t,e){this.#d.dispatchEvent(t,e)}async init(){this.#o||(await this.pluginManager.init(),this.#o=!0)}item(t){const e=this.items,i=e[t];if(!i?.destroyed)return i;e.splice(t,1)}async load(t){let i;await this.init(),"undefined"!=typeof HTMLElement&&t.element instanceof HTMLElement&&(i=t.element);const{Container:s}=await Promise.resolve().then(function(){return Ei}),n=t.id??i?.id??`tsparticles${Math.floor(1e4*E()).toString()}`,{index:a,url:o}=t,r=o?await async function(t){const e=st(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():(ft().error(`${i.status.toString()} while retrieving config file`),t.fallback)}({fallback:t.options,url:o,index:a}):t.options,l=st(r,a),{items:c}=this,h=c.findIndex(t=>t.id.description===n),d=new s({dispatchCallback:(t,e)=>{this.dispatchEvent(t,e)},id:n,onDestroy:t=>{if(!t)return;const e=this.items,i=e.indexOf(d);i>=0&&e.splice(i,1)},pluginManager:this.pluginManager,sourceOptions:l});if(h>=0){const t=this.item(h),e=t?1:0;t&&!t.destroyed&&t.destroy(!1),c.splice(h,e,d)}else c.push(d);const u="undefined"!=typeof OffscreenCanvas&&t.element instanceof OffscreenCanvas?t.element:(t=>{const i=Q();let s;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===g)s=t,s.dataset[e]??=f,s.dataset[e]===p&&(s.style.width||=gt,s.style.height||=gt,s.style.pointerEvents="none",s.style.setProperty("pointer-events","none"));else{const n=t.getElementsByTagName(g).item(0);n?(s=n,s.dataset[e]=f):(s=i.createElement(g),s.dataset[e]=p,t.appendChild(s)),s.style.width||=gt,s.style.height||=gt,s.style.pointerEvents="none",s.style.setProperty("pointer-events","none")}return s})(((t,i)=>{const s=Q();let n=i??s.getElementById(t);return n||(n=s.createElement("canvas"),n.id=t,n.dataset[e]=p,s.body.append(n),n)})(n,i));return d.canvas.loadCanvas(u),await d.start(),d}async refresh(t=!0){t&&await Promise.all(this.items.map(t=>t.refresh()))}removeEventListener(t,e){this.#d.removeEventListener(t,e)}}var mt,vt,wt,Pt,bt,xt,zt,Mt,Ct,St,It;!function(t){t.circle="circle",t.rectangle="rectangle"}(mt||(mt={}));class kt{position;type;constructor(t,e,i){this.position={x:t,y:e},this.type=i}_resetPosition(t,e){this.position.x=t,this.position.y=e}}class _t extends kt{radius;constructor(t,e,i){super(t,e,mt.circle),this.radius=i}contains(t){return e=t,i=this.position,s=this.radius,j(e,i)<=s*s;var e,i,s}intersects(t){const e=this.position,i=t.position,s=this.radius,n=Math.abs(i.x-e.x),a=Math.abs(i.y-e.y);if(t instanceof _t||t.type===mt.circle){return s+t.radius>Math.hypot(n,a)}if(t instanceof Dt||t.type===mt.rectangle){const e=t,{width:i,height:o}=e.size;return Math.pow(n-i,2)+Math.pow(a-o,2)<=s**2||n<=s+i&&a<=s+o||n<=i||a<=o}return!1}reset(t,e,i){return this._resetPosition(t,e),this.radius=i,this}}class Dt extends kt{size;constructor(t,e,i,s){super(t,e,mt.rectangle),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){if(t instanceof _t)return t.intersects(this);if(!(t instanceof Dt))return!1;const e=this.size.width,i=this.size.height,s=this.position,n=t.position,a=t.size,o=a.width,r=a.height;return n.x<s.x+e&&n.x+o>s.x&&n.y<s.y+i&&n.y+r>s.y}reset(t,e,i,s){return this._resetPosition(t,e),this.size.width=i,this.size.height=s,this}}!function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(vt||(vt={})),function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"}(wt||(wt={})),function(t){t.delete="delete",t.wait="wait"}(Pt||(Pt={})),function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"}(bt||(bt={})),function(t){t.darken="darken",t.enlighten="enlighten"}(xt||(xt={})),function(t){t.none="none",t.max="max",t.min="min"}(zt||(zt={})),function(t){t.linear="linear",t.radial="radial",t.random="random"}(Mt||(Mt={})),function(t){t.normal="normal",t.inside="inside",t.outside="outside"}(Ct||(Ct={})),function(t){t.max="max",t.min="min",t.random="random"}(St||(St={})),function(t){t.increasing="increasing",t.decreasing="decreasing"}(It||(It={}));class Ot{load(t){D(t)||this.doLoad(t)}}function Ft(t,...e){for(const i of e)t.load(i)}function Rt(t,e,i){void 0!==i&&(t[e]=i)}function Lt(t,e,i){void 0!==i&&(t[e]=G(i))}function Et(t,e,i,s){if(void 0!==i){const n=t;n[e]??=s(),n[e].load(i)}}function Tt(t,e,i,...s){const n=t;n[e]??=new i;const a=n[e];for(const t of s)a.load(t?.[e])}class At extends Ot{count=0;decay=0;delay=0;enable=!1;speed=1;sync=!1;doLoad(t){Lt(this,"count",t.count),Rt(this,"enable",t.enable),Lt(this,"speed",t.speed),Lt(this,"decay",t.decay),Lt(this,"delay",t.delay),Rt(this,"sync",t.sync)}}class Bt extends At{mode=wt.auto;startValue=St.random;doLoad(t){super.doLoad(t),Rt(this,"mode",t.mode),Rt(this,"startValue",t.startValue)}}class Ut extends At{max;min;offset=0;sync=!0;constructor(t,e){super(),this.min=t,this.max=e}doLoad(t){super.doLoad(t),Rt(this,"max",t.max),Rt(this,"min",t.min),Lt(this,"offset",t.offset)}}class Vt extends Ot{h=new Ut(0,m);l=new Ut(0,w);s=new Ut(0,v);doLoad(t){this.h.load(t.h),this.s.load(t.s),this.l.load(t.l)}}class $t extends Ot{value="";static create(t,e){const i=new $t;return i.load(t),void 0!==e&&(S(e)||_(e)?i.load({value:e}):i.load(e)),i}doLoad(t){D(t.value)||(this.value=t.value)}}class Gt extends $t{animation=new Vt;static create(t,e){const i=new Gt;return i.load(t),void 0!==e&&(S(e)||_(e)?i.load({value:e}):i.load(e)),i}doLoad(t){super.doLoad(t);const e=t.animation;void 0!==e&&(void 0===e.enable?this.animation.load(t.animation):this.animation.h.load(e))}}class Wt extends Ot{color;image="";opacity=1;position="";repeat="";size="";constructor(){super(),this.color=new $t,this.color.value=""}doLoad(t){void 0!==t.color&&(this.color=$t.create(this.color,t.color)),Rt(this,"image",t.image),Rt(this,"position",t.position),Rt(this,"repeat",t.repeat),Rt(this,"size",t.size),Rt(this,"opacity",t.opacity)}}class jt extends Ot{enable=!0;zIndex=0;doLoad(t){Rt(this,"enable",t.enable),Rt(this,"zIndex",t.zIndex)}}class Ht extends Ot{delay=.5;enable=!0;doLoad(t){Rt(this,"delay",t.delay),Rt(this,"enable",t.enable)}}class qt extends Ot{close=!0;options={};type=[];doLoad(t){const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=et(this.options[t]??{},i))}Rt(this,"close",t.close),Rt(this,"type",t.type)}}class Nt extends Ot{color;enable=!0;opacity=1;doLoad(t){void 0!==t.color&&(this.color=Gt.create(this.color,t.color)),Rt(this,"enable",t.enable),Lt(this,"opacity",t.opacity)}}class Xt extends Ot{offset=0;value=90;doLoad(t){Lt(this,"offset",t.offset),Lt(this,"value",t.value)}}class Yt extends Ot{mode=Y.percent;radius=0;x=50;y=50;doLoad(t){Rt(this,"x",t.x),Rt(this,"y",t.y),Rt(this,"mode",t.mode),Rt(this,"radius",t.radius)}}class Qt extends Ot{acceleration=9.81;enable=!1;inverse=!1;maxSpeed=50;doLoad(t){Lt(this,"acceleration",t.acceleration),Rt(this,"enable",t.enable),Rt(this,"inverse",t.inverse),Lt(this,"maxSpeed",t.maxSpeed)}}class Kt extends Ot{value=0;doLoad(t){D(t.value)||(this.value=G(t.value))}}class Zt extends Kt{animation=new At;doLoad(t){var e,i,s;super.doLoad(t),e=this,i="animation",void 0!==(s=t.animation)&&e[i].load(s)}}class Jt extends Zt{animation=new Bt}class te extends Ot{clamp=!0;delay=new Kt;enable=!1;generator;options={};doLoad(t){Rt(this,"clamp",t.clamp),this.delay.load(t.delay),Rt(this,"enable",t.enable),this.generator=t.generator,t.options&&(this.options=et(this.options,t.options))}}class ee extends Ot{bottom;default=bt.out;left;right;top;doLoad(t){void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default}}class ie extends Ot{acceleration=0;enable=!1;position;doLoad(t){Lt(this,"acceleration",t.acceleration),Rt(this,"enable",t.enable),t.position&&(this.position=et({},t.position))}}class se extends Ot{angle=new Xt;center=new Yt;decay=0;direction=b.none;distance={};drift=0;enable=!1;gravity=new Qt;outModes=new ee;path=new te;random=!1;size=!1;speed=2;spin=new ie;straight=!1;vibrate=!1;warp=!1;doLoad(t){this.angle.load(I(t.angle)?{value:t.angle}:t.angle),this.center.load(t.center),Lt(this,"decay",t.decay),Rt(this,"direction",t.direction),void 0!==t.distance&&(this.distance=I(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),Lt(this,"drift",t.drift),Rt(this,"enable",t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&(k(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),Rt(this,"random",t.random),Rt(this,"size",t.size),Lt(this,"speed",t.speed),this.spin.load(t.spin),Rt(this,"straight",t.straight),Rt(this,"vibrate",t.vibrate),Rt(this,"warp",t.warp)}}class ne extends Ot{color;opacity;width=0;doLoad(t){void 0!==t.color&&(this.color=Gt.create(this.color,t.color)),Lt(this,"width",t.width),Lt(this,"opacity",t.opacity)}}class ae extends Ot{color;fill;stroke;doLoad(t){void 0!==t.color&&(this.color=Gt.create(this.color,t.color)),Et(this,"fill",t.fill,()=>new Nt),Et(this,"stroke",t.stroke,()=>new ne)}}class oe extends Kt{value=1}class re extends Ot{horizontal=new oe;vertical=new oe;doLoad(t){this.horizontal.load(t.horizontal),this.vertical.load(t.vertical)}}class le extends Ot{enable=!1;height=1080;width=1920;doLoad(t){Rt(this,"enable",t.enable),Rt(this,"width",t.width),Rt(this,"height",t.height)}}class ce extends Ot{mode=Pt.delete;value=0;doLoad(t){Rt(this,"mode",t.mode),Rt(this,"value",t.value)}}class he extends Ot{density=new le;limit=new ce;value=0;doLoad(t){this.density.load(t.density),this.limit.load(t.limit),Rt(this,"value",t.value)}}class de extends Ot{close=!0;options={};type="circle";doLoad(t){const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=et(this.options[t]??{},i))}Rt(this,"close",t.close),Rt(this,"type",t.type)}}class ue extends Kt{opacityRate=1;sizeRate=1;velocityRate=1;doLoad(t){super.doLoad(t),Rt(this,"opacityRate",t.opacityRate),Rt(this,"sizeRate",t.sizeRate),Rt(this,"velocityRate",t.velocityRate)}}class pe extends Ot{bounce=new re;effect=new qt;groups={};move=new se;number=new he;paint;palette;reduceDuplicates=!1;shape=new de;zIndex=new ue;#u;#p;constructor(t,e){super(),this.#p=t,this.#u=e,this.paint=new ae,this.paint.color=new Gt,this.paint.color.value="#fff",this.paint.fill=new Nt,this.paint.fill.enable=!0}doLoad(t){if(t.palette&&(this.palette=t.palette,this.#f(this.palette)),void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!(e in t.groups))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=et(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number);const e=t.paint;if(e&&(_(e)?this.paint=it(e,t=>{const e=new ae;return e.load(t),e}):_(this.paint)?(this.paint=new ae,this.paint.load(e)):this.paint.load(e)),this.shape.load(t.shape),this.zIndex.load(t.zIndex),this.#u){for(const e of this.#p.plugins)e.loadParticlesOptions&&e.loadParticlesOptions(this.#u,this,t);const e=this.#p.updaters.get(this.#u);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t)}}#f(t){const e=this.#p.getPalette(t);if(!e)return;const i=e.colors,s=(_(i)?i:[i]).flatMap(t=>{const e=t.fill,i=t.stroke,s=e?{color:{value:e.value},enable:e.enable,opacity:e.opacity}:void 0;return i?[{fill:s,stroke:{color:{value:i.value},opacity:i.opacity,width:i.width||0}}]:[{fill:s}]}),n=s.length>1?s:s[0]??{};this.load({paint:n,blend:{enable:!0,mode:e.blendMode}})}}function fe(t,e,...i){const s=new pe(t,e);return Ft(s,...i),s}class ge extends Ot{autoPlay=!0;background;clear=!0;defaultThemes={};delay=0;detectRetina=!0;duration=0;fpsLimit=120;fullScreen;hdr=!0;key;name;palette;particles;pauseOnBlur=!0;pauseOnOutsideViewport=!0;preset;resize;smooth=!1;style={};zLayers=100;#u;#p;constructor(t,e){super(),this.#p=t,this.#u=e,this.background=new Wt,this.fullScreen=new jt,this.particles=fe(this.#p,this.#u),this.resize=new Ht}doLoad(t){void 0!==t.preset&&(this.preset=t.preset,it(this.preset,t=>{this.#g(t)})),void 0!==t.palette&&(this.palette=t.palette,this.#f(this.palette)),Rt(this,"autoPlay",t.autoPlay),Rt(this,"clear",t.clear),Rt(this,"key",t.key),Rt(this,"name",t.name),Lt(this,"delay",t.delay),Rt(this,"detectRetina",t.detectRetina),Lt(this,"duration",t.duration),Rt(this,"fpsLimit",t.fpsLimit),Rt(this,"hdr",t.hdr),Rt(this,"pauseOnBlur",t.pauseOnBlur),Rt(this,"pauseOnOutsideViewport",t.pauseOnOutsideViewport),Rt(this,"zLayers",t.zLayers),this.background.load(t.background);const e=t.fullScreen;C(e)?this.fullScreen.enable=e:this.fullScreen.load(e),this.particles.load(t.particles),this.resize.load(t.resize),this.style=et(this.style,t.style),Rt(this,"smooth",t.smooth),this.#p.plugins.forEach(e=>{e.loadOptions(this.#u,this,t)})}#f(t){const e=this.#p.getPalette(t);e&&this.load({background:{color:e.background},blend:{enable:!0,mode:e.blendMode},particles:{palette:t}})}#g(t){this.load(this.#p.getPreset(t))}}const ye=new Map;function me(t,e){let i=ye.get(t);return i||(i=e(),ye.size>2e3&&ye.clear(),ye.set(t,i)),i}function ve(t,e,i,s=!0){if(!e)return;const n=S(e)?{value:e}:e;if(S(n.value))return we(t,n.value,i,s);if(_(n.value)){const e=Z(n.value,i,s);if(!e)return;return ve(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleRangeColor(n);if(t)return t}}function we(t,e,i,s=!0){if(!e)return;const n=S(e)?{value:e}:e;if(S(n.value))return n.value===d?function(){const t=0,e=256,i=()=>Math.floor(T(t,e));return{b:i(),g:i(),r:i()}}():function(t,e){return function(t,e){if(e)for(const i of t.colorManagers.values())if(i.accepts(e))return i.parseString(e)}(t,e)}(t,n.value);if(_(n.value)){const e=Z(n.value,i,s);if(!e)return;return we(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleColor(n);if(t)return t}}function Pe(t,e,i,s=!0){const a=ve(t,e,i,s);return a?function(t){const e=t.r/y,i=t.g/y,s=t.b/y,a=Math.max(e,i,s),o=Math.min(e,i,s),r={h:0,l:(a+o)*n,s:0};a!==o&&(r.s=r.l<n?(a-o)/(a+o):(a-o)/(2-a-o),r.h=e===a?(i-s)/(a-o):i===a?2+(s-e)/(a-o):4+(e-i)/(a-o));r.l*=w,r.s*=v,r.h*=60,r.h<0&&(r.h+=m);r.h>=m&&(r.h-=m);return r}(a):void 0}function be(t,e,i){if(i<0&&i++,i>1&&i--,6*i<1)return t+6*(e-t)*i;if(2*i<1)return e;if(3*i<2){return t+(e-t)*(2/3-i)*6}return t}function xe(t){const e=(t.h%m+m)%m,i=Math.max(0,Math.min(v,t.s)),s=Math.max(0,Math.min(w,t.l)),a=e/m,o=i/v,r=s/w;if(0===i){const t=Math.round(r*y);return{r:t,g:t,b:t}}const l=r<n?r*(1+o):r+o-r*o,c=2*r-l,h=1/3,d=Math.min(y,y*be(c,l,a+h)),u=Math.min(y,y*be(c,l,a)),p=Math.min(y,y*be(c,l,a-h));return{r:Math.round(d),g:Math.round(u),b:Math.round(p)}}function ze(t,e,i){const s=i??1;return me(`rgb-${t.r.toFixed(2)}-${t.g.toFixed(2)}-${t.b.toFixed(2)}-${e?"hdr":"sdr"}-${s.toString()}`,()=>e?function(t,e,i=400){const s=i/203;return`color(display-p3 ${(t.r/y*s).toString()} ${(t.g/y*s).toString()} ${(t.b/y*s).toString()} / ${(e??1).toString()})`}(t,i):function(t,e){return`rgba(${t.r.toString()}, ${t.g.toString()}, ${t.b.toString()}, ${(e??1).toString()})`}(t,i))}function Me(t,e,i){const s=i??1;return me(`hsl-${t.h.toFixed(2)}-${t.s.toFixed(2)}-${t.l.toFixed(2)}-${e?"hdr":"sdr"}-${s.toString()}`,()=>e?ze(xe(t),!0,i):`hsla(${t.h.toString()}, ${t.s.toString()}%, ${t.l.toString()}%, ${s.toString()})`)}function Ce(t){return void 0===t?void 0:{h:t.h.value,s:t.s.value,l:t.l.value}}function Se(t,e,i){const s={h:{enable:!1,value:t.h,min:0,max:m},s:{enable:!1,value:t.s,min:0,max:v},l:{enable:!1,value:t.l,min:0,max:w}};return e&&(Ie(s.h,e.h,i),Ie(s.s,e.s,i),Ie(s.l,e.l,i)),s}function Ie(t,e,i){t.enable=e.enable,t.min=e.min,t.max=e.max,t.enable?(t.velocity=U(e.speed)/s*i,t.decay=1-U(e.decay),t.status=It.increasing,t.loops=0,t.maxLoops=U(e.count),t.time=0,t.delayTime=U(e.delay)*a,e.sync||(t.velocity*=E(),t.value*=E()),t.initialValue=t.value,t.offset=G(e.offset)):t.velocity=0}function ke(t,e,i){if(!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=i.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const s=t.offset?B(t.offset):0,n=(t.velocity??0)*i.factor+3.6*s,a=t.decay??1,o=t.max,r=t.min;e&&t.status!==It.increasing?(t.value-=n,t.value<r&&(t.loops??=0,t.loops++,t.status=It.increasing)):(t.value+=n,t.value>o&&(t.loops??=0,t.loops++,e?t.status=It.decreasing:t.value-=o)),t.velocity&&1!==a&&(t.velocity*=a),t.value=A(t.value,r,o)}function _e(t,e){if(!t)return;const{h:i,s:s,l:n}=t;ke(i,!1,e),ke(s,!0,e),ke(n,!0,e)}const De=new yt;class Oe{enable=!1;mode="destination-out";load(t){D(t)||(Rt(this,"mode",t.mode),Rt(this,"enable",t.enable))}}class Fe{id="blend";async getPlugin(t){const{BlendPluginInstance:e}=await Promise.resolve().then(function(){return Ti});return new e(t)}loadOptions(t,e,i){if(!this.needsPlugin(e)&&!this.needsPlugin(i))return;let s=e.blend;s?.load||(e.blend=s=new Oe),s.load(i?.blend)}loadParticlesOptions(t,e,i){e.blend??=new Oe,e.blend.load(i?.blend)}needsPlugin(t){return!!t?.blend?.enable||!!t?.particles?.blend?.enable}}async function Re(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addPlugin(new Fe)})}class Le{draw(t){!function(t){const{context:e,particle:i,radius:s}=t;i.circleRange??={min:0,max:u};const n=i.circleRange;e.arc(o.x,o.y,s,n.min,n.max,!1)}(t)}getSidesCount(){return 12}particleInit(t,e){const i=e.shapeData,s=i?.angle??{max:360,min:0};e.circleRange=k(s)?{min:H(s.min),max:H(s.max)}:{min:0,max:H(s)}}}async function Ee(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addShape(["circle"],()=>Promise.resolve(new Le))})}var Te;!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=4]="a"}(Te||(Te={}));const Ae=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Be=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class Ue{accepts(t){return t.startsWith("#")}handleColor(t){return this.#y(t.value)}handleRangeColor(t){return this.#y(t.value)}parseString(t){return this.#y(t)}#y(t){if("string"!=typeof t||!this.accepts(t))return;const e=t.replace(Ae,(t,e,i,s,n)=>e+e+i+i+s+s+(void 0===n?"":n+n)),i=Be.exec(e);return i?{a:i[Te.a]?Number.parseInt(i[Te.a],16)/255:1,b:Number.parseInt(i[Te.b]??"0",16),g:Number.parseInt(i[Te.g]??"0",16),r:Number.parseInt(i[Te.r]??"0",16)}:void 0}}async function Ve(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hex",new Ue)})}var $e;!function(t){t[t.h=1]="h",t[t.s=2]="s",t[t.l=3]="l",t[t.a=5]="a"}($e||($e={}));const Ge=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class We{accepts(t){return t.startsWith("hsl")}handleColor(t){const e=t.value.hsl??t.value;if("h"in e&&"s"in e&&"l"in e)return xe(e)}handleRangeColor(t){const e=t.value.hsl??t.value;if("h"in e&&"s"in e&&"l"in e)return xe({h:U(e.h),l:U(e.l),s:U(e.s)})}parseString(t){if(!this.accepts(t))return;const e=Ge.exec(t);return e?function(t){const e=xe(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?N(e[$e.a]):1,h:Number.parseInt(e[$e.h]??"0",10),l:Number.parseInt(e[$e.l]??"0",10),s:Number.parseInt(e[$e.s]??"0",10)}):void 0}}async function je(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hsl",new We)})}class He{id="move";#p;constructor(t){this.#p=t}async getPlugin(t){const{MovePluginInstance:e}=await Promise.resolve().then(function(){return Ui});return new e(this.#p,t)}loadOptions(){}needsPlugin(){return!0}}async function qe(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{const e=t.pluginManager;e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,e.addPathGenerator=(t,i)=>{e.initializers.pathGenerators??=new Map,e.initializers.pathGenerators.set(t,i)},e.getPathGenerators=async(t,i=!1)=>(e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,lt(t,e.pathGenerators,e.initializers.pathGenerators,i)),t.pluginManager.addPlugin(new He(t.pluginManager))})}function Ne(t,e){const i=t.value,s=t.animation,o={delayTime:U(s.delay)*a,enable:s.enable,value:U(t.value)*e,max:$(i)*e,min:V(i)*e,loops:0,maxLoops:U(s.count),time:0};if(s.enable){switch(o.decay=1-U(s.decay),s.mode){case wt.increase:o.status=It.increasing;break;case wt.decrease:o.status=It.decreasing;break;case wt.random:o.status=E()>=n?It.increasing:It.decreasing}const t=s.mode===wt.auto;switch(s.startValue){case St.min:o.value=o.min,t&&(o.status=It.increasing);break;case St.max:o.value=o.max,t&&(o.status=It.decreasing);break;case St.random:default:o.value=B(o),t&&(o.status=E()>=n?It.increasing:It.decreasing)}}return o.initialValue=o.value,o}function Xe(t,e,i,s,n){if(t.destroyed||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const a=(e.velocity??0)*n.factor,o=e.min,r=e.max,l=e.decay??1;e.time??=0;const c=e.delayTime??0;if(!(c>0&&e.time<c&&(e.time+=n.value,e.time<c))){switch(e.status){case It.increasing:e.value+=a;break;case It.decreasing:e.value-=a}switch(e.velocity&&1!==l&&(e.velocity*=l),e.status){case It.increasing:e.value>=r&&(e.status=It.decreasing,e.loops??=0,e.loops++);break;case It.decreasing:e.value<=o&&(e.status=It.increasing,e.loops??=0,e.loops++)}!function(t,e,i,s,n){switch(e){case zt.max:i>=n&&t.destroy();break;case zt.min:i<=s&&t.destroy()}}(t,s,e.value,o,r),t.destroyed||(e.value=A(e.value,o,r))}}class Ye extends Bt{destroy=zt.none;load(t){super.load(t),D(t)||Rt(this,"destroy",t.destroy)}}class Qe extends Jt{animation=new Ye;value=1;load(t){if(D(t))return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}class Ke{#u;constructor(t){this.#u=t}init(t){const e=t.options.opacity;if(!e)return;t.opacity=Ne(e,1);const i=e.animation;i.enable&&(t.opacity.velocity=U(i.speed)/s*this.#u.retina.reduceFactor,i.sync||(t.opacity.velocity*=E()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}loadOptions(t,...e){Tt(t,"opacity",Qe,...e)}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,e){this.isEnabled(t)&&t.opacity&&t.options.opacity&&Xe(t,t.opacity,0,t.options.opacity.animation.destroy,e)}}async function Ze(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("opacity",t=>Promise.resolve(new Ke(t)))})}class Je{modes;#u;#m;constructor(t){this.#u=t,this.modes=[bt.bounce,bt.split],this.#m=t.plugins.filter(t=>void 0!==t.particleBounce)}update(t,e,i,s){if(!this.modes.includes(s))return;const n=this.#u;let a=!1;for(const s of this.#m)if(a=s.particleBounce?.(t,i,e)??!1,a)break;if(a)return;const o=t.getPosition(),r=t.offset,l=t.getRadius(),c=tt(o,l),h=n.canvas.size,d=!t.isInsideCanvasForOutMode(s,e);!function(t){if(t.outMode!==bt.bounce&&t.outMode!==bt.split||t.direction!==X.left&&t.direction!==X.right)return;t.bounds.right<0&&t.direction===X.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===X.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const e=t.particle.velocity.x;let i=!1;if(t.outOfCanvas&&(t.direction===X.right&&e>0||t.direction===X.left&&e<0)){const e=U(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;const s=t.offset.x+t.size;t.outOfCanvas&&t.direction===X.right?t.particle.position.x=t.canvasSize.width-s:t.outOfCanvas&&t.direction===X.left&&(t.particle.position.x=s),t.outMode===bt.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:r,outOfCanvas:d,size:l}),function(t){if(t.outMode!==bt.bounce&&t.outMode!==bt.split||t.direction!==X.bottom&&t.direction!==X.top)return;t.bounds.bottom<0&&t.direction===X.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===X.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const e=t.particle.velocity.y;let i=!1;if(t.outOfCanvas&&(t.direction===X.bottom&&e>0||t.direction===X.top&&e<0)){const e=U(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;const s=t.offset.y+t.size;t.outOfCanvas&&t.direction===X.bottom?t.particle.position.y=t.canvasSize.height-s:t.outOfCanvas&&t.direction===X.top&&(t.particle.position.y=s),t.outMode===bt.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:r,outOfCanvas:d,size:l})}}class ti{modes;constructor(t){this.modes=[bt.destroy]}update(t,e,i,s){if(this.modes.includes(s)){switch(t.outType){case Ct.normal:case Ct.outside:if(t.isInsideCanvasForOutMode(s,e))return;break;case Ct.inside:{const{dx:e,dy:i}=W(t.position,t.moveCenter),{x:s,y:n}=t.velocity;if(s<0&&e>t.moveCenter.radius||n<0&&i>t.moveCenter.radius||s>=0&&e<-t.moveCenter.radius||n>=0&&i<-t.moveCenter.radius)return;break}}t.destroy(!0)}}}class ei{modes;#u;constructor(t){this.#u=t,this.modes=[bt.none]}update(t,e,i,s){if(!this.modes.includes(s))return;if((t.options.move.distance.horizontal&&(e===X.left||e===X.right))??(t.options.move.distance.vertical&&(e===X.top||e===X.bottom)))return;const n=t.options.move.gravity,a=this.#u,r=a.canvas.size,l=t.getRadius();if(n.enable){const i=t.position;(!n.inverse&&i.y>r.height+l&&e===X.bottom||n.inverse&&i.y<-l&&e===X.top)&&t.destroy()}else{if(t.velocity.y>0&&t.position.y<=r.height+l||t.velocity.y<0&&t.position.y>=-l||t.velocity.x>0&&t.position.x<=r.width+l||t.velocity.x<0&&t.position.x>=-l)return;J(t.position,a.canvas.size,o,l,e)||t.destroy()}}}const ii=M.origin;class si{modes;#u;constructor(t){this.#u=t,this.modes=[bt.out]}update(t,e,i,s){if(!this.modes.includes(s))return;const n=this.#u;switch(t.outType){case Ct.inside:{const{x:e,y:i}=t.velocity;ii.setTo(o),ii.length=t.moveCenter.radius,ii.angle=t.velocity.angle+Math.PI,ii.addTo(t.moveCenter);const{dx:s,dy:a}=W(t.position,ii);if(e<=0&&s>=0||i<=0&&a>=0||e>=0&&s<=0||i>=0&&a<=0)return;t.position.x=Math.floor(B({min:0,max:n.canvas.size.width})),t.position.y=Math.floor(B({min:0,max:n.canvas.size.height}));const{dx:r,dy:l}=W(t.position,t.moveCenter);t.direction=Math.atan2(-l,-r),t.velocity.angle=t.direction,t.justWarped=!0;break}default:if(t.isInsideCanvasForOutMode(s,e))return;switch(t.outType){case Ct.outside:{t.position.x=Math.floor(B({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor(B({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:e,dy:i}=W(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction),t.justWarped=!0;break}case Ct.normal:{const i=t.options.move.warp,s=n.canvas.size,a={bottom:s.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},o=t.getRadius(),r=tt(t.position,o);e===X.right&&r.left>s.width+t.offset.x?(t.position.x=a.left,t.initialPosition.x=t.position.x,i||(t.position.y=E()*s.height,t.initialPosition.y=t.position.y),t.justWarped=!0):e===X.left&&r.right<-t.offset.x&&(t.position.x=a.right,t.initialPosition.x=t.position.x,i||(t.position.y=E()*s.height,t.initialPosition.y=t.position.y),t.justWarped=!0),e===X.bottom&&r.top>s.height+t.offset.y?(i||(t.position.x=E()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.top,t.initialPosition.y=t.position.y,t.justWarped=!0):e===X.top&&r.bottom<-t.offset.y&&(i||(t.position.x=E()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.bottom,t.initialPosition.y=t.position.y,t.justWarped=!0);break}}}}}class ni{updaters;#u;constructor(t){this.#u=t,this.updaters=new Map}init(t){this.#v(t,bt.bounce,t=>new Je(t)),this.#v(t,bt.out,t=>new si(t)),this.#v(t,bt.destroy,t=>new ti(t)),this.#v(t,bt.none,t=>new ei(t))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){const i=t.options.move.outModes;t.justWarped=!1,this.#w(t,e,i.bottom??i.default,X.bottom),this.#w(t,e,i.left??i.default,X.left),this.#w(t,e,i.right??i.default,X.right),this.#w(t,e,i.top??i.default,X.top)}#v(t,e,i){const s=t.options.move.outModes;!this.updaters.has(e)&&((t,e)=>t.default===e||t.bottom===e||t.left===e||t.right===e||t.top===e)(s,e)&&this.updaters.set(e,i(this.#u))}#w(t,e,i,s){for(const n of this.updaters.values())n.update(t,s,e,i)}}async function ai(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("outModes",t=>Promise.resolve(new ni(t)))})}class oi{#u;#p;constructor(t,e){this.#u=e,this.#p=t}init(t){const e=this.#u,i=t.options,s=st(i.paint,t.id,i.reduceDuplicates),n=s?.color,a=n??void 0,o=s?.fill,r=s?.stroke;if(o){const i=Gt.create(void 0===a?void 0:Gt.create(void 0,a),o.color);t.fillEnabled=o.enable,t.fillOpacity=U(o.opacity),t.fillAnimation=i.animation;const s=Pe(this.#p,i);s&&(t.fillColor=Se(s,t.fillAnimation,e.retina.reduceFactor))}else t.fillEnabled=!1,t.fillAnimation=void 0,t.fillColor=void 0,t.fillOpacity=1;if(r){const i=Gt.create(void 0===a?void 0:Gt.create(void 0,a),r.color);t.strokeWidth=U(r.width)*e.retina.pixelRatio,t.strokeOpacity=U(r.opacity??1),t.strokeAnimation=i.animation;const s=Pe(this.#p,i)??t.getFillColor();s&&(t.strokeColor=Se(s,t.strokeAnimation,e.retina.reduceFactor))}else t.strokeAnimation=void 0,t.strokeColor=void 0,t.strokeOpacity=1,t.strokeWidth=0}isEnabled(t){const{fillAnimation:e,fillColor:i,strokeAnimation:s,strokeColor:n}=t,a=!!e&&(void 0!==i?.h.value&&i.h.enable||void 0!==i?.s.value&&i.s.enable||void 0!==i?.l.value&&i.l.enable),o=!!s&&(void 0!==n?.h.value&&n.h.enable||void 0!==n?.s.value&&n.s.enable||void 0!==n?.l.value&&n.l.enable);return!t.destroyed&&!t.spawning&&(a||o)}update(t,e){this.isEnabled(t)&&(_e(t.fillColor,e),_e(t.strokeColor,e))}}async function ri(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("paint",e=>Promise.resolve(new oi(t.pluginManager,e)))})}var li;!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=5]="a"}(li||(li={}));const ci=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class hi{accepts(t){return t.startsWith("rgb")}handleColor(t){const e=t.value.rgb??t.value;if("r"in e&&"g"in e&&"b"in e)return e}handleRangeColor(t){const e=t.value.rgb??t.value;if("r"in e&&"g"in e&&"b"in e)return{r:U(e.r),g:U(e.g),b:U(e.b)}}parseString(t){if(!this.accepts(t))return;const e=ci.exec(t);return e?{a:e.length>4?N(e[li.a]):1,b:parseInt(e[li.b]??"0",10),g:parseInt(e[li.g]??"0",10),r:parseInt(e[li.r]??"0",10)}:void 0}}async function di(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("rgb",new hi)})}class ui extends Bt{destroy=zt.none;load(t){super.load(t),D(t)||Rt(this,"destroy",t.destroy)}}class pi extends Jt{animation=new ui;value=3;load(t){if(super.load(t),D(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class fi{#u;constructor(t){this.#u=t}init(t){const e=this.#u,i=t.options.size;if(!i)return;const n=i.animation;n.enable&&(t.size.velocity=t.retina.sizeAnimationSpeed/s*e.retina.reduceFactor,n.sync||(t.size.velocity*=E()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??0)<=0||(t.size.maxLoops??0)>0&&(t.size.loops??0)<(t.size.maxLoops??0))}loadOptions(t,...e){Tt(t,"size",pi,...e)}preInit(t){const e=this.#u.retina.pixelRatio,i=t.options.size;i&&(t.size=Ne(i,e),t.retina.sizeAnimationSpeed=U(i.animation.speed)*e)}reset(t){t.size.time=0,t.size.loops=0}update(t,e){this.isEnabled(t)&&t.options.size&&Xe(t,t.size,0,t.options.size.animation.destroy,e)}}async function gi(t){t.checkVersion("4.2.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("size",t=>Promise.resolve(new fi(t)))})}const yi={fpsLimit:120,background:{color:"#fff"},particles:{number:{value:100,density:{enable:!0}},paint:{fill:{color:{value:["#FF0000","#FF2A00","#FF5500","#FF8000","#FFAA00","#FFD400","#FFFF00","#D4FF00","#AAFF00","#80FF00","#55FF00","#2AFF00","#00FF00","#00FF2A","#00FF55","#00FF80","#00FFAA","#00FFD4","#00FFFF","#00D4FF","#00AAFF","#0080FF","#0055FF","#002AFF","#0000FF","#2A00FF","#5500FF","#8000FF","#AA00FF","#D400FF","#FF00FF","#FF00D4","#FF00AA","#FF0080","#FF0055","#FF002A"]},enable:!0}},shape:{type:"circle"},opacity:{value:{min:.4,max:.8}},size:{value:{min:150,max:300}},move:{enable:!0,angle:{value:30,offset:0},speed:{min:10,max:20},direction:b.top,outModes:bt.out}},detectRetina:!0},mi=["bigCircles","big-circles"];async function vi(t){await t.pluginManager.register(async t=>{await async function(t){t.checkVersion("4.2.1"),await t.pluginManager.register(async t=>{await Promise.all([Re(t),Ve(t),je(t),di(t),qe(t),Ee(t),ri(t),Ze(t),ai(t),gi(t)])})}(t),mi.forEach(e=>{t.pluginManager.addPreset(e,yi)})})}const wi=globalThis;wi.loadBigCirclesPreset=vi,wi.tsParticles=De;function Pi(t,e,i){const s=e[i];void 0!==s&&(t[i]=(t[i]??1)*s)}class bi{#P;#b;#x;#z;#M;#u;#C;#S;#I;#k;#_;#D;#O;#F;#p;#R;#L;#E={};#T=[void 0,void 0];#A={};constructor(t,e,i){this.#p=t,this.#u=e,this.#b=i,this.#C=null,this.#L=[],this.#R=[],this.#M=[],this.#P=[],this.#x=[],this.#z=[],this.#I=[],this.#k=[],this.#_=[],this.#D=[],this.#F=[],this.#O=[]}get settings(){return this.#S}canvasClear(){this.#u.actualOptions.clear&&this.draw(t=>{t.clearRect(o.x,o.y,this.#b.size.width,this.#b.size.height)})}clear(){let t=!1;for(const e of this.#P)if(t=e.canvasClear?.()??!1,t)break;t||this.canvasClear()}destroy(){this.stop(),this.#L=[],this.#R=[],this.#M=[],this.#P=[],this.#x=[],this.#z=[],this.#I=[],this.#k=[],this.#_=[],this.#D=[],this.#F=[],this.#O=[]}draw(t){const e=this.#C;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;const i=t.getRadius();if(i<=0)return;const s=t.getFillColor(),n=t.getStrokeColor();let[a,o]=this.#B(t);if(a??=s,o??=n,!a&&!o)return;const r=this.#u,l=t.options.zIndex,c=1-t.zIndexFactor,{fillOpacity:h,opacity:d,strokeOpacity:u}=t.getOpacity(),p=this.#A,f=this.#E,g=a?Me(a,r.hdr,h*d):void 0,y=o?Me(o,r.hdr,u*d):g;p.a=p.b=p.c=p.d=void 0,f.fill=g,f.stroke=y,this.draw(s=>{for(const i of this.#_)i.drawParticleSetup?.(s,t,e);this.#U(s,t,i,d,f,p),this.#V({container:r,context:s,particle:t,delta:e,colorStyles:f,radius:i*c**l.sizeRate,opacity:d,transform:p}),this.#$(t);for(const i of this.#k)i.drawParticleCleanup?.(s,t,e)})}drawParticlePlugins(t,e){this.draw(i=>{for(const s of this.#I)this.#G(i,s,t,e)})}drawParticles(t){const{particles:e}=this.#u;this.clear(),e.update(t),this.draw(i=>{for(const e of this.#F)e.drawSettingsSetup?.(i,t);for(const e of this.#D)e.draw?.(i,t);e.drawParticles(t);for(const e of this.#z)e.clearDraw?.(i,t);for(const e of this.#O)e.drawSettingsCleanup?.(i,t)})}init(){this.initUpdaters(),this.initPlugins(),this.paint()}initPlugins(){this.#M=[],this.#P=[],this.#x=[],this.#z=[],this.#I=[],this.#_=[],this.#k=[],this.#D=[],this.#F=[],this.#O=[];for(const t of this.#u.plugins)(t.particleFillColor??t.particleStrokeColor)&&this.#M.push(t),t.canvasClear&&this.#P.push(t),t.canvasPaint&&this.#x.push(t),t.drawParticle&&this.#I.push(t),t.drawParticleSetup&&this.#_.push(t),t.drawParticleCleanup&&this.#k.push(t),t.draw&&this.#D.push(t),t.drawSettingsSetup&&this.#F.push(t),t.drawSettingsCleanup&&this.#O.push(t),t.clearDraw&&this.#z.push(t)}initUpdaters(){this.#L=[],this.#R=[];for(const t of this.#u.particleUpdaters)t.afterDraw&&this.#R.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this.#L.push(t)}paint(){let t=!1;for(const e of this.#x)if(t=e.canvasPaint?.()??!1,t)break;t||this.paintBase()}paintBase(t){this.draw(e=>{e.fillStyle=t??"rgba(0,0,0,0)",e.fillRect(o.x,o.y,this.#b.size.width,this.#b.size.height)})}paintImage(t,e){this.draw(i=>{if(!t)return;const s=i.globalAlpha;i.globalAlpha=e,i.drawImage(t,o.x,o.y,this.#b.size.width,this.#b.size.height),i.globalAlpha=s})}setContext(t){this.#C=t,this.#C&&(this.#C.globalCompositeOperation=i)}setContextSettings(t){this.#S=t}stop(){this.draw(t=>{t.clearRect(o.x,o.y,this.#b.size.width,this.#b.size.height)})}#$(t){for(const e of this.#R)e.afterDraw?.(t)}#U(t,e,i,s,n,a){for(const o of this.#L){if(o.getColorStyles){const{fill:a,stroke:r}=o.getColorStyles(e,t,i,s);a&&(n.fill=a),r&&(n.stroke=r)}if(o.getTransformValues){const t=o.getTransformValues(e);for(const e in t)Pi(a,t,e)}o.beforeDraw?.(e)}}#W(t,e){if(!t?.drawAfter)return;const{particle:i}=e;i.effect&&t.drawAfter(e)}#j(t,e){if(!t?.drawBefore)return;const{particle:i}=e;i.effect&&t.drawBefore(e)}#V(t){const{container:e,context:i,particle:s,delta:n,colorStyles:a,radius:o,opacity:r,transform:l}=t,{effectDrawers:c,shapeDrawers:h}=e,d=s.getPosition(),u=s.getTransformData(l),p={x:d.x,y:d.y};i.setTransform(u.a,u.b,u.c,u.d,d.x,d.y),a.fill&&(i.fillStyle=a.fill);const f=!!s.fillEnabled,g=s.strokeWidth??0;i.lineWidth=g,a.stroke&&(i.strokeStyle=a.stroke);const y={context:i,particle:s,radius:o,drawRadius:1*o,opacity:r,delta:n,pixelRatio:e.retina.pixelRatio,fill:f,stroke:g>0,transformData:u,position:{...d},drawPosition:p,drawScale:1};for(const t of e.plugins)t.drawParticleTransform?.(y);const m=s.effect?c.get(s.effect):void 0,v=s.shape?h.get(s.shape):void 0;this.#j(m,y),this.#H(v,y),this.#q(v,y),this.#N(v,y),this.#W(m,y),i.resetTransform()}#G(t,e,i,s){e.drawParticle&&e.drawParticle(t,i,s)}#q(t,e){if(!t)return;const{context:i,fill:s,particle:n,stroke:a}=e;n.shape&&(i.beginPath(),t.draw(e),n.shapeClose&&i.closePath(),s&&i.fill(),a&&i.stroke())}#N(t,e){if(!t?.afterDraw)return;const{particle:i}=e;i.shape&&t.afterDraw(e)}#H(t,e){if(!t?.beforeDraw)return;const{particle:i}=e;i.shape&&t.beforeDraw(e)}#B(t){let e,i;for(const s of this.#M)if(!e&&s.particleFillColor&&(e=Pe(this.#p,s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=Pe(this.#p,s.particleStrokeColor(t))),e&&i)break;return this.#T[0]=e,this.#T[1]=i,this.#T}}const xi=new WeakMap;function zi(t,e,i=!1){if(!e)return;const s=t.style,n=new Set;for(let t=0;t<s.length;t++){const e=s.item(t);e&&n.add(e)}for(let t=0;t<e.length;t++){const i=e.item(t);i&&n.add(i)}for(const t of n){const n=e.getPropertyValue(t);n?s.setProperty(t,n,i?"important":""):s.removeProperty(t)}}class Mi{domElement;render;renderCanvas;size;zoom=1;#u;#X;#Y;#Q;#p;#K;#Z;#J;#tt;constructor(t,e){this.#p=t,this.#u=e,this.render=new bi(t,e,this),this.#J={height:0,width:0};const i=e.retina.pixelRatio,s=this.#J;this.size={height:s.height*i,width:s.width*i},this.#X=!1,this.#Z=[],this.#K="none"}get#et(){return this.#u.actualOptions.fullScreen.enable}destroy(){if(this.stop(),this.#X){const t=this.domElement;t?.remove(),this.domElement=void 0,this.renderCanvas=void 0}else this.#it();this.render.destroy(),this.#Z=[]}getZoomCenter(){const t=this.#u.retina.pixelRatio,{width:e,height:i}=this.size;return this.#tt?this.#tt:{x:e*n/t,y:i*n/t}}init(){this.#st(t=>{t.disconnect()}),this.#Y=function(t){if("undefined"!=typeof MutationObserver)return new MutationObserver(t)}(t=>{for(const e of t)"attributes"===e.type&&"style"===e.attributeName&&this.#nt()}),this.resize(),this.#at(),this.initBackground(),this.#st(t=>{const e=this.domElement;e&&e instanceof Node&&t.observe(e,{attributes:!0})}),this.initPlugins(),this.#ot(),this.render.init()}initBackground(){const t=this.#u,e=t.actualOptions.background,i=this.domElement;if(!i)return;const s=i.style,n=ve(this.#p,e.color);s.backgroundColor=n?ze(n,t.actualOptions.hdr,e.opacity):"",s.backgroundImage=e.image||"",s.backgroundPosition=e.position||"",s.backgroundRepeat=e.repeat||"",s.backgroundSize=e.size||""}initPlugins(){this.#Z=[];for(const t of this.#u.plugins)t.resize&&this.#Z.push(t)}loadCanvas(t){this.#X&&this.domElement&&this.domElement.remove();const i=(t=>"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement)(t)?t:void 0;this.domElement=i,this.#X=!!i&&"true"===i.dataset[e],this.renderCanvas=i?(t=>{const e=xi.get(t);if(e)return e;if("function"!=typeof t.transferControlToOffscreen)throw new TypeError("OffscreenCanvas is required but not supported by this browser");try{const e=t.transferControlToOffscreen();return xi.set(t,e),e}catch{throw new TypeError("OffscreenCanvas transfer failed")}})(i):t;const s=this.domElement;s&&(s.ariaHidden="true",this.#Q=function(t){const e=Q().createElement("div").style;for(const i in t){const s=t[i];if(!(i in t)||D(s))continue;const n=t.getPropertyValue?.(s);if(!n)continue;const a=t.getPropertyPriority?.(s);a?e.setProperty(s,n,a):e.setProperty(s,n)}return e}(s.style));const n=this.#J,a=this.renderCanvas;s?(n.height=s.offsetHeight,n.width=s.offsetWidth):(n.height=a.height,n.width=a.width);const o=this.#u.retina.pixelRatio,r=this.size;a.height=r.height=n.height*o,a.width=r.width=n.width*o}resize(){const t=this.domElement;if(!t)return!1;const e=this.#u,i=this.renderCanvas;if(void 0===i)return!1;const s=e.canvas.#J,n={width:t.offsetWidth,height:t.offsetHeight},a=e.retina.pixelRatio,o={width:n.width*a,height:n.height*a};if(n.height===s.height&&n.width===s.width&&o.height===i.height&&o.width===i.width)return!1;const r={...s};s.height=n.height,s.width=n.width;const l=this.size;return i.width=l.width=o.width,i.height=l.height=o.height,this.#u.started&&e.particles.setResizeFactor({width:s.width/r.width,height:s.height/r.height}),!0}setPointerEvents(t){this.domElement&&(this.#K=t,this.#nt())}setZoom(t,e){this.zoom=t,this.#tt=e}stop(){this.#st(t=>{t.disconnect()}),this.#Y=void 0,this.render.stop()}async windowResize(){if(!this.domElement||!this.resize())return;const t=this.#u,e=t.updateActualOptions();t.particles.setDensity(),this.#rt(),e&&await t.refresh()}#rt(){for(const t of this.#Z)t.resize?.()}#ot(){const t=this.#u.actualOptions.hdr&&K("(color-gamut: p3)")?.matches&&K("(dynamic-range: high)")?.matches;this.render.setContextSettings({alpha:!0,desynchronized:!0,willReadFrequently:!1,...t?{colorSpace:"display-p3",colorType:"float16"}:{colorSpace:"srgb"}});const e=this.renderCanvas;e&&this.render.setContext(e.getContext("2d",this.render.settings))}#at(){const t=this.domElement,e=this.#u.actualOptions;if(t){this.#et?this.#lt():this.#it();for(const i in e.style){if(!i||!(i in e.style))continue;const s=e.style[i];s&&t.style.setProperty(i,s,"important")}}}#nt(){const t=this.domElement;if(!t)return;this.#st(t=>{t.disconnect()}),this.#at(),this.initBackground();const e=this.#K;t.style.pointerEvents=e,t.style.setProperty("pointer-events",e),this.#st(e=>{t instanceof Node&&e.observe(t,{attributes:!0})})}#it(){const t=this.domElement,e=this.#Q;t&&e&&zi(t,e,!0)}#st(t){this.#Y&&t(this.#Y)}#lt(){const t=this.domElement;t&&zi(t,function(t){if(at!==t||!ot){at=t;const e=Q().createElement("div").style,i=10,s={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(i),"z-index":t.toString(i),top:"0",left:"0","pointer-events":"none"};for(const t in s){const i=s[t];void 0!==i&&e.setProperty(t,i)}ot=e}return ot}(this.#u.actualOptions.fullScreen.zIndex),!0)}}class Ci{#u;#ct;#ht;#dt;constructor(t){this.#u=t,this.#ct={visibilityChange:()=>{this.#ut()},resize:()=>{this.#pt()}}}addListeners(){this.#ft(!0)}removeListeners(){this.#ft(!1)}#ut(){const t=this.#u;t.actualOptions.pauseOnBlur&&(Q().hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))}#pt(){this.#dt&&(clearTimeout(this.#dt),this.#dt=void 0);const t=async()=>{const t=this.#u.canvas;await t.windowResize()};this.#dt=setTimeout(()=>{t()},this.#u.actualOptions.resize.delay*a)}#ft(t){const e=this.#ct;this.#gt(t),rt(document,"visibilitychange",e.visibilityChange,t,!1)}#gt(t){const e=this.#ct,i=this.#u;if(!i.actualOptions.resize.enable)return;if("undefined"==typeof ResizeObserver)return void rt(globalThis,"resize",e.resize,t);const s=i.canvas.domElement;this.#ht&&!t?(s&&this.#ht.unobserve(s),this.#ht.disconnect(),this.#ht=void 0):!this.#ht&&t&&s&&(this.#ht=new ResizeObserver(t=>{t.find(t=>t.target===s)&&this.#pt()}),this.#ht.observe(s))}}function Si(t){if(e=t.outMode,i=t.checkModes,!(e===i||_(i)&&i.includes(e)))return;var e,i;const s=2*t.radius;t.coord>t.maxCoord-s?t.setCb(-t.radius):t.coord<s&&t.setCb(t.radius)}function Ii(t,e){const i=t%e;return i<0?i+e:i}function ki(t,e,i,s){const n=fe(i,e,e.actualOptions.particles),a=n.reduceDuplicates;t.effect=st(n.effect.type,t.id,a),t.shape=st(n.shape.type,t.id,a);const o=n.effect,r=n.shape;if(s){if(s.effect){const e=s.effect.type;if(e&&e!==t.effect){const i=st(e,t.id,a);i&&(t.effect=i)}o.load(s.effect)}if(s.shape){const e=s.shape.type;if(e&&e!==t.shape){const i=st(e,t.id,a);i&&(t.shape=i)}r.load(s.shape)}}if(t.effect===d){const i=[...e.effectDrawers.keys()];t.effect=i[Math.floor(E()*i.length)]}if(t.shape===d){const i=[...e.shapeDrawers.keys()];t.shape=i[Math.floor(E()*i.length)]}t.effectData=t.effect?function(t,e,i,s){const n=e.options[t];return et({close:e.close},st(n,i,s))}(t.effect,o,t.id,a):void 0,t.shapeData=t.shape?function(t,e,i,s){const n=e.options[t];return et({close:e.close},st(n,i,s))}(t.shape,r,t.id,a):void 0,n.load(s);const l=t.effectData,c=t.shapeData;return l&&n.load(l.particles),c&&n.load(c.particles),t.effectClose=l?.close??n.effect.close,t.shapeClose=c?.close??n.shape.close,n}class _i{backColor;bubble;destroyed;direction;effect;effectClose;effectData;fillColor;fillEnabled;fillOpacity;group;id;ignoresResizeRatio;initialPosition;initialVelocity;isRotating;justWarped;lastPathTime;misplaced;moveCenter;offset;opacity;options;outType;pathRotation;position;randomIndexData;retina;roll;rotation;shape;shapeClose;shapeData;sides;size;slow;spawning;strokeColor;strokeOpacity;strokeWidth;unbreakable;velocity;zIndexFactor;#yt={fillOpacity:1,opacity:1,strokeOpacity:1};#mt=z.origin;#vt={sin:0,cos:0};#wt={a:1,b:0,c:0,d:1};#u;#p;constructor(t,e){this.#p=t,this.#u=e}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const e=this.#u,i=this.shape?e.shapeDrawers.get(this.shape):void 0;i?.particleDestroy?.(this);for(const i of e.particleDestroyedPlugins)i.particleDestroyed?.(this,t);for(const i of e.particleUpdaters)i.particleDestroyed?.(this,t);this.#u.dispatchEvent(ht.particleDestroyed,{particle:this})}draw(t){const e=this.#u.canvas.render;e.drawParticlePlugins(this,t),e.drawParticle(this,t)}getAngle(){return this.rotation+(this.pathRotation?this.velocity.angle:0)}getFillColor(){return this.#Pt(this.bubble.color??Ce(this.fillColor))}getMass(){return this.getRadius()**2*Math.PI*n}getOpacity(){const t=this.options.zIndex,e=(1-this.zIndexFactor)**t.opacityRate,i=this.bubble.opacity??U(this.opacity?.value??1),s=this.fillOpacity??1,n=this.strokeOpacity??1;return this.#yt.fillOpacity=i*s*e,this.#yt.opacity=i*e,this.#yt.strokeOpacity=i*n*e,this.#yt}getPosition(){return this.#mt.x=this.position.x+this.offset.x,this.#mt.y=this.position.y+this.offset.y,this.#mt.z=this.position.z,this.#mt}getRadius(){return this.bubble.radius??this.size.value}getRotateData(){const t=this.getAngle();return this.#vt.sin=Math.sin(t),this.#vt.cos=Math.cos(t),this.#vt}getStrokeColor(){return this.#Pt(this.bubble.color??Ce(this.strokeColor))}getTransformData(t){const e=this.getRotateData(),i=this.isRotating;return this.#wt.a=e.cos*(t.a??r),this.#wt.b=i?e.sin*(t.b??1):t.b??l,this.#wt.c=i?-e.sin*(t.c??1):t.c??c,this.#wt.d=e.cos*(t.d??h),this.#wt}init(t,e,i,s){const n=this.#u;!function(t,e,i){t.id=e,t.group=i,t.justWarped=!1,t.effectClose=!0,t.shapeClose=!0,t.pathRotation=!1,t.lastPathTime=0,t.destroyed=!1,t.unbreakable=!1,t.isRotating=!1,t.rotation=0,t.misplaced=!1,t.retina={maxDistance:{},maxSpeed:0,moveDrift:0,moveSpeed:0,sizeAnimationSpeed:0},t.size={value:1,max:1,min:1,enable:!1},t.outType=Ct.normal,t.ignoresResizeRatio=!0}(this,t,s),this.options=ki(this,n,this.#p,i),n.retina.initParticle(this),function(t,e){for(const i of t)i.preInit?.(e)}(n.particleUpdaters,this),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this.#bt(e),this.initialVelocity=this.#xt(),this.velocity=this.initialVelocity.copy(),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24,function(t,e){let i,s;t.effect&&(i=e.effectDrawers.get(t.effect)),i?.loadEffect&&i.loadEffect(t),t.shape&&(s=e.shapeDrawers.get(t.shape)),s?.loadShape&&s.loadShape(t);const n=s?.getSidesCount;n&&(t.sides=n(t))}(this,n),this.spawning=!1,function(t,e){for(const i of t)i.init(e)}(n.particleUpdaters,this),function(t,e){const i=e.shape?t.shapeDrawers.get(e.shape):void 0,s=e.effect?t.effectDrawers.get(e.effect):void 0;s?.particleInit?.(t,e),i?.particleInit?.(t,e)}(n,this),function(t,e){for(const i of t.particleCreatedPlugins)i.particleCreated?.(e)}(n,this)}isInsideCanvas(t){return this.#zt({direction:t}).inside}isInsideCanvasForOutMode(t,e){return this.#zt({direction:e,outMode:t}).inside}isShowingBack(){if(!this.roll)return!1;const t=this.roll.angle;if(this.roll.horizontal&&this.roll.vertical){const e=Ii(t,u);return e>=Math.PI*n&&e<3*Math.PI*n}if(this.roll.horizontal){const e=Ii(t+Math.PI*n,u);return e>=Math.PI&&e<2*Math.PI}if(this.roll.vertical){const e=Ii(t,u);return e>=Math.PI&&e<2*Math.PI}return!1}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const t of this.#u.particleUpdaters)t.reset?.(this)}#Mt(t,e){let i=0,s=t?z.create(t.x,t.y,e):void 0;const n=this.#u,a=n.particlePositionPlugins,o=this.options.move.outModes,r=this.getRadius(),l=n.canvas.size;for(;;){for(const t of a){const i=t.particlePosition?.(s,this);if(i)return z.create(i.x,i.y,e)}const t=q({size:l,position:s}),c=z.create(t.x,t.y,e);this.#Ct(c,r,o.left??o.default),this.#Ct(c,r,o.right??o.default),this.#St(c,r,o.top??o.default),this.#St(c,r,o.bottom??o.default);let h=!0;for(const t of n.particles.checkParticlePositionPlugins)if(h=t.checkParticlePosition?.(this,c,i)??!0,!h)break;if(h)return c;i+=1,s=void 0}}#xt(){const t=this.options.move,e=function(t){const e=M.origin;return e.length=1,e.angle=t,e}(this.direction).copy();if(t.direction===b.inside||t.direction===b.outside)return e;const i=H(U(t.angle.value)),s=H(U(t.angle.offset)),a={left:s-i*n,right:s+i*n};return t.straight||(e.angle+=B(G(a.left,a.right))),t.random&&"number"==typeof t.speed&&(e.length*=E()),e}#Ct(t,e,i){Si({outMode:i,checkModes:[bt.bounce],coord:t.x,maxCoord:this.#u.canvas.size.width,setCb:e=>t.x+=e,radius:e})}#St(t,e,i){Si({outMode:i,checkModes:[bt.bounce],coord:t.y,maxCoord:this.#u.canvas.size.height,setCb:e=>t.y+=e,radius:e})}#It(t,e){const i=this.getRadius(),s=this.#u.canvas.size,n=this.position,a=e===bt.bounce;return t===X.bottom?{inside:a?n.y+i<s.height:n.y-i<s.height,reason:"default"}:t===X.left?{inside:a?n.x-i>0:n.x+i>0,reason:"default"}:t===X.right?{inside:a?n.x+i<s.width:n.x-i<s.width,reason:"default"}:t===X.top?{inside:a?n.y-i>0:n.y+i>0,reason:"default"}:{inside:n.x>=-i&&n.y>=-i&&n.y<=s.height+i&&n.x<=s.width+i,reason:"default"}}#kt(t,e){return{canvasSize:this.#u.canvas.size,direction:t,outMode:e,particle:this,radius:this.getRadius()}}#zt(t){const e=this.#It(t.direction,t.outMode),i=this.#u,s=this.shape?i.shapeDrawers.get(this.shape):void 0,n=this.effect?i.effectDrawers.get(this.effect):void 0,a=s?.isInsideCanvas,o=n?.isInsideCanvas;if(!a&&!o)return e;const r=this.#kt(t.direction,t.outMode),l=a?this.#_t(a(r),"shape"):void 0,c=o?this.#_t(o(r),"effect"):void 0;if(l&&c){const t=Math.max(l.margin??0,c.margin??0);return{inside:l.inside&&c.inside,margin:t>0?t:void 0,reason:"combined"}}return l??c??e}#Pt(t){return t&&this.roll&&(this.backColor||this.roll.alter)&&this.isShowingBack()?this.backColor?this.backColor:this.roll.alter?function(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===xt.darken?-1:1)*i}}(t,this.roll.alter.type,this.roll.alter.value):t:t}#bt(t){const e=this.#u,i=Math.floor(U(this.options.zIndex.value)),s=this.#Mt(t,A(i,0,e.zLayers));if(!s)throw new Error("a valid position cannot be found for particle");this.position=s,this.initialPosition=this.position.copy();const a=e.canvas.size;switch(this.moveCenter={...nt(this.options.move.center,a),radius:this.options.move.center.radius,mode:this.options.move.center.mode},this.direction=function(t,e,i){if(I(t))return H(t);switch(t){case b.top:return-Math.PI*n;case b.topRight:return-Math.PI*P;case b.right:return 0;case b.bottomRight:return Math.PI*P;case b.bottom:return Math.PI*n;case b.bottomLeft:return.75*Math.PI;case b.left:return Math.PI;case b.topLeft:return.75*-Math.PI;case b.inside:return Math.atan2(i.y-e.y,i.x-e.x);case b.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return E()*u}}(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case b.inside:this.outType=Ct.inside;break;case b.outside:this.outType=Ct.outside}this.offset=M.origin}#_t(t,e){return"boolean"==typeof t?{inside:t,reason:e}:{inside:t.inside,margin:t.margin,reason:t.reason??e}}}class Di{#Dt;#Ot=new Map;#Ft=[];#Rt;#Lt;#Et=[];#Tt;constructor(t){this.#Dt=t,this.#Rt=0,this.#Tt=0}clear(){this.#Ot.clear();const t=this.#Lt;t&&(this.#Dt=t),this.#Lt=void 0}insert(t){const{x:e,y:i}=t.getPosition(),s=this.#At(e,i);this.#Ot.has(s)||this.#Ot.set(s,[]),this.#Ot.get(s)?.push(t)}query(t,e,i=[]){const s=this.#Bt(t);if(!s)return i;const n=Math.floor(s.minX/this.#Dt),a=Math.floor(s.maxX/this.#Dt),o=Math.floor(s.minY/this.#Dt),r=Math.floor(s.maxY/this.#Dt);for(let s=n;s<=a;s++)for(let n=o;n<=r;n++){const a=`${s}_${n}`,o=this.#Ot.get(a);if(o)for(const s of o)e&&!e(s)||t.contains(s.getPosition())&&i.push(s)}return i}queryCircle(t,e,i,s=[]){const n=this.#Ut(t.x,t.y,e),a=this.query(n,i,s);return this.#Vt(),a}queryRectangle(t,e,i,s=[]){const n=this.#$t(t.x,t.y,e.width,e.height),a=this.query(n,i,s);return this.#Vt(),a}setCellSize(t){this.#Lt=t}#Ut(t,e,i){return(this.#Ft[this.#Rt++]??=new _t(t,e,i)).reset(t,e,i)}#$t(t,e,i,s){return(this.#Et[this.#Tt++]??=new Dt(t,e,i,s)).reset(t,e,i,s)}#At(t,e){return`${Math.floor(t/this.#Dt)}_${Math.floor(e/this.#Dt)}`}#Bt(t){if(t instanceof _t){const e=t.radius,{x:i,y:s}=t.position;return{minX:i-e,maxX:i+e,minY:s-e,maxY:s+e}}if(t instanceof Dt){const{x:e,y:i}=t.position,{width:s,height:n}=t.size;return{minX:e,maxX:e+s,minY:i,maxY:i+n}}return null}#Vt(){this.#Rt=0,this.#Tt=0}}class Oi{checkParticlePositionPlugins;grid;#Gt;#u;#Wt;#jt;#Ht;#qt;#Nt;#Xt;#p;#Yt;#Qt;#Kt;#Zt;#Jt;#te;constructor(t,e){this.#p=t,this.#u=e,this.#Ht=0,this.#Gt=[],this.#Yt=[],this.#jt=0,this.#Wt=new Map,this.#qt=new Map,this.#te=this.#ee(this.#u.zLayers),this.grid=new Di(100),this.checkParticlePositionPlugins=[],this.#Nt=[],this.#Xt=[],this.#Kt=[],this.#Qt=[],this.#Jt=[]}get count(){return this.#Gt.length}addParticle(t,e,i,s){const n=this.#u.actualOptions.particles.number.limit.mode,a=void 0===i?this.#jt:this.#Wt.get(i)??this.#jt,o=this.count;if(a>0)switch(n){case Pt.delete:{const t=o+1-a;t>0&&this.removeQuantity(t);break}case Pt.wait:if(o>=a)return}try{const n=this.#Yt.pop()??new _i(this.#p,this.#u);n.init(this.#Ht,t,e,i);let a=!0;return s&&(a=s(n)),a?(this.#Gt.push(n),this.#ie(n),this.#Ht++,this.#u.dispatchEvent(ht.particleAdded,{particle:n}),n):void this.#Yt.push(n)}catch(t){ft().warning(`error adding particle: ${t}`)}}clear(){this.#Gt=[],this.#qt.clear(),this.#se(this.#u.zLayers)}destroy(){this.#Gt=[],this.#Yt.length=0,this.#qt.clear(),this.#te=[],this.checkParticlePositionPlugins=[],this.#Nt=[],this.#Xt=[],this.#Kt=[],this.#Qt=[],this.#Jt=[]}drawParticles(t){for(let e=this.#te.length-1;e>=0;e--){const i=this.#te[e];if(i)for(const e of i)e.draw(t)}}filter(t){return this.#Gt.filter(t)}find(t){return this.#Gt.find(t)}get(t){return this.#Gt[t]}async init(){const t=this.#u,e=t.actualOptions;this.checkParticlePositionPlugins=[],this.#Jt=[],this.#Xt=[],this.#Kt=[],this.#Nt=[],this.#Qt=[],this.#qt.clear(),this.#se(t.zLayers),this.grid=new Di(100*t.retina.pixelRatio);for(const e of t.plugins)e.redrawInit&&await e.redrawInit(),e.checkParticlePosition&&this.checkParticlePositionPlugins.push(e),e.update&&this.#Jt.push(e),e.particleUpdate&&this.#Xt.push(e),e.postUpdate&&this.#Kt.push(e),e.particleReset&&this.#Nt.push(e),e.postParticleUpdate&&this.#Qt.push(e);await this.#u.initDrawersAndUpdaters();for(const e of this.#u.effectDrawers.values())await(e.init?.(t));for(const e of this.#u.shapeDrawers.values())await(e.init?.(t));let i=!1;for(const e of t.plugins)if(i=e.particlesInitialization?.()??i,i)break;if(!i){const t=e.particles,i=t.groups;for(const e in i){const s=i[e];if(s)for(let i=this.count,n=0;n<s.number.value&&i<t.number.value;i++,n++)this.addParticle(void 0,s,e)}for(let e=this.count;e<t.number.value;e++)this.addParticle()}}push(t,e,i,s){for(let n=0;n<t;n++)this.addParticle(e,i,s)}async redraw(){this.clear(),await this.init(),this.#u.canvas.render.drawParticles({value:0,factor:0})}remove(t,e,i){this.removeAt(this.#Gt.indexOf(t),void 0,e,i)}removeAt(t,e=1,i,s){if(t<0||t>this.count)return;let n=0;for(let a=t;n<e&&a<this.count;a++)this.#ne(a,i,s)&&(a--,n++)}removeQuantity(t,e){this.removeAt(0,t,e)}setDensity(){const t=this.#u.actualOptions,e=t.particles.groups;let i=0;for(const t of this.#u.plugins)t.particlesDensityCount&&(i+=t.particlesDensityCount());for(const t in e){const s=e[t];if(!s)continue;const n=fe(this.#p,this.#u,s);this.#ae(n,i,t)}this.#ae(t.particles,i)}setResizeFactor(t){this.#Zt=t}update(t){this.grid.clear();for(const e of this.#Jt)e.update?.(t);const e=this.#oe(t);for(const e of this.#Kt)e.postUpdate?.(t);if(this.#re(t,e),e.size)for(const t of e)this.remove(t);this.#Zt=void 0}#le(...t){this.#Yt.push(...t)}#ae(t,e,i,s){const n=t.number;if(!n.density.enable)return void(void 0===i?this.#jt=n.limit.value:(s?.number.limit.value??n.limit.value)&&this.#Wt.set(i,s?.number.limit.value??n.limit.value));const a=this.#ce(n.density),o=n.value,r=n.limit.value>0?n.limit.value:o,l=Math.min(o,r)*a+e,c=Math.min(this.count,this.filter(t=>t.group===i).length);void 0===i?this.#jt=n.limit.value*a:this.#Wt.set(i,n.limit.value*a),c<l?this.push(Math.abs(l-c),void 0,t,i):c>l&&this.removeQuantity(c-l,i)}#ee(t){const e=Math.max(Math.floor(t),1);return Array.from({length:e},()=>[])}#he(t){const e=this.#te.length-1;return e<=0?0:Math.min(Math.max(Math.floor(t),0),e)}#ce(t){const e=this.#u;if(!t.enable)return 1;const i=e.canvas.size,s=e.retina.pixelRatio;return i.width&&i.height?i.width*i.height/(t.height*t.width*s**2):1}#ie(t){const e=this.#he(t.position.z),i=this.#te[e];i&&(i.push(t),this.#qt.set(t.id,e))}#ne(t,e,i){const s=this.#Gt[t];return!!s&&(s.group===e&&(this.#Gt.splice(t,1),this.#de(s),s.destroy(i),this.#u.dispatchEvent(ht.particleRemoved,{particle:s}),this.#le(s),!0))}#de(t){const e=this.#qt.get(t.id)??this.#he(t.position.z),i=this.#te[e];if(!i)return void this.#qt.delete(t.id);const s=i.findIndex(e=>e.id===t.id);s>=0&&i.splice(s,1),this.#qt.delete(t.id)}#se(t){const e=Math.max(Math.floor(t),1);if(this.#te.length===e)for(const t of this.#te)t.length=0;else this.#te=this.#ee(e)}#ue(t){const e=this.#he(t.position.z),i=this.#qt.get(t.id);if(void 0===i)return void this.#ie(t);if(i===e)return;const s=this.#te[i];if(s){const e=s.findIndex(e=>e.id===t.id);e>=0&&s.splice(e,1)}const n=this.#te[e];if(n){if(n.push(t),n.length>=2){const e=n[n.length-2];e&&t.id<e.id&&n.sort((t,e)=>t.id-e.id)}this.#qt.set(t.id,e)}else this.#qt.set(t.id,e)}#oe(t){const e=new Set,i=this.#Zt;for(const s of this.#Gt){i&&!s.ignoresResizeRatio&&(s.position.x*=i.width,s.position.y*=i.height,s.initialPosition.x*=i.width,s.initialPosition.y*=i.height),s.ignoresResizeRatio=!1;for(const t of this.#Nt)t.particleReset?.(s);for(const e of this.#Xt){if(s.destroyed)break;e.particleUpdate?.(s,t)}s.destroyed?e.add(s):this.grid.insert(s)}return e}#re(t,e){for(const i of this.#Gt)if(i.destroyed)e.add(i);else{for(const e of this.#u.particleUpdaters)e.update(i,t);if(!i.spawning)for(const e of this.#Qt)e.postParticleUpdate?.(i,t);this.#ue(i)}}}class Fi{pixelRatio;reduceFactor;#u;constructor(t){this.#u=t,this.pixelRatio=1,this.reduceFactor=1}init(){const t=this.#u,e=t.actualOptions;this.pixelRatio=e.detectRetina?devicePixelRatio:1,this.reduceFactor=1;const i=this.pixelRatio,s=t.canvas,n=s.domElement;n&&(s.size.width=n.offsetWidth*i,s.size.height=n.offsetHeight*i)}initParticle(t){const e=t.options,i=this.pixelRatio,s=e.move,n=s.distance,a=t.retina;a.maxSpeed=U(s.gravity.maxSpeed)*i,a.moveDrift=U(s.drift)*i,a.moveSpeed=U(s.speed)*i;const o=a.maxDistance;o.horizontal=void 0===n.horizontal?void 0:n.horizontal*i,o.vertical=void 0===n.vertical?void 0:n.vertical*i}}function Ri(t){return!t.destroyed}function Li(t,e,...i){const s=new ge(t,e);return Ft(s,...i),s}var Ei=Object.freeze({__proto__:null,Container:class{actualOptions;canvas;destroyed;effectDrawers;fpsLimit;hdr;id;pageHidden;particleCreatedPlugins;particleDestroyedPlugins;particlePositionPlugins;particleUpdaters;particles;plugins;retina;shapeDrawers;started;zLayers;#pe;#fe;#ge={value:0,factor:0};#ye;#me;#ve;#we;#Pe;#be;#xe;#ze;#Me;#Ce;#Se;#p;#Ie;#ke;constructor(t){const{dispatchCallback:e,pluginManager:i,id:s,onDestroy:n,sourceOptions:a}=t;this.#p=i,this.#ye=e,this.#Me=n,this.id=Symbol(s),this.fpsLimit=120,this.hdr=!1,this.#Ie=!1,this.#pe=0,this.#ve=0,this.#ze=0,this.#Pe=!0,this.started=!1,this.destroyed=!1,this.#Se=!0,this.#xe=0,this.zLayers=100,this.pageHidden=!1,this.#ke=a,this.#be=a,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.retina=new Fi(this),this.canvas=new Mi(this.#p,this),this.particles=new Oi(this.#p,this),this.plugins=[],this.particleDestroyedPlugins=[],this.particleCreatedPlugins=[],this.particlePositionPlugins=[],this.#Ce=Li(this.#p,this),this.actualOptions=Li(this.#p,this),this.#we=new Ci(this),this.dispatchEvent(ht.containerBuilt)}get animationStatus(){return!this.#Se&&!this.pageHidden&&Ri(this)}get options(){return this.#Ce}get sourceOptions(){return this.#ke}addLifeTime(t){this.#ze+=t}alive(){return!this.#ve||this.#ze<=this.#ve}destroy(t=!0){if(Ri(this)){this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,t]of this.effectDrawers)t.destroy?.(this);for(const[,t]of this.shapeDrawers)t.destroy?.(this);for(const t of this.plugins)t.destroy?.();this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.plugins.length=0,this.#p.clearPlugins(this),this.destroyed=!0,this.#Me(t),this.dispatchEvent(ht.containerDestroyed)}}dispatchEvent(t,e){this.#ye(t,{container:this,data:e})}draw(t){if(!Ri(this))return;let e=t;this.#me=R(t=>{e&&(this.#xe=void 0,e=!1),this.#_e(t)})}async export(t,e={}){for(const i of this.plugins){if(!i.export)continue;const s=await i.export(t,e);if(s.supported)return s.blob}ft().error(`Export plugin with type ${t} not found`)}async init(){if(!Ri(this))return;const t=new Map;for(const e of this.#p.plugins){const i=await e.getPlugin(this);i.preInit&&await i.preInit(),t.set(e,i)}await this.initDrawersAndUpdaters(),this.#Ce=Li(this.#p,this,this.#be,this.sourceOptions),this.actualOptions=Li(this.#p,this,this.#Ce),this.plugins.length=0,this.particleDestroyedPlugins.length=0,this.particleCreatedPlugins.length=0,this.particlePositionPlugins.length=0;for(const[e,i]of t)e.needsPlugin(this.actualOptions)&&(this.plugins.push(i),i.particleCreated&&this.particleCreatedPlugins.push(i),i.particleDestroyed&&this.particleDestroyedPlugins.push(i),i.particlePosition&&this.particlePositionPlugins.push(i));this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{delay:e,duration:i,fpsLimit:s,hdr:n,smooth:o,zLayers:r}=this.actualOptions;this.hdr=n,this.zLayers=r,this.#ve=U(i)*a,this.#pe=U(e)*a,this.#ze=0,this.fpsLimit=s>0?s:120,this.#Ie=o;for(const t of this.plugins)await(t.init?.());await this.particles.init(),this.dispatchEvent(ht.containerInit),this.particles.setDensity();for(const t of this.plugins)t.particlesSetup?.();this.dispatchEvent(ht.particlesSetup)}async initDrawersAndUpdaters(){const t=this.#p;this.effectDrawers=await t.getEffectDrawers(this,!0),this.shapeDrawers=await t.getShapeDrawers(this,!0),this.particleUpdaters=await t.getUpdaters(this,!0)}pause(){var t;if(Ri(this)&&(void 0!==this.#me&&(t=this.#me,L(t),this.#me=void 0),!this.#Se)){for(const t of this.plugins)t.pause?.();this.pageHidden||(this.#Se=!0),this.dispatchEvent(ht.containerPaused)}}play(t){if(!Ri(this))return;const e=this.#Se||t;if(!this.#Pe||this.actualOptions.autoPlay){if(this.#Se&&(this.#Se=!1),e)for(const t of this.plugins)t.play&&t.play();this.dispatchEvent(ht.containerPlay),this.draw(e??!1)}else this.#Pe=!1}async refresh(){if(Ri(this))return this.stop(),this.start()}async reset(t){if(Ri(this))return this.#be=t,this.#ke=t,this.#Ce=Li(this.#p,this,this.#be,this.sourceOptions),this.actualOptions=Li(this.#p,this,this.#Ce),this.refresh()}async start(){Ri(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{const e=async()=>{this.#we.addListeners();for(const t of this.plugins)await(t.start?.());this.dispatchEvent(ht.containerStarted),this.play(),t()};this.#fe=setTimeout(()=>{e()},this.#pe)}))}stop(){if(Ri(this)&&this.started){this.#fe&&(clearTimeout(this.#fe),this.#fe=void 0),this.#Pe=!0,this.started=!1,this.#we.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop();for(const t of this.plugins)t.stop?.();this.particleCreatedPlugins.length=0,this.particleDestroyedPlugins.length=0,this.particlePositionPlugins.length=0,this.#ke=this.#Ce,this.dispatchEvent(ht.containerStopped)}}updateActualOptions(){let t=!1;for(const e of this.plugins)e.updateActualOptions&&(t=e.updateActualOptions()||t);return t}#_e(t){try{if(!this.#Ie&&void 0!==this.#xe&&t<this.#xe+a/this.fpsLimit)return void this.draw(!1);if(this.#xe??=t,function(t,e,i=60,s=!1){t.value=e,t.factor=s?60/i:60*e/a}(this.#ge,t-this.#xe,this.fpsLimit,this.#Ie),this.addLifeTime(this.#ge.value),this.#xe=t,this.#ge.value>a)return void this.draw(!1);if(this.canvas.render.drawParticles(this.#ge),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(t){ft().error("error in animation loop",t)}}}});var Ti=Object.freeze({__proto__:null,BlendPluginInstance:class{#u;#De;constructor(t){this.#u=t}drawParticleCleanup(t,e){e.options.blend?.enable&&(t.globalCompositeOperation=e.originalBlendMode??i,e.originalBlendMode=void 0)}drawParticleSetup(t,e){e.options.blend?.enable&&(e.originalBlendMode=t.globalCompositeOperation,t.globalCompositeOperation=e.options.blend.mode)}drawSettingsCleanup(t){this.#De&&(t.globalCompositeOperation=this.#De)}drawSettingsSetup(t){const e=t.globalCompositeOperation,i=this.#u.actualOptions.blend;this.#De=e,t.globalCompositeOperation=i?.enable?i.mode:e}}});function Ai(t,e,i,s,n,a,o){!function(t,e){const i=t.options,s=i.move.path;if(!s.enable)return;const n=t.pathDelay??0;if(t.lastPathTime<=n)return void(t.lastPathTime+=e.value);const a=t.pathGenerator?.generate(t,e);a&&t.velocity.addTo(a);s.clamp&&(t.velocity.x=A(t.velocity.x,-1,1),t.velocity.y=A(t.velocity.y,-1,1));t.lastPathTime-=n}(t,o);const r=t.gravity,l=r?.enable&&r.inverse?-1:1;n&&i&&(t.velocity.x+=n*o.factor/(60*i)),r?.enable&&i&&(t.velocity.y+=l*(r.acceleration*o.factor)/(60*i));const c=t.moveDecay;t.velocity.multTo(c??1);const h=t.velocity.mult(i);r?.enable&&s>0&&(!r.inverse&&h.y>=0&&h.y>=s||r.inverse&&h.y<=0&&h.y<=-s)&&(h.y=l*s,i&&(t.velocity.y=h.y/i));const d=t.options.zIndex,u=(1-t.zIndexFactor)**d.velocityRate;h.multTo(u),h.multTo(a);const{position:p}=t;p.addTo(h),e.vibrate&&(p.x+=Math.sin(p.x*Math.cos(p.y))*a,p.y+=Math.cos(p.y*Math.sin(p.x))*a)}function Bi(t,e){const i=e.options.move.spin;if(!i.enable)return;const s=i.position??{x:50,y:50},n={x:.01*s.x*t.canvas.size.width,y:.01*s.y*t.canvas.size.height},a=e.getPosition(),o=(l=a,c=n,Math.sqrt(j(l,c))),r=U(i.acceleration);var l,c;e.retina.spinAcceleration=r*t.retina.pixelRatio,e.spin={center:n,direction:e.velocity.x>=0?vt.clockwise:vt.counterClockwise,angle:E()*u,radius:o,acceleration:e.retina.spinAcceleration}}var Ui=Object.freeze({__proto__:null,MovePluginInstance:class{availablePathGenerators;pathGenerators;#u;#p;constructor(t,e){this.#p=t,this.#u=e,this.availablePathGenerators=new Map,this.pathGenerators=new Map}destroy(){this.availablePathGenerators=new Map,this.pathGenerators=new Map}isEnabled(t){return!t.destroyed&&t.options.move.enable}particleCreated(t){const e=t.options.move,i=e.gravity,s=e.path;if(t.moveDecay=1-U(e.decay),t.pathDelay=U(s.delay.value)*a,s.generator){let e=this.pathGenerators.get(s.generator);e||(e=this.availablePathGenerators.get(s.generator),e&&(this.pathGenerators.set(s.generator,e),e.init())),t.pathGenerator=e}t.gravity={enable:i.enable,acceleration:U(i.acceleration),inverse:i.inverse},Bi(this.#u,t)}particleDestroyed(t){const e=t.pathGenerator;e?.reset(t)}particleUpdate(t,e){const i=t.options.move;if(!i.enable)return;const s=this.#u,a=function(t){return t.slow.inRange?t.slow.factor:1}(t),o=s.retina.reduceFactor,r=t.retina.moveSpeed,l=t.retina.moveDrift,c=t.size.max,h=r*(i.size?t.getRadius()/c:1)*a*(e.factor||1)*n,d=t.retina.maxSpeed;i.spin.enable?function(t,e,i,s){if(!e.spin)return;const a=e.spin.direction===vt.clockwise,o={x:a?Math.cos:Math.sin,y:a?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*o.x(e.spin.angle)*s,e.position.y=e.spin.center.y+e.spin.radius*o.y(e.spin.angle)*s,e.spin.radius+=e.spin.acceleration*s;const r=Math.max(t.canvas.size.width,t.canvas.size.height),l=r*n;e.spin.radius>l?(e.spin.radius=l,e.spin.acceleration*=-1):e.spin.radius<0&&(e.spin.radius=0,e.spin.acceleration*=-1),e.spin.angle+=.01*i*(1-e.spin.radius/r)}(s,t,h,o):Ai(t,i,h,d,l,o,e),function(t){const e=t.initialPosition,{dx:i,dy:s}=W(e,t.position),a=Math.abs(i),o=Math.abs(s),{maxDistance:r}=t.retina,l=r.horizontal,c=r.vertical;if(!l&&!c)return;if((l&&a>=l||c&&o>=c)&&!t.misplaced)t.misplaced=!!l&&a>l||!!c&&o>c,l&&(t.velocity.x=t.velocity.y*n-t.velocity.x),c&&(t.velocity.y=t.velocity.x*n-t.velocity.y);else if((!l||a<l)&&(!c||o<c)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const i=t.position,s=t.velocity;l&&(i.x<e.x&&s.x<0||i.x>e.x&&s.x>0)&&(s.x*=-E()),c&&(i.y<e.y&&s.y<0||i.y>e.y&&s.y>0)&&(s.y*=-E())}}(t)}preInit(){return this.#Oe()}redrawInit(){return this.#Oe()}update(){for(const t of this.pathGenerators.values())t.update()}async#Oe(){const t=await(this.#p.getPathGenerators?.(this.#u,!0));if(t){this.availablePathGenerators=t,this.pathGenerators=new Map;for(const t of this.pathGenerators.values())t.init()}}}});t.loadBigCirclesPreset=vi,t.tsParticles=De}),Object.assign(globalThis.window||globalThis,{loadBigCirclesPreset:(globalThis.__tsParticlesInternals.presets.bigCircles||{}).loadBigCirclesPreset}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
@@ -1,5 +1,5 @@
1
1
  (function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
2
- /* Preset v4.2.0 */
2
+ /* Preset v4.2.1 */
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/basic'), require('@tsparticles/engine')) :
5
5
  typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/basic', '@tsparticles/engine'], factory) :