@tsparticles/preset-confetti-falling 4.0.0-beta.12 → 4.0.0-beta.16

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 (94) hide show
  1. package/browser/browser.js +5 -0
  2. package/browser/bundle.js +4 -0
  3. package/browser/index.js +9 -11
  4. package/browser/index.lazy.js +29 -0
  5. package/cjs/browser.js +5 -0
  6. package/cjs/bundle.js +4 -0
  7. package/cjs/index.js +9 -11
  8. package/cjs/index.lazy.js +29 -0
  9. package/esm/browser.js +5 -0
  10. package/esm/bundle.js +4 -0
  11. package/esm/index.js +9 -11
  12. package/esm/index.lazy.js +29 -0
  13. package/package.json +17 -10
  14. package/report.html +4949 -94
  15. package/tsparticles.preset.confettiFalling.bundle.js +6601 -967
  16. package/tsparticles.preset.confettiFalling.bundle.min.js +1 -2
  17. package/tsparticles.preset.confettiFalling.js +124 -417
  18. package/tsparticles.preset.confettiFalling.min.js +1 -2
  19. package/types/browser.d.ts +1 -0
  20. package/types/index.lazy.d.ts +2 -0
  21. package/127.min.js +0 -1
  22. package/155.min.js +0 -1
  23. package/181.min.js +0 -1
  24. package/210.min.js +0 -1
  25. package/320.min.js +0 -1
  26. package/347.min.js +0 -1
  27. package/349.min.js +0 -1
  28. package/371.min.js +0 -1
  29. package/4.min.js +0 -1
  30. package/415.min.js +0 -1
  31. package/420.min.js +0 -1
  32. package/425.min.js +0 -1
  33. package/439.min.js +0 -1
  34. package/483.min.js +0 -1
  35. package/5.min.js +0 -1
  36. package/515.min.js +0 -1
  37. package/573.min.js +0 -1
  38. package/623.min.js +0 -1
  39. package/646.min.js +0 -1
  40. package/653.min.js +0 -1
  41. package/662.min.js +0 -1
  42. package/663.min.js +0 -1
  43. package/69.min.js +0 -1
  44. package/748.min.js +0 -1
  45. package/791.min.js +0 -1
  46. package/794.min.js +0 -1
  47. package/807.min.js +0 -1
  48. package/819.min.js +0 -1
  49. package/835.min.js +0 -1
  50. package/837.min.js +0 -1
  51. package/93.min.js +0 -1
  52. package/935.min.js +0 -1
  53. package/938.min.js +0 -1
  54. package/94.min.js +0 -1
  55. package/968.min.js +0 -1
  56. package/979.min.js +0 -1
  57. package/987.min.js +0 -1
  58. package/bundles_basic_dist_browser_index_js.js +0 -30
  59. package/dist_browser_options_js.js +0 -30
  60. package/engine_dist_browser_Core_Container_js.js +0 -100
  61. package/palettes_confetti_confetti_dist_browser_index_js.js +0 -30
  62. package/palettes_confetti_confetti_dist_browser_options_js.js +0 -30
  63. package/plugins_colors_hex_dist_browser_HexColorManager_js.js +0 -30
  64. package/plugins_colors_hex_dist_browser_index_js.js +0 -30
  65. package/plugins_colors_hsl_dist_browser_HslColorManager_js.js +0 -30
  66. package/plugins_colors_hsl_dist_browser_index_js.js +0 -30
  67. package/plugins_colors_rgb_dist_browser_RgbColorManager_js.js +0 -30
  68. package/plugins_colors_rgb_dist_browser_index_js.js +0 -30
  69. package/plugins_motion_dist_browser_MotionPluginInstance_js.js +0 -30
  70. package/plugins_motion_dist_browser_MotionPlugin_js.js +0 -50
  71. package/plugins_motion_dist_browser_index_js.js +0 -30
  72. package/plugins_move_dist_browser_MovePluginInstance_js.js +0 -40
  73. package/plugins_move_dist_browser_MovePlugin_js.js +0 -30
  74. package/plugins_move_dist_browser_index_js.js +0 -30
  75. package/shapes_circle_dist_browser_CircleDrawer_js.js +0 -40
  76. package/shapes_circle_dist_browser_index_js.js +0 -30
  77. package/shapes_square_dist_browser_SquareDrawer_js.js +0 -40
  78. package/shapes_square_dist_browser_index_js.js +0 -30
  79. package/updaters_opacity_dist_browser_OpacityUpdater_js.js +0 -30
  80. package/updaters_opacity_dist_browser_index_js.js +0 -30
  81. package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +0 -80
  82. package/updaters_outModes_dist_browser_index_js.js +0 -30
  83. package/updaters_paint_dist_browser_PaintUpdater_js.js +0 -30
  84. package/updaters_paint_dist_browser_index_js.js +0 -30
  85. package/updaters_roll_dist_browser_RollUpdater_js.js +0 -70
  86. package/updaters_roll_dist_browser_index_js.js +0 -30
  87. package/updaters_rotate_dist_browser_RotateUpdater_js.js +0 -50
  88. package/updaters_rotate_dist_browser_index_js.js +0 -30
  89. package/updaters_size_dist_browser_SizeUpdater_js.js +0 -30
  90. package/updaters_size_dist_browser_index_js.js +0 -30
  91. package/updaters_tilt_dist_browser_TiltUpdater_js.js +0 -60
  92. package/updaters_tilt_dist_browser_index_js.js +0 -30
  93. package/updaters_wobble_dist_browser_WobbleUpdater_js.js +0 -60
  94. package/updaters_wobble_dist_browser_index_js.js +0 -30
@@ -1,417 +1,124 @@
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-beta.12
8
- */
9
- /*
10
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
11
- * This devtool is neither made for production nor for readable output files.
12
- * It uses "eval()" calls to create a separate source file in the browser devtools.
13
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
14
- * or disable the default devtool with "devtool: false".
15
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
16
- */
17
- (function webpackUniversalModuleDefinition(root, factory) {
18
- if(typeof exports === 'object' && typeof module === 'object')
19
- module.exports = factory(require("@tsparticles/palette-confetti"), require("@tsparticles/updater-roll"), require("@tsparticles/updater-wobble"), require("@tsparticles/updater-tilt"), require("@tsparticles/shape-square"), require("@tsparticles/updater-rotate"), require("@tsparticles/plugin-motion"), require("@tsparticles/basic"));
20
- else if(typeof define === 'function' && define.amd)
21
- define(["@tsparticles/palette-confetti", "@tsparticles/updater-roll", "@tsparticles/updater-wobble", "@tsparticles/updater-tilt", "@tsparticles/shape-square", "@tsparticles/updater-rotate", "@tsparticles/plugin-motion", "@tsparticles/basic"], factory);
22
- else {
23
- var a = typeof exports === 'object' ? factory(require("@tsparticles/palette-confetti"), require("@tsparticles/updater-roll"), require("@tsparticles/updater-wobble"), require("@tsparticles/updater-tilt"), require("@tsparticles/shape-square"), require("@tsparticles/updater-rotate"), require("@tsparticles/plugin-motion"), require("@tsparticles/basic")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]);
24
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
25
- }
26
- })(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_palette_confetti__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_roll__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_wobble__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_tilt__, __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_square__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_motion__, __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__) => {
27
- return /******/ (() => { // webpackBootstrap
28
- /******/ "use strict";
29
- /******/ var __webpack_modules__ = ({
30
-
31
- /***/ "@tsparticles/basic"
32
- /*!******************************************************************************************************************************!*\
33
- !*** external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"} ***!
34
- \******************************************************************************************************************************/
35
- (module) {
36
-
37
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__;
38
-
39
- /***/ },
40
-
41
- /***/ "@tsparticles/palette-confetti"
42
- /*!***************************************************************************************************************************************************************!*\
43
- !*** external {"commonjs":"@tsparticles/palette-confetti","commonjs2":"@tsparticles/palette-confetti","amd":"@tsparticles/palette-confetti","root":"window"} ***!
44
- \***************************************************************************************************************************************************************/
45
- (module) {
46
-
47
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_palette_confetti__;
48
-
49
- /***/ },
50
-
51
- /***/ "@tsparticles/plugin-motion"
52
- /*!******************************************************************************************************************************************************!*\
53
- !*** external {"commonjs":"@tsparticles/plugin-motion","commonjs2":"@tsparticles/plugin-motion","amd":"@tsparticles/plugin-motion","root":"window"} ***!
54
- \******************************************************************************************************************************************************/
55
- (module) {
56
-
57
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_motion__;
58
-
59
- /***/ },
60
-
61
- /***/ "@tsparticles/shape-square"
62
- /*!***************************************************************************************************************************************************!*\
63
- !*** external {"commonjs":"@tsparticles/shape-square","commonjs2":"@tsparticles/shape-square","amd":"@tsparticles/shape-square","root":"window"} ***!
64
- \***************************************************************************************************************************************************/
65
- (module) {
66
-
67
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_square__;
68
-
69
- /***/ },
70
-
71
- /***/ "@tsparticles/updater-roll"
72
- /*!***************************************************************************************************************************************************!*\
73
- !*** external {"commonjs":"@tsparticles/updater-roll","commonjs2":"@tsparticles/updater-roll","amd":"@tsparticles/updater-roll","root":"window"} ***!
74
- \***************************************************************************************************************************************************/
75
- (module) {
76
-
77
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_roll__;
78
-
79
- /***/ },
80
-
81
- /***/ "@tsparticles/updater-rotate"
82
- /*!*********************************************************************************************************************************************************!*\
83
- !*** external {"commonjs":"@tsparticles/updater-rotate","commonjs2":"@tsparticles/updater-rotate","amd":"@tsparticles/updater-rotate","root":"window"} ***!
84
- \*********************************************************************************************************************************************************/
85
- (module) {
86
-
87
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__;
88
-
89
- /***/ },
90
-
91
- /***/ "@tsparticles/updater-tilt"
92
- /*!***************************************************************************************************************************************************!*\
93
- !*** external {"commonjs":"@tsparticles/updater-tilt","commonjs2":"@tsparticles/updater-tilt","amd":"@tsparticles/updater-tilt","root":"window"} ***!
94
- \***************************************************************************************************************************************************/
95
- (module) {
96
-
97
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_tilt__;
98
-
99
- /***/ },
100
-
101
- /***/ "@tsparticles/updater-wobble"
102
- /*!*********************************************************************************************************************************************************!*\
103
- !*** external {"commonjs":"@tsparticles/updater-wobble","commonjs2":"@tsparticles/updater-wobble","amd":"@tsparticles/updater-wobble","root":"window"} ***!
104
- \*********************************************************************************************************************************************************/
105
- (module) {
106
-
107
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_wobble__;
108
-
109
- /***/ },
110
-
111
- /***/ "./dist/browser/index.js"
112
- /*!*******************************!*\
113
- !*** ./dist/browser/index.js ***!
114
- \*******************************/
115
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
116
-
117
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadConfettiFallingPreset: () => (/* binding */ loadConfettiFallingPreset)\n/* harmony export */ });\nconst presetNames = [\n \"confettiFalling\",\n \"confetti-falling\"\n];\nasync function loadConfettiFallingPreset(engine) {\n await engine.pluginManager.register(async (e)=>{\n const [{ loadBasic }, { loadMotionPlugin }, { loadRotateUpdater }, { loadSquareShape }, { loadTiltUpdater }, { loadWobbleUpdater }, { loadRollUpdater }, { loadConfettiPalette }, { options }] = await Promise.all([\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/basic */ \"@tsparticles/basic\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-motion */ \"@tsparticles/plugin-motion\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-rotate */ \"@tsparticles/updater-rotate\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/shape-square */ \"@tsparticles/shape-square\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-tilt */ \"@tsparticles/updater-tilt\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-wobble */ \"@tsparticles/updater-wobble\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-roll */ \"@tsparticles/updater-roll\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/palette-confetti */ \"@tsparticles/palette-confetti\", 19)),\n __webpack_require__.e(/*! import() */ \"dist_browser_options_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./options.js */ \"./dist/browser/options.js\"))\n ]);\n await Promise.all([\n loadBasic(e),\n loadConfettiPalette(e),\n loadSquareShape(e),\n loadMotionPlugin(e),\n loadWobbleUpdater(e),\n loadRollUpdater(e),\n loadRotateUpdater(e),\n loadTiltUpdater(e)\n ]);\n presetNames.forEach((name)=>{\n e.pluginManager.addPreset(name, options, false);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-confetti-falling/./dist/browser/index.js?\n}");
118
-
119
- /***/ }
120
-
121
- /******/ });
122
- /************************************************************************/
123
- /******/ // The module cache
124
- /******/ var __webpack_module_cache__ = {};
125
- /******/
126
- /******/ // The require function
127
- /******/ function __webpack_require__(moduleId) {
128
- /******/ // Check if module is in cache
129
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
130
- /******/ if (cachedModule !== undefined) {
131
- /******/ return cachedModule.exports;
132
- /******/ }
133
- /******/ // Create a new module (and put it into the cache)
134
- /******/ var module = __webpack_module_cache__[moduleId] = {
135
- /******/ // no module.id needed
136
- /******/ // no module.loaded needed
137
- /******/ exports: {}
138
- /******/ };
139
- /******/
140
- /******/ // Execute the module function
141
- /******/ if (!(moduleId in __webpack_modules__)) {
142
- /******/ delete __webpack_module_cache__[moduleId];
143
- /******/ var e = new Error("Cannot find module '" + moduleId + "'");
144
- /******/ e.code = 'MODULE_NOT_FOUND';
145
- /******/ throw e;
146
- /******/ }
147
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
148
- /******/
149
- /******/ // Return the exports of the module
150
- /******/ return module.exports;
151
- /******/ }
152
- /******/
153
- /******/ // expose the modules object (__webpack_modules__)
154
- /******/ __webpack_require__.m = __webpack_modules__;
155
- /******/
156
- /************************************************************************/
157
- /******/ /* webpack/runtime/create fake namespace object */
158
- /******/ (() => {
159
- /******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
160
- /******/ var leafPrototypes;
161
- /******/ // create a fake namespace object
162
- /******/ // mode & 1: value is a module id, require it
163
- /******/ // mode & 2: merge all properties of value into the ns
164
- /******/ // mode & 4: return value when already ns object
165
- /******/ // mode & 16: return value when it's Promise-like
166
- /******/ // mode & 8|1: behave like require
167
- /******/ __webpack_require__.t = function(value, mode) {
168
- /******/ if(mode & 1) value = this(value);
169
- /******/ if(mode & 8) return value;
170
- /******/ if(typeof value === 'object' && value) {
171
- /******/ if((mode & 4) && value.__esModule) return value;
172
- /******/ if((mode & 16) && typeof value.then === 'function') return value;
173
- /******/ }
174
- /******/ var ns = Object.create(null);
175
- /******/ __webpack_require__.r(ns);
176
- /******/ var def = {};
177
- /******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
178
- /******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
179
- /******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
180
- /******/ }
181
- /******/ def['default'] = () => (value);
182
- /******/ __webpack_require__.d(ns, def);
183
- /******/ return ns;
184
- /******/ };
185
- /******/ })();
186
- /******/
187
- /******/ /* webpack/runtime/define property getters */
188
- /******/ (() => {
189
- /******/ // define getter functions for harmony exports
190
- /******/ __webpack_require__.d = (exports, definition) => {
191
- /******/ for(var key in definition) {
192
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
193
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
194
- /******/ }
195
- /******/ }
196
- /******/ };
197
- /******/ })();
198
- /******/
199
- /******/ /* webpack/runtime/ensure chunk */
200
- /******/ (() => {
201
- /******/ __webpack_require__.f = {};
202
- /******/ // This file contains only the entry chunk.
203
- /******/ // The chunk loading function for additional chunks
204
- /******/ __webpack_require__.e = (chunkId) => {
205
- /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
206
- /******/ __webpack_require__.f[key](chunkId, promises);
207
- /******/ return promises;
208
- /******/ }, []));
209
- /******/ };
210
- /******/ })();
211
- /******/
212
- /******/ /* webpack/runtime/get javascript chunk filename */
213
- /******/ (() => {
214
- /******/ // This function allow to reference async chunks
215
- /******/ __webpack_require__.u = (chunkId) => {
216
- /******/ // return url for filenames based on template
217
- /******/ return "" + chunkId + ".js";
218
- /******/ };
219
- /******/ })();
220
- /******/
221
- /******/ /* webpack/runtime/global */
222
- /******/ (() => {
223
- /******/ __webpack_require__.g = (function() {
224
- /******/ if (typeof globalThis === 'object') return globalThis;
225
- /******/ try {
226
- /******/ return this || new Function('return this')();
227
- /******/ } catch (e) {
228
- /******/ if (typeof window === 'object') return window;
229
- /******/ }
230
- /******/ })();
231
- /******/ })();
232
- /******/
233
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
234
- /******/ (() => {
235
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
236
- /******/ })();
237
- /******/
238
- /******/ /* webpack/runtime/load script */
239
- /******/ (() => {
240
- /******/ var inProgress = {};
241
- /******/ var dataWebpackPrefix = "@tsparticles/preset-confetti-falling:";
242
- /******/ // loadScript function to load a script via script tag
243
- /******/ __webpack_require__.l = (url, done, key, chunkId) => {
244
- /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
245
- /******/ var script, needAttach;
246
- /******/ if(key !== undefined) {
247
- /******/ var scripts = document.getElementsByTagName("script");
248
- /******/ for(var i = 0; i < scripts.length; i++) {
249
- /******/ var s = scripts[i];
250
- /******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
251
- /******/ }
252
- /******/ }
253
- /******/ if(!script) {
254
- /******/ needAttach = true;
255
- /******/ script = document.createElement('script');
256
- /******/
257
- /******/ script.charset = 'utf-8';
258
- /******/ if (__webpack_require__.nc) {
259
- /******/ script.setAttribute("nonce", __webpack_require__.nc);
260
- /******/ }
261
- /******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
262
- /******/
263
- /******/ script.src = url;
264
- /******/ }
265
- /******/ inProgress[url] = [done];
266
- /******/ var onScriptComplete = (prev, event) => {
267
- /******/ // avoid mem leaks in IE.
268
- /******/ script.onerror = script.onload = null;
269
- /******/ clearTimeout(timeout);
270
- /******/ var doneFns = inProgress[url];
271
- /******/ delete inProgress[url];
272
- /******/ script.parentNode && script.parentNode.removeChild(script);
273
- /******/ doneFns && doneFns.forEach((fn) => (fn(event)));
274
- /******/ if(prev) return prev(event);
275
- /******/ }
276
- /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
277
- /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
278
- /******/ script.onload = onScriptComplete.bind(null, script.onload);
279
- /******/ needAttach && document.head.appendChild(script);
280
- /******/ };
281
- /******/ })();
282
- /******/
283
- /******/ /* webpack/runtime/make namespace object */
284
- /******/ (() => {
285
- /******/ // define __esModule on exports
286
- /******/ __webpack_require__.r = (exports) => {
287
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
288
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
289
- /******/ }
290
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
291
- /******/ };
292
- /******/ })();
293
- /******/
294
- /******/ /* webpack/runtime/publicPath */
295
- /******/ (() => {
296
- /******/ var scriptUrl;
297
- /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
298
- /******/ var document = __webpack_require__.g.document;
299
- /******/ if (!scriptUrl && document) {
300
- /******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
301
- /******/ scriptUrl = document.currentScript.src;
302
- /******/ if (!scriptUrl) {
303
- /******/ var scripts = document.getElementsByTagName("script");
304
- /******/ if(scripts.length) {
305
- /******/ var i = scripts.length - 1;
306
- /******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
307
- /******/ }
308
- /******/ }
309
- /******/ }
310
- /******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
311
- /******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
312
- /******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
313
- /******/ scriptUrl = scriptUrl.replace(/^blob:/, "").replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
314
- /******/ __webpack_require__.p = scriptUrl;
315
- /******/ })();
316
- /******/
317
- /******/ /* webpack/runtime/jsonp chunk loading */
318
- /******/ (() => {
319
- /******/ // no baseURI
320
- /******/
321
- /******/ // object to store loaded and loading chunks
322
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
323
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
324
- /******/ var installedChunks = {
325
- /******/ "tsparticles.preset.confettiFalling": 0
326
- /******/ };
327
- /******/
328
- /******/ __webpack_require__.f.j = (chunkId, promises) => {
329
- /******/ // JSONP chunk loading for javascript
330
- /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
331
- /******/ if(installedChunkData !== 0) { // 0 means "already installed".
332
- /******/
333
- /******/ // a Promise means "currently loading".
334
- /******/ if(installedChunkData) {
335
- /******/ promises.push(installedChunkData[2]);
336
- /******/ } else {
337
- /******/ if(true) { // all chunks have JS
338
- /******/ // setup Promise in chunk cache
339
- /******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
340
- /******/ promises.push(installedChunkData[2] = promise);
341
- /******/
342
- /******/ // start chunk loading
343
- /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
344
- /******/ // create error before stack unwound to get useful stacktrace later
345
- /******/ var error = new Error();
346
- /******/ var loadingEnded = (event) => {
347
- /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
348
- /******/ installedChunkData = installedChunks[chunkId];
349
- /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
350
- /******/ if(installedChunkData) {
351
- /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
352
- /******/ var realSrc = event && event.target && event.target.src;
353
- /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
354
- /******/ error.name = 'ChunkLoadError';
355
- /******/ error.type = errorType;
356
- /******/ error.request = realSrc;
357
- /******/ installedChunkData[1](error);
358
- /******/ }
359
- /******/ }
360
- /******/ };
361
- /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
362
- /******/ }
363
- /******/ }
364
- /******/ }
365
- /******/ };
366
- /******/
367
- /******/ // no prefetching
368
- /******/
369
- /******/ // no preloaded
370
- /******/
371
- /******/ // no HMR
372
- /******/
373
- /******/ // no HMR manifest
374
- /******/
375
- /******/ // no on chunks loaded
376
- /******/
377
- /******/ // install a JSONP callback for chunk loading
378
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
379
- /******/ var [chunkIds, moreModules, runtime] = data;
380
- /******/ // add "moreModules" to the modules object,
381
- /******/ // then flag all "chunkIds" as loaded and fire callback
382
- /******/ var moduleId, chunkId, i = 0;
383
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
384
- /******/ for(moduleId in moreModules) {
385
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
386
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
387
- /******/ }
388
- /******/ }
389
- /******/ if(runtime) var result = runtime(__webpack_require__);
390
- /******/ }
391
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
392
- /******/ for(;i < chunkIds.length; i++) {
393
- /******/ chunkId = chunkIds[i];
394
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
395
- /******/ installedChunks[chunkId][0]();
396
- /******/ }
397
- /******/ installedChunks[chunkId] = 0;
398
- /******/ }
399
- /******/
400
- /******/ }
401
- /******/
402
- /******/ var chunkLoadingGlobal = this["webpackChunk_tsparticles_preset_confetti_falling"] = this["webpackChunk_tsparticles_preset_confetti_falling"] || [];
403
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
404
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
405
- /******/ })();
406
- /******/
407
- /************************************************************************/
408
- /******/
409
- /******/ // startup
410
- /******/ // Load entry module and return exports
411
- /******/ // This entry module can't be inlined because the eval devtool is used.
412
- /******/ var __webpack_exports__ = __webpack_require__("./dist/browser/index.js");
413
- /******/
414
- /******/ return __webpack_exports__;
415
- /******/ })()
416
- ;
417
- });
1
+ (function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
2
+ /* Preset v4.0.0-beta.16 */
3
+ (function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/basic'), require('@tsparticles/palette-confetti'), require('@tsparticles/plugin-motion'), require('@tsparticles/updater-roll'), require('@tsparticles/updater-rotate'), require('@tsparticles/shape-square'), require('@tsparticles/updater-tilt'), require('@tsparticles/updater-wobble')) :
5
+ typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/basic', '@tsparticles/palette-confetti', '@tsparticles/plugin-motion', '@tsparticles/updater-roll', '@tsparticles/updater-rotate', '@tsparticles/shape-square', '@tsparticles/updater-tilt', '@tsparticles/updater-wobble'], factory) :
6
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.__tsParticlesInternals = global.__tsParticlesInternals || {}, global.__tsParticlesInternals.presets = global.__tsParticlesInternals.presets || {}, global.__tsParticlesInternals.presets.confettiFalling = global.__tsParticlesInternals.presets.confettiFalling || {}), global.__tsParticlesInternals.bundles.basic, global.__tsParticlesInternals.palettes.confetti, global.__tsParticlesInternals.plugins.motion, global.__tsParticlesInternals.updaters.roll, global.__tsParticlesInternals.updaters.rotate, global.__tsParticlesInternals.shapes.square, global.__tsParticlesInternals.updaters.tilt, global.__tsParticlesInternals.updaters.wobble));
7
+ })(this, (function (exports, basic, paletteConfetti, pluginMotion, updaterRoll, updaterRotate, shapeSquare, updaterTilt, updaterWobble) { 'use strict';
8
+
9
+ const options = {
10
+ palette: "confetti",
11
+ background: {
12
+ color: {
13
+ value: "",
14
+ },
15
+ },
16
+ fullScreen: {
17
+ enable: true,
18
+ zIndex: 100,
19
+ },
20
+ particles: {
21
+ number: {
22
+ value: 200,
23
+ density: {
24
+ enable: true,
25
+ },
26
+ },
27
+ shape: {
28
+ type: ["square", "circle"],
29
+ },
30
+ size: {
31
+ value: {
32
+ min: 3,
33
+ max: 5,
34
+ },
35
+ },
36
+ move: {
37
+ enable: true,
38
+ speed: 5,
39
+ direction: "bottom",
40
+ outModes: "out",
41
+ },
42
+ rotate: {
43
+ value: {
44
+ min: 0,
45
+ max: 360,
46
+ },
47
+ direction: "random",
48
+ move: true,
49
+ animation: {
50
+ enable: true,
51
+ speed: 60,
52
+ },
53
+ },
54
+ tilt: {
55
+ direction: "random",
56
+ enable: true,
57
+ value: {
58
+ min: 0,
59
+ max: 360,
60
+ },
61
+ animation: {
62
+ enable: true,
63
+ speed: 60,
64
+ },
65
+ },
66
+ roll: {
67
+ darken: {
68
+ enable: true,
69
+ value: 30,
70
+ },
71
+ enlighten: {
72
+ enable: true,
73
+ value: 30,
74
+ },
75
+ enable: true,
76
+ mode: "both",
77
+ speed: {
78
+ min: 15,
79
+ max: 25,
80
+ },
81
+ },
82
+ wobble: {
83
+ distance: 30,
84
+ enable: true,
85
+ move: true,
86
+ speed: {
87
+ min: -15,
88
+ max: 15,
89
+ },
90
+ },
91
+ },
92
+ motion: {
93
+ disable: true,
94
+ },
95
+ };
96
+
97
+ const presetNames = ["confettiFalling", "confetti-falling"];
98
+ async function loadConfettiFallingPreset(engine) {
99
+ await engine.pluginManager.register(async (e) => {
100
+ await Promise.all([
101
+ basic.loadBasic(e),
102
+ paletteConfetti.loadConfettiPalette(e),
103
+ shapeSquare.loadSquareShape(e),
104
+ pluginMotion.loadMotionPlugin(e),
105
+ updaterWobble.loadWobbleUpdater(e),
106
+ updaterRoll.loadRollUpdater(e),
107
+ updaterRotate.loadRotateUpdater(e),
108
+ updaterTilt.loadTiltUpdater(e),
109
+ ]);
110
+ presetNames.forEach(name => {
111
+ e.pluginManager.addPreset(name, options, false);
112
+ });
113
+ });
114
+ }
115
+
116
+ const globalObject = globalThis;
117
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
118
+ globalObject.loadConfettiFallingPreset = loadConfettiFallingPreset;
119
+
120
+ exports.loadConfettiFallingPreset = loadConfettiFallingPreset;
121
+
122
+ }));
123
+ Object.assign(globalThis.window || globalThis, { loadConfettiFallingPreset: (globalThis.__tsParticlesInternals.presets.confettiFalling || {}).loadConfettiFallingPreset });
124
+ delete (globalThis.window || globalThis).tsparticlesInternalExports;
@@ -1,2 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/palette-confetti"),require("@tsparticles/updater-roll"),require("@tsparticles/updater-wobble"),require("@tsparticles/updater-tilt"),require("@tsparticles/shape-square"),require("@tsparticles/updater-rotate"),require("@tsparticles/plugin-motion"),require("@tsparticles/basic"));else if("function"==typeof define&&define.amd)define(["@tsparticles/palette-confetti","@tsparticles/updater-roll","@tsparticles/updater-wobble","@tsparticles/updater-tilt","@tsparticles/shape-square","@tsparticles/updater-rotate","@tsparticles/plugin-motion","@tsparticles/basic"],t);else{var r="object"==typeof exports?t(require("@tsparticles/palette-confetti"),require("@tsparticles/updater-roll"),require("@tsparticles/updater-wobble"),require("@tsparticles/updater-tilt"),require("@tsparticles/shape-square"),require("@tsparticles/updater-rotate"),require("@tsparticles/plugin-motion"),require("@tsparticles/basic")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,(e,t,r,i,o,s,a,n)=>(()=>{"use strict";var l,p,c,u={145(e){e.exports=n},251(t){t.exports=e},235(e){e.exports=a},400(e){e.exports=o},544(e){e.exports=t},668(e){e.exports=s},844(e){e.exports=i},238(e){e.exports=r}},d={};function f(e){var t=d[e];if(void 0!==t)return t.exports;var r=d[e]={exports:{}};return u[e](r,r.exports,f),r.exports}f.m=u,h=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,f.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var r=Object.create(null);f.r(r);var i={};b=b||[null,h({}),h([]),h(h)];for(var o=2&t&&e;("object"==typeof o||"function"==typeof o)&&!~b.indexOf(o);o=h(o))Object.getOwnPropertyNames(o).forEach(t=>i[t]=()=>e[t]);return i.default=()=>e,f.d(r,i),r},f.d=(e,t)=>{for(var r in t)f.o(t,r)&&!f.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((t,r)=>(f.f[r](e,t),t),[])),f.u=e=>""+e+".min.js",f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),g={},f.l=(e,t,r,i)=>{if(g[e])return void g[e].push(t);if(void 0!==r)for(var o,s,a=document.getElementsByTagName("script"),n=0;n<a.length;n++){var l=a[n];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")=="@tsparticles/preset-confetti-falling:"+r){o=l;break}}o||(s=!0,(o=document.createElement("script")).charset="utf-8",f.nc&&o.setAttribute("nonce",f.nc),o.setAttribute("data-webpack","@tsparticles/preset-confetti-falling:"+r),o.src=e),g[e]=[t];var p=(t,r)=>{o.onerror=o.onload=null,clearTimeout(c);var i=g[e];if(delete g[e],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach(e=>e(r)),t)return t(r)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload),s&&document.head.appendChild(o)},f.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.g.importScripts&&(m=f.g.location+"");var b,h,g,m,v=f.g.document;if(!m&&v&&(v.currentScript&&"SCRIPT"===v.currentScript.tagName.toUpperCase()&&(m=v.currentScript.src),!m)){var w=v.getElementsByTagName("script");if(w.length)for(var y=w.length-1;y>-1&&(!m||!/^http(s?):/.test(m));)m=w[y--].src}if(!m)throw Error("Automatic publicPath is not supported in this browser");f.p=m=m.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l={53:0},f.f.j=(e,t)=>{var r=f.o(l,e)?l[e]:void 0;if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((t,i)=>r=l[e]=[t,i]);t.push(r[2]=i);var o=f.p+f.u(e),s=Error();f.l(o,t=>{if(f.o(l,e)&&(0!==(r=l[e])&&(l[e]=void 0),r)){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;s.message="Loading chunk "+e+` failed.
2
- (`+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}},"chunk-"+e,e)}},p=(e,t)=>{var r,i,[o,s,a]=t,n=0;if(o.some(e=>0!==l[e])){for(r in s)f.o(s,r)&&(f.m[r]=s[r]);a&&a(f)}for(e&&e(t);n<o.length;n++)i=o[n],f.o(l,i)&&l[i]&&l[i][0](),l[i]=0},(c=this.webpackChunk_tsparticles_preset_confetti_falling=this.webpackChunk_tsparticles_preset_confetti_falling||[]).forEach(p.bind(null,0)),c.push=p.bind(null,c.push.bind(c));var P={};f.r(P),f.d(P,{loadConfettiFallingPreset:()=>j});let q=["confettiFalling","confetti-falling"];async function j(e){await e.pluginManager.register(async e=>{let[{loadBasic:t},{loadMotionPlugin:r},{loadRotateUpdater:i},{loadSquareShape:o},{loadTiltUpdater:s},{loadWobbleUpdater:a},{loadRollUpdater:n},{loadConfettiPalette:l},{options:p}]=await Promise.all([Promise.resolve().then(f.t.bind(f,145,19)),Promise.resolve().then(f.t.bind(f,235,19)),Promise.resolve().then(f.t.bind(f,668,19)),Promise.resolve().then(f.t.bind(f,400,19)),Promise.resolve().then(f.t.bind(f,844,19)),Promise.resolve().then(f.t.bind(f,238,19)),Promise.resolve().then(f.t.bind(f,544,19)),Promise.resolve().then(f.t.bind(f,251,19)),f.e(837).then(f.bind(f,837))]);await Promise.all([t(e),l(e),o(e),r(e),a(e),n(e),i(e),s(e)]),q.forEach(t=>{e.pluginManager.addPreset(t,p,!1)})})}return P})());
1
+ !function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var e="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,e){return e in t||(t[e]={}),t[e]}})}:function(t){return t};t.__tsParticlesInternals.bundles=e(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=e(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=e(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=e(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=e(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=e(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=e(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=e(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=e(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=e(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=e(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=e(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=e(t.__tsParticlesInternals.path),t.tsparticlesInternalExports=t.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@tsparticles/basic"),require("@tsparticles/palette-confetti"),require("@tsparticles/plugin-motion"),require("@tsparticles/updater-roll"),require("@tsparticles/updater-rotate"),require("@tsparticles/shape-square"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-wobble")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/basic","@tsparticles/palette-confetti","@tsparticles/plugin-motion","@tsparticles/updater-roll","@tsparticles/updater-rotate","@tsparticles/shape-square","@tsparticles/updater-tilt","@tsparticles/updater-wobble"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.presets.confettiFalling=t.__tsParticlesInternals.presets.confettiFalling||{}),t.__tsParticlesInternals.bundles.basic,t.__tsParticlesInternals.palettes.confetti,t.__tsParticlesInternals.plugins.motion,t.__tsParticlesInternals.updaters.roll,t.__tsParticlesInternals.updaters.rotate,t.__tsParticlesInternals.shapes.square,t.__tsParticlesInternals.updaters.tilt,t.__tsParticlesInternals.updaters.wobble)}(this,function(t,e,s,a,l,n,r,i,_){"use strict";const c={palette:"confetti",background:{color:{value:""}},fullScreen:{enable:!0,zIndex:100},particles:{number:{value:200,density:{enable:!0}},shape:{type:["square","circle"]},size:{value:{min:3,max:5}},move:{enable:!0,speed:5,direction:"bottom",outModes:"out"},rotate:{value:{min:0,max:360},direction:"random",move:!0,animation:{enable:!0,speed:60}},tilt:{direction:"random",enable:!0,value:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:30},enlighten:{enable:!0,value:30},enable:!0,mode:"both",speed:{min:15,max:25}},wobble:{distance:30,enable:!0,move:!0,speed:{min:-15,max:15}}},motion:{disable:!0}},o=["confettiFalling","confetti-falling"];async function p(t){await t.pluginManager.register(async t=>{await Promise.all([e.loadBasic(t),s.loadConfettiPalette(t),r.loadSquareShape(t),a.loadMotionPlugin(t),_.loadWobbleUpdater(t),l.loadRollUpdater(t),n.loadRotateUpdater(t),i.loadTiltUpdater(t)]),o.forEach(e=>{t.pluginManager.addPreset(e,c,!1)})})}const P=globalThis;P.__tsParticlesInternals=P.__tsParticlesInternals??{},P.loadConfettiFallingPreset=p,t.loadConfettiFallingPreset=p}),Object.assign(globalThis.window||globalThis,{loadConfettiFallingPreset:(globalThis.__tsParticlesInternals.presets.confettiFalling||{}).loadConfettiFallingPreset}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
@@ -0,0 +1 @@
1
+ export * from "./index.js";
@@ -0,0 +1,2 @@
1
+ import type { Engine } from "@tsparticles/engine/lazy";
2
+ export declare function loadConfettiFallingPreset(engine: Engine): Promise<void>;
package/127.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_confetti_falling=this.webpackChunk_tsparticles_preset_confetti_falling||[]).push([[127],{9127(t,e,a){a.r(e),a.d(e,{loadConfettiPalette:()=>i});async function i(t){await t.pluginManager.register(async t=>{let{options:e}=await a.e(573).then(a.bind(a,8573));t.pluginManager.addPalette("confetti",e)})}}}]);
package/155.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_confetti_falling=this.webpackChunk_tsparticles_preset_confetti_falling||[]).push([[155],{7155(t,i,a){a.d(i,{OpacityUpdater:()=>e});var o=a(7279);class e{container;constructor(t){this.container=t}init(t){let i=t.options.opacity;t.opacity=(0,o.XsS)(i,1);let a=i.animation;a.enable&&(t.opacity.velocity=(0,o.VGA)(a.speed)/o.a56*this.container.retina.reduceFactor,a.sync||(t.opacity.velocity*=(0,o.G0i)()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,i){this.isEnabled(t)&&t.opacity&&(0,o.UC0)(t,t.opacity,!0,t.options.opacity.animation.destroy,i)}}}}]);
package/181.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_confetti_falling=this.webpackChunk_tsparticles_preset_confetti_falling||[]).push([[181],{2181(i,e,l){l.d(e,{PaintUpdater:()=>o});var t=l(7279);class o{_container;_pluginManager;constructor(i,e){this._container=e,this._pluginManager=i}init(i){let e=this._container,l=i.options,o=(0,t.TA3)(l.paint,i.id,l.reduceDuplicates),a=o?.fill,n=o?.stroke;if(a){i.fillEnabled=a.enable,i.fillOpacity=(0,t.VGA)(a.opacity),i.fillAnimation=a.color.animation;let l=(0,t.R5R)(this._pluginManager,a.color);l&&(i.fillColor=(0,t.pzy)(l,i.fillAnimation,e.retina.reduceFactor))}else i.fillEnabled=!1,i.fillAnimation=void 0,i.fillColor=void 0,i.fillOpacity=1;if(n){i.strokeWidth=(0,t.VGA)(n.width)*e.retina.pixelRatio,i.strokeOpacity=(0,t.VGA)(n.opacity??1),i.strokeAnimation=n.color?.animation;let l=(0,t.R5R)(this._pluginManager,n.color)??i.getFillColor();l&&(i.strokeColor=(0,t.pzy)(l,i.strokeAnimation,e.retina.reduceFactor))}else i.strokeAnimation=void 0,i.strokeColor=void 0,i.strokeOpacity=1,i.strokeWidth=0}isEnabled(i){let{fillAnimation:e,fillColor:l,strokeAnimation:t,strokeColor:o}=i,a=!!e&&(l?.h.value!==void 0&&l.h.enable||l?.s.value!==void 0&&l.s.enable||l?.l.value!==void 0&&l.l.enable),n=!!t&&(o?.h.value!==void 0&&o.h.enable||o?.s.value!==void 0&&o.s.enable||o?.l.value!==void 0&&o.l.enable);return!i.destroyed&&!i.spawning&&(a||n)}update(i,e){this.isEnabled(i)&&((0,t.JvX)(i.fillColor,e),(0,t.JvX)(i.strokeColor,e))}}}}]);
package/210.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_confetti_falling=this.webpackChunk_tsparticles_preset_confetti_falling||[]).push([[210],{4210(t,e,a){a.d(e,{RotateUpdater:()=>s});var i=a(7279);class o{decay;enable;speed;sync;constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){(0,i.kZJ)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,i.DT4)(t.speed)),void 0!==t.decay&&(this.decay=(0,i.DT4)(t.decay)),void 0!==t.sync&&(this.sync=t.sync))}}class n extends i.PVU{animation;direction;path;constructor(){super(),this.animation=new o,this.direction=i.pTR.clockwise,this.path=!1,this.value=0}load(t){(0,i.kZJ)(t)||(super.load(t),void 0!==t.direction&&(this.direction=t.direction),this.animation.load(t.animation),void 0!==t.path&&(this.path=t.path))}}class s{container;constructor(t){this.container=t}init(t){let e=t.options.rotate;if(!e)return;t.rotate={enable:e.animation.enable,value:(0,i.puj)((0,i.VGA)(e.value)),min:0,max:i.R1e},t.pathRotation=e.path;let a=e.direction;switch(a===i.pTR.random&&(a=Math.floor((0,i.G0i)()*i.gdl)>0?i.pTR.counterClockwise:i.pTR.clockwise),a){case i.pTR.counterClockwise:case"counterClockwise":t.rotate.status=i.H_P.decreasing;break;case i.pTR.clockwise:t.rotate.status=i.H_P.increasing}let o=e.animation;o.enable&&(t.rotate.decay=i.D_O-(0,i.VGA)(o.decay),t.rotate.velocity=(0,i.VGA)(o.speed)/360*this.container.retina.reduceFactor,o.sync||(t.rotate.velocity*=(0,i.G0i)())),t.rotation=t.rotate.value}isEnabled(t){let e=t.options.rotate;return!!e&&!t.destroyed&&!t.spawning&&(!!e.value||e.animation.enable||e.path)}loadOptions(t,...e){for(let a of(t.rotate??=new n,e))t.rotate.load(a?.rotate)}update(t,e){!this.isEnabled(t)||(t.isRotating=!!t.rotate,t.rotate&&((0,i.UC0)(t,t.rotate,!1,i.VKE.none,e),t.rotation=t.rotate.value))}}}}]);