@tsparticles/fireworks 4.0.0-beta.0 → 4.0.0-beta.2

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.
Files changed (149) hide show
  1. package/129.min.js +1 -0
  2. package/134.min.js +1 -0
  3. package/143.min.js +1 -0
  4. package/157.min.js +1 -0
  5. package/167.min.js +1 -0
  6. package/17.min.js +1 -0
  7. package/177.min.js +1 -0
  8. package/208.min.js +1 -0
  9. package/27.min.js +1 -0
  10. package/274.min.js +1 -0
  11. package/293.min.js +1 -0
  12. package/301.min.js +1 -0
  13. package/347.min.js +1 -0
  14. package/356.min.js +1 -0
  15. package/360.min.js +1 -0
  16. package/368.min.js +1 -1
  17. package/454.min.js +1 -0
  18. package/{413.min.js → 468.min.js} +1 -1
  19. package/477.min.js +1 -0
  20. package/496.min.js +1 -0
  21. package/51.min.js +1 -0
  22. package/510.min.js +1 -1
  23. package/541.min.js +1 -0
  24. package/550.min.js +1 -0
  25. package/{41.min.js → 553.min.js} +2 -2
  26. package/554.min.js +1 -0
  27. package/590.min.js +1 -0
  28. package/598.min.js +1 -0
  29. package/601.min.js +1 -0
  30. package/{382.min.js → 604.min.js} +1 -1
  31. package/610.min.js +1 -0
  32. package/626.min.js +1 -0
  33. package/627.min.js +1 -0
  34. package/663.min.js +1 -1
  35. package/684.min.js +1 -0
  36. package/686.min.js +1 -0
  37. package/72.min.js +1 -0
  38. package/737.min.js +1 -0
  39. package/742.min.js +1 -0
  40. package/{964.min.js → 744.min.js} +1 -1
  41. package/748.min.js +1 -0
  42. package/775.min.js +1 -0
  43. package/813.min.js +1 -0
  44. package/866.min.js +1 -0
  45. package/88.min.js +1 -0
  46. package/880.min.js +1 -0
  47. package/930.min.js +1 -0
  48. package/951.min.js +1 -0
  49. package/basic_dist_browser_index_js.js +2 -2
  50. package/browser/fireworks.js +9 -7
  51. package/cjs/fireworks.js +9 -7
  52. package/dist_browser_FireworksInstance_js.js +1 -1
  53. package/effects_trail_dist_browser_TrailDrawer_js.js +2 -2
  54. package/effects_trail_dist_browser_index_js.js +2 -2
  55. package/engine_dist_browser_Core_Container_js.js +54 -14
  56. package/esm/fireworks.js +9 -7
  57. package/package.json +11 -12
  58. package/plugins_colors_hex_dist_browser_HexColorManager_js.js +1 -1
  59. package/plugins_colors_hex_dist_browser_index_js.js +2 -2
  60. package/plugins_colors_hsl_dist_browser_HslColorManager_js.js +1 -1
  61. package/plugins_colors_hsl_dist_browser_index_js.js +2 -2
  62. package/plugins_colors_rgb_dist_browser_RgbColorManager_js.js +1 -1
  63. package/plugins_colors_rgb_dist_browser_index_js.js +2 -2
  64. package/plugins_emittersShapes_square_dist_browser_EmittersSquareShapeGenerator_js.js +32 -2
  65. package/plugins_emittersShapes_square_dist_browser_index_js.js +2 -2
  66. package/plugins_emitters_dist_browser_EmitterInstance_js.js +2 -2
  67. package/plugins_emitters_dist_browser_EmittersInstancesManager_js.js +2 -2
  68. package/plugins_emitters_dist_browser_EmittersInteractor_js.js +26 -6
  69. package/plugins_emitters_dist_browser_EmittersPluginInstance_js.js +1 -1
  70. package/plugins_emitters_dist_browser_EmittersPlugin_js.js +1 -1
  71. package/plugins_emitters_dist_browser_ShapeManager_js.js +1 -1
  72. package/plugins_emitters_dist_browser_addEmittersShapesManager_js.js +30 -0
  73. package/plugins_emitters_dist_browser_getEmittersInstancesManager_js.js +30 -0
  74. package/plugins_emitters_dist_browser_index_js.js +32 -2
  75. package/plugins_emitters_dist_browser_plugin_js.js +50 -0
  76. package/plugins_interactivity_dist_browser_InteractivityPluginInstance_js.js +4 -4
  77. package/plugins_interactivity_dist_browser_InteractivityPlugin_js.js +3 -3
  78. package/plugins_interactivity_dist_browser_index_js.js +26 -6
  79. package/plugins_move_dist_browser_MovePluginInstance_js.js +3 -3
  80. package/plugins_move_dist_browser_MovePlugin_js.js +2 -2
  81. package/plugins_move_dist_browser_index_js.js +2 -2
  82. package/plugins_sounds_dist_browser_SoundsPluginInstance_js.js +2 -2
  83. package/plugins_sounds_dist_browser_SoundsPlugin_js.js +2 -2
  84. package/plugins_sounds_dist_browser_index_js.js +2 -2
  85. package/report.html +84 -29
  86. package/shapes_circle_dist_browser_CircleDrawer_js.js +1 -1
  87. package/shapes_circle_dist_browser_index_js.js +2 -2
  88. package/tsparticles.fireworks.bundle.js +19 -9
  89. package/tsparticles.fireworks.bundle.min.js +2 -2
  90. package/tsparticles.fireworks.js +16 -16
  91. package/tsparticles.fireworks.min.js +2 -2
  92. package/updaters_destroy_dist_browser_DestroyUpdater_js.js +3 -3
  93. package/updaters_destroy_dist_browser_index_js.js +2 -2
  94. package/updaters_fillColor_dist_browser_FillColorUpdater_js.js +2 -2
  95. package/updaters_fillColor_dist_browser_index_js.js +2 -2
  96. package/updaters_life_dist_browser_LifeUpdater_js.js +1 -1
  97. package/updaters_life_dist_browser_index_js.js +2 -2
  98. package/updaters_opacity_dist_browser_OpacityUpdater_js.js +2 -2
  99. package/updaters_opacity_dist_browser_index_js.js +2 -2
  100. package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +3 -3
  101. package/updaters_outModes_dist_browser_index_js.js +2 -2
  102. package/updaters_rotate_dist_browser_RotateUpdater_js.js +1 -1
  103. package/updaters_rotate_dist_browser_index_js.js +2 -2
  104. package/updaters_size_dist_browser_SizeUpdater_js.js +2 -2
  105. package/updaters_size_dist_browser_index_js.js +2 -2
  106. package/101.min.js +0 -1
  107. package/102.min.js +0 -1
  108. package/116.min.js +0 -1
  109. package/149.min.js +0 -1
  110. package/161.min.js +0 -1
  111. package/194.min.js +0 -1
  112. package/202.min.js +0 -1
  113. package/214.min.js +0 -1
  114. package/222.min.js +0 -1
  115. package/229.min.js +0 -1
  116. package/256.min.js +0 -1
  117. package/268.min.js +0 -1
  118. package/298.min.js +0 -1
  119. package/299.min.js +0 -1
  120. package/449.min.js +0 -1
  121. package/455.min.js +0 -1
  122. package/465.min.js +0 -1
  123. package/478.min.js +0 -1
  124. package/513.min.js +0 -1
  125. package/514.min.js +0 -1
  126. package/565.min.js +0 -1
  127. package/572.min.js +0 -1
  128. package/578.min.js +0 -1
  129. package/624.min.js +0 -1
  130. package/638.min.js +0 -1
  131. package/646.min.js +0 -1
  132. package/659.min.js +0 -1
  133. package/715.min.js +0 -1
  134. package/84.min.js +0 -1
  135. package/846.min.js +0 -1
  136. package/876.min.js +0 -1
  137. package/89.min.js +0 -1
  138. package/91.min.js +0 -1
  139. package/912.min.js +0 -1
  140. package/916.min.js +0 -1
  141. package/922.min.js +0 -1
  142. package/947.min.js +0 -1
  143. package/970.min.js +0 -1
  144. package/umd/FireworkOptions.js +0 -91
  145. package/umd/FireworksInstance.js +0 -29
  146. package/umd/IFireworkOptions.js +0 -12
  147. package/umd/bundle.js +0 -28
  148. package/umd/fireworks.js +0 -328
  149. package/umd/index.js +0 -27
@@ -1,2 +1,2 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(this,()=>(()=>{"use strict";var e,t,i,a={2509(e,t,i){i.d(t,{$G:()=>L,$_:()=>_,$v:()=>W,$x:()=>k,BF:()=>em,BW:()=>p,DN:()=>j,D_:()=>ed,Dv:()=>ec,Eo:()=>Q,Fl:()=>eg,GW:()=>C,Ie:()=>D,JC:()=>q,K3:()=>eo,L1:()=>F,LD:()=>er,MX:()=>l,NF:()=>o,Nu:()=>ep,Nx:()=>N,PZ:()=>U,Pf:()=>ew,R1:()=>v,RF:()=>x,RV:()=>G,Rq:()=>V,U0:()=>I,Ug:()=>u,WH:()=>J,X$:()=>b,X_:()=>ee,Xu:()=>d,Zp:()=>P,a5:()=>r,aE:()=>ev,aZ:()=>g,bo:()=>c,ce:()=>y,dm:()=>z,dv:()=>Y,eb:()=>a,eu:()=>T,gd:()=>f,hB:()=>O,hK:()=>eb,hv:()=>Z,i8:()=>K,iU:()=>eu,iX:()=>M,jn:()=>ey,lA:()=>es,mR:()=>h,nK:()=>s,nq:()=>ei,oi:()=>R,ou:()=>et,rq:()=>w,tA:()=>el,tR:()=>ex,vF:()=>H,vS:()=>E,vd:()=>eh,w2:()=>B,wM:()=>ea,xH:()=>X,xd:()=>S,yj:()=>n,yx:()=>A,z$:()=>m,z9:()=>en,zg:()=>ef,zs:()=>$});let a="generated",n="source-over",o="resize",s="visibilitychange",r=100,l=.5,d=1e3,c={x:0,y:0,z:0},u={a:1,b:0,c:0,d:1},h="random",p="mid",f=2,v=2*Math.PI,m=60,g=1,y="true",b="false",x="canvas",w=0,z=2,M=100,S=1,k=1,P=1,O=1,R=255,E=360,T=100,_=100,F=0,A=0,I=60,D=0,L=.25,V=.75,C=0,$=1,B=0,G=1,Z=1,q=1,H=0,K=120,j=0,N=0,W=1e4,U=0,X=1,Y=0,J=1,Q=1,ee=0,et=0,ei=1,ea=0,en=0,eo=1,es=1,er=1,el=0,ed=1,ec=0,eu=1,eh=0,ep=3,ef=6,ev=1,em=1,eg=0,ey=0,eb=0,ex=0,ew=1},1810(e,t,i){i.d(t,{dg:()=>r,jl:()=>l,M_:()=>d}),(a=n||(n={})).circle="circle",a.rectangle="rectangle";var a,n,o=i(3221),s=i(2509);class r{position;type;constructor(e,t,i){this.position={x:e,y:t},this.type=i}_resetPosition(e,t){this.position.x=e,this.position.y=t}}class l extends r{radius;constructor(e,t,i){super(e,t,n.circle),this.radius=i}contains(e){return(0,o.gp)(e,this.position,this.radius)}intersects(e){let t=this.position,i=e.position,a=this.radius,o=Math.abs(i.x-t.x),r=Math.abs(i.y-t.y);if(e instanceof l||e.type===n.circle)return a+e.radius>Math.hypot(o,r);if(e instanceof d||e.type===n.rectangle){let{width:t,height:i}=e.size;return Math.pow(o-t,s.dm)+Math.pow(r-i,s.dm)<=a**s.dm||o<=a+t&&r<=a+i||o<=t||r<=i}return!1}reset(e,t,i){return this._resetPosition(e,t),this.radius=i,this}}class d extends r{size;constructor(e,t,i,a){super(e,t,n.rectangle),this.size={height:a,width:i}}contains(e){let t=this.size.width,i=this.size.height,a=this.position;return e.x>=a.x&&e.x<=a.x+t&&e.y>=a.y&&e.y<=a.y+i}intersects(e){if(e instanceof l)return e.intersects(this);if(!(e instanceof d))return!1;let t=this.size.width,i=this.size.height,a=this.position,n=e.position,o=e.size,s=o.width,r=o.height;return n.x<a.x+t&&n.x+s>a.x&&n.y<a.y+i&&n.y+r>a.y}reset(e,t,i,a){return this._resetPosition(e,t),this.size.width=i,this.size.height=a,this}}},2056(e,t,i){i.d(t,{M:()=>s,p:()=>o});var a=i(2509);function n(e){return"z"in e?e.z:a.bo.z}class o{x;y;z;constructor(e=a.bo.x,t=a.bo.y,i=a.bo.z){this.x=e,this.y=t,this.z=i}static get origin(){return o.create(a.bo.x,a.bo.y,a.bo.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return o.create(e.x,e.y,n(e))}static create(e,t,i){return"number"==typeof e?new o(e,t??a.bo.y,i??a.bo.z):new o(e.x,e.y,n(e))}add(e){return o.create(this.x+e.x,this.y+e.y,this.z+n(e))}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=n(e)}copy(){return o.clone(this)}div(e){return o.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**a.dm+this.y**a.dm}mult(e){return o.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){let e=this.length;e!=a.dv&&this.multTo(a.hB/e)}rotate(e){return o.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),a.bo.z)}setTo(e){this.x=e.x,this.y=e.y,this.z=n(e)}sub(e){return o.create(this.x-e.x,this.y-e.y,this.z-n(e))}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=n(e)}_updateFromAngle(e,t){this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class s extends o{constructor(e=a.bo.x,t=a.bo.y){super(e,t,a.bo.z)}static get origin(){return s.create(a.bo.x,a.bo.y)}static clone(e){return s.create(e.x,e.y)}static create(e,t){return"number"==typeof e?new s(e,t??a.bo.y):new s(e.x,e.y)}}},4801(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).increasing="increasing",n.decreasing="decreasing"},5518(e,t,i){var a,n;i.d(t,{F:()=>a}),(n=a||(a={})).bottom="bottom",n.bottomLeft="bottom-left",n.bottomRight="bottom-right",n.left="left",n.none="none",n.right="right",n.top="top",n.topLeft="top-left",n.topRight="top-right",n.outside="outside",n.inside="inside"},9754(e,t,i){var a,n;i.d(t,{v:()=>a}),(n=a||(a={})).bottom="bottom",n.left="left",n.right="right",n.top="top"},7287(e,t,i){var a,n;i.d(t,{g:()=>a}),(n=a||(a={})).auto="auto",n.increase="increase",n.decrease="decrease",n.random="random"},2402(e,t,i){var a,n;i.d(t,{d:()=>a}),(n=a||(a={})).delete="delete",n.wait="wait"},481(e,t,i){var a,n;i.d(t,{Y:()=>a}),(n=a||(a={})).bounce="bounce",n.none="none",n.out="out",n.destroy="destroy",n.split="split"},5781(e,t,i){var a,n;i.d(t,{q:()=>a}),(n=a||(a={})).precise="precise",n.percent="percent"},6055(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).darken="darken",n.enlighten="enlighten"},5869(e,t,i){var a,n;i.d(t,{V:()=>a}),(n=a||(a={})).none="none",n.max="max",n.min="min"},4967(e,t,i){var a,n;i.d(t,{B:()=>a}),(n=a||(a={})).configAdded="configAdded",n.containerInit="containerInit",n.particlesSetup="particlesSetup",n.containerStarted="containerStarted",n.containerStopped="containerStopped",n.containerDestroyed="containerDestroyed",n.containerPaused="containerPaused",n.containerPlay="containerPlay",n.containerBuilt="containerBuilt",n.particleAdded="particleAdded",n.particleDestroyed="particleDestroyed",n.particleRemoved="particleRemoved"},777(e,t,i){var a,n;i.d(t,{x:()=>a}),(n=a||(a={})).normal="normal",n.inside="inside",n.outside="outside"},8918(e,t,i){var a,n;i.d(t,{S:()=>a}),(n=a||(a={})).max="max",n.min="min",n.random="random"},3233(e,t,i){i.d(t,{A:()=>s});var a=i(887),n=i(3447),o=i(3061);class s extends o.O{animation;constructor(){super(),this.animation=new n.i}static create(e,t){let i=new s;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){if(super.load(e),(0,a.kZ)(e))return;let t=e.animation;void 0!==t&&(void 0===t.enable?this.animation.load(e.animation):this.animation.h.load(t))}}},7568(e,t,i){i.d(t,{Q:()=>l,p:()=>r});var a=i(7287),n=i(8918),o=i(887),s=i(3221);class r{count;decay;delay;enable;speed;sync;constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){(0,o.kZ)(e)||(void 0!==e.count&&(this.count=(0,s.DT)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,s.DT)(e.speed)),void 0!==e.decay&&(this.decay=(0,s.DT)(e.decay)),void 0!==e.delay&&(this.delay=(0,s.DT)(e.delay)),void 0!==e.sync&&(this.sync=e.sync))}}class l extends r{mode;startValue;constructor(){super(),this.mode=a.g.auto,this.startValue=n.S.random}load(e){super.load(e),(0,o.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},3087(e,t,i){i.d(t,{V:()=>o});var a=i(3061),n=i(887);class o{color;image;opacity;position;repeat;size;constructor(){this.color=new a.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.O.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.position&&(this.position=e.position),void 0!==e.repeat&&(this.repeat=e.repeat),void 0!==e.size&&(this.size=e.size),void 0!==e.opacity&&(this.opacity=e.opacity))}}},1043(e,t,i){i.d(t,{e:()=>s});var a=i(7568),n=i(887),o=i(3221);class s extends a.p{max;min;offset;constructor(e,t){super(),this.min=e,this.max=t,this.offset=0,this.sync=!0}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.max&&(this.max=e.max),void 0!==e.min&&(this.min=e.min),void 0!==e.offset&&(this.offset=(0,o.DT)(e.offset)))}}},3901(e,t,i){i.d(t,{m:()=>n});var a=i(887);class n{enable;zIndex;constructor(){this.enable=!0,this.zIndex=0}load(e){(0,a.kZ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.zIndex&&(this.zIndex=e.zIndex))}}},3447(e,t,i){i.d(t,{i:()=>s});var a=i(2509),n=i(1043),o=i(887);class s{h=new n.e(a.L1,a.vS);l=new n.e(a.vd,a.$_);s=new n.e(a.yx,a.eu);load(e){(0,o.kZ)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},7752(e,t,i){i.d(t,{J:()=>c});var a=i(7807),n=i(887),o=i(3087),s=i(3901),r=i(5398),l=i(8507),d=i(3221);class c{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;palette;particles;pauseOnBlur;pauseOnOutsideViewport;preset;resize;smooth;style;zLayers;_container;_engine;constructor(e,t){this._engine=e,this._container=t,this.autoPlay=!0,this.background=new o.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new s.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,l.y)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.resize=new r.z,this.smooth=!1,this.style={},this.zLayers=100}load(e){if((0,n.kZ)(e))return;void 0!==e.preset&&(this.preset=e.preset,(0,a.wJ)(this.preset,e=>{this._importPreset(e)})),void 0!==e.palette&&(this.palette=e.palette,this._importPalette(this.palette)),void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.clear&&(this.clear=e.clear),void 0!==e.key&&(this.key=e.key),void 0!==e.name&&(this.name=e.name),void 0!==e.delay&&(this.delay=(0,d.DT)(e.delay));let t=e.detectRetina;void 0!==t&&(this.detectRetina=t),void 0!==e.duration&&(this.duration=(0,d.DT)(e.duration));let i=e.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==e.hdr&&(this.hdr=e.hdr),void 0!==e.pauseOnBlur&&(this.pauseOnBlur=e.pauseOnBlur),void 0!==e.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),void 0!==e.zLayers&&(this.zLayers=e.zLayers),this.background.load(e.background);let o=e.fullScreen;(0,n.Lm)(o)?this.fullScreen.enable=o:this.fullScreen.load(o),this.particles.load(e.particles),this.resize.load(e.resize),this.style=(0,a.zw)(this.style,e.style),void 0!==e.smooth&&(this.smooth=e.smooth),this._engine.plugins.forEach(t=>{t.loadOptions(this._container,this,e)})}_importPalette=e=>{let t=this._engine.getPalette(e);t&&this.load({background:{color:t.background},blend:{enable:!0,mode:t.blendMode},particles:{fill:{color:t.fill?{value:t.colors}:void 0,enable:t.fill},stroke:t.fill?void 0:t.colors.map(e=>({color:{value:e},width:1}))}})};_importPreset=e=>{this.load(this._engine.getPreset(e))}}},3061(e,t,i){i.d(t,{O:()=>n});var a=i(887);class n{value;constructor(){this.value=""}static create(e,t){let i=new n;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){!(0,a.kZ)(e)&&((0,a.kZ)(e.value)||(this.value=e.value))}}},1172(e,t,i){i.d(t,{w:()=>o});var a=i(9903),n=i(887);class o{horizontal;vertical;constructor(){this.horizontal=new a.F,this.vertical=new a.F}load(e){(0,n.kZ)(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}},9903(e,t,i){i.d(t,{F:()=>n});var a=i(6864);class n extends a.PV{constructor(){super(),this.value=1}}},4821(e,t,i){i.d(t,{S:()=>s});var a=i(3233),n=i(887),o=i(3221);class s{color;enable;opacity;constructor(){this.enable=!0,this.color=new a.A,this.color.value="#fff",this.opacity=1}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.opacity&&(this.opacity=(0,o.DT)(e.opacity)))}}},5977(e,t,i){i.d(t,{y:()=>h});var a=i(5518),n=i(887),o=i(558),s=i(6136),r=i(6139),l=i(9760),d=i(4084),c=i(9784),u=i(3221);class h{angle;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new o.h,this.center=new s.Z,this.decay=0,this.distance={},this.direction=a.F.none,this.drift=0,this.enable=!1,this.gravity=new r.y,this.path=new l.v,this.outModes=new d.j,this.random=!1,this.size=!1,this.speed=2,this.spin=new c.t,this.straight=!1,this.vibrate=!1,this.warp=!1}load(e){if((0,n.kZ)(e))return;this.angle.load((0,n.Et)(e.angle)?{value:e.angle}:e.angle),this.center.load(e.center),void 0!==e.decay&&(this.decay=(0,u.DT)(e.decay)),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.distance&&(this.distance=(0,n.Et)(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),void 0!==e.drift&&(this.drift=(0,u.DT)(e.drift)),void 0!==e.enable&&(this.enable=e.enable),this.gravity.load(e.gravity);let t=e.outModes;void 0!==t&&((0,n.Gv)(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),void 0!==e.random&&(this.random=e.random),void 0!==e.size&&(this.size=e.size),void 0!==e.speed&&(this.speed=(0,u.DT)(e.speed)),this.spin.load(e.spin),void 0!==e.straight&&(this.straight=e.straight),void 0!==e.vibrate&&(this.vibrate=e.vibrate),void 0!==e.warp&&(this.warp=e.warp)}}},558(e,t,i){i.d(t,{h:()=>o});var a=i(887),n=i(3221);class o{offset;value;constructor(){this.offset=0,this.value=90}load(e){(0,a.kZ)(e)||(void 0!==e.offset&&(this.offset=(0,n.DT)(e.offset)),void 0!==e.value&&(this.value=(0,n.DT)(e.value)))}}},6136(e,t,i){i.d(t,{Z:()=>o});var a=i(5781),n=i(887);class o{mode;radius;x;y;constructor(){this.x=50,this.y=50,this.mode=a.q.percent,this.radius=0}load(e){(0,n.kZ)(e)||(void 0!==e.x&&(this.x=e.x),void 0!==e.y&&(this.y=e.y),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.radius&&(this.radius=e.radius))}}},6139(e,t,i){i.d(t,{y:()=>o});var a=i(887),n=i(3221);class o{acceleration;enable;inverse;maxSpeed;constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){(0,a.kZ)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,n.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.inverse&&(this.inverse=e.inverse),void 0!==e.maxSpeed&&(this.maxSpeed=(0,n.DT)(e.maxSpeed)))}}},4084(e,t,i){i.d(t,{j:()=>o});var a=i(481),n=i(887);class o{bottom;default;left;right;top;constructor(){this.default=a.Y.out}load(e){(0,n.kZ)(e)||(void 0!==e.default&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}},9760(e,t,i){i.d(t,{v:()=>s});var a=i(6864),n=i(7807),o=i(887);class s{clamp;delay;enable;generator;options;constructor(){this.clamp=!0,this.delay=new a.PV,this.enable=!1,this.options={}}load(e){!(0,o.kZ)(e)&&(void 0!==e.clamp&&(this.clamp=e.clamp),this.delay.load(e.delay),void 0!==e.enable&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=(0,n.zw)(this.options,e.options)))}}},9784(e,t,i){i.d(t,{t:()=>s});var a=i(7807),n=i(887),o=i(3221);class s{acceleration;enable;position;constructor(){this.acceleration=0,this.enable=!1}load(e){!(0,n.kZ)(e)&&(void 0!==e.acceleration&&(this.acceleration=(0,o.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,a.zw)({},e.position)))}}},3341(e,t,i){i.d(t,{M:()=>n});var a=i(887);class n{enable;height;width;constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if((0,a.kZ)(e))return;void 0!==e.enable&&(this.enable=e.enable);let t=e.width;void 0!==t&&(this.width=t);let i=e.height;void 0!==i&&(this.height=i)}}},5384(e,t,i){i.d(t,{N:()=>s});var a=i(3341),n=i(2729),o=i(887);class s{density;limit;value;constructor(){this.density=new a.M,this.limit=new n.A,this.value=0}load(e){(0,o.kZ)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},2729(e,t,i){i.d(t,{A:()=>o});var a=i(2402),n=i(887);class o{mode;value;constructor(){this.mode=a.d.delete,this.value=0}load(e){(0,n.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},5353(e,t,i){i.d(t,{Y:()=>s});var a=i(9971),n=i(6864),o=i(887);class s extends n.AI{animation;constructor(){super(),this.animation=new a.I,this.value=1}load(e){if((0,o.kZ)(e))return;super.load(e);let t=e.animation;void 0!==t&&this.animation.load(t)}}},9971(e,t,i){i.d(t,{I:()=>s});var a=i(5869),n=i(7568),o=i(887);class s extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=2}load(e){super.load(e),(0,o.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},8509(e,t,i){i.d(t,{U:()=>v});var a=i(7807),n=i(887);class o{close;options;type;constructor(){this.close=!0,this.options={},this.type=[]}load(e){if((0,n.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.type&&(this.type=e.type)}}var s=i(4821),r=i(5977),l=i(5353),d=i(1172),c=i(5384),u=i(6373),h=i(929),p=i(5216),f=i(8491);class v{bounce;effect;fill;groups;move;number;opacity;reduceDuplicates;shape;size;stroke;zIndex;_container;_engine;constructor(e,t){this._engine=e,this._container=t,this.bounce=new d.w,this.effect=new o,this.fill=new s.S,this.groups={},this.move=new r.y,this.number=new c.N,this.opacity=new l.Y,this.reduceDuplicates=!1,this.shape=new u.y,this.size=new h.o,this.stroke=new p.t,this.zIndex=new f.P}load(e){if((0,n.kZ)(e))return;if(void 0!==e.groups)for(let t of Object.keys(e.groups)){if(!(t in e.groups))continue;let i=e.groups[t];void 0!==i&&(this.groups[t]=(0,a.zw)(this.groups[t]??{},i))}void 0!==e.reduceDuplicates&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.zIndex.load(e.zIndex);let t=e.fill;t&&(this.fill=(0,a.wJ)(t,e=>{let t=new s.S;return t.load(e),t}));let i=e.stroke;if(i&&(this.stroke=(0,a.wJ)(i,e=>{let t=new p.t;return t.load(e),t})),this._container){for(let t of this._engine.plugins)t.loadParticlesOptions&&t.loadParticlesOptions(this._container,this,e);let t=this._engine.updaters.get(this._container);if(t)for(let i of t)i.loadOptions&&i.loadOptions(this,e)}}}},6373(e,t,i){i.d(t,{y:()=>o});var a=i(7807),n=i(887);class o{close;options;type;constructor(){this.close=!0,this.options={},this.type="circle"}load(e){if((0,n.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.type&&(this.type=e.type)}}},929(e,t,i){i.d(t,{o:()=>s});var a=i(6864),n=i(7211),o=i(887);class s extends a.AI{animation;constructor(){super(),this.animation=new n.q,this.value=3}load(e){if(super.load(e),(0,o.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}},7211(e,t,i){i.d(t,{q:()=>s});var a=i(5869),n=i(7568),o=i(887);class s extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=5}load(e){super.load(e),(0,o.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},5216(e,t,i){i.d(t,{t:()=>s});var a=i(3233),n=i(887),o=i(3221);class s{color;opacity;width;constructor(){this.width=0}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.width&&(this.width=(0,o.DT)(e.width)),void 0!==e.opacity&&(this.opacity=(0,o.DT)(e.opacity)))}}},8491(e,t,i){i.d(t,{P:()=>o});var a=i(6864),n=i(887);class o extends a.PV{opacityRate;sizeRate;velocityRate;constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.opacityRate&&(this.opacityRate=e.opacityRate),void 0!==e.sizeRate&&(this.sizeRate=e.sizeRate),void 0!==e.velocityRate&&(this.velocityRate=e.velocityRate))}}},5398(e,t,i){i.d(t,{z:()=>n});var a=i(887);class n{delay;enable;constructor(){this.delay=.5,this.enable=!0}load(e){(0,a.kZ)(e)||(void 0!==e.delay&&(this.delay=e.delay),void 0!==e.enable&&(this.enable=e.enable))}}},6864(e,t,i){i.d(t,{AI:()=>l,Jm:()=>r,PV:()=>s});var a=i(7568),n=i(887),o=i(3221);class s{value;constructor(){this.value=0}load(e){!(0,n.kZ)(e)&&((0,n.kZ)(e.value)||(this.value=(0,o.DT)(e.value)))}}class r extends s{animation=new a.p;load(e){if(super.load(e),(0,n.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}class l extends r{animation;constructor(){super(),this.animation=new a.Q}load(e){super.load(e)}}},6083(e,t,i){i.d(t,{IU:()=>s,KG:()=>c,Md:()=>o,Sn:()=>n,VG:()=>h,Wb:()=>p,gF:()=>u,k:()=>l,p0:()=>r,z5:()=>d});var a=i(2509);function n(e,t,i){e.fillStyle=i??"rgba(0,0,0,0)",e.fillRect(a.bo.x,a.bo.y,t.width,t.height)}function o(e,t,i,n){if(!i)return;let o=e.globalAlpha;e.globalAlpha=n,e.drawImage(i,a.bo.x,a.bo.y,t.width,t.height),e.globalAlpha=o}function s(e,t){e.clearRect(a.bo.x,a.bo.y,t.width,t.height)}function r(e){let{container:t,context:i,particle:n,delta:o,colorStyles:s,radius:r,opacity:p,transform:f}=e,{effectDrawers:v,shapeDrawers:m}=t.particles,g=n.getPosition(),y=n.getTransformData(f),b=a.Pf,x={x:g.x,y:g.y};i.setTransform(y.a,y.b,y.c,y.d,g.x,g.y),s.fill&&(i.fillStyle=s.fill);let w=!!n.fillEnabled,z=n.strokeWidth??a.Dv;i.lineWidth=z,s.stroke&&(i.strokeStyle=s.stroke);let M={context:i,particle:n,radius:r,drawRadius:r*b,opacity:p,delta:o,pixelRatio:t.retina.pixelRatio,fill:w,stroke:z>a.Dv,transformData:y,position:{...g},drawPosition:x,drawScale:b};for(let e of t.plugins)e.drawParticleTransform?.(M);let S=n.effect?v.get(n.effect):void 0,k=n.shape?m.get(n.shape):void 0;d(S,M),h(k,M),c(k,M),u(k,M),l(S,M),i.resetTransform()}function l(e,t){if(!e?.drawAfter)return;let{particle:i}=t;i.effect&&e.drawAfter(t)}function d(e,t){if(!e?.drawBefore)return;let{particle:i}=t;i.effect&&e.drawBefore(t)}function c(e,t){if(!e)return;let{context:i,fill:a,particle:n,stroke:o}=t;n.shape&&(i.beginPath(),e.draw(t),n.shapeClose&&i.closePath(),o&&i.stroke(),a&&i.fill())}function u(e,t){if(!e?.afterDraw)return;let{particle:i}=t;i.shape&&e.afterDraw(t)}function h(e,t){if(!e?.beforeDraw)return;let{particle:i}=t;i.shape&&e.beforeDraw(t)}function p(e,t,i,a){t.drawParticle&&t.drawParticle(e,i,a)}},1160(e,t,i){i.d(t,{BN:()=>h,EY:()=>k,Jv:()=>F,K6:()=>m,Ko:()=>_,LC:()=>S,OH:()=>w,O_:()=>R,PG:()=>O,R5:()=>v,YL:()=>b,_h:()=>P,ay:()=>x,eg:()=>y,mK:()=>f,pz:()=>E,qe:()=>p,xx:()=>z,yx:()=>A,zI:()=>g});var a=i(3221),n=i(2509),o=i(887),s=i(6055),r=i(4801),l=i(7807);let d=new Map;function c(e,t){let i=d.get(e);return i||(i=t(),d.size>=1e3&&[...d.keys()].slice(0,1e3*n.MX).forEach(e=>d.delete(e)),d.set(e,i)),i}function u(e,t){if(t){for(let i of e.colorManagers.values())if(i.accepts(t))return i.parseString(t)}}function h(e,t,i,a=!0){if(!t)return;let n=(0,o.Kg)(t)?{value:t}:t;if((0,o.Kg)(n.value))return p(e,n.value,i,a);if((0,o.cy)(n.value)){let t=(0,l.Vh)(n.value,i,a);if(!t)return;return h(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleRangeColor(n);if(e)return e}}function p(e,t,i,a=!0){if(!t)return;let s=(0,o.Kg)(t)?{value:t}:t;if((0,o.Kg)(s.value))return s.value===n.mR?w():u(e,s.value);if((0,o.cy)(s.value)){let t=(0,l.Vh)(s.value,i,a);if(!t)return;return p(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleColor(s);if(e)return e}}function f(e,t,i,a=!0){let n=p(e,t,i,a);return n?m(n):void 0}function v(e,t,i,a=!0){let n=h(e,t,i,a);return n?m(n):void 0}function m(e){let t=e.r/n.oi,i=e.g/n.oi,a=e.b/n.oi,o=Math.max(t,i,a),s=Math.min(t,i,a),r={h:n.L1,l:(o+s)*n.MX,s:n.yx};return o!==s&&(r.s=r.l<n.MX?(o-s)/(o+s):(o-s)/(n.gd-o-s),t===o?r.h=(i-a)/(o-s):i===o?r.h=n.gd+(a-t)/(o-s):r.h=n.gd*n.gd+(t-i)/(o-s)),r.l*=n.$_,r.s*=n.eu,r.h*=n.U0,r.h<n.L1&&(r.h+=n.vS),r.h>=n.vS&&(r.h-=n.vS),r}function g(e,t){return u(e,t)?.a}function y(e,t){return u(e,t)}function b(e){let t=(e.h%n.vS+n.vS)%n.vS,i=Math.max(n.yx,Math.min(n.eu,e.s)),a=Math.max(n.vd,Math.min(n.$_,e.l)),o=t/n.vS,s=i/n.eu,r=a/n.$_;if(i===n.yx){let e=Math.round(r*n.oi);return{r:e,g:e,b:e}}let l=(e,t,i)=>(i<0&&i++,i>1&&i--,i*n.zg<1)?e+(t-e)*n.zg*i:i*n.gd<1?t:i*n.Nu<+n.gd?e+(t-e)*(n.gd/n.Nu-i)*n.zg:e,d=r<n.MX?r*(n.aE+s):r+s-r*s,c=n.gd*r-d,u=n.BF/n.Nu;return{r:Math.round(Math.min(n.oi,n.oi*l(c,d,o+u))),g:Math.round(Math.min(n.oi,n.oi*l(c,d,o))),b:Math.round(Math.min(n.oi,n.oi*l(c,d,o-u)))}}function x(e){let t=b(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function w(e){let t=e??n.Fl,i=n.oi+n.D_,o=()=>Math.floor((0,a.e4)(t,i));return{b:o(),g:o(),r:o()}}function z(e,t,i){let a=i??n.hv;return c(`rgb-${e.r.toFixed(2)}-${e.g.toFixed(2)}-${e.b.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,o;return t?M(e,i):(a=e,o=i,`rgba(${a.r.toString()}, ${a.g.toString()}, ${a.b.toString()}, ${(o??n.hv).toString()})`)})}function M(e,t){return`color(display-p3 ${(e.r/n.oi).toString()} ${(e.g/n.oi).toString()} ${(e.b/n.oi).toString()} / ${(t??n.hv).toString()})`}function S(e,t,i){let a=i??n.hv;return c(`hsl-${e.h.toFixed(2)}-${e.s.toFixed(2)}-${e.l.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,o,s,r;return t?(a=e,o=i,M(b(a),o)):(s=e,r=i,`hsla(${s.h.toString()}, ${s.s.toString()}%, ${s.l.toString()}%, ${(r??n.hv).toString()})`)})}function k(e,t,i,n){let o=e,s=t;return"r"in o||(o=b(e)),"r"in s||(s=b(t)),{b:(0,a.jh)(o.b,s.b,i,n),g:(0,a.jh)(o.g,s.g,i,n),r:(0,a.jh)(o.r,s.r,i,n)}}function P(e,t,i){if(i===n.mR)return w();if(i!==n.BW)return i;{let i=e.getFillColor()??e.getStrokeColor(),a=t?.getFillColor()??t?.getStrokeColor();if(i&&a&&t)return k(i,a,e.getRadius(),t.getRadius());{let e=i??a;if(e)return b(e)}}}function O(e,t,i,a){let s=(0,o.Kg)(t)?t:t.value;return s===n.mR?a?h(e,{value:s}):i?n.mR:n.BW:s===n.BW?n.BW:h(e,{value:s})}function R(e){return void 0===e?void 0:{h:e.h.value,s:e.s.value,l:e.l.value}}function E(e,t,i){let a={h:{enable:!1,value:e.h,min:n.L1,max:n.vS},s:{enable:!1,value:e.s,min:n.yx,max:n.eu},l:{enable:!1,value:e.l,min:n.vd,max:n.$_}};return t&&(T(a.h,t.h,i),T(a.s,t.s,i),T(a.l,t.l,i)),a}function T(e,t,i){e.enable=t.enable,e.min=t.min,e.max=t.max,e.enable?(e.velocity=(0,a.VG)(t.speed)/n.a5*i,e.decay=n.WH-(0,a.VG)(t.decay),e.status=r.H.increasing,e.loops=n.hK,e.maxLoops=(0,a.VG)(t.count),e.time=n.tR,e.delayTime=(0,a.VG)(t.delay)*n.Xu,t.sync||(e.velocity*=(0,a.G0)(),e.value*=(0,a.G0)()),e.initialValue=e.value,e.offset=(0,a.DT)(t.offset)):e.velocity=n.jn}function _(e,t,i){if(!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=i.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let n=e.offset?(0,a.vE)(e.offset):0,o=(e.velocity??0)*i.factor+3.6*n,s=e.decay??1,l=e.max,d=e.min;t&&e.status!==r.H.increasing?(e.value-=o,e.value<d&&(e.loops??=0,e.loops++,e.status=r.H.increasing)):(e.value+=o,e.value>l&&(e.loops??=0,e.loops++,t?e.status=r.H.decreasing:e.value-=l)),e.velocity&&1!==s&&(e.velocity*=s),e.value=(0,a.qE)(e.value,d,l)}function F(e,t){if(!e)return;let{h:i,s:a,l:n}=e;_(i,!1,t),_(a,!0,t),_(n,!0,t)}function A(e,t,i){return{h:e.h,s:e.s,l:e.l+(t===s.H.darken?-n.iU:n.iU)*i}}},3535(e,t,i){i.d(t,{B:()=>n,t:()=>o});let a={debug:console.debug,error:(e,t)=>{console.error(`tsParticles - Error - ${e}`,t)},info:console.info,log:console.log,verbose:console.log,warning:console.warn};function n(e){a.debug=e.debug,a.error=e.error,a.info=e.info,a.log=e.log,a.verbose=e.verbose,a.warning=e.warning}function o(){return a}},3221(e,t,i){i.d(t,{$m:()=>R,AD:()=>p,DT:()=>function e(t,i){if(t===i||void 0===i&&(0,s.Et)(t))return t;let a=x(t),n=w(t);return void 0!==i?{min:Math.min(a,i),max:Math.max(n,i)}:e(a,n)},G0:()=>u,JY:()=>O,M3:()=>D,Mh:()=>_,Nx:()=>A,OE:()=>c,OW:()=>E,Sc:()=>M,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>S,e4:()=>h,eh:()=>T,gp:()=>k,i0:()=>f,jh:()=>g,l1:()=>F,pu:()=>P,px:()=>v,qE:()=>m,qM:()=>I,vE:()=>y,vr:()=>z});var a=i(5518),n=i(2509),o=i(2056),s=i(887);let r=Math.PI/180,l=Math.random,d={nextFrame:e=>requestAnimationFrame(e),cancel:e=>{cancelAnimationFrame(e)}};function c(e=Math.random){l=e}function u(){return m(l(),0,1-Number.EPSILON)}function h(e,t){return u()*(t-e)+e}function p(e,t){d.nextFrame=e,d.cancel=t}function f(e){return d.nextFrame(e)}function v(e){d.cancel(e)}function m(e,t,i){return Math.min(Math.max(e,t),i)}function g(e,t,i,a){return Math.floor((e*i+t*a)/(i+a))}function y(e){let t=w(e),i=x(e);return t===i&&(i=0),h(i,t)}function b(e){return(0,s.Et)(e)?e:y(e)}function x(e){return(0,s.Et)(e)?e:e.min}function w(e){return(0,s.Et)(e)?e:e.max}function z(e,t){let i=e.x-t.x,a=e.y-t.y;return{dx:i,dy:a,distance:Math.hypot(i,a)}}function M(e,t){let i=e.x-t.x,a=e.y-t.y;return i*i+a*a}function S(e,t){return Math.sqrt(M(e,t))}function k(e,t,i){return M(e,t)<=i*i}function P(e){return e*r}function O(e,t,i){if((0,s.Et)(e))return e*r;switch(e){case a.F.top:return-Math.PI*n.MX;case a.F.topRight:return-Math.PI*n.$G;case a.F.right:return n.Ie;case a.F.bottomRight:return Math.PI*n.$G;case a.F.bottom:return Math.PI*n.MX;case a.F.bottomLeft:return Math.PI*n.Rq;case a.F.left:return Math.PI;case a.F.topLeft:return-Math.PI*n.Rq;case a.F.inside:return Math.atan2(i.y-t.y,i.x-t.x);case a.F.outside:return Math.atan2(t.y-i.y,t.x-i.x);default:return u()*n.R1}}function R(e){let t=o.M.origin;return t.length=1,t.angle=e,t}function E(e,t,i,a){return o.M.create(e.x*(i-a)/(i+a)+t.x*n.gd*a/(i+a),e.y)}function T(e){return e.position?.x!==void 0&&void 0!==e.position.y?{x:e.position.x*e.size.width/n.a5,y:e.position.y*e.size.height/n.a5}:void 0}function _(e){return{x:(e.position?.x??u()*n.a5)*e.size.width/n.a5,y:(e.position?.y??u()*n.a5)*e.size.height/n.a5}}function F(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return _({size:e.size,position:t})}function A(e){let{position:t,size:i}=e;return{x:t?.x??u()*i.width,y:t?.y??u()*i.height}}function I(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return A({size:e.size,position:t})}function D(e){return e?e.endsWith("%")?parseFloat(e)/n.a5:parseFloat(e):1}},8507(e,t,i){i.d(t,{Z:()=>n,y:()=>o});var a=i(8509);function n(e,...t){for(let i of t)e.load(i)}function o(e,t,...i){let s=new a.U(e,t);return n(s,...i),s}},887(e,t,i){function a(e){return"boolean"==typeof e}function n(e){return"string"==typeof e}function o(e){return"number"==typeof e}function s(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}function l(e){return Array.isArray(e)}function d(e){return null==e}i.d(t,{Et:()=>o,Gv:()=>r,Kg:()=>n,Lm:()=>a,Tn:()=>s,cy:()=>l,kZ:()=>d})},7807(e,t,i){i.d(t,{AE:()=>S,BR:()=>g,Bj:()=>p,E9:()=>F,HQ:()=>C,Kp:()=>V,O2:()=>M,Ot:()=>$,T5:()=>v,TA:()=>R,Tg:()=>k,Tj:()=>z,UC:()=>I,Vh:()=>w,Xs:()=>T,YC:()=>A,hJ:()=>L,hn:()=>b,lV:()=>m,n0:()=>x,pE:()=>P,q8:()=>f,tG:()=>y,td:()=>D,w3:()=>E,wJ:()=>O,zw:()=>function e(t,...i){for(let a of i){if((0,o.kZ)(a))continue;if(!(0,o.Gv)(a)){t=a;continue}Array.isArray(a)?Array.isArray(t)||(t=[]):(!(0,o.Gv)(t)||Array.isArray(t))&&(t={});let i=Object.keys(a),n=new Set(["__proto__","constructor","prototype"]);if(!i.some(e=>{let t=a[e];return(0,o.Gv)(t)||Array.isArray(t)})){let e=t;for(let t of i)if(!n.has(t)&&t in a){let i=a[t];void 0!==i&&(e[t]=i)}continue}for(let o of i){if(n.has(o))continue;let i=t,s=a[o];i[o]=Array.isArray(s)?s.map(t=>e(void 0,t)):e(i[o],s)}}return t}});var a=i(3221),n=i(2509),o=i(887),s=i(7287),r=i(4801),l=i(5869),d=i(9754),c=i(5781),u=i(8918),h=i(2056);function p(e,t){let i=new Map,a=t?.maxSize,n=t?.ttlMs,o=t?.keyFn,s=(e,t=new WeakSet)=>{if(null===e)return"null";let i=typeof e;if("undefined"===i)return"undefined";if("number"===i||"boolean"===i||"string"===i)return JSON.stringify(e);if("function"===i)try{return e.toString()}catch{return'"[Function]"'}if("symbol"===i)try{return e.toString()}catch{return'"[Symbol]"'}if(Array.isArray(e))return`[${e.map(e=>s(e,t)).join(",")}]`;if(t.has(e))return'"[Circular]"';t.add(e);let a=Object.keys(e).sort();return`{${a.map(i=>`${JSON.stringify(i)}:${s(e[i],t)}`).join(",")}}`};return(...t)=>{let r,l=(r=t,o?o(r):s(r)),d=Date.now(),c=i.get(l);if(void 0!==c)if(!n||!(d-c.ts>n))return i.delete(l),i.set(l,{value:c.value,ts:c.ts}),c.value;else i.delete(l);let u=e(...t);if(i.set(l,{value:u,ts:d}),"number"==typeof a&&a>=0)for(;i.size>a;){let e=i.keys().next().value;if(void 0===e)break;i.delete(e)}return u}}function f(){return"u">typeof matchMedia}function v(){return globalThis.document}function m(e){if(f())return matchMedia(e)}function g(e){if("u">typeof IntersectionObserver)return new IntersectionObserver(e)}function y(e){if("u">typeof MutationObserver)return new MutationObserver(e)}function b(e,t){return e===t||(0,o.cy)(t)&&t.includes(e)}function x(e){return Math.floor((0,a.G0)()*e.length)}function w(e,t,i=!0){return e[void 0!==t&&i?t%e.length:x(e)]}function z(e,t,i,a,n){return M(S(e,a??0),t,i,n)}function M(e,t,i,a){let n=!0;return a&&a!==d.v.bottom||(n=e.top<t.height+i.x),n&&(!a||a===d.v.left)&&(n=e.right>i.x),n&&(!a||a===d.v.right)&&(n=e.left<t.width+i.y),n&&(!a||a===d.v.top)&&(n=e.bottom>i.y),n}function S(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function k(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:h.M.create((0,a.VG)(e.options.bounce.horizontal.value),(0,a.VG)(e.options.bounce.vertical.value))}}function P(e,t){let{x:i,y:n}=e.velocity.sub(t.velocity),[o,s]=[e.position,t.position],{dx:r,dy:l}=(0,a.vr)(s,o);if(i*r+n*l<0)return;let d=-Math.atan2(l,r),c=e.mass,u=t.mass,h=e.velocity.rotate(d),p=t.velocity.rotate(d),f=(0,a.OW)(h,p,c,u),v=(0,a.OW)(p,h,c,u),m=f.rotate(-d),g=v.rotate(-d);e.velocity.x=m.x*e.factor.x,e.velocity.y=m.y*e.factor.y,t.velocity.x=g.x*t.factor.x,t.velocity.y=g.y*t.factor.y}function O(e,t){return(0,o.cy)(e)?e.map((e,i)=>t(e,i)):t(e,0)}function R(e,t,i){return(0,o.cy)(e)?w(e,t,i):e}function E(e,t){return(0,o.cy)(e)?e.find((e,i)=>t(e,i)):t(e,0)?e:void 0}function T(e,t){let i=e.value,o=e.animation,l={delayTime:(0,a.VG)(o.delay)*n.Xu,enable:o.enable,value:(0,a.VG)(e.value)*t,max:(0,a.W9)(i)*t,min:(0,a.Sg)(i)*t,loops:0,maxLoops:(0,a.VG)(o.count),time:0};if(o.enable){switch(l.decay=1-(0,a.VG)(o.decay),o.mode){case s.g.increase:l.status=r.H.increasing;break;case s.g.decrease:l.status=r.H.decreasing;break;case s.g.random:l.status=(0,a.G0)()>=n.MX?r.H.increasing:r.H.decreasing}let e=o.mode===s.g.auto;switch(o.startValue){case u.S.min:l.value=l.min,e&&(l.status=r.H.increasing);break;case u.S.max:l.value=l.max,e&&(l.status=r.H.decreasing);break;case u.S.random:default:l.value=(0,a.vE)(l),e&&(l.status=(0,a.G0)()>=n.MX?r.H.increasing:r.H.decreasing)}}return l.initialValue=l.value,l}function _(e,t){if(e.mode!==c.q.percent){let{mode:t,...i}=e;return i}return"x"in e?{x:e.x/n.a5*t.width,y:e.y/n.a5*t.height}:{width:e.width/n.a5*t.width,height:e.height/n.a5*t.height}}function F(e,t){return _(e,t)}function A(e,t){return _(e,t)}function I(e,t,i,n,o){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;let s=(t.velocity??0)*o.factor,d=t.min,c=t.max,u=t.decay??1;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=o.value),!((t.delayTime??0)>0)||!(t.time<(t.delayTime??0))){switch(t.status){case r.H.increasing:t.value>=c?(i?t.status=r.H.decreasing:t.value-=c,t.loops??=0,t.loops++):t.value+=s;break;case r.H.decreasing:t.value<=d?(i?t.status=r.H.increasing:t.value+=c,t.loops??=0,t.loops++):t.value-=s}t.velocity&&1!==u&&(t.velocity*=u);var h=t.value;switch(n){case l.V.max:h>=c&&e.destroy();break;case l.V.min:h<=d&&e.destroy()}t.value=(0,a.qE)(t.value,d,c)}}function D(e){let t=v().createElement("div").style;for(let i in e){let a=e[i];if(!(i in e)||(0,o.kZ)(a))continue;let n=e.getPropertyValue?.(a);if(!n)continue;let s=e.getPropertyPriority?.(a);s?t.setProperty(a,n,s):t.setProperty(a,n)}return t}let L=p(function(e){let t=v().createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:e.toString(10),"z-index":e.toString(10),top:"0",left:"0"};for(let e in i){let a=i[e];void 0!==a&&t.setProperty(e,a)}return t});function V(e,t,i,a,n){if(a){let a={passive:!0};(0,o.Lm)(n)?a.capture=n:void 0!==n&&(a=n),e.addEventListener(t,i,a)}else e.removeEventListener(t,i,n)}async function C(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=await Promise.all([...i.values()].map(t=>t(e))),t.set(e,n)),n}async function $(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=new Map(await Promise.all([...i.entries()].map(([t,i])=>i(e).then(e=>[t,e])))),t.set(e,n)),n}},1989(e,t,i){i.d(t,{HKZ:()=>P.H,A9e:()=>_.A,gmr:()=>z.g,pK_:()=>F.p,H_P:()=>T.H,Jmi:()=>er.Jm,VS$:()=>A.V,dgY:()=>y.dg,jlt:()=>y.jl,evc:()=>I.e,VKE:()=>O.V,mgy:()=>l,Bx4:()=>h.B,SQl:()=>Z.S,mcU:()=>D.m,hqM:()=>r,i74:()=>L.i,dtg:()=>M.d,yUV:()=>H.y,hzL:()=>K.h,Zgv:()=>j.Z,FWc:()=>x.F,y1u:()=>N.y,vU7:()=>U.v,Y4E:()=>ee.Y,IhC:()=>et.I,JYR:()=>V.J,Oit:()=>C.O,Yzx:()=>S.Y,v5k:()=>w.v,j$q:()=>W.j,x_I:()=>R.x,wvn:()=>$.w,F5W:()=>B.F,M1g:()=>Q.M,NeW:()=>Y.N,Ad4:()=>J.A,UOj:()=>G.U,qiC:()=>k.q,Q4c:()=>F.Q,AIw:()=>er.AI,M_G:()=>y.M_,z0z:()=>es.z,pTR:()=>s,ypk:()=>ei.y,or0:()=>ea.o,qvJ:()=>en.q,tKH:()=>X.t,SKz:()=>E.S,tcj:()=>q.t,PVU:()=>er.PV,Miz:()=>b.M,pGL:()=>b.p,Pyx:()=>eo.P,yxh:()=>ed.yx,i0Z:()=>f.i0,O2_:()=>c.O2,n02:()=>c.n0,NxB:()=>f.Nx,qMV:()=>f.qM,ehY:()=>f.eh,MhH:()=>f.Mh,l1q:()=>f.l1,AEc:()=>c.AE,pxm:()=>f.px,Nxk:()=>d.Nx,RFH:()=>d.RF,gpg:()=>f.gp,pEn:()=>c.pE,Tgl:()=>c.Tg,qE8:()=>f.qE,IUd:()=>el.IU,td3:()=>c.td,OWw:()=>f.OW,EYT:()=>ed.EY,mKQ:()=>ed.mK,qe:()=>ed.qe,nqC:()=>d.nq,WH8:()=>d.WH,zwS:()=>c.zw,aZx:()=>d.aZ,tAJ:()=>d.tA,yjn:()=>d.yj,lA:()=>d.lA,z$P:()=>d.z$,i8E:()=>d.i8,hKc:()=>d.hK,hvP:()=>d.hv,$xb:()=>d.$x,ZpR:()=>d.Zp,xd3:()=>d.xd,rqX:()=>d.rq,Fli:()=>d.Fl,tRb:()=>d.tR,UgP:()=>d.Ug,zss:()=>d.zs,jnW:()=>d.jn,Pf9:()=>d.Pf,puj:()=>f.pu,LDU:()=>d.LD,gdl:()=>d.gd,R1e:()=>d.R1,kac:()=>el.k,z5n:()=>el.z5,p0m:()=>el.p0,Wbn:()=>el.Wb,KG7:()=>el.KG,gF3:()=>el.gF,VGT:()=>el.VG,Iex:()=>d.Ie,wJ2:()=>c.wJ,w3Z:()=>c.w3,eb4:()=>d.eb,X$G:()=>d.X$,cei:()=>d.ce,YfF:()=>f.Yf,Scl:()=>f.Sc,vrU:()=>f.vr,hJS:()=>c.hJ,pzy:()=>ed.pz,O_i:()=>ed.O_,OtU:()=>c.Ot,HQK:()=>c.HQ,_hh:()=>ed._h,PGG:()=>ed.PG,tZQ:()=>p.t,$mf:()=>f.$m,JYE:()=>f.JY,E90:()=>c.E9,G0i:()=>f.G0,e4g:()=>f.e4,OHq:()=>ed.OH,W9e:()=>f.W9,Sgh:()=>f.Sg,VGA:()=>f.VG,YCE:()=>c.YC,LCf:()=>ed.LC,xxz:()=>ed.xx,vSh:()=>d.vS,L1V:()=>d.L1,U0s:()=>d.U0,MXx:()=>d.MX,q8J:()=>c.q8,YLU:()=>ed.YL,ayx:()=>ed.ay,D_O:()=>d.D_,XsS:()=>c.Xs,hBr:()=>d.hB,cyL:()=>eu.cy,Lmq:()=>eu.Lm,Tnt:()=>eu.Tn,hnD:()=>c.hn,kZJ:()=>eu.kZ,EtT:()=>eu.Et,Gvm:()=>eu.Gv,Tj8:()=>c.Tj,KgX:()=>eu.Kg,Vh1:()=>c.Vh,TA3:()=>c.TA,iUN:()=>d.iU,$_c:()=>d.$_,vd6:()=>d.vd,K3:()=>d.K3,PZY:()=>d.PZ,ZGK:()=>ec.Z,yVN:()=>ec.y,$v4:()=>d.$v,KpY:()=>c.Kp,BjF:()=>c.Bj,BWm:()=>d.BW,XuV:()=>d.Xu,wMU:()=>d.wM,DNI:()=>d.DN,z94:()=>d.z9,ou7:()=>d.ou,Dvh:()=>d.Dv,GWL:()=>d.GW,X_1:()=>d.X_,w20:()=>d.w2,jhA:()=>f.jh,dvp:()=>d.dv,xHs:()=>d.xH,boI:()=>d.bo,SnF:()=>el.Sn,MdX:()=>el.Md,M3Y:()=>f.M3,a56:()=>d.a5,BFN:()=>d.BF,$GP:()=>d.$G,mRf:()=>d.mR,vEz:()=>f.vE,R5R:()=>ed.R5,BN0:()=>ed.BN,JC0:()=>d.JC,vFD:()=>d.vF,NFi:()=>d.NF,oiR:()=>d.oi,K6u:()=>ed.K6,euA:()=>d.eu,yxQ:()=>d.yx,aEA:()=>d.aE,T5G:()=>c.T5,BRq:()=>c.BR,lVH:()=>c.lV,tGT:()=>c.tG,ADE:()=>f.AD,Bro:()=>p.B,OEu:()=>f.OE,DT4:()=>f.DT,zgn:()=>d.zg,iXO:()=>d.iX,dmB:()=>d.dm,zIs:()=>ed.zI,egF:()=>ed.eg,RqE:()=>d.Rq,NuQ:()=>d.Nu,Eow:()=>d.Eo,$k3:()=>eh,UC0:()=>c.UC,JvX:()=>ed.Jv,Kog:()=>ed.Ko,nKi:()=>d.nK,RVs:()=>d.RV});var a,n,o,s,r,l,d=i(2509),c=i(7807);class u{_listeners;constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let i=this._listeners.get(e);i||(i=[],this._listeners.set(e,i)),i.push(t)}dispatchEvent(e,t){let i=this._listeners.get(e);i?.forEach(e=>{e(t)})}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){let i=this._listeners.get(e);if(!i)return;let a=i.length,n=i.indexOf(t);n<d.z9||(a===d.LD?this._listeners.delete(e):i.splice(n,d.LD))}}var h=i(4967),p=i(3535),f=i(3221);let v="100%";async function m(e){let t=(0,c.TA)(e.url,e.index);if(!t)return e.fallback;let i=await fetch(t);return i.ok?await i.json():((0,p.t)().error(`${i.status.toString()} while retrieving config file`),e.fallback)}class g{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;_allLoadersSet=new Set;_configs=new Map;_domArray=[];_eventDispatcher=new u;_executedSet=new Set;_initialized=!1;_isRunningLoaders=!1;_loadPromises=new Set;get configs(){let e={};for(let[t,i]of this._configs)e[t]=i;return e}get items(){return this._domArray}get version(){return"4.0.0-beta.0"}addColorManager(e,t){this.colorManagers.set(e,t)}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._eventDispatcher.dispatchEvent(h.B.configAdded,{data:{name:t,config:e}})}addEasing(e,t){this.easingFunctions.get(e)||this.easingFunctions.set(e,t)}addEffect(e,t){this.initializers.effects.set(e,t)}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}addPalette(e,t){this.palettes.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.set(e,t)}addPlugin(e){this.getPlugin(e.id)||this.plugins.push(e)}addPreset(e,t,i=!1){(i||!this.getPreset(e))&&this.presets.set(e,t)}addShape(e,t){for(let i of e)this.initializers.shapes.set(i,t)}checkVersion(e){if(this.version!==e)throw Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}clearPlugins(e){this.effectDrawers.delete(e),this.shapeDrawers.delete(e),this.updaters.delete(e)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawers(e,t=!1){return(0,c.Ot)(e,this.effectDrawers,this.initializers.effects,t)}getPalette(e){return this.palettes.get(e)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}async getShapeDrawers(e,t=!1){return(0,c.Ot)(e,this.shapeDrawers,this.initializers.shapes,t)}async getUpdaters(e,t=!1){return(0,c.HQ)(e,this.updaters,this.initializers.updaters,t)}async init(){if(!this._initialized&&!this._isRunningLoaders){this._isRunningLoaders=!0,this._executedSet=new Set,this._allLoadersSet=new Set(this._loadPromises);try{for(let e of this._allLoadersSet)await this._runLoader(e,this._executedSet,this._allLoadersSet)}finally{this._loadPromises.clear(),this._isRunningLoaders=!1,this._initialized=!0}}}item(e){let{items:t}=this,i=t[e];return i?.destroyed?void t.splice(e,d.JC):i}async load(e){var t;let a,n;await this.init();let{Container:o}=await i.e(149).then(i.bind(i,4149)),s=e.id??e.element?.id??`tsparticles${Math.floor((0,f.G0)()*d.$v).toString()}`,{index:r,url:l}=e,u=l?await m({fallback:e.options,url:l,index:r}):e.options,h=(0,c.TA)(u,r),{items:p}=this,g=p.findIndex(e=>e.id.description===s),y=new o(this,s,h);if(g>=d.PZ){let e=this.item(g),t=e?d.xH:d.dv;e&&!e.destroyed&&e.destroy(!1),p.splice(g,t,y)}else p.push(y);let b=(e=>{let t,i=(0,c.T5)();if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===d.RF)t=e,t.dataset[d.eb]??=d.X$;else{let a=e.getElementsByTagName(d.RF)[d.Nx];a?(t=a).dataset[d.eb]=d.X$:((t=i.createElement(d.RF)).dataset[d.eb]=d.ce,e.appendChild(t))}return t.style.width||=v,t.style.height||=v,t})((t=e.element,a=(0,c.T5)(),(n=t??a.getElementById(s))||((n=a.createElement("div")).id=s,n.dataset[d.eb]=d.ce,a.body.append(n)),n));return y.canvas.loadCanvas(b),await y.start(),y}loadParticlesOptions(e,t,...i){let a=this.updaters.get(e);a&&a.forEach(e=>e.loadOptions?.(t,...i))}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}async register(...e){if(this._initialized)throw Error("Register plugins can only be done before calling tsParticles.load()");for(let t of e)this._isRunningLoaders?await this._runLoader(t,this._executedSet,this._allLoadersSet):this._loadPromises.add(t)}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}async _runLoader(e,t,i){t.has(e)||(t.add(e),i.add(e),await e(this))}}var y=i(1810),b=i(2056),x=i(5518);(a=s||(s={})).clockwise="clockwise",a.counterClockwise="counter-clockwise",a.random="random";var w=i(9754),z=i(7287),M=i(2402),S=i(481),k=i(5781),P=i(6055),O=i(5869);(n=r||(r={})).linear="linear",n.radial="radial",n.random="random";var R=i(777),E=i(8918);(o=l||(l={})).easeInBack="ease-in-back",o.easeInBounce="ease-in-bounce",o.easeInCirc="ease-in-circ",o.easeInCubic="ease-in-cubic",o.easeInElastic="ease-in-elastic",o.easeInExpo="ease-in-expo",o.easeInGaussian="ease-in-gaussian",o.easeInLinear="ease-in-linear",o.easeInQuad="ease-in-quad",o.easeInQuart="ease-in-quart",o.easeInQuint="ease-in-quint",o.easeInSigmoid="ease-in-sigmoid",o.easeInSine="ease-in-sine",o.easeInSmoothstep="ease-in-smoothstep",o.easeOutBack="ease-out-back",o.easeOutBounce="ease-out-bounce",o.easeOutCirc="ease-out-circ",o.easeOutCubic="ease-out-cubic",o.easeOutElastic="ease-out-elastic",o.easeOutExpo="ease-out-expo",o.easeOutGaussian="ease-out-gaussian",o.easeOutLinear="ease-out-linear",o.easeOutQuad="ease-out-quad",o.easeOutQuart="ease-out-quart",o.easeOutQuint="ease-out-quint",o.easeOutSigmoid="ease-out-sigmoid",o.easeOutSine="ease-out-sine",o.easeOutSmoothstep="ease-out-smoothstep",o.easeInOutBack="ease-in-out-back",o.easeInOutBounce="ease-in-out-bounce",o.easeInOutCirc="ease-in-out-circ",o.easeInOutCubic="ease-in-out-cubic",o.easeInOutElastic="ease-in-out-elastic",o.easeInOutExpo="ease-in-out-expo",o.easeInOutGaussian="ease-in-out-gaussian",o.easeInOutLinear="ease-in-out-linear",o.easeInOutQuad="ease-in-out-quad",o.easeInOutQuart="ease-in-out-quart",o.easeInOutQuint="ease-in-out-quint",o.easeInOutSigmoid="ease-in-out-sigmoid",o.easeInOutSine="ease-in-out-sine",o.easeInOutSmoothstep="ease-in-out-smoothstep";var T=i(4801),_=i(3233),F=i(7568),A=i(3087),I=i(1043),D=i(3901),L=i(3447),V=i(7752),C=i(3061),$=i(1172),B=i(9903),G=i(8509),Z=i(4821),q=i(5216),H=i(5977),K=i(558),j=i(6136),N=i(6139),W=i(4084),U=i(9760),X=i(9784),Y=i(5384),J=i(2729),Q=i(3341),ee=i(5353),et=i(9971),ei=i(6373),ea=i(929),en=i(7211),eo=i(8491),es=i(5398),er=i(6864),el=i(6083),ed=i(1160),ec=i(8507),eu=i(887);let eh=new g;globalThis.tsParticles=eh}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return a[e](i,i.exports,o),i.exports}o.m=a,o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((t,i)=>(o.f[i](e,t),t),[])),o.u=e=>""+e+".min.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s={},o.l=(e,t,i,a)=>{if(s[e])return void s[e].push(t);if(void 0!==i)for(var n,r,l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var c=l[d];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")=="@tsparticles/fireworks:"+i){n=c;break}}n||(r=!0,(n=document.createElement("script")).charset="utf-8",o.nc&&n.setAttribute("nonce",o.nc),n.setAttribute("data-webpack","@tsparticles/fireworks:"+i),n.src=e),s[e]=[t];var u=(t,i)=>{n.onerror=n.onload=null,clearTimeout(h);var a=s[e];if(delete s[e],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach(e=>e(i)),t)return t(i)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=u.bind(null,n.onerror),n.onload=u.bind(null,n.onload),r&&document.head.appendChild(n)},o.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.g.importScripts&&(r=o.g.location+"");var s,r,l=o.g.document;if(!r&&l&&(l.currentScript&&"SCRIPT"===l.currentScript.tagName.toUpperCase()&&(r=l.currentScript.src),!r)){var d=l.getElementsByTagName("script");if(d.length)for(var c=d.length-1;c>-1&&(!r||!/^http(s?):/.test(r));)r=d[c--].src}if(!r)throw Error("Automatic publicPath is not supported in this browser");o.p=r=r.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e={827:0},o.f.j=(t,i)=>{var a=o.o(e,t)?e[t]:void 0;if(0!==a)if(a)i.push(a[2]);else{var n=new Promise((i,n)=>a=e[t]=[i,n]);i.push(a[2]=n);var s=o.p+o.u(t),r=Error();o.l(s,i=>{if(o.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;r.message="Loading chunk "+t+` failed.
2
- (`+n+": "+s+")",r.name="ChunkLoadError",r.type=n,r.request=s,a[1](r)}},"chunk-"+t,t)}},t=(t,i)=>{var a,n,[s,r,l]=i,d=0;if(s.some(t=>0!==e[t])){for(a in r)o.o(r,a)&&(o.m[a]=r[a]);l&&l(o)}for(t&&t(i);d<s.length;d++)n=s[d],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0},(i=this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i));var u={};o.r(u),o.d(u,{AlterType:()=>h.HKZ,AnimatableColor:()=>h.A9e,AnimationMode:()=>h.gmr,AnimationOptions:()=>h.pK_,AnimationStatus:()=>h.H_P,AnimationValueWithRandom:()=>h.Jmi,Background:()=>h.VS$,BaseRange:()=>h.dgY,Circle:()=>h.jlt,ColorAnimation:()=>h.evc,DestroyType:()=>h.VKE,EasingType:()=>h.mgy,EventType:()=>h.Bx4,Fill:()=>h.SQl,FullScreen:()=>h.mcU,GradientType:()=>h.hqM,HslAnimation:()=>h.i74,LimitMode:()=>h.dtg,Move:()=>h.yUV,MoveAngle:()=>h.hzL,MoveCenter:()=>h.Zgv,MoveDirection:()=>h.FWc,MoveGravity:()=>h.y1u,MovePath:()=>h.vU7,Opacity:()=>h.Y4E,OpacityAnimation:()=>h.IhC,Options:()=>h.JYR,OptionsColor:()=>h.Oit,OutMode:()=>h.Yzx,OutModeDirection:()=>h.v5k,OutModes:()=>h.j$q,ParticleOutType:()=>h.x_I,ParticlesBounce:()=>h.wvn,ParticlesBounceFactor:()=>h.F5W,ParticlesDensity:()=>h.M1g,ParticlesNumber:()=>h.NeW,ParticlesNumberLimit:()=>h.Ad4,ParticlesOptions:()=>h.UOj,PixelMode:()=>h.qiC,RangedAnimationOptions:()=>h.Q4c,RangedAnimationValueWithRandom:()=>h.AIw,Rectangle:()=>h.M_G,ResizeEvent:()=>h.z0z,RotateDirection:()=>h.pTR,Shape:()=>h.ypk,Size:()=>h.or0,SizeAnimation:()=>h.qvJ,Spin:()=>h.tKH,StartValueType:()=>h.SKz,Stroke:()=>h.tcj,ValueWithRandom:()=>h.PVU,Vector:()=>h.Miz,Vector3d:()=>h.pGL,ZIndex:()=>h.Pyx,alterHsl:()=>h.yxh,animate:()=>h.i0Z,areBoundsInside:()=>h.O2_,arrayRandomIndex:()=>h.n02,calcExactPositionOrRandomFromSize:()=>h.NxB,calcExactPositionOrRandomFromSizeRanged:()=>h.qMV,calcPositionFromSize:()=>h.ehY,calcPositionOrRandomFromSize:()=>h.MhH,calcPositionOrRandomFromSizeRanged:()=>h.l1q,calculateBounds:()=>h.AEc,cancelAnimation:()=>h.pxm,canvasFirstIndex:()=>h.Nxk,canvasTag:()=>h.RFH,checkDistance:()=>h.gpg,circleBounce:()=>h.pEn,circleBounceDataFromParticle:()=>h.Tgl,clamp:()=>h.qE8,clear:()=>h.IUd,cloneStyle:()=>h.td3,collisionVelocity:()=>h.OWw,colorMix:()=>h.EYT,colorToHsl:()=>h.mKQ,colorToRgb:()=>h.qe,countOffset:()=>h.nqC,decayOffset:()=>h.WH8,deepExtend:()=>h.zwS,defaultAlpha:()=>h.aZx,defaultAngle:()=>h.tAJ,defaultCompositeValue:()=>h.yjn,defaultDensityFactor:()=>h.lA,defaultFps:()=>h.z$P,defaultFpsLimit:()=>h.i8E,defaultLoops:()=>h.hKc,defaultOpacity:()=>h.hvP,defaultRatio:()=>h.$xb,defaultReduceFactor:()=>h.ZpR,defaultRemoveQuantity:()=>h.xd3,defaultRetryCount:()=>h.rqX,defaultRgbMin:()=>h.Fli,defaultTime:()=>h.tRb,defaultTransform:()=>h.UgP,defaultTransformValue:()=>h.zss,defaultVelocity:()=>h.jnW,defaultZoom:()=>h.Pf9,degToRad:()=>h.puj,deleteCount:()=>h.LDU,double:()=>h.gdl,doublePI:()=>h.R1e,drawAfterEffect:()=>h.kac,drawBeforeEffect:()=>h.z5n,drawParticle:()=>h.p0m,drawParticlePlugin:()=>h.Wbn,drawShape:()=>h.KG7,drawShapeAfterDraw:()=>h.gF3,drawShapeBeforeDraw:()=>h.VGT,empty:()=>h.Iex,executeOnSingleOrMultiple:()=>h.wJ2,findItemFromSingleOrMultiple:()=>h.w3Z,fireworks:()=>b,generatedAttribute:()=>h.eb4,generatedFalse:()=>h.X$G,generatedTrue:()=>h.cei,getDistance:()=>h.YfF,getDistanceSq:()=>h.Scl,getDistances:()=>h.vrU,getFullScreenStyle:()=>h.hJS,getHslAnimationFromHsl:()=>h.pzy,getHslFromAnimation:()=>h.O_i,getItemMapFromInitializer:()=>h.OtU,getItemsFromInitializer:()=>h.HQK,getLinkColor:()=>h._hh,getLinkRandomColor:()=>h.PGG,getLogger:()=>h.tZQ,getParticleBaseVelocity:()=>h.$mf,getParticleDirectionAngle:()=>h.JYE,getPosition:()=>h.E90,getRandom:()=>h.G0i,getRandomInRange:()=>h.e4g,getRandomRgbColor:()=>h.OHq,getRangeMax:()=>h.W9e,getRangeMin:()=>h.Sgh,getRangeValue:()=>h.VGA,getSize:()=>h.YCE,getStyleFromHsl:()=>h.LCf,getStyleFromRgb:()=>h.xxz,hMax:()=>h.vSh,hMin:()=>h.L1V,hPhase:()=>h.U0s,half:()=>h.MXx,hasMatchMedia:()=>h.q8J,hslToRgb:()=>h.YLU,hslaToRgba:()=>h.ayx,identity:()=>h.D_O,initParticleNumericAnimationValue:()=>h.XsS,inverseFactorNumerator:()=>h.hBr,isArray:()=>h.cyL,isBoolean:()=>h.Lmq,isFunction:()=>h.Tnt,isInArray:()=>h.hnD,isNull:()=>h.kZJ,isNumber:()=>h.EtT,isObject:()=>h.Gvm,isPointInside:()=>h.Tj8,isString:()=>h.KgX,itemFromArray:()=>h.Vh1,itemFromSingleOrMultiple:()=>h.TA3,lFactor:()=>h.iUN,lMax:()=>h.$_c,lMin:()=>h.vd6,lengthOffset:()=>h.K3,loadMinIndex:()=>h.PZY,loadOptions:()=>h.ZGK,loadParticlesOptions:()=>h.yVN,loadRandomFactor:()=>h.$v4,manageListener:()=>h.KpY,memoize:()=>h.BjF,midColorValue:()=>h.BWm,millisecondsToSeconds:()=>h.XuV,minCount:()=>h.wMU,minFpsLimit:()=>h.DNI,minIndex:()=>h.z94,minLimit:()=>h.ou7,minStrokeWidth:()=>h.Dvh,minVelocity:()=>h.GWL,minZ:()=>h.X_1,minimumSize:()=>h.w20,mix:()=>h.jhA,none:()=>h.dvp,one:()=>h.xHs,originPoint:()=>h.boI,paintBase:()=>h.SnF,paintImage:()=>h.MdX,parseAlpha:()=>h.M3Y,percentDenominator:()=>h.a56,phaseNumerator:()=>h.BFN,quarter:()=>h.$GP,randomColorValue:()=>h.mRf,randomInRangeValue:()=>h.vEz,rangeColorToHsl:()=>h.R5R,rangeColorToRgb:()=>h.BN0,removeDeleteCount:()=>h.JC0,removeMinIndex:()=>h.vFD,resizeEvent:()=>h.NFi,rgbMax:()=>h.oiR,rgbToHsl:()=>h.K6u,sMax:()=>h.euA,sMin:()=>h.yxQ,sNormalizedOffset:()=>h.aEA,safeDocument:()=>h.T5G,safeIntersectionObserver:()=>h.BRq,safeMatchMedia:()=>h.lVH,safeMutationObserver:()=>h.tGT,setAnimationFunctions:()=>h.ADE,setLogger:()=>h.Bro,setRandom:()=>h.OEu,setRangeValue:()=>h.DT4,sextuple:()=>h.zgn,spatialHashGridCellSize:()=>h.iXO,squareExp:()=>h.dmB,stringToAlpha:()=>h.zIs,stringToRgb:()=>h.egF,threeQuarter:()=>h.RqE,triple:()=>h.NuQ,tryCountIncrement:()=>h.Eow,tsParticles:()=>h.$k3,updateAnimation:()=>h.UC0,updateColor:()=>h.JvX,updateColorValue:()=>h.Kog,visibilityChangeEvent:()=>h.nKi,zIndexFactorOffset:()=>h.RVs});var h=o(1989);class p{background;brightness;colors;gravity;minHeight;rate;saturation;sounds;speed;splitCount;constructor(){this.background="none",this.brightness={min:-30,max:30},this.colors=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93"],this.gravity=5,this.minHeight={min:10,max:30},this.rate=10,this.saturation={min:-30,max:30},this.sounds=!0,this.speed={min:5,max:15},this.splitCount={min:75,max:150}}load(e){(0,h.kZJ)(e)||(void 0!==e.background&&(this.background=e.background),void 0!==e.colors&&((0,h.cyL)(e.colors)?this.colors=[...e.colors]:this.colors=e.colors),void 0!==e.brightness&&(this.brightness=(0,h.DT4)(e.brightness)),void 0!==e.gravity&&(this.gravity=(0,h.DT4)(e.gravity)),void 0!==e.minHeight&&(this.minHeight=(0,h.DT4)(e.minHeight)),void 0!==e.rate&&(this.rate=(0,h.DT4)(e.rate)),void 0!==e.saturation&&(this.saturation=(0,h.DT4)(e.saturation)),void 0!==e.sounds&&(this.sounds=e.sounds),void 0!==e.speed&&(this.speed=(0,h.DT4)(e.speed)),void 0!==e.splitCount&&(this.splitCount=(0,h.DT4)(e.splitCount)))}}let f=!1,v=!1,m=e=>{let t=e.data;return"circle"===t.particle.shape&&!!t.particle.splitCount&&t.particle.splitCount<2};async function g(e){if(!f){if(v)return new Promise(e=>{let t=setInterval(()=>{f&&(clearInterval(t),e())},100)});v=!0,e.checkVersion("4.0.0-beta.0"),await e.register(async e=>{let[{loadBasic:t},{loadEmittersPlugin:i},{loadEmittersShapeSquare:a},{loadSoundsPlugin:n},{loadRotateUpdater:s},{loadDestroyUpdater:r},{loadLifeUpdater:l},{loadTrailEffect:d}]=await Promise.all([o.e(455).then(o.bind(o,3455)),o.e(478).then(o.bind(o,5478)),o.e(572).then(o.bind(o,4572)),o.e(513).then(o.bind(o,1513)),o.e(102).then(o.bind(o,102)),o.e(715).then(o.bind(o,3715)),o.e(101).then(o.bind(o,6101)),o.e(565).then(o.bind(o,8565))]);await Promise.all([t(e),i(e),n(e),s(e),r(e),l(e),d(e)]),await a(e)}),v=!1,f=!0}}async function y(e,t,i){await g(h.$k3);let a=new p;a.load(t);let n={detectRetina:!0,background:{color:a.background},fullScreen:{enable:!!i},fpsLimit:60,emitters:{direction:h.FWc.top,life:{count:0,duration:.1,delay:.1},rate:{delay:(0,h.EtT)(a.rate)?1/a.rate:{min:1/(0,h.Sgh)(a.rate),max:1/(0,h.W9e)(a.rate)},quantity:1},size:{width:100,height:0},position:{y:100,x:50}},particles:{number:{value:0},fill:{color:{value:"#fff"},enable:!0},destroy:{mode:"split",bounds:{top:(0,h.DT4)(a.minHeight)},split:{sizeOffset:!1,count:1,factor:{value:.333333},rate:{value:a.splitCount},fillColorOffset:{s:a.saturation,l:a.brightness},particles:{fill:{color:{value:a.colors},enable:!0},stroke:{width:0},number:{value:0},opacity:{value:{min:.1,max:1},animation:{enable:!0,speed:1,sync:!1,startValue:h.SKz.max,destroy:h.VKE.min}},effect:{type:"trail",options:{trail:{length:{min:5,max:10}}}},shape:{type:"circle"},size:{value:{min:1,max:2},animation:{enable:!0,speed:5,count:1,sync:!1,startValue:h.SKz.min,destroy:h.VKE.none}},life:{count:1,duration:{value:{min:.25,max:.5}}},move:{decay:{min:.05,max:.1},enable:!0,gravity:{enable:!0,inverse:!1,acceleration:(0,h.DT4)(a.gravity)},speed:(0,h.DT4)(a.speed),direction:"none",outModes:h.Yzx.destroy}}}},life:{count:1},effect:{type:"trail",options:{trail:{length:{min:10,max:30},minWidth:1,maxWidth:1}}},shape:{type:"circle"},size:{value:1},opacity:{value:.5},rotate:{path:!0},move:{enable:!0,gravity:{acceleration:15,enable:!0,inverse:!0,maxSpeed:100},speed:{min:10,max:20},outModes:{default:h.Yzx.destroy,top:h.Yzx.none}}},sounds:{enable:a.sounds,events:[{event:h.Bx4.particleRemoved,filter:m,audio:["https://particles.js.org/audio/explosion0.mp3","https://particles.js.org/audio/explosion1.mp3","https://particles.js.org/audio/explosion2.mp3"]}],volume:50}},s=await h.$k3.load({id:e,element:i,options:n});if(!s)return;let{FireworksInstance:r}=await o.e(947).then(o.bind(o,8947));return new r(s)}async function b(e,t){let i,a;return(0,h.KgX)(e)?(i=e,a=t??{}):(i="fireworks",a=e??{}),y(i,a)}return b.create=async(e,t)=>y(e.id||"fireworks",t??{},e),b.init=async()=>{await g(h.$k3)},b.version="4.0.0-beta.0",globalThis.fireworks=b,u})());
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(this,()=>(()=>{"use strict";var e,t,i,a={9889(e,t,i){i.d(t,{$G:()=>L,$_:()=>_,$v:()=>W,$x:()=>k,BF:()=>eg,BW:()=>p,DN:()=>j,D_:()=>ed,Dv:()=>ec,Eo:()=>Q,Fl:()=>em,GW:()=>C,Ie:()=>D,JC:()=>q,K3:()=>eo,L1:()=>F,LD:()=>er,MX:()=>l,NF:()=>o,Nu:()=>ep,Nx:()=>N,PZ:()=>U,Pf:()=>ew,R1:()=>v,RF:()=>x,RV:()=>G,Rq:()=>V,U0:()=>I,Ug:()=>u,WH:()=>J,X$:()=>b,X_:()=>ee,Xu:()=>d,Zp:()=>O,a5:()=>r,aE:()=>ev,aZ:()=>m,bo:()=>c,ce:()=>y,dm:()=>z,dv:()=>Y,eb:()=>a,eu:()=>T,gd:()=>f,hB:()=>P,hK:()=>eb,hv:()=>Z,i8:()=>K,iU:()=>eu,iX:()=>M,jn:()=>ey,lA:()=>es,mR:()=>h,nK:()=>s,nq:()=>ei,oi:()=>R,ou:()=>et,rq:()=>w,tA:()=>el,tR:()=>ex,vF:()=>H,vS:()=>E,vd:()=>eh,w2:()=>B,wM:()=>ea,xH:()=>X,xd:()=>S,yj:()=>n,yx:()=>A,z$:()=>g,z9:()=>en,zg:()=>ef,zs:()=>$});let a="generated",n="source-over",o="resize",s="visibilitychange",r=100,l=.5,d=1e3,c={x:0,y:0,z:0},u={a:1,b:0,c:0,d:1},h="random",p="mid",f=2,v=2*Math.PI,g=60,m=1,y="true",b="false",x="canvas",w=0,z=2,M=100,S=1,k=1,O=1,P=1,R=255,E=360,T=100,_=100,F=0,A=0,I=60,D=0,L=.25,V=.75,C=0,$=1,B=0,G=1,Z=1,q=1,H=0,K=120,j=0,N=0,W=1e4,U=0,X=1,Y=0,J=1,Q=1,ee=0,et=0,ei=1,ea=0,en=0,eo=1,es=1,er=1,el=0,ed=1,ec=0,eu=1,eh=0,ep=3,ef=6,ev=1,eg=1,em=0,ey=0,eb=0,ex=0,ew=1},1745(e,t,i){i.d(t,{dg:()=>r,jl:()=>l,M_:()=>d}),(a=n||(n={})).circle="circle",a.rectangle="rectangle";var a,n,o=i(5273),s=i(9889);class r{position;type;constructor(e,t,i){this.position={x:e,y:t},this.type=i}_resetPosition(e,t){this.position.x=e,this.position.y=t}}class l extends r{radius;constructor(e,t,i){super(e,t,n.circle),this.radius=i}contains(e){return(0,o.gp)(e,this.position,this.radius)}intersects(e){let t=this.position,i=e.position,a=this.radius,o=Math.abs(i.x-t.x),r=Math.abs(i.y-t.y);if(e instanceof l||e.type===n.circle)return a+e.radius>Math.hypot(o,r);if(e instanceof d||e.type===n.rectangle){let{width:t,height:i}=e.size;return Math.pow(o-t,s.dm)+Math.pow(r-i,s.dm)<=a**s.dm||o<=a+t&&r<=a+i||o<=t||r<=i}return!1}reset(e,t,i){return this._resetPosition(e,t),this.radius=i,this}}class d extends r{size;constructor(e,t,i,a){super(e,t,n.rectangle),this.size={height:a,width:i}}contains(e){let t=this.size.width,i=this.size.height,a=this.position;return e.x>=a.x&&e.x<=a.x+t&&e.y>=a.y&&e.y<=a.y+i}intersects(e){if(e instanceof l)return e.intersects(this);if(!(e instanceof d))return!1;let t=this.size.width,i=this.size.height,a=this.position,n=e.position,o=e.size,s=o.width,r=o.height;return n.x<a.x+t&&n.x+s>a.x&&n.y<a.y+i&&n.y+r>a.y}reset(e,t,i,a){return this._resetPosition(e,t),this.size.width=i,this.size.height=a,this}}},5700(e,t,i){i.d(t,{M:()=>s,p:()=>o});var a=i(9889);function n(e){return"z"in e?e.z:a.bo.z}class o{x;y;z;constructor(e=a.bo.x,t=a.bo.y,i=a.bo.z){this.x=e,this.y=t,this.z=i}static get origin(){return o.create(a.bo.x,a.bo.y,a.bo.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return o.create(e.x,e.y,n(e))}static create(e,t,i){return"number"==typeof e?new o(e,t??a.bo.y,i??a.bo.z):new o(e.x,e.y,n(e))}add(e){return o.create(this.x+e.x,this.y+e.y,this.z+n(e))}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=n(e)}copy(){return o.clone(this)}div(e){return o.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**a.dm+this.y**a.dm}mult(e){return o.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){let e=this.length;e!=a.dv&&this.multTo(a.hB/e)}rotate(e){return o.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),a.bo.z)}setTo(e){this.x=e.x,this.y=e.y,this.z=n(e)}sub(e){return o.create(this.x-e.x,this.y-e.y,this.z-n(e))}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=n(e)}_updateFromAngle(e,t){this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class s extends o{constructor(e=a.bo.x,t=a.bo.y){super(e,t,a.bo.z)}static get origin(){return s.create(a.bo.x,a.bo.y)}static clone(e){return s.create(e.x,e.y)}static create(e,t){return"number"==typeof e?new s(e,t??a.bo.y):new s(e.x,e.y)}}},197(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).increasing="increasing",n.decreasing="decreasing"},7730(e,t,i){var a,n;i.d(t,{F:()=>a}),(n=a||(a={})).bottom="bottom",n.bottomLeft="bottom-left",n.bottomRight="bottom-right",n.left="left",n.none="none",n.right="right",n.top="top",n.topLeft="top-left",n.topRight="top-right",n.outside="outside",n.inside="inside"},5278(e,t,i){var a,n;i.d(t,{v:()=>a}),(n=a||(a={})).bottom="bottom",n.left="left",n.right="right",n.top="top"},3627(e,t,i){var a,n;i.d(t,{g:()=>a}),(n=a||(a={})).auto="auto",n.increase="increase",n.decrease="decrease",n.random="random"},8534(e,t,i){var a,n;i.d(t,{d:()=>a}),(n=a||(a={})).delete="delete",n.wait="wait"},4517(e,t,i){var a,n;i.d(t,{Y:()=>a}),(n=a||(a={})).bounce="bounce",n.none="none",n.out="out",n.destroy="destroy",n.split="split"},5697(e,t,i){var a,n;i.d(t,{q:()=>a}),(n=a||(a={})).precise="precise",n.percent="percent"},4763(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).darken="darken",n.enlighten="enlighten"},4121(e,t,i){var a,n;i.d(t,{V:()=>a}),(n=a||(a={})).none="none",n.max="max",n.min="min"},5291(e,t,i){var a,n;i.d(t,{B:()=>a}),(n=a||(a={})).configAdded="configAdded",n.containerInit="containerInit",n.particlesSetup="particlesSetup",n.containerStarted="containerStarted",n.containerStopped="containerStopped",n.containerDestroyed="containerDestroyed",n.containerPaused="containerPaused",n.containerPlay="containerPlay",n.containerBuilt="containerBuilt",n.particleAdded="particleAdded",n.particleDestroyed="particleDestroyed",n.particleRemoved="particleRemoved"},2677(e,t,i){var a,n;i.d(t,{x:()=>a}),(n=a||(a={})).normal="normal",n.inside="inside",n.outside="outside"},1706(e,t,i){var a,n;i.d(t,{S:()=>a}),(n=a||(a={})).max="max",n.min="min",n.random="random"},4157(e,t,i){i.d(t,{A:()=>s});var a=i(523),n=i(5707),o=i(9777);class s extends o.O{animation;constructor(){super(),this.animation=new n.i}static create(e,t){let i=new s;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){if(super.load(e),(0,a.kZ)(e))return;let t=e.animation;void 0!==t&&(void 0===t.enable?this.animation.load(e.animation):this.animation.h.load(t))}}},3852(e,t,i){i.d(t,{Q:()=>l,p:()=>r});var a=i(3627),n=i(1706),o=i(523),s=i(5273);class r{count;decay;delay;enable;speed;sync;constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){(0,o.kZ)(e)||(void 0!==e.count&&(this.count=(0,s.DT)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,s.DT)(e.speed)),void 0!==e.decay&&(this.decay=(0,s.DT)(e.decay)),void 0!==e.delay&&(this.delay=(0,s.DT)(e.delay)),void 0!==e.sync&&(this.sync=e.sync))}}class l extends r{mode;startValue;constructor(){super(),this.mode=a.g.auto,this.startValue=n.S.random}load(e){super.load(e),(0,o.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},2211(e,t,i){i.d(t,{V:()=>o});var a=i(9777),n=i(523);class o{color;image;opacity;position;repeat;size;constructor(){this.color=new a.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.O.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.position&&(this.position=e.position),void 0!==e.repeat&&(this.repeat=e.repeat),void 0!==e.size&&(this.size=e.size),void 0!==e.opacity&&(this.opacity=e.opacity))}}},4343(e,t,i){i.d(t,{e:()=>s});var a=i(3852),n=i(523),o=i(5273);class s extends a.p{max;min;offset;constructor(e,t){super(),this.min=e,this.max=t,this.offset=0,this.sync=!0}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.max&&(this.max=e.max),void 0!==e.min&&(this.min=e.min),void 0!==e.offset&&(this.offset=(0,o.DT)(e.offset)))}}},4369(e,t,i){i.d(t,{m:()=>n});var a=i(523);class n{enable;zIndex;constructor(){this.enable=!0,this.zIndex=0}load(e){(0,a.kZ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.zIndex&&(this.zIndex=e.zIndex))}}},5707(e,t,i){i.d(t,{i:()=>s});var a=i(9889),n=i(4343),o=i(523);class s{h=new n.e(a.L1,a.vS);l=new n.e(a.vd,a.$_);s=new n.e(a.yx,a.eu);load(e){(0,o.kZ)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},3748(e,t,i){i.d(t,{J:()=>c});var a=i(7171),n=i(523),o=i(2211),s=i(4369),r=i(7066),l=i(2439),d=i(5273);class c{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;palette;particles;pauseOnBlur;pauseOnOutsideViewport;preset;resize;smooth;style;zLayers;_container;_pluginManager;constructor(e,t){this._pluginManager=e,this._container=t,this.autoPlay=!0,this.background=new o.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new s.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,l.y)(this._pluginManager,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.resize=new r.z,this.smooth=!1,this.style={},this.zLayers=100}load(e){if((0,n.kZ)(e))return;void 0!==e.preset&&(this.preset=e.preset,(0,a.wJ)(this.preset,e=>{this._importPreset(e)})),void 0!==e.palette&&(this.palette=e.palette,this._importPalette(this.palette)),void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.clear&&(this.clear=e.clear),void 0!==e.key&&(this.key=e.key),void 0!==e.name&&(this.name=e.name),void 0!==e.delay&&(this.delay=(0,d.DT)(e.delay));let t=e.detectRetina;void 0!==t&&(this.detectRetina=t),void 0!==e.duration&&(this.duration=(0,d.DT)(e.duration));let i=e.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==e.hdr&&(this.hdr=e.hdr),void 0!==e.pauseOnBlur&&(this.pauseOnBlur=e.pauseOnBlur),void 0!==e.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),void 0!==e.zLayers&&(this.zLayers=e.zLayers),this.background.load(e.background);let o=e.fullScreen;(0,n.Lm)(o)?this.fullScreen.enable=o:this.fullScreen.load(o),this.particles.load(e.particles),this.resize.load(e.resize),this.style=(0,a.zw)(this.style,e.style),void 0!==e.smooth&&(this.smooth=e.smooth),this._pluginManager.plugins.forEach(t=>{t.loadOptions(this._container,this,e)})}_importPalette=e=>{let t=this._pluginManager.getPalette(e);t&&this.load({background:{color:t.background},blend:{enable:!0,mode:t.blendMode},particles:{fill:{color:t.fill?{value:t.colors}:void 0,enable:t.fill},stroke:t.fill?void 0:t.colors.map(e=>({color:{value:e},width:1}))}})};_importPreset=e=>{this.load(this._pluginManager.getPreset(e))}}},9777(e,t,i){i.d(t,{O:()=>n});var a=i(523);class n{value;constructor(){this.value=""}static create(e,t){let i=new n;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){!(0,a.kZ)(e)&&((0,a.kZ)(e.value)||(this.value=e.value))}}},4040(e,t,i){i.d(t,{w:()=>o});var a=i(7144),n=i(523);class o{horizontal;vertical;constructor(){this.horizontal=new a.F,this.vertical=new a.F}load(e){(0,n.kZ)(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}},7144(e,t,i){i.d(t,{F:()=>n});var a=i(7292);class n extends a.PV{constructor(){super(),this.value=1}}},9041(e,t,i){i.d(t,{S:()=>s});var a=i(4157),n=i(523),o=i(5273);class s{color;enable;opacity;constructor(){this.enable=!0,this.color=new a.A,this.color.value="#fff",this.opacity=1}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.opacity&&(this.opacity=(0,o.DT)(e.opacity)))}}},4589(e,t,i){i.d(t,{y:()=>h});var a=i(7730),n=i(523),o=i(4666),s=i(4284),r=i(4687),l=i(9668),d=i(3120),c=i(9940),u=i(5273);class h{angle;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new o.h,this.center=new s.Z,this.decay=0,this.distance={},this.direction=a.F.none,this.drift=0,this.enable=!1,this.gravity=new r.y,this.path=new l.v,this.outModes=new d.j,this.random=!1,this.size=!1,this.speed=2,this.spin=new c.t,this.straight=!1,this.vibrate=!1,this.warp=!1}load(e){if((0,n.kZ)(e))return;this.angle.load((0,n.Et)(e.angle)?{value:e.angle}:e.angle),this.center.load(e.center),void 0!==e.decay&&(this.decay=(0,u.DT)(e.decay)),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.distance&&(this.distance=(0,n.Et)(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),void 0!==e.drift&&(this.drift=(0,u.DT)(e.drift)),void 0!==e.enable&&(this.enable=e.enable),this.gravity.load(e.gravity);let t=e.outModes;void 0!==t&&((0,n.Gv)(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),void 0!==e.random&&(this.random=e.random),void 0!==e.size&&(this.size=e.size),void 0!==e.speed&&(this.speed=(0,u.DT)(e.speed)),this.spin.load(e.spin),void 0!==e.straight&&(this.straight=e.straight),void 0!==e.vibrate&&(this.vibrate=e.vibrate),void 0!==e.warp&&(this.warp=e.warp)}}},4666(e,t,i){i.d(t,{h:()=>o});var a=i(523),n=i(5273);class o{offset;value;constructor(){this.offset=0,this.value=90}load(e){(0,a.kZ)(e)||(void 0!==e.offset&&(this.offset=(0,n.DT)(e.offset)),void 0!==e.value&&(this.value=(0,n.DT)(e.value)))}}},4284(e,t,i){i.d(t,{Z:()=>o});var a=i(5697),n=i(523);class o{mode;radius;x;y;constructor(){this.x=50,this.y=50,this.mode=a.q.percent,this.radius=0}load(e){(0,n.kZ)(e)||(void 0!==e.x&&(this.x=e.x),void 0!==e.y&&(this.y=e.y),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.radius&&(this.radius=e.radius))}}},4687(e,t,i){i.d(t,{y:()=>o});var a=i(523),n=i(5273);class o{acceleration;enable;inverse;maxSpeed;constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){(0,a.kZ)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,n.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.inverse&&(this.inverse=e.inverse),void 0!==e.maxSpeed&&(this.maxSpeed=(0,n.DT)(e.maxSpeed)))}}},3120(e,t,i){i.d(t,{j:()=>o});var a=i(4517),n=i(523);class o{bottom;default;left;right;top;constructor(){this.default=a.Y.out}load(e){(0,n.kZ)(e)||(void 0!==e.default&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}},9668(e,t,i){i.d(t,{v:()=>s});var a=i(7292),n=i(7171),o=i(523);class s{clamp;delay;enable;generator;options;constructor(){this.clamp=!0,this.delay=new a.PV,this.enable=!1,this.options={}}load(e){!(0,o.kZ)(e)&&(void 0!==e.clamp&&(this.clamp=e.clamp),this.delay.load(e.delay),void 0!==e.enable&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=(0,n.zw)(this.options,e.options)))}}},9940(e,t,i){i.d(t,{t:()=>s});var a=i(7171),n=i(523),o=i(5273);class s{acceleration;enable;position;constructor(){this.acceleration=0,this.enable=!1}load(e){!(0,n.kZ)(e)&&(void 0!==e.acceleration&&(this.acceleration=(0,o.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,a.zw)({},e.position)))}}},7769(e,t,i){i.d(t,{M:()=>n});var a=i(523);class n{enable;height;width;constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if((0,a.kZ)(e))return;void 0!==e.enable&&(this.enable=e.enable);let t=e.width;void 0!==t&&(this.width=t);let i=e.height;void 0!==i&&(this.height=i)}}},7308(e,t,i){i.d(t,{N:()=>s});var a=i(7769),n=i(5693),o=i(523);class s{density;limit;value;constructor(){this.density=new a.M,this.limit=new n.A,this.value=0}load(e){(0,o.kZ)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},5693(e,t,i){i.d(t,{A:()=>o});var a=i(8534),n=i(523);class o{mode;value;constructor(){this.mode=a.d.delete,this.value=0}load(e){(0,n.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},477(e,t,i){i.d(t,{Y:()=>s});var a=i(535),n=i(7292),o=i(523);class s extends n.AI{animation;constructor(){super(),this.animation=new a.I,this.value=1}load(e){if((0,o.kZ)(e))return;super.load(e);let t=e.animation;void 0!==t&&this.animation.load(t)}}},535(e,t,i){i.d(t,{I:()=>s});var a=i(4121),n=i(3852),o=i(523);class s extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=2}load(e){super.load(e),(0,o.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},1975(e,t,i){i.d(t,{U:()=>v});var a=i(7171),n=i(523);class o{close;options;type;constructor(){this.close=!0,this.options={},this.type=[]}load(e){if((0,n.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.type&&(this.type=e.type)}}var s=i(9041),r=i(4589),l=i(477),d=i(4040),c=i(7308),u=i(5865),h=i(2181),p=i(8284),f=i(7391);class v{bounce;effect;fill;groups;move;number;opacity;reduceDuplicates;shape;size;stroke;zIndex;_container;_pluginManager;constructor(e,t){this._pluginManager=e,this._container=t,this.bounce=new d.w,this.effect=new o,this.fill=new s.S,this.groups={},this.move=new r.y,this.number=new c.N,this.opacity=new l.Y,this.reduceDuplicates=!1,this.shape=new u.y,this.size=new h.o,this.stroke=new p.t,this.zIndex=new f.P}load(e){if((0,n.kZ)(e))return;if(void 0!==e.groups)for(let t of Object.keys(e.groups)){if(!(t in e.groups))continue;let i=e.groups[t];void 0!==i&&(this.groups[t]=(0,a.zw)(this.groups[t]??{},i))}void 0!==e.reduceDuplicates&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.zIndex.load(e.zIndex);let t=e.fill;t&&(this.fill=(0,a.wJ)(t,e=>{let t=new s.S;return t.load(e),t}));let i=e.stroke;if(i&&(this.stroke=(0,a.wJ)(i,e=>{let t=new p.t;return t.load(e),t})),this._container){for(let t of this._pluginManager.plugins)t.loadParticlesOptions&&t.loadParticlesOptions(this._container,this,e);let t=this._pluginManager.updaters.get(this._container);if(t)for(let i of t)i.loadOptions&&i.loadOptions(this,e)}}}},5865(e,t,i){i.d(t,{y:()=>o});var a=i(7171),n=i(523);class o{close;options;type;constructor(){this.close=!0,this.options={},this.type="circle"}load(e){if((0,n.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.type&&(this.type=e.type)}}},2181(e,t,i){i.d(t,{o:()=>s});var a=i(7292),n=i(5903),o=i(523);class s extends a.AI{animation;constructor(){super(),this.animation=new n.q,this.value=3}load(e){if(super.load(e),(0,o.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}},5903(e,t,i){i.d(t,{q:()=>s});var a=i(4121),n=i(3852),o=i(523);class s extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=5}load(e){super.load(e),(0,o.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},8284(e,t,i){i.d(t,{t:()=>s});var a=i(4157),n=i(523),o=i(5273);class s{color;opacity;width;constructor(){this.width=0}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.width&&(this.width=(0,o.DT)(e.width)),void 0!==e.opacity&&(this.opacity=(0,o.DT)(e.opacity)))}}},7391(e,t,i){i.d(t,{P:()=>o});var a=i(7292),n=i(523);class o extends a.PV{opacityRate;sizeRate;velocityRate;constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.opacityRate&&(this.opacityRate=e.opacityRate),void 0!==e.sizeRate&&(this.sizeRate=e.sizeRate),void 0!==e.velocityRate&&(this.velocityRate=e.velocityRate))}}},7066(e,t,i){i.d(t,{z:()=>n});var a=i(523);class n{delay;enable;constructor(){this.delay=.5,this.enable=!0}load(e){(0,a.kZ)(e)||(void 0!==e.delay&&(this.delay=e.delay),void 0!==e.enable&&(this.enable=e.enable))}}},7292(e,t,i){i.d(t,{AI:()=>l,Jm:()=>r,PV:()=>s});var a=i(3852),n=i(523),o=i(5273);class s{value;constructor(){this.value=0}load(e){!(0,n.kZ)(e)&&((0,n.kZ)(e.value)||(this.value=(0,o.DT)(e.value)))}}class r extends s{animation=new a.p;load(e){if(super.load(e),(0,n.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}class l extends r{animation;constructor(){super(),this.animation=new a.Q}load(e){super.load(e)}}},6919(e,t,i){i.d(t,{IU:()=>s,KG:()=>c,Md:()=>o,Sn:()=>n,VG:()=>h,Wb:()=>p,gF:()=>u,k:()=>l,p0:()=>r,z5:()=>d});var a=i(9889);function n(e,t,i){e.fillStyle=i??"rgba(0,0,0,0)",e.fillRect(a.bo.x,a.bo.y,t.width,t.height)}function o(e,t,i,n){if(!i)return;let o=e.globalAlpha;e.globalAlpha=n,e.drawImage(i,a.bo.x,a.bo.y,t.width,t.height),e.globalAlpha=o}function s(e,t){e.clearRect(a.bo.x,a.bo.y,t.width,t.height)}function r(e){let{container:t,context:i,particle:n,delta:o,colorStyles:s,radius:r,opacity:p,transform:f}=e,{effectDrawers:v,shapeDrawers:g}=t,m=n.getPosition(),y=n.getTransformData(f),b=a.Pf,x={x:m.x,y:m.y};i.setTransform(y.a,y.b,y.c,y.d,m.x,m.y),s.fill&&(i.fillStyle=s.fill);let w=!!n.fillEnabled,z=n.strokeWidth??a.Dv;i.lineWidth=z,s.stroke&&(i.strokeStyle=s.stroke);let M={context:i,particle:n,radius:r,drawRadius:r*b,opacity:p,delta:o,pixelRatio:t.retina.pixelRatio,fill:w,stroke:z>a.Dv,transformData:y,position:{...m},drawPosition:x,drawScale:b};for(let e of t.plugins)e.drawParticleTransform?.(M);let S=n.effect?v.get(n.effect):void 0,k=n.shape?g.get(n.shape):void 0;d(S,M),h(k,M),c(k,M),u(k,M),l(S,M),i.resetTransform()}function l(e,t){if(!e?.drawAfter)return;let{particle:i}=t;i.effect&&e.drawAfter(t)}function d(e,t){if(!e?.drawBefore)return;let{particle:i}=t;i.effect&&e.drawBefore(t)}function c(e,t){if(!e)return;let{context:i,fill:a,particle:n,stroke:o}=t;n.shape&&(i.beginPath(),e.draw(t),n.shapeClose&&i.closePath(),o&&i.stroke(),a&&i.fill())}function u(e,t){if(!e?.afterDraw)return;let{particle:i}=t;i.shape&&e.afterDraw(t)}function h(e,t){if(!e?.beforeDraw)return;let{particle:i}=t;i.shape&&e.beforeDraw(t)}function p(e,t,i,a){t.drawParticle&&t.drawParticle(e,i,a)}},2636(e,t,i){i.d(t,{BN:()=>h,EY:()=>k,Jv:()=>F,K6:()=>g,Ko:()=>_,LC:()=>S,OH:()=>w,O_:()=>R,PG:()=>P,R5:()=>v,YL:()=>b,_h:()=>O,ay:()=>x,eg:()=>y,mK:()=>f,pz:()=>E,qe:()=>p,xx:()=>z,yx:()=>A,zI:()=>m});var a=i(5273),n=i(9889),o=i(523),s=i(4763),r=i(197),l=i(7171);let d=new Map;function c(e,t){let i=d.get(e);return i||(i=t(),d.size>=1e3&&[...d.keys()].slice(0,1e3*n.MX).forEach(e=>d.delete(e)),d.set(e,i)),i}function u(e,t){if(t){for(let i of e.colorManagers.values())if(i.accepts(t))return i.parseString(t)}}function h(e,t,i,a=!0){if(!t)return;let n=(0,o.Kg)(t)?{value:t}:t;if((0,o.Kg)(n.value))return p(e,n.value,i,a);if((0,o.cy)(n.value)){let t=(0,l.Vh)(n.value,i,a);if(!t)return;return h(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleRangeColor(n);if(e)return e}}function p(e,t,i,a=!0){if(!t)return;let s=(0,o.Kg)(t)?{value:t}:t;if((0,o.Kg)(s.value))return s.value===n.mR?w():u(e,s.value);if((0,o.cy)(s.value)){let t=(0,l.Vh)(s.value,i,a);if(!t)return;return p(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleColor(s);if(e)return e}}function f(e,t,i,a=!0){let n=p(e,t,i,a);return n?g(n):void 0}function v(e,t,i,a=!0){let n=h(e,t,i,a);return n?g(n):void 0}function g(e){let t=e.r/n.oi,i=e.g/n.oi,a=e.b/n.oi,o=Math.max(t,i,a),s=Math.min(t,i,a),r={h:n.L1,l:(o+s)*n.MX,s:n.yx};return o!==s&&(r.s=r.l<n.MX?(o-s)/(o+s):(o-s)/(n.gd-o-s),t===o?r.h=(i-a)/(o-s):i===o?r.h=n.gd+(a-t)/(o-s):r.h=n.gd*n.gd+(t-i)/(o-s)),r.l*=n.$_,r.s*=n.eu,r.h*=n.U0,r.h<n.L1&&(r.h+=n.vS),r.h>=n.vS&&(r.h-=n.vS),r}function m(e,t){return u(e,t)?.a}function y(e,t){return u(e,t)}function b(e){let t=(e.h%n.vS+n.vS)%n.vS,i=Math.max(n.yx,Math.min(n.eu,e.s)),a=Math.max(n.vd,Math.min(n.$_,e.l)),o=t/n.vS,s=i/n.eu,r=a/n.$_;if(i===n.yx){let e=Math.round(r*n.oi);return{r:e,g:e,b:e}}let l=(e,t,i)=>(i<0&&i++,i>1&&i--,i*n.zg<1)?e+(t-e)*n.zg*i:i*n.gd<1?t:i*n.Nu<+n.gd?e+(t-e)*(n.gd/n.Nu-i)*n.zg:e,d=r<n.MX?r*(n.aE+s):r+s-r*s,c=n.gd*r-d,u=n.BF/n.Nu;return{r:Math.round(Math.min(n.oi,n.oi*l(c,d,o+u))),g:Math.round(Math.min(n.oi,n.oi*l(c,d,o))),b:Math.round(Math.min(n.oi,n.oi*l(c,d,o-u)))}}function x(e){let t=b(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function w(e){let t=e??n.Fl,i=n.oi+n.D_,o=()=>Math.floor((0,a.e4)(t,i));return{b:o(),g:o(),r:o()}}function z(e,t,i){let a=i??n.hv;return c(`rgb-${e.r.toFixed(2)}-${e.g.toFixed(2)}-${e.b.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,o;return t?M(e,i):(a=e,o=i,`rgba(${a.r.toString()}, ${a.g.toString()}, ${a.b.toString()}, ${(o??n.hv).toString()})`)})}function M(e,t){return`color(display-p3 ${(e.r/n.oi).toString()} ${(e.g/n.oi).toString()} ${(e.b/n.oi).toString()} / ${(t??n.hv).toString()})`}function S(e,t,i){let a=i??n.hv;return c(`hsl-${e.h.toFixed(2)}-${e.s.toFixed(2)}-${e.l.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,o,s,r;return t?(a=e,o=i,M(b(a),o)):(s=e,r=i,`hsla(${s.h.toString()}, ${s.s.toString()}%, ${s.l.toString()}%, ${(r??n.hv).toString()})`)})}function k(e,t,i,n){let o=e,s=t;return"r"in o||(o=b(e)),"r"in s||(s=b(t)),{b:(0,a.jh)(o.b,s.b,i,n),g:(0,a.jh)(o.g,s.g,i,n),r:(0,a.jh)(o.r,s.r,i,n)}}function O(e,t,i){if(i===n.mR)return w();if(i!==n.BW)return i;{let i=e.getFillColor()??e.getStrokeColor(),a=t?.getFillColor()??t?.getStrokeColor();if(i&&a&&t)return k(i,a,e.getRadius(),t.getRadius());{let e=i??a;if(e)return b(e)}}}function P(e,t,i,a){let s=(0,o.Kg)(t)?t:t.value;return s===n.mR?a?h(e,{value:s}):i?n.mR:n.BW:s===n.BW?n.BW:h(e,{value:s})}function R(e){return void 0===e?void 0:{h:e.h.value,s:e.s.value,l:e.l.value}}function E(e,t,i){let a={h:{enable:!1,value:e.h,min:n.L1,max:n.vS},s:{enable:!1,value:e.s,min:n.yx,max:n.eu},l:{enable:!1,value:e.l,min:n.vd,max:n.$_}};return t&&(T(a.h,t.h,i),T(a.s,t.s,i),T(a.l,t.l,i)),a}function T(e,t,i){e.enable=t.enable,e.min=t.min,e.max=t.max,e.enable?(e.velocity=(0,a.VG)(t.speed)/n.a5*i,e.decay=n.WH-(0,a.VG)(t.decay),e.status=r.H.increasing,e.loops=n.hK,e.maxLoops=(0,a.VG)(t.count),e.time=n.tR,e.delayTime=(0,a.VG)(t.delay)*n.Xu,t.sync||(e.velocity*=(0,a.G0)(),e.value*=(0,a.G0)()),e.initialValue=e.value,e.offset=(0,a.DT)(t.offset)):e.velocity=n.jn}function _(e,t,i){if(!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=i.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let n=e.offset?(0,a.vE)(e.offset):0,o=(e.velocity??0)*i.factor+3.6*n,s=e.decay??1,l=e.max,d=e.min;t&&e.status!==r.H.increasing?(e.value-=o,e.value<d&&(e.loops??=0,e.loops++,e.status=r.H.increasing)):(e.value+=o,e.value>l&&(e.loops??=0,e.loops++,t?e.status=r.H.decreasing:e.value-=l)),e.velocity&&1!==s&&(e.velocity*=s),e.value=(0,a.qE)(e.value,d,l)}function F(e,t){if(!e)return;let{h:i,s:a,l:n}=e;_(i,!1,t),_(a,!0,t),_(n,!0,t)}function A(e,t,i){return{h:e.h,s:e.s,l:e.l+(t===s.H.darken?-n.iU:n.iU)*i}}},4035(e,t,i){i.d(t,{B:()=>n,t:()=>o});let a={debug:console.debug,error:(e,t)=>{console.error(`tsParticles - Error - ${e}`,t)},info:console.info,log:console.log,trace:console.trace,verbose:console.log,warning:console.warn};function n(e){a.debug=e.debug,a.error=e.error,a.info=e.info,a.log=e.log,a.verbose=e.verbose,a.warning=e.warning}function o(){return a}},5273(e,t,i){i.d(t,{$m:()=>R,AD:()=>p,DT:()=>function e(t,i){if(t===i||void 0===i&&(0,s.Et)(t))return t;let a=x(t),n=w(t);return void 0!==i?{min:Math.min(a,i),max:Math.max(n,i)}:e(a,n)},G0:()=>u,JY:()=>P,M3:()=>D,Mh:()=>_,Nx:()=>A,OE:()=>c,OW:()=>E,Sc:()=>M,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>S,e4:()=>h,eh:()=>T,gp:()=>k,i0:()=>f,jh:()=>m,l1:()=>F,pu:()=>O,px:()=>v,qE:()=>g,qM:()=>I,vE:()=>y,vr:()=>z});var a=i(7730),n=i(9889),o=i(5700),s=i(523);let r=Math.PI/180,l=Math.random,d={nextFrame:e=>requestAnimationFrame(e),cancel:e=>{cancelAnimationFrame(e)}};function c(e=Math.random){l=e}function u(){return g(l(),0,1-Number.EPSILON)}function h(e,t){return u()*(t-e)+e}function p(e,t){d.nextFrame=e,d.cancel=t}function f(e){return d.nextFrame(e)}function v(e){d.cancel(e)}function g(e,t,i){return Math.min(Math.max(e,t),i)}function m(e,t,i,a){return Math.floor((e*i+t*a)/(i+a))}function y(e){let t=w(e),i=x(e);return t===i&&(i=0),h(i,t)}function b(e){return(0,s.Et)(e)?e:y(e)}function x(e){return(0,s.Et)(e)?e:e.min}function w(e){return(0,s.Et)(e)?e:e.max}function z(e,t){let i=e.x-t.x,a=e.y-t.y;return{dx:i,dy:a,distance:Math.hypot(i,a)}}function M(e,t){let i=e.x-t.x,a=e.y-t.y;return i*i+a*a}function S(e,t){return Math.sqrt(M(e,t))}function k(e,t,i){return M(e,t)<=i*i}function O(e){return e*r}function P(e,t,i){if((0,s.Et)(e))return e*r;switch(e){case a.F.top:return-Math.PI*n.MX;case a.F.topRight:return-Math.PI*n.$G;case a.F.right:return n.Ie;case a.F.bottomRight:return Math.PI*n.$G;case a.F.bottom:return Math.PI*n.MX;case a.F.bottomLeft:return Math.PI*n.Rq;case a.F.left:return Math.PI;case a.F.topLeft:return-Math.PI*n.Rq;case a.F.inside:return Math.atan2(i.y-t.y,i.x-t.x);case a.F.outside:return Math.atan2(t.y-i.y,t.x-i.x);default:return u()*n.R1}}function R(e){let t=o.M.origin;return t.length=1,t.angle=e,t}function E(e,t,i,a){return o.M.create(e.x*(i-a)/(i+a)+t.x*n.gd*a/(i+a),e.y)}function T(e){return e.position?.x!==void 0&&void 0!==e.position.y?{x:e.position.x*e.size.width/n.a5,y:e.position.y*e.size.height/n.a5}:void 0}function _(e){return{x:(e.position?.x??u()*n.a5)*e.size.width/n.a5,y:(e.position?.y??u()*n.a5)*e.size.height/n.a5}}function F(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return _({size:e.size,position:t})}function A(e){let{position:t,size:i}=e;return{x:t?.x??u()*i.width,y:t?.y??u()*i.height}}function I(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return A({size:e.size,position:t})}function D(e){return e?e.endsWith("%")?parseFloat(e)/n.a5:parseFloat(e):1}},2439(e,t,i){i.d(t,{Z:()=>n,y:()=>o});var a=i(1975);function n(e,...t){for(let i of t)e.load(i)}function o(e,t,...i){let s=new a.U(e,t);return n(s,...i),s}},523(e,t,i){function a(e){return"boolean"==typeof e}function n(e){return"string"==typeof e}function o(e){return"number"==typeof e}function s(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}function l(e){return Array.isArray(e)}function d(e){return null==e}i.d(t,{Et:()=>o,Gv:()=>r,Kg:()=>n,Lm:()=>a,Tn:()=>s,cy:()=>l,kZ:()=>d})},7171(e,t,i){i.d(t,{AE:()=>S,BR:()=>m,Bj:()=>p,E9:()=>F,HQ:()=>C,Kp:()=>V,O2:()=>M,Ot:()=>$,T5:()=>v,TA:()=>R,Tg:()=>k,Tj:()=>z,UC:()=>I,Vh:()=>w,Xs:()=>T,YC:()=>A,hJ:()=>L,hn:()=>b,lV:()=>g,n0:()=>x,pE:()=>O,q8:()=>f,tG:()=>y,td:()=>D,w3:()=>E,wJ:()=>P,zw:()=>function e(t,...i){for(let a of i){if((0,o.kZ)(a))continue;if(!(0,o.Gv)(a)){t=a;continue}Array.isArray(a)?Array.isArray(t)||(t=[]):(!(0,o.Gv)(t)||Array.isArray(t))&&(t={});let i=Object.keys(a),n=new Set(["__proto__","constructor","prototype"]);if(!i.some(e=>{let t=a[e];return(0,o.Gv)(t)||Array.isArray(t)})){let e=t;for(let t of i)if(!n.has(t)&&t in a){let i=a[t];void 0!==i&&(e[t]=i)}continue}for(let o of i){if(n.has(o))continue;let i=t,s=a[o];i[o]=Array.isArray(s)?s.map(t=>e(void 0,t)):e(i[o],s)}}return t}});var a=i(5273),n=i(9889),o=i(523),s=i(3627),r=i(197),l=i(4121),d=i(5278),c=i(5697),u=i(1706),h=i(5700);function p(e,t){let i=new Map,a=t?.maxSize,n=t?.ttlMs,o=t?.keyFn,s=(e,t=new WeakSet)=>{if(null===e)return"null";let i=typeof e;if("undefined"===i)return"undefined";if("number"===i||"boolean"===i||"string"===i)return JSON.stringify(e);if("function"===i)try{return e.toString()}catch{return'"[Function]"'}if("symbol"===i)try{return e.toString()}catch{return'"[Symbol]"'}if(Array.isArray(e))return`[${e.map(e=>s(e,t)).join(",")}]`;if(t.has(e))return'"[Circular]"';t.add(e);let a=Object.keys(e).sort();return`{${a.map(i=>`${JSON.stringify(i)}:${s(e[i],t)}`).join(",")}}`};return(...t)=>{let r,l=(r=t,o?o(r):s(r)),d=Date.now(),c=i.get(l);if(void 0!==c)if(!n||!(d-c.ts>n))return i.delete(l),i.set(l,{value:c.value,ts:c.ts}),c.value;else i.delete(l);let u=e(...t);if(i.set(l,{value:u,ts:d}),"number"==typeof a&&a>=0)for(;i.size>a;){let e=i.keys().next().value;if(void 0===e)break;i.delete(e)}return u}}function f(){return"u">typeof matchMedia}function v(){return globalThis.document}function g(e){if(f())return matchMedia(e)}function m(e){if("u">typeof IntersectionObserver)return new IntersectionObserver(e)}function y(e){if("u">typeof MutationObserver)return new MutationObserver(e)}function b(e,t){return e===t||(0,o.cy)(t)&&t.includes(e)}function x(e){return Math.floor((0,a.G0)()*e.length)}function w(e,t,i=!0){return e[void 0!==t&&i?t%e.length:x(e)]}function z(e,t,i,a,n){return M(S(e,a??0),t,i,n)}function M(e,t,i,a){let n=!0;return a&&a!==d.v.bottom||(n=e.top<t.height+i.x),n&&(!a||a===d.v.left)&&(n=e.right>i.x),n&&(!a||a===d.v.right)&&(n=e.left<t.width+i.y),n&&(!a||a===d.v.top)&&(n=e.bottom>i.y),n}function S(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function k(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:h.M.create((0,a.VG)(e.options.bounce.horizontal.value),(0,a.VG)(e.options.bounce.vertical.value))}}function O(e,t){let{x:i,y:n}=e.velocity.sub(t.velocity),[o,s]=[e.position,t.position],{dx:r,dy:l}=(0,a.vr)(s,o);if(i*r+n*l<0)return;let d=-Math.atan2(l,r),c=e.mass,u=t.mass,h=e.velocity.rotate(d),p=t.velocity.rotate(d),f=(0,a.OW)(h,p,c,u),v=(0,a.OW)(p,h,c,u),g=f.rotate(-d),m=v.rotate(-d);e.velocity.x=g.x*e.factor.x,e.velocity.y=g.y*e.factor.y,t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y}function P(e,t){return(0,o.cy)(e)?e.map((e,i)=>t(e,i)):t(e,0)}function R(e,t,i){return(0,o.cy)(e)?w(e,t,i):e}function E(e,t){return(0,o.cy)(e)?e.find((e,i)=>t(e,i)):t(e,0)?e:void 0}function T(e,t){let i=e.value,o=e.animation,l={delayTime:(0,a.VG)(o.delay)*n.Xu,enable:o.enable,value:(0,a.VG)(e.value)*t,max:(0,a.W9)(i)*t,min:(0,a.Sg)(i)*t,loops:0,maxLoops:(0,a.VG)(o.count),time:0};if(o.enable){switch(l.decay=1-(0,a.VG)(o.decay),o.mode){case s.g.increase:l.status=r.H.increasing;break;case s.g.decrease:l.status=r.H.decreasing;break;case s.g.random:l.status=(0,a.G0)()>=n.MX?r.H.increasing:r.H.decreasing}let e=o.mode===s.g.auto;switch(o.startValue){case u.S.min:l.value=l.min,e&&(l.status=r.H.increasing);break;case u.S.max:l.value=l.max,e&&(l.status=r.H.decreasing);break;case u.S.random:default:l.value=(0,a.vE)(l),e&&(l.status=(0,a.G0)()>=n.MX?r.H.increasing:r.H.decreasing)}}return l.initialValue=l.value,l}function _(e,t){if(e.mode!==c.q.percent){let{mode:t,...i}=e;return i}return"x"in e?{x:e.x/n.a5*t.width,y:e.y/n.a5*t.height}:{width:e.width/n.a5*t.width,height:e.height/n.a5*t.height}}function F(e,t){return _(e,t)}function A(e,t){return _(e,t)}function I(e,t,i,n,o){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;let s=(t.velocity??0)*o.factor,d=t.min,c=t.max,u=t.decay??1;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=o.value),!((t.delayTime??0)>0)||!(t.time<(t.delayTime??0))){switch(t.status){case r.H.increasing:t.value>=c?(i?t.status=r.H.decreasing:t.value-=c,t.loops??=0,t.loops++):t.value+=s;break;case r.H.decreasing:t.value<=d?(i?t.status=r.H.increasing:t.value+=c,t.loops??=0,t.loops++):t.value-=s}t.velocity&&1!==u&&(t.velocity*=u);var h=t.value;switch(n){case l.V.max:h>=c&&e.destroy();break;case l.V.min:h<=d&&e.destroy()}t.value=(0,a.qE)(t.value,d,c)}}function D(e){let t=v().createElement("div").style;for(let i in e){let a=e[i];if(!(i in e)||(0,o.kZ)(a))continue;let n=e.getPropertyValue?.(a);if(!n)continue;let s=e.getPropertyPriority?.(a);s?t.setProperty(a,n,s):t.setProperty(a,n)}return t}let L=p(function(e){let t=v().createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:e.toString(10),"z-index":e.toString(10),top:"0",left:"0"};for(let e in i){let a=i[e];void 0!==a&&t.setProperty(e,a)}return t});function V(e,t,i,a,n){if(a){let a={passive:!0};(0,o.Lm)(n)?a.capture=n:void 0!==n&&(a=n),e.addEventListener(t,i,a)}else e.removeEventListener(t,i,n)}async function C(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=await Promise.all([...i.values()].map(t=>t(e))),t.set(e,n)),n}async function $(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=new Map(await Promise.all([...i.entries()].map(([t,i])=>i(e).then(e=>[t,e])))),t.set(e,n)),n}},2540(e,t,i){i.d(t,{HKZ:()=>P.H,A9e:()=>F.A,gmr:()=>M.g,pK_:()=>A.p,H_P:()=>_.H,Jmi:()=>el.Jm,VS$:()=>I.V,dgY:()=>b.dg,jlt:()=>b.jl,evc:()=>D.e,VKE:()=>R.V,mgy:()=>l,Bx4:()=>h.B,SQl:()=>q.S,mcU:()=>L.m,hqM:()=>r,i74:()=>V.i,dtg:()=>S.d,yUV:()=>K.y,hzL:()=>j.h,Zgv:()=>N.Z,FWc:()=>w.F,y1u:()=>W.y,vU7:()=>X.v,Y4E:()=>et.Y,IhC:()=>ei.I,JYR:()=>C.J,Oit:()=>$.O,Yzx:()=>k.Y,v5k:()=>z.v,j$q:()=>U.j,x_I:()=>E.x,wvn:()=>B.w,F5W:()=>G.F,M1g:()=>ee.M,NeW:()=>J.N,Ad4:()=>Q.A,UOj:()=>Z.U,qiC:()=>O.q,Q4c:()=>A.Q,AIw:()=>el.AI,M_G:()=>b.M_,z0z:()=>er.z,pTR:()=>s,ypk:()=>ea.y,or0:()=>en.o,qvJ:()=>eo.q,tKH:()=>Y.t,SKz:()=>T.S,tcj:()=>H.t,PVU:()=>el.PV,Miz:()=>x.M,pGL:()=>x.p,Pyx:()=>es.P,yxh:()=>ec.yx,i0Z:()=>v.i0,O2_:()=>c.O2,n02:()=>c.n0,NxB:()=>v.Nx,qMV:()=>v.qM,ehY:()=>v.eh,MhH:()=>v.Mh,l1q:()=>v.l1,AEc:()=>c.AE,pxm:()=>v.px,Nxk:()=>d.Nx,RFH:()=>d.RF,gpg:()=>v.gp,pEn:()=>c.pE,Tgl:()=>c.Tg,qE8:()=>v.qE,IUd:()=>ed.IU,td3:()=>c.td,OWw:()=>v.OW,EYT:()=>ec.EY,mKQ:()=>ec.mK,qe:()=>ec.qe,nqC:()=>d.nq,WH8:()=>d.WH,zwS:()=>c.zw,aZx:()=>d.aZ,tAJ:()=>d.tA,yjn:()=>d.yj,lA:()=>d.lA,z$P:()=>d.z$,i8E:()=>d.i8,hKc:()=>d.hK,hvP:()=>d.hv,$xb:()=>d.$x,ZpR:()=>d.Zp,xd3:()=>d.xd,rqX:()=>d.rq,Fli:()=>d.Fl,tRb:()=>d.tR,UgP:()=>d.Ug,zss:()=>d.zs,jnW:()=>d.jn,Pf9:()=>d.Pf,puj:()=>v.pu,LDU:()=>d.LD,gdl:()=>d.gd,R1e:()=>d.R1,kac:()=>ed.k,z5n:()=>ed.z5,p0m:()=>ed.p0,Wbn:()=>ed.Wb,KG7:()=>ed.KG,gF3:()=>ed.gF,VGT:()=>ed.VG,Iex:()=>d.Ie,wJ2:()=>c.wJ,w3Z:()=>c.w3,eb4:()=>d.eb,X$G:()=>d.X$,cei:()=>d.ce,YfF:()=>v.Yf,Scl:()=>v.Sc,vrU:()=>v.vr,hJS:()=>c.hJ,pzy:()=>ec.pz,O_i:()=>ec.O_,OtU:()=>c.Ot,HQK:()=>c.HQ,_hh:()=>ec._h,PGG:()=>ec.PG,tZQ:()=>f.t,$mf:()=>v.$m,JYE:()=>v.JY,E90:()=>c.E9,G0i:()=>v.G0,e4g:()=>v.e4,OHq:()=>ec.OH,W9e:()=>v.W9,Sgh:()=>v.Sg,VGA:()=>v.VG,YCE:()=>c.YC,LCf:()=>ec.LC,xxz:()=>ec.xx,vSh:()=>d.vS,L1V:()=>d.L1,U0s:()=>d.U0,MXx:()=>d.MX,q8J:()=>c.q8,YLU:()=>ec.YL,ayx:()=>ec.ay,D_O:()=>d.D_,XsS:()=>c.Xs,hBr:()=>d.hB,cyL:()=>eh.cy,Lmq:()=>eh.Lm,Tnt:()=>eh.Tn,hnD:()=>c.hn,kZJ:()=>eh.kZ,EtT:()=>eh.Et,Gvm:()=>eh.Gv,Tj8:()=>c.Tj,KgX:()=>eh.Kg,Vh1:()=>c.Vh,TA3:()=>c.TA,iUN:()=>d.iU,$_c:()=>d.$_,vd6:()=>d.vd,K3:()=>d.K3,PZY:()=>d.PZ,ZGK:()=>eu.Z,yVN:()=>eu.y,$v4:()=>d.$v,KpY:()=>c.Kp,BjF:()=>c.Bj,BWm:()=>d.BW,XuV:()=>d.Xu,wMU:()=>d.wM,DNI:()=>d.DN,z94:()=>d.z9,ou7:()=>d.ou,Dvh:()=>d.Dv,GWL:()=>d.GW,X_1:()=>d.X_,w20:()=>d.w2,jhA:()=>v.jh,dvp:()=>d.dv,xHs:()=>d.xH,boI:()=>d.bo,SnF:()=>ed.Sn,MdX:()=>ed.Md,M3Y:()=>v.M3,a56:()=>d.a5,BFN:()=>d.BF,$GP:()=>d.$G,mRf:()=>d.mR,vEz:()=>v.vE,R5R:()=>ec.R5,BN0:()=>ec.BN,JC0:()=>d.JC,vFD:()=>d.vF,NFi:()=>d.NF,oiR:()=>d.oi,K6u:()=>ec.K6,euA:()=>d.eu,yxQ:()=>d.yx,aEA:()=>d.aE,T5G:()=>c.T5,BRq:()=>c.BR,lVH:()=>c.lV,tGT:()=>c.tG,ADE:()=>v.AD,Bro:()=>f.B,OEu:()=>v.OE,DT4:()=>v.DT,zgn:()=>d.zg,iXO:()=>d.iX,dmB:()=>d.dm,zIs:()=>ec.zI,egF:()=>ec.eg,RqE:()=>d.Rq,NuQ:()=>d.Nu,Eow:()=>d.Eo,$k3:()=>ep,UC0:()=>c.UC,JvX:()=>ec.Jv,Kog:()=>ec.Ko,nKi:()=>d.nK,RVs:()=>d.RV});var a,n,o,s,r,l,d=i(9889),c=i(7171);class u{_listeners;constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let i=this._listeners.get(e);i||(i=[],this._listeners.set(e,i)),i.push(t)}dispatchEvent(e,t){let i=this._listeners.get(e);i?.forEach(e=>{e(t)})}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){let i=this._listeners.get(e);if(!i)return;let a=i.length,n=i.indexOf(t);n<d.z9||(a===d.LD?this._listeners.delete(e):i.splice(n,d.LD))}}var h=i(5291);class p{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;_allLoadersSet=new Set;_configs=new Map;_engine;_executedSet=new Set;_initialized=!1;_isRunningLoaders=!1;_loadPromises=new Set;constructor(e){this._engine=e}get configs(){let e={};for(let[t,i]of this._configs)e[t]=i;return e}addColorManager(e,t){this.colorManagers.set(e,t)}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._engine.dispatchEvent(h.B.configAdded,{data:{name:t,config:e}})}addEasing(e,t){this.easingFunctions.get(e)||this.easingFunctions.set(e,t)}addEffect(e,t){this.initializers.effects.set(e,t)}addPalette(e,t){this.palettes.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.set(e,t)}addPlugin(e){this.getPlugin(e.id)||this.plugins.push(e)}addPreset(e,t,i=!1){(i||!this.getPreset(e))&&this.presets.set(e,t)}addShape(e,t){for(let i of e)this.initializers.shapes.set(i,t)}clearPlugins(e){this.effectDrawers.delete(e),this.shapeDrawers.delete(e),this.updaters.delete(e)}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawers(e,t=!1){return(0,c.Ot)(e,this.effectDrawers,this.initializers.effects,t)}getPalette(e){return this.palettes.get(e)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}async getShapeDrawers(e,t=!1){return(0,c.Ot)(e,this.shapeDrawers,this.initializers.shapes,t)}async getUpdaters(e,t=!1){return(0,c.HQ)(e,this.updaters,this.initializers.updaters,t)}async init(){if(!this._initialized&&!this._isRunningLoaders){this._isRunningLoaders=!0,this._executedSet=new Set,this._allLoadersSet=new Set(this._loadPromises);try{for(let e of this._allLoadersSet)await this._runLoader(e,this._executedSet,this._allLoadersSet)}finally{this._loadPromises.clear(),this._isRunningLoaders=!1,this._initialized=!0}}}loadParticlesOptions(e,t,...i){let a=this.updaters.get(e);a&&a.forEach(e=>e.loadOptions?.(t,...i))}async register(...e){if(this._initialized)throw Error("Register plugins can only be done before calling tsParticles.load()");for(let t of e)this._isRunningLoaders?await this._runLoader(t,this._executedSet,this._allLoadersSet):this._loadPromises.add(t)}async _runLoader(e,t,i){t.has(e)||(t.add(e),i.add(e),await e(this._engine))}}var f=i(4035),v=i(5273);let g="100%";async function m(e){let t=(0,c.TA)(e.url,e.index);if(!t)return e.fallback;let i=await fetch(t);return i.ok?await i.json():((0,f.t)().error(`${i.status.toString()} while retrieving config file`),e.fallback)}class y{pluginManager=new p(this);_domArray=[];_eventDispatcher=new u;_initialized=!1;get items(){return this._domArray}get version(){return"4.0.0-beta.2"}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}checkVersion(e){if(this.version!==e)throw Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}async init(){this._initialized||(await this.pluginManager.init(),this._initialized=!0)}item(e){let{items:t}=this,i=t[e];return i?.destroyed?void t.splice(e,d.JC):i}async load(e){var t;let a,n;await this.init();let{Container:o}=await i.e(510).then(i.bind(i,1510)),s=e.id??e.element?.id??`tsparticles${Math.floor((0,v.G0)()*d.$v).toString()}`,{index:r,url:l}=e,u=l?await m({fallback:e.options,url:l,index:r}):e.options,h=(0,c.TA)(u,r),{items:p}=this,f=p.findIndex(e=>e.id.description===s),y=new o({dispatchCallback:(e,t)=>{this.dispatchEvent(e,t)},id:s,onDestroy:e=>{if(!e)return;let t=this.items,i=t.indexOf(y);i>=d.vF&&t.splice(i,d.JC)},pluginManager:this.pluginManager,sourceOptions:h});if(f>=d.PZ){let e=this.item(f),t=e?d.xH:d.dv;e&&!e.destroyed&&e.destroy(!1),p.splice(f,t,y)}else p.push(y);let b=(e=>{let t,i=(0,c.T5)();if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===d.RF)t=e,t.dataset[d.eb]??=d.X$;else{let a=e.getElementsByTagName(d.RF)[d.Nx];a?(t=a).dataset[d.eb]=d.X$:((t=i.createElement(d.RF)).dataset[d.eb]=d.ce,e.appendChild(t))}return t.style.width||=g,t.style.height||=g,t})((t=e.element,a=(0,c.T5)(),(n=t??a.getElementById(s))||((n=a.createElement("canvas")).id=s,n.dataset[d.eb]=d.ce,a.body.append(n)),n));return y.canvas.loadCanvas(b),await y.start(),y}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}}var b=i(1745),x=i(5700),w=i(7730);(a=s||(s={})).clockwise="clockwise",a.counterClockwise="counter-clockwise",a.random="random";var z=i(5278),M=i(3627),S=i(8534),k=i(4517),O=i(5697),P=i(4763),R=i(4121);(n=r||(r={})).linear="linear",n.radial="radial",n.random="random";var E=i(2677),T=i(1706);(o=l||(l={})).easeInBack="ease-in-back",o.easeInBounce="ease-in-bounce",o.easeInCirc="ease-in-circ",o.easeInCubic="ease-in-cubic",o.easeInElastic="ease-in-elastic",o.easeInExpo="ease-in-expo",o.easeInGaussian="ease-in-gaussian",o.easeInLinear="ease-in-linear",o.easeInQuad="ease-in-quad",o.easeInQuart="ease-in-quart",o.easeInQuint="ease-in-quint",o.easeInSigmoid="ease-in-sigmoid",o.easeInSine="ease-in-sine",o.easeInSmoothstep="ease-in-smoothstep",o.easeOutBack="ease-out-back",o.easeOutBounce="ease-out-bounce",o.easeOutCirc="ease-out-circ",o.easeOutCubic="ease-out-cubic",o.easeOutElastic="ease-out-elastic",o.easeOutExpo="ease-out-expo",o.easeOutGaussian="ease-out-gaussian",o.easeOutLinear="ease-out-linear",o.easeOutQuad="ease-out-quad",o.easeOutQuart="ease-out-quart",o.easeOutQuint="ease-out-quint",o.easeOutSigmoid="ease-out-sigmoid",o.easeOutSine="ease-out-sine",o.easeOutSmoothstep="ease-out-smoothstep",o.easeInOutBack="ease-in-out-back",o.easeInOutBounce="ease-in-out-bounce",o.easeInOutCirc="ease-in-out-circ",o.easeInOutCubic="ease-in-out-cubic",o.easeInOutElastic="ease-in-out-elastic",o.easeInOutExpo="ease-in-out-expo",o.easeInOutGaussian="ease-in-out-gaussian",o.easeInOutLinear="ease-in-out-linear",o.easeInOutQuad="ease-in-out-quad",o.easeInOutQuart="ease-in-out-quart",o.easeInOutQuint="ease-in-out-quint",o.easeInOutSigmoid="ease-in-out-sigmoid",o.easeInOutSine="ease-in-out-sine",o.easeInOutSmoothstep="ease-in-out-smoothstep";var _=i(197),F=i(4157),A=i(3852),I=i(2211),D=i(4343),L=i(4369),V=i(5707),C=i(3748),$=i(9777),B=i(4040),G=i(7144),Z=i(1975),q=i(9041),H=i(8284),K=i(4589),j=i(4666),N=i(4284),W=i(4687),U=i(3120),X=i(9668),Y=i(9940),J=i(7308),Q=i(5693),ee=i(7769),et=i(477),ei=i(535),ea=i(5865),en=i(2181),eo=i(5903),es=i(7391),er=i(7066),el=i(7292),ed=i(6919),ec=i(2636),eu=i(2439),eh=i(523);let ep=new y;globalThis.tsParticles=ep}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return a[e](i,i.exports,o),i.exports}o.m=a,o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((t,i)=>(o.f[i](e,t),t),[])),o.u=e=>""+e+".min.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s={},o.l=(e,t,i,a)=>{if(s[e])return void s[e].push(t);if(void 0!==i)for(var n,r,l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var c=l[d];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")=="@tsparticles/fireworks:"+i){n=c;break}}n||(r=!0,(n=document.createElement("script")).charset="utf-8",o.nc&&n.setAttribute("nonce",o.nc),n.setAttribute("data-webpack","@tsparticles/fireworks:"+i),n.src=e),s[e]=[t];var u=(t,i)=>{n.onerror=n.onload=null,clearTimeout(h);var a=s[e];if(delete s[e],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach(e=>e(i)),t)return t(i)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=u.bind(null,n.onerror),n.onload=u.bind(null,n.onload),r&&document.head.appendChild(n)},o.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.g.importScripts&&(r=o.g.location+"");var s,r,l=o.g.document;if(!r&&l&&(l.currentScript&&"SCRIPT"===l.currentScript.tagName.toUpperCase()&&(r=l.currentScript.src),!r)){var d=l.getElementsByTagName("script");if(d.length)for(var c=d.length-1;c>-1&&(!r||!/^http(s?):/.test(r));)r=d[c--].src}if(!r)throw Error("Automatic publicPath is not supported in this browser");o.p=r=r.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e={827:0},o.f.j=(t,i)=>{var a=o.o(e,t)?e[t]:void 0;if(0!==a)if(a)i.push(a[2]);else{var n=new Promise((i,n)=>a=e[t]=[i,n]);i.push(a[2]=n);var s=o.p+o.u(t),r=Error();o.l(s,i=>{if(o.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;r.message="Loading chunk "+t+` failed.
2
+ (`+n+": "+s+")",r.name="ChunkLoadError",r.type=n,r.request=s,a[1](r)}},"chunk-"+t,t)}},t=(t,i)=>{var a,n,[s,r,l]=i,d=0;if(s.some(t=>0!==e[t])){for(a in r)o.o(r,a)&&(o.m[a]=r[a]);l&&l(o)}for(t&&t(i);d<s.length;d++)n=s[d],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0},(i=this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i));var u={};o.r(u),o.d(u,{AlterType:()=>h.HKZ,AnimatableColor:()=>h.A9e,AnimationMode:()=>h.gmr,AnimationOptions:()=>h.pK_,AnimationStatus:()=>h.H_P,AnimationValueWithRandom:()=>h.Jmi,Background:()=>h.VS$,BaseRange:()=>h.dgY,Circle:()=>h.jlt,ColorAnimation:()=>h.evc,DestroyType:()=>h.VKE,EasingType:()=>h.mgy,EventType:()=>h.Bx4,Fill:()=>h.SQl,FullScreen:()=>h.mcU,GradientType:()=>h.hqM,HslAnimation:()=>h.i74,LimitMode:()=>h.dtg,Move:()=>h.yUV,MoveAngle:()=>h.hzL,MoveCenter:()=>h.Zgv,MoveDirection:()=>h.FWc,MoveGravity:()=>h.y1u,MovePath:()=>h.vU7,Opacity:()=>h.Y4E,OpacityAnimation:()=>h.IhC,Options:()=>h.JYR,OptionsColor:()=>h.Oit,OutMode:()=>h.Yzx,OutModeDirection:()=>h.v5k,OutModes:()=>h.j$q,ParticleOutType:()=>h.x_I,ParticlesBounce:()=>h.wvn,ParticlesBounceFactor:()=>h.F5W,ParticlesDensity:()=>h.M1g,ParticlesNumber:()=>h.NeW,ParticlesNumberLimit:()=>h.Ad4,ParticlesOptions:()=>h.UOj,PixelMode:()=>h.qiC,RangedAnimationOptions:()=>h.Q4c,RangedAnimationValueWithRandom:()=>h.AIw,Rectangle:()=>h.M_G,ResizeEvent:()=>h.z0z,RotateDirection:()=>h.pTR,Shape:()=>h.ypk,Size:()=>h.or0,SizeAnimation:()=>h.qvJ,Spin:()=>h.tKH,StartValueType:()=>h.SKz,Stroke:()=>h.tcj,ValueWithRandom:()=>h.PVU,Vector:()=>h.Miz,Vector3d:()=>h.pGL,ZIndex:()=>h.Pyx,alterHsl:()=>h.yxh,animate:()=>h.i0Z,areBoundsInside:()=>h.O2_,arrayRandomIndex:()=>h.n02,calcExactPositionOrRandomFromSize:()=>h.NxB,calcExactPositionOrRandomFromSizeRanged:()=>h.qMV,calcPositionFromSize:()=>h.ehY,calcPositionOrRandomFromSize:()=>h.MhH,calcPositionOrRandomFromSizeRanged:()=>h.l1q,calculateBounds:()=>h.AEc,cancelAnimation:()=>h.pxm,canvasFirstIndex:()=>h.Nxk,canvasTag:()=>h.RFH,checkDistance:()=>h.gpg,circleBounce:()=>h.pEn,circleBounceDataFromParticle:()=>h.Tgl,clamp:()=>h.qE8,clear:()=>h.IUd,cloneStyle:()=>h.td3,collisionVelocity:()=>h.OWw,colorMix:()=>h.EYT,colorToHsl:()=>h.mKQ,colorToRgb:()=>h.qe,countOffset:()=>h.nqC,decayOffset:()=>h.WH8,deepExtend:()=>h.zwS,defaultAlpha:()=>h.aZx,defaultAngle:()=>h.tAJ,defaultCompositeValue:()=>h.yjn,defaultDensityFactor:()=>h.lA,defaultFps:()=>h.z$P,defaultFpsLimit:()=>h.i8E,defaultLoops:()=>h.hKc,defaultOpacity:()=>h.hvP,defaultRatio:()=>h.$xb,defaultReduceFactor:()=>h.ZpR,defaultRemoveQuantity:()=>h.xd3,defaultRetryCount:()=>h.rqX,defaultRgbMin:()=>h.Fli,defaultTime:()=>h.tRb,defaultTransform:()=>h.UgP,defaultTransformValue:()=>h.zss,defaultVelocity:()=>h.jnW,defaultZoom:()=>h.Pf9,degToRad:()=>h.puj,deleteCount:()=>h.LDU,double:()=>h.gdl,doublePI:()=>h.R1e,drawAfterEffect:()=>h.kac,drawBeforeEffect:()=>h.z5n,drawParticle:()=>h.p0m,drawParticlePlugin:()=>h.Wbn,drawShape:()=>h.KG7,drawShapeAfterDraw:()=>h.gF3,drawShapeBeforeDraw:()=>h.VGT,empty:()=>h.Iex,executeOnSingleOrMultiple:()=>h.wJ2,findItemFromSingleOrMultiple:()=>h.w3Z,fireworks:()=>b,generatedAttribute:()=>h.eb4,generatedFalse:()=>h.X$G,generatedTrue:()=>h.cei,getDistance:()=>h.YfF,getDistanceSq:()=>h.Scl,getDistances:()=>h.vrU,getFullScreenStyle:()=>h.hJS,getHslAnimationFromHsl:()=>h.pzy,getHslFromAnimation:()=>h.O_i,getItemMapFromInitializer:()=>h.OtU,getItemsFromInitializer:()=>h.HQK,getLinkColor:()=>h._hh,getLinkRandomColor:()=>h.PGG,getLogger:()=>h.tZQ,getParticleBaseVelocity:()=>h.$mf,getParticleDirectionAngle:()=>h.JYE,getPosition:()=>h.E90,getRandom:()=>h.G0i,getRandomInRange:()=>h.e4g,getRandomRgbColor:()=>h.OHq,getRangeMax:()=>h.W9e,getRangeMin:()=>h.Sgh,getRangeValue:()=>h.VGA,getSize:()=>h.YCE,getStyleFromHsl:()=>h.LCf,getStyleFromRgb:()=>h.xxz,hMax:()=>h.vSh,hMin:()=>h.L1V,hPhase:()=>h.U0s,half:()=>h.MXx,hasMatchMedia:()=>h.q8J,hslToRgb:()=>h.YLU,hslaToRgba:()=>h.ayx,identity:()=>h.D_O,initParticleNumericAnimationValue:()=>h.XsS,inverseFactorNumerator:()=>h.hBr,isArray:()=>h.cyL,isBoolean:()=>h.Lmq,isFunction:()=>h.Tnt,isInArray:()=>h.hnD,isNull:()=>h.kZJ,isNumber:()=>h.EtT,isObject:()=>h.Gvm,isPointInside:()=>h.Tj8,isString:()=>h.KgX,itemFromArray:()=>h.Vh1,itemFromSingleOrMultiple:()=>h.TA3,lFactor:()=>h.iUN,lMax:()=>h.$_c,lMin:()=>h.vd6,lengthOffset:()=>h.K3,loadMinIndex:()=>h.PZY,loadOptions:()=>h.ZGK,loadParticlesOptions:()=>h.yVN,loadRandomFactor:()=>h.$v4,manageListener:()=>h.KpY,memoize:()=>h.BjF,midColorValue:()=>h.BWm,millisecondsToSeconds:()=>h.XuV,minCount:()=>h.wMU,minFpsLimit:()=>h.DNI,minIndex:()=>h.z94,minLimit:()=>h.ou7,minStrokeWidth:()=>h.Dvh,minVelocity:()=>h.GWL,minZ:()=>h.X_1,minimumSize:()=>h.w20,mix:()=>h.jhA,none:()=>h.dvp,one:()=>h.xHs,originPoint:()=>h.boI,paintBase:()=>h.SnF,paintImage:()=>h.MdX,parseAlpha:()=>h.M3Y,percentDenominator:()=>h.a56,phaseNumerator:()=>h.BFN,quarter:()=>h.$GP,randomColorValue:()=>h.mRf,randomInRangeValue:()=>h.vEz,rangeColorToHsl:()=>h.R5R,rangeColorToRgb:()=>h.BN0,removeDeleteCount:()=>h.JC0,removeMinIndex:()=>h.vFD,resizeEvent:()=>h.NFi,rgbMax:()=>h.oiR,rgbToHsl:()=>h.K6u,sMax:()=>h.euA,sMin:()=>h.yxQ,sNormalizedOffset:()=>h.aEA,safeDocument:()=>h.T5G,safeIntersectionObserver:()=>h.BRq,safeMatchMedia:()=>h.lVH,safeMutationObserver:()=>h.tGT,setAnimationFunctions:()=>h.ADE,setLogger:()=>h.Bro,setRandom:()=>h.OEu,setRangeValue:()=>h.DT4,sextuple:()=>h.zgn,spatialHashGridCellSize:()=>h.iXO,squareExp:()=>h.dmB,stringToAlpha:()=>h.zIs,stringToRgb:()=>h.egF,threeQuarter:()=>h.RqE,triple:()=>h.NuQ,tryCountIncrement:()=>h.Eow,tsParticles:()=>h.$k3,updateAnimation:()=>h.UC0,updateColor:()=>h.JvX,updateColorValue:()=>h.Kog,visibilityChangeEvent:()=>h.nKi,zIndexFactorOffset:()=>h.RVs});var h=o(2540);class p{background;brightness;colors;gravity;minHeight;rate;saturation;sounds;speed;splitCount;constructor(){this.background="none",this.brightness={min:-30,max:30},this.colors=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93"],this.gravity=5,this.minHeight={min:10,max:30},this.rate=10,this.saturation={min:-30,max:30},this.sounds=!0,this.speed={min:5,max:15},this.splitCount={min:75,max:150}}load(e){(0,h.kZJ)(e)||(void 0!==e.background&&(this.background=e.background),void 0!==e.colors&&((0,h.cyL)(e.colors)?this.colors=[...e.colors]:this.colors=e.colors),void 0!==e.brightness&&(this.brightness=(0,h.DT4)(e.brightness)),void 0!==e.gravity&&(this.gravity=(0,h.DT4)(e.gravity)),void 0!==e.minHeight&&(this.minHeight=(0,h.DT4)(e.minHeight)),void 0!==e.rate&&(this.rate=(0,h.DT4)(e.rate)),void 0!==e.saturation&&(this.saturation=(0,h.DT4)(e.saturation)),void 0!==e.sounds&&(this.sounds=e.sounds),void 0!==e.speed&&(this.speed=(0,h.DT4)(e.speed)),void 0!==e.splitCount&&(this.splitCount=(0,h.DT4)(e.splitCount)))}}let f=!1,v=!1,g=e=>{let t=e.data;return"circle"===t.particle.shape&&!!t.particle.splitCount&&t.particle.splitCount<2};async function m(e){if(!f){if(v)return new Promise(e=>{let t=setInterval(()=>{f&&(clearInterval(t),e())},100)});v=!0,e.checkVersion("4.0.0-beta.2"),await e.pluginManager.register(async e=>{let[{loadBasic:t},{loadEmittersPluginSimple:i},{loadEmittersShapeSquare:a},{loadSoundsPlugin:n},{loadRotateUpdater:s},{loadDestroyUpdater:r},{loadLifeUpdater:l},{loadTrailEffect:d}]=await Promise.all([o.e(51).then(o.bind(o,4051)),o.e(813).then(o.bind(o,3813)),o.e(880).then(o.bind(o,4880)),o.e(301).then(o.bind(o,301)),o.e(626).then(o.bind(o,8626)),o.e(951).then(o.bind(o,951)),o.e(737).then(o.bind(o,3737)),o.e(601).then(o.bind(o,4601))]);await Promise.all([t(e),(async()=>{await i(e),await a(e)})(),n(e),s(e),r(e),l(e),d(e)])}),v=!1,f=!0}}async function y(e,t,i){await m(h.$k3);let a=new p;a.load(t);let n={detectRetina:!0,background:{color:a.background},fullScreen:{enable:!!i},fpsLimit:60,emitters:{direction:h.FWc.top,life:{count:0,duration:.1,delay:.1},rate:{delay:(0,h.EtT)(a.rate)?1/a.rate:{min:1/(0,h.Sgh)(a.rate),max:1/(0,h.W9e)(a.rate)},quantity:1},size:{width:100,height:0},position:{y:100,x:50}},particles:{number:{value:0},fill:{color:{value:"#fff"},enable:!0},destroy:{mode:"split",bounds:{top:(0,h.DT4)(a.minHeight)},split:{sizeOffset:!1,count:1,factor:{value:.333333},rate:{value:a.splitCount},fillColorOffset:{s:a.saturation,l:a.brightness},particles:{fill:{color:{value:a.colors},enable:!0},stroke:{width:0},number:{value:0},opacity:{value:{min:.1,max:1},animation:{enable:!0,speed:1,sync:!1,startValue:h.SKz.max,destroy:h.VKE.min}},effect:{type:"trail",options:{trail:{length:{min:5,max:10}}}},shape:{type:"circle"},size:{value:{min:1,max:2},animation:{enable:!0,speed:5,count:1,sync:!1,startValue:h.SKz.min,destroy:h.VKE.none}},life:{count:1,duration:{value:{min:.25,max:.5}}},move:{decay:{min:.05,max:.1},enable:!0,gravity:{enable:!0,inverse:!1,acceleration:(0,h.DT4)(a.gravity)},speed:(0,h.DT4)(a.speed),direction:"none",outModes:h.Yzx.destroy}}}},life:{count:1},effect:{type:"trail",options:{trail:{length:{min:10,max:30},minWidth:1,maxWidth:1}}},shape:{type:"circle"},size:{value:1},opacity:{value:.5},rotate:{path:!0},move:{enable:!0,gravity:{acceleration:15,enable:!0,inverse:!0,maxSpeed:100},speed:{min:10,max:20},outModes:{default:h.Yzx.destroy,top:h.Yzx.none}}},sounds:{enable:a.sounds,events:[{event:h.Bx4.particleRemoved,filter:g,audio:["https://particles.js.org/audio/explosion0.mp3","https://particles.js.org/audio/explosion1.mp3","https://particles.js.org/audio/explosion2.mp3"]}],volume:50}},s=await h.$k3.load({id:e,element:i,options:n});if(!s)return;let{FireworksInstance:r}=await o.e(663).then(o.bind(o,8663));return new r(s)}async function b(e,t){let i,a;return(0,h.KgX)(e)?(i=e,a=t??{}):(i="fireworks",a=e??{}),y(i,a)}return b.create=async(e,t)=>y(e.id||"fireworks",t??{},e),b.init=async()=>{await m(h.$k3)},b.version="4.0.0-beta.2",globalThis.fireworks=b,u})());
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-beta.0
7
+ * v4.0.0-beta.2
8
8
  */
9
9
  /*
10
10
  * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
@@ -16,14 +16,14 @@
16
16
  */
17
17
  (function webpackUniversalModuleDefinition(root, factory) {
18
18
  if(typeof exports === 'object' && typeof module === 'object')
19
- module.exports = factory(require("@tsparticles/engine"), require("@tsparticles/effect-trail"), require("@tsparticles/updater-life"), require("@tsparticles/updater-destroy"), require("@tsparticles/updater-rotate"), require("@tsparticles/plugin-sounds"), require("@tsparticles/plugin-emitters-shape-square"), require("@tsparticles/plugin-emitters"), require("@tsparticles/basic"));
19
+ module.exports = factory(require("@tsparticles/engine"), require("@tsparticles/effect-trail"), require("@tsparticles/updater-life"), require("@tsparticles/updater-destroy"), require("@tsparticles/updater-rotate"), require("@tsparticles/plugin-sounds"), require("@tsparticles/plugin-emitters-shape-square"), require("@tsparticles/plugin-emitters/plugin"), require("@tsparticles/basic"));
20
20
  else if(typeof define === 'function' && define.amd)
21
- define(["@tsparticles/engine", "@tsparticles/effect-trail", "@tsparticles/updater-life", "@tsparticles/updater-destroy", "@tsparticles/updater-rotate", "@tsparticles/plugin-sounds", "@tsparticles/plugin-emitters-shape-square", "@tsparticles/plugin-emitters", "@tsparticles/basic"], factory);
21
+ define(["@tsparticles/engine", "@tsparticles/effect-trail", "@tsparticles/updater-life", "@tsparticles/updater-destroy", "@tsparticles/updater-rotate", "@tsparticles/plugin-sounds", "@tsparticles/plugin-emitters-shape-square", "@tsparticles/plugin-emitters/plugin", "@tsparticles/basic"], factory);
22
22
  else {
23
- var a = typeof exports === 'object' ? factory(require("@tsparticles/engine"), require("@tsparticles/effect-trail"), require("@tsparticles/updater-life"), require("@tsparticles/updater-destroy"), require("@tsparticles/updater-rotate"), require("@tsparticles/plugin-sounds"), require("@tsparticles/plugin-emitters-shape-square"), require("@tsparticles/plugin-emitters"), require("@tsparticles/basic")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]);
23
+ var a = typeof exports === 'object' ? factory(require("@tsparticles/engine"), require("@tsparticles/effect-trail"), require("@tsparticles/updater-life"), require("@tsparticles/updater-destroy"), require("@tsparticles/updater-rotate"), require("@tsparticles/plugin-sounds"), require("@tsparticles/plugin-emitters-shape-square"), require("@tsparticles/plugin-emitters/plugin"), require("@tsparticles/basic")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]);
24
24
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
25
25
  }
26
- })(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_engine__, __WEBPACK_EXTERNAL_MODULE__tsparticles_effect_trail__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_life__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_destroy__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_sounds__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters_shape_square__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__, __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__) => {
26
+ })(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_engine__, __WEBPACK_EXTERNAL_MODULE__tsparticles_effect_trail__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_life__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_destroy__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_sounds__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters_shape_square__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters_plugin__, __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__) => {
27
27
  return /******/ (() => { // webpackBootstrap
28
28
  /******/ "use strict";
29
29
  /******/ var __webpack_modules__ = ({
@@ -58,16 +58,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
58
58
 
59
59
  /***/ },
60
60
 
61
- /***/ "@tsparticles/plugin-emitters"
62
- /*!************************************************************************************************************************************************************!*\
63
- !*** external {"commonjs":"@tsparticles/plugin-emitters","commonjs2":"@tsparticles/plugin-emitters","amd":"@tsparticles/plugin-emitters","root":"window"} ***!
64
- \************************************************************************************************************************************************************/
65
- (module) {
66
-
67
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__;
68
-
69
- /***/ },
70
-
71
61
  /***/ "@tsparticles/plugin-emitters-shape-square"
72
62
  /*!***************************************************************************************************************************************************************************************************!*\
73
63
  !*** external {"commonjs":"@tsparticles/plugin-emitters-shape-square","commonjs2":"@tsparticles/plugin-emitters-shape-square","amd":"@tsparticles/plugin-emitters-shape-square","root":"window"} ***!
@@ -78,6 +68,16 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters_shape_sq
78
68
 
79
69
  /***/ },
80
70
 
71
+ /***/ "@tsparticles/plugin-emitters/plugin"
72
+ /*!*********************************************************************************************************************************************************************************!*\
73
+ !*** external {"commonjs":"@tsparticles/plugin-emitters/plugin","commonjs2":"@tsparticles/plugin-emitters/plugin","amd":"@tsparticles/plugin-emitters/plugin","root":"window"} ***!
74
+ \*********************************************************************************************************************************************************************************/
75
+ (module) {
76
+
77
+ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters_plugin__;
78
+
79
+ /***/ },
80
+
81
81
  /***/ "@tsparticles/plugin-sounds"
82
82
  /*!******************************************************************************************************************************************************!*\
83
83
  !*** external {"commonjs":"@tsparticles/plugin-sounds","commonjs2":"@tsparticles/plugin-sounds","amd":"@tsparticles/plugin-sounds","root":"window"} ***!
@@ -134,7 +134,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
134
134
  \***********************************/
135
135
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
136
136
 
137
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ fireworks: () => (/* binding */ fireworks)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n/* harmony import */ var _FireworkOptions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FireworkOptions.js */ \"./dist/browser/FireworkOptions.js\");\n\n\nlet initialized = false, initializing = false;\nconst minSplitCount = 2;\nconst explodeSoundCheck = (args)=>{\n const data = args.data;\n return data.particle.shape === \"circle\" && !!data.particle.splitCount && data.particle.splitCount < minSplitCount;\n};\nasync function initPlugins(engine) {\n if (initialized) {\n return;\n }\n if (initializing) {\n return new Promise((resolve)=>{\n const timeout = 100, interval = setInterval(()=>{\n if (!initialized) {\n return;\n }\n clearInterval(interval);\n resolve();\n }, timeout);\n });\n }\n initializing = true;\n engine.checkVersion(\"4.0.0-beta.0\");\n await engine.register(async (e)=>{\n const [{ loadBasic }, { loadEmittersPlugin }, { loadEmittersShapeSquare }, { loadSoundsPlugin }, { loadRotateUpdater }, { loadDestroyUpdater }, { loadLifeUpdater }, { loadTrailEffect }] = await Promise.all([\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/basic */ \"@tsparticles/basic\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-emitters */ \"@tsparticles/plugin-emitters\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-emitters-shape-square */ \"@tsparticles/plugin-emitters-shape-square\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-sounds */ \"@tsparticles/plugin-sounds\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-rotate */ \"@tsparticles/updater-rotate\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-destroy */ \"@tsparticles/updater-destroy\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-life */ \"@tsparticles/updater-life\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/effect-trail */ \"@tsparticles/effect-trail\", 19))\n ]);\n await Promise.all([\n loadBasic(e),\n loadEmittersPlugin(e),\n loadSoundsPlugin(e),\n loadRotateUpdater(e),\n loadDestroyUpdater(e),\n loadLifeUpdater(e),\n loadTrailEffect(e)\n ]);\n await loadEmittersShapeSquare(e);\n });\n initializing = false;\n initialized = true;\n}\nfunction getOptions(options, canvas) {\n const identity = 1;\n return {\n detectRetina: true,\n background: {\n color: options.background\n },\n fullScreen: {\n enable: !!canvas\n },\n fpsLimit: 60,\n emitters: {\n direction: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.MoveDirection.top,\n life: {\n count: 0,\n duration: 0.1,\n delay: 0.1\n },\n rate: {\n delay: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNumber)(options.rate) ? identity / options.rate : {\n min: identity / (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMin)(options.rate),\n max: identity / (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(options.rate)\n },\n quantity: 1\n },\n size: {\n width: 100,\n height: 0\n },\n position: {\n y: 100,\n x: 50\n }\n },\n particles: {\n number: {\n value: 0\n },\n fill: {\n color: {\n value: \"#fff\"\n },\n enable: true\n },\n destroy: {\n mode: \"split\",\n bounds: {\n top: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.minHeight)\n },\n split: {\n sizeOffset: false,\n count: 1,\n factor: {\n value: 0.333333\n },\n rate: {\n value: options.splitCount\n },\n fillColorOffset: {\n s: options.saturation,\n l: options.brightness\n },\n particles: {\n fill: {\n color: {\n value: options.colors\n },\n enable: true\n },\n stroke: {\n width: 0\n },\n number: {\n value: 0\n },\n opacity: {\n value: {\n min: 0.1,\n max: 1\n },\n animation: {\n enable: true,\n speed: 1,\n sync: false,\n startValue: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.max,\n destroy: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.DestroyType.min\n }\n },\n effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 5,\n max: 10\n }\n }\n }\n },\n shape: {\n type: \"circle\"\n },\n size: {\n value: {\n min: 1,\n max: 2\n },\n animation: {\n enable: true,\n speed: 5,\n count: 1,\n sync: false,\n startValue: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.min,\n destroy: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.DestroyType.none\n }\n },\n life: {\n count: 1,\n duration: {\n value: {\n min: 0.25,\n max: 0.5\n }\n }\n },\n move: {\n decay: {\n min: 0.05,\n max: 0.1\n },\n enable: true,\n gravity: {\n enable: true,\n inverse: false,\n acceleration: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.gravity)\n },\n speed: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.speed),\n direction: \"none\",\n outModes: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy\n }\n }\n }\n },\n life: {\n count: 1\n },\n effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 10,\n max: 30\n },\n minWidth: 1,\n maxWidth: 1\n }\n }\n },\n shape: {\n type: \"circle\"\n },\n size: {\n value: 1\n },\n opacity: {\n value: 0.5\n },\n rotate: {\n path: true\n },\n move: {\n enable: true,\n gravity: {\n acceleration: 15,\n enable: true,\n inverse: true,\n maxSpeed: 100\n },\n speed: {\n min: 10,\n max: 20\n },\n outModes: {\n default: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy,\n top: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.none\n }\n }\n },\n sounds: {\n enable: options.sounds,\n events: [\n {\n event: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EventType.particleRemoved,\n filter: explodeSoundCheck,\n audio: [\n \"https://particles.js.org/audio/explosion0.mp3\",\n \"https://particles.js.org/audio/explosion1.mp3\",\n \"https://particles.js.org/audio/explosion2.mp3\"\n ]\n }\n ],\n volume: 50\n }\n };\n}\nasync function getFireworksInstance(id, sourceOptions, canvas) {\n await initPlugins(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles);\n const options = new _FireworkOptions_js__WEBPACK_IMPORTED_MODULE_1__.FireworkOptions();\n options.load(sourceOptions);\n const particlesOptions = getOptions(options, canvas), container = await _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles.load({\n id,\n element: canvas,\n options: particlesOptions\n });\n if (!container) {\n return;\n }\n const { FireworksInstance } = await __webpack_require__.e(/*! import() */ \"dist_browser_FireworksInstance_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./FireworksInstance.js */ \"./dist/browser/FireworksInstance.js\"));\n return new FireworksInstance(container);\n}\nasync function fireworks(idOrOptions, sourceOptions) {\n let id, options;\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isString)(idOrOptions)) {\n id = idOrOptions;\n options = sourceOptions ?? {};\n } else {\n id = \"fireworks\";\n options = idOrOptions ?? {};\n }\n return getFireworksInstance(id, options);\n}\nfireworks.create = async (canvas, options)=>{\n const id = canvas.id || \"fireworks\";\n return getFireworksInstance(id, options ?? {}, canvas);\n};\nfireworks.init = async ()=>{\n await initPlugins(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles);\n};\nfireworks.version = \"4.0.0-beta.0\";\nglobalThis.fireworks = fireworks;\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/./dist/browser/fireworks.js?\n}");
137
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ fireworks: () => (/* binding */ fireworks)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n/* harmony import */ var _FireworkOptions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FireworkOptions.js */ \"./dist/browser/FireworkOptions.js\");\n\n\nlet initialized = false, initializing = false;\nconst minSplitCount = 2;\nconst explodeSoundCheck = (args)=>{\n const data = args.data;\n return data.particle.shape === \"circle\" && !!data.particle.splitCount && data.particle.splitCount < minSplitCount;\n};\nasync function initPlugins(engine) {\n if (initialized) {\n return;\n }\n if (initializing) {\n return new Promise((resolve)=>{\n const timeout = 100, interval = setInterval(()=>{\n if (!initialized) {\n return;\n }\n clearInterval(interval);\n resolve();\n }, timeout);\n });\n }\n initializing = true;\n engine.checkVersion(\"4.0.0-beta.2\");\n await engine.pluginManager.register(async (e)=>{\n const [{ loadBasic }, { loadEmittersPluginSimple }, { loadEmittersShapeSquare }, { loadSoundsPlugin }, { loadRotateUpdater }, { loadDestroyUpdater }, { loadLifeUpdater }, { loadTrailEffect }] = await Promise.all([\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/basic */ \"@tsparticles/basic\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-emitters/plugin */ \"@tsparticles/plugin-emitters/plugin\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-emitters-shape-square */ \"@tsparticles/plugin-emitters-shape-square\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-sounds */ \"@tsparticles/plugin-sounds\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-rotate */ \"@tsparticles/updater-rotate\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-destroy */ \"@tsparticles/updater-destroy\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-life */ \"@tsparticles/updater-life\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/effect-trail */ \"@tsparticles/effect-trail\", 19))\n ]);\n await Promise.all([\n loadBasic(e),\n (async ()=>{\n await loadEmittersPluginSimple(e);\n await loadEmittersShapeSquare(e);\n })(),\n loadSoundsPlugin(e),\n loadRotateUpdater(e),\n loadDestroyUpdater(e),\n loadLifeUpdater(e),\n loadTrailEffect(e)\n ]);\n });\n initializing = false;\n initialized = true;\n}\nfunction getOptions(options, canvas) {\n const identity = 1;\n return {\n detectRetina: true,\n background: {\n color: options.background\n },\n fullScreen: {\n enable: !!canvas\n },\n fpsLimit: 60,\n emitters: {\n direction: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.MoveDirection.top,\n life: {\n count: 0,\n duration: 0.1,\n delay: 0.1\n },\n rate: {\n delay: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNumber)(options.rate) ? identity / options.rate : {\n min: identity / (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMin)(options.rate),\n max: identity / (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(options.rate)\n },\n quantity: 1\n },\n size: {\n width: 100,\n height: 0\n },\n position: {\n y: 100,\n x: 50\n }\n },\n particles: {\n number: {\n value: 0\n },\n fill: {\n color: {\n value: \"#fff\"\n },\n enable: true\n },\n destroy: {\n mode: \"split\",\n bounds: {\n top: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.minHeight)\n },\n split: {\n sizeOffset: false,\n count: 1,\n factor: {\n value: 0.333333\n },\n rate: {\n value: options.splitCount\n },\n fillColorOffset: {\n s: options.saturation,\n l: options.brightness\n },\n particles: {\n fill: {\n color: {\n value: options.colors\n },\n enable: true\n },\n stroke: {\n width: 0\n },\n number: {\n value: 0\n },\n opacity: {\n value: {\n min: 0.1,\n max: 1\n },\n animation: {\n enable: true,\n speed: 1,\n sync: false,\n startValue: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.max,\n destroy: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.DestroyType.min\n }\n },\n effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 5,\n max: 10\n }\n }\n }\n },\n shape: {\n type: \"circle\"\n },\n size: {\n value: {\n min: 1,\n max: 2\n },\n animation: {\n enable: true,\n speed: 5,\n count: 1,\n sync: false,\n startValue: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.min,\n destroy: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.DestroyType.none\n }\n },\n life: {\n count: 1,\n duration: {\n value: {\n min: 0.25,\n max: 0.5\n }\n }\n },\n move: {\n decay: {\n min: 0.05,\n max: 0.1\n },\n enable: true,\n gravity: {\n enable: true,\n inverse: false,\n acceleration: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.gravity)\n },\n speed: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.speed),\n direction: \"none\",\n outModes: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy\n }\n }\n }\n },\n life: {\n count: 1\n },\n effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 10,\n max: 30\n },\n minWidth: 1,\n maxWidth: 1\n }\n }\n },\n shape: {\n type: \"circle\"\n },\n size: {\n value: 1\n },\n opacity: {\n value: 0.5\n },\n rotate: {\n path: true\n },\n move: {\n enable: true,\n gravity: {\n acceleration: 15,\n enable: true,\n inverse: true,\n maxSpeed: 100\n },\n speed: {\n min: 10,\n max: 20\n },\n outModes: {\n default: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy,\n top: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.none\n }\n }\n },\n sounds: {\n enable: options.sounds,\n events: [\n {\n event: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EventType.particleRemoved,\n filter: explodeSoundCheck,\n audio: [\n \"https://particles.js.org/audio/explosion0.mp3\",\n \"https://particles.js.org/audio/explosion1.mp3\",\n \"https://particles.js.org/audio/explosion2.mp3\"\n ]\n }\n ],\n volume: 50\n }\n };\n}\nasync function getFireworksInstance(id, sourceOptions, canvas) {\n await initPlugins(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles);\n const options = new _FireworkOptions_js__WEBPACK_IMPORTED_MODULE_1__.FireworkOptions();\n options.load(sourceOptions);\n const particlesOptions = getOptions(options, canvas), container = await _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles.load({\n id,\n element: canvas,\n options: particlesOptions\n });\n if (!container) {\n return;\n }\n const { FireworksInstance } = await __webpack_require__.e(/*! import() */ \"dist_browser_FireworksInstance_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./FireworksInstance.js */ \"./dist/browser/FireworksInstance.js\"));\n return new FireworksInstance(container);\n}\nasync function fireworks(idOrOptions, sourceOptions) {\n let id, options;\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isString)(idOrOptions)) {\n id = idOrOptions;\n options = sourceOptions ?? {};\n } else {\n id = \"fireworks\";\n options = idOrOptions ?? {};\n }\n return getFireworksInstance(id, options);\n}\nfireworks.create = async (canvas, options)=>{\n const id = canvas.id || \"fireworks\";\n return getFireworksInstance(id, options ?? {}, canvas);\n};\nfireworks.init = async ()=>{\n await initPlugins(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles);\n};\nfireworks.version = \"4.0.0-beta.2\";\nglobalThis.fireworks = fireworks;\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/./dist/browser/fireworks.js?\n}");
138
138
 
139
139
  /***/ },
140
140
 
@@ -1,2 +1,2 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"),require("@tsparticles/effect-trail"),require("@tsparticles/updater-life"),require("@tsparticles/updater-destroy"),require("@tsparticles/updater-rotate"),require("@tsparticles/plugin-sounds"),require("@tsparticles/plugin-emitters-shape-square"),require("@tsparticles/plugin-emitters"),require("@tsparticles/basic"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine","@tsparticles/effect-trail","@tsparticles/updater-life","@tsparticles/updater-destroy","@tsparticles/updater-rotate","@tsparticles/plugin-sounds","@tsparticles/plugin-emitters-shape-square","@tsparticles/plugin-emitters","@tsparticles/basic"],t);else{var r="object"==typeof exports?t(require("@tsparticles/engine"),require("@tsparticles/effect-trail"),require("@tsparticles/updater-life"),require("@tsparticles/updater-destroy"),require("@tsparticles/updater-rotate"),require("@tsparticles/plugin-sounds"),require("@tsparticles/plugin-emitters-shape-square"),require("@tsparticles/plugin-emitters"),require("@tsparticles/basic")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,(e,t,r,i,s,a,o,n,l)=>(()=>{"use strict";var u,p,c,d={145(e){e.exports=l},637(e){e.exports=t},303(t){t.exports=e},526(e){e.exports=n},140(e){e.exports=o},933(e){e.exports=a},173(e){e.exports=i},75(e){e.exports=r},668(e){e.exports=s}},f={};function m(e){var t=f[e];if(void 0!==t)return t.exports;var r=f[e]={exports:{}};return d[e](r,r.exports,m),r.exports}m.m=d,g=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,m.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var r=Object.create(null);m.r(r);var i={};h=h||[null,g({}),g([]),g(g)];for(var s=2&t&&e;("object"==typeof s||"function"==typeof s)&&!~h.indexOf(s);s=g(s))Object.getOwnPropertyNames(s).forEach(t=>i[t]=()=>e[t]);return i.default=()=>e,m.d(r,i),r},m.d=(e,t)=>{for(var r in t)m.o(t,r)&&!m.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},m.f={},m.e=e=>Promise.all(Object.keys(m.f).reduce((t,r)=>(m.f[r](e,t),t),[])),m.u=e=>""+e+".min.js",m.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),m.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),b={},m.l=(e,t,r,i)=>{if(b[e])return void b[e].push(t);if(void 0!==r)for(var s,a,o=document.getElementsByTagName("script"),n=0;n<o.length;n++){var l=o[n];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")=="@tsparticles/fireworks:"+r){s=l;break}}s||(a=!0,(s=document.createElement("script")).charset="utf-8",m.nc&&s.setAttribute("nonce",m.nc),s.setAttribute("data-webpack","@tsparticles/fireworks:"+r),s.src=e),b[e]=[t];var u=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var i=b[e];if(delete b[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach(e=>e(r)),t)return t(r)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),a&&document.head.appendChild(s)},m.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},m.g.importScripts&&(v=m.g.location+"");var h,g,b,v,y=m.g.document;if(!v&&y&&(y.currentScript&&"SCRIPT"===y.currentScript.tagName.toUpperCase()&&(v=y.currentScript.src),!v)){var w=y.getElementsByTagName("script");if(w.length)for(var x=w.length-1;x>-1&&(!v||!/^http(s?):/.test(v));)v=w[x--].src}if(!v)throw Error("Automatic publicPath is not supported in this browser");m.p=v=v.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),u={359:0},m.f.j=(e,t)=>{var r=m.o(u,e)?u[e]:void 0;if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((t,i)=>r=u[e]=[t,i]);t.push(r[2]=i);var s=m.p+m.u(e),a=Error();m.l(s,t=>{if(m.o(u,e)&&(0!==(r=u[e])&&(u[e]=void 0),r)){var i=t&&("load"===t.type?"missing":t.type),s=t&&t.target&&t.target.src;a.message="Loading chunk "+e+` failed.
2
- (`+i+": "+s+")",a.name="ChunkLoadError",a.type=i,a.request=s,r[1](a)}},"chunk-"+e,e)}},p=(e,t)=>{var r,i,[s,a,o]=t,n=0;if(s.some(e=>0!==u[e])){for(r in a)m.o(a,r)&&(m.m[r]=a[r]);o&&o(m)}for(e&&e(t);n<s.length;n++)i=s[n],m.o(u,i)&&u[i]&&u[i][0](),u[i]=0},(c=this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).forEach(p.bind(null,0)),c.push=p.bind(null,c.push.bind(c));var k={};m.r(k),m.d(k,{fireworks:()=>T});var P=m(303);class q{background;brightness;colors;gravity;minHeight;rate;saturation;sounds;speed;splitCount;constructor(){this.background="none",this.brightness={min:-30,max:30},this.colors=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93"],this.gravity=5,this.minHeight={min:10,max:30},this.rate=10,this.saturation={min:-30,max:30},this.sounds=!0,this.speed={min:5,max:15},this.splitCount={min:75,max:150}}load(e){(0,P.isNull)(e)||(void 0!==e.background&&(this.background=e.background),void 0!==e.colors&&((0,P.isArray)(e.colors)?this.colors=[...e.colors]:this.colors=e.colors),void 0!==e.brightness&&(this.brightness=(0,P.setRangeValue)(e.brightness)),void 0!==e.gravity&&(this.gravity=(0,P.setRangeValue)(e.gravity)),void 0!==e.minHeight&&(this.minHeight=(0,P.setRangeValue)(e.minHeight)),void 0!==e.rate&&(this.rate=(0,P.setRangeValue)(e.rate)),void 0!==e.saturation&&(this.saturation=(0,P.setRangeValue)(e.saturation)),void 0!==e.sounds&&(this.sounds=e.sounds),void 0!==e.speed&&(this.speed=(0,P.setRangeValue)(e.speed)),void 0!==e.splitCount&&(this.splitCount=(0,P.setRangeValue)(e.splitCount)))}}let j=!1,O=!1,C=e=>{let t=e.data;return"circle"===t.particle.shape&&!!t.particle.splitCount&&t.particle.splitCount<2};async function R(e){if(!j){if(O)return new Promise(e=>{let t=setInterval(()=>{j&&(clearInterval(t),e())},100)});O=!0,e.checkVersion("4.0.0-beta.0"),await e.register(async e=>{let[{loadBasic:t},{loadEmittersPlugin:r},{loadEmittersShapeSquare:i},{loadSoundsPlugin:s},{loadRotateUpdater:a},{loadDestroyUpdater:o},{loadLifeUpdater:n},{loadTrailEffect:l}]=await Promise.all([Promise.resolve().then(m.t.bind(m,145,19)),Promise.resolve().then(m.t.bind(m,526,19)),Promise.resolve().then(m.t.bind(m,140,19)),Promise.resolve().then(m.t.bind(m,933,19)),Promise.resolve().then(m.t.bind(m,668,19)),Promise.resolve().then(m.t.bind(m,173,19)),Promise.resolve().then(m.t.bind(m,75,19)),Promise.resolve().then(m.t.bind(m,637,19))]);await Promise.all([t(e),r(e),s(e),a(e),o(e),n(e),l(e)]),await i(e)}),O=!1,j=!0}}async function S(e,t,r){await R(P.tsParticles);let i=new q;i.load(t);let s={detectRetina:!0,background:{color:i.background},fullScreen:{enable:!!r},fpsLimit:60,emitters:{direction:P.MoveDirection.top,life:{count:0,duration:.1,delay:.1},rate:{delay:(0,P.isNumber)(i.rate)?1/i.rate:{min:1/(0,P.getRangeMin)(i.rate),max:1/(0,P.getRangeMax)(i.rate)},quantity:1},size:{width:100,height:0},position:{y:100,x:50}},particles:{number:{value:0},fill:{color:{value:"#fff"},enable:!0},destroy:{mode:"split",bounds:{top:(0,P.setRangeValue)(i.minHeight)},split:{sizeOffset:!1,count:1,factor:{value:.333333},rate:{value:i.splitCount},fillColorOffset:{s:i.saturation,l:i.brightness},particles:{fill:{color:{value:i.colors},enable:!0},stroke:{width:0},number:{value:0},opacity:{value:{min:.1,max:1},animation:{enable:!0,speed:1,sync:!1,startValue:P.StartValueType.max,destroy:P.DestroyType.min}},effect:{type:"trail",options:{trail:{length:{min:5,max:10}}}},shape:{type:"circle"},size:{value:{min:1,max:2},animation:{enable:!0,speed:5,count:1,sync:!1,startValue:P.StartValueType.min,destroy:P.DestroyType.none}},life:{count:1,duration:{value:{min:.25,max:.5}}},move:{decay:{min:.05,max:.1},enable:!0,gravity:{enable:!0,inverse:!1,acceleration:(0,P.setRangeValue)(i.gravity)},speed:(0,P.setRangeValue)(i.speed),direction:"none",outModes:P.OutMode.destroy}}}},life:{count:1},effect:{type:"trail",options:{trail:{length:{min:10,max:30},minWidth:1,maxWidth:1}}},shape:{type:"circle"},size:{value:1},opacity:{value:.5},rotate:{path:!0},move:{enable:!0,gravity:{acceleration:15,enable:!0,inverse:!0,maxSpeed:100},speed:{min:10,max:20},outModes:{default:P.OutMode.destroy,top:P.OutMode.none}}},sounds:{enable:i.sounds,events:[{event:P.EventType.particleRemoved,filter:C,audio:["https://particles.js.org/audio/explosion0.mp3","https://particles.js.org/audio/explosion1.mp3","https://particles.js.org/audio/explosion2.mp3"]}],volume:50}},a=await P.tsParticles.load({id:e,element:r,options:s});if(!a)return;let{FireworksInstance:o}=await m.e(947).then(m.bind(m,947));return new o(a)}async function T(e,t){let r,i;return(0,P.isString)(e)?(r=e,i=t??{}):(r="fireworks",i=e??{}),S(r,i)}return T.create=async(e,t)=>S(e.id||"fireworks",t??{},e),T.init=async()=>{await R(P.tsParticles)},T.version="4.0.0-beta.0",globalThis.fireworks=T,k})());
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"),require("@tsparticles/effect-trail"),require("@tsparticles/updater-life"),require("@tsparticles/updater-destroy"),require("@tsparticles/updater-rotate"),require("@tsparticles/plugin-sounds"),require("@tsparticles/plugin-emitters-shape-square"),require("@tsparticles/plugin-emitters/plugin"),require("@tsparticles/basic"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine","@tsparticles/effect-trail","@tsparticles/updater-life","@tsparticles/updater-destroy","@tsparticles/updater-rotate","@tsparticles/plugin-sounds","@tsparticles/plugin-emitters-shape-square","@tsparticles/plugin-emitters/plugin","@tsparticles/basic"],t);else{var r="object"==typeof exports?t(require("@tsparticles/engine"),require("@tsparticles/effect-trail"),require("@tsparticles/updater-life"),require("@tsparticles/updater-destroy"),require("@tsparticles/updater-rotate"),require("@tsparticles/plugin-sounds"),require("@tsparticles/plugin-emitters-shape-square"),require("@tsparticles/plugin-emitters/plugin"),require("@tsparticles/basic")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,(e,t,r,i,s,a,o,n,l)=>(()=>{"use strict";var u,p,c,d={145(e){e.exports=l},637(e){e.exports=t},303(t){t.exports=e},140(e){e.exports=o},90(e){e.exports=n},933(e){e.exports=a},173(e){e.exports=i},75(e){e.exports=r},668(e){e.exports=s}},f={};function m(e){var t=f[e];if(void 0!==t)return t.exports;var r=f[e]={exports:{}};return d[e](r,r.exports,m),r.exports}m.m=d,h=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,m.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var r=Object.create(null);m.r(r);var i={};g=g||[null,h({}),h([]),h(h)];for(var s=2&t&&e;("object"==typeof s||"function"==typeof s)&&!~g.indexOf(s);s=h(s))Object.getOwnPropertyNames(s).forEach(t=>i[t]=()=>e[t]);return i.default=()=>e,m.d(r,i),r},m.d=(e,t)=>{for(var r in t)m.o(t,r)&&!m.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},m.f={},m.e=e=>Promise.all(Object.keys(m.f).reduce((t,r)=>(m.f[r](e,t),t),[])),m.u=e=>""+e+".min.js",m.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),m.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),b={},m.l=(e,t,r,i)=>{if(b[e])return void b[e].push(t);if(void 0!==r)for(var s,a,o=document.getElementsByTagName("script"),n=0;n<o.length;n++){var l=o[n];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")=="@tsparticles/fireworks:"+r){s=l;break}}s||(a=!0,(s=document.createElement("script")).charset="utf-8",m.nc&&s.setAttribute("nonce",m.nc),s.setAttribute("data-webpack","@tsparticles/fireworks:"+r),s.src=e),b[e]=[t];var u=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var i=b[e];if(delete b[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach(e=>e(r)),t)return t(r)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),a&&document.head.appendChild(s)},m.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},m.g.importScripts&&(v=m.g.location+"");var g,h,b,v,y=m.g.document;if(!v&&y&&(y.currentScript&&"SCRIPT"===y.currentScript.tagName.toUpperCase()&&(v=y.currentScript.src),!v)){var w=y.getElementsByTagName("script");if(w.length)for(var x=w.length-1;x>-1&&(!v||!/^http(s?):/.test(v));)v=w[x--].src}if(!v)throw Error("Automatic publicPath is not supported in this browser");m.p=v=v.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),u={359:0},m.f.j=(e,t)=>{var r=m.o(u,e)?u[e]:void 0;if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((t,i)=>r=u[e]=[t,i]);t.push(r[2]=i);var s=m.p+m.u(e),a=Error();m.l(s,t=>{if(m.o(u,e)&&(0!==(r=u[e])&&(u[e]=void 0),r)){var i=t&&("load"===t.type?"missing":t.type),s=t&&t.target&&t.target.src;a.message="Loading chunk "+e+` failed.
2
+ (`+i+": "+s+")",a.name="ChunkLoadError",a.type=i,a.request=s,r[1](a)}},"chunk-"+e,e)}},p=(e,t)=>{var r,i,[s,a,o]=t,n=0;if(s.some(e=>0!==u[e])){for(r in a)m.o(a,r)&&(m.m[r]=a[r]);o&&o(m)}for(e&&e(t);n<s.length;n++)i=s[n],m.o(u,i)&&u[i]&&u[i][0](),u[i]=0},(c=this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).forEach(p.bind(null,0)),c.push=p.bind(null,c.push.bind(c));var k={};m.r(k),m.d(k,{fireworks:()=>T});var P=m(303);class q{background;brightness;colors;gravity;minHeight;rate;saturation;sounds;speed;splitCount;constructor(){this.background="none",this.brightness={min:-30,max:30},this.colors=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93"],this.gravity=5,this.minHeight={min:10,max:30},this.rate=10,this.saturation={min:-30,max:30},this.sounds=!0,this.speed={min:5,max:15},this.splitCount={min:75,max:150}}load(e){(0,P.isNull)(e)||(void 0!==e.background&&(this.background=e.background),void 0!==e.colors&&((0,P.isArray)(e.colors)?this.colors=[...e.colors]:this.colors=e.colors),void 0!==e.brightness&&(this.brightness=(0,P.setRangeValue)(e.brightness)),void 0!==e.gravity&&(this.gravity=(0,P.setRangeValue)(e.gravity)),void 0!==e.minHeight&&(this.minHeight=(0,P.setRangeValue)(e.minHeight)),void 0!==e.rate&&(this.rate=(0,P.setRangeValue)(e.rate)),void 0!==e.saturation&&(this.saturation=(0,P.setRangeValue)(e.saturation)),void 0!==e.sounds&&(this.sounds=e.sounds),void 0!==e.speed&&(this.speed=(0,P.setRangeValue)(e.speed)),void 0!==e.splitCount&&(this.splitCount=(0,P.setRangeValue)(e.splitCount)))}}let j=!1,O=!1,C=e=>{let t=e.data;return"circle"===t.particle.shape&&!!t.particle.splitCount&&t.particle.splitCount<2};async function R(e){if(!j){if(O)return new Promise(e=>{let t=setInterval(()=>{j&&(clearInterval(t),e())},100)});O=!0,e.checkVersion("4.0.0-beta.2"),await e.pluginManager.register(async e=>{let[{loadBasic:t},{loadEmittersPluginSimple:r},{loadEmittersShapeSquare:i},{loadSoundsPlugin:s},{loadRotateUpdater:a},{loadDestroyUpdater:o},{loadLifeUpdater:n},{loadTrailEffect:l}]=await Promise.all([Promise.resolve().then(m.t.bind(m,145,19)),Promise.resolve().then(m.t.bind(m,90,19)),Promise.resolve().then(m.t.bind(m,140,19)),Promise.resolve().then(m.t.bind(m,933,19)),Promise.resolve().then(m.t.bind(m,668,19)),Promise.resolve().then(m.t.bind(m,173,19)),Promise.resolve().then(m.t.bind(m,75,19)),Promise.resolve().then(m.t.bind(m,637,19))]);await Promise.all([t(e),(async()=>{await r(e),await i(e)})(),s(e),a(e),o(e),n(e),l(e)])}),O=!1,j=!0}}async function S(e,t,r){await R(P.tsParticles);let i=new q;i.load(t);let s={detectRetina:!0,background:{color:i.background},fullScreen:{enable:!!r},fpsLimit:60,emitters:{direction:P.MoveDirection.top,life:{count:0,duration:.1,delay:.1},rate:{delay:(0,P.isNumber)(i.rate)?1/i.rate:{min:1/(0,P.getRangeMin)(i.rate),max:1/(0,P.getRangeMax)(i.rate)},quantity:1},size:{width:100,height:0},position:{y:100,x:50}},particles:{number:{value:0},fill:{color:{value:"#fff"},enable:!0},destroy:{mode:"split",bounds:{top:(0,P.setRangeValue)(i.minHeight)},split:{sizeOffset:!1,count:1,factor:{value:.333333},rate:{value:i.splitCount},fillColorOffset:{s:i.saturation,l:i.brightness},particles:{fill:{color:{value:i.colors},enable:!0},stroke:{width:0},number:{value:0},opacity:{value:{min:.1,max:1},animation:{enable:!0,speed:1,sync:!1,startValue:P.StartValueType.max,destroy:P.DestroyType.min}},effect:{type:"trail",options:{trail:{length:{min:5,max:10}}}},shape:{type:"circle"},size:{value:{min:1,max:2},animation:{enable:!0,speed:5,count:1,sync:!1,startValue:P.StartValueType.min,destroy:P.DestroyType.none}},life:{count:1,duration:{value:{min:.25,max:.5}}},move:{decay:{min:.05,max:.1},enable:!0,gravity:{enable:!0,inverse:!1,acceleration:(0,P.setRangeValue)(i.gravity)},speed:(0,P.setRangeValue)(i.speed),direction:"none",outModes:P.OutMode.destroy}}}},life:{count:1},effect:{type:"trail",options:{trail:{length:{min:10,max:30},minWidth:1,maxWidth:1}}},shape:{type:"circle"},size:{value:1},opacity:{value:.5},rotate:{path:!0},move:{enable:!0,gravity:{acceleration:15,enable:!0,inverse:!0,maxSpeed:100},speed:{min:10,max:20},outModes:{default:P.OutMode.destroy,top:P.OutMode.none}}},sounds:{enable:i.sounds,events:[{event:P.EventType.particleRemoved,filter:C,audio:["https://particles.js.org/audio/explosion0.mp3","https://particles.js.org/audio/explosion1.mp3","https://particles.js.org/audio/explosion2.mp3"]}],volume:50}},a=await P.tsParticles.load({id:e,element:r,options:s});if(!a)return;let{FireworksInstance:o}=await m.e(663).then(m.bind(m,663));return new o(a)}async function T(e,t){let r,i;return(0,P.isString)(e)?(r=e,i=t??{}):(r="fireworks",i=e??{}),S(r,i)}return T.create=async(e,t)=>S(e.id||"fireworks",t??{},e),T.init=async()=>{await R(P.tsParticles)},T.version="4.0.0-beta.2",globalThis.fireworks=T,k})());
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-beta.0
7
+ * v4.0.0-beta.2
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -23,7 +23,7 @@
23
23
  \*************************************************************/
24
24
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
25
 
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DestroyUpdater: () => (/* binding */ DestroyUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Destroy_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Destroy.js */ \"../../updaters/destroy/dist/browser/Options/Classes/Destroy.js\");\n/* harmony import */ var _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Enums/DestroyMode.js */ \"../../updaters/destroy/dist/browser/Enums/DestroyMode.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Utils.js */ \"../../updaters/destroy/dist/browser/Utils.js\");\n\n\n\n\nclass DestroyUpdater {\n container;\n engine;\n constructor(engine, container){\n this.container = container;\n this.engine = engine;\n }\n init(particle) {\n const container = this.container, particlesOptions = particle.options, destroyOptions = particlesOptions.destroy;\n if (!destroyOptions) {\n return;\n }\n particle.splitCount = 0;\n const destroyBoundsOptions = destroyOptions.bounds;\n particle.destroyBounds ??= {};\n const { bottom, left, right, top } = destroyBoundsOptions, { destroyBounds } = particle, canvasSize = container.canvas.size;\n if (bottom) {\n destroyBounds.bottom = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(bottom) * canvasSize.height / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n if (left) {\n destroyBounds.left = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(left) * canvasSize.width / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n if (right) {\n destroyBounds.right = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(right) * canvasSize.width / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n if (top) {\n destroyBounds.top = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(top) * canvasSize.height / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n }\n isEnabled(particle) {\n return !particle.destroyed;\n }\n loadOptions(options, ...sources) {\n options.destroy ??= new _Options_Classes_Destroy_js__WEBPACK_IMPORTED_MODULE_1__.Destroy();\n for (const source of sources){\n options.destroy.load(source?.destroy);\n }\n }\n particleDestroyed(particle, override) {\n if (override) {\n return;\n }\n const destroyOptions = particle.options.destroy;\n if (destroyOptions?.mode === _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__.DestroyMode.split) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_3__.split)(this.engine, this.container, particle);\n }\n }\n update(particle) {\n if (particle.unbreakableUntil !== undefined && performance.now() >= particle.unbreakableUntil) {\n particle.unbreakable = false;\n particle.unbreakableUntil = undefined;\n }\n const position = particle.getPosition(), bounds = particle.destroyBounds;\n if (!bounds) {\n return;\n }\n if (bounds.bottom !== undefined && position.y >= bounds.bottom || bounds.left !== undefined && position.x <= bounds.left || bounds.right !== undefined && position.x >= bounds.right || bounds.top !== undefined && position.y <= bounds.top) {\n particle.destroy();\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/destroy/dist/browser/DestroyUpdater.js?\n}");
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DestroyUpdater: () => (/* binding */ DestroyUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Destroy_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Destroy.js */ \"../../updaters/destroy/dist/browser/Options/Classes/Destroy.js\");\n/* harmony import */ var _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Enums/DestroyMode.js */ \"../../updaters/destroy/dist/browser/Enums/DestroyMode.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Utils.js */ \"../../updaters/destroy/dist/browser/Utils.js\");\n\n\n\n\nclass DestroyUpdater {\n _container;\n _pluginManager;\n constructor(pluginManager, container){\n this._container = container;\n this._pluginManager = pluginManager;\n }\n init(particle) {\n const container = this._container, particlesOptions = particle.options, destroyOptions = particlesOptions.destroy;\n if (!destroyOptions) {\n return;\n }\n particle.splitCount = 0;\n const destroyBoundsOptions = destroyOptions.bounds;\n particle.destroyBounds ??= {};\n const { bottom, left, right, top } = destroyBoundsOptions, { destroyBounds } = particle, canvasSize = container.canvas.size;\n if (bottom) {\n destroyBounds.bottom = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(bottom) * canvasSize.height / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n if (left) {\n destroyBounds.left = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(left) * canvasSize.width / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n if (right) {\n destroyBounds.right = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(right) * canvasSize.width / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n if (top) {\n destroyBounds.top = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(top) * canvasSize.height / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n }\n isEnabled(particle) {\n return !particle.destroyed;\n }\n loadOptions(options, ...sources) {\n options.destroy ??= new _Options_Classes_Destroy_js__WEBPACK_IMPORTED_MODULE_1__.Destroy();\n for (const source of sources){\n options.destroy.load(source?.destroy);\n }\n }\n particleDestroyed(particle, override) {\n if (override) {\n return;\n }\n const destroyOptions = particle.options.destroy;\n if (destroyOptions?.mode === _Enums_DestroyMode_js__WEBPACK_IMPORTED_MODULE_2__.DestroyMode.split) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_3__.split)(this._pluginManager, this._container, particle);\n }\n }\n update(particle) {\n if (particle.unbreakableUntil !== undefined && performance.now() >= particle.unbreakableUntil) {\n particle.unbreakable = false;\n particle.unbreakableUntil = undefined;\n }\n const position = particle.getPosition(), bounds = particle.destroyBounds;\n if (!bounds) {\n return;\n }\n if (bounds.bottom !== undefined && position.y >= bounds.bottom || bounds.left !== undefined && position.x <= bounds.left || bounds.right !== undefined && position.x >= bounds.right || bounds.top !== undefined && position.y <= bounds.top) {\n particle.destroy();\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/destroy/dist/browser/DestroyUpdater.js?\n}");
27
27
 
28
28
  /***/ },
29
29
 
@@ -93,7 +93,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
93
93
  \****************************************************/
94
94
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
95
95
 
96
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ split: () => (/* binding */ split)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst defaultOffset = 0, minDestroySize = 0.5, defaultSplitCount = 0, increment = 1, unbreakableTime = 500, minSplitCount = 0;\nfunction addSplitParticle(engine, container, parent, splitParticlesOptions) {\n const destroyOptions = parent.options.destroy;\n if (!destroyOptions) {\n return;\n }\n const splitOptions = destroyOptions.split, options = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.loadParticlesOptions)(engine, container, parent.options), fillOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(options.fill), strokeOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(options.stroke);\n if (fillOptions?.enable) {\n const fillColor = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimatableColor.create(undefined, fillOptions.color), parentFillColor = parent.getFillColor();\n if (fillColor.value) {\n fillColor.load(splitOptions.fillColor);\n } else if (splitOptions.fillColorOffset && parentFillColor) {\n fillColor.load({\n value: {\n hsl: {\n h: parentFillColor.h + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.fillColorOffset.h ?? defaultOffset),\n s: parentFillColor.s + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.fillColorOffset.s ?? defaultOffset),\n l: parentFillColor.l + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.fillColorOffset.l ?? defaultOffset)\n }\n }\n });\n } else {\n fillColor.load({\n value: {\n hsl: parent.getFillColor()\n }\n });\n }\n }\n if (strokeOptions?.width) {\n const strokeColor = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimatableColor.create(undefined, strokeOptions.color), parentStrokeColor = parent.getStrokeColor();\n if (strokeColor.value) {\n strokeColor.load(splitOptions.strokeColor);\n } else if (splitOptions.strokeColorOffset && parentStrokeColor) {\n strokeColor.load({\n value: {\n hsl: {\n h: parentStrokeColor.h + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.strokeColorOffset.h ?? defaultOffset),\n s: parentStrokeColor.s + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.strokeColorOffset.s ?? defaultOffset),\n l: parentStrokeColor.l + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.strokeColorOffset.l ?? defaultOffset)\n }\n }\n });\n } else {\n strokeColor.load({\n value: {\n hsl: parent.getStrokeColor()\n }\n });\n }\n }\n options.move.load({\n center: {\n x: parent.position.x,\n y: parent.position.y,\n mode: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.PixelMode.precise\n }\n });\n const factor = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.identity / (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.factor.value);\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNumber)(options.size.value)) {\n options.size.value *= factor;\n } else {\n options.size.value.min *= factor;\n options.size.value.max *= factor;\n }\n options.load(splitParticlesOptions);\n const offset = splitOptions.sizeOffset ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(-parent.size.value, parent.size.value) : defaultOffset, position = {\n x: parent.position.x + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(offset),\n y: parent.position.y + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(offset)\n };\n return container.particles.addParticle(position, options, parent.group, (particle)=>{\n if (particle.size.value < minDestroySize) {\n return false;\n }\n particle.velocity.length = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(parent.velocity.length, particle.velocity.length));\n particle.splitCount = (parent.splitCount ?? defaultSplitCount) + increment;\n particle.unbreakable = true;\n particle.unbreakableUntil = performance.now() + unbreakableTime;\n return true;\n });\n}\nfunction split(engine, container, particle) {\n const destroyOptions = particle.options.destroy;\n if (!destroyOptions) {\n return;\n }\n const splitOptions = destroyOptions.split;\n if (splitOptions.count >= minSplitCount) {\n if (particle.splitCount === undefined || particle.splitCount > splitOptions.count) {\n return;\n }\n particle.splitCount++;\n }\n const rate = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.rate.value), particlesSplitOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(splitOptions.particles);\n for(let i = 0; i < rate; i++){\n addSplitParticle(engine, container, particle, particlesSplitOptions);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/destroy/dist/browser/Utils.js?\n}");
96
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ split: () => (/* binding */ split)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst defaultOffset = 0, minDestroySize = 0.5, defaultSplitCount = 0, increment = 1, unbreakableTime = 500, minSplitCount = 0;\nfunction addSplitParticle(pluginManager, container, parent, splitParticlesOptions) {\n const destroyOptions = parent.options.destroy;\n if (!destroyOptions) {\n return;\n }\n const splitOptions = destroyOptions.split, options = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.loadParticlesOptions)(pluginManager, container, parent.options), fillOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(options.fill), strokeOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(options.stroke);\n if (fillOptions?.enable) {\n const fillColor = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimatableColor.create(undefined, fillOptions.color), parentFillColor = parent.getFillColor();\n if (fillColor.value) {\n fillColor.load(splitOptions.fillColor);\n } else if (splitOptions.fillColorOffset && parentFillColor) {\n fillColor.load({\n value: {\n hsl: {\n h: parentFillColor.h + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.fillColorOffset.h ?? defaultOffset),\n s: parentFillColor.s + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.fillColorOffset.s ?? defaultOffset),\n l: parentFillColor.l + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.fillColorOffset.l ?? defaultOffset)\n }\n }\n });\n } else {\n fillColor.load({\n value: {\n hsl: parent.getFillColor()\n }\n });\n }\n }\n if (strokeOptions?.width) {\n const strokeColor = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimatableColor.create(undefined, strokeOptions.color), parentStrokeColor = parent.getStrokeColor();\n if (strokeColor.value) {\n strokeColor.load(splitOptions.strokeColor);\n } else if (splitOptions.strokeColorOffset && parentStrokeColor) {\n strokeColor.load({\n value: {\n hsl: {\n h: parentStrokeColor.h + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.strokeColorOffset.h ?? defaultOffset),\n s: parentStrokeColor.s + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.strokeColorOffset.s ?? defaultOffset),\n l: parentStrokeColor.l + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.strokeColorOffset.l ?? defaultOffset)\n }\n }\n });\n } else {\n strokeColor.load({\n value: {\n hsl: parent.getStrokeColor()\n }\n });\n }\n }\n options.move.load({\n center: {\n x: parent.position.x,\n y: parent.position.y,\n mode: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.PixelMode.precise\n }\n });\n const factor = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.identity / (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.factor.value);\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNumber)(options.size.value)) {\n options.size.value *= factor;\n } else {\n options.size.value.min *= factor;\n options.size.value.max *= factor;\n }\n options.load(splitParticlesOptions);\n const offset = splitOptions.sizeOffset ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(-parent.size.value, parent.size.value) : defaultOffset, position = {\n x: parent.position.x + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(offset),\n y: parent.position.y + (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(offset)\n };\n return container.particles.addParticle(position, options, parent.group, (particle)=>{\n if (particle.size.value < minDestroySize) {\n return false;\n }\n particle.velocity.length = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(parent.velocity.length, particle.velocity.length));\n particle.splitCount = (parent.splitCount ?? defaultSplitCount) + increment;\n particle.unbreakable = true;\n particle.unbreakableUntil = performance.now() + unbreakableTime;\n return true;\n });\n}\nfunction split(pluginManager, container, particle) {\n const destroyOptions = particle.options.destroy;\n if (!destroyOptions) {\n return;\n }\n const splitOptions = destroyOptions.split;\n if (splitOptions.count >= minSplitCount) {\n if (particle.splitCount === undefined || particle.splitCount > splitOptions.count) {\n return;\n }\n particle.splitCount++;\n }\n const rate = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(splitOptions.rate.value), particlesSplitOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(splitOptions.particles);\n for(let i = 0; i < rate; i++){\n addSplitParticle(pluginManager, container, particle, particlesSplitOptions);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/destroy/dist/browser/Utils.js?\n}");
97
97
 
98
98
  /***/ }
99
99
 
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-beta.0
7
+ * v4.0.0-beta.2
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -23,7 +23,7 @@
23
23
  \****************************************************/
24
24
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
25
 
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadDestroyUpdater: () => (/* binding */ loadDestroyUpdater)\n/* harmony export */ });\nasync function loadDestroyUpdater(engine) {\n engine.checkVersion(\"4.0.0-beta.0\");\n await engine.register((e)=>{\n e.addParticleUpdater(\"destroy\", async (container)=>{\n const { DestroyUpdater } = await __webpack_require__.e(/*! import() */ \"updaters_destroy_dist_browser_DestroyUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./DestroyUpdater.js */ \"../../updaters/destroy/dist/browser/DestroyUpdater.js\"));\n return new DestroyUpdater(e, container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/destroy/dist/browser/index.js?\n}");
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadDestroyUpdater: () => (/* binding */ loadDestroyUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nasync function loadDestroyUpdater(engine) {\n engine.checkVersion(\"4.0.0-beta.2\");\n await engine.pluginManager.register((e)=>{\n e.pluginManager.addParticleUpdater(\"destroy\", async (container)=>{\n const { DestroyUpdater } = await __webpack_require__.e(/*! import() */ \"updaters_destroy_dist_browser_DestroyUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./DestroyUpdater.js */ \"../../updaters/destroy/dist/browser/DestroyUpdater.js\"));\n return new DestroyUpdater(e.pluginManager, container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/destroy/dist/browser/index.js?\n}");
27
27
 
28
28
  /***/ }
29
29