tsparticles 1.43.0 → 1.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/Updaters/Twinkle/index.js +1 -1
- package/cjs/Updaters/Twinkle/index.js +1 -1
- package/esm/Updaters/Twinkle/index.js +1 -1
- package/package.json +1 -1
- package/report.html +2 -2
- package/report.slim.html +1 -1
- package/tsparticles.engine.min.js +1 -1
- package/tsparticles.interaction.external.attract.min.js +1 -1
- package/tsparticles.interaction.external.bounce.min.js +1 -1
- package/tsparticles.interaction.external.bubble.min.js +1 -1
- package/tsparticles.interaction.external.connect.min.js +1 -1
- package/tsparticles.interaction.external.grab.min.js +1 -1
- package/tsparticles.interaction.external.repulse.min.js +1 -1
- package/tsparticles.interaction.external.trail.min.js +1 -1
- package/tsparticles.interaction.particles.attract.min.js +1 -1
- package/tsparticles.interaction.particles.collisions.min.js +1 -1
- package/tsparticles.interaction.particles.links.min.js +1 -1
- package/tsparticles.js +1 -1
- package/tsparticles.min.js +2 -2
- package/tsparticles.pathseg.min.js +1 -1
- package/tsparticles.plugins.absorbers.min.js +1 -1
- package/tsparticles.plugins.emitters.min.js +1 -1
- package/tsparticles.plugins.polygonMask.min.js +1 -1
- package/tsparticles.shape.circle.min.js +1 -1
- package/tsparticles.shape.image.min.js +1 -1
- package/tsparticles.shape.line.min.js +1 -1
- package/tsparticles.shape.polygon.min.js +1 -1
- package/tsparticles.shape.square.min.js +1 -1
- package/tsparticles.shape.star.min.js +1 -1
- package/tsparticles.shape.text.min.js +1 -1
- package/tsparticles.slim.min.js +1 -1
- package/tsparticles.updater.angle.min.js +1 -1
- package/tsparticles.updater.color.min.js +1 -1
- package/tsparticles.updater.life.min.js +1 -1
- package/tsparticles.updater.opacity.min.js +1 -1
- package/tsparticles.updater.outModes.min.js +1 -1
- package/tsparticles.updater.roll.min.js +1 -1
- package/tsparticles.updater.size.min.js +1 -1
- package/tsparticles.updater.strokeColor.min.js +1 -1
- package/tsparticles.updater.tilt.min.js +1 -1
- package/tsparticles.updater.wobble.min.js +1 -1
- package/umd/Updaters/Twinkle/index.js +1 -1
package/tsparticles.slim.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.43.
|
|
1
|
+
/*! tsParticles v1.43.1 by Matteo Bruni */
|
|
2
2
|
!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]}}(window,(function(){return function(){"use strict";var t={d:function(e,i){for(var o in i)t.o(i,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:i[o]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{Canvas:function(){return Et},Circle:function(){return _i},CircleWarp:function(){return ji},Constants:function(){return i},Container:function(){return Ki},Engine:function(){return ho},EventListeners:function(){return Dt},ExternalInteractorBase:function(){return bo},FrameManager:function(){return At},InteractionManager:function(){return Ii},Loader:function(){return oo},Main:function(){return ho},Options:function(){return Ti},OptionsColor:function(){return Lt},Particle:function(){return Fi},Particles:function(){return Ji},ParticlesInteractorBase:function(){return Bo},Plugins:function(){return ao},Point:function(){return Vi},QuadTree:function(){return $i},Range:function(){return Wi},Rectangle:function(){return Bi},Retina:function(){return Xi},Vector:function(){return o},Vector3d:function(){return Di},alterHsl:function(){return Rt},animate:function(){return P},areBoundsInside:function(){return D},arrayRandomIndex:function(){return R},calcEasing:function(){return m},calcExactPositionOrRandomFromSize:function(){return x},calcExactPositionOrRandomFromSizeRanged:function(){return k},calcPositionFromSize:function(){return b},calcPositionOrRandomFromSize:function(){return g},calcPositionOrRandomFromSizeRanged:function(){return w},calculateBounds:function(){return A},cancelAnimation:function(){return S},circleBounce:function(){return _},circleBounceDataFromParticle:function(){return W},clamp:function(){return s},clear:function(){return bt},collisionVelocity:function(){return y},colorMix:function(){return dt},colorToHsl:function(){return U},colorToRgb:function(){return G},deepExtend:function(){return L},divMode:function(){return V},divModeExecute:function(){return H},drawConnectLine:function(){return xt},drawEllipse:function(){return Ot},drawGrabLine:function(){return zt},drawLinkLine:function(){return gt},drawLinkTriangle:function(){return wt},drawParticle:function(){return Mt},drawParticlePlugin:function(){return Tt},drawPlugin:function(){return St},drawShape:function(){return Ct},drawShapeAfterEffect:function(){return Pt},getDistance:function(){return v},getDistances:function(){return h},getHslAnimationFromHsl:function(){return pt},getHslFromAnimation:function(){return vt},getLinkColor:function(){return ut},getLinkRandomColor:function(){return ht},getParticleBaseVelocity:function(){return f},getParticleDirectionAngle:function(){return p},getRandomRgbColor:function(){return at},getRangeMax:function(){return c},getRangeMin:function(){return l},getRangeValue:function(){return r},getStyleFromHsl:function(){return lt},getStyleFromHsv:function(){return ct},getStyleFromRgb:function(){return rt},getValue:function(){return u},gradient:function(){return kt},hslToHsv:function(){return Z},hslToRgb:function(){return Y},hslaToHsva:function(){return K},hslaToRgba:function(){return Q},hsvToHsl:function(){return tt},hsvToRgb:function(){return it},hsvaToHsla:function(){return et},hsvaToRgba:function(){return ot},isDivModeEnabled:function(){return q},isInArray:function(){return T},isPointInside:function(){return I},isSsr:function(){return C},itemFromArray:function(){return E},loadFont:function(){return O},mix:function(){return n},pJSDom:function(){return us},paintBase:function(){return mt},particlesJS:function(){return ds},randomInRange:function(){return a},rectBounce:function(){return B},rgbToHsl:function(){return N},rgbToHsv:function(){return st},rgbaToHsva:function(){return nt},setRangeValue:function(){return d},singleDivModeExecute:function(){return F},stringToAlpha:function(){return J},stringToRgb:function(){return X},tsParticles:function(){return cs}});class i{}i.generatedAttribute="generated",i.randomColorValue="random",i.midColorValue="mid",i.touchEndEvent="touchend",i.mouseDownEvent="mousedown",i.mouseUpEvent="mouseup",i.mouseMoveEvent="mousemove",i.touchStartEvent="touchstart",i.touchMoveEvent="touchmove",i.mouseLeaveEvent="mouseleave",i.mouseOutEvent="mouseout",i.touchCancelEvent="touchcancel",i.resizeEvent="resize",i.visibilityChangeEvent="visibilitychange",i.noPolygonDataLoaded="No polygon data loaded.",i.noPolygonFound="No polygon found, you need to specify SVG url in config.";class o{constructor(t,e){if("number"!=typeof t&&t)this.x=t.x,this.y=t.y;else{if(void 0===t||void 0===e)throw new Error("tsParticles - Vector not initialized correctly");this.x=t,this.y=e}}static clone(t){return o.create(t.x,t.y)}static create(t,e){return new o(t,e)}static get origin(){return o.create(0,0)}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)}add(t){return o.create(this.x+t.x,this.y+t.y)}addTo(t){this.x+=t.x,this.y+=t.y}sub(t){return o.create(this.x-t.x,this.y-t.y)}subFrom(t){this.x-=t.x,this.y-=t.y}mult(t){return o.create(this.x*t,this.y*t)}multTo(t){this.x*=t,this.y*=t}div(t){return o.create(this.x/t,this.y/t)}divTo(t){this.x/=t,this.y/=t}distanceTo(t){return this.sub(t).length}getLengthSq(){return this.x**2+this.y**2}distanceToSq(t){return this.sub(t).getLengthSq()}manhattanDistanceTo(t){return Math.abs(t.x-this.x)+Math.abs(t.y-this.y)}copy(){return o.clone(this)}setTo(t){this.x=t.x,this.y=t.y}rotate(t){return o.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t))}updateFromAngle(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}function s(t,e,i){return Math.min(Math.max(t,e),i)}function n(t,e,i,o){return Math.floor((t*i+e*o)/(i+o))}function a(t){const e=c(t);let i=l(t);return e===i&&(i=0),Math.random()*(e-i)+i}function r(t){return"number"==typeof t?t:a(t)}function l(t){return"number"==typeof t?t:t.min}function c(t){return"number"==typeof t?t:t.max}function d(t,e){if(t===e||void 0===e&&"number"==typeof t)return t;const i=l(t),o=c(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(o,e)}:d(i,o)}function u(t){const e=t.random,{enable:i,minimumValue:o}="boolean"==typeof e?{enable:e,minimumValue:0}:e;return r(i?d(t.value,o):t.value)}function h(t,e){const i=t.x-e.x,o=t.y-e.y;return{dx:i,dy:o,distance:Math.sqrt(i*i+o*o)}}function v(t,e){return h(t,e).distance}function p(t){if("number"==typeof t)return t*Math.PI/180;switch(t){case"top":return-Math.PI/2;case"top-right":return-Math.PI/4;case"right":return 0;case"bottom-right":return Math.PI/4;case"bottom":return Math.PI/2;case"bottom-left":return 3*Math.PI/4;case"left":return Math.PI;case"top-left":return-3*Math.PI/4;case"none":default:return Math.random()*Math.PI*2}}function f(t){const e=o.origin;return e.length=1,e.angle=t,e}function y(t,e,i,s){return o.create(t.x*(i-s)/(i+s)+2*e.x*s/(i+s),t.y)}function m(t,e){switch(e){case"ease-out-quad":return 1-(1-t)**2;case"ease-out-cubic":return 1-(1-t)**3;case"ease-out-quart":return 1-(1-t)**4;case"ease-out-quint":return 1-(1-t)**5;case"ease-out-expo":return 1===t?1:1-Math.pow(2,-10*t);case"ease-out-sine":return Math.sin(t*Math.PI/2);case"ease-out-back":{const e=1.70158;return 1+(e+1)*Math.pow(t-1,3)+e*Math.pow(t-1,2)}case"ease-out-circ":return Math.sqrt(1-Math.pow(t-1,2));default:return t}}function b(t){var e,i;return void 0!==(null===(e=t.position)||void 0===e?void 0:e.x)&&void 0!==(null===(i=t.position)||void 0===i?void 0:i.y)?{x:t.position.x*t.size.width/100,y:t.position.y*t.size.height/100}:void 0}function g(t){var e,i,o,s;return{x:(null!==(i=null===(e=t.position)||void 0===e?void 0:e.x)&&void 0!==i?i:100*Math.random())*t.size.width/100,y:(null!==(s=null===(o=t.position)||void 0===o?void 0:o.y)&&void 0!==s?s:100*Math.random())*t.size.height/100}}function w(t){var e,i;const o={x:void 0!==(null===(e=t.position)||void 0===e?void 0:e.x)?r(t.position.x):void 0,y:void 0!==(null===(i=t.position)||void 0===i?void 0:i.y)?r(t.position.y):void 0};return g({size:t.size,position:o})}function x(t){var e,i,o,s;return{x:null!==(i=null===(e=t.position)||void 0===e?void 0:e.x)&&void 0!==i?i:Math.random()*t.size.width,y:null!==(s=null===(o=t.position)||void 0===o?void 0:o.y)&&void 0!==s?s:Math.random()*t.size.height}}function k(t){var e,i;const o={x:void 0!==(null===(e=t.position)||void 0===e?void 0:e.x)?r(t.position.x):void 0,y:void 0!==(null===(i=t.position)||void 0===i?void 0:i.y)?r(t.position.y):void 0};return x({size:t.size,position:o})}function z(t,e,i,o,s,n){const a={bounced:!1};return e.min<o.min||e.min>o.max||e.max<o.min||e.max>o.max||(t.max>=i.min&&t.max<=(i.max+i.min)/2&&s>0||t.min<=i.max&&t.min>(i.max+i.min)/2&&s<0)&&(a.velocity=s*-n,a.bounced=!0),a}function M(t,e){if(!(e instanceof Array))return t.matches(e);for(const i of e)if(t.matches(i))return!0;return!1}function C(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function P(){return C()?t=>setTimeout(t):t=>(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.setTimeout)(t)}function S(){return C()?t=>clearTimeout(t):t=>(window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||window.clearTimeout)(t)}function T(t,e){return t===e||e instanceof Array&&e.indexOf(t)>-1}async function O(t){var e,i;try{await document.fonts.load(`${null!==(e=t.weight)&&void 0!==e?e:"400"} 36px '${null!==(i=t.font)&&void 0!==i?i:"Verdana"}'`)}catch(t){}}function R(t){return Math.floor(Math.random()*t.length)}function E(t,e,i=!0){return t[void 0!==e&&i?e%t.length:R(t)]}function I(t,e,i,o){return D(A(t,null!=i?i:0),e,o)}function D(t,e,i){let o=!0;return i&&"bottom"!==i||(o=t.top<e.height),!o||i&&"left"!==i||(o=t.right>0),!o||i&&"right"!==i||(o=t.left<e.width),!o||i&&"top"!==i||(o=t.bottom>0),o}function A(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function L(t,...e){for(const i of e){if(null==i)continue;if("object"!=typeof i){t=i;continue}const e=Array.isArray(i);!e||"object"==typeof t&&t&&Array.isArray(t)?e||"object"==typeof t&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const o=i[e],s="object"==typeof o,n=t;n[e]=s&&Array.isArray(o)?o.map((t=>L(n[e],t))):L(n[e],o)}}return t}function q(t,e){return e instanceof Array?!!e.find((e=>e.enable&&T(t,e.mode))):T(t,e.mode)}function H(t,e,i){if(e instanceof Array)for(const o of e){const e=o.mode;o.enable&&T(t,e)&&F(o,i)}else{const o=e.mode;e.enable&&T(t,o)&&F(e,i)}}function F(t,e){const i=t.selectors;if(i instanceof Array)for(const o of i)e(o,t);else e(i,t)}function V(t,e){if(e&&t)return t instanceof Array?t.find((t=>M(e,t.selectors))):M(e,t.selectors)?t:void 0}function W(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:o.create(u(t.options.bounce.horizontal),u(t.options.bounce.vertical))}}function _(t,e){const{x:i,y:o}=t.velocity.sub(e.velocity),[s,n]=[t.position,e.position],{dx:a,dy:r}=h(n,s);if(i*a+o*r<0)return;const l=-Math.atan2(r,a),c=t.mass,d=e.mass,u=t.velocity.rotate(l),v=e.velocity.rotate(l),p=y(u,v,c,d),f=y(v,u,c,d),m=p.rotate(-l),b=f.rotate(-l);t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y,e.velocity.x=b.x*e.factor.x,e.velocity.y=b.y*e.factor.y}function B(t,e){const i=A(t.getPosition(),t.getRadius()),o=z({min:i.left,max:i.right},{min:i.top,max:i.bottom},{min:e.left,max:e.right},{min:e.top,max:e.bottom},t.velocity.x,u(t.options.bounce.horizontal));o.bounced&&(void 0!==o.velocity&&(t.velocity.x=o.velocity),void 0!==o.position&&(t.position.x=o.position));const s=z({min:i.top,max:i.bottom},{min:i.left,max:i.right},{min:e.top,max:e.bottom},{min:e.left,max:e.right},t.velocity.y,u(t.options.bounce.vertical));s.bounced&&(void 0!==s.velocity&&(t.velocity.y=s.velocity),void 0!==s.position&&(t.position.y=s.position))}function j(t,e,i){let o=i;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+6*(e-t)*o:o<.5?e:o<2/3?t+(e-t)*(2/3-o)*6:t}function $(t){if(t.startsWith("rgb")){const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?parseFloat(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}if(t.startsWith("hsl")){const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?Q({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}if(t.startsWith("hsv")){const e=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?ot({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),s:parseInt(e[2],10),v:parseInt(e[3],10)}):void 0}{const e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,i=t.replace(e,((t,e,i,o,s)=>e+e+i+i+o+o+(void 0!==s?s+s:""))),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(i);return o?{a:void 0!==o[4]?parseInt(o[4],16)/255:1,b:parseInt(o[3],16),g:parseInt(o[2],16),r:parseInt(o[1],16)}:void 0}}function G(t,e,o=!0){var s,n,a;if(void 0===t)return;const r="string"==typeof t?{value:t}:t;let l;if("string"==typeof r.value)l=r.value===i.randomColorValue?at():X(r.value);else if(r.value instanceof Array){l=G({value:E(r.value,e,o)})}else{const t=r.value,e=null!==(s=t.rgb)&&void 0!==s?s:r.value;if(void 0!==e.r)l=e;else{const e=null!==(n=t.hsl)&&void 0!==n?n:r.value;if(void 0!==e.h&&void 0!==e.l)l=Y(e);else{const e=null!==(a=t.hsv)&&void 0!==a?a:r.value;void 0!==e.h&&void 0!==e.v&&(l=it(e))}}}return l}function U(t,e,i=!0){const o=G(t,e,i);return void 0!==o?N(o):void 0}function N(t){const e=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(e,i,o),n=Math.min(e,i,o),a={h:0,l:(s+n)/2,s:0};return s!==n&&(a.s=a.l<.5?(s-n)/(s+n):(s-n)/(2-s-n),a.h=e===s?(i-o)/(s-n):a.h=i===s?2+(o-e)/(s-n):4+(e-i)/(s-n)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a}function J(t){var e;return null===(e=$(t))||void 0===e?void 0:e.a}function X(t){return $(t)}function Y(t){const e={b:0,g:0,r:0},i={h:t.h/360,l:t.l/100,s:t.s/100};if(0===i.s)e.b=i.l,e.g=i.l,e.r=i.l;else{const t=i.l<.5?i.l*(1+i.s):i.l+i.s-i.l*i.s,o=2*i.l-t;e.r=j(o,t,i.h+1/3),e.g=j(o,t,i.h),e.b=j(o,t,i.h-1/3)}return e.r=Math.floor(255*e.r),e.g=Math.floor(255*e.g),e.b=Math.floor(255*e.b),e}function Q(t){const e=Y(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function Z(t){const e=t.l/100,i=e+t.s/100*Math.min(e,1-e),o=i?2*(1-e/i):0;return{h:t.h,s:100*o,v:100*i}}function K(t){const e=Z(t);return{a:t.a,h:e.h,s:e.s,v:e.v}}function tt(t){const e=t.v/100,i=e*(1-t.s/100/2),o=0===i||1===i?0:(e-i)/Math.min(i,1-i);return{h:t.h,l:100*i,s:100*o}}function et(t){const e=tt(t);return{a:t.a,h:e.h,l:e.l,s:e.s}}function it(t){const e={b:0,g:0,r:0},i=t.h/60,o=t.s/100,s=t.v/100,n=s*o,a=n*(1-Math.abs(i%2-1));let r;if(i>=0&&i<=1?r={r:n,g:a,b:0}:i>1&&i<=2?r={r:a,g:n,b:0}:i>2&&i<=3?r={r:0,g:n,b:a}:i>3&&i<=4?r={r:0,g:a,b:n}:i>4&&i<=5?r={r:a,g:0,b:n}:i>5&&i<=6&&(r={r:n,g:0,b:a}),r){const t=s-n;e.r=Math.floor(255*(r.r+t)),e.g=Math.floor(255*(r.g+t)),e.b=Math.floor(255*(r.b+t))}return e}function ot(t){const e=it(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function st(t){const e={r:t.r/255,g:t.g/255,b:t.b/255},i=Math.max(e.r,e.g,e.b),o=i-Math.min(e.r,e.g,e.b);let s=0;i===e.r?s=(e.g-e.b)/o*60:i===e.g?s=60*(2+(e.b-e.r)/o):i===e.b&&(s=60*(4+(e.r-e.g)/o));return{h:s,s:100*(i?o/i:0),v:100*i}}function nt(t){const e=st(t);return{a:t.a,h:e.h,s:e.s,v:e.v}}function at(t){const e=null!=t?t:0;return{b:Math.floor(a(d(e,256))),g:Math.floor(a(d(e,256))),r:Math.floor(a(d(e,256)))}}function rt(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${null!=e?e:1})`}function lt(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${null!=e?e:1})`}function ct(t,e){return lt(tt(t),e)}function dt(t,e,i,o){let s=t,a=e;return void 0===s.r&&(s=Y(t)),void 0===a.r&&(a=Y(e)),{b:n(s.b,a.b,i,o),g:n(s.g,a.g,i,o),r:n(s.r,a.r,i,o)}}function ut(t,e,o){var s,n;if(o===i.randomColorValue)return at();if("mid"!==o)return o;{const i=null!==(s=t.getFillColor())&&void 0!==s?s:t.getStrokeColor(),o=null!==(n=null==e?void 0:e.getFillColor())&&void 0!==n?n:null==e?void 0:e.getStrokeColor();if(i&&o&&e)return dt(i,o,t.getRadius(),e.getRadius());{const t=null!=i?i:o;if(t)return Y(t)}}}function ht(t,e,o){const s="string"==typeof t?t:t.value;return s===i.randomColorValue?o?G({value:s}):e?i.randomColorValue:i.midColorValue:G({value:s})}function vt(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function pt(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&&(ft(o.h,e.h,i),ft(o.s,e.s,i),ft(o.l,e.l,i)),o}function ft(t,e,i){if(t.enable=e.enable,t.enable){if(t.velocity=r(e.speed)/100*i,e.sync)return;t.status=0,t.velocity*=Math.random(),t.value&&(t.value*=Math.random())}else t.velocity=0}function yt(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function mt(t,e,i){t.save(),t.fillStyle=null!=i?i:"rgba(0,0,0,0)",t.fillRect(0,0,e.width,e.height),t.restore()}function bt(t,e){t.clearRect(0,0,e.width,e.height)}function gt(t,e,i,o,s,n,a,r,l,c,d,u){let p=!1;if(v(i,o)<=s)yt(t,i,o),p=!0;else if(a){let e,a;const r=h(i,{x:o.x-n.width,y:o.y});if(r.distance<=s){const t=i.y-r.dy/r.dx*i.x;e={x:0,y:t},a={x:n.width,y:t}}else{const t=h(i,{x:o.x,y:o.y-n.height});if(t.distance<=s){const o=-(i.y-t.dy/t.dx*i.x)/(t.dy/t.dx);e={x:o,y:0},a={x:o,y:n.height}}else{const t=h(i,{x:o.x-n.width,y:o.y-n.height});if(t.distance<=s){const o=i.y-t.dy/t.dx*i.x;e={x:-o/(t.dy/t.dx),y:o},a={x:e.x+n.width,y:e.y+n.height}}}}e&&a&&(yt(t,i,e),yt(t,o,a),p=!0)}if(p){if(t.lineWidth=e,r&&(t.globalCompositeOperation=l),t.strokeStyle=rt(c,d),u.enable){const e=G(u.color);e&&(t.shadowBlur=u.blur,t.shadowColor=rt(e))}t.stroke()}}function wt(t,e,i,o,s,n,a,r){!function(t,e,i,o){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.lineTo(o.x,o.y),t.closePath()}(t,e,i,o),s&&(t.globalCompositeOperation=n),t.fillStyle=rt(a,r),t.fill()}function xt(t,e,i,o,s){t.save(),yt(t,o,s),t.lineWidth=e,t.strokeStyle=i,t.stroke(),t.restore()}function kt(t,e,i,o){const s=Math.floor(i.getRadius()/e.getRadius()),n=e.getFillColor(),a=i.getFillColor();if(!n||!a)return;const r=e.getPosition(),l=i.getPosition(),c=dt(n,a,e.getRadius(),i.getRadius()),d=t.createLinearGradient(r.x,r.y,l.x,l.y);return d.addColorStop(0,lt(n,o)),d.addColorStop(s>1?1:s,rt(c,o)),d.addColorStop(1,lt(a,o)),d}function zt(t,e,i,o,s,n){t.save(),yt(t,i,o),t.strokeStyle=rt(s,n),t.lineWidth=e,t.stroke(),t.restore()}function Mt(t,e,i,o,s,n,a,r,l,c){var d,u,h,v;const p=i.getPosition(),f=i.options.tilt,y=i.options.roll;if(e.save(),f.enable||y.enable){const t=y.enable&&i.roll,o=f.enable&&i.tilt,s=t&&("horizontal"===y.mode||"both"===y.mode),n=t&&("vertical"===y.mode||"both"===y.mode);e.setTransform(s?Math.cos(i.roll.angle):1,o?Math.cos(i.tilt.value)*i.tilt.cosDirection:0,o?Math.sin(i.tilt.value)*i.tilt.sinDirection:0,n?Math.sin(i.roll.angle):1,p.x,p.y)}else e.translate(p.x,p.y);e.beginPath();const m=(null!==(u=null===(d=i.rotate)||void 0===d?void 0:d.value)&&void 0!==u?u:0)+(i.options.rotate.path?i.velocity.angle:0);0!==m&&e.rotate(m),n&&(e.globalCompositeOperation=a);const b=i.shadowColor;c.enable&&b&&(e.shadowBlur=c.blur,e.shadowColor=rt(b),e.shadowOffsetX=c.offset.x,e.shadowOffsetY=c.offset.y),s.fill&&(e.fillStyle=s.fill);const g=i.stroke;e.lineWidth=null!==(h=i.strokeWidth)&&void 0!==h?h:0,s.stroke&&(e.strokeStyle=s.stroke),Ct(t,e,i,r,l,o),(null!==(v=null==g?void 0:g.width)&&void 0!==v?v:0)>0&&e.stroke(),i.close&&e.closePath(),i.fill&&e.fill(),e.restore(),e.save(),f.enable&&i.tilt?e.setTransform(1,Math.cos(i.tilt.value)*i.tilt.cosDirection,Math.sin(i.tilt.value)*i.tilt.sinDirection,1,p.x,p.y):e.translate(p.x,p.y),0!==m&&e.rotate(m),n&&(e.globalCompositeOperation=a),Pt(t,e,i,r,l,o),e.restore()}function Ct(t,e,i,o,s,n){if(!i.shape)return;const a=t.drawers.get(i.shape);a&&a.draw(e,i,o,s,n,t.retina.pixelRatio)}function Pt(t,e,i,o,s,n){if(!i.shape)return;const a=t.drawers.get(i.shape);(null==a?void 0:a.afterEffect)&&a.afterEffect(e,i,o,s,n,t.retina.pixelRatio)}function St(t,e,i){e.draw&&(t.save(),e.draw(t,i),t.restore())}function Tt(t,e,i,o){e.drawParticle&&(t.save(),e.drawParticle(t,i,o),t.restore())}function Ot(t,e,i,o,s,n,a,r,l){if(n<=0)return;const c=e.getPosition();i&&(t.strokeStyle=lt(i,s)),t.lineWidth=n;const d=a*Math.PI/180;t.beginPath(),t.ellipse(c.x,c.y,o/2,2*o,d,r,l),t.stroke()}function Rt(t,e,i){return{h:t.h,s:t.s,l:t.l+("darken"===e?-1:1)*i}}class Et{constructor(t){this.container=t,this.size={height:0,width:0},this.context=null,this.generatedCanvas=!1}init(){this.resize(),this.initStyle(),this.initCover(),this.initTrail(),this.initBackground(),this.paint()}loadCanvas(t){var e;this.generatedCanvas&&(null===(e=this.element)||void 0===e||e.remove()),this.generatedCanvas=t.dataset&&i.generatedAttribute in t.dataset?"true"===t.dataset[i.generatedAttribute]:this.generatedCanvas,this.element=t,this.originalStyle=L({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this.context=this.element.getContext("2d"),this.container.retina.init(),this.initBackground()}destroy(){var t;this.generatedCanvas&&(null===(t=this.element)||void 0===t||t.remove()),this.draw((t=>{bt(t,this.size)}))}paint(){const t=this.container.actualOptions;this.draw((e=>{t.backgroundMask.enable&&t.backgroundMask.cover?(bt(e,this.size),this.paintBase(this.coverColorStyle)):this.paintBase()}))}clear(){const t=this.container.actualOptions,e=t.particles.move.trail;t.backgroundMask.enable?this.paint():e.enable&&e.length>0&&this.trailFillColor?this.paintBase(rt(this.trailFillColor,1/e.length)):this.draw((t=>{bt(t,this.size)}))}async windowResize(){if(!this.element)return;this.resize();const t=this.container,e=t.updateActualOptions();t.particles.setDensity();for(const[,e]of t.plugins)void 0!==e.resize&&e.resize();e&&await t.refresh()}resize(){if(!this.element)return;const t=this.container,e=t.retina.pixelRatio,i=t.canvas.size,o=this.element.offsetWidth*e,s=this.element.offsetHeight*e;if(s===i.height&&o===i.width&&s===this.element.height&&o===this.element.width)return;const n=Object.assign({},i);this.element.width=i.width=this.element.offsetWidth*e,this.element.height=i.height=this.element.offsetHeight*e,this.container.started&&(this.resizeFactor={width:i.width/n.width,height:i.height/n.height})}drawConnectLine(t,e){this.draw((i=>{var o;const s=this.lineStyle(t,e);if(!s)return;const n=t.getPosition(),a=e.getPosition();xt(i,null!==(o=t.retina.linksWidth)&&void 0!==o?o:this.container.retina.linksWidth,s,n,a)}))}drawGrabLine(t,e,i,o){const s=this.container;this.draw((n=>{var a;const r=t.getPosition();zt(n,null!==(a=t.retina.linksWidth)&&void 0!==a?a:s.retina.linksWidth,r,o,e,i)}))}drawParticle(t,e){var i,o,s,n,a,r;if(t.spawning||t.destroyed)return;const l=t.getRadius();if(l<=0)return;const c=t.getFillColor(),d=null!==(i=t.getStrokeColor())&&void 0!==i?i:c;if(!c&&!d)return;let[u,h]=this.getPluginParticleColors(t);u&&h||(u||(u=c||void 0),h||(h=d||void 0));const v=this.container.actualOptions,p=t.options.zIndex,f=(1-t.zIndexFactor)**p.opacityRate,y=null!==(n=null!==(o=t.bubble.opacity)&&void 0!==o?o:null===(s=t.opacity)||void 0===s?void 0:s.value)&&void 0!==n?n:1,m=null!==(r=null===(a=t.stroke)||void 0===a?void 0:a.opacity)&&void 0!==r?r:y,b=y*f,g=m*f,w={fill:u?lt(u,b):void 0};w.stroke=h?lt(h,g):w.fill,this.draw((i=>{const o=(1-t.zIndexFactor)**p.sizeRate,s=this.container;for(const e of s.particles.updaters)if(e.beforeDraw&&e.beforeDraw(t),e.getColorStyles){const{fill:o,stroke:s}=e.getColorStyles(t,i,l,b);o&&(w.fill=o),s&&(w.stroke=s)}Mt(s,i,t,e,w,v.backgroundMask.enable,v.backgroundMask.composite,l*o,b,t.options.shadow);for(const e of s.particles.updaters)e.afterDraw&&e.afterDraw(t)}))}drawPlugin(t,e){this.draw((i=>{St(i,t,e)}))}drawParticlePlugin(t,e,i){this.draw((o=>{Tt(o,t,e,i)}))}initBackground(){const t=this.container.actualOptions.background,e=this.element,i=null==e?void 0:e.style;if(i){if(t.color){const e=G(t.color);i.backgroundColor=e?rt(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}draw(t){if(this.context)return t(this.context)}initCover(){const t=this.container.actualOptions.backgroundMask.cover,e=G(t.color);if(e){const i={r:e.r,g:e.g,b:e.b,a:t.opacity};this.coverColorStyle=rt(i,i.a)}}initTrail(){const t=this.container.actualOptions,e=G(t.particles.move.trail.fillColor);if(e){const i=t.particles.move.trail;this.trailFillColor={r:e.r,g:e.g,b:e.b,a:1/i.length}}}getPluginParticleColors(t){let e,i;for(const[,o]of this.container.plugins)if(!e&&o.particleFillColor&&(e=U(o.particleFillColor(t))),!i&&o.particleStrokeColor&&(i=U(o.particleStrokeColor(t))),e&&i)break;return[e,i]}initStyle(){const t=this.element,e=this.container.actualOptions;if(!t)return;const i=this.originalStyle;e.fullScreen.enable?(this.originalStyle=L({},t.style),t.style.setProperty("position","fixed","important"),t.style.setProperty("z-index",e.fullScreen.zIndex.toString(10),"important"),t.style.setProperty("top","0","important"),t.style.setProperty("left","0","important"),t.style.setProperty("width","100%","important"),t.style.setProperty("height","100%","important")):i&&(t.style.position=i.position,t.style.zIndex=i.zIndex,t.style.top=i.top,t.style.left=i.left,t.style.width=i.width,t.style.height=i.height);for(const i in e.style){if(!i||!e.style)continue;const o=e.style[i];o&&t.style.setProperty(i,o,"important")}}paintBase(t){this.draw((e=>{mt(e,this.size,t)}))}lineStyle(t,e){return this.draw((i=>{const o=this.container.actualOptions.interactivity.modes.connect;return kt(i,t,e,o.links.opacity)}))}}function It(t,e,i,o,s){if(o){let o={passive:!0};"boolean"==typeof s?o.capture=s:void 0!==s&&(o=s),t.addEventListener(e,i,o)}else{const o=s;t.removeEventListener(e,i,o)}}class Dt{constructor(t){this.container=t,this.canPush=!0,this.mouseMoveHandler=t=>this.mouseTouchMove(t),this.touchStartHandler=t=>this.mouseTouchMove(t),this.touchMoveHandler=t=>this.mouseTouchMove(t),this.touchEndHandler=()=>this.mouseTouchFinish(),this.mouseLeaveHandler=()=>this.mouseTouchFinish(),this.touchCancelHandler=()=>this.mouseTouchFinish(),this.touchEndClickHandler=t=>this.mouseTouchClick(t),this.mouseUpHandler=t=>this.mouseTouchClick(t),this.mouseDownHandler=()=>this.mouseDown(),this.visibilityChangeHandler=()=>this.handleVisibilityChange(),this.themeChangeHandler=t=>this.handleThemeChange(t),this.oldThemeChangeHandler=t=>this.handleThemeChange(t),this.resizeHandler=()=>this.handleWindowResize()}addListeners(){this.manageListeners(!0)}removeListeners(){this.manageListeners(!1)}manageListeners(t){var e;const o=this.container,s=o.actualOptions,n=s.interactivity.detectsOn;let a=i.mouseLeaveEvent;if("window"===n)o.interactivity.element=window,a=i.mouseOutEvent;else if("parent"===n&&o.canvas.element){const t=o.canvas.element;o.interactivity.element=null!==(e=t.parentElement)&&void 0!==e?e:t.parentNode}else o.interactivity.element=o.canvas.element;const r=!C()&&"undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)");r&&(void 0!==r.addEventListener?It(r,"change",this.themeChangeHandler,t):void 0!==r.addListener&&(t?r.addListener(this.oldThemeChangeHandler):r.removeListener(this.oldThemeChangeHandler)));const l=o.interactivity.element;if(!l)return;const c=l;(s.interactivity.events.onHover.enable||s.interactivity.events.onClick.enable)&&(It(l,i.mouseMoveEvent,this.mouseMoveHandler,t),It(l,i.touchStartEvent,this.touchStartHandler,t),It(l,i.touchMoveEvent,this.touchMoveHandler,t),s.interactivity.events.onClick.enable?(It(l,i.touchEndEvent,this.touchEndClickHandler,t),It(l,i.mouseUpEvent,this.mouseUpHandler,t),It(l,i.mouseDownEvent,this.mouseDownHandler,t)):It(l,i.touchEndEvent,this.touchEndHandler,t),It(l,a,this.mouseLeaveHandler,t),It(l,i.touchCancelEvent,this.touchCancelHandler,t)),o.canvas.element&&(o.canvas.element.style.pointerEvents=c===o.canvas.element?"initial":"none"),s.interactivity.events.resize&&("undefined"!=typeof ResizeObserver?this.resizeObserver&&!t?(o.canvas.element&&this.resizeObserver.unobserve(o.canvas.element),this.resizeObserver.disconnect(),delete this.resizeObserver):!this.resizeObserver&&t&&o.canvas.element&&(this.resizeObserver=new ResizeObserver((t=>{t.find((t=>t.target===o.canvas.element))&&this.handleWindowResize()})),this.resizeObserver.observe(o.canvas.element)):It(window,i.resizeEvent,this.resizeHandler,t)),document&&It(document,i.visibilityChangeEvent,this.visibilityChangeHandler,t,!1)}handleWindowResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),delete this.resizeTimeout),this.resizeTimeout=setTimeout((async()=>{var t;return await(null===(t=this.container.canvas)||void 0===t?void 0:t.windowResize())}),500)}handleVisibilityChange(){const t=this.container,e=t.actualOptions;this.mouseTouchFinish(),e.pauseOnBlur&&((null===document||void 0===document?void 0:document.hidden)?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.getAnimationStatus()?t.play(!0):t.draw(!0)))}mouseDown(){const t=this.container.interactivity;if(t){const e=t.mouse;e.clicking=!0,e.downPosition=e.position}}mouseTouchMove(t){var e,o,s,n,a,r,l;const c=this.container,d=c.actualOptions;if(!(null===(e=c.interactivity)||void 0===e?void 0:e.element))return;let u;c.interactivity.mouse.inside=!0;const h=c.canvas.element;if(t.type.startsWith("mouse")){this.canPush=!0;const e=t;if(c.interactivity.element===window){if(h){const t=h.getBoundingClientRect();u={x:e.clientX-t.left,y:e.clientY-t.top}}}else if("parent"===d.interactivity.detectsOn){const t=e.target,i=e.currentTarget,n=c.canvas.element;if(t&&i&&n){const o=t.getBoundingClientRect(),s=i.getBoundingClientRect(),a=n.getBoundingClientRect();u={x:e.offsetX+2*o.left-(s.left+a.left),y:e.offsetY+2*o.top-(s.top+a.top)}}else u={x:null!==(o=e.offsetX)&&void 0!==o?o:e.clientX,y:null!==(s=e.offsetY)&&void 0!==s?s:e.clientY}}else e.target===c.canvas.element&&(u={x:null!==(n=e.offsetX)&&void 0!==n?n:e.clientX,y:null!==(a=e.offsetY)&&void 0!==a?a:e.clientY})}else{this.canPush="touchmove"!==t.type;const e=t,i=e.touches[e.touches.length-1],o=null==h?void 0:h.getBoundingClientRect();u={x:i.clientX-(null!==(r=null==o?void 0:o.left)&&void 0!==r?r:0),y:i.clientY-(null!==(l=null==o?void 0:o.top)&&void 0!==l?l:0)}}const v=c.retina.pixelRatio;u&&(u.x*=v,u.y*=v),c.interactivity.mouse.position=u,c.interactivity.status=i.mouseMoveEvent}mouseTouchFinish(){const t=this.container.interactivity;if(!t)return;const e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=i.mouseLeaveEvent,e.inside=!1,e.clicking=!1}mouseTouchClick(t){const e=this.container,i=e.actualOptions,o=e.interactivity.mouse;o.inside=!0;let s=!1;const n=o.position;if(n&&i.interactivity.events.onClick.enable){for(const[,t]of e.plugins)if(t.clickPositionValid&&(s=t.clickPositionValid(n),s))break;s||this.doMouseTouchClick(t),o.clicking=!1}}doMouseTouchClick(t){const e=this.container,i=e.actualOptions;if(this.canPush){const t=e.interactivity.mouse.position;if(!t)return;e.interactivity.mouse.clickPosition={x:t.x,y:t.y},e.interactivity.mouse.clickTime=(new Date).getTime();const o=i.interactivity.events.onClick;if(o.mode instanceof Array)for(const t of o.mode)this.handleClickMode(t);else this.handleClickMode(o.mode)}"touchend"===t.type&&setTimeout((()=>this.mouseTouchFinish()),500)}handleThemeChange(t){const e=t.matches?this.container.options.defaultDarkTheme:this.container.options.defaultLightTheme,i=this.container.options.themes.find((t=>t.name===e));i&&i.default.auto&&this.container.loadTheme(e)}handleClickMode(t){this.container.handleClickMode(t)}}class At{constructor(t){this.container=t}async nextFrame(t){var e;try{const i=this.container;if(void 0!==i.lastFrameTime&&t<i.lastFrameTime+1e3/i.fpsLimit)return void i.draw(!1);null!==(e=i.lastFrameTime)&&void 0!==e||(i.lastFrameTime=t);const o=t-i.lastFrameTime,s={value:o,factor:60*o/1e3};if(i.lifeTime+=s.value,i.lastFrameTime=t,o>1e3)return void i.draw(!1);if(await i.particles.draw(s),i.duration>0&&i.lifeTime>i.duration)return void i.destroy();i.getAnimationStatus()&&i.draw(!1)}catch(t){console.error("tsParticles error in animation loop",t)}}}class Lt{constructor(){this.value="#fff"}static create(t,e){const i=new Lt;return i.load(t),void 0!==e&&("string"==typeof e||e instanceof Array?i.load({value:e}):i.load(e)),i}load(t){void 0!==(null==t?void 0:t.value)&&(this.value=t.value)}}class qt{constructor(){this.color=new Lt,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Lt.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))}}class Ht{constructor(){this.color=new Lt,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Lt.create(this.color,t.color)),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Ft{constructor(){this.composite="destination-out",this.cover=new Ht,this.enable=!1}load(t){if(void 0!==t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const e=t.cover,i="string"==typeof t.cover?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class Vt{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))}}class Wt{constructor(){this.enable=!1,this.mode=[]}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}class _t{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}get elementId(){return this.ids}set elementId(t){this.ids=t}get el(){return this.elementId}set el(t){this.elementId=t}get ids(){return this.selectors instanceof Array?this.selectors.map((t=>t.replace("#",""))):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map((t=>`#${t}`)):`#${t}`}load(t){var e,i;if(void 0===t)return;const o=null!==(i=null!==(e=t.ids)&&void 0!==e?e:t.elementId)&&void 0!==i?i:t.el;void 0!==o&&(this.ids=o),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)}}class Bt{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){void 0!==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))}}class jt{constructor(){this.enable=!1,this.mode=[],this.parallax=new Bt}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class $t{constructor(){this.onClick=new Wt,this.onDiv=new _t,this.onHover=new jt,this.resize=!0}get onclick(){return this.onClick}set onclick(t){this.onClick=t}get ondiv(){return this.onDiv}set ondiv(t){this.onDiv=t}get onhover(){return this.onHover}set onhover(t){this.onHover=t}load(t){var e,i,o;if(void 0===t)return;this.onClick.load(null!==(e=t.onClick)&&void 0!==e?e:t.onclick);const s=null!==(i=t.onDiv)&&void 0!==i?i:t.ondiv;void 0!==s&&(s instanceof Array?this.onDiv=s.map((t=>{const e=new _t;return e.load(t),e})):(this.onDiv=new _t,this.onDiv.load(s))),this.onHover.load(null!==(o=t.onHover)&&void 0!==o?o:t.onhover),void 0!==t.resize&&(this.resize=t.resize)}}class Gt{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed),void 0!==t.speed&&(this.speed=t.speed))}}class Ut{constructor(){this.distance=200}load(t){t&&void 0!==t.distance&&(this.distance=t.distance)}}class Nt{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.mix&&(this.mix=t.mix),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.color&&(t.color instanceof Array?this.color=t.color.map((t=>Lt.create(void 0,t))):(this.color instanceof Array&&(this.color=new Lt),this.color=Lt.create(this.color,t.color))),void 0!==t.size&&(this.size=t.size))}}class Jt extends Nt{constructor(){super(),this.selectors=[]}get ids(){return this.selectors instanceof Array?this.selectors.map((t=>t.replace("#",""))):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map((t=>`#${t}`)):`#${t}`}load(t){super.load(t),void 0!==t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class Xt extends Nt{load(t){super.load(t),void 0!==t&&void 0!==t.divs&&(t.divs instanceof Array?this.divs=t.divs.map((t=>{const e=new Jt;return e.load(t),e})):((this.divs instanceof Array||!this.divs)&&(this.divs=new Jt),this.divs.load(t.divs)))}}class Yt{constructor(){this.opacity=.5}load(t){void 0!==t&&void 0!==t.opacity&&(this.opacity=t.opacity)}}class Qt{constructor(){this.distance=80,this.links=new Yt,this.radius=60}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked),void 0!==t.radius&&(this.radius=t.radius))}}class Zt{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){void 0!==t&&(void 0!==t.blink&&(this.blink=t.blink),void 0!==t.color&&(this.color=Lt.create(this.color,t.color)),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Kt{constructor(){this.distance=100,this.links=new Zt}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked))}}class te{constructor(){this.start=new Lt,this.stop=new Lt,this.start.value="#ffffff",this.stop.value="#000000"}load(t){void 0!==t&&(this.start=Lt.create(this.start,t.start),this.stop=Lt.create(this.stop,t.stop))}}class ee{constructor(){this.gradient=new te,this.radius=1e3}load(t){void 0!==t&&(this.gradient.load(t.gradient),void 0!==t.radius&&(this.radius=t.radius))}}class ie{constructor(){this.color=new Lt,this.color.value="#000000",this.length=2e3}load(t){void 0!==t&&(this.color=Lt.create(this.color,t.color),void 0!==t.length&&(this.length=t.length))}}class oe{constructor(){this.area=new ee,this.shadow=new ie}load(t){void 0!==t&&(this.area.load(t.area),this.shadow.load(t.shadow))}}class se{constructor(){this.default=!0,this.groups=[],this.quantity=4}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=t}load(t){var e;if(void 0===t)return;void 0!==t.default&&(this.default=t.default),void 0!==t.groups&&(this.groups=t.groups.map((t=>t))),this.groups.length||(this.default=!0);const i=null!==(e=t.quantity)&&void 0!==e?e:t.particles_nb;void 0!==i&&(this.quantity=i)}}class ne{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=t}load(t){var e;if(void 0===t)return;const i=null!==(e=t.quantity)&&void 0!==e?e:t.particles_nb;void 0!==i&&(this.quantity=i)}}class ae{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class re extends ae{constructor(){super(),this.selectors=[]}get ids(){return this.selectors instanceof Array?this.selectors.map((t=>t.replace("#",""))):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map((()=>`#${t}`)):`#${t}`}load(t){super.load(t),void 0!==t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class le extends ae{load(t){super.load(t),void 0!==(null==t?void 0:t.divs)&&(t.divs instanceof Array?this.divs=t.divs.map((t=>{const e=new re;return e.load(t),e})):((this.divs instanceof Array||!this.divs)&&(this.divs=new re),this.divs.load(t.divs)))}}class ce{constructor(){this.factor=3,this.radius=200}get active(){return!1}set active(t){}load(t){void 0!==t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.radius&&(this.radius=t.radius))}}class de{constructor(){this.delay=1,this.pauseOnStop=!1,this.quantity=1}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.quantity&&(this.quantity=t.quantity),void 0!==t.particles&&(this.particles=L({},t.particles)),void 0!==t.pauseOnStop&&(this.pauseOnStop=t.pauseOnStop))}}class ue{constructor(){this.attract=new Gt,this.bounce=new Ut,this.bubble=new Xt,this.connect=new Qt,this.grab=new Kt,this.light=new oe,this.push=new se,this.remove=new ne,this.repulse=new le,this.slow=new ce,this.trail=new de}load(t){void 0!==t&&(this.attract.load(t.attract),this.bubble.load(t.bubble),this.connect.load(t.connect),this.grab.load(t.grab),this.light.load(t.light),this.push.load(t.push),this.remove.load(t.remove),this.repulse.load(t.repulse),this.slow.load(t.slow),this.trail.load(t.trail))}}class he{constructor(){this.detectsOn="window",this.events=new $t,this.modes=new ue}get detect_on(){return this.detectsOn}set detect_on(t){this.detectsOn=t}load(t){var e,i,o;if(void 0===t)return;const s=null!==(e=t.detectsOn)&&void 0!==e?e:t.detect_on;void 0!==s&&(this.detectsOn=s),this.events.load(t.events),this.modes.load(t.modes),!0===(null===(o=null===(i=t.modes)||void 0===i?void 0:i.slow)||void 0===o?void 0:o.active)&&(this.events.onHover.mode instanceof Array?this.events.onHover.mode.indexOf("slow")<0&&this.events.onHover.mode.push("slow"):"slow"!==this.events.onHover.mode&&(this.events.onHover.mode=[this.events.onHover.mode,"slow"]))}}class ve{load(t){var e,i;t&&(void 0!==t.position&&(this.position={x:null!==(e=t.position.x)&&void 0!==e?e:50,y:null!==(i=t.position.y)&&void 0!==i?i:50}),void 0!==t.options&&(this.options=L({},t.options)))}}class pe{constructor(){this.factor=4,this.value=!0}load(t){t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.value&&(this.value=t.value))}}class fe{constructor(){this.disable=!1,this.reduce=new pe}load(t){t&&(void 0!==t.disable&&(this.disable=t.disable),this.reduce.load(t.reduce))}}class ye{constructor(){this.count=0,this.enable=!1,this.offset=0,this.speed=1,this.sync=!0}load(t){void 0!==t&&(void 0!==t.count&&(this.count=d(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(this.offset=d(t.offset)),void 0!==t.speed&&(this.speed=d(t.speed)),void 0!==t.sync&&(this.sync=t.sync))}}class me{constructor(){this.h=new ye,this.s=new ye,this.l=new ye}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class be extends Lt{constructor(){super(),this.animation=new me}static create(t,e){const i=new be;return i.load(t),void 0!==e&&("string"==typeof e||e instanceof Array?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))}}class ge{constructor(){this.angle=new we,this.colors=[],this.type="random"}load(t){t&&(this.angle.load(t.angle),void 0!==t.colors&&(this.colors=t.colors.map((t=>{const e=new ke;return e.load(t),e}))),void 0!==t.type&&(this.type=t.type))}}class we{constructor(){this.value=0,this.animation=new ze,this.direction="clockwise"}load(t){t&&(this.animation.load(t.animation),void 0!==t.value&&(this.value=t.value),void 0!==t.direction&&(this.direction=t.direction))}}class xe{constructor(){this.value=0,this.animation=new Me}load(t){t&&(this.animation.load(t.animation),void 0!==t.value&&(this.value=d(t.value)))}}class ke{constructor(){this.stop=0,this.value=new be}load(t){t&&(void 0!==t.stop&&(this.stop=t.stop),this.value=be.create(this.value,t.value),void 0!==t.opacity&&(this.opacity=new xe,"number"==typeof t.opacity?this.opacity.value=t.opacity:this.opacity.load(t.opacity)))}}class ze{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=d(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=d(t.speed)),void 0!==t.sync&&(this.sync=t.sync))}}class Me{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1,this.startValue="random"}load(t){t&&(void 0!==t.count&&(this.count=d(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=d(t.speed)),void 0!==t.sync&&(this.sync=t.sync),void 0!==t.startValue&&(this.startValue=t.startValue))}}class Ce{constructor(){this.enable=!1,this.minimumValue=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.minimumValue&&(this.minimumValue=t.minimumValue))}}class Pe{constructor(){this.random=new Ce,this.value=0}load(t){t&&("boolean"==typeof t.random?this.random.enable=t.random:this.random.load(t.random),void 0!==t.value&&(this.value=d(t.value,this.random.enable?this.random.minimumValue:void 0)))}}class Se extends Pe{constructor(){super(),this.random.minimumValue=.1,this.value=1}}class Te{constructor(){this.horizontal=new Se,this.vertical=new Se}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class Oe{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))}}class Re{constructor(){this.bounce=new Te,this.enable=!1,this.mode="bounce",this.overlap=new Oe}load(t){void 0!==t&&(this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class Ee extends Pe{constructor(){super(),this.value=3}}class Ie extends Pe{constructor(){super(),this.value={min:4,max:9}}}class De{constructor(){this.count=1,this.factor=new Ee,this.rate=new Ie,this.sizeOffset=!0}load(t){t&&(void 0!==t.count&&(this.count=t.count),this.factor.load(t.factor),this.rate.load(t.rate),void 0!==t.particles&&(this.particles=L({},t.particles)),void 0!==t.sizeOffset&&(this.sizeOffset=t.sizeOffset))}}class Ae{constructor(){this.mode="none",this.split=new De}load(t){t&&(void 0!==t.mode&&(this.mode=t.mode),this.split.load(t.split))}}class Le extends Pe{constructor(){super(),this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class qe extends Pe{constructor(){super(),this.random.minimumValue=1e-4,this.sync=!1}load(t){void 0!==t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class He{constructor(){this.count=0,this.delay=new Le,this.duration=new qe}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class Fe{constructor(){this.blur=5,this.color=new Lt,this.enable=!1,this.color.value="#00ff00"}load(t){void 0!==t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=Lt.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable))}}class Ve{constructor(){this.enable=!1,this.frequency=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Lt.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class We{constructor(){this.blink=!1,this.color=new Lt,this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new Fe,this.triangles=new Ve,this.width=1,this.warp=!1}load(t){void 0!==t&&(void 0!==t.id&&(this.id=t.id),void 0!==t.blink&&(this.blink=t.blink),this.color=Lt.create(this.color,t.color),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),void 0!==t.width&&(this.width=t.width),void 0!==t.warp&&(this.warp=t.warp))}}class _e{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}get rotateX(){return this.rotate.x}set rotateX(t){this.rotate.x=t}get rotateY(){return this.rotate.y}set rotateY(t){this.rotate.y=t}load(t){var e,i,o,s;if(!t)return;void 0!==t.distance&&(this.distance=d(t.distance)),void 0!==t.enable&&(this.enable=t.enable);const n=null!==(i=null===(e=t.rotate)||void 0===e?void 0:e.x)&&void 0!==i?i:t.rotateX;void 0!==n&&(this.rotate.x=n);const a=null!==(s=null===(o=t.rotate)||void 0===o?void 0:o.y)&&void 0!==s?s:t.rotateY;void 0!==a&&(this.rotate.y=a)}}class Be{constructor(){this.offset=0,this.value=90}load(t){void 0!==t&&(void 0!==t.offset&&(this.offset=d(t.offset)),void 0!==t.value&&(this.value=d(t.value)))}}class je{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=d(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=d(t.maxSpeed)))}}class $e{constructor(){this.default="out"}load(t){var e,i,o,s;t&&(void 0!==t.default&&(this.default=t.default),this.bottom=null!==(e=t.bottom)&&void 0!==e?e:t.default,this.left=null!==(i=t.left)&&void 0!==i?i:t.default,this.right=null!==(o=t.right)&&void 0!==o?o:t.default,this.top=null!==(s=t.top)&&void 0!==s?s:t.default)}}class Ge extends Pe{constructor(){super()}}class Ue{constructor(){this.clamp=!0,this.delay=new Ge,this.enable=!1,this.options={}}load(t){void 0!==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=L(this.options,t.options)))}}class Ne{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=d(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),this.position=t.position?L({},t.position):void 0)}}class Je{constructor(){this.enable=!1,this.length=10,this.fillColor=new Lt,this.fillColor.value="#000000"}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),this.fillColor=Lt.create(this.fillColor,t.fillColor),void 0!==t.length&&(this.length=t.length))}}class Xe{constructor(){this.angle=new Be,this.attract=new _e,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new je,this.path=new Ue,this.outModes=new $e,this.random=!1,this.size=!1,this.speed=2,this.spin=new Ne,this.straight=!1,this.trail=new Je,this.vibrate=!1,this.warp=!1}get collisions(){return!1}set collisions(t){}get bounce(){return this.collisions}set bounce(t){this.collisions=t}get out_mode(){return this.outMode}set out_mode(t){this.outMode=t}get outMode(){return this.outModes.default}set outMode(t){this.outModes.default=t}get noise(){return this.path}set noise(t){this.path=t}load(t){var e,i,o;if(void 0===t)return;void 0!==t.angle&&("number"==typeof t.angle?this.angle.value=t.angle:this.angle.load(t.angle)),this.attract.load(t.attract),void 0!==t.decay&&(this.decay=t.decay),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance="number"==typeof t.distance?{horizontal:t.distance,vertical:t.distance}:L({},t.distance)),void 0!==t.drift&&(this.drift=d(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const s=null!==(e=t.outMode)&&void 0!==e?e:t.out_mode;void 0===t.outModes&&void 0===s||("string"==typeof t.outModes||void 0===t.outModes&&void 0!==s?this.outModes.load({default:null!==(i=t.outModes)&&void 0!==i?i:s}):this.outModes.load(t.outModes)),this.path.load(null!==(o=t.path)&&void 0!==o?o:t.noise),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=d(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)}}class Ye{constructor(){this.count=0,this.enable=!1,this.speed=1,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=d(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=d(t.speed)),void 0!==t.sync&&(this.sync=t.sync))}}class Qe extends Ye{constructor(){super(),this.destroy="none",this.enable=!1,this.speed=2,this.startValue="random",this.sync=!1}get opacity_min(){return this.minimumValue}set opacity_min(t){this.minimumValue=t}load(t){var e;void 0!==t&&(super.load(t),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.enable&&(this.enable=t.enable),this.minimumValue=null!==(e=t.minimumValue)&&void 0!==e?e:t.opacity_min,void 0!==t.speed&&(this.speed=t.speed),void 0!==t.startValue&&(this.startValue=t.startValue),void 0!==t.sync&&(this.sync=t.sync))}}class Ze extends Pe{constructor(){super(),this.animation=new Qe,this.random.minimumValue=.1,this.value=1}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var e;if(!t)return;super.load(t);const i=null!==(e=t.animation)&&void 0!==e?e:t.anim;void 0!==i&&(this.animation.load(i),this.value=d(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class Ke extends Pe{constructor(){super(),this.value=45,this.random.enable=!1,this.random.minimumValue=0}load(t){void 0!==t&&super.load(t)}}class ti{constructor(){this.animation=new Ye,this.enable=!1,this.opacity=1,this.rotation=new Ke,this.width=1}load(t){void 0!==t&&(this.animation.load(t.animation),this.rotation.load(t.rotation),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.opacity&&(this.opacity=d(t.opacity)),void 0!==t.width&&(this.width=d(t.width)),void 0!==t.radius&&(this.radius=d(t.radius)),void 0!==t.color&&(this.color=Lt.create(this.color,t.color)))}}class ei{constructor(){this.enable=!1,this.area=800,this.factor=1e3}get value_area(){return this.area}set value_area(t){this.area=t}load(t){var e;if(void 0===t)return;void 0!==t.enable&&(this.enable=t.enable);const i=null!==(e=t.area)&&void 0!==e?e:t.value_area;void 0!==i&&(this.area=i),void 0!==t.factor&&(this.factor=t.factor)}}class ii{constructor(){this.density=new ei,this.limit=0,this.value=100}get max(){return this.limit}set max(t){this.limit=t}load(t){var e;if(void 0===t)return;this.density.load(t.density);const i=null!==(e=t.limit)&&void 0!==e?e:t.max;void 0!==i&&(this.limit=i),void 0!==t.value&&(this.value=t.value)}}class oi extends Pe{constructor(){super(),this.enabled=!1,this.distance=1,this.duration=1,this.factor=1,this.speed=1}load(t){super.load(t),t&&(void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.distance&&(this.distance=d(t.distance)),void 0!==t.duration&&(this.duration=d(t.duration)),void 0!==t.factor&&(this.factor=d(t.factor)),void 0!==t.speed&&(this.speed=d(t.speed)))}}class si{constructor(){this.enable=!1,this.value=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.value&&(this.value=d(t.value)))}}class ni{constructor(){this.darken=new si,this.enable=!1,this.enlighten=new si,this.mode="vertical",this.speed=25}load(t){t&&(void 0!==t.backColor&&(this.backColor=Lt.create(this.backColor,t.backColor)),this.darken.load(t.darken),void 0!==t.enable&&(this.enable=t.enable),this.enlighten.load(t.enlighten),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.speed&&(this.speed=d(t.speed)))}}class ai{constructor(){this.enable=!1,this.speed=0,this.sync=!1}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=d(t.speed)),void 0!==t.sync&&(this.sync=t.sync))}}class ri extends Pe{constructor(){super(),this.animation=new ai,this.direction="clockwise",this.path=!1,this.value=0}load(t){t&&(super.load(t),void 0!==t.direction&&(this.direction=t.direction),this.animation.load(t.animation),void 0!==t.path&&(this.path=t.path))}}class li{constructor(){this.blur=0,this.color=new Lt,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000000"}load(t){void 0!==t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=Lt.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)))}}class ci{constructor(){this.options={},this.type="circle"}get image(){var t;return null!==(t=this.options.image)&&void 0!==t?t:this.options.images}set image(t){this.options.image=t,this.options.images=t}get custom(){return this.options}set custom(t){this.options=t}get images(){return this.image}set images(t){this.image=t}get stroke(){return[]}set stroke(t){}get character(){var t;return null!==(t=this.options.character)&&void 0!==t?t:this.options.char}set character(t){this.options.character=t,this.options.char=t}get polygon(){var t;return null!==(t=this.options.polygon)&&void 0!==t?t:this.options.star}set polygon(t){this.options.polygon=t,this.options.star=t}load(t){var e,i,o;if(void 0===t)return;const s=null!==(e=t.options)&&void 0!==e?e:t.custom;if(void 0!==s)for(const t in s){const e=s[t];void 0!==e&&(this.options[t]=L(null!==(i=this.options[t])&&void 0!==i?i:{},e))}this.loadShape(t.character,"character","char",!0),this.loadShape(t.polygon,"polygon","star",!1),this.loadShape(null!==(o=t.image)&&void 0!==o?o:t.images,"image","images",!0),void 0!==t.type&&(this.type=t.type)}loadShape(t,e,i,o){var s,n,a,r;void 0!==t&&(t instanceof Array?(this.options[e]instanceof Array||(this.options[e]=[],this.options[i]&&!o||(this.options[i]=[])),this.options[e]=L(null!==(s=this.options[e])&&void 0!==s?s:[],t),this.options[i]&&!o||(this.options[i]=L(null!==(n=this.options[i])&&void 0!==n?n:[],t))):(this.options[e]instanceof Array&&(this.options[e]={},this.options[i]&&!o||(this.options[i]={})),this.options[e]=L(null!==(a=this.options[e])&&void 0!==a?a:{},t),this.options[i]&&!o||(this.options[i]=L(null!==(r=this.options[i])&&void 0!==r?r:{},t))))}}class di extends Ye{constructor(){super(),this.destroy="none",this.enable=!1,this.speed=5,this.startValue="random",this.sync=!1}get size_min(){return this.minimumValue}set size_min(t){this.minimumValue=t}load(t){var e;void 0!==t&&(super.load(t),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.enable&&(this.enable=t.enable),this.minimumValue=null!==(e=t.minimumValue)&&void 0!==e?e:t.size_min,void 0!==t.speed&&(this.speed=t.speed),void 0!==t.startValue&&(this.startValue=t.startValue),void 0!==t.sync&&(this.sync=t.sync))}}class ui extends Pe{constructor(){super(),this.animation=new di,this.random.minimumValue=1,this.value=3}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var e;if(!t)return;super.load(t);const i=null!==(e=t.animation)&&void 0!==e?e:t.anim;void 0!==i&&(this.animation.load(i),this.value=d(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class hi{constructor(){this.width=0}load(t){void 0!==t&&(void 0!==t.color&&(this.color=be.create(this.color,t.color)),void 0!==t.width&&(this.width=t.width),void 0!==t.opacity&&(this.opacity=t.opacity))}}class vi{constructor(){this.enable=!1,this.speed=0,this.sync=!1}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=d(t.speed)),void 0!==t.sync&&(this.sync=t.sync))}}class pi extends Pe{constructor(){super(),this.animation=new vi,this.direction="clockwise",this.enable=!1,this.value=0}load(t){t&&(super.load(t),this.animation.load(t.animation),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.enable&&(this.enable=t.enable))}}class fi{constructor(){this.enable=!1,this.frequency=.05,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Lt.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=d(t.opacity)))}}class yi{constructor(){this.lines=new fi,this.particles=new fi}load(t){void 0!==t&&(this.lines.load(t.lines),this.particles.load(t.particles))}}class mi{constructor(){this.distance=5,this.enable=!1,this.speed=50}load(t){t&&(void 0!==t.distance&&(this.distance=d(t.distance)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=d(t.speed)))}}class bi extends Pe{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))}}class gi{constructor(){this.bounce=new Te,this.collisions=new Re,this.color=new be,this.destroy=new Ae,this.gradient=[],this.groups={},this.life=new He,this.links=new We,this.move=new Xe,this.number=new ii,this.opacity=new Ze,this.orbit=new ti,this.reduceDuplicates=!1,this.repulse=new oi,this.roll=new ni,this.rotate=new ri,this.shadow=new li,this.shape=new ci,this.size=new ui,this.stroke=new hi,this.tilt=new pi,this.twinkle=new yi,this.wobble=new mi,this.zIndex=new bi}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i,o,s,n,a,r,l;if(void 0===t)return;this.bounce.load(t.bounce),this.color.load(be.create(this.color,t.color)),this.destroy.load(t.destroy),this.life.load(t.life);const c=null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked;if(void 0!==c&&this.links.load(c),void 0!==t.groups)for(const e in t.groups){const i=t.groups[e];void 0!==i&&(this.groups[e]=L(null!==(o=this.groups[e])&&void 0!==o?o:{},i))}this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.orbit.load(t.orbit),void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.repulse.load(t.repulse),this.roll.load(t.roll),this.rotate.load(t.rotate),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.tilt.load(t.tilt),this.twinkle.load(t.twinkle),this.wobble.load(t.wobble),this.zIndex.load(t.zIndex);const d=null!==(n=null===(s=t.move)||void 0===s?void 0:s.collisions)&&void 0!==n?n:null===(a=t.move)||void 0===a?void 0:a.bounce;void 0!==d&&(this.collisions.enable=d),this.collisions.load(t.collisions);const u=null!==(r=t.stroke)&&void 0!==r?r:null===(l=t.shape)||void 0===l?void 0:l.stroke;u&&(u instanceof Array?this.stroke=u.map((t=>{const e=new hi;return e.load(t),e})):(this.stroke instanceof Array&&(this.stroke=new hi),this.stroke.load(u)));const h=t.gradient;h&&(h instanceof Array?this.gradient=h.map((t=>{const e=new ge;return e.load(t),e})):(this.gradient instanceof Array&&(this.gradient=new ge),this.gradient.load(h)))}}class wi{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=L({},t.options)))}}class xi{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))}}class ki{constructor(){this.name="",this.default=new xi}load(t){void 0!==t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=L({},t.options)))}}var zi,Mi,Ci,Pi=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Si=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Ti{constructor(t){zi.add(this),Mi.set(this,void 0),Pi(this,Mi,t,"f"),this.autoPlay=!0,this.background=new qt,this.backgroundMask=new Ft,this.fullScreen=new Vt,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new he,this.manualParticles=[],this.motion=new fe,this.particles=new gi,this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.style={},this.themes=[],this.zLayers=100}get fps_limit(){return this.fpsLimit}set fps_limit(t){this.fpsLimit=t}get retina_detect(){return this.detectRetina}set retina_detect(t){this.detectRetina=t}get backgroundMode(){return this.fullScreen}set backgroundMode(t){this.fullScreen.load(t)}load(t){var e,i,o,s,n;if(void 0===t)return;if(void 0!==t.preset)if(t.preset instanceof Array)for(const e of t.preset)this.importPreset(e);else this.importPreset(t.preset);void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay);const a=null!==(e=t.detectRetina)&&void 0!==e?e:t.retina_detect;void 0!==a&&(this.detectRetina=a),void 0!==t.duration&&(this.duration=t.duration);const r=null!==(i=t.fpsLimit)&&void 0!==i?i:t.fps_limit;void 0!==r&&(this.fpsLimit=r),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 l=null!==(o=t.fullScreen)&&void 0!==o?o:t.backgroundMode;if("boolean"==typeof l?this.fullScreen.enable=l:this.fullScreen.load(l),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),void 0!==t.manualParticles&&(this.manualParticles=t.manualParticles.map((t=>{const e=new ve;return e.load(t),e}))),this.motion.load(t.motion),this.particles.load(t.particles),this.style=L(this.style,t.style),Si(this,Mi,"f").plugins.loadOptions(this,t),void 0!==t.responsive)for(const e of t.responsive){const t=new wi;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=new ki;t.load(e),this.themes.push(t)}this.defaultDarkTheme=null===(s=Si(this,zi,"m",Ci).call(this,"dark"))||void 0===s?void 0:s.name,this.defaultLightTheme=null===(n=Si(this,zi,"m",Ci).call(this,"light"))||void 0===n?void 0:n.name}setTheme(t){if(t){const e=this.themes.find((e=>e.name===t));e&&this.load(e.options)}else{const t="undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)"),e=t&&t.matches,i=Si(this,zi,"m",Ci).call(this,e?"dark":"light");i&&this.load(i.options)}}setResponsive(t,e,i){this.load(i);const o=this.responsive.find((i=>"screen"===i.mode&&screen?i.maxWidth*e>screen.availWidth:i.maxWidth*e>t));return this.load(null==o?void 0:o.options),null==o?void 0:o.maxWidth}importPreset(t){this.load(Si(this,Mi,"f").plugins.getPreset(t))}}Mi=new WeakMap,zi=new WeakSet,Ci=function(t){var e;return null!==(e=this.themes.find((e=>e.default.value&&e.default.mode===t)))&&void 0!==e?e:this.themes.find((t=>t.default.value&&"any"===t.default.mode))};var Oi,Ri=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Ei=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Ii{constructor(t,e){this.container=e,Oi.set(this,void 0),Ri(this,Oi,t,"f"),this.externalInteractors=[],this.particleInteractors=[],this.init()}init(){const t=Ei(this,Oi,"f").plugins.getInteractors(this.container,!0);this.externalInteractors=[],this.particleInteractors=[];for(const e of t)switch(e.type){case 0:this.externalInteractors.push(e);break;case 1:this.particleInteractors.push(e)}}async externalInteract(t){for(const e of this.externalInteractors)e.isEnabled()&&await e.interact(t)}async particlesInteract(t,e){for(const e of this.externalInteractors)e.reset(t);for(const i of this.particleInteractors)i.isEnabled(t)&&await i.interact(t,e)}handleClickMode(t){for(const e of this.externalInteractors)e.handleClickMode&&e.handleClickMode(t)}}Oi=new WeakMap;class Di extends o{constructor(t,e,i){if(super(t,e),"number"!=typeof t&&t)this.z=t.z;else{if(void 0===i)throw new Error("tsParticles - Vector not initialized correctly");this.z=i}}static clone(t){return Di.create(t.x,t.y,t.z)}static create(t,e,i){return new Di(t,e,i)}static get origin(){return Di.create(0,0,0)}add(t){return t instanceof Di?Di.create(this.x+t.x,this.y+t.y,this.z+t.z):super.add(t)}addTo(t){super.addTo(t),t instanceof Di&&(this.z+=t.z)}sub(t){return t instanceof Di?Di.create(this.x-t.x,this.y-t.y,this.z-t.z):super.sub(t)}subFrom(t){super.subFrom(t),t instanceof Di&&(this.z-=t.z)}mult(t){return Di.create(this.x*t,this.y*t,this.z*t)}multTo(t){super.multTo(t),this.z*=t}div(t){return Di.create(this.x/t,this.y/t,this.z/t)}divTo(t){super.divTo(t),this.z/=t}copy(){return Di.clone(this)}setTo(t){super.setTo(t);const e=t;void 0!==e.z&&(this.z=e.z)}}var Ai,Li=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},qi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};const Hi=t=>{(T(t.outMode,t.checkModes)||T(t.outMode,t.checkModes))&&(t.coord>t.maxCoord-2*t.radius?t.setCb(-t.radius):t.coord<2*t.radius&&t.setCb(t.radius))};class Fi{constructor(t,e,i,n,d,h){var v,f,y,m,b,g,w;this.id=e,this.container=i,this.group=h,Ai.set(this,void 0),Li(this,Ai,t,"f"),this.fill=!0,this.close=!0,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.splitCount=0,this.misplaced=!1,this.retina={maxDistance:{}},this.ignoresResizeRatio=!0;const x=i.retina.pixelRatio,k=i.actualOptions,z=new gi;z.load(k.particles);const M=z.shape.type,C=z.reduceDuplicates;if(this.shape=M instanceof Array?E(M,this.id,C):M,null==d?void 0:d.shape){if(d.shape.type){const t=d.shape.type;this.shape=t instanceof Array?E(t,this.id,C):t}const t=new ci;t.load(d.shape),this.shape&&(this.shapeData=this.loadShapeData(t,C))}else this.shapeData=this.loadShapeData(z.shape,C);void 0!==d&&z.load(d),void 0!==(null===(v=this.shapeData)||void 0===v?void 0:v.particles)&&z.load(null===(f=this.shapeData)||void 0===f?void 0:f.particles),this.fill=null!==(m=null===(y=this.shapeData)||void 0===y?void 0:y.fill)&&void 0!==m?m:this.fill,this.close=null!==(g=null===(b=this.shapeData)||void 0===b?void 0:b.close)&&void 0!==g?g:this.close,this.options=z,this.pathDelay=1e3*u(this.options.move.path.delay);const P=r(this.options.zIndex.value);i.retina.initParticle(this);const S=this.options.size,T=S.value;this.size={enable:S.animation.enable,value:u(S)*i.retina.pixelRatio,max:c(T)*x,min:l(T)*x,loops:0,maxLoops:r(S.animation.count)};const O=S.animation;if(O.enable){switch(this.size.status=0,O.startValue){case"min":this.size.value=this.size.min,this.size.status=0;break;case"random":this.size.value=a(this.size)*x,this.size.status=Math.random()>=.5?0:1;break;case"max":default:this.size.value=this.size.max,this.size.status=1}this.size.velocity=(null!==(w=this.retina.sizeAnimationSpeed)&&void 0!==w?w:i.retina.sizeAnimationSpeed)/100*i.retina.reduceFactor,O.sync||(this.size.velocity*=Math.random())}this.direction=p(this.options.move.direction),this.bubble={inRange:!1},this.initialVelocity=this.calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-r(this.options.move.decay);const R=this.options.move.gravity;this.gravity={enable:R.enable,acceleration:r(R.acceleration),inverse:R.inverse},this.position=this.calcPosition(i,n,s(P,0,i.zLayers)),this.initialPosition=this.position.copy(),this.offset=o.origin;const I=i.particles;I.needsSort=I.needsSort||I.lastZIndex<this.position.z,I.lastZIndex=this.position.z,this.zIndexFactor=this.position.z/i.zLayers,this.sides=24;let D=i.drawers.get(this.shape);D||(D=qi(this,Ai,"f").plugins.getShapeDrawer(this.shape),D&&i.drawers.set(this.shape,D)),(null==D?void 0:D.loadShape)&&(null==D||D.loadShape(this));const A=null==D?void 0:D.getSidesCount;A&&(this.sides=A(this)),this.life=this.loadLife(),this.spawning=this.life.delay>0,this.shadowColor=G(this.options.shadow.color);for(const t of i.particles.updaters)t.init&&t.init(this);D&&D.particleInit&&D.particleInit(i,this);for(const[,t]of i.plugins)t.particleCreated&&t.particleCreated(this)}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}isInsideCanvas(){const t=this.getRadius(),e=this.container.canvas.size;return this.position.x>=-t&&this.position.y>=-t&&this.position.y<=e.height+t&&this.position.x<=e.width+t}draw(t){const e=this.container;for(const[,i]of e.plugins)e.canvas.drawParticlePlugin(i,this,t);e.canvas.drawParticle(this,t)}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){var t;return null!==(t=this.bubble.radius)&&void 0!==t?t:this.size.value}getMass(){return this.getRadius()**2*Math.PI/2}getFillColor(){var t,e;const i=null!==(t=this.bubble.color)&&void 0!==t?t:vt(this.color);if(i&&this.roll&&(this.backColor||this.roll.alter)){const t="both"===this.options.roll.mode?2:1,o="horizontal"===this.options.roll.mode?Math.PI/2:0;if(Math.floor(((null!==(e=this.roll.angle)&&void 0!==e?e:0)+o)/(Math.PI/t))%2){if(this.backColor)return this.backColor;if(this.roll.alter)return Rt(i,this.roll.alter.type,this.roll.alter.value)}}return i}getStrokeColor(){var t,e;return null!==(e=null!==(t=this.bubble.color)&&void 0!==t?t:vt(this.strokeColor))&&void 0!==e?e:this.getFillColor()}destroy(t){if(this.destroyed=!0,this.bubble.inRange=!1,this.unbreakable)return;this.destroyed=!0,this.bubble.inRange=!1;for(const[,e]of this.container.plugins)e.particleDestroyed&&e.particleDestroyed(this,t);if(t)return;"split"===this.options.destroy.mode&&this.split()}reset(){this.opacity&&(this.opacity.loops=0),this.size.loops=0}split(){const t=this.options.destroy.split;if(t.count>=0&&this.splitCount++>t.count)return;const e=r(t.rate.value);for(let t=0;t<e;t++)this.container.particles.addSplitParticle(this)}calcPosition(t,e,i,o=0){var s,n,a,r;for(const[,o]of t.plugins){const t=void 0!==o.particlePosition?o.particlePosition(e,this):void 0;if(void 0!==t)return Di.create(t.x,t.y,i)}const l=x({size:t.canvas.size,position:e}),c=Di.create(l.x,l.y,i),d=this.getRadius(),u=this.options.move.outModes,h=e=>{Hi({outMode:e,checkModes:["bounce","bounce-horizontal"],coord:c.x,maxCoord:t.canvas.size.width,setCb:t=>c.x+=t,radius:d})},v=e=>{Hi({outMode:e,checkModes:["bounce","bounce-vertical"],coord:c.y,maxCoord:t.canvas.size.height,setCb:t=>c.y+=t,radius:d})};return h(null!==(s=u.left)&&void 0!==s?s:u.default),h(null!==(n=u.right)&&void 0!==n?n:u.default),v(null!==(a=u.top)&&void 0!==a?a:u.default),v(null!==(r=u.bottom)&&void 0!==r?r:u.default),this.checkOverlap(c,o)?this.calcPosition(t,void 0,i,o+1):c}checkOverlap(t,e=0){const i=this.options.collisions,o=this.getRadius();if(!i.enable)return!1;const s=i.overlap;if(s.enable)return!1;const n=s.retries;if(n>=0&&e>n)throw new Error("Particle is overlapping and can't be placed");let a=!1;for(const e of this.container.particles.array)if(v(t,e.position)<o+e.getRadius()){a=!0;break}return a}calculateVelocity(){const t=f(this.direction).copy(),e=this.options.move,i=Math.PI/180*r(e.angle.value),o=Math.PI/180*r(e.angle.offset),s={left:o-i/2,right:o+i/2};return e.straight||(t.angle+=a(d(s.left,s.right))),e.random&&"number"==typeof e.speed&&(t.length*=Math.random()),t}loadShapeData(t,e){const i=t.options[this.shape];if(i)return L({},i instanceof Array?E(i,this.id,e):i)}loadLife(){const t=this.container,e=this.options,i=e.life,o={delay:t.retina.reduceFactor?r(i.delay.value)*(i.delay.sync?1:Math.random())/t.retina.reduceFactor*1e3:0,delayTime:0,duration:t.retina.reduceFactor?r(i.duration.value)*(i.duration.sync?1:Math.random())/t.retina.reduceFactor*1e3:0,time:0,count:e.life.count};return o.duration<=0&&(o.duration=-1),o.count<=0&&(o.count=-1),o}}Ai=new WeakMap;class Vi{constructor(t,e){this.position=t,this.particle=e}}class Wi{constructor(t,e){this.position={x:t,y:e}}}class _i extends Wi{constructor(t,e,i){super(t,e),this.radius=i}contains(t){return v(t,this.position)<=this.radius}intersects(t){const e=t,i=t,o=this.position,s=t.position,n=Math.abs(s.x-o.x),a=Math.abs(s.y-o.y),r=this.radius;if(void 0!==i.radius){return r+i.radius>Math.sqrt(n*n+a+a)}if(void 0!==e.size){const t=e.size.width,i=e.size.height,o=Math.pow(n-t,2)+Math.pow(a-i,2);return!(n>r+t||a>r+i)&&(n<=t||a<=i||o<=r*r)}return!1}}class Bi extends Wi{constructor(t,e,i,o){super(t,e),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){const e=t,i=t,o=this.size.width,s=this.size.height,n=this.position,a=t.position;if(void 0!==i.radius)return i.intersects(this);if(!e.size)return!1;const r=e.size,l=r.width,c=r.height;return a.x<n.x+o&&a.x+l>n.x&&a.y<n.y+s&&a.y+c>n.y}}class ji extends _i{constructor(t,e,i,o){super(t,e,i),this.canvasSize=o,this.canvasSize=Object.assign({},o)}contains(t){if(super.contains(t))return!0;const e={x:t.x-this.canvasSize.width,y:t.y};if(super.contains(e))return!0;const i={x:t.x-this.canvasSize.width,y:t.y-this.canvasSize.height};if(super.contains(i))return!0;const o={x:t.x,y:t.y-this.canvasSize.height};return super.contains(o)}intersects(t){if(super.intersects(t))return!0;const e=t,i=t,o={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==i.radius){const t=new _i(o.x,o.y,2*i.radius);return super.intersects(t)}if(void 0!==e.size){const t=new Bi(o.x,o.y,2*e.size.width,2*e.size.height);return super.intersects(t)}return!1}}class $i{constructor(t,e){this.rectangle=t,this.capacity=e,this.points=[],this.divided=!1}insert(t){var e,i,o,s,n;return!!this.rectangle.contains(t.position)&&(this.points.length<this.capacity?(this.points.push(t),!0):(this.divided||this.subdivide(),null!==(n=(null===(e=this.northEast)||void 0===e?void 0:e.insert(t))||(null===(i=this.northWest)||void 0===i?void 0:i.insert(t))||(null===(o=this.southEast)||void 0===o?void 0:o.insert(t))||(null===(s=this.southWest)||void 0===s?void 0:s.insert(t)))&&void 0!==n&&n))}queryCircle(t,e){return this.query(new _i(t.x,t.y,e))}queryCircleWarp(t,e,i){const o=i,s=i;return this.query(new ji(t.x,t.y,e,void 0!==o.canvas?o.canvas.size:s))}queryRectangle(t,e){return this.query(new Bi(t.x,t.y,e.width,e.height))}query(t,e){var i,o,s,n;const a=null!=e?e:[];if(!t.intersects(this.rectangle))return[];for(const e of this.points)!t.contains(e.position)&&v(t.position,e.position)>e.particle.getRadius()||a.push(e.particle);return this.divided&&(null===(i=this.northEast)||void 0===i||i.query(t,a),null===(o=this.northWest)||void 0===o||o.query(t,a),null===(s=this.southEast)||void 0===s||s.query(t,a),null===(n=this.southWest)||void 0===n||n.query(t,a)),a}subdivide(){const t=this.rectangle.position.x,e=this.rectangle.position.y,i=this.rectangle.size.width,o=this.rectangle.size.height,s=this.capacity;this.northEast=new $i(new Bi(t,e,i/2,o/2),s),this.northWest=new $i(new Bi(t+i/2,e,i/2,o/2),s),this.southEast=new $i(new Bi(t,e+o/2,i/2,o/2),s),this.southWest=new $i(new Bi(t+i/2,e+o/2,i/2,o/2),s),this.divided=!0}}var Gi,Ui=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Ni=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Ji{constructor(t,e){this.container=e,Gi.set(this,void 0),Ui(this,Gi,t,"f"),this.nextId=0,this.array=[],this.zArray=[],this.limit=0,this.needsSort=!1,this.lastZIndex=0,this.freqs={links:new Map,triangles:new Map},this.interactionManager=new Ii(Ni(this,Gi,"f"),e);const i=this.container.canvas.size;this.linksColors=new Map,this.quadTree=new $i(new Bi(-i.width/4,-i.height/4,3*i.width/2,3*i.height/2),4),this.movers=Ni(this,Gi,"f").plugins.getMovers(e,!0),this.updaters=Ni(this,Gi,"f").plugins.getUpdaters(e,!0)}get count(){return this.array.length}init(){var t;const e=this.container,i=e.actualOptions;this.lastZIndex=0,this.needsSort=!1,this.freqs.links=new Map,this.freqs.triangles=new Map;let o=!1;this.updaters=Ni(this,Gi,"f").plugins.getUpdaters(e,!0),this.interactionManager.init();for(const[,t]of e.plugins)if(void 0!==t.particlesInitialization&&(o=t.particlesInitialization()),o)break;if(this.addManualParticles(),!o){for(const e in i.particles.groups){const o=i.particles.groups[e];for(let s=this.count,n=0;n<(null===(t=o.number)||void 0===t?void 0:t.value)&&s<i.particles.number.value;s++,n++)this.addParticle(void 0,o,e)}for(let t=this.count;t<i.particles.number.value;t++)this.addParticle()}e.pathGenerator.init(e)}async redraw(){this.clear(),this.init(),await this.draw({value:0,factor:0})}removeAt(t,e=1,i,o){if(!(t>=0&&t<=this.count))return;let s=0;for(let n=t;s<e&&n<this.count;n++){const t=this.array[n];if(!t||t.group!==i)continue;t.destroy(o),this.array.splice(n--,1);const e=this.zArray.indexOf(t);this.zArray.splice(e,1),s++}}remove(t,e,i){this.removeAt(this.array.indexOf(t),void 0,e,i)}async update(t){const e=this.container,i=[];e.pathGenerator.update();for(const[,i]of e.plugins)void 0!==i.update&&i.update(t);for(const o of this.array){const s=e.canvas.resizeFactor;s&&!o.ignoresResizeRatio&&(o.position.x*=s.width,o.position.y*=s.height),o.ignoresResizeRatio=!1,o.bubble.inRange=!1;for(const[,e]of this.container.plugins){if(o.destroyed)break;e.particleUpdate&&e.particleUpdate(o,t)}for(const e of this.movers)e.isEnabled(o)&&e.move(o,t);o.destroyed?i.push(o):this.quadTree.insert(new Vi(o.getPosition(),o))}for(const t of i)this.remove(t);await this.interactionManager.externalInteract(t);for(const i of e.particles.array){for(const e of this.updaters)e.update(i,t);i.destroyed||i.spawning||await this.interactionManager.particlesInteract(i,t)}delete e.canvas.resizeFactor}async draw(t){const e=this.container,i=this.container.canvas.size;this.quadTree=new $i(new Bi(-i.width/4,-i.height/4,3*i.width/2,3*i.height/2),4),e.canvas.clear(),await this.update(t),this.needsSort&&(this.zArray.sort(((t,e)=>e.position.z-t.position.z||t.id-e.id)),this.lastZIndex=this.zArray[this.zArray.length-1].position.z,this.needsSort=!1);for(const[,i]of e.plugins)e.canvas.drawPlugin(i,t);for(const e of this.zArray)e.draw(t)}clear(){this.array=[],this.zArray=[]}push(t,e,i,o){this.pushing=!0;for(let s=0;s<t;s++)this.addParticle(null==e?void 0:e.position,i,o);this.pushing=!1}addParticle(t,e,i){const o=this.container,s=o.actualOptions.particles.number.limit*o.density;if(s>0){const t=this.count+1-s;t>0&&this.removeQuantity(t)}return this.pushParticle(t,e,i)}addSplitParticle(t){const e=t.options.destroy.split,i=new gi;i.load(t.options);const o=r(e.factor.value);i.color.load({value:{hsl:t.getFillColor()}}),"number"==typeof i.size.value?i.size.value/=o:(i.size.value.min/=o,i.size.value.max/=o),i.load(e.particles);const s=e.sizeOffset?d(-t.size.value,t.size.value):0,n={x:t.position.x+a(s),y:t.position.y+a(s)};return this.pushParticle(n,i,t.group,(e=>!(e.size.value<.5)&&(e.velocity.length=a(d(t.velocity.length,e.velocity.length)),e.splitCount=t.splitCount+1,e.unbreakable=!0,setTimeout((()=>{e.unbreakable=!1}),500),!0)))}removeQuantity(t,e){this.removeAt(0,t,e)}getLinkFrequency(t,e){const i=d(t.id,e.id),o=`${l(i)}_${c(i)}`;let s=this.freqs.links.get(o);return void 0===s&&(s=Math.random(),this.freqs.links.set(o,s)),s}getTriangleFrequency(t,e,i){let[o,s,n]=[t.id,e.id,i.id];o>s&&([s,o]=[o,s]),s>n&&([n,s]=[s,n]),o>n&&([n,o]=[o,n]);const a=`${o}_${s}_${n}`;let r=this.freqs.triangles.get(a);return void 0===r&&(r=Math.random(),this.freqs.triangles.set(a,r)),r}addManualParticles(){const t=this.container,e=t.actualOptions;for(const i of e.manualParticles)this.addParticle(b({size:t.canvas.size,position:i.position}),i.options)}setDensity(){const t=this.container.actualOptions;for(const e in t.particles.groups)this.applyDensity(t.particles.groups[e],0,e);this.applyDensity(t.particles,t.manualParticles.length)}handleClickMode(t){this.interactionManager.handleClickMode(t)}applyDensity(t,e,i){var o;if(!(null===(o=t.number.density)||void 0===o?void 0:o.enable))return;const s=t.number,n=this.initDensityFactor(s.density),a=s.value,r=s.limit>0?s.limit:a,l=Math.min(a,r)*n+e,c=Math.min(this.count,this.array.filter((t=>t.group===i)).length);this.limit=s.limit*n,c<l?this.push(Math.abs(l-c),void 0,t,i):c>l&&this.removeQuantity(c-l,i)}initDensityFactor(t){const e=this.container;if(!e.canvas.element||!t.enable)return 1;const i=e.canvas.element,o=e.retina.pixelRatio;return i.width*i.height/(t.factor*o**2*t.area)}pushParticle(t,e,i,o){try{const s=new Fi(Ni(this,Gi,"f"),this.nextId,this.container,t,e,i);let n=!0;if(o&&(n=o(s)),!n)return;return this.array.push(s),this.zArray.push(s),this.nextId++,s}catch(t){return void console.warn(`error adding particle: ${t}`)}}}Gi=new WeakMap;class Xi{constructor(t){this.container=t}init(){const t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||C()?1:window.devicePixelRatio;const i=this.container.actualOptions.motion;if(i&&(i.disable||i.reduce.value))if(C()||"undefined"==typeof matchMedia||!matchMedia)this.reduceFactor=1;else{const e=matchMedia("(prefers-reduced-motion: reduce)");if(e){this.handleMotionChange(e);const i=()=>{this.handleMotionChange(e),t.refresh().catch((()=>{}))};void 0!==e.addEventListener?e.addEventListener("change",i):void 0!==e.addListener&&e.addListener(i)}}else this.reduceFactor=1;const o=this.pixelRatio;if(t.canvas.element){const e=t.canvas.element;t.canvas.size.width=e.offsetWidth*o,t.canvas.size.height=e.offsetHeight*o}const s=e.particles;this.attractDistance=r(s.move.attract.distance)*o,this.linksDistance=s.links.distance*o,this.linksWidth=s.links.width*o,this.sizeAnimationSpeed=r(s.size.animation.speed)*o,this.maxSpeed=r(s.move.gravity.maxSpeed)*o;const n=e.interactivity.modes;this.connectModeDistance=n.connect.distance*o,this.connectModeRadius=n.connect.radius*o,this.grabModeDistance=n.grab.distance*o,this.repulseModeDistance=n.repulse.distance*o,this.bounceModeDistance=n.bounce.distance*o,this.attractModeDistance=n.attract.distance*o,this.slowModeRadius=n.slow.radius*o,this.bubbleModeDistance=n.bubble.distance*o,n.bubble.size&&(this.bubbleModeSize=n.bubble.size*o)}initParticle(t){const e=t.options,i=this.pixelRatio,o=e.move.distance,s=t.retina;s.attractDistance=r(e.move.attract.distance)*i,s.linksDistance=e.links.distance*i,s.linksWidth=e.links.width*i,s.moveDrift=r(e.move.drift)*i,s.moveSpeed=r(e.move.speed)*i,s.sizeAnimationSpeed=r(e.size.animation.speed)*i;const n=s.maxDistance;n.horizontal=void 0!==o.horizontal?o.horizontal*i:void 0,n.vertical=void 0!==o.vertical?o.vertical*i:void 0,s.maxSpeed=r(e.move.gravity.maxSpeed)*i}handleMotionChange(t){const e=this.container.actualOptions;if(t.matches){const t=e.motion;this.reduceFactor=t.disable?0:t.reduce.value?1/t.reduce.factor:1}else this.reduceFactor=1}}var Yi,Qi=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Zi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Ki{constructor(t,e,i,...s){this.id=e,Yi.set(this,void 0),Qi(this,Yi,t,"f"),this.fpsLimit=120,this.duration=0,this.lifeTime=0,this.firstStart=!0,this.started=!1,this.destroyed=!1,this.paused=!0,this.lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new Xi(this),this.canvas=new Et(this),this.particles=new Ji(Zi(this,Yi,"f"),this),this.drawer=new At(this),this.presets=s,this.pathGenerator={generate:()=>{const t=o.create(0,0);return t.length=Math.random(),t.angle=Math.random()*Math.PI*2,t},init:()=>{},update:()=>{}},this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.drawers=new Map,this.density=1,this._options=new Ti(Zi(this,Yi,"f")),this.actualOptions=new Ti(Zi(this,Yi,"f")),this.eventListeners=new Dt(this),"undefined"!=typeof IntersectionObserver&&IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver((t=>this.intersectionManager(t))))}get options(){return this._options}get sourceOptions(){return this._sourceOptions}play(t){const e=this.paused||t;if(!this.firstStart||this.actualOptions.autoPlay){if(this.paused&&(this.paused=!1),e)for(const[,t]of this.plugins)t.play&&t.play();this.draw(e||!1)}else this.firstStart=!1}pause(){if(void 0!==this.drawAnimationFrame&&(S()(this.drawAnimationFrame),delete this.drawAnimationFrame),!this.paused){for(const[,t]of this.plugins)t.pause&&t.pause();this.pageHidden||(this.paused=!0)}}draw(t){let e=t;this.drawAnimationFrame=P()((async t=>{e&&(this.lastFrameTime=void 0,e=!1),await this.drawer.nextFrame(t)}))}getAnimationStatus(){return!this.paused&&!this.pageHidden}setNoise(t,e,i){this.setPath(t,e,i)}setPath(t,e,i){var o,s,n;if(t)if("function"==typeof t)this.pathGenerator.generate=t,e&&(this.pathGenerator.init=e),i&&(this.pathGenerator.update=i);else{const e=this.pathGenerator;this.pathGenerator=t,(o=this.pathGenerator).generate||(o.generate=e.generate),(s=this.pathGenerator).init||(s.init=e.init),(n=this.pathGenerator).update||(n.update=e.update)}}destroy(){this.stop(),this.canvas.destroy();for(const[,t]of this.drawers)t.destroy&&t.destroy(this);for(const t of this.drawers.keys())this.drawers.delete(t);this.destroyed=!0}exportImg(t){this.exportImage(t)}exportImage(t,e,i){var o;return null===(o=this.canvas.element)||void 0===o?void 0:o.toBlob(t,null!=e?e:"image/png",i)}exportConfiguration(){return JSON.stringify(this.actualOptions,void 0,2)}refresh(){return this.stop(),this.start()}reset(){return this._options=new Ti(Zi(this,Yi,"f")),this.refresh()}stop(){if(this.started){this.firstStart=!0,this.started=!1,this.eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.clear(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.unobserve(this.interactivity.element);for(const[,t]of this.plugins)t.stop&&t.stop();for(const t of this.plugins.keys())this.plugins.delete(t);this.particles.linksColors=new Map,delete this.particles.grabLineColor,delete this.particles.linksColor,this._sourceOptions=this._options}}async loadTheme(t){this.currentTheme=t,await this.refresh()}async start(){if(!this.started){await this.init(),this.started=!0,this.eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.observe(this.interactivity.element);for(const[,t]of this.plugins)void 0!==t.startAsync?await t.startAsync():void 0!==t.start&&t.start();this.play()}}addClickHandler(t){const e=this.interactivity.element;if(!e)return;const i=(e,i,o)=>{if(this.destroyed)return;const s=this.retina.pixelRatio,n={x:i.x*s,y:i.y*s},a=this.particles.quadTree.queryCircle(n,o*s);t(e,a)};let o=!1,s=!1;e.addEventListener("click",(t=>{if(this.destroyed)return;const e=t,o={x:e.offsetX||e.clientX,y:e.offsetY||e.clientY};i(t,o,1)})),e.addEventListener("touchstart",(()=>{this.destroyed||(o=!0,s=!1)})),e.addEventListener("touchmove",(()=>{this.destroyed||(s=!0)})),e.addEventListener("touchend",(t=>{var e,n,a;if(!this.destroyed){if(o&&!s){const o=t;let s=o.touches[o.touches.length-1];if(!s&&(s=o.changedTouches[o.changedTouches.length-1],!s))return;const r=null===(e=this.canvas.element)||void 0===e?void 0:e.getBoundingClientRect(),l={x:s.clientX-(null!==(n=null==r?void 0:r.left)&&void 0!==n?n:0),y:s.clientY-(null!==(a=null==r?void 0:r.top)&&void 0!==a?a:0)};i(t,l,Math.max(s.radiusX,s.radiusY))}o=!1,s=!1}})),e.addEventListener("touchcancel",(()=>{this.destroyed||(o=!1,s=!1)}))}handleClickMode(t){this.particles.handleClickMode(t);for(const[,e]of this.plugins)e.handleClickMode&&e.handleClickMode(t)}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this.currentTheme),this.responsiveMaxWidth!=t&&(this.responsiveMaxWidth=t,!0)}async init(){this._options=new Ti(Zi(this,Yi,"f"));for(const t of this.presets)this._options.load(Zi(this,Yi,"f").plugins.getPreset(t));const t=Zi(this,Yi,"f").plugins.getSupportedShapes();for(const e of t){const t=Zi(this,Yi,"f").plugins.getShapeDrawer(e);t&&this.drawers.set(e,t)}this._options.load(this._initialSourceOptions),this._options.load(this._sourceOptions),this.actualOptions=new Ti(Zi(this,Yi,"f")),this.actualOptions.load(this._options),this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this.duration=r(this.actualOptions.duration),this.lifeTime=0,this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120;const e=Zi(this,Yi,"f").plugins.getAvailablePlugins(this);for(const[t,i]of e)this.plugins.set(t,i);for(const[,t]of this.drawers)t.init&&await t.init(this);for(const[,t]of this.plugins)t.init?t.init(this.actualOptions):void 0!==t.initAsync&&await t.initAsync(this.actualOptions);const i=this.actualOptions.particles.move.path;i.generator&&this.setPath(Zi(this,Yi,"f").plugins.getPathGenerator(i.generator)),this.particles.init(),this.particles.setDensity();for(const[,t]of this.plugins)void 0!==t.particlesSetup&&t.particlesSetup()}intersectionManager(t){if(this.actualOptions.pauseOnOutsideViewport)for(const e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play():this.pause())}}Yi=new WeakMap;var to,eo=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},io=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class oo{constructor(t){to.set(this,void 0),eo(this,to,t,"f")}dom(){return io(this,to,"f").domArray}domItem(t){const e=this.dom(),i=e[t];if(i&&!i.destroyed)return i;e.splice(t,1)}async loadOptions(t){var e,o,s;const n=null!==(e=t.tagId)&&void 0!==e?e:`tsparticles${Math.floor(1e4*Math.random())}`,{options:a,index:r}=t;let l=null!==(o=t.element)&&void 0!==o?o:document.getElementById(n);l||(l=document.createElement("div"),l.id=n,null===(s=document.querySelector("body"))||void 0===s||s.append(l));const c=a instanceof Array?E(a,r):a,d=this.dom(),u=d.findIndex((t=>t.id===n));if(u>=0){const t=this.domItem(u);t&&!t.destroyed&&(t.destroy(),d.splice(u,1))}let h;if("canvas"===l.tagName.toLowerCase())h=l,h.dataset[i.generatedAttribute]="false";else{const t=l.getElementsByTagName("canvas");t.length?(h=t[0],h.dataset[i.generatedAttribute]="false"):(h=document.createElement("canvas"),h.dataset[i.generatedAttribute]="true",h.style.width="100%",h.style.height="100%",l.appendChild(h))}const v=new Ki(io(this,to,"f"),n,c);return u>=0?d.splice(u,0,v):d.push(v),v.canvas.loadCanvas(h),await v.start(),v}async loadRemoteOptions(t){const{url:e,index:i}=t,o=e instanceof Array?E(e,i):e;if(!o)return;const s=await fetch(o);if(!s.ok)return n=s.status,console.error(`Error tsParticles - fetch status: ${n}`),void console.error("Error tsParticles - File config not found");var n;const a=await s.json();return this.loadOptions({tagId:t.tagId,element:t.element,index:i,options:a})}load(t,e,i){const o={index:i};return"string"==typeof t?o.tagId=t:o.options=t,"number"==typeof e?o.index=null!=e?e:o.index:o.options=null!=e?e:o.options,this.loadOptions(o)}async set(t,e,i,o){const s={index:o};return"string"==typeof t?s.tagId=t:s.element=t,e instanceof HTMLElement?s.element=e:s.options=e,"number"==typeof i?s.index=i:s.options=null!=i?i:s.options,this.loadOptions(s)}async loadJSON(t,e,i){let o,s;return"number"==typeof e||void 0===e?o=t:(s=t,o=e),this.loadRemoteOptions({tagId:s,url:o,index:i})}async setJSON(t,e,i,o){let s,n,a,r;return t instanceof HTMLElement?(r=t,s=e,a=i):(n=t,r=e,s=i,a=o),this.loadRemoteOptions({tagId:n,url:s,index:a,element:r})}setOnClickHandler(t){const e=this.dom();if(!e.length)throw new Error("Can only set click handlers after calling tsParticles.load() or tsParticles.loadJSON()");for(const i of e)i.addClickHandler(t)}}to=new WeakMap;var so,no=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i};class ao{constructor(t){so.set(this,void 0),no(this,so,t,"f"),this.plugins=[],this.interactorsInitializers=new Map,this.moversInitializers=new Map,this.updatersInitializers=new Map,this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.drawers=new Map,this.pathGenerators=new Map}getPlugin(t){return this.plugins.find((e=>e.id===t))}addPlugin(t){this.getPlugin(t.id)||this.plugins.push(t)}getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,i.getPlugin(t));return e}loadOptions(t,e){for(const i of this.plugins)i.loadOptions(t,e)}getPreset(t){return this.presets.get(t)}addPreset(t,e,i=!1){!i&&this.getPreset(t)||this.presets.set(t,e)}getShapeDrawer(t){return this.drawers.get(t)}addShapeDrawer(t,e){this.getShapeDrawer(t)||this.drawers.set(t,e)}getSupportedShapes(){return this.drawers.keys()}getPathGenerator(t){return this.pathGenerators.get(t)}addPathGenerator(t,e){this.getPathGenerator(t)||this.pathGenerators.set(t,e)}getInteractors(t,e=!1){let i=this.interactors.get(t);return i&&!e||(i=[...this.interactorsInitializers.values()].map((e=>e(t))),this.interactors.set(t,i)),i}addInteractor(t,e){this.interactorsInitializers.set(t,e)}getUpdaters(t,e=!1){let i=this.updaters.get(t);return i&&!e||(i=[...this.updatersInitializers.values()].map((e=>e(t))),this.updaters.set(t,i)),i}addParticleUpdater(t,e){this.updatersInitializers.set(t,e)}getMovers(t,e=!1){let i=this.movers.get(t);return i&&!e||(i=[...this.moversInitializers.values()].map((e=>e(t))),this.movers.set(t,i)),i}addParticleMover(t,e){this.moversInitializers.set(t,e)}}so=new WeakMap;var ro,lo,co=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},uo=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class ho{constructor(){ro.set(this,void 0),lo.set(this,void 0),co(this,ro,!1,"f"),this.domArray=[],co(this,lo,new oo(this),"f"),this.plugins=new ao(this)}init(){uo(this,ro,"f")||co(this,ro,!0,"f")}async loadFromArray(t,e,i){return uo(this,lo,"f").load(t,e,i)}async load(t,e){return uo(this,lo,"f").load(t,e)}async set(t,e,i){return uo(this,lo,"f").set(t,e,i)}async loadJSON(t,e,i){return uo(this,lo,"f").loadJSON(t,e,i)}async setJSON(t,e,i,o){return uo(this,lo,"f").setJSON(t,e,i,o)}setOnClickHandler(t){uo(this,lo,"f").setOnClickHandler(t)}dom(){return uo(this,lo,"f").dom()}domItem(t){return uo(this,lo,"f").domItem(t)}async refresh(){for(const t of this.dom())await t.refresh()}async addShape(t,e,i,o,s){let n;n="function"==typeof e?{afterEffect:o,destroy:s,draw:e,init:i}:e,this.plugins.addShapeDrawer(t,n),await this.refresh()}async addPreset(t,e,i=!1){this.plugins.addPreset(t,e,i),await this.refresh()}async addPlugin(t){this.plugins.addPlugin(t),await this.refresh()}async addPathGenerator(t,e){this.plugins.addPathGenerator(t,e),await this.refresh()}async addInteractor(t,e){this.plugins.addInteractor(t,e),await this.refresh()}async addMover(t,e){this.plugins.addParticleMover(t,e),await this.refresh()}async addParticleUpdater(t,e){this.plugins.addParticleUpdater(t,e),await this.refresh()}}ro=new WeakMap,lo=new WeakMap;class vo{constructor(t){this.container=t}init(t){const e=t.options.rotate;t.rotate={enable:e.animation.enable,value:r(e.value)*Math.PI/180};let i=e.direction;if("random"===i){i=Math.floor(2*Math.random())>0?"counter-clockwise":"clockwise"}switch(i){case"counter-clockwise":case"counterClockwise":t.rotate.status=1;break;case"clockwise":t.rotate.status=0}const o=t.options.rotate.animation;o.enable&&(t.rotate.velocity=r(o.speed)/360*this.container.retina.reduceFactor,o.sync||(t.rotate.velocity*=Math.random()))}isEnabled(t){const e=t.options.rotate,i=e.animation;return!t.destroyed&&!t.spawning&&!e.path&&i.enable}update(t,e){this.isEnabled(t)&&function(t,e){var i;const o=t.rotate;if(!o)return;const s=t.options.rotate.animation,n=(null!==(i=o.velocity)&&void 0!==i?i:0)*e.factor,a=2*Math.PI;if(s.enable)switch(o.status){case 0:o.value+=n,o.value>a&&(o.value-=a);break;case 1:default:o.value-=n,o.value<0&&(o.value+=a)}}(t,e)}}class po{init(t){var e;const i=t.container,o=t.options.move.spin;if(o.enable){const s=null!==(e=o.position)&&void 0!==e?e:{x:50,y:50},n={x:s.x/100*i.canvas.size.width,y:s.y/100*i.canvas.size.height},a=v(t.getPosition(),n),l=r(o.acceleration);t.retina.spinAcceleration=l*i.retina.pixelRatio,t.spin={center:n,direction:t.velocity.x>=0?"clockwise":"counter-clockwise",angle:t.velocity.angle,radius:a,acceleration:t.retina.spinAcceleration}}}isEnabled(t){return!t.destroyed&&t.options.move.enable}move(t,e){var i,o,n,a,l;const d=t.options,u=d.move;if(!u.enable)return;const p=t.container,f=function(t){const e=t.container,i=e.actualOptions;if(!T("slow",i.interactivity.events.onHover.mode))return 1;const o=t.container.interactivity.mouse.position;if(!o)return 1;const s=v(o,t.getPosition()),n=e.retina.slowModeRadius;return s>n?1:(s/n||0)/i.interactivity.modes.slow.factor}(t),y=(null!==(i=(a=t.retina).moveSpeed)&&void 0!==i?i:a.moveSpeed=r(u.speed)*p.retina.pixelRatio)*p.retina.reduceFactor,m=null!==(o=(l=t.retina).moveDrift)&&void 0!==o?o:l.moveDrift=r(t.options.move.drift)*p.retina.pixelRatio,b=c(d.size.value)*p.retina.pixelRatio,g=y*((u.size?t.getRadius()/b:1)*f*(e.factor||1))/2;!function(t,e){const i=t.options.move.path;if(!i.enable)return;const o=t.container;if(t.lastPathTime<=t.pathDelay)return void(t.lastPathTime+=e.value);const n=o.pathGenerator.generate(t);t.velocity.addTo(n),i.clamp&&(t.velocity.x=s(t.velocity.x,-1,1),t.velocity.y=s(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay}(t,e);const w=t.gravity,x=w.enable&&w.inverse?-1:1;w.enable&&g&&(t.velocity.y+=x*(w.acceleration*e.factor)/(60*g)),m&&g&&(t.velocity.x+=m*e.factor/(60*g));const k=t.moveDecay;1!=k&&t.velocity.multTo(k);const z=t.velocity.mult(g),M=null!==(n=t.retina.maxSpeed)&&void 0!==n?n:p.retina.maxSpeed;w.enable&&M>0&&(!w.inverse&&z.y>=0&&z.y>=M||w.inverse&&z.y<=0&&z.y<=-M)&&(z.y=x*M,g&&(t.velocity.y=z.y/g));const C=t.options.zIndex,P=(1-t.zIndexFactor)**C.velocityRate;u.spin.enable?function(t,e){const i=t.container;if(!t.spin)return;const o={x:"clockwise"===t.spin.direction?Math.cos:Math.sin,y:"clockwise"===t.spin.direction?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*o.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*o.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;const s=Math.max(i.canvas.size.width,i.canvas.size.height);t.spin.radius>s/2?(t.spin.radius=s/2,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=e/100*(1-t.spin.radius/s)}(t,g):(1!=P&&z.multTo(P),t.position.addTo(z),u.vibrate&&(t.position.x+=Math.sin(t.position.x*Math.cos(t.position.y)),t.position.y+=Math.cos(t.position.y*Math.sin(t.position.x)))),function(t){const e=t.initialPosition,{dx:i,dy:o}=h(e,t.position),s=Math.abs(i),n=Math.abs(o),a=t.retina.maxDistance.horizontal,r=t.retina.maxDistance.vertical;if(a||r)if((a&&s>=a||r&&n>=r)&&!t.misplaced)t.misplaced=!!a&&s>a||!!r&&n>r,a&&(t.velocity.x=t.velocity.y/2-t.velocity.x),r&&(t.velocity.y=t.velocity.x/2-t.velocity.y);else if((!a||s<a)&&(!r||n<r)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const i=t.position,o=t.velocity;a&&(i.x<e.x&&o.x<0||i.x>e.x&&o.x>0)&&(o.x*=-Math.random()),r&&(i.y<e.y&&o.y<0||i.y>e.y&&o.y>0)&&(o.y*=-Math.random())}}(t)}}class fo{getSidesCount(){return 12}draw(t,e,i){t.arc(0,0,i,0,2*Math.PI,!1)}}function yo(t,e,i,o,s){var n;const r=e;if(!r||!i.enable)return;const l=a(i.offset),c=(null!==(n=e.velocity)&&void 0!==n?n:0)*t.factor+3.6*l;s&&0!==r.status?(r.value-=c,r.value<0&&(r.status=0,r.value+=r.value)):(r.value+=c,s&&r.value>o&&(r.status=1,r.value-=r.value%o)),r.value>o&&(r.value%=o)}class mo{constructor(t){this.container=t}init(t){const e=U(t.options.color,t.id,t.options.reduceDuplicates);e&&(t.color=pt(e,t.options.color.animation,this.container.retina.reduceFactor))}isEnabled(t){var e,i,o;const s=t.options.color.animation;return!t.destroyed&&!t.spawning&&(void 0!==(null===(e=t.color)||void 0===e?void 0:e.h.value)&&s.h.enable||void 0!==(null===(i=t.color)||void 0===i?void 0:i.s.value)&&s.s.enable||void 0!==(null===(o=t.color)||void 0===o?void 0:o.l.value)&&s.l.enable)}update(t,e){!function(t,e){var i,o,s;const n=t.options.color.animation;void 0!==(null===(i=t.color)||void 0===i?void 0:i.h)&&yo(e,t.color.h,n.h,360,!1),void 0!==(null===(o=t.color)||void 0===o?void 0:o.s)&&yo(e,t.color.s,n.s,100,!0),void 0!==(null===(s=t.color)||void 0===s?void 0:s.l)&&yo(e,t.color.l,n.l,100,!0)}(t,e)}}class bo{constructor(t){this.container=t,this.type=0}}class go extends bo{constructor(t){super(t),t.attract||(t.attract={particles:[]}),this.handleClickMode=e=>{const i=this.container.actualOptions;if("attract"===e){t.attract||(t.attract={particles:[]}),t.attract.clicking=!0,t.attract.count=0;for(const e of t.attract.particles)e.velocity.setTo(e.initialVelocity);t.attract.particles=[],t.attract.finish=!1,setTimeout((()=>{t.destroyed||(t.attract||(t.attract={particles:[]}),t.attract.clicking=!1)}),1e3*i.interactivity.modes.attract.duration)}}}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events;if(!(i.position&&o.onHover.enable||i.clickPosition&&o.onClick.enable))return!1;const s=o.onHover.mode,n=o.onClick.mode;return T("attract",s)||T("attract",n)}reset(){}async interact(){const t=this.container,e=t.actualOptions,o=t.interactivity.status===i.mouseMoveEvent,s=e.interactivity.events,n=s.onHover.enable,a=s.onHover.mode,r=s.onClick.enable,l=s.onClick.mode;o&&n&&T("attract",a)?this.hoverAttract():r&&T("attract",l)&&this.clickAttract()}hoverAttract(){const t=this.container,e=t.interactivity.mouse.position;if(!e)return;const i=t.retina.attractModeDistance;this.processAttract(e,i,new _i(e.x,e.y,i))}processAttract(t,e,i){const n=this.container,a=n.actualOptions.interactivity.modes.attract,r=n.particles.quadTree.query(i);for(const i of r){const{dx:n,dy:r,distance:l}=h(i.position,t),c=a.speed*a.factor,d=s(m(1-l/e,a.easing)*c,0,a.maxSpeed),u=o.create(0===l?c:n/l*d,0===l?c:r/l*d);i.position.subFrom(u)}}clickAttract(){const t=this.container;if(t.attract||(t.attract={particles:[]}),t.attract.finish||(t.attract.count||(t.attract.count=0),t.attract.count++,t.attract.count===t.particles.count&&(t.attract.finish=!0)),t.attract.clicking){const e=t.interactivity.mouse.clickPosition;if(!e)return;const i=t.retina.attractModeDistance;this.processAttract(e,i,new _i(e.x,e.y,i))}else!1===t.attract.clicking&&(t.attract.particles=[])}}class wo extends bo{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events,s=o.onDiv;return i.position&&o.onHover.enable&&T("bounce",o.onHover.mode)||q("bounce",s)}async interact(){const t=this.container,e=t.actualOptions.interactivity.events,o=t.interactivity.status===i.mouseMoveEvent,s=e.onHover.enable,n=e.onHover.mode,a=e.onDiv;o&&s&&T("bounce",n)?this.processMouseBounce():H("bounce",a,((t,e)=>this.singleSelectorBounce(t,e)))}reset(){}processMouseBounce(){const t=this.container,e=10*t.retina.pixelRatio,i=t.interactivity.mouse.position,o=t.retina.bounceModeDistance;i&&this.processBounce(i,o,new _i(i.x,i.y,o+e))}singleSelectorBounce(t,e){const i=this.container,o=document.querySelectorAll(t);o.length&&o.forEach((t=>{const o=t,s=i.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r=10*s,l="circle"===e.type?new _i(n.x,n.y,a+r):new Bi(o.offsetLeft*s-r,o.offsetTop*s-r,o.offsetWidth*s+2*r,o.offsetHeight*s+2*r);this.processBounce(n,a,l)}))}processBounce(t,e,i){const s=this.container.particles.quadTree.query(i);for(const n of s)i instanceof _i?_(W(n),{position:t,radius:e,mass:e**2*Math.PI/2,velocity:o.origin,factor:o.origin}):i instanceof Bi&&B(n,A(t,e))}}function xo(t,e,i,o){if(e>=i){return s(t+(e-i)*o,t,e)}if(e<i){return s(t-(i-e)*o,e,t)}}class ko extends bo{constructor(t){super(t),t.bubble||(t.bubble={}),this.handleClickMode=e=>{"bubble"===e&&(t.bubble||(t.bubble={}),t.bubble.clicking=!0)}}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events,s=q("bubble",o.onDiv);if(!(s||o.onHover.enable&&i.position||o.onClick.enable&&i.clickPosition))return!1;const n=o.onHover.mode,a=o.onClick.mode;return T("bubble",n)||T("bubble",a)||s}reset(t,e){t.bubble.inRange&&!e||(delete t.bubble.div,delete t.bubble.opacity,delete t.bubble.radius,delete t.bubble.color)}async interact(){const t=this.container.actualOptions.interactivity.events,e=t.onHover,i=t.onClick,o=e.enable,s=e.mode,n=i.enable,a=i.mode,r=t.onDiv;o&&T("bubble",s)?this.hoverBubble():n&&T("bubble",a)?this.clickBubble():H("bubble",r,((t,e)=>this.singleSelectorHover(t,e)))}singleSelectorHover(t,e){const i=this.container,o=document.querySelectorAll(t);o.length&&o.forEach((t=>{const o=t,s=i.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r="circle"===e.type?new _i(n.x,n.y,a):new Bi(o.offsetLeft*s,o.offsetTop*s,o.offsetWidth*s,o.offsetHeight*s),l=i.particles.quadTree.query(r);for(const t of l){if(!r.contains(t.getPosition()))continue;t.bubble.inRange=!0;const e=V(i.actualOptions.interactivity.modes.bubble.divs,o);t.bubble.div&&t.bubble.div===o||(this.reset(t,!0),t.bubble.div=o),this.hoverBubbleSize(t,1,e),this.hoverBubbleOpacity(t,1,e),this.hoverBubbleColor(t,1,e)}}))}process(t,e,i,o){const s=this.container,n=o.bubbleObj.optValue;if(void 0===n)return;const a=s.actualOptions.interactivity.modes.bubble.duration,r=s.retina.bubbleModeDistance,l=o.particlesObj.optValue,c=o.bubbleObj.value,d=o.particlesObj.value||0,u=o.type;if(n!==l)if(s.bubble||(s.bubble={}),s.bubble.durationEnd)c&&("size"===u&&delete t.bubble.radius,"opacity"===u&&delete t.bubble.opacity);else if(e<=r){if((null!=c?c:d)!==n){const e=d-i*(d-n)/a;"size"===u&&(t.bubble.radius=e),"opacity"===u&&(t.bubble.opacity=e)}}else"size"===u&&delete t.bubble.radius,"opacity"===u&&delete t.bubble.opacity}clickBubble(){var t,e;const i=this.container,o=i.actualOptions,s=i.interactivity.mouse.clickPosition;if(!s)return;i.bubble||(i.bubble={});const n=i.retina.bubbleModeDistance,a=i.particles.quadTree.queryCircle(s,n);for(const n of a){if(!i.bubble.clicking)continue;n.bubble.inRange=!i.bubble.durationEnd;const a=v(n.getPosition(),s),r=((new Date).getTime()-(i.interactivity.mouse.clickTime||0))/1e3;r>o.interactivity.modes.bubble.duration&&(i.bubble.durationEnd=!0),r>2*o.interactivity.modes.bubble.duration&&(i.bubble.clicking=!1,i.bubble.durationEnd=!1);const l={bubbleObj:{optValue:i.retina.bubbleModeSize,value:n.bubble.radius},particlesObj:{optValue:c(n.options.size.value)*i.retina.pixelRatio,value:n.size.value},type:"size"};this.process(n,a,r,l);const d={bubbleObj:{optValue:o.interactivity.modes.bubble.opacity,value:n.bubble.opacity},particlesObj:{optValue:c(n.options.opacity.value),value:null!==(e=null===(t=n.opacity)||void 0===t?void 0:t.value)&&void 0!==e?e:1},type:"opacity"};this.process(n,a,r,d),i.bubble.durationEnd?delete n.bubble.color:a<=i.retina.bubbleModeDistance?this.hoverBubbleColor(n,a):delete n.bubble.color}}hoverBubble(){const t=this.container,e=t.interactivity.mouse.position;if(void 0===e)return;const o=t.retina.bubbleModeDistance,s=t.particles.quadTree.queryCircle(e,o);for(const n of s){n.bubble.inRange=!0;const s=v(n.getPosition(),e),a=1-s/o;s<=o?a>=0&&t.interactivity.status===i.mouseMoveEvent&&(this.hoverBubbleSize(n,a),this.hoverBubbleOpacity(n,a),this.hoverBubbleColor(n,a)):this.reset(n),t.interactivity.status===i.mouseLeaveEvent&&this.reset(n)}}hoverBubbleSize(t,e,i){const o=this.container,s=(null==i?void 0:i.size)?i.size*o.retina.pixelRatio:o.retina.bubbleModeSize;if(void 0===s)return;const n=c(t.options.size.value)*o.retina.pixelRatio,a=xo(t.size.value,s,n,e);void 0!==a&&(t.bubble.radius=a)}hoverBubbleOpacity(t,e,i){var o,s,n;const a=this.container.actualOptions,r=null!==(o=null==i?void 0:i.opacity)&&void 0!==o?o:a.interactivity.modes.bubble.opacity;if(!r)return;const l=t.options.opacity.value,d=xo(null!==(n=null===(s=t.opacity)||void 0===s?void 0:s.value)&&void 0!==n?n:1,r,c(l),e);void 0!==d&&(t.bubble.opacity=d)}hoverBubbleColor(t,e,i){const o=this.container.actualOptions,s=null!=i?i:o.interactivity.modes.bubble;if(!t.bubble.finalColor){const e=s.color;if(!e)return;const i=e instanceof Array?E(e):e;t.bubble.finalColor=U(i)}if(t.bubble.finalColor)if(s.mix){t.bubble.color=void 0;const i=t.getFillColor();t.bubble.color=i?N(dt(i,t.bubble.finalColor,1-e,e)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}}class zo extends bo{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.interactivity.mouse,i=t.actualOptions.interactivity.events;return!(!i.onHover.enable||!e.position)&&T("connect",i.onHover.mode)}reset(){}async interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&"mousemove"===t.interactivity.status){const e=t.interactivity.mouse.position;if(!e)return;const i=Math.abs(t.retina.connectModeRadius),o=t.particles.quadTree.queryCircle(e,i);let s=0;for(const e of o){const i=e.getPosition();for(const n of o.slice(s+1)){const o=n.getPosition(),s=Math.abs(t.retina.connectModeDistance),a=Math.abs(i.x-o.x),r=Math.abs(i.y-o.y);a<s&&r<s&&t.canvas.drawConnectLine(e,n)}++s}}}}class Mo extends bo{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.interactivity.mouse,i=t.actualOptions.interactivity.events;return i.onHover.enable&&!!e.position&&T("grab",i.onHover.mode)}reset(){}async interact(){var t;const e=this.container,o=e.actualOptions,s=o.interactivity;if(!s.events.onHover.enable||e.interactivity.status!==i.mouseMoveEvent)return;const n=e.interactivity.mouse.position;if(!n)return;const a=e.retina.grabModeDistance,r=e.particles.quadTree.queryCircle(n,a);for(const i of r){const r=v(i.getPosition(),n);if(r>a)continue;const l=s.modes.grab.links,c=l.opacity,d=c-r*c/a;if(d<=0)continue;const u=null!==(t=l.color)&&void 0!==t?t:i.options.links.color;if(!e.particles.grabLineColor){const t=o.interactivity.modes.grab.links;e.particles.grabLineColor=ht(u,t.blink,t.consent)}const h=ut(i,void 0,e.particles.grabLineColor);if(!h)return;e.canvas.drawGrabLine(i,h,d,n)}}}class Co extends bo{constructor(t){super(t),this.handleClickMode=t=>{if("pause"!==t)return;const e=this.container;e.getAnimationStatus()?e.pause():e.play()}}isEnabled(){return!0}reset(){}async interact(){}}class Po extends bo{constructor(t){super(t),this.handleClickMode=t=>{if("push"!==t)return;const e=this.container,i=e.actualOptions,o=i.interactivity.modes.push.quantity;if(o<=0)return;const s=E([void 0,...i.interactivity.modes.push.groups]),n=void 0!==s?e.actualOptions.particles.groups[s]:void 0;e.particles.push(o,e.interactivity.mouse,n,s)}}isEnabled(){return!0}reset(){}async interact(){}}class So extends bo{constructor(t){super(t),this.handleClickMode=t=>{if("remove"!==t)return;const e=this.container,i=e.actualOptions.interactivity.modes.remove.quantity;e.particles.removeQuantity(i)}}isEnabled(){return!0}reset(){}async interact(){}}class To extends bo{constructor(t){super(t),t.repulse||(t.repulse={particles:[]}),this.handleClickMode=e=>{const i=this.container.actualOptions;if("repulse"===e){t.repulse||(t.repulse={particles:[]}),t.repulse.clicking=!0,t.repulse.count=0;for(const e of t.repulse.particles)e.velocity.setTo(e.initialVelocity);t.repulse.particles=[],t.repulse.finish=!1,setTimeout((()=>{t.destroyed||(t.repulse||(t.repulse={particles:[]}),t.repulse.clicking=!1)}),1e3*i.interactivity.modes.repulse.duration)}}}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events,s=q("repulse",o.onDiv);if(!(s||o.onHover.enable&&i.position||o.onClick.enable&&i.clickPosition))return!1;const n=o.onHover.mode,a=o.onClick.mode;return T("repulse",n)||T("repulse",a)||s}reset(){}async interact(){const t=this.container,e=t.actualOptions,o=t.interactivity.status===i.mouseMoveEvent,s=e.interactivity.events,n=s.onHover.enable,a=s.onHover.mode,r=s.onClick.enable,l=s.onClick.mode,c=s.onDiv;o&&n&&T("repulse",a)?this.hoverRepulse():r&&T("repulse",l)?this.clickRepulse():H("repulse",c,((t,e)=>this.singleSelectorRepulse(t,e)))}singleSelectorRepulse(t,e){const i=this.container,o=document.querySelectorAll(t);o.length&&o.forEach((t=>{const o=t,s=i.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r="circle"===e.type?new _i(n.x,n.y,a):new Bi(o.offsetLeft*s,o.offsetTop*s,o.offsetWidth*s,o.offsetHeight*s),l=V(i.actualOptions.interactivity.modes.repulse.divs,o);this.processRepulse(n,a,r,l)}))}hoverRepulse(){const t=this.container,e=t.interactivity.mouse.position;if(!e)return;const i=t.retina.repulseModeDistance;this.processRepulse(e,i,new _i(e.x,e.y,i))}processRepulse(t,e,i,n){var a;const r=this.container,l=r.particles.quadTree.query(i),c=r.actualOptions.interactivity.modes.repulse;for(const i of l){const{dx:r,dy:l,distance:d}=h(i.position,t),u=(null!==(a=null==n?void 0:n.speed)&&void 0!==a?a:c.speed)*c.factor,v=s(m(1-d/e,c.easing)*u,0,c.maxSpeed),p=o.create(0===d?u:r/d*v,0===d?u:l/d*v);i.position.addTo(p)}}clickRepulse(){const t=this.container;if(t.repulse||(t.repulse={particles:[]}),t.repulse.finish||(t.repulse.count||(t.repulse.count=0),t.repulse.count++,t.repulse.count===t.particles.count&&(t.repulse.finish=!0)),t.repulse.clicking){const e=t.retina.repulseModeDistance,i=Math.pow(e/6,3),s=t.interactivity.mouse.clickPosition;if(void 0===s)return;const n=new _i(s.x,s.y,i),a=t.particles.quadTree.query(n);for(const e of a){const{dx:n,dy:a,distance:r}=h(s,e.position),l=r**2,c=t.actualOptions.interactivity.modes.repulse.speed,d=-i*c/l;if(l<=i){t.repulse.particles.push(e);const i=o.create(n,a);i.length=d,e.velocity.setTo(i)}}}else if(!1===t.repulse.clicking){for(const e of t.repulse.particles)e.velocity.setTo(e.initialVelocity);t.repulse.particles=[]}}}const Oo=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;async function Ro(t){return new Promise((e=>{t.loading=!0;const i=new Image;i.addEventListener("load",(()=>{t.element=i,t.loading=!1,e()})),i.addEventListener("error",(()=>{t.error=!0,t.loading=!1,console.error(`Error tsParticles - loading image: ${t.source}`),e()})),i.src=t.source}))}async function Eo(t){if("svg"!==t.type)return void await Ro(t);t.loading=!0;const e=await fetch(t.source);t.loading=!1,e.ok||(console.error("Error tsParticles - Image not found"),t.error=!0),t.error||(t.svgData=await e.text())}function Io(t,e,i,o){var s,n,a;const r=function(t,e,i){const{svgData:o}=t;if(!o)return"";const s=lt(e,i);if(o.includes("fill"))return o.replace(Oo,(()=>s));const n=o.indexOf(">");return`${o.substring(0,n)} fill="${s}"${o.substring(n)}`}(t,i,null!==(n=null===(s=o.opacity)||void 0===s?void 0:s.value)&&void 0!==n?n:1),l=new Blob([r],{type:"image/svg+xml"}),c=URL||window.URL||window.webkitURL||window,d=c.createObjectURL(l),u=new Image,h={data:Object.assign(Object.assign({},t),{svgData:r}),ratio:e.width/e.height,replaceColor:null!==(a=e.replaceColor)&&void 0!==a?a:e.replace_color,source:e.src};return u.addEventListener("load",(()=>{const e=o.image;e&&(e.loaded=!0,t.element=u),c.revokeObjectURL(d)})),u.addEventListener("error",(()=>{c.revokeObjectURL(d);const e=Object.assign(Object.assign({},t),{error:!1,loading:!0});Ro(e).then((()=>{const i=o.image;i&&(t.element=e.element,i.loaded=!0)}))})),u.src=d,h}var Do,Ao=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Lo=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class qo{constructor(){Do.set(this,void 0),Ao(this,Do,[],"f")}getSidesCount(){return 12}getImages(t){const e=Lo(this,Do,"f").find((e=>e.id===t.id));return e||(Lo(this,Do,"f").push({id:t.id,images:[]}),this.getImages(t))}addImage(t,e){const i=this.getImages(t);null==i||i.images.push(e)}destroy(){Ao(this,Do,[],"f")}draw(t,e,i,o){var s,n;const a=e.image,r=null===(s=null==a?void 0:a.data)||void 0===s?void 0:s.element;if(!r)return;const l=null!==(n=null==a?void 0:a.ratio)&&void 0!==n?n:1,c={x:-i,y:-i};(null==a?void 0:a.data.svgData)&&(null==a?void 0:a.replaceColor)||(t.globalAlpha=o),t.drawImage(r,c.x,c.y,2*i,2*i/l),(null==a?void 0:a.data.svgData)&&(null==a?void 0:a.replaceColor)||(t.globalAlpha=1)}loadShape(t){var e,i,o;if("image"!==t.shape&&"images"!==t.shape)return;const s=this.getImages(t.container).images,n=t.shapeData,a=s.find((t=>t.source===n.src));let r;if(!a)return void this.loadImageShape(t.container,n).then((()=>{this.loadShape(t)}));if(a.error)return;const l=t.getFillColor();r=a.svgData&&n.replaceColor&&l?Io(a,n,l,t):{data:a,loaded:!0,ratio:n.width/n.height,replaceColor:null!==(e=n.replaceColor)&&void 0!==e?e:n.replace_color,source:n.src},r.ratio||(r.ratio=1);const c={image:r,fill:null!==(i=n.fill)&&void 0!==i?i:t.fill,close:null!==(o=n.close)&&void 0!==o?o:t.close};t.image=c.image,t.fill=c.fill,t.close=c.close}async loadImageShape(t,e){const i=e.src;if(!i)throw new Error("Error tsParticles - No image.src");try{const o={source:i,type:i.substr(i.length-3),error:!1,loading:!0};this.addImage(t,o);const s=e.replaceColor?Eo:Ro;await s(o)}catch(t){throw new Error(`tsParticles error - ${e.src} not found`)}}}Do=new WeakMap;class Ho{constructor(t){this.container=t}init(){}isEnabled(t){return!t.destroyed}update(t,e){if(!this.isEnabled(t))return;const i=t.life;let o=!1;if(t.spawning){if(i.delayTime+=e.value,!(i.delayTime>=t.life.delay))return;o=!0,t.spawning=!1,i.delayTime=0,i.time=0}if(-1===i.duration)return;if(t.spawning)return;if(o?i.time=0:i.time+=e.value,i.time<i.duration)return;if(i.time=0,t.life.count>0&&t.life.count--,0===t.life.count)return void t.destroy();const s=this.container.canvas.size,n=d(0,s.width),l=d(0,s.width);t.position.x=a(n),t.position.y=a(l),t.spawning=!0,i.delayTime=0,i.time=0,t.reset();const c=t.options.life;i.delay=1e3*r(c.delay.value),i.duration=1e3*r(c.duration.value)}}class Fo{getSidesCount(){return 1}draw(t,e,i){t.moveTo(-i/2,0),t.lineTo(i/2,0)}}class Vo{constructor(t){this.container=t}init(t){const e=t.options.opacity;t.opacity={enable:e.animation.enable,max:c(e.value),min:l(e.value),value:r(e.value),loops:0,maxLoops:r(e.animation.count)};const i=e.animation;if(i.enable){t.opacity.status=0;const o=e.value;switch(t.opacity.min=l(o),t.opacity.max=c(o),i.startValue){case"min":t.opacity.value=t.opacity.min,t.opacity.status=0;break;case"random":t.opacity.value=a(t.opacity),t.opacity.status=Math.random()>=.5?0:1;break;case"max":default:t.opacity.value=t.opacity.max,t.opacity.status=1}t.opacity.velocity=r(i.speed)/100*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity*=Math.random())}}isEnabled(t){var e,i,o,s;return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((null!==(e=t.opacity.maxLoops)&&void 0!==e?e:0)<=0||(null!==(i=t.opacity.maxLoops)&&void 0!==i?i:0)>0&&(null!==(o=t.opacity.loops)&&void 0!==o?o:0)<(null!==(s=t.opacity.maxLoops)&&void 0!==s?s:0))}update(t,e){this.isEnabled(t)&&function(t,e){var i,o,n,a,r;if(!t.opacity)return;const l=t.opacity.min,c=t.opacity.max;if(!(t.destroyed||!t.opacity.enable||(null!==(i=t.opacity.maxLoops)&&void 0!==i?i:0)>0&&(null!==(o=t.opacity.loops)&&void 0!==o?o:0)>(null!==(n=t.opacity.maxLoops)&&void 0!==n?n:0))){switch(t.opacity.status){case 0:t.opacity.value>=c?(t.opacity.status=1,t.opacity.loops||(t.opacity.loops=0),t.opacity.loops++):t.opacity.value+=(null!==(a=t.opacity.velocity)&&void 0!==a?a:0)*e.factor;break;case 1:t.opacity.value<=l?(t.opacity.status=0,t.opacity.loops||(t.opacity.loops=0),t.opacity.loops++):t.opacity.value-=(null!==(r=t.opacity.velocity)&&void 0!==r?r:0)*e.factor}!function(t,e,i,o){switch(t.options.opacity.animation.destroy){case"max":e>=o&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,t.opacity.value,l,c),t.destroyed||(t.opacity.value=s(t.opacity.value,l,c))}}(t,e)}}class Wo{constructor(t){this.container=t}init(){}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){var i,o,s,n;const a=t.options.move.outModes;this.updateOutMode(t,e,null!==(i=a.bottom)&&void 0!==i?i:a.default,"bottom"),this.updateOutMode(t,e,null!==(o=a.left)&&void 0!==o?o:a.default,"left"),this.updateOutMode(t,e,null!==(s=a.right)&&void 0!==s?s:a.default,"right"),this.updateOutMode(t,e,null!==(n=a.top)&&void 0!==n?n:a.default,"top")}updateOutMode(t,e,i,o){switch(i){case"bounce":case"bounce-vertical":case"bounce-horizontal":case"bounceVertical":case"bounceHorizontal":case"split":this.bounce(t,e,o,i);break;case"destroy":this.destroy(t,o);break;case"out":this.out(t,o);break;case"none":default:this.none(t,o)}}destroy(t,e){const i=this.container;I(t.position,i.canvas.size,t.getRadius(),e)||i.particles.remove(t,void 0,!0)}out(t,e){const i=this.container;if(I(t.position,i.canvas.size,t.getRadius(),e))return;const o=t.options.move.warp,s=i.canvas.size,n={bottom:s.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},a=t.getRadius(),r=A(t.position,a);"right"===e&&r.left>s.width+t.offset.x?(t.position.x=n.left,t.initialPosition.x=t.position.x,o||(t.position.y=Math.random()*s.height,t.initialPosition.y=t.position.y)):"left"===e&&r.right<-t.offset.x&&(t.position.x=n.right,t.initialPosition.x=t.position.x,o||(t.position.y=Math.random()*s.height,t.initialPosition.y=t.position.y)),"bottom"===e&&r.top>s.height+t.offset.y?(o||(t.position.x=Math.random()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.top,t.initialPosition.y=t.position.y):"top"===e&&r.bottom<-t.offset.y&&(o||(t.position.x=Math.random()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.bottom,t.initialPosition.y=t.position.y)}bounce(t,e,i,o){const s=this.container;let n=!1;for(const[,o]of s.plugins)if(void 0!==o.particleBounce&&(n=o.particleBounce(t,e,i)),n)break;if(n)return;const a=t.getPosition(),l=t.offset,c=t.getRadius(),d=A(a,c),u=s.canvas.size;!function(t){if("bounce"!==t.outMode&&"bounce-horizontal"!==t.outMode&&"bounceHorizontal"!==t.outMode&&"split"!==t.outMode)return;const e=t.particle.velocity.x;let i=!1;if("right"===t.direction&&t.bounds.right>=t.canvasSize.width&&e>0||"left"===t.direction&&t.bounds.left<=0&&e<0){const e=r(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;const o=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width?t.particle.position.x=t.canvasSize.width-o:t.bounds.left<=0&&(t.particle.position.x=o),"split"===t.outMode&&t.particle.destroy()}({particle:t,outMode:o,direction:i,bounds:d,canvasSize:u,offset:l,size:c}),function(t){if("bounce"===t.outMode||"bounce-vertical"===t.outMode||"bounceVertical"===t.outMode||"split"===t.outMode){const e=t.particle.velocity.y;let i=!1;if("bottom"===t.direction&&t.bounds.bottom>=t.canvasSize.height&&e>0||"top"===t.direction&&t.bounds.top<=0&&e<0){const e=r(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;const o=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height?t.particle.position.y=t.canvasSize.height-o:t.bounds.top<=0&&(t.particle.position.y=o),"split"===t.outMode&&t.particle.destroy()}}({particle:t,outMode:o,direction:i,bounds:d,canvasSize:u,offset:l,size:c})}none(t,e){if(t.options.move.distance.horizontal&&("left"===e||"right"===e)||t.options.move.distance.vertical&&("top"===e||"bottom"===e))return;const i=t.options.move.gravity,o=this.container,s=o.canvas.size,n=t.getRadius();if(i.enable){const a=t.position;(!i.inverse&&a.y>s.height+n&&"bottom"===e||i.inverse&&a.y<-n&&"top"===e)&&o.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=s.height+n||t.velocity.y<0&&t.position.y>=-n||t.velocity.x>0&&t.position.x<=s.width+n||t.velocity.x<0&&t.position.x>=-n)return;I(t.position,o.canvas.size,n,e)||o.particles.remove(t)}}}class _o{init(){}isEnabled(t){return!C()&&!t.destroyed&&t.container.actualOptions.interactivity.events.onHover.parallax.enable}move(t){const e=t.container,i=e.actualOptions;if(C()||!i.interactivity.events.onHover.parallax.enable)return;const o=i.interactivity.events.onHover.parallax.force,s=e.interactivity.mouse.position;if(!s)return;const n=e.canvas.size.width/2,a=e.canvas.size.height/2,r=i.interactivity.events.onHover.parallax.smooth,l=t.getRadius()/o,c=(s.x-n)*l,d=(s.y-a)*l;t.offset.x+=(c-t.offset.x)/r,t.offset.y+=(d-t.offset.y)/r}}class Bo{constructor(t){this.container=t,this.type=1}}class jo extends Bo{constructor(t){super(t)}async interact(t){var e;const i=this.container,o=null!==(e=t.retina.attractDistance)&&void 0!==e?e:i.retina.attractDistance,s=t.getPosition(),n=i.particles.quadTree.queryCircle(s,o);for(const e of n){if(t===e||!e.options.move.attract.enable||e.destroyed||e.spawning)continue;const i=e.getPosition(),{dx:o,dy:n}=h(s,i),a=t.options.move.attract.rotate,r=o/(1e3*a.x),l=n/(1e3*a.y),c=e.size.value/t.size.value,d=1/c;t.velocity.x-=r*c,t.velocity.y-=l*c,e.velocity.x+=r*d,e.velocity.y+=l*d}}isEnabled(t){return t.options.move.attract.enable}reset(){}}function $o(t,e){_(W(t),W(e))}class Go extends Bo{constructor(t){super(t)}isEnabled(t){return t.options.collisions.enable}reset(){}async interact(t){const e=this.container,i=t.getPosition(),o=t.getRadius(),s=e.particles.quadTree.queryCircle(i,2*o);for(const e of s){if(t===e||!e.options.collisions.enable||t.options.collisions.mode!==e.options.collisions.mode||e.destroyed||e.spawning)continue;const s=e.getPosition();if(Math.round(i.z)!==Math.round(s.z))continue;v(i,s)<=o+e.getRadius()&&this.resolveCollision(t,e)}}resolveCollision(t,e){switch(t.options.collisions.mode){case"absorb":this.absorb(t,e);break;case"bounce":$o(t,e);break;case"destroy":!function(t,e){t.unbreakable||e.unbreakable||$o(t,e),void 0===t.getRadius()&&void 0!==e.getRadius()?t.destroy():void 0!==t.getRadius()&&void 0===e.getRadius()?e.destroy():void 0!==t.getRadius()&&void 0!==e.getRadius()&&(t.getRadius()>=e.getRadius()?e.destroy():t.destroy())}(t,e)}}absorb(t,e){const i=this.container,o=i.fpsLimit/1e3;if(void 0===t.getRadius()&&void 0!==e.getRadius())t.destroy();else if(void 0!==t.getRadius()&&void 0===e.getRadius())e.destroy();else if(void 0!==t.getRadius()&&void 0!==e.getRadius())if(t.getRadius()>=e.getRadius()){const n=s(t.getRadius()/e.getRadius(),0,e.getRadius())*o;t.size.value+=n,e.size.value-=n,e.getRadius()<=i.retina.pixelRatio&&(e.size.value=0,e.destroy())}else{const n=s(e.getRadius()/t.getRadius(),0,t.getRadius())*o;t.size.value-=n,e.size.value+=n,t.getRadius()<=i.retina.pixelRatio&&(t.size.value=0,t.destroy())}}}function Uo(t,e,i,o,s){let n=v(t,e);if(!s||n<=i)return n;if(n=v(t,{x:e.x-o.width,y:e.y}),n<=i)return n;if(n=v(t,{x:e.x-o.width,y:e.y-o.height}),n<=i)return n;return n=v(t,{x:e.x,y:e.y-o.height}),n}class No extends Bo{constructor(t){super(t)}isEnabled(t){return t.options.links.enable}reset(){}async interact(t){var e;t.links=[];const i=t.getPosition(),o=this.container,s=o.canvas.size;if(i.x<0||i.y<0||i.x>s.width||i.y>s.height)return;const n=t.options.links,a=n.opacity,r=null!==(e=t.retina.linksDistance)&&void 0!==e?e:o.retina.linksDistance,l=n.warp,c=l?new ji(i.x,i.y,r,s):new _i(i.x,i.y,r),d=o.particles.quadTree.query(c);for(const e of d){const o=e.options.links;if(t===e||!o.enable||n.id!==o.id||e.spawning||e.destroyed||-1!==t.links.map((t=>t.destination)).indexOf(e)||-1!==e.links.map((t=>t.destination)).indexOf(t))continue;const c=e.getPosition();if(c.x<0||c.y<0||c.x>s.width||c.y>s.height)continue;const d=Uo(i,c,r,s,l&&o.warp);if(d>r)return;const u=(1-d/r)*a;this.setColor(t),t.links.push({destination:e,opacity:u})}}setColor(t){const e=this.container,i=t.options.links;let o=void 0===i.id?e.particles.linksColor:e.particles.linksColors.get(i.id);if(!o){o=ht(i.color,i.blink,i.consent),void 0===i.id?e.particles.linksColor=o:e.particles.linksColors.set(i.id,o)}}}class Jo{constructor(t){this.container=t}particleCreated(t){t.links=[]}particleDestroyed(t){t.links=[]}drawParticle(t,e){const i=e,o=this.container,s=o.particles,n=e.options;if(i.links.length<=0)return;t.save();const a=i.links.filter((t=>o.particles.getLinkFrequency(i,t.destination)<=n.links.frequency));for(const t of a){const e=t.destination;if(n.links.triangles.enable){const r=a.map((t=>t.destination)),l=e.links.filter((t=>o.particles.getLinkFrequency(e,t.destination)<=e.options.links.frequency&&r.indexOf(t.destination)>=0));if(l.length)for(const o of l){const a=o.destination;s.getTriangleFrequency(i,e,a)>n.links.triangles.frequency||this.drawLinkTriangle(i,t,o)}}t.opacity>0&&o.retina.linksWidth>0&&this.drawLinkLine(i,t)}t.restore()}drawLinkTriangle(t,e,i){var o;const s=this.container,n=s.actualOptions,a=e.destination,r=i.destination,l=t.options.links.triangles,c=null!==(o=l.opacity)&&void 0!==o?o:(e.opacity+i.opacity)/2;if(c<=0)return;const d=t.getPosition(),u=a.getPosition(),h=r.getPosition();s.canvas.draw((e=>{if(v(d,u)>s.retina.linksDistance||v(h,u)>s.retina.linksDistance||v(h,d)>s.retina.linksDistance)return;let i=G(l.color);if(!i){const e=t.options.links,o=void 0!==e.id?s.particles.linksColors.get(e.id):s.particles.linksColor;i=ut(t,a,o)}i&&wt(e,d,u,h,n.backgroundMask.enable,n.backgroundMask.composite,i,c)}))}drawLinkLine(t,e){const i=this.container,o=i.actualOptions,s=e.destination,n=t.getPosition(),a=s.getPosition();let l=e.opacity;i.canvas.draw((e=>{var c,d;let u;const h=t.options.twinkle.lines;if(h.enable){const t=h.frequency,e=G(h.color);Math.random()<t&&e&&(u=e,l=r(h.opacity))}if(!u){const e=t.options.links,o=void 0!==e.id?i.particles.linksColors.get(e.id):i.particles.linksColor;u=ut(t,s,o)}if(!u)return;const v=null!==(c=t.retina.linksWidth)&&void 0!==c?c:i.retina.linksWidth,p=null!==(d=t.retina.linksDistance)&&void 0!==d?d:i.retina.linksDistance;gt(e,v,n,a,p,i.canvas.size,t.options.links.warp,o.backgroundMask.enable,o.backgroundMask.composite,u,l,t.options.links.shadow)}))}}class Xo{constructor(){this.id="links"}getPlugin(t){return new Jo(t)}needsPlugin(){return!0}loadOptions(){}}async function Yo(t){await async function(t){await t.addInteractor("particlesLinks",(t=>new No(t)))}(t),await async function(t){const e=new Xo;await t.addPlugin(e)}(t)}class Qo{getSidesCount(t){var e,i;const o=t.shapeData;return null!==(i=null!==(e=null==o?void 0:o.sides)&&void 0!==e?e:null==o?void 0:o.nb_sides)&&void 0!==i?i:5}draw(t,e,i){const o=this.getCenter(e,i),s=this.getSidesData(e,i),n=s.count.numerator*s.count.denominator,a=s.count.numerator/s.count.denominator,r=180*(a-2)/a,l=Math.PI-Math.PI*r/180;if(t){t.beginPath(),t.translate(o.x,o.y),t.moveTo(0,0);for(let e=0;e<n;e++)t.lineTo(s.length,0),t.translate(s.length,0),t.rotate(l)}}}class Zo extends Qo{getSidesData(t,e){var i,o;const s=t.shapeData,n=null!==(o=null!==(i=null==s?void 0:s.sides)&&void 0!==i?i:null==s?void 0:s.nb_sides)&&void 0!==o?o:5;return{count:{denominator:1,numerator:n},length:2.66*e/(n/3)}}getCenter(t,e){return{x:-e/(this.getSidesCount(t)/3.5),y:-e/.76}}}class Ko extends Qo{getSidesCount(){return 3}getSidesData(t,e){return{count:{denominator:2,numerator:3},length:2*e}}getCenter(t,e){return{x:-e,y:e/1.66}}}async function ts(t){await async function(t){await t.addShape("polygon",new Zo)}(t),await async function(t){await t.addShape("triangle",new Ko)}(t)}class es{init(){}isEnabled(t){var e,i,o,s;return!t.destroyed&&!t.spawning&&t.size.enable&&((null!==(e=t.size.maxLoops)&&void 0!==e?e:0)<=0||(null!==(i=t.size.maxLoops)&&void 0!==i?i:0)>0&&(null!==(o=t.size.loops)&&void 0!==o?o:0)<(null!==(s=t.size.maxLoops)&&void 0!==s?s:0))}update(t,e){this.isEnabled(t)&&function(t,e){var i,o,n,a;const r=(null!==(i=t.size.velocity)&&void 0!==i?i:0)*e.factor,l=t.size.min,c=t.size.max;if(!(t.destroyed||!t.size.enable||(null!==(o=t.size.maxLoops)&&void 0!==o?o:0)>0&&(null!==(n=t.size.loops)&&void 0!==n?n:0)>(null!==(a=t.size.maxLoops)&&void 0!==a?a:0))){switch(t.size.status){case 0:t.size.value>=c?(t.size.status=1,t.size.loops||(t.size.loops=0),t.size.loops++):t.size.value+=r;break;case 1:t.size.value<=l?(t.size.status=0,t.size.loops||(t.size.loops=0),t.size.loops++):t.size.value-=r}!function(t,e,i,o){switch(t.options.size.animation.destroy){case"max":e>=o&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,t.size.value,l,c),t.destroyed||(t.size.value=s(t.size.value,l,c))}}(t,e)}}const is=Math.sqrt(2);class os{getSidesCount(){return 4}draw(t,e,i){t.rect(-i/is,-i/is,2*i/is,2*i/is)}}class ss{getSidesCount(t){var e,i;const o=t.shapeData;return null!==(i=null!==(e=null==o?void 0:o.sides)&&void 0!==e?e:null==o?void 0:o.nb_sides)&&void 0!==i?i:5}draw(t,e,i){var o;const s=e.shapeData,n=this.getSidesCount(e),a=null!==(o=null==s?void 0:s.inset)&&void 0!==o?o:2;t.moveTo(0,0-i);for(let e=0;e<n;e++)t.rotate(Math.PI/n),t.lineTo(0,0-i*a),t.rotate(Math.PI/n),t.lineTo(0,0-i)}}function ns(t,e,i,o,s){var n;const r=e;if(!r||!r.enable)return;const l=a(i.offset),c=(null!==(n=e.velocity)&&void 0!==n?n:0)*t.factor+3.6*l;s&&0!==r.status?(r.value-=c,r.value<0&&(r.status=0,r.value+=r.value)):(r.value+=c,s&&r.value>o&&(r.status=1,r.value-=r.value%o)),r.value>o&&(r.value%=o)}class as{constructor(t){this.container=t}init(t){var e,i;const o=this.container;t.stroke=t.options.stroke instanceof Array?E(t.options.stroke,t.id,t.options.reduceDuplicates):t.options.stroke,t.strokeWidth=t.stroke.width*o.retina.pixelRatio;const s=null!==(e=U(t.stroke.color))&&void 0!==e?e:t.getFillColor();s&&(t.strokeColor=pt(s,null===(i=t.stroke.color)||void 0===i?void 0:i.animation,o.retina.reduceFactor))}isEnabled(t){var e,i,o,s;const n=null===(e=t.stroke)||void 0===e?void 0:e.color;return!t.destroyed&&!t.spawning&&!!n&&(void 0!==(null===(i=t.strokeColor)||void 0===i?void 0:i.h.value)&&n.animation.h.enable||void 0!==(null===(o=t.strokeColor)||void 0===o?void 0:o.s.value)&&n.animation.s.enable||void 0!==(null===(s=t.strokeColor)||void 0===s?void 0:s.l.value)&&n.animation.l.enable)}update(t,e){this.isEnabled(t)&&function(t,e){var i,o,s,n,a,r,l,c,d,u;if(!(null===(i=t.stroke)||void 0===i?void 0:i.color))return;const h=t.stroke.color.animation,v=null!==(s=null===(o=t.strokeColor)||void 0===o?void 0:o.h)&&void 0!==s?s:null===(n=t.color)||void 0===n?void 0:n.h;v&&ns(e,v,h.h,360,!1);const p=null!==(r=null===(a=t.strokeColor)||void 0===a?void 0:a.s)&&void 0!==r?r:null===(l=t.color)||void 0===l?void 0:l.s;p&&ns(e,p,h.s,100,!0);const f=null!==(d=null===(c=t.strokeColor)||void 0===c?void 0:c.l)&&void 0!==d?d:null===(u=t.color)||void 0===u?void 0:u.l;f&&ns(e,f,h.l,100,!0)}(t,e)}}const rs=["text","character","char"];class ls{getSidesCount(){return 12}async init(t){const e=t.actualOptions;if(rs.find((t=>T(t,e.particles.shape.type)))){const t=rs.map((t=>e.particles.shape.options[t])).find((t=>!!t));if(t instanceof Array){const e=[];for(const i of t)e.push(O(i));await Promise.allSettled(e)}else void 0!==t&&await O(t)}}draw(t,e,i,o){var s,n,a;const r=e.shapeData;if(void 0===r)return;const l=r.value;if(void 0===l)return;const c=e;void 0===c.text&&(c.text=l instanceof Array?E(l,e.randomIndexData):l);const d=c.text,u=null!==(s=r.style)&&void 0!==s?s:"",h=null!==(n=r.weight)&&void 0!==n?n:"400",v=2*Math.round(i),p=null!==(a=r.font)&&void 0!==a?a:"Verdana",f=e.fill,y=d.length*i/2;t.font=`${u} ${h} ${v}px "${p}"`;const m={x:-y,y:i/2};t.globalAlpha=o,f?t.fillText(d,m.x,m.y):t.strokeText(d,m.x,m.y),t.globalAlpha=1}}const cs=new ho;cs.init();const{particlesJS:ds,pJSDom:us}=(t=>{const e=(e,i)=>t.load(e,i);e.load=(e,i,o)=>{t.loadJSON(e,i).then((t=>{t&&o(t)})).catch((()=>{o(void 0)}))},e.setOnClickHandler=e=>{t.setOnClickHandler(e)};return{particlesJS:e,pJSDom:t.dom()}})(cs);return async function(t){await async function(t){t.addMover("base",(()=>new po))}(t),await async function(t){t.addMover("parallax",(()=>new _o))}(t),await async function(t){await t.addInteractor("externalAttract",(t=>new go(t)))}(t),await async function(t){await t.addInteractor("externalBounce",(t=>new wo(t)))}(t),await async function(t){await t.addInteractor("externalBubble",(t=>new ko(t)))}(t),await async function(t){await t.addInteractor("externalConnect",(t=>new zo(t)))}(t),await async function(t){await t.addInteractor("externalGrab",(t=>new Mo(t)))}(t),await async function(t){await t.addInteractor("externalPause",(t=>new Co(t)))}(t),await async function(t){await t.addInteractor("externalPush",(t=>new Po(t)))}(t),await async function(t){await t.addInteractor("externalRemove",(t=>new So(t)))}(t),await async function(t){await t.addInteractor("externalRepulse",(t=>new To(t)))}(t),await async function(t){await t.addInteractor("particlesAttract",(t=>new jo(t)))}(t),await async function(t){await t.addInteractor("particlesCollisions",(t=>new Go(t)))}(t),await Yo(t),await async function(t){await t.addShape("circle",new fo)}(t),await async function(t){const e=new qo;await t.addShape("image",e),await t.addShape("images",e)}(t),await async function(t){await t.addShape("line",new Fo)}(t),await ts(t),await async function(t){const e=new os;await t.addShape("edge",e),await t.addShape("square",e)}(t),await async function(t){await t.addShape("star",new ss)}(t),await async function(t){const e=new ls;for(const i of rs)await t.addShape(i,e)}(t),await async function(t){await t.addParticleUpdater("life",(t=>new Ho(t)))}(t),await async function(t){await t.addParticleUpdater("opacity",(t=>new Vo(t)))}(t),await async function(t){await t.addParticleUpdater("size",(()=>new es))}(t),await async function(t){await t.addParticleUpdater("angle",(t=>new vo(t)))}(t),await async function(t){await t.addParticleUpdater("color",(t=>new mo(t)))}(t),await async function(t){await t.addParticleUpdater("strokeColor",(t=>new as(t)))}(t),await async function(t){await t.addParticleUpdater("outModes",(t=>new Wo(t)))}(t)}(cs),e}()}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.43.
|
|
1
|
+
/*! tsParticles v1.43.1 by Matteo Bruni */
|
|
2
2
|
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(window,(function(){return function(){"use strict";var e={d:function(t,n){for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function n(e){return"number"==typeof e?e:function(e){const t=a(e);let n=o(e);return t===n&&(n=0),Math.random()*(t-n)+n}(e)}function o(e){return"number"==typeof e?e:e.min}function a(e){return"number"==typeof e?e:e.max}e.r(t),e.d(t,{loadAngleUpdater:function(){return i}});class r{constructor(e){this.container=e}init(e){const t=e.options.rotate;e.rotate={enable:t.animation.enable,value:n(t.value)*Math.PI/180};let o=t.direction;if("random"===o){o=Math.floor(2*Math.random())>0?"counter-clockwise":"clockwise"}switch(o){case"counter-clockwise":case"counterClockwise":e.rotate.status=1;break;case"clockwise":e.rotate.status=0}const a=e.options.rotate.animation;a.enable&&(e.rotate.velocity=n(a.speed)/360*this.container.retina.reduceFactor,a.sync||(e.rotate.velocity*=Math.random()))}isEnabled(e){const t=e.options.rotate,n=t.animation;return!e.destroyed&&!e.spawning&&!t.path&&n.enable}update(e,t){this.isEnabled(e)&&function(e,t){var n;const o=e.rotate;if(!o)return;const a=e.options.rotate.animation,r=(null!==(n=o.velocity)&&void 0!==n?n:0)*t.factor,i=2*Math.PI;if(a.enable)switch(o.status){case 0:o.value+=r,o.value>i&&(o.value-=i);break;case 1:default:o.value-=r,o.value<0&&(o.value+=i)}}(e,t)}}async function i(e){await e.addParticleUpdater("angle",(e=>new r(e)))}return t}()}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.43.
|
|
1
|
+
/*! tsParticles v1.43.1 by Matteo Bruni */
|
|
2
2
|
!function(o,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t=e();for(var n in t)("object"==typeof exports?exports:o)[n]=t[n]}}(window,(function(){return function(){"use strict";var o={d:function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},r:function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}},e={};function t(o){const e=a(o);let t=r(o);return e===t&&(t=0),Math.random()*(e-t)+t}function n(o){return"number"==typeof o?o:t(o)}function r(o){return"number"==typeof o?o:o.min}function a(o){return"number"==typeof o?o:o.max}function l(o,e){if(o===e||void 0===e&&"number"==typeof o)return o;const t=r(o),n=a(o);return void 0!==e?{min:Math.min(t,e),max:Math.max(n,e)}:l(t,n)}o.r(e),o.d(e,{loadColorUpdater:function(){return y}});class s{}function i(o,e,t=!0){return o[void 0!==e&&t?e%o.length:function(o){return Math.floor(Math.random()*o.length)}(o)]}function u(o,e,t){let n=t;return n<0&&(n+=1),n>1&&(n-=1),n<1/6?o+6*(e-o)*n:n<.5?e:n<2/3?o+(e-o)*(2/3-n)*6:o}function c(o){if(o.startsWith("rgb")){const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.]+)\s*)?\)/i.exec(o);return e?{a:e.length>4?parseFloat(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}if(o.startsWith("hsl")){const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(o);return e?function(o){const e=f(o);return{a:o.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}if(o.startsWith("hsv")){const e=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(o);return e?function(o){const e=h(o);return{a:o.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),s:parseInt(e[2],10),v:parseInt(e[3],10)}):void 0}{const e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,t=o.replace(e,((o,e,t,n,r)=>e+e+t+t+n+n+(void 0!==r?r+r:""))),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(t);return n?{a:void 0!==n[4]?parseInt(n[4],16)/255:1,b:parseInt(n[3],16),g:parseInt(n[2],16),r:parseInt(n[1],16)}:void 0}}function d(o,e,t=!0){var n,r,a;if(void 0===o)return;const l="string"==typeof o?{value:o}:o;let u;if("string"==typeof l.value)u=l.value===s.randomColorValue?b():function(o){return c(o)}(l.value);else if(l.value instanceof Array){u=d({value:i(l.value,e,t)})}else{const o=l.value,e=null!==(n=o.rgb)&&void 0!==n?n:l.value;if(void 0!==e.r)u=e;else{const e=null!==(r=o.hsl)&&void 0!==r?r:l.value;if(void 0!==e.h&&void 0!==e.l)u=f(e);else{const e=null!==(a=o.hsv)&&void 0!==a?a:l.value;void 0!==e.h&&void 0!==e.v&&(u=h(e))}}}return u}function v(o,e,t=!0){const n=d(o,e,t);return void 0!==n?function(o){const e=o.r/255,t=o.g/255,n=o.b/255,r=Math.max(e,t,n),a=Math.min(e,t,n),l={h:0,l:(r+a)/2,s:0};r!==a&&(l.s=l.l<.5?(r-a)/(r+a):(r-a)/(2-r-a),l.h=e===r?(t-n)/(r-a):l.h=t===r?2+(n-e)/(r-a):4+(e-t)/(r-a));l.l*=100,l.s*=100,l.h*=60,l.h<0&&(l.h+=360);return l}(n):void 0}function f(o){const e={b:0,g:0,r:0},t={h:o.h/360,l:o.l/100,s:o.s/100};if(0===t.s)e.b=t.l,e.g=t.l,e.r=t.l;else{const o=t.l<.5?t.l*(1+t.s):t.l+t.s-t.l*t.s,n=2*t.l-o;e.r=u(n,o,t.h+1/3),e.g=u(n,o,t.h),e.b=u(n,o,t.h-1/3)}return e.r=Math.floor(255*e.r),e.g=Math.floor(255*e.g),e.b=Math.floor(255*e.b),e}function h(o){const e={b:0,g:0,r:0},t=o.h/60,n=o.s/100,r=o.v/100,a=r*n,l=a*(1-Math.abs(t%2-1));let s;if(t>=0&&t<=1?s={r:a,g:l,b:0}:t>1&&t<=2?s={r:l,g:a,b:0}:t>2&&t<=3?s={r:0,g:a,b:l}:t>3&&t<=4?s={r:0,g:l,b:a}:t>4&&t<=5?s={r:l,g:0,b:a}:t>5&&t<=6&&(s={r:a,g:0,b:l}),s){const o=r-a;e.r=Math.floor(255*(s.r+o)),e.g=Math.floor(255*(s.g+o)),e.b=Math.floor(255*(s.b+o))}return e}function b(o){const e=null!=o?o:0;return{b:Math.floor(t(l(e,256))),g:Math.floor(t(l(e,256))),r:Math.floor(t(l(e,256)))}}function p(o,e,t){if(o.enable=e.enable,o.enable){if(o.velocity=n(e.speed)/100*t,e.sync)return;o.status=0,o.velocity*=Math.random(),o.value&&(o.value*=Math.random())}else o.velocity=0}function g(o,e,n,r,a){var l;const s=e;if(!s||!n.enable)return;const i=t(n.offset),u=(null!==(l=e.velocity)&&void 0!==l?l:0)*o.factor+3.6*i;a&&0!==s.status?(s.value-=u,s.value<0&&(s.status=0,s.value+=s.value)):(s.value+=u,a&&s.value>r&&(s.status=1,s.value-=s.value%r)),s.value>r&&(s.value%=r)}s.generatedAttribute="generated",s.randomColorValue="random",s.midColorValue="mid",s.touchEndEvent="touchend",s.mouseDownEvent="mousedown",s.mouseUpEvent="mouseup",s.mouseMoveEvent="mousemove",s.touchStartEvent="touchstart",s.touchMoveEvent="touchmove",s.mouseLeaveEvent="mouseleave",s.mouseOutEvent="mouseout",s.touchCancelEvent="touchcancel",s.resizeEvent="resize",s.visibilityChangeEvent="visibilitychange",s.noPolygonDataLoaded="No polygon data loaded.",s.noPolygonFound="No polygon found, you need to specify SVG url in config.";class m{constructor(o){this.container=o}init(o){const e=v(o.options.color,o.id,o.options.reduceDuplicates);e&&(o.color=function(o,e,t){const n={h:{enable:!1,value:o.h},s:{enable:!1,value:o.s},l:{enable:!1,value:o.l}};return e&&(p(n.h,e.h,t),p(n.s,e.s,t),p(n.l,e.l,t)),n}(e,o.options.color.animation,this.container.retina.reduceFactor))}isEnabled(o){var e,t,n;const r=o.options.color.animation;return!o.destroyed&&!o.spawning&&(void 0!==(null===(e=o.color)||void 0===e?void 0:e.h.value)&&r.h.enable||void 0!==(null===(t=o.color)||void 0===t?void 0:t.s.value)&&r.s.enable||void 0!==(null===(n=o.color)||void 0===n?void 0:n.l.value)&&r.l.enable)}update(o,e){!function(o,e){var t,n,r;const a=o.options.color.animation;void 0!==(null===(t=o.color)||void 0===t?void 0:t.h)&&g(e,o.color.h,a.h,360,!1),void 0!==(null===(n=o.color)||void 0===n?void 0:n.s)&&g(e,o.color.s,a.s,100,!0),void 0!==(null===(r=o.color)||void 0===r?void 0:r.l)&&g(e,o.color.l,a.l,100,!0)}(o,e)}}async function y(o){await o.addParticleUpdater("color",(o=>new m(o)))}return e}()}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.43.
|
|
1
|
+
/*! tsParticles v1.43.1 by Matteo Bruni */
|
|
2
2
|
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(window,(function(){return function(){"use strict";var e={d:function(t,n){for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function n(e){const t=r(e);let n=o(e);return t===n&&(n=0),Math.random()*(t-n)+n}function i(e){return"number"==typeof e?e:n(e)}function o(e){return"number"==typeof e?e:e.min}function r(e){return"number"==typeof e?e:e.max}function u(e,t){if(e===t||void 0===t&&"number"==typeof e)return e;const n=o(e),i=r(e);return void 0!==t?{min:Math.min(n,t),max:Math.max(i,t)}:u(n,i)}e.r(t),e.d(t,{loadLifeUpdater:function(){return f}});class a{constructor(e){this.container=e}init(){}isEnabled(e){return!e.destroyed}update(e,t){if(!this.isEnabled(e))return;const o=e.life;let r=!1;if(e.spawning){if(o.delayTime+=t.value,!(o.delayTime>=e.life.delay))return;r=!0,e.spawning=!1,o.delayTime=0,o.time=0}if(-1===o.duration)return;if(e.spawning)return;if(r?o.time=0:o.time+=t.value,o.time<o.duration)return;if(o.time=0,e.life.count>0&&e.life.count--,0===e.life.count)return void e.destroy();const a=this.container.canvas.size,f=u(0,a.width),d=u(0,a.width);e.position.x=n(f),e.position.y=n(d),e.spawning=!0,o.delayTime=0,o.time=0,e.reset();const c=e.options.life;o.delay=1e3*i(c.delay.value),o.duration=1e3*i(c.duration.value)}}async function f(e){await e.addParticleUpdater("life",(e=>new a(e)))}return t}()}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.43.
|
|
1
|
+
/*! tsParticles v1.43.1 by Matteo Bruni */
|
|
2
2
|
!function(o,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var e in a)("object"==typeof exports?exports:o)[e]=a[e]}}(window,(function(){return function(){"use strict";var o={d:function(t,a){for(var e in a)o.o(a,e)&&!o.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:a[e]})},o:function(o,t){return Object.prototype.hasOwnProperty.call(o,t)},r:function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}},t={};function a(o){const t=n(o);let a=i(o);return t===a&&(a=0),Math.random()*(t-a)+a}function e(o){return"number"==typeof o?o:a(o)}function i(o){return"number"==typeof o?o:o.min}function n(o){return"number"==typeof o?o:o.max}function c(o,t){var a,e,i,n,c;if(!o.opacity)return;const p=o.opacity.min,r=o.opacity.max;if(!(o.destroyed||!o.opacity.enable||(null!==(a=o.opacity.maxLoops)&&void 0!==a?a:0)>0&&(null!==(e=o.opacity.loops)&&void 0!==e?e:0)>(null!==(i=o.opacity.maxLoops)&&void 0!==i?i:0))){switch(o.opacity.status){case 0:o.opacity.value>=r?(o.opacity.status=1,o.opacity.loops||(o.opacity.loops=0),o.opacity.loops++):o.opacity.value+=(null!==(n=o.opacity.velocity)&&void 0!==n?n:0)*t.factor;break;case 1:o.opacity.value<=p?(o.opacity.status=0,o.opacity.loops||(o.opacity.loops=0),o.opacity.loops++):o.opacity.value-=(null!==(c=o.opacity.velocity)&&void 0!==c?c:0)*t.factor}var y,s,u;!function(o,t,a,e){switch(o.options.opacity.animation.destroy){case"max":t>=e&&o.destroy();break;case"min":t<=a&&o.destroy()}}(o,o.opacity.value,p,r),o.destroyed||(o.opacity.value=(y=o.opacity.value,s=p,u=r,Math.min(Math.max(y,s),u)))}}o.r(t),o.d(t,{loadOpacityUpdater:function(){return r}});class p{constructor(o){this.container=o}init(o){const t=o.options.opacity;o.opacity={enable:t.animation.enable,max:n(t.value),min:i(t.value),value:e(t.value),loops:0,maxLoops:e(t.animation.count)};const c=t.animation;if(c.enable){o.opacity.status=0;const p=t.value;switch(o.opacity.min=i(p),o.opacity.max=n(p),c.startValue){case"min":o.opacity.value=o.opacity.min,o.opacity.status=0;break;case"random":o.opacity.value=a(o.opacity),o.opacity.status=Math.random()>=.5?0:1;break;case"max":default:o.opacity.value=o.opacity.max,o.opacity.status=1}o.opacity.velocity=e(c.speed)/100*this.container.retina.reduceFactor,c.sync||(o.opacity.velocity*=Math.random())}}isEnabled(o){var t,a,e,i;return!o.destroyed&&!o.spawning&&!!o.opacity&&o.opacity.enable&&((null!==(t=o.opacity.maxLoops)&&void 0!==t?t:0)<=0||(null!==(a=o.opacity.maxLoops)&&void 0!==a?a:0)>0&&(null!==(e=o.opacity.loops)&&void 0!==e?e:0)<(null!==(i=o.opacity.maxLoops)&&void 0!==i?i:0))}update(o,t){this.isEnabled(o)&&c(o,t)}}async function r(o){await o.addParticleUpdater("opacity",(o=>new p(o)))}return t}()}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.43.
|
|
1
|
+
/*! tsParticles v1.43.1 by Matteo Bruni */
|
|
2
2
|
!function(t,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var i=o();for(var e in i)("object"==typeof exports?exports:t)[e]=i[e]}}(window,(function(){return function(){"use strict";var t={d:function(o,i){for(var e in i)t.o(i,e)&&!t.o(o,e)&&Object.defineProperty(o,e,{enumerable:!0,get:i[e]})},o:function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},o={};function i(t){return"number"==typeof t?t:function(t){const o=n(t);let i=e(t);return o===i&&(i=0),Math.random()*(o-i)+i}(t)}function e(t){return"number"==typeof t?t:t.min}function n(t){return"number"==typeof t?t:t.max}function s(t,o,i,e){return function(t,o,i){let e=!0;i&&"bottom"!==i||(e=t.top<o.height);!e||i&&"left"!==i||(e=t.right>0);!e||i&&"right"!==i||(e=t.left<o.width);!e||i&&"top"!==i||(e=t.bottom>0);return e}(r(t,null!=i?i:0),o,e)}function r(t,o){return{bottom:t.y+o,left:t.x-o,right:t.x+o,top:t.y-o}}t.r(o),t.d(o,{loadOutModesUpdater:function(){return c}});class a{constructor(t){this.container=t}init(){}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,o){var i,e,n,s;const r=t.options.move.outModes;this.updateOutMode(t,o,null!==(i=r.bottom)&&void 0!==i?i:r.default,"bottom"),this.updateOutMode(t,o,null!==(e=r.left)&&void 0!==e?e:r.default,"left"),this.updateOutMode(t,o,null!==(n=r.right)&&void 0!==n?n:r.default,"right"),this.updateOutMode(t,o,null!==(s=r.top)&&void 0!==s?s:r.default,"top")}updateOutMode(t,o,i,e){switch(i){case"bounce":case"bounce-vertical":case"bounce-horizontal":case"bounceVertical":case"bounceHorizontal":case"split":this.bounce(t,o,e,i);break;case"destroy":this.destroy(t,e);break;case"out":this.out(t,e);break;case"none":default:this.none(t,e)}}destroy(t,o){const i=this.container;s(t.position,i.canvas.size,t.getRadius(),o)||i.particles.remove(t,void 0,!0)}out(t,o){const i=this.container;if(s(t.position,i.canvas.size,t.getRadius(),o))return;const e=t.options.move.warp,n=i.canvas.size,a={bottom:n.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:n.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},c=t.getRadius(),u=r(t.position,c);"right"===o&&u.left>n.width+t.offset.x?(t.position.x=a.left,t.initialPosition.x=t.position.x,e||(t.position.y=Math.random()*n.height,t.initialPosition.y=t.position.y)):"left"===o&&u.right<-t.offset.x&&(t.position.x=a.right,t.initialPosition.x=t.position.x,e||(t.position.y=Math.random()*n.height,t.initialPosition.y=t.position.y)),"bottom"===o&&u.top>n.height+t.offset.y?(e||(t.position.x=Math.random()*n.width,t.initialPosition.x=t.position.x),t.position.y=a.top,t.initialPosition.y=t.position.y):"top"===o&&u.bottom<-t.offset.y&&(e||(t.position.x=Math.random()*n.width,t.initialPosition.x=t.position.x),t.position.y=a.bottom,t.initialPosition.y=t.position.y)}bounce(t,o,e,n){const s=this.container;let a=!1;for(const[,i]of s.plugins)if(void 0!==i.particleBounce&&(a=i.particleBounce(t,o,e)),a)break;if(a)return;const c=t.getPosition(),u=t.offset,l=t.getRadius(),d=r(c,l),p=s.canvas.size;!function(t){if("bounce"!==t.outMode&&"bounce-horizontal"!==t.outMode&&"bounceHorizontal"!==t.outMode&&"split"!==t.outMode)return;const o=t.particle.velocity.x;let e=!1;if("right"===t.direction&&t.bounds.right>=t.canvasSize.width&&o>0||"left"===t.direction&&t.bounds.left<=0&&o<0){const o=i(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-o,e=!0}if(!e)return;const n=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width?t.particle.position.x=t.canvasSize.width-n:t.bounds.left<=0&&(t.particle.position.x=n),"split"===t.outMode&&t.particle.destroy()}({particle:t,outMode:n,direction:e,bounds:d,canvasSize:p,offset:u,size:l}),function(t){if("bounce"===t.outMode||"bounce-vertical"===t.outMode||"bounceVertical"===t.outMode||"split"===t.outMode){const o=t.particle.velocity.y;let e=!1;if("bottom"===t.direction&&t.bounds.bottom>=t.canvasSize.height&&o>0||"top"===t.direction&&t.bounds.top<=0&&o<0){const o=i(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-o,e=!0}if(!e)return;const n=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height?t.particle.position.y=t.canvasSize.height-n:t.bounds.top<=0&&(t.particle.position.y=n),"split"===t.outMode&&t.particle.destroy()}}({particle:t,outMode:n,direction:e,bounds:d,canvasSize:p,offset:u,size:l})}none(t,o){if(t.options.move.distance.horizontal&&("left"===o||"right"===o)||t.options.move.distance.vertical&&("top"===o||"bottom"===o))return;const i=t.options.move.gravity,e=this.container,n=e.canvas.size,r=t.getRadius();if(i.enable){const s=t.position;(!i.inverse&&s.y>n.height+r&&"bottom"===o||i.inverse&&s.y<-r&&"top"===o)&&e.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=n.height+r||t.velocity.y<0&&t.position.y>=-r||t.velocity.x>0&&t.position.x<=n.width+r||t.velocity.x<0&&t.position.x>=-r)return;s(t.position,e.canvas.size,r,o)||e.particles.remove(t)}}}async function c(t){await t.addParticleUpdater("outModes",(t=>new a(t)))}return o}()}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.43.
|
|
1
|
+
/*! tsParticles v1.43.1 by Matteo Bruni */
|
|
2
2
|
!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t=n();for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(window,(function(){return function(){"use strict";var e={d:function(n,t){for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};function t(e){const n=a(e);let t=r(e);return n===t&&(t=0),Math.random()*(n-t)+t}function o(e){return"number"==typeof e?e:t(e)}function r(e){return"number"==typeof e?e:e.min}function a(e){return"number"==typeof e?e:e.max}function l(e,n){if(e===n||void 0===n&&"number"==typeof e)return e;const t=r(e),o=a(e);return void 0!==n?{min:Math.min(t,n),max:Math.max(o,n)}:l(t,o)}e.r(n),e.d(n,{loadRollUpdater:function(){return b}});class s{}function i(e,n,t=!0){return e[void 0!==n&&t?n%e.length:function(e){return Math.floor(Math.random()*e.length)}(e)]}function u(e,n,t){let o=t;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(n-e)*o:o<.5?n:o<2/3?e+(n-e)*(2/3-o)*6:e}function d(e){if(e.startsWith("rgb")){const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.]+)\s*)?\)/i.exec(e);return n?{a:n.length>4?parseFloat(n[5]):1,b:parseInt(n[3],10),g:parseInt(n[2],10),r:parseInt(n[1],10)}:void 0}if(e.startsWith("hsl")){const n=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(e);return n?function(e){const n=v(e);return{a:e.a,b:n.b,g:n.g,r:n.r}}({a:n.length>4?parseFloat(n[5]):1,h:parseInt(n[1],10),l:parseInt(n[3],10),s:parseInt(n[2],10)}):void 0}if(e.startsWith("hsv")){const n=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(e);return n?function(e){const n=h(e);return{a:e.a,b:n.b,g:n.g,r:n.r}}({a:n.length>4?parseFloat(n[5]):1,h:parseInt(n[1],10),s:parseInt(n[2],10),v:parseInt(n[3],10)}):void 0}{const n=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,t=e.replace(n,((e,n,t,o,r)=>n+n+t+t+o+o+(void 0!==r?r+r:""))),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(t);return o?{a:void 0!==o[4]?parseInt(o[4],16)/255:1,b:parseInt(o[3],16),g:parseInt(o[2],16),r:parseInt(o[1],16)}:void 0}}function c(e,n,t=!0){var o,r,a;if(void 0===e)return;const l="string"==typeof e?{value:e}:e;let u;if("string"==typeof l.value)u=l.value===s.randomColorValue?g():function(e){return d(e)}(l.value);else if(l.value instanceof Array){u=c({value:i(l.value,n,t)})}else{const e=l.value,n=null!==(o=e.rgb)&&void 0!==o?o:l.value;if(void 0!==n.r)u=n;else{const n=null!==(r=e.hsl)&&void 0!==r?r:l.value;if(void 0!==n.h&&void 0!==n.l)u=v(n);else{const n=null!==(a=e.hsv)&&void 0!==a?a:l.value;void 0!==n.h&&void 0!==n.v&&(u=h(n))}}}return u}function f(e,n,t=!0){const o=c(e,n,t);return void 0!==o?function(e){const n=e.r/255,t=e.g/255,o=e.b/255,r=Math.max(n,t,o),a=Math.min(n,t,o),l={h:0,l:(r+a)/2,s:0};r!==a&&(l.s=l.l<.5?(r-a)/(r+a):(r-a)/(2-r-a),l.h=n===r?(t-o)/(r-a):l.h=t===r?2+(o-n)/(r-a):4+(n-t)/(r-a));l.l*=100,l.s*=100,l.h*=60,l.h<0&&(l.h+=360);return l}(o):void 0}function v(e){const n={b:0,g:0,r:0},t={h:e.h/360,l:e.l/100,s:e.s/100};if(0===t.s)n.b=t.l,n.g=t.l,n.r=t.l;else{const e=t.l<.5?t.l*(1+t.s):t.l+t.s-t.l*t.s,o=2*t.l-e;n.r=u(o,e,t.h+1/3),n.g=u(o,e,t.h),n.b=u(o,e,t.h-1/3)}return n.r=Math.floor(255*n.r),n.g=Math.floor(255*n.g),n.b=Math.floor(255*n.b),n}function h(e){const n={b:0,g:0,r:0},t=e.h/60,o=e.s/100,r=e.v/100,a=r*o,l=a*(1-Math.abs(t%2-1));let s;if(t>=0&&t<=1?s={r:a,g:l,b:0}:t>1&&t<=2?s={r:l,g:a,b:0}:t>2&&t<=3?s={r:0,g:a,b:l}:t>3&&t<=4?s={r:0,g:l,b:a}:t>4&&t<=5?s={r:l,g:0,b:a}:t>5&&t<=6&&(s={r:a,g:0,b:l}),s){const e=r-a;n.r=Math.floor(255*(s.r+e)),n.g=Math.floor(255*(s.g+e)),n.b=Math.floor(255*(s.b+e))}return n}function g(e){const n=null!=e?e:0;return{b:Math.floor(t(l(n,256))),g:Math.floor(t(l(n,256))),r:Math.floor(t(l(n,256)))}}s.generatedAttribute="generated",s.randomColorValue="random",s.midColorValue="mid",s.touchEndEvent="touchend",s.mouseDownEvent="mousedown",s.mouseUpEvent="mouseup",s.mouseMoveEvent="mousemove",s.touchStartEvent="touchstart",s.touchMoveEvent="touchmove",s.mouseLeaveEvent="mouseleave",s.mouseOutEvent="mouseout",s.touchCancelEvent="touchcancel",s.resizeEvent="resize",s.visibilityChangeEvent="visibilitychange",s.noPolygonDataLoaded="No polygon data loaded.",s.noPolygonFound="No polygon found, you need to specify SVG url in config.";class p{init(e){const n=e.options.roll;if(n.enable)if(e.roll={angle:Math.random()*Math.PI*2,speed:o(n.speed)/360},n.backColor)e.backColor=f(n.backColor);else if(n.darken.enable&&n.enlighten.enable){const t=Math.random()>=.5?"darken":"enlighten";e.roll.alter={type:t,value:o("darken"===t?n.darken.value:n.enlighten.value)}}else n.darken.enable?e.roll.alter={type:"darken",value:o(n.darken.value)}:n.enlighten.enable&&(e.roll.alter={type:"enlighten",value:o(n.enlighten.value)});else e.roll={angle:0,speed:0}}isEnabled(e){const n=e.options.roll;return!e.destroyed&&!e.spawning&&n.enable}update(e,n){this.isEnabled(e)&&function(e,n){const t=e.options.roll;if(!e.roll||!t.enable)return;const o=e.roll.speed*n.factor,r=2*Math.PI;e.roll.angle+=o,e.roll.angle>r&&(e.roll.angle-=r)}(e,n)}}async function b(e){await e.addParticleUpdater("roll",(()=>new p))}return n}()}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.43.
|
|
1
|
+
/*! tsParticles v1.43.1 by Matteo Bruni */
|
|
2
2
|
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var i=o();for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(window,(function(){return function(){"use strict";var e={d:function(o,i){for(var s in i)e.o(i,s)&&!e.o(o,s)&&Object.defineProperty(o,s,{enumerable:!0,get:i[s]})},o:function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};function i(e,o){var i,s,t,n;const a=(null!==(i=e.size.velocity)&&void 0!==i?i:0)*o.factor,l=e.size.min,r=e.size.max;if(!(e.destroyed||!e.size.enable||(null!==(s=e.size.maxLoops)&&void 0!==s?s:0)>0&&(null!==(t=e.size.loops)&&void 0!==t?t:0)>(null!==(n=e.size.maxLoops)&&void 0!==n?n:0))){switch(e.size.status){case 0:e.size.value>=r?(e.size.status=1,e.size.loops||(e.size.loops=0),e.size.loops++):e.size.value+=a;break;case 1:e.size.value<=l?(e.size.status=0,e.size.loops||(e.size.loops=0),e.size.loops++):e.size.value-=a}var u,d,p;!function(e,o,i,s){switch(e.options.size.animation.destroy){case"max":o>=s&&e.destroy();break;case"min":o<=i&&e.destroy()}}(e,e.size.value,l,r),e.destroyed||(e.size.value=(u=e.size.value,d=l,p=r,Math.min(Math.max(u,d),p)))}}e.r(o),e.d(o,{loadSizeUpdater:function(){return t}});class s{init(){}isEnabled(e){var o,i,s,t;return!e.destroyed&&!e.spawning&&e.size.enable&&((null!==(o=e.size.maxLoops)&&void 0!==o?o:0)<=0||(null!==(i=e.size.maxLoops)&&void 0!==i?i:0)>0&&(null!==(s=e.size.loops)&&void 0!==s?s:0)<(null!==(t=e.size.maxLoops)&&void 0!==t?t:0))}update(e,o){this.isEnabled(e)&&i(e,o)}}async function t(e){await e.addParticleUpdater("size",(()=>new s))}return o}()}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.43.
|
|
1
|
+
/*! tsParticles v1.43.1 by Matteo Bruni */
|
|
2
2
|
!function(o,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t=e();for(var n in t)("object"==typeof exports?exports:o)[n]=t[n]}}(window,(function(){return function(){"use strict";var o={d:function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},r:function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}},e={};function t(o){const e=l(o);let t=r(o);return e===t&&(t=0),Math.random()*(e-t)+t}function n(o){return"number"==typeof o?o:t(o)}function r(o){return"number"==typeof o?o:o.min}function l(o){return"number"==typeof o?o:o.max}function a(o,e){if(o===e||void 0===e&&"number"==typeof o)return o;const t=r(o),n=l(o);return void 0!==e?{min:Math.min(t,e),max:Math.max(n,e)}:a(t,n)}o.r(e),o.d(e,{loadStrokeColorUpdater:function(){return y}});class s{}function i(o,e,t=!0){return o[void 0!==e&&t?e%o.length:function(o){return Math.floor(Math.random()*o.length)}(o)]}function u(o,e,t){let n=t;return n<0&&(n+=1),n>1&&(n-=1),n<1/6?o+6*(e-o)*n:n<.5?e:n<2/3?o+(e-o)*(2/3-n)*6:o}function d(o){if(o.startsWith("rgb")){const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.]+)\s*)?\)/i.exec(o);return e?{a:e.length>4?parseFloat(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}if(o.startsWith("hsl")){const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(o);return e?function(o){const e=f(o);return{a:o.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}if(o.startsWith("hsv")){const e=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(o);return e?function(o){const e=h(o);return{a:o.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),s:parseInt(e[2],10),v:parseInt(e[3],10)}):void 0}{const e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,t=o.replace(e,((o,e,t,n,r)=>e+e+t+t+n+n+(void 0!==r?r+r:""))),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(t);return n?{a:void 0!==n[4]?parseInt(n[4],16)/255:1,b:parseInt(n[3],16),g:parseInt(n[2],16),r:parseInt(n[1],16)}:void 0}}function v(o,e,t=!0){var n,r,l;if(void 0===o)return;const a="string"==typeof o?{value:o}:o;let u;if("string"==typeof a.value)u=a.value===s.randomColorValue?b():function(o){return d(o)}(a.value);else if(a.value instanceof Array){u=v({value:i(a.value,e,t)})}else{const o=a.value,e=null!==(n=o.rgb)&&void 0!==n?n:a.value;if(void 0!==e.r)u=e;else{const e=null!==(r=o.hsl)&&void 0!==r?r:a.value;if(void 0!==e.h&&void 0!==e.l)u=f(e);else{const e=null!==(l=o.hsv)&&void 0!==l?l:a.value;void 0!==e.h&&void 0!==e.v&&(u=h(e))}}}return u}function c(o,e,t=!0){const n=v(o,e,t);return void 0!==n?function(o){const e=o.r/255,t=o.g/255,n=o.b/255,r=Math.max(e,t,n),l=Math.min(e,t,n),a={h:0,l:(r+l)/2,s:0};r!==l&&(a.s=a.l<.5?(r-l)/(r+l):(r-l)/(2-r-l),a.h=e===r?(t-n)/(r-l):a.h=t===r?2+(n-e)/(r-l):4+(e-t)/(r-l));a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360);return a}(n):void 0}function f(o){const e={b:0,g:0,r:0},t={h:o.h/360,l:o.l/100,s:o.s/100};if(0===t.s)e.b=t.l,e.g=t.l,e.r=t.l;else{const o=t.l<.5?t.l*(1+t.s):t.l+t.s-t.l*t.s,n=2*t.l-o;e.r=u(n,o,t.h+1/3),e.g=u(n,o,t.h),e.b=u(n,o,t.h-1/3)}return e.r=Math.floor(255*e.r),e.g=Math.floor(255*e.g),e.b=Math.floor(255*e.b),e}function h(o){const e={b:0,g:0,r:0},t=o.h/60,n=o.s/100,r=o.v/100,l=r*n,a=l*(1-Math.abs(t%2-1));let s;if(t>=0&&t<=1?s={r:l,g:a,b:0}:t>1&&t<=2?s={r:a,g:l,b:0}:t>2&&t<=3?s={r:0,g:l,b:a}:t>3&&t<=4?s={r:0,g:a,b:l}:t>4&&t<=5?s={r:a,g:0,b:l}:t>5&&t<=6&&(s={r:l,g:0,b:a}),s){const o=r-l;e.r=Math.floor(255*(s.r+o)),e.g=Math.floor(255*(s.g+o)),e.b=Math.floor(255*(s.b+o))}return e}function b(o){const e=null!=o?o:0;return{b:Math.floor(t(a(e,256))),g:Math.floor(t(a(e,256))),r:Math.floor(t(a(e,256)))}}function p(o,e,t){if(o.enable=e.enable,o.enable){if(o.velocity=n(e.speed)/100*t,e.sync)return;o.status=0,o.velocity*=Math.random(),o.value&&(o.value*=Math.random())}else o.velocity=0}function g(o,e,n,r,l){var a;const s=e;if(!s||!s.enable)return;const i=t(n.offset),u=(null!==(a=e.velocity)&&void 0!==a?a:0)*o.factor+3.6*i;l&&0!==s.status?(s.value-=u,s.value<0&&(s.status=0,s.value+=s.value)):(s.value+=u,l&&s.value>r&&(s.status=1,s.value-=s.value%r)),s.value>r&&(s.value%=r)}s.generatedAttribute="generated",s.randomColorValue="random",s.midColorValue="mid",s.touchEndEvent="touchend",s.mouseDownEvent="mousedown",s.mouseUpEvent="mouseup",s.mouseMoveEvent="mousemove",s.touchStartEvent="touchstart",s.touchMoveEvent="touchmove",s.mouseLeaveEvent="mouseleave",s.mouseOutEvent="mouseout",s.touchCancelEvent="touchcancel",s.resizeEvent="resize",s.visibilityChangeEvent="visibilitychange",s.noPolygonDataLoaded="No polygon data loaded.",s.noPolygonFound="No polygon found, you need to specify SVG url in config.";class m{constructor(o){this.container=o}init(o){var e,t;const n=this.container;o.stroke=o.options.stroke instanceof Array?i(o.options.stroke,o.id,o.options.reduceDuplicates):o.options.stroke,o.strokeWidth=o.stroke.width*n.retina.pixelRatio;const r=null!==(e=c(o.stroke.color))&&void 0!==e?e:o.getFillColor();r&&(o.strokeColor=function(o,e,t){const n={h:{enable:!1,value:o.h},s:{enable:!1,value:o.s},l:{enable:!1,value:o.l}};return e&&(p(n.h,e.h,t),p(n.s,e.s,t),p(n.l,e.l,t)),n}(r,null===(t=o.stroke.color)||void 0===t?void 0:t.animation,n.retina.reduceFactor))}isEnabled(o){var e,t,n,r;const l=null===(e=o.stroke)||void 0===e?void 0:e.color;return!o.destroyed&&!o.spawning&&!!l&&(void 0!==(null===(t=o.strokeColor)||void 0===t?void 0:t.h.value)&&l.animation.h.enable||void 0!==(null===(n=o.strokeColor)||void 0===n?void 0:n.s.value)&&l.animation.s.enable||void 0!==(null===(r=o.strokeColor)||void 0===r?void 0:r.l.value)&&l.animation.l.enable)}update(o,e){this.isEnabled(o)&&function(o,e){var t,n,r,l,a,s,i,u,d,v;if(!(null===(t=o.stroke)||void 0===t?void 0:t.color))return;const c=o.stroke.color.animation,f=null!==(r=null===(n=o.strokeColor)||void 0===n?void 0:n.h)&&void 0!==r?r:null===(l=o.color)||void 0===l?void 0:l.h;f&&g(e,f,c.h,360,!1);const h=null!==(s=null===(a=o.strokeColor)||void 0===a?void 0:a.s)&&void 0!==s?s:null===(i=o.color)||void 0===i?void 0:i.s;h&&g(e,h,c.s,100,!0);const b=null!==(d=null===(u=o.strokeColor)||void 0===u?void 0:u.l)&&void 0!==d?d:null===(v=o.color)||void 0===v?void 0:v.l;b&&g(e,b,c.l,100,!0)}(o,e)}}async function y(o){await o.addParticleUpdater("strokeColor",(o=>new m(o)))}return e}()}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.43.
|
|
1
|
+
/*! tsParticles v1.43.1 by Matteo Bruni */
|
|
2
2
|
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(window,(function(){return function(){"use strict";var t={d:function(e,n){for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){return"number"==typeof t?t:function(t){const e=i(t);let n=o(t);return e===n&&(n=0),Math.random()*(e-n)+n}(t)}function o(t){return"number"==typeof t?t:t.min}function i(t){return"number"==typeof t?t:t.max}t.r(e),t.d(e,{loadTiltUpdater:function(){return r}});class a{constructor(t){this.container=t}init(t){const e=t.options.tilt;t.tilt={enable:e.enable,value:n(e.value)*Math.PI/180,sinDirection:Math.random()>=.5?1:-1,cosDirection:Math.random()>=.5?1:-1};let o=e.direction;if("random"===o){o=Math.floor(2*Math.random())>0?"counter-clockwise":"clockwise"}switch(o){case"counter-clockwise":case"counterClockwise":t.tilt.status=1;break;case"clockwise":t.tilt.status=0}const i=t.options.tilt.animation;i.enable&&(t.tilt.velocity=n(i.speed)/360*this.container.retina.reduceFactor,i.sync||(t.tilt.velocity*=Math.random()))}isEnabled(t){const e=t.options.tilt.animation;return!t.destroyed&&!t.spawning&&e.enable}update(t,e){this.isEnabled(t)&&function(t,e){var n;if(!t.tilt)return;const o=t.options.tilt.animation,i=(null!==(n=t.tilt.velocity)&&void 0!==n?n:0)*e.factor,a=2*Math.PI;if(o.enable)switch(t.tilt.status){case 0:t.tilt.value+=i,t.tilt.value>a&&(t.tilt.value-=a);break;case 1:default:t.tilt.value-=i,t.tilt.value<0&&(t.tilt.value+=a)}}(t,e)}}async function r(t){await t.addParticleUpdater("tilt",(t=>new a(t)))}return e}()}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.43.
|
|
1
|
+
/*! tsParticles v1.43.1 by Matteo Bruni */
|
|
2
2
|
!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t=n();for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(window,(function(){return function(){"use strict";var e={d:function(n,t){for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};function t(e){return"number"==typeof e?e:function(e){const n=r(e);let t=o(e);return n===t&&(t=0),Math.random()*(n-t)+t}(e)}function o(e){return"number"==typeof e?e:e.min}function r(e){return"number"==typeof e?e:e.max}e.r(n),e.d(n,{loadWobbleUpdater:function(){return a}});class i{constructor(e){this.container=e}init(e){const n=e.options.wobble;n.enable?e.wobble={angle:Math.random()*Math.PI*2,speed:t(n.speed)/360}:e.wobble={angle:0,speed:0},e.retina.wobbleDistance=t(n.distance)*this.container.retina.pixelRatio}isEnabled(e){return!e.destroyed&&!e.spawning&&e.options.wobble.enable}update(e,n){this.isEnabled(e)&&function(e,n){var t;if(!e.options.wobble.enable||!e.wobble)return;const o=e.wobble.speed*n.factor,r=(null!==(t=e.retina.wobbleDistance)&&void 0!==t?t:0)*n.factor/(1e3/60),i=2*Math.PI;e.wobble.angle+=o,e.wobble.angle>i&&(e.wobble.angle-=i),e.position.x+=r*Math.cos(e.wobble.angle),e.position.y+=r*Math.abs(Math.sin(e.wobble.angle))}(e,n)}}async function a(e){await e.addParticleUpdater("wobble",(e=>new i(e)))}return n}()}));
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
exports.loadTwinkleUpdater = void 0;
|
|
13
13
|
const TwinkleUpdater_1 = require("./TwinkleUpdater");
|
|
14
14
|
async function loadTwinkleUpdater(engine) {
|
|
15
|
-
await engine.addParticleUpdater("
|
|
15
|
+
await engine.addParticleUpdater("twinkle", () => new TwinkleUpdater_1.TwinkleUpdater());
|
|
16
16
|
}
|
|
17
17
|
exports.loadTwinkleUpdater = loadTwinkleUpdater;
|
|
18
18
|
});
|