@tsparticles/preset-confetti 4.0.0-alpha.0 → 4.0.0-alpha.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 (228) hide show
  1. package/112.min.js +2 -0
  2. package/112.min.js.LICENSE.txt +1 -0
  3. package/120.min.js +2 -0
  4. package/120.min.js.LICENSE.txt +1 -0
  5. package/121.min.js +2 -0
  6. package/121.min.js.LICENSE.txt +1 -0
  7. package/142.min.js +2 -0
  8. package/142.min.js.LICENSE.txt +1 -0
  9. package/171.min.js +1 -1
  10. package/171.min.js.LICENSE.txt +1 -1
  11. package/196.min.js +2 -0
  12. package/196.min.js.LICENSE.txt +1 -0
  13. package/2.min.js +2 -0
  14. package/2.min.js.LICENSE.txt +1 -0
  15. package/{213.min.js → 202.min.js} +2 -2
  16. package/202.min.js.LICENSE.txt +1 -0
  17. package/294.min.js +2 -0
  18. package/294.min.js.LICENSE.txt +1 -0
  19. package/326.min.js +2 -0
  20. package/326.min.js.LICENSE.txt +1 -0
  21. package/352.min.js +2 -0
  22. package/352.min.js.LICENSE.txt +1 -0
  23. package/413.min.js +2 -0
  24. package/413.min.js.LICENSE.txt +1 -0
  25. package/414.min.js +2 -0
  26. package/414.min.js.LICENSE.txt +1 -0
  27. package/420.min.js +2 -0
  28. package/420.min.js.LICENSE.txt +1 -0
  29. package/426.min.js +2 -0
  30. package/426.min.js.LICENSE.txt +1 -0
  31. package/429.min.js +2 -0
  32. package/429.min.js.LICENSE.txt +1 -0
  33. package/438.min.js +2 -0
  34. package/438.min.js.LICENSE.txt +1 -0
  35. package/440.min.js +2 -0
  36. package/440.min.js.LICENSE.txt +1 -0
  37. package/464.min.js +2 -0
  38. package/464.min.js.LICENSE.txt +1 -0
  39. package/{22.min.js → 47.min.js} +2 -2
  40. package/47.min.js.LICENSE.txt +1 -0
  41. package/505.min.js +2 -0
  42. package/505.min.js.LICENSE.txt +1 -0
  43. package/544.min.js +2 -0
  44. package/544.min.js.LICENSE.txt +1 -0
  45. package/56.min.js +2 -0
  46. package/56.min.js.LICENSE.txt +1 -0
  47. package/60.min.js +2 -0
  48. package/60.min.js.LICENSE.txt +1 -0
  49. package/636.min.js +2 -0
  50. package/636.min.js.LICENSE.txt +1 -0
  51. package/64.min.js +2 -0
  52. package/64.min.js.LICENSE.txt +1 -0
  53. package/668.min.js +2 -0
  54. package/668.min.js.LICENSE.txt +1 -0
  55. package/684.min.js +2 -0
  56. package/684.min.js.LICENSE.txt +1 -0
  57. package/685.min.js +2 -0
  58. package/685.min.js.LICENSE.txt +1 -0
  59. package/688.min.js +2 -0
  60. package/688.min.js.LICENSE.txt +1 -0
  61. package/{481.min.js → 726.min.js} +2 -2
  62. package/726.min.js.LICENSE.txt +1 -0
  63. package/736.min.js +2 -0
  64. package/736.min.js.LICENSE.txt +1 -0
  65. package/778.min.js +2 -0
  66. package/778.min.js.LICENSE.txt +1 -0
  67. package/{751.min.js → 792.min.js} +2 -2
  68. package/792.min.js.LICENSE.txt +1 -0
  69. package/814.min.js +2 -0
  70. package/814.min.js.LICENSE.txt +1 -0
  71. package/844.min.js +2 -0
  72. package/844.min.js.LICENSE.txt +1 -0
  73. package/{264.min.js → 847.min.js} +2 -2
  74. package/847.min.js.LICENSE.txt +1 -0
  75. package/864.min.js +2 -0
  76. package/864.min.js.LICENSE.txt +1 -0
  77. package/872.min.js +2 -0
  78. package/872.min.js.LICENSE.txt +1 -0
  79. package/888.min.js +2 -0
  80. package/888.min.js.LICENSE.txt +1 -0
  81. package/909.min.js +2 -0
  82. package/909.min.js.LICENSE.txt +1 -0
  83. package/926.min.js +1 -1
  84. package/926.min.js.LICENSE.txt +1 -1
  85. package/933.min.js +2 -0
  86. package/933.min.js.LICENSE.txt +1 -0
  87. package/949.min.js +2 -0
  88. package/949.min.js.LICENSE.txt +1 -0
  89. package/984.min.js +2 -0
  90. package/984.min.js.LICENSE.txt +1 -0
  91. package/990.min.js +2 -0
  92. package/990.min.js.LICENSE.txt +1 -0
  93. package/browser/index.js +13 -12
  94. package/browser/options.js +0 -1
  95. package/cjs/index.js +13 -12
  96. package/cjs/options.js +0 -1
  97. package/dist_browser_options_js.js +2 -2
  98. package/esm/index.js +13 -12
  99. package/esm/options.js +0 -1
  100. package/node_modules_pnpm_tsparticles_basic_4_0_0-alpha_5_node_modules_tsparticles_basic_browser_index_js.js +30 -0
  101. package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-26eaee.js +40 -0
  102. package/{node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-fb148a.js → node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-29272f.js} +5 -5
  103. package/{node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_plugin-e-6bd6f8.js → node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-051d5b.js} +11 -11
  104. package/{node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_plugin-e-122a51.js → node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-50442a.js} +5 -5
  105. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-9414b7.js +90 -0
  106. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-b376d4.js +90 -0
  107. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-db7965.js +30 -0
  108. package/{node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--d06b2a.js → node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--082572.js} +5 -5
  109. package/{node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--91288b.js → node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--7ee633.js} +5 -5
  110. package/{node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--e141e9.js → node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--175cc6.js} +5 -5
  111. package/{node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--70976c.js → node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--d17710.js} +5 -5
  112. package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_5_node_modules_tsparticles_plu-4ef54e.js +120 -0
  113. package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_5_node_modules_tsparticles_plu-c0445f.js +70 -0
  114. package/node_modules_pnpm_tsparticles_plugin-motion_4_0_0-alpha_5_node_modules_tsparticles_plugin-mot-65402c.js +50 -0
  115. package/node_modules_pnpm_tsparticles_plugin-motion_4_0_0-alpha_5_node_modules_tsparticles_plugin-mot-8c900b.js +30 -0
  116. package/{node_modules_pnpm_tsparticles_plugin-motion_4_0_0-alpha_2_node_modules_tsparticles_plugin-mot-a95f57.js → node_modules_pnpm_tsparticles_plugin-motion_4_0_0-alpha_5_node_modules_tsparticles_plugin-mot-abf5ec.js} +5 -5
  117. package/{node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--60c9df.js → node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--3fa544.js} +5 -5
  118. package/{node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--732407.js → node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--8050b3.js} +5 -5
  119. package/{node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_2_node_modules_tsparticles_shape-circl-c98489.js → node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_5_node_modules_tsparticles_shape-circl-2a85dc.js} +8 -8
  120. package/{node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_2_node_modules_tsparticles_shape-circl-ce96e8.js → node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_5_node_modules_tsparticles_shape-circl-d95142.js} +5 -5
  121. package/{node_modules_pnpm_tsparticles_shape-square_4_0_0-alpha_2_node_modules_tsparticles_shape-squar-9d7fc9.js → node_modules_pnpm_tsparticles_shape-square_4_0_0-alpha_5_node_modules_tsparticles_shape-squar-8b31f5.js} +5 -5
  122. package/{node_modules_pnpm_tsparticles_shape-square_4_0_0-alpha_2_node_modules_tsparticles_shape-squar-87e5cc.js → node_modules_pnpm_tsparticles_shape-square_4_0_0-alpha_5_node_modules_tsparticles_shape-squar-eebb11.js} +8 -8
  123. package/{node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_2_node_modules_tsparticles_updater-co-6ff909.js → node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_5_node_modules_tsparticles_updater-co-9b6d65.js} +5 -5
  124. package/{node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_2_node_modules_tsparticles_updater-co-210bd6.js → node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_5_node_modules_tsparticles_updater-co-a17be7.js} +5 -5
  125. package/{node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_2_node_modules_tsparticles_updater-lif-dbf90f.js → node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_5_node_modules_tsparticles_updater-lif-e3e3ae.js} +17 -17
  126. package/{node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_2_node_modules_tsparticles_updater-lif-50f821.js → node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_5_node_modules_tsparticles_updater-lif-ef30bd.js} +5 -5
  127. package/{node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_2_node_modules_tsparticles_updater--4e8c57.js → node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_5_node_modules_tsparticles_updater--35fbab.js} +5 -5
  128. package/{node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_2_node_modules_tsparticles_updater--ac14ff.js → node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_5_node_modules_tsparticles_updater--4bc1f3.js} +5 -5
  129. package/{node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_2_node_modules_tsparticles_update-cd317f.js → node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_5_node_modules_tsparticles_update-04964a.js} +5 -5
  130. package/{node_modules_pnpm_tsparticles_updater-roll_4_0_0-alpha_2_node_modules_tsparticles_updater-rol-4ecdb9.js → node_modules_pnpm_tsparticles_updater-roll_4_0_0-alpha_5_node_modules_tsparticles_updater-rol-5ef42a.js} +5 -5
  131. package/{node_modules_pnpm_tsparticles_updater-roll_4_0_0-alpha_2_node_modules_tsparticles_updater-rol-7edbad.js → node_modules_pnpm_tsparticles_updater-roll_4_0_0-alpha_5_node_modules_tsparticles_updater-rol-b614b7.js} +17 -17
  132. package/{node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_2_node_modules_tsparticles_updater-r-e97427.js → node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_5_node_modules_tsparticles_updater-r-9dd4f0.js} +11 -11
  133. package/{node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_2_node_modules_tsparticles_updater-r-0de212.js → node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_5_node_modules_tsparticles_updater-r-d70445.js} +5 -5
  134. package/{node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_2_node_modules_tsparticles_updater-siz-aaa117.js → node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_5_node_modules_tsparticles_updater-siz-547e88.js} +5 -5
  135. package/{node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_2_node_modules_tsparticles_updater-siz-53e0fe.js → node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_5_node_modules_tsparticles_updater-siz-7c3e56.js} +5 -5
  136. package/{node_modules_pnpm_tsparticles_updater-tilt_4_0_0-alpha_2_node_modules_tsparticles_updater-til-9ec545.js → node_modules_pnpm_tsparticles_updater-tilt_4_0_0-alpha_5_node_modules_tsparticles_updater-til-6369e8.js} +5 -5
  137. package/{node_modules_pnpm_tsparticles_updater-tilt_4_0_0-alpha_2_node_modules_tsparticles_updater-til-0b0e86.js → node_modules_pnpm_tsparticles_updater-tilt_4_0_0-alpha_5_node_modules_tsparticles_updater-til-c8a948.js} +14 -14
  138. package/{node_modules_pnpm_tsparticles_updater-wobble_4_0_0-alpha_2_node_modules_tsparticles_updater-w-536a35.js → node_modules_pnpm_tsparticles_updater-wobble_4_0_0-alpha_5_node_modules_tsparticles_updater-w-690404.js} +14 -14
  139. package/{node_modules_pnpm_tsparticles_updater-wobble_4_0_0-alpha_2_node_modules_tsparticles_updater-w-56b8f6.js → node_modules_pnpm_tsparticles_updater-wobble_4_0_0-alpha_5_node_modules_tsparticles_updater-w-b92958.js} +5 -5
  140. package/package.json +11 -11
  141. package/report.html +1 -1
  142. package/tsparticles.preset.confetti.bundle.js +197 -389
  143. package/tsparticles.preset.confetti.bundle.min.js +1 -1
  144. package/tsparticles.preset.confetti.bundle.min.js.LICENSE.txt +1 -1
  145. package/tsparticles.preset.confetti.js +4 -16
  146. package/tsparticles.preset.confetti.min.js +1 -1
  147. package/tsparticles.preset.confetti.min.js.LICENSE.txt +1 -1
  148. package/types/index.d.ts +1 -1
  149. package/types/options.d.ts +0 -1
  150. package/umd/index.js +13 -12
  151. package/umd/options.js +1 -2
  152. package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-alpha_5_node_modules_tsparticles_engine_br-85ef38.js +90 -0
  153. package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_-302925.js +200 -0
  154. package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_-4cf04b.js +30 -0
  155. package/vendors-node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_5_node_modules_tsparti-98de40.js +50 -0
  156. package/{vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_2_node_modules_tsparticle-124574.js → vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_5_node_modules_tsparticle-f9a455.js} +20 -20
  157. package/125.min.js +0 -2
  158. package/125.min.js.LICENSE.txt +0 -1
  159. package/213.min.js.LICENSE.txt +0 -1
  160. package/22.min.js.LICENSE.txt +0 -1
  161. package/227.min.js +0 -2
  162. package/227.min.js.LICENSE.txt +0 -1
  163. package/237.min.js +0 -2
  164. package/237.min.js.LICENSE.txt +0 -1
  165. package/264.min.js.LICENSE.txt +0 -1
  166. package/267.min.js +0 -2
  167. package/267.min.js.LICENSE.txt +0 -1
  168. package/283.min.js +0 -2
  169. package/283.min.js.LICENSE.txt +0 -1
  170. package/293.min.js +0 -2
  171. package/293.min.js.LICENSE.txt +0 -1
  172. package/302.min.js +0 -2
  173. package/302.min.js.LICENSE.txt +0 -1
  174. package/313.min.js +0 -2
  175. package/313.min.js.LICENSE.txt +0 -1
  176. package/349.min.js +0 -2
  177. package/349.min.js.LICENSE.txt +0 -1
  178. package/358.min.js +0 -2
  179. package/358.min.js.LICENSE.txt +0 -1
  180. package/365.min.js +0 -2
  181. package/365.min.js.LICENSE.txt +0 -1
  182. package/379.min.js +0 -2
  183. package/379.min.js.LICENSE.txt +0 -1
  184. package/397.min.js +0 -2
  185. package/397.min.js.LICENSE.txt +0 -1
  186. package/418.min.js +0 -2
  187. package/418.min.js.LICENSE.txt +0 -1
  188. package/453.min.js +0 -2
  189. package/453.min.js.LICENSE.txt +0 -1
  190. package/455.min.js +0 -2
  191. package/455.min.js.LICENSE.txt +0 -1
  192. package/459.min.js +0 -2
  193. package/459.min.js.LICENSE.txt +0 -1
  194. package/481.min.js.LICENSE.txt +0 -1
  195. package/509.min.js +0 -2
  196. package/509.min.js.LICENSE.txt +0 -1
  197. package/527.min.js +0 -2
  198. package/527.min.js.LICENSE.txt +0 -1
  199. package/595.min.js +0 -2
  200. package/595.min.js.LICENSE.txt +0 -1
  201. package/621.min.js +0 -2
  202. package/621.min.js.LICENSE.txt +0 -1
  203. package/633.min.js +0 -2
  204. package/633.min.js.LICENSE.txt +0 -1
  205. package/637.min.js +0 -2
  206. package/637.min.js.LICENSE.txt +0 -1
  207. package/669.min.js +0 -2
  208. package/669.min.js.LICENSE.txt +0 -1
  209. package/679.min.js +0 -2
  210. package/679.min.js.LICENSE.txt +0 -1
  211. package/717.min.js +0 -2
  212. package/717.min.js.LICENSE.txt +0 -1
  213. package/751.min.js.LICENSE.txt +0 -1
  214. package/801.min.js +0 -2
  215. package/801.min.js.LICENSE.txt +0 -1
  216. package/802.min.js +0 -2
  217. package/802.min.js.LICENSE.txt +0 -1
  218. package/803.min.js +0 -2
  219. package/803.min.js.LICENSE.txt +0 -1
  220. package/819.min.js +0 -2
  221. package/819.min.js.LICENSE.txt +0 -1
  222. package/98.min.js +0 -2
  223. package/98.min.js.LICENSE.txt +0 -1
  224. package/node_modules_pnpm_tsparticles_basic_4_0_0-alpha_2_node_modules_tsparticles_basic_browser_index_js.js +0 -30
  225. package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-7d79eb.js +0 -40
  226. package/node_modules_pnpm_tsparticles_plugin-motion_4_0_0-alpha_2_node_modules_tsparticles_plugin-mot-003442.js +0 -60
  227. package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-alpha_2_node_modules_tsparticles_engine_br-9c0a0f.js +0 -100
  228. package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_-1e60b5.js +0 -110
package/990.min.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 990.min.js.LICENSE.txt */
2
+ (this.webpackChunk_tsparticles_preset_confetti=this.webpackChunk_tsparticles_preset_confetti||[]).push([[990],{1990(t,i,e){e.d(i,{Container:()=>M});var s=e(9395),n=e(595),a=e(8473),r=e(3269),o=e(4338);function h(t,i,e){const s=i[e];void 0!==s&&(t[e]=(t[e]??n.zs)*s)}function c(t,i,e=!1){if(!i)return;const s=t.style,n=new Set;for(let t=0;t<s.length;t++){const i=s.item(t);i&&n.add(i)}for(let t=0;t<i.length;t++){const e=i.item(t);e&&n.add(e)}for(const t of n){const n=i.getPropertyValue(t);n?s.setProperty(t,n,e?"important":""):s.removeProperty(t)}}class l{constructor(t,i){this.container=t,this._reusableColorStyles={},this._reusablePluginColors=[void 0,void 0],this._reusableTransform={},this._applyPostDrawUpdaters=t=>{for(const i of this._postDrawUpdaters)i.afterDraw?.(t)},this._applyPreDrawUpdaters=(t,i,e,s,n,a)=>{for(const r of this._preDrawUpdaters){if(r.getColorStyles){const{fill:a,stroke:o}=r.getColorStyles(i,t,e,s);a&&(n.fill=a),o&&(n.stroke=o)}if(r.getTransformValues){const t=r.getTransformValues(i);for(const i in t)h(a,t,i)}r.beforeDraw?.(i)}},this._applyResizePlugins=()=>{for(const t of this._resizePlugins)t.resize?.()},this._getPluginParticleColors=t=>{let i,e;for(const s of this._colorPlugins)if(!i&&s.particleFillColor&&(i=(0,o.R5)(this._engine,s.particleFillColor(t))),!e&&s.particleStrokeColor&&(e=(0,o.R5)(this._engine,s.particleStrokeColor(t))),i&&e)break;return this._reusablePluginColors[0]=i,this._reusablePluginColors[1]=e,this._reusablePluginColors},this._initStyle=()=>{const t=this.element,i=this.container.actualOptions;if(t){this._fullScreen?this._setFullScreenStyle():this._resetOriginalStyle();for(const e in i.style){if(!e||!Object.hasOwn(i.style,e))continue;const s=i.style[e];s&&t.style.setProperty(e,s,"important")}}},this._repairStyle=()=>{const t=this.element;if(!t)return;this._safeMutationObserver(t=>{t.disconnect()}),this._initStyle(),this.initBackground();const i=this._pointerEvents;t.style.pointerEvents=i,t.setAttribute("pointer-events",i),this._safeMutationObserver(i=>{t instanceof Node&&i.observe(t,{attributes:!0})})},this._resetOriginalStyle=()=>{const t=this.element,i=this._originalStyle;t&&i&&c(t,i,!0)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{const t=this.element;t&&c(t,(0,r.hJ)(this.container.actualOptions.fullScreen.zIndex),!0)},this._engine=i,this._standardSize={height:0,width:0};const e=t.retina.pixelRatio,s=this._standardSize;this.size={height:s.height*e,width:s.width*e},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[],this._pointerEvents="none"}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}canvasClear(){this.container.actualOptions.clear&&this.draw(t=>{(0,a.IU)(t,this.size)})}clear(){let t=!1;for(const i of this.container.plugins)!t&&i.canvasClear&&(t=i.canvasClear());t||this.canvasClear()}clearDrawPlugin(t,i){this.draw(e=>{(0,a.l7)(e,t,i)})}destroy(){if(this.stop(),this._generated){const t=this.element;t?.remove(),this.element=void 0}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){const i=this._context;if(i)return t(i)}drawParticle(t,i){if(t.spawning||t.destroyed)return;const e=t.getRadius();if(e<=n.w2)return;const s=t.getFillColor(),r=t.getStrokeColor()??s;let[h,c]=this._getPluginParticleColors(t);if(h??=s,c??=r,!h&&!c)return;const l=this.container,d=t.options.zIndex,p=n.RV-t.zIndexFactor,{opacity:u,strokeOpacity:f}=t.getOpacity(),_=this._reusableTransform,g=this._reusableColorStyles,y=h?(0,o.LC)(h,l.hdr,u):void 0,m=c?(0,o.LC)(c,l.hdr,f):y;_.a=_.b=_.c=_.d=void 0,g.fill=y,g.stroke=m,this.draw(s=>{this._applyPreDrawUpdaters(s,t,e,u,g,_),(0,a.p0)({container:l,context:s,particle:t,delta:i,colorStyles:g,radius:e*p**d.sizeRate,opacity:u,transform:_})}),this._applyPostDrawUpdaters(t)}drawParticlePlugin(t,i,e){this.draw(s=>{(0,a.Wb)(s,t,i,e)})}drawParticles(t){const{particles:i,plugins:e}=this.container;this.clear(),i.update(t);for(const i of e.values())this.drawPlugin(i,t);this.draw(()=>{i.drawParticles(t)});for(const i of e.values())this.clearDrawPlugin(i,t)}drawPlugin(t,i){this.draw(e=>{(0,a.e_)(e,t,i)})}init(){this._safeMutationObserver(t=>{t.disconnect()}),this._mutationObserver=(0,r.tG)(t=>{for(const i of t)"attributes"===i.type&&"style"===i.attributeName&&this._repairStyle()}),this.resize(),this._initStyle(),this.initBackground(),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const{container:t}=this,i=t.actualOptions.background,e=this.element;if(!e)return;const s=e.style,n=(0,o.BN)(this._engine,i.color);s.backgroundColor=n?(0,o.xx)(n,t.hdr,i.opacity):"",s.backgroundImage=i.image||"",s.backgroundPosition=i.position||"",s.backgroundRepeat=i.repeat||"",s.backgroundSize=i.size||""}initPlugins(){this._resizePlugins=[];for(const t of this.container.plugins)t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const t of this.container.particles.updaters)t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove();const i=this.container;this._generated=n.eb in t.dataset?"true"===t.dataset[n.eb]:this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=(0,r.td)(this.element.style);const e=this._standardSize;e.height=t.offsetHeight,e.width=t.offsetWidth;const s=this.container.retina.pixelRatio,a=this.size;t.height=a.height=e.height*s,t.width=a.width=e.width*s;const o=(0,r.lV)("(color-gamut: p3)");this._context=this.element.getContext("2d",{alpha:!0,colorSpace:o?.matches&&i.hdr?"display-p3":"srgb",desynchronized:!0,willReadFrequently:!1}),this._safeMutationObserver(t=>{t.disconnect()}),i.retina.init(),this.initBackground(),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})})}paint(){let t=!1;for(const i of this.container.plugins){if(t)break;t=i.canvasPaint?.()??!1}t||this.paintBase()}paintBase(t){this.draw(i=>{(0,a.Sn)(i,this.size,t)})}paintImage(t,i){this.draw(e=>{(0,a.Md)(e,this.size,t,i)})}resize(){if(!this.element)return!1;const t=this.container,i=t.canvas._standardSize,e={width:this.element.offsetWidth,height:this.element.offsetHeight},s=t.retina.pixelRatio,n={width:e.width*s,height:e.height*s};if(e.height===i.height&&e.width===i.width&&n.height===this.element.height&&n.width===this.element.width)return!1;const a={...i};i.height=e.height,i.width=e.width;const r=this.size;return this.element.width=r.width=n.width,this.element.height=r.height=n.height,this.container.started&&t.particles.setResizeFactor({width:i.width/a.width,height:i.height/a.height}),!0}setPointerEvents(t){this.element&&(this._pointerEvents=t,this._repairStyle())}stop(){this._safeMutationObserver(t=>{t.disconnect()}),this._mutationObserver=void 0,this.draw(t=>{(0,a.IU)(t,this.size)})}async windowResize(){if(!this.element||!this.resize())return;const t=this.container,i=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),i&&await t.refresh()}}class d{constructor(t){this.container=t,this._handleVisibilityChange=()=>{const t=this.container;t.actualOptions.pauseOnBlur&&((0,r.T5)().hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const t=async()=>{const t=this.container.canvas;await t.windowResize()};this._resizeTimeout=setTimeout(()=>{t()},this.container.actualOptions.resize.delay*n.Xu)},this._manageListeners=t=>{const i=this._handlers;this._manageResize(t),(0,r.Kp)(document,n.nK,i.visibilityChange,t,!1)},this._manageResize=t=>{const i=this._handlers,e=this.container;if(!e.actualOptions.resize.enable)return;if("undefined"==typeof ResizeObserver)return void(0,r.Kp)(globalThis,n.NF,i.resize,t);const s=e.canvas.element;this._resizeObserver&&!t?(s&&this._resizeObserver.unobserve(s),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&s&&(this._resizeObserver=new ResizeObserver(t=>{t.find(t=>t.target===s)&&this._handleWindowResize()}),this._resizeObserver.observe(s))},this._handlers={visibilityChange:()=>{this._handleVisibilityChange()},resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}var p=e(5805),u=e(4045),f=e(1512),_=e(5450),g=e(8096),y=e(6827),m=e(3019),v=e(9029);function w(t){if(!(0,r.hn)(t.outMode,t.checkModes))return;const i=t.radius*n.gd;t.coord>t.maxCoord-i?t.setCb(-t.radius):t.coord<i&&t.setCb(t.radius)}class b{constructor(t,i){this.container=i,this._cachedOpacityData={opacity:n.hv,strokeOpacity:n.hv},this._cachedPosition=_.p.origin,this._cachedRotateData={sin:0,cos:0},this._cachedTransform={a:1,b:0,c:0,d:1},this._calcPosition=(t,i)=>{let e=n.rq,a=t?_.p.create(t.x,t.y,i):void 0;const r=this.container,o=Array.from(r.plugins),h=this.options.move.outModes,c=this.getRadius(),l=r.canvas.size,d=new AbortController,{signal:p}=d;for(;!p.aborted;){for(const t of o){const e=t.particlePosition?.(a,this);if(e)return _.p.create(e.x,e.y,i)}const t=(0,s.Nx)({size:l,position:a}),r=_.p.create(t.x,t.y,i);this._fixHorizontal(r,c,h.left??h.default),this._fixHorizontal(r,c,h.right??h.default),this._fixVertical(r,c,h.top??h.default),this._fixVertical(r,c,h.bottom??h.default);let d=!0;for(const t of o)if(d=t.checkParticlePosition?.(this,r,e)??!0,!d)break;if(d)return r;e+=n.Eo,a=void 0}return a},this._calculateVelocity=()=>{const t=(0,s.$m)(this.direction).copy(),i=this.options.move;if(i.direction===g.F.inside||i.direction===g.F.outside)return t;const e=(0,s.pu)((0,s.VG)(i.angle.value)),a=(0,s.pu)((0,s.VG)(i.angle.offset)),r={left:a-e*n.MX,right:a+e*n.MX};return i.straight||(t.angle+=(0,s.vE)((0,s.DT)(r.left,r.right))),i.random&&"number"==typeof i.speed&&(t.length*=(0,s.G0)()),t},this._fixHorizontal=(t,i,e)=>{w({outMode:e,checkModes:[y.Y.bounce],coord:t.x,maxCoord:this.container.canvas.size.width,setCb:i=>t.x+=i,radius:i})},this._fixVertical=(t,i,e)=>{w({outMode:e,checkModes:[y.Y.bounce],coord:t.y,maxCoord:this.container.canvas.size.height,setCb:i=>t.y+=i,radius:i})},this._getRollColor=t=>{if(!t||!this.roll||!this.backColor&&!this.roll.alter)return t;const i=this.roll.horizontal&&this.roll.vertical?n.gd*n.l:n.l,e=this.roll.horizontal?Math.PI*n.MX:n.dv;return Math.floor((this.roll.angle+e)/(Math.PI/i))%n.gd?this.backColor?this.backColor:this.roll.alter?(0,a.yx)(t,this.roll.alter.type,this.roll.alter.value):t:t},this._initPosition=t=>{const i=this.container,e=(0,s.VG)(this.options.zIndex.value),a=this._calcPosition(t,(0,s.qE)(e,n.X_,i.zLayers));if(!a)throw new Error("a valid position cannot be found for particle");this.position=a,this.initialPosition=this.position.copy();const o=i.canvas.size;switch(this.moveCenter={...(0,r.E9)(this.options.move.center,o),radius:this.options.move.center.radius,mode:this.options.move.center.mode},this.direction=(0,s.JY)(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case g.F.inside:this.outType=m.x.inside;break;case g.F.outside:this.outType=m.x.outside}this.offset=_.M.origin},this._engine=t}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const i=this.container,e=this.pathGenerator,s=this.shape?i.shapeDrawers.get(this.shape):void 0;s?.particleDestroy?.(this);for(const e of i.plugins)e.particleDestroyed?.(this,t);for(const e of i.particles.updaters)e.particleDestroyed?.(this,t);e?.reset(this),this._engine.dispatchEvent(p.B.particleDestroyed,{container:this.container,data:{particle:this}})}draw(t){const i=this.container,e=i.canvas;for(const s of i.plugins)e.drawParticlePlugin(s,this,t);e.drawParticle(this,t)}getAngle(){return this.rotation+(this.pathRotation?this.velocity.angle:n.tA)}getFillColor(){return this._getRollColor(this.bubble.color??(0,o.O_)(this.color))}getMass(){return this.getRadius()**n.dm*Math.PI*n.MX}getOpacity(){const t=this.options.zIndex,i=(n.RV-this.zIndexFactor)**t.opacityRate,e=this.bubble.opacity??(0,s.VG)(this.opacity?.value??n.hv),a=this.strokeOpacity??e;return this._cachedOpacityData.opacity=e*i,this._cachedOpacityData.strokeOpacity=a*i,this._cachedOpacityData}getPosition(){return this._cachedPosition.x=this.position.x+this.offset.x,this._cachedPosition.y=this.position.y+this.offset.y,this._cachedPosition.z=this.position.z,this._cachedPosition}getRadius(){return this.bubble.radius??this.size.value}getRotateData(){const t=this.getAngle();return this._cachedRotateData.sin=Math.sin(t),this._cachedRotateData.cos=Math.cos(t),this._cachedRotateData}getStrokeColor(){return this._getRollColor(this.bubble.color??(0,o.O_)(this.strokeColor))}getTransformData(t){const i=this.getRotateData(),e=this.isRotating;return this._cachedTransform.a=i.cos*(t.a??n.Ug.a),this._cachedTransform.b=e?i.sin*(t.b??n.D_):t.b??n.Ug.b,this._cachedTransform.c=e?-i.sin*(t.c??n.D_):t.c??n.Ug.c,this._cachedTransform.d=i.cos*(t.d??n.Ug.d),this._cachedTransform}init(t,i,e,a){const o=this.container;this.id=t,this.group=a,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=m.x.normal,this.ignoresResizeRatio=!0;const h=o.retina.pixelRatio,c=o.actualOptions,l=(0,v.y)(this._engine,o,c.particles),d=l.reduceDuplicates,p=l.effect.type,u=l.shape.type;this.effect=(0,r.TA)(p,this.id,d),this.shape=(0,r.TA)(u,this.id,d);const f=l.effect,_=l.shape;if(e){if(e.effect?.type){const t=e.effect.type,i=(0,r.TA)(t,this.id,d);i&&(this.effect=i,f.load(e.effect))}if(e.shape?.type){const t=e.shape.type,i=(0,r.TA)(t,this.id,d);i&&(this.shape=i,_.load(e.shape))}}if(this.effect===n.mR){const t=[...this.container.effectDrawers.keys()];this.effect=t[Math.floor((0,s.G0)()*t.length)]}if(this.shape===n.mR){const t=[...this.container.shapeDrawers.keys()];this.shape=t[Math.floor((0,s.G0)()*t.length)]}this.effectData=this.effect?function(t,i,e,s){const n=i.options[t];return(0,r.zw)({close:i.close,fill:i.fill},(0,r.TA)(n,e,s))}(this.effect,f,this.id,d):void 0,this.shapeData=this.shape?function(t,i,e,s){const n=i.options[t];return(0,r.zw)({close:i.close,fill:i.fill},(0,r.TA)(n,e,s))}(this.shape,_,this.id,d):void 0,l.load(e);const g=this.effectData;g&&l.load(g.particles);const y=this.shapeData;y&&l.load(y.particles),this.effectFill=g?.fill??l.effect.fill,this.effectClose=g?.close??l.effect.close,this.shapeFill=y?.fill??l.shape.fill,this.shapeClose=y?.close??l.shape.close,this.options=l;const w=this.options.move.path;this.pathDelay=(0,s.VG)(w.delay.value)*n.Xu,w.generator&&(this.pathGenerator=this._engine.getPathGenerator(w.generator),this.pathGenerator&&o.addPath(w.generator,this.pathGenerator)&&this.pathGenerator.init(o)),o.retina.initParticle(this),this.size=(0,r.Xs)(this.options.size,h),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(i),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=n.WH-(0,s.VG)(this.options.move.decay);const b=o.particles;let z,P;b.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/o.zLayers,this.sides=24,this.effect&&(z=o.effectDrawers.get(this.effect),z||(z=this._engine.getEffectDrawer(this.effect),z&&o.effectDrawers.set(this.effect,z))),z?.loadEffect&&z.loadEffect(this),this.shape&&(P=o.shapeDrawers.get(this.shape),P||(P=this._engine.getShapeDrawer(this.shape),P&&o.shapeDrawers.set(this.shape,P))),P?.loadShape&&P.loadShape(this);const D=P?.getSidesCount;D&&(this.sides=D(this)),this.spawning=!1;for(const t of b.updaters)t.init(this);for(const t of b.movers)t.init(this);z?.particleInit?.(o,this),P?.particleInit?.(o,this);for(const t of o.plugins)t.particleCreated?.(this)}isInsideCanvas(){const t=this.getRadius(),i=this.container.canvas.size,e=this.position;return e.x>=-t&&e.y>=-t&&e.y<=i.height+t&&e.x<=i.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const t of this.container.particles.updaters)t.reset?.(this)}}class z{constructor(t,i){this.position=t,this.particle=i}}var P=e(7962);class D{constructor(t,i){this.rectangle=t,this.capacity=i,this._subdivide=()=>{const{x:t,y:i}=this.rectangle.position,{width:e,height:s}=this.rectangle.size,{capacity:a}=this;for(let r=0;r<n.Pg;r++){const o=r%n.gd;this._subs.push(new D(new P.M_(t+e*n.MX*o,i+s*n.MX*(Math.round(r*n.MX)-o),e*n.MX,s*n.MX),a))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(t){return!!this.rectangle.contains(t.position)&&(this._points.length<this.capacity?(this._points.push(t),!0):(this._divided||this._subdivide(),this._subs.some(i=>i.insert(t))))}query(t,i){const e=[];if(!t.intersects(this.rectangle))return[];for(const n of this._points)!t.contains(n.position)&&(0,s.Yf)(t.position,n.position)>n.particle.getRadius()&&(!i||i(n.particle))||e.push(n.particle);if(this._divided)for(const s of this._subs)e.push(...s.query(t,i));return e}queryCircle(t,i,e){return this.query(new P.jl(t.x,t.y,i),e)}queryRectangle(t,i,e){return this.query(new P.M_(t.x,t.y,i.width,i.height),e)}}var x=e(9385);const O=t=>{const{height:i,width:e}=t;return new P.M_(n.un*e,n.un*i,n.Rh*e,n.Rh*i)};class S{constructor(t,i){this._addToPool=(...t)=>{this._pool.push(...t)},this._applyDensity=(t,i,e,s)=>{const a=t.number;if(!a.density.enable)return void(void 0===e?this._limit=a.limit.value:(s?.number.limit.value??a.limit.value)&&this._groupLimits.set(e,s?.number.limit.value??a.limit.value));const r=this._initDensityFactor(a.density),o=a.value,h=a.limit.value>n.ou?a.limit.value:o,c=Math.min(o,h)*r+i,l=Math.min(this.count,this.filter(t=>t.group===e).length);void 0===e?this._limit=a.limit.value*r:this._groupLimits.set(e,a.limit.value*r),l<c?this.push(Math.abs(c-l),void 0,t,e):l>c&&this.removeQuantity(l-c,e)},this._initDensityFactor=t=>{const i=this._container;if(!i.canvas.element||!t.enable)return n.lA;const e=i.canvas.element,s=i.retina.pixelRatio;return e.width*e.height/(t.height*t.width*s**n.dm)},this._pushParticle=(t,i,e,s)=>{try{const n=this._pool.pop()??new b(this._engine,this._container);n.init(this._nextId,t,i,e);let a=!0;if(s&&(a=s(n)),!a)return;return this._array.push(n),this._zArray.push(n),this._nextId++,this._engine.dispatchEvent(p.B.particleAdded,{container:this._container,data:{particle:n}}),n}catch(t){(0,x.t)().warning(`error adding particle: ${t}`)}},this._removeParticle=(t,i,e)=>{const s=this._array[t];if(!s)return!1;if(s.group!==i)return!1;const a=this._zArray.indexOf(s);return this._array.splice(t,n.LD),this._zArray.splice(a,n.LD),s.destroy(e),this._engine.dispatchEvent(p.B.particleRemoved,{container:this._container,data:{particle:s}}),this._addToPool(s),!0},this._engine=t,this._container=i,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._pluginsInitialized=!1;const e=i.canvas.size;this.quadTree=new D(O(e),n.Kw),this.movers=[],this.updaters=[]}get count(){return this._array.length}addParticle(t,i,e,s){const a=this._container.actualOptions.particles.number.limit.mode,r=void 0===e?this._limit:this._groupLimits.get(e)??this._limit,o=this.count;if(r>n.ou)switch(a){case f.d.delete:{const t=o+n.nq-r;t>n.wM&&this.removeQuantity(t);break}case f.d.wait:if(o>=r)return}return this._pushParticle(t,i,e,s)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}drawParticles(t){for(const i of this._zArray)i.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}async init(){const t=this._container,i=t.actualOptions;this._lastZIndex=0,this._needsSort=!1;for(const i of t.plugins)i.redrawInit&&await i.redrawInit();await this.initPlugins();let e=!1;for(const i of t.plugins)if(e=i.particlesInitialization?.()??e,e)break;if(!e){const t=i.particles,e=t.groups;for(const i in e){const s=e[i];if(s)for(let e=this.count,n=0;n<s.number.value&&e<t.number.value;e++,n++)this.addParticle(void 0,s,i)}for(let i=this.count;i<t.number.value;i++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;const t=this._container;this.movers=await this._engine.getMovers(t,!0),this.updaters=await this._engine.getUpdaters(t,!0);for(const i of t.pathGenerators.values())i.init(t)}push(t,i,e,s){for(let n=0;n<t;n++)this.addParticle(i,e,s)}async redraw(){this.clear(),await this.init(),this._container.canvas.drawParticles({value:0,factor:0})}remove(t,i,e){this.removeAt(this._array.indexOf(t),void 0,i,e)}removeAt(t,i=n.xd,e,s){if(t<n.z9||t>this.count)return;let a=0;for(let n=t;a<i&&n<this.count;n++)this._removeParticle(n,e,s)&&(n--,a++)}removeQuantity(t,i){this.removeAt(n.z9,t,i)}setDensity(){const t=this._container.actualOptions,i=t.particles.groups;let e=0;for(const t of this._container.plugins)t.particlesDensityCount&&(e+=t.particlesDensityCount());for(const t in i){const s=i[t];if(!s)continue;const n=(0,v.y)(this._engine,this._container,s);this._applyDensity(n,e,t)}this._applyDensity(t.particles,e)}setLastZIndex(t){this._lastZIndex=t,this._needsSort=this._needsSort||this._lastZIndex<t}setResizeFactor(t){this._resizeFactor=t}update(t){const i=this._container,e=new Set;this.quadTree=new D(O(i.canvas.size),n.Kw);for(const t of i.pathGenerators.values())t.update();for(const e of i.plugins)e.update?.(t);const s=this._resizeFactor;for(const i of this._array){s&&!i.ignoresResizeRatio&&(i.position.x*=s.width,i.position.y*=s.height,i.initialPosition.x*=s.width,i.initialPosition.y*=s.height),i.ignoresResizeRatio=!1;for(const t of this._container.plugins)t.particleReset&&t.particleReset(i);for(const e of this._container.plugins){if(i.destroyed)break;e.particleUpdate?.(i,t)}for(const e of this.movers)e.isEnabled(i)&&e.move(i,t);i.destroyed?e.add(i):this.quadTree.insert(new z(i.getPosition(),i))}if(e.size){const t=t=>!e.has(t);this._array=this.filter(t),this._zArray=this._zArray.filter(t);for(const t of e)this._engine.dispatchEvent(p.B.particleRemoved,{container:this._container,data:{particle:t}});this._addToPool(...e)}for(const e of i.plugins)e.postUpdate&&e.postUpdate(t);for(const e of this._array){for(const i of this.updaters)i.update(e,t);if(!e.destroyed&&!e.spawning)for(const s of i.plugins)s.postParticleUpdate&&s.postParticleUpdate(e,t)}if(delete this._resizeFactor,this._needsSort){const t=this._zArray;t.sort((t,i)=>i.position.z-t.position.z||t.id-i.id);const i=t[t.length-n.K3];if(!i)return;this._lastZIndex=i.position.z,this._needsSort=!1}}}class R{constructor(t){this.container=t,this.pixelRatio=n.$x,this.reduceFactor=n.Zp}init(){const t=this.container,i=t.actualOptions;this.pixelRatio=i.detectRetina?devicePixelRatio:n.$x,this.reduceFactor=n.Zp;const e=this.pixelRatio,a=t.canvas;if(a.element){const t=a.element;a.size.width=t.offsetWidth*e,a.size.height=t.offsetHeight*e}const r=i.particles,o=r.move;this.maxSpeed=(0,s.VG)(o.gravity.maxSpeed)*e,this.sizeAnimationSpeed=(0,s.VG)(r.size.animation.speed)*e}initParticle(t){const i=t.options,e=this.pixelRatio,n=i.move,a=n.distance,r=t.retina;r.moveDrift=(0,s.VG)(n.drift)*e,r.moveSpeed=(0,s.VG)(n.speed)*e,r.sizeAnimationSpeed=(0,s.VG)(i.size.animation.speed)*e;const o=r.maxDistance;o.horizontal=void 0!==a.horizontal?a.horizontal*e:void 0,o.vertical=void 0!==a.vertical?a.vertical*e:void 0,r.maxSpeed=(0,s.VG)(n.gravity.maxSpeed)*e}}function C(t){return!t.destroyed}function T(t,i,...e){const s=new u.J(t,i);return(0,v.Z)(s,...e),s}class M{constructor(t,i,e){this._delta={value:0,factor:0},this._nextFrame=t=>{try{if(!this._smooth&&void 0!==this._lastFrameTime&&t<this._lastFrameTime+n.Xu/this.fpsLimit)return void this.draw(!1);if(this._lastFrameTime??=t,function(t,i,e=n.z$,s=!1){t.value=i,t.factor=s?n.z$/e:n.z$*i/n.Xu}(this._delta,t-this._lastFrameTime,this.fpsLimit,this._smooth),this.addLifeTime(this._delta.value),this._lastFrameTime=t,this._delta.value>n.Xu)return void this.draw(!1);if(this.canvas.drawParticles(this._delta),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(t){(0,x.t)().error("error in animation loop",t)}},this._engine=t,this.id=Symbol(i),this.fpsLimit=120,this.hdr=!1,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=e,this._initialSourceOptions=e,this.retina=new R(this),this.canvas=new l(this,this._engine),this.particles=new S(this._engine,this),this.pathGenerators=new Map,this.plugins=[],this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=T(this._engine,this),this.actualOptions=T(this._engine,this),this._eventListeners=new d(this),this._engine.dispatchEvent(p.B.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&C(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addLifeTime(t){this._lifeTime+=t}addPath(t,i,e=!1){return!(!C(this)||!e&&this.pathGenerators.has(t))&&(this.pathGenerators.set(t,i),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(t=!0){if(C(this)){this.stop(),this.particles.destroy(),this.canvas.destroy();for(const t of this.effectDrawers.values())t.destroy?.(this);this.effectDrawers.clear();for(const t of this.shapeDrawers.values())t.destroy?.(this);this.shapeDrawers.clear();for(const t of this.plugins)t.destroy?.();if(this.plugins.length=0,this._engine.clearPlugins(this),this.destroyed=!0,t){const t=this._engine.items,i=t.indexOf(this);i>=n.vF&&t.splice(i,n.JC)}this._engine.dispatchEvent(p.B.containerDestroyed,{container:this})}}draw(t){if(!C(this))return;let i=t;const e=t=>{i&&(this._lastFrameTime=void 0,i=!1),this._nextFrame(t)};this._drawAnimationFrame=(0,s.i0)(t=>{e(t)})}async export(t,i={}){for(const e of this.plugins){if(!e.export)continue;const s=await e.export(t,i);if(s.supported)return s.blob}(0,x.t)().error(`Export plugin with type ${t} not found`)}async init(){if(!C(this))return;const t=this._engine.getSupportedEffects();for(const i of t){const t=this._engine.getEffectDrawer(i);t&&this.effectDrawers.set(i,t)}const i=this._engine.getSupportedShapes();for(const t of i){const i=this._engine.getShapeDrawer(t);i&&this.shapeDrawers.set(t,i)}const e=new Map;for(const t of this._engine.plugins){const i=await t.getPlugin(this);i.preInit&&await i.preInit(),e.set(t,i)}await this.particles.initPlugins(),this._options=T(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=T(this._engine,this,this._options);for(const[t,i]of e)t.needsPlugin(this.actualOptions)&&this.plugins.push(i);this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{delay:a,duration:r,fpsLimit:o,hdr:h,smooth:c,zLayers:l}=this.actualOptions;this.hdr=h,this.zLayers=l,this._duration=(0,s.VG)(r)*n.Xu,this._delay=(0,s.VG)(a)*n.Xu,this._lifeTime=0,this.fpsLimit=o>n.DN?o:n.i8,this._smooth=c;for(const t of this.plugins)await(t.init?.());for(const t of this.effectDrawers.values())await(t.init?.(this));for(const t of this.shapeDrawers.values())await(t.init?.(this));this._engine.dispatchEvent(p.B.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity();for(const t of this.plugins)t.particlesSetup?.();this._engine.dispatchEvent(p.B.particlesSetup,{container:this})}pause(){if(C(this)&&(void 0!==this._drawAnimationFrame&&((0,s.px)(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const t of this.plugins)t.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(p.B.containerPaused,{container:this})}}play(t){if(!C(this))return;const i=this._paused||t;if(!this._firstStart||this.actualOptions.autoPlay){if(this._paused&&(this._paused=!1),i)for(const t of this.plugins)t.play&&t.play();this._engine.dispatchEvent(p.B.containerPlay,{container:this}),this.draw(i??!1)}else this._firstStart=!1}async refresh(){if(C(this))return this.stop(),this.start()}async reset(t){if(C(this))return this._initialSourceOptions=t,this._sourceOptions=t,this._options=T(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=T(this._engine,this,this._options),this.refresh()}async start(){C(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{const i=async()=>{this._eventListeners.addListeners();for(const t of this.plugins)await(t.start?.());this._engine.dispatchEvent(p.B.containerStarted,{container:this}),this.play(),t()};this._delayTimeout=setTimeout(()=>{i()},this._delay)}))}stop(){if(C(this)&&this.started){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop();for(const t of this.plugins)t.stop?.();this.plugins.length=0,this._sourceOptions=this._options,this._engine.dispatchEvent(p.B.containerStopped,{container:this})}}updateActualOptions(){let t=!1;for(const i of this.plugins)i.updateActualOptions&&(t=i.updateActualOptions()||t);return t}}}}]);
@@ -0,0 +1 @@
1
+ /*! tsParticles Confetti Preset v4.0.0-alpha.2 by Matteo Bruni */
package/browser/index.js CHANGED
@@ -1,15 +1,16 @@
1
- export function loadConfettiPreset(engine) {
2
- engine.register(async (e) => {
3
- const { loadBasic } = await import("@tsparticles/basic"), { loadEmittersPlugin } = await import("@tsparticles/plugin-emitters"), { loadMotionPlugin } = await import("@tsparticles/plugin-motion"), { loadRotateUpdater } = await import("@tsparticles/updater-rotate"), { loadSquareShape } = await import("@tsparticles/shape-square"), { loadTiltUpdater } = await import("@tsparticles/updater-tilt"), { loadWobbleUpdater } = await import("@tsparticles/updater-wobble"), { loadLifeUpdater } = await import("@tsparticles/updater-life"), { loadRollUpdater } = await import("@tsparticles/updater-roll"), { options, presetName } = await import("./options.js");
4
- loadBasic(e);
5
- loadSquareShape(e);
6
- loadEmittersPlugin(e);
7
- loadMotionPlugin(e);
8
- loadWobbleUpdater(e);
9
- loadRollUpdater(e);
10
- loadRotateUpdater(e);
11
- loadTiltUpdater(e);
12
- loadLifeUpdater(e);
1
+ const presetName = "confetti";
2
+ export async function loadConfettiPreset(engine) {
3
+ await engine.register(async (e) => {
4
+ const { loadBasic } = await import("@tsparticles/basic"), { loadEmittersPlugin } = await import("@tsparticles/plugin-emitters"), { loadMotionPlugin } = await import("@tsparticles/plugin-motion"), { loadRotateUpdater } = await import("@tsparticles/updater-rotate"), { loadSquareShape } = await import("@tsparticles/shape-square"), { loadTiltUpdater } = await import("@tsparticles/updater-tilt"), { loadWobbleUpdater } = await import("@tsparticles/updater-wobble"), { loadLifeUpdater } = await import("@tsparticles/updater-life"), { loadRollUpdater } = await import("@tsparticles/updater-roll"), { options } = await import("./options.js");
5
+ await loadBasic(e);
6
+ await loadSquareShape(e);
7
+ await loadEmittersPlugin(e);
8
+ await loadMotionPlugin(e);
9
+ await loadWobbleUpdater(e);
10
+ await loadRollUpdater(e);
11
+ await loadRotateUpdater(e);
12
+ await loadTiltUpdater(e);
13
+ await loadLifeUpdater(e);
13
14
  e.addPreset(presetName, options, false);
14
15
  });
15
16
  }
@@ -1,5 +1,4 @@
1
1
  const lifeDurationNum = 10, lifeDurationFactor = 3, lifeDuration = lifeDurationNum / lifeDurationFactor;
2
- export const presetName = "confetti";
3
2
  export const options = {
4
3
  fullScreen: {
5
4
  enable: true,
package/cjs/index.js CHANGED
@@ -1,15 +1,16 @@
1
- export function loadConfettiPreset(engine) {
2
- engine.register(async (e) => {
3
- const { loadBasic } = await import("@tsparticles/basic"), { loadEmittersPlugin } = await import("@tsparticles/plugin-emitters"), { loadMotionPlugin } = await import("@tsparticles/plugin-motion"), { loadRotateUpdater } = await import("@tsparticles/updater-rotate"), { loadSquareShape } = await import("@tsparticles/shape-square"), { loadTiltUpdater } = await import("@tsparticles/updater-tilt"), { loadWobbleUpdater } = await import("@tsparticles/updater-wobble"), { loadLifeUpdater } = await import("@tsparticles/updater-life"), { loadRollUpdater } = await import("@tsparticles/updater-roll"), { options, presetName } = await import("./options.js");
4
- loadBasic(e);
5
- loadSquareShape(e);
6
- loadEmittersPlugin(e);
7
- loadMotionPlugin(e);
8
- loadWobbleUpdater(e);
9
- loadRollUpdater(e);
10
- loadRotateUpdater(e);
11
- loadTiltUpdater(e);
12
- loadLifeUpdater(e);
1
+ const presetName = "confetti";
2
+ export async function loadConfettiPreset(engine) {
3
+ await engine.register(async (e) => {
4
+ const { loadBasic } = await import("@tsparticles/basic"), { loadEmittersPlugin } = await import("@tsparticles/plugin-emitters"), { loadMotionPlugin } = await import("@tsparticles/plugin-motion"), { loadRotateUpdater } = await import("@tsparticles/updater-rotate"), { loadSquareShape } = await import("@tsparticles/shape-square"), { loadTiltUpdater } = await import("@tsparticles/updater-tilt"), { loadWobbleUpdater } = await import("@tsparticles/updater-wobble"), { loadLifeUpdater } = await import("@tsparticles/updater-life"), { loadRollUpdater } = await import("@tsparticles/updater-roll"), { options } = await import("./options.js");
5
+ await loadBasic(e);
6
+ await loadSquareShape(e);
7
+ await loadEmittersPlugin(e);
8
+ await loadMotionPlugin(e);
9
+ await loadWobbleUpdater(e);
10
+ await loadRollUpdater(e);
11
+ await loadRotateUpdater(e);
12
+ await loadTiltUpdater(e);
13
+ await loadLifeUpdater(e);
13
14
  e.addPreset(presetName, options, false);
14
15
  });
15
16
  }
package/cjs/options.js CHANGED
@@ -1,5 +1,4 @@
1
1
  const lifeDurationNum = 10, lifeDurationFactor = 3, lifeDuration = lifeDurationNum / lifeDurationFactor;
2
- export const presetName = "confetti";
3
2
  export const options = {
4
3
  fullScreen: {
5
4
  enable: true,
@@ -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-alpha.0
7
+ * v4.0.0-alpha.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 */ options: () => (/* binding */ options),\n/* harmony export */ presetName: () => (/* binding */ presetName)\n/* harmony export */ });\nconst lifeDurationNum = 10,\n lifeDurationFactor = 3,\n lifeDuration = lifeDurationNum / lifeDurationFactor;\nconst presetName = \"confetti\";\nconst options = {\n fullScreen: {\n enable: true,\n zIndex: 100\n },\n fpsLimit: 120,\n particles: {\n number: {\n value: 0\n },\n color: {\n value: [\"#26ccff\", \"#a25afd\", \"#ff5e7e\", \"#88ff5a\", \"#fcff42\", \"#ffa62d\", \"#ff36ff\"]\n },\n shape: {\n type: [\"square\", \"circle\"]\n },\n opacity: {\n value: {\n min: 0,\n max: 1\n },\n animation: {\n enable: true,\n speed: 0.5,\n startValue: \"max\",\n destroy: \"min\"\n }\n },\n size: {\n value: 5\n },\n links: {\n enable: false\n },\n life: {\n duration: {\n sync: true,\n value: lifeDuration\n },\n count: 1\n },\n move: {\n angle: {\n value: 45,\n offset: 0\n },\n drift: 0,\n enable: true,\n gravity: {\n enable: true,\n acceleration: 9.81\n },\n speed: 45,\n decay: 0.1,\n direction: -90,\n random: true,\n straight: false,\n outModes: {\n default: \"none\",\n bottom: \"destroy\"\n }\n },\n rotate: {\n value: {\n min: 0,\n max: 360\n },\n direction: \"random\",\n animation: {\n enable: true,\n speed: 60\n }\n },\n tilt: {\n direction: \"random\",\n enable: true,\n value: {\n min: 0,\n max: 360\n },\n animation: {\n enable: true,\n speed: 60\n }\n },\n roll: {\n darken: {\n enable: true,\n value: 25\n },\n enable: true,\n speed: {\n min: 15,\n max: 25\n }\n },\n wobble: {\n distance: 30,\n enable: true,\n speed: {\n min: -15,\n max: 15\n }\n }\n },\n detectRetina: true,\n motion: {\n disable: true\n },\n emitters: {\n name: \"confetti\",\n startCount: 50,\n position: {\n x: 50,\n y: 50\n },\n size: {\n width: 0,\n height: 0\n },\n rate: {\n delay: 0,\n quantity: 0\n },\n life: {\n duration: 0.1,\n count: 1\n }\n }\n};\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/./dist/browser/options.js?\n}");
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ options: () => (/* binding */ options)\n/* harmony export */ });\nconst lifeDurationNum = 10,\n lifeDurationFactor = 3,\n lifeDuration = lifeDurationNum / lifeDurationFactor;\nconst options = {\n fullScreen: {\n enable: true,\n zIndex: 100\n },\n fpsLimit: 120,\n particles: {\n number: {\n value: 0\n },\n color: {\n value: [\"#26ccff\", \"#a25afd\", \"#ff5e7e\", \"#88ff5a\", \"#fcff42\", \"#ffa62d\", \"#ff36ff\"]\n },\n shape: {\n type: [\"square\", \"circle\"]\n },\n opacity: {\n value: {\n min: 0,\n max: 1\n },\n animation: {\n enable: true,\n speed: 0.5,\n startValue: \"max\",\n destroy: \"min\"\n }\n },\n size: {\n value: 5\n },\n links: {\n enable: false\n },\n life: {\n duration: {\n sync: true,\n value: lifeDuration\n },\n count: 1\n },\n move: {\n angle: {\n value: 45,\n offset: 0\n },\n drift: 0,\n enable: true,\n gravity: {\n enable: true,\n acceleration: 9.81\n },\n speed: 45,\n decay: 0.1,\n direction: -90,\n random: true,\n straight: false,\n outModes: {\n default: \"none\",\n bottom: \"destroy\"\n }\n },\n rotate: {\n value: {\n min: 0,\n max: 360\n },\n direction: \"random\",\n animation: {\n enable: true,\n speed: 60\n }\n },\n tilt: {\n direction: \"random\",\n enable: true,\n value: {\n min: 0,\n max: 360\n },\n animation: {\n enable: true,\n speed: 60\n }\n },\n roll: {\n darken: {\n enable: true,\n value: 25\n },\n enable: true,\n speed: {\n min: 15,\n max: 25\n }\n },\n wobble: {\n distance: 30,\n enable: true,\n speed: {\n min: -15,\n max: 15\n }\n }\n },\n detectRetina: true,\n motion: {\n disable: true\n },\n emitters: {\n name: \"confetti\",\n startCount: 50,\n position: {\n x: 50,\n y: 50\n },\n size: {\n width: 0,\n height: 0\n },\n rate: {\n delay: 0,\n quantity: 0\n },\n life: {\n duration: 0.1,\n count: 1\n }\n }\n};\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/./dist/browser/options.js?\n}");
27
27
 
28
28
  /***/ }
29
29
 
package/esm/index.js CHANGED
@@ -1,15 +1,16 @@
1
- export function loadConfettiPreset(engine) {
2
- engine.register(async (e) => {
3
- const { loadBasic } = await import("@tsparticles/basic"), { loadEmittersPlugin } = await import("@tsparticles/plugin-emitters"), { loadMotionPlugin } = await import("@tsparticles/plugin-motion"), { loadRotateUpdater } = await import("@tsparticles/updater-rotate"), { loadSquareShape } = await import("@tsparticles/shape-square"), { loadTiltUpdater } = await import("@tsparticles/updater-tilt"), { loadWobbleUpdater } = await import("@tsparticles/updater-wobble"), { loadLifeUpdater } = await import("@tsparticles/updater-life"), { loadRollUpdater } = await import("@tsparticles/updater-roll"), { options, presetName } = await import("./options.js");
4
- loadBasic(e);
5
- loadSquareShape(e);
6
- loadEmittersPlugin(e);
7
- loadMotionPlugin(e);
8
- loadWobbleUpdater(e);
9
- loadRollUpdater(e);
10
- loadRotateUpdater(e);
11
- loadTiltUpdater(e);
12
- loadLifeUpdater(e);
1
+ const presetName = "confetti";
2
+ export async function loadConfettiPreset(engine) {
3
+ await engine.register(async (e) => {
4
+ const { loadBasic } = await import("@tsparticles/basic"), { loadEmittersPlugin } = await import("@tsparticles/plugin-emitters"), { loadMotionPlugin } = await import("@tsparticles/plugin-motion"), { loadRotateUpdater } = await import("@tsparticles/updater-rotate"), { loadSquareShape } = await import("@tsparticles/shape-square"), { loadTiltUpdater } = await import("@tsparticles/updater-tilt"), { loadWobbleUpdater } = await import("@tsparticles/updater-wobble"), { loadLifeUpdater } = await import("@tsparticles/updater-life"), { loadRollUpdater } = await import("@tsparticles/updater-roll"), { options } = await import("./options.js");
5
+ await loadBasic(e);
6
+ await loadSquareShape(e);
7
+ await loadEmittersPlugin(e);
8
+ await loadMotionPlugin(e);
9
+ await loadWobbleUpdater(e);
10
+ await loadRollUpdater(e);
11
+ await loadRotateUpdater(e);
12
+ await loadTiltUpdater(e);
13
+ await loadLifeUpdater(e);
13
14
  e.addPreset(presetName, options, false);
14
15
  });
15
16
  }
package/esm/options.js CHANGED
@@ -1,5 +1,4 @@
1
1
  const lifeDurationNum = 10, lifeDurationFactor = 3, lifeDuration = lifeDurationNum / lifeDurationFactor;
2
- export const presetName = "confetti";
3
2
  export const options = {
4
3
  fullScreen: {
5
4
  enable: true,
@@ -0,0 +1,30 @@
1
+ /*!
2
+ * Author : Matteo Bruni
3
+ * MIT license: https://opensource.org/licenses/MIT
4
+ * Demo / Generator : https://particles.js.org/
5
+ * GitHub : https://www.github.com/matteobruni/tsparticles
6
+ * How to use? : Check the GitHub README
7
+ * v4.0.0-alpha.2
8
+ */
9
+ "use strict";
10
+ /*
11
+ * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
+ * This devtool is neither made for production nor for readable output files.
13
+ * It uses "eval()" calls to create a separate source file in the browser devtools.
14
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
+ * or disable the default devtool with "devtool: false".
16
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
+ */
18
+ (this["webpackChunk_tsparticles_preset_confetti"] = this["webpackChunk_tsparticles_preset_confetti"] || []).push([["node_modules_pnpm_tsparticles_basic_4_0_0-alpha_5_node_modules_tsparticles_basic_browser_index_js"],{
19
+
20
+ /***/ "../../node_modules/.pnpm/@tsparticles+basic@4.0.0-alpha.5/node_modules/@tsparticles/basic/browser/index.js"
21
+ /*!******************************************************************************************************************!*\
22
+ !*** ../../node_modules/.pnpm/@tsparticles+basic@4.0.0-alpha.5/node_modules/@tsparticles/basic/browser/index.js ***!
23
+ \******************************************************************************************************************/
24
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
+
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadBasic: () => (/* binding */ loadBasic)\n/* harmony export */ });\nasync function loadBasic(engine) {\n engine.checkVersion(\"4.0.0-alpha.5\");\n await engine.register(async (e) => {\n const { loadHexColorPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--7ee633\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-hex-color */ \"../../node_modules/.pnpm/@tsparticles+plugin-hex-color@4.0.0-alpha.5/node_modules/@tsparticles/plugin-hex-color/browser/index.js\")), { loadHslColorPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--d17710\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-hsl-color */ \"../../node_modules/.pnpm/@tsparticles+plugin-hsl-color@4.0.0-alpha.5/node_modules/@tsparticles/plugin-hsl-color/browser/index.js\")), { loadRgbColorPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--8050b3\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-rgb-color */ \"../../node_modules/.pnpm/@tsparticles+plugin-rgb-color@4.0.0-alpha.5/node_modules/@tsparticles/plugin-rgb-color/browser/index.js\")), { loadBaseMover } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-29272f\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/move-base */ \"../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/index.js\")), { loadCircleShape } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_5_node_modules_tsparticles_shape-circl-d95142\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/shape-circle */ \"../../node_modules/.pnpm/@tsparticles+shape-circle@4.0.0-alpha.5/node_modules/@tsparticles/shape-circle/browser/index.js\")), { loadColorUpdater } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_5_node_modules_tsparticles_updater-co-9b6d65\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-color */ \"../../node_modules/.pnpm/@tsparticles+updater-color@4.0.0-alpha.5/node_modules/@tsparticles/updater-color/browser/index.js\")), { loadOpacityUpdater } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_5_node_modules_tsparticles_updater--35fbab\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-opacity */ \"../../node_modules/.pnpm/@tsparticles+updater-opacity@4.0.0-alpha.5/node_modules/@tsparticles/updater-opacity/browser/index.js\")), { loadOutModesUpdater } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_5_node_modules_tsparticles_update-04964a\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-out-modes */ \"../../node_modules/.pnpm/@tsparticles+updater-out-modes@4.0.0-alpha.5/node_modules/@tsparticles/updater-out-modes/browser/index.js\")), { loadSizeUpdater } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_5_node_modules_tsparticles_updater-siz-7c3e56\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-size */ \"../../node_modules/.pnpm/@tsparticles+updater-size@4.0.0-alpha.5/node_modules/@tsparticles/updater-size/browser/index.js\"));\n await loadHexColorPlugin(e);\n await loadHslColorPlugin(e);\n await loadRgbColorPlugin(e);\n await loadBaseMover(e);\n await loadCircleShape(e);\n await loadColorUpdater(e);\n await loadOpacityUpdater(e);\n await loadOutModesUpdater(e);\n await loadSizeUpdater(e);\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+basic@4.0.0-alpha.5/node_modules/@tsparticles/basic/browser/index.js?\n}");
27
+
28
+ /***/ }
29
+
30
+ }]);
@@ -0,0 +1,40 @@
1
+ /*!
2
+ * Author : Matteo Bruni
3
+ * MIT license: https://opensource.org/licenses/MIT
4
+ * Demo / Generator : https://particles.js.org/
5
+ * GitHub : https://www.github.com/matteobruni/tsparticles
6
+ * How to use? : Check the GitHub README
7
+ * v4.0.0-alpha.2
8
+ */
9
+ "use strict";
10
+ /*
11
+ * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
+ * This devtool is neither made for production nor for readable output files.
13
+ * It uses "eval()" calls to create a separate source file in the browser devtools.
14
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
+ * or disable the default devtool with "devtool: false".
16
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
+ */
18
+ (this["webpackChunk_tsparticles_preset_confetti"] = this["webpackChunk_tsparticles_preset_confetti"] || []).push([["node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-26eaee"],{
19
+
20
+ /***/ "../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/BaseMover.js"
21
+ /*!******************************************************************************************************************************!*\
22
+ !*** ../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/BaseMover.js ***!
23
+ \******************************************************************************************************************************/
24
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
+
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ BaseMover: () => (/* binding */ BaseMover)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-alpha.5/node_modules/@tsparticles/engine/browser/index.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utils.js */ \"../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/Utils.js\");\n\n\nconst diffFactor = 2, defaultSizeFactor = 1, defaultDeltaFactor = 1;\nclass BaseMover {\n init(particle) {\n const options = particle.options, gravityOptions = options.move.gravity;\n particle.gravity = {\n enable: gravityOptions.enable,\n acceleration: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(gravityOptions.acceleration),\n inverse: gravityOptions.inverse,\n };\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.initSpin)(particle);\n }\n isEnabled(particle) {\n return !particle.destroyed && particle.options.move.enable;\n }\n move(particle, delta) {\n const particleOptions = particle.options, moveOptions = particleOptions.move;\n if (!moveOptions.enable) {\n return;\n }\n const container = particle.container, pxRatio = container.retina.pixelRatio;\n particle.retina.moveSpeed ??= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(moveOptions.speed) * pxRatio;\n particle.retina.moveDrift ??= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(particle.options.move.drift) * pxRatio;\n const slowFactor = (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.getProximitySpeedFactor)(particle), reduceFactor = container.retina.reduceFactor, baseSpeed = particle.retina.moveSpeed, moveDrift = particle.retina.moveDrift, maxSize = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(particleOptions.size.value) * pxRatio, sizeFactor = moveOptions.size ? particle.getRadius() / maxSize : defaultSizeFactor, deltaFactor = delta.factor || defaultDeltaFactor, moveSpeed = (baseSpeed * sizeFactor * slowFactor * deltaFactor) / diffFactor, maxSpeed = particle.retina.maxSpeed ?? container.retina.maxSpeed;\n if (moveOptions.spin.enable) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.spin)(particle, moveSpeed, reduceFactor);\n }\n else {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.move)(particle, moveOptions, moveSpeed, maxSpeed, moveDrift, reduceFactor, delta);\n }\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.applyDistance)(particle);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/BaseMover.js?\n}");
27
+
28
+ /***/ },
29
+
30
+ /***/ "../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/Utils.js"
31
+ /*!**************************************************************************************************************************!*\
32
+ !*** ../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/Utils.js ***!
33
+ \**************************************************************************************************************************/
34
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
35
+
36
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ applyDistance: () => (/* binding */ applyDistance),\n/* harmony export */ applyPath: () => (/* binding */ applyPath),\n/* harmony export */ getProximitySpeedFactor: () => (/* binding */ getProximitySpeedFactor),\n/* harmony export */ initSpin: () => (/* binding */ initSpin),\n/* harmony export */ move: () => (/* binding */ move),\n/* harmony export */ spin: () => (/* binding */ spin)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-alpha.5/node_modules/@tsparticles/engine/browser/index.js\");\n\nconst minVelocity = 0, identity = 1, moveSpeedFactor = 60, minSpinRadius = 0, spinFactor = 0.01;\nfunction applyDistance(particle) {\n const initialPosition = particle.initialPosition, { dx, dy } = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistances)(initialPosition, particle.position), dxFixed = Math.abs(dx), dyFixed = Math.abs(dy), { maxDistance } = particle.retina, hDistance = maxDistance.horizontal, vDistance = maxDistance.vertical;\n if (!hDistance && !vDistance) {\n return;\n }\n const hasHDistance = (hDistance && dxFixed >= hDistance) ?? false, hasVDistance = (vDistance && dyFixed >= vDistance) ?? false;\n if ((hasHDistance || hasVDistance) && !particle.misplaced) {\n particle.misplaced = (!!hDistance && dxFixed > hDistance) || (!!vDistance && dyFixed > vDistance);\n if (hDistance) {\n particle.velocity.x = particle.velocity.y * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half - particle.velocity.x;\n }\n if (vDistance) {\n particle.velocity.y = particle.velocity.x * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half - particle.velocity.y;\n }\n }\n else if ((!hDistance || dxFixed < hDistance) && (!vDistance || dyFixed < vDistance) && particle.misplaced) {\n particle.misplaced = false;\n }\n else if (particle.misplaced) {\n const pos = particle.position, vel = particle.velocity;\n if (hDistance &&\n ((pos.x < initialPosition.x && vel.x < minVelocity) || (pos.x > initialPosition.x && vel.x > minVelocity))) {\n vel.x *= -(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n if (vDistance &&\n ((pos.y < initialPosition.y && vel.y < minVelocity) || (pos.y > initialPosition.y && vel.y > minVelocity))) {\n vel.y *= -(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n}\nfunction move(particle, moveOptions, moveSpeed, maxSpeed, moveDrift, reduceFactor, delta) {\n applyPath(particle, delta);\n const gravityOptions = particle.gravity, gravityFactor = gravityOptions?.enable && gravityOptions.inverse ? -identity : identity;\n if (moveDrift && moveSpeed) {\n particle.velocity.x += (moveDrift * delta.factor) / (moveSpeedFactor * moveSpeed);\n }\n if (gravityOptions?.enable && moveSpeed) {\n particle.velocity.y +=\n (gravityFactor * (gravityOptions.acceleration * delta.factor)) / (moveSpeedFactor * moveSpeed);\n }\n const decay = particle.moveDecay;\n particle.velocity.multTo(decay);\n const velocity = particle.velocity.mult(moveSpeed);\n if (gravityOptions?.enable &&\n maxSpeed > minVelocity &&\n ((!gravityOptions.inverse && velocity.y >= minVelocity && velocity.y >= maxSpeed) ||\n (gravityOptions.inverse && velocity.y <= minVelocity && velocity.y <= -maxSpeed))) {\n velocity.y = gravityFactor * maxSpeed;\n if (moveSpeed) {\n particle.velocity.y = velocity.y / moveSpeed;\n }\n }\n const zIndexOptions = particle.options.zIndex, zVelocityFactor = (identity - particle.zIndexFactor) ** zIndexOptions.velocityRate;\n velocity.multTo(zVelocityFactor);\n velocity.multTo(reduceFactor);\n const { position } = particle;\n position.addTo(velocity);\n if (moveOptions.vibrate) {\n position.x += Math.sin(position.x * Math.cos(position.y)) * reduceFactor;\n position.y += Math.cos(position.y * Math.sin(position.x)) * reduceFactor;\n }\n}\nfunction spin(particle, moveSpeed, reduceFactor) {\n const container = particle.container;\n if (!particle.spin) {\n return;\n }\n const spinClockwise = particle.spin.direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.clockwise, updateFunc = {\n x: spinClockwise ? Math.cos : Math.sin,\n y: spinClockwise ? Math.sin : Math.cos,\n };\n particle.position.x =\n particle.spin.center.x + particle.spin.radius * updateFunc.x(particle.spin.angle) * reduceFactor;\n particle.position.y =\n particle.spin.center.y + particle.spin.radius * updateFunc.y(particle.spin.angle) * reduceFactor;\n particle.spin.radius += particle.spin.acceleration * reduceFactor;\n const maxCanvasSize = Math.max(container.canvas.size.width, container.canvas.size.height), halfMaxSize = maxCanvasSize * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half;\n if (particle.spin.radius > halfMaxSize) {\n particle.spin.radius = halfMaxSize;\n particle.spin.acceleration *= -identity;\n }\n else if (particle.spin.radius < minSpinRadius) {\n particle.spin.radius = minSpinRadius;\n particle.spin.acceleration *= -identity;\n }\n particle.spin.angle += moveSpeed * spinFactor * (identity - particle.spin.radius / maxCanvasSize);\n}\nfunction applyPath(particle, delta) {\n const particlesOptions = particle.options, pathOptions = particlesOptions.move.path, pathEnabled = pathOptions.enable;\n if (!pathEnabled) {\n return;\n }\n if (particle.lastPathTime <= particle.pathDelay) {\n particle.lastPathTime += delta.value;\n return;\n }\n const path = particle.pathGenerator?.generate(particle, delta);\n if (path) {\n particle.velocity.addTo(path);\n }\n if (pathOptions.clamp) {\n particle.velocity.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.clamp)(particle.velocity.x, -identity, identity);\n particle.velocity.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.clamp)(particle.velocity.y, -identity, identity);\n }\n particle.lastPathTime -= particle.pathDelay;\n}\nfunction getProximitySpeedFactor(particle) {\n return particle.slow.inRange ? particle.slow.factor : identity;\n}\nfunction initSpin(particle) {\n const container = particle.container, options = particle.options, spinOptions = options.move.spin;\n if (!spinOptions.enable) {\n return;\n }\n const spinPos = spinOptions.position ?? { x: 50, y: 50 }, spinFactor = 0.01, spinCenter = {\n x: spinPos.x * spinFactor * container.canvas.size.width,\n y: spinPos.y * spinFactor * container.canvas.size.height,\n }, pos = particle.getPosition(), distance = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistance)(pos, spinCenter), spinAcceleration = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(spinOptions.acceleration);\n particle.retina.spinAcceleration = spinAcceleration * container.retina.pixelRatio;\n particle.spin = {\n center: spinCenter,\n direction: particle.velocity.x >= minVelocity ? _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.clockwise : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.counterClockwise,\n angle: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.doublePI,\n radius: distance,\n acceleration: particle.retina.spinAcceleration,\n };\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/Utils.js?\n}");
37
+
38
+ /***/ }
39
+
40
+ }]);
@@ -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-alpha.0
7
+ * v4.0.0-alpha.2
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -15,15 +15,15 @@
15
15
  * or disable the default devtool with "devtool: false".
16
16
  * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
17
  */
18
- (this["webpackChunk_tsparticles_preset_confetti"] = this["webpackChunk_tsparticles_preset_confetti"] || []).push([["node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-fb148a"],{
18
+ (this["webpackChunk_tsparticles_preset_confetti"] = this["webpackChunk_tsparticles_preset_confetti"] || []).push([["node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-29272f"],{
19
19
 
20
- /***/ "../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.2/node_modules/@tsparticles/move-base/browser/index.js"
20
+ /***/ "../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/index.js"
21
21
  /*!**************************************************************************************************************************!*\
22
- !*** ../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.2/node_modules/@tsparticles/move-base/browser/index.js ***!
22
+ !*** ../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/index.js ***!
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 */ loadBaseMover: () => (/* binding */ loadBaseMover)\n/* harmony export */ });\nfunction loadBaseMover(engine) {\n engine.checkVersion(\"4.0.0-alpha.2\");\n engine.register(e => {\n e.addMover(\"base\", async () => {\n const { BaseMover } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-7d79eb\").then(__webpack_require__.bind(__webpack_require__, /*! ./BaseMover.js */ \"../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.2/node_modules/@tsparticles/move-base/browser/BaseMover.js\"));\n return new BaseMover();\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.2/node_modules/@tsparticles/move-base/browser/index.js?\n}");
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadBaseMover: () => (/* binding */ loadBaseMover)\n/* harmony export */ });\nasync function loadBaseMover(engine) {\n engine.checkVersion(\"4.0.0-alpha.5\");\n await engine.register(e => {\n e.addMover(\"base\", async () => {\n const { BaseMover } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-26eaee\").then(__webpack_require__.bind(__webpack_require__, /*! ./BaseMover.js */ \"../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/BaseMover.js\"));\n return new BaseMover();\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.5/node_modules/@tsparticles/move-base/browser/index.js?\n}");
27
27
 
28
28
  /***/ }
29
29
 
@@ -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-alpha.0
7
+ * v4.0.0-alpha.2
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -15,35 +15,35 @@
15
15
  * or disable the default devtool with "devtool: false".
16
16
  * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
17
  */
18
- (this["webpackChunk_tsparticles_preset_confetti"] = this["webpackChunk_tsparticles_preset_confetti"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_plugin-e-6bd6f8"],{
18
+ (this["webpackChunk_tsparticles_preset_confetti"] = this["webpackChunk_tsparticles_preset_confetti"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-051d5b"],{
19
19
 
20
- /***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js"
20
+ /***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js"
21
21
  /*!*************************************************************************************************************************************************!*\
22
- !*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js ***!
22
+ !*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js ***!
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 */ EmitterShapeBase: () => (/* binding */ EmitterShapeBase)\n/* harmony export */ });\nclass EmitterShapeBase {\n constructor(position, size, fill, options) {\n this.position = position;\n this.size = size;\n this.fill = fill;\n this.options = options;\n }\n resize(position, size) {\n this.position = position;\n this.size = size;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js?\n}");
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterShapeBase: () => (/* binding */ EmitterShapeBase)\n/* harmony export */ });\nclass EmitterShapeBase {\n constructor(position, size, fill, options) {\n this.position = position;\n this.size = size;\n this.fill = fill;\n this.options = options;\n }\n resize(position, size) {\n this.position = position;\n this.size = size;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js?\n}");
27
27
 
28
28
  /***/ },
29
29
 
30
- /***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js"
30
+ /***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js"
31
31
  /*!*******************************************************************************************************************************************************!*\
32
- !*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js ***!
32
+ !*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js ***!
33
33
  \*******************************************************************************************************************************************************/
34
34
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
35
35
 
36
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* binding */ EmitterClickMode)\n/* harmony export */ });\nvar EmitterClickMode;\n(function (EmitterClickMode) {\n EmitterClickMode[\"emitter\"] = \"emitter\";\n})(EmitterClickMode || (EmitterClickMode = {}));\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js?\n}");
36
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* binding */ EmitterClickMode)\n/* harmony export */ });\nvar EmitterClickMode;\n(function (EmitterClickMode) {\n EmitterClickMode[\"emitter\"] = \"emitter\";\n})(EmitterClickMode || (EmitterClickMode = {}));\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js?\n}");
37
37
 
38
38
  /***/ },
39
39
 
40
- /***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/index.js"
40
+ /***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/index.js"
41
41
  /*!**************************************************************************************************************************************!*\
42
- !*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/index.js ***!
42
+ !*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/index.js ***!
43
43
  \**************************************************************************************************************************************/
44
44
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
45
45
 
46
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* reexport safe */ _Enums_EmitterClickMode_js__WEBPACK_IMPORTED_MODULE_1__.EmitterClickMode),\n/* harmony export */ EmitterShapeBase: () => (/* reexport safe */ _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__.EmitterShapeBase),\n/* harmony export */ loadEmittersPlugin: () => (/* binding */ loadEmittersPlugin)\n/* harmony export */ });\n/* harmony import */ var _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EmitterShapeBase.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js\");\n/* harmony import */ var _Enums_EmitterClickMode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Enums/EmitterClickMode.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js\");\nfunction loadEmittersPlugin(engine) {\n engine.checkVersion(\"4.0.0-alpha.2\");\n engine.register(async (e) => {\n const { ShapeManager } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_plugin-e-122a51\").then(__webpack_require__.bind(__webpack_require__, /*! ./ShapeManager.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js\")), { EmittersPlugin } = await __webpack_require__.e(/*! import() */ \"vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_-1e60b5\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersPlugin.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/EmittersPlugin.js\"));\n e.emitterShapeManager ??= new ShapeManager();\n e.addEmitterShapeGenerator ??= (name, generator) => {\n e.emitterShapeManager?.addShapeGenerator(name, generator);\n };\n const plugin = new EmittersPlugin(e);\n e.addPlugin(plugin);\n });\n}\n\n\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/index.js?\n}");
46
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* reexport safe */ _Enums_EmitterClickMode_js__WEBPACK_IMPORTED_MODULE_1__.EmitterClickMode),\n/* harmony export */ EmitterShapeBase: () => (/* reexport safe */ _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__.EmitterShapeBase),\n/* harmony export */ loadEmittersPlugin: () => (/* binding */ loadEmittersPlugin)\n/* harmony export */ });\n/* harmony import */ var _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EmitterShapeBase.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js\");\n/* harmony import */ var _Enums_EmitterClickMode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Enums/EmitterClickMode.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js\");\nasync function loadEmittersPlugin(engine) {\n engine.checkVersion(\"4.0.0-alpha.5\");\n await engine.register(async (e) => {\n const { loadInteractivityPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_5_node_modules_tsparticles_plu-4ef54e\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-interactivity */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-alpha.5/node_modules/@tsparticles/plugin-interactivity/browser/index.js\")), { ShapeManager } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-50442a\").then(__webpack_require__.bind(__webpack_require__, /*! ./ShapeManager.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js\")), { EmittersInstancesManager } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-9414b7\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersInstancesManager.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmittersInstancesManager.js\")), { EmittersPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-b376d4\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersPlugin.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmittersPlugin.js\")), instancesManager = new EmittersInstancesManager(e);\n await loadInteractivityPlugin(e);\n e.emitterShapeManager ??= new ShapeManager();\n e.addEmitterShapeGenerator ??= (name, generator) => {\n e.emitterShapeManager?.addShapeGenerator(name, generator);\n };\n e.addPlugin(new EmittersPlugin(instancesManager));\n e.addInteractor?.(\"externalEmitters\", async (container) => {\n const { EmittersInteractor } = await __webpack_require__.e(/*! import() */ \"vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_-302925\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersInteractor.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/EmittersInteractor.js\"));\n return new EmittersInteractor(instancesManager, container);\n });\n });\n}\n\n\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/index.js?\n}");
47
47
 
48
48
  /***/ }
49
49
 
@@ -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-alpha.0
7
+ * v4.0.0-alpha.2
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -15,15 +15,15 @@
15
15
  * or disable the default devtool with "devtool: false".
16
16
  * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
17
  */
18
- (this["webpackChunk_tsparticles_preset_confetti"] = this["webpackChunk_tsparticles_preset_confetti"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_plugin-e-122a51"],{
18
+ (this["webpackChunk_tsparticles_preset_confetti"] = this["webpackChunk_tsparticles_preset_confetti"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-50442a"],{
19
19
 
20
- /***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js"
20
+ /***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js"
21
21
  /*!*********************************************************************************************************************************************!*\
22
- !*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js ***!
22
+ !*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js ***!
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 */ ShapeManager: () => (/* binding */ ShapeManager)\n/* harmony export */ });\nconst shapeGeneratorss = new Map();\nclass ShapeManager {\n addShapeGenerator(name, generator) {\n if (!this.getShapeGenerator(name)) {\n shapeGeneratorss.set(name, generator);\n }\n }\n getShapeGenerator(name) {\n return shapeGeneratorss.get(name);\n }\n getSupportedShapeGenerators() {\n return shapeGeneratorss.keys();\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.2/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js?\n}");
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ShapeManager: () => (/* binding */ ShapeManager)\n/* harmony export */ });\nconst shapeGenerators = new Map();\nclass ShapeManager {\n addShapeGenerator(name, generator) {\n if (!this.getShapeGenerator(name)) {\n shapeGenerators.set(name, generator);\n }\n }\n getShapeGenerator(name) {\n return shapeGenerators.get(name);\n }\n getSupportedShapeGenerators() {\n return shapeGenerators.keys();\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.5/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js?\n}");
27
27
 
28
28
  /***/ }
29
29