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/report.slim.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8"/>
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
6
|
-
<title>tsparticles [
|
|
6
|
+
<title>tsparticles [6 Apr 2022 at 11:42]</title>
|
|
7
7
|
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQEUM94dwK65hYRmFU9MIcH/fqJYOZYcnuJSU/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTKTyfgluNDGbUpWissXhF3s7mlSml+czWkg3D0l1nNjGNjz3myOQOa1KM/jOS6ebdbAVTCi4gljHSFrviza7tOgRWcS0MOUX9zdNgag5w7rRqA44Lzw0hr1WqES36dFliSJFlh2rXIae3FFcDDgKdxrUIDePr8jGcSClV1u7A9xeN0ModY/pHMxmR1EzRh8TJiwqsHmKW0l4FCEZI+jHio+JdPPE9qwQtTRxku2D8sIeRL2LnxWSllANCQGOIiqVHAz2ye2JR0DcH+HoxDkaADLjgxjKQ+AwCX/g0+DNgdG0ukYCONAe+dbc2IAc6fwt1ARoDSezNHxV2Cmzwv3O6lDMV55edBGwGK9n1+x2F8EDfAGCxug8MhpsMEcTEAWf3rx2vZhe/LAmtIn/6apE6PN0ULKgywD9mmdxbmFl3OvD5AS5fW5zLbv/YHmcsBTjf/afDz3MaZTVCfAP9z6/Bw6ycv8EUBWJIn9zYcoAWWlW9+OzO3vkTy8H+RANLmdrpOuYWdZYEXpo+TlCJrW5EARb7fF+bWdqf3hhyZI1nWJQHgznErZhbjoEsWqi8dQNoE294aldzFurwSABL2XXMf9+H1VQGke9exw5P/AnA5Pv5ngMul7LOvO922iwACu8WkCwLCafvM4CeWPxfA8lNHcWZSoi8EwMAIciKX2Z4SWCMAa3snCZ/G4EA8D6CMLNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
|
|
8
8
|
|
|
9
9
|
<script>
|
|
@@ -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 s in i)("object"==typeof exports?exports:t)[s]=i[s]}}(window,(function(){return function(){"use strict";var t={d:function(e,i){for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},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 Wi},CircleWarp:function(){return ji},Constants:function(){return i},Container:function(){return Ki},Engine:function(){return ds},EventListeners:function(){return At},ExternalInteractorBase:function(){return us},FrameManager:function(){return Ft},InteractionManager:function(){return Ri},Loader:function(){return ss},Main:function(){return ds},Options:function(){return Ti},OptionsColor:function(){return Lt},Particle:function(){return Hi},Particles:function(){return Xi},ParticlesInteractorBase:function(){return vs},Plugins:function(){return as},Point:function(){return Vi},QuadTree:function(){return $i},Range:function(){return _i},Rectangle:function(){return Bi},Retina:function(){return Yi},Vector:function(){return s},Vector3d:function(){return Ai},alterHsl:function(){return It},animate:function(){return P},areBoundsInside:function(){return A},arrayRandomIndex:function(){return I},calcEasing:function(){return y},calcExactPositionOrRandomFromSize:function(){return x},calcExactPositionOrRandomFromSizeRanged:function(){return k},calcPositionFromSize:function(){return g},calcPositionOrRandomFromSize:function(){return w},calcPositionOrRandomFromSizeRanged:function(){return b},calculateBounds:function(){return F},cancelAnimation:function(){return S},circleBounce:function(){return W},circleBounceDataFromParticle:function(){return _},clamp:function(){return o},clear:function(){return gt},collisionVelocity:function(){return m},colorMix:function(){return ht},colorToHsl:function(){return J},colorToRgb:function(){return G},deepExtend:function(){return L},divMode:function(){return V},divModeExecute:function(){return q},drawConnectLine:function(){return xt},drawEllipse:function(){return Ot},drawGrabLine:function(){return zt},drawLinkLine:function(){return wt},drawLinkTriangle:function(){return bt},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 u},getHslAnimationFromHsl:function(){return pt},getHslFromAnimation:function(){return vt},getLinkColor:function(){return dt},getLinkRandomColor:function(){return ut},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 d},gradient:function(){return kt},hslToHsv:function(){return Q},hslToRgb:function(){return U},hslaToHsva:function(){return K},hslaToRgba:function(){return Z},hsvToHsl:function(){return tt},hsvToRgb:function(){return it},hsvaToHsla:function(){return et},hsvaToRgba:function(){return st},isDivModeEnabled:function(){return D},isInArray:function(){return T},isPointInside:function(){return R},isSsr:function(){return C},itemFromArray:function(){return E},loadFont:function(){return O},mix:function(){return n},pJSDom:function(){return ms},paintBase:function(){return yt},particlesJS:function(){return fs},randomInRange:function(){return a},rectBounce:function(){return B},rgbToHsl:function(){return N},rgbToHsv:function(){return ot},rgbaToHsva:function(){return nt},setRangeValue:function(){return h},singleDivModeExecute:function(){return H},stringToAlpha:function(){return X},stringToRgb:function(){return Y},tsParticles:function(){return ps}});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 s{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 s.create(t.x,t.y)}static create(t,e){return new s(t,e)}static get origin(){return s.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 s.create(this.x+t.x,this.y+t.y)}addTo(t){this.x+=t.x,this.y+=t.y}sub(t){return s.create(this.x-t.x,this.y-t.y)}subFrom(t){this.x-=t.x,this.y-=t.y}mult(t){return s.create(this.x*t,this.y*t)}multTo(t){this.x*=t,this.y*=t}div(t){return s.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 s.clone(this)}setTo(t){this.x=t.x,this.y=t.y}rotate(t){return s.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 o(t,e,i){return Math.min(Math.max(t,e),i)}function n(t,e,i,s){return Math.floor((t*i+e*s)/(i+s))}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 h(t,e){if(t===e||void 0===e&&"number"==typeof t)return t;const i=l(t),s=c(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:h(i,s)}function d(t){const e=t.random,{enable:i,minimumValue:s}="boolean"==typeof e?{enable:e,minimumValue:0}:e;return r(i?h(t.value,s):t.value)}function u(t,e){const i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.sqrt(i*i+s*s)}}function v(t,e){return u(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=s.origin;return e.length=1,e.angle=t,e}function m(t,e,i,o){return s.create(t.x*(i-o)/(i+o)+2*e.x*o/(i+o),t.y)}function y(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 g(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 w(t){var e,i,s,o;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!==(o=null===(s=t.position)||void 0===s?void 0:s.y)&&void 0!==o?o:100*Math.random())*t.size.height/100}}function b(t){var e,i;const s={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 w({size:t.size,position:s})}function x(t){var e,i,s,o;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!==(o=null===(s=t.position)||void 0===s?void 0:s.y)&&void 0!==o?o:Math.random()*t.size.height}}function k(t){var e,i;const s={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:s})}function z(t,e,i,s,o,n){const a={bounced:!1};return e.min<s.min||e.min>s.max||e.max<s.min||e.max>s.max||(t.max>=i.min&&t.max<=(i.max+i.min)/2&&o>0||t.min<=i.max&&t.min>(i.max+i.min)/2&&o<0)&&(a.velocity=o*-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 I(t){return Math.floor(Math.random()*t.length)}function E(t,e,i=!0){return t[void 0!==e&&i?e%t.length:I(t)]}function R(t,e,i,s){return A(F(t,null!=i?i:0),e,s)}function A(t,e,i){let s=!0;return i&&"bottom"!==i||(s=t.top<e.height),!s||i&&"left"!==i||(s=t.right>0),!s||i&&"right"!==i||(s=t.left<e.width),!s||i&&"top"!==i||(s=t.bottom>0),s}function F(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 s=i[e],o="object"==typeof s,n=t;n[e]=o&&Array.isArray(s)?s.map((t=>L(n[e],t))):L(n[e],s)}}return t}function D(t,e){return e instanceof Array?!!e.find((e=>e.enable&&T(t,e.mode))):T(t,e.mode)}function q(t,e,i){if(e instanceof Array)for(const s of e){const e=s.mode;s.enable&&T(t,e)&&H(s,i)}else{const s=e.mode;e.enable&&T(t,s)&&H(e,i)}}function H(t,e){const i=t.selectors;if(i instanceof Array)for(const s of i)e(s,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 _(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:s.create(d(t.options.bounce.horizontal),d(t.options.bounce.vertical))}}function W(t,e){const{x:i,y:s}=t.velocity.sub(e.velocity),[o,n]=[t.position,e.position],{dx:a,dy:r}=u(n,o);if(i*a+s*r<0)return;const l=-Math.atan2(r,a),c=t.mass,h=e.mass,d=t.velocity.rotate(l),v=e.velocity.rotate(l),p=m(d,v,c,h),f=m(v,d,c,h),y=p.rotate(-l),g=f.rotate(-l);t.velocity.x=y.x*t.factor.x,t.velocity.y=y.y*t.factor.y,e.velocity.x=g.x*e.factor.x,e.velocity.y=g.y*e.factor.y}function B(t,e){const i=F(t.getPosition(),t.getRadius()),s=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,d(t.options.bounce.horizontal));s.bounced&&(void 0!==s.velocity&&(t.velocity.x=s.velocity),void 0!==s.position&&(t.position.x=s.position));const o=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,d(t.options.bounce.vertical));o.bounced&&(void 0!==o.velocity&&(t.velocity.y=o.velocity),void 0!==o.position&&(t.position.y=o.position))}function j(t,e,i){let s=i;return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+6*(e-t)*s:s<.5?e:s<2/3?t+(e-t)*(2/3-s)*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?Z({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?st({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,s,o)=>e+e+i+i+s+s+(void 0!==o?o+o:""))),s=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(i);return s?{a:void 0!==s[4]?parseInt(s[4],16)/255:1,b:parseInt(s[3],16),g:parseInt(s[2],16),r:parseInt(s[1],16)}:void 0}}function G(t,e,s=!0){var o,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():Y(r.value);else if(r.value instanceof Array){l=G({value:E(r.value,e,s)})}else{const t=r.value,e=null!==(o=t.rgb)&&void 0!==o?o: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=U(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 J(t,e,i=!0){const s=G(t,e,i);return void 0!==s?N(s):void 0}function N(t){const e=t.r/255,i=t.g/255,s=t.b/255,o=Math.max(e,i,s),n=Math.min(e,i,s),a={h:0,l:(o+n)/2,s:0};return o!==n&&(a.s=a.l<.5?(o-n)/(o+n):(o-n)/(2-o-n),a.h=e===o?(i-s)/(o-n):a.h=i===o?2+(s-e)/(o-n):4+(e-i)/(o-n)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a}function X(t){var e;return null===(e=$(t))||void 0===e?void 0:e.a}function Y(t){return $(t)}function U(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,s=2*i.l-t;e.r=j(s,t,i.h+1/3),e.g=j(s,t,i.h),e.b=j(s,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 Z(t){const e=U(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function Q(t){const e=t.l/100,i=e+t.s/100*Math.min(e,1-e),s=i?2*(1-e/i):0;return{h:t.h,s:100*s,v:100*i}}function K(t){const e=Q(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),s=0===i||1===i?0:(e-i)/Math.min(i,1-i);return{h:t.h,l:100*i,s:100*s}}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,s=t.s/100,o=t.v/100,n=o*s,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=o-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 st(t){const e=it(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function ot(t){const e={r:t.r/255,g:t.g/255,b:t.b/255},i=Math.max(e.r,e.g,e.b),s=i-Math.min(e.r,e.g,e.b);let o=0;i===e.r?o=(e.g-e.b)/s*60:i===e.g?o=60*(2+(e.b-e.r)/s):i===e.b&&(o=60*(4+(e.r-e.g)/s));return{h:o,s:100*(i?s/i:0),v:100*i}}function nt(t){const e=ot(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(h(e,256))),g:Math.floor(a(h(e,256))),r:Math.floor(a(h(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 ht(t,e,i,s){let o=t,a=e;return void 0===o.r&&(o=U(t)),void 0===a.r&&(a=U(e)),{b:n(o.b,a.b,i,s),g:n(o.g,a.g,i,s),r:n(o.r,a.r,i,s)}}function dt(t,e,s){var o,n;if(s===i.randomColorValue)return at();if("mid"!==s)return s;{const i=null!==(o=t.getFillColor())&&void 0!==o?o:t.getStrokeColor(),s=null!==(n=null==e?void 0:e.getFillColor())&&void 0!==n?n:null==e?void 0:e.getStrokeColor();if(i&&s&&e)return ht(i,s,t.getRadius(),e.getRadius());{const t=null!=i?i:s;if(t)return U(t)}}}function ut(t,e,s){const o="string"==typeof t?t:t.value;return o===i.randomColorValue?s?G({value:o}):e?i.randomColorValue:i.midColorValue:G({value:o})}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 s={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(ft(s.h,e.h,i),ft(s.s,e.s,i),ft(s.l,e.l,i)),s}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 mt(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function yt(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 gt(t,e){t.clearRect(0,0,e.width,e.height)}function wt(t,e,i,s,o,n,a,r,l,c,h,d){let p=!1;if(v(i,s)<=o)mt(t,i,s),p=!0;else if(a){let e,a;const r=u(i,{x:s.x-n.width,y:s.y});if(r.distance<=o){const t=i.y-r.dy/r.dx*i.x;e={x:0,y:t},a={x:n.width,y:t}}else{const t=u(i,{x:s.x,y:s.y-n.height});if(t.distance<=o){const s=-(i.y-t.dy/t.dx*i.x)/(t.dy/t.dx);e={x:s,y:0},a={x:s,y:n.height}}else{const t=u(i,{x:s.x-n.width,y:s.y-n.height});if(t.distance<=o){const s=i.y-t.dy/t.dx*i.x;e={x:-s/(t.dy/t.dx),y:s},a={x:e.x+n.width,y:e.y+n.height}}}}e&&a&&(mt(t,i,e),mt(t,s,a),p=!0)}if(p){if(t.lineWidth=e,r&&(t.globalCompositeOperation=l),t.strokeStyle=rt(c,h),d.enable){const e=G(d.color);e&&(t.shadowBlur=d.blur,t.shadowColor=rt(e))}t.stroke()}}function bt(t,e,i,s,o,n,a,r){!function(t,e,i,s){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.lineTo(s.x,s.y),t.closePath()}(t,e,i,s),o&&(t.globalCompositeOperation=n),t.fillStyle=rt(a,r),t.fill()}function xt(t,e,i,s,o){t.save(),mt(t,s,o),t.lineWidth=e,t.strokeStyle=i,t.stroke(),t.restore()}function kt(t,e,i,s){const o=Math.floor(i.getRadius()/e.getRadius()),n=e.getFillColor(),a=i.getFillColor();if(!n||!a)return;const r=e.getPosition(),l=i.getPosition(),c=ht(n,a,e.getRadius(),i.getRadius()),h=t.createLinearGradient(r.x,r.y,l.x,l.y);return h.addColorStop(0,lt(n,s)),h.addColorStop(o>1?1:o,rt(c,s)),h.addColorStop(1,lt(a,s)),h}function zt(t,e,i,s,o,n){t.save(),mt(t,i,s),t.strokeStyle=rt(o,n),t.lineWidth=e,t.stroke(),t.restore()}function Mt(t,e,i,s,o,n,a,r,l,c){var h,d,u,v;const p=i.getPosition(),f=i.options.tilt,m=i.options.roll;if(e.save(),f.enable||m.enable){const t=m.enable&&i.roll,s=f.enable&&i.tilt,o=t&&("horizontal"===m.mode||"both"===m.mode),n=t&&("vertical"===m.mode||"both"===m.mode);e.setTransform(o?Math.cos(i.roll.angle):1,s?Math.cos(i.tilt.value)*i.tilt.cosDirection:0,s?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 y=(null!==(d=null===(h=i.rotate)||void 0===h?void 0:h.value)&&void 0!==d?d:0)+(i.options.rotate.path?i.velocity.angle:0);0!==y&&e.rotate(y),n&&(e.globalCompositeOperation=a);const g=i.shadowColor;c.enable&&g&&(e.shadowBlur=c.blur,e.shadowColor=rt(g),e.shadowOffsetX=c.offset.x,e.shadowOffsetY=c.offset.y),o.fill&&(e.fillStyle=o.fill);const w=i.stroke;e.lineWidth=null!==(u=i.strokeWidth)&&void 0!==u?u:0,o.stroke&&(e.strokeStyle=o.stroke),Ct(t,e,i,r,l,s),(null!==(v=null==w?void 0:w.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!==y&&e.rotate(y),n&&(e.globalCompositeOperation=a),Pt(t,e,i,r,l,s),e.restore()}function Ct(t,e,i,s,o,n){if(!i.shape)return;const a=t.drawers.get(i.shape);a&&a.draw(e,i,s,o,n,t.retina.pixelRatio)}function Pt(t,e,i,s,o,n){if(!i.shape)return;const a=t.drawers.get(i.shape);(null==a?void 0:a.afterEffect)&&a.afterEffect(e,i,s,o,n,t.retina.pixelRatio)}function St(t,e,i){e.draw&&(t.save(),e.draw(t,i),t.restore())}function Tt(t,e,i,s){e.drawParticle&&(t.save(),e.drawParticle(t,i,s),t.restore())}function Ot(t,e,i,s,o,n,a,r,l){if(n<=0)return;const c=e.getPosition();i&&(t.strokeStyle=lt(i,o)),t.lineWidth=n;const h=a*Math.PI/180;t.beginPath(),t.ellipse(c.x,c.y,s/2,2*s,h,r,l),t.stroke()}function It(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=>{gt(t,this.size)}))}paint(){const t=this.container.actualOptions;this.draw((e=>{t.backgroundMask.enable&&t.backgroundMask.cover?(gt(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=>{gt(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,s=this.element.offsetWidth*e,o=this.element.offsetHeight*e;if(o===i.height&&s===i.width&&o===this.element.height&&s===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 s;const o=this.lineStyle(t,e);if(!o)return;const n=t.getPosition(),a=e.getPosition();xt(i,null!==(s=t.retina.linksWidth)&&void 0!==s?s:this.container.retina.linksWidth,o,n,a)}))}drawGrabLine(t,e,i,s){const o=this.container;this.draw((n=>{var a;const r=t.getPosition();zt(n,null!==(a=t.retina.linksWidth)&&void 0!==a?a:o.retina.linksWidth,r,s,e,i)}))}drawParticle(t,e){var i,s,o,n,a,r;if(t.spawning||t.destroyed)return;const l=t.getRadius();if(l<=0)return;const c=t.getFillColor(),h=null!==(i=t.getStrokeColor())&&void 0!==i?i:c;if(!c&&!h)return;let[d,u]=this.getPluginParticleColors(t);d&&u||(d||(d=c||void 0),u||(u=h||void 0));const v=this.container.actualOptions,p=t.options.zIndex,f=(1-t.zIndexFactor)**p.opacityRate,m=null!==(n=null!==(s=t.bubble.opacity)&&void 0!==s?s:null===(o=t.opacity)||void 0===o?void 0:o.value)&&void 0!==n?n:1,y=null!==(r=null===(a=t.stroke)||void 0===a?void 0:a.opacity)&&void 0!==r?r:m,g=m*f,w=y*f,b={fill:d?lt(d,g):void 0};b.stroke=u?lt(u,w):b.fill,this.draw((i=>{const s=(1-t.zIndexFactor)**p.sizeRate,o=this.container;for(const e of o.particles.updaters)if(e.beforeDraw&&e.beforeDraw(t),e.getColorStyles){const{fill:s,stroke:o}=e.getColorStyles(t,i,l,g);s&&(b.fill=s),o&&(b.stroke=o)}Mt(o,i,t,e,b,v.backgroundMask.enable,v.backgroundMask.composite,l*s,g,t.options.shadow);for(const e of o.particles.updaters)e.afterDraw&&e.afterDraw(t)}))}drawPlugin(t,e){this.draw((i=>{St(i,t,e)}))}drawParticlePlugin(t,e,i){this.draw((s=>{Tt(s,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[,s]of this.container.plugins)if(!e&&s.particleFillColor&&(e=J(s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=J(s.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 s=e.style[i];s&&t.style.setProperty(i,s,"important")}}paintBase(t){this.draw((e=>{yt(e,this.size,t)}))}lineStyle(t,e){return this.draw((i=>{const s=this.container.actualOptions.interactivity.modes.connect;return kt(i,t,e,s.links.opacity)}))}}function Rt(t,e,i,s,o){if(s){let s={passive:!0};"boolean"==typeof o?s.capture=o:void 0!==o&&(s=o),t.addEventListener(e,i,s)}else{const s=o;t.removeEventListener(e,i,s)}}class At{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 s=this.container,o=s.actualOptions,n=o.interactivity.detectsOn;let a=i.mouseLeaveEvent;if("window"===n)s.interactivity.element=window,a=i.mouseOutEvent;else if("parent"===n&&s.canvas.element){const t=s.canvas.element;s.interactivity.element=null!==(e=t.parentElement)&&void 0!==e?e:t.parentNode}else s.interactivity.element=s.canvas.element;const r=!C()&&"undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)");r&&(void 0!==r.addEventListener?Rt(r,"change",this.themeChangeHandler,t):void 0!==r.addListener&&(t?r.addListener(this.oldThemeChangeHandler):r.removeListener(this.oldThemeChangeHandler)));const l=s.interactivity.element;if(!l)return;const c=l;(o.interactivity.events.onHover.enable||o.interactivity.events.onClick.enable)&&(Rt(l,i.mouseMoveEvent,this.mouseMoveHandler,t),Rt(l,i.touchStartEvent,this.touchStartHandler,t),Rt(l,i.touchMoveEvent,this.touchMoveHandler,t),o.interactivity.events.onClick.enable?(Rt(l,i.touchEndEvent,this.touchEndClickHandler,t),Rt(l,i.mouseUpEvent,this.mouseUpHandler,t),Rt(l,i.mouseDownEvent,this.mouseDownHandler,t)):Rt(l,i.touchEndEvent,this.touchEndHandler,t),Rt(l,a,this.mouseLeaveHandler,t),Rt(l,i.touchCancelEvent,this.touchCancelHandler,t)),s.canvas.element&&(s.canvas.element.style.pointerEvents=c===s.canvas.element?"initial":"none"),o.interactivity.events.resize&&("undefined"!=typeof ResizeObserver?this.resizeObserver&&!t?(s.canvas.element&&this.resizeObserver.unobserve(s.canvas.element),this.resizeObserver.disconnect(),delete this.resizeObserver):!this.resizeObserver&&t&&s.canvas.element&&(this.resizeObserver=new ResizeObserver((t=>{t.find((t=>t.target===s.canvas.element))&&this.handleWindowResize()})),this.resizeObserver.observe(s.canvas.element)):Rt(window,i.resizeEvent,this.resizeHandler,t)),document&&Rt(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,s,o,n,a,r,l;const c=this.container,h=c.actualOptions;if(!(null===(e=c.interactivity)||void 0===e?void 0:e.element))return;let d;c.interactivity.mouse.inside=!0;const u=c.canvas.element;if(t.type.startsWith("mouse")){this.canPush=!0;const e=t;if(c.interactivity.element===window){if(u){const t=u.getBoundingClientRect();d={x:e.clientX-t.left,y:e.clientY-t.top}}}else if("parent"===h.interactivity.detectsOn){const t=e.target,i=e.currentTarget,n=c.canvas.element;if(t&&i&&n){const s=t.getBoundingClientRect(),o=i.getBoundingClientRect(),a=n.getBoundingClientRect();d={x:e.offsetX+2*s.left-(o.left+a.left),y:e.offsetY+2*s.top-(o.top+a.top)}}else d={x:null!==(s=e.offsetX)&&void 0!==s?s:e.clientX,y:null!==(o=e.offsetY)&&void 0!==o?o:e.clientY}}else e.target===c.canvas.element&&(d={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],s=null==u?void 0:u.getBoundingClientRect();d={x:i.clientX-(null!==(r=null==s?void 0:s.left)&&void 0!==r?r:0),y:i.clientY-(null!==(l=null==s?void 0:s.top)&&void 0!==l?l:0)}}const v=c.retina.pixelRatio;d&&(d.x*=v,d.y*=v),c.interactivity.mouse.position=d,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,s=e.interactivity.mouse;s.inside=!0;let o=!1;const n=s.position;if(n&&i.interactivity.events.onClick.enable){for(const[,t]of e.plugins)if(t.clickPositionValid&&(o=t.clickPositionValid(n),o))break;o||this.doMouseTouchClick(t),s.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 s=i.interactivity.events.onClick;if(s.mode instanceof Array)for(const t of s.mode)this.handleClickMode(t);else this.handleClickMode(s.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 Ft{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 s=t-i.lastFrameTime,o={value:s,factor:60*s/1e3};if(i.lifeTime+=o.value,i.lastFrameTime=t,s>1e3)return void i.draw(!1);if(await i.particles.draw(o),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 Dt{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 qt{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 Ht{constructor(){this.composite="destination-out",this.cover=new qt,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 _t{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 Wt{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 s=null!==(i=null!==(e=t.ids)&&void 0!==e?e:t.elementId)&&void 0!==i?i:t.el;void 0!==s&&(this.ids=s),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 _t,this.onDiv=new Wt,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,s;if(void 0===t)return;this.onClick.load(null!==(e=t.onClick)&&void 0!==e?e:t.onclick);const o=null!==(i=t.onDiv)&&void 0!==i?i:t.ondiv;void 0!==o&&(o instanceof Array?this.onDiv=o.map((t=>{const e=new Wt;return e.load(t),e})):(this.onDiv=new Wt,this.onDiv.load(o))),this.onHover.load(null!==(s=t.onHover)&&void 0!==s?s: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 Jt{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 Xt 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 Yt 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 Xt;return e.load(t),e})):((this.divs instanceof Array||!this.divs)&&(this.divs=new Xt),this.divs.load(t.divs)))}}class Ut{constructor(){this.opacity=.5}load(t){void 0!==t&&void 0!==t.opacity&&(this.opacity=t.opacity)}}class Zt{constructor(){this.distance=80,this.links=new Ut,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 Qt{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 Qt}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 se{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 oe{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 he{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 de{constructor(){this.attract=new Gt,this.bounce=new Jt,this.bubble=new Yt,this.connect=new Zt,this.grab=new Kt,this.light=new se,this.push=new oe,this.remove=new ne,this.repulse=new le,this.slow=new ce,this.trail=new he}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 ue{constructor(){this.detectsOn="window",this.events=new $t,this.modes=new de}get detect_on(){return this.detectsOn}set detect_on(t){this.detectsOn=t}load(t){var e,i,s;if(void 0===t)return;const o=null!==(e=t.detectsOn)&&void 0!==e?e:t.detect_on;void 0!==o&&(this.detectsOn=o),this.events.load(t.events),this.modes.load(t.modes),!0===(null===(s=null===(i=t.modes)||void 0===i?void 0:i.slow)||void 0===s?void 0:s.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 me{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=h(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(this.offset=h(t.offset)),void 0!==t.speed&&(this.speed=h(t.speed)),void 0!==t.sync&&(this.sync=t.sync))}}class ye{constructor(){this.h=new me,this.s=new me,this.l=new me}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class ge extends Lt{constructor(){super(),this.animation=new ye}static create(t,e){const i=new ge;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 we{constructor(){this.angle=new be,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 be{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=h(t.value)))}}class ke{constructor(){this.stop=0,this.value=new ge}load(t){t&&(void 0!==t.stop&&(this.stop=t.stop),this.value=ge.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=h(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=h(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=h(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=h(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=h(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 Ie{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 Re extends Pe{constructor(){super(),this.value={min:4,max:9}}}class Ae{constructor(){this.count=1,this.factor=new Ee,this.rate=new Re,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 Fe{constructor(){this.mode="none",this.split=new Ae}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 De 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 qe{constructor(){this.count=0,this.delay=new Le,this.duration=new De}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class He{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 _e{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 He,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 We{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,s,o;if(!t)return;void 0!==t.distance&&(this.distance=h(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!==(o=null===(s=t.rotate)||void 0===s?void 0:s.y)&&void 0!==o?o: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=h(t.offset)),void 0!==t.value&&(this.value=h(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=h(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=h(t.maxSpeed)))}}class $e{constructor(){this.default="out"}load(t){var e,i,s,o;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!==(s=t.right)&&void 0!==s?s:t.default,this.top=null!==(o=t.top)&&void 0!==o?o:t.default)}}class Ge extends Pe{constructor(){super()}}class Je{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=h(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),this.position=t.position?L({},t.position):void 0)}}class Xe{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 Ye{constructor(){this.angle=new Be,this.attract=new We,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new je,this.path=new Je,this.outModes=new $e,this.random=!1,this.size=!1,this.speed=2,this.spin=new Ne,this.straight=!1,this.trail=new Xe,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,s;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=h(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const o=null!==(e=t.outMode)&&void 0!==e?e:t.out_mode;void 0===t.outModes&&void 0===o||("string"==typeof t.outModes||void 0===t.outModes&&void 0!==o?this.outModes.load({default:null!==(i=t.outModes)&&void 0!==i?i:o}):this.outModes.load(t.outModes)),this.path.load(null!==(s=t.path)&&void 0!==s?s:t.noise),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=h(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 Ue{constructor(){this.count=0,this.enable=!1,this.speed=1,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=h(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=h(t.speed)),void 0!==t.sync&&(this.sync=t.sync))}}class Ze extends Ue{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 Qe extends Pe{constructor(){super(),this.animation=new Ze,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=h(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 Ue,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=h(t.opacity)),void 0!==t.width&&(this.width=h(t.width)),void 0!==t.radius&&(this.radius=h(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 si 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=h(t.distance)),void 0!==t.duration&&(this.duration=h(t.duration)),void 0!==t.factor&&(this.factor=h(t.factor)),void 0!==t.speed&&(this.speed=h(t.speed)))}}class oi{constructor(){this.enable=!1,this.value=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.value&&(this.value=h(t.value)))}}class ni{constructor(){this.darken=new oi,this.enable=!1,this.enlighten=new oi,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=h(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=h(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,s;if(void 0===t)return;const o=null!==(e=t.options)&&void 0!==e?e:t.custom;if(void 0!==o)for(const t in o){const e=o[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!==(s=t.image)&&void 0!==s?s:t.images,"image","images",!0),void 0!==t.type&&(this.type=t.type)}loadShape(t,e,i,s){var o,n,a,r;void 0!==t&&(t instanceof Array?(this.options[e]instanceof Array||(this.options[e]=[],this.options[i]&&!s||(this.options[i]=[])),this.options[e]=L(null!==(o=this.options[e])&&void 0!==o?o:[],t),this.options[i]&&!s||(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]&&!s||(this.options[i]={})),this.options[e]=L(null!==(a=this.options[e])&&void 0!==a?a:{},t),this.options[i]&&!s||(this.options[i]=L(null!==(r=this.options[i])&&void 0!==r?r:{},t))))}}class hi extends Ue{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 di extends Pe{constructor(){super(),this.animation=new hi,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=h(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class ui{constructor(){this.width=0}load(t){void 0!==t&&(void 0!==t.color&&(this.color=ge.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=h(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=h(t.opacity)))}}class mi{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 yi{constructor(){this.distance=5,this.enable=!1,this.speed=50}load(t){t&&(void 0!==t.distance&&(this.distance=h(t.distance)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=h(t.speed)))}}class gi 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 wi{constructor(){this.bounce=new Te,this.collisions=new Ie,this.color=new ge,this.destroy=new Fe,this.gradient=[],this.groups={},this.life=new qe,this.links=new _e,this.move=new Ye,this.number=new ii,this.opacity=new Qe,this.orbit=new ti,this.reduceDuplicates=!1,this.repulse=new si,this.roll=new ni,this.rotate=new ri,this.shadow=new li,this.shape=new ci,this.size=new di,this.stroke=new ui,this.tilt=new pi,this.twinkle=new mi,this.wobble=new yi,this.zIndex=new gi}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,s,o,n,a,r,l;if(void 0===t)return;this.bounce.load(t.bounce),this.color.load(ge.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!==(s=this.groups[e])&&void 0!==s?s:{},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 h=null!==(n=null===(o=t.move)||void 0===o?void 0:o.collisions)&&void 0!==n?n:null===(a=t.move)||void 0===a?void 0:a.bounce;void 0!==h&&(this.collisions.enable=h),this.collisions.load(t.collisions);const d=null!==(r=t.stroke)&&void 0!==r?r:null===(l=t.shape)||void 0===l?void 0:l.stroke;d&&(d instanceof Array?this.stroke=d.map((t=>{const e=new ui;return e.load(t),e})):(this.stroke instanceof Array&&(this.stroke=new ui),this.stroke.load(d)));const u=t.gradient;u&&(u instanceof Array?this.gradient=u.map((t=>{const e=new we;return e.load(t),e})):(this.gradient instanceof Array&&(this.gradient=new we),this.gradient.load(u)))}}class bi{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,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},Si=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.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 Dt,this.backgroundMask=new Ht,this.fullScreen=new Vt,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new ue,this.manualParticles=[],this.motion=new fe,this.particles=new wi,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,s,o,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!==(s=t.fullScreen)&&void 0!==s?s: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 bi;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===(o=Si(this,zi,"m",Ci).call(this,"dark"))||void 0===o?void 0:o.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 s=this.responsive.find((i=>"screen"===i.mode&&screen?i.maxWidth*e>screen.availWidth:i.maxWidth*e>t));return this.load(null==s?void 0:s.options),null==s?void 0:s.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,Ii=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},Ei=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class Ri{constructor(t,e){this.container=e,Oi.set(this,void 0),Ii(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 Ai extends s{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 Ai.create(t.x,t.y,t.z)}static create(t,e,i){return new Ai(t,e,i)}static get origin(){return Ai.create(0,0,0)}add(t){return t instanceof Ai?Ai.create(this.x+t.x,this.y+t.y,this.z+t.z):super.add(t)}addTo(t){super.addTo(t),t instanceof Ai&&(this.z+=t.z)}sub(t){return t instanceof Ai?Ai.create(this.x-t.x,this.y-t.y,this.z-t.z):super.sub(t)}subFrom(t){super.subFrom(t),t instanceof Ai&&(this.z-=t.z)}mult(t){return Ai.create(this.x*t,this.y*t,this.z*t)}multTo(t){super.multTo(t),this.z*=t}div(t){return Ai.create(this.x/t,this.y/t,this.z/t)}divTo(t){super.divTo(t),this.z/=t}copy(){return Ai.clone(this)}setTo(t){super.setTo(t);const e=t;void 0!==e.z&&(this.z=e.z)}}var Fi,Li=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},Di=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};const qi=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 Hi{constructor(t,e,i,n,h,u){var v,f,m,y,g,w,b;this.id=e,this.container=i,this.group=u,Fi.set(this,void 0),Li(this,Fi,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 wi;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==h?void 0:h.shape){if(h.shape.type){const t=h.shape.type;this.shape=t instanceof Array?E(t,this.id,C):t}const t=new ci;t.load(h.shape),this.shape&&(this.shapeData=this.loadShapeData(t,C))}else this.shapeData=this.loadShapeData(z.shape,C);void 0!==h&&z.load(h),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!==(y=null===(m=this.shapeData)||void 0===m?void 0:m.fill)&&void 0!==y?y:this.fill,this.close=null!==(w=null===(g=this.shapeData)||void 0===g?void 0:g.close)&&void 0!==w?w:this.close,this.options=z,this.pathDelay=1e3*d(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:d(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!==(b=this.retina.sizeAnimationSpeed)&&void 0!==b?b: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 I=this.options.move.gravity;this.gravity={enable:I.enable,acceleration:r(I.acceleration),inverse:I.inverse},this.position=this.calcPosition(i,n,o(P,0,i.zLayers)),this.initialPosition=this.position.copy(),this.offset=s.origin;const R=i.particles;R.needsSort=R.needsSort||R.lastZIndex<this.position.z,R.lastZIndex=this.position.z,this.zIndexFactor=this.position.z/i.zLayers,this.sides=24;let A=i.drawers.get(this.shape);A||(A=Di(this,Fi,"f").plugins.getShapeDrawer(this.shape),A&&i.drawers.set(this.shape,A)),(null==A?void 0:A.loadShape)&&(null==A||A.loadShape(this));const F=null==A?void 0:A.getSidesCount;F&&(this.sides=F(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);A&&A.particleInit&&A.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,s="horizontal"===this.options.roll.mode?Math.PI/2:0;if(Math.floor(((null!==(e=this.roll.angle)&&void 0!==e?e:0)+s)/(Math.PI/t))%2){if(this.backColor)return this.backColor;if(this.roll.alter)return It(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,s=0){var o,n,a,r;for(const[,s]of t.plugins){const t=void 0!==s.particlePosition?s.particlePosition(e,this):void 0;if(void 0!==t)return Ai.create(t.x,t.y,i)}const l=x({size:t.canvas.size,position:e}),c=Ai.create(l.x,l.y,i),h=this.getRadius(),d=this.options.move.outModes,u=e=>{qi({outMode:e,checkModes:["bounce","bounce-horizontal"],coord:c.x,maxCoord:t.canvas.size.width,setCb:t=>c.x+=t,radius:h})},v=e=>{qi({outMode:e,checkModes:["bounce","bounce-vertical"],coord:c.y,maxCoord:t.canvas.size.height,setCb:t=>c.y+=t,radius:h})};return u(null!==(o=d.left)&&void 0!==o?o:d.default),u(null!==(n=d.right)&&void 0!==n?n:d.default),v(null!==(a=d.top)&&void 0!==a?a:d.default),v(null!==(r=d.bottom)&&void 0!==r?r:d.default),this.checkOverlap(c,s)?this.calcPosition(t,void 0,i,s+1):c}checkOverlap(t,e=0){const i=this.options.collisions,s=this.getRadius();if(!i.enable)return!1;const o=i.overlap;if(o.enable)return!1;const n=o.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)<s+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),s=Math.PI/180*r(e.angle.offset),o={left:s-i/2,right:s+i/2};return e.straight||(t.angle+=a(h(o.left,o.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,s={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 s.duration<=0&&(s.duration=-1),s.count<=0&&(s.count=-1),s}}Fi=new WeakMap;class Vi{constructor(t,e){this.position=t,this.particle=e}}class _i{constructor(t,e){this.position={x:t,y:e}}}class Wi extends _i{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,s=this.position,o=t.position,n=Math.abs(o.x-s.x),a=Math.abs(o.y-s.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,s=Math.pow(n-t,2)+Math.pow(a-i,2);return!(n>r+t||a>r+i)&&(n<=t||a<=i||s<=r*r)}return!1}}class Bi extends _i{constructor(t,e,i,s){super(t,e),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){const e=t,i=t,s=this.size.width,o=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+s&&a.x+l>n.x&&a.y<n.y+o&&a.y+c>n.y}}class ji extends Wi{constructor(t,e,i,s){super(t,e,i),this.canvasSize=s,this.canvasSize=Object.assign({},s)}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 s={x:t.x,y:t.y-this.canvasSize.height};return super.contains(s)}intersects(t){if(super.intersects(t))return!0;const e=t,i=t,s={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==i.radius){const t=new Wi(s.x,s.y,2*i.radius);return super.intersects(t)}if(void 0!==e.size){const t=new Bi(s.x,s.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,s,o,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===(s=this.southEast)||void 0===s?void 0:s.insert(t))||(null===(o=this.southWest)||void 0===o?void 0:o.insert(t)))&&void 0!==n&&n))}queryCircle(t,e){return this.query(new Wi(t.x,t.y,e))}queryCircleWarp(t,e,i){const s=i,o=i;return this.query(new ji(t.x,t.y,e,void 0!==s.canvas?s.canvas.size:o))}queryRectangle(t,e){return this.query(new Bi(t.x,t.y,e.width,e.height))}query(t,e){var i,s,o,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===(s=this.northWest)||void 0===s||s.query(t,a),null===(o=this.southEast)||void 0===o||o.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,s=this.rectangle.size.height,o=this.capacity;this.northEast=new $i(new Bi(t,e,i/2,s/2),o),this.northWest=new $i(new Bi(t+i/2,e,i/2,s/2),o),this.southEast=new $i(new Bi(t,e+s/2,i/2,s/2),o),this.southWest=new $i(new Bi(t+i/2,e+s/2,i/2,s/2),o),this.divided=!0}}var Gi,Ji=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},Ni=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class Xi{constructor(t,e){this.container=e,Gi.set(this,void 0),Ji(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 Ri(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 s=!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&&(s=t.particlesInitialization()),s)break;if(this.addManualParticles(),!s){for(const e in i.particles.groups){const s=i.particles.groups[e];for(let o=this.count,n=0;n<(null===(t=s.number)||void 0===t?void 0:t.value)&&o<i.particles.number.value;o++,n++)this.addParticle(void 0,s,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,s){if(!(t>=0&&t<=this.count))return;let o=0;for(let n=t;o<e&&n<this.count;n++){const t=this.array[n];if(!t||t.group!==i)continue;t.destroy(s),this.array.splice(n--,1);const e=this.zArray.indexOf(t);this.zArray.splice(e,1),o++}}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 s of this.array){const o=e.canvas.resizeFactor;o&&!s.ignoresResizeRatio&&(s.position.x*=o.width,s.position.y*=o.height),s.ignoresResizeRatio=!1,s.bubble.inRange=!1;for(const[,e]of this.container.plugins){if(s.destroyed)break;e.particleUpdate&&e.particleUpdate(s,t)}for(const e of this.movers)e.isEnabled(s)&&e.move(s,t);s.destroyed?i.push(s):this.quadTree.insert(new Vi(s.getPosition(),s))}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,s){this.pushing=!0;for(let o=0;o<t;o++)this.addParticle(null==e?void 0:e.position,i,s);this.pushing=!1}addParticle(t,e,i){const s=this.container,o=s.actualOptions.particles.number.limit*s.density;if(o>0){const t=this.count+1-o;t>0&&this.removeQuantity(t)}return this.pushParticle(t,e,i)}addSplitParticle(t){const e=t.options.destroy.split,i=new wi;i.load(t.options);const s=r(e.factor.value);i.color.load({value:{hsl:t.getFillColor()}}),"number"==typeof i.size.value?i.size.value/=s:(i.size.value.min/=s,i.size.value.max/=s),i.load(e.particles);const o=e.sizeOffset?h(-t.size.value,t.size.value):0,n={x:t.position.x+a(o),y:t.position.y+a(o)};return this.pushParticle(n,i,t.group,(e=>!(e.size.value<.5)&&(e.velocity.length=a(h(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=h(t.id,e.id),s=`${l(i)}_${c(i)}`;let o=this.freqs.links.get(s);return void 0===o&&(o=Math.random(),this.freqs.links.set(s,o)),o}getTriangleFrequency(t,e,i){let[s,o,n]=[t.id,e.id,i.id];s>o&&([o,s]=[s,o]),o>n&&([n,o]=[o,n]),s>n&&([n,s]=[s,n]);const a=`${s}_${o}_${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(g({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 s;if(!(null===(s=t.number.density)||void 0===s?void 0:s.enable))return;const o=t.number,n=this.initDensityFactor(o.density),a=o.value,r=o.limit>0?o.limit:a,l=Math.min(a,r)*n+e,c=Math.min(this.count,this.array.filter((t=>t.group===i)).length);this.limit=o.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,s=e.retina.pixelRatio;return i.width*i.height/(t.factor*s**2*t.area)}pushParticle(t,e,i,s){try{const o=new Hi(Ni(this,Gi,"f"),this.nextId,this.container,t,e,i);let n=!0;if(s&&(n=s(o)),!n)return;return this.array.push(o),this.zArray.push(o),this.nextId++,o}catch(t){return void console.warn(`error adding particle: ${t}`)}}}Gi=new WeakMap;class Yi{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 s=this.pixelRatio;if(t.canvas.element){const e=t.canvas.element;t.canvas.size.width=e.offsetWidth*s,t.canvas.size.height=e.offsetHeight*s}const o=e.particles;this.attractDistance=r(o.move.attract.distance)*s,this.linksDistance=o.links.distance*s,this.linksWidth=o.links.width*s,this.sizeAnimationSpeed=r(o.size.animation.speed)*s,this.maxSpeed=r(o.move.gravity.maxSpeed)*s;const n=e.interactivity.modes;this.connectModeDistance=n.connect.distance*s,this.connectModeRadius=n.connect.radius*s,this.grabModeDistance=n.grab.distance*s,this.repulseModeDistance=n.repulse.distance*s,this.bounceModeDistance=n.bounce.distance*s,this.attractModeDistance=n.attract.distance*s,this.slowModeRadius=n.slow.radius*s,this.bubbleModeDistance=n.bubble.distance*s,n.bubble.size&&(this.bubbleModeSize=n.bubble.size*s)}initParticle(t){const e=t.options,i=this.pixelRatio,s=e.move.distance,o=t.retina;o.attractDistance=r(e.move.attract.distance)*i,o.linksDistance=e.links.distance*i,o.linksWidth=e.links.width*i,o.moveDrift=r(e.move.drift)*i,o.moveSpeed=r(e.move.speed)*i,o.sizeAnimationSpeed=r(e.size.animation.speed)*i;const n=o.maxDistance;n.horizontal=void 0!==s.horizontal?s.horizontal*i:void 0,n.vertical=void 0!==s.vertical?s.vertical*i:void 0,o.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 Ui,Zi=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},Qi=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class Ki{constructor(t,e,i,...o){this.id=e,Ui.set(this,void 0),Zi(this,Ui,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 Yi(this),this.canvas=new Et(this),this.particles=new Xi(Qi(this,Ui,"f"),this),this.drawer=new Ft(this),this.presets=o,this.pathGenerator={generate:()=>{const t=s.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(Qi(this,Ui,"f")),this.actualOptions=new Ti(Qi(this,Ui,"f")),this.eventListeners=new At(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 s,o,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,(s=this.pathGenerator).generate||(s.generate=e.generate),(o=this.pathGenerator).init||(o.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 s;return null===(s=this.canvas.element)||void 0===s?void 0:s.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(Qi(this,Ui,"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,s)=>{if(this.destroyed)return;const o=this.retina.pixelRatio,n={x:i.x*o,y:i.y*o},a=this.particles.quadTree.queryCircle(n,s*o);t(e,a)};let s=!1,o=!1;e.addEventListener("click",(t=>{if(this.destroyed)return;const e=t,s={x:e.offsetX||e.clientX,y:e.offsetY||e.clientY};i(t,s,1)})),e.addEventListener("touchstart",(()=>{this.destroyed||(s=!0,o=!1)})),e.addEventListener("touchmove",(()=>{this.destroyed||(o=!0)})),e.addEventListener("touchend",(t=>{var e,n,a;if(!this.destroyed){if(s&&!o){const s=t;let o=s.touches[s.touches.length-1];if(!o&&(o=s.changedTouches[s.changedTouches.length-1],!o))return;const r=null===(e=this.canvas.element)||void 0===e?void 0:e.getBoundingClientRect(),l={x:o.clientX-(null!==(n=null==r?void 0:r.left)&&void 0!==n?n:0),y:o.clientY-(null!==(a=null==r?void 0:r.top)&&void 0!==a?a:0)};i(t,l,Math.max(o.radiusX,o.radiusY))}s=!1,o=!1}})),e.addEventListener("touchcancel",(()=>{this.destroyed||(s=!1,o=!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(Qi(this,Ui,"f"));for(const t of this.presets)this._options.load(Qi(this,Ui,"f").plugins.getPreset(t));const t=Qi(this,Ui,"f").plugins.getSupportedShapes();for(const e of t){const t=Qi(this,Ui,"f").plugins.getShapeDrawer(e);t&&this.drawers.set(e,t)}this._options.load(this._initialSourceOptions),this._options.load(this._sourceOptions),this.actualOptions=new Ti(Qi(this,Ui,"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=Qi(this,Ui,"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(Qi(this,Ui,"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())}}Ui=new WeakMap;var ts,es=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},is=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class ss{constructor(t){ts.set(this,void 0),es(this,ts,t,"f")}dom(){return is(this,ts,"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,s,o;const n=null!==(e=t.tagId)&&void 0!==e?e:`tsparticles${Math.floor(1e4*Math.random())}`,{options:a,index:r}=t;let l=null!==(s=t.element)&&void 0!==s?s:document.getElementById(n);l||(l=document.createElement("div"),l.id=n,null===(o=document.querySelector("body"))||void 0===o||o.append(l));const c=a instanceof Array?E(a,r):a,h=this.dom(),d=h.findIndex((t=>t.id===n));if(d>=0){const t=this.domItem(d);t&&!t.destroyed&&(t.destroy(),h.splice(d,1))}let u;if("canvas"===l.tagName.toLowerCase())u=l,u.dataset[i.generatedAttribute]="false";else{const t=l.getElementsByTagName("canvas");t.length?(u=t[0],u.dataset[i.generatedAttribute]="false"):(u=document.createElement("canvas"),u.dataset[i.generatedAttribute]="true",u.style.width="100%",u.style.height="100%",l.appendChild(u))}const v=new Ki(is(this,ts,"f"),n,c);return d>=0?h.splice(d,0,v):h.push(v),v.canvas.loadCanvas(u),await v.start(),v}async loadRemoteOptions(t){const{url:e,index:i}=t,s=e instanceof Array?E(e,i):e;if(!s)return;const o=await fetch(s);if(!o.ok)return n=o.status,console.error(`Error tsParticles - fetch status: ${n}`),void console.error("Error tsParticles - File config not found");var n;const a=await o.json();return this.loadOptions({tagId:t.tagId,element:t.element,index:i,options:a})}load(t,e,i){const s={index:i};return"string"==typeof t?s.tagId=t:s.options=t,"number"==typeof e?s.index=null!=e?e:s.index:s.options=null!=e?e:s.options,this.loadOptions(s)}async set(t,e,i,s){const o={index:s};return"string"==typeof t?o.tagId=t:o.element=t,e instanceof HTMLElement?o.element=e:o.options=e,"number"==typeof i?o.index=i:o.options=null!=i?i:o.options,this.loadOptions(o)}async loadJSON(t,e,i){let s,o;return"number"==typeof e||void 0===e?s=t:(o=t,s=e),this.loadRemoteOptions({tagId:o,url:s,index:i})}async setJSON(t,e,i,s){let o,n,a,r;return t instanceof HTMLElement?(r=t,o=e,a=i):(n=t,r=e,o=i,a=s),this.loadRemoteOptions({tagId:n,url:o,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)}}ts=new WeakMap;var os,ns=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i};class as{constructor(t){os.set(this,void 0),ns(this,os,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)}}os=new WeakMap;var rs,ls,cs=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},hs=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class ds{constructor(){rs.set(this,void 0),ls.set(this,void 0),cs(this,rs,!1,"f"),this.domArray=[],cs(this,ls,new ss(this),"f"),this.plugins=new as(this)}init(){hs(this,rs,"f")||cs(this,rs,!0,"f")}async loadFromArray(t,e,i){return hs(this,ls,"f").load(t,e,i)}async load(t,e){return hs(this,ls,"f").load(t,e)}async set(t,e,i){return hs(this,ls,"f").set(t,e,i)}async loadJSON(t,e,i){return hs(this,ls,"f").loadJSON(t,e,i)}async setJSON(t,e,i,s){return hs(this,ls,"f").setJSON(t,e,i,s)}setOnClickHandler(t){hs(this,ls,"f").setOnClickHandler(t)}dom(){return hs(this,ls,"f").dom()}domItem(t){return hs(this,ls,"f").domItem(t)}async refresh(){for(const t of this.dom())await t.refresh()}async addShape(t,e,i,s,o){let n;n="function"==typeof e?{afterEffect:s,destroy:o,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()}}rs=new WeakMap,ls=new WeakMap;class us{constructor(t){this.container=t,this.type=0}}class vs{constructor(t){this.container=t,this.type=1}}const ps=new ds;ps.init();const{particlesJS:fs,pJSDom:ms}=(t=>{const e=(e,i)=>t.load(e,i);e.load=(e,i,s)=>{t.loadJSON(e,i).then((t=>{t&&s(t)})).catch((()=>{s(void 0)}))},e.setOnClickHandler=e=>{t.setOnClickHandler(e)};return{particlesJS:e,pJSDom:t.dom()}})(ps);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 a=e();for(var i in a)("object"==typeof exports?exports:t)[i]=a[i]}}(window,(function(){return function(){"use strict";var t={d:function(e,a){for(var i in a)t.o(a,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:a[i]})},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 a(t,e){const a=t.x-e.x,i=t.y-e.y;return{dx:a,dy:i,distance:Math.sqrt(a*a+i*i)}}function i(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}}t.r(e),t.d(e,{loadExternalAttractInteraction:function(){return u}});class n extends class{constructor(t,e){this.position={x:t,y:e}}}{constructor(t,e,a){super(t,e),this.radius=a}contains(t){return e=t,i=this.position,a(e,i).distance<=this.radius;var e,i}intersects(t){const e=t,a=t,i=this.position,n=t.position,r=Math.abs(n.x-i.x),o=Math.abs(n.y-i.y),s=this.radius;if(void 0!==a.radius){return s+a.radius>Math.sqrt(r*r+o+o)}if(void 0!==e.size){const t=e.size.width,a=e.size.height,i=Math.pow(r-t,2)+Math.pow(o-a,2);return!(r>s+t||o>s+a)&&(r<=t||o<=a||i<=s*s)}return!1}}class r{}r.generatedAttribute="generated",r.randomColorValue="random",r.midColorValue="mid",r.touchEndEvent="touchend",r.mouseDownEvent="mousedown",r.mouseUpEvent="mouseup",r.mouseMoveEvent="mousemove",r.touchStartEvent="touchstart",r.touchMoveEvent="touchmove",r.mouseLeaveEvent="mouseleave",r.mouseOutEvent="mouseout",r.touchCancelEvent="touchcancel",r.resizeEvent="resize",r.visibilityChangeEvent="visibilitychange",r.noPolygonDataLoaded="No polygon data loaded.",r.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){return t===e||e instanceof Array&&e.indexOf(t)>-1}class c extends class{constructor(t){this.container=t,this.type=0}}{constructor(t){super(t),t.attract||(t.attract={particles:[]}),this.handleClickMode=e=>{const a=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*a.interactivity.modes.attract.duration)}}}isEnabled(){const t=this.container,e=t.actualOptions,a=t.interactivity.mouse,i=e.interactivity.events;if(!(a.position&&i.onHover.enable||a.clickPosition&&i.onClick.enable))return!1;const n=i.onHover.mode,r=i.onClick.mode;return s("attract",n)||s("attract",r)}reset(){}async interact(){const t=this.container,e=t.actualOptions,a=t.interactivity.status===r.mouseMoveEvent,i=e.interactivity.events,n=i.onHover.enable,o=i.onHover.mode,c=i.onClick.enable,u=i.onClick.mode;a&&n&&s("attract",o)?this.hoverAttract():c&&s("attract",u)&&this.clickAttract()}hoverAttract(){const t=this.container,e=t.interactivity.mouse.position;if(!e)return;const a=t.retina.attractModeDistance;this.processAttract(e,a,new n(e.x,e.y,a))}processAttract(t,e,n){const r=this.container,s=r.actualOptions.interactivity.modes.attract,c=r.particles.quadTree.query(n);for(const n of c){const{dx:r,dy:c,distance:d}=a(n.position,t),y=s.speed*s.factor,p=(u=i(1-d/e,s.easing)*y,h=0,l=s.maxSpeed,Math.min(Math.max(u,h),l)),f=o.create(0===d?y:r/d*p,0===d?y:c/d*p);n.position.subFrom(f)}var u,h,l}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 a=t.retina.attractModeDistance;this.processAttract(e,a,new n(e.x,e.y,a))}else!1===t.attract.clicking&&(t.attract.particles=[])}}async function u(t){await t.addInteractor("externalAttract",(t=>new c(t)))}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 o=e();for(var n in o)("object"==typeof exports?exports:t)[n]=o[n]}}(window,(function(){return function(){"use strict";var t={d:function(e,o){for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},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,{loadExternalBounceInteraction:function(){return M}});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 n(t){return"number"==typeof t?t:function(t){const e=s(t);let o=i(t);return e===o&&(o=0),Math.random()*(e-o)+o}(t)}function i(t){return"number"==typeof t?t:t.min}function s(t){return"number"==typeof t?t:t.max}function r(t,e){if(t===e||void 0===e&&"number"==typeof t)return t;const o=i(t),n=s(t);return void 0!==e?{min:Math.min(o,e),max:Math.max(n,e)}:r(o,n)}function c(t){const e=t.random,{enable:o,minimumValue:i}="boolean"==typeof e?{enable:e,minimumValue:0}:e;return n(o?r(t.value,i):t.value)}function a(t,e){const o=t.x-e.x,n=t.y-e.y;return{dx:o,dy:n,distance:Math.sqrt(o*o+n*n)}}function u(t,e,n,i){return o.create(t.x*(n-i)/(n+i)+2*e.x*i/(n+i),t.y)}function h(t,e,o,n,i,s){const r={bounced:!1};return e.min<n.min||e.min>n.max||e.max<n.min||e.max>n.max||(t.max>=o.min&&t.max<=(o.max+o.min)/2&&i>0||t.min<=o.max&&t.min>(o.max+o.min)/2&&i<0)&&(r.velocity=i*-s,r.bounced=!0),r}function y(t,e){return t===e||e instanceof Array&&e.indexOf(t)>-1}function l(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function f(t,e){const o=t.selectors;if(o instanceof Array)for(const n of o)e(n,t);else e(o,t)}function d(t,e){const{x:o,y:n}=t.velocity.sub(e.velocity),[i,s]=[t.position,e.position],{dx:r,dy:c}=a(s,i);if(o*r+n*c<0)return;const h=-Math.atan2(c,r),y=t.mass,l=e.mass,f=t.velocity.rotate(h),d=e.velocity.rotate(h),m=u(f,d,y,l),x=u(d,f,y,l),v=m.rotate(-h),p=x.rotate(-h);t.velocity.x=v.x*t.factor.x,t.velocity.y=v.y*t.factor.y,e.velocity.x=p.x*e.factor.x,e.velocity.y=p.y*e.factor.y}function m(t,e){const o=l(t.getPosition(),t.getRadius()),n=h({min:o.left,max:o.right},{min:o.top,max:o.bottom},{min:e.left,max:e.right},{min:e.top,max:e.bottom},t.velocity.x,c(t.options.bounce.horizontal));n.bounced&&(void 0!==n.velocity&&(t.velocity.x=n.velocity),void 0!==n.position&&(t.position.x=n.position));const i=h({min:o.top,max:o.bottom},{min:o.left,max:o.right},{min:e.top,max:e.bottom},{min:e.left,max:e.right},t.velocity.y,c(t.options.bounce.vertical));i.bounced&&(void 0!==i.velocity&&(t.velocity.y=i.velocity),void 0!==i.position&&(t.position.y=i.position))}class x{constructor(t,e){this.position={x:t,y:e}}}class v extends x{constructor(t,e,o){super(t,e),this.radius=o}contains(t){return e=t,o=this.position,a(e,o).distance<=this.radius;var e,o}intersects(t){const e=t,o=t,n=this.position,i=t.position,s=Math.abs(i.x-n.x),r=Math.abs(i.y-n.y),c=this.radius;if(void 0!==o.radius){return c+o.radius>Math.sqrt(s*s+r+r)}if(void 0!==e.size){const t=e.size.width,o=e.size.height,n=Math.pow(s-t,2)+Math.pow(r-o,2);return!(s>c+t||r>c+o)&&(s<=t||r<=o||n<=c*c)}return!1}}class p{}p.generatedAttribute="generated",p.randomColorValue="random",p.midColorValue="mid",p.touchEndEvent="touchend",p.mouseDownEvent="mousedown",p.mouseUpEvent="mouseup",p.mouseMoveEvent="mousemove",p.touchStartEvent="touchstart",p.touchMoveEvent="touchmove",p.mouseLeaveEvent="mouseleave",p.mouseOutEvent="mouseout",p.touchCancelEvent="touchcancel",p.resizeEvent="resize",p.visibilityChangeEvent="visibilitychange",p.noPolygonDataLoaded="No polygon data loaded.",p.noPolygonFound="No polygon found, you need to specify SVG url in config.";class g extends x{constructor(t,e,o,n){super(t,e),this.size={height:n,width:o}}contains(t){const e=this.size.width,o=this.size.height,n=this.position;return t.x>=n.x&&t.x<=n.x+e&&t.y>=n.y&&t.y<=n.y+o}intersects(t){const e=t,o=t,n=this.size.width,i=this.size.height,s=this.position,r=t.position;if(void 0!==o.radius)return o.intersects(this);if(!e.size)return!1;const c=e.size,a=c.width,u=c.height;return r.x<s.x+n&&r.x+a>s.x&&r.y<s.y+i&&r.y+u>s.y}}class b extends class{constructor(t){this.container=t,this.type=0}}{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.actualOptions,o=t.interactivity.mouse,n=e.interactivity.events,i=n.onDiv;return o.position&&n.onHover.enable&&y("bounce",n.onHover.mode)||function(t,e){return e instanceof Array?!!e.find((e=>e.enable&&y(t,e.mode))):y(t,e.mode)}("bounce",i)}async interact(){const t=this.container,e=t.actualOptions.interactivity.events,o=t.interactivity.status===p.mouseMoveEvent,n=e.onHover.enable,i=e.onHover.mode,s=e.onDiv;o&&n&&y("bounce",i)?this.processMouseBounce():function(t,e,o){if(e instanceof Array)for(const n of e){const e=n.mode;n.enable&&y(t,e)&&f(n,o)}else{const n=e.mode;e.enable&&y(t,n)&&f(e,o)}}("bounce",s,((t,e)=>this.singleSelectorBounce(t,e)))}reset(){}processMouseBounce(){const t=this.container,e=10*t.retina.pixelRatio,o=t.interactivity.mouse.position,n=t.retina.bounceModeDistance;o&&this.processBounce(o,n,new v(o.x,o.y,n+e))}singleSelectorBounce(t,e){const o=this.container,n=document.querySelectorAll(t);n.length&&n.forEach((t=>{const n=t,i=o.retina.pixelRatio,s={x:(n.offsetLeft+n.offsetWidth/2)*i,y:(n.offsetTop+n.offsetHeight/2)*i},r=n.offsetWidth/2*i,c=10*i,a="circle"===e.type?new v(s.x,s.y,r+c):new g(n.offsetLeft*i-c,n.offsetTop*i-c,n.offsetWidth*i+2*c,n.offsetHeight*i+2*c);this.processBounce(s,r,a)}))}processBounce(t,e,n){const i=this.container.particles.quadTree.query(n);for(const r of i)n instanceof v?d({position:(s=r).getPosition(),radius:s.getRadius(),mass:s.getMass(),velocity:s.velocity,factor:o.create(c(s.options.bounce.horizontal),c(s.options.bounce.vertical))},{position:t,radius:e,mass:e**2*Math.PI/2,velocity:o.origin,factor:o.origin}):n instanceof g&&m(r,l(t,e));var s}}async function M(t){await t.addInteractor("externalBounce",(t=>new b(t)))}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 o=t();for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(window,(function(){return function(){"use strict";var e={d:function(t,o){for(var i in o)e.o(o,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:o[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 o(e,t,o){return Math.min(Math.max(e,t),o)}function i(e,t,o,i){return Math.floor((e*o+t*i)/(o+i))}function n(e){const t=s(e);let o=r(e);return t===o&&(o=0),Math.random()*(t-o)+o}function r(e){return"number"==typeof e?e:e.min}function s(e){return"number"==typeof e?e:e.max}function l(e,t){if(e===t||void 0===t&&"number"==typeof e)return e;const o=r(e),i=s(e);return void 0!==t?{min:Math.min(o,t),max:Math.max(i,t)}:l(o,i)}function u(e,t){return function(e,t){const o=e.x-t.x,i=e.y-t.y;return{dx:o,dy:i,distance:Math.sqrt(o*o+i*i)}}(e,t).distance}e.r(t),e.d(t,{loadExternalBubbleInteraction:function(){return j}});class a{}function b(e,t){if(!(t instanceof Array))return e.matches(t);for(const o of t)if(e.matches(o))return!0;return!1}function c(e,t){return e===t||t instanceof Array&&t.indexOf(e)>-1}function d(e,t,o=!0){return e[void 0!==t&&o?t%e.length:function(e){return Math.floor(Math.random()*e.length)}(e)]}function f(e,t){const o=e.selectors;if(o instanceof Array)for(const i of o)t(i,e);else t(o,e)}function h(e,t){if(t&&e)return e instanceof Array?e.find((e=>b(t,e.selectors))):b(t,e.selectors)?e:void 0}function v(e,t,o){let i=o;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function p(e){if(e.startsWith("rgb")){const t=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.]+)\s*)?\)/i.exec(e);return t?{a:t.length>4?parseFloat(t[5]):1,b:parseInt(t[3],10),g:parseInt(t[2],10),r:parseInt(t[1],10)}:void 0}if(e.startsWith("hsl")){const t=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(e);return t?function(e){const t=m(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}({a:t.length>4?parseFloat(t[5]):1,h:parseInt(t[1],10),l:parseInt(t[3],10),s:parseInt(t[2],10)}):void 0}if(e.startsWith("hsv")){const t=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(e);return t?function(e){const t=x(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}({a:t.length>4?parseFloat(t[5]):1,h:parseInt(t[1],10),s:parseInt(t[2],10),v:parseInt(t[3],10)}):void 0}{const t=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,o=e.replace(t,((e,t,o,i,n)=>t+t+o+o+i+i+(void 0!==n?n+n:""))),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(o);return i?{a:void 0!==i[4]?parseInt(i[4],16)/255:1,b:parseInt(i[3],16),g:parseInt(i[2],16),r:parseInt(i[1],16)}:void 0}}function y(e,t,o=!0){var i,n,r;if(void 0===e)return;const s="string"==typeof e?{value:e}:e;let l;if("string"==typeof s.value)l=s.value===a.randomColorValue?M():function(e){return p(e)}(s.value);else if(s.value instanceof Array){l=y({value:d(s.value,t,o)})}else{const e=s.value,t=null!==(i=e.rgb)&&void 0!==i?i:s.value;if(void 0!==t.r)l=t;else{const t=null!==(n=e.hsl)&&void 0!==n?n:s.value;if(void 0!==t.h&&void 0!==t.l)l=m(t);else{const t=null!==(r=e.hsv)&&void 0!==r?r:s.value;void 0!==t.h&&void 0!==t.v&&(l=x(t))}}}return l}function g(e){const t=e.r/255,o=e.g/255,i=e.b/255,n=Math.max(t,o,i),r=Math.min(t,o,i),s={h:0,l:(n+r)/2,s:0};return n!==r&&(s.s=s.l<.5?(n-r)/(n+r):(n-r)/(2-n-r),s.h=t===n?(o-i)/(n-r):s.h=o===n?2+(i-t)/(n-r):4+(t-o)/(n-r)),s.l*=100,s.s*=100,s.h*=60,s.h<0&&(s.h+=360),s}function m(e){const t={b:0,g:0,r:0},o={h:e.h/360,l:e.l/100,s:e.s/100};if(0===o.s)t.b=o.l,t.g=o.l,t.r=o.l;else{const e=o.l<.5?o.l*(1+o.s):o.l+o.s-o.l*o.s,i=2*o.l-e;t.r=v(i,e,o.h+1/3),t.g=v(i,e,o.h),t.b=v(i,e,o.h-1/3)}return t.r=Math.floor(255*t.r),t.g=Math.floor(255*t.g),t.b=Math.floor(255*t.b),t}function x(e){const t={b:0,g:0,r:0},o=e.h/60,i=e.s/100,n=e.v/100,r=n*i,s=r*(1-Math.abs(o%2-1));let l;if(o>=0&&o<=1?l={r:r,g:s,b:0}:o>1&&o<=2?l={r:s,g:r,b:0}:o>2&&o<=3?l={r:0,g:r,b:s}:o>3&&o<=4?l={r:0,g:s,b:r}:o>4&&o<=5?l={r:s,g:0,b:r}:o>5&&o<=6&&(l={r:r,g:0,b:s}),l){const e=n-r;t.r=Math.floor(255*(l.r+e)),t.g=Math.floor(255*(l.g+e)),t.b=Math.floor(255*(l.b+e))}return t}function M(e){const t=null!=e?e:0;return{b:Math.floor(n(l(t,256))),g:Math.floor(n(l(t,256))),r:Math.floor(n(l(t,256)))}}function z(e,t,o,n){let r=e,s=t;return void 0===r.r&&(r=m(e)),void 0===s.r&&(s=m(t)),{b:i(r.b,s.b,o,n),g:i(r.g,s.g,o,n),r:i(r.r,s.r,o,n)}}a.generatedAttribute="generated",a.randomColorValue="random",a.midColorValue="mid",a.touchEndEvent="touchend",a.mouseDownEvent="mousedown",a.mouseUpEvent="mouseup",a.mouseMoveEvent="mousemove",a.touchStartEvent="touchstart",a.touchMoveEvent="touchmove",a.mouseLeaveEvent="mouseleave",a.mouseOutEvent="mouseout",a.touchCancelEvent="touchcancel",a.resizeEvent="resize",a.visibilityChangeEvent="visibilitychange",a.noPolygonDataLoaded="No polygon data loaded.",a.noPolygonFound="No polygon found, you need to specify SVG url in config.";class O{constructor(e,t){this.position={x:e,y:t}}}class C extends O{constructor(e,t,o){super(e,t),this.radius=o}contains(e){return u(e,this.position)<=this.radius}intersects(e){const t=e,o=e,i=this.position,n=e.position,r=Math.abs(n.x-i.x),s=Math.abs(n.y-i.y),l=this.radius;if(void 0!==o.radius){return l+o.radius>Math.sqrt(r*r+s+s)}if(void 0!==t.size){const e=t.size.width,o=t.size.height,i=Math.pow(r-e,2)+Math.pow(s-o,2);return!(r>l+e||s>l+o)&&(r<=e||s<=o||i<=l*l)}return!1}}class E extends O{constructor(e,t,o,i){super(e,t),this.size={height:i,width:o}}contains(e){const t=this.size.width,o=this.size.height,i=this.position;return e.x>=i.x&&e.x<=i.x+t&&e.y>=i.y&&e.y<=i.y+o}intersects(e){const t=e,o=e,i=this.size.width,n=this.size.height,r=this.position,s=e.position;if(void 0!==o.radius)return o.intersects(this);if(!t.size)return!1;const l=t.size,u=l.width,a=l.height;return s.x<r.x+i&&s.x+u>r.x&&s.y<r.y+n&&s.y+a>r.y}}function w(e,t,i,n){if(t>=i){return o(e+(t-i)*n,e,t)}if(t<i){return o(e-(i-t)*n,t,e)}}class B extends class{constructor(e){this.container=e,this.type=0}}{constructor(e){super(e),e.bubble||(e.bubble={}),this.handleClickMode=t=>{"bubble"===t&&(e.bubble||(e.bubble={}),e.bubble.clicking=!0)}}isEnabled(){const e=this.container,t=e.actualOptions,o=e.interactivity.mouse,i=t.interactivity.events,n=function(e,t){return t instanceof Array?!!t.find((t=>t.enable&&c(e,t.mode))):c(e,t.mode)}("bubble",i.onDiv);if(!(n||i.onHover.enable&&o.position||i.onClick.enable&&o.clickPosition))return!1;const r=i.onHover.mode,s=i.onClick.mode;return c("bubble",r)||c("bubble",s)||n}reset(e,t){e.bubble.inRange&&!t||(delete e.bubble.div,delete e.bubble.opacity,delete e.bubble.radius,delete e.bubble.color)}async interact(){const e=this.container.actualOptions.interactivity.events,t=e.onHover,o=e.onClick,i=t.enable,n=t.mode,r=o.enable,s=o.mode,l=e.onDiv;i&&c("bubble",n)?this.hoverBubble():r&&c("bubble",s)?this.clickBubble():function(e,t,o){if(t instanceof Array)for(const i of t){const t=i.mode;i.enable&&c(e,t)&&f(i,o)}else{const i=t.mode;t.enable&&c(e,i)&&f(t,o)}}("bubble",l,((e,t)=>this.singleSelectorHover(e,t)))}singleSelectorHover(e,t){const o=this.container,i=document.querySelectorAll(e);i.length&&i.forEach((e=>{const i=e,n=o.retina.pixelRatio,r={x:(i.offsetLeft+i.offsetWidth/2)*n,y:(i.offsetTop+i.offsetHeight/2)*n},s=i.offsetWidth/2*n,l="circle"===t.type?new C(r.x,r.y,s):new E(i.offsetLeft*n,i.offsetTop*n,i.offsetWidth*n,i.offsetHeight*n),u=o.particles.quadTree.query(l);for(const e of u){if(!l.contains(e.getPosition()))continue;e.bubble.inRange=!0;const t=h(o.actualOptions.interactivity.modes.bubble.divs,i);e.bubble.div&&e.bubble.div===i||(this.reset(e,!0),e.bubble.div=i),this.hoverBubbleSize(e,1,t),this.hoverBubbleOpacity(e,1,t),this.hoverBubbleColor(e,1,t)}}))}process(e,t,o,i){const n=this.container,r=i.bubbleObj.optValue;if(void 0===r)return;const s=n.actualOptions.interactivity.modes.bubble.duration,l=n.retina.bubbleModeDistance,u=i.particlesObj.optValue,a=i.bubbleObj.value,b=i.particlesObj.value||0,c=i.type;if(r!==u)if(n.bubble||(n.bubble={}),n.bubble.durationEnd)a&&("size"===c&&delete e.bubble.radius,"opacity"===c&&delete e.bubble.opacity);else if(t<=l){if((null!=a?a:b)!==r){const t=b-o*(b-r)/s;"size"===c&&(e.bubble.radius=t),"opacity"===c&&(e.bubble.opacity=t)}}else"size"===c&&delete e.bubble.radius,"opacity"===c&&delete e.bubble.opacity}clickBubble(){var e,t;const o=this.container,i=o.actualOptions,n=o.interactivity.mouse.clickPosition;if(!n)return;o.bubble||(o.bubble={});const r=o.retina.bubbleModeDistance,l=o.particles.quadTree.queryCircle(n,r);for(const r of l){if(!o.bubble.clicking)continue;r.bubble.inRange=!o.bubble.durationEnd;const l=u(r.getPosition(),n),a=((new Date).getTime()-(o.interactivity.mouse.clickTime||0))/1e3;a>i.interactivity.modes.bubble.duration&&(o.bubble.durationEnd=!0),a>2*i.interactivity.modes.bubble.duration&&(o.bubble.clicking=!1,o.bubble.durationEnd=!1);const b={bubbleObj:{optValue:o.retina.bubbleModeSize,value:r.bubble.radius},particlesObj:{optValue:s(r.options.size.value)*o.retina.pixelRatio,value:r.size.value},type:"size"};this.process(r,l,a,b);const c={bubbleObj:{optValue:i.interactivity.modes.bubble.opacity,value:r.bubble.opacity},particlesObj:{optValue:s(r.options.opacity.value),value:null!==(t=null===(e=r.opacity)||void 0===e?void 0:e.value)&&void 0!==t?t:1},type:"opacity"};this.process(r,l,a,c),o.bubble.durationEnd?delete r.bubble.color:l<=o.retina.bubbleModeDistance?this.hoverBubbleColor(r,l):delete r.bubble.color}}hoverBubble(){const e=this.container,t=e.interactivity.mouse.position;if(void 0===t)return;const o=e.retina.bubbleModeDistance,i=e.particles.quadTree.queryCircle(t,o);for(const n of i){n.bubble.inRange=!0;const i=u(n.getPosition(),t),r=1-i/o;i<=o?r>=0&&e.interactivity.status===a.mouseMoveEvent&&(this.hoverBubbleSize(n,r),this.hoverBubbleOpacity(n,r),this.hoverBubbleColor(n,r)):this.reset(n),e.interactivity.status===a.mouseLeaveEvent&&this.reset(n)}}hoverBubbleSize(e,t,o){const i=this.container,n=(null==o?void 0:o.size)?o.size*i.retina.pixelRatio:i.retina.bubbleModeSize;if(void 0===n)return;const r=s(e.options.size.value)*i.retina.pixelRatio,l=w(e.size.value,n,r,t);void 0!==l&&(e.bubble.radius=l)}hoverBubbleOpacity(e,t,o){var i,n,r;const l=this.container.actualOptions,u=null!==(i=null==o?void 0:o.opacity)&&void 0!==i?i:l.interactivity.modes.bubble.opacity;if(!u)return;const a=e.options.opacity.value,b=w(null!==(r=null===(n=e.opacity)||void 0===n?void 0:n.value)&&void 0!==r?r:1,u,s(a),t);void 0!==b&&(e.bubble.opacity=b)}hoverBubbleColor(e,t,o){const i=this.container.actualOptions,n=null!=o?o:i.interactivity.modes.bubble;if(!e.bubble.finalColor){const t=n.color;if(!t)return;const o=t instanceof Array?d(t):t;e.bubble.finalColor=function(e,t,o=!0){const i=y(e,t,o);return void 0!==i?g(i):void 0}(o)}if(e.bubble.finalColor)if(n.mix){e.bubble.color=void 0;const o=e.getFillColor();e.bubble.color=o?g(z(o,e.bubble.finalColor,1-t,t)):e.bubble.finalColor}else e.bubble.color=e.bubble.finalColor}}async function j(e){await e.addInteractor("externalBubble",(e=>new B(e)))}return t}()}));
|
|
@@ -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={};t.r(e),t.d(e,{loadExternalConnectInteraction:function(){return i}});function n(t,e){return t===e||e instanceof Array&&e.indexOf(t)>-1}class o extends class{constructor(t){this.container=t,this.type=0}}{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.interactivity.mouse,o=t.actualOptions.interactivity.events;return!(!o.onHover.enable||!e.position)&&n("connect",o.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 n=Math.abs(t.retina.connectModeRadius),o=t.particles.quadTree.queryCircle(e,n);let i=0;for(const e of o){const n=e.getPosition();for(const r of o.slice(i+1)){const o=r.getPosition(),i=Math.abs(t.retina.connectModeDistance),c=Math.abs(n.x-o.x),a=Math.abs(n.y-o.y);c<i&&a<i&&t.canvas.drawConnectLine(e,r)}++i}}}}async function i(t){await t.addInteractor("externalConnect",(t=>new o(t)))}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,e,n,o){return Math.floor((t*n+e*o)/(n+o))}function o(t){const e=i(t);let n=r(t);return e===n&&(n=0),Math.random()*(e-n)+n}function r(t){return"number"==typeof t?t:t.min}function i(t){return"number"==typeof t?t:t.max}function a(t,e){if(t===e||void 0===e&&"number"==typeof t)return t;const n=r(t),o=i(t);return void 0!==e?{min:Math.min(n,e),max:Math.max(o,e)}:a(n,o)}function s(t,e){return function(t,e){const n=t.x-e.x,o=t.y-e.y;return{dx:n,dy:o,distance:Math.sqrt(n*n+o*o)}}(t,e).distance}t.r(e),t.d(e,{loadExternalGrabInteraction:function(){return M}});class u{}function l(t,e){return t===e||e instanceof Array&&e.indexOf(t)>-1}function c(t,e,n=!0){return t[void 0!==e&&n?e%t.length:function(t){return Math.floor(Math.random()*t.length)}(t)]}function d(t,e,n){let o=n;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 f(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?function(t){const e=g(t);return{a:t.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(t.startsWith("hsv")){const e=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?function(t){const e=b(t);return{a:t.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,n=t.replace(e,((t,e,n,o,r)=>e+e+n+n+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(n);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 v(t,e,n=!0){var o,r,i;if(void 0===t)return;const a="string"==typeof t?{value:t}:t;let s;if("string"==typeof a.value)s=a.value===u.randomColorValue?h():function(t){return f(t)}(a.value);else if(a.value instanceof Array){s=v({value:c(a.value,e,n)})}else{const t=a.value,e=null!==(o=t.rgb)&&void 0!==o?o:a.value;if(void 0!==e.r)s=e;else{const e=null!==(r=t.hsl)&&void 0!==r?r:a.value;if(void 0!==e.h&&void 0!==e.l)s=g(e);else{const e=null!==(i=t.hsv)&&void 0!==i?i:a.value;void 0!==e.h&&void 0!==e.v&&(s=b(e))}}}return s}function g(t){const e={b:0,g:0,r:0},n={h:t.h/360,l:t.l/100,s:t.s/100};if(0===n.s)e.b=n.l,e.g=n.l,e.r=n.l;else{const t=n.l<.5?n.l*(1+n.s):n.l+n.s-n.l*n.s,o=2*n.l-t;e.r=d(o,t,n.h+1/3),e.g=d(o,t,n.h),e.b=d(o,t,n.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 b(t){const e={b:0,g:0,r:0},n=t.h/60,o=t.s/100,r=t.v/100,i=r*o,a=i*(1-Math.abs(n%2-1));let s;if(n>=0&&n<=1?s={r:i,g:a,b:0}:n>1&&n<=2?s={r:a,g:i,b:0}:n>2&&n<=3?s={r:0,g:i,b:a}:n>3&&n<=4?s={r:0,g:a,b:i}:n>4&&n<=5?s={r:a,g:0,b:i}:n>5&&n<=6&&(s={r:i,g:0,b:a}),s){const t=r-i;e.r=Math.floor(255*(s.r+t)),e.g=Math.floor(255*(s.g+t)),e.b=Math.floor(255*(s.b+t))}return e}function h(t){const e=null!=t?t:0;return{b:Math.floor(o(a(e,256))),g:Math.floor(o(a(e,256))),r:Math.floor(o(a(e,256)))}}function p(t,e,o){var r,i;if(o===u.randomColorValue)return h();if("mid"!==o)return o;{const o=null!==(r=t.getFillColor())&&void 0!==r?r:t.getStrokeColor(),a=null!==(i=null==e?void 0:e.getFillColor())&&void 0!==i?i:null==e?void 0:e.getStrokeColor();if(o&&a&&e)return function(t,e,o,r){let i=t,a=e;return void 0===i.r&&(i=g(t)),void 0===a.r&&(a=g(e)),{b:n(i.b,a.b,o,r),g:n(i.g,a.g,o,r),r:n(i.r,a.r,o,r)}}(o,a,t.getRadius(),e.getRadius());{const t=null!=o?o:a;if(t)return g(t)}}}function m(t,e,n){const o="string"==typeof t?t:t.value;return o===u.randomColorValue?n?v({value:o}):e?u.randomColorValue:u.midColorValue:v({value:o})}u.generatedAttribute="generated",u.randomColorValue="random",u.midColorValue="mid",u.touchEndEvent="touchend",u.mouseDownEvent="mousedown",u.mouseUpEvent="mouseup",u.mouseMoveEvent="mousemove",u.touchStartEvent="touchstart",u.touchMoveEvent="touchmove",u.mouseLeaveEvent="mouseleave",u.mouseOutEvent="mouseout",u.touchCancelEvent="touchcancel",u.resizeEvent="resize",u.visibilityChangeEvent="visibilitychange",u.noPolygonDataLoaded="No polygon data loaded.",u.noPolygonFound="No polygon found, you need to specify SVG url in config.";class y extends class{constructor(t){this.container=t,this.type=0}}{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.interactivity.mouse,n=t.actualOptions.interactivity.events;return n.onHover.enable&&!!e.position&&l("grab",n.onHover.mode)}reset(){}async interact(){var t;const e=this.container,n=e.actualOptions,o=n.interactivity;if(!o.events.onHover.enable||e.interactivity.status!==u.mouseMoveEvent)return;const r=e.interactivity.mouse.position;if(!r)return;const i=e.retina.grabModeDistance,a=e.particles.quadTree.queryCircle(r,i);for(const u of a){const a=s(u.getPosition(),r);if(a>i)continue;const l=o.modes.grab.links,c=l.opacity,d=c-a*c/i;if(d<=0)continue;const f=null!==(t=l.color)&&void 0!==t?t:u.options.links.color;if(!e.particles.grabLineColor){const t=n.interactivity.modes.grab.links;e.particles.grabLineColor=m(f,t.blink,t.consent)}const v=p(u,void 0,e.particles.grabLineColor);if(!v)return;e.canvas.drawGrabLine(u,v,d,r)}}}async function M(t){await t.addInteractor("externalGrab",(t=>new y(t)))}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 s=t();for(var i in s)("object"==typeof exports?exports:e)[i]=s[i]}}(window,(function(){return function(){"use strict";var e={d:function(t,s){for(var i in s)e.o(s,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:s[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 s(e,t){const s=e.x-t.x,i=e.y-t.y;return{dx:s,dy:i,distance:Math.sqrt(s*s+i*i)}}function i(e,t){switch(t){case"ease-out-quad":return 1-(1-e)**2;case"ease-out-cubic":return 1-(1-e)**3;case"ease-out-quart":return 1-(1-e)**4;case"ease-out-quint":return 1-(1-e)**5;case"ease-out-expo":return 1===e?1:1-Math.pow(2,-10*e);case"ease-out-sine":return Math.sin(e*Math.PI/2);case"ease-out-back":{const t=1.70158;return 1+(t+1)*Math.pow(e-1,3)+t*Math.pow(e-1,2)}case"ease-out-circ":return Math.sqrt(1-Math.pow(e-1,2));default:return e}}function n(e,t){if(!(t instanceof Array))return e.matches(t);for(const s of t)if(e.matches(s))return!0;return!1}function o(e,t){return e===t||t instanceof Array&&t.indexOf(e)>-1}function r(e,t){const s=e.selectors;if(s instanceof Array)for(const i of s)t(i,e);else t(s,e)}e.r(t),e.d(t,{loadExternalRepulseInteraction:function(){return d}});class c{constructor(e,t){this.position={x:e,y:t}}}class a extends c{constructor(e,t,s){super(e,t),this.radius=s}contains(e){return t=e,i=this.position,s(t,i).distance<=this.radius;var t,i}intersects(e){const t=e,s=e,i=this.position,n=e.position,o=Math.abs(n.x-i.x),r=Math.abs(n.y-i.y),c=this.radius;if(void 0!==s.radius){return c+s.radius>Math.sqrt(o*o+r+r)}if(void 0!==t.size){const e=t.size.width,s=t.size.height,i=Math.pow(o-e,2)+Math.pow(r-s,2);return!(o>c+e||r>c+s)&&(o<=e||r<=s||i<=c*c)}return!1}}class u{}u.generatedAttribute="generated",u.randomColorValue="random",u.midColorValue="mid",u.touchEndEvent="touchend",u.mouseDownEvent="mousedown",u.mouseUpEvent="mouseup",u.mouseMoveEvent="mousemove",u.touchStartEvent="touchstart",u.touchMoveEvent="touchmove",u.mouseLeaveEvent="mouseleave",u.mouseOutEvent="mouseout",u.touchCancelEvent="touchcancel",u.resizeEvent="resize",u.visibilityChangeEvent="visibilitychange",u.noPolygonDataLoaded="No polygon data loaded.",u.noPolygonFound="No polygon found, you need to specify SVG url in config.";class l extends c{constructor(e,t,s,i){super(e,t),this.size={height:i,width:s}}contains(e){const t=this.size.width,s=this.size.height,i=this.position;return e.x>=i.x&&e.x<=i.x+t&&e.y>=i.y&&e.y<=i.y+s}intersects(e){const t=e,s=e,i=this.size.width,n=this.size.height,o=this.position,r=e.position;if(void 0!==s.radius)return s.intersects(this);if(!t.size)return!1;const c=t.size,a=c.width,u=c.height;return r.x<o.x+i&&r.x+a>o.x&&r.y<o.y+n&&r.y+u>o.y}}class h{constructor(e,t){if("number"!=typeof e&&e)this.x=e.x,this.y=e.y;else{if(void 0===e||void 0===t)throw new Error("tsParticles - Vector not initialized correctly");this.x=e,this.y=t}}static clone(e){return h.create(e.x,e.y)}static create(e,t){return new h(e,t)}static get origin(){return h.create(0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this.updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this.updateFromAngle(this.angle,e)}add(e){return h.create(this.x+e.x,this.y+e.y)}addTo(e){this.x+=e.x,this.y+=e.y}sub(e){return h.create(this.x-e.x,this.y-e.y)}subFrom(e){this.x-=e.x,this.y-=e.y}mult(e){return h.create(this.x*e,this.y*e)}multTo(e){this.x*=e,this.y*=e}div(e){return h.create(this.x/e,this.y/e)}divTo(e){this.x/=e,this.y/=e}distanceTo(e){return this.sub(e).length}getLengthSq(){return this.x**2+this.y**2}distanceToSq(e){return this.sub(e).getLengthSq()}manhattanDistanceTo(e){return Math.abs(e.x-this.x)+Math.abs(e.y-this.y)}copy(){return h.clone(this)}setTo(e){this.x=e.x,this.y=e.y}rotate(e){return h.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e))}updateFromAngle(e,t){this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class p extends class{constructor(e){this.container=e,this.type=0}}{constructor(e){super(e),e.repulse||(e.repulse={particles:[]}),this.handleClickMode=t=>{const s=this.container.actualOptions;if("repulse"===t){e.repulse||(e.repulse={particles:[]}),e.repulse.clicking=!0,e.repulse.count=0;for(const t of e.repulse.particles)t.velocity.setTo(t.initialVelocity);e.repulse.particles=[],e.repulse.finish=!1,setTimeout((()=>{e.destroyed||(e.repulse||(e.repulse={particles:[]}),e.repulse.clicking=!1)}),1e3*s.interactivity.modes.repulse.duration)}}}isEnabled(){const e=this.container,t=e.actualOptions,s=e.interactivity.mouse,i=t.interactivity.events,n=function(e,t){return t instanceof Array?!!t.find((t=>t.enable&&o(e,t.mode))):o(e,t.mode)}("repulse",i.onDiv);if(!(n||i.onHover.enable&&s.position||i.onClick.enable&&s.clickPosition))return!1;const r=i.onHover.mode,c=i.onClick.mode;return o("repulse",r)||o("repulse",c)||n}reset(){}async interact(){const e=this.container,t=e.actualOptions,s=e.interactivity.status===u.mouseMoveEvent,i=t.interactivity.events,n=i.onHover.enable,c=i.onHover.mode,a=i.onClick.enable,l=i.onClick.mode,h=i.onDiv;s&&n&&o("repulse",c)?this.hoverRepulse():a&&o("repulse",l)?this.clickRepulse():function(e,t,s){if(t instanceof Array)for(const i of t){const t=i.mode;i.enable&&o(e,t)&&r(i,s)}else{const i=t.mode;t.enable&&o(e,i)&&r(t,s)}}("repulse",h,((e,t)=>this.singleSelectorRepulse(e,t)))}singleSelectorRepulse(e,t){const s=this.container,i=document.querySelectorAll(e);i.length&&i.forEach((e=>{const i=e,o=s.retina.pixelRatio,r={x:(i.offsetLeft+i.offsetWidth/2)*o,y:(i.offsetTop+i.offsetHeight/2)*o},c=i.offsetWidth/2*o,u="circle"===t.type?new a(r.x,r.y,c):new l(i.offsetLeft*o,i.offsetTop*o,i.offsetWidth*o,i.offsetHeight*o),h=function(e,t){if(t&&e)return e instanceof Array?e.find((e=>n(t,e.selectors))):n(t,e.selectors)?e:void 0}(s.actualOptions.interactivity.modes.repulse.divs,i);this.processRepulse(r,c,u,h)}))}hoverRepulse(){const e=this.container,t=e.interactivity.mouse.position;if(!t)return;const s=e.retina.repulseModeDistance;this.processRepulse(t,s,new a(t.x,t.y,s))}processRepulse(e,t,n,o){var r;const c=this.container,a=c.particles.quadTree.query(n),u=c.actualOptions.interactivity.modes.repulse;for(const n of a){const{dx:c,dy:a,distance:f}=s(n.position,e),y=(null!==(r=null==o?void 0:o.speed)&&void 0!==r?r:u.speed)*u.factor,v=(l=i(1-f/t,u.easing)*y,p=0,d=u.maxSpeed,Math.min(Math.max(l,p),d)),x=h.create(0===f?y:c/f*v,0===f?y:a/f*v);n.position.addTo(x)}var l,p,d}clickRepulse(){const e=this.container;if(e.repulse||(e.repulse={particles:[]}),e.repulse.finish||(e.repulse.count||(e.repulse.count=0),e.repulse.count++,e.repulse.count===e.particles.count&&(e.repulse.finish=!0)),e.repulse.clicking){const t=e.retina.repulseModeDistance,i=Math.pow(t/6,3),n=e.interactivity.mouse.clickPosition;if(void 0===n)return;const o=new a(n.x,n.y,i),r=e.particles.quadTree.query(o);for(const t of r){const{dx:o,dy:r,distance:c}=s(n,t.position),a=c**2,u=e.actualOptions.interactivity.modes.repulse.speed,l=-i*u/a;if(a<=i){e.repulse.particles.push(t);const s=h.create(o,r);s.length=l,t.velocity.setTo(s)}}}else if(!1===e.repulse.clicking){for(const t of e.repulse.particles)t.velocity.setTo(t.initialVelocity);e.repulse.particles=[]}}}async function d(e){await e.addInteractor("externalRepulse",(e=>new p(e)))}return t}()}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.43.
|
|
1
|
+
/*! tsParticles v1.43.1 by Matteo Bruni */
|
|
2
2
|
!function(t,i){if("object"==typeof exports&&"object"==typeof module)module.exports=i();else if("function"==typeof define&&define.amd)define([],i);else{var e=i();for(var o in e)("object"==typeof exports?exports:t)[o]=e[o]}}(window,(function(){return function(){"use strict";var t={d:function(i,e){for(var o in e)t.o(e,o)&&!t.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:e[o]})},o:function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},i={};t.r(i),t.d(i,{loadExternalTrailInteraction:function(){return n}});function e(t,i){return t===i||i instanceof Array&&i.indexOf(t)>-1}class o extends class{constructor(t){this.container=t,this.type=0}}{constructor(t){super(t),this.delay=0}async interact(t){var i,e,o,n;if(!this.container.retina.reduceFactor)return;const r=this.container,s=r.actualOptions.interactivity.modes.trail,a=1e3*s.delay/this.container.retina.reduceFactor;if(this.delay<a&&(this.delay+=t.value),this.delay<a)return;let c=!0;s.pauseOnStop&&(r.interactivity.mouse.position===this.lastPosition||(null===(i=r.interactivity.mouse.position)||void 0===i?void 0:i.x)===(null===(e=this.lastPosition)||void 0===e?void 0:e.x)&&(null===(o=r.interactivity.mouse.position)||void 0===o?void 0:o.y)===(null===(n=this.lastPosition)||void 0===n?void 0:n.y))&&(c=!1),r.interactivity.mouse.position?this.lastPosition={x:r.interactivity.mouse.position.x,y:r.interactivity.mouse.position.y}:delete this.lastPosition,c&&r.particles.push(s.quantity,r.interactivity.mouse,s.particles),this.delay-=a}isEnabled(){const t=this.container,i=t.actualOptions,o=t.interactivity.mouse,n=i.interactivity.events;return o.clicking&&o.inside&&!!o.position&&e("trail",n.onClick.mode)||o.inside&&!!o.position&&e("trail",n.onHover.mode)}reset(){}}async function n(t){await t.addInteractor("externalTrail",(t=>new o(t)))}return i}()}));
|
|
@@ -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 o=e();for(var n in o)("object"==typeof exports?exports:t)[n]=o[n]}}(window,(function(){return function(){"use strict";var t={d:function(e,o){for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},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,{loadParticlesAttractInteraction:function(){return r}});function o(t,e){const o=t.x-e.x,n=t.y-e.y;return{dx:o,dy:n,distance:Math.sqrt(o*o+n*n)}}class n extends class{constructor(t){this.container=t,this.type=1}}{constructor(t){super(t)}async interact(t){var e;const n=this.container,r=null!==(e=t.retina.attractDistance)&&void 0!==e?e:n.retina.attractDistance,i=t.getPosition(),a=n.particles.quadTree.queryCircle(i,r);for(const e of a){if(t===e||!e.options.move.attract.enable||e.destroyed||e.spawning)continue;const n=e.getPosition(),{dx:r,dy:a}=o(i,n),c=t.options.move.attract.rotate,s=r/(1e3*c.x),u=a/(1e3*c.y),l=e.size.value/t.size.value,d=1/l;t.velocity.x-=s*l,t.velocity.y-=u*l,e.velocity.x+=s*d,e.velocity.y+=u*d}}isEnabled(t){return t.options.move.attract.enable}reset(){}}async function r(t){await t.addInteractor("particlesAttract",(t=>new n(t)))}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 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,{loadParticlesCollisionsInteraction:function(){return f}});class i{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 i.create(t.x,t.y)}static create(t,e){return new i(t,e)}static get origin(){return i.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 i.create(this.x+t.x,this.y+t.y)}addTo(t){this.x+=t.x,this.y+=t.y}sub(t){return i.create(this.x-t.x,this.y-t.y)}subFrom(t){this.x-=t.x,this.y-=t.y}mult(t){return i.create(this.x*t,this.y*t)}multTo(t){this.x*=t,this.y*=t}div(t){return i.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 i.clone(this)}setTo(t){this.x=t.x,this.y=t.y}rotate(t){return i.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 o(t,e,i){return Math.min(Math.max(t,e),i)}function s(t){return"number"==typeof t?t:function(t){const e=r(t);let i=n(t);return e===i&&(i=0),Math.random()*(e-i)+i}(t)}function n(t){return"number"==typeof t?t:t.min}function r(t){return"number"==typeof t?t:t.max}function a(t,e){if(t===e||void 0===e&&"number"==typeof t)return t;const i=n(t),o=r(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(o,e)}:a(i,o)}function u(t){const e=t.random,{enable:i,minimumValue:o}="boolean"==typeof e?{enable:e,minimumValue:0}:e;return s(i?a(t.value,o):t.value)}function c(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 d(t,e,o,s){return i.create(t.x*(o-s)/(o+s)+2*e.x*s/(o+s),t.y)}function l(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:i.create(u(t.options.bounce.horizontal),u(t.options.bounce.vertical))}}function y(t,e){!function(t,e){const{x:i,y:o}=t.velocity.sub(e.velocity),[s,n]=[t.position,e.position],{dx:r,dy:a}=c(n,s);if(i*r+o*a<0)return;const u=-Math.atan2(a,r),l=t.mass,y=e.mass,h=t.velocity.rotate(u),f=e.velocity.rotate(u),g=d(h,f,l,y),x=d(f,h,l,y),v=g.rotate(-u),b=x.rotate(-u);t.velocity.x=v.x*t.factor.x,t.velocity.y=v.y*t.factor.y,e.velocity.x=b.x*e.factor.x,e.velocity.y=b.y*e.factor.y}(l(t),l(e))}class h extends class{constructor(t){this.container=t,this.type=1}}{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;c(i,s).distance<=o+e.getRadius()&&this.resolveCollision(t,e)}}resolveCollision(t,e){switch(t.options.collisions.mode){case"absorb":this.absorb(t,e);break;case"bounce":y(t,e);break;case"destroy":!function(t,e){t.unbreakable||e.unbreakable||y(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,s=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=o(t.getRadius()/e.getRadius(),0,e.getRadius())*s;t.size.value+=n,e.size.value-=n,e.getRadius()<=i.retina.pixelRatio&&(e.size.value=0,e.destroy())}else{const n=o(e.getRadius()/t.getRadius(),0,t.getRadius())*s;t.size.value-=n,e.size.value+=n,t.getRadius()<=i.retina.pixelRatio&&(t.size.value=0,t.destroy())}}}async function f(t){await t.addInteractor("particlesCollisions",(t=>new h(t)))}return e}()}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.43.
|
|
1
|
+
/*! tsParticles v1.43.1 by Matteo Bruni */
|
|
2
2
|
!function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var i=n();for(var e in i)("object"==typeof exports?exports:t)[e]=i[e]}}(window,(function(){return function(){"use strict";var t={d:function(n,i){for(var e in i)t.o(i,e)&&!t.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:i[e]})},o:function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{loadParticlesLinksInteraction:function(){return O}});class i{constructor(t,n){this.position={x:t,y:n}}}function e(t,n,i,e){return Math.floor((t*i+n*e)/(i+e))}function o(t){const n=a(t);let i=r(t);return n===i&&(i=0),Math.random()*(n-i)+i}function s(t){return"number"==typeof t?t:o(t)}function r(t){return"number"==typeof t?t:t.min}function a(t){return"number"==typeof t?t:t.max}function l(t,n){if(t===n||void 0===n&&"number"==typeof t)return t;const i=r(t),e=a(t);return void 0!==n?{min:Math.min(i,n),max:Math.max(e,n)}:l(i,e)}function c(t,n){const i=t.x-n.x,e=t.y-n.y;return{dx:i,dy:e,distance:Math.sqrt(i*i+e*e)}}function u(t,n){return c(t,n).distance}class d extends i{constructor(t,n,i){super(t,n),this.radius=i}contains(t){return u(t,this.position)<=this.radius}intersects(t){const n=t,i=t,e=this.position,o=t.position,s=Math.abs(o.x-e.x),r=Math.abs(o.y-e.y),a=this.radius;if(void 0!==i.radius){return a+i.radius>Math.sqrt(s*s+r+r)}if(void 0!==n.size){const t=n.size.width,i=n.size.height,e=Math.pow(s-t,2)+Math.pow(r-i,2);return!(s>a+t||r>a+i)&&(s<=t||r<=i||e<=a*a)}return!1}}class h extends i{constructor(t,n,i,e){super(t,n),this.size={height:e,width:i}}contains(t){const n=this.size.width,i=this.size.height,e=this.position;return t.x>=e.x&&t.x<=e.x+n&&t.y>=e.y&&t.y<=e.y+i}intersects(t){const n=t,i=t,e=this.size.width,o=this.size.height,s=this.position,r=t.position;if(void 0!==i.radius)return i.intersects(this);if(!n.size)return!1;const a=n.size,l=a.width,c=a.height;return r.x<s.x+e&&r.x+l>s.x&&r.y<s.y+o&&r.y+c>s.y}}class f extends d{constructor(t,n,i,e){super(t,n,i),this.canvasSize=e,this.canvasSize=Object.assign({},e)}contains(t){if(super.contains(t))return!0;const n={x:t.x-this.canvasSize.width,y:t.y};if(super.contains(n))return!0;const i={x:t.x-this.canvasSize.width,y:t.y-this.canvasSize.height};if(super.contains(i))return!0;const e={x:t.x,y:t.y-this.canvasSize.height};return super.contains(e)}intersects(t){if(super.intersects(t))return!0;const n=t,i=t,e={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==i.radius){const t=new d(e.x,e.y,2*i.radius);return super.intersects(t)}if(void 0!==n.size){const t=new h(e.x,e.y,2*n.size.width,2*n.size.height);return super.intersects(t)}return!1}}class p{}function y(t,n,i=!0){return t[void 0!==n&&i?n%t.length:function(t){return Math.floor(Math.random()*t.length)}(t)]}function g(t,n,i){let e=i;return e<0&&(e+=1),e>1&&(e-=1),e<1/6?t+6*(n-t)*e:e<.5?n:e<2/3?t+(n-t)*(2/3-e)*6:t}function v(t){if(t.startsWith("rgb")){const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);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(t.startsWith("hsl")){const n=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return n?function(t){const n=b(t);return{a:t.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(t.startsWith("hsv")){const n=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return n?function(t){const n=k(t);return{a:t.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,i=t.replace(n,((t,n,i,e,o)=>n+n+i+i+e+e+(void 0!==o?o+o:""))),e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(i);return e?{a:void 0!==e[4]?parseInt(e[4],16)/255:1,b:parseInt(e[3],16),g:parseInt(e[2],16),r:parseInt(e[1],16)}:void 0}}function x(t,n,i=!0){var e,o,s;if(void 0===t)return;const r="string"==typeof t?{value:t}:t;let a;if("string"==typeof r.value)a=r.value===p.randomColorValue?m():function(t){return v(t)}(r.value);else if(r.value instanceof Array){a=x({value:y(r.value,n,i)})}else{const t=r.value,n=null!==(e=t.rgb)&&void 0!==e?e:r.value;if(void 0!==n.r)a=n;else{const n=null!==(o=t.hsl)&&void 0!==o?o:r.value;if(void 0!==n.h&&void 0!==n.l)a=b(n);else{const n=null!==(s=t.hsv)&&void 0!==s?s:r.value;void 0!==n.h&&void 0!==n.v&&(a=k(n))}}}return a}function b(t){const n={b:0,g:0,r:0},i={h:t.h/360,l:t.l/100,s:t.s/100};if(0===i.s)n.b=i.l,n.g=i.l,n.r=i.l;else{const t=i.l<.5?i.l*(1+i.s):i.l+i.s-i.l*i.s,e=2*i.l-t;n.r=g(e,t,i.h+1/3),n.g=g(e,t,i.h),n.b=g(e,t,i.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 k(t){const n={b:0,g:0,r:0},i=t.h/60,e=t.s/100,o=t.v/100,s=o*e,r=s*(1-Math.abs(i%2-1));let a;if(i>=0&&i<=1?a={r:s,g:r,b:0}:i>1&&i<=2?a={r:r,g:s,b:0}:i>2&&i<=3?a={r:0,g:s,b:r}:i>3&&i<=4?a={r:0,g:r,b:s}:i>4&&i<=5?a={r:r,g:0,b:s}:i>5&&i<=6&&(a={r:s,g:0,b:r}),a){const t=o-s;n.r=Math.floor(255*(a.r+t)),n.g=Math.floor(255*(a.g+t)),n.b=Math.floor(255*(a.b+t))}return n}function m(t){const n=null!=t?t:0;return{b:Math.floor(o(l(n,256))),g:Math.floor(o(l(n,256))),r:Math.floor(o(l(n,256)))}}function w(t,n){return`rgba(${t.r}, ${t.g}, ${t.b}, ${null!=n?n:1})`}function M(t,n,i){var o,s;if(i===p.randomColorValue)return m();if("mid"!==i)return i;{const i=null!==(o=t.getFillColor())&&void 0!==o?o:t.getStrokeColor(),r=null!==(s=null==n?void 0:n.getFillColor())&&void 0!==s?s:null==n?void 0:n.getStrokeColor();if(i&&r&&n)return function(t,n,i,o){let s=t,r=n;return void 0===s.r&&(s=b(t)),void 0===r.r&&(r=b(n)),{b:e(s.b,r.b,i,o),g:e(s.g,r.g,i,o),r:e(s.r,r.r,i,o)}}(i,r,t.getRadius(),n.getRadius());{const t=null!=i?i:r;if(t)return b(t)}}}function C(t,n,i,e,o){let s=u(t,n);if(!o||s<=i)return s;if(s=u(t,{x:n.x-e.width,y:n.y}),s<=i)return s;if(s=u(t,{x:n.x-e.width,y:n.y-e.height}),s<=i)return s;return s=u(t,{x:n.x,y:n.y-e.height}),s}p.generatedAttribute="generated",p.randomColorValue="random",p.midColorValue="mid",p.touchEndEvent="touchend",p.mouseDownEvent="mousedown",p.mouseUpEvent="mouseup",p.mouseMoveEvent="mousemove",p.touchStartEvent="touchstart",p.touchMoveEvent="touchmove",p.mouseLeaveEvent="mouseleave",p.mouseOutEvent="mouseout",p.touchCancelEvent="touchcancel",p.resizeEvent="resize",p.visibilityChangeEvent="visibilitychange",p.noPolygonDataLoaded="No polygon data loaded.",p.noPolygonFound="No polygon found, you need to specify SVG url in config.";class z extends class{constructor(t){this.container=t,this.type=1}}{constructor(t){super(t)}isEnabled(t){return t.options.links.enable}reset(){}async interact(t){var n;t.links=[];const i=t.getPosition(),e=this.container,o=e.canvas.size;if(i.x<0||i.y<0||i.x>o.width||i.y>o.height)return;const s=t.options.links,r=s.opacity,a=null!==(n=t.retina.linksDistance)&&void 0!==n?n:e.retina.linksDistance,l=s.warp,c=l?new f(i.x,i.y,a,o):new d(i.x,i.y,a),u=e.particles.quadTree.query(c);for(const n of u){const e=n.options.links;if(t===n||!e.enable||s.id!==e.id||n.spawning||n.destroyed||-1!==t.links.map((t=>t.destination)).indexOf(n)||-1!==n.links.map((t=>t.destination)).indexOf(t))continue;const c=n.getPosition();if(c.x<0||c.y<0||c.x>o.width||c.y>o.height)continue;const u=C(i,c,a,o,l&&e.warp);if(u>a)return;const d=(1-u/a)*r;this.setColor(t),t.links.push({destination:n,opacity:d})}}setColor(t){const n=this.container,i=t.options.links;let e=void 0===i.id?n.particles.linksColor:n.particles.linksColors.get(i.id);if(!e){e=function(t,n,i){const e="string"==typeof t?t:t.value;return e===p.randomColorValue?i?x({value:e}):n?p.randomColorValue:p.midColorValue:x({value:e})}(i.color,i.blink,i.consent),void 0===i.id?n.particles.linksColor=e:n.particles.linksColors.set(i.id,e)}}}function P(t,n,i){t.beginPath(),t.moveTo(n.x,n.y),t.lineTo(i.x,i.y),t.closePath()}class S{constructor(t){this.container=t}particleCreated(t){t.links=[]}particleDestroyed(t){t.links=[]}drawParticle(t,n){const i=n,e=this.container,o=e.particles,s=n.options;if(i.links.length<=0)return;t.save();const r=i.links.filter((t=>e.particles.getLinkFrequency(i,t.destination)<=s.links.frequency));for(const t of r){const n=t.destination;if(s.links.triangles.enable){const a=r.map((t=>t.destination)),l=n.links.filter((t=>e.particles.getLinkFrequency(n,t.destination)<=n.options.links.frequency&&a.indexOf(t.destination)>=0));if(l.length)for(const e of l){const r=e.destination;o.getTriangleFrequency(i,n,r)>s.links.triangles.frequency||this.drawLinkTriangle(i,t,e)}}t.opacity>0&&e.retina.linksWidth>0&&this.drawLinkLine(i,t)}t.restore()}drawLinkTriangle(t,n,i){var e;const o=this.container,s=o.actualOptions,r=n.destination,a=i.destination,l=t.options.links.triangles,c=null!==(e=l.opacity)&&void 0!==e?e:(n.opacity+i.opacity)/2;if(c<=0)return;const d=t.getPosition(),h=r.getPosition(),f=a.getPosition();o.canvas.draw((n=>{if(u(d,h)>o.retina.linksDistance||u(f,h)>o.retina.linksDistance||u(f,d)>o.retina.linksDistance)return;let i=x(l.color);if(!i){const n=t.options.links,e=void 0!==n.id?o.particles.linksColors.get(n.id):o.particles.linksColor;i=M(t,r,e)}i&&function(t,n,i,e,o,s,r,a){!function(t,n,i,e){t.beginPath(),t.moveTo(n.x,n.y),t.lineTo(i.x,i.y),t.lineTo(e.x,e.y),t.closePath()}(t,n,i,e),o&&(t.globalCompositeOperation=s),t.fillStyle=w(r,a),t.fill()}(n,d,h,f,s.backgroundMask.enable,s.backgroundMask.composite,i,c)}))}drawLinkLine(t,n){const i=this.container,e=i.actualOptions,o=n.destination,r=t.getPosition(),a=o.getPosition();let l=n.opacity;i.canvas.draw((n=>{var d,h;let f;const p=t.options.twinkle.lines;if(p.enable){const t=p.frequency,n=x(p.color);Math.random()<t&&n&&(f=n,l=s(p.opacity))}if(!f){const n=t.options.links,e=void 0!==n.id?i.particles.linksColors.get(n.id):i.particles.linksColor;f=M(t,o,e)}if(!f)return;const y=null!==(d=t.retina.linksWidth)&&void 0!==d?d:i.retina.linksWidth,g=null!==(h=t.retina.linksDistance)&&void 0!==h?h:i.retina.linksDistance;!function(t,n,i,e,o,s,r,a,l,d,h,f){let p=!1;if(u(i,e)<=o)P(t,i,e),p=!0;else if(r){let n,r;const a=c(i,{x:e.x-s.width,y:e.y});if(a.distance<=o){const t=i.y-a.dy/a.dx*i.x;n={x:0,y:t},r={x:s.width,y:t}}else{const t=c(i,{x:e.x,y:e.y-s.height});if(t.distance<=o){const e=-(i.y-t.dy/t.dx*i.x)/(t.dy/t.dx);n={x:e,y:0},r={x:e,y:s.height}}else{const t=c(i,{x:e.x-s.width,y:e.y-s.height});if(t.distance<=o){const e=i.y-t.dy/t.dx*i.x;n={x:-e/(t.dy/t.dx),y:e},r={x:n.x+s.width,y:n.y+s.height}}}}n&&r&&(P(t,i,n),P(t,e,r),p=!0)}if(p){if(t.lineWidth=n,a&&(t.globalCompositeOperation=l),t.strokeStyle=w(d,h),f.enable){const n=x(f.color);n&&(t.shadowBlur=f.blur,t.shadowColor=w(n))}t.stroke()}}(n,y,r,a,g,i.canvas.size,t.options.links.warp,e.backgroundMask.enable,e.backgroundMask.composite,f,l,t.options.links.shadow)}))}}class I{constructor(){this.id="links"}getPlugin(t){return new S(t)}needsPlugin(){return!0}loadOptions(){}}async function O(t){await async function(t){await t.addInteractor("particlesLinks",(t=>new z(t)))}(t),await async function(t){const n=new I;await t.addPlugin(n)}(t)}return n}()}));
|
package/tsparticles.js
CHANGED
|
@@ -11006,7 +11006,7 @@
|
|
|
11006
11006
|
update() {}
|
|
11007
11007
|
}
|
|
11008
11008
|
async function loadTwinkleUpdater(engine) {
|
|
11009
|
-
await engine.addParticleUpdater("
|
|
11009
|
+
await engine.addParticleUpdater("twinkle", (() => new TwinkleUpdater));
|
|
11010
11010
|
}
|
|
11011
11011
|
function updateWobble(particle, delta) {
|
|
11012
11012
|
var _a;
|