diff --git a/assets/C-DdFC6DQh.png b/assets/C-DdFC6DQh.png new file mode 100644 index 0000000..88f8e30 Binary files /dev/null and b/assets/C-DdFC6DQh.png differ diff --git a/assets/animemiru-CLx5Th1b.jpeg b/assets/animemiru-CLx5Th1b.jpeg new file mode 100644 index 0000000..121e115 Binary files /dev/null and b/assets/animemiru-CLx5Th1b.jpeg differ diff --git a/assets/cpp-COLDLYDH.png b/assets/cpp-COLDLYDH.png new file mode 100644 index 0000000..532467a Binary files /dev/null and b/assets/cpp-COLDLYDH.png differ diff --git a/assets/css3-bLrZJUBe.png b/assets/css3-bLrZJUBe.png new file mode 100644 index 0000000..c4fde12 Binary files /dev/null and b/assets/css3-bLrZJUBe.png differ diff --git a/assets/django-C1oZCja_.png b/assets/django-C1oZCja_.png new file mode 100644 index 0000000..4b22811 Binary files /dev/null and b/assets/django-C1oZCja_.png differ diff --git a/assets/firebase-DSyU46yz.png b/assets/firebase-DSyU46yz.png new file mode 100644 index 0000000..6e58506 Binary files /dev/null and b/assets/firebase-DSyU46yz.png differ diff --git a/assets/html5-CKyDEyeN.png b/assets/html5-CKyDEyeN.png new file mode 100644 index 0000000..5f2157a Binary files /dev/null and b/assets/html5-CKyDEyeN.png differ diff --git a/assets/index-RPrl6scs.js b/assets/index-CouMVTiU.js similarity index 77% rename from assets/index-RPrl6scs.js rename to assets/index-CouMVTiU.js index 908b476..423325b 100644 --- a/assets/index-RPrl6scs.js +++ b/assets/index-CouMVTiU.js @@ -1,4 +1,4 @@ -function ah(t,e){for(var n=0;ni[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();function uh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var lc={exports:{}},us={},ac={exports:{}},D={};/** +function uh(t,e){for(var n=0;ni[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();function ch(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ac={exports:{}},us={},uc={exports:{}},D={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function ah(t,e){for(var n=0;n>>1,ne=z[Y];if(0>>1;Yr(Rs,I))Xtr(Zi,Rs)?(z[Y]=Zi,z[Xt]=I,Y=Xt):(z[Y]=Rs,z[Kt]=I,Y=Kt);else if(Xtr(Zi,I))z[Y]=Zi,z[Xt]=I,Y=Xt;else break e}}return R}function r(z,R){var I=z.sortIndex-R.sortIndex;return I!==0?I:z.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,f=null,d=3,y=!1,v=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(z){for(var R=n(u);R!==null;){if(R.callback===null)i(u);else if(R.startTime<=z)i(u),R.sortIndex=R.expirationTime,e(a,R);else break;R=n(u)}}function w(z){if(g=!1,m(z),!v)if(n(a)!==null)v=!0,Ms(S);else{var R=n(u);R!==null&&Ts(w,R.startTime-z)}}function S(z,R){v=!1,g&&(g=!1,p(M),M=-1),y=!0;var I=d;try{for(m(R),f=n(a);f!==null&&(!(f.expirationTime>R)||z&&!ge());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,d=f.priorityLevel;var ne=Y(f.expirationTime<=R);R=t.unstable_now(),typeof ne=="function"?f.callback=ne:f===n(a)&&i(a),m(R)}else i(a);f=n(a)}if(f!==null)var Ji=!0;else{var Kt=n(u);Kt!==null&&Ts(w,Kt.startTime-R),Ji=!1}return Ji}finally{f=null,d=I,y=!1}}var E=!1,C=null,M=-1,N=5,L=-1;function ge(){return!(t.unstable_now()-Lz||125Y?(z.sortIndex=I,e(u,z),n(a)===null&&z===n(u)&&(g?(p(M),M=-1):g=!0,Ts(w,I-Y))):(z.sortIndex=ne,e(a,z),v||y||(v=!0,Ms(S))),z},t.unstable_shouldYield=ge,t.unstable_wrapCallback=function(z){var R=d;return function(){var I=d;d=R;try{return z.apply(this,arguments)}finally{d=I}}}})(xc);wc.exports=xc;var Oh=wc.exports;/** + */(function(t){function e(z,R){var I=z.length;z.push(R);e:for(;0>>1,ne=z[Y];if(0>>1;Yr(Rs,I))Xtr(Ji,Rs)?(z[Y]=Ji,z[Xt]=I,Y=Xt):(z[Y]=Rs,z[Kt]=I,Y=Kt);else if(Xtr(Ji,I))z[Y]=Ji,z[Xt]=I,Y=Xt;else break e}}return R}function r(z,R){var I=z.sortIndex-R.sortIndex;return I!==0?I:z.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,f=null,d=3,y=!1,v=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(z){for(var R=n(u);R!==null;){if(R.callback===null)i(u);else if(R.startTime<=z)i(u),R.sortIndex=R.expirationTime,e(a,R);else break;R=n(u)}}function w(z){if(g=!1,m(z),!v)if(n(a)!==null)v=!0,Ms(S);else{var R=n(u);R!==null&&Ts(w,R.startTime-z)}}function S(z,R){v=!1,g&&(g=!1,p(M),M=-1),y=!0;var I=d;try{for(m(R),f=n(a);f!==null&&(!(f.expirationTime>R)||z&&!ge());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,d=f.priorityLevel;var ne=Y(f.expirationTime<=R);R=t.unstable_now(),typeof ne=="function"?f.callback=ne:f===n(a)&&i(a),m(R)}else i(a);f=n(a)}if(f!==null)var Zi=!0;else{var Kt=n(u);Kt!==null&&Ts(w,Kt.startTime-R),Zi=!1}return Zi}finally{f=null,d=I,y=!1}}var E=!1,C=null,M=-1,N=5,L=-1;function ge(){return!(t.unstable_now()-Lz||125Y?(z.sortIndex=I,e(u,z),n(a)===null&&z===n(u)&&(g?(p(M),M=-1):g=!0,Ts(w,I-Y))):(z.sortIndex=ne,e(a,z),v||y||(v=!0,Ms(S))),z},t.unstable_shouldYield=ge,t.unstable_wrapCallback=function(z){var R=d;return function(){var I=d;d=R;try{return z.apply(this,arguments)}finally{d=I}}}})(kc);xc.exports=kc;var Lh=xc.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function ah(t,e){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Co=Object.prototype.hasOwnProperty,Ih=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ma={},Ta={};function Dh(t){return Co.call(Ta,t)?!0:Co.call(Ma,t)?!1:Ih.test(t)?Ta[t]=!0:(Ma[t]=!0,!1)}function Nh(t,e,n,i){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Fh(t,e,n,i){if(e===null||typeof e>"u"||Nh(t,e,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function _e(t,e,n,i,r,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ue[t]=new _e(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ue[e]=new _e(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ue[t]=new _e(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ue[t]=new _e(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){ue[t]=new _e(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ue[t]=new _e(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ue[t]=new _e(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ue[t]=new _e(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ue[t]=new _e(t,5,!1,t.toLowerCase(),null,!1,!1)});var bl=/[\-:]([a-z])/g;function zl(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(bl,zl);ue[e]=new _e(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(bl,zl);ue[e]=new _e(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(bl,zl);ue[e]=new _e(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){ue[t]=new _e(t,1,!1,t.toLowerCase(),null,!1,!1)});ue.xlinkHref=new _e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){ue[t]=new _e(t,1,!1,t.toLowerCase(),null,!0,!0)});function Ml(t,e,n,i){var r=ue.hasOwnProperty(e)?ue[e]:null;(r!==null?r.type!==0:i||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Co=Object.prototype.hasOwnProperty,Dh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ma={},Ta={};function Nh(t){return Co.call(Ta,t)?!0:Co.call(Ma,t)?!1:Dh.test(t)?Ta[t]=!0:(Ma[t]=!0,!1)}function Fh(t,e,n,i){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function jh(t,e,n,i){if(e===null||typeof e>"u"||Fh(t,e,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function _e(t,e,n,i,r,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ue[t]=new _e(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ue[e]=new _e(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ue[t]=new _e(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ue[t]=new _e(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){ue[t]=new _e(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ue[t]=new _e(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ue[t]=new _e(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ue[t]=new _e(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ue[t]=new _e(t,5,!1,t.toLowerCase(),null,!1,!1)});var bl=/[\-:]([a-z])/g;function zl(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(bl,zl);ue[e]=new _e(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(bl,zl);ue[e]=new _e(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(bl,zl);ue[e]=new _e(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){ue[t]=new _e(t,1,!1,t.toLowerCase(),null,!1,!1)});ue.xlinkHref=new _e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){ue[t]=new _e(t,1,!1,t.toLowerCase(),null,!0,!0)});function Ml(t,e,n,i){var r=ue.hasOwnProperty(e)?ue[e]:null;(r!==null?r.type!==0:i||!(2l||r[o]!==s[l]){var a=` -`+r[o].replace(" at new "," at ");return t.displayName&&a.includes("")&&(a=a.replace("",t.displayName)),a}while(1<=o&&0<=l);break}}}finally{Is=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?li(t):""}function jh(t){switch(t.tag){case 5:return li(t.type);case 16:return li("Lazy");case 13:return li("Suspense");case 19:return li("SuspenseList");case 0:case 2:case 15:return t=Ds(t.type,!1),t;case 11:return t=Ds(t.type.render,!1),t;case 1:return t=Ds(t.type,!0),t;default:return""}}function zo(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case kn:return"Fragment";case xn:return"Portal";case Po:return"Profiler";case Tl:return"StrictMode";case Eo:return"Suspense";case bo:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Sc:return(t.displayName||"Context")+".Consumer";case _c:return(t._context.displayName||"Context")+".Provider";case Rl:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ol:return e=t.displayName||null,e!==null?e:zo(t.type)||"Memo";case Ct:e=t._payload,t=t._init;try{return zo(t(e))}catch{}}return null}function Ah(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return zo(e);case 8:return e===Tl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function $t(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Pc(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Bh(t){var e=Pc(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(o){i=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function nr(t){t._valueTracker||(t._valueTracker=Bh(t))}function Ec(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Pc(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function Or(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Mo(t,e){var n=e.checked;return Q({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Oa(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=$t(e.value!=null?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function bc(t,e){e=e.checked,e!=null&&Ml(t,"checked",e,!1)}function To(t,e){bc(t,e);var n=$t(e.value),i=e.type;if(n!=null)i==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Ro(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ro(t,e.type,$t(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function La(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Ro(t,e,n){(e!=="number"||Or(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var ai=Array.isArray;function In(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=ir.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Si(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var fi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Uh=["Webkit","ms","Moz","O"];Object.keys(fi).forEach(function(t){Uh.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),fi[e]=fi[t]})});function Rc(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||fi.hasOwnProperty(t)&&fi[t]?(""+e).trim():e+"px"}function Oc(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=Rc(n,e[n],i);n==="float"&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}var $h=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Io(t,e){if(e){if($h[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(k(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(k(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(k(61))}if(e.style!=null&&typeof e.style!="object")throw Error(k(62))}}function Do(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var No=null;function Ll(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Fo=null,Dn=null,Nn=null;function Na(t){if(t=Qi(t)){if(typeof Fo!="function")throw Error(k(280));var e=t.stateNode;e&&(e=ps(e),Fo(t.stateNode,t.type,e))}}function Lc(t){Dn?Nn?Nn.push(t):Nn=[t]:Dn=t}function Ic(){if(Dn){var t=Dn,e=Nn;if(Nn=Dn=null,Na(t),e)for(t=0;t>>=0,t===0?32:31-(Zh(t)/ep|0)|0}var rr=64,sr=4194304;function ui(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Nr(t,e){var n=t.pendingLanes;if(n===0)return 0;var i=0,r=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var l=o&~r;l!==0?i=ui(l):(s&=o,s!==0&&(i=ui(s)))}else o=n&~r,o!==0?i=ui(o):s!==0&&(i=ui(s));if(i===0)return 0;if(e!==0&&e!==i&&!(e&r)&&(r=i&-i,s=e&-e,r>=s||r===16&&(s&4194240)!==0))return e;if(i&4&&(i|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=i;0n;n++)e.push(t);return e}function Vi(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Xe(e),t[e]=n}function rp(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0=hi),Va=" ",qa=!1;function ef(t,e){switch(t){case"keyup":return Op.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var _n=!1;function Ip(t,e){switch(t){case"compositionend":return tf(e);case"keypress":return e.which!==32?null:(qa=!0,Va);case"textInput":return t=e.data,t===Va&&qa?null:t;default:return null}}function Dp(t,e){if(_n)return t==="compositionend"||!Ul&&ef(t,e)?(t=Jc(),xr=jl=zt=null,_n=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ka(n)}}function of(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?of(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function lf(){for(var t=window,e=Or();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Or(t.document)}return e}function $l(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Wp(t){var e=lf(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&of(n.ownerDocument.documentElement,n)){if(i!==null&&$l(n)){if(e=i.start,t=i.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=n.textContent.length,s=Math.min(i.start,r);i=i.end===void 0?s:Math.min(i.end,r),!t.extend&&s>i&&(r=i,i=s,s=r),r=Xa(n,s);var o=Xa(n,i);r&&o&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),s>i?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Sn=null,Ho=null,mi=null,Wo=!1;function Ja(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wo||Sn==null||Sn!==Or(i)||(i=Sn,"selectionStart"in i&&$l(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),mi&&Mi(mi,i)||(mi=i,i=Ar(Ho,"onSelect"),0En||(t.current=Ko[En],Ko[En]=null,En--)}function A(t,e){En++,Ko[En]=t.current,t.current=e}var Ht={},ye=Vt(Ht),Ee=Vt(!1),on=Ht;function Un(t,e){var n=t.type.contextTypes;if(!n)return Ht;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in n)r[s]=e[s];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function be(t){return t=t.childContextTypes,t!=null}function Ur(){U(Ee),U(ye)}function su(t,e,n){if(ye.current!==Ht)throw Error(k(168));A(ye,e),A(Ee,n)}function yf(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in e))throw Error(k(108,Ah(t)||"Unknown",r));return Q({},n,i)}function $r(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ht,on=ye.current,A(ye,t),A(Ee,Ee.current),!0}function ou(t,e,n){var i=t.stateNode;if(!i)throw Error(k(169));n?(t=yf(t,e,on),i.__reactInternalMemoizedMergedChildContext=t,U(Ee),U(ye),A(ye,t)):U(Ee),A(Ee,n)}var dt=null,ms=!1,Ys=!1;function gf(t){dt===null?dt=[t]:dt.push(t)}function nm(t){ms=!0,gf(t)}function qt(){if(!Ys&&dt!==null){Ys=!0;var t=0,e=j;try{var n=dt;for(j=1;t>=o,r-=o,ht=1<<32-Xe(e)+r|n<M?(N=C,C=null):N=C.sibling;var L=d(p,C,m[M],w);if(L===null){C===null&&(C=N);break}t&&C&&L.alternate===null&&e(p,C),h=s(L,h,M),E===null?S=L:E.sibling=L,E=L,C=N}if(M===m.length)return n(p,C),H&&Jt(p,M),S;if(C===null){for(;MM?(N=C,C=null):N=C.sibling;var ge=d(p,C,L.value,w);if(ge===null){C===null&&(C=N);break}t&&C&&ge.alternate===null&&e(p,C),h=s(ge,h,M),E===null?S=ge:E.sibling=ge,E=ge,C=N}if(L.done)return n(p,C),H&&Jt(p,M),S;if(C===null){for(;!L.done;M++,L=m.next())L=f(p,L.value,w),L!==null&&(h=s(L,h,M),E===null?S=L:E.sibling=L,E=L);return H&&Jt(p,M),S}for(C=i(p,C);!L.done;M++,L=m.next())L=y(C,p,M,L.value,w),L!==null&&(t&&L.alternate!==null&&C.delete(L.key===null?M:L.key),h=s(L,h,M),E===null?S=L:E.sibling=L,E=L);return t&&C.forEach(function(Gt){return e(p,Gt)}),H&&Jt(p,M),S}function x(p,h,m,w){if(typeof m=="object"&&m!==null&&m.type===kn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case tr:e:{for(var S=m.key,E=h;E!==null;){if(E.key===S){if(S=m.type,S===kn){if(E.tag===7){n(p,E.sibling),h=r(E,m.props.children),h.return=p,p=h;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ct&&uu(S)===E.type){n(p,E.sibling),h=r(E,m.props),h.ref=ri(p,E,m),h.return=p,p=h;break e}n(p,E);break}else e(p,E);E=E.sibling}m.type===kn?(h=sn(m.props.children,p.mode,w,m.key),h.return=p,p=h):(w=zr(m.type,m.key,m.props,null,p.mode,w),w.ref=ri(p,h,m),w.return=p,p=w)}return o(p);case xn:e:{for(E=m.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=r(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else e(p,h);h=h.sibling}h=io(m,p.mode,w),h.return=p,p=h}return o(p);case Ct:return E=m._init,x(p,h,E(m._payload),w)}if(ai(m))return v(p,h,m,w);if(Zn(m))return g(p,h,m,w);dr(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=r(h,m),h.return=p,p=h):(n(p,h),h=no(m,p.mode,w),h.return=p,p=h),o(p)):n(p,h)}return x}var Hn=kf(!0),_f=kf(!1),Vr=Vt(null),qr=null,Mn=null,ql=null;function Ql(){ql=Mn=qr=null}function Gl(t){var e=Vr.current;U(Vr),t._currentValue=e}function Zo(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function jn(t,e){qr=t,ql=Mn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Ce=!0),t.firstContext=null)}function We(t){var e=t._currentValue;if(ql!==t)if(t={context:t,memoizedValue:e,next:null},Mn===null){if(qr===null)throw Error(k(308));Mn=t,qr.dependencies={lanes:0,firstContext:t}}else Mn=Mn.next=t;return e}var tn=null;function Yl(t){tn===null?tn=[t]:tn.push(t)}function Sf(t,e,n,i){var r=e.interleaved;return r===null?(n.next=n,Yl(e)):(n.next=r.next,r.next=n),e.interleaved=n,xt(t,i)}function xt(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Pt=!1;function Kl(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cf(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function mt(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Nt(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,F&2){var r=i.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),i.pending=e,xt(t,n)}return r=i.interleaved,r===null?(e.next=e,Yl(i)):(e.next=r.next,r.next=e),i.interleaved=e,xt(t,n)}function _r(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Dl(t,n)}}function cu(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?r=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?r=s=e:s=s.next=e}else r=s=e;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:i.shared,effects:i.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Qr(t,e,n,i){var r=t.updateQueue;Pt=!1;var s=r.firstBaseUpdate,o=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var c=t.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(s!==null){var f=r.baseState;o=0,c=u=a=null,l=s;do{var d=l.lane,y=l.eventTime;if((i&d)===d){c!==null&&(c=c.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=t,g=l;switch(d=e,y=n,g.tag){case 1:if(v=g.payload,typeof v=="function"){f=v.call(y,f,d);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,d=typeof v=="function"?v.call(y,f,d):v,d==null)break e;f=Q({},f,d);break e;case 2:Pt=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,d=r.effects,d===null?r.effects=[l]:d.push(l))}else y={eventTime:y,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=y,a=f):c=c.next=y,o|=d;if(l=l.next,l===null){if(l=r.shared.pending,l===null)break;d=l,l=d.next,d.next=null,r.lastBaseUpdate=d,r.shared.pending=null}}while(!0);if(c===null&&(a=f),r.baseState=a,r.firstBaseUpdate=u,r.lastBaseUpdate=c,e=r.shared.interleaved,e!==null){r=e;do o|=r.lane,r=r.next;while(r!==e)}else s===null&&(r.shared.lanes=0);un|=o,t.lanes=o,t.memoizedState=f}}function fu(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var i=Xs.transition;Xs.transition={};try{t(!1),e()}finally{j=n,Xs.transition=i}}function Uf(){return Ve().memoizedState}function om(t,e,n){var i=jt(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},$f(t))Hf(e,n);else if(n=Sf(t,e,n,i),n!==null){var r=we();Je(n,t,i,r),Wf(n,e,i)}}function lm(t,e,n){var i=jt(t),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if($f(t))Hf(e,r);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,l=s(o,n);if(r.hasEagerState=!0,r.eagerState=l,nt(l,o)){var a=e.interleaved;a===null?(r.next=r,Yl(e)):(r.next=a.next,a.next=r),e.interleaved=r;return}}catch{}finally{}n=Sf(t,e,r,i),n!==null&&(r=we(),Je(n,t,i,r),Wf(n,e,i))}}function $f(t){var e=t.alternate;return t===q||e!==null&&e===q}function Hf(t,e){yi=Yr=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Wf(t,e,n){if(n&4194240){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Dl(t,n)}}var Kr={readContext:We,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},am={readContext:We,useCallback:function(t,e){return ot().memoizedState=[t,e===void 0?null:e],t},useContext:We,useEffect:hu,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Cr(4194308,4,Nf.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Cr(4194308,4,t,e)},useInsertionEffect:function(t,e){return Cr(4,2,t,e)},useMemo:function(t,e){var n=ot();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=ot();return e=n!==void 0?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=om.bind(null,q,t),[i.memoizedState,t]},useRef:function(t){var e=ot();return t={current:t},e.memoizedState=t},useState:du,useDebugValue:ra,useDeferredValue:function(t){return ot().memoizedState=t},useTransition:function(){var t=du(!1),e=t[0];return t=sm.bind(null,t[1]),ot().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=q,r=ot();if(H){if(n===void 0)throw Error(k(407));n=n()}else{if(n=e(),re===null)throw Error(k(349));an&30||zf(i,e,n)}r.memoizedState=n;var s={value:n,getSnapshot:e};return r.queue=s,hu(Tf.bind(null,i,s,t),[t]),i.flags|=2048,Fi(9,Mf.bind(null,i,s,n,e),void 0,null),n},useId:function(){var t=ot(),e=re.identifierPrefix;if(H){var n=pt,i=ht;n=(i&~(1<<32-Xe(i)-1)).toString(32)+n,e=":"+e+"R"+n,n=Di++,0")&&(a=a.replace("",t.displayName)),a}while(1<=o&&0<=l);break}}}finally{Is=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?li(t):""}function Ah(t){switch(t.tag){case 5:return li(t.type);case 16:return li("Lazy");case 13:return li("Suspense");case 19:return li("SuspenseList");case 0:case 2:case 15:return t=Ds(t.type,!1),t;case 11:return t=Ds(t.type.render,!1),t;case 1:return t=Ds(t.type,!0),t;default:return""}}function zo(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case kn:return"Fragment";case xn:return"Portal";case Po:return"Profiler";case Tl:return"StrictMode";case Eo:return"Suspense";case bo:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Cc:return(t.displayName||"Context")+".Consumer";case Sc:return(t._context.displayName||"Context")+".Provider";case Rl:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ol:return e=t.displayName||null,e!==null?e:zo(t.type)||"Memo";case Ct:e=t._payload,t=t._init;try{return zo(t(e))}catch{}}return null}function Bh(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return zo(e);case 8:return e===Tl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function $t(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ec(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Uh(t){var e=Ec(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(o){i=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function nr(t){t._valueTracker||(t._valueTracker=Uh(t))}function bc(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Ec(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function Or(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Mo(t,e){var n=e.checked;return Q({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Oa(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=$t(e.value!=null?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function zc(t,e){e=e.checked,e!=null&&Ml(t,"checked",e,!1)}function To(t,e){zc(t,e);var n=$t(e.value),i=e.type;if(n!=null)i==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Ro(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ro(t,e.type,$t(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function La(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Ro(t,e,n){(e!=="number"||Or(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var ai=Array.isArray;function In(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=ir.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Si(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var fi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$h=["Webkit","ms","Moz","O"];Object.keys(fi).forEach(function(t){$h.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),fi[e]=fi[t]})});function Oc(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||fi.hasOwnProperty(t)&&fi[t]?(""+e).trim():e+"px"}function Lc(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=Oc(n,e[n],i);n==="float"&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}var Hh=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Io(t,e){if(e){if(Hh[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(k(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(k(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(k(61))}if(e.style!=null&&typeof e.style!="object")throw Error(k(62))}}function Do(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var No=null;function Ll(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Fo=null,Dn=null,Nn=null;function Na(t){if(t=Qi(t)){if(typeof Fo!="function")throw Error(k(280));var e=t.stateNode;e&&(e=ps(e),Fo(t.stateNode,t.type,e))}}function Ic(t){Dn?Nn?Nn.push(t):Nn=[t]:Dn=t}function Dc(){if(Dn){var t=Dn,e=Nn;if(Nn=Dn=null,Na(t),e)for(t=0;t>>=0,t===0?32:31-(ep(t)/tp|0)|0}var rr=64,sr=4194304;function ui(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Nr(t,e){var n=t.pendingLanes;if(n===0)return 0;var i=0,r=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var l=o&~r;l!==0?i=ui(l):(s&=o,s!==0&&(i=ui(s)))}else o=n&~r,o!==0?i=ui(o):s!==0&&(i=ui(s));if(i===0)return 0;if(e!==0&&e!==i&&!(e&r)&&(r=i&-i,s=e&-e,r>=s||r===16&&(s&4194240)!==0))return e;if(i&4&&(i|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=i;0n;n++)e.push(t);return e}function Vi(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Xe(e),t[e]=n}function sp(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0=hi),Va=" ",qa=!1;function tf(t,e){switch(t){case"keyup":return Lp.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var _n=!1;function Dp(t,e){switch(t){case"compositionend":return nf(e);case"keypress":return e.which!==32?null:(qa=!0,Va);case"textInput":return t=e.data,t===Va&&qa?null:t;default:return null}}function Np(t,e){if(_n)return t==="compositionend"||!Ul&&tf(t,e)?(t=Jc(),xr=jl=zt=null,_n=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ka(n)}}function lf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?lf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function af(){for(var t=window,e=Or();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Or(t.document)}return e}function $l(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Vp(t){var e=af(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&lf(n.ownerDocument.documentElement,n)){if(i!==null&&$l(n)){if(e=i.start,t=i.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=n.textContent.length,s=Math.min(i.start,r);i=i.end===void 0?s:Math.min(i.end,r),!t.extend&&s>i&&(r=i,i=s,s=r),r=Xa(n,s);var o=Xa(n,i);r&&o&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),s>i?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Sn=null,Ho=null,mi=null,Wo=!1;function Za(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wo||Sn==null||Sn!==Or(i)||(i=Sn,"selectionStart"in i&&$l(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),mi&&Mi(mi,i)||(mi=i,i=Ar(Ho,"onSelect"),0En||(t.current=Ko[En],Ko[En]=null,En--)}function A(t,e){En++,Ko[En]=t.current,t.current=e}var Ht={},ye=Vt(Ht),Ee=Vt(!1),on=Ht;function Un(t,e){var n=t.type.contextTypes;if(!n)return Ht;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in n)r[s]=e[s];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function be(t){return t=t.childContextTypes,t!=null}function Ur(){U(Ee),U(ye)}function su(t,e,n){if(ye.current!==Ht)throw Error(k(168));A(ye,e),A(Ee,n)}function gf(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in e))throw Error(k(108,Bh(t)||"Unknown",r));return Q({},n,i)}function $r(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ht,on=ye.current,A(ye,t),A(Ee,Ee.current),!0}function ou(t,e,n){var i=t.stateNode;if(!i)throw Error(k(169));n?(t=gf(t,e,on),i.__reactInternalMemoizedMergedChildContext=t,U(Ee),U(ye),A(ye,t)):U(Ee),A(Ee,n)}var dt=null,ms=!1,Ys=!1;function vf(t){dt===null?dt=[t]:dt.push(t)}function im(t){ms=!0,vf(t)}function qt(){if(!Ys&&dt!==null){Ys=!0;var t=0,e=j;try{var n=dt;for(j=1;t>=o,r-=o,ht=1<<32-Xe(e)+r|n<M?(N=C,C=null):N=C.sibling;var L=d(p,C,m[M],w);if(L===null){C===null&&(C=N);break}t&&C&&L.alternate===null&&e(p,C),h=s(L,h,M),E===null?S=L:E.sibling=L,E=L,C=N}if(M===m.length)return n(p,C),H&&Zt(p,M),S;if(C===null){for(;MM?(N=C,C=null):N=C.sibling;var ge=d(p,C,L.value,w);if(ge===null){C===null&&(C=N);break}t&&C&&ge.alternate===null&&e(p,C),h=s(ge,h,M),E===null?S=ge:E.sibling=ge,E=ge,C=N}if(L.done)return n(p,C),H&&Zt(p,M),S;if(C===null){for(;!L.done;M++,L=m.next())L=f(p,L.value,w),L!==null&&(h=s(L,h,M),E===null?S=L:E.sibling=L,E=L);return H&&Zt(p,M),S}for(C=i(p,C);!L.done;M++,L=m.next())L=y(C,p,M,L.value,w),L!==null&&(t&&L.alternate!==null&&C.delete(L.key===null?M:L.key),h=s(L,h,M),E===null?S=L:E.sibling=L,E=L);return t&&C.forEach(function(Gt){return e(p,Gt)}),H&&Zt(p,M),S}function x(p,h,m,w){if(typeof m=="object"&&m!==null&&m.type===kn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case tr:e:{for(var S=m.key,E=h;E!==null;){if(E.key===S){if(S=m.type,S===kn){if(E.tag===7){n(p,E.sibling),h=r(E,m.props.children),h.return=p,p=h;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ct&&uu(S)===E.type){n(p,E.sibling),h=r(E,m.props),h.ref=ri(p,E,m),h.return=p,p=h;break e}n(p,E);break}else e(p,E);E=E.sibling}m.type===kn?(h=sn(m.props.children,p.mode,w,m.key),h.return=p,p=h):(w=zr(m.type,m.key,m.props,null,p.mode,w),w.ref=ri(p,h,m),w.return=p,p=w)}return o(p);case xn:e:{for(E=m.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=r(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else e(p,h);h=h.sibling}h=io(m,p.mode,w),h.return=p,p=h}return o(p);case Ct:return E=m._init,x(p,h,E(m._payload),w)}if(ai(m))return v(p,h,m,w);if(Jn(m))return g(p,h,m,w);dr(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=r(h,m),h.return=p,p=h):(n(p,h),h=no(m,p.mode,w),h.return=p,p=h),o(p)):n(p,h)}return x}var Hn=_f(!0),Sf=_f(!1),Vr=Vt(null),qr=null,Mn=null,ql=null;function Ql(){ql=Mn=qr=null}function Gl(t){var e=Vr.current;U(Vr),t._currentValue=e}function Jo(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function jn(t,e){qr=t,ql=Mn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Ce=!0),t.firstContext=null)}function We(t){var e=t._currentValue;if(ql!==t)if(t={context:t,memoizedValue:e,next:null},Mn===null){if(qr===null)throw Error(k(308));Mn=t,qr.dependencies={lanes:0,firstContext:t}}else Mn=Mn.next=t;return e}var tn=null;function Yl(t){tn===null?tn=[t]:tn.push(t)}function Cf(t,e,n,i){var r=e.interleaved;return r===null?(n.next=n,Yl(e)):(n.next=r.next,r.next=n),e.interleaved=n,xt(t,i)}function xt(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Pt=!1;function Kl(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pf(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function mt(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Nt(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,F&2){var r=i.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),i.pending=e,xt(t,n)}return r=i.interleaved,r===null?(e.next=e,Yl(i)):(e.next=r.next,r.next=e),i.interleaved=e,xt(t,n)}function _r(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Dl(t,n)}}function cu(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?r=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?r=s=e:s=s.next=e}else r=s=e;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:i.shared,effects:i.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Qr(t,e,n,i){var r=t.updateQueue;Pt=!1;var s=r.firstBaseUpdate,o=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var c=t.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(s!==null){var f=r.baseState;o=0,c=u=a=null,l=s;do{var d=l.lane,y=l.eventTime;if((i&d)===d){c!==null&&(c=c.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=t,g=l;switch(d=e,y=n,g.tag){case 1:if(v=g.payload,typeof v=="function"){f=v.call(y,f,d);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,d=typeof v=="function"?v.call(y,f,d):v,d==null)break e;f=Q({},f,d);break e;case 2:Pt=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,d=r.effects,d===null?r.effects=[l]:d.push(l))}else y={eventTime:y,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=y,a=f):c=c.next=y,o|=d;if(l=l.next,l===null){if(l=r.shared.pending,l===null)break;d=l,l=d.next,d.next=null,r.lastBaseUpdate=d,r.shared.pending=null}}while(!0);if(c===null&&(a=f),r.baseState=a,r.firstBaseUpdate=u,r.lastBaseUpdate=c,e=r.shared.interleaved,e!==null){r=e;do o|=r.lane,r=r.next;while(r!==e)}else s===null&&(r.shared.lanes=0);un|=o,t.lanes=o,t.memoizedState=f}}function fu(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var i=Xs.transition;Xs.transition={};try{t(!1),e()}finally{j=n,Xs.transition=i}}function $f(){return Ve().memoizedState}function lm(t,e,n){var i=jt(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Hf(t))Wf(e,n);else if(n=Cf(t,e,n,i),n!==null){var r=we();Ze(n,t,i,r),Vf(n,e,i)}}function am(t,e,n){var i=jt(t),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hf(t))Wf(e,r);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,l=s(o,n);if(r.hasEagerState=!0,r.eagerState=l,nt(l,o)){var a=e.interleaved;a===null?(r.next=r,Yl(e)):(r.next=a.next,a.next=r),e.interleaved=r;return}}catch{}finally{}n=Cf(t,e,r,i),n!==null&&(r=we(),Ze(n,t,i,r),Vf(n,e,i))}}function Hf(t){var e=t.alternate;return t===q||e!==null&&e===q}function Wf(t,e){yi=Yr=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Vf(t,e,n){if(n&4194240){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Dl(t,n)}}var Kr={readContext:We,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},um={readContext:We,useCallback:function(t,e){return ot().memoizedState=[t,e===void 0?null:e],t},useContext:We,useEffect:hu,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Cr(4194308,4,Ff.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Cr(4194308,4,t,e)},useInsertionEffect:function(t,e){return Cr(4,2,t,e)},useMemo:function(t,e){var n=ot();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=ot();return e=n!==void 0?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=lm.bind(null,q,t),[i.memoizedState,t]},useRef:function(t){var e=ot();return t={current:t},e.memoizedState=t},useState:du,useDebugValue:ra,useDeferredValue:function(t){return ot().memoizedState=t},useTransition:function(){var t=du(!1),e=t[0];return t=om.bind(null,t[1]),ot().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=q,r=ot();if(H){if(n===void 0)throw Error(k(407));n=n()}else{if(n=e(),re===null)throw Error(k(349));an&30||Mf(i,e,n)}r.memoizedState=n;var s={value:n,getSnapshot:e};return r.queue=s,hu(Rf.bind(null,i,s,t),[t]),i.flags|=2048,Fi(9,Tf.bind(null,i,s,n,e),void 0,null),n},useId:function(){var t=ot(),e=re.identifierPrefix;if(H){var n=pt,i=ht;n=(i&~(1<<32-Xe(i)-1)).toString(32)+n,e=":"+e+"R"+n,n=Di++,0<\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=o.createElement(n,{is:i.is}):(t=o.createElement(n),n==="select"&&(o=t,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):t=o.createElementNS(t,n),t[lt]=e,t[Oi]=i,ed(t,e,!1,!1),e.stateNode=t;e:{switch(o=Do(n,i),n){case"dialog":B("cancel",t),B("close",t),r=i;break;case"iframe":case"object":case"embed":B("load",t),r=i;break;case"video":case"audio":for(r=0;rqn&&(e.flags|=128,i=!0,si(s,!1),e.lanes=4194304)}else{if(!i)if(t=Gr(o),t!==null){if(e.flags|=128,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),si(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!H)return de(e),null}else 2*K()-s.renderingStartTime>qn&&n!==1073741824&&(e.flags|=128,i=!0,si(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=K(),e.sibling=null,n=V.current,A(V,i?n&1|2:n&1),e):(de(e),null);case 22:case 23:return ca(),i=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?Te&1073741824&&(de(e),e.subtreeFlags&6&&(e.flags|=8192)):de(e),null;case 24:return null;case 25:return null}throw Error(k(156,e.tag))}function ym(t,e){switch(Wl(e),e.tag){case 1:return be(e.type)&&Ur(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Wn(),U(Ee),U(ye),Zl(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Jl(e),null;case 13:if(U(V),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(k(340));$n()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return U(V),null;case 4:return Wn(),null;case 10:return Gl(e.type._context),null;case 22:case 23:return ca(),null;case 24:return null;default:return null}}var pr=!1,he=!1,gm=typeof WeakSet=="function"?WeakSet:Set,b=null;function Tn(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){G(t,e,i)}else n.current=null}function al(t,e,n){try{n()}catch(i){G(t,e,i)}}var Cu=!1;function vm(t,e){if(Vo=Fr,t=lf(),$l(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,f=t,d=null;t:for(;;){for(var y;f!==n||r!==0&&f.nodeType!==3||(l=o+r),f!==s||i!==0&&f.nodeType!==3||(a=o+i),f.nodeType===3&&(o+=f.nodeValue.length),(y=f.firstChild)!==null;)d=f,f=y;for(;;){if(f===t)break t;if(d===n&&++u===r&&(l=o),d===s&&++c===i&&(a=o),(y=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(qo={focusedElem:t,selectionRange:n},Fr=!1,b=e;b!==null;)if(e=b,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,b=t;else for(;b!==null;){e=b;try{var v=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,x=v.memoizedState,p=e.stateNode,h=p.getSnapshotBeforeUpdate(e.elementType===e.type?g:Ge(e.type,g),x);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=e.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(w){G(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,b=t;break}b=e.return}return v=Cu,Cu=!1,v}function gi(t,e,n){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&t)===t){var s=r.destroy;r.destroy=void 0,s!==void 0&&al(e,n,s)}r=r.next}while(r!==i)}}function vs(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function ul(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function id(t){var e=t.alternate;e!==null&&(t.alternate=null,id(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[lt],delete e[Oi],delete e[Yo],delete e[em],delete e[tm])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function rd(t){return t.tag===5||t.tag===3||t.tag===4}function Pu(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||rd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function cl(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Br));else if(i!==4&&(t=t.child,t!==null))for(cl(t,e,n),t=t.sibling;t!==null;)cl(t,e,n),t=t.sibling}function fl(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(fl(t,e,n),t=t.sibling;t!==null;)fl(t,e,n),t=t.sibling}var le=null,Ye=!1;function St(t,e,n){for(n=n.child;n!==null;)sd(t,e,n),n=n.sibling}function sd(t,e,n){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(cs,n)}catch{}switch(n.tag){case 5:he||Tn(n,e);case 6:var i=le,r=Ye;le=null,St(t,e,n),le=i,Ye=r,le!==null&&(Ye?(t=le,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Ye?(t=le,n=n.stateNode,t.nodeType===8?Gs(t.parentNode,n):t.nodeType===1&&Gs(t,n),bi(t)):Gs(le,n.stateNode));break;case 4:i=le,r=Ye,le=n.stateNode.containerInfo,Ye=!0,St(t,e,n),le=i,Ye=r;break;case 0:case 11:case 14:case 15:if(!he&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var s=r,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&al(n,e,o),r=r.next}while(r!==i)}St(t,e,n);break;case 1:if(!he&&(Tn(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(l){G(n,e,l)}St(t,e,n);break;case 21:St(t,e,n);break;case 22:n.mode&1?(he=(i=he)||n.memoizedState!==null,St(t,e,n),he=i):St(t,e,n);break;default:St(t,e,n)}}function Eu(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new gm),e.forEach(function(i){var r=bm.bind(null,t,i);n.has(i)||(n.add(i),i.then(r,r))})}}function Qe(t,e){var n=e.deletions;if(n!==null)for(var i=0;ir&&(r=o),i&=~s}if(i=r,i=K()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*xm(i/1960))-i,10t?16:t,Mt===null)var i=!1;else{if(t=Mt,Mt=null,Zr=0,F&6)throw Error(k(331));var r=F;for(F|=4,b=t.current;b!==null;){var s=b,o=s.child;if(b.flags&16){var l=s.deletions;if(l!==null){for(var a=0;aK()-aa?rn(t,0):la|=n),ze(t,e)}function hd(t,e){e===0&&(t.mode&1?(e=sr,sr<<=1,!(sr&130023424)&&(sr=4194304)):e=1);var n=we();t=xt(t,e),t!==null&&(Vi(t,e,n),ze(t,n))}function Em(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),hd(t,n)}function bm(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(k(314))}i!==null&&i.delete(e),hd(t,n)}var pd;pd=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Ee.current)Ce=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Ce=!1,pm(t,e,n);Ce=!!(t.flags&131072)}else Ce=!1,H&&e.flags&1048576&&vf(e,Wr,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;Pr(t,e),t=e.pendingProps;var r=Un(e,ye.current);jn(e,n),r=ta(null,e,i,t,r,n);var s=na();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,be(i)?(s=!0,$r(e)):s=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Kl(e),r.updater=gs,e.stateNode=r,r._reactInternals=e,tl(e,i,t,n),e=rl(null,e,i,!0,s,n)):(e.tag=0,H&&s&&Hl(e),ve(null,e,r,n),e=e.child),e;case 16:i=e.elementType;e:{switch(Pr(t,e),t=e.pendingProps,r=i._init,i=r(i._payload),e.type=i,r=e.tag=Mm(i),t=Ge(i,t),r){case 0:e=il(null,e,i,t,n);break e;case 1:e=ku(null,e,i,t,n);break e;case 11:e=wu(null,e,i,t,n);break e;case 14:e=xu(null,e,i,Ge(i.type,t),n);break e}throw Error(k(306,i,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ge(i,r),il(t,e,i,r,n);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ge(i,r),ku(t,e,i,r,n);case 3:e:{if(Xf(e),t===null)throw Error(k(387));i=e.pendingProps,s=e.memoizedState,r=s.element,Cf(t,e),Qr(e,i,null,n);var o=e.memoizedState;if(i=o.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){r=Vn(Error(k(423)),e),e=_u(t,e,i,n,r);break e}else if(i!==r){r=Vn(Error(k(424)),e),e=_u(t,e,i,n,r);break e}else for(Re=Dt(e.stateNode.containerInfo.firstChild),Oe=e,H=!0,Ke=null,n=_f(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($n(),i===r){e=kt(t,e,n);break e}ve(t,e,i,n)}e=e.child}return e;case 5:return Pf(e),t===null&&Jo(e),i=e.type,r=e.pendingProps,s=t!==null?t.memoizedProps:null,o=r.children,Qo(i,r)?o=null:s!==null&&Qo(i,s)&&(e.flags|=32),Kf(t,e),ve(t,e,o,n),e.child;case 6:return t===null&&Jo(e),null;case 13:return Jf(t,e,n);case 4:return Xl(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Hn(e,null,i,n):ve(t,e,i,n),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ge(i,r),wu(t,e,i,r,n);case 7:return ve(t,e,e.pendingProps,n),e.child;case 8:return ve(t,e,e.pendingProps.children,n),e.child;case 12:return ve(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(i=e.type._context,r=e.pendingProps,s=e.memoizedProps,o=r.value,A(Vr,i._currentValue),i._currentValue=o,s!==null)if(nt(s.value,o)){if(s.children===r.children&&!Ee.current){e=kt(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===i){if(s.tag===1){a=mt(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Zo(s.return,n,e),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(k(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Zo(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ve(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps.children,jn(e,n),r=We(r),i=i(r),e.flags|=1,ve(t,e,i,n),e.child;case 14:return i=e.type,r=Ge(i,e.pendingProps),r=Ge(i.type,r),xu(t,e,i,r,n);case 15:return Gf(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ge(i,r),Pr(t,e),e.tag=1,be(i)?(t=!0,$r(e)):t=!1,jn(e,n),Vf(e,i,r),tl(e,i,r,n),rl(null,e,i,!0,t,n);case 19:return Zf(t,e,n);case 22:return Yf(t,e,n)}throw Error(k(156,e.tag))};function md(t,e){return Uc(t,e)}function zm(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $e(t,e,n,i){return new zm(t,e,n,i)}function da(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Mm(t){if(typeof t=="function")return da(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Rl)return 11;if(t===Ol)return 14}return 2}function At(t,e){var n=t.alternate;return n===null?(n=$e(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function zr(t,e,n,i,r,s){var o=2;if(i=t,typeof t=="function")da(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case kn:return sn(n.children,r,s,e);case Tl:o=8,r|=8;break;case Po:return t=$e(12,n,e,r|2),t.elementType=Po,t.lanes=s,t;case Eo:return t=$e(13,n,e,r),t.elementType=Eo,t.lanes=s,t;case bo:return t=$e(19,n,e,r),t.elementType=bo,t.lanes=s,t;case Cc:return xs(n,r,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case _c:o=10;break e;case Sc:o=9;break e;case Rl:o=11;break e;case Ol:o=14;break e;case Ct:o=16,i=null;break e}throw Error(k(130,t==null?t:typeof t,""))}return e=$e(o,n,e,r),e.elementType=t,e.type=i,e.lanes=s,e}function sn(t,e,n,i){return t=$e(7,t,i,e),t.lanes=n,t}function xs(t,e,n,i){return t=$e(22,t,i,e),t.elementType=Cc,t.lanes=n,t.stateNode={isHidden:!1},t}function no(t,e,n){return t=$e(6,t,null,e),t.lanes=n,t}function io(t,e,n){return e=$e(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Tm(t,e,n,i,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Fs(0),this.expirationTimes=Fs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fs(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function ha(t,e,n,i,r,s,o,l,a){return t=new Tm(t,e,n,l,a),e===1?(e=1,s===!0&&(e|=8)):e=0,s=$e(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kl(s),t}function Rm(t,e,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wd)}catch(t){console.error(t)}}wd(),vc.exports=Ne;var Nm=vc.exports,xd,Iu=Nm;xd=Iu.createRoot,Iu.hydrateRoot;/** +`+s.stack}return{value:t,source:e,stack:r,digest:null}}function eo(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function nl(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var dm=typeof WeakMap=="function"?WeakMap:Map;function Qf(t,e,n){n=mt(-1,n),n.tag=3,n.payload={element:null};var i=e.value;return n.callback=function(){Zr||(Zr=!0,dl=i),nl(t,e)},n}function Gf(t,e,n){n=mt(-1,n),n.tag=3;var i=t.type.getDerivedStateFromError;if(typeof i=="function"){var r=e.value;n.payload=function(){return i(r)},n.callback=function(){nl(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){nl(t,e),typeof i!="function"&&(Ft===null?Ft=new Set([this]):Ft.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function yu(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new dm;var r=new Set;i.set(e,r)}else r=i.get(e),r===void 0&&(r=new Set,i.set(e,r));r.has(n)||(r.add(n),t=Em.bind(null,t,e,n),e.then(t,t))}function gu(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function vu(t,e,n,i,r){return t.mode&1?(t.flags|=65536,t.lanes=r,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=mt(-1,1),e.tag=2,Nt(n,e,1))),n.lanes|=1),t)}var hm=_t.ReactCurrentOwner,Ce=!1;function ve(t,e,n,i){e.child=t===null?Sf(e,null,n,i):Hn(e,t.child,n,i)}function wu(t,e,n,i,r){n=n.render;var s=e.ref;return jn(e,r),i=ta(t,e,n,i,s,r),n=na(),t!==null&&!Ce?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,kt(t,e,r)):(H&&n&&Hl(e),e.flags|=1,ve(t,e,i,r),e.child)}function xu(t,e,n,i,r){if(t===null){var s=n.type;return typeof s=="function"&&!da(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,Yf(t,e,s,i,r)):(t=zr(n.type,null,i,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&r)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Mi,n(o,i)&&t.ref===e.ref)return kt(t,e,r)}return e.flags|=1,t=At(s,i),t.ref=e.ref,t.return=e,e.child=t}function Yf(t,e,n,i,r){if(t!==null){var s=t.memoizedProps;if(Mi(s,i)&&t.ref===e.ref)if(Ce=!1,e.pendingProps=i=s,(t.lanes&r)!==0)t.flags&131072&&(Ce=!0);else return e.lanes=t.lanes,kt(t,e,r)}return il(t,e,n,i,r)}function Kf(t,e,n){var i=e.pendingProps,r=i.children,s=t!==null?t.memoizedState:null;if(i.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},A(Rn,Te),Te|=n;else{if(!(n&1073741824))return t=s!==null?s.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,A(Rn,Te),Te|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=s!==null?s.baseLanes:n,A(Rn,Te),Te|=i}else s!==null?(i=s.baseLanes|n,e.memoizedState=null):i=n,A(Rn,Te),Te|=i;return ve(t,e,r,n),e.child}function Xf(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function il(t,e,n,i,r){var s=be(n)?on:ye.current;return s=Un(e,s),jn(e,r),n=ta(t,e,n,i,s,r),i=na(),t!==null&&!Ce?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,kt(t,e,r)):(H&&i&&Hl(e),e.flags|=1,ve(t,e,n,r),e.child)}function ku(t,e,n,i,r){if(be(n)){var s=!0;$r(e)}else s=!1;if(jn(e,r),e.stateNode===null)Pr(t,e),qf(e,n,i),tl(e,n,i,r),i=!0;else if(t===null){var o=e.stateNode,l=e.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=We(u):(u=be(n)?on:ye.current,u=Un(e,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==i||a!==u)&&mu(e,o,i,u),Pt=!1;var d=e.memoizedState;o.state=d,Qr(e,i,o,r),a=e.memoizedState,l!==i||d!==a||Ee.current||Pt?(typeof c=="function"&&(el(e,n,c,i),a=e.memoizedState),(l=Pt||pu(e,n,l,i,d,a,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=a),o.props=i,o.state=a,o.context=u,i=l):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{o=e.stateNode,Pf(t,e),l=e.memoizedProps,u=e.type===e.elementType?l:Ge(e.type,l),o.props=u,f=e.pendingProps,d=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=We(a):(a=be(n)?on:ye.current,a=Un(e,a));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||d!==a)&&mu(e,o,i,a),Pt=!1,d=e.memoizedState,o.state=d,Qr(e,i,o,r);var v=e.memoizedState;l!==f||d!==v||Ee.current||Pt?(typeof y=="function"&&(el(e,n,y,i),v=e.memoizedState),(u=Pt||pu(e,n,u,i,d,v,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,v,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,v,a)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=v),o.props=i,o.state=v,o.context=a,i=u):(typeof o.componentDidUpdate!="function"||l===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),i=!1)}return rl(t,e,n,i,s,r)}function rl(t,e,n,i,r,s){Xf(t,e);var o=(e.flags&128)!==0;if(!i&&!o)return r&&ou(e,n,!1),kt(t,e,s);i=e.stateNode,hm.current=e;var l=o&&typeof n.getDerivedStateFromError!="function"?null:i.render();return e.flags|=1,t!==null&&o?(e.child=Hn(e,t.child,null,s),e.child=Hn(e,null,l,s)):ve(t,e,l,s),e.memoizedState=i.state,r&&ou(e,n,!0),e.child}function Zf(t){var e=t.stateNode;e.pendingContext?su(t,e.pendingContext,e.pendingContext!==e.context):e.context&&su(t,e.context,!1),Xl(t,e.containerInfo)}function _u(t,e,n,i,r){return $n(),Vl(r),e.flags|=256,ve(t,e,n,i),e.child}var sl={dehydrated:null,treeContext:null,retryLane:0};function ol(t){return{baseLanes:t,cachePool:null,transitions:null}}function Jf(t,e,n){var i=e.pendingProps,r=V.current,s=!1,o=(e.flags&128)!==0,l;if((l=o)||(l=t!==null&&t.memoizedState===null?!1:(r&2)!==0),l?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(r|=1),A(V,r&1),t===null)return Zo(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=i.children,t=i.fallback,s?(i=e.mode,s=e.child,o={mode:"hidden",children:o},!(i&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=xs(o,i,0,null),t=sn(t,i,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=ol(n),e.memoizedState=sl,t):sa(e,o));if(r=t.memoizedState,r!==null&&(l=r.dehydrated,l!==null))return pm(t,e,o,i,l,r,n);if(s){s=i.fallback,o=e.mode,r=t.child,l=r.sibling;var a={mode:"hidden",children:i.children};return!(o&1)&&e.child!==r?(i=e.child,i.childLanes=0,i.pendingProps=a,e.deletions=null):(i=At(r,a),i.subtreeFlags=r.subtreeFlags&14680064),l!==null?s=At(l,s):(s=sn(s,o,n,null),s.flags|=2),s.return=e,i.return=e,i.sibling=s,e.child=i,i=s,s=e.child,o=t.child.memoizedState,o=o===null?ol(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~n,e.memoizedState=sl,i}return s=t.child,t=s.sibling,i=At(s,{mode:"visible",children:i.children}),!(e.mode&1)&&(i.lanes=n),i.return=e,i.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=i,e.memoizedState=null,i}function sa(t,e){return e=xs({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function hr(t,e,n,i){return i!==null&&Vl(i),Hn(e,t.child,null,n),t=sa(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function pm(t,e,n,i,r,s,o){if(n)return e.flags&256?(e.flags&=-257,i=eo(Error(k(422))),hr(t,e,o,i)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=i.fallback,r=e.mode,i=xs({mode:"visible",children:i.children},r,0,null),s=sn(s,r,o,null),s.flags|=2,i.return=e,s.return=e,i.sibling=s,e.child=i,e.mode&1&&Hn(e,t.child,null,o),e.child.memoizedState=ol(o),e.memoizedState=sl,s);if(!(e.mode&1))return hr(t,e,o,null);if(r.data==="$!"){if(i=r.nextSibling&&r.nextSibling.dataset,i)var l=i.dgst;return i=l,s=Error(k(419)),i=eo(s,i,void 0),hr(t,e,o,i)}if(l=(o&t.childLanes)!==0,Ce||l){if(i=re,i!==null){switch(o&-o){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(i.suspendedLanes|o)?0:r,r!==0&&r!==s.retryLane&&(s.retryLane=r,xt(t,r),Ze(i,t,r,-1))}return fa(),i=eo(Error(k(421))),hr(t,e,o,i)}return r.data==="$?"?(e.flags|=128,e.child=t.child,e=bm.bind(null,t),r._reactRetry=e,null):(t=s.treeContext,Re=Dt(r.nextSibling),Oe=e,H=!0,Ke=null,t!==null&&(Be[Ue++]=ht,Be[Ue++]=pt,Be[Ue++]=ln,ht=t.id,pt=t.overflow,ln=e),e=sa(e,i.children),e.flags|=4096,e)}function Su(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Jo(t.return,e,n)}function to(t,e,n,i,r){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=i,s.tail=n,s.tailMode=r)}function ed(t,e,n){var i=e.pendingProps,r=i.revealOrder,s=i.tail;if(ve(t,e,i.children,n),i=V.current,i&2)i=i&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Su(t,n,e);else if(t.tag===19)Su(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}i&=1}if(A(V,i),!(e.mode&1))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&Gr(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),to(e,!1,r,n,s);break;case"backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Gr(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}to(e,!0,n,null,s);break;case"together":to(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Pr(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function kt(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),un|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(k(153));if(e.child!==null){for(t=e.child,n=At(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=At(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function mm(t,e,n){switch(e.tag){case 3:Zf(e),$n();break;case 5:Ef(e);break;case 1:be(e.type)&&$r(e);break;case 4:Xl(e,e.stateNode.containerInfo);break;case 10:var i=e.type._context,r=e.memoizedProps.value;A(Vr,i._currentValue),i._currentValue=r;break;case 13:if(i=e.memoizedState,i!==null)return i.dehydrated!==null?(A(V,V.current&1),e.flags|=128,null):n&e.child.childLanes?Jf(t,e,n):(A(V,V.current&1),t=kt(t,e,n),t!==null?t.sibling:null);A(V,V.current&1);break;case 19:if(i=(n&e.childLanes)!==0,t.flags&128){if(i)return ed(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),A(V,V.current),i)break;return null;case 22:case 23:return e.lanes=0,Kf(t,e,n)}return kt(t,e,n)}var td,ll,nd,id;td=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ll=function(){};nd=function(t,e,n,i){var r=t.memoizedProps;if(r!==i){t=e.stateNode,nn(ut.current);var s=null;switch(n){case"input":r=Mo(t,r),i=Mo(t,i),s=[];break;case"select":r=Q({},r,{value:void 0}),i=Q({},i,{value:void 0}),s=[];break;case"textarea":r=Oo(t,r),i=Oo(t,i),s=[];break;default:typeof r.onClick!="function"&&typeof i.onClick=="function"&&(t.onclick=Br)}Io(n,i);var o;n=null;for(u in r)if(!i.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var l=r[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(_i.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in i){var a=i[u];if(l=r!=null?r[u]:void 0,i.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(_i.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&B("scroll",t),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(e.updateQueue=u)&&(e.flags|=4)}};id=function(t,e,n,i){n!==i&&(e.flags|=4)};function si(t,e){if(!H)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function de(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&14680064,i|=r.flags&14680064,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function ym(t,e,n){var i=e.pendingProps;switch(Wl(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return de(e),null;case 1:return be(e.type)&&Ur(),de(e),null;case 3:return i=e.stateNode,Wn(),U(Ee),U(ye),Jl(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(fr(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Ke!==null&&(ml(Ke),Ke=null))),ll(t,e),de(e),null;case 5:Zl(e);var r=nn(Ii.current);if(n=e.type,t!==null&&e.stateNode!=null)nd(t,e,n,i,r),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!i){if(e.stateNode===null)throw Error(k(166));return de(e),null}if(t=nn(ut.current),fr(e)){i=e.stateNode,n=e.type;var s=e.memoizedProps;switch(i[lt]=e,i[Oi]=s,t=(e.mode&1)!==0,n){case"dialog":B("cancel",i),B("close",i);break;case"iframe":case"object":case"embed":B("load",i);break;case"video":case"audio":for(r=0;r<\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=o.createElement(n,{is:i.is}):(t=o.createElement(n),n==="select"&&(o=t,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):t=o.createElementNS(t,n),t[lt]=e,t[Oi]=i,td(t,e,!1,!1),e.stateNode=t;e:{switch(o=Do(n,i),n){case"dialog":B("cancel",t),B("close",t),r=i;break;case"iframe":case"object":case"embed":B("load",t),r=i;break;case"video":case"audio":for(r=0;rqn&&(e.flags|=128,i=!0,si(s,!1),e.lanes=4194304)}else{if(!i)if(t=Gr(o),t!==null){if(e.flags|=128,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),si(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!H)return de(e),null}else 2*K()-s.renderingStartTime>qn&&n!==1073741824&&(e.flags|=128,i=!0,si(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=K(),e.sibling=null,n=V.current,A(V,i?n&1|2:n&1),e):(de(e),null);case 22:case 23:return ca(),i=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?Te&1073741824&&(de(e),e.subtreeFlags&6&&(e.flags|=8192)):de(e),null;case 24:return null;case 25:return null}throw Error(k(156,e.tag))}function gm(t,e){switch(Wl(e),e.tag){case 1:return be(e.type)&&Ur(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Wn(),U(Ee),U(ye),Jl(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Zl(e),null;case 13:if(U(V),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(k(340));$n()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return U(V),null;case 4:return Wn(),null;case 10:return Gl(e.type._context),null;case 22:case 23:return ca(),null;case 24:return null;default:return null}}var pr=!1,he=!1,vm=typeof WeakSet=="function"?WeakSet:Set,b=null;function Tn(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){G(t,e,i)}else n.current=null}function al(t,e,n){try{n()}catch(i){G(t,e,i)}}var Cu=!1;function wm(t,e){if(Vo=Fr,t=af(),$l(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,f=t,d=null;t:for(;;){for(var y;f!==n||r!==0&&f.nodeType!==3||(l=o+r),f!==s||i!==0&&f.nodeType!==3||(a=o+i),f.nodeType===3&&(o+=f.nodeValue.length),(y=f.firstChild)!==null;)d=f,f=y;for(;;){if(f===t)break t;if(d===n&&++u===r&&(l=o),d===s&&++c===i&&(a=o),(y=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(qo={focusedElem:t,selectionRange:n},Fr=!1,b=e;b!==null;)if(e=b,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,b=t;else for(;b!==null;){e=b;try{var v=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,x=v.memoizedState,p=e.stateNode,h=p.getSnapshotBeforeUpdate(e.elementType===e.type?g:Ge(e.type,g),x);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=e.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(w){G(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,b=t;break}b=e.return}return v=Cu,Cu=!1,v}function gi(t,e,n){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&t)===t){var s=r.destroy;r.destroy=void 0,s!==void 0&&al(e,n,s)}r=r.next}while(r!==i)}}function vs(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function ul(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function rd(t){var e=t.alternate;e!==null&&(t.alternate=null,rd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[lt],delete e[Oi],delete e[Yo],delete e[tm],delete e[nm])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function sd(t){return t.tag===5||t.tag===3||t.tag===4}function Pu(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||sd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function cl(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Br));else if(i!==4&&(t=t.child,t!==null))for(cl(t,e,n),t=t.sibling;t!==null;)cl(t,e,n),t=t.sibling}function fl(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(fl(t,e,n),t=t.sibling;t!==null;)fl(t,e,n),t=t.sibling}var le=null,Ye=!1;function St(t,e,n){for(n=n.child;n!==null;)od(t,e,n),n=n.sibling}function od(t,e,n){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(cs,n)}catch{}switch(n.tag){case 5:he||Tn(n,e);case 6:var i=le,r=Ye;le=null,St(t,e,n),le=i,Ye=r,le!==null&&(Ye?(t=le,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Ye?(t=le,n=n.stateNode,t.nodeType===8?Gs(t.parentNode,n):t.nodeType===1&&Gs(t,n),bi(t)):Gs(le,n.stateNode));break;case 4:i=le,r=Ye,le=n.stateNode.containerInfo,Ye=!0,St(t,e,n),le=i,Ye=r;break;case 0:case 11:case 14:case 15:if(!he&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var s=r,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&al(n,e,o),r=r.next}while(r!==i)}St(t,e,n);break;case 1:if(!he&&(Tn(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(l){G(n,e,l)}St(t,e,n);break;case 21:St(t,e,n);break;case 22:n.mode&1?(he=(i=he)||n.memoizedState!==null,St(t,e,n),he=i):St(t,e,n);break;default:St(t,e,n)}}function Eu(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new vm),e.forEach(function(i){var r=zm.bind(null,t,i);n.has(i)||(n.add(i),i.then(r,r))})}}function Qe(t,e){var n=e.deletions;if(n!==null)for(var i=0;ir&&(r=o),i&=~s}if(i=r,i=K()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*km(i/1960))-i,10t?16:t,Mt===null)var i=!1;else{if(t=Mt,Mt=null,Jr=0,F&6)throw Error(k(331));var r=F;for(F|=4,b=t.current;b!==null;){var s=b,o=s.child;if(b.flags&16){var l=s.deletions;if(l!==null){for(var a=0;aK()-aa?rn(t,0):la|=n),ze(t,e)}function pd(t,e){e===0&&(t.mode&1?(e=sr,sr<<=1,!(sr&130023424)&&(sr=4194304)):e=1);var n=we();t=xt(t,e),t!==null&&(Vi(t,e,n),ze(t,n))}function bm(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),pd(t,n)}function zm(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(k(314))}i!==null&&i.delete(e),pd(t,n)}var md;md=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Ee.current)Ce=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Ce=!1,mm(t,e,n);Ce=!!(t.flags&131072)}else Ce=!1,H&&e.flags&1048576&&wf(e,Wr,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;Pr(t,e),t=e.pendingProps;var r=Un(e,ye.current);jn(e,n),r=ta(null,e,i,t,r,n);var s=na();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,be(i)?(s=!0,$r(e)):s=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Kl(e),r.updater=gs,e.stateNode=r,r._reactInternals=e,tl(e,i,t,n),e=rl(null,e,i,!0,s,n)):(e.tag=0,H&&s&&Hl(e),ve(null,e,r,n),e=e.child),e;case 16:i=e.elementType;e:{switch(Pr(t,e),t=e.pendingProps,r=i._init,i=r(i._payload),e.type=i,r=e.tag=Tm(i),t=Ge(i,t),r){case 0:e=il(null,e,i,t,n);break e;case 1:e=ku(null,e,i,t,n);break e;case 11:e=wu(null,e,i,t,n);break e;case 14:e=xu(null,e,i,Ge(i.type,t),n);break e}throw Error(k(306,i,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ge(i,r),il(t,e,i,r,n);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ge(i,r),ku(t,e,i,r,n);case 3:e:{if(Zf(e),t===null)throw Error(k(387));i=e.pendingProps,s=e.memoizedState,r=s.element,Pf(t,e),Qr(e,i,null,n);var o=e.memoizedState;if(i=o.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){r=Vn(Error(k(423)),e),e=_u(t,e,i,n,r);break e}else if(i!==r){r=Vn(Error(k(424)),e),e=_u(t,e,i,n,r);break e}else for(Re=Dt(e.stateNode.containerInfo.firstChild),Oe=e,H=!0,Ke=null,n=Sf(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($n(),i===r){e=kt(t,e,n);break e}ve(t,e,i,n)}e=e.child}return e;case 5:return Ef(e),t===null&&Zo(e),i=e.type,r=e.pendingProps,s=t!==null?t.memoizedProps:null,o=r.children,Qo(i,r)?o=null:s!==null&&Qo(i,s)&&(e.flags|=32),Xf(t,e),ve(t,e,o,n),e.child;case 6:return t===null&&Zo(e),null;case 13:return Jf(t,e,n);case 4:return Xl(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Hn(e,null,i,n):ve(t,e,i,n),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ge(i,r),wu(t,e,i,r,n);case 7:return ve(t,e,e.pendingProps,n),e.child;case 8:return ve(t,e,e.pendingProps.children,n),e.child;case 12:return ve(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(i=e.type._context,r=e.pendingProps,s=e.memoizedProps,o=r.value,A(Vr,i._currentValue),i._currentValue=o,s!==null)if(nt(s.value,o)){if(s.children===r.children&&!Ee.current){e=kt(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===i){if(s.tag===1){a=mt(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Jo(s.return,n,e),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(k(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Jo(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ve(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps.children,jn(e,n),r=We(r),i=i(r),e.flags|=1,ve(t,e,i,n),e.child;case 14:return i=e.type,r=Ge(i,e.pendingProps),r=Ge(i.type,r),xu(t,e,i,r,n);case 15:return Yf(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ge(i,r),Pr(t,e),e.tag=1,be(i)?(t=!0,$r(e)):t=!1,jn(e,n),qf(e,i,r),tl(e,i,r,n),rl(null,e,i,!0,t,n);case 19:return ed(t,e,n);case 22:return Kf(t,e,n)}throw Error(k(156,e.tag))};function yd(t,e){return $c(t,e)}function Mm(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $e(t,e,n,i){return new Mm(t,e,n,i)}function da(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Tm(t){if(typeof t=="function")return da(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Rl)return 11;if(t===Ol)return 14}return 2}function At(t,e){var n=t.alternate;return n===null?(n=$e(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function zr(t,e,n,i,r,s){var o=2;if(i=t,typeof t=="function")da(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case kn:return sn(n.children,r,s,e);case Tl:o=8,r|=8;break;case Po:return t=$e(12,n,e,r|2),t.elementType=Po,t.lanes=s,t;case Eo:return t=$e(13,n,e,r),t.elementType=Eo,t.lanes=s,t;case bo:return t=$e(19,n,e,r),t.elementType=bo,t.lanes=s,t;case Pc:return xs(n,r,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Sc:o=10;break e;case Cc:o=9;break e;case Rl:o=11;break e;case Ol:o=14;break e;case Ct:o=16,i=null;break e}throw Error(k(130,t==null?t:typeof t,""))}return e=$e(o,n,e,r),e.elementType=t,e.type=i,e.lanes=s,e}function sn(t,e,n,i){return t=$e(7,t,i,e),t.lanes=n,t}function xs(t,e,n,i){return t=$e(22,t,i,e),t.elementType=Pc,t.lanes=n,t.stateNode={isHidden:!1},t}function no(t,e,n){return t=$e(6,t,null,e),t.lanes=n,t}function io(t,e,n){return e=$e(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Rm(t,e,n,i,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Fs(0),this.expirationTimes=Fs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fs(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function ha(t,e,n,i,r,s,o,l,a){return t=new Rm(t,e,n,l,a),e===1?(e=1,s===!0&&(e|=8)):e=0,s=$e(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kl(s),t}function Om(t,e,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xd)}catch(t){console.error(t)}}xd(),wc.exports=Ne;var Fm=wc.exports,kd,Iu=Fm;kd=Iu.createRoot,Iu.hydrateRoot;/** * @remix-run/router v1.19.2 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ai(){return Ai=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function kd(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function jm(){return Math.random().toString(36).substr(2,8)}function Nu(t,e){return{usr:t.state,key:t.key,idx:e}}function yl(t,e,n,i){return n===void 0&&(n=null),Ai({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Jn(e):e,{state:n,key:e&&e.key||i||jm()})}function ns(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Jn(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function Am(t,e,n,i){i===void 0&&(i={});let{window:r=document.defaultView,v5Compat:s=!1}=i,o=r.history,l=Tt.Pop,a=null,u=c();u==null&&(u=0,o.replaceState(Ai({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){l=Tt.Pop;let x=c(),p=x==null?null:x-u;u=x,a&&a({action:l,location:g.location,delta:p})}function d(x,p){l=Tt.Push;let h=yl(g.location,x,p);u=c()+1;let m=Nu(h,u),w=g.createHref(h);try{o.pushState(m,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;r.location.assign(w)}s&&a&&a({action:l,location:g.location,delta:1})}function y(x,p){l=Tt.Replace;let h=yl(g.location,x,p);u=c();let m=Nu(h,u),w=g.createHref(h);o.replaceState(m,"",w),s&&a&&a({action:l,location:g.location,delta:0})}function v(x){let p=r.location.origin!=="null"?r.location.origin:r.location.href,h=typeof x=="string"?x:ns(x);return h=h.replace(/ $/,"%20"),Z(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let g={get action(){return l},get location(){return t(r,o)},listen(x){if(a)throw new Error("A history only accepts one active listener");return r.addEventListener(Du,f),a=x,()=>{r.removeEventListener(Du,f),a=null}},createHref(x){return e(r,x)},createURL:v,encodeLocation(x){let p=v(x);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:y,go(x){return o.go(x)}};return g}var Fu;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Fu||(Fu={}));function Bm(t,e,n){return n===void 0&&(n="/"),Um(t,e,n,!1)}function Um(t,e,n,i){let r=typeof e=="string"?Jn(e):e,s=ga(r.pathname||"/",n);if(s==null)return null;let o=_d(t);$m(o);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};a.relativePath.startsWith("/")&&(Z(a.relativePath.startsWith(i),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(i.length));let u=Bt([i,a.relativePath]),c=n.concat(a);s.children&&s.children.length>0&&(Z(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),_d(s.children,e,c,u)),!(s.path==null&&!s.index)&&e.push({path:u,score:Ym(u,s.index),routesMeta:c})};return t.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))r(s,o);else for(let a of Sd(s.path))r(s,o,a)}),e}function Sd(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,r=n.endsWith("?"),s=n.replace(/\?$/,"");if(i.length===0)return r?[s,""]:[s];let o=Sd(i.join("/")),l=[];return l.push(...o.map(a=>a===""?s:[s,a].join("/"))),r&&l.push(...o),l.map(a=>t.startsWith("/")&&a===""?"/":a)}function $m(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Km(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const Hm=/^:[\w-]+$/,Wm=3,Vm=2,qm=1,Qm=10,Gm=-2,ju=t=>t==="*";function Ym(t,e){let n=t.split("/"),i=n.length;return n.some(ju)&&(i+=Gm),e&&(i+=Vm),n.filter(r=>!ju(r)).reduce((r,s)=>r+(Hm.test(s)?Wm:s===""?qm:Qm),i)}function Km(t,e){return t.length===e.length&&t.slice(0,-1).every((i,r)=>i===e[r])?t[t.length-1]-e[e.length-1]:0}function Xm(t,e,n){let{routesMeta:i}=t,r={},s="/",o=[];for(let l=0;l{let{paramName:d,isOptional:y}=c;if(d==="*"){let g=l[f]||"";o=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}const v=l[f];return y&&!v?u[d]=void 0:u[d]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:t}}function Jm(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),kd(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],r="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,a)=>(i.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),r+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":t!==""&&t!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),i]}function Zm(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return kd(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function ga(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}function ey(t,e){e===void 0&&(e="/");let{pathname:n,search:i="",hash:r=""}=typeof t=="string"?Jn(t):t;return{pathname:n?n.startsWith("/")?n:ty(n,e):e,search:ry(i),hash:sy(r)}}function ty(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function ro(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ny(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Cd(t,e){let n=ny(t);return e?n.map((i,r)=>r===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function Pd(t,e,n,i){i===void 0&&(i=!1);let r;typeof t=="string"?r=Jn(t):(r=Ai({},t),Z(!r.pathname||!r.pathname.includes("?"),ro("?","pathname","search",r)),Z(!r.pathname||!r.pathname.includes("#"),ro("#","pathname","hash",r)),Z(!r.search||!r.search.includes("#"),ro("#","search","hash",r)));let s=t===""||r.pathname==="",o=s?"/":r.pathname,l;if(o==null)l=n;else{let f=e.length-1;if(!i&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;r.pathname=d.join("/")}l=f>=0?e[f]:"/"}let a=ey(r,l),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const Bt=t=>t.join("/").replace(/\/\/+/g,"/"),iy=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),ry=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,sy=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function oy(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Ed=["post","put","patch","delete"];new Set(Ed);const ly=["get",...Ed];new Set(ly);/** + */function Ai(){return Ai=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function _d(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Am(){return Math.random().toString(36).substr(2,8)}function Nu(t,e){return{usr:t.state,key:t.key,idx:e}}function yl(t,e,n,i){return n===void 0&&(n=null),Ai({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Zn(e):e,{state:n,key:e&&e.key||i||Am()})}function ns(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Zn(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function Bm(t,e,n,i){i===void 0&&(i={});let{window:r=document.defaultView,v5Compat:s=!1}=i,o=r.history,l=Tt.Pop,a=null,u=c();u==null&&(u=0,o.replaceState(Ai({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){l=Tt.Pop;let x=c(),p=x==null?null:x-u;u=x,a&&a({action:l,location:g.location,delta:p})}function d(x,p){l=Tt.Push;let h=yl(g.location,x,p);u=c()+1;let m=Nu(h,u),w=g.createHref(h);try{o.pushState(m,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;r.location.assign(w)}s&&a&&a({action:l,location:g.location,delta:1})}function y(x,p){l=Tt.Replace;let h=yl(g.location,x,p);u=c();let m=Nu(h,u),w=g.createHref(h);o.replaceState(m,"",w),s&&a&&a({action:l,location:g.location,delta:0})}function v(x){let p=r.location.origin!=="null"?r.location.origin:r.location.href,h=typeof x=="string"?x:ns(x);return h=h.replace(/ $/,"%20"),J(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let g={get action(){return l},get location(){return t(r,o)},listen(x){if(a)throw new Error("A history only accepts one active listener");return r.addEventListener(Du,f),a=x,()=>{r.removeEventListener(Du,f),a=null}},createHref(x){return e(r,x)},createURL:v,encodeLocation(x){let p=v(x);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:y,go(x){return o.go(x)}};return g}var Fu;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Fu||(Fu={}));function Um(t,e,n){return n===void 0&&(n="/"),$m(t,e,n,!1)}function $m(t,e,n,i){let r=typeof e=="string"?Zn(e):e,s=ga(r.pathname||"/",n);if(s==null)return null;let o=Sd(t);Hm(o);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};a.relativePath.startsWith("/")&&(J(a.relativePath.startsWith(i),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(i.length));let u=Bt([i,a.relativePath]),c=n.concat(a);s.children&&s.children.length>0&&(J(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Sd(s.children,e,c,u)),!(s.path==null&&!s.index)&&e.push({path:u,score:Km(u,s.index),routesMeta:c})};return t.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))r(s,o);else for(let a of Cd(s.path))r(s,o,a)}),e}function Cd(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,r=n.endsWith("?"),s=n.replace(/\?$/,"");if(i.length===0)return r?[s,""]:[s];let o=Cd(i.join("/")),l=[];return l.push(...o.map(a=>a===""?s:[s,a].join("/"))),r&&l.push(...o),l.map(a=>t.startsWith("/")&&a===""?"/":a)}function Hm(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Xm(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const Wm=/^:[\w-]+$/,Vm=3,qm=2,Qm=1,Gm=10,Ym=-2,ju=t=>t==="*";function Km(t,e){let n=t.split("/"),i=n.length;return n.some(ju)&&(i+=Ym),e&&(i+=qm),n.filter(r=>!ju(r)).reduce((r,s)=>r+(Wm.test(s)?Vm:s===""?Qm:Gm),i)}function Xm(t,e){return t.length===e.length&&t.slice(0,-1).every((i,r)=>i===e[r])?t[t.length-1]-e[e.length-1]:0}function Zm(t,e,n){let{routesMeta:i}=t,r={},s="/",o=[];for(let l=0;l{let{paramName:d,isOptional:y}=c;if(d==="*"){let g=l[f]||"";o=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}const v=l[f];return y&&!v?u[d]=void 0:u[d]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:t}}function Jm(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),_d(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],r="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,a)=>(i.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),r+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":t!==""&&t!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),i]}function ey(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return _d(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function ga(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}function ty(t,e){e===void 0&&(e="/");let{pathname:n,search:i="",hash:r=""}=typeof t=="string"?Zn(t):t;return{pathname:n?n.startsWith("/")?n:ny(n,e):e,search:sy(i),hash:oy(r)}}function ny(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function ro(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function iy(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Pd(t,e){let n=iy(t);return e?n.map((i,r)=>r===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function Ed(t,e,n,i){i===void 0&&(i=!1);let r;typeof t=="string"?r=Zn(t):(r=Ai({},t),J(!r.pathname||!r.pathname.includes("?"),ro("?","pathname","search",r)),J(!r.pathname||!r.pathname.includes("#"),ro("#","pathname","hash",r)),J(!r.search||!r.search.includes("#"),ro("#","search","hash",r)));let s=t===""||r.pathname==="",o=s?"/":r.pathname,l;if(o==null)l=n;else{let f=e.length-1;if(!i&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;r.pathname=d.join("/")}l=f>=0?e[f]:"/"}let a=ty(r,l),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const Bt=t=>t.join("/").replace(/\/\/+/g,"/"),ry=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),sy=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,oy=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function ly(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const bd=["post","put","patch","delete"];new Set(bd);const ay=["get",...bd];new Set(ay);/** * React Router v6.26.2 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Bi(){return Bi=Object.assign?Object.assign.bind():function(t){for(var e=1;e{l.current=!0}),P.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){i.go(u);return}let f=Pd(u,JSON.parse(o),s,c.relative==="path");t==null&&e!=="/"&&(f.pathname=f.pathname==="/"?e:Bt([e,f.pathname])),(c.replace?i.replace:i.push)(f,c.state,c)},[e,i,o,s,t])}function Md(t,e){let{relative:n}=e===void 0?{}:e,{future:i}=P.useContext(yn),{matches:r}=P.useContext(gn),{pathname:s}=Ki(),o=JSON.stringify(Cd(r,i.v7_relativeSplatPath));return P.useMemo(()=>Pd(t,JSON.parse(o),s,n==="path"),[t,o,s,n])}function dy(t,e){return hy(t,e)}function hy(t,e,n,i){Yi()||Z(!1);let{navigator:r}=P.useContext(yn),{matches:s}=P.useContext(gn),o=s[s.length-1],l=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let u=Ki(),c;if(e){var f;let x=typeof e=="string"?Jn(e):e;a==="/"||(f=x.pathname)!=null&&f.startsWith(a)||Z(!1),c=x}else c=u;let d=c.pathname||"/",y=d;if(a!=="/"){let x=a.replace(/^\//,"").split("/");y="/"+d.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=Bm(t,{pathname:y}),g=vy(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:Bt([a,r.encodeLocation?r.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?a:Bt([a,r.encodeLocation?r.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,i);return e&&g?P.createElement(Ps.Provider,{value:{location:Bi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Tt.Pop}},g):g}function py(){let t=_y(),e=oy(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},e),n?P.createElement("pre",{style:r},n):null,null)}const my=P.createElement(py,null);class yy extends P.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?P.createElement(gn.Provider,{value:this.props.routeContext},P.createElement(bd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function gy(t){let{routeContext:e,match:n,children:i}=t,r=P.useContext(va);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(gn.Provider,{value:e},i)}function vy(t,e,n,i){var r;if(e===void 0&&(e=[]),n===void 0&&(n=null),i===void 0&&(i=null),t==null){var s;if(!n)return null;if(n.errors)t=n.matches;else if((s=i)!=null&&s.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let o=t,l=(r=n)==null?void 0:r.errors;if(l!=null){let c=o.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||Z(!1),o=o.slice(0,Math.min(o.length,c+1))}let a=!1,u=-1;if(n&&i&&i.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,d)=>{let y,v=!1,g=null,x=null;n&&(y=l&&f.route.id?l[f.route.id]:void 0,g=f.route.errorElement||my,a&&(u<0&&d===0?(v=!0,x=null):u===d&&(v=!0,x=f.route.hydrateFallbackElement||null)));let p=e.concat(o.slice(0,d+1)),h=()=>{let m;return y?m=g:v?m=x:f.route.Component?m=P.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=c,P.createElement(gy,{match:f,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?P.createElement(yy,{location:n.location,revalidation:n.revalidation,component:g,error:y,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var Td=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Td||{}),is=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(is||{});function wy(t){let e=P.useContext(va);return e||Z(!1),e}function xy(t){let e=P.useContext(ay);return e||Z(!1),e}function ky(t){let e=P.useContext(gn);return e||Z(!1),e}function Rd(t){let e=ky(),n=e.matches[e.matches.length-1];return n.route.id||Z(!1),n.route.id}function _y(){var t;let e=P.useContext(bd),n=xy(is.UseRouteError),i=Rd(is.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[i]}function Sy(){let{router:t}=wy(Td.UseNavigateStable),e=Rd(is.UseNavigateStable),n=P.useRef(!1);return zd(()=>{n.current=!0}),P.useCallback(function(r,s){s===void 0&&(s={}),n.current&&(typeof r=="number"?t.navigate(r):t.navigate(r,Bi({fromRouteId:e},s)))},[t,e])}function Mr(t){Z(!1)}function Cy(t){let{basename:e="/",children:n=null,location:i,navigationType:r=Tt.Pop,navigator:s,static:o=!1,future:l}=t;Yi()&&Z(!1);let a=e.replace(/^\/*/,"/"),u=P.useMemo(()=>({basename:a,navigator:s,static:o,future:Bi({v7_relativeSplatPath:!1},l)}),[a,l,s,o]);typeof i=="string"&&(i=Jn(i));let{pathname:c="/",search:f="",hash:d="",state:y=null,key:v="default"}=i,g=P.useMemo(()=>{let x=ga(c,a);return x==null?null:{location:{pathname:x,search:f,hash:d,state:y,key:v},navigationType:r}},[a,c,f,d,y,v,r]);return g==null?null:P.createElement(yn.Provider,{value:u},P.createElement(Ps.Provider,{children:n,value:g}))}function Py(t){let{children:e,location:n}=t;return dy(gl(e),n)}new Promise(()=>{});function gl(t,e){e===void 0&&(e=[]);let n=[];return P.Children.forEach(t,(i,r)=>{if(!P.isValidElement(i))return;let s=[...e,r];if(i.type===P.Fragment){n.push.apply(n,gl(i.props.children,s));return}i.type!==Mr&&Z(!1),!i.props.index||!i.props.children||Z(!1);let o={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(o.children=gl(i.props.children,s)),n.push(o)}),n}/** + */function Bi(){return Bi=Object.assign?Object.assign.bind():function(t){for(var e=1;e{l.current=!0}),P.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){i.go(u);return}let f=Ed(u,JSON.parse(o),s,c.relative==="path");t==null&&e!=="/"&&(f.pathname=f.pathname==="/"?e:Bt([e,f.pathname])),(c.replace?i.replace:i.push)(f,c.state,c)},[e,i,o,s,t])}function Td(t,e){let{relative:n}=e===void 0?{}:e,{future:i}=P.useContext(yn),{matches:r}=P.useContext(gn),{pathname:s}=Ki(),o=JSON.stringify(Pd(r,i.v7_relativeSplatPath));return P.useMemo(()=>Ed(t,JSON.parse(o),s,n==="path"),[t,o,s,n])}function hy(t,e){return py(t,e)}function py(t,e,n,i){Yi()||J(!1);let{navigator:r}=P.useContext(yn),{matches:s}=P.useContext(gn),o=s[s.length-1],l=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let u=Ki(),c;if(e){var f;let x=typeof e=="string"?Zn(e):e;a==="/"||(f=x.pathname)!=null&&f.startsWith(a)||J(!1),c=x}else c=u;let d=c.pathname||"/",y=d;if(a!=="/"){let x=a.replace(/^\//,"").split("/");y="/"+d.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=Um(t,{pathname:y}),g=wy(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:Bt([a,r.encodeLocation?r.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?a:Bt([a,r.encodeLocation?r.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,i);return e&&g?P.createElement(Ps.Provider,{value:{location:Bi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Tt.Pop}},g):g}function my(){let t=Sy(),e=ly(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},e),n?P.createElement("pre",{style:r},n):null,null)}const yy=P.createElement(my,null);class gy extends P.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?P.createElement(gn.Provider,{value:this.props.routeContext},P.createElement(zd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vy(t){let{routeContext:e,match:n,children:i}=t,r=P.useContext(va);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(gn.Provider,{value:e},i)}function wy(t,e,n,i){var r;if(e===void 0&&(e=[]),n===void 0&&(n=null),i===void 0&&(i=null),t==null){var s;if(!n)return null;if(n.errors)t=n.matches;else if((s=i)!=null&&s.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let o=t,l=(r=n)==null?void 0:r.errors;if(l!=null){let c=o.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||J(!1),o=o.slice(0,Math.min(o.length,c+1))}let a=!1,u=-1;if(n&&i&&i.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,d)=>{let y,v=!1,g=null,x=null;n&&(y=l&&f.route.id?l[f.route.id]:void 0,g=f.route.errorElement||yy,a&&(u<0&&d===0?(v=!0,x=null):u===d&&(v=!0,x=f.route.hydrateFallbackElement||null)));let p=e.concat(o.slice(0,d+1)),h=()=>{let m;return y?m=g:v?m=x:f.route.Component?m=P.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=c,P.createElement(vy,{match:f,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?P.createElement(gy,{location:n.location,revalidation:n.revalidation,component:g,error:y,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var Rd=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Rd||{}),is=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(is||{});function xy(t){let e=P.useContext(va);return e||J(!1),e}function ky(t){let e=P.useContext(uy);return e||J(!1),e}function _y(t){let e=P.useContext(gn);return e||J(!1),e}function Od(t){let e=_y(),n=e.matches[e.matches.length-1];return n.route.id||J(!1),n.route.id}function Sy(){var t;let e=P.useContext(zd),n=ky(is.UseRouteError),i=Od(is.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[i]}function Cy(){let{router:t}=xy(Rd.UseNavigateStable),e=Od(is.UseNavigateStable),n=P.useRef(!1);return Md(()=>{n.current=!0}),P.useCallback(function(r,s){s===void 0&&(s={}),n.current&&(typeof r=="number"?t.navigate(r):t.navigate(r,Bi({fromRouteId:e},s)))},[t,e])}function Mr(t){J(!1)}function Py(t){let{basename:e="/",children:n=null,location:i,navigationType:r=Tt.Pop,navigator:s,static:o=!1,future:l}=t;Yi()&&J(!1);let a=e.replace(/^\/*/,"/"),u=P.useMemo(()=>({basename:a,navigator:s,static:o,future:Bi({v7_relativeSplatPath:!1},l)}),[a,l,s,o]);typeof i=="string"&&(i=Zn(i));let{pathname:c="/",search:f="",hash:d="",state:y=null,key:v="default"}=i,g=P.useMemo(()=>{let x=ga(c,a);return x==null?null:{location:{pathname:x,search:f,hash:d,state:y,key:v},navigationType:r}},[a,c,f,d,y,v,r]);return g==null?null:P.createElement(yn.Provider,{value:u},P.createElement(Ps.Provider,{children:n,value:g}))}function Ey(t){let{children:e,location:n}=t;return hy(gl(e),n)}new Promise(()=>{});function gl(t,e){e===void 0&&(e=[]);let n=[];return P.Children.forEach(t,(i,r)=>{if(!P.isValidElement(i))return;let s=[...e,r];if(i.type===P.Fragment){n.push.apply(n,gl(i.props.children,s));return}i.type!==Mr&&J(!1),!i.props.index||!i.props.children||J(!1);let o={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(o.children=gl(i.props.children,s)),n.push(o)}),n}/** * React Router DOM v6.26.2 * * Copyright (c) Remix Software Inc. @@ -64,4 +64,4 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function vl(){return vl=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[r]=t[r]);return n}function by(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function zy(t,e){return t.button===0&&(!e||e==="_self")&&!by(t)}const My=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Ty="6";try{window.__reactRouterVersion=Ty}catch{}const Ry="startTransition",Bu=Ph[Ry];function Oy(t){let{basename:e,children:n,future:i,window:r}=t,s=P.useRef();s.current==null&&(s.current=Fm({window:r,v5Compat:!0}));let o=s.current,[l,a]=P.useState({action:o.action,location:o.location}),{v7_startTransition:u}=i||{},c=P.useCallback(f=>{u&&Bu?Bu(()=>a(f)):a(f)},[a,u]);return P.useLayoutEffect(()=>o.listen(c),[o,c]),P.createElement(Cy,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:o,future:i})}const Ly=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Iy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,so=P.forwardRef(function(e,n){let{onClick:i,relative:r,reloadDocument:s,replace:o,state:l,target:a,to:u,preventScrollReset:c,unstable_viewTransition:f}=e,d=Ey(e,My),{basename:y}=P.useContext(yn),v,g=!1;if(typeof u=="string"&&Iy.test(u)&&(v=u,Ly))try{let m=new URL(window.location.href),w=u.startsWith("//")?new URL(m.protocol+u):new URL(u),S=ga(w.pathname,y);w.origin===m.origin&&S!=null?u=S+w.search+w.hash:g=!0}catch{}let x=uy(u,{relative:r}),p=Dy(u,{replace:o,state:l,target:a,preventScrollReset:c,relative:r,unstable_viewTransition:f});function h(m){i&&i(m),m.defaultPrevented||p(m)}return P.createElement("a",vl({},d,{href:v||x,onClick:g||s?i:h,ref:n,target:a}))});var Uu;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Uu||(Uu={}));var $u;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})($u||($u={}));function Dy(t,e){let{target:n,replace:i,state:r,preventScrollReset:s,relative:o,unstable_viewTransition:l}=e===void 0?{}:e,a=cy(),u=Ki(),c=Md(t,{relative:o});return P.useCallback(f=>{if(zy(f,n)){f.preventDefault();let d=i!==void 0?i:ns(u)===ns(c);a(t,{replace:d,state:r,preventScrollReset:s,relative:o,unstable_viewTransition:l})}},[u,a,c,i,r,n,t,s,o,l])}const Ny=()=>_.jsxs("div",{id:"nav-bar",children:[_.jsxs("div",{id:"links-div",children:[_.jsx(so,{to:"/",className:"links",children:_.jsx("span",{className:"links-text",children:"Home"})}),_.jsx(so,{to:"/skills",className:"links",children:_.jsx("span",{className:"links-text",children:"Skills"})}),_.jsx(so,{to:"/projects",className:"links",children:_.jsx("span",{className:"links-text",children:"Projects"})})]}),_.jsxs("div",{id:"icons-div",children:[_.jsx("a",{href:"https://github.com/atharva-kakarot",target:"_blank",className:"links",children:_.jsx("i",{className:"bi bi-github"})}),_.jsx("a",{href:"https://www.linkedin.com/in/Atharva-Karanjekar",target:"_blank",className:"links",children:_.jsx("i",{className:"bi bi-linkedin"})}),_.jsx("a",{href:"mailto:atharva.kakarot@gmail.com",target:"_blank",className:"links",children:_.jsx("i",{className:"bi bi-envelope"})}),_.jsx("a",{href:"https://www.instagram.com/karanjekar_atharva?igsh=MWk2NXlqbmMOamw%Yw==",target:"_blank",className:"links",children:_.jsx("i",{className:"bi bi-instagram"})})]})]}),xi="generated",Fy="pointerdown",jy="pointerup",wl="pointerleave",Ay="pointerout",fn="pointermove",By="touchstart",Hu="touchend",Uy="touchmove",$y="touchcancel",Hy="resize",Wy="visibilitychange",qe="tsParticles - Error";class Me{constructor(e,n,i){if(this._updateFromAngle=(r,s)=>{this.x=Math.cos(r)*s,this.y=Math.sin(r)*s},!et(e)&&e){this.x=e.x,this.y=e.y;const r=e;this.z=r.z?r.z:0}else if(e!==void 0&&n!==void 0)this.x=e,this.y=n,this.z=i??0;else throw new Error(`${qe} Vector3d not initialized correctly`)}static get origin(){return Me.create(0,0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return Me.create(e.x,e.y,e.z)}static create(e,n,i){return new Me(e,n,i)}add(e){return Me.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return Me.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return Me.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**2+this.y**2}mult(e){return Me.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){const e=this.length;e!=0&&this.multTo(1/e)}rotate(e){return Me.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),0)}setTo(e){this.x=e.x,this.y=e.y;const n=e;this.z=n.z?n.z:0}sub(e){return Me.create(this.x-e.x,this.y-e.y,this.z-e.z)}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}}class se extends Me{constructor(e,n){super(e,n,0)}static get origin(){return se.create(0,0)}static clone(e){return se.create(e.x,e.y)}static create(e,n){return new se(e,n)}}let Vy=Math.random;const xl=new Map;function oo(t,e){xl.get(t)||xl.set(t,e)}function Od(t){return xl.get(t)||(e=>e)}function $(){return it(Vy(),0,1-1e-16)}function it(t,e,n){return Math.min(Math.max(t,e),n)}function lo(t,e,n,i){return Math.floor((t*n+e*i)/(n+i))}function Pe(t){const e=Rt(t);let n=wa(t);return e===n&&(n=0),$()*(e-n)+n}function T(t){return et(t)?t:Pe(t)}function wa(t){return et(t)?t:t.min}function Rt(t){return et(t)?t:t.max}function O(t,e){if(t===e||e===void 0&&et(t))return t;const n=wa(t),i=Rt(t);return e!==void 0?{min:Math.min(n,e),max:Math.max(i,e)}:O(n,i)}function dn(t){const e=t.random,{enable:n,minimumValue:i}=Ut(e)?{enable:e,minimumValue:0}:e;return T(n?O(t.value,i):t.value)}function xe(t,e){const n=t.x-e.x,i=t.y-e.y;return{dx:n,dy:i,distance:Math.sqrt(n**2+i**2)}}function Le(t,e){return xe(t,e).distance}function qy(t,e,n){if(et(t))return t*Math.PI/180;switch(t){case"top":return-Math.PI/2;case"top-right":return-Math.PI/4;case"right":return 0;case"bottom-right":return Math.PI/4;case"bottom":return Math.PI/2;case"bottom-left":return 3*Math.PI/4;case"left":return Math.PI;case"top-left":return-3*Math.PI/4;case"inside":return Math.atan2(n.y-e.y,n.x-e.x);case"outside":return Math.atan2(e.y-n.y,e.x-n.x);default:return $()*Math.PI*2}}function Qy(t){const e=se.origin;return e.length=1,e.angle=t,e}function Wu(t,e,n,i){return se.create(t.x*(n-i)/(n+i)+e.x*2*i/(n+i),t.y)}function Gy(t){var e,n;return{x:((e=t.position)==null?void 0:e.x)??$()*t.size.width,y:((n=t.position)==null?void 0:n.y)??$()*t.size.height}}function Ld(t){return t?t.endsWith("%")?parseFloat(t)/100:parseFloat(t):1}const Yy={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function hn(){return Yy}function Vu(t){const e={bounced:!1},{pSide:n,pOtherSide:i,rectSide:r,rectOtherSide:s,velocity:o,factor:l}=t;return i.mins.max||i.maxs.max||(n.max>=r.min&&n.max<=(r.max+r.min)/2&&o>0||n.min<=r.max&&n.min>(r.max+r.min)/2&&o<0)&&(e.velocity=o*-l,e.bounced=!0),e}function Ky(t,e){const n=oe(e,i=>t.matches(i));return Ie(n)?n.some(i=>i):n}function Qn(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function Xy(){return!Qn()&&typeof matchMedia<"u"}function Id(t){if(Xy())return matchMedia(t)}function Jy(t){if(!(Qn()||typeof MutationObserver>"u"))return new MutationObserver(t)}function X(t,e){return t===e||Ie(e)&&e.indexOf(t)>-1}async function Zy(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function eg(t){return Math.floor($()*t.length)}function Es(t,e,n=!0){return t[e!==void 0&&n?e%t.length:eg(t)]}function xa(t,e,n,i,r){return tg(Xi(t,i??0),e,n,r)}function tg(t,e,n,i){let r=!0;return(!i||i==="bottom")&&(r=t.topn.x),r&&(!i||i==="right")&&(r=t.leftn.y),r}function Xi(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function pe(t,...e){for(const n of e){if(n==null)continue;if(!On(n)){t=n;continue}const i=Array.isArray(n);i&&(On(t)||!t||!Array.isArray(t))?t=[]:!i&&(On(t)||!t||Array.isArray(t))&&(t={});for(const r in n){if(r==="__proto__")continue;const s=n,o=s[r],l=t;l[r]=On(o)&&Array.isArray(o)?o.map(a=>pe(l[r],a)):pe(l[r],o)}}return t}function ka(t,e){return!!Fd(e,n=>n.enable&&X(t,n.mode))}function _a(t,e,n){oe(e,i=>{const r=i.mode;i.enable&&X(t,r)&&ng(i,n)})}function ng(t,e){const n=t.selectors;oe(n,i=>{e(i,t)})}function Dd(t,e){if(!(!e||!t))return Fd(t,n=>Ky(e,n.selectors))}function kl(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:se.create(dn(t.options.bounce.horizontal),dn(t.options.bounce.vertical))}}function Nd(t,e){const{x:n,y:i}=t.velocity.sub(e.velocity),[r,s]=[t.position,e.position],{dx:o,dy:l}=xe(s,r);if(n*o+i*l<0)return;const a=-Math.atan2(l,o),u=t.mass,c=e.mass,f=t.velocity.rotate(a),d=e.velocity.rotate(a),y=Wu(f,d,u,c),v=Wu(d,f,u,c),g=y.rotate(-a),x=v.rotate(-a);t.velocity.x=g.x*t.factor.x,t.velocity.y=g.y*t.factor.y,e.velocity.x=x.x*e.factor.x,e.velocity.y=x.y*e.factor.y}function ig(t,e){const n=t.getPosition(),i=t.getRadius(),r=Xi(n,i),s=Vu({pSide:{min:r.left,max:r.right},pOtherSide:{min:r.top,max:r.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:dn(t.options.bounce.horizontal)});s.bounced&&(s.velocity!==void 0&&(t.velocity.x=s.velocity),s.position!==void 0&&(t.position.x=s.position));const o=Vu({pSide:{min:r.top,max:r.bottom},pOtherSide:{min:r.left,max:r.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:dn(t.options.bounce.vertical)});o.bounced&&(o.velocity!==void 0&&(t.velocity.y=o.velocity),o.position!==void 0&&(t.position.y=o.position))}function oe(t,e){return Ie(t)?t.map((n,i)=>e(n,i)):e(t,0)}function yt(t,e,n){return Ie(t)?Es(t,e,n):t}function Fd(t,e){return Ie(t)?t.find((n,i)=>e(n,i)):e(t,0)?t:void 0}function jd(t,e){const n=t.value,i=t.animation,r={delayTime:T(i.delay)*1e3,enable:i.enable,value:T(t.value)*e,max:Rt(n)*e,min:wa(n)*e,loops:0,maxLoops:T(i.count),time:0};if(i.enable){switch(r.decay=1-T(i.decay),i.mode){case"increase":r.status="increasing";break;case"decrease":r.status="decreasing";break;case"random":r.status=$()>=.5?"increasing":"decreasing";break}const s=i.mode==="auto";switch(i.startValue){case"min":r.value=r.min,s&&(r.status="increasing");break;case"max":r.value=r.max,s&&(r.status="decreasing");break;case"random":default:r.value=Pe(r),s&&(r.status=$()>=.5?"increasing":"decreasing");break}}return r.initialValue=r.value,r}function rg(t,e){if(!(t.mode==="percent")){const{mode:r,...s}=t;return s}return"x"in t?{x:t.x/100*e.width,y:t.y/100*e.height}:{width:t.width/100*e.width,height:t.height/100*e.height}}function Ad(t,e){return rg(t,e)}function Ut(t){return typeof t=="boolean"}function Ze(t){return typeof t=="string"}function et(t){return typeof t=="number"}function Bd(t){return typeof t=="function"}function On(t){return typeof t=="object"&&t!==null}function Ie(t){return Array.isArray(t)}const rs="random",Tr="mid",bs=new Map;function qu(t){bs.set(t.key,t)}function ao(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function sg(t){for(const[,s]of bs)if(t.startsWith(s.stringPrefix))return s.parseString(t);const e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=t.replace(e,(s,o,l,a,u)=>o+o+l+l+a+a+(u!==void 0?u+u:"")),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,r=i.exec(n);return r?{a:r[4]!==void 0?parseInt(r[4],16)/255:1,b:parseInt(r[3],16),g:parseInt(r[2],16),r:parseInt(r[1],16)}:void 0}function tt(t,e,n=!0){if(!t)return;const i=Ze(t)?{value:t}:t;if(Ze(i.value))return Ud(i.value,e,n);if(Ie(i.value))return tt({value:Es(i.value,e,n)});for(const[,r]of bs){const s=r.handleRangeColor(i);if(s)return s}}function Ud(t,e,n=!0){if(!t)return;const i=Ze(t)?{value:t}:t;if(Ze(i.value))return i.value===rs?Hd():og(i.value);if(Ie(i.value))return Ud({value:Es(i.value,e,n)});for(const[,r]of bs){const s=r.handleColor(i);if(s)return s}}function Ui(t,e,n=!0){const i=tt(t,e,n);return i?$d(i):void 0}function $d(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),s=Math.min(e,n,i),o={h:0,l:(r+s)/2,s:0};return r!==s&&(o.s=o.l<.5?(r-s)/(r+s):(r-s)/(2-r-s),o.h=e===r?(n-i)/(r-s):o.h=n===r?2+(i-e)/(r-s):4+(e-n)/(r-s)),o.l*=100,o.s*=100,o.h*=60,o.h<0&&(o.h+=360),o.h>=360&&(o.h-=360),o}function og(t){return sg(t)}function Gn(t){const e={b:0,g:0,r:0},n={h:t.h/360,l:t.l/100,s:t.s/100};if(!n.s)e.r=e.g=e.b=n.l;else{const i=n.l<.5?n.l*(1+n.s):n.l+n.s-n.l*n.s,r=2*n.l-i;e.r=ao(r,i,n.h+1/3),e.g=ao(r,i,n.h),e.b=ao(r,i,n.h-1/3)}return e.r=Math.floor(e.r*255),e.g=Math.floor(e.g*255),e.b=Math.floor(e.b*255),e}function lg(t){const e=Gn(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function Hd(t){return{b:Math.floor(Pe(O(0,256))),g:Math.floor(Pe(O(0,256))),r:Math.floor(Pe(O(0,256)))}}function gt(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function $i(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function Sa(t,e,n,i){let r=t,s=e;return r.r===void 0&&(r=Gn(t)),s.r===void 0&&(s=Gn(e)),{b:lo(r.b,s.b,n,i),g:lo(r.g,s.g,n,i),r:lo(r.r,s.r,n,i)}}function _l(t,e,n){if(n===rs)return Hd();if(n===Tr){const i=t.getFillColor()??t.getStrokeColor(),r=(e==null?void 0:e.getFillColor())??(e==null?void 0:e.getStrokeColor());if(i&&r&&e)return Sa(i,r,t.getRadius(),e.getRadius());{const s=i??r;if(s)return Gn(s)}}else return n}function Wd(t,e,n){const i=Ze(t)?t:t.value;return i===rs?n?tt({value:i}):e?rs:Tr:i===Tr?Tr:tt({value:i})}function Qu(t){return t!==void 0?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function Vd(t,e,n){const i={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(uo(i.h,e.h,n),uo(i.s,e.s,n),uo(i.l,e.l,n)),i}function uo(t,e,n){t.enable=e.enable,t.enable?(t.velocity=T(e.speed)/100*n,t.decay=1-T(e.decay),t.status="increasing",t.loops=0,t.maxLoops=T(e.count),t.time=0,t.delayTime=T(e.delay)*1e3,e.sync||(t.velocity*=$(),t.value*=$()),t.initialValue=t.value):t.velocity=0}function ki(t,e,n){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(n.x,n.y),t.closePath()}function ag(t,e,n,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(n.x,n.y),t.lineTo(i.x,i.y),t.closePath()}function ug(t,e,n){t.fillStyle=n??"rgba(0,0,0,0)",t.fillRect(0,0,e.width,e.height)}function cg(t,e,n,i){n&&(t.globalAlpha=i,t.drawImage(n,0,0,e.width,e.height),t.globalAlpha=1)}function co(t,e){t.clearRect(0,0,e.width,e.height)}function fg(t){const{container:e,context:n,particle:i,delta:r,colorStyles:s,backgroundMask:o,composite:l,radius:a,opacity:u,shadow:c,transform:f}=t,d=i.getPosition(),y=i.rotation+(i.pathRotation?i.velocity.angle:0),v={sin:Math.sin(y),cos:Math.cos(y)},g={a:v.cos*(f.a??1),b:v.sin*(f.b??1),c:-v.sin*(f.c??1),d:v.cos*(f.d??1)};n.setTransform(g.a,g.b,g.c,g.d,d.x,d.y),n.beginPath(),o&&(n.globalCompositeOperation=l);const x=i.shadowColor;c.enable&&x&&(n.shadowBlur=c.blur,n.shadowColor=gt(x),n.shadowOffsetX=c.offset.x,n.shadowOffsetY=c.offset.y),s.fill&&(n.fillStyle=s.fill);const p=i.strokeWidth??0;n.lineWidth=p,s.stroke&&(n.strokeStyle=s.stroke),dg(e,n,i,a,u,r),p>0&&n.stroke(),i.close&&n.closePath(),i.fill&&n.fill(),hg(e,n,i,a,u,r),n.globalCompositeOperation="source-over",n.setTransform(1,0,0,1,0,0)}function dg(t,e,n,i,r,s){if(!n.shape)return;const o=t.drawers.get(n.shape);o&&o.draw(e,n,i,r,s,t.retina.pixelRatio)}function hg(t,e,n,i,r,s){if(!n.shape)return;const o=t.drawers.get(n.shape);!o||!o.afterEffect||o.afterEffect(e,n,i,r,s,t.retina.pixelRatio)}function pg(t,e,n){e.draw&&e.draw(t,n)}function mg(t,e,n,i){e.drawParticle&&e.drawParticle(t,n,i)}function yg(t,e,n){return{h:t.h,s:t.s,l:t.l+(e==="darken"?-1:1)*n}}function gg(t,e,n){const i=e[n];i!==void 0&&(t[n]=(t[n]??1)*i)}class vg{constructor(e){this.container=e,this._applyPostDrawUpdaters=n=>{for(const i of this._postDrawUpdaters)i.afterDraw&&i.afterDraw(n)},this._applyPreDrawUpdaters=(n,i,r,s,o,l)=>{for(const a of this._preDrawUpdaters){if(a.getColorStyles){const{fill:u,stroke:c}=a.getColorStyles(i,n,r,s);u&&(o.fill=u),c&&(o.stroke=c)}if(a.getTransformValues){const u=a.getTransformValues(i);for(const c in u)gg(l,u,c)}a.beforeDraw&&a.beforeDraw(i)}},this._applyResizePlugins=()=>{for(const n of this._resizePlugins)n.resize&&n.resize()},this._getPluginParticleColors=n=>{let i,r;for(const s of this._colorPlugins)if(!i&&s.particleFillColor&&(i=Ui(s.particleFillColor(n))),!r&&s.particleStrokeColor&&(r=Ui(s.particleStrokeColor(n))),i&&r)break;return[i,r]},this._initCover=()=>{const n=this.container.actualOptions,i=n.backgroundMask.cover,r=i.color,s=tt(r);if(s){const o={...s,a:i.opacity};this._coverColorStyle=gt(o,o.a)}},this._initStyle=()=>{const n=this.element,i=this.container.actualOptions;if(n){this._fullScreen?(this._originalStyle=pe({},n.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const r in i.style){if(!r||!i.style)continue;const s=i.style[r];s&&n.style.setProperty(r,s,"important")}}},this._initTrail=async()=>{const n=this.container.actualOptions,i=n.particles.move.trail,r=i.fill;if(i.enable)if(r.color){const s=tt(r.color);if(!s)return;const o=n.particles.move.trail;this._trailFill={color:{...s},opacity:1/o.length}}else await new Promise((s,o)=>{if(!r.image)return;const l=document.createElement("img");l.addEventListener("load",()=>{this._trailFill={image:l,opacity:1/i.length},s()}),l.addEventListener("error",a=>{o(a.error)}),l.src=r.image})},this._paintBase=n=>{this.draw(i=>ug(i,this.size,n))},this._paintImage=(n,i)=>{this.draw(r=>cg(r,this.size,n,i))},this._repairStyle=()=>{const n=this.element;n&&(this._safeMutationObserver(i=>i.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(i=>i.observe(n,{attributes:!0})))},this._resetOriginalStyle=()=>{const n=this.element,i=this._originalStyle;if(!(n&&i))return;const r=n.style;r.position=i.position,r.zIndex=i.zIndex,r.top=i.top,r.left=i.left,r.width=i.width,r.height=i.height},this._safeMutationObserver=n=>{this._mutationObserver&&n(this._mutationObserver)},this._setFullScreenStyle=()=>{const n=this.element;if(!n)return;const i="important",r=n.style;r.setProperty("position","fixed",i),r.setProperty("z-index",this.container.actualOptions.fullScreen.zIndex.toString(10),i),r.setProperty("top","0",i),r.setProperty("left","0",i),r.setProperty("width","100%",i),r.setProperty("height","100%",i)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const e=this.container.actualOptions,n=e.particles.move.trail,i=this._trailFill;e.backgroundMask.enable?this.paint():n.enable&&n.length>0&&i?i.color?this._paintBase(gt(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):this.draw(r=>{co(r,this.size)})}destroy(){if(this.stop(),this._generated){const e=this.element;e&&e.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){const n=this._context;if(n)return e(n)}drawParticle(e,n){if(e.spawning||e.destroyed)return;const i=e.getRadius();if(i<=0)return;const r=e.getFillColor(),s=e.getStrokeColor()??r;let[o,l]=this._getPluginParticleColors(e);o||(o=r),l||(l=s),!(!o&&!l)&&this.draw(a=>{var m;const u=this.container,c=u.actualOptions,f=e.options.zIndex,d=(1-e.zIndexFactor)**f.opacityRate,y=e.bubble.opacity??((m=e.opacity)==null?void 0:m.value)??1,v=e.strokeOpacity??y,g=y*d,x=v*d,p={},h={fill:o?$i(o,g):void 0};h.stroke=l?$i(l,x):h.fill,this._applyPreDrawUpdaters(a,e,i,g,h,p),fg({container:u,context:a,particle:e,delta:n,colorStyles:h,backgroundMask:c.backgroundMask.enable,composite:c.backgroundMask.composite,radius:i*(1-e.zIndexFactor)**f.sizeRate,opacity:g,shadow:e.options.shadow,transform:p}),this._applyPostDrawUpdaters(e)})}drawParticlePlugin(e,n,i){this.draw(r=>mg(r,e,n,i))}drawPlugin(e,n){this.draw(i=>pg(i,e,n))}async init(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=Jy(e=>{for(const n of e)n.type==="attributes"&&n.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),this._initCover();try{await this._initTrail()}catch(e){hn().error(e)}this.initBackground(),this._safeMutationObserver(e=>{this.element&&e.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const e=this.container.actualOptions,n=e.background,i=this.element;if(!i)return;const r=i.style;if(r){if(n.color){const s=tt(n.color);r.backgroundColor=s?gt(s,n.opacity):""}else r.backgroundColor="";r.backgroundImage=n.image||"",r.backgroundPosition=n.position||"",r.backgroundRepeat=n.repeat||"",r.backgroundSize=n.size||""}}initPlugins(){this._resizePlugins=[];for(const[,e]of this.container.plugins)e.resize&&this._resizePlugins.push(e),(e.particleFillColor||e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const e of this.container.particles.updaters)e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles||e.getTransformValues||e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&xi in e.dataset?e.dataset[xi]==="true":this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=pe({},this.element.style),this.size.height=e.offsetHeight,this.size.width=e.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(n=>{this.element&&n.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){const e=this.container.actualOptions;this.draw(n=>{e.backgroundMask.enable&&e.backgroundMask.cover?(co(n,this.size),this._paintBase(this._coverColorStyle)):this._paintBase()})}resize(){if(!this.element)return!1;const e=this.container,n=e.retina.pixelRatio,i=e.canvas.size,r={width:this.element.offsetWidth*n,height:this.element.offsetHeight*n};if(r.height===i.height&&r.width===i.width&&r.height===this.element.height&&r.width===this.element.width)return!1;const s={...i};return this.element.width=i.width=this.element.offsetWidth*n,this.element.height=i.height=this.element.offsetHeight*n,this.container.started&&(this.resizeFactor={width:i.width/s.width,height:i.height/s.height}),!0}stop(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=void 0,this.draw(e=>co(e,this.size))}async windowResize(){if(!this.element||!this.resize())return;const e=this.container,n=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),n&&await e.refresh()}}function je(t,e,n,i,r){if(i){let s={passive:!0};Ut(r)?s.capture=r:r!==void 0&&(s=r),t.addEventListener(e,n,s)}else{const s=r;t.removeEventListener(e,n,s)}}class wg{constructor(e){this.container=e,this._doMouseTouchClick=n=>{const i=this.container,r=i.actualOptions;if(this._canPush){const s=i.interactivity.mouse,o=s.position;if(!o)return;s.clickPosition={...o},s.clickTime=new Date().getTime();const l=r.interactivity.events.onClick;oe(l.mode,a=>this.container.handleClickMode(a))}n.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=n=>{const i=n,r=this.container,s=r.options,o=s.defaultThemes,l=i.matches?o.dark:o.light,a=s.themes.find(u=>u.name===l);a&&a.default.auto&&r.loadTheme(l)},this._handleVisibilityChange=()=>{const n=this.container,i=n.actualOptions;this._mouseTouchFinish(),i.pauseOnBlur&&(document&&document.hidden?(n.pageHidden=!0,n.pause()):(n.pageHidden=!1,n.getAnimationStatus()?n.play(!0):n.draw(!0)))},this._handleWindowResize=async()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout),this._resizeTimeout=setTimeout(async()=>{const n=this.container.canvas;n&&await n.windowResize()},this.container.actualOptions.interactivity.events.resize.delay*1e3)},this._manageInteractivityListeners=(n,i)=>{const r=this._handlers,s=this.container,o=s.actualOptions,l=s.interactivity.element;if(!l)return;const a=l,u=s.canvas.element;u&&(u.style.pointerEvents=a===u?"initial":"none"),(o.interactivity.events.onHover.enable||o.interactivity.events.onClick.enable)&&(je(l,fn,r.mouseMove,i),je(l,By,r.touchStart,i),je(l,Uy,r.touchMove,i),o.interactivity.events.onClick.enable?(je(l,Hu,r.touchEndClick,i),je(l,jy,r.mouseUp,i),je(l,Fy,r.mouseDown,i)):je(l,Hu,r.touchEnd,i),je(l,n,r.mouseLeave,i),je(l,$y,r.touchCancel,i))},this._manageListeners=n=>{const i=this._handlers,r=this.container,s=r.actualOptions,o=s.interactivity.detectsOn,l=r.canvas.element;let a=wl;o==="window"?(r.interactivity.element=window,a=Ay):o==="parent"&&l?r.interactivity.element=l.parentElement??l.parentNode:r.interactivity.element=l,this._manageMediaMatch(n),this._manageResize(n),this._manageInteractivityListeners(a,n),document&&je(document,Wy,i.visibilityChange,n,!1)},this._manageMediaMatch=n=>{const i=this._handlers,r=Id("(prefers-color-scheme: dark)");if(r){if(r.addEventListener!==void 0){je(r,"change",i.themeChange,n);return}r.addListener!==void 0&&(n?r.addListener(i.oldThemeChange):r.removeListener(i.oldThemeChange))}},this._manageResize=n=>{const i=this._handlers,r=this.container;if(!r.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){je(window,Hy,i.resize,n);return}const o=r.canvas.element;this._resizeObserver&&!n?(o&&this._resizeObserver.unobserve(o),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&n&&o&&(this._resizeObserver=new ResizeObserver(async l=>{l.find(u=>u.target===o)&&await this._handleWindowResize()}),this._resizeObserver.observe(o))},this._mouseDown=()=>{const{interactivity:n}=this.container;if(!n)return;const{mouse:i}=n;i.clicking=!0,i.downPosition=i.position},this._mouseTouchClick=n=>{const i=this.container,r=i.actualOptions,{mouse:s}=i.interactivity;s.inside=!0;let o=!1;const l=s.position;if(!(!l||!r.interactivity.events.onClick.enable)){for(const[,a]of i.plugins)if(a.clickPositionValid&&(o=a.clickPositionValid(l),o))break;o||this._doMouseTouchClick(n),s.clicking=!1}},this._mouseTouchFinish=()=>{const n=this.container.interactivity;if(!n)return;const i=n.mouse;delete i.position,delete i.clickPosition,delete i.downPosition,n.status=wl,i.inside=!1,i.clicking=!1},this._mouseTouchMove=n=>{const i=this.container,r=i.actualOptions,s=i.interactivity,o=i.canvas.element;if(!s||!s.element)return;s.mouse.inside=!0;let l;if(n.type.startsWith("pointer")){this._canPush=!0;const u=n;if(s.element===window){if(o){const c=o.getBoundingClientRect();l={x:u.clientX-c.left,y:u.clientY-c.top}}}else if(r.interactivity.detectsOn==="parent"){const c=u.target,f=u.currentTarget;if(c&&f&&o){const d=c.getBoundingClientRect(),y=f.getBoundingClientRect(),v=o.getBoundingClientRect();l={x:u.offsetX+2*d.left-(y.left+v.left),y:u.offsetY+2*d.top-(y.top+v.top)}}else l={x:u.offsetX??u.clientX,y:u.offsetY??u.clientY}}else u.target===o&&(l={x:u.offsetX??u.clientX,y:u.offsetY??u.clientY})}else if(this._canPush=n.type!=="touchmove",o){const u=n,c=u.touches[u.touches.length-1],f=o.getBoundingClientRect();l={x:c.clientX-(f.left??0),y:c.clientY-(f.top??0)}}const a=i.retina.pixelRatio;l&&(l.x*=a,l.y*=a),s.mouse.position=l,s.status=fn},this._touchEnd=n=>{const i=n,r=Array.from(i.changedTouches);for(const s of r)this._touches.delete(s.identifier);this._mouseTouchFinish()},this._touchEndClick=n=>{const i=n,r=Array.from(i.changedTouches);for(const s of r)this._touches.delete(s.identifier);this._mouseTouchClick(n)},this._touchStart=n=>{const i=n,r=Array.from(i.changedTouches);for(const s of r)this._touches.set(s.identifier,performance.now());this._mouseTouchMove(n)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:n=>this._mouseTouchMove(n),mouseUp:n=>this._mouseTouchClick(n),touchStart:n=>this._touchStart(n),touchMove:n=>this._mouseTouchMove(n),touchEnd:n=>this._touchEnd(n),touchCancel:n=>this._touchEnd(n),touchEndClick:n=>this._touchEndClick(n),visibilityChange:()=>this._handleVisibilityChange(),themeChange:n=>this._handleThemeChange(n),oldThemeChange:n=>this._handleThemeChange(n),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}class ce{constructor(){this.value=""}static create(e,n){const i=new ce;return i.load(e),n!==void 0&&(Ze(n)||Ie(n)?i.load({value:n}):i.load(n)),i}load(e){(e==null?void 0:e.value)!==void 0&&(this.value=e.value)}}class xg{constructor(){this.color=new ce,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=ce.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.position!==void 0&&(this.position=e.position),e.repeat!==void 0&&(this.repeat=e.repeat),e.size!==void 0&&(this.size=e.size),e.opacity!==void 0&&(this.opacity=e.opacity))}}class kg{constructor(){this.color=new ce,this.color.value="#fff",this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=ce.create(this.color,e.color)),e.opacity!==void 0&&(this.opacity=e.opacity))}}class _g{constructor(){this.composite="destination-out",this.cover=new kg,this.enable=!1}load(e){if(e){if(e.composite!==void 0&&(this.composite=e.composite),e.cover!==void 0){const n=e.cover,i=Ze(e.cover)?{color:e.cover}:e.cover;this.cover.load(n.color!==void 0?n:{color:i})}e.enable!==void 0&&(this.enable=e.enable)}}}class Sg{constructor(){this.enable=!0,this.zIndex=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.zIndex!==void 0&&(this.zIndex=e.zIndex))}}class Cg{constructor(){this.enable=!1,this.mode=[]}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode))}}class Gu{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}get el(){return this.elementId}set el(e){this.elementId=e}get elementId(){return this.ids}set elementId(e){this.ids=e}get ids(){return oe(this.selectors,e=>e.replace("#",""))}set ids(e){this.selectors=oe(e,n=>`#${n}`)}load(e){if(!e)return;const n=e.ids??e.elementId??e.el;n!==void 0&&(this.ids=n),e.selectors!==void 0&&(this.selectors=e.selectors),e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),e.type!==void 0&&(this.type=e.type)}}class Pg{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.force!==void 0&&(this.force=e.force),e.smooth!==void 0&&(this.smooth=e.smooth))}}class Eg{constructor(){this.enable=!1,this.mode=[],this.parallax=new Pg}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),this.parallax.load(e.parallax))}}class bg{constructor(){this.delay=.5,this.enable=!0}load(e){e!==void 0&&(e.delay!==void 0&&(this.delay=e.delay),e.enable!==void 0&&(this.enable=e.enable))}}class zg{constructor(){this.onClick=new Cg,this.onDiv=new Gu,this.onHover=new Eg,this.resize=new bg}get onclick(){return this.onClick}set onclick(e){this.onClick=e}get ondiv(){return this.onDiv}set ondiv(e){this.onDiv=e}get onhover(){return this.onHover}set onhover(e){this.onHover=e}load(e){if(!e)return;this.onClick.load(e.onClick??e.onclick);const n=e.onDiv??e.ondiv;n!==void 0&&(this.onDiv=oe(n,i=>{const r=new Gu;return r.load(i),r})),this.onHover.load(e.onHover??e.onhover),Ut(e.resize)?this.resize.enable=e.resize:this.resize.load(e.resize)}}class Mg{constructor(e,n){this._engine=e,this._container=n}load(e){if(!e||!this._container)return;const n=this._engine.plugins.interactors.get(this._container);if(n)for(const i of n)i.loadModeOptions&&i.loadModeOptions(this,e)}}class qd{constructor(e,n){this.detectsOn="window",this.events=new zg,this.modes=new Mg(e,n)}get detect_on(){return this.detectsOn}set detect_on(e){this.detectsOn=e}load(e){if(!e)return;const n=e.detectsOn??e.detect_on;n!==void 0&&(this.detectsOn=n),this.events.load(e.events),this.modes.load(e.modes)}}class Tg{load(e){e&&(e.position&&(this.position={x:e.position.x??50,y:e.position.y??50,mode:e.position.mode??"percent"}),e.options&&(this.options=pe({},e.options)))}}class Rg{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(e){e&&(e.maxWidth!==void 0&&(this.maxWidth=e.maxWidth),e.mode!==void 0&&(e.mode==="screen"?this.mode="screen":this.mode="canvas"),e.options!==void 0&&(this.options=pe({},e.options)))}}class Og{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(e){e&&(e.auto!==void 0&&(this.auto=e.auto),e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}class Lg{constructor(){this.name="",this.default=new Og}load(e){e&&(e.name!==void 0&&(this.name=e.name),this.default.load(e.default),e.options!==void 0&&(this.options=pe({},e.options)))}}class fo{constructor(){this.count=0,this.enable=!1,this.offset=0,this.speed=1,this.delay=0,this.decay=0,this.sync=!0}load(e){e&&(e.count!==void 0&&(this.count=O(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(this.offset=O(e.offset)),e.speed!==void 0&&(this.speed=O(e.speed)),e.decay!==void 0&&(this.decay=O(e.decay)),e.delay!==void 0&&(this.delay=O(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}}class Ig{constructor(){this.h=new fo,this.s=new fo,this.l=new fo}load(e){e&&(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}class Hi extends ce{constructor(){super(),this.animation=new Ig}static create(e,n){const i=new Hi;return i.load(e),n!==void 0&&(Ze(n)||Ie(n)?i.load({value:n}):i.load(n)),i}load(e){if(super.load(e),!e)return;const n=e.animation;n!==void 0&&(n.enable!==void 0?this.animation.h.load(n):this.animation.load(e.animation))}}class Dg{constructor(){this.speed=2}load(e){e&&e.speed!==void 0&&(this.speed=e.speed)}}class Ng{constructor(){this.enable=!0,this.retries=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.retries!==void 0&&(this.retries=e.retries))}}class Fg{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){e&&(e.count!==void 0&&(this.count=O(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=O(e.speed)),e.decay!==void 0&&(this.decay=O(e.decay)),e.delay!==void 0&&(this.delay=O(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}}class Qd extends Fg{constructor(){super(),this.mode="auto",this.startValue="random"}load(e){super.load(e),e&&(e.minimumValue!==void 0&&(this.minimumValue=e.minimumValue),e.mode!==void 0&&(this.mode=e.mode),e.startValue!==void 0&&(this.startValue=e.startValue))}}class jg{constructor(){this.enable=!1,this.minimumValue=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.minimumValue!==void 0&&(this.minimumValue=e.minimumValue))}}class Qt{constructor(){this.random=new jg,this.value=0}load(e){e&&(Ut(e.random)?this.random.enable=e.random:this.random.load(e.random),e.value!==void 0&&(this.value=O(e.value,this.random.enable?this.random.minimumValue:void 0)))}}class Yu extends Qt{constructor(){super(),this.random.minimumValue=.1,this.value=1}}class Gd{constructor(){this.horizontal=new Yu,this.vertical=new Yu}load(e){e&&(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}class Ag{constructor(){this.absorb=new Dg,this.bounce=new Gd,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new Ng}load(e){e&&(this.absorb.load(e.absorb),this.bounce.load(e.bounce),e.enable!==void 0&&(this.enable=e.enable),e.maxSpeed!==void 0&&(this.maxSpeed=O(e.maxSpeed)),e.mode!==void 0&&(this.mode=e.mode),this.overlap.load(e.overlap))}}class Bg{constructor(){this.offset=0,this.value=90}load(e){e&&(e.offset!==void 0&&(this.offset=O(e.offset)),e.value!==void 0&&(this.value=O(e.value)))}}class Ug{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}get rotateX(){return this.rotate.x}set rotateX(e){this.rotate.x=e}get rotateY(){return this.rotate.y}set rotateY(e){this.rotate.y=e}load(e){var r,s;if(!e)return;e.distance!==void 0&&(this.distance=O(e.distance)),e.enable!==void 0&&(this.enable=e.enable);const n=((r=e.rotate)==null?void 0:r.x)??e.rotateX;n!==void 0&&(this.rotate.x=n);const i=((s=e.rotate)==null?void 0:s.y)??e.rotateY;i!==void 0&&(this.rotate.y=i)}}class $g{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(e){e&&(e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.mode!==void 0&&(this.mode=e.mode),e.radius!==void 0&&(this.radius=e.radius))}}class Hg{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=O(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.inverse!==void 0&&(this.inverse=e.inverse),e.maxSpeed!==void 0&&(this.maxSpeed=O(e.maxSpeed)))}}class Wg{constructor(){this.clamp=!0,this.delay=new Qt,this.enable=!1,this.options={}}load(e){e&&(e.clamp!==void 0&&(this.clamp=e.clamp),this.delay.load(e.delay),e.enable!==void 0&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=pe(this.options,e.options)))}}class Vg{load(e){e&&(e.color!==void 0&&(this.color=ce.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image))}}class qg{constructor(){this.enable=!1,this.length=10,this.fill=new Vg}get fillColor(){return this.fill.color}set fillColor(e){this.fill.load({color:e})}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),(e.fill!==void 0||e.fillColor!==void 0)&&this.fill.load(e.fill||{color:e.fillColor}),e.length!==void 0&&(this.length=e.length))}}class Qg{constructor(){this.default="out"}load(e){e&&(e.default!==void 0&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}class Gg{constructor(){this.acceleration=0,this.enable=!1}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=O(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.position&&(this.position=pe({},e.position)))}}class Yg{constructor(){this.angle=new Bg,this.attract=new Ug,this.center=new $g,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new Hg,this.path=new Wg,this.outModes=new Qg,this.random=!1,this.size=!1,this.speed=2,this.spin=new Gg,this.straight=!1,this.trail=new qg,this.vibrate=!1,this.warp=!1}get bounce(){return this.collisions}set bounce(e){this.collisions=e}get collisions(){return!1}set collisions(e){}get noise(){return this.path}set noise(e){this.path=e}get outMode(){return this.outModes.default}set outMode(e){this.outModes.default=e}get out_mode(){return this.outMode}set out_mode(e){this.outMode=e}load(e){if(!e)return;this.angle.load(et(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),e.decay!==void 0&&(this.decay=O(e.decay)),e.direction!==void 0&&(this.direction=e.direction),e.distance!==void 0&&(this.distance=et(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),e.drift!==void 0&&(this.drift=O(e.drift)),e.enable!==void 0&&(this.enable=e.enable),this.gravity.load(e.gravity);const n=e.outModes??e.outMode??e.out_mode;n!==void 0&&(On(n)?this.outModes.load(n):this.outModes.load({default:n})),this.path.load(e.path??e.noise),e.random!==void 0&&(this.random=e.random),e.size!==void 0&&(this.size=e.size),e.speed!==void 0&&(this.speed=O(e.speed)),this.spin.load(e.spin),e.straight!==void 0&&(this.straight=e.straight),this.trail.load(e.trail),e.vibrate!==void 0&&(this.vibrate=e.vibrate),e.warp!==void 0&&(this.warp=e.warp)}}class Kg extends Qd{constructor(){super(),this.destroy="none",this.speed=2}get opacity_min(){return this.minimumValue}set opacity_min(e){this.minimumValue=e}load(e){(e==null?void 0:e.opacity_min)!==void 0&&e.minimumValue===void 0&&(e.minimumValue=e.opacity_min),super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class Xg extends Qt{constructor(){super(),this.animation=new Kg,this.random.minimumValue=.1,this.value=1}get anim(){return this.animation}set anim(e){this.animation=e}load(e){if(!e)return;super.load(e);const n=e.animation??e.anim;n!==void 0&&(this.animation.load(n),this.value=O(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class Jg{constructor(){this.enable=!1,this.width=1920,this.height=1080}get area(){return this.width}set area(e){this.width=e}get factor(){return this.height}set factor(e){this.height=e}get value_area(){return this.area}set value_area(e){this.area=e}load(e){if(!e)return;e.enable!==void 0&&(this.enable=e.enable);const n=e.width??e.area??e.value_area;n!==void 0&&(this.width=n);const i=e.height??e.factor;i!==void 0&&(this.height=i)}}class Zg{constructor(){this.density=new Jg,this.limit=0,this.value=0}get max(){return this.limit}set max(e){this.limit=e}load(e){if(!e)return;this.density.load(e.density);const n=e.limit??e.max;n!==void 0&&(this.limit=n),e.value!==void 0&&(this.value=e.value)}}class ev{constructor(){this.blur=0,this.color=new ce,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=ce.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(e.offset.x!==void 0&&(this.offset.x=e.offset.x),e.offset.y!==void 0&&(this.offset.y=e.offset.y)))}}const ho="character",po="char",mo="image",yo="images",go="polygon",vo="star";class tv{constructor(){this.loadShape=(e,n,i,r)=>{if(!e)return;const s=Ie(e),o=s?[]:{},l=s!==Ie(this.options[n]),a=s!==Ie(this.options[i]);l&&(this.options[n]=o),a&&r&&(this.options[i]=o),this.options[n]=pe(this.options[n]??o,e),(!this.options[i]||r)&&(this.options[i]=pe(this.options[i]??o,e))},this.close=!0,this.fill=!0,this.options={},this.type="circle"}get character(){return this.options[ho]??this.options[po]}set character(e){this.options[po]=this.options[ho]=e}get custom(){return this.options}set custom(e){this.options=e}get image(){return this.options[mo]??this.options[yo]}set image(e){this.options[yo]=this.options[mo]=e}get images(){return this.image}set images(e){this.image=e}get polygon(){return this.options[go]??this.options[vo]}set polygon(e){this.options[vo]=this.options[go]=e}get stroke(){return[]}set stroke(e){}load(e){if(!e)return;const n=e.options??e.custom;if(n!==void 0)for(const i in n){const r=n[i];r&&(this.options[i]=pe(this.options[i]??{},r))}this.loadShape(e.character,ho,po,!0),this.loadShape(e.polygon,go,vo,!1),this.loadShape(e.image??e.images,mo,yo,!0),e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}class nv extends Qd{constructor(){super(),this.destroy="none",this.speed=5}get size_min(){return this.minimumValue}set size_min(e){this.minimumValue=e}load(e){(e==null?void 0:e.size_min)!==void 0&&e.minimumValue===void 0&&(e.minimumValue=e.size_min),super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class iv extends Qt{constructor(){super(),this.animation=new nv,this.random.minimumValue=1,this.value=3}get anim(){return this.animation}set anim(e){this.animation=e}load(e){if(super.load(e),!e)return;const n=e.animation??e.anim;n!==void 0&&(this.animation.load(n),this.value=O(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class Ku{constructor(){this.width=0}load(e){e&&(e.color!==void 0&&(this.color=Hi.create(this.color,e.color)),e.width!==void 0&&(this.width=O(e.width)),e.opacity!==void 0&&(this.opacity=O(e.opacity)))}}class rv extends Qt{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),e&&(e.opacityRate!==void 0&&(this.opacityRate=e.opacityRate),e.sizeRate!==void 0&&(this.sizeRate=e.sizeRate),e.velocityRate!==void 0&&(this.velocityRate=e.velocityRate))}}class sv{constructor(e,n){this._engine=e,this._container=n,this.bounce=new Gd,this.collisions=new Ag,this.color=new Hi,this.color.value="#fff",this.groups={},this.move=new Yg,this.number=new Zg,this.opacity=new Xg,this.reduceDuplicates=!1,this.shadow=new ev,this.shape=new tv,this.size=new iv,this.stroke=new Ku,this.zIndex=new rv}load(e){var r,s,o;if(!e)return;if(this.bounce.load(e.bounce),this.color.load(Hi.create(this.color,e.color)),e.groups!==void 0)for(const l in e.groups){const a=e.groups[l];a!==void 0&&(this.groups[l]=pe(this.groups[l]??{},a))}this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),e.reduceDuplicates!==void 0&&(this.reduceDuplicates=e.reduceDuplicates),this.shape.load(e.shape),this.size.load(e.size),this.shadow.load(e.shadow),this.zIndex.load(e.zIndex);const n=((r=e.move)==null?void 0:r.collisions)??((s=e.move)==null?void 0:s.bounce);n!==void 0&&(this.collisions.enable=n),this.collisions.load(e.collisions),e.interactivity!==void 0&&(this.interactivity=pe({},e.interactivity));const i=e.stroke??((o=e.shape)==null?void 0:o.stroke);if(i&&(this.stroke=oe(i,l=>{const a=new Ku;return a.load(l),a})),this._container){const l=this._engine.plugins.updaters.get(this._container);if(l)for(const u of l)u.loadOptions&&u.loadOptions(this,e);const a=this._engine.plugins.interactors.get(this._container);if(a)for(const u of a)u.loadParticlesOptions&&u.loadParticlesOptions(this,e)}}}function Yd(t,...e){for(const n of e)t.load(n)}function Kd(t,e,...n){const i=new sv(t,e);return Yd(i,...n),i}class ov{constructor(e,n){this._findDefaultTheme=i=>this.themes.find(r=>r.default.value&&r.default.mode===i)??this.themes.find(r=>r.default.value&&r.default.mode==="any"),this._importPreset=i=>{this.load(this._engine.plugins.getPreset(i))},this._engine=e,this._container=n,this.autoPlay=!0,this.background=new xg,this.backgroundMask=new _g,this.defaultThemes={},this.delay=0,this.fullScreen=new Sg,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new qd(e,n),this.manualParticles=[],this.particles=Kd(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}get backgroundMode(){return this.fullScreen}set backgroundMode(e){this.fullScreen.load(e)}get fps_limit(){return this.fpsLimit}set fps_limit(e){this.fpsLimit=e}get retina_detect(){return this.detectRetina}set retina_detect(e){this.detectRetina=e}load(e){var o,l;if(!e)return;e.preset!==void 0&&oe(e.preset,a=>this._importPreset(a)),e.autoPlay!==void 0&&(this.autoPlay=e.autoPlay),e.delay!==void 0&&(this.delay=O(e.delay));const n=e.detectRetina??e.retina_detect;n!==void 0&&(this.detectRetina=n),e.duration!==void 0&&(this.duration=O(e.duration));const i=e.fpsLimit??e.fps_limit;i!==void 0&&(this.fpsLimit=i),e.pauseOnBlur!==void 0&&(this.pauseOnBlur=e.pauseOnBlur),e.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),e.zLayers!==void 0&&(this.zLayers=e.zLayers),this.background.load(e.background);const r=e.fullScreen??e.backgroundMode;Ut(r)?this.fullScreen.enable=r:this.fullScreen.load(r),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map(a=>{const u=new Tg;return u.load(a),u})),this.particles.load(e.particles),this.style=pe(this.style,e.style),this._engine.plugins.loadOptions(this,e),e.smooth!==void 0&&(this.smooth=e.smooth);const s=this._engine.plugins.interactors.get(this._container);if(s)for(const a of s)a.loadOptions&&a.loadOptions(this,e);if(e.responsive!==void 0)for(const a of e.responsive){const u=new Rg;u.load(a),this.responsive.push(u)}if(this.responsive.sort((a,u)=>a.maxWidth-u.maxWidth),e.themes!==void 0)for(const a of e.themes){const u=this.themes.find(c=>c.name===a.name);if(u)u.load(a);else{const c=new Lg;c.load(a),this.themes.push(c)}}this.defaultThemes.dark=(o=this._findDefaultTheme("dark"))==null?void 0:o.name,this.defaultThemes.light=(l=this._findDefaultTheme("light"))==null?void 0:l.name}setResponsive(e,n,i){this.load(i);const r=this.responsive.find(s=>s.mode==="screen"&&screen?s.maxWidth>screen.availWidth:s.maxWidth*n>e);return this.load(r==null?void 0:r.options),r==null?void 0:r.maxWidth}setTheme(e){if(e){const n=this.themes.find(i=>i.name===e);n&&this.load(n.options)}else{const n=Id("(prefers-color-scheme: dark)"),i=n&&n.matches,r=this._findDefaultTheme(i?"dark":"light");r&&this.load(r.options)}}}class lv{constructor(e,n){this.container=n,this._engine=e,this._interactors=e.plugins.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[]}async externalInteract(e){for(const n of this._externalInteractors)n.isEnabled()&&await n.interact(e)}handleClickMode(e){for(const n of this._externalInteractors)n.handleClickMode&&n.handleClickMode(e)}init(){this._externalInteractors=[],this._particleInteractors=[];for(const e of this._interactors){switch(e.type){case"external":this._externalInteractors.push(e);break;case"particles":this._particleInteractors.push(e);break}e.init()}}async particlesInteract(e,n){for(const i of this._externalInteractors)i.clear(e,n);for(const i of this._particleInteractors)i.isEnabled(e)&&await i.interact(e,n)}async reset(e){for(const n of this._externalInteractors)n.isEnabled()&&n.reset(e);for(const n of this._particleInteractors)n.isEnabled(e)&&n.reset(e)}}const Xu=t=>{if(!X(t.outMode,t.checkModes))return;const e=t.radius*2;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord{for(const[,h]of l.plugins){const m=h.particlePosition!==void 0?h.particlePosition(a,this):void 0;if(m)return Me.create(m.x,m.y,u)}const f=l.canvas.size,d=Gy({size:f,position:a}),y=Me.create(d.x,d.y,u),v=this.getRadius(),g=this.options.move.outModes,x=h=>{Xu({outMode:h,checkModes:["bounce","bounce-horizontal"],coord:y.x,maxCoord:l.canvas.size.width,setCb:m=>y.x+=m,radius:v})},p=h=>{Xu({outMode:h,checkModes:["bounce","bounce-vertical"],coord:y.y,maxCoord:l.canvas.size.height,setCb:m=>y.y+=m,radius:v})};return x(g.left??g.default),x(g.right??g.default),p(g.top??g.default),p(g.bottom??g.default),this._checkOverlap(y,c)?this._calcPosition(l,void 0,u,c+1):y},this._calculateVelocity=()=>{const l=Qy(this.direction),a=l.copy(),u=this.options.move;if(u.direction==="inside"||u.direction==="outside")return a;const c=Math.PI/180*T(u.angle.value),f=Math.PI/180*T(u.angle.offset),d={left:f-c/2,right:f+c/2};return u.straight||(a.angle+=Pe(O(d.left,d.right))),u.random&&typeof u.speed=="number"&&(a.length*=$()),a},this._checkOverlap=(l,a=0)=>{const u=this.options.collisions,c=this.getRadius();if(!u.enable)return!1;const f=u.overlap;if(f.enable)return!1;const d=f.retries;if(d>=0&&a>d)throw new Error(`${qe} particle is overlapping and can't be placed`);return!!this.container.particles.find(y=>Le(l,y.position){if(!l||!this.roll||!this.backColor&&!this.roll.alter)return l;const a=this.roll.horizontal&&this.roll.vertical?2:1,u=this.roll.horizontal?Math.PI/2:0;return Math.floor(((this.roll.angle??0)+u)/(Math.PI/a))%2?this.backColor?this.backColor:this.roll.alter?yg(l,this.roll.alter.type,this.roll.alter.value):l:l},this._initPosition=l=>{const a=this.container,u=T(this.options.zIndex.value);this.position=this._calcPosition(a,l,it(u,0,a.zLayers)),this.initialPosition=this.position.copy();const c=a.canvas.size;switch(this.moveCenter={...Ad(this.options.move.center,c),radius:this.options.move.center.radius??0,mode:this.options.move.center.mode??"percent"},this.direction=qy(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case"inside":this.outType="inside";break;case"outside":this.outType="outside";break}this.offset=se.origin},this._loadShapeData=(l,a)=>{const u=l.options[this.shape];if(u)return pe({close:l.close,fill:l.fill},yt(u,this.id,a))},this._engine=e,this.init(n,r,s,o)}destroy(e){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const n=this.container,i=this.pathGenerator;for(const[,r]of n.plugins)r.particleDestroyed&&r.particleDestroyed(this,e);for(const r of n.particles.updaters)r.particleDestroyed&&r.particleDestroyed(this,e);i&&i.reset(this)}draw(e){const n=this.container;for(const[,i]of n.plugins)n.canvas.drawParticlePlugin(i,this,e);n.canvas.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??Qu(this.color))}getMass(){return this.getRadius()**2*Math.PI/2}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??Qu(this.strokeColor))}init(e,n,i,r){const s=this.container,o=this._engine;this.id=e,this.group=r,this.fill=!0,this.pathRotation=!1,this.close=!0,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType="normal",this.ignoresResizeRatio=!0;const l=s.retina.pixelRatio,a=s.actualOptions,u=Kd(this._engine,s,a.particles),c=u.shape.type,{reduceDuplicates:f}=u;this.shape=yt(c,this.id,f);const d=u.shape;if(i&&i.shape&&i.shape.type){const m=i.shape.type,w=yt(m,this.id,f);w&&(this.shape=w,d.load(i.shape))}this.shapeData=this._loadShapeData(d,f),u.load(i);const y=this.shapeData;y&&u.load(y.particles);const v=new qd(o,s);v.load(s.actualOptions.interactivity),v.load(u.interactivity),this.interactivity=v,this.fill=(y==null?void 0:y.fill)??u.shape.fill,this.close=(y==null?void 0:y.close)??u.shape.close,this.options=u;const g=this.options.move.path;this.pathDelay=dn(g.delay)*1e3,g.generator&&(this.pathGenerator=this._engine.plugins.getPathGenerator(g.generator),this.pathGenerator&&s.addPath(g.generator,this.pathGenerator)&&this.pathGenerator.init(s)),s.retina.initParticle(this),this.size=jd(this.options.size,l),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(n),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-T(this.options.move.decay);const x=s.particles;x.needsSort=x.needsSort||x.lastZIndex=-e&&i.y>=-e&&i.y<=n.height+e&&i.x<=n.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const e of this.container.particles.updaters)e.reset&&e.reset(this)}}class uv{constructor(e,n){this.position=e,this.particle=n}}class Xd{constructor(e,n){this.position={x:e,y:n}}}class rt extends Xd{constructor(e,n,i,r){super(e,n),this.size={height:r,width:i}}contains(e){const n=this.size.width,i=this.size.height,r=this.position;return e.x>=r.x&&e.x<=r.x+n&&e.y>=r.y&&e.y<=r.y+i}intersects(e){e instanceof me&&e.intersects(this);const n=this.size.width,i=this.size.height,r=this.position,s=e.position,o=e instanceof rt?e.size:{width:0,height:0},l=o.width,a=o.height;return s.xr.x&&s.yr.y}}class me extends Xd{constructor(e,n,i){super(e,n),this.radius=i}contains(e){return Le(e,this.position)<=this.radius}intersects(e){const n=this.position,i=e.position,r={x:Math.abs(i.x-n.x),y:Math.abs(i.y-n.y)},s=this.radius;if(e instanceof me){const o=s+e.radius,l=Math.sqrt(r.x**2+r.y**2);return o>l}else if(e instanceof rt){const{width:o,height:l}=e.size;return Math.pow(r.x-o,2)+Math.pow(r.y-l,2)<=s**2||r.x<=s+o&&r.y<=s+l||r.x<=o||r.y<=l}return!1}}class ss{constructor(e,n){this.rectangle=e,this.capacity=n,this._subdivide=()=>{const{x:i,y:r}=this.rectangle.position,{width:s,height:o}=this.rectangle.size,{capacity:l}=this;for(let a=0;a<4;a++)this._subs.push(new ss(new rt(i+s/2*(a%2),r+o/2*(Math.round(a/2)-a%2),s/2,o/2),l));this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(e){return this.rectangle.contains(e.position)?this._points.lengthn.insert(e))):!1}query(e,n,i){const r=i||[];if(!e.intersects(this.rectangle))return[];for(const s of this._points)!e.contains(s.position)&&Le(e.position,s.position)>s.particle.getRadius()&&(!n||n(s.particle))||r.push(s.particle);if(this._divided)for(const s of this._subs)s.query(e,n,r);return r}queryCircle(e,n,i){return this.query(new me(e.x,e.y,n),i)}queryRectangle(e,n,i){return this.query(new rt(e.x,e.y,n.width,n.height),i)}}const Ju=4,Zu=t=>new rt(-t.width/4,-t.height/4,t.width*3/2,t.height*3/2);let cv=class{constructor(e,n){this._applyDensity=(r,s,o)=>{var y;if(!((y=r.number.density)!=null&&y.enable))return;const l=r.number,a=this._initDensityFactor(l.density),u=l.value,c=l.limit>0?l.limit:u,f=Math.min(u,c)*a+s,d=Math.min(this.count,this.filter(v=>v.group===o).length);this.limit=l.limit*a,df&&this.removeQuantity(d-f,o)},this._initDensityFactor=r=>{const s=this._container;if(!s.canvas.element||!r.enable)return 1;const o=s.canvas.element,l=s.retina.pixelRatio;return o.width*o.height/(r.factor*l**2*r.area)},this._pushParticle=(r,s,o,l)=>{try{let a=this.pool.pop();a?a.init(this._nextId,r,s,o):a=new av(this._engine,this._nextId,this._container,r,s,o);let u=!0;return l&&(u=l(a)),u?(this._array.push(a),this._zArray.push(a),this._nextId++,this._engine.dispatchEvent("particleAdded",{container:this._container,data:{particle:a}}),a):void 0}catch(a){hn().warning(`${qe} adding particle: ${a}`);return}},this._removeParticle=(r,s,o)=>{const l=this._array[r];if(!l||l.group!==s)return!1;l.destroy(o);const a=this._zArray.indexOf(l);return this._array.splice(r,1),this._zArray.splice(a,1),this.pool.push(l),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:l}}),!0},this._engine=e,this._container=n,this._nextId=0,this._array=[],this._zArray=[],this.pool=[],this.limit=0,this.needsSort=!1,this.lastZIndex=0,this._interactionManager=new lv(e,n);const i=n.canvas.size;this.quadTree=new ss(Zu(i),Ju),this.movers=this._engine.plugins.getMovers(n,!0),this.updaters=this._engine.plugins.getUpdaters(n,!0)}get count(){return this._array.length}addManualParticles(){const e=this._container,n=e.actualOptions;for(const i of n.manualParticles)this.addParticle(i.position?Ad(i.position,e.canvas.size):void 0,i.options)}addParticle(e,n,i,r){const s=this._container,o=s.actualOptions,l=o.particles.number.limit;if(l>0){const a=this.count+1-l;a>0&&this.removeQuantity(a)}return this._pushParticle(e,n,i,r)}clear(){this._array=[],this._zArray=[]}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}async draw(e){const n=this._container;n.canvas.clear(),await this.update(e);for(const[,i]of n.plugins)n.canvas.drawPlugin(i,e);for(const i of this._zArray)i.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}handleClickMode(e){this._interactionManager.handleClickMode(e)}init(){var r;const e=this._container,n=e.actualOptions;this.lastZIndex=0,this.needsSort=!1;let i=!1;this.updaters=this._engine.plugins.getUpdaters(e,!0),this._interactionManager.init();for(const[,s]of e.plugins)if(s.particlesInitialization!==void 0&&(i=s.particlesInitialization()),i)break;this._interactionManager.init();for(const[,s]of e.pathGenerators)s.init(e);if(this.addManualParticles(),!i){for(const s in n.particles.groups){const o=n.particles.groups[s];for(let l=this.count,a=0;a<((r=o.number)==null?void 0:r.value)&&lthis.count)return;let s=0;for(let o=e;s!i.has(s);this._array=this.filter(r),this._zArray=this._zArray.filter(r),this.pool.push(...i)}await this._interactionManager.externalInteract(e);for(const r of this._array){for(const s of this.updaters)s.update(r,e);!r.destroyed&&!r.spawning&&await this._interactionManager.particlesInteract(r,e)}if(delete n.canvas.resizeFactor,this.needsSort){const r=this._zArray;r.sort((s,o)=>o.position.z-s.position.z||s.id-o.id),this.lastZIndex=r[r.length-1].position.z,this.needsSort=!1}}};class fv{constructor(e){this.container=e,this.pixelRatio=1,this.reduceFactor=1}init(){const e=this.container,n=e.actualOptions;this.pixelRatio=!n.detectRetina||Qn()?1:window.devicePixelRatio,this.reduceFactor=1;const i=this.pixelRatio;if(e.canvas.element){const o=e.canvas.element;e.canvas.size.width=o.offsetWidth*i,e.canvas.size.height=o.offsetHeight*i}const r=n.particles,s=r.move;this.attractDistance=T(s.attract.distance)*i,this.maxSpeed=T(s.gravity.maxSpeed)*i,this.sizeAnimationSpeed=T(r.size.animation.speed)*i}initParticle(e){const n=e.options,i=this.pixelRatio,r=n.move,s=r.distance,o=e.retina;o.attractDistance=T(r.attract.distance)*i,o.moveDrift=T(r.drift)*i,o.moveSpeed=T(r.speed)*i,o.sizeAnimationSpeed=T(n.size.animation.speed)*i;const l=o.maxDistance;l.horizontal=s.horizontal!==void 0?s.horizontal*i:void 0,l.vertical=s.vertical!==void 0?s.vertical*i:void 0,o.maxSpeed=T(r.gravity.maxSpeed)*i}}function W(t){return t&&!t.destroyed}function dv(t,e=60,n=!1){return{value:t,factor:n?60/e:60*t/1e3}}function wn(t,e,...n){const i=new ov(t,e);return Yd(i,...n),i}const hv="default",ec={generate:t=>t.velocity,init:()=>{},update:()=>{},reset:()=>{}};class pv{constructor(e,n,i){this.id=n,this._intersectionManager=r=>{if(!(!W(this)||!this.actualOptions.pauseOnOutsideViewport))for(const s of r)s.target===this.interactivity.element&&(s.isIntersecting?this.play:this.pause)()},this._nextFrame=async r=>{try{if(!this.smooth&&this.lastFrameTime!==void 0&&r1e3){this.draw(!1);return}if(await this.particles.draw(s),!this.alive()){this.destroy();return}this.getAnimationStatus()&&this.draw(!1)}catch(s){hn().error(`${qe} in animation loop`,s)}},this._engine=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._sourceOptions=i,this._initialSourceOptions=i,this.retina=new fv(this),this.canvas=new vg(this),this.particles=new cv(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.drawers=new Map,this._options=wn(this._engine,this),this.actualOptions=wn(this._engine,this),this._eventListeners=new wg(this),typeof IntersectionObserver<"u"&&IntersectionObserver&&(this._intersectionObserver=new IntersectionObserver(r=>this._intersectionManager(r))),this._engine.dispatchEvent("containerBuilt",{container:this})}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!W(this))return;const n=this.interactivity.element;if(!n)return;const i=(f,d,y)=>{if(!W(this))return;const v=this.retina.pixelRatio,g={x:d.x*v,y:d.y*v},x=this.particles.quadTree.queryCircle(g,y*v);e(f,x)},r=f=>{if(!W(this))return;const d=f,y={x:d.offsetX||d.clientX,y:d.offsetY||d.clientY};i(f,y,1)},s=()=>{W(this)&&(u=!0,c=!1)},o=()=>{W(this)&&(c=!0)},l=f=>{if(W(this)){if(u&&!c){const d=f;let y=d.touches[d.touches.length-1];if(!y&&(y=d.changedTouches[d.changedTouches.length-1],!y))return;const v=this.canvas.element,g=v?v.getBoundingClientRect():void 0,x={x:y.clientX-(g?g.left:0),y:y.clientY-(g?g.top:0)};i(f,x,Math.max(y.radiusX,y.radiusY))}u=!1,c=!1}},a=()=>{W(this)&&(u=!1,c=!1)};let u=!1,c=!1;n.addEventListener("click",r),n.addEventListener("touchstart",s),n.addEventListener("touchmove",o),n.addEventListener("touchend",l),n.addEventListener("touchcancel",a)}addLifeTime(e){this._lifeTime+=e}addPath(e,n,i=!1){return!W(this)||!i&&this.pathGenerators.has(e)?!1:(this.pathGenerators.set(e,n??ec),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){if(!W(this))return;this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,i]of this.drawers)i.destroy&&i.destroy(this);for(const i of this.drawers.keys())this.drawers.delete(i);this._engine.plugins.destroy(this),this.destroyed=!0;const e=this._engine.dom(),n=e.findIndex(i=>i===this);n>=0&&e.splice(n,1),this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(e){if(!W(this))return;let n=e;this._drawAnimationFrame=requestAnimationFrame(async i=>{n&&(this.lastFrameTime=void 0,n=!1),await this._nextFrame(i)})}async export(e,n={}){for(const[,i]of this.plugins){if(!i.export)continue;const r=await i.export(e,n);if(r.supported)return r.blob}hn().error(`${qe} - Export plugin with type ${e} not found`)}getAnimationStatus(){return!this._paused&&!this.pageHidden&&W(this)}handleClickMode(e){if(W(this)){this.particles.handleClickMode(e);for(const[,n]of this.plugins)n.handleClickMode&&n.handleClickMode(e)}}async init(){if(!W(this))return;const e=this._engine.plugins.getSupportedShapes();for(const i of e){const r=this._engine.plugins.getShapeDrawer(i);r&&this.drawers.set(i,r)}this._options=wn(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=wn(this._engine,this,this._options);const n=this._engine.plugins.getAvailablePlugins(this);for(const[i,r]of n)this.plugins.set(i,r);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=T(this.actualOptions.duration)*1e3,this._delay=T(this.actualOptions.delay)*1e3,this._lifeTime=0,this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120,this.smooth=this.actualOptions.smooth;for(const[,i]of this.drawers)i.init&&await i.init(this);for(const[,i]of this.plugins)i.init&&await i.init();this._engine.dispatchEvent("containerInit",{container:this}),this.particles.init(),this.particles.setDensity();for(const[,i]of this.plugins)i.particlesSetup&&i.particlesSetup();this._engine.dispatchEvent("particlesSetup",{container:this})}async loadTheme(e){W(this)&&(this._currentTheme=e,await this.refresh())}pause(){if(W(this)&&(this._drawAnimationFrame!==void 0&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const[,e]of this.plugins)e.pause&&e.pause();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(e){if(!W(this))return;const n=this._paused||e;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),n)for(const[,i]of this.plugins)i.play&&i.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(n||!1)}async refresh(){if(W(this))return this.stop(),this.start()}async reset(){if(W(this))return this._initialSourceOptions=void 0,this._options=wn(this._engine,this),this.actualOptions=wn(this._engine,this,this._options),this.refresh()}setNoise(e,n,i){W(this)&&this.setPath(e,n,i)}setPath(e,n,i){if(!e||!W(this))return;const r={...ec};if(Bd(e))r.generate=e,n&&(r.init=n),i&&(r.update=i);else{const s=r;r.generate=e.generate||s.generate,r.init=e.init||s.init,r.update=e.update||s.update}this.addPath(hv,r,!0)}async start(){!W(this)||this.started||(await this.init(),this.started=!0,await new Promise(e=>{this._delayTimeout=setTimeout(async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const[,n]of this.plugins)n.start&&await n.start();this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),e()},this._delay)}))}stop(){if(!(!W(this)||!this.started)){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);for(const[,e]of this.plugins)e.stop&&e.stop();for(const e of this.plugins.keys())this.plugins.delete(e);this._sourceOptions=this._options,this._engine.dispatchEvent("containerStopped",{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this.responsiveMaxWidth===e?!1:(this.responsiveMaxWidth=e,!0)}}class mv{constructor(){this._listeners=new Map}addEventListener(e,n){this.removeEventListener(e,n);let i=this._listeners.get(e);i||(i=[],this._listeners.set(e,i)),i.push(n)}dispatchEvent(e,n){const i=this._listeners.get(e);i&&i.forEach(r=>r(n))}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,n){const i=this._listeners.get(e);if(!i)return;const r=i.length,s=i.indexOf(n);s<0||(r===1?this._listeners.delete(e):i.splice(s,1))}}function wo(t,e,n,i=!1){let r=e.get(t);return(!r||i)&&(r=[...n.values()].map(s=>s(t)),e.set(t,r)),r}class yv{constructor(e){this._engine=e,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.drawers=new Map,this.pathGenerators=new Map}addInteractor(e,n){this._initializers.interactors.set(e,n)}addParticleMover(e,n){this._initializers.movers.set(e,n)}addParticleUpdater(e,n){this._initializers.updaters.set(e,n)}addPathGenerator(e,n){!this.getPathGenerator(e)&&this.pathGenerators.set(e,n)}addPlugin(e){!this.getPlugin(e.id)&&this.plugins.push(e)}addPreset(e,n,i=!1){(i||!this.getPreset(e))&&this.presets.set(e,n)}addShapeDrawer(e,n){oe(e,i=>{!this.getShapeDrawer(i)&&this.drawers.set(i,n)})}destroy(e){this.updaters.delete(e),this.movers.delete(e),this.interactors.delete(e)}getAvailablePlugins(e){const n=new Map;for(const i of this.plugins)i.needsPlugin(e.actualOptions)&&n.set(i.id,i.getPlugin(e));return n}getInteractors(e,n=!1){return wo(e,this.interactors,this._initializers.interactors,n)}getMovers(e,n=!1){return wo(e,this.movers,this._initializers.movers,n)}getPathGenerator(e){return this.pathGenerators.get(e)}getPlugin(e){return this.plugins.find(n=>n.id===e)}getPreset(e){return this.presets.get(e)}getShapeDrawer(e){return this.drawers.get(e)}getSupportedShapes(){return this.drawers.keys()}getUpdaters(e,n=!1){return wo(e,this.updaters,this._initializers.updaters,n)}loadOptions(e,n){for(const i of this.plugins)i.loadOptions(e,n)}loadParticlesOptions(e,n,...i){const r=this.updaters.get(e);if(r)for(const s of r)s.loadOptions&&s.loadOptions(n,...i)}}async function gv(t){const e=yt(t.url,t.index);if(!e)return t.fallback;const n=await fetch(e);return n.ok?n.json():(hn().error(`${qe} ${n.status} while retrieving config file`),t.fallback)}function vv(t){return!t.id&&!t.element&&!t.url&&!t.options}function wv(t){return!vv(t)}class xv{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new mv,this._initialized=!1,this.plugins=new yv(this)}get configs(){const e={};for(const[n,i]of this._configs)e[n]=i;return e}get version(){return"2.12.0"}addConfig(e,n){Ze(e)?n&&(n.name=e,this._configs.set(e,n)):this._configs.set(e.name??"default",e)}addEventListener(e,n){this._eventDispatcher.addEventListener(e,n)}async addInteractor(e,n,i=!0){this.plugins.addInteractor(e,n),await this.refresh(i)}async addMover(e,n,i=!0){this.plugins.addParticleMover(e,n),await this.refresh(i)}async addParticleUpdater(e,n,i=!0){this.plugins.addParticleUpdater(e,n),await this.refresh(i)}async addPathGenerator(e,n,i=!0){this.plugins.addPathGenerator(e,n),await this.refresh(i)}async addPlugin(e,n=!0){this.plugins.addPlugin(e),await this.refresh(n)}async addPreset(e,n,i=!1,r=!0){this.plugins.addPreset(e,n,i),await this.refresh(r)}async addShape(e,n,i,r,s,o=!0){let l,a=o,u,c,f;Ut(i)?(a=i,u=void 0):u=i,Ut(r)?(a=r,c=void 0):c=r,Ut(s)?(a=s,f=void 0):f=s,Bd(n)?l={afterEffect:c,destroy:f,draw:n,init:u}:l=n,this.plugins.addShapeDrawer(e,l),await this.refresh(a)}dispatchEvent(e,n){this._eventDispatcher.dispatchEvent(e,n)}dom(){return this._domArray}domItem(e){const n=this.dom(),i=n[e];if(!i||i.destroyed){n.splice(e,1);return}return i}init(){this._initialized||(this._initialized=!0)}async load(e,n){return this.loadFromArray(e,n)}async loadFromArray(e,n,i){let r;return wv(e)?r=e:(r={},Ze(e)?r.id=e:r.options=e,et(n)?r.index=n:r.options=n??r.options,r.index=i??r.index),this._loadParams(r)}async loadJSON(e,n,i){let r,s;return et(n)||n===void 0?r=e:(s=e,r=n),this._loadParams({id:s,url:r,index:i})}async refresh(e=!0){e&&this.dom().forEach(n=>n.refresh())}removeEventListener(e,n){this._eventDispatcher.removeEventListener(e,n)}async set(e,n,i,r){const s={index:r};return Ze(e)?s.id=e:s.element=e,n instanceof HTMLElement?s.element=n:s.options=n,et(i)?s.index=i:s.options=i??s.options,this._loadParams(s)}async setJSON(e,n,i,r){const s={};return e instanceof HTMLElement?(s.element=e,s.url=n,s.index=i):(s.id=e,s.element=n,s.url=i,s.index=r),this._loadParams(s)}setOnClickHandler(e){const n=this.dom();if(!n.length)throw new Error(`${qe} can only set click handlers after calling tsParticles.load()`);for(const i of n)i.addClickHandler(e)}async _loadParams(e){const n=e.id??`tsparticles${Math.floor($()*1e4)}`,{index:i,url:r}=e,s=r?await gv({fallback:e.options,url:r,index:i}):e.options;let o=e.element??document.getElementById(n);o||(o=document.createElement("div"),o.id=n,document.body.append(o));const l=yt(s,i),a=this.dom(),u=a.findIndex(d=>d.id===n);if(u>=0){const d=this.domItem(u);d&&!d.destroyed&&(d.destroy(),a.splice(u,1))}let c;if(o.tagName.toLowerCase()==="canvas")c=o,c.dataset[xi]="false";else{const d=o.getElementsByTagName("canvas");d.length?(c=d[0],c.dataset[xi]="false"):(c=document.createElement("canvas"),c.dataset[xi]="true",o.appendChild(c))}c.style.width||(c.style.width="100%"),c.style.height||(c.style.height="100%");const f=new pv(this,n,l);return u>=0?a.splice(u,0,f):a.push(f),f.canvas.loadCanvas(c),await f.start(),f}}class kv{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(e){const n=e.value,i=n.hsl??e.value;if(i.h!==void 0&&i.s!==void 0&&i.l!==void 0)return Gn(i)}handleRangeColor(e){const n=e.value,i=n.hsl??e.value;if(i.h!==void 0&&i.l!==void 0)return Gn({h:T(i.h),l:T(i.l),s:T(i.s)})}parseString(e){if(!e.startsWith("hsl"))return;const n=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i,i=n.exec(e);return i?lg({a:i.length>4?Ld(i[5]):1,h:parseInt(i[1],10),l:parseInt(i[3],10),s:parseInt(i[2],10)}):void 0}}class _v{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(e){const n=e.value,i=n.rgb??e.value;if(i.r!==void 0)return i}handleRangeColor(e){const n=e.value,i=n.rgb??e.value;if(i.r!==void 0)return{r:T(i.r),g:T(i.g),b:T(i.b)}}parseString(e){if(!e.startsWith(this.stringPrefix))return;const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i,i=n.exec(e);return i?{a:i.length>4?Ld(i[5]):1,b:parseInt(i[3],10),g:parseInt(i[2],10),r:parseInt(i[1],10)}:void 0}}function Sv(){const t=new _v,e=new kv;qu(t),qu(e);const n=new xv;return n.init(),n}class ct{constructor(e){this.container=e,this.type="external"}}class Ca{constructor(e){this.container=e,this.type="particles"}}const os=Sv();Qn()||(window.tsParticles=os);const Ln=t=>typeof t=="object"&&t!==null;function ls(t,e,n=()=>!1){if(!Ln(t)||!Ln(e))return t===e;const i=Object.keys(t).filter(s=>!n(s)),r=Object.keys(e).filter(s=>!n(s));if(i.length!==r.length)return!1;for(const s of i){const o=t[s],l=e[s];if(Ln(o)&&Ln(l)){if(o===e&&l===t)continue;if(!ls(o,l,n))return!1}else if(Array.isArray(o)&&Array.isArray(l)){if(!Jd(o,l,n))return!1}else if(o!==l)return!1}return!0}function Jd(t,e,n){if(t.length!==e.length)return!1;for(let i=0;ir.startsWith("_"))}componentDidUpdate(){this.refresh()}forceUpdate(){this.refresh().then(()=>{super.forceUpdate()})}componentDidMount(){(async()=>(this.props.init&&await this.props.init(os),this.setState({init:!0},async()=>{await this.loadParticles()})))()}componentWillUnmount(){this.destroy()}render(){const{width:e,height:n,className:i,canvasClassName:r,id:s}=this.props;return So.createElement("div",{className:i,id:s},So.createElement("canvas",{className:r,style:{...this.props.style,width:e,height:n}}))}async refresh(){this.destroy(),await this.loadParticles()}async loadParticles(){if(!this.state.init)return;const e=this.props.id??th.defaultProps.id??Zd,n=await os.load({url:this.props.url,id:e,options:this.props.options??this.props.params});this.props.container&&(this.props.container.current=n),this.setState({library:n}),this.props.loaded&&await this.props.loaded(n)}};eh.defaultProps={width:"100%",height:"100%",options:{},style:{},url:void 0,id:Zd};class as{static init(e){var s;const n=new as,i=e.selector;if(!i)throw new Error("No selector provided");const r=document.querySelector(i);if(!r)throw new Error("No element found for selector");return os.set(i.replace(".","").replace("!",""),r,{fullScreen:{enable:!1},particles:{color:{value:e.color??"!000000"},links:{color:"random",distance:e.minDistance??120,enable:e.connectParticles??!1},move:{enable:!0,speed:e.speed??.5},number:{value:e.maxParticles??100},size:{value:{min:1,max:e.sizeVariations??3}}},responsive:(s=e.responsive)==null?void 0:s.map(o=>{var l,a,u,c,f;return{maxWidth:o.breakpoint,options:{particles:{color:{value:(l=o.options)==null?void 0:l.color},links:{distance:(a=o.options)==null?void 0:a.minDistance,enable:(u=o.options)==null?void 0:u.connectParticles},number:{value:e.maxParticles},move:{enable:!0,speed:(c=o.options)==null?void 0:c.speed},size:{value:(f=o.options)==null?void 0:f.sizeVariations}}}}})}).then(o=>{n._container=o}),n}destroy(){const e=this._container;e&&e.destroy()}pauseAnimation(){const e=this._container;e&&e.pause()}resumeAnimation(){const e=this._container;e&&e.play()}}const Cv=t=>{const e=(i,r)=>t.load(i,r);e.load=(i,r,s)=>{t.loadJSON(i,r).then(o=>{o&&s(o)}).catch(()=>{s(void 0)})},e.setOnClickHandler=i=>{t.setOnClickHandler(i)};const n=t.dom();return{particlesJS:e,pJSDom:n}},Pv=t=>{const{particlesJS:e,pJSDom:n}=Cv(t);return window.particlesJS=e,window.pJSDom=n,window.Particles=as,{particlesJS:e,pJSDom:n,Particles:as}};function Ev(t){const e=t.initialPosition,{dx:n,dy:i}=xe(e,t.position),r=Math.abs(n),s=Math.abs(i),{maxDistance:o}=t.retina,l=o.horizontal,a=o.vertical;if(!(!l&&!a)){if((l&&r>=l||a&&s>=a)&&!t.misplaced)t.misplaced=!!l&&r>l||!!a&&s>a,l&&(t.velocity.x=t.velocity.y/2-t.velocity.x),a&&(t.velocity.y=t.velocity.x/2-t.velocity.y);else if((!l||re.x&&c.x>0)&&(c.x*=-$()),a&&(u.ye.y&&c.y>0)&&(c.y*=-$())}}}function bv(t,e,n,i,r,s){Mv(t,s);const o=t.gravity,l=o!=null&&o.enable&&o.inverse?-1:1;r&&n&&(t.velocity.x+=r*s.factor/(60*n)),o!=null&&o.enable&&n&&(t.velocity.y+=l*(o.acceleration*s.factor)/(60*n));const a=t.moveDecay;t.velocity.multTo(a);const u=t.velocity.mult(n);o!=null&&o.enable&&i>0&&(!o.inverse&&u.y>=0&&u.y>=i||o.inverse&&u.y<=0&&u.y<=-i)&&(u.y=l*i,n&&(t.velocity.y=u.y/n));const c=t.options.zIndex,f=(1-t.zIndexFactor)**c.velocityRate;u.multTo(f);const{position:d}=t;d.addTo(u),e.vibrate&&(d.x+=Math.sin(d.x*Math.cos(d.y)),d.y+=Math.cos(d.y*Math.sin(d.x)))}function zv(t,e){const n=t.container;if(!t.spin)return;const i={x:t.spin.direction==="clockwise"?Math.cos:Math.sin,y:t.spin.direction==="clockwise"?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*i.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*i.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;const r=Math.max(n.canvas.size.width,n.canvas.size.height);t.spin.radius>r/2?(t.spin.radius=r/2,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=e/100*(1-t.spin.radius/r)}function Mv(t,e){var o;const n=t.options,i=n.move.path;if(!i.enable)return;if(t.lastPathTime<=t.pathDelay){t.lastPathTime+=e.value;return}const s=(o=t.pathGenerator)==null?void 0:o.generate(t,e);s&&t.velocity.addTo(s),i.clamp&&(t.velocity.x=it(t.velocity.x,-1,1),t.velocity.y=it(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay}function Tv(t){return t.slow.inRange?t.slow.factor:1}const Rv=2;class Ov{constructor(){this._initSpin=e=>{const n=e.container,i=e.options,r=i.move.spin;if(!r.enable)return;const s=r.position??{x:50,y:50},o={x:s.x/100*n.canvas.size.width,y:s.y/100*n.canvas.size.height},l=e.getPosition(),a=Le(l,o),u=T(r.acceleration);e.retina.spinAcceleration=u*n.retina.pixelRatio,e.spin={center:o,direction:e.velocity.x>=0?"clockwise":"counter-clockwise",angle:e.velocity.angle,radius:a,acceleration:e.retina.spinAcceleration}}}init(e){const n=e.options,i=n.move.gravity;e.gravity={enable:i.enable,acceleration:T(i.acceleration),inverse:i.inverse},this._initSpin(e)}isEnabled(e){return!e.destroyed&&e.options.move.enable}move(e,n){var v,g;const i=e.options,r=i.move;if(!r.enable)return;const s=e.container,o=s.retina.pixelRatio,l=Tv(e),a=((v=e.retina).moveSpeed??(v.moveSpeed=T(r.speed)*o))*s.retina.reduceFactor,u=(g=e.retina).moveDrift??(g.moveDrift=T(e.options.move.drift)*o),c=Rt(i.size.value)*o,f=r.size?e.getRadius()/c:1,d=a*f*l*(n.factor||1)/Rv,y=e.retina.maxSpeed??s.retina.maxSpeed;r.spin.enable?zv(e,d):bv(e,r,d,y,u,n),Ev(e)}}async function Lv(t,e=!0){await t.addMover("base",()=>new Ov,e)}class Iv{draw(e,n,i){n.circleRange||(n.circleRange={min:0,max:Math.PI*2});const r=n.circleRange;e.arc(0,0,i,r.min,r.max,!1)}getSidesCount(){return 12}particleInit(e,n){const i=n.shapeData,r=(i==null?void 0:i.angle)??{max:360,min:0};n.circleRange=On(r)?{min:r.min*Math.PI/180,max:r.max*Math.PI/180}:{min:0,max:r*Math.PI/180}}}async function Dv(t,e=!0){await t.addShape("circle",new Iv,e)}function xo(t,e,n,i,r){if(!e||!n.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=t.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const s=Pe(n.offset),o=(e.velocity??0)*t.factor+s*3.6,l=e.decay??1;!r||e.status==="increasing"?(e.value+=o,e.value>i&&(e.loops||(e.loops=0),e.loops++,r&&(e.status="decreasing",e.value-=e.value%i))):(e.value-=o,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing",e.value+=e.value)),e.velocity&&l!==1&&(e.velocity*=l),e.value>i&&(e.value%=i)}function Nv(t,e){const{h:n,s:i,l:r}=t.options.color.animation,{color:s}=t;if(!s)return;const{h:o,s:l,l:a}=s;o&&xo(e,o,n,360,!1),l&&xo(e,l,i,100,!0),a&&xo(e,a,r,100,!0)}class Fv{constructor(e){this.container=e}init(e){const n=Ui(e.options.color,e.id,e.options.reduceDuplicates);n&&(e.color=Vd(n,e.options.color.animation,this.container.retina.reduceFactor))}isEnabled(e){const{h:n,s:i,l:r}=e.options.color.animation,{color:s}=e;return!e.destroyed&&!e.spawning&&((s==null?void 0:s.h.value)!==void 0&&n.enable||(s==null?void 0:s.s.value)!==void 0&&i.enable||(s==null?void 0:s.l.value)!==void 0&&r.enable)}update(e,n){Nv(e,n)}}async function jv(t,e=!0){await t.addParticleUpdater("color",n=>new Fv(n),e)}function Av(t,e,n,i){switch(t.options.opacity.animation.destroy){case"max":e>=i&&t.destroy();break;case"min":e<=n&&t.destroy();break}}function Bv(t,e){const n=t.opacity;if(t.destroyed||!(n!=null&&n.enable)||(n.maxLoops??0)>0&&(n.loops??0)>(n.maxLoops??0))return;const i=n.min,r=n.max,s=n.decay??1;if(n.time||(n.time=0),(n.delayTime??0)>0&&n.time<(n.delayTime??0)&&(n.time+=e.value),!((n.delayTime??0)>0&&n.time<(n.delayTime??0))){switch(n.status){case"increasing":n.value>=r?(n.status="decreasing",n.loops||(n.loops=0),n.loops++):n.value+=(n.velocity??0)*e.factor;break;case"decreasing":n.value<=i?(n.status="increasing",n.loops||(n.loops=0),n.loops++):n.value-=(n.velocity??0)*e.factor;break}n.velocity&&n.decay!==1&&(n.velocity*=s),Av(t,n.value,i,r),t.destroyed||(n.value=it(n.value,i,r))}}class Uv{constructor(e){this.container=e}init(e){const n=e.options.opacity;e.opacity=jd(n,1);const i=n.animation;i.enable&&(e.opacity.velocity=T(i.speed)/100*this.container.retina.reduceFactor,i.sync||(e.opacity.velocity*=$()))}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.opacity&&e.opacity.enable&&((e.opacity.maxLoops??0)<=0||(e.opacity.maxLoops??0)>0&&(e.opacity.loops??0)<(e.opacity.maxLoops??0))}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,n){this.isEnabled(e)&&Bv(e,n)}}async function $v(t,e=!0){await t.addParticleUpdater("opacity",n=>new Uv(n),e)}function Hv(t){if(t.outMode!=="bounce"&&t.outMode!=="bounce-horizontal"&&t.outMode!=="bounceHorizontal"&&t.outMode!=="split"||t.direction!=="left"&&t.direction!=="right")return;t.bounds.right<0&&t.direction==="left"?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction==="right"&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const e=t.particle.velocity.x;let n=!1;if(t.direction==="right"&&t.bounds.right>=t.canvasSize.width&&e>0||t.direction==="left"&&t.bounds.left<=0&&e<0){const r=dn(t.particle.options.bounce.horizontal);t.particle.velocity.x*=-r,n=!0}if(!n)return;const i=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&t.direction==="right"?t.particle.position.x=t.canvasSize.width-i:t.bounds.left<=0&&t.direction==="left"&&(t.particle.position.x=i),t.outMode==="split"&&t.particle.destroy()}function Wv(t){if(t.outMode!=="bounce"&&t.outMode!=="bounce-vertical"&&t.outMode!=="bounceVertical"&&t.outMode!=="split"||t.direction!=="bottom"&&t.direction!=="top")return;t.bounds.bottom<0&&t.direction==="top"?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction==="bottom"&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const e=t.particle.velocity.y;let n=!1;if(t.direction==="bottom"&&t.bounds.bottom>=t.canvasSize.height&&e>0||t.direction==="top"&&t.bounds.top<=0&&e<0){const r=dn(t.particle.options.bounce.vertical);t.particle.velocity.y*=-r,n=!0}if(!n)return;const i=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&t.direction==="bottom"?t.particle.position.y=t.canvasSize.height-i:t.bounds.top<=0&&t.direction==="top"&&(t.particle.position.y=i),t.outMode==="split"&&t.particle.destroy()}class Vv{constructor(e){this.container=e,this.modes=["bounce","bounce-vertical","bounce-horizontal","bounceVertical","bounceHorizontal","split"]}update(e,n,i,r){if(!this.modes.includes(r))return;const s=this.container;let o=!1;for(const[,d]of s.plugins)if(d.particleBounce!==void 0&&(o=d.particleBounce(e,i,n)),o)break;if(o)return;const l=e.getPosition(),a=e.offset,u=e.getRadius(),c=Xi(l,u),f=s.canvas.size;Hv({particle:e,outMode:r,direction:n,bounds:c,canvasSize:f,offset:a,size:u}),Wv({particle:e,outMode:r,direction:n,bounds:c,canvasSize:f,offset:a,size:u})}}class qv{constructor(e){this.container=e,this.modes=["destroy"]}update(e,n,i,r){if(!this.modes.includes(r))return;const s=this.container;switch(e.outType){case"normal":case"outside":if(xa(e.position,s.canvas.size,se.origin,e.getRadius(),n))return;break;case"inside":{const{dx:o,dy:l}=xe(e.position,e.moveCenter),{x:a,y:u}=e.velocity;if(a<0&&o>e.moveCenter.radius||u<0&&l>e.moveCenter.radius||a>=0&&o<-e.moveCenter.radius||u>=0&&l<-e.moveCenter.radius)return;break}}s.particles.remove(e,void 0,!0)}}class Qv{constructor(e){this.container=e,this.modes=["none"]}update(e,n,i,r){if(!this.modes.includes(r)||e.options.move.distance.horizontal&&(n==="left"||n==="right")||e.options.move.distance.vertical&&(n==="top"||n==="bottom"))return;const s=e.options.move.gravity,o=this.container,l=o.canvas.size,a=e.getRadius();if(s.enable){const u=e.position;(!s.inverse&&u.y>l.height+a&&n==="bottom"||s.inverse&&u.y<-a&&n==="top")&&o.particles.remove(e)}else{if(e.velocity.y>0&&e.position.y<=l.height+a||e.velocity.y<0&&e.position.y>=-a||e.velocity.x>0&&e.position.x<=l.width+a||e.velocity.x<0&&e.position.x>=-a)return;xa(e.position,o.canvas.size,se.origin,a,n)||o.particles.remove(e)}}}class Gv{constructor(e){this.container=e,this.modes=["out"]}update(e,n,i,r){if(!this.modes.includes(r))return;const s=this.container;switch(e.outType){case"inside":{const{x:o,y:l}=e.velocity,a=se.origin;a.length=e.moveCenter.radius,a.angle=e.velocity.angle+Math.PI,a.addTo(se.create(e.moveCenter));const{dx:u,dy:c}=xe(e.position,a);if(o<=0&&u>=0||l<=0&&c>=0||o>=0&&u<=0||l>=0&&c<=0)return;e.position.x=Math.floor(Pe({min:0,max:s.canvas.size.width})),e.position.y=Math.floor(Pe({min:0,max:s.canvas.size.height}));const{dx:f,dy:d}=xe(e.position,e.moveCenter);e.direction=Math.atan2(-d,-f),e.velocity.angle=e.direction;break}default:{if(xa(e.position,s.canvas.size,se.origin,e.getRadius(),n))return;switch(e.outType){case"outside":{e.position.x=Math.floor(Pe({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.x,e.position.y=Math.floor(Pe({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.y;const{dx:o,dy:l}=xe(e.position,e.moveCenter);e.moveCenter.radius&&(e.direction=Math.atan2(l,o),e.velocity.angle=e.direction);break}case"normal":{const o=e.options.move.warp,l=s.canvas.size,a={bottom:l.height+e.getRadius()+e.offset.y,left:-e.getRadius()-e.offset.x,right:l.width+e.getRadius()+e.offset.x,top:-e.getRadius()-e.offset.y},u=e.getRadius(),c=Xi(e.position,u);n==="right"&&c.left>l.width+e.offset.x?(e.position.x=a.left,e.initialPosition.x=e.position.x,o||(e.position.y=$()*l.height,e.initialPosition.y=e.position.y)):n==="left"&&c.right<-e.offset.x&&(e.position.x=a.right,e.initialPosition.x=e.position.x,o||(e.position.y=$()*l.height,e.initialPosition.y=e.position.y)),n==="bottom"&&c.top>l.height+e.offset.y?(o||(e.position.x=$()*l.width,e.initialPosition.x=e.position.x),e.position.y=a.top,e.initialPosition.y=e.position.y):n==="top"&&c.bottom<-e.offset.y&&(o||(e.position.x=$()*l.width,e.initialPosition.x=e.position.x),e.position.y=a.bottom,e.initialPosition.y=e.position.y);break}}break}}}}class Yv{constructor(e){this.container=e,this._updateOutMode=(n,i,r,s)=>{for(const o of this.updaters)o.update(n,s,i,r)},this.updaters=[new Vv(e),new qv(e),new Gv(e),new Qv(e)]}init(){}isEnabled(e){return!e.destroyed&&!e.spawning}update(e,n){const i=e.options.move.outModes;this._updateOutMode(e,n,i.bottom??i.default,"bottom"),this._updateOutMode(e,n,i.left??i.default,"left"),this._updateOutMode(e,n,i.right??i.default,"right"),this._updateOutMode(e,n,i.top??i.default,"top")}}async function Kv(t,e=!0){await t.addParticleUpdater("outModes",n=>new Yv(n),e)}function Xv(t,e,n,i){switch(t.options.size.animation.destroy){case"max":e>=i&&t.destroy();break;case"min":e<=n&&t.destroy();break}}function Jv(t,e){const n=t.size;if(t.destroyed||!n||!n.enable||(n.maxLoops??0)>0&&(n.loops??0)>(n.maxLoops??0))return;const i=(n.velocity??0)*e.factor,r=n.min,s=n.max,o=n.decay??1;if(n.time||(n.time=0),(n.delayTime??0)>0&&n.time<(n.delayTime??0)&&(n.time+=e.value),!((n.delayTime??0)>0&&n.time<(n.delayTime??0))){switch(n.status){case"increasing":n.value>=s?(n.status="decreasing",n.loops||(n.loops=0),n.loops++):n.value+=i;break;case"decreasing":n.value<=r?(n.status="increasing",n.loops||(n.loops=0),n.loops++):n.value-=i}n.velocity&&o!==1&&(n.velocity*=o),Xv(t,n.value,r,s),t.destroyed||(n.value=it(n.value,r,s))}}class Zv{init(e){const n=e.container,i=e.options.size,r=i.animation;r.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??n.retina.sizeAnimationSpeed)/100*n.retina.reduceFactor,r.sync||(e.size.velocity*=$()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??0)<=0||(e.size.maxLoops??0)>0&&(e.size.loops??0)<(e.size.maxLoops??0))}reset(e){e.size.loops=0}update(e,n){this.isEnabled(e)&&Jv(e,n)}}async function e0(t,e=!0){await t.addParticleUpdater("size",()=>new Zv,e)}async function t0(t,e=!0){await Lv(t,!1),await Dv(t,!1),await jv(t,!1),await $v(t,!1),await Kv(t,!1),await e0(t,!1),await t.refresh(e)}async function n0(){oo("ease-in-quad",t=>t**2),oo("ease-out-quad",t=>1-(1-t)**2),oo("ease-in-out-quad",t=>t<.5?2*t**2:1-(-2*t+2)**2/2)}class i0{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed),e.speed!==void 0&&(this.speed=e.speed))}}let r0=class extends ct{constructor(e,n){super(n),this._clickAttract=()=>{const i=this.container;i.attract||(i.attract={particles:[]});const{attract:r}=i;if(r.finish||(r.count||(r.count=0),r.count++,r.count===i.particles.count&&(r.finish=!0)),r.clicking){const s=i.interactivity.mouse.clickPosition,o=i.retina.attractModeDistance;if(!o||o<0||!s)return;this._processAttract(s,o,new me(s.x,s.y,o))}else r.clicking===!1&&(r.particles=[])},this._hoverAttract=()=>{const i=this.container,r=i.interactivity.mouse.position,s=i.retina.attractModeDistance;!s||s<0||!r||this._processAttract(r,s,new me(r.x,r.y,s))},this._processAttract=(i,r,s)=>{const o=this.container,l=o.actualOptions.interactivity.modes.attract;if(!l)return;const a=o.particles.quadTree.query(s,u=>this.isEnabled(u));for(const u of a){const{dx:c,dy:f,distance:d}=xe(u.position,i),y=l.speed*l.factor,v=it(Od(l.easing)(1-d/r)*y,0,l.maxSpeed),g=se.create(d===0?y:c/d*v,d===0?y:f/d*v);u.position.subFrom(g)}},this._engine=e,n.attract||(n.attract={particles:[]}),this.handleClickMode=i=>{const r=this.container.actualOptions,s=r.interactivity.modes.attract;if(!(!s||i!=="attract")){n.attract||(n.attract={particles:[]}),n.attract.clicking=!0,n.attract.count=0;for(const o of n.attract.particles)this.isEnabled(o)&&o.velocity.setTo(o.initialVelocity);n.attract.particles=[],n.attract.finish=!1,setTimeout(()=>{n.destroyed||(n.attract||(n.attract={particles:[]}),n.attract.clicking=!1)},s.duration*1e3)}}}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.attract;n&&(e.retina.attractModeDistance=n.distance*e.retina.pixelRatio)}async interact(){const e=this.container,n=e.actualOptions,i=e.interactivity.status===fn,r=n.interactivity.events,s=r.onHover.enable,o=r.onHover.mode,l=r.onClick.enable,a=r.onClick.mode;i&&s&&X("attract",o)?this._hoverAttract():l&&X("attract",a)&&this._clickAttract()}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events;if((!r.position||!s.onHover.enable)&&(!r.clickPosition||!s.onClick.enable))return!1;const o=s.onHover.mode,l=s.onClick.mode;return X("attract",o)||X("attract",l)}loadModeOptions(e,...n){e.attract||(e.attract=new i0);for(const i of n)e.attract.load(i==null?void 0:i.attract)}reset(){}};async function s0(t,e=!0){await t.addInteractor("externalAttract",n=>new r0(t,n),e)}class o0{constructor(){this.distance=200}load(e){e&&e.distance!==void 0&&(this.distance=e.distance)}}class l0 extends ct{constructor(e){super(e),this._processBounce=(n,i,r)=>{const s=this.container.particles.quadTree.query(r,o=>this.isEnabled(o));for(const o of s)r instanceof me?Nd(kl(o),{position:n,radius:i,mass:i**2*Math.PI/2,velocity:se.origin,factor:se.origin}):r instanceof rt&&ig(o,Xi(n,i))},this._processMouseBounce=()=>{const n=this.container,i=n.retina.pixelRatio,r=10*i,s=n.interactivity.mouse.position,o=n.retina.bounceModeDistance;!o||o<0||!s||this._processBounce(s,o,new me(s.x,s.y,o+r))},this._singleSelectorBounce=(n,i)=>{const r=this.container,s=document.querySelectorAll(n);s.length&&s.forEach(o=>{const l=o,a=r.retina.pixelRatio,u={x:(l.offsetLeft+l.offsetWidth/2)*a,y:(l.offsetTop+l.offsetHeight/2)*a},c=l.offsetWidth/2*a,f=10*a,d=i.type==="circle"?new me(u.x,u.y,c+f):new rt(l.offsetLeft*a-f,l.offsetTop*a-f,l.offsetWidth*a+f*2,l.offsetHeight*a+f*2);this._processBounce(u,c,d)})}}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.bounce;n&&(e.retina.bounceModeDistance=n.distance*e.retina.pixelRatio)}async interact(){const e=this.container,n=e.actualOptions,i=n.interactivity.events,r=e.interactivity.status===fn,s=i.onHover.enable,o=i.onHover.mode,l=i.onDiv;r&&s&&X("bounce",o)?this._processMouseBounce():_a("bounce",l,(a,u)=>this._singleSelectorBounce(a,u))}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events,o=s.onDiv;return r.position&&s.onHover.enable&&X("bounce",s.onHover.mode)||ka("bounce",o)}loadModeOptions(e,...n){e.bounce||(e.bounce=new o0);for(const i of n)e.bounce.load(i==null?void 0:i.bounce)}reset(){}}async function a0(t,e=!0){await t.addInteractor("externalBounce",n=>new l0(n),e)}class nh{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(e){if(e){if(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.mix!==void 0&&(this.mix=e.mix),e.opacity!==void 0&&(this.opacity=e.opacity),e.color!==void 0){const n=Ie(this.color)?void 0:this.color;this.color=oe(e.color,i=>ce.create(n,i))}e.size!==void 0&&(this.size=e.size)}}}class u0 extends nh{constructor(){super(),this.selectors=[]}get ids(){return oe(this.selectors,e=>e.replace("#",""))}set ids(e){this.selectors=oe(e,n=>`#${n}`)}load(e){super.load(e),e&&(e.ids!==void 0&&(this.ids=e.ids),e.selectors!==void 0&&(this.selectors=e.selectors))}}class c0 extends nh{load(e){super.load(e),e&&(this.divs=oe(e.divs,n=>{const i=new u0;return i.load(n),i}))}}function tc(t,e,n,i){if(e>=n){const r=t+(e-n)*i;return it(r,t,e)}else if(e{var u;const n=this.container,i=n.actualOptions,r=n.interactivity.mouse.clickPosition,s=i.interactivity.modes.bubble;if(!s||!r)return;n.bubble||(n.bubble={});const o=n.retina.bubbleModeDistance;if(!o||o<0)return;const l=n.particles.quadTree.queryCircle(r,o,c=>this.isEnabled(c)),{bubble:a}=n;for(const c of l){if(!a.clicking)continue;c.bubble.inRange=!a.durationEnd;const f=c.getPosition(),d=Le(f,r),y=(new Date().getTime()-(n.interactivity.mouse.clickTime||0))/1e3;y>s.duration&&(a.durationEnd=!0),y>s.duration*2&&(a.clicking=!1,a.durationEnd=!1);const v={bubbleObj:{optValue:n.retina.bubbleModeSize,value:c.bubble.radius},particlesObj:{optValue:Rt(c.options.size.value)*n.retina.pixelRatio,value:c.size.value},type:"size"};this._process(c,d,y,v);const g={bubbleObj:{optValue:s.opacity,value:c.bubble.opacity},particlesObj:{optValue:Rt(c.options.opacity.value),value:((u=c.opacity)==null?void 0:u.value)??1},type:"opacity"};this._process(c,d,y,g),!a.durationEnd&&d<=o?this._hoverBubbleColor(c,d):delete c.bubble.color}},this._hoverBubble=()=>{const n=this.container,i=n.interactivity.mouse.position,r=n.retina.bubbleModeDistance;if(!r||r<0||i===void 0)return;const s=n.particles.quadTree.queryCircle(i,r,o=>this.isEnabled(o));for(const o of s){o.bubble.inRange=!0;const l=o.getPosition(),a=Le(l,i),u=1-a/r;a<=r?u>=0&&n.interactivity.status===fn&&(this._hoverBubbleSize(o,u),this._hoverBubbleOpacity(o,u),this._hoverBubbleColor(o,u)):this.reset(o),n.interactivity.status===wl&&this.reset(o)}},this._hoverBubbleColor=(n,i,r)=>{const s=this.container.actualOptions,o=r??s.interactivity.modes.bubble;if(o){if(!n.bubble.finalColor){const l=o.color;if(!l)return;const a=yt(l);n.bubble.finalColor=Ui(a)}if(n.bubble.finalColor)if(o.mix){n.bubble.color=void 0;const l=n.getFillColor();n.bubble.color=l?$d(Sa(l,n.bubble.finalColor,1-i,i)):n.bubble.finalColor}else n.bubble.color=n.bubble.finalColor}},this._hoverBubbleOpacity=(n,i,r)=>{var f,d;const s=this.container,o=s.actualOptions,l=(r==null?void 0:r.opacity)??((f=o.interactivity.modes.bubble)==null?void 0:f.opacity);if(!l)return;const a=n.options.opacity.value,u=((d=n.opacity)==null?void 0:d.value)??1,c=tc(u,l,Rt(a),i);c!==void 0&&(n.bubble.opacity=c)},this._hoverBubbleSize=(n,i,r)=>{const s=this.container,o=r!=null&&r.size?r.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(o===void 0)return;const l=Rt(n.options.size.value)*s.retina.pixelRatio,a=n.size.value,u=tc(a,o,l,i);u!==void 0&&(n.bubble.radius=u)},this._process=(n,i,r,s)=>{const o=this.container,l=s.bubbleObj.optValue,a=o.actualOptions,u=a.interactivity.modes.bubble;if(!u||l===void 0)return;const c=u.duration,f=o.retina.bubbleModeDistance,d=s.particlesObj.optValue,y=s.bubbleObj.value,v=s.particlesObj.value||0,g=s.type;if(!(!f||f<0||l===d))if(o.bubble||(o.bubble={}),o.bubble.durationEnd)y&&(g==="size"&&delete n.bubble.radius,g==="opacity"&&delete n.bubble.opacity);else if(i<=f){if((y??v)!==l){const p=v-r*(v-l)/c;g==="size"&&(n.bubble.radius=p),g==="opacity"&&(n.bubble.opacity=p)}}else g==="size"&&delete n.bubble.radius,g==="opacity"&&delete n.bubble.opacity},this._singleSelectorHover=(n,i,r)=>{const s=this.container,o=document.querySelectorAll(i),l=s.actualOptions.interactivity.modes.bubble;!l||!o.length||o.forEach(a=>{const u=a,c=s.retina.pixelRatio,f={x:(u.offsetLeft+u.offsetWidth/2)*c,y:(u.offsetTop+u.offsetHeight/2)*c},d=u.offsetWidth/2*c,y=r.type==="circle"?new me(f.x,f.y,d):new rt(u.offsetLeft*c,u.offsetTop*c,u.offsetWidth*c,u.offsetHeight*c),v=s.particles.quadTree.query(y,g=>this.isEnabled(g));for(const g of v){if(!y.contains(g.getPosition()))continue;g.bubble.inRange=!0;const x=l.divs,p=Dd(x,u);(!g.bubble.div||g.bubble.div!==u)&&(this.clear(g,n,!0),g.bubble.div=u),this._hoverBubbleSize(g,1,p),this._hoverBubbleOpacity(g,1,p),this._hoverBubbleColor(g,1,p)}})},e.bubble||(e.bubble={}),this.handleClickMode=n=>{n==="bubble"&&(e.bubble||(e.bubble={}),e.bubble.clicking=!0)}}clear(e,n,i){e.bubble.inRange&&!i||(delete e.bubble.div,delete e.bubble.opacity,delete e.bubble.radius,delete e.bubble.color)}init(){const e=this.container,n=e.actualOptions.interactivity.modes.bubble;n&&(e.retina.bubbleModeDistance=n.distance*e.retina.pixelRatio,n.size!==void 0&&(e.retina.bubbleModeSize=n.size*e.retina.pixelRatio))}async interact(e){const n=this.container.actualOptions,i=n.interactivity.events,r=i.onHover,s=i.onClick,o=r.enable,l=r.mode,a=s.enable,u=s.mode,c=i.onDiv;o&&X("bubble",l)?this._hoverBubble():a&&X("bubble",u)?this._clickBubble():_a("bubble",c,(f,d)=>this._singleSelectorHover(e,f,d))}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events,{onClick:o,onDiv:l,onHover:a}=s,u=ka("bubble",l);return u||a.enable&&r.position||o.enable&&r.clickPosition?X("bubble",a.mode)||X("bubble",o.mode)||u:!1}loadModeOptions(e,...n){e.bubble||(e.bubble=new c0);for(const i of n)e.bubble.load(i==null?void 0:i.bubble)}reset(e){e.bubble.inRange=!1}}async function d0(t,e=!0){await t.addInteractor("externalBubble",n=>new f0(n),e)}class h0{constructor(){this.opacity=.5}load(e){e&&e.opacity!==void 0&&(this.opacity=e.opacity)}}class p0{constructor(){this.distance=80,this.links=new h0,this.radius=60}get lineLinked(){return this.links}set lineLinked(e){this.links=e}get line_linked(){return this.links}set line_linked(e){this.links=e}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links??e.lineLinked??e.line_linked),e.radius!==void 0&&(this.radius=e.radius))}}function m0(t,e,n,i){const r=Math.floor(n.getRadius()/e.getRadius()),s=e.getFillColor(),o=n.getFillColor();if(!s||!o)return;const l=e.getPosition(),a=n.getPosition(),u=Sa(s,o,e.getRadius(),n.getRadius()),c=t.createLinearGradient(l.x,l.y,a.x,a.y);return c.addColorStop(0,$i(s,i)),c.addColorStop(r>1?1:r,gt(u,i)),c.addColorStop(1,$i(o,i)),c}function y0(t,e,n,i,r){ki(t,i,r),t.lineWidth=e,t.strokeStyle=n,t.stroke()}function g0(t,e,n,i){const r=t.actualOptions,s=r.interactivity.modes.connect;if(s)return m0(e,n,i,s.links.opacity)}function v0(t,e,n){t.canvas.draw(i=>{const r=g0(t,i,e,n);if(!r)return;const s=e.getPosition(),o=n.getPosition();y0(i,e.retina.linksWidth??0,r,s,o)})}class w0 extends ct{constructor(e){super(e)}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.connect;n&&(e.retina.connectModeDistance=n.distance*e.retina.pixelRatio,e.retina.connectModeRadius=n.radius*e.retina.pixelRatio)}async interact(){const e=this.container;if(e.actualOptions.interactivity.events.onHover.enable&&e.interactivity.status==="pointermove"){const i=e.interactivity.mouse.position;if(!e.retina.connectModeDistance||e.retina.connectModeDistance<0||!e.retina.connectModeRadius||e.retina.connectModeRadius<0||!i)return;const r=Math.abs(e.retina.connectModeRadius),s=e.particles.quadTree.queryCircle(i,r,l=>this.isEnabled(l));let o=0;for(const l of s){const a=l.getPosition();for(const u of s.slice(o+1)){const c=u.getPosition(),f=Math.abs(e.retina.connectModeDistance),d=Math.abs(a.x-c.x),y=Math.abs(a.y-c.y);dnew w0(n),e)}class k0{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(e){e&&(e.blink!==void 0&&(this.blink=e.blink),e.color!==void 0&&(this.color=ce.create(this.color,e.color)),e.consent!==void 0&&(this.consent=e.consent),e.opacity!==void 0&&(this.opacity=e.opacity))}}class _0{constructor(){this.distance=100,this.links=new k0}get lineLinked(){return this.links}set lineLinked(e){this.links=e}get line_linked(){return this.links}set line_linked(e){this.links=e}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links??e.lineLinked??e.line_linked))}}function S0(t,e,n,i,r,s){ki(t,n,i),t.strokeStyle=gt(r,s),t.lineWidth=e,t.stroke()}function C0(t,e,n,i,r){t.canvas.draw(s=>{const o=e.getPosition();S0(s,e.retina.linksWidth??0,o,r,n,i)})}class P0 extends ct{constructor(e){super(e)}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.grab;n&&(e.retina.grabModeDistance=n.distance*e.retina.pixelRatio)}async interact(){var l;const e=this.container,n=e.actualOptions,i=n.interactivity;if(!i.modes.grab||!i.events.onHover.enable||e.interactivity.status!==fn)return;const r=e.interactivity.mouse.position;if(!r)return;const s=e.retina.grabModeDistance;if(!s||s<0)return;const o=e.particles.quadTree.queryCircle(r,s,a=>this.isEnabled(a));for(const a of o){const u=a.getPosition(),c=Le(u,r);if(c>s)continue;const f=i.modes.grab.links,d=f.opacity,y=d-c*d/s;if(y<=0)continue;const v=f.color??((l=a.options.links)==null?void 0:l.color);if(!e.particles.grabLineColor&&v){const x=i.modes.grab.links;e.particles.grabLineColor=Wd(v,x.blink,x.consent)}const g=_l(a,void 0,e.particles.grabLineColor);g&&C0(e,a,g,y,r)}}isEnabled(e){const n=this.container,i=n.interactivity.mouse,r=((e==null?void 0:e.interactivity)??n.actualOptions.interactivity).events;return r.onHover.enable&&!!i.position&&X("grab",r.onHover.mode)}loadModeOptions(e,...n){e.grab||(e.grab=new _0);for(const i of n)e.grab.load(i==null?void 0:i.grab)}reset(){}}async function E0(t,e=!0){await t.addInteractor("externalGrab",n=>new P0(n),e)}class b0 extends ct{constructor(e){super(e),this.handleClickMode=n=>{if(n!=="pause")return;const i=this.container;i.getAnimationStatus()?i.pause():i.play()}}clear(){}init(){}async interact(){}isEnabled(){return!0}reset(){}}async function z0(t,e=!0){await t.addInteractor("externalPause",n=>new b0(n),e)}class M0{constructor(){this.default=!0,this.groups=[],this.quantity=4}get particles_nb(){return this.quantity}set particles_nb(e){this.quantity=O(e)}load(e){if(!e)return;e.default!==void 0&&(this.default=e.default),e.groups!==void 0&&(this.groups=e.groups.map(i=>i)),this.groups.length||(this.default=!0);const n=e.quantity??e.particles_nb;n!==void 0&&(this.quantity=O(n))}}class T0 extends ct{constructor(e){super(e),this.handleClickMode=n=>{if(n!=="push")return;const i=this.container,r=i.actualOptions,s=r.interactivity.modes.push;if(!s)return;const o=T(s.quantity);if(o<=0)return;const l=Es([void 0,...s.groups]),a=l!==void 0?i.actualOptions.particles.groups[l]:void 0;i.particles.push(o,i.interactivity.mouse,a,l)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(e,...n){e.push||(e.push=new M0);for(const i of n)e.push.load(i==null?void 0:i.push)}reset(){}}async function R0(t,e=!0){await t.addInteractor("externalPush",n=>new T0(n),e)}class O0{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(e){this.quantity=O(e)}load(e){if(!e)return;const n=e.quantity??e.particles_nb;n!==void 0&&(this.quantity=O(n))}}class L0 extends ct{constructor(e){super(e),this.handleClickMode=n=>{const i=this.container,r=i.actualOptions;if(!r.interactivity.modes.remove||n!=="remove")return;const s=T(r.interactivity.modes.remove.quantity);i.particles.removeQuantity(s)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(e,...n){e.remove||(e.remove=new O0);for(const i of n)e.remove.load(i==null?void 0:i.remove)}reset(){}}async function I0(t,e=!0){await t.addInteractor("externalRemove",n=>new L0(n),e)}class ih{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.speed!==void 0&&(this.speed=e.speed),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed))}}class D0 extends ih{constructor(){super(),this.selectors=[]}get ids(){return oe(this.selectors,e=>e.replace("#",""))}set ids(e){this.selectors=oe(e,n=>`#${n}`)}load(e){super.load(e),e&&(e.ids!==void 0&&(this.ids=e.ids),e.selectors!==void 0&&(this.selectors=e.selectors))}}class N0 extends ih{load(e){super.load(e),e&&(this.divs=oe(e.divs,n=>{const i=new D0;return i.load(n),i}))}}class F0 extends ct{constructor(e,n){super(n),this._clickRepulse=()=>{const i=this.container,r=i.actualOptions.interactivity.modes.repulse;if(!r)return;const s=i.repulse||{particles:[]};if(s.finish||(s.count||(s.count=0),s.count++,s.count===i.particles.count&&(s.finish=!0)),s.clicking){const o=i.retina.repulseModeDistance;if(!o||o<0)return;const l=Math.pow(o/6,3),a=i.interactivity.mouse.clickPosition;if(a===void 0)return;const u=new me(a.x,a.y,l),c=i.particles.quadTree.query(u,f=>this.isEnabled(f));for(const f of c){const{dx:d,dy:y,distance:v}=xe(a,f.position),g=v**2,x=r.speed,p=-l*x/g;if(g<=l){s.particles.push(f);const h=se.create(d,y);h.length=p,f.velocity.setTo(h)}}}else if(s.clicking===!1){for(const o of s.particles)o.velocity.setTo(o.initialVelocity);s.particles=[]}},this._hoverRepulse=()=>{const i=this.container,r=i.interactivity.mouse.position,s=i.retina.repulseModeDistance;!s||s<0||!r||this._processRepulse(r,s,new me(r.x,r.y,s))},this._processRepulse=(i,r,s,o)=>{const l=this.container,a=l.particles.quadTree.query(s,c=>this.isEnabled(c)),u=l.actualOptions.interactivity.modes.repulse;if(u)for(const c of a){const{dx:f,dy:d,distance:y}=xe(c.position,i),v=((o==null?void 0:o.speed)??u.speed)*u.factor,g=it(Od(u.easing)(1-y/r)*v,0,u.maxSpeed),x=se.create(y===0?v:f/y*g,y===0?v:d/y*g);c.position.addTo(x)}},this._singleSelectorRepulse=(i,r)=>{const s=this.container,o=s.actualOptions.interactivity.modes.repulse;if(!o)return;const l=document.querySelectorAll(i);l.length&&l.forEach(a=>{const u=a,c=s.retina.pixelRatio,f={x:(u.offsetLeft+u.offsetWidth/2)*c,y:(u.offsetTop+u.offsetHeight/2)*c},d=u.offsetWidth/2*c,y=r.type==="circle"?new me(f.x,f.y,d):new rt(u.offsetLeft*c,u.offsetTop*c,u.offsetWidth*c,u.offsetHeight*c),v=o.divs,g=Dd(v,u);this._processRepulse(f,d,y,g)})},this._engine=e,n.repulse||(n.repulse={particles:[]}),this.handleClickMode=i=>{const r=this.container.actualOptions,s=r.interactivity.modes.repulse;if(!s||i!=="repulse")return;n.repulse||(n.repulse={particles:[]});const o=n.repulse;o.clicking=!0,o.count=0;for(const l of n.repulse.particles)this.isEnabled(l)&&l.velocity.setTo(l.initialVelocity);o.particles=[],o.finish=!1,setTimeout(()=>{n.destroyed||(o.clicking=!1)},s.duration*1e3)}}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.repulse;n&&(e.retina.repulseModeDistance=n.distance*e.retina.pixelRatio)}async interact(){const e=this.container,n=e.actualOptions,i=e.interactivity.status===fn,r=n.interactivity.events,s=r.onHover,o=s.enable,l=s.mode,a=r.onClick,u=a.enable,c=a.mode,f=r.onDiv;i&&o&&X("repulse",l)?this._hoverRepulse():u&&X("repulse",c)?this._clickRepulse():_a("repulse",f,(d,y)=>this._singleSelectorRepulse(d,y))}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events,o=s.onDiv,l=s.onHover,a=s.onClick,u=ka("repulse",o);if(!(u||l.enable&&r.position||a.enable&&r.clickPosition))return!1;const c=l.mode,f=a.mode;return X("repulse",c)||X("repulse",f)||u}loadModeOptions(e,...n){e.repulse||(e.repulse=new N0);for(const i of n)e.repulse.load(i==null?void 0:i.repulse)}reset(){}}async function j0(t,e=!0){await t.addInteractor("externalRepulse",n=>new F0(t,n),e)}class A0{constructor(){this.factor=3,this.radius=200}load(e){e&&(e.factor!==void 0&&(this.factor=e.factor),e.radius!==void 0&&(this.radius=e.radius))}}class B0 extends ct{constructor(e){super(e)}clear(e,n,i){e.slow.inRange&&!i||(e.slow.factor=1)}init(){const e=this.container,n=e.actualOptions.interactivity.modes.slow;n&&(e.retina.slowModeRadius=n.radius*e.retina.pixelRatio)}async interact(){}isEnabled(e){const n=this.container,i=n.interactivity.mouse,r=((e==null?void 0:e.interactivity)??n.actualOptions.interactivity).events;return r.onHover.enable&&!!i.position&&X("slow",r.onHover.mode)}loadModeOptions(e,...n){e.slow||(e.slow=new A0);for(const i of n)e.slow.load(i==null?void 0:i.slow)}reset(e){e.slow.inRange=!1;const n=this.container,i=n.actualOptions,r=n.interactivity.mouse.position,s=n.retina.slowModeRadius,o=i.interactivity.modes.slow;if(!o||!s||s<0||!r)return;const l=e.getPosition(),a=Le(r,l),u=a/s,c=o.factor,{slow:f}=e;a>s||(f.inRange=!0,f.factor=u/c)}}async function U0(t,e=!0){await t.addInteractor("externalSlow",n=>new B0(n),e)}const ko=[0,4,2,1],nc=[8,8,4,2];class $0{constructor(e){this.pos=0,this.data=new Uint8ClampedArray(e)}getString(e){const n=this.data.slice(this.pos,this.pos+e);return this.pos+=n.length,n.reduce((i,r)=>i+String.fromCharCode(r),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let e="",n=0;do{n=this.data[this.pos++];for(let i=n;--i>=0;e+=String.fromCharCode(this.data[this.pos++]));}while(n!==0);return e}readSubBlocksBin(){let e=0,n=0;for(let r=0;(e=this.data[this.pos+r])!==0;r+=e+1)n+=e;const i=new Uint8Array(n);for(let r=0;(e=this.data[this.pos++])!==0;)for(let s=e;--s>=0;i[r++]=this.data[this.pos++]);return i}skipSubBlocks(){for(;this.data[this.pos]!==0;this.pos+=this.data[this.pos]+1);this.pos++}}function rh(t,e){const n=[];for(let i=0;i>>5,r.disposalMethod=(s&28)>>>2,r.userInputDelayFlag=(s&2)===2;const o=(s&1)===1;r.delayTime=t.nextTwoBytes()*10;const l=t.nextByte();o&&i(l),t.pos++;break}case 255:{t.pos++;const r={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};e.applicationExtensions.push(r);break}case 254:{e.comments.push([n(!1),t.readSubBlocks()]);break}case 1:{if(e.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");t.pos++,e.frames[n(!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();break}}async function W0(t,e,n,i,r,s){const o=e.frames[i(!0)];o.left=t.nextTwoBytes(),o.top=t.nextTwoBytes(),o.width=t.nextTwoBytes(),o.height=t.nextTwoBytes();const l=t.nextByte(),a=(l&128)===128,u=(l&64)===64;o.sortFlag=(l&32)===32,o.reserved=(l&24)>>>3;const c=1<<(l&7)+1;a&&(o.localColorTable=rh(t,c));const f=p=>{const{r:h,g:m,b:w}=(a?o.localColorTable:e.globalColorTable)[p];return{r:h,g:m,b:w,a:p===r(null)?n?~~((h+m+w)/3):0:255}},d=(()=>{try{return new ImageData(o.width,o.height,{colorSpace:"srgb"})}catch(p){if(p instanceof DOMException&&p.name==="IndexSizeError")return null;throw p}})();if(d==null)throw new EvalError("GIF frame size is to large");const y=t.nextByte(),v=t.readSubBlocksBin(),g=1<{const m=p>>>3,w=p&7;return(v[m]+(v[m+1]<<8)+(v[m+2]<<16)&(1<>>w};if(u){for(let p=0,h=y+1,m=0,w=[[0]],S=0;S<4;S++)if(ko[S]=w.length?w.push(w[M].concat(w[M][0])):M!==g&&w.push(w[M].concat(w[p][0]));for(let N=0;N=o.height))break}o.image=d,o.bitmap=await createImageBitmap(d)}else{for(let p=0,h=y+1,m=0,w=[[0]],S=-4;;){const E=p;if(p=x(m,h),m+=h,p===g){h=y+1,w.length=g+2;for(let C=0;C=w.length?w.push(w[E].concat(w[E][0])):E!==g&&w.push(w[E].concat(w[p][0]));for(let C=0;C=1<>>4,s.sortFlag=(l&8)===8;const u=1<<(l&7)+1,c=o.nextByte();s.pixelAspectRatio=o.nextByte(),s.pixelAspectRatio!==0&&(s.pixelAspectRatio=(s.pixelAspectRatio+15)/64),a&&(s.globalColorTable=rh(o,u));const f=(()=>{try{return new ImageData(s.width,s.height,{colorSpace:"srgb"})}catch(w){if(w instanceof DOMException&&w.name==="IndexSizeError")return null;throw w}})();if(f==null)throw new Error("GIF frame size is to large");const{r:d,g:y,b:v}=s.globalColorTable[c];f.data.set(a?[d,y,v,255]:[0,0,0,0]);for(let w=4;w(w&&(x=!0),g),m=w=>(w!=null&&(p=w),p);try{do x&&(s.frames.push({left:0,top:0,width:0,height:0,disposalMethod:0,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),g++,p=-1,x=!1);while(!await V0(o,s,n,h,m,e));s.frames.length--;for(const w of s.frames){if(w.userInputDelayFlag&&w.delayTime===0){s.totalTime=1/0;break}s.totalTime+=w.delayTime}return s}catch(w){throw w instanceof EvalError?new Error(`error while parsing frame ${g} "${w.message}"`):w}}const G0=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function Y0(t,e,n){const{svgData:i}=t;if(!i)return"";const r=$i(e,n);if(i.includes("fill"))return i.replace(G0,()=>r);const s=i.indexOf(">");return`${i.substring(0,s)} fill="${r}"${i.substring(s)}`}async function zs(t){return new Promise(e=>{t.loading=!0;const n=new Image;t.element=n,n.addEventListener("load",()=>{t.loading=!1,e()}),n.addEventListener("error",()=>{t.element=void 0,t.error=!0,t.loading=!1,hn().error(`${qe} loading image: ${t.source}`),e()}),n.src=t.source})}async function K0(t){if(t.type!=="gif"){await zs(t);return}t.loading=!0;try{t.gifData=await Q0(t.source),t.gifLoopCount=q0(t.gifData)??0,t.gifLoopCount===0&&(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}async function X0(t){if(t.type!=="svg"){await zs(t);return}t.loading=!0;const e=await fetch(t.source);e.ok?t.svgData=await e.text():(hn().error(`${qe} Image not found`),t.error=!0),t.loading=!1}function J0(t,e,n,i){var o;const r=Y0(t,n,((o=i.opacity)==null?void 0:o.value)??1),s={color:n,gif:e.gif,data:{...t,svgData:r},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor??e.replace_color,source:e.src};return new Promise(l=>{const a=new Blob([r],{type:"image/svg+xml"}),u=URL||window.URL||window.webkitURL||window,c=u.createObjectURL(a),f=new Image;f.addEventListener("load",()=>{s.loaded=!0,s.element=f,l(s),u.revokeObjectURL(c)}),f.addEventListener("error",async()=>{u.revokeObjectURL(c);const d={...t,error:!1,loading:!0};await zs(d),s.loaded=!0,s.element=d.element,l(s)}),f.src=c})}class Z0{constructor(e){this.loadImageShape=async n=>{if(!this._engine.loadImage)throw new Error(`${qe} image shape not initialized`);await this._engine.loadImage({gif:n.gif,name:n.name,replaceColor:n.replaceColor??n.replace_color??!1,src:n.src})},this._engine=e}addImage(e){this._engine.images||(this._engine.images=[]),this._engine.images.push(e)}draw(e,n,i,r,s){const o=n.image,l=o==null?void 0:o.element;if(o){if(e.globalAlpha=r,o.gif&&o.gifData){const a=new OffscreenCanvas(o.gifData.width,o.gifData.height),u=a.getContext("2d");if(!u)throw new Error("could not create offscreen canvas context");u.imageSmoothingQuality="low",u.imageSmoothingEnabled=!1,u.clearRect(0,0,a.width,a.height),n.gifLoopCount===void 0&&(n.gifLoopCount=o.gifLoopCount??0);let c=n.gifFrame??0;const f={x:-o.gifData.width*.5,y:-o.gifData.height*.5},d=o.gifData.frames[c];if(n.gifTime===void 0&&(n.gifTime=0),!d.bitmap)return;switch(e.scale(i/o.gifData.width,i/o.gifData.height),d.disposalMethod){case 4:case 5:case 6:case 7:case 0:u.drawImage(d.bitmap,d.left,d.top),e.drawImage(a,f.x,f.y),u.clearRect(0,0,a.width,a.height);break;case 1:u.drawImage(d.bitmap,d.left,d.top),e.drawImage(a,f.x,f.y);break;case 2:u.drawImage(d.bitmap,d.left,d.top),e.drawImage(a,f.x,f.y),u.clearRect(0,0,a.width,a.height),o.gifData.globalColorTable.length===0?u.putImageData(o.gifData.frames[0].image,f.x+d.left,f.y+d.top):u.putImageData(o.gifData.backgroundImage,f.x,f.y);break;case 3:{const y=u.getImageData(0,0,a.width,a.height);u.drawImage(d.bitmap,d.left,d.top),e.drawImage(a,f.x,f.y),u.clearRect(0,0,a.width,a.height),u.putImageData(y,0,0)}break}if(n.gifTime+=s.value,n.gifTime>d.delayTime){if(n.gifTime-=d.delayTime,++c>=o.gifData.frames.length){if(--n.gifLoopCount<=0)return;c=0,u.clearRect(0,0,a.width,a.height)}n.gifFrame=c}e.scale(o.gifData.width/i,o.gifData.height/i)}else if(l){const a=o.ratio,u={x:-i,y:-i};e.drawImage(l,u.x,u.y,i*2,i*2/a)}e.globalAlpha=1}}getSidesCount(){return 12}async init(e){const n=e.actualOptions;if(!(!n.preload||!this._engine.loadImage))for(const i of n.preload)await this._engine.loadImage(i)}loadShape(e){if(e.shape!=="image"&&e.shape!=="images")return;this._engine.images||(this._engine.images=[]);const n=e.shapeData;this._engine.images.find(r=>r.name===n.name||r.source===n.src)||this.loadImageShape(n).then(()=>{this.loadShape(e)})}particleInit(e,n){if(n.shape!=="image"&&n.shape!=="images")return;this._engine.images||(this._engine.images=[]);const i=this._engine.images,r=n.shapeData,s=n.getFillColor(),o=i.find(a=>a.name===r.name||a.source===r.src);if(!o)return;const l=r.replaceColor??r.replace_color??o.replaceColor;if(o.loading){setTimeout(()=>{this.particleInit(e,n)});return}(async()=>{let a;o.svgData&&s?a=await J0(o,r,s,n):a={color:s,data:o,element:o.element,gif:o.gif,gifData:o.gifData,gifLoopCount:o.gifLoopCount,loaded:!0,ratio:r.width&&r.height?r.width/r.height:o.ratio??1,replaceColor:l,source:r.src},a.ratio||(a.ratio=1);const u=r.fill??n.fill,c=r.close??n.close,f={image:a,fill:u,close:c};n.image=f.image,n.fill=f.fill,n.close=f.close})()}}class ew{constructor(){this.src="",this.gif=!1}load(e){e&&(e.gif!==void 0&&(this.gif=e.gif),e.height!==void 0&&(this.height=e.height),e.name!==void 0&&(this.name=e.name),e.replaceColor!==void 0&&(this.replaceColor=e.replaceColor),e.src!==void 0&&(this.src=e.src),e.width!==void 0&&(this.width=e.width))}}class tw{constructor(e){this.id="imagePreloader",this._engine=e}getPlugin(){return{}}loadOptions(e,n){if(!n||!n.preload)return;e.preload||(e.preload=[]);const i=e.preload;for(const r of n.preload){const s=i.find(o=>o.name===r.name||o.src===r.src);if(s)s.load(r);else{const o=new ew;o.load(r),i.push(o)}}}needsPlugin(){return!0}}function nw(t){t.loadImage||(t.loadImage=async e=>{if(!e.name&&!e.src)throw new Error(`${qe} no image source provided`);if(t.images||(t.images=[]),!t.images.find(n=>n.name===e.name||n.source===e.src))try{const n={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(n),await(e.gif?K0:e.replaceColor?X0:zs)(n)}catch{throw new Error(`${qe} ${e.name??e.src} not found`)}})}async function iw(t,e=!0){nw(t);const n=new tw(t);await t.addPlugin(n,e),await t.addShape(["image","images"],new Z0(t),e)}class rw extends Qt{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class sw extends Qt{constructor(){super(),this.random.minimumValue=1e-4,this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class ow{constructor(){this.count=0,this.delay=new rw,this.duration=new sw}load(e){e&&(e.count!==void 0&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}class lw{constructor(e){this.container=e}init(e){const n=this.container,i=e.options,r=i.life;r&&(e.life={delay:n.retina.reduceFactor?T(r.delay.value)*(r.delay.sync?1:$())/n.retina.reduceFactor*1e3:0,delayTime:0,duration:n.retina.reduceFactor?T(r.duration.value)*(r.duration.sync?1:$())/n.retina.reduceFactor*1e3:0,time:0,count:r.count},e.life.duration<=0&&(e.life.duration=-1),e.life.count<=0&&(e.life.count=-1),e.life&&(e.spawning=e.life.delay>0))}isEnabled(e){return!e.destroyed}loadOptions(e,...n){e.life||(e.life=new ow);for(const i of n)e.life.load(i==null?void 0:i.life)}update(e,n){if(!this.isEnabled(e)||!e.life)return;const i=e.life;let r=!1;if(e.spawning)if(i.delayTime+=n.value,i.delayTime>=e.life.delay)r=!0,e.spawning=!1,i.delayTime=0,i.time=0;else return;if(i.duration===-1||e.spawning||(r?i.time=0:i.time+=n.value,i.time0&&e.life.count--,e.life.count===0){e.destroy();return}const s=this.container.canvas.size,o=O(0,s.width),l=O(0,s.width);e.position.x=Pe(o),e.position.y=Pe(l),e.spawning=!0,i.delayTime=0,i.time=0,e.reset();const a=e.options.life;a&&(i.delay=T(a.delay.value)*1e3,i.duration=T(a.duration.value)*1e3)}}async function aw(t,e=!0){await t.addParticleUpdater("life",n=>new lw(n),e)}class uw{draw(e,n,i){const r=n.shapeData;e.moveTo(-i/2,0),e.lineTo(i/2,0),e.lineCap=(r==null?void 0:r.cap)??"butt"}getSidesCount(){return 1}}async function cw(t,e=!0){await t.addShape("line",new uw,e)}class fw{init(){}isEnabled(e){return!Qn()&&!e.destroyed&&e.container.actualOptions.interactivity.events.onHover.parallax.enable}move(e){const n=e.container,i=n.actualOptions,r=i.interactivity.events.onHover.parallax;if(Qn()||!r.enable)return;const s=r.force,o=n.interactivity.mouse.position;if(!o)return;const l=n.canvas.size,a={x:l.width/2,y:l.height/2},u=r.smooth,c=e.getRadius()/s,f={x:(o.x-a.x)*c,y:(o.y-a.y)*c},{offset:d}=e;d.x+=(f.x-d.x)/u,d.y+=(f.y-d.y)/u}}async function dw(t,e=!0){await t.addMover("parallax",()=>new fw,e)}class hw extends Ca{constructor(e){super(e)}clear(){}init(){}async interact(e){const n=this.container,i=e.retina.attractDistance??n.retina.attractDistance,r=e.getPosition(),s=n.particles.quadTree.queryCircle(r,i);for(const o of s){if(e===o||!o.options.move.attract.enable||o.destroyed||o.spawning)continue;const l=o.getPosition(),{dx:a,dy:u}=xe(r,l),c=e.options.move.attract.rotate,f=a/(c.x*1e3),d=u/(c.y*1e3),y=o.size.value/e.size.value,v=1/y;e.velocity.x-=f*y,e.velocity.y-=d*y,o.velocity.x+=f*v,o.velocity.y+=d*v}}isEnabled(e){return e.options.move.attract.enable}reset(){}}async function pw(t,e=!0){await t.addInteractor("particlesAttract",n=>new hw(n),e)}function ic(t,e,n,i,r,s){const o=it(t.options.collisions.absorb.speed*r.factor/10,0,i);t.size.value+=o/2,n.size.value-=o,i<=s&&(n.size.value=0,n.destroy())}function mw(t,e,n,i){const r=t.getRadius(),s=e.getRadius();r===void 0&&s!==void 0?t.destroy():r!==void 0&&s===void 0?e.destroy():r!==void 0&&s!==void 0&&(r>=s?ic(t,r,e,s,n,i):ic(e,s,t,r,n,i))}const rc=t=>{t.collisionMaxSpeed===void 0&&(t.collisionMaxSpeed=T(t.options.collisions.maxSpeed)),t.velocity.length>t.collisionMaxSpeed&&(t.velocity.length=t.collisionMaxSpeed)};function sh(t,e){Nd(kl(t),kl(e)),rc(t),rc(e)}function yw(t,e){!t.unbreakable&&!e.unbreakable&&sh(t,e),t.getRadius()===void 0&&e.getRadius()!==void 0?t.destroy():t.getRadius()!==void 0&&e.getRadius()===void 0?e.destroy():t.getRadius()!==void 0&&e.getRadius()!==void 0&&(t.getRadius()>=e.getRadius()?e:t).destroy()}function gw(t,e,n,i){switch(t.options.collisions.mode){case"absorb":{mw(t,e,n,i);break}case"bounce":{sh(t,e);break}case"destroy":{yw(t,e);break}}}class vw extends Ca{constructor(e){super(e)}clear(){}init(){}async interact(e,n){if(e.destroyed||e.spawning)return;const i=this.container,r=e.getPosition(),s=e.getRadius(),o=i.particles.quadTree.queryCircle(r,s*2);for(const l of o){if(e===l||!l.options.collisions.enable||e.options.collisions.mode!==l.options.collisions.mode||l.destroyed||l.spawning)continue;const a=l.getPosition(),u=l.getRadius();if(Math.abs(Math.round(r.z)-Math.round(a.z))>s+u)continue;const c=Le(r,a),f=s+u;c>f||gw(e,l,n,i.retina.pixelRatio)}}isEnabled(e){return e.options.collisions.enable}reset(){}}async function ww(t,e=!0){await t.addInteractor("particlesCollisions",n=>new vw(n),e)}class xw extends me{constructor(e,n,i,r){super(e,n,i),this.canvasSize=r,this.canvasSize={...r}}contains(e){const{width:n,height:i}=this.canvasSize,{x:r,y:s}=e;return super.contains(e)||super.contains({x:r-n,y:s})||super.contains({x:r-n,y:s-i})||super.contains({x:r,y:s-i})}intersects(e){if(super.intersects(e))return!0;const n=e,i=e,r={x:e.position.x-this.canvasSize.width,y:e.position.y-this.canvasSize.height};if(i.radius!==void 0){const s=new me(r.x,r.y,i.radius*2);return super.intersects(s)}else if(n.size!==void 0){const s=new rt(r.x,r.y,n.size.width*2,n.size.height*2);return super.intersects(s)}return!1}}class kw{constructor(){this.blur=5,this.color=new ce,this.color.value="#000",this.enable=!1}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=ce.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable))}}class _w{constructor(){this.enable=!1,this.frequency=1}load(e){e&&(e.color!==void 0&&(this.color=ce.create(this.color,e.color)),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity))}}class Sw{constructor(){this.blink=!1,this.color=new ce,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new kw,this.triangles=new _w,this.width=1,this.warp=!1}load(e){e&&(e.id!==void 0&&(this.id=e.id),e.blink!==void 0&&(this.blink=e.blink),this.color=ce.create(this.color,e.color),e.consent!==void 0&&(this.consent=e.consent),e.distance!==void 0&&(this.distance=e.distance),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity),this.shadow.load(e.shadow),this.triangles.load(e.triangles),e.width!==void 0&&(this.width=e.width),e.warp!==void 0&&(this.warp=e.warp))}}function Cw(t,e,n,i,r){const{dx:s,dy:o,distance:l}=xe(t,e);if(!r||l<=n)return l;const a={x:Math.abs(s),y:Math.abs(o)},u={x:Math.min(a.x,i.width-a.x),y:Math.min(a.y,i.height-a.y)};return Math.sqrt(u.x**2+u.y**2)}class Pw extends Ca{constructor(e){super(e),this._setColor=n=>{if(!n.options.links)return;const i=this.linkContainer,r=n.options.links;let s=r.id===void 0?i.particles.linksColor:i.particles.linksColors.get(r.id);if(s)return;const o=r.color;s=Wd(o,r.blink,r.consent),r.id===void 0?i.particles.linksColor=s:i.particles.linksColors.set(r.id,s)},this.linkContainer=e}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}async interact(e){if(!e.options.links)return;e.links=[];const n=e.getPosition(),i=this.container,r=i.canvas.size;if(n.x<0||n.y<0||n.x>r.width||n.y>r.height)return;const s=e.options.links,o=s.opacity,l=e.retina.linksDistance??0,a=s.warp,u=a?new xw(n.x,n.y,l,r):new me(n.x,n.y,l),c=i.particles.quadTree.query(u);for(const f of c){const d=f.options.links;if(e===f||!(d!=null&&d.enable)||s.id!==d.id||f.spawning||f.destroyed||!f.links||e.links.some(x=>x.destination===f)||f.links.some(x=>x.destination===e))continue;const y=f.getPosition();if(y.x<0||y.y<0||y.x>r.width||y.y>r.height)continue;const v=Cw(n,y,l,r,a&&d.warp);if(v>l)continue;const g=(1-v/l)*o;this._setColor(e),e.links.push({destination:f,opacity:g})}}isEnabled(e){var n;return!!((n=e.options.links)!=null&&n.enable)}loadParticlesOptions(e,...n){e.links||(e.links=new Sw);for(const i of n)e.links.load((i==null?void 0:i.links)??(i==null?void 0:i.lineLinked)??(i==null?void 0:i.line_linked))}reset(){}}async function Ew(t,e=!0){await t.addInteractor("particlesLinks",n=>new Pw(n),e)}function bw(t){let e=!1;const{begin:n,end:i,maxDistance:r,context:s,canvasSize:o,width:l,backgroundMask:a,colorLine:u,opacity:c,links:f}=t;if(Le(n,i)<=r)ki(s,n,i),e=!0;else if(f.warp){let y,v;const g={x:i.x-o.width,y:i.y},x=xe(n,g);if(x.distance<=r){const p=n.y-x.dy/x.dx*n.x;y={x:0,y:p},v={x:o.width,y:p}}else{const p={x:i.x,y:i.y-o.height},h=xe(n,p);if(h.distance<=r){const w=-(n.y-h.dy/h.dx*n.x)/(h.dy/h.dx);y={x:w,y:0},v={x:w,y:o.height}}else{const m={x:i.x-o.width,y:i.y-o.height},w=xe(n,m);if(w.distance<=r){const S=n.y-w.dy/w.dx*n.x;y={x:-S/(w.dy/w.dx),y:S},v={x:y.x+o.width,y:y.y+o.height}}}}y&&v&&(ki(s,n,y),ki(s,i,v),e=!0)}if(!e)return;s.lineWidth=l,a.enable&&(s.globalCompositeOperation=a.composite),s.strokeStyle=gt(u,c);const{shadow:d}=f;if(d.enable){const y=tt(d.color);y&&(s.shadowBlur=d.blur,s.shadowColor=gt(y))}s.stroke()}function zw(t){const{context:e,pos1:n,pos2:i,pos3:r,backgroundMask:s,colorTriangle:o,opacityTriangle:l}=t;ag(e,n,i,r),s.enable&&(e.globalCompositeOperation=s.composite),e.fillStyle=gt(o,l),e.fill()}function Mw(t){return t.sort((e,n)=>e-n),t.join("_")}function sc(t,e){const n=Mw(t.map(r=>r.id));let i=e.get(n);return i===void 0&&(i=$(),e.set(n,i)),i}class Tw{constructor(e){this.container=e,this._drawLinkLine=(n,i)=>{const r=n.options.links;if(!(r!=null&&r.enable))return;const s=this.container,o=s.actualOptions,l=i.destination,a=n.getPosition(),u=l.getPosition();let c=i.opacity;s.canvas.draw(f=>{var p;let d;const y=(p=n.options.twinkle)==null?void 0:p.lines;if(y!=null&&y.enable){const h=y.frequency,m=tt(y.color);$(){const s=n.options.links;if(!(s!=null&&s.enable))return;const o=s.triangles;if(!o.enable)return;const l=this.container,a=l.actualOptions,u=i.destination,c=r.destination,f=o.opacity??(i.opacity+r.opacity)/2;f<=0||l.canvas.draw(d=>{const y=n.getPosition(),v=u.getPosition(),g=c.getPosition(),x=n.retina.linksDistance??0;if(Le(y,v)>x||Le(g,v)>x||Le(g,y)>x)return;let p=tt(o.color);if(!p){const h=s.id!==void 0?l.particles.linksColors.get(s.id):l.particles.linksColor;p=_l(n,u,h)}p&&zw({context:d,pos1:y,pos2:v,pos3:g,backgroundMask:a.backgroundMask,colorTriangle:p,opacityTriangle:f})})},this._drawTriangles=(n,i,r,s)=>{var a,u,c;const o=r.destination;if(!((a=n.links)!=null&&a.triangles.enable&&((u=o.options.links)!=null&&u.triangles.enable)))return;const l=(c=o.links)==null?void 0:c.filter(f=>{const d=this._getLinkFrequency(o,f.destination);return o.options.links&&d<=o.options.links.frequency&&s.findIndex(y=>y.destination===f.destination)>=0});if(l!=null&&l.length)for(const f of l){const d=f.destination;this._getTriangleFrequency(i,o,d)>n.links.triangles.frequency||this._drawLinkTriangle(i,r,f)}},this._getLinkFrequency=(n,i)=>sc([n,i],this._freqs.links),this._getTriangleFrequency=(n,i,r)=>sc([n,i,r],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(e,n){const{links:i,options:r}=n;if(!i||i.length<=0)return;const s=i.filter(o=>r.links&&this._getLinkFrequency(n,o.destination)<=r.links.frequency);for(const o of s)this._drawTriangles(r,n,o,s),o.opacity>0&&(n.retina.linksWidth??0)>0&&this._drawLinkLine(n,o)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map}particleCreated(e){if(e.links=[],!e.options.links)return;const n=this.container.retina.pixelRatio,{retina:i}=e,{distance:r,width:s}=e.options.links;i.linksDistance=r*n,i.linksWidth=s*n}particleDestroyed(e){e.links=[]}}class Rw{constructor(){this.id="links"}getPlugin(e){return new Tw(e)}loadOptions(){}needsPlugin(){return!0}}async function Ow(t,e=!0){const n=new Rw;await t.addPlugin(n,e)}async function Lw(t,e=!0){await Ew(t,e),await Ow(t,e)}class oh{draw(e,n,i){const r=this.getCenter(n,i),s=this.getSidesData(n,i),o=s.count.numerator*s.count.denominator,l=s.count.numerator/s.count.denominator,a=180*(l-2)/l,u=Math.PI-Math.PI*a/180;if(e){e.beginPath(),e.translate(r.x,r.y),e.moveTo(0,0);for(let c=0;co&&(n.value-=o);break;case"decreasing":default:n.value-=s,n.value<0&&(n.value+=o);break}n.velocity&&l!==1&&(n.velocity*=l)}}class $w{constructor(e){this.container=e}init(e){const n=e.options.rotate;if(!n)return;e.rotate={enable:n.animation.enable,value:T(n.value)*Math.PI/180},e.pathRotation=n.path;let i=n.direction;switch(i==="random"&&(i=Math.floor($()*2)>0?"counter-clockwise":"clockwise"),i){case"counter-clockwise":case"counterClockwise":e.rotate.status="decreasing";break;case"clockwise":e.rotate.status="increasing";break}const r=n.animation;r.enable&&(e.rotate.decay=1-T(r.decay),e.rotate.velocity=T(r.speed)/360*this.container.retina.reduceFactor,r.sync||(e.rotate.velocity*=$())),e.rotation=e.rotate.value}isEnabled(e){const n=e.options.rotate;return n?!e.destroyed&&!e.spawning&&n.animation.enable&&!n.path:!1}loadOptions(e,...n){e.rotate||(e.rotate=new Bw);for(const i of n)e.rotate.load(i==null?void 0:i.rotate)}update(e,n){var i;this.isEnabled(e)&&(Uw(e,n),e.rotation=((i=e.rotate)==null?void 0:i.value)??0)}}async function Hw(t,e=!0){await t.addParticleUpdater("rotate",n=>new $w(n),e)}const Ww=Math.sqrt(2);class Vw{draw(e,n,i){const r=i/Ww,s=r*2;e.rect(-r,-r,s,s)}getSidesCount(){return 4}}async function qw(t,e=!0){await t.addShape(["edge","square"],new Vw,e)}class Qw{draw(e,n,i){const r=n.sides,s=n.starInset??2;e.moveTo(0,0-i);for(let o=0;o0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=t.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const s=Pe(n.offset),o=(e.velocity??0)*t.factor+s*3.6,l=e.decay??1;!r||e.status==="increasing"?(e.value+=o,e.value>i&&(e.loops||(e.loops=0),e.loops++,r&&(e.status="decreasing",e.value-=e.value%i))):(e.value-=o,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing",e.value+=e.value)),e.velocity&&l!==1&&(e.velocity*=l),e.value>i&&(e.value%=i)}function Yw(t,e){if(!t.strokeColor||!t.strokeAnimation)return;const{h:n,s:i,l:r}=t.strokeColor,{h:s,s:o,l}=t.strokeAnimation;n&&_o(e,n,s,360,!1),i&&_o(e,i,o,100,!0),r&&_o(e,r,l,100,!0)}class Kw{constructor(e){this.container=e}init(e){var o;const n=this.container,i=e.options,r=yt(i.stroke,e.id,i.reduceDuplicates);e.strokeWidth=T(r.width)*n.retina.pixelRatio,e.strokeOpacity=T(r.opacity??1),e.strokeAnimation=(o=r.color)==null?void 0:o.animation;const s=Ui(r.color)??e.getFillColor();s&&(e.strokeColor=Vd(s,e.strokeAnimation,n.retina.reduceFactor))}isEnabled(e){const n=e.strokeAnimation,{strokeColor:i}=e;return!e.destroyed&&!e.spawning&&!!n&&((i==null?void 0:i.h.value)!==void 0&&i.h.enable||(i==null?void 0:i.s.value)!==void 0&&i.s.enable||(i==null?void 0:i.l.value)!==void 0&&i.l.enable)}update(e,n){this.isEnabled(e)&&Yw(e,n)}}async function Xw(t,e=!0){await t.addParticleUpdater("strokeColor",n=>new Kw(n),e)}const Rr=["text","character","char"];class Jw{draw(e,n,i,r){const s=n.shapeData;if(s===void 0)return;const o=s.value;if(o===void 0)return;n.text===void 0&&(n.text=yt(o,n.randomIndexData));const l=n.text,a=s.style??"",u=s.weight??"400",c=Math.round(i)*2,f=s.font??"Verdana",d=n.fill,y=l.length*i/2;e.font=`${a} ${u} ${c}px "${f}"`;const v={x:-y,y:i/2};e.globalAlpha=r,d?e.fillText(l,v.x,v.y):e.strokeText(l,v.x,v.y),e.globalAlpha=1}getSidesCount(){return 12}async init(e){const n=e.actualOptions;if(Rr.find(i=>X(i,n.particles.shape.type))){const i=Rr.map(s=>n.particles.shape.options[s]).find(s=>!!s),r=[];oe(i,s=>{r.push(Zy(s.font,s.weight))}),await Promise.all(r)}}particleInit(e,n){if(!n.shape||!Rr.includes(n.shape))return;const i=n.shapeData;if(i===void 0)return;const r=i.value;r!==void 0&&(n.text=yt(r,n.randomIndexData))}}async function Zw(t,e=!0){await t.addShape(Rr,new Jw,e)}async function e1(t,e=!0){Pv(t),await dw(t,!1),await s0(t,!1),await a0(t,!1),await d0(t,!1),await x0(t,!1),await E0(t,!1),await z0(t,!1),await R0(t,!1),await I0(t,!1),await j0(t,!1),await U0(t,!1),await pw(t,!1),await ww(t,!1),await Lw(t,!1),await n0(),await iw(t,!1),await cw(t,!1),await jw(t,!1),await qw(t,!1),await Gw(t,!1),await Zw(t,!1),await aw(t,!1),await Hw(t,!1),await Xw(t,!1),await t0(t,e)}const t1=({children:t})=>{const[e,n]=P.useState("#00FF00"),i=Ki();P.useEffect(()=>{i.pathname==="/skills"?n("#00fffb"):i.pathname==="/projects"?n("#e100ff"):n("#00FF00")},[i]);const r=P.useCallback(async o=>{console.log(o),await e1(o)},[]),s=P.useCallback(async o=>{await console.log(o)},[]);return _.jsxs("div",{children:[_.jsx(eh,{id:"tsparticles",init:r,loaded:s,options:{background:{color:{value:"#19222B"}},fpsLimit:144,interactivity:{events:{onClick:{enable:!0,mode:"push"},onHover:{enable:!1,mode:"repulse"},resize:!0},modes:{push:{quantity:4},repulse:{distance:200,duration:.4}}},particles:{color:{value:e},links:{color:"#ffffff",distance:150,enable:!0,opacity:.5,width:1},move:{direction:"none",enable:!0,outModes:{default:"bounce"},random:!1,speed:1,straight:!1},number:{density:{enable:!0,area:800},value:80},opacity:{value:.5},shape:{type:"circle"},size:{value:{min:1,max:5}}},detectRetina:!0}}),t]})},n1=()=>_.jsx("div",{id:"jumbotron-div",children:_.jsx("div",{className:"jumbotron",children:_.jsxs("div",{id:"outermost-text-div",children:[_.jsxs("div",{id:"text-div",children:[_.jsxs("h1",{className:"display-4",children:["Hi! I'm"," ",_.jsx("small",{style:{display:"inline",color:"lime",fontSize:"1.04em"},children:"Atharva"}),"."]}),_.jsx("p",{className:"lead",children:"I am an aspiring Web Developer looking for opportunities to showcase and further develop my skills!"}),_.jsx("p",{className:"lead",children:_.jsx("a",{className:"btn btn-primary btn",id:"know-more-btn",href:"https://www.linkedin.com/in/Atharva-Karanjekar",target:"_blank",role:"button",children:"Know more"})})]}),_.jsx("img",{src:"img/profilepic.png",id:"profile-img"})]})})}),Ae=({image:t,text:e})=>_.jsxs("div",{className:"card",children:[_.jsx("img",{src:`src/components/Skills/img/${t}.png`,className:"card-img-top"}),_.jsx("div",{className:"card-body",children:_.jsx("p",{className:"card-text",children:e})})]}),i1=()=>_.jsx("div",{id:"div",children:_.jsx("div",{id:"table-div",children:_.jsx("div",{className:"container-fluid",children:_.jsxs("div",{className:"row text-center",children:[_.jsx("div",{className:"row-6",children:_.jsxs("div",{className:"skills-outer-div",children:[_.jsx("h1",{className:"skills-header",children:"Front-End Development:"}),_.jsxs("div",{className:"skills-div",children:[_.jsx(Ae,{image:"html5",text:"HTML5"}),_.jsx(Ae,{image:"css3",text:"CSS3"}),_.jsx(Ae,{image:"javascript",text:"JavaScript"}),_.jsx(Ae,{image:"react",text:"React"})]})]})}),_.jsx("div",{className:"row-6",children:_.jsxs("div",{className:"skills-outer-div",children:[_.jsx("h1",{className:"skills-header",children:"Back-End Development:"}),_.jsxs("div",{className:"skills-div",children:[_.jsx(Ae,{image:"django",text:"Django"}),_.jsx(Ae,{image:"firebase",text:"Firebase"}),_.jsx(Ae,{image:"mysql",text:"MySQL"}),_.jsx(Ae,{image:"ssms",text:"SSMS"})]})]})}),_.jsx("div",{className:"row-6",children:_.jsxs("div",{className:"skills-outer-div",children:[_.jsx("h1",{className:"skills-header",children:"Programming Languages:"}),_.jsxs("div",{className:"skills-div",children:[_.jsx(Ae,{image:"python",text:"Python"}),_.jsx(Ae,{image:"C",text:"C"}),_.jsx(Ae,{image:"cpp",text:"C++"})]})]})}),_.jsx("div",{className:"row-6",children:_.jsxs("div",{className:"skills-outer-div",children:[_.jsx("h1",{className:"skills-header",children:"Version Control:"}),_.jsx("div",{className:"skills-div",children:_.jsx(Ae,{image:"git",text:"Git"})})]})})]})})})}),oc=({title:t,img:e,text:n,link:i})=>_.jsxs("div",{className:"project-card",children:[_.jsx("img",{src:`src/components/Projects/img/${e}.jpeg`,className:"card-img"}),_.jsxs("div",{className:"project-card-body",children:[_.jsx("h5",{className:"project-card-title",children:t}),_.jsx("p",{className:"project-card-text",children:n}),_.jsx("a",{href:`${i}`,className:"project-links",target:"_blank",children:_.jsxs("span",{className:"project-button",children:[_.jsx("i",{className:"fa-brands fa-github",style:{fontSize:"1.5em"}}),"GitHub"]})})]})]}),r1=()=>_.jsxs("div",{id:"project-cards-div",children:[_.jsx(oc,{img:"animemiru",title:"AnimeMiru",text:"A simple anime information library app made using pure HTML, CSS, JavaScript and AniList API.",link:"https://github.com/atharva-kakarot/AnimeMiru"}),_.jsx(oc,{img:"weatherapp",title:"Simple Weather App",text:"A simple weather app made using HTML, CSS, Django and OpenWeather API.",link:"https://github.com/atharva-kakarot/simple-weather-app"}),_.jsx("a",{href:"https://github.com/atharva-kakarot?tab=repositories",target:"_blank",id:"view-more",children:"view more"})]}),s1=()=>_.jsxs(Oy,{children:[_.jsx(Ny,{}),_.jsx(t1,{children:_.jsxs(Py,{children:[_.jsx(Mr,{path:"/",element:_.jsx(n1,{})}),_.jsx(Mr,{path:"/skills",element:_.jsx(i1,{})}),_.jsx(Mr,{path:"/projects",element:_.jsx(r1,{})})]})})]});xd(document.getElementById("root")).render(_.jsx(P.StrictMode,{children:_.jsx(s1,{})})); + */function vl(){return vl=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[r]=t[r]);return n}function zy(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function My(t,e){return t.button===0&&(!e||e==="_self")&&!zy(t)}const Ty=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Ry="6";try{window.__reactRouterVersion=Ry}catch{}const Oy="startTransition",Bu=Eh[Oy];function Ly(t){let{basename:e,children:n,future:i,window:r}=t,s=P.useRef();s.current==null&&(s.current=jm({window:r,v5Compat:!0}));let o=s.current,[l,a]=P.useState({action:o.action,location:o.location}),{v7_startTransition:u}=i||{},c=P.useCallback(f=>{u&&Bu?Bu(()=>a(f)):a(f)},[a,u]);return P.useLayoutEffect(()=>o.listen(c),[o,c]),P.createElement(Py,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:o,future:i})}const Iy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,so=P.forwardRef(function(e,n){let{onClick:i,relative:r,reloadDocument:s,replace:o,state:l,target:a,to:u,preventScrollReset:c,unstable_viewTransition:f}=e,d=by(e,Ty),{basename:y}=P.useContext(yn),v,g=!1;if(typeof u=="string"&&Dy.test(u)&&(v=u,Iy))try{let m=new URL(window.location.href),w=u.startsWith("//")?new URL(m.protocol+u):new URL(u),S=ga(w.pathname,y);w.origin===m.origin&&S!=null?u=S+w.search+w.hash:g=!0}catch{}let x=cy(u,{relative:r}),p=Ny(u,{replace:o,state:l,target:a,preventScrollReset:c,relative:r,unstable_viewTransition:f});function h(m){i&&i(m),m.defaultPrevented||p(m)}return P.createElement("a",vl({},d,{href:v||x,onClick:g||s?i:h,ref:n,target:a}))});var Uu;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Uu||(Uu={}));var $u;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})($u||($u={}));function Ny(t,e){let{target:n,replace:i,state:r,preventScrollReset:s,relative:o,unstable_viewTransition:l}=e===void 0?{}:e,a=fy(),u=Ki(),c=Td(t,{relative:o});return P.useCallback(f=>{if(My(f,n)){f.preventDefault();let d=i!==void 0?i:ns(u)===ns(c);a(t,{replace:d,state:r,preventScrollReset:s,relative:o,unstable_viewTransition:l})}},[u,a,c,i,r,n,t,s,o,l])}const Fy=()=>_.jsxs("div",{id:"nav-bar",children:[_.jsxs("div",{id:"links-div",children:[_.jsx(so,{to:"/",className:"links",children:_.jsx("span",{className:"links-text",children:"Home"})}),_.jsx(so,{to:"/skills",className:"links",children:_.jsx("span",{className:"links-text",children:"Skills"})}),_.jsx(so,{to:"/projects",className:"links",children:_.jsx("span",{className:"links-text",children:"Projects"})})]}),_.jsxs("div",{id:"icons-div",children:[_.jsx("a",{href:"https://github.com/atharva-kakarot",target:"_blank",className:"links",children:_.jsx("i",{className:"bi bi-github"})}),_.jsx("a",{href:"https://www.linkedin.com/in/Atharva-Karanjekar",target:"_blank",className:"links",children:_.jsx("i",{className:"bi bi-linkedin"})}),_.jsx("a",{href:"mailto:atharva.kakarot@gmail.com",target:"_blank",className:"links",children:_.jsx("i",{className:"bi bi-envelope"})}),_.jsx("a",{href:"https://www.instagram.com/karanjekar_atharva?igsh=MWk2NXlqbmMOamw%Yw==",target:"_blank",className:"links",children:_.jsx("i",{className:"bi bi-instagram"})})]})]}),xi="generated",jy="pointerdown",Ay="pointerup",wl="pointerleave",By="pointerout",fn="pointermove",Uy="touchstart",Hu="touchend",$y="touchmove",Hy="touchcancel",Wy="resize",Vy="visibilitychange",qe="tsParticles - Error";class Me{constructor(e,n,i){if(this._updateFromAngle=(r,s)=>{this.x=Math.cos(r)*s,this.y=Math.sin(r)*s},!et(e)&&e){this.x=e.x,this.y=e.y;const r=e;this.z=r.z?r.z:0}else if(e!==void 0&&n!==void 0)this.x=e,this.y=n,this.z=i??0;else throw new Error(`${qe} Vector3d not initialized correctly`)}static get origin(){return Me.create(0,0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return Me.create(e.x,e.y,e.z)}static create(e,n,i){return new Me(e,n,i)}add(e){return Me.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return Me.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return Me.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**2+this.y**2}mult(e){return Me.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){const e=this.length;e!=0&&this.multTo(1/e)}rotate(e){return Me.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),0)}setTo(e){this.x=e.x,this.y=e.y;const n=e;this.z=n.z?n.z:0}sub(e){return Me.create(this.x-e.x,this.y-e.y,this.z-e.z)}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}}class se extends Me{constructor(e,n){super(e,n,0)}static get origin(){return se.create(0,0)}static clone(e){return se.create(e.x,e.y)}static create(e,n){return new se(e,n)}}let qy=Math.random;const xl=new Map;function oo(t,e){xl.get(t)||xl.set(t,e)}function Ld(t){return xl.get(t)||(e=>e)}function $(){return it(qy(),0,1-1e-16)}function it(t,e,n){return Math.min(Math.max(t,e),n)}function lo(t,e,n,i){return Math.floor((t*n+e*i)/(n+i))}function Pe(t){const e=Rt(t);let n=wa(t);return e===n&&(n=0),$()*(e-n)+n}function T(t){return et(t)?t:Pe(t)}function wa(t){return et(t)?t:t.min}function Rt(t){return et(t)?t:t.max}function O(t,e){if(t===e||e===void 0&&et(t))return t;const n=wa(t),i=Rt(t);return e!==void 0?{min:Math.min(n,e),max:Math.max(i,e)}:O(n,i)}function dn(t){const e=t.random,{enable:n,minimumValue:i}=Ut(e)?{enable:e,minimumValue:0}:e;return T(n?O(t.value,i):t.value)}function xe(t,e){const n=t.x-e.x,i=t.y-e.y;return{dx:n,dy:i,distance:Math.sqrt(n**2+i**2)}}function Le(t,e){return xe(t,e).distance}function Qy(t,e,n){if(et(t))return t*Math.PI/180;switch(t){case"top":return-Math.PI/2;case"top-right":return-Math.PI/4;case"right":return 0;case"bottom-right":return Math.PI/4;case"bottom":return Math.PI/2;case"bottom-left":return 3*Math.PI/4;case"left":return Math.PI;case"top-left":return-3*Math.PI/4;case"inside":return Math.atan2(n.y-e.y,n.x-e.x);case"outside":return Math.atan2(e.y-n.y,e.x-n.x);default:return $()*Math.PI*2}}function Gy(t){const e=se.origin;return e.length=1,e.angle=t,e}function Wu(t,e,n,i){return se.create(t.x*(n-i)/(n+i)+e.x*2*i/(n+i),t.y)}function Yy(t){var e,n;return{x:((e=t.position)==null?void 0:e.x)??$()*t.size.width,y:((n=t.position)==null?void 0:n.y)??$()*t.size.height}}function Id(t){return t?t.endsWith("%")?parseFloat(t)/100:parseFloat(t):1}const Ky={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function hn(){return Ky}function Vu(t){const e={bounced:!1},{pSide:n,pOtherSide:i,rectSide:r,rectOtherSide:s,velocity:o,factor:l}=t;return i.mins.max||i.maxs.max||(n.max>=r.min&&n.max<=(r.max+r.min)/2&&o>0||n.min<=r.max&&n.min>(r.max+r.min)/2&&o<0)&&(e.velocity=o*-l,e.bounced=!0),e}function Xy(t,e){const n=oe(e,i=>t.matches(i));return Ie(n)?n.some(i=>i):n}function Qn(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function Zy(){return!Qn()&&typeof matchMedia<"u"}function Dd(t){if(Zy())return matchMedia(t)}function Jy(t){if(!(Qn()||typeof MutationObserver>"u"))return new MutationObserver(t)}function X(t,e){return t===e||Ie(e)&&e.indexOf(t)>-1}async function eg(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function tg(t){return Math.floor($()*t.length)}function Es(t,e,n=!0){return t[e!==void 0&&n?e%t.length:tg(t)]}function xa(t,e,n,i,r){return ng(Xi(t,i??0),e,n,r)}function ng(t,e,n,i){let r=!0;return(!i||i==="bottom")&&(r=t.topn.x),r&&(!i||i==="right")&&(r=t.leftn.y),r}function Xi(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function pe(t,...e){for(const n of e){if(n==null)continue;if(!On(n)){t=n;continue}const i=Array.isArray(n);i&&(On(t)||!t||!Array.isArray(t))?t=[]:!i&&(On(t)||!t||Array.isArray(t))&&(t={});for(const r in n){if(r==="__proto__")continue;const s=n,o=s[r],l=t;l[r]=On(o)&&Array.isArray(o)?o.map(a=>pe(l[r],a)):pe(l[r],o)}}return t}function ka(t,e){return!!jd(e,n=>n.enable&&X(t,n.mode))}function _a(t,e,n){oe(e,i=>{const r=i.mode;i.enable&&X(t,r)&&ig(i,n)})}function ig(t,e){const n=t.selectors;oe(n,i=>{e(i,t)})}function Nd(t,e){if(!(!e||!t))return jd(t,n=>Xy(e,n.selectors))}function kl(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:se.create(dn(t.options.bounce.horizontal),dn(t.options.bounce.vertical))}}function Fd(t,e){const{x:n,y:i}=t.velocity.sub(e.velocity),[r,s]=[t.position,e.position],{dx:o,dy:l}=xe(s,r);if(n*o+i*l<0)return;const a=-Math.atan2(l,o),u=t.mass,c=e.mass,f=t.velocity.rotate(a),d=e.velocity.rotate(a),y=Wu(f,d,u,c),v=Wu(d,f,u,c),g=y.rotate(-a),x=v.rotate(-a);t.velocity.x=g.x*t.factor.x,t.velocity.y=g.y*t.factor.y,e.velocity.x=x.x*e.factor.x,e.velocity.y=x.y*e.factor.y}function rg(t,e){const n=t.getPosition(),i=t.getRadius(),r=Xi(n,i),s=Vu({pSide:{min:r.left,max:r.right},pOtherSide:{min:r.top,max:r.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:dn(t.options.bounce.horizontal)});s.bounced&&(s.velocity!==void 0&&(t.velocity.x=s.velocity),s.position!==void 0&&(t.position.x=s.position));const o=Vu({pSide:{min:r.top,max:r.bottom},pOtherSide:{min:r.left,max:r.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:dn(t.options.bounce.vertical)});o.bounced&&(o.velocity!==void 0&&(t.velocity.y=o.velocity),o.position!==void 0&&(t.position.y=o.position))}function oe(t,e){return Ie(t)?t.map((n,i)=>e(n,i)):e(t,0)}function yt(t,e,n){return Ie(t)?Es(t,e,n):t}function jd(t,e){return Ie(t)?t.find((n,i)=>e(n,i)):e(t,0)?t:void 0}function Ad(t,e){const n=t.value,i=t.animation,r={delayTime:T(i.delay)*1e3,enable:i.enable,value:T(t.value)*e,max:Rt(n)*e,min:wa(n)*e,loops:0,maxLoops:T(i.count),time:0};if(i.enable){switch(r.decay=1-T(i.decay),i.mode){case"increase":r.status="increasing";break;case"decrease":r.status="decreasing";break;case"random":r.status=$()>=.5?"increasing":"decreasing";break}const s=i.mode==="auto";switch(i.startValue){case"min":r.value=r.min,s&&(r.status="increasing");break;case"max":r.value=r.max,s&&(r.status="decreasing");break;case"random":default:r.value=Pe(r),s&&(r.status=$()>=.5?"increasing":"decreasing");break}}return r.initialValue=r.value,r}function sg(t,e){if(!(t.mode==="percent")){const{mode:r,...s}=t;return s}return"x"in t?{x:t.x/100*e.width,y:t.y/100*e.height}:{width:t.width/100*e.width,height:t.height/100*e.height}}function Bd(t,e){return sg(t,e)}function Ut(t){return typeof t=="boolean"}function Je(t){return typeof t=="string"}function et(t){return typeof t=="number"}function Ud(t){return typeof t=="function"}function On(t){return typeof t=="object"&&t!==null}function Ie(t){return Array.isArray(t)}const rs="random",Tr="mid",bs=new Map;function qu(t){bs.set(t.key,t)}function ao(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function og(t){for(const[,s]of bs)if(t.startsWith(s.stringPrefix))return s.parseString(t);const e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=t.replace(e,(s,o,l,a,u)=>o+o+l+l+a+a+(u!==void 0?u+u:"")),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,r=i.exec(n);return r?{a:r[4]!==void 0?parseInt(r[4],16)/255:1,b:parseInt(r[3],16),g:parseInt(r[2],16),r:parseInt(r[1],16)}:void 0}function tt(t,e,n=!0){if(!t)return;const i=Je(t)?{value:t}:t;if(Je(i.value))return $d(i.value,e,n);if(Ie(i.value))return tt({value:Es(i.value,e,n)});for(const[,r]of bs){const s=r.handleRangeColor(i);if(s)return s}}function $d(t,e,n=!0){if(!t)return;const i=Je(t)?{value:t}:t;if(Je(i.value))return i.value===rs?Wd():lg(i.value);if(Ie(i.value))return $d({value:Es(i.value,e,n)});for(const[,r]of bs){const s=r.handleColor(i);if(s)return s}}function Ui(t,e,n=!0){const i=tt(t,e,n);return i?Hd(i):void 0}function Hd(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),s=Math.min(e,n,i),o={h:0,l:(r+s)/2,s:0};return r!==s&&(o.s=o.l<.5?(r-s)/(r+s):(r-s)/(2-r-s),o.h=e===r?(n-i)/(r-s):o.h=n===r?2+(i-e)/(r-s):4+(e-n)/(r-s)),o.l*=100,o.s*=100,o.h*=60,o.h<0&&(o.h+=360),o.h>=360&&(o.h-=360),o}function lg(t){return og(t)}function Gn(t){const e={b:0,g:0,r:0},n={h:t.h/360,l:t.l/100,s:t.s/100};if(!n.s)e.r=e.g=e.b=n.l;else{const i=n.l<.5?n.l*(1+n.s):n.l+n.s-n.l*n.s,r=2*n.l-i;e.r=ao(r,i,n.h+1/3),e.g=ao(r,i,n.h),e.b=ao(r,i,n.h-1/3)}return e.r=Math.floor(e.r*255),e.g=Math.floor(e.g*255),e.b=Math.floor(e.b*255),e}function ag(t){const e=Gn(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function Wd(t){return{b:Math.floor(Pe(O(0,256))),g:Math.floor(Pe(O(0,256))),r:Math.floor(Pe(O(0,256)))}}function gt(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function $i(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function Sa(t,e,n,i){let r=t,s=e;return r.r===void 0&&(r=Gn(t)),s.r===void 0&&(s=Gn(e)),{b:lo(r.b,s.b,n,i),g:lo(r.g,s.g,n,i),r:lo(r.r,s.r,n,i)}}function _l(t,e,n){if(n===rs)return Wd();if(n===Tr){const i=t.getFillColor()??t.getStrokeColor(),r=(e==null?void 0:e.getFillColor())??(e==null?void 0:e.getStrokeColor());if(i&&r&&e)return Sa(i,r,t.getRadius(),e.getRadius());{const s=i??r;if(s)return Gn(s)}}else return n}function Vd(t,e,n){const i=Je(t)?t:t.value;return i===rs?n?tt({value:i}):e?rs:Tr:i===Tr?Tr:tt({value:i})}function Qu(t){return t!==void 0?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function qd(t,e,n){const i={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(uo(i.h,e.h,n),uo(i.s,e.s,n),uo(i.l,e.l,n)),i}function uo(t,e,n){t.enable=e.enable,t.enable?(t.velocity=T(e.speed)/100*n,t.decay=1-T(e.decay),t.status="increasing",t.loops=0,t.maxLoops=T(e.count),t.time=0,t.delayTime=T(e.delay)*1e3,e.sync||(t.velocity*=$(),t.value*=$()),t.initialValue=t.value):t.velocity=0}function ki(t,e,n){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(n.x,n.y),t.closePath()}function ug(t,e,n,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(n.x,n.y),t.lineTo(i.x,i.y),t.closePath()}function cg(t,e,n){t.fillStyle=n??"rgba(0,0,0,0)",t.fillRect(0,0,e.width,e.height)}function fg(t,e,n,i){n&&(t.globalAlpha=i,t.drawImage(n,0,0,e.width,e.height),t.globalAlpha=1)}function co(t,e){t.clearRect(0,0,e.width,e.height)}function dg(t){const{container:e,context:n,particle:i,delta:r,colorStyles:s,backgroundMask:o,composite:l,radius:a,opacity:u,shadow:c,transform:f}=t,d=i.getPosition(),y=i.rotation+(i.pathRotation?i.velocity.angle:0),v={sin:Math.sin(y),cos:Math.cos(y)},g={a:v.cos*(f.a??1),b:v.sin*(f.b??1),c:-v.sin*(f.c??1),d:v.cos*(f.d??1)};n.setTransform(g.a,g.b,g.c,g.d,d.x,d.y),n.beginPath(),o&&(n.globalCompositeOperation=l);const x=i.shadowColor;c.enable&&x&&(n.shadowBlur=c.blur,n.shadowColor=gt(x),n.shadowOffsetX=c.offset.x,n.shadowOffsetY=c.offset.y),s.fill&&(n.fillStyle=s.fill);const p=i.strokeWidth??0;n.lineWidth=p,s.stroke&&(n.strokeStyle=s.stroke),hg(e,n,i,a,u,r),p>0&&n.stroke(),i.close&&n.closePath(),i.fill&&n.fill(),pg(e,n,i,a,u,r),n.globalCompositeOperation="source-over",n.setTransform(1,0,0,1,0,0)}function hg(t,e,n,i,r,s){if(!n.shape)return;const o=t.drawers.get(n.shape);o&&o.draw(e,n,i,r,s,t.retina.pixelRatio)}function pg(t,e,n,i,r,s){if(!n.shape)return;const o=t.drawers.get(n.shape);!o||!o.afterEffect||o.afterEffect(e,n,i,r,s,t.retina.pixelRatio)}function mg(t,e,n){e.draw&&e.draw(t,n)}function yg(t,e,n,i){e.drawParticle&&e.drawParticle(t,n,i)}function gg(t,e,n){return{h:t.h,s:t.s,l:t.l+(e==="darken"?-1:1)*n}}function vg(t,e,n){const i=e[n];i!==void 0&&(t[n]=(t[n]??1)*i)}class wg{constructor(e){this.container=e,this._applyPostDrawUpdaters=n=>{for(const i of this._postDrawUpdaters)i.afterDraw&&i.afterDraw(n)},this._applyPreDrawUpdaters=(n,i,r,s,o,l)=>{for(const a of this._preDrawUpdaters){if(a.getColorStyles){const{fill:u,stroke:c}=a.getColorStyles(i,n,r,s);u&&(o.fill=u),c&&(o.stroke=c)}if(a.getTransformValues){const u=a.getTransformValues(i);for(const c in u)vg(l,u,c)}a.beforeDraw&&a.beforeDraw(i)}},this._applyResizePlugins=()=>{for(const n of this._resizePlugins)n.resize&&n.resize()},this._getPluginParticleColors=n=>{let i,r;for(const s of this._colorPlugins)if(!i&&s.particleFillColor&&(i=Ui(s.particleFillColor(n))),!r&&s.particleStrokeColor&&(r=Ui(s.particleStrokeColor(n))),i&&r)break;return[i,r]},this._initCover=()=>{const n=this.container.actualOptions,i=n.backgroundMask.cover,r=i.color,s=tt(r);if(s){const o={...s,a:i.opacity};this._coverColorStyle=gt(o,o.a)}},this._initStyle=()=>{const n=this.element,i=this.container.actualOptions;if(n){this._fullScreen?(this._originalStyle=pe({},n.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const r in i.style){if(!r||!i.style)continue;const s=i.style[r];s&&n.style.setProperty(r,s,"important")}}},this._initTrail=async()=>{const n=this.container.actualOptions,i=n.particles.move.trail,r=i.fill;if(i.enable)if(r.color){const s=tt(r.color);if(!s)return;const o=n.particles.move.trail;this._trailFill={color:{...s},opacity:1/o.length}}else await new Promise((s,o)=>{if(!r.image)return;const l=document.createElement("img");l.addEventListener("load",()=>{this._trailFill={image:l,opacity:1/i.length},s()}),l.addEventListener("error",a=>{o(a.error)}),l.src=r.image})},this._paintBase=n=>{this.draw(i=>cg(i,this.size,n))},this._paintImage=(n,i)=>{this.draw(r=>fg(r,this.size,n,i))},this._repairStyle=()=>{const n=this.element;n&&(this._safeMutationObserver(i=>i.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(i=>i.observe(n,{attributes:!0})))},this._resetOriginalStyle=()=>{const n=this.element,i=this._originalStyle;if(!(n&&i))return;const r=n.style;r.position=i.position,r.zIndex=i.zIndex,r.top=i.top,r.left=i.left,r.width=i.width,r.height=i.height},this._safeMutationObserver=n=>{this._mutationObserver&&n(this._mutationObserver)},this._setFullScreenStyle=()=>{const n=this.element;if(!n)return;const i="important",r=n.style;r.setProperty("position","fixed",i),r.setProperty("z-index",this.container.actualOptions.fullScreen.zIndex.toString(10),i),r.setProperty("top","0",i),r.setProperty("left","0",i),r.setProperty("width","100%",i),r.setProperty("height","100%",i)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const e=this.container.actualOptions,n=e.particles.move.trail,i=this._trailFill;e.backgroundMask.enable?this.paint():n.enable&&n.length>0&&i?i.color?this._paintBase(gt(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):this.draw(r=>{co(r,this.size)})}destroy(){if(this.stop(),this._generated){const e=this.element;e&&e.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){const n=this._context;if(n)return e(n)}drawParticle(e,n){if(e.spawning||e.destroyed)return;const i=e.getRadius();if(i<=0)return;const r=e.getFillColor(),s=e.getStrokeColor()??r;let[o,l]=this._getPluginParticleColors(e);o||(o=r),l||(l=s),!(!o&&!l)&&this.draw(a=>{var m;const u=this.container,c=u.actualOptions,f=e.options.zIndex,d=(1-e.zIndexFactor)**f.opacityRate,y=e.bubble.opacity??((m=e.opacity)==null?void 0:m.value)??1,v=e.strokeOpacity??y,g=y*d,x=v*d,p={},h={fill:o?$i(o,g):void 0};h.stroke=l?$i(l,x):h.fill,this._applyPreDrawUpdaters(a,e,i,g,h,p),dg({container:u,context:a,particle:e,delta:n,colorStyles:h,backgroundMask:c.backgroundMask.enable,composite:c.backgroundMask.composite,radius:i*(1-e.zIndexFactor)**f.sizeRate,opacity:g,shadow:e.options.shadow,transform:p}),this._applyPostDrawUpdaters(e)})}drawParticlePlugin(e,n,i){this.draw(r=>yg(r,e,n,i))}drawPlugin(e,n){this.draw(i=>mg(i,e,n))}async init(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=Jy(e=>{for(const n of e)n.type==="attributes"&&n.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),this._initCover();try{await this._initTrail()}catch(e){hn().error(e)}this.initBackground(),this._safeMutationObserver(e=>{this.element&&e.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const e=this.container.actualOptions,n=e.background,i=this.element;if(!i)return;const r=i.style;if(r){if(n.color){const s=tt(n.color);r.backgroundColor=s?gt(s,n.opacity):""}else r.backgroundColor="";r.backgroundImage=n.image||"",r.backgroundPosition=n.position||"",r.backgroundRepeat=n.repeat||"",r.backgroundSize=n.size||""}}initPlugins(){this._resizePlugins=[];for(const[,e]of this.container.plugins)e.resize&&this._resizePlugins.push(e),(e.particleFillColor||e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const e of this.container.particles.updaters)e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles||e.getTransformValues||e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&xi in e.dataset?e.dataset[xi]==="true":this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=pe({},this.element.style),this.size.height=e.offsetHeight,this.size.width=e.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(n=>{this.element&&n.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){const e=this.container.actualOptions;this.draw(n=>{e.backgroundMask.enable&&e.backgroundMask.cover?(co(n,this.size),this._paintBase(this._coverColorStyle)):this._paintBase()})}resize(){if(!this.element)return!1;const e=this.container,n=e.retina.pixelRatio,i=e.canvas.size,r={width:this.element.offsetWidth*n,height:this.element.offsetHeight*n};if(r.height===i.height&&r.width===i.width&&r.height===this.element.height&&r.width===this.element.width)return!1;const s={...i};return this.element.width=i.width=this.element.offsetWidth*n,this.element.height=i.height=this.element.offsetHeight*n,this.container.started&&(this.resizeFactor={width:i.width/s.width,height:i.height/s.height}),!0}stop(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=void 0,this.draw(e=>co(e,this.size))}async windowResize(){if(!this.element||!this.resize())return;const e=this.container,n=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),n&&await e.refresh()}}function je(t,e,n,i,r){if(i){let s={passive:!0};Ut(r)?s.capture=r:r!==void 0&&(s=r),t.addEventListener(e,n,s)}else{const s=r;t.removeEventListener(e,n,s)}}class xg{constructor(e){this.container=e,this._doMouseTouchClick=n=>{const i=this.container,r=i.actualOptions;if(this._canPush){const s=i.interactivity.mouse,o=s.position;if(!o)return;s.clickPosition={...o},s.clickTime=new Date().getTime();const l=r.interactivity.events.onClick;oe(l.mode,a=>this.container.handleClickMode(a))}n.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=n=>{const i=n,r=this.container,s=r.options,o=s.defaultThemes,l=i.matches?o.dark:o.light,a=s.themes.find(u=>u.name===l);a&&a.default.auto&&r.loadTheme(l)},this._handleVisibilityChange=()=>{const n=this.container,i=n.actualOptions;this._mouseTouchFinish(),i.pauseOnBlur&&(document&&document.hidden?(n.pageHidden=!0,n.pause()):(n.pageHidden=!1,n.getAnimationStatus()?n.play(!0):n.draw(!0)))},this._handleWindowResize=async()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout),this._resizeTimeout=setTimeout(async()=>{const n=this.container.canvas;n&&await n.windowResize()},this.container.actualOptions.interactivity.events.resize.delay*1e3)},this._manageInteractivityListeners=(n,i)=>{const r=this._handlers,s=this.container,o=s.actualOptions,l=s.interactivity.element;if(!l)return;const a=l,u=s.canvas.element;u&&(u.style.pointerEvents=a===u?"initial":"none"),(o.interactivity.events.onHover.enable||o.interactivity.events.onClick.enable)&&(je(l,fn,r.mouseMove,i),je(l,Uy,r.touchStart,i),je(l,$y,r.touchMove,i),o.interactivity.events.onClick.enable?(je(l,Hu,r.touchEndClick,i),je(l,Ay,r.mouseUp,i),je(l,jy,r.mouseDown,i)):je(l,Hu,r.touchEnd,i),je(l,n,r.mouseLeave,i),je(l,Hy,r.touchCancel,i))},this._manageListeners=n=>{const i=this._handlers,r=this.container,s=r.actualOptions,o=s.interactivity.detectsOn,l=r.canvas.element;let a=wl;o==="window"?(r.interactivity.element=window,a=By):o==="parent"&&l?r.interactivity.element=l.parentElement??l.parentNode:r.interactivity.element=l,this._manageMediaMatch(n),this._manageResize(n),this._manageInteractivityListeners(a,n),document&&je(document,Vy,i.visibilityChange,n,!1)},this._manageMediaMatch=n=>{const i=this._handlers,r=Dd("(prefers-color-scheme: dark)");if(r){if(r.addEventListener!==void 0){je(r,"change",i.themeChange,n);return}r.addListener!==void 0&&(n?r.addListener(i.oldThemeChange):r.removeListener(i.oldThemeChange))}},this._manageResize=n=>{const i=this._handlers,r=this.container;if(!r.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){je(window,Wy,i.resize,n);return}const o=r.canvas.element;this._resizeObserver&&!n?(o&&this._resizeObserver.unobserve(o),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&n&&o&&(this._resizeObserver=new ResizeObserver(async l=>{l.find(u=>u.target===o)&&await this._handleWindowResize()}),this._resizeObserver.observe(o))},this._mouseDown=()=>{const{interactivity:n}=this.container;if(!n)return;const{mouse:i}=n;i.clicking=!0,i.downPosition=i.position},this._mouseTouchClick=n=>{const i=this.container,r=i.actualOptions,{mouse:s}=i.interactivity;s.inside=!0;let o=!1;const l=s.position;if(!(!l||!r.interactivity.events.onClick.enable)){for(const[,a]of i.plugins)if(a.clickPositionValid&&(o=a.clickPositionValid(l),o))break;o||this._doMouseTouchClick(n),s.clicking=!1}},this._mouseTouchFinish=()=>{const n=this.container.interactivity;if(!n)return;const i=n.mouse;delete i.position,delete i.clickPosition,delete i.downPosition,n.status=wl,i.inside=!1,i.clicking=!1},this._mouseTouchMove=n=>{const i=this.container,r=i.actualOptions,s=i.interactivity,o=i.canvas.element;if(!s||!s.element)return;s.mouse.inside=!0;let l;if(n.type.startsWith("pointer")){this._canPush=!0;const u=n;if(s.element===window){if(o){const c=o.getBoundingClientRect();l={x:u.clientX-c.left,y:u.clientY-c.top}}}else if(r.interactivity.detectsOn==="parent"){const c=u.target,f=u.currentTarget;if(c&&f&&o){const d=c.getBoundingClientRect(),y=f.getBoundingClientRect(),v=o.getBoundingClientRect();l={x:u.offsetX+2*d.left-(y.left+v.left),y:u.offsetY+2*d.top-(y.top+v.top)}}else l={x:u.offsetX??u.clientX,y:u.offsetY??u.clientY}}else u.target===o&&(l={x:u.offsetX??u.clientX,y:u.offsetY??u.clientY})}else if(this._canPush=n.type!=="touchmove",o){const u=n,c=u.touches[u.touches.length-1],f=o.getBoundingClientRect();l={x:c.clientX-(f.left??0),y:c.clientY-(f.top??0)}}const a=i.retina.pixelRatio;l&&(l.x*=a,l.y*=a),s.mouse.position=l,s.status=fn},this._touchEnd=n=>{const i=n,r=Array.from(i.changedTouches);for(const s of r)this._touches.delete(s.identifier);this._mouseTouchFinish()},this._touchEndClick=n=>{const i=n,r=Array.from(i.changedTouches);for(const s of r)this._touches.delete(s.identifier);this._mouseTouchClick(n)},this._touchStart=n=>{const i=n,r=Array.from(i.changedTouches);for(const s of r)this._touches.set(s.identifier,performance.now());this._mouseTouchMove(n)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:n=>this._mouseTouchMove(n),mouseUp:n=>this._mouseTouchClick(n),touchStart:n=>this._touchStart(n),touchMove:n=>this._mouseTouchMove(n),touchEnd:n=>this._touchEnd(n),touchCancel:n=>this._touchEnd(n),touchEndClick:n=>this._touchEndClick(n),visibilityChange:()=>this._handleVisibilityChange(),themeChange:n=>this._handleThemeChange(n),oldThemeChange:n=>this._handleThemeChange(n),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}class ce{constructor(){this.value=""}static create(e,n){const i=new ce;return i.load(e),n!==void 0&&(Je(n)||Ie(n)?i.load({value:n}):i.load(n)),i}load(e){(e==null?void 0:e.value)!==void 0&&(this.value=e.value)}}class kg{constructor(){this.color=new ce,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=ce.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.position!==void 0&&(this.position=e.position),e.repeat!==void 0&&(this.repeat=e.repeat),e.size!==void 0&&(this.size=e.size),e.opacity!==void 0&&(this.opacity=e.opacity))}}class _g{constructor(){this.color=new ce,this.color.value="#fff",this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=ce.create(this.color,e.color)),e.opacity!==void 0&&(this.opacity=e.opacity))}}class Sg{constructor(){this.composite="destination-out",this.cover=new _g,this.enable=!1}load(e){if(e){if(e.composite!==void 0&&(this.composite=e.composite),e.cover!==void 0){const n=e.cover,i=Je(e.cover)?{color:e.cover}:e.cover;this.cover.load(n.color!==void 0?n:{color:i})}e.enable!==void 0&&(this.enable=e.enable)}}}class Cg{constructor(){this.enable=!0,this.zIndex=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.zIndex!==void 0&&(this.zIndex=e.zIndex))}}class Pg{constructor(){this.enable=!1,this.mode=[]}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode))}}class Gu{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}get el(){return this.elementId}set el(e){this.elementId=e}get elementId(){return this.ids}set elementId(e){this.ids=e}get ids(){return oe(this.selectors,e=>e.replace("#",""))}set ids(e){this.selectors=oe(e,n=>`#${n}`)}load(e){if(!e)return;const n=e.ids??e.elementId??e.el;n!==void 0&&(this.ids=n),e.selectors!==void 0&&(this.selectors=e.selectors),e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),e.type!==void 0&&(this.type=e.type)}}class Eg{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.force!==void 0&&(this.force=e.force),e.smooth!==void 0&&(this.smooth=e.smooth))}}class bg{constructor(){this.enable=!1,this.mode=[],this.parallax=new Eg}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),this.parallax.load(e.parallax))}}class zg{constructor(){this.delay=.5,this.enable=!0}load(e){e!==void 0&&(e.delay!==void 0&&(this.delay=e.delay),e.enable!==void 0&&(this.enable=e.enable))}}class Mg{constructor(){this.onClick=new Pg,this.onDiv=new Gu,this.onHover=new bg,this.resize=new zg}get onclick(){return this.onClick}set onclick(e){this.onClick=e}get ondiv(){return this.onDiv}set ondiv(e){this.onDiv=e}get onhover(){return this.onHover}set onhover(e){this.onHover=e}load(e){if(!e)return;this.onClick.load(e.onClick??e.onclick);const n=e.onDiv??e.ondiv;n!==void 0&&(this.onDiv=oe(n,i=>{const r=new Gu;return r.load(i),r})),this.onHover.load(e.onHover??e.onhover),Ut(e.resize)?this.resize.enable=e.resize:this.resize.load(e.resize)}}class Tg{constructor(e,n){this._engine=e,this._container=n}load(e){if(!e||!this._container)return;const n=this._engine.plugins.interactors.get(this._container);if(n)for(const i of n)i.loadModeOptions&&i.loadModeOptions(this,e)}}class Qd{constructor(e,n){this.detectsOn="window",this.events=new Mg,this.modes=new Tg(e,n)}get detect_on(){return this.detectsOn}set detect_on(e){this.detectsOn=e}load(e){if(!e)return;const n=e.detectsOn??e.detect_on;n!==void 0&&(this.detectsOn=n),this.events.load(e.events),this.modes.load(e.modes)}}class Rg{load(e){e&&(e.position&&(this.position={x:e.position.x??50,y:e.position.y??50,mode:e.position.mode??"percent"}),e.options&&(this.options=pe({},e.options)))}}class Og{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(e){e&&(e.maxWidth!==void 0&&(this.maxWidth=e.maxWidth),e.mode!==void 0&&(e.mode==="screen"?this.mode="screen":this.mode="canvas"),e.options!==void 0&&(this.options=pe({},e.options)))}}class Lg{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(e){e&&(e.auto!==void 0&&(this.auto=e.auto),e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}class Ig{constructor(){this.name="",this.default=new Lg}load(e){e&&(e.name!==void 0&&(this.name=e.name),this.default.load(e.default),e.options!==void 0&&(this.options=pe({},e.options)))}}class fo{constructor(){this.count=0,this.enable=!1,this.offset=0,this.speed=1,this.delay=0,this.decay=0,this.sync=!0}load(e){e&&(e.count!==void 0&&(this.count=O(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(this.offset=O(e.offset)),e.speed!==void 0&&(this.speed=O(e.speed)),e.decay!==void 0&&(this.decay=O(e.decay)),e.delay!==void 0&&(this.delay=O(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}}class Dg{constructor(){this.h=new fo,this.s=new fo,this.l=new fo}load(e){e&&(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}class Hi extends ce{constructor(){super(),this.animation=new Dg}static create(e,n){const i=new Hi;return i.load(e),n!==void 0&&(Je(n)||Ie(n)?i.load({value:n}):i.load(n)),i}load(e){if(super.load(e),!e)return;const n=e.animation;n!==void 0&&(n.enable!==void 0?this.animation.h.load(n):this.animation.load(e.animation))}}class Ng{constructor(){this.speed=2}load(e){e&&e.speed!==void 0&&(this.speed=e.speed)}}class Fg{constructor(){this.enable=!0,this.retries=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.retries!==void 0&&(this.retries=e.retries))}}class jg{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){e&&(e.count!==void 0&&(this.count=O(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=O(e.speed)),e.decay!==void 0&&(this.decay=O(e.decay)),e.delay!==void 0&&(this.delay=O(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}}class Gd extends jg{constructor(){super(),this.mode="auto",this.startValue="random"}load(e){super.load(e),e&&(e.minimumValue!==void 0&&(this.minimumValue=e.minimumValue),e.mode!==void 0&&(this.mode=e.mode),e.startValue!==void 0&&(this.startValue=e.startValue))}}class Ag{constructor(){this.enable=!1,this.minimumValue=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.minimumValue!==void 0&&(this.minimumValue=e.minimumValue))}}class Qt{constructor(){this.random=new Ag,this.value=0}load(e){e&&(Ut(e.random)?this.random.enable=e.random:this.random.load(e.random),e.value!==void 0&&(this.value=O(e.value,this.random.enable?this.random.minimumValue:void 0)))}}class Yu extends Qt{constructor(){super(),this.random.minimumValue=.1,this.value=1}}class Yd{constructor(){this.horizontal=new Yu,this.vertical=new Yu}load(e){e&&(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}class Bg{constructor(){this.absorb=new Ng,this.bounce=new Yd,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new Fg}load(e){e&&(this.absorb.load(e.absorb),this.bounce.load(e.bounce),e.enable!==void 0&&(this.enable=e.enable),e.maxSpeed!==void 0&&(this.maxSpeed=O(e.maxSpeed)),e.mode!==void 0&&(this.mode=e.mode),this.overlap.load(e.overlap))}}class Ug{constructor(){this.offset=0,this.value=90}load(e){e&&(e.offset!==void 0&&(this.offset=O(e.offset)),e.value!==void 0&&(this.value=O(e.value)))}}class $g{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}get rotateX(){return this.rotate.x}set rotateX(e){this.rotate.x=e}get rotateY(){return this.rotate.y}set rotateY(e){this.rotate.y=e}load(e){var r,s;if(!e)return;e.distance!==void 0&&(this.distance=O(e.distance)),e.enable!==void 0&&(this.enable=e.enable);const n=((r=e.rotate)==null?void 0:r.x)??e.rotateX;n!==void 0&&(this.rotate.x=n);const i=((s=e.rotate)==null?void 0:s.y)??e.rotateY;i!==void 0&&(this.rotate.y=i)}}class Hg{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(e){e&&(e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.mode!==void 0&&(this.mode=e.mode),e.radius!==void 0&&(this.radius=e.radius))}}class Wg{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=O(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.inverse!==void 0&&(this.inverse=e.inverse),e.maxSpeed!==void 0&&(this.maxSpeed=O(e.maxSpeed)))}}class Vg{constructor(){this.clamp=!0,this.delay=new Qt,this.enable=!1,this.options={}}load(e){e&&(e.clamp!==void 0&&(this.clamp=e.clamp),this.delay.load(e.delay),e.enable!==void 0&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=pe(this.options,e.options)))}}class qg{load(e){e&&(e.color!==void 0&&(this.color=ce.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image))}}class Qg{constructor(){this.enable=!1,this.length=10,this.fill=new qg}get fillColor(){return this.fill.color}set fillColor(e){this.fill.load({color:e})}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),(e.fill!==void 0||e.fillColor!==void 0)&&this.fill.load(e.fill||{color:e.fillColor}),e.length!==void 0&&(this.length=e.length))}}class Gg{constructor(){this.default="out"}load(e){e&&(e.default!==void 0&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}class Yg{constructor(){this.acceleration=0,this.enable=!1}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=O(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.position&&(this.position=pe({},e.position)))}}class Kg{constructor(){this.angle=new Ug,this.attract=new $g,this.center=new Hg,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new Wg,this.path=new Vg,this.outModes=new Gg,this.random=!1,this.size=!1,this.speed=2,this.spin=new Yg,this.straight=!1,this.trail=new Qg,this.vibrate=!1,this.warp=!1}get bounce(){return this.collisions}set bounce(e){this.collisions=e}get collisions(){return!1}set collisions(e){}get noise(){return this.path}set noise(e){this.path=e}get outMode(){return this.outModes.default}set outMode(e){this.outModes.default=e}get out_mode(){return this.outMode}set out_mode(e){this.outMode=e}load(e){if(!e)return;this.angle.load(et(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),e.decay!==void 0&&(this.decay=O(e.decay)),e.direction!==void 0&&(this.direction=e.direction),e.distance!==void 0&&(this.distance=et(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),e.drift!==void 0&&(this.drift=O(e.drift)),e.enable!==void 0&&(this.enable=e.enable),this.gravity.load(e.gravity);const n=e.outModes??e.outMode??e.out_mode;n!==void 0&&(On(n)?this.outModes.load(n):this.outModes.load({default:n})),this.path.load(e.path??e.noise),e.random!==void 0&&(this.random=e.random),e.size!==void 0&&(this.size=e.size),e.speed!==void 0&&(this.speed=O(e.speed)),this.spin.load(e.spin),e.straight!==void 0&&(this.straight=e.straight),this.trail.load(e.trail),e.vibrate!==void 0&&(this.vibrate=e.vibrate),e.warp!==void 0&&(this.warp=e.warp)}}class Xg extends Gd{constructor(){super(),this.destroy="none",this.speed=2}get opacity_min(){return this.minimumValue}set opacity_min(e){this.minimumValue=e}load(e){(e==null?void 0:e.opacity_min)!==void 0&&e.minimumValue===void 0&&(e.minimumValue=e.opacity_min),super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class Zg extends Qt{constructor(){super(),this.animation=new Xg,this.random.minimumValue=.1,this.value=1}get anim(){return this.animation}set anim(e){this.animation=e}load(e){if(!e)return;super.load(e);const n=e.animation??e.anim;n!==void 0&&(this.animation.load(n),this.value=O(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class Jg{constructor(){this.enable=!1,this.width=1920,this.height=1080}get area(){return this.width}set area(e){this.width=e}get factor(){return this.height}set factor(e){this.height=e}get value_area(){return this.area}set value_area(e){this.area=e}load(e){if(!e)return;e.enable!==void 0&&(this.enable=e.enable);const n=e.width??e.area??e.value_area;n!==void 0&&(this.width=n);const i=e.height??e.factor;i!==void 0&&(this.height=i)}}class ev{constructor(){this.density=new Jg,this.limit=0,this.value=0}get max(){return this.limit}set max(e){this.limit=e}load(e){if(!e)return;this.density.load(e.density);const n=e.limit??e.max;n!==void 0&&(this.limit=n),e.value!==void 0&&(this.value=e.value)}}class tv{constructor(){this.blur=0,this.color=new ce,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=ce.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(e.offset.x!==void 0&&(this.offset.x=e.offset.x),e.offset.y!==void 0&&(this.offset.y=e.offset.y)))}}const ho="character",po="char",mo="image",yo="images",go="polygon",vo="star";class nv{constructor(){this.loadShape=(e,n,i,r)=>{if(!e)return;const s=Ie(e),o=s?[]:{},l=s!==Ie(this.options[n]),a=s!==Ie(this.options[i]);l&&(this.options[n]=o),a&&r&&(this.options[i]=o),this.options[n]=pe(this.options[n]??o,e),(!this.options[i]||r)&&(this.options[i]=pe(this.options[i]??o,e))},this.close=!0,this.fill=!0,this.options={},this.type="circle"}get character(){return this.options[ho]??this.options[po]}set character(e){this.options[po]=this.options[ho]=e}get custom(){return this.options}set custom(e){this.options=e}get image(){return this.options[mo]??this.options[yo]}set image(e){this.options[yo]=this.options[mo]=e}get images(){return this.image}set images(e){this.image=e}get polygon(){return this.options[go]??this.options[vo]}set polygon(e){this.options[vo]=this.options[go]=e}get stroke(){return[]}set stroke(e){}load(e){if(!e)return;const n=e.options??e.custom;if(n!==void 0)for(const i in n){const r=n[i];r&&(this.options[i]=pe(this.options[i]??{},r))}this.loadShape(e.character,ho,po,!0),this.loadShape(e.polygon,go,vo,!1),this.loadShape(e.image??e.images,mo,yo,!0),e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}class iv extends Gd{constructor(){super(),this.destroy="none",this.speed=5}get size_min(){return this.minimumValue}set size_min(e){this.minimumValue=e}load(e){(e==null?void 0:e.size_min)!==void 0&&e.minimumValue===void 0&&(e.minimumValue=e.size_min),super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class rv extends Qt{constructor(){super(),this.animation=new iv,this.random.minimumValue=1,this.value=3}get anim(){return this.animation}set anim(e){this.animation=e}load(e){if(super.load(e),!e)return;const n=e.animation??e.anim;n!==void 0&&(this.animation.load(n),this.value=O(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class Ku{constructor(){this.width=0}load(e){e&&(e.color!==void 0&&(this.color=Hi.create(this.color,e.color)),e.width!==void 0&&(this.width=O(e.width)),e.opacity!==void 0&&(this.opacity=O(e.opacity)))}}class sv extends Qt{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),e&&(e.opacityRate!==void 0&&(this.opacityRate=e.opacityRate),e.sizeRate!==void 0&&(this.sizeRate=e.sizeRate),e.velocityRate!==void 0&&(this.velocityRate=e.velocityRate))}}class ov{constructor(e,n){this._engine=e,this._container=n,this.bounce=new Yd,this.collisions=new Bg,this.color=new Hi,this.color.value="#fff",this.groups={},this.move=new Kg,this.number=new ev,this.opacity=new Zg,this.reduceDuplicates=!1,this.shadow=new tv,this.shape=new nv,this.size=new rv,this.stroke=new Ku,this.zIndex=new sv}load(e){var r,s,o;if(!e)return;if(this.bounce.load(e.bounce),this.color.load(Hi.create(this.color,e.color)),e.groups!==void 0)for(const l in e.groups){const a=e.groups[l];a!==void 0&&(this.groups[l]=pe(this.groups[l]??{},a))}this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),e.reduceDuplicates!==void 0&&(this.reduceDuplicates=e.reduceDuplicates),this.shape.load(e.shape),this.size.load(e.size),this.shadow.load(e.shadow),this.zIndex.load(e.zIndex);const n=((r=e.move)==null?void 0:r.collisions)??((s=e.move)==null?void 0:s.bounce);n!==void 0&&(this.collisions.enable=n),this.collisions.load(e.collisions),e.interactivity!==void 0&&(this.interactivity=pe({},e.interactivity));const i=e.stroke??((o=e.shape)==null?void 0:o.stroke);if(i&&(this.stroke=oe(i,l=>{const a=new Ku;return a.load(l),a})),this._container){const l=this._engine.plugins.updaters.get(this._container);if(l)for(const u of l)u.loadOptions&&u.loadOptions(this,e);const a=this._engine.plugins.interactors.get(this._container);if(a)for(const u of a)u.loadParticlesOptions&&u.loadParticlesOptions(this,e)}}}function Kd(t,...e){for(const n of e)t.load(n)}function Xd(t,e,...n){const i=new ov(t,e);return Kd(i,...n),i}class lv{constructor(e,n){this._findDefaultTheme=i=>this.themes.find(r=>r.default.value&&r.default.mode===i)??this.themes.find(r=>r.default.value&&r.default.mode==="any"),this._importPreset=i=>{this.load(this._engine.plugins.getPreset(i))},this._engine=e,this._container=n,this.autoPlay=!0,this.background=new kg,this.backgroundMask=new Sg,this.defaultThemes={},this.delay=0,this.fullScreen=new Cg,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Qd(e,n),this.manualParticles=[],this.particles=Xd(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}get backgroundMode(){return this.fullScreen}set backgroundMode(e){this.fullScreen.load(e)}get fps_limit(){return this.fpsLimit}set fps_limit(e){this.fpsLimit=e}get retina_detect(){return this.detectRetina}set retina_detect(e){this.detectRetina=e}load(e){var o,l;if(!e)return;e.preset!==void 0&&oe(e.preset,a=>this._importPreset(a)),e.autoPlay!==void 0&&(this.autoPlay=e.autoPlay),e.delay!==void 0&&(this.delay=O(e.delay));const n=e.detectRetina??e.retina_detect;n!==void 0&&(this.detectRetina=n),e.duration!==void 0&&(this.duration=O(e.duration));const i=e.fpsLimit??e.fps_limit;i!==void 0&&(this.fpsLimit=i),e.pauseOnBlur!==void 0&&(this.pauseOnBlur=e.pauseOnBlur),e.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),e.zLayers!==void 0&&(this.zLayers=e.zLayers),this.background.load(e.background);const r=e.fullScreen??e.backgroundMode;Ut(r)?this.fullScreen.enable=r:this.fullScreen.load(r),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map(a=>{const u=new Rg;return u.load(a),u})),this.particles.load(e.particles),this.style=pe(this.style,e.style),this._engine.plugins.loadOptions(this,e),e.smooth!==void 0&&(this.smooth=e.smooth);const s=this._engine.plugins.interactors.get(this._container);if(s)for(const a of s)a.loadOptions&&a.loadOptions(this,e);if(e.responsive!==void 0)for(const a of e.responsive){const u=new Og;u.load(a),this.responsive.push(u)}if(this.responsive.sort((a,u)=>a.maxWidth-u.maxWidth),e.themes!==void 0)for(const a of e.themes){const u=this.themes.find(c=>c.name===a.name);if(u)u.load(a);else{const c=new Ig;c.load(a),this.themes.push(c)}}this.defaultThemes.dark=(o=this._findDefaultTheme("dark"))==null?void 0:o.name,this.defaultThemes.light=(l=this._findDefaultTheme("light"))==null?void 0:l.name}setResponsive(e,n,i){this.load(i);const r=this.responsive.find(s=>s.mode==="screen"&&screen?s.maxWidth>screen.availWidth:s.maxWidth*n>e);return this.load(r==null?void 0:r.options),r==null?void 0:r.maxWidth}setTheme(e){if(e){const n=this.themes.find(i=>i.name===e);n&&this.load(n.options)}else{const n=Dd("(prefers-color-scheme: dark)"),i=n&&n.matches,r=this._findDefaultTheme(i?"dark":"light");r&&this.load(r.options)}}}class av{constructor(e,n){this.container=n,this._engine=e,this._interactors=e.plugins.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[]}async externalInteract(e){for(const n of this._externalInteractors)n.isEnabled()&&await n.interact(e)}handleClickMode(e){for(const n of this._externalInteractors)n.handleClickMode&&n.handleClickMode(e)}init(){this._externalInteractors=[],this._particleInteractors=[];for(const e of this._interactors){switch(e.type){case"external":this._externalInteractors.push(e);break;case"particles":this._particleInteractors.push(e);break}e.init()}}async particlesInteract(e,n){for(const i of this._externalInteractors)i.clear(e,n);for(const i of this._particleInteractors)i.isEnabled(e)&&await i.interact(e,n)}async reset(e){for(const n of this._externalInteractors)n.isEnabled()&&n.reset(e);for(const n of this._particleInteractors)n.isEnabled(e)&&n.reset(e)}}const Xu=t=>{if(!X(t.outMode,t.checkModes))return;const e=t.radius*2;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord{for(const[,h]of l.plugins){const m=h.particlePosition!==void 0?h.particlePosition(a,this):void 0;if(m)return Me.create(m.x,m.y,u)}const f=l.canvas.size,d=Yy({size:f,position:a}),y=Me.create(d.x,d.y,u),v=this.getRadius(),g=this.options.move.outModes,x=h=>{Xu({outMode:h,checkModes:["bounce","bounce-horizontal"],coord:y.x,maxCoord:l.canvas.size.width,setCb:m=>y.x+=m,radius:v})},p=h=>{Xu({outMode:h,checkModes:["bounce","bounce-vertical"],coord:y.y,maxCoord:l.canvas.size.height,setCb:m=>y.y+=m,radius:v})};return x(g.left??g.default),x(g.right??g.default),p(g.top??g.default),p(g.bottom??g.default),this._checkOverlap(y,c)?this._calcPosition(l,void 0,u,c+1):y},this._calculateVelocity=()=>{const l=Gy(this.direction),a=l.copy(),u=this.options.move;if(u.direction==="inside"||u.direction==="outside")return a;const c=Math.PI/180*T(u.angle.value),f=Math.PI/180*T(u.angle.offset),d={left:f-c/2,right:f+c/2};return u.straight||(a.angle+=Pe(O(d.left,d.right))),u.random&&typeof u.speed=="number"&&(a.length*=$()),a},this._checkOverlap=(l,a=0)=>{const u=this.options.collisions,c=this.getRadius();if(!u.enable)return!1;const f=u.overlap;if(f.enable)return!1;const d=f.retries;if(d>=0&&a>d)throw new Error(`${qe} particle is overlapping and can't be placed`);return!!this.container.particles.find(y=>Le(l,y.position){if(!l||!this.roll||!this.backColor&&!this.roll.alter)return l;const a=this.roll.horizontal&&this.roll.vertical?2:1,u=this.roll.horizontal?Math.PI/2:0;return Math.floor(((this.roll.angle??0)+u)/(Math.PI/a))%2?this.backColor?this.backColor:this.roll.alter?gg(l,this.roll.alter.type,this.roll.alter.value):l:l},this._initPosition=l=>{const a=this.container,u=T(this.options.zIndex.value);this.position=this._calcPosition(a,l,it(u,0,a.zLayers)),this.initialPosition=this.position.copy();const c=a.canvas.size;switch(this.moveCenter={...Bd(this.options.move.center,c),radius:this.options.move.center.radius??0,mode:this.options.move.center.mode??"percent"},this.direction=Qy(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case"inside":this.outType="inside";break;case"outside":this.outType="outside";break}this.offset=se.origin},this._loadShapeData=(l,a)=>{const u=l.options[this.shape];if(u)return pe({close:l.close,fill:l.fill},yt(u,this.id,a))},this._engine=e,this.init(n,r,s,o)}destroy(e){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const n=this.container,i=this.pathGenerator;for(const[,r]of n.plugins)r.particleDestroyed&&r.particleDestroyed(this,e);for(const r of n.particles.updaters)r.particleDestroyed&&r.particleDestroyed(this,e);i&&i.reset(this)}draw(e){const n=this.container;for(const[,i]of n.plugins)n.canvas.drawParticlePlugin(i,this,e);n.canvas.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??Qu(this.color))}getMass(){return this.getRadius()**2*Math.PI/2}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??Qu(this.strokeColor))}init(e,n,i,r){const s=this.container,o=this._engine;this.id=e,this.group=r,this.fill=!0,this.pathRotation=!1,this.close=!0,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType="normal",this.ignoresResizeRatio=!0;const l=s.retina.pixelRatio,a=s.actualOptions,u=Xd(this._engine,s,a.particles),c=u.shape.type,{reduceDuplicates:f}=u;this.shape=yt(c,this.id,f);const d=u.shape;if(i&&i.shape&&i.shape.type){const m=i.shape.type,w=yt(m,this.id,f);w&&(this.shape=w,d.load(i.shape))}this.shapeData=this._loadShapeData(d,f),u.load(i);const y=this.shapeData;y&&u.load(y.particles);const v=new Qd(o,s);v.load(s.actualOptions.interactivity),v.load(u.interactivity),this.interactivity=v,this.fill=(y==null?void 0:y.fill)??u.shape.fill,this.close=(y==null?void 0:y.close)??u.shape.close,this.options=u;const g=this.options.move.path;this.pathDelay=dn(g.delay)*1e3,g.generator&&(this.pathGenerator=this._engine.plugins.getPathGenerator(g.generator),this.pathGenerator&&s.addPath(g.generator,this.pathGenerator)&&this.pathGenerator.init(s)),s.retina.initParticle(this),this.size=Ad(this.options.size,l),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(n),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-T(this.options.move.decay);const x=s.particles;x.needsSort=x.needsSort||x.lastZIndex=-e&&i.y>=-e&&i.y<=n.height+e&&i.x<=n.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const e of this.container.particles.updaters)e.reset&&e.reset(this)}}class cv{constructor(e,n){this.position=e,this.particle=n}}class Zd{constructor(e,n){this.position={x:e,y:n}}}class rt extends Zd{constructor(e,n,i,r){super(e,n),this.size={height:r,width:i}}contains(e){const n=this.size.width,i=this.size.height,r=this.position;return e.x>=r.x&&e.x<=r.x+n&&e.y>=r.y&&e.y<=r.y+i}intersects(e){e instanceof me&&e.intersects(this);const n=this.size.width,i=this.size.height,r=this.position,s=e.position,o=e instanceof rt?e.size:{width:0,height:0},l=o.width,a=o.height;return s.xr.x&&s.yr.y}}class me extends Zd{constructor(e,n,i){super(e,n),this.radius=i}contains(e){return Le(e,this.position)<=this.radius}intersects(e){const n=this.position,i=e.position,r={x:Math.abs(i.x-n.x),y:Math.abs(i.y-n.y)},s=this.radius;if(e instanceof me){const o=s+e.radius,l=Math.sqrt(r.x**2+r.y**2);return o>l}else if(e instanceof rt){const{width:o,height:l}=e.size;return Math.pow(r.x-o,2)+Math.pow(r.y-l,2)<=s**2||r.x<=s+o&&r.y<=s+l||r.x<=o||r.y<=l}return!1}}class ss{constructor(e,n){this.rectangle=e,this.capacity=n,this._subdivide=()=>{const{x:i,y:r}=this.rectangle.position,{width:s,height:o}=this.rectangle.size,{capacity:l}=this;for(let a=0;a<4;a++)this._subs.push(new ss(new rt(i+s/2*(a%2),r+o/2*(Math.round(a/2)-a%2),s/2,o/2),l));this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(e){return this.rectangle.contains(e.position)?this._points.lengthn.insert(e))):!1}query(e,n,i){const r=i||[];if(!e.intersects(this.rectangle))return[];for(const s of this._points)!e.contains(s.position)&&Le(e.position,s.position)>s.particle.getRadius()&&(!n||n(s.particle))||r.push(s.particle);if(this._divided)for(const s of this._subs)s.query(e,n,r);return r}queryCircle(e,n,i){return this.query(new me(e.x,e.y,n),i)}queryRectangle(e,n,i){return this.query(new rt(e.x,e.y,n.width,n.height),i)}}const Zu=4,Ju=t=>new rt(-t.width/4,-t.height/4,t.width*3/2,t.height*3/2);let fv=class{constructor(e,n){this._applyDensity=(r,s,o)=>{var y;if(!((y=r.number.density)!=null&&y.enable))return;const l=r.number,a=this._initDensityFactor(l.density),u=l.value,c=l.limit>0?l.limit:u,f=Math.min(u,c)*a+s,d=Math.min(this.count,this.filter(v=>v.group===o).length);this.limit=l.limit*a,df&&this.removeQuantity(d-f,o)},this._initDensityFactor=r=>{const s=this._container;if(!s.canvas.element||!r.enable)return 1;const o=s.canvas.element,l=s.retina.pixelRatio;return o.width*o.height/(r.factor*l**2*r.area)},this._pushParticle=(r,s,o,l)=>{try{let a=this.pool.pop();a?a.init(this._nextId,r,s,o):a=new uv(this._engine,this._nextId,this._container,r,s,o);let u=!0;return l&&(u=l(a)),u?(this._array.push(a),this._zArray.push(a),this._nextId++,this._engine.dispatchEvent("particleAdded",{container:this._container,data:{particle:a}}),a):void 0}catch(a){hn().warning(`${qe} adding particle: ${a}`);return}},this._removeParticle=(r,s,o)=>{const l=this._array[r];if(!l||l.group!==s)return!1;l.destroy(o);const a=this._zArray.indexOf(l);return this._array.splice(r,1),this._zArray.splice(a,1),this.pool.push(l),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:l}}),!0},this._engine=e,this._container=n,this._nextId=0,this._array=[],this._zArray=[],this.pool=[],this.limit=0,this.needsSort=!1,this.lastZIndex=0,this._interactionManager=new av(e,n);const i=n.canvas.size;this.quadTree=new ss(Ju(i),Zu),this.movers=this._engine.plugins.getMovers(n,!0),this.updaters=this._engine.plugins.getUpdaters(n,!0)}get count(){return this._array.length}addManualParticles(){const e=this._container,n=e.actualOptions;for(const i of n.manualParticles)this.addParticle(i.position?Bd(i.position,e.canvas.size):void 0,i.options)}addParticle(e,n,i,r){const s=this._container,o=s.actualOptions,l=o.particles.number.limit;if(l>0){const a=this.count+1-l;a>0&&this.removeQuantity(a)}return this._pushParticle(e,n,i,r)}clear(){this._array=[],this._zArray=[]}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}async draw(e){const n=this._container;n.canvas.clear(),await this.update(e);for(const[,i]of n.plugins)n.canvas.drawPlugin(i,e);for(const i of this._zArray)i.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}handleClickMode(e){this._interactionManager.handleClickMode(e)}init(){var r;const e=this._container,n=e.actualOptions;this.lastZIndex=0,this.needsSort=!1;let i=!1;this.updaters=this._engine.plugins.getUpdaters(e,!0),this._interactionManager.init();for(const[,s]of e.plugins)if(s.particlesInitialization!==void 0&&(i=s.particlesInitialization()),i)break;this._interactionManager.init();for(const[,s]of e.pathGenerators)s.init(e);if(this.addManualParticles(),!i){for(const s in n.particles.groups){const o=n.particles.groups[s];for(let l=this.count,a=0;a<((r=o.number)==null?void 0:r.value)&&lthis.count)return;let s=0;for(let o=e;s!i.has(s);this._array=this.filter(r),this._zArray=this._zArray.filter(r),this.pool.push(...i)}await this._interactionManager.externalInteract(e);for(const r of this._array){for(const s of this.updaters)s.update(r,e);!r.destroyed&&!r.spawning&&await this._interactionManager.particlesInteract(r,e)}if(delete n.canvas.resizeFactor,this.needsSort){const r=this._zArray;r.sort((s,o)=>o.position.z-s.position.z||s.id-o.id),this.lastZIndex=r[r.length-1].position.z,this.needsSort=!1}}};class dv{constructor(e){this.container=e,this.pixelRatio=1,this.reduceFactor=1}init(){const e=this.container,n=e.actualOptions;this.pixelRatio=!n.detectRetina||Qn()?1:window.devicePixelRatio,this.reduceFactor=1;const i=this.pixelRatio;if(e.canvas.element){const o=e.canvas.element;e.canvas.size.width=o.offsetWidth*i,e.canvas.size.height=o.offsetHeight*i}const r=n.particles,s=r.move;this.attractDistance=T(s.attract.distance)*i,this.maxSpeed=T(s.gravity.maxSpeed)*i,this.sizeAnimationSpeed=T(r.size.animation.speed)*i}initParticle(e){const n=e.options,i=this.pixelRatio,r=n.move,s=r.distance,o=e.retina;o.attractDistance=T(r.attract.distance)*i,o.moveDrift=T(r.drift)*i,o.moveSpeed=T(r.speed)*i,o.sizeAnimationSpeed=T(n.size.animation.speed)*i;const l=o.maxDistance;l.horizontal=s.horizontal!==void 0?s.horizontal*i:void 0,l.vertical=s.vertical!==void 0?s.vertical*i:void 0,o.maxSpeed=T(r.gravity.maxSpeed)*i}}function W(t){return t&&!t.destroyed}function hv(t,e=60,n=!1){return{value:t,factor:n?60/e:60*t/1e3}}function wn(t,e,...n){const i=new lv(t,e);return Kd(i,...n),i}const pv="default",ec={generate:t=>t.velocity,init:()=>{},update:()=>{},reset:()=>{}};class mv{constructor(e,n,i){this.id=n,this._intersectionManager=r=>{if(!(!W(this)||!this.actualOptions.pauseOnOutsideViewport))for(const s of r)s.target===this.interactivity.element&&(s.isIntersecting?this.play:this.pause)()},this._nextFrame=async r=>{try{if(!this.smooth&&this.lastFrameTime!==void 0&&r1e3){this.draw(!1);return}if(await this.particles.draw(s),!this.alive()){this.destroy();return}this.getAnimationStatus()&&this.draw(!1)}catch(s){hn().error(`${qe} in animation loop`,s)}},this._engine=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._sourceOptions=i,this._initialSourceOptions=i,this.retina=new dv(this),this.canvas=new wg(this),this.particles=new fv(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.drawers=new Map,this._options=wn(this._engine,this),this.actualOptions=wn(this._engine,this),this._eventListeners=new xg(this),typeof IntersectionObserver<"u"&&IntersectionObserver&&(this._intersectionObserver=new IntersectionObserver(r=>this._intersectionManager(r))),this._engine.dispatchEvent("containerBuilt",{container:this})}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!W(this))return;const n=this.interactivity.element;if(!n)return;const i=(f,d,y)=>{if(!W(this))return;const v=this.retina.pixelRatio,g={x:d.x*v,y:d.y*v},x=this.particles.quadTree.queryCircle(g,y*v);e(f,x)},r=f=>{if(!W(this))return;const d=f,y={x:d.offsetX||d.clientX,y:d.offsetY||d.clientY};i(f,y,1)},s=()=>{W(this)&&(u=!0,c=!1)},o=()=>{W(this)&&(c=!0)},l=f=>{if(W(this)){if(u&&!c){const d=f;let y=d.touches[d.touches.length-1];if(!y&&(y=d.changedTouches[d.changedTouches.length-1],!y))return;const v=this.canvas.element,g=v?v.getBoundingClientRect():void 0,x={x:y.clientX-(g?g.left:0),y:y.clientY-(g?g.top:0)};i(f,x,Math.max(y.radiusX,y.radiusY))}u=!1,c=!1}},a=()=>{W(this)&&(u=!1,c=!1)};let u=!1,c=!1;n.addEventListener("click",r),n.addEventListener("touchstart",s),n.addEventListener("touchmove",o),n.addEventListener("touchend",l),n.addEventListener("touchcancel",a)}addLifeTime(e){this._lifeTime+=e}addPath(e,n,i=!1){return!W(this)||!i&&this.pathGenerators.has(e)?!1:(this.pathGenerators.set(e,n??ec),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){if(!W(this))return;this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,i]of this.drawers)i.destroy&&i.destroy(this);for(const i of this.drawers.keys())this.drawers.delete(i);this._engine.plugins.destroy(this),this.destroyed=!0;const e=this._engine.dom(),n=e.findIndex(i=>i===this);n>=0&&e.splice(n,1),this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(e){if(!W(this))return;let n=e;this._drawAnimationFrame=requestAnimationFrame(async i=>{n&&(this.lastFrameTime=void 0,n=!1),await this._nextFrame(i)})}async export(e,n={}){for(const[,i]of this.plugins){if(!i.export)continue;const r=await i.export(e,n);if(r.supported)return r.blob}hn().error(`${qe} - Export plugin with type ${e} not found`)}getAnimationStatus(){return!this._paused&&!this.pageHidden&&W(this)}handleClickMode(e){if(W(this)){this.particles.handleClickMode(e);for(const[,n]of this.plugins)n.handleClickMode&&n.handleClickMode(e)}}async init(){if(!W(this))return;const e=this._engine.plugins.getSupportedShapes();for(const i of e){const r=this._engine.plugins.getShapeDrawer(i);r&&this.drawers.set(i,r)}this._options=wn(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=wn(this._engine,this,this._options);const n=this._engine.plugins.getAvailablePlugins(this);for(const[i,r]of n)this.plugins.set(i,r);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=T(this.actualOptions.duration)*1e3,this._delay=T(this.actualOptions.delay)*1e3,this._lifeTime=0,this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120,this.smooth=this.actualOptions.smooth;for(const[,i]of this.drawers)i.init&&await i.init(this);for(const[,i]of this.plugins)i.init&&await i.init();this._engine.dispatchEvent("containerInit",{container:this}),this.particles.init(),this.particles.setDensity();for(const[,i]of this.plugins)i.particlesSetup&&i.particlesSetup();this._engine.dispatchEvent("particlesSetup",{container:this})}async loadTheme(e){W(this)&&(this._currentTheme=e,await this.refresh())}pause(){if(W(this)&&(this._drawAnimationFrame!==void 0&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const[,e]of this.plugins)e.pause&&e.pause();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(e){if(!W(this))return;const n=this._paused||e;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),n)for(const[,i]of this.plugins)i.play&&i.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(n||!1)}async refresh(){if(W(this))return this.stop(),this.start()}async reset(){if(W(this))return this._initialSourceOptions=void 0,this._options=wn(this._engine,this),this.actualOptions=wn(this._engine,this,this._options),this.refresh()}setNoise(e,n,i){W(this)&&this.setPath(e,n,i)}setPath(e,n,i){if(!e||!W(this))return;const r={...ec};if(Ud(e))r.generate=e,n&&(r.init=n),i&&(r.update=i);else{const s=r;r.generate=e.generate||s.generate,r.init=e.init||s.init,r.update=e.update||s.update}this.addPath(pv,r,!0)}async start(){!W(this)||this.started||(await this.init(),this.started=!0,await new Promise(e=>{this._delayTimeout=setTimeout(async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const[,n]of this.plugins)n.start&&await n.start();this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),e()},this._delay)}))}stop(){if(!(!W(this)||!this.started)){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);for(const[,e]of this.plugins)e.stop&&e.stop();for(const e of this.plugins.keys())this.plugins.delete(e);this._sourceOptions=this._options,this._engine.dispatchEvent("containerStopped",{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this.responsiveMaxWidth===e?!1:(this.responsiveMaxWidth=e,!0)}}class yv{constructor(){this._listeners=new Map}addEventListener(e,n){this.removeEventListener(e,n);let i=this._listeners.get(e);i||(i=[],this._listeners.set(e,i)),i.push(n)}dispatchEvent(e,n){const i=this._listeners.get(e);i&&i.forEach(r=>r(n))}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,n){const i=this._listeners.get(e);if(!i)return;const r=i.length,s=i.indexOf(n);s<0||(r===1?this._listeners.delete(e):i.splice(s,1))}}function wo(t,e,n,i=!1){let r=e.get(t);return(!r||i)&&(r=[...n.values()].map(s=>s(t)),e.set(t,r)),r}class gv{constructor(e){this._engine=e,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.drawers=new Map,this.pathGenerators=new Map}addInteractor(e,n){this._initializers.interactors.set(e,n)}addParticleMover(e,n){this._initializers.movers.set(e,n)}addParticleUpdater(e,n){this._initializers.updaters.set(e,n)}addPathGenerator(e,n){!this.getPathGenerator(e)&&this.pathGenerators.set(e,n)}addPlugin(e){!this.getPlugin(e.id)&&this.plugins.push(e)}addPreset(e,n,i=!1){(i||!this.getPreset(e))&&this.presets.set(e,n)}addShapeDrawer(e,n){oe(e,i=>{!this.getShapeDrawer(i)&&this.drawers.set(i,n)})}destroy(e){this.updaters.delete(e),this.movers.delete(e),this.interactors.delete(e)}getAvailablePlugins(e){const n=new Map;for(const i of this.plugins)i.needsPlugin(e.actualOptions)&&n.set(i.id,i.getPlugin(e));return n}getInteractors(e,n=!1){return wo(e,this.interactors,this._initializers.interactors,n)}getMovers(e,n=!1){return wo(e,this.movers,this._initializers.movers,n)}getPathGenerator(e){return this.pathGenerators.get(e)}getPlugin(e){return this.plugins.find(n=>n.id===e)}getPreset(e){return this.presets.get(e)}getShapeDrawer(e){return this.drawers.get(e)}getSupportedShapes(){return this.drawers.keys()}getUpdaters(e,n=!1){return wo(e,this.updaters,this._initializers.updaters,n)}loadOptions(e,n){for(const i of this.plugins)i.loadOptions(e,n)}loadParticlesOptions(e,n,...i){const r=this.updaters.get(e);if(r)for(const s of r)s.loadOptions&&s.loadOptions(n,...i)}}async function vv(t){const e=yt(t.url,t.index);if(!e)return t.fallback;const n=await fetch(e);return n.ok?n.json():(hn().error(`${qe} ${n.status} while retrieving config file`),t.fallback)}function wv(t){return!t.id&&!t.element&&!t.url&&!t.options}function xv(t){return!wv(t)}class kv{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new yv,this._initialized=!1,this.plugins=new gv(this)}get configs(){const e={};for(const[n,i]of this._configs)e[n]=i;return e}get version(){return"2.12.0"}addConfig(e,n){Je(e)?n&&(n.name=e,this._configs.set(e,n)):this._configs.set(e.name??"default",e)}addEventListener(e,n){this._eventDispatcher.addEventListener(e,n)}async addInteractor(e,n,i=!0){this.plugins.addInteractor(e,n),await this.refresh(i)}async addMover(e,n,i=!0){this.plugins.addParticleMover(e,n),await this.refresh(i)}async addParticleUpdater(e,n,i=!0){this.plugins.addParticleUpdater(e,n),await this.refresh(i)}async addPathGenerator(e,n,i=!0){this.plugins.addPathGenerator(e,n),await this.refresh(i)}async addPlugin(e,n=!0){this.plugins.addPlugin(e),await this.refresh(n)}async addPreset(e,n,i=!1,r=!0){this.plugins.addPreset(e,n,i),await this.refresh(r)}async addShape(e,n,i,r,s,o=!0){let l,a=o,u,c,f;Ut(i)?(a=i,u=void 0):u=i,Ut(r)?(a=r,c=void 0):c=r,Ut(s)?(a=s,f=void 0):f=s,Ud(n)?l={afterEffect:c,destroy:f,draw:n,init:u}:l=n,this.plugins.addShapeDrawer(e,l),await this.refresh(a)}dispatchEvent(e,n){this._eventDispatcher.dispatchEvent(e,n)}dom(){return this._domArray}domItem(e){const n=this.dom(),i=n[e];if(!i||i.destroyed){n.splice(e,1);return}return i}init(){this._initialized||(this._initialized=!0)}async load(e,n){return this.loadFromArray(e,n)}async loadFromArray(e,n,i){let r;return xv(e)?r=e:(r={},Je(e)?r.id=e:r.options=e,et(n)?r.index=n:r.options=n??r.options,r.index=i??r.index),this._loadParams(r)}async loadJSON(e,n,i){let r,s;return et(n)||n===void 0?r=e:(s=e,r=n),this._loadParams({id:s,url:r,index:i})}async refresh(e=!0){e&&this.dom().forEach(n=>n.refresh())}removeEventListener(e,n){this._eventDispatcher.removeEventListener(e,n)}async set(e,n,i,r){const s={index:r};return Je(e)?s.id=e:s.element=e,n instanceof HTMLElement?s.element=n:s.options=n,et(i)?s.index=i:s.options=i??s.options,this._loadParams(s)}async setJSON(e,n,i,r){const s={};return e instanceof HTMLElement?(s.element=e,s.url=n,s.index=i):(s.id=e,s.element=n,s.url=i,s.index=r),this._loadParams(s)}setOnClickHandler(e){const n=this.dom();if(!n.length)throw new Error(`${qe} can only set click handlers after calling tsParticles.load()`);for(const i of n)i.addClickHandler(e)}async _loadParams(e){const n=e.id??`tsparticles${Math.floor($()*1e4)}`,{index:i,url:r}=e,s=r?await vv({fallback:e.options,url:r,index:i}):e.options;let o=e.element??document.getElementById(n);o||(o=document.createElement("div"),o.id=n,document.body.append(o));const l=yt(s,i),a=this.dom(),u=a.findIndex(d=>d.id===n);if(u>=0){const d=this.domItem(u);d&&!d.destroyed&&(d.destroy(),a.splice(u,1))}let c;if(o.tagName.toLowerCase()==="canvas")c=o,c.dataset[xi]="false";else{const d=o.getElementsByTagName("canvas");d.length?(c=d[0],c.dataset[xi]="false"):(c=document.createElement("canvas"),c.dataset[xi]="true",o.appendChild(c))}c.style.width||(c.style.width="100%"),c.style.height||(c.style.height="100%");const f=new mv(this,n,l);return u>=0?a.splice(u,0,f):a.push(f),f.canvas.loadCanvas(c),await f.start(),f}}class _v{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(e){const n=e.value,i=n.hsl??e.value;if(i.h!==void 0&&i.s!==void 0&&i.l!==void 0)return Gn(i)}handleRangeColor(e){const n=e.value,i=n.hsl??e.value;if(i.h!==void 0&&i.l!==void 0)return Gn({h:T(i.h),l:T(i.l),s:T(i.s)})}parseString(e){if(!e.startsWith("hsl"))return;const n=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i,i=n.exec(e);return i?ag({a:i.length>4?Id(i[5]):1,h:parseInt(i[1],10),l:parseInt(i[3],10),s:parseInt(i[2],10)}):void 0}}class Sv{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(e){const n=e.value,i=n.rgb??e.value;if(i.r!==void 0)return i}handleRangeColor(e){const n=e.value,i=n.rgb??e.value;if(i.r!==void 0)return{r:T(i.r),g:T(i.g),b:T(i.b)}}parseString(e){if(!e.startsWith(this.stringPrefix))return;const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i,i=n.exec(e);return i?{a:i.length>4?Id(i[5]):1,b:parseInt(i[3],10),g:parseInt(i[2],10),r:parseInt(i[1],10)}:void 0}}function Cv(){const t=new Sv,e=new _v;qu(t),qu(e);const n=new kv;return n.init(),n}class ct{constructor(e){this.container=e,this.type="external"}}class Ca{constructor(e){this.container=e,this.type="particles"}}const os=Cv();Qn()||(window.tsParticles=os);const Ln=t=>typeof t=="object"&&t!==null;function ls(t,e,n=()=>!1){if(!Ln(t)||!Ln(e))return t===e;const i=Object.keys(t).filter(s=>!n(s)),r=Object.keys(e).filter(s=>!n(s));if(i.length!==r.length)return!1;for(const s of i){const o=t[s],l=e[s];if(Ln(o)&&Ln(l)){if(o===e&&l===t)continue;if(!ls(o,l,n))return!1}else if(Array.isArray(o)&&Array.isArray(l)){if(!Jd(o,l,n))return!1}else if(o!==l)return!1}return!0}function Jd(t,e,n){if(t.length!==e.length)return!1;for(let i=0;ir.startsWith("_"))}componentDidUpdate(){this.refresh()}forceUpdate(){this.refresh().then(()=>{super.forceUpdate()})}componentDidMount(){(async()=>(this.props.init&&await this.props.init(os),this.setState({init:!0},async()=>{await this.loadParticles()})))()}componentWillUnmount(){this.destroy()}render(){const{width:e,height:n,className:i,canvasClassName:r,id:s}=this.props;return So.createElement("div",{className:i,id:s},So.createElement("canvas",{className:r,style:{...this.props.style,width:e,height:n}}))}async refresh(){this.destroy(),await this.loadParticles()}async loadParticles(){if(!this.state.init)return;const e=this.props.id??nh.defaultProps.id??eh,n=await os.load({url:this.props.url,id:e,options:this.props.options??this.props.params});this.props.container&&(this.props.container.current=n),this.setState({library:n}),this.props.loaded&&await this.props.loaded(n)}};th.defaultProps={width:"100%",height:"100%",options:{},style:{},url:void 0,id:eh};class as{static init(e){var s;const n=new as,i=e.selector;if(!i)throw new Error("No selector provided");const r=document.querySelector(i);if(!r)throw new Error("No element found for selector");return os.set(i.replace(".","").replace("!",""),r,{fullScreen:{enable:!1},particles:{color:{value:e.color??"!000000"},links:{color:"random",distance:e.minDistance??120,enable:e.connectParticles??!1},move:{enable:!0,speed:e.speed??.5},number:{value:e.maxParticles??100},size:{value:{min:1,max:e.sizeVariations??3}}},responsive:(s=e.responsive)==null?void 0:s.map(o=>{var l,a,u,c,f;return{maxWidth:o.breakpoint,options:{particles:{color:{value:(l=o.options)==null?void 0:l.color},links:{distance:(a=o.options)==null?void 0:a.minDistance,enable:(u=o.options)==null?void 0:u.connectParticles},number:{value:e.maxParticles},move:{enable:!0,speed:(c=o.options)==null?void 0:c.speed},size:{value:(f=o.options)==null?void 0:f.sizeVariations}}}}})}).then(o=>{n._container=o}),n}destroy(){const e=this._container;e&&e.destroy()}pauseAnimation(){const e=this._container;e&&e.pause()}resumeAnimation(){const e=this._container;e&&e.play()}}const Pv=t=>{const e=(i,r)=>t.load(i,r);e.load=(i,r,s)=>{t.loadJSON(i,r).then(o=>{o&&s(o)}).catch(()=>{s(void 0)})},e.setOnClickHandler=i=>{t.setOnClickHandler(i)};const n=t.dom();return{particlesJS:e,pJSDom:n}},Ev=t=>{const{particlesJS:e,pJSDom:n}=Pv(t);return window.particlesJS=e,window.pJSDom=n,window.Particles=as,{particlesJS:e,pJSDom:n,Particles:as}};function bv(t){const e=t.initialPosition,{dx:n,dy:i}=xe(e,t.position),r=Math.abs(n),s=Math.abs(i),{maxDistance:o}=t.retina,l=o.horizontal,a=o.vertical;if(!(!l&&!a)){if((l&&r>=l||a&&s>=a)&&!t.misplaced)t.misplaced=!!l&&r>l||!!a&&s>a,l&&(t.velocity.x=t.velocity.y/2-t.velocity.x),a&&(t.velocity.y=t.velocity.x/2-t.velocity.y);else if((!l||re.x&&c.x>0)&&(c.x*=-$()),a&&(u.ye.y&&c.y>0)&&(c.y*=-$())}}}function zv(t,e,n,i,r,s){Tv(t,s);const o=t.gravity,l=o!=null&&o.enable&&o.inverse?-1:1;r&&n&&(t.velocity.x+=r*s.factor/(60*n)),o!=null&&o.enable&&n&&(t.velocity.y+=l*(o.acceleration*s.factor)/(60*n));const a=t.moveDecay;t.velocity.multTo(a);const u=t.velocity.mult(n);o!=null&&o.enable&&i>0&&(!o.inverse&&u.y>=0&&u.y>=i||o.inverse&&u.y<=0&&u.y<=-i)&&(u.y=l*i,n&&(t.velocity.y=u.y/n));const c=t.options.zIndex,f=(1-t.zIndexFactor)**c.velocityRate;u.multTo(f);const{position:d}=t;d.addTo(u),e.vibrate&&(d.x+=Math.sin(d.x*Math.cos(d.y)),d.y+=Math.cos(d.y*Math.sin(d.x)))}function Mv(t,e){const n=t.container;if(!t.spin)return;const i={x:t.spin.direction==="clockwise"?Math.cos:Math.sin,y:t.spin.direction==="clockwise"?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*i.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*i.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;const r=Math.max(n.canvas.size.width,n.canvas.size.height);t.spin.radius>r/2?(t.spin.radius=r/2,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=e/100*(1-t.spin.radius/r)}function Tv(t,e){var o;const n=t.options,i=n.move.path;if(!i.enable)return;if(t.lastPathTime<=t.pathDelay){t.lastPathTime+=e.value;return}const s=(o=t.pathGenerator)==null?void 0:o.generate(t,e);s&&t.velocity.addTo(s),i.clamp&&(t.velocity.x=it(t.velocity.x,-1,1),t.velocity.y=it(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay}function Rv(t){return t.slow.inRange?t.slow.factor:1}const Ov=2;class Lv{constructor(){this._initSpin=e=>{const n=e.container,i=e.options,r=i.move.spin;if(!r.enable)return;const s=r.position??{x:50,y:50},o={x:s.x/100*n.canvas.size.width,y:s.y/100*n.canvas.size.height},l=e.getPosition(),a=Le(l,o),u=T(r.acceleration);e.retina.spinAcceleration=u*n.retina.pixelRatio,e.spin={center:o,direction:e.velocity.x>=0?"clockwise":"counter-clockwise",angle:e.velocity.angle,radius:a,acceleration:e.retina.spinAcceleration}}}init(e){const n=e.options,i=n.move.gravity;e.gravity={enable:i.enable,acceleration:T(i.acceleration),inverse:i.inverse},this._initSpin(e)}isEnabled(e){return!e.destroyed&&e.options.move.enable}move(e,n){var v,g;const i=e.options,r=i.move;if(!r.enable)return;const s=e.container,o=s.retina.pixelRatio,l=Rv(e),a=((v=e.retina).moveSpeed??(v.moveSpeed=T(r.speed)*o))*s.retina.reduceFactor,u=(g=e.retina).moveDrift??(g.moveDrift=T(e.options.move.drift)*o),c=Rt(i.size.value)*o,f=r.size?e.getRadius()/c:1,d=a*f*l*(n.factor||1)/Ov,y=e.retina.maxSpeed??s.retina.maxSpeed;r.spin.enable?Mv(e,d):zv(e,r,d,y,u,n),bv(e)}}async function Iv(t,e=!0){await t.addMover("base",()=>new Lv,e)}class Dv{draw(e,n,i){n.circleRange||(n.circleRange={min:0,max:Math.PI*2});const r=n.circleRange;e.arc(0,0,i,r.min,r.max,!1)}getSidesCount(){return 12}particleInit(e,n){const i=n.shapeData,r=(i==null?void 0:i.angle)??{max:360,min:0};n.circleRange=On(r)?{min:r.min*Math.PI/180,max:r.max*Math.PI/180}:{min:0,max:r*Math.PI/180}}}async function Nv(t,e=!0){await t.addShape("circle",new Dv,e)}function xo(t,e,n,i,r){if(!e||!n.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=t.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const s=Pe(n.offset),o=(e.velocity??0)*t.factor+s*3.6,l=e.decay??1;!r||e.status==="increasing"?(e.value+=o,e.value>i&&(e.loops||(e.loops=0),e.loops++,r&&(e.status="decreasing",e.value-=e.value%i))):(e.value-=o,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing",e.value+=e.value)),e.velocity&&l!==1&&(e.velocity*=l),e.value>i&&(e.value%=i)}function Fv(t,e){const{h:n,s:i,l:r}=t.options.color.animation,{color:s}=t;if(!s)return;const{h:o,s:l,l:a}=s;o&&xo(e,o,n,360,!1),l&&xo(e,l,i,100,!0),a&&xo(e,a,r,100,!0)}class jv{constructor(e){this.container=e}init(e){const n=Ui(e.options.color,e.id,e.options.reduceDuplicates);n&&(e.color=qd(n,e.options.color.animation,this.container.retina.reduceFactor))}isEnabled(e){const{h:n,s:i,l:r}=e.options.color.animation,{color:s}=e;return!e.destroyed&&!e.spawning&&((s==null?void 0:s.h.value)!==void 0&&n.enable||(s==null?void 0:s.s.value)!==void 0&&i.enable||(s==null?void 0:s.l.value)!==void 0&&r.enable)}update(e,n){Fv(e,n)}}async function Av(t,e=!0){await t.addParticleUpdater("color",n=>new jv(n),e)}function Bv(t,e,n,i){switch(t.options.opacity.animation.destroy){case"max":e>=i&&t.destroy();break;case"min":e<=n&&t.destroy();break}}function Uv(t,e){const n=t.opacity;if(t.destroyed||!(n!=null&&n.enable)||(n.maxLoops??0)>0&&(n.loops??0)>(n.maxLoops??0))return;const i=n.min,r=n.max,s=n.decay??1;if(n.time||(n.time=0),(n.delayTime??0)>0&&n.time<(n.delayTime??0)&&(n.time+=e.value),!((n.delayTime??0)>0&&n.time<(n.delayTime??0))){switch(n.status){case"increasing":n.value>=r?(n.status="decreasing",n.loops||(n.loops=0),n.loops++):n.value+=(n.velocity??0)*e.factor;break;case"decreasing":n.value<=i?(n.status="increasing",n.loops||(n.loops=0),n.loops++):n.value-=(n.velocity??0)*e.factor;break}n.velocity&&n.decay!==1&&(n.velocity*=s),Bv(t,n.value,i,r),t.destroyed||(n.value=it(n.value,i,r))}}class $v{constructor(e){this.container=e}init(e){const n=e.options.opacity;e.opacity=Ad(n,1);const i=n.animation;i.enable&&(e.opacity.velocity=T(i.speed)/100*this.container.retina.reduceFactor,i.sync||(e.opacity.velocity*=$()))}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.opacity&&e.opacity.enable&&((e.opacity.maxLoops??0)<=0||(e.opacity.maxLoops??0)>0&&(e.opacity.loops??0)<(e.opacity.maxLoops??0))}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,n){this.isEnabled(e)&&Uv(e,n)}}async function Hv(t,e=!0){await t.addParticleUpdater("opacity",n=>new $v(n),e)}function Wv(t){if(t.outMode!=="bounce"&&t.outMode!=="bounce-horizontal"&&t.outMode!=="bounceHorizontal"&&t.outMode!=="split"||t.direction!=="left"&&t.direction!=="right")return;t.bounds.right<0&&t.direction==="left"?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction==="right"&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const e=t.particle.velocity.x;let n=!1;if(t.direction==="right"&&t.bounds.right>=t.canvasSize.width&&e>0||t.direction==="left"&&t.bounds.left<=0&&e<0){const r=dn(t.particle.options.bounce.horizontal);t.particle.velocity.x*=-r,n=!0}if(!n)return;const i=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&t.direction==="right"?t.particle.position.x=t.canvasSize.width-i:t.bounds.left<=0&&t.direction==="left"&&(t.particle.position.x=i),t.outMode==="split"&&t.particle.destroy()}function Vv(t){if(t.outMode!=="bounce"&&t.outMode!=="bounce-vertical"&&t.outMode!=="bounceVertical"&&t.outMode!=="split"||t.direction!=="bottom"&&t.direction!=="top")return;t.bounds.bottom<0&&t.direction==="top"?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction==="bottom"&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const e=t.particle.velocity.y;let n=!1;if(t.direction==="bottom"&&t.bounds.bottom>=t.canvasSize.height&&e>0||t.direction==="top"&&t.bounds.top<=0&&e<0){const r=dn(t.particle.options.bounce.vertical);t.particle.velocity.y*=-r,n=!0}if(!n)return;const i=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&t.direction==="bottom"?t.particle.position.y=t.canvasSize.height-i:t.bounds.top<=0&&t.direction==="top"&&(t.particle.position.y=i),t.outMode==="split"&&t.particle.destroy()}class qv{constructor(e){this.container=e,this.modes=["bounce","bounce-vertical","bounce-horizontal","bounceVertical","bounceHorizontal","split"]}update(e,n,i,r){if(!this.modes.includes(r))return;const s=this.container;let o=!1;for(const[,d]of s.plugins)if(d.particleBounce!==void 0&&(o=d.particleBounce(e,i,n)),o)break;if(o)return;const l=e.getPosition(),a=e.offset,u=e.getRadius(),c=Xi(l,u),f=s.canvas.size;Wv({particle:e,outMode:r,direction:n,bounds:c,canvasSize:f,offset:a,size:u}),Vv({particle:e,outMode:r,direction:n,bounds:c,canvasSize:f,offset:a,size:u})}}class Qv{constructor(e){this.container=e,this.modes=["destroy"]}update(e,n,i,r){if(!this.modes.includes(r))return;const s=this.container;switch(e.outType){case"normal":case"outside":if(xa(e.position,s.canvas.size,se.origin,e.getRadius(),n))return;break;case"inside":{const{dx:o,dy:l}=xe(e.position,e.moveCenter),{x:a,y:u}=e.velocity;if(a<0&&o>e.moveCenter.radius||u<0&&l>e.moveCenter.radius||a>=0&&o<-e.moveCenter.radius||u>=0&&l<-e.moveCenter.radius)return;break}}s.particles.remove(e,void 0,!0)}}class Gv{constructor(e){this.container=e,this.modes=["none"]}update(e,n,i,r){if(!this.modes.includes(r)||e.options.move.distance.horizontal&&(n==="left"||n==="right")||e.options.move.distance.vertical&&(n==="top"||n==="bottom"))return;const s=e.options.move.gravity,o=this.container,l=o.canvas.size,a=e.getRadius();if(s.enable){const u=e.position;(!s.inverse&&u.y>l.height+a&&n==="bottom"||s.inverse&&u.y<-a&&n==="top")&&o.particles.remove(e)}else{if(e.velocity.y>0&&e.position.y<=l.height+a||e.velocity.y<0&&e.position.y>=-a||e.velocity.x>0&&e.position.x<=l.width+a||e.velocity.x<0&&e.position.x>=-a)return;xa(e.position,o.canvas.size,se.origin,a,n)||o.particles.remove(e)}}}class Yv{constructor(e){this.container=e,this.modes=["out"]}update(e,n,i,r){if(!this.modes.includes(r))return;const s=this.container;switch(e.outType){case"inside":{const{x:o,y:l}=e.velocity,a=se.origin;a.length=e.moveCenter.radius,a.angle=e.velocity.angle+Math.PI,a.addTo(se.create(e.moveCenter));const{dx:u,dy:c}=xe(e.position,a);if(o<=0&&u>=0||l<=0&&c>=0||o>=0&&u<=0||l>=0&&c<=0)return;e.position.x=Math.floor(Pe({min:0,max:s.canvas.size.width})),e.position.y=Math.floor(Pe({min:0,max:s.canvas.size.height}));const{dx:f,dy:d}=xe(e.position,e.moveCenter);e.direction=Math.atan2(-d,-f),e.velocity.angle=e.direction;break}default:{if(xa(e.position,s.canvas.size,se.origin,e.getRadius(),n))return;switch(e.outType){case"outside":{e.position.x=Math.floor(Pe({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.x,e.position.y=Math.floor(Pe({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.y;const{dx:o,dy:l}=xe(e.position,e.moveCenter);e.moveCenter.radius&&(e.direction=Math.atan2(l,o),e.velocity.angle=e.direction);break}case"normal":{const o=e.options.move.warp,l=s.canvas.size,a={bottom:l.height+e.getRadius()+e.offset.y,left:-e.getRadius()-e.offset.x,right:l.width+e.getRadius()+e.offset.x,top:-e.getRadius()-e.offset.y},u=e.getRadius(),c=Xi(e.position,u);n==="right"&&c.left>l.width+e.offset.x?(e.position.x=a.left,e.initialPosition.x=e.position.x,o||(e.position.y=$()*l.height,e.initialPosition.y=e.position.y)):n==="left"&&c.right<-e.offset.x&&(e.position.x=a.right,e.initialPosition.x=e.position.x,o||(e.position.y=$()*l.height,e.initialPosition.y=e.position.y)),n==="bottom"&&c.top>l.height+e.offset.y?(o||(e.position.x=$()*l.width,e.initialPosition.x=e.position.x),e.position.y=a.top,e.initialPosition.y=e.position.y):n==="top"&&c.bottom<-e.offset.y&&(o||(e.position.x=$()*l.width,e.initialPosition.x=e.position.x),e.position.y=a.bottom,e.initialPosition.y=e.position.y);break}}break}}}}class Kv{constructor(e){this.container=e,this._updateOutMode=(n,i,r,s)=>{for(const o of this.updaters)o.update(n,s,i,r)},this.updaters=[new qv(e),new Qv(e),new Yv(e),new Gv(e)]}init(){}isEnabled(e){return!e.destroyed&&!e.spawning}update(e,n){const i=e.options.move.outModes;this._updateOutMode(e,n,i.bottom??i.default,"bottom"),this._updateOutMode(e,n,i.left??i.default,"left"),this._updateOutMode(e,n,i.right??i.default,"right"),this._updateOutMode(e,n,i.top??i.default,"top")}}async function Xv(t,e=!0){await t.addParticleUpdater("outModes",n=>new Kv(n),e)}function Zv(t,e,n,i){switch(t.options.size.animation.destroy){case"max":e>=i&&t.destroy();break;case"min":e<=n&&t.destroy();break}}function Jv(t,e){const n=t.size;if(t.destroyed||!n||!n.enable||(n.maxLoops??0)>0&&(n.loops??0)>(n.maxLoops??0))return;const i=(n.velocity??0)*e.factor,r=n.min,s=n.max,o=n.decay??1;if(n.time||(n.time=0),(n.delayTime??0)>0&&n.time<(n.delayTime??0)&&(n.time+=e.value),!((n.delayTime??0)>0&&n.time<(n.delayTime??0))){switch(n.status){case"increasing":n.value>=s?(n.status="decreasing",n.loops||(n.loops=0),n.loops++):n.value+=i;break;case"decreasing":n.value<=r?(n.status="increasing",n.loops||(n.loops=0),n.loops++):n.value-=i}n.velocity&&o!==1&&(n.velocity*=o),Zv(t,n.value,r,s),t.destroyed||(n.value=it(n.value,r,s))}}class e0{init(e){const n=e.container,i=e.options.size,r=i.animation;r.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??n.retina.sizeAnimationSpeed)/100*n.retina.reduceFactor,r.sync||(e.size.velocity*=$()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??0)<=0||(e.size.maxLoops??0)>0&&(e.size.loops??0)<(e.size.maxLoops??0))}reset(e){e.size.loops=0}update(e,n){this.isEnabled(e)&&Jv(e,n)}}async function t0(t,e=!0){await t.addParticleUpdater("size",()=>new e0,e)}async function n0(t,e=!0){await Iv(t,!1),await Nv(t,!1),await Av(t,!1),await Hv(t,!1),await Xv(t,!1),await t0(t,!1),await t.refresh(e)}async function i0(){oo("ease-in-quad",t=>t**2),oo("ease-out-quad",t=>1-(1-t)**2),oo("ease-in-out-quad",t=>t<.5?2*t**2:1-(-2*t+2)**2/2)}class r0{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed),e.speed!==void 0&&(this.speed=e.speed))}}let s0=class extends ct{constructor(e,n){super(n),this._clickAttract=()=>{const i=this.container;i.attract||(i.attract={particles:[]});const{attract:r}=i;if(r.finish||(r.count||(r.count=0),r.count++,r.count===i.particles.count&&(r.finish=!0)),r.clicking){const s=i.interactivity.mouse.clickPosition,o=i.retina.attractModeDistance;if(!o||o<0||!s)return;this._processAttract(s,o,new me(s.x,s.y,o))}else r.clicking===!1&&(r.particles=[])},this._hoverAttract=()=>{const i=this.container,r=i.interactivity.mouse.position,s=i.retina.attractModeDistance;!s||s<0||!r||this._processAttract(r,s,new me(r.x,r.y,s))},this._processAttract=(i,r,s)=>{const o=this.container,l=o.actualOptions.interactivity.modes.attract;if(!l)return;const a=o.particles.quadTree.query(s,u=>this.isEnabled(u));for(const u of a){const{dx:c,dy:f,distance:d}=xe(u.position,i),y=l.speed*l.factor,v=it(Ld(l.easing)(1-d/r)*y,0,l.maxSpeed),g=se.create(d===0?y:c/d*v,d===0?y:f/d*v);u.position.subFrom(g)}},this._engine=e,n.attract||(n.attract={particles:[]}),this.handleClickMode=i=>{const r=this.container.actualOptions,s=r.interactivity.modes.attract;if(!(!s||i!=="attract")){n.attract||(n.attract={particles:[]}),n.attract.clicking=!0,n.attract.count=0;for(const o of n.attract.particles)this.isEnabled(o)&&o.velocity.setTo(o.initialVelocity);n.attract.particles=[],n.attract.finish=!1,setTimeout(()=>{n.destroyed||(n.attract||(n.attract={particles:[]}),n.attract.clicking=!1)},s.duration*1e3)}}}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.attract;n&&(e.retina.attractModeDistance=n.distance*e.retina.pixelRatio)}async interact(){const e=this.container,n=e.actualOptions,i=e.interactivity.status===fn,r=n.interactivity.events,s=r.onHover.enable,o=r.onHover.mode,l=r.onClick.enable,a=r.onClick.mode;i&&s&&X("attract",o)?this._hoverAttract():l&&X("attract",a)&&this._clickAttract()}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events;if((!r.position||!s.onHover.enable)&&(!r.clickPosition||!s.onClick.enable))return!1;const o=s.onHover.mode,l=s.onClick.mode;return X("attract",o)||X("attract",l)}loadModeOptions(e,...n){e.attract||(e.attract=new r0);for(const i of n)e.attract.load(i==null?void 0:i.attract)}reset(){}};async function o0(t,e=!0){await t.addInteractor("externalAttract",n=>new s0(t,n),e)}class l0{constructor(){this.distance=200}load(e){e&&e.distance!==void 0&&(this.distance=e.distance)}}class a0 extends ct{constructor(e){super(e),this._processBounce=(n,i,r)=>{const s=this.container.particles.quadTree.query(r,o=>this.isEnabled(o));for(const o of s)r instanceof me?Fd(kl(o),{position:n,radius:i,mass:i**2*Math.PI/2,velocity:se.origin,factor:se.origin}):r instanceof rt&&rg(o,Xi(n,i))},this._processMouseBounce=()=>{const n=this.container,i=n.retina.pixelRatio,r=10*i,s=n.interactivity.mouse.position,o=n.retina.bounceModeDistance;!o||o<0||!s||this._processBounce(s,o,new me(s.x,s.y,o+r))},this._singleSelectorBounce=(n,i)=>{const r=this.container,s=document.querySelectorAll(n);s.length&&s.forEach(o=>{const l=o,a=r.retina.pixelRatio,u={x:(l.offsetLeft+l.offsetWidth/2)*a,y:(l.offsetTop+l.offsetHeight/2)*a},c=l.offsetWidth/2*a,f=10*a,d=i.type==="circle"?new me(u.x,u.y,c+f):new rt(l.offsetLeft*a-f,l.offsetTop*a-f,l.offsetWidth*a+f*2,l.offsetHeight*a+f*2);this._processBounce(u,c,d)})}}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.bounce;n&&(e.retina.bounceModeDistance=n.distance*e.retina.pixelRatio)}async interact(){const e=this.container,n=e.actualOptions,i=n.interactivity.events,r=e.interactivity.status===fn,s=i.onHover.enable,o=i.onHover.mode,l=i.onDiv;r&&s&&X("bounce",o)?this._processMouseBounce():_a("bounce",l,(a,u)=>this._singleSelectorBounce(a,u))}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events,o=s.onDiv;return r.position&&s.onHover.enable&&X("bounce",s.onHover.mode)||ka("bounce",o)}loadModeOptions(e,...n){e.bounce||(e.bounce=new l0);for(const i of n)e.bounce.load(i==null?void 0:i.bounce)}reset(){}}async function u0(t,e=!0){await t.addInteractor("externalBounce",n=>new a0(n),e)}class ih{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(e){if(e){if(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.mix!==void 0&&(this.mix=e.mix),e.opacity!==void 0&&(this.opacity=e.opacity),e.color!==void 0){const n=Ie(this.color)?void 0:this.color;this.color=oe(e.color,i=>ce.create(n,i))}e.size!==void 0&&(this.size=e.size)}}}class c0 extends ih{constructor(){super(),this.selectors=[]}get ids(){return oe(this.selectors,e=>e.replace("#",""))}set ids(e){this.selectors=oe(e,n=>`#${n}`)}load(e){super.load(e),e&&(e.ids!==void 0&&(this.ids=e.ids),e.selectors!==void 0&&(this.selectors=e.selectors))}}class f0 extends ih{load(e){super.load(e),e&&(this.divs=oe(e.divs,n=>{const i=new c0;return i.load(n),i}))}}function tc(t,e,n,i){if(e>=n){const r=t+(e-n)*i;return it(r,t,e)}else if(e{var u;const n=this.container,i=n.actualOptions,r=n.interactivity.mouse.clickPosition,s=i.interactivity.modes.bubble;if(!s||!r)return;n.bubble||(n.bubble={});const o=n.retina.bubbleModeDistance;if(!o||o<0)return;const l=n.particles.quadTree.queryCircle(r,o,c=>this.isEnabled(c)),{bubble:a}=n;for(const c of l){if(!a.clicking)continue;c.bubble.inRange=!a.durationEnd;const f=c.getPosition(),d=Le(f,r),y=(new Date().getTime()-(n.interactivity.mouse.clickTime||0))/1e3;y>s.duration&&(a.durationEnd=!0),y>s.duration*2&&(a.clicking=!1,a.durationEnd=!1);const v={bubbleObj:{optValue:n.retina.bubbleModeSize,value:c.bubble.radius},particlesObj:{optValue:Rt(c.options.size.value)*n.retina.pixelRatio,value:c.size.value},type:"size"};this._process(c,d,y,v);const g={bubbleObj:{optValue:s.opacity,value:c.bubble.opacity},particlesObj:{optValue:Rt(c.options.opacity.value),value:((u=c.opacity)==null?void 0:u.value)??1},type:"opacity"};this._process(c,d,y,g),!a.durationEnd&&d<=o?this._hoverBubbleColor(c,d):delete c.bubble.color}},this._hoverBubble=()=>{const n=this.container,i=n.interactivity.mouse.position,r=n.retina.bubbleModeDistance;if(!r||r<0||i===void 0)return;const s=n.particles.quadTree.queryCircle(i,r,o=>this.isEnabled(o));for(const o of s){o.bubble.inRange=!0;const l=o.getPosition(),a=Le(l,i),u=1-a/r;a<=r?u>=0&&n.interactivity.status===fn&&(this._hoverBubbleSize(o,u),this._hoverBubbleOpacity(o,u),this._hoverBubbleColor(o,u)):this.reset(o),n.interactivity.status===wl&&this.reset(o)}},this._hoverBubbleColor=(n,i,r)=>{const s=this.container.actualOptions,o=r??s.interactivity.modes.bubble;if(o){if(!n.bubble.finalColor){const l=o.color;if(!l)return;const a=yt(l);n.bubble.finalColor=Ui(a)}if(n.bubble.finalColor)if(o.mix){n.bubble.color=void 0;const l=n.getFillColor();n.bubble.color=l?Hd(Sa(l,n.bubble.finalColor,1-i,i)):n.bubble.finalColor}else n.bubble.color=n.bubble.finalColor}},this._hoverBubbleOpacity=(n,i,r)=>{var f,d;const s=this.container,o=s.actualOptions,l=(r==null?void 0:r.opacity)??((f=o.interactivity.modes.bubble)==null?void 0:f.opacity);if(!l)return;const a=n.options.opacity.value,u=((d=n.opacity)==null?void 0:d.value)??1,c=tc(u,l,Rt(a),i);c!==void 0&&(n.bubble.opacity=c)},this._hoverBubbleSize=(n,i,r)=>{const s=this.container,o=r!=null&&r.size?r.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(o===void 0)return;const l=Rt(n.options.size.value)*s.retina.pixelRatio,a=n.size.value,u=tc(a,o,l,i);u!==void 0&&(n.bubble.radius=u)},this._process=(n,i,r,s)=>{const o=this.container,l=s.bubbleObj.optValue,a=o.actualOptions,u=a.interactivity.modes.bubble;if(!u||l===void 0)return;const c=u.duration,f=o.retina.bubbleModeDistance,d=s.particlesObj.optValue,y=s.bubbleObj.value,v=s.particlesObj.value||0,g=s.type;if(!(!f||f<0||l===d))if(o.bubble||(o.bubble={}),o.bubble.durationEnd)y&&(g==="size"&&delete n.bubble.radius,g==="opacity"&&delete n.bubble.opacity);else if(i<=f){if((y??v)!==l){const p=v-r*(v-l)/c;g==="size"&&(n.bubble.radius=p),g==="opacity"&&(n.bubble.opacity=p)}}else g==="size"&&delete n.bubble.radius,g==="opacity"&&delete n.bubble.opacity},this._singleSelectorHover=(n,i,r)=>{const s=this.container,o=document.querySelectorAll(i),l=s.actualOptions.interactivity.modes.bubble;!l||!o.length||o.forEach(a=>{const u=a,c=s.retina.pixelRatio,f={x:(u.offsetLeft+u.offsetWidth/2)*c,y:(u.offsetTop+u.offsetHeight/2)*c},d=u.offsetWidth/2*c,y=r.type==="circle"?new me(f.x,f.y,d):new rt(u.offsetLeft*c,u.offsetTop*c,u.offsetWidth*c,u.offsetHeight*c),v=s.particles.quadTree.query(y,g=>this.isEnabled(g));for(const g of v){if(!y.contains(g.getPosition()))continue;g.bubble.inRange=!0;const x=l.divs,p=Nd(x,u);(!g.bubble.div||g.bubble.div!==u)&&(this.clear(g,n,!0),g.bubble.div=u),this._hoverBubbleSize(g,1,p),this._hoverBubbleOpacity(g,1,p),this._hoverBubbleColor(g,1,p)}})},e.bubble||(e.bubble={}),this.handleClickMode=n=>{n==="bubble"&&(e.bubble||(e.bubble={}),e.bubble.clicking=!0)}}clear(e,n,i){e.bubble.inRange&&!i||(delete e.bubble.div,delete e.bubble.opacity,delete e.bubble.radius,delete e.bubble.color)}init(){const e=this.container,n=e.actualOptions.interactivity.modes.bubble;n&&(e.retina.bubbleModeDistance=n.distance*e.retina.pixelRatio,n.size!==void 0&&(e.retina.bubbleModeSize=n.size*e.retina.pixelRatio))}async interact(e){const n=this.container.actualOptions,i=n.interactivity.events,r=i.onHover,s=i.onClick,o=r.enable,l=r.mode,a=s.enable,u=s.mode,c=i.onDiv;o&&X("bubble",l)?this._hoverBubble():a&&X("bubble",u)?this._clickBubble():_a("bubble",c,(f,d)=>this._singleSelectorHover(e,f,d))}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events,{onClick:o,onDiv:l,onHover:a}=s,u=ka("bubble",l);return u||a.enable&&r.position||o.enable&&r.clickPosition?X("bubble",a.mode)||X("bubble",o.mode)||u:!1}loadModeOptions(e,...n){e.bubble||(e.bubble=new f0);for(const i of n)e.bubble.load(i==null?void 0:i.bubble)}reset(e){e.bubble.inRange=!1}}async function h0(t,e=!0){await t.addInteractor("externalBubble",n=>new d0(n),e)}class p0{constructor(){this.opacity=.5}load(e){e&&e.opacity!==void 0&&(this.opacity=e.opacity)}}class m0{constructor(){this.distance=80,this.links=new p0,this.radius=60}get lineLinked(){return this.links}set lineLinked(e){this.links=e}get line_linked(){return this.links}set line_linked(e){this.links=e}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links??e.lineLinked??e.line_linked),e.radius!==void 0&&(this.radius=e.radius))}}function y0(t,e,n,i){const r=Math.floor(n.getRadius()/e.getRadius()),s=e.getFillColor(),o=n.getFillColor();if(!s||!o)return;const l=e.getPosition(),a=n.getPosition(),u=Sa(s,o,e.getRadius(),n.getRadius()),c=t.createLinearGradient(l.x,l.y,a.x,a.y);return c.addColorStop(0,$i(s,i)),c.addColorStop(r>1?1:r,gt(u,i)),c.addColorStop(1,$i(o,i)),c}function g0(t,e,n,i,r){ki(t,i,r),t.lineWidth=e,t.strokeStyle=n,t.stroke()}function v0(t,e,n,i){const r=t.actualOptions,s=r.interactivity.modes.connect;if(s)return y0(e,n,i,s.links.opacity)}function w0(t,e,n){t.canvas.draw(i=>{const r=v0(t,i,e,n);if(!r)return;const s=e.getPosition(),o=n.getPosition();g0(i,e.retina.linksWidth??0,r,s,o)})}class x0 extends ct{constructor(e){super(e)}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.connect;n&&(e.retina.connectModeDistance=n.distance*e.retina.pixelRatio,e.retina.connectModeRadius=n.radius*e.retina.pixelRatio)}async interact(){const e=this.container;if(e.actualOptions.interactivity.events.onHover.enable&&e.interactivity.status==="pointermove"){const i=e.interactivity.mouse.position;if(!e.retina.connectModeDistance||e.retina.connectModeDistance<0||!e.retina.connectModeRadius||e.retina.connectModeRadius<0||!i)return;const r=Math.abs(e.retina.connectModeRadius),s=e.particles.quadTree.queryCircle(i,r,l=>this.isEnabled(l));let o=0;for(const l of s){const a=l.getPosition();for(const u of s.slice(o+1)){const c=u.getPosition(),f=Math.abs(e.retina.connectModeDistance),d=Math.abs(a.x-c.x),y=Math.abs(a.y-c.y);dnew x0(n),e)}class _0{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(e){e&&(e.blink!==void 0&&(this.blink=e.blink),e.color!==void 0&&(this.color=ce.create(this.color,e.color)),e.consent!==void 0&&(this.consent=e.consent),e.opacity!==void 0&&(this.opacity=e.opacity))}}class S0{constructor(){this.distance=100,this.links=new _0}get lineLinked(){return this.links}set lineLinked(e){this.links=e}get line_linked(){return this.links}set line_linked(e){this.links=e}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links??e.lineLinked??e.line_linked))}}function C0(t,e,n,i,r,s){ki(t,n,i),t.strokeStyle=gt(r,s),t.lineWidth=e,t.stroke()}function P0(t,e,n,i,r){t.canvas.draw(s=>{const o=e.getPosition();C0(s,e.retina.linksWidth??0,o,r,n,i)})}class E0 extends ct{constructor(e){super(e)}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.grab;n&&(e.retina.grabModeDistance=n.distance*e.retina.pixelRatio)}async interact(){var l;const e=this.container,n=e.actualOptions,i=n.interactivity;if(!i.modes.grab||!i.events.onHover.enable||e.interactivity.status!==fn)return;const r=e.interactivity.mouse.position;if(!r)return;const s=e.retina.grabModeDistance;if(!s||s<0)return;const o=e.particles.quadTree.queryCircle(r,s,a=>this.isEnabled(a));for(const a of o){const u=a.getPosition(),c=Le(u,r);if(c>s)continue;const f=i.modes.grab.links,d=f.opacity,y=d-c*d/s;if(y<=0)continue;const v=f.color??((l=a.options.links)==null?void 0:l.color);if(!e.particles.grabLineColor&&v){const x=i.modes.grab.links;e.particles.grabLineColor=Vd(v,x.blink,x.consent)}const g=_l(a,void 0,e.particles.grabLineColor);g&&P0(e,a,g,y,r)}}isEnabled(e){const n=this.container,i=n.interactivity.mouse,r=((e==null?void 0:e.interactivity)??n.actualOptions.interactivity).events;return r.onHover.enable&&!!i.position&&X("grab",r.onHover.mode)}loadModeOptions(e,...n){e.grab||(e.grab=new S0);for(const i of n)e.grab.load(i==null?void 0:i.grab)}reset(){}}async function b0(t,e=!0){await t.addInteractor("externalGrab",n=>new E0(n),e)}class z0 extends ct{constructor(e){super(e),this.handleClickMode=n=>{if(n!=="pause")return;const i=this.container;i.getAnimationStatus()?i.pause():i.play()}}clear(){}init(){}async interact(){}isEnabled(){return!0}reset(){}}async function M0(t,e=!0){await t.addInteractor("externalPause",n=>new z0(n),e)}class T0{constructor(){this.default=!0,this.groups=[],this.quantity=4}get particles_nb(){return this.quantity}set particles_nb(e){this.quantity=O(e)}load(e){if(!e)return;e.default!==void 0&&(this.default=e.default),e.groups!==void 0&&(this.groups=e.groups.map(i=>i)),this.groups.length||(this.default=!0);const n=e.quantity??e.particles_nb;n!==void 0&&(this.quantity=O(n))}}class R0 extends ct{constructor(e){super(e),this.handleClickMode=n=>{if(n!=="push")return;const i=this.container,r=i.actualOptions,s=r.interactivity.modes.push;if(!s)return;const o=T(s.quantity);if(o<=0)return;const l=Es([void 0,...s.groups]),a=l!==void 0?i.actualOptions.particles.groups[l]:void 0;i.particles.push(o,i.interactivity.mouse,a,l)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(e,...n){e.push||(e.push=new T0);for(const i of n)e.push.load(i==null?void 0:i.push)}reset(){}}async function O0(t,e=!0){await t.addInteractor("externalPush",n=>new R0(n),e)}class L0{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(e){this.quantity=O(e)}load(e){if(!e)return;const n=e.quantity??e.particles_nb;n!==void 0&&(this.quantity=O(n))}}class I0 extends ct{constructor(e){super(e),this.handleClickMode=n=>{const i=this.container,r=i.actualOptions;if(!r.interactivity.modes.remove||n!=="remove")return;const s=T(r.interactivity.modes.remove.quantity);i.particles.removeQuantity(s)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(e,...n){e.remove||(e.remove=new L0);for(const i of n)e.remove.load(i==null?void 0:i.remove)}reset(){}}async function D0(t,e=!0){await t.addInteractor("externalRemove",n=>new I0(n),e)}class rh{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.speed!==void 0&&(this.speed=e.speed),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed))}}class N0 extends rh{constructor(){super(),this.selectors=[]}get ids(){return oe(this.selectors,e=>e.replace("#",""))}set ids(e){this.selectors=oe(e,n=>`#${n}`)}load(e){super.load(e),e&&(e.ids!==void 0&&(this.ids=e.ids),e.selectors!==void 0&&(this.selectors=e.selectors))}}class F0 extends rh{load(e){super.load(e),e&&(this.divs=oe(e.divs,n=>{const i=new N0;return i.load(n),i}))}}class j0 extends ct{constructor(e,n){super(n),this._clickRepulse=()=>{const i=this.container,r=i.actualOptions.interactivity.modes.repulse;if(!r)return;const s=i.repulse||{particles:[]};if(s.finish||(s.count||(s.count=0),s.count++,s.count===i.particles.count&&(s.finish=!0)),s.clicking){const o=i.retina.repulseModeDistance;if(!o||o<0)return;const l=Math.pow(o/6,3),a=i.interactivity.mouse.clickPosition;if(a===void 0)return;const u=new me(a.x,a.y,l),c=i.particles.quadTree.query(u,f=>this.isEnabled(f));for(const f of c){const{dx:d,dy:y,distance:v}=xe(a,f.position),g=v**2,x=r.speed,p=-l*x/g;if(g<=l){s.particles.push(f);const h=se.create(d,y);h.length=p,f.velocity.setTo(h)}}}else if(s.clicking===!1){for(const o of s.particles)o.velocity.setTo(o.initialVelocity);s.particles=[]}},this._hoverRepulse=()=>{const i=this.container,r=i.interactivity.mouse.position,s=i.retina.repulseModeDistance;!s||s<0||!r||this._processRepulse(r,s,new me(r.x,r.y,s))},this._processRepulse=(i,r,s,o)=>{const l=this.container,a=l.particles.quadTree.query(s,c=>this.isEnabled(c)),u=l.actualOptions.interactivity.modes.repulse;if(u)for(const c of a){const{dx:f,dy:d,distance:y}=xe(c.position,i),v=((o==null?void 0:o.speed)??u.speed)*u.factor,g=it(Ld(u.easing)(1-y/r)*v,0,u.maxSpeed),x=se.create(y===0?v:f/y*g,y===0?v:d/y*g);c.position.addTo(x)}},this._singleSelectorRepulse=(i,r)=>{const s=this.container,o=s.actualOptions.interactivity.modes.repulse;if(!o)return;const l=document.querySelectorAll(i);l.length&&l.forEach(a=>{const u=a,c=s.retina.pixelRatio,f={x:(u.offsetLeft+u.offsetWidth/2)*c,y:(u.offsetTop+u.offsetHeight/2)*c},d=u.offsetWidth/2*c,y=r.type==="circle"?new me(f.x,f.y,d):new rt(u.offsetLeft*c,u.offsetTop*c,u.offsetWidth*c,u.offsetHeight*c),v=o.divs,g=Nd(v,u);this._processRepulse(f,d,y,g)})},this._engine=e,n.repulse||(n.repulse={particles:[]}),this.handleClickMode=i=>{const r=this.container.actualOptions,s=r.interactivity.modes.repulse;if(!s||i!=="repulse")return;n.repulse||(n.repulse={particles:[]});const o=n.repulse;o.clicking=!0,o.count=0;for(const l of n.repulse.particles)this.isEnabled(l)&&l.velocity.setTo(l.initialVelocity);o.particles=[],o.finish=!1,setTimeout(()=>{n.destroyed||(o.clicking=!1)},s.duration*1e3)}}clear(){}init(){const e=this.container,n=e.actualOptions.interactivity.modes.repulse;n&&(e.retina.repulseModeDistance=n.distance*e.retina.pixelRatio)}async interact(){const e=this.container,n=e.actualOptions,i=e.interactivity.status===fn,r=n.interactivity.events,s=r.onHover,o=s.enable,l=s.mode,a=r.onClick,u=a.enable,c=a.mode,f=r.onDiv;i&&o&&X("repulse",l)?this._hoverRepulse():u&&X("repulse",c)?this._clickRepulse():_a("repulse",f,(d,y)=>this._singleSelectorRepulse(d,y))}isEnabled(e){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.interactivity).events,o=s.onDiv,l=s.onHover,a=s.onClick,u=ka("repulse",o);if(!(u||l.enable&&r.position||a.enable&&r.clickPosition))return!1;const c=l.mode,f=a.mode;return X("repulse",c)||X("repulse",f)||u}loadModeOptions(e,...n){e.repulse||(e.repulse=new F0);for(const i of n)e.repulse.load(i==null?void 0:i.repulse)}reset(){}}async function A0(t,e=!0){await t.addInteractor("externalRepulse",n=>new j0(t,n),e)}class B0{constructor(){this.factor=3,this.radius=200}load(e){e&&(e.factor!==void 0&&(this.factor=e.factor),e.radius!==void 0&&(this.radius=e.radius))}}class U0 extends ct{constructor(e){super(e)}clear(e,n,i){e.slow.inRange&&!i||(e.slow.factor=1)}init(){const e=this.container,n=e.actualOptions.interactivity.modes.slow;n&&(e.retina.slowModeRadius=n.radius*e.retina.pixelRatio)}async interact(){}isEnabled(e){const n=this.container,i=n.interactivity.mouse,r=((e==null?void 0:e.interactivity)??n.actualOptions.interactivity).events;return r.onHover.enable&&!!i.position&&X("slow",r.onHover.mode)}loadModeOptions(e,...n){e.slow||(e.slow=new B0);for(const i of n)e.slow.load(i==null?void 0:i.slow)}reset(e){e.slow.inRange=!1;const n=this.container,i=n.actualOptions,r=n.interactivity.mouse.position,s=n.retina.slowModeRadius,o=i.interactivity.modes.slow;if(!o||!s||s<0||!r)return;const l=e.getPosition(),a=Le(r,l),u=a/s,c=o.factor,{slow:f}=e;a>s||(f.inRange=!0,f.factor=u/c)}}async function $0(t,e=!0){await t.addInteractor("externalSlow",n=>new U0(n),e)}const ko=[0,4,2,1],nc=[8,8,4,2];class H0{constructor(e){this.pos=0,this.data=new Uint8ClampedArray(e)}getString(e){const n=this.data.slice(this.pos,this.pos+e);return this.pos+=n.length,n.reduce((i,r)=>i+String.fromCharCode(r),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let e="",n=0;do{n=this.data[this.pos++];for(let i=n;--i>=0;e+=String.fromCharCode(this.data[this.pos++]));}while(n!==0);return e}readSubBlocksBin(){let e=0,n=0;for(let r=0;(e=this.data[this.pos+r])!==0;r+=e+1)n+=e;const i=new Uint8Array(n);for(let r=0;(e=this.data[this.pos++])!==0;)for(let s=e;--s>=0;i[r++]=this.data[this.pos++]);return i}skipSubBlocks(){for(;this.data[this.pos]!==0;this.pos+=this.data[this.pos]+1);this.pos++}}function sh(t,e){const n=[];for(let i=0;i>>5,r.disposalMethod=(s&28)>>>2,r.userInputDelayFlag=(s&2)===2;const o=(s&1)===1;r.delayTime=t.nextTwoBytes()*10;const l=t.nextByte();o&&i(l),t.pos++;break}case 255:{t.pos++;const r={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};e.applicationExtensions.push(r);break}case 254:{e.comments.push([n(!1),t.readSubBlocks()]);break}case 1:{if(e.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");t.pos++,e.frames[n(!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();break}}async function V0(t,e,n,i,r,s){const o=e.frames[i(!0)];o.left=t.nextTwoBytes(),o.top=t.nextTwoBytes(),o.width=t.nextTwoBytes(),o.height=t.nextTwoBytes();const l=t.nextByte(),a=(l&128)===128,u=(l&64)===64;o.sortFlag=(l&32)===32,o.reserved=(l&24)>>>3;const c=1<<(l&7)+1;a&&(o.localColorTable=sh(t,c));const f=p=>{const{r:h,g:m,b:w}=(a?o.localColorTable:e.globalColorTable)[p];return{r:h,g:m,b:w,a:p===r(null)?n?~~((h+m+w)/3):0:255}},d=(()=>{try{return new ImageData(o.width,o.height,{colorSpace:"srgb"})}catch(p){if(p instanceof DOMException&&p.name==="IndexSizeError")return null;throw p}})();if(d==null)throw new EvalError("GIF frame size is to large");const y=t.nextByte(),v=t.readSubBlocksBin(),g=1<{const m=p>>>3,w=p&7;return(v[m]+(v[m+1]<<8)+(v[m+2]<<16)&(1<>>w};if(u){for(let p=0,h=y+1,m=0,w=[[0]],S=0;S<4;S++)if(ko[S]=w.length?w.push(w[M].concat(w[M][0])):M!==g&&w.push(w[M].concat(w[p][0]));for(let N=0;N=o.height))break}o.image=d,o.bitmap=await createImageBitmap(d)}else{for(let p=0,h=y+1,m=0,w=[[0]],S=-4;;){const E=p;if(p=x(m,h),m+=h,p===g){h=y+1,w.length=g+2;for(let C=0;C=w.length?w.push(w[E].concat(w[E][0])):E!==g&&w.push(w[E].concat(w[p][0]));for(let C=0;C=1<>>4,s.sortFlag=(l&8)===8;const u=1<<(l&7)+1,c=o.nextByte();s.pixelAspectRatio=o.nextByte(),s.pixelAspectRatio!==0&&(s.pixelAspectRatio=(s.pixelAspectRatio+15)/64),a&&(s.globalColorTable=sh(o,u));const f=(()=>{try{return new ImageData(s.width,s.height,{colorSpace:"srgb"})}catch(w){if(w instanceof DOMException&&w.name==="IndexSizeError")return null;throw w}})();if(f==null)throw new Error("GIF frame size is to large");const{r:d,g:y,b:v}=s.globalColorTable[c];f.data.set(a?[d,y,v,255]:[0,0,0,0]);for(let w=4;w(w&&(x=!0),g),m=w=>(w!=null&&(p=w),p);try{do x&&(s.frames.push({left:0,top:0,width:0,height:0,disposalMethod:0,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),g++,p=-1,x=!1);while(!await q0(o,s,n,h,m,e));s.frames.length--;for(const w of s.frames){if(w.userInputDelayFlag&&w.delayTime===0){s.totalTime=1/0;break}s.totalTime+=w.delayTime}return s}catch(w){throw w instanceof EvalError?new Error(`error while parsing frame ${g} "${w.message}"`):w}}const Y0=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function K0(t,e,n){const{svgData:i}=t;if(!i)return"";const r=$i(e,n);if(i.includes("fill"))return i.replace(Y0,()=>r);const s=i.indexOf(">");return`${i.substring(0,s)} fill="${r}"${i.substring(s)}`}async function zs(t){return new Promise(e=>{t.loading=!0;const n=new Image;t.element=n,n.addEventListener("load",()=>{t.loading=!1,e()}),n.addEventListener("error",()=>{t.element=void 0,t.error=!0,t.loading=!1,hn().error(`${qe} loading image: ${t.source}`),e()}),n.src=t.source})}async function X0(t){if(t.type!=="gif"){await zs(t);return}t.loading=!0;try{t.gifData=await G0(t.source),t.gifLoopCount=Q0(t.gifData)??0,t.gifLoopCount===0&&(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}async function Z0(t){if(t.type!=="svg"){await zs(t);return}t.loading=!0;const e=await fetch(t.source);e.ok?t.svgData=await e.text():(hn().error(`${qe} Image not found`),t.error=!0),t.loading=!1}function J0(t,e,n,i){var o;const r=K0(t,n,((o=i.opacity)==null?void 0:o.value)??1),s={color:n,gif:e.gif,data:{...t,svgData:r},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor??e.replace_color,source:e.src};return new Promise(l=>{const a=new Blob([r],{type:"image/svg+xml"}),u=URL||window.URL||window.webkitURL||window,c=u.createObjectURL(a),f=new Image;f.addEventListener("load",()=>{s.loaded=!0,s.element=f,l(s),u.revokeObjectURL(c)}),f.addEventListener("error",async()=>{u.revokeObjectURL(c);const d={...t,error:!1,loading:!0};await zs(d),s.loaded=!0,s.element=d.element,l(s)}),f.src=c})}class ew{constructor(e){this.loadImageShape=async n=>{if(!this._engine.loadImage)throw new Error(`${qe} image shape not initialized`);await this._engine.loadImage({gif:n.gif,name:n.name,replaceColor:n.replaceColor??n.replace_color??!1,src:n.src})},this._engine=e}addImage(e){this._engine.images||(this._engine.images=[]),this._engine.images.push(e)}draw(e,n,i,r,s){const o=n.image,l=o==null?void 0:o.element;if(o){if(e.globalAlpha=r,o.gif&&o.gifData){const a=new OffscreenCanvas(o.gifData.width,o.gifData.height),u=a.getContext("2d");if(!u)throw new Error("could not create offscreen canvas context");u.imageSmoothingQuality="low",u.imageSmoothingEnabled=!1,u.clearRect(0,0,a.width,a.height),n.gifLoopCount===void 0&&(n.gifLoopCount=o.gifLoopCount??0);let c=n.gifFrame??0;const f={x:-o.gifData.width*.5,y:-o.gifData.height*.5},d=o.gifData.frames[c];if(n.gifTime===void 0&&(n.gifTime=0),!d.bitmap)return;switch(e.scale(i/o.gifData.width,i/o.gifData.height),d.disposalMethod){case 4:case 5:case 6:case 7:case 0:u.drawImage(d.bitmap,d.left,d.top),e.drawImage(a,f.x,f.y),u.clearRect(0,0,a.width,a.height);break;case 1:u.drawImage(d.bitmap,d.left,d.top),e.drawImage(a,f.x,f.y);break;case 2:u.drawImage(d.bitmap,d.left,d.top),e.drawImage(a,f.x,f.y),u.clearRect(0,0,a.width,a.height),o.gifData.globalColorTable.length===0?u.putImageData(o.gifData.frames[0].image,f.x+d.left,f.y+d.top):u.putImageData(o.gifData.backgroundImage,f.x,f.y);break;case 3:{const y=u.getImageData(0,0,a.width,a.height);u.drawImage(d.bitmap,d.left,d.top),e.drawImage(a,f.x,f.y),u.clearRect(0,0,a.width,a.height),u.putImageData(y,0,0)}break}if(n.gifTime+=s.value,n.gifTime>d.delayTime){if(n.gifTime-=d.delayTime,++c>=o.gifData.frames.length){if(--n.gifLoopCount<=0)return;c=0,u.clearRect(0,0,a.width,a.height)}n.gifFrame=c}e.scale(o.gifData.width/i,o.gifData.height/i)}else if(l){const a=o.ratio,u={x:-i,y:-i};e.drawImage(l,u.x,u.y,i*2,i*2/a)}e.globalAlpha=1}}getSidesCount(){return 12}async init(e){const n=e.actualOptions;if(!(!n.preload||!this._engine.loadImage))for(const i of n.preload)await this._engine.loadImage(i)}loadShape(e){if(e.shape!=="image"&&e.shape!=="images")return;this._engine.images||(this._engine.images=[]);const n=e.shapeData;this._engine.images.find(r=>r.name===n.name||r.source===n.src)||this.loadImageShape(n).then(()=>{this.loadShape(e)})}particleInit(e,n){if(n.shape!=="image"&&n.shape!=="images")return;this._engine.images||(this._engine.images=[]);const i=this._engine.images,r=n.shapeData,s=n.getFillColor(),o=i.find(a=>a.name===r.name||a.source===r.src);if(!o)return;const l=r.replaceColor??r.replace_color??o.replaceColor;if(o.loading){setTimeout(()=>{this.particleInit(e,n)});return}(async()=>{let a;o.svgData&&s?a=await J0(o,r,s,n):a={color:s,data:o,element:o.element,gif:o.gif,gifData:o.gifData,gifLoopCount:o.gifLoopCount,loaded:!0,ratio:r.width&&r.height?r.width/r.height:o.ratio??1,replaceColor:l,source:r.src},a.ratio||(a.ratio=1);const u=r.fill??n.fill,c=r.close??n.close,f={image:a,fill:u,close:c};n.image=f.image,n.fill=f.fill,n.close=f.close})()}}class tw{constructor(){this.src="",this.gif=!1}load(e){e&&(e.gif!==void 0&&(this.gif=e.gif),e.height!==void 0&&(this.height=e.height),e.name!==void 0&&(this.name=e.name),e.replaceColor!==void 0&&(this.replaceColor=e.replaceColor),e.src!==void 0&&(this.src=e.src),e.width!==void 0&&(this.width=e.width))}}class nw{constructor(e){this.id="imagePreloader",this._engine=e}getPlugin(){return{}}loadOptions(e,n){if(!n||!n.preload)return;e.preload||(e.preload=[]);const i=e.preload;for(const r of n.preload){const s=i.find(o=>o.name===r.name||o.src===r.src);if(s)s.load(r);else{const o=new tw;o.load(r),i.push(o)}}}needsPlugin(){return!0}}function iw(t){t.loadImage||(t.loadImage=async e=>{if(!e.name&&!e.src)throw new Error(`${qe} no image source provided`);if(t.images||(t.images=[]),!t.images.find(n=>n.name===e.name||n.source===e.src))try{const n={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(n),await(e.gif?X0:e.replaceColor?Z0:zs)(n)}catch{throw new Error(`${qe} ${e.name??e.src} not found`)}})}async function rw(t,e=!0){iw(t);const n=new nw(t);await t.addPlugin(n,e),await t.addShape(["image","images"],new ew(t),e)}class sw extends Qt{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class ow extends Qt{constructor(){super(),this.random.minimumValue=1e-4,this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class lw{constructor(){this.count=0,this.delay=new sw,this.duration=new ow}load(e){e&&(e.count!==void 0&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}class aw{constructor(e){this.container=e}init(e){const n=this.container,i=e.options,r=i.life;r&&(e.life={delay:n.retina.reduceFactor?T(r.delay.value)*(r.delay.sync?1:$())/n.retina.reduceFactor*1e3:0,delayTime:0,duration:n.retina.reduceFactor?T(r.duration.value)*(r.duration.sync?1:$())/n.retina.reduceFactor*1e3:0,time:0,count:r.count},e.life.duration<=0&&(e.life.duration=-1),e.life.count<=0&&(e.life.count=-1),e.life&&(e.spawning=e.life.delay>0))}isEnabled(e){return!e.destroyed}loadOptions(e,...n){e.life||(e.life=new lw);for(const i of n)e.life.load(i==null?void 0:i.life)}update(e,n){if(!this.isEnabled(e)||!e.life)return;const i=e.life;let r=!1;if(e.spawning)if(i.delayTime+=n.value,i.delayTime>=e.life.delay)r=!0,e.spawning=!1,i.delayTime=0,i.time=0;else return;if(i.duration===-1||e.spawning||(r?i.time=0:i.time+=n.value,i.time0&&e.life.count--,e.life.count===0){e.destroy();return}const s=this.container.canvas.size,o=O(0,s.width),l=O(0,s.width);e.position.x=Pe(o),e.position.y=Pe(l),e.spawning=!0,i.delayTime=0,i.time=0,e.reset();const a=e.options.life;a&&(i.delay=T(a.delay.value)*1e3,i.duration=T(a.duration.value)*1e3)}}async function uw(t,e=!0){await t.addParticleUpdater("life",n=>new aw(n),e)}class cw{draw(e,n,i){const r=n.shapeData;e.moveTo(-i/2,0),e.lineTo(i/2,0),e.lineCap=(r==null?void 0:r.cap)??"butt"}getSidesCount(){return 1}}async function fw(t,e=!0){await t.addShape("line",new cw,e)}class dw{init(){}isEnabled(e){return!Qn()&&!e.destroyed&&e.container.actualOptions.interactivity.events.onHover.parallax.enable}move(e){const n=e.container,i=n.actualOptions,r=i.interactivity.events.onHover.parallax;if(Qn()||!r.enable)return;const s=r.force,o=n.interactivity.mouse.position;if(!o)return;const l=n.canvas.size,a={x:l.width/2,y:l.height/2},u=r.smooth,c=e.getRadius()/s,f={x:(o.x-a.x)*c,y:(o.y-a.y)*c},{offset:d}=e;d.x+=(f.x-d.x)/u,d.y+=(f.y-d.y)/u}}async function hw(t,e=!0){await t.addMover("parallax",()=>new dw,e)}class pw extends Ca{constructor(e){super(e)}clear(){}init(){}async interact(e){const n=this.container,i=e.retina.attractDistance??n.retina.attractDistance,r=e.getPosition(),s=n.particles.quadTree.queryCircle(r,i);for(const o of s){if(e===o||!o.options.move.attract.enable||o.destroyed||o.spawning)continue;const l=o.getPosition(),{dx:a,dy:u}=xe(r,l),c=e.options.move.attract.rotate,f=a/(c.x*1e3),d=u/(c.y*1e3),y=o.size.value/e.size.value,v=1/y;e.velocity.x-=f*y,e.velocity.y-=d*y,o.velocity.x+=f*v,o.velocity.y+=d*v}}isEnabled(e){return e.options.move.attract.enable}reset(){}}async function mw(t,e=!0){await t.addInteractor("particlesAttract",n=>new pw(n),e)}function ic(t,e,n,i,r,s){const o=it(t.options.collisions.absorb.speed*r.factor/10,0,i);t.size.value+=o/2,n.size.value-=o,i<=s&&(n.size.value=0,n.destroy())}function yw(t,e,n,i){const r=t.getRadius(),s=e.getRadius();r===void 0&&s!==void 0?t.destroy():r!==void 0&&s===void 0?e.destroy():r!==void 0&&s!==void 0&&(r>=s?ic(t,r,e,s,n,i):ic(e,s,t,r,n,i))}const rc=t=>{t.collisionMaxSpeed===void 0&&(t.collisionMaxSpeed=T(t.options.collisions.maxSpeed)),t.velocity.length>t.collisionMaxSpeed&&(t.velocity.length=t.collisionMaxSpeed)};function oh(t,e){Fd(kl(t),kl(e)),rc(t),rc(e)}function gw(t,e){!t.unbreakable&&!e.unbreakable&&oh(t,e),t.getRadius()===void 0&&e.getRadius()!==void 0?t.destroy():t.getRadius()!==void 0&&e.getRadius()===void 0?e.destroy():t.getRadius()!==void 0&&e.getRadius()!==void 0&&(t.getRadius()>=e.getRadius()?e:t).destroy()}function vw(t,e,n,i){switch(t.options.collisions.mode){case"absorb":{yw(t,e,n,i);break}case"bounce":{oh(t,e);break}case"destroy":{gw(t,e);break}}}class ww extends Ca{constructor(e){super(e)}clear(){}init(){}async interact(e,n){if(e.destroyed||e.spawning)return;const i=this.container,r=e.getPosition(),s=e.getRadius(),o=i.particles.quadTree.queryCircle(r,s*2);for(const l of o){if(e===l||!l.options.collisions.enable||e.options.collisions.mode!==l.options.collisions.mode||l.destroyed||l.spawning)continue;const a=l.getPosition(),u=l.getRadius();if(Math.abs(Math.round(r.z)-Math.round(a.z))>s+u)continue;const c=Le(r,a),f=s+u;c>f||vw(e,l,n,i.retina.pixelRatio)}}isEnabled(e){return e.options.collisions.enable}reset(){}}async function xw(t,e=!0){await t.addInteractor("particlesCollisions",n=>new ww(n),e)}class kw extends me{constructor(e,n,i,r){super(e,n,i),this.canvasSize=r,this.canvasSize={...r}}contains(e){const{width:n,height:i}=this.canvasSize,{x:r,y:s}=e;return super.contains(e)||super.contains({x:r-n,y:s})||super.contains({x:r-n,y:s-i})||super.contains({x:r,y:s-i})}intersects(e){if(super.intersects(e))return!0;const n=e,i=e,r={x:e.position.x-this.canvasSize.width,y:e.position.y-this.canvasSize.height};if(i.radius!==void 0){const s=new me(r.x,r.y,i.radius*2);return super.intersects(s)}else if(n.size!==void 0){const s=new rt(r.x,r.y,n.size.width*2,n.size.height*2);return super.intersects(s)}return!1}}class _w{constructor(){this.blur=5,this.color=new ce,this.color.value="#000",this.enable=!1}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=ce.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable))}}class Sw{constructor(){this.enable=!1,this.frequency=1}load(e){e&&(e.color!==void 0&&(this.color=ce.create(this.color,e.color)),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity))}}class Cw{constructor(){this.blink=!1,this.color=new ce,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new _w,this.triangles=new Sw,this.width=1,this.warp=!1}load(e){e&&(e.id!==void 0&&(this.id=e.id),e.blink!==void 0&&(this.blink=e.blink),this.color=ce.create(this.color,e.color),e.consent!==void 0&&(this.consent=e.consent),e.distance!==void 0&&(this.distance=e.distance),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity),this.shadow.load(e.shadow),this.triangles.load(e.triangles),e.width!==void 0&&(this.width=e.width),e.warp!==void 0&&(this.warp=e.warp))}}function Pw(t,e,n,i,r){const{dx:s,dy:o,distance:l}=xe(t,e);if(!r||l<=n)return l;const a={x:Math.abs(s),y:Math.abs(o)},u={x:Math.min(a.x,i.width-a.x),y:Math.min(a.y,i.height-a.y)};return Math.sqrt(u.x**2+u.y**2)}class Ew extends Ca{constructor(e){super(e),this._setColor=n=>{if(!n.options.links)return;const i=this.linkContainer,r=n.options.links;let s=r.id===void 0?i.particles.linksColor:i.particles.linksColors.get(r.id);if(s)return;const o=r.color;s=Vd(o,r.blink,r.consent),r.id===void 0?i.particles.linksColor=s:i.particles.linksColors.set(r.id,s)},this.linkContainer=e}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}async interact(e){if(!e.options.links)return;e.links=[];const n=e.getPosition(),i=this.container,r=i.canvas.size;if(n.x<0||n.y<0||n.x>r.width||n.y>r.height)return;const s=e.options.links,o=s.opacity,l=e.retina.linksDistance??0,a=s.warp,u=a?new kw(n.x,n.y,l,r):new me(n.x,n.y,l),c=i.particles.quadTree.query(u);for(const f of c){const d=f.options.links;if(e===f||!(d!=null&&d.enable)||s.id!==d.id||f.spawning||f.destroyed||!f.links||e.links.some(x=>x.destination===f)||f.links.some(x=>x.destination===e))continue;const y=f.getPosition();if(y.x<0||y.y<0||y.x>r.width||y.y>r.height)continue;const v=Pw(n,y,l,r,a&&d.warp);if(v>l)continue;const g=(1-v/l)*o;this._setColor(e),e.links.push({destination:f,opacity:g})}}isEnabled(e){var n;return!!((n=e.options.links)!=null&&n.enable)}loadParticlesOptions(e,...n){e.links||(e.links=new Cw);for(const i of n)e.links.load((i==null?void 0:i.links)??(i==null?void 0:i.lineLinked)??(i==null?void 0:i.line_linked))}reset(){}}async function bw(t,e=!0){await t.addInteractor("particlesLinks",n=>new Ew(n),e)}function zw(t){let e=!1;const{begin:n,end:i,maxDistance:r,context:s,canvasSize:o,width:l,backgroundMask:a,colorLine:u,opacity:c,links:f}=t;if(Le(n,i)<=r)ki(s,n,i),e=!0;else if(f.warp){let y,v;const g={x:i.x-o.width,y:i.y},x=xe(n,g);if(x.distance<=r){const p=n.y-x.dy/x.dx*n.x;y={x:0,y:p},v={x:o.width,y:p}}else{const p={x:i.x,y:i.y-o.height},h=xe(n,p);if(h.distance<=r){const w=-(n.y-h.dy/h.dx*n.x)/(h.dy/h.dx);y={x:w,y:0},v={x:w,y:o.height}}else{const m={x:i.x-o.width,y:i.y-o.height},w=xe(n,m);if(w.distance<=r){const S=n.y-w.dy/w.dx*n.x;y={x:-S/(w.dy/w.dx),y:S},v={x:y.x+o.width,y:y.y+o.height}}}}y&&v&&(ki(s,n,y),ki(s,i,v),e=!0)}if(!e)return;s.lineWidth=l,a.enable&&(s.globalCompositeOperation=a.composite),s.strokeStyle=gt(u,c);const{shadow:d}=f;if(d.enable){const y=tt(d.color);y&&(s.shadowBlur=d.blur,s.shadowColor=gt(y))}s.stroke()}function Mw(t){const{context:e,pos1:n,pos2:i,pos3:r,backgroundMask:s,colorTriangle:o,opacityTriangle:l}=t;ug(e,n,i,r),s.enable&&(e.globalCompositeOperation=s.composite),e.fillStyle=gt(o,l),e.fill()}function Tw(t){return t.sort((e,n)=>e-n),t.join("_")}function sc(t,e){const n=Tw(t.map(r=>r.id));let i=e.get(n);return i===void 0&&(i=$(),e.set(n,i)),i}class Rw{constructor(e){this.container=e,this._drawLinkLine=(n,i)=>{const r=n.options.links;if(!(r!=null&&r.enable))return;const s=this.container,o=s.actualOptions,l=i.destination,a=n.getPosition(),u=l.getPosition();let c=i.opacity;s.canvas.draw(f=>{var p;let d;const y=(p=n.options.twinkle)==null?void 0:p.lines;if(y!=null&&y.enable){const h=y.frequency,m=tt(y.color);$(){const s=n.options.links;if(!(s!=null&&s.enable))return;const o=s.triangles;if(!o.enable)return;const l=this.container,a=l.actualOptions,u=i.destination,c=r.destination,f=o.opacity??(i.opacity+r.opacity)/2;f<=0||l.canvas.draw(d=>{const y=n.getPosition(),v=u.getPosition(),g=c.getPosition(),x=n.retina.linksDistance??0;if(Le(y,v)>x||Le(g,v)>x||Le(g,y)>x)return;let p=tt(o.color);if(!p){const h=s.id!==void 0?l.particles.linksColors.get(s.id):l.particles.linksColor;p=_l(n,u,h)}p&&Mw({context:d,pos1:y,pos2:v,pos3:g,backgroundMask:a.backgroundMask,colorTriangle:p,opacityTriangle:f})})},this._drawTriangles=(n,i,r,s)=>{var a,u,c;const o=r.destination;if(!((a=n.links)!=null&&a.triangles.enable&&((u=o.options.links)!=null&&u.triangles.enable)))return;const l=(c=o.links)==null?void 0:c.filter(f=>{const d=this._getLinkFrequency(o,f.destination);return o.options.links&&d<=o.options.links.frequency&&s.findIndex(y=>y.destination===f.destination)>=0});if(l!=null&&l.length)for(const f of l){const d=f.destination;this._getTriangleFrequency(i,o,d)>n.links.triangles.frequency||this._drawLinkTriangle(i,r,f)}},this._getLinkFrequency=(n,i)=>sc([n,i],this._freqs.links),this._getTriangleFrequency=(n,i,r)=>sc([n,i,r],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(e,n){const{links:i,options:r}=n;if(!i||i.length<=0)return;const s=i.filter(o=>r.links&&this._getLinkFrequency(n,o.destination)<=r.links.frequency);for(const o of s)this._drawTriangles(r,n,o,s),o.opacity>0&&(n.retina.linksWidth??0)>0&&this._drawLinkLine(n,o)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map}particleCreated(e){if(e.links=[],!e.options.links)return;const n=this.container.retina.pixelRatio,{retina:i}=e,{distance:r,width:s}=e.options.links;i.linksDistance=r*n,i.linksWidth=s*n}particleDestroyed(e){e.links=[]}}class Ow{constructor(){this.id="links"}getPlugin(e){return new Rw(e)}loadOptions(){}needsPlugin(){return!0}}async function Lw(t,e=!0){const n=new Ow;await t.addPlugin(n,e)}async function Iw(t,e=!0){await bw(t,e),await Lw(t,e)}class lh{draw(e,n,i){const r=this.getCenter(n,i),s=this.getSidesData(n,i),o=s.count.numerator*s.count.denominator,l=s.count.numerator/s.count.denominator,a=180*(l-2)/l,u=Math.PI-Math.PI*a/180;if(e){e.beginPath(),e.translate(r.x,r.y),e.moveTo(0,0);for(let c=0;co&&(n.value-=o);break;case"decreasing":default:n.value-=s,n.value<0&&(n.value+=o);break}n.velocity&&l!==1&&(n.velocity*=l)}}class Hw{constructor(e){this.container=e}init(e){const n=e.options.rotate;if(!n)return;e.rotate={enable:n.animation.enable,value:T(n.value)*Math.PI/180},e.pathRotation=n.path;let i=n.direction;switch(i==="random"&&(i=Math.floor($()*2)>0?"counter-clockwise":"clockwise"),i){case"counter-clockwise":case"counterClockwise":e.rotate.status="decreasing";break;case"clockwise":e.rotate.status="increasing";break}const r=n.animation;r.enable&&(e.rotate.decay=1-T(r.decay),e.rotate.velocity=T(r.speed)/360*this.container.retina.reduceFactor,r.sync||(e.rotate.velocity*=$())),e.rotation=e.rotate.value}isEnabled(e){const n=e.options.rotate;return n?!e.destroyed&&!e.spawning&&n.animation.enable&&!n.path:!1}loadOptions(e,...n){e.rotate||(e.rotate=new Uw);for(const i of n)e.rotate.load(i==null?void 0:i.rotate)}update(e,n){var i;this.isEnabled(e)&&($w(e,n),e.rotation=((i=e.rotate)==null?void 0:i.value)??0)}}async function Ww(t,e=!0){await t.addParticleUpdater("rotate",n=>new Hw(n),e)}const Vw=Math.sqrt(2);class qw{draw(e,n,i){const r=i/Vw,s=r*2;e.rect(-r,-r,s,s)}getSidesCount(){return 4}}async function Qw(t,e=!0){await t.addShape(["edge","square"],new qw,e)}class Gw{draw(e,n,i){const r=n.sides,s=n.starInset??2;e.moveTo(0,0-i);for(let o=0;o0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=t.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const s=Pe(n.offset),o=(e.velocity??0)*t.factor+s*3.6,l=e.decay??1;!r||e.status==="increasing"?(e.value+=o,e.value>i&&(e.loops||(e.loops=0),e.loops++,r&&(e.status="decreasing",e.value-=e.value%i))):(e.value-=o,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing",e.value+=e.value)),e.velocity&&l!==1&&(e.velocity*=l),e.value>i&&(e.value%=i)}function Kw(t,e){if(!t.strokeColor||!t.strokeAnimation)return;const{h:n,s:i,l:r}=t.strokeColor,{h:s,s:o,l}=t.strokeAnimation;n&&_o(e,n,s,360,!1),i&&_o(e,i,o,100,!0),r&&_o(e,r,l,100,!0)}class Xw{constructor(e){this.container=e}init(e){var o;const n=this.container,i=e.options,r=yt(i.stroke,e.id,i.reduceDuplicates);e.strokeWidth=T(r.width)*n.retina.pixelRatio,e.strokeOpacity=T(r.opacity??1),e.strokeAnimation=(o=r.color)==null?void 0:o.animation;const s=Ui(r.color)??e.getFillColor();s&&(e.strokeColor=qd(s,e.strokeAnimation,n.retina.reduceFactor))}isEnabled(e){const n=e.strokeAnimation,{strokeColor:i}=e;return!e.destroyed&&!e.spawning&&!!n&&((i==null?void 0:i.h.value)!==void 0&&i.h.enable||(i==null?void 0:i.s.value)!==void 0&&i.s.enable||(i==null?void 0:i.l.value)!==void 0&&i.l.enable)}update(e,n){this.isEnabled(e)&&Kw(e,n)}}async function Zw(t,e=!0){await t.addParticleUpdater("strokeColor",n=>new Xw(n),e)}const Rr=["text","character","char"];class Jw{draw(e,n,i,r){const s=n.shapeData;if(s===void 0)return;const o=s.value;if(o===void 0)return;n.text===void 0&&(n.text=yt(o,n.randomIndexData));const l=n.text,a=s.style??"",u=s.weight??"400",c=Math.round(i)*2,f=s.font??"Verdana",d=n.fill,y=l.length*i/2;e.font=`${a} ${u} ${c}px "${f}"`;const v={x:-y,y:i/2};e.globalAlpha=r,d?e.fillText(l,v.x,v.y):e.strokeText(l,v.x,v.y),e.globalAlpha=1}getSidesCount(){return 12}async init(e){const n=e.actualOptions;if(Rr.find(i=>X(i,n.particles.shape.type))){const i=Rr.map(s=>n.particles.shape.options[s]).find(s=>!!s),r=[];oe(i,s=>{r.push(eg(s.font,s.weight))}),await Promise.all(r)}}particleInit(e,n){if(!n.shape||!Rr.includes(n.shape))return;const i=n.shapeData;if(i===void 0)return;const r=i.value;r!==void 0&&(n.text=yt(r,n.randomIndexData))}}async function e1(t,e=!0){await t.addShape(Rr,new Jw,e)}async function t1(t,e=!0){Ev(t),await hw(t,!1),await o0(t,!1),await u0(t,!1),await h0(t,!1),await k0(t,!1),await b0(t,!1),await M0(t,!1),await O0(t,!1),await D0(t,!1),await A0(t,!1),await $0(t,!1),await mw(t,!1),await xw(t,!1),await Iw(t,!1),await i0(),await rw(t,!1),await fw(t,!1),await Aw(t,!1),await Qw(t,!1),await Yw(t,!1),await e1(t,!1),await uw(t,!1),await Ww(t,!1),await Zw(t,!1),await n0(t,e)}const n1=({children:t})=>{const[e,n]=P.useState("#00FF00"),i=Ki();P.useEffect(()=>{i.pathname==="/skills"?n("#00fffb"):i.pathname==="/projects"?n("#e100ff"):n("#00FF00")},[i]);const r=P.useCallback(async o=>{console.log(o),await t1(o)},[]),s=P.useCallback(async o=>{await console.log(o)},[]);return _.jsxs("div",{children:[_.jsx(th,{id:"tsparticles",init:r,loaded:s,options:{background:{color:{value:"#19222B"}},fpsLimit:144,interactivity:{events:{onClick:{enable:!0,mode:"push"},onHover:{enable:!1,mode:"repulse"},resize:!0},modes:{push:{quantity:4},repulse:{distance:200,duration:.4}}},particles:{color:{value:e},links:{color:"#ffffff",distance:150,enable:!0,opacity:.5,width:1},move:{direction:"none",enable:!0,outModes:{default:"bounce"},random:!1,speed:1,straight:!1},number:{density:{enable:!0,area:800},value:80},opacity:{value:.5},shape:{type:"circle"},size:{value:{min:1,max:5}}},detectRetina:!0}}),t]})},i1="/my-react-portfolio/assets/profilepic-BMQehLlf.png",r1=()=>_.jsx("div",{id:"jumbotron-div",children:_.jsx("div",{className:"jumbotron",children:_.jsxs("div",{id:"outermost-text-div",children:[_.jsxs("div",{id:"text-div",children:[_.jsxs("h1",{className:"display-4",children:["Hi! I'm"," ",_.jsx("small",{style:{display:"inline",color:"lime",fontSize:"1.04em"},children:"Atharva"}),"."]}),_.jsx("p",{className:"lead",children:"I am an aspiring Web Developer looking for opportunities to showcase and further develop my skills!"}),_.jsx("p",{className:"lead",children:_.jsx("a",{className:"btn btn-primary btn",id:"know-more-btn",href:"https://www.linkedin.com/in/Atharva-Karanjekar",target:"_blank",role:"button",children:"Know more"})})]}),_.jsx("img",{src:i1,id:"profile-img"})]})})}),s1="/my-react-portfolio/assets/C-DdFC6DQh.png",o1="/my-react-portfolio/assets/cpp-COLDLYDH.png",l1="/my-react-portfolio/assets/css3-bLrZJUBe.png",a1="/my-react-portfolio/assets/django-C1oZCja_.png",oc="/my-react-portfolio/assets/firebase-DSyU46yz.png",u1="/my-react-portfolio/assets/html5-CKyDEyeN.png",c1="/my-react-portfolio/assets/javascript-Bu6ZFjaT.png",f1="/my-react-portfolio/assets/mysql-BsVO-dqZ.png",d1="/my-react-portfolio/assets/python-Bxi4hHvr.png",h1="/my-react-portfolio/assets/react-CBjhoM09.png",p1="/my-react-portfolio/assets/ssms-CfYAgTzP.png",Ae=({image:t,text:e})=>_.jsxs("div",{className:"card",children:[_.jsx("img",{src:t,className:"card-img-top"}),_.jsx("div",{className:"card-body",children:_.jsx("p",{className:"card-text",children:e})})]}),m1=()=>_.jsx("div",{id:"div",children:_.jsx("div",{id:"table-div",children:_.jsx("div",{className:"container-fluid",children:_.jsxs("div",{className:"row text-center",children:[_.jsx("div",{className:"row-6",children:_.jsxs("div",{className:"skills-outer-div",children:[_.jsx("h1",{className:"skills-header",children:"Front-End Development:"}),_.jsxs("div",{className:"skills-div",children:[_.jsx(Ae,{image:u1,text:"HTML5"}),_.jsx(Ae,{image:l1,text:"CSS3"}),_.jsx(Ae,{image:c1,text:"JavaScript"}),_.jsx(Ae,{image:h1,text:"React"})]})]})}),_.jsx("div",{className:"row-6",children:_.jsxs("div",{className:"skills-outer-div",children:[_.jsx("h1",{className:"skills-header",children:"Back-End Development:"}),_.jsxs("div",{className:"skills-div",children:[_.jsx(Ae,{image:a1,text:"Django"}),_.jsx(Ae,{image:oc,text:"Firebase"}),_.jsx(Ae,{image:f1,text:"MySQL"}),_.jsx(Ae,{image:p1,text:"SSMS"})]})]})}),_.jsx("div",{className:"row-6",children:_.jsxs("div",{className:"skills-outer-div",children:[_.jsx("h1",{className:"skills-header",children:"Programming Languages:"}),_.jsxs("div",{className:"skills-div",children:[_.jsx(Ae,{image:d1,text:"Python"}),_.jsx(Ae,{image:s1,text:"C"}),_.jsx(Ae,{image:o1,text:"C++"})]})]})}),_.jsx("div",{className:"row-6",children:_.jsxs("div",{className:"skills-outer-div",children:[_.jsx("h1",{className:"skills-header",children:"Version Control:"}),_.jsx("div",{className:"skills-div",children:_.jsx(Ae,{image:oc,text:"Git"})})]})})]})})})}),y1="/my-react-portfolio/assets/animemiru-CLx5Th1b.jpeg",g1="/my-react-portfolio/assets/weatherapp-BfeY8jV6.jpeg",lc=({title:t,img:e,text:n,link:i})=>_.jsxs("div",{className:"project-card",children:[_.jsx("img",{src:e,className:"card-img"}),_.jsxs("div",{className:"project-card-body",children:[_.jsx("h5",{className:"project-card-title",children:t}),_.jsx("p",{className:"project-card-text",children:n}),_.jsx("a",{href:`${i}`,className:"project-links",target:"_blank",children:_.jsxs("span",{className:"project-button",children:[_.jsx("i",{className:"fa-brands fa-github",style:{fontSize:"1.5em"}}),"GitHub"]})})]})]}),v1=()=>_.jsxs("div",{id:"project-cards-div",children:[_.jsx(lc,{img:y1,title:"AnimeMiru",text:"A simple anime information library app made using pure HTML, CSS, JavaScript and AniList API.",link:"https://github.com/atharva-kakarot/AnimeMiru"}),_.jsx(lc,{img:g1,title:"Simple Weather App",text:"A simple weather app made using HTML, CSS, Django and OpenWeather API.",link:"https://github.com/atharva-kakarot/simple-weather-app"}),_.jsx("a",{href:"https://github.com/atharva-kakarot?tab=repositories",target:"_blank",id:"view-more",children:"view more"})]}),w1=()=>_.jsxs(Ly,{basename:"/my-react-portfolio",children:[_.jsx(Fy,{}),_.jsx(n1,{children:_.jsxs(Ey,{children:[_.jsx(Mr,{path:"/",element:_.jsx(r1,{})}),_.jsx(Mr,{path:"/skills",element:_.jsx(m1,{})}),_.jsx(Mr,{path:"/projects",element:_.jsx(v1,{})})]})})]});kd(document.getElementById("root")).render(_.jsx(P.StrictMode,{children:_.jsx(w1,{})})); diff --git a/assets/javascript-Bu6ZFjaT.png b/assets/javascript-Bu6ZFjaT.png new file mode 100644 index 0000000..9f14862 Binary files /dev/null and b/assets/javascript-Bu6ZFjaT.png differ diff --git a/assets/mysql-BsVO-dqZ.png b/assets/mysql-BsVO-dqZ.png new file mode 100644 index 0000000..f6e74c6 Binary files /dev/null and b/assets/mysql-BsVO-dqZ.png differ diff --git a/assets/profilepic-BMQehLlf.png b/assets/profilepic-BMQehLlf.png new file mode 100644 index 0000000..d8085ce Binary files /dev/null and b/assets/profilepic-BMQehLlf.png differ diff --git a/assets/python-Bxi4hHvr.png b/assets/python-Bxi4hHvr.png new file mode 100644 index 0000000..9ad447e Binary files /dev/null and b/assets/python-Bxi4hHvr.png differ diff --git a/assets/react-CBjhoM09.png b/assets/react-CBjhoM09.png new file mode 100644 index 0000000..1218034 Binary files /dev/null and b/assets/react-CBjhoM09.png differ diff --git a/assets/ssms-CfYAgTzP.png b/assets/ssms-CfYAgTzP.png new file mode 100644 index 0000000..79fdf2e Binary files /dev/null and b/assets/ssms-CfYAgTzP.png differ diff --git a/assets/weatherapp-BfeY8jV6.jpeg b/assets/weatherapp-BfeY8jV6.jpeg new file mode 100644 index 0000000..c36a3bd Binary files /dev/null and b/assets/weatherapp-BfeY8jV6.jpeg differ diff --git a/index.html b/index.html index 89efcd3..0828ca3 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ - +