@tsparticles/preset-fireworks 3.2.0 → 4.0.0-alpha.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/125.min.js +2 -0
- package/125.min.js.LICENSE.txt +1 -0
- package/171.min.js +2 -0
- package/171.min.js.LICENSE.txt +1 -0
- package/213.min.js +2 -0
- package/213.min.js.LICENSE.txt +1 -0
- package/22.min.js +2 -0
- package/22.min.js.LICENSE.txt +1 -0
- package/226.min.js +2 -0
- package/226.min.js.LICENSE.txt +1 -0
- package/237.min.js +2 -0
- package/237.min.js.LICENSE.txt +1 -0
- package/264.min.js +2 -0
- package/264.min.js.LICENSE.txt +1 -0
- package/267.min.js +2 -0
- package/267.min.js.LICENSE.txt +1 -0
- package/280.min.js +2 -0
- package/280.min.js.LICENSE.txt +1 -0
- package/283.min.js +2 -0
- package/283.min.js.LICENSE.txt +1 -0
- package/301.min.js +2 -0
- package/301.min.js.LICENSE.txt +1 -0
- package/313.min.js +2 -0
- package/313.min.js.LICENSE.txt +1 -0
- package/319.min.js +2 -0
- package/319.min.js.LICENSE.txt +1 -0
- package/349.min.js +2 -0
- package/349.min.js.LICENSE.txt +1 -0
- package/389.min.js +2 -0
- package/389.min.js.LICENSE.txt +1 -0
- package/397.min.js +2 -0
- package/397.min.js.LICENSE.txt +1 -0
- package/418.min.js +2 -0
- package/418.min.js.LICENSE.txt +1 -0
- package/453.min.js +2 -0
- package/453.min.js.LICENSE.txt +1 -0
- package/455.min.js +2 -0
- package/455.min.js.LICENSE.txt +1 -0
- package/459.min.js +2 -0
- package/459.min.js.LICENSE.txt +1 -0
- package/477.min.js +2 -0
- package/477.min.js.LICENSE.txt +1 -0
- package/481.min.js +2 -0
- package/481.min.js.LICENSE.txt +1 -0
- package/488.min.js +2 -0
- package/488.min.js.LICENSE.txt +1 -0
- package/49.min.js +2 -0
- package/49.min.js.LICENSE.txt +1 -0
- package/509.min.js +2 -0
- package/509.min.js.LICENSE.txt +1 -0
- package/527.min.js +2 -0
- package/527.min.js.LICENSE.txt +1 -0
- package/541.min.js +2 -0
- package/541.min.js.LICENSE.txt +1 -0
- package/597.min.js +2 -0
- package/597.min.js.LICENSE.txt +1 -0
- package/633.min.js +2 -0
- package/633.min.js.LICENSE.txt +1 -0
- package/637.min.js +2 -0
- package/637.min.js.LICENSE.txt +1 -0
- package/669.min.js +2 -0
- package/669.min.js.LICENSE.txt +1 -0
- package/751.min.js +2 -0
- package/751.min.js.LICENSE.txt +1 -0
- package/802.min.js +2 -0
- package/802.min.js.LICENSE.txt +1 -0
- package/803.min.js +2 -0
- package/803.min.js.LICENSE.txt +1 -0
- package/819.min.js +2 -0
- package/819.min.js.LICENSE.txt +1 -0
- package/829.min.js +2 -0
- package/829.min.js.LICENSE.txt +1 -0
- package/890.min.js +2 -0
- package/890.min.js.LICENSE.txt +1 -0
- package/908.min.js +2 -0
- package/908.min.js.LICENSE.txt +1 -0
- package/926.min.js +2 -0
- package/926.min.js.LICENSE.txt +1 -0
- package/98.min.js +2 -0
- package/98.min.js.LICENSE.txt +1 -0
- package/browser/bundle.js +2 -3
- package/browser/index.js +18 -22
- package/browser/options.js +97 -38
- package/cjs/bundle.js +2 -7
- package/cjs/index.js +18 -26
- package/cjs/options.js +110 -55
- package/dist_browser_options_js.js +30 -0
- package/esm/bundle.js +2 -3
- package/esm/index.js +18 -22
- package/esm/options.js +97 -38
- package/node_modules_pnpm_tsparticles_basic_4_0_0-alpha_2_node_modules_tsparticles_basic_browser_index_js.js +30 -0
- package/node_modules_pnpm_tsparticles_effect-trail_4_0_0-alpha_2_node_modules_tsparticles_effect-trai-3395e5.js +30 -0
- package/node_modules_pnpm_tsparticles_effect-trail_4_0_0-alpha_2_node_modules_tsparticles_effect-trai-8c7216.js +30 -0
- package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-7d79eb.js +40 -0
- package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-fb148a.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_2_node_modules_tsparti-cafd8c.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_2_node_modules_tsparti-cf2f58.js +70 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_plugin-e-122a51.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_plugin-e-6bd6f8.js +50 -0
- package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--91288b.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--d06b2a.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--70976c.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--e141e9.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--60c9df.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--732407.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-alpha_2_node_modules_tsparticles_plugin-sou-6e6a34.js +30 -0
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_2_node_modules_tsparticles_shape-circl-c98489.js +40 -0
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_2_node_modules_tsparticles_shape-circl-ce96e8.js +30 -0
- package/node_modules_pnpm_tsparticles_shape-line_4_0_0-alpha_2_node_modules_tsparticles_shape-line_br-01d607.js +30 -0
- package/node_modules_pnpm_tsparticles_shape-line_4_0_0-alpha_2_node_modules_tsparticles_shape-line_br-eb7b65.js +40 -0
- package/node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_2_node_modules_tsparticles_updater-co-210bd6.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_2_node_modules_tsparticles_updater-co-6ff909.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-destroy_4_0_0-alpha_2_node_modules_tsparticles_updater--cef2d9.js +100 -0
- package/node_modules_pnpm_tsparticles_updater-destroy_4_0_0-alpha_2_node_modules_tsparticles_updater--f71d4c.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_2_node_modules_tsparticles_updater-lif-50f821.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_2_node_modules_tsparticles_updater-lif-dbf90f.js +70 -0
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_2_node_modules_tsparticles_updater--4e8c57.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_2_node_modules_tsparticles_updater--ac14ff.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_2_node_modules_tsparticles_update-cd317f.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_2_node_modules_tsparticles_updater-r-0de212.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_2_node_modules_tsparticles_updater-r-e97427.js +50 -0
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_2_node_modules_tsparticles_updater-siz-53e0fe.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_2_node_modules_tsparticles_updater-siz-aaa117.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-stroke-color_4_0_0-alpha_2_node_modules_tsparticles_upd-74b323.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-stroke-color_4_0_0-alpha_2_node_modules_tsparticles_upd-ca004c.js +30 -0
- package/package.json +30 -13
- package/report.html +5 -4
- package/tsparticles.preset.fireworks.bundle.js +774 -2583
- package/tsparticles.preset.fireworks.bundle.min.js +1 -1
- package/tsparticles.preset.fireworks.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.preset.fireworks.js +306 -57
- package/tsparticles.preset.fireworks.min.js +1 -1
- package/tsparticles.preset.fireworks.min.js.LICENSE.txt +1 -1
- package/types/bundle.d.ts +2 -3
- package/types/index.d.ts +1 -1
- package/types/options.d.ts +3 -2
- package/umd/bundle.js +2 -2
- package/umd/index.js +54 -25
- package/umd/options.js +98 -39
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-alpha_2_node_modules_tsparticles_engine_br-9c0a0f.js +100 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_-1e60b5.js +110 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-alpha_2_node_modules_tsparticles_pl-a36589.js +140 -0
- package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_2_node_modules_tsparticle-124574.js +80 -0
package/125.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 125.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[125],{3125(e,s,r){function a(e){e.checkVersion("4.0.0-alpha.2"),e.register(e=>{e.addMover("base",async()=>{const{BaseMover:e}=await r.e(98).then(r.bind(r,1098));return new e})})}r.d(s,{loadBaseMover:()=>a})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/171.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 171.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[171],{4171(e,r,a){function s(e){e.checkVersion("4.0.0-alpha.2"),e.register(async e=>{const{RgbColorManager:r}=await a.e(802).then(a.bind(a,8802));e.addColorManager(new r)})}a.d(r,{loadRgbColorPlugin:()=>s})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/213.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 213.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[213],{9213(e,o,i){i.d(o,{ColorUpdater:()=>n});var t=i(4929);class n{constructor(e,o){this._container=o,this._engine=e}init(e){const o=(0,t.R5R)(this._engine,e.options.color,e.id,e.options.reduceDuplicates);o&&(e.color=(0,t.pzy)(o,e.options.color.animation,this._container.retina.reduceFactor))}isEnabled(e){const{h:o,s:i,l:t}=e.options.color.animation,{color:n}=e;return!e.destroyed&&!e.spawning&&(void 0!==n?.h.value&&o.enable||void 0!==n?.s.value&&i.enable||void 0!==n?.l.value&&t.enable)}update(e,o){(0,t.JvX)(e.color,o)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/22.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 22.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[22],{3022(e,i,t){t.d(i,{LifeUpdater:()=>r});var n=t(4929);class s extends n.PVU{constructor(){super(),this.sync=!1}load(e){(0,n.kZJ)(e)||(super.load(e),void 0!==e.sync&&(this.sync=e.sync))}}class a extends n.PVU{constructor(){super(),this.sync=!1}load(e){(0,n.kZJ)(e)||(super.load(e),void 0!==e.sync&&(this.sync=e.sync))}}class o{constructor(){this.count=0,this.delay=new s,this.duration=new a}load(e){(0,n.kZJ)(e)||(void 0!==e.count&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}class r{constructor(e){this.container=e}init(e){const i=this.container,t=e.options.life;t&&(e.life={delay:i.retina.reduceFactor?(0,n.VGA)(t.delay.value)*(t.delay.sync?1:(0,n.G0i)())/i.retina.reduceFactor*n.XuV:0,delayTime:0,duration:i.retina.reduceFactor?(0,n.VGA)(t.duration.value)*(t.duration.sync?1:(0,n.G0i)())/i.retina.reduceFactor*n.XuV:0,time:0,count:t.count},e.life.duration<=0&&(e.life.duration=-1),e.life.count<=0&&(e.life.count=-1),e.spawning=e.life.delay>0)}isEnabled(e){return!e.destroyed}loadOptions(e,...i){e.life??=new o;for(const t of i)e.life.load(t?.life)}update(e,i){this.isEnabled(e)&&e.life&&function(e,i,t){if(!e.life)return;const s=e.life;let a=!1;if(e.spawning){if(s.delayTime+=i.value,!(s.delayTime>=e.life.delay))return;a=!0,e.spawning=!1,s.delayTime=0,s.time=0}if(-1===s.duration)return;if(a?s.time=0:s.time+=i.value,s.time<s.duration)return;if(s.time=0,e.life.count>0&&e.life.count--,0===e.life.count)return void e.destroy();const o=(0,n.DT4)(0,t.width),r=(0,n.DT4)(0,t.width);e.position.x=(0,n.vEz)(o),e.position.y=(0,n.vEz)(r),e.spawning=!0,s.delayTime=0,s.time=0,e.reset();const l=e.options.life;l&&(s.delay=(0,n.VGA)(l.delay.value)*n.XuV,s.duration=(0,n.VGA)(l.duration.value)*n.XuV)}(e,i,this.container.canvas.size)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/226.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 226.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[49,226],{3226(t,e,i){i.d(e,{EmittersSquareShapeGenerator:()=>h});var o=i(9049),s=i(4929);var n;function r(t,e){return t+e*((0,s.G0i)()-s.MXx)}!function(t){t[t.TopLeft=0]="TopLeft",t[t.TopRight=1]="TopRight",t[t.BottomRight=2]="BottomRight",t[t.BottomLeft=3]="BottomLeft"}(n||(n={}));class a extends o.B{constructor(t,e,i,o){super(t,e,i,o)}async init(){}randomPosition(){const t=this.fill,e=this.position,i=this.size;if(t)return{position:{x:r(e.x,i.width),y:r(e.y,i.height)}};{const t=i.width*s.MXx,o=i.height*s.MXx,r=Math.floor(4*(0,s.G0i)()),a=((0,s.G0i)()-s.MXx)*s.gdl;switch(r){case n.TopLeft:return{position:{x:e.x+a*t,y:e.y-o}};case n.TopRight:return{position:{x:e.x-t,y:e.y+a*o}};case n.BottomRight:return{position:{x:e.x+a*t,y:e.y+o}};case n.BottomLeft:default:return{position:{x:e.x+t,y:e.y+a*o}}}}}}class h{generate(t,e,i,o){return new a(t,e,i,o)}}},9049(t,e,i){i.d(e,{B:()=>o,loadEmittersPlugin:()=>s});class o{constructor(t,e,i,o){this.position=t,this.size=e,this.fill=i,this.options=o}resize(t,e){this.position=t,this.size=e}}i(9883);function s(t){t.checkVersion("4.0.0-alpha.2"),t.register(async t=>{const{ShapeManager:e}=await i.e(397).then(i.bind(i,5397)),{EmittersPlugin:o}=await i.e(669).then(i.bind(i,3669));t.emitterShapeManager??=new e,t.addEmitterShapeGenerator??=(e,i)=>{t.emitterShapeManager?.addShapeGenerator(e,i)};const s=new o(t);t.addPlugin(s)})}},9883(t,e,i){var o;i.d(e,{c:()=>o}),function(t){t.emitter="emitter"}(o||(o={}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/237.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 237.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[237],{8237(t,e,a){a.d(e,{RotateUpdater:()=>r});var o=a(4929);class i{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){(0,o.kZJ)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,o.DT4)(t.speed)),void 0!==t.decay&&(this.decay=(0,o.DT4)(t.decay)),void 0!==t.sync&&(this.sync=t.sync))}}class s extends o.PVU{constructor(){super(),this.animation=new i,this.direction=o.pTR.clockwise,this.path=!1,this.value=0}load(t){(0,o.kZJ)(t)||(super.load(t),void 0!==t.direction&&(this.direction=t.direction),this.animation.load(t.animation),void 0!==t.path&&(this.path=t.path))}}const n=2*Math.PI;class r{constructor(t){this.container=t}init(t){const e=t.options.rotate;if(!e)return;t.rotate={enable:e.animation.enable,value:(0,o.puj)((0,o.VGA)(e.value)),min:0,max:n},t.pathRotation=e.path;let a=e.direction;if(a===o.pTR.random){a=Math.floor(2*(0,o.G0i)())>0?o.pTR.counterClockwise:o.pTR.clockwise}switch(a){case o.pTR.counterClockwise:case"counterClockwise":t.rotate.status=o.H_P.decreasing;break;case o.pTR.clockwise:t.rotate.status=o.H_P.increasing}const i=e.animation;i.enable&&(t.rotate.decay=1-(0,o.VGA)(i.decay),t.rotate.velocity=(0,o.VGA)(i.speed)/360*this.container.retina.reduceFactor,i.sync||(t.rotate.velocity*=(0,o.G0i)())),t.rotation=t.rotate.value}isEnabled(t){const e=t.options.rotate;return!!e&&(!t.destroyed&&!t.spawning&&(!!e.value||e.animation.enable||e.path))}loadOptions(t,...e){t.rotate??=new s;for(const a of e)t.rotate.load(a?.rotate)}update(t,e){this.isEnabled(t)&&(t.isRotating=!!t.rotate,t.rotate&&((0,o.UC0)(t,t.rotate,!1,o.VKE.none,e),t.rotation=t.rotate.value))}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/264.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 264.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[264],{9264(r,e,t){var a;t.d(e,{HexColorManager:()=>i}),function(r){r[r.r=1]="r",r[r.g=2]="g",r[r.b=3]="b",r[r.a=4]="a"}(a||(a={}));const s=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class i{constructor(){this.key="hex"}accepts(r){return r.startsWith("#")}handleColor(r){return this._parseString(r.value)}handleRangeColor(r){return this._parseString(r.value)}parseString(r){return this._parseString(r)}_parseString(r){if("string"!=typeof r||!this.accepts(r))return;const e=r.replace(s,(r,e,t,a,s)=>e+e+t+t+a+a+(void 0!==s?s+s:"")),t=n.exec(e);return t?{a:t[a.a]?parseInt(t[a.a],16)/255:1,b:parseInt(t[a.b]??"0",16),g:parseInt(t[a.g]??"0",16),r:parseInt(t[a.r]??"0",16)}:void 0}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/267.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 267.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[267],{3267(e,s,r){function a(e){e.checkVersion("4.0.0-alpha.2"),e.register(async e=>{const{HslColorManager:s}=await r.e(926).then(r.bind(r,2926));e.addColorManager(new s)})}r.d(s,{loadHslColorPlugin:()=>a})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/280.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 280.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[280],{9280(t,a,i){i.d(a,{TrailDrawer:()=>n});var r=i(4929);const e={a:1,b:0,c:0,d:1};class n{drawAfter(t){const{context:a,radius:i,particle:n,transformData:o}=t,s=i*r.gdl,l=n.container.retina.pixelRatio,h=n.getPosition(),c=n.trail;if(!c||!n.trailLength)return;const x=n.trailLength+i;if(c.push({color:a.fillStyle||a.strokeStyle,position:{x:h.x,y:h.y},transformData:{...t.transformData}}),c.length<2)return;for(;c.length>x;)c.shift();const d=Math.min(c.length,x),f=n.container.canvas.size.width+s,p=n.container.canvas.size.height+s,m=c[d-1];if(!m)return;let y=m.position;for(let t=d;t>r.dvp;t--){const i=c[t-1];if(!i)continue;const o=i.position,h=n.trailTransform?i.transformData??e:e;a.setTransform(h.a,h.b,h.c,h.d,o.x,o.y),a.beginPath(),a.moveTo(y.x-o.x,y.y-o.y);const x={x:(y.x+f)%f,y:(y.y+p)%p};if(Math.abs(y.x-o.x)>f*r.MXx||Math.abs(y.y-o.y)>p*r.MXx){y=o;continue}a.lineTo(Math.abs(y.x-o.x)>f*r.MXx?x.x:r.boI.x,Math.abs(y.y-o.y)>p*r.MXx?x.y:r.boI.y);const m=Math.max(t/d*s,l,n.trailMinWidth??-1),M=a.globalAlpha;a.globalAlpha=n.trailFade?t/d:r.aZx,a.lineWidth=n.trailMaxWidth?Math.min(m,n.trailMaxWidth):m,a.strokeStyle=i.color,a.stroke(),a.globalAlpha=M,y=o}a.setTransform(o.a,o.b,o.c,o.d,h.x,h.y)}particleInit(t,a){a.trail=[];const i=a.effectData;a.trailFade=i?.fade??!0,a.trailLength=(0,r.VGA)(i?.length??10)*t.retina.pixelRatio,a.trailMaxWidth=i?.maxWidth?(0,r.VGA)(i.maxWidth)*t.retina.pixelRatio:void 0,a.trailMinWidth=i?.minWidth?(0,r.VGA)(i.minWidth)*t.retina.pixelRatio:void 0,a.trailTransform=i?.transform??!1}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/283.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 283.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[283],{8283(e,t,a){a.d(t,{initOptions:()=>r,presetName:()=>n});var i=a(4929);const n="fireworks";function r(){const e=(e,t,a)=>{const n=e.max>a?e.max-a:0;let r=(0,i.DT4)(e);n&&(r=(0,i.DT4)(e.min-n,a));const s=e.min<t?e.min:0;return s&&(r=(0,i.DT4)(0,e.max+s)),r},t=["#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"].map(t=>{const a=(e=>{let t=e;const a=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i;a.test(t)&&(t=t.replace(a,(e,t,a,i,n)=>t+t+a+a+i+i+(n?n+n:"")));const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(t);if(!n)return;n.shift();const r=2,s=1,o=0,F={a:n[3],b:n[r],g:n[s],r:n[o]};return{r:F.r?Number.parseInt(F.r,16):i.dvp,g:F.g?Number.parseInt(F.g,16):i.dvp,b:F.b?Number.parseInt(F.b,16):i.dvp,a:F.a?Number.parseInt(F.a,16):i.aZx}})(t);if(!a)return;const n=(0,i.K6u)(a),r=0,s=100,o=0,F=100,l=e({min:n.s-30,max:n.s+30},r,s),m=e({min:n.l-30,max:n.l+30},o,F);return{color:{value:{h:n.h,s:l,l:m}},stroke:{width:0},number:{value:0},opacity:{value:{min:.1,max:1},animation:{enable:!0,speed:.7,sync:!1,startValue:i.SKz.max,destroy:i.VKE.min}},shape:{type:"circle"},effect:{type:"trail",options:{trail:{length:{min:5,max:10}}}},size:{value:{min:1,max:2},animation:{enable:!0,speed:5,count:1,sync:!1,startValue:i.SKz.min,destroy:i.VKE.none}},life:{count:1,duration:{value:{min:1,max:2}}},move:{decay:{min:.075,max:.1},enable:!0,gravity:{enable:!0,inverse:!1,acceleration:5},speed:{min:5,max:15},direction:"none",outModes:i.Yzx.destroy}}}).filter(e=>void 0!==e);return{detectRetina:!0,background:{color:"#000"},fpsLimit:120,emitters:{direction:i.FWc.top,rate:{delay:.3,quantity:1},size:{width:100,height:0},position:{y:100,x:50}},particles:{number:{value:0},destroy:{mode:"split",bounds:{top:{min:15,max:35}},split:{sizeOffset:!1,count:1,factor:{value:.333333},rate:{value:{min:75,max:150}},particles:t}},life:{count:1},shape:{type:"circle"},effect:{type:"trail",options:{trail:{length:{min:5,max:15},minWidth:1,maxWidth:1}}},size:{value:1},stroke:{color:{value:"#ffffff"},width:1},move:{enable:!0,gravity:{acceleration:15,enable:!0,inverse:!0,maxSpeed:100},speed:{min:10,max:20},outModes:{default:i.Yzx.destroy,top:i.Yzx.none}}},sounds:{enable:!0,events:[{event:i.Bx4.particleRemoved,filter:e=>e.data.particle.options.move.gravity.inverse,audio:["https://particles.js.org/audio/explosion0.mp3","https://particles.js.org/audio/explosion1.mp3","https://particles.js.org/audio/explosion2.mp3"]}],volume:50}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/301.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 301.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[301],{3301(e,r,t){function s(e){e.checkVersion("4.0.0-alpha.2"),e.register(e=>{e.addParticleUpdater("strokeColor",async r=>{const{StrokeColorUpdater:s}=await t.e(541).then(t.bind(t,3541));return new s(e,r)})})}t.d(r,{loadStrokeColorUpdater:()=>s})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/313.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 313.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[313],{3313(e,t,a){function r(e){e.checkVersion("4.0.0-alpha.2"),e.register(e=>{e.addParticleUpdater("opacity",async e=>{const{OpacityUpdater:t}=await a.e(751).then(a.bind(a,4751));return new t(e)})})}a.d(t,{loadOpacityUpdater:()=>r})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/319.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 319.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[319],{7319(e,r,t){function a(e){e.checkVersion("4.0.0-alpha.2"),e.register(async e=>{const{EmittersSquareShapeGenerator:r}=await t.e(226).then(t.bind(t,3226));e.addEmitterShapeGenerator?.("square",new r)})}t.d(r,{loadEmittersShapeSquare:()=>a})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/349.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 349.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[349],{4349(e,t,s){function a(e){e.checkVersion("4.0.0-alpha.2"),e.register(e=>{e.addParticleUpdater("outModes",async e=>{const{OutOfCanvasUpdater:t}=await s.e(803).then(s.bind(s,4803));return new t(e)})})}s.d(t,{loadOutModesUpdater:()=>a})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/389.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 389.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[389],{5389(t,o,s){s.d(o,{DestroyUpdater:()=>f});var e,i=s(4929);class l{load(t){(0,i.kZJ)(t)||(void 0!==t.bottom&&(this.bottom=(0,i.DT4)(t.bottom)),void 0!==t.left&&(this.left=(0,i.DT4)(t.left)),void 0!==t.right&&(this.right=(0,i.DT4)(t.right)),void 0!==t.top&&(this.top=(0,i.DT4)(t.top)))}}!function(t){t.none="none",t.split="split"}(e||(e={}));class r extends i.PVU{constructor(){super(),this.value=3}}class n extends i.PVU{constructor(){super(),this.value={min:4,max:9}}}class c{constructor(){this.count=1,this.factor=new r,this.rate=new n,this.sizeOffset=!0}load(t){(0,i.kZJ)(t)||(void 0!==t.color&&(this.color=i.Oit.create(this.color,t.color)),void 0!==t.count&&(this.count=t.count),this.factor.load(t.factor),this.rate.load(t.rate),this.particles=(0,i.wJ2)(t.particles,t=>(0,i.zwS)({},t)),void 0!==t.sizeOffset&&(this.sizeOffset=t.sizeOffset),t.colorOffset&&(this.colorOffset=this.colorOffset??{},void 0!==t.colorOffset.h&&(this.colorOffset.h=t.colorOffset.h),void 0!==t.colorOffset.s&&(this.colorOffset.s=t.colorOffset.s),void 0!==t.colorOffset.l&&(this.colorOffset.l=t.colorOffset.l)))}}class a{constructor(){this.bounds=new l,this.mode=e.none,this.split=new c}load(t){(0,i.kZJ)(t)||(t.mode&&(this.mode=t.mode),t.bounds&&this.bounds.load(t.bounds),this.split.load(t.split))}}function d(t,o,s,e){const l=s.options.destroy;if(!l)return;const r=l.split,n=(0,i.yVN)(t,o,s.options),c=(0,i.VGA)(r.factor.value),a=s.getFillColor();r.color?n.color.load(r.color):r.colorOffset&&a?n.color.load({value:{hsl:{h:a.h+(0,i.VGA)(r.colorOffset.h??0),s:a.s+(0,i.VGA)(r.colorOffset.s??0),l:a.l+(0,i.VGA)(r.colorOffset.l??0)}}}):n.color.load({value:{hsl:s.getFillColor()}}),n.move.load({center:{x:s.position.x,y:s.position.y,mode:i.qiC.precise}}),(0,i.EtT)(n.size.value)?n.size.value/=c:(n.size.value.min/=c,n.size.value.max/=c),n.load(e);const d=r.sizeOffset?(0,i.DT4)(-s.size.value,s.size.value):0,f={x:s.position.x+(0,i.vEz)(d),y:s.position.y+(0,i.vEz)(d)};return o.particles.addParticle(f,n,s.group,t=>!(t.size.value<.5)&&(t.velocity.length=(0,i.vEz)((0,i.DT4)(s.velocity.length,t.velocity.length)),t.splitCount=(s.splitCount??0)+1,t.unbreakable=!0,setTimeout(()=>{t.unbreakable=!1},500),!0))}class f{constructor(t,o){this.container=o,this.engine=t}init(t){const o=this.container,s=t.options.destroy;if(!s)return;t.splitCount=0;const e=s.bounds;t.destroyBounds??={};const{bottom:l,left:r,right:n,top:c}=e,{destroyBounds:a}=t,d=o.canvas.size;l&&(a.bottom=(0,i.VGA)(l)*d.height/i.a56),r&&(a.left=(0,i.VGA)(r)*d.width/i.a56),n&&(a.right=(0,i.VGA)(n)*d.width/i.a56),c&&(a.top=(0,i.VGA)(c)*d.height/i.a56)}isEnabled(t){return!t.destroyed}loadOptions(t,...o){t.destroy??=new a;for(const s of o)t.destroy.load(s?.destroy)}particleDestroyed(t,o){if(o)return;const s=t.options.destroy;s?.mode===e.split&&function(t,o,s){const e=s.options.destroy;if(!e)return;const l=e.split;if(l.count>=0&&(void 0===s.splitCount||s.splitCount++>l.count))return;const r=(0,i.VGA)(l.rate.value),n=(0,i.TA3)(l.particles);for(let e=0;e<r;e++)d(t,o,s,n)}(this.engine,this.container,t)}update(t){if(!this.isEnabled(t))return;const o=t.getPosition(),s=t.destroyBounds;s&&(void 0!==s.bottom&&o.y>=s.bottom||void 0!==s.left&&o.x<=s.left||void 0!==s.right&&o.x>=s.right||void 0!==s.top&&o.y<=s.top)&&t.destroy()}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/397.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 397.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[397],{5397(e,r,t){t.d(r,{ShapeManager:()=>s});const a=new Map;class s{addShapeGenerator(e,r){this.getShapeGenerator(e)||a.set(e,r)}getShapeGenerator(e){return a.get(e)}getSupportedShapeGenerators(){return a.keys()}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/418.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 418.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[418],{8418(t,i,e){e.d(i,{Container:()=>A});var s=e(604),n=e(9622),o=e(1886),a=e(9322),r=e(2987);function h(t,i,e){const s=i[e];void 0!==s&&(t[e]=(t[e]??n.zs)*s)}function c(t,i,e=!1){if(!i)return;const s=t.style,n=new Set;for(let t=0;t<s.length;t++){const i=s.item(t);i&&n.add(i)}for(let t=0;t<i.length;t++){const e=i.item(t);e&&n.add(e)}for(const t of n){const n=i.getPropertyValue(t);n?s.setProperty(t,n,e?"important":""):s.removeProperty(t)}}class l{constructor(t,i){this.container=t,this._applyPostDrawUpdaters=t=>{for(const i of this._postDrawUpdaters)i.afterDraw?.(t)},this._applyPreDrawUpdaters=(t,i,e,s,n,o)=>{for(const a of this._preDrawUpdaters){if(a.getColorStyles){const{fill:o,stroke:r}=a.getColorStyles(i,t,e,s);o&&(n.fill=o),r&&(n.stroke=r)}if(a.getTransformValues){const t=a.getTransformValues(i);for(const i in t)h(o,t,i)}a.beforeDraw?.(i)}},this._applyResizePlugins=()=>{for(const t of this._resizePlugins)t.resize?.()},this._getPluginParticleColors=t=>{let i,e;for(const s of this._colorPlugins)if(!i&&s.particleFillColor&&(i=(0,r.R5)(this._engine,s.particleFillColor(t))),!e&&s.particleStrokeColor&&(e=(0,r.R5)(this._engine,s.particleStrokeColor(t))),i&&e)break;return[i,e]},this._initStyle=()=>{const t=this.element,i=this.container.actualOptions;if(t){this._fullScreen?this._setFullScreenStyle():this._resetOriginalStyle();for(const e in i.style){if(!e||!Object.prototype.hasOwnProperty.call(i.style,e))continue;const s=i.style[e];s&&t.style.setProperty(e,s,"important")}}},this._repairStyle=()=>{const t=this.element;if(!t)return;this._safeMutationObserver(t=>{t.disconnect()}),this._initStyle(),this.initBackground();const i=this._pointerEvents;t.style.pointerEvents=i,t.setAttribute("pointer-events",i),this._safeMutationObserver(i=>{t instanceof Node&&i.observe(t,{attributes:!0})})},this._resetOriginalStyle=()=>{const t=this.element,i=this._originalStyle;t&&i&&c(t,i,!0)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{const t=this.element;t&&c(t,(0,a.hJ)(this.container.actualOptions.fullScreen.zIndex),!0)},this._engine=i,this._standardSize={height:0,width:0};const e=t.retina.pixelRatio,s=this._standardSize;this.size={height:s.height*e,width:s.width*e},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[],this._pointerEvents="none"}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}canvasClear(){this.container.actualOptions.clear&&this.draw(t=>{(0,o.IU)(t,this.size)})}clear(){let t=!1;for(const i of this.container.plugins.values())!t&&i.canvasClear&&(t=i.canvasClear());t||this.canvasClear()}clearDrawPlugin(t,i){this.draw(e=>{(0,o.l7)(e,t,i)})}destroy(){if(this.stop(),this._generated){const t=this.element;t?.remove(),this.element=void 0}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){const i=this._context;if(i)return t(i)}drawParticle(t,i){if(t.spawning||t.destroyed)return;const e=t.getRadius();if(e<=n.w2)return;const s=t.getFillColor(),a=t.getStrokeColor()??s;let[h,c]=this._getPluginParticleColors(t);if(h??=s,c??=a,!h&&!c)return;const l=this.container,d=t.options.zIndex,u=n.RV-t.zIndexFactor,p=u**d.opacityRate,f=t.bubble.opacity??t.opacity?.value??n.hv,_=t.strokeOpacity??f,g=f*p,v=_*p,m={},y={fill:(()=>{if(h)return(0,r.LC)(h,l.hdr,g)})()};y.stroke=c?(0,r.LC)(c,l.hdr,v):y.fill,this.draw(s=>{this._applyPreDrawUpdaters(s,t,e,g,y,m),(0,o.p0)({container:l,context:s,particle:t,delta:i,colorStyles:y,radius:e*u**d.sizeRate,opacity:g,transform:m})}),this._applyPostDrawUpdaters(t)}drawParticlePlugin(t,i,e){this.draw(s=>{(0,o.Wb)(s,t,i,e)})}drawParticles(t){const{particles:i,plugins:e}=this.container;this.clear(),i.update(t);for(const i of e.values())this.drawPlugin(i,t);this.draw(()=>{i.drawParticles(t)});for(const i of e.values())this.clearDrawPlugin(i,t)}drawPlugin(t,i){this.draw(e=>{(0,o.e_)(e,t,i)})}init(){this._safeMutationObserver(t=>{t.disconnect()}),this._mutationObserver=(0,a.tG)(t=>{for(const i of t)"attributes"===i.type&&"style"===i.attributeName&&this._repairStyle()}),this.resize(),this._initStyle(),this.initBackground(),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const{container:t}=this,i=t.actualOptions.background,e=this.element;if(!e)return;const s=e.style,n=(0,r.BN)(this._engine,i.color);s.backgroundColor=n?(0,r.xx)(n,t.hdr,i.opacity):"",s.backgroundImage=i.image||"",s.backgroundPosition=i.position||"",s.backgroundRepeat=i.repeat||"",s.backgroundSize=i.size||""}initPlugins(){this._resizePlugins=[];for(const t of this.container.plugins.values())t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const t of this.container.particles.updaters)t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove();const i=this.container;this._generated=n.eb in t.dataset?"true"===t.dataset[n.eb]:this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=(0,a.td)(this.element.style);const e=this._standardSize;e.height=t.offsetHeight,e.width=t.offsetWidth;const s=this.container.retina.pixelRatio,o=this.size;t.height=o.height=e.height*s,t.width=o.width=e.width*s;const r=(0,a.lV)("(color-gamut: p3)");this._context=this.element.getContext("2d",{alpha:!0,colorSpace:r?.matches&&i.hdr?"display-p3":"srgb",desynchronized:!0,willReadFrequently:!1}),this._safeMutationObserver(t=>{t.disconnect()}),i.retina.init(),this.initBackground(),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})})}paint(){let t=!1;for(const i of this.container.plugins.values()){if(t)break;t=i.canvasPaint?.()??!1}t||this.paintBase()}paintBase(t){this.draw(i=>{(0,o.Sn)(i,this.size,t)})}paintImage(t,i){this.draw(e=>{(0,o.Md)(e,this.size,t,i)})}resize(){if(!this.element)return!1;const t=this.container,i=t.canvas._standardSize,e={width:this.element.offsetWidth,height:this.element.offsetHeight},s=t.retina.pixelRatio,n={width:e.width*s,height:e.height*s};if(e.height===i.height&&e.width===i.width&&n.height===this.element.height&&n.width===this.element.width)return!1;const o={...i};i.height=e.height,i.width=e.width;const a=this.size;return this.element.width=a.width=n.width,this.element.height=a.height=n.height,this.container.started&&t.particles.setResizeFactor({width:i.width/o.width,height:i.height/o.height}),!0}setPointerEvents(t){this.element&&(this._pointerEvents=t,this._repairStyle())}stop(){this._safeMutationObserver(t=>{t.disconnect()}),this._mutationObserver=void 0,this.draw(t=>{(0,o.IU)(t,this.size)})}async windowResize(){if(!this.element||!this.resize())return;const t=this.container,i=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),i&&await t.refresh()}}var d=e(2680),u=e(594);function p(t,i,e,s,n){if(s){let s={passive:!0};(0,u.Lm)(n)?s.capture=n:void 0!==n&&(s=n),t.addEventListener(i,e,s)}else{const s=n;t.removeEventListener(i,e,s)}}class f{constructor(t){this.container=t,this._canPush=!0,this._doMouseTouchClick=t=>{const i=this.container,e=i.actualOptions;if(this._canPush){const t=i.interactivity.mouse,s=t.position;if(!s)return;t.clickPosition={...s},t.clickTime=Date.now();const n=e.interactivity.events.onClick;(0,a.wJ)(n.mode,t=>{this.container.handleClickMode(t)})}"touchend"===t.type&&setTimeout(()=>{this._mouseTouchFinish()},n.pH)},this._handleThemeChange=t=>{const i=t,e=this.container,s=e.options,n=s.defaultThemes,o=i.matches?n.dark:n.light,a=s.themes.find(t=>t.name===o);a?.default.auto&&e.loadTheme(o)},this._handleVisibilityChange=()=>{const t=this.container,i=t.actualOptions;this._mouseTouchFinish(),i.pauseOnBlur&&((0,a.T5)().hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const t=async()=>{const t=this.container.canvas;await t.windowResize()};this._resizeTimeout=setTimeout(()=>{t()},this.container.actualOptions.interactivity.events.resize.delay*n.Xu)},this._manageInteractivityListeners=(t,i)=>{const e=this._handlers,s=this.container,o=s.actualOptions,a=s.interactivity.element;if(!a)return;const r=a,h=s.canvas;h.setPointerEvents(r===h.element?"initial":"none"),(o.interactivity.events.onHover.enable||o.interactivity.events.onClick.enable)&&(p(a,n.Rb,e.mouseMove,i),p(a,n.s7,e.touchStart,i),p(a,n.DG,e.touchMove,i),o.interactivity.events.onClick.enable?(p(a,n.Bp,e.touchEndClick,i),p(a,n.vo,e.mouseUp,i),p(a,n.ms,e.mouseDown,i)):p(a,n.Bp,e.touchEnd,i),p(a,t,e.mouseLeave,i),p(a,n.G3,e.touchCancel,i))},this._manageListeners=t=>{const i=this._handlers,e=this.container,s=e.actualOptions.interactivity.detectsOn,o=e.canvas.element;let a=n.Z0;s===d.h.window?(e.interactivity.element=window,a=n.sf):s===d.h.parent&&o?e.interactivity.element=o.parentElement??o.parentNode:e.interactivity.element=o,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(a,t),p(document,n.nK,i.visibilityChange,t,!1)},this._manageMediaMatch=t=>{const i=this._handlers;this._matchMedia&&p(this._matchMedia,"change",i.themeChange,t)},this._manageResize=t=>{const i=this._handlers,e=this.container;if(!e.actualOptions.interactivity.events.resize.enable)return;if("undefined"==typeof ResizeObserver)return void p(globalThis,n.NF,i.resize,t);const s=e.canvas.element;this._resizeObserver&&!t?(s&&this._resizeObserver.unobserve(s),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&s&&(this._resizeObserver=new ResizeObserver(t=>{t.find(t=>t.target===s)&&this._handleWindowResize()}),this._resizeObserver.observe(s))},this._mouseDown=()=>{const{interactivity:t}=this.container,{mouse:i}=t;i.clicking=!0,i.downPosition=i.position},this._mouseTouchClick=t=>{const i=this.container,e=i.actualOptions,{mouse:s}=i.interactivity;s.inside=!0;let n=!1;const o=s.position;if(o&&e.interactivity.events.onClick.enable){for(const t of i.plugins.values())if(t.clickPositionValid&&(n=t.clickPositionValid(o),n))break;n||this._doMouseTouchClick(t),s.clicking=!1}},this._mouseTouchFinish=()=>{const{interactivity:t}=this.container,{mouse:i}=t;delete i.position,delete i.clickPosition,delete i.downPosition,t.status=n.Z0,i.inside=!1,i.clicking=!1},this._mouseTouchMove=t=>{const i=this.container,e=i.actualOptions,s=i.interactivity,o=i.canvas.element;if(!s.element)return;let a;if(s.mouse.inside=!0,t.type.startsWith("pointer")){this._canPush=!0;const i=t;if(s.element===window){if(o){const t=o.getBoundingClientRect();a={x:i.clientX-t.left,y:i.clientY-t.top}}}else if(e.interactivity.detectsOn===d.h.parent){const t=i.target,e=i.currentTarget;if(o){const s=t.getBoundingClientRect(),r=e.getBoundingClientRect(),h=o.getBoundingClientRect();a={x:i.offsetX+n.gd*s.left-(r.left+h.left),y:i.offsetY+n.gd*s.top-(r.top+h.top)}}else a={x:i.offsetX,y:i.offsetY}}else i.target===o&&(a={x:i.offsetX,y:i.offsetY})}else if(this._canPush="touchmove"!==t.type,o){const i=t,e=i.touches[i.touches.length-n.K3],s=o.getBoundingClientRect();if(!e)return;a={x:e.clientX-s.left,y:e.clientY-s.top}}const r=i.retina.pixelRatio;a&&(a.x*=r,a.y*=r),s.mouse.position=a,s.status=n.Rb},this._touchEnd=t=>{const i=t,e=Array.from(i.changedTouches);for(const t of e)this._touches.delete(t.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{const i=t,e=Array.from(i.changedTouches);for(const t of e)this._touches.delete(t.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{const i=t,e=Array.from(i.changedTouches);for(const t of e)this._touches.set(t.identifier,performance.now());this._mouseTouchMove(t)},this._matchMedia=(0,a.lV)("(prefers-color-scheme: dark)"),this._touches=new Map,this._handlers={mouseDown:()=>{this._mouseDown()},mouseLeave:()=>{this._mouseTouchFinish()},mouseMove:t=>{this._mouseTouchMove(t)},mouseUp:t=>{this._mouseTouchClick(t)},touchStart:t=>{this._touchStart(t)},touchMove:t=>{this._mouseTouchMove(t)},touchEnd:t=>{this._touchEnd(t)},touchCancel:t=>{this._touchEnd(t)},touchEndClick:t=>{this._touchEndClick(t)},visibilityChange:()=>{this._handleVisibilityChange()},themeChange:t=>{this._handleThemeChange(t)},oldThemeChange:t=>{this._handleThemeChange(t)},resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}var _=e(346),g=e(4552),v=e(9495);class m{constructor(t,i){this.container=i,this._engine=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(t){for(const i of this._externalInteractors)i.isEnabled()&&i.interact(t)}handleClickMode(t){for(const i of this._externalInteractors)i.handleClickMode?.(t)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const t of this._interactors){switch(t.type){case v.e.external:this._externalInteractors.push(t);break;case v.e.particles:this._particleInteractors.push(t)}t.init()}}particlesInteract(t,i){for(const e of this._externalInteractors)e.clear(t,i);for(const e of this._particleInteractors)e.isEnabled(t)&&e.interact(t,i)}reset(t){for(const i of this._externalInteractors)i.isEnabled()&&i.reset(t);for(const i of this._particleInteractors)i.isEnabled(t)&&i.reset(t)}}var y=e(7075),w=e(6723),b=e(5185),z=e(7933),P=e(7348),x=e(9948),k=e(7900);function C(t){if(!(0,a.hn)(t.outMode,t.checkModes))return;const i=t.radius*n.gd;t.coord>t.maxCoord-i?t.setCb(-t.radius):t.coord<i&&t.setCb(t.radius)}class M{constructor(t,i){this.container=i,this._calcPosition=(t,i,e,o=n.rq)=>{const a=t.plugins.values();for(const t of a){const s=t.particlePosition?.(i,this);if(s)return w.p.create(s.x,s.y,e)}const r=t.canvas.size,h=(0,s.Nx)({size:r,position:i}),c=w.p.create(h.x,h.y,e),l=this.getRadius(),d=this.options.move.outModes,u=i=>{C({outMode:i,checkModes:[P.Y.bounce],coord:c.x,maxCoord:t.canvas.size.width,setCb:t=>c.x+=t,radius:l})},p=i=>{C({outMode:i,checkModes:[P.Y.bounce],coord:c.y,maxCoord:t.canvas.size.height,setCb:t=>c.y+=t,radius:l})};u(d.left??d.default),u(d.right??d.default),p(d.top??d.default),p(d.bottom??d.default);let f=!0;for(const t of a)if(f=t.checkParticlePosition?.(this,c,o),!1===f)break;return f?c:this._calcPosition(t,void 0,e,o+n.Eo)},this._calculateVelocity=()=>{const t=(0,s.$m)(this.direction).copy(),i=this.options.move;if(i.direction===z.F.inside||i.direction===z.F.outside)return t;const e=(0,s.pu)((0,s.VG)(i.angle.value)),o=(0,s.pu)((0,s.VG)(i.angle.offset)),a={left:o-e*n.MX,right:o+e*n.MX};return i.straight||(t.angle+=(0,s.vE)((0,s.DT)(a.left,a.right))),i.random&&"number"==typeof i.speed&&(t.length*=(0,s.G0)()),t},this._getRollColor=t=>{if(!t||!this.roll||!this.backColor&&!this.roll.alter)return t;const i=this.roll.horizontal&&this.roll.vertical?n.gd*n.l:n.l,e=this.roll.horizontal?Math.PI*n.MX:n.dv;return Math.floor((this.roll.angle+e)/(Math.PI/i))%n.gd?this.backColor?this.backColor:this.roll.alter?(0,o.yx)(t,this.roll.alter.type,this.roll.alter.value):t:t},this._initPosition=t=>{const i=this.container,e=(0,s.VG)(this.options.zIndex.value);this.position=this._calcPosition(i,t,(0,s.qE)(e,n.X_,i.zLayers)),this.initialPosition=this.position.copy();const o=i.canvas.size;switch(this.moveCenter={...(0,a.E9)(this.options.move.center,o),radius:this.options.move.center.radius,mode:this.options.move.center.mode},this.direction=(0,s.JY)(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case z.F.inside:this.outType=x.x.inside;break;case z.F.outside:this.outType=x.x.outside}this.offset=w.M.origin},this._engine=t}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const i=this.container,e=this.pathGenerator,s=this.shape?i.shapeDrawers.get(this.shape):void 0;s?.particleDestroy?.(this);for(const e of i.plugins.values())e.particleDestroyed?.(this,t);for(const e of i.particles.updaters)e.particleDestroyed?.(this,t);e?.reset(this),this._engine.dispatchEvent(_.B.particleDestroyed,{container:this.container,data:{particle:this}})}draw(t){const i=this.container,e=i.canvas;for(const s of i.plugins.values())e.drawParticlePlugin(s,this,t);e.drawParticle(this,t)}getAngle(){return this.rotation+(this.pathRotation?this.velocity.angle:n.tA)}getFillColor(){return this._getRollColor(this.bubble.color??(0,r.O_)(this.color))}getMass(){return this.getRadius()**n.dm*Math.PI*n.MX}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??(0,r.O_)(this.strokeColor))}init(t,i,e,o){const r=this.container,h=this._engine;this.id=t,this.group=o,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=x.x.normal,this.ignoresResizeRatio=!0;const c=r.retina.pixelRatio,l=r.actualOptions,d=(0,k.y)(this._engine,r,l.particles),u=d.reduceDuplicates,p=d.effect.type,f=d.shape.type;this.effect=(0,a.TA)(p,this.id,u),this.shape=(0,a.TA)(f,this.id,u);const _=d.effect,g=d.shape;if(e){if(e.effect?.type){const t=e.effect.type,i=(0,a.TA)(t,this.id,u);i&&(this.effect=i,_.load(e.effect))}if(e.shape?.type){const t=e.shape.type,i=(0,a.TA)(t,this.id,u);i&&(this.shape=i,g.load(e.shape))}}if(this.effect===n.mR){const t=[...this.container.effectDrawers.keys()];this.effect=t[Math.floor((0,s.G0)()*t.length)]}if(this.shape===n.mR){const t=[...this.container.shapeDrawers.keys()];this.shape=t[Math.floor((0,s.G0)()*t.length)]}this.effectData=this.effect?function(t,i,e,s){const n=i.options[t];return(0,a.zw)({close:i.close,fill:i.fill},(0,a.TA)(n,e,s))}(this.effect,_,this.id,u):void 0,this.shapeData=this.shape?function(t,i,e,s){const n=i.options[t];return(0,a.zw)({close:i.close,fill:i.fill},(0,a.TA)(n,e,s))}(this.shape,g,this.id,u):void 0,d.load(e);const v=this.effectData;v&&d.load(v.particles);const m=this.shapeData;m&&d.load(m.particles);const y=new b.k(h,r);y.load(r.actualOptions.interactivity),y.load(d.interactivity),this.interactivity=y,this.effectFill=v?.fill??d.effect.fill,this.effectClose=v?.close??d.effect.close,this.shapeFill=m?.fill??d.shape.fill,this.shapeClose=m?.close??d.shape.close,this.options=d;const w=this.options.move.path;this.pathDelay=(0,s.VG)(w.delay.value)*n.Xu,w.generator&&(this.pathGenerator=this._engine.getPathGenerator(w.generator),this.pathGenerator&&r.addPath(w.generator,this.pathGenerator)&&this.pathGenerator.init(r)),r.retina.initParticle(this),this.size=(0,a.Xs)(this.options.size,c),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(i),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=n.WH-(0,s.VG)(this.options.move.decay);const z=r.particles;let P,C;z.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/r.zLayers,this.sides=24,this.effect&&(P=r.effectDrawers.get(this.effect),P||(P=this._engine.getEffectDrawer(this.effect),P&&r.effectDrawers.set(this.effect,P))),P?.loadEffect&&P.loadEffect(this),this.shape&&(C=r.shapeDrawers.get(this.shape),C||(C=this._engine.getShapeDrawer(this.shape),C&&r.shapeDrawers.set(this.shape,C))),C?.loadShape&&C.loadShape(this);const M=C?.getSidesCount;M&&(this.sides=M(this)),this.spawning=!1;for(const t of z.updaters)t.init(this);for(const t of z.movers)t.init(this);P?.particleInit?.(r,this),C?.particleInit?.(r,this);for(const t of r.plugins.values())t.particleCreated?.(this)}isInsideCanvas(){const t=this.getRadius(),i=this.container.canvas.size,e=this.position;return e.x>=-t&&e.y>=-t&&e.y<=i.height+t&&e.x<=i.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const t of this.container.particles.updaters)t.reset?.(this)}}class O{constructor(t,i){this.position=t,this.particle=i}}var T=e(555);class S{constructor(t,i){this.rectangle=t,this.capacity=i,this._subdivide=()=>{const{x:t,y:i}=this.rectangle.position,{width:e,height:s}=this.rectangle.size,{capacity:o}=this;for(let a=0;a<n.Pg;a++){const r=a%n.gd;this._subs.push(new S(new T.M_(t+e*n.MX*r,i+s*n.MX*(Math.round(a*n.MX)-r),e*n.MX,s*n.MX),o))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(t){return!!this.rectangle.contains(t.position)&&(this._points.length<this.capacity?(this._points.push(t),!0):(this._divided||this._subdivide(),this._subs.some(i=>i.insert(t))))}query(t,i){const e=[];if(!t.intersects(this.rectangle))return[];for(const n of this._points)!t.contains(n.position)&&(0,s.Yf)(t.position,n.position)>n.particle.getRadius()&&(!i||i(n.particle))||e.push(n.particle);if(this._divided)for(const s of this._subs)e.push(...s.query(t,i));return e}queryCircle(t,i,e){return this.query(new T.jl(t.x,t.y,i),e)}queryRectangle(t,i,e){return this.query(new T.M_(t.x,t.y,i.width,i.height),e)}}var D=e(1688);const R=t=>{const{height:i,width:e}=t;return new T.M_(n.un*e,n.un*i,n.Rh*e,n.Rh*i)};class I{constructor(t,i){this._addToPool=(...t)=>{this._pool.push(...t)},this._applyDensity=(t,i,e,s)=>{const o=t.number;if(!o.density.enable)return void(void 0===e?this._limit=o.limit.value:(s?.number.limit.value??o.limit.value)&&this._groupLimits.set(e,s?.number.limit.value??o.limit.value));const a=this._initDensityFactor(o.density),r=o.value,h=o.limit.value>n.ou?o.limit.value:r,c=Math.min(r,h)*a+i,l=Math.min(this.count,this.filter(t=>t.group===e).length);void 0===e?this._limit=o.limit.value*a:this._groupLimits.set(e,o.limit.value*a),l<c?this.push(Math.abs(c-l),void 0,t,e):l>c&&this.removeQuantity(l-c,e)},this._initDensityFactor=t=>{const i=this._container;if(!i.canvas.element||!t.enable)return n.lA;const e=i.canvas.element,s=i.retina.pixelRatio;return e.width*e.height/(t.height*t.width*s**n.dm)},this._pushParticle=(t,i,e,s)=>{try{const n=this._pool.pop()??new M(this._engine,this._container);n.init(this._nextId,t,i,e);let o=!0;if(s&&(o=s(n)),!o)return;return this._array.push(n),this._zArray.push(n),this._nextId++,this._engine.dispatchEvent(_.B.particleAdded,{container:this._container,data:{particle:n}}),n}catch(t){(0,D.t)().warning(`error adding particle: ${t}`)}},this._removeParticle=(t,i,e)=>{const s=this._array[t];if(!s)return!1;if(s.group!==i)return!1;const o=this._zArray.indexOf(s);return this._array.splice(t,n.LD),this._zArray.splice(o,n.LD),s.destroy(e),this._engine.dispatchEvent(_.B.particleRemoved,{container:this._container,data:{particle:s}}),this._addToPool(s),!0},this._engine=t,this._container=i,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new m(t,i),this._pluginsInitialized=!1;const e=i.canvas.size;this.quadTree=new S(R(e),n.Kw),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const t=this._container;t.actualOptions.manualParticles.forEach(i=>this.addParticle(i.position?(0,a.E9)(i.position,t.canvas.size):void 0,i.options))}addParticle(t,i,e,s){const o=this._container.actualOptions.particles.number.limit.mode,a=void 0===e?this._limit:this._groupLimits.get(e)??this._limit,r=this.count;if(a>n.ou)switch(o){case y.d.delete:{const t=r+n.nq-a;t>n.wM&&this.removeQuantity(t);break}case y.d.wait:if(r>=a)return}return this._pushParticle(t,i,e,s)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}drawParticles(t){for(const i of this._zArray)i.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}handleClickMode(t){this._interactionManager.handleClickMode(t)}async init(){const t=this._container,i=t.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let e=!1;for(const i of t.plugins.values())if(e=i.particlesInitialization?.()??e,e)break;if(this.addManualParticles(),!e){const t=i.particles,e=t.groups;for(const i in e){const s=e[i];if(s)for(let e=this.count,n=0;n<s.number.value&&e<t.number.value;e++,n++)this.addParticle(void 0,s,i)}for(let i=this.count;i<t.number.value;i++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;const t=this._container;this.movers=await this._engine.getMovers(t,!0),this.updaters=await this._engine.getUpdaters(t,!0),await this._interactionManager.init();for(const i of t.pathGenerators.values())i.init(t)}push(t,i,e,s){for(let n=0;n<t;n++)this.addParticle(i?.position,e,s)}async redraw(){this.clear(),await this.init(),this._container.canvas.drawParticles({value:0,factor:0})}remove(t,i,e){this.removeAt(this._array.indexOf(t),void 0,i,e)}removeAt(t,i=n.xd,e,s){if(t<n.z9||t>this.count)return;let o=0;for(let n=t;o<i&&n<this.count;n++)this._removeParticle(n,e,s)&&(n--,o++)}removeQuantity(t,i){this.removeAt(n.z9,t,i)}setDensity(){const t=this._container.actualOptions,i=t.particles.groups,e=t.manualParticles.length;for(const t in i){const s=i[t];if(!s)continue;const n=(0,k.y)(this._engine,this._container,s);this._applyDensity(n,e,t)}this._applyDensity(t.particles,e)}setLastZIndex(t){this._lastZIndex=t,this._needsSort=this._needsSort||this._lastZIndex<t}setResizeFactor(t){this._resizeFactor=t}update(t){const i=this._container,e=new Set;this.quadTree=new S(R(i.canvas.size),n.Kw);for(const t of i.pathGenerators.values())t.update();for(const e of i.plugins.values())e.update?.(t);const s=this._resizeFactor;for(const i of this._array){s&&!i.ignoresResizeRatio&&(i.position.x*=s.width,i.position.y*=s.height,i.initialPosition.x*=s.width,i.initialPosition.y*=s.height),i.ignoresResizeRatio=!1,this._interactionManager.reset(i);for(const e of this._container.plugins.values()){if(i.destroyed)break;e.particleUpdate?.(i,t)}for(const e of this.movers)e.isEnabled(i)&&e.move(i,t);i.destroyed?e.add(i):this.quadTree.insert(new O(i.getPosition(),i))}if(e.size){const t=t=>!e.has(t);this._array=this.filter(t),this._zArray=this._zArray.filter(t);for(const t of e)this._engine.dispatchEvent(_.B.particleRemoved,{container:this._container,data:{particle:t}});this._addToPool(...e)}this._interactionManager.externalInteract(t);for(const i of this._array){for(const e of this.updaters)e.update(i,t);i.destroyed||i.spawning||this._interactionManager.particlesInteract(i,t)}if(delete this._resizeFactor,this._needsSort){const t=this._zArray;t.sort((t,i)=>i.position.z-t.position.z||t.id-i.id);const i=t[t.length-n.K3];if(!i)return;this._lastZIndex=i.position.z,this._needsSort=!1}}}class E{constructor(t){this.container=t,this.pixelRatio=n.$x,this.reduceFactor=n.Zp}init(){const t=this.container,i=t.actualOptions;this.pixelRatio=i.detectRetina?devicePixelRatio:n.$x,this.reduceFactor=n.Zp;const e=this.pixelRatio,o=t.canvas;if(o.element){const t=o.element;o.size.width=t.offsetWidth*e,o.size.height=t.offsetHeight*e}const a=i.particles,r=a.move;this.maxSpeed=(0,s.VG)(r.gravity.maxSpeed)*e,this.sizeAnimationSpeed=(0,s.VG)(a.size.animation.speed)*e}initParticle(t){const i=t.options,e=this.pixelRatio,n=i.move,o=n.distance,a=t.retina;a.moveDrift=(0,s.VG)(n.drift)*e,a.moveSpeed=(0,s.VG)(n.speed)*e,a.sizeAnimationSpeed=(0,s.VG)(i.size.animation.speed)*e;const r=a.maxDistance;r.horizontal=void 0!==o.horizontal?o.horizontal*e:void 0,r.vertical=void 0!==o.vertical?o.vertical*e:void 0,a.maxSpeed=(0,s.VG)(n.gravity.maxSpeed)*e}}function F(t){return!t.destroyed}function L(t,i,...e){const s=new g.J(t,i);return(0,k.Z)(s,...e),s}class A{constructor(t,i,e){this._intersectionManager=t=>{if(F(this)&&this.actualOptions.pauseOnOutsideViewport)for(const i of t)i.target===this.interactivity.element&&(i.isIntersecting?this.play():this.pause())},this._nextFrame=t=>{try{if(!this._smooth&&void 0!==this._lastFrameTime&&t<this._lastFrameTime+n.Xu/this.fpsLimit)return void this.draw(!1);this._lastFrameTime??=t;const i=function(t,i=n.z$,e=!1){return{value:t,factor:e?n.z$/i:n.z$*t/n.Xu}}(t-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(i.value),this._lastFrameTime=t,i.value>n.Xu)return void this.draw(!1);if(this.canvas.drawParticles(i),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(t){(0,D.t)().error("error in animation loop",t)}},this._engine=t,this.id=Symbol(i),this.fpsLimit=120,this.hdr=!1,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._clickHandlers=new Map,this._sourceOptions=e,this._initialSourceOptions=e,this.retina=new E(this),this.canvas=new l(this,this._engine),this.particles=new I(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=L(this._engine,this),this.actualOptions=L(this._engine,this),this._eventListeners=new f(this),this._intersectionObserver=(0,a.BR)(t=>{this._intersectionManager(t)}),this._engine.dispatchEvent(_.B.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&F(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!F(this))return;const i=this.interactivity.element;if(!i)return;const e=(i,e,s)=>{if(!F(this))return;const n=this.retina.pixelRatio,o={x:e.x*n,y:e.y*n},a=this.particles.quadTree.queryCircle(o,s*n);t(i,a)};let s=!1,o=!1;this._clickHandlers.set("click",t=>{if(!F(this))return;const i=t,s={x:i.offsetX||i.clientX,y:i.offsetY||i.clientY};e(t,s,n.FS)}),this._clickHandlers.set("touchstart",()=>{F(this)&&(s=!0,o=!1)}),this._clickHandlers.set("touchmove",()=>{F(this)&&(o=!0)}),this._clickHandlers.set("touchend",t=>{if(F(this)){if(s&&!o){const i=t,s=i.touches[i.touches.length-n.KZ];if(!s)return;const o=this.canvas.element,a=o?o.getBoundingClientRect():void 0,r={x:s.clientX-(a?a.left:n.TL),y:s.clientY-(a?a.top:n.TL)};e(t,r,Math.max(s.radiusX,s.radiusY))}s=!1,o=!1}}),this._clickHandlers.set("touchcancel",()=>{F(this)&&(s=!1,o=!1)});for(const[t,e]of this._clickHandlers)i.addEventListener(t,e)}addLifeTime(t){this._lifeTime+=t}addPath(t,i,e=!1){return!(!F(this)||!e&&this.pathGenerators.has(t))&&(this.pathGenerators.set(t,i),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){if(F(this)){for(const[t,i]of this._clickHandlers)this.interactivity.element?.removeEventListener(t,i);this._clickHandlers.clear()}}destroy(t=!0){if(F(this)){this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy();for(const t of this.effectDrawers.values())t.destroy?.(this);for(const t of this.shapeDrawers.values())t.destroy?.(this);for(const t of this.effectDrawers.keys())this.effectDrawers.delete(t);for(const t of this.shapeDrawers.keys())this.shapeDrawers.delete(t);if(this._engine.clearPlugins(this),this.destroyed=!0,t){const t=this._engine.items,i=t.findIndex(t=>t===this);i>=n.vF&&t.splice(i,n.JC)}this._engine.dispatchEvent(_.B.containerDestroyed,{container:this})}}draw(t){if(!F(this))return;let i=t;const e=t=>{i&&(this._lastFrameTime=void 0,i=!1),this._nextFrame(t)};this._drawAnimationFrame=(0,s.i0)(t=>{e(t)})}async export(t,i={}){for(const e of this.plugins.values()){if(!e.export)continue;const s=await e.export(t,i);if(s.supported)return s.blob}(0,D.t)().error(`Export plugin with type ${t} not found`)}handleClickMode(t){if(F(this)){this.particles.handleClickMode(t);for(const i of this.plugins.values())i.handleClickMode?.(t)}}async init(){if(!F(this))return;const t=this._engine.getSupportedEffects();for(const i of t){const t=this._engine.getEffectDrawer(i);t&&this.effectDrawers.set(i,t)}const i=this._engine.getSupportedShapes();for(const t of i){const i=this._engine.getShapeDrawer(t);i&&this.shapeDrawers.set(t,i)}await this.particles.initPlugins(),this._options=L(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=L(this._engine,this,this._options);const e=await this._engine.getAvailablePlugins(this);for(const[t,i]of e)this.plugins.set(t,i);this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{delay:o,duration:a,fpsLimit:r,hdr:h,smooth:c,zLayers:l}=this.actualOptions;this.hdr=h,this.zLayers=l,this._duration=(0,s.VG)(a)*n.Xu,this._delay=(0,s.VG)(o)*n.Xu,this._lifeTime=0,this.fpsLimit=r>n.DN?r:n.i8,this._smooth=c;for(const t of this.effectDrawers.values())await(t.init?.(this));for(const t of this.shapeDrawers.values())await(t.init?.(this));for(const t of this.plugins.values())await(t.init?.());this._engine.dispatchEvent(_.B.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity();for(const t of this.plugins.values())t.particlesSetup?.();this._engine.dispatchEvent(_.B.particlesSetup,{container:this})}async loadTheme(t){F(this)&&(this._currentTheme=t,await this.refresh())}pause(){if(F(this)&&(void 0!==this._drawAnimationFrame&&((0,s.px)(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const t of this.plugins.values())t.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(_.B.containerPaused,{container:this})}}play(t){if(!F(this))return;const i=this._paused||t;if(!this._firstStart||this.actualOptions.autoPlay){if(this._paused&&(this._paused=!1),i)for(const t of this.plugins.values())t.play&&t.play();this._engine.dispatchEvent(_.B.containerPlay,{container:this}),this.draw(i??!1)}else this._firstStart=!1}async refresh(){if(F(this))return this.stop(),this.start()}async reset(t){if(F(this))return this._initialSourceOptions=t,this._sourceOptions=t,this._options=L(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=L(this._engine,this,this._options),this.refresh()}async start(){F(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{const i=async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const t of this.plugins.values())await(t.start?.());this._engine.dispatchEvent(_.B.containerStarted,{container:this}),this.play(),t()};this._delayTimeout=setTimeout(()=>{i()},this._delay)}))}stop(){if(F(this)&&this.started){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const t of this.plugins.values())t.stop?.();for(const t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent(_.B.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth!==t&&(this._responsiveMaxWidth=t,!0)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/453.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 453.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[453],{2453(e,r,s){function a(e){e.checkVersion("4.0.0-alpha.2"),e.register(async e=>{const{CircleDrawer:r}=await s.e(819).then(s.bind(s,5819));e.addShape(new r)})}s.d(r,{loadCircleShape:()=>a})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/455.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 455.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[455],{2455(e,r,a){function s(e){e.checkVersion("4.0.0-alpha.2"),e.register(async e=>{const{HexColorManager:r}=await a.e(264).then(a.bind(a,9264));e.addColorManager(new r)})}a.d(r,{loadHexColorPlugin:()=>s})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/459.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 459.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[459],{5459(e,t,r){function s(e){e.checkVersion("4.0.0-alpha.2"),e.register(e=>{e.addParticleUpdater("size",async()=>{const{SizeUpdater:e}=await r.e(481).then(r.bind(r,481));return new e})})}r.d(t,{loadSizeUpdater:()=>s})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/477.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 477.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[477],{1477(e,s,n){function i(e){e.checkVersion("4.0.0-alpha.2"),e.register(async s=>{const{SoundsPlugin:i}=await n.e(488).then(n.bind(n,7488));s.addPlugin(new i(e))})}n.d(s,{loadSoundsPlugin:()=>i})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/481.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 481.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[481],{481(e,i,s){s.d(i,{SizeUpdater:()=>a});var t=s(4929);class a{init(e){const i=e.container,s=e.options.size.animation;s.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??i.retina.sizeAnimationSpeed)/t.a56*i.retina.reduceFactor,s.sync||(e.size.velocity*=(0,t.G0i)()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??0)<=0||(e.size.maxLoops??0)>0&&(e.size.loops??0)<(e.size.maxLoops??0))}reset(e){e.size.loops=0}update(e,i){this.isEnabled(e)&&(0,t.UC0)(e,e.size,!0,e.options.size.animation.destroy,i)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/488.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 488.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[488],{7488(t,e,s){s.d(e,{SoundsPlugin:()=>b});var i,n,o=s(4929);class a{constructor(){this.loop=!1,this.source=""}load(t){(0,o.kZJ)(t)||((0,o.Gvm)(t)?(void 0!==t.loop&&(this.loop=t.loop),void 0!==t.source&&(this.source=t.source)):this.source=t)}}class c{constructor(){this.duration=500,this.value=[]}load(t){(0,o.kZJ)(t)||(void 0!==t.duration&&(this.duration=t.duration),void 0!==t.value&&(this.value=t.value))}}class u{constructor(){this.loop=!1,this.melodies=[],this.notes=[]}load(t){(0,o.kZJ)(t)||(void 0!==t.loop&&(this.loop=t.loop),void 0!==t.melodies&&(this.melodies=t.melodies.map(t=>{const e=new u;return e.load(t),e})),void 0!==t.notes&&(this.notes=t.notes.map(t=>{const e=new c;return e.load(t),e})))}}class l{constructor(){this.event=[],this.notes=[]}load(t){if(!(0,o.kZJ)(t)&&(void 0!==t.event&&(this.event=t.event),void 0!==t.audio&&((0,o.cyL)(t.audio)?this.audio=t.audio.map(t=>{const e=new a;return e.load(t),e}):(this.audio=new a,this.audio.load(t.audio))),void 0!==t.notes&&(this.notes=t.notes.map(t=>{const e=new c;return e.load(t),e})),void 0!==t.melodies&&(this.melodies=t.melodies.map(t=>{const e=new u;return e.load(t),e})),t.filter))if((0,o.KgX)(t.filter)){const e=globalThis[t.filter];(0,o.Tnt)(e)&&(this.filter=e)}else this.filter=t.filter}}class r{constructor(){this.width=24,this.height=24,this.style=""}load(t){(0,o.kZJ)(t)||(void 0!==t.path&&(this.path=t.path),void 0!==t.svg&&(this.svg=t.svg),void 0!==t.width&&(this.width=t.width),void 0!==t.height&&(this.height=t.height))}}class h{constructor(){this.mute=new r,this.unmute=new r,this.volumeDown=new r,this.volumeUp=new r,this.enable=!1,this.mute.svg='<?xml version="1.0"?>\n<svg baseProfile="tiny" height="24px" version="1.2" viewBox="0 0 24 24" width="24px"\n xml:space="preserve" xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="Layer_1">\n <path fill="#fff" d="M19.707,5.293c-0.391-0.391-1.023-0.391-1.414,0l-1.551,1.551c-0.345-0.688-0.987-1.02-1.604-1.02c-0.449,0-0.905,0.152-1.356,0.453l-2.672,1.781C10.357,8.561,8.904,9,8,9c-1.654,0-3,1.346-3,3v2c0,1.237,0.754,2.302,1.826,2.76l-1.533,1.533c-0.391,0.391-0.391,1.023,0,1.414C5.488,19.902,5.744,20,6,20s0.512-0.098,0.707-0.293l2.527-2.527c0.697,0.174,1.416,0.455,1.875,0.762l2.672,1.781c0.451,0.301,0.907,0.453,1.356,0.453C16.035,20.176,17,19.495,17,18V9.414l2.707-2.707C20.098,6.316,20.098,5.684,19.707,5.293z M14.891,7.941c0.038-0.025,0.073-0.046,0.104-0.062C14.998,7.914,15,7.954,15,8v1.293l-2,2V9.202L14.891,7.941z M7,12c0-0.552,0.448-1,1-1c1.211,0,2.907-0.495,4-1.146v2.439l-2.83,2.83C8.757,15.046,8.356,15,8,15c-0.552,0-1-0.448-1-1V12z M10.301,15.406L12,13.707v2.439C11.519,15.859,10.925,15.604,10.301,15.406z M14.994,18.12c-0.03-0.016-0.065-0.036-0.104-0.062L13,16.798v-4.091l2-2V18C15,18.046,14.998,18.086,14.994,18.12z"/>\n </g>\n</svg>',this.unmute.svg='<?xml version="1.0"?>\n<svg baseProfile="tiny" height="24px" version="1.2" viewBox="0 0 24 24" width="24px"\n xml:space="preserve" xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="Layer_1">\n <path fill="#fff" d="M17.138,5.824c-0.449,0-0.905,0.152-1.356,0.453l-2.672,1.781C12.357,8.561,10.904,9,10,9c-1.654,0-3,1.346-3,3v2c0,1.654,1.346,3,3,3c0.904,0,2.357,0.439,3.109,0.941l2.672,1.781c0.451,0.301,0.907,0.453,1.356,0.453C18.035,20.176,19,19.495,19,18V8C19,6.505,18.035,5.824,17.138,5.824z M14,16.146C12.907,15.495,11.211,15,10,15c-0.552,0-1-0.448-1-1v-2c0-0.552,0.448-1,1-1c1.211,0,2.907-0.495,4-1.146V16.146z M17,18c0,0.046-0.002,0.086-0.006,0.12c-0.03-0.016-0.065-0.036-0.104-0.062L15,16.798V9.202l1.891-1.261c0.038-0.025,0.073-0.046,0.104-0.062C16.998,7.914,17,7.954,17,8V18z"/>\n </g>\n</svg>',this.volumeDown.svg='<?xml version="1.0"?>\n<svg baseProfile="tiny" height="24px" version="1.2" viewBox="0 0 24 24" width="24px"\n xml:space="preserve" xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="Layer_1">\n <path fill="#fff" d="M15.138,5.824c-0.449,0-0.905,0.152-1.356,0.453l-2.672,1.781C10.357,8.561,8.904,9,8,9c-1.654,0-3,1.346-3,3v2c0,1.654,1.346,3,3,3c0.904,0,2.357,0.439,3.109,0.941l2.672,1.781c0.451,0.301,0.907,0.453,1.356,0.453C16.035,20.176,17,19.495,17,18V8C17,6.505,16.035,5.824,15.138,5.824z M8,15c-0.552,0-1-0.448-1-1v-2c0-0.552,0.448-1,1-1c1.211,0,2.907-0.495,4-1.146v6.293C10.907,15.495,9.211,15,8,15z M15,18c0,0.046-0.002,0.086-0.006,0.12c-0.03-0.016-0.065-0.036-0.104-0.062L13,16.798V9.202l1.891-1.261c0.038-0.025,0.073-0.046,0.104-0.062C14.998,7.914,15,7.954,15,8V18z"/>\n <path fill="#fff" d="M18.292,10.294c-0.39,0.391-0.39,1.023,0.002,1.414c0.345,0.345,0.535,0.803,0.535,1.291c0,0.489-0.19,0.948-0.536,1.294c-0.391,0.39-0.391,1.023,0,1.414C18.488,15.902,18.744,16,19,16s0.512-0.098,0.707-0.293c0.724-0.723,1.122-1.685,1.122-2.708s-0.398-1.984-1.123-2.707C19.317,9.903,18.683,9.901,18.292,10.294z"/>\n </g>\n</svg>',this.volumeUp.svg='<?xml version="1.0"?>\n<svg baseProfile="tiny" height="24px" version="1.2" viewBox="0 0 24 24" width="24px"\n xml:space="preserve" xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink">\n <g id="Layer_1">\n <path fill="#fff" d="M16.706,10.292c-0.389-0.389-1.023-0.391-1.414,0.002c-0.39,0.391-0.39,1.023,0.002,1.414c0.345,0.345,0.535,0.803,0.535,1.291c0,0.489-0.19,0.948-0.536,1.294c-0.391,0.39-0.391,1.023,0,1.414C15.488,15.902,15.744,16,16,16s0.512-0.098,0.707-0.293c0.724-0.723,1.122-1.685,1.122-2.708S17.431,11.015,16.706,10.292z"/>\n <path fill="#fff" d="M18.706,8.292c-0.391-0.389-1.023-0.39-1.414,0.002c-0.39,0.391-0.39,1.024,0.002,1.414c0.879,0.877,1.363,2.044,1.364,3.287c0.001,1.246-0.484,2.417-1.365,3.298c-0.391,0.391-0.391,1.023,0,1.414C17.488,17.902,17.744,18,18,18s0.512-0.098,0.707-0.293c1.259-1.259,1.952-2.933,1.951-4.713C20.657,11.217,19.964,9.547,18.706,8.292z"/>\n <path fill="#fff" d="M20.706,6.292c-0.391-0.389-1.023-0.39-1.414,0.002c-0.39,0.391-0.39,1.024,0.002,1.414c1.412,1.409,2.191,3.285,2.192,5.284c0.002,2.002-0.777,3.885-2.193,5.301c-0.391,0.391-0.391,1.023,0,1.414C19.488,19.902,19.744,20,20,20s0.512-0.098,0.707-0.293c1.794-1.794,2.781-4.18,2.779-6.717C23.485,10.457,22.497,8.078,20.706,6.292z"/>\n <path fill="#fff" d="M12.138,5.824c-0.449,0-0.905,0.152-1.356,0.453L8.109,8.059C7.357,8.561,5.904,9,5,9c-1.654,0-3,1.346-3,3v2c0,1.654,1.346,3,3,3c0.904,0,2.357,0.439,3.109,0.941l2.672,1.781c0.451,0.301,0.907,0.453,1.356,0.453C13.035,20.176,14,19.495,14,18V8C14,6.505,13.035,5.824,12.138,5.824z M5,15c-0.552,0-1-0.448-1-1v-2c0-0.552,0.448-1,1-1c1.211,0,2.907-0.495,4-1.146v6.293C7.907,15.495,6.211,15,5,15z M12,18c0,0.046-0.002,0.086-0.006,0.12c-0.03-0.016-0.065-0.036-0.104-0.062L10,16.798V9.202l1.891-1.261c0.038-0.025,0.073-0.046,0.104-0.062C11.998,7.914,12,7.954,12,8V18z"/>\n </g>\n</svg>'}load(t){(0,o.kZJ)(t)||(void 0!==t.enable&&(this.enable=t.enable),this.mute.load(t.mute),this.unmute.load(t.unmute),this.volumeDown.load(t.volumeDown),this.volumeUp.load(t.volumeUp))}}class d{constructor(){this.value=100,this.max=100,this.min=0,this.step=10}load(t){(0,o.kZJ)(t)||((0,o.Gvm)(t)?(void 0!==t.max&&(this.max=t.max),void 0!==t.min&&(this.min=t.min),void 0!==t.step&&(this.step=t.step),void 0!==t.value&&(this.value=t.value)):this.value=t)}}class m{constructor(){this.autoPlay=!0,this.enable=!1,this.events=[],this.icons=new h,this.volume=new d}load(t){(0,o.kZJ)(t)||(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.events&&(this.events=t.events.map(t=>{const e=new l;return e.load(t),e})),this.icons.load(t.icons),void 0!==t.volume&&this.volume.load(t.volume))}}!function(t){t.mute="soundsMuted",t.unmute="soundsUnmuted"}(i||(i={})),function(t){t.Block="block",t.None="none"}(n||(n={}));const v=new Map;function p(t){const e=/(([A-G]b?)(\d))|pause/i.exec(t);if(!e?.length)return;const s=e[2]??e[0],i=v.get(s);return i?i[parseInt(e[3]??"0")]:void 0}v.set("C",[16.35,32.7,65.41,130.81,261.63,523.25,1046.5,2093,4186.01]),v.set("Db",[17.32,34.65,69.3,138.59,277.18,554.37,1108.73,2217.46,4434.92]),v.set("D",[18.35,36.71,73.42,146.83,293.66,587.33,1174.66,2349.32,4698.63]),v.set("Eb",[19.45,38.89,77.78,155.56,311.13,622.25,1244.51,2489.02,4978.03]),v.set("E",[20.6,41.2,82.41,164.81,329.63,659.25,1318.51,2637.02,5274.04]),v.set("F",[21.83,43.65,87.31,174.61,349.23,698.46,1396.91,2793.83,5587.65]),v.set("Gb",[23.12,46.25,92.5,185,369.99,739.99,1479.98,2959.96,5919.91]),v.set("G",[24.5,49,98,196,392,783.99,1567.98,3135.96,6271.93]),v.set("Ab",[25.96,51.91,103.83,207.65,415.3,830.61,1661.22,3322.44,6644.88]),v.set("A",[27.5,55,110,220,440,880,1760,3520,7040]),v.set("Bb",[29.14,58.27,116.54,233.08,466.16,932.33,1864.66,3729.31,7458.62]),v.set("B",[30.87,61.74,123.47,246.94,493.88,987.77,1975.53,3951.07,7902.13]),v.set("pause",[0]);let f=!0;const _=()=>f,g=()=>{f=!1};function w(t){const e=(0,o.T5G)().createElement("img"),{clickCb:s,container:i,display:n,iconOptions:a,margin:c,options:u,pos:l,rightOffsets:r}=t,{width:h,path:d,style:m,svg:v}=a;!function(t,e,s,i,n,o,a,c){t.style.userSelect="none",t.style.position="absolute",t.style.top=`${(e+a).toString()}px`,t.style.left=`${(s-a-o).toString()}px`,t.style.display=i,t.style.zIndex=(n+1).toString(),t.style.cssText+=c}(e,l.top+c,l.right-(c*(r.length+1)+h+r.reduce((t,e)=>t+e,0)),n,u.fullScreen.zIndex+1,h,c,m),e.src=d??(v?`data:image/svg+xml;base64,${btoa(v)}`:"");return(i.canvas.element?.parentNode??(0,o.T5G)().body).append(e),e.addEventListener("click",()=>{s()}),e}function y(t){t&&t.remove()}class x{constructor(t,e){this._addBuffer=t=>{const e=t.createBufferSource();return this._audioSources.push(e),e},this._addOscillator=t=>{const e=t.createOscillator();return this._audioSources.push(e),e},this._initEvents=()=>{const t=this._container,e=t.actualOptions.sounds;if(e?.enable&&t.canvas.element)for(const t of e.events){const e=s=>{(async()=>{const i=t.filter&&!t.filter(s);if(this._container!==s.container)return;if(this._container.muted||this._container.destroyed)return void(0,o.wJ2)(t.event,t=>{this._engine.removeEventListener(t,e)});if(i)return;if(t.audio){const e=(0,o.TA3)(t.audio);if(!e)return;this._playBuffer(e)}else if(t.melodies){const e=(0,o.Vh1)(t.melodies);if(!e)return;e.melodies.length?await Promise.allSettled(e.melodies.map(t=>this._playNote(t.notes,0,e.loop))):await this._playNote(e.notes,0,e.loop)}else if(t.notes){const e=(0,o.Vh1)(t.notes);if(!e)return;await this._playNote([e],0,!1)}})()};(0,o.wJ2)(t.event,t=>{this._engine.addEventListener(t,e)})}},this._mute=async()=>{const t=this._container,e=this._getAudioContext();for(const t of this._audioSources)this._removeAudioSource(t);this._gain&&this._gain.disconnect(),await e.close(),t.audioContext=void 0,this._engine.dispatchEvent(i.mute,{container:this._container})},this._playBuffer=t=>{const e=this._audioMap.get(t.source);if(!e)return;const s=this._container.audioContext;if(!s)return;const i=this._addBuffer(s);i.loop=t.loop,i.buffer=e,i.connect(this._gain??s.destination),i.start()},this._playFrequency=async(t,e)=>{if(!this._gain||this._container.muted)return;const s=this._getAudioContext(),i=this._addOscillator(s);return i.connect(this._gain),i.type="sine",i.frequency.value=t,i.start(),new Promise(t=>{setTimeout(()=>{this._removeAudioSource(i),t()},e)})},this._playMuteSound=()=>{if(this._container.muted)return;const t=this._getAudioContext(),e=t.createGain();e.connect(t.destination),e.gain.value=0;const s=t.createOscillator();s.connect(e),s.type="sine",s.frequency.value=1,s.start(),setTimeout(()=>{s.stop(),s.disconnect(),e.disconnect()})},this._playNote=async(t,e,s)=>{if(this._container.muted)return;const i=t[e];if(!i)return;const n=i.value,a=(0,o.wJ2)(n,async(s,i)=>this._playNoteValue(t,e,i));await((0,o.cyL)(a)?Promise.allSettled(a):a);let c=e+1;s&&c>=t.length&&(c%=t.length),await this._playNote(t,c,s)},this._playNoteValue=async(t,e,s)=>{const i=t[e];if(!i)return;const n=(0,o.TA3)(i.value,s,!0);if(n)try{const t=p(n);if(!(0,o.EtT)(t))return;await this._playFrequency(t,i.duration)}catch(t){(0,o.tZQ)().error(t)}},this._removeAudioSource=t=>{t.stop(),t.disconnect();this._audioSources.splice(this._audioSources.indexOf(t),1)},this._unmute=()=>{const t=this._container.actualOptions.sounds;if(!t)return;const e=this._getAudioContext(),s=e.createGain();s.connect(e.destination),s.gain.value=t.volume.value/o.a56,this._gain=s,this._initEvents(),this._engine.dispatchEvent(i.unmute,{container:this._container})},this._updateMuteIcons=()=>{const t=this._container,e=t.actualOptions.sounds;if(!e?.enable||!e.icons.enable)return;const s=this._muteImg,i=this._unmuteImg;s&&(s.style.display=t.muted?"block":"none"),i&&(i.style.display=t.muted?"none":"block")},this._updateMuteStatus=async()=>{const t=this._container,e=this._getAudioContext();t.muted?(await e.suspend(),await this._mute()):(await e.resume(),this._unmute(),this._playMuteSound())},this._updateVolume=async()=>{const t=this._container,e=t.actualOptions.sounds;if(!e?.enable)return;(0,o.qE8)(this._volume,e.volume.min,e.volume.max);let s=!1;this._volume<=0&&!t.muted?(this._volume=0,t.muted=!0,s=!0):this._volume>0&&t.muted&&(t.muted=!1,s=!0),s&&(this._updateMuteIcons(),await this._updateMuteStatus()),this._gain?.gain&&(this._gain.gain.value=this._volume/o.a56)},this._container=t,this._engine=e,this._volume=0,this._audioSources=[],this._audioMap=new Map}async init(){const t=this._container.actualOptions.sounds;if(!t?.enable)return;if(t.autoPlay&&_()){const t=()=>{removeEventListener(o.ms7,t),removeEventListener(o.s75,t),g(),this.unmute()},e={capture:!0,once:!0};addEventListener(o.ms7,t,e),addEventListener(o.s75,t,e)}this._volume=t.volume.value;const e=t.events;this._audioMap=new Map;for(const t of e){if(!t.audio)continue;const e=(0,o.wJ2)(t.audio,async t=>{const e=await fetch(t.source);if(!e.ok)return;const s=await e.arrayBuffer(),i=this._getAudioContext(),n=await i.decodeAudioData(s);this._audioMap.set(t.source,n)});e instanceof Promise?await e:await Promise.allSettled(e)}}async mute(){this._container.muted||await this.toggleMute()}async start(){const t=this._container,e=t.actualOptions,s=e.sounds;if(!s?.enable||!t.canvas.element)return;t.muted=!0;const i=t.canvas.element,o={top:i.offsetTop,right:i.offsetLeft+i.offsetWidth},{mute:a,unmute:c,volumeDown:u,volumeUp:l}=s.icons,r=async()=>{await this.toggleMute()},h=s.icons.enable?n.Block:n.None;this._muteImg=w({container:t,options:e,pos:o,display:h,iconOptions:a,margin:10,rightOffsets:[u.width,l.width],clickCb:r}),this._unmuteImg=w({container:t,options:e,pos:o,display:n.None,iconOptions:c,margin:10,rightOffsets:[u.width,l.width],clickCb:r}),this._volumeDownImg=w({container:t,options:e,pos:o,display:h,iconOptions:u,margin:10,rightOffsets:[l.width],clickCb:async()=>{await this.volumeDown()}}),this._volumeUpImg=w({container:t,options:e,pos:o,display:h,iconOptions:l,margin:10,rightOffsets:[],clickCb:async()=>{await this.volumeUp()}}),!_()&&s.autoPlay&&await this.unmute()}stop(){this._container.muted=!0,(async()=>{await this._mute(),y(this._muteImg),y(this._unmuteImg),y(this._volumeDownImg),y(this._volumeUpImg)})()}async toggleMute(){const t=this._container;t.muted=!t.muted,this._updateMuteIcons(),await this._updateMuteStatus()}async unmute(){this._container.muted&&await this.toggleMute()}async volumeDown(){const t=this._container,e=t.actualOptions.sounds;e?.enable&&(t.muted&&(this._volume=0),this._volume-=e.volume.step,await this._updateVolume())}async volumeUp(){const t=this._container.actualOptions.sounds;t?.enable&&(this._volume+=t.volume.step,await this._updateVolume())}_getAudioContext(){const t=this._container;return t.audioContext??=new AudioContext,t.audioContext}}const C=()=>{removeEventListener(o.ms7,C),removeEventListener(o.s75,C),g()};class b{constructor(t){this.id="sounds",this._engine=t;const e={capture:!0,once:!0};addEventListener(o.ms7,C,e),addEventListener(o.s75,C,e)}getPlugin(t){return Promise.resolve(new x(t,this._engine))}loadOptions(t,e){if(!this.needsPlugin(t)&&!this.needsPlugin(e))return;let s=t.sounds;void 0===s?.load&&(t.sounds=s=new m),s.load(e?.sounds)}needsPlugin(t){return t?.sounds?.enable??!1}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/49.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 49.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[49],{9049(e,t,i){i.d(t,{B:()=>s,loadEmittersPlugin:()=>a});class s{constructor(e,t,i,s){this.position=e,this.size=t,this.fill=i,this.options=s}resize(e,t){this.position=e,this.size=t}}i(9883);function a(e){e.checkVersion("4.0.0-alpha.2"),e.register(async e=>{const{ShapeManager:t}=await i.e(397).then(i.bind(i,5397)),{EmittersPlugin:s}=await i.e(669).then(i.bind(i,3669));e.emitterShapeManager??=new t,e.addEmitterShapeGenerator??=(t,i)=>{e.emitterShapeManager?.addShapeGenerator(t,i)};const a=new s(e);e.addPlugin(a)})}},9883(e,t,i){var s;i.d(t,{c:()=>s}),function(e){e.emitter="emitter"}(s||(s={}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/509.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 509.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[509],{1509(a,e,t){function i(a){a.checkVersion("4.0.0-alpha.2"),a.register(async a=>{const{loadHexColorPlugin:e}=await t.e(455).then(t.bind(t,2455)),{loadHslColorPlugin:i}=await t.e(267).then(t.bind(t,3267)),{loadRgbColorPlugin:n}=await t.e(171).then(t.bind(t,4171)),{loadBaseMover:d}=await t.e(125).then(t.bind(t,3125)),{loadCircleShape:o}=await t.e(453).then(t.bind(t,2453)),{loadColorUpdater:l}=await t.e(633).then(t.bind(t,5633)),{loadOpacityUpdater:r}=await t.e(313).then(t.bind(t,3313)),{loadOutModesUpdater:s}=await t.e(349).then(t.bind(t,4349)),{loadSizeUpdater:h}=await t.e(459).then(t.bind(t,5459));e(a),i(a),n(a),d(a),o(a),l(a),r(a),s(a),h(a)})}t.d(e,{loadBasic:()=>i})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/527.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 527.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[527],{3527(e,t,a){function r(e){e.checkVersion("4.0.0-alpha.2"),e.register(e=>{e.addParticleUpdater("rotate",async e=>{const{RotateUpdater:t}=await a.e(237).then(a.bind(a,8237));return new t(e)})})}a.d(t,{loadRotateUpdater:()=>r})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/541.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 541.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[541],{3541(e,t,o){o.d(t,{StrokeColorUpdater:()=>r});var i=o(4929);class r{constructor(e,t){this._container=t,this._engine=e}init(e){const t=this._container,o=e.options,r=(0,i.TA3)(o.stroke,e.id,o.reduceDuplicates);if(!r)return;e.strokeWidth=(0,i.VGA)(r.width)*t.retina.pixelRatio,e.strokeOpacity=(0,i.VGA)(r.opacity??1),e.strokeAnimation=r.color?.animation;const s=(0,i.R5R)(this._engine,r.color)??e.getFillColor();s&&(e.strokeColor=(0,i.pzy)(s,e.strokeAnimation,t.retina.reduceFactor))}isEnabled(e){const t=e.strokeAnimation,{strokeColor:o}=e;return!e.destroyed&&!e.spawning&&!!t&&(void 0!==o?.h.value&&o.h.enable||void 0!==o?.s.value&&o.s.enable||void 0!==o?.l.value&&o.l.enable)}update(e,t){this.isEnabled(e)&&(0,i.JvX)(e.strokeColor,t)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/597.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 597.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[597],{5597(e,s,a){function i(e){e.checkVersion("4.0.0-alpha.2"),e.register(async e=>{const{LineDrawer:s}=await a.e(908).then(a.bind(a,5908));e.addShape(new s)})}a.d(s,{loadLineShape:()=>i})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/633.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 633.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[633],{5633(e,r,t){function a(e){e.checkVersion("4.0.0-alpha.2"),e.register(e=>{e.addParticleUpdater("color",async r=>{const{ColorUpdater:a}=await t.e(213).then(t.bind(t,9213));return new a(e,r)})})}t.d(r,{loadColorUpdater:()=>a})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/637.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 637.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[637],{3637(e,t,r){function a(e){e.checkVersion("4.0.0-alpha.2"),e.register(e=>{e.addParticleUpdater("life",async e=>{const{LifeUpdater:t}=await r.e(22).then(r.bind(r,3022));return new t(e)})})}r.d(t,{loadLifeUpdater:()=>a})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/669.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 669.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[669],{3669(t,i,s){s.d(i,{EmittersPlugin:()=>m});var e=s(4929);class o{constructor(){this.wait=!1}load(t){(0,e.kZJ)(t)||(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=(0,e.DT4)(t.delay)),void 0!==t.duration&&(this.duration=(0,e.DT4)(t.duration)),void 0!==t.wait&&(this.wait=t.wait))}}class n{constructor(){this.quantity=1,this.delay=.1}load(t){(0,e.kZJ)(t)||(void 0!==t.quantity&&(this.quantity=(0,e.DT4)(t.quantity)),void 0!==t.delay&&(this.delay=(0,e.DT4)(t.delay)))}}class a{constructor(){this.color=!1,this.opacity=!1}load(t){(0,e.kZJ)(t)||(void 0!==t.color&&(this.color=t.color),void 0!==t.opacity&&(this.opacity=t.opacity))}}class r{constructor(){this.options={},this.replace=new a,this.type="square"}load(t){(0,e.kZJ)(t)||(void 0!==t.options&&(this.options=(0,e.zwS)({},t.options??{})),this.replace.load(t.replace),void 0!==t.type&&(this.type=t.type))}}class h{constructor(){this.mode=e.qiC.percent,this.height=0,this.width=0}load(t){(0,e.kZJ)(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.height&&(this.height=t.height),void 0!==t.width&&(this.width=t.width))}}class l{constructor(){this.autoPlay=!0,this.fill=!0,this.life=new o,this.rate=new n,this.shape=new r,this.startCount=0}load(t){(0,e.kZJ)(t)||(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(this.size??=new h,this.size.load(t.size)),void 0!==t.direction&&(this.direction=t.direction),this.domId=t.domId,void 0!==t.fill&&(this.fill=t.fill),this.life.load(t.life),this.name=t.name,this.particles=(0,e.wJ2)(t.particles,t=>(0,e.zwS)({},t)),this.rate.load(t.rate),this.shape.load(t.shape),void 0!==t.position&&(this.position={},void 0!==t.position.x&&(this.position.x=(0,e.DT4)(t.position.x)),void 0!==t.position.y&&(this.position.y=(0,e.DT4)(t.position.y))),void 0!==t.spawnColor&&(this.spawnColor??=new e.A9e,this.spawnColor.load(t.spawnColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}var c=s(9883);function d(t,i){t.color?t.color.value=i:t.color={value:i}}class p{constructor(t,i,s,o,n){this.emitters=i,this.container=s,this._destroy=()=>{this._mutationObserver?.disconnect(),this._mutationObserver=void 0,this._resizeObserver?.disconnect(),this._resizeObserver=void 0,this.emitters.removeEmitter(this),this._engine.dispatchEvent("emitterDestroyed",{container:this.container,data:{emitter:this}})},this._prepareToDie=()=>{if(this._paused)return;const t=void 0!==this.options.life.duration?(0,e.VGA)(this.options.life.duration):void 0;(this._lifeCount>0||this._immortal)&&void 0!==t&&t>0&&(this._duration=t*e.XuV)},this._setColorAnimation=(t,i,s,o=1)=>{const n=this.container;if(!t.enable)return i;const a=(0,e.vEz)(t.offset),r=(0,e.VGA)(this.options.rate.delay),h=n.retina.reduceFactor?r*e.XuV/n.retina.reduceFactor:1/0;return(i+(0,e.VGA)(t.speed)*n.fpsLimit/h+a*o)%s},this._engine=t,this._currentDuration=0,this._currentEmitDelay=0,this._currentSpawnDelay=0,this._initialPosition=n,o instanceof l?this.options=o:(this.options=new l,this.options.load(o)),this._spawnDelay=s.retina.reduceFactor?(0,e.VGA)(this.options.life.delay??0)*e.XuV/s.retina.reduceFactor:1/0,this.position=this._initialPosition??this._calcPosition(),this.name=this.options.name,this.fill=this.options.fill,this._firstSpawn=!this.options.life.wait,this._startParticlesAdded=!1;const a=(0,e.zwS)({},this.options.particles);if(a.move??={},a.move.direction??=this.options.direction,this.options.spawnColor&&(this.spawnColor=(0,e.R5R)(this._engine,this.options.spawnColor)),this._paused=!this.options.autoPlay,this._particlesOptions=a,this._size=this._calcSize(),this.size=(0,e.YCE)(this._size,this.container.canvas.size),this._lifeCount=this.options.life.count??-1,this._immortal=this._lifeCount<=0,this.options.domId){const t=(0,e.T5G)().getElementById(this.options.domId);t&&(this._mutationObserver=new MutationObserver(()=>{this.resize()}),this._resizeObserver=new ResizeObserver(()=>{this.resize()}),this._mutationObserver.observe(t,{attributes:!0,attributeFilter:["style","width","height"]}),this._resizeObserver.observe(t))}const r=this.options.shape,h=this._engine.emitterShapeManager?.getShapeGenerator(r.type);h&&(this._shape=h.generate(this.position,this.size,this.fill,r.options)),this._engine.dispatchEvent("emitterCreated",{container:s,data:{emitter:this}}),this.play()}externalPause(){this._paused=!0,this.pause()}externalPlay(){this._paused=!1,this.play()}async init(){await(this._shape?.init())}pause(){this._paused||delete this._emitDelay}play(){if(this._paused)return;if(!(this._lifeCount>0||this._immortal)&&this.options.life.count||!(this._firstSpawn||this._currentSpawnDelay>=(this._spawnDelay??0)))return;const t=this.container;if(void 0===this._emitDelay){const i=(0,e.VGA)(this.options.rate.delay);this._emitDelay=t.retina.reduceFactor?i*e.XuV/t.retina.reduceFactor:1/0}(this._lifeCount>0||this._immortal)&&this._prepareToDie()}resize(){const t=this._initialPosition,i=this.container;this.position=t&&(0,e.Tj8)(t,i.canvas.size,e.Miz.origin)?t:this._calcPosition(),this._size=this._calcSize(),this.size=(0,e.YCE)(this._size,i.canvas.size),this._shape?.resize(this.position,this.size)}update(t){if(this._paused)return;const i=this.container;this._firstSpawn&&(this._firstSpawn=!1,this._currentSpawnDelay=this._spawnDelay??0,this._currentEmitDelay=this._emitDelay??0),this._startParticlesAdded||(this._startParticlesAdded=!0,this._emitParticles(this.options.startCount)),void 0!==this._duration&&(this._currentDuration+=t.value,this._currentDuration>=this._duration&&(this.pause(),void 0!==this._spawnDelay&&delete this._spawnDelay,this._immortal||this._lifeCount--,this._lifeCount>0||this._immortal?(this.position=this._calcPosition(),this._shape?.resize(this.position,this.size),this._spawnDelay=i.retina.reduceFactor?(0,e.VGA)(this.options.life.delay??0)*e.XuV/i.retina.reduceFactor:1/0):this._destroy(),this._currentDuration-=this._duration,delete this._duration)),void 0!==this._spawnDelay&&(this._currentSpawnDelay+=t.value,this._currentSpawnDelay>=this._spawnDelay&&(this._engine.dispatchEvent("emitterPlay",{container:this.container}),this.play(),this._currentSpawnDelay-=this._currentSpawnDelay,delete this._spawnDelay)),void 0!==this._emitDelay&&(this._currentEmitDelay+=t.value,this._currentEmitDelay>=this._emitDelay&&(this._emit(),this._currentEmitDelay-=this._emitDelay))}_calcPosition(){const t=this.container;if(this.options.domId){const i=(0,e.T5G)().getElementById(this.options.domId);if(i){const s=i.getBoundingClientRect(),o=t.retina.pixelRatio;return{x:(s.x+s.width*e.MXx)*o,y:(s.y+s.height*e.MXx)*o}}}return(0,e.l1q)({size:t.canvas.size,position:this.options.position})}_calcSize(){const t=this.container;if(this.options.domId){const i=(0,e.T5G)().getElementById(this.options.domId);if(i){const s=i.getBoundingClientRect();return{width:s.width*t.retina.pixelRatio,height:s.height*t.retina.pixelRatio,mode:e.qiC.precise}}}return this.options.size??(()=>{const t=new h;return t.load({height:0,mode:e.qiC.percent,width:0}),t})()}_emit(){if(this._paused)return;const t=(0,e.VGA)(this.options.rate.quantity);this._emitParticles(t)}_emitParticles(t){const i=(0,e.TA3)(this._particlesOptions),s=this.container.retina.reduceFactor;for(let o=0;o<t*s;o++){const t=(0,e.zwS)({},i);if(this.spawnColor){const i=this.options.spawnColor?.animation;if(i){const t={h:e.vSh,s:e.euA,l:e.$_c},s=3.6;this.spawnColor.h=this._setColorAnimation(i.h,this.spawnColor.h,t.h,s),this.spawnColor.s=this._setColorAnimation(i.s,this.spawnColor.s,t.s),this.spawnColor.l=this._setColorAnimation(i.l,this.spawnColor.l,t.l)}d(t,this.spawnColor)}const s=this.options.shape;let o=this.position;if(this._shape){const i=this._shape.randomPosition();if(i){o=i.position;const e=s.replace;e.color&&i.color&&d(t,i.color),e.opacity&&(t.opacity?t.opacity.value=i.opacity:t.opacity={value:i.opacity})}else o=null}o&&this.container.particles.addParticle(o,t)}}}class u{constructor(t,i){this.container=i,this._engine=t,this.array=[],this.emitters=[],this.interactivityEmitters={random:{count:1,enable:!1},value:[]};i.getEmitter=t=>void 0===t||(0,e.EtT)(t)?this.array[t??0]:this.array.find(i=>i.name===t),i.addEmitter=async(t,i)=>this.addEmitter(t,i),i.removeEmitter=t=>{const s=i.getEmitter(t);s&&this.removeEmitter(s)},i.playEmitter=t=>{const s=i.getEmitter(t);s&&s.externalPlay()},i.pauseEmitter=t=>{const s=i.getEmitter(t);s&&s.externalPause()}}async addEmitter(t,i){const s=new l;s.load(t);const e=new p(this._engine,this,this.container,s,i);return await e.init(),this.array.push(e),e}handleClickMode(t){const i=this.interactivityEmitters;if(t!==c.c.emitter)return;let s;if((0,e.cyL)(i.value)){const t=0;if(i.value.length>t&&i.random.enable){s=[];const t=[];for(let o=0;o<i.random.count;o++){const n=(0,e.n02)(i.value);if(t.includes(n)&&t.length<i.value.length){o--;continue}t.push(n);const a=(0,e.Vh1)(i.value,n);a&&s.push(a)}}else s=i.value}else s=i.value;const o=s,n=this.container.interactivity.mouse.clickPosition;(0,e.wJ2)(o,async t=>{await this.addEmitter(t,n)})}async init(){if(this.emitters=this.container.actualOptions.emitters,this.interactivityEmitters=this.container.actualOptions.interactivity.modes.emitters,(0,e.cyL)(this.emitters))for(const t of this.emitters)await this.addEmitter(t);else await this.addEmitter(this.emitters)}pause(){for(const t of this.array)t.pause()}play(){for(const t of this.array)t.play()}removeEmitter(t){const i=this.array.indexOf(t);i>=0&&this.array.splice(i,1)}resize(){for(const t of this.array)t.resize()}stop(){this.array=[]}update(t){for(const i of this.array)i.update(t)}}class m{constructor(t){this._engine=t,this.id="emitters"}getPlugin(t){return Promise.resolve(new u(this._engine,t))}loadOptions(t,i){if(!this.needsPlugin(t)&&!this.needsPlugin(i))return;i?.emitters&&(t.emitters=(0,e.wJ2)(i.emitters,t=>{const i=new l;return i.load(t),i}));const s=i?.interactivity?.modes?.emitters;if(s)if((0,e.cyL)(s))t.interactivity.modes.emitters={random:{count:1,enable:!0},value:s.map(t=>{const i=new l;return i.load(t),i})};else{const i=s;if((0,e.cyL)(i.value))t.interactivity.modes.emitters={random:{count:i.random.count,enable:i.random.enable},value:i.value.map(t=>{const i=new l;return i.load(t),i})};else{const s=new l;s.load(i.value),t.interactivity.modes.emitters={random:{count:i.random.count,enable:i.random.enable},value:s}}}}needsPlugin(t){if(!t)return!1;const i=t.emitters;return(0,e.cyL)(i)&&!!i.length||void 0!==i||!!t.interactivity?.events?.onClick?.mode&&(0,e.hnD)(c.c.emitter,t.interactivity.events.onClick.mode)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/751.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 751.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[751],{4751(t,o,i){i.d(o,{OpacityUpdater:()=>p});var a=i(4929);class p{constructor(t){this.container=t}init(t){const o=t.options.opacity;t.opacity=(0,a.XsS)(o,1);const i=o.animation;i.enable&&(t.opacity.velocity=(0,a.VGA)(i.speed)/a.a56*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity*=(0,a.G0i)()))}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))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,o){this.isEnabled(t)&&t.opacity&&(0,a.UC0)(t,t.opacity,!0,t.options.opacity.animation.destroy,o)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/802.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 802.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[802],{8802(r,s,e){e.d(s,{RgbColorManager:()=>c});var t,a=e(4929);!function(r){r[r.r=1]="r",r[r.g=2]="g",r[r.b=3]="b",r[r.a=5]="a"}(t||(t={}));const n=/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 c{constructor(){this.key="rgb"}accepts(r){return r.startsWith("rgb")}handleColor(r){const s=r.value.rgb??r.value;if(Object.hasOwn(s,"r"))return s}handleRangeColor(r){const s=r.value.rgb??r.value;if(Object.hasOwn(s,"r"))return{r:(0,a.VGA)(s.r),g:(0,a.VGA)(s.g),b:(0,a.VGA)(s.b)}}parseString(r){if(!this.accepts(r))return;const s=n.exec(r);return s?{a:s.length>4?(0,a.M3Y)(s[t.a]):1,b:parseInt(s[t.b]??"0",10),g:parseInt(s[t.g]??"0",10),r:parseInt(s[t.r]??"0",10)}:void 0}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/803.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 803.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[803],{4803(t,i,o){o.d(i,{OutOfCanvasUpdater:()=>c});var e=o(4929);class s{constructor(t){this.container=t,this.modes=[e.Yzx.bounce,e.Yzx.split]}update(t,i,o,s){if(!this.modes.includes(s))return;const n=this.container;let r=!1;for(const e of n.plugins.values())if(void 0!==e.particleBounce&&(r=e.particleBounce(t,o,i)),r)break;if(r)return;const a=t.getPosition(),c=t.offset,d=t.getRadius(),p=(0,e.AEc)(a,d),u=n.canvas.size;!function(t){if(t.outMode!==e.Yzx.bounce&&t.outMode!==e.Yzx.split||t.direction!==e.v5k.left&&t.direction!==e.v5k.right)return;t.bounds.right<0&&t.direction===e.v5k.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===e.v5k.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const i=t.particle.velocity.x;let o=!1;if(t.direction===e.v5k.right&&t.bounds.right>=t.canvasSize.width&&i>0||t.direction===e.v5k.left&&t.bounds.left<=0&&i<0){const i=(0,e.VGA)(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-i,o=!0}if(!o)return;const s=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&t.direction===e.v5k.right?t.particle.position.x=t.canvasSize.width-s:t.bounds.left<=0&&t.direction===e.v5k.left&&(t.particle.position.x=s),t.outMode===e.Yzx.split&&t.particle.destroy()}({particle:t,outMode:s,direction:i,bounds:p,canvasSize:u,offset:c,size:d}),function(t){if(t.outMode!==e.Yzx.bounce&&t.outMode!==e.Yzx.split||t.direction!==e.v5k.bottom&&t.direction!==e.v5k.top)return;t.bounds.bottom<0&&t.direction===e.v5k.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===e.v5k.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const i=t.particle.velocity.y;let o=!1;if(t.direction===e.v5k.bottom&&t.bounds.bottom>=t.canvasSize.height&&i>0||t.direction===e.v5k.top&&t.bounds.top<=0&&i<0){const i=(0,e.VGA)(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-i,o=!0}if(!o)return;const s=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&t.direction===e.v5k.bottom?t.particle.position.y=t.canvasSize.height-s:t.bounds.top<=0&&t.direction===e.v5k.top&&(t.particle.position.y=s),t.outMode===e.Yzx.split&&t.particle.destroy()}({particle:t,outMode:s,direction:i,bounds:p,canvasSize:u,offset:c,size:d})}}class n{constructor(t){this.container=t,this.modes=[e.Yzx.destroy]}update(t,i,o,s){if(!this.modes.includes(s))return;const n=this.container;switch(t.outType){case e.x_I.normal:case e.x_I.outside:if((0,e.Tj8)(t.position,n.canvas.size,e.Miz.origin,t.getRadius(),i))return;break;case e.x_I.inside:{const{dx:i,dy:o}=(0,e.vrU)(t.position,t.moveCenter),{x:s,y:n}=t.velocity;if(s<0&&i>t.moveCenter.radius||n<0&&o>t.moveCenter.radius||s>=0&&i<-t.moveCenter.radius||n>=0&&o<-t.moveCenter.radius)return;break}}n.particles.remove(t,t.group,!0)}}class r{constructor(t){this.container=t,this.modes=[e.Yzx.none]}update(t,i,o,s){if(!this.modes.includes(s))return;if((t.options.move.distance.horizontal&&(i===e.v5k.left||i===e.v5k.right))??(t.options.move.distance.vertical&&(i===e.v5k.top||i===e.v5k.bottom)))return;const n=t.options.move.gravity,r=this.container,a=r.canvas.size,c=t.getRadius();if(n.enable){const o=t.position;(!n.inverse&&o.y>a.height+c&&i===e.v5k.bottom||n.inverse&&o.y<-c&&i===e.v5k.top)&&r.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=a.height+c||t.velocity.y<0&&t.position.y>=-c||t.velocity.x>0&&t.position.x<=a.width+c||t.velocity.x<0&&t.position.x>=-c)return;(0,e.Tj8)(t.position,r.canvas.size,e.Miz.origin,c,i)||r.particles.remove(t)}}}class a{constructor(t){this.container=t,this.modes=[e.Yzx.out]}update(t,i,o,s){if(!this.modes.includes(s))return;const n=this.container;switch(t.outType){case e.x_I.inside:{const{x:i,y:o}=t.velocity,s=e.Miz.origin;s.length=t.moveCenter.radius,s.angle=t.velocity.angle+Math.PI,s.addTo(e.Miz.create(t.moveCenter));const{dx:r,dy:a}=(0,e.vrU)(t.position,s);if(i<=0&&r>=0||o<=0&&a>=0||i>=0&&r<=0||o>=0&&a<=0)return;t.position.x=Math.floor((0,e.vEz)({min:0,max:n.canvas.size.width})),t.position.y=Math.floor((0,e.vEz)({min:0,max:n.canvas.size.height}));const{dx:c,dy:d}=(0,e.vrU)(t.position,t.moveCenter);t.direction=Math.atan2(-d,-c),t.velocity.angle=t.direction;break}default:if((0,e.Tj8)(t.position,n.canvas.size,e.Miz.origin,t.getRadius(),i))return;switch(t.outType){case e.x_I.outside:{t.position.x=Math.floor((0,e.vEz)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor((0,e.vEz)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:i,dy:o}=(0,e.vrU)(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(o,i),t.velocity.angle=t.direction);break}case e.x_I.normal:{const o=t.options.move.warp,s=n.canvas.size,r={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},a=t.getRadius(),c=(0,e.AEc)(t.position,a);i===e.v5k.right&&c.left>s.width+t.offset.x?(t.position.x=r.left,t.initialPosition.x=t.position.x,o||(t.position.y=(0,e.G0i)()*s.height,t.initialPosition.y=t.position.y)):i===e.v5k.left&&c.right<-t.offset.x&&(t.position.x=r.right,t.initialPosition.x=t.position.x,o||(t.position.y=(0,e.G0i)()*s.height,t.initialPosition.y=t.position.y)),i===e.v5k.bottom&&c.top>s.height+t.offset.y?(o||(t.position.x=(0,e.G0i)()*s.width,t.initialPosition.x=t.position.x),t.position.y=r.top,t.initialPosition.y=t.position.y):i===e.v5k.top&&c.bottom<-t.offset.y&&(o||(t.position.x=(0,e.G0i)()*s.width,t.initialPosition.x=t.position.x),t.position.y=r.bottom,t.initialPosition.y=t.position.y);break}}}}}class c{constructor(t){this._addUpdaterIfMissing=(t,i,o)=>{const e=t.options.move.outModes;!this.updaters.has(i)&&((t,i)=>t.default===i||t.bottom===i||t.left===i||t.right===i||t.top===i)(e,i)&&this.updaters.set(i,o(this.container))},this._updateOutMode=(t,i,o,e)=>{for(const s of this.updaters.values())s.update(t,e,i,o)},this.container=t,this.updaters=new Map}init(t){this._addUpdaterIfMissing(t,e.Yzx.bounce,t=>new s(t)),this._addUpdaterIfMissing(t,e.Yzx.out,t=>new a(t)),this._addUpdaterIfMissing(t,e.Yzx.destroy,t=>new n(t)),this._addUpdaterIfMissing(t,e.Yzx.none,t=>new r(t))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,i){const o=t.options.move.outModes;this._updateOutMode(t,i,o.bottom??o.default,e.v5k.bottom),this._updateOutMode(t,i,o.left??o.default,e.v5k.left),this._updateOutMode(t,i,o.right??o.default,e.v5k.right),this._updateOutMode(t,i,o.top??o.default,e.v5k.top)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/819.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 819.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[819],{5819(e,a,t){t.d(a,{CircleDrawer:()=>s});var c=t(4929);const i=2*Math.PI,r=0,n=0;class s{constructor(){this.validTypes=["circle"]}draw(e){!function(e){const{context:a,particle:t,radius:c}=e;t.circleRange??={min:0,max:i};const s=t.circleRange;a.arc(r,n,c,s.min,s.max,!1)}(e)}getSidesCount(){return 12}particleInit(e,a){const t=a.shapeData,i=t?.angle??{max:360,min:0};a.circleRange=(0,c.Gvm)(i)?{min:(0,c.puj)(i.min),max:(0,c.puj)(i.max)}:{min:0,max:(0,c.puj)(i)}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/829.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 829.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[829],{2829(e,r,t){function a(e){e.checkVersion("4.0.0-alpha.2"),e.register(async e=>{const{TrailDrawer:r}=await t.e(280).then(t.bind(t,9280));e.addEffect("trail",new r)})}t.d(r,{loadTrailEffect:()=>a})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/890.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 890.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[890],{9509(e,t,r){function s(e){e.checkVersion("4.0.0-alpha.2"),e.register(e=>{e.addParticleUpdater("destroy",async t=>{const{DestroyUpdater:s}=await r.e(389).then(r.bind(r,5389));return new s(e,t)})})}r.d(t,{loadDestroyUpdater:()=>s})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/908.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 908.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[908],{5908(e,t,s){s.d(t,{LineDrawer:()=>r});class r{constructor(){this.validTypes=["line"]}draw(e){!function(e){const{context:t,particle:s,radius:r}=e,i=s.shapeData;t.moveTo(-r,0),t.lineTo(r,0),t.lineCap=i?.cap??"butt"}(e)}getSidesCount(){return 1}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/926.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 926.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[926],{2926(s,e,t){t.d(e,{HslColorManager:()=>n});var a,r=t(4929);!function(s){s[s.h=1]="h",s[s.s=2]="s",s[s.l=3]="l",s[s.a=5]="a"}(a||(a={}));const h=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class n{constructor(){this.key="hsl"}accepts(s){return s.startsWith("hsl")}handleColor(s){const e=s.value.hsl??s.value;if(Object.hasOwn(e,"h")||Object.hasOwn(e,"s")||Object.hasOwn(e,"l"))return(0,r.YLU)(e)}handleRangeColor(s){const e=s.value.hsl??s.value;if(Object.hasOwn(e,"h")||Object.hasOwn(e,"s")||Object.hasOwn(e,"l"))return(0,r.YLU)({h:(0,r.VGA)(e.h),l:(0,r.VGA)(e.l),s:(0,r.VGA)(e.s)})}parseString(s){if(!this.accepts(s))return;const e=h.exec(s);return e?(0,r.ayx)({a:e.length>4?(0,r.M3Y)(e[a.a]):1,h:parseInt(e[a.h]??"0",10),l:parseInt(e[a.l]??"0",10),s:parseInt(e[a.s]??"0",10)}):void 0}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/98.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 98.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[98],{1098(e,i,t){t.d(i,{BaseMover:()=>s});var n=t(4929);const a=2*Math.PI;function o(e,i,t,a,o,s,c){!function(e,i){const t=e.options,a=t.move.path;if(!a.enable)return;if(e.lastPathTime<=e.pathDelay)return void(e.lastPathTime+=i.value);const o=e.pathGenerator?.generate(e,i);o&&e.velocity.addTo(o);a.clamp&&(e.velocity.x=(0,n.qE8)(e.velocity.x,-1,1),e.velocity.y=(0,n.qE8)(e.velocity.y,-1,1));e.lastPathTime-=e.pathDelay}(e,c);const r=e.gravity,l=r?.enable&&r.inverse?-1:1;o&&t&&(e.velocity.x+=o*c.factor/(60*t)),r?.enable&&t&&(e.velocity.y+=l*(r.acceleration*c.factor)/(60*t));const p=e.moveDecay;e.velocity.multTo(p);const y=e.velocity.mult(t);r?.enable&&a>0&&(!r.inverse&&y.y>=0&&y.y>=a||r.inverse&&y.y<=0&&y.y<=-a)&&(y.y=l*a,t&&(e.velocity.y=y.y/t));const v=e.options.zIndex,d=(1-e.zIndexFactor)**v.velocityRate;y.multTo(d),y.multTo(s);const{position:u}=e;u.addTo(y),i.vibrate&&(u.x+=Math.sin(u.x*Math.cos(u.y))*s,u.y+=Math.cos(u.y*Math.sin(u.x))*s)}class s{init(e){const i=e.options.move.gravity;e.gravity={enable:i.enable,acceleration:(0,n.VGA)(i.acceleration),inverse:i.inverse},function(e){const i=e.container,t=e.options.move.spin;if(!t.enable)return;const o=t.position??{x:50,y:50},s={x:.01*o.x*i.canvas.size.width,y:.01*o.y*i.canvas.size.height},c=e.getPosition(),r=(0,n.YfF)(c,s),l=(0,n.VGA)(t.acceleration);e.retina.spinAcceleration=l*i.retina.pixelRatio,e.spin={center:s,direction:e.velocity.x>=0?n.pTR.clockwise:n.pTR.counterClockwise,angle:(0,n.G0i)()*a,radius:r,acceleration:e.retina.spinAcceleration}}(e)}isEnabled(e){return!e.destroyed&&e.options.move.enable}move(e,i){const t=e.options,a=t.move;if(!a.enable)return;const s=e.container,c=s.retina.pixelRatio;e.retina.moveSpeed??=(0,n.VGA)(a.speed)*c,e.retina.moveDrift??=(0,n.VGA)(e.options.move.drift)*c;const r=function(e){return e.slow.inRange?e.slow.factor:1}(e),l=s.retina.reduceFactor,p=e.retina.moveSpeed,y=e.retina.moveDrift,v=(0,n.W9e)(t.size.value)*c,d=p*(a.size?e.getRadius()/v:1)*r*(i.factor||1)/2,u=e.retina.maxSpeed??s.retina.maxSpeed;a.spin.enable?function(e,i,t){const a=e.container;if(!e.spin)return;const o=e.spin.direction===n.pTR.clockwise,s={x:o?Math.cos:Math.sin,y:o?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*s.x(e.spin.angle)*t,e.position.y=e.spin.center.y+e.spin.radius*s.y(e.spin.angle)*t,e.spin.radius+=e.spin.acceleration*t;const c=Math.max(a.canvas.size.width,a.canvas.size.height),r=.5*c;e.spin.radius>r?(e.spin.radius=r,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/c)}(e,d,l):o(e,a,d,u,y,l,i),function(e){const i=e.initialPosition,{dx:t,dy:a}=(0,n.vrU)(i,e.position),o=Math.abs(t),s=Math.abs(a),{maxDistance:c}=e.retina,r=c.horizontal,l=c.vertical;if(!r&&!l)return;if((r&&o>=r||l&&s>=l)&&!e.misplaced)e.misplaced=!!r&&o>r||!!l&&s>l,r&&(e.velocity.x=.5*e.velocity.y-e.velocity.x),l&&(e.velocity.y=.5*e.velocity.x-e.velocity.y);else if((!r||o<r)&&(!l||s<l)&&e.misplaced)e.misplaced=!1;else if(e.misplaced){const t=e.position,a=e.velocity;r&&(t.x<i.x&&a.x<0||t.x>i.x&&a.x>0)&&(a.x*=-(0,n.G0i)()),l&&(t.y<i.y&&a.y<0||t.y>i.y&&a.y>0)&&(a.y*=-(0,n.G0i)())}}(e)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
|
package/browser/bundle.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { loadFireworksPreset, tsParticles };
|
|
1
|
+
export { loadFireworksPreset } from "./index.js";
|
|
2
|
+
export { tsParticles } from "@tsparticles/engine";
|