Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tsparticles/confetti

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsparticles/confetti - npm Package Compare versions

Comparing version 3.2.2 to 3.3.0

2043.min.js

2

basic_dist_browser_index_js.js

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -49,3 +26,3 @@ exports.confetti = void 0;

initializing = true;
const { loadEmittersPlugin } = await Promise.resolve().then(() => __importStar(require("@tsparticles/plugin-emitters"))), { loadMotionPlugin } = await Promise.resolve().then(() => __importStar(require("@tsparticles/plugin-motion"))), { loadCardsShape } = await Promise.resolve().then(() => __importStar(require("@tsparticles/shape-cards"))), { loadHeartShape } = await Promise.resolve().then(() => __importStar(require("@tsparticles/shape-heart"))), { loadImageShape } = await Promise.resolve().then(() => __importStar(require("@tsparticles/shape-image"))), { loadPolygonShape } = await Promise.resolve().then(() => __importStar(require("@tsparticles/shape-polygon"))), { loadSquareShape } = await Promise.resolve().then(() => __importStar(require("@tsparticles/shape-square"))), { loadStarShape } = await Promise.resolve().then(() => __importStar(require("@tsparticles/shape-star"))), { loadEmojiShape } = await Promise.resolve().then(() => __importStar(require("@tsparticles/shape-emoji"))), { loadRotateUpdater } = await Promise.resolve().then(() => __importStar(require("@tsparticles/updater-rotate"))), { loadLifeUpdater } = await Promise.resolve().then(() => __importStar(require("@tsparticles/updater-life"))), { loadRollUpdater } = await Promise.resolve().then(() => __importStar(require("@tsparticles/updater-roll"))), { loadTiltUpdater } = await Promise.resolve().then(() => __importStar(require("@tsparticles/updater-tilt"))), { loadWobbleUpdater } = await Promise.resolve().then(() => __importStar(require("@tsparticles/updater-wobble"))), { loadBasic } = await Promise.resolve().then(() => __importStar(require("@tsparticles/basic")));
const { loadEmittersPlugin } = await import("@tsparticles/plugin-emitters"), { loadMotionPlugin } = await import("@tsparticles/plugin-motion"), { loadCardsShape } = await import("@tsparticles/shape-cards"), { loadHeartShape } = await import("@tsparticles/shape-heart"), { loadImageShape } = await import("@tsparticles/shape-image"), { loadPolygonShape } = await import("@tsparticles/shape-polygon"), { loadSquareShape } = await import("@tsparticles/shape-square"), { loadStarShape } = await import("@tsparticles/shape-star"), { loadEmojiShape } = await import("@tsparticles/shape-emoji"), { loadRotateUpdater } = await import("@tsparticles/updater-rotate"), { loadLifeUpdater } = await import("@tsparticles/updater-life"), { loadRollUpdater } = await import("@tsparticles/updater-roll"), { loadTiltUpdater } = await import("@tsparticles/updater-tilt"), { loadWobbleUpdater } = await import("@tsparticles/updater-wobble"), { loadBasic } = await import("@tsparticles/basic");
await loadEmittersPlugin(engine, false);

@@ -52,0 +29,0 @@ await loadMotionPlugin(engine, false);

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,6 +27,16 @@ "use strict";

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 */ \"../../engine/dist/browser/index.js\");\n\nconst diffFactor = 2,\n defaultSizeFactor = 1,\n defaultDeltaFactor = 1;\nclass BaseMover {\n async init(particle) {\n const options = particle.options,\n 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 const {\n initSpin\n } = await __webpack_require__.e(/*! import() */ \"move_base_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../move/base/dist/browser/Utils.js\"));\n initSpin(particle);\n await Promise.resolve();\n }\n isEnabled(particle) {\n return !particle.destroyed && particle.options.move.enable;\n }\n async move(particle, delta) {\n const particleOptions = particle.options,\n moveOptions = particleOptions.move;\n if (!moveOptions.enable) {\n return;\n }\n const container = particle.container,\n 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 {\n getProximitySpeedFactor\n } = await __webpack_require__.e(/*! import() */ \"move_base_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../move/base/dist/browser/Utils.js\")),\n slowFactor = getProximitySpeedFactor(particle),\n baseSpeed = particle.retina.moveSpeed * container.retina.reduceFactor,\n moveDrift = particle.retina.moveDrift,\n maxSize = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(particleOptions.size.value) * pxRatio,\n sizeFactor = moveOptions.size ? particle.getRadius() / maxSize : defaultSizeFactor,\n deltaFactor = delta.factor || defaultDeltaFactor,\n moveSpeed = baseSpeed * sizeFactor * slowFactor * deltaFactor / diffFactor,\n maxSpeed = particle.retina.maxSpeed ?? container.retina.maxSpeed;\n if (moveOptions.spin.enable) {\n const {\n spin\n } = await __webpack_require__.e(/*! import() */ \"move_base_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../move/base/dist/browser/Utils.js\"));\n spin(particle, moveSpeed);\n } else {\n const {\n move\n } = await __webpack_require__.e(/*! import() */ \"move_base_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../move/base/dist/browser/Utils.js\"));\n await move(particle, moveOptions, moveSpeed, maxSpeed, moveDrift, delta);\n }\n const {\n applyDistance\n } = await __webpack_require__.e(/*! import() */ \"move_base_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../move/base/dist/browser/Utils.js\"));\n applyDistance(particle);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../move/base/dist/browser/BaseMover.js?");
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 */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utils.js */ \"../../move/base/dist/browser/Utils.js\");\n\n\nconst diffFactor = 2,\n defaultSizeFactor = 1,\n defaultDeltaFactor = 1;\nclass BaseMover {\n init(particle) {\n const options = particle.options,\n 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,\n moveOptions = particleOptions.move;\n if (!moveOptions.enable) {\n return;\n }\n const container = particle.container,\n 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),\n baseSpeed = particle.retina.moveSpeed * container.retina.reduceFactor,\n moveDrift = particle.retina.moveDrift,\n maxSize = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(particleOptions.size.value) * pxRatio,\n sizeFactor = moveOptions.size ? particle.getRadius() / maxSize : defaultSizeFactor,\n deltaFactor = delta.factor || defaultDeltaFactor,\n moveSpeed = baseSpeed * sizeFactor * slowFactor * deltaFactor / diffFactor,\n maxSpeed = particle.retina.maxSpeed ?? container.retina.maxSpeed;\n if (moveOptions.spin.enable) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.spin)(particle, moveSpeed);\n } else {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.move)(particle, moveOptions, moveSpeed, maxSpeed, moveDrift, delta);\n }\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.applyDistance)(particle);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../move/base/dist/browser/BaseMover.js?");
/***/ }),
/***/ "../../move/base/dist/browser/Utils.js":
/*!*********************************************!*\
!*** ../../move/base/dist/browser/Utils.js ***!
\*********************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
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 */ \"../../engine/dist/browser/index.js\");\n\nconst half = 0.5,\n minVelocity = 0,\n identity = 1,\n moveSpeedFactor = 60,\n minSpinRadius = 0,\n spinFactor = 0.01;\nfunction applyDistance(particle) {\n const initialPosition = particle.initialPosition,\n {\n dx,\n dy\n } = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistances)(initialPosition, particle.position),\n dxFixed = Math.abs(dx),\n dyFixed = Math.abs(dy),\n {\n maxDistance\n } = particle.retina,\n hDistance = maxDistance.horizontal,\n vDistance = maxDistance.vertical;\n if (!hDistance && !vDistance) {\n return;\n }\n const hasHDistance = (hDistance && dxFixed >= hDistance) ?? false,\n 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 * half - particle.velocity.x;\n }\n if (vDistance) {\n particle.velocity.y = particle.velocity.x * half - particle.velocity.y;\n }\n } else if ((!hDistance || dxFixed < hDistance) && (!vDistance || dyFixed < vDistance) && particle.misplaced) {\n particle.misplaced = false;\n } else if (particle.misplaced) {\n const pos = particle.position,\n vel = particle.velocity;\n if (hDistance && (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 && (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, delta) {\n applyPath(particle, delta);\n const gravityOptions = particle.gravity,\n 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 += 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 && maxSpeed > minVelocity && (!gravityOptions.inverse && velocity.y >= minVelocity && velocity.y >= maxSpeed || 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,\n zVelocityFactor = (identity - particle.zIndexFactor) ** zIndexOptions.velocityRate;\n velocity.multTo(zVelocityFactor);\n const {\n position\n } = particle;\n position.addTo(velocity);\n if (moveOptions.vibrate) {\n position.x += Math.sin(position.x * Math.cos(position.y));\n position.y += Math.cos(position.y * Math.sin(position.x));\n }\n}\nfunction spin(particle, moveSpeed) {\n const container = particle.container;\n if (!particle.spin) {\n return;\n }\n const updateFunc = {\n x: particle.spin.direction === \"clockwise\" ? Math.cos : Math.sin,\n y: particle.spin.direction === \"clockwise\" ? Math.sin : Math.cos\n };\n particle.position.x = particle.spin.center.x + particle.spin.radius * updateFunc.x(particle.spin.angle);\n particle.position.y = particle.spin.center.y + particle.spin.radius * updateFunc.y(particle.spin.angle);\n particle.spin.radius += particle.spin.acceleration;\n const maxCanvasSize = Math.max(container.canvas.size.width, container.canvas.size.height),\n halfMaxSize = maxCanvasSize * half;\n if (particle.spin.radius > halfMaxSize) {\n particle.spin.radius = halfMaxSize;\n particle.spin.acceleration *= -identity;\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,\n pathOptions = particlesOptions.move.path,\n 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,\n options = particle.options,\n spinOptions = options.move.spin;\n if (!spinOptions.enable) {\n return;\n }\n const spinPos = spinOptions.position ?? {\n x: 50,\n y: 50\n },\n spinFactor = 0.01,\n spinCenter = {\n x: spinPos.x * spinFactor * container.canvas.size.width,\n y: spinPos.y * spinFactor * container.canvas.size.height\n },\n pos = particle.getPosition(),\n distance = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistance)(pos, spinCenter),\n spinAcceleration = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(spinOptions.acceleration);\n particle.retina.spinAcceleration = spinAcceleration * container.retina.pixelRatio;\n const minVelocity = 0;\n particle.spin = {\n center: spinCenter,\n direction: particle.velocity.x >= minVelocity ? \"clockwise\" : \"counter-clockwise\",\n angle: particle.velocity.angle,\n radius: distance,\n acceleration: particle.retina.spinAcceleration\n };\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../move/base/dist/browser/Utils.js?");
/***/ })
}]);

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

{
"name": "@tsparticles/confetti",
"version": "3.2.2",
"version": "3.3.0",
"description": "Easily create highly customizable particle animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.",

@@ -102,18 +102,18 @@ "homepage": "https://particles.js.org",

"dependencies": {
"@tsparticles/basic": "^3.2.2",
"@tsparticles/engine": "^3.2.2",
"@tsparticles/plugin-emitters": "^3.2.2",
"@tsparticles/plugin-motion": "^3.2.2",
"@tsparticles/shape-cards": "^3.2.2",
"@tsparticles/shape-emoji": "^3.2.2",
"@tsparticles/shape-heart": "^3.2.2",
"@tsparticles/shape-image": "^3.2.2",
"@tsparticles/shape-polygon": "^3.2.2",
"@tsparticles/shape-square": "^3.2.2",
"@tsparticles/shape-star": "^3.2.2",
"@tsparticles/updater-life": "^3.2.2",
"@tsparticles/updater-roll": "^3.2.2",
"@tsparticles/updater-rotate": "^3.2.2",
"@tsparticles/updater-tilt": "^3.2.2",
"@tsparticles/updater-wobble": "^3.2.2"
"@tsparticles/basic": "^3.3.0",
"@tsparticles/engine": "^3.3.0",
"@tsparticles/plugin-emitters": "^3.3.0",
"@tsparticles/plugin-motion": "^3.3.0",
"@tsparticles/shape-cards": "^3.3.0",
"@tsparticles/shape-emoji": "^3.3.0",
"@tsparticles/shape-heart": "^3.3.0",
"@tsparticles/shape-image": "^3.3.0",
"@tsparticles/shape-polygon": "^3.3.0",
"@tsparticles/shape-square": "^3.3.0",
"@tsparticles/shape-star": "^3.3.0",
"@tsparticles/updater-life": "^3.3.0",
"@tsparticles/updater-roll": "^3.3.0",
"@tsparticles/updater-rotate": "^3.3.0",
"@tsparticles/updater-tilt": "^3.3.0",
"@tsparticles/updater-wobble": "^3.3.0"
},

@@ -120,0 +120,0 @@ "publishConfig": {

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,3 +27,3 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterInstance: () => (/* binding */ EmitterInstance)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Emitter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Emitter.js */ \"../../plugins/emitters/dist/browser/Options/Classes/Emitter.js\");\n/* harmony import */ var _Options_Classes_EmitterSize_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Options/Classes/EmitterSize.js */ \"../../plugins/emitters/dist/browser/Options/Classes/EmitterSize.js\");\n\n\n\nconst half = 0.5,\n defaultLifeDelay = 0,\n minLifeCount = 0,\n defaultSpawnDelay = 0,\n defaultEmitDelay = 0,\n defaultLifeCount = -1,\n defaultColorAnimationFactor = 1;\nfunction setParticlesOptionsColor(particlesOptions, color) {\n if (particlesOptions.color) {\n particlesOptions.color.value = color;\n } else {\n particlesOptions.color = {\n value: color\n };\n }\n}\nclass EmitterInstance {\n constructor(engine, emitters, container, options, position) {\n this.emitters = emitters;\n this.container = container;\n this._destroy = () => {\n this._mutationObserver?.disconnect();\n this._mutationObserver = undefined;\n this._resizeObserver?.disconnect();\n this._resizeObserver = undefined;\n this.emitters.removeEmitter(this);\n this._engine.dispatchEvent(\"emitterDestroyed\", {\n container: this.container,\n data: {\n emitter: this\n }\n });\n };\n this._prepareToDie = () => {\n if (this._paused) {\n return;\n }\n const duration = this.options.life?.duration !== undefined ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(this.options.life.duration) : undefined,\n minDuration = 0,\n minLifeCount = 0;\n if (this.container.retina.reduceFactor && (this._lifeCount > minLifeCount || this._immortal) && duration !== undefined && duration > minDuration) {\n this._duration = duration * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds;\n }\n };\n this._setColorAnimation = (animation, initValue, maxValue, factor = defaultColorAnimationFactor) => {\n const container = this.container;\n if (!animation.enable) {\n return initValue;\n }\n const colorOffset = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRange)(animation.offset),\n delay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(this.options.rate.delay),\n emitFactor = delay * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds / container.retina.reduceFactor,\n defaultColorSpeed = 0,\n colorSpeed = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(animation.speed ?? defaultColorSpeed);\n return (initValue + colorSpeed * container.fpsLimit / emitFactor + colorOffset * factor) % maxValue;\n };\n this._engine = engine;\n this._currentDuration = 0;\n this._currentEmitDelay = 0;\n this._currentSpawnDelay = 0;\n this._initialPosition = position;\n if (options instanceof _Options_Classes_Emitter_js__WEBPACK_IMPORTED_MODULE_1__.Emitter) {\n this.options = options;\n } else {\n this.options = new _Options_Classes_Emitter_js__WEBPACK_IMPORTED_MODULE_1__.Emitter();\n this.options.load(options);\n }\n this._spawnDelay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(this.options.life.delay ?? defaultLifeDelay) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds / this.container.retina.reduceFactor;\n this.position = this._initialPosition ?? this._calcPosition();\n this.name = this.options.name;\n this.fill = this.options.fill;\n this._firstSpawn = !this.options.life.wait;\n this._startParticlesAdded = false;\n let particlesOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.deepExtend)({}, this.options.particles);\n particlesOptions ??= {};\n particlesOptions.move ??= {};\n particlesOptions.move.direction ??= this.options.direction;\n if (this.options.spawnColor) {\n this.spawnColor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rangeColorToHsl)(this.options.spawnColor);\n }\n this._paused = !this.options.autoPlay;\n this._particlesOptions = particlesOptions;\n this._size = this._calcSize();\n this.size = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getSize)(this._size, this.container.canvas.size);\n this._lifeCount = this.options.life.count ?? defaultLifeCount;\n this._immortal = this._lifeCount <= minLifeCount;\n if (this.options.domId) {\n const element = document.getElementById(this.options.domId);\n if (element) {\n this._mutationObserver = new MutationObserver(() => {\n this.resize();\n });\n this._resizeObserver = new ResizeObserver(() => {\n this.resize();\n });\n this._mutationObserver.observe(element, {\n attributes: true,\n attributeFilter: [\"style\", \"width\", \"height\"]\n });\n this._resizeObserver.observe(element);\n }\n }\n const shapeOptions = this.options.shape,\n shapeGenerator = this._engine.emitterShapeManager?.getShapeGenerator(shapeOptions.type);\n if (shapeGenerator) {\n this._shape = shapeGenerator.generate(this.position, this.size, this.fill, shapeOptions.options);\n }\n this._engine.dispatchEvent(\"emitterCreated\", {\n container,\n data: {\n emitter: this\n }\n });\n this.play();\n }\n externalPause() {\n this._paused = true;\n this.pause();\n }\n externalPlay() {\n this._paused = false;\n this.play();\n }\n async init() {\n await this._shape?.init();\n }\n pause() {\n if (this._paused) {\n return;\n }\n delete this._emitDelay;\n }\n play() {\n if (this._paused) {\n return;\n }\n if (!(this.container.retina.reduceFactor && (this._lifeCount > minLifeCount || this._immortal || !this.options.life.count) && (this._firstSpawn || this._currentSpawnDelay >= (this._spawnDelay ?? defaultSpawnDelay)))) {\n return;\n }\n if (this._emitDelay === undefined) {\n const delay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(this.options.rate.delay);\n this._emitDelay = delay * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds / this.container.retina.reduceFactor;\n }\n if (this._lifeCount > minLifeCount || this._immortal) {\n this._prepareToDie();\n }\n }\n resize() {\n const initialPosition = this._initialPosition;\n this.position = initialPosition && (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isPointInside)(initialPosition, this.container.canvas.size, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.origin) ? initialPosition : this._calcPosition();\n this._size = this._calcSize();\n this.size = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getSize)(this._size, this.container.canvas.size);\n this._shape?.resize(this.position, this.size);\n }\n async update(delta) {\n if (this._paused) {\n return;\n }\n if (this._firstSpawn) {\n this._firstSpawn = false;\n this._currentSpawnDelay = this._spawnDelay ?? defaultSpawnDelay;\n this._currentEmitDelay = this._emitDelay ?? defaultEmitDelay;\n }\n if (!this._startParticlesAdded) {\n this._startParticlesAdded = true;\n await this._emitParticles(this.options.startCount);\n }\n if (this._duration !== undefined) {\n this._currentDuration += delta.value;\n if (this._currentDuration >= this._duration) {\n this.pause();\n if (this._spawnDelay !== undefined) {\n delete this._spawnDelay;\n }\n if (!this._immortal) {\n this._lifeCount--;\n }\n if (this._lifeCount > minLifeCount || this._immortal) {\n this.position = this._calcPosition();\n this._shape?.resize(this.position, this.size);\n this._spawnDelay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(this.options.life.delay ?? defaultLifeDelay) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds / this.container.retina.reduceFactor;\n } else {\n this._destroy();\n }\n this._currentDuration -= this._duration;\n delete this._duration;\n }\n }\n if (this._spawnDelay !== undefined) {\n this._currentSpawnDelay += delta.value;\n if (this._currentSpawnDelay >= this._spawnDelay) {\n this._engine.dispatchEvent(\"emitterPlay\", {\n container: this.container\n });\n this.play();\n this._currentSpawnDelay -= this._currentSpawnDelay;\n delete this._spawnDelay;\n }\n }\n if (this._emitDelay !== undefined) {\n this._currentEmitDelay += delta.value;\n if (this._currentEmitDelay >= this._emitDelay) {\n await this._emit();\n this._currentEmitDelay -= this._emitDelay;\n }\n }\n }\n _calcPosition() {\n if (this.options.domId) {\n const element = document.getElementById(this.options.domId);\n if (element) {\n const elRect = element.getBoundingClientRect(),\n pxRatio = this.container.retina.pixelRatio;\n return {\n x: (elRect.x + elRect.width * half) * pxRatio,\n y: (elRect.y + elRect.height * half) * pxRatio\n };\n }\n }\n return (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.calcPositionOrRandomFromSizeRanged)({\n size: this.container.canvas.size,\n position: this.options.position\n });\n }\n _calcSize() {\n const container = this.container;\n if (this.options.domId) {\n const element = document.getElementById(this.options.domId);\n if (element) {\n const elRect = element.getBoundingClientRect();\n return {\n width: elRect.width * container.retina.pixelRatio,\n height: elRect.height * container.retina.pixelRatio,\n mode: \"precise\"\n };\n }\n }\n return this.options.size ?? (() => {\n const size = new _Options_Classes_EmitterSize_js__WEBPACK_IMPORTED_MODULE_2__.EmitterSize();\n size.load({\n height: 0,\n mode: \"percent\",\n width: 0\n });\n return size;\n })();\n }\n async _emit() {\n if (this._paused) {\n return;\n }\n const quantity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(this.options.rate.quantity);\n await this._emitParticles(quantity);\n }\n async _emitParticles(quantity) {\n const singleParticlesOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(this._particlesOptions);\n for (let i = 0; i < quantity; i++) {\n const particlesOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.deepExtend)({}, singleParticlesOptions);\n if (this.spawnColor) {\n const hslAnimation = this.options.spawnColor?.animation;\n if (hslAnimation) {\n const maxValues = {\n h: 360,\n s: 100,\n l: 100\n },\n colorFactor = 3.6;\n this.spawnColor.h = this._setColorAnimation(hslAnimation.h, this.spawnColor.h, maxValues.h, colorFactor);\n this.spawnColor.s = this._setColorAnimation(hslAnimation.s, this.spawnColor.s, maxValues.s);\n this.spawnColor.l = this._setColorAnimation(hslAnimation.l, this.spawnColor.l, maxValues.l);\n }\n setParticlesOptionsColor(particlesOptions, this.spawnColor);\n }\n const shapeOptions = this.options.shape;\n let position = this.position;\n if (this._shape) {\n const shapePosData = await this._shape.randomPosition();\n if (shapePosData) {\n position = shapePosData.position;\n const replaceData = shapeOptions.replace;\n if (replaceData.color && shapePosData.color) {\n setParticlesOptionsColor(particlesOptions, shapePosData.color);\n }\n if (replaceData.opacity) {\n if (particlesOptions.opacity) {\n particlesOptions.opacity.value = shapePosData.opacity;\n } else {\n particlesOptions.opacity = {\n value: shapePosData.opacity\n };\n }\n }\n } else {\n position = null;\n }\n }\n if (position) {\n await this.container.particles.addParticle(position, particlesOptions);\n }\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../plugins/emitters/dist/browser/EmitterInstance.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterInstance: () => (/* binding */ EmitterInstance)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Emitter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Emitter.js */ \"../../plugins/emitters/dist/browser/Options/Classes/Emitter.js\");\n/* harmony import */ var _Options_Classes_EmitterSize_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Options/Classes/EmitterSize.js */ \"../../plugins/emitters/dist/browser/Options/Classes/EmitterSize.js\");\n\n\n\nconst half = 0.5,\n defaultLifeDelay = 0,\n minLifeCount = 0,\n defaultSpawnDelay = 0,\n defaultEmitDelay = 0,\n defaultLifeCount = -1,\n defaultColorAnimationFactor = 1;\nfunction setParticlesOptionsColor(particlesOptions, color) {\n if (particlesOptions.color) {\n particlesOptions.color.value = color;\n } else {\n particlesOptions.color = {\n value: color\n };\n }\n}\nclass EmitterInstance {\n constructor(engine, emitters, container, options, position) {\n this.emitters = emitters;\n this.container = container;\n this._destroy = () => {\n this._mutationObserver?.disconnect();\n this._mutationObserver = undefined;\n this._resizeObserver?.disconnect();\n this._resizeObserver = undefined;\n this.emitters.removeEmitter(this);\n this._engine.dispatchEvent(\"emitterDestroyed\", {\n container: this.container,\n data: {\n emitter: this\n }\n });\n };\n this._prepareToDie = () => {\n if (this._paused) {\n return;\n }\n const duration = this.options.life?.duration !== undefined ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(this.options.life.duration) : undefined,\n minDuration = 0,\n minLifeCount = 0;\n if (this.container.retina.reduceFactor && (this._lifeCount > minLifeCount || this._immortal) && duration !== undefined && duration > minDuration) {\n this._duration = duration * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds;\n }\n };\n this._setColorAnimation = (animation, initValue, maxValue, factor = defaultColorAnimationFactor) => {\n const container = this.container;\n if (!animation.enable) {\n return initValue;\n }\n const colorOffset = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRange)(animation.offset),\n delay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(this.options.rate.delay),\n emitFactor = delay * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds / container.retina.reduceFactor,\n defaultColorSpeed = 0,\n colorSpeed = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(animation.speed ?? defaultColorSpeed);\n return (initValue + colorSpeed * container.fpsLimit / emitFactor + colorOffset * factor) % maxValue;\n };\n this._engine = engine;\n this._currentDuration = 0;\n this._currentEmitDelay = 0;\n this._currentSpawnDelay = 0;\n this._initialPosition = position;\n if (options instanceof _Options_Classes_Emitter_js__WEBPACK_IMPORTED_MODULE_1__.Emitter) {\n this.options = options;\n } else {\n this.options = new _Options_Classes_Emitter_js__WEBPACK_IMPORTED_MODULE_1__.Emitter();\n this.options.load(options);\n }\n this._spawnDelay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(this.options.life.delay ?? defaultLifeDelay) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds / this.container.retina.reduceFactor;\n this.position = this._initialPosition ?? this._calcPosition();\n this.name = this.options.name;\n this.fill = this.options.fill;\n this._firstSpawn = !this.options.life.wait;\n this._startParticlesAdded = false;\n let particlesOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.deepExtend)({}, this.options.particles);\n particlesOptions ??= {};\n particlesOptions.move ??= {};\n particlesOptions.move.direction ??= this.options.direction;\n if (this.options.spawnColor) {\n this.spawnColor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rangeColorToHsl)(this.options.spawnColor);\n }\n this._paused = !this.options.autoPlay;\n this._particlesOptions = particlesOptions;\n this._size = this._calcSize();\n this.size = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getSize)(this._size, this.container.canvas.size);\n this._lifeCount = this.options.life.count ?? defaultLifeCount;\n this._immortal = this._lifeCount <= minLifeCount;\n if (this.options.domId) {\n const element = document.getElementById(this.options.domId);\n if (element) {\n this._mutationObserver = new MutationObserver(() => {\n this.resize();\n });\n this._resizeObserver = new ResizeObserver(() => {\n this.resize();\n });\n this._mutationObserver.observe(element, {\n attributes: true,\n attributeFilter: [\"style\", \"width\", \"height\"]\n });\n this._resizeObserver.observe(element);\n }\n }\n const shapeOptions = this.options.shape,\n shapeGenerator = this._engine.emitterShapeManager?.getShapeGenerator(shapeOptions.type);\n if (shapeGenerator) {\n this._shape = shapeGenerator.generate(this.position, this.size, this.fill, shapeOptions.options);\n }\n this._engine.dispatchEvent(\"emitterCreated\", {\n container,\n data: {\n emitter: this\n }\n });\n this.play();\n }\n externalPause() {\n this._paused = true;\n this.pause();\n }\n externalPlay() {\n this._paused = false;\n this.play();\n }\n async init() {\n await this._shape?.init();\n }\n pause() {\n if (this._paused) {\n return;\n }\n delete this._emitDelay;\n }\n play() {\n if (this._paused) {\n return;\n }\n if (!(this.container.retina.reduceFactor && (this._lifeCount > minLifeCount || this._immortal || !this.options.life.count) && (this._firstSpawn || this._currentSpawnDelay >= (this._spawnDelay ?? defaultSpawnDelay)))) {\n return;\n }\n if (this._emitDelay === undefined) {\n const delay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(this.options.rate.delay);\n this._emitDelay = delay * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds / this.container.retina.reduceFactor;\n }\n if (this._lifeCount > minLifeCount || this._immortal) {\n this._prepareToDie();\n }\n }\n resize() {\n const initialPosition = this._initialPosition;\n this.position = initialPosition && (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isPointInside)(initialPosition, this.container.canvas.size, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.origin) ? initialPosition : this._calcPosition();\n this._size = this._calcSize();\n this.size = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getSize)(this._size, this.container.canvas.size);\n this._shape?.resize(this.position, this.size);\n }\n update(delta) {\n if (this._paused) {\n return;\n }\n if (this._firstSpawn) {\n this._firstSpawn = false;\n this._currentSpawnDelay = this._spawnDelay ?? defaultSpawnDelay;\n this._currentEmitDelay = this._emitDelay ?? defaultEmitDelay;\n }\n if (!this._startParticlesAdded) {\n this._startParticlesAdded = true;\n this._emitParticles(this.options.startCount);\n }\n if (this._duration !== undefined) {\n this._currentDuration += delta.value;\n if (this._currentDuration >= this._duration) {\n this.pause();\n if (this._spawnDelay !== undefined) {\n delete this._spawnDelay;\n }\n if (!this._immortal) {\n this._lifeCount--;\n }\n if (this._lifeCount > minLifeCount || this._immortal) {\n this.position = this._calcPosition();\n this._shape?.resize(this.position, this.size);\n this._spawnDelay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(this.options.life.delay ?? defaultLifeDelay) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds / this.container.retina.reduceFactor;\n } else {\n this._destroy();\n }\n this._currentDuration -= this._duration;\n delete this._duration;\n }\n }\n if (this._spawnDelay !== undefined) {\n this._currentSpawnDelay += delta.value;\n if (this._currentSpawnDelay >= this._spawnDelay) {\n this._engine.dispatchEvent(\"emitterPlay\", {\n container: this.container\n });\n this.play();\n this._currentSpawnDelay -= this._currentSpawnDelay;\n delete this._spawnDelay;\n }\n }\n if (this._emitDelay !== undefined) {\n this._currentEmitDelay += delta.value;\n if (this._currentEmitDelay >= this._emitDelay) {\n this._emit();\n this._currentEmitDelay -= this._emitDelay;\n }\n }\n }\n _calcPosition() {\n if (this.options.domId) {\n const element = document.getElementById(this.options.domId);\n if (element) {\n const elRect = element.getBoundingClientRect(),\n pxRatio = this.container.retina.pixelRatio;\n return {\n x: (elRect.x + elRect.width * half) * pxRatio,\n y: (elRect.y + elRect.height * half) * pxRatio\n };\n }\n }\n return (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.calcPositionOrRandomFromSizeRanged)({\n size: this.container.canvas.size,\n position: this.options.position\n });\n }\n _calcSize() {\n const container = this.container;\n if (this.options.domId) {\n const element = document.getElementById(this.options.domId);\n if (element) {\n const elRect = element.getBoundingClientRect();\n return {\n width: elRect.width * container.retina.pixelRatio,\n height: elRect.height * container.retina.pixelRatio,\n mode: \"precise\"\n };\n }\n }\n return this.options.size ?? (() => {\n const size = new _Options_Classes_EmitterSize_js__WEBPACK_IMPORTED_MODULE_2__.EmitterSize();\n size.load({\n height: 0,\n mode: \"percent\",\n width: 0\n });\n return size;\n })();\n }\n _emit() {\n if (this._paused) {\n return;\n }\n const quantity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(this.options.rate.quantity);\n this._emitParticles(quantity);\n }\n _emitParticles(quantity) {\n const singleParticlesOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(this._particlesOptions);\n for (let i = 0; i < quantity; i++) {\n const particlesOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.deepExtend)({}, singleParticlesOptions);\n if (this.spawnColor) {\n const hslAnimation = this.options.spawnColor?.animation;\n if (hslAnimation) {\n const maxValues = {\n h: 360,\n s: 100,\n l: 100\n },\n colorFactor = 3.6;\n this.spawnColor.h = this._setColorAnimation(hslAnimation.h, this.spawnColor.h, maxValues.h, colorFactor);\n this.spawnColor.s = this._setColorAnimation(hslAnimation.s, this.spawnColor.s, maxValues.s);\n this.spawnColor.l = this._setColorAnimation(hslAnimation.l, this.spawnColor.l, maxValues.l);\n }\n setParticlesOptionsColor(particlesOptions, this.spawnColor);\n }\n const shapeOptions = this.options.shape;\n let position = this.position;\n if (this._shape) {\n const shapePosData = this._shape.randomPosition();\n if (shapePosData) {\n position = shapePosData.position;\n const replaceData = shapeOptions.replace;\n if (replaceData.color && shapePosData.color) {\n setParticlesOptionsColor(particlesOptions, shapePosData.color);\n }\n if (replaceData.opacity) {\n if (particlesOptions.opacity) {\n particlesOptions.opacity.value = shapePosData.opacity;\n } else {\n particlesOptions.opacity = {\n value: shapePosData.opacity\n };\n }\n }\n } else {\n position = null;\n }\n }\n if (position) {\n this.container.particles.addParticle(position, particlesOptions);\n }\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../plugins/emitters/dist/browser/EmitterInstance.js?");

@@ -30,0 +30,0 @@ /***/ })

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,3 +27,3 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Emitters: () => (/* binding */ Emitters)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass Emitters {\n constructor(engine, container) {\n this.container = container;\n this._engine = engine;\n this.array = [];\n this.emitters = [];\n this.interactivityEmitters = {\n random: {\n count: 1,\n enable: false\n },\n value: []\n };\n const defaultIndex = 0;\n container.getEmitter = idxOrName => idxOrName === undefined || (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNumber)(idxOrName) ? this.array[idxOrName ?? defaultIndex] : this.array.find(t => t.name === idxOrName);\n container.addEmitter = async (options, position) => this.addEmitter(options, position);\n container.removeEmitter = idxOrName => {\n const emitter = container.getEmitter(idxOrName);\n if (emitter) {\n this.removeEmitter(emitter);\n }\n };\n container.playEmitter = idxOrName => {\n const emitter = container.getEmitter(idxOrName);\n if (emitter) {\n emitter.externalPlay();\n }\n };\n container.pauseEmitter = idxOrName => {\n const emitter = container.getEmitter(idxOrName);\n if (emitter) {\n emitter.externalPause();\n }\n };\n }\n async addEmitter(options, position) {\n const {\n Emitter\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.bind(__webpack_require__, /*! ./Options/Classes/Emitter.js */ \"../../plugins/emitters/dist/browser/Options/Classes/Emitter.js\")),\n {\n EmitterInstance\n } = await __webpack_require__.e(/*! import() */ \"plugins_emitters_dist_browser_EmitterInstance_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmitterInstance.js */ \"../../plugins/emitters/dist/browser/EmitterInstance.js\")),\n emitterOptions = new Emitter();\n emitterOptions.load(options);\n const emitter = new EmitterInstance(this._engine, this, this.container, emitterOptions, position);\n await emitter.init();\n this.array.push(emitter);\n return emitter;\n }\n handleClickMode(mode) {\n const emitterOptions = this.emitters,\n modeEmitters = this.interactivityEmitters;\n if (mode !== \"emitter\") {\n return;\n }\n let emittersModeOptions;\n if (modeEmitters && (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isArray)(modeEmitters.value)) {\n const minLength = 0;\n if (modeEmitters.value.length > minLength && modeEmitters.random.enable) {\n emittersModeOptions = [];\n const usedIndexes = [];\n for (let i = 0; i < modeEmitters.random.count; i++) {\n const idx = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.arrayRandomIndex)(modeEmitters.value);\n if (usedIndexes.includes(idx) && usedIndexes.length < modeEmitters.value.length) {\n i--;\n continue;\n }\n usedIndexes.push(idx);\n emittersModeOptions.push((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromArray)(modeEmitters.value, idx));\n }\n } else {\n emittersModeOptions = modeEmitters.value;\n }\n } else {\n emittersModeOptions = modeEmitters?.value;\n }\n const emittersOptions = emittersModeOptions ?? emitterOptions,\n ePosition = this.container.interactivity.mouse.clickPosition;\n void (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.executeOnSingleOrMultiple)(emittersOptions, async emitter => {\n await this.addEmitter(emitter, ePosition);\n });\n }\n async init() {\n this.emitters = this.container.actualOptions.emitters;\n this.interactivityEmitters = this.container.actualOptions.interactivity.modes.emitters;\n if (!this.emitters) {\n return;\n }\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isArray)(this.emitters)) {\n for (const emitterOptions of this.emitters) {\n await this.addEmitter(emitterOptions);\n }\n } else {\n await this.addEmitter(this.emitters);\n }\n }\n pause() {\n for (const emitter of this.array) {\n emitter.pause();\n }\n }\n play() {\n for (const emitter of this.array) {\n emitter.play();\n }\n }\n removeEmitter(emitter) {\n const index = this.array.indexOf(emitter),\n minIndex = 0,\n deleteCount = 1;\n if (index >= minIndex) {\n this.array.splice(index, deleteCount);\n }\n }\n resize() {\n for (const emitter of this.array) {\n emitter.resize();\n }\n }\n stop() {\n this.array = [];\n }\n async update(delta) {\n for (const emitter of this.array) {\n await emitter.update(delta);\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../plugins/emitters/dist/browser/Emitters.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Emitters: () => (/* binding */ Emitters)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass Emitters {\n constructor(engine, container) {\n this.container = container;\n this._engine = engine;\n this.array = [];\n this.emitters = [];\n this.interactivityEmitters = {\n random: {\n count: 1,\n enable: false\n },\n value: []\n };\n const defaultIndex = 0;\n container.getEmitter = idxOrName => idxOrName === undefined || (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNumber)(idxOrName) ? this.array[idxOrName ?? defaultIndex] : this.array.find(t => t.name === idxOrName);\n container.addEmitter = async (options, position) => this.addEmitter(options, position);\n container.removeEmitter = idxOrName => {\n const emitter = container.getEmitter(idxOrName);\n if (emitter) {\n this.removeEmitter(emitter);\n }\n };\n container.playEmitter = idxOrName => {\n const emitter = container.getEmitter(idxOrName);\n if (emitter) {\n emitter.externalPlay();\n }\n };\n container.pauseEmitter = idxOrName => {\n const emitter = container.getEmitter(idxOrName);\n if (emitter) {\n emitter.externalPause();\n }\n };\n }\n async addEmitter(options, position) {\n const {\n Emitter\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.bind(__webpack_require__, /*! ./Options/Classes/Emitter.js */ \"../../plugins/emitters/dist/browser/Options/Classes/Emitter.js\")),\n {\n EmitterInstance\n } = await __webpack_require__.e(/*! import() */ \"plugins_emitters_dist_browser_EmitterInstance_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmitterInstance.js */ \"../../plugins/emitters/dist/browser/EmitterInstance.js\")),\n emitterOptions = new Emitter();\n emitterOptions.load(options);\n const emitter = new EmitterInstance(this._engine, this, this.container, emitterOptions, position);\n await emitter.init();\n this.array.push(emitter);\n return emitter;\n }\n handleClickMode(mode) {\n const emitterOptions = this.emitters,\n modeEmitters = this.interactivityEmitters;\n if (mode !== \"emitter\") {\n return;\n }\n let emittersModeOptions;\n if (modeEmitters && (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isArray)(modeEmitters.value)) {\n const minLength = 0;\n if (modeEmitters.value.length > minLength && modeEmitters.random.enable) {\n emittersModeOptions = [];\n const usedIndexes = [];\n for (let i = 0; i < modeEmitters.random.count; i++) {\n const idx = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.arrayRandomIndex)(modeEmitters.value);\n if (usedIndexes.includes(idx) && usedIndexes.length < modeEmitters.value.length) {\n i--;\n continue;\n }\n usedIndexes.push(idx);\n emittersModeOptions.push((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromArray)(modeEmitters.value, idx));\n }\n } else {\n emittersModeOptions = modeEmitters.value;\n }\n } else {\n emittersModeOptions = modeEmitters?.value;\n }\n const emittersOptions = emittersModeOptions ?? emitterOptions,\n ePosition = this.container.interactivity.mouse.clickPosition;\n void (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.executeOnSingleOrMultiple)(emittersOptions, async emitter => {\n await this.addEmitter(emitter, ePosition);\n });\n }\n async init() {\n this.emitters = this.container.actualOptions.emitters;\n this.interactivityEmitters = this.container.actualOptions.interactivity.modes.emitters;\n if (!this.emitters) {\n return;\n }\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isArray)(this.emitters)) {\n for (const emitterOptions of this.emitters) {\n await this.addEmitter(emitterOptions);\n }\n } else {\n await this.addEmitter(this.emitters);\n }\n }\n pause() {\n for (const emitter of this.array) {\n emitter.pause();\n }\n }\n play() {\n for (const emitter of this.array) {\n emitter.play();\n }\n }\n removeEmitter(emitter) {\n const index = this.array.indexOf(emitter),\n minIndex = 0,\n deleteCount = 1;\n if (index >= minIndex) {\n this.array.splice(index, deleteCount);\n }\n }\n resize() {\n for (const emitter of this.array) {\n emitter.resize();\n }\n }\n stop() {\n this.array = [];\n }\n update(delta) {\n for (const emitter of this.array) {\n emitter.update(delta);\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../plugins/emitters/dist/browser/Emitters.js?");

@@ -30,0 +30,0 @@ /***/ })

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,6 +27,16 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ClubDrawer: () => (/* binding */ ClubDrawer)\n/* harmony export */ });\nclass ClubDrawer {\n async draw(data) {\n const {\n drawPath,\n paths\n } = await __webpack_require__.e(/*! import() */ \"shapes_cards_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/cards/dist/browser/Utils.js\"));\n drawPath(data, paths.club);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/cards/dist/browser/ClubDrawer.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ClubDrawer: () => (/* binding */ ClubDrawer)\n/* harmony export */ });\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/cards/dist/browser/Utils.js\");\n\nclass ClubDrawer {\n draw(data) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_0__.drawPath)(data, _Utils_js__WEBPACK_IMPORTED_MODULE_0__.paths.club);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/cards/dist/browser/ClubDrawer.js?");
/***/ }),
/***/ "../../shapes/cards/dist/browser/Utils.js":
/*!************************************************!*\
!*** ../../shapes/cards/dist/browser/Utils.js ***!
\************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawPath: () => (/* binding */ drawPath),\n/* harmony export */ paths: () => (/* binding */ paths)\n/* harmony export */ });\nfunction drawPath(data, path) {\n if (!path.segments.length || !path.segments[0].values.length) {\n return;\n }\n const {\n context,\n radius\n } = data;\n context.moveTo(path.segments[0].values[0].x * radius, path.segments[0].values[0].y * radius);\n for (const segment of path.segments) {\n context.bezierCurveTo(segment.values[1].x * radius, segment.values[1].y * radius, segment.values[2].x * radius, segment.values[2].y * radius, segment.values[3].x * radius, segment.values[3].y * radius);\n }\n for (let i = path.segments.length - 1; i >= 0; i--) {\n const segment = path.segments[i];\n context.bezierCurveTo(-segment.values[2].x * radius, segment.values[2].y * radius, -segment.values[1].x * radius, segment.values[1].y * radius, -segment.values[0].x * radius, segment.values[0].y * radius);\n }\n}\nconst n = 1.0 / 2;\nconst paths = {\n heart: {\n segments: [{\n values: [{\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: n,\n y: 0\n }, {\n x: n,\n y: -n / 2\n }]\n }, {\n values: [{\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: -n\n }, {\n x: n / 2,\n y: -n\n }]\n }, {\n values: [{\n x: n / 2,\n y: -n\n }, {\n x: n / 2,\n y: -n\n }, {\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n / 2\n }]\n }]\n },\n diamond: {\n segments: [{\n values: [{\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: 3 * n / 4,\n y: 0\n }, {\n x: 3 * n / 4,\n y: 0\n }]\n }, {\n values: [{\n x: 3 * n / 4,\n y: 0\n }, {\n x: 3 * n / 4,\n y: 0\n }, {\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n\n }]\n }]\n },\n club: {\n segments: [{\n values: [{\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n\n }, {\n x: n / 2,\n y: -n\n }, {\n x: n / 2,\n y: -n / 2\n }]\n }, {\n values: [{\n x: n / 2,\n y: -n / 2\n }, {\n x: n / 2,\n y: -n / 2\n }, {\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: 0\n }]\n }, {\n values: [{\n x: n,\n y: 0\n }, {\n x: n,\n y: 0\n }, {\n x: n,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }]\n }, {\n values: [{\n x: n / 2,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 8\n }]\n }, {\n values: [{\n x: n / 8,\n y: n / 8\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }]\n }, {\n values: [{\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }]\n }]\n },\n spade: {\n segments: [{\n values: [{\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n\n }, {\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: 0\n }]\n }, {\n values: [{\n x: n,\n y: 0\n }, {\n x: n,\n y: 0\n }, {\n x: n,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }]\n }, {\n values: [{\n x: n / 2,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 8\n }]\n }, {\n values: [{\n x: n / 8,\n y: n / 8\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }]\n }, {\n values: [{\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }]\n }]\n }\n};\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/cards/dist/browser/Utils.js?");
/***/ })
}]);

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,6 +27,16 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DiamondDrawer: () => (/* binding */ DiamondDrawer)\n/* harmony export */ });\nclass DiamondDrawer {\n async draw(data) {\n const {\n drawPath,\n paths\n } = await __webpack_require__.e(/*! import() */ \"shapes_cards_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/cards/dist/browser/Utils.js\"));\n drawPath(data, paths.diamond);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/cards/dist/browser/DiamondDrawer.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DiamondDrawer: () => (/* binding */ DiamondDrawer)\n/* harmony export */ });\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/cards/dist/browser/Utils.js\");\n\nclass DiamondDrawer {\n draw(data) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_0__.drawPath)(data, _Utils_js__WEBPACK_IMPORTED_MODULE_0__.paths.diamond);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/cards/dist/browser/DiamondDrawer.js?");
/***/ }),
/***/ "../../shapes/cards/dist/browser/Utils.js":
/*!************************************************!*\
!*** ../../shapes/cards/dist/browser/Utils.js ***!
\************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawPath: () => (/* binding */ drawPath),\n/* harmony export */ paths: () => (/* binding */ paths)\n/* harmony export */ });\nfunction drawPath(data, path) {\n if (!path.segments.length || !path.segments[0].values.length) {\n return;\n }\n const {\n context,\n radius\n } = data;\n context.moveTo(path.segments[0].values[0].x * radius, path.segments[0].values[0].y * radius);\n for (const segment of path.segments) {\n context.bezierCurveTo(segment.values[1].x * radius, segment.values[1].y * radius, segment.values[2].x * radius, segment.values[2].y * radius, segment.values[3].x * radius, segment.values[3].y * radius);\n }\n for (let i = path.segments.length - 1; i >= 0; i--) {\n const segment = path.segments[i];\n context.bezierCurveTo(-segment.values[2].x * radius, segment.values[2].y * radius, -segment.values[1].x * radius, segment.values[1].y * radius, -segment.values[0].x * radius, segment.values[0].y * radius);\n }\n}\nconst n = 1.0 / 2;\nconst paths = {\n heart: {\n segments: [{\n values: [{\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: n,\n y: 0\n }, {\n x: n,\n y: -n / 2\n }]\n }, {\n values: [{\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: -n\n }, {\n x: n / 2,\n y: -n\n }]\n }, {\n values: [{\n x: n / 2,\n y: -n\n }, {\n x: n / 2,\n y: -n\n }, {\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n / 2\n }]\n }]\n },\n diamond: {\n segments: [{\n values: [{\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: 3 * n / 4,\n y: 0\n }, {\n x: 3 * n / 4,\n y: 0\n }]\n }, {\n values: [{\n x: 3 * n / 4,\n y: 0\n }, {\n x: 3 * n / 4,\n y: 0\n }, {\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n\n }]\n }]\n },\n club: {\n segments: [{\n values: [{\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n\n }, {\n x: n / 2,\n y: -n\n }, {\n x: n / 2,\n y: -n / 2\n }]\n }, {\n values: [{\n x: n / 2,\n y: -n / 2\n }, {\n x: n / 2,\n y: -n / 2\n }, {\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: 0\n }]\n }, {\n values: [{\n x: n,\n y: 0\n }, {\n x: n,\n y: 0\n }, {\n x: n,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }]\n }, {\n values: [{\n x: n / 2,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 8\n }]\n }, {\n values: [{\n x: n / 8,\n y: n / 8\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }]\n }, {\n values: [{\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }]\n }]\n },\n spade: {\n segments: [{\n values: [{\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n\n }, {\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: 0\n }]\n }, {\n values: [{\n x: n,\n y: 0\n }, {\n x: n,\n y: 0\n }, {\n x: n,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }]\n }, {\n values: [{\n x: n / 2,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 8\n }]\n }, {\n values: [{\n x: n / 8,\n y: n / 8\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }]\n }, {\n values: [{\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }]\n }]\n }\n};\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/cards/dist/browser/Utils.js?");
/***/ })
}]);

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,6 +27,16 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ HeartDrawer: () => (/* binding */ HeartDrawer)\n/* harmony export */ });\nclass HeartDrawer {\n async draw(data) {\n const {\n drawPath,\n paths\n } = await __webpack_require__.e(/*! import() */ \"shapes_cards_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/cards/dist/browser/Utils.js\"));\n drawPath(data, paths.heart);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/cards/dist/browser/HeartDrawer.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ HeartDrawer: () => (/* binding */ HeartDrawer)\n/* harmony export */ });\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/cards/dist/browser/Utils.js\");\n\nclass HeartDrawer {\n draw(data) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_0__.drawPath)(data, _Utils_js__WEBPACK_IMPORTED_MODULE_0__.paths.heart);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/cards/dist/browser/HeartDrawer.js?");
/***/ }),
/***/ "../../shapes/cards/dist/browser/Utils.js":
/*!************************************************!*\
!*** ../../shapes/cards/dist/browser/Utils.js ***!
\************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawPath: () => (/* binding */ drawPath),\n/* harmony export */ paths: () => (/* binding */ paths)\n/* harmony export */ });\nfunction drawPath(data, path) {\n if (!path.segments.length || !path.segments[0].values.length) {\n return;\n }\n const {\n context,\n radius\n } = data;\n context.moveTo(path.segments[0].values[0].x * radius, path.segments[0].values[0].y * radius);\n for (const segment of path.segments) {\n context.bezierCurveTo(segment.values[1].x * radius, segment.values[1].y * radius, segment.values[2].x * radius, segment.values[2].y * radius, segment.values[3].x * radius, segment.values[3].y * radius);\n }\n for (let i = path.segments.length - 1; i >= 0; i--) {\n const segment = path.segments[i];\n context.bezierCurveTo(-segment.values[2].x * radius, segment.values[2].y * radius, -segment.values[1].x * radius, segment.values[1].y * radius, -segment.values[0].x * radius, segment.values[0].y * radius);\n }\n}\nconst n = 1.0 / 2;\nconst paths = {\n heart: {\n segments: [{\n values: [{\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: n,\n y: 0\n }, {\n x: n,\n y: -n / 2\n }]\n }, {\n values: [{\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: -n\n }, {\n x: n / 2,\n y: -n\n }]\n }, {\n values: [{\n x: n / 2,\n y: -n\n }, {\n x: n / 2,\n y: -n\n }, {\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n / 2\n }]\n }]\n },\n diamond: {\n segments: [{\n values: [{\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: 3 * n / 4,\n y: 0\n }, {\n x: 3 * n / 4,\n y: 0\n }]\n }, {\n values: [{\n x: 3 * n / 4,\n y: 0\n }, {\n x: 3 * n / 4,\n y: 0\n }, {\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n\n }]\n }]\n },\n club: {\n segments: [{\n values: [{\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n\n }, {\n x: n / 2,\n y: -n\n }, {\n x: n / 2,\n y: -n / 2\n }]\n }, {\n values: [{\n x: n / 2,\n y: -n / 2\n }, {\n x: n / 2,\n y: -n / 2\n }, {\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: 0\n }]\n }, {\n values: [{\n x: n,\n y: 0\n }, {\n x: n,\n y: 0\n }, {\n x: n,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }]\n }, {\n values: [{\n x: n / 2,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 8\n }]\n }, {\n values: [{\n x: n / 8,\n y: n / 8\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }]\n }, {\n values: [{\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }]\n }]\n },\n spade: {\n segments: [{\n values: [{\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n\n }, {\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: 0\n }]\n }, {\n values: [{\n x: n,\n y: 0\n }, {\n x: n,\n y: 0\n }, {\n x: n,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }]\n }, {\n values: [{\n x: n / 2,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 8\n }]\n }, {\n values: [{\n x: n / 8,\n y: n / 8\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }]\n }, {\n values: [{\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }]\n }]\n }\n};\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/cards/dist/browser/Utils.js?");
/***/ })
}]);

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,6 +27,16 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SpadeDrawer: () => (/* binding */ SpadeDrawer)\n/* harmony export */ });\nclass SpadeDrawer {\n async draw(data) {\n const {\n drawPath,\n paths\n } = await __webpack_require__.e(/*! import() */ \"shapes_cards_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/cards/dist/browser/Utils.js\"));\n drawPath(data, paths.spade);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/cards/dist/browser/SpadeDrawer.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SpadeDrawer: () => (/* binding */ SpadeDrawer)\n/* harmony export */ });\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/cards/dist/browser/Utils.js\");\n\nclass SpadeDrawer {\n draw(data) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_0__.drawPath)(data, _Utils_js__WEBPACK_IMPORTED_MODULE_0__.paths.spade);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/cards/dist/browser/SpadeDrawer.js?");
/***/ }),
/***/ "../../shapes/cards/dist/browser/Utils.js":
/*!************************************************!*\
!*** ../../shapes/cards/dist/browser/Utils.js ***!
\************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawPath: () => (/* binding */ drawPath),\n/* harmony export */ paths: () => (/* binding */ paths)\n/* harmony export */ });\nfunction drawPath(data, path) {\n if (!path.segments.length || !path.segments[0].values.length) {\n return;\n }\n const {\n context,\n radius\n } = data;\n context.moveTo(path.segments[0].values[0].x * radius, path.segments[0].values[0].y * radius);\n for (const segment of path.segments) {\n context.bezierCurveTo(segment.values[1].x * radius, segment.values[1].y * radius, segment.values[2].x * radius, segment.values[2].y * radius, segment.values[3].x * radius, segment.values[3].y * radius);\n }\n for (let i = path.segments.length - 1; i >= 0; i--) {\n const segment = path.segments[i];\n context.bezierCurveTo(-segment.values[2].x * radius, segment.values[2].y * radius, -segment.values[1].x * radius, segment.values[1].y * radius, -segment.values[0].x * radius, segment.values[0].y * radius);\n }\n}\nconst n = 1.0 / 2;\nconst paths = {\n heart: {\n segments: [{\n values: [{\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: n,\n y: 0\n }, {\n x: n,\n y: -n / 2\n }]\n }, {\n values: [{\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: -n\n }, {\n x: n / 2,\n y: -n\n }]\n }, {\n values: [{\n x: n / 2,\n y: -n\n }, {\n x: n / 2,\n y: -n\n }, {\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n / 2\n }]\n }]\n },\n diamond: {\n segments: [{\n values: [{\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: 3 * n / 4,\n y: 0\n }, {\n x: 3 * n / 4,\n y: 0\n }]\n }, {\n values: [{\n x: 3 * n / 4,\n y: 0\n }, {\n x: 3 * n / 4,\n y: 0\n }, {\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n\n }]\n }]\n },\n club: {\n segments: [{\n values: [{\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n\n }, {\n x: n / 2,\n y: -n\n }, {\n x: n / 2,\n y: -n / 2\n }]\n }, {\n values: [{\n x: n / 2,\n y: -n / 2\n }, {\n x: n / 2,\n y: -n / 2\n }, {\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: 0\n }]\n }, {\n values: [{\n x: n,\n y: 0\n }, {\n x: n,\n y: 0\n }, {\n x: n,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }]\n }, {\n values: [{\n x: n / 2,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 8\n }]\n }, {\n values: [{\n x: n / 8,\n y: n / 8\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }]\n }, {\n values: [{\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }]\n }]\n },\n spade: {\n segments: [{\n values: [{\n x: 0,\n y: -n\n }, {\n x: 0,\n y: -n\n }, {\n x: n,\n y: -n / 2\n }, {\n x: n,\n y: 0\n }]\n }, {\n values: [{\n x: n,\n y: 0\n }, {\n x: n,\n y: 0\n }, {\n x: n,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }]\n }, {\n values: [{\n x: n / 2,\n y: n / 2\n }, {\n x: n / 2,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 8,\n y: n / 8\n }]\n }, {\n values: [{\n x: n / 8,\n y: n / 8\n }, {\n x: n / 8,\n y: n / 2\n }, {\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }]\n }, {\n values: [{\n x: n / 2,\n y: n\n }, {\n x: n / 2,\n y: n\n }, {\n x: 0,\n y: n\n }, {\n x: 0,\n y: n\n }]\n }]\n }\n};\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/cards/dist/browser/Utils.js?");
/***/ })
}]);

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,6 +27,16 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ CircleDrawer: () => (/* binding */ CircleDrawer)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst sides = 12,\n maxAngle = 360,\n minAngle = 0;\nclass CircleDrawer {\n async draw(data) {\n const {\n drawCircle\n } = await __webpack_require__.e(/*! import() */ \"shapes_circle_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/circle/dist/browser/Utils.js\"));\n drawCircle(data);\n }\n getSidesCount() {\n return sides;\n }\n async particleInit(container, particle) {\n const shapeData = particle.shapeData,\n angle = shapeData?.angle ?? {\n max: maxAngle,\n min: minAngle\n };\n particle.circleRange = !(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isObject)(angle) ? {\n min: minAngle,\n max: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)(angle)\n } : {\n min: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)(angle.min),\n max: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)(angle.max)\n };\n await Promise.resolve();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/circle/dist/browser/CircleDrawer.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ CircleDrawer: () => (/* binding */ CircleDrawer)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/circle/dist/browser/Utils.js\");\n\n\nconst sides = 12,\n maxAngle = 360,\n minAngle = 0;\nclass CircleDrawer {\n draw(data) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.drawCircle)(data);\n }\n getSidesCount() {\n return sides;\n }\n particleInit(container, particle) {\n const shapeData = particle.shapeData,\n angle = shapeData?.angle ?? {\n max: maxAngle,\n min: minAngle\n };\n particle.circleRange = !(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isObject)(angle) ? {\n min: minAngle,\n max: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)(angle)\n } : {\n min: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)(angle.min),\n max: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)(angle.max)\n };\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/circle/dist/browser/CircleDrawer.js?");
/***/ }),
/***/ "../../shapes/circle/dist/browser/Utils.js":
/*!*************************************************!*\
!*** ../../shapes/circle/dist/browser/Utils.js ***!
\*************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawCircle: () => (/* binding */ drawCircle)\n/* harmony export */ });\nconst double = 2,\n doublePI = Math.PI * double,\n minAngle = 0,\n origin = {\n x: 0,\n y: 0\n };\nfunction drawCircle(data) {\n const {\n context,\n particle,\n radius\n } = data;\n if (!particle.circleRange) {\n particle.circleRange = {\n min: minAngle,\n max: doublePI\n };\n }\n const circleRange = particle.circleRange;\n context.arc(origin.x, origin.y, radius, circleRange.min, circleRange.max, false);\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/circle/dist/browser/Utils.js?");
/***/ })
}]);

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,6 +27,16 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmojiDrawer: () => (/* binding */ EmojiDrawer)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants.js */ \"../../shapes/emoji/dist/browser/Constants.js\");\n\n\nconst defaultFont = '\"Twemoji Mozilla\", Apple Color Emoji, \"Segoe UI Emoji\", \"Noto Color Emoji\", \"EmojiOne Color\"';\nclass EmojiDrawer {\n constructor() {\n this._emojiShapeDict = new Map();\n }\n destroy() {\n for (const [key, emojiData] of this._emojiShapeDict) {\n if (emojiData instanceof ImageBitmap) {\n emojiData?.close();\n this._emojiShapeDict.delete(key);\n }\n }\n }\n async draw(data) {\n const {\n drawEmoji\n } = await __webpack_require__.e(/*! import() */ \"shapes_emoji_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/emoji/dist/browser/Utils.js\"));\n drawEmoji(data);\n }\n async init(container) {\n const options = container.actualOptions;\n if (!_Constants_js__WEBPACK_IMPORTED_MODULE_1__.validTypes.find(t => (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isInArray)(t, options.particles.shape.type))) {\n return;\n }\n const promises = [(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.loadFont)(defaultFont)],\n shapeOptions = _Constants_js__WEBPACK_IMPORTED_MODULE_1__.validTypes.map(t => options.particles.shape.options[t]).find(t => !!t);\n if (shapeOptions) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.executeOnSingleOrMultiple)(shapeOptions, shape => {\n if (shape.font) {\n promises.push((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.loadFont)(shape.font));\n }\n });\n }\n await Promise.all(promises);\n }\n particleDestroy(particle) {\n delete particle.emojiData;\n }\n async particleInit(container, particle) {\n const double = 2,\n shapeData = particle.shapeData;\n if (!shapeData?.value) {\n return;\n }\n const emoji = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(shapeData.value, particle.randomIndexData),\n font = shapeData.font ?? defaultFont;\n if (!emoji) {\n return;\n }\n const key = `${emoji}_${font}`,\n existingData = this._emojiShapeDict.get(key);\n if (existingData) {\n particle.emojiData = existingData;\n return;\n }\n const canvasSize = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(particle.size.value) * double;\n let emojiData;\n const maxSize = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(particle.size.value);\n if (typeof OffscreenCanvas !== \"undefined\") {\n const canvas = new OffscreenCanvas(canvasSize, canvasSize),\n context = canvas.getContext(\"2d\");\n if (!context) {\n return;\n }\n context.font = `400 ${maxSize * double}px ${font}`;\n context.textBaseline = \"middle\";\n context.textAlign = \"center\";\n context.fillText(emoji, maxSize, maxSize);\n emojiData = canvas.transferToImageBitmap();\n } else {\n const canvas = document.createElement(\"canvas\");\n canvas.width = canvasSize;\n canvas.height = canvasSize;\n const context = canvas.getContext(\"2d\");\n if (!context) {\n return;\n }\n context.font = `400 ${maxSize * double}px ${font}`;\n context.textBaseline = \"middle\";\n context.textAlign = \"center\";\n context.fillText(emoji, maxSize, maxSize);\n emojiData = canvas;\n }\n this._emojiShapeDict.set(key, emojiData);\n particle.emojiData = emojiData;\n await Promise.resolve();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/emoji/dist/browser/EmojiDrawer.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmojiDrawer: () => (/* binding */ EmojiDrawer)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/emoji/dist/browser/Utils.js\");\n/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Constants.js */ \"../../shapes/emoji/dist/browser/Constants.js\");\n\n\n\nconst defaultFont = '\"Twemoji Mozilla\", Apple Color Emoji, \"Segoe UI Emoji\", \"Noto Color Emoji\", \"EmojiOne Color\"';\nclass EmojiDrawer {\n constructor() {\n this._emojiShapeDict = new Map();\n }\n destroy() {\n for (const [key, emojiData] of this._emojiShapeDict) {\n if (emojiData instanceof ImageBitmap) {\n emojiData?.close();\n this._emojiShapeDict.delete(key);\n }\n }\n }\n draw(data) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.drawEmoji)(data);\n }\n async init(container) {\n const options = container.actualOptions;\n if (!_Constants_js__WEBPACK_IMPORTED_MODULE_2__.validTypes.find(t => (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isInArray)(t, options.particles.shape.type))) {\n return;\n }\n const promises = [(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.loadFont)(defaultFont)],\n shapeOptions = _Constants_js__WEBPACK_IMPORTED_MODULE_2__.validTypes.map(t => options.particles.shape.options[t]).find(t => !!t);\n if (shapeOptions) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.executeOnSingleOrMultiple)(shapeOptions, shape => {\n if (shape.font) {\n promises.push((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.loadFont)(shape.font));\n }\n });\n }\n await Promise.all(promises);\n }\n particleDestroy(particle) {\n delete particle.emojiData;\n }\n particleInit(container, particle) {\n const double = 2,\n shapeData = particle.shapeData;\n if (!shapeData?.value) {\n return;\n }\n const emoji = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(shapeData.value, particle.randomIndexData),\n font = shapeData.font ?? defaultFont;\n if (!emoji) {\n return;\n }\n const key = `${emoji}_${font}`,\n existingData = this._emojiShapeDict.get(key);\n if (existingData) {\n particle.emojiData = existingData;\n return;\n }\n const canvasSize = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(particle.size.value) * double;\n let emojiData;\n const maxSize = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(particle.size.value);\n if (typeof OffscreenCanvas !== \"undefined\") {\n const canvas = new OffscreenCanvas(canvasSize, canvasSize),\n context = canvas.getContext(\"2d\");\n if (!context) {\n return;\n }\n context.font = `400 ${maxSize * double}px ${font}`;\n context.textBaseline = \"middle\";\n context.textAlign = \"center\";\n context.fillText(emoji, maxSize, maxSize);\n emojiData = canvas.transferToImageBitmap();\n } else {\n const canvas = document.createElement(\"canvas\");\n canvas.width = canvasSize;\n canvas.height = canvasSize;\n const context = canvas.getContext(\"2d\");\n if (!context) {\n return;\n }\n context.font = `400 ${maxSize * double}px ${font}`;\n context.textBaseline = \"middle\";\n context.textAlign = \"center\";\n context.fillText(emoji, maxSize, maxSize);\n emojiData = canvas;\n }\n this._emojiShapeDict.set(key, emojiData);\n particle.emojiData = emojiData;\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/emoji/dist/browser/EmojiDrawer.js?");
/***/ }),
/***/ "../../shapes/emoji/dist/browser/Utils.js":
/*!************************************************!*\
!*** ../../shapes/emoji/dist/browser/Utils.js ***!
\************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawEmoji: () => (/* binding */ drawEmoji)\n/* harmony export */ });\nfunction drawEmoji(data) {\n const {\n context,\n particle,\n radius,\n opacity\n } = data,\n emojiData = particle.emojiData,\n double = 2,\n diameter = radius * double,\n previousAlpha = context.globalAlpha;\n if (!emojiData) {\n return;\n }\n context.globalAlpha = opacity;\n context.drawImage(emojiData, -radius, -radius, diameter, diameter);\n context.globalAlpha = previousAlpha;\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/emoji/dist/browser/Utils.js?");
/***/ })
}]);

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,6 +27,16 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ HeartDrawer: () => (/* binding */ HeartDrawer)\n/* harmony export */ });\nclass HeartDrawer {\n async draw(data) {\n const {\n drawHeart\n } = await __webpack_require__.e(/*! import() */ \"shapes_heart_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/heart/dist/browser/Utils.js\"));\n drawHeart(data);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/heart/dist/browser/HeartDrawer.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ HeartDrawer: () => (/* binding */ HeartDrawer)\n/* harmony export */ });\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/heart/dist/browser/Utils.js\");\n\nclass HeartDrawer {\n draw(data) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_0__.drawHeart)(data);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/heart/dist/browser/HeartDrawer.js?");
/***/ }),
/***/ "../../shapes/heart/dist/browser/Utils.js":
/*!************************************************!*\
!*** ../../shapes/heart/dist/browser/Utils.js ***!
\************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawHeart: () => (/* binding */ drawHeart)\n/* harmony export */ });\nconst half = 0.5,\n double = 2;\nfunction drawHeart(data) {\n const {\n context,\n radius\n } = data,\n diameter = radius * double,\n halfRadius = radius * half,\n radiusAndHalf = radius + halfRadius,\n x = -radius,\n y = -radius;\n context.moveTo(x, y + halfRadius);\n context.quadraticCurveTo(x, y, x + halfRadius, y);\n context.quadraticCurveTo(x + radius, y, x + radius, y + halfRadius);\n context.quadraticCurveTo(x + radius, y, x + radiusAndHalf, y);\n context.quadraticCurveTo(x + diameter, y, x + diameter, y + halfRadius);\n context.quadraticCurveTo(x + diameter, y + radius, x + radiusAndHalf, y + radiusAndHalf);\n context.lineTo(x + radius, y + diameter);\n context.lineTo(x + halfRadius, y + radiusAndHalf);\n context.quadraticCurveTo(x, y + radius, x, y + halfRadius);\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/heart/dist/browser/Utils.js?");
/***/ })
}]);

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,3 +27,3 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ImageDrawer: () => (/* binding */ ImageDrawer)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst double = 2,\n defaultAlpha = 1,\n sides = 12,\n defaultRatio = 1;\nclass ImageDrawer {\n constructor(engine) {\n this.loadImageShape = async imageShape => {\n if (!this._engine.loadImage) {\n throw new Error(`${_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.errorPrefix} image shape not initialized`);\n }\n await this._engine.loadImage({\n gif: imageShape.gif,\n name: imageShape.name,\n replaceColor: imageShape.replaceColor ?? false,\n src: imageShape.src\n });\n };\n this._engine = engine;\n }\n addImage(image) {\n if (!this._engine.images) {\n this._engine.images = [];\n }\n this._engine.images.push(image);\n }\n async draw(data) {\n const {\n context,\n radius,\n particle,\n opacity\n } = data,\n image = particle.image,\n element = image?.element;\n if (!image) {\n return;\n }\n context.globalAlpha = opacity;\n if (image.gif && image.gifData) {\n const {\n drawGif\n } = await __webpack_require__.e(/*! import() */ \"shapes_image_dist_browser_GifUtils_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./GifUtils/Utils.js */ \"../../shapes/image/dist/browser/GifUtils/Utils.js\"));\n drawGif(data);\n } else if (element) {\n const ratio = image.ratio,\n pos = {\n x: -radius,\n y: -radius\n },\n diameter = radius * double;\n context.drawImage(element, pos.x, pos.y, diameter, diameter / ratio);\n }\n context.globalAlpha = defaultAlpha;\n }\n getSidesCount() {\n return sides;\n }\n async init(container) {\n const options = container.actualOptions;\n if (!options.preload || !this._engine.loadImage) {\n return;\n }\n for (const imageData of options.preload) {\n await this._engine.loadImage(imageData);\n }\n }\n async loadShape(particle) {\n if (particle.shape !== \"image\" && particle.shape !== \"images\") {\n return;\n }\n if (!this._engine.images) {\n this._engine.images = [];\n }\n const imageData = particle.shapeData;\n if (!imageData) {\n return;\n }\n const image = this._engine.images.find(t => t.name === imageData.name || t.source === imageData.src);\n if (!image) {\n await this.loadImageShape(imageData);\n await this.loadShape(particle);\n }\n }\n async particleInit(container, particle) {\n if (particle.shape !== \"image\" && particle.shape !== \"images\") {\n return;\n }\n if (!this._engine.images) {\n this._engine.images = [];\n }\n const images = this._engine.images,\n imageData = particle.shapeData;\n if (!imageData) {\n return;\n }\n const color = particle.getFillColor(),\n image = images.find(t => t.name === imageData.name || t.source === imageData.src);\n if (!image) {\n return;\n }\n const replaceColor = imageData.replaceColor ?? image.replaceColor;\n if (image.loading) {\n setTimeout(() => {\n void this.particleInit(container, particle);\n });\n return;\n }\n let imageRes;\n if (image.svgData && color) {\n const {\n replaceImageColor\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/image/dist/browser/Utils.js\"));\n imageRes = await replaceImageColor(image, imageData, color, particle);\n } else {\n imageRes = {\n color,\n data: image,\n element: image.element,\n gif: image.gif,\n gifData: image.gifData,\n gifLoopCount: image.gifLoopCount,\n loaded: true,\n ratio: imageData.width && imageData.height ? imageData.width / imageData.height : image.ratio ?? defaultRatio,\n replaceColor: replaceColor,\n source: imageData.src\n };\n }\n if (!imageRes.ratio) {\n imageRes.ratio = 1;\n }\n const fill = imageData.fill ?? particle.shapeFill,\n close = imageData.close ?? particle.shapeClose,\n imageShape = {\n image: imageRes,\n fill,\n close\n };\n particle.image = imageShape.image;\n particle.shapeFill = imageShape.fill;\n particle.shapeClose = imageShape.close;\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/image/dist/browser/ImageDrawer.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ImageDrawer: () => (/* binding */ ImageDrawer)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/image/dist/browser/Utils.js\");\n/* harmony import */ var _GifUtils_Utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GifUtils/Utils.js */ \"../../shapes/image/dist/browser/GifUtils/Utils.js\");\n\n\n\nconst double = 2,\n defaultAlpha = 1,\n sides = 12,\n defaultRatio = 1;\nclass ImageDrawer {\n constructor(engine) {\n this.loadImageShape = async imageShape => {\n if (!this._engine.loadImage) {\n throw new Error(`${_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.errorPrefix} image shape not initialized`);\n }\n await this._engine.loadImage({\n gif: imageShape.gif,\n name: imageShape.name,\n replaceColor: imageShape.replaceColor ?? false,\n src: imageShape.src\n });\n };\n this._engine = engine;\n }\n addImage(image) {\n if (!this._engine.images) {\n this._engine.images = [];\n }\n this._engine.images.push(image);\n }\n draw(data) {\n const {\n context,\n radius,\n particle,\n opacity\n } = data,\n image = particle.image,\n element = image?.element;\n if (!image) {\n return;\n }\n context.globalAlpha = opacity;\n if (image.gif && image.gifData) {\n (0,_GifUtils_Utils_js__WEBPACK_IMPORTED_MODULE_2__.drawGif)(data);\n } else if (element) {\n const ratio = image.ratio,\n pos = {\n x: -radius,\n y: -radius\n },\n diameter = radius * double;\n context.drawImage(element, pos.x, pos.y, diameter, diameter / ratio);\n }\n context.globalAlpha = defaultAlpha;\n }\n getSidesCount() {\n return sides;\n }\n async init(container) {\n const options = container.actualOptions;\n if (!options.preload || !this._engine.loadImage) {\n return;\n }\n for (const imageData of options.preload) {\n await this._engine.loadImage(imageData);\n }\n }\n loadShape(particle) {\n if (particle.shape !== \"image\" && particle.shape !== \"images\") {\n return;\n }\n if (!this._engine.images) {\n this._engine.images = [];\n }\n const imageData = particle.shapeData;\n if (!imageData) {\n return;\n }\n const image = this._engine.images.find(t => t.name === imageData.name || t.source === imageData.src);\n if (!image) {\n void this.loadImageShape(imageData).then(() => {\n this.loadShape(particle);\n });\n }\n }\n particleInit(container, particle) {\n if (particle.shape !== \"image\" && particle.shape !== \"images\") {\n return;\n }\n if (!this._engine.images) {\n this._engine.images = [];\n }\n const images = this._engine.images,\n imageData = particle.shapeData;\n if (!imageData) {\n return;\n }\n const color = particle.getFillColor(),\n image = images.find(t => t.name === imageData.name || t.source === imageData.src);\n if (!image) {\n return;\n }\n const replaceColor = imageData.replaceColor ?? image.replaceColor;\n if (image.loading) {\n setTimeout(() => {\n this.particleInit(container, particle);\n });\n return;\n }\n void (async () => {\n let imageRes;\n if (image.svgData && color) {\n imageRes = await (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.replaceImageColor)(image, imageData, color, particle);\n } else {\n imageRes = {\n color,\n data: image,\n element: image.element,\n gif: image.gif,\n gifData: image.gifData,\n gifLoopCount: image.gifLoopCount,\n loaded: true,\n ratio: imageData.width && imageData.height ? imageData.width / imageData.height : image.ratio ?? defaultRatio,\n replaceColor: replaceColor,\n source: imageData.src\n };\n }\n if (!imageRes.ratio) {\n imageRes.ratio = 1;\n }\n const fill = imageData.fill ?? particle.shapeFill,\n close = imageData.close ?? particle.shapeClose,\n imageShape = {\n image: imageRes,\n fill,\n close\n };\n particle.image = imageShape.image;\n particle.shapeFill = imageShape.fill;\n particle.shapeClose = imageShape.close;\n })();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/image/dist/browser/ImageDrawer.js?");

@@ -30,0 +30,0 @@ /***/ })

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -37,3 +37,3 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadImageShape: () => (/* binding */ loadImageShape)\n/* harmony export */ });\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/image/dist/browser/Utils.js\");\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\n\nconst extLength = 3;\nfunction addLoadImageToEngine(engine) {\n if (engine.loadImage) {\n return;\n }\n engine.loadImage = async data => {\n if (!data.name && !data.src) {\n throw new Error(`${_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.errorPrefix} no image source provided`);\n }\n if (!engine.images) {\n engine.images = [];\n }\n if (engine.images.find(t => t.name === data.name || t.source === data.src)) {\n return;\n }\n try {\n const image = {\n gif: data.gif ?? false,\n name: data.name ?? data.src,\n source: data.src,\n type: data.src.substring(data.src.length - extLength),\n error: false,\n loading: true,\n replaceColor: data.replaceColor,\n ratio: data.width && data.height ? data.width / data.height : undefined\n };\n engine.images.push(image);\n let imageFunc;\n if (data.gif) {\n const {\n loadGifImage\n } = await __webpack_require__.e(/*! import() */ \"shapes_image_dist_browser_GifUtils_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./GifUtils/Utils.js */ \"../../shapes/image/dist/browser/GifUtils/Utils.js\"));\n imageFunc = loadGifImage;\n } else {\n imageFunc = data.replaceColor ? _Utils_js__WEBPACK_IMPORTED_MODULE_0__.downloadSvgImage : _Utils_js__WEBPACK_IMPORTED_MODULE_0__.loadImage;\n }\n await imageFunc(image);\n } catch {\n throw new Error(`${_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.errorPrefix} ${data.name ?? data.src} not found`);\n }\n };\n}\nasync function loadImageShape(engine, refresh = true) {\n addLoadImageToEngine(engine);\n const {\n ImagePreloaderPlugin\n } = await __webpack_require__.e(/*! import() */ \"shapes_image_dist_browser_ImagePreloader_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./ImagePreloader.js */ \"../../shapes/image/dist/browser/ImagePreloader.js\")),\n {\n ImageDrawer\n } = await __webpack_require__.e(/*! import() */ \"shapes_image_dist_browser_ImageDrawer_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./ImageDrawer.js */ \"../../shapes/image/dist/browser/ImageDrawer.js\"));\n const preloader = new ImagePreloaderPlugin(engine);\n await engine.addPlugin(preloader, refresh);\n await engine.addShape([\"image\", \"images\"], new ImageDrawer(engine), refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/image/dist/browser/index.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadImageShape: () => (/* binding */ loadImageShape)\n/* harmony export */ });\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/image/dist/browser/Utils.js\");\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\n\nconst extLength = 3;\nfunction addLoadImageToEngine(engine) {\n if (engine.loadImage) {\n return;\n }\n engine.loadImage = async data => {\n if (!data.name && !data.src) {\n throw new Error(`${_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.errorPrefix} no image source provided`);\n }\n if (!engine.images) {\n engine.images = [];\n }\n if (engine.images.find(t => t.name === data.name || t.source === data.src)) {\n return;\n }\n try {\n const image = {\n gif: data.gif ?? false,\n name: data.name ?? data.src,\n source: data.src,\n type: data.src.substring(data.src.length - extLength),\n error: false,\n loading: true,\n replaceColor: data.replaceColor,\n ratio: data.width && data.height ? data.width / data.height : undefined\n };\n engine.images.push(image);\n let imageFunc;\n if (data.gif) {\n const {\n loadGifImage\n } = await __webpack_require__.e(/*! import() */ \"shapes_image_dist_browser_GifUtils_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./GifUtils/Utils.js */ \"../../shapes/image/dist/browser/GifUtils/Utils.js\"));\n imageFunc = loadGifImage;\n } else {\n imageFunc = data.replaceColor ? _Utils_js__WEBPACK_IMPORTED_MODULE_0__.downloadSvgImage : _Utils_js__WEBPACK_IMPORTED_MODULE_0__.loadImage;\n }\n await imageFunc(image);\n } catch {\n throw new Error(`${_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.errorPrefix} ${data.name ?? data.src} not found`);\n }\n };\n}\nasync function loadImageShape(engine, refresh = true) {\n addLoadImageToEngine(engine);\n const {\n ImagePreloaderPlugin\n } = await __webpack_require__.e(/*! import() */ \"shapes_image_dist_browser_ImagePreloader_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./ImagePreloader.js */ \"../../shapes/image/dist/browser/ImagePreloader.js\")),\n {\n ImageDrawer\n } = await Promise.all(/*! import() */[__webpack_require__.e(\"shapes_image_dist_browser_GifUtils_Utils_js\"), __webpack_require__.e(\"shapes_image_dist_browser_ImageDrawer_js\")]).then(__webpack_require__.bind(__webpack_require__, /*! ./ImageDrawer.js */ \"../../shapes/image/dist/browser/ImageDrawer.js\"));\n const preloader = new ImagePreloaderPlugin(engine);\n await engine.addPlugin(preloader, refresh);\n await engine.addShape([\"image\", \"images\"], new ImageDrawer(engine), refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/image/dist/browser/index.js?");

@@ -40,0 +40,0 @@ /***/ })

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -37,6 +37,16 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonDrawerBase: () => (/* binding */ PolygonDrawerBase)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst defaultSides = 5;\nclass PolygonDrawerBase {\n async draw(data) {\n const {\n particle,\n radius\n } = data,\n start = this.getCenter(particle, radius),\n side = this.getSidesData(particle, radius),\n {\n drawPolygon\n } = await __webpack_require__.e(/*! import() */ \"shapes_polygon_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/polygon/dist/browser/Utils.js\"));\n drawPolygon(data, start, side);\n }\n getSidesCount(particle) {\n const polygon = particle.shapeData;\n return Math.round((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(polygon?.sides ?? defaultSides));\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/polygon/dist/browser/PolygonDrawerBase.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonDrawerBase: () => (/* binding */ PolygonDrawerBase)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/polygon/dist/browser/Utils.js\");\n\n\nconst defaultSides = 5;\nclass PolygonDrawerBase {\n draw(data) {\n const {\n particle,\n radius\n } = data,\n start = this.getCenter(particle, radius),\n side = this.getSidesData(particle, radius);\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.drawPolygon)(data, start, side);\n }\n getSidesCount(particle) {\n const polygon = particle.shapeData;\n return Math.round((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(polygon?.sides ?? defaultSides));\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/polygon/dist/browser/PolygonDrawerBase.js?");
/***/ }),
/***/ "../../shapes/polygon/dist/browser/Utils.js":
/*!**************************************************!*\
!*** ../../shapes/polygon/dist/browser/Utils.js ***!
\**************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawPolygon: () => (/* binding */ drawPolygon)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst piDeg = 180,\n origin = {\n x: 0,\n y: 0\n },\n sidesOffset = 2;\nfunction drawPolygon(data, start, side) {\n const {\n context\n } = data,\n sideCount = side.count.numerator * side.count.denominator,\n decimalSides = side.count.numerator / side.count.denominator,\n interiorAngleDegrees = piDeg * (decimalSides - sidesOffset) / decimalSides,\n interiorAngle = Math.PI - (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)(interiorAngleDegrees);\n if (!context) {\n return;\n }\n context.beginPath();\n context.translate(start.x, start.y);\n context.moveTo(origin.x, origin.y);\n for (let i = 0; i < sideCount; i++) {\n context.lineTo(side.length, origin.y);\n context.translate(side.length, origin.y);\n context.rotate(interiorAngle);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/polygon/dist/browser/Utils.js?");
/***/ })
}]);

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,3 +27,3 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonDrawerBase: () => (/* binding */ PolygonDrawerBase)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst defaultSides = 5;\nclass PolygonDrawerBase {\n async draw(data) {\n const {\n particle,\n radius\n } = data,\n start = this.getCenter(particle, radius),\n side = this.getSidesData(particle, radius),\n {\n drawPolygon\n } = await __webpack_require__.e(/*! import() */ \"shapes_polygon_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/polygon/dist/browser/Utils.js\"));\n drawPolygon(data, start, side);\n }\n getSidesCount(particle) {\n const polygon = particle.shapeData;\n return Math.round((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(polygon?.sides ?? defaultSides));\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/polygon/dist/browser/PolygonDrawerBase.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonDrawerBase: () => (/* binding */ PolygonDrawerBase)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/polygon/dist/browser/Utils.js\");\n\n\nconst defaultSides = 5;\nclass PolygonDrawerBase {\n draw(data) {\n const {\n particle,\n radius\n } = data,\n start = this.getCenter(particle, radius),\n side = this.getSidesData(particle, radius);\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.drawPolygon)(data, start, side);\n }\n getSidesCount(particle) {\n const polygon = particle.shapeData;\n return Math.round((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(polygon?.sides ?? defaultSides));\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/polygon/dist/browser/PolygonDrawerBase.js?");

@@ -40,4 +40,14 @@ /***/ }),

/***/ }),
/***/ "../../shapes/polygon/dist/browser/Utils.js":
/*!**************************************************!*\
!*** ../../shapes/polygon/dist/browser/Utils.js ***!
\**************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawPolygon: () => (/* binding */ drawPolygon)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst piDeg = 180,\n origin = {\n x: 0,\n y: 0\n },\n sidesOffset = 2;\nfunction drawPolygon(data, start, side) {\n const {\n context\n } = data,\n sideCount = side.count.numerator * side.count.denominator,\n decimalSides = side.count.numerator / side.count.denominator,\n interiorAngleDegrees = piDeg * (decimalSides - sidesOffset) / decimalSides,\n interiorAngle = Math.PI - (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)(interiorAngleDegrees);\n if (!context) {\n return;\n }\n context.beginPath();\n context.translate(start.x, start.y);\n context.moveTo(origin.x, origin.y);\n for (let i = 0; i < sideCount; i++) {\n context.lineTo(side.length, origin.y);\n context.translate(side.length, origin.y);\n context.rotate(interiorAngle);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/polygon/dist/browser/Utils.js?");
/***/ })
}]);

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,6 +27,16 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SquareDrawer: () => (/* binding */ SquareDrawer)\n/* harmony export */ });\nconst sides = 4;\nclass SquareDrawer {\n async draw(data) {\n const {\n drawSquare\n } = await __webpack_require__.e(/*! import() */ \"shapes_square_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/square/dist/browser/Utils.js\"));\n drawSquare(data);\n }\n getSidesCount() {\n return sides;\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/square/dist/browser/SquareDrawer.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SquareDrawer: () => (/* binding */ SquareDrawer)\n/* harmony export */ });\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/square/dist/browser/Utils.js\");\n\nconst sides = 4;\nclass SquareDrawer {\n draw(data) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_0__.drawSquare)(data);\n }\n getSidesCount() {\n return sides;\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/square/dist/browser/SquareDrawer.js?");
/***/ }),
/***/ "../../shapes/square/dist/browser/Utils.js":
/*!*************************************************!*\
!*** ../../shapes/square/dist/browser/Utils.js ***!
\*************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawSquare: () => (/* binding */ drawSquare)\n/* harmony export */ });\nconst fixFactorSquared = 2,\n fixFactor = Math.sqrt(fixFactorSquared),\n double = 2;\nfunction drawSquare(data) {\n const {\n context,\n radius\n } = data,\n fixedRadius = radius / fixFactor,\n fixedDiameter = fixedRadius * double;\n context.rect(-fixedRadius, -fixedRadius, fixedDiameter, fixedDiameter);\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/square/dist/browser/Utils.js?");
/***/ })
}]);

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,6 +27,16 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ StarDrawer: () => (/* binding */ StarDrawer)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst defaultInset = 2,\n defaultSides = 5;\nclass StarDrawer {\n async draw(data) {\n const {\n drawStar\n } = await __webpack_require__.e(/*! import() */ \"shapes_star_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../shapes/star/dist/browser/Utils.js\"));\n drawStar(data);\n }\n getSidesCount(particle) {\n const star = particle.shapeData;\n return Math.round((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(star?.sides ?? defaultSides));\n }\n async particleInit(container, particle) {\n const star = particle.shapeData;\n particle.starInset = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(star?.inset ?? defaultInset);\n await Promise.resolve();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/star/dist/browser/StarDrawer.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ StarDrawer: () => (/* binding */ StarDrawer)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utils.js */ \"../../shapes/star/dist/browser/Utils.js\");\n\n\nconst defaultInset = 2,\n defaultSides = 5;\nclass StarDrawer {\n draw(data) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.drawStar)(data);\n }\n getSidesCount(particle) {\n const star = particle.shapeData;\n return Math.round((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(star?.sides ?? defaultSides));\n }\n particleInit(container, particle) {\n const star = particle.shapeData;\n particle.starInset = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(star?.inset ?? defaultInset);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/star/dist/browser/StarDrawer.js?");
/***/ }),
/***/ "../../shapes/star/dist/browser/Utils.js":
/*!***********************************************!*\
!*** ../../shapes/star/dist/browser/Utils.js ***!
\***********************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ drawStar: () => (/* binding */ drawStar)\n/* harmony export */ });\nconst defaultInset = 2,\n origin = {\n x: 0,\n y: 0\n };\nfunction drawStar(data) {\n const {\n context,\n particle,\n radius\n } = data,\n sides = particle.sides,\n inset = particle.starInset ?? defaultInset;\n context.moveTo(origin.x, origin.y - radius);\n for (let i = 0; i < sides; i++) {\n context.rotate(Math.PI / sides);\n context.lineTo(origin.x, origin.y - radius * inset);\n context.rotate(Math.PI / sides);\n context.lineTo(origin.x, origin.y - radius);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../shapes/star/dist/browser/Utils.js?");
/***/ })
}]);
/*! For license information please see tsparticles.confetti.bundle.min.js.LICENSE.txt */
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var s in i)("object"==typeof exports?exports:t)[s]=i[s]}}(this,(()=>(()=>{var t,e,i={6830:(t,e,i)=>{i.d(e,{$o:()=>d,G1:()=>r,QL:()=>p,Re:()=>c,VH:()=>u,Wt:()=>l,X5:()=>g,YU:()=>s,ZL:()=>o,aM:()=>n,gK:()=>f,rR:()=>v,tZ:()=>m,vq:()=>y,zX:()=>h,zw:()=>a});const s="generated",o="pointerdown",a="pointerup",n="pointerleave",r="pointerout",l="pointermove",c="touchstart",d="touchend",h="touchmove",u="touchcancel",v="resize",p="visibilitychange",f="tsParticles - Error",m=100,y=.5,g=1e3},4158:(t,e,i)=>{i.d(e,{E:()=>s});class s{constructor(t,e){this.position=t,this.particle=e}}},7212:(t,e,i)=>{i.d(e,{Ae:()=>n,Cd:()=>a,W7:()=>o});var s=i(2358);class o{constructor(t,e,i){this.position={x:t,y:e},this.type=i}}class a extends o{constructor(t,e,i){super(t,e,"circle"),this.radius=i}contains(t){return(0,s.Sp)(t,this.position)<=this.radius}intersects(t){const e=this.position,i=t.position,s=Math.abs(i.x-e.x),o=Math.abs(i.y-e.y),r=this.radius;if(t instanceof a||"circle"===t.type){return r+t.radius>Math.sqrt(s**2+o**2)}if(t instanceof n||"rectangle"===t.type){const e=t,{width:i,height:a}=e.size;return Math.pow(s-i,2)+Math.pow(o-a,2)<=r**2||s<=r+i&&o<=r+a||s<=i||o<=a}return!1}}class n extends o{constructor(t,e,i,s){super(t,e,"rectangle"),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){if(t instanceof a)return t.intersects(this);const e=this.size.width,i=this.size.height,s=this.position,o=t.position,r=t instanceof n?t.size:{width:0,height:0},l=r.width,c=r.height;return o.x<s.x+e&&o.x+l>s.x&&o.y<s.y+i&&o.y+c>s.y}}},6888:(t,e,i)=>{i.d(e,{O:()=>c,U:()=>l});var s=i(6830),o=i(3853);const a=0,n=0,r=0;class l{constructor(t,e,i){if(this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},!(0,o.hj)(t)&&t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:r}else{if(void 0===t||void 0===e)throw new Error(`${s.gK} Vector3d not initialized correctly`);this.x=t,this.y=e,this.z=i??r}}static get origin(){return l.create(a,n,r)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return l.create(t.x,t.y,t.z)}static create(t,e,i){return new l(t,e,i)}add(t){return l.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return l.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return l.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**2+this.y**2}mult(t){return l.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return l.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),r)}setTo(t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:r}sub(t){return l.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class c extends l{constructor(t,e){super(t,e,r)}static get origin(){return c.create(a,n)}static clone(t){return c.create(t.x,t.y)}static create(t,e){return new c(t,e)}}},1470:(t,e,i)=>{i.d(e,{R:()=>n});var s=i(3853),o=i(5992),a=i(3312);class n extends a.O{constructor(){super(),this.animation=new o.h}static create(t,e){const i=new n;return i.load(t),void 0!==e&&((0,s.HD)(e)||(0,s.kJ)(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}},8152:(t,e,i)=>{i.d(e,{B:()=>a,P:()=>o});var s=i(2358);class o{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=(0,s.Cs)(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,s.Cs)(t.speed)),void 0!==t.decay&&(this.decay=(0,s.Cs)(t.decay)),void 0!==t.delay&&(this.delay=(0,s.Cs)(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class a extends o{constructor(){super(),this.mode="auto",this.startValue="random"}load(t){super.load(t),t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}}},1429:(t,e,i)=>{i.d(e,{A:()=>o});var s=i(3312);class o{constructor(){this.color=new s.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=s.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}},9311:(t,e,i)=>{i.d(e,{g:()=>a});var s=i(76),o=i(3853);class a{constructor(){this.composite="destination-out",this.cover=new s.F,this.enable=!1}load(t){if(t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const e=t.cover,i=(0,o.HD)(t.cover)?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color||void 0!==e.image?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}},76:(t,e,i)=>{i.d(e,{F:()=>o});var s=i(3312);class o{constructor(){this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=s.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.opacity&&(this.opacity=t.opacity))}}},2793:(t,e,i)=>{i.d(e,{y:()=>a});var s=i(8152),o=i(2358);class a extends s.P{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),t&&void 0!==t.offset&&(this.offset=(0,o.Cs)(t.offset))}}},8569:(t,e,i)=>{i.d(e,{I:()=>s});class s{constructor(){this.enable=!0,this.zIndex=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}},5992:(t,e,i)=>{i.d(e,{h:()=>o});var s=i(2793);class o{constructor(){this.h=new s.y,this.s=new s.y,this.l=new s.y}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}},5053:(t,e,i)=>{i.d(e,{R:()=>s});class s{constructor(){this.enable=!1,this.mode=[]}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}},2935:(t,e,i)=>{i.d(e,{M:()=>s});class s{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}load(t){t&&(void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type))}}},1778:(t,e,i)=>{i.d(e,{z:()=>l});var s=i(5053),o=i(2935),a=i(5701),n=i(6755),r=i(1271);class l{constructor(){this.onClick=new s.R,this.onDiv=new o.M,this.onHover=new a.z,this.resize=new n.C}load(t){if(!t)return;this.onClick.load(t.onClick);const e=t.onDiv;void 0!==e&&(this.onDiv=(0,r.KH)(e,(t=>{const e=new o.M;return e.load(t),e}))),this.onHover.load(t.onHover),this.resize.load(t.resize)}}},5701:(t,e,i)=>{i.d(e,{z:()=>o});var s=i(6571);class o{constructor(){this.enable=!1,this.mode=[],this.parallax=new s.V}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}},6571:(t,e,i)=>{i.d(e,{V:()=>s});class s{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}},6755:(t,e,i)=>{i.d(e,{C:()=>s});class s{constructor(){this.delay=.5,this.enable=!0}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}}},8461:(t,e,i)=>{i.d(e,{o:()=>a});var s=i(1778),o=i(5542);class a{constructor(t,e){this.detectsOn="window",this.events=new s.z,this.modes=new o.n(t,e)}load(t){if(!t)return;const e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}},5542:(t,e,i)=>{i.d(e,{n:()=>s});class s{constructor(t,e){this._engine=t,this._container=e}load(t){if(!t)return;if(!this._container)return;const e=this._engine.interactors.get(this._container);if(e)for(const i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}},5632:(t,e,i)=>{i.d(e,{h:()=>o});var s=i(1271);class o{load(t){t&&(t.position&&(this.position={x:t.position.x??50,y:t.position.y??50,mode:t.position.mode??"percent"}),t.options&&(this.options=(0,s.ZB)({},t.options)))}}},7327:(t,e,i)=>{i.d(e,{E:()=>p});var s=i(1271),o=i(1429),a=i(9311),n=i(8569),r=i(8461),l=i(5632),c=i(3442),d=i(9556),h=i(3853),u=i(8853),v=i(2358);class p{constructor(t,e){this._findDefaultTheme=t=>this.themes.find((e=>e.default.value&&e.default.mode===t))??this.themes.find((t=>t.default.value&&"any"===t.default.mode)),this._importPreset=t=>{this.load(this._engine.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new o.A,this.backgroundMask=new a.g,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new n.I,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new r.o(t,e),this.manualParticles=[],this.particles=(0,u.x)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){if(!t)return;void 0!==t.preset&&(0,s.KH)(t.preset,(t=>this._importPreset(t))),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=(0,v.Cs)(t.delay));const e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=(0,v.Cs)(t.duration));const i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);const o=t.fullScreen;(0,h.jn)(o)?this.fullScreen.enable=o:this.fullScreen.load(o),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map((t=>{const e=new l.h;return e.load(t),e}))),this.particles.load(t.particles),this.style=(0,s.ZB)(this.style,t.style),this._engine.loadOptions(this,t),void 0!==t.smooth&&(this.smooth=t.smooth);const a=this._engine.interactors.get(this._container);if(a)for(const e of a)e.loadOptions&&e.loadOptions(this,t);if(void 0!==t.responsive)for(const e of t.responsive){const t=new c.E;t.load(e),this.responsive.push(t)}if(this.responsive.sort(((t,e)=>t.maxWidth-e.maxWidth)),void 0!==t.themes)for(const e of t.themes){const t=this.themes.find((t=>t.name===e.name));if(t)t.load(e);else{const t=new d.Q;t.load(e),this.themes.push(t)}}this.defaultThemes.dark=this._findDefaultTheme("dark")?.name,this.defaultThemes.light=this._findDefaultTheme("light")?.name}setResponsive(t,e,i){this.load(i);const s=this.responsive.find((i=>"screen"===i.mode&&screen?i.maxWidth>screen.availWidth:i.maxWidth*e>t));return this.load(s?.options),s?.maxWidth}setTheme(t){if(t){const e=this.themes.find((e=>e.name===t));e&&this.load(e.options)}else{const t=(0,s.HY)("(prefers-color-scheme: dark)"),e=t&&t.matches,i=this._findDefaultTheme(e?"dark":"light");i&&this.load(i.options)}}}},3312:(t,e,i)=>{i.d(e,{O:()=>o});var s=i(3853);class o{constructor(){this.value=""}static create(t,e){const i=new o;return i.load(t),void 0!==e&&((0,s.HD)(e)||(0,s.kJ)(e)?i.load({value:e}):i.load(e)),i}load(t){void 0!==t?.value&&(this.value=t.value)}}},1357:(t,e,i)=>{i.d(e,{b:()=>o});var s=i(9141);class o{constructor(){this.horizontal=new s.u,this.vertical=new s.u}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}},9141:(t,e,i)=>{i.d(e,{u:()=>o});var s=i(9569);class o extends s.SW{constructor(){super(),this.value=1}}},2631:(t,e,i)=>{i.d(e,{y:()=>r});var s=i(5447),o=i(3964),a=i(1357),n=i(2358);class r{constructor(){this.absorb=new s.h,this.bounce=new a.b,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new o.t}load(t){t&&(this.absorb.load(t.absorb),this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.maxSpeed&&(this.maxSpeed=(0,n.Cs)(t.maxSpeed)),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}},5447:(t,e,i)=>{i.d(e,{h:()=>s});class s{constructor(){this.speed=2}load(t){t&&void 0!==t.speed&&(this.speed=t.speed)}}},3964:(t,e,i)=>{i.d(e,{t:()=>s});class s{constructor(){this.enable=!0,this.retries=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}},8097:(t,e,i)=>{i.d(e,{A:()=>v});var s=i(3853),o=i(7056),a=i(4169),n=i(7897),r=i(3843),l=i(457),c=i(8481),d=i(3534),h=i(7805),u=i(2358);class v{constructor(){this.angle=new o.k,this.attract=new a.k,this.center=new n.a,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new r.S,this.path=new l.C,this.outModes=new d.u,this.random=!1,this.size=!1,this.speed=2,this.spin=new h.y,this.straight=!1,this.trail=new c.S,this.vibrate=!1,this.warp=!1}load(t){if(!t)return;this.angle.load((0,s.hj)(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),void 0!==t.decay&&(this.decay=(0,u.Cs)(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=(0,s.hj)(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=(0,u.Cs)(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&((0,s.Kn)(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=(0,u.Cs)(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}},7056:(t,e,i)=>{i.d(e,{k:()=>o});var s=i(2358);class o{constructor(){this.offset=0,this.value=90}load(t){t&&(void 0!==t.offset&&(this.offset=(0,s.Cs)(t.offset)),void 0!==t.value&&(this.value=(0,s.Cs)(t.value)))}}},4169:(t,e,i)=>{i.d(e,{k:()=>o});var s=i(2358);class o{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(t&&(void 0!==t.distance&&(this.distance=(0,s.Cs)(t.distance)),void 0!==t.enable&&(this.enable=t.enable),t.rotate)){const e=t.rotate.x;void 0!==e&&(this.rotate.x=e);const i=t.rotate.y;void 0!==i&&(this.rotate.y=i)}}}},7897:(t,e,i)=>{i.d(e,{a:()=>s});class s{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(t){t&&(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.radius&&(this.radius=t.radius))}}},3843:(t,e,i)=>{i.d(e,{S:()=>o});var s=i(2358);class o{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=(0,s.Cs)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=(0,s.Cs)(t.maxSpeed)))}}},8481:(t,e,i)=>{i.d(e,{S:()=>a});var s=i(3312);class o{load(t){t&&(void 0!==t.color&&(this.color=s.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image))}}class a{constructor(){this.enable=!1,this.length=10,this.fill=new o}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.fill&&this.fill.load(t.fill),void 0!==t.length&&(this.length=t.length))}}},3534:(t,e,i)=>{i.d(e,{u:()=>s});class s{constructor(){this.default="out"}load(t){t&&(void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}},457:(t,e,i)=>{i.d(e,{C:()=>a});var s=i(9569),o=i(1271);class a{constructor(){this.clamp=!0,this.delay=new s.SW,this.enable=!1,this.options={}}load(t){t&&(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=(0,o.ZB)(this.options,t.options)))}}},7805:(t,e,i)=>{i.d(e,{y:()=>a});var s=i(1271),o=i(2358);class a{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=(0,o.Cs)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=(0,s.ZB)({},t.position)))}}},5574:(t,e,i)=>{i.d(e,{l:()=>s});class s{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(!t)return;void 0!==t.enable&&(this.enable=t.enable);const e=t.width;void 0!==e&&(this.width=e);const i=t.height;void 0!==i&&(this.height=i)}}},9262:(t,e,i)=>{i.d(e,{H:()=>a});var s=i(5574),o=i(8760);class a{constructor(){this.density=new s.l,this.limit=new o.W,this.value=0}load(t){t&&(this.density.load(t.density),this.limit.load(t.limit),void 0!==t.value&&(this.value=t.value))}}},8760:(t,e,i)=>{i.d(e,{W:()=>s});class s{constructor(){this.mode="delete",this.value=0}load(t){t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}},5555:(t,e,i)=>{i.d(e,{D:()=>a});var s=i(1174),o=i(9569);class a extends o.md{constructor(){super(),this.animation=new s.O,this.value=1}load(t){if(!t)return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}},1174:(t,e,i)=>{i.d(e,{O:()=>o});var s=i(8152);class o extends s.B{constructor(){super(),this.destroy="none",this.speed=2}load(t){super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}},9115:(t,e,i)=>{i.d(e,{B:()=>m});var s=i(1271),o=i(1470),a=i(2631);class n{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if(!t)return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,s.ZB)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}var r=i(8097),l=i(5555),c=i(1357),d=i(9262),h=i(2467),u=i(578),v=i(1293),p=i(4962),f=i(6151);class m{constructor(t,e){this._engine=t,this._container=e,this.bounce=new c.b,this.collisions=new a.y,this.color=new o.R,this.color.value="#fff",this.effect=new n,this.groups={},this.move=new r.A,this.number=new d.H,this.opacity=new l.D,this.reduceDuplicates=!1,this.shadow=new h.j,this.shape=new u.b,this.size=new v.$,this.stroke=new p.m,this.zIndex=new f.K}load(t){if(!t)return;if(void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,e))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=(0,s.ZB)(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(o.R.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),void 0!==t.interactivity&&(this.interactivity=(0,s.ZB)({},t.interactivity));const e=t.stroke;if(e&&(this.stroke=(0,s.KH)(e,(t=>{const e=new p.m;return e.load(t),e}))),this._container){const e=this._engine.updaters.get(this._container);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t);const i=this._engine.interactors.get(this._container);if(i)for(const e of i)e.loadParticlesOptions&&e.loadParticlesOptions(this,t)}}}},2467:(t,e,i)=>{i.d(e,{j:()=>o});var s=i(3312);class o{constructor(){this.blur=0,this.color=new s.O,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=s.O.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}},578:(t,e,i)=>{i.d(e,{b:()=>o});var s=i(1271);class o{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if(!t)return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,s.ZB)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}},1293:(t,e,i)=>{i.d(e,{$:()=>a});var s=i(9569),o=i(4376);class a extends s.md{constructor(){super(),this.animation=new o.a,this.value=3}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&this.animation.load(e)}}},4376:(t,e,i)=>{i.d(e,{a:()=>o});var s=i(8152);class o extends s.B{constructor(){super(),this.destroy="none",this.speed=5}load(t){super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}},4962:(t,e,i)=>{i.d(e,{m:()=>a});var s=i(1470),o=i(2358);class a{constructor(){this.width=0}load(t){t&&(void 0!==t.color&&(this.color=s.R.create(this.color,t.color)),void 0!==t.width&&(this.width=(0,o.Cs)(t.width)),void 0!==t.opacity&&(this.opacity=(0,o.Cs)(t.opacity)))}}},6151:(t,e,i)=>{i.d(e,{K:()=>o});var s=i(9569);class o extends s.SW{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),t&&(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}},3442:(t,e,i)=>{i.d(e,{E:()=>o});var s=i(1271);class o{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.mode&&("screen"===t.mode?this.mode="screen":this.mode="canvas"),void 0!==t.options&&(this.options=(0,s.ZB)({},t.options)))}}},9556:(t,e,i)=>{i.d(e,{Q:()=>a});var s=i(5295),o=i(1271);class a{constructor(){this.name="",this.default=new s.C}load(t){t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=(0,o.ZB)({},t.options)))}}},5295:(t,e,i)=>{i.d(e,{C:()=>s});class s{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(t){t&&(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}},9569:(t,e,i)=>{i.d(e,{I9:()=>n,SW:()=>a,md:()=>r});var s=i(8152),o=i(2358);class a{constructor(){this.value=0}load(t){t&&void 0!==t.value&&(this.value=(0,o.Cs)(t.value))}}class n extends a{constructor(){super(),this.animation=new s.P}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class r extends n{constructor(){super(),this.animation=new s.B}load(t){super.load(t)}}},4150:(t,e,i)=>{i.d(e,{$F:()=>p,C3:()=>r,Ch:()=>h,Dd:()=>u,PL:()=>f,TQ:()=>n,ZH:()=>l,Zw:()=>v,lV:()=>d,pS:()=>a,zv:()=>c});var s=i(5063);const o={x:0,y:0};function a(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function n(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(o.x,o.y,e.width,e.height)}function r(t,e,i,s){i&&(t.globalAlpha=s,t.drawImage(i,o.x,o.y,e.width,e.height),t.globalAlpha=1)}function l(t,e){t.clearRect(o.x,o.y,e.width,e.height)}async function c(t){const{container:e,context:i,particle:o,delta:a,colorStyles:n,backgroundMask:r,composite:l,radius:c,opacity:v,shadow:p,transform:f}=t,m=o.getPosition(),y=o.rotation+(o.pathRotation?o.velocity.angle:0),g=Math.sin(y),b=Math.cos(y),w={a:b*(f.a??1),b:g*(f.b??1),c:-g*(f.c??1),d:b*(f.d??1)};i.setTransform(w.a,w.b,w.c,w.d,m.x,m.y),r&&(i.globalCompositeOperation=l);const x=o.shadowColor;p.enable&&x&&(i.shadowBlur=p.blur,i.shadowColor=(0,s.iz)(x),i.shadowOffsetX=p.offset.x,i.shadowOffsetY=p.offset.y),n.fill&&(i.fillStyle=n.fill);const M=o.strokeWidth??0;i.lineWidth=M,n.stroke&&(i.strokeStyle=n.stroke);const z={container:e,context:i,particle:o,radius:c,opacity:v,delta:a,transformData:w,strokeWidth:M};await h(z),await u(z),await d(z),i.globalCompositeOperation="source-over",i.resetTransform()}async function d(t){const{container:e,context:i,particle:s,radius:o,opacity:a,delta:n,transformData:r}=t;if(!s.effect)return;const l=e.effectDrawers.get(s.effect);l&&await l.draw({context:i,particle:s,radius:o,opacity:a,delta:n,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}async function h(t){const{container:e,context:i,particle:s,radius:o,opacity:a,delta:n,strokeWidth:r,transformData:l}=t;if(!s.shape)return;const c=e.shapeDrawers.get(s.shape);c&&(i.beginPath(),await c.draw({context:i,particle:s,radius:o,opacity:a,delta:n,pixelRatio:e.retina.pixelRatio,transformData:{...l}}),s.shapeClose&&i.closePath(),r>0&&i.stroke(),s.shapeFill&&i.fill())}async function u(t){const{container:e,context:i,particle:s,radius:o,opacity:a,delta:n,transformData:r}=t;if(!s.shape)return;const l=e.shapeDrawers.get(s.shape);l?.afterDraw&&await l.afterDraw({context:i,particle:s,radius:o,opacity:a,delta:n,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}async function v(t,e,i){e.draw&&await e.draw(t,i)}async function p(t,e,i,s){e.drawParticle&&await e.drawParticle(t,i,s)}function f(t,e,i){return{h:t.h,s:t.s,l:t.l+("darken"===e?-1:1)*i}}},5063:(t,e,i)=>{i.d(e,{BE:()=>S,DS:()=>g,Dt:()=>P,J9:()=>x,PB:()=>E,VI:()=>d,Y6:()=>w,ZC:()=>D,_g:()=>p,bS:()=>R,gE:()=>y,gW:()=>k,iz:()=>M,lC:()=>m,lN:()=>f,oc:()=>C,sS:()=>v,tX:()=>u,ve:()=>b,vz:()=>z});var s=i(2358),o=i(3853),a=i(6830),n=i(1271);const r="random",l="mid",c=new Map;function d(t){c.set(t.key,t)}function h(t){for(const[,e]of c)if(t.startsWith(e.stringPrefix))return e.parseString(t);const e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,((t,e,i,s,o)=>e+e+i+i+s+s+(void 0!==o?o+o:""))),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e);return i?{a:void 0!==i[4]?parseInt(i[4],16)/255:1,b:parseInt(i[3],16),g:parseInt(i[2],16),r:parseInt(i[1],16)}:void 0}function u(t,e,i=!0){if(!t)return;const s=(0,o.HD)(t)?{value:t}:t;if((0,o.HD)(s.value))return v(s.value,e,i);if((0,o.kJ)(s.value))return u({value:(0,n.c8)(s.value,e,i)});for(const[,t]of c){const e=t.handleRangeColor(s);if(e)return e}}function v(t,e,i=!0){if(!t)return;const s=(0,o.HD)(t)?{value:t}:t;if((0,o.HD)(s.value))return s.value===r?x():g(s.value);if((0,o.kJ)(s.value))return v({value:(0,n.c8)(s.value,e,i)});for(const[,t]of c){const e=t.handleColor(s);if(e)return e}}function p(t,e,i=!0){const s=v(t,e,i);return s?m(s):void 0}function f(t,e,i=!0){const s=u(t,e,i);return s?m(s):void 0}function m(t){const e=t.r/255,i=t.g/255,s=t.b/255,o=Math.max(e,i,s),a=Math.min(e,i,s),n={h:0,l:.5*(o+a),s:0};return o!==a&&(n.s=n.l<.5?(o-a)/(o+a):(o-a)/(2-o-a),n.h=e===o?(i-s)/(o-a):n.h=i===o?2+(s-e)/(o-a):4+(e-i)/(o-a)),n.l*=100,n.s*=100,n.h*=60,n.h<0&&(n.h+=360),n.h>=360&&(n.h-=360),n}function y(t){return h(t)?.a}function g(t){return h(t)}function b(t){const e=360,i=(t.h%e+e)%e,s=Math.max(0,Math.min(100,t.s)),o=i/e,a=s/100,n=Math.max(0,Math.min(100,t.l))/100,r=255;if(0===s){const t=Math.round(n*r);return{r:t,g:t,b:t}}const l=(t,e,i)=>{if(i<0&&i++,i>1&&i--,6*i<1)return t+6*(e-t)*i;if(2*i<1)return e;if(3*i<2){return t+(e-t)*(2/3-i)*6}return t},c=n<.5?n*(1+a):n+a-n*a,d=2*n-c,h=1/3,u=Math.min(r,r*l(d,c,o+h)),v=Math.min(r,r*l(d,c,o)),p=Math.min(r,r*l(d,c,o-h));return{r:Math.round(u),g:Math.round(v),b:Math.round(p)}}function w(t){const e=b(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function x(t){const e=t??0;return{b:Math.floor((0,s.vd)((0,s.Cs)(e,256))),g:Math.floor((0,s.vd)((0,s.Cs)(e,256))),r:Math.floor((0,s.vd)((0,s.Cs)(e,256)))}}function M(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function z(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function C(t,e,i,o){let a=t,n=e;return void 0===a.r&&(a=b(t)),void 0===n.r&&(n=b(e)),{b:(0,s.CD)(a.b,n.b,i,o),g:(0,s.CD)(a.g,n.g,i,o),r:(0,s.CD)(a.r,n.r,i,o)}}function S(t,e,i){if(i===r)return x();if(i!==l)return i;{const i=t.getFillColor()??t.getStrokeColor(),s=e?.getFillColor()??e?.getStrokeColor();if(i&&s&&e)return C(i,s,t.getRadius(),e.getRadius());{const t=i??s;if(t)return b(t)}}}function P(t,e,i){const s=(0,o.HD)(t)?t:t.value;return s===r?i?u({value:s}):e?r:l:s===l?l:u({value:s})}function k(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function R(t,e,i){const s={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(O(s.h,e.h,i),O(s.s,e.s,i),O(s.l,e.l,i)),s}function O(t,e,i){t.enable=e.enable;t.enable?(t.velocity=(0,s.Gu)(e.speed)/a.tZ*i,t.decay=1-(0,s.Gu)(e.decay),t.status="increasing",t.loops=0,t.maxLoops=(0,s.Gu)(e.count),t.time=0,t.delayTime=(0,s.Gu)(e.delay)*a.X5,e.sync||(t.velocity*=(0,s.sZ)(),t.value*=(0,s.sZ)()),t.initialValue=t.value,t.offset=(0,s.Cs)(e.offset)):t.velocity=0}function D(t,e,i,o){if(!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=o.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const a=t.offset?(0,s.vd)(t.offset):0,n=(t.velocity??0)*o.factor+3.6*a,r=t.decay??1,l=(0,s.KI)(e),c=(0,s.Uv)(e);if(i&&"increasing"!==t.status){t.value-=n;const e=0;t.value<e&&(t.loops||(t.loops=0),t.loops++,t.status="increasing")}else t.value+=n,t.value>l&&(t.loops||(t.loops=0),t.loops++,i?t.status="decreasing":t.value-=l);t.velocity&&1!==r&&(t.velocity*=r),t.value=(0,s.uZ)(t.value,c,l)}function E(t,e){if(!t)return;const{h:i,s,l:o}=t,a={min:0,max:100},n={min:0,max:100};i&&D(i,{min:0,max:360},!1,e),s&&D(s,a,!0,e),o&&D(o,n,!0,e)}},2358:(t,e,i)=>{i.d(e,{BV:()=>E,CD:()=>p,Cs:()=>b,Gk:()=>z,Gu:()=>m,Gz:()=>R,Id:()=>M,KD:()=>D,KI:()=>g,Ry:()=>P,Sp:()=>x,Uv:()=>y,_X:()=>d,bx:()=>c,hA:()=>S,lQ:()=>C,mC:()=>O,oW:()=>w,p:()=>k,sR:()=>h,sZ:()=>u,uZ:()=>v,vd:()=>f});var s=i(6888),o=i(3853),a=i(6830);let n=Math.random;const r=new Map,l=2*Math.PI;function c(t,e){r.get(t)||r.set(t,e)}function d(t){return r.get(t)??(t=>t)}function h(t=Math.random){n=t}function u(){return v(n(),0,1-Number.EPSILON)}function v(t,e,i){return Math.min(Math.max(t,e),i)}function p(t,e,i,s){return Math.floor((t*i+e*s)/(i+s))}function f(t){const e=g(t);let i=y(t);return e===i&&(i=0),u()*(e-i)+i}function m(t){return(0,o.hj)(t)?t:f(t)}function y(t){return(0,o.hj)(t)?t:t.min}function g(t){return(0,o.hj)(t)?t:t.max}function b(t,e){if(t===e||void 0===e&&(0,o.hj)(t))return t;const i=y(t),s=g(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:b(i,s)}function w(t,e){const i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.sqrt(i**2+s**2)}}function x(t,e){return w(t,e).distance}function M(t){return t*Math.PI/180}function z(t,e,i){if((0,o.hj)(t))return M(t);const s=.25;switch(t){case"top":return.5*-Math.PI;case"top-right":return-Math.PI*s;case"right":return 0;case"bottom-right":return Math.PI*s;case"bottom":return.5*Math.PI;case"bottom-left":return.75*Math.PI;case"left":return Math.PI;case"top-left":return.75*-Math.PI;case"inside":return Math.atan2(i.y-e.y,i.x-e.x);case"outside":return Math.atan2(e.y-i.y,e.x-i.x);default:return u()*l}}function C(t){const e=s.O.origin;return e.length=1,e.angle=t,e}function S(t,e,i,o){return s.O.create(t.x*(i-o)/(i+o)+2*e.x*o/(i+o),t.y)}function P(t){return void 0!==t.position?.x&&void 0!==t.position.y?{x:t.position.x*t.size.width/a.tZ,y:t.position.y*t.size.height/a.tZ}:void 0}function k(t){return{x:(t.position?.x??u()*a.tZ)*t.size.width/a.tZ,y:(t.position?.y??u()*a.tZ)*t.size.height/a.tZ}}function R(t){const e={x:void 0!==t.position?.x?m(t.position.x):void 0,y:void 0!==t.position?.y?m(t.position.y):void 0};return k({size:t.size,position:e})}function O(t){return{x:t.position?.x??u()*t.size.width,y:t.position?.y??u()*t.size.height}}function D(t){const e={x:void 0!==t.position?.x?m(t.position.x):void 0,y:void 0!==t.position?.y?m(t.position.y):void 0};return O({size:t.size,position:e})}function E(t){return t?t.endsWith("%")?parseFloat(t)/a.tZ:parseFloat(t):1}},8853:(t,e,i)=>{i.d(e,{h:()=>o,x:()=>a});var s=i(9115);function o(t,...e){for(const i of e)t.load(i)}function a(t,e,...i){const a=new s.B(t,e);return o(a,...i),a}},3853:(t,e,i)=>{function s(t){return"boolean"==typeof t}function o(t){return"string"==typeof t}function a(t){return"number"==typeof t}function n(t){return"function"==typeof t}function r(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}i.d(e,{HD:()=>o,Kn:()=>r,hj:()=>a,jn:()=>s,kJ:()=>l,mf:()=>n})},1271:(t,e,i)=>{i.d(e,{Ac:()=>w,Cr:()=>V,EK:()=>l,Gt:()=>P,HY:()=>v,KH:()=>E,Kr:()=>h,M_:()=>M,NM:()=>p,Rs:()=>I,V0:()=>_,XD:()=>S,ZB:()=>z,ap:()=>T,bt:()=>Z,c8:()=>b,dB:()=>m,dU:()=>g,dp:()=>D,gy:()=>R,iC:()=>k,jl:()=>c,kR:()=>O,lL:()=>u,mx:()=>y,wA:()=>A,wm:()=>C,xq:()=>x,yf:()=>f});var s=i(2358),o=i(6830),a=i(3853),n=i(6888);const r={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function l(t){r.debug=t.debug||r.debug,r.error=t.error||r.error,r.info=t.info||r.info,r.log=t.log||r.log,r.verbose=t.verbose||r.verbose,r.warning=t.warning||r.warning}function c(){return r}function d(t){const e={bounced:!1},{pSide:i,pOtherSide:s,rectSide:o,rectOtherSide:a,velocity:n,factor:r}=t;return s.min<a.min||s.min>a.max||s.max<a.min||s.max>a.max||(i.max>=o.min&&i.max<=.5*(o.max+o.min)&&n>0||i.min<=o.max&&i.min>.5*(o.max+o.min)&&n<0)&&(e.velocity=n*-r,e.bounced=!0),e}function h(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function u(){return!h()&&"undefined"!=typeof matchMedia}function v(t){if(u())return matchMedia(t)}function p(t){if(!h()&&"undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}function f(t){if(!h()&&"undefined"!=typeof MutationObserver)return new MutationObserver(t)}function m(t,e){return t===e||(0,a.kJ)(e)&&e.indexOf(t)>-1}async function y(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function g(t){return Math.floor((0,s.sZ)()*t.length)}function b(t,e,i=!0){return t[void 0!==e&&i?e%t.length:g(t)]}function w(t,e,i,s,o){return x(M(t,s??0),e,i,o)}function x(t,e,i,s){let o=!0;return s&&"bottom"!==s||(o=t.top<e.height+i.x),!o||s&&"left"!==s||(o=t.right>i.x),!o||s&&"right"!==s||(o=t.left<e.width+i.y),!o||s&&"top"!==s||(o=t.bottom>i.y),o}function M(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function z(t,...e){for(const i of e){if(null==i)continue;if(!(0,a.Kn)(i)){t=i;continue}const e=Array.isArray(i);!e||!(0,a.Kn)(t)&&t&&Array.isArray(t)?e||!(0,a.Kn)(t)&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const s=i[e],o=t;o[e]=(0,a.Kn)(s)&&Array.isArray(s)?s.map((t=>z(o[e],t))):z(o[e],s)}}return t}function C(t,e){return!!I(e,(e=>e.enable&&m(t,e.mode)))}function S(t,e,i){E(e,(e=>{const s=e.mode;e.enable&&m(t,s)&&P(e,i)}))}function P(t,e){E(t.selectors,(i=>{e(i,t)}))}function k(t,e){if(e&&t)return I(t,(t=>function(t,e){const i=E(e,(e=>t.matches(e)));return(0,a.kJ)(i)?i.some((t=>t)):i}(e,t.selectors)))}function R(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:n.O.create((0,s.Gu)(t.options.bounce.horizontal.value),(0,s.Gu)(t.options.bounce.vertical.value))}}function O(t,e){const{x:i,y:o}=t.velocity.sub(e.velocity),[a,n]=[t.position,e.position],{dx:r,dy:l}=(0,s.oW)(n,a);if(i*r+o*l<0)return;const c=-Math.atan2(l,r),d=t.mass,h=e.mass,u=t.velocity.rotate(c),v=e.velocity.rotate(c),p=(0,s.hA)(u,v,d,h),f=(0,s.hA)(v,u,d,h),m=p.rotate(-c),y=f.rotate(-c);t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y,e.velocity.x=y.x*e.factor.x,e.velocity.y=y.y*e.factor.y}function D(t,e){const i=M(t.getPosition(),t.getRadius()),o=t.options.bounce,a=d({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:(0,s.Gu)(o.horizontal.value)});a.bounced&&(void 0!==a.velocity&&(t.velocity.x=a.velocity),void 0!==a.position&&(t.position.x=a.position));const n=d({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:(0,s.Gu)(o.vertical.value)});n.bounced&&(void 0!==n.velocity&&(t.velocity.y=n.velocity),void 0!==n.position&&(t.position.y=n.position))}function E(t,e){return(0,a.kJ)(t)?t.map(((t,i)=>e(t,i))):e(t,0)}function A(t,e,i){return(0,a.kJ)(t)?b(t,e,i):t}function I(t,e){if((0,a.kJ)(t))return t.find(((t,i)=>e(t,i)));return e(t,0)?t:void 0}function _(t,e){const i=t.value,a=t.animation,n={delayTime:(0,s.Gu)(a.delay)*o.X5,enable:a.enable,value:(0,s.Gu)(t.value)*e,max:(0,s.KI)(i)*e,min:(0,s.Uv)(i)*e,loops:0,maxLoops:(0,s.Gu)(a.count),time:0};if(a.enable){switch(n.decay=1-(0,s.Gu)(a.decay),a.mode){case"increase":n.status="increasing";break;case"decrease":n.status="decreasing";break;case"random":n.status=(0,s.sZ)()>=o.vq?"increasing":"decreasing"}const t="auto"===a.mode;switch(a.startValue){case"min":n.value=n.min,t&&(n.status="increasing");break;case"max":n.value=n.max,t&&(n.status="decreasing");break;default:n.value=(0,s.vd)(n),t&&(n.status=(0,s.sZ)()>=o.vq?"increasing":"decreasing")}}return n.initialValue=n.value,n}function B(t,e){if(!("percent"===t.mode)){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/o.tZ*e.width,y:t.y/o.tZ*e.height}:{width:t.width/o.tZ*e.width,height:t.height/o.tZ*e.height}}function Z(t,e){return B(t,e)}function T(t,e){return B(t,e)}function V(t,e,i,o,a){if(t.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const n=(e.velocity??0)*a.factor,r=e.min,l=e.max,c=e.decay??1;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=a.value),!((e.delayTime??0)>0&&e.time<(e.delayTime??0))){switch(e.status){case"increasing":e.value>=l?(i?e.status="decreasing":e.value-=l,e.loops||(e.loops=0),e.loops++):e.value+=n;break;case"decreasing":e.value<=r?(i?e.status="increasing":e.value+=l,e.loops||(e.loops=0),e.loops++):e.value-=n}e.velocity&&1!==c&&(e.velocity*=c),function(t,e,i,s,o){switch(e){case"max":i>=o&&t.destroy();break;case"min":i<=s&&t.destroy()}}(t,o,e.value,r,l),t.destroyed||(e.value=(0,s.uZ)(e.value,r,l))}}},3624:(t,e,i)=>{i.d(e,{RC:()=>y.R,Pp:()=>g.P,I9:()=>ht.I9,Aq:()=>b.A,g5:()=>w.g,F0:()=>x.F,W7:()=>f.W7,Cd:()=>f.Cd,Rd:()=>S.R,yW:()=>V.y,hK:()=>H.h,tm:()=>W.t,yQ:()=>M.y,Mo:()=>P.M,zW:()=>k.z,L8:()=>u,IT:()=>z.I,zP:()=>R.z,hz:()=>C.h,BY:()=>d,o7:()=>E.o,ht:()=>I.h,nl:()=>A.n,A6:()=>F.A,kZ:()=>$.k,kS:()=>G.k,aP:()=>U.a,Sb:()=>X.S,Cl:()=>N.C,SF:()=>Q.S,Dd:()=>it.D,OQ:()=>st.O,Ei:()=>_.E,Oz:()=>B.O,uy:()=>q.u,VS:()=>O.V,bD:()=>Z.b,uR:()=>T.u,ld:()=>et.l,$S:()=>v,Hb:()=>Y.H,Wf:()=>tt.W,Bm:()=>L.B,E9:()=>p.E,Br:()=>g.B,md:()=>ht.md,Ae:()=>f.Ae,Cf:()=>D.C,Et:()=>lt.E,g1:()=>h,jX:()=>K.j,bn:()=>ot.b,$u:()=>at.$,aA:()=>nt.a,yC:()=>J.y,mP:()=>j.m,Q2:()=>ct.Q,Cm:()=>dt.C,SW:()=>ht.SW,OW:()=>m.O,UJ:()=>m.U,KN:()=>rt.K,VI:()=>c.VI,bx:()=>n.bx,PL:()=>ut.PL,xq:()=>o.xq,dU:()=>o.dU,mC:()=>n.mC,KD:()=>n.KD,Ry:()=>n.Ry,p:()=>n.p,Gz:()=>n.Gz,M_:()=>o.M_,kR:()=>o.kR,gy:()=>o.gy,uZ:()=>n.uZ,ZH:()=>ut.ZH,hA:()=>n.hA,oc:()=>c.oc,_g:()=>c._g,sS:()=>c.sS,ZB:()=>o.ZB,Id:()=>n.Id,iC:()=>o.iC,XD:()=>o.XD,lV:()=>ut.lV,pS:()=>ut.pS,zv:()=>ut.zv,$F:()=>ut.$F,Zw:()=>ut.Zw,Ch:()=>ut.Ch,m:()=>ut.Dd,gK:()=>s.gK,KH:()=>o.KH,Rs:()=>o.Rs,YU:()=>s.YU,Sp:()=>n.Sp,oW:()=>n.oW,_X:()=>n._X,bS:()=>c.bS,gW:()=>c.gW,BE:()=>c.BE,Dt:()=>c.Dt,jl:()=>o.jl,lQ:()=>n.lQ,Gk:()=>n.Gk,bt:()=>o.bt,sZ:()=>n.sZ,J9:()=>c.J9,KI:()=>n.KI,Uv:()=>n.Uv,Gu:()=>n.Gu,ap:()=>o.ap,vz:()=>c.vz,iz:()=>c.iz,vq:()=>s.vq,lL:()=>o.lL,ve:()=>c.ve,Y6:()=>c.Y6,V0:()=>o.V0,kJ:()=>pt.kJ,jn:()=>pt.jn,wm:()=>o.wm,mf:()=>pt.mf,dB:()=>o.dB,hj:()=>pt.hj,Kn:()=>pt.Kn,Ac:()=>o.Ac,Kr:()=>o.Kr,HD:()=>pt.HD,c8:()=>o.c8,wA:()=>o.wA,mx:()=>o.mx,hS:()=>vt.h,hT:()=>vt.x,X5:()=>s.X5,CD:()=>n.CD,ZL:()=>s.ZL,aM:()=>s.aM,Wt:()=>s.Wt,G1:()=>s.G1,zw:()=>s.zw,TQ:()=>ut.TQ,C3:()=>ut.C3,BV:()=>n.BV,tZ:()=>s.tZ,vd:()=>n.vd,lN:()=>c.lN,tX:()=>c.tX,dp:()=>o.dp,rR:()=>s.rR,lC:()=>c.lC,NM:()=>o.NM,HY:()=>o.HY,yf:()=>o.yf,EK:()=>o.EK,sR:()=>n.sR,Cs:()=>n.Cs,Gt:()=>o.Gt,gE:()=>c.gE,DS:()=>c.DS,VH:()=>s.VH,$o:()=>s.$o,zX:()=>s.zX,Re:()=>s.Re,S6:()=>ft,Cr:()=>o.Cr,PB:()=>c.PB,ZC:()=>c.ZC,QL:()=>s.QL});var s=i(6830),o=i(1271);class a{constructor(){this._listeners=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this._listeners.get(t);i?.forEach((t=>t(e)))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){const i=this._listeners.get(t);if(!i)return;const s=i.length,o=i.indexOf(e);if(o<0)return;1===s?this._listeners.delete(t):i.splice(o,1)}}var n=i(2358);async function r(t,e,i,s=!1){let o=e.get(t);return o&&!s||(o=await Promise.all([...i.values()].map((e=>e(t)))),e.set(t,o)),o}class l{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new a,this._initialized=!1,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[e,i]of this._configs)t[e]=i;return t}get version(){return"3.2.2"}addConfig(t){const e=t.key??t.name??"default";this._configs.set(e,t),this._eventDispatcher.dispatchEvent("configAdded",{data:{name:e,config:t}})}async addEffect(t,e,i=!0){(0,o.KH)(t,(t=>{this.getEffectDrawer(t)||this.effectDrawers.set(t,e)})),await this.refresh(i)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}async addInteractor(t,e,i=!0){this._initializers.interactors.set(t,e),await this.refresh(i)}async addMover(t,e,i=!0){this._initializers.movers.set(t,e),await this.refresh(i)}async addParticleUpdater(t,e,i=!0){this._initializers.updaters.set(t,e),await this.refresh(i)}async addPathGenerator(t,e,i=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,e),await this.refresh(i)}async addPlugin(t,e=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(e)}async addPreset(t,e,i=!1,s=!0){!i&&this.getPreset(t)||this.presets.set(t,e),await this.refresh(s)}async addShape(t,e,i=!0){(0,o.KH)(t,(t=>{this.getShapeDrawer(t)||this.shapeDrawers.set(t,e)})),await this.refresh(i)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}dom(){return this._domArray}domItem(t){const e=this.dom(),i=e[t];if(i&&!i.destroyed)return i;{const i=1;e.splice(t,i)}}async getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,await i.getPlugin(t));return e}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,e=!1){return await r(t,this.interactors,this._initializers.interactors,e)}async getMovers(t,e=!1){return await r(t,this.movers,this._initializers.movers,e)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find((e=>e.id===t))}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,e=!1){return await r(t,this.updaters,this._initializers.updaters,e)}init(){this._initialized||(this._initialized=!0)}async load(t){const e=t.id??t.element?.id??`tsparticles${Math.floor(1e4*(0,n.sZ)())}`,{index:a,url:r}=t,l=r?await async function(t){const e=(0,o.wA)(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():((0,o.jl)().error(`${s.gK} ${i.status} while retrieving config file`),t.fallback)}({fallback:t.options,url:r,index:a}):t.options;let c=t.element??document.getElementById(e);c||(c=document.createElement("div"),c.id=e,document.body.append(c));const d=(0,o.wA)(l,a),h=this.dom(),u=h.findIndex((t=>t.id.description===e));if(u>=0){const t=this.domItem(u);if(t&&!t.destroyed){t.destroy();const e=1;h.splice(u,e)}}let v;if("canvas"===c.tagName.toLowerCase())v=c,v.dataset[s.YU]="false";else{const t=c.getElementsByTagName("canvas");if(t.length){v=t[0],v.dataset[s.YU]="false"}else v=document.createElement("canvas"),v.dataset[s.YU]="true",c.appendChild(v)}v.style.width||(v.style.width="100%"),v.style.height||(v.style.height="100%");const{Container:p}=await i.e(2720).then(i.bind(i,2720)),f=new p(this,e,d);if(u>=0){const t=0;h.splice(u,t,f)}else h.push(f);return f.canvas.loadCanvas(v),await f.start(),f}loadOptions(t,e){for(const i of this.plugins)i.loadOptions(t,e)}loadParticlesOptions(t,e,...i){const s=this.updaters.get(t);if(s)for(const t of s)t.loadOptions?.(e,...i)}async refresh(t=!0){t&&await Promise.all(this.dom().map((t=>t.refresh())))}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}setOnClickHandler(t){const e=this.dom();if(!e.length)throw new Error(`${s.gK} can only set click handlers after calling tsParticles.load()`);for(const i of e)i.addClickHandler(t)}}var c=i(5063);class d{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.s&&void 0!==e.l)return(0,c.ve)(e)}handleRangeColor(t){const e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.l)return(0,c.ve)({h:(0,n.Gu)(e.h),l:(0,n.Gu)(e.l),s:(0,n.Gu)(e.s)})}parseString(t){if(!t.startsWith("hsl"))return;const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?(0,c.Y6)({a:e.length>4?(0,n.BV)(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}}class h{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const e=t.value.rgb??t.value;if(void 0!==e.r)return e}handleRangeColor(t){const e=t.value.rgb??t.value;if(void 0!==e.r)return{r:(0,n.Gu)(e.r),g:(0,n.Gu)(e.g),b:(0,n.Gu)(e.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?(0,n.BV)(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}}class u{constructor(t){this.type="external",this.container=t}}class v{constructor(t){this.type="particles",this.container=t}}var p=i(4158),f=i(7212),m=i(6888),y=i(1470),g=i(8152),b=i(1429),w=i(9311),x=i(76),M=i(2793),z=i(8569),C=i(5992),S=i(5053),P=i(2935),k=i(1778),R=i(5701),O=i(6571),D=i(6755),E=i(8461),A=i(5542),I=i(5632),_=i(7327),B=i(3312),Z=i(1357),T=i(9141),V=i(2631),H=i(5447),W=i(3964),L=i(9115),K=i(2467),j=i(4962),G=i(4169),F=i(8097),$=i(7056),U=i(7897),X=i(3843),q=i(3534),N=i(457),J=i(7805),Q=i(8481),Y=i(9262),tt=i(8760),et=i(5574),it=i(5555),st=i(1174),ot=i(578),at=i(1293),nt=i(4376),rt=i(6151),lt=i(3442),ct=i(9556),dt=i(5295),ht=i(9569),ut=i(4150),vt=i(8853),pt=i(3853);const ft=function(){const t=new h,e=new d;(0,c.VI)(t),(0,c.VI)(e);const i=new l;return i.init(),i}();(0,o.Kr)()||(window.tsParticles=ft)}},s={};function o(t){var e=s[t];if(void 0!==e)return e.exports;var a=s[t]={exports:{}};return i[t](a,a.exports,o),a.exports}o.m=i,o.d=(t,e)=>{for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce(((e,i)=>(o.f[i](t,e),e)),[])),o.u=t=>t+".min.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="@tsparticles/confetti:",o.l=(i,s,a,n)=>{if(t[i])t[i].push(s);else{var r,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var h=c[d];if(h.getAttribute("src")==i||h.getAttribute("data-webpack")==e+a){r=h;break}}r||(l=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,o.nc&&r.setAttribute("nonce",o.nc),r.setAttribute("data-webpack",e+a),r.src=i),t[i]=[s];var u=(e,s)=>{r.onerror=r.onload=null,clearTimeout(v);var o=t[i];if(delete t[i],r.parentNode&&r.parentNode.removeChild(r),o&&o.forEach((t=>t(s))),e)return e(s)},v=setTimeout(u.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),l&&document.head.appendChild(r)}},o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");if(i.length)for(var s=i.length-1;s>-1&&!t;)t=i[s--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),(()=>{var t={2417:0};o.f.j=(e,i)=>{var s=o.o(t,e)?t[e]:void 0;if(0!==s)if(s)i.push(s[2]);else{var a=new Promise(((i,o)=>s=t[e]=[i,o]));i.push(s[2]=a);var n=o.p+o.u(e),r=new Error;o.l(n,(i=>{if(o.o(t,e)&&(0!==(s=t[e])&&(t[e]=void 0),s)){var a=i&&("load"===i.type?"missing":i.type),n=i&&i.target&&i.target.src;r.message="Loading chunk "+e+" failed.\n("+a+": "+n+")",r.name="ChunkLoadError",r.type=a,r.request=n,s[1](r)}}),"chunk-"+e,e)}};var e=(e,i)=>{var s,a,n=i[0],r=i[1],l=i[2],c=0;if(n.some((e=>0!==t[e]))){for(s in r)o.o(r,s)&&(o.m[s]=r[s]);if(l)l(o)}for(e&&e(i);c<n.length;c++)a=n[c],o.o(t,a)&&t[a]&&t[a][0](),t[a]=0},i=this.webpackChunk_tsparticles_confetti=this.webpackChunk_tsparticles_confetti||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var a={};return(()=>{o.r(a),o.d(a,{AnimatableColor:()=>t.RC,AnimationOptions:()=>t.Pp,AnimationValueWithRandom:()=>t.I9,Background:()=>t.Aq,BackgroundMask:()=>t.g5,BackgroundMaskCover:()=>t.F0,BaseRange:()=>t.W7,Circle:()=>t.Cd,ClickEvent:()=>t.Rd,Collisions:()=>t.yW,CollisionsAbsorb:()=>t.hK,CollisionsOverlap:()=>t.tm,ColorAnimation:()=>t.yQ,DivEvent:()=>t.Mo,Events:()=>t.zW,ExternalInteractorBase:()=>t.L8,FullScreen:()=>t.IT,HoverEvent:()=>t.zP,HslAnimation:()=>t.hz,HslColorManager:()=>t.BY,Interactivity:()=>t.o7,ManualParticle:()=>t.ht,Modes:()=>t.nl,Move:()=>t.A6,MoveAngle:()=>t.kZ,MoveAttract:()=>t.kS,MoveCenter:()=>t.aP,MoveGravity:()=>t.Sb,MovePath:()=>t.Cl,MoveTrail:()=>t.SF,Opacity:()=>t.Dd,OpacityAnimation:()=>t.OQ,Options:()=>t.Ei,OptionsColor:()=>t.Oz,OutModes:()=>t.uy,Parallax:()=>t.VS,ParticlesBounce:()=>t.bD,ParticlesBounceFactor:()=>t.uR,ParticlesDensity:()=>t.ld,ParticlesInteractorBase:()=>t.$S,ParticlesNumber:()=>t.Hb,ParticlesNumberLimit:()=>t.Wf,ParticlesOptions:()=>t.Bm,Point:()=>t.E9,RangedAnimationOptions:()=>t.Br,RangedAnimationValueWithRandom:()=>t.md,Rectangle:()=>t.Ae,ResizeEvent:()=>t.Cf,Responsive:()=>t.Et,RgbColorManager:()=>t.g1,Shadow:()=>t.jX,Shape:()=>t.bn,Size:()=>t.$u,SizeAnimation:()=>t.aA,Spin:()=>t.yC,Stroke:()=>t.mP,Theme:()=>t.Q2,ThemeDefault:()=>t.Cm,ValueWithRandom:()=>t.SW,Vector:()=>t.OW,Vector3d:()=>t.UJ,ZIndex:()=>t.KN,addColorManager:()=>t.VI,addEasing:()=>t.bx,alterHsl:()=>t.PL,areBoundsInside:()=>t.xq,arrayRandomIndex:()=>t.dU,calcExactPositionOrRandomFromSize:()=>t.mC,calcExactPositionOrRandomFromSizeRanged:()=>t.KD,calcPositionFromSize:()=>t.Ry,calcPositionOrRandomFromSize:()=>t.p,calcPositionOrRandomFromSizeRanged:()=>t.Gz,calculateBounds:()=>t.M_,circleBounce:()=>t.kR,circleBounceDataFromParticle:()=>t.gy,clamp:()=>t.uZ,clear:()=>t.ZH,collisionVelocity:()=>t.hA,colorMix:()=>t.oc,colorToHsl:()=>t._g,colorToRgb:()=>t.sS,confetti:()=>f,deepExtend:()=>t.ZB,degToRad:()=>t.Id,divMode:()=>t.iC,divModeExecute:()=>t.XD,drawEffect:()=>t.lV,drawLine:()=>t.pS,drawParticle:()=>t.zv,drawParticlePlugin:()=>t.$F,drawPlugin:()=>t.Zw,drawShape:()=>t.Ch,drawShapeAfterDraw:()=>t.m,errorPrefix:()=>t.gK,executeOnSingleOrMultiple:()=>t.KH,findItemFromSingleOrMultiple:()=>t.Rs,generatedAttribute:()=>t.YU,getDistance:()=>t.Sp,getDistances:()=>t.oW,getEasing:()=>t._X,getHslAnimationFromHsl:()=>t.bS,getHslFromAnimation:()=>t.gW,getLinkColor:()=>t.BE,getLinkRandomColor:()=>t.Dt,getLogger:()=>t.jl,getParticleBaseVelocity:()=>t.lQ,getParticleDirectionAngle:()=>t.Gk,getPosition:()=>t.bt,getRandom:()=>t.sZ,getRandomRgbColor:()=>t.J9,getRangeMax:()=>t.KI,getRangeMin:()=>t.Uv,getRangeValue:()=>t.Gu,getSize:()=>t.ap,getStyleFromHsl:()=>t.vz,getStyleFromRgb:()=>t.iz,halfRandom:()=>t.vq,hasMatchMedia:()=>t.lL,hslToRgb:()=>t.ve,hslaToRgba:()=>t.Y6,initParticleNumericAnimationValue:()=>t.V0,isArray:()=>t.kJ,isBoolean:()=>t.jn,isDivModeEnabled:()=>t.wm,isFunction:()=>t.mf,isInArray:()=>t.dB,isNumber:()=>t.hj,isObject:()=>t.Kn,isPointInside:()=>t.Ac,isSsr:()=>t.Kr,isString:()=>t.HD,itemFromArray:()=>t.c8,itemFromSingleOrMultiple:()=>t.wA,loadFont:()=>t.mx,loadOptions:()=>t.hS,loadParticlesOptions:()=>t.hT,millisecondsToSeconds:()=>t.X5,mix:()=>t.CD,mouseDownEvent:()=>t.ZL,mouseLeaveEvent:()=>t.aM,mouseMoveEvent:()=>t.Wt,mouseOutEvent:()=>t.G1,mouseUpEvent:()=>t.zw,paintBase:()=>t.TQ,paintImage:()=>t.C3,parseAlpha:()=>t.BV,percentDenominator:()=>t.tZ,randomInRange:()=>t.vd,rangeColorToHsl:()=>t.lN,rangeColorToRgb:()=>t.tX,rectBounce:()=>t.dp,resizeEvent:()=>t.rR,rgbToHsl:()=>t.lC,safeIntersectionObserver:()=>t.NM,safeMatchMedia:()=>t.HY,safeMutationObserver:()=>t.yf,setLogger:()=>t.EK,setRandom:()=>t.sR,setRangeValue:()=>t.Cs,singleDivModeExecute:()=>t.Gt,stringToAlpha:()=>t.gE,stringToRgb:()=>t.DS,touchCancelEvent:()=>t.VH,touchEndEvent:()=>t.$o,touchMoveEvent:()=>t.zX,touchStartEvent:()=>t.Re,tsParticles:()=>t.S6,updateAnimation:()=>t.Cr,updateColor:()=>t.PB,updateColorValue:()=>t.ZC,visibilityChangeEvent:()=>t.QL});var t=o(3624);class e{constructor(){this.angle=90,this.count=50,this.spread=45,this.startVelocity=45,this.decay=.9,this.gravity=1,this.drift=0,this.ticks=200,this.position={x:50,y:50},this.colors=["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],this.shapes=["square","circle"],this.scalar=1,this.zIndex=100,this.disableForReducedMotion=!0,this.flat=!1,this.shapeOptions={}}get origin(){return{x:this.position.x/t.tZ,y:this.position.y/t.tZ}}set origin(e){this.position.x=e.x*t.tZ,this.position.y=e.y*t.tZ}get particleCount(){return this.count}set particleCount(t){this.count=t}load(e){if(!e)return;void 0!==e.angle&&(this.angle=e.angle);const i=e.count??e.particleCount;void 0!==i&&(this.count=i),void 0!==e.spread&&(this.spread=e.spread),void 0!==e.startVelocity&&(this.startVelocity=e.startVelocity),void 0!==e.decay&&(this.decay=e.decay),void 0!==e.flat&&(this.flat=e.flat),void 0!==e.gravity&&(this.gravity=e.gravity),void 0!==e.drift&&(this.drift=e.drift),void 0!==e.ticks&&(this.ticks=e.ticks);const s=e.origin;s&&!e.position&&(e.position={x:void 0!==s.x?s.x*t.tZ:void 0,y:void 0!==s.y?s.y*t.tZ:void 0});const o=e.position;o&&(void 0!==o.x&&(this.position.x=o.x),void 0!==o.y&&(this.position.y=o.y)),void 0!==e.colors&&((0,t.kJ)(e.colors)?this.colors=[...e.colors]:this.colors=e.colors);const a=e.shapeOptions;if(void 0!==a)for(const e in a){const i=a[e];i&&(this.shapeOptions[e]=(0,t.ZB)(this.shapeOptions[e]??{},i))}void 0!==e.shapes&&((0,t.kJ)(e.shapes)?this.shapes=[...e.shapes]:this.shapes=e.shapes),void 0!==e.scalar&&(this.scalar=e.scalar),void 0!==e.zIndex&&(this.zIndex=e.zIndex),void 0!==e.disableForReducedMotion&&(this.disableForReducedMotion=e.disableForReducedMotion)}}const i=9.81,s=5,n=3,r=1,l=0,c=0;let d=!1,h=!1;const u=new Map;async function v(t){if(d)return;if(h)return new Promise((t=>{const e=setInterval((()=>{d&&(clearInterval(e),t())}),100)}));h=!0;const{loadEmittersPlugin:e}=await o.e(3610).then(o.bind(o,3610)),{loadMotionPlugin:i}=await o.e(3862).then(o.bind(o,3862)),{loadCardsShape:s}=await o.e(8060).then(o.bind(o,8060)),{loadHeartShape:a}=await o.e(3473).then(o.bind(o,3473)),{loadImageShape:n}=await o.e(1472).then(o.bind(o,1472)),{loadPolygonShape:r}=await o.e(7890).then(o.bind(o,7890)),{loadSquareShape:l}=await o.e(9530).then(o.bind(o,9530)),{loadStarShape:c}=await o.e(9532).then(o.bind(o,9532)),{loadEmojiShape:u}=await o.e(5444).then(o.bind(o,5444)),{loadRotateUpdater:v}=await o.e(9376).then(o.bind(o,9376)),{loadLifeUpdater:p}=await o.e(9921).then(o.bind(o,9921)),{loadRollUpdater:f}=await o.e(571).then(o.bind(o,571)),{loadTiltUpdater:m}=await o.e(6004).then(o.bind(o,6004)),{loadWobbleUpdater:y}=await o.e(3629).then(o.bind(o,3629)),{loadBasic:g}=await o.e(5120).then(o.bind(o,5120));await e(t,!1),await i(t,!1),await s(t,!1),await a(t,!1),await n(t,!1),await r(t,!1),await l(t,!1),await c(t,!1),await u(t,!1),await v(t,!1),await p(t,!1),await f(t,!1),await m(t,!1),await y(t,!1),await g(t),h=!1,d=!0}async function p(o){const a=new e;let d;a.load(o.options);const h=a.ticks*t.X5/(3.6*t.X5*120);if(u.has(o.id)&&(d=u.get(o.id),d&&!d.destroyed)){const t=d;if(t.addEmitter)return void await t.addEmitter({startCount:a.count,position:a.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1},particles:{color:{value:a.colors},shape:{type:a.shapes,options:a.shapeOptions},life:{count:1},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:h,startValue:"max",destroy:"min"}},size:{value:s*a.scalar},move:{angle:{value:a.spread,offset:0},drift:{min:-a.drift,max:a.drift},gravity:{acceleration:a.gravity*i},speed:a.startVelocity*n,decay:r-a.decay,direction:-a.angle}}})}const v={fullScreen:{enable:!o.canvas,zIndex:a.zIndex},fpsLimit:120,particles:{number:{value:0},color:{value:a.colors},shape:{type:a.shapes,options:a.shapeOptions},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:h,startValue:"max",destroy:"min"}},size:{value:s*a.scalar},links:{enable:!1},life:{count:1},move:{angle:{value:a.spread,offset:0},drift:{min:-a.drift,max:a.drift},enable:!0,gravity:{enable:!0,acceleration:a.gravity*i},speed:a.startVelocity*n,decay:r-a.decay,direction:-a.angle,random:!0,straight:!1,outModes:{default:"none",bottom:"destroy"}},rotate:{value:a.flat?l:{min:0,max:360},direction:"random",animation:{enable:!a.flat,speed:60}},tilt:{direction:"random",enable:!a.flat,value:a.flat?c:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:25},enable:!a.flat,speed:{min:15,max:25}},wobble:{distance:30,enable:!a.flat,speed:{min:-15,max:15}}},detectRetina:!0,motion:{disable:a.disableForReducedMotion},emitters:{name:"confetti",startCount:a.count,position:a.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1}}};return d=await t.S6.load({id:o.id,element:o.canvas,options:v}),u.set(o.id,d),d}async function f(e,i){let s,o;return await v(t.S6),(0,t.HD)(e)?(o=e,s=i??{}):(o="confetti",s=e),p({id:o,options:s})}f.create=async(e,i)=>{if(!e)return f;await v(t.S6);const s=e.getAttribute("id")??"confetti";return e.setAttribute("id",s),async(o,a)=>{let n,r;return(0,t.HD)(o)?(r=o,n=a??i):(r=s,n=o),p({id:r,canvas:e,options:n})}},f.version=t.S6.version,(0,t.Kr)()||(window.confetti=f)})(),a})()));
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(this,(()=>(()=>{var t,e,i={751:(t,e,i)=>{i.d(e,{Bp:()=>d,DG:()=>h,G3:()=>u,N3:()=>y,NF:()=>p,Rb:()=>l,Xu:()=>g,Z0:()=>n,a5:()=>m,dI:()=>f,eb:()=>o,ms:()=>s,nK:()=>v,s7:()=>c,sf:()=>r,vo:()=>a});const o="generated",s="pointerdown",a="pointerup",n="pointerleave",r="pointerout",l="pointermove",c="touchstart",d="touchend",h="touchmove",u="touchcancel",p="resize",v="visibilitychange",f="tsParticles - Error",m=100,y=.5,g=1e3},2284:(t,e,i)=>{i.d(e,{b:()=>o});class o{constructor(t,e){this.position=t,this.particle=e}}},694:(t,e,i)=>{i.d(e,{M_:()=>n,dg:()=>s,jl:()=>a});var o=i(2646);class s{constructor(t,e,i){this.position={x:t,y:e},this.type=i}}class a extends s{constructor(t,e,i){super(t,e,"circle"),this.radius=i}contains(t){return(0,o.Yf)(t,this.position)<=this.radius}intersects(t){const e=this.position,i=t.position,o=Math.abs(i.x-e.x),s=Math.abs(i.y-e.y),r=this.radius;if(t instanceof a||"circle"===t.type){return r+t.radius>Math.sqrt(o**2+s**2)}if(t instanceof n||"rectangle"===t.type){const e=t,{width:i,height:a}=e.size;return Math.pow(o-i,2)+Math.pow(s-a,2)<=r**2||o<=r+i&&s<=r+a||o<=i||s<=a}return!1}}class n extends s{constructor(t,e,i,o){super(t,e,"rectangle"),this.size={height:o,width:i}}contains(t){const e=this.size.width,i=this.size.height,o=this.position;return t.x>=o.x&&t.x<=o.x+e&&t.y>=o.y&&t.y<=o.y+i}intersects(t){if(t instanceof a)return t.intersects(this);const e=this.size.width,i=this.size.height,o=this.position,s=t.position,r=t instanceof n?t.size:{width:0,height:0},l=r.width,c=r.height;return s.x<o.x+e&&s.x+l>o.x&&s.y<o.y+i&&s.y+c>o.y}}},4798:(t,e,i)=>{i.d(e,{M:()=>c,p:()=>l});var o=i(751),s=i(2457);const a=0,n=0,r=0;class l{constructor(t,e,i){if(this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},!(0,s.Et)(t)&&t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:r}else{if(void 0===t||void 0===e)throw new Error(`${o.dI} Vector3d not initialized correctly`);this.x=t,this.y=e,this.z=i??r}}static get origin(){return l.create(a,n,r)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return l.create(t.x,t.y,t.z)}static create(t,e,i){return new l(t,e,i)}add(t){return l.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return l.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return l.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**2+this.y**2}mult(t){return l.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return l.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),r)}setTo(t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:r}sub(t){return l.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class c extends l{constructor(t,e){super(t,e,r)}static get origin(){return c.create(a,n)}static clone(t){return c.create(t.x,t.y)}static create(t,e){return new c(t,e)}}},2655:(t,e,i)=>{i.d(e,{A:()=>n});var o=i(2457),s=i(1657),a=i(6719);class n extends a.O{constructor(){super(),this.animation=new s.i}static create(t,e){const i=new n;return i.load(t),void 0!==e&&((0,o.Kg)(e)||(0,o.cy)(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}},9190:(t,e,i)=>{i.d(e,{Q:()=>a,p:()=>s});var o=i(2646);class s{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=(0,o.DT)(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,o.DT)(t.speed)),void 0!==t.decay&&(this.decay=(0,o.DT)(t.decay)),void 0!==t.delay&&(this.delay=(0,o.DT)(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class a extends s{constructor(){super(),this.mode="auto",this.startValue="random"}load(t){super.load(t),t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}}},1897:(t,e,i)=>{i.d(e,{V:()=>s});var o=i(6719);class s{constructor(){this.color=new o.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=o.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}},3829:(t,e,i)=>{i.d(e,{T:()=>a});var o=i(490),s=i(2457);class a{constructor(){this.composite="destination-out",this.cover=new o.y,this.enable=!1}load(t){if(t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const e=t.cover,i=(0,s.Kg)(t.cover)?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color||void 0!==e.image?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}},490:(t,e,i)=>{i.d(e,{y:()=>s});var o=i(6719);class s{constructor(){this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=o.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.opacity&&(this.opacity=t.opacity))}}},6865:(t,e,i)=>{i.d(e,{e:()=>a});var o=i(9190),s=i(2646);class a extends o.p{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),t&&void 0!==t.offset&&(this.offset=(0,s.DT)(t.offset))}}},9943:(t,e,i)=>{i.d(e,{m:()=>o});class o{constructor(){this.enable=!0,this.zIndex=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}},1657:(t,e,i)=>{i.d(e,{i:()=>s});var o=i(6865);class s{constructor(){this.h=new o.e,this.s=new o.e,this.l=new o.e}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}},2562:(t,e,i)=>{i.d(e,{r:()=>o});class o{constructor(){this.enable=!1,this.mode=[]}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}},5907:(t,e,i)=>{i.d(e,{G:()=>o});class o{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}load(t){t&&(void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type))}}},7023:(t,e,i)=>{i.d(e,{s:()=>l});var o=i(2562),s=i(5907),a=i(1864),n=i(3492),r=i(3393);class l{constructor(){this.onClick=new o.r,this.onDiv=new s.G,this.onHover=new a.L,this.resize=new n.z}load(t){if(!t)return;this.onClick.load(t.onClick);const e=t.onDiv;void 0!==e&&(this.onDiv=(0,r.wJ)(e,(t=>{const e=new s.G;return e.load(t),e}))),this.onHover.load(t.onHover),this.resize.load(t.resize)}}},1864:(t,e,i)=>{i.d(e,{L:()=>s});var o=i(1753);class s{constructor(){this.enable=!1,this.mode=[],this.parallax=new o.k}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}},1753:(t,e,i)=>{i.d(e,{k:()=>o});class o{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}},3492:(t,e,i)=>{i.d(e,{z:()=>o});class o{constructor(){this.delay=.5,this.enable=!0}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}}},7287:(t,e,i)=>{i.d(e,{k:()=>a});var o=i(7023),s=i(699);class a{constructor(t,e){this.detectsOn="window",this.events=new o.s,this.modes=new s.d(t,e)}load(t){if(!t)return;const e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}},699:(t,e,i)=>{i.d(e,{d:()=>o});class o{constructor(t,e){this._engine=t,this._container=e}load(t){if(!t)return;if(!this._container)return;const e=this._engine.interactors.get(this._container);if(e)for(const i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}},9638:(t,e,i)=>{i.d(e,{j:()=>s});var o=i(3393);class s{load(t){t&&(t.position&&(this.position={x:t.position.x??50,y:t.position.y??50,mode:t.position.mode??"percent"}),t.options&&(this.options=(0,o.zw)({},t.options)))}}},4126:(t,e,i)=>{i.d(e,{J:()=>v});var o=i(3393),s=i(1897),a=i(3829),n=i(9943),r=i(7287),l=i(9638),c=i(376),d=i(3863),h=i(2457),u=i(8761),p=i(2646);class v{constructor(t,e){this._findDefaultTheme=t=>this.themes.find((e=>e.default.value&&e.default.mode===t))??this.themes.find((t=>t.default.value&&"any"===t.default.mode)),this._importPreset=t=>{this.load(this._engine.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new s.V,this.backgroundMask=new a.T,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new n.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new r.k(t,e),this.manualParticles=[],this.particles=(0,u.y)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){if(!t)return;void 0!==t.preset&&(0,o.wJ)(t.preset,(t=>this._importPreset(t))),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=(0,p.DT)(t.delay));const e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=(0,p.DT)(t.duration));const i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);const s=t.fullScreen;(0,h.Lm)(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map((t=>{const e=new l.j;return e.load(t),e}))),this.particles.load(t.particles),this.style=(0,o.zw)(this.style,t.style),this._engine.loadOptions(this,t),void 0!==t.smooth&&(this.smooth=t.smooth);const a=this._engine.interactors.get(this._container);if(a)for(const e of a)e.loadOptions&&e.loadOptions(this,t);if(void 0!==t.responsive)for(const e of t.responsive){const t=new c.F;t.load(e),this.responsive.push(t)}if(this.responsive.sort(((t,e)=>t.maxWidth-e.maxWidth)),void 0!==t.themes)for(const e of t.themes){const t=this.themes.find((t=>t.name===e.name));if(t)t.load(e);else{const t=new d.S;t.load(e),this.themes.push(t)}}this.defaultThemes.dark=this._findDefaultTheme("dark")?.name,this.defaultThemes.light=this._findDefaultTheme("light")?.name}setResponsive(t,e,i){this.load(i);const o=this.responsive.find((i=>"screen"===i.mode&&screen?i.maxWidth>screen.availWidth:i.maxWidth*e>t));return this.load(o?.options),o?.maxWidth}setTheme(t){if(t){const e=this.themes.find((e=>e.name===t));e&&this.load(e.options)}else{const t=(0,o.lV)("(prefers-color-scheme: dark)"),e=t&&t.matches,i=this._findDefaultTheme(e?"dark":"light");i&&this.load(i.options)}}}},6719:(t,e,i)=>{i.d(e,{O:()=>s});var o=i(2457);class s{constructor(){this.value=""}static create(t,e){const i=new s;return i.load(t),void 0!==e&&((0,o.Kg)(e)||(0,o.cy)(e)?i.load({value:e}):i.load(e)),i}load(t){void 0!==t?.value&&(this.value=t.value)}}},1494:(t,e,i)=>{i.d(e,{w:()=>s});var o=i(8745);class s{constructor(){this.horizontal=new o.F,this.vertical=new o.F}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}},8745:(t,e,i)=>{i.d(e,{F:()=>s});var o=i(2034);class s extends o.PV{constructor(){super(),this.value=1}}},4907:(t,e,i)=>{i.d(e,{c:()=>r});var o=i(8362),s=i(108),a=i(1494),n=i(2646);class r{constructor(){this.absorb=new o.N,this.bounce=new a.w,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new s.F}load(t){t&&(this.absorb.load(t.absorb),this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.maxSpeed&&(this.maxSpeed=(0,n.DT)(t.maxSpeed)),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}},8362:(t,e,i)=>{i.d(e,{N:()=>o});class o{constructor(){this.speed=2}load(t){t&&void 0!==t.speed&&(this.speed=t.speed)}}},108:(t,e,i)=>{i.d(e,{F:()=>o});class o{constructor(){this.enable=!0,this.retries=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}},7299:(t,e,i)=>{i.d(e,{y:()=>p});var o=i(2457),s=i(2748),a=i(9326),n=i(2662),r=i(1917),l=i(4802),c=i(5271),d=i(9978),h=i(5794),u=i(2646);class p{constructor(){this.angle=new s.h,this.attract=new a.R,this.center=new n.Z,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new r.y,this.path=new l.v,this.outModes=new d.j,this.random=!1,this.size=!1,this.speed=2,this.spin=new h.t,this.straight=!1,this.trail=new c.O,this.vibrate=!1,this.warp=!1}load(t){if(!t)return;this.angle.load((0,o.Et)(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),void 0!==t.decay&&(this.decay=(0,u.DT)(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=(0,o.Et)(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=(0,u.DT)(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&((0,o.Gv)(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=(0,u.DT)(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}},2748:(t,e,i)=>{i.d(e,{h:()=>s});var o=i(2646);class s{constructor(){this.offset=0,this.value=90}load(t){t&&(void 0!==t.offset&&(this.offset=(0,o.DT)(t.offset)),void 0!==t.value&&(this.value=(0,o.DT)(t.value)))}}},9326:(t,e,i)=>{i.d(e,{R:()=>s});var o=i(2646);class s{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(t&&(void 0!==t.distance&&(this.distance=(0,o.DT)(t.distance)),void 0!==t.enable&&(this.enable=t.enable),t.rotate)){const e=t.rotate.x;void 0!==e&&(this.rotate.x=e);const i=t.rotate.y;void 0!==i&&(this.rotate.y=i)}}}},2662:(t,e,i)=>{i.d(e,{Z:()=>o});class o{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(t){t&&(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.radius&&(this.radius=t.radius))}}},1917:(t,e,i)=>{i.d(e,{y:()=>s});var o=i(2646);class s{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=(0,o.DT)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=(0,o.DT)(t.maxSpeed)))}}},5271:(t,e,i)=>{i.d(e,{O:()=>a});var o=i(6719);class s{load(t){t&&(void 0!==t.color&&(this.color=o.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image))}}class a{constructor(){this.enable=!1,this.length=10,this.fill=new s}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.fill&&this.fill.load(t.fill),void 0!==t.length&&(this.length=t.length))}}},9978:(t,e,i)=>{i.d(e,{j:()=>o});class o{constructor(){this.default="out"}load(t){t&&(void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}},4802:(t,e,i)=>{i.d(e,{v:()=>a});var o=i(2034),s=i(3393);class a{constructor(){this.clamp=!0,this.delay=new o.PV,this.enable=!1,this.options={}}load(t){t&&(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=(0,s.zw)(this.options,t.options)))}}},5794:(t,e,i)=>{i.d(e,{t:()=>a});var o=i(3393),s=i(2646);class a{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=(0,s.DT)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=(0,o.zw)({},t.position)))}}},6207:(t,e,i)=>{i.d(e,{M:()=>o});class o{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(!t)return;void 0!==t.enable&&(this.enable=t.enable);const e=t.width;void 0!==e&&(this.width=e);const i=t.height;void 0!==i&&(this.height=i)}}},3730:(t,e,i)=>{i.d(e,{N:()=>a});var o=i(6207),s=i(6407);class a{constructor(){this.density=new o.M,this.limit=new s.A,this.value=0}load(t){t&&(this.density.load(t.density),this.limit.load(t.limit),void 0!==t.value&&(this.value=t.value))}}},6407:(t,e,i)=>{i.d(e,{A:()=>o});class o{constructor(){this.mode="delete",this.value=0}load(t){t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}},6659:(t,e,i)=>{i.d(e,{Y:()=>a});var o=i(9245),s=i(2034);class a extends s.AI{constructor(){super(),this.animation=new o.I,this.value=1}load(t){if(!t)return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}},9245:(t,e,i)=>{i.d(e,{I:()=>s});var o=i(9190);class s extends o.Q{constructor(){super(),this.destroy="none",this.speed=2}load(t){super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}},9944:(t,e,i)=>{i.d(e,{U:()=>m});var o=i(3393),s=i(2655),a=i(4907);class n{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if(!t)return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,o.zw)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}var r=i(7299),l=i(6659),c=i(1494),d=i(3730),h=i(286),u=i(47),p=i(6955),v=i(1754),f=i(9725);class m{constructor(t,e){this._engine=t,this._container=e,this.bounce=new c.w,this.collisions=new a.c,this.color=new s.A,this.color.value="#fff",this.effect=new n,this.groups={},this.move=new r.y,this.number=new d.N,this.opacity=new l.Y,this.reduceDuplicates=!1,this.shadow=new h.V,this.shape=new u.y,this.size=new p.o,this.stroke=new v.t,this.zIndex=new f.P}load(t){if(!t)return;if(void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,e))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=(0,o.zw)(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(s.A.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),void 0!==t.interactivity&&(this.interactivity=(0,o.zw)({},t.interactivity));const e=t.stroke;if(e&&(this.stroke=(0,o.wJ)(e,(t=>{const e=new v.t;return e.load(t),e}))),this._container){const e=this._engine.updaters.get(this._container);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t);const i=this._engine.interactors.get(this._container);if(i)for(const e of i)e.loadParticlesOptions&&e.loadParticlesOptions(this,t)}}}},286:(t,e,i)=>{i.d(e,{V:()=>s});var o=i(6719);class s{constructor(){this.blur=0,this.color=new o.O,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=o.O.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}},47:(t,e,i)=>{i.d(e,{y:()=>s});var o=i(3393);class s{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if(!t)return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,o.zw)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}},6955:(t,e,i)=>{i.d(e,{o:()=>a});var o=i(2034),s=i(7685);class a extends o.AI{constructor(){super(),this.animation=new s.q,this.value=3}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&this.animation.load(e)}}},7685:(t,e,i)=>{i.d(e,{q:()=>s});var o=i(9190);class s extends o.Q{constructor(){super(),this.destroy="none",this.speed=5}load(t){super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}},1754:(t,e,i)=>{i.d(e,{t:()=>a});var o=i(2655),s=i(2646);class a{constructor(){this.width=0}load(t){t&&(void 0!==t.color&&(this.color=o.A.create(this.color,t.color)),void 0!==t.width&&(this.width=(0,s.DT)(t.width)),void 0!==t.opacity&&(this.opacity=(0,s.DT)(t.opacity)))}}},9725:(t,e,i)=>{i.d(e,{P:()=>s});var o=i(2034);class s extends o.PV{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),t&&(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}},376:(t,e,i)=>{i.d(e,{F:()=>s});var o=i(3393);class s{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.mode&&("screen"===t.mode?this.mode="screen":this.mode="canvas"),void 0!==t.options&&(this.options=(0,o.zw)({},t.options)))}}},3863:(t,e,i)=>{i.d(e,{S:()=>a});var o=i(9262),s=i(3393);class a{constructor(){this.name="",this.default=new o.f}load(t){t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=(0,s.zw)({},t.options)))}}},9262:(t,e,i)=>{i.d(e,{f:()=>o});class o{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(t){t&&(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}},2034:(t,e,i)=>{i.d(e,{AI:()=>r,Jm:()=>n,PV:()=>a});var o=i(9190),s=i(2646);class a{constructor(){this.value=0}load(t){t&&void 0!==t.value&&(this.value=(0,s.DT)(t.value))}}class n extends a{constructor(){super(),this.animation=new o.p}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class r extends n{constructor(){super(),this.animation=new o.Q}load(t){super.load(t)}}},1813:(t,e,i)=>{i.d(e,{IU:()=>l,KG:()=>h,Md:()=>r,QC:()=>d,Sn:()=>n,V6:()=>a,Wb:()=>v,e_:()=>p,gF:()=>u,p0:()=>c,yx:()=>f});var o=i(7422);const s={x:0,y:0};function a(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function n(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(s.x,s.y,e.width,e.height)}function r(t,e,i,o){i&&(t.globalAlpha=o,t.drawImage(i,s.x,s.y,e.width,e.height),t.globalAlpha=1)}function l(t,e){t.clearRect(s.x,s.y,e.width,e.height)}function c(t){const{container:e,context:i,particle:s,delta:a,colorStyles:n,backgroundMask:r,composite:l,radius:c,opacity:p,shadow:v,transform:f}=t,m=s.getPosition(),y=s.rotation+(s.pathRotation?s.velocity.angle:0),g=Math.sin(y),b=Math.cos(y),w={a:b*(f.a??1),b:g*(f.b??1),c:-g*(f.c??1),d:b*(f.d??1)};i.setTransform(w.a,w.b,w.c,w.d,m.x,m.y),r&&(i.globalCompositeOperation=l);const x=s.shadowColor;v.enable&&x&&(i.shadowBlur=v.blur,i.shadowColor=(0,o.xx)(x),i.shadowOffsetX=v.offset.x,i.shadowOffsetY=v.offset.y),n.fill&&(i.fillStyle=n.fill);const M=s.strokeWidth??0;i.lineWidth=M,n.stroke&&(i.strokeStyle=n.stroke);const z={container:e,context:i,particle:s,radius:c,opacity:p,delta:a,transformData:w,strokeWidth:M};h(z),u(z),d(z),i.globalCompositeOperation="source-over",i.resetTransform()}function d(t){const{container:e,context:i,particle:o,radius:s,opacity:a,delta:n,transformData:r}=t;if(!o.effect)return;const l=e.effectDrawers.get(o.effect);l&&l.draw({context:i,particle:o,radius:s,opacity:a,delta:n,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}function h(t){const{container:e,context:i,particle:o,radius:s,opacity:a,delta:n,strokeWidth:r,transformData:l}=t;if(!o.shape)return;const c=e.shapeDrawers.get(o.shape);c&&(i.beginPath(),c.draw({context:i,particle:o,radius:s,opacity:a,delta:n,pixelRatio:e.retina.pixelRatio,transformData:{...l}}),o.shapeClose&&i.closePath(),r>0&&i.stroke(),o.shapeFill&&i.fill())}function u(t){const{container:e,context:i,particle:o,radius:s,opacity:a,delta:n,transformData:r}=t;if(!o.shape)return;const l=e.shapeDrawers.get(o.shape);l?.afterDraw&&l.afterDraw({context:i,particle:o,radius:s,opacity:a,delta:n,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}function p(t,e,i){e.draw&&e.draw(t,i)}function v(t,e,i,o){e.drawParticle&&e.drawParticle(t,i,o)}function f(t,e,i){return{h:t.h,s:t.s,l:t.l+("darken"===e?-1:1)*i}}},7422:(t,e,i)=>{i.d(e,{BN:()=>u,EY:()=>O,Jv:()=>R,K6:()=>m,Ko:()=>V,LC:()=>z,OH:()=>x,O_:()=>T,PG:()=>S,R5:()=>f,YL:()=>b,_h:()=>P,a9:()=>d,ay:()=>w,eg:()=>g,mK:()=>v,pz:()=>E,qe:()=>p,xx:()=>M,zI:()=>y});var o=i(2646),s=i(2457),a=i(751),n=i(3393);const r="random",l="mid",c=new Map;function d(t){c.set(t.key,t)}function h(t){for(const[,e]of c)if(t.startsWith(e.stringPrefix))return e.parseString(t);const e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,((t,e,i,o,s)=>e+e+i+i+o+o+(void 0!==s?s+s:""))),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e);return i?{a:void 0!==i[4]?parseInt(i[4],16)/255:1,b:parseInt(i[3],16),g:parseInt(i[2],16),r:parseInt(i[1],16)}:void 0}function u(t,e,i=!0){if(!t)return;const o=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(o.value))return p(o.value,e,i);if((0,s.cy)(o.value))return u({value:(0,n.Vh)(o.value,e,i)});for(const[,t]of c){const e=t.handleRangeColor(o);if(e)return e}}function p(t,e,i=!0){if(!t)return;const o=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(o.value))return o.value===r?x():g(o.value);if((0,s.cy)(o.value))return p({value:(0,n.Vh)(o.value,e,i)});for(const[,t]of c){const e=t.handleColor(o);if(e)return e}}function v(t,e,i=!0){const o=p(t,e,i);return o?m(o):void 0}function f(t,e,i=!0){const o=u(t,e,i);return o?m(o):void 0}function m(t){const e=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(e,i,o),a=Math.min(e,i,o),n={h:0,l:.5*(s+a),s:0};return s!==a&&(n.s=n.l<.5?(s-a)/(s+a):(s-a)/(2-s-a),n.h=e===s?(i-o)/(s-a):n.h=i===s?2+(o-e)/(s-a):4+(e-i)/(s-a)),n.l*=100,n.s*=100,n.h*=60,n.h<0&&(n.h+=360),n.h>=360&&(n.h-=360),n}function y(t){return h(t)?.a}function g(t){return h(t)}function b(t){const e=360,i=(t.h%e+e)%e,o=Math.max(0,Math.min(100,t.s)),s=i/e,a=o/100,n=Math.max(0,Math.min(100,t.l))/100,r=255;if(0===o){const t=Math.round(n*r);return{r:t,g:t,b:t}}const l=(t,e,i)=>{if(i<0&&i++,i>1&&i--,6*i<1)return t+6*(e-t)*i;if(2*i<1)return e;if(3*i<2){return t+(e-t)*(2/3-i)*6}return t},c=n<.5?n*(1+a):n+a-n*a,d=2*n-c,h=1/3,u=Math.min(r,r*l(d,c,s+h)),p=Math.min(r,r*l(d,c,s)),v=Math.min(r,r*l(d,c,s-h));return{r:Math.round(u),g:Math.round(p),b:Math.round(v)}}function w(t){const e=b(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function x(t){const e=t??0;return{b:Math.floor((0,o.U4)((0,o.DT)(e,256))),g:Math.floor((0,o.U4)((0,o.DT)(e,256))),r:Math.floor((0,o.U4)((0,o.DT)(e,256)))}}function M(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function z(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function O(t,e,i,s){let a=t,n=e;return void 0===a.r&&(a=b(t)),void 0===n.r&&(n=b(e)),{b:(0,o.jh)(a.b,n.b,i,s),g:(0,o.jh)(a.g,n.g,i,s),r:(0,o.jh)(a.r,n.r,i,s)}}function P(t,e,i){if(i===r)return x();if(i!==l)return i;{const i=t.getFillColor()??t.getStrokeColor(),o=e?.getFillColor()??e?.getStrokeColor();if(i&&o&&e)return O(i,o,t.getRadius(),e.getRadius());{const t=i??o;if(t)return b(t)}}}function S(t,e,i){const o=(0,s.Kg)(t)?t:t.value;return o===r?i?u({value:o}):e?r:l:o===l?l:u({value:o})}function T(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function E(t,e,i){const o={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(k(o.h,e.h,i),k(o.s,e.s,i),k(o.l,e.l,i)),o}function k(t,e,i){t.enable=e.enable;t.enable?(t.velocity=(0,o.VG)(e.speed)/a.a5*i,t.decay=1-(0,o.VG)(e.decay),t.status="increasing",t.loops=0,t.maxLoops=(0,o.VG)(e.count),t.time=0,t.delayTime=(0,o.VG)(e.delay)*a.Xu,e.sync||(t.velocity*=(0,o.G0)(),t.value*=(0,o.G0)()),t.initialValue=t.value,t.offset=(0,o.DT)(e.offset)):t.velocity=0}function V(t,e,i,s){if(!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=s.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const a=t.offset?(0,o.U4)(t.offset):0,n=(t.velocity??0)*s.factor+3.6*a,r=t.decay??1,l=(0,o.W9)(e),c=(0,o.Sg)(e);if(i&&"increasing"!==t.status){t.value-=n;const e=0;t.value<e&&(t.loops||(t.loops=0),t.loops++,t.status="increasing")}else t.value+=n,t.value>l&&(t.loops||(t.loops=0),t.loops++,i?t.status="decreasing":t.value-=l);t.velocity&&1!==r&&(t.velocity*=r),t.value=(0,o.qE)(t.value,c,l)}function R(t,e){if(!t)return;const{h:i,s:o,l:s}=t,a={min:0,max:100},n={min:0,max:100};i&&V(i,{min:0,max:360},!1,e),o&&V(o,a,!0,e),s&&V(s,n,!0,e)}},2646:(t,e,i)=>{i.d(e,{$m:()=>O,DT:()=>b,G0:()=>u,JY:()=>z,M3:()=>R,Mh:()=>T,Nx:()=>k,OE:()=>h,OW:()=>P,Sg:()=>y,U4:()=>f,VG:()=>m,W9:()=>g,Yf:()=>x,eh:()=>S,il:()=>d,jh:()=>v,l1:()=>E,nL:()=>c,pu:()=>M,qE:()=>p,qM:()=>V,vr:()=>w});var o=i(4798),s=i(2457),a=i(751);let n=Math.random;const r=new Map,l=2*Math.PI;function c(t,e){r.get(t)||r.set(t,e)}function d(t){return r.get(t)??(t=>t)}function h(t=Math.random){n=t}function u(){return p(n(),0,1-Number.EPSILON)}function p(t,e,i){return Math.min(Math.max(t,e),i)}function v(t,e,i,o){return Math.floor((t*i+e*o)/(i+o))}function f(t){const e=g(t);let i=y(t);return e===i&&(i=0),u()*(e-i)+i}function m(t){return(0,s.Et)(t)?t:f(t)}function y(t){return(0,s.Et)(t)?t:t.min}function g(t){return(0,s.Et)(t)?t:t.max}function b(t,e){if(t===e||void 0===e&&(0,s.Et)(t))return t;const i=y(t),o=g(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(o,e)}:b(i,o)}function w(t,e){const i=t.x-e.x,o=t.y-e.y;return{dx:i,dy:o,distance:Math.sqrt(i**2+o**2)}}function x(t,e){return w(t,e).distance}function M(t){return t*Math.PI/180}function z(t,e,i){if((0,s.Et)(t))return M(t);const o=.25;switch(t){case"top":return.5*-Math.PI;case"top-right":return-Math.PI*o;case"right":return 0;case"bottom-right":return Math.PI*o;case"bottom":return.5*Math.PI;case"bottom-left":return.75*Math.PI;case"left":return Math.PI;case"top-left":return.75*-Math.PI;case"inside":return Math.atan2(i.y-e.y,i.x-e.x);case"outside":return Math.atan2(e.y-i.y,e.x-i.x);default:return u()*l}}function O(t){const e=o.M.origin;return e.length=1,e.angle=t,e}function P(t,e,i,s){return o.M.create(t.x*(i-s)/(i+s)+2*e.x*s/(i+s),t.y)}function S(t){return void 0!==t.position?.x&&void 0!==t.position.y?{x:t.position.x*t.size.width/a.a5,y:t.position.y*t.size.height/a.a5}:void 0}function T(t){return{x:(t.position?.x??u()*a.a5)*t.size.width/a.a5,y:(t.position?.y??u()*a.a5)*t.size.height/a.a5}}function E(t){const e={x:void 0!==t.position?.x?m(t.position.x):void 0,y:void 0!==t.position?.y?m(t.position.y):void 0};return T({size:t.size,position:e})}function k(t){return{x:t.position?.x??u()*t.size.width,y:t.position?.y??u()*t.size.height}}function V(t){const e={x:void 0!==t.position?.x?m(t.position.x):void 0,y:void 0!==t.position?.y?m(t.position.y):void 0};return k({size:t.size,position:e})}function R(t){return t?t.endsWith("%")?parseFloat(t)/a.a5:parseFloat(t):1}},8761:(t,e,i)=>{i.d(e,{Z:()=>s,y:()=>a});var o=i(9944);function s(t,...e){for(const i of e)t.load(i)}function a(t,e,...i){const a=new o.U(t,e);return s(a,...i),a}},2457:(t,e,i)=>{function o(t){return"boolean"==typeof t}function s(t){return"string"==typeof t}function a(t){return"number"==typeof t}function n(t){return"function"==typeof t}function r(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}i.d(e,{Et:()=>a,Gv:()=>r,Kg:()=>s,Lm:()=>o,Tn:()=>n,cy:()=>l})},3393:(t,e,i)=>{i.d(e,{AE:()=>M,Al:()=>y,B9:()=>h,BR:()=>v,Br:()=>l,E9:()=>G,NV:()=>T,O2:()=>x,S7:()=>S,TA:()=>_,Tg:()=>E,Tj:()=>w,U6:()=>P,UC:()=>L,Vh:()=>b,Xs:()=>A,YC:()=>C,hn:()=>m,iK:()=>O,jo:()=>V,lV:()=>p,n0:()=>g,pE:()=>k,q8:()=>u,tG:()=>f,tZ:()=>c,w3:()=>D,wJ:()=>R,zw:()=>z});var o=i(2646),s=i(751),a=i(2457),n=i(4798);const r={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function l(t){r.debug=t.debug||r.debug,r.error=t.error||r.error,r.info=t.info||r.info,r.log=t.log||r.log,r.verbose=t.verbose||r.verbose,r.warning=t.warning||r.warning}function c(){return r}function d(t){const e={bounced:!1},{pSide:i,pOtherSide:o,rectSide:s,rectOtherSide:a,velocity:n,factor:r}=t;return o.min<a.min||o.min>a.max||o.max<a.min||o.max>a.max||(i.max>=s.min&&i.max<=.5*(s.max+s.min)&&n>0||i.min<=s.max&&i.min>.5*(s.max+s.min)&&n<0)&&(e.velocity=n*-r,e.bounced=!0),e}function h(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function u(){return!h()&&"undefined"!=typeof matchMedia}function p(t){if(u())return matchMedia(t)}function v(t){if(!h()&&"undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}function f(t){if(!h()&&"undefined"!=typeof MutationObserver)return new MutationObserver(t)}function m(t,e){return t===e||(0,a.cy)(e)&&e.indexOf(t)>-1}async function y(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function g(t){return Math.floor((0,o.G0)()*t.length)}function b(t,e,i=!0){return t[void 0!==e&&i?e%t.length:g(t)]}function w(t,e,i,o,s){return x(M(t,o??0),e,i,s)}function x(t,e,i,o){let s=!0;return o&&"bottom"!==o||(s=t.top<e.height+i.x),!s||o&&"left"!==o||(s=t.right>i.x),!s||o&&"right"!==o||(s=t.left<e.width+i.y),!s||o&&"top"!==o||(s=t.bottom>i.y),s}function M(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function z(t,...e){for(const i of e){if(null==i)continue;if(!(0,a.Gv)(i)){t=i;continue}const e=Array.isArray(i);!e||!(0,a.Gv)(t)&&t&&Array.isArray(t)?e||!(0,a.Gv)(t)&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const o=i[e],s=t;s[e]=(0,a.Gv)(o)&&Array.isArray(o)?o.map((t=>z(s[e],t))):z(s[e],o)}}return t}function O(t,e){return!!D(e,(e=>e.enable&&m(t,e.mode)))}function P(t,e,i){R(e,(e=>{const o=e.mode;e.enable&&m(t,o)&&S(e,i)}))}function S(t,e){R(t.selectors,(i=>{e(i,t)}))}function T(t,e){if(e&&t)return D(t,(t=>function(t,e){const i=R(e,(e=>t.matches(e)));return(0,a.cy)(i)?i.some((t=>t)):i}(e,t.selectors)))}function E(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:n.M.create((0,o.VG)(t.options.bounce.horizontal.value),(0,o.VG)(t.options.bounce.vertical.value))}}function k(t,e){const{x:i,y:s}=t.velocity.sub(e.velocity),[a,n]=[t.position,e.position],{dx:r,dy:l}=(0,o.vr)(n,a);if(i*r+s*l<0)return;const c=-Math.atan2(l,r),d=t.mass,h=e.mass,u=t.velocity.rotate(c),p=e.velocity.rotate(c),v=(0,o.OW)(u,p,d,h),f=(0,o.OW)(p,u,d,h),m=v.rotate(-c),y=f.rotate(-c);t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y,e.velocity.x=y.x*e.factor.x,e.velocity.y=y.y*e.factor.y}function V(t,e){const i=M(t.getPosition(),t.getRadius()),s=t.options.bounce,a=d({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:(0,o.VG)(s.horizontal.value)});a.bounced&&(void 0!==a.velocity&&(t.velocity.x=a.velocity),void 0!==a.position&&(t.position.x=a.position));const n=d({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:(0,o.VG)(s.vertical.value)});n.bounced&&(void 0!==n.velocity&&(t.velocity.y=n.velocity),void 0!==n.position&&(t.position.y=n.position))}function R(t,e){return(0,a.cy)(t)?t.map(((t,i)=>e(t,i))):e(t,0)}function _(t,e,i){return(0,a.cy)(t)?b(t,e,i):t}function D(t,e){if((0,a.cy)(t))return t.find(((t,i)=>e(t,i)));return e(t,0)?t:void 0}function A(t,e){const i=t.value,a=t.animation,n={delayTime:(0,o.VG)(a.delay)*s.Xu,enable:a.enable,value:(0,o.VG)(t.value)*e,max:(0,o.W9)(i)*e,min:(0,o.Sg)(i)*e,loops:0,maxLoops:(0,o.VG)(a.count),time:0};if(a.enable){switch(n.decay=1-(0,o.VG)(a.decay),a.mode){case"increase":n.status="increasing";break;case"decrease":n.status="decreasing";break;case"random":n.status=(0,o.G0)()>=s.N3?"increasing":"decreasing"}const t="auto"===a.mode;switch(a.startValue){case"min":n.value=n.min,t&&(n.status="increasing");break;case"max":n.value=n.max,t&&(n.status="decreasing");break;default:n.value=(0,o.U4)(n),t&&(n.status=(0,o.G0)()>=s.N3?"increasing":"decreasing")}}return n.initialValue=n.value,n}function I(t,e){if(!("percent"===t.mode)){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/s.a5*e.width,y:t.y/s.a5*e.height}:{width:t.width/s.a5*e.width,height:t.height/s.a5*e.height}}function G(t,e){return I(t,e)}function C(t,e){return I(t,e)}function L(t,e,i,s,a){if(t.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const n=(e.velocity??0)*a.factor,r=e.min,l=e.max,c=e.decay??1;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=a.value),!((e.delayTime??0)>0&&e.time<(e.delayTime??0))){switch(e.status){case"increasing":e.value>=l?(i?e.status="decreasing":e.value-=l,e.loops||(e.loops=0),e.loops++):e.value+=n;break;case"decreasing":e.value<=r?(i?e.status="increasing":e.value+=l,e.loops||(e.loops=0),e.loops++):e.value-=n}e.velocity&&1!==c&&(e.velocity*=c),function(t,e,i,o,s){switch(e){case"max":i>=s&&t.destroy();break;case"min":i<=o&&t.destroy()}}(t,s,e.value,r,l),t.destroyed||(e.value=(0,o.qE)(e.value,r,l))}}},5540:(t,e,i)=>{i.d(e,{A9:()=>y.A,pK:()=>g.p,Jm:()=>ht.Jm,VS:()=>b.V,TH:()=>w.T,ys:()=>x.y,dg:()=>f.dg,jl:()=>f.jl,rX:()=>P.r,cV:()=>L.c,N_:()=>F.N,Fr:()=>B.F,ev:()=>M.e,GW:()=>S.G,sV:()=>T.s,sJ:()=>u,mc:()=>z.m,LO:()=>E.L,i7:()=>O.i,kG:()=>d,kf:()=>R.k,jL:()=>D.j,dX:()=>_.d,yU:()=>U.y,hz:()=>q.h,RE:()=>W.R,Zg:()=>$.Z,y1:()=>Y.y,vU:()=>J.v,OG:()=>X.O,Y4:()=>it.Y,Ih:()=>ot.I,JY:()=>A.J,Oi:()=>I.O,j$:()=>H.j,kQ:()=>k.k,wv:()=>G.w,F5:()=>C.F,M1:()=>et.M,U4:()=>p,Ne:()=>Q.N,Ad:()=>tt.A,UO:()=>j.U,bR:()=>v.b,Q4:()=>g.Q,AI:()=>ht.AI,M_:()=>f.M_,z0:()=>V.z,Ft:()=>lt.F,OT:()=>h,Vo:()=>K.V,yp:()=>st.y,or:()=>at.o,qv:()=>nt.q,tK:()=>Z.t,tc:()=>N.t,Sx:()=>ct.S,fK:()=>dt.f,PV:()=>ht.PV,Mi:()=>m.M,pG:()=>m.p,Py:()=>rt.P,a9:()=>c.a9,nL:()=>n.nL,yx:()=>ut.yx,O2:()=>s.O2,n0:()=>s.n0,Nx:()=>n.Nx,qM:()=>n.qM,eh:()=>n.eh,Mh:()=>n.Mh,l1:()=>n.l1,AE:()=>s.AE,pE:()=>s.pE,Tg:()=>s.Tg,qE:()=>n.qE,IU:()=>ut.IU,OW:()=>n.OW,EY:()=>c.EY,mK:()=>c.mK,qe:()=>c.qe,zw:()=>s.zw,pu:()=>n.pu,NV:()=>s.NV,U6:()=>s.U6,QC:()=>ut.QC,V6:()=>ut.V6,p0:()=>ut.p0,Wb:()=>ut.Wb,e_:()=>ut.e_,KG:()=>ut.KG,gF:()=>ut.gF,dI:()=>o.dI,wJ:()=>s.wJ,w3:()=>s.w3,eb:()=>o.eb,Yf:()=>n.Yf,vr:()=>n.vr,il:()=>n.il,pz:()=>c.pz,O_:()=>c.O_,_h:()=>c._h,PG:()=>c.PG,tZ:()=>s.tZ,$m:()=>n.$m,ak:()=>n.JY,E9:()=>s.E9,G0:()=>n.G0,OH:()=>c.OH,W9:()=>n.W9,Sg:()=>n.Sg,VG:()=>n.VG,YC:()=>s.YC,LC:()=>c.LC,xx:()=>c.xx,N3:()=>o.N3,q8:()=>s.q8,YL:()=>c.YL,ay:()=>c.ay,Xs:()=>s.Xs,cy:()=>vt.cy,Lm:()=>vt.Lm,iK:()=>s.iK,Tn:()=>vt.Tn,hn:()=>s.hn,Et:()=>vt.Et,Gv:()=>vt.Gv,Tj:()=>s.Tj,B9:()=>s.B9,Kg:()=>vt.Kg,Vh:()=>s.Vh,TA:()=>s.TA,Al:()=>s.Al,ZG:()=>pt.Z,yV:()=>pt.y,Xu:()=>o.Xu,jh:()=>n.jh,ms:()=>o.ms,Z0:()=>o.Z0,Rb:()=>o.Rb,sf:()=>o.sf,vo:()=>o.vo,Sn:()=>ut.Sn,Md:()=>ut.Md,M3:()=>n.M3,a5:()=>o.a5,BH:()=>n.U4,R5:()=>c.R5,BN:()=>c.BN,jo:()=>s.jo,NF:()=>o.NF,K6:()=>c.K6,BR:()=>s.BR,lV:()=>s.lV,tG:()=>s.tG,Br:()=>s.Br,OE:()=>n.OE,DT:()=>n.DT,S7:()=>s.S7,zI:()=>c.zI,eg:()=>c.eg,G3:()=>o.G3,Bp:()=>o.Bp,DG:()=>o.DG,s7:()=>o.s7,$k:()=>ft,UC:()=>s.UC,Jv:()=>c.Jv,Ko:()=>c.Ko,nK:()=>o.nK});var o=i(751),s=i(3393);class a{constructor(){this._listeners=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this._listeners.get(t);i?.forEach((t=>t(e)))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){const i=this._listeners.get(t);if(!i)return;const o=i.length,s=i.indexOf(e);if(s<0)return;1===o?this._listeners.delete(t):i.splice(s,1)}}var n=i(2646);async function r(t,e,i,o=!1){let s=e.get(t);return s&&!o||(s=await Promise.all([...i.values()].map((e=>e(t)))),e.set(t,s)),s}class l{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new a,this._initialized=!1,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[e,i]of this._configs)t[e]=i;return t}get version(){return"3.3.0"}addConfig(t){const e=t.key??t.name??"default";this._configs.set(e,t),this._eventDispatcher.dispatchEvent("configAdded",{data:{name:e,config:t}})}async addEffect(t,e,i=!0){(0,s.wJ)(t,(t=>{this.getEffectDrawer(t)||this.effectDrawers.set(t,e)})),await this.refresh(i)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}async addInteractor(t,e,i=!0){this._initializers.interactors.set(t,e),await this.refresh(i)}async addMover(t,e,i=!0){this._initializers.movers.set(t,e),await this.refresh(i)}async addParticleUpdater(t,e,i=!0){this._initializers.updaters.set(t,e),await this.refresh(i)}async addPathGenerator(t,e,i=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,e),await this.refresh(i)}async addPlugin(t,e=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(e)}async addPreset(t,e,i=!1,o=!0){!i&&this.getPreset(t)||this.presets.set(t,e),await this.refresh(o)}async addShape(t,e,i=!0){(0,s.wJ)(t,(t=>{this.getShapeDrawer(t)||this.shapeDrawers.set(t,e)})),await this.refresh(i)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}dom(){return this._domArray}domItem(t){const e=this.dom(),i=e[t];if(i&&!i.destroyed)return i;{const i=1;e.splice(t,i)}}async getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,await i.getPlugin(t));return e}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,e=!1){return await r(t,this.interactors,this._initializers.interactors,e)}async getMovers(t,e=!1){return await r(t,this.movers,this._initializers.movers,e)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find((e=>e.id===t))}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,e=!1){return await r(t,this.updaters,this._initializers.updaters,e)}init(){this._initialized||(this._initialized=!0)}async load(t){const e=t.id??t.element?.id??`tsparticles${Math.floor(1e4*(0,n.G0)())}`,{index:a,url:r}=t,l=r?await async function(t){const e=(0,s.TA)(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():((0,s.tZ)().error(`${o.dI} ${i.status} while retrieving config file`),t.fallback)}({fallback:t.options,url:r,index:a}):t.options;let c=t.element??document.getElementById(e);c||(c=document.createElement("div"),c.id=e,document.body.append(c));const d=(0,s.TA)(l,a),h=this.dom(),u=h.findIndex((t=>t.id.description===e));if(u>=0){const t=this.domItem(u);if(t&&!t.destroyed){t.destroy();const e=1;h.splice(u,e)}}let p;if("canvas"===c.tagName.toLowerCase())p=c,p.dataset[o.eb]="false";else{const t=c.getElementsByTagName("canvas");if(t.length){p=t[0],p.dataset[o.eb]="false"}else p=document.createElement("canvas"),p.dataset[o.eb]="true",c.appendChild(p)}p.style.width||(p.style.width="100%"),p.style.height||(p.style.height="100%");const{Container:v}=await i.e(2043).then(i.bind(i,2043)),f=new v(this,e,d);if(u>=0){const t=0;h.splice(u,t,f)}else h.push(f);return f.canvas.loadCanvas(p),await f.start(),f}loadOptions(t,e){for(const i of this.plugins)i.loadOptions(t,e)}loadParticlesOptions(t,e,...i){const o=this.updaters.get(t);if(o)for(const t of o)t.loadOptions?.(e,...i)}async refresh(t=!0){t&&await Promise.all(this.dom().map((t=>t.refresh())))}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}setOnClickHandler(t){const e=this.dom();if(!e.length)throw new Error(`${o.dI} can only set click handlers after calling tsParticles.load()`);for(const i of e)i.addClickHandler(t)}}var c=i(7422);class d{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.s&&void 0!==e.l)return(0,c.YL)(e)}handleRangeColor(t){const e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.l)return(0,c.YL)({h:(0,n.VG)(e.h),l:(0,n.VG)(e.l),s:(0,n.VG)(e.s)})}parseString(t){if(!t.startsWith("hsl"))return;const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?(0,c.ay)({a:e.length>4?(0,n.M3)(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}}class h{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const e=t.value.rgb??t.value;if(void 0!==e.r)return e}handleRangeColor(t){const e=t.value.rgb??t.value;if(void 0!==e.r)return{r:(0,n.VG)(e.r),g:(0,n.VG)(e.g),b:(0,n.VG)(e.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?(0,n.M3)(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}}class u{constructor(t){this.type="external",this.container=t}}class p{constructor(t){this.type="particles",this.container=t}}var v=i(2284),f=i(694),m=i(4798),y=i(2655),g=i(9190),b=i(1897),w=i(3829),x=i(490),M=i(6865),z=i(9943),O=i(1657),P=i(2562),S=i(5907),T=i(7023),E=i(1864),k=i(1753),V=i(3492),R=i(7287),_=i(699),D=i(9638),A=i(4126),I=i(6719),G=i(1494),C=i(8745),L=i(4907),F=i(8362),B=i(108),j=i(9944),K=i(286),N=i(1754),W=i(9326),U=i(7299),q=i(2748),$=i(2662),Y=i(1917),H=i(9978),J=i(4802),Z=i(5794),X=i(5271),Q=i(3730),tt=i(6407),et=i(6207),it=i(6659),ot=i(9245),st=i(47),at=i(6955),nt=i(7685),rt=i(9725),lt=i(376),ct=i(3863),dt=i(9262),ht=i(2034),ut=i(1813),pt=i(8761),vt=i(2457);const ft=function(){const t=new h,e=new d;(0,c.a9)(t),(0,c.a9)(e);const i=new l;return i.init(),i}();(0,s.B9)()||(window.tsParticles=ft)}},o={};function s(t){var e=o[t];if(void 0!==e)return e.exports;var a=o[t]={exports:{}};return i[t](a,a.exports,s),a.exports}s.m=i,s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce(((e,i)=>(s.f[i](t,e),e)),[])),s.u=t=>t+".min.js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="@tsparticles/confetti:",s.l=(i,o,a,n)=>{if(t[i])t[i].push(o);else{var r,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var h=c[d];if(h.getAttribute("src")==i||h.getAttribute("data-webpack")==e+a){r=h;break}}r||(l=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,s.nc&&r.setAttribute("nonce",s.nc),r.setAttribute("data-webpack",e+a),r.src=i),t[i]=[o];var u=(e,o)=>{r.onerror=r.onload=null,clearTimeout(p);var s=t[i];if(delete t[i],r.parentNode&&r.parentNode.removeChild(r),s&&s.forEach((t=>t(o))),e)return e(o)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),l&&document.head.appendChild(r)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");if(i.length)for(var o=i.length-1;o>-1&&(!t||!/^http(s?):/.test(t));)t=i[o--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t})(),(()=>{var t={1483:0};s.f.j=(e,i)=>{var o=s.o(t,e)?t[e]:void 0;if(0!==o)if(o)i.push(o[2]);else{var a=new Promise(((i,s)=>o=t[e]=[i,s]));i.push(o[2]=a);var n=s.p+s.u(e),r=new Error;s.l(n,(i=>{if(s.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var a=i&&("load"===i.type?"missing":i.type),n=i&&i.target&&i.target.src;r.message="Loading chunk "+e+" failed.\n("+a+": "+n+")",r.name="ChunkLoadError",r.type=a,r.request=n,o[1](r)}}),"chunk-"+e,e)}};var e=(e,i)=>{var o,a,n=i[0],r=i[1],l=i[2],c=0;if(n.some((e=>0!==t[e]))){for(o in r)s.o(r,o)&&(s.m[o]=r[o]);if(l)l(s)}for(e&&e(i);c<n.length;c++)a=n[c],s.o(t,a)&&t[a]&&t[a][0](),t[a]=0},i=this.webpackChunk_tsparticles_confetti=this.webpackChunk_tsparticles_confetti||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var a={};return(()=>{s.r(a),s.d(a,{AnimatableColor:()=>t.A9,AnimationOptions:()=>t.pK,AnimationValueWithRandom:()=>t.Jm,Background:()=>t.VS,BackgroundMask:()=>t.TH,BackgroundMaskCover:()=>t.ys,BaseRange:()=>t.dg,Circle:()=>t.jl,ClickEvent:()=>t.rX,Collisions:()=>t.cV,CollisionsAbsorb:()=>t.N_,CollisionsOverlap:()=>t.Fr,ColorAnimation:()=>t.ev,DivEvent:()=>t.GW,Events:()=>t.sV,ExternalInteractorBase:()=>t.sJ,FullScreen:()=>t.mc,HoverEvent:()=>t.LO,HslAnimation:()=>t.i7,HslColorManager:()=>t.kG,Interactivity:()=>t.kf,ManualParticle:()=>t.jL,Modes:()=>t.dX,Move:()=>t.yU,MoveAngle:()=>t.hz,MoveAttract:()=>t.RE,MoveCenter:()=>t.Zg,MoveGravity:()=>t.y1,MovePath:()=>t.vU,MoveTrail:()=>t.OG,Opacity:()=>t.Y4,OpacityAnimation:()=>t.Ih,Options:()=>t.JY,OptionsColor:()=>t.Oi,OutModes:()=>t.j$,Parallax:()=>t.kQ,ParticlesBounce:()=>t.wv,ParticlesBounceFactor:()=>t.F5,ParticlesDensity:()=>t.M1,ParticlesInteractorBase:()=>t.U4,ParticlesNumber:()=>t.Ne,ParticlesNumberLimit:()=>t.Ad,ParticlesOptions:()=>t.UO,Point:()=>t.bR,RangedAnimationOptions:()=>t.Q4,RangedAnimationValueWithRandom:()=>t.AI,Rectangle:()=>t.M_,ResizeEvent:()=>t.z0,Responsive:()=>t.Ft,RgbColorManager:()=>t.OT,Shadow:()=>t.Vo,Shape:()=>t.yp,Size:()=>t.or,SizeAnimation:()=>t.qv,Spin:()=>t.tK,Stroke:()=>t.tc,Theme:()=>t.Sx,ThemeDefault:()=>t.fK,ValueWithRandom:()=>t.PV,Vector:()=>t.Mi,Vector3d:()=>t.pG,ZIndex:()=>t.Py,addColorManager:()=>t.a9,addEasing:()=>t.nL,alterHsl:()=>t.yx,areBoundsInside:()=>t.O2,arrayRandomIndex:()=>t.n0,calcExactPositionOrRandomFromSize:()=>t.Nx,calcExactPositionOrRandomFromSizeRanged:()=>t.qM,calcPositionFromSize:()=>t.eh,calcPositionOrRandomFromSize:()=>t.Mh,calcPositionOrRandomFromSizeRanged:()=>t.l1,calculateBounds:()=>t.AE,circleBounce:()=>t.pE,circleBounceDataFromParticle:()=>t.Tg,clamp:()=>t.qE,clear:()=>t.IU,collisionVelocity:()=>t.OW,colorMix:()=>t.EY,colorToHsl:()=>t.mK,colorToRgb:()=>t.qe,confetti:()=>f,deepExtend:()=>t.zw,degToRad:()=>t.pu,divMode:()=>t.NV,divModeExecute:()=>t.U6,drawEffect:()=>t.QC,drawLine:()=>t.V6,drawParticle:()=>t.p0,drawParticlePlugin:()=>t.Wb,drawPlugin:()=>t.e_,drawShape:()=>t.KG,drawShapeAfterDraw:()=>t.gF,errorPrefix:()=>t.dI,executeOnSingleOrMultiple:()=>t.wJ,findItemFromSingleOrMultiple:()=>t.w3,generatedAttribute:()=>t.eb,getDistance:()=>t.Yf,getDistances:()=>t.vr,getEasing:()=>t.il,getHslAnimationFromHsl:()=>t.pz,getHslFromAnimation:()=>t.O_,getLinkColor:()=>t._h,getLinkRandomColor:()=>t.PG,getLogger:()=>t.tZ,getParticleBaseVelocity:()=>t.$m,getParticleDirectionAngle:()=>t.ak,getPosition:()=>t.E9,getRandom:()=>t.G0,getRandomRgbColor:()=>t.OH,getRangeMax:()=>t.W9,getRangeMin:()=>t.Sg,getRangeValue:()=>t.VG,getSize:()=>t.YC,getStyleFromHsl:()=>t.LC,getStyleFromRgb:()=>t.xx,halfRandom:()=>t.N3,hasMatchMedia:()=>t.q8,hslToRgb:()=>t.YL,hslaToRgba:()=>t.ay,initParticleNumericAnimationValue:()=>t.Xs,isArray:()=>t.cy,isBoolean:()=>t.Lm,isDivModeEnabled:()=>t.iK,isFunction:()=>t.Tn,isInArray:()=>t.hn,isNumber:()=>t.Et,isObject:()=>t.Gv,isPointInside:()=>t.Tj,isSsr:()=>t.B9,isString:()=>t.Kg,itemFromArray:()=>t.Vh,itemFromSingleOrMultiple:()=>t.TA,loadFont:()=>t.Al,loadOptions:()=>t.ZG,loadParticlesOptions:()=>t.yV,millisecondsToSeconds:()=>t.Xu,mix:()=>t.jh,mouseDownEvent:()=>t.ms,mouseLeaveEvent:()=>t.Z0,mouseMoveEvent:()=>t.Rb,mouseOutEvent:()=>t.sf,mouseUpEvent:()=>t.vo,paintBase:()=>t.Sn,paintImage:()=>t.Md,parseAlpha:()=>t.M3,percentDenominator:()=>t.a5,randomInRange:()=>t.BH,rangeColorToHsl:()=>t.R5,rangeColorToRgb:()=>t.BN,rectBounce:()=>t.jo,resizeEvent:()=>t.NF,rgbToHsl:()=>t.K6,safeIntersectionObserver:()=>t.BR,safeMatchMedia:()=>t.lV,safeMutationObserver:()=>t.tG,setLogger:()=>t.Br,setRandom:()=>t.OE,setRangeValue:()=>t.DT,singleDivModeExecute:()=>t.S7,stringToAlpha:()=>t.zI,stringToRgb:()=>t.eg,touchCancelEvent:()=>t.G3,touchEndEvent:()=>t.Bp,touchMoveEvent:()=>t.DG,touchStartEvent:()=>t.s7,tsParticles:()=>t.$k,updateAnimation:()=>t.UC,updateColor:()=>t.Jv,updateColorValue:()=>t.Ko,visibilityChangeEvent:()=>t.nK});var t=s(5540);class e{constructor(){this.angle=90,this.count=50,this.spread=45,this.startVelocity=45,this.decay=.9,this.gravity=1,this.drift=0,this.ticks=200,this.position={x:50,y:50},this.colors=["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],this.shapes=["square","circle"],this.scalar=1,this.zIndex=100,this.disableForReducedMotion=!0,this.flat=!1,this.shapeOptions={}}get origin(){return{x:this.position.x/t.a5,y:this.position.y/t.a5}}set origin(e){this.position.x=e.x*t.a5,this.position.y=e.y*t.a5}get particleCount(){return this.count}set particleCount(t){this.count=t}load(e){if(!e)return;void 0!==e.angle&&(this.angle=e.angle);const i=e.count??e.particleCount;void 0!==i&&(this.count=i),void 0!==e.spread&&(this.spread=e.spread),void 0!==e.startVelocity&&(this.startVelocity=e.startVelocity),void 0!==e.decay&&(this.decay=e.decay),void 0!==e.flat&&(this.flat=e.flat),void 0!==e.gravity&&(this.gravity=e.gravity),void 0!==e.drift&&(this.drift=e.drift),void 0!==e.ticks&&(this.ticks=e.ticks);const o=e.origin;o&&!e.position&&(e.position={x:void 0!==o.x?o.x*t.a5:void 0,y:void 0!==o.y?o.y*t.a5:void 0});const s=e.position;s&&(void 0!==s.x&&(this.position.x=s.x),void 0!==s.y&&(this.position.y=s.y)),void 0!==e.colors&&((0,t.cy)(e.colors)?this.colors=[...e.colors]:this.colors=e.colors);const a=e.shapeOptions;if(void 0!==a)for(const e in a){const i=a[e];i&&(this.shapeOptions[e]=(0,t.zw)(this.shapeOptions[e]??{},i))}void 0!==e.shapes&&((0,t.cy)(e.shapes)?this.shapes=[...e.shapes]:this.shapes=e.shapes),void 0!==e.scalar&&(this.scalar=e.scalar),void 0!==e.zIndex&&(this.zIndex=e.zIndex),void 0!==e.disableForReducedMotion&&(this.disableForReducedMotion=e.disableForReducedMotion)}}const i=9.81,o=5,n=3,r=1,l=0,c=0;let d=!1,h=!1;const u=new Map;async function p(t){if(d)return;if(h)return new Promise((t=>{const e=setInterval((()=>{d&&(clearInterval(e),t())}),100)}));h=!0;const{loadEmittersPlugin:e}=await s.e(2370).then(s.bind(s,2370)),{loadMotionPlugin:i}=await s.e(2497).then(s.bind(s,2497)),{loadCardsShape:o}=await s.e(3622).then(s.bind(s,3622)),{loadHeartShape:a}=await s.e(439).then(s.bind(s,439)),{loadImageShape:n}=await s.e(2136).then(s.bind(s,2136)),{loadPolygonShape:r}=await s.e(705).then(s.bind(s,705)),{loadSquareShape:l}=await s.e(2284).then(s.bind(s,9903)),{loadStarShape:c}=await s.e(401).then(s.bind(s,401)),{loadEmojiShape:u}=await s.e(8125).then(s.bind(s,8125)),{loadRotateUpdater:p}=await s.e(4036).then(s.bind(s,4036)),{loadLifeUpdater:v}=await s.e(5775).then(s.bind(s,5775)),{loadRollUpdater:f}=await s.e(3632).then(s.bind(s,3632)),{loadTiltUpdater:m}=await s.e(3416).then(s.bind(s,3416)),{loadWobbleUpdater:y}=await s.e(5814).then(s.bind(s,5814)),{loadBasic:g}=await s.e(357).then(s.bind(s,357));await e(t,!1),await i(t,!1),await o(t,!1),await a(t,!1),await n(t,!1),await r(t,!1),await l(t,!1),await c(t,!1),await u(t,!1),await p(t,!1),await v(t,!1),await f(t,!1),await m(t,!1),await y(t,!1),await g(t),h=!1,d=!0}async function v(s){const a=new e;let d;a.load(s.options);const h=a.ticks*t.Xu/(3.6*t.Xu*120);if(u.has(s.id)&&(d=u.get(s.id),d&&!d.destroyed)){const t=d;if(t.addEmitter)return void await t.addEmitter({startCount:a.count,position:a.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1},particles:{color:{value:a.colors},shape:{type:a.shapes,options:a.shapeOptions},life:{count:1},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:h,startValue:"max",destroy:"min"}},size:{value:o*a.scalar},move:{angle:{value:a.spread,offset:0},drift:{min:-a.drift,max:a.drift},gravity:{acceleration:a.gravity*i},speed:a.startVelocity*n,decay:r-a.decay,direction:-a.angle}}})}const p={fullScreen:{enable:!s.canvas,zIndex:a.zIndex},fpsLimit:120,particles:{number:{value:0},color:{value:a.colors},shape:{type:a.shapes,options:a.shapeOptions},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:h,startValue:"max",destroy:"min"}},size:{value:o*a.scalar},links:{enable:!1},life:{count:1},move:{angle:{value:a.spread,offset:0},drift:{min:-a.drift,max:a.drift},enable:!0,gravity:{enable:!0,acceleration:a.gravity*i},speed:a.startVelocity*n,decay:r-a.decay,direction:-a.angle,random:!0,straight:!1,outModes:{default:"none",bottom:"destroy"}},rotate:{value:a.flat?l:{min:0,max:360},direction:"random",animation:{enable:!a.flat,speed:60}},tilt:{direction:"random",enable:!a.flat,value:a.flat?c:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:25},enable:!a.flat,speed:{min:15,max:25}},wobble:{distance:30,enable:!a.flat,speed:{min:-15,max:15}}},detectRetina:!0,motion:{disable:a.disableForReducedMotion},emitters:{name:"confetti",startCount:a.count,position:a.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1}}};return d=await t.$k.load({id:s.id,element:s.canvas,options:p}),u.set(s.id,d),d}async function f(e,i){let o,s;return await p(t.$k),(0,t.Kg)(e)?(s=e,o=i??{}):(s="confetti",o=e),v({id:s,options:o})}f.create=async(e,i)=>{if(!e)return f;await p(t.$k);const o=e.getAttribute("id")??"confetti";return e.setAttribute("id",o),async(s,a)=>{let n,r;return(0,t.Kg)(s)?(r=s,n=a??i):(r=o,n=s),v({id:r,canvas:e,options:n})}},f.version=t.$k.version,(0,t.B9)()||(window.confetti=f)})(),a})()));

@@ -1,1 +0,1 @@

/*! tsParticles Confetti v3.2.2 by Matteo Bruni */
/*! tsParticles Confetti v3.3.0 by Matteo Bruni */

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ /*

/*! For license information please see tsparticles.confetti.min.js.LICENSE.txt */
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"),require("@tsparticles/basic"),require("@tsparticles/updater-wobble"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-roll"),require("@tsparticles/updater-life"),require("@tsparticles/updater-rotate"),require("@tsparticles/shape-emoji"),require("@tsparticles/shape-star"),require("@tsparticles/shape-square"),require("@tsparticles/shape-polygon"),require("@tsparticles/shape-image"),require("@tsparticles/shape-heart"),require("@tsparticles/shape-cards"),require("@tsparticles/plugin-motion"),require("@tsparticles/plugin-emitters"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine","@tsparticles/basic","@tsparticles/updater-wobble","@tsparticles/updater-tilt","@tsparticles/updater-roll","@tsparticles/updater-life","@tsparticles/updater-rotate","@tsparticles/shape-emoji","@tsparticles/shape-star","@tsparticles/shape-square","@tsparticles/shape-polygon","@tsparticles/shape-image","@tsparticles/shape-heart","@tsparticles/shape-cards","@tsparticles/plugin-motion","@tsparticles/plugin-emitters"],t);else{var i="object"==typeof exports?t(require("@tsparticles/engine"),require("@tsparticles/basic"),require("@tsparticles/updater-wobble"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-roll"),require("@tsparticles/updater-life"),require("@tsparticles/updater-rotate"),require("@tsparticles/shape-emoji"),require("@tsparticles/shape-star"),require("@tsparticles/shape-square"),require("@tsparticles/shape-polygon"),require("@tsparticles/shape-image"),require("@tsparticles/shape-heart"),require("@tsparticles/shape-cards"),require("@tsparticles/plugin-motion"),require("@tsparticles/plugin-emitters")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(this,((e,t,i,a,s,r,o,n,l,p,d,c,u,h,f,m)=>(()=>{var v,w,y={574:e=>{e.exports=t},533:t=>{t.exports=e},68:e=>{e.exports=m},82:e=>{e.exports=f},686:e=>{e.exports=h},151:e=>{e.exports=n},12:e=>{e.exports=u},885:e=>{e.exports=c},907:e=>{e.exports=d},652:e=>{e.exports=p},960:e=>{e.exports=l},84:e=>{e.exports=r},734:e=>{e.exports=s},59:e=>{e.exports=o},448:e=>{e.exports=a},83:e=>{e.exports=i}},b={};function g(e){var t=b[e];if(void 0!==t)return t.exports;var i=b[e]={exports:{}};return y[e](i,i.exports,g),i.exports}w=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,g.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var i=Object.create(null);g.r(i);var a={};v=v||[null,w({}),w([]),w(w)];for(var s=2&t&&e;"object"==typeof s&&!~v.indexOf(s);s=w(s))Object.getOwnPropertyNames(s).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,g.d(i,a),i},g.d=(e,t)=>{for(var i in t)g.o(t,i)&&!g.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},g.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),g.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var x={};return(()=>{g.r(x),g.d(x,{confetti:()=>h});var e=g(533);class t{constructor(){this.angle=90,this.count=50,this.spread=45,this.startVelocity=45,this.decay=.9,this.gravity=1,this.drift=0,this.ticks=200,this.position={x:50,y:50},this.colors=["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],this.shapes=["square","circle"],this.scalar=1,this.zIndex=100,this.disableForReducedMotion=!0,this.flat=!1,this.shapeOptions={}}get origin(){return{x:this.position.x/e.percentDenominator,y:this.position.y/e.percentDenominator}}set origin(t){this.position.x=t.x*e.percentDenominator,this.position.y=t.y*e.percentDenominator}get particleCount(){return this.count}set particleCount(e){this.count=e}load(t){if(!t)return;void 0!==t.angle&&(this.angle=t.angle);const i=t.count??t.particleCount;void 0!==i&&(this.count=i),void 0!==t.spread&&(this.spread=t.spread),void 0!==t.startVelocity&&(this.startVelocity=t.startVelocity),void 0!==t.decay&&(this.decay=t.decay),void 0!==t.flat&&(this.flat=t.flat),void 0!==t.gravity&&(this.gravity=t.gravity),void 0!==t.drift&&(this.drift=t.drift),void 0!==t.ticks&&(this.ticks=t.ticks);const a=t.origin;a&&!t.position&&(t.position={x:void 0!==a.x?a.x*e.percentDenominator:void 0,y:void 0!==a.y?a.y*e.percentDenominator:void 0});const s=t.position;s&&(void 0!==s.x&&(this.position.x=s.x),void 0!==s.y&&(this.position.y=s.y)),void 0!==t.colors&&((0,e.isArray)(t.colors)?this.colors=[...t.colors]:this.colors=t.colors);const r=t.shapeOptions;if(void 0!==r)for(const t in r){const i=r[t];i&&(this.shapeOptions[t]=(0,e.deepExtend)(this.shapeOptions[t]??{},i))}void 0!==t.shapes&&((0,e.isArray)(t.shapes)?this.shapes=[...t.shapes]:this.shapes=t.shapes),void 0!==t.scalar&&(this.scalar=t.scalar),void 0!==t.zIndex&&(this.zIndex=t.zIndex),void 0!==t.disableForReducedMotion&&(this.disableForReducedMotion=t.disableForReducedMotion)}}const i=9.81,a=5,s=3,r=1,o=0,n=0;let l=!1,p=!1;const d=new Map;async function c(e){if(l)return;if(p)return new Promise((e=>{const t=setInterval((()=>{l&&(clearInterval(t),e())}),100)}));p=!0;const{loadEmittersPlugin:t}=await Promise.resolve().then(g.t.bind(g,68,23)),{loadMotionPlugin:i}=await Promise.resolve().then(g.t.bind(g,82,23)),{loadCardsShape:a}=await Promise.resolve().then(g.t.bind(g,686,23)),{loadHeartShape:s}=await Promise.resolve().then(g.t.bind(g,12,23)),{loadImageShape:r}=await Promise.resolve().then(g.t.bind(g,885,23)),{loadPolygonShape:o}=await Promise.resolve().then(g.t.bind(g,907,23)),{loadSquareShape:n}=await Promise.resolve().then(g.t.bind(g,652,23)),{loadStarShape:d}=await Promise.resolve().then(g.t.bind(g,960,23)),{loadEmojiShape:c}=await Promise.resolve().then(g.t.bind(g,151,23)),{loadRotateUpdater:u}=await Promise.resolve().then(g.t.bind(g,59,23)),{loadLifeUpdater:h}=await Promise.resolve().then(g.t.bind(g,84,23)),{loadRollUpdater:f}=await Promise.resolve().then(g.t.bind(g,734,23)),{loadTiltUpdater:m}=await Promise.resolve().then(g.t.bind(g,448,23)),{loadWobbleUpdater:v}=await Promise.resolve().then(g.t.bind(g,83,23)),{loadBasic:w}=await Promise.resolve().then(g.t.bind(g,574,23));await t(e,!1),await i(e,!1),await a(e,!1),await s(e,!1),await r(e,!1),await o(e,!1),await n(e,!1),await d(e,!1),await c(e,!1),await u(e,!1),await h(e,!1),await f(e,!1),await m(e,!1),await v(e,!1),await w(e),p=!1,l=!0}async function u(l){const p=new t;let c;p.load(l.options);const u=p.ticks*e.millisecondsToSeconds/(3.6*e.millisecondsToSeconds*120);if(d.has(l.id)&&(c=d.get(l.id),c&&!c.destroyed)){const e=c;if(e.addEmitter)return void await e.addEmitter({startCount:p.count,position:p.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1},particles:{color:{value:p.colors},shape:{type:p.shapes,options:p.shapeOptions},life:{count:1},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:u,startValue:"max",destroy:"min"}},size:{value:a*p.scalar},move:{angle:{value:p.spread,offset:0},drift:{min:-p.drift,max:p.drift},gravity:{acceleration:p.gravity*i},speed:p.startVelocity*s,decay:r-p.decay,direction:-p.angle}}})}const h={fullScreen:{enable:!l.canvas,zIndex:p.zIndex},fpsLimit:120,particles:{number:{value:0},color:{value:p.colors},shape:{type:p.shapes,options:p.shapeOptions},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:u,startValue:"max",destroy:"min"}},size:{value:a*p.scalar},links:{enable:!1},life:{count:1},move:{angle:{value:p.spread,offset:0},drift:{min:-p.drift,max:p.drift},enable:!0,gravity:{enable:!0,acceleration:p.gravity*i},speed:p.startVelocity*s,decay:r-p.decay,direction:-p.angle,random:!0,straight:!1,outModes:{default:"none",bottom:"destroy"}},rotate:{value:p.flat?o:{min:0,max:360},direction:"random",animation:{enable:!p.flat,speed:60}},tilt:{direction:"random",enable:!p.flat,value:p.flat?n:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:25},enable:!p.flat,speed:{min:15,max:25}},wobble:{distance:30,enable:!p.flat,speed:{min:-15,max:15}}},detectRetina:!0,motion:{disable:p.disableForReducedMotion},emitters:{name:"confetti",startCount:p.count,position:p.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1}}};return c=await e.tsParticles.load({id:l.id,element:l.canvas,options:h}),d.set(l.id,c),c}async function h(t,i){let a,s;return await c(e.tsParticles),(0,e.isString)(t)?(s=t,a=i??{}):(s="confetti",a=t),u({id:s,options:a})}h.create=async(t,i)=>{if(!t)return h;await c(e.tsParticles);const a=t.getAttribute("id")??"confetti";return t.setAttribute("id",a),async(s,r)=>{let o,n;return(0,e.isString)(s)?(n=s,o=r??i):(n=a,o=s),u({id:n,canvas:t,options:o})}},h.version=e.tsParticles.version,(0,e.isSsr)()||(window.confetti=h)})(),x})()));
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"),require("@tsparticles/basic"),require("@tsparticles/updater-wobble"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-roll"),require("@tsparticles/updater-life"),require("@tsparticles/updater-rotate"),require("@tsparticles/shape-emoji"),require("@tsparticles/shape-star"),require("@tsparticles/shape-square"),require("@tsparticles/shape-polygon"),require("@tsparticles/shape-image"),require("@tsparticles/shape-heart"),require("@tsparticles/shape-cards"),require("@tsparticles/plugin-motion"),require("@tsparticles/plugin-emitters"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine","@tsparticles/basic","@tsparticles/updater-wobble","@tsparticles/updater-tilt","@tsparticles/updater-roll","@tsparticles/updater-life","@tsparticles/updater-rotate","@tsparticles/shape-emoji","@tsparticles/shape-star","@tsparticles/shape-square","@tsparticles/shape-polygon","@tsparticles/shape-image","@tsparticles/shape-heart","@tsparticles/shape-cards","@tsparticles/plugin-motion","@tsparticles/plugin-emitters"],t);else{var i="object"==typeof exports?t(require("@tsparticles/engine"),require("@tsparticles/basic"),require("@tsparticles/updater-wobble"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-roll"),require("@tsparticles/updater-life"),require("@tsparticles/updater-rotate"),require("@tsparticles/shape-emoji"),require("@tsparticles/shape-star"),require("@tsparticles/shape-square"),require("@tsparticles/shape-polygon"),require("@tsparticles/shape-image"),require("@tsparticles/shape-heart"),require("@tsparticles/shape-cards"),require("@tsparticles/plugin-motion"),require("@tsparticles/plugin-emitters")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(this,((e,t,i,a,s,r,o,n,l,p,d,c,u,h,f,m)=>(()=>{var v,w,y={145:e=>{e.exports=t},303:t=>{t.exports=e},526:e=>{e.exports=m},235:e=>{e.exports=f},720:e=>{e.exports=h},109:e=>{e.exports=n},899:e=>{e.exports=u},162:e=>{e.exports=c},73:e=>{e.exports=d},400:e=>{e.exports=p},29:e=>{e.exports=l},75:e=>{e.exports=r},544:e=>{e.exports=s},668:e=>{e.exports=o},844:e=>{e.exports=a},238:e=>{e.exports=i}},b={};function g(e){var t=b[e];if(void 0!==t)return t.exports;var i=b[e]={exports:{}};return y[e](i,i.exports,g),i.exports}w=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,g.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var i=Object.create(null);g.r(i);var a={};v=v||[null,w({}),w([]),w(w)];for(var s=2&t&&e;"object"==typeof s&&!~v.indexOf(s);s=w(s))Object.getOwnPropertyNames(s).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,g.d(i,a),i},g.d=(e,t)=>{for(var i in t)g.o(t,i)&&!g.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},g.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),g.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var x={};return(()=>{g.r(x),g.d(x,{confetti:()=>h});var e=g(303);class t{constructor(){this.angle=90,this.count=50,this.spread=45,this.startVelocity=45,this.decay=.9,this.gravity=1,this.drift=0,this.ticks=200,this.position={x:50,y:50},this.colors=["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],this.shapes=["square","circle"],this.scalar=1,this.zIndex=100,this.disableForReducedMotion=!0,this.flat=!1,this.shapeOptions={}}get origin(){return{x:this.position.x/e.percentDenominator,y:this.position.y/e.percentDenominator}}set origin(t){this.position.x=t.x*e.percentDenominator,this.position.y=t.y*e.percentDenominator}get particleCount(){return this.count}set particleCount(e){this.count=e}load(t){if(!t)return;void 0!==t.angle&&(this.angle=t.angle);const i=t.count??t.particleCount;void 0!==i&&(this.count=i),void 0!==t.spread&&(this.spread=t.spread),void 0!==t.startVelocity&&(this.startVelocity=t.startVelocity),void 0!==t.decay&&(this.decay=t.decay),void 0!==t.flat&&(this.flat=t.flat),void 0!==t.gravity&&(this.gravity=t.gravity),void 0!==t.drift&&(this.drift=t.drift),void 0!==t.ticks&&(this.ticks=t.ticks);const a=t.origin;a&&!t.position&&(t.position={x:void 0!==a.x?a.x*e.percentDenominator:void 0,y:void 0!==a.y?a.y*e.percentDenominator:void 0});const s=t.position;s&&(void 0!==s.x&&(this.position.x=s.x),void 0!==s.y&&(this.position.y=s.y)),void 0!==t.colors&&((0,e.isArray)(t.colors)?this.colors=[...t.colors]:this.colors=t.colors);const r=t.shapeOptions;if(void 0!==r)for(const t in r){const i=r[t];i&&(this.shapeOptions[t]=(0,e.deepExtend)(this.shapeOptions[t]??{},i))}void 0!==t.shapes&&((0,e.isArray)(t.shapes)?this.shapes=[...t.shapes]:this.shapes=t.shapes),void 0!==t.scalar&&(this.scalar=t.scalar),void 0!==t.zIndex&&(this.zIndex=t.zIndex),void 0!==t.disableForReducedMotion&&(this.disableForReducedMotion=t.disableForReducedMotion)}}const i=9.81,a=5,s=3,r=1,o=0,n=0;let l=!1,p=!1;const d=new Map;async function c(e){if(l)return;if(p)return new Promise((e=>{const t=setInterval((()=>{l&&(clearInterval(t),e())}),100)}));p=!0;const{loadEmittersPlugin:t}=await Promise.resolve().then(g.t.bind(g,526,23)),{loadMotionPlugin:i}=await Promise.resolve().then(g.t.bind(g,235,23)),{loadCardsShape:a}=await Promise.resolve().then(g.t.bind(g,720,23)),{loadHeartShape:s}=await Promise.resolve().then(g.t.bind(g,899,23)),{loadImageShape:r}=await Promise.resolve().then(g.t.bind(g,162,23)),{loadPolygonShape:o}=await Promise.resolve().then(g.t.bind(g,73,23)),{loadSquareShape:n}=await Promise.resolve().then(g.t.bind(g,400,23)),{loadStarShape:d}=await Promise.resolve().then(g.t.bind(g,29,23)),{loadEmojiShape:c}=await Promise.resolve().then(g.t.bind(g,109,23)),{loadRotateUpdater:u}=await Promise.resolve().then(g.t.bind(g,668,23)),{loadLifeUpdater:h}=await Promise.resolve().then(g.t.bind(g,75,23)),{loadRollUpdater:f}=await Promise.resolve().then(g.t.bind(g,544,23)),{loadTiltUpdater:m}=await Promise.resolve().then(g.t.bind(g,844,23)),{loadWobbleUpdater:v}=await Promise.resolve().then(g.t.bind(g,238,23)),{loadBasic:w}=await Promise.resolve().then(g.t.bind(g,145,23));await t(e,!1),await i(e,!1),await a(e,!1),await s(e,!1),await r(e,!1),await o(e,!1),await n(e,!1),await d(e,!1),await c(e,!1),await u(e,!1),await h(e,!1),await f(e,!1),await m(e,!1),await v(e,!1),await w(e),p=!1,l=!0}async function u(l){const p=new t;let c;p.load(l.options);const u=p.ticks*e.millisecondsToSeconds/(3.6*e.millisecondsToSeconds*120);if(d.has(l.id)&&(c=d.get(l.id),c&&!c.destroyed)){const e=c;if(e.addEmitter)return void await e.addEmitter({startCount:p.count,position:p.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1},particles:{color:{value:p.colors},shape:{type:p.shapes,options:p.shapeOptions},life:{count:1},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:u,startValue:"max",destroy:"min"}},size:{value:a*p.scalar},move:{angle:{value:p.spread,offset:0},drift:{min:-p.drift,max:p.drift},gravity:{acceleration:p.gravity*i},speed:p.startVelocity*s,decay:r-p.decay,direction:-p.angle}}})}const h={fullScreen:{enable:!l.canvas,zIndex:p.zIndex},fpsLimit:120,particles:{number:{value:0},color:{value:p.colors},shape:{type:p.shapes,options:p.shapeOptions},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:u,startValue:"max",destroy:"min"}},size:{value:a*p.scalar},links:{enable:!1},life:{count:1},move:{angle:{value:p.spread,offset:0},drift:{min:-p.drift,max:p.drift},enable:!0,gravity:{enable:!0,acceleration:p.gravity*i},speed:p.startVelocity*s,decay:r-p.decay,direction:-p.angle,random:!0,straight:!1,outModes:{default:"none",bottom:"destroy"}},rotate:{value:p.flat?o:{min:0,max:360},direction:"random",animation:{enable:!p.flat,speed:60}},tilt:{direction:"random",enable:!p.flat,value:p.flat?n:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:25},enable:!p.flat,speed:{min:15,max:25}},wobble:{distance:30,enable:!p.flat,speed:{min:-15,max:15}}},detectRetina:!0,motion:{disable:p.disableForReducedMotion},emitters:{name:"confetti",startCount:p.count,position:p.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1}}};return c=await e.tsParticles.load({id:l.id,element:l.canvas,options:h}),d.set(l.id,c),c}async function h(t,i){let a,s;return await c(e.tsParticles),(0,e.isString)(t)?(s=t,a=i??{}):(s="confetti",a=t),u({id:s,options:a})}h.create=async(t,i)=>{if(!t)return h;await c(e.tsParticles);const a=t.getAttribute("id")??"confetti";return t.setAttribute("id",a),async(s,r)=>{let o,n;return(0,e.isString)(s)?(n=s,o=r??i):(n=a,o=s),u({id:n,canvas:t,options:o})}},h.version=e.tsParticles.version,(0,e.isSsr)()||(window.confetti=h)})(),x})()));

@@ -1,1 +0,1 @@

/*! tsParticles Confetti v3.2.2 by Matteo Bruni */
/*! tsParticles Confetti v3.3.0 by Matteo Bruni */

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,3 +27,3 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ColorUpdater: () => (/* binding */ ColorUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass ColorUpdater {\n constructor(container) {\n this.container = container;\n }\n async init(particle) {\n const hslColor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rangeColorToHsl)(particle.options.color, particle.id, particle.options.reduceDuplicates);\n if (hslColor) {\n particle.color = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getHslAnimationFromHsl)(hslColor, particle.options.color.animation, this.container.retina.reduceFactor);\n }\n await Promise.resolve();\n }\n isEnabled(particle) {\n const {\n h: hAnimation,\n s: sAnimation,\n l: lAnimation\n } = particle.options.color.animation,\n {\n color\n } = particle;\n return !particle.destroyed && !particle.spawning && (color?.h.value !== undefined && hAnimation.enable || color?.s.value !== undefined && sAnimation.enable || color?.l.value !== undefined && lAnimation.enable);\n }\n async update(particle, delta) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateColor)(particle.color, delta);\n await Promise.resolve();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/color/dist/browser/ColorUpdater.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ColorUpdater: () => (/* binding */ ColorUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass ColorUpdater {\n constructor(container) {\n this.container = container;\n }\n init(particle) {\n const hslColor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rangeColorToHsl)(particle.options.color, particle.id, particle.options.reduceDuplicates);\n if (hslColor) {\n particle.color = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getHslAnimationFromHsl)(hslColor, particle.options.color.animation, this.container.retina.reduceFactor);\n }\n }\n isEnabled(particle) {\n const {\n h: hAnimation,\n s: sAnimation,\n l: lAnimation\n } = particle.options.color.animation,\n {\n color\n } = particle;\n return !particle.destroyed && !particle.spawning && (color?.h.value !== undefined && hAnimation.enable || color?.s.value !== undefined && sAnimation.enable || color?.l.value !== undefined && lAnimation.enable);\n }\n update(particle, delta) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateColor)(particle.color, delta);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/color/dist/browser/ColorUpdater.js?");

@@ -30,0 +30,0 @@ /***/ })

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,3 +27,3 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ LifeUpdater: () => (/* binding */ LifeUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Life_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Life.js */ \"../../updaters/life/dist/browser/Options/Classes/Life.js\");\n\n\nconst noTime = 0,\n identity = 1,\n infiniteValue = -1;\nclass LifeUpdater {\n constructor(container) {\n this.container = container;\n }\n async init(particle) {\n const container = this.container,\n particlesOptions = particle.options,\n lifeOptions = particlesOptions.life;\n if (!lifeOptions) {\n return;\n }\n particle.life = {\n delay: container.retina.reduceFactor ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.delay.value) * (lifeOptions.delay.sync ? identity : (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)()) / container.retina.reduceFactor * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds : noTime,\n delayTime: noTime,\n duration: container.retina.reduceFactor ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.duration.value) * (lifeOptions.duration.sync ? identity : (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)()) / container.retina.reduceFactor * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds : noTime,\n time: noTime,\n count: lifeOptions.count\n };\n if (particle.life.duration <= noTime) {\n particle.life.duration = infiniteValue;\n }\n if (particle.life.count <= noTime) {\n particle.life.count = infiniteValue;\n }\n if (particle.life) {\n particle.spawning = particle.life.delay > noTime;\n }\n await Promise.resolve();\n }\n isEnabled(particle) {\n return !particle.destroyed;\n }\n loadOptions(options, ...sources) {\n if (!options.life) {\n options.life = new _Options_Classes_Life_js__WEBPACK_IMPORTED_MODULE_1__.Life();\n }\n for (const source of sources) {\n options.life.load(source?.life);\n }\n }\n async update(particle, delta) {\n if (!this.isEnabled(particle) || !particle.life) {\n return;\n }\n const {\n updateLife\n } = await __webpack_require__.e(/*! import() */ \"updaters_life_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../updaters/life/dist/browser/Utils.js\"));\n updateLife(particle, delta, this.container.canvas.size);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/life/dist/browser/LifeUpdater.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ LifeUpdater: () => (/* binding */ LifeUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Life_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Life.js */ \"../../updaters/life/dist/browser/Options/Classes/Life.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Utils.js */ \"../../updaters/life/dist/browser/Utils.js\");\n\n\n\nconst noTime = 0,\n identity = 1,\n infiniteValue = -1;\nclass LifeUpdater {\n constructor(container) {\n this.container = container;\n }\n init(particle) {\n const container = this.container,\n particlesOptions = particle.options,\n lifeOptions = particlesOptions.life;\n if (!lifeOptions) {\n return;\n }\n particle.life = {\n delay: container.retina.reduceFactor ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.delay.value) * (lifeOptions.delay.sync ? identity : (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)()) / container.retina.reduceFactor * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds : noTime,\n delayTime: noTime,\n duration: container.retina.reduceFactor ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.duration.value) * (lifeOptions.duration.sync ? identity : (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)()) / container.retina.reduceFactor * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds : noTime,\n time: noTime,\n count: lifeOptions.count\n };\n if (particle.life.duration <= noTime) {\n particle.life.duration = infiniteValue;\n }\n if (particle.life.count <= noTime) {\n particle.life.count = infiniteValue;\n }\n if (particle.life) {\n particle.spawning = particle.life.delay > noTime;\n }\n }\n isEnabled(particle) {\n return !particle.destroyed;\n }\n loadOptions(options, ...sources) {\n if (!options.life) {\n options.life = new _Options_Classes_Life_js__WEBPACK_IMPORTED_MODULE_1__.Life();\n }\n for (const source of sources) {\n options.life.load(source?.life);\n }\n }\n update(particle, delta) {\n if (!this.isEnabled(particle) || !particle.life) {\n return;\n }\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_2__.updateLife)(particle, delta, this.container.canvas.size);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/life/dist/browser/LifeUpdater.js?");

@@ -60,4 +60,14 @@ /***/ }),

/***/ }),
/***/ "../../updaters/life/dist/browser/Utils.js":
/*!*************************************************!*\
!*** ../../updaters/life/dist/browser/Utils.js ***!
\*************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ updateLife: () => (/* binding */ updateLife)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst noTime = 0,\n infiniteValue = -1,\n noLife = 0,\n minCanvasSize = 0;\nfunction updateLife(particle, delta, canvasSize) {\n if (!particle.life) {\n return;\n }\n const life = particle.life;\n let justSpawned = false;\n if (particle.spawning) {\n life.delayTime += delta.value;\n if (life.delayTime >= particle.life.delay) {\n justSpawned = true;\n particle.spawning = false;\n life.delayTime = noTime;\n life.time = noTime;\n } else {\n return;\n }\n }\n if (life.duration === infiniteValue) {\n return;\n }\n if (particle.spawning) {\n return;\n }\n if (justSpawned) {\n life.time = noTime;\n } else {\n life.time += delta.value;\n }\n if (life.time < life.duration) {\n return;\n }\n life.time = noTime;\n if (particle.life.count > noLife) {\n particle.life.count--;\n }\n if (particle.life.count === noLife) {\n particle.destroy();\n return;\n }\n const widthRange = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(minCanvasSize, canvasSize.width),\n heightRange = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(minCanvasSize, canvasSize.width);\n particle.position.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRange)(widthRange);\n particle.position.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRange)(heightRange);\n particle.spawning = true;\n life.delayTime = noTime;\n life.time = noTime;\n particle.reset();\n const lifeOptions = particle.options.life;\n if (lifeOptions) {\n life.delay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.delay.value) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds;\n life.duration = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.duration.value) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds;\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/life/dist/browser/Utils.js?");
/***/ })
}]);

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,3 +27,3 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ OpacityUpdater: () => (/* binding */ OpacityUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass OpacityUpdater {\n constructor(container) {\n this.container = container;\n }\n async init(particle) {\n const opacityOptions = particle.options.opacity,\n pxRatio = 1;\n particle.opacity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.initParticleNumericAnimationValue)(opacityOptions, pxRatio);\n const opacityAnimation = opacityOptions.animation;\n if (opacityAnimation.enable) {\n particle.opacity.velocity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(opacityAnimation.speed) / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator * this.container.retina.reduceFactor;\n if (!opacityAnimation.sync) {\n particle.opacity.velocity *= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n await Promise.resolve();\n }\n isEnabled(particle) {\n const none = 0;\n return !particle.destroyed && !particle.spawning && !!particle.opacity && particle.opacity.enable && ((particle.opacity.maxLoops ?? none) <= none || (particle.opacity.maxLoops ?? none) > none && (particle.opacity.loops ?? none) < (particle.opacity.maxLoops ?? none));\n }\n reset(particle) {\n if (particle.opacity) {\n particle.opacity.time = 0;\n particle.opacity.loops = 0;\n }\n }\n async update(particle, delta) {\n if (!this.isEnabled(particle) || !particle.opacity) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateAnimation)(particle, particle.opacity, true, particle.options.opacity.animation.destroy, delta);\n await Promise.resolve();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/opacity/dist/browser/OpacityUpdater.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ OpacityUpdater: () => (/* binding */ OpacityUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass OpacityUpdater {\n constructor(container) {\n this.container = container;\n }\n init(particle) {\n const opacityOptions = particle.options.opacity,\n pxRatio = 1;\n particle.opacity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.initParticleNumericAnimationValue)(opacityOptions, pxRatio);\n const opacityAnimation = opacityOptions.animation;\n if (opacityAnimation.enable) {\n particle.opacity.velocity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(opacityAnimation.speed) / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator * this.container.retina.reduceFactor;\n if (!opacityAnimation.sync) {\n particle.opacity.velocity *= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n }\n isEnabled(particle) {\n const none = 0;\n return !particle.destroyed && !particle.spawning && !!particle.opacity && particle.opacity.enable && ((particle.opacity.maxLoops ?? none) <= none || (particle.opacity.maxLoops ?? none) > none && (particle.opacity.loops ?? none) < (particle.opacity.maxLoops ?? none));\n }\n reset(particle) {\n if (particle.opacity) {\n particle.opacity.time = 0;\n particle.opacity.loops = 0;\n }\n }\n update(particle, delta) {\n if (!this.isEnabled(particle) || !particle.opacity) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateAnimation)(particle, particle.opacity, true, particle.options.opacity.animation.destroy, delta);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/opacity/dist/browser/OpacityUpdater.js?");

@@ -30,0 +30,0 @@ /***/ })

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -21,2 +21,32 @@ "use strict";

/***/ "../../updaters/outModes/dist/browser/BounceOutMode.js":
/*!*************************************************************!*\
!*** ../../updaters/outModes/dist/browser/BounceOutMode.js ***!
\*************************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ BounceOutMode: () => (/* binding */ BounceOutMode)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utils.js */ \"../../updaters/outModes/dist/browser/Utils.js\");\n\n\nclass BounceOutMode {\n constructor(container) {\n this.container = container;\n this.modes = [\"bounce\", \"split\"];\n }\n update(particle, direction, delta, outMode) {\n if (!this.modes.includes(outMode)) {\n return;\n }\n const container = this.container;\n let handled = false;\n for (const [, plugin] of container.plugins) {\n if (plugin.particleBounce !== undefined) {\n handled = plugin.particleBounce(particle, delta, direction);\n }\n if (handled) {\n break;\n }\n }\n if (handled) {\n return;\n }\n const pos = particle.getPosition(),\n offset = particle.offset,\n size = particle.getRadius(),\n bounds = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.calculateBounds)(pos, size),\n canvasSize = container.canvas.size;\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.bounceHorizontal)({\n particle,\n outMode,\n direction,\n bounds,\n canvasSize,\n offset,\n size\n });\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.bounceVertical)({\n particle,\n outMode,\n direction,\n bounds,\n canvasSize,\n offset,\n size\n });\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/outModes/dist/browser/BounceOutMode.js?");
/***/ }),
/***/ "../../updaters/outModes/dist/browser/DestroyOutMode.js":
/*!**************************************************************!*\
!*** ../../updaters/outModes/dist/browser/DestroyOutMode.js ***!
\**************************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DestroyOutMode: () => (/* binding */ DestroyOutMode)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst minVelocity = 0;\nclass DestroyOutMode {\n constructor(container) {\n this.container = container;\n this.modes = [\"destroy\"];\n }\n update(particle, direction, _delta, outMode) {\n if (!this.modes.includes(outMode)) {\n return;\n }\n const container = this.container;\n switch (particle.outType) {\n case \"normal\":\n case \"outside\":\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isPointInside)(particle.position, container.canvas.size, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.origin, particle.getRadius(), direction)) {\n return;\n }\n break;\n case \"inside\":\n {\n const {\n dx,\n dy\n } = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistances)(particle.position, particle.moveCenter),\n {\n x: vx,\n y: vy\n } = particle.velocity;\n if (vx < minVelocity && dx > particle.moveCenter.radius || vy < minVelocity && dy > particle.moveCenter.radius || vx >= minVelocity && dx < -particle.moveCenter.radius || vy >= minVelocity && dy < -particle.moveCenter.radius) {\n return;\n }\n break;\n }\n }\n container.particles.remove(particle, undefined, true);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/outModes/dist/browser/DestroyOutMode.js?");
/***/ }),
/***/ "../../updaters/outModes/dist/browser/NoneOutMode.js":
/*!***********************************************************!*\
!*** ../../updaters/outModes/dist/browser/NoneOutMode.js ***!
\***********************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ NoneOutMode: () => (/* binding */ NoneOutMode)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst minVelocity = 0;\nclass NoneOutMode {\n constructor(container) {\n this.container = container;\n this.modes = [\"none\"];\n }\n update(particle, direction, delta, outMode) {\n if (!this.modes.includes(outMode)) {\n return;\n }\n if ((particle.options.move.distance.horizontal && (direction === \"left\" || direction === \"right\")) ?? (particle.options.move.distance.vertical && (direction === \"top\" || direction === \"bottom\"))) {\n return;\n }\n const gravityOptions = particle.options.move.gravity,\n container = this.container,\n canvasSize = container.canvas.size,\n pRadius = particle.getRadius();\n if (!gravityOptions.enable) {\n if (particle.velocity.y > minVelocity && particle.position.y <= canvasSize.height + pRadius || particle.velocity.y < minVelocity && particle.position.y >= -pRadius || particle.velocity.x > minVelocity && particle.position.x <= canvasSize.width + pRadius || particle.velocity.x < minVelocity && particle.position.x >= -pRadius) {\n return;\n }\n if (!(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isPointInside)(particle.position, container.canvas.size, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.origin, pRadius, direction)) {\n container.particles.remove(particle);\n }\n } else {\n const position = particle.position;\n if (!gravityOptions.inverse && position.y > canvasSize.height + pRadius && direction === \"bottom\" || gravityOptions.inverse && position.y < -pRadius && direction === \"top\") {\n container.particles.remove(particle);\n }\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/outModes/dist/browser/NoneOutMode.js?");
/***/ }),
/***/ "../../updaters/outModes/dist/browser/OutOfCanvasUpdater.js":

@@ -28,6 +58,26 @@ /*!******************************************************************!*\

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ OutOfCanvasUpdater: () => (/* binding */ OutOfCanvasUpdater)\n/* harmony export */ });\nconst checkOutMode = (outModes, outMode) => {\n return outModes.default === outMode || outModes.bottom === outMode || outModes.left === outMode || outModes.right === outMode || outModes.top === outMode;\n};\nclass OutOfCanvasUpdater {\n constructor(container) {\n this._updateOutMode = async (particle, delta, outMode, direction) => {\n for (const updater of this.updaters) {\n await updater.update(particle, direction, delta, outMode);\n }\n };\n this.container = container;\n this.updaters = [];\n }\n async init(particle) {\n this.updaters = [];\n const outModes = particle.options.move.outModes;\n if (checkOutMode(outModes, \"bounce\")) {\n const {\n BounceOutMode\n } = await __webpack_require__.e(/*! import() */ \"updaters_outModes_dist_browser_BounceOutMode_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./BounceOutMode.js */ \"../../updaters/outModes/dist/browser/BounceOutMode.js\"));\n this.updaters.push(new BounceOutMode(this.container));\n } else if (checkOutMode(outModes, \"out\")) {\n const {\n OutOutMode\n } = await __webpack_require__.e(/*! import() */ \"updaters_outModes_dist_browser_OutOutMode_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./OutOutMode.js */ \"../../updaters/outModes/dist/browser/OutOutMode.js\"));\n this.updaters.push(new OutOutMode(this.container));\n } else if (checkOutMode(outModes, \"destroy\")) {\n const {\n DestroyOutMode\n } = await __webpack_require__.e(/*! import() */ \"updaters_outModes_dist_browser_DestroyOutMode_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./DestroyOutMode.js */ \"../../updaters/outModes/dist/browser/DestroyOutMode.js\"));\n this.updaters.push(new DestroyOutMode(this.container));\n } else if (checkOutMode(outModes, \"none\")) {\n const {\n NoneOutMode\n } = await __webpack_require__.e(/*! import() */ \"updaters_outModes_dist_browser_NoneOutMode_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./NoneOutMode.js */ \"../../updaters/outModes/dist/browser/NoneOutMode.js\"));\n this.updaters.push(new NoneOutMode(this.container));\n }\n }\n isEnabled(particle) {\n return !particle.destroyed && !particle.spawning;\n }\n async update(particle, delta) {\n const outModes = particle.options.move.outModes;\n await this._updateOutMode(particle, delta, outModes.bottom ?? outModes.default, \"bottom\");\n await this._updateOutMode(particle, delta, outModes.left ?? outModes.default, \"left\");\n await this._updateOutMode(particle, delta, outModes.right ?? outModes.default, \"right\");\n await this._updateOutMode(particle, delta, outModes.top ?? outModes.default, \"top\");\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/outModes/dist/browser/OutOfCanvasUpdater.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ OutOfCanvasUpdater: () => (/* binding */ OutOfCanvasUpdater)\n/* harmony export */ });\n/* harmony import */ var _BounceOutMode_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BounceOutMode.js */ \"../../updaters/outModes/dist/browser/BounceOutMode.js\");\n/* harmony import */ var _DestroyOutMode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DestroyOutMode.js */ \"../../updaters/outModes/dist/browser/DestroyOutMode.js\");\n/* harmony import */ var _NoneOutMode_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NoneOutMode.js */ \"../../updaters/outModes/dist/browser/NoneOutMode.js\");\n/* harmony import */ var _OutOutMode_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./OutOutMode.js */ \"../../updaters/outModes/dist/browser/OutOutMode.js\");\n\n\n\n\nconst checkOutMode = (outModes, outMode) => {\n return outModes.default === outMode || outModes.bottom === outMode || outModes.left === outMode || outModes.right === outMode || outModes.top === outMode;\n};\nclass OutOfCanvasUpdater {\n constructor(container) {\n this._updateOutMode = (particle, delta, outMode, direction) => {\n for (const updater of this.updaters) {\n updater.update(particle, direction, delta, outMode);\n }\n };\n this.container = container;\n this.updaters = [];\n }\n init(particle) {\n this.updaters = [];\n const outModes = particle.options.move.outModes;\n if (checkOutMode(outModes, \"bounce\")) {\n this.updaters.push(new _BounceOutMode_js__WEBPACK_IMPORTED_MODULE_0__.BounceOutMode(this.container));\n } else if (checkOutMode(outModes, \"out\")) {\n this.updaters.push(new _OutOutMode_js__WEBPACK_IMPORTED_MODULE_3__.OutOutMode(this.container));\n } else if (checkOutMode(outModes, \"destroy\")) {\n this.updaters.push(new _DestroyOutMode_js__WEBPACK_IMPORTED_MODULE_1__.DestroyOutMode(this.container));\n } else if (checkOutMode(outModes, \"none\")) {\n this.updaters.push(new _NoneOutMode_js__WEBPACK_IMPORTED_MODULE_2__.NoneOutMode(this.container));\n }\n }\n isEnabled(particle) {\n return !particle.destroyed && !particle.spawning;\n }\n update(particle, delta) {\n const outModes = particle.options.move.outModes;\n this._updateOutMode(particle, delta, outModes.bottom ?? outModes.default, \"bottom\");\n this._updateOutMode(particle, delta, outModes.left ?? outModes.default, \"left\");\n this._updateOutMode(particle, delta, outModes.right ?? outModes.default, \"right\");\n this._updateOutMode(particle, delta, outModes.top ?? outModes.default, \"top\");\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/outModes/dist/browser/OutOfCanvasUpdater.js?");
/***/ }),
/***/ "../../updaters/outModes/dist/browser/OutOutMode.js":
/*!**********************************************************!*\
!*** ../../updaters/outModes/dist/browser/OutOutMode.js ***!
\**********************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ OutOutMode: () => (/* binding */ OutOutMode)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst minVelocity = 0,\n minDistance = 0;\nclass OutOutMode {\n constructor(container) {\n this.container = container;\n this.modes = [\"out\"];\n }\n update(particle, direction, delta, outMode) {\n if (!this.modes.includes(outMode)) {\n return;\n }\n const container = this.container;\n switch (particle.outType) {\n case \"inside\":\n {\n const {\n x: vx,\n y: vy\n } = particle.velocity;\n const circVec = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.origin;\n circVec.length = particle.moveCenter.radius;\n circVec.angle = particle.velocity.angle + Math.PI;\n circVec.addTo(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.create(particle.moveCenter));\n const {\n dx,\n dy\n } = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistances)(particle.position, circVec);\n if (vx <= minVelocity && dx >= minDistance || vy <= minVelocity && dy >= minDistance || vx >= minVelocity && dx <= minDistance || vy >= minVelocity && dy <= minDistance) {\n return;\n }\n particle.position.x = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRange)({\n min: 0,\n max: container.canvas.size.width\n }));\n particle.position.y = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRange)({\n min: 0,\n max: container.canvas.size.height\n }));\n const {\n dx: newDx,\n dy: newDy\n } = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistances)(particle.position, particle.moveCenter);\n particle.direction = Math.atan2(-newDy, -newDx);\n particle.velocity.angle = particle.direction;\n break;\n }\n default:\n {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isPointInside)(particle.position, container.canvas.size, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.origin, particle.getRadius(), direction)) {\n return;\n }\n switch (particle.outType) {\n case \"outside\":\n {\n particle.position.x = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRange)({\n min: -particle.moveCenter.radius,\n max: particle.moveCenter.radius\n })) + particle.moveCenter.x;\n particle.position.y = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRange)({\n min: -particle.moveCenter.radius,\n max: particle.moveCenter.radius\n })) + particle.moveCenter.y;\n const {\n dx,\n dy\n } = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistances)(particle.position, particle.moveCenter);\n if (particle.moveCenter.radius) {\n particle.direction = Math.atan2(dy, dx);\n particle.velocity.angle = particle.direction;\n }\n break;\n }\n case \"normal\":\n {\n const warp = particle.options.move.warp,\n canvasSize = container.canvas.size,\n newPos = {\n bottom: canvasSize.height + particle.getRadius() + particle.offset.y,\n left: -particle.getRadius() - particle.offset.x,\n right: canvasSize.width + particle.getRadius() + particle.offset.x,\n top: -particle.getRadius() - particle.offset.y\n },\n sizeValue = particle.getRadius(),\n nextBounds = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.calculateBounds)(particle.position, sizeValue);\n if (direction === \"right\" && nextBounds.left > canvasSize.width + particle.offset.x) {\n particle.position.x = newPos.left;\n particle.initialPosition.x = particle.position.x;\n if (!warp) {\n particle.position.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * canvasSize.height;\n particle.initialPosition.y = particle.position.y;\n }\n } else if (direction === \"left\" && nextBounds.right < -particle.offset.x) {\n particle.position.x = newPos.right;\n particle.initialPosition.x = particle.position.x;\n if (!warp) {\n particle.position.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * canvasSize.height;\n particle.initialPosition.y = particle.position.y;\n }\n }\n if (direction === \"bottom\" && nextBounds.top > canvasSize.height + particle.offset.y) {\n if (!warp) {\n particle.position.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * canvasSize.width;\n particle.initialPosition.x = particle.position.x;\n }\n particle.position.y = newPos.top;\n particle.initialPosition.y = particle.position.y;\n } else if (direction === \"top\" && nextBounds.bottom < -particle.offset.y) {\n if (!warp) {\n particle.position.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * canvasSize.width;\n particle.initialPosition.x = particle.position.x;\n }\n particle.position.y = newPos.bottom;\n particle.initialPosition.y = particle.position.y;\n }\n break;\n }\n }\n break;\n }\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/outModes/dist/browser/OutOutMode.js?");
/***/ }),
/***/ "../../updaters/outModes/dist/browser/Utils.js":
/*!*****************************************************!*\
!*** ../../updaters/outModes/dist/browser/Utils.js ***!
\*****************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ bounceHorizontal: () => (/* binding */ bounceHorizontal),\n/* harmony export */ bounceVertical: () => (/* binding */ bounceVertical)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst minVelocity = 0,\n boundsMin = 0;\nfunction bounceHorizontal(data) {\n if (data.outMode !== \"bounce\" && data.outMode !== \"split\" || data.direction !== \"left\" && data.direction !== \"right\") {\n return;\n }\n if (data.bounds.right < boundsMin && data.direction === \"left\") {\n data.particle.position.x = data.size + data.offset.x;\n } else if (data.bounds.left > data.canvasSize.width && data.direction === \"right\") {\n data.particle.position.x = data.canvasSize.width - data.size - data.offset.x;\n }\n const velocity = data.particle.velocity.x;\n let bounced = false;\n if (data.direction === \"right\" && data.bounds.right >= data.canvasSize.width && velocity > minVelocity || data.direction === \"left\" && data.bounds.left <= boundsMin && velocity < minVelocity) {\n const newVelocity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(data.particle.options.bounce.horizontal.value);\n data.particle.velocity.x *= -newVelocity;\n bounced = true;\n }\n if (!bounced) {\n return;\n }\n const minPos = data.offset.x + data.size;\n if (data.bounds.right >= data.canvasSize.width && data.direction === \"right\") {\n data.particle.position.x = data.canvasSize.width - minPos;\n } else if (data.bounds.left <= boundsMin && data.direction === \"left\") {\n data.particle.position.x = minPos;\n }\n if (data.outMode === \"split\") {\n data.particle.destroy();\n }\n}\nfunction bounceVertical(data) {\n if (data.outMode !== \"bounce\" && data.outMode !== \"split\" || data.direction !== \"bottom\" && data.direction !== \"top\") {\n return;\n }\n if (data.bounds.bottom < boundsMin && data.direction === \"top\") {\n data.particle.position.y = data.size + data.offset.y;\n } else if (data.bounds.top > data.canvasSize.height && data.direction === \"bottom\") {\n data.particle.position.y = data.canvasSize.height - data.size - data.offset.y;\n }\n const velocity = data.particle.velocity.y;\n let bounced = false;\n if (data.direction === \"bottom\" && data.bounds.bottom >= data.canvasSize.height && velocity > minVelocity || data.direction === \"top\" && data.bounds.top <= boundsMin && velocity < minVelocity) {\n const newVelocity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(data.particle.options.bounce.vertical.value);\n data.particle.velocity.y *= -newVelocity;\n bounced = true;\n }\n if (!bounced) {\n return;\n }\n const minPos = data.offset.y + data.size;\n if (data.bounds.bottom >= data.canvasSize.height && data.direction === \"bottom\") {\n data.particle.position.y = data.canvasSize.height - minPos;\n } else if (data.bounds.top <= boundsMin && data.direction === \"top\") {\n data.particle.position.y = minPos;\n }\n if (data.outMode === \"split\") {\n data.particle.destroy();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/outModes/dist/browser/Utils.js?");
/***/ })
}]);

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -47,6 +47,16 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ RollUpdater: () => (/* binding */ RollUpdater)\n/* harmony export */ });\n/* harmony import */ var _Options_Classes_Roll_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Options/Classes/Roll.js */ \"../../updaters/roll/dist/browser/Options/Classes/Roll.js\");\n\nclass RollUpdater {\n getTransformValues(particle) {\n const roll = particle.roll?.enable && particle.roll,\n rollHorizontal = roll && roll.horizontal,\n rollVertical = roll && roll.vertical;\n return {\n a: rollHorizontal ? Math.cos(roll.angle) : undefined,\n d: rollVertical ? Math.sin(roll.angle) : undefined\n };\n }\n async init(particle) {\n const {\n initParticle\n } = await __webpack_require__.e(/*! import() */ \"updaters_roll_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../updaters/roll/dist/browser/Utils.js\"));\n initParticle(particle);\n }\n isEnabled(particle) {\n const roll = particle.options.roll;\n return !particle.destroyed && !particle.spawning && !!roll?.enable;\n }\n loadOptions(options, ...sources) {\n if (!options.roll) {\n options.roll = new _Options_Classes_Roll_js__WEBPACK_IMPORTED_MODULE_0__.Roll();\n }\n for (const source of sources) {\n options.roll.load(source?.roll);\n }\n }\n async update(particle, delta) {\n if (!this.isEnabled(particle)) {\n return;\n }\n const {\n updateRoll\n } = await __webpack_require__.e(/*! import() */ \"updaters_roll_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../updaters/roll/dist/browser/Utils.js\"));\n updateRoll(particle, delta);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/roll/dist/browser/RollUpdater.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ RollUpdater: () => (/* binding */ RollUpdater)\n/* harmony export */ });\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils.js */ \"../../updaters/roll/dist/browser/Utils.js\");\n/* harmony import */ var _Options_Classes_Roll_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Roll.js */ \"../../updaters/roll/dist/browser/Options/Classes/Roll.js\");\n\n\nclass RollUpdater {\n getTransformValues(particle) {\n const roll = particle.roll?.enable && particle.roll,\n rollHorizontal = roll && roll.horizontal,\n rollVertical = roll && roll.vertical;\n return {\n a: rollHorizontal ? Math.cos(roll.angle) : undefined,\n d: rollVertical ? Math.sin(roll.angle) : undefined\n };\n }\n init(particle) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_0__.initParticle)(particle);\n }\n isEnabled(particle) {\n const roll = particle.options.roll;\n return !particle.destroyed && !particle.spawning && !!roll?.enable;\n }\n loadOptions(options, ...sources) {\n if (!options.roll) {\n options.roll = new _Options_Classes_Roll_js__WEBPACK_IMPORTED_MODULE_1__.Roll();\n }\n for (const source of sources) {\n options.roll.load(source?.roll);\n }\n }\n update(particle, delta) {\n if (!this.isEnabled(particle)) {\n return;\n }\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_0__.updateRoll)(particle, delta);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/roll/dist/browser/RollUpdater.js?");
/***/ }),
/***/ "../../updaters/roll/dist/browser/Utils.js":
/*!*************************************************!*\
!*** ../../updaters/roll/dist/browser/Utils.js ***!
\*************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ initParticle: () => (/* binding */ initParticle),\n/* harmony export */ updateRoll: () => (/* binding */ updateRoll)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst double = 2,\n doublePI = Math.PI * double,\n maxAngle = 360;\nfunction initParticle(particle) {\n const rollOpt = particle.options.roll;\n if (!rollOpt?.enable) {\n particle.roll = {\n enable: false,\n horizontal: false,\n vertical: false,\n angle: 0,\n speed: 0\n };\n return;\n }\n particle.roll = {\n enable: rollOpt.enable,\n horizontal: rollOpt.mode === \"horizontal\" || rollOpt.mode === \"both\",\n vertical: rollOpt.mode === \"vertical\" || rollOpt.mode === \"both\",\n angle: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * doublePI,\n speed: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(rollOpt.speed) / maxAngle\n };\n if (rollOpt.backColor) {\n particle.backColor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rangeColorToHsl)(rollOpt.backColor);\n } else if (rollOpt.darken.enable && rollOpt.enlighten.enable) {\n const alterType = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() >= _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.halfRandom ? \"darken\" : \"enlighten\";\n particle.roll.alter = {\n type: alterType,\n value: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(alterType === \"darken\" ? rollOpt.darken.value : rollOpt.enlighten.value)\n };\n } else if (rollOpt.darken.enable) {\n particle.roll.alter = {\n type: \"darken\",\n value: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(rollOpt.darken.value)\n };\n } else if (rollOpt.enlighten.enable) {\n particle.roll.alter = {\n type: \"enlighten\",\n value: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(rollOpt.enlighten.value)\n };\n }\n}\nfunction updateRoll(particle, delta) {\n const roll = particle.options.roll,\n data = particle.roll;\n if (!data || !roll?.enable) {\n return;\n }\n const speed = data.speed * delta.factor,\n max = doublePI;\n data.angle += speed;\n if (data.angle > max) {\n data.angle -= max;\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/roll/dist/browser/Utils.js?");
/***/ })
}]);

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -47,3 +47,3 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ RotateUpdater: () => (/* binding */ RotateUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Rotate_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Rotate.js */ \"../../updaters/rotate/dist/browser/Options/Classes/Rotate.js\");\n\n\nconst double = 2,\n doublePI = Math.PI * double,\n identity = 1,\n doublePIDeg = 360;\nclass RotateUpdater {\n constructor(container) {\n this.container = container;\n }\n async init(particle) {\n const rotateOptions = particle.options.rotate;\n if (!rotateOptions) {\n return;\n }\n particle.rotate = {\n enable: rotateOptions.animation.enable,\n value: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(rotateOptions.value)),\n min: 0,\n max: doublePI\n };\n particle.pathRotation = rotateOptions.path;\n let rotateDirection = rotateOptions.direction;\n if (rotateDirection === \"random\") {\n const index = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * double),\n minIndex = 0;\n rotateDirection = index > minIndex ? \"counter-clockwise\" : \"clockwise\";\n }\n switch (rotateDirection) {\n case \"counter-clockwise\":\n case \"counterClockwise\":\n particle.rotate.status = \"decreasing\";\n break;\n case \"clockwise\":\n particle.rotate.status = \"increasing\";\n break;\n }\n const rotateAnimation = rotateOptions.animation;\n if (rotateAnimation.enable) {\n particle.rotate.decay = identity - (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(rotateAnimation.decay);\n particle.rotate.velocity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(rotateAnimation.speed) / doublePIDeg * this.container.retina.reduceFactor;\n if (!rotateAnimation.sync) {\n particle.rotate.velocity *= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n particle.rotation = particle.rotate.value;\n await Promise.resolve();\n }\n isEnabled(particle) {\n const rotate = particle.options.rotate;\n if (!rotate) {\n return false;\n }\n return !particle.destroyed && !particle.spawning && rotate.animation.enable && !rotate.path;\n }\n loadOptions(options, ...sources) {\n if (!options.rotate) {\n options.rotate = new _Options_Classes_Rotate_js__WEBPACK_IMPORTED_MODULE_1__.Rotate();\n }\n for (const source of sources) {\n options.rotate.load(source?.rotate);\n }\n }\n async update(particle, delta) {\n if (!this.isEnabled(particle)) {\n return;\n }\n if (!particle.rotate) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateAnimation)(particle, particle.rotate, false, \"none\", delta);\n particle.rotation = particle.rotate.value;\n await Promise.resolve();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/rotate/dist/browser/RotateUpdater.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ RotateUpdater: () => (/* binding */ RotateUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Rotate_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Rotate.js */ \"../../updaters/rotate/dist/browser/Options/Classes/Rotate.js\");\n\n\nconst double = 2,\n doublePI = Math.PI * double,\n identity = 1,\n doublePIDeg = 360;\nclass RotateUpdater {\n constructor(container) {\n this.container = container;\n }\n init(particle) {\n const rotateOptions = particle.options.rotate;\n if (!rotateOptions) {\n return;\n }\n particle.rotate = {\n enable: rotateOptions.animation.enable,\n value: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(rotateOptions.value)),\n min: 0,\n max: doublePI\n };\n particle.pathRotation = rotateOptions.path;\n let rotateDirection = rotateOptions.direction;\n if (rotateDirection === \"random\") {\n const index = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * double),\n minIndex = 0;\n rotateDirection = index > minIndex ? \"counter-clockwise\" : \"clockwise\";\n }\n switch (rotateDirection) {\n case \"counter-clockwise\":\n case \"counterClockwise\":\n particle.rotate.status = \"decreasing\";\n break;\n case \"clockwise\":\n particle.rotate.status = \"increasing\";\n break;\n }\n const rotateAnimation = rotateOptions.animation;\n if (rotateAnimation.enable) {\n particle.rotate.decay = identity - (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(rotateAnimation.decay);\n particle.rotate.velocity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(rotateAnimation.speed) / doublePIDeg * this.container.retina.reduceFactor;\n if (!rotateAnimation.sync) {\n particle.rotate.velocity *= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n particle.rotation = particle.rotate.value;\n }\n isEnabled(particle) {\n const rotate = particle.options.rotate;\n if (!rotate) {\n return false;\n }\n return !particle.destroyed && !particle.spawning && rotate.animation.enable && !rotate.path;\n }\n loadOptions(options, ...sources) {\n if (!options.rotate) {\n options.rotate = new _Options_Classes_Rotate_js__WEBPACK_IMPORTED_MODULE_1__.Rotate();\n }\n for (const source of sources) {\n options.rotate.load(source?.rotate);\n }\n }\n update(particle, delta) {\n if (!this.isEnabled(particle)) {\n return;\n }\n if (!particle.rotate) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateAnimation)(particle, particle.rotate, false, \"none\", delta);\n particle.rotation = particle.rotate.value;\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/rotate/dist/browser/RotateUpdater.js?");

@@ -50,0 +50,0 @@ /***/ })

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -27,3 +27,3 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SizeUpdater: () => (/* binding */ SizeUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst minLoops = 0;\nclass SizeUpdater {\n async init(particle) {\n const container = particle.container,\n sizeOptions = particle.options.size,\n sizeAnimation = sizeOptions.animation;\n if (sizeAnimation.enable) {\n particle.size.velocity = (particle.retina.sizeAnimationSpeed ?? container.retina.sizeAnimationSpeed) / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator * container.retina.reduceFactor;\n if (!sizeAnimation.sync) {\n particle.size.velocity *= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n await Promise.resolve();\n }\n isEnabled(particle) {\n return !particle.destroyed && !particle.spawning && particle.size.enable && ((particle.size.maxLoops ?? minLoops) <= minLoops || (particle.size.maxLoops ?? minLoops) > minLoops && (particle.size.loops ?? minLoops) < (particle.size.maxLoops ?? minLoops));\n }\n reset(particle) {\n particle.size.loops = minLoops;\n }\n async update(particle, delta) {\n if (!this.isEnabled(particle)) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateAnimation)(particle, particle.size, true, particle.options.size.animation.destroy, delta);\n await Promise.resolve();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/size/dist/browser/SizeUpdater.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SizeUpdater: () => (/* binding */ SizeUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst minLoops = 0;\nclass SizeUpdater {\n init(particle) {\n const container = particle.container,\n sizeOptions = particle.options.size,\n sizeAnimation = sizeOptions.animation;\n if (sizeAnimation.enable) {\n particle.size.velocity = (particle.retina.sizeAnimationSpeed ?? container.retina.sizeAnimationSpeed) / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator * container.retina.reduceFactor;\n if (!sizeAnimation.sync) {\n particle.size.velocity *= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n }\n isEnabled(particle) {\n return !particle.destroyed && !particle.spawning && particle.size.enable && ((particle.size.maxLoops ?? minLoops) <= minLoops || (particle.size.maxLoops ?? minLoops) > minLoops && (particle.size.loops ?? minLoops) < (particle.size.maxLoops ?? minLoops));\n }\n reset(particle) {\n particle.size.loops = minLoops;\n }\n update(particle, delta) {\n if (!this.isEnabled(particle)) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateAnimation)(particle, particle.size, true, particle.options.size.animation.destroy, delta);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/size/dist/browser/SizeUpdater.js?");

@@ -30,0 +30,0 @@ /***/ })

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -47,3 +47,3 @@ "use strict";

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ TiltUpdater: () => (/* binding */ TiltUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Tilt_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Tilt.js */ \"../../updaters/tilt/dist/browser/Options/Classes/Tilt.js\");\n\n\nconst identity = 1,\n double = 2,\n doublePI = Math.PI * double,\n maxAngle = 360;\nclass TiltUpdater {\n constructor(container) {\n this.container = container;\n }\n getTransformValues(particle) {\n const tilt = particle.tilt?.enable && particle.tilt;\n return {\n b: tilt ? Math.cos(tilt.value) * tilt.cosDirection : undefined,\n c: tilt ? Math.sin(tilt.value) * tilt.sinDirection : undefined\n };\n }\n async init(particle) {\n const tiltOptions = particle.options.tilt;\n if (!tiltOptions) {\n return;\n }\n particle.tilt = {\n enable: tiltOptions.enable,\n value: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(tiltOptions.value)),\n sinDirection: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() >= _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.halfRandom ? identity : -identity,\n cosDirection: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() >= _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.halfRandom ? identity : -identity,\n min: 0,\n max: doublePI\n };\n let tiltDirection = tiltOptions.direction;\n if (tiltDirection === \"random\") {\n const index = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * double),\n minIndex = 0;\n tiltDirection = index > minIndex ? \"counter-clockwise\" : \"clockwise\";\n }\n switch (tiltDirection) {\n case \"counter-clockwise\":\n case \"counterClockwise\":\n particle.tilt.status = \"decreasing\";\n break;\n case \"clockwise\":\n particle.tilt.status = \"increasing\";\n break;\n }\n const tiltAnimation = particle.options.tilt?.animation;\n if (tiltAnimation?.enable) {\n particle.tilt.decay = identity - (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(tiltAnimation.decay);\n particle.tilt.velocity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(tiltAnimation.speed) / maxAngle * this.container.retina.reduceFactor;\n if (!tiltAnimation.sync) {\n particle.tilt.velocity *= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n await Promise.resolve();\n }\n isEnabled(particle) {\n const tiltAnimation = particle.options.tilt?.animation;\n return !particle.destroyed && !particle.spawning && !!tiltAnimation?.enable;\n }\n loadOptions(options, ...sources) {\n if (!options.tilt) {\n options.tilt = new _Options_Classes_Tilt_js__WEBPACK_IMPORTED_MODULE_1__.Tilt();\n }\n for (const source of sources) {\n options.tilt.load(source?.tilt);\n }\n }\n async update(particle, delta) {\n if (!this.isEnabled(particle) || !particle.tilt) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateAnimation)(particle, particle.tilt, false, \"none\", delta);\n await Promise.resolve();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/tilt/dist/browser/TiltUpdater.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ TiltUpdater: () => (/* binding */ TiltUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Tilt_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Tilt.js */ \"../../updaters/tilt/dist/browser/Options/Classes/Tilt.js\");\n\n\nconst identity = 1,\n double = 2,\n doublePI = Math.PI * double,\n maxAngle = 360;\nclass TiltUpdater {\n constructor(container) {\n this.container = container;\n }\n getTransformValues(particle) {\n const tilt = particle.tilt?.enable && particle.tilt;\n return {\n b: tilt ? Math.cos(tilt.value) * tilt.cosDirection : undefined,\n c: tilt ? Math.sin(tilt.value) * tilt.sinDirection : undefined\n };\n }\n init(particle) {\n const tiltOptions = particle.options.tilt;\n if (!tiltOptions) {\n return;\n }\n particle.tilt = {\n enable: tiltOptions.enable,\n value: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(tiltOptions.value)),\n sinDirection: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() >= _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.halfRandom ? identity : -identity,\n cosDirection: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() >= _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.halfRandom ? identity : -identity,\n min: 0,\n max: doublePI\n };\n let tiltDirection = tiltOptions.direction;\n if (tiltDirection === \"random\") {\n const index = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * double),\n minIndex = 0;\n tiltDirection = index > minIndex ? \"counter-clockwise\" : \"clockwise\";\n }\n switch (tiltDirection) {\n case \"counter-clockwise\":\n case \"counterClockwise\":\n particle.tilt.status = \"decreasing\";\n break;\n case \"clockwise\":\n particle.tilt.status = \"increasing\";\n break;\n }\n const tiltAnimation = particle.options.tilt?.animation;\n if (tiltAnimation?.enable) {\n particle.tilt.decay = identity - (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(tiltAnimation.decay);\n particle.tilt.velocity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(tiltAnimation.speed) / maxAngle * this.container.retina.reduceFactor;\n if (!tiltAnimation.sync) {\n particle.tilt.velocity *= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n }\n isEnabled(particle) {\n const tiltAnimation = particle.options.tilt?.animation;\n return !particle.destroyed && !particle.spawning && !!tiltAnimation?.enable;\n }\n loadOptions(options, ...sources) {\n if (!options.tilt) {\n options.tilt = new _Options_Classes_Tilt_js__WEBPACK_IMPORTED_MODULE_1__.Tilt();\n }\n for (const source of sources) {\n options.tilt.load(source?.tilt);\n }\n }\n async update(particle, delta) {\n if (!this.isEnabled(particle) || !particle.tilt) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateAnimation)(particle, particle.tilt, false, \"none\", delta);\n await Promise.resolve();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/tilt/dist/browser/TiltUpdater.js?");

@@ -50,0 +50,0 @@ /***/ })

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -10,0 +10,0 @@ "use strict";

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.2.2
* v3.3.0
*/

@@ -41,2 +41,12 @@ "use strict";

/***/ "../../updaters/wobble/dist/browser/Utils.js":
/*!***************************************************!*\
!*** ../../updaters/wobble/dist/browser/Utils.js ***!
\***************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ updateWobble: () => (/* binding */ updateWobble)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst defaultDistance = 0,\n double = 2,\n doublePI = Math.PI * double,\n distanceFactor = 60;\nfunction updateWobble(particle, delta) {\n const {\n wobble: wobbleOptions\n } = particle.options,\n {\n wobble\n } = particle;\n if (!wobbleOptions?.enable || !wobble) {\n return;\n }\n const angleSpeed = wobble.angleSpeed * delta.factor,\n moveSpeed = wobble.moveSpeed * delta.factor,\n distance = moveSpeed * ((particle.retina.wobbleDistance ?? defaultDistance) * delta.factor) / (_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds / distanceFactor),\n max = doublePI,\n {\n position\n } = particle;\n wobble.angle += angleSpeed;\n if (wobble.angle > max) {\n wobble.angle -= max;\n }\n position.x += distance * Math.cos(wobble.angle);\n position.y += distance * Math.abs(Math.sin(wobble.angle));\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/wobble/dist/browser/Utils.js?");
/***/ }),
/***/ "../../updaters/wobble/dist/browser/WobbleUpdater.js":

@@ -48,3 +58,3 @@ /*!***********************************************************!*\

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ WobbleUpdater: () => (/* binding */ WobbleUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Wobble_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Wobble.js */ \"../../updaters/wobble/dist/browser/Options/Classes/Wobble.js\");\n\n\nconst double = 2,\n doublePI = Math.PI * double,\n maxAngle = 360,\n moveSpeedFactor = 10,\n defaultDistance = 0;\nclass WobbleUpdater {\n constructor(container) {\n this.container = container;\n }\n async init(particle) {\n const wobbleOpt = particle.options.wobble;\n if (wobbleOpt?.enable) {\n particle.wobble = {\n angle: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * doublePI,\n angleSpeed: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(wobbleOpt.speed.angle) / maxAngle,\n moveSpeed: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(wobbleOpt.speed.move) / moveSpeedFactor\n };\n } else {\n particle.wobble = {\n angle: 0,\n angleSpeed: 0,\n moveSpeed: 0\n };\n }\n particle.retina.wobbleDistance = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(wobbleOpt?.distance ?? defaultDistance) * this.container.retina.pixelRatio;\n await Promise.resolve();\n }\n isEnabled(particle) {\n return !particle.destroyed && !particle.spawning && !!particle.options.wobble?.enable;\n }\n loadOptions(options, ...sources) {\n if (!options.wobble) {\n options.wobble = new _Options_Classes_Wobble_js__WEBPACK_IMPORTED_MODULE_1__.Wobble();\n }\n for (const source of sources) {\n options.wobble.load(source?.wobble);\n }\n }\n async update(particle, delta) {\n if (!this.isEnabled(particle)) {\n return;\n }\n const {\n updateWobble\n } = await __webpack_require__.e(/*! import() */ \"updaters_wobble_dist_browser_Utils_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Utils.js */ \"../../updaters/wobble/dist/browser/Utils.js\"));\n updateWobble(particle, delta);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/wobble/dist/browser/WobbleUpdater.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ WobbleUpdater: () => (/* binding */ WobbleUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Wobble_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Wobble.js */ \"../../updaters/wobble/dist/browser/Options/Classes/Wobble.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Utils.js */ \"../../updaters/wobble/dist/browser/Utils.js\");\n\n\n\nconst double = 2,\n doublePI = Math.PI * double,\n maxAngle = 360,\n moveSpeedFactor = 10,\n defaultDistance = 0;\nclass WobbleUpdater {\n constructor(container) {\n this.container = container;\n }\n init(particle) {\n const wobbleOpt = particle.options.wobble;\n if (wobbleOpt?.enable) {\n particle.wobble = {\n angle: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * doublePI,\n angleSpeed: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(wobbleOpt.speed.angle) / maxAngle,\n moveSpeed: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(wobbleOpt.speed.move) / moveSpeedFactor\n };\n } else {\n particle.wobble = {\n angle: 0,\n angleSpeed: 0,\n moveSpeed: 0\n };\n }\n particle.retina.wobbleDistance = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(wobbleOpt?.distance ?? defaultDistance) * this.container.retina.pixelRatio;\n }\n isEnabled(particle) {\n return !particle.destroyed && !particle.spawning && !!particle.options.wobble?.enable;\n }\n loadOptions(options, ...sources) {\n if (!options.wobble) {\n options.wobble = new _Options_Classes_Wobble_js__WEBPACK_IMPORTED_MODULE_1__.Wobble();\n }\n for (const source of sources) {\n options.wobble.load(source?.wobble);\n }\n }\n update(particle, delta) {\n if (!this.isEnabled(particle)) {\n return;\n }\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_2__.updateWobble)(particle, delta);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/../../updaters/wobble/dist/browser/WobbleUpdater.js?");

@@ -51,0 +61,0 @@ /***/ })

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc