1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[375],{8291:function(t,e,i){i.d(e,{Z:function(){return s}});/** 2 * @license lucide-react v0.294.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let s=(0,i(2898).Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},3523:function(t,e,i){i.d(e,{Z:function(){return s}});/** 7 * @license lucide-react v0.294.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */let s=(0,i(2898).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},9670:function(t,e,i){i.d(e,{Z:function(){return s}});/** 12 * @license lucide-react v0.294.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let s=(0,i(2898).Z)("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},1981:function(t,e,i){i.d(e,{Z:function(){return s}});/** 17 * @license lucide-react v0.294.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let s=(0,i(2898).Z)("PlusCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},9883:function(t,e,i){i.d(e,{Z:function(){return s}});/** 22 * @license lucide-react v0.294.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */let s=(0,i(2898).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},3922:function(t,e,i){i.d(e,{Z:function(){return s}});/** 27 * @license lucide-react v0.294.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */let s=(0,i(2898).Z)("Radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]])},6654:function(t,e,i){i.d(e,{Z:function(){return s}});/** 32 * @license lucide-react v0.294.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */let s=(0,i(2898).Z)("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},1842:function(t,e,i){var s,n,a,o,r,l,c,h,d,u,p,f,m,v,g,y,b,w,x,_,k,z,C,M,P,S,O,E,D,R,T,I,L,F,B,A,V,q,W,H,G,$,U,Z;i.d(e,{NV1:function(){return a},Cdc:function(){return id},Dpx:function(){return v},Hyf:function(){return o},gqJ:function(){return p},nxi:function(){return z},L8z:function(){return iP},OzF:function(){return ep},Voc:function(){return g},DYc:function(){return r},Igb:function(){return w},$Sh:function(){return iS},AeJ:function(){return iu},RnL:function(){return _},SWe:function(){return eB},OWs:function(){return tm},M_G:function(){return tq},kRC:function(){return tZ},gy4:function(){return tU},uZ5:function(){return tb},ocL:function(){return t4},ZBL:function(){return tW},Idc:function(){return tS},iCg:function(){return t$},XDe:function(){return tG},pSR:function(){return er},gK4:function(){return N},KH1:function(){return tj},Spd:function(){return tP},oW6:function(){return tM},bS$:function(){return es},BEi:function(){return et},Dt5:function(){return ee},jl5:function(){return tR},sZz:function(){return ty},KIV:function(){return tz},Gu7:function(){return t_},vzQ:function(){return t8},izR:function(){return t7},veL:function(){return t3},Y6v:function(){return t6},V0:function(){return tN},kJL:function(){return tu},wm$:function(){return tH},dBL:function(){return tF},Ft:function(){return tp}
36,Kn2:function(){return td},Ac:function(){return tV},KrJ:function(){return tI},c86:function(){return tA},wA_:function(){return tK},mxw:function(){return tB},X5o:function(){return J},aMP:function(){return j},WtO:function(){return K},BVM:function(){return tE},tZy:function(){return Q},vdf:function(){return tx},lNs:function(){return t2},tXk:function(){return t1},dpV:function(){return tY},lCU:function(){return t5},Cst:function(){return tC},S6T:function(){return iO},CrJ:function(){return tJ},PBz:function(){return eo}});let Y="generated",j="pointerleave",K="pointermove",X="touchend",N="tsParticles - Error",Q=100,J=1e3,tt={x:0,y:0,z:0},te={a:1,b:0,c:0,d:1},ti="random",ts=2*Math.PI,tn="true",ta="false",to="canvas",tr=0;function tl(t){return"boolean"==typeof t}function tc(t){return"string"==typeof t}function th(t){return"number"==typeof t}function td(t){return"object"==typeof t&&null!==t}function tu(t){return Array.isArray(t)}function tp(t){return null==t}(C=s||(s={})).bottom="bottom",C.bottomLeft="bottom-left",C.bottomRight="bottom-right",C.left="left",C.none="none",C.right="right",C.top="top",C.topLeft="top-left",C.topRight="top-right",C.outside="outside",C.inside="inside";class tf{constructor(t,e,i){if(this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},!th(t)&&t)this.x=t.x,this.y=t.y,this.z=t.z?t.z:tt.z;else if(void 0!==t&&void 0!==e)this.x=t,this.y=e,this.z=i??tt.z;else throw Error(`${N} Vector3d not initialized correctly`)}static get origin(){return tf.create(tt.x,tt.y,tt.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return tf.create(t.x,t.y,t.z)}static create(t,e,i){return new tf(t,e,i)}add(t){return tf.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return tf.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return tf.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**2+this.y**2}mult(t){return tf.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){let t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return tf.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),tt.z)}setTo(t){this.x=t.x,this.y=t.y,this.z=t.z?t.z:tt.z}sub(t){return tf.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class tm extends tf{constructor(t,e){super(t,e,tt.z)}static get origin(){return tm.create(tt.x,tt.y)}static clone(t){return tm.create(t.x,t.y)}static create(t,e){return new tm(t,e)}}let tv=Math.random,tg={nextFrame:t=>requestAnimationFrame(t),cancel:t=>cancelAnimationFrame(t)};function ty(){return tb(tv(),0,1-Number.EPSILON)}function tb(t,e,i){return Math.min(Math.max(t,e),i)}function tw(t,e,i,s){return Math.floor((t*i+e*s)/(i+s))}function tx(t){let e=tz(t),i=tk(t);return e===i&&(i=0),ty()*(e-i)+i}function t_(t){return th(t)?t:tx(t)}function tk(t){return th(t)?t:t.min}function tz(t){return th(t)?t:t.max}function tC(t,e){if(t===e||void 0===e&&th(t))return t;let i=tk(t),s=tz(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:tC(i,s)}function tM(t,e){let i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.sqrt(i**2+s**2)}}function tP(t,e){return tM(t,e).distance}function tS(t){return t*Math.PI/180}function tO(t,e,i,s){return tm.create(t.x*(i-s)/(i+s)+2*e.x*s/(i+s),t.y)}function tE(t){return t?t.endsWith("%")?parseFloat(t)/Q:parseFloat(t):1}(M=n||(n={})).auto="auto",M.increase="increase",M.decrease="decrease",M.random="random",(P=a||(a={})).increasing="increasing",P.decreasing="decreasing",(S=o||(o={})).none="none",S.max="max",S.min="min",(O=r||(r={})).bottom="bottom",O.left="left",O.right="right",O.top="top",(E=l||(l={})).precise="precise",E.percent="percent",(D=c||(c={})).max="max",D.min="min",D.random="random";let tD={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function tR(){return tD}function tT(t){let e={bounced:!1}
36,{pSide:i,pOtherSide:s,rectSide:n,rectOtherSide:a,velocity:o,factor:r}=t;return s.min<a.min||s.min>a.max||s.max<a.min||s.max>a.max||(i.max>=n.min&&i.max<=(n.max+n.min)*.5&&o>0||i.min<=n.max&&i.min>(n.max+n.min)*.5&&o<0)&&(e.velocity=-(o*r),e.bounced=!0),e}function tI(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function tL(t){if(!tI()&&"undefined"!=typeof matchMedia)return matchMedia(t)}function tF(t,e){return t===e||tu(e)&&e.indexOf(t)>-1}async function tB(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function tA(t,e,i=!0){return t[void 0!==e&&i?e%t.length:Math.floor(ty()*t.length)]}function tV(t,e,i,s,n){var a;let o;return a=tq(t,s??0),o=!0,n&&n!==r.bottom||(o=a.top<e.height+i.x),o&&(!n||n===r.left)&&(o=a.right>i.x),o&&(!n||n===r.right)&&(o=a.left<e.width+i.y),o&&(!n||n===r.top)&&(o=a.bottom>i.y),o}function tq(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function tW(t,...e){for(let i of e){if(null==i)continue;if(!td(i)){t=i;continue}let e=Array.isArray(i);for(let s in e&&(td(t)||!t||!Array.isArray(t))?t=[]:!e&&(td(t)||!t||Array.isArray(t))&&(t={}),i){if("__proto__"===s)continue;let e=i[s],n=t;n[s]=td(e)&&Array.isArray(e)?e.map(t=>tW(n[s],t)):tW(n[s],e)}}return t}function tH(t,e){return!!tX(e,e=>e.enable&&tF(t,e.mode))}function tG(t,e,i){tj(e,e=>{let s=e.mode;e.enable&&tF(t,s)&&tj(e.selectors,t=>{i(t,e)})})}function t$(t,e){if(e&&t)return tX(t,t=>(function(t,e){let i=tj(e,e=>t.matches(e));return tu(i)?i.some(t=>t):i})(e,t.selectors))}function tU(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:tm.create(t_(t.options.bounce.horizontal.value),t_(t.options.bounce.vertical.value))}}function tZ(t,e){let{x:i,y:s}=t.velocity.sub(e.velocity),[n,a]=[t.position,e.position],{dx:o,dy:r}=tM(a,n);if(i*o+s*r<0)return;let l=-Math.atan2(r,o),c=t.mass,h=e.mass,d=t.velocity.rotate(l),u=e.velocity.rotate(l),p=tO(d,u,c,h),f=tO(u,d,c,h),m=p.rotate(-l),v=f.rotate(-l);t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y,e.velocity.x=v.x*e.factor.x,e.velocity.y=v.y*e.factor.y}function tY(t,e){let i=tq(t.getPosition(),t.getRadius()),s=t.options.bounce,n=tT({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:t_(s.horizontal.value)});n.bounced&&(void 0!==n.velocity&&(t.velocity.x=n.velocity),void 0!==n.position&&(t.position.x=n.position));let a=tT({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:t_(s.vertical.value)});a.bounced&&(void 0!==a.velocity&&(t.velocity.y=a.velocity),void 0!==a.position&&(t.position.y=a.position))}function tj(t,e){return tu(t)?t.map((t,i)=>e(t,i)):e(t,0)}function tK(t,e,i){return tu(t)?tA(t,e,i):t}function tX(t,e){return tu(t)?t.find((t,i)=>e(t,i)):e(t,0)?t:void 0}function tN(t,e){let i=t.value,s=t.animation,o={delayTime:t_(s.delay)*J,enable:s.enable,value:t_(t.value)*e,max:tz(i)*e,min:tk(i)*e,loops:0,maxLoops:t_(s.count),time:0};if(s.enable){switch(o.decay=1-t_(s.decay),s.mode){case n.increase:o.status=a.increasing;break;case n.decrease:o.status=a.decreasing;break;case n.random:o.status=ty()>=.5?a.increasing:a.decreasing}let t=s.mode===n.auto;switch(s.startValue){case c.min:o.value=o.min,t&&(o.status=a.increasing);break;case c.max:o.value=o.max,t&&(o.status=a.decreasing);break;case c.random:default:o.value=tx(o),t&&(o.status=ty()>=.5?a.increasing:a.decreasing)}}return o.initialValue=o.value,o}function tQ(t,e){return function(t,e){if(t.mode!==l.percent){let{mode:e,...i}=t;return i}return"x"in t?{x:t.x/Q*e.width,y:t.y/Q*e.height}:{width:t.width/Q*e.width,height:t.height/Q*e.height}}(t,e)}function tJ(t,e,i,s,n){if(t.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;let r=(e.velocity??0)*n.factor,l=e.min,c=e.max,h=e.decay??1;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=n.value),!((e.delayTime??0)>
360)||!(e.time<(e.delayTime??0))){switch(e.status){case a.increasing:e.value>=c?(i?e.status=a.decreasing:e.value-=c,e.loops||(e.loops=0),e.loops++):e.value+=r;break;case a.decreasing:e.value<=l?(i?e.status=a.increasing:e.value+=c,e.loops||(e.loops=0),e.loops++):e.value-=r}e.velocity&&1!==h&&(e.velocity*=h),function(t,e,i,s,n){switch(e){case o.max:i>=n&&t.destroy();break;case o.min:i<=s&&t.destroy()}}(t,s,e.value,l,c),t.destroyed||(e.value=tb(e.value,l,c))}}let t0=function(t){let e=new Map;return(...i)=>{let s=JSON.stringify(i);if(e.has(s))return e.get(s);let n=t(...i);return e.set(s,n),n}}(function(t){let e=document.createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(10),"z-index":t.toString(10),top:"0",left:"0"};for(let t in i){let s=i[t];e.setProperty(t,s)}return e});function t1(t,e,i,s=!0){if(!e)return;let n=tc(e)?{value:e}:e;if(tc(n.value))return function t(e,i,s,n=!0){if(!i)return;let a=tc(i)?{value:i}:i;if(tc(a.value))return a.value===ti?t9():function(t,e){if(e){for(let i of t.colorManagers.values())if(e.startsWith(i.stringPrefix))return i.parseString(e)}}(e,a.value);if(tu(a.value))return t(e,{value:tA(a.value,s,n)});for(let t of e.colorManagers.values()){let e=t.handleColor(a);if(e)return e}}(t,n.value,i,s);if(tu(n.value))return t1(t,{value:tA(n.value,i,s)});for(let e of t.colorManagers.values()){let t=e.handleRangeColor(n);if(t)return t}}function t2(t,e,i,s=!0){let n=t1(t,e,i,s);return n?t5(n):void 0}function t5(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),a=Math.min(e,i,s),o={h:0,l:(n+a)*.5,s:0};return n!==a&&(o.s=o.l<.5?(n-a)/(n+a):(n-a)/(2-n-a),o.h=e===n?(i-s)/(n-a):o.h=i===n?2+(s-e)/(n-a):4+(e-i)/(n-a)),o.l*=100,o.s*=100,o.h*=60,o.h<0&&(o.h+=360),o.h>=360&&(o.h-=360),o}function t3(t){let e=(t.h%360+360)%360,i=Math.max(0,Math.min(100,t.s)),s=Math.max(0,Math.min(100,t.l)),n=e/360,a=i/100,o=s/100;if(0===i){let t=Math.round(255*o);return{r:t,g:t,b:t}}let r=(t,e,i)=>(i<0&&i++,i>1&&i--,6*i<1)?t+(e-t)*6*i:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t,l=o<.5?o*(1+a):o+a-o*a,c=2*o-l;return{r:Math.round(Math.min(255,255*r(c,l,n+.3333333333333333))),g:Math.round(Math.min(255,255*r(c,l,n))),b:Math.round(Math.min(255,255*r(c,l,n-.3333333333333333)))}}function t6(t){let e=t3(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function t9(t){let e=t??0;return{b:Math.floor(tx(tC(e,256))),g:Math.floor(tx(tC(e,256))),r:Math.floor(tx(tC(e,256)))}}function t7(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function t8(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function t4(t,e,i,s){let n=t,a=e;return void 0===n.r&&(n=t3(t)),void 0===a.r&&(a=t3(e)),{b:tw(n.b,a.b,i,s),g:tw(n.g,a.g,i,s),r:tw(n.r,a.r,i,s)}}function et(t,e,i){if(i===ti)return t9();if("mid"!==i)return i;{let i=t.getFillColor()??t.getStrokeColor(),s=e?.getFillColor()??e?.getStrokeColor();if(i&&s&&e)return t4(i,s,t.getRadius(),e.getRadius());{let t=i??s;if(t)return t3(t)}}}function ee(t,e,i,s){let n=tc(e)?e:e.value;return n===ti?s?t1(t,{value:n}):i?ti:"mid":"mid"===n?"mid":t1(t,{value:n})}function ei(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function es(t,e,i){let s={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(en(s.h,e.h,i),en(s.s,e.s,i),en(s.l,e.l,i)),s}function en(t,e,i){t.enable=e.enable,t.enable?(t.velocity=t_(e.speed)/Q*i,t.decay=1-t_(e.decay),t.status=a.increasing,t.loops=0,t.maxLoops=t_(e.count),t.time=0,t.delayTime=t_(e.delay)*J,e.sync||(t.velocity
36*=ty(),t.value*=ty()),t.initialValue=t.value,t.offset=tC(e.offset)):t.velocity=0}function ea(t,e,i,s){if(!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0)||(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=s.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0)))return;let n=t.offset?tx(t.offset):0,o=(t.velocity??0)*s.factor+3.6*n,r=t.decay??1,l=tz(e),c=tk(e);i&&t.status!==a.increasing?(t.value-=o,t.value<0&&(t.loops||(t.loops=0),t.loops++,t.status=a.increasing)):(t.value+=o,t.value>l&&(t.loops||(t.loops=0),t.loops++,i?t.status=a.decreasing:t.value-=l)),t.velocity&&1!==r&&(t.velocity*=r),t.value=tb(t.value,c,l)}function eo(t,e){if(!t)return;let{h:i,s,l:n}=t,a={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};i&&ea(i,a.h,!1,e),s&&ea(s,a.s,!0,e),n&&ea(n,a.l,!0,e)}function er(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function el(t,e){t.clearRect(tt.x,tt.y,e.width,e.height)}function ec(t,e,i=!1){if(!e||!t)return;let s=t.style;if(!s)return;let n=new Set;for(let t in s)Object.prototype.hasOwnProperty.call(s,t)&&n.add(s[t]);for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.add(e[t]);for(let t of n){let n=e.getPropertyValue(t);n?s.setProperty(t,n,i?"important":""):s.removeProperty(t)}}(R=h||(h={})).darken="darken",R.enlighten="enlighten";class eh{constructor(t,e){this.container=t,this._applyPostDrawUpdaters=t=>{for(let e of this._postDrawUpdaters)e.afterDraw?.(t)},this._applyPreDrawUpdaters=(t,e,i,s,n,a)=>{for(let o of this._preDrawUpdaters){if(o.getColorStyles){let{fill:a,stroke:r}=o.getColorStyles(e,t,i,s);a&&(n.fill=a),r&&(n.stroke=r)}if(o.getTransformValues){let t=o.getTransformValues(e);for(let e in t)!function(t,e,i){let s=e[i];void 0!==s&&(t[i]=(t[i]??1)*s)}(a,t,e)}o.beforeDraw?.(e)}},this._applyResizePlugins=()=>{for(let t of this._resizePlugins)t.resize?.()},this._getPluginParticleColors=t=>{let e,i;for(let s of this._colorPlugins)if(!e&&s.particleFillColor&&(e=t2(this._engine,s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=t2(this._engine,s.particleStrokeColor(t))),e&&i)break;return[e,i]},this._initCover=async()=>{let t=this.container.actualOptions.backgroundMask.cover,e=t.color;if(e){let i=t1(this._engine,e);if(i){let e={...i,a:t.opacity};this._coverColorStyle=t7(e,e.a)}}else await new Promise((e,i)=>{if(!t.image)return;let s=document.createElement("img");s.addEventListener("load",()=>{this._coverImage={image:s,opacity:t.opacity},e()}),s.addEventListener("error",t=>{i(t.error)}),s.src=t.image})},this._initStyle=()=>{let t=this.element,e=this.container.actualOptions;if(t)for(let i in this._fullScreen?this._setFullScreenStyle():this._resetOriginalStyle(),e.style){if(!i||!e.style||!Object.prototype.hasOwnProperty.call(e.style,i))continue;let s=e.style[i];s&&t.style.setProperty(i,s,"important")}},this._initTrail=async()=>{let t=this.container.actualOptions.particles.move.trail,e=t.fill;if(!t.enable)return;let i=1/t.length;if(e.color){let t=t1(this._engine,e.color);if(!t)return;this._trailFill={color:{...t},opacity:i}}else await new Promise((t,s)=>{if(!e.image)return;let n=document.createElement("img");n.addEventListener("load",()=>{this._trailFill={image:n,opacity:i},t()}),n.addEventListener("error",t=>{s(t.error)}),n.src=e.image})},this._paintBase=t=>{this.draw(e=>{var i;return i=this.size,void(e.fillStyle=t??"rgba(0,0,0,0)",e.fillRect(tt.x,tt.y,i.width,i.height))})},this._paintImage=(t,e)=>{this.draw(i=>{var s;return s=this.size,void(t&&(i.globalAlpha=e,i.drawImage(t,tt.x,tt.y,s.width,s.height),i.globalAlpha=1))})},this._repairStyle=()=>{let t=this.element;if(!t)return;this._safeMutationObserver(t=>
36t.disconnect()),this._initStyle(),this.initBackground();let e=this._pointerEvents;t.style.pointerEvents=e,t.setAttribute("pointer-events",e),this._safeMutationObserver(e=>{t&&t instanceof Node&&e.observe(t,{attributes:!0})})},this._resetOriginalStyle=()=>{let t=this.element,e=this._originalStyle;t&&e&&ec(t,e,!0)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{let t=this.element;t&&ec(t,t0(this.container.actualOptions.fullScreen.zIndex),!0)},this._engine=e,this._standardSize={height:0,width:0};let i=t.retina.pixelRatio,s=this._standardSize;this.size={height:s.height*i,width:s.width*i},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[],this._pointerEvents="none"}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){let t=this.container.actualOptions,e=t.particles.move.trail,i=this._trailFill;t.backgroundMask.enable?this.paint():e.enable&&e.length>0&&i?i.color?this._paintBase(t7(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):t.clear&&this.draw(t=>{el(t,this.size)})}destroy(){if(this.stop(),this._generated){let t=this.element;t?.remove(),this.element=void 0}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){let e=this._context;if(e)return t(e)}drawAsync(t){let e=this._context;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;let i=t.getRadius();if(i<=0)return;let s=t.getFillColor(),n=t.getStrokeColor()??s,[a,o]=this._getPluginParticleColors(t);a||(a=s),o||(o=n),(a||o)&&this.draw(s=>{let n=this.container,r=n.actualOptions,l=t.options.zIndex,c=1-t.zIndexFactor,h=c**l.opacityRate,d=t.bubble.opacity??t.opacity?.value??1,u=t.strokeOpacity??d,p=d*h,f={},m={fill:a?t8(a,p):void 0};m.stroke=o?t8(o,u*h):m.fill,this._applyPreDrawUpdaters(s,t,i,p,m,f),function(t){let{container:e,context:i,particle:s,delta:n,colorStyles:a,backgroundMask:o,composite:r,radius:l,opacity:c,shadow:h,transform:d}=t,u=s.getPosition(),p=s.rotation+(s.pathRotation?s.velocity.angle:0),f={sin:Math.sin(p),cos:Math.cos(p)},m=!!p,v={a:f.cos*(d.a??te.a),b:m?f.sin*(d.b??1):d.b??te.b,c:m?-f.sin*(d.c??1):d.c??te.c,d:f.cos*(d.d??te.d)};i.setTransform(v.a,v.b,v.c,v.d,u.x,u.y),o&&(i.globalCompositeOperation=r);let g=s.shadowColor;h.enable&&g&&(i.shadowBlur=h.blur,i.shadowColor=t7(g),i.shadowOffsetX=h.offset.x,i.shadowOffsetY=h.offset.y),a.fill&&(i.fillStyle=a.fill);let y=s.strokeWidth??0;i.lineWidth=y,a.stroke&&(i.strokeStyle=a.stroke);let b={container:e,context:i,particle:s,radius:l,opacity:c,delta:n,transformData:v,strokeWidth:y};(function(t){let{container:e,context:i,particle:s,radius:n,opacity:a,delta:o,strokeWidth:r,transformData:l}=t;if(!s.shape)return;let c=e.shapeDrawers.get(s.shape);c&&(i.beginPath(),c.draw({context:i,particle:s,radius:n,opacity:a,delta:o,pixelRatio:e.retina.pixelRatio,transformData:{...l}}),s.shapeClose&&i.closePath(),r>0&&i.stroke(),s.shapeFill&&i.fill())})(b),function(t){let{container:e,context:i,particle:s,radius:n,opacity:a,delta:o,transformData:r}=t;if(!s.shape)return;let l=e.shapeDrawers.get(s.shape);l?.afterDraw&&l.afterDraw({context:i,particle:s,radius:n,opacity:a,delta:o,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}(b),function(t){let{container:e,context:i,particle:s,radius:n,opacity:a,delta:o,transformData:r}=t;if(!s.effect)return;let l=e.effectDrawers.get(s.effect);l&&l.draw({context:i,particle:s,radius:n,opacity:a,delta:o,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}(b),i.globalCompositeOperation="source-over",i.resetTransform()}({container:n,context:s,particle:t,delta:e,colorStyles:m,backgroundMask:r.backgroundMask.enable,composite:r.backgroundMask.composite,radius:i*c**l.sizeRate,opacity:p,shadow:t.options.shadow,transform:f}),this._applyPostDrawUpdaters(t)})}drawParticlePlugin(t,e,i){this.draw(s=>{t.drawParticle&&t.drawParticle(s,e,i)})}drawPlugin(t,e){this.draw(i=>{t.draw&&t.draw(i,e)})}
36async init(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=function(t){if(!tI()&&"undefined"!=typeof MutationObserver)return new MutationObserver(t)}(t=>{for(let e of t)"attributes"===e.type&&"style"===e.attributeName&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(t){tD.error(t)}this.initBackground(),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){let t=this.container.actualOptions.background,e=this.element;if(!e)return;let i=e.style;if(i){if(t.color){let e=t1(this._engine,t.color);i.backgroundColor=e?t7(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}initPlugins(){for(let t of(this._resizePlugins=[],this.container.plugins.values()))t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){for(let t of(this._preDrawUpdaters=[],this._postDrawUpdaters=[],this.container.particles.updaters))t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove(),this._generated=t.dataset&&Y in t.dataset?"true"===t.dataset[Y]:this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=function(t){let e=document.createElement("div").style;if(!t)return e;for(let i in t){let s=t[i];if(!Object.prototype.hasOwnProperty.call(t,i)||tp(s))continue;let n=t.getPropertyValue?.(s);if(!n)continue;let a=t.getPropertyPriority?.(s);a?e.setProperty?.(s,n,a):e.setProperty?.(s,n)}return e}(this.element.style);let e=this._standardSize;e.height=t.offsetHeight,e.width=t.offsetWidth;let i=this.container.retina.pixelRatio,s=this.size;t.height=s.height=e.height*i,t.width=s.width=e.width*i,this._context=this.element.getContext("2d"),this._safeMutationObserver(t=>
36t.disconnect()),this.container.retina.init(),this.initBackground(),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})})}paint(){let t=this.container.actualOptions;this.draw(e=>{t.backgroundMask.enable&&t.backgroundMask.cover?(el(e,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;let t=this.container,e=t.canvas._standardSize,i={width:this.element.offsetWidth,height:this.element.offsetHeight},s=t.retina.pixelRatio,n={width:i.width*s,height:i.height*s};if(i.height===e.height&&i.width===e.width&&n.height===this.element.height&&n.width===this.element.width)return!1;let a={...e};e.height=i.height,e.width=i.width;let o=this.size;return this.element.width=o.width=n.width,this.element.height=o.height=n.height,this.container.started&&t.particles.setResizeFactor({width:e.width/a.width,height:e.height/a.height}),!0}setPointerEvents(t){this.element&&(this._pointerEvents=t,this._repairStyle())}stop(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=void 0,this.draw(t=>el(t,this.size))}async windowResize(){if(!this.element||!this.resize())return;let t=this.container,e=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),e&&await t.refresh()}}function ed(t,e,i,s,n){if(s){let s={passive:!0};tl(n)?s.capture=n:void 0!==n&&(s=n),t.addEventListener(e,i,s)}else t.removeEventListener(e,i,n)}(T=d||(d={})).canvas="canvas",T.parent="parent",T.window="window";class eu{constructor(t){this.container=t,this._doMouseTouchClick=t=>{let e=this.container,i=e.actualOptions;if(this._canPush){let t=e.interactivity.mouse,s=t.position;if(!s)return;t.clickPosition={...s},t.clickTime=new Date().getTime(),tj(i.interactivity.events.onClick.mode,t=>this.container.handleClickMode(t))}"touchend"===t.type&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=t=>{let e=this.container,i=e.options,s=i.defaultThemes,n=t.matches?s.dark:s.light,a=i.themes.find(t=>t.name===n);a?.default.auto&&e.loadTheme(n)},this._handleVisibilityChange=()=>{let t=this.container,e=t.actualOptions;this._mouseTouchFinish(),e.pauseOnBlur&&(document?.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);let t=async()=>{let t=this.container.canvas;await t?.windowResize()};this._resizeTimeout=setTimeout(()=>void t(),this.container.actualOptions.interactivity.events.resize.delay*J)},this._manageInteractivityListeners=(t,e)=>{let i=this._handlers,s=this.container,n=s.actualOptions,a=s.interactivity.element;if(!a)return;let o=s.canvas;o.setPointerEvents(a===o.element?"initial":"none"),(n.interactivity.events.onHover.enable||n.interactivity.events.onClick.enable)&&(ed(a,K,i.mouseMove,e),ed(a,"touchstart",i.touchStart,e),ed(a,"touchmove",i.touchMove,e),n.interactivity.events.onClick.enable?(ed(a,X,i.touchEndClick,e),ed(a,"pointerup",i.mouseUp,e),ed(a,"pointerdown",i.mouseDown,e)):ed(a,X,i.touchEnd,e),ed(a,t,i.mouseLeave,e),ed(a,"touchcancel",i.touchCancel,e))},this._manageListeners=t=>{let e=this._handlers,i=this.container,s=i.actualOptions.interactivity.detectsOn,n=i.canvas.element,a=j;s===d.window?(i.interactivity.element=window,a="pointerout"):s===d.parent&&n?i.interactivity.element=n.parentElement??n.parentNode:i.interactivity.element=n,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(a,t),document&&ed(document,"visibilitychange",e.visibilityChange,t,!1)},this._manageMediaMatch=t=>{let e=this._handlers,i=tL("(prefers-color-scheme: dark)");if(i){if(void 0!==i.addEventListener){ed(i,"change",e.themeChange,t);return}void 0!==i.addListener&&(t?i.addListener(e.oldThemeChange):i.removeListener(e.oldThemeChange))}},this._manageResize=t=>{let e=this._handlers,i=this.container;if(!i.actualOptions.interactivity.events.resize)return;if("undefined"==typeof ResizeObserver){ed(window,"resize",e.resize,t);return}let s=i.canvas.element;this._resizeObserver&&!t?(s&&this._resizeObserver.unobserve(s),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&s&&(this._resizeObserver=new ResizeObserver(t=>{t.find(t=>t.target===s)&&this._handleWindowResize()}),this._resizeObserver.observe(s))},this._mouseDown=()=>{let{interactivity:t}=this.container;if(!t)return;let{mouse:e}=t;e.clicking=!0,e.downPosition=e.position},this._mouseTouchClick=t=>{let e=this.container,i=e.actualOptions,{mouse:s}=e.interactivity;s.inside=!0;let n=!1,a=s.position;if(a&&i.interactivity.events.onClick.enable){for(let t of e.plugins.values())if(t.clickPositionValid&&
36(n=t.clickPositionValid(a)))break;n||this._doMouseTouchClick(t),s.clicking=!1}},this._mouseTouchFinish=()=>{let t=this.container.interactivity;if(!t)return;let e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=j,e.inside=!1,e.clicking=!1},this._mouseTouchMove=t=>{let e;let i=this.container,s=i.actualOptions,n=i.interactivity,a=i.canvas.element;if(!n?.element)return;if(n.mouse.inside=!0,t.type.startsWith("pointer")){if(this._canPush=!0,n.element===window){if(a){let i=a.getBoundingClientRect();e={x:t.clientX-i.left,y:t.clientY-i.top}}}else if(s.interactivity.detectsOn===d.parent){let i=t.target,s=t.currentTarget;if(i&&s&&a){let n=i.getBoundingClientRect(),o=s.getBoundingClientRect(),r=a.getBoundingClientRect();e={x:t.offsetX+2*n.left-(o.left+r.left),y:t.offsetY+2*n.top-(o.top+r.top)}}else e={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY}}else t.target===a&&(e={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY})}else if(this._canPush="touchmove"!==t.type,a){let i=t.touches[t.touches.length-1],s=a.getBoundingClientRect();e={x:i.clientX-(s.left??0),y:i.clientY-(s.top??0)}}let o=i.retina.pixelRatio;e&&(e.x*=o,e.y*=o),n.mouse.position=e,n.status=K},this._touchEnd=t=>{for(let e of Array.from(t.changedTouches))this._touches.delete(e.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{for(let e of Array.from(t.changedTouches))this._touches.delete(e.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{for(let e of Array.from(t.changedTouches))this._touches.set(e.identifier,performance.now());this._mouseTouchMove(t)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:t=>this._mouseTouchMove(t),mouseUp:t=>this._mouseTouchClick(t),touchStart:t=>this._touchStart(t),touchMove:t=>this._mouseTouchMove(t),touchEnd:t=>this._touchEnd(t),touchCancel:t=>this._touchEnd(t),touchEndClick:t=>this._touchEndClick(t),visibilityChange:()=>this._handleVisibilityChange(),themeChange:t=>this._handleThemeChange(t),oldThemeChange:t=>this._handleThemeChange(t),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}(I=u||(u={})).configAdded="configAdded",I.containerInit="containerInit",I.particlesSetup="particlesSetup",I.containerStarted="containerStarted",I.containerStopped="containerStopped",I.containerDestroyed="containerDestroyed",I.
36containerPaused="containerPaused",I.containerPlay="containerPlay",I.containerBuilt="containerBuilt",I.particleAdded="particleAdded",I.particleDestroyed="particleDestroyed",I.particleRemoved="particleRemoved";class ep{constructor(){this.value=""}static create(t,e){let i=new ep;return i.load(t),void 0!==e&&(tc(e)||tu(e)?i.load({value:e}):i.load(e)),i}load(t){!tp(t)&&(tp(t.value)||(this.value=t.value))}}class ef{constructor(){this.color=new ep,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){tp(t)||(void 0!==t.color&&(this.color=ep.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 em{constructor(){this.opacity=1}load(t){tp(t)||(void 0!==t.color&&(this.color=ep.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0===t.opacity||(this.opacity=t.opacity))}}class ev{constructor(){this.composite="destination-out",this.cover=new em,this.enable=!1}load(t){if(!tp(t)){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){let e=t.cover,i=tc(t.cover)?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color||void 0!==e.image?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class eg{constructor(){this.enable=!0,this.zIndex=0}load(t){tp(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0===t.zIndex||(this.zIndex=t.zIndex))}}class ey{constructor(){this.enable=!1,this.mode=[]}load(t){tp(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0===t.mode||(this.mode=t.mode))}}(L=p||(p={})).circle="circle",L.rectangle="rectangle";class eb{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=p.circle}load(t){tp(t)||(void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0===t.type||(this.t
36ype=t.type))}}class ew{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){tp(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 ex{constructor(){this.enable=!1,this.mode=[],this.parallax=new ew}load(t){tp(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class e_{constructor(){this.delay=.5,this.enable=!0}load(t){tp(t)||(void 0!==t.delay&&(this.delay=t.delay),void 0===t.enable||(this.enable=t.enable))}}class ek{constructor(){this.onClick=new ey,this.onDiv=new eb,this.onHover=new ex,this.resize=new e_}load(t){if(tp(t))return;this.onClick.load(t.onClick);let e=t.onDiv;void 0!==e&&(this.onDiv=tj(e,t=>{let e=new eb;return e.load(t),e})),this.onHover.load(t.onHover),this.resize.load(t.resize)}}class ez{constructor(t,e){this._engine=t,this._container=e}load(t){if(tp(t)||!this._container)return;let e=this._engine.interactors.get(this._container);if(e)for(let i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}class eC{constructor(t,e){this.detectsOn=d.window,this.events=new ek,this.modes=new ez(t,e)}load(t){if(tp(t))return;let e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}class eM{load(t){!tp(t)&&(t.position&&(this.position={x:t.position.x??50,y:t.position.y??50,mode:t.position.mode??l.percent}),t.options&&(this.options=tW({},t.options)))}}(F=f||(f={})).screen="screen",F.canvas="canvas";class eP{constructor(){this.maxWidth=1/0,this.options={},this.mode=f.canvas}load(t){!tp(t)&&(tp(t.maxWidth)||(this.maxWidth=t.maxWidth),tp(t.mode)||(t.mode===f.screen?this.mode=f.screen:this.mode=f.canvas),tp(t.options)||(this.options=tW({},t.options)))}}(B=m||(m={})).any="any",B.dark="dark",B.light="light";class eS{constructor(){this.auto=!1,this.mode=m.any,this.value=!1}load(t){tp(t)||(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0===t.value||(this.value=t.value))}}class eO{constructor(){this.name="",this.default=new eS}load(t){tp(t)||(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=tW({},t.options)))}}class eE{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){tp(t)||(void 0!==t.count&&(this.count=tC(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=tC(t.speed)),void 0!==t.decay&&(this.decay=tC(t.decay)),void 0!==t.delay&&(this.delay=tC(t.delay)),void 0===t.sync||(this.sync=t.sync))}}class eD extends eE{constructor(){super(),this.mode=n.auto,this.startValue=c.random}load(t){super.load(t),tp(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0===t.startValue||(this.startValue=t.startValue))}}class eR extends eE{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),tp(t)||void 0===t.offset||(this.offset=tC(t.offset))}}class eT{constructor(){this.h=new eR,this.s=new eR,this.l=new eR}load(t){tp(t)||(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class eI extends ep{constructor(){super(),this.animation=new eT}static create(t,e){let i=new eI;return i.load(t),void 0!==e&&(tc(e)||tu(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),tp(t))return;let e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}(A=v||(v={})).absorb="absorb",A.bounce="bounce",A.destroy="destroy";class eL{constructor(){this.speed=2}load(t){tp(t)||void 0===t.speed||(this.speed=t.speed)}}class eF{constructor(){this.enable=!0,this.retries=0}load(t){tp(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0===t.retries||(this.retries=t.retries))}}class eB{constructor(){this.value=0}load(t){!tp(t)&&(tp(t.value)||(this.value=tC(t.value)))}}class eA extends eB{constructor(){super(),this.animation=new eE}load(t){if(super.load(t),tp(t))return;let e=t.animation;void 0!==e&&this.animation.load(e)}}class eV extends eA{constructor(){super(),this.animation=new eD}load(t){super.load(t)}}class eq extends eB{constructor(){super(),this.value=1}}class eW{constructor(){this.horizontal=new eq,this.vertical=new eq}load(t){tp(t)||(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class eH{constructor(){this.absorb=new eL,this.bounce=new eW,this.enable=!1,this.maxSpeed=50,this.mode=v.bounce,this.overlap=new eF}load(t){tp(t)||(this.absorb.load(t.absorb),this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.maxSpeed&&(this.maxSpeed=tC(t.maxSpeed)),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class eG{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if(tp(t))return;let e=t.options;if(void 0!==e)for(let t in e){let i=e[t];i&&(this.options[t]=tW(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.t
36ype=t.type)}}class e${constructor(){this.offset=0,this.value=90}load(t){tp(t)||(void 0!==t.offset&&(this.offset=tC(t.offset)),void 0!==t.value&&(this.value=tC(t.value)))}}class eU{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(!tp(t)&&(void 0!==t.distance&&(this.distance=tC(t.distance)),void 0!==t.enable&&(this.enable=t.enable),t.rotate)){let e=t.rotate.x;void 0!==e&&(this.rotate.x=e);let i=t.rotate.y;void 0!==i&&(this.rotate.y=i)}}}class eZ{constructor(){this.x=50,this.y=50,this.mode=l.percent,this.radius=0}load(t){tp(t)||(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0===t.radius||(this.radius=t.radius))}}class eY{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){tp(t)||(void 0!==t.acceleration&&(this.acceleration=tC(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=tC(t.maxSpeed)))}}class ej{constructor(){this.clamp=!0,this.delay=new eB,this.enable=!1,this.options={}}load(t){!tp(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=tW(this.options,t.options)))}}class eK{load(t){tp(t)||(void 0!==t.color&&(this.color=ep.create(this.color,t.color)),void 0===t.image||(this.image=t.image))}}class eX{constructor(){this.enable=!1,this.length=10,this.fill=new eK}load(t){tp(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.fill&&this.fill.load(t.fill),void 0===t.length||(this.length=t.length))}}(V=g||(g={})).bounce="bounce",V.none="none",V.out="out",V.destroy="destroy",V.split="split";class eN{constructor(){this.default=g.out}load(t){tp(t)||(void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}class eQ{constructor(){this.acceleration=0,this.enable=!1}load(t){!tp(t)&&(void 0!==t.acceleration&&(this.acceleration=tC(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=tW({},t.position)))}}class eJ{constructor(){this.angle=new e$,this.attract=new eU,this.center=new eZ,this.decay=0,this.distance={},this.direction=s.none,this.drift=0,this.enable=!1,this.gravity=new eY,this.path=new ej,this.outModes=new eN,this.random=!1,this.size=!1,this.speed=2,this.spin=new eQ,this.straight=!1,this.trail=new eX,this.vibrate=!1,this.warp=!1}load(t){if(tp(t))return;this.angle.load(th(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),void 0!==t.decay&&(this.decay=tC(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=th(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=tC(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);let e=t.outModes;void 0!==e&&(td(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=tC(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 e0 extends eD{constructor(){super(),this.destroy=o.none,this.speed=2}load(t){super.load(t),tp(t)||void 0===t.destroy||(this.destroy=t.destroy)}}class e1 extends eV{constructor(){super(),this.animation=new e0,this.value=1}load(t){if(tp(t))return;super.load(t);let e=t.animation;void 0!==e&&this.animation.load(e)}}class e2{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(tp(t))return;void 0!==t.enable&&(this.enable=t.enable);let e=t.width;void 0!==e&&(this.width=e);let i=t.height;void 0!==i&&(this.height=i)}}(q=y||(y={})).delete="delete",q.wait="wait";class e5{constructor(){this.mode=y.delete,this.value=0}load(t){tp(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0===t.value||(this.value=t.value))}}class e3{constructor(){this.density=new e2,this.limit=new e5,this.value=0}load(t){tp(t)||(this.density.load(t.density),this.limit.load(t.limit),void 0===t.value||(this.value=t.value))}}class e6{constructor(){this.blur=0,this.color=new ep,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){!tp(t)&&(void 0!==t.blur&&(this.blur=t.blur),this.color=ep.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 e9{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if(tp(t))return;let e=t.options;if(void 0!==e)for(let t in e){let i=e[t];i&&(this.options[t]=tW(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.t
36ype=t.type)}}class e7 extends eD{constructor(){super(),this.destroy=o.none,this.speed=5}load(t){super.load(t),tp(t)||void 0===t.destroy||(this.destroy=t.destroy)}}class e8 extends eV{constructor(){super(),this.animation=new e7,this.value=3}load(t){if(super.load(t),tp(t))return;let e=t.animation;void 0!==e&&this.animation.load(e)}}class e4{constructor(){this.width=0}load(t){tp(t)||(void 0!==t.color&&(this.color=eI.create(this.color,t.color)),void 0!==t.width&&(this.width=tC(t.width)),void 0!==t.opacity&&(this.opacity=tC(t.opacity)))}}class it extends eB{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),tp(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 ie{constructor(t,e){this._engine=t,this._container=e,this.bounce=new eW,this.collisions=new eH,this.color=new eI,this.color.value="#fff",this.effect=new eG,this.groups={},this.move=new eJ,this.number=new e3,this.opacity=new e1,this.reduceDuplicates=!1,this.shadow=new e6,this.shape=new e9,this.size=new e8,this.stroke=new e4,this.zIndex=new it}load(t){if(tp(t))return;if(void 0!==t.groups)for(let e of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,e))continue;let i=t.groups[e];void 0!==i&&(this.groups[e]=tW(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(eI.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),void 0!==t.interactivity&&(this.interactivity=tW({},t.interactivity));let e=t.stroke;if(e&&(this.stroke=tj(e,t=>{let e=new e4;return e.load(t),e})),this._container){let e=this._engine.updaters.get(this._container);if(e)for(let i of e)i.loadOptions&&i.loadOptions(this,t);let i=this._engine.interactors.get(this._container);if(i)for(let e of i)e.loadParticlesOptions&&e.loadParticlesOptions(this,t)}}}function ii(t,...e){for(let i of e)t.load(i)}function is(t,e,...i){let s=new ie(t,e);return ii(s,...i),s}class ia{constructor(t,e){this._findDefaultTheme=t=>this.themes.find(e=>e.default.value&&e.default.mode===t)??this.themes.find(t=>t.default.value&&t.default.mode===m.any),this._importPreset=t=>{this.load(this._engine.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new ef,this.backgroundMask=new ev,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new eg,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new eC(t,e),this.manualParticles=[],this.particles=is(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){if(tp(t))return;void 0!==t.preset&&tj(t.preset,t=>this._importPreset(t)),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=tC(t.delay));let e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=tC(t.duration));let i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);let s=t.fullScreen;tl(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map(t=>{let e=new eM;return e.load(t),e})),this.particles.load(t.particles),this.style=tW(this.style,t.style),this._engine.loadOptions(this,t),void 0!==t.smooth&&(this.smooth=t.smooth);let n=this._engine.interactors.get(this._container);if(n)for(let e of n)e.loadOptions&&e.loadOptions(this,t);if(void 0!==t.responsive)for(let e of t.responsive){let t=new eP;t.load(e),this.responsive.push(t)}if(this.responsive.sort((t,e)=>t.maxWidth-e.maxWidth),void 0!==t.themes)for(let e of t.themes){let t=this.themes.find(t=>t.name===e.name);if(t)t.load(e);else{let t=new eO;t.load(e),this.themes.push(t)}}this.defaultThemes.dark=this._findDefaultTheme(m.dark)?.name,this.defaultThemes.light=this._findDefaultTheme(m.light)?.name}setResponsive(t,e,i){this.load(i);let s=this.responsive.find(i=>i.mode===f.screen&&screen?i.maxWidth>
36screen.availWidth:i.maxWidth*e>t);return this.load(s?.options),s?.maxWidth}setTheme(t){if(t){let e=this.themes.find(e=>e.name===t);e&&this.load(e.options)}else{let t=tL("(prefers-color-scheme: dark)"),e=t?.matches,i=this._findDefaultTheme(e?m.dark:m.light);i&&this.load(i.options)}}}(W=b||(b={})).external="external",W.particles="particles";class io{constructor(t,e){this.container=e,this._engine=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(t){for(let e of this._externalInteractors)e.isEnabled()&&e.interact(t)}handleClickMode(t){for(let e of this._externalInteractors)e.handleClickMode?.(t)}async init(){for(let t of(this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[],this._interactors)){switch(t.type){case b.external:this._externalInteractors.push(t);break;case b.particles:this._particleInteractors.push(t)}t.init()}}particlesInteract(t,e){for(let i of this._externalInteractors)i.clear(t,e);for(let i of this._particleInteractors)i.isEnabled(t)&&i.interact(t,e)}reset(t){for(let e of this._externalInteractors)e.isEnabled()&&e.reset(t);for(let e of this._particleInteractors)e.isEnabled(t)&&e.reset(t)}}function ir(t){if(!tF(t.outMode,t.checkModes))return;let e=2*t.radius;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord<e&&t.setCb(t.radius)}(H=w||(w={})).normal="normal",H.inside="inside",H.outside="outside";class il{constructor(t,e){this.container=e,this._calcPosition=(t,e,i,s=tr)=>{var n;for(let s of t.plugins.values()){let t=void 0!==s.particlePosition?s.particlePosition(e,this):void 0;if(t)return tf.create(t.x,t.y,i)}let a=(n={size:t.canvas.size,position:e},{x:n.position?.x??ty()*n.size.width,y:n.position?.y??ty()*n.size.height}),o=tf.create(a.x,a.y,i),r=this.getRadius(),l=this.options.move.outModes,c=e=>{ir({outMode:e,checkModes:[g.bounce],coord:o.x,maxCoord:t.canvas.size.width,setCb:t=>o.x+=t,radius:r})},h=e=>{ir({outMode:e,checkModes:[g.bounce],coord:o.y,maxCoord:t.canvas.size.height,setCb:t=>o.y+=t,radius:r})};return(c(l.left??l.default),c(l.right??l.default),h(l.top??l.default),h(l.bottom??l.default),this._checkOverlap(o,s))?this._calcPosition(t,void 0,i,s+1):o},this._calculateVelocity=()=>{let t=(function(t){let e=tm.origin;return e.length=1,e.angle=t,e})(this.direction).copy(),e=this.options.move;if(e.direction===s.inside||e.direction===s.outside)return t;let i=tS(t_(e.angle.value)),n=tS(t_(e.angle.offset)),a={left:n-.5*i,right:n+.5*i};return e.straight||(t.angle+=tx(tC(a.left,a.right))),e.random&&"number"==typeof e.speed&&(t.length*=ty()),t},this._checkOverlap=(t,e=tr)=>{let i=this.options.collisions,s=this.getRadius();if(!i.enable)return!1;let n=i.overlap;if(n.enable)return!1;let a=n.retries;if(a>=0&&e>a)throw Error(`${N} particle is overlapping and can't be placed`);return!!this.container.particles.find(e=>tP(t,e.position)<s+e.getRadius())},this._getRollColor=t=>{if(!t||!this.roll||!this.backColor&&!this.roll.alter)return t;let e=this.roll.horizontal&&this.roll.vertical?2:1,i=this.roll.horizontal?.5*Math.PI:0;if(!(Math.floor(((this.roll.angle??0)+i)/(Math.PI/e))%2))return t;if(this.backColor)return this.backColor;if(this.roll.alter){var s,n;return s=this.roll.alter.type,n=this.roll.alter.value,{h:t.h,s:t.s,l:t.l+(s===h.darken?-1:1)*n}}return t},this._initPosition=t=>{let e=this.container,i=t_(this.options.zIndex.value);this.position=this._calcPosition(e,t,tb(i,0,e.zLayers)),this.initialPosition=this.position.copy();let n=e.canvas.size;switch(this.moveCenter={...tQ(this.options.move.center,n),radius:this.options.move.center.radius??0,mode:this.options.move.center.mode??l.percent},this.direction=function(t,e,i){if(th(t))return tS(t);switch(t){case s.top:return-(.5*Math.PI);case s.topRight:return-(.25*Math.PI);case s.right:return 0;case s.bottomRight:return .25*Math.PI;case s.bottom:return .5*Math.PI;case s.bottomLeft:return .75*Math.PI;case s.left:return Math.PI;case s.topLeft:return-(.75*Math.PI);case s.inside:return Math.atan2(i.y-e.y,i.x-e.x);case s.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return ty()*ts}}(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case s.inside:this.outType=w.inside;break;case s.outside:this.outType=w.outside}this.offset=tm.origin},this._engine=t}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;let e=this.container,i=this.pathGenerator,s=e.shapeDrawers.get(this.shape);
36for(let i of(s?.particleDestroy?.(this),e.plugins.values()))i.particleDestroyed?.(this,t);for(let i of e.particles.updaters)i.particleDestroyed?.(this,t);i?.reset(this),this._engine.dispatchEvent(u.particleDestroyed,{container:this.container,data:{particle:this}})}draw(t){let e=this.container,i=e.canvas;for(let s of e.plugins.values())i.drawParticlePlugin(s,this,t);i.drawParticle(this,t)}getFillColor(){return this._getRollColor(this.bubble.color??ei(this.color))}getMass(){return this.getRadius()**2*Math.PI*.5}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}getStrokeColor(){return this._getRollColor(this.bubble.color??ei(this.strokeColor))}init(t,e,i,s){let n=this.container,a=this._engine;this.id=t,this.group=s,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=w.normal,this.ignoresResizeRatio=!0;let o=n.retina.pixelRatio,r=n.actualOptions,l=is(this._engine,n,r.particles),{reduceDuplicates:c}=l,h=l.effect.type,d=l.shape.type;this.effect=tK(h,this.id,c),this.shape=tK(d,this.id,c);let u=l.effect,p=l.shape;if(i){if(i.effect?.type){let t=tK(i.effect.type,this.id,c);t&&(this.effect=t,u.load(i.effect))}if(i.shape?.type){let t=tK(i.shape.type,this.id,c);t&&(this.shape=t,p.load(i.shape))}}if(this.effect===ti){let t=[...this.container.effectDrawers.keys()];this.effect=t[Math.floor(ty()*t.length)]}if(this.shape===ti){let t=[...this.container.shapeDrawers.keys()];this.shape=t[Math.floor(ty()*t.length)]}this.effectData=function(t,e,i,s){let n=e.options[t];if(n)return tW({close:e.close,fill:e.fill},tK(n,i,s))}(this.effect,u,this.id,c),this.shapeData=function(t,e,i,s){let n=e.options[t];if(n)return tW({close:e.close,fill:e.fill},tK(n,i,s))}(this.shape,p,this.id,c),l.load(i);let f=this.effectData;f&&l.load(f.particles);let m=this.shapeData;m&&l.load(m.particles);let v=new eC(a,n);v.load(n.actualOptions.interactivity),v.load(l.interactivity),this.interactivity=v,this.effectFill=f?.fill??l.effect.fill,this.effectClose=f?.close??l.effect.close,this.shapeFill=m?.fill??l.shape.fill,this.shapeClose=m?.close??l.shape.close,this.options=l;let g=this.options.move.path;this.pathDelay=t_(g.delay.value)*J,g.generator&&(this.pathGenerator=this._engine.getPathGenerator(g.generator),this.pathGenerator&&n.addPath(g.generator,this.pathGenerator)&&this.pathGenerator.init(n)),n.retina.initParticle(this),this.size=tN(this.options.size,o),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(e),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-t_(this.options.move.decay);let y=n.particles;y.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24;let b=n.effectDrawers.get(this.effect);!b&&(b=this._engine.getEffectDrawer(this.effect))&&n.effectDrawers.set(this.effect,b),b?.loadEffect&&b.loadEffect(this);let x=n.shapeDrawers.get(this.shape);!x&&(x=this._engine.getShapeDrawer(this.shape))&&n.shapeDrawers.set(this.shape,x),x?.loadShape&&x.loadShape(this);let _=x?.getSidesCount;for(let t of(_&&(this.sides=_(this)),this.spawning=!1,this.shadowColor=t1(this._engine,this.options.shadow.color),y.updaters))t.init(this);for(let t of y.movers)t.init?.(this);for(let t of(b?.particleInit?.(n,this),x?.particleInit?.(n,this),n.plugins.values()))t.particleCreated?.(this)}isInsideCanvas(){let t=this.getRadius(),e=this.container.canvas.size,i=this.position;return i.x>=-t&&i.y>=-t&&i.y<=e.height+t&&i.x<=e.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(let t of this.container.particles.updaters)t.reset?.(this)}}class ic{constructor(t,e){this.position=t,this.particle=e}}(G=x||(x={})).circle="circle",G.rectangle="rectangle";class ih{constructor(t,e,i){this.position={x:t,y:e},this.type=i}}class id extends ih{constructor(t,e,i){super(t,e,x.circle),this.radius=i}contains(t){return tP(t,this.position)<=this.radius}intersects(t){let e=this.position,i=t.position,s={x:Math.abs(i.x-e.x),y:Math.abs(i.y-e.y)},n=this.radius;if(t instanceof id||t.type===x.circle)return n+t.radius>Math.sqrt(s.x**2+s.y**2);if(t instanceof iu||t.type===x.rectangle){let{width:e,height:i}=t.size;return Math.pow(s.x-e,2)+Math.pow(s.y-i,2)<=n**2||s.x<=n+e&&s.y<=n+i||s.x<=e||s.y<=i}return!1}}class iu extends ih{constructor(t,e,i,s){super(t,e,x.rectangle),this.size={height:s,width:i}}contains(t){let e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){if(t instanceof id)return t.intersects(this);let e=this.size.width,i=this.size.height,s=this.position,n=t.position,a=t instanceof iu?t.size:{width:0,height:0},o=a.width,r=a.height;return n.x<s.x+e&&n.x+o>s.x&&n.y<s.y+i&&n.y+r>s.y}}class ip{constructor(t,e){this.rectangle=t,this.capacity=e,this._subdivide=()=>{let{x:t,y:e}=this.rectangle.position,{width:i,height:s}=this.rectangle.size,{capacity:n}=this;for(let a=0;a<4;a++){let o=a%2;this._subs.push(new ip(new iu(t+.5*i*o,e+.5*s*(Math.round(.5*a)-o),.5*i,.5*s),n))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(t){return!!this.rectangle.contains(t.position)&&(this._points.length<this.capacity?(this._points.push(t),!0):(this._divided||this._subdivide(),this._subs.some(e=>e.insert(t))))}query(t,e){let i=[];if(!t.intersects(this.rectangle))return[];for(let s of this._points)!t.contains(s.position)&&tP(t.position,s.position)>s.particle.getRadius()&&(!e||e(s.particle))||i.push(s.particle);if(this._divided)for(let s of this._subs)i.push(...s.query(t,e));return i}queryCircle(t,e,i){return this.query(new id(t.x,t.y,e),i)}queryRectangle(t,e,i){return this.query(new iu(t.x,t.y,e.width,e.height),i)}}let im=t=>{let{height:e,width:i}=t;return new iu(-.25*i,-.25*e,1.5*i,1.5*e)};class iv{constructor(t,e){this._addToPool=(...t)=>{this._pool.push(...t)},this._applyDensity=(t,e,i,s)=>{let n=t.number;if(!t.number.density?.enable){void 0===i?this._limit=n.limit.value:(s?.number.limit?.value??n.limit.value)&&this._groupLimits.set(i,s?.number.limit?.value??n.limit.value);return}let a=this._initDensityFactor(n.density),o=n.value,r=n.limit.value>0?n.limit.value:o,l=Math.min(o,r)*a+e,c=Math.min(this.count,this.filter(t=>t.group===i).length);void 0===i?this._limit=n.limit.value*a:this._groupLimits.set(i,n.limit.value*a),c<l?this.push(Math.abs(l-c),void 0,t,i):c>l&&this.removeQuantity(c-l,i)},this._initDensityFactor=t=>{let e=this._container;if(!e.canvas.element||!t.enable)return 1;let i=e.canvas.element,s=e.retina.pixelRatio;return i.width*i.height/(t.height*t.width*s**2)},this._pushParticle=(t,e,i,s)=>{try{let n=this._pool.pop();n||(n=new il(this._engine,this._container)),n.init(this._nextId,t,e,i);let a=!0;if(s&&(a=s(n)),!a)return;return this._array.push(n),this._zArray.push(n),this._nextId++,this._engine.dispatchEvent(u.particleAdded,{container:this._container,data:{particle:n}}),n}catch(t){tD.warning(`${N} adding particle: ${t}`)}},this._removeParticle=(t,e,i)=>{let s=this._array[t];if(!s||s.group!==e)return!1;let n=this._zArray.indexOf(s);return this._array.splice(t,1),this._zArray.splice(n,1),s.destroy(i),this._engine.dispatchEvent(u.particleRemoved,{container:this._container,data:{particle:s}}),this._addToPool(s),!0},this._engine=t,this._container=e,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new io(t,e),this._pluginsInitialized=!1;let i=e.canvas.size;this.quadTree=new ip(im(i),4),this.movers=[],this.updaters=[]}get count(){return this._array.length}
36addManualParticles(){let t=this._container;t.actualOptions.manualParticles.forEach(e=>this.addParticle(e.position?tQ(e.position,t.canvas.size):void 0,e.options))}addParticle(t,e,i,s){let n=this._container.actualOptions.particles.number.limit.mode,a=void 0===i?this._limit:this._groupLimits.get(i)??this._limit,o=this.count;if(a>0)switch(n){case y.delete:{let t=o+1-a;t>0&&this.removeQuantity(t);break}case y.wait:if(o>=a)return}return this._pushParticle(t,e,i,s)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(t){let e=this._container,i=e.canvas;for(let s of(i.clear(),this.update(t),e.plugins.values()))i.drawPlugin(s,t);for(let e of this._zArray)e.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}handleClickMode(t){this._interactionManager.handleClickMode(t)}async init(){let t=this._container,e=t.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let i=!1;for(let e of t.plugins.values())if(i=e.particlesInitialization?.()??i)break;if(this.addManualParticles(),!i){let t=e.particles,i=t.groups;for(let e in i){let s=i[e];for(let i=this.count,n=0;n<s.number?.value&&i<t.number.value;i++,n++)this.addParticle(void 0,s,e)}for(let e=this.count;e<t.number.value;e++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;let t=this._container;for(let e of(this.movers=await this._engine.getMovers(t,!0),this.updaters=await this._engine.getUpdaters(t,!0),await this._interactionManager.init(),t.pathGenerators.values()))e.init(t)}push(t,e,i,s){for(let n=0;n<t;n++)this.addParticle(e?.position,i,s)}async redraw(){this.clear(),await this.init(),this.draw({value:0,factor:0})}remove(t,e,i){this.removeAt(this._array.indexOf(t),void 0,e,i)}removeAt(t,e=1,i,s){if(t<0||t>this.count)return;let n=0;for(let a=t;n<e&&a<this.count;a++)this._removeParticle(a,i,s)&&(a--,n++)}removeQuantity(t,e){this.removeAt(0,t,e)}setDensity(){let t=this._container.actualOptions,e=t.particles.groups,i=t.manualParticles.length;for(let t in e)this._applyDensity(e[t],i,t);this._applyDensity(t.particles,i)}setLastZIndex(t){this._lastZIndex=t,this._needsSort=this._needsSort||this._lastZIndex<t}setResizeFactor(t){this._resizeFactor=t}update(t){let e=this._container,i=new Set;for(let t of(this.quadTree=new ip(im(e.canvas.size),4),e.pathGenerators.values()))t.update();for(let i of e.plugins.values())i.update?.(t);let s=this._resizeFactor;for(let e of this._array){for(let i of(s&&!e.ignoresResizeRatio&&(e.position.x*=s.width,e.position.y*=s.height,e.initialPosition.x*=s.width,e.initialPosition.y*=s.height),e.ignoresResizeRatio=!1,this._interactionManager.reset(e),this._container.plugins.values())){if(e.destroyed)break;i.particleUpdate?.(e,t)}for(let i of this.movers)i.isEnabled(e)&&i.move(e,t);if(e.destroyed){i.add(e);continue}this.quadTree.insert(new ic(e.getPosition(),e))}if(i.size){let t=t=>!i.has(t);for(let e of(this._array=this.filter(t),this._zArray=this._zArray.filter(t),i))this._engine.dispatchEvent(u.particleRemoved,{container:this._container,data:{particle:e}});this._addToPool(...i)}for(let e of(this._interactionManager.externalInteract(t),this._array)){for(let i of this.updaters)i.update(e,t);e.destroyed||e.spawning||this._interactionManager.particlesInteract(e,t)}if(delete this._resizeFactor,this._needsSort){let t=this._zArray;t.sort((t,e)=>e.position.z-t.position.z||t.id-e.id),this._lastZIndex=t[t.length-1].position.z,this._needsSort=!1}}}class ig{constructor(t){this.container=t,this.pixelRatio=1,this.reduceFactor=1}init(){let t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||tI()?1:devicePixelRatio,this.reduceFactor=1;let i=this.pixelRatio,s=t.canvas;if(s.element){let t=s.element;s.size.width=t.offsetWidth*i,s.size.height=t.offsetHeight*i}let n=e.particles,a=n.move;this.maxSpeed=t_(a.gravity.maxSpeed)*i,this.sizeAnimationSpeed=t_(n.size.animation.speed)*i}initParticle(t){let e=t.options,i=this.pixelRatio,s=e.move,n=s.distance,a=t.retina;a.moveDrift=t_(s.drift)*i,a.moveSpeed=t_(s.speed)*i,a.sizeAnimationSpeed=t_(e.size.animation.speed)*i;let o=a.maxDistance;o.horizontal=void 0!==n.horizontal?n.horizontal*i:void 0,o.vertical=void 0!==n.vertical?n.vertical*i:void 0,a.maxSpeed=t_(s.gravity.maxSpeed)*i}}function iy(t){return t&&!t.destroyed}function ib(t,e,...i){let s=new ia(t,e);return ii(s,...i),s}class iw{constructor(t,e,i){this._intersectionManager=t=>{if(iy(this)&&this.actualOptions.pauseOnOutsideViewport)for(let e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play():this.pause())},this._nextFrame=t=>{try{if(!this._smooth&&void 0!==this._lastFrameTime&&t<this._lastFrameTime+J/this.fpsLimit){this.draw(!1);return}this._lastFrameTime??=t;let e=function(t,e=60,i=!1){return{value:t,factor:i?60/e:60*t/J}}(t-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(e.value),this._lastFrameTime=t,e.value>J){this.draw(!1);return}if(this.particles.draw(e),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(t){tD.error(`${N} in animation loop`,t)}},this._engine=t,this.id=Symbol(e),this.fpsLimit=120,this._smooth=!1,this._delay=0,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._clickHandlers=new Map,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new ig(this),this.canvas=new eh(this,this._engine),this.particles=new iv(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=ib(this._engine,this),this.actualOptions=ib(this._engine,this),this._eventListeners=new eu(this),this._intersectionObserver=function(t){if(!tI()&&"undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}(t=>this._intersectionManager(t)),this._engine.dispatchEvent(u.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&iy(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!iy(this))return;let e=this.interactivity.element;if(!e)return;let i=(e,i,s)=>{if(!iy(this))return;let n=this.retina.pixelRatio,a={x:i.x*n,y:i.y*n};t(e,this.particles.quadTree.queryCircle(a,s*n))},s=!1,n=!1;for(let[t,a]of(this._clickHandlers.set("click",t=>{if(!iy(this))return;let e={x:t.offsetX||t.clientX,y:t.offsetY||t.clientY};i(t,e,1)}),this._clickHandlers.set("touchstart",()=>{iy(this)&&(s=!0,n=!1)}),this._clickHandlers.set("touchmove",()=>{iy(this)&&(n=!0)}),this._clickHandlers.set("touchend",t=>{if(iy(this)){if(s&&!n){let e=t.touches[t.touches.length-1];if(!e&&!(e=t.changedTouches[t.changedTouches.length-1]))return;let s=this.canvas.element,n=s?s.getBoundingClientRect():void 0;i(t,{x:e.clientX-(n?n.left:0),y:e.clientY-(n?n.top:0)},Math.max(e.radiusX,e.radiusY))}s=!1,n=!1}}),this._clickHandlers.set("touchcancel",()=>{iy(this)&&(s=!1,n=!1)}),this._clickHandlers))e.addEventListener(t,a)}addLifeTime(t){this._lifeTime+=t}addPath(t,e,i=!1){return!(!iy(this)||!i&&this.pathGenerators.has(t))&&(this.pathGenerators.set(t,e),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){if(iy(this)){for(let[t,e]of this._clickHandlers)this.interactivity.element?.removeEventListener(t,e);this._clickHandlers.clear()}}destroy(t=!0){if(iy(this)){for(let t of(this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy(),this.effectDrawers.values())
36)t.destroy?.(this);for(let t of this.shapeDrawers.values())t.destroy?.(this);for(let t of this.effectDrawers.keys())this.effectDrawers.delete(t);for(let t of this.shapeDrawers.keys())this.shapeDrawers.delete(t);if(this._engine.clearPlugins(this),this.destroyed=!0,t){let t=this._engine.items,e=t.findIndex(t=>t===this);e>=0&&t.splice(e,1)}this._engine.dispatchEvent(u.containerDestroyed,{container:this})}}draw(t){if(!iy(this))return;let e=t,i=t=>{e&&(this._lastFrameTime=void 0,e=!1),this._nextFrame(t)};this._drawAnimationFrame=tg.nextFrame(t=>i(t))}async export(t,e={}){for(let i of this.plugins.values()){if(!i.export)continue;let s=await i.export(t,e);if(s.supported)return s.blob}tD.error(`${N} - Export plugin with type ${t} not found`)}handleClickMode(t){if(iy(this))for(let e of(this.particles.handleClickMode(t),this.plugins.values()))e.handleClickMode?.(t)}async init(){if(!iy(this))return;for(let t of this._engine.getSupportedEffects()){let e=this._engine.getEffectDrawer(t);e&&this.effectDrawers.set(t,e)}for(let t of this._engine.getSupp
36ortedShapes()){let e=this._engine.getShapeDrawer(t);e&&this.shapeDrawers.set(t,e)}for(let[t,e]of(await this.particles.initPlugins(),this._options=ib(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=ib(this._engine,this,this._options),await this._engine.getAvailablePlugins(this)))this.plugins.set(t,e);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();let{zLayers:t,duration:e,delay:i,fpsLimit:s,smooth:n}=this.actualOptions;for(let a of(this.zLayers=t,this._duration=t_(e)*J,this._delay=t_(i)*J,this._lifeTime=0,this.fpsLimit=s>0?s:120,this._smooth=n,this.effectDrawers.values()))await a.init?.(this);for(let t of this.shapeDrawers.values())await t.init?.(this);for(let t of this.plugins.values())await t.init?.();for(let t of(this._engine.dispatchEvent(u.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity(),this.plugins.values()))t.particlesSetup?.();this._engine.dispatchEvent(u.particlesSetup,{container:this})}async loadTheme(t){iy(this)&&(this._currentTheme=t,await this.refresh())}pause(){if(iy(this)){if(void 0!==this._drawAnimationFrame){var t;t=this._drawAnimationFrame,tg.cancel(t),delete this._drawAnimationFrame}if(!this._paused){for(let t of this.plugins.values())t.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(u.containerPaused,{container:this})}}}play(t){if(!iy(this))return;let e=this._paused||t;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),e)for(let t of this.plugins.values())t.play&&t.play();this._engine.dispatchEvent(u.containerPlay,{container:this}),this.draw(e??!1)}async refresh(){if(iy(this))return this.stop(),this.start()}async reset(t){if(iy(this))return this._initialSourceOptions=t,this._sourceOptions=t,this._options=ib(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=ib(this._engine,this,this._options),this.refresh()}async start(){iy(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{let e=async()=>{for(let t of(this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element),this.plugins.values()))await t.start?.();this._engine.dispatchEvent(u.containerStarted,{container:this}),this.play(),t()};this._delayTimeout=setTimeout(()=>void e(),this._delay)}))}stop(){if(iy(this)&&this.started){for(let t of(this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element),this.plugins.values()))t.stop?.();for(let t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent(u.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];let t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth!==t&&(this._responsiveMaxWidth=t,!0)}}class ix{constructor(){this._listeners=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){let i=this._listeners.get(t);i?.forEach(t=>t(e))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){let i=this._listeners.get(t);if(!i)return;let s=i.length,n=i.indexOf(e);n<0||(1===s?this._listeners.delete(t):i.splice(n,1))}}async function i_(t,e,i,s=!1){let n=e.get(t);return(!n||s)&&(n=await Promise.all([...i.values()].map(e=>e(t))),e.set(t,n)),n}async function ik(t){let e=tK(t.url,t.index);if(!e)return t.fallback;let i=await fetch(e);return i.ok?await i.json():(tD.error(`${N} ${i.status} while retrieving config file`),t.fallback)}let iz=t=>{let e;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===to)(e=t).dataset[Y]||(e.dataset[Y]=ta);else{let i=t.getElementsByTagName(to);i.length?(e=i[0]).dataset[Y]=ta:((e=document.createElement(to)).dataset[Y]=tn,t.appendChild(e))}let i="100%";return e.style.width||(e.style.width=i),e.style.height||(e.style.height=i),e},iC=(t,e)=>{let i=e??document.getElementById(t);
36return i||((i=document.createElement("div")).id=t,i.dataset[Y]=tn,document.body.append(i)),i};class iM{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new ix,this._initialized=!1,this.plugins=[],this.colorManagers=new Map,this.easingFunctions=new Map,this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){let t={};for(let[e,i]of this._configs)t[e]=i;return t}get items(){return this._domArray}get version(){return"3.9.1"}async addColorManager(t,e=!0){this.colorManagers.set(t.key,t),await this.refresh(e)}addConfig(t){let e=t.key??t.name??"default";this._configs.set(e,t),this._eventDispatcher.dispatchEvent(u.configAdded,{data:{name:e,config:t}})}async addEasing(t,e,i=!0){this.getEasing(t)||(this.easingFunctions.set(t,e),await this.refresh(i))}async addEffect(t,e,i=!0){tj(t,t=>{this.getEffectDrawer(t)||this.effectDrawers.set(t,e)}),await this.refresh(i)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}async addInteractor(t,e,i=!0){this._initializers.interactors.set(t,e),await this.refresh(i)}async addMover(t,e,i=!0){this._initializers.movers.set(t,e),await this.refresh(i)}async addParticleUpdater(t,e,i=!0){this._initializers.updaters.set(t,e),await this.refresh(i)}async addPathGenerator(t,e,i=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,e),await this.refresh(i)}async addPlugin(t,e=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(e)}async addPreset(t,e,i=!1,s=!0){(i||!this.getPreset(t))&&this.presets.set(t,e),await this.refresh(s)}async addShape(t,e=!0){for(let e of t.validTypes)this.getShapeDrawer(e)||this.shapeDrawers.set(e,t);await this.refresh(e)}checkVersion(t){if(this.version!==t)throw Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${t}`)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}dom(){return this.items}domItem(t){return this.item(t)}async getAvailablePlugins(t){let e=new Map;for(let i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,await i.getPlugin(t));return e}getEasing(t){return this.easingFunctions.get(t)??(t=>t)}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,e=!1){return i_(t,this.interactors,this._initializers.interactors,e)}async getMovers(t,e=!1){return i_(t,this.movers,this._initializers.movers,e)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find(e=>e.id===t)}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,e=!1){return i_(t,this.updaters,this._initializers.updaters,e)}init(){this._initialized||(this._initialized=!0)}item(t){let{items:e}=this,i=e[t];if(!i||i.destroyed){e.splice(t,1);return}return i}async load(t){let e=t.id??t.element?.id??`tsparticles${Math.floor(1e4*ty())}`,{index:i,url:s}=t,n=tK(s?await ik({fallback:t.options,url:s,index:i}):t.options,i),{items:a}=this,o=a.findIndex(t=>t.id.description===e),r=new iw(this,e,n);if(o>=0){let t=this.item(o);t&&!t.destroyed&&t.destroy(!1),a.splice(o,t?1:0,r)}else a.push(r);let l=iz(iC(e,t.element));return r.canvas.loadCanvas(l),await r.start(),r}loadOptions(t,e){this.plugins.forEach(i=>i.loadOptions?.(t,e))}loadParticlesOptions(t,e,...i){let s=this.updaters.get(t);s&&s.forEach(t=>t.loadOptions?.(e,...i))}async refresh(t=!0){t&&await Promise.all(this.items.map(t=>t.refresh()))}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}setOnClickHandler(t){let{items:e}=this;if(!e.length)throw Error(`${N} can only set click handlers after calling tsParticles.load()`);e.forEach(e=>e.addClickHandler(t))}}class iP{constructor(t){this.type=b.external,this.container=t}}class iS{constructor(t){this.type=b.particles,this.container=t}}($=_||(_={})).clockwise="clockwise",$.counterClockwise="counter-clockwise",$.random="random",(U=k||(k={})).linear="linear",U.radial="radial",U.random="random",(Z=z||(z={})).easeInBack="ease-in-back",Z.easeInCirc="ease-in-circ",Z.easeInCubic="ease-in-cubic",Z.easeInLinear="ease-in-linear",Z.easeInQuad="ease-in-quad",Z.easeInQuart="ease-in-quart",Z.easeInQuint="ease-in-quint",Z.easeInExpo="ease-in-expo",Z.easeInSine="ease-in-sine",Z.easeOutBack="ease-
36out-back",Z.easeOutCirc="ease-out-circ",Z.easeOutCubic="ease-out-cubic",Z.easeOutLinear="ease-out-linear",Z.easeOutQuad="ease-out-quad",Z.easeOutQuart="ease-out-quart",Z.easeOutQuint="ease-out-quint",Z.easeOutExpo="ease-out-expo",Z.easeOutSine="ease-out-sine",Z.easeInOutBack="ease-in-out-back",Z.easeInOutCirc="ease-in-out-circ",Z.easeInOutCubic="ease-in-out-cubic",Z.easeInOutLinear="ease-in-out-linear",Z.easeInOutQuad="ease-in-out-quad",Z.easeInOutQuart="ease-in-out-quart",Z.easeInOutQuint="ease-in-out-quint",Z.easeInOutExpo="ease-in-out-expo",Z.easeInOutSine="ease-in-out-sine";let iO=function(){let t=new iM;return t.init(),t}();tI()||(window.tsParticles=iO)},5250:function(t,e,i){i.d(e,{ZP:function(){return o},bP:function(){return r}});var s=i(1842),n=i(7437),a=i(2265);let o=t=>{let e=t.id??"tsparticles";return(0,a.useEffect)(()=>{let i;return s.S6T.load({id:e,url:t.url,options:t.options}).then(e=>{var s;i=e,null==(s=t.particlesLoaded)||s.call(t,e)}),()=>{null==i||i.destroy()}},[e,t,t.url,t.options]),(0,n.jsx)("div",{id:e,className:t.className})};async function r(t){await t(s.S6T)}},7550:function(t,e,i){i.d(e,{S:function(){return eB}});var s,n,a,o,r,l,c,h,d,u,p,f,m=i(1842);let v=2*Math.PI;class g{init(t){let e=t.options.move.gravity;t.gravity={enable:e.enable,acceleration:(0,m.Gu7)(e.acceleration),inverse:e.inverse},function(t){let e=t.container,i=t.options.move.spin;if(!i.enable)return;let s=i.position??{x:50,y:50},n={x:.01*s.x*e.canvas.size.width,y:.01*s.y*e.canvas.size.height},a=t.getPosition(),o=(0,m.Spd)(a,n),r=(0,m.Gu7)(i.acceleration);t.retina.spinAcceleration=r*e.retina.pixelRatio,t.spin={center:n,direction:t.velocity.x>=0?m.RnL.clockwise:m.RnL.counterClockwise,angle:(0,m.sZz)()*v,radius:o,acceleration:t.retina.spinAcceleration}}(t)}isEnabled(t){return!t.destroyed&&t.options.move.enable}move(t,e){let i=t.options,s=i.move;if(!s.enable)return;let n=t.container,a=n.retina.pixelRatio;t.retina.moveSpeed??=(0,m.Gu7)(s.speed)*a,t.retina.moveDrift??=(0,m.Gu7)(t.options.move.drift)*a;let o=t.slow.inRange?t.slow.factor:1,r=n.retina.reduceFactor,l=t.retina.moveSpeed,c=t.retina.moveDrift,h=(0,m.KIV)(i.size.value)*a,d=l*(s.size?t.getRadius()/h:1)*o*(e.factor||1)/2,u=t.retina.maxSpeed??n.retina.maxSpeed;s.spin.enable?function(t,e,i){let s=t.container;if(!t.spin)return;let n=t.spin.direction===m.RnL.clockwise,a={x:n?Math.cos:Math.sin,y:n?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*a.x(t.spin.angle)*i,t.position.y=t.spin.center.y+t.spin.radius*a.y(t.spin.angle)*i,t.spin.radius+=t.spin.acceleration*i;let o=Math.max(s.canvas.size.width,s.canvas.size.height),r=.5*o;t.spin.radius>r?(t.spin.radius=r,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=.01*e*(1-t.spin.radius/o)}(t,d,r):function(t,e,i,s,n,a,o){(function(t,e){let i=t.options.move.path;if(!i.enable)return;if(t.lastPathTime<=t.pathDelay){t.lastPathTime+=e.value;return}let s=t.pathGenerator?.generate(t,e);s&&t.velocity.addTo(s),i.clamp&&(t.velocity.x=(0,m.uZ5)(t.velocity.x,-1,1),t.velocity.y=(0,m.uZ5)(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay})(t,o);let r=t.gravity,l=r?.enable&&r.inverse?-1:1;n&&i&&(t.velocity.x+=n*o.factor/(60*i)),r?.enable&&i&&(t.velocity.y+=r.acceleration*o.factor*l/(60*i));let c=t.moveDecay;t.velocity.multTo(c);let h=t.velocity.mult(i);r?.enable&&s>0&&(!r.inverse&&h.y>=0&&h.y>=s||r.inverse&&h.y<=0&&h.y<=-s)&&(h.y=l*s,i&&(t.velocity.y=h.y/i));let d=t.options.zIndex,u=(1-t.zIndexFactor)**d.velocityRate;h.multTo(u),h.multTo(a);let{position:p}=t;p.addTo(h),e.vibrate&&(p.x+=Math.sin(p.x*Math.cos(p.y))*a,p.y+=Math.cos(p.y*Math.sin(p.x))*a)}(t,s,d,u,c,r,e),function(t){let e=t.initialPosition,{dx:i,dy:s}=(0,m.oW6)(e,t.position),n=Math.abs(i),a=Math.abs(s),{maxDistance:o}=t.retina,r=o.horizontal,l=o.vertical;if(r||l){if((r&&n>=r||l&&a>=l)&&!t.misplaced)t.misplaced=!!r&&n>r||!!l&&a>l,r&&(t.velocity.x=.5*t.velocity.y-t.velocity.x),l&&(t.velocity.y=.5*t.velocity.x-t.velocity.y);else if((!r||n<r)&&(!l||a<l)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){let i=t.position,s=t.velocity;r&&(i.x<e.x&&s.x<0||i.x>e.x&&s.x>0)&&(s.x*=-(0,m.sZz)()),l&&(i.y<e.y&&s.y<0||i.y>e.y&&s.y>0)&&(s.y*=-(0,m.sZz)())}}}(t)}}async function y(t,e=!0){t.checkVersion("3.9.1"),await t.addMover("base",()=>Promise.resolve(new g),e)}let b=2*Math.PI;class w{constructor(){this.validTypes=["circle"]}draw(t){!function(t){let{context:e,particle:i,radius:s}=t;i.circleRange||(i.circleRange={min:0,max:b});let n=i.circleRange;e.arc(0,0,s,n.min,n.max,!1)}(t)}getSidesCount(){return 12}particleInit(t,e){let i=e.shapeData,s=i?.angle??{max:360,min:0};e.circleRange=(0,m.Kn2)(s)?{min:(0,m.Idc)(s.min),max:(0,m.Idc)(s.max)}:{min:0,max:(0,m.Idc)(s)}}}async function x(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new w,e)}class _{constructor(t,e){this._container=t,this._engine=e}init(t){let e=(0,m.lNs)(this._engine,t.options.color,t.id,t.options.reduceDuplicates);e&&(t.color=(0,m.bS$)(e,t.options.color.animation,this._container.retina.reduceFactor))}isEnabled(t){let{h:e,s:i,l:s}=t.options.color.animation,{color:n}=t;return!t.destroyed&&!t.spawning&&(n?.h.value!==void 0&&e.enable||n?.s.value!==void 0&&i.enable||n?.l.value!==void 0&&s.enable)}update(t,e){(0,m.PBz)(t.color,e)}}async function k(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("color",e=>Promise.resolve(new _(e,t)),e)}(s=c||(c={}))[s.r=1]="r",s[s.g=2]="g",s[s.b=3]="b",s[s.a=4]="a";let z=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,C=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class M{constructor(){this.key="hex",this.stringPrefix="#"}handleColor(t){return this._parseString(t.value)}handleRangeColor(t){return this._parseString(t.value)}parseString(t){return this._parseString(t)}_parseString(t){if("string"!=typeof t||!t?.startsWith(this.stringPrefix))return;let e=t.replace(z,(t,e,i,s,n)=>e+e+i+i+s+s+(void 0!==n?n+n:"")),i=C.exec(e);return i?{a:void 0!==i[c.a]?parseInt(i[c.a],16)/255:1,b:parseInt(i[c.b],16),g:parseInt(i[c.g],16),r:parseInt(i[c.r],16)}:void 0}}async function P(t,e=!0){t.checkVersion("3.9.1"),await t.addColorManager(new M,e)}(n=h||(h={}))[n.h=1]="h",n[n.s=2]="s",n[n.l=3]="l",n[n.a=5]="a";class S{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){let e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.s&&void 0!==e.l)return(0,m.veL)(e)}handleRangeColor(t){let e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.l)return(0,m.veL)({h:(0,m.Gu7)(e.h),l:(0,m.Gu7)(e.l),s:(0,m.Gu7)(e.s)})}parseString(t){if(!t.startsWith("hsl"))return;let e=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(t);return e?(0,m.Y6v)({a:e.length>4?(0,m.BVM)(e[h.a]):1,h:parseInt(e[h.h],10),l:parseInt(e[h.l],10),s:parseInt(e[h.s],10)}):void 0}}async function O(t,e=!0){t.checkVersion("3.9.1"),await t.addColorManager(new S,e)}class E{constructor(t){this.container=t}init(t){let e=t.options.opacity;t.opacity=(0,m.V0)(e,1);let i=e.animation;i.enable&&(t.opacity.velocity=(0,m.Gu7)(i.speed)/m.tZy*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity
36*=(0,m.sZz)()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,e){this.isEnabled(t)&&t.opacity&&(0,m.CrJ)(t,t.opacity,!0,t.options.opacity.animation.destroy,e)}}async function D(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("opacity",t=>Promise.resolve(new E(t)),e)}class R{constructor(t){this.container=t,this.modes=[m.Voc.bounce,m.Voc.split]}update(t,e,i,s){if(!this.modes.includes(s))return;let n=this.container,a=!1;for(let s of n.plugins.values())if(void 0!==s.particleBounce&&(a=s.particleBounce(t,i,e)),a)break;if(a)return;let o=t.getPosition(),r=t.offset,l=t.getRadius(),c=(0,m.M_G)(o,l),h=n.canvas.size;!function(t){if(t.outMode!==m.Voc.bounce&&t.outMode!==m.Voc.split||t.direction!==m.DYc.left&&t.direction!==m.DYc.right)return;t.bounds.right<0&&t.direction===m.DYc.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===m.DYc.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);let e=t.particle.velocity.x,i=!1;if(t.direction===m.DYc.right&&t.bounds.right>=t.canvasSize.width&&e>0||t.direction===m.DYc.left&&t.bounds.left<=0&&e<0){let e=(0,m.Gu7)(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;let s=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&t.direction===m.DYc.right?t.particle.position.x=t.canvasSize.width-s:t.bounds.left<=0&&t.direction===m.DYc.left&&(t.particle.position.x=s),t.outMode===m.Voc.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:r,size:l}),function(t){if(t.outMode!==m.Voc.bounce&&t.outMode!==m.Voc.split||t.direction!==m.DYc.bottom&&t.direction!==m.DYc.top)return;t.bounds.bottom<0&&t.direction===m.DYc.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===m.DYc.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);let e=t.particle.velocity.y,i=!1;if(t.direction===m.DYc.bottom&&t.bounds.bottom>=t.canvasSize.height&&e>0||t.direction===m.DYc.top&&t.bounds.top<=0&&e<0){let e=(0,m.Gu7)(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;let s=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&t.direction===m.DYc.bottom?t.particle.position.y=t.canvasSize.height-s:t.bounds.top<=0&&t.direction===m.DYc.top&&(t.particle.position.y=s),t.outMode===m.Voc.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:r,size:l})}}class T{constructor(t){this.container=t,this.modes=[m.Voc.destroy]}update(t,e,i,s){if(!this.modes.includes(s))return;let n=this.container;switch(t.outType){case m.Igb.normal:case m.Igb.outside:if((0,m.Ac)(t.position,n.canvas.size,m.OWs.origin,t.getRadius(),e))return;break;case m.Igb.inside:{let{dx:e,dy:i}=(0,m.oW6)(t.position,t.moveCenter),{x:s,y:n}=t.velocity;if(s<0&&e>t.moveCenter.radius||n<0&&i>t.moveCenter.radius||s>=0&&e<-t.moveCenter.radius||n>=0&&i<-t.moveCenter.radius)return}}n.particles.remove(t,t.group,!0)}}class I{constructor(t){this.container=t,this.modes=[m.Voc.none]}update(t,e,i,s){if(!this.modes.includes(s)||((t.options.move.distance.horizontal&&(e===m.DYc.left||e===m.DYc.right))??(t.options.move.distance.vertical&&(e===m.DYc.top||e===m.DYc.bottom))))return;let n=t.options.move.gravity,a=this.container,o=a.canvas.size,r=t.getRadius();if(n.enable){let i=t.position;(!n.inverse&&i.y>o.height+r&&e===m.DYc.bottom||n.inverse&&i.y<-r&&e===m.DYc.top)&&a.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=o.height+r||t.velocity.y<0&&t.position.y>=-r||t.velocity.x>0&&t.position.x<=o.width+r||t.velocity.x<0&&t.position.x>=-r)return;(0,m.Ac)(t.position,a.canvas.size,m.OWs.origin,r,e)||a.particles.remove(t)}}}class L{constructor(t){this.container=t,this.modes=[m.Voc.out]}update(t,e,i,s){if(!this.modes.includes(s))return;let n=this.container;if(t.outType===m.Igb.inside){let{x:e,y:i}=t.velocity,s=m.OWs.origin;s.length=t.moveCenter.radius,s.angle=t.velocity.angle+Math.PI,s.addTo(m.OWs.create(t.moveCenter));let{dx:a,dy:o}=(0,m.oW6)(t.position,s);if(e<=0&&a>=0||i<=0&&o>=0||e>=0&&a<=0||i>=0&&o<=0)return;t.position.x=Math.floor((0,m.vdf)({min:0,max:n.canvas.size.width})),t.position.y=Math.floor((0,m.vdf)({min:0,max:n.canvas.size.height}));let{dx:r,dy:l}=(0,m.oW6)(t.position,t.moveCenter);t.direction=Math.atan2(-l,-r),t.velocity.angle=t.direction}else{if((0,m.Ac)(t.position,n.canvas.size,m.OWs.origin,t.getRadius(),e))return;switch(t.outType){case m.Igb.outside:{t.position.x=Math.floor((0,m.vdf)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor((0,m.vdf)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;let{dx:e,dy:i}=(0,m.oW6)(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction);break}case m.Igb.normal:{let i=t.options.move.warp,s=n.canvas.size,a={bottom:s.height+t.getRadius()+t.offset.y,left
36:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},o=t.getRadius(),r=(0,m.M_G)(t.position,o);e===m.DYc.right&&r.left>s.width+t.offset.x?(t.position.x=a.left,t.initialPosition.x=t.position.x,i||(t.position.y=(0,m.sZz)()*s.height,t.initialPosition.y=t.position.y)):e===m.DYc.left&&r.right<-t.offset.x&&(t.position.x=a.right,t.initialPosition.x=t.position.x,i||(t.position.y=(0,m.sZz)()*s.height,t.initialPosition.y=t.position.y)),e===m.DYc.bottom&&r.top>s.height+t.offset.y?(i||(t.position.x=(0,m.sZz)()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.top,t.initialPosition.y=t.position.y):e===m.DYc.top&&r.bottom<-t.offset.y&&(i||(t.position.x=(0,m.sZz)()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.bottom,t.initialPosition.y=t.position.y)}}}}}let F=(t,e)=>t.default===e||t.bottom===e||t.left===e||t.right===e||t.top===e;class B{constructor(t){this._addUpdaterIfMissing=(t,e,i)=>{let s=t.options.move.outModes;!this.updaters.has(e)&&F(s,e)&&this.updaters.set(e,i(this.container))},this._updateOutMode=(t,e,i,s)=>{for(let n of this.updaters.values())n.update(t,s,e,i)},this.container=t,this.updaters=new Map}init(t){this._addUpdaterIfMissing(t,m.Voc.bounce,t=>new R(t)),this._addUpdaterIfMissing(t,m.Voc.out,t=>new L(t)),this._addUpdaterIfMissing(t,m.Voc.destroy,t=>new T(t)),this._addUpdaterIfMissing(t,m.Voc.none,t=>new I(t))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){let i=t.options.move.outModes;this._updateOutMode(t,e,i.bottom??i.default,m.DYc.bottom),this._updateOutMode(t,e,i.left??i.default,m.DYc.left),this._updateOutMode(t,e,i.right??i.default,m.DYc.right),this._updateOutMode(t,e,i.top??i.default,m.DYc.top)}}async function A(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("outModes",t=>Promise.resolve(new B(t)),e)}(a=d||(d={}))[a.r=1]="r",a[a.g=2]="g",a[a.b=3]="b",a[a.a=5]="a";class V{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){let e=t.value.rgb??t.value;if(void 0!==e.r)return e}handleRangeColor(t){let e=t.value.rgb??t.value;if(void 0!==e.r)return{r:(0,m.Gu7)(e.r),g:(0,m.Gu7)(e.g),b:(0,m.Gu7)(e.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;let e=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(t);return e?{a:e.length>4?(0,m.BVM)(e[d.a]):1,b:parseInt(e[d.b],10),g:parseInt(e[d.g],10),r:parseInt(e[d.r],10)}:void 0}}async function q(t,e=!0){t.checkVersion("3.9.1"),await t.addColorManager(new V,e)}class W{init(t){let e=t.container,i=t.options.size.animation;i.enable&&(t.size.velocity=(t.retina.sizeAnimationSpeed??e.retina.sizeAnimationSpeed)/m.tZy*e.retina.reduceFactor,i.sync||(t.size.velocity*=(0,m.sZz)()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??0)<=0||(t.size.maxLoops??0)>0&&(t.size.loops??0)<(t.size.maxLoops??0))}reset(t){t.size.loops=0}update(t,e){this.isEnabled(t)&&(0,m.CrJ)(t,t.size,!0,t.options.size.animation.destroy,e)}}async function H(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("size",()=>Promise.resolve(new W),e)}async function G(t,e=!0){t.checkVersion("3.9.1"),await P(t,!1),await O(t,!1),await q(t,!1),await y(t,!1),await x(t,!1),await k(t,!1),await D(t,!1),await A(t,!1),await H(t,!1),await t.refresh(e)}async function $(t,e=!0){t.checkVersion("3.9.1"),await t.addEasing(m.nxi.easeInQuad,t=>t**2,!1),await t.addEasing(m.nxi.easeOutQuad,t=>1-(1-t)**2,!1),await t.addEasing(m.nxi.easeInOutQuad,t=>t<.5?2*t**2:1-(-2*t+2)**2/2,!1),await t.refresh(e)}let U='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"';class Z{constructor(){this.validTypes=["emoji"],this._emojiShapeDict=new Map}destroy(){for(let[t,e]of this._emojiShapeDict)e instanceof ImageBitmap&&e?.close(),this._emojiShapeDict.delete(t)}draw(t){let e=t.particle.emojiDataKey;if(!e)return;let i=this._emojiShapeDict.get(e);i&&function(t,e){let{context:i,opacity:s}=t,n=i.globalAlpha;if(!e)return;let a=e.width,o=.5*a;i.globalAlpha=s,i.drawImage(e,-o,-o,a,a),i.globalAlpha=n}(t,i)}async init(t){let e=t.actualOptions,{validTypes:i}=this;if(!i.find(t=>(0,m.dBL)(t,e.particles.shape.type)))return;let s=[(0,m.mxw)(U)],n=i.map(t=>e.particles.shape.options[t]).find(t=>!!t);
36n&&(0,m.KH1)(n,t=>{t.font&&s.push((0,m.mxw)(t.font))}),await Promise.all(s)}particleDestroy(t){t.emojiDataKey=void 0}particleInit(t,e){let i;let s=e.shapeData;if(!s?.value)return;let n=(0,m.wA_)(s.value,e.randomIndexData);if(!n)return;let a="string"==typeof n?{font:s.font??U,padding:s.padding??0,value:n}:{font:U,padding:0,...s,...n},o=a.font,r=a.value,l=`${r}_${o}`;if(this._emojiShapeDict.has(l)){e.emojiDataKey=l;return}let c=2*a.padding,h=(0,m.KIV)(e.size.value),d=h+c,u=2*d;if("undefined"!=typeof OffscreenCanvas){let t=new OffscreenCanvas(u,u),e=t.getContext("2d");if(!e)return;e.font=`400 ${2*h}px ${o}`,e.textBaseline="middle",e.textAlign="center",e.fillText(r,d,d),i=t.transferToImageBitmap()}else{let t=document.createElement("canvas");t.width=u,t.height=u;let e=t.getContext("2d");if(!e)return;e.font=`400 ${2*h}px ${o}`,e.textBaseline="middle",e.textAlign="center",e.fillText(r,d,d),i=t}this._emojiShapeDict.set(l,i),e.emojiDataKey=l}}async function Y(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new Z,e)}function j(t,e,i,s,n,a){let o=e.actualOptions.interactivity.modes.attract;if(o)for(let r of e.particles.quadTree.query(n,a)){let{dx:e,dy:n,distance:a}=(0,m.oW6)(r.position,i),l=o.speed*o.factor,c=(0,m.uZ5)(t.getEasing(o.easing)(1-a/s)*l,1,o.maxSpeed),h=m.OWs.create(a?e/a*c:l,a?n/a*c:l);r.position.subFrom(h)}}class K{constructor(){this.distance=200,this.duration=.4,this.easing=m.nxi.easeOutQuad,this.factor=1,this.maxSpeed=50,this.speed=1}load(t){(0,m.Ft)(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))}}let X="attract";class N extends m.L8z{constructor(t,e){super(e),this._engine=t,e.attract||(e.attract={particles:[]}),this.handleClickMode=t=>{let i=this.container.actualOptions.interactivity.modes.attract;if(i&&t===X){for(let t of(e.attract||(e.attract={particles:[]}),e.attract.clicking=!0,e.attract.count=0,e.attract.particles))this.isEnabled(t)&&t.velocity.setTo(t.initialVelocity);e.attract.particles=[],e.attract.finish=!1,setTimeout(()=>{e.destroyed||(e.attract||(e.attract={particles:[]}),e.attract.clicking=!1)},i.duration*m.X5o)}}}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.attract;e&&(t.retina.attractModeDistance=e.distance*t.retina.pixelRatio)}interact(){let t=this.container,e=t.actualOptions,i=t.interactivity.status===m.WtO,s=e.interactivity.events,{enable:n,mode:a}=s.onHover,{enable:o,mode:r}=s.onClick;i&&n&&(0,m.dBL)(X,a)?function(t,e,i){let s=e.interactivity.mouse.position,n=e.retina.attractModeDistance;n&&!(n<0)&&s&&j(t,e,s,n,new m.Cdc(s.x,s.y,n),t=>i(t))}(this._engine,this.container,t=>this.isEnabled(t)):o&&(0,m.dBL)(X,r)&&function(t,e,i){e.attract||(e.attract={particles:[]});let{attract:s}=e;if(s.finish||(s.count||(s.count=0),s.count++,s.count!==e.particles.count||(s.finish=!0)),s.clicking){let s=e.interactivity.mouse.clickPosition,n=e.retina.attractModeDistance;if(!n||n<0||!s)return;j(t,e,s,n,new m.Cdc(s.x,s.y,n),t=>i(t))}else!1===s.clicking&&(s.particles=[])}(this._engine,this.container,t=>this.isEnabled(t))}isEnabled(t){let e=this.container,i=e.actualOptions,s=e.interactivity.mouse,n=(t?.interactivity??i.interactivity).events;if((!s.position||!n.onHover.enable)&&(!s.clickPosition||!n.onClick.enable))return!1;let a=n.onHover.mode,o=n.onClick.mode;return(0,m.dBL)(X,a)||(0,m.dBL)(X,o)}loadModeOptions(t,...e){for(let i of(t.attract||(t.attract=new K),e))t.attract.load(i?.attract)}reset(){}}async function Q(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalAttract",e=>Promise.resolve(new N(t,e)),e)}let J=.5*Math.PI;function tt(t,e,i,s,n){for(let a of t.particles.quadTree.query(s,n))s instanceof m.Cdc?(0,m.kRC)((0,m.gy4)(a),{position:e,radius:i,mass:i**2*J,velocity:m.OWs.origin,factor:m.OWs.origin}):s instanceof m.AeJ&&(0,m.dpV)(a,(0,m.M_G)(e,i))}class te{constructor(){this.distance=200}load(t){(0,m.Ft)(t)||void 0===t.distance||(this.distance=t.distance)}}let ti="bounce";class ts extends m.L8z{constructor(t){super(t)}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.bounce;e&&(t.retina.bounceModeDistance=e.distance*t.retina.pixelRatio)}interact(){let t=this.container,e=t.actualOptions.interactivity.events,i=t.interactivity.status===m.WtO,s=e.onHover.enable,n=e.onHover.mode,a=e.onDiv;if(i&&s&&(0,m.dBL)(ti,n))!function(t,e){let i=t.retina.pixelRatio,s=t.interactivity.mouse.position,n=t.retina.bounceModeDistance;n&&!(n<0)&&s&&tt(t,s,n,new m.Cdc(s.x,s.y,n+10*i),e)}(this.container,t=>this.isEnabled(t));else{var o,r;o=this.container,r=t=>this.isEnabled(t),(0,m.XDe)(ti,a,(t,e)=>
36(function(t,e,i,s){let n=document.querySelectorAll(e);n.length&&n.forEach(e=>{let n=t.retina.pixelRatio,a={x:(e.offsetLeft+.5*e.offsetWidth)*n,y:(e.offsetTop+.5*e.offsetHeight)*n},o=.5*e.offsetWidth*n,r=10*n,l=i.type===m.gqJ.circle?new m.Cdc(a.x,a.y,o+r):new m.AeJ(e.offsetLeft*n-r,e.offsetTop*n-r,e.offsetWidth*n+2*r,e.offsetHeight*n+2*r);s(a,o,l)})})(o,t,e,(t,e,i)=>tt(o,t,e,i,r)))}}isEnabled(t){let e=this.container,i=e.actualOptions,s=e.interactivity.mouse,n=(t?.interactivity??i.interactivity).events,a=n.onDiv;return!!s.position&&n.onHover.enable&&(0,m.dBL)(ti,n.onHover.mode)||(0,m.wm$)(ti,a)}loadModeOptions(t,...e){for(let i of(t.bounce||(t.bounce=new te),e))t.bounce.load(i?.bounce)}reset(){}}async function tn(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalBounce",t=>Promise.resolve(new ts(t)),e)}class ta{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){if(!(0,m.Ft)(t)){if(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){let e=(0,m.kJL)(this.color)?void 0:this.color;this.color=(0,m.KH1)(t.color,t=>m.OzF.create(e,t))}void 0!==t.size&&(this.size=t.size)}}}class to extends ta{constructor(){super(),this.selectors=[]}load(t){super.load(t),(0,m.Ft)(t)||void 0===t.selectors||(this.selectors=t.selectors)}}class tr extends ta{load(t){super.load(t),(0,m.Ft)(t)||(this.divs=(0,m.KH1)(t.divs,t=>{let e=new to;return e.load(t),e}))}}function tl(t,e,i,s){return e>=i?(0,m.uZ5)(t+(e-i)*s,t,e):e<i?(0,m.uZ5)(t-(i-e)*s,e,t):void 0}(o=u||(u={})).color="color",o.opacity="opacity",o.size="size";let tc="bubble";class th extends m.L8z{constructor(t,e){super(t),this._clickBubble=()=>{let t=this.container,e=t.actualOptions,i=t.interactivity.mouse.clickPosition,s=e.interactivity.modes.bubble;if(!s||!i)return;t.bubble||(t.bubble={});let n=t.retina.bubbleModeDistance;if(!n||n<0)return;let a=t.particles.quadTree.queryCircle(i,n,t=>this.isEnabled(t)),{bubble:o}=t;for(let e of a){if(!o.clicking)continue;e.bubble.inRange=!o.durationEnd;let a=e.getPosition(),r=(0,m.Spd)(a,i),l=(new Date().getTime()-(t.interactivity.mouse.clickTime??0))/m.X5o;l>s.duration&&(o.durationEnd=!0),l>2*s.duration&&(o.clicking=!1,o.durationEnd=!1);let c={bubbleObj:{optValue:t.retina.bubbleModeSize,value:e.bubble.radius},particlesObj:{optValue:(0,m.KIV)(e.options.size.value)*t.retina.pixelRatio,value:e.size.value},type:u.size};this._process(e,r,l,c);let h={bubbleObj:{optValue:s.opacity,value:e.bubble.opacity},particlesObj:{optValue:(0,m.KIV)(e.options.opacity.value),value:e.opacity?.value??1},type:u.opacity};this._process(e,r,l,h),!o.durationEnd&&r<=n?this._hoverBubbleColor(e,r):delete e.bubble.color}},this._hoverBubble=()=>{let t=this.container,e=t.interactivity.mouse.position,i=t.retina.bubbleModeDistance;if(i&&!(i<0)&&e)for(let s of t.particles.quadTree.queryCircle(e,i,t=>this.isEnabled(t))){s.bubble.inRange=!0;let n=s.getPosition(),a=(0,m.Spd)(n,e),o=1-a/i;a<=i?o>=0&&t.interactivity.status===m.WtO&&(this._hoverBubbleSize(s,o),this._hoverBubbleOpacity(s,o),this._hoverBubbleColor(s,o)):this.reset(s),t.interactivity.status===m.aMP&&this.reset(s)}},this._hoverBubbleColor=(t,e,i)=>{let s=this.container.actualOptions,n=i??s.interactivity.modes.bubble;if(n){if(!t.bubble.finalColor){let e=n.color;if(!e)return;let i=(0,m.wA_)(e);t.bubble.finalColor=(0,m.lNs)(this._engine,i)}if(t.bubble.finalColor){if(n.mix){t.bubble.color=void 0;let i=t.getFillColor();t.bubble.color=i?(0,m.lCU)((0,m.ocL)(i,t.bubble.finalColor,1-e,e)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}}},this._hoverBubbleOpacity=(t,e,i)=>{let s=this.container.actualOptions,n=i?.opacity??s.interactivity.modes.bubble?.opacity;if(!n)return;let a=t.options.opacity.value,o=tl(t.opacity?.value??1,n,(0,m.KIV)(a),e);void 0!==o&&(t.bubble.opacity=o)},this._hoverBubbleSize=(t,e,i)=>{let s=this.container,n=i?.size?i.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(void 0===n)return;let a=(0,m.KIV)(t.options.size.value)*s.retina.pixelRatio,o=tl(t.size.value,n,a,e);void 0!==o&&(t.bubble.radius=o)},this._process=(t,e,i,s)=>{let n=this.container,a=s.bubbleObj.optValue,o=n.actualOptions.interactivity.modes.bubble;if(!o||void 0===a)return;let r=o.duration,l=n.retina.bubbleModeDistance,c=s.particlesObj.optValue,h=s.bubbleObj.value,d=s.particlesObj.value??0,p=s.type;if(l&&!(l<0)&&a!==c){if(n.bubble||(n.bubble={}),n.bubble.durationEnd)h&&(p===u.size&&delete t.bubble.radius,p===u.opacity&&delete t.bubble.opacity);else if(e<=l){if((h??d)!==a){let e=d-i*(d-a)/r;p===u.size&&(t.bubble.radius=e),p===u.opacity&&(t.bubble.opacity=e)}}else p===u.size&&delete t.bubble.radius,p===u.opacity&&delete t.bubble.opacity}},this._singleSelectorHover=(t,e,i)=>{let s=this.container,n=document.querySelectorAll(e),a=s.actualOptions.interactivity.modes.bubble;
36a&&n.length&&n.forEach(e=>{let n=s.retina.pixelRatio,o={x:(e.offsetLeft+.5*e.offsetWidth)*n,y:(e.offsetTop+.5*e.offsetHeight)*n},r=.5*e.offsetWidth*n,l=i.type===m.gqJ.circle?new m.Cdc(o.x,o.y,r):new m.AeJ(e.offsetLeft*n,e.offsetTop*n,e.offsetWidth*n,e.offsetHeight*n);for(let i of s.particles.quadTree.query(l,t=>this.isEnabled(t))){if(!l.contains(i.getPosition()))continue;i.bubble.inRange=!0;let s=a.divs,n=(0,m.iCg)(s,e);i.bubble.div&&i.bubble.div===e||(this.clear(i,t,!0),i.bubble.div=e),this._hoverBubbleSize(i,1,n),this._hoverBubbleOpacity(i,1,n),this._hoverBubbleColor(i,1,n)}})},this._engine=e,t.bubble||(t.bubble={}),this.handleClickMode=e=>{e===tc&&(t.bubble||(t.bubble={}),t.bubble.clicking=!0)}}clear(t,e,i){(!t.bubble.inRange||i)&&(delete t.bubble.div,delete t.bubble.opacity,delete t.bubble.radius,delete t.bubble.color)}init(){let t=this.container,e=t.actualOptions.interactivity.modes.bubble;e&&(t.retina.bubbleModeDistance=e.distance*t.retina.pixelRatio,void 0!==e.size&&(t.retina.bubbleModeSize=e.size*t.retina.pixelRatio))}interact(t){let e=this.container.actualOptions.interactivity.events,i=e.onHover,s=e.onClick,n=i.enable,a=i.mode,o=s.enable,r=s.mode,l=e.onDiv;n&&(0,m.dBL)(tc,a)?this._hoverBubble():o&&(0,m.dBL)(tc,r)?this._clickBubble():(0,m.XDe)(tc,l,(e,i)=>this._singleSelectorHover(t,e,i))}isEnabled(t){let e=this.container,i=e.actualOptions,s=e.interactivity.mouse,{onClick:n,onDiv:a,onHover:o}=(t?.interactivity??i.interactivity).events,r=(0,m.wm$)(tc,a);return(!!r||!!o.enable&&!!s.position||!!n.enable&&!!s.clickPosition)&&((0,m.dBL)(tc,o.mode)||(0,m.dBL)(tc,n.mode)||r)}loadModeOptions(t,...e){for(let i of(t.bubble||(t.bubble=new tr),e))t.bubble.load(i?.bubble)}reset(t){t.bubble.inRange=!1}}async function td(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalBubble",e=>Promise.resolve(new th(e,t)),e)}class tu{constructor(){this.opacity=.5}load(t){(0,m.Ft)(t)||void 0===t.opacity||(this.opacity=t.opacity)}}class tp{constructor(){this.distance=80,this.links=new tu,this.radius=60}load(t){(0,m.Ft)(t)||(void 0!==t.distance&&(this.distance=t.distance),this.links.load(t.links),void 0===t.radius||(this.radius=t.radius))}}class tf extends m.L8z{constructor(t){super(t)}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.connect;e&&(t.retina.connectModeDistance=e.distance*t.retina.pixelRatio,t.retina.connectModeRadius=e.radius*t.retina.pixelRatio)}interact(){let t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&"pointermove"===t.interactivity.status){let e=t.interactivity.mouse.position,{connectModeDistance:i,connectModeRadius:s}=t.retina;if(!i||i<0||!s||s<0||!e)return;let n=t.particles.quadTree.queryCircle(e,Math.abs(s),t=>this.isEnabled(t));n.forEach((e,s)=>{let a=e.getPosition();for(let o of n.slice(s+1)){let s=o.getPosition(),n=Math.abs(i),r=Math.abs(a.x-s.x),l=Math.abs(a.y-s.y);r<n&&l<n&&function(t,e,i){t.canvas.draw(s=>{var n;let a=function(t,e,i,s){let n=t.actualOptions.interactivity.modes.connect;if(n)return function(t,e,i,s){let n=Math.floor(i.getRadius()/e.getRadius()),a=e.getFillColor(),o=i.getFillColor();if(!a||!o)return;let r=e.getPosition(),l=i.getPosition(),c=(0,m.ocL)(a,o,e.getRadius(),i.getRadius()),h=t.createLinearGradient(r.x,r.y,l.x,l.y);return h.addColorStop(0,(0,m.vzQ)(a,s)),h.addColorStop((0,m.uZ5)(n,0,1),(0,m.izR)(c,s)),h.addColorStop(1,(0,m.vzQ)(o,s)),h}(e,i,s,n.links.opacity)}(t,s,e,i);if(!a)return;let o=e.getPosition(),r=i.getPosition();n=e.retina.linksWidth??0,(0,m.pSR)(s,o,r),s.lineWidth=n,s.strokeStyle=a,s.stroke()})}(t,e,o)}})}}isEnabled(t){let e=this.container,i=e.interactivity.mouse,s=(t?.interactivity??e.actualOptions.interactivity).events;return!!s.onHover.enable&&!!i.position&&(0,m.dBL)("connect",s.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.connect||(t.connect=new tp),e))t.connect.load(i?.connect)}reset(){}}async function tm(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalConnect",t=>Promise.resolve(new tf(t)),e)}class tv{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){(0,m.Ft)(t)||(void 0!==t.blink&&(this.blink=t.blink),void 0!==t.color&&(this.color=m.OzF.create(this.color,t.color)),void 0!==t.consent&&(this.consent=t.consent),void 0===t.opacity||(this.opacity=t.opacity))}}class tg{constructor(){this.distance=100,this.links=new tv}load(t){(0,m.Ft)(t)||(void 0!==t.distance&&(this.distance=t.distance),this.links.load(t.links))}}class ty extends m.L8z{constructor(t,e){super(t),this._engine=e}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.grab;e&&(t.retina.grabModeDistance=e.distance*t.retina.pixelRatio)}interact(){let t=this.container,e=t.actualOptions.interactivity;if(!e.modes.grab||!e.events.onHover.enable||t.interactivity.status!==m.WtO)return;let i=t.interactivity.mouse.position;if(!i)return;let s=t.retina.grabModeDistance;if(s&&!(s<0))for(let n of t.particles.quadTree.queryCircle(i,s,t=>this.isEnabled(t))){let a=n.getPosition(),o=(0,m.Spd)(a,i);if(o>s)continue;let r=e.modes.grab.links,l=r.opacity,c=l-o*l/s;if(c<=0)continue;let h=r.color??n.options.links?.color;if(!t.particles.grabLineColor&&h){let i=e.modes.grab.links;t.particles.grabLineColor=(0,m.Dt5)(this._engine,h,i.blink,i.consent)}let d=(0,m.BEi)(n,void 0,t.particles.grabLineColor);
36d&&function(t,e,i,s,n){t.canvas.draw(t=>{var a;let o=e.getPosition();a=e.retina.linksWidth??0,(0,m.pSR)(t,o,n),t.strokeStyle=(0,m.izR)(i,s),t.lineWidth=a,t.stroke()})}(t,n,d,c,i)}}isEnabled(t){let e=this.container,i=e.interactivity.mouse,s=(t?.interactivity??e.actualOptions.interactivity).events;return s.onHover.enable&&!!i.position&&(0,m.dBL)("grab",s.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.grab||(t.grab=new tg),e))t.grab.load(i?.grab)}reset(){}}async function tb(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalGrab",e=>Promise.resolve(new ty(e,t)),e)}class tw extends m.L8z{constructor(t){super(t),this.handleClickMode=t=>{if("pause"!==t)return;let e=this.container;e.animationStatus?e.pause():e.play()}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}}async function tx(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalPause",t=>Promise.resolve(new tw(t)),e)}class t_{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(t){if((0,m.Ft)(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);let e=t.quantity;void 0!==e&&(this.quantity=(0,m.Cst)(e)),this.particles=(0,m.KH1)(t.particles,t=>(0,m.ZBL)({},t))}}class tk extends m.L8z{constructor(t){super(t),this.handleClickMode=t=>{if("push"!==t)return;let e=this.container,i=e.actualOptions.interactivity.modes.push;if(!i)return;let s=(0,m.Gu7)(i.quantity);if(s<=0)return;let n=(0,m.c86)([void 0,...i.groups]),a=void 0!==n?e.actualOptions.particles.groups[n]:void 0,o=(0,m.wA_)(i.particles),r=(0,m.ZBL)(a,o);e.particles.push(s,e.interactivity.mouse,r,n)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...e){for(let i of(t.push||(t.push=new t_),e))t.push.load(i?.push)}reset(){}}async function tz(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalPush",t=>Promise.resolve(new tk(t)),e)}class tC{constructor(){this.quantity=2}load(t){if((0,m.Ft)(t))return;let e=t.quantity;void 0!==e&&(this.quantity=(0,m.Cst)(e))}}class tM extends m.L8z{constructor(t){super(t),this.handleClickMode=t=>{let e=this.container,i=e.actualOptions;if(!i.interactivity.modes.remove||"remove"!==t)return;let s=(0,m.Gu7)(i.interactivity.modes.remove.quantity);e.particles.removeQuantity(s)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...e){for(let i of(t.remove||(t.remove=new tC),e))t.remove.load(i?.remove)}reset(){}}async function tP(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalRemove",t=>Promise.resolve(new tM(t)),e)}class tS{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing=m.nxi.easeOutQuad}load(t){(0,m.Ft)(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 tO extends tS{constructor(){super(),this.selectors=[]}load(t){super.load(t),(0,m.Ft)(t)||void 0===t.selectors||(this.selectors=t.selectors)}}class tE extends tS{load(t){super.load(t),(0,m.Ft)(t)||(this.divs=(0,m.KH1)(t.divs,t=>{let e=new tO;return e.load(t),e}))}}let tD="repulse";class tR extends m.L8z{constructor(t,e){super(e),this._clickRepulse=()=>{let t=this.container,e=t.actualOptions.interactivity.modes.repulse;if(!e)return;let i=t.repulse??{particles:[]};if(i.finish||(i.count||(i.count=0),i.count++,i.count!==t.particles.count||(i.finish=!0)),i.clicking){let s=t.retina.repulseModeDistance;if(!s||s<0)return;let n=Math.pow(s/6,3),a=t.interactivity.mouse.clickPosition;if(void 0===a)return;let o=new m.Cdc(a.x,a.y,n);for(let s of t.particles.quadTree.query(o,t=>this.isEnabled(t))){let{dx:t,dy:o,distance:r}=(0,m.oW6)(a,s.position),l=r**2,c=-n*e.speed/l;if(l<=n){i.particles.push(s);let e=m.OWs.create(t,o);e.length=c,s.velocity.setTo(e)}}}else if(!1===i.clicking){for(let t of i.particles)t.velocity.setTo(t.initialVelocity);i.particles=[]}},this._hoverRepulse=()=>{let t=this.container,e=t.interactivity.mouse.position,i=t.retina.repulseModeDistance;
36i&&!(i<0)&&e&&this._processRepulse(e,i,new m.Cdc(e.x,e.y,i))},this._processRepulse=(t,e,i,s)=>{let n=this.container,a=n.particles.quadTree.query(i,t=>this.isEnabled(t)),o=n.actualOptions.interactivity.modes.repulse;if(!o)return;let{easing:r,speed:l,factor:c,maxSpeed:h}=o,d=this._engine.getEasing(r),u=(s?.speed??l)*c;for(let i of a){let{dx:s,dy:n,distance:a}=(0,m.oW6)(i.position,t),o=(0,m.uZ5)(d(1-a/e)*u,0,h),r=m.OWs.create(a?s/a*o:u,a?n/a*o:u);i.position.addTo(r)}},this._singleSelectorRepulse=(t,e)=>{let i=this.container,s=i.actualOptions.interactivity.modes.repulse;if(!s)return;let n=document.querySelectorAll(t);n.length&&n.forEach(t=>{let n=i.retina.pixelRatio,a={x:(t.offsetLeft+.5*t.offsetWidth)*n,y:(t.offsetTop+.5*t.offsetHeight)*n},o=.5*t.offsetWidth*n,r=e.type===m.gqJ.circle?new m.Cdc(a.x,a.y,o):new m.AeJ(t.offsetLeft*n,t.offsetTop*n,t.offsetWidth*n,t.offsetHeight*n),l=s.divs,c=(0,m.iCg)(l,t);this._processRepulse(a,o,r,c)})},this._engine=t,e.repulse||(e.repulse={particles:[]}),this.handleClickMode=t=>{let i=this.container.actualOptions.interactivity.modes.repulse;if(!i||t!==tD)return;e.repulse||(e.repulse={particles:[]});let s=e.repulse;for(let t of(s.clicking=!0,s.count=0,e.repulse.particles))this.isEnabled(t)&&t.velocity.setTo(t.initialVelocity);s.particles=[],s.finish=!1,setTimeout(()=>{e.destroyed||(s.clicking=!1)},i.duration*m.X5o)}}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.repulse;e&&(t.retina.repulseModeDistance=e.distance*t.retina.pixelRatio)}interact(){let t=this.container,e=t.actualOptions,i=t.interactivity.status===m.WtO,s=e.interactivity.events,n=s.onHover,a=n.enable,o=n.mode,r=s.onClick,l=r.enable,c=r.mode,h=s.onDiv;i&&a&&(0,m.dBL)(tD,o)?this._hoverRepulse():l&&(0,m.dBL)(tD,c)?this._clickRepulse():(0,m.XDe)(tD,h,(t,e)=>this._singleSelectorRepulse(t,e))}isEnabled(t){let e=this.container,i=e.actualOptions,s=e.interactivity.mouse,n=(t?.interactivity??i.interactivity).events,a=n.onDiv,o=n.onHover,r=n.onClick,l=(0,m.wm$)(tD,a);if(!(l||o.enable&&s.position||r.enable&&s.clickPosition))return!1;let c=o.mode,h=r.mode;return(0,m.dBL)(tD,c)||(0,m.dBL)(tD,h)||l}loadModeOptions(t,...e){for(let i of(t.repulse||(t.repulse=new tE),e))t.repulse.load(i?.repulse)}reset(){}}async function tT(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalRepulse",e=>Promise.resolve(new tR(t,e)),e)}class tI{constructor(){this.factor=3,this.radius=200}load(t){(0,m.Ft)(t)||(void 0!==t.factor&&(this.factor=t.factor),void 0===t.radius||(this.radius=t.radius))}}class tL extends m.L8z{constructor(t){super(t)}clear(t,e,i){(!t.slow.inRange||i)&&(t.slow.factor=1)}init(){let t=this.container,e=t.actualOptions.interactivity.modes.slow;e&&(t.retina.slowModeRadius=e.radius*t.retina.pixelRatio)}interact(){}isEnabled(t){let e=this.container,i=e.interactivity.mouse,s=(t?.interactivity??e.actualOptions.interactivity).events;return s.onHover.enable&&!!i.position&&(0,m.dBL)("slow",s.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.slow||(t.slow=new tI),e))t.slow.load(i?.slow)}reset(t){t.slow.inRange=!1;let e=this.container,i=e.actualOptions,s=e.interactivity.mouse.position,n=e.retina.slowModeRadius,a=i.interactivity.modes.slow;if(!a||!n||n<0||!s)return;let o=t.getPosition(),r=(0,m.Spd)(s,o),l=a.factor,{slow:c}=t;r>n||(c.inRange=!0,c.factor=r/n/l)}}async function tF(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalSlow",t=>Promise.resolve(new tL(t)),e)}let tB=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;async function tA(t){return new Promise(e=>{t.loading=!0;let i=new Image;t.element=i,i.addEventListener("load",()=>{t.loading=!1,e()}),i.addEventListener("error",()=>{t.element=void 0,t.error=!0,t.loading=!1,(0,m.jl5)().error(`${m.gK4} loading image: ${t.source}`),e()}),i.src=t.source})}async function tV(t){if("svg"!==t.type){await tA(t);return}t.loading=!0;let e=await fetch(t.source);e.ok?t.svgData=await e.text():((0,m.jl5)().error(`${m.gK4} Image not found`),t.error=!0),t.loading=!1}let tq=[0,4,2,1],tW=[8,8,4,2];class tH{constructor(t){this.pos=0,this.data=new Uint8ClampedArray(t)}getString(t){let e=this.data.slice(this.pos,this.pos+t);return this.pos+=e.length,e.reduce((t,e)=>t+String.fromCharCode(e),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let t="",e=0;do{e=this.data[this.pos++];for(let i=e;--i>=0;t+=String.fromCharCode(this.data[this.pos++]));}while(0!==e);return t}readSubBlocksBin(){let t=this.data[this.pos],e=0;for(let i=0;0!==t;i+=t+1,t=this.data[this.pos+i])e+=t;let i=new Uint8Array(e);t=this.data[this.pos++];for(let e=0;0!==t;t=this.data[this.pos++])for(let s=t;--s>=0;i[e++]=this.data[this.pos++]);return i}skipSubBlocks(){for(;0!==this.data[this.pos];this.pos+=this.data[this.pos]+1);this.pos++}}(r=p||(p={}))[r.Replace=0]="Replace",r[r.Combine=1]="Combine",r[r.RestoreBackgroun
36d=2]="RestoreBackground",r[r.RestorePrevious=3]="RestorePrevious",r[r.UndefinedA=4]="UndefinedA",r[r.UndefinedB=5]="UndefinedB",r[r.UndefinedC=6]="UndefinedC",r[r.UndefinedD=7]="UndefinedD",(l=f||(f={}))[l.Extension=33]="Extension",l[l.ApplicationExtension=255]="ApplicationExtension",l[l.GraphicsControlExtension=249]="GraphicsControlExtension",l[l.PlainTextExtension=1]="PlainTextExtension",l[l.CommentExtension=254]="CommentExtension",l[l.Image=44]="Image",l[l.EndOfFile=59]="EndOfFile";let tG={x:0,y:0};function t$(t,e){let i=[];for(let s=0;s<e;s++)i.push({r:t.data[t.pos],g:t.data[t.pos+1],b:t.data[t.pos+2]}),t.pos+=3;return i}async function tU(t,e,i,s,n,a){let o=e.frames[s(!0)];o.left=t.nextTwoBytes(),o.top=t.nextTwoBytes(),o.width=t.nextTwoBytes(),o.height=t.nextTwoBytes();let r=t.nextByte(),l=(128&r)==128;o.sortFlag=(32&r)==32,o.reserved=(24&r)>>>3,l&&(o.localColorTable=t$(t,1<<(7&r)+1));let c=t=>{let{r:s,g:a,b:r}=(l?o.localColorTable:e.globalColorTable)[t];return t!==n(null)?{r:s,g:a,b:r,a:255}:{r:s,g:a,b:r,a:i?~~((s+a+r)/3):0}},h=(()=>{try{return new ImageData(o.width,o.height,{colorSpace:"srgb"})}catch(t){if(t instanceof DOMException&&"IndexSizeError"===t.name)return null;throw t}})();if(null==h)throw EvalError("GIF frame size is to large");let d=t.nextByte(),u=t.readSubBlocksBin(),p=1<<d,f=(t,e)=>{let i=t>>>3,s=7&t;return(u[i]+(u[i+1]<<8)+(u[i+2]<<16)&(1<<e)-1<<s)>>>s};if((64&r)==64){for(let i=0,n=d+1,r=0,l=[[0]],u=0;u<4;u++){if(tq[u]<o.height){let t=0,e=0,s=!1;for(;!s;){let a=i;if(i=f(r,n),r+=n+1,i===p){n=d+1,l.length=p+2;for(let t=0;t<l.length;t++)l[t]=t<p?[t]:[]}else{for(let s of(i>=l.length?l.push(l[a].concat(l[a][0])):a!==p&&l.push(l[a].concat(l[i][0])),l[i])){let{r:i,g:n,b:a,a:r}=c(s);h.data.set([i,n,a,r],tq[u]*o.width+tW[u]*e+t%(4*o.width)),t+=4}l.length===1<<n&&n<12&&n++}t===4*o.width*(e+1)&&(e++,tq[u]+tW[u]*e>=o.height&&(s=!0))}}a?.(t.pos/(t.data.length-1),s(!1)+1,h,{x:o.left,y:o.top},{width:e.width,height:e.height})}o.image=h,o.bitmap=await createImageBitmap(h)}else{let i=0,n=d+1,r=0,l=-4,u=!1,m=[[0]];for(;!u;){let t=i;if(i=f(r,n),r+=n,i===p){n=d+1,m.length=p+2;for(let t=0;t<m.length;t++)m[t]=t<p?[t]:[]}else{if(i===p+1){u=!0;break}for(let e of(i>=m.length?m.push(m[t].concat(m[t][0])):t!==p&&m.push(m[t].concat(m[i][0])),m[i])){let{r:t,g:i,b:s,a:n}=c(e);h.data.set([t,i,s,n],l+=4)}m.length>=1<<n&&n<12&&n++}}o.image=h,o.bitmap=await createImageBitmap(h),a?.((t.pos+1)/t.data.length,s(!1)+1,o.image,{x:o.left,y:o.top},{width:e.width,height:e.height})}}async function tZ(t,e,i,s,n,a){switch(t.nextByte()){case f.EndOfFile:return!0;case f.Image:await tU(t,e,i,s,n,a);break;case f.Extension:!function(t,e,i,s){switch(t.nextByte()){case f.GraphicsControlExtension:{let n=e.frames[i(!1)];t.pos++;let a=t.nextByte();n.GCreserved=(224&a)>>>5,n.disposalMethod=(28&a)>>>2,n.userInputDelayFlag=(2&a)==2,n.delayTime=10*t.nextTwoBytes();let o=t.nextByte();(1&a)==1&&s(o),t.pos++;break}case f.ApplicationExtension:{t.pos++;let i={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};e.applicationExtensions.push(i);break}case f.CommentExtension:e.comments.push([i(!1),t.readSubBlocks()]);break;case f.PlainTextExtension:if(0===e.globalColorTable.length)throw EvalError("plain text extension without global color table");t.pos++,e.frames[i(!1)].plainTextData={left:t.nextTwoBytes(),top:t.nextTwoBytes(),width:t.nextTwoBytes(),height:t.nextTwoBytes(),charSize:{width:t.nextTwoBytes(),height:t.nextTwoBytes()},foregroundColor:t.nextByte(),backgroundColor:t.nextByte(),text:t.readSubBlocks()};break;default:t.skipSubBlocks()}}(t,e,s,n);break;default:throw EvalError("undefined block found")}return!1}async function tY(t,e,i){i||(i=!1);let s=await fetch(t);if(!s.ok&&404===s.status)throw EvalError("file not found");let n=await s.arrayBuffer(),a={width:0,height:0,totalTime:0,colorRes:0,pixelAspectRatio:0,frames:[],sortFlag:!1,globalColorTable:[],backgroundImage:new ImageData(1,1,{colorSpace:"srgb"}),comments:[],applicationExtensions:[]},o=new tH(new Uint8ClampedArray(n));if("GIF89a"!==o.getString(6))throw Error("not a supported GIF file");a.width=o.nextTwoBytes(),a.height=o.nextTwoBytes();let r=o.nextByte(),l=(128&r)==128;a.colorRes=(112&r)>>>4,a.sortFlag=(8&r)==8;let c=o.nextByte();a.pixelAspectRatio=o.nextByte(),0!==a.pixelAspectRatio&&(a.pixelAspectRatio=(a.pixelAspectRatio+15)/64),l&&(a.globalColorTable=t$(o,1<<(7&r)+1));let h=(()=>{try{return new ImageData(a.width,a.height,{colorSpace:"srgb"})}catch(t){if(t instanceof DOMException&&"IndexSizeError"===t.name)return null;throw t}})();if(null==h)throw Error("GIF frame size is to large");let{r:d,g:u,b:f}=a.globalColorTable[c];h.data.set(l?[d,u,f,255]:[0,0,0,0]);for(let t=4;t<h.data.length;t*=2)h.data.copyWithin(t,0,t);a.backgroundImage=h;let m=-1,v=!0,g=-1,y=t=>(t&&(v=!0),m),b=t=>(null!=t&&(g=t),g);try{do v&&(a.frames.push({left:0,top:0,width:0,height:0,disposalMethod:p.Replace,image:new ImageData(1,1,{colorSpace:"srgb"}
36),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),m++,g=-1,v=!1);while(!await tZ(o,a,i,y,b,e));for(let t of(a.frames.length--,a.frames)){if(t.userInputDelayFlag&&0===t.delayTime){a.totalTime=1/0;break}a.totalTime+=t.delayTime}return a}catch(t){if(t instanceof EvalError)throw Error(`error while parsing frame ${m} "${t.message}"`);throw t}}async function tj(t){if("gif"!==t.type){await tA(t);return}t.loading=!0;try{t.gifData=await tY(t.source),t.gifLoopCount=function(t){for(let e of t.applicationExtensions)if(e.identifier+e.authenticationCode==="NETSCAPE2.0")return e.data[1]+(e.data[2]<<8);return NaN}(t.gifData)??0,t.gifLoopCount||(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}class tK{constructor(t){this.validTypes=["image","images"],this.loadImageShape=async t=>{if(!this._engine.loadImage)throw Error(`${m.gK4} image shape not initialized`);await this._engine.loadImage({gif:t.gif,name:t.name,replaceColor:t.replaceColor??!1,src:t.src})},this._engine=t}addImage(t){this._engine.images||(this._engine.images=[]),this._engine.images.push(t)}draw(t){let{context:e,radius:i,particle:s,opacity:n}=t,a=s.image,o=a?.element;if(a){if(e.globalAlpha=n,a.gif&&a.gifData)!function(t){let{context:e,radius:i,particle:s,delta:n}=t,a=s.image;if(!a?.gifData||!a.gif)return;let o=new OffscreenCanvas(a.gifData.width,a.gifData.height),r=o.getContext("2d");if(!r)throw Error("could not create offscreen canvas context");r.imageSmoothingQuality="low",r.imageSmoothingEnabled=!1,r.clearRect(tG.x,tG.y,o.width,o.height),void 0===s.gifLoopCount&&(s.gifLoopCount=a.gifLoopCount??0);let l=s.gifFrame??0,c={x:-(.5*a.gifData.width),y:-(.5*a.gifData.height)},h=a.gifData.frames[l];if(void 0===s.gifTime&&(s.gifTime=0),h.bitmap){switch(e.scale(i/a.gifData.width,i/a.gifData.height),h.disposalMethod){case p.UndefinedA:case p.UndefinedB:case p.UndefinedC:case p.UndefinedD:case p.Replace:r.drawImage(h.bitmap,h.left,h.top),e.drawImage(o,c.x,c.y),r.clearRect(tG.x,tG.y,o.width,o.height);break;case p.Combine:r.drawImage(h.bitmap,h.left,h.top),e.drawImage(o,c.x,c.y);break;
36case p.RestoreBackground:r.drawImage(h.bitmap,h.left,h.top),e.drawImage(o,c.x,c.y),r.clearRect(tG.x,tG.y,o.width,o.height),a.gifData.globalColorTable.length?r.putImageData(a.gifData.backgroundImage,c.x,c.y):r.putImageData(a.gifData.frames[0].image,c.x+h.left,c.y+h.top);break;case p.RestorePrevious:{let t=r.getImageData(tG.x,tG.y,o.width,o.height);r.drawImage(h.bitmap,h.left,h.top),e.drawImage(o,c.x,c.y),r.clearRect(tG.x,tG.y,o.width,o.height),r.putImageData(t,tG.x,tG.y)}}if(s.gifTime+=n.value,s.gifTime>h.delayTime){if(s.gifTime-=h.delayTime,++l>=a.gifData.frames.length){if(--s.gifLoopCount<=0)return;l=0,r.clearRect(tG.x,tG.y,o.width,o.height)}s.gifFrame=l}e.scale(a.gifData.width/i,a.gifData.height/i)}}(t);else if(o){let t=a.ratio,s={x:-i,y:-i},n=2*i;e.drawImage(o,s.x,s.y,n,n/t)}e.globalAlpha=1}}getSidesCount(){return 12}async init(t){let e=t.actualOptions;if(e.preload&&this._engine.loadImage)for(let t of e.preload)await this._engine.loadImage(t)}loadShape(t){if("image"!==t.shape&&"images"!==t.shape)return;this._engine.images||(this._engine.images=[]);let e=t.shapeData;e&&(this._engine.images.find(t=>t.name===e.name||t.source===e.src)||this.loadImageShape(e).then(()=>{this.loadShape(t)}))}particleInit(t,e){if("image"!==e.shape&&"images"!==e.shape)return;this._engine.images||(this._engine.images=[]);let i=this._engine.images,s=e.shapeData;if(!s)return;let n=e.getFillColor(),a=i.find(t=>t.name===s.name||t.source===s.src);if(!a)return;let o=s.replaceColor??a.replaceColor;if(a.loading){setTimeout(()=>{this.particleInit(t,e)});return}(async()=>{let t;(t=a.svgData&&n?await function(t,e,i,s){let n=function(t,e,i){let{svgData:s}=t;if(!s)return"";let n=(0,m.vzQ)(e,i);if(s.includes("fill"))return s.replace(tB,()=>n);let a=s.indexOf(">");return`${s.substring(0,a)} fill="${n}"${s.substring(a)}`}(t,i,s.opacity?.value??1),a={color:i,gif:e.gif,data:{...t,svgData:n},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor,source:e.src};return new Promise(e=>{let i=new Blob([n],{type:"image/svg+xml"}),s=URL||window.URL||window.webkitURL||window,o=s.createObjectURL(i),r=new Image;r.addEventListener("load",()=>{a.loaded=!0,a.element=r,e(a),s.revokeObjectURL(o)});let l=async()=>{s.revokeObjectURL(o);let i={...t,error:!1,loading:!0};await tA(i),a.loaded=!0,a.element=i.element,e(a)};r.addEventListener("error",()=>void l()),r.src=o})}(a,s,n,e):{color:n,data:a,element:a.element,gif:a.gif,gifData:a.gifData,gifLoopCount:a.gifLoopCount,loaded:!0,ratio:s.width&&s.height?s.width/s.height:a.ratio??1,replaceColor:o,source:s.src}).ratio||(t.ratio=1);let i={image:t,fill:s.fill??e.shapeFill,close:s.close??e.shapeClose};e.image=i.image,e.shapeFill=i.fill,e.shapeClose=i.close})()}}class tX{constructor(){this.src="",this.gif=!1}load(t){(0,m.Ft)(t)||(void 0!==t.gif&&(this.gif=t.gif),void 0!==t.height&&(this.height=t.height),void 0!==t.name&&(this.name=t.name),void 0!==t.replaceColor&&(this.replaceColor=t.replaceColor),void 0!==t.src&&(this.src=t.src),void 0===t.width||(this.width=t.width))}}class tN{constructor(t){this.id="imagePreloader",this._engine=t}async getPlugin(){return await Promise.resolve(),{}}loadOptions(t,e){if(!e?.preload)return;t.preload||(t.preload=[]);let i=t.preload;for(let t of e.preload){let e=i.find(e=>e.name===t.name||e.src===t.src);if(e)e.load(t);else{let e=new tX;e.load(t),i.push(e)}}}needsPlugin(){return!0}}async function tQ(t,e=!0){t.checkVersion("3.9.1"),t.loadImage||(t.loadImage=async e=>{if(!e.name&&!e.src)throw Error(`${m.gK4} no image source provided`);if(t.images||(t.images=[]),!t.images.find(t=>t.name===e.name||t.source===e.src))try{let i;let s={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-3),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};t.images.push(s),i=e.gif?tj:e.replaceColor?tV:tA,await i(s)}catch{throw Error(`${m.gK4} ${e.name??e.src} not found`)}});let i=new tN(t);await t.addPlugin(i,e),await t.addShape(new tK(t),e)}class tJ extends m.SWe{constructor(){super(),this.sync=!1}load(t){(0,m.Ft)(t)||(super.load(t),void 0===t.sync||(this.sync=t.sync))}}class t0 extends m.SWe{constructor(){super(),this.sync=!1}load(t){(0,m.Ft)(t)||(super.load(t),void 0===t.sync||(this.sync=t.sync))}}class t1{constructor(){this.count=0,this.delay=new tJ,this.duration=new t0}load(t){(0,m.Ft)(t)||(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class t2{constructor(t){this.container=t}init(t){let e=this.container,i=t.options.life;i&&(t.life={delay:e.retina.reduceFactor?(0,m.Gu7)(i.delay.value)*(i.delay.sync?1:(0,m.sZz)())/e.retina.reduceFactor*m.X5o:0,delayTime:0,duration:e.retina.reduceFactor?(0,m.Gu7)(i.duration.value)*(i.duration.sync?1:(0,m.sZz)())/e.retina.reduceFactor*m.X5o:0,time:0,count:i.count},t.life.duration<=0&&(t.life.duration=-1),t.life.count<=0&&(t.life.count=-1),t.life&&(t.spawning=t.life.delay>0))}isEnabled(t){return!t.destroyed}loadOptions(t,...e){for(let i of(t.life||(t.life=new t1),e))t.life.load(i?.life)}
36update(t,e){this.isEnabled(t)&&t.life&&function(t,e,i){if(!t.life)return;let s=t.life,n=!1;if(t.spawning){if(s.delayTime+=e.value,!(s.delayTime>=t.life.delay))return;n=!0,t.spawning=!1,s.delayTime=0,s.time=0}if(-1===s.duration||t.spawning||(n?s.time=0:s.time+=e.value,s.time<s.duration))return;if(s.time=0,t.life.count>0&&t.life.count--,0===t.life.count){t.destroy();return}let a=(0,m.Cst)(0,i.width),o=(0,m.Cst)(0,i.width);t.position.x=(0,m.vdf)(a),t.position.y=(0,m.vdf)(o),t.spawning=!0,s.delayTime=0,s.time=0,t.reset();let r=t.options.life;r&&(s.delay=(0,m.Gu7)(r.delay.value)*m.X5o,s.duration=(0,m.Gu7)(r.duration.value)*m.X5o)}(t,e,this.container.canvas.size)}}async function t5(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("life",async t=>Promise.resolve(new t2(t)),e)}class t3{constructor(){this.validTypes=["line"]}draw(t){!function(t){let{context:e,particle:i,radius:s}=t,n=i.shapeData;e.moveTo(-s,0),e.lineTo(s,0),e.lineCap=n?.cap??"butt"}(t)}getSidesCount(){return 1}}async function t6(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new t3,e)}class t9{init(){}isEnabled(t){return!(0,m.KrJ)()&&!t.destroyed&&t.container.actualOptions.interactivity.events.onHover.parallax.enable}move(t){let e=t.container,i=e.actualOptions.interactivity.events.onHover.parallax;if((0,m.KrJ)()||!i.enable)return;let s=i.force,n=e.interactivity.mouse.position;if(!n)return;let a=e.canvas.size,o={x:.5*a.width,y:.5*a.height},r=i.smooth,l=t.getRadius()/s,c={x:(n.x-o.x)*l,y:(n.y-o.y)*l},{offset:h}=t;h.x+=(c.x-h.x)/r,h.y+=(c.y-h.y)/r}}async function t7(t,e=!0){t.checkVersion("3.9.1"),await t.addMover("parallax",()=>Promise.resolve(new t9),e)}class t8 extends m.$Sh{constructor(t){super(t)}clear(){}init(){}interact(t){let e=this.container;void 0===t.attractDistance&&(t.attractDistance=(0,m.Gu7)(t.options.move.attract.distance)*e.retina.pixelRatio);let i=t.attractDistance,s=t.getPosition();for(let n of e.particles.quadTree.queryCircle(s,i)){if(t===n||!n.options.move.attract.enable||n.destroyed||n.spawning)continue;let e=n.getPosition(),{dx:i,dy:a}=(0,m.oW6)(s,e),o=t.options.move.attract.rotate,r=i/(1e3*o.x),l=a/(1e3*o.y),c=n.size.value/t.size.value,h=1/c;t.velocity.x-=r*c,t.velocity.y-=l*c,n.velocity.x+=r*h,n.velocity.y+=l*h}}isEnabled(t){return t.options.move.attract.enable}reset(){}}async function t4(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("particlesAttract",t=>Promise.resolve(new t8(t)),e)}function et(t,e,i,s,n,a){let o=(0,m.uZ5)(t.options.collisions.absorb.speed*n.factor/10,0,s);t.size.value+=.5*o,i.size.value-=o,s<=a&&(i.size.value=0,i.destroy())}let ee=t=>{void 0===t.collisionMaxSpeed&&(t.collisionMaxSpeed=(0,m.Gu7)(t.options.collisions.maxSpeed)),t.velocity.length>t.collisionMaxSpeed&&(t.velocity.length=t.collisionMaxSpeed)};function ei(t,e){(0,m.kRC)((0,m.gy4)(t),(0,m.gy4)(e)),ee(t),ee(e)}class es extends m.$Sh{constructor(t){super(t)}clear(){}init(){}interact(t,e){if(t.destroyed||t.spawning)return;let i=this.container,s=t.getPosition(),n=t.getRadius();for(let a of i.particles.quadTree.queryCircle(s,2*n)){if(t===a||!a.options.collisions.enable||t.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;let o=a.getPosition(),r=a.getRadius();!(Math.abs(Math.round(s.z)-Math.round(o.z))>n+r)&&((0,m.Spd)(s,o)>n+r||function(t,e,i,s){switch(t.options.collisions.mode){case m.Dpx.absorb:!function(t,e,i,s){let n=t.getRadius(),a=e.getRadius();void 0===n&&void 0!==a?t.destroy():void 0!==n&&void 0===a?e.destroy():void 0!==n&&void 0!==a&&(n>=a?et(t,n,e,a,i,s):et(e,a,t,n,i,s))}(t,e,i,s);break;case m.Dpx.bounce:ei(t,e);break;case m.Dpx.destroy:t.unbreakable||e.unbreakable||ei(t,e),void 0===t.getRadius()&&void 0!==e.getRadius()?t.destroy():void 0!==t.getRadius()&&void 0===e.getRadius()?e.destroy():void 0!==t.getRadius()&&void 0!==e.getRadius()&&(t.getRadius()>=e.getRadius()?e:t).destroy()}}(t,a,e,i.retina.pixelRatio))}}isEnabled(t){return t.options.collisions.enable}reset(){}}async function en(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("particlesCollisions",t=>Promise.resolve(new es(t)),e)}class ea extends m.Cdc{constructor(t,e,i,s){super(t,e,i),this.canvasSize=s,this.canvasSize={...s}}contains(t){let{width:e,height:i}=this.canvasSize,{x:s,y:n}=t;return super.contains(t)||super.contains({x:s-e,y:n})||super.contains({x:s-e,y:n-i})||super.contains({x:s,y:n-i})}intersects(t){if(super.intersects(t))return!0;let e={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==t.radius){let i=new m.Cdc(e.x,e.y,2*t.radius);return super.intersects(i)}if(void 0!==t.size){let i=new m.AeJ(e.x,e.y,2*t.size.width,2*t.size.height);return super.intersects(i)}return!1}}class eo{constructor(){this.blur=5,this.color=new m.OzF,this.color.value="#000",this.enable=!1}load(t){(0,m.Ft)(t)||(void 0!==t.blur&&(this.blur=t.blur),this.color=m.OzF.create(this.color,t.color),void 0===t.enable||(this.enable=t.enable))}}class er{constructor(){this.enable=!1,this.frequency=1}load(t){(0,m.Ft)(t)||(void 0!==t.color&&(this.color=m.OzF.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))}}
36class el{constructor(){this.blink=!1,this.color=new m.OzF,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new eo,this.triangles=new er,this.width=1,this.warp=!1}load(t){(0,m.Ft)(t)||(void 0!==t.id&&(this.id=t.id),void 0!==t.blink&&(this.blink=t.blink),this.color=m.OzF.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))}}let ec={x:0,y:0};class eh extends m.$Sh{constructor(t,e){super(t),this._setColor=t=>{if(!t.options.links)return;let e=this._linkContainer,i=t.options.links,s=void 0===i.id?e.particles.linksColor:e.particles.linksColors.get(i.id);if(s)return;let n=i.color;s=(0,m.Dt5)(this._engine,n,i.blink,i.consent),void 0===i.id?e.particles.linksColor=s:e.particles.linksColors.set(i.id,s)},this._linkContainer=t,this._engine=e}clear(){}init(){this._linkContainer.particles.linksColor=void 0,this._linkContainer.particles.linksColors=new Map}interact(t){let e;if(!t.options.links)return;t.links=[];let i=t.getPosition(),s=this.container,n=s.canvas.size;if(i.x<ec.x||i.y<ec.y||i.x>n.width||i.y>n.height)return;let a=t.options.links,o=a.opacity,r=t.retina.linksDistance??0,l=a.warp;for(let c of(e=l?new ea(i.x,i.y,r,n):new m.Cdc(i.x,i.y,r),s.particles.quadTree.query(e))){let e=c.options.links;if(t===c||!e?.enable||a.id!==e.id||c.spawning||c.destroyed||!c.links||t.links.some(t=>t.destination===c)||c.links.some(e=>e.destination===t))continue;let s=c.getPosition();if(s.x<ec.x||s.y<ec.y||s.x>n.width||s.y>n.height)continue;let h=function(t,e,i,s,n){let{dx:a,dy:o,distance:r}=(0,m.oW6)(t,e);if(!n||r<=i)return r;let l={x:Math.abs(a),y:Math.abs(o)},c={x:Math.min(l.x,s.width-l.x),y:Math.min(l.y,s.height-l.y)};return Math.sqrt(c.x**2+c.y**2)}(i,s,r,n,l&&e.warp);if(h>r)continue;let d=(1-h/r)*o;this._setColor(t),t.links.push({destination:c,opacity:d})}}isEnabled(t){return!!t.options.links?.enable}loadParticlesOptions(t,...e){for(let i of(t.links||(t.links=new el),e))t.links.load(i?.links)}reset(){}}async function ed(t,e=!0){await t.addInteractor("particlesLinks",async e=>Promise.resolve(new eh(e,t)),e)}function eu(t,e){var i;let s=((i=t.map(t=>t.id)).sort((t,e)=>t-e),i.join("_")),n=e.get(s);return void 0===n&&(n=(0,m.sZz)(),e.set(s,n)),n}class ep{constructor(t,e){this._drawLinkLine=(t,e)=>{let i=t.options.links;if(!i?.enable)return;let s=this._container,n=s.actualOptions,a=e.destination,o=t.getPosition(),r=a.getPosition(),l=e.opacity;s.canvas.draw(e=>{let c;let h=t.options.twinkle?.lines;if(h?.enable){let t=h.frequency,e=(0,m.tXk)(this._engine,h.color);(0,m.sZz)()<t&&e&&(c=e,l=(0,m.Gu7)(h.opacity))}if(!c){let e=void 0!==i.id?s.particles.linksColors.get(i.id):s.particles.linksColor;c=(0,m.BEi)(t,a,e)}if(!c)return;let d=t.retina.linksWidth??0,u=t.retina.linksDistance??0,{backgroundMask:p}=n;!function(t){let e=!1,{begin:i,end:s,engine:n,maxDistance:a,context:o,canvasSize:r,width:l,backgroundMask:c,colorLine:h,opacity:d,links:u}=t;if((0,m.Spd)(i,s)<=a)(0,m.pSR)(o,i,s),e=!0;else if(u.warp){let t,n;let l={x:s.x-r.width,y:s.y},c=(0,m.oW6)(i,l);if(c.distance<=a){let e=i.y-c.dy/c.dx*i.x;t={x:0,y:e},n={x:r.width,y:e}}else{let e={x:s.x,y:s.y-r.height},o=(0,m.oW6)(i,e);if(o.distance<=a){let e=-(i.y-o.dy/o.dx*i.x)/(o.dy/o.dx);t={x:e,y:0},n={x:e,y:r.height}}else{let e={x:s.x-r.width,y:s.y-r.height},o=(0,m.oW6)(i,e);if(o.distance<=a){let e=i.y-o.dy/o.dx*i.x;n={x:(t={x:-e/(o.dy/o.dx),y:e}).x+r.width,y:t.y+r.height}}}}t&&n&&((0,m.pSR)(o,i,t),(0,m.pSR)(o,s,n),e=!0)}if(!e)return;o.lineWidth=l,c.enable&&(o.globalCompositeOperation=c.composite),o.strokeStyle=(0,m.izR)(h,d);let{shadow:p}=u;if(p.enable){let t=(0,m.tXk)(n,p.color);t&&(o.shadowBlur=p.blur,o.shadowColor=(0,m.izR)(t))}o.stroke()}({context:e,width:d,begin:o,end:r,engine:this._engine,maxDistance:u,canvasSize:s.canvas.size,links:i,backgroundMask:p,colorLine:c,opacity:l})})},this._drawLinkTriangle=(t,e,i)=>{let s=t.options.links;
36if(!s?.enable)return;let n=s.triangles;if(!n.enable)return;let a=this._container,o=a.actualOptions,r=e.destination,l=i.destination,c=n.opacity??(e.opacity+i.opacity)*.5;c<=0||a.canvas.draw(e=>{let i=t.getPosition(),h=r.getPosition(),d=l.getPosition(),u=t.retina.linksDistance??0;if((0,m.Spd)(i,h)>u||(0,m.Spd)(d,h)>u||(0,m.Spd)(d,i)>u)return;let p=(0,m.tXk)(this._engine,n.color);if(!p){let e=void 0!==s.id?a.particles.linksColors.get(s.id):a.particles.linksColor;p=(0,m.BEi)(t,r,e)}p&&function(t){let{context:e,pos1:i,pos2:s,pos3:n,backgroundMask:a,colorTriangle:o,opacityTriangle:r}=t;e.beginPath(),e.moveTo(i.x,i.y),e.lineTo(s.x,s.y),e.lineTo(n.x,n.y),e.closePath(),a.enable&&(e.globalCompositeOperation=a.composite),e.fillStyle=(0,m.izR)(o,r),e.fill()}({context:e,pos1:i,pos2:h,pos3:d,backgroundMask:o.backgroundMask,colorTriangle:p,opacityTriangle:c})})},this._drawTriangles=(t,e,i,s)=>{let n=i.destination;if(!(t.links?.triangles.enable&&n.options.links?.triangles.enable))return;let a=n.links?.filter(t=>{let e=this._getLinkFrequency(n,t.destination);return n.options.links&&e<=n.options.links.frequency&&s.findIndex(e=>e.destination===t.destination)>=0});if(a?.length)for(let s of a){let a=s.destination;this._getTriangleFrequency(e,n,a)>t.links.triangles.frequency||this._drawLinkTriangle(e,i,s)}},this._getLinkFrequency=(t,e)=>eu([t,e],this._freqs.links),this._getTriangleFrequency=(t,e,i)=>eu([t,e,i],this._freqs.triangles),this._container=t,this._engine=e,this._freqs={links:new Map,triangles:new Map}}drawParticle(t,e){let{links:i,options:s}=e;if(!i?.length)return;let n=i.filter(t=>s.links&&(s.links.frequency>=1||this._getLinkFrequency(e,t.destination)<=s.links.frequency));for(let t of n)this._drawTriangles(s,e,t,n),t.opacity>0&&(e.retina.linksWidth??0)>0&&this._drawLinkLine(e,t)}
36async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(t){if(t.links=[],!t.options.links)return;let e=this._container.retina.pixelRatio,{retina:i}=t,{distance:s,width:n}=t.options.links;i.linksDistance=s*e,i.linksWidth=n*e}particleDestroyed(t){t.links=[]}}class ef{constructor(t){this.id="links",this._engine=t}getPlugin(t){return Promise.resolve(new ep(t,this._engine))}loadOptions(){}needsPlugin(){return!0}}async function em(t,e=!0){let i=new ef(t);await t.addPlugin(i,e)}async function ev(t,e=!0){t.checkVersion("3.9.1"),await ed(t,e),await em(t,e)}let eg={x:0,y:0};class ey{draw(t){let{particle:e,radius:i}=t;!function(t,e,i){let{context:s}=t,n=i.count.numerator*i.count.denominator,a=i.count.numerator/i.count.denominator,o=Math.PI-(0,m.Idc)(180*(a-2)/a);if(s){s.beginPath(),s.translate(e.x,e.y),s.moveTo(eg.x,eg.y);for(let t=0;t<n;t++)s.lineTo(i.length,eg.y),s.translate(i.length,eg.y),s.rotate(o)}}(t,this.getCenter(e,i),this.getSidesData(e,i))}getSidesCount(t){let e=t.shapeData;return Math.round((0,m.Gu7)(e?.sides??5))}}class eb extends ey{constructor(){super(...arguments),this.validTypes=["polygon"]}getCenter(t,e){return{x:-e/(t.sides/3.5),y:-e/.76}}getSidesData(t,e){let i=t.sides;return{count:{denominator:1,numerator:i},length:2.66*e/(i/3)}}}class ew extends ey{constructor(){super(...arguments),this.validTypes=["triangle"]}getCenter(t,e){return{x:-e,y:e/1.66}}getSidesCount(){return 3}getSidesData(t,e){return{count:{denominator:2,numerator:3},length:2*e}}}async function ex(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new eb,e)}async function e_(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new ew,e)}async function ek(t,e=!0){t.checkVersion("3.9.1"),await ex(t,e),await e_(t,e)}class ez{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){(0,m.Ft)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,m.Cst)(t.speed)),void 0!==t.decay&&(this.decay=(0,m.Cst)(t.decay)),void 0===t.sync||(this.sync=t.sync))}}class eC extends m.SWe{constructor(){super(),this.animation=new ez,this.direction=m.RnL.clockwise,this.path=!1,this.value=0}load(t){(0,m.Ft)(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))}}let eM=2*Math.PI;class eP{constructor(t){this.container=t}init(t){let e=t.options.rotate;if(!e)return;t.rotate={enable:e.animation.enable,value:(0,m.Idc)((0,m.Gu7)(e.value)),min:0,max:eM},t.pathRotation=e.path;let i=e.direction;switch(i===m.RnL.random&&(i=Math.floor(2*(0,m.sZz)())>0?m.RnL.counterClockwise:m.RnL.clockwise),i){case m.RnL.counterClockwise:case"counterClockwise":t.rotate.status=m.NV1.decreasing;break;case m.RnL.clockwise:t.rotate.status=m.NV1.increasing}let s=e.animation;s.enable&&(t.rotate.decay=1-(0,m.Gu7)(s.decay),t.rotate.velocity=(0,m.Gu7)(s.speed)/360*this.container.retina.reduceFactor,s.sync||(t.rotate.velocity*=(0,m.sZz)())),t.rotation=t.rotate.value}isEnabled(t){let e=t.options.rotate;return!!e&&!t.destroyed&&!t.spawning&&(!!e.value||e.animation.enable||e.path)}loadOptions(t,...e){for(let i of(t.rotate||(t.rotate=new eC),e))t.rotate.load(i?.rotate)}update(t,e){this.isEnabled(t)&&(t.isRotating=!!t.rotate,t.rotate&&((0,m.CrJ)(t,t.rotate,!1,m.Hyf.none,e),t.rotation=t.rotate.value))}}async function eS(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("rotate",t=>Promise.resolve(new eP(t)),e)}let eO=Math.sqrt(2);class eE{constructor(){this.validTypes=["edge","square"]}draw(t){!function(t){let{context:e,radius:i}=t,s=i/eO,n=2*s;e.rect(-s,-s,n,n)}(t)}getSidesCount(){return 4}}async function eD(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new eE,e)}let eR={x:0,y:0};class eT{constructor(){this.validTypes=["star"]}draw(t){!function(t){let{context:e,particle:i,radius:s}=t,n=i.sides,a=i.starInset??2;e.moveTo(eR.x,eR.y-s);for(let t=0;t<n;t++)e.rotate(Math.PI/n),e.lineTo(eR.x,eR.y-s*a),e.rotate(Math.PI/n),e.lineTo(eR.x,eR.y-s)}(t)}getSidesCount(t){let e=t.shapeData;return Math.round((0,m.Gu7)(e?.sides??5))}particleInit(t,e){let i=e.shapeData;e.starInset=(0,m.Gu7)(i?.inset??2)}}async function eI(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new eT,e)}class eL{constructor(t,e){this._container=t,this._engine=e}init(t){let e=this._container,i=t.options,s=(0,m.wA_)(i.stroke,t.id,i.reduceDuplicates);t.strokeWidth=(0,m.Gu7)(s.width)*e.retina.pixelRatio,t.strokeOpacity=(0,m.Gu7)(s.opacity??1),t.strokeAnimation=s.color?.animation;let n=(0,m.lNs)(this._engine,s.color)??t.getFillColor();n&&(t.strokeColor=(0,m.bS$)(n,t.strokeAnimation,e.retina.reduceFactor))}isEnabled(t){let e=t.strokeAnimation,{strokeColor:i}=t;return!t.destroyed&&!t.spawning&&!!e&&(i?.h.value!==void 0&&i.h.enable||i?.s.value!==void 0&&i.s.enable||i?.l.value!==void 0&&i.l.enable)}update(t,e){this.isEnabled(t)&&(0,m.PBz)(t.strokeColor,e)}}async function eF(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("strokeColor",e=>Promise.resolve(new eL(e,t)),e)}async function eB(t,e=!0){t.checkVersion("3.9.1"),await t7(t,!1),await Q(t,!1),await tn(t,!1),await td(t,!1),await tm(t,!1),await tb(t,!1),await tx(t,!1),await tz(t,!1),await tP(t,!1),await tT(t,!1),await tF(t,!1),await t4(t,!1),await en(t,!1),await ev(t,!1),await $(t,!1),await Y(t,!1),await tQ(t,!1),await t6(t,!1),await ek(t,!1),await eD(t,!1),await eI(t,!1),await t5(t,!1),await eS(t,!1),await eF(t,!1),await G(t,e)}}
36,7712:function(t,e,i){i.d(e,{_:function(){return c}});var s=i(6567),n=i(7798),a=i(9716);function o(){let t=!1,e=new Set,i={subscribe:t=>(e.add(t),()=>void e.delete(t)),start(i,n){(0,s.k)(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let o=[];return e.forEach(t=>{o.push((0,a.d)(t,i,{transitionOverride:n}))}),Promise.all(o)},set:i=>((0,s.k)(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(t=>{(0,n.gg)(t,i)})),stop(){e.forEach(t=>{!function(t){t.values.forEach(t=>t.stop())}(t)})},mount:()=>(t=!0,()=>{t=!1,i.stop()})};return i}var r=i(961),l=i(538);let c=function(){let t=(0,r.h)(o);return(0,l.L)(t.mount,[]),t}},2167:function(t,e,i){i.d(e,{M:function(){return v}});var s=i(2265),n=i(538);function a(){let t=(0,s.useRef)(!1);return(0,n.L)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}var o=i(2363),r=i(8243),l=i(961);class c extends s.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:t,isPresent:e}){let i=(0,s.useId)(),n=(0,s.useRef)(null),a=(0,s.useRef)({width:0,height:0,top:0,left:0});return(0,s.useInsertionEffect)(()=>{let{width:t,height:s,top:o,left:r}=a.current;if(e||!n.current||!t||!s)return;n.current.dataset.motionPopId=i;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` 37 [data-motion-pop-id="${i}"] { 38 position: absolute !important; 39 width: ${t}px !important; 40 height: ${s}px !important; 41 top: ${o}px !important; 42 left: ${r}px !important; 43 } 44 `),()=>{document.head.removeChild(l)}},[e]),s.createElement(c,{isPresent:e,childRef:n,sizeRef:a},s.cloneElement(t,{ref:n}))}let d=({children:t,initial:e,isPresent:i,onExitComplete:n,custom:a,presenceAffectsLayout:o,mode:c})=>{let d=(0,l.h)(u),p=(0,s.useId)(),f=(0,s.useMemo)(()=>({id:p,initial:e,isPresent:i,custom:a,onExitComplete:t=>{for(let e of(d.set(t,!0),d.values()))if(!e)return;n&&n()},register:t=>(d.set(t,!1),()=>d.delete(t))}),o?void 0:[i]);return(0,s.useMemo)(()=>{d.forEach((t,e)=>d.set(e,!1))},[i]),s.useEffect(()=>{i||d.size||!n||n()},[i]),"popLayout"===c&&(t=s.createElement(h,{isPresent:i},t)),s.createElement(r.O.Provider,{value:f},t)};function u(){return new Map}var p=i(781),f=i(6567);let m=t=>t.key||"",v=({children:t,custom:e,initial:i=!0,onExitComplete:r,exitBeforeEnter:l,presenceAffectsLayout:c=!0,mode:h="sync"})=>{var u;(0,f.k)(!l,"Replace exitBeforeEnter with mode='wait'");let v=(0,s.useContext)(p.p).forceRender||function(){let t=a(),[e,i]=(0,s.useState)(0),n=(0,s.useCallback)(()=>{t.current&&i(e+1)},[e]);return[(0,s.useCallback)(()=>o.Wi.postRender(n),[n]),e]}()[0],g=a(),y=function(t){let e=[];return s.Children.forEach(t,t=>{(0,s.isValidElement)(t)&&e.push(t)}),e}(t),b=y,w=(0,s.useRef)(new Map).current,x=(0,s.useRef)(b),_=(0,s.useRef)(new Map).current,k=(0,s.useRef)(!0);if((0,n.L)(()=>{k.current=!1,function(t,e){t.forEach(t=>{let i=m(t);e.set(i,t)})}(y,_),x.current=b}),u=()=>{k.current=!0,_.clear(),w.clear()},(0,s.useEffect)(()=>()=>u(),[]),k.current)return s.createElement(s.Fragment,null,b.map(t=>s.createElement(d,{key:m(t),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:c,mode:h},t)));b=[...b];let z=x.current.map(m),C=y.map(m),M=z.length;for(let t=0;t<M;t++){let e=z[t];-1!==C.indexOf(e)||w.has(e)||w.set(e,void 0)}return"wait"===h&&w.size&&(b=[]),w.forEach((t,i)=>{if(-1!==C.indexOf(i))return;let n=_.get(i);if(!n)return;let a=z.indexOf(i),o=t;o||(o=s.createElement(d,{key:m(n),isPresent:!1,onExitComplete:()=>{w.delete(i);let t=Array.from(_.keys()).filter(t=>!C.includes(t));if(t.forEach(t=>_.delete(t)),x.current=y.filter(e=>{let s=m(e);return s===i||t.includes(s)}),!w.size){if(!1===g.current)return;v(),r&&r()}},custom:e,presenceAffectsLayout:c,mode:h},n),w.set(i,o)),b.splice(a,0,o)}),b=b.map(t=>{let e=t.key;return w.has(e)?t:s.createElement(d,{key:m(t),isPresent:!0,presenceAffectsLayout:c,mode:h},t)}),s.createElement(s.Fragment,null,w.size?b:b.map(t=>(0,s.cloneElement)(t)))}}
44,1350:function(t,e,i){i.d(e,{F:function(){return h},f:function(){return d}});var s=i(2265),n=(t,e,i,s,n,a,o,r)=>{let l=document.documentElement,c=["light","dark"];function h(e){(Array.isArray(t)?t:[t]).forEach(t=>{let i="class"===t,s=i&&a?n.map(t=>a[t]||t):n;i?(l.classList.remove(...s),l.classList.add(a&&a[e]?a[e]:e)):l.setAttribute(t,e)}),r&&c.includes(e)&&(l.style.colorScheme=e)}if(s)h(s);else try{let t=localStorage.getItem(e)||i,s=o&&"system"===t?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t;h(s)}catch(t){}},a=["light","dark"],o="(prefers-color-scheme: dark)",r="undefined"==typeof window,l=s.createContext(void 0),c={setTheme:t=>{},themes:[]},h=()=>{var t;return null!=(t=s.useContext(l))?t:c},d=t=>s.useContext(l)?s.createElement(s.Fragment,null,t.children):s.createElement(p,{...t}),u=["light","dark"],p=({forcedTheme:t,disableTransitionOnChange:e=!1,enableSystem:i=!0,enableColorScheme:n=!0,storageKey:r="theme",themes:c=u,defaultTheme:h=i?"system":"light",attribute:d="data-theme",value:p,children:y,nonce:b,scriptProps:w})=>{let[x,_]=s.useState(()=>m(r,h)),[k,z]=s.useState(()=>"system"===x?g():x),C=p?Object.values(p):c,M=s.useCallback(t=>{let s=t;if(!s)return;"system"===t&&i&&(s=g());let o=p?p[s]:s,r=e?v(b):null,l=document.documentElement,c=t=>{"class"===t?(l.classList.remove(...C),o&&l.classList.add(o)):t.startsWith("data-")&&(o?l.setAttribute(t,o):l.removeAttribute(t))};if(Array.isArray(d)?d.forEach(c):c(d),n){let t=a.includes(h)?h:null,e=a.includes(s)?s:t;l.style.colorScheme=e}null==r||r()},[b]),P=s.useCallback(t=>{let e="function"==typeof t?t(x):t;_(e);try{localStorage.setItem(r,e)}catch(t){}},[x]),S=s.useCallback(e=>{z(g(e)),"system"===x&&i&&!t&&M("system")},[x,t]);s.useEffect(()=>{let t=window.matchMedia(o);return t.addListener(S),S(t),()=>t.removeListener(S)},[S]),s.useEffect(()=>{let t=t=>{t.key===r&&(t.newValue?_(t.newValue):P(h))};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[P]),s.useEffect(()=>{M(null!=t?t:x)},[t,x]);let O=s.useMemo(()=>({theme:x,setTheme:P,forcedTheme:t,resolvedTheme:"system"===x?k:x,themes:i?[...c,"system"]:c,systemTheme:i?k:void 0}),[x,P,t,k,i,c]);return s.createElement(l.Provider,{value:O},s.createElement(f,{forcedTheme:t,storageKey:r,attribute:d,enableSystem:i,enableColorScheme:n,defaultTheme:h,value:p,themes:c,nonce:b,scriptProps:w}),y)},f=s.memo(({forcedTheme:t,storageKey:e,attribute:i,enableSystem:a,enableColorScheme:o,defaultTheme:r,value:l,themes:c,nonce:h,scriptProps:d})=>{let u=JSON.stringify([i,e,r,t,c,l,a,o]).slice(1,-1);return s.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?h:"",dangerouslySetInnerHTML:{__html:`(${n.toString()})(${u})`}})}),m=(t,e)=>{let i;if(!r){try{i=localStorage.getItem(t)||void 0}catch(t){}return i||e}},v=t=>{let e=document.createElement("style");return t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},g=t=>(t||(t=window.matchMedia(o)),t.matches?"dark":"light")}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.