text: /*! tsParticles v1.34.0 by Matteo Bruni */
  !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]}}(this,(function(){return(()=>{"use strict";var t={d:(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:(t,i)=>Object.prototype.hasOwnProperty.call(t,i),r: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,{AbsorberClickMode:()=>xo,AlterType:()=>g,AnimationStatus:()=>b,CanvasUtils:()=>n,Circle:()=>ti,CircleWarp:()=>ei,ClickMode:()=>d,CollisionMode:()=>v,ColorUtils:()=>s,Constants:()=>ht,Container:()=>fo,DestroyMode:()=>h,DestroyType:()=>w,DivMode:()=>u,DivType:()=>z,EasingType:()=>C,EmitterClickMode:()=>Fo,EmitterShapeType:()=>Ho,ExternalInteractorBase:()=>Ns,GradientType:()=>x,HoverMode:()=>p,InlineArrangement:()=>qo,InteractivityDetect:()=>S,InteractorType:()=>k,Main:()=>zo,MoveDirection:()=>a,MoveType:()=>_o,NumberUtils:()=>e,OrbitType:()=>O,OutMode:()=>f,OutModeDirection:()=>l,Particle:()=>Pe,ParticlesInteractorBase:()=>en,Point:()=>vi,Rectangle:()=>ii,RotateDirection:()=>r,ShapeType:()=>P,SizeMode:()=>y,StartValueType:()=>M,ThemeMode:()=>m,TiltDirection:()=>c,Type:()=>Vo,Utils:()=>o,Vector:()=>T,loadFull:()=>un,pJSDom:()=>fn,particlesJS:()=>vn,tsParticles:()=>pn});var e={};t.r(e),t.d(e,{calcEasing:()=>G,clamp:()=>E,collisionVelocity:()=>W,getDistance:()=>_,getDistances:()=>q,getParticleBaseVelocity:()=>B,getParticleDirectionAngle:()=>V,getRangeMax:()=>L,getRangeMin:()=>I,getRangeValue:()=>D,getValue:()=>H,mix:()=>R,randomInRange:()=>A,setRangeValue:()=>F});var o={};t.r(o),t.d(o,{animate:()=>Q,areBoundsInside:()=>it,arrayRandomIndex:()=>Z,calculateBounds:()=>et,cancelAnimation:()=>J,circleBounce:()=>ct,circleBounceDataFromParticle:()=>lt,deepExtend:()=>ot,divMode:()=>rt,divModeExecute:()=>nt,isDivModeEnabled:()=>st,isInArray:()=>X,isPointInside:()=>tt,isSsr:()=>j,itemFromArray:()=>K,loadFont:()=>Y,rectBounce:()=>dt,singleDivModeExecute:()=>at});var s={};t.r(s),t.d(s,{colorMix:()=>Dt,colorToHsl:()=>ft,colorToRgb:()=>vt,getHslAnimationFromHsl:()=>Ht,getHslFromAnimation:()=>Ft,getLinkColor:()=>It,getLinkRandomColor:()=>Lt,getRandomRgbColor:()=>Tt,getStyleFromHsl:()=>Rt,getStyleFromHsv:()=>At,getStyleFromRgb:()=>Et,hslToHsv:()=>xt,hslToRgb:()=>gt,hslaToHsva:()=>kt,hslaToRgba:()=>wt,hsvToHsl:()=>Pt,hsvToRgb:()=>zt,hsvaToHsla:()=>Mt,hsvaToRgba:()=>Ct,rgbToHsl:()=>yt,rgbToHsv:()=>Ot,rgbaToHsva:()=>St,stringToAlpha:()=>mt,stringToRgb:()=>bt});var n={};t.r(n),t.d(n,{clear:()=>Bt,drawConnectLine:()=>Ut,drawEllipse:()=>Zt,drawGrabLine:()=>$t,drawLinkLine:()=>Wt,drawLinkTriangle:()=>Gt,drawParticle:()=>jt,drawParticlePlugin:()=>Yt,drawPlugin:()=>Xt,drawShape:()=>Qt,drawShapeAfterEffect:()=>Jt,gradient:()=>Nt,paintBase:()=>Vt});var a,r,l,c,d,h,u,p,v,f,y,m,b,g,w,x,k,P,M,z,C,O,S;!function(t){t.bottom="bottom",t.bottomLeft="bottom-left",t.bottomRight="bottom-right",t.left="left",t.none="none",t.right="right",t.top="top",t.topLeft="top-left",t.topRight="top-right"}(a||(a={})),function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(r||(r={})),function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(l||(l={})),function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(c||(c={})),function(t){t.attract="attract",t.bubble="bubble",t.push="push",t.remove="remove",t.repulse="repulse",t.pause="pause",t.trail="trail"}(d||(d={})),function(t){t.none="none",t.split="split"}(h||(h={})),function(t){t.bounce="bounce",t.bubble="bubble",t.repulse="repulse"}(u||(u={})),function(t){t.attract="attract",t.bounce="bounce",t.bubble="bubble",t.connect="connect",t.grab="grab",t.light="light",t.repulse="repulse",t.slow="slow",t.trail="trail"}(p||(p={})),function(t){t.absorb="absorb",t.bounce="bounce",t.destroy="destroy"}(v||(v={})),function(t){t.bounce="bounce",t.bounceHorizontal="bounce-horizontal",t.bounceVertical="bounce-vertical",t.none="none",t.out="out",t.destroy="destroy",t.split="split"}(f||(f={})),function(t){t.precise="precise",t.percent="percent"}(y||(y={})),function(t){t.any="any",t.dark="dark",t.light="light"}(m||(m={})),function(t){t[t.increasing=0]="increasing",t[t.decreasing=1]="decreasing"}(b||(b={})),function(t){t.darken="darken",t.enlighten="enlighten"}(g||(g={})),function(t){t.none="none",t.max="max",t.min="min"}(w||(w={})),function(t){t.linear="linear",t.radial="radial",t.random="random"}(x||(x={})),function(t){t[t.External=0]="External",t[t.Particles=1]="Particles"}(k||(k={})),function(t){t.char="char",t.character="character",t.circle="circle",t.edge="edge",t.image="image",t.images="images",t.line="line",t.polygon="polygon",t.square="square",t.star="star",t.triangle="triangle"}(P||(P={})),function(t){t.max="max",t.min="min",t.random="random"}(M||(M={})),function(t){t.circle="circle",t.rectangle="rectangle"}(z||(z={})),function(t){t.easeOutBack="ease-out-back",t.easeOutCirc="ease-out-circ",t.easeOutCubic="ease-out-cubic",t.easeOutQuad="ease-out-quad",t.easeOutQuart="ease-out-quart",t.easeOutQuint="ease-out-quint",t.easeOutExpo="ease-out-expo",t.easeOutSine="ease-out-sine"}(C||(C={})),function(t){t.front="front",t.back="back"}(O||(O={})),function(t){t.canvas="canvas",t.parent="parent",t.window="window"}(S||(S={}));class T{constructor(t,i){let e,o;if(void 0===i){if("number"==typeof t)throw new Error("tsParticles - Vector not initialized correctly");const i=t;[e,o]=[i.x,i.y]}else[e,o]=[t,i];this.x=e,this.y=o}static clone(t){return T.create(t.x,t.y)}static create(t,i){return new T(t,i)}static get origin(){return T.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(Math.pow(this.x,2)+Math.pow(this.y,2))}set length(t){this.updateFromAngle(this.angle,t)}add(t){return T.create(this.x+t.x,this.y+t.y)}addTo(t){this.x+=t.x,this.y+=t.y}sub(t){return T.create(this.x-t.x,this.y-t.y)}subFrom(t){this.x-=t.x,this.y-=t.y}mult(t){return T.create(this.x*t,this.y*t)}multTo(t){this.x*=t,this.y*=t}div(t){return T.create(this.x/t,this.y/t)}divTo(t){this.x/=t,this.y/=t}distanceTo(t){return this.sub(t).length}getLengthSq(){return Math.pow(this.x,2)+Math.pow(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 T.clone(this)}setTo(t){this.x=t.x,this.y=t.y}rotate(t){return T.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t))}updateFromAngle(t,i){this.x=Math.cos(t)*i,this.y=Math.sin(t)*i}}function E(t,i,e){return Math.min(Math.max(t,i),e)}function R(t,i,e,o){return Math.floor((t*e+i*o)/(e+o))}function A(t){const i=L(t);let e=I(t);return i===e&&(e=0),Math.random()*(i-e)+e}function D(t){return"number"==typeof t?t:A(t)}function I(t){return"number"==typeof t?t:t.min}function L(t){return"number"==typeof t?t:t.max}function F(t,i){if(t===i||void 0===i&&"number"==typeof t)return t;const e=I(t),o=L(t);return void 0!==i?{min:Math.min(e,i),max:Math.max(o,i)}:F(e,o)}function H(t){const i=t.random,{enable:e,minimumValue:o}="boolean"==typeof i?{enable:i,minimumValue:0}:i;return D(e?F(t.value,o):t.value)}function q(t,i){const e=t.x-i.x,o=t.y-i.y;return{dx:e,dy:o,distance:Math.sqrt(e*e+o*o)}}function _(t,i){return q(t,i).distance}function V(t){if("number"==typeof t)return t*Math.PI/180;switch(t){case a.top:return-Math.PI/2;case a.topRight:return-Math.PI/4;case a.right:return 0;case a.bottomRight:return Math.PI/4;case a.bottom:return Math.PI/2;case a.bottomLeft:return 3*Math.PI/4;case a.left:return Math.PI;case a.topLeft:return-3*Math.PI/4;case a.none:default:return Math.random()*Math.PI*2}}function B(t){const i=T.origin;return i.length=1,i.angle=t,i}function W(t,i,e,o){return T.create(t.x*(e-o)/(e+o)+2*i.x*o/(e+o),t.y)}function G(t,i){switch(i){case C.easeOutQuad:return 1-Math.pow(1-t,2);case C.easeOutCubic:return 1-Math.pow(1-t,3);case C.easeOutQuart:return 1-Math.pow(1-t,4);case C.easeOutQuint:return 1-Math.pow(1-t,5);case C.easeOutExpo:return 1===t?1:1-Math.pow(2,-10*t);case C.easeOutSine:return Math.sin(t*Math.PI/2);case C.easeOutBack:{const i=1.70158;return 1+(i+1)*Math.pow(t-1,3)+i*Math.pow(t-1,2)}case C.easeOutCirc:return Math.sqrt(1-Math.pow(t-1,2));default:return t}}var U=function(t,i,e,o){return new(e||(e=Promise))((function(s,n){function a(t){try{l(o.next(t))}catch(t){n(t)}}function r(t){try{l(o.throw(t))}catch(t){n(t)}}function l(t){var i;t.done?s(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(a,r)}l((o=o.apply(t,i||[])).next())}))};function N(t,i,e,o,s,n){const a={bounced:!1};return i.min>=o.min&&i.min<=o.max&&i.max>=o.min&&i.max<=o.max&&(t.max>=e.min&&t.max<=(e.max+e.min)/2&&s>0||t.min<=e.max&&t.min>(e.max+e.min)/2&&s<0)&&(a.velocity=s*-n,a.bounced=!0),a}function $(t,i){if(i instanceof Array){for(const e of i)if(t.matches(e))return!0;return!1}return t.matches(i)}function j(){return"undefined"==typeof window||!window}function Q(){return j()?t=>setTimeout(t):t=>(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.setTimeout)(t)}function J(){return j()?t=>clearTimeout(t):t=>(window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||window.clearTimeout)(t)}function X(t,i){return t===i||i instanceof Array&&i.indexOf(t)>-1}function Y(t){var i,e;return U(this,void 0,void 0,(function*(){try{yield document.fonts.load(`${null!==(i=t.weight)&&void 0!==i?i:"400"} 36px '${null!==(e=t.font)&&void 0!==e?e:"Verdana"}'`)}catch(t){}}))}function Z(t){return Math.floor(Math.random()*t.length)}function K(t,i,e=!0){return t[void 0!==i&&e?i%t.length:Z(t)]}function tt(t,i,e,o){return it(et(t,null!=e?e:0),i,o)}function it(t,i,e){let o=!0;return e&&e!==l.bottom||(o=t.top<i.height),!o||e&&e!==l.left||(o=t.right>0),!o||e&&e!==l.right||(o=t.left<i.width),!o||e&&e!==l.top||(o=t.bottom>0),o}function et(t,i){return{bottom:t.y+i,left:t.x-i,right:t.x+i,top:t.y-i}}function ot(t,...i){for(const e of i){if(null==e)continue;if("object"!=typeof e){t=e;continue}const i=Array.isArray(e);!i||"object"==typeof t&&t&&Array.isArray(t)?i||"object"==typeof t&&t&&!Array.isArray(t)||(t={}):t=[];for(const i in e){if("__proto__"===i)continue;const o=e[i],s="object"==typeof o,n=t;n[i]=s&&Array.isArray(o)?o.map((t=>ot(n[i],t))):ot(n[i],o)}}return t}function st(t,i){return i instanceof Array?!!i.find((i=>i.enable&&X(t,i.mode))):X(t,i.mode)}function nt(t,i,e){if(i instanceof Array)for(const o of i){const i=o.mode;o.enable&&X(t,i)&&at(o,e)}else{const o=i.mode;i.enable&&X(t,o)&&at(i,e)}}function at(t,i){const e=t.selectors;if(e instanceof Array)for(const o of e)i(o,t);else i(e,t)}function rt(t,i){if(i&&t)return t instanceof Array?t.find((t=>$(i,t.selectors))):$(i,t.selectors)?t:void 0}function lt(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:T.create(H(t.options.bounce.horizontal),H(t.options.bounce.vertical))}}function ct(t,i){const e=t.velocity.x,o=t.velocity.y,s=t.position,n=i.position;if(e*(n.x-s.x)+o*(n.y-s.y)>=0){const e=-Math.atan2(n.y-s.y,n.x-s.x),o=t.mass,a=i.mass,r=t.velocity.rotate(e),l=i.velocity.rotate(e),c=W(r,l,o,a),d=W(l,r,o,a),h=c.rotate(-e),u=d.rotate(-e);t.velocity.x=h.x*t.factor.x,t.velocity.y=h.y*t.factor.y,i.velocity.x=u.x*i.factor.x,i.velocity.y=u.y*i.factor.y}}function dt(t,i){const e=et(t.getPosition(),t.getRadius()),o=N({min:e.left,max:e.right},{min:e.top,max:e.bottom},{min:i.left,max:i.right},{min:i.top,max:i.bottom},t.velocity.x,H(t.options.bounce.horizontal));o.bounced&&(void 0!==o.velocity&&(t.velocity.x=o.velocity),void 0!==o.position&&(t.position.x=o.position));const s=N({min:e.top,max:e.bottom},{min:e.left,max:e.right},{min:i.top,max:i.bottom},{min:i.left,max:i.right},t.velocity.y,H(t.options.bounce.vertical));s.bounced&&(void 0!==s.velocity&&(t.velocity.y=s.velocity),void 0!==s.position&&(t.position.y=s.position))}class ht{}function ut(t,i,e){let o=e;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+6*(i-t)*o:o<.5?i:o<2/3?t+(i-t)*(2/3-o)*6:t}function pt(t){if(t.startsWith("rgb")){const i=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return i?{a:i.length>4?parseFloat(i[5]):1,b:parseInt(i[3],10),g:parseInt(i[2],10),r:parseInt(i[1],10)}:void 0}if(t.startsWith("hsl")){const i=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return i?wt({a:i.length>4?parseFloat(i[5]):1,h:parseInt(i[1],10),l:parseInt(i[3],10),s:parseInt(i[2],10)}):void 0}if(t.startsWith("hsv")){const i=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return i?Ct({a:i.length>4?parseFloat(i[5]):1,h:parseInt(i[1],10),s:parseInt(i[2],10),v:parseInt(i[3],10)}):void 0}{const i=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,e=t.replace(i,((t,i,e,o,s)=>i+i+e+e+o+o+(void 0!==s?s+s:""))),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e);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 vt(t,i,e=!0){var o,s,n;if(void 0===t)return;const a="string"==typeof t?{value:t}:t;let r;if("string"==typeof a.value)r=a.value===ht.randomColorValue?Tt():bt(a.value);else if(a.value instanceof Array){r=vt({value:K(a.value,i,e)})}else{const t=a.value,i=null!==(o=t.rgb)&&void 0!==o?o:a.value;if(void 0!==i.r)r=i;else{const i=null!==(s=t.hsl)&&void 0!==s?s:a.value;if(void 0!==i.h&&void 0!==i.l)r=gt(i);else{const i=null!==(n=t.hsv)&&void 0!==n?n:a.value;void 0!==i.h&&void 0!==i.v&&(r=zt(i))}}}return r}function ft(t,i,e=!0){const o=vt(t,i,e);return void 0!==o?yt(o):void 0}function yt(t){const i=t.r/255,e=t.g/255,o=t.b/255,s=Math.max(i,e,o),n=Math.min(i,e,o),a={h:0,l:(s+n)/2,s:0};return s!=n&&(a.s=a.l<.5?(s-n)/(s+n):(s-n)/(2-s-n),a.h=i===s?(e-o)/(s-n):a.h=e===s?2+(o-i)/(s-n):4+(i-e)/(s-n)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a}function mt(t){var i;return null===(i=pt(t))||void 0===i?void 0:i.a}function bt(t){return pt(t)}function gt(t){const i={b:0,g:0,r:0},e={h:t.h/360,l:t.l/100,s:t.s/100};if(0===e.s)i.b=e.l,i.g=e.l,i.r=e.l;else{const t=e.l<.5?e.l*(1+e.s):e.l+e.s-e.l*e.s,o=2*e.l-t;i.r=ut(o,t,e.h+1/3),i.g=ut(o,t,e.h),i.b=ut(o,t,e.h-1/3)}return i.r=Math.floor(255*i.r),i.g=Math.floor(255*i.g),i.b=Math.floor(255*i.b),i}function wt(t){const i=gt(t);return{a:t.a,b:i.b,g:i.g,r:i.r}}function xt(t){const i=t.l/100,e=i+t.s/100*Math.min(i,1-i),o=e?2*(1-i/e):0;return{h:t.h,s:100*o,v:100*e}}function kt(t){const i=xt(t);return{a:t.a,h:i.h,s:i.s,v:i.v}}function Pt(t){const i=t.v/100,e=i*(1-t.s/100/2),o=0===e||1===e?0:(i-e)/Math.min(e,1-e);return{h:t.h,l:100*e,s:100*o}}function Mt(t){const i=Pt(t);return{a:t.a,h:i.h,l:i.l,s:i.s}}function zt(t){const i={b:0,g:0,r:0},e=t.h/60,o=t.s/100,s=t.v/100,n=s*o,a=n*(1-Math.abs(e%2-1));let r;if(e>=0&&e<=1?r={r:n,g:a,b:0}:e>1&&e<=2?r={r:a,g:n,b:0}:e>2&&e<=3?r={r:0,g:n,b:a}:e>3&&e<=4?r={r:0,g:a,b:n}:e>4&&e<=5?r={r:a,g:0,b:n}:e>5&&e<=6&&(r={r:n,g:0,b:a}),r){const t=s-n;i.r=Math.floor(255*(r.r+t)),i.g=Math.floor(255*(r.g+t)),i.b=Math.floor(255*(r.b+t))}return i}function Ct(t){const i=zt(t);return{a:t.a,b:i.b,g:i.g,r:i.r}}function Ot(t){const i={r:t.r/255,g:t.g/255,b:t.b/255},e=Math.max(i.r,i.g,i.b),o=e-Math.min(i.r,i.g,i.b);let s=0;e===i.r?s=(i.g-i.b)/o*60:e===i.g?s=60*(2+(i.b-i.r)/o):e===i.b&&(s=60*(4+(i.r-i.g)/o));return{h:s,s:100*(e?o/e:0),v:100*e}}function St(t){const i=Ot(t);return{a:t.a,h:i.h,s:i.s,v:i.v}}function Tt(t){const i=null!=t?t:0;return{b:Math.floor(A(F(i,256))),g:Math.floor(A(F(i,256))),r:Math.floor(A(F(i,256)))}}function Et(t,i){return`rgba(${t.r}, ${t.g}, ${t.b}, ${null!=i?i:1})`}function Rt(t,i){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${null!=i?i:1})`}function At(t,i){return Rt(Pt(t),i)}function Dt(t,i,e,o){let s=t,n=i;return void 0===s.r&&(s=gt(t)),void 0===n.r&&(n=gt(i)),{b:R(s.b,n.b,e,o),g:R(s.g,n.g,e,o),r:R(s.r,n.r,e,o)}}function It(t,i,e){var o,s;if(e===ht.randomColorValue)return Tt();if("mid"!==e)return e;{const e=null!==(o=t.getFillColor())&&void 0!==o?o:t.getStrokeColor(),n=null!==(s=null==i?void 0:i.getFillColor())&&void 0!==s?s:null==i?void 0:i.getStrokeColor();if(e&&n&&i)return Dt(e,n,t.getRadius(),i.getRadius());{const t=null!=e?e:n;if(t)return gt(t)}}}function Lt(t,i,e){const o="string"==typeof t?t:t.value;return o===ht.randomColorValue?e?vt({value:o}):i?ht.randomColorValue:ht.midColorValue:vt({value:o})}function Ft(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function Ht(t,i,e){const o={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return i&&(qt(o.h,i.h,e),qt(o.s,i.s,e),qt(o.l,i.l,e)),o}function qt(t,i,e){if(t.enable=i.enable,t.enable){if(t.velocity=i.speed/100*e,i.sync)return;t.status=b.increasing,t.velocity*=Math.random(),t.value&&(t.value*=Math.random())}else t.velocity=0}function _t(t,i,e){t.beginPath(),t.moveTo(i.x,i.y),t.lineTo(e.x,e.y),t.closePath()}function Vt(t,i,e){t.save(),t.fillStyle=null!=e?e:"rgba(0,0,0,0)",t.fillRect(0,0,i.width,i.height),t.restore()}function Bt(t,i){t.clearRect(0,0,i.width,i.height)}function Wt(t,i,e,o,s,n,a,r,l,c,d,h){let u=!1;if(_(e,o)<=s)_t(t,e,o),u=!0;else if(a){let i,a;const r=q(e,{x:o.x-n.width,y:o.y});if(r.distance<=s){const t=e.y-r.dy/r.dx*e.x;i={x:0,y:t},a={x:n.width,y:t}}else{const t=q(e,{x:o.x,y:o.y-n.height});if(t.distance<=s){const o=-(e.y-t.dy/t.dx*e.x)/(t.dy/t.dx);i={x:o,y:0},a={x:o,y:n.height}}else{const t=q(e,{x:o.x-n.width,y:o.y-n.height});if(t.distance<=s){const o=e.y-t.dy/t.dx*e.x;i={x:-o/(t.dy/t.dx),y:o},a={x:i.x+n.width,y:i.y+n.height}}}}i&&a&&(_t(t,e,i),_t(t,o,a),u=!0)}if(u){if(t.lineWidth=i,r&&(t.globalCompositeOperation=l),t.strokeStyle=Et(c,d),h.enable){const i=vt(h.color);i&&(t.shadowBlur=h.blur,t.shadowColor=Et(i))}t.stroke()}}function Gt(t,i,e,o,s,n,a,r){!function(t,i,e,o){t.beginPath(),t.moveTo(i.x,i.y),t.lineTo(e.x,e.y),t.lineTo(o.x,o.y),t.closePath()}(t,i,e,o),s&&(t.globalCompositeOperation=n),t.fillStyle=Et(a,r),t.fill()}function Ut(t,i,e,o,s){t.save(),_t(t,o,s),t.lineWidth=i,t.strokeStyle=e,t.stroke(),t.restore()}function Nt(t,i,e,o){const s=Math.floor(e.getRadius()/i.getRadius()),n=i.getFillColor(),a=e.getFillColor();if(!n||!a)return;const r=i.getPosition(),l=e.getPosition(),c=Dt(n,a,i.getRadius(),e.getRadius()),d=t.createLinearGradient(r.x,r.y,l.x,l.y);return d.addColorStop(0,Rt(n,o)),d.addColorStop(s>1?1:s,Et(c,o)),d.addColorStop(1,Rt(a,o)),d}function $t(t,i,e,o,s,n){t.save(),_t(t,e,o),t.strokeStyle=Et(s,n),t.lineWidth=i,t.stroke(),t.restore()}function jt(t,i,e,o,s,n,a,r,l,c,d,h){var u,p;const v=e.getPosition(),f=e.options.tilt,y=e.options.roll;i.save(),f.enable||y.enable?i.setTransform(y.enable?Math.cos(e.rollAngle):1,f.enable?Math.cos(e.tilt.value)*e.tilt.cosDirection:0,f.enable?Math.sin(e.tilt.value)*e.tilt.sinDirection:0,y.enable?Math.sin(e.rollAngle):1,v.x,v.y):i.translate(v.x,v.y),i.beginPath();const m=e.rotate.value+(e.options.rotate.path?e.velocity.angle:0);0!==m&&i.rotate(m),a&&(i.globalCompositeOperation=r);const b=e.shadowColor;if(d.enable&&b&&(i.shadowBlur=d.blur,i.shadowColor=Et(b),i.shadowOffsetX=d.offset.x,i.shadowOffsetY=d.offset.y),h){const t=h.angle.value,e=h.type===x.radial?i.createRadialGradient(0,0,0,0,0,l):i.createLinearGradient(Math.cos(t)*-l,Math.sin(t)*-l,Math.cos(t)*l,Math.sin(t)*l);for(const t of h.colors)e.addColorStop(t.stop,Rt({h:t.value.h.value,s:t.value.s.value,l:t.value.l.value},null!==(p=null===(u=t.opacity)||void 0===u?void 0:u.value)&&void 0!==p?p:c));i.fillStyle=e}else s&&(i.fillStyle=s);const g=e.stroke;i.lineWidth=e.strokeWidth,n&&(i.strokeStyle=n),Qt(t,i,e,l,c,o),g.width>0&&i.stroke(),e.close&&i.closePath(),e.fill&&i.fill(),i.restore(),i.save(),f.enable?i.setTransform(1,Math.cos(e.tilt.value)*e.tilt.cosDirection,Math.sin(e.tilt.value)*e.tilt.sinDirection,1,v.x,v.y):i.translate(v.x,v.y),0!==m&&i.rotate(m),a&&(i.globalCompositeOperation=r),Jt(t,i,e,l,c,o),i.restore()}function Qt(t,i,e,o,s,n){if(!e.shape)return;const a=t.drawers.get(e.shape);a&&a.draw(i,e,o,s,n,t.retina.pixelRatio)}function Jt(t,i,e,o,s,n){if(!e.shape)return;const a=t.drawers.get(e.shape);(null==a?void 0:a.afterEffect)&&a.afterEffect(i,e,o,s,n,t.retina.pixelRatio)}function Xt(t,i,e){i.draw&&(t.save(),i.draw(t,e),t.restore())}function Yt(t,i,e,o){void 0!==i.drawParticle&&(t.save(),i.drawParticle(t,e,o),t.restore())}function Zt(t,i,e,o,s,n,a,r,l){const c=i.getPosition();if(e&&(t.strokeStyle=Rt(e,s)),0===n)return;t.lineWidth=n;const d=a*Math.PI/180;t.beginPath(),t.ellipse(c.x,c.y,o/2,2*o,d,r,l),t.stroke()}ht.canvasClass="tsparticles-canvas-el",ht.randomColorValue="random",ht.midColorValue="mid",ht.touchEndEvent="touchend",ht.mouseDownEvent="mousedown",ht.mouseUpEvent="mouseup",ht.mouseMoveEvent="mousemove",ht.touchStartEvent="touchstart",ht.touchMoveEvent="touchmove",ht.mouseLeaveEvent="mouseleave",ht.mouseOutEvent="mouseout",ht.touchCancelEvent="touchcancel",ht.resizeEvent="resize",ht.visibilityChangeEvent="visibilitychange",ht.noPolygonDataLoaded="No polygon data loaded.",ht.noPolygonFound="No polygon found, you need to specify SVG url in config.";class Kt{constructor(t,i){this.position={x:t,y:i}}}class ti extends Kt{constructor(t,i,e){super(t,i),this.radius=e}contains(t){return _(t,this.position)<=this.radius}intersects(t){const i=t,e=t,o=this.position,s=t.position,n=Math.abs(s.x-o.x),a=Math.abs(s.y-o.y),r=this.radius;if(void 0!==e.radius){return r+e.radius>Math.sqrt(n*n+a+a)}if(void 0!==i.size){const t=i.size.width,e=i.size.height,o=Math.pow(n-t,2)+Math.pow(a-e,2);return!(n>r+t||a>r+e)&&(n<=t||a<=e||o<=r*r)}return!1}}class ii extends Kt{constructor(t,i,e,o){super(t,i),this.size={height:o,width:e}}contains(t){const i=this.size.width,e=this.size.height,o=this.position;return t.x>=o.x&&t.x<=o.x+i&&t.y>=o.y&&t.y<=o.y+e}intersects(t){const i=t,e=t,o=this.size.width,s=this.size.height,n=this.position,a=t.position;if(void 0!==e.radius)return e.intersects(this);if(void 0!==i.size){const t=i.size,e=t.width,r=t.height;return a.x<n.x+o&&a.x+e>n.x&&a.y<n.y+s&&a.y+r>n.y}return!1}}class ei extends ti{constructor(t,i,e,o){super(t,i,e),this.canvasSize=o,this.canvasSize={height:o.height,width:o.width}}contains(t){if(super.contains(t))return!0;const i={x:t.x-this.canvasSize.width,y:t.y};if(super.contains(i))return!0;const e={x:t.x-this.canvasSize.width,y:t.y-this.canvasSize.height};if(super.contains(e))return!0;const o={x:t.x,y:t.y-this.canvasSize.height};return super.contains(o)}intersects(t){if(super.intersects(t))return!0;const i=t,e=t,o={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==e.radius){const t=new ti(o.x,o.y,2*e.radius);return super.intersects(t)}if(void 0!==i.size){const t=new ii(o.x,o.y,2*i.size.width,2*i.size.height);return super.intersects(t)}return!1}}function oi(t,i,e,o,s){if(o){let o={passive:!0};"boolean"==typeof s?o.capture=s:void 0!==s&&(o=s),t.addEventListener(i,e,o)}else{const o=s;t.removeEventListener(i,e,o)}}class si{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.resizeHandler=()=>this.handleWindowResize()}addListeners(){this.manageListeners(!0)}removeListeners(){this.manageListeners(!1)}manageListeners(t){var i;const e=this.container,o=e.actualOptions,s=o.interactivity.detectsOn;let n=ht.mouseLeaveEvent;if(s===S.window)e.interactivity.element=window,n=ht.mouseOutEvent;else if(s===S.parent&&e.canvas.element){const t=e.canvas.element;e.interactivity.element=null!==(i=t.parentElement)&&void 0!==i?i:t.parentNode}else e.interactivity.element=e.canvas.element;const a=e.interactivity.element;if(!a)return;const r=a;(o.interactivity.events.onHover.enable||o.interactivity.events.onClick.enable)&&(oi(a,ht.mouseMoveEvent,this.mouseMoveHandler,t),oi(a,ht.touchStartEvent,this.touchStartHandler,t),oi(a,ht.touchMoveEvent,this.touchMoveHandler,t),o.interactivity.events.onClick.enable?(oi(a,ht.touchEndEvent,this.touchEndClickHandler,t),oi(a,ht.mouseUpEvent,this.mouseUpHandler,t),oi(a,ht.mouseDownEvent,this.mouseDownHandler,t)):oi(a,ht.touchEndEvent,this.touchEndHandler,t),oi(a,n,this.mouseLeaveHandler,t),oi(a,ht.touchCancelEvent,this.touchCancelHandler,t)),e.canvas.element&&(e.canvas.element.style.pointerEvents=r===e.canvas.element?"initial":"none"),o.interactivity.events.resize&&("undefined"!=typeof ResizeObserver?this.resizeObserver&&!t?(e.canvas.element&&this.resizeObserver.unobserve(e.canvas.element),this.resizeObserver.disconnect(),delete this.resizeObserver):!this.resizeObserver&&t&&e.canvas.element&&(this.resizeObserver=new ResizeObserver((t=>{t.find((t=>t.target===e.canvas.element))&&this.handleWindowResize()})),this.resizeObserver.observe(e.canvas.element)):oi(window,ht.resizeEvent,this.resizeHandler,t)),document&&oi(document,ht.visibilityChangeEvent,this.visibilityChangeHandler,t,!1)}handleWindowResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),delete this.resizeTimeout),this.resizeTimeout=setTimeout((()=>{var t;return null===(t=this.container.canvas)||void 0===t?void 0:t.windowResize()}),500)}handleVisibilityChange(){const t=this.container,i=t.actualOptions;this.mouseTouchFinish(),i.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 i=t.mouse;i.clicking=!0,i.downPosition=i.position}}mouseTouchMove(t){var i,e,o,s,n,a,r;const l=this.container,c=l.actualOptions;if(void 0===(null===(i=l.interactivity)||void 0===i?void 0:i.element))return;let d;l.interactivity.mouse.inside=!0;const h=l.canvas.element;if(t.type.startsWith("mouse")){this.canPush=!0;const i=t;if(l.interactivity.element===window){if(h){const t=h.getBoundingClientRect();d={x:i.clientX-t.left,y:i.clientY-t.top}}}else if(c.interactivity.detectsOn===S.parent){const t=i.target,s=i.currentTarget,n=l.canvas.element;if(t&&s&&n){const e=t.getBoundingClientRect(),o=s.getBoundingClientRect(),a=n.getBoundingClientRect();d={x:i.offsetX+2*e.left-(o.left+a.left),y:i.offsetY+2*e.top-(o.top+a.top)}}else d={x:null!==(e=i.offsetX)&&void 0!==e?e:i.clientX,y:null!==(o=i.offsetY)&&void 0!==o?o:i.clientY}}else i.target===l.canvas.element&&(d={x:null!==(s=i.offsetX)&&void 0!==s?s:i.clientX,y:null!==(n=i.offsetY)&&void 0!==n?n:i.clientY})}else{this.canPush="touchmove"!==t.type;const i=t,e=i.touches[i.touches.length-1],o=null==h?void 0:h.getBoundingClientRect();d={x:e.clientX-(null!==(a=null==o?void 0:o.left)&&void 0!==a?a:0),y:e.clientY-(null!==(r=null==o?void 0:o.top)&&void 0!==r?r:0)}}const u=l.retina.pixelRatio;d&&(d.x*=u,d.y*=u),l.interactivity.mouse.position=d,l.interactivity.status=ht.mouseMoveEvent}mouseTouchFinish(){const t=this.container.interactivity;if(void 0===t)return;const i=t.mouse;delete i.position,delete i.clickPosition,delete i.downPosition,t.status=ht.mouseLeaveEvent,i.inside=!1,i.clicking=!1}mouseTouchClick(t){const i=this.container,e=i.actualOptions,o=i.interactivity.mouse;o.inside=!0;let s=!1;const n=o.position;if(void 0!==n&&e.interactivity.events.onClick.enable){for(const[,t]of i.plugins)if(void 0!==t.clickPositionValid&&(s=t.clickPositionValid(n),s))break;s||this.doMouseTouchClick(t),o.clicking=!1}}doMouseTouchClick(t){const i=this.container,e=i.actualOptions;if(this.canPush){const t=i.interactivity.mouse.position;if(!t)return;i.interactivity.mouse.clickPosition={x:t.x,y:t.y},i.interactivity.mouse.clickTime=(new Date).getTime();const o=e.interactivity.events.onClick;if(o.mode instanceof Array)for(const t of o.mode)this.handleClickMode(t);else this.handleClickMode(o.mode)}"touchend"===t.type&&setTimeout((()=>this.mouseTouchFinish()),500)}handleClickMode(t){const i=this.container,e=i.actualOptions,o=e.interactivity.modes.push.quantity,s=e.interactivity.modes.remove.quantity;switch(t){case d.push:if(o>0){const t=K([void 0,...e.interactivity.modes.push.groups]),s=void 0!==t?i.actualOptions.particles.groups[t]:void 0;i.particles.push(o,i.interactivity.mouse,s,t)}break;case d.remove:i.particles.removeQuantity(s);break;case d.bubble:i.bubble.clicking=!0;break;case d.repulse:i.repulse.clicking=!0,i.repulse.count=0;for(const t of i.repulse.particles)t.velocity.setTo(t.initialVelocity);i.repulse.particles=[],i.repulse.finish=!1,setTimeout((()=>{i.destroyed||(i.repulse.clicking=!1)}),1e3*e.interactivity.modes.repulse.duration);break;case d.attract:i.attract.clicking=!0,i.attract.count=0;for(const t of i.attract.particles)t.velocity.setTo(t.initialVelocity);i.attract.particles=[],i.attract.finish=!1,setTimeout((()=>{i.destroyed||(i.attract.clicking=!1)}),1e3*e.interactivity.modes.attract.duration);break;case d.pause:i.getAnimationStatus()?i.pause():i.play()}for(const[,e]of i.plugins)e.handleClickMode&&e.handleClickMode(t)}}const ni=[],ai=new Map,ri=new Map,li=new Map,ci=new Map,di=new Map,hi=new Map,ui=new Map;class pi{static getPlugin(t){return ni.find((i=>i.id===t))}static addPlugin(t){pi.getPlugin(t.id)||ni.push(t)}static getAvailablePlugins(t){const i=new Map;for(const e of ni)e.needsPlugin(t.actualOptions)&&i.set(e.id,e.getPlugin(t));return i}static loadOptions(t,i){for(const e of ni)e.loadOptions(t,i)}static getPreset(t){return di.get(t)}static addPreset(t,i,e=!1){!e&&pi.getPreset(t)||di.set(t,i)}static addShapeDrawer(t,i){pi.getShapeDrawer(t)||hi.set(t,i)}static getShapeDrawer(t){return hi.get(t)}static getSupportedShapes(){return hi.keys()}static getPathGenerator(t){return ui.get(t)}static addPathGenerator(t,i){pi.getPathGenerator(t)||ui.set(t,i)}static getInteractors(t){let i=li.get(t);return i||(i=[...ai.values()].map((i=>i(t))),li.set(t,i)),i}static addInteractor(t,i){ai.set(t,i)}static getUpdaters(t){let i=ci.get(t);return i||(i=[...ri.values()].map((i=>i(t))),ci.set(t,i)),i}static addParticleUpdater(t,i){ri.set(t,i)}}class vi{constructor(t,i){this.position=t,this.particle=i}}class fi{constructor(t,i){this.rectangle=t,this.capacity=i,this.points=[],this.divided=!1}subdivide(){const t=this.rectangle.position.x,i=this.rectangle.position.y,e=this.rectangle.size.width,o=this.rectangle.size.height,s=this.capacity;this.northEast=new fi(new ii(t,i,e/2,o/2),s),this.northWest=new fi(new ii(t+e/2,i,e/2,o/2),s),this.southEast=new fi(new ii(t,i+o/2,e/2,o/2),s),this.southWest=new fi(new ii(t+e/2,i+o/2,e/2,o/2),s),this.divided=!0}insert(t){var i,e,o,s,n;return!!this.rectangle.contains(t.position)&&(this.points.length<this.capacity?(this.points.push(t),!0):(this.divided||this.subdivide(),null!==(n=(null===(i=this.northEast)||void 0===i?void 0:i.insert(t))||(null===(e=this.northWest)||void 0===e?void 0:e.insert(t))||(null===(o=this.southEast)||void 0===o?void 0:o.insert(t))||(null===(s=this.southWest)||void 0===s?void 0:s.insert(t)))&&void 0!==n&&n))}queryCircle(t,i){return this.query(new ti(t.x,t.y,i))}queryCircleWarp(t,i,e){const o=e,s=e;return this.query(new ei(t.x,t.y,i,void 0!==o.canvas?o.canvas.size:s))}queryRectangle(t,i){return this.query(new ii(t.x,t.y,i.width,i.height))}query(t,i){var e,o,s,n;const a=null!=i?i:[];if(!t.intersects(this.rectangle))return[];for(const i of this.points)!t.contains(i.position)&&_(t.position,i.position)>i.particle.getRadius()||a.push(i.particle);return this.divided&&(null===(e=this.northEast)||void 0===e||e.query(t,a),null===(o=this.northWest)||void 0===o||o.query(t,a),null===(s=this.southEast)||void 0===s||s.query(t,a),null===(n=this.southWest)||void 0===n||n.query(t,a)),a}}class yi{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,i){var e;t.className||(t.className=ht.canvasClass),this.generatedCanvas&&(null===(e=this.element)||void 0===e||e.remove()),this.generatedCanvas=null!=i?i:this.generatedCanvas,this.element=t,this.originalStyle=ot({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this.context=this.element.getContext("2d"),this.container.retina.init(),this.initBackground()}destroy(){var t;this.generatedCanvas&&(null===(t=this.element)||void 0===t||t.remove()),this.draw((t=>{Bt(t,this.size)}))}paint(){const t=this.container.actualOptions;this.draw((i=>{t.backgroundMask.enable&&t.backgroundMask.cover&&this.coverColor?(Bt(i,this.size),this.paintBase(Et(this.coverColor,this.coverColor.a))):this.paintBase()}))}clear(){const t=this.container.actualOptions,i=t.particles.move.trail;t.backgroundMask.enable?this.paint():i.enable&&i.length>0&&this.trailFillColor?this.paintBase(Et(this.trailFillColor,1/i.length)):this.draw((t=>{Bt(t,this.size)}))}windowResize(){if(!this.element)return;const t=this.container;this.resize(),t.actualOptions.setResponsive(this.size.width,t.retina.pixelRatio,t.options),t.particles.setDensity();for(const[,i]of t.plugins)void 0!==i.resize&&i.resize()}resize(){if(!this.element)return;const t=this.container,i=t.retina.pixelRatio,e=t.canvas.size,o=e.width,s=e.height;e.width=this.element.offsetWidth*i,e.height=this.element.offsetHeight*i,this.element.width=e.width,this.element.height=e.height,this.container.started&&(this.resizeFactor={width:e.width/o,height:e.height/s})}drawConnectLine(t,i){this.draw((e=>{var o;const s=this.lineStyle(t,i);if(!s)return;const n=t.getPosition(),a=i.getPosition();Ut(e,null!==(o=t.linksWidth)&&void 0!==o?o:this.container.retina.linksWidth,s,n,a)}))}drawGrabLine(t,i,e,o){const s=this.container;this.draw((n=>{var a;const r=t.getPosition();$t(n,null!==(a=t.linksWidth)&&void 0!==a?a:s.retina.linksWidth,r,o,i,e)}))}drawParticle(t,i){var e,o,s;if(t.spawning||t.destroyed)return;const n=t.getFillColor(),a=null!==(e=t.getStrokeColor())&&void 0!==e?e:n;if(!n&&!a)return;let[r,l]=this.getPluginParticleColors(t);const c=t.options.twinkle.particles,d=c.enable&&Math.random()<c.frequency;if(!r||!l){const t=ft(c.color);r||(r=d&&void 0!==t?t:n||void 0),l||(l=d&&void 0!==t?t:a||void 0)}const h=this.container.actualOptions,u=t.options.zIndex,p=Math.pow(1-t.zIndexFactor,u.opacityRate),v=t.getRadius(),f=d?c.opacity:null!==(o=t.bubble.opacity)&&void 0!==o?o:t.opacity.value,y=null!==(s=t.stroke.opacity)&&void 0!==s?s:f,m=f*p,b=r?Rt(r,m):void 0;if(!b&&!l)return;const g=t.options.orbit;this.draw((e=>{const o=Math.pow(1-t.zIndexFactor,u.sizeRate),s=l?Rt(l,y*p):b;v<=0||(g.enable&&this.drawOrbit(t,O.back),jt(this.container,e,t,i,b,s,h.backgroundMask.enable,h.backgroundMask.composite,v*o,m,t.options.shadow,t.gradient),g.enable&&this.drawOrbit(t,O.front))}))}drawOrbit(t,i){const e=this.container,o=t.options.orbit;let s,n;i===O.back?(s=Math.PI/2,n=3*Math.PI/2):i===O.front?(s=3*Math.PI/2,n=Math.PI/2):(s=0,n=2*Math.PI),this.draw((i=>{var a,r,l,c;Zt(i,t,null!==(a=t.orbitColor)&&void 0!==a?a:t.getFillColor(),null!==(l=null!==(r=t.orbitRadius)&&void 0!==r?r:e.retina.orbitRadius)&&void 0!==l?l:t.getRadius(),o.opacity,o.width,(null!==(c=t.orbitRotation)&&void 0!==c?c:0)*e.retina.pixelRatio,s,n)}))}drawPlugin(t,i){this.draw((e=>{Xt(e,t,i)}))}drawParticlePlugin(t,i,e){this.draw((o=>{Yt(o,t,i,e)}))}initBackground(){const t=this.container.actualOptions.background,i=this.element,e=null==i?void 0:i.style;if(e){if(t.color){const i=vt(t.color);e.backgroundColor=i?Et(i,t.opacity):""}else e.backgroundColor="";e.backgroundImage=t.image||"",e.backgroundPosition=t.position||"",e.backgroundRepeat=t.repeat||"",e.backgroundSize=t.size||""}}draw(t){if(this.context)return t(this.context)}initCover(){const t=this.container.actualOptions.backgroundMask.cover,i=vt(t.color);i&&(this.coverColor={r:i.r,g:i.g,b:i.b,a:t.opacity})}initTrail(){const t=this.container.actualOptions,i=vt(t.particles.move.trail.fillColor);if(i){const e=t.particles.move.trail;this.trailFillColor={r:i.r,g:i.g,b:i.b,a:1/e.length}}}getPluginParticleColors(t){let i,e;for(const[,o]of this.container.plugins)if(!i&&o.particleFillColor&&(i=ft(o.particleFillColor(t))),!e&&o.particleStrokeColor&&(e=ft(o.particleStrokeColor(t))),i&&e)break;return[i,e]}initStyle(){const t=this.element,i=this.container.actualOptions;if(!t)return;const e=this.originalStyle;i.fullScreen.enable?(this.originalStyle=ot({},t.style),t.style.position="fixed",t.style.zIndex=i.fullScreen.zIndex.toString(10),t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%"):e&&(t.style.position=e.position,t.style.zIndex=e.zIndex,t.style.top=e.top,t.style.left=e.left,t.style.width=e.width,t.style.height=e.height)}paintBase(t){this.draw((i=>{Vt(i,this.size,t)}))}lineStyle(t,i){return this.draw((e=>{const o=this.container.actualOptions.interactivity.modes.connect;return Nt(e,t,i,o.links.opacity)}))}}class mi{constructor(){this.value="#fff"}static create(t,i){const e=null!=t?t:new mi;return void 0!==i&&("string"==typeof i||i instanceof Array?e.load({value:i}):e.load(i)),e}load(t){void 0!==(null==t?void 0:t.value)&&(this.value=t.value)}}class bi{constructor(){this.blur=5,this.color=new mi,this.enable=!1,this.color.value="#00ff00"}load(t){void 0!==t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=mi.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable))}}class gi{constructor(){this.enable=!1,this.frequency=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=mi.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 wi{constructor(){this.blink=!1,this.color=new mi,this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new bi,this.triangles=new gi,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=mi.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 xi{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 i,e,o,s;if(!t)return;void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable);const n=null!==(e=null===(i=t.rotate)||void 0===i?void 0:i.x)&&void 0!==e?e:t.rotateX;void 0!==n&&(this.rotate.x=n);const a=null!==(s=null===(o=t.rotate)||void 0===o?void 0:o.y)&&void 0!==s?s:t.rotateY;void 0!==a&&(this.rotate.y=a)}}class ki{constructor(){this.enable=!1,this.length=10,this.fillColor=new mi,this.fillColor.value="#000000"}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),this.fillColor=mi.create(this.fillColor,t.fillColor),void 0!==t.length&&(this.length=t.length))}}class Pi{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 Mi{constructor(){this.random=new Pi,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=F(t.value,this.random.enable?this.random.minimumValue:void 0)))}}class zi extends Mi{constructor(){super()}}class Ci{constructor(){this.clamp=!0,this.delay=new zi,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=ot(this.options,t.options)))}}class Oi{constructor(){this.offset=0,this.value=90}load(t){void 0!==t&&(void 0!==t.offset&&(this.offset=t.offset),void 0!==t.value&&(this.value=t.value))}}class Si{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=t.acceleration),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class Ti{constructor(){this.default=f.out}load(t){var i,e,o,s;t&&(void 0!==t.default&&(this.default=t.default),this.bottom=null!==(i=t.bottom)&&void 0!==i?i:t.default,this.left=null!==(e=t.left)&&void 0!==e?e:t.default,this.right=null!==(o=t.right)&&void 0!==o?o:t.default,this.top=null!==(s=t.top)&&void 0!==s?s:t.default)}}class Ei{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=F(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),this.position=t.position?ot({},t.position):void 0)}}class Ri{constructor(){this.angle=new Oi,this.attract=new xi,this.decay=0,this.distance={},this.direction=a.none,this.drift=0,this.enable=!1,this.gravity=new Si,this.path=new Ci,this.outModes=new Ti,this.random=!1,this.size=!1,this.speed=2,this.spin=new Ei,this.straight=!1,this.trail=new ki,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 i,e,o;if(void 0===t)return;void 0!==t.angle&&("number"==typeof t.angle?this.angle.value=t.angle:this.angle.load(t.angle)),this.attract.load(t.attract),void 0!==t.decay&&(this.decay=t.decay),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance="number"==typeof t.distance?{horizontal:t.distance,vertical:t.distance}:ot({},t.distance)),void 0!==t.drift&&(this.drift=F(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const s=null!==(i=t.outMode)&&void 0!==i?i:t.out_mode;void 0===t.outModes&&void 0===s||("string"==typeof t.outModes||void 0===t.outModes&&void 0!==s?this.outModes.load({default:null!==(e=t.outModes)&&void 0!==e?e:s}):this.outModes.load(t.outModes)),this.path.load(null!==(o=t.path)&&void 0!==o?o:t.noise),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=F(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 Ai{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 i;if(void 0===t)return;void 0!==t.enable&&(this.enable=t.enable);const e=null!==(i=t.area)&&void 0!==i?i:t.value_area;void 0!==e&&(this.area=e),void 0!==t.factor&&(this.factor=t.factor)}}class Di{constructor(){this.density=new Ai,this.limit=0,this.value=100}get max(){return this.limit}set max(t){this.limit=t}load(t){var i;if(void 0===t)return;this.density.load(t.density);const e=null!==(i=t.limit)&&void 0!==i?i:t.max;void 0!==e&&(this.limit=e),void 0!==t.value&&(this.value=t.value)}}class Ii{constructor(){this.count=0,this.enable=!1,this.speed=1,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Li extends Ii{constructor(){super(),this.destroy=w.none,this.enable=!1,this.speed=2,this.startValue=M.random,this.sync=!1}get opacity_min(){return this.minimumValue}set opacity_min(t){this.minimumValue=t}load(t){var i;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!==(i=t.minimumValue)&&void 0!==i?i: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 Fi extends Mi{constructor(){super(),this.animation=new Li,this.random.minimumValue=.1,this.value=1}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var i;if(!t)return;super.load(t);const e=null!==(i=t.animation)&&void 0!==i?i:t.anim;void 0!==e&&(this.animation.load(e),this.value=F(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class Hi{constructor(){this.options={},this.type=P.circle}get image(){var t;return null!==(t=this.options[P.image])&&void 0!==t?t:this.options[P.images]}set image(t){this.options[P.image]=t,this.options[P.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[P.character])&&void 0!==t?t:this.options[P.char]}set character(t){this.options[P.character]=t,this.options[P.char]=t}get polygon(){var t;return null!==(t=this.options[P.polygon])&&void 0!==t?t:this.options[P.star]}set polygon(t){this.options[P.polygon]=t,this.options[P.star]=t}load(t){var i,e,o;if(void 0===t)return;const s=null!==(i=t.options)&&void 0!==i?i:t.custom;if(void 0!==s)for(const t in s){const i=s[t];void 0!==i&&(this.options[t]=ot(null!==(e=this.options[t])&&void 0!==e?e:{},i))}this.loadShape(t.character,P.character,P.char,!0),this.loadShape(t.polygon,P.polygon,P.star,!1),this.loadShape(null!==(o=t.image)&&void 0!==o?o:t.images,P.image,P.images,!0),void 0!==t.type&&(this.type=t.type)}loadShape(t,i,e,o){var s,n,a,r;void 0!==t&&(t instanceof Array?(this.options[i]instanceof Array||(this.options[i]=[],this.options[e]&&!o||(this.options[e]=[])),this.options[i]=ot(null!==(s=this.options[i])&&void 0!==s?s:[],t),this.options[e]&&!o||(this.options[e]=ot(null!==(n=this.options[e])&&void 0!==n?n:[],t))):(this.options[i]instanceof Array&&(this.options[i]={},this.options[e]&&!o||(this.options[e]={})),this.options[i]=ot(null!==(a=this.options[i])&&void 0!==a?a:{},t),this.options[e]&&!o||(this.options[e]=ot(null!==(r=this.options[e])&&void 0!==r?r:{},t))))}}class qi extends Ii{constructor(){super(),this.destroy=w.none,this.enable=!1,this.speed=5,this.startValue=M.random,this.sync=!1}get size_min(){return this.minimumValue}set size_min(t){this.minimumValue=t}load(t){var i;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!==(i=t.minimumValue)&&void 0!==i?i: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 _i extends Mi{constructor(){super(),this.animation=new qi,this.random.minimumValue=1,this.value=3}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var i;if(!t)return;super.load(t);const e=null!==(i=t.animation)&&void 0!==i?i:t.anim;void 0!==e&&(this.animation.load(e),this.value=F(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}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=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Bi extends Mi{constructor(){super(),this.animation=new Vi,this.direction=r.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 Wi{constructor(){this.blur=0,this.color=new mi,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=mi.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 Gi{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=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(this.offset=F(t.offset)),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Ui{constructor(){this.h=new Gi,this.s=new Gi,this.l=new Gi}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class Ni extends mi{constructor(){super(),this.animation=new Ui}static create(t,i){const e=null!=t?t:new Ni;return void 0!==i&&e.load("string"==typeof i?{value:i}:i),e}load(t){if(super.load(t),!t)return;const i=t.animation;void 0!==i&&(void 0!==i.enable?this.animation.h.load(i):this.animation.load(t.animation))}}class $i{constructor(){this.width=0}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Ni.create(this.color,t.color)),void 0!==t.width&&(this.width=t.width),void 0!==t.opacity&&(this.opacity=t.opacity))}}class ji extends Mi{constructor(){super(),this.random.minimumValue=.1,this.value=1}}class Qi{constructor(){this.horizontal=new ji,this.vertical=new ji}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class Ji{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 Xi{constructor(){this.bounce=new Qi,this.enable=!1,this.mode=v.bounce,this.overlap=new Ji}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 Yi{constructor(){this.enable=!1,this.frequency=.05,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=mi.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 Zi{constructor(){this.lines=new Yi,this.particles=new Yi}load(t){void 0!==t&&(this.lines.load(t.lines),this.particles.load(t.particles))}}class Ki extends Mi{constructor(){super(),this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class te extends Mi{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 ie{constructor(){this.count=0,this.delay=new Ki,this.duration=new te}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class ee extends Mi{constructor(){super(),this.value=3}}class oe extends Mi{constructor(){super(),this.value={min:4,max:9}}}class se{constructor(){this.count=1,this.factor=new ee,this.rate=new oe,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=ot({},t.particles)),void 0!==t.sizeOffset&&(this.sizeOffset=t.sizeOffset))}}class ne{constructor(){this.mode=h.none,this.split=new se}load(t){t&&(void 0!==t.mode&&(this.mode=t.mode),this.split.load(t.split))}}class ae{constructor(){this.distance=5,this.enable=!1,this.speed=50}load(t){t&&(void 0!==t.distance&&(this.distance=F(t.distance)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=F(t.speed)))}}class re{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=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class le extends Mi{constructor(){super(),this.animation=new re,this.direction=c.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 ce{constructor(){this.enable=!1,this.value=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.value&&(this.value=t.value))}}class de{constructor(){this.darken=new ce,this.enable=!1,this.enlighten=new ce,this.speed=25}load(t){t&&(void 0!==t.backColor&&(this.backColor=mi.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.speed&&(this.speed=F(t.speed)))}}class he extends Mi{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 ue extends Mi{constructor(){super(),this.value=45,this.random.enable=!1,this.random.minimumValue=0}load(t){void 0!==t&&super.load(t)}}class pe{constructor(){this.animation=new Ii,this.enable=!1,this.opacity=1,this.rotation=new ue,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=t.opacity),void 0!==t.width&&(this.width=t.width),void 0!==t.radius&&(this.radius=t.radius),void 0!==t.color&&(this.color=mi.create(this.color,t.color)))}}class ve extends Mi{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=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed))}}class fe{constructor(){this.angle=new ye,this.colors=[],this.type=x.random}load(t){t&&(this.angle.load(t.angle),void 0!==t.colors&&(this.colors=t.colors.map((t=>{const i=new be;return i.load(t),i}))),void 0!==t.type&&(this.type=t.type))}}class ye{constructor(){this.value=0,this.animation=new ge,this.direction=r.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 me{constructor(){this.value=0,this.animation=new we}load(t){t&&(this.animation.load(t.animation),void 0!==t.value&&(this.value=F(t.value)))}}class be{constructor(){this.stop=0,this.value=new Ni}load(t){t&&(void 0!==t.stop&&(this.stop=t.stop),this.value=Ni.create(this.value,t.value),void 0!==t.opacity&&(this.opacity=new me,"number"==typeof t.opacity?this.opacity.value=t.opacity:this.opacity.load(t.opacity)))}}class ge{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class we{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1,this.startValue=M.random}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync),void 0!==t.startValue&&(this.startValue=t.startValue))}}class xe{constructor(){this.bounce=new Qi,this.collisions=new Xi,this.color=new Ni,this.destroy=new ne,this.gradient=[],this.groups={},this.life=new ie,this.links=new wi,this.move=new Ri,this.number=new Di,this.opacity=new Fi,this.orbit=new pe,this.reduceDuplicates=!1,this.repulse=new ve,this.roll=new de,this.rotate=new Bi,this.shadow=new Wi,this.shape=new Hi,this.size=new _i,this.stroke=new $i,this.tilt=new le,this.twinkle=new Zi,this.wobble=new ae,this.zIndex=new he}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 i,e,o,s,n,a,r,l;if(void 0===t)return;this.bounce.load(t.bounce),this.color=Ni.create(this.color,t.color),this.destroy.load(t.destroy),this.life.load(t.life);const c=null!==(e=null!==(i=t.links)&&void 0!==i?i:t.lineLinked)&&void 0!==e?e:t.line_linked;if(void 0!==c&&this.links.load(c),void 0!==t.groups)for(const i in t.groups){const e=t.groups[i];void 0!==e&&(this.groups[i]=ot(null!==(o=this.groups[i])&&void 0!==o?o:{},e))}this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.orbit.load(t.orbit),void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.repulse.load(t.repulse),this.roll.load(t.roll),this.rotate.load(t.rotate),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.tilt.load(t.tilt),this.twinkle.load(t.twinkle),this.wobble.load(t.wobble),this.zIndex.load(t.zIndex);const d=null!==(n=null===(s=t.move)||void 0===s?void 0:s.collisions)&&void 0!==n?n:null===(a=t.move)||void 0===a?void 0:a.bounce;void 0!==d&&(this.collisions.enable=d),this.collisions.load(t.collisions);const h=null!==(r=t.stroke)&&void 0!==r?r:null===(l=t.shape)||void 0===l?void 0:l.stroke;h&&(h instanceof Array?this.stroke=h.map((t=>{const i=new $i;return i.load(t),i})):(this.stroke instanceof Array&&(this.stroke=new $i),this.stroke.load(h)));const u=t.gradient;u&&(u instanceof Array?this.gradient=u.map((t=>{const i=new fe;return i.load(t),i})):(this.gradient instanceof Array&&(this.gradient=new fe),this.gradient.load(u)))}}class ke extends T{constructor(t,i,e){super(t,i),this.z=void 0===e?t.z:e}static clone(t){return ke.create(t.x,t.y,t.z)}static create(t,i,e){return new ke(t,i,e)}add(t){return t instanceof ke?ke.create(this.x+t.x,this.y+t.y,this.z+t.z):super.add(t)}addTo(t){super.addTo(t),t instanceof ke&&(this.z+=t.z)}sub(t){return t instanceof ke?ke.create(this.x-t.x,this.y-t.y,this.z-t.z):super.sub(t)}subFrom(t){super.subFrom(t),t instanceof ke&&(this.z-=t.z)}mult(t){return ke.create(this.x*t,this.y*t,this.z*t)}multTo(t){super.multTo(t),this.z*=t}div(t){return ke.create(this.x/t,this.y/t,this.z/t)}divTo(t){super.divTo(t),this.z/=t}copy(){return ke.clone(this)}setTo(t){super.setTo(t),t instanceof ke&&(this.z=t.z)}}class Pe{constructor(t,i,e,o,s){var n,a,l,d,h,u,p,v,f,y;this.id=t,this.container=i,this.group=s,this.fill=!0,this.close=!0,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.splitCount=0,this.misplaced=!1,this.maxDistance={};const m=i.retina.pixelRatio,w=i.actualOptions,x=new xe;x.load(w.particles);const k=x.shape.type,P=x.reduceDuplicates;if(this.shape=k instanceof Array?K(k,this.id,P):k,null==o?void 0:o.shape){if(o.shape.type){const t=o.shape.type;this.shape=t instanceof Array?K(t,this.id,P):t}const t=new Hi;t.load(o.shape),this.shape&&(this.shapeData=this.loadShapeData(t,P))}else this.shapeData=this.loadShapeData(x.shape,P);void 0!==o&&x.load(o),void 0!==(null===(n=this.shapeData)||void 0===n?void 0:n.particles)&&x.load(null===(a=this.shapeData)||void 0===a?void 0:a.particles),this.fill=null!==(d=null===(l=this.shapeData)||void 0===l?void 0:l.fill)&&void 0!==d?d:this.fill,this.close=null!==(u=null===(h=this.shapeData)||void 0===h?void 0:h.close)&&void 0!==u?u:this.close,this.options=x;const z=D(this.options.zIndex.value);this.pathDelay=1e3*H(this.options.move.path.delay),this.wobbleDistance=0,i.retina.initParticle(this);const C=this.options.size,O=H(C)*i.retina.pixelRatio,S=C.value;this.size={enable:C.animation.enable,value:O,max:L(S)*m,min:I(S)*m,loops:0,maxLoops:C.animation.count};const R=C.animation;if(R.enable){switch(this.size.status=b.increasing,R.startValue){case M.min:this.size.value=this.size.min,this.size.status=b.increasing;break;case M.random:this.size.value=A(this.size)*m,this.size.status=Math.random()>=.5?b.increasing:b.decreasing;break;case M.max:default:this.size.value=this.size.max,this.size.status=b.decreasing}this.size.velocity=(null!==(p=this.sizeAnimationSpeed)&&void 0!==p?p:i.retina.sizeAnimationSpeed)/100*i.retina.reduceFactor,R.sync||(this.size.velocity*=Math.random())}this.direction=V(this.options.move.direction),this.bubble={inRange:!1},this.initialVelocity=this.calculateVelocity(),this.velocity=this.initialVelocity.copy();const F=this.options.rotate;this.rotate={enable:F.animation.enable,value:D(F.value)*Math.PI/180};let q=F.direction;if(q===r.random){q=Math.floor(2*Math.random())>0?r.counterClockwise:r.clockwise}switch(q){case r.counterClockwise:case"counterClockwise":this.rotate.status=b.decreasing;break;case r.clockwise:this.rotate.status=b.increasing}const B=this.options.rotate.animation;B.enable&&(this.rotate.velocity=B.speed/360*i.retina.reduceFactor,B.sync||(this.rotate.velocity*=Math.random()));const W=this.options.tilt;this.tilt={enable:W.enable,value:D(W.value)*Math.PI/180,sinDirection:Math.random()>=.5?1:-1,cosDirection:Math.random()>=.5?1:-1};let G=W.direction;if(G===c.random){G=Math.floor(2*Math.random())>0?c.counterClockwise:c.clockwise}switch(G){case c.counterClockwise:case"counterClockwise":this.tilt.status=b.decreasing;break;case c.clockwise:this.tilt.status=b.increasing}const U=this.options.tilt.animation;U.enable&&(this.tilt.velocity=U.speed/360*i.retina.reduceFactor,U.sync||(this.tilt.velocity*=Math.random()));const N=x.orbit;N.enable&&(this.orbitRotation=D(N.rotation.value),this.orbitColor=ft(N.color));const $=ft(this.options.color,this.id,P);$&&(this.color=Ht($,this.options.color.animation,i.retina.reduceFactor));const j=this.options.gradient instanceof Array?K(this.options.gradient):this.options.gradient;if(j){this.gradient={angle:{value:j.angle.value,enable:j.angle.animation.enable,velocity:j.angle.animation.speed/360*i.retina.reduceFactor},type:j.type,colors:[]};let t=j.angle.direction;if(t===r.random){t=Math.floor(2*Math.random())>0?r.counterClockwise:r.clockwise}switch(t){case r.counterClockwise:case"counterClockwise":this.gradient.angle.status=b.decreasing;break;case r.clockwise:this.gradient.angle.status=b.increasing}for(const t of j.colors){const e=ft(t.value,this.id,P);if(e){const o=Ht(e,t.value.animation,i.retina.reduceFactor),s={stop:t.stop,value:o,opacity:t.opacity?{enable:t.opacity.animation.enable,max:L(t.opacity.value),min:I(t.opacity.value),status:b.increasing,value:D(t.opacity.value),velocity:t.opacity.animation.speed/100*i.retina.reduceFactor}:void 0};if(t.opacity&&s.opacity){const i=t.opacity.value;s.opacity.min=I(i),s.opacity.max=L(i);switch(t.opacity.animation.startValue){case M.min:s.opacity.value=s.opacity.min,s.opacity.status=b.increasing;break;case M.random:s.opacity.value=A(s.opacity),s.opacity.status=Math.random()>=.5?b.increasing:b.decreasing;break;case M.max:default:s.opacity.value=s.opacity.max,s.opacity.status=b.decreasing}}this.gradient.colors.push(s)}}}const Q=this.options.roll;Q.enable?(this.color&&(Q.backColor?this.backColor=ft(Q.backColor):Q.darken.enable&&Q.enlighten.enable?(this.alterType=Math.random()>=.5?g.darken:g.enlighten,this.alterValue=this.alterType===g.darken?Q.darken.value:Q.enlighten.value):Q.darken.enable?(this.alterType=g.darken,this.alterValue=Q.darken.value):Q.enlighten.enable&&(this.alterType=g.enlighten,this.alterValue=Q.enlighten.value)),this.rollAngle=Math.random()*Math.PI*2,this.rollSpeed=D(Q.speed)/360):(this.rollAngle=0,this.rollSpeed=0);const J=this.options.wobble;J.enable?(this.wobbleAngle=Math.random()*Math.PI*2,this.wobbleSpeed=D(J.speed)/360):(this.wobbleAngle=0,this.wobbleSpeed=0),this.position=this.calcPosition(i,e,E(z,0,i.zLayers)),this.initialPosition=this.position.copy(),this.offset=T.origin;const X=i.particles;X.needsSort=X.needsSort||X.lastZIndex<this.position.z,X.lastZIndex=this.position.z,this.zIndexFactor=this.position.z/i.zLayers;const Y=this.options.opacity;this.opacity={enable:Y.animation.enable,max:L(Y.value),min:I(Y.value),value:D(Y.value),loops:0,maxLoops:Y.animation.count};const Z=Y.animation;if(Z.enable){this.opacity.status=b.increasing;const t=Y.value;switch(this.opacity.min=I(t),this.opacity.max=L(t),Z.startValue){case M.min:this.opacity.value=this.opacity.min,this.opacity.status=b.increasing;break;case M.random:this.opacity.value=A(this.opacity),this.opacity.status=Math.random()>=.5?b.increasing:b.decreasing;break;case M.max:default:this.opacity.value=this.opacity.max,this.opacity.status=b.decreasing}this.opacity.velocity=Z.speed/100*i.retina.reduceFactor,Z.sync||(this.opacity.velocity*=Math.random())}this.sides=24;let tt=i.drawers.get(this.shape);tt||(tt=pi.getShapeDrawer(this.shape),tt&&i.drawers.set(this.shape,tt)),(null==tt?void 0:tt.loadShape)&&(null==tt||tt.loadShape(this));const it=null==tt?void 0:tt.getSidesCount;it&&(this.sides=it(this)),this.stroke=this.options.stroke instanceof Array?K(this.options.stroke,this.id,P):this.options.stroke,this.strokeWidth=this.stroke.width*i.retina.pixelRatio;const et=null!==(v=ft(this.stroke.color))&&void 0!==v?v:this.getFillColor();if(et&&(this.strokeColor=Ht(et,null===(f=this.stroke.color)||void 0===f?void 0:f.animation,i.retina.reduceFactor)),this.life=this.loadLife(),this.spawning=this.life.delay>0,this.options.move.spin.enable){const t=null!==(y=this.options.move.spin.position)&&void 0!==y?y:{x:50,y:50},e={x:t.x/100*i.canvas.size.width,y:t.y/100*i.canvas.size.height},o=_(this.getPosition(),e);this.spin={center:e,direction:this.velocity.x>=0?r.clockwise:r.counterClockwise,angle:this.velocity.angle,radius:o,acceleration:D(this.options.move.spin.acceleration)}}this.shadowColor=vt(this.options.shadow.color),tt&&tt.particleInit&&tt.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(),i=this.container.canvas.size;return this.position.x>=-t&&this.position.y>=-t&&this.position.y<=i.height+t&&this.position.x<=i.width+t}draw(t){const i=this.container;for(const[,e]of i.plugins)i.canvas.drawParticlePlugin(e,this,t);i.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(){return this.bubble.radius||this.size.value}getMass(){const t=this.getRadius();return Math.pow(t,2)*Math.PI/2}getFillColor(){if(this.bubble.color)return this.bubble.color;const t=Ft(this.color);if(t&&(this.backColor||this.alterType&&void 0!==this.alterValue)){if(Math.floor(this.rollAngle/(Math.PI/2))%2){if(this.backColor)return this.backColor;if(this.alterType&&void 0!==this.alterValue)return{h:t.h,s:t.s,l:t.l+(this.alterType===g.darken?-1:1)*this.alterValue}}}return t}getStrokeColor(){var t,i;return null!==(i=null!==(t=this.bubble.color)&&void 0!==t?t:Ft(this.strokeColor))&&void 0!==i?i:this.getFillColor()}destroy(t){if(this.destroyed=!0,this.bubble.inRange=!1,this.unbreakable)return;this.destroyed=!0,this.bubble.inRange=!1;for(const[,i]of this.container.plugins)i.particleDestroyed&&i.particleDestroyed(this,t);if(t)return;this.options.destroy.mode===h.split&&this.split()}reset(){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 i=D(t.rate.value);for(let t=0;t<i;t++)this.container.particles.addSplitParticle(this)}calcPosition(t,i,e,o=0){var s,n,a,r,l,c;for(const[,o]of t.plugins){const t=void 0!==o.particlePosition?o.particlePosition(i,this):void 0;if(void 0!==t)return ke.create(t.x,t.y,e)}const d=t.canvas.size,h=ke.create(null!==(s=null==i?void 0:i.x)&&void 0!==s?s:Math.random()*d.width,null!==(n=null==i?void 0:i.y)&&void 0!==n?n:Math.random()*d.height,e),u=this.getRadius(),p=this.options.move.outModes,v=i=>{(X(i,f.bounce)||X(i,f.bounceHorizontal))&&(h.x>t.canvas.size.width-2*u?h.x-=u:h.x<2*u&&(h.x+=u))},y=i=>{(X(i,f.bounce)||X(i,f.bounceVertical))&&(h.y>t.canvas.size.height-2*u?h.y-=u:h.y<2*u&&(h.y+=u))};return v(null!==(a=p.left)&&void 0!==a?a:p.default),v(null!==(r=p.right)&&void 0!==r?r:p.default),y(null!==(l=p.top)&&void 0!==l?l:p.default),y(null!==(c=p.bottom)&&void 0!==c?c:p.default),this.checkOverlap(h,o)?this.calcPosition(t,void 0,e,o+1):h}checkOverlap(t,i=0){const e=this.options.collisions,o=this.getRadius();if(!e.enable)return!1;const s=e.overlap;if(s.enable)return!1;const n=s.retries;if(n>=0&&i>n)throw new Error("Particle is overlapping and can't be placed");let a=!1;for(const i of this.container.particles.array)if(_(t,i.position)<o+i.getRadius()){a=!0;break}return a}calculateVelocity(){const t=B(this.direction).copy(),i=this.options.move,e=Math.PI/180*i.angle.value,o=Math.PI/180*i.angle.offset,s={left:o-e/2,right:o+e/2};return i.straight||(t.angle+=A(F(s.left,s.right))),i.random&&"number"==typeof i.speed&&(t.length*=Math.random()),t}loadShapeData(t,i){const e=t.options[this.shape];if(e)return ot({},e instanceof Array?K(e,this.id,i):e)}loadLife(){const t=this.container,i=this.options,e=i.life,o={delay:t.retina.reduceFactor?D(e.delay.value)*(e.delay.sync?1:Math.random())/t.retina.reduceFactor*1e3:0,delayTime:0,duration:t.retina.reduceFactor?D(e.duration.value)*(e.duration.sync?1:Math.random())/t.retina.reduceFactor*1e3:0,time:0,count:i.life.count};return o.duration<=0&&(o.duration=-1),o.count<=0&&(o.count=-1),o}}class Me{constructor(t){this.container=t;const i=pi.getInteractors(t);this.externalInteractors=[],this.particleInteractors=[];for(const t of i)switch(t.type){case k.External:this.externalInteractors.push(t);break;case k.Particles:this.particleInteractors.push(t)}}externalInteract(t){for(const i of this.externalInteractors)i.isEnabled()&&i.interact(t)}particlesInteract(t,i){for(const i of this.externalInteractors)i.reset(t);for(const e of this.particleInteractors)e.isEnabled(t)&&e.interact(t,i)}}class ze{constructor(t){this.container=t}move(t,i){t.destroyed||(this.moveParticle(t,i),this.moveParallax(t))}moveParticle(t,i){var e,o,s;const n=t.options,a=n.move;if(!a.enable)return;const r=this.container,l=this.getProximitySpeedFactor(t),c=(null!==(e=t.moveSpeed)&&void 0!==e?e:t.moveSpeed=D(a.speed)*r.retina.pixelRatio)*r.retina.reduceFactor,d=null!==(o=t.moveDrift)&&void 0!==o?o:t.moveDrift=D(t.options.move.drift)*r.retina.pixelRatio,h=L(n.size.value)*r.retina.pixelRatio,u=c*((a.size?t.getRadius()/h:1)*l*(i.factor||1)/2);this.applyPath(t,i);const p=a.gravity,v=p.enable&&p.inverse?-1:1;p.enable&&u&&(t.velocity.y+=v*(p.acceleration*i.factor)/(60*u)),d&&u&&(t.velocity.x+=d*i.factor/(60*u));const f=1-t.options.move.decay;1!=f&&t.velocity.multTo(f);const y=t.velocity.mult(u),m=null!==(s=t.maxSpeed)&&void 0!==s?s:r.retina.maxSpeed;p.enable&&p.maxSpeed>0&&(!p.inverse&&y.y>=0&&y.y>=m||p.inverse&&y.y<=0&&y.y<=-m)&&(y.y=v*m,u&&(t.velocity.y=y.y/u));const b=t.options.zIndex,g=Math.pow(1-t.zIndexFactor,b.velocityRate);a.spin.enable?this.spin(t,u):(1!=g&&y.multTo(g),t.position.addTo(y),a.vibrate&&(t.position.x+=Math.sin(t.position.x*Math.cos(t.position.y)),t.position.y+=Math.cos(t.position.y*Math.sin(t.position.x)))),function(t){const i=t.initialPosition,{dx:e,dy:o}=q(i,t.position),s=Math.abs(e),n=Math.abs(o),a=t.maxDistance.horizontal,r=t.maxDistance.vertical;if(a||r)if((a&&s>=a||r&&n>=r)&&!t.misplaced)t.misplaced=!!a&&s>a||!!r&&n>r,a&&(t.velocity.x=t.velocity.y/2-t.velocity.x),r&&(t.velocity.y=t.velocity.x/2-t.velocity.y);else if((!a||s<a)&&(!r||n<r)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const e=t.position,o=t.velocity;a&&(e.x<i.x&&o.x<0||e.x>i.x&&o.x>0)&&(o.x*=-Math.random()),r&&(e.y<i.y&&o.y<0||e.y>i.y&&o.y>0)&&(o.y*=-Math.random())}}(t)}spin(t,i){const e=this.container;if(!t.spin)return;const o={x:t.spin.direction===r.clockwise?Math.cos:Math.sin,y:t.spin.direction===r.clockwise?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*o.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*o.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;const s=Math.max(e.canvas.size.width,e.canvas.size.height);t.spin.radius>s/2?(t.spin.radius=s/2,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=i/100*(1-t.spin.radius/s)}applyPath(t,i){const e=t.options.move.path;if(!e.enable)return;const o=this.container;if(t.lastPathTime<=t.pathDelay)return void(t.lastPathTime+=i.value);const s=o.pathGenerator.generate(t);t.velocity.addTo(s),e.clamp&&(t.velocity.x=E(t.velocity.x,-1,1),t.velocity.y=E(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay}moveParallax(t){const i=this.container,e=i.actualOptions;if(j()||!e.interactivity.events.onHover.parallax.enable)return;const o=e.interactivity.events.onHover.parallax.force,s=i.interactivity.mouse.position;if(!s)return;const n=i.canvas.size.width/2,a=i.canvas.size.height/2,r=e.interactivity.events.onHover.parallax.smooth,l=t.getRadius()/o,c=(s.x-n)*l,d=(s.y-a)*l;t.offset.x+=(c-t.offset.x)/r,t.offset.y+=(d-t.offset.y)/r}getProximitySpeedFactor(t){const i=this.container,e=i.actualOptions;if(!X(p.slow,e.interactivity.events.onHover.mode))return 1;const o=this.container.interactivity.mouse.position;if(!o)return 1;const s=_(o,t.getPosition()),n=i.retina.slowModeRadius;if(s>n)return 1;return(s/n||0)/e.interactivity.modes.slow.factor}}class Ce{constructor(t){this.container=t,this.nextId=0,this.array=[],this.zArray=[],this.mover=new ze(t),this.limit=0,this.needsSort=!1,this.lastZIndex=0,this.linksFreq=new Map,this.trianglesFreq=new Map,this.interactionManager=new Me(t);const i=this.container.canvas.size;this.linksColors=new Map,this.quadTree=new fi(new ii(-i.width/4,-i.height/4,3*i.width/2,3*i.height/2),4),this.updaters=pi.getUpdaters(t)}get count(){return this.array.length}init(){var t;const i=this.container,e=i.actualOptions;this.lastZIndex=0,this.needsSort=!1,this.linksFreq=new Map,this.trianglesFreq=new Map;let o=!1;for(const[,t]of i.plugins)if(void 0!==t.particlesInitialization&&(o=t.particlesInitialization()),o)break;if(this.addManualParticles(),!o){for(const i in e.particles.groups){const o=e.particles.groups[i];for(let s=this.count,n=0;n<(null===(t=o.number)||void 0===t?void 0:t.value)&&s<e.particles.number.value;s++,n++)this.addParticle(void 0,o,i)}for(let t=this.count;t<e.particles.number.value;t++)this.addParticle()}i.pathGenerator.init(i)}redraw(){this.clear(),this.init(),this.draw({value:0,factor:0})}removeAt(t,i=1,e,o){if(!(t>=0&&t<=this.count))return;let s=0;for(let n=t;s<i&&n<this.count;n++){const t=this.array[n];if(!t||t.group!==e)continue;t.destroy(o),this.array.splice(n--,1);const i=this.zArray.indexOf(t);this.zArray.splice(i,1),s++}}remove(t,i,e){this.removeAt(this.array.indexOf(t),void 0,i,e)}update(t){const i=this.container,e=[];i.pathGenerator.update();for(const[,e]of i.plugins)void 0!==e.update&&e.update(t);for(const o of this.array){const s=i.canvas.resizeFactor;s&&(o.position.x*=s.width,o.position.y*=s.height),o.bubble.inRange=!1;for(const[,i]of this.container.plugins){if(o.destroyed)break;i.particleUpdate&&i.particleUpdate(o,t)}this.mover.move(o,t),o.destroyed?e.push(o):this.quadTree.insert(new vi(o.getPosition(),o))}for(const t of e)this.remove(t);this.interactionManager.externalInteract(t);for(const e of i.particles.array){for(const i of this.updaters)i.update(e,t);e.destroyed||e.spawning||this.interactionManager.particlesInteract(e,t)}delete i.canvas.resizeFactor}draw(t){const i=this.container;i.canvas.clear();const e=this.container.canvas.size;this.quadTree=new fi(new ii(-e.width/4,-e.height/4,3*e.width/2,3*e.height/2),4),this.update(t),this.needsSort&&(this.zArray.sort(((t,i)=>i.position.z-t.position.z||t.id-i.id)),this.lastZIndex=this.zArray[this.zArray.length-1].position.z,this.needsSort=!1);for(const[,e]of i.plugins)i.canvas.drawPlugin(e,t);for(const i of this.zArray)i.draw(t)}clear(){this.array=[],this.zArray=[]}push(t,i,e,o){this.pushing=!0;for(let s=0;s<t;s++)this.addParticle(null==i?void 0:i.position,e,o);this.pushing=!1}addParticle(t,i,e){const o=this.container,s=o.actualOptions.particles.number.limit*o.density;if(s>0){const t=this.count+1-s;t>0&&this.removeQuantity(t)}return this.pushParticle(t,i,e)}addSplitParticle(t){const i=t.options.destroy.split,e=new xe;e.load(t.options);const o=D(i.factor.value);e.color.load({value:{hsl:t.getFillColor()}}),"number"==typeof e.size.value?e.size.value/=o:(e.size.value.min/=o,e.size.value.max/=o),e.load(i.particles);const s=i.sizeOffset?F(-t.size.value,t.size.value):0,n={x:t.position.x+A(s),y:t.position.y+A(s)};return this.pushParticle(n,e,t.group,(i=>!(i.size.value<.5)&&(i.velocity.length=A(F(t.velocity.length,i.velocity.length)),i.splitCount=t.splitCount+1,i.unbreakable=!0,setTimeout((()=>{i.unbreakable=!1}),500),!0)))}removeQuantity(t,i){this.removeAt(0,t,i)}getLinkFrequency(t,i){const e=`${Math.min(t.id,i.id)}_${Math.max(t.id,i.id)}`;let o=this.linksFreq.get(e);return void 0===o&&(o=Math.random(),this.linksFreq.set(e,o)),o}getTriangleFrequency(t,i,e){let[o,s,n]=[t.id,i.id,e.id];o>s&&([s,o]=[o,s]),s>n&&([n,s]=[s,n]),o>n&&([n,o]=[o,n]);const a=`${o}_${s}_${n}`;let r=this.trianglesFreq.get(a);return void 0===r&&(r=Math.random(),this.trianglesFreq.set(a,r)),r}addManualParticles(){const t=this.container,i=t.actualOptions;for(const e of i.manualParticles){const i=e.position?{x:e.position.x*t.canvas.size.width/100,y:e.position.y*t.canvas.size.height/100}:void 0;this.addParticle(i,e.options)}}setDensity(){const t=this.container.actualOptions;for(const i in t.particles.groups)this.applyDensity(t.particles.groups[i],0,i);this.applyDensity(t.particles,t.manualParticles.length)}applyDensity(t,i,e){var o;if(!(null===(o=t.number.density)||void 0===o?void 0:o.enable))return;const s=t.number,n=this.initDensityFactor(s.density),a=s.value,r=s.limit>0?s.limit:a,l=Math.min(a,r)*n+i,c=Math.min(this.count,this.array.filter((t=>t.group===e)).length);this.limit=s.limit*n,c<l?this.push(Math.abs(l-c),void 0,t,e):c>l&&this.removeQuantity(c-l,e)}initDensityFactor(t){const i=this.container;if(!i.canvas.element||!t.enable)return 1;const e=i.canvas.element,o=i.retina.pixelRatio;return e.width*e.height/(t.factor*Math.pow(o,2)*t.area)}pushParticle(t,i,e,o){try{const s=new Pe(this.nextId,this.container,t,i,e);let n=!0;if(o&&(n=o(s)),!n)return;return this.array.push(s),this.zArray.push(s),this.nextId++,s}catch(t){return void console.warn(`error adding particle: ${t}`)}}}class Oe{constructor(t){this.container=t}init(){const t=this.container,i=t.actualOptions;this.pixelRatio=!i.detectRetina||j()?1:window.devicePixelRatio;const e=this.container.actualOptions.motion;if(e&&(e.disable||e.reduce.value))if(j()||"undefined"==typeof matchMedia||!matchMedia)this.reduceFactor=1;else{const i=matchMedia("(prefers-reduced-motion: reduce)");if(i){this.handleMotionChange(i);const e=()=>{this.handleMotionChange(i),t.refresh().catch((()=>{}))};void 0!==i.addEventListener?i.addEventListener("change",e):void 0!==i.addListener&&i.addListener(e)}}else this.reduceFactor=1;const o=this.pixelRatio;if(t.canvas.element){const i=t.canvas.element;t.canvas.size.width=i.offsetWidth*o,t.canvas.size.height=i.offsetHeight*o}const s=i.particles;this.attractDistance=s.move.attract.distance*o,this.linksDistance=s.links.distance*o,this.linksWidth=s.links.width*o,this.sizeAnimationSpeed=s.size.animation.speed*o,this.maxSpeed=s.move.gravity.maxSpeed*o,void 0!==s.orbit.radius&&(this.orbitRadius=s.orbit.radius*this.container.retina.pixelRatio);const n=i.interactivity.modes;this.connectModeDistance=n.connect.distance*o,this.connectModeRadius=n.connect.radius*o,this.grabModeDistance=n.grab.distance*o,this.repulseModeDistance=n.repulse.distance*o,this.bounceModeDistance=n.bounce.distance*o,this.attractModeDistance=n.attract.distance*o,this.slowModeRadius=n.slow.radius*o,this.bubbleModeDistance=n.bubble.distance*o,n.bubble.size&&(this.bubbleModeSize=n.bubble.size*o)}initParticle(t){const i=t.options,e=this.pixelRatio,o=i.move.distance,s=i.orbit;t.attractDistance=i.move.attract.distance*e,t.linksDistance=i.links.distance*e,t.linksWidth=i.links.width*e,t.moveDrift=D(i.move.drift)*e,t.moveSpeed=D(i.move.speed)*e,t.sizeAnimationSpeed=i.size.animation.speed*e,t.orbitRadius=void 0!==(null==s?void 0:s.radius)?s.radius*e:void 0,t.spin&&(t.spin.acceleration=D(i.move.spin.acceleration)*e);const n=t.maxDistance;n.horizontal=void 0!==o.horizontal?o.horizontal*e:void 0,n.vertical=void 0!==o.vertical?o.vertical*e:void 0,t.wobbleDistance=D(i.wobble.distance)*e,t.maxSpeed=i.move.gravity.maxSpeed*e}handleMotionChange(t){const i=this.container.actualOptions;if(t.matches){const t=i.motion;this.reduceFactor=t.disable?0:t.reduce.value?1/t.reduce.factor:1}else this.reduceFactor=1}}class Se{constructor(t){this.container=t}nextFrame(t){var i;try{const e=this.container;if(void 0!==e.lastFrameTime&&t<e.lastFrameTime+1e3/e.fpsLimit)return void e.draw(!1);null!==(i=e.lastFrameTime)&&void 0!==i||(e.lastFrameTime=t);const o=t-e.lastFrameTime,s={value:o,factor:60*o/1e3};if(e.lifeTime+=s.value,e.lastFrameTime=t,o>1e3)return void e.draw(!1);if(e.particles.draw(s),e.duration>0&&e.lifeTime>e.duration)return void e.destroy();e.getAnimationStatus()&&e.draw(!1)}catch(t){console.error("tsParticles error in animation loop",t)}}}class Te{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 Ee{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=z.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 i,e;if(void 0===t)return;const o=null!==(e=null!==(i=t.ids)&&void 0!==i?i:t.elementId)&&void 0!==e?e:t.el;void 0!==o&&(this.ids=o),void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type)}}class Re{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 Ae{constructor(){this.enable=!1,this.mode=[],this.parallax=new Re}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 De{constructor(){this.onClick=new Te,this.onDiv=new Ee,this.onHover=new Ae,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 i,e,o;if(void 0===t)return;this.onClick.load(null!==(i=t.onClick)&&void 0!==i?i:t.onclick);const s=null!==(e=t.onDiv)&&void 0!==e?e:t.ondiv;void 0!==s&&(s instanceof Array?this.onDiv=s.map((t=>{const i=new Ee;return i.load(t),i})):(this.onDiv=new Ee,this.onDiv.load(s))),this.onHover.load(null!==(o=t.onHover)&&void 0!==o?o:t.onhover),void 0!==t.resize&&(this.resize=t.resize)}}class Ie{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=>mi.create(void 0,t))):(this.color instanceof Array&&(this.color=new mi),this.color=mi.create(this.color,t.color))),void 0!==t.size&&(this.size=t.size))}}class Le extends Ie{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 Fe extends Ie{load(t){super.load(t),void 0!==t&&void 0!==t.divs&&(t.divs instanceof Array?this.divs=t.divs.map((t=>{const i=new Le;return i.load(t),i})):((this.divs instanceof Array||!this.divs)&&(this.divs=new Le),this.divs.load(t.divs)))}}class He{constructor(){this.opacity=.5}load(t){void 0!==t&&void 0!==t.opacity&&(this.opacity=t.opacity)}}class qe{constructor(){this.distance=80,this.links=new He,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 i,e;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(e=null!==(i=t.links)&&void 0!==i?i:t.lineLinked)&&void 0!==e?e:t.line_linked),void 0!==t.radius&&(this.radius=t.radius))}}class _e{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=mi.create(this.color,t.color)),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Ve{constructor(){this.distance=100,this.links=new _e}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 i,e;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(e=null!==(i=t.links)&&void 0!==i?i:t.lineLinked)&&void 0!==e?e:t.line_linked))}}class Be{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=t}load(t){var i;if(void 0===t)return;const e=null!==(i=t.quantity)&&void 0!==i?i:t.particles_nb;void 0!==e&&(this.quantity=e)}}class We{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 i;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 e=null!==(i=t.quantity)&&void 0!==i?i:t.particles_nb;void 0!==e&&(this.quantity=e)}}class Ge{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing=C.easeOutQuad}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 Ue extends Ge{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 Ne extends Ge{load(t){super.load(t),void 0!==(null==t?void 0:t.divs)&&(t.divs instanceof Array?this.divs=t.divs.map((t=>{const i=new Ue;return i.load(t),i})):((this.divs instanceof Array||!this.divs)&&(this.divs=new Ue),this.divs.load(t.divs)))}}class $e{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 je{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=ot({},t.particles)),void 0!==t.pauseOnStop&&(this.pauseOnStop=t.pauseOnStop))}}class Qe{constructor(){this.distance=200,this.duration=.4,this.easing=C.easeOutQuad,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 Je{constructor(){this.start=new mi,this.stop=new mi,this.start.value="#ffffff",this.stop.value="#000000"}load(t){void 0!==t&&(this.start=mi.create(this.start,t.start),this.stop=mi.create(this.stop,t.stop))}}class Xe{constructor(){this.gradient=new Je,this.radius=1e3}load(t){void 0!==t&&(this.gradient.load(t.gradient),void 0!==t.radius&&(this.radius=t.radius))}}class Ye{constructor(){this.color=new mi,this.color.value="#000000",this.length=2e3}load(t){void 0!==t&&(this.color=mi.create(this.color,t.color),void 0!==t.length&&(this.length=t.length))}}class Ze{constructor(){this.area=new Xe,this.shadow=new Ye}load(t){void 0!==t&&(this.area.load(t.area),this.shadow.load(t.shadow))}}class Ke{constructor(){this.distance=200}load(t){t&&void 0!==t.distance&&(this.distance=t.distance)}}class to{constructor(){this.attract=new Qe,this.bounce=new Ke,this.bubble=new Fe,this.connect=new qe,this.grab=new Ve,this.light=new Ze,this.push=new We,this.remove=new Be,this.repulse=new Ne,this.slow=new $e,this.trail=new je}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 io{constructor(){this.detectsOn=S.canvas,this.events=new De,this.modes=new to}get detect_on(){return this.detectsOn}set detect_on(t){this.detectsOn=t}load(t){var i,e,o;if(void 0===t)return;const s=null!==(i=t.detectsOn)&&void 0!==i?i:t.detect_on;void 0!==s&&(this.detectsOn=s),this.events.load(t.events),this.modes.load(t.modes),!0===(null===(o=null===(e=t.modes)||void 0===e?void 0:e.slow)||void 0===o?void 0:o.active)&&(this.events.onHover.mode instanceof Array?this.events.onHover.mode.indexOf(p.slow)<0&&this.events.onHover.mode.push(p.slow):this.events.onHover.mode!==p.slow&&(this.events.onHover.mode=[this.events.onHover.mode,p.slow]))}}class eo{constructor(){this.color=new mi,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=mi.create(this.color,t.color)),void 0!==t.opacity&&(this.opacity=t.opacity))}}class oo{constructor(){this.composite="destination-out",this.cover=new eo,this.enable=!1}load(t){if(void 0!==t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const i=t.cover,e="string"==typeof t.cover?{color:t.cover}:t.cover;this.cover.load(void 0!==i.color?i:{color:e})}void 0!==t.enable&&(this.enable=t.enable)}}}class so{constructor(){this.color=new mi,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=mi.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 no{constructor(){this.mode=m.any,this.value=!1}load(t){void 0!==t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class ao{constructor(){this.name="",this.default=new no}load(t){void 0!==t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=ot({},t.options)))}}class ro{constructor(){this.enable=!1,this.zIndex=-1}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}class lo{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 co{constructor(){this.disable=!1,this.reduce=new lo}load(t){t&&(void 0!==t.disable&&(this.disable=t.disable),this.reduce.load(t.reduce))}}class ho{load(t){var i,e;t&&(void 0!==t.position&&(this.position={x:null!==(i=t.position.x)&&void 0!==i?i:50,y:null!==(e=t.position.y)&&void 0!==e?e:50}),void 0!==t.options&&(this.options=ot({},t.options)))}}class uo{constructor(){this.maxWidth=1/0,this.options={}}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.options&&(this.options=ot({},t.options)))}}class po{constructor(){this.autoPlay=!0,this.background=new so,this.backgroundMask=new oo,this.fullScreen=new ro,this.detectRetina=!0,this.duration=0,this.fpsLimit=60,this.interactivity=new io,this.manualParticles=[],this.motion=new co,this.particles=new xe,this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],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 i,e,o;if(void 0===t)return;if(void 0!==t.preset)if(t.preset instanceof Array)for(const i of t.preset)this.importPreset(i);else this.importPreset(t.preset);void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay);const s=null!==(i=t.detectRetina)&&void 0!==i?i:t.retina_detect;void 0!==s&&(this.detectRetina=s),void 0!==t.duration&&(this.duration=t.duration);const n=null!==(e=t.fpsLimit)&&void 0!==e?e:t.fps_limit;if(void 0!==n&&(this.fpsLimit=n),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),this.fullScreen.load(null!==(o=t.fullScreen)&&void 0!==o?o:t.backgroundMode),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),void 0!==t.manualParticles&&(this.manualParticles=t.manualParticles.map((t=>{const i=new ho;return i.load(t),i}))),this.motion.load(t.motion),this.particles.load(t.particles),pi.loadOptions(this,t),void 0!==t.responsive)for(const i of t.responsive){const t=new uo;t.load(i),this.responsive.push(t)}if(this.responsive.sort(((t,i)=>t.maxWidth-i.maxWidth)),void 0!==t.themes)for(const i of t.themes){const t=new ao;t.load(i),this.themes.push(t)}}setTheme(t){if(t){const i=this.themes.find((i=>i.name===t));i&&this.load(i.options)}else{const t="undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)").matches;let i=this.themes.find((i=>i.default.value&&(i.default.mode===m.dark&&t||i.default.mode===m.light&&!t)));i||(i=this.themes.find((t=>t.default.value&&t.default.mode===m.any))),i&&this.load(i.options)}}importPreset(t){this.load(pi.getPreset(t))}setResponsive(t,i,e){var o;this.load(e),this.load(null===(o=this.responsive.find((e=>e.maxWidth*i>t)))||void 0===o?void 0:o.options)}}var vo=function(t,i,e,o){return new(e||(e=Promise))((function(s,n){function a(t){try{l(o.next(t))}catch(t){n(t)}}function r(t){try{l(o.throw(t))}catch(t){n(t)}}function l(t){var i;t.done?s(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(a,r)}l((o=o.apply(t,i||[])).next())}))};class fo{constructor(t,i,...e){this.id=t,this.fpsLimit=60,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.retina=new Oe(this),this.canvas=new yi(this),this.particles=new Ce(this),this.drawer=new Se(this),this.pathGenerator={generate:()=>{const t=T.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.bubble={},this.repulse={particles:[]},this.attract={particles:[]},this.plugins=new Map,this.drawers=new Map,this.density=1,this._options=new po,this.actualOptions=new po;for(const t of e)this._options.load(pi.getPreset(t));const o=pi.getSupportedShapes();for(const t of o){const i=pi.getShapeDrawer(t);i&&this.drawers.set(t,i)}this._options.load(this._sourceOptions),this.eventListeners=new si(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 i=this.paused||t;if(!this.firstStart||this.actualOptions.autoPlay){if(this.paused&&(this.paused=!1),i)for(const[,t]of this.plugins)t.play&&t.play();this.draw(i||!1)}else this.firstStart=!1}pause(){if(void 0!==this.drawAnimationFrame&&(J()(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 i=t;this.drawAnimationFrame=Q()((t=>{i&&(this.lastFrameTime=void 0,i=!1),this.drawer.nextFrame(t)}))}getAnimationStatus(){return!this.paused&&!this.pageHidden}setNoise(t,i,e){this.setPath(t,i,e)}setPath(t,i,e){t&&("function"==typeof t?(this.pathGenerator.generate=t,i&&(this.pathGenerator.init=i),e&&(this.pathGenerator.update=e)):(t.generate&&(this.pathGenerator.generate=t.generate),t.init&&(this.pathGenerator.init=t.init),t.update&&(this.pathGenerator.update=t.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,i,e){var o;return null===(o=this.canvas.element)||void 0===o?void 0:o.toBlob(t,null!=i?i:"image/png",e)}exportConfiguration(){return JSON.stringify(this.actualOptions,void 0,2)}refresh(){return this.stop(),this.start()}reset(){return this._options=new po,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.observe(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}}loadTheme(t){return vo(this,void 0,void 0,(function*(){this.currentTheme=t,yield this.refresh()}))}start(){return vo(this,void 0,void 0,(function*(){if(!this.started){yield 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?yield t.startAsync():void 0!==t.start&&t.start();this.play()}}))}addClickHandler(t){const i=this.interactivity.element;if(!i)return;const e=(i,e,o)=>{if(this.destroyed)return;const s=this.retina.pixelRatio,n={x:e.x*s,y:e.y*s},a=this.particles.quadTree.queryCircle(n,o*s);t(i,a)};let o=!1,s=!1;i.addEventListener("click",(t=>{if(this.destroyed)return;const i=t,o={x:i.offsetX||i.clientX,y:i.offsetY||i.clientY};e(t,o,1)})),i.addEventListener("touchstart",(()=>{this.destroyed||(o=!0,s=!1)})),i.addEventListener("touchmove",(()=>{this.destroyed||(s=!0)})),i.addEventListener("touchend",(t=>{var i,n,a;if(!this.destroyed){if(o&&!s){const o=t;let s=o.touches[o.touches.length-1];if(!s&&(s=o.changedTouches[o.changedTouches.length-1],!s))return;const r=null===(i=this.canvas.element)||void 0===i?void 0:i.getBoundingClientRect(),l={x:s.clientX-(null!==(n=null==r?void 0:r.left)&&void 0!==n?n:0),y:s.clientY-(null!==(a=null==r?void 0:r.top)&&void 0!==a?a:0)};e(t,l,Math.max(s.radiusX,s.radiusY))}o=!1,s=!1}})),i.addEventListener("touchcancel",(()=>{this.destroyed||(o=!1,s=!1)}))}init(){return vo(this,void 0,void 0,(function*(){this.actualOptions=new po,this.actualOptions.load(this._options),this.retina.init(),this.canvas.init(),this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options),this.actualOptions.setTheme(this.currentTheme),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this.duration=D(this.actualOptions.duration),this.lifeTime=0,this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:60;const t=pi.getAvailablePlugins(this);for(const[i,e]of t)this.plugins.set(i,e);for(const[,t]of this.drawers)t.init&&(yield t.init(this));for(const[,t]of this.plugins)t.init?t.init(this.actualOptions):void 0!==t.initAsync&&(yield t.initAsync(this.actualOptions));const i=this.actualOptions.particles.move.path;if(i.generator){const t=pi.getPathGenerator(i.generator);t&&(t.init&&(this.pathGenerator.init=t.init),t.generate&&(this.pathGenerator.generate=t.generate),t.update&&(this.pathGenerator.update=t.update))}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 i of t)i.target===this.interactivity.element&&(i.isIntersecting?this.play():this.pause())}}var yo=function(t,i,e,o){return new(e||(e=Promise))((function(s,n){function a(t){try{l(o.next(t))}catch(t){n(t)}}function r(t){try{l(o.throw(t))}catch(t){n(t)}}function l(t){var i;t.done?s(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(a,r)}l((o=o.apply(t,i||[])).next())}))};const mo=[];function bo(t){console.error(`Error tsParticles - fetch status: ${t}`),console.error("Error tsParticles - File config not found")}class go{static dom(){return mo}static domItem(t){const i=go.dom(),e=i[t];if(e&&!e.destroyed)return e;i.splice(t,1)}static load(t,i,e){return yo(this,void 0,void 0,(function*(){let o=document.getElementById(t);return o||(o=document.createElement("div"),o.id=t,document.append(o)),go.set(t,o,i,e)}))}static set(t,i,e,o){return yo(this,void 0,void 0,(function*(){const s=e instanceof Array?K(e,o):e,n=go.dom(),a=n.findIndex((i=>i.id===t));if(a>=0){const t=go.domItem(a);t&&!t.destroyed&&(t.destroy(),n.splice(a,1))}let r,l;if("canvas"===i.tagName.toLowerCase())r=i,l=!1;else{const t=i.getElementsByTagName("canvas");t.length?(r=t[0],r.className||(r.className=ht.canvasClass),l=!1):(l=!0,r=document.createElement("canvas"),r.className=ht.canvasClass,r.style.width="100%",r.style.height="100%",i.appendChild(r))}const c=new fo(t,s);return a>=0?n.splice(a,0,c):n.push(c),c.canvas.loadCanvas(r,l),yield c.start(),c}))}static loadJSON(t,i,e){return yo(this,void 0,void 0,(function*(){const o=i instanceof Array?K(i,e):i,s=yield fetch(o);if(s.ok)return go.load(t,yield s.json());bo(s.status)}))}static setJSON(t,i,e,o){return yo(this,void 0,void 0,(function*(){const s=e instanceof Array?K(e,o):e,n=yield fetch(s);if(n.ok){const e=yield n.json();return go.set(t,i,e)}bo(n.status)}))}static setOnClickHandler(t){const i=go.dom();if(0===i.length)throw new Error("Can only set click handlers after calling tsParticles.load() or tsParticles.loadJSON()");for(const e of i)e.addClickHandler(t)}}var wo,xo,ko=function(t,i,e,o){return new(e||(e=Promise))((function(s,n){function a(t){try{l(o.next(t))}catch(t){n(t)}}function r(t){try{l(o.throw(t))}catch(t){n(t)}}function l(t){var i;t.done?s(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(a,r)}l((o=o.apply(t,i||[])).next())}))},Po=function(t,i,e,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof i?t!==i||!s:!i.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,e):s?s.value=e:i.set(t,e),e},Mo=function(t,i,e,o){if("a"===e&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof i?t!==i||!o:!i.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?o:"a"===e?o.call(t):o?o.value:i.get(t)};class zo{constructor(){wo.set(this,void 0),Po(this,wo,!1,"f")}init(){Mo(this,wo,"f")||Po(this,wo,!0,"f")}loadFromArray(t,i,e){return ko(this,void 0,void 0,(function*(){return go.load(t,i,e)}))}load(t,i){return ko(this,void 0,void 0,(function*(){return go.load(t,i)}))}set(t,i,e){return ko(this,void 0,void 0,(function*(){return go.set(t,i,e)}))}loadJSON(t,i,e){return go.loadJSON(t,i,e)}setJSON(t,i,e,o){return ko(this,void 0,void 0,(function*(){return go.setJSON(t,i,e,o)}))}setOnClickHandler(t){go.setOnClickHandler(t)}dom(){return go.dom()}domItem(t){return go.domItem(t)}addShape(t,i,e,o,s){let n;n="function"==typeof i?{afterEffect:o,destroy:s,draw:i,init:e}:i,pi.addShapeDrawer(t,n)}addPreset(t,i,e=!1){pi.addPreset(t,i,e)}addPlugin(t){pi.addPlugin(t)}addPathGenerator(t,i){pi.addPathGenerator(t,i)}addInteractor(t,i){pi.addInteractor(t,i)}addParticleUpdater(t,i){pi.addParticleUpdater(t,i)}}wo=new WeakMap;class Co{constructor(t,i,e,o){var s,n,a;this.absorbers=t,this.container=i,this.initialPosition=o?T.create(o.x,o.y):void 0,this.options=e,this.dragging=!1,this.name=this.options.name,this.opacity=this.options.opacity,this.size=D(e.size.value)*i.retina.pixelRatio,this.mass=this.size*e.size.density*i.retina.reduceFactor;const r=e.size.limit;this.limit=void 0!==r?r*i.retina.pixelRatio*i.retina.reduceFactor:r;const l="string"==typeof e.color?{value:e.color}:e.color;this.color=null!==(s=vt(l))&&void 0!==s?s:{b:0,g:0,r:0},this.position=null!==(a=null===(n=this.initialPosition)||void 0===n?void 0:n.copy())&&void 0!==a?a:this.calcPosition()}attract(t){const i=this.container,e=this.options;if(e.draggable){const t=i.interactivity.mouse;if(t.clicking&&t.downPosition){_(this.position,t.downPosition)<=this.size&&(this.dragging=!0)}else this.dragging=!1;this.dragging&&t.position&&(this.position.x=t.position.x,this.position.y=t.position.y)}const o=t.getPosition(),{dx:s,dy:n,distance:a}=q(this.position,o),r=T.create(s,n);if(r.length=this.mass/Math.pow(a,2)*i.retina.reduceFactor,a<this.size+t.getRadius()){const o=.033*t.getRadius()*i.retina.pixelRatio;this.size>t.getRadius()&&a<this.size-t.getRadius()||void 0!==t.absorberOrbit&&t.absorberOrbit.length<0?e.destroy?t.destroy():(t.needsNewPosition=!0,this.updateParticlePosition(t,r)):(e.destroy&&(t.size.value-=o),this.updateParticlePosition(t,r)),(void 0===this.limit||this.size<this.limit)&&(this.size+=o),this.mass+=o*this.options.size.density*i.retina.reduceFactor}else this.updateParticlePosition(t,r)}resize(){const t=this.initialPosition;this.position=t&&tt(t,this.container.canvas.size)?t:this.calcPosition()}draw(t){t.translate(this.position.x,this.position.y),t.beginPath(),t.arc(0,0,this.size,0,2*Math.PI,!1),t.closePath(),t.fillStyle=Et(this.color,this.opacity),t.fill()}calcPosition(){var t,i;const e=this.container,o=this.options.position;return T.create((null!==(t=null==o?void 0:o.x)&&void 0!==t?t:100*Math.random())/100*e.canvas.size.width,(null!==(i=null==o?void 0:o.y)&&void 0!==i?i:100*Math.random())/100*e.canvas.size.height)}updateParticlePosition(t,i){var e;if(t.destroyed)return;const o=this.container,s=o.canvas.size;if(t.needsNewPosition){const i=t.getRadius();t.position.x=(s.width-2*i)*(.2*Math.random()-.1+1)+i,t.position.y=(s.height-2*i)*(.2*Math.random()-.1+1)+i,t.needsNewPosition=!1}if(this.options.orbits){if(void 0===t.absorberOrbit&&(t.absorberOrbit=T.create(0,0),t.absorberOrbit.length=_(t.getPosition(),this.position),t.absorberOrbit.angle=Math.random()*Math.PI*2),t.absorberOrbit.length<=this.size&&!this.options.destroy){const i=Math.min(s.width,s.height);t.absorberOrbit.length=i*(.2*Math.random()-.1+1)}void 0===t.absorberOrbitDirection&&(t.absorberOrbitDirection=t.velocity.x>=0?r.clockwise:r.counterClockwise);const n=t.absorberOrbit.length,a=t.absorberOrbit.angle,l=t.absorberOrbitDirection;t.velocity.x=0,t.velocity.y=0;const c={x:l===r.clockwise?Math.cos:Math.sin,y:l===r.clockwise?Math.sin:Math.cos};t.position.x=this.position.x+n*c.x(a),t.position.y=this.position.y+n*c.y(a),t.absorberOrbit.length-=i.length,t.absorberOrbit.angle+=(null!==(e=t.moveSpeed)&&void 0!==e?e:0)*o.retina.pixelRatio/100*o.retina.reduceFactor}else{const e=T.origin;e.length=i.length,e.angle=i.angle,t.velocity.addTo(e)}}}class Oo extends Mi{constructor(){super(),this.density=5,this.random.minimumValue=1,this.value=50}load(t){t&&(super.load(t),void 0!==t.density&&(this.density=t.density),void 0!==t.limit&&(this.limit=t.limit),void 0!==t.limit&&(this.limit=t.limit))}}class So{constructor(){this.color=new mi,this.color.value="#000000",this.draggable=!1,this.opacity=1,this.destroy=!0,this.orbits=!1,this.size=new Oo}load(t){void 0!==t&&(void 0!==t.color&&(this.color=mi.create(this.color,t.color)),void 0!==t.draggable&&(this.draggable=t.draggable),this.name=t.name,void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.position&&(this.position={x:t.position.x,y:t.position.y}),void 0!==t.size&&this.size.load(t.size),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.orbits&&(this.orbits=t.orbits))}}!function(t){t.absorber="absorber"}(xo||(xo={}));class To{constructor(t){this.container=t,this.array=[],this.absorbers=[],this.interactivityAbsorbers=[];const i=t;i.getAbsorber=t=>void 0===t||"number"==typeof t?this.array[t||0]:this.array.find((i=>i.name===t)),i.addAbsorber=(t,i)=>this.addAbsorber(t,i)}init(t){var i,e;if(!t)return;t.absorbers&&(t.absorbers instanceof Array?this.absorbers=t.absorbers.map((t=>{const i=new So;return i.load(t),i})):(this.absorbers instanceof Array&&(this.absorbers=new So),this.absorbers.load(t.absorbers)));const o=null===(e=null===(i=t.interactivity)||void 0===i?void 0:i.modes)||void 0===e?void 0:e.absorbers;if(o&&(o instanceof Array?this.interactivityAbsorbers=o.map((t=>{const i=new So;return i.load(t),i})):(this.interactivityAbsorbers instanceof Array&&(this.interactivityAbsorbers=new So),this.interactivityAbsorbers.load(o))),this.absorbers instanceof Array)for(const t of this.absorbers)this.addAbsorber(t);else this.addAbsorber(this.absorbers)}particleUpdate(t){for(const i of this.array)if(i.attract(t),t.destroyed)break}draw(t){for(const i of this.array)t.save(),i.draw(t),t.restore()}stop(){this.array=[]}resize(){for(const t of this.array)t.resize()}handleClickMode(t){const i=this.container,e=this.absorbers,o=this.interactivityAbsorbers;if(t===xo.absorber){let t;o instanceof Array?o.length>0&&(t=K(o)):t=o;const s=null!=t?t:e instanceof Array?K(e):e,n=i.interactivity.mouse.clickPosition;this.addAbsorber(s,n)}}addAbsorber(t,i){const e=new Co(this,this.container,t,i);return this.array.push(e),e}removeAbsorber(t){const i=this.array.indexOf(t);i>=0&&this.array.splice(i,1)}}class Eo{constructor(){this.id="absorbers"}getPlugin(t){return new To(t)}needsPlugin(t){var i,e,o;if(void 0===t)return!1;const s=t.absorbers;let n=!1;return s instanceof Array?s.length&&(n=!0):(void 0!==s||(null===(o=null===(e=null===(i=t.interactivity)||void 0===i?void 0:i.events)||void 0===e?void 0:e.onClick)||void 0===o?void 0:o.mode)&&X(xo.absorber,t.interactivity.events.onClick.mode))&&(n=!0),n}loadOptions(t,i){var e,o;if(!this.needsPlugin(t)&&!this.needsPlugin(i))return;const s=t;if(null==i?void 0:i.absorbers)if((null==i?void 0:i.absorbers)instanceof Array)s.absorbers=null==i?void 0:i.absorbers.map((t=>{const i=new So;return i.load(t),i}));else{let t=s.absorbers;void 0===(null==t?void 0:t.load)&&(s.absorbers=t=new So),t.load(null==i?void 0:i.absorbers)}const n=null===(o=null===(e=null==i?void 0:i.interactivity)||void 0===e?void 0:e.modes)||void 0===o?void 0:o.absorbers;if(n)if(n instanceof Array)s.interactivity.modes.absorbers=n.map((t=>{const i=new So;return i.load(t),i}));else{let t=s.interactivity.modes.absorbers;void 0===(null==t?void 0:t.load)&&(s.interactivity.modes.absorbers=t=new So),t.load(n)}}}class Ro{constructor(){this.mode=y.percent,this.height=0,this.width=0}load(t){void 0!==t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.height&&(this.height=t.height),void 0!==t.width&&(this.width=t.width))}}const Ao=new Map;class Do{static addShape(t,i){Do.getShape(t)||Ao.set(t,i)}static getShape(t){return Ao.get(t)}static getSupportedShapes(){return Ao.keys()}}var Io,Lo,Fo,Ho,qo,_o,Vo,Bo=function(t,i,e,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof i?t!==i||!s:!i.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,e):s?s.value=e:i.set(t,e),e},Wo=function(t,i,e,o){if("a"===e&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof i?t!==i||!o:!i.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?o:"a"===e?o.call(t):o?o.value:i.get(t)};class Go{constructor(t,i,e,o){var s,n,a,r,l,c,d;this.emitters=t,this.container=i,Io.set(this,void 0),Lo.set(this,void 0),this.currentDuration=0,this.currentEmitDelay=0,this.currentSpawnDelay=0,this.initialPosition=o,this.emitterOptions=ot({},e),this.spawnDelay=1e3*(null!==(s=this.emitterOptions.life.delay)&&void 0!==s?s:0)/this.container.retina.reduceFactor,this.position=null!==(n=this.initialPosition)&&void 0!==n?n:this.calcPosition(),this.name=e.name,this.shape=Do.getShape(e.shape),this.fill=e.fill,Bo(this,Io,!this.emitterOptions.life.wait,"f"),Bo(this,Lo,!1,"f");let h=ot({},this.emitterOptions.particles);null!=h||(h={}),null!==(a=h.move)&&void 0!==a||(h.move={}),null!==(r=(d=h.move).direction)&&void 0!==r||(d.direction=this.emitterOptions.direction),void 0!==this.emitterOptions.spawnColor&&(this.spawnColor=ft(this.emitterOptions.spawnColor)),this.paused=!this.emitterOptions.autoPlay,this.particlesOptions=h,this.size=null!==(l=this.emitterOptions.size)&&void 0!==l?l:(()=>{const t=new Ro;return t.load({height:0,mode:y.percent,width:0}),t})(),this.lifeCount=null!==(c=this.emitterOptions.life.count)&&void 0!==c?c:-1,this.immortal=this.lifeCount<=0,this.play()}externalPlay(){this.paused=!1,this.play()}externalPause(){this.paused=!0,this.pause()}play(){var t;if(!this.paused&&this.container.retina.reduceFactor&&(this.lifeCount>0||this.immortal||!this.emitterOptions.life.count)&&(Wo(this,Io,"f")||this.currentSpawnDelay>=(null!==(t=this.spawnDelay)&&void 0!==t?t:0))){if(void 0===this.emitDelay){const t=D(this.emitterOptions.rate.delay);this.emitDelay=1e3*t/this.container.retina.reduceFactor}(this.lifeCount>0||this.immortal)&&this.prepareToDie()}}pause(){this.paused||delete this.emitDelay}resize(){const t=this.initialPosition;this.position=t&&tt(t,this.container.canvas.size)?t:this.calcPosition()}update(t){var i,e,o;this.paused||(Wo(this,Io,"f")&&(Bo(this,Io,!1,"f"),this.currentSpawnDelay=null!==(i=this.spawnDelay)&&void 0!==i?i:0,this.currentEmitDelay=null!==(e=this.emitDelay)&&void 0!==e?e:0),Wo(this,Lo,"f")||(Bo(this,Lo,!0,"f"),this.emitParticles(this.emitterOptions.startCount)),void 0!==this.duration&&(this.currentDuration+=t.value,this.currentDuration>=this.duration&&(this.pause(),void 0!==this.spawnDelay&&delete this.spawnDelay,this.immortal||this.lifeCount--,this.lifeCount>0||this.immortal?(this.position=this.calcPosition(),this.spawnDelay=1e3*(null!==(o=this.emitterOptions.life.delay)&&void 0!==o?o:0)/this.container.retina.reduceFactor):this.destroy(),this.currentDuration-=this.duration,delete this.duration)),void 0!==this.spawnDelay&&(this.currentSpawnDelay+=t.value,this.currentSpawnDelay>=this.spawnDelay&&(this.play(),this.currentSpawnDelay-=this.currentSpawnDelay,delete this.spawnDelay)),void 0!==this.emitDelay&&(this.currentEmitDelay+=t.value,this.currentEmitDelay>=this.emitDelay&&(this.emit(),this.currentEmitDelay-=this.emitDelay)))}prepareToDie(){var t;if(this.paused)return;const i=null===(t=this.emitterOptions.life)||void 0===t?void 0:t.duration;this.container.retina.reduceFactor&&(this.lifeCount>0||this.immortal)&&void 0!==i&&i>0&&(this.duration=1e3*i)}destroy(){this.emitters.removeEmitter(this)}calcPosition(){var t,i;const e=this.container,o=this.emitterOptions.position;return{x:(null!==(t=null==o?void 0:o.x)&&void 0!==t?t:100*Math.random())/100*e.canvas.size.width,y:(null!==(i=null==o?void 0:o.y)&&void 0!==i?i:100*Math.random())/100*e.canvas.size.height}}emit(){if(this.paused)return;const t=D(this.emitterOptions.rate.quantity);this.emitParticles(t)}emitParticles(t){var i,e,o;const s=this.container,n=this.position,a={x:this.size.mode===y.percent?s.canvas.size.width*this.size.width/100:this.size.width,y:this.size.mode===y.percent?s.canvas.size.height*this.size.height/100:this.size.height};for(let r=0;r<t;r++){const t=ot({},this.particlesOptions);if(void 0!==this.spawnColor){const e=null===(i=this.emitterOptions.spawnColor)||void 0===i?void 0:i.animation;if(e){const t=e;if(t.enable)this.spawnColor.h=this.setColorAnimation(t,this.spawnColor.h,360);else{const t=e;this.spawnColor.h=this.setColorAnimation(t.h,this.spawnColor.h,360),this.spawnColor.s=this.setColorAnimation(t.s,this.spawnColor.s,100),this.spawnColor.l=this.setColorAnimation(t.l,this.spawnColor.l,100)}}t.color?t.color.value=this.spawnColor:t.color={value:this.spawnColor}}const r=null!==(o=null===(e=this.shape)||void 0===e?void 0:e.randomPosition(n,a,this.fill))&&void 0!==o?o:n;s.particles.addParticle(r,t)}}setColorAnimation(t,i,e){var o;const s=this.container;if(!t.enable)return i;const n=A(t.offset),a=1e3*D(this.emitterOptions.rate.delay)/s.retina.reduceFactor;return(i+(null!==(o=t.speed)&&void 0!==o?o:0)*s.fpsLimit/a+3.6*n)%e}}Io=new WeakMap,Lo=new WeakMap;class Uo{constructor(){this.quantity=1,this.delay=.1}load(t){void 0!==t&&(void 0!==t.quantity&&(this.quantity=F(t.quantity)),void 0!==t.delay&&(this.delay=F(t.delay)))}}class No{constructor(){this.wait=!1}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=t.delay),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.wait&&(this.wait=t.wait))}}!function(t){t.emitter="emitter"}(Fo||(Fo={})),function(t){t.circle="circle",t.square="square"}(Ho||(Ho={}));class $o{constructor(){this.autoPlay=!0,this.fill=!0,this.life=new No,this.rate=new Uo,this.shape=Ho.square,this.startCount=0}load(t){void 0!==t&&(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(void 0===this.size&&(this.size=new Ro),this.size.load(t.size)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.fill&&(this.fill=t.fill),this.life.load(t.life),this.name=t.name,void 0!==t.particles&&(this.particles=ot({},t.particles)),this.rate.load(t.rate),void 0!==t.shape&&(this.shape=t.shape),void 0!==t.position&&(this.position={x:t.position.x,y:t.position.y}),void 0!==t.spawnColor&&(void 0===this.spawnColor&&(this.spawnColor=new Ni),this.spawnColor.load(t.spawnColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}class jo{constructor(t){this.container=t,this.array=[],this.emitters=[],this.interactivityEmitters=[];const i=t;i.getEmitter=t=>void 0===t||"number"==typeof t?this.array[t||0]:this.array.find((i=>i.name===t)),i.addEmitter=(t,i)=>this.addEmitter(t,i),i.playEmitter=t=>{const e=i.getEmitter(t);e&&e.externalPlay()},i.pauseEmitter=t=>{const e=i.getEmitter(t);e&&e.externalPause()}}init(t){var i,e;if(!t)return;t.emitters&&(t.emitters instanceof Array?this.emitters=t.emitters.map((t=>{const i=new $o;return i.load(t),i})):(this.emitters instanceof Array&&(this.emitters=new $o),this.emitters.load(t.emitters)));const o=null===(e=null===(i=t.interactivity)||void 0===i?void 0:i.modes)||void 0===e?void 0:e.emitters;if(o&&(o instanceof Array?this.interactivityEmitters=o.map((t=>{const i=new $o;return i.load(t),i})):(this.interactivityEmitters instanceof Array&&(this.interactivityEmitters=new $o),this.interactivityEmitters.load(o))),this.emitters instanceof Array)for(const t of this.emitters)this.addEmitter(t);else this.addEmitter(this.emitters)}play(){for(const t of this.array)t.play()}pause(){for(const t of this.array)t.pause()}stop(){this.array=[]}update(t){for(const i of this.array)i.update(t)}handleClickMode(t){const i=this.container,e=this.emitters,o=this.interactivityEmitters;if(t===Fo.emitter){let t;o instanceof Array?o.length>0&&(t=K(o)):t=o;const s=null!=t?t:e instanceof Array?K(e):e,n=i.interactivity.mouse.clickPosition;this.addEmitter(ot({},s),n)}}resize(){for(const t of this.array)t.resize()}addEmitter(t,i){const e=new Go(this,this.container,t,i);return this.array.push(e),e}removeEmitter(t){const i=this.array.indexOf(t);i>=0&&this.array.splice(i,1)}}class Qo{randomPosition(t,i,e){const[o,s]=[i.x/2,i.y/2],n=((t,i)=>{const e=Math.random()/4,o=Math.atan(i/t*Math.tan(2*Math.PI*e)),s=Math.random();return s<.25?o:s<.5?Math.PI-o:s<.75?Math.PI+o:-o})(o,s),a=(d=n,(l=o)*(c=s)/Math.sqrt(Math.pow(c*Math.cos(d),2)+Math.pow(l*Math.sin(d),2))),r=e?a*Math.sqrt(Math.random()):a;var l,c,d;return{x:t.x+r*Math.cos(n),y:t.y+r*Math.sin(n)}}}function Jo(t,i){return t+i*(Math.random()-.5)}class Xo{randomPosition(t,i,e){if(e)return{x:Jo(t.x,i.x),y:Jo(t.y,i.y)};{const e=i.x/2,o=i.y/2,s=Math.floor(4*Math.random()),n=2*(Math.random()-.5);switch(s){case 0:return{x:t.x+n*e,y:t.y-o};case 1:return{x:t.x-e,y:t.y+n*o};case 2:return{x:t.x+n*e,y:t.y+o};case 3:default:return{x:t.x+e,y:t.y+n*o}}}}}class Yo{constructor(){this.id="emitters"}getPlugin(t){return new jo(t)}needsPlugin(t){var i,e,o;if(void 0===t)return!1;const s=t.emitters;return s instanceof Array&&!!s.length||void 0!==s||!!(null===(o=null===(e=null===(i=t.interactivity)||void 0===i?void 0:i.events)||void 0===e?void 0:e.onClick)||void 0===o?void 0:o.mode)&&X(Fo.emitter,t.interactivity.events.onClick.mode)}loadOptions(t,i){var e,o;if(!this.needsPlugin(t)&&!this.needsPlugin(i))return;const s=t;if(null==i?void 0:i.emitters)if((null==i?void 0:i.emitters)instanceof Array)s.emitters=null==i?void 0:i.emitters.map((t=>{const i=new $o;return i.load(t),i}));else{let t=s.emitters;void 0===(null==t?void 0:t.load)&&(s.emitters=t=new $o),t.load(null==i?void 0:i.emitters)}const n=null===(o=null===(e=null==i?void 0:i.interactivity)||void 0===e?void 0:e.modes)||void 0===o?void 0:o.emitters;if(n)if(n instanceof Array)s.interactivity.modes.emitters=n.map((t=>{const i=new $o;return i.load(t),i}));else{let t=s.interactivity.modes.emitters;void 0===(null==t?void 0:t.load)&&(s.interactivity.modes.emitters=t=new $o),t.load(n)}}}!function(t){t.equidistant="equidistant",t.onePerPoint="one-per-point",t.perPoint="per-point",t.randomLength="random-length",t.randomPoint="random-point"}(qo||(qo={})),function(t){t.path="path",t.radius="radius"}(_o||(_o={})),function(t){t.inline="inline",t.inside="inside",t.outside="outside",t.none="none"}(Vo||(Vo={}));class Zo{constructor(){this.color=new mi,this.width=.5,this.opacity=1}load(t){var i;void 0!==t&&(this.color=mi.create(this.color,t.color),"string"==typeof this.color.value&&(this.opacity=null!==(i=mt(this.color.value))&&void 0!==i?i:this.opacity),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.width&&(this.width=t.width))}}class Ko{constructor(){this.enable=!1,this.stroke=new Zo}get lineWidth(){return this.stroke.width}set lineWidth(t){this.stroke.width=t}get lineColor(){return this.stroke.color}set lineColor(t){this.stroke.color=mi.create(this.stroke.color,t)}load(t){var i;if(void 0!==t){void 0!==t.enable&&(this.enable=t.enable);const e=null!==(i=t.stroke)&&void 0!==i?i:{color:t.lineColor,width:t.lineWidth};this.stroke.load(e)}}}class ts{constructor(){this.radius=10,this.type=_o.path}load(t){void 0!==t&&(void 0!==t.radius&&(this.radius=t.radius),void 0!==t.type&&(this.type=t.type))}}class is{constructor(){this.arrangement=qo.onePerPoint}load(t){void 0!==t&&void 0!==t.arrangement&&(this.arrangement=t.arrangement)}}class es{constructor(){this.path=[],this.size={height:0,width:0}}load(t){void 0!==t&&(void 0!==t.path&&(this.path=t.path),void 0!==t.size&&(void 0!==t.size.width&&(this.size.width=t.size.width),void 0!==t.size.height&&(this.size.height=t.size.height)))}}class os{constructor(){this.draw=new Ko,this.enable=!1,this.inline=new is,this.move=new ts,this.scale=1,this.type=Vo.none}get inlineArrangement(){return this.inline.arrangement}set inlineArrangement(t){this.inline.arrangement=t}load(t){var i;if(void 0!==t){this.draw.load(t.draw);const e=null!==(i=t.inline)&&void 0!==i?i:{arrangement:t.inlineArrangement};void 0!==e&&this.inline.load(e),this.move.load(t.move),void 0!==t.scale&&(this.scale=t.scale),void 0!==t.type&&(this.type=t.type),void 0!==t.enable?this.enable=t.enable:this.enable=this.type!==Vo.none,void 0!==t.url&&(this.url=t.url),void 0!==t.data&&("string"==typeof t.data?this.data=t.data:(this.data=new es,this.data.load(t.data))),void 0!==t.position&&(this.position=ot({},t.position))}}}var ss=function(t,i,e,o){return new(e||(e=Promise))((function(s,n){function a(t){try{l(o.next(t))}catch(t){n(t)}}function r(t){try{l(o.throw(t))}catch(t){n(t)}}function l(t){var i;t.done?s(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(a,r)}l((o=o.apply(t,i||[])).next())}))};function ns(t,i,e){const o=vt(e.color);if(o){t.beginPath(),t.moveTo(i[0].x,i[0].y);for(const e of i)t.lineTo(e.x,e.y);t.closePath(),t.strokeStyle=Et(o),t.lineWidth=e.width,t.stroke()}}function as(t,i,e,o){t.translate(o.x,o.y);const s=vt(e.color);s&&(t.strokeStyle=Et(s,e.opacity),t.lineWidth=e.width,t.stroke(i))}function rs(t,i,e){const{dx:o,dy:s}=q(e,t),{dx:n,dy:a}=q(i,t),r=(o*n+s*a)/(Math.pow(n,2)+Math.pow(a,2));let l=t.x+n*r,c=t.y+a*r;return r<0?(l=t.x,c=t.y):r>1&&(l=i.x,c=i.y),{x:l,y:c,isOnSegment:r>=0&&r<=1}}function ls(t,i,e){const{dx:o,dy:s}=q(t,i),n=Math.atan2(s,o),a=Math.sin(n),r=-Math.cos(n),l=2*(e.x*a+e.y*r);e.x-=l*a,e.y-=l*r}class cs{constructor(t){this.container=t,this.dimension={height:0,width:0},this.path2DSupported=!!window.Path2D,this.options=new os,this.polygonMaskMoveRadius=this.options.move.radius*t.retina.pixelRatio}initAsync(t){return ss(this,void 0,void 0,(function*(){this.options.load(null==t?void 0:t.polygon);const i=this.options;this.polygonMaskMoveRadius=i.move.radius*this.container.retina.pixelRatio,i.enable&&(yield this.initRawData())}))}resize(){const t=this.container,i=this.options;i.enable&&i.type!==Vo.none&&(this.redrawTimeout&&clearTimeout(this.redrawTimeout),this.redrawTimeout=window.setTimeout((()=>ss(this,void 0,void 0,(function*(){yield this.initRawData(!0),t.particles.redraw()}))),250))}stop(){delete this.raw,delete this.paths}particlesInitialization(){const t=this.options;return!(!t.enable||t.type!==Vo.inline||t.inline.arrangement!==qo.onePerPoint&&t.inline.arrangement!==qo.perPoint)&&(this.drawPoints(),!0)}particlePosition(t){var i,e;if(this.options.enable&&(null!==(e=null===(i=this.raw)||void 0===i?void 0:i.length)&&void 0!==e?e:0)>0)return ot({},t||this.randomPoint())}particleBounce(t,i,e){return this.polygonBounce(t,i,e)}clickPositionValid(t){const i=this.options;return i.enable&&i.type!==Vo.none&&i.type!==Vo.inline&&this.checkInsidePolygon(t)}draw(t){var i;if(!(null===(i=this.paths)||void 0===i?void 0:i.length))return;const e=this.options,o=e.draw;if(!e.enable||!o.enable)return;const s=this.raw;for(const i of this.paths){const e=i.path2d,n=this.path2DSupported;t&&(n&&e&&this.offset?as(t,e,o.stroke,this.offset):s&&ns(t,s,o.stroke))}}polygonBounce(t,i,e){const o=this.options;if(!this.raw||!o.enable||e!==l.top)return!1;if(o.type===Vo.inside||o.type===Vo.outside){let i,e,o;const s=t.getPosition(),n=t.getRadius();for(let a=0,r=this.raw.length-1;a<this.raw.length;r=a++){const l=this.raw[a],c=this.raw[r];i=rs(l,c,s);const d=q(s,i);if([e,o]=[d.dx,d.dy],d.distance<n)return ls(l,c,t.velocity),!0}if(i&&void 0!==e&&void 0!==o&&!this.checkInsidePolygon(s)){const e={x:1,y:1};return t.position.x>=i.x&&(e.x=-1),t.position.y>=i.y&&(e.y=-1),t.position.x=i.x+2*n*e.x,t.position.y=i.y+2*n*e.y,t.velocity.mult(-1),!0}}else if(o.type===Vo.inline&&t.initialPosition){if(_(t.initialPosition,t.getPosition())>this.polygonMaskMoveRadius)return t.velocity.x=t.velocity.y/2-t.velocity.x,t.velocity.y=t.velocity.x/2-t.velocity.y,!0}return!1}checkInsidePolygon(t){var i,e;const o=this.container,s=this.options;if(!s.enable||s.type===Vo.none||s.type===Vo.inline)return!0;if(!this.raw)throw new Error(ht.noPolygonFound);const n=o.canvas.size,a=null!==(i=null==t?void 0:t.x)&&void 0!==i?i:Math.random()*n.width,r=null!==(e=null==t?void 0:t.y)&&void 0!==e?e:Math.random()*n.height;let l=!1;for(let t=0,i=this.raw.length-1;t<this.raw.length;i=t++){const e=this.raw[t],o=this.raw[i];e.y>r!=o.y>r&&a<(o.x-e.x)*(r-e.y)/(o.y-e.y)+e.x&&(l=!l)}return s.type===Vo.inside?l:s.type===Vo.outside&&!l}parseSvgPath(t,i){var e,o,s;const n=null!=i&&i;if(void 0!==this.paths&&!n)return this.raw;const a=this.container,r=this.options,l=(new DOMParser).parseFromString(t,"image/svg+xml"),c=l.getElementsByTagName("svg")[0];let d=c.getElementsByTagName("path");d.length||(d=l.getElementsByTagName("path")),this.paths=[];for(let t=0;t<d.length;t++){const i=d.item(t);i&&this.paths.push({element:i,length:i.getTotalLength()})}const h=a.retina.pixelRatio,u=r.scale/h;this.dimension.width=parseFloat(null!==(e=c.getAttribute("width"))&&void 0!==e?e:"0")*u,this.dimension.height=parseFloat(null!==(o=c.getAttribute("height"))&&void 0!==o?o:"0")*u;const p=null!==(s=r.position)&&void 0!==s?s:{x:50,y:50};return this.offset={x:a.canvas.size.width*p.x/(100*h)-this.dimension.width/2,y:a.canvas.size.height*p.y/(100*h)-this.dimension.height/2},function(t,i,e){const o=[];for(const s of t){const t=s.element.pathSegList,n=t.numberOfItems,a={x:0,y:0};for(let s=0;s<n;s++){const n=t.getItem(s),r=window.SVGPathSeg;switch(n.pathSegType){case r.PATHSEG_MOVETO_ABS:case r.PATHSEG_LINETO_ABS:case r.PATHSEG_CURVETO_CUBIC_ABS:case r.PATHSEG_CURVETO_QUADRATIC_ABS:case r.PATHSEG_ARC_ABS:case r.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:case r.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:{const t=n;a.x=t.x,a.y=t.y;break}case r.PATHSEG_LINETO_HORIZONTAL_ABS:a.x=n.x;break;case r.PATHSEG_LINETO_VERTICAL_ABS:a.y=n.y;break;case r.PATHSEG_LINETO_REL:case r.PATHSEG_MOVETO_REL:case r.PATHSEG_CURVETO_CUBIC_REL:case r.PATHSEG_CURVETO_QUADRATIC_REL:case r.PATHSEG_ARC_REL:case r.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:case r.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:{const t=n;a.x+=t.x,a.y+=t.y;break}case r.PATHSEG_LINETO_HORIZONTAL_REL:a.x+=n.x;break;case r.PATHSEG_LINETO_VERTICAL_REL:a.y+=n.y;break;case r.PATHSEG_UNKNOWN:case r.PATHSEG_CLOSEPATH:continue}o.push({x:a.x*i+e.x,y:a.y*i+e.y})}}return o}(this.paths,u,this.offset)}downloadSvgPath(t,i){return ss(this,void 0,void 0,(function*(){const e=this.options,o=t||e.url,s=null!=i&&i;if(!o||void 0!==this.paths&&!s)return this.raw;const n=yield fetch(o);if(!n.ok)throw new Error("tsParticles Error - Error occurred during polygon mask download");return this.parseSvgPath(yield n.text(),i)}))}drawPoints(){if(this.raw)for(const t of this.raw)this.container.particles.addParticle({x:t.x,y:t.y})}randomPoint(){const t=this.container,i=this.options;let e;if(i.type===Vo.inline)switch(i.inline.arrangement){case qo.randomPoint:e=this.getRandomPoint();break;case qo.randomLength:e=this.getRandomPointByLength();break;case qo.equidistant:e=this.getEquidistantPointByIndex(t.particles.count);break;case qo.onePerPoint:case qo.perPoint:default:e=this.getPointByIndex(t.particles.count)}else e={x:Math.random()*t.canvas.size.width,y:Math.random()*t.canvas.size.height};return this.checkInsidePolygon(e)?e:this.randomPoint()}getRandomPoint(){if(!this.raw||!this.raw.length)throw new Error(ht.noPolygonDataLoaded);const t=K(this.raw);return{x:t.x,y:t.y}}getRandomPointByLength(){var t,i,e;const o=this.options;if(!this.raw||!this.raw.length||!(null===(t=this.paths)||void 0===t?void 0:t.length))throw new Error(ht.noPolygonDataLoaded);const s=K(this.paths),n=Math.floor(Math.random()*s.length)+1,a=s.element.getPointAtLength(n);return{x:a.x*o.scale+((null===(i=this.offset)||void 0===i?void 0:i.x)||0),y:a.y*o.scale+((null===(e=this.offset)||void 0===e?void 0:e.y)||0)}}getEquidistantPointByIndex(t){var i,e,o,s,n,a,r;const l=this.container.actualOptions,c=this.options;if(!this.raw||!this.raw.length||!(null===(i=this.paths)||void 0===i?void 0:i.length))throw new Error(ht.noPolygonDataLoaded);let d,h=0;const u=this.paths.reduce(((t,i)=>t+i.length),0)/l.particles.number.value;for(const i of this.paths){const e=u*t-h;if(e<=i.length){d=i.element.getPointAtLength(e);break}h+=i.length}return{x:(null!==(e=null==d?void 0:d.x)&&void 0!==e?e:0)*c.scale+(null!==(s=null===(o=this.offset)||void 0===o?void 0:o.x)&&void 0!==s?s:0),y:(null!==(n=null==d?void 0:d.y)&&void 0!==n?n:0)*c.scale+(null!==(r=null===(a=this.offset)||void 0===a?void 0:a.y)&&void 0!==r?r:0)}}getPointByIndex(t){if(!this.raw||!this.raw.length)throw new Error(ht.noPolygonDataLoaded);const i=this.raw[t%this.raw.length];return{x:i.x,y:i.y}}createPath2D(){var t,i;const e=this.options;if(this.path2DSupported&&(null===(t=this.paths)||void 0===t?void 0:t.length))for(const t of this.paths){const o=null===(i=t.element)||void 0===i?void 0:i.getAttribute("d");if(o){const i=new Path2D(o),s=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGMatrix(),n=new Path2D,a=s.scale(e.scale);n.addPath?(n.addPath(i,a),t.path2d=n):delete t.path2d}else delete t.path2d;!t.path2d&&this.raw&&(t.path2d=new Path2D,t.path2d.moveTo(this.raw[0].x,this.raw[0].y),this.raw.forEach(((i,e)=>{var o;e>0&&(null===(o=t.path2d)||void 0===o||o.lineTo(i.x,i.y))})),t.path2d.closePath())}}initRawData(t){return ss(this,void 0,void 0,(function*(){const i=this.options;if(i.url)this.raw=yield this.downloadSvgPath(i.url,t);else if(i.data){const e=i.data;let o;if("string"!=typeof e){const t=e.path instanceof Array?e.path.map((t=>`<path d="${t}" />`)).join(""):`<path d="${e.path}" />`;o=`<svg ${'xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"'} width="${e.size.width}" height="${e.size.height}">${t}</svg>`}else o=e;this.raw=this.parseSvgPath(o,t)}this.createPath2D()}))}}class ds{constructor(){this.id="polygonMask"}getPlugin(t){return new cs(t)}needsPlugin(t){var i,e,o;return null!==(e=null===(i=null==t?void 0:t.polygon)||void 0===i?void 0:i.enable)&&void 0!==e?e:void 0!==(null===(o=null==t?void 0:t.polygon)||void 0===o?void 0:o.type)&&t.polygon.type!==Vo.none}loadOptions(t,i){if(!this.needsPlugin(i))return;const e=t;let o=e.polygon;void 0===(null==o?void 0:o.load)&&(e.polygon=o=new os),o.load(null==i?void 0:i.polygon)}}class hs{getSidesCount(){return 12}draw(t,i,e){t.arc(0,0,e,0,2*Math.PI,!1)}}var us=function(t,i,e,o){return new(e||(e=Promise))((function(s,n){function a(t){try{l(o.next(t))}catch(t){n(t)}}function r(t){try{l(o.throw(t))}catch(t){n(t)}}function l(t){var i;t.done?s(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(a,r)}l((o=o.apply(t,i||[])).next())}))};function ps(t){return new Promise(((i,e)=>{if(!t)return void e("Error tsParticles - No image.src");const o={source:t,type:t.substr(t.length-3)},s=new Image;s.addEventListener("load",(()=>{o.element=s,i(o)})),s.addEventListener("error",(()=>{e(`Error tsParticles - loading image: ${t}`)})),s.src=t}))}function vs(t){return us(this,void 0,void 0,(function*(){if(!t)throw new Error("Error tsParticles - No image.src");const i={source:t,type:t.substr(t.length-3)};if("svg"!==i.type)return ps(t);const e=yield fetch(i.source);if(!e.ok)throw new Error("Error tsParticles - Image not found");return i.svgData=yield e.text(),i}))}var fs,ys=function(t,i,e,o){return new(e||(e=Promise))((function(s,n){function a(t){try{l(o.next(t))}catch(t){n(t)}}function r(t){try{l(o.throw(t))}catch(t){n(t)}}function l(t){var i;t.done?s(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(a,r)}l((o=o.apply(t,i||[])).next())}))},ms=function(t,i,e,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof i?t!==i||!s:!i.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,e):s?s.value=e:i.set(t,e),e},bs=function(t,i,e,o){if("a"===e&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof i?t!==i||!o:!i.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?o:"a"===e?o.call(t):o?o.value:i.get(t)};class gs{constructor(){fs.set(this,void 0),ms(this,fs,[],"f")}getSidesCount(){return 12}getImages(t){const i=bs(this,fs,"f").find((i=>i.id===t.id));return i||(bs(this,fs,"f").push({id:t.id,images:[]}),this.getImages(t))}addImage(t,i){const e=this.getImages(t);null==e||e.images.push(i)}init(t){return ys(this,void 0,void 0,(function*(){yield this.loadImagesFromParticlesOptions(t,t.actualOptions.particles),yield this.loadImagesFromParticlesOptions(t,t.actualOptions.interactivity.modes.trail.particles);for(const i of t.actualOptions.manualParticles)yield this.loadImagesFromParticlesOptions(t,i.options);const i=t.actualOptions;if(i.emitters)if(i.emitters instanceof Array)for(const e of i.emitters)yield this.loadImagesFromParticlesOptions(t,e.particles);else yield this.loadImagesFromParticlesOptions(t,i.emitters.particles);const e=i.interactivity.modes.emitters;if(e)if(e instanceof Array)for(const i of e)yield this.loadImagesFromParticlesOptions(t,i.particles);else yield this.loadImagesFromParticlesOptions(t,e.particles)}))}destroy(){ms(this,fs,[],"f")}loadImagesFromParticlesOptions(t,i){var e,o,s;return ys(this,void 0,void 0,(function*(){const n=null==i?void 0:i.shape;if(!(null==n?void 0:n.type)||!n.options||!X(P.image,n.type)&&!X(P.images,n.type))return;const a=bs(this,fs,"f").findIndex((i=>i.id===t.id));a>=0&&bs(this,fs,"f").splice(a,1);const r=null!==(e=n.options[P.images])&&void 0!==e?e:n.options[P.image];if(r instanceof Array)for(const i of r)yield this.loadImageShape(t,i);else yield this.loadImageShape(t,r);if(null==i?void 0:i.groups)for(const e in i.groups){const o=i.groups[e];yield this.loadImagesFromParticlesOptions(t,o)}(null===(s=null===(o=null==i?void 0:i.destroy)||void 0===o?void 0:o.split)||void 0===s?void 0:s.particles)&&(yield this.loadImagesFromParticlesOptions(t,null==i?void 0:i.destroy.split.particles))}))}loadImageShape(t,i){return ys(this,void 0,void 0,(function*(){try{const e=i.replaceColor?vs:ps,o=yield e(i.src);o&&this.addImage(t,o)}catch(t){console.warn(`tsParticles error - ${i.src} not found`)}}))}draw(t,i,e,o){var s,n;if(!t)return;const a=i.image,r=null===(s=null==a?void 0:a.data)||void 0===s?void 0:s.element;if(!r)return;const l=null!==(n=null==a?void 0:a.ratio)&&void 0!==n?n:1,c={x:-e,y:-e};(null==a?void 0:a.data.svgData)&&(null==a?void 0:a.replaceColor)||(t.globalAlpha=o),t.drawImage(r,c.x,c.y,2*e,2*e/l),(null==a?void 0:a.data.svgData)&&(null==a?void 0:a.replaceColor)||(t.globalAlpha=1)}loadShape(t){var i,e,o,s,n;if("image"!==t.shape&&"images"!==t.shape)return;const a=this.getImages(t.container).images,r=t.shapeData,l=null!==(i=a.find((t=>t.source===r.src)))&&void 0!==i?i:a[0],c=t.getFillColor();let d;if(!l)return;if(void 0!==l.svgData&&r.replaceColor&&c){const i=function(t,i,e){const{svgData:o}=t;if(!o)return"";if(o.includes("fill")){const t=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;return o.replace(t,(()=>Rt(i,e)))}const s=o.indexOf(">");return`${o.substring(0,s)} fill="${Rt(i,e)}"${o.substring(s)}`}(l,c,t.opacity.value),o=new Blob([i],{type:"image/svg+xml"}),s=URL||window.URL||window.webkitURL||window,n=s.createObjectURL(o),a=new Image;d={data:Object.assign(Object.assign({},l),{svgData:i}),ratio:r.width/r.height,replaceColor:null!==(e=r.replaceColor)&&void 0!==e?e:r.replace_color,source:r.src},a.addEventListener("load",(()=>{const i=t.image;i&&(i.loaded=!0,l.element=a),s.revokeObjectURL(n)})),a.addEventListener("error",(()=>{s.revokeObjectURL(n),ps(r.src).then((i=>{const e=t.image;e&&(l.element=null==i?void 0:i.element,e.loaded=!0)}))})),a.src=n}else d={data:l,loaded:!0,ratio:r.width/r.height,replaceColor:null!==(o=r.replaceColor)&&void 0!==o?o:r.replace_color,source:r.src};d.ratio||(d.ratio=1);const h={image:d,fill:null!==(s=r.fill)&&void 0!==s?s:t.fill,close:null!==(n=r.close)&&void 0!==n?n:t.close};t.image=h.image,t.fill=h.fill,t.close=h.close}}fs=new WeakMap;class ws{getSidesCount(){return 1}draw(t,i,e){t.moveTo(-e/2,0),t.lineTo(e/2,0)}}class xs{getSidesCount(t){var i,e;const o=t.shapeData;return null!==(e=null!==(i=null==o?void 0:o.sides)&&void 0!==i?i:null==o?void 0:o.nb_sides)&&void 0!==e?e:5}draw(t,i,e){const o=this.getCenter(i,e),s=this.getSidesData(i,e),n=s.count.numerator*s.count.denominator,a=s.count.numerator/s.count.denominator,r=180*(a-2)/a,l=Math.PI-Math.PI*r/180;if(t){t.beginPath(),t.translate(o.x,o.y),t.moveTo(0,0);for(let i=0;i<n;i++)t.lineTo(s.length,0),t.translate(s.length,0),t.rotate(l)}}}class ks extends xs{getSidesData(t,i){var e,o;const s=t.shapeData,n=null!==(o=null!==(e=null==s?void 0:s.sides)&&void 0!==e?e:null==s?void 0:s.nb_sides)&&void 0!==o?o:5;return{count:{denominator:1,numerator:n},length:2.66*i/(n/3)}}getCenter(t,i){return{x:-i/(this.getSidesCount(t)/3.5),y:-i/.76}}}class Ps extends xs{getSidesCount(){return 3}getSidesData(t,i){return{count:{denominator:2,numerator:3},length:2*i}}getCenter(t,i){return{x:-i,y:i/1.66}}}function Ms(t){!function(t){t.addShape("polygon",new ks)}(t),function(t){t.addShape("triangle",new Ps)}(t)}const zs=Math.sqrt(2);class Cs{getSidesCount(){return 4}draw(t,i,e){t.rect(-e/zs,-e/zs,2*e/zs,2*e/zs)}}class Os{getSidesCount(t){var i,e;const o=t.shapeData;return null!==(e=null!==(i=null==o?void 0:o.sides)&&void 0!==i?i:null==o?void 0:o.nb_sides)&&void 0!==e?e:5}draw(t,i,e){var o;const s=i.shapeData,n=this.getSidesCount(i),a=null!==(o=null==s?void 0:s.inset)&&void 0!==o?o:2;t.moveTo(0,0-e);for(let i=0;i<n;i++)t.rotate(Math.PI/n),t.lineTo(0,0-e*a),t.rotate(Math.PI/n),t.lineTo(0,0-e)}}var Ss=function(t,i,e,o){return new(e||(e=Promise))((function(s,n){function a(t){try{l(o.next(t))}catch(t){n(t)}}function r(t){try{l(o.throw(t))}catch(t){n(t)}}function l(t){var i;t.done?s(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(a,r)}l((o=o.apply(t,i||[])).next())}))};const Ts=["text","character","char"];class Es{getSidesCount(){return 12}init(t){return Ss(this,void 0,void 0,(function*(){const i=t.actualOptions;if(Ts.find((t=>X(t,i.particles.shape.type)))){const t=Ts.map((t=>i.particles.shape.options[t])).find((t=>!!t));if(t instanceof Array){const i=[];for(const e of t)i.push(Y(e));yield Promise.allSettled(i)}else void 0!==t&&(yield Y(t))}}))}draw(t,i,e,o){var s,n,a;const r=i.shapeData;if(void 0===r)return;const l=r.value;if(void 0===l)return;const c=i;void 0===c.text&&(c.text=l instanceof Array?K(l,i.randomIndexData):l);const d=c.text,h=null!==(s=r.style)&&void 0!==s?s:"",u=null!==(n=r.weight)&&void 0!==n?n:"400",p=2*Math.round(e),v=null!==(a=r.font)&&void 0!==a?a:"Verdana",f=i.fill,y=d.length*e/2;t.font=`${h} ${u} ${p}px "${v}"`;const m={x:-y,y:e/2};t.globalAlpha=o,f?t.fillText(d,m.x,m.y):t.strokeText(d,m.x,m.y),t.globalAlpha=1}}class Rs{isEnabled(t){const i=t.options.rotate,e=i.animation;return!t.destroyed&&!t.spawning&&!i.path&&e.enable}update(t,i){this.isEnabled(t)&&function(t,i){var e;const o=t.options.rotate.animation,s=(null!==(e=t.rotate.velocity)&&void 0!==e?e:0)*i.factor,n=2*Math.PI;if(o.enable)switch(t.rotate.status){case b.increasing:t.rotate.value+=s,t.rotate.value>n&&(t.rotate.value-=n);break;case b.decreasing:default:t.rotate.value-=s,t.rotate.value<0&&(t.rotate.value+=n)}}(t,i)}}function As(t,i,e,o,s){var n;const a=i;if(!a||!e.enable)return;const r=A(e.offset),l=(null!==(n=i.velocity)&&void 0!==n?n:0)*t.factor+3.6*r;s&&a.status!==b.increasing?(a.value-=l,a.value<0&&(a.status=b.increasing,a.value+=a.value)):(a.value+=l,s&&a.value>o&&(a.status=b.decreasing,a.value-=a.value%o)),a.value>o&&(a.value%=o)}class Ds{isEnabled(t){var i,e,o;const s=t.options.color.animation;return!t.destroyed&&!t.spawning&&(void 0!==(null===(i=t.color)||void 0===i?void 0:i.h.value)&&s.h.enable||void 0!==(null===(e=t.color)||void 0===e?void 0:e.s.value)&&s.s.enable||void 0!==(null===(o=t.color)||void 0===o?void 0:o.l.value)&&s.l.enable)}update(t,i){!function(t,i){var e,o,s;const n=t.options.color.animation;void 0!==(null===(e=t.color)||void 0===e?void 0:e.h)&&As(i,t.color.h,n.h,360,!1),void 0!==(null===(o=t.color)||void 0===o?void 0:o.s)&&As(i,t.color.s,n.s,100,!0),void 0!==(null===(s=t.color)||void 0===s?void 0:s.l)&&As(i,t.color.l,n.l,100,!0)}(t,i)}}class Is{constructor(t){this.container=t}isEnabled(t){return!t.destroyed}update(t,i){if(!this.isEnabled(t))return;const e=t.life;let o=!1;if(t.spawning){if(e.delayTime+=i.value,!(e.delayTime>=t.life.delay))return;o=!0,t.spawning=!1,e.delayTime=0,e.time=0}if(-1===e.duration)return;if(t.spawning)return;if(o?e.time=0:e.time+=i.value,e.time<e.duration)return;if(e.time=0,t.life.count>0&&t.life.count--,0===t.life.count)return void t.destroy();const s=this.container.canvas.size,n=F(0,s.width),a=F(0,s.width);t.position.x=A(n),t.position.y=A(a),t.spawning=!0,e.delayTime=0,e.time=0,t.reset();const r=t.options.life;e.delay=1e3*D(r.delay.value),e.duration=1e3*D(r.duration.value)}}function Ls(t,i){var e,o,s,n,a;const r=t.opacity.min,l=t.opacity.max;if(!t.destroyed&&t.opacity.enable&&((null!==(e=t.opacity.maxLoops)&&void 0!==e?e:0)<=0||(null!==(o=t.opacity.loops)&&void 0!==o?o:0)<(null!==(s=t.opacity.maxLoops)&&void 0!==s?s:0))){switch(t.opacity.status){case b.increasing:t.opacity.value>=l?(t.opacity.status=b.decreasing,t.opacity.loops||(t.opacity.loops=0),t.opacity.loops++):t.opacity.value+=(null!==(n=t.opacity.velocity)&&void 0!==n?n:0)*i.factor;break;case b.decreasing:t.opacity.value<=r?(t.opacity.status=b.increasing,t.opacity.loops||(t.opacity.loops=0),t.opacity.loops++):t.opacity.value-=(null!==(a=t.opacity.velocity)&&void 0!==a?a:0)*i.factor}!function(t,i,e,o){switch(t.options.opacity.animation.destroy){case w.max:i>=o&&t.destroy();break;case w.min:i<=e&&t.destroy()}}(t,t.opacity.value,r,l),t.destroyed||(t.opacity.value=E(t.opacity.value,r,l))}}class Fs{isEnabled(t){var i,e,o;return!t.destroyed&&!t.spawning&&t.opacity.enable&&((null!==(i=t.opacity.maxLoops)&&void 0!==i?i:0)<=0||(null!==(e=t.opacity.loops)&&void 0!==e?e:0)<(null!==(o=t.opacity.maxLoops)&&void 0!==o?o:0))}update(t,i){this.isEnabled(t)&&Ls(t,i)}}function Hs(t,i){var e,o,s,n;const a=(null!==(e=t.size.velocity)&&void 0!==e?e:0)*i.factor,r=t.size.min,l=t.size.max;if(!t.destroyed&&t.size.enable&&((null!==(o=t.size.loops)&&void 0!==o?o:0)<=0||(null!==(s=t.size.loops)&&void 0!==s?s:0)<(null!==(n=t.size.maxLoops)&&void 0!==n?n:0))){switch(t.size.status){case b.increasing:t.size.value>=l?(t.size.status=b.decreasing,t.size.loops||(t.size.loops=0),t.size.loops++):t.size.value+=a;break;case b.decreasing:t.size.value<=r?(t.size.status=b.increasing,t.size.loops||(t.size.loops=0),t.size.loops++):t.size.value-=a}!function(t,i,e,o){switch(t.options.size.animation.destroy){case w.max:i>=o&&t.destroy();break;case w.min:i<=e&&t.destroy()}}(t,t.size.value,r,l),t.destroyed||(t.size.value=E(t.size.value,r,l))}}class qs{isEnabled(t){var i,e,o;return!t.destroyed&&!t.spawning&&t.size.enable&&((null!==(i=t.size.loops)&&void 0!==i?i:0)<=0||(null!==(e=t.size.loops)&&void 0!==e?e:0)<(null!==(o=t.size.maxLoops)&&void 0!==o?o:0))}update(t,i){this.isEnabled(t)&&Hs(t,i)}}function _s(t,i,e,o,s){var n;const a=i;if(!a||!a.enable)return;const r=A(e.offset),l=(null!==(n=i.velocity)&&void 0!==n?n:0)*t.factor+3.6*r;s&&a.status!==b.increasing?(a.value-=l,a.value<0&&(a.status=b.increasing,a.value+=a.value)):(a.value+=l,s&&a.value>o&&(a.status=b.decreasing,a.value-=a.value%o)),a.value>o&&(a.value%=o)}class Vs{isEnabled(t){var i,e,o;const s=t.stroke.color;return!t.destroyed&&!t.spawning&&void 0!==s&&(void 0!==(null===(i=t.strokeColor)||void 0===i?void 0:i.h.value)&&s.animation.h.enable||void 0!==(null===(e=t.strokeColor)||void 0===e?void 0:e.s.value)&&s.animation.s.enable||void 0!==(null===(o=t.strokeColor)||void 0===o?void 0:o.l.value)&&s.animation.l.enable)}update(t,i){this.isEnabled(t)&&function(t,i){var e,o,s,n,a,r,l,c,d;if(!t.stroke.color)return;const h=t.stroke.color.animation,u=null!==(o=null===(e=t.strokeColor)||void 0===e?void 0:e.h)&&void 0!==o?o:null===(s=t.color)||void 0===s?void 0:s.h;u&&_s(i,u,h.h,360,!1);const p=null!==(a=null===(n=t.strokeColor)||void 0===n?void 0:n.s)&&void 0!==a?a:null===(r=t.color)||void 0===r?void 0:r.s;p&&_s(i,p,h.s,100,!0);const v=null!==(c=null===(l=t.strokeColor)||void 0===l?void 0:l.l)&&void 0!==c?c:null===(d=t.color)||void 0===d?void 0:d.l;v&&_s(i,v,h.l,100,!0)}(t,i)}}class Bs{constructor(t){this.container=t}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,i){var e,o,s,n;const a=t.options.move.outModes;this.updateOutMode(t,i,null!==(e=a.bottom)&&void 0!==e?e:a.default,l.bottom),this.updateOutMode(t,i,null!==(o=a.left)&&void 0!==o?o:a.default,l.left),this.updateOutMode(t,i,null!==(s=a.right)&&void 0!==s?s:a.default,l.right),this.updateOutMode(t,i,null!==(n=a.top)&&void 0!==n?n:a.default,l.top)}updateOutMode(t,i,e,o){switch(e){case f.bounce:case f.bounceVertical:case f.bounceHorizontal:case"bounceVertical":case"bounceHorizontal":case f.split:this.bounce(t,i,o,e);break;case f.destroy:this.destroy(t,o);break;case f.out:this.out(t,o);break;case f.none:default:this.none(t,o)}}destroy(t,i){const e=this.container;tt(t.position,e.canvas.size,t.getRadius(),i)||e.particles.remove(t,void 0,!0)}out(t,i){const e=this.container;if(tt(t.position,e.canvas.size,t.getRadius(),i))return;const o=t.options.move.warp,s=e.canvas.size,n={bottom:s.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},a=t.getRadius(),r=et(t.position,a);i===l.right&&r.left>s.width+t.offset.x?(t.position.x=n.left,t.initialPosition.x=t.position.x,o||(t.position.y=Math.random()*s.height,t.initialPosition.y=t.position.y)):i===l.left&&r.right<-t.offset.x&&(t.position.x=n.right,t.initialPosition.x=t.position.x,o||(t.position.y=Math.random()*s.height,t.initialPosition.y=t.position.y)),i===l.bottom&&r.top>s.height+t.offset.y?(o||(t.position.x=Math.random()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.top,t.initialPosition.y=t.position.y):i===l.top&&r.bottom<-t.offset.y&&(o||(t.position.x=Math.random()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.bottom,t.initialPosition.y=t.position.y)}bounce(t,i,e,o){const s=this.container;let n=!1;for(const[,o]of s.plugins)if(void 0!==o.particleBounce&&(n=o.particleBounce(t,i,e)),n)break;if(n)return;const a=t.getPosition(),r=t.offset,c=t.getRadius(),d=et(a,c),h=s.canvas.size;!function(t){if(t.outMode!==f.bounce&&t.outMode!==f.bounceHorizontal&&"bounceHorizontal"!==t.outMode&&t.outMode!==f.split)return;const i=t.particle.velocity.x;let e=!1;if(t.direction===l.right&&t.bounds.right>=t.canvasSize.width&&i>0||t.direction===l.left&&t.bounds.left<=0&&i<0){const i=D(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-i,e=!0}if(!e)return;const o=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width?t.particle.position.x=t.canvasSize.width-o:t.bounds.left<=0&&(t.particle.position.x=o),t.outMode===f.split&&t.particle.destroy()}({particle:t,outMode:o,direction:e,bounds:d,canvasSize:h,offset:r,size:c}),function(t){if(t.outMode===f.bounce||t.outMode===f.bounceVertical||"bounceVertical"===t.outMode||t.outMode===f.split){const i=t.particle.velocity.y;let e=!1;if(t.direction===l.bottom&&t.bounds.bottom>=t.canvasSize.height&&i>0||t.direction===l.top&&t.bounds.top<=0&&i<0){const i=D(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-i,e=!0}if(!e)return;const o=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height?t.particle.position.y=t.canvasSize.height-o:t.bounds.top<=0&&(t.particle.position.y=o),t.outMode===f.split&&t.particle.destroy()}}({particle:t,outMode:o,direction:e,bounds:d,canvasSize:h,offset:r,size:c})}none(t,i){if(t.options.move.distance.horizontal&&(i===l.left||i===l.right)||t.options.move.distance.vertical&&(i===l.top||i===l.bottom))return;const e=t.options.move.gravity,o=this.container,s=o.canvas.size,n=t.getRadius();if(e.enable){const a=t.position;(!e.inverse&&a.y>s.height+n&&i===l.bottom||e.inverse&&a.y<-n&&i===l.top)&&o.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=s.height+n||t.velocity.y<0&&t.position.y>=-n||t.velocity.x>0&&t.position.x<=s.width+n||t.velocity.x<0&&t.position.x>=-n)return;tt(t.position,o.canvas.size,n,i)||o.particles.remove(t)}}}class Ws{isEnabled(t){const i=t.options.roll;return!t.destroyed&&!t.spawning&&i.enable}update(t,i){this.isEnabled(t)&&function(t,i){const e=t.options.roll,o=t.rollSpeed*i.factor,s=2*Math.PI;e.enable&&(t.rollAngle+=o,t.rollAngle>s&&(t.rollAngle-=s))}(t,i)}}class Gs{isEnabled(t){const i=t.options.tilt.animation;return!t.destroyed&&!t.spawning&&i.enable}update(t,i){this.isEnabled(t)&&function(t,i){var e;const o=t.options.tilt.animation,s=(null!==(e=t.tilt.velocity)&&void 0!==e?e:0)*i.factor,n=2*Math.PI;if(o.enable)switch(t.tilt.status){case b.increasing:t.tilt.value+=s,t.tilt.value>n&&(t.tilt.value-=n);break;case b.decreasing:default:t.tilt.value-=s,t.tilt.value<0&&(t.tilt.value+=n)}}(t,i)}}class Us{isEnabled(t){const i=t.options.wobble;return!t.destroyed&&!t.spawning&&i.enable}update(t,i){this.isEnabled(t)&&function(t,i){const e=t.options.wobble,o=t.wobbleSpeed*i.factor,s=t.wobbleDistance*i.factor/(1e3/60),n=2*Math.PI;e.enable&&(t.wobbleAngle+=o,t.wobbleAngle>n&&(t.wobbleAngle-=n),t.position.x+=s*Math.cos(t.wobbleAngle),t.position.y+=s*Math.abs(Math.sin(t.wobbleAngle)))}(t,i)}}class Ns{constructor(t){this.container=t,this.type=k.External}}class $s extends Ns{constructor(t){super(t)}isEnabled(){const t=this.container,i=t.actualOptions,e=t.interactivity.mouse,o=i.interactivity.events;if(!(e.position&&o.onHover.enable||e.clickPosition&&o.onClick.enable))return!1;const s=o.onHover.mode,n=o.onClick.mode;return X(p.attract,s)||X(d.attract,n)}reset(){}interact(){const t=this.container,i=t.actualOptions,e=t.interactivity.status===ht.mouseMoveEvent,o=i.interactivity.events,s=o.onHover.enable,n=o.onHover.mode,a=o.onClick.enable,r=o.onClick.mode;e&&s&&X(p.attract,n)?this.hoverAttract():a&&X(d.attract,r)&&this.clickAttract()}hoverAttract(){const t=this.container,i=t.interactivity.mouse.position;if(!i)return;const e=t.retina.attractModeDistance;this.processAttract(i,e,new ti(i.x,i.y,e))}processAttract(t,i,e){const o=this.container,s=o.actualOptions.interactivity.modes.attract,n=o.particles.quadTree.query(e);for(const e of n){const{dx:o,dy:n,distance:a}=q(e.position,t),r=s.speed*s.factor,l=E(G(1-a/i,s.easing)*r,0,s.maxSpeed),c=T.create(0===a?r:o/a*l,0===a?r:n/a*l);e.position.subFrom(c)}}clickAttract(){const t=this.container;if(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 i=t.interactivity.mouse.clickPosition;if(!i)return;const e=t.retina.attractModeDistance;this.processAttract(i,e,new ti(i.x,i.y,e))}else!1===t.attract.clicking&&(t.attract.particles=[])}}class js extends Ns{constructor(t){super(t)}isEnabled(){const t=this.container,i=t.actualOptions,e=t.interactivity.mouse,o=i.interactivity.events,s=o.onDiv;return e.position&&o.onHover.enable&&X(p.bounce,o.onHover.mode)||st(u.bounce,s)}interact(){const t=this.container,i=t.actualOptions.interactivity.events,e=t.interactivity.status===ht.mouseMoveEvent,o=i.onHover.enable,s=i.onHover.mode,n=i.onDiv;e&&o&&X(p.bounce,s)?this.processMouseBounce():nt(u.bounce,n,((t,i)=>this.singleSelectorBounce(t,i)))}reset(){}processMouseBounce(){const t=this.container,i=10*t.retina.pixelRatio,e=t.interactivity.mouse.position,o=t.retina.bounceModeDistance;e&&this.processBounce(e,o,new ti(e.x,e.y,o+i))}singleSelectorBounce(t,i){const e=this.container,o=document.querySelectorAll(t);o.length&&o.forEach((t=>{const o=t,s=e.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r=10*s,l=i.type===z.circle?new ti(n.x,n.y,a+r):new ii(o.offsetLeft*s-r,o.offsetTop*s-r,o.offsetWidth*s+2*r,o.offsetHeight*s+2*r);this.processBounce(n,a,l)}))}processBounce(t,i,e){const o=this.container.particles.quadTree.query(e);for(const s of o)e instanceof ti?ct(lt(s),{position:t,radius:i,mass:Math.pow(i,2)*Math.PI/2,velocity:T.origin,factor:T.origin}):e instanceof ii&&dt(s,et(t,i))}}var Qs;function Js(t,i,e,o){if(i>=e){return E(t+(i-e)*o,t,i)}if(i<e){return E(t-(e-i)*o,i,t)}}!function(t){t.color="color",t.opacity="opacity",t.size="size"}(Qs||(Qs={}));class Xs extends Ns{constructor(t){super(t)}isEnabled(){const t=this.container,i=t.actualOptions,e=t.interactivity.mouse,o=i.interactivity.events,s=o.onDiv,n=st(u.bubble,s);if(!(n||o.onHover.enable&&e.position||o.onClick.enable&&e.clickPosition))return!1;const a=o.onHover.mode,r=o.onClick.mode;return X(p.bubble,a)||X(d.bubble,r)||n}reset(t,i){t.bubble.inRange&&!i||(delete t.bubble.div,delete t.bubble.opacity,delete t.bubble.radius,delete t.bubble.color)}interact(){const t=this.container.actualOptions.interactivity.events,i=t.onHover,e=t.onClick,o=i.enable,s=i.mode,n=e.enable,a=e.mode,r=t.onDiv;o&&X(p.bubble,s)?this.hoverBubble():n&&X(d.bubble,a)?this.clickBubble():nt(u.bubble,r,((t,i)=>this.singleSelectorHover(t,i)))}singleSelectorHover(t,i){const e=this.container,o=document.querySelectorAll(t);o.length&&o.forEach((t=>{const o=t,s=e.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r=i.type===z.circle?new ti(n.x,n.y,a):new ii(o.offsetLeft*s,o.offsetTop*s,o.offsetWidth*s,o.offsetHeight*s),l=e.particles.quadTree.query(r);for(const t of l){if(!r.contains(t.getPosition()))continue;t.bubble.inRange=!0;const i=rt(e.actualOptions.interactivity.modes.bubble.divs,o);t.bubble.div&&t.bubble.div===o||(this.reset(t,!0),t.bubble.div=o),this.hoverBubbleSize(t,1,i),this.hoverBubbleOpacity(t,1,i),this.hoverBubbleColor(t,1,i)}}))}process(t,i,e,o){const s=this.container,n=o.bubbleObj.optValue;if(void 0===n)return;const a=s.actualOptions.interactivity.modes.bubble.duration,r=s.retina.bubbleModeDistance,l=o.particlesObj.optValue,c=o.bubbleObj.value,d=o.particlesObj.value||0,h=o.type;if(n!==l)if(s.bubble.durationEnd)c&&(h===Qs.size&&delete t.bubble.radius,h===Qs.opacity&&delete t.bubble.opacity);else if(i<=r){if((null!=c?c:d)!==n){const i=d-e*(d-n)/a;h===Qs.size&&(t.bubble.radius=i),h===Qs.opacity&&(t.bubble.opacity=i)}}else h===Qs.size&&delete t.bubble.radius,h===Qs.opacity&&delete t.bubble.opacity}clickBubble(){const t=this.container,i=t.actualOptions,e=t.interactivity.mouse.clickPosition;if(!e)return;const o=t.retina.bubbleModeDistance,s=t.particles.quadTree.queryCircle(e,o);for(const o of s){if(!t.bubble.clicking)continue;o.bubble.inRange=!t.bubble.durationEnd;const s=_(o.getPosition(),e),n=((new Date).getTime()-(t.interactivity.mouse.clickTime||0))/1e3;n>i.interactivity.modes.bubble.duration&&(t.bubble.durationEnd=!0),n>2*i.interactivity.modes.bubble.duration&&(t.bubble.clicking=!1,t.bubble.durationEnd=!1);const a={bubbleObj:{optValue:t.retina.bubbleModeSize,value:o.bubble.radius},particlesObj:{optValue:L(o.options.size.value)*t.retina.pixelRatio,value:o.size.value},type:Qs.size};this.process(o,s,n,a);const r={bubbleObj:{optValue:i.interactivity.modes.bubble.opacity,value:o.bubble.opacity},particlesObj:{optValue:L(o.options.opacity.value),value:o.opacity.value},type:Qs.opacity};this.process(o,s,n,r),t.bubble.durationEnd?delete o.bubble.color:s<=t.retina.bubbleModeDistance?this.hoverBubbleColor(o,s):delete o.bubble.color}}hoverBubble(){const t=this.container,i=t.interactivity.mouse.position;if(void 0===i)return;const e=t.retina.bubbleModeDistance,o=t.particles.quadTree.queryCircle(i,e);for(const s of o){s.bubble.inRange=!0;const o=_(s.getPosition(),i),n=1-o/e;o<=e?n>=0&&t.interactivity.status===ht.mouseMoveEvent&&(this.hoverBubbleSize(s,n),this.hoverBubbleOpacity(s,n),this.hoverBubbleColor(s,n)):this.reset(s),t.interactivity.status===ht.mouseLeaveEvent&&this.reset(s)}}hoverBubbleSize(t,i,e){const o=this.container,s=(null==e?void 0:e.size)?e.size*o.retina.pixelRatio:o.retina.bubbleModeSize;if(void 0===s)return;const n=L(t.options.size.value)*o.retina.pixelRatio,a=Js(t.size.value,s,n,i);void 0!==a&&(t.bubble.radius=a)}hoverBubbleOpacity(t,i,e){var o;const s=this.container.actualOptions,n=null!==(o=null==e?void 0:e.opacity)&&void 0!==o?o:s.interactivity.modes.bubble.opacity;if(!n)return;const a=t.options.opacity.value,r=Js(t.opacity.value,n,L(a),i);void 0!==r&&(t.bubble.opacity=r)}hoverBubbleColor(t,i,e){const o=this.container.actualOptions,s=null!=e?e:o.interactivity.modes.bubble;if(!t.bubble.finalColor){const i=s.color;if(!i)return;const e=i instanceof Array?K(i):i;t.bubble.finalColor=ft(e)}if(t.bubble.finalColor)if(s.mix){t.bubble.color=void 0;const e=t.getFillColor();t.bubble.color=e?yt(Dt(e,t.bubble.finalColor,1-i,i)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}}class Ys extends Ns{constructor(t){super(t)}isEnabled(){const t=this.container,i=t.interactivity.mouse,e=t.actualOptions.interactivity.events;return!(!e.onHover.enable||!i.position)&&X(p.connect,e.onHover.mode)}reset(){}interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&"mousemove"===t.interactivity.status){const i=t.interactivity.mouse.position;if(!i)return;const e=Math.abs(t.retina.connectModeRadius),o=t.particles.quadTree.queryCircle(i,e);let s=0;for(const i of o){const e=i.getPosition();for(const n of o.slice(s+1)){const o=n.getPosition(),s=Math.abs(t.retina.connectModeDistance),a=Math.abs(e.x-o.x),r=Math.abs(e.y-o.y);a<s&&r<s&&t.canvas.drawConnectLine(i,n)}++s}}}}class Zs extends Ns{constructor(t){super(t)}isEnabled(){const t=this.container,i=t.interactivity.mouse,e=t.actualOptions.interactivity.events;return e.onHover.enable&&!!i.position&&X(p.grab,e.onHover.mode)}reset(){}interact(){var t;const i=this.container,e=i.actualOptions,o=e.interactivity;if(o.events.onHover.enable&&i.interactivity.status===ht.mouseMoveEvent){const s=i.interactivity.mouse.position;if(!s)return;const n=i.retina.grabModeDistance,a=i.particles.quadTree.queryCircle(s,n);for(const r of a){const a=_(r.getPosition(),s);if(a<=n){const l=o.modes.grab.links,c=l.opacity,d=c-a*c/n;if(d<=0)continue;const h=null!==(t=l.color)&&void 0!==t?t:r.options.links.color;if(!i.particles.grabLineColor){const t=e.interactivity.modes.grab.links;i.particles.grabLineColor=Lt(h,t.blink,t.consent)}const u=It(r,void 0,i.particles.grabLineColor);if(!u)return;i.canvas.drawGrabLine(r,u,d,s)}}}}}class Ks extends Ns{constructor(t){super(t)}isEnabled(){const t=this.container,i=t.actualOptions,e=t.interactivity.mouse,o=i.interactivity.events,s=o.onDiv,n=st(u.repulse,s);if(!(n||o.onHover.enable&&e.position||o.onClick.enable&&e.clickPosition))return!1;const a=o.onHover.mode,r=o.onClick.mode;return X(p.repulse,a)||X(d.repulse,r)||n}reset(){}interact(){const t=this.container,i=t.actualOptions,e=t.interactivity.status===ht.mouseMoveEvent,o=i.interactivity.events,s=o.onHover.enable,n=o.onHover.mode,a=o.onClick.enable,r=o.onClick.mode,l=o.onDiv;e&&s&&X(p.repulse,n)?this.hoverRepulse():a&&X(d.repulse,r)?this.clickRepulse():nt(u.repulse,l,((t,i)=>this.singleSelectorRepulse(t,i)))}singleSelectorRepulse(t,i){const e=this.container,o=document.querySelectorAll(t);o.length&&o.forEach((t=>{const o=t,s=e.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r=i.type===z.circle?new ti(n.x,n.y,a):new ii(o.offsetLeft*s,o.offsetTop*s,o.offsetWidth*s,o.offsetHeight*s),l=rt(e.actualOptions.interactivity.modes.repulse.divs,o);this.processRepulse(n,a,r,l)}))}hoverRepulse(){const t=this.container,i=t.interactivity.mouse.position;if(!i)return;const e=t.retina.repulseModeDistance;this.processRepulse(i,e,new ti(i.x,i.y,e))}processRepulse(t,i,e,o){var s;const n=this.container,a=n.particles.quadTree.query(e),r=n.actualOptions.interactivity.modes.repulse;for(const e of a){const{dx:n,dy:a,distance:l}=q(e.position,t),c=(null!==(s=null==o?void 0:o.speed)&&void 0!==s?s:r.speed)*r.factor,d=E(G(1-l/i,r.easing)*c,0,r.maxSpeed),h=T.create(0===l?c:n/l*d,0===l?c:a/l*d);e.position.addTo(h)}}clickRepulse(){const t=this.container;if(t.repulse.finish||(t.repulse.count||(t.repulse.count=0),t.repulse.count++,t.repulse.count===t.particles.count&&(t.repulse.finish=!0)),t.repulse.clicking){const i=t.retina.repulseModeDistance,e=Math.pow(i/6,3),o=t.interactivity.mouse.clickPosition;if(void 0===o)return;const s=new ti(o.x,o.y,e),n=t.particles.quadTree.query(s);for(const i of n){const{dx:s,dy:n,distance:a}=q(o,i.position),r=Math.pow(a,2),l=t.actualOptions.interactivity.modes.repulse.speed,c=-e*l/r;if(r<=e){t.repulse.particles.push(i);const e=T.create(s,n);e.length=c,i.velocity.setTo(e)}}}else if(!1===t.repulse.clicking){for(const i of t.repulse.particles)i.velocity.setTo(i.initialVelocity);t.repulse.particles=[]}}}class tn extends Ns{constructor(t){super(t),this.delay=0}interact(t){var i,e,o,s;if(!this.container.retina.reduceFactor)return;const n=this.container,a=n.actualOptions.interactivity.modes.trail,r=1e3*a.delay/this.container.retina.reduceFactor;if(this.delay<r&&(this.delay+=t.value),this.delay<r)return;let l=!0;a.pauseOnStop&&(n.interactivity.mouse.position===this.lastPosition||(null===(i=n.interactivity.mouse.position)||void 0===i?void 0:i.x)===(null===(e=this.lastPosition)||void 0===e?void 0:e.x)&&(null===(o=n.interactivity.mouse.position)||void 0===o?void 0:o.y)===(null===(s=this.lastPosition)||void 0===s?void 0:s.y))&&(l=!1),n.interactivity.mouse.position?this.lastPosition={x:n.interactivity.mouse.position.x,y:n.interactivity.mouse.position.y}:delete this.lastPosition,l&&n.particles.push(a.quantity,n.interactivity.mouse,a.particles),this.delay-=r}isEnabled(){const t=this.container,i=t.actualOptions,e=t.interactivity.mouse,o=i.interactivity.events;return e.clicking&&e.inside&&!!e.position&&X(d.trail,o.onClick.mode)||e.inside&&!!e.position&&X(p.trail,o.onHover.mode)}reset(){}}class en{constructor(t){this.container=t,this.type=k.Particles}}class on extends en{constructor(t){super(t)}interact(t){var i;const e=this.container,o=null!==(i=t.attractDistance)&&void 0!==i?i:e.retina.attractDistance,s=t.getPosition(),n=e.particles.quadTree.queryCircle(s,o);for(const i of n){if(t===i||!i.options.move.attract.enable||i.destroyed||i.spawning)continue;const e=i.getPosition(),{dx:o,dy:n}=q(s,e),a=t.options.move.attract.rotate,r=o/(1e3*a.x),l=n/(1e3*a.y),c=i.size.value/t.size.value,d=1/c;t.velocity.x-=r*c,t.velocity.y-=l*c,i.velocity.x+=r*d,i.velocity.y+=l*d}}isEnabled(t){return t.options.move.attract.enable}reset(){}}function sn(t,i){ct(lt(t),lt(i))}class nn extends en{constructor(t){super(t)}isEnabled(t){return t.options.collisions.enable}reset(){}interact(t){const i=this.container,e=t.getPosition(),o=t.getRadius(),s=i.particles.quadTree.queryCircle(e,2*o);for(const i of s){if(t===i||!i.options.collisions.enable||t.options.collisions.mode!==i.options.collisions.mode||i.destroyed||i.spawning)continue;const s=i.getPosition();if(Math.round(e.z)!==Math.round(s.z))continue;_(e,s)<=o+i.getRadius()&&this.resolveCollision(t,i)}}resolveCollision(t,i){switch(t.options.collisions.mode){case v.absorb:this.absorb(t,i);break;case v.bounce:sn(t,i);break;case v.destroy:!function(t,i){t.unbreakable||i.unbreakable||sn(t,i),void 0===t.getRadius()&&void 0!==i.getRadius()?t.destroy():void 0!==t.getRadius()&&void 0===i.getRadius()?i.destroy():void 0!==t.getRadius()&&void 0!==i.getRadius()&&(t.getRadius()>=i.getRadius()?i.destroy():t.destroy())}(t,i)}}absorb(t,i){const e=this.container,o=e.fpsLimit/1e3;if(void 0===t.getRadius()&&void 0!==i.getRadius())t.destroy();else if(void 0!==t.getRadius()&&void 0===i.getRadius())i.destroy();else if(void 0!==t.getRadius()&&void 0!==i.getRadius())if(t.getRadius()>=i.getRadius()){const s=E(t.getRadius()/i.getRadius(),0,i.getRadius())*o;t.size.value+=s,i.size.value-=s,i.getRadius()<=e.retina.pixelRatio&&(i.size.value=0,i.destroy())}else{const s=E(i.getRadius()/t.getRadius(),0,t.getRadius())*o;t.size.value-=s,i.size.value+=s,t.getRadius()<=e.retina.pixelRatio&&(t.size.value=0,t.destroy())}}}function an(t,i,e,o,s){let n=_(t,i);if(!s||n<=e)return n;if(n=_(t,{x:i.x-o.width,y:i.y}),n<=e)return n;if(n=_(t,{x:i.x-o.width,y:i.y-o.height}),n<=e)return n;return n=_(t,{x:i.x,y:i.y-o.height}),n}class rn extends en{constructor(t){super(t)}isEnabled(t){return t.options.links.enable}reset(){}interact(t){var i;t.links=[];const e=t.getPosition(),o=this.container,s=o.canvas.size;if(e.x<0||e.y<0||e.x>s.width||e.y>s.height)return;const n=t.options.links,a=n.opacity,r=null!==(i=t.linksDistance)&&void 0!==i?i:o.retina.linksDistance,l=n.warp,c=l?new ei(e.x,e.y,r,s):new ti(e.x,e.y,r),d=o.particles.quadTree.query(c);for(const i of d){const o=i.options.links;if(t===i||!o.enable||n.id!==o.id||i.spawning||i.destroyed||-1!==t.links.map((t=>t.destination)).indexOf(i)||-1!==i.links.map((t=>t.destination)).indexOf(t))continue;const c=i.getPosition();if(c.x<0||c.y<0||c.x>s.width||c.y>s.height)continue;const d=an(e,c,r,s,l&&o.warp);if(d>r)return;const h=(1-d/r)*a;this.setColor(t),t.links.push({destination:i,opacity:h})}}setColor(t){const i=this.container,e=t.options.links;let o=void 0===e.id?i.particles.linksColor:i.particles.linksColors.get(e.id);if(!o){o=Lt(e.color,e.blink,e.consent),void 0===e.id?i.particles.linksColor=o:i.particles.linksColors.set(e.id,o)}}}class ln{constructor(t){this.container=t}particleCreated(t){t.links=[]}particleDestroyed(t){t.links=[]}drawParticle(t,i){const e=i,o=this.container,s=o.particles,n=i.options;if(e.links.length>0){t.save();const i=e.links.filter((t=>o.particles.getLinkFrequency(e,t.destination)<=n.links.frequency));for(const t of i){const a=t.destination;if(n.links.triangles.enable){const r=i.map((t=>t.destination)),l=a.links.filter((t=>o.particles.getLinkFrequency(a,t.destination)<=a.options.links.frequency&&r.indexOf(t.destination)>=0));if(l.length)for(const i of l){const o=i.destination;s.getTriangleFrequency(e,a,o)>n.links.triangles.frequency||this.drawLinkTriangle(e,t,i)}}t.opacity>0&&o.retina.linksWidth>0&&this.drawLinkLine(e,t)}t.restore()}}drawLinkTriangle(t,i,e){var o;const s=this.container,n=s.actualOptions,a=i.destination,r=e.destination,l=t.options.links.triangles,c=null!==(o=l.opacity)&&void 0!==o?o:(i.opacity+e.opacity)/2;if(c<=0)return;const d=t.getPosition(),h=a.getPosition(),u=r.getPosition();s.canvas.draw((i=>{if(_(d,h)>s.retina.linksDistance||_(u,h)>s.retina.linksDistance||_(u,d)>s.retina.linksDistance)return;let e=vt(l.color);if(!e){const i=t.options.links,o=void 0!==i.id?s.particles.linksColors.get(i.id):s.particles.linksColor;e=It(t,a,o)}e&&Gt(i,d,h,u,n.backgroundMask.enable,n.backgroundMask.composite,e,c)}))}drawLinkLine(t,i){const e=this.container,o=e.actualOptions,s=i.destination;let n=i.opacity;const a=t.getPosition(),r=s.getPosition();e.canvas.draw((i=>{var l,c;let d;const h=t.options.twinkle.lines;if(h.enable){const t=h.frequency,i=vt(h.color);Math.random()<t&&void 0!==i&&(d=i,n=h.opacity)}if(!d){const i=t.options.links,o=void 0!==i.id?e.particles.linksColors.get(i.id):e.particles.linksColor;d=It(t,s,o)}if(!d)return;const u=null!==(l=t.linksWidth)&&void 0!==l?l:e.retina.linksWidth,p=null!==(c=t.linksDistance)&&void 0!==c?c:e.retina.linksDistance;Wt(i,u,a,r,p,e.canvas.size,t.options.links.warp,o.backgroundMask.enable,o.backgroundMask.composite,d,n,t.options.links.shadow)}))}}class cn{constructor(){this.id="links"}getPlugin(t){return new ln(t)}needsPlugin(){return!0}loadOptions(){}}function dn(t){!function(t){t.addInteractor("particlesLinks",(t=>new rn(t)))}(t),function(t){const i=new cn;t.addPlugin(i)}(t)}function hn(t){!function(t){t.addInteractor("externalAttract",(t=>new $s(t)))}(t),function(t){t.addInteractor("externalBounce",(t=>new js(t)))}(t),function(t){t.addInteractor("externalBubble",(t=>new Xs(t)))}(t),function(t){t.addInteractor("externalConnect",(t=>new Ys(t)))}(t),function(t){t.addInteractor("externalGrab",(t=>new Zs(t)))}(t),function(t){t.addInteractor("externalRepulse",(t=>new Ks(t)))}(t),function(t){t.addInteractor("externalTrail",(t=>new tn(t)))}(t),function(t){t.addInteractor("particlesAttract",(t=>new on(t)))}(t),function(t){t.addInteractor("particlesCollisions",(t=>new nn(t)))}(t),dn(t),function(t){t.addShape("circle",new hs)}(t),function(t){const i=new gs;t.addShape("image",i),t.addShape("images",i)}(t),function(t){t.addShape("line",new ws)}(t),Ms(t),function(t){const i=new Cs;t.addShape("edge",i),t.addShape("square",i)}(t),function(t){t.addShape("star",new Os)}(t),function(t){const i=new Es;for(const e of Ts)t.addShape(e,i)}(t),function(t){t.addParticleUpdater("life",(t=>new Is(t)))}(t),function(t){t.addParticleUpdater("opacity",(()=>new Fs))}(t),function(t){t.addParticleUpdater("size",(()=>new qs))}(t),function(t){t.addParticleUpdater("angle",(()=>new Rs))}(t),function(t){t.addParticleUpdater("tilt",(()=>new Gs))}(t),function(t){t.addParticleUpdater("roll",(()=>new Ws))}(t),function(t){t.addParticleUpdater("wobble",(()=>new Us))}(t),function(t){t.addParticleUpdater("color",(()=>new Ds))}(t),function(t){t.addParticleUpdater("strokeColor",(()=>new Vs))}(t),function(t){t.addParticleUpdater("outModes",(t=>new Bs(t)))}(t)}function un(t){hn(t),function(t){const i=new Eo;t.addPlugin(i)}(t),function(t){const i=new Yo;t.addPlugin(i),t.addEmitterShape||(t.addEmitterShape=(t,i)=>{Do.addShape(t,i)}),t.addEmitterShape(Ho.circle,new Qo),t.addEmitterShape(Ho.square,new Xo)}(t),function(t){const i=new ds;t.addPlugin(i)}(t)}const pn=new zo;pn.init(),un(pn);const{particlesJS:vn,pJSDom:fn}=(t=>{const i=(i,e)=>t.load(i,e);i.load=(i,e,o)=>{t.loadJSON(i,e).then((t=>{t&&o(t)})).catch((()=>{o(void 0)}))},i.setOnClickHandler=i=>{t.setOnClickHandler(i)};return{particlesJS:i,pJSDom:t.dom()}})(pn);return i})()}));